@zeniai/web-cockpit-ui 1.14.41-qa → 1.14.42-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 (243) hide show
  1. package/dist/assets/ACHDetailsPage-C0Ys2JJm-CSmQeh3x.js +21 -0
  2. package/dist/assets/{AIPerformancePage-DUz4HfZ1-Dw16_h1i.js → AIPerformancePage-CsR8PRb9-DlWAPyY5.js} +32 -32
  3. package/dist/assets/{AccountInfoPage-YaZUNWd--C7mX1TUK.js → AccountInfoPage-GuppZ3vX-ybOuy1Kd.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CMDfYWOh-2t3Y-Tgi.js → AccountInfoPageContent-BLKO0eIw-B7kvUMt5.js} +30 -30
  5. package/dist/assets/{AccountLockedInfoModal-DVLQ0FPH-B5gNUsGD.js → AccountLockedInfoModal-DxcSHNgE-BkMfAWj6.js} +3 -3
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D15tKD4N-wdhiO3so.js → AccountReconDetailsDrawerPage-BoS3J4pw-C7qNHT6H.js} +15 -15
  7. package/dist/assets/{AccountRow-D-CPGejv-C0MkYOn9.js → AccountRow-Dj74AzIh-BbDAUA8T.js} +22 -22
  8. package/dist/assets/{AccountsPromoCardStack-BP_NIYH9-CknZDmQk.js → AccountsPromoCardStack-MQ_e8aZu-DokMp7Fc.js} +28 -28
  9. package/dist/assets/{AddAddressForCardDrawer-CgUhQtxS-ZERwnczq.js → AddAddressForCardDrawer-LpGynQhq-BiZdAWgh.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BJ1zD8Fp-DS4otSje.js → AddToWalletPage-wtm2Oua5-x0zhdZBl.js} +14 -14
  11. package/dist/assets/{AgingReportsPage-BC3a8enN-CH94puRQ.js → AgingReportsPage-e98Qmrut-DEPFVdEb.js} +14 -14
  12. package/dist/assets/{AllUserItems-vM-R7kC6-dC4XnH-i.js → AllUserItems-Cyr74U6h-DLHOl5bM.js} +10 -10
  13. package/dist/assets/{ApAgingDetailPage-C0soj3QL-CIKu7KMh.js → ApAgingDetailPage-Kjz7NPLx-Bf3lvNxo.js} +4 -4
  14. package/dist/assets/{AppBasePage-vYi6vqB3-CUCnltWx.js → AppBasePage-DrR3bM5Z-CWPfvLBQ.js} +17 -17
  15. package/dist/assets/{AppDrawerContent-4OWU2TFD-hU4F7Wlo.js → AppDrawerContent-C2GlTktJ-DMFov52N.js} +8 -8
  16. package/dist/assets/{ApprovalRulesSettingsPage-D9sYwLt_-eXBjf9wx.js → ApprovalRulesSettingsPage-Cy9uHg-R-Lb5cY5kU.js} +1 -1
  17. package/dist/assets/{ArAgingChart-B_o6w4NZ-eMi5HTRp.js → ArAgingChart-CtxyhI9X-mEADLb4-.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-CBVZytB--DpqLoVCo.js → ArAgingDetailPage-GX7S1gNm-CGPsvsX3.js} +1 -1
  19. package/dist/assets/{AttachmentView-B-4i3ruL-Coezd-6G.js → AttachmentView-C8CksG-9-RpLYPFoP.js} +6 -6
  20. package/dist/assets/{BankAccountSection-BSpqPLea-DnHvULrV.js → BankAccountSection-8JPKANMP-DuTpIyau.js} +4 -4
  21. package/dist/assets/BankAccountWarningSection-HW7t6lPN-CXdJbZl-.js +51 -0
  22. package/dist/assets/{BankConnectionsSettingsPage-Bb8Ug1B7-BrJkpQBD.js → BankConnectionsSettingsPage-C_jyBPLn-CLp_uRqW.js} +31 -31
  23. package/dist/assets/BillDetailPage-BwuHMPBb-CWwzJCXe.js +266 -0
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-zgj-w04l-DlkJNyRo.js → BillPayApprovalRuleDetailPage-9RqkaWf2-BU5jdCnL.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-8Yu9sjNN-CP9d39U-.js → BillPayApprovalRulesPage-CZmACduz-93oNGY5M.js} +9 -9
  26. package/dist/assets/{BillPayPromoPage-DwiZ7BtU-fiyE_zkg.js → BillPayPromoPage-C2m0GTw3-CZokQfrc.js} +4 -4
  27. package/dist/assets/{BillPaySetUpPage-qkDjDwA2-BVCc21N3.js → BillPaySetUpPage-C71BRWUw-VI3bvPN6.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-CcAIOY2J-REyIPWiq.js → BillingSettingsPage-Gc3cUKmE-DleW0m9X.js} +5 -5
  29. package/dist/assets/{BillsBulkReviewDrawerPage-BONjbFFw-qDHExLn5.js → BillsBulkReviewDrawerPage-CO1oJuvH-DO4MY9I-.js} +1 -1
  30. package/dist/assets/{BoxItem-BebxqupW-BdoD_mmi.js → BoxItem-D09XMKDc-dcEB3ro9.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DB134_1e-CZY_8hSF.js → BusinessVerificationPage-Ef4KSPWc-CGQqBH2S.js} +9 -9
  32. package/dist/assets/CardNumberSubText-Chba_z2--BgVxGcnT.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-CCb57-3P-p_PVDcq5.js → CashbackDetailPage-DAM-IJ8V-GMcbY1v3.js} +20 -20
  34. package/dist/assets/{ChargeCardDetailPage-DZ53kEgD-CVscm9WX.js → ChargeCardDetailPage-U_ZuntGp-Bifm6uRw.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-67dSFsMj-BER-SYIw.js → ChargeCardListPage-DJ5TbLO--IUEMfPwT.js} +23 -23
  36. package/dist/assets/{ChargeCardListTable-Czriruk3-DeRl2C1o.js → ChargeCardListTable-D7BV3Iv9-CvArKgFC.js} +13 -13
  37. package/dist/assets/{ChargeCardPromoPage-DvMyjHD_-Dd7MlnjV.js → ChargeCardPromoPage-CMqzRnza-BLyUSFwI.js} +26 -26
  38. package/dist/assets/{ChargeCardSetupPage-D6o-evfw-2pOurEiq.js → ChargeCardSetupPage-dOz2soLF-Bc9pTyfy.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-vmEZp2Gc-k4U6YJ8h.js → ChargeCardStatementsPage-S2JH9s6i-BXX6utVL.js} +11 -11
  40. package/dist/assets/ChargeCardUtils-Bv0OpE88-D5Y-HOpD.js +1 -0
  41. package/dist/assets/{ChaseOverlay-DU98sRYz-NBdZIJp3.js → ChaseOverlay-4Rv__bdV-G7KHiWVk.js} +7 -7
  42. package/dist/assets/{CheckDepositDrawerPage-D559Iqfg-2Xs20KLS.js → CheckDepositDrawerPage-BKogbkJv-CWQTz4_P.js} +15 -15
  43. package/dist/assets/{CollapsableReportTable-C3JrOMbA-C8RANxS5.js → CollapsableReportTable-B_qvVX0p-B7sAIIqY.js} +85 -85
  44. package/dist/assets/{CompanyOfficerDetailsSection-ByPjcDhp-UGnVN2eW.js → CompanyOfficerDetailsSection-aAwv9WfC-B4p0BPWe.js} +22 -22
  45. package/dist/assets/{CompanyPassportCard-DtaT5LBX-sjzIwivo.js → CompanyPassportCard-DchSKG4l-bx1QGbPl.js} +4 -4
  46. package/dist/assets/{CompanyPassportPage-CYqtLLPi-BZvETxjP.js → CompanyPassportPage-DLIJn7Fp-oxmh8Pcm.js} +14 -14
  47. package/dist/assets/{CompleteProfile-bz1Sx_Ks-eJUFer6h.js → CompleteProfile-Bf5sNhdg-Bo2AvDlJ.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-DmQRRfzl-CENtoeqN.js → ConfettiBurst-BPWFB4Ty-0v38oqti.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-R5xXzTyF-B9baa0jh.js → CreateOrEditVendorPage-BTWihvJ--DUStbYOW.js} +8 -8
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CxFF-ITI-WcUeJ00Z.js → CreditCardPaymentDrawerPage-B5p_onzw-DCjutv5C.js} +11 -11
  51. package/dist/assets/{CreditCardPaymentPlgSection-D5M15mry-CMaSHERV.js → CreditCardPaymentPlgSection-CTpwe7CS-BcL1YjIs.js} +5 -5
  52. package/dist/assets/{CurrencySelectField-DdtldGsv-C812lF_Y.js → CurrencySelectField-Dn9EcyiE-BQIfFGfi.js} +7 -7
  53. package/dist/assets/{CustomerOnboardingActivationPage-S5ljEjEE-Jb-LTm9b.js → CustomerOnboardingActivationPage--C7Nj5oq-JR3YGMUS.js} +2 -2
  54. package/dist/assets/CustomerOnboardingContainerPage-BDHp6tYk-BLNEL0qV.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B-aHwtTV-FqYSR0lJ.js → CustomerOnboardingDetailPageSkeleton-BEldzNUC-BEL3C00x.js} +11 -11
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-D_WXGOKQ-DBupGUX6.js → CustomerOnboardingNoStepsPage-BWPx0oGa-CDRjdq54.js} +4 -4
  57. package/dist/assets/{CustomerOnboardingPage-D3GUyy20-COjJdfeN.js → CustomerOnboardingPage-CQsXgrSi-DMAOHFB2.js} +6 -6
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BcpIczxe-GA6RVDjg.js → CustomerOnboardingProductSuitePage-Ba-hBJDr-D6bzZxGx.js} +4 -4
  59. package/dist/assets/{Dashboard-D19IvfgJ--DOQVvlB.js → Dashboard-D9a8ZSVk-r42V_isI.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-DucQv3ZE-CMnuoHmh.js → DashboardReportPage-DC7almyE-DPo9kVmb.js} +18 -18
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-zEtk_8x9-CJFT1DkV.js → DashboardSidebarBackgroundAnimation-BZPfkv0W-C5DTnalV.js} +3 -3
  62. package/dist/assets/{DepositAccTransactionItem-DG7JaTJY-BCT3hCg7.js → DepositAccTransactionItem-D6Pxnskx-DNWsx-r8.js} +5 -5
  63. package/dist/assets/{DepositAccTransactionListPage-DEDzaAaX-DzTp8c-j.js → DepositAccTransactionListPage-RPv15wO3-g2ti0qw6.js} +2 -2
  64. package/dist/assets/{DomesticWireDetailsPage-DH4keptD-D01iyx2r.js → DomesticWireDetailsPage-C7SMSdym-4FSz7OmR.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DQZd_zyi-B9VMhe_d.js → DownloadOverlay-DSuuIFd2-BOmkiO4Q.js} +18 -18
  66. package/dist/assets/{DrawerPage-CtDNbXHp-C2cmEeEY.js → DrawerPage-G3indLUm-BloVVmDh.js} +12 -12
  67. package/dist/assets/EditPeoplePage-B3OUzvId-mGEO8i8C.js +55 -0
  68. package/dist/assets/{EditReimbursementDetailPage-BxzB9b4R-COHPUQv7.js → EditReimbursementDetailPage-BDtXtGDU-C7db0ozx.js} +51 -51
  69. package/dist/assets/{EntityDetailPage-CuPr64cj-DyxVHR3_.js → EntityDetailPage-Duk7QFjU-4fI6-YD5.js} +3 -3
  70. package/dist/assets/{EntitySummarySection-CX-KbVbj-CNqoxowU.js → EntitySummarySection-Cr7WMJ8D-CxAoWGpH.js} +7 -7
  71. package/dist/assets/{ExpenseAutomationOverviewPage-DRFk1z66-B4CXhi6d.js → ExpenseAutomationOverviewPage-hpARiJiY-Cl3fyuZ_.js} +55 -55
  72. package/dist/assets/{ExpenseAutomationPage-ugq4J-e3-Cq8XKeSo.js → ExpenseAutomationPage-BC5qS_i3-B_dfKUDn.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-DWFyq0OM-Xap9PWuy.js → ExpressPayPage-I-QL4uh--CR8ltLbL.js} +9 -9
  74. package/dist/assets/{FeaturePreviewPage-Bdostf75-Co3kb8i2.js → FeaturePreviewPage-BHb59Q7j-BMGHbQAr.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-CFs_c9UA-C2ivxTgB.js → FollowStepsSection-DONqc9yn-DTdIc25n.js} +9 -9
  76. package/dist/assets/{GlobalReviewListPage-Cw8nJl7r-ucxhv7FU.js → GlobalReviewListPage-BFAgZIJv-pSG93cS5.js} +11 -11
  77. package/dist/assets/{HelpButton-DJeoop_B-BbsNSnSE.js → HelpButton-DoSu6q8h-w0fElDGQ.js} +1 -1
  78. package/dist/assets/{InformationCardStack-DXqbwonQ-D-8qMtbR.js → InformationCardStack-JtvRODJe-BAk9iE1O.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-7JsHAYeW-ug-71Tgc.js → InsightsCardStack-BEceNZZE-_pfKOcnL.js} +9 -9
  80. package/dist/assets/{InsightsSection-BkKqEnbT-p9XkPAwR.js → InsightsSection-KsnkYRQw-CjzvB6rM.js} +5 -5
  81. package/dist/assets/{IntegrationsSettingsPage-DQ_GH1NV-DceBqihU.js → IntegrationsSettingsPage-D4cEY5iJ-Ct8U8ddA.js} +5 -5
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-B6ER7qfQ-Cn8QyFOw.js → InternationalWireSwiftDetailsPage-Tf_vaD2v-Bx9cBAe-.js} +15 -15
  83. package/dist/assets/{InternationalWireVerificationPage-hb0w0-FP-CjYCUXS4.js → InternationalWireVerificationPage-qIIqh0iv-Dla3dOLs.js} +15 -15
  84. package/dist/assets/{InviteFormPage-1dBkKRKs-DciMQTpm.js → InviteFormPage-ByA4uyh2-CUZJDn4x.js} +22 -22
  85. package/dist/assets/{InvitePageListView-DhpXrg6S-iVD2f3Qa.js → InvitePageListView-0_dBCqFt-HjR3qPdd.js} +44 -44
  86. package/dist/assets/{InvitePeoplePage-DrHGaYn6-cG76tknZ.js → InvitePeoplePage-C4d-Ov5z-CPj8BOmp.js} +3 -3
  87. package/dist/assets/InvoiceUploadSection-MEPQPiCt-C4G2s06g.js +140 -0
  88. package/dist/assets/{IssueChargeCardPage-B_O7rJSC-DBAUNHK1.js → IssueChargeCardPage-C77SyJR9-CUKH1f59.js} +21 -21
  89. package/dist/assets/{LabeledAddressValue-DWpOvFnM-MVu54lHC.js → LabeledAddressValue-DKKL0jnt-DbFZZVFw.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-Ca10mEAm-D8rcZ6WA.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-tNAjM4hM-BvgQqmxU.js → LabeledControlledCheckBoxField-BYk2-ixd-B_p740LF.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-yMTUEfLS-toELldV7.js → LabeledCreatableSingleSelectField-DMhTj1GM-Cqe5AURU.js} +2 -2
  93. package/dist/assets/LabeledDocumentField-DX4zVKkz-CS1LiAul.js +41 -0
  94. package/dist/assets/{LabeledDropDownFormattedTextField-Dm1etnU5-C8--qfVi.js → LabeledDropDownFormattedTextField-BoizuD7H-Ce48u3nd.js} +5 -5
  95. package/dist/assets/{LabeledText-BRS0e-dG-BZq4VrX9.js → LabeledText-4NNrEynJ-BDzeNgnU.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Bml1bcSK-BC3kyZqP.js → LabeledUserSingleSelectWithSubtitlesField-DaXDpM0N-DYtP0MFC.js} +10 -10
  97. package/dist/assets/{LabeledZeniRolesDropDownField-l2veUn4k-CULldLpx.js → LabeledZeniRolesDropDownField-zRamZWIQ-oWeJ0wbt.js} +10 -10
  98. package/dist/assets/{LinkJETransactionPage-VtgdRNhL-D7ndfEzz.js → LinkJETransactionPage-FMYLsvT_-IUHBR-RO.js} +5 -5
  99. package/dist/assets/{LowBalancePopup-Dg43FP8p-BLvbua8r.js → LowBalancePopup-Ig5iJGIg-BisR1D9G.js} +4 -4
  100. package/dist/assets/{MagicLinkACHDetailsPage-UfT8yCmX-DOK_VceA.js → MagicLinkACHDetailsPage-Cf-TvH4n-BBkkCR2W.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-Bgwf3qMA-BfpKCTOv.js → MagicLinkDomesticWireDetailsPage-CLJo-rez-MDjP3aI7.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-B9QWmf9B-Dk7a13qP.js → MagicLinkInternationalWireDetailsPage-C-cD6L4u-Z9qBkl5z.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-SjBCvTm5-8jc-eo0M.js → MagicLinkSuccessPage-cJ0PjYEe-DY9yZh-d.js} +1 -1
  104. package/dist/assets/MagicLinkTitleSection-Dc8RKV1p-VRc37nwk.js +17 -0
  105. package/dist/assets/{MailingDetailsSection-Dk8tP8LP-YFImgirq.js → MailingDetailsSection-BD9QWumq-Bo7ZhKA-.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-gebcIIpu-DuyM5Ce0.js → MeetingCalenderPopup-D10SioCO-Sv9k3aJ6.js} +1 -1
  107. package/dist/assets/{Menu-BeDBbRH8-NbbFIuDT.js → Menu-DV3oFAip-BjpENrFA.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-Bp6o9Mts-4X9R_NQE.js → MyBankConnectionsSettingsPage-jrPeCDe3-C_FxZh14.js} +11 -11
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-CEWRTVvz-CijMZlz_.js → MyPendingActivationChargeCardListPage-CpaPeIYq-Ckzf1YTL.js} +1 -1
  110. package/dist/assets/{MyProfileSettingsPage-Dvgp3Ycy-DSUbYEGm.js → MyProfileSettingsPage-DLj2PeG9-d2LNa8rI.js} +10 -10
  111. package/dist/assets/{NavBarWithPicker-XmGu6RQR-C9BXxiKA.js → NavBarWithPicker-CilKdL1D-Z1krBpRG.js} +4 -4
  112. package/dist/assets/{NavigationArrow-DuEUVDwX-DfD0NIdE.js → NavigationArrow-DvGjNVsn-C-QNklxa.js} +1 -1
  113. package/dist/assets/{NavigationDots-BcP-rh-K-DS8oU4Qg.js → NavigationDots-BZNvrGBo-CvNSDZNv.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-CI0ohS8I-DWKnTzMp.js → NewGlobalMerchantPage-D5ESBBO5-CiqJ8Tsp.js} +7 -7
  115. package/dist/assets/{NoDataChart-Cu34Y6fv-CDediDtZ.js → NoDataChart-D9tQhnyu-C94gJNvj.js} +3 -3
  116. package/dist/assets/{NoDataTable-CPWzH0PE-DkDzGQpn.js → NoDataTable-8FGbkVty-RgNhnWfj.js} +1 -1
  117. package/dist/assets/{NotFoundPage-yZOAgP9f-BvtMauqa.js → NotFoundPage-D8qvMFgl-BJxrGtQd.js} +4 -4
  118. package/dist/assets/{NotificationSettingsPage-5bXbyP0i-Dn4CCfRt.js → NotificationSettingsPage-BSJTBlX6-Dh8E-2JN.js} +14 -14
  119. package/dist/assets/{NotificationsListConfig-DINVh9-P-Cr5z8nJ2.js → NotificationsListConfig-EynMAcn9-B66CEzXh.js} +1 -1
  120. package/dist/assets/{NotificationsPage-CKcEU-jy-D9LjSHYu.js → NotificationsPage-d4HJEE7S-DignNo6N.js} +21 -21
  121. package/dist/assets/{OpExByVendorPage-3oQc7n37-ie-HlsGj.js → OpExByVendorPage-CmuEz33W-DHZbqMQl.js} +4 -4
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-c3kkjLHu.js → OverlayContainerPage-Bmu909Fo-BEKpfYXF.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-BPcWHQXd-CtN-h80b.js → PandLWithForecastPage-C7WaIZ8e-AKi0ejYh.js} +11 -11
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-D7JHebDo-BRRsi8Cn.js → PaymentAccountSetupBillingAddressSection-B3m8zs_b-ShdTy6dm.js} +9 -9
  125. package/dist/assets/{PeoplePage-AdCHl8Rj-GGNGd1tU.js → PeoplePage-BN8tiBew-SMy3y22T.js} +33 -33
  126. package/dist/assets/PortfolioAllocationFormPage-BD1u1-Or-BP5X7l75.js +207 -0
  127. package/dist/assets/{PortfolioDetails-DaiiBOps-RHi4PLpn.js → PortfolioDetails-fLO6-kOh-CadDK_zj.js} +14 -14
  128. package/dist/assets/{ProductsCarousel--PIp0Wwx-1HYPMREY.js → ProductsCarousel-RHO5BWU--BaB4l4pQ.js} +3 -3
  129. package/dist/assets/{PromoBaseCards-hEn7m0Ea-Dc9Lc6Jd.js → PromoBaseCards-Bm6GGzhn-7qUEmgGZ.js} +2 -2
  130. package/dist/assets/{QBOConnectionDialog-DByNCCyR-xe7LeSrJ.js → QBOConnectionDialog-Dp_Zkpup-B6ThY6EF.js} +7 -7
  131. package/dist/assets/{QBOSetupSection-NdDTo0GG-op77rVCs.js → QBOSetupSection-C1hBKDG3-D4_IOTse.js} +13 -13
  132. package/dist/assets/ReimbursementApprovalRuleDetailPage-DFUyL8tS-CjazMZUR.js +26 -0
  133. package/dist/assets/{ReimbursementApprovalRulesPage-D13xg5lU-zFGSLUlG.js → ReimbursementApprovalRulesPage-CGb7oMjB-DRxFMpGG.js} +11 -11
  134. package/dist/assets/{ReimbursementDetailPage-1S7-fp6x-Hi7ghCPV.js → ReimbursementDetailPage-ByD43ffh-CS-2jIxA.js} +8 -8
  135. package/dist/assets/{ReimbursementPromoPage-TwSf4vIh-CMdRmwjh.js → ReimbursementPromoPage-CPFAYaW8-Tc6w3wrG.js} +20 -20
  136. package/dist/assets/{ReimbursementSetUpPage-D-g1h8Z7-DKvqAEBO.js → ReimbursementSetUpPage-B_jUtf6N-CH4GgWXW.js} +4 -4
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-nsM0DGyC-BKjafGKk.js → ReimbursementsBulkReviewDrawerPage-DU-QA2n3-CKhaAS5r.js} +1 -1
  138. package/dist/assets/{ReloadCard-K9SGlmus-DZ7vYKCw.js → ReloadCard-HsDGbgTn-BsloOU08.js} +5 -5
  139. package/dist/assets/{ReportTableViewSelector-BVw08xMR-S2k8-vyd.js → ReportTableViewSelector-BzFUam8T-BhACNwXr.js} +6 -6
  140. package/dist/assets/{ReportsPage-DrbFSYgn-Dhzyn189.js → ReportsPage-MQSNDA98-DYJWfk_K.js} +10 -10
  141. package/dist/assets/{RevenueChart-mib92BSo-vb-0BYYz.js → RevenueChart-BzYEiXeP-CL_U7QVF.js} +29 -29
  142. package/dist/assets/{ReviewDetailsPage-C5f_GAjv-rA6jgu-n.js → ReviewDetailsPage-w2tTvIFQ-DFmBHsAk.js} +5 -5
  143. package/dist/assets/ReviewOverlay-DbYrvPld-BPButrhP.js +152 -0
  144. package/dist/assets/{RoleWithToolTip-C5grx1DM-Bhnk8KKY.js → RoleWithToolTip-B_Ivheco-R8i0Qg5c.js} +6 -6
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BfqQFFiq-CwYQjSQh.js → ScheduleDetailsFixedAssetsPage-CSiXckiF-snYrLXiT.js} +8 -8
  146. package/dist/assets/{ScheduleDetailsPage-DkNwuZzq-Dw4BBNuN.js → ScheduleDetailsPage-BUprw9Sk-CY06UcmD.js} +4 -4
  147. package/dist/assets/{ScheduleSequenceTable-CviQlsxi-BixaGSYy.js → ScheduleSequenceTable-DnIgU9m6-CTOQUShp.js} +18 -18
  148. package/dist/assets/{ScreenRoutes-BOEZc6DS.js → ScreenRoutes-Df5fPQoi.js} +1 -1
  149. package/dist/assets/{SetUpAccountSection-d5HPps92-DZbUJeeo.js → SetUpAccountSection-DDxjcjeg-CBwjkDjl.js} +10 -10
  150. package/dist/assets/{SetUpDefaultSection-D1OXPM9M-2zaSn3KY.js → SetUpDefaultSection-BSWh5Hvi-BrKOFekt.js} +14 -14
  151. package/dist/assets/{SignIn-tpfovElQ-C4991EnD.js → SignIn-CImCEnZS-CTfoa2RW.js} +23 -23
  152. package/dist/assets/{SignInScreen-DgNycLfV.js → SignInScreen-DOATVkIe.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-B3t2U-Lq-GWfzNKhc.js → SpendManagementListViewPage-B61K65wh-DBswKLKE.js} +6 -6
  154. package/dist/assets/{SpendManagementPerTabPage-vATAr6zx-sNIcyb2f.js → SpendManagementPerTabPage-Bxo7BTP3-BTpFLD01.js} +11 -11
  155. package/dist/assets/{SpendManagementSection-C8S1zv_Z-D1UddAHC.js → SpendManagementSection-Ddoo9sSg-BrfWcTur.js} +11 -11
  156. package/dist/assets/{SpendMgmtSetupAccountSection-C3n3CKZp-DgPqGmio.js → SpendMgmtSetupAccountSection-GjJmiN01-CfomDHm3.js} +19 -19
  157. package/dist/assets/{StatementItem-C2VaQMdB-GityFkee.js → StatementItem-D_ctLWr0-D0j_MHXQ.js} +5 -5
  158. package/dist/assets/StatementsPage-D1M95WeY-CnAx-9oR.js +58 -0
  159. package/dist/assets/{StatusSwitcher-CI_4NJc0-D3kMd2Ls.js → StatusSwitcher-ZC7lyTov-GCiWQPGY.js} +4 -4
  160. package/dist/assets/{SubTabSwitcher-CKh0fbAL-CZyzUbuM.js → SubTabSwitcher-BNFnbB_T-DaWGnnx_.js} +1 -1
  161. package/dist/assets/{SummaryCard-56XeB7PA-B87JqDih.js → SummaryCard-CSo1L2R4-Biw8Izdi.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-el6vudQA-DkYDl2e-.js → TaskManagementPage-CAcMcS83-D_9dscfp.js} +14 -14
  163. package/dist/assets/{TimeRangeSwitcher-X1sd0HJo-D3i-wisc.js → TimeRangeSwitcher-CNdJhUPl-Lk4TfGUR.js} +5 -5
  164. package/dist/assets/{TimeframeSwitcher-TLcNg_CN-98HiGYj7.js → TimeframeSwitcher-B7t79hiQ-DXBKb0F7.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-Cnlgngu_-BVr6cN7Q.js → TimeframeSwitcherWithToggle-gywVFoaK-CKJ0rtbC.js} +1 -1
  166. package/dist/assets/{TopExCard-BuCdMdGn-DzugoAzP.js → TopExCard-D_LHVo5q-kM42LZ8h.js} +4 -4
  167. package/dist/assets/{TopExDetailPage-DJwK85mY-BLlAa0Mx.js → TopExDetailPage-DuiVBT_3--4JswmJo.js} +13 -13
  168. package/dist/assets/{TransactionDetailPage-fKLOaC53-B4PLnewq.js → TransactionDetailPage-BWbWafDA-BA5tAQ-_.js} +33 -33
  169. package/dist/assets/{TransactionList-vNVcmGH2-B0OTKj50.js → TransactionList-Xd2JupaK-ME3jRgkK.js} +7 -7
  170. package/dist/assets/{TransactionListBig-C_1iHb-m-7xzK-ehO.js → TransactionListBig-CnJaFkxR-rlrfsVcy.js} +19 -19
  171. package/dist/assets/{TransactionListPage-vE1jowuA-CVyTABcH.js → TransactionListPage-DJXFQaro-6w510avL.js} +2 -2
  172. package/dist/assets/{TransactionVendorDetailPage-C9wGiyJs-DnpJgf-D.js → TransactionVendorDetailPage-Yd_VuyUP-3bCwp_zG.js} +4 -4
  173. package/dist/assets/{TransferDrawerPage-6AaaV1fR-CcXij2fb.js → TransferDrawerPage-DAQ23FUW-Zp14Y_jD.js} +27 -27
  174. package/dist/assets/{TreasuryOverviewPage-8z3dgsQ--0GGyt5L1.js → TreasuryOverviewPage-D7PkIffG-CctuefA8.js} +26 -26
  175. package/dist/assets/{TreasuryPromoPage-BRZCU7u0-YXB-IJNp.js → TreasuryPromoPage-BjVUBF-M-CeyEfLuA.js} +33 -33
  176. package/dist/assets/{TreasurySetupPage-BietgoUm-DuvVLyjQ.js → TreasurySetupPage-CTwhrB6V-Bbh2Nemp.js} +5 -5
  177. package/dist/assets/{TreasuryStatementsPage-BrTZ2Tc9-CuYVtjaG.js → TreasuryStatementsPage-jvmgqTxl-bbGSjEnB.js} +3 -3
  178. package/dist/assets/{TreasuryTaxLetterPage-Bm8Kh9ci-D-bqdUc-.js → TreasuryTaxLetterPage-CtKw-_Ab-DpqHDLut.js} +2 -2
  179. package/dist/assets/{TreasuryTransferOrReviewPage-DAsCB5hY-CGMzbTrq.js → TreasuryTransferOrReviewPage-HDfVKjSA-D8yPiIy_.js} +37 -37
  180. package/dist/assets/{TrendChart-CDuKYDbr-Bn9DvEcA.js → TrendChart-BqU6zv7L-wkRyWRpL.js} +4 -4
  181. package/dist/assets/{TrendWithTransactions-CXFGBD3a-COfDIjjP.js → TrendWithTransactions-CbzZEtLk-CdMXYj1c.js} +4 -4
  182. package/dist/assets/{UncategorizedAccountsMappingPage-CZp60Srt-CzRmIywg.js → UncategorizedAccountsMappingPage-BqfWXEzv-Cz9H5I4W.js} +11 -11
  183. package/dist/assets/{UnitIntegrationPage-Bt3BsIP--CS7__SGc.js → UnitIntegrationPage-DOt0PQxi-x_I9Vs5M.js} +4 -4
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-CiKy5Nj7-B-MuYA3T.js → UploadAdditionalDocumentOverlay-DCG_biA8-DwZNYXuq.js} +2 -2
  185. package/dist/assets/{Vendor2FAPopup-mpeQ7vp6-drhI-HQb.js → Vendor2FAPopup-AFJ4ji6z-DAWxFDI5.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-DaH6D39U-CWjco5Dp.js → VendorACHDetailsPage-CMZezqhj-omVFdTVD.js} +1 -1
  187. package/dist/assets/{VendorDetailPage--NEui4cR-CjVNfg_w.js → VendorDetailPage-iMWNwLtE-B5NQ34jt.js} +16 -16
  188. package/dist/assets/{VendorDomesticWireDetailsPage-ZpWio-lR-C61aUqHr.js → VendorDomesticWireDetailsPage-LLQSi6rq-JFMiqG0a.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-BH50orlv-D4s1kmxT.js → VendorFiling1099EditablePage-BFWuxMl8-CXYevD1L.js} +16 -16
  190. package/dist/assets/{VendorFirstReviewPage-F3ufon8s-De09Hv60.js → VendorFirstReviewPage-G_Cr6q5s-qjW-FU9s.js} +18 -18
  191. package/dist/assets/{VendorInternationalWireDetailsPage-BFCRIyx4-lseeqNrB.js → VendorInternationalWireDetailsPage-DReuPGpX-J63QxGJH.js} +10 -10
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Bsw5XWc5-Cxyk29cs.js → VendorInternationalWireSwiftDetailsPage-CmAzQ-7v-D44Jz7aO.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-DyEqMESi-D9e9kicf.js → VendorsAccountsSection-Cjwpb7Ej-Cx7NEKJj.js} +2 -2
  194. package/dist/assets/{VerifyDevice-Cghi40l4-ThU6PIgT.js → VerifyDevice-CvJ2zJdk-DMGMblcz.js} +10 -10
  195. package/dist/assets/{VideoPlayer-BqxR2aZr-C4HSzI7g.js → VideoPlayer-9UKbocWs-CskDssHe.js} +1 -1
  196. package/dist/assets/{VideoPopup-RZCI8_Gx-CwtDMYFf.js → VideoPopup-DfQxE-EQ-DMlN8l45.js} +4 -4
  197. package/dist/assets/{WarningsDrawerPage-ChJqfUoo-C8vzQoCW.js → WarningsDrawerPage-2QsB6DYE-SQ5KLE5P.js} +9 -9
  198. package/dist/assets/{ZeniAccountDetailPage-BVl5QTX2-DcQoIUQu.js → ZeniAccountDetailPage-gFXGgRzS-DY2FypIA.js} +18 -18
  199. package/dist/assets/{ZeniAccountListViewPage-CsAF1Cyb-D_F8pojL.js → ZeniAccountListViewPage-Daboqhbe-C9ys4A5t.js} +12 -12
  200. package/dist/assets/ZeniAccountNavBarPieces-DhpbtWHu-gWttgZ20.js +14 -0
  201. package/dist/assets/{ZeniAccountPromoPage-Bdx-nwJO-CAY8oVsD.js → ZeniAccountPromoPage-Df5MahOc-B26r14Mi.js} +21 -21
  202. package/dist/assets/{ZeniAccountSetupPage-vZ7vjnBw-63QHHhU4.js → ZeniAccountSetupPage-DLlRCOCj-ChweJElI.js} +1 -1
  203. package/dist/assets/{ZeniCopyright-CpkvfVwM-CpIzcf5N.js → ZeniCopyright-D-Z193Re-BzgSGNSq.js} +1 -1
  204. package/dist/assets/ZeniTransferAmountSlider-D8dT_-Hq-BM5AfJxY.js +63 -0
  205. package/dist/assets/{analytics-Dr_Q0qi5.js → analytics-CcevxdRy.js} +19 -19
  206. package/dist/assets/{analyticsHelper-B29pAXmB.js → analyticsHelper-HFa4L7zM.js} +1 -1
  207. package/dist/assets/{analyticsHelper-nzXGHX-f-DDF_mzG5.js → analyticsHelper-c9SRwhe3-rKFHsE9O.js} +1 -1
  208. package/dist/assets/{chartTypes-DJwqK5Pl-BjORIfWQ.js → chartTypes-C2jC2nzT-B64Jl2-O.js} +1 -1
  209. package/dist/assets/{commonDimensions-BI8wHGzb-vF0LFeSK.js → commonDimensions-CtVQ1dPI-BWfVCzLH.js} +1 -1
  210. package/dist/assets/{crypto-Ccg-ICil.js → crypto-CK3r1iTV.js} +1 -1
  211. package/dist/assets/{detailCommon-BqVKB773-C2U67xrp.js → detailCommon-BBImn49A-BK4c1Pxj.js} +6 -6
  212. package/dist/assets/{downloadPdf-BET_DSP9-DmgSWYo3.js → downloadPdf-BvdzZp_S-DQnizCwq.js} +1 -1
  213. package/dist/assets/{index-IgYBqF_x.js → index-DESjn-8d.js} +3503 -3503
  214. package/dist/assets/{mapLoadingInProgressToTreeNode-BrrNGuAc-CqsUk4Uv.js → mapLoadingInProgressToTreeNode-CKsE235C-BIU8Mfd7.js} +1 -1
  215. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Dwov7nU5-BqLpmvIL.js → mapSectionWithAcOnlyToTreeNode-D1DheCOl-DwSkrZHk.js} +1 -1
  216. package/dist/assets/{mapSpacerToTreeNode-CgMaqSi_-CjubQCh8.js → mapSpacerToTreeNode-DkIeEOlL-Pn1zCywK.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-BrNgTlbp-CrsNT2yx.js → mapTimeframeBalancesToTreeNode-BhmM7oKt-BQL5w7UJ.js} +1 -1
  218. package/dist/assets/{mapTimeframeBalancesToTreeNode-Brqz18bN-TNhDDil7.js → mapTimeframeBalancesToTreeNode-Vy-w7j2m-DzRWaem3.js} +1 -1
  219. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-UT-UQHkH-D9cTp9HM.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CGrrLYwc-B0qlbSf3.js} +1 -1
  220. package/dist/assets/{toCOABalancesWithID-CAwHN54Z-Dl4_Ib5c.js → toCOABalancesWithID-BdeWiors-BqeL9v71.js} +1 -1
  221. package/dist/assets/{toChartData-pW2XLZo--pfboHwjV.js → toChartData-BCFss2y_-DT7ekoOJ.js} +1 -1
  222. package/dist/assets/{treasuryColorHelper-CdOoL_vC-BdLikaU-.js → treasuryColorHelper-BJcGoSGt-CBJKPFpW.js} +1 -1
  223. package/dist/assets/{uploadAttachment-nqQ-JycC-9pV7MrnE.js → uploadAttachment-PMsRrXUz-BBJRkZzC.js} +20 -20
  224. package/dist/assets/{uploadReceipts-dxsKhm9I-2_GAIK6m.js → uploadReceipts-dxsKhm9I-Bda3Op9y.js} +1 -1
  225. package/dist/index.html +1 -1
  226. package/package.json +4 -4
  227. package/dist/assets/ACHDetailsPage-DZnFgkJZ-DDsy2m6t.js +0 -21
  228. package/dist/assets/BankAccountWarningSection-BS0dlrJ3-BaiUaE4V.js +0 -51
  229. package/dist/assets/BillDetailPage-CuVdQqQW-IOfqi65V.js +0 -266
  230. package/dist/assets/CardNumberSubText-uxqTFnFX--LrYHxfC.js +0 -21
  231. package/dist/assets/ChargeCardUtils-Bptae9Pt-CYq-MsYY.js +0 -1
  232. package/dist/assets/CustomerOnboardingContainerPage-B8_LR61d-DZh0ZsS1.js +0 -1
  233. package/dist/assets/EditPeoplePage-ZzjDJoTQ-DidkWXNI.js +0 -55
  234. package/dist/assets/InvoiceUploadSection-D79UFJii-FhgETgPb.js +0 -140
  235. package/dist/assets/LabeledAddressValueField-DxW5wUY3-fZGEKDYY.js +0 -45
  236. package/dist/assets/LabeledDocumentField-BQDoGQsy-DjCrwjKi.js +0 -41
  237. package/dist/assets/MagicLinkTitleSection-b4t7XGb8-Bc_IiT_b.js +0 -17
  238. package/dist/assets/PortfolioAllocationFormPage-DJVrByWQ-MfVlBQJr.js +0 -207
  239. package/dist/assets/ReimbursementApprovalRuleDetailPage-CCTo6kvJ-BhsLlWsu.js +0 -26
  240. package/dist/assets/ReviewOverlay-CFgWwm-p-BrjMlpfM.js +0 -152
  241. package/dist/assets/StatementsPage-DD2PvuDv-CJO0D7Zd.js +0 -58
  242. package/dist/assets/ZeniAccountNavBarPieces-BlVvO8S4-Bu0wNDog.js +0 -14
  243. package/dist/assets/ZeniTransferAmountSlider-H-uhh5z4-DVStaopp.js +0 -63
@@ -1,4 +1,4 @@
1
- import{a2 as b,j as t,hl as R,hm as _,e as F,B as O,bV as U,c as C,bX as N,bY as z,a as H,F as M,cj as G,l as T,cf as D,C as g,cg as K,g as A,p as J,m as X,K as Y,o as i,t as Q,q as B,r as Z,ap as ee}from"./index-IgYBqF_x.js";import{b as c,n as f}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(B[3],B[2]),width:new g(300,420,420)},te=f.div`
1
+ import{a2 as b,j as t,hl as R,hm as _,e as F,R as O,bV as N,d as C,bX as U,bY as z,a as M,F as H,cj as G,l as T,cf as D,C as g,cg as Q,f as A,p as J,m as K,Q as X,o as i,y as Y,q as B,r as Z,ap as ee}from"./index-DESjn-8d.js";import{b as c,n as f}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(B[3],B[2]),width:new g(300,420,420)},te=f.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -12,11 +12,11 @@ import{a2 as b,j as t,hl as R,hm as _,e as F,B as O,bV as U,c as C,bX as N,bY as
12
12
  background-color: ${e=>e.theme.colors.grey3};
13
13
  min-height: 1px;
14
14
  max-height: 1px;
15
- `;function se({selectedIndustry:e,allIndustries:l,saveDetailsFetchState:o,incDate:n,onSubmitBusinessInfo:u,onCancel:s}){const{companyPassport:a,dateFormat:m,commonSetUp:{twoFactorAuthentication:d}}=O.getLocalizedStrings(),k=d.businessInfoTitle,I=d.businessInfoDescription,p=F(),v="business-info-form",x="companyIndustry",w="incDate",h=H({mode:"all",values:{[x]:{selectedOption:e,allOptions:l.map(r=>r.code)},[w]:n?.toDate()}}),$=h.handleSubmit(r=>{u?.(r[x].selectedOption??"",r[w])}),S=r=>l.find(y=>y.code===r)?.name??r;return t.jsx(M,{...h,children:t.jsx("form",{id:v,onSubmit:$,children:t.jsx(U,{formId:v,titleComponent:t.jsx(z,{children:k}),descriptionComponent:t.jsx(N,{children:I}),primaryButtonText:d.submit,secondaryButtonText:d.cancel,isLoading:o==="In-Progress",isEditPopup:!0,action:{onOkClick:()=>console.log(""),onCancelClick:s},children:t.jsxs(te,{windowSize:p,children:[t.jsx(G,{label:{label:a.companyIncInfo.incDate,width:V.labelWidth.value(p)},style:{paddingBottom:V.paddingBottom.valuePx(p),width:V.width.valuePx(p)},dateField:{name:w,placeholder:D(a.companyIncInfo.incDate),defaultValue:n,dateFormat:m.visual.defaultInput,maxDate:T.dateNow(),minDate:T.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:!0}},additionalInfoLabel:d.requireIncDate}),t.jsx(ie,{}),t.jsx(K,{label:{label:a.companyInfo.industry,width:V.smallLabelWidth.value(p)},style:{width:V.width.valuePx(p)},singleSelectField:{singleSelect:{getLabelForId:S,showTickMark:!1,alwaysShowEyeTooltip:!1,name:x,placeholder:D(a.companyInfo.industry),showValueEyeIcon:!1,showEyeIconOnSelect:!1},defaultValue:{selectedOption:e,allOptions:l?.map(r=>r.code)??[]},registerOptions:{required:!0,validate:r=>!!(r!=null&&r.selectedOption)}},errorInfoLabel:d.requireIndustry,isFunctional:!0})]})})})})}const ne=f(Q)`
15
+ `;function se({selectedIndustry:e,allIndustries:l,saveDetailsFetchState:o,incDate:n,onSubmitBusinessInfo:u,onCancel:s}){const{companyPassport:a,dateFormat:m,commonSetUp:{twoFactorAuthentication:d}}=O.getLocalizedStrings(),k=d.businessInfoTitle,I=d.businessInfoDescription,p=F(),v="business-info-form",x="companyIndustry",w="incDate",h=M({mode:"all",values:{[x]:{selectedOption:e,allOptions:l.map(r=>r.code)},[w]:n?.toDate()}}),$=h.handleSubmit(r=>{u?.(r[x].selectedOption??"",r[w])}),S=r=>l.find(y=>y.code===r)?.name??r;return t.jsx(H,{...h,children:t.jsx("form",{id:v,onSubmit:$,children:t.jsx(N,{formId:v,titleComponent:t.jsx(z,{children:k}),descriptionComponent:t.jsx(U,{children:I}),primaryButtonText:d.submit,secondaryButtonText:d.cancel,isLoading:o==="In-Progress",isEditPopup:!0,action:{onOkClick:()=>console.log(""),onCancelClick:s},children:t.jsxs(te,{windowSize:p,children:[t.jsx(G,{label:{label:a.companyIncInfo.incDate,width:V.labelWidth.value(p)},style:{paddingBottom:V.paddingBottom.valuePx(p),width:V.width.valuePx(p)},dateField:{name:w,placeholder:D(a.companyIncInfo.incDate),defaultValue:n,dateFormat:m.visual.defaultInput,maxDate:T.dateNow(),minDate:T.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:!0}},additionalInfoLabel:d.requireIncDate}),t.jsx(ie,{}),t.jsx(Q,{label:{label:a.companyInfo.industry,width:V.smallLabelWidth.value(p)},style:{width:V.width.valuePx(p)},singleSelectField:{singleSelect:{getLabelForId:S,showTickMark:!1,alwaysShowEyeTooltip:!1,name:x,placeholder:D(a.companyInfo.industry),showValueEyeIcon:!1,showEyeIconOnSelect:!1},defaultValue:{selectedOption:e,allOptions:l?.map(r=>r.code)??[]},registerOptions:{required:!0,validate:r=>!!(r!=null&&r.selectedOption)}},errorInfoLabel:d.requireIndustry,isFunctional:!0})]})})})})}const ne=f(Y)`
16
16
  color: ${e=>e.theme.colors.hero};
17
17
  padding: 9px;
18
18
  margin: ${e=>e.windowSize==="small"?`${i.sp0} ${i.sp3} ${i.sp7} ${i.sp3}`:`${i.sp0} ${i.sp8} ${i.sp7} ${i.sp8}`};
19
- `,oe=({isBillPayAdminLevelAccess:e,acceptUpdatedTOSFetchState:l,onBackClick:o,onAcceptUpdatedTOS:n})=>{const u=F(),s=O.getLocalizedStrings().commonSetUp,a=e===!0?s.twoFactorAuthentication.termsUpdated:s.twoFactorAuthentication.accessRestricted,m=e===!0?"":s.twoFactorAuthentication.description;return t.jsx(U,{titleComponent:t.jsx(z,{children:a}),descriptionComponent:t.jsx(N,{children:m}),primaryButtonText:e===!0?s.twoFactorAuthentication.iAgree:s.twoFactorAuthentication.understood,isLoading:l?.fetchState==="In-Progress",isEditPopup:!0,action:{onOkClick:()=>{e===!0?n?.():o?.()}},primaryButtonWidth:e===!1?116:void 0,secondaryButtonWidth:e===!1?116:void 0,children:e===!0?t.jsxs(ne,{windowSize:u,children:[s.businessVerification.terms.term6,t.jsx(C,{href:s.businessVerification.terms.consentUrl,linkText:s.businessVerification.terms.consent}),s.businessVerification.terms.term2,t.jsx(C,{href:s.businessVerification.terms.depositUrl,linkText:s.businessVerification.terms.depositTerms}),s.businessVerification.terms.term3,t.jsx(C,{href:s.businessVerification.terms.privacyPolicyUrl,linkText:s.businessVerification.terms.privacy}),s.businessVerification.terms.term4,t.jsx(C,{href:s.businessVerification.terms.tosUrl,linkText:s.businessVerification.terms.tos}),s.businessVerification.terms.term5]}):null})},E={largeWidth:new g(343,544,544),height:new g(366,366,366)},re=f.div`
19
+ `,oe=({isBillPayAdminLevelAccess:e,acceptUpdatedTOSFetchState:l,onBackClick:o,onAcceptUpdatedTOS:n})=>{const u=F(),s=O.getLocalizedStrings().commonSetUp,a=e===!0?s.twoFactorAuthentication.termsUpdated:s.twoFactorAuthentication.accessRestricted,m=e===!0?"":s.twoFactorAuthentication.description;return t.jsx(N,{titleComponent:t.jsx(z,{children:a}),descriptionComponent:t.jsx(U,{children:m}),primaryButtonText:e===!0?s.twoFactorAuthentication.iAgree:s.twoFactorAuthentication.understood,isLoading:l?.fetchState==="In-Progress",isEditPopup:!0,action:{onOkClick:()=>{e===!0?n?.():o?.()}},primaryButtonWidth:e===!1?116:void 0,secondaryButtonWidth:e===!1?116:void 0,children:e===!0?t.jsxs(ne,{windowSize:u,children:[s.businessVerification.terms.term6,t.jsx(C,{href:s.businessVerification.terms.consentUrl,linkText:s.businessVerification.terms.consent}),s.businessVerification.terms.term2,t.jsx(C,{href:s.businessVerification.terms.depositUrl,linkText:s.businessVerification.terms.depositTerms}),s.businessVerification.terms.term3,t.jsx(C,{href:s.businessVerification.terms.privacyPolicyUrl,linkText:s.businessVerification.terms.privacy}),s.businessVerification.terms.term4,t.jsx(C,{href:s.businessVerification.terms.tosUrl,linkText:s.businessVerification.terms.tos}),s.businessVerification.terms.term5]}):null})},E={largeWidth:new g(343,544,544),height:new g(366,366,366)},re=f.div`
20
20
  position: fixed;
21
21
  top: 0;
22
22
  left: 0;
@@ -64,4 +64,4 @@ import{a2 as b,j as t,hl as R,hm as _,e as F,B as O,bV as U,c as C,bX as N,bY as
64
64
  padding-top: ${i.sp3};
65
65
  position: absolute;
66
66
  bottom: 0;
67
- `;function de(e){const l=F(),o=O.getLocalizedStrings().commonSetUp.twoFactorAuthentication,n=e.businessVerificationSubmitState!=="In-Progress"&&(e.businessVerificationSubmitState==="Error"||e.businessVerificationStatus==="require_info"||e.businessVerificationStatus==null),u=n===!0?o.verificationFailed:o.verificationInProgress,s=n===!0?o.verificationError:e.businessVerificationSubmitState==="In-Progress"?"":o.submissionSuccessful,a=n?o.goToSettings:o.understood,m=()=>{n?e.action.onNavigateToSettings():e.action.onBackClick()};return t.jsx(re,{windowSize:l,role:"presentation",style:{background:A.overlayDark,...e.style},children:t.jsx(J,{onClickAway:()=>e.action.onCancelClick?.(),children:t.jsxs(ae,{windowSize:l,isEditPopup:!1,children:[t.jsx(ce,{isError:n,children:u}),s!==""?t.jsx(le,{children:s}):null,e.businessVerificationSubmitState==="In-Progress"?t.jsx(X,{size:"Standard",start:!0,style:{marginTop:84}}):null,e.businessVerificationSubmitState!=="In-Progress"?t.jsxs(t.Fragment,{children:[t.jsx(ue,{}),t.jsx(L,{children:t.jsx(Y,{variant:e.proceedButtonVariant??"primary",label:a,onClick:m,style:{width:134,whiteSpace:"nowrap"},loading:e.isLoading})})]}):t.jsx(L,{})]})})})}const ye=e=>{const{isUnitMigrationTOSRequired:l,isUnitMigrationRequired:o,officer:n,setupDetailsFetchState:u,onVerifyOtpSuccess:s}=e,a=b(e.setupDetailsFetchState),m=b(e.acceptUpdatedTOSFetchState.fetchState),d=b(n?.otpverificationStatus?.fetchState),k=b(e.businessVerificationSubmitState),I=b(e.businessVerificationStatus),p=b(e.officer?.sendOtpStatus.fetchState),[v,x]=c.useState(l===!0),[w,h]=c.useState(e.isListPage&&u==="Completed"&&(e.businessVerificationStatus==null||e.businessVerificationStatus==="pending_review"||e.businessVerificationStatus==="require_info")),[$,S]=c.useState(n?.isPhoneVerified===!1),[r,y]=c.useState(!1),[q,j]=c.useState(e.isNewCompanyIndustryVerified!==!0||e.incDate==null);return c.useEffect(()=>{m==="In-Progress"&&e.acceptUpdatedTOSFetchState?.fetchState==="Completed"&&(n?.isPhoneVerified===!1?S(!0):(e.isNewCompanyIndustryVerified!==!0||e.incDate==null)&&j(!0),x(!1))},[m,e.acceptUpdatedTOSFetchState,n,e.isNewCompanyIndustryVerified,e.incDate]),c.useEffect(()=>{d==="In-Progress"&&n?.otpverificationStatus?.fetchState==="Completed"&&(s?.(n?.officerType,n?.phone+""),e.isNewCompanyIndustryVerified!==!0||e.incDate==null?j(!0):h(!0),y(!1))},[d,s,n,e.isNewCompanyIndustryVerified,e.incDate]),c.useEffect(()=>{!e.isListPage&&k==="In-Progress"&&(e.businessVerificationSubmitState==="Completed"||e.businessVerificationSubmitState==="Error")&&h(!1)},[k,e.businessVerificationSubmitState,e.isListPage]),c.useEffect(()=>{I==="pending_review"&&e.businessVerificationStatus==="verified"&&h(!1)},[I,e.businessVerificationStatus]),c.useEffect(()=>{a==="In-Progress"&&u==="Completed"&&(n?.isPhoneVerified===!1&&S(!0),e.isListPage&&(e.businessVerificationStatus==null||e.businessVerificationStatus==="pending_review"||e.businessVerificationStatus==="require_info")&&h(!0))},[a,u,n,e.businessVerificationStatus,e.isListPage]),c.useEffect(()=>{p==="In-Progress"&&e.officer?.sendOtpStatus.fetchState==="Completed"&&(y(!0),S(!1))},[p,e.officer?.sendOtpStatus]),t.jsx(t.Fragment,{children:v===!0?t.jsx(oe,{...e}):o===!0&&r===!0?t.jsx(R,{showHelperText:!0,verifyOtpFetchState:e.officer?.otpverificationStatus.fetchState??"Not-Started",phoneNumber:e.officer?.phone??"",otpChallenge:e.officer?.otpChallenge,action:{onVerifyClick:e.onVerifyOtp,onCancelClick:()=>e.onBackClick(),onResendOtp:e.onResendOtp,onEditButtonClick:()=>{S(!0),y(!1)}}}):o===!0&&$===!0?t.jsx(_,{showHelperText:!0,phoneNumber:e.officer?.phone??"",sendOtpFetchState:e.officer?.sendOtpStatus.fetchState??"Not-Started",action:{onCancelClick:e.onBackClick,onGetCodeClick:P=>e.onGetOtp?.(P,e.officer?.officerType)}}):o===!0&&q===!0?t.jsx(se,{incDate:e.incDate,allIndustries:e.allIndustries??[],selectedIndustry:e.companyIndustry,saveDetailsFetchState:e.companyDetailsSaveState,onCancel:e.onBackClick,onSubmitBusinessInfo:(P,W)=>{e.officer!=null&&h(!0),e.onSubmitBusinessInfo?.(P,W,n?.officerType),j(!1)}}):w===!0?t.jsx(de,{businessVerificationStatus:e.businessVerificationStatus,businessVerificationSubmitState:e.businessVerificationSubmitState,action:{onNavigateToSettings:e.onNavigateToSettings,onBackClick:e.onBackClick}}):null})};export{ye as default};
67
+ `;function de(e){const l=F(),o=O.getLocalizedStrings().commonSetUp.twoFactorAuthentication,n=e.businessVerificationSubmitState!=="In-Progress"&&(e.businessVerificationSubmitState==="Error"||e.businessVerificationStatus==="require_info"||e.businessVerificationStatus==null),u=n===!0?o.verificationFailed:o.verificationInProgress,s=n===!0?o.verificationError:e.businessVerificationSubmitState==="In-Progress"?"":o.submissionSuccessful,a=n?o.goToSettings:o.understood,m=()=>{n?e.action.onNavigateToSettings():e.action.onBackClick()};return t.jsx(re,{windowSize:l,role:"presentation",style:{background:A.overlayDark,...e.style},children:t.jsx(J,{onClickAway:()=>e.action.onCancelClick?.(),children:t.jsxs(ae,{windowSize:l,isEditPopup:!1,children:[t.jsx(ce,{isError:n,children:u}),s!==""?t.jsx(le,{children:s}):null,e.businessVerificationSubmitState==="In-Progress"?t.jsx(K,{size:"Standard",start:!0,style:{marginTop:84}}):null,e.businessVerificationSubmitState!=="In-Progress"?t.jsxs(t.Fragment,{children:[t.jsx(ue,{}),t.jsx(L,{children:t.jsx(X,{variant:e.proceedButtonVariant??"primary",label:a,onClick:m,style:{width:134,whiteSpace:"nowrap"},loading:e.isLoading})})]}):t.jsx(L,{})]})})})}const ye=e=>{const{isUnitMigrationTOSRequired:l,isUnitMigrationRequired:o,officer:n,setupDetailsFetchState:u,onVerifyOtpSuccess:s}=e,a=b(e.setupDetailsFetchState),m=b(e.acceptUpdatedTOSFetchState.fetchState),d=b(n?.otpverificationStatus?.fetchState),k=b(e.businessVerificationSubmitState),I=b(e.businessVerificationStatus),p=b(e.officer?.sendOtpStatus.fetchState),[v,x]=c.useState(l===!0),[w,h]=c.useState(e.isListPage&&u==="Completed"&&(e.businessVerificationStatus==null||e.businessVerificationStatus==="pending_review"||e.businessVerificationStatus==="require_info")),[$,S]=c.useState(n?.isPhoneVerified===!1),[r,y]=c.useState(!1),[q,j]=c.useState(e.isNewCompanyIndustryVerified!==!0||e.incDate==null);return c.useEffect(()=>{m==="In-Progress"&&e.acceptUpdatedTOSFetchState?.fetchState==="Completed"&&(n?.isPhoneVerified===!1?S(!0):(e.isNewCompanyIndustryVerified!==!0||e.incDate==null)&&j(!0),x(!1))},[m,e.acceptUpdatedTOSFetchState,n,e.isNewCompanyIndustryVerified,e.incDate]),c.useEffect(()=>{d==="In-Progress"&&n?.otpverificationStatus?.fetchState==="Completed"&&(s?.(n?.officerType,n?.phone+""),e.isNewCompanyIndustryVerified!==!0||e.incDate==null?j(!0):h(!0),y(!1))},[d,s,n,e.isNewCompanyIndustryVerified,e.incDate]),c.useEffect(()=>{!e.isListPage&&k==="In-Progress"&&(e.businessVerificationSubmitState==="Completed"||e.businessVerificationSubmitState==="Error")&&h(!1)},[k,e.businessVerificationSubmitState,e.isListPage]),c.useEffect(()=>{I==="pending_review"&&e.businessVerificationStatus==="verified"&&h(!1)},[I,e.businessVerificationStatus]),c.useEffect(()=>{a==="In-Progress"&&u==="Completed"&&(n?.isPhoneVerified===!1&&S(!0),e.isListPage&&(e.businessVerificationStatus==null||e.businessVerificationStatus==="pending_review"||e.businessVerificationStatus==="require_info")&&h(!0))},[a,u,n,e.businessVerificationStatus,e.isListPage]),c.useEffect(()=>{p==="In-Progress"&&e.officer?.sendOtpStatus.fetchState==="Completed"&&(y(!0),S(!1))},[p,e.officer?.sendOtpStatus]),t.jsx(t.Fragment,{children:v===!0?t.jsx(oe,{...e}):o===!0&&r===!0?t.jsx(R,{showHelperText:!0,verifyOtpFetchState:e.officer?.otpverificationStatus.fetchState??"Not-Started",phoneNumber:e.officer?.phone??"",otpChallenge:e.officer?.otpChallenge,action:{onVerifyClick:e.onVerifyOtp,onCancelClick:()=>e.onBackClick(),onResendOtp:e.onResendOtp,onEditButtonClick:()=>{S(!0),y(!1)}}}):o===!0&&$===!0?t.jsx(_,{showHelperText:!0,phoneNumber:e.officer?.phone??"",sendOtpFetchState:e.officer?.sendOtpStatus.fetchState??"Not-Started",action:{onCancelClick:e.onBackClick,onGetCodeClick:P=>e.onGetOtp?.(P,e.officer?.officerType)}}):o===!0&&q===!0?t.jsx(se,{incDate:e.incDate,allIndustries:e.allIndustries??[],selectedIndustry:e.companyIndustry,saveDetailsFetchState:e.companyDetailsSaveState,onCancel:e.onBackClick,onSubmitBusinessInfo:(P,W)=>{e.officer!=null&&h(!0),e.onSubmitBusinessInfo?.(P,W,n?.officerType),j(!1)}}):w===!0?t.jsx(de,{businessVerificationStatus:e.businessVerificationStatus,businessVerificationSubmitState:e.businessVerificationSubmitState,action:{onNavigateToSettings:e.onNavigateToSettings,onBackClick:e.onBackClick}}):null})};export{ye as default};
@@ -1,4 +1,4 @@
1
- import{a as M,fh as x,a2 as U,l as q,e as A,B as W,j as i,ca as _,F as G,$ as Q,fi as H,o as a,g as J,ck as K,a4 as X,C as y,a3 as Y,c7 as Z,ap as ee,ao as te,q as c}from"./index-IgYBqF_x.js";import{b as m,n as l}from"./vendor-rkTZJa59.js";const F={marginRight:new y(c[3],c[8]),marginLeft:new y(c[3],c[8]),height:new y(c[5],62)},u="additionalDocumentsForm",s="ssnCard";function ue(e){const{filesEndPoint:w,authParams:E,companyOfficer:t,updateStatus:f,onClose:$,onEditFileName:I,onDeleteFile:v,updateFilesEntity:D,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=M({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[z,S]=m.useState(!1),[N,B]=m.useState(!1),b=U(f.fetchState),j=t?.deleteFileStatusById??{},O=t?.updateFileStatusById??{},T=Object.values(j??{}).filter(o=>o!=null),L=q.reduceAllFetchState(T);m.useEffect(()=>{b==="In-Progress"&&f.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}})},[b,f,n,t?.additionalFiles]);const r=A(),h=W.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,k=n.handleSubmit(()=>{L.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),R=async(o,p)=>{const d=p[u].front;o.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),S(!0)):S(!1)};return m.useEffect(()=>{const o=n.watch((p,{name:d})=>{d!=null&&p!=null&&_(()=>R(d,p))});return()=>{o.unsubscribe()}}),i.jsx(G,{...n,children:i.jsxs("form",{id:u,onSubmit:k,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:$,"data-testid":Q("upload-additional-documents-close",u)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(le,{children:i.jsx(se,{children:V})}),i.jsx(H,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:K,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${J.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:x(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:O,filesEndPoint:w,authParams:E,hasError:N,onEditFileName:I,onDeleteFile:v,updateFilesEntity:D,onFileSizeError:o=>B(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),z?i.jsx(X,{formId:u,primaryBtn:{label:h.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:f.fetchState==="In-Progress"},cancelBtn:{label:h.cancel,style:{width:r==="small"?"auto":"181px"},onClick:$},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Z)`
1
+ import{a as M,fh as x,a2 as U,l as W,e as q,R as A,j as i,ca as _,F as G,W as Q,fi as H,o as a,f as J,ck as K,a4 as X,C as y,a3 as Y,c7 as Z,ap as ee,ao as te,q as c}from"./index-DESjn-8d.js";import{b as m,n as l}from"./vendor-rkTZJa59.js";const F={marginRight:new y(c[3],c[8]),marginLeft:new y(c[3],c[8]),height:new y(c[5],62)},f="additionalDocumentsForm",s="ssnCard";function fe(e){const{filesEndPoint:w,authParams:E,companyOfficer:t,updateStatus:u,onClose:S,onEditFileName:v,onDeleteFile:I,updateFilesEntity:D,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=M({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[z,$]=m.useState(!1),[N,O]=m.useState(!1),b=U(u.fetchState),j=t?.deleteFileStatusById??{},B=t?.updateFileStatusById??{},T=Object.values(j??{}).filter(o=>o!=null),L=W.reduceAllFetchState(T);m.useEffect(()=>{b==="In-Progress"&&u.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}})},[b,u,n,t?.additionalFiles]);const r=q(),h=A.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,R=n.handleSubmit(()=>{L.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),k=async(o,p)=>{const d=p[f].front;o.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),$(!0)):$(!1)};return m.useEffect(()=>{const o=n.watch((p,{name:d})=>{d!=null&&p!=null&&_(()=>k(d,p))});return()=>{o.unsubscribe()}}),i.jsx(G,{...n,children:i.jsxs("form",{id:f,onSubmit:R,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:S,"data-testid":Q("upload-additional-documents-close",f)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(le,{children:i.jsx(se,{children:V})}),i.jsx(H,{name:f,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:K,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${J.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:x(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:B,filesEndPoint:w,authParams:E,hasError:N,onEditFileName:v,onDeleteFile:I,updateFilesEntity:D,onFileSizeError:o=>O(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),z?i.jsx(X,{formId:f,primaryBtn:{label:h.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:u.fetchState==="In-Progress"},cancelBtn:{label:h.cancel,style:{width:r==="small"?"auto":"181px"},onClick:S},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Z)`
2
2
  margin-top: 19px;
3
3
  color: ${e=>e.theme.colors.primary};
4
4
  margin-bottom: ${a.sp2};
@@ -35,4 +35,4 @@ import{a as M,fh as x,a2 as U,l as q,e as A,B as W,j as i,ca as _,F as G,$ as Q,
35
35
  display: flex;
36
36
  flex-direction: column;
37
37
  justify-content: center;
38
- `;export{ue as g};
38
+ `;export{fe as g};
@@ -1 +1 @@
1
- import{a2 as o,B as v,j as i,hl as y,hm as b}from"./index-IgYBqF_x.js";import{b as e}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const B=({vendorViewDetails:S,isExpressPayPage:n,onSaveVendor:l,onGetOtp:h,onResendOtp:d,onVerifyOtp:m,onVerifyOtpSuccess:c})=>{const{loggedInUserVerification:t,editVendorState:g,newVendorState:V}=S,r=Object.assign({},g??V),[C,s]=e.useState(!1),[O,a]=e.useState(t.initiateVerification===!0),p=o(r?.saveStatus?.fetchState),x=o(t.userVerificationStatus.fetchState),f=o(t.otpVerificationStatus?.fetchState),u=o(t.sendOtpStatus.fetchState),E=v.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return e.useEffect(()=>{p==="In-Progress"&&r?.saveStatus?.fetchState==="Error"&&t.initiateVerification===!0&&a(!0)},[r,t,p]),e.useEffect(()=>{x==="In-Progress"&&t.userVerificationStatus.fetchState==="Completed"&&(s(!1),l())},[t.userVerificationStatus]),e.useEffect(()=>{f==="In-Progress"&&t.otpVerificationStatus?.fetchState==="Completed"&&c?.(t.userId??"",t.phone??"",t.otpChallenge??"")},[f,t,c]),e.useEffect(()=>{u==="In-Progress"&&t.sendOtpStatus.fetchState==="Completed"&&(s(!0),a(!1))},[u,t.sendOtpStatus.fetchState]),i.jsx(i.Fragment,{children:C===!0?i.jsx(y,{showHelperText:!n,verifyOtpFetchState:t.otpVerificationStatus.fetchState,phoneNumber:t.phone??"",otpChallenge:t.otpChallenge,action:{onVerifyClick:m,onCancelClick:()=>s(!1),onResendOtp:d,onEditButtonClick:()=>{a(!0),s(!1)}}}):O===!0?i.jsx(b,{showHelperText:!n,phoneNumber:t.phone??"",sendOtpFetchState:t.sendOtpStatus.fetchState,description:n?E:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:P=>h?.(P)}}):null})};export{B as default};
1
+ import{a2 as o,R as v,j as i,hl as y,hm as b}from"./index-DESjn-8d.js";import{b as e}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const H=({vendorViewDetails:S,isExpressPayPage:n,onSaveVendor:l,onGetOtp:h,onResendOtp:d,onVerifyOtp:m,onVerifyOtpSuccess:c})=>{const{loggedInUserVerification:t,editVendorState:V,newVendorState:g}=S,r=Object.assign({},V??g),[C,s]=e.useState(!1),[O,a]=e.useState(t.initiateVerification===!0),p=o(r?.saveStatus?.fetchState),x=o(t.userVerificationStatus.fetchState),f=o(t.otpVerificationStatus?.fetchState),u=o(t.sendOtpStatus.fetchState),E=v.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return e.useEffect(()=>{p==="In-Progress"&&r?.saveStatus?.fetchState==="Error"&&t.initiateVerification===!0&&a(!0)},[r,t,p]),e.useEffect(()=>{x==="In-Progress"&&t.userVerificationStatus.fetchState==="Completed"&&(s(!1),l())},[t.userVerificationStatus]),e.useEffect(()=>{f==="In-Progress"&&t.otpVerificationStatus?.fetchState==="Completed"&&c?.(t.userId??"",t.phone??"",t.otpChallenge??"")},[f,t,c]),e.useEffect(()=>{u==="In-Progress"&&t.sendOtpStatus.fetchState==="Completed"&&(s(!0),a(!1))},[u,t.sendOtpStatus.fetchState]),i.jsx(i.Fragment,{children:C===!0?i.jsx(y,{showHelperText:!n,verifyOtpFetchState:t.otpVerificationStatus.fetchState,phoneNumber:t.phone??"",otpChallenge:t.otpChallenge,action:{onVerifyClick:m,onCancelClick:()=>s(!1),onResendOtp:d,onEditButtonClick:()=>{a(!0),s(!1)}}}):O===!0?i.jsx(b,{showHelperText:!n,phoneNumber:t.phone??"",sendOtpFetchState:t.sendOtpStatus.fetchState,description:n?E:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:P=>h?.(P)}}):null})};export{H as default};
@@ -1 +1 @@
1
- import{j as u}from"./index-IgYBqF_x.js";import{b as d}from"./vendor-rkTZJa59.js";import{f as k}from"./ACHDetailsPage-DZnFgkJZ-DDsy2m6t.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./BankAccountWarningSection-BS0dlrJ3-BaiUaE4V.js";import"./MagicLinkTitleSection-b4t7XGb8-Bc_IiT_b.js";import"./BankAccountSection-BSpqPLea-DnHvULrV.js";const R=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})=>{const{bankAccountCreationState:o,bankNameByRouting:c,bankAccountToCreate:m,fetchBankNameByRoutingStatus:p}=t;return d.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),u.jsx(k,{bankAccountToCreate:m,bankAccountCreationState:o,bankNameByRouting:c,fetchBankNameByRoutingStatus:p,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})};export{R as default};
1
+ import{j as u}from"./index-DESjn-8d.js";import{b as d}from"./vendor-rkTZJa59.js";import{f as k}from"./ACHDetailsPage-C0Ys2JJm-CSmQeh3x.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./BankAccountWarningSection-HW7t6lPN-CXdJbZl-.js";import"./MagicLinkTitleSection-Dc8RKV1p-VRc37nwk.js";import"./BankAccountSection-8JPKANMP-DuTpIyau.js";const R=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})=>{const{bankAccountCreationState:o,bankNameByRouting:c,bankAccountToCreate:m,fetchBankNameByRoutingStatus:p}=t;return d.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),u.jsx(k,{bankAccountToCreate:m,bankAccountCreationState:o,bankNameByRouting:c,fetchBankNameByRoutingStatus:p,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})};export{R as default};
@@ -1,4 +1,4 @@
1
- import{B as N,u as Re,e as ne,C as g,O as fe,l as se,cc as xt,a as yt,gB as Be,gC as Ae,gD as Ee,gE as be,gF as ft,a8 as bt,ca as wt,j as t,aX as Ct,F as $t,gG as St,gH as ue,q as l,cb as Dt,a4 as jt,o,bh as S,cn as Lt,gf as we,gI as Tt,cd as Vt,ce as kt,cf as Ot,gJ as It,fL as Pt,cl as Ft,gK as zt,gL as Mt,g as M,dr as Nt,dq as _t,cz as Wt,ab as de,am as Ue,w as qe,ds as Ht,af as Rt,gM as Bt,gN as At,t as Et,gO as Ut,bO as Ye,gP as qt,J as Ce,y as Je}from"./index-IgYBqF_x.js";import{b as $,n as a,j as Yt}from"./vendor-rkTZJa59.js";import{k as Jt}from"./SubTabSwitcher-CKh0fbAL-CZyzUbuM.js";import{f as Gt}from"./TransactionList-vNVcmGH2-B0OTKj50.js";import{R as Qt}from"./TrendWithTransactions-CXFGBD3a-COfDIjjP.js";import{o as Xt,t as Kt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import{C as Zt}from"./LabeledAddressValueField-DxW5wUY3-fZGEKDYY.js";import{Y as es}from"./LabeledDropDownFormattedTextField-Dm1etnU5-C8--qfVi.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./BoxItem-BebxqupW-BdoD_mmi.js";import"./commonDimensions-BI8wHGzb-vF0LFeSK.js";import"./TrendChart-CDuKYDbr-Bn9DvEcA.js";import"./chartTypes-DJwqK5Pl-BjORIfWQ.js";import"./toCOABalancesWithID-CAwHN54Z-Dl4_Ib5c.js";import"./toChartData-pW2XLZo--pfboHwjV.js";import"./NoDataChart-Cu34Y6fv-CDediDtZ.js";import"./InsightsSection-BkKqEnbT-p9XkPAwR.js";import"./NavigationDots-BcP-rh-K-DS8oU4Qg.js";const ts=a.div`
1
+ import{R as N,u as Re,e as ne,C as g,J as fe,l as se,cc as xt,a as yt,gB as Be,gC as Ae,gD as Ee,gE as be,gF as ft,a8 as bt,ca as wt,j as t,aX as Ct,F as $t,gG as St,gH as ue,q as l,cb as Dt,a4 as jt,o,bh as S,cn as Tt,gf as we,gI as Lt,cd as Vt,ce as kt,cf as Ot,gJ as It,fL as Pt,cl as zt,gK as Ft,gL as Mt,f as M,dr as Nt,dq as _t,cz as Wt,ab as de,am as qe,w as Ue,ds as Ht,af as Rt,gM as Bt,gN as At,y as Et,gO as qt,bO as Ye,gP as Ut,X as Ce,g as Xe}from"./index-DESjn-8d.js";import{b as $,n as a,j as Yt}from"./vendor-rkTZJa59.js";import{k as Xt}from"./SubTabSwitcher-BNFnbB_T-DaWGnnx_.js";import{f as Gt}from"./TransactionList-Xd2JupaK-ME3jRgkK.js";import{R as Jt}from"./TrendWithTransactions-CbzZEtLk-CdMXYj1c.js";import{o as Qt,t as Kt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import{C as Zt}from"./LabeledAddressValueField-Ca10mEAm-D8rcZ6WA.js";import{Y as es}from"./LabeledDropDownFormattedTextField-BoizuD7H-Ce48u3nd.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./BoxItem-D09XMKDc-dcEB3ro9.js";import"./commonDimensions-CtVQ1dPI-BWfVCzLH.js";import"./TrendChart-BqU6zv7L-wkRyWRpL.js";import"./chartTypes-C2jC2nzT-B64Jl2-O.js";import"./toCOABalancesWithID-BdeWiors-BqeL9v71.js";import"./toChartData-BCFss2y_-DT7ekoOJ.js";import"./NoDataChart-D9tQhnyu-C94gJNvj.js";import"./InsightsSection-KsnkYRQw-CjzvB6rM.js";import"./NavigationDots-BZNvrGBo-CvNSDZNv.js";const ts=a.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: center;
@@ -7,7 +7,7 @@ import{B as N,u as Re,e as ne,C as g,O as fe,l as se,cc as xt,a as yt,gB as Be,g
7
7
  display: flex;
8
8
  position: relative;
9
9
  padding: 12px 12px 14px 12px;
10
- `,os=a.div``,as=a(qe)`
10
+ `,os=a.div``,as=a(Ue)`
11
11
  color: ${e=>e.isDisabled?e.theme.colors.grey2:e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
12
12
  cursor: ${e=>e.isSelected&&!e.isDisabled?"default":"pointer"};
13
13
  margin: ${e=>e.leftMargin?`${o.sp0} ${o.sp0} ${o.sp0} ${o.sp8}`:o.sp0};
@@ -54,10 +54,10 @@ import{B as N,u as Re,e as ne,C as g,O as fe,l as se,cc as xt,a as yt,gB as Be,g
54
54
  column-gap: ${o.sp3};
55
55
  align-items: center;
56
56
  max-width: ${e=>e.isMobile===!1?"50%":"unset"};
57
- `,ce=a(Je)`
57
+ `,ce=a(Xe)`
58
58
  ${e=>`${Ge.spendDuration.style(e.windowSize)}`};
59
59
  color: ${e=>e.theme.colors.hero};
60
- `,pe=a(Je)`
60
+ `,pe=a(Xe)`
61
61
  ${e=>`${Ge.spendValue.style(e.windowSize)}`};
62
62
  color: ${e=>e.theme.colors.primary};
63
63
  text-align: ${e=>e.isMobile===!0?"left":"right"};
@@ -95,13 +95,13 @@ import{B as N,u as Re,e as ne,C as g,O as fe,l as se,cc as xt,a as yt,gB as Be,g
95
95
  align-items: center;
96
96
  column-gap: ${o.sp1};
97
97
  cursor: pointer;
98
- `,me=a(Ye)``,De=a(qt)`
98
+ `,me=a(Ye)``,De=a(Ut)`
99
99
  color: ${e=>e.theme.colors.primary};
100
100
  word-break: break-all;
101
101
  `,je=a(Ye)`
102
102
  color: ${e=>e.theme.colors.primary};
103
103
  word-break: break-all;
104
- `,Le=a.div`
104
+ `,Te=a.div`
105
105
  display: flex;
106
106
  align-items: center;
107
107
  column-gap: ${o.sp3};
@@ -112,12 +112,12 @@ import{B as N,u as Re,e as ne,C as g,O as fe,l as se,cc as xt,a as yt,gB as Be,g
112
112
  `,gs=a.div`
113
113
  display: flex;
114
114
  justify-content: ${e=>e.isMobile?"flex-start":"flex-end"};
115
- `,he=a.div``,us=({spend:e,vendorName:s,vendorLogo:c,isPageLoading:i,isSpendTrendLoading:n,onPercentChangeClick:p})=>{const m=ne(),b=N.getLocalizedStrings().spendManagement.billPay.vendorCreation.vendorDetails.spends,h=m==="small"||m==="medium-compact",w=(D,u)=>u==null?null:D==="increased"?t.jsxs(cs,{onClick:p,children:[t.jsx(Xt,{width:o.sp3,height:o.sp3}),t.jsx(me,{children:u})]}):D==="decreased"?t.jsxs(ps,{onClick:p,children:[t.jsx(Kt,{width:o.sp3,height:o.sp3}),t.jsx(me,{children:u})]}):t.jsx(ms,{onClick:p,children:t.jsxs(me,{children:[u,"%"]})}),R=()=>i===!0?t.jsxs(Se,{isMobile:h,children:[t.jsx(Nt,{width:l[6],height:l[6]}),t.jsx(S,{width:140,height:l[6]}),t.jsx(S,{width:70,height:l[5]})]}):t.jsxs(Se,{isMobile:h,children:[c!=null?t.jsxs(Le,{children:[t.jsx(_t,{photoUrl:c.toString(),styles:{width:O.logoWidth.valuePx(m),height:O.logoHeight.valuePx(m)}}),h?t.jsx(je,{children:s}):t.jsx(De,{children:s})]}):t.jsxs(Le,{children:[t.jsx(Wt,{name:s,size:o.sp6}),h?t.jsx(je,{children:s}):t.jsx(De,{children:s})]}),w(e.changeType,e.percentChange)]}),B=()=>n||i?t.jsx($e,{size:m,isMobile:h,children:[...Array(3)].map((D,u)=>t.jsxs(hs,{children:[t.jsx(S,{width:O.spendTrendHeadingSkeletonWidth.value(m),height:l[4]}),t.jsx(gs,{isMobile:h,children:t.jsx(S,{width:O.spendTrendHeadingSkeletonWidth.value(m)/2,height:l[4]})})]},u))}):t.jsxs($e,{size:m,isMobile:h,children:[t.jsxs(he,{children:[t.jsx(ce,{windowSize:m,isMobile:h,children:b.last30Days}),t.jsx(pe,{windowSize:m,isMobile:h,children:de("0,0.[00]",e.last30DaysSpend,e.currencySymbol)})]}),t.jsxs(he,{children:[t.jsx(ce,{windowSize:m,isMobile:h,children:b.last90Days}),t.jsx(pe,{windowSize:m,isMobile:h,children:de("0,0.[00]",e.last90DaysSpend,e.currencySymbol)})]}),t.jsxs(he,{children:[t.jsx(ce,{windowSize:m,isMobile:h,children:b.ytdSpend}),t.jsx(pe,{windowSize:m,isMobile:h,children:de("0,0.[00]",e.yearToDateSpend,e.currencySymbol)})]})]});return t.jsxs(ds,{isMobile:h,size:m,children:[R(),B()]})},I={labelWidth:new g(120,145,270),largeLabelWidth:new g(130,200,332),largeTinLabelWidth:new g(130,200,276),controlWidth:new g(110,145,160),labelMarginLeft:new g(l[3],l[4]),labelMarginTop:new g(l[2],l[3]),labelMarginBottom:new g(l[2],l[3])},U=(e,s)=>`${e}.${s}`,vs=N.getLocalizedStrings().spendManagement,oe=N.getLocalizedStrings().companyPassport,q=vs.billPay.vendorCreation,L=N.getLocalizedStrings().common,xs=({vendorTypeList:e=[],isDisabled:s,sectionId:c,selectedVendorDetails:i,onAddressClick:n})=>{const p=ne(),m=I.labelWidth.value(p),b=I.largeLabelWidth.value(p),h=I.largeTinLabelWidth.value(p),w=I.controlWidth.value(p);return t.jsxs(ys,{children:[t.jsx(fs,{children:q.vendorDetails.titleFor1099Section}),t.jsxs(bs,{children:[t.jsx(Vt,{isDisabled:s,label:{label:oe.companyInfo.legalName,width:m},text:{type:"text",style:{width:w},name:U(c,"legalName"),placeholder:Ot(oe.companyInfo.legalName),defaultValue:i.vendorBasic.legalName,autoComplete:"new-password",options:{required:!!i.vendorBasic.legalName,pattern:kt}},style:{width:"100%"}}),t.jsx(ge,{}),t.jsxs(Te,{children:[t.jsx(Cs,{width:b,windowSize:p,children:q.vendorDetails.vendorType}),t.jsx(ws,{size:p,children:t.jsx(It,{name:U(c,"vendorType"),value:{allTypes:e,selectedType:i.vendorDetailLocalData?.vendorType},placeholderLabel:q.placeholders.type})})]}),t.jsx(ge,{}),t.jsx(Te,{children:t.jsx(es,{name:U(c,"tinType"),menuPlacement:"auto",style:{height:o.sp6,width:"100%",marginLeft:o.sp4},dropdownStyle:{width:"40%"},defaultValue:{dropDownValue:i.vendorDetailLocalData?.tin?.type??L.strings.empty,dropDownList:[{code:L.texts.ein,label:L.texts.ein.toUpperCase()},{code:L.texts.ssn,label:L.texts.ssn.toUpperCase()}]},registerOptions:{required:!1},label:{width:h},placeholderLabel:q.placeholders.tinType,formattedText:{type:"text",name:U(c,"tinValue"),placeholder:q.placeholders.tinValue,format:i.vendorDetailLocalData?.tin?.type===L.texts.ssn?zt:Mt,registerOptions:{required:!!i.vendorDetailLocalData?.tin?.type,pattern:i.vendorDetailLocalData?.tin?.type===L.texts.ssn?Pt:Ft},style:{width:"100%",height:o.sp6},defaultValue:i.vendorDetailLocalData?.tin?.value??L.strings.empty,maxLength:9,allowLeadingZeros:!0,autoComplete:"new-password",isDisabled:i.vendorDetailLocalData?.tin?.type===null?"disabled":void 0}})}),t.jsx(ge,{}),t.jsx(Zt,{isDisabled:s,label:{label:oe.companyInfo.address,width:m},addressValueField:{name:U(c,"address"),placeholder:oe.address.titleAdd,defaultValue:i.vendorNewAddressStatus?.addressToCreate,onClick:()=>n("vendor_address",i.vendorAddress?.addressId)},showAdditionalInfoLabel:!1,style:{width:"100%"}})]})]})},ys=a.div`
115
+ `,he=a.div``,us=({spend:e,vendorName:s,vendorLogo:c,isPageLoading:i,isSpendTrendLoading:n,onPercentChangeClick:p})=>{const m=ne(),b=N.getLocalizedStrings().spendManagement.billPay.vendorCreation.vendorDetails.spends,h=m==="small"||m==="medium-compact",w=(D,u)=>u==null?null:D==="increased"?t.jsxs(cs,{onClick:p,children:[t.jsx(Qt,{width:o.sp3,height:o.sp3}),t.jsx(me,{children:u})]}):D==="decreased"?t.jsxs(ps,{onClick:p,children:[t.jsx(Kt,{width:o.sp3,height:o.sp3}),t.jsx(me,{children:u})]}):t.jsx(ms,{onClick:p,children:t.jsxs(me,{children:[u,"%"]})}),R=()=>i===!0?t.jsxs(Se,{isMobile:h,children:[t.jsx(Nt,{width:l[6],height:l[6]}),t.jsx(S,{width:140,height:l[6]}),t.jsx(S,{width:70,height:l[5]})]}):t.jsxs(Se,{isMobile:h,children:[c!=null?t.jsxs(Te,{children:[t.jsx(_t,{photoUrl:c.toString(),styles:{width:O.logoWidth.valuePx(m),height:O.logoHeight.valuePx(m)}}),h?t.jsx(je,{children:s}):t.jsx(De,{children:s})]}):t.jsxs(Te,{children:[t.jsx(Wt,{name:s,size:o.sp6}),h?t.jsx(je,{children:s}):t.jsx(De,{children:s})]}),w(e.changeType,e.percentChange)]}),B=()=>n||i?t.jsx($e,{size:m,isMobile:h,children:[...Array(3)].map((D,u)=>t.jsxs(hs,{children:[t.jsx(S,{width:O.spendTrendHeadingSkeletonWidth.value(m),height:l[4]}),t.jsx(gs,{isMobile:h,children:t.jsx(S,{width:O.spendTrendHeadingSkeletonWidth.value(m)/2,height:l[4]})})]},u))}):t.jsxs($e,{size:m,isMobile:h,children:[t.jsxs(he,{children:[t.jsx(ce,{windowSize:m,isMobile:h,children:b.last30Days}),t.jsx(pe,{windowSize:m,isMobile:h,children:de("0,0.[00]",e.last30DaysSpend,e.currencySymbol)})]}),t.jsxs(he,{children:[t.jsx(ce,{windowSize:m,isMobile:h,children:b.last90Days}),t.jsx(pe,{windowSize:m,isMobile:h,children:de("0,0.[00]",e.last90DaysSpend,e.currencySymbol)})]}),t.jsxs(he,{children:[t.jsx(ce,{windowSize:m,isMobile:h,children:b.ytdSpend}),t.jsx(pe,{windowSize:m,isMobile:h,children:de("0,0.[00]",e.yearToDateSpend,e.currencySymbol)})]})]});return t.jsxs(ds,{isMobile:h,size:m,children:[R(),B()]})},I={labelWidth:new g(120,145,270),largeLabelWidth:new g(130,200,332),largeTinLabelWidth:new g(130,200,276),controlWidth:new g(110,145,160),labelMarginLeft:new g(l[3],l[4]),labelMarginTop:new g(l[2],l[3]),labelMarginBottom:new g(l[2],l[3])},q=(e,s)=>`${e}.${s}`,vs=N.getLocalizedStrings().spendManagement,oe=N.getLocalizedStrings().companyPassport,U=vs.billPay.vendorCreation,T=N.getLocalizedStrings().common,xs=({vendorTypeList:e=[],isDisabled:s,sectionId:c,selectedVendorDetails:i,onAddressClick:n})=>{const p=ne(),m=I.labelWidth.value(p),b=I.largeLabelWidth.value(p),h=I.largeTinLabelWidth.value(p),w=I.controlWidth.value(p);return t.jsxs(ys,{children:[t.jsx(fs,{children:U.vendorDetails.titleFor1099Section}),t.jsxs(bs,{children:[t.jsx(Vt,{isDisabled:s,label:{label:oe.companyInfo.legalName,width:m},text:{type:"text",style:{width:w},name:q(c,"legalName"),placeholder:Ot(oe.companyInfo.legalName),defaultValue:i.vendorBasic.legalName,autoComplete:"new-password",options:{required:!!i.vendorBasic.legalName,pattern:kt}},style:{width:"100%"}}),t.jsx(ge,{}),t.jsxs(Le,{children:[t.jsx(Cs,{width:b,windowSize:p,children:U.vendorDetails.vendorType}),t.jsx(ws,{size:p,children:t.jsx(It,{name:q(c,"vendorType"),value:{allTypes:e,selectedType:i.vendorDetailLocalData?.vendorType},placeholderLabel:U.placeholders.type})})]}),t.jsx(ge,{}),t.jsx(Le,{children:t.jsx(es,{name:q(c,"tinType"),menuPlacement:"auto",style:{height:o.sp6,width:"100%",marginLeft:o.sp4},dropdownStyle:{width:"40%"},defaultValue:{dropDownValue:i.vendorDetailLocalData?.tin?.type??T.strings.empty,dropDownList:[{code:T.texts.ein,label:T.texts.ein.toUpperCase()},{code:T.texts.ssn,label:T.texts.ssn.toUpperCase()}]},registerOptions:{required:!1},label:{width:h},placeholderLabel:U.placeholders.tinType,formattedText:{type:"text",name:q(c,"tinValue"),placeholder:U.placeholders.tinValue,format:i.vendorDetailLocalData?.tin?.type===T.texts.ssn?Ft:Mt,registerOptions:{required:!!i.vendorDetailLocalData?.tin?.type,pattern:i.vendorDetailLocalData?.tin?.type===T.texts.ssn?Pt:zt},style:{width:"100%",height:o.sp6},defaultValue:i.vendorDetailLocalData?.tin?.value??T.strings.empty,maxLength:9,allowLeadingZeros:!0,autoComplete:"new-password",isDisabled:i.vendorDetailLocalData?.tin?.type===null?"disabled":void 0}})}),t.jsx(ge,{}),t.jsx(Zt,{isDisabled:s,label:{label:oe.companyInfo.address,width:m},addressValueField:{name:q(c,"address"),placeholder:oe.address.titleAdd,defaultValue:i.vendorNewAddressStatus?.addressToCreate,onClick:()=>n("vendor_address",i.vendorAddress?.addressId)},showAdditionalInfoLabel:!1,style:{width:"100%"}})]})]})},ys=a.div`
116
116
  display: flex;
117
117
  flex-direction: column;
118
118
  padding-top: ${o.sp5};
119
119
  padding-bottom: ${o.sp5};
120
- `,fs=a(Ue)`
120
+ `,fs=a(qe)`
121
121
  color: ${e=>e.theme.colors.primary};
122
122
  margin-bottom: ${o.sp3};
123
123
  margin-right: ${o.sp6};
@@ -134,7 +134,7 @@ import{B as N,u as Re,e as ne,C as g,O as fe,l as se,cc as xt,a as yt,gB as Be,g
134
134
  background-color: ${e=>e.theme.colors.grey3};
135
135
  min-height: 1px;
136
136
  max-height: 1px;
137
- `,Te=a.div`
137
+ `,Le=a.div`
138
138
  display: flex;
139
139
  flex-direction: row;
140
140
  justify-content: space-between;
@@ -168,15 +168,15 @@ import{B as N,u as Re,e as ne,C as g,O as fe,l as se,cc as xt,a as yt,gB as Be,g
168
168
  width: ${e=>e.width}px;
169
169
  color: ${e=>e.theme.colors.hero};
170
170
  margin: ${e=>`${I.labelMarginTop.valuePx(e.windowSize)} ${I.labelMarginLeft.valuePx(e.windowSize)} ${I.labelMarginBottom.valuePx(e.windowSize)} ${I.labelMarginLeft.valuePx(e.windowSize)}`};
171
- `,Ve=N.getLocalizedStrings().vendors.common.transactionTabTitles,$s=()=>Ss,Ss=[{id:"spend_transactions",label:Ve.spendTransactions,leftMargin:!1,style:{width:136,left:2}},{id:"all_transactions",label:Ve.allTransactions,leftMargin:!0,style:{width:122,left:60}}],ke={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},z=(e,s)=>`${e}.${s}`,Qe=N.getLocalizedStrings(),{common:ae,cockpit:Oe}=Qe,T=Qe.spendManagement.billPay.vendorCreation,Ds=({accountsHierarchyList:e,allAccounts:s,allClasses:c,allOwners:i,classHierarchyList:n,enableRecommendationUpdateCheckbox:p,readOnlyMode:m,isDisabled:b,recommendations:h,sectionId:w,selectedAccountId:R,selectedClassId:B,selectedOwnerId:D,selectedVendorDetails:u,uiState:A,isFiling1099FeatureEnabled:Y,onClickShowMoreOrLess:le})=>{const J=ne(),G=Re(),{getValues:Q}=Lt(),_=ke.labelWidth.value(J),W=ke.controlWidth.value(J),P=r=>s.filter(f=>f.accountId===r)[0]?.coaId??"",E=r=>c.filter(f=>f.classId===r)[0]?.accountingClassNumber??"",X=r=>{const f=s.find(H=>H.accountId===r)?.accountName;return[Bt,At].includes(f??"")},K=T.vendorDetails.recommendation.tooltip,ie=K.category.replace("__based__",u?.vendorDetailLocalData?.recommendedCategory?.reason?.toLocaleLowerCase()??""),re=K.class.replace("__based__",u?.vendorDetailLocalData?.recommendedClass?.reason?.toLocaleLowerCase()??""),Z=u?.vendorDetailLocalData?.recommendedCategory!=null&&!!p,ee=u?.vendorDetailLocalData?.recommendedClass!=null&&!!p;return t.jsxs(js,{children:[t.jsxs(Ls,{children:[t.jsx(Ts,{children:T.vendorDetails.title}),Y?t.jsxs(ks,{onClick:()=>le(),children:[A?.collapsableStatus==="expand"?`${ae.show}${ae.strings.space}${Oe.subscription.lessBtnText}`:`${ae.show}${ae.strings.space}${Oe.subscription.moreBtnText}`,A?.collapsableStatus==="expand"?t.jsx(Os,{}):t.jsx(Is,{})]}):null]}),t.jsxs(Vs,{children:[t.jsx(we,{isLoading:!1,label:{label:T.vendorDetails.category,width:_},groupedSingleSelectField:{name:z(w,"vendorCategory"),placeholder:T.placeholders.category,valueToInfo:r=>P(r),defaultValue:{selectedOption:R,allOptions:Ae(e,h)},style:{width:"auto"},registerOptions:{required:!1},shouldShowChevronIcon:Z},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${G.colors.grey3}`},isDisabled:m?"readonly":b,disableCurrentOption:X,fullWidthSelect:!1,zIndexOnFocus:!0,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedCategory!=null&&p?{tooltipProps:{text:ie},label:{label:u?.vendorDetailLocalData?.recommendedCategory?.accountName},checkBoxField:{name:z(w,"isRecommendedCategorySelected"),defaultChecked:Q(z(w,"isRecommendedCategorySelected"))}}:void 0}),t.jsx(we,{isLoading:!1,label:{label:T.vendorDetails.class,width:_},zIndexOnFocus:!0,groupedSingleSelectField:{name:z(w,"vendorClass"),placeholder:T.placeholders.class,valueToInfo:r=>E(r),defaultValue:{selectedOption:B,allOptions:Be(n,h)},registerOptions:{required:!1},style:{width:"auto"},shouldShowChevronIcon:ee},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${G.colors.grey3}`},isDisabled:m===!0?"readonly":b,fullWidthSelect:!1,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedClass!=null&&p?{tooltipProps:{text:re},label:{label:u?.vendorDetailLocalData?.recommendedClass?.className},checkBoxField:{name:z(w,"isRecommendedClassSelected"),defaultChecked:Q(z(w,"isRecommendedClassSelected"))}}:void 0}),t.jsx(Tt,{label:{label:T.vendorDetails.vendorOwner,width:_},userSingleSelectField:{name:z(w,"vendorOwner"),placeholder:T.placeholders.owner,defaultValue:{allOptions:Ee(i),selectedOption:D},registerOptions:{required:!1},style:{width:"auto"}},isDisabled:m===!0?"readonly":b,style:{justifyContent:"space-between"},controlWidth:W,fullWidthSelect:!1})]})]})},js=a.div`
171
+ `,Ve=N.getLocalizedStrings().vendors.common.transactionTabTitles,$s=()=>Ss,Ss=[{id:"spend_transactions",label:Ve.spendTransactions,leftMargin:!1,style:{width:136,left:2}},{id:"all_transactions",label:Ve.allTransactions,leftMargin:!0,style:{width:122,left:60}}],ke={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},F=(e,s)=>`${e}.${s}`,Je=N.getLocalizedStrings(),{common:ae,cockpit:Oe}=Je,L=Je.spendManagement.billPay.vendorCreation,Ds=({accountsHierarchyList:e,allAccounts:s,allClasses:c,allOwners:i,classHierarchyList:n,enableRecommendationUpdateCheckbox:p,readOnlyMode:m,isDisabled:b,recommendations:h,sectionId:w,selectedAccountId:R,selectedClassId:B,selectedOwnerId:D,selectedVendorDetails:u,uiState:A,isFiling1099FeatureEnabled:Y,onClickShowMoreOrLess:le})=>{const X=ne(),G=Re(),{getValues:J}=Tt(),_=ke.labelWidth.value(X),W=ke.controlWidth.value(X),P=r=>s.filter(f=>f.accountId===r)[0]?.coaId??"",E=r=>c.filter(f=>f.classId===r)[0]?.accountingClassNumber??"",Q=r=>{const f=s.find(H=>H.accountId===r)?.accountName;return[Bt,At].includes(f??"")},K=L.vendorDetails.recommendation.tooltip,ie=K.category.replace("__based__",u?.vendorDetailLocalData?.recommendedCategory?.reason?.toLocaleLowerCase()??""),re=K.class.replace("__based__",u?.vendorDetailLocalData?.recommendedClass?.reason?.toLocaleLowerCase()??""),Z=u?.vendorDetailLocalData?.recommendedCategory!=null&&!!p,ee=u?.vendorDetailLocalData?.recommendedClass!=null&&!!p;return t.jsxs(js,{children:[t.jsxs(Ts,{children:[t.jsx(Ls,{children:L.vendorDetails.title}),Y?t.jsxs(ks,{onClick:()=>le(),children:[A?.collapsableStatus==="expand"?`${ae.show}${ae.strings.space}${Oe.subscription.lessBtnText}`:`${ae.show}${ae.strings.space}${Oe.subscription.moreBtnText}`,A?.collapsableStatus==="expand"?t.jsx(Os,{}):t.jsx(Is,{})]}):null]}),t.jsxs(Vs,{children:[t.jsx(we,{isLoading:!1,label:{label:L.vendorDetails.category,width:_},groupedSingleSelectField:{name:F(w,"vendorCategory"),placeholder:L.placeholders.category,valueToInfo:r=>P(r),defaultValue:{selectedOption:R,allOptions:Ae(e,h)},style:{width:"auto"},registerOptions:{required:!1},shouldShowChevronIcon:Z},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${G.colors.grey3}`},isDisabled:m?"readonly":b,disableCurrentOption:Q,fullWidthSelect:!1,zIndexOnFocus:!0,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedCategory!=null&&p?{tooltipProps:{text:ie},label:{label:u?.vendorDetailLocalData?.recommendedCategory?.accountName},checkBoxField:{name:F(w,"isRecommendedCategorySelected"),defaultChecked:J(F(w,"isRecommendedCategorySelected"))}}:void 0}),t.jsx(we,{isLoading:!1,label:{label:L.vendorDetails.class,width:_},zIndexOnFocus:!0,groupedSingleSelectField:{name:F(w,"vendorClass"),placeholder:L.placeholders.class,valueToInfo:r=>E(r),defaultValue:{selectedOption:B,allOptions:Be(n,h)},registerOptions:{required:!1},style:{width:"auto"},shouldShowChevronIcon:ee},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${G.colors.grey3}`},isDisabled:m===!0?"readonly":b,fullWidthSelect:!1,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedClass!=null&&p?{tooltipProps:{text:re},label:{label:u?.vendorDetailLocalData?.recommendedClass?.className},checkBoxField:{name:F(w,"isRecommendedClassSelected"),defaultChecked:J(F(w,"isRecommendedClassSelected"))}}:void 0}),t.jsx(Lt,{label:{label:L.vendorDetails.vendorOwner,width:_},userSingleSelectField:{name:F(w,"vendorOwner"),placeholder:L.placeholders.owner,defaultValue:{allOptions:Ee(i),selectedOption:D},registerOptions:{required:!1},style:{width:"auto"}},isDisabled:m===!0?"readonly":b,style:{justifyContent:"space-between"},controlWidth:W,fullWidthSelect:!1})]})]})},js=a.div`
172
172
  display: flex;
173
173
  flex-direction: column;
174
174
  padding-top: ${o.sp3};
175
175
  padding-bottom: ${o.sp3};
176
- `,Ls=a.div`
176
+ `,Ts=a.div`
177
177
  display: flex;
178
178
  justify-content: space-between;
179
- `,Ts=a(Ue)`
179
+ `,Ls=a(qe)`
180
180
  color: ${e=>e.theme.colors.primary};
181
181
  margin-bottom: ${o.sp3};
182
182
  margin-right: ${o.sp6};
@@ -187,7 +187,7 @@ import{B as N,u as Re,e as ne,C as g,O as fe,l as se,cc as xt,a as yt,gB as Be,g
187
187
  border: 1px solid ${e=>e.theme.colors.grey3};
188
188
  box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
189
189
  border-radius: ${o.sp2};
190
- `,ks=a(qe)`
190
+ `,ks=a(Ue)`
191
191
  display: flex;
192
192
  justify-content: flex-end;
193
193
  color: ${e=>e.theme.colors.hero};
@@ -219,12 +219,12 @@ import{B as N,u as Re,e as ne,C as g,O as fe,l as se,cc as xt,a as yt,gB as Be,g
219
219
  );
220
220
  border-radius: ${o.sp2};
221
221
  background: ${e=>e.theme.colors.grey5};
222
- `,Fe=a.div`
222
+ `,ze=a.div`
223
223
  padding: ${o.sp3};
224
224
  display: flex;
225
225
  justify-content: space-between;
226
226
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
227
- `,Fs=()=>t.jsxs(Ps,{children:[[...Array(1)].map((e,s)=>t.jsxs(Ie,{children:[t.jsx(S,{width:120,height:l[4]}),t.jsx(Pe,{children:[...Array(3)].map((c,i)=>t.jsxs(Fe,{children:[t.jsx(S,{width:70,height:l[4]}),t.jsx(S,{width:140,height:l[4]})]},i))})]},s)),[...Array(1)].map((e,s)=>t.jsxs(Ie,{children:[t.jsx(S,{width:120,height:l[4]}),t.jsx(Pe,{children:[...Array(4)].map((c,i)=>t.jsxs(Fe,{children:[t.jsx(S,{width:70,height:l[4]}),t.jsx(S,{width:140,height:l[4]})]},i))})]},s))]}),x=N.getLocalizedStrings(),{vendors:{vendorDetailPage:V},common:{footer:ze}}=x,k={transactionListHeight:new g(325,275,225),formContainerHorizontalPadding:new g(l[3],l[3],l[8]),buttonWidth:new g(85,85),navbarHeight:63},Me=e=>`${e}_form`,y="vendorDetails",ve="vendor1099Details",Ne="vendorDetailPage",zs=a.div`
227
+ `,zs=()=>t.jsxs(Ps,{children:[[...Array(1)].map((e,s)=>t.jsxs(Ie,{children:[t.jsx(S,{width:120,height:l[4]}),t.jsx(Pe,{children:[...Array(3)].map((c,i)=>t.jsxs(ze,{children:[t.jsx(S,{width:70,height:l[4]}),t.jsx(S,{width:140,height:l[4]})]},i))})]},s)),[...Array(1)].map((e,s)=>t.jsxs(Ie,{children:[t.jsx(S,{width:120,height:l[4]}),t.jsx(Pe,{children:[...Array(4)].map((c,i)=>t.jsxs(ze,{children:[t.jsx(S,{width:70,height:l[4]}),t.jsx(S,{width:140,height:l[4]})]},i))})]},s))]}),x=N.getLocalizedStrings(),{vendors:{vendorDetailPage:V},common:{footer:Fe}}=x,k={transactionListHeight:new g(325,275,225),formContainerHorizontalPadding:new g(l[3],l[3],l[8]),buttonWidth:new g(85,85),navbarHeight:63},Me=e=>`${e}_form`,y="vendorDetails",ve="vendor1099Details",Ne="vendorDetailPage",Fs=a.div`
228
228
  display: flex;
229
229
  flex: 1 1 auto;
230
230
  min-height: 100%;
@@ -254,4 +254,4 @@ import{B as N,u as Re,e as ne,C as g,O as fe,l as se,cc as xt,a as yt,gB as Be,g
254
254
  display: flex;
255
255
  flex-direction: column;
256
256
  transition: ${e=>e.collapsableStatus==="collapse"?"height 400ms ease-out":"height 200ms ease-in"};
257
- `,Rs=[{label:V.vendorSpendTrendFilterLabels.last_30_days,id:"last_30_days"},{label:V.vendorSpendTrendFilterLabels.last_90_days,id:"last_90_days"},{label:V.vendorSpendTrendFilterLabels.YTD_spend,id:"YTD_spend"},{label:V.vendorSpendTrendFilterLabels.last_month,id:"last_month"},{label:V.vendorSpendTrendFilterLabels.last_3_months,id:"last_3_months"},{label:V.vendorSpendTrendFilterLabels.last_6_months,id:"last_6_months"},{label:V.vendorSpendTrendFilterLabels.last_12_months,id:"last_12_months"},{label:V.vendorSpendTrendFilterLabels.last_year,id:"last_year"}],go=({isFiling1099FeatureEnabled:e,vendorDetailView:s,firstMonthOfFY:c,vendorLogo:i,readOnlyMode:n,isDisabled:p,scrollToTrend:m,allTransactionsTabData:b,onVendorTabSelectionChanged:h,onLoadPreviousTransactionsClick:w,onSaveSuccess:R,saveVendorDetailLocalData:B,onCancelClick:D,onTrendSelectedPeriodChange:u,onTransactionItemClick:A,onSpendTrendPercentChangeClick:Y,onSaveVendor:le,onVendorSpendTrendFilterTabClick:J,onAddressClick:G,saveContactsInVendorTabDetailLocalData:Q,onVendorDetailUIChange:_})=>{const W=Re(),P=ne(),E=$.useRef(null),[X,K]=$.useState(!1),[ie,re]=$.useState(k.transactionListHeight.value()),Z=s?.selectedTabType,ee=$s(),r=Object.assign({},s?.vendorViewDetails?.vendorView),f=s?.vendorViewDetails.vendorView?.vendorDetailLocalData,H=s?.uiState,Xe=!fe(r!=null&&r.vendorAddress!=null?se.getFormattedAddress(r.vendorAddress):r.vendorAddress,r.vendorNewAddressStatus?.addressToCreate!=null?se.getFormattedAddress(r.vendorNewAddressStatus?.addressToCreate):r.vendorNewAddressStatus?.addressToCreate),Ke=(r?.vendorDetailLocalData?.contacts??[]).filter(d=>d.email!==x.common.strings.empty||d.fullName!==x.common.strings.empty||d.phone!==x.common.strings.empty).map(d=>xt(d,"contactInfoType")),xe=$.useMemo(()=>r.vendorBasic?.contacts??[],[r.vendorBasic?.contacts]),Ze=!fe(Ke,xe),te=yt({mode:"all",defaultValues:He(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),values:He(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),resetOptions:{keepDirtyValues:!0}}),[et,tt]=$.useState(-1),st=r.vendorDetailLocalData?.contacts!=null&&r.vendorDetailLocalData?.contacts.length>0?r.vendorDetailLocalData?.contacts:be,[ot,at]=$.useState(ft(st)),nt=d=>{at(d),Q?.(f?.vendorId??x.common.strings.empty,d)};$.useEffect(()=>{m===!0&&X===!1&&s?.trendWithTransactions.trendReport?.fetchState==="Completed"&&s?.trendWithTransactions.transactionView?.fetchState==="Completed"&&(window.scrollTo({top:(E.current?.offsetTop??0)+k.navbarHeight,behavior:"smooth"}),K(!0))},[m,X,s?.trendWithTransactions.trendReport?.fetchState,s?.trendWithTransactions.transactionView?.fetchState]);const lt=new bt(W.colors.graphColor12),j=s?.fetchState==="Not-Started"||s?.fetchState==="In-Progress",it=s?.vendorViewDetails.vendorView?.saveStatus.fetchState==="In-Progress",rt=s?.trendWithTransactions.trendReport?.fetchState==="In-Progress",dt=(d,v)=>{u?.(v)};$.useEffect(()=>{s?.vendorViewDetails.vendorView?.saveStatus?.fetchState==="Completed"&&R?.()},[r]);const ct=$.useCallback(()=>{window.scrollTo({top:(E.current?.offsetTop??0)+k.navbarHeight,behavior:"smooth"}),Y?.()},[Y]),pt=async(d,v)=>{const C=v;if(d.includes("isRecommendedCategorySelected")){const F=v[y].isRecommendedCategorySelected===!0?r?.vendorDetailLocalData?.recommendedCategory?.accountId:r?.vendorBasic?.account?.accountId;C[y].vendorCategory={selectedOption:F,allOptions:v[y].vendorCategory.allOptions}}if(d.includes("isRecommendedClassSelected")){const F=v[y].isRecommendedClassSelected===!0?r.vendorDetailLocalData?.recommendedClass?.classId:r?.vendorBasic?.class?.classId;C[y].vendorClass={selectedOption:F,allOptions:v[y].vendorClass.allOptions}}if(d.includes("vendorCategory")){const F=C[y].vendorCategory.selectedOption===C[y].recommendedCategory?.accountId;C[y].isRecommendedCategorySelected=F}if(d.includes("vendorClass")){const F=C[y].vendorClass.selectedOption===C[y].recommendedClass?.classId;C[y].isRecommendedClassSelected=F}mt(C)};$.useEffect(()=>{const d=te.watch((v,{name:C})=>{C!=null&&v!=null&&wt(()=>pt(C,v))});return()=>{d.unsubscribe()}});const mt=d=>{const v=Bs(d,r.vendorBasic?.id,f);B?.(v)},ht=d=>{h(se.toVendorDetailTabsType(d.id))},gt={isLoading:s?.allVendorTransactionsView?.fetchState==="In-Progress"||s?.allVendorTransactionsView?.fetchState==="Not-Started",onLoadPreviousClick:(d,v)=>{w(d,(b?.numberOfQuartersFetched??0)+1)}},ut=()=>{switch(Z){case"all_transactions":return t.jsx(Ms,{height:ie,children:j===!1&&b?.timePeriod!=null?t.jsx(Gt,{firstMonthOfFY:c,timeframe:"quarter",timePeriod:b.timePeriod,transactions:s?.allVendorTransactionsView?.transactions??[],isFirstLotLoading:j,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:A,onListInnerElementHeightChanged:d=>{re(d)},showLoadPrevious:gt}):null});case"spend_transactions":default:return s?.trendWithTransactions!=null?t.jsxs(t.Fragment,{children:[t.jsx(Jt,{allTabs:Rs,selectedTab:s.vendorSpendTrendFilterTabValue,onTabChange:d=>{const v=se.toVendorSpendTrendFilterTabsTypeStrict(d.id);v!=null&&J(v)},containerStyle:{marginLeft:l[8],marginRight:l[8]}}),t.jsx(_s,{ref:E,children:t.jsx(Qt,{firstMonthOfFY:c,trendWithTransactionsReport:s?.trendWithTransactions,isDetailPage:!1,graphColor:lt,initialTransactionListHeight:k.transactionListHeight.value(P),page:"vendorDetailPage",onTimePeriodChange:dt,onTransactionItemClick:A})})]}):null}},vt=()=>{H?.collapsableStatus==="expand"?_?.("collapse"):_?.("expand")},ye=ee.find(d=>Z===d.id);return t.jsxs(zs,{children:[t.jsx(Ct,{onBackClick:D,title:r.vendorBasic?.name??x.common.strings.empty,style:{zIndex:3},hideSearchBtn:!0,backgroundColor:W.colors.grey5,enableTitleOnScroll:!0,source:"VendorDetailPage"}),s?.vendorSpend!=null?t.jsx(us,{isPageLoading:j,vendorName:r.vendorBasic?.name??x.common.strings.empty,spend:s?.vendorSpend,vendorLogo:i,isSpendTrendLoading:rt,onPercentChangeClick:ct}):null,j===!0&&t.jsx(We,{isPageLoading:j,children:t.jsx(_e,{size:P,children:t.jsx(Fs,{})})}),j===!1&&r.vendorDetailLocalData!=null&&t.jsxs(We,{isPageLoading:j,children:[t.jsx(_e,{size:P,children:t.jsx($t,{...te,children:t.jsxs("form",{id:Me(Ne),onSubmit:te.handleSubmit(le),children:[t.jsx(Ds,{sectionId:y,selectedVendorId:f?.vendorId,selectedVendorDetails:r,selectedAccountId:f?.vendorCategory,selectedClassId:f?.vendorClass,selectedOwnerId:f?.vendorOwner,recommendations:f?.recommendations??[],allAccounts:s?.vendorViewDetails.accountList.accounts??[],allClasses:s?.vendorViewDetails.classList.classes??[],screenType:"edit",selectedVendorName:f?.vendorName,allOwners:s?.vendorViewDetails.ownerList??[],readOnlyMode:n,isDisabled:p,accountsHierarchyList:s?.vendorViewDetails.accountsHierarchyList??[],classHierarchyList:s?.vendorViewDetails.classHierarchyList??[],enableRecommendationUpdateCheckbox:!0,uiState:H,isFiling1099FeatureEnabled:e,onClickShowMoreOrLess:vt}),e&&H?.collapsableStatus==="expand"?t.jsxs(Hs,{collapsableStatus:H?.collapsableStatus??"expand",children:[t.jsx(xs,{selectedVendorDetails:r,isDisabled:p,onAddressClick:G,sectionId:ve,vendorTypeList:s?.vendorViewDetails.vendorTypeList??[]}),t.jsx(St,{emailRequired:!1,vendorContactInfos:be,sectionId:ue,vendorContactInfoWithType:ot,setVendorContactInfoWithType:nt,deleteContactConfirmationIndex:et,updateContactDeleteConfirmationIndex:tt,initialContactList:xe})]}):null]})})}),ye!=null?t.jsxs(Ns,{children:[t.jsx(Ws,{children:t.jsx(rs,{allTabs:ee,containerStyle:{marginLeft:l[8],marginRight:l[8],borderBottom:`1px solid ${W.colors.grey3}`,backgroundColor:W.colors.grey4,justifyContent:"left"},selectedTab:ye,onOptionSelectionChanged:ht})}),ut()]}):null]}),!j&&n!==!0&&(Dt(te.formState.dirtyFields)||Xe||Ze)?t.jsx(jt,{formId:Me(Ne),primaryBtn:{label:ze.save,isLoading:it,style:{width:k.buttonWidth.value(P)},isDisabled:!1},cancelBtn:{label:ze.cancel,style:{width:k.buttonWidth.value(P)},onClick:D}}):null]})},He=(e,s,c,i,n,p)=>({[y]:{vendorName:n?.vendorName??x.common.strings.empty,vendorOwner:{allOptions:Ee(p),selectedOption:n?.vendorOwner},vendorCategory:{allOptions:Ae(e,n?.recommendations),selectedOption:n?.vendorCategory},vendorClass:{allOptions:Be(s,n?.recommendations),selectedOption:n?.vendorClass},recommendedCategory:n?.recommendedCategory,recommendedClass:n?.recommendedClass,isRecommendedCategorySelected:n?.isCategoryUpdateSelected??!1,isRecommendedClassSelected:n?.isClassUpdateSelected??!1},[ve]:{legalName:n?.legalName??x.common.strings.empty,email:n?.vendorEmail??x.common.strings.empty,phone:n?.vendorPhone??x.common.strings.empty,vendorType:{allTypes:c,selectedType:n?.vendorType},tinType:n?.tin?.type??null,tinValue:n?.tin?.value??null,address:i},[ue]:n!=null&&n?.contacts!=null&&n?.contacts.length!==0?n.contacts:[{fullName:x.common.strings.empty,email:x.common.strings.empty,phone:x.common.strings.empty,id:x.common.strings.empty}]}),Bs=(e,s,c)=>{const i=e?.[y],n=e?.[ve];return{vendorCategory:i.vendorCategory.selectedOption,vendorClass:i.vendorClass.selectedOption,vendorId:s,recommendations:c?.recommendations,vendorName:i.vendorName,legalName:n.legalName,vendorOwner:i.vendorOwner?.selectedOption,recommendedCategory:i.recommendedCategory,recommendedClass:i.recommendedClass,isCategoryUpdateSelected:i.isRecommendedCategorySelected??!1,isClassUpdateSelected:i.isRecommendedClassSelected??!1,vendorEmail:n.email,vendorPhone:n.phone,vendorType:n.vendorType.selectedType,tin:{type:n.tinType??null,value:n.tinValue!=null?n.tinValue.replace(Ut,x.common.strings.empty):null},address:n.address,contacts:e?.[ue]}};export{go as default,Me as formUniqueName,ve as vendor1099DetailsSectionId,y as vendorDetailsSectionId,Rs as vendorSpendTrendFilterTabs};
257
+ `,Rs=[{label:V.vendorSpendTrendFilterLabels.last_30_days,id:"last_30_days"},{label:V.vendorSpendTrendFilterLabels.last_90_days,id:"last_90_days"},{label:V.vendorSpendTrendFilterLabels.YTD_spend,id:"YTD_spend"},{label:V.vendorSpendTrendFilterLabels.last_month,id:"last_month"},{label:V.vendorSpendTrendFilterLabels.last_3_months,id:"last_3_months"},{label:V.vendorSpendTrendFilterLabels.last_6_months,id:"last_6_months"},{label:V.vendorSpendTrendFilterLabels.last_12_months,id:"last_12_months"},{label:V.vendorSpendTrendFilterLabels.last_year,id:"last_year"}],go=({isFiling1099FeatureEnabled:e,vendorDetailView:s,firstMonthOfFY:c,vendorLogo:i,readOnlyMode:n,isDisabled:p,scrollToTrend:m,allTransactionsTabData:b,onVendorTabSelectionChanged:h,onLoadPreviousTransactionsClick:w,onSaveSuccess:R,saveVendorDetailLocalData:B,onCancelClick:D,onTrendSelectedPeriodChange:u,onTransactionItemClick:A,onSpendTrendPercentChangeClick:Y,onSaveVendor:le,onVendorSpendTrendFilterTabClick:X,onAddressClick:G,saveContactsInVendorTabDetailLocalData:J,onVendorDetailUIChange:_})=>{const W=Re(),P=ne(),E=$.useRef(null),[Q,K]=$.useState(!1),[ie,re]=$.useState(k.transactionListHeight.value()),Z=s?.selectedTabType,ee=$s(),r=Object.assign({},s?.vendorViewDetails?.vendorView),f=s?.vendorViewDetails.vendorView?.vendorDetailLocalData,H=s?.uiState,Qe=!fe(r!=null&&r.vendorAddress!=null?se.getFormattedAddress(r.vendorAddress):r.vendorAddress,r.vendorNewAddressStatus?.addressToCreate!=null?se.getFormattedAddress(r.vendorNewAddressStatus?.addressToCreate):r.vendorNewAddressStatus?.addressToCreate),Ke=(r?.vendorDetailLocalData?.contacts??[]).filter(d=>d.email!==x.common.strings.empty||d.fullName!==x.common.strings.empty||d.phone!==x.common.strings.empty).map(d=>xt(d,"contactInfoType")),xe=$.useMemo(()=>r.vendorBasic?.contacts??[],[r.vendorBasic?.contacts]),Ze=!fe(Ke,xe),te=yt({mode:"all",defaultValues:He(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),values:He(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),resetOptions:{keepDirtyValues:!0}}),[et,tt]=$.useState(-1),st=r.vendorDetailLocalData?.contacts!=null&&r.vendorDetailLocalData?.contacts.length>0?r.vendorDetailLocalData?.contacts:be,[ot,at]=$.useState(ft(st)),nt=d=>{at(d),J?.(f?.vendorId??x.common.strings.empty,d)};$.useEffect(()=>{m===!0&&Q===!1&&s?.trendWithTransactions.trendReport?.fetchState==="Completed"&&s?.trendWithTransactions.transactionView?.fetchState==="Completed"&&(window.scrollTo({top:(E.current?.offsetTop??0)+k.navbarHeight,behavior:"smooth"}),K(!0))},[m,Q,s?.trendWithTransactions.trendReport?.fetchState,s?.trendWithTransactions.transactionView?.fetchState]);const lt=new bt(W.colors.graphColor12),j=s?.fetchState==="Not-Started"||s?.fetchState==="In-Progress",it=s?.vendorViewDetails.vendorView?.saveStatus.fetchState==="In-Progress",rt=s?.trendWithTransactions.trendReport?.fetchState==="In-Progress",dt=(d,v)=>{u?.(v)};$.useEffect(()=>{s?.vendorViewDetails.vendorView?.saveStatus?.fetchState==="Completed"&&R?.()},[r]);const ct=$.useCallback(()=>{window.scrollTo({top:(E.current?.offsetTop??0)+k.navbarHeight,behavior:"smooth"}),Y?.()},[Y]),pt=async(d,v)=>{const C=v;if(d.includes("isRecommendedCategorySelected")){const z=v[y].isRecommendedCategorySelected===!0?r?.vendorDetailLocalData?.recommendedCategory?.accountId:r?.vendorBasic?.account?.accountId;C[y].vendorCategory={selectedOption:z,allOptions:v[y].vendorCategory.allOptions}}if(d.includes("isRecommendedClassSelected")){const z=v[y].isRecommendedClassSelected===!0?r.vendorDetailLocalData?.recommendedClass?.classId:r?.vendorBasic?.class?.classId;C[y].vendorClass={selectedOption:z,allOptions:v[y].vendorClass.allOptions}}if(d.includes("vendorCategory")){const z=C[y].vendorCategory.selectedOption===C[y].recommendedCategory?.accountId;C[y].isRecommendedCategorySelected=z}if(d.includes("vendorClass")){const z=C[y].vendorClass.selectedOption===C[y].recommendedClass?.classId;C[y].isRecommendedClassSelected=z}mt(C)};$.useEffect(()=>{const d=te.watch((v,{name:C})=>{C!=null&&v!=null&&wt(()=>pt(C,v))});return()=>{d.unsubscribe()}});const mt=d=>{const v=Bs(d,r.vendorBasic?.id,f);B?.(v)},ht=d=>{h(se.toVendorDetailTabsType(d.id))},gt={isLoading:s?.allVendorTransactionsView?.fetchState==="In-Progress"||s?.allVendorTransactionsView?.fetchState==="Not-Started",onLoadPreviousClick:(d,v)=>{w(d,(b?.numberOfQuartersFetched??0)+1)}},ut=()=>{switch(Z){case"all_transactions":return t.jsx(Ms,{height:ie,children:j===!1&&b?.timePeriod!=null?t.jsx(Gt,{firstMonthOfFY:c,timeframe:"quarter",timePeriod:b.timePeriod,transactions:s?.allVendorTransactionsView?.transactions??[],isFirstLotLoading:j,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:A,onListInnerElementHeightChanged:d=>{re(d)},showLoadPrevious:gt}):null});case"spend_transactions":default:return s?.trendWithTransactions!=null?t.jsxs(t.Fragment,{children:[t.jsx(Xt,{allTabs:Rs,selectedTab:s.vendorSpendTrendFilterTabValue,onTabChange:d=>{const v=se.toVendorSpendTrendFilterTabsTypeStrict(d.id);v!=null&&X(v)},containerStyle:{marginLeft:l[8],marginRight:l[8]}}),t.jsx(_s,{ref:E,children:t.jsx(Jt,{firstMonthOfFY:c,trendWithTransactionsReport:s?.trendWithTransactions,isDetailPage:!1,graphColor:lt,initialTransactionListHeight:k.transactionListHeight.value(P),page:"vendorDetailPage",onTimePeriodChange:dt,onTransactionItemClick:A})})]}):null}},vt=()=>{H?.collapsableStatus==="expand"?_?.("collapse"):_?.("expand")},ye=ee.find(d=>Z===d.id);return t.jsxs(Fs,{children:[t.jsx(Ct,{onBackClick:D,title:r.vendorBasic?.name??x.common.strings.empty,style:{zIndex:3},hideSearchBtn:!0,backgroundColor:W.colors.grey5,enableTitleOnScroll:!0,source:"VendorDetailPage"}),s?.vendorSpend!=null?t.jsx(us,{isPageLoading:j,vendorName:r.vendorBasic?.name??x.common.strings.empty,spend:s?.vendorSpend,vendorLogo:i,isSpendTrendLoading:rt,onPercentChangeClick:ct}):null,j===!0&&t.jsx(We,{isPageLoading:j,children:t.jsx(_e,{size:P,children:t.jsx(zs,{})})}),j===!1&&r.vendorDetailLocalData!=null&&t.jsxs(We,{isPageLoading:j,children:[t.jsx(_e,{size:P,children:t.jsx($t,{...te,children:t.jsxs("form",{id:Me(Ne),onSubmit:te.handleSubmit(le),children:[t.jsx(Ds,{sectionId:y,selectedVendorId:f?.vendorId,selectedVendorDetails:r,selectedAccountId:f?.vendorCategory,selectedClassId:f?.vendorClass,selectedOwnerId:f?.vendorOwner,recommendations:f?.recommendations??[],allAccounts:s?.vendorViewDetails.accountList.accounts??[],allClasses:s?.vendorViewDetails.classList.classes??[],screenType:"edit",selectedVendorName:f?.vendorName,allOwners:s?.vendorViewDetails.ownerList??[],readOnlyMode:n,isDisabled:p,accountsHierarchyList:s?.vendorViewDetails.accountsHierarchyList??[],classHierarchyList:s?.vendorViewDetails.classHierarchyList??[],enableRecommendationUpdateCheckbox:!0,uiState:H,isFiling1099FeatureEnabled:e,onClickShowMoreOrLess:vt}),e&&H?.collapsableStatus==="expand"?t.jsxs(Hs,{collapsableStatus:H?.collapsableStatus??"expand",children:[t.jsx(xs,{selectedVendorDetails:r,isDisabled:p,onAddressClick:G,sectionId:ve,vendorTypeList:s?.vendorViewDetails.vendorTypeList??[]}),t.jsx(St,{emailRequired:!1,vendorContactInfos:be,sectionId:ue,vendorContactInfoWithType:ot,setVendorContactInfoWithType:nt,deleteContactConfirmationIndex:et,updateContactDeleteConfirmationIndex:tt,initialContactList:xe})]}):null]})})}),ye!=null?t.jsxs(Ns,{children:[t.jsx(Ws,{children:t.jsx(rs,{allTabs:ee,containerStyle:{marginLeft:l[8],marginRight:l[8],borderBottom:`1px solid ${W.colors.grey3}`,backgroundColor:W.colors.grey4,justifyContent:"left"},selectedTab:ye,onOptionSelectionChanged:ht})}),ut()]}):null]}),!j&&n!==!0&&(Dt(te.formState.dirtyFields)||Qe||Ze)?t.jsx(jt,{formId:Me(Ne),primaryBtn:{label:Fe.save,isLoading:it,style:{width:k.buttonWidth.value(P)},isDisabled:!1},cancelBtn:{label:Fe.cancel,style:{width:k.buttonWidth.value(P)},onClick:D}}):null]})},He=(e,s,c,i,n,p)=>({[y]:{vendorName:n?.vendorName??x.common.strings.empty,vendorOwner:{allOptions:Ee(p),selectedOption:n?.vendorOwner},vendorCategory:{allOptions:Ae(e,n?.recommendations),selectedOption:n?.vendorCategory},vendorClass:{allOptions:Be(s,n?.recommendations),selectedOption:n?.vendorClass},recommendedCategory:n?.recommendedCategory,recommendedClass:n?.recommendedClass,isRecommendedCategorySelected:n?.isCategoryUpdateSelected??!1,isRecommendedClassSelected:n?.isClassUpdateSelected??!1},[ve]:{legalName:n?.legalName??x.common.strings.empty,email:n?.vendorEmail??x.common.strings.empty,phone:n?.vendorPhone??x.common.strings.empty,vendorType:{allTypes:c,selectedType:n?.vendorType},tinType:n?.tin?.type??null,tinValue:n?.tin?.value??null,address:i},[ue]:n!=null&&n?.contacts!=null&&n?.contacts.length!==0?n.contacts:[{fullName:x.common.strings.empty,email:x.common.strings.empty,phone:x.common.strings.empty,id:x.common.strings.empty}]}),Bs=(e,s,c)=>{const i=e?.[y],n=e?.[ve];return{vendorCategory:i.vendorCategory.selectedOption,vendorClass:i.vendorClass.selectedOption,vendorId:s,recommendations:c?.recommendations,vendorName:i.vendorName,legalName:n.legalName,vendorOwner:i.vendorOwner?.selectedOption,recommendedCategory:i.recommendedCategory,recommendedClass:i.recommendedClass,isCategoryUpdateSelected:i.isRecommendedCategorySelected??!1,isClassUpdateSelected:i.isRecommendedClassSelected??!1,vendorEmail:n.email,vendorPhone:n.phone,vendorType:n.vendorType.selectedType,tin:{type:n.tinType??null,value:n.tinValue!=null?n.tinValue.replace(qt,x.common.strings.empty):null},address:n.address,contacts:e?.[ue]}};export{go as default,Me as formUniqueName,ve as vendor1099DetailsSectionId,y as vendorDetailsSectionId,Rs as vendorSpendTrendFilterTabs};
@@ -1 +1 @@
1
- import{j as S}from"./index-IgYBqF_x.js";import{b as C}from"./vendor-rkTZJa59.js";import{y as b}from"./DomesticWireDetailsPage-DH4keptD-D01iyx2r.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./BankAccountSection-BSpqPLea-DnHvULrV.js";import"./MagicLinkTitleSection-b4t7XGb8-Bc_IiT_b.js";import"./BankAccountWarningSection-BS0dlrJ3-BaiUaE4V.js";import"./MailingDetailsSection-Dk8tP8LP-YFImgirq.js";import"./LabeledAddressValueField-DxW5wUY3-fZGEKDYY.js";const V=({vendorViewDetails:r,bankAccountContext:t,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onFetchBankName:d,onAddressClick:c})=>{const{bankAccountCreationState:o,editVendorState:m,newVendorState:p,bankNameByRouting:u,bankAccountToCreate:k,fetchBankNameByRoutingStatus:l}=r,e=Object.assign({},m??p);return C.useEffect(()=>{(t==="vendor"&&o?.fetchState==="Completed"||e?.saveStatus?.fetchState==="Completed"&&t!=="express-pay")&&a()},[o,e?.saveStatus?.fetchState,a,t]),S.jsx(b,{bankAccountToCreate:k,bankAccountCreationState:o,bankNameByRouting:u,addressToEdit:e?.vendorNewAddressStatus?.addressToCreate,mailingAddress:e?.vendorAddress,addressType:"vendor_address",fetchBankNameByRoutingStatus:l,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onAddressClick:c,onFetchBankName:d})};export{V as default};
1
+ import{j as S}from"./index-DESjn-8d.js";import{b as C}from"./vendor-rkTZJa59.js";import{y as b}from"./DomesticWireDetailsPage-C7SMSdym-4FSz7OmR.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./BankAccountSection-8JPKANMP-DuTpIyau.js";import"./MagicLinkTitleSection-Dc8RKV1p-VRc37nwk.js";import"./BankAccountWarningSection-HW7t6lPN-CXdJbZl-.js";import"./MailingDetailsSection-BD9QWumq-Bo7ZhKA-.js";import"./LabeledAddressValueField-Ca10mEAm-D8rcZ6WA.js";const V=({vendorViewDetails:r,bankAccountContext:t,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onFetchBankName:d,onAddressClick:c})=>{const{bankAccountCreationState:o,editVendorState:m,newVendorState:p,bankNameByRouting:u,bankAccountToCreate:k,fetchBankNameByRoutingStatus:l}=r,e=Object.assign({},m??p);return C.useEffect(()=>{(t==="vendor"&&o?.fetchState==="Completed"||e?.saveStatus?.fetchState==="Completed"&&t!=="express-pay")&&a()},[o,e?.saveStatus?.fetchState,a,t]),S.jsx(b,{bankAccountToCreate:k,bankAccountCreationState:o,bankNameByRouting:u,addressToEdit:e?.vendorNewAddressStatus?.addressToCreate,mailingAddress:e?.vendorAddress,addressType:"vendor_address",fetchBankNameByRoutingStatus:l,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onAddressClick:c,onFetchBankName:d})};export{V as default};
@@ -1,4 +1,4 @@
1
- import{e as oe,u as Ne,B as ne,a as ke,cD as K,gQ as de,ca as Ae,C as w,j as t,aX as Be,$ as Ee,F as Re,cd as C,o as s,ch as Oe,gJ as We,fL as qe,cl as Me,gK as He,gL as Ue,ct as Ke,a4 as Ge,cv as Ye,cE as Ze,q as c,a3 as Qe,bh as D,c8 as _e,gR as Je,g as I,eW as Xe,bO as et,t as ce,eF as tt,gS as st,gT as lt,gU as M,cF as it}from"./index-IgYBqF_x.js";import{b as y,n as a}from"./vendor-rkTZJa59.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-Dm1etnU5-C8--qfVi.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const te={largeLabelWidth:new w(160,210,230),paddingBottom:new w(c[3],c[2])},j=(e,i)=>`${e}.${i}`;function at(e){const{loadingState:i}=e;return t.jsx(ot,{...e,isDisabled:e.isDisabled||i==="In-Progress"?"disabled":void 0})}function ot({googleAPIKey:e,addressToEdit:i,sectionId:o,isDisabled:h,style:O}){const E=oe(),u=ne.getLocalizedStrings().companyPassport,p=te.largeLabelWidth.value(E);return t.jsxs(t.Fragment,{children:[t.jsx(se,{type:"hidden",value:"noAutoFill"}),t.jsx(nt,{style:O,children:t.jsxs(dt,{children:[t.jsx(st,{isDisabled:h,label:{label:u.address.street,width:p,showBullet:!0},addressField:{name:j(o,"street"),defaultValue:{addressString:i?.street[0]??"",addressValue:i!=null?de(i):void 0},placeholder:M(u.address.street),registerOptions:{required:!0,validate:v=>v!=null?!!v.addressString:!1},autoComplete:"new-password",googleAPIKey:e,addressFormatter:lt},style:{border:"none",width:"100%",outline:"none"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.suite,width:p,showBullet:!0},style:{wordBreak:"break-word",width:"100%",outline:"none"},text:{type:"text",name:j(o,"suite"),defaultValue:i?.street[1],placeholder:u.address.suitePlaceholder,autoComplete:"new-password"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.city,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"city"),defaultValue:i?.city,placeholder:M(u.address.city),autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.state,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"state"),defaultValue:i?.state,placeholder:M(u.address.state),autoComplete:"new-password",options:{required:!0}}}),t.jsx(se,{readOnly:!0,value:"noAutoFill"}),t.jsx(it,{isDisabled:h,label:{label:u.address.country,width:p,showBullet:!0},style:{width:"100%",outline:"none"},countrySelectField:{name:j(o,"country"),placeholder:u.address.countryPlaceholder,defaultValue:K(i?.country),registerOptions:{validate:v=>!!(v!=null&&v.selectedOption)}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.zipCode,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"postalCode"),defaultValue:i?.postalCode,placeholder:u.address.zipCodePlaceHolder,autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.secondaryInfo,width:p,showBullet:!0},style:{paddingBottom:te.paddingBottom.valuePx(E),width:"100%",outline:"none"},text:{type:"text",name:j(o,"secondaryInfo"),defaultValue:i?.street[2],placeholder:u.address.secondaryInfoPlaceholder,autoComplete:"new-password"}})]})})]})}const nt=a.div`
1
+ import{e as oe,u as ze,R as ne,a as Ae,cD as K,gQ as de,ca as ke,C as w,j as t,aX as Be,W as Re,F as Ee,cd as C,o as s,ch as Oe,gJ as We,fL as qe,cl as Me,gK as He,gL as Ue,ct as Ke,a4 as Ge,cv as Ye,cE as Qe,q as c,a3 as Ze,bh as D,c8 as Je,gR as Xe,f as I,eW as _e,bO as et,y as ce,eF as tt,gS as st,gT as lt,gU as M,cF as it}from"./index-DESjn-8d.js";import{b as y,n as a}from"./vendor-rkTZJa59.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-BoizuD7H-Ce48u3nd.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const te={largeLabelWidth:new w(160,210,230),paddingBottom:new w(c[3],c[2])},j=(e,i)=>`${e}.${i}`;function at(e){const{loadingState:i}=e;return t.jsx(ot,{...e,isDisabled:e.isDisabled||i==="In-Progress"?"disabled":void 0})}function ot({googleAPIKey:e,addressToEdit:i,sectionId:o,isDisabled:h,style:O}){const R=oe(),u=ne.getLocalizedStrings().companyPassport,p=te.largeLabelWidth.value(R);return t.jsxs(t.Fragment,{children:[t.jsx(se,{type:"hidden",value:"noAutoFill"}),t.jsx(nt,{style:O,children:t.jsxs(dt,{children:[t.jsx(st,{isDisabled:h,label:{label:u.address.street,width:p,showBullet:!0},addressField:{name:j(o,"street"),defaultValue:{addressString:i?.street[0]??"",addressValue:i!=null?de(i):void 0},placeholder:M(u.address.street),registerOptions:{required:!0,validate:v=>v!=null?!!v.addressString:!1},autoComplete:"new-password",googleAPIKey:e,addressFormatter:lt},style:{border:"none",width:"100%",outline:"none"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.suite,width:p,showBullet:!0},style:{wordBreak:"break-word",width:"100%",outline:"none"},text:{type:"text",name:j(o,"suite"),defaultValue:i?.street[1],placeholder:u.address.suitePlaceholder,autoComplete:"new-password"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.city,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"city"),defaultValue:i?.city,placeholder:M(u.address.city),autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.state,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"state"),defaultValue:i?.state,placeholder:M(u.address.state),autoComplete:"new-password",options:{required:!0}}}),t.jsx(se,{readOnly:!0,value:"noAutoFill"}),t.jsx(it,{isDisabled:h,label:{label:u.address.country,width:p,showBullet:!0},style:{width:"100%",outline:"none"},countrySelectField:{name:j(o,"country"),placeholder:u.address.countryPlaceholder,defaultValue:K(i?.country),registerOptions:{validate:v=>!!(v!=null&&v.selectedOption)}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.zipCode,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"postalCode"),defaultValue:i?.postalCode,placeholder:u.address.zipCodePlaceHolder,autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.secondaryInfo,width:p,showBullet:!0},style:{paddingBottom:te.paddingBottom.valuePx(R),width:"100%",outline:"none"},text:{type:"text",name:j(o,"secondaryInfo"),defaultValue:i?.street[2],placeholder:u.address.secondaryInfoPlaceholder,autoComplete:"new-password"}})]})})]})}const nt=a.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-left: ${s.sp3};
@@ -33,12 +33,12 @@ import{e as oe,u as Ne,B as ne,a as ke,cD as K,gQ as de,ca as Ae,C as w,j as t,a
33
33
  display: flex;
34
34
  justify-content: space-between;
35
35
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
36
- `,ht=()=>t.jsx(ct,{children:[...Array(1)].map((e,i)=>t.jsxs(ut,{children:[t.jsx(D,{style:{marginBottom:s.sp4},width:120,height:c[4]}),t.jsxs(pt,{children:[[...Array(5)].map((o,h)=>t.jsxs(H,{children:[t.jsx(D,{width:70,height:c[4]}),t.jsx(D,{width:140,height:c[4]})]},h)),t.jsx(H,{children:t.jsx(D,{width:120,height:c[4]})}),t.jsx(gt,{children:[...Array(7)].map((o,h)=>t.jsxs(H,{children:[t.jsx(D,{width:70,height:c[4]}),t.jsx(D,{width:140,height:c[4]})]},h))})]})]},i))}),$={largeLabelWidth:new w(130,200,300),labelMarginLeft:new w(c[3],c[4]),labelMarginTop:new w(c[2],c[3]),labelMarginBottom:new w(c[2],c[3]),containerPaddingLeft:new w(c[3],c[6],c[8]),containerPaddingRight:new w(c[3],c[6],c[8])},mt={zIndex:2,minHeight:62},l="vendor1099FilingSectionId",ue="legalName",pe="email",ge="phone",he="taxClassification",me="tinType",xe="tinValue",xt="street",yt="suite",ft="city",bt="state",wt="country",$t="countryCode",vt="postalCode",jt="secondaryInfo",U=e=>`${e}_form`,P=(e,i)=>`${e}.${i}`,{spendManagement:St,common:r}=ne.getLocalizedStrings(),S=St.billPay.vendorCreation,k=r.labels,le=r.footer,Xt=e=>{const i=oe(),o=new AbortController,h=Ne(),O=o.signal,{onVendorFiling1099UploadDetailsSave:E,vendorId:u,vendorFiling1099UploadDetailsViewState:p,onSaveChangesToLocalStore:v,vendorFiling1099UploadDetails:F,fetchVendorFetchStatus:G,onAddressEditHandler:ye,goBackToListPage:Y,onResetVendorFiling1099FormStatus:fe,googleAPIKey:be}=e,{vendor1099DetailsSaveStatus:T,vendor1099DetailsLocalData:d,w9FormUploadStatus:Z}=p,[Q,_]=y.useState(F.addressStatus?.addressToCreate??{street:[],city:"",state:"",country:"",countryCode:"",postalCode:""}),J=y.useRef(null),{vendorTypeList:W}=F,z=y.useRef(null),N=y.useRef(null),X=y.useRef(!1);y.useEffect(()=>{N.current===null&&d.legalName!=r.strings.empty&&p.vendor1099DetailsAutoFilledValues?.legalName===!0&&(N.current=d.legalName)},[d.legalName]),y.useEffect(()=>{z.current===null&&d.legalName!==r.strings.empty&&(z.current=d.legalName)},[d.legalName]),y.useEffect(()=>{F?.addressStatus?.addressToCreate&&p.vendor1099DetailsAutoFilledValues?.address===!0&&X.current===!1&&(_(F.addressStatus.addressToCreate),X.current=!0)},[F,p.vendor1099DetailsAutoFilledValues?.address]);const m=ke({mode:"onSubmit",defaultValues:ae(d,W??[],Q),values:ae(d,W??[],Q)}),{isValid:we}=m.formState,$e=m.handleSubmit(()=>{we&&(ye(m.getValues()),E(u,O))}),{vendor1099DetailsAutoFilledValues:f}=p,ve=()=>f?.tin.type===!0||f?.tin.value===!0||f?.legalName===!0||f?.taxClassification===!0,je=async(x,n)=>{if(x!=null){const g={...n},Ve=g[l].legalName,Le=g[l].email,De=g[l].phone,Pe=g[l].taxClassification,Ie=g[l].tinType,ee=g[l].tinValue,Te={legalName:Ve??r.strings.empty,vendorId:u,contact:{email:Le??r.strings.empty,phone:De??r.strings.empty,fullName:d.contact?.fullName??r.strings.empty,id:d.contact?.id??r.strings.empty},taxClassification:Pe.selectedType??r.strings.empty,tin:{type:Ie??null,value:ee??null},tinValue:ee??null};if(x.includes(`${l}.street`)&&n.vendor1099FilingSectionId.street!=null){const{addressValue:L}=n.vendor1099FilingSectionId.street,ze=m.getValues(`${l}.country`),q=K(L?.country);m.setValue(l,{...n[l],street:n.vendor1099FilingSectionId.street,city:L?.locality??"",state:L?.administrativeAreaLevel1??"",country:q,countryCode:L?.countryCode??"",postalCode:L?.postalCode??"",secondaryInfo:n.vendor1099FilingSectionId.secondaryInfo??"",suite:n.vendor1099FilingSectionId.suite??""}),Ye(m.formState.errors,`${l}.city`)&&L?.locality&&m.trigger(`${l}.city`),ze.selectedOption!==q.selectedOption&&m.setValue(`${l}.country`,q)}else x==="vendor1099FilingSectionId.country"&&n[l].country.selectedOption!=null&&m.setValue(`${l}.countryCode`,Ze(n[l].country.selectedOption));v(Te)}};y.useEffect(()=>{const x=m.watch((n,{name:g})=>{g!=null&&n!=null&&((g.startsWith(`${l}.street`)||g.startsWith(`${l}.city`)||g.startsWith(`${l}.state`)||g.startsWith(`${l}.country`)||g.startsWith(`${l}.postalCode`))&&n[l]!=null&&_({street:[n[l].street?.addressString??r.strings.empty,n[l].suite??r.strings.empty,n[l].secondaryInfo??r.strings.empty],city:n[l].city??r.strings.empty,state:n[l].state??r.strings.empty,country:n[l].country?.selectedOption??r.strings.empty,countryCode:n[l].countryCode,postalCode:n[l].postalCode??r.strings.empty}),Ae(()=>je(g,n)))});return()=>{x.unsubscribe()}});const V=$.largeLabelWidth.value(i),Se=T.error?.message??r.strings.empty,Ce=T.error?.title??r.strings.empty,Fe=()=>T?.fetchState==="In-Progress"||G?.fetchState==="In-Progress"||Z?.fetchState==="In-Progress",b=G?.fetchState==="In-Progress"||Z?.fetchState==="In-Progress";return y.useEffect(()=>()=>{o.abort(),fe()},[]),t.jsx(Ft,{windowSize:i,children:t.jsxs(Ct,{windowSize:i,children:[t.jsxs(Vt,{windowSize:i,ref:J,children:[t.jsx(Be,{title:(p.vendor1099DetailsAutoFilledValues?.legalName===!0?N.current:z.current)??r.strings.empty,backgroundColor:h.colors.grey4,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:t.jsx(Dt,{windowSize:i,onClick:Y,"data-testid":Ee("vendor-filling-1099-details-editable-page-close-icon")}),scrollableContent:J,enableTitleOnScroll:!0,scrollThreshold:50,source:"VendorFiling1099EditablePage"}),b===!0?t.jsx(ie,{windowSize:i,isLoading:b,children:t.jsx(ht,{})}):t.jsxs(ie,{windowSize:i,isLoading:b,children:[i==="small"?t.jsx(Pt,{windowSize:i,children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?N.current:z.current}):t.jsx(It,{children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?N.current:z.current}),T.fetchState==="Error"?t.jsxs(Tt,{children:[t.jsx(At,{}),t.jsxs(zt,{children:[t.jsx(Nt,{children:Ce}),t.jsx(kt,{children:Se})]})]}):null,ve()&&t.jsxs(Rt,{children:[t.jsx(B,{}),t.jsx(Ot,{children:S.vendorDetails.banner})]}),t.jsx(Re,{...m,children:t.jsx("form",{id:U(l),onSubmit:$e,children:t.jsxs(Lt,{isLoading:b,children:[t.jsx(R,{children:f?.legalName===!0&&!b?t.jsx(B,{}):null}),t.jsx(C,{label:{label:k.legalName,width:V,style:{marginLeft:s.sp4}},style:{width:"auto",borderTopLeftRadius:s.sp2,borderTopRightRadius:s.sp2},text:{type:"text",name:P(l,ue),defaultValue:d.legalName,placeholder:S.vendorDetails.legalNamePlaceHolder,options:{required:!0,validate:x=>x!==r.strings.empty}}}),t.jsx(A,{}),t.jsxs(t.Fragment,{children:[t.jsx(C,{label:{label:k.email,width:V,style:{marginLeft:s.sp4}},style:{width:"auto"},text:{type:"email",name:P(l,pe),defaultValue:d.contact?.email,placeholder:S.vendorDetails.emailPlaceHolder,options:{required:!1}}}),t.jsx(A,{}),t.jsx(Oe,{label:{label:k.phone,width:V,style:{marginLeft:s.sp4}},text:{name:P(l,ge),placeholder:S.vendorDetails.phonePlaceHolder,defaultValue:d.contact?.phone,autoComplete:"off",options:{required:!1}},style:{width:"auto"}}),t.jsx(A,{})]}),t.jsxs(Wt,{isLoading:b,children:[t.jsx(R,{children:f?.taxClassification===!0&&!b?t.jsx(B,{}):null}),t.jsxs(re,{children:[t.jsx(Bt,{width:V,windowSize:i,children:k.taxClassification}),t.jsx(Et,{size:i,labelWidth:V,children:t.jsx(We,{name:P(l,he),value:{allTypes:W?.map(x=>({code:x.code,name:x.name,label:x.name}))??[],selectedType:d.taxClassification},placeholderLabel:S.vendorDetails.taxClassificationPlaceHolder})})]})]}),t.jsx(A,{}),t.jsx(R,{children:(f?.tin.type===!0||f?.tin.value===!0)&&!b?t.jsx(B,{}):null}),t.jsx(re,{children:t.jsx(rt,{name:P(l,me),menuPlacement:"auto",style:{height:s.sp6,width:"100%",marginLeft:s.sp4},dropdownStyle:{width:"40%"},defaultValue:{dropDownValue:d.tin?.type??r.strings.empty,dropDownList:[{code:r.texts.ein,label:r.texts.ein.toUpperCase()},{code:r.texts.ssn,label:r.texts.ssn.toUpperCase()}]},registerOptions:{required:!1},label:{width:V},placeholderLabel:S.placeholders.tinType,formattedText:{type:"text",name:P(l,xe),placeholder:S.placeholders.tinValue,format:d.tin?.type===r.texts.ssn?He:Ue,registerOptions:{required:!!d?.tin?.type,pattern:d.tin?.type===r.texts.ssn?qe:Me},style:{width:"100%",height:s.sp6},defaultValue:d.tin?.value??r.strings.empty,maxLength:9,allowLeadingZeros:!0,autoComplete:"new-password",isDisabled:d.tin?.type===null?"disabled":void 0}})}),t.jsx(A,{}),t.jsxs(qt,{children:[t.jsx(R,{children:f?.address===!0&&!b?t.jsx(B,{}):null}),t.jsx(Ke,{label:k.address,style:{marginLeft:s.sp4,marginTop:$.labelMarginTop.value(i),marginBottom:s.sp2}}),t.jsx(at,{googleAPIKey:be,formId:U(l),addressToEdit:F?.addressStatus?.addressToCreate,sectionId:l})]})]})})})]})]}),t.jsx(Ge,{separatorStyle:{marginRight:s.sp4},formId:U(l),cancelBtn:{label:le.cancel,style:{width:"83px"},onClick:Y},primaryBtn:{label:le.save,isLoading:T.fetchState==="In-Progress",style:{width:"83px"},isDisabled:Fe()},style:mt})]})})},Ct=a.div`
36
+ `,ht=()=>t.jsx(ct,{children:[...Array(1)].map((e,i)=>t.jsxs(ut,{children:[t.jsx(D,{style:{marginBottom:s.sp4},width:120,height:c[4]}),t.jsxs(pt,{children:[[...Array(5)].map((o,h)=>t.jsxs(H,{children:[t.jsx(D,{width:70,height:c[4]}),t.jsx(D,{width:140,height:c[4]})]},h)),t.jsx(H,{children:t.jsx(D,{width:120,height:c[4]})}),t.jsx(gt,{children:[...Array(7)].map((o,h)=>t.jsxs(H,{children:[t.jsx(D,{width:70,height:c[4]}),t.jsx(D,{width:140,height:c[4]})]},h))})]})]},i))}),$={largeLabelWidth:new w(130,200,300),labelMarginLeft:new w(c[3],c[4]),labelMarginTop:new w(c[2],c[3]),labelMarginBottom:new w(c[2],c[3]),containerPaddingLeft:new w(c[3],c[6],c[8]),containerPaddingRight:new w(c[3],c[6],c[8])},mt={zIndex:2,minHeight:62},l="vendor1099FilingSectionId",ue="legalName",pe="email",ge="phone",he="taxClassification",me="tinType",xe="tinValue",xt="street",yt="suite",ft="city",bt="state",wt="country",$t="countryCode",vt="postalCode",jt="secondaryInfo",U=e=>`${e}_form`,P=(e,i)=>`${e}.${i}`,{spendManagement:St,common:r}=ne.getLocalizedStrings(),S=St.billPay.vendorCreation,A=r.labels,le=r.footer,_t=e=>{const i=oe(),o=new AbortController,h=ze(),O=o.signal,{onVendorFiling1099UploadDetailsSave:R,vendorId:u,vendorFiling1099UploadDetailsViewState:p,onSaveChangesToLocalStore:v,vendorFiling1099UploadDetails:L,fetchVendorFetchStatus:G,onAddressEditHandler:ye,goBackToListPage:Y,onResetVendorFiling1099FormStatus:fe,googleAPIKey:be}=e,{vendor1099DetailsSaveStatus:T,vendor1099DetailsLocalData:d,w9FormUploadStatus:Q}=p,[Z,J]=y.useState(L.addressStatus?.addressToCreate??{street:[],city:"",state:"",country:"",countryCode:"",postalCode:""}),X=y.useRef(null),{vendorTypeList:W}=L,N=y.useRef(null),z=y.useRef(null),_=y.useRef(!1);y.useEffect(()=>{z.current===null&&d.legalName!=r.strings.empty&&p.vendor1099DetailsAutoFilledValues?.legalName===!0&&(z.current=d.legalName)},[d.legalName]),y.useEffect(()=>{N.current===null&&d.legalName!==r.strings.empty&&(N.current=d.legalName)},[d.legalName]),y.useEffect(()=>{L?.addressStatus?.addressToCreate&&p.vendor1099DetailsAutoFilledValues?.address===!0&&_.current===!1&&(J(L.addressStatus.addressToCreate),_.current=!0)},[L,p.vendor1099DetailsAutoFilledValues?.address]);const m=Ae({mode:"onSubmit",defaultValues:ae(d,W??[],Z),values:ae(d,W??[],Z)}),{isValid:we}=m.formState,$e=m.handleSubmit(()=>{we&&(ye(m.getValues()),R(u,O))}),{vendor1099DetailsAutoFilledValues:f}=p,ve=()=>f?.tin.type===!0||f?.tin.value===!0||f?.legalName===!0||f?.taxClassification===!0,je=async(x,n)=>{if(x!=null){const g={...n},Ve=g[l].legalName,Fe=g[l].email,De=g[l].phone,Pe=g[l].taxClassification,Ie=g[l].tinType,ee=g[l].tinValue,Te={legalName:Ve??r.strings.empty,vendorId:u,contact:{email:Fe??r.strings.empty,phone:De??r.strings.empty,fullName:d.contact?.fullName??r.strings.empty,id:d.contact?.id??r.strings.empty},taxClassification:Pe.selectedType??r.strings.empty,tin:{type:Ie??null,value:ee??null},tinValue:ee??null};if(x.includes(`${l}.street`)&&n.vendor1099FilingSectionId.street!=null){const{addressValue:F}=n.vendor1099FilingSectionId.street,Ne=m.getValues(`${l}.country`),q=K(F?.country);m.setValue(l,{...n[l],street:n.vendor1099FilingSectionId.street,city:F?.locality??"",state:F?.administrativeAreaLevel1??"",country:q,countryCode:F?.countryCode??"",postalCode:F?.postalCode??"",secondaryInfo:n.vendor1099FilingSectionId.secondaryInfo??"",suite:n.vendor1099FilingSectionId.suite??""}),Ye(m.formState.errors,`${l}.city`)&&F?.locality&&m.trigger(`${l}.city`),Ne.selectedOption!==q.selectedOption&&m.setValue(`${l}.country`,q)}else x==="vendor1099FilingSectionId.country"&&n[l].country.selectedOption!=null&&m.setValue(`${l}.countryCode`,Qe(n[l].country.selectedOption));v(Te)}};y.useEffect(()=>{const x=m.watch((n,{name:g})=>{g!=null&&n!=null&&((g.startsWith(`${l}.street`)||g.startsWith(`${l}.city`)||g.startsWith(`${l}.state`)||g.startsWith(`${l}.country`)||g.startsWith(`${l}.postalCode`))&&n[l]!=null&&J({street:[n[l].street?.addressString??r.strings.empty,n[l].suite??r.strings.empty,n[l].secondaryInfo??r.strings.empty],city:n[l].city??r.strings.empty,state:n[l].state??r.strings.empty,country:n[l].country?.selectedOption??r.strings.empty,countryCode:n[l].countryCode,postalCode:n[l].postalCode??r.strings.empty}),ke(()=>je(g,n)))});return()=>{x.unsubscribe()}});const V=$.largeLabelWidth.value(i),Se=T.error?.message??r.strings.empty,Ce=T.error?.title??r.strings.empty,Le=()=>T?.fetchState==="In-Progress"||G?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",b=G?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress";return y.useEffect(()=>()=>{o.abort(),fe()},[]),t.jsx(Lt,{windowSize:i,children:t.jsxs(Ct,{windowSize:i,children:[t.jsxs(Vt,{windowSize:i,ref:X,children:[t.jsx(Be,{title:(p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current)??r.strings.empty,backgroundColor:h.colors.grey4,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:t.jsx(Dt,{windowSize:i,onClick:Y,"data-testid":Re("vendor-filling-1099-details-editable-page-close-icon")}),scrollableContent:X,enableTitleOnScroll:!0,scrollThreshold:50,source:"VendorFiling1099EditablePage"}),b===!0?t.jsx(ie,{windowSize:i,isLoading:b,children:t.jsx(ht,{})}):t.jsxs(ie,{windowSize:i,isLoading:b,children:[i==="small"?t.jsx(Pt,{windowSize:i,children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current}):t.jsx(It,{children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current}),T.fetchState==="Error"?t.jsxs(Tt,{children:[t.jsx(kt,{}),t.jsxs(Nt,{children:[t.jsx(zt,{children:Ce}),t.jsx(At,{children:Se})]})]}):null,ve()&&t.jsxs(Et,{children:[t.jsx(B,{}),t.jsx(Ot,{children:S.vendorDetails.banner})]}),t.jsx(Ee,{...m,children:t.jsx("form",{id:U(l),onSubmit:$e,children:t.jsxs(Ft,{isLoading:b,children:[t.jsx(E,{children:f?.legalName===!0&&!b?t.jsx(B,{}):null}),t.jsx(C,{label:{label:A.legalName,width:V,style:{marginLeft:s.sp4}},style:{width:"auto",borderTopLeftRadius:s.sp2,borderTopRightRadius:s.sp2},text:{type:"text",name:P(l,ue),defaultValue:d.legalName,placeholder:S.vendorDetails.legalNamePlaceHolder,options:{required:!0,validate:x=>x!==r.strings.empty}}}),t.jsx(k,{}),t.jsxs(t.Fragment,{children:[t.jsx(C,{label:{label:A.email,width:V,style:{marginLeft:s.sp4}},style:{width:"auto"},text:{type:"email",name:P(l,pe),defaultValue:d.contact?.email,placeholder:S.vendorDetails.emailPlaceHolder,options:{required:!1}}}),t.jsx(k,{}),t.jsx(Oe,{label:{label:A.phone,width:V,style:{marginLeft:s.sp4}},text:{name:P(l,ge),placeholder:S.vendorDetails.phonePlaceHolder,defaultValue:d.contact?.phone,autoComplete:"off",options:{required:!1}},style:{width:"auto"}}),t.jsx(k,{})]}),t.jsxs(Wt,{isLoading:b,children:[t.jsx(E,{children:f?.taxClassification===!0&&!b?t.jsx(B,{}):null}),t.jsxs(re,{children:[t.jsx(Bt,{width:V,windowSize:i,children:A.taxClassification}),t.jsx(Rt,{size:i,labelWidth:V,children:t.jsx(We,{name:P(l,he),value:{allTypes:W?.map(x=>({code:x.code,name:x.name,label:x.name}))??[],selectedType:d.taxClassification},placeholderLabel:S.vendorDetails.taxClassificationPlaceHolder})})]})]}),t.jsx(k,{}),t.jsx(E,{children:(f?.tin.type===!0||f?.tin.value===!0)&&!b?t.jsx(B,{}):null}),t.jsx(re,{children:t.jsx(rt,{name:P(l,me),menuPlacement:"auto",style:{height:s.sp6,width:"100%",marginLeft:s.sp4},dropdownStyle:{width:"40%"},defaultValue:{dropDownValue:d.tin?.type??r.strings.empty,dropDownList:[{code:r.texts.ein,label:r.texts.ein.toUpperCase()},{code:r.texts.ssn,label:r.texts.ssn.toUpperCase()}]},registerOptions:{required:!1},label:{width:V},placeholderLabel:S.placeholders.tinType,formattedText:{type:"text",name:P(l,xe),placeholder:S.placeholders.tinValue,format:d.tin?.type===r.texts.ssn?He:Ue,registerOptions:{required:!!d?.tin?.type,pattern:d.tin?.type===r.texts.ssn?qe:Me},style:{width:"100%",height:s.sp6},defaultValue:d.tin?.value??r.strings.empty,maxLength:9,allowLeadingZeros:!0,autoComplete:"new-password",isDisabled:d.tin?.type===null?"disabled":void 0}})}),t.jsx(k,{}),t.jsxs(qt,{children:[t.jsx(E,{children:f?.address===!0&&!b?t.jsx(B,{}):null}),t.jsx(Ke,{label:A.address,style:{marginLeft:s.sp4,marginTop:$.labelMarginTop.value(i),marginBottom:s.sp2}}),t.jsx(at,{googleAPIKey:be,formId:U(l),addressToEdit:L?.addressStatus?.addressToCreate,sectionId:l})]})]})})})]})]}),t.jsx(Ge,{separatorStyle:{marginRight:s.sp4},formId:U(l),cancelBtn:{label:le.cancel,style:{width:"83px"},onClick:Y},primaryBtn:{label:le.save,isLoading:T.fetchState==="In-Progress",style:{width:"83px"},isDisabled:Le()},style:mt})]})})},Ct=a.div`
37
37
  display: flex;
38
38
  flex-direction: column;
39
39
  height: 100%;
40
40
  justify-content: space-between;
41
- `,Ft=a.div`
41
+ `,Lt=a.div`
42
42
  height: 100%;
43
43
  `,ie=a.div`
44
44
  padding-left: ${e=>$.containerPaddingLeft.valuePx(e.windowSize)};
@@ -52,7 +52,7 @@ import{e as oe,u as Ne,B as ne,a as ke,cD as K,gQ as de,ca as Ae,C as w,j as t,a
52
52
  overflow-x: hidden;
53
53
  height: 100%;
54
54
  width: 100%;
55
- `,Lt=a.div`
55
+ `,Ft=a.div`
56
56
  display: flex;
57
57
  flex-direction: column;
58
58
  background-color: ${e=>e.isLoading?void 0:e.theme.colors.grey5};
@@ -60,13 +60,13 @@ import{e as oe,u as Ne,B as ne,a as ke,cD as K,gQ as de,ca as Ae,C as w,j as t,a
60
60
  box-shadow: ${e=>e.isLoading?void 0:`${s.sp0} 2px ${s.sp1} ${e.theme.colors.dropShadowNormal}`};
61
61
  border-radius: ${s.sp2};
62
62
  position: relative;
63
- `,A=a.div`
63
+ `,k=a.div`
64
64
  display: flex;
65
65
  flex: 1;
66
66
  background-color: ${e=>e.theme.colors.grey3};
67
67
  min-height: 1px;
68
68
  max-height: 1px;
69
- `,Dt=a(Qe)`
69
+ `,Dt=a(Ze)`
70
70
  cursor: pointer;
71
71
  color: ${e=>e.theme.colors.hero};
72
72
  width: ${s.sp4};
@@ -75,11 +75,11 @@ import{e as oe,u as Ne,B as ne,a as ke,cD as K,gQ as de,ca as Ae,C as w,j as t,a
75
75
  &:hover {
76
76
  color: ${e=>e.theme.colors.primary};
77
77
  }
78
- `,Pt=a(_e)`
78
+ `,Pt=a(Je)`
79
79
  color: ${e=>e.theme.colors.primary};
80
80
  margin-bottom: ${s.sp0};
81
81
  margin-right: ${s.sp3};
82
- `,It=a(Je)`
82
+ `,It=a(Xe)`
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  margin-bottom: ${s.sp4};
85
85
  `,Tt=a.div`
@@ -90,14 +90,14 @@ import{e as oe,u as Ne,B as ne,a as ke,cD as K,gQ as de,ca as Ae,C as w,j as t,a
90
90
  gap: ${s.sp2};
91
91
  padding: ${s.sp3} ${s.sp4};
92
92
  margin-bottom: ${s.sp3};
93
- `,zt=a.div`
93
+ `,Nt=a.div`
94
94
  display: flex;
95
95
  flex-direction: column;
96
- `,Nt=a(et)`
96
+ `,zt=a(et)`
97
97
  color: ${I.brandColorGoldDark};
98
- `,kt=a(ce)`
98
+ `,At=a(ce)`
99
99
  color: ${I.brandColorGoldDark};
100
- `,At=a(Xe)`
100
+ `,kt=a(_e)`
101
101
  width: ${s.sp4};
102
102
  min-height: ${s.sp4};
103
103
  width: ${s.sp4};
@@ -132,7 +132,7 @@ import{e as oe,u as Ne,B as ne,a as ke,cD as K,gQ as de,ca as Ae,C as w,j as t,a
132
132
  color: ${e=>e.theme.colors.hero};
133
133
  margin: ${e=>`${$.labelMarginTop.valuePx(e.windowSize)} ${$.labelMarginLeft.valuePx(e.windowSize)} ${$.labelMarginBottom.valuePx(e.windowSize)} ${$.labelMarginLeft.valuePx(e.windowSize)}`};
134
134
  padding-right: ${s.sp5};
135
- `,Et=a.div`
135
+ `,Rt=a.div`
136
136
  width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"100%"};
137
137
  display: flex;
138
138
  flex-grow: ${e=>e.size==="small"?1:0};
@@ -142,7 +142,7 @@ import{e as oe,u as Ne,B as ne,a as ke,cD as K,gQ as de,ca as Ae,C as w,j as t,a
142
142
  color: ${e=>e.theme.colors.primary};
143
143
  width: ${s.sp3};
144
144
  height: ${s.sp3};
145
- `,Rt=a.div`
145
+ `,Et=a.div`
146
146
  display: flex;
147
147
  gap: ${s.sp2};
148
148
  border: 1px solid ${e=>e.theme.colors.grey3};
@@ -156,7 +156,7 @@ import{e as oe,u as Ne,B as ne,a as ke,cD as K,gQ as de,ca as Ae,C as w,j as t,a
156
156
  color: ${e=>e.theme.colors.hero};
157
157
  `,Wt=a.div`
158
158
  position: relative;
159
- `,R=a.div`
159
+ `,E=a.div`
160
160
  position: absolute;
161
161
  top: 20px;
162
162
  left: -${s.sp4};
@@ -172,4 +172,4 @@ import{e as oe,u as Ne,B as ne,a as ke,cD as K,gQ as de,ca as Ae,C as w,j as t,a
172
172
  border-bottom-left-radius: inherit;
173
173
  border-bottom-right-radius: inherit;
174
174
  }
175
- `,ae=(e,i,o)=>({[l]:{[ue]:e.legalName??r.strings.empty,[pe]:e.contact?.email??r.strings.empty,[ge]:e.contact?.phone??r.strings.empty,[he]:{selectedType:e.taxClassification,allTypes:i},[me]:e.tin?.type??null,[xe]:e.tin?.value??null,[xt]:{addressString:o?.street[0]??"",addressValue:o!=null?de(o):void 0},[ft]:o?.city??"",[bt]:o?.state??"",[wt]:K(o?.country),[$t]:o?.countryCode??"",[vt]:o?.postalCode??"",[jt]:o?.street[2]??"",[yt]:o?.street[1]??""}});export{Xt as default,U as uniqueFormName};
175
+ `,ae=(e,i,o)=>({[l]:{[ue]:e.legalName??r.strings.empty,[pe]:e.contact?.email??r.strings.empty,[ge]:e.contact?.phone??r.strings.empty,[he]:{selectedType:e.taxClassification,allTypes:i},[me]:e.tin?.type??null,[xe]:e.tin?.value??null,[xt]:{addressString:o?.street[0]??"",addressValue:o!=null?de(o):void 0},[ft]:o?.city??"",[bt]:o?.state??"",[wt]:K(o?.country),[$t]:o?.countryCode??"",[vt]:o?.postalCode??"",[jt]:o?.street[2]??"",[yt]:o?.street[1]??""}});export{_t as default,U as uniqueFormName};