@zeniai/web-cockpit-ui 1.14.72-qa → 1.14.73-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 (234) hide show
  1. package/dist/assets/{ACHDetailsPage-BZFkcCOG-BgLnT2bx.js → ACHDetailsPage-FHBR2PCA-DLva-SPh.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DtNLjoUW-B-tQfVdq.js → AIPerformancePage-CiYLvD6Z-bHSk8bLC.js} +19 -19
  3. package/dist/assets/{AccountInfoPage-D-E_-WpE-BBToHrwY.js → AccountInfoPage-B0uMPZhx-BIQF2gH2.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-B8GKrtCm-eOZxiYcE.js → AccountInfoPageContent-CdgOtpop-AHRejHe6.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BD7Nb81U-B8-e-Aqp.js → AccountLockedInfoModal-DnQEp6tD-BW8Fp--s.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D-_ME0pV-ZyQ51UQi.js → AccountReconDetailsDrawerPage-BxjUNX_b-C4CXpIA8.js} +1 -1
  7. package/dist/assets/AccountRow-C6z4Ft3r-BFimoTCg.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-CdBwPVgI-DC42arzv.js → AccountsPromoCardStack-BS-HxQ5z-BoaDvf04.js} +15 -15
  9. package/dist/assets/{AddAddressForCardDrawer-Lm7cn4kq-IB0w7L6k.js → AddAddressForCardDrawer-qa7RqzlX-DAOW06gk.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-nSq-9dQy-BLazFAns.js → AddToWalletPage-DNjsPMFK-r8gZ63eR.js} +18 -18
  11. package/dist/assets/{AgingReportsPage-L0zQxwCf-CzxlP75b.js → AgingReportsPage-Dmgvzu2b-DiSOGn-n.js} +1 -1
  12. package/dist/assets/{AllUserItems-CvwaOEhu-CSstsloE.js → AllUserItems-BBC-qn-o-D2MAzw4F.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-B_78aSEv-CyRGhFJs.js → ApAgingDetailPage-YWdtNxkt-5BxHOM_M.js} +2 -2
  14. package/dist/assets/{AppBasePage-Br0WbQRY-CvtL6jFY.js → AppBasePage-BnA8ceAD-BvanHCQt.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-BZODvVvi-CBR3J9Hc.js → AppDrawerContent-DKHWPZQW-CEAxNC9t.js} +2 -2
  16. package/dist/assets/{ApprovalRulesSettingsPage-Dxd7A3hZ-CpKhvWXh.js → ApprovalRulesSettingsPage-D4Vz_gLv-DJSQNR5P.js} +1 -1
  17. package/dist/assets/{ArAgingChart-BezVy1Sm-B5e4MyYb.js → ArAgingChart-CuHk_U2p-D7juYPVe.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BlV3iJeW-C8LgZKgM.js → ArAgingDetailPage-H77B2AWo-DYwzxBIW.js} +1 -1
  19. package/dist/assets/{AttachmentView-DhluaeAV-BaM0a1eW.js → AttachmentView-D1SPuem6-CmH4xHN2.js} +1 -1
  20. package/dist/assets/{BankAccountSection-GDEQdiGL-D7Gh00lc.js → BankAccountSection-ByfDYmEM-WCmaTn1f.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-Di_BsiJC-Be424FdZ.js → BankAccountWarningSection-BTCdQgZV-Bb72qOHU.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-D5hI4xtm-DMzJVZgn.js → BankConnectionsSettingsPage-L62aMW_s-Ce_PfdvA.js} +8 -8
  23. package/dist/assets/{BillDetailPage-CDAh8Jtl-B38-z0c0.js → BillDetailPage-BBQJpRTI-D0MlJ03G.js} +4 -4
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BzyTn4mC-BYJ5p8aA.js → BillPayApprovalRuleDetailPage-ByLLupWf-BGMDsIwH.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DDJ-LxQz-CCttQ48s.js → BillPayApprovalRulesPage-D4d-6Jnf-CF6fIJls.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-B2YcxWc9-BQxU6TuM.js → BillPayPromoPage-CPGYF3vl-DVnbNH0W.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-oJvoWpFu-rnx0woyr.js → BillPaySetUpPage-CeciDq-c-NzaXshML.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-BRsKYzT5-Bkhfil_F.js → BillingSettingsPage-DknUlTgB-CcR7ugmH.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-B7tORIok-CzktZl5t.js → BillsBulkReviewDrawerPage-BIjlRcX--CZ4DepwQ.js} +1 -1
  30. package/dist/assets/{BoxItem-COIjjFrn-BdkILoXu.js → BoxItem-D4K0YgBP-Bm_px4kT.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Nw_fedst-DWFoTVFR.js → BusinessVerificationPage-CWioKmMC--fpYbOGK.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-CmhH95Ff-Cm3hJRYZ.js → CardNumberSubText-C_03r_B--CXrhgc3z.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-BPLjvuA3-oIqL5TUs.js → CashbackDetailPage-BaImXBc2-BqUQeIYw.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-qOu4cPGd-C633jFp0.js → ChargeCardDetailPage-Ba7cRz0p-DYtlHHMF.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-v5hH98Wi-BuxeUD72.js → ChargeCardListPage-BTH_OAht-CJvC6mTi.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-BGWV4zJl-Ce2AthWH.js → ChargeCardListTable-DpRWVPmZ-CcrBBELQ.js} +39 -39
  37. package/dist/assets/{ChargeCardPromoPage-CPEaGOL3-BLFFi5jX.js → ChargeCardPromoPage-B3bc_Qcj-DVNboRNz.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-G5Rn0o6y-DYXNrre8.js → ChargeCardSetupPage-3-7oaikG-BYx_BUtm.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-CJgUrcLz-BI7ZoCFJ.js → ChargeCardStatementsPage-3HMKClyw-mCs_-TXo.js} +5 -5
  40. package/dist/assets/{ChargeCardUtils-BRgkrCTs-C8zXQGn9.js → ChargeCardUtils-Cx6ntaue-CziTslau.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-BC_4vwtb-COKgYEaj.js → ChaseOverlay-1PyDzocW-DV1roPs3.js} +5 -5
  42. package/dist/assets/{CheckDepositDrawerPage-CDo5E13X-Cbi1sEYQ.js → CheckDepositDrawerPage-DTADpJQC-sqk-xG07.js} +16 -16
  43. package/dist/assets/{CollapsableReportTable-7iAngywY-3SRlHTeX.js → CollapsableReportTable-rEGCWPrN-DiziLVLU.js} +3 -3
  44. package/dist/assets/{CompanyOfficerDetailsSection-CJKyxEnf-mrI2AYJG.js → CompanyOfficerDetailsSection-Dpe50aqM-B1Sor9Us.js} +11 -11
  45. package/dist/assets/{CompanyPassportCard-D3F01eJL-DPoINVrz.js → CompanyPassportCard-l9sgkbw_-BXrIXjOn.js} +3 -3
  46. package/dist/assets/{CompanyPassportPage-BQoEcPJr-2ha-NP_x.js → CompanyPassportPage-DQPGAnFq-DsQ6naIu.js} +9 -9
  47. package/dist/assets/{CompleteProfile-D5e9TQgy-cUhxzOkn.js → CompleteProfile-DJBScNev-5kVXmwEh.js} +1 -1
  48. package/dist/assets/{ConfettiBurst--HIHB7Os-BVRZRbZr.js → ConfettiBurst-DukumtTx-CSzALiwF.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-D9jmSrKr-CMioxX86.js → CreateOrEditVendorPage-C39AEROO-Df_MDMmD.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-DXeq4z9l-C5xTsPli.js → CreditCardPaymentDrawerPage-D8VUjeG2-Nczpa7J9.js} +15 -15
  51. package/dist/assets/{CreditCardPaymentPlgSection-8ZShMO31-B_vJ6o3d.js → CreditCardPaymentPlgSection-L8WvXQsE-Dx-X3Ggn.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-nhg_dhDw-DQZDcRCb.js → CurrencySelectField-yIymL1et-BBkhU934.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-CoGvz7Kd-DP5AN6ur.js → CustomerOnboardingActivationPage-BKBFtr-o-B3t33ZLt.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-BwRlnH01-Di0CtCSz.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DUGRKWtN-CMWBr_hG.js → CustomerOnboardingDetailPageSkeleton-BsnPvucg-BEvywTxp.js} +5 -5
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-Cc5frP29-_UWfoHYC.js → CustomerOnboardingNoStepsPage-Db1DFgQR-DfT9hNRl.js} +6 -6
  57. package/dist/assets/{CustomerOnboardingPage-zBqp9QN6-wHOjxMhK.js → CustomerOnboardingPage-BoF4bXiW-CKAc0RQX.js} +4 -4
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BbJ4oiCI-CU_hgVPi.js → CustomerOnboardingProductSuitePage-BdGFZtH3-DLLnRFgg.js} +8 -8
  59. package/dist/assets/{Dashboard-D6Ba5oj0-BMy5lCc9.js → Dashboard-hADP7IBB-Bk1vjezx.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-DTMbYOWH-DGx7cygN.js → DashboardReportPage-BwTchCvy-O2bBIky3.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-Locz2zHR-Ca532zPr.js → DashboardSidebarBackgroundAnimation-B-w4cVMW-BWggpu2o.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-B0BGwVqF-BM-W7GCr.js → DepositAccTransactionItem-BMkCcz-U-g-iJ8Z3m.js} +2 -2
  63. package/dist/assets/{DepositAccTransactionListPage-CcO673ZL-DRqh7vYS.js → DepositAccTransactionListPage-D6h0mu0p-Cba8Z-zG.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-D5hbPNCt-DaulrfVc.js → DomesticWireDetailsPage-DQG9O9kV-DkLiQ_AK.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DRcasKoB-DLYS6xSC.js → DownloadOverlay-mXe-oklf-DPD6fOSt.js} +1 -1
  66. package/dist/assets/{DrawerPage-BRD6cE6J-DYHldhBX.js → DrawerPage-DSbF_bCc-BOfcYWDU.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-Zzo62if7-Xj5VLqqt.js → EditPeoplePage-DnE5ud-m-STxMbpu_.js} +3 -3
  68. package/dist/assets/EditReimbursementDetailPage-CtHzBFwx-CcMSn1Z9.js +865 -0
  69. package/dist/assets/{EntityDetailPage-CzlzOW8n-AF0nPS5d.js → EntityDetailPage-CSR_wxIn-C3ytfDma.js} +2 -2
  70. package/dist/assets/{EntitySummarySection-BRt1kPDf-BQpDHoFd.js → EntitySummarySection-BP9sqkp_-C8j67E3x.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-vUkGameq-CGGvu9kc.js → ExpenseAutomationOverviewPage-C-ZrFIVW-LPRP5OZt.js} +7 -7
  72. package/dist/assets/ExpenseAutomationPage-BEhjUkgs-DU0Mp3Bk.js +1650 -0
  73. package/dist/assets/{ExpressPayPage-DdQiFzDu-ZxolIAW1.js → ExpressPayPage-C9rqylRE-fd6R9yCg.js} +8 -8
  74. package/dist/assets/{FeaturePreviewPage-CQN2xThT-CtWhCMTj.js → FeaturePreviewPage-BcRRbP7e-DlhiW3MZ.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-DdwEVWhG-D5CWxbHL.js → FollowStepsSection-B3Kyt5j4-CgmrU6eD.js} +18 -18
  76. package/dist/assets/{GlobalReviewListPage-DHn2Uk8R-B02Df9ic.js → GlobalReviewListPage-Bz-YyIK8-B-UTCvpv.js} +5 -5
  77. package/dist/assets/{HelpButton-BNMy-6ce-Dj_O42xW.js → HelpButton-38HaKgFL-BugYIsvp.js} +1 -1
  78. package/dist/assets/{InformationCardStack-Cw7c9Pnd-Z9rJV-HY.js → InformationCardStack-BY26HFGi-BLGIbInA.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-CaMZiCnn-DH8dmM6J.js → InsightsCardStack-BI7iTuQ_-DQl2fOce.js} +10 -10
  80. package/dist/assets/{InsightsSection-JIKb9lz3-BHiqZJbQ.js → InsightsSection-AQ5yTmGG-DS0VgX7W.js} +3 -3
  81. package/dist/assets/{IntegrationsSettingsPage-h4pel2yK-CMzEW2al.js → IntegrationsSettingsPage-BEAFHjYf-d2P0RMG5.js} +5 -5
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-C2SnHEV1-DaLUKDNV.js → InternationalWireSwiftDetailsPage-DNvv8jLc-dT-poZdm.js} +6 -6
  83. package/dist/assets/{InternationalWireVerificationPage-Dk11ztF7-Du-xTdOF.js → InternationalWireVerificationPage-BdUXxMgU-DhF9zfHu.js} +6 -6
  84. package/dist/assets/{InviteFormPage-CrtH0cSG-DocQjxv0.js → InviteFormPage-CY-8DzRS-Bfynw6ME.js} +1 -1
  85. package/dist/assets/{InvitePageListView-DUoopPip-D2WxsqtH.js → InvitePageListView-DXjKBR4k-Np2jy73K.js} +14 -14
  86. package/dist/assets/{InvitePeoplePage-C3ecL8XJ-B6CmBuLR.js → InvitePeoplePage-CIafIgkR-BdmOchmq.js} +4 -4
  87. package/dist/assets/{InvoiceUploadSection-DoR834b4-CUq8fAkS.js → InvoiceUploadSection-cXNOY5jR-DGuQgS61.js} +1 -1
  88. package/dist/assets/{IssueChargeCardPage-D6DCohbK-D8VGttsh.js → IssueChargeCardPage-DN1zD_YI-i_-kvzIl.js} +10 -10
  89. package/dist/assets/{LabeledAddressValue-C3R0DSjj-Bir4MON_.js → LabeledAddressValue-Bk3vXfZU-CU4YMzA1.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-YP7bXlgZ-DTTFAf5k.js → LabeledAddressValueField-6MpVMde--DXTq8JS8.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-zwoLFM1n-II-cAJkn.js → LabeledControlledCheckBoxField-BjYGaRbt-BGdAOJoA.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-BhaeopJt-C3MxM3hQ.js → LabeledCreatableSingleSelectField-9q4Lqszf-Csk7xXRk.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-ED03S2kQ-Dxa7UQxr.js → LabeledDocumentField-CAWaftIF-CSQ4X3Cr.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-brzU_fnp-DtaD0WN_.js → LabeledDropDownFormattedTextField-WbohTHp8-Bsf-e-tx.js} +1 -1
  95. package/dist/assets/{LabeledText-BESSkt5Z-DXlW_VY-.js → LabeledText-B3JYr4tU-laTDcIhJ.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-Dq3Y2KPE.js → LabeledUserSingleSelectWithSubtitlesField-DHOsMX6S-5w6248s9.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-BXTCN4j2-BoDRzyRs.js → LabeledZeniRolesDropDownField-DcUdbKa4-fYq87dcd.js} +13 -13
  98. package/dist/assets/{LinkJETransactionPage-_ROjxBMO-iAkW-laA.js → LinkJETransactionPage-B1XJOlhU-DdWugwxQ.js} +2 -2
  99. package/dist/assets/{LockCardPage-DYfgK11k-3kQoNozm.js → LockCardPage-B-EvOmPO-B73f-ypE.js} +10 -10
  100. package/dist/assets/{LowBalancePopup-CZDcHxyW-DuEa-iJG.js → LowBalancePopup-BoFHsW5A-B3QtlbXZ.js} +1 -1
  101. package/dist/assets/{MagicLinkACHDetailsPage-CLXcRbZ--Dwvc772T.js → MagicLinkACHDetailsPage-D5-czDfb-D9jHfcHK.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CZlZr96w-DD7d2isR.js → MagicLinkDomesticWireDetailsPage-DxtWixFB-79ayjypJ.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DhPjvv0o-B4AeaXKS.js → MagicLinkInternationalWireDetailsPage-kmj9pdzN-DnNURYN2.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-Bh2nlLPN-0Oz4r3Up.js → MagicLinkSuccessPage-BPzk03R8-SXgLVDgR.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-Cn1v72Rs-BFZI4Y3w.js → MagicLinkTitleSection-CgS4ZMfb-BI5Lq2SW.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-9RwlQxVG-BFE8Zj6F.js → MailingDetailsSection-BktKZ2Nr-DyWKpOiG.js} +1 -1
  107. package/dist/assets/{MeetingCalenderPopup-BxV_UIXP-CbDuBV39.js → MeetingCalenderPopup-2tPtQeqB-QatkmFKh.js} +1 -1
  108. package/dist/assets/{Menu-B6iTf2H7-CaN3eNC5.js → Menu-CV1BBSGW-DKOqAYYS.js} +1 -1
  109. package/dist/assets/{MyBankConnectionsSettingsPage-IPPiH6jv-BZaCFusP.js → MyBankConnectionsSettingsPage-CMyrZ4nS-BheEjXSF.js} +1 -1
  110. package/dist/assets/{MyPendingActivationChargeCardListPage-BTGb1yIE-B60FFt6i.js → MyPendingActivationChargeCardListPage-DuOoKlPP-thKNb-ry.js} +1 -1
  111. package/dist/assets/{MyProfileSettingsPage-BRK5nWg2-BMqEc-a-.js → MyProfileSettingsPage-CA-5gU5k-BFEIvdNu.js} +5 -5
  112. package/dist/assets/{NavBarWithPicker-CKh_HMfV-Bk70qUr9.js → NavBarWithPicker-DuazRsm7-BXAVo-zX.js} +1 -1
  113. package/dist/assets/{NavigationArrow-XZmJpDrE-BIKmxNt5.js → NavigationArrow-DnZuPnXh-BOLYjEri.js} +1 -1
  114. package/dist/assets/{NavigationDots-BxPgEW_p-BH_dRdsk.js → NavigationDots-DarWlthl-CEtLiSj-.js} +1 -1
  115. package/dist/assets/{NewGlobalMerchantPage-CQzrDe0S-C0l22Bkl.js → NewGlobalMerchantPage-C5zI88lM-DBDRlSHQ.js} +2 -2
  116. package/dist/assets/{NoDataChart-5E72SElf-CivTfVpi.js → NoDataChart-Dwrv5FXT-BktYGhJl.js} +1 -1
  117. package/dist/assets/{NoDataTable-BwHbkm3l-BFQFSxPN.js → NoDataTable-BT9VQUID-B1zJzLW9.js} +2 -2
  118. package/dist/assets/{NotFoundPage-6udaksBZ-D3E8rdhi.js → NotFoundPage-BpVYjIy9-CAwSGm4b.js} +1 -1
  119. package/dist/assets/{NotificationSettingsPage-DkYmxMgg-D8pPsHqH.js → NotificationSettingsPage-Br1VS7sj-D72VzMEy.js} +22 -22
  120. package/dist/assets/{NotificationsListConfig-FGxLgO1o-B8OXacze.js → NotificationsListConfig-COCJ7xUp-B665e_3O.js} +1 -1
  121. package/dist/assets/{NotificationsPage-C7lSAnUb-Dr_7ygVm.js → NotificationsPage-CtIcIo4T-DuWbZv_Q.js} +24 -24
  122. package/dist/assets/{OpExByVendorPage-CM0RluUk-_37yq8j1.js → OpExByVendorPage-CTdChrGD-CvW5Vepn.js} +5 -5
  123. package/dist/assets/{OverlayContainerPage-BKHs_4eI-BzvRxHIb.js → OverlayContainerPage-CU1AAMcq-ai6w2Y-V.js} +1 -1
  124. package/dist/assets/{PandLWithForecastPage-W4jlNjml-GYerKXw7.js → PandLWithForecastPage-DVhAvUAV-CoqLEkYS.js} +2 -2
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQ82eP9Q-C3WHDKOj.js → PaymentAccountSetupBillingAddressSection-Cqk9_T2U-B2k-ZLJe.js} +1 -1
  126. package/dist/assets/{PeoplePage-CB3T3u_F-DiglFISH.js → PeoplePage-BR4qd-jm-CBOJNYwE.js} +8 -8
  127. package/dist/assets/{PortfolioAllocationFormPage-CZkJD6tu-k-ZMlZhC.js → PortfolioAllocationFormPage-T83_xyer-BkoO9beS.js} +1 -1
  128. package/dist/assets/{PortfolioDetails-D4yT8r35-D0ar_g4P.js → PortfolioDetails-6ElQWU58-ByHc7XYH.js} +4 -4
  129. package/dist/assets/{ProductsCarousel-CR7_rk0K-DBx3LGPh.js → ProductsCarousel-CijsxgpU-C19z6U57.js} +4 -4
  130. package/dist/assets/{PromoBaseCards-BAPolzxE-BXtgaLrj.js → PromoBaseCards-BWsv2pTB-B6b592gJ.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-D3eazhj7-DYLpkxDj.js → QBOConnectionDialog-ChKHWoK7-CSeEHm2_.js} +2 -2
  132. package/dist/assets/{QBOSetupSection-Cjjhm_Ee-DBhrwkGC.js → QBOSetupSection-C4gt0qc8-DTKMvJ4_.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRuleDetailPage-eidNY097-BCByIFaN.js → ReimbursementApprovalRuleDetailPage-BwgWdSTd-NVamJEor.js} +1 -1
  134. package/dist/assets/{ReimbursementApprovalRulesPage-GSzJGSuy-c5aCCOnC.js → ReimbursementApprovalRulesPage-C2asBtuf-DT1aAQsK.js} +1 -1
  135. package/dist/assets/ReimbursementDetailPage-DS1ewUKC-CVEFgQmR.js +314 -0
  136. package/dist/assets/{ReimbursementPromoPage-PshodHUZ-B43Em7U3.js → ReimbursementPromoPage-5OaQjA8F-DErLTtUx.js} +1 -1
  137. package/dist/assets/{ReimbursementSetUpPage-6P4FT-UC-BJa0K7Xr.js → ReimbursementSetUpPage-Bl8jzyRg-3jDcWgfT.js} +1 -1
  138. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cas6GzVp-DVcLPzki.js → ReimbursementsBulkReviewDrawerPage-DIesC2GA-CmjN--dc.js} +1 -1
  139. package/dist/assets/{ReloadCard-Dpoxd9nE-CXRu-hav.js → ReloadCard-0q5pQ13T-CKzHIqK2.js} +3 -3
  140. package/dist/assets/{ReportTableViewSelector-Ci-WKrCO-BjESI86S.js → ReportTableViewSelector-C0SiD_xG-BLDdaXUR.js} +5 -5
  141. package/dist/assets/{ReportsPage-C7zirS74-Cfwy01bz.js → ReportsPage-GTIPR29D-BtSUMj6k.js} +1 -1
  142. package/dist/assets/{RevenueChart-CXMBT3cr-H1qgR87b.js → RevenueChart-C099OBIz-BCjETeYD.js} +1 -1
  143. package/dist/assets/{ReviewDetailsPage-ClsyL5-w-Dm8fiuBk.js → ReviewDetailsPage-Dj29qJWr-znzq99Zm.js} +11 -11
  144. package/dist/assets/{ReviewOverlay-C6Kx7Hfm-PTA7Sxfm.js → ReviewOverlay-OPfHsiEH-DYnwxQBa.js} +3 -3
  145. package/dist/assets/{RoleWithToolTip-BqI6M0x_-CjRr5WNK.js → RoleWithToolTip-CnJMJF5X-DPQwf2SV.js} +2 -2
  146. package/dist/assets/{ScheduleDetailsFixedAssetsPage-zFyJPVpN-DR77A8Vi.js → ScheduleDetailsFixedAssetsPage-BojehSaf-CqIP5z2b.js} +8 -8
  147. package/dist/assets/{ScheduleDetailsPage-BftjSvA7-Bu1ekUfV.js → ScheduleDetailsPage-aZbK93Nq-BFB854u3.js} +3 -3
  148. package/dist/assets/{ScheduleSequenceTable-lTN7r0p4-BuEMykDk.js → ScheduleSequenceTable-By6Dky2k-cVt4Itnj.js} +21 -21
  149. package/dist/assets/{ScreenRoutes-CfLauL0U.js → ScreenRoutes-m-9CX7nW.js} +1 -1
  150. package/dist/assets/{SetUpAccountSection-Bnbi8X23-C17_K52x.js → SetUpAccountSection-B_VtQMHv-v5HWkW-2.js} +7 -7
  151. package/dist/assets/{SetUpDefaultSection-Bm1eZSgT-vK_tZkJp.js → SetUpDefaultSection-CR4EJd0L-DR8b1nlJ.js} +4 -4
  152. package/dist/assets/{SignIn-BlISBvt5-lALsslOV.js → SignIn-DlL4Ve5C-CS2k0j8x.js} +8 -8
  153. package/dist/assets/SignInScreen-82F821nF.js +1 -0
  154. package/dist/assets/{SpendManagementListViewPage-ChNp8dgm-BcuBIXnt.js → SpendManagementListViewPage-hcbJnpe0-Dx5Mkywb.js} +3 -3
  155. package/dist/assets/{SpendManagementPerTabPage-D-bOr2-6-IrMdTJ81.js → SpendManagementPerTabPage-CZMtZLLG-BwL9QJKu.js} +25 -25
  156. package/dist/assets/{SpendManagementSection-kucZgC-H-BqDZp6la.js → SpendManagementSection-v3VQ4WLv-BgJcZL_k.js} +7 -7
  157. package/dist/assets/{SpendMgmtSetupAccountSection-de7hEmtE-Dqky-jvG.js → SpendMgmtSetupAccountSection-BstM92cv-D_s447NX.js} +4 -4
  158. package/dist/assets/{StatementItem-BVIVLdDn-Z5Lg6CTz.js → StatementItem-DHN42swg-QQn_8xP5.js} +2 -2
  159. package/dist/assets/{StatementsPage-KnLUSJbm-BuZcsgE6.js → StatementsPage-BuWUMrMJ-ClESyfR5.js} +1 -1
  160. package/dist/assets/{StatusSwitcher-aAizq1mr-DMDnuQ9N.js → StatusSwitcher-BQIZqQby-CwGTf6Yt.js} +1 -1
  161. package/dist/assets/{SubTabSwitcher-COrYJ6CW-B2hOhdQG.js → SubTabSwitcher-BwULcWpV-KD7oZVm0.js} +1 -1
  162. package/dist/assets/{SummaryCard-Dv0dWKBw-nvmMyFzf.js → SummaryCard-sp4k0Xek-DgWj-oz4.js} +1 -1
  163. package/dist/assets/{TaskManagementPage-CPLyyK1Y-B19ne-R4.js → TaskManagementPage-N2Egdy4r-qGkYEZ7q.js} +1 -1
  164. package/dist/assets/{TimeRangeSwitcher-ifkHfqEg-DfO_JEAJ.js → TimeRangeSwitcher-BbGr7Bdf-CGee3poJ.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcher-BP-PxO5g-ICJqPhse.js → TimeframeSwitcher-CqP9hXqB-r5frPdgi.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-DH-PfsTQ-DT6_nKNc.js → TimeframeSwitcherWithToggle-C-Nxe_F8-C62_HCuz.js} +1 -1
  167. package/dist/assets/{TopExCard-Bam-Q4MV-DQjRYkgY.js → TopExCard-CLw0PDAU-BbYnCf3a.js} +5 -5
  168. package/dist/assets/{TopExDetailPage-P0Twt5zZ-eAB7xN9I.js → TopExDetailPage-GLquKOoy-kMqzF42L.js} +1 -1
  169. package/dist/assets/{TransactionDetailPage-D1Z1f-DD-B17t_ZG8.js → TransactionDetailPage-cTLfJiHb-1yZP6Zin.js} +1 -1
  170. package/dist/assets/{TransactionList-BzJEbOV9-BBSoiur3.js → TransactionList-SkjGKFn_-BwaaUL7x.js} +6 -6
  171. package/dist/assets/{TransactionListBig-u4SJBZTE-Cy4VRcVB.js → TransactionListBig-B4CiUxir-C15l10qy.js} +5 -5
  172. package/dist/assets/{TransactionListPage-D4GJ6i3l-DALdoomA.js → TransactionListPage-eiEKrfCB-CXZ0iEN3.js} +2 -2
  173. package/dist/assets/{TransactionVendorDetailPage-CuFHbm8c-BJ-Cayzm.js → TransactionVendorDetailPage-CySokm3L-BpHJwA9m.js} +3 -3
  174. package/dist/assets/{TransferDrawerPage-GD2I8ptj-DUje1E-7.js → TransferDrawerPage-BSv0D4Zs-BT9NFCI4.js} +12 -12
  175. package/dist/assets/{TreasuryOverviewPage-DySunaqy-Nz7IbNC7.js → TreasuryOverviewPage-C5hIMuk--DxAuBNvx.js} +15 -15
  176. package/dist/assets/{TreasuryPromoPage-DW1f8_q1-C7_Z0mWE.js → TreasuryPromoPage-DSJHOwhj-BeQhN-a8.js} +1 -1
  177. package/dist/assets/{TreasurySetupPage-53k6ARHC-BnG6gfLx.js → TreasurySetupPage-B_EmY_UY-DAaCNRGd.js} +4 -4
  178. package/dist/assets/{TreasuryStatementsPage-pIshKNaR-aDA9O2fx.js → TreasuryStatementsPage-BrZVJwAL-Bs1LrL-1.js} +1 -1
  179. package/dist/assets/{TreasuryTaxLetterPage-B3PkB1al-CRAagKdD.js → TreasuryTaxLetterPage-DsmLrBId-CRVnttNh.js} +1 -1
  180. package/dist/assets/{TreasuryTransferOrReviewPage-Dzq-FxSM-xSwgnlQS.js → TreasuryTransferOrReviewPage-WB0pVkO6-BWBLW8Tp.js} +13 -13
  181. package/dist/assets/{TrendChart-B_5D-Zud-CJGzPrRj.js → TrendChart-CWR5JV7S-Bu3AQa_8.js} +1 -1
  182. package/dist/assets/{TrendWithTransactions-mI_El5D1-BVyR_3Fo.js → TrendWithTransactions-D9x71aZs-CM8kaEfz.js} +1 -1
  183. package/dist/assets/{UncategorizedAccountsMappingPage-LQeq8Gdv-n_vWC-so.js → UncategorizedAccountsMappingPage-Tx1NEXyX-DoWK8o5r.js} +1 -1
  184. package/dist/assets/{UnitIntegrationPage-XOWqGHla-BZ95dO5C.js → UnitIntegrationPage-aTpJwSQj-BYrPkyiL.js} +1 -1
  185. package/dist/assets/{UploadAdditionalDocumentOverlay-DhXRLBEg-BdwkpQvO.js → UploadAdditionalDocumentOverlay-BVMdCZ9e-BITtYlPW.js} +1 -1
  186. package/dist/assets/Vendor2FAPopup-BtVySDI--nsMiWnZu.js +1 -0
  187. package/dist/assets/{VendorACHDetailsPage-CswCvAFH-Dy_DyxN4.js → VendorACHDetailsPage-Cx9VUYTN-CUP3Cq5s.js} +1 -1
  188. package/dist/assets/{VendorDetailPage-CEX7xMIN-BmFNmhWb.js → VendorDetailPage-BTBlddyH-Bc_YJfHo.js} +6 -6
  189. package/dist/assets/{VendorDomesticWireDetailsPage-DxrSjlTR-Bu1va64U.js → VendorDomesticWireDetailsPage-DIQg-f5b-Bwf6L3re.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-q1gQ8keD-l7qrKyA8.js → VendorFiling1099EditablePage-CZzpO5dU-BLT7WxiF.js} +8 -8
  191. package/dist/assets/{VendorFirstReviewPage-D9ogNmAK-C3g7z5qc.js → VendorFirstReviewPage-_Bf2O8Hk-B9tTYmRJ.js} +1 -1
  192. package/dist/assets/{VendorInternationalWireDetailsPage-Ct689KuY-DCwtWCEl.js → VendorInternationalWireDetailsPage-DmM691ao-Dzdr5mG2.js} +1 -1
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-W0s1zQNC-BM0C0ziQ.js → VendorInternationalWireSwiftDetailsPage-CmfDU583-Dk7aONaM.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-C13Z2HN9-C3emmS_D.js → VendorsAccountsSection-VX_qjrvm-R24t7Q7V.js} +4 -4
  195. package/dist/assets/{VerifyDevice-C27gEWkZ-Bd6cyY--.js → VerifyDevice-pndtId1R-C8OsQHlo.js} +3 -3
  196. package/dist/assets/{VideoPlayer-ByyqUuhG-BSXeTxMk.js → VideoPlayer-Cv2VluI6-D2yBmBgw.js} +1 -1
  197. package/dist/assets/{VideoPopup-DJrQQTPq-B81ilqru.js → VideoPopup-DwltINTO-0GPyihNZ.js} +1 -1
  198. package/dist/assets/{WarningsDrawerPage-B3Ht3VnM-Bsz-Tz3J.js → WarningsDrawerPage-I6fXTo8V-B0kNeHBS.js} +1 -1
  199. package/dist/assets/{ZeniAccountDetailPage-egmysAfI-B5QFTFx1.js → ZeniAccountDetailPage-BhqYqyk--DeI4__gE.js} +5 -5
  200. package/dist/assets/{ZeniAccountListViewPage-q_v2FogF-D_UNRleH.js → ZeniAccountListViewPage-M7S_ZBj4-94TU34gP.js} +1 -1
  201. package/dist/assets/{ZeniAccountNavBarPieces-HNIht0FM-CJCYTYns.js → ZeniAccountNavBarPieces-Crjx7iNX-DK8JxCJS.js} +2 -2
  202. package/dist/assets/{ZeniAccountPromoPage-CzncR6vK-BEKkuPuQ.js → ZeniAccountPromoPage-rK7P_Dpk-DmoLuwn8.js} +1 -1
  203. package/dist/assets/{ZeniAccountSetupPage-TcdzEL_V-C2CFXEp_.js → ZeniAccountSetupPage-B8yrjDVW-gPUnEzAZ.js} +1 -1
  204. package/dist/assets/{ZeniCopyright-B7Q6IUGC-CXMr85Qq.js → ZeniCopyright-BDsnkVlH-C00Fssys.js} +1 -1
  205. package/dist/assets/{ZeniTransferAmountSlider-Dmf5xxv4-Dpr9CnoV.js → ZeniTransferAmountSlider-BCVTdEWO-p69HMFsD.js} +1 -1
  206. package/dist/assets/analyticsHelper-CS2u9ax9.js +1 -0
  207. package/dist/assets/{analyticsHelper-or1KkBWk-fKfUVxR4.js → analyticsHelper-D8CGsPLU-DJI9oEaD.js} +1 -1
  208. package/dist/assets/{chartTypes-DCvOVjlS-Byyz5YpX.js → chartTypes-DLnePN0T-B_54UqyM.js} +1 -1
  209. package/dist/assets/{commonDimensions-C32v1F7H-73JTdKL8.js → commonDimensions-CWOH4KIa-zIW9i9kk.js} +1 -1
  210. package/dist/assets/{detailCommon-CRAGrqoO-DD6StmxB.js → detailCommon-COLWOJB--3sJPi-qA.js} +1 -1
  211. package/dist/assets/{downloadPdf-D7p3yKmg-DnkIBRMw.js → downloadPdf-DmVZhHLH-D1xNlFUJ.js} +1 -1
  212. package/dist/assets/{index-TYkG9rxW.js → index-MAXVX6UR.js} +1725 -1741
  213. package/dist/assets/{lodash-B66NTFTY.js → lodash-D52QloPU.js} +6 -6
  214. package/dist/assets/{mapLoadingInProgressToTreeNode-CRwG2DSD-DozMx8Qu.js → mapLoadingInProgressToTreeNode-DzagCSPK-Df3QAuQq.js} +1 -1
  215. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C9O-C2dp-CWK7pK5S.js → mapSectionWithAcOnlyToTreeNode-gKc2xWyG-DTjSgiEj.js} +1 -1
  216. package/dist/assets/{mapSpacerToTreeNode-5aJk-sLn-C_5ehzQk.js → mapSpacerToTreeNode-toSXbVwB-B0PNlKW1.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-CnviLujI-C3yLK1bp.js → mapTimeframeBalancesToTreeNode-D0Bib2dl-Cgs41-OD.js} +1 -1
  218. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv4d4PqE-SXM8J_jw.js → mapTimeframeBalancesToTreeNode-D63QAMZm-BDtNdJWW.js} +1 -1
  219. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-BrwdtkMi.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BuAL-Z9U-Ceeq3tsz.js} +1 -1
  220. package/dist/assets/{toCOABalancesWithID-B3yVGPrV-CxcOLkAO.js → toCOABalancesWithID-D-AHYPZY-Bomk_rrT.js} +1 -1
  221. package/dist/assets/{toChartData-DEW0iT7T-DY_WveEO.js → toChartData-BIN4xqGz-BcU_F8Ix.js} +1 -1
  222. package/dist/assets/{treasuryColorHelper-13LJ_xhk-DZAJRVzv.js → treasuryColorHelper--7Rf6Fm8-BdEMhZbj.js} +1 -1
  223. package/dist/assets/{uploadAttachment-DVy2pZeJ-DRTnRPP6.js → uploadAttachment-DwI0nG8D-VCODDzfq.js} +7 -7
  224. package/dist/assets/{uploadReceipts-Dp1dvCjf-DlPrtBK4.js → uploadReceipts-9DTOr0BG-pwNYcimh.js} +1 -1
  225. package/dist/index.html +1 -1
  226. package/package.json +6 -9
  227. package/dist/assets/AccountRow-Be3LIHO--BhldzD55.js +0 -298
  228. package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-DM3MDxim.js +0 -1
  229. package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-Dxcj4pSI.js +0 -865
  230. package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-CBoXf2Y_.js +0 -1650
  231. package/dist/assets/ReimbursementDetailPage-AvqEBxbz-BX8VzCE_.js +0 -314
  232. package/dist/assets/SignInScreen-BSpw7NT9.js +0 -1
  233. package/dist/assets/Vendor2FAPopup-BfqIHZBb-ClbfqMql.js +0 -1
  234. package/dist/assets/analyticsHelper-CE-cGidw.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a9 as rt,d as lt,q as we,aP as xe,aa as Se,cS as Ce,O as be,aU as he,j as t,fn as ct,h as dt,y as h,bF as ut,P as pt,ad as ke,e6 as ft,bA as ht,u as n,aX as mt,aO as gt,n as yt,c5 as wt,aM as xt,cY as St,aQ as Ct,o as i,am as Te,_ as bt,A as kt,c as Tt,H as Ot}from"./index-TYkG9rxW.js";import{b as a,n as o}from"./vendor-Bs1fkIUX.js";import{D as vt}from"./HelpButton-BNMy-6ce-Dj_O42xW.js";import{r as It}from"./verification-CW6uEyev-CQXAdM_w.js";import{K as me}from"./SetUpDefaultSection-Bm1eZSgT-vK_tZkJp.js";import{f as At}from"./SpendMgmtSetupAccountSection-de7hEmtE-Dqky-jvG.js";import Pt from"./PortfolioAllocationFormPage-CZkJD6tu-k-ZMlZhC.js";import $t from"./TreasuryTransferOrReviewPage-Dzq-FxSM-xSwgnlQS.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-BxV_UIXP-CbDuBV39.js";import"./ChargeCardUtils-BRgkrCTs-C8zXQGn9.js";import"./CreditCardPaymentPlgSection-8ZShMO31-B_vJ6o3d.js";import"./ChaseOverlay-BC_4vwtb-COKgYEaj.js";import"./PortfolioDetails-D4yT8r35-D0ar_g4P.js";import"./treasuryColorHelper-13LJ_xhk-DZAJRVzv.js";const Et=(e,g)=>`${e}.${g}`,G={labelWidth:new h(145,155),navBarContainerPaddingYaxis:new h(10,n[3]),containerPaddingLeft:new h(n[3],n[6],n[8]),containerPaddingRight:new h(n[3],n[6],n[8])},Lt={stepTitle:new Tt("h6Regular","h5Regular")},Oe=be.getLocalizedStrings(),{common:ee,spendManagement:{treasury:{transferDrawer:{review:{footNoteForVerification:Ft}}}}}=Oe,l=Oe.commonSetUp.businessVerification,te=l.sourceOfFundOptions,F="additionalVerificationFields",jt=({companyOfficer:e,companyDetails:g,updateStatus:S,isDetailsSubmitted:b,isTransferInitiated:s,transferDetails:P,skipTransferStep:D,onClose:$,onAdditionalVerificationFieldsChanged:R,onSendForVerificationClick:w,onCloseOverlay:k})=>{const m=we(),X=G.labelWidth.value(m),E=xe(S.fetchState),T=Se({mode:"all",reValidateMode:"onChange",defaultValues:a.useMemo(()=>({[F]:{sourceOfFunds:{selectedOption:g?.sourceOfFunds??"",allOptions:Object.keys(te)}}}),[g?.sourceOfFunds])}),q=p=>te[p]??p,Y=T.handleSubmit(()=>{w(e?.officerType??"Officer_1",s)}),J=async(p,O)=>{R(O[F])};return a.useEffect(()=>{const p=T.watch((O,{name:V})=>{V!=null&&O!=null&&Ce(()=>J(V,O))});return()=>{p.unsubscribe()}}),E==="In-Progress"&&S.fetchState==="Completed"||b===!0?t.jsxs(Wt,{children:[t.jsxs(Mt,{children:[t.jsx(It,{}),t.jsx(Nt,{windowSize:m,children:s===!0?l.submittedTitleWithTransfer:l.submittedTitle}),t.jsx(_t,{children:s===!0?l.submittedDescriptionWithTransfer.replace("__amount__",mt(gt(P?.treasuryTransferMoneyLocalData?.amount?.amount??0),P?.treasuryTransferMoneyLocalData?.amount?.amount??0,ee.currency.currencySymbol)).replace("__account__",P?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):l.submittedDescription})]}),t.jsx(yt,{label:l.submittedButton,onClick:k,variant:"primary"})]}):t.jsxs(Dt,{windowSize:m,children:[t.jsx(Rt,{windowSize:m,children:t.jsx(wt,{title:"Back",enterTouchDelay:600,placement:"bottom",children:t.jsx(Vt,{"data-testid":xt("nav-bar-back-portfolio-allocation"),onClick:k||$})})}),t.jsxs(Bt,{windowSize:m,children:[t.jsx(Ut,{windowSize:m,children:D===!0?l.verifyBusinessDetailsWithoutTransfer:l.verifyBusinessDetails}),t.jsx(Ht,{children:t.jsxs(Gt,{children:[t.jsx(ge,{}),D!==!0&&t.jsx(ge,{}),t.jsx(Xt,{})]})})]}),t.jsx(ve,{children:l.verifyBusinessDetailsDescription}),t.jsx(ke,{...T,children:t.jsxs("form",{id:F,onSubmit:Y,children:[t.jsx(zt,{children:t.jsx(St,{label:{label:l.sourceOfFundsLabel,width:X},style:{width:"auto"},additionalInfoLabel:l.sourceOfFundsAdditionalInfo,singleSelectField:{singleSelect:{name:Et(F,"sourceOfFunds"),placeholder:l.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:q,showTickMark:!1,sortOptions:!1},defaultValue:{selectedOption:g?.sourceOfFunds??"",allOptions:Object.keys(te)},registerOptions:{required:!0,validate:p=>!!p?.selectedOption}},isFunctional:!0,errorInfoLabel:l.sourceOfFundsError.replace("_product_type_","business verification")})}),t.jsx(Ct,{formId:F,primaryBtn:{label:ee.footer.submit,style:{width:"auto",minWidth:m==="small"?"auto":"83px"},isLoading:S.fetchState==="In-Progress"},cancelBtn:{label:ee.footer.back,style:{width:m==="small"?"auto":"83px"},onClick:$},style:{position:"absolute",width:"100%",paddingTop:i.sp2,paddingBottom:i.sp2},helperText:s===!0?Ft:void 0,helperStyle:{padding:`${i.sp0} ${i.sp0} ${i.sp3} ${i.sp0}`}})]})})]})},Dt=o.div`
1
+ import{a9 as rt,c as lt,q as we,aP as xe,aa as Se,cS as Ce,O as be,aU as he,j as t,fn as ct,h as dt,y as h,bF as ut,P as pt,ad as ke,e6 as ft,bA as ht,u as n,aX as mt,aO as gt,n as yt,c5 as wt,aM as xt,cY as St,aQ as Ct,o as i,am as Te,_ as bt,A as kt,b as Tt,H as Ot}from"./index-MAXVX6UR.js";import{b as a,n as o}from"./vendor-Bs1fkIUX.js";import{D as vt}from"./HelpButton-38HaKgFL-BugYIsvp.js";import{r as It}from"./verification-CW6uEyev-CQXAdM_w.js";import{K as me}from"./SetUpDefaultSection-CR4EJd0L-DR8b1nlJ.js";import{f as At}from"./SpendMgmtSetupAccountSection-BstM92cv-D_s447NX.js";import Pt from"./PortfolioAllocationFormPage-T83_xyer-BkoO9beS.js";import $t from"./TreasuryTransferOrReviewPage-WB0pVkO6-BWBLW8Tp.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-2tPtQeqB-QatkmFKh.js";import"./ChargeCardUtils-Cx6ntaue-CziTslau.js";import"./CreditCardPaymentPlgSection-L8WvXQsE-Dx-X3Ggn.js";import"./ChaseOverlay-1PyDzocW-DV1roPs3.js";import"./PortfolioDetails-6ElQWU58-ByHc7XYH.js";import"./treasuryColorHelper--7Rf6Fm8-BdEMhZbj.js";const Et=(e,g)=>`${e}.${g}`,G={labelWidth:new h(145,155),navBarContainerPaddingYaxis:new h(10,n[3]),containerPaddingLeft:new h(n[3],n[6],n[8]),containerPaddingRight:new h(n[3],n[6],n[8])},Lt={stepTitle:new Tt("h6Regular","h5Regular")},Oe=be.getLocalizedStrings(),{common:ee,spendManagement:{treasury:{transferDrawer:{review:{footNoteForVerification:Ft}}}}}=Oe,l=Oe.commonSetUp.businessVerification,te=l.sourceOfFundOptions,F="additionalVerificationFields",jt=({companyOfficer:e,companyDetails:g,updateStatus:S,isDetailsSubmitted:b,isTransferInitiated:s,transferDetails:P,skipTransferStep:D,onClose:$,onAdditionalVerificationFieldsChanged:R,onSendForVerificationClick:w,onCloseOverlay:k})=>{const m=we(),X=G.labelWidth.value(m),E=xe(S.fetchState),T=Se({mode:"all",reValidateMode:"onChange",defaultValues:a.useMemo(()=>({[F]:{sourceOfFunds:{selectedOption:g?.sourceOfFunds??"",allOptions:Object.keys(te)}}}),[g?.sourceOfFunds])}),q=p=>te[p]??p,Y=T.handleSubmit(()=>{w(e?.officerType??"Officer_1",s)}),J=async(p,O)=>{R(O[F])};return a.useEffect(()=>{const p=T.watch((O,{name:V})=>{V!=null&&O!=null&&Ce(()=>J(V,O))});return()=>{p.unsubscribe()}}),E==="In-Progress"&&S.fetchState==="Completed"||b===!0?t.jsxs(Wt,{children:[t.jsxs(Bt,{children:[t.jsx(It,{}),t.jsx(Nt,{windowSize:m,children:s===!0?l.submittedTitleWithTransfer:l.submittedTitle}),t.jsx(_t,{children:s===!0?l.submittedDescriptionWithTransfer.replace("__amount__",mt(gt(P?.treasuryTransferMoneyLocalData?.amount?.amount??0),P?.treasuryTransferMoneyLocalData?.amount?.amount??0,ee.currency.currencySymbol)).replace("__account__",P?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):l.submittedDescription})]}),t.jsx(yt,{label:l.submittedButton,onClick:k,variant:"primary"})]}):t.jsxs(Dt,{windowSize:m,children:[t.jsx(Rt,{windowSize:m,children:t.jsx(wt,{title:"Back",enterTouchDelay:600,placement:"bottom",children:t.jsx(Vt,{"data-testid":xt("nav-bar-back-portfolio-allocation"),onClick:k||$})})}),t.jsxs(Mt,{windowSize:m,children:[t.jsx(Ut,{windowSize:m,children:D===!0?l.verifyBusinessDetailsWithoutTransfer:l.verifyBusinessDetails}),t.jsx(Ht,{children:t.jsxs(Gt,{children:[t.jsx(ge,{}),D!==!0&&t.jsx(ge,{}),t.jsx(Xt,{})]})})]}),t.jsx(ve,{children:l.verifyBusinessDetailsDescription}),t.jsx(ke,{...T,children:t.jsxs("form",{id:F,onSubmit:Y,children:[t.jsx(zt,{children:t.jsx(St,{label:{label:l.sourceOfFundsLabel,width:X},style:{width:"auto"},additionalInfoLabel:l.sourceOfFundsAdditionalInfo,singleSelectField:{singleSelect:{name:Et(F,"sourceOfFunds"),placeholder:l.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:q,showTickMark:!1,sortOptions:!1},defaultValue:{selectedOption:g?.sourceOfFunds??"",allOptions:Object.keys(te)},registerOptions:{required:!0,validate:p=>!!p?.selectedOption}},isFunctional:!0,errorInfoLabel:l.sourceOfFundsError.replace("_product_type_","business verification")})}),t.jsx(Ct,{formId:F,primaryBtn:{label:ee.footer.submit,style:{width:"auto",minWidth:m==="small"?"auto":"83px"},isLoading:S.fetchState==="In-Progress"},cancelBtn:{label:ee.footer.back,style:{width:m==="small"?"auto":"83px"},onClick:$},style:{position:"absolute",width:"100%",paddingTop:i.sp2,paddingBottom:i.sp2},helperText:s===!0?Ft:void 0,helperStyle:{padding:`${i.sp0} ${i.sp0} ${i.sp3} ${i.sp0}`}})]})})]})},Dt=o.div`
2
2
  height: auto;
3
3
  padding-left: ${e=>`${G.containerPaddingLeft.valuePx(e.windowSize)}`};
4
4
  padding-right: ${e=>`${G.containerPaddingRight.valuePx(e.windowSize)}`};
@@ -50,13 +50,13 @@ import{a9 as rt,d as lt,q as we,aP as xe,aa as Se,cS as Ce,O as be,aU as he,j as
50
50
  justify-content: center;
51
51
  gap: ${i.sp5};
52
52
  margin: auto;
53
- `,Mt=o.div`
53
+ `,Bt=o.div`
54
54
  display: flex;
55
55
  flex-direction: column;
56
56
  align-items: center;
57
57
  justify-content: center;
58
58
  gap: ${i.sp3};
59
- `,Bt=o.div`
59
+ `,Mt=o.div`
60
60
  display: flex;
61
61
  flex-direction: column;
62
62
  gap: ${i.sp3};
@@ -106,7 +106,7 @@ import{a9 as rt,d as lt,q as we,aP as xe,aa as Se,cS as Ce,O as be,aU as he,j as
106
106
  transform: translateX(0%);
107
107
  }
108
108
  }
109
- `,qt=e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M5.62069 7.42676H2.09973",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M21.8994 7.42676H10.1617",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M13.8383 16.6963H2.09973",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M21.8994 16.6963H18.3793",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M5.62061 7.2989C5.62061 7.59707 5.67934 7.89233 5.79344 8.16781C5.90755 8.44329 6.0748 8.6936 6.28564 8.90444C6.49649 9.11528 6.74679 9.28253 7.02227 9.39664C7.29775 9.51075 7.59301 9.56948 7.89118 9.56948C8.18936 9.56948 8.48462 9.51075 8.7601 9.39664C9.03558 9.28253 9.28588 9.11528 9.49672 8.90444C9.70757 8.6936 9.87482 8.44329 9.98892 8.16781C10.103 7.89233 10.1618 7.59707 10.1618 7.2989C10.1618 6.6967 9.92254 6.11917 9.49672 5.69336C9.07091 5.26754 8.49338 5.02832 7.89118 5.02832C7.28899 5.02832 6.71146 5.26754 6.28564 5.69336C5.85983 6.11917 5.62061 6.6967 5.62061 7.2989Z",stroke:"currentColor",strokeWidth:1.5}),a.createElement("path",{d:"M13.8383 16.6983C13.8383 17.3005 14.0775 17.878 14.5033 18.3039C14.9291 18.7297 15.5066 18.9689 16.1088 18.9689C16.711 18.9689 17.2886 18.7297 17.7144 18.3039C18.1402 17.878 18.3794 17.3005 18.3794 16.6983C18.3794 16.0961 18.1402 15.5186 17.7144 15.0928C17.2886 14.667 16.711 14.4277 16.1088 14.4277C15.5066 14.4277 14.9291 14.667 14.5033 15.0928C14.0775 15.5186 13.8383 16.0961 13.8383 16.6983Z",stroke:"currentColor",strokeWidth:1.5})),u={titleWidth:new h(343,580,726,826),setupDetailsRowGap:new h(12,n[5],n[5]),sectionRowGap:new h(n[5],n[9],n[9]),iconWidthHeight:new h(20,n[4]),subTitlePaddingTop:new h(12,n[3]),subTitlePaddingBottom:new h(n[3],n[3]),overlayWidth:new h(100,100,59)},Yt="treasurySetUpPage",H="payAccount",j={VERIFIED:"verified",PENDING_REVIEW:"pending_review"},B={IN_PROGRESS:"In-Progress",COMPLETED:"Completed",NOT_STARTED:"Not-Started"},f={PORTFOLIO_ALLOCATION:"portfolio-allocation",TRANSFER:"transfer",ADDITIONAL_VERIFICATION:"additional-verification"},{commonSetUp:Jt,spendManagement:Kt}=be.getLocalizedStrings(),{zeniAccounts:Zt,treasury:C}=Kt,{setUp:U}=Jt,vi=({isDisabled:e,meetingUrl:g,currentTenant:S,businessVerificationDetails:b,connectedAccountProvider:s,accountsPromoConfig:P,isAccountsEnabled:D,showTreasurySetupOverlay:$,transactions:R,treasurySetupView:w,transferDetails:k,isFirstTransfer:m,maxInsuredAmount:X,setShowTreasurySetupOverlay:E,onFetchLinkTokenClick:T,onEnableTreasuryClick:q,onUpdatePrimaryFundingAccount:Y,onUpdateTreasuryClick:J,onBusinessVerificationSectionClick:p,onUpdatePaymentAccountStatus:O,onUpdatePaymentAccountLoginStatus:V,onEstablishConnectionClick:ie,onEstablishConnectionSuccess:Ie,onClickMenuIcon:Ae,onAdditionalVerificationFieldsChanged:Pe,onSendForVerificationClick:$e,onConfirmFundAllocation:Ee,onSignUpClick:Le,onNavigateToDashboard:Fe,onUpdateFundAllocation:je,onTransferSaveChangesToLocalStore:De,onOverlayClose:Re})=>{const v=rt().analytics,N=lt(),c=we(),[_,I]=a.useState(f.PORTFOLIO_ALLOCATION),[oe,Ve]=a.useState(!1),[Ne,ne]=a.useState(!1),[_e,ae]=a.useState(!1),{fetchState:se,companyTreasuryInfo:z,isRefreshingViewInBackground:re,updateStatus:ze,plaidConnectionDetails:le,allBankAccounts:We,selectedCompanyOfficer:Me,primaryFundingAccount:A,allFundingAccounts:ce,currentAllocation:Be,portfolioAllocationUpdateStatus:K,isAtomicAccountExists:Ue}=w,de=xe(K.fetchState),L=S.company?.companyBillPayInfo?.businessVerificationStatus,ue=L?.code===j.PENDING_REVIEW||L?.code===j.VERIFIED,{companyDetailsLocalData:He}=b,Z=k.transferMoneyParties.length>0,W=Se({mode:"all",reValidateMode:"onChange",defaultValues:a.useMemo(()=>ye(w),[w]),values:ye(w)}),Ge=W.handleSubmit(r=>{q()}),Xe=(r,x)=>{if(r===x)return;const d=ce.find(y=>y.id===r);d!=null&&Y(r,d.accType)},qe=(r,x,d)=>{if(A?.id==null||r===d)return;const y=x.find(st=>st.value===r);y!=null&&typeof y.label=="string"&&v.trackConnectBankLink(y.value,y.label,"zeni_treasury"),J(r,A.id,A.accType)},Ye=async(r,x)=>{if(!r.includes(H))return;const d=x[H];if(r.includes("fundingAccount")){const y=d.fundingAccount.selectedOption;y!=null&&Xe(y,A?.id)}else d.account.selectedOption!=null&&qe(d.account.selectedOption,d.account.allOptions,A?.zeniAccountId)};a.useEffect(()=>{const r=W.watch((x,{name:d})=>{d!=null&&x!=null&&Ce(()=>Ye(d,x))});return()=>{r.unsubscribe()}},[W]),a.useEffect(()=>{de===B.IN_PROGRESS&&K.fetchState===B.COMPLETED&&_===f.PORTFOLIO_ALLOCATION&&E(!1)},[de,K.fetchState]);const pe=z?.businessVerificationStatus?.code===j.VERIFIED,Je=z?.businessVerificationStatus?.code===j.PENDING_REVIEW,Ke=pe||Je,Ze=se===B.IN_PROGRESS||se===B.NOT_STARTED,Qe=C.setup.setupSubTitle,Q=N.mode==="light"?new he(N.colors.brandColorJadeLight):new he(N.colors.brandColorJadeDark),et=()=>{Ve(!0),E(!0),I(f.PORTFOLIO_ALLOCATION)},tt=()=>{Ee(),oe||(v.trackTreasuryVerificationNavigation("next",L?.code??""),Z?I(f.TRANSFER):fe())},it=()=>{ae(!0),ne(!0)},fe=()=>{ae(!1),ue?I(f.ADDITIONAL_VERIFICATION):p(!0,!1)},M=()=>{E(!1),Re?.()},ot=()=>{v.trackTreasuryVerificationNavigation("back",L?.code??""),I(f.PORTFOLIO_ALLOCATION)},nt=()=>{v.trackTreasuryVerificationNavigation("back",L?.code??""),I(f.TRANSFER)},at=()=>{ue?I(f.ADDITIONAL_VERIFICATION):p(!0,!0)};return t.jsxs(ei,{children:[t.jsxs(ct,{anchor:"right",open:$,onClose:M,PaperProps:{style:{width:u.overlayWidth.valuePercentage(c),boxShadow:"none"}},style:{backgroundColor:dt.drawerBackground},transitionDuration:250,children:[_===f.PORTFOLIO_ALLOCATION&&t.jsx(Pt,{treasurySetupView:w,onUpdateFundAllocation:je,onBackClick:M,onNextClick:tt,isReadOnly:$?!1:Ue&&Be!=null,isEditMode:oe,skipTransferStep:!Z}),_===f.TRANSFER&&t.jsx($t,{isFirstTransfer:m,maxInsuredAmount:X,transferDetails:k,onSaveChangesToLocalStore:De,treasurySetupView:w,showReviewContent:Ne,setShowReviewContent:ne,plaidConnectionDetails:le,onReviewClick:it,onBackClick:ot,onCancelClick:M,onEstablishConnectionClick:ie,onFetchLinkTokenClick:T,onSkipClick:fe,onTransferClick:at,isOnSetup:!0}),_===f.ADDITIONAL_VERIFICATION&&t.jsx(jt,{updateStatus:ze,companyOfficer:Me,companyDetails:He,isDetailsSubmitted:Ke,isTransferInitiated:_e,transferDetails:k,onClose:nt,onCloseOverlay:M,onAdditionalVerificationFieldsChanged:Pe,onSendForVerificationClick:$e,skipTransferStep:!Z})]}),t.jsx(ut,{title:C.setup.setupTitle,backgroundColor:N.colors.grey4,style:{zIndex:3},onBackClick:Fe,showMenuIcon:c==="medium-compact"||c==="small",onClickMenuIcon:Ae,source:"treasury"}),t.jsxs(Qt,{windowSize:c,children:[t.jsx(ti,{windowSize:c,children:Qe}),Ze?t.jsx(ii,{children:t.jsx(pt,{size:"ExtraLarge",start:!0})}):t.jsx(ke,{...W,children:t.jsx("form",{id:ni(Yt),onSubmit:Ge,children:t.jsxs(oi,{windowSize:c,children:[t.jsx(me,{onClick:et,title:C.setup.title,subTitle:C.setup.subTitle,header:C.setup.header,icon:{element:t.jsx(qt,{width:u.iconWidthHeight.valuePx(c),height:u.iconWidthHeight.valuePx(c)}),color:Q},isLoading:re,isActiveWhileLoading:!0}),t.jsx(me,{onClick:()=>p(!1,!1),title:U.businessVerificationTitle,subTitle:U.businessVerificationSubTitle,header:U.businessVerificationHeader,icon:{element:t.jsx(ft,{width:u.iconWidthHeight.valuePx(c),height:u.iconWidthHeight.valuePx(c)}),color:Q},status:z?.businessVerificationStatus,isLoading:re,isActiveWhileLoading:!0,additionalInfo:z?.businessVerificationStatus?.code===j.PENDING_REVIEW?R!=null&&R.length>0?C.setup.verificationInProgress:U.businessVerificationAdditionalInfo:void 0}),t.jsx(At,{connectedAccountProvider:s,plaidConnectionDetails:le,allBankAccounts:We,sectionId:H,isDisabled:e,header:Zt.accountSectionHeader,onFetchLinkTokenClick:T,onEstablishConnectionClick:ie,onUpdatePaymentAccountStatus:O,onUpdatePaymentAccountLoginStatus:V,onEstablishConnectionSuccess:Ie,icon:{element:t.jsx(ht,{width:u.iconWidthHeight.valuePx(c),height:u.iconWidthHeight.valuePx(c)}),color:Q},analytics:v,productType:"zeni_treasury",onSignUpClick:Le,primaryFundingAccount:A,isAccountsEnabled:D,allFundingAccounts:ce,pageName:C.setup.setupPageName,accountsPromoConfig:P})]})})})]}),t.jsx(vt,{isFooterRendered:pe,meetingUrl:g,analytics:v,productType:"zeni_treasury"})]})};function ye(e){const{allBankAccounts:g,allFundingAccounts:S,primaryFundingAccount:b}=e;return{[H]:{fundingAccount:{selectedOption:b?.id,allOptions:S.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:b?.zeniAccountId,allOptions:g.map(s=>({label:s.accountName,value:s.accountId}))}}}}const Qt=o.div`
109
+ `,qt=e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M5.62069 7.42676H2.09973",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M21.8994 7.42676H10.1617",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M13.8383 16.6963H2.09973",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M21.8994 16.6963H18.3793",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M5.62061 7.2989C5.62061 7.59707 5.67934 7.89233 5.79344 8.16781C5.90755 8.44329 6.0748 8.6936 6.28564 8.90444C6.49649 9.11528 6.74679 9.28253 7.02227 9.39664C7.29775 9.51075 7.59301 9.56948 7.89118 9.56948C8.18936 9.56948 8.48462 9.51075 8.7601 9.39664C9.03558 9.28253 9.28588 9.11528 9.49672 8.90444C9.70757 8.6936 9.87482 8.44329 9.98892 8.16781C10.103 7.89233 10.1618 7.59707 10.1618 7.2989C10.1618 6.6967 9.92254 6.11917 9.49672 5.69336C9.07091 5.26754 8.49338 5.02832 7.89118 5.02832C7.28899 5.02832 6.71146 5.26754 6.28564 5.69336C5.85983 6.11917 5.62061 6.6967 5.62061 7.2989Z",stroke:"currentColor",strokeWidth:1.5}),a.createElement("path",{d:"M13.8383 16.6983C13.8383 17.3005 14.0775 17.878 14.5033 18.3039C14.9291 18.7297 15.5066 18.9689 16.1088 18.9689C16.711 18.9689 17.2886 18.7297 17.7144 18.3039C18.1402 17.878 18.3794 17.3005 18.3794 16.6983C18.3794 16.0961 18.1402 15.5186 17.7144 15.0928C17.2886 14.667 16.711 14.4277 16.1088 14.4277C15.5066 14.4277 14.9291 14.667 14.5033 15.0928C14.0775 15.5186 13.8383 16.0961 13.8383 16.6983Z",stroke:"currentColor",strokeWidth:1.5})),u={titleWidth:new h(343,580,726,826),setupDetailsRowGap:new h(12,n[5],n[5]),sectionRowGap:new h(n[5],n[9],n[9]),iconWidthHeight:new h(20,n[4]),subTitlePaddingTop:new h(12,n[3]),subTitlePaddingBottom:new h(n[3],n[3]),overlayWidth:new h(100,100,59)},Yt="treasurySetUpPage",H="payAccount",j={VERIFIED:"verified",PENDING_REVIEW:"pending_review"},M={IN_PROGRESS:"In-Progress",COMPLETED:"Completed",NOT_STARTED:"Not-Started"},f={PORTFOLIO_ALLOCATION:"portfolio-allocation",TRANSFER:"transfer",ADDITIONAL_VERIFICATION:"additional-verification"},{commonSetUp:Jt,spendManagement:Kt}=be.getLocalizedStrings(),{zeniAccounts:Zt,treasury:C}=Kt,{setUp:U}=Jt,vi=({isDisabled:e,meetingUrl:g,currentTenant:S,businessVerificationDetails:b,connectedAccountProvider:s,accountsPromoConfig:P,isAccountsEnabled:D,showTreasurySetupOverlay:$,transactions:R,treasurySetupView:w,transferDetails:k,isFirstTransfer:m,maxInsuredAmount:X,setShowTreasurySetupOverlay:E,onFetchLinkTokenClick:T,onEnableTreasuryClick:q,onUpdatePrimaryFundingAccount:Y,onUpdateTreasuryClick:J,onBusinessVerificationSectionClick:p,onUpdatePaymentAccountStatus:O,onUpdatePaymentAccountLoginStatus:V,onEstablishConnectionClick:ie,onEstablishConnectionSuccess:Ie,onClickMenuIcon:Ae,onAdditionalVerificationFieldsChanged:Pe,onSendForVerificationClick:$e,onConfirmFundAllocation:Ee,onSignUpClick:Le,onNavigateToDashboard:Fe,onUpdateFundAllocation:je,onTransferSaveChangesToLocalStore:De,onOverlayClose:Re})=>{const v=rt().analytics,N=lt(),c=we(),[_,I]=a.useState(f.PORTFOLIO_ALLOCATION),[oe,Ve]=a.useState(!1),[Ne,ne]=a.useState(!1),[_e,ae]=a.useState(!1),{fetchState:se,companyTreasuryInfo:z,isRefreshingViewInBackground:re,updateStatus:ze,plaidConnectionDetails:le,allBankAccounts:We,selectedCompanyOfficer:Be,primaryFundingAccount:A,allFundingAccounts:ce,currentAllocation:Me,portfolioAllocationUpdateStatus:K,isAtomicAccountExists:Ue}=w,de=xe(K.fetchState),L=S.company?.companyBillPayInfo?.businessVerificationStatus,ue=L?.code===j.PENDING_REVIEW||L?.code===j.VERIFIED,{companyDetailsLocalData:He}=b,Z=k.transferMoneyParties.length>0,W=Se({mode:"all",reValidateMode:"onChange",defaultValues:a.useMemo(()=>ye(w),[w]),values:ye(w)}),Ge=W.handleSubmit(r=>{q()}),Xe=(r,x)=>{if(r===x)return;const d=ce.find(y=>y.id===r);d!=null&&Y(r,d.accType)},qe=(r,x,d)=>{if(A?.id==null||r===d)return;const y=x.find(st=>st.value===r);y!=null&&typeof y.label=="string"&&v.trackConnectBankLink(y.value,y.label,"zeni_treasury"),J(r,A.id,A.accType)},Ye=async(r,x)=>{if(!r.includes(H))return;const d=x[H];if(r.includes("fundingAccount")){const y=d.fundingAccount.selectedOption;y!=null&&Xe(y,A?.id)}else d.account.selectedOption!=null&&qe(d.account.selectedOption,d.account.allOptions,A?.zeniAccountId)};a.useEffect(()=>{const r=W.watch((x,{name:d})=>{d!=null&&x!=null&&Ce(()=>Ye(d,x))});return()=>{r.unsubscribe()}},[W]),a.useEffect(()=>{de===M.IN_PROGRESS&&K.fetchState===M.COMPLETED&&_===f.PORTFOLIO_ALLOCATION&&E(!1)},[de,K.fetchState]);const pe=z?.businessVerificationStatus?.code===j.VERIFIED,Je=z?.businessVerificationStatus?.code===j.PENDING_REVIEW,Ke=pe||Je,Ze=se===M.IN_PROGRESS||se===M.NOT_STARTED,Qe=C.setup.setupSubTitle,Q=N.mode==="light"?new he(N.colors.brandColorJadeLight):new he(N.colors.brandColorJadeDark),et=()=>{Ve(!0),E(!0),I(f.PORTFOLIO_ALLOCATION)},tt=()=>{Ee(),oe||(v.trackTreasuryVerificationNavigation("next",L?.code??""),Z?I(f.TRANSFER):fe())},it=()=>{ae(!0),ne(!0)},fe=()=>{ae(!1),ue?I(f.ADDITIONAL_VERIFICATION):p(!0,!1)},B=()=>{E(!1),Re?.()},ot=()=>{v.trackTreasuryVerificationNavigation("back",L?.code??""),I(f.PORTFOLIO_ALLOCATION)},nt=()=>{v.trackTreasuryVerificationNavigation("back",L?.code??""),I(f.TRANSFER)},at=()=>{ue?I(f.ADDITIONAL_VERIFICATION):p(!0,!0)};return t.jsxs(ei,{children:[t.jsxs(ct,{anchor:"right",open:$,onClose:B,PaperProps:{style:{width:u.overlayWidth.valuePercentage(c),boxShadow:"none"}},style:{backgroundColor:dt.drawerBackground},transitionDuration:250,children:[_===f.PORTFOLIO_ALLOCATION&&t.jsx(Pt,{treasurySetupView:w,onUpdateFundAllocation:je,onBackClick:B,onNextClick:tt,isReadOnly:$?!1:Ue&&Me!=null,isEditMode:oe,skipTransferStep:!Z}),_===f.TRANSFER&&t.jsx($t,{isFirstTransfer:m,maxInsuredAmount:X,transferDetails:k,onSaveChangesToLocalStore:De,treasurySetupView:w,showReviewContent:Ne,setShowReviewContent:ne,plaidConnectionDetails:le,onReviewClick:it,onBackClick:ot,onCancelClick:B,onEstablishConnectionClick:ie,onFetchLinkTokenClick:T,onSkipClick:fe,onTransferClick:at,isOnSetup:!0}),_===f.ADDITIONAL_VERIFICATION&&t.jsx(jt,{updateStatus:ze,companyOfficer:Be,companyDetails:He,isDetailsSubmitted:Ke,isTransferInitiated:_e,transferDetails:k,onClose:nt,onCloseOverlay:B,onAdditionalVerificationFieldsChanged:Pe,onSendForVerificationClick:$e,skipTransferStep:!Z})]}),t.jsx(ut,{title:C.setup.setupTitle,backgroundColor:N.colors.grey4,style:{zIndex:3},onBackClick:Fe,showMenuIcon:c==="medium-compact"||c==="small",onClickMenuIcon:Ae,source:"treasury"}),t.jsxs(Qt,{windowSize:c,children:[t.jsx(ti,{windowSize:c,children:Qe}),Ze?t.jsx(ii,{children:t.jsx(pt,{size:"ExtraLarge",start:!0})}):t.jsx(ke,{...W,children:t.jsx("form",{id:ni(Yt),onSubmit:Ge,children:t.jsxs(oi,{windowSize:c,children:[t.jsx(me,{onClick:et,title:C.setup.title,subTitle:C.setup.subTitle,header:C.setup.header,icon:{element:t.jsx(qt,{width:u.iconWidthHeight.valuePx(c),height:u.iconWidthHeight.valuePx(c)}),color:Q},isLoading:re,isActiveWhileLoading:!0}),t.jsx(me,{onClick:()=>p(!1,!1),title:U.businessVerificationTitle,subTitle:U.businessVerificationSubTitle,header:U.businessVerificationHeader,icon:{element:t.jsx(ft,{width:u.iconWidthHeight.valuePx(c),height:u.iconWidthHeight.valuePx(c)}),color:Q},status:z?.businessVerificationStatus,isLoading:re,isActiveWhileLoading:!0,additionalInfo:z?.businessVerificationStatus?.code===j.PENDING_REVIEW?R!=null&&R.length>0?C.setup.verificationInProgress:U.businessVerificationAdditionalInfo:void 0}),t.jsx(At,{connectedAccountProvider:s,plaidConnectionDetails:le,allBankAccounts:We,sectionId:H,isDisabled:e,header:Zt.accountSectionHeader,onFetchLinkTokenClick:T,onEstablishConnectionClick:ie,onUpdatePaymentAccountStatus:O,onUpdatePaymentAccountLoginStatus:V,onEstablishConnectionSuccess:Ie,icon:{element:t.jsx(ht,{width:u.iconWidthHeight.valuePx(c),height:u.iconWidthHeight.valuePx(c)}),color:Q},analytics:v,productType:"zeni_treasury",onSignUpClick:Le,primaryFundingAccount:A,isAccountsEnabled:D,allFundingAccounts:ce,pageName:C.setup.setupPageName,accountsPromoConfig:P})]})})})]}),t.jsx(vt,{isFooterRendered:pe,meetingUrl:g,analytics:v,productType:"zeni_treasury"})]})};function ye(e){const{allBankAccounts:g,allFundingAccounts:S,primaryFundingAccount:b}=e;return{[H]:{fundingAccount:{selectedOption:b?.id,allOptions:S.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:b?.zeniAccountId,allOptions:g.map(s=>({label:s.accountName,value:s.accountId}))}}}}const Qt=o.div`
110
110
  display: flex;
111
111
  justify-content: flex-start;
112
112
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{d as j,q as v,j as t,bF as z,O as P,b3 as C,o as r,h as c,cH as I,y as R,u as d,am as T}from"./index-TYkG9rxW.js";import{b as m,n as o}from"./vendor-Bs1fkIUX.js";import{$ as B}from"./BoxItem-COIjjFrn-BdkILoXu.js";import{o as E}from"./commonDimensions-C32v1F7H-73JTdKL8.js";import{O as L}from"./StatementItem-BVIVLdDn-Z5Lg6CTz.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"./downloadPdf-D7p3yKmg-DnkIBRMw.js";const h=P.getLocalizedStrings().spendManagement.treasury.statements,x={listItemMargin:new R(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:u,downloadEndPoint:w,statementListView:a,onBackClick:b})=>{const g=j(),i=v(),f=m.createRef(),y=m.useRef(),$=a.statements.length===0,k=()=>E.transactionItemHeightResponsive.value(i),S=({index:s,style:n})=>{const l=a.statements[s];return $===!1?t.jsx(p,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(L,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:u,downloadEndPoint:w,documentType:"treasuryStatement",boxType:B(s,a.statements.length)},l.id)}):t.jsx(M,{style:{...n},children:t.jsx(O,{children:t.jsx(p,{windowSize:i,children:t.jsx(N,{children:h.noStatements})})})})};return t.jsxs(H,{children:[t.jsx(z,{title:h.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:b,source:"treasury"}),t.jsx(K,{windowSize:i,children:t.jsx(C,{children:({height:s,width:n})=>t.jsx(V,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},M=o.div``,p=o.div`
1
+ import{c as j,q as v,j as t,bF as z,O as P,b3 as C,o as r,h as c,cH as I,y as R,u as d,am as T}from"./index-MAXVX6UR.js";import{b as m,n as o}from"./vendor-Bs1fkIUX.js";import{$ as B}from"./BoxItem-D4K0YgBP-Bm_px4kT.js";import{o as E}from"./commonDimensions-CWOH4KIa-zIW9i9kk.js";import{O as L}from"./StatementItem-DHN42swg-QQn_8xP5.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"./downloadPdf-DmVZhHLH-D1xNlFUJ.js";const h=P.getLocalizedStrings().spendManagement.treasury.statements,x={listItemMargin:new R(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:u,downloadEndPoint:w,statementListView:a,onBackClick:b})=>{const g=j(),i=v(),f=m.createRef(),y=m.useRef(),$=a.statements.length===0,k=()=>E.transactionItemHeightResponsive.value(i),S=({index:s,style:n})=>{const l=a.statements[s];return $===!1?t.jsx(p,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(L,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:u,downloadEndPoint:w,documentType:"treasuryStatement",boxType:B(s,a.statements.length)},l.id)}):t.jsx(M,{style:{...n},children:t.jsx(O,{children:t.jsx(p,{windowSize:i,children:t.jsx(N,{children:h.noStatements})})})})};return t.jsxs(H,{children:[t.jsx(z,{title:h.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:b,source:"treasury"}),t.jsx(K,{windowSize:i,children:t.jsx(C,{children:({height:s,width:n})=>t.jsx(V,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},M=o.div``,p=o.div`
2
2
  margin: ${e=>`${r.sp0} ${x.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{d as j,q as v,j as t,bF as L,O as z,b3 as P,o as r,h as c,cH as C,y as T,u as d,am as I}from"./index-TYkG9rxW.js";import{b as h,n as o}from"./vendor-Bs1fkIUX.js";import{$ as R}from"./BoxItem-COIjjFrn-BdkILoXu.js";import{o as B}from"./commonDimensions-C32v1F7H-73JTdKL8.js";import{O as E}from"./StatementItem-BVIVLdDn-Z5Lg6CTz.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"./downloadPdf-D7p3yKmg-DnkIBRMw.js";const m=z.getLocalizedStrings().spendManagement.treasury.taxLetter,x={listItemMargin:new T(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:w,downloadEndPoint:b,taxLetterListView:a,onBackClick:u})=>{const g=j(),i=v(),f=h.createRef(),y=h.useRef(),$=a.taxLetters.length===0,k=()=>B.transactionItemHeightResponsive.value(i),S=({index:s,style:n})=>{const l=a.taxLetters[s];return $===!1?t.jsx(p,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(E,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:w,downloadEndPoint:b,documentType:"taxLetter",boxType:R(s,a.taxLetters.length)},l.id)}):t.jsx(M,{style:{...n},children:t.jsx(O,{children:t.jsx(p,{windowSize:i,children:t.jsx(N,{children:m.noTaxLetter})})})})};return t.jsxs(H,{children:[t.jsx(L,{title:m.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:u,source:"treasury"}),t.jsx(K,{windowSize:i,children:t.jsx(P,{children:({height:s,width:n})=>t.jsx(V,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.taxLetters.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},M=o.div``,p=o.div`
1
+ import{c as j,q as v,j as t,bF as L,O as z,b3 as P,o as r,h as c,cH as C,y as T,u as d,am as I}from"./index-MAXVX6UR.js";import{b as h,n as o}from"./vendor-Bs1fkIUX.js";import{$ as R}from"./BoxItem-D4K0YgBP-Bm_px4kT.js";import{o as B}from"./commonDimensions-CWOH4KIa-zIW9i9kk.js";import{O as E}from"./StatementItem-DHN42swg-QQn_8xP5.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"./downloadPdf-DmVZhHLH-D1xNlFUJ.js";const m=z.getLocalizedStrings().spendManagement.treasury.taxLetter,x={listItemMargin:new T(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:w,downloadEndPoint:b,taxLetterListView:a,onBackClick:u})=>{const g=j(),i=v(),f=h.createRef(),y=h.useRef(),$=a.taxLetters.length===0,k=()=>B.transactionItemHeightResponsive.value(i),S=({index:s,style:n})=>{const l=a.taxLetters[s];return $===!1?t.jsx(p,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(E,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:w,downloadEndPoint:b,documentType:"taxLetter",boxType:R(s,a.taxLetters.length)},l.id)}):t.jsx(M,{style:{...n},children:t.jsx(O,{children:t.jsx(p,{windowSize:i,children:t.jsx(N,{children:m.noTaxLetter})})})})};return t.jsxs(H,{children:[t.jsx(L,{title:m.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:u,source:"treasury"}),t.jsx(K,{windowSize:i,children:t.jsx(P,{children:({height:s,width:n})=>t.jsx(V,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.taxLetters.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},M=o.div``,p=o.div`
2
2
  margin: ${e=>`${r.sp0} ${x.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,O as $e,aN as q,n as qe,P as at,aQ as nt,o as t,y as w,A as Oe,s as zt,b6 as Dt,d as Lt,aP as Z,c5 as Ft,ft as st,c as 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 Ut,cL as Kt,bz as Zt,bX as Qt,fU as Ht,g1 as er,aX as tr}from"./index-TYkG9rxW.js";import{n as o,b as y}from"./vendor-Bs1fkIUX.js";import{q as pt}from"./PortfolioDetails-D4yT8r35-D0ar_g4P.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-13LJ_xhk-DZAJRVzv.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",$)},A=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:()=>A(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`
1
+ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,O as $e,aN as q,n as qe,P 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 Q,c5 as Ft,ft as st,b as 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 Ut,cL as Kt,bz as Qt,bX as Zt,fU as Ht,g1 as er,aX as tr}from"./index-MAXVX6UR.js";import{n as o,b as y}from"./vendor-Bs1fkIUX.js";import{q as pt}from"./PortfolioDetails-6ElQWU58-ByHc7XYH.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--7Rf6Fm8-BdEMhZbj.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",$)},A=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:()=>A(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;
@@ -60,7 +60,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,O as $e,aN as q,n as qe,P as at,
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: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(),A=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(Ue,{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(Ue,{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:A,toAccount:P,transferDetails:e})}),r.jsx(zr,{children:r.jsx(pt,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:Ar(e),fundAllocations:kr(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 A=!1;return l===!0&&h!=null&&p?.accountBalance?.available?.amount!=null&&(A=L.checkIfLowBalance(h,p.accountBalance.available)),i===!0&&!c?r.jsx(Ur,{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),A?r.jsx(Kr,{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():"",Ar=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},kr=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`
63
+ `,Z={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(),A=Lt(),f=Q(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(Ue,{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(Ue,{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:A,toAccount:P,transferDetails:e})}),r.jsx(zr,{children:r.jsx(pt,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:Ar(e),fundAllocations:kr(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(Zr,{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 A=!1;return l===!0&&h!=null&&p?.accountBalance?.available?.amount!=null&&(A=L.checkIfLowBalance(h,p.accountBalance.available)),i===!0&&!c?r.jsx(Ur,{children:p?.maskedAccountNumber}):r.jsxs(Jr,{className:"option-sublabel",children:[r.jsx(Ce,{children:p?.maskedAccountNumber}),p?.accountBalance?.available?r.jsx(Qr,{className:"dot"}):null,p?.accountBalance?.available?r.jsxs(Ce,{children:[q("0,0[.]00",p.accountBalance.available),A?r.jsx(Kr,{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():"",Ar=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},kr=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)`
@@ -76,7 +76,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,O as $e,aN as q,n as qe,P as at,
76
76
  border: 1px solid ${e=>e.theme.colors.grey3};
77
77
  box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
78
78
  border-radius: ${t.sp2};
79
- padding: ${e=>`${Q.elementsContainerPadding.valuePx(e.windowSize)}`};
79
+ padding: ${e=>`${Z.elementsContainerPadding.valuePx(e.windowSize)}`};
80
80
  gap: ${t.sp4};
81
81
  ${e=>e.windowSize==="small"&&`
82
82
  width: auto;
@@ -128,8 +128,8 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,O as $e,aN as q,n as qe,P as at,
128
128
  box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
129
129
  `,Br=o.div`
130
130
  height: auto;
131
- padding-left: ${e=>`${Q.containerPaddingLeft.valuePx(e.windowSize)}`};
132
- padding-right: ${e=>`${Q.containerPaddingRight.valuePx(e.windowSize)}`};
131
+ padding-left: ${e=>`${Z.containerPaddingLeft.valuePx(e.windowSize)}`};
132
+ padding-right: ${e=>`${Z.containerPaddingRight.valuePx(e.windowSize)}`};
133
133
  margin-bottom: auto;
134
134
  `,Or=o.div`
135
135
  display: flex;
@@ -159,7 +159,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,O as $e,aN as q,n as qe,P as at,
159
159
  display: flex;
160
160
  flex-direction: column;
161
161
  padding-top: ${t.sp3};
162
- padding-bottom: ${e=>`${Q.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
162
+ padding-bottom: ${e=>`${Z.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
163
163
  `,Vr=o.div`
164
164
  display: flex;
165
165
  flex-direction: row;
@@ -167,7 +167,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,O as $e,aN as q,n as qe,P as at,
167
167
  align-items: center;
168
168
  width: 100%;
169
169
  top: ${t.sp0};
170
- padding: ${e=>`${Q.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
170
+ padding: ${e=>`${Z.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
171
171
  z-index: 2;
172
172
  background-color: transparent;
173
173
  `,Wr=o(lt)`
@@ -208,16 +208,16 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,O as $e,aN as q,n as qe,P as at,
208
208
  gap: ${t.sp2};
209
209
  `,Ur=o.span`
210
210
  margin-left: ${t.sp2};
211
- `,Ce=o.div``,Kr=o(Qt)`
211
+ `,Ce=o.div``,Kr=o(Zt)`
212
212
  color: ${e=>e.theme.colors.brandColorGoldDark};
213
213
  margin-left: ${t.sp1};
214
- `,Zr=o.div`
214
+ `,Qr=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
- `,Qr=o.img`
220
+ `,Zr=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};
@@ -261,7 +261,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,O as $e,aN as q,n as qe,P as at,
261
261
  margin-top: ${t.sp3};
262
262
  `,oo=o(I)`
263
263
  color: ${e=>e.theme.colors.hero};
264
- `,io=o(Zt)`
264
+ `,io=o(Qt)`
265
265
  width: ${t.sp4};
266
266
  height: ${t.sp4};
267
267
  color: ${e=>e.theme.colors.hero};
@@ -282,7 +282,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,O as $e,aN as q,n as qe,P as at,
282
282
  position: absolute;
283
283
  right: 50%;
284
284
  bottom: -25px;
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: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),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}),U=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,U),[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(ke);(Ee==="In-Progress"&&Se==="Completed"||_e!==je||Ne!==Ae||n)&&_.reset(Ze(e,i,h??!1,U))},[J,M,v.fetchStatus.fetchState,Ee,Se,_e,Ne,Ae,je,Te,ke,_,e,i,h,U]);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(K?.id==null||K.id===""||!z.amount)return!1;if(K.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===K.id);if(n?.accountBalance?.available&&L.checkIfLowBalance(z,n.accountBalance.available))return!0}return!1},At=_.handleSubmit(()=>{if(jt()){yt("transferDetails.transferFrom",{type:"lowBalance",message:De.addMoney});return}$t("transferDetails.transferFrom"),xt&&A()}),{fromAccount:K,toAccount:Ve,amount:z}=e.treasuryTransferMoneyLocalData,kt=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:At,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:K?.id,allOptions:xe(e,!0,i,!0,U,!1)},textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}},valueToAdditionalLabel:kt})}),!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,U,!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(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(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 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:so.transferDrawer.selectAddAccount,value:"",type:"button",onClick:l};P.push(m)}return P},Ke=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?Ke(e):l!=null?l.id:Ke(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`
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: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=Q(Se),je=e.treasuryTransferMoneyLocalData.fromAccount?.id,Ae=e.treasuryTransferMoneyLocalData.toAccount?.id,_e=Q(je),Ne=Q(Ae),ke=e.transferMoneyParties.map(n=>n.id),Te=Q(ke),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}),U=y.useCallback(n=>{n.preventDefault(),n.stopPropagation(),J?ie():re(!0)},[ie,J]),_=Ot({mode:"all",reValidateMode:"onChange",defaultValues:y.useMemo(()=>Qe(e,i,h??!1,U),[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(ke);(Ee==="In-Progress"&&Se==="Completed"||_e!==je||Ne!==Ae||n)&&_.reset(Qe(e,i,h??!1,U))},[J,M,v.fetchStatus.fetchState,Ee,Se,_e,Ne,Ae,je,Te,ke,_,e,i,h,U]);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(K?.id==null||K.id===""||!z.amount)return!1;if(K.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===K.id);if(n?.accountBalance?.available&&L.checkIfLowBalance(z,n.accountBalance.available))return!0}return!1},At=_.handleSubmit(()=>{if(jt()){yt("transferDetails.transferFrom",{type:"lowBalance",message:De.addMoney});return}$t("transferDetails.transferFrom"),xt&&A()}),{fromAccount:K,toAccount:Ve,amount:z}=e.treasuryTransferMoneyLocalData,kt=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:At,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,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:K?.id,allOptions:xe(e,!0,i,!0,U,!1)},textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}},valueToAdditionalLabel:kt})}),!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,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,U,!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(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(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 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:so.transferDrawer.selectAddAccount,value:"",type:"button",onClick:l};P.push(m)}return P},Ke=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},Qe=(e,a,u,i)=>{const{fromAccount:l,toAccount:c,amount:h}=e.treasuryTransferMoneyLocalData,p=()=>u?Ke(e):l!=null?l.id:Ke(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};
@@ -325,7 +325,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,O as $e,aN as q,n as qe,P as at,
325
325
  margin-top: ${t.sp1};
326
326
  margin-bottom: ${t.sp1};
327
327
  `}
328
- `,Qe=o(Nt)`
328
+ `,Ze=o(Nt)`
329
329
  border-radius: ${t.sp2};
330
330
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
331
331
  `,vo=o.div`
@@ -1,4 +1,4 @@
1
- import{O as Y,j as n,l as u,d as Z,aM as w,b3 as z,bQ as A,bR as F,bh as O,C as k,bg as P,aX as B,bS as q,bi as _,bU as G,o as L,h as K,am as N}from"./index-TYkG9rxW.js";import{b as D,w as X,n as $}from"./vendor-Bs1fkIUX.js";import{d as Q,g as M,p as v,u as V}from"./chartTypes-DCvOVjlS-Byyz5YpX.js";import{o as W}from"./toCOABalancesWithID-B3yVGPrV-CxcOLkAO.js";import{V as U}from"./toChartData-DEW0iT7T-DY_WveEO.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=$.div`
1
+ import{O as Y,j as n,l as u,c as Z,aM as w,b3 as z,bQ as A,bR as F,bh as O,C as k,bg as P,aX as B,bS as q,bi as _,bU as G,o as L,h as K,am as N}from"./index-MAXVX6UR.js";import{b as D,w as X,n as $}from"./vendor-Bs1fkIUX.js";import{d as Q,g as M,p as v,u as V}from"./chartTypes-DLnePN0T-B_54UqyM.js";import{o as W}from"./toCOABalancesWithID-D-AHYPZY-Bomk_rrT.js";import{V as U}from"./toChartData-BIN4xqGz-BcU_F8Ix.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=$.div`
2
2
  display: flex;
3
3
  `,I=$.div`
4
4
  flex: display;
@@ -1,4 +1,4 @@
1
- import{q as D,j as i,P as R,o as t,O as b,y as c,aM as S,b3 as q,b6 as Y,_,u as a,am as E,A as K}from"./index-TYkG9rxW.js";import{b as k,n}from"./vendor-Bs1fkIUX.js";import V from"./TrendChart-B_5D-Zud-CJGzPrRj.js";import{C as W}from"./NoDataChart-5E72SElf-CivTfVpi.js";import{q as X}from"./InsightsSection-JIKb9lz3-BHiqZJbQ.js";import{f as Z}from"./TransactionList-BzJEbOV9-BBSoiur3.js";const G=n.div`
1
+ import{q as D,j as i,P as R,o as t,O as b,y as c,aM as S,b3 as q,b6 as Y,_,u as a,am as E,A as K}from"./index-MAXVX6UR.js";import{b as k,n}from"./vendor-Bs1fkIUX.js";import V from"./TrendChart-CWR5JV7S-Bu3AQa_8.js";import{C as W}from"./NoDataChart-Dwrv5FXT-BktYGhJl.js";import{q as X}from"./InsightsSection-AQ5yTmGG-DS0VgX7W.js";import{f as Z}from"./TransactionList-SkjGKFn_-BwaaUL7x.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{d as ce,q as se,ax as Ke,aP as en,gO as R,hP as U,O 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,P 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,c as Ae,h as $e,gg as Ve,ai as Se,bm as xn}from"./index-TYkG9rxW.js";import{b as X,n as s}from"./vendor-Bs1fkIUX.js";import{D as hn}from"./HelpButton-BNMy-6ce-Dj_O42xW.js";import{h as wn}from"./VendorsAccountsSection-C13Z2HN9-C3emmS_D.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-BxV_UIXP-CbDuBV39.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,O 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,P 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,b as Ae,h as $e,gg as Ve,ai as Se,bm as xn}from"./index-MAXVX6UR.js";import{b as X,n as s}from"./vendor-Bs1fkIUX.js";import{D as hn}from"./HelpButton-38HaKgFL-BugYIsvp.js";import{h as wn}from"./VendorsAccountsSection-VX_qjrvm-R24t7Q7V.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-2tPtQeqB-QatkmFKh.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,O,cD as N,af as C,cE as U,cF as z,aa as M,ad as G,c$ as H,l as T,cX as D,y as g,cY as Y,h as A,ap as J,P as X,n as Z,o as i,am as K,u as E,ar as Q,b9 as ee}from"./index-TYkG9rxW.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,O,cD as N,af as C,cE as U,cF as z,aa as M,ad as G,c$ as H,l as T,cX as D,y as g,cY as Y,h as A,ap as J,P as X,n as Z,o as i,am as K,u as E,ar as Q,b9 as ee}from"./index-MAXVX6UR.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 _,l as k,q as A,O as W,j as i,cS as q,ad as Q,aM as G,fW as H,o as a,h as J,d0 as K,aQ as X,y,A as Y,_ as Z,b9 as ee,b8 as te,u as c}from"./index-TYkG9rxW.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:D,onCompanyOfficerUpdated:z}=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,O]=m.useState(!1),b=_(f.fetchState),j=t?.deleteFileStatusById??{},B=t?.updateFileStatusById??{},T=Object.values(j??{}).filter(o=>o!=null),V=k.reduceAllFetchState(T);m.useEffect(()=>{b==="In-Progress"&&f.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}})},[b,f,n,t?.additionalFiles]);const r=A(),h=W.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,L=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,R=n.handleSubmit(()=>{V.fetchState!=="In-Progress"&&D?.(t?.officerType??"Officer_1")}),M=async(o,p)=>{const d=p[u].front;o.includes("front")&&d?.fileId!=null?(z?.(t?.officerType??"Officer_1",[d?.fileId]),S(!0)):S(!1)};return m.useEffect(()=>{const o=n.watch((p,{name:d})=>{d!=null&&p!=null&&q(()=>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":G("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:L})}),i.jsx(H,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:K,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${J.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:x(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:B,filesEndPoint:w,authParams:E,hasError:N,onEditFileName:I,onDeleteFile:P,updateFilesEntity:v,onFileSizeError:o=>O(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),C?i.jsx(X,{formId:u,primaryBtn:{label:h.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:f.fetchState==="In-Progress"},cancelBtn:{label:h.cancel,style:{width:r==="small"?"auto":"181px"},onClick:$},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Z)`
1
+ import{aa as U,fV as x,aP as _,l as k,q as A,O as W,j as i,cS as q,ad as Q,aM as G,fW as H,o as a,h as J,d0 as K,aQ as X,y,A as Y,_ as Z,b9 as ee,b8 as te,u as c}from"./index-MAXVX6UR.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:D,onCompanyOfficerUpdated:z}=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,O]=m.useState(!1),b=_(f.fetchState),j=t?.deleteFileStatusById??{},B=t?.updateFileStatusById??{},T=Object.values(j??{}).filter(o=>o!=null),V=k.reduceAllFetchState(T);m.useEffect(()=>{b==="In-Progress"&&f.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}})},[b,f,n,t?.additionalFiles]);const r=A(),h=W.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,L=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,R=n.handleSubmit(()=>{V.fetchState!=="In-Progress"&&D?.(t?.officerType??"Officer_1")}),M=async(o,p)=>{const d=p[u].front;o.includes("front")&&d?.fileId!=null?(z?.(t?.officerType??"Officer_1",[d?.fileId]),S(!0)):S(!1)};return m.useEffect(()=>{const o=n.watch((p,{name:d})=>{d!=null&&p!=null&&q(()=>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":G("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:L})}),i.jsx(H,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:K,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${J.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:x(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:B,filesEndPoint:w,authParams:E,hasError:N,onEditFileName:I,onDeleteFile:P,updateFilesEntity:v,onFileSizeError:o=>O(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),C?i.jsx(X,{formId:u,primaryBtn:{label:h.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:f.fetchState==="In-Progress"},cancelBtn:{label:h.cancel,style:{width:r==="small"?"auto":"181px"},onClick:$},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Z)`
2
2
  margin-top: 19px;
3
3
  color: ${e=>e.theme.colors.primary};
4
4
  margin-bottom: ${a.sp2};
@@ -0,0 +1 @@
1
+ import{aP as o,O as E,j as i,hY as j,hZ as v}from"./index-MAXVX6UR.js";import{b as t}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:e,editVendorState:g,newVendorState:V}=S,r=Object.assign({},g??V),[C,s]=t.useState(!1),[O,a]=t.useState(e.initiateVerification===!0),p=o(r?.saveStatus?.fetchState),x=o(e.userVerificationStatus.fetchState),f=o(e.otpVerificationStatus?.fetchState),u=o(e.sendOtpStatus.fetchState),P=E.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return t.useEffect(()=>{p==="In-Progress"&&r?.saveStatus?.fetchState==="Error"&&e.initiateVerification===!0&&a(!0)},[r,e,p]),t.useEffect(()=>{x==="In-Progress"&&e.userVerificationStatus.fetchState==="Completed"&&(s(!1),l())},[e.userVerificationStatus]),t.useEffect(()=>{f==="In-Progress"&&e.otpVerificationStatus?.fetchState==="Completed"&&c?.(e.userId??"",e.phone??"",e.otpChallenge??"")},[f,e,c]),t.useEffect(()=>{u==="In-Progress"&&e.sendOtpStatus.fetchState==="Completed"&&(s(!0),a(!1))},[u,e.sendOtpStatus.fetchState]),i.jsx(i.Fragment,{children:C===!0?i.jsx(j,{showHelperText:!n,verifyOtpFetchState:e.otpVerificationStatus.fetchState,phoneNumber:e.phone??"",otpChallenge:e.otpChallenge,action:{onVerifyClick:m,onCancelClick:()=>s(!1),onResendOtp:d,onEditButtonClick:()=>{a(!0),s(!1)}}}):O===!0?i.jsx(v,{showHelperText:!n,phoneNumber:e.phone??"",sendOtpFetchState:e.sendOtpStatus.fetchState,description:n?P:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:y=>h?.(y)}}):null})};export{H as default};
@@ -1 +1 @@
1
- import{j as u}from"./index-TYkG9rxW.js";import{b as d}from"./vendor-Bs1fkIUX.js";import{f as k}from"./ACHDetailsPage-BZFkcCOG-BgLnT2bx.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-Di_BsiJC-Be424FdZ.js";import"./MagicLinkTitleSection-Cn1v72Rs-BFZI4Y3w.js";import"./BankAccountSection-GDEQdiGL-D7Gh00lc.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-MAXVX6UR.js";import{b as d}from"./vendor-Bs1fkIUX.js";import{f as k}from"./ACHDetailsPage-FHBR2PCA-DLva-SPh.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-BTCdQgZV-Bb72qOHU.js";import"./MagicLinkTitleSection-CgS4ZMfb-BI5Lq2SW.js";import"./BankAccountSection-ByfDYmEM-WCmaTn1f.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{O as _,d as Re,q as ne,y as g,aC as be,l as se,cU as xt,aa as yt,hc as Ae,hd as Be,he as Ee,hf as fe,hg as bt,aU as ft,cS as wt,j as t,bF as Ct,ad as $t,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 Mt,hm as zt,h as z,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,c as Ce,H as Xe}from"./index-TYkG9rxW.js";import{b as $,n as a,i as Yt}from"./vendor-Bs1fkIUX.js";import{k as Xt}from"./SubTabSwitcher-COrYJ6CW-B2hOhdQG.js";import{f as Qt}from"./TransactionList-BzJEbOV9-BBSoiur3.js";import{R as Gt}from"./TrendWithTransactions-mI_El5D1-BVyR_3Fo.js";import{o as Zt,t as Kt}from"./arrow-south-east-round-PEovUgvH-DnzbA_s-.js";import{W as Jt}from"./LabeledAddressValueField-YP7bXlgZ-DTTFAf5k.js";import{Y as es}from"./LabeledDropDownFormattedTextField-brzU_fnp-DtaD0WN_.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-COIjjFrn-BdkILoXu.js";import"./commonDimensions-C32v1F7H-73JTdKL8.js";import"./TrendChart-B_5D-Zud-CJGzPrRj.js";import"./chartTypes-DCvOVjlS-Byyz5YpX.js";import"./toCOABalancesWithID-B3yVGPrV-CxcOLkAO.js";import"./toChartData-DEW0iT7T-DY_WveEO.js";import"./NoDataChart-5E72SElf-CivTfVpi.js";import"./InsightsSection-JIKb9lz3-BHiqZJbQ.js";import"./NavigationDots-BxPgEW_p-BH_dRdsk.js";const ts=a.div`
1
+ import{O as _,c as Re,q as ne,y as g,aC as be,l as se,cU as xt,aa as yt,hc as Ae,hd as Be,he as Ee,hf as fe,hg as bt,aU as ft,cS as wt,j as t,bF as Ct,ad as $t,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 Mt,hm as zt,h as z,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,b as Ce,H as Xe}from"./index-MAXVX6UR.js";import{b as $,n as a,i as Yt}from"./vendor-Bs1fkIUX.js";import{k as Xt}from"./SubTabSwitcher-BwULcWpV-KD7oZVm0.js";import{f as Gt}from"./TransactionList-SkjGKFn_-BwaaUL7x.js";import{R as Qt}from"./TrendWithTransactions-D9x71aZs-CM8kaEfz.js";import{o as Zt,t as Kt}from"./arrow-south-east-round-PEovUgvH-DnzbA_s-.js";import{W as Jt}from"./LabeledAddressValueField-6MpVMde--DXTq8JS8.js";import{Y as es}from"./LabeledDropDownFormattedTextField-WbohTHp8-Bsf-e-tx.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-D4K0YgBP-Bm_px4kT.js";import"./commonDimensions-CWOH4KIa-zIW9i9kk.js";import"./TrendChart-CWR5JV7S-Bu3AQa_8.js";import"./chartTypes-DLnePN0T-B_54UqyM.js";import"./toCOABalancesWithID-D-AHYPZY-Bomk_rrT.js";import"./toChartData-BIN4xqGz-BcU_F8Ix.js";import"./NoDataChart-Dwrv5FXT-BktYGhJl.js";import"./InsightsSection-AQ5yTmGG-DS0VgX7W.js";import"./NavigationDots-DarWlthl-CEtLiSj-.js";const ts=a.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: center;
@@ -33,7 +33,7 @@ import{O as _,d as Re,q as ne,y as g,aC as be,l as se,cU as xt,aa as yt,hc as Ae
33
33
  &.${c.id} {
34
34
  width: ${c.style.width}px;
35
35
  left: ${c.style.left}%;
36
- }`}),s};function is({option:e,isSelected:s,onClick:c}){const i=n=>n.label;return t.jsx(as,{onClick:()=>{s===!1&&!(e.disabled??!1)&&c(e)},isSelected:s,leftMargin:e.leftMargin,isDisabled:e.disabled??!1,children:t.jsx(os,{children:i(e)})})}function rs({allTabs:e,selectedTab:s,containerStyle:c,onOptionSelectionChanged:i}){const n=p=>{i(p)};return t.jsx(ts,{style:c,children:t.jsxs(ss,{children:[e.map(p=>t.jsx(is,{option:p,isSelected:p===s,onClick:n},p.id)),t.jsx(ns,{className:`Slider ${s.id}`,optionCss:ls(e)})]})})}const O={logoWidth:new g(l[6],l[6]),logoHeight:new g(l[6],l[6]),pageHeaderHorizontalPadding:new g(l[3],l[3],l[8]),pageHeaderVerticalPadding:new g(l[2],l[2],l[4]),spendTrendsColumnGap:new g(l[1],l[1],l[4],l[11]),spendTrendsMarginBottom:new g(l[2],l[2],l[4]),spendTrendHeadingSkeletonWidth:new g(90,90,120,150)},Qe={spendValue:new Ce("standardMedium","largeSemiBold"),spendDuration:new Ce("extraSmallRegular","standardRegular")},ds=a.div`
36
+ }`}),s};function is({option:e,isSelected:s,onClick:c}){const i=n=>n.label;return t.jsx(as,{onClick:()=>{s===!1&&!(e.disabled??!1)&&c(e)},isSelected:s,leftMargin:e.leftMargin,isDisabled:e.disabled??!1,children:t.jsx(os,{children:i(e)})})}function rs({allTabs:e,selectedTab:s,containerStyle:c,onOptionSelectionChanged:i}){const n=p=>{i(p)};return t.jsx(ts,{style:c,children:t.jsxs(ss,{children:[e.map(p=>t.jsx(is,{option:p,isSelected:p===s,onClick:n},p.id)),t.jsx(ns,{className:`Slider ${s.id}`,optionCss:ls(e)})]})})}const O={logoWidth:new g(l[6],l[6]),logoHeight:new g(l[6],l[6]),pageHeaderHorizontalPadding:new g(l[3],l[3],l[8]),pageHeaderVerticalPadding:new g(l[2],l[2],l[4]),spendTrendsColumnGap:new g(l[1],l[1],l[4],l[11]),spendTrendsMarginBottom:new g(l[2],l[2],l[4]),spendTrendHeadingSkeletonWidth:new g(90,90,120,150)},Ge={spendValue:new Ce("standardMedium","largeSemiBold"),spendDuration:new Ce("extraSmallRegular","standardRegular")},ds=a.div`
37
37
  padding: ${e=>`${O.pageHeaderVerticalPadding.valuePx(e.size)} ${O.pageHeaderHorizontalPadding.valuePx(e.size)}`};
38
38
  display: flex;
39
39
  justify-content: space-between;
@@ -55,10 +55,10 @@ import{O as _,d as Re,q as ne,y as g,aC as be,l as se,cU as xt,aa as yt,hc as Ae
55
55
  align-items: center;
56
56
  max-width: ${e=>e.isMobile===!1?"50%":"unset"};
57
57
  `,ce=a(Xe)`
58
- ${e=>`${Qe.spendDuration.style(e.windowSize)}`};
58
+ ${e=>`${Ge.spendDuration.style(e.windowSize)}`};
59
59
  color: ${e=>e.theme.colors.hero};
60
60
  `,pe=a(Xe)`
61
- ${e=>`${Qe.spendValue.style(e.windowSize)}`};
61
+ ${e=>`${Ge.spendValue.style(e.windowSize)}`};
62
62
  color: ${e=>e.theme.colors.primary};
63
63
  text-align: ${e=>e.isMobile===!0?"left":"right"};
64
64
  `,cs=a.div`
@@ -168,7 +168,7 @@ import{O as _,d as Re,q as ne,y as g,aC as be,l as se,cU as xt,aa as yt,hc as Ae
168
168
  width: ${e=>e.width}px;
169
169
  color: ${e=>e.theme.colors.hero};
170
170
  margin: ${e=>`${I.labelMarginTop.valuePx(e.windowSize)} ${I.labelMarginLeft.valuePx(e.windowSize)} ${I.labelMarginBottom.valuePx(e.windowSize)} ${I.labelMarginLeft.valuePx(e.windowSize)}`};
171
- `,Ve=_.getLocalizedStrings().vendors.common.transactionTabTitles,$s=()=>Ss,Ss=[{id:"spend_transactions",label:Ve.spendTransactions,leftMargin:!1,style:{width:136,left:2}},{id:"all_transactions",label:Ve.allTransactions,leftMargin:!0,style:{width:122,left:60}}],ke={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},M=(e,s)=>`${e}.${s}`,Ge=_.getLocalizedStrings(),{common:ae,cockpit:Oe}=Ge,L=Ge.spendManagement.billPay.vendorCreation,Ds=({accountsHierarchyList:e,allAccounts:s,allClasses:c,allOwners:i,classHierarchyList:n,enableRecommendationUpdateCheckbox:p,readOnlyMode:m,isDisabled:f,recommendations:h,sectionId:w,selectedAccountId:R,selectedClassId:A,selectedOwnerId:D,selectedVendorDetails:u,uiState:B,isFiling1099FeatureEnabled:Y,onClickShowMoreOrLess:le})=>{const X=ne(),Q=Re(),{getValues:G}=Tt(),N=ke.labelWidth.value(X),W=ke.controlWidth.value(X),P=r=>s.filter(b=>b.accountId===r)[0]?.coaId??"",E=r=>c.filter(b=>b.classId===r)[0]?.accountingClassNumber??"",Z=r=>{const b=s.find(H=>H.accountId===r)?.accountName;return[At,Bt].includes(b??"")},K=L.vendorDetails.recommendation.tooltip,ie=K.category.replace("__based__",u?.vendorDetailLocalData?.recommendedCategory?.reason?.toLocaleLowerCase()??""),re=K.class.replace("__based__",u?.vendorDetailLocalData?.recommendedClass?.reason?.toLocaleLowerCase()??""),J=u?.vendorDetailLocalData?.recommendedCategory!=null&&!!p,ee=u?.vendorDetailLocalData?.recommendedClass!=null&&!!p;return t.jsxs(js,{children:[t.jsxs(Ts,{children:[t.jsx(Ls,{children:L.vendorDetails.title}),Y?t.jsxs(ks,{onClick:()=>le(),children:[B?.collapsableStatus==="expand"?`${ae.show}${ae.strings.space}${Oe.subscription.lessBtnText}`:`${ae.show}${ae.strings.space}${Oe.subscription.moreBtnText}`,B?.collapsableStatus==="expand"?t.jsx(Os,{}):t.jsx(Is,{})]}):null]}),t.jsxs(Vs,{children:[t.jsx(we,{isLoading:!1,label:{label:L.vendorDetails.category,width:N},groupedSingleSelectField:{name:M(w,"vendorCategory"),placeholder:L.placeholders.category,valueToInfo:r=>P(r),defaultValue:{selectedOption:R,allOptions:Be(e,h)},style:{width:"auto"},registerOptions:{required:!1},shouldShowChevronIcon:J},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${Q.colors.grey3}`},isDisabled:m?"readonly":f,disableCurrentOption:Z,fullWidthSelect:!1,zIndexOnFocus:!0,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedCategory!=null&&p?{tooltipProps:{text:ie},label:{label:u?.vendorDetailLocalData?.recommendedCategory?.accountName},checkBoxField:{name:M(w,"isRecommendedCategorySelected"),defaultChecked:G(M(w,"isRecommendedCategorySelected"))}}:void 0}),t.jsx(we,{isLoading:!1,label:{label:L.vendorDetails.class,width:N},zIndexOnFocus:!0,groupedSingleSelectField:{name:M(w,"vendorClass"),placeholder:L.placeholders.class,valueToInfo:r=>E(r),defaultValue:{selectedOption:A,allOptions:Ae(n,h)},registerOptions:{required:!1},style:{width:"auto"},shouldShowChevronIcon:ee},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${Q.colors.grey3}`},isDisabled:m===!0?"readonly":f,fullWidthSelect:!1,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedClass!=null&&p?{tooltipProps:{text:re},label:{label:u?.vendorDetailLocalData?.recommendedClass?.className},checkBoxField:{name:M(w,"isRecommendedClassSelected"),defaultChecked:G(M(w,"isRecommendedClassSelected"))}}:void 0}),t.jsx(Lt,{label:{label:L.vendorDetails.vendorOwner,width:N},userSingleSelectField:{name:M(w,"vendorOwner"),placeholder:L.placeholders.owner,defaultValue:{allOptions:Ee(i),selectedOption:D},registerOptions:{required:!1},style:{width:"auto"}},isDisabled:m===!0?"readonly":f,style:{justifyContent:"space-between"},controlWidth:W,fullWidthSelect:!1})]})]})},js=a.div`
171
+ `,Ve=_.getLocalizedStrings().vendors.common.transactionTabTitles,$s=()=>Ss,Ss=[{id:"spend_transactions",label:Ve.spendTransactions,leftMargin:!1,style:{width:136,left:2}},{id:"all_transactions",label:Ve.allTransactions,leftMargin:!0,style:{width:122,left:60}}],ke={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},M=(e,s)=>`${e}.${s}`,Qe=_.getLocalizedStrings(),{common:ae,cockpit:Oe}=Qe,L=Qe.spendManagement.billPay.vendorCreation,Ds=({accountsHierarchyList:e,allAccounts:s,allClasses:c,allOwners:i,classHierarchyList:n,enableRecommendationUpdateCheckbox:p,readOnlyMode:m,isDisabled:f,recommendations:h,sectionId:w,selectedAccountId:R,selectedClassId:A,selectedOwnerId:D,selectedVendorDetails:u,uiState:B,isFiling1099FeatureEnabled:Y,onClickShowMoreOrLess:le})=>{const X=ne(),G=Re(),{getValues:Q}=Tt(),N=ke.labelWidth.value(X),W=ke.controlWidth.value(X),P=r=>s.filter(b=>b.accountId===r)[0]?.coaId??"",E=r=>c.filter(b=>b.classId===r)[0]?.accountingClassNumber??"",Z=r=>{const b=s.find(H=>H.accountId===r)?.accountName;return[At,Bt].includes(b??"")},K=L.vendorDetails.recommendation.tooltip,ie=K.category.replace("__based__",u?.vendorDetailLocalData?.recommendedCategory?.reason?.toLocaleLowerCase()??""),re=K.class.replace("__based__",u?.vendorDetailLocalData?.recommendedClass?.reason?.toLocaleLowerCase()??""),J=u?.vendorDetailLocalData?.recommendedCategory!=null&&!!p,ee=u?.vendorDetailLocalData?.recommendedClass!=null&&!!p;return t.jsxs(js,{children:[t.jsxs(Ts,{children:[t.jsx(Ls,{children:L.vendorDetails.title}),Y?t.jsxs(ks,{onClick:()=>le(),children:[B?.collapsableStatus==="expand"?`${ae.show}${ae.strings.space}${Oe.subscription.lessBtnText}`:`${ae.show}${ae.strings.space}${Oe.subscription.moreBtnText}`,B?.collapsableStatus==="expand"?t.jsx(Os,{}):t.jsx(Is,{})]}):null]}),t.jsxs(Vs,{children:[t.jsx(we,{isLoading:!1,label:{label:L.vendorDetails.category,width:N},groupedSingleSelectField:{name:M(w,"vendorCategory"),placeholder:L.placeholders.category,valueToInfo:r=>P(r),defaultValue:{selectedOption:R,allOptions:Be(e,h)},style:{width:"auto"},registerOptions:{required:!1},shouldShowChevronIcon:J},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${G.colors.grey3}`},isDisabled:m?"readonly":f,disableCurrentOption:Z,fullWidthSelect:!1,zIndexOnFocus:!0,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedCategory!=null&&p?{tooltipProps:{text:ie},label:{label:u?.vendorDetailLocalData?.recommendedCategory?.accountName},checkBoxField:{name:M(w,"isRecommendedCategorySelected"),defaultChecked:Q(M(w,"isRecommendedCategorySelected"))}}:void 0}),t.jsx(we,{isLoading:!1,label:{label:L.vendorDetails.class,width:N},zIndexOnFocus:!0,groupedSingleSelectField:{name:M(w,"vendorClass"),placeholder:L.placeholders.class,valueToInfo:r=>E(r),defaultValue:{selectedOption:A,allOptions:Ae(n,h)},registerOptions:{required:!1},style:{width:"auto"},shouldShowChevronIcon:ee},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${G.colors.grey3}`},isDisabled:m===!0?"readonly":f,fullWidthSelect:!1,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedClass!=null&&p?{tooltipProps:{text:re},label:{label:u?.vendorDetailLocalData?.recommendedClass?.className},checkBoxField:{name:M(w,"isRecommendedClassSelected"),defaultChecked:Q(M(w,"isRecommendedClassSelected"))}}:void 0}),t.jsx(Lt,{label:{label:L.vendorDetails.vendorOwner,width:N},userSingleSelectField:{name:M(w,"vendorOwner"),placeholder:L.placeholders.owner,defaultValue:{allOptions:Ee(i),selectedOption:D},registerOptions:{required:!1},style:{width:"auto"}},isDisabled:m===!0?"readonly":f,style:{justifyContent:"space-between"},controlWidth:W,fullWidthSelect:!1})]})]})},js=a.div`
172
172
  display: flex;
173
173
  flex-direction: column;
174
174
  padding-top: ${o.sp3};
@@ -254,4 +254,4 @@ import{O as _,d as Re,q as ne,y as g,aC as be,l as se,cU as xt,aa as yt,hc as Ae
254
254
  display: flex;
255
255
  flex-direction: column;
256
256
  transition: ${e=>e.collapsableStatus==="collapse"?"height 400ms ease-out":"height 200ms ease-in"};
257
- `,Rs=[{label:V.vendorSpendTrendFilterLabels.last_30_days,id:"last_30_days"},{label:V.vendorSpendTrendFilterLabels.last_90_days,id:"last_90_days"},{label:V.vendorSpendTrendFilterLabels.YTD_spend,id:"YTD_spend"},{label:V.vendorSpendTrendFilterLabels.last_month,id:"last_month"},{label:V.vendorSpendTrendFilterLabels.last_3_months,id:"last_3_months"},{label:V.vendorSpendTrendFilterLabels.last_6_months,id:"last_6_months"},{label:V.vendorSpendTrendFilterLabels.last_12_months,id:"last_12_months"},{label:V.vendorSpendTrendFilterLabels.last_year,id:"last_year"}],go=({isFiling1099FeatureEnabled:e,vendorDetailView:s,firstMonthOfFY:c,vendorLogo:i,readOnlyMode:n,isDisabled:p,scrollToTrend:m,allTransactionsTabData:f,onVendorTabSelectionChanged:h,onLoadPreviousTransactionsClick:w,onSaveSuccess:R,saveVendorDetailLocalData:A,onCancelClick:D,onTrendSelectedPeriodChange:u,onTransactionItemClick:B,onSpendTrendPercentChangeClick:Y,onSaveVendor:le,onVendorSpendTrendFilterTabClick:X,onAddressClick:Q,saveContactsInVendorTabDetailLocalData:G,onVendorDetailUIChange:N})=>{const W=Re(),P=ne(),E=$.useRef(null),[Z,K]=$.useState(!1),[ie,re]=$.useState(k.transactionListHeight.value()),J=s?.selectedTabType,ee=$s(),r=Object.assign({},s?.vendorViewDetails?.vendorView),b=s?.vendorViewDetails.vendorView?.vendorDetailLocalData,H=s?.uiState,Ze=!be(r!=null&&r.vendorAddress!=null?se.getFormattedAddress(r.vendorAddress):r.vendorAddress,r.vendorNewAddressStatus?.addressToCreate!=null?se.getFormattedAddress(r.vendorNewAddressStatus?.addressToCreate):r.vendorNewAddressStatus?.addressToCreate),Ke=(r?.vendorDetailLocalData?.contacts??[]).filter(d=>d.email!==x.common.strings.empty||d.fullName!==x.common.strings.empty||d.phone!==x.common.strings.empty).map(d=>xt(d,"contactInfoType")),xe=$.useMemo(()=>r.vendorBasic?.contacts??[],[r.vendorBasic?.contacts]),Je=!be(Ke,xe),te=yt({mode:"all",defaultValues:He(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),values:He(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),resetOptions:{keepDirtyValues:!0}}),[et,tt]=$.useState(-1),st=r.vendorDetailLocalData?.contacts!=null&&r.vendorDetailLocalData?.contacts.length>0?r.vendorDetailLocalData?.contacts:fe,[ot,at]=$.useState(bt(st)),nt=d=>{at(d),G?.(b?.vendorId??x.common.strings.empty,d)};$.useEffect(()=>{m===!0&&Z===!1&&s?.trendWithTransactions.trendReport?.fetchState==="Completed"&&s?.trendWithTransactions.transactionView?.fetchState==="Completed"&&(window.scrollTo({top:(E.current?.offsetTop??0)+k.navbarHeight,behavior:"smooth"}),K(!0))},[m,Z,s?.trendWithTransactions.trendReport?.fetchState,s?.trendWithTransactions.transactionView?.fetchState]);const lt=new ft(W.colors.graphColor12),j=s?.fetchState==="Not-Started"||s?.fetchState==="In-Progress",it=s?.vendorViewDetails.vendorView?.saveStatus.fetchState==="In-Progress",rt=s?.trendWithTransactions.trendReport?.fetchState==="In-Progress",dt=(d,v)=>{u?.(v)};$.useEffect(()=>{s?.vendorViewDetails.vendorView?.saveStatus?.fetchState==="Completed"&&R?.()},[r]);const ct=$.useCallback(()=>{window.scrollTo({top:(E.current?.offsetTop??0)+k.navbarHeight,behavior:"smooth"}),Y?.()},[Y]),pt=async(d,v)=>{const C=v;if(d.includes("isRecommendedCategorySelected")){const F=v[y].isRecommendedCategorySelected===!0?r?.vendorDetailLocalData?.recommendedCategory?.accountId:r?.vendorBasic?.account?.accountId;C[y].vendorCategory={selectedOption:F,allOptions:v[y].vendorCategory.allOptions}}if(d.includes("isRecommendedClassSelected")){const F=v[y].isRecommendedClassSelected===!0?r.vendorDetailLocalData?.recommendedClass?.classId:r?.vendorBasic?.class?.classId;C[y].vendorClass={selectedOption:F,allOptions:v[y].vendorClass.allOptions}}if(d.includes("vendorCategory")){const F=C[y].vendorCategory.selectedOption===C[y].recommendedCategory?.accountId;C[y].isRecommendedCategorySelected=F}if(d.includes("vendorClass")){const F=C[y].vendorClass.selectedOption===C[y].recommendedClass?.classId;C[y].isRecommendedClassSelected=F}mt(C)};$.useEffect(()=>{const d=te.watch((v,{name:C})=>{C!=null&&v!=null&&wt(()=>pt(C,v))});return()=>{d.unsubscribe()}});const mt=d=>{const v=As(d,r.vendorBasic?.id,b);A?.(v)},ht=d=>{h(se.toVendorDetailTabsType(d.id))},gt={isLoading:s?.allVendorTransactionsView?.fetchState==="In-Progress"||s?.allVendorTransactionsView?.fetchState==="Not-Started",onLoadPreviousClick:(d,v)=>{w(d,(f?.numberOfQuartersFetched??0)+1)}},ut=()=>{switch(J){case"all_transactions":return t.jsx(zs,{height:ie,children:j===!1&&f?.timePeriod!=null?t.jsx(Qt,{firstMonthOfFY:c,timeframe:"quarter",timePeriod:f.timePeriod,transactions:s?.allVendorTransactionsView?.transactions??[],isFirstLotLoading:j,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:B,onListInnerElementHeightChanged:d=>{re(d)},showLoadPrevious:gt}):null});case"spend_transactions":default:return s?.trendWithTransactions!=null?t.jsxs(t.Fragment,{children:[t.jsx(Xt,{allTabs:Rs,selectedTab:s.vendorSpendTrendFilterTabValue,onTabChange:d=>{const v=se.toVendorSpendTrendFilterTabsTypeStrict(d.id);v!=null&&X(v)},containerStyle:{marginLeft:l[8],marginRight:l[8]}}),t.jsx(Ns,{ref:E,children:t.jsx(Gt,{firstMonthOfFY:c,trendWithTransactionsReport:s?.trendWithTransactions,isDetailPage:!1,graphColor:lt,initialTransactionListHeight:k.transactionListHeight.value(P),page:"vendorDetailPage",onTimePeriodChange:dt,onTransactionItemClick:B})})]}):null}},vt=()=>{H?.collapsableStatus==="expand"?N?.("collapse"):N?.("expand")},ye=ee.find(d=>J===d.id);return t.jsxs(Ms,{children:[t.jsx(Ct,{onBackClick:D,title:r.vendorBasic?.name??x.common.strings.empty,style:{zIndex:3},hideSearchBtn:!0,backgroundColor:W.colors.grey5,enableTitleOnScroll:!0,source:"VendorDetailPage"}),s?.vendorSpend!=null?t.jsx(us,{isPageLoading:j,vendorName:r.vendorBasic?.name??x.common.strings.empty,spend:s?.vendorSpend,vendorLogo:i,isSpendTrendLoading:rt,onPercentChangeClick:ct}):null,j===!0&&t.jsx(We,{isPageLoading:j,children:t.jsx(Ne,{size:P,children:t.jsx(Fs,{})})}),j===!1&&r.vendorDetailLocalData!=null&&t.jsxs(We,{isPageLoading:j,children:[t.jsx(Ne,{size:P,children:t.jsx($t,{...te,children:t.jsxs("form",{id:ze(_e),onSubmit:te.handleSubmit(le),children:[t.jsx(Ds,{sectionId:y,selectedVendorId:b?.vendorId,selectedVendorDetails:r,selectedAccountId:b?.vendorCategory,selectedClassId:b?.vendorClass,selectedOwnerId:b?.vendorOwner,recommendations:b?.recommendations??[],allAccounts:s?.vendorViewDetails.accountList.accounts??[],allClasses:s?.vendorViewDetails.classList.classes??[],screenType:"edit",selectedVendorName:b?.vendorName,allOwners:s?.vendorViewDetails.ownerList??[],readOnlyMode:n,isDisabled:p,accountsHierarchyList:s?.vendorViewDetails.accountsHierarchyList??[],classHierarchyList:s?.vendorViewDetails.classHierarchyList??[],enableRecommendationUpdateCheckbox:!0,uiState:H,isFiling1099FeatureEnabled:e,onClickShowMoreOrLess:vt}),e&&H?.collapsableStatus==="expand"?t.jsxs(Hs,{collapsableStatus:H?.collapsableStatus??"expand",children:[t.jsx(xs,{selectedVendorDetails:r,isDisabled:p,onAddressClick:Q,sectionId:ve,vendorTypeList:s?.vendorViewDetails.vendorTypeList??[]}),t.jsx(St,{emailRequired:!1,vendorContactInfos:fe,sectionId:ue,vendorContactInfoWithType:ot,setVendorContactInfoWithType:nt,deleteContactConfirmationIndex:et,updateContactDeleteConfirmationIndex:tt,initialContactList:xe})]}):null]})})}),ye!=null?t.jsxs(_s,{children:[t.jsx(Ws,{children:t.jsx(rs,{allTabs:ee,containerStyle:{marginLeft:l[8],marginRight:l[8],borderBottom:`1px solid ${W.colors.grey3}`,backgroundColor:W.colors.grey4,justifyContent:"left"},selectedTab:ye,onOptionSelectionChanged:ht})}),ut()]}):null]}),!j&&n!==!0&&(Dt(te.formState.dirtyFields)||Ze||Je)?t.jsx(jt,{formId:ze(_e),primaryBtn:{label:Me.save,isLoading:it,style:{width:k.buttonWidth.value(P)},isDisabled:!1},cancelBtn:{label:Me.cancel,style:{width:k.buttonWidth.value(P)},onClick:D}}):null]})},He=(e,s,c,i,n,p)=>({[y]:{vendorName:n?.vendorName??x.common.strings.empty,vendorOwner:{allOptions:Ee(p),selectedOption:n?.vendorOwner},vendorCategory:{allOptions:Be(e,n?.recommendations),selectedOption:n?.vendorCategory},vendorClass:{allOptions:Ae(s,n?.recommendations),selectedOption:n?.vendorClass},recommendedCategory:n?.recommendedCategory,recommendedClass:n?.recommendedClass,isRecommendedCategorySelected:n?.isCategoryUpdateSelected??!1,isRecommendedClassSelected:n?.isClassUpdateSelected??!1},[ve]:{legalName:n?.legalName??x.common.strings.empty,email:n?.vendorEmail??x.common.strings.empty,phone:n?.vendorPhone??x.common.strings.empty,vendorType:{allTypes:c,selectedType:n?.vendorType},tinType:n?.tin?.type??null,tinValue:n?.tin?.value??null,address:i},[ue]:n!=null&&n?.contacts!=null&&n?.contacts.length!==0?n.contacts:[{fullName:x.common.strings.empty,email:x.common.strings.empty,phone:x.common.strings.empty,id:x.common.strings.empty}]}),As=(e,s,c)=>{const i=e?.[y],n=e?.[ve];return{vendorCategory:i.vendorCategory.selectedOption,vendorClass:i.vendorClass.selectedOption,vendorId:s,recommendations:c?.recommendations,vendorName:i.vendorName,legalName:n.legalName,vendorOwner:i.vendorOwner?.selectedOption,recommendedCategory:i.recommendedCategory,recommendedClass:i.recommendedClass,isCategoryUpdateSelected:i.isRecommendedCategorySelected??!1,isClassUpdateSelected:i.isRecommendedClassSelected??!1,vendorEmail:n.email,vendorPhone:n.phone,vendorType:n.vendorType.selectedType,tin:{type:n.tinType??null,value:n.tinValue!=null?n.tinValue.replace(Ut,x.common.strings.empty):null},address:n.address,contacts:e?.[ue]}};export{go as default,ze as formUniqueName,ve as vendor1099DetailsSectionId,y as vendorDetailsSectionId,Rs as vendorSpendTrendFilterTabs};
257
+ `,Rs=[{label:V.vendorSpendTrendFilterLabels.last_30_days,id:"last_30_days"},{label:V.vendorSpendTrendFilterLabels.last_90_days,id:"last_90_days"},{label:V.vendorSpendTrendFilterLabels.YTD_spend,id:"YTD_spend"},{label:V.vendorSpendTrendFilterLabels.last_month,id:"last_month"},{label:V.vendorSpendTrendFilterLabels.last_3_months,id:"last_3_months"},{label:V.vendorSpendTrendFilterLabels.last_6_months,id:"last_6_months"},{label:V.vendorSpendTrendFilterLabels.last_12_months,id:"last_12_months"},{label:V.vendorSpendTrendFilterLabels.last_year,id:"last_year"}],go=({isFiling1099FeatureEnabled:e,vendorDetailView:s,firstMonthOfFY:c,vendorLogo:i,readOnlyMode:n,isDisabled:p,scrollToTrend:m,allTransactionsTabData:f,onVendorTabSelectionChanged:h,onLoadPreviousTransactionsClick:w,onSaveSuccess:R,saveVendorDetailLocalData:A,onCancelClick:D,onTrendSelectedPeriodChange:u,onTransactionItemClick:B,onSpendTrendPercentChangeClick:Y,onSaveVendor:le,onVendorSpendTrendFilterTabClick:X,onAddressClick:G,saveContactsInVendorTabDetailLocalData:Q,onVendorDetailUIChange:N})=>{const W=Re(),P=ne(),E=$.useRef(null),[Z,K]=$.useState(!1),[ie,re]=$.useState(k.transactionListHeight.value()),J=s?.selectedTabType,ee=$s(),r=Object.assign({},s?.vendorViewDetails?.vendorView),b=s?.vendorViewDetails.vendorView?.vendorDetailLocalData,H=s?.uiState,Ze=!be(r!=null&&r.vendorAddress!=null?se.getFormattedAddress(r.vendorAddress):r.vendorAddress,r.vendorNewAddressStatus?.addressToCreate!=null?se.getFormattedAddress(r.vendorNewAddressStatus?.addressToCreate):r.vendorNewAddressStatus?.addressToCreate),Ke=(r?.vendorDetailLocalData?.contacts??[]).filter(d=>d.email!==x.common.strings.empty||d.fullName!==x.common.strings.empty||d.phone!==x.common.strings.empty).map(d=>xt(d,"contactInfoType")),xe=$.useMemo(()=>r.vendorBasic?.contacts??[],[r.vendorBasic?.contacts]),Je=!be(Ke,xe),te=yt({mode:"all",defaultValues:He(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),values:He(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),resetOptions:{keepDirtyValues:!0}}),[et,tt]=$.useState(-1),st=r.vendorDetailLocalData?.contacts!=null&&r.vendorDetailLocalData?.contacts.length>0?r.vendorDetailLocalData?.contacts:fe,[ot,at]=$.useState(bt(st)),nt=d=>{at(d),Q?.(b?.vendorId??x.common.strings.empty,d)};$.useEffect(()=>{m===!0&&Z===!1&&s?.trendWithTransactions.trendReport?.fetchState==="Completed"&&s?.trendWithTransactions.transactionView?.fetchState==="Completed"&&(window.scrollTo({top:(E.current?.offsetTop??0)+k.navbarHeight,behavior:"smooth"}),K(!0))},[m,Z,s?.trendWithTransactions.trendReport?.fetchState,s?.trendWithTransactions.transactionView?.fetchState]);const lt=new ft(W.colors.graphColor12),j=s?.fetchState==="Not-Started"||s?.fetchState==="In-Progress",it=s?.vendorViewDetails.vendorView?.saveStatus.fetchState==="In-Progress",rt=s?.trendWithTransactions.trendReport?.fetchState==="In-Progress",dt=(d,v)=>{u?.(v)};$.useEffect(()=>{s?.vendorViewDetails.vendorView?.saveStatus?.fetchState==="Completed"&&R?.()},[r]);const ct=$.useCallback(()=>{window.scrollTo({top:(E.current?.offsetTop??0)+k.navbarHeight,behavior:"smooth"}),Y?.()},[Y]),pt=async(d,v)=>{const C=v;if(d.includes("isRecommendedCategorySelected")){const F=v[y].isRecommendedCategorySelected===!0?r?.vendorDetailLocalData?.recommendedCategory?.accountId:r?.vendorBasic?.account?.accountId;C[y].vendorCategory={selectedOption:F,allOptions:v[y].vendorCategory.allOptions}}if(d.includes("isRecommendedClassSelected")){const F=v[y].isRecommendedClassSelected===!0?r.vendorDetailLocalData?.recommendedClass?.classId:r?.vendorBasic?.class?.classId;C[y].vendorClass={selectedOption:F,allOptions:v[y].vendorClass.allOptions}}if(d.includes("vendorCategory")){const F=C[y].vendorCategory.selectedOption===C[y].recommendedCategory?.accountId;C[y].isRecommendedCategorySelected=F}if(d.includes("vendorClass")){const F=C[y].vendorClass.selectedOption===C[y].recommendedClass?.classId;C[y].isRecommendedClassSelected=F}mt(C)};$.useEffect(()=>{const d=te.watch((v,{name:C})=>{C!=null&&v!=null&&wt(()=>pt(C,v))});return()=>{d.unsubscribe()}});const mt=d=>{const v=As(d,r.vendorBasic?.id,b);A?.(v)},ht=d=>{h(se.toVendorDetailTabsType(d.id))},gt={isLoading:s?.allVendorTransactionsView?.fetchState==="In-Progress"||s?.allVendorTransactionsView?.fetchState==="Not-Started",onLoadPreviousClick:(d,v)=>{w(d,(f?.numberOfQuartersFetched??0)+1)}},ut=()=>{switch(J){case"all_transactions":return t.jsx(zs,{height:ie,children:j===!1&&f?.timePeriod!=null?t.jsx(Gt,{firstMonthOfFY:c,timeframe:"quarter",timePeriod:f.timePeriod,transactions:s?.allVendorTransactionsView?.transactions??[],isFirstLotLoading:j,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:B,onListInnerElementHeightChanged:d=>{re(d)},showLoadPrevious:gt}):null});case"spend_transactions":default:return s?.trendWithTransactions!=null?t.jsxs(t.Fragment,{children:[t.jsx(Xt,{allTabs:Rs,selectedTab:s.vendorSpendTrendFilterTabValue,onTabChange:d=>{const v=se.toVendorSpendTrendFilterTabsTypeStrict(d.id);v!=null&&X(v)},containerStyle:{marginLeft:l[8],marginRight:l[8]}}),t.jsx(Ns,{ref:E,children:t.jsx(Qt,{firstMonthOfFY:c,trendWithTransactionsReport:s?.trendWithTransactions,isDetailPage:!1,graphColor:lt,initialTransactionListHeight:k.transactionListHeight.value(P),page:"vendorDetailPage",onTimePeriodChange:dt,onTransactionItemClick:B})})]}):null}},vt=()=>{H?.collapsableStatus==="expand"?N?.("collapse"):N?.("expand")},ye=ee.find(d=>J===d.id);return t.jsxs(Ms,{children:[t.jsx(Ct,{onBackClick:D,title:r.vendorBasic?.name??x.common.strings.empty,style:{zIndex:3},hideSearchBtn:!0,backgroundColor:W.colors.grey5,enableTitleOnScroll:!0,source:"VendorDetailPage"}),s?.vendorSpend!=null?t.jsx(us,{isPageLoading:j,vendorName:r.vendorBasic?.name??x.common.strings.empty,spend:s?.vendorSpend,vendorLogo:i,isSpendTrendLoading:rt,onPercentChangeClick:ct}):null,j===!0&&t.jsx(We,{isPageLoading:j,children:t.jsx(Ne,{size:P,children:t.jsx(Fs,{})})}),j===!1&&r.vendorDetailLocalData!=null&&t.jsxs(We,{isPageLoading:j,children:[t.jsx(Ne,{size:P,children:t.jsx($t,{...te,children:t.jsxs("form",{id:ze(_e),onSubmit:te.handleSubmit(le),children:[t.jsx(Ds,{sectionId:y,selectedVendorId:b?.vendorId,selectedVendorDetails:r,selectedAccountId:b?.vendorCategory,selectedClassId:b?.vendorClass,selectedOwnerId:b?.vendorOwner,recommendations:b?.recommendations??[],allAccounts:s?.vendorViewDetails.accountList.accounts??[],allClasses:s?.vendorViewDetails.classList.classes??[],screenType:"edit",selectedVendorName:b?.vendorName,allOwners:s?.vendorViewDetails.ownerList??[],readOnlyMode:n,isDisabled:p,accountsHierarchyList:s?.vendorViewDetails.accountsHierarchyList??[],classHierarchyList:s?.vendorViewDetails.classHierarchyList??[],enableRecommendationUpdateCheckbox:!0,uiState:H,isFiling1099FeatureEnabled:e,onClickShowMoreOrLess:vt}),e&&H?.collapsableStatus==="expand"?t.jsxs(Hs,{collapsableStatus:H?.collapsableStatus??"expand",children:[t.jsx(xs,{selectedVendorDetails:r,isDisabled:p,onAddressClick:G,sectionId:ve,vendorTypeList:s?.vendorViewDetails.vendorTypeList??[]}),t.jsx(St,{emailRequired:!1,vendorContactInfos:fe,sectionId:ue,vendorContactInfoWithType:ot,setVendorContactInfoWithType:nt,deleteContactConfirmationIndex:et,updateContactDeleteConfirmationIndex:tt,initialContactList:xe})]}):null]})})}),ye!=null?t.jsxs(_s,{children:[t.jsx(Ws,{children:t.jsx(rs,{allTabs:ee,containerStyle:{marginLeft:l[8],marginRight:l[8],borderBottom:`1px solid ${W.colors.grey3}`,backgroundColor:W.colors.grey4,justifyContent:"left"},selectedTab:ye,onOptionSelectionChanged:ht})}),ut()]}):null]}),!j&&n!==!0&&(Dt(te.formState.dirtyFields)||Ze||Je)?t.jsx(jt,{formId:ze(_e),primaryBtn:{label:Me.save,isLoading:it,style:{width:k.buttonWidth.value(P)},isDisabled:!1},cancelBtn:{label:Me.cancel,style:{width:k.buttonWidth.value(P)},onClick:D}}):null]})},He=(e,s,c,i,n,p)=>({[y]:{vendorName:n?.vendorName??x.common.strings.empty,vendorOwner:{allOptions:Ee(p),selectedOption:n?.vendorOwner},vendorCategory:{allOptions:Be(e,n?.recommendations),selectedOption:n?.vendorCategory},vendorClass:{allOptions:Ae(s,n?.recommendations),selectedOption:n?.vendorClass},recommendedCategory:n?.recommendedCategory,recommendedClass:n?.recommendedClass,isRecommendedCategorySelected:n?.isCategoryUpdateSelected??!1,isRecommendedClassSelected:n?.isClassUpdateSelected??!1},[ve]:{legalName:n?.legalName??x.common.strings.empty,email:n?.vendorEmail??x.common.strings.empty,phone:n?.vendorPhone??x.common.strings.empty,vendorType:{allTypes:c,selectedType:n?.vendorType},tinType:n?.tin?.type??null,tinValue:n?.tin?.value??null,address:i},[ue]:n!=null&&n?.contacts!=null&&n?.contacts.length!==0?n.contacts:[{fullName:x.common.strings.empty,email:x.common.strings.empty,phone:x.common.strings.empty,id:x.common.strings.empty}]}),As=(e,s,c)=>{const i=e?.[y],n=e?.[ve];return{vendorCategory:i.vendorCategory.selectedOption,vendorClass:i.vendorClass.selectedOption,vendorId:s,recommendations:c?.recommendations,vendorName:i.vendorName,legalName:n.legalName,vendorOwner:i.vendorOwner?.selectedOption,recommendedCategory:i.recommendedCategory,recommendedClass:i.recommendedClass,isCategoryUpdateSelected:i.isRecommendedCategorySelected??!1,isClassUpdateSelected:i.isRecommendedClassSelected??!1,vendorEmail:n.email,vendorPhone:n.phone,vendorType:n.vendorType.selectedType,tin:{type:n.tinType??null,value:n.tinValue!=null?n.tinValue.replace(Ut,x.common.strings.empty):null},address:n.address,contacts:e?.[ue]}};export{go as default,ze as formUniqueName,ve as vendor1099DetailsSectionId,y as vendorDetailsSectionId,Rs as vendorSpendTrendFilterTabs};
@@ -1 +1 @@
1
- import{j as S}from"./index-TYkG9rxW.js";import{b as C}from"./vendor-Bs1fkIUX.js";import{D as b}from"./DomesticWireDetailsPage-D5hbPNCt-DaulrfVc.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"./BankAccountSection-GDEQdiGL-D7Gh00lc.js";import"./MagicLinkTitleSection-Cn1v72Rs-BFZI4Y3w.js";import"./BankAccountWarningSection-Di_BsiJC-Be424FdZ.js";import"./MailingDetailsSection-9RwlQxVG-BFE8Zj6F.js";import"./LabeledAddressValueField-YP7bXlgZ-DTTFAf5k.js";const V=({vendorViewDetails:r,bankAccountContext:t,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onFetchBankName:d,onAddressClick:c})=>{const{bankAccountCreationState:o,editVendorState:m,newVendorState:p,bankNameByRouting:u,bankAccountToCreate:k,fetchBankNameByRoutingStatus:l}=r,e=Object.assign({},m??p);return C.useEffect(()=>{(t==="vendor"&&o?.fetchState==="Completed"||e?.saveStatus?.fetchState==="Completed"&&t!=="express-pay")&&a()},[o,e?.saveStatus?.fetchState,a,t]),S.jsx(b,{bankAccountToCreate:k,bankAccountCreationState:o,bankNameByRouting:u,addressToEdit:e?.vendorNewAddressStatus?.addressToCreate,mailingAddress:e?.vendorAddress,addressType:"vendor_address",fetchBankNameByRoutingStatus:l,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onAddressClick:c,onFetchBankName:d})};export{V as default};
1
+ import{j as S}from"./index-MAXVX6UR.js";import{b as C}from"./vendor-Bs1fkIUX.js";import{D as b}from"./DomesticWireDetailsPage-DQG9O9kV-DkLiQ_AK.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"./BankAccountSection-ByfDYmEM-WCmaTn1f.js";import"./MagicLinkTitleSection-CgS4ZMfb-BI5Lq2SW.js";import"./BankAccountWarningSection-BTCdQgZV-Bb72qOHU.js";import"./MailingDetailsSection-BktKZ2Nr-DyWKpOiG.js";import"./LabeledAddressValueField-6MpVMde--DXTq8JS8.js";const V=({vendorViewDetails:r,bankAccountContext:t,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onFetchBankName:d,onAddressClick:c})=>{const{bankAccountCreationState:o,editVendorState:m,newVendorState:p,bankNameByRouting:u,bankAccountToCreate:k,fetchBankNameByRoutingStatus:l}=r,e=Object.assign({},m??p);return C.useEffect(()=>{(t==="vendor"&&o?.fetchState==="Completed"||e?.saveStatus?.fetchState==="Completed"&&t!=="express-pay")&&a()},[o,e?.saveStatus?.fetchState,a,t]),S.jsx(b,{bankAccountToCreate:k,bankAccountCreationState:o,bankNameByRouting:u,addressToEdit:e?.vendorNewAddressStatus?.addressToCreate,mailingAddress:e?.vendorAddress,addressType:"vendor_address",fetchBankNameByRoutingStatus:l,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onAddressClick:c,onFetchBankName:d})};export{V as default};