@zeniai/web-cockpit-ui 1.13.86-prod → 1.13.87-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 (253) hide show
  1. package/dist/assets/{ACHDetailsPage-DGGeHZnW-B0w75Qqa.js → ACHDetailsPage-CW8vDdF5-BjcStneE.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-BnFh61HC-oYjMDFhp.js → AIPerformancePage-tSqRY12b-CS74oHek.js} +29 -29
  3. package/dist/assets/AccountInfoPage-C9rcnhgb-CRWEZYsW.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-C4VpFgc_-PZ9I-m68.js → AccountInfoPageContent-DftJxUep-Cw9zyQ_s.js} +20 -20
  5. package/dist/assets/{AccountReconDetailsDrawerPage-DJmFBJve-CKMiqNaf.js → AccountReconDetailsDrawerPage-CBpvkm_m-BXrukYLg.js} +16 -16
  6. package/dist/assets/AccountRow-cQU8OX0K-yHyqR7LP.js +298 -0
  7. package/dist/assets/{AccountsPromoCardStack-D5elLwcD-DUhWydOV.js → AccountsPromoCardStack-DuBj_EHe-B3WzwbTq.js} +23 -23
  8. package/dist/assets/{AddAddressForCardDrawer-D9uW1sU2-Bc-Z7xPG.js → AddAddressForCardDrawer-D4edy26A-B1-8tiAZ.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-D3yOWwc3-DhHNF9uo.js → AddToWalletPage-Lkfz2CzH--lPqUVOg.js} +35 -35
  10. package/dist/assets/{AgingReportsPage-DlB02nzb-D-Sm1I5S.js → AgingReportsPage-DtW2tU4n-DVEUTxX1.js} +4 -4
  11. package/dist/assets/{AllUserItems-Bwbb5_fm-ynRHF0MF.js → AllUserItems-DcuO9Oho-D7VaO8Uf.js} +7 -7
  12. package/dist/assets/{ApAgingDetailPage-Bhf_ygxm-Ct0RZobi.js → ApAgingDetailPage-D2UVTYqP-9KAbUMxy.js} +3 -3
  13. package/dist/assets/{AppBasePage-DyGLpjZ0-DaARhwk6.js → AppBasePage-iuomCofd-D1M4Ldw8.js} +4 -4
  14. package/dist/assets/{AppDrawerContent-D_dlUPFp-KwJJQrM6.js → AppDrawerContent-BfpdXsfY-BoqfQVbX.js} +8 -8
  15. package/dist/assets/{ApprovalRulesSettingsPage-DLvGE0ND-BRmcznJ6.js → ApprovalRulesSettingsPage-BKAWfUl9-BUmVoC9W.js} +6 -6
  16. package/dist/assets/{ArAgingChart-CR7dx7XY-CKZgeOzb.js → ArAgingChart--GzyqIlN-wEZY3asj.js} +5 -5
  17. package/dist/assets/{ArAgingDetailPage-kU_SEimL-BvGZHW4B.js → ArAgingDetailPage-A0zmG_tR--cuXu7ko.js} +2 -2
  18. package/dist/assets/{AttachmentView-ClQPirg--DEqMxi0K.js → AttachmentView-D203zhS3-Blc80O1o.js} +8 -8
  19. package/dist/assets/{BankAccountSection-DLB1oftk-DWVfhPoh.js → BankAccountSection-iz2k4H5K-CWZXnWVk.js} +4 -4
  20. package/dist/assets/{BankAccountWarningSection-ClrNHLqo-BkJ1BVkf.js → BankAccountWarningSection-CSJXyjMA-BgaGb4P-.js} +5 -5
  21. package/dist/assets/{BankConnectionsSettingsPage-D1w10U35-YZIDDT6F.js → BankConnectionsSettingsPage-Co5pwxWT-C5lfXSpY.js} +15 -15
  22. package/dist/assets/{BillDetailPage-Bfrn4oa6-DQMbSBkL.js → BillDetailPage-BJbdAC5y-CMbCAQ4h.js} +5 -5
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-DIzv3Xu9-B9yjottn.js → BillPayApprovalRuleDetailPage-D4-goF6x-C23aUqzX.js} +2 -2
  24. package/dist/assets/{BillPayApprovalRulesPage-CPBknTMQ-CVKAq3ly.js → BillPayApprovalRulesPage-CpAFdET_-DdMQ64US.js} +3 -3
  25. package/dist/assets/{BillPayPromoPage-CKETeVet-DdUaRi_i.js → BillPayPromoPage-DZn9Wdsi-COOh5nks.js} +2 -2
  26. package/dist/assets/{BillPaySetUpPage-DIz-RZih-BreWbM81.js → BillPaySetUpPage-BGxI3SGy--373OJdf.js} +2 -2
  27. package/dist/assets/BillingSettingsPage-B3h6dTYD-CiH5BD6s.js +44 -0
  28. package/dist/assets/BillsBulkReviewDrawerPage-Ck830aIk-BaNyoEgy.js +1 -0
  29. package/dist/assets/{BoxItem-B8KF3Skh-JYmAPE_J.js → BoxItem-C-RN4c2j-F6XwRGQ-.js} +1 -1
  30. package/dist/assets/BusinessVerificationPage-BEK8kZil-Di05q2Gg.js +140 -0
  31. package/dist/assets/{CardNumberSubText-CNiPWVeO-LUxFhNyr.js → CardNumberSubText-Bvs0Rr9x-DPY11oi8.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-BNWBGKHa-CgYtx0i2.js → CashbackDetailPage-9aAW-23b-6kdPvDSO.js} +24 -24
  33. package/dist/assets/{ChargeCardDetailPage-BuCwlpLH-Dqmxnq7H.js → ChargeCardDetailPage-DHjtLrCu-8rSs9AMN.js} +58 -58
  34. package/dist/assets/ChargeCardListPage-DzmHmoAp-BfBb-N8b.js +355 -0
  35. package/dist/assets/{ChargeCardListTable-D4-Br785-CA2JSsF9.js → ChargeCardListTable-jGT-e74M-5-uAUG8Z.js} +18 -18
  36. package/dist/assets/ChargeCardPromoPage-C2wn8FfE-Qh6s_V9A.js +219 -0
  37. package/dist/assets/{ChargeCardSetupPage-fy0EpA-m-BxDAwTha.js → ChargeCardSetupPage-CN5Nbcsp-Bu6r203Z.js} +2 -2
  38. package/dist/assets/{ChargeCardStatementsPage-B_rdiq_Y-jjH-DAgp.js → ChargeCardStatementsPage-Bu_rIDAD-BeeV8bqA.js} +4 -4
  39. package/dist/assets/{ChargeCardUtils-CtoTn6DQ-CEQAXg_r.js → ChargeCardUtils-C-37hd5J-B8Ue09Ej.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-DfjQ73Ie-BuvaJtMo.js → ChaseOverlay-BG833ttH-_qJdBH9y.js} +8 -8
  41. package/dist/assets/CheckDepositDrawerPage-B4F_yGVS-pfAuDSEr.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-CHsJ-93l-Bi7TfJ-K.js → CollapsableReportTable-CtS-s84B-BR4en1d9.js} +2 -2
  43. package/dist/assets/{CompanyOfficerDetailsSection-BlUCDRW6-B6U8H_cM.js → CompanyOfficerDetailsSection-Bor8xmLS-OgNQHHeC.js} +29 -29
  44. package/dist/assets/{CompanyPassportCard-DSRRu6RZ-C9HDgYfN.js → CompanyPassportCard-n-awcw82-DRSohnEc.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-DpeoVbLk-DkaYrVic.js → CompanyPassportPage-WfbfWOs1-COSgoQMl.js} +139 -139
  46. package/dist/assets/{CompleteProfile-BaTEooSW-BYqXMLi8.js → CompleteProfile-D80JYwPP-BRDUY6r-.js} +10 -10
  47. package/dist/assets/ConfettiBurst-UJtKVS38-DdsiBpUw.js +1 -0
  48. package/dist/assets/{CreateOrEditVendorPage-CaIc3Tib-CxIwekzk.js → CreateOrEditVendorPage-BMLSs7Yo-DmUQ86jB.js} +15 -15
  49. package/dist/assets/{CreditCardPaymentDrawerPage-DEFrzmkG-BRXwoTyj.js → CreditCardPaymentDrawerPage-8zmbMj3u-ZPA-ktu-.js} +16 -16
  50. package/dist/assets/{CreditCardPaymentPlgSection-IeRxDnG7-BraPG36j.js → CreditCardPaymentPlgSection-DD7kSp5v-BuL73gip.js} +10 -10
  51. package/dist/assets/{CurrencySelectField-DDiCwLn7-R8-HKoHS.js → CurrencySelectField-DGID-Pjb-B38xYqrH.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-976y8y35-BKB9eQaF.js → CustomerOnboardingActivationPage-pdEVqtkO-B5fJSkdd.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-ChQOOhF_-C8keGYSw.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYfidx87-BCTz__9n.js → CustomerOnboardingDetailPageSkeleton-1d9j5dWO-dyqi73hm.js} +11 -11
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-DrLZ3k77-D649rhkt.js → CustomerOnboardingNoStepsPage-BqrKQCFg-1lfgph7E.js} +8 -8
  56. package/dist/assets/CustomerOnboardingPage-DVVWivk2-WMhFdF9M.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-CmHltdpN-H0vMGnp1.js → CustomerOnboardingProductSuitePage-D_WVGW91-B4zQnbeq.js} +4 -4
  58. package/dist/assets/Dashboard-B-fLAQ8T-DoAtb0kg.js +1253 -0
  59. package/dist/assets/{DashboardReportPage-DULpVd6J-l4Vy7hhH.js → DashboardReportPage--SAxmUu_-Dq18S8YZ.js} +67 -67
  60. package/dist/assets/{DepositAccTransactionItem-BEs_Al_8-Bg20fmit.js → DepositAccTransactionItem--OdW7LRx-zcdQHy5Q.js} +2 -2
  61. package/dist/assets/{DepositAccTransactionListPage-CL8Rr3I4-PTeUP6x-.js → DepositAccTransactionListPage-BGapI5f0-BXH4xxAt.js} +8 -8
  62. package/dist/assets/{DocumentSecurityBanner-BgKXBGg3-Bl8BwMyM.js → DocumentSecurityBanner-Ctdvj5Tn-CM5WmW33.js} +1 -1
  63. package/dist/assets/DomesticWireDetailsPage-BGP2DLHb-CLZOaehZ.js +21 -0
  64. package/dist/assets/{DownloadOverlay-cne9_fIV-BVhcS5G6.js → DownloadOverlay-VDEpvzHH-C6KDM3Im.js} +17 -17
  65. package/dist/assets/{DrawerPage-B0mgBHB5-B97-EY3F.js → DrawerPage-BauCSJ4q-DA93KkS0.js} +8 -8
  66. package/dist/assets/EditPeoplePage-mz7FTion-DdIStM8G.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-DWhSkrJ7-Ck-WrOdO.js → EditReimbursementDetailPage-Bi_rdyjb-DXvJQD3u.js} +69 -69
  68. package/dist/assets/{EntityDetailPage-wnOA1SH7-DunEwi-2.js → EntityDetailPage-Bc2AVCEp-DOVttkwP.js} +2 -2
  69. package/dist/assets/{EntitySummarySection-Q_UUVBaU-CCdZqN3Z.js → EntitySummarySection-CDO6K9RG-CZ1I06e-.js} +11 -11
  70. package/dist/assets/{ExpenseAutomationOverviewPage-BumrdlGf-DlUCUheT.js → ExpenseAutomationOverviewPage-C7SAclix-Ch7r281h.js} +20 -20
  71. package/dist/assets/{ExpenseAutomationPage-DKjInf-x-CLrqgMqv.js → ExpenseAutomationPage-A03nzEV--i6evGevK.js} +84 -84
  72. package/dist/assets/{ExpressPayPage-wwfao-Tr-ryF8peXx.js → ExpressPayPage-B5QCvPtb-mYcSl8Ub.js} +8 -8
  73. package/dist/assets/{FeaturePreviewPage-DriDr9id-U4qY_kzw.js → FeaturePreviewPage-Czr4aIad-Bq5X23tc.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-5025urr9-DTswNK5r.js → FollowStepsSection-Cf1g5oOj-5G8g4W7R.js} +9 -9
  75. package/dist/assets/{GlobalReviewListPage-BFjOsp4u-CkPnlCwo.js → GlobalReviewListPage-BI8uyXfO-DlP3gmGv.js} +11 -11
  76. package/dist/assets/HelpButton-CWPUP9Y_-RpIu9G0D.js +28 -0
  77. package/dist/assets/{InformationCardStack-DrD-sWV8-CpQ1DMby.js → InformationCardStack-WnJWUp5O-BeMJUt9i.js} +5 -5
  78. package/dist/assets/{InsightsCardStack-CFqfiCOY-CdOcRooy.js → InsightsCardStack-CRA0RPsW-D6ISd9AF.js} +8 -8
  79. package/dist/assets/{InsightsSection-CN1BVvSr-BcPmBh3t.js → InsightsSection-DvcmBPbo-Kmp0eo1Q.js} +3 -3
  80. package/dist/assets/{IntegrationsSettingsPage-BBlKuJxA-BSt5UPQP.js → IntegrationsSettingsPage-D41_8UnK-CBjS_ZvM.js} +5 -5
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-f4DZUYIx-Bc0iCI6o.js → InternationalWireSwiftDetailsPage-BFN-eaZB-DkA8hvOx.js} +11 -11
  82. package/dist/assets/{InternationalWireVerificationPage-5WpkXxPC-D1J0y5mG.js → InternationalWireVerificationPage-xmoJO63s-D_kiU9kB.js} +17 -17
  83. package/dist/assets/{InviteFormPage-Bw2ykerx-CTE02jgl.js → InviteFormPage-Zy3qQng6-WUFAPnrT.js} +14 -14
  84. package/dist/assets/{InvitePageListView-BHp1m02Z-Bsala5KT.js → InvitePageListView-gATEAhxa-BJvv1nxH.js} +40 -40
  85. package/dist/assets/InvitePeoplePage-DkRbCpN7-4Qef88o5.js +12 -0
  86. package/dist/assets/{InvoiceUploadSection-B8Xsz6dM-DG10muME.js → InvoiceUploadSection-CTbnx9F4-DxOvNNGL.js} +5 -5
  87. package/dist/assets/{IssueChargeCardPage-DYrMWSZg-B_Lk6fnL.js → IssueChargeCardPage-BwBDVxeq-QT3JqZbp.js} +25 -25
  88. package/dist/assets/{LabeledAddressValue-kKgzA0is-XuxMbm26.js → LabeledAddressValue-C5YXOhcz-DcQYX30H.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-Bey_bvyv-DkjQja9O.js → LabeledAddressValueField-CMIVYcKX-IiR7eG-s.js} +3 -3
  90. package/dist/assets/{LabeledControlledCheckBoxField-CKrD5nfN-VcMd1w66.js → LabeledControlledCheckBoxField-Dr8ND8SA-C9Qzlvtb.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-B3x1MZJr-BQbLyyvB.js → LabeledCreatableSingleSelectField-CrDFWvwI-C1AD80Rw.js} +7 -7
  92. package/dist/assets/LabeledDocumentField-BG6Pu34Y-Dl5pM6Dq.js +41 -0
  93. package/dist/assets/LabeledDropDownFormattedTextField-cv7zClcb-f3M9bbM_.js +59 -0
  94. package/dist/assets/{LabeledText-BUZXeSSr-TfY54fhJ.js → LabeledText-DaM1ChQF-BwcpwF0f.js} +3 -3
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField--jmAGQy--CoSZdDuI.js → LabeledUserSingleSelectWithSubtitlesField-ClM9Uj1y-6k_crmLc.js} +6 -6
  96. package/dist/assets/{LabeledZeniRolesDropDownField-Dt5MOz8L-DuC7vLqr.js → LabeledZeniRolesDropDownField-DfAO3Vyq-C62yt72O.js} +21 -21
  97. package/dist/assets/{LinkJETransactionPage-DZZORFZw-zu63LnoB.js → LinkJETransactionPage-CSlZZ9r4-ChRBBG28.js} +7 -7
  98. package/dist/assets/{LowBalancePopup-BQYkTR6v-BKR39KfH.js → LowBalancePopup-ZfmTgr7J-C3y63M8c.js} +7 -7
  99. package/dist/assets/{MagicLinkACHDetailsPage-B2TCqv5k-YAHQsZg5.js → MagicLinkACHDetailsPage-Ad9q16ze-Cc4KtwXI.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-D0Fcshtr-ClddkEWx.js → MagicLinkDomesticWireDetailsPage-TudYpGU_-cwp5jFX6.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BfschSvJ-jdQCIQzO.js → MagicLinkInternationalWireDetailsPage-DfZQur8x-MDCFOTKW.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-CLkxou_Q-88Fi-ErF.js → MagicLinkSuccessPage-G9P6M-7E-bWNtOw6X.js} +5 -5
  103. package/dist/assets/{MagicLinkTitleSection-BcnZtmCV-epy2dj3A.js → MagicLinkTitleSection-BnKDwhBK-wh8Yf-S0.js} +3 -3
  104. package/dist/assets/{MailingDetailsSection-B5PAttoo-CAWfzI0V.js → MailingDetailsSection-BV_-2RQM-CCg3F_6v.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-DM1wkT0M-Bm_cctkg.js → MeetingCalenderPopup-C6y2cRLo-BgxsFwD_.js} +1 -1
  106. package/dist/assets/{Menu-teOpHszN-Dh_2vQ1Q.js → Menu-Dhi3mAAc-CTdMUIt5.js} +3 -3
  107. package/dist/assets/{MyBankConnectionsSettingsPage-M74Mv2-V-Cz_Rumpg.js → MyBankConnectionsSettingsPage-D1DMNxbh-ChPr7QXP.js} +13 -13
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-jv9dbM48-CnTuqx43.js → MyPendingActivationChargeCardListPage-CtxNt4Km-OhPuLid4.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-CrhE1vfc-DajCnu6s.js → MyProfileSettingsPage-ehPTh7cb-C19JE_a0.js} +8 -8
  110. package/dist/assets/{NavBarWithPicker-w36OQzVq-CmZfp2mA.js → NavBarWithPicker-BF7k45-H-CqiTH9vF.js} +3 -3
  111. package/dist/assets/{NavigationArrow-CUVjQXS6-qUKTkXFl.js → NavigationArrow-DKuw9kCL-2Rze1y5j.js} +9 -6
  112. package/dist/assets/{NavigationDots-Dt6TkUQ7-sum6xK1Z.js → NavigationDots-DfJQIsra-CF_rwB9h.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-BAq_UQw1-DoKkpxED.js → NewGlobalMerchantPage-CWyjN00H-0DvMrAS7.js} +9 -9
  114. package/dist/assets/NoDataChart-BHIoW_SW-DoqAVhyM.js +26 -0
  115. package/dist/assets/{NoDataTable-Akc9VjuK-DBDpQtci.js → NoDataTable-Txtz3a1x-CVIPKw2H.js} +1 -1
  116. package/dist/assets/{NotFoundPage-3pCYWZU4-CzFa-O_Q.js → NotFoundPage-DewJikvf-DquNlF_a.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-BX5y9Bhs-ChsBGNJT.js → NotificationSettingsPage-CAFlFJ9J-DNtSJXlE.js} +17 -17
  118. package/dist/assets/NotificationsListConfig-B6PteXf7-BPHFWRyo.js +1 -0
  119. package/dist/assets/{NotificationsPage-tre5LIJg-DXHT17a1.js → NotificationsPage-CqmgbRYI-B1REvxM0.js} +32 -32
  120. package/dist/assets/{OpExByVendorPage-Dagfjaza-BG12d2vk.js → OpExByVendorPage-CYAYFvCM-CDkrX969.js} +5 -5
  121. package/dist/assets/{OverlayContainerPage-nhe7xtoR-DhgreE--.js → OverlayContainerPage-C0rUb6-5-W0ax80yE.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-B6BwG3ZF-CpWFWN3l.js → PandLWithForecastPage-v5t7YeHA-c32BpF_9.js} +7 -7
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-w6QwL-c4-BQdRKRB_.js → PaymentAccountSetupBillingAddressSection-CnCCn9XQ-CNY3y6cT.js} +9 -9
  124. package/dist/assets/{PeoplePage-EFDCrYUk-CE3mVjyD.js → PeoplePage-D89yZGJn-CFNcLLmk.js} +21 -21
  125. package/dist/assets/{PortfolioAllocationFormPage-DbGLXM2D-Bx9gvRhX.js → PortfolioAllocationFormPage-Cit7ssiw-CpmTmt3z.js} +3 -3
  126. package/dist/assets/{PortfolioDetails-D2RWl4uo-DGy5rPyu.js → PortfolioDetails-B1HXVeH2-D3KDftxW.js} +12 -12
  127. package/dist/assets/{ProductsCarousel-o-YsHwnV-CbcIWkQ0.js → ProductsCarousel-BeOYePu1-BPS8weXu.js} +7 -7
  128. package/dist/assets/{PromoBaseCards-D21UZaz1-BKv3YpvZ.js → PromoBaseCards-D1DDp9C1-BMl9m8-G.js} +25 -25
  129. package/dist/assets/{QBOConnectionDialog-DOpuFcsk-DYkeM55L.js → QBOConnectionDialog-nb_5mvqp-CNrftMhR.js} +8 -8
  130. package/dist/assets/{QBOSetupSection-Dcf_Afvz-Cbe3ZtEf.js → QBOSetupSection-b-OrlvdU-D5Bh2qoF.js} +11 -11
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DcDdM_Ss-C7HEqCY_.js → ReimbursementApprovalRuleDetailPage-vg7A7Fqa-DKxcfaTy.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-BhdyXjR--D8DMWvvK.js → ReimbursementApprovalRulesPage-FYfZ8-hX-DxG5e0_0.js} +8 -8
  133. package/dist/assets/ReimbursementDetailPage-DHsqq__V-BbntdEZI.js +314 -0
  134. package/dist/assets/{ReimbursementPromoPage-DJTuXxOX-Drg3-8a0.js → ReimbursementPromoPage-D-wmyfH--DT237a-Y.js} +16 -16
  135. package/dist/assets/{ReimbursementSetUpPage-DaIc03J9-DLaizgXu.js → ReimbursementSetUpPage-Cneg3RyB-nHTacFs2.js} +12 -12
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BW6yGqNG-btJeNAgh.js → ReimbursementsBulkReviewDrawerPage-OTHapAJy-B07Bk0eB.js} +1 -1
  137. package/dist/assets/{ReloadCard-D3-WJk3W-OXxdzcMU.js → ReloadCard-D72dkm5s-DHOqIhPE.js} +5 -5
  138. package/dist/assets/{ReportTableViewSelector-ZI_K0-D2-CIoJuBlW.js → ReportTableViewSelector-DfZ5geuW-DyPrCXZD.js} +7 -7
  139. package/dist/assets/{ReportsPage-DsILNosH-BV3Vvbdo.js → ReportsPage-7E3Q5HHF-DXypTMXr.js} +9 -9
  140. package/dist/assets/{RevenueChart-CKKeqpBi-BfzJ94CA.js → RevenueChart-G7w1_QXE-CK6mJH77.js} +15 -15
  141. package/dist/assets/{ReviewDetailsPage-BTag8Rn9-gND3y4kA.js → ReviewDetailsPage-i6ZXMuAf-CAvd4g6H.js} +19 -19
  142. package/dist/assets/{ReviewOverlay-CmbxFXT5-DAX6Vi5G.js → ReviewOverlay-D0tbkcpk-u3R_yBnI.js} +15 -15
  143. package/dist/assets/{RoleWithToolTip-D25NUL6y-tf-yHmuW.js → RoleWithToolTip-w2s9tX9j-CThc8drW.js} +6 -6
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-svqtgWEw-2FnaI8Kv.js → ScheduleDetailsFixedAssetsPage-5uPqQbhv-c_seLLEr.js} +8 -8
  145. package/dist/assets/{ScheduleDetailsPage-ClifB2yP-BqsDO0Dj.js → ScheduleDetailsPage-n2Mhm3VT-Qa9fyFQC.js} +3 -3
  146. package/dist/assets/{ScheduleSequenceTable-Bzz4WFsb-BwftU03v.js → ScheduleSequenceTable-BbLZtq_G-B-PxnDpg.js} +50 -50
  147. package/dist/assets/{ScreenRoutes-DCMPUDES.js → ScreenRoutes-1MbaXcJV.js} +35 -35
  148. package/dist/assets/{SetUpAccountSection-DHHAhE7n-BYj2HZ1g.js → SetUpAccountSection-CuOJZCNp-D6aQorsQ.js} +103 -103
  149. package/dist/assets/{SetUpDefaultSection-DkoRgSyp-Bj90DWQf.js → SetUpDefaultSection-D0d0yzu8-BDWGdtc-.js} +16 -16
  150. package/dist/assets/{SignIn-DSJylxLB-RERuk1YM.js → SignIn-CtZ8rTB_-wQdGuYtt.js} +16 -16
  151. package/dist/assets/{SignInScreen-B8ft0_Ar.js → SignInScreen-BSTxrh_N.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-NfjbjBOy-DW0rH2Ft.js → SpendManagementListViewPage-ymHs-MwL-BFF1eR3M.js} +13 -13
  153. package/dist/assets/{SpendManagementPerTabPage-CJqqj2pl-E24ZlsVq.js → SpendManagementPerTabPage-DwRwO5jR-DYEyp8w8.js} +52 -52
  154. package/dist/assets/{SpendManagementSection-C8jUu71n-BZHis9xk.js → SpendManagementSection-B1F6rl-n-Bxu1kHsM.js} +10 -10
  155. package/dist/assets/{SpendMgmtSetupAccountSection-CNcWLqIc-Bd_LEEBx.js → SpendMgmtSetupAccountSection-o-48qyw7-BwGu-MNC.js} +17 -17
  156. package/dist/assets/{StatementItem-CV3b0pVj-BI2xUPtS.js → StatementItem-CK2sUgkE-C5tUfOGU.js} +8 -8
  157. package/dist/assets/StatementsPage-D25LsJRp-EGUjR_Fx.js +58 -0
  158. package/dist/assets/{StatusSwitcher-CxzYEzIO-Co7QMQgC.js → StatusSwitcher-BppDI7-7-CaTqg34_.js} +5 -5
  159. package/dist/assets/{SubTabSwitcher-_XBeoyd8-B6G5BhKB.js → SubTabSwitcher-DTe2L8JC-D4RBO14j.js} +1 -1
  160. package/dist/assets/{SummaryCard-egXz66_a-Cl1rSzvu.js → SummaryCard-B-_3DnqQ-C4MQdd4u.js} +1 -1
  161. package/dist/assets/TaskManagementPage-NFVqhs6K-Bu_ZJ76r.js +508 -0
  162. package/dist/assets/{TimeRangeSwitcher-DETvaZov-CwVHTAYo.js → TimeRangeSwitcher-D5pSi1fB-XM_OXE-C.js} +5 -5
  163. package/dist/assets/{TimeframeSwitcher-DRQZAZ8X-DCySEKV1.js → TimeframeSwitcher-CQ37qP58-CJPthL9i.js} +5 -5
  164. package/dist/assets/TimeframeSwitcherWithToggle-DDX_BvPF-1t-6tvHL.js +31 -0
  165. package/dist/assets/{TopExCard-CtEulaIf-Zmeg67y4.js → TopExCard-CU-kbyDP-BkqVk6Yr.js} +6 -6
  166. package/dist/assets/{TopExDetailPage-O4MMssGR-B3pvpEDI.js → TopExDetailPage-COxNovqU-TyxPPRK9.js} +11 -11
  167. package/dist/assets/{TransactionDetailPage-CfY8i6QF-DDhR6G8w.js → TransactionDetailPage-k06RliU--jpVAAS-E.js} +40 -40
  168. package/dist/assets/{TransactionList-BABUQprb-CGrGARxw.js → TransactionList-CuRdM1xm-CGrWmUwi.js} +13 -13
  169. package/dist/assets/{TransactionListBig-qJc1PM0U-D-w-QKVO.js → TransactionListBig-ByLaQQUK-DVTWGGO_.js} +18 -18
  170. package/dist/assets/TransactionListPage-ioT-Jexm-z12q095m.js +35 -0
  171. package/dist/assets/{TransactionVendorDetailPage-nHnLQdj7-BobBNONL.js → TransactionVendorDetailPage-Dyg9upjC-FtRQ9fft.js} +6 -6
  172. package/dist/assets/{TransferDrawerPage-CkbHu9oQ-Cr2kLjQa.js → TransferDrawerPage-B6zOVR7E-PtwoiwD5.js} +33 -33
  173. package/dist/assets/{TreasuryOverviewPage-D9qxqZOy-DgvCDwU7.js → TreasuryOverviewPage-Cae5Kj1r-CipOXBTi.js} +29 -29
  174. package/dist/assets/{TreasuryPromoPage-Bn_4ae7Q-MjHQLB6N.js → TreasuryPromoPage-iNiwYAiH-bWL0zXEM.js} +15 -15
  175. package/dist/assets/{TreasurySetupPage-CpZDjXwu-BlgaftAJ.js → TreasurySetupPage-Bdl5g5Ct-DGTj2ns3.js} +6 -6
  176. package/dist/assets/{TreasuryStatementsPage-BXDwbrcC-B0Yvh0ZH.js → TreasuryStatementsPage-CLy-YBGI-_kq4Lb1i.js} +7 -7
  177. package/dist/assets/{TreasuryTaxLetterPage-Cwf-e3Jz-BGI8bIrR.js → TreasuryTaxLetterPage-lRsyHBLO-DlgswuUG.js} +7 -7
  178. package/dist/assets/{TreasuryTransferOrReviewPage-BSiDVjnO-jKxiAOAU.js → TreasuryTransferOrReviewPage-Cbfh-a6j-DM2Y9vYh.js} +10 -10
  179. package/dist/assets/TrendChart-BXOatw0x-CophMwJ6.js +16 -0
  180. package/dist/assets/{TrendWithTransactions-D8xzYG_f-BXYJlM5g.js → TrendWithTransactions-BxoyLfjd-_bPvq9jR.js} +3 -3
  181. package/dist/assets/{UncategorizedAccountsMappingPage-CteEKVJk-V8s5GSE9.js → UncategorizedAccountsMappingPage-BA4o7PWu-CMrlTXMW.js} +13 -13
  182. package/dist/assets/{UnitIntegrationPage-BBAq4_81-CQPS6SXm.js → UnitIntegrationPage-Clt-99RU-BrzMoE2E.js} +4 -4
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-Drs2Czkg-CGyOsBXK.js → UploadAdditionalDocumentOverlay-LxTjdCJQ-COub0S1H.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-DKe-eMoF-C2M9SXlf.js → Vendor2FAPopup-DjHQdB-O-CGPHoNJv.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-CTeRlLgu-kYd8MIRh.js → VendorACHDetailsPage-TaEzA3ib-BtSubgL_.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-Cw7Qe1rv-VsBgNF4C.js → VendorDetailPage-BeADTlAW-BEAFQ3r2.js} +13 -13
  187. package/dist/assets/{VendorDomesticWireDetailsPage-CYkst1D5-7By2THmG.js → VendorDomesticWireDetailsPage-EpIw_vNR-C7RuY-PA.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-CXQx0jJQ-IhMnk3PA.js → VendorFiling1099EditablePage-B-jTzcx7-CbBKMdpG.js} +8 -8
  189. package/dist/assets/{VendorFirstReviewPage-C1yTYtW6-DMX2ZPAc.js → VendorFirstReviewPage-BrlyeQoC-BZiG_JRb.js} +29 -29
  190. package/dist/assets/{VendorInternationalWireDetailsPage-CfbGRN9B-DCdpm2-s.js → VendorInternationalWireDetailsPage-B22crnTD-tpyu7OIk.js} +7 -7
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DTxy0byj-D5CQNR_y.js → VendorInternationalWireSwiftDetailsPage-BpXZD_Eh-CX1DO0ul.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-B_nDMJSn-1NkwRYu4.js → VendorsAccountsSection-CLrfBouK-CqWzAgHB.js} +4 -4
  193. package/dist/assets/{WarningsDrawerPage-Dz3EM7AW-BaYVjn6f.js → WarningsDrawerPage-CBZRy4Sm-DJIt8rHu.js} +4 -4
  194. package/dist/assets/{ZeniAccountDetailPage-C01gqJIN-BM-R1eoj.js → ZeniAccountDetailPage-Bfvuuiyl-Dadw6og4.js} +26 -26
  195. package/dist/assets/{ZeniAccountListViewPage-3DEdKuaM-CRpdg_Kj.js → ZeniAccountListViewPage-CTqmq_Vp-3SYD23NH.js} +18 -18
  196. package/dist/assets/ZeniAccountNavBarPieces-iNAQFffX-jEy_vHEe.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-ClgIxS0H-dyns3_0Y.js → ZeniAccountPromoPage-XHKL_dgv-zxVudUmY.js} +12 -12
  198. package/dist/assets/{ZeniAccountSetupPage-C-vwyHUJ-ByPV9mPy.js → ZeniAccountSetupPage-BHMr828J-Cb9LGjcX.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-CqFabZnN-CFC5-_8n.js → ZeniCopyright-B_2DB9mm-Do8EbmHN.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-BwHzq-qG-CpfXUhbu.js → ZeniTransferAmountSlider-BnjyU6o3-D4fZwoL6.js} +1 -1
  201. package/dist/assets/analytics-DThoELaW.js +7 -0
  202. package/dist/assets/{analyticsHelper-CvW7m-EV-nO2i_RUx.js → analyticsHelper-Bh8Vo_J_-DdkQ2A3j.js} +1 -1
  203. package/dist/assets/{analyticsHelper-m4qvu5s8.js → analyticsHelper-COZBEzRa.js} +1 -1
  204. package/dist/assets/{chartTypes-0tTBFzPe-CKqP5TB1.js → chartTypes-DpnOYtNo-C1MRDQOQ.js} +1 -1
  205. package/dist/assets/{commonDimensions-B68wSFi9-BOPm5YVm.js → commonDimensions-D2zuat_O-BjWWOnE2.js} +1 -1
  206. package/dist/assets/{detailCommon-D2RAJL6g-Ctxx0B-m.js → detailCommon-CloEmsTm-FeTpoyrx.js} +10 -10
  207. package/dist/assets/{downloadPdf-IPGZ8YB9-CGTdag_A.js → downloadPdf-OWaFOL1J-_yuPyAAc.js} +1 -1
  208. package/dist/assets/{index-CjViJI82.js → index-LFy5NlUr.js} +3519 -3479
  209. package/dist/assets/{liveblocks-BUGn2yQ6.js → liveblocks-sSQ9JElv.js} +1 -1
  210. package/dist/assets/{mapLoadingInProgressToTreeNode-DhjVTksX-D9f25W17.js → mapLoadingInProgressToTreeNode-Df6n7jwq-DhIXCvCe.js} +1 -1
  211. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DtR1UNND--ulpnsBf.js → mapSectionWithAcOnlyToTreeNode-BvlNBFiJ-CBY5TVGr.js} +1 -1
  212. package/dist/assets/{mapSpacerToTreeNode-oskKbJKo-DkK4Sqat.js → mapSpacerToTreeNode-BM8XMc8I-DixdkzZo.js} +1 -1
  213. package/dist/assets/{mapTimeframeBalancesToTreeNode-BkUJJy_y-8lKA5ScY.js → mapTimeframeBalancesToTreeNode-B3bP14C6-CT5Uu0sF.js} +1 -1
  214. package/dist/assets/mui-C5LQ0bMa.js +25 -0
  215. package/dist/assets/{play-icon-C_pnFd6Q-9jE99gvQ.js → play-icon-NE4JTPpx-CK0WoxqT.js} +1 -1
  216. package/dist/assets/{redux-DmDqXYej.js → redux-ByjIRbhZ.js} +1 -1
  217. package/dist/assets/{routing-BNz5gZgX.js → routing-Cpaypegg.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-e2ImXwdp-CKDntHr-.js → toCOABalancesWithID-DN21aiLH-Bx86HqeI.js} +1 -1
  219. package/dist/assets/{toChartData-Dh91kb97-BZZ8pWR6.js → toChartData-CG9GudeA-Bcz5dDyw.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-D9SYrM7P-DmVNjxNp.js → treasuryColorHelper-CNX5IuXX-6ZEgxHO3.js} +1 -1
  221. package/dist/assets/{uploadAttachment-BZTALP74-BVGfc45j.js → uploadAttachment-D42oX05_-CRxK5DEq.js} +29 -29
  222. package/dist/assets/{uploadReceipts-BH9fi3Vt-BJeYWSVA.js → uploadReceipts-Buvz7DfG-DslgfUmv.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +5 -5
  225. package/dist/assets/AccountInfoPage-BoCzcaQW-0jZO3NrI.js +0 -18
  226. package/dist/assets/AccountRow-vtPa0PJn-Ccj8p0p9.js +0 -298
  227. package/dist/assets/BillingSettingsPage-Bm-IF_p7-DNHl4xz8.js +0 -44
  228. package/dist/assets/BillsBulkReviewDrawerPage-CVAG78EK-DCPUzEL9.js +0 -1
  229. package/dist/assets/BusinessVerificationPage-Ctqy7ZwA-Pibcm8K3.js +0 -140
  230. package/dist/assets/ChargeCardListPage-CXbTalVQ-CKsNCzlh.js +0 -355
  231. package/dist/assets/ChargeCardPromoPage-BTfg7L28-DF47hcgS.js +0 -175
  232. package/dist/assets/CheckDepositDrawerPage-yUzhTMSu-MeotqJRr.js +0 -206
  233. package/dist/assets/ConfettiBurst-C2engbkN-V_uY_tO9.js +0 -1
  234. package/dist/assets/CustomerOnboardingContainerPage-DzzvTpfs-pWxD83yn.js +0 -1
  235. package/dist/assets/CustomerOnboardingPage-BiUXryld-HgqXiajr.js +0 -107
  236. package/dist/assets/Dashboard-B1UeMAoF-Uk-MHkBf.js +0 -778
  237. package/dist/assets/DomesticWireDetailsPage-CVKheLW6-BJ0WqkU8.js +0 -21
  238. package/dist/assets/EditPeoplePage-DgVDgYlm-DOxAUhJ5.js +0 -55
  239. package/dist/assets/HelpButton-CzonsAOi-C6o6gRiy.js +0 -28
  240. package/dist/assets/InvitePeoplePage-BnlUrpPG-CsqOL2ci.js +0 -12
  241. package/dist/assets/LabeledDocumentField-BKPP0tRe-CIjTxmdT.js +0 -41
  242. package/dist/assets/LabeledDropDownFormattedTextField-NsCaPjuf-DxsA2YFq.js +0 -59
  243. package/dist/assets/NoDataChart-CydgbaO2-CIdUt3UK.js +0 -26
  244. package/dist/assets/NotificationsListConfig-BrTtuTMy-4ldKuia7.js +0 -1
  245. package/dist/assets/ReimbursementDetailPage-BSWNsboq-DNwPGNwv.js +0 -314
  246. package/dist/assets/StatementsPage-ly5aBK2M-B3w4WjIP.js +0 -58
  247. package/dist/assets/TaskManagementPage-CQL5Q6wr-_3qK_AWB.js +0 -508
  248. package/dist/assets/TimeframeSwitcherWithToggle-CuU7mRU9-0sgW3h40.js +0 -31
  249. package/dist/assets/TransactionListPage-DuAk6fJT-BXMjUZ88.js +0 -35
  250. package/dist/assets/TrendChart-Dp3QrDED-TLZjgCXh.js +0 -16
  251. package/dist/assets/ZeniAccountNavBarPieces-bthmMpbV-DlefBJUL.js +0 -14
  252. package/dist/assets/analytics-BSSiLa6f.js +0 -7
  253. package/dist/assets/mui-BgvZYSo0.js +0 -22
@@ -0,0 +1,206 @@
1
+ import{X as Q,j as t,Y as $,gZ as pe,M as ee,_ as M,K as _,o,a3 as he,C as l,a2 as oe,k as ue,an as me,b$ as te,w as ge,q as F,a1 as xe,a as fe,c2 as ke,g as w,F as De,fD as $e,c5 as we,eN as G,cc as J,p as s,cV as be,bF as ye,bm as je,cy as Pe,f7 as Se,f as q,f9 as Le}from"./index-LFy5NlUr.js";import{b as k,n as a}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ve="checkDepositDetailPage",g="checkDepositDetails",Fe="amount",Ce="depositTo",Te="source",ie="fileIds",R="selectDocument",E=e=>{const p=[];return e.checkFront!=null&&p.push(e.checkFront.fileId),e.checkBack!=null&&p.push(e.checkBack.fileId),{[g]:{[Fe]:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,[Te]:e.checkDepositLocalData.source,[Ce]:{allOptions:e.depositAccounts.depositAccounts.map(x=>({label:x.accountName,value:x.id})),selectedOption:e.checkDepositLocalData.depositTo?.id},[ie]:p,[R]:{front:e.checkFront,back:e.checkBack}}}},D=(e,p)=>`${e}.${p}`,Be=e=>`${e}_form`,u={largeLabelWidth:new l(160,160,160),rowContentPaddingLeft:new l(s[3],s[4]),checkPicRowContentPaddingXAxis:new l(s[3],s[4]),labeleMarginLeft:new l(s[0],s[0]),labeleMarginBottom:new l(s[2],s[0]),labelMarginRight:new l(s[3],s[3]),labeledFieldPaddingLeft:new l(s[3],s[0]),labeledFieldPaddingRight:new l(s[3],s[2]),labeledFieldPaddingTop:new l(s[3],s[3]),labeledFieldPaddingBottom:new l(s[3],s[2]),infoLabelPaddingRight:new l(s[0],s[3]),infoLabelMarginTop:new l(s[1],s[0])},{spendManagement:ze,common:V}=ee.getLocalizedStrings(),c=ze.zeniAccounts.zeniAccountList,Ae=V.documents;function Ie({checkDeposit:e,analytics:p,filesEndPoint:x,openPopup:b,authParams:y,onSaveChangesToLocalStore:C,updateFilesEntity:j,onDeleteFile:P,onEditFileName:S,onCheckDpositClick:T}){const r=Q(),n=e.fetchState,L=xe(n),[v,K]=k.useState(!1),[se,B]=k.useState(!1),z=u.largeLabelWidth.value(r),f=fe({mode:"all",reValidateMode:"onBlur",defaultValues:E(e),values:E(e)}),{isValid:re}=f.formState,Y=i=>{const d={amount:{amount:i[g].amount??0,currencyCode:V.currency.currencyCode,currencySymbol:V.currency.currencySymbol},source:i[g].source,depositTo:e.depositAccounts.depositAccounts.find(h=>h.id===i[g].depositTo.selectedOption),fileIds:i[g][ie]};C(d)},ce=async(i,d)=>{if(i!=null){if(i.includes("source")||i.includes("amount"))return;const h=Object.assign({},d);Y(h)}};k.useEffect(()=>{const i=f.watch((d,{name:h})=>{h!=null&&d!=null&&ke(()=>ce(h,d))});return()=>{i.unsubscribe()}}),k.useEffect(()=>{L==="Completed"&&n==="Not-Started"&&f.reset(E(e))},[L,n,f,e]),k.useEffect(()=>{e.error!=null?B(!0):B(!1)},[e.error]);const le=f.handleSubmit(()=>{if(re){p.trackAccountsDepositCheckFormClicked("Deposit",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null);const i=f.getValues();Y(i),T?.()}}),ne=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(I=>I.id===i),A=e.depositAccounts.depositAccounts.findIndex(I=>I.id===i);return h?t.jsx(Ve,{color:Se(A),isSelectedValue:d}):null},de=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(A=>A.id===i);return h?d===!0?t.jsx(Re,{children:h?.maskedAccountNumber}):t.jsxs(Me,{children:[t.jsx(X,{children:h?.maskedAccountNumber}),t.jsx(to,{}),t.jsx(X,{children:M("0,0[.]00",h?.accountBalance?.available)})]}):null};return t.jsxs(t.Fragment,{children:[se?t.jsx(Oe,{children:t.jsxs(qe,{children:[t.jsxs(Ke,{children:[t.jsx(_e,{}),t.jsxs(Ge,{children:[t.jsx(Je,{children:e.error?.title}),t.jsx(Xe,{children:e.error?.message})]})]}),t.jsx(Ye,{children:t.jsx(ro,{"data-testid":$("check-deposit-form-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),B(!1)},style:{width:o.sp3,height:o.sp3,color:w.heroLight}})})]})}):null,t.jsx(Ze,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...f,children:t.jsx("form",{id:Be(ve),onSubmit:le,children:t.jsxs(We,{children:[t.jsx($e,{showAdditionalInfoLabel:!1,label:{label:c.checkDepositDrawer.amountLabel,width:z},formattedTextField:{type:"number",name:D(g,"amount"),defaultValue:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,placeholder:c.checkDepositDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:i=>!!i&&i>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}}),t.jsx(N,{}),t.jsx(we,{label:{label:c.checkDepositDrawer.sourceLabel,width:z},style:{width:"100%"},text:{type:"text",name:D(g,"source"),defaultValue:e.checkDepositLocalData.source,placeholder:c.checkDepositDrawer.sourcePlaceholder,options:{required:!0,validate:i=>i!=null}}}),t.jsx(N,{}),t.jsx(ae,{size:r,children:t.jsx(eo,{size:r,children:t.jsx(Ue,{label:{label:c.checkDepositDrawer.depositToLabel,width:z,style:{marginLeft:u.labeleMarginLeft.valuePx(r),marginBottom:u.labeleMarginBottom.valuePx(r),marginRight:u.labelMarginRight.valuePx(r)}},style:{paddingTop:u.labeledFieldPaddingTop.valuePx(r),paddingBottom:u.labeledFieldPaddingBottom.valuePx(r),paddingLeft:u.labeledFieldPaddingLeft.valuePx(r),paddingRight:u.labeledFieldPaddingRight.valuePx(r),border:"none",width:"100%",outline:"none",padding:0,display:r==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:r==="small"?"left":"right",paddingRight:u.infoLabelPaddingRight.valuePx(r),marginTop:u.infoLabelMarginTop.valuePx(r)},singleSelectPickerField:{valueToLogo:(i,d)=>ne(i,d),valueToSubLabels:(i,d)=>de(i,d),name:D(g,"depositTo"),placeholder:c.checkDepositDrawer.depositToPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e.checkDepositLocalData.depositTo?.id,allOptions:e.depositAccounts.depositAccounts.map(i=>({label:i.accountName,value:i.id}))},textAlignment:"right",registerOptions:{required:!0,validate:i=>!!(i!=null&&i.selectedOption)}}})})}),t.jsx(N,{}),t.jsxs(He,{size:r,children:[t.jsxs(Qe,{size:r,children:[t.jsx(Ee,{children:c.checkDepositDrawer.checkPicLabel}),t.jsx(Z,{isLast:!1,children:c.checkDepositDrawer.frontSide}),t.jsx(G,{name:`${D(g,R)}.front`,registerOptions:{required:!0},file:e.checkFront,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:J,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"front"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>K(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(Z,{isLast:!0,children:c.checkDepositDrawer.backSide}),t.jsx(G,{name:`${D(g,R)}.back`,registerOptions:{required:!0},file:e.checkBack,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:J,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"back"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>K(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.backSideError,useMobileCam:!0,compressImage:!0}),t.jsx(io,{children:c.checkDepositDrawer.picGuides.map(i=>t.jsxs(ao,{children:[t.jsx(oo,{}),t.jsx(Ne,{children:i})]},i))})]}),t.jsx(so,{windowSize:r,children:Ae.formatJPGText10MB})]})]})})})]})}const Ee=a(F)`
2
+ color: ${e=>e.theme.colors.hero};
3
+ `,Ne=a(F)`
4
+ color: ${e=>e.theme.colors.hero};
5
+ margin-left: ${o.sp3};
6
+ `,Me=a(q)`
7
+ color: ${e=>e.theme.colors.grey1};
8
+ display: flex;
9
+ align-items: center;
10
+ gap: ${o.sp2};
11
+ `,X=a.div``,Re=a.span`
12
+ margin-left: ${o.sp2};
13
+ `,Ve=a(Le)`
14
+ min-width: ${e=>e.isSelectedValue?o.sp4:o.sp5};
15
+ width: ${e=>e.isSelectedValue?o.sp4:o.sp5};
16
+ height: ${e=>e.isSelectedValue?o.sp4:o.sp5};
17
+ margin-right: ${o.sp2};
18
+ `,Oe=a.div`
19
+ margin-top: ${o.sp3};
20
+ display: flex;
21
+ background-color: ${e=>e.theme.colors.grey5};
22
+ justify-content: space-between;
23
+ padding: ${o.sp3} ${o.sp4};
24
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
25
+ border-radius: ${o.sp2};
26
+ box-shadow: ${e=>`${o.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
27
+ `,qe=a.div`
28
+ display: flex;
29
+ width: 100%;
30
+ justify-content: space-between;
31
+ padding: ${o.sp3} ${o.sp4};
32
+ background-color: ${w.importantLight};
33
+ border-radius: ${o.sp2};
34
+ `,Ke=a.div`
35
+ display: flex;
36
+ align-items: flex-start;
37
+ `,Ye=a.div``,_e=a(be)`
38
+ width: ${o.sp4};
39
+ height: ${o.sp4};
40
+ color: ${w.important};
41
+ `,Ge=a.div`
42
+ display: flex;
43
+ flex-direction: column;
44
+ margin-left: ${o.sp2};
45
+ `,Je=a(ye)`
46
+ color: ${w.important};
47
+ `,Xe=a(F)`
48
+ color: ${w.important};
49
+ `,Ze=a(je)`
50
+ color: ${e=>e.theme.colors.primary};
51
+ margin: ${o.sp5} ${o.sp0} ${o.sp3} ${o.sp0};
52
+ `,Ue=a(Pe)`
53
+ border-radius: ${o.sp2};
54
+ border: 1px solid ${e=>e.theme.colors.grey3};
55
+ `,We=a.div`
56
+ display: flex;
57
+ flex-direction: column;
58
+ background-color: ${e=>e.theme.colors.grey5};
59
+ border: 1px solid ${e=>e.theme.colors.grey3};
60
+ box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
61
+ border-radius: ${o.sp2};
62
+ margin-bottom: ${o.sp3};
63
+ `,N=a.div`
64
+ display: flex;
65
+ flex: 1;
66
+ background-color: ${e=>e.theme.colors.grey3};
67
+ min-height: 1px;
68
+ max-height: 1px;
69
+ `,ae=a.div`
70
+ display: flex;
71
+ flex-direction: "row";
72
+ padding: ${o.sp2};
73
+ padding-left: ${e=>u.rowContentPaddingLeft.valuePx(e.size)};
74
+ justify-content: space-between;
75
+ color: ${e=>e.theme.colors.hero};
76
+ &:hover {
77
+ z-index: 1;
78
+ outline: 1px solid ${e=>e.theme.colors.primary};
79
+ .select-control {
80
+ background-color: ${e=>e.theme.colors.background};
81
+ }
82
+ }
83
+ &:focus-within {
84
+ border-color: ${e=>e.theme.colors.primary};
85
+ color: ${e=>e.theme.colors.primary};
86
+ z-index: 2;
87
+ outline: 1px solid ${e=>e.theme.colors.primary};
88
+ }
89
+ :last-of-type {
90
+ border-bottom-left-radius: inherit;
91
+ border-bottom-right-radius: inherit;
92
+ }
93
+ `,He=a(ae)`
94
+ flex-direction: column;
95
+ padding: ${o.sp0};
96
+ `,Qe=a.div`
97
+ padding: ${e=>`${o.sp3} ${u.checkPicRowContentPaddingXAxis.valuePx(e.size)}`};
98
+ `,eo=a.div`
99
+ width: 100%;
100
+ display: flex;
101
+ flex-grow: ${e=>e.size==="small"?1:0};
102
+ align-items: flex-start;
103
+ `,Z=a(q)`
104
+ color: ${e=>e.theme.colors.hero};
105
+ margin-bottom: ${o.sp2};
106
+ margin-top: ${e=>e.isLast?o.sp3:o.sp0};
107
+ `,oo=a.div`
108
+ background-color: ${e=>e.theme.colors.hero};
109
+ border-radius: 50%;
110
+ border-style: solid;
111
+ width: 2px;
112
+ height: 2px;
113
+ position: absolute;
114
+ top: 10px;
115
+ `,to=a.div`
116
+ width: ${o.sp1};
117
+ height: ${o.sp1};
118
+ min-width: ${o.sp1};
119
+ background-color: ${e=>e.theme.colors.grey1};
120
+ border-radius: 50%;
121
+ `,io=a.div`
122
+ display: flex;
123
+ flex-direction: column;
124
+ margin: ${o.sp3} ${o.sp0};
125
+ margin-bottom: ${o.sp0};
126
+ `,ao=a.div`
127
+ display: flex;
128
+ flex-direction: row;
129
+ position: relative;
130
+ `,so=a(q)`
131
+ margin-top: ${o.sp2};
132
+ padding: ${o.sp1} ${o.sp4};
133
+ background: ${e=>e.theme.colors.grey4};
134
+ border-radius: ${o.sp0} ${o.sp0} ${o.sp2} ${o.sp2};
135
+ width: 100%;
136
+ box-sizing: border-box;
137
+ text-align: ${e=>e.windowSize==="small"?"initial":"right"};
138
+ color: ${e=>e.theme.colors.grey1};
139
+ `,ro=a(oe)`
140
+ cursor: pointer;
141
+ color: ${e=>e.theme.colors.hero};
142
+ width: ${o.sp4};
143
+ height: ${o.sp4};
144
+ min-height: ${o.sp4};
145
+ &:hover {
146
+ color: ${e=>e.theme.colors.primary};
147
+ }
148
+ `,co="checkDepositDetailPage",lo={NavBarContainerPaddingYAxis:new l(10,s[3])},no=e=>`${e}_form`,O={containerPaddingLeft:new l(s[3],s[6],s[8]),containerPaddingRight:new l(s[3],s[6],s[8]),successContentMargin:new l(s[3],s[12])},{spendManagement:po}=ee.getLocalizedStrings(),m=po.zeniAccounts.zeniAccountList,Co=({checkDeposit:e,analytics:p,filesEndPoint:x,authParams:b,onSaveChangesToLocalStore:y,onAnotherTransferClick:C,updateFilesEntity:j,onDeleteFile:P,onEditFileName:S,onCheckDpositClick:T,onDismissClick:r})=>{const n=Q(),[L,v]=k.useState(!1);return t.jsx(go,{windowSize:n,children:e.fetchState==="Completed"?t.jsxs(U,{windowSize:n,children:[t.jsx(W,{windowSize:n,children:t.jsx(H,{"data-testid":$("check-deposit-drawer-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),r?.()}})}),t.jsxs(ko,{windowSize:n,children:[t.jsx(pe,{width:150,height:150,shouldDisplay:!0,animationInLoop:!0}),t.jsxs(xo,{children:[m.checkDepositDrawer.transferSuccessMsgPrefix,t.jsx(mo,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),m.checkDepositDrawer.transferSuccessMsgSuffix]}),t.jsxs(fo,{children:[t.jsx(_,{variant:"secondary",label:m.checkDepositDrawer.makeAnotherTransferBtn,onClick:C,"data-testid":$("check-deposit-drawer-another-transfer")}),t.jsx(_,{variant:"primary",label:m.checkDepositDrawer.goToAccountBtn,onClick:r,style:{marginLeft:n==="small"?o.sp3:o.sp5},"data-testid":$("check-deposit-drawer-go-to-account")})]})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(U,{windowSize:n,children:[t.jsx(W,{windowSize:n,children:t.jsx(H,{"data-testid":$("check-deposit-drawer-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),r?.()}})}),n==="small"?t.jsx(Do,{windowSize:n,children:m.checkDepositDrawer.title}):t.jsx($o,{children:m.checkDepositDrawer.title}),n==="small"?t.jsx(uo,{children:m.checkDepositDrawer.subTitle}):t.jsx(ho,{children:m.checkDepositDrawer.subTitle}),t.jsx(Ie,{analytics:p,authParams:b,checkDeposit:e,filesEndPoint:x,onSaveChangesToLocalStore:y,openPopup:v,onCheckDpositClick:T,onDeleteFile:P,onEditFileName:S,updateFilesEntity:j})]}),t.jsx(he,{formId:no(co),helperText:m.checkDepositDrawer.footNote,helperStyle:{paddingTop:o.sp0,paddingBottom:o.sp0},style:{zIndex:L?0:4,paddingTop:o.sp3,paddingBottom:o.sp3},primaryBtn:{label:m.checkDepositDrawer.depositBtn,isLoading:e.fetchState==="In-Progress"},cancelBtn:{label:m.checkDepositDrawer.cancelBtn,onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cancel",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),r?.()}}})]})})},ho=a(F)`
149
+ color: ${e=>e.theme.colors.hero};
150
+ `,uo=a(ge)`
151
+ color: ${e=>e.theme.colors.hero};
152
+ `,mo=a(me)`
153
+ display: inline;
154
+ `,go=a.div`
155
+ display: flex;
156
+ flex-direction: column;
157
+ background-color: ${e=>e.theme.colors.grey4};
158
+ overflow-x: hidden;
159
+ height: 100%;
160
+ width: 100%;
161
+ `,xo=a(ue)`
162
+ color: ${e=>e.theme.colors.primary};
163
+ text-align: center;
164
+ `,U=a.div`
165
+ height: ${e=>e.windowSize==="small"?"auto":"100%"};
166
+ padding-left: ${e=>`${O.containerPaddingLeft.valuePx(e.windowSize)}`};
167
+ padding-right: ${e=>`${O.containerPaddingRight.valuePx(e.windowSize)}`};
168
+ `,fo=a.div`
169
+ display: flex;
170
+ justify-content: center;
171
+ margin-top: ${o.sp7};
172
+ `,ko=a.div`
173
+ height: 80%;
174
+ display: flex;
175
+ flex-direction: column;
176
+ justify-content: center;
177
+ margin: ${e=>`${o.sp0} ${O.successContentMargin.valuePx(e.windowSize)} `};
178
+ align-items: center;
179
+ `,W=a.div`
180
+ display: flex;
181
+ flex-direction: row-reverse;
182
+ justify-content: space-between;
183
+ align-items: center;
184
+ width: 100%;
185
+ top: ${o.sp0};
186
+ padding: ${e=>`${lo.NavBarContainerPaddingYAxis.valuePx(e.windowSize)} ${o.sp0}`};
187
+ z-index: 2;
188
+ background-color: ${e=>e.theme.colors.grey4};
189
+ `,H=a(oe)`
190
+ cursor: pointer;
191
+ color: ${e=>e.theme.colors.hero};
192
+ width: ${o.sp4};
193
+ height: ${o.sp4};
194
+ min-height: ${o.sp4};
195
+ &:hover {
196
+ color: ${e=>e.theme.colors.primary};
197
+ }
198
+ `,Do=a(te)`
199
+ color: ${e=>e.theme.colors.primary};
200
+ margin-top: ${o.sp3};
201
+ margin-bottom: ${o.sp0};
202
+ margin-right: ${o.sp3};
203
+ `,$o=a(te)`
204
+ color: ${e=>e.theme.colors.primary};
205
+ margin-top: ${o.sp3};
206
+ `;export{Co as default,no as uniqueFormName};
@@ -1,4 +1,4 @@
1
- import{j as t,ao as an,Y as m,bf as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X as N,J as co,z as cn,di as so,dj as sn,l as A,M as O,p as w,dk as zo,dl as Lt,ab as _,dm as At,bA as Bt,dn as Ot,C as D,cs as Mt,w as Po,T as qe,dp as To,bh as Q,d as dn,u as se,ak as Vo,dq as Do,ac as V,n as Le,dr as hn,ds as ce,bz as Wt,bD as ho,v as un,f as we,dt as Je,du as Ae,dv as Qe,s as S,ah as ie,dw as pn,q as Nt,dx as Ve,dy as uo,dz as po,dA as gn,dB as fn,as as Ro,ap as xn,bY as It,bX as Ft,d0 as mn,aq as Go,b$ as Eo,bn as wn,dC as yn,dD as go,dE as fo,dF as bn,dG as kn,bu as Cn,b6 as jn,dH as Sn}from"./index-CjViJI82.js";import{n as a,b as I,f as vn,j as F}from"./vendor-CnQcJ2Lu.js";import{L as et,N as $n,D as _n,B as ye,u as $}from"./AccountRow-vtPa0PJn-Ccj8p0p9.js";function Z(e,o){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function J(e){return U("0,0",e?.forecast)}function Ho(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function xt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const o=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const o=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:o}))}else return U("0,0",null)}function Ko(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const o=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function Yo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const o=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:o}))}else return U("0,0",null)}const We=(e,o,i)=>{const{startDate:n,balanceType:r}=o,{dateFormat:{visual:l}}=O.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.MMMYYYYFormat,e)}`:ht(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${O.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(n,l.QYYYYformat,e)}`:ht(r,i);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.YYYYformat,e)}`:ht(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ht(e,o){return O.getLocalizedStrings().downloadReport.additionalColumns.labels[o][e]}const Mp=(e,o,i)=>{const n=o.length==0?e:`${e}_${o.join("_")}`;return i!=null&&i.trim().length>0?`${n}_${i}`:`${n}_${ln(10)}`},Ln=a.div`
1
+ import{j as t,ai as an,Y as m,bd as fe,_ as U,df as ln,o as s,g as ee,a1 as lo,X as N,H as co,z as cn,dg as so,dh as sn,l as A,M as O,p as w,di as zo,dj as Lt,a7 as _,dk as At,by as Bt,dl as Ot,C as D,cr as Mt,t as Po,T as qe,dm as To,bf as Q,d as dn,u as se,ae as Vo,dn as Do,a8 as V,r as Le,dp as hn,dq as ce,bx as Wt,bB as ho,w as un,f as we,dr as Je,ds as Ae,dt as Qe,q as S,bF as ie,du as pn,v as Nt,dv as Ve,dw as uo,dx as po,dy as gn,dz as fn,an as Ro,ak as xn,bX as It,bW as Ft,c_ as mn,al as Go,b_ as Eo,bl as wn,dA as yn,dB as go,dC as fo,dD as bn,dE as kn,bs as Cn,b4 as jn,dF as Sn}from"./index-LFy5NlUr.js";import{n as a,b as I,f as vn,j as F}from"./vendor-CnQcJ2Lu.js";import{L as et,N as $n,D as _n,B as ye,u as $}from"./AccountRow-cQU8OX0K-yHyqR7LP.js";function Z(e,o){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function J(e){return U("0,0",e?.forecast)}function Ho(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function xt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const o=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const o=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:o}))}else return U("0,0",null)}function Ko(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const o=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function Yo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const o=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:o}))}else return U("0,0",null)}const We=(e,o,i)=>{const{startDate:n,balanceType:r}=o,{dateFormat:{visual:l}}=O.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.MMMYYYYFormat,e)}`:ht(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${O.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(n,l.QYYYYformat,e)}`:ht(r,i);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.YYYYformat,e)}`:ht(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ht(e,o){return O.getLocalizedStrings().downloadReport.additionalColumns.labels[o][e]}const Mp=(e,o,i)=>{const n=o.length==0?e:`${e}_${o.join("_")}`;return i!=null&&i.trim().length>0?`${n}_${i}`:`${n}_${ln(10)}`},Ln=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  width: 100%;
@@ -221,7 +221,7 @@ import{j as t,ao as an,Y as m,bf as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
221
221
  color: ${e=>e.textColor.hex()};
222
222
  background-color: ${e=>e.bgColor.hex()};
223
223
  min-width: ${$.variancePercentageWidth}px;
224
- `,{expenseAutomation:{accountRecon:{reconciliation:{headers:xo}}},common:{strings:{percentage:wr,hyphen:Xe}}}=O.getLocalizedStrings();function yr({height:e,sectionData:o}){const i=N(),n=o.totalVariance,r=o.totalVariancePercentage,l=se();return t.jsx(rr,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:i,children:t.jsxs(ar,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(lr,{children:[t.jsx(ye,{firstLetter:xo.section[o.sectionId].subTitle.charAt(0),color:new _(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(cr,{children:xo.section[o.sectionId].subTitle})]}),t.jsxs(sr,{children:[t.jsx(dr,{children:o.totalBankBalance!=null?U("0,0",o.totalBankBalance):Xe}),t.jsx(hr,{children:o.totalClearedBalance!=null?U("0,0",o.totalClearedBalance):Xe}),t.jsx(br,{variance:n,variancePercentage:r}),t.jsx(pr,{children:t.jsx(gr,{heightValue:e})}),t.jsx(ur,{})]})]})})}const br=({variance:e,variancePercentage:o})=>{const i=se(),n=new _(i.colors.hero),r=new _(i.colors.hero),l=new _(i.colors.background),c=o!=null?`${o.toFixed(2)}${wr}`:Xe;return t.jsxs(fr,{children:[t.jsx(xr,{textColor:n,children:e!=null?U("0,0",e):Xe}),t.jsx(mr,{textColor:r,bgColor:l,children:c})]})};function kr(){return t.jsx(Dn,{height:et("section")})}function Cr(){return t.jsx(Tn,{height:et("loading_in_progress")})}function jr(e,o){if(e.element.kind!=="timeframe_headers")return null;const i=O.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,n=e.element.data,r=n.accountIDs.length===0;return t.jsx(tr,{sectionTitle:i.section[n.sectionId].title,isLoading:r,isSticky:o,height:et("timeframe_headers")})}const Sr=(e,o,i)=>{const n=e.element.data;return t.jsx(yr,{isSticky:i,height:o,sectionData:n})},vr=(e,o)=>{const i=e.element.data,n=O.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(nr,{height:o,title:n.section[i.sectionId].title})},$r=(e,o,i)=>{const n=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?n.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(_n,{height:o,accountRecon:n,isLastRow:i,isSelectedRow:r,onReviewClicked:e.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:e.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:e.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:e.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:e.config.accountReconciliationConfig?.onStatementAddClicked})},C={balanceHeight:s.sp4,balanceWidth:"166px",balanceWidthInPx:166,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:w[4],titleWidth:new D(200,325,405)};function _r(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":case"calculated_section_type1":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[6];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"title_string_only":case"total":return w[6];case"timeframe_headers":return w[11];case"timeframe_headers_with_forecast":return 98;case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function Lr(e,o,i=0){const n=["summary"];switch(e){case"section":return!n.includes(o);case"section_with_ac_only":return!n.includes(o);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(n.includes(o)||o==="detailed"&&i>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(n.includes(o)||o==="detailed"&&i>0);case"title_string_only":return!n.includes(o);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(o==="detailed"&&i>0);case"checkbox_and_name_only":return!0;default:return!1}}const ge=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},xe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},Uo={emptyLeftContainer:new D(w[0],w[5])},Ar=a(S)`
224
+ `,{expenseAutomation:{accountRecon:{reconciliation:{headers:xo}}},common:{strings:{percentage:wr,hyphen:Xe}}}=O.getLocalizedStrings();function yr({height:e,sectionData:o}){const i=N(),n=o.totalVariance,r=o.totalVariancePercentage,l=se();return t.jsx(rr,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:i,children:t.jsxs(ar,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(lr,{children:[t.jsx(ye,{firstLetter:xo.section[o.sectionId].subTitle.charAt(0),color:new _(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(cr,{children:xo.section[o.sectionId].subTitle})]}),t.jsxs(sr,{children:[t.jsx(dr,{children:o.totalBankBalance!=null?U("0,0",o.totalBankBalance):Xe}),t.jsx(hr,{children:o.totalClearedBalance!=null?U("0,0",o.totalClearedBalance):Xe}),t.jsx(br,{variance:n,variancePercentage:r}),t.jsx(pr,{children:t.jsx(gr,{heightValue:e})}),t.jsx(ur,{})]})]})})}const br=({variance:e,variancePercentage:o})=>{const i=se(),n=new _(i.colors.hero),r=new _(i.colors.hero),l=new _(i.colors.background),c=e!=null&&e.amount===0?"0%":o!=null?o===0?"0%":`${o.toFixed(2)}${wr}`:Xe;return t.jsxs(fr,{children:[t.jsx(xr,{textColor:n,children:e!=null?U("0,0",e):Xe}),t.jsx(mr,{textColor:r,bgColor:l,children:c})]})};function kr(){return t.jsx(Dn,{height:et("section")})}function Cr(){return t.jsx(Tn,{height:et("loading_in_progress")})}function jr(e,o){if(e.element.kind!=="timeframe_headers")return null;const i=O.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,n=e.element.data,r=n.accountIDs.length===0;return t.jsx(tr,{sectionTitle:i.section[n.sectionId].title,isLoading:r,isSticky:o,height:et("timeframe_headers")})}const Sr=(e,o,i)=>{const n=e.element.data;return t.jsx(yr,{isSticky:i,height:o,sectionData:n})},vr=(e,o)=>{const i=e.element.data,n=O.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(nr,{height:o,title:n.section[i.sectionId].title})},$r=(e,o,i)=>{const n=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?n.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(_n,{height:o,accountRecon:n,isLastRow:i,isSelectedRow:r,onReviewClicked:e.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:e.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:e.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:e.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:e.config.accountReconciliationConfig?.onStatementAddClicked})},C={balanceHeight:s.sp4,balanceWidth:"166px",balanceWidthInPx:166,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:w[4],titleWidth:new D(200,325,405)};function _r(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":case"calculated_section_type1":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[6];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"title_string_only":case"total":return w[6];case"timeframe_headers":return w[11];case"timeframe_headers_with_forecast":return 98;case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function Lr(e,o,i=0){const n=["summary"];switch(e){case"section":return!n.includes(o);case"section_with_ac_only":return!n.includes(o);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(n.includes(o)||o==="detailed"&&i>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(n.includes(o)||o==="detailed"&&i>0);case"title_string_only":return!n.includes(o);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(o==="detailed"&&i>0);case"checkbox_and_name_only":return!0;default:return!1}}const ge=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},xe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},Uo={emptyLeftContainer:new D(w[0],w[5])},Ar=a(S)`
225
225
  margin-left: ${e=>!e.hasChildren&&e.depth!==0?s.sp3:s.sp2};
226
226
  overflow: hidden;
227
227
  white-space: nowrap;
@@ -1,14 +1,14 @@
1
- import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be,bO as De,fw as Ne,o as a,fF as bl,cf as We,c6 as ee,c8 as ce,cc as Me,l as Le,cy as xl,cw as wl,ca as Ue,c9 as Fe,fG as Te,fH as jl,fe as vl,fd as ke,cd as ge,ce as Il,g as Pe,f1 as He,Q as Ge,b6 as Qe,e$ as Xe,s as Ce,fv as Ye,q as ye,m as $l,b2 as Sl,p as ae,dh as Ol,fI as Ll,f as Fl,fJ as _l,b3 as be,v as Dl,cq as Nl,b1 as Pl,b0 as Cl}from"./index-CjViJI82.js";import{b as M,n as t}from"./vendor-CnQcJ2Lu.js";import{W as _e}from"./LabeledAddressValueField-Bey_bvyv-DkjQja9O.js";import{I as El}from"./LabeledCreatableSingleSelectField-B3x1MZJr-BQbLyyvB.js";import{Y as $e}from"./LabeledDocumentField-BKPP0tRe-CIjTxmdT.js";import{P as Je}from"./DocumentSecurityBanner-BgKXBGg3-Bl8BwMyM.js";const Ke=({text:e})=>l.jsx(Tl,{children:l.jsx(Vl,{children:e})}),Vl=t(_l)`
1
+ import{X as ze,u as Re,cf as yl,M as ue,C,a1 as gl,j as l,bs as Be,eZ as qe,bN as De,ft as Ce,o as a,fC as bl,ce as We,c5 as ee,c7 as ce,cb as Me,l as Le,cx as xl,cv as wl,c9 as Ue,c8 as Fe,fD as Ve,fE as jl,fb as vl,fa as ke,cc as ge,cd as Il,g as Ne,e_ as He,Q as Ge,b4 as Qe,eY as Xe,q as Pe,fs as Je,v as ye,m as $l,b1 as Sl,p as ae,df as Ol,fF as Ll,f as Fl,fG as _l,b2 as be,w as Dl,cp as Cl,b0 as Nl,a$ as Pl}from"./index-LFy5NlUr.js";import{b as M,n as t}from"./vendor-CnQcJ2Lu.js";import{C as _e}from"./LabeledAddressValueField-CMIVYcKX-IiR7eG-s.js";import{I as El}from"./LabeledCreatableSingleSelectField-CrDFWvwI-C1AD80Rw.js";import{Y as $e}from"./LabeledDocumentField-BG6Pu34Y-Dl5pM6Dq.js";import{P as Ze}from"./DocumentSecurityBanner-Ctdvj5Tn-CM5WmW33.js";const Ke=({text:e})=>l.jsx(Vl,{children:l.jsx(Tl,{children:e})}),Tl=t(_l)`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  color: ${e=>e.theme.colors.hero};
5
5
  padding-right: ${a.sp2};
6
- `,Tl=t.div`
6
+ `,Vl=t.div`
7
7
  display: flex;
8
8
  align-items: flex-end;
9
9
  margin-left: ${a.sp2};
10
10
  margin-top: ${a.sp1};
11
- `,le={labelWidth:new N(115,145,155),mediumLabelWidth:new N(140,160,170),largeLabelWidth:new N(150,210,244),largeLabelDocumentWidth:new N(150,210,252),paddingBottom:new N(ae[3],ae[2]),containerRowGap:new N(12,ae[3])},kl={title:new Ge("standardMedium","largeMedium")},Al=ue.getLocalizedStrings(),{dateFormat:{visual:zl},commonSetUp:Rl,companyPassport:ql,common:{documents:Se,optional:Bl}}=Al,o=Rl.businessVerification,Wl=o.sourceOfFundOptions,Ml=M.forwardRef(({fileProps:e,productType:p,allIndustries:u,companyDetails:m,connectedAccountProvider:P,businessVerificationProps:g,isDisabled:n,style:U,sectionId:h,showInfoTooltip:oe=!0,isCompleted:te=!1,showCompletedIcon:ie=!1,showTreasuryFields:H=!1,sectionHeader:G,optionalFields:s=[],onCompanyAddressClick:Q,onRegisteredAddressClick:V},re)=>{const f=ze(),F=le.labelWidth.value(f),_=le.mediumLabelWidth.value(f),b=le.largeLabelWidth.value(f),z=le.largeLabelDocumentWidth.value(f),y=o.productType[p],X=m?.companyFiles.find(d=>d.documentType==="certificate_of_incorporation"),Y=m?.companyFiles.find(d=>d.documentType==="tax_ein"),c=m?.companyFiles.find(d=>d.documentType==="company_formation_document"),j=m?.companyDescription,R=m?.companyLegalName,se=m?.website,B=m?.typeOfIncorporation,J=m?.incDate,L=m?.companyIndustry,me=m?.phone,K=m?.taxIdOrEIN,Z=m?.primaryContactLocalData,q=m?.deleteFileStatusById??{},ne=m?.updateFileStatusById??{},xe=m?.addressStatus?.addressToCreate,W=m?.registeredAddressStatus?.addressToCreate,[C,x]=M.useState(!1),[S,T]=M.useState(!1),D=d=>u.find(je=>je.code===d)?.name??d,we=d=>Wl[d]??d;return l.jsxs(Ul,{style:U,ref:re,windowSize:f,children:[l.jsx(Hl,{children:l.jsxs(ea,{children:[l.jsxs(Ql,{children:[ie===!0?l.jsx(Xl,{children:te?l.jsx(Yl,{}):l.jsx(Jl,{})}):null,l.jsx(Gl,{windowSize:f,children:G??o.confirmCompanyDetails})]}),oe?l.jsx(Kl,{children:l.jsx(qe,{variant:"small-description",display:"flex",maxWidth:"280px",data:o.confirmCompanyDetailsTooltip,placement:f==="small"||p==="onboarding"?"bottom":"right",children:l.jsx(Zl,{})})}):null,p==="onboarding"&&G!=null?l.jsx(Ke,{text:Bl}):null,g?.companyVerificationStatus!=null?l.jsx(aa,{tagTitle:g.companyVerificationStatus.name,textColor:Be(g.companyVerificationStatus.code),showLoader:g?.isRefreshingViewInBackground}):null]})}),l.jsxs(la,{children:[l.jsx(Je,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyLegalNameLabel,width:b},text:{type:"text",name:v(h,"companyLegalName"),placeholder:o.companyLegalNamePlaceholder,defaultValue:R,options:{required:n==null&&s.includes("companyLegalName")===!1}},additionalInfoLabel:o.companyLegalNameError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyDescriptionLabel,width:_},text:{type:"text",name:v(h,"companyDescription"),placeholder:o.addProductPlaceholder,defaultValue:j,options:{required:n==null&&s.includes("companyDescription")===!1}},additionalInfoLabel:o.companyDescriptionError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(_e,{isDisabled:n,label:{label:o.companyAddressLabel,width:_},addressValueField:{name:v(h,"companyAddress"),placeholder:o.companyAddressPlaceholder,defaultValue:xe,registerOptions:{validate:d=>s.includes("companyAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{Q?.("company_address")}},additionalInfoLabel:o.companyAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx(I,{}),l.jsx(_e,{isDisabled:n,label:{label:o.registeredAddressLabel,width:_},addressValueField:{name:v(h,"registeredAddress"),placeholder:o.registeredAddressPlaceholder,defaultValue:W,registerOptions:{validate:d=>s.includes("registeredAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{V?.("company_registered_address")}},additionalInfoLabel:o.registeredAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyWebsiteLabel,width:F},text:{type:"url",name:v(h,"companyWebsite"),placeholder:o.companyWebsitePlaceholder,defaultValue:se?.toString()??"",options:{required:n==null&&s.includes("companyWebsite")===!1}},additionalInfoLabel:o.companyWebsiteError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(Fe,{label:{label:o.companyIndustryLabel,width:F},singleSelectField:{singleSelect:{name:v(h,"companyIndustry"),placeholder:o.companyIndustryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:D,isDisabled:n,showTickMark:!1},defaultValue:{selectedOption:L,allOptions:u?.map(d=>d.code)??[]},registerOptions:{required:n==null&&s.includes("companyIndustry")===!1,validate:d=>s.includes("companyIndustry")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.companyIndustryError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(El,{label:{label:o.companyTypeOfIncorporationLabel,width:b},isDisabled:n,creatableSingleSelectField:{name:v(h,"typeOfIncorporation"),placeholder:o.companyTypeOfIncorporationPlaceholder,defaultValue:{selectedOption:B,allOptions:ql.companyIncInfo.allTypesOfIncorporation},registerOptions:{required:n==null&&s.includes("typeOfIncorporation")===!1&&P==="unit",validate:d=>s.includes("typeOfIncorporation")===!1?!(n==null&&!d?.selectedOption):!0}},errorInfoLabel:o.companyTypeOfIncorporationError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(Me,{isDisabled:n,label:{label:o.companyIncDateLabel,width:b},style:{paddingBottom:le.paddingBottom.valuePx(f)},dateField:{name:v(h,"incDate"),placeholder:o.companyIncDatePlaceholder,defaultValue:J,dateFormat:zl.defaultInput,maxDate:Le.dateNow(),minDate:Le.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:n==null&&s.includes("incDate")===!1}},additionalInfoLabel:o.companyIncDateError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(Ue,{isDisabled:n,label:{label:o.companyPhoneLabel,width:F},text:{name:v(h,"companyPhone"),placeholder:ce(o.companyPhoneLabel),defaultValue:me,autoComplete:"new-password",options:{required:n==null&&s.includes("companyPhone")===!1}},errorInfoLabel:o.companyPhoneError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(We,{isDisabled:n,label:{label:o.companyPrimaryContactNameLabel,width:b},nameField:{name:v(h,"primaryContactName"),placeHolder:{firstName:o.firstNamePlaceholder,lastName:o.lastNamePlaceholder,name:o.namePlaceholder},defaultValue:{firstName:Z?.firstName??"",lastName:Z?.lastName??""},registerOptions:{required:n==null&&s.includes("primaryContactName")===!1,validate:d=>!!d||n!=null||s.includes("primaryContactName")},showFullNameError:!0},errorInfoLabel:o.companyPrimaryContactNameError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyPrimaryContactEmailLabel,width:b},text:{type:"email",name:v(h,"primaryContactEmail"),placeholder:o.companyPrimaryContactEmailPlaceholder,defaultValue:Z?.email,options:{required:n==null&&s.includes("primaryContactEmail")===!1}},additionalInfoLabel:o.companyPrimaryContactEmailError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyTaxIdLabel,width:F},text:{type:"text",name:v(h,"companyTaxId"),placeholder:o.companyTaxIdPlaceholder,defaultValue:K,options:{required:n==null&&s.includes("companyTaxId")===!1,pattern:Il},autoComplete:"new-password"},additionalInfoLabel:o.companyTaxIdError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx($e,{name:v(h,"certificateOfIncorporation"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:q,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.certificateOfIncorporation,width:z},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:X,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("certificateOfIncorporation")===!1&&P==="unit"},additionalInfoLabel:o.certOfIncopDocumentError.replace("_product_type_",y),hasError:C,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>x(d)}),C||!(n!=null||X!=null)?l.jsx(Oe,{windowSize:f,isError:C,children:Se.formatDocumentText10MB}):null,l.jsx(I,{}),l.jsx($e,{name:v(h,"ein"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:q,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.einDocument,width:z},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:Y,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("ein")===!1},additionalInfoLabel:o.einDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||Y!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null,l.jsx(I,{}),H===!0?l.jsxs(l.Fragment,{children:[l.jsx(Fe,{label:{label:o.sourceOfFundsLabel,width:F},singleSelectField:{singleSelect:{name:v(h,"sourceOfFunds"),placeholder:o.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:we,isDisabled:n,showTickMark:!1,menuPlacement:"top",sortOptions:!1},defaultValue:{selectedOption:m?.sourceOfFunds,allOptions:Object.keys(o.sourceOfFundOptions)},registerOptions:{required:n==null&&s.includes("sourceOfFunds")===!1,validate:d=>s.includes("sourceOfFunds")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.sourceOfFundsError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx($e,{name:v(h,"formationDocument"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:q,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.formationDocumentLabel,width:z},filemetadataPayload:{documentType:"company_formation_document",purposeId:"business_verification",documentSide:"front"},file:c,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("formationDocument")===!1},additionalInfoLabel:o.formationDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>T(d)}),S||!(n!=null||c!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null]}):null]})]})});Ml.displayName="Company Details Section";const v=(e,p)=>`${e}.${p}`,Ul=t.div`
11
+ `,le={labelWidth:new C(115,145,155),mediumLabelWidth:new C(140,160,170),largeLabelWidth:new C(150,210,244),largeLabelDocumentWidth:new C(150,210,252),paddingBottom:new C(ae[3],ae[2]),containerRowGap:new C(12,ae[3])},kl={title:new Ge("standardMedium","largeMedium")},Al=ue.getLocalizedStrings(),{dateFormat:{visual:zl},commonSetUp:Rl,companyPassport:Bl,common:{documents:Se,optional:ql}}=Al,o=Rl.businessVerification,Wl=o.sourceOfFundOptions,Ml=M.forwardRef(({fileProps:e,productType:p,allIndustries:u,companyDetails:m,connectedAccountProvider:N,businessVerificationProps:g,isDisabled:n,style:U,sectionId:h,showInfoTooltip:oe=!0,isCompleted:te=!1,showCompletedIcon:ie=!1,showTreasuryFields:H=!1,sectionHeader:G,optionalFields:s=[],onCompanyAddressClick:Q,onRegisteredAddressClick:T},re)=>{const f=ze(),F=le.labelWidth.value(f),_=le.mediumLabelWidth.value(f),b=le.largeLabelWidth.value(f),z=le.largeLabelDocumentWidth.value(f),y=o.productType[p],X=m?.companyFiles.find(d=>d.documentType==="certificate_of_incorporation"),J=m?.companyFiles.find(d=>d.documentType==="tax_ein"),c=m?.companyFiles.find(d=>d.documentType==="company_formation_document"),j=m?.companyDescription,R=m?.companyLegalName,se=m?.website,q=m?.typeOfIncorporation,Z=m?.incDate,L=m?.companyIndustry,me=m?.phone,K=m?.taxIdOrEIN,Y=m?.primaryContactLocalData,B=m?.deleteFileStatusById??{},ne=m?.updateFileStatusById??{},xe=m?.addressStatus?.addressToCreate,W=m?.registeredAddressStatus?.addressToCreate,[P,x]=M.useState(!1),[S,V]=M.useState(!1),D=d=>u.find(je=>je.code===d)?.name??d,we=d=>Wl[d]??d;return l.jsxs(Ul,{style:U,ref:re,windowSize:f,children:[l.jsx(Hl,{children:l.jsxs(ea,{children:[l.jsxs(Ql,{children:[ie===!0?l.jsx(Xl,{children:te?l.jsx(Jl,{}):l.jsx(Zl,{})}):null,l.jsx(Gl,{windowSize:f,children:G??o.confirmCompanyDetails})]}),oe?l.jsx(Kl,{children:l.jsx(Be,{variant:"small-description",display:"flex",maxWidth:"280px",data:o.confirmCompanyDetailsTooltip,placement:f==="small"||p==="onboarding"?"bottom":"right",children:l.jsx(Yl,{})})}):null,p==="onboarding"&&G!=null?l.jsx(Ke,{text:ql}):null,g?.companyVerificationStatus!=null?l.jsx(aa,{tagTitle:g.companyVerificationStatus.name,textColor:qe(g.companyVerificationStatus.code),showLoader:g?.isRefreshingViewInBackground}):null]})}),l.jsxs(la,{children:[l.jsx(Ze,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyLegalNameLabel,width:b},text:{type:"text",name:v(h,"companyLegalName"),placeholder:o.companyLegalNamePlaceholder,defaultValue:R,options:{required:n==null&&s.includes("companyLegalName")===!1}},additionalInfoLabel:o.companyLegalNameError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyDescriptionLabel,width:_},text:{type:"text",name:v(h,"companyDescription"),placeholder:o.addProductPlaceholder,defaultValue:j,options:{required:n==null&&s.includes("companyDescription")===!1}},additionalInfoLabel:o.companyDescriptionError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(_e,{isDisabled:n,label:{label:o.companyAddressLabel,width:_},addressValueField:{name:v(h,"companyAddress"),placeholder:o.companyAddressPlaceholder,defaultValue:xe,registerOptions:{validate:d=>s.includes("companyAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{Q?.("company_address")}},additionalInfoLabel:o.companyAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx(I,{}),l.jsx(_e,{isDisabled:n,label:{label:o.registeredAddressLabel,width:_},addressValueField:{name:v(h,"registeredAddress"),placeholder:o.registeredAddressPlaceholder,defaultValue:W,registerOptions:{validate:d=>s.includes("registeredAddress")===!1?!(n==null&&d==null):!0},onClick:()=>{T?.("company_registered_address")}},additionalInfoLabel:o.registeredAddressError.replace("_product_type_",y),showAdditionalInfoLabel:!1}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyWebsiteLabel,width:F},text:{type:"url",name:v(h,"companyWebsite"),placeholder:o.companyWebsitePlaceholder,defaultValue:se?.toString()??"",options:{required:n==null&&s.includes("companyWebsite")===!1}},additionalInfoLabel:o.companyWebsiteError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(Fe,{label:{label:o.companyIndustryLabel,width:F},singleSelectField:{singleSelect:{name:v(h,"companyIndustry"),placeholder:o.companyIndustryPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:D,isDisabled:n,showTickMark:!1},defaultValue:{selectedOption:L,allOptions:u?.map(d=>d.code)??[]},registerOptions:{required:n==null&&s.includes("companyIndustry")===!1,validate:d=>s.includes("companyIndustry")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.companyIndustryError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(El,{label:{label:o.companyTypeOfIncorporationLabel,width:b},isDisabled:n,creatableSingleSelectField:{name:v(h,"typeOfIncorporation"),placeholder:o.companyTypeOfIncorporationPlaceholder,defaultValue:{selectedOption:q,allOptions:Bl.companyIncInfo.allTypesOfIncorporation},registerOptions:{required:n==null&&s.includes("typeOfIncorporation")===!1&&N==="unit",validate:d=>s.includes("typeOfIncorporation")===!1?!(n==null&&!d?.selectedOption):!0}},errorInfoLabel:o.companyTypeOfIncorporationError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(Me,{isDisabled:n,label:{label:o.companyIncDateLabel,width:b},style:{paddingBottom:le.paddingBottom.valuePx(f)},dateField:{name:v(h,"incDate"),placeholder:o.companyIncDatePlaceholder,defaultValue:Z,dateFormat:zl.defaultInput,maxDate:Le.dateNow(),minDate:Le.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:n==null&&s.includes("incDate")===!1}},additionalInfoLabel:o.companyIncDateError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(Ue,{isDisabled:n,label:{label:o.companyPhoneLabel,width:F},text:{name:v(h,"companyPhone"),placeholder:ce(o.companyPhoneLabel),defaultValue:me,autoComplete:"new-password",options:{required:n==null&&s.includes("companyPhone")===!1}},errorInfoLabel:o.companyPhoneError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(We,{isDisabled:n,label:{label:o.companyPrimaryContactNameLabel,width:b},nameField:{name:v(h,"primaryContactName"),placeHolder:{firstName:o.firstNamePlaceholder,lastName:o.lastNamePlaceholder,name:o.namePlaceholder},defaultValue:{firstName:Y?.firstName??"",lastName:Y?.lastName??""},registerOptions:{required:n==null&&s.includes("primaryContactName")===!1,validate:d=>!!d||n!=null||s.includes("primaryContactName")},showFullNameError:!0},errorInfoLabel:o.companyPrimaryContactNameError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyPrimaryContactEmailLabel,width:b},text:{type:"email",name:v(h,"primaryContactEmail"),placeholder:o.companyPrimaryContactEmailPlaceholder,defaultValue:Y?.email,options:{required:n==null&&s.includes("primaryContactEmail")===!1}},additionalInfoLabel:o.companyPrimaryContactEmailError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx(ee,{isDisabled:n,showAdditionalInfoLabel:!1,label:{label:o.companyTaxIdLabel,width:F},text:{type:"text",name:v(h,"companyTaxId"),placeholder:o.companyTaxIdPlaceholder,defaultValue:K,options:{required:n==null&&s.includes("companyTaxId")===!1,pattern:Il},autoComplete:"new-password"},additionalInfoLabel:o.companyTaxIdError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx($e,{name:v(h,"certificateOfIncorporation"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.certificateOfIncorporation,width:z},filemetadataPayload:{documentType:"certificate_of_incorporation",purposeId:"business_verification",documentSide:"front"},file:X,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("certificateOfIncorporation")===!1&&N==="unit"},additionalInfoLabel:o.certOfIncopDocumentError.replace("_product_type_",y),hasError:P,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>x(d)}),P||!(n!=null||X!=null)?l.jsx(Oe,{windowSize:f,isError:P,children:Se.formatDocumentText10MB}):null,l.jsx(I,{}),l.jsx($e,{name:v(h,"ein"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.einDocument,width:z},filemetadataPayload:{documentType:"tax_ein",purposeId:"business_verification",documentSide:"front"},file:J,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("ein")===!1},additionalInfoLabel:o.einDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>V(d)}),S||!(n!=null||J!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null,l.jsx(I,{}),H===!0?l.jsxs(l.Fragment,{children:[l.jsx(Fe,{label:{label:o.sourceOfFundsLabel,width:F},singleSelectField:{singleSelect:{name:v(h,"sourceOfFunds"),placeholder:o.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:we,isDisabled:n,showTickMark:!1,menuPlacement:"top",sortOptions:!1},defaultValue:{selectedOption:m?.sourceOfFunds,allOptions:Object.keys(o.sourceOfFundOptions)},registerOptions:{required:n==null&&s.includes("sourceOfFunds")===!1,validate:d=>s.includes("sourceOfFunds")===!1?!(n==null&&!d?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:o.sourceOfFundsError.replace("_product_type_",y)}),l.jsx(I,{}),l.jsx($e,{name:v(h,"formationDocument"),isDisabled:n,sizeLimit:ge,deleteFileStatusById:B,updateFileStatusById:ne,filesEndPoint:e.filesEndPoint,authParams:e.authParams,label:{label:o.formationDocumentLabel,width:z},filemetadataPayload:{documentType:"company_formation_document",purposeId:"business_verification",documentSide:"front"},file:c,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:n==null&&s.includes("formationDocument")===!1},additionalInfoLabel:o.formationDocumentError.replace("_product_type_",y),hasError:S,updateFilesEntity:e.updateFilesEntity,onEditFileName:e.onEditFileName,onDeleteFile:e.onDeleteFile,onFileSizeError:d=>V(d)}),S||!(n!=null||c!=null)?l.jsx(Oe,{windowSize:f,isError:S,children:Se.formatDocumentText10MB}):null]}):null]})]})});Ml.displayName="Company Details Section";const v=(e,p)=>`${e}.${p}`,Ul=t.div`
12
12
  display: flex;
13
13
  flex-direction: column;
14
14
  row-gap: ${e=>le.containerRowGap.valuePx(e.windowSize)};
@@ -20,7 +20,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
20
20
  background: ${e=>e.theme.colors.grey4};
21
21
  border-radius: ${a.sp0} ${a.sp0} ${a.sp2} ${a.sp2};
22
22
  text-align: ${e=>e.windowSize==="small"?"initial":"right"};
23
- color: ${e=>e.isError?Pe.important:e.theme.colors.grey1};
23
+ color: ${e=>e.isError?Ne.important:e.theme.colors.grey1};
24
24
  `,Gl=t.div`
25
25
  ${e=>`${kl.title.style(e.windowSize)}`};
26
26
  display: flex;
@@ -32,11 +32,11 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
32
32
  align-items: center;
33
33
  `,Xl=t.div`
34
34
  margin-right: ${a.sp2};
35
- `,Yl=t(He)`
35
+ `,Jl=t(He)`
36
36
  width: ${a.sp3};
37
37
  height: ${a.sp3};
38
- color: ${Pe.success};
39
- `,Jl=t.div`
38
+ color: ${Ne.success};
39
+ `,Zl=t.div`
40
40
  height: 14px;
41
41
  width: 14px;
42
42
  border: 1px solid ${e=>e.theme.colors.primary};
@@ -47,7 +47,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
47
47
  &:hover {
48
48
  color: ${e=>e.theme.colors.primary};
49
49
  }
50
- `,Zl=t(Qe)`
50
+ `,Yl=t(Qe)`
51
51
  width: ${a.sp3};
52
52
  height: ${a.sp3};
53
53
  `,ea=t.div`
@@ -74,7 +74,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
74
74
  display: flex;
75
75
  align-items: center;
76
76
  justify-content: flex-end;
77
- `,ta=(e,p)=>e.map(u=>({...u,value:u.userId,label:u.firstName!=""||u.lastName!=""?`${u.firstName} ${u.lastName}`:u.email})),ia=(e,p)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function ra({allUsers:e,onSelectedUserChanged:p,selectedUser:u,disable:m=!1,pickerStyles:{optionBackgroundColor:P,selectedOptionBackgroundColor:g,optionTextStyle:n,titleTextStyle:U,backgroundColor:h,titleTextAlignment:oe,selectedOptionColor:te,customStyleConfig:ie}={},customization:{placeholderLabel:H}={},showAddUser:G=!0}){const s=Re(),[Q,V]=M.useState(!1),re=ta(e).sort((c,j)=>c.label.localeCompare(j.label)),f=u!=null?ia(u):void 0,F=P??s.colors.grey5,_=h??s.colors.grey5,b=g??s.colors.grey3,z=n??ye.smallRegular.cssObject,y=U??z,X={control:(c,j)=>({...c,border:0,height:"100%",backgroundColor:_,fill:j.selectProps.menuIsOpen===!0?s.colors.primary:s.colors.grey1,boxShadow:_,">div:last-child":{color:Q?s.colors.primary:s.colors.grey1},":active":{backgroundColor:_},":hover":{fill:s.colors.primary,">div:last-child":{color:s.colors.primary}},minHeight:"auto",cursor:"pointer",flexDirection:"column",">div>div>svg":{color:s.colors.grey1,">path":{color:s.colors.grey5,fill:"currentcolor"}}}),container:c=>({...c,backgroundColor:_,height:"100%"}),singleValue:c=>({...c,margin:0,minWidth:void 0,backgroundColor:void 0,">div":{borderRadius:0,padding:a.sp0,borderLeftStyle:"none",borderWidth:1,borderColor:s.colors.grey1,color:"unset"},">div>div>div>div:last-child":{display:"block",...ye.standardRegular.cssObject}}),valueContainer:c=>({...c,maxWidth:"100%",cursor:"pointer",height:"100%",...y,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:oe??"flex-start",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",">div":{width:"inherit"}}),menu:(c,j)=>({...c,backgroundColor:F,borderRadius:ae[1],boxShadow:`${a.sp0} 2px ${a.sp2} ${s.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",zIndex:3,width:236,margin:`6px ${a.sp0}`,right:"-11%",">div":{flexDirection:"column",maxHeight:200,overflowY:"auto",borderRadius:a.sp1,padding:`${a.sp1} ${a.sp0}`,">div":{width:"-webkit-fill-available"}},...ie?.menu?.(c,j)}),menuList:c=>({...c,borderRadius:ae[1]}),placeholder:(c,j)=>({...c,margin:0,width:"100%",color:j.isFocused?s.colors.primary:"currentColor",paddingRight:a.sp2,...ye.standardRegular.cssObject,">div>div>svg>circle":{fill:s.colors.grey1}}),noOptionsMessage:c=>({...c,...ye.smallRegular.cssObject,padding:`10px ${a.sp3} 9px ${a.sp3}`,color:s.colors.hero}),option:(c,{isDisabled:j,isSelected:R,isFocused:se})=>({...c,...z,color:R?te??s.colors.champion:s.colors.hero,backgroundColor:R?b:se?s.colors.background:F,cursor:j?"not-allowed":R?"default":"pointer","svg:nth-of-type(2)":{display:"none"},":hover":{backgroundColor:s.colors.background,color:s.colors.primary},"& label":{paddingRight:"10px",cursor:j?"not-allowed":R?"inherit":"pointer"},">div>div>div:first-of-type":{display:"flex"}}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({}),indicatorsContainer:()=>({height:"100%",display:"flex",alignItems:"center"})},Y=({children:c,...j})=>l.jsxs(be.ValueContainer,{...j,children:[c,G===!0?l.jsxs(va,{hasSelectedUser:!!u,onClick:()=>{p(void 0),V(!1)},children:[l.jsx(ua,{}),l.jsx("div",{children:H??"Add User"})]}):null]});return l.jsx($l,{onClickAway:()=>{V(!1)},children:l.jsx(oa,{children:l.jsx(Sl,{isMulti:!1,menuPlacement:"auto",minMenuHeight:200,maxMenuHeight:200,menuIsOpen:Q,menuShouldScrollIntoView:!1,defaultValue:f,value:f,noOptionsMessage:()=>ue.getLocalizedStrings().cockpit.management.noPerson,onInputChange:c=>{c!==""&&V(!0)},onMenuOpen:()=>{V(!0)},placeholder:l.jsx(na,{children:l.jsx("div",{children:H??"Select..."})}),components:{Option:ya,DropdownIndicator:Ia,IndicatorSeparator:$a,SingleValue:wa,ValueContainer:ja,MenuList:Y},hideSelectedOptions:!1,closeMenuOnSelect:!1,styles:X,options:re,isDisabled:m,onChange:c=>{p(c),V(!1)},isClearable:!1,isSearchable:!1},Ol())})})}const sa=t.div``,na=t.div`
77
+ `,ta=(e,p)=>e.map(u=>({...u,value:u.userId,label:u.firstName!=""||u.lastName!=""?`${u.firstName} ${u.lastName}`:u.email})),ia=(e,p)=>({...e,value:e.userId,label:e.firstName!=""||e.lastName!=""?`${e.firstName} ${e.lastName}`:e.email});function ra({allUsers:e,onSelectedUserChanged:p,selectedUser:u,disable:m=!1,pickerStyles:{optionBackgroundColor:N,selectedOptionBackgroundColor:g,optionTextStyle:n,titleTextStyle:U,backgroundColor:h,titleTextAlignment:oe,selectedOptionColor:te,customStyleConfig:ie}={},customization:{placeholderLabel:H}={},showAddUser:G=!0}){const s=Re(),[Q,T]=M.useState(!1),re=ta(e).sort((c,j)=>c.label.localeCompare(j.label)),f=u!=null?ia(u):void 0,F=N??s.colors.grey5,_=h??s.colors.grey5,b=g??s.colors.grey3,z=n??ye.smallRegular.cssObject,y=U??z,X={control:(c,j)=>({...c,border:0,height:"100%",backgroundColor:_,fill:j.selectProps.menuIsOpen===!0?s.colors.primary:s.colors.grey1,boxShadow:_,">div:last-child":{color:Q?s.colors.primary:s.colors.grey1},":active":{backgroundColor:_},":hover":{fill:s.colors.primary,">div:last-child":{color:s.colors.primary}},minHeight:"auto",cursor:"pointer",flexDirection:"column",">div>div>svg":{color:s.colors.grey1,">path":{color:s.colors.grey5,fill:"currentcolor"}}}),container:c=>({...c,backgroundColor:_,height:"100%"}),singleValue:c=>({...c,margin:0,minWidth:void 0,backgroundColor:void 0,">div":{borderRadius:0,padding:a.sp0,borderLeftStyle:"none",borderWidth:1,borderColor:s.colors.grey1,color:"unset"},">div>div>div>div:last-child":{display:"block",...ye.standardRegular.cssObject}}),valueContainer:c=>({...c,maxWidth:"100%",cursor:"pointer",height:"100%",...y,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:oe??"flex-start",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",">div":{width:"inherit"}}),menu:(c,j)=>({...c,backgroundColor:F,borderRadius:ae[1],boxShadow:`${a.sp0} 2px ${a.sp2} ${s.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",zIndex:3,width:236,margin:`6px ${a.sp0}`,right:"-11%",">div":{flexDirection:"column",maxHeight:200,overflowY:"auto",borderRadius:a.sp1,padding:`${a.sp1} ${a.sp0}`,">div":{width:"-webkit-fill-available"}},...ie?.menu?.(c,j)}),menuList:c=>({...c,borderRadius:ae[1]}),placeholder:(c,j)=>({...c,margin:0,width:"100%",color:j.isFocused?s.colors.primary:"currentColor",paddingRight:a.sp2,...ye.standardRegular.cssObject,">div>div>svg>circle":{fill:s.colors.grey1}}),noOptionsMessage:c=>({...c,...ye.smallRegular.cssObject,padding:`10px ${a.sp3} 9px ${a.sp3}`,color:s.colors.hero}),option:(c,{isDisabled:j,isSelected:R,isFocused:se})=>({...c,...z,color:R?te??s.colors.champion:s.colors.hero,backgroundColor:R?b:se?s.colors.background:F,cursor:j?"not-allowed":R?"default":"pointer","svg:nth-of-type(2)":{display:"none"},":hover":{backgroundColor:s.colors.background,color:s.colors.primary},"& label":{paddingRight:"10px",cursor:j?"not-allowed":R?"inherit":"pointer"},">div>div>div:first-of-type":{display:"flex"}}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({}),indicatorsContainer:()=>({height:"100%",display:"flex",alignItems:"center"})},J=({children:c,...j})=>l.jsxs(be.ValueContainer,{...j,children:[c,G===!0?l.jsxs(va,{hasSelectedUser:!!u,onClick:()=>{p(void 0),T(!1)},children:[l.jsx(ua,{}),l.jsx("div",{children:H??"Add User"})]}):null]});return l.jsx($l,{onClickAway:()=>{T(!1)},children:l.jsx(oa,{children:l.jsx(Sl,{isMulti:!1,menuPlacement:"auto",minMenuHeight:200,maxMenuHeight:200,menuIsOpen:Q,menuShouldScrollIntoView:!1,defaultValue:f,value:f,noOptionsMessage:()=>ue.getLocalizedStrings().cockpit.management.noPerson,onInputChange:c=>{c!==""&&T(!0)},onMenuOpen:()=>{T(!0)},placeholder:l.jsx(na,{children:l.jsx("div",{children:H??"Select..."})}),components:{Option:ya,DropdownIndicator:Ia,IndicatorSeparator:$a,SingleValue:wa,ValueContainer:ja,MenuList:J},hideSelectedOptions:!1,closeMenuOnSelect:!1,styles:X,options:re,isDisabled:m,onChange:c=>{p(c),T(!1)},isClearable:!1,isSearchable:!1},Ol())})})}const sa=t.div``,na=t.div`
78
78
  display: flex;
79
79
  align-items: center;
80
80
  color: ${e=>e.theme.colors.grey1};
@@ -83,7 +83,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
83
83
  display: flex;
84
84
  align-items: center;
85
85
  margin-right: ${a.sp2};
86
- `,ca=t(Ye)`
86
+ `,ca=t(Je)`
87
87
  width: ${a.sp4};
88
88
  height: ${a.sp4};
89
89
  color: ${e=>e.theme.colors.hero};
@@ -92,25 +92,25 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
92
92
  flex-direction: row;
93
93
  align-items: center;
94
94
  justify-content: space-between;
95
- `,ua=t(Nl)`
95
+ `,ua=t(Cl)`
96
96
  height: ${a.sp4};
97
97
  width: ${a.sp4};
98
98
  margin-right: ${a.sp2};
99
99
  color: inherit;
100
- `,ma=t(Pl)`
100
+ `,ma=t(Nl)`
101
101
  height: 12px;
102
102
  width: 12px;
103
103
  color: ${e=>e.theme.colors.hero};
104
- `,fa=t.div``,ha=t(Cl)`
104
+ `,fa=t.div``,ha=t(Pl)`
105
105
  width: 12px;
106
106
  height: 12px;
107
107
  color: ${e=>e.theme.colors.primary};
108
- `,Ze=t.img`
108
+ `,Ye=t.img`
109
109
  height: ${a.sp4};
110
110
  width: ${a.sp4};
111
111
  border-radius: 50%;
112
112
  justify-content: center;
113
- `,ya=e=>{const{data:p,options:u,isSelected:m}=e,P=u.findIndex(g=>g.value===p.value);return l.jsx(sa,{children:l.jsx(be.Option,{...e,children:l.jsxs(pa,{children:[l.jsxs(ga,{children:[l.jsx(ba,{children:p?.photo!==void 0?l.jsx(Ze,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=De},loading:"lazy"}):l.jsx(Ne,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:P})}),l.jsx("label",{children:e.label})]}),!!m&&l.jsx(fa,{children:l.jsx(ha,{})})]})})})},ga=t.div`
113
+ `,ya=e=>{const{data:p,options:u,isSelected:m}=e,N=u.findIndex(g=>g.value===p.value);return l.jsx(sa,{children:l.jsx(be.Option,{...e,children:l.jsxs(pa,{children:[l.jsxs(ga,{children:[l.jsx(ba,{children:p?.photo!==void 0?l.jsx(Ye,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=De},loading:"lazy"}):l.jsx(Ce,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:N})}),l.jsx("label",{children:e.label})]}),!!m&&l.jsx(fa,{children:l.jsx(ha,{})})]})})})},ga=t.div`
114
114
  width: 100%;
115
115
  display: flex;
116
116
  align-items: center;
@@ -118,12 +118,12 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
118
118
  display: flex;
119
119
  align-items: center;
120
120
  margin-right: ${a.sp2};
121
- `,xa=t(Ce)`
121
+ `,xa=t(Pe)`
122
122
  padding: ${a.sp0} ${a.sp2};
123
123
  white-space: nowrap;
124
124
  overflow: hidden;
125
125
  text-overflow: ellipsis;
126
- `,wa=({children:e,data:p,...u})=>{const{options:m}=u.selectProps,P=m.findIndex(g=>g.value===p.value);return l.jsx(be.MultiValueLabel,{...u,children:l.jsxs(Sa,{children:[p?.photo!==void 0?l.jsx(Ze,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=De},loading:"lazy"}):l.jsx(Ne,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:P}),l.jsx(xa,{children:e})]})})},ja=({children:e,...p})=>l.jsxs(be.ValueContainer,{...p,children:[p.selectProps.value==null?l.jsx(da,{children:l.jsx(ca,{})}):null,e]}),va=t(Dl)`
126
+ `,wa=({children:e,data:p,...u})=>{const{options:m}=u.selectProps,N=m.findIndex(g=>g.value===p.value);return l.jsx(be.MultiValueLabel,{...u,children:l.jsxs(Sa,{children:[p?.photo!==void 0?l.jsx(Ye,{src:p?.photo.href,alt:ue.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=De},loading:"lazy"}):l.jsx(Ce,{firstName:p?.firstName??"",lastName:p?.lastName??"",size:`${a.sp4}`,index:N}),l.jsx(xa,{children:e})]})})},ja=({children:e,...p})=>l.jsxs(be.ValueContainer,{...p,children:[p.selectProps.value==null?l.jsx(da,{children:l.jsx(ca,{})}):null,e]}),va=t(Dl)`
127
127
  color: ${e=>e.hasSelectedUser?e.theme.colors.hero:e.theme.colors.primary};
128
128
  display: flex;
129
129
  padding: ${a.sp2} 12px;
@@ -138,7 +138,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
138
138
  display: flex;
139
139
  flex-direction: row;
140
140
  cursor: pointer;
141
- `,pe={width:new N(343,580,726),labelWidth:new N(115,145,155),largeLabelWidth:new N(160,240,240),veryLargeLabelWidth:new N(150,240,245),containerRowGap:new N(12,ae[3])},Oa={title:new Ge("standardMedium","largeMedium")};function Ja({companyOfficerData:e,isDisabled:p,allOfficers:u,allNationalityCountries:m,isRefreshingViewInBackground:P,connectedAccountProvider:g,style:n,isPopupOpen:U,sectionId:h,filesEndPoint:oe,authParams:te,showInfoTooltip:ie=!0,isCompleted:H=!1,showCompletedIcon:G=!1,showOfficerSelect:s=!0,showVerificationTag:Q=!0,isForTreasury:V=!1,isOverlay:re=!1,productType:f,companyTitles:F,sectionHeader:_,optionalFields:b=[],onOfficerAddressClick:z,onDeleteFile:y,onEditFileName:X,updateFilesEntity:Y,openPopup:c,onGetOtp:j,onVerifyOtp:R,onResendOtp:se,verifiedPhoneNumber:B,onPhoneVerified:J}){const L=ze(),me=Re(),{getValues:K,setValue:Z}=yl(),q=u.length>0,[ne,xe]=M.useState(!1),W=q?Object.values(e).findIndex(i=>i?.isSelectedForVerification===!0):0,C=`Officer_${W<0?1:W+1}`;M.useEffect(()=>{J!=null&&e[C]?.phone!=null&&e[C].isPhoneVerified===!0&&J(e[C]?.phone??"")},[]);const x=`${h}.${W}`,S=e[C],T=V?S?.treasuryUserVerificationStatus:S?.userVerificationStatus,D=u.find(i=>i.userId===S?.userId),we=u.sort((i,O)=>(i.firstName||i.lastName?`${i.firstName} ${i.lastName}`:i.email).localeCompare(O.firstName||O.lastName?`${O.firstName} ${O.lastName}`:O.email)),d=q?we.findIndex(i=>i.userId===S?.userId):0,je=e[C]?.deleteFileStatusById??{},el=e[C]?.updateFileStatusById??{},Ee=K(`${x}.selectDocument.selectDocumentType`),{common:{optional:ll},commonSetUp:{businessVerification:r},dateFormat:{visual:al},cockpit:ol}=ue.getLocalizedStrings(),k=f==="onboarding"?r.productType.business_verification:r.productType[f],de=pe.labelWidth.value(L),tl=pe.veryLargeLabelWidth.value(L),fe=pe.largeLabelWidth.value(L),il=L==="small"?r.companyRolePlaceholderSmall:r.companyRolePlaceholder,rl=L==="small"?r.protectedSsnTextSmall:r.protectedSsnText,$=T?.code==="pending_review"||T?.code==="verified"?"readonly":p,sl=$!=null||!q||T?.code==="require_info",nl=D?.firstName||D?.lastName?`${D?.firstName} ${D?.lastName}`:r.addOfficer,dl=S?.userId!=null?r.confirmIdentityDetails:r.confirmIdentityDetailsNewOfficer,cl={menu:()=>({right:"initial",left:0})},pl=i=>F.find(O=>O.code===i)?.name??i,ve=S?.otpverificationStatus?.fetchState,Ve=gl(ve);M.useEffect(()=>{J!=null&&Ve==="In-Progress"&&ve==="Completed"&&J(K(`${x}.phone`))},[Ve,ve]);const ul=(i,O)=>{R(i,O)},ml=()=>B==null||B===""?!1:K(`${x}.phone`)===B,fl=()=>{const i=K(`${x}.phone`);return i!=null&&!Ll(i)?r.phoneErrorForOnboarding:r.phoneError.replace("_product_type_",k)};return l.jsxs(La,{style:n,windowSize:L,children:[l.jsxs(Fa,{windowSize:L,isOverlay:re,children:[l.jsxs(Aa,{children:[l.jsxs(Da,{children:[G===!0?l.jsx(Na,{children:H?l.jsx(Pa,{}):l.jsx(Ca,{})}):null,l.jsx(_a,{windowSize:L,children:_??dl})]}),ie?l.jsx(Ea,{children:l.jsx(qe,{variant:"small-description",maxWidth:"275px",data:r.confirmIdentityDetailsTooltip,display:"flex",placement:L==="small"||f==="onboarding"?"bottom":"right",children:l.jsx(Va,{})})}):null,f==="onboarding"&&_!=null?l.jsx(Ke,{text:ll}):null,T!=null&&Q?l.jsx(qa,{tagTitle:T?.name,textColor:Be(T.code),showLoader:P}):null]}),s?sl?q?l.jsxs(Ra,{children:[D?.photo!==void 0?l.jsx(Ta,{src:D?.photo.href,alt:ol.userProfileAltText,onError:({currentTarget:i})=>{i.onerror=null,i.src=De},loading:"lazy"}):l.jsx(Ne,{firstName:D?.firstName??"",lastName:D?.lastName??"",size:`${a.sp4}`,index:d}),l.jsx(Ae,{children:`${nl}`})]}):l.jsxs(Ba,{children:[l.jsx(Wa,{children:l.jsx(Ma,{})}),l.jsx(Ae,{children:`${r.addOfficer}`})]}):l.jsx(ka,{children:l.jsx(ra,{selectedUser:D,allUsers:u,onSelectedUserChanged:i=>{const O=Object.values(e).findIndex(he=>he?.userId===i?.userId);Z(`${x}.isSelectedForVerification`,!1),Z(`${h}.${O}.isSelectedForVerification`,!0)},customization:{placeholderLabel:r.addOfficer},showAddUser:u.length<=9,pickerStyles:{backgroundColor:me.colors.grey5,selectedOptionBackgroundColor:me.colors.background,customStyleConfig:L==="small"?cl:void 0}})}):null]}),Object.values(e).map((i,O)=>{if(W!==O)return null;const he=bl(i?.documentTypeSelectedForVerification),Ie=i?.userFiles??[],hl=()=>B!=""&&f==="onboarding"?ml():i?.isPhoneVerified??!1;return l.jsxs(za,{children:[l.jsx(Je,{}),l.jsx(We,{isDisabled:$,label:{label:r.name,width:de},nameField:{name:E(x,"name"),placeHolder:{firstName:r.firstNamePlaceholder,lastName:r.lastNamePlaceholder,name:r.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},registerOptions:{required:b.includes("name")===!1,validate:w=>b.includes("name")===!1?!!w:!0},showFullNameError:!0},errorInfoLabel:r.nameError.replace("_product_type_",k)}),l.jsx(A,{}),i?.userId==null?l.jsxs(l.Fragment,{children:[l.jsx(ee,{isDisabled:$,showAdditionalInfoLabel:!1,label:{label:r.email,width:de},text:{type:"email",name:E(x,"email"),placeholder:ce(r.email),defaultValue:i?.email,options:{required:b.includes("email")===!1}},additionalInfoLabel:r.emailDescription.replace("_product_type_",k)}),l.jsx(A,{})]}):null,l.jsx(Me,{isDisabled:$,label:{label:r.dobLabel,width:fe},dateField:{name:E(x,"dob"),type:"text",defaultValue:i?.birthday,placeholder:ce(r.dobLabel),dateFormat:al.defaultInput,maxDate:Le.dateNow().subtract(g==="unit"?18:13,"years"),registerOptions:{required:b.includes("dob")===!1},autoComplete:"off"},additionalInfoLabel:r.dobDescription.replace("_product_type_",k),isMasked:!0}),l.jsx(A,{}),l.jsx(xl,{isDisabled:$,label:{label:r.nationalityLabel,width:de},showAdditionalInfoLabel:f!=="onboarding",additionalInfoLabel:r.nationalityDescription.replace("_product_type_",k),countrySelectField:{name:E(x,"nationalityCountryCode"),placeholder:r.nationalityPlaceholder,defaultValue:wl(i?.nationalityCountryCode,m.map(w=>w.countryCode)),registerOptions:{validate:w=>!!(w!=null&&w.selectedOption)}}}),l.jsx(A,{}),l.jsx(_e,{isDisabled:$,label:{label:r.address,width:de},addressValueField:{name:E(x,"officerAddress"),placeholder:ce(r.address),defaultValue:i?.addressStatus?.addressToCreate,registerOptions:{validate:w=>b.includes("officerAddress")===!1?!($==null&&w==null):!0},onClick:()=>{z(i?.officerType.toLocaleLowerCase().concat("_address"))}},additionalInfoLabel:f==="onboarding"?r.addressAdditionInfo:r.addressError.replace("_product_type_",k),showAdditionalInfoLabel:!0}),l.jsx(A,{}),l.jsx(Ue,{isDisabled:$,label:{label:r.phone,width:de},text:{name:E(x,"phone"),placeholder:ce(r.phone),defaultValue:i?.phone,autoComplete:"new-password",options:{required:b.includes("phone")===!1}},errorInfoLabel:fl(),verificationErrorInfoLabel:r.phoneValidationError,isPopupOpen:U,phoneVerifyButtonProps:{otpChallenge:i?.otpChallenge,showOtpButton:g==="unit",onGetOtp:j,onVerifyOtp:ul,onResendOtp:se,isPhoneVerified:hl(),phoneVerificationStatus:i?.otpverificationStatus,getOtpStatus:i?.sendOtpStatus,openPopup:c,verifiedPhoneNumber:B,focusNotRequired:!0}}),l.jsx(A,{}),l.jsx(Fe,{label:{label:r.companyRoleLabel,width:fe},singleSelectField:{singleSelect:{name:E(x,"role"),placeholder:il,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:pl,isDisabled:$,showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:i?.titleAtCompany,allOptions:F?.map(w=>w.code)??[]},registerOptions:{required:b.includes("role")===!1,validate:w=>b.includes("role")===!1?!($==null&&!w?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:r.companyRoleDescription.replace("_product_type_",k)}),l.jsx(A,{}),l.jsx(Te,{isDisabled:$,showAdditionalInfoLabel:!1,label:{label:r.companyOwnershipLabel,width:fe},formattedTextField:{type:"number",name:E(x,"ownership"),defaultValue:i?.ownershipInCompany,placeholder:r.companyOwnershipPlaceholder,returnValueType:"floatValue",suffix:"%",allowNegative:!1,isNumericString:!1,registerOptions:{required:b.includes("ownership")===!1,validate:w=>w!=null?w>0&&w<=100:!0,max:100},autoComplete:"new-password"},additionalInfoLabel:f==="onboarding"?r.companyOwnershipDescriptionForOnboarding:r.companyOwnershipDescription}),l.jsx(A,{}),l.jsx(Te,{isDisabled:$,showAdditionalInfoLabel:!1,label:{label:r.ssnLabel,width:fe},formattedTextField:{type:"text",name:E(x,"ssn"),placeholder:r.addSSNPlaceholder,defaultValue:i?.ssn,format:"###-##-####",registerOptions:{required:b.includes("ssn")===!1,pattern:jl},autoComplete:"new-password",maxLength:9,allowLeadingZeros:!0},protectedInfoText:$!=null&&i?.ssn?rl:void 0,additionalInfoLabel:r.ssnDescription.replace("_product_type_",k),isMasked:!0}),l.jsx(A,{}),l.jsx(vl,{name:E(x,"selectDocument"),officerIndex:W,sizeLimit:ge,filesEndPoint:oe,authParams:te,onEditFileName:X,acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],label:{width:tl},allFiles:Ie,updateFilesEntity:Y,deleteFileStatusById:je,updateFileStatusById:el,onDeleteFile:y,isDisabled:$,menuPlacement:f==="onboarding"&&he==null?"top":"auto",defaultValue:{defaultSelectDocumentType:he,allSelectDocumentType:["driverLicense","passport","ssnCard"],files:{front:ke(!0,Ie,Ee),back:ke(!1,Ie,Ee)}},registerOptions:{required:b.includes("selectDocument")===!1},hasError:ne,additionalInfoLabel:r.companyIdDescription.replace("_product_type_",k),onFileSizeError:w=>xe(w),isPopupOpen:U,openPopup:c,companyOfficerName:{firstName:i?.firstName??"",lastName:i?.lastName??""}})]},x)})]})}const E=(e,p)=>`${e}.${p}`,La=t.div`
141
+ `,pe={width:new C(343,580,726),labelWidth:new C(115,145,155),largeLabelWidth:new C(160,240,240),veryLargeLabelWidth:new C(150,240,245),containerRowGap:new C(12,ae[3])},Oa={title:new Ge("standardMedium","largeMedium")};function Za({companyOfficerData:e,isDisabled:p,allOfficers:u,allNationalityCountries:m,isRefreshingViewInBackground:N,connectedAccountProvider:g,style:n,isPopupOpen:U,sectionId:h,filesEndPoint:oe,authParams:te,showInfoTooltip:ie=!0,isCompleted:H=!1,showCompletedIcon:G=!1,showOfficerSelect:s=!0,showVerificationTag:Q=!0,isForTreasury:T=!1,isOverlay:re=!1,productType:f,companyTitles:F,sectionHeader:_,optionalFields:b=[],onOfficerAddressClick:z,onDeleteFile:y,onEditFileName:X,updateFilesEntity:J,openPopup:c,onGetOtp:j,onVerifyOtp:R,onResendOtp:se,verifiedPhoneNumber:q,onPhoneVerified:Z}){const L=ze(),me=Re(),{getValues:K,setValue:Y}=yl(),B=u.length>0,[ne,xe]=M.useState(!1),W=B?Object.values(e).findIndex(i=>i?.isSelectedForVerification===!0):0,P=`Officer_${W<0?1:W+1}`;M.useEffect(()=>{Z!=null&&e[P]?.phone!=null&&e[P].isPhoneVerified===!0&&Z(e[P]?.phone??"")},[]);const x=`${h}.${W}`,S=e[P],V=T?S?.treasuryUserVerificationStatus:S?.userVerificationStatus,D=u.find(i=>i.userId===S?.userId),we=u.sort((i,O)=>(i.firstName||i.lastName?`${i.firstName} ${i.lastName}`:i.email).localeCompare(O.firstName||O.lastName?`${O.firstName} ${O.lastName}`:O.email)),d=B?we.findIndex(i=>i.userId===S?.userId):0,je=e[P]?.deleteFileStatusById??{},el=e[P]?.updateFileStatusById??{},Ee=K(`${x}.selectDocument.selectDocumentType`),{common:{optional:ll},commonSetUp:{businessVerification:r},dateFormat:{visual:al},cockpit:ol}=ue.getLocalizedStrings(),k=f==="onboarding"?r.productType.business_verification:r.productType[f],de=pe.labelWidth.value(L),tl=pe.veryLargeLabelWidth.value(L),fe=pe.largeLabelWidth.value(L),il=L==="small"?r.companyRolePlaceholderSmall:r.companyRolePlaceholder,rl=L==="small"?r.protectedSsnTextSmall:r.protectedSsnText,$=V?.code==="pending_review"||V?.code==="verified"?"readonly":p,sl=$!=null||!B||V?.code==="require_info",nl=D?.firstName||D?.lastName?`${D?.firstName} ${D?.lastName}`:r.addOfficer,dl=S?.userId!=null?r.confirmIdentityDetails:r.confirmIdentityDetailsNewOfficer,cl={menu:()=>({right:"initial",left:0})},pl=i=>F.find(O=>O.code===i)?.name??i,ve=S?.otpverificationStatus?.fetchState,Te=gl(ve);M.useEffect(()=>{Z!=null&&Te==="In-Progress"&&ve==="Completed"&&Z(K(`${x}.phone`))},[Te,ve]);const ul=(i,O)=>{R(i,O)},ml=()=>q==null||q===""?!1:K(`${x}.phone`)===q,fl=()=>{const i=K(`${x}.phone`);return i!=null&&!Ll(i)?r.phoneErrorForOnboarding:r.phoneError.replace("_product_type_",k)};return l.jsxs(La,{style:n,windowSize:L,children:[l.jsxs(Fa,{windowSize:L,isOverlay:re,children:[l.jsxs(Aa,{children:[l.jsxs(Da,{children:[G===!0?l.jsx(Ca,{children:H?l.jsx(Na,{}):l.jsx(Pa,{})}):null,l.jsx(_a,{windowSize:L,children:_??dl})]}),ie?l.jsx(Ea,{children:l.jsx(Be,{variant:"small-description",maxWidth:"275px",data:r.confirmIdentityDetailsTooltip,display:"flex",placement:L==="small"||f==="onboarding"?"bottom":"right",children:l.jsx(Ta,{})})}):null,f==="onboarding"&&_!=null?l.jsx(Ke,{text:ll}):null,V!=null&&Q?l.jsx(Ba,{tagTitle:V?.name,textColor:qe(V.code),showLoader:N}):null]}),s?sl?B?l.jsxs(Ra,{children:[D?.photo!==void 0?l.jsx(Va,{src:D?.photo.href,alt:ol.userProfileAltText,onError:({currentTarget:i})=>{i.onerror=null,i.src=De},loading:"lazy"}):l.jsx(Ce,{firstName:D?.firstName??"",lastName:D?.lastName??"",size:`${a.sp4}`,index:d}),l.jsx(Ae,{children:`${nl}`})]}):l.jsxs(qa,{children:[l.jsx(Wa,{children:l.jsx(Ma,{})}),l.jsx(Ae,{children:`${r.addOfficer}`})]}):l.jsx(ka,{children:l.jsx(ra,{selectedUser:D,allUsers:u,onSelectedUserChanged:i=>{const O=Object.values(e).findIndex(he=>he?.userId===i?.userId);Y(`${x}.isSelectedForVerification`,!1),Y(`${h}.${O}.isSelectedForVerification`,!0)},customization:{placeholderLabel:r.addOfficer},showAddUser:u.length<=9,pickerStyles:{backgroundColor:me.colors.grey5,selectedOptionBackgroundColor:me.colors.background,customStyleConfig:L==="small"?cl:void 0}})}):null]}),Object.values(e).map((i,O)=>{if(W!==O)return null;const he=bl(i?.documentTypeSelectedForVerification),Ie=i?.userFiles??[],hl=()=>q!=""&&f==="onboarding"?ml():i?.isPhoneVerified??!1;return l.jsxs(za,{children:[l.jsx(Ze,{}),l.jsx(We,{isDisabled:$,label:{label:r.name,width:de},nameField:{name:E(x,"name"),placeHolder:{firstName:r.firstNamePlaceholder,lastName:r.lastNamePlaceholder,name:r.namePlaceholder},defaultValue:{firstName:i?.firstName??"",lastName:i?.lastName??""},registerOptions:{required:b.includes("name")===!1,validate:w=>b.includes("name")===!1?!!w:!0},showFullNameError:!0},errorInfoLabel:r.nameError.replace("_product_type_",k)}),l.jsx(A,{}),i?.userId==null?l.jsxs(l.Fragment,{children:[l.jsx(ee,{isDisabled:$,showAdditionalInfoLabel:!1,label:{label:r.email,width:de},text:{type:"email",name:E(x,"email"),placeholder:ce(r.email),defaultValue:i?.email,options:{required:b.includes("email")===!1}},additionalInfoLabel:r.emailDescription.replace("_product_type_",k)}),l.jsx(A,{})]}):null,l.jsx(Me,{isDisabled:$,label:{label:r.dobLabel,width:fe},dateField:{name:E(x,"dob"),type:"text",defaultValue:i?.birthday,placeholder:ce(r.dobLabel),dateFormat:al.defaultInput,maxDate:Le.dateNow().subtract(g==="unit"?18:13,"years"),registerOptions:{required:b.includes("dob")===!1},autoComplete:"off"},additionalInfoLabel:r.dobDescription.replace("_product_type_",k),isMasked:!0}),l.jsx(A,{}),l.jsx(xl,{isDisabled:$,label:{label:r.nationalityLabel,width:de},showAdditionalInfoLabel:f!=="onboarding",additionalInfoLabel:r.nationalityDescription.replace("_product_type_",k),countrySelectField:{name:E(x,"nationalityCountryCode"),placeholder:r.nationalityPlaceholder,defaultValue:wl(i?.nationalityCountryCode,m.map(w=>w.countryCode)),registerOptions:{validate:w=>!!(w!=null&&w.selectedOption)}}}),l.jsx(A,{}),l.jsx(_e,{isDisabled:$,label:{label:r.address,width:de},addressValueField:{name:E(x,"officerAddress"),placeholder:ce(r.address),defaultValue:i?.addressStatus?.addressToCreate,registerOptions:{validate:w=>b.includes("officerAddress")===!1?!($==null&&w==null):!0},onClick:()=>{z(i?.officerType.toLocaleLowerCase().concat("_address"))}},additionalInfoLabel:f==="onboarding"?r.addressAdditionInfo:r.addressError.replace("_product_type_",k),showAdditionalInfoLabel:!0}),l.jsx(A,{}),l.jsx(Ue,{isDisabled:$,label:{label:r.phone,width:de},text:{name:E(x,"phone"),placeholder:ce(r.phone),defaultValue:i?.phone,autoComplete:"new-password",options:{required:b.includes("phone")===!1}},errorInfoLabel:fl(),verificationErrorInfoLabel:r.phoneValidationError,isPopupOpen:U,phoneVerifyButtonProps:{otpChallenge:i?.otpChallenge,showOtpButton:g==="unit",onGetOtp:j,onVerifyOtp:ul,onResendOtp:se,isPhoneVerified:hl(),phoneVerificationStatus:i?.otpverificationStatus,getOtpStatus:i?.sendOtpStatus,openPopup:c,verifiedPhoneNumber:q,focusNotRequired:!0}}),l.jsx(A,{}),l.jsx(Fe,{label:{label:r.companyRoleLabel,width:fe},singleSelectField:{singleSelect:{name:E(x,"role"),placeholder:il,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:pl,isDisabled:$,showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:i?.titleAtCompany,allOptions:F?.map(w=>w.code)??[]},registerOptions:{required:b.includes("role")===!1,validate:w=>b.includes("role")===!1?!($==null&&!w?.selectedOption):!0}},isFunctional:!0,errorInfoLabel:r.companyRoleDescription.replace("_product_type_",k)}),l.jsx(A,{}),l.jsx(Ve,{isDisabled:$,showAdditionalInfoLabel:!1,label:{label:r.companyOwnershipLabel,width:fe},formattedTextField:{type:"number",name:E(x,"ownership"),defaultValue:i?.ownershipInCompany,placeholder:r.companyOwnershipPlaceholder,returnValueType:"floatValue",suffix:"%",allowNegative:!1,isNumericString:!1,registerOptions:{required:b.includes("ownership")===!1,validate:w=>w!=null?w>0&&w<=100:!0,max:100},autoComplete:"new-password"},additionalInfoLabel:f==="onboarding"?r.companyOwnershipDescriptionForOnboarding:r.companyOwnershipDescription}),l.jsx(A,{}),l.jsx(Ve,{isDisabled:$,showAdditionalInfoLabel:!1,label:{label:r.ssnLabel,width:fe},formattedTextField:{type:"text",name:E(x,"ssn"),placeholder:r.addSSNPlaceholder,defaultValue:i?.ssn,format:"###-##-####",registerOptions:{required:b.includes("ssn")===!1,pattern:jl},autoComplete:"new-password",maxLength:9,allowLeadingZeros:!0},protectedInfoText:$!=null&&i?.ssn?rl:void 0,additionalInfoLabel:r.ssnDescription.replace("_product_type_",k),isMasked:!0}),l.jsx(A,{}),l.jsx(vl,{name:E(x,"selectDocument"),officerIndex:W,sizeLimit:ge,filesEndPoint:oe,authParams:te,onEditFileName:X,acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],label:{width:tl},allFiles:Ie,updateFilesEntity:J,deleteFileStatusById:je,updateFileStatusById:el,onDeleteFile:y,isDisabled:$,menuPlacement:f==="onboarding"&&he==null?"top":"auto",defaultValue:{defaultSelectDocumentType:he,allSelectDocumentType:["driverLicense","passport","ssnCard"],files:{front:ke(!0,Ie,Ee),back:ke(!1,Ie,Ee)}},registerOptions:{required:b.includes("selectDocument")===!1},hasError:ne,additionalInfoLabel:r.companyIdDescription.replace("_product_type_",k),onFileSizeError:w=>xe(w),isPopupOpen:U,openPopup:c,companyOfficerName:{firstName:i?.firstName??"",lastName:i?.lastName??""}})]},x)})]})}const E=(e,p)=>`${e}.${p}`,La=t.div`
142
142
  display: flex;
143
143
  flex-direction: column;
144
144
  row-gap: ${e=>pe.containerRowGap.valuePx(e.windowSize)};
@@ -158,13 +158,13 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
158
158
  `,Da=t.div`
159
159
  display: flex;
160
160
  align-items: center;
161
- `,Na=t.div`
161
+ `,Ca=t.div`
162
162
  margin-right: ${a.sp2};
163
- `,Pa=t(He)`
163
+ `,Na=t(He)`
164
164
  width: ${a.sp3};
165
165
  height: ${a.sp3};
166
- color: ${Pe.success};
167
- `,Ca=t.div`
166
+ color: ${Ne.success};
167
+ `,Pa=t.div`
168
168
  height: 14px;
169
169
  width: 14px;
170
170
  border: 1px solid ${e=>e.theme.colors.primary};
@@ -175,10 +175,10 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
175
175
  &:hover {
176
176
  color: ${e=>e.theme.colors.primary};
177
177
  }
178
- `,Va=t(Qe)`
178
+ `,Ta=t(Qe)`
179
179
  width: ${a.sp3};
180
180
  height: ${a.sp3};
181
- `,Ta=t.img`
181
+ `,Va=t.img`
182
182
  height: ${a.sp4};
183
183
  width: ${a.sp4};
184
184
  border-radius: 50%;
@@ -202,7 +202,7 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
202
202
  background-color: ${e=>e.theme.colors.grey3};
203
203
  min-height: 1px;
204
204
  max-height: 1px;
205
- `,Ra=t(Ce)`
205
+ `,Ra=t(Pe)`
206
206
  display: flex;
207
207
  flex-direction: row;
208
208
  justify-content: flex-end;
@@ -213,10 +213,10 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
213
213
  white-space: nowrap;
214
214
  overflow: hidden;
215
215
  text-overflow: ellipsis;
216
- `,qa=t(Xe)`
216
+ `,Ba=t(Xe)`
217
217
  width: max-content;
218
218
  margin-left: ${a.sp3};
219
- `,Ba=t(Ce)`
219
+ `,qa=t(Pe)`
220
220
  display: flex;
221
221
  flex-direction: row;
222
222
  justify-content: flex-end;
@@ -225,8 +225,8 @@ import{X as ze,u as Re,cg as yl,M as ue,C as N,a5 as gl,j as l,bu as qe,f0 as Be
225
225
  `,Wa=t.div`
226
226
  display: flex;
227
227
  align-items: center;
228
- `,Ma=t(Ye)`
228
+ `,Ma=t(Je)`
229
229
  width: ${a.sp4};
230
230
  height: ${a.sp4};
231
231
  color: ${e=>e.theme.colors.hero};
232
- `;export{Ml as G,Ja as o};
232
+ `;export{Ml as G,Za as o};