@zeniai/web-cockpit-ui 1.15.31-qa → 1.15.32-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 (309) hide show
  1. package/dist/assets/ACHDetailsPage-tTJc_EMP-DYpFLcu6.js +21 -0
  2. package/dist/assets/{AIPerformancePage-BtDuOBey-DmPphsXg.js → AIPerformancePage-ByUb4gCe-JuDAfC8h.js} +18 -18
  3. package/dist/assets/AccountInfoPage-VLhd4vnL-DXlupn44.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BLF92_vF-YYhij8lg.js → AccountInfoPageContent-BHD9tOzB-DoEbtT2v.js} +15 -15
  5. package/dist/assets/{AccountLockedInfoModal-AsMkXu1I-CVe3Hy3M.js → AccountLockedInfoModal-DNjLeZYt-D2fsUG4f.js} +2 -2
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CkaBrm5K-DIIw5FlK.js → AccountReconDetailsDrawerPage-BEfA1bsG-I47iAx1D.js} +10 -10
  7. package/dist/assets/{AccountRow-aEmcYP8T-BbTS3-CK.js → AccountRow-CK5HLVrf-CkNAMQ2u.js} +19 -19
  8. package/dist/assets/{AccountsPromoCardStack-C0At5pn8-DXWBY6OH.js → AccountsPromoCardStack-CaTnaSn3-FCk-ULE2.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-CbjThbsA-CLlWEIxe.js → AddAddressForCardDrawer-DmajBqRK-DEh9VlDB.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CMJwUbgf-rrVXiQw9.js → AddToWalletPage-BSzuByT6-nwQQhLJ_.js} +36 -36
  11. package/dist/assets/{AgingReportsPage-B_BSfude-D0QpW98_.js → AgingReportsPage-D2gPAJKw-DtSYadID.js} +4 -4
  12. package/dist/assets/{AllUserItems-CGlWa60t-h-riUf2G.js → AllUserItems-BIf1v0a5-B9sgoKVP.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-DT3vkmLG-C_cL6gbI.js → ApAgingDetailPage-pfP6vTc2-DNdR70Vv.js} +5 -5
  14. package/dist/assets/{AppBasePage-CDy7wPlv-BxqW_Qg2.js → AppBasePage-BGPY0zrb-Cgw6EXRu.js} +11 -11
  15. package/dist/assets/{AppDrawerContent-CEsXm_i6-CW1nkTKX.js → AppDrawerContent-6AX5Y5tK-C6Pu2n78.js} +2 -2
  16. package/dist/assets/{ApprovalRulesSettingsPage-CB2_4-2f-EvDWmVK-.js → ApprovalRulesSettingsPage-BurRfT7n-D8ylQviU.js} +1 -1
  17. package/dist/assets/{ArAgingChart-qxhWsIQb-C4Jx_960.js → ArAgingChart-Dx8jVL0O-CupzM74j.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BbzQryp_-CxVbfpIm.js → ArAgingDetailPage-BcrHD5zT-BoHizRsh.js} +6 -6
  19. package/dist/assets/{AttachmentView-duTVxc9g-BUPi4zJZ.js → AttachmentView-CdIA5zLk-Ccm-n9L1.js} +4 -4
  20. package/dist/assets/{BankAccountSection-CAwAf9xK-CgO5EJAd.js → BankAccountSection-Qe9eRUmE-B6lQ-JzW.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-CaDnP9_--BB5RKb-6.js → BankAccountWarningSection-BfN1KiTF-CqPWwbNY.js} +12 -12
  22. package/dist/assets/{BankConnectionsSettingsPage-CDV7O8cl-CZbYdgLy.js → BankConnectionsSettingsPage-Dmub7xxp-BTbJWWvl.js} +9 -9
  23. package/dist/assets/{BillDetailPage-DJxh2CIc-D5yng4UK.js → BillDetailPage-DHCP-PUd-DpbXdVFf.js} +13 -13
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-B2ZPbqtr-CSSyEtEl.js → BillPayApprovalRuleDetailPage-DS31MPI0-Dn-T4Njh.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-MM7v8ZMx-z7T84rau.js → BillPayApprovalRulesPage-Cc3wkV9k-DMlp8m1G.js} +13 -13
  26. package/dist/assets/{BillPayPromoPage-JK-VOx4W-B_C8DuZu.js → BillPayPromoPage-DslCxm8f-Be4WJJK2.js} +2 -2
  27. package/dist/assets/{BillPaySetUpPage-h0uoCWMl-DvAR3JfV.js → BillPaySetUpPage-DnabCnSI-3IQFcnkB.js} +1 -1
  28. package/dist/assets/BillingSettingsPage-B91NuvxJ-DIg4E4pn.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CPPDFsZt-D-k0WBgw.js → BillsBulkReviewDrawerPage-BOulFH2M-CfBwEemW.js} +1 -1
  30. package/dist/assets/{BoxItem-CYe_gTmA-Bq-cUyHa.js → BoxItem-Dhk2kQlB-ymoj_NmA.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-BU2b5oF1-tm8Rn4Pv.js +138 -0
  32. package/dist/assets/{CardNumberSubText-CFDhtij8-BJ6ircXZ.js → CardNumberSubText-CRjU8jZf-DzA9ggM9.js} +3 -3
  33. package/dist/assets/{CashbackDetailPage-BBGGzKh7-CDIItVJw.js → CashbackDetailPage-GNwtsA01-PgGpZ01a.js} +6 -6
  34. package/dist/assets/{ChargeCardDetailPage-BQhago53-CZ9rE-O-.js → ChargeCardDetailPage-DspeEPRm-DHY-84Ch.js} +40 -40
  35. package/dist/assets/{ChargeCardListPage-B0E-C3RH-qI0c9wPw.js → ChargeCardListPage-C4N76196-CL7LpKYX.js} +9 -9
  36. package/dist/assets/{ChargeCardListTable-ByGv0xWl-Dy5_i773.js → ChargeCardListTable-ObawcMuP-BDRD6_-S.js} +49 -49
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-LCY9rFqO-DFgHnoSL.js → ChargeCardPaymentHistoryPage-NBxH70YE-Cj3oOuEC.js} +27 -27
  38. package/dist/assets/{ChargeCardPromoPage-CKEnOseD-nYO2qT_d.js → ChargeCardPromoPage-CN9d98ht-4K-amLMG.js} +7 -7
  39. package/dist/assets/{ChargeCardSetupPage-BHv2VOdc-BfcjRYsg.js → ChargeCardSetupPage-Cie4HjPR-ZtUOiOiR.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-UpRXyPTS-DUoykYJ6.js → ChargeCardStatementsPage-DSUakLyb-fNOGZHcg.js} +4 -4
  41. package/dist/assets/{CheckDepositDrawerPage-0zbTQ3Fa-DZUNeuWX.js → CheckDepositDrawerPage-BK6iLLEA-jWxLf2wl.js} +23 -23
  42. package/dist/assets/{CollapsableReportTable-DlYIKSlQ-CTPvx283.js → CollapsableReportTable-vwzu1AgW-BTLj3VXb.js} +1 -1
  43. package/dist/assets/CompanyOfficerDetailsSection-CtptCfIN-apBFYZGi.js +331 -0
  44. package/dist/assets/{CompanyPassportCard-DeVPuuje-dXTJCMs0.js → CompanyPassportCard-DyasR99R-CYkEVZS_.js} +2 -2
  45. package/dist/assets/CompanyPassportPage-Xp8Bn6ev-Bfcf_ruC.js +417 -0
  46. package/dist/assets/{CompleteProfile-Y6HwKtpz-CKG60-Ev.js → CompleteProfile-CyoPiiWR-xf-bWpXE.js} +2 -2
  47. package/dist/assets/ConfettiBurst-BWYsiO3O-BTrtU6ii.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-COBnQDX5.js → ConstrainedInnerElement-BeIpAPjB-DDbvqxn6.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-BlZe6gmh-LIbnXoCR.js → CreateOrEditVendorPage-CecROHGm-D41yC84M.js} +16 -16
  50. package/dist/assets/{CreditCardPaymentDrawerPage-flPmyCaF-ju95FaYN.js → CreditCardPaymentDrawerPage-C6Tx5HFf-oVWkJDzH.js} +13 -13
  51. package/dist/assets/{CurrencySelectField-RiKAivD8-bvSf14oM.js → CurrencySelectField-DAmYUy85-BWbCVGju.js} +3 -3
  52. package/dist/assets/{CustomerOnboardingActivationPage-B7dLMk4g-BZHZ1dpa.js → CustomerOnboardingActivationPage-CsBXicnS-QAit89b5.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-CNJZIVlJ-BZqVU5dg.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-AWsst0XH-X1brA0-n.js → CustomerOnboardingDetailPageSkeleton-BrWGFePj-DMstYizh.js} +10 -10
  55. package/dist/assets/CustomerOnboardingNoStepsPage-EIhXr3Tb-DznkXuZH.js +66 -0
  56. package/dist/assets/CustomerOnboardingPage-DXoS8Lvh-C2VugePi.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DqgoBLWp-Cv1WT5RL.js → CustomerOnboardingProductSuitePage-BRXSZWKm-BD_syEun.js} +6 -6
  58. package/dist/assets/{Dashboard-D0KlujCx-BSLisJSN.js → Dashboard-Bd774Cwk-AzSeLKy1.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-bxKyMsG7-CUvvzIc4.js → DashboardReportPage-CdyFzIwd-DfVPg9E3.js} +1 -1
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-Ch0OiH1g-vmCAY7a1.js → DashboardSidebarBackgroundAnimation-NYtLjb5A-C-FYqFtS.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-BdZVCAx--CrDYcfUN.js → DepositAccTransactionItem-DZk4h7x--C88hUVsA.js} +6 -6
  62. package/dist/assets/{DepositAccTransactionListPage-LU0QMdSV-CKNGH1tO.js → DepositAccTransactionListPage-CKgbbZOW-BgK9Zw4Y.js} +3 -3
  63. package/dist/assets/{DomesticWireDetailsPage-CFt5GgZ1-DQv3a0ub.js → DomesticWireDetailsPage-CY2Pv6jd-CheyQF2l.js} +2 -2
  64. package/dist/assets/{DownloadOverlay-CH_bA3On-B69b38U1.js → DownloadOverlay-BflHtA84-B4UfqjFr.js} +16 -16
  65. package/dist/assets/{DrawerPage-Cpdp-IFb-CaiAQFdD.js → DrawerPage-5Q_xvjmz-Co18igPQ.js} +8 -8
  66. package/dist/assets/EditPeoplePage-Dq02jvsi-b5H5H_8q.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-DnyyPZ26-Bd2lr5Lb.js → EditReimbursementDetailPage-CYnqM-2--BRFle9yb.js} +66 -66
  68. package/dist/assets/EntityDetailPage-s91tl4Wk-BAN18nGN.js +18 -0
  69. package/dist/assets/{EntitySummarySection-BFpgAYAM-DJcwKTxQ.js → EntitySummarySection-BUjGJmFT-CjfLlHfk.js} +10 -10
  70. package/dist/assets/{ExpenseAutomationOverviewPage-YjOVm_Bw-DbWbD2ZW.js → ExpenseAutomationOverviewPage-D7_-NOLq-Bds1x68a.js} +19 -19
  71. package/dist/assets/{ExpenseAutomationPage-DlhH-R-e-DP26P-kb.js → ExpenseAutomationPage-CFxbvTbd-VTUN9rRL.js} +44 -44
  72. package/dist/assets/{ExpressPayPage-CKqPEfbR-B9xRjGEZ.js → ExpressPayPage-gyFQBzLO-BnlxI_0_.js} +20 -20
  73. package/dist/assets/{FeaturePreviewPage-Cs1Y3nP0-C736qEjy.js → FeaturePreviewPage-BT-WJozX-m5nY8Cr0.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-BCyL8Jdr-CTurJjBu.js → FollowStepsSection-Du2gzmC6-LTRvUZJY.js} +42 -42
  75. package/dist/assets/{GlobalReviewListPage-CBQFcVHd-BFn41JwP.js → GlobalReviewListPage-B0MxdV0g-O7Eaq9sr.js} +10 -10
  76. package/dist/assets/{InformationCardStack-nFMetrAy-DmLTnFTd.js → InformationCardStack-rAU0N5_N-BNWO8W3c.js} +4 -4
  77. package/dist/assets/{InsightsCardStack-CEMeGJXy-Dl1gxtvy.js → InsightsCardStack-CEkmuCB6-CpJ0Ou6A.js} +9 -9
  78. package/dist/assets/InsightsSection-CK6L0ggh-DiYoPBIp.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-BQ7g3a3K-ZPT5zibV.js → IntegrationsSettingsPage-Do41V6J0-CYPG6GBQ.js} +5 -5
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-BHRYsZgm-hXisNfc-.js → InternationalWireSwiftDetailsPage-BnsnrM3q-TCK2vz36.js} +31 -31
  81. package/dist/assets/InternationalWireVerificationPage-C3EEqPT--COWTCQVg.js +65 -0
  82. package/dist/assets/{InviteFormPage-BVXte8w8-Bv3riR4y.js → InviteFormPage-x40AE2Pw-DcL74k0M.js} +14 -14
  83. package/dist/assets/{InvitePageListView-DFPyLLrA-DwPZnRCN.js → InvitePageListView-CiVNaN8z-BNxs-kv2.js} +44 -44
  84. package/dist/assets/InvitePeoplePage-DGTYEet3-q8LMzEbG.js +12 -0
  85. package/dist/assets/{InvoiceUploadSection-B9q7nIs0-FeM5fM0I.js → InvoiceUploadSection-C4K602QO-edDVc4Pa.js} +4 -4
  86. package/dist/assets/{IssueChargeCardPage-BuLj1bOl-dPJklROU.js → IssueChargeCardPage-BVmxvrlx-Ca71cuKs.js} +15 -15
  87. package/dist/assets/{LabeledAddressValue-D2t8ti-C-DUztl2du.js → LabeledAddressValue-aejn380k-DwlaPoVh.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-DMcor_I8-DnYPVaTw.js → LabeledAddressValueField-DSU3b6xx-SFUhns2M.js} +4 -4
  89. package/dist/assets/{LabeledControlledCheckBoxField-B6w2HGJK-BLA_30cF.js → LabeledControlledCheckBoxField-CKE6Nln6-BoFyY4Lg.js} +2 -2
  90. package/dist/assets/LabeledCountryMultiSelectField-D1bMiaZj-DHyO4cp8.js +237 -0
  91. package/dist/assets/{LabeledCreatableSingleSelectField-DHNAX5Pu-Cxl2v4pk.js → LabeledCreatableSingleSelectField-amXDv508-ayE33Uzo.js} +22 -18
  92. package/dist/assets/LabeledDocumentField-2_VcrmJN-NvvTwxvI.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-BBS4da2b-CKcQYn_8.js → LabeledDropDownFormattedTextField-C6sW-5j7-DVIx7gwf.js} +4 -4
  94. package/dist/assets/{LabeledText-zjKn4Cw--Btj0vmVa.js → LabeledText-CrAhx4_P-BV766MG2.js} +3 -3
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CIofqRT6-BdB4qtCG.js → LabeledUserSingleSelectWithSubtitlesField-BVZg_rlX-BekpWR05.js} +19 -19
  96. package/dist/assets/{LabeledZeniRolesDropDownField-DiBtAWQ3-CYXjNxbc.js → LabeledZeniRolesDropDownField-DS1icRVA-0u4rotdW.js} +31 -31
  97. package/dist/assets/{LinkJETransactionPage-D66bzDh_-B9FEJF_c.js → LinkJETransactionPage-VdBxLFQc-55c5hzn3.js} +6 -6
  98. package/dist/assets/{LockCardPage-B1g2TZWL-BM1z6LUH.js → LockCardPage-Bs8xkpNa-BjwEOKdz.js} +44 -44
  99. package/dist/assets/{LowBalancePopup-DbtHeVY--C9EswVLY.js → LowBalancePopup-B0-WExEI-lrmES1sf.js} +2 -2
  100. package/dist/assets/MagicLinkACHDetailsPage-BitHcc3I-C98ytwJK.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-BFfxbnHp-N-D8lO-1.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-BncWaxsb-Bxijl5E3.js +1 -0
  103. package/dist/assets/MagicLinkSuccessPage-DRcOlHnh-CSKpgnmw.js +31 -0
  104. package/dist/assets/{MagicLinkTitleSection-CqkZ9wOf-DfDEh73I.js → MagicLinkTitleSection-vMBVJSVF-Cq6tgd4r.js} +1 -1
  105. package/dist/assets/MailingDetailsSection-CKtLfBik-Pke0GJpe.js +21 -0
  106. package/dist/assets/{MyBankConnectionsSettingsPage-CE2ZqHBJ-BMkFuO3K.js → MyBankConnectionsSettingsPage-D6Gjqgv2-CIp3b4Hf.js} +10 -10
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-BffxXDZg-Dvb6_3Fu.js → MyPendingActivationChargeCardListPage-y9U4DJm9-CBr9crJC.js} +2 -2
  108. package/dist/assets/{MyProfileSettingsPage-DrsAlesY-j3nt47fF.js → MyProfileSettingsPage-D7btjvQI-mZy4329L.js} +8 -8
  109. package/dist/assets/NavBarWithPicker-B_vr1zc6-DAolNzoK.js +30 -0
  110. package/dist/assets/{NavigationArrow-DCCxx6H7-D4B8RREd.js → NavigationArrow-suk7KbA1-xl7E8Abj.js} +7 -7
  111. package/dist/assets/{NavigationDots-tWCw6Bpk-D0d4bwwO.js → NavigationDots-Dqcv5rrC-DzoP8t9X.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-UIA8zAjd-C002A9hY.js → NewGlobalMerchantPage-CRg1E4PG-_ea1Cd7Q.js} +33 -33
  113. package/dist/assets/NoDataChart-CGab-TiT-zyPeOkqC.js +26 -0
  114. package/dist/assets/NoDataTable-B2CS7NPq-CvFUjFVv.js +8 -0
  115. package/dist/assets/{NotFoundPage-CdH-3upl-DLtXDi3d.js → NotFoundPage-DGMaZUli-aSvAxp7G.js} +7 -7
  116. package/dist/assets/{NotificationSettingsPage-DP2gGIz1-DEKmBA8p.js → NotificationSettingsPage-CMkB3Lv2-DA8e_wrR.js} +10 -10
  117. package/dist/assets/{NotificationsListConfig-DG-DH2Aj-C3kn_PJf.js → NotificationsListConfig-8zpkH26L-DVh3_eXQ.js} +1 -1
  118. package/dist/assets/{NotificationsPage-CgFMmR2X-ZazUgOBE.js → NotificationsPage-D7bHfgsd-B-yh8id7.js} +19 -19
  119. package/dist/assets/{OpExByVendorPage-eUvIAWzt-CoPEiZJL.js → OpExByVendorPage-PfMkiQRt-CA9khm55.js} +6 -6
  120. package/dist/assets/OverlayContainerPage-D4QU0p4o-DAP8RqtI.js +11 -0
  121. package/dist/assets/{PandLWithForecastPage-8S06Nyi5-1bcdIh1F.js → PandLWithForecastPage-CtFnhBki-D2LFAlVU.js} +7 -7
  122. package/dist/assets/PaymentAccountSetupBillingAddressSection-gaNLv-zU-S6LvrwnZ.js +107 -0
  123. package/dist/assets/{PeoplePage-D1BLHtO0-C58P6kMk.js → PeoplePage-3Fux2UtP-BH9APgOv.js} +20 -20
  124. package/dist/assets/{Preview-Duq0gQMO.js → Preview-C8AzcAoJ.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-BKSXWnFR-D0XqWdeM.js → ProductsCarousel-BPUh4FO7-CHB-qbx5.js} +4 -4
  126. package/dist/assets/{PromoBaseCards-BYT9nEJT-DW8pd6tD.js → PromoBaseCards-Dmg5PtKw-t6EmiKvL.js} +14 -14
  127. package/dist/assets/{QBOConnectionDialog-C2-omQMZ-BcqWZr4J.js → QBOConnectionDialog-CLBqmpI8-DH4pGPEG.js} +3 -3
  128. package/dist/assets/{QBOSetupSection-lgv5wVlg-BJbJg-e3.js → QBOSetupSection-DwqXfi9i-B1C_WaXE.js} +18 -18
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CbJViS3x-CNPS2kKc.js → ReimbursementApprovalRuleDetailPage-BrfP2xcW-DQMVrjws.js} +2 -2
  130. package/dist/assets/{ReimbursementApprovalRulesPage-BuNt-Bmb-C4xV1t6F.js → ReimbursementApprovalRulesPage-BmVVfYZD-BmlPhGFM.js} +7 -7
  131. package/dist/assets/{ReimbursementDetailPage-CK3-Jqkd-BXJxGVOx.js → ReimbursementDetailPage-j-kNxeWY-ZsW0KMFD.js} +5 -5
  132. package/dist/assets/{ReimbursementPromoPage-fptOAJna-kONXX9OV.js → ReimbursementPromoPage-D2kh5AHM-CtzDBBo_.js} +13 -13
  133. package/dist/assets/{ReimbursementSetUpPage-CidrpT2g-BaHYOosV.js → ReimbursementSetUpPage-D2890NEZ-Dgq0MW27.js} +8 -8
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cy_Hediw-CeMENnhM.js → ReimbursementsBulkReviewDrawerPage-qXtPaXjg-CLjTJ8gQ.js} +1 -1
  135. package/dist/assets/{ReloadCard-C81rGzOp-DrV9TjCC.js → ReloadCard-IEyjck4Y-Bypr7i2O.js} +8 -8
  136. package/dist/assets/{ReportTableViewSelector-neRSjrhV-DNMR9-mx.js → ReportTableViewSelector-CQjyJkzR-DZEqJbuf.js} +4 -4
  137. package/dist/assets/{ReportsPage-BhzQVaer-B1sMVpn4.js → ReportsPage-Bzz6If8N-i375FFbW.js} +3 -3
  138. package/dist/assets/{RevenueChart-x7uTbFlm-CjI9a83n.js → RevenueChart-B00OufPH-B5M-AM4i.js} +1 -1
  139. package/dist/assets/{ReviewDetailsPage-jXZCylzg-B1MM8UC1.js → ReviewDetailsPage-NnD1LDcO-CZs19GX2.js} +53 -53
  140. package/dist/assets/{ReviewOverlay-nlm2HnGw-UufbXYzP.js → ReviewOverlay-CFouRoKn-DAQDEDmS.js} +16 -16
  141. package/dist/assets/RoleWithToolTip-BBbrv_x_-D8MqiafD.js +22 -0
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CkPzofLN-BWXCFq3v.js → ScheduleDetailsFixedAssetsPage-B5gQXUI9-DH6Yv6F_.js} +8 -8
  143. package/dist/assets/{ScheduleDetailsPage-BSZefKOh-Bo6woPA8.js → ScheduleDetailsPage-B1Kb9usK-BWyyTA9a.js} +3 -3
  144. package/dist/assets/{ScheduleSequenceTable-BW5M7Zfq-BwchdmgD.js → ScheduleSequenceTable-B973PTTc-C5HNHoNO.js} +14 -14
  145. package/dist/assets/{ScreenRoutes-Dwdg1cdb.js → ScreenRoutes-BUhhsxeL.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-C703iFL6-CHmt5sZt.js → SetUpAccountSection-D6dn2jSD-B2ahVHn3.js} +1 -1
  147. package/dist/assets/{SignIn-D9K5FklU-CRWhJbb6.js → SignIn-CUOfBh48-Cs6fsPrc.js} +25 -25
  148. package/dist/assets/SignInScreen-B9_ZQMfW.js +1 -0
  149. package/dist/assets/{SpendManagementListViewPage-CBNtC74m-Fd85QGhs.js → SpendManagementListViewPage-DOkp7pHa-D_rDsyPi.js} +14 -14
  150. package/dist/assets/{SpendManagementPerTabPage-D_sa7WRd-CmfTgI85.js → SpendManagementPerTabPage-D_LO55uU-DKDZqq7t.js} +27 -27
  151. package/dist/assets/{SpendManagementSection-DpZUTV6m-4JhWZKtl.js → SpendManagementSection-CEMNFPRO-DOfjR_1U.js} +23 -23
  152. package/dist/assets/{StatementItem-DvdSsb8I-HhjAsWuo.js → StatementItem-BDCdJuBz-C5KxKZf9.js} +4 -4
  153. package/dist/assets/StatementsPage-CgbyzDo5-dOiBmz6G.js +58 -0
  154. package/dist/assets/{StatusSwitcher-hKYgwNLC-DHsQ9BVG.js → StatusSwitcher-BjvUftXD-BmCBIDA6.js} +4 -4
  155. package/dist/assets/{SubTabSwitcher-aeDd9xiF-CP_NcrPb.js → SubTabSwitcher-CqTYhJ6K-C6tI5OUk.js} +1 -1
  156. package/dist/assets/{SummaryCard-CK8Gxbiu-CIbHrisD.js → SummaryCard-BrsOKcrF-DWcUToK_.js} +1 -1
  157. package/dist/assets/{TaskManagementPage-D2Ooq8DR-Cg7nwJeB.js → TaskManagementPage-C5vXcK0R-BbbjC-Tz.js} +16 -16
  158. package/dist/assets/{TimeRangeSwitcher-DEqlZxa6-DEfl1xmz.js → TimeRangeSwitcher-BR-bT1hY-DWqBq-hp.js} +2 -2
  159. package/dist/assets/{TimeframeSwitcher-BppC6giF-C7ddFaNs.js → TimeframeSwitcher-B7EXKmdi-DuvH5agU.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcherWithToggle-CbX9ElMN-hszvw3pP.js → TimeframeSwitcherWithToggle-D265f15Y-T64K-skP.js} +1 -1
  161. package/dist/assets/{TopExCard-Cy6tPVSx-Bbwl1jG_.js → TopExCard-l-xo9Vzj-B1PmkJWv.js} +10 -10
  162. package/dist/assets/{TopExDetailPage-Rtrcdkcp-vpPj9dbp.js → TopExDetailPage-DJlHcjKS-Bho9tEuD.js} +10 -10
  163. package/dist/assets/{TransactionActivityLogPage-DbwSsjPJ-C5f3uEbO.js → TransactionActivityLogPage-HLwrGJCG-BzrsUVPS.js} +7 -7
  164. package/dist/assets/{TransactionDetailPage-D-vXAAB7-KMY-seM4.js → TransactionDetailPage-63dqDjgt-B4iYNZGu.js} +35 -35
  165. package/dist/assets/{TransactionList-BruCNjQg-Ccsvct2A.js → TransactionList-BFD8ZfJ--BUbGyMLK.js} +10 -10
  166. package/dist/assets/{TransactionListBig-bp7q3prH-DMAN1AsC.js → TransactionListBig-Cd05cE1H-CAcC3Nig.js} +4 -4
  167. package/dist/assets/{TransactionListPage-ZfJsaVb8-GGjXUKns.js → TransactionListPage-klQ0oBzv-C-lEqqat.js} +2 -2
  168. package/dist/assets/TransactionVendorDetailPage-D93V6PtT-CNzgHcFV.js +80 -0
  169. package/dist/assets/{TransferDrawerPage-DswS6KZf-BDyM8T09.js → TransferDrawerPage-B_Hy3gOY-Clor74dq.js} +12 -12
  170. package/dist/assets/{TreasuryOverviewPage-DWo7iRpO-DSI7EDiH.js → TreasuryOverviewPage-CJrfTwBd-BzblsfCt.js} +1 -1
  171. package/dist/assets/{TreasuryPromoPage-DQxCF3-4-C3eX58kN.js → TreasuryPromoPage-BRwTbEqr-C3oIH7Gd.js} +131 -131
  172. package/dist/assets/TreasuryStatementsPage-CpVaxZhO-BbzJpZN2.js +58 -0
  173. package/dist/assets/TreasuryTaxLetterPage-CUHNWUy--WkFWI_33.js +58 -0
  174. package/dist/assets/{TrendChart-BMHDaOeh-LWC7_lHj.js → TrendChart-DLex57el-Bd2WzCxo.js} +2 -2
  175. package/dist/assets/{TrendWithTransactions-DDLrmIrt-BXL-CVpz.js → TrendWithTransactions-CwB4wDSN-BMowh4TY.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-3SW8Gj0Z-CDWZIxfG.js → UncategorizedAccountsMappingPage-CO7p4-Kx-BZ0VCWbX.js} +17 -17
  177. package/dist/assets/{UnitIntegrationPage-DPMy8dXP-nT8iCa4v.js → UnitIntegrationPage-BDUTrQY0-SS19l8Xm.js} +11 -11
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-BHpT2al--DXABnZU8.js → UploadAdditionalDocumentOverlay-DID6dcux-DPsjTLN9.js} +1 -1
  179. package/dist/assets/Vendor2FAPopup-DySyuG4R-82OgFcz6.js +1 -0
  180. package/dist/assets/VendorACHDetailsPage-CS0fu-kk-0b8QPMYJ.js +1 -0
  181. package/dist/assets/{VendorDetailPage-BC1FhaQA-KI0Ch5Gm.js → VendorDetailPage-DRgwiRee-B2tPGfn4.js} +23 -23
  182. package/dist/assets/VendorDomesticWireDetailsPage-B3mJqOdK-BoqOh8HT.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-DYyPOA8D-CxoCgeSh.js → VendorFiling1099EditablePage-CtReDQX3-DVZfKoI-.js} +13 -13
  184. package/dist/assets/{VendorFirstReviewPage-Cpmk7rDk-CFOuqq24.js → VendorFirstReviewPage-BGVFKcId-7yTwYSjG.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-CWAWq6kq-DzcoBHDk.js → VendorInternationalWireDetailsPage-DtFlzIWc-CYBlV4Tg.js} +13 -13
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CfWP7ILx-BygrRGvT.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-CGQ35Mhp-fa4HsF-c.js → VendorsAccountsSection-DlCCF8w7-CQtCi0t6.js} +3 -3
  188. package/dist/assets/{VerifyDevice-CfMJW1Vh-t_8HTul6.js → VerifyDevice-CDChzTa5-fyUSUzra.js} +7 -7
  189. package/dist/assets/{VideoPlayer-BNBpjXJk-jZcx6J3u.js → VideoPlayer-D6snpLby-D_sf9SSM.js} +2 -2
  190. package/dist/assets/{VideoPopup-BF6lmB7l-CPNBV8xg.js → VideoPopup-SylQ4T6l-DUuwzYmi.js} +3 -3
  191. package/dist/assets/{WarningsDrawerPage-Crj70lnR-BFJEBaju.js → WarningsDrawerPage-D67GprmZ-Dc_Jo6Z8.js} +7 -7
  192. package/dist/assets/{ZeniAccountDetailPage-CaA6m3tQ-DsIFFK_h.js → ZeniAccountDetailPage-BfYIZPob-DCZW5ugr.js} +13 -13
  193. package/dist/assets/{ZeniAccountListViewPage-x_51gDs1-CM__NvGD.js → ZeniAccountListViewPage-B5luRVEl-ntYaih24.js} +17 -17
  194. package/dist/assets/{ZeniAccountNavBarPieces-Csr24dri-BqCNAJs9.js → ZeniAccountNavBarPieces-BQXOnqhc-D38WZkNq.js} +2 -2
  195. package/dist/assets/{ZeniAccountPromoPage-lxKBk2r5-KMuyeTSq.js → ZeniAccountPromoPage-CHCmIfff-DDgdwEph.js} +10 -10
  196. package/dist/assets/{ZeniAccountSetupPage-DUI4-2Zw-8cM-uoIc.js → ZeniAccountSetupPage-BzCqTug2-BN8jteFY.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-DxEZ4DiK-DLP_0Pge.js → ZeniCopyright-CiZTMpf7-C6VWdJm_.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-4Nq4Sm9J-VPec2EGj.js → ZeniTransferAmountSlider-C--qNr-a-BTUYZm1a.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-V6ap5s7K.js → add-to-wallet-DgdBD8_G-Cna2JrPi.js} +1 -1
  200. package/dist/assets/{analytics-BFo1DlpM.js → analytics-Cz7GTPb4.js} +1 -1
  201. package/dist/assets/analyticsHelper-D0FSznOb.js +1 -0
  202. package/dist/assets/{analyticsHelper-CL-t3Y2i-D7L_LVJW.js → analyticsHelper-DEOt00qX-3E5keIK0.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-DUYmTke7.js → arrow-south-east-round-PEovUgvH-D7Guqwvj.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-eGlQozxe.js → auto-transfer-rule-mbafm5D3-DemMuLOK.js} +1 -1
  205. package/dist/assets/{chartTypes-B3501CSI-DzRICrvV.js → chartTypes-BqKhmkSG-DaJzMpYW.js} +1 -1
  206. package/dist/assets/{commonDimensions-YcBBlmYP-COMWV7bj.js → commonDimensions-DbvjFx29-M5i-B_2F.js} +1 -1
  207. package/dist/assets/commonTypes-TAIHQ3fk-BCFWsh3s.js +1 -0
  208. package/dist/assets/{constants-D7SXzzFi.js → constants-DAniohK4.js} +1 -1
  209. package/dist/assets/{core-TLZ6PfaT.js → core-BHxev_Cl.js} +1 -1
  210. package/dist/assets/{dash.all.min-B_wsJDV-.js → dash.all.min-CtGtyz3U.js} +1 -1
  211. package/dist/assets/{detailCommon-C19MYPnq-BkT0buD6.js → detailCommon-BEEE23XQ-C9xvv1qO.js} +4 -4
  212. package/dist/assets/downloadPdf-CDTl_Ev--DwC3gr_X.js +1 -0
  213. package/dist/assets/{empty-DHRJKl0l.js → empty-BjQqAnEr.js} +1 -1
  214. package/dist/assets/{empty-Dl7OEA8R.js → empty-ycUigo07.js} +1 -1
  215. package/dist/assets/epic-ouf99YlI.js +2 -0
  216. package/dist/assets/{gift-box-Cmt9OgIZ-BxnAFpgS.js → gift-box-Cmt9OgIZ-DQLMM0Jc.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BXAAbldy.js → graphic-no-data-l-DU4J8fDt-EQfaFxjc.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-RQBIXxmP.js → graphic-no-data-net-burn-l-CzmycA0m-iUVSxIP-.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-B_pRiSxy.js → handshake-BPg58FML-SL3xJab2.js} +1 -1
  220. package/dist/assets/helper-Cl1NuKS2-BXsdA-OL.js +223 -0
  221. package/dist/assets/{index-CZI3Ylli.js → index-BCs-C6Pl.js} +1 -1
  222. package/dist/assets/{index-f03AvpmF.js → index-BVl75ift.js} +1 -1
  223. package/dist/assets/{index-CT7uQHtl.js → index-CZ6iVFod.js} +1 -1
  224. package/dist/assets/{index-Cs8eLM6a.js → index-DDBZjEhE.js} +1 -1
  225. package/dist/assets/{index-CJvK7-J_.js → index-DKIaTfNE.js} +1 -1
  226. package/dist/assets/{index-B4SkrUUS.js → index-DOsjGhSZ.js} +2459 -2446
  227. package/dist/assets/{index-AKtmkw3-.js → index-wXhIQbLd.js} +1 -1
  228. package/dist/assets/{lexical-DGcsrY0x.js → lexical-Dja08wvc.js} +1 -1
  229. package/dist/assets/{liveblocks-Dh9EWLXD.js → liveblocks-KFxhhSr3.js} +1 -1
  230. package/dist/assets/{lottie-osIcf0zV.js → lottie-DDoT_sT4.js} +1 -1
  231. package/dist/assets/mapLoadingInProgressToTreeNode-CBq8hzRN-DunJzr3i.js +1 -0
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BDWD3x8r-BJJQ7ptw.js → mapSectionWithAcOnlyToTreeNode-DtYXgw-F-TAq1Mekz.js} +1 -1
  233. package/dist/assets/mapSpacerToTreeNode-ycecmJKa-Hd0mRrjF.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-ByLaAQOt-Biy9DgAh.js +1 -0
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-C8E1dOPs-B00cM4ms.js +1 -0
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-v8qXI-n8-DJfWjA89.js +1 -0
  237. package/dist/assets/{mui-DUBEtzg-.js → mui-B2MHg-Mu.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-C8N6TvJI.js → page-detail-CWX5S47F-Dqz3fZ9M.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-CVhhFPCD.js → panelSelectedMixin-CzfD5-Zs-CL2f5PJh.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-Cr1_qpyQ.js → radio-default-CiSgisfh-CIrmE0sr.js} +1 -1
  241. package/dist/assets/{react-DYqSDMNg.js → react-B5mg5_zl.js} +2 -2
  242. package/dist/assets/{react-DM-hrQxT.js → react-BWSczdFz.js} +1 -1
  243. package/dist/assets/{react-jiKdoZ4l.js → react-BzzxkC3X.js} +1 -1
  244. package/dist/assets/{react-Ld4wkc7L.js → react-CciBBuhn.js} +1 -1
  245. package/dist/assets/{react-Bk-13Lv_.js → react-DJSfrAX2.js} +1 -1
  246. package/dist/assets/{react-DKnK-TxQ.js → react-Dn-7aN5D.js} +1 -1
  247. package/dist/assets/{react-Xrf7IcXX.js → react-DqyAh0nx.js} +1 -1
  248. package/dist/assets/{react-DJtWQPHO.js → react-GWLRtgTU.js} +2 -2
  249. package/dist/assets/{recharts-ZbSULBPo.js → recharts-B7o7FzH2.js} +1 -1
  250. package/dist/assets/{sentry-BBFZ4Apy.js → sentry-otjdlEta.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-CxpeC9Dy.js → shield-DOlUxcFf-DDxUv5Gm.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-DKhXdLyk-D9LH1M_c.js +1 -0
  253. package/dist/assets/{toChartData-DzatRnt8-r7b4SzAV.js → toChartData-B3G_wqcy-uAjzhvaS.js} +1 -1
  254. package/dist/assets/{uploadAttachment-Bq8dk-Sm-BxzYH_e-.js → uploadAttachment-CLjjVoJ0-Do2BBtK7.js} +22 -22
  255. package/dist/assets/uploadReceipts-Dge0cNF1-BhANrZur.js +1 -0
  256. package/dist/assets/{url-B-vFaWHB.js → url-DCdUzyOP.js} +1 -1
  257. package/dist/assets/{url-DieIsDlx.js → url-Dy00DrU7.js} +1 -1
  258. package/dist/assets/{useLongPress-GCK2COYQ-BO__ObzU.js → useLongPress-GCK2COYQ-Sm0Bw4m0.js} +1 -1
  259. package/dist/assets/{usp-line-BBd1wKwW-Ob7uwwlJ.js → usp-line-BBd1wKwW-BmAEJQI7.js} +1 -1
  260. package/dist/assets/{utils-DvDl_6hs.js → utils-BbmM3Vsp.js} +1 -1
  261. package/dist/assets/{zeni-epic-state-CbQxc4HL.js → zeni-epic-state-DVinyIRY.js} +18 -18
  262. package/dist/index.html +1 -1
  263. package/package.json +3 -3
  264. package/dist/assets/ACHDetailsPage-CxpLuJpQ-Z25Kj8iB.js +0 -21
  265. package/dist/assets/AccountInfoPage-DkpBGfrR-DgJ_l529.js +0 -18
  266. package/dist/assets/BillingSettingsPage-gJG9OxD6-C92nEYt6.js +0 -44
  267. package/dist/assets/BusinessVerificationPage-Dos8Bnvb-BzlY8P7N.js +0 -138
  268. package/dist/assets/CompanyOfficerDetailsSection-Ck0xqZ0d-CiQdQV8c.js +0 -260
  269. package/dist/assets/CompanyPassportPage-F_GUET9a-n_4C1XId.js +0 -574
  270. package/dist/assets/ConfettiBurst-BGE3Okwr-ChtxA3B0.js +0 -1
  271. package/dist/assets/CustomerOnboardingContainerPage-BHPDhC3d-DmiTHP_R.js +0 -1
  272. package/dist/assets/CustomerOnboardingNoStepsPage-Bqid4-rH-BGImJqrF.js +0 -66
  273. package/dist/assets/CustomerOnboardingPage-B5LrMzZS-BM4VGeP8.js +0 -107
  274. package/dist/assets/EditPeoplePage-BYnuNojX-tF0zDJiV.js +0 -55
  275. package/dist/assets/EntityDetailPage-DSfZZ1JW-B8lmLppd.js +0 -18
  276. package/dist/assets/InsightsSection-BYiN2xB7-xEpnMvUU.js +0 -27
  277. package/dist/assets/InternationalWireVerificationPage-tJbVtzQP-CZgDrSPN.js +0 -292
  278. package/dist/assets/InvitePeoplePage-B-uxjkke-DNUKVrZj.js +0 -12
  279. package/dist/assets/LabeledDocumentField-Bx1u7vv_-mKnRKGeb.js +0 -41
  280. package/dist/assets/MagicLinkACHDetailsPage-X1pXkZYT-DFFPBXzS.js +0 -1
  281. package/dist/assets/MagicLinkDomesticWireDetailsPage-BDl8k_bB-BL-x5WX7.js +0 -1
  282. package/dist/assets/MagicLinkInternationalWireDetailsPage-Q4lIsHtG-CqwaJ0sv.js +0 -1
  283. package/dist/assets/MagicLinkSuccessPage-BkxuITX--DbmxzFZs.js +0 -31
  284. package/dist/assets/MailingDetailsSection-DRFGCM2W-D6QU019C.js +0 -21
  285. package/dist/assets/NavBarWithPicker-C4VfP_Kw-BP1hKzBN.js +0 -30
  286. package/dist/assets/NoDataChart-Bvetk9za-ChhbhAl5.js +0 -26
  287. package/dist/assets/NoDataTable-9xF1_3XS-DmyXOk6M.js +0 -8
  288. package/dist/assets/OverlayContainerPage-D4QU0p4o-Bv0v7Lg9.js +0 -11
  289. package/dist/assets/PaymentAccountSetupBillingAddressSection-DQtrANhI-Dbgw6-lm.js +0 -107
  290. package/dist/assets/RoleWithToolTip-C29QOzxS-Dtn3QO2t.js +0 -22
  291. package/dist/assets/SignInScreen-93gtogD5.js +0 -1
  292. package/dist/assets/StatementsPage-73jGj5P2-CMTCSEyj.js +0 -58
  293. package/dist/assets/TransactionVendorDetailPage-CldkuO2--Depffy_Y.js +0 -80
  294. package/dist/assets/TreasuryStatementsPage-CYkPtmaT-D5EUuNcF.js +0 -58
  295. package/dist/assets/TreasuryTaxLetterPage-DH3su_rX-DoShkWFh.js +0 -58
  296. package/dist/assets/Vendor2FAPopup-C6gEOhUv-CYnz9DAX.js +0 -1
  297. package/dist/assets/VendorACHDetailsPage-LNCcubjL-BYnoq0_Z.js +0 -1
  298. package/dist/assets/VendorDomesticWireDetailsPage-CLudahOt-D5L89H8f.js +0 -1
  299. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CUtums8t-DsF3BjGD.js +0 -1
  300. package/dist/assets/analyticsHelper-BeWexRsD.js +0 -1
  301. package/dist/assets/downloadPdf-DPAqxw6u-CTz8FOiE.js +0 -1
  302. package/dist/assets/epic-hSb3tBg_.js +0 -2
  303. package/dist/assets/mapLoadingInProgressToTreeNode-D2u9MDI--C5UhDOED.js +0 -1
  304. package/dist/assets/mapSpacerToTreeNode-Blr3egSm-DTRUivWC.js +0 -1
  305. package/dist/assets/mapTimeframeBalancesToTreeNode-3Hd8QHr2-CJNy6I1V.js +0 -1
  306. package/dist/assets/mapTimeframeBalancesToTreeNode-D-LTfKnD-BwhFvpsB.js +0 -1
  307. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-zWnJVGsZ.js +0 -1
  308. package/dist/assets/toCOABalancesWithID-D35Fk0m2-devRZ_lq.js +0 -1
  309. package/dist/assets/uploadReceipts-Dge0cNF1-BfejUd9f.js +0 -1
@@ -1,4 +1,4 @@
1
- import{e as Ee,J as ae,y as g,aE as we,cI as ft,a9 as wt,hb as Ce,hc as Ct,aW as $t,cG as St,V as t,bC as Dt,ac as jt,hd as Tt,he as ye,u as l,cH as Lt,aS as Vt,bD as kt,F as W,hf as Ue,hg as qe,hh as Qe,o,bQ as S,cT as It,gN as $e,hi as Ot,cJ as Pt,cK as Mt,cL as zt,hj as Ft,ge as _t,cR as Nt,hk as Wt,hl as Ht,p as N,b8 as Ye,ai as Ge,dw as Rt,b0 as Bt,hm as At,hn as Et,al as Ut,dv as qt,du as Qt,d3 as Yt,aZ as pe,ho as Gt,cj as Je,hp as Jt,N as Se,a as Ke}from"./index-B4SkrUUS.js";import{a as $}from"./sentry-BBFZ4Apy.js";import{n as a,c as Kt}from"./mui-DUBEtzg-.js";import{bi as De,FU as Xt,FV as Zt}from"./zeni-epic-state-CbQxc4HL.js";import{k as es}from"./SubTabSwitcher-aeDd9xiF-CP_NcrPb.js";import{T as ts}from"./TransactionList-BruCNjQg-Ccsvct2A.js";import{R as ss}from"./TrendWithTransactions-DDLrmIrt-BXL-CVpz.js";import{o as os,t as as}from"./arrow-south-east-round-PEovUgvH-DUYmTke7.js";import{C as ns}from"./LabeledAddressValueField-DMcor_I8-DnYPVaTw.js";import{Y as ls}from"./LabeledDropDownFormattedTextField-BBS4da2b-CKcQYn_8.js";import"./liveblocks-Dh9EWLXD.js";import"./core-TLZ6PfaT.js";import"./recharts-ZbSULBPo.js";import"./lottie-osIcf0zV.js";import"./analytics-BFo1DlpM.js";import"./lexical-DGcsrY0x.js";import"./utils-DvDl_6hs.js";import"./ConstrainedInnerElement-BeIpAPjB-COBnQDX5.js";import"./BoxItem-CYe_gTmA-Bq-cUyHa.js";import"./commonDimensions-YcBBlmYP-COMWV7bj.js";import"./panelSelectedMixin-CzfD5-Zs-CVhhFPCD.js";import"./TrendChart-BMHDaOeh-LWC7_lHj.js";import"./chartTypes-B3501CSI-DzRICrvV.js";import"./toCOABalancesWithID-D35Fk0m2-devRZ_lq.js";import"./toChartData-DzatRnt8-r7b4SzAV.js";import"./NoDataChart-Bvetk9za-ChhbhAl5.js";import"./InsightsSection-BYiN2xB7-xEpnMvUU.js";import"./NavigationDots-tWCw6Bpk-D0d4bwwO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="b3cc5478-bf70-4951-8337-d483675725ba",e._sentryDebugIdIdentifier="sentry-dbid-b3cc5478-bf70-4951-8337-d483675725ba")}catch{}})();const is=a.div`
1
+ import{d as Ue,J as ae,y as g,aE as we,cJ as ft,a9 as wt,hd as Ce,he as Ct,aW as $t,cG as St,V as t,bC as Dt,ac as Tt,hf as jt,hg as ye,u as l,cH as Lt,aS as Vt,bD as kt,F as W,hh as Ee,hi as qe,hj as Qe,o,bQ as S,cK as It,gP as $e,hk as Ot,cL as Pt,cM as Mt,cN as _t,hl as zt,gg as Ft,cU as Nt,hm as Wt,hn as Ht,p as N,b8 as Ye,ai as Ge,dv as Rt,b0 as Bt,ho as At,hp as Ut,al as Et,du as qt,dt as Qt,d2 as Yt,aZ as pe,hq as Gt,cj as Ke,hr as Kt,H as Se,a as Je}from"./index-DOsjGhSZ.js";import{a as $}from"./sentry-otjdlEta.js";import{n as a,c as Jt}from"./mui-B2MHg-Mu.js";import{bi as De,F_ as Xt,F$ as Zt}from"./zeni-epic-state-DVinyIRY.js";import{k as es}from"./SubTabSwitcher-CqTYhJ6K-C6tI5OUk.js";import{T as ts}from"./TransactionList-BFD8ZfJ--BUbGyMLK.js";import{R as ss}from"./TrendWithTransactions-CwB4wDSN-BMowh4TY.js";import{o as os,t as as}from"./arrow-south-east-round-PEovUgvH-D7Guqwvj.js";import{C as ns}from"./LabeledAddressValueField-DSU3b6xx-SFUhns2M.js";import{Y as ls}from"./LabeledDropDownFormattedTextField-C6sW-5j7-DVIx7gwf.js";import"./liveblocks-KFxhhSr3.js";import"./core-BHxev_Cl.js";import"./recharts-B7o7FzH2.js";import"./lottie-DDoT_sT4.js";import"./analytics-Cz7GTPb4.js";import"./lexical-Dja08wvc.js";import"./utils-BbmM3Vsp.js";import"./ConstrainedInnerElement-BeIpAPjB-DDbvqxn6.js";import"./BoxItem-Dhk2kQlB-ymoj_NmA.js";import"./commonDimensions-DbvjFx29-M5i-B_2F.js";import"./panelSelectedMixin-CzfD5-Zs-CL2f5PJh.js";import"./TrendChart-DLex57el-Bd2WzCxo.js";import"./chartTypes-BqKhmkSG-DaJzMpYW.js";import"./toCOABalancesWithID-DKhXdLyk-D9LH1M_c.js";import"./toChartData-B3G_wqcy-uAjzhvaS.js";import"./NoDataChart-CGab-TiT-zyPeOkqC.js";import"./InsightsSection-CK6L0ggh-DiYoPBIp.js";import"./NavigationDots-Dqcv5rrC-DzoP8t9X.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="184d6fde-7348-4826-9719-f908b3640143",e._sentryDebugIdIdentifier="sentry-dbid-184d6fde-7348-4826-9719-f908b3640143")}catch{}})();const is=a.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: center;
@@ -26,7 +26,7 @@ import{e as Ee,J as ae,y as g,aE as we,cI as ft,a9 as wt,hb as Ce,hc as Ct,aW as
26
26
  left: 0;
27
27
  transition: left 0.25s;
28
28
 
29
- ${e=>e.optionCss?Kt`
29
+ ${e=>e.optionCss?Jt`
30
30
  ${e.optionCss}
31
31
  `:null}
32
32
  `,ms=e=>{let s="";return e.forEach(r=>{s=`${s}
@@ -43,21 +43,21 @@ import{e as Ee,J as ae,y as g,aE as we,cI as ft,a9 as wt,hb as Ce,hc as Ct,aW as
43
43
  row-gap: ${o.sp3};
44
44
  margin-bottom: ${e=>M.spendTrendsMarginBottom.valuePx(e.size)};
45
45
  background-color: ${e=>e.theme.colors.grey5};
46
- `,je=a.div`
46
+ `,Te=a.div`
47
47
  display: flex;
48
48
  column-gap: ${e=>e.isMobile===!0?"unset":M.spendTrendsColumnGap.valuePx(e.size)};
49
49
  justify-content: space-between;
50
50
  width: ${e=>e.isMobile===!0?"100%":"unset"};
51
51
  align-items: center;
52
- `,Te=a.div`
52
+ `,je=a.div`
53
53
  display: flex;
54
54
  column-gap: ${o.sp3};
55
55
  align-items: center;
56
56
  max-width: ${e=>e.isMobile===!1?"50%":"unset"};
57
- `,me=a(Ke)`
57
+ `,me=a(Je)`
58
58
  ${e=>`${Xe.spendDuration.style(e.windowSize)}`};
59
59
  color: ${e=>e.theme.colors.hero};
60
- `,he=a(Ke)`
60
+ `,he=a(Je)`
61
61
  ${e=>`${Xe.spendValue.style(e.windowSize)}`};
62
62
  color: ${e=>e.theme.colors.primary};
63
63
  text-align: ${e=>e.isMobile===!0?"left":"right"};
@@ -95,10 +95,10 @@ import{e as Ee,J as ae,y as g,aE as we,cI as ft,a9 as wt,hb as Ce,hc as Ct,aW as
95
95
  align-items: center;
96
96
  column-gap: ${o.sp1};
97
97
  cursor: pointer;
98
- `,ge=a(Je)``,Le=a(Jt)`
98
+ `,ge=a(Ke)``,Le=a(Kt)`
99
99
  color: ${e=>e.theme.colors.primary};
100
100
  word-break: break-all;
101
- `,Ve=a(Je)`
101
+ `,Ve=a(Ke)`
102
102
  color: ${e=>e.theme.colors.primary};
103
103
  word-break: break-all;
104
104
  `,ke=a.div`
@@ -112,7 +112,7 @@ import{e as Ee,J as ae,y as g,aE as we,cI as ft,a9 as wt,hb as Ce,hc as Ct,aW as
112
112
  `,fs=a.div`
113
113
  display: flex;
114
114
  justify-content: ${e=>e.isMobile?"flex-start":"flex-end"};
115
- `,ue=a.div``,ws=({spend:e,vendorName:s,vendorLogo:r,isPageLoading:i,isSpendTrendLoading:n,onPercentChangeClick:c})=>{const p=ae(),b=W.getLocalizedStrings().spendManagement.billPay.vendorCreation.vendorDetails.spends,h=p==="small"||p==="medium-compact",f=(D,u)=>u==null?null:D==="increased"?t.jsxs(vs,{onClick:c,children:[t.jsx(os,{width:o.sp3,height:o.sp3}),t.jsx(ge,{children:u})]}):D==="decreased"?t.jsxs(ys,{onClick:c,children:[t.jsx(as,{width:o.sp3,height:o.sp3}),t.jsx(ge,{children:u})]}):t.jsx(xs,{onClick:c,children:t.jsxs(ge,{children:[u,"%"]})}),B=()=>i===!0?t.jsxs(Te,{isMobile:h,children:[t.jsx(qt,{width:l[6],height:l[6]}),t.jsx(S,{width:140,height:l[6]}),t.jsx(S,{width:70,height:l[5]})]}):t.jsxs(Te,{isMobile:h,children:[r!=null?t.jsxs(ke,{children:[t.jsx(Qt,{photoUrl:r.toString(),styles:{width:M.logoWidth.valuePx(p),height:M.logoHeight.valuePx(p)}}),h?t.jsx(Ve,{children:s}):t.jsx(Le,{children:s})]}):t.jsxs(ke,{children:[t.jsx(Yt,{name:s,size:o.sp6}),h?t.jsx(Ve,{children:s}):t.jsx(Le,{children:s})]}),f(e.changeType,e.percentChange)]}),A=()=>n||i?t.jsx(je,{size:p,isMobile:h,children:[...Array(3)].map((D,u)=>t.jsxs(bs,{children:[t.jsx(S,{width:M.spendTrendHeadingSkeletonWidth.value(p),height:l[4]}),t.jsx(fs,{isMobile:h,children:t.jsx(S,{width:M.spendTrendHeadingSkeletonWidth.value(p)/2,height:l[4]})})]},u))}):t.jsxs(je,{size:p,isMobile:h,children:[t.jsxs(ue,{children:[t.jsx(me,{windowSize:p,isMobile:h,children:b.last30Days}),t.jsx(he,{windowSize:p,isMobile:h,children:pe("0,0.[00]",e.last30DaysSpend,e.currencySymbol)})]}),t.jsxs(ue,{children:[t.jsx(me,{windowSize:p,isMobile:h,children:b.last90Days}),t.jsx(he,{windowSize:p,isMobile:h,children:pe("0,0.[00]",e.last90DaysSpend,e.currencySymbol)})]}),t.jsxs(ue,{children:[t.jsx(me,{windowSize:p,isMobile:h,children:b.ytdSpend}),t.jsx(he,{windowSize:p,isMobile:h,children:pe("0,0.[00]",e.yearToDateSpend,e.currencySymbol)})]})]});return t.jsxs(us,{isMobile:h,size:p,children:[B(),A()]})},z={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}`,Cs=W.getLocalizedStrings().spendManagement,se=W.getLocalizedStrings().companyPassport,Q=Cs.billPay.vendorCreation,k=W.getLocalizedStrings().common,$s=({vendorTypeList:e=[],isDisabled:s,sectionId:r,selectedVendorDetails:i,onAddressClick:n})=>{const c=ae(),p=z.labelWidth.value(c),b=z.largeLabelWidth.value(c),h=z.largeTinLabelWidth.value(c),f=z.controlWidth.value(c);return t.jsxs(Ss,{children:[t.jsx(Ds,{children:Q.vendorDetails.titleFor1099Section}),t.jsxs(js,{children:[t.jsx(Pt,{isDisabled:s,label:{label:se.companyInfo.legalName,width:p},text:{type:"text",style:{width:f},name:q(r,"legalName"),placeholder:zt(se.companyInfo.legalName),defaultValue:i.vendorBasic.legalName,autoComplete:"new-password",options:{required:!!i.vendorBasic.legalName,pattern:Mt}},style:{width:"100%"}}),t.jsx(ve,{}),t.jsxs(Ie,{children:[t.jsx(Ls,{width:b,windowSize:c,children:Q.vendorDetails.vendorType}),t.jsx(Ts,{size:c,children:t.jsx(Ft,{name:q(r,"vendorType"),value:{allTypes:e,selectedType:i.vendorDetailLocalData?.vendorType},placeholderLabel:Q.placeholders.type})})]}),t.jsx(ve,{}),t.jsx(Ie,{children:t.jsx(ls,{name:q(r,"tinType"),menuPlacement:"auto",style:{height:o.sp6,width:"100%",marginLeft:o.sp4},dropdownStyle:{width:"40%"},defaultValue:{dropDownValue:i.vendorDetailLocalData?.tin?.type??k.strings.empty,dropDownList:[{code:k.texts.ein,label:k.texts.ein.toUpperCase()},{code:k.texts.ssn,label:k.texts.ssn.toUpperCase()}]},registerOptions:{required:!1},label:{width:h},placeholderLabel:Q.placeholders.tinType,formattedText:{type:"text",name:q(r,"tinValue"),placeholder:Q.placeholders.tinValue,format:i.vendorDetailLocalData?.tin?.type===k.texts.ssn?Wt:Ht,registerOptions:{required:!!i.vendorDetailLocalData?.tin?.type,pattern:i.vendorDetailLocalData?.tin?.type===k.texts.ssn?_t:Nt},style:{width:"100%",height:o.sp6},defaultValue:i.vendorDetailLocalData?.tin?.value??k.strings.empty,maxLength:9,allowLeadingZeros:!0,autoComplete:"new-password",isDisabled:i.vendorDetailLocalData?.tin?.type===null?"disabled":void 0}})}),t.jsx(ve,{}),t.jsx(ns,{isDisabled:s,label:{label:se.companyInfo.address,width:p},addressValueField:{name:q(r,"address"),placeholder:se.address.titleAdd,defaultValue:i.vendorNewAddressStatus?.addressToCreate,onClick:()=>n("vendor_address",i.vendorAddress?.addressId)},showAdditionalInfoLabel:!1,style:{width:"100%"}})]})]})},Ss=a.div`
115
+ `,ue=a.div``,ws=({spend:e,vendorName:s,vendorLogo:r,isPageLoading:i,isSpendTrendLoading:n,onPercentChangeClick:c})=>{const p=ae(),b=W.getLocalizedStrings().spendManagement.billPay.vendorCreation.vendorDetails.spends,h=p==="small"||p==="medium-compact",f=(D,u)=>u==null?null:D==="increased"?t.jsxs(vs,{onClick:c,children:[t.jsx(os,{width:o.sp3,height:o.sp3}),t.jsx(ge,{children:u})]}):D==="decreased"?t.jsxs(ys,{onClick:c,children:[t.jsx(as,{width:o.sp3,height:o.sp3}),t.jsx(ge,{children:u})]}):t.jsx(xs,{onClick:c,children:t.jsxs(ge,{children:[u,"%"]})}),B=()=>i===!0?t.jsxs(je,{isMobile:h,children:[t.jsx(qt,{width:l[6],height:l[6]}),t.jsx(S,{width:140,height:l[6]}),t.jsx(S,{width:70,height:l[5]})]}):t.jsxs(je,{isMobile:h,children:[r!=null?t.jsxs(ke,{children:[t.jsx(Qt,{photoUrl:r.toString(),styles:{width:M.logoWidth.valuePx(p),height:M.logoHeight.valuePx(p)}}),h?t.jsx(Ve,{children:s}):t.jsx(Le,{children:s})]}):t.jsxs(ke,{children:[t.jsx(Yt,{name:s,size:o.sp6}),h?t.jsx(Ve,{children:s}):t.jsx(Le,{children:s})]}),f(e.changeType,e.percentChange)]}),A=()=>n||i?t.jsx(Te,{size:p,isMobile:h,children:[...Array(3)].map((D,u)=>t.jsxs(bs,{children:[t.jsx(S,{width:M.spendTrendHeadingSkeletonWidth.value(p),height:l[4]}),t.jsx(fs,{isMobile:h,children:t.jsx(S,{width:M.spendTrendHeadingSkeletonWidth.value(p)/2,height:l[4]})})]},u))}):t.jsxs(Te,{size:p,isMobile:h,children:[t.jsxs(ue,{children:[t.jsx(me,{windowSize:p,isMobile:h,children:b.last30Days}),t.jsx(he,{windowSize:p,isMobile:h,children:pe("0,0.[00]",e.last30DaysSpend,e.currencySymbol)})]}),t.jsxs(ue,{children:[t.jsx(me,{windowSize:p,isMobile:h,children:b.last90Days}),t.jsx(he,{windowSize:p,isMobile:h,children:pe("0,0.[00]",e.last90DaysSpend,e.currencySymbol)})]}),t.jsxs(ue,{children:[t.jsx(me,{windowSize:p,isMobile:h,children:b.ytdSpend}),t.jsx(he,{windowSize:p,isMobile:h,children:pe("0,0.[00]",e.yearToDateSpend,e.currencySymbol)})]})]});return t.jsxs(us,{isMobile:h,size:p,children:[B(),A()]})},_={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}`,Cs=W.getLocalizedStrings().spendManagement,se=W.getLocalizedStrings().companyPassport,Q=Cs.billPay.vendorCreation,k=W.getLocalizedStrings().common,$s=({vendorTypeList:e=[],isDisabled:s,sectionId:r,selectedVendorDetails:i,onAddressClick:n})=>{const c=ae(),p=_.labelWidth.value(c),b=_.largeLabelWidth.value(c),h=_.largeTinLabelWidth.value(c),f=_.controlWidth.value(c);return t.jsxs(Ss,{children:[t.jsx(Ds,{children:Q.vendorDetails.titleFor1099Section}),t.jsxs(Ts,{children:[t.jsx(Pt,{isDisabled:s,label:{label:se.companyInfo.legalName,width:p},text:{type:"text",style:{width:f},name:q(r,"legalName"),placeholder:_t(se.companyInfo.legalName),defaultValue:i.vendorBasic.legalName,autoComplete:"new-password",options:{required:!!i.vendorBasic.legalName,pattern:Mt}},style:{width:"100%"}}),t.jsx(ve,{}),t.jsxs(Ie,{children:[t.jsx(Ls,{width:b,windowSize:c,children:Q.vendorDetails.vendorType}),t.jsx(js,{size:c,children:t.jsx(zt,{name:q(r,"vendorType"),value:{allTypes:e,selectedType:i.vendorDetailLocalData?.vendorType},placeholderLabel:Q.placeholders.type})})]}),t.jsx(ve,{}),t.jsx(Ie,{children:t.jsx(ls,{name:q(r,"tinType"),menuPlacement:"auto",style:{height:o.sp6,width:"100%",marginLeft:o.sp4},dropdownStyle:{width:"40%"},defaultValue:{dropDownValue:i.vendorDetailLocalData?.tin?.type??k.strings.empty,dropDownList:[{code:k.texts.ein,label:k.texts.ein.toUpperCase()},{code:k.texts.ssn,label:k.texts.ssn.toUpperCase()}]},registerOptions:{required:!1},label:{width:h},placeholderLabel:Q.placeholders.tinType,formattedText:{type:"text",name:q(r,"tinValue"),placeholder:Q.placeholders.tinValue,format:i.vendorDetailLocalData?.tin?.type===k.texts.ssn?Wt:Ht,registerOptions:{required:!!i.vendorDetailLocalData?.tin?.type,pattern:i.vendorDetailLocalData?.tin?.type===k.texts.ssn?Ft:Nt},style:{width:"100%",height:o.sp6},defaultValue:i.vendorDetailLocalData?.tin?.value??k.strings.empty,maxLength:9,allowLeadingZeros:!0,autoComplete:"new-password",isDisabled:i.vendorDetailLocalData?.tin?.type===null?"disabled":void 0}})}),t.jsx(ve,{}),t.jsx(ns,{isDisabled:s,label:{label:se.companyInfo.address,width:p},addressValueField:{name:q(r,"address"),placeholder:se.address.titleAdd,defaultValue:i.vendorNewAddressStatus?.addressToCreate,onClick:()=>n("vendor_address",i.vendorAddress?.addressId)},showAdditionalInfoLabel:!1,style:{width:"100%"}})]})]})},Ss=a.div`
116
116
  display: flex;
117
117
  flex-direction: column;
118
118
  padding-top: ${o.sp5};
@@ -121,7 +121,7 @@ import{e as Ee,J as ae,y as g,aE as we,cI as ft,a9 as wt,hb as Ce,hc as Ct,aW as
121
121
  color: ${e=>e.theme.colors.primary};
122
122
  margin-bottom: ${o.sp3};
123
123
  margin-right: ${o.sp6};
124
- `,js=a.div`
124
+ `,Ts=a.div`
125
125
  display: flex;
126
126
  flex-direction: column;
127
127
  background-color: ${e=>e.theme.colors.grey5};
@@ -158,17 +158,17 @@ import{e as Ee,J as ae,y as g,aE as we,cI as ft,a9 as wt,hb as Ce,hc as Ct,aW as
158
158
  border-bottom-left-radius: inherit;
159
159
  border-bottom-right-radius: inherit;
160
160
  }
161
- `,Ts=a.div`
161
+ `,js=a.div`
162
162
  width: ${e=>e.controlWidth!=null?`calc(100% - ${e.controlWidth}px)`:"100%"};
163
163
  display: flex;
164
164
  flex-grow: ${e=>e.size==="small"?1:0};
165
165
  align-items: center;
166
166
  margin-right: ${o.sp2};
167
- `,Ls=a(Ut)`
167
+ `,Ls=a(Et)`
168
168
  width: ${e=>e.width}px;
169
169
  color: ${e=>e.theme.colors.hero};
170
- margin: ${e=>`${z.labelMarginTop.valuePx(e.windowSize)} ${z.labelMarginLeft.valuePx(e.windowSize)} ${z.labelMarginBottom.valuePx(e.windowSize)} ${z.labelMarginLeft.valuePx(e.windowSize)}`};
171
- `,Oe=W.getLocalizedStrings().vendors.common.transactionTabTitles,Vs=()=>ks,ks=[{id:"spend_transactions",label:Oe.spendTransactions,leftMargin:!1,style:{width:136,left:2}},{id:"all_transactions",label:Oe.allTransactions,leftMargin:!0,style:{width:122,left:60}}],Pe={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},_=(e,s)=>`${e}.${s}`,Ze=W.getLocalizedStrings(),{common:oe,cockpit:Me}=Ze,I=Ze.spendManagement.billPay.vendorCreation,Is=({accountsHierarchyList:e,allAccounts:s,allClasses:r,allOwners:i,classHierarchyList:n,enableRecommendationUpdateCheckbox:c,readOnlyMode:p,isDisabled:b,recommendations:h,sectionId:f,selectedAccountId:B,selectedClassId:A,selectedOwnerId:D,selectedVendorDetails:u,uiState:E,isFiling1099FeatureEnabled:Y,onClickShowMoreOrLess:ne})=>{const G=ae(),J=Ee(),{getValues:K}=It(),H=Pe.labelWidth.value(G),le=Pe.controlWidth.value(G),ie=C=>s.filter(T=>T.accountId===C)[0]?.coaId??"",re=C=>r.filter(T=>T.classId===C)[0]?.accountingClassNumber??"",R=C=>{const T=s.find(Z=>Z.accountId===C)?.accountName;return[At,Et].includes(T??"")},j=I.vendorDetails.recommendation.tooltip,U=j.category.replace("__based__",u?.vendorDetailLocalData?.recommendedCategory?.reason?.toLocaleLowerCase()??""),X=j.class.replace("__based__",u?.vendorDetailLocalData?.recommendedClass?.reason?.toLocaleLowerCase()??""),de=u?.vendorDetailLocalData?.recommendedCategory!=null&&!!c,ce=u?.vendorDetailLocalData?.recommendedClass!=null&&!!c;return t.jsxs(Os,{children:[t.jsxs(Ps,{children:[t.jsx(Ms,{children:I.vendorDetails.title}),Y?t.jsxs(Fs,{onClick:()=>ne(),children:[E?.collapsableStatus==="expand"?`${oe.show}${oe.strings.space}${Me.subscription.lessBtnText}`:`${oe.show}${oe.strings.space}${Me.subscription.moreBtnText}`,E?.collapsableStatus==="expand"?t.jsx(_s,{}):t.jsx(Ns,{})]}):null]}),t.jsxs(zs,{children:[t.jsx($e,{isLoading:!1,label:{label:I.vendorDetails.category,width:H},groupedSingleSelectField:{name:_(f,"vendorCategory"),placeholder:I.placeholders.category,valueToInfo:C=>ie(C),defaultValue:{selectedOption:B,allOptions:qe(e,h)},style:{width:"auto"},registerOptions:{required:!1},shouldShowChevronIcon:de},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${J.colors.grey3}`},isDisabled:p?"readonly":b,disableCurrentOption:R,fullWidthSelect:!1,zIndexOnFocus:!0,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedCategory!=null&&c?{tooltipProps:{text:U},label:{label:u?.vendorDetailLocalData?.recommendedCategory?.accountName},checkBoxField:{name:_(f,"isRecommendedCategorySelected"),defaultChecked:K(_(f,"isRecommendedCategorySelected"))}}:void 0}),t.jsx($e,{isLoading:!1,label:{label:I.vendorDetails.class,width:H},zIndexOnFocus:!0,groupedSingleSelectField:{name:_(f,"vendorClass"),placeholder:I.placeholders.class,valueToInfo:C=>re(C),defaultValue:{selectedOption:A,allOptions:Ue(n,h)},registerOptions:{required:!1},style:{width:"auto"},shouldShowChevronIcon:ce},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${J.colors.grey3}`},isDisabled:p===!0?"readonly":b,fullWidthSelect:!1,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedClass!=null&&c?{tooltipProps:{text:X},label:{label:u?.vendorDetailLocalData?.recommendedClass?.className},checkBoxField:{name:_(f,"isRecommendedClassSelected"),defaultChecked:K(_(f,"isRecommendedClassSelected"))}}:void 0}),t.jsx(Ot,{label:{label:I.vendorDetails.vendorOwner,width:H},userSingleSelectField:{name:_(f,"vendorOwner"),placeholder:I.placeholders.owner,defaultValue:{allOptions:Qe(i),selectedOption:D},registerOptions:{required:!1},style:{width:"auto"}},isDisabled:p===!0?"readonly":b,style:{justifyContent:"space-between"},controlWidth:le,fullWidthSelect:!1})]})]})},Os=a.div`
170
+ margin: ${e=>`${_.labelMarginTop.valuePx(e.windowSize)} ${_.labelMarginLeft.valuePx(e.windowSize)} ${_.labelMarginBottom.valuePx(e.windowSize)} ${_.labelMarginLeft.valuePx(e.windowSize)}`};
171
+ `,Oe=W.getLocalizedStrings().vendors.common.transactionTabTitles,Vs=()=>ks,ks=[{id:"spend_transactions",label:Oe.spendTransactions,leftMargin:!1,style:{width:136,left:2}},{id:"all_transactions",label:Oe.allTransactions,leftMargin:!0,style:{width:122,left:60}}],Pe={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},F=(e,s)=>`${e}.${s}`,Ze=W.getLocalizedStrings(),{common:oe,cockpit:Me}=Ze,I=Ze.spendManagement.billPay.vendorCreation,Is=({accountsHierarchyList:e,allAccounts:s,allClasses:r,allOwners:i,classHierarchyList:n,enableRecommendationUpdateCheckbox:c,readOnlyMode:p,isDisabled:b,recommendations:h,sectionId:f,selectedAccountId:B,selectedClassId:A,selectedOwnerId:D,selectedVendorDetails:u,uiState:U,isFiling1099FeatureEnabled:Y,onClickShowMoreOrLess:ne})=>{const G=ae(),K=Ue(),{getValues:J}=It(),H=Pe.labelWidth.value(G),le=Pe.controlWidth.value(G),ie=C=>s.filter(j=>j.accountId===C)[0]?.coaId??"",re=C=>r.filter(j=>j.classId===C)[0]?.accountingClassNumber??"",R=C=>{const j=s.find(Z=>Z.accountId===C)?.accountName;return[At,Ut].includes(j??"")},T=I.vendorDetails.recommendation.tooltip,E=T.category.replace("__based__",u?.vendorDetailLocalData?.recommendedCategory?.reason?.toLocaleLowerCase()??""),X=T.class.replace("__based__",u?.vendorDetailLocalData?.recommendedClass?.reason?.toLocaleLowerCase()??""),de=u?.vendorDetailLocalData?.recommendedCategory!=null&&!!c,ce=u?.vendorDetailLocalData?.recommendedClass!=null&&!!c;return t.jsxs(Os,{children:[t.jsxs(Ps,{children:[t.jsx(Ms,{children:I.vendorDetails.title}),Y?t.jsxs(zs,{onClick:()=>ne(),children:[U?.collapsableStatus==="expand"?`${oe.show}${oe.strings.space}${Me.subscription.lessBtnText}`:`${oe.show}${oe.strings.space}${Me.subscription.moreBtnText}`,U?.collapsableStatus==="expand"?t.jsx(Fs,{}):t.jsx(Ns,{})]}):null]}),t.jsxs(_s,{children:[t.jsx($e,{isLoading:!1,label:{label:I.vendorDetails.category,width:H},groupedSingleSelectField:{name:F(f,"vendorCategory"),placeholder:I.placeholders.category,valueToInfo:C=>ie(C),defaultValue:{selectedOption:B,allOptions:qe(e,h)},style:{width:"auto"},registerOptions:{required:!1},shouldShowChevronIcon:de},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${K.colors.grey3}`},isDisabled:p?"readonly":b,disableCurrentOption:R,fullWidthSelect:!1,zIndexOnFocus:!0,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedCategory!=null&&c?{tooltipProps:{text:E},label:{label:u?.vendorDetailLocalData?.recommendedCategory?.accountName},checkBoxField:{name:F(f,"isRecommendedCategorySelected"),defaultChecked:J(F(f,"isRecommendedCategorySelected"))}}:void 0}),t.jsx($e,{isLoading:!1,label:{label:I.vendorDetails.class,width:H},zIndexOnFocus:!0,groupedSingleSelectField:{name:F(f,"vendorClass"),placeholder:I.placeholders.class,valueToInfo:C=>re(C),defaultValue:{selectedOption:A,allOptions:Ee(n,h)},registerOptions:{required:!1},style:{width:"auto"},shouldShowChevronIcon:ce},additionalLabelInfo:void 0,style:{borderBottom:`1px solid ${K.colors.grey3}`},isDisabled:p===!0?"readonly":b,fullWidthSelect:!1,recommendationCheckboxField:u?.vendorDetailLocalData?.recommendedClass!=null&&c?{tooltipProps:{text:X},label:{label:u?.vendorDetailLocalData?.recommendedClass?.className},checkBoxField:{name:F(f,"isRecommendedClassSelected"),defaultChecked:J(F(f,"isRecommendedClassSelected"))}}:void 0}),t.jsx(Ot,{label:{label:I.vendorDetails.vendorOwner,width:H},userSingleSelectField:{name:F(f,"vendorOwner"),placeholder:I.placeholders.owner,defaultValue:{allOptions:Qe(i),selectedOption:D},registerOptions:{required:!1},style:{width:"auto"}},isDisabled:p===!0?"readonly":b,style:{justifyContent:"space-between"},controlWidth:le,fullWidthSelect:!1})]})]})},Os=a.div`
172
172
  display: flex;
173
173
  flex-direction: column;
174
174
  padding-top: ${o.sp3};
@@ -180,21 +180,21 @@ import{e as Ee,J as ae,y as g,aE as we,cI as ft,a9 as wt,hb as Ce,hc as Ct,aW as
180
180
  color: ${e=>e.theme.colors.primary};
181
181
  margin-bottom: ${o.sp3};
182
182
  margin-right: ${o.sp6};
183
- `,zs=a.div`
183
+ `,_s=a.div`
184
184
  display: flex;
185
185
  flex-direction: column;
186
186
  background-color: ${e=>e.theme.colors.grey5};
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
- `,Fs=a(Ge)`
190
+ `,zs=a(Ge)`
191
191
  display: flex;
192
192
  justify-content: flex-end;
193
193
  color: ${e=>e.theme.colors.hero};
194
194
  margin-bottom: ${o.sp0};
195
195
  margin-right: ${o.sp0};
196
196
  cursor: pointer;
197
- `,_s=a(Rt)`
197
+ `,Fs=a(Rt)`
198
198
  width: ${o.sp3};
199
199
  height: ${o.sp3};
200
200
  margin-left: ${o.sp2};
@@ -208,23 +208,23 @@ import{e as Ee,J as ae,y as g,aE as we,cI as ft,a9 as wt,hb as Ce,hc as Ct,aW as
208
208
  display: flex;
209
209
  flex-direction: column;
210
210
  row-gap: ${o.sp7};
211
- `,ze=a.div`
211
+ `,_e=a.div`
212
212
  display: flex;
213
213
  flex-direction: column;
214
214
  row-gap: ${o.sp3};
215
- `,Fe=a.div`
215
+ `,ze=a.div`
216
216
  border: 1px solid ${e=>e.theme.colors.grey3};
217
217
  filter: drop-shadow(
218
218
  ${o.sp0} 2px ${o.sp1} ${N.boxShadowElevation}
219
219
  );
220
220
  border-radius: ${o.sp2};
221
221
  background: ${e=>e.theme.colors.grey5};
222
- `,_e=a.div`
222
+ `,Fe=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
- `,Hs=()=>t.jsxs(Ws,{children:[[...Array(1)].map((e,s)=>t.jsxs(ze,{children:[t.jsx(S,{width:120,height:l[4]}),t.jsx(Fe,{children:[...Array(3)].map((r,i)=>t.jsxs(_e,{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(ze,{children:[t.jsx(S,{width:120,height:l[4]}),t.jsx(Fe,{children:[...Array(4)].map((r,i)=>t.jsxs(_e,{children:[t.jsx(S,{width:70,height:l[4]}),t.jsx(S,{width:140,height:l[4]})]},i))})]},s))]}),y=W.getLocalizedStrings(),{vendors:{vendorDetailPage:O},common:{footer:Ne}}=y,P={transactionListHeight:new g(325,275,225),formContainerHorizontalPadding:new g(l[3],l[3],l[8]),buttonWidth:new g(85,85),navbarHeight:63},We=e=>`${e}_form`,x="vendorDetails",xe="vendor1099Details",He="vendorDetailPage",Rs=a.div`
227
+ `,Hs=()=>t.jsxs(Ws,{children:[[...Array(1)].map((e,s)=>t.jsxs(_e,{children:[t.jsx(S,{width:120,height:l[4]}),t.jsx(ze,{children:[...Array(3)].map((r,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(_e,{children:[t.jsx(S,{width:120,height:l[4]}),t.jsx(ze,{children:[...Array(4)].map((r,i)=>t.jsxs(Fe,{children:[t.jsx(S,{width:70,height:l[4]}),t.jsx(S,{width:140,height:l[4]})]},i))})]},s))]}),y=W.getLocalizedStrings(),{vendors:{vendorDetailPage:O},common:{footer:Ne}}=y,P={transactionListHeight:new g(325,275,225),formContainerHorizontalPadding:new g(l[3],l[3],l[8]),buttonWidth:new g(85,85),navbarHeight:63},We=e=>`${e}_form`,x="vendorDetails",xe="vendor1099Details",He="vendorDetailPage",Rs=a.div`
228
228
  display: flex;
229
229
  flex: 1 1 auto;
230
230
  min-height: 100%;
@@ -250,8 +250,8 @@ import{e as Ee,J as ae,y as g,aE as we,cI as ft,a9 as wt,hb as Ce,hc as Ct,aW as
250
250
  `,As=a.div`
251
251
  display: flex;
252
252
  flex-direction: column;
253
- `,Es=a.div``,Us=a.div``,qs=a.div`
253
+ `,Us=a.div``,Es=a.div``,qs=a.div`
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
- `,Qs=[{label:O.vendorSpendTrendFilterLabels.last_30_days,id:"last_30_days"},{label:O.vendorSpendTrendFilterLabels.last_90_days,id:"last_90_days"},{label:O.vendorSpendTrendFilterLabels.YTD_spend,id:"YTD_spend"},{label:O.vendorSpendTrendFilterLabels.last_month,id:"last_month"},{label:O.vendorSpendTrendFilterLabels.last_3_months,id:"last_3_months"},{label:O.vendorSpendTrendFilterLabels.last_6_months,id:"last_6_months"},{label:O.vendorSpendTrendFilterLabels.last_12_months,id:"last_12_months"},{label:O.vendorSpendTrendFilterLabels.last_year,id:"last_year"}],So=({isFiling1099FeatureEnabled:e,vendorDetailView:s,firstMonthOfFY:r,vendorLogo:i,readOnlyMode:n,isDisabled:c,scrollToTrend:p,allTransactionsTabData:b,onVendorTabSelectionChanged:h,onLoadPreviousTransactionsClick:f,onSaveSuccess:B,saveVendorDetailLocalData:A,onCancelClick:D,onTrendSelectedPeriodChange:u,onTransactionItemClick:E,onSpendTrendPercentChangeClick:Y,onSaveVendor:ne,onVendorSpendTrendFilterTabClick:G,onAddressClick:J,saveContactsInVendorTabDetailLocalData:K,onVendorDetailUIChange:H,sidePanelIsFullView:le,sidePanelIsOpen:ie,panelContent:re})=>{const R=Ee(),j=ae(),U=$.useRef(null),[X,de]=$.useState(!1),[ce,C]=$.useState(P.transactionListHeight.value()),T=s?.selectedTabType,Z=Vs(),m=Object.assign({},s?.vendorViewDetails?.vendorView),L=s?.vendorViewDetails.vendorView?.vendorDetailLocalData,ee=s?.uiState,et=!we(m!=null&&m.vendorAddress!=null?De(m.vendorAddress):m.vendorAddress,m.vendorNewAddressStatus?.addressToCreate!=null?De(m.vendorNewAddressStatus?.addressToCreate):m.vendorNewAddressStatus?.addressToCreate),tt=(m?.vendorDetailLocalData?.contacts??[]).filter(d=>d.email!==y.common.strings.empty||d.fullName!==y.common.strings.empty||d.phone!==y.common.strings.empty).map(d=>ft(d,"contactInfoType")),be=$.useMemo(()=>m.vendorBasic?.contacts??[],[m.vendorBasic?.contacts]),st=!we(tt,be),te=wt({mode:"all",defaultValues:Ae(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),values:Ae(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),resetOptions:{keepDirtyValues:!0}}),[ot,at]=$.useState(-1),nt=m.vendorDetailLocalData?.contacts!=null&&m.vendorDetailLocalData?.contacts.length>0?m.vendorDetailLocalData?.contacts:Ce,[lt,it]=$.useState(Ct(nt)),rt=d=>{it(d),K?.(L?.vendorId??y.common.strings.empty,d)};$.useEffect(()=>{p===!0&&X===!1&&s?.trendWithTransactions.trendReport?.fetchState==="Completed"&&s?.trendWithTransactions.transactionView?.fetchState==="Completed"&&(window.scrollTo({top:(U.current?.offsetTop??0)+P.navbarHeight,behavior:"smooth"}),de(!0))},[p,X,s?.trendWithTransactions.trendReport?.fetchState,s?.trendWithTransactions.transactionView?.fetchState]);const dt=new $t(R.colors.graphColor12),V=s?.fetchState==="Not-Started"||s?.fetchState==="In-Progress",ct=s?.vendorViewDetails.vendorView?.saveStatus.fetchState==="In-Progress",pt=s?.trendWithTransactions.trendReport?.fetchState==="In-Progress",mt=(d,v)=>{u?.(v)};$.useEffect(()=>{s?.vendorViewDetails.vendorView?.saveStatus?.fetchState==="Completed"&&B?.()},[m]);const ht=$.useCallback(()=>{window.scrollTo({top:(U.current?.offsetTop??0)+P.navbarHeight,behavior:"smooth"}),Y?.()},[Y]),gt=async(d,v)=>{const w=v;if(d.includes("isRecommendedCategorySelected")){const F=v[x].isRecommendedCategorySelected===!0?m?.vendorDetailLocalData?.recommendedCategory?.accountId:m?.vendorBasic?.account?.accountId;w[x].vendorCategory={selectedOption:F,allOptions:v[x].vendorCategory.allOptions}}if(d.includes("isRecommendedClassSelected")){const F=v[x].isRecommendedClassSelected===!0?m.vendorDetailLocalData?.recommendedClass?.classId:m?.vendorBasic?.class?.classId;w[x].vendorClass={selectedOption:F,allOptions:v[x].vendorClass.allOptions}}if(d.includes("vendorCategory")){const F=w[x].vendorCategory.selectedOption===w[x].recommendedCategory?.accountId;w[x].isRecommendedCategorySelected=F}if(d.includes("vendorClass")){const F=w[x].vendorClass.selectedOption===w[x].recommendedClass?.classId;w[x].isRecommendedClassSelected=F}ut(w)};$.useEffect(()=>{const d=te.watch((v,{name:w})=>{w!=null&&v!=null&&St(()=>gt(w,v))});return()=>{d.unsubscribe()}});const ut=d=>{const v=Ys(d,m.vendorBasic?.id,L);A?.(v)},vt=d=>{h(Xt(d.id))},yt={isLoading:s?.allVendorTransactionsView?.fetchState==="In-Progress"||s?.allVendorTransactionsView?.fetchState==="Not-Started",onLoadPreviousClick:(d,v)=>{f(d,(b?.numberOfQuartersFetched??0)+1)}},xt=()=>{switch(T){case"all_transactions":return t.jsx(Bs,{height:ce,children:V===!1&&b?.timePeriod!=null?t.jsx(ts,{firstMonthOfFY:r,timeframe:"quarter",timePeriod:b.timePeriod,transactions:s?.allVendorTransactionsView?.transactions??[],isFirstLotLoading:V,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:E,onListInnerElementHeightChanged:d=>{C(d)},showLoadPrevious:yt}):null});case"spend_transactions":default:return s?.trendWithTransactions!=null?t.jsxs(t.Fragment,{children:[t.jsx(es,{allTabs:Qs,selectedTab:s.vendorSpendTrendFilterTabValue,onTabChange:d=>{const v=Zt(d.id);v!=null&&G(v)},containerStyle:{marginLeft:l[8],marginRight:l[8]}}),t.jsx(Es,{ref:U,children:t.jsx(ss,{firstMonthOfFY:r,trendWithTransactionsReport:s?.trendWithTransactions,isDetailPage:!1,graphColor:dt,initialTransactionListHeight:P.transactionListHeight.value(j),page:"vendorDetailPage",onTimePeriodChange:mt,onTransactionItemClick:E})})]}):null}},bt=()=>{ee?.collapsableStatus==="expand"?H?.("collapse"):H?.("expand")},fe=Z.find(d=>T===d.id);return t.jsx(Dt,{isOpen:ie??!1,isFullView:le??!1,panelContent:re,headerContent:t.jsxs(t.Fragment,{children:[t.jsx(kt,{onBackClick:D,title:m.vendorBasic?.name??y.common.strings.empty,style:{zIndex:3},hideSearchBtn:!0,backgroundColor:R.colors.grey5,enableTitleOnScroll:!0,source:"VendorDetailPage"}),s?.vendorSpend!=null?t.jsx(ws,{isPageLoading:V,vendorName:m.vendorBasic?.name??y.common.strings.empty,spend:s?.vendorSpend,vendorLogo:i,isSpendTrendLoading:pt,onPercentChangeClick:ht}):null]}),listContent:t.jsxs(Rs,{children:[V===!0&&t.jsx(Be,{isPageLoading:V,children:t.jsx(Re,{size:j,children:t.jsx(Hs,{})})}),V===!1&&m.vendorDetailLocalData!=null&&t.jsxs(Be,{isPageLoading:V,children:[t.jsx(Re,{size:j,children:t.jsx(jt,{...te,children:t.jsxs("form",{id:We(He),onSubmit:te.handleSubmit(ne),children:[t.jsx(Is,{sectionId:x,selectedVendorId:L?.vendorId,selectedVendorDetails:m,selectedAccountId:L?.vendorCategory,selectedClassId:L?.vendorClass,selectedOwnerId:L?.vendorOwner,recommendations:L?.recommendations??[],allAccounts:s?.vendorViewDetails.accountList.accounts??[],allClasses:s?.vendorViewDetails.classList.classes??[],screenType:"edit",selectedVendorName:L?.vendorName,allOwners:s?.vendorViewDetails.ownerList??[],readOnlyMode:n,isDisabled:c,accountsHierarchyList:s?.vendorViewDetails.accountsHierarchyList??[],classHierarchyList:s?.vendorViewDetails.classHierarchyList??[],enableRecommendationUpdateCheckbox:!0,uiState:ee,isFiling1099FeatureEnabled:e,onClickShowMoreOrLess:bt}),e&&ee?.collapsableStatus==="expand"?t.jsxs(qs,{collapsableStatus:ee?.collapsableStatus??"expand",children:[t.jsx($s,{selectedVendorDetails:m,isDisabled:c,onAddressClick:J,sectionId:xe,vendorTypeList:s?.vendorViewDetails.vendorTypeList??[]}),t.jsx(Tt,{emailRequired:!1,vendorContactInfos:Ce,sectionId:ye,vendorContactInfoWithType:lt,setVendorContactInfoWithType:rt,deleteContactConfirmationIndex:ot,updateContactDeleteConfirmationIndex:at,initialContactList:be})]}):null]})})}),fe!=null?t.jsxs(As,{children:[t.jsx(Us,{children:t.jsx(gs,{allTabs:Z,containerStyle:{marginLeft:l[8],marginRight:l[8],borderBottom:`1px solid ${R.colors.grey3}`,backgroundColor:R.colors.grey4,justifyContent:"left"},selectedTab:fe,onOptionSelectionChanged:vt})}),xt()]}):null]}),!V&&n!==!0&&(Lt(te.formState.dirtyFields)||et||st)?t.jsx(Vt,{formId:We(He),primaryBtn:{label:Ne.save,isLoading:ct,style:{width:P.buttonWidth.value(j)},isDisabled:!1},cancelBtn:{label:Ne.cancel,style:{width:P.buttonWidth.value(j)},onClick:D}}):null]})})},Ae=(e,s,r,i,n,c)=>({[x]:{vendorName:n?.vendorName??y.common.strings.empty,vendorOwner:{allOptions:Qe(c),selectedOption:n?.vendorOwner},vendorCategory:{allOptions:qe(e,n?.recommendations),selectedOption:n?.vendorCategory},vendorClass:{allOptions:Ue(s,n?.recommendations),selectedOption:n?.vendorClass},recommendedCategory:n?.recommendedCategory,recommendedClass:n?.recommendedClass,isRecommendedCategorySelected:n?.isCategoryUpdateSelected??!1,isRecommendedClassSelected:n?.isClassUpdateSelected??!1},[xe]:{legalName:n?.legalName??y.common.strings.empty,email:n?.vendorEmail??y.common.strings.empty,phone:n?.vendorPhone??y.common.strings.empty,vendorType:{allTypes:r,selectedType:n?.vendorType},tinType:n?.tin?.type??null,tinValue:n?.tin?.value??null,address:i},[ye]:n!=null&&n?.contacts!=null&&n?.contacts.length!==0?n.contacts:[{fullName:y.common.strings.empty,email:y.common.strings.empty,phone:y.common.strings.empty,id:y.common.strings.empty}]}),Ys=(e,s,r)=>{const i=e?.[x],n=e?.[xe];return{vendorCategory:i.vendorCategory.selectedOption,vendorClass:i.vendorClass.selectedOption,vendorId:s,recommendations:r?.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(Gt,y.common.strings.empty):null},address:n.address,contacts:e?.[ye]}};export{So as default,We as formUniqueName,xe as vendor1099DetailsSectionId,x as vendorDetailsSectionId,Qs as vendorSpendTrendFilterTabs};
257
+ `,Qs=[{label:O.vendorSpendTrendFilterLabels.last_30_days,id:"last_30_days"},{label:O.vendorSpendTrendFilterLabels.last_90_days,id:"last_90_days"},{label:O.vendorSpendTrendFilterLabels.YTD_spend,id:"YTD_spend"},{label:O.vendorSpendTrendFilterLabels.last_month,id:"last_month"},{label:O.vendorSpendTrendFilterLabels.last_3_months,id:"last_3_months"},{label:O.vendorSpendTrendFilterLabels.last_6_months,id:"last_6_months"},{label:O.vendorSpendTrendFilterLabels.last_12_months,id:"last_12_months"},{label:O.vendorSpendTrendFilterLabels.last_year,id:"last_year"}],So=({isFiling1099FeatureEnabled:e,vendorDetailView:s,firstMonthOfFY:r,vendorLogo:i,readOnlyMode:n,isDisabled:c,scrollToTrend:p,allTransactionsTabData:b,onVendorTabSelectionChanged:h,onLoadPreviousTransactionsClick:f,onSaveSuccess:B,saveVendorDetailLocalData:A,onCancelClick:D,onTrendSelectedPeriodChange:u,onTransactionItemClick:U,onSpendTrendPercentChangeClick:Y,onSaveVendor:ne,onVendorSpendTrendFilterTabClick:G,onAddressClick:K,saveContactsInVendorTabDetailLocalData:J,onVendorDetailUIChange:H,sidePanelIsFullView:le,sidePanelIsOpen:ie,panelContent:re})=>{const R=Ue(),T=ae(),E=$.useRef(null),[X,de]=$.useState(!1),[ce,C]=$.useState(P.transactionListHeight.value()),j=s?.selectedTabType,Z=Vs(),m=Object.assign({},s?.vendorViewDetails?.vendorView),L=s?.vendorViewDetails.vendorView?.vendorDetailLocalData,ee=s?.uiState,et=!we(m!=null&&m.vendorAddress!=null?De(m.vendorAddress):m.vendorAddress,m.vendorNewAddressStatus?.addressToCreate!=null?De(m.vendorNewAddressStatus?.addressToCreate):m.vendorNewAddressStatus?.addressToCreate),tt=(m?.vendorDetailLocalData?.contacts??[]).filter(d=>d.email!==y.common.strings.empty||d.fullName!==y.common.strings.empty||d.phone!==y.common.strings.empty).map(d=>ft(d,"contactInfoType")),be=$.useMemo(()=>m.vendorBasic?.contacts??[],[m.vendorBasic?.contacts]),st=!we(tt,be),te=wt({mode:"all",defaultValues:Ae(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),values:Ae(s?.vendorViewDetails.accountsHierarchyList??[],s?.vendorViewDetails.classHierarchyList??[],s?.vendorViewDetails.vendorTypeList??[],s?.vendorViewDetails.vendorView?.vendorNewAddressStatus?.addressToCreate,s?.vendorViewDetails.vendorView?.vendorDetailLocalData,s?.vendorViewDetails.ownerList),resetOptions:{keepDirtyValues:!0}}),[ot,at]=$.useState(-1),nt=m.vendorDetailLocalData?.contacts!=null&&m.vendorDetailLocalData?.contacts.length>0?m.vendorDetailLocalData?.contacts:Ce,[lt,it]=$.useState(Ct(nt)),rt=d=>{it(d),J?.(L?.vendorId??y.common.strings.empty,d)};$.useEffect(()=>{p===!0&&X===!1&&s?.trendWithTransactions.trendReport?.fetchState==="Completed"&&s?.trendWithTransactions.transactionView?.fetchState==="Completed"&&(window.scrollTo({top:(E.current?.offsetTop??0)+P.navbarHeight,behavior:"smooth"}),de(!0))},[p,X,s?.trendWithTransactions.trendReport?.fetchState,s?.trendWithTransactions.transactionView?.fetchState]);const dt=new $t(R.colors.graphColor12),V=s?.fetchState==="Not-Started"||s?.fetchState==="In-Progress",ct=s?.vendorViewDetails.vendorView?.saveStatus.fetchState==="In-Progress",pt=s?.trendWithTransactions.trendReport?.fetchState==="In-Progress",mt=(d,v)=>{u?.(v)};$.useEffect(()=>{s?.vendorViewDetails.vendorView?.saveStatus?.fetchState==="Completed"&&B?.()},[m]);const ht=$.useCallback(()=>{window.scrollTo({top:(E.current?.offsetTop??0)+P.navbarHeight,behavior:"smooth"}),Y?.()},[Y]),gt=async(d,v)=>{const w=v;if(d.includes("isRecommendedCategorySelected")){const z=v[x].isRecommendedCategorySelected===!0?m?.vendorDetailLocalData?.recommendedCategory?.accountId:m?.vendorBasic?.account?.accountId;w[x].vendorCategory={selectedOption:z,allOptions:v[x].vendorCategory.allOptions}}if(d.includes("isRecommendedClassSelected")){const z=v[x].isRecommendedClassSelected===!0?m.vendorDetailLocalData?.recommendedClass?.classId:m?.vendorBasic?.class?.classId;w[x].vendorClass={selectedOption:z,allOptions:v[x].vendorClass.allOptions}}if(d.includes("vendorCategory")){const z=w[x].vendorCategory.selectedOption===w[x].recommendedCategory?.accountId;w[x].isRecommendedCategorySelected=z}if(d.includes("vendorClass")){const z=w[x].vendorClass.selectedOption===w[x].recommendedClass?.classId;w[x].isRecommendedClassSelected=z}ut(w)};$.useEffect(()=>{const d=te.watch((v,{name:w})=>{w!=null&&v!=null&&St(()=>gt(w,v))});return()=>{d.unsubscribe()}});const ut=d=>{const v=Ys(d,m.vendorBasic?.id,L);A?.(v)},vt=d=>{h(Xt(d.id))},yt={isLoading:s?.allVendorTransactionsView?.fetchState==="In-Progress"||s?.allVendorTransactionsView?.fetchState==="Not-Started",onLoadPreviousClick:(d,v)=>{f(d,(b?.numberOfQuartersFetched??0)+1)}},xt=()=>{switch(j){case"all_transactions":return t.jsx(Bs,{height:ce,children:V===!1&&b?.timePeriod!=null?t.jsx(ts,{firstMonthOfFY:r,timeframe:"quarter",timePeriod:b.timePeriod,transactions:s?.allVendorTransactionsView?.transactions??[],isFirstLotLoading:V,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:U,onListInnerElementHeightChanged:d=>{C(d)},showLoadPrevious:yt}):null});case"spend_transactions":default:return s?.trendWithTransactions!=null?t.jsxs(t.Fragment,{children:[t.jsx(es,{allTabs:Qs,selectedTab:s.vendorSpendTrendFilterTabValue,onTabChange:d=>{const v=Zt(d.id);v!=null&&G(v)},containerStyle:{marginLeft:l[8],marginRight:l[8]}}),t.jsx(Us,{ref:E,children:t.jsx(ss,{firstMonthOfFY:r,trendWithTransactionsReport:s?.trendWithTransactions,isDetailPage:!1,graphColor:dt,initialTransactionListHeight:P.transactionListHeight.value(T),page:"vendorDetailPage",onTimePeriodChange:mt,onTransactionItemClick:U})})]}):null}},bt=()=>{ee?.collapsableStatus==="expand"?H?.("collapse"):H?.("expand")},fe=Z.find(d=>j===d.id);return t.jsx(Dt,{isOpen:ie??!1,isFullView:le??!1,panelContent:re,headerContent:t.jsxs(t.Fragment,{children:[t.jsx(kt,{onBackClick:D,title:m.vendorBasic?.name??y.common.strings.empty,style:{zIndex:3},hideSearchBtn:!0,backgroundColor:R.colors.grey5,enableTitleOnScroll:!0,source:"VendorDetailPage"}),s?.vendorSpend!=null?t.jsx(ws,{isPageLoading:V,vendorName:m.vendorBasic?.name??y.common.strings.empty,spend:s?.vendorSpend,vendorLogo:i,isSpendTrendLoading:pt,onPercentChangeClick:ht}):null]}),listContent:t.jsxs(Rs,{children:[V===!0&&t.jsx(Be,{isPageLoading:V,children:t.jsx(Re,{size:T,children:t.jsx(Hs,{})})}),V===!1&&m.vendorDetailLocalData!=null&&t.jsxs(Be,{isPageLoading:V,children:[t.jsx(Re,{size:T,children:t.jsx(Tt,{...te,children:t.jsxs("form",{id:We(He),onSubmit:te.handleSubmit(ne),children:[t.jsx(Is,{sectionId:x,selectedVendorId:L?.vendorId,selectedVendorDetails:m,selectedAccountId:L?.vendorCategory,selectedClassId:L?.vendorClass,selectedOwnerId:L?.vendorOwner,recommendations:L?.recommendations??[],allAccounts:s?.vendorViewDetails.accountList.accounts??[],allClasses:s?.vendorViewDetails.classList.classes??[],screenType:"edit",selectedVendorName:L?.vendorName,allOwners:s?.vendorViewDetails.ownerList??[],readOnlyMode:n,isDisabled:c,accountsHierarchyList:s?.vendorViewDetails.accountsHierarchyList??[],classHierarchyList:s?.vendorViewDetails.classHierarchyList??[],enableRecommendationUpdateCheckbox:!0,uiState:ee,isFiling1099FeatureEnabled:e,onClickShowMoreOrLess:bt}),e&&ee?.collapsableStatus==="expand"?t.jsxs(qs,{collapsableStatus:ee?.collapsableStatus??"expand",children:[t.jsx($s,{selectedVendorDetails:m,isDisabled:c,onAddressClick:K,sectionId:xe,vendorTypeList:s?.vendorViewDetails.vendorTypeList??[]}),t.jsx(jt,{emailRequired:!1,vendorContactInfos:Ce,sectionId:ye,vendorContactInfoWithType:lt,setVendorContactInfoWithType:rt,deleteContactConfirmationIndex:ot,updateContactDeleteConfirmationIndex:at,initialContactList:be})]}):null]})})}),fe!=null?t.jsxs(As,{children:[t.jsx(Es,{children:t.jsx(gs,{allTabs:Z,containerStyle:{marginLeft:l[8],marginRight:l[8],borderBottom:`1px solid ${R.colors.grey3}`,backgroundColor:R.colors.grey4,justifyContent:"left"},selectedTab:fe,onOptionSelectionChanged:vt})}),xt()]}):null]}),!V&&n!==!0&&(Lt(te.formState.dirtyFields)||et||st)?t.jsx(Vt,{formId:We(He),primaryBtn:{label:Ne.save,isLoading:ct,style:{width:P.buttonWidth.value(T)},isDisabled:!1},cancelBtn:{label:Ne.cancel,style:{width:P.buttonWidth.value(T)},onClick:D}}):null]})})},Ae=(e,s,r,i,n,c)=>({[x]:{vendorName:n?.vendorName??y.common.strings.empty,vendorOwner:{allOptions:Qe(c),selectedOption:n?.vendorOwner},vendorCategory:{allOptions:qe(e,n?.recommendations),selectedOption:n?.vendorCategory},vendorClass:{allOptions:Ee(s,n?.recommendations),selectedOption:n?.vendorClass},recommendedCategory:n?.recommendedCategory,recommendedClass:n?.recommendedClass,isRecommendedCategorySelected:n?.isCategoryUpdateSelected??!1,isRecommendedClassSelected:n?.isClassUpdateSelected??!1},[xe]:{legalName:n?.legalName??y.common.strings.empty,email:n?.vendorEmail??y.common.strings.empty,phone:n?.vendorPhone??y.common.strings.empty,vendorType:{allTypes:r,selectedType:n?.vendorType},tinType:n?.tin?.type??null,tinValue:n?.tin?.value??null,address:i},[ye]:n!=null&&n?.contacts!=null&&n?.contacts.length!==0?n.contacts:[{fullName:y.common.strings.empty,email:y.common.strings.empty,phone:y.common.strings.empty,id:y.common.strings.empty}]}),Ys=(e,s,r)=>{const i=e?.[x],n=e?.[xe];return{vendorCategory:i.vendorCategory.selectedOption,vendorClass:i.vendorClass.selectedOption,vendorId:s,recommendations:r?.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(Gt,y.common.strings.empty):null},address:n.address,contacts:e?.[ye]}};export{So as default,We as formUniqueName,xe as vendor1099DetailsSectionId,x as vendorDetailsSectionId,Qs as vendorSpendTrendFilterTabs};
@@ -0,0 +1 @@
1
+ import{V as b}from"./index-DOsjGhSZ.js";import{a as k}from"./sentry-otjdlEta.js";import{D as y}from"./DomesticWireDetailsPage-CY2Pv6jd-CheyQF2l.js";import"./liveblocks-KFxhhSr3.js";import"./core-BHxev_Cl.js";import"./recharts-B7o7FzH2.js";import"./zeni-epic-state-DVinyIRY.js";import"./mui-B2MHg-Mu.js";import"./lottie-DDoT_sT4.js";import"./analytics-Cz7GTPb4.js";import"./lexical-Dja08wvc.js";import"./utils-BbmM3Vsp.js";import"./BankAccountSection-Qe9eRUmE-B6lQ-JzW.js";import"./MagicLinkTitleSection-vMBVJSVF-Cq6tgd4r.js";import"./BankAccountWarningSection-BfN1KiTF-CqPWwbNY.js";import"./MailingDetailsSection-CKtLfBik-Pke0GJpe.js";import"./LabeledAddressValueField-DSU3b6xx-SFUhns2M.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cfd74f00-d08a-4a4e-bedc-f7d4bd91c89f",e._sentryDebugIdIdentifier="sentry-dbid-cfd74f00-d08a-4a4e-bedc-f7d4bd91c89f")}catch{}})();const j=({vendorViewDetails:e,bankAccountContext:t,isDisabled:d,onSaveHandler:r,onWireDetailsUpdated:s,onBackClick:o,onFetchBankName:i,onAddressClick:c})=>{const{bankAccountCreationState:n,editVendorState:f,newVendorState:p,bankNameByRouting:m,bankAccountToCreate:u,fetchBankNameByRoutingStatus:l}=e,a=Object.assign({},f??p);return k.useEffect(()=>{(t==="vendor"&&n?.fetchState==="Completed"||a?.saveStatus?.fetchState==="Completed"&&t!=="express-pay")&&o()},[n,a?.saveStatus?.fetchState,o,t]),b.jsx(y,{bankAccountToCreate:u,bankAccountCreationState:n,bankNameByRouting:m,addressToEdit:a?.vendorNewAddressStatus?.addressToCreate,mailingAddress:a?.vendorAddress,addressType:"vendor_address",fetchBankNameByRoutingStatus:l,isDisabled:d,onSaveHandler:r,onWireDetailsUpdated:s,onBackClick:o,onAddressClick:c,onFetchBankName:i})};export{j as default};
@@ -1,4 +1,4 @@
1
- import{J as ae,e as ze,a9 as Ae,cG as ke,y as w,V as t,bD as Be,aQ as Ee,ac as qe,cJ as C,o as s,cN as Oe,hj as We,ge as Re,cR as Me,hk as He,hl as Ke,cZ as Qe,aS as Ue,F as ne,e_ as Q,hq as de,c$ as _e,e$ as Ge,u as c,c as Ze,bQ as I,cE as Je,hr as Ye,p as F,q as Xe,cj as et,al as ce,eL as tt,hs as st,ht as lt,hu as M,f0 as it}from"./index-B4SkrUUS.js";import{a as x}from"./sentry-BBFZ4Apy.js";import{n as o}from"./mui-DUBEtzg-.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-BBS4da2b-CKcQYn_8.js";import"./liveblocks-Dh9EWLXD.js";import"./core-TLZ6PfaT.js";import"./recharts-ZbSULBPo.js";import"./zeni-epic-state-CbQxc4HL.js";import"./lottie-osIcf0zV.js";import"./analytics-BFo1DlpM.js";import"./lexical-DGcsrY0x.js";import"./utils-DvDl_6hs.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="ebe7c6ae-cf51-49f8-9b9c-359920f82d0f",e._sentryDebugIdIdentifier="sentry-dbid-ebe7c6ae-cf51-49f8-9b9c-359920f82d0f")}catch{}})();const te={largeLabelWidth:new w(160,210,230),paddingBottom:new w(c[3],c[2])},j=(e,i)=>`${e}.${i}`;function ot(e){const{loadingState:i}=e;return t.jsx(at,{...e,isDisabled:e.isDisabled||i==="In-Progress"?"disabled":void 0})}function at({googleAPIKey:e,addressToEdit:i,sectionId:a,isDisabled:g,style:O}){const E=ae(),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:g,label:{label:u.address.street,width:p,showBullet:!0},addressField:{name:j(a,"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:g,label:{label:u.address.suite,width:p,showBullet:!0},style:{wordBreak:"break-word",width:"100%",outline:"none"},text:{type:"text",name:j(a,"suite"),defaultValue:i?.street[1],placeholder:u.address.suitePlaceholder,autoComplete:"new-password"}}),t.jsx(C,{isDisabled:g,label:{label:u.address.city,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(a,"city"),defaultValue:i?.city,placeholder:M(u.address.city),autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:g,label:{label:u.address.state,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(a,"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:g,label:{label:u.address.country,width:p,showBullet:!0},style:{width:"100%",outline:"none"},countrySelectField:{name:j(a,"country"),placeholder:u.address.countryPlaceholder,defaultValue:Q(i?.country),registerOptions:{validate:v=>!!(v!=null&&v.selectedOption)}}}),t.jsx(C,{isDisabled:g,label:{label:u.address.zipCode,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(a,"postalCode"),defaultValue:i?.postalCode,placeholder:u.address.zipCodePlaceHolder,autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:g,label:{label:u.address.secondaryInfo,width:p,showBullet:!0},style:{paddingBottom:te.paddingBottom.valuePx(E),width:"100%",outline:"none"},text:{type:"text",name:j(a,"secondaryInfo"),defaultValue:i?.street[2],placeholder:u.address.secondaryInfoPlaceholder,autoComplete:"new-password"}})]})})]})}const nt=o.div`
1
+ import{J as ae,d as Ne,a9 as Ae,cG as ke,y as w,V as t,bD as Be,aQ as Ee,ac as Oe,cL as C,o as s,cQ as We,hl as Re,gg as qe,cU as Me,hm as He,hn as Qe,cP as Ue,aS as Ge,F as ne,f0 as U,hs as de,ew as Ke,f1 as _e,u as c,x as Je,bQ as I,cE as Ye,ht as Ze,p as F,G as Xe,cj as et,al as ce,eM as tt,hu as st,hv as lt,hw as M,f2 as it}from"./index-DOsjGhSZ.js";import{a as x}from"./sentry-otjdlEta.js";import{n as o}from"./mui-B2MHg-Mu.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-C6sW-5j7-DVIx7gwf.js";import"./liveblocks-KFxhhSr3.js";import"./core-BHxev_Cl.js";import"./recharts-B7o7FzH2.js";import"./zeni-epic-state-DVinyIRY.js";import"./lottie-DDoT_sT4.js";import"./analytics-Cz7GTPb4.js";import"./lexical-Dja08wvc.js";import"./utils-BbmM3Vsp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="d3b38f4c-74b5-4489-a9d7-c2190849f8e4",e._sentryDebugIdIdentifier="sentry-dbid-d3b38f4c-74b5-4489-a9d7-c2190849f8e4")}catch{}})();const te={largeLabelWidth:new w(160,210,230),paddingBottom:new w(c[3],c[2])},j=(e,i)=>`${e}.${i}`;function ot(e){const{loadingState:i}=e;return t.jsx(at,{...e,isDisabled:e.isDisabled||i==="In-Progress"?"disabled":void 0})}function at({googleAPIKey:e,addressToEdit:i,sectionId:a,isDisabled:g,style:W}){const E=ae(),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:W,children:t.jsxs(dt,{children:[t.jsx(st,{isDisabled:g,label:{label:u.address.street,width:p,showBullet:!0},addressField:{name:j(a,"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:g,label:{label:u.address.suite,width:p,showBullet:!0},style:{wordBreak:"break-word",width:"100%",outline:"none"},text:{type:"text",name:j(a,"suite"),defaultValue:i?.street[1],placeholder:u.address.suitePlaceholder,autoComplete:"new-password"}}),t.jsx(C,{isDisabled:g,label:{label:u.address.city,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(a,"city"),defaultValue:i?.city,placeholder:M(u.address.city),autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:g,label:{label:u.address.state,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(a,"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:g,label:{label:u.address.country,width:p,showBullet:!0},style:{width:"100%",outline:"none"},countrySelectField:{name:j(a,"country"),placeholder:u.address.countryPlaceholder,defaultValue:U(i?.country),registerOptions:{validate:v=>!!(v!=null&&v.selectedOption)}}}),t.jsx(C,{isDisabled:g,label:{label:u.address.zipCode,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(a,"postalCode"),defaultValue:i?.postalCode,placeholder:u.address.zipCodePlaceHolder,autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:g,label:{label:u.address.secondaryInfo,width:p,showBullet:!0},style:{paddingBottom:te.paddingBottom.valuePx(E),width:"100%",outline:"none"},text:{type:"text",name:j(a,"secondaryInfo"),defaultValue:i?.street[2],placeholder:u.address.secondaryInfoPlaceholder,autoComplete:"new-password"}})]})})]})}const nt=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-left: ${s.sp3};
@@ -33,7 +33,7 @@ import{J as ae,e as ze,a9 as Ae,cG as ke,y as w,V as t,bD as Be,aQ as Ee,ac as q
33
33
  display: flex;
34
34
  justify-content: space-between;
35
35
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
36
- `,gt=()=>t.jsx(ct,{children:[...Array(1)].map((e,i)=>t.jsxs(ut,{children:[t.jsx(I,{style:{marginBottom:s.sp4},width:120,height:c[4]}),t.jsxs(pt,{children:[[...Array(5)].map((a,g)=>t.jsxs(H,{children:[t.jsx(I,{width:70,height:c[4]}),t.jsx(I,{width:140,height:c[4]})]},g)),t.jsx(H,{children:t.jsx(I,{width:120,height:c[4]})}),t.jsx(ht,{children:[...Array(7)].map((a,g)=>t.jsxs(H,{children:[t.jsx(I,{width:70,height:c[4]}),t.jsx(I,{width:140,height:c[4]})]},g))})]})]},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",he="phone",ge="taxClassification",me="tinType",ye="tinValue",yt="street",xt="suite",ft="city",bt="state",wt="country",$t="countryCode",vt="postalCode",jt="secondaryInfo",K=e=>`${e}_form`,P=(e,i)=>`${e}.${i}`,{spendManagement:St,common:r}=ne.getLocalizedStrings(),S=St.billPay.vendorCreation,A=r.labels,le=r.footer,ts=e=>{const i=ae(),a=new AbortController,g=ze(),O=a.signal,{onVendorFiling1099UploadDetailsSave:E,vendorId:u,vendorFiling1099UploadDetailsViewState:p,onSaveChangesToLocalStore:v,vendorFiling1099UploadDetails:D,fetchVendorFetchStatus:U,onAddressEditHandler:xe,goBackToListPage:_,onResetVendorFiling1099FormStatus:fe,googleAPIKey:be}=e,{vendor1099DetailsSaveStatus:T,vendor1099DetailsLocalData:d,w9FormUploadStatus:G}=p,[Z,J]=x.useState(D.addressStatus?.addressToCreate??{street:[],city:"",state:"",country:"",countryCode:"",postalCode:""}),Y=x.useRef(null),{vendorTypeList:W}=D,N=x.useRef(null),z=x.useRef(null),X=x.useRef(!1);x.useEffect(()=>{z.current===null&&d.legalName!=r.strings.empty&&p.vendor1099DetailsAutoFilledValues?.legalName===!0&&(z.current=d.legalName)},[d.legalName]),x.useEffect(()=>{N.current===null&&d.legalName!==r.strings.empty&&(N.current=d.legalName)},[d.legalName]),x.useEffect(()=>{D?.addressStatus?.addressToCreate&&p.vendor1099DetailsAutoFilledValues?.address===!0&&X.current===!1&&(J(D.addressStatus.addressToCreate),X.current=!0)},[D,p.vendor1099DetailsAutoFilledValues?.address]);const m=Ae({mode:"onSubmit",defaultValues:oe(d,W??[],Z),values:oe(d,W??[],Z)}),{isValid:we}=m.formState,$e=m.handleSubmit(()=>{we&&(xe(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(y,n)=>{if(y!=null){const h={...n},Ve=h[l].legalName,Le=h[l].email,Ie=h[l].phone,Pe=h[l].taxClassification,Fe=h[l].tinType,ee=h[l].tinValue,Te={legalName:Ve??r.strings.empty,vendorId:u,contact:{email:Le??r.strings.empty,phone:Ie??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:Fe??null,value:ee??null},tinValue:ee??null};if(y.includes(`${l}.street`)&&n.vendor1099FilingSectionId.street!=null){const{addressValue:L}=n.vendor1099FilingSectionId.street,Ne=m.getValues(`${l}.country`),R=Q(L?.country);m.setValue(l,{...n[l],street:n.vendor1099FilingSectionId.street,city:L?.locality??"",state:L?.administrativeAreaLevel1??"",country:R,countryCode:L?.countryCode??"",postalCode:L?.postalCode??"",secondaryInfo:n.vendor1099FilingSectionId.secondaryInfo??"",suite:n.vendor1099FilingSectionId.suite??""}),_e(m.formState.errors,`${l}.city`)&&L?.locality&&m.trigger(`${l}.city`),Ne.selectedOption!==R.selectedOption&&m.setValue(`${l}.country`,R)}else y==="vendor1099FilingSectionId.country"&&n[l].country.selectedOption!=null&&m.setValue(`${l}.countryCode`,Ge(n[l].country.selectedOption));v(Te)}};x.useEffect(()=>{const y=m.watch((n,{name:h})=>{h!=null&&n!=null&&((h.startsWith(`${l}.street`)||h.startsWith(`${l}.city`)||h.startsWith(`${l}.state`)||h.startsWith(`${l}.country`)||h.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(h,n)))});return()=>{y.unsubscribe()}});const V=$.largeLabelWidth.value(i),Se=T.error?.message??r.strings.empty,Ce=T.error?.title??r.strings.empty,De=()=>T?.fetchState==="In-Progress"||U?.fetchState==="In-Progress"||G?.fetchState==="In-Progress",b=U?.fetchState==="In-Progress"||G?.fetchState==="In-Progress";return x.useEffect(()=>()=>{a.abort(),fe()},[]),t.jsx(Dt,{windowSize:i,children:t.jsxs(Ct,{windowSize:i,children:[t.jsxs(Vt,{windowSize:i,ref:Y,children:[t.jsx(Be,{title:(p.vendor1099DetailsAutoFilledValues?.legalName===!0?z.current:N.current)??r.strings.empty,backgroundColor:g.colors.grey4,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:t.jsx(It,{windowSize:i,onClick:_,"data-testid":Ee("vendor-filling-1099-details-editable-page-close-icon")}),scrollableContent:Y,enableTitleOnScroll:!0,scrollThreshold:50,source:"VendorFiling1099EditablePage"}),b===!0?t.jsx(ie,{windowSize:i,isLoading:b,children:t.jsx(gt,{})}):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(Ft,{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(qt,{children:[t.jsx(B,{}),t.jsx(Ot,{children:S.vendorDetails.banner})]}),t.jsx(qe,{...m,children:t.jsx("form",{id:K(l),onSubmit:$e,children:t.jsxs(Lt,{isLoading:b,children:[t.jsx(q,{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:y=>y!==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,he),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(q,{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(Et,{size:i,labelWidth:V,children:t.jsx(We,{name:P(l,ge),value:{allTypes:W?.map(y=>({code:y.code,name:y.name,label:y.name}))??[],selectedType:d.taxClassification},placeholderLabel:S.vendorDetails.taxClassificationPlaceHolder})})]})]}),t.jsx(k,{}),t.jsx(q,{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,ye),placeholder:S.placeholders.tinValue,format:d.tin?.type===r.texts.ssn?He:Ke,registerOptions:{required:!!d?.tin?.type,pattern:d.tin?.type===r.texts.ssn?Re: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(Rt,{children:[t.jsx(q,{children:f?.address===!0&&!b?t.jsx(B,{}):null}),t.jsx(Qe,{label:A.address,style:{marginLeft:s.sp4,marginTop:$.labelMarginTop.value(i),marginBottom:s.sp2}}),t.jsx(ot,{googleAPIKey:be,formId:K(l),addressToEdit:D?.addressStatus?.addressToCreate,sectionId:l})]})]})})})]})]}),t.jsx(Ue,{separatorStyle:{marginRight:s.sp4},formId:K(l),cancelBtn:{label:le.cancel,style:{width:"83px"},onClick:_},primaryBtn:{label:le.save,isLoading:T.fetchState==="In-Progress",style:{width:"83px"},isDisabled:De()},style:mt})]})})},Ct=o.div`
36
+ `,gt=()=>t.jsx(ct,{children:[...Array(1)].map((e,i)=>t.jsxs(ut,{children:[t.jsx(I,{style:{marginBottom:s.sp4},width:120,height:c[4]}),t.jsxs(pt,{children:[[...Array(5)].map((a,g)=>t.jsxs(H,{children:[t.jsx(I,{width:70,height:c[4]}),t.jsx(I,{width:140,height:c[4]})]},g)),t.jsx(H,{children:t.jsx(I,{width:120,height:c[4]})}),t.jsx(ht,{children:[...Array(7)].map((a,g)=>t.jsxs(H,{children:[t.jsx(I,{width:70,height:c[4]}),t.jsx(I,{width:140,height:c[4]})]},g))})]})]},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",he="phone",ge="taxClassification",me="tinType",ye="tinValue",yt="street",xt="suite",ft="city",bt="state",wt="country",$t="countryCode",vt="postalCode",jt="secondaryInfo",Q=e=>`${e}_form`,P=(e,i)=>`${e}.${i}`,{spendManagement:St,common:r}=ne.getLocalizedStrings(),S=St.billPay.vendorCreation,A=r.labels,le=r.footer,ts=e=>{const i=ae(),a=new AbortController,g=Ne(),W=a.signal,{onVendorFiling1099UploadDetailsSave:E,vendorId:u,vendorFiling1099UploadDetailsViewState:p,onSaveChangesToLocalStore:v,vendorFiling1099UploadDetails:D,fetchVendorFetchStatus:G,onAddressEditHandler:xe,goBackToListPage:K,onResetVendorFiling1099FormStatus:fe,googleAPIKey:be}=e,{vendor1099DetailsSaveStatus:T,vendor1099DetailsLocalData:d,w9FormUploadStatus:_}=p,[J,Y]=x.useState(D.addressStatus?.addressToCreate??{street:[],city:"",state:"",country:"",countryCode:"",postalCode:""}),Z=x.useRef(null),{vendorTypeList:R}=D,z=x.useRef(null),N=x.useRef(null),X=x.useRef(!1);x.useEffect(()=>{N.current===null&&d.legalName!=r.strings.empty&&p.vendor1099DetailsAutoFilledValues?.legalName===!0&&(N.current=d.legalName)},[d.legalName]),x.useEffect(()=>{z.current===null&&d.legalName!==r.strings.empty&&(z.current=d.legalName)},[d.legalName]),x.useEffect(()=>{D?.addressStatus?.addressToCreate&&p.vendor1099DetailsAutoFilledValues?.address===!0&&X.current===!1&&(Y(D.addressStatus.addressToCreate),X.current=!0)},[D,p.vendor1099DetailsAutoFilledValues?.address]);const m=Ae({mode:"onSubmit",defaultValues:oe(d,R??[],J),values:oe(d,R??[],J)}),{isValid:we}=m.formState,$e=m.handleSubmit(()=>{we&&(xe(m.getValues()),E(u,W))}),{vendor1099DetailsAutoFilledValues:f}=p,ve=()=>f?.tin.type===!0||f?.tin.value===!0||f?.legalName===!0||f?.taxClassification===!0,je=async(y,n)=>{if(y!=null){const h={...n},Ve=h[l].legalName,Le=h[l].email,Ie=h[l].phone,Pe=h[l].taxClassification,Fe=h[l].tinType,ee=h[l].tinValue,Te={legalName:Ve??r.strings.empty,vendorId:u,contact:{email:Le??r.strings.empty,phone:Ie??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:Fe??null,value:ee??null},tinValue:ee??null};if(y.includes(`${l}.street`)&&n.vendor1099FilingSectionId.street!=null){const{addressValue:L}=n.vendor1099FilingSectionId.street,ze=m.getValues(`${l}.country`),q=U(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??""}),Ke(m.formState.errors,`${l}.city`)&&L?.locality&&m.trigger(`${l}.city`),ze.selectedOption!==q.selectedOption&&m.setValue(`${l}.country`,q)}else y==="vendor1099FilingSectionId.country"&&n[l].country.selectedOption!=null&&m.setValue(`${l}.countryCode`,_e(n[l].country.selectedOption));v(Te)}};x.useEffect(()=>{const y=m.watch((n,{name:h})=>{h!=null&&n!=null&&((h.startsWith(`${l}.street`)||h.startsWith(`${l}.city`)||h.startsWith(`${l}.state`)||h.startsWith(`${l}.country`)||h.startsWith(`${l}.postalCode`))&&n[l]!=null&&Y({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(h,n)))});return()=>{y.unsubscribe()}});const V=$.largeLabelWidth.value(i),Se=T.error?.message??r.strings.empty,Ce=T.error?.title??r.strings.empty,De=()=>T?.fetchState==="In-Progress"||G?.fetchState==="In-Progress"||_?.fetchState==="In-Progress",b=G?.fetchState==="In-Progress"||_?.fetchState==="In-Progress";return x.useEffect(()=>()=>{a.abort(),fe()},[]),t.jsx(Dt,{windowSize:i,children:t.jsxs(Ct,{windowSize:i,children:[t.jsxs(Vt,{windowSize:i,ref:Z,children:[t.jsx(Be,{title:(p.vendor1099DetailsAutoFilledValues?.legalName===!0?N.current:z.current)??r.strings.empty,backgroundColor:g.colors.grey4,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:t.jsx(It,{windowSize:i,onClick:K,"data-testid":Ee("vendor-filling-1099-details-editable-page-close-icon")}),scrollableContent:Z,enableTitleOnScroll:!0,scrollThreshold:50,source:"VendorFiling1099EditablePage"}),b===!0?t.jsx(ie,{windowSize:i,isLoading:b,children:t.jsx(gt,{})}):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(Ft,{children:p.vendor1099DetailsAutoFilledValues?.legalName===!0?N.current:z.current}),T.fetchState==="Error"?t.jsxs(Tt,{children:[t.jsx(kt,{}),t.jsxs(zt,{children:[t.jsx(Nt,{children:Ce}),t.jsx(At,{children:Se})]})]}):null,ve()&&t.jsxs(Ot,{children:[t.jsx(B,{}),t.jsx(Wt,{children:S.vendorDetails.banner})]}),t.jsx(Oe,{...m,children:t.jsx("form",{id:Q(l),onSubmit:$e,children:t.jsxs(Lt,{isLoading:b,children:[t.jsx(O,{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:y=>y!==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(We,{label:{label:A.phone,width:V,style:{marginLeft:s.sp4}},text:{name:P(l,he),placeholder:S.vendorDetails.phonePlaceHolder,defaultValue:d.contact?.phone,autoComplete:"off",options:{required:!1}},style:{width:"auto"}}),t.jsx(k,{})]}),t.jsxs(Rt,{isLoading:b,children:[t.jsx(O,{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(Et,{size:i,labelWidth:V,children:t.jsx(Re,{name:P(l,ge),value:{allTypes:R?.map(y=>({code:y.code,name:y.name,label:y.name}))??[],selectedType:d.taxClassification},placeholderLabel:S.vendorDetails.taxClassificationPlaceHolder})})]})]}),t.jsx(k,{}),t.jsx(O,{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,ye),placeholder:S.placeholders.tinValue,format:d.tin?.type===r.texts.ssn?He:Qe,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(O,{children:f?.address===!0&&!b?t.jsx(B,{}):null}),t.jsx(Ue,{label:A.address,style:{marginLeft:s.sp4,marginTop:$.labelMarginTop.value(i),marginBottom:s.sp2}}),t.jsx(ot,{googleAPIKey:be,formId:Q(l),addressToEdit:D?.addressStatus?.addressToCreate,sectionId:l})]})]})})})]})]}),t.jsx(Ge,{separatorStyle:{marginRight:s.sp4},formId:Q(l),cancelBtn:{label:le.cancel,style:{width:"83px"},onClick:K},primaryBtn:{label:le.save,isLoading:T.fetchState==="In-Progress",style:{width:"83px"},isDisabled:De()},style:mt})]})})},Ct=o.div`
37
37
  display: flex;
38
38
  flex-direction: column;
39
39
  height: 100%;
@@ -66,7 +66,7 @@ import{J as ae,e as ze,a9 as Ae,cG as ke,y as w,V as t,bD as Be,aQ as Ee,ac as q
66
66
  background-color: ${e=>e.theme.colors.grey3};
67
67
  min-height: 1px;
68
68
  max-height: 1px;
69
- `,It=o(Ze)`
69
+ `,It=o(Je)`
70
70
  cursor: pointer;
71
71
  color: ${e=>e.theme.colors.hero};
72
72
  width: ${s.sp4};
@@ -75,11 +75,11 @@ import{J as ae,e as ze,a9 as Ae,cG as ke,y as w,V as t,bD as Be,aQ as Ee,ac as q
75
75
  &:hover {
76
76
  color: ${e=>e.theme.colors.primary};
77
77
  }
78
- `,Pt=o(Je)`
78
+ `,Pt=o(Ye)`
79
79
  color: ${e=>e.theme.colors.primary};
80
80
  margin-bottom: ${s.sp0};
81
81
  margin-right: ${s.sp3};
82
- `,Ft=o(Ye)`
82
+ `,Ft=o(Ze)`
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  margin-bottom: ${s.sp4};
85
85
  `,Tt=o.div`
@@ -90,10 +90,10 @@ import{J as ae,e as ze,a9 as Ae,cG as ke,y as w,V as t,bD as Be,aQ as Ee,ac as q
90
90
  gap: ${s.sp2};
91
91
  padding: ${s.sp3} ${s.sp4};
92
92
  margin-bottom: ${s.sp3};
93
- `,Nt=o.div`
93
+ `,zt=o.div`
94
94
  display: flex;
95
95
  flex-direction: column;
96
- `,zt=o(et)`
96
+ `,Nt=o(et)`
97
97
  color: ${F.brandColorGoldDark};
98
98
  `,At=o(ce)`
99
99
  color: ${F.brandColorGoldDark};
@@ -142,7 +142,7 @@ import{J as ae,e as ze,a9 as Ae,cG as ke,y as w,V as t,bD as Be,aQ as Ee,ac as q
142
142
  color: ${e=>e.theme.colors.primary};
143
143
  width: ${s.sp3};
144
144
  height: ${s.sp3};
145
- `,qt=o.div`
145
+ `,Ot=o.div`
146
146
  display: flex;
147
147
  gap: ${s.sp2};
148
148
  border: 1px solid ${e=>e.theme.colors.grey3};
@@ -152,15 +152,15 @@ import{J as ae,e as ze,a9 as Ae,cG as ke,y as w,V as t,bD as Be,aQ as Ee,ac as q
152
152
  margin: ${s.sp3};
153
153
  margin-left: ${s.sp0};
154
154
  margin-right: ${s.sp0};
155
- `,Ot=o.span`
155
+ `,Wt=o.span`
156
156
  color: ${e=>e.theme.colors.hero};
157
- `,Wt=o.div`
157
+ `,Rt=o.div`
158
158
  position: relative;
159
- `,q=o.div`
159
+ `,O=o.div`
160
160
  position: absolute;
161
161
  top: 20px;
162
162
  left: -${s.sp4};
163
- `,Rt=o.div`
163
+ `,qt=o.div`
164
164
  display: flex;
165
165
  position: relative;
166
166
  width: 100%;
@@ -172,4 +172,4 @@ import{J as ae,e as ze,a9 as Ae,cG as ke,y as w,V as t,bD as Be,aQ as Ee,ac as q
172
172
  border-bottom-left-radius: inherit;
173
173
  border-bottom-right-radius: inherit;
174
174
  }
175
- `,oe=(e,i,a)=>({[l]:{[ue]:e.legalName??r.strings.empty,[pe]:e.contact?.email??r.strings.empty,[he]:e.contact?.phone??r.strings.empty,[ge]:{selectedType:e.taxClassification,allTypes:i},[me]:e.tin?.type??null,[ye]:e.tin?.value??null,[yt]:{addressString:a?.street[0]??"",addressValue:a!=null?de(a):void 0},[ft]:a?.city??"",[bt]:a?.state??"",[wt]:Q(a?.country),[$t]:a?.countryCode??"",[vt]:a?.postalCode??"",[jt]:a?.street[2]??"",[xt]:a?.street[1]??""}});export{ts as default,K as uniqueFormName};
175
+ `,oe=(e,i,a)=>({[l]:{[ue]:e.legalName??r.strings.empty,[pe]:e.contact?.email??r.strings.empty,[he]:e.contact?.phone??r.strings.empty,[ge]:{selectedType:e.taxClassification,allTypes:i},[me]:e.tin?.type??null,[ye]:e.tin?.value??null,[yt]:{addressString:a?.street[0]??"",addressValue:a!=null?de(a):void 0},[ft]:a?.city??"",[bt]:a?.state??"",[wt]:U(a?.country),[$t]:a?.countryCode??"",[vt]:a?.postalCode??"",[jt]:a?.street[2]??"",[xt]:a?.street[1]??""}});export{ts as default,Q as uniqueFormName};
@@ -1,4 +1,4 @@
1
- import{J as ae,aw as Nn,e as mn,a9 as et,i9 as Te,cG as nt,ay as On,ia as re,ib as ve,ic as fe,id as be,ie as me,V as n,i4 as tt,ac as ot,bD as it,aa as rt,cq as st,cr as at,cs as lt,bW as dt,bP as ct,aQ as J,cn as mt,b4 as pt,dq as ut,cu as ht,T as gt,F as je,y as w,x as Ne,o as t,aV as In,al as De,aU as wt,u as c,ai as Re,cA as xt,dv as Pn,bQ as Pe,bi as Tn,cD as vt,c0 as ft,dI as bt,bb as Je,bu as pn,p as B,h as zn,h1 as $t,dl as wn,d3 as rn,ig as sn,ao as St,bU as Be,dS as yt,eA as xn,bL as jt,dx as Rt,i as vn,cx as Vt,ih as Ct,ii as kt,cT as Mt,c$ as Nt,d0 as Ot,eF as It,am as Dn,ij as Pt,bJ as se,ik as fn,gP as Tt,at as zt,as as Dt,dw as _t,b as _n,N as Lt,l as Ft,aX as dn}from"./index-B4SkrUUS.js";import{a as f}from"./sentry-BBFZ4Apy.js";import{n as o,c as cn}from"./mui-DUBEtzg-.js";import{gu as At,G0 as Bt}from"./zeni-epic-state-CbQxc4HL.js";import{r as Et}from"./core-TLZ6PfaT.js";import"./liveblocks-Dh9EWLXD.js";import"./recharts-ZbSULBPo.js";import"./lottie-osIcf0zV.js";import"./analytics-BFo1DlpM.js";import"./lexical-DGcsrY0x.js";import"./utils-DvDl_6hs.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="d7e82bbd-ac93-423f-a291-659ec16f9e0d",e._sentryDebugIdIdentifier="sentry-dbid-d7e82bbd-ac93-423f-a291-659ec16f9e0d")}catch{}})();const Ln=({steps:e})=>{const s=ae();return n.jsx(Wt,{windowSize:s,children:e.map((m,d)=>n.jsxs(Ut,{children:[n.jsx(Gt,{children:d!==e.length-1?d+1:n.jsx(Qt,{})}),n.jsx(Ht,{children:m}),d<e.length-1?n.jsx(qt,{}):null]},`step_${d}`))})},Ut=o.div`
1
+ import{J as ae,aw as Nn,d as mn,a9 as et,ib as Te,cG as nt,ay as On,ic as re,id as ve,ie as fe,ig as be,ih as me,V as n,i6 as tt,ac as ot,bD as it,aa as rt,cq as st,cr as at,cs as lt,bW as dt,bP as ct,aQ as J,cn as mt,b4 as pt,dp as ut,cu as ht,T as gt,F as je,y as w,w as Ne,o as t,aV as In,al as De,aU as wt,u as c,ai as Re,cA as xt,du as Pn,bQ as Pe,bi as Tn,cD as vt,c0 as ft,dH as bt,bb as Je,bu as pn,p as B,h as zn,h3 as $t,dk as wn,d2 as rn,ii as sn,ao as St,bU as Be,dR as yt,eA as xn,bL as jt,dw as Rt,i as vn,cx as Vt,ij as Ct,ik as kt,cK as Mt,ew as Nt,eF as Ot,eG as It,am as Dn,il as Pt,bJ as se,im as fn,gR as Tt,at as zt,as as Dt,dv as _t,b as _n,H as Lt,l as Ft,aX as dn}from"./index-DOsjGhSZ.js";import{a as f}from"./sentry-otjdlEta.js";import{n as o,c as cn}from"./mui-B2MHg-Mu.js";import{gu as At,G6 as Bt}from"./zeni-epic-state-DVinyIRY.js";import{r as Et}from"./core-BHxev_Cl.js";import"./liveblocks-KFxhhSr3.js";import"./recharts-B7o7FzH2.js";import"./lottie-DDoT_sT4.js";import"./analytics-Cz7GTPb4.js";import"./lexical-Dja08wvc.js";import"./utils-BbmM3Vsp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="9b00c5ae-95b2-4bfd-983d-a91deaa3a516",e._sentryDebugIdIdentifier="sentry-dbid-9b00c5ae-95b2-4bfd-983d-a91deaa3a516")}catch{}})();const Ln=({steps:e})=>{const s=ae();return n.jsx(Wt,{windowSize:s,children:e.map((m,d)=>n.jsxs(Ut,{children:[n.jsx(Gt,{children:d!==e.length-1?d+1:n.jsx(Qt,{})}),n.jsx(Ht,{children:m}),d<e.length-1?n.jsx(qt,{}):null]},`step_${d}`))})},Ut=o.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  position: relative;
@@ -1,13 +1,13 @@
1
- import{V as t,J,a9 as he,F as U,cG as ye,aE as ge,cq as be,cr as fe,cs as xe,ac as ve,aS as we,y as p,e_ as le,e$ as Ce,o as y,ba as $e,cT as oe,e as ne,f0 as De,f1 as Z,cZ as G,b2 as H,cJ as Te,es as je,u as a,c$ as ke,aQ as Se,p as V,N as Oe,T as Fe,bU as Ae,ai as Le,bL as Ie}from"./index-B4SkrUUS.js";import{a as R}from"./sentry-BBFZ4Apy.js";import{n as g}from"./mui-DUBEtzg-.js";import{bi as K}from"./zeni-epic-state-CbQxc4HL.js";import{W as We,A as ze}from"./BankAccountWarningSection-CaDnP9_--BB5RKb-6.js";import{T as Re}from"./MailingDetailsSection-DRFGCM2W-D6QU019C.js";import{S as Pe}from"./CurrencySelectField-RiKAivD8-bvSf14oM.js";import"./liveblocks-Dh9EWLXD.js";import"./core-TLZ6PfaT.js";import"./recharts-ZbSULBPo.js";import"./lottie-osIcf0zV.js";import"./analytics-BFo1DlpM.js";import"./lexical-DGcsrY0x.js";import"./utils-DvDl_6hs.js";import"./LabeledAddressValueField-DMcor_I8-DnYPVaTw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="08a89f4b-843e-47c5-b059-7a4841d3d204",e._sentryDebugIdIdentifier="sentry-dbid-08a89f4b-843e-47c5-b059-7a4841d3d204")}catch{}})();const F={width:new p(343,580,726),height:new p(a[6],a[6]),controlHeight:new p(a[6],a[6]),paddingTopBottom:new p(a[2],a[2]),marginRight:new p(a[2],a[2]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2])},ae={infoLabel:new Oe("extraSmallRegular","smallRegular")};function _e({isDisabled:e,label:i,currencySelectField:l,style:f,errorInfoLabel:u,isAdditionalInfoLabelLoading:n=!1,showAdditionalLabelTooltip:o=!1,additionalLabelTooltip:w,additionalInfoLabel:T,showAdditionalInfoLabel:S=!0}){const C=J(),{formState:{errors:b}}=oe(),$=ne(),D=ke(b,l.name),m=()=>{if(n===!0)return t.jsx(He,{children:t.jsx(Fe,{size:"Small",start:!0})});if(S&&T||D){let c=null;return o===!0&&S&&w&&(c=t.jsx(Ae,{placement:C==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Ve,{children:w}),children:t.jsx(qe,{children:t.jsx(Ue,{})})})),t.jsxs(Ne,{size:C,isError:D,hasToolTip:o,isDisabled:e!=null,children:[c,T]})}};return t.jsxs(Ee,{size:C,style:f,isDisabled:e!=null,isError:D,"data-testid":Se("labeled-currency-field",l.name),children:[t.jsx(G,{isDisabled:e,label:i.label,htmlFor:l.name,style:{marginLeft:F.labelMarginLeft.value(C),marginRight:F.labelMarginRight.value(C),marginTop:F.labelMarginTop.value(C),width:i.width??"auto",color:e==="disabled"?$.colors.grey2:$.colors.hero}}),t.jsxs(Me,{labelWidth:i.width,children:[t.jsx(Pe,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,height:F.controlHeight.value(C)}}),D?t.jsx(Be,{windowSize:C,hasError:D,children:u}):null,m()]})]})}const Ee=g.div`
1
+ import{V as t,J as K,a9 as he,F as U,cG as ye,aE as ge,cq as be,cr as fe,cs as xe,ac as ve,aS as we,y as p,f0 as le,f1 as Ce,o as y,ba as $e,cK as oe,d as ne,f2 as De,f3 as J,cP as G,b2 as H,cL as Te,er as je,u as a,ew as ke,aQ as Se,p as V,H as Oe,T as Ae,bU as Fe,ai as Le,bL as Ie}from"./index-DOsjGhSZ.js";import{a as R}from"./sentry-otjdlEta.js";import{n as g}from"./mui-B2MHg-Mu.js";import{bi as Q}from"./zeni-epic-state-DVinyIRY.js";import{W as We,A as ze}from"./BankAccountWarningSection-BfN1KiTF-CqPWwbNY.js";import{T as Re}from"./MailingDetailsSection-CKtLfBik-Pke0GJpe.js";import{S as Pe}from"./CurrencySelectField-DAmYUy85-BWbCVGju.js";import"./liveblocks-KFxhhSr3.js";import"./core-BHxev_Cl.js";import"./recharts-B7o7FzH2.js";import"./lottie-DDoT_sT4.js";import"./analytics-Cz7GTPb4.js";import"./lexical-Dja08wvc.js";import"./utils-BbmM3Vsp.js";import"./LabeledAddressValueField-DSU3b6xx-SFUhns2M.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="94eebe01-0e22-41e6-9c06-1a90344a44a7",e._sentryDebugIdIdentifier="sentry-dbid-94eebe01-0e22-41e6-9c06-1a90344a44a7")}catch{}})();const A={width:new p(343,580,726),height:new p(a[6],a[6]),controlHeight:new p(a[6],a[6]),paddingTopBottom:new p(a[2],a[2]),marginRight:new p(a[2],a[2]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2])},ae={infoLabel:new Oe("extraSmallRegular","smallRegular")};function _e({isDisabled:e,label:i,currencySelectField:l,style:f,errorInfoLabel:u,isAdditionalInfoLabelLoading:n=!1,showAdditionalLabelTooltip:o=!1,additionalLabelTooltip:w,additionalInfoLabel:T,showAdditionalInfoLabel:S=!0}){const C=K(),{formState:{errors:b}}=oe(),$=ne(),D=ke(b,l.name),m=()=>{if(n===!0)return t.jsx(He,{children:t.jsx(Ae,{size:"Small",start:!0})});if(S&&T||D){let c=null;return o===!0&&S&&w&&(c=t.jsx(Fe,{placement:C==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Ve,{children:w}),children:t.jsx(Ne,{children:t.jsx(Ue,{})})})),t.jsxs(qe,{size:C,isError:D,hasToolTip:o,isDisabled:e!=null,children:[c,T]})}};return t.jsxs(Ee,{size:C,style:f,isDisabled:e!=null,isError:D,"data-testid":Se("labeled-currency-field",l.name),children:[t.jsx(G,{isDisabled:e,label:i.label,htmlFor:l.name,style:{marginLeft:A.labelMarginLeft.value(C),marginRight:A.labelMarginRight.value(C),marginTop:A.labelMarginTop.value(C),width:i.width??"auto",color:e==="disabled"?$.colors.grey2:$.colors.hero}}),t.jsxs(Me,{labelWidth:i.width,children:[t.jsx(Pe,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,height:A.controlHeight.value(C)}}),D?t.jsx(Be,{windowSize:C,hasError:D,children:u}):null,m()]})]})}const Ee=g.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
5
5
  background-color: ${e=>e.theme.colors.grey5};
6
- width: ${e=>F.width.valuePx(e.size)};
7
- min-height: ${e=>F.height.valuePx(e.size)};
8
- padding-right: ${e=>F.marginRight.valuePx(e.size)};
9
- padding-top: ${e=>F.paddingTopBottom.valuePx(e.size)};
10
- padding-bottom: ${e=>F.paddingTopBottom.valuePx(e.size)};
6
+ width: ${e=>A.width.valuePx(e.size)};
7
+ min-height: ${e=>A.height.valuePx(e.size)};
8
+ padding-right: ${e=>A.marginRight.valuePx(e.size)};
9
+ padding-top: ${e=>A.paddingTopBottom.valuePx(e.size)};
10
+ padding-bottom: ${e=>A.paddingTopBottom.valuePx(e.size)};
11
11
  :first-of-type {
12
12
  border-top-left-radius: inherit;
13
13
  border-top-right-radius: inherit;
@@ -69,7 +69,7 @@ import{V as t,J,a9 as he,F as U,cG as ye,aE as ge,cq as be,cr as fe,cs as xe,ac
69
69
  padding-top: ${y.sp1};
70
70
  display: flex;
71
71
  justify-content: flex-end;
72
- `,Ne=g.label`
72
+ `,qe=g.label`
73
73
  display: flex;
74
74
  justify-content: flex-end;
75
75
  color: ${e=>e.isDisabled?e.theme.colors.grey2:e.isError?V.important:e.theme.colors.hero};
@@ -77,7 +77,7 @@ import{V as t,J,a9 as he,F as U,cG as ye,aE as ge,cq as be,cr as fe,cs as xe,ac
77
77
  padding-right: ${y.sp3};
78
78
  text-align: right;
79
79
  margin-top: ${e=>e.hasToolTip===!0?y.sp1:y.sp0};
80
- `,qe=g.div`
80
+ `,Ne=g.div`
81
81
  display: flex;
82
82
  margin-right: ${y.sp2};
83
83
  margin-top: 2px;
@@ -86,10 +86,10 @@ import{V as t,J,a9 as he,F as U,cG as ye,aE as ge,cq as be,cr as fe,cs as xe,ac
86
86
  width: ${y.sp3};
87
87
  height: ${y.sp3};
88
88
  color: inherit;
89
- `,k={largeLabelWidth:new p(120,140,220),paddingTopBottom:new p(a[3],a[3]),labelHeight:new p(a[6],a[6]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2]),controlHeight:new p(a[6],a[6]),toolTipWidth:new p(60,150)},Ge=({dynamicFormFetchState:e,dynamicFormConfig:i,supportedAccountTypes:l,supportedCountries:f,supportedCurrencies:u,wireAccountToCreate:n,sectionId:o,isCountryDropdownReadonly:w,isCurrencyDropdownReadonly:T,isDisabled:S,style:C})=>{const b=J(),{getValues:$}=oe(),D=ne(),m=U.getLocalizedStrings().spendManagement.billPay.vendorCreation.wireDetails,{international:c}=m,x=k.largeLabelWidth.value(b),I=n?.accountType?.type,j=n?.countryCode==null,E=n?.currencyCode==null,O=["phone","email","other"];return t.jsx(Je,{style:C,children:t.jsxs(Ze,{children:[t.jsx(De,{isDisabled:w===!0?"readonly":void 0,label:{label:c.country,width:x},style:{width:"auto"},countrySelectField:{name:L(o,"vendorCountry"),placeholder:c.countryPlaceholder,defaultValue:le(n?.countryCode,f.map(s=>s.countryCode)),registerOptions:{validate:s=>!!(s!=null&&s.selectedOption)}},additionalInfoLabel:m.international.countryAdditionalInfo}),t.jsx(z,{}),t.jsx(_e,{isDisabled:j===!0?"disabled":T===!0?"readonly":void 0,label:{label:c.currency,width:x},style:{width:"auto"},currencySelectField:{name:L(o,"vendorCurrency"),placeholder:c.currencyPlaceholder,defaultValue:{allOptions:u.map(s=>({label:`${s.currencySymbol} - ${s.currencyName}`,value:s.currencyCode,countryCode:s.countryCode,currency:s.currencyName})),selectedOption:n?.currencyCode},registerOptions:{validate:s=>!!(s!=null&&s.selectedOption)}},additionalInfoLabel:m.international.currencyAdditionalInfo}),t.jsx(z,{}),E!==!0&&e==="Completed"?t.jsxs(t.Fragment,{children:[t.jsx(Z,{isDisabled:void 0,label:{label:c.typeOfAccount,width:x},style:{width:"auto"},singleSelectPickerField:{name:L(o,"typeOfAccount"),placeholder:c.typeOfAccountPlaceholder,defaultValue:{selectedOption:n?.accountType?.type,allOptions:l.map(s=>({label:s.title,value:s.type}))},registerOptions:{validate:s=>!!(s!=null&&s.selectedOption)}}}),t.jsx(z,{})]}):null,n!=null&&I!=null&&n.dynamicForm[I]!=null&&i.length>0?Object.keys(n.dynamicForm[I]).map(s=>{const r=i.filter(_=>_.name===s)[0],h=n.accountType?.type;if(h!=null&&r!=null){const _=n.dynamicForm[h][s];switch(r.fieldType){case"text":return t.jsxs(t.Fragment,{children:[t.jsx(Te,{label:{label:r.label+c.colon,width:x},text:{type:"text",name:W(o,"dynamicForm",h,r.name),placeholder:r.placeholder,defaultValue:_,options:{required:r.required,pattern:r.validationRegex!=null?new RegExp(r.validationRegex):void 0,maxLength:r.maxLength,minLength:r.minLength}},isDisabled:S,style:{width:"auto"},showAdditionalInfoLabel:!1},W(o,"dynamicForm",h,r.name)),t.jsx(z,{})]});case"select":return t.jsxs(t.Fragment,{children:[t.jsx(Z,{isDisabled:void 0,label:{label:r.label+c.colon,width:x},style:{width:"auto"},singleSelectPickerField:{name:W(o,"dynamicForm",h,r.name),placeholder:r.placeholder,defaultValue:{selectedOption:_,allOptions:r.valuesAllowed??[]}}},W(o,"dynamicForm",h,r.name)),t.jsx(z,{})]});case"radio":return t.jsxs(t.Fragment,{children:[t.jsxs(Q,{size:b,children:[t.jsx(G,{label:r.label+c.colon,htmlFor:W(o,"dynamicForm",h,r.name),style:{marginLeft:k.labelMarginLeft.value(b),marginRight:k.labelMarginRight.value(b),width:x}}),t.jsx(X,{labelWidth:x,size:b,children:r.valuesAllowed?.map(B=>t.jsx(H,{label:{label:B.label},style:{paddingRight:`${y.sp4}`,width:"auto"},radioField:{name:W(o,"dynamicForm",h,r.name),id:r.name,value:B.value,registerOptions:{required:!0}}},B.value))})]},W(o,"dynamicForm",h,r.name)),t.jsx(z,{})]});default:return null}}else return null}):null,t.jsxs(Ke,{size:b,children:[t.jsxs(Q,{size:b,children:[t.jsx(G,{label:c.addSource,htmlFor:L(o,"source"),style:{marginLeft:k.labelMarginLeft.value(b),marginRight:k.labelMarginRight.value(b),width:x},showTooltip:!0,tooltipTitle:c.sourceTooltip,toolTipWidth:k.toolTipWidth.valuePx(b)}),t.jsxs(X,{labelWidth:x,size:b,children:[t.jsx(H,{label:{label:c.phone},style:{paddingRight:`${y.sp4}`,width:"auto"},isContainerClickable:!0,radioField:{name:L(o,"source"),id:O[0],value:O[0],registerOptions:{required:!0},radioSize:"small"}}),t.jsx(H,{label:{label:c.email},style:{paddingRight:`${y.sp4}`,width:"auto"},isContainerClickable:!0,radioField:{name:L(o,"source"),id:O[1],value:O[1],registerOptions:{required:!0},radioSize:"small"}}),t.jsx(H,{label:{label:c.other},style:{width:"auto"},isContainerClickable:!0,radioField:{name:L(o,"source"),id:O[2],value:O[2],registerOptions:{required:!0},radioSize:"small"}})]})]}),$(`${o}.source`)==="other"?t.jsx(je,{type:"text",name:L(o,"otherSource"),placeholder:c.sourcePlaceholder,style:{display:"flex",flexGrow:1,cursor:"inherit",height:y.sp7,width:"calc(100% - largeLabelWidth)",background:D.colors.background,border:`1px solid ${D.colors.background}`,marginLeft:x},registerOptions:{required:!0,validate:s=>$(`${o}.source`)==="other"&&!!s}}):null]}),t.jsx(z,{})]})})},L=(e,i)=>`${e}.${i}`,W=(e,i,l,f)=>`${e}.${i}.${l}.${f}`,Je=g.div`
89
+ `,k={largeLabelWidth:new p(120,140,220),paddingTopBottom:new p(a[3],a[3]),labelHeight:new p(a[6],a[6]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2]),controlHeight:new p(a[6],a[6]),toolTipWidth:new p(60,150)},Ge=({dynamicFormFetchState:e,dynamicFormConfig:i,supportedAccountTypes:l,supportedCountries:f,supportedCurrencies:u,wireAccountToCreate:n,sectionId:o,isCountryDropdownReadonly:w,isCurrencyDropdownReadonly:T,isDisabled:S,style:C})=>{const b=K(),{getValues:$}=oe(),D=ne(),m=U.getLocalizedStrings().spendManagement.billPay.vendorCreation.wireDetails,{international:c}=m,x=k.largeLabelWidth.value(b),I=n?.accountType?.type,j=n?.countryCode==null,E=n?.currencyCode==null,O=["phone","email","other"];return t.jsx(Ke,{style:C,children:t.jsxs(Je,{children:[t.jsx(De,{isDisabled:w===!0?"readonly":void 0,label:{label:c.country,width:x},style:{width:"auto"},countrySelectField:{name:L(o,"vendorCountry"),placeholder:c.countryPlaceholder,defaultValue:le(n?.countryCode,f.map(s=>s.countryCode)),registerOptions:{validate:s=>!!(s!=null&&s.selectedOption)}},additionalInfoLabel:m.international.countryAdditionalInfo}),t.jsx(z,{}),t.jsx(_e,{isDisabled:j===!0?"disabled":T===!0?"readonly":void 0,label:{label:c.currency,width:x},style:{width:"auto"},currencySelectField:{name:L(o,"vendorCurrency"),placeholder:c.currencyPlaceholder,defaultValue:{allOptions:u.map(s=>({label:`${s.currencySymbol} - ${s.currencyName}`,value:s.currencyCode,countryCode:s.countryCode,currency:s.currencyName})),selectedOption:n?.currencyCode},registerOptions:{validate:s=>!!(s!=null&&s.selectedOption)}},additionalInfoLabel:m.international.currencyAdditionalInfo}),t.jsx(z,{}),E!==!0&&e==="Completed"?t.jsxs(t.Fragment,{children:[t.jsx(J,{isDisabled:void 0,label:{label:c.typeOfAccount,width:x},style:{width:"auto"},singleSelectPickerField:{name:L(o,"typeOfAccount"),placeholder:c.typeOfAccountPlaceholder,defaultValue:{selectedOption:n?.accountType?.type,allOptions:l.map(s=>({label:s.title,value:s.type}))},registerOptions:{validate:s=>!!(s!=null&&s.selectedOption)}}}),t.jsx(z,{})]}):null,n!=null&&I!=null&&n.dynamicForm[I]!=null&&i.length>0?Object.keys(n.dynamicForm[I]).map(s=>{const r=i.filter(_=>_.name===s)[0],h=n.accountType?.type;if(h!=null&&r!=null){const _=n.dynamicForm[h][s];switch(r.fieldType){case"text":return t.jsxs(t.Fragment,{children:[t.jsx(Te,{label:{label:r.label+c.colon,width:x},text:{type:"text",name:W(o,"dynamicForm",h,r.name),placeholder:r.placeholder,defaultValue:_,options:{required:r.required,pattern:r.validationRegex!=null?new RegExp(r.validationRegex):void 0,maxLength:r.maxLength,minLength:r.minLength}},isDisabled:S,style:{width:"auto"},showAdditionalInfoLabel:!1},W(o,"dynamicForm",h,r.name)),t.jsx(z,{})]});case"select":return t.jsxs(t.Fragment,{children:[t.jsx(J,{isDisabled:void 0,label:{label:r.label+c.colon,width:x},style:{width:"auto"},singleSelectPickerField:{name:W(o,"dynamicForm",h,r.name),placeholder:r.placeholder,defaultValue:{selectedOption:_,allOptions:r.valuesAllowed??[]}}},W(o,"dynamicForm",h,r.name)),t.jsx(z,{})]});case"radio":return t.jsxs(t.Fragment,{children:[t.jsxs(Z,{size:b,children:[t.jsx(G,{label:r.label+c.colon,htmlFor:W(o,"dynamicForm",h,r.name),style:{marginLeft:k.labelMarginLeft.value(b),marginRight:k.labelMarginRight.value(b),width:x}}),t.jsx(X,{labelWidth:x,size:b,children:r.valuesAllowed?.map(B=>t.jsx(H,{label:{label:B.label},style:{paddingRight:`${y.sp4}`,width:"auto"},radioField:{name:W(o,"dynamicForm",h,r.name),id:r.name,value:B.value,registerOptions:{required:!0}}},B.value))})]},W(o,"dynamicForm",h,r.name)),t.jsx(z,{})]});default:return null}}else return null}):null,t.jsxs(Qe,{size:b,children:[t.jsxs(Z,{size:b,children:[t.jsx(G,{label:c.addSource,htmlFor:L(o,"source"),style:{marginLeft:k.labelMarginLeft.value(b),marginRight:k.labelMarginRight.value(b),width:x},showTooltip:!0,tooltipTitle:c.sourceTooltip,toolTipWidth:k.toolTipWidth.valuePx(b)}),t.jsxs(X,{labelWidth:x,size:b,children:[t.jsx(H,{label:{label:c.phone},style:{paddingRight:`${y.sp4}`,width:"auto"},isContainerClickable:!0,radioField:{name:L(o,"source"),id:O[0],value:O[0],registerOptions:{required:!0},radioSize:"small"}}),t.jsx(H,{label:{label:c.email},style:{paddingRight:`${y.sp4}`,width:"auto"},isContainerClickable:!0,radioField:{name:L(o,"source"),id:O[1],value:O[1],registerOptions:{required:!0},radioSize:"small"}}),t.jsx(H,{label:{label:c.other},style:{width:"auto"},isContainerClickable:!0,radioField:{name:L(o,"source"),id:O[2],value:O[2],registerOptions:{required:!0},radioSize:"small"}})]})]}),$(`${o}.source`)==="other"?t.jsx(je,{type:"text",name:L(o,"otherSource"),placeholder:c.sourcePlaceholder,style:{display:"flex",flexGrow:1,cursor:"inherit",height:y.sp7,width:"calc(100% - largeLabelWidth)",background:D.colors.background,border:`1px solid ${D.colors.background}`,marginLeft:x},registerOptions:{required:!0,validate:s=>$(`${o}.source`)==="other"&&!!s}}):null]}),t.jsx(z,{})]})})},L=(e,i)=>`${e}.${i}`,W=(e,i,l,f)=>`${e}.${i}.${l}.${f}`,Ke=g.div`
90
90
  display: flex;
91
91
  flex-direction: column;
92
- `,Ze=g.div`
92
+ `,Je=g.div`
93
93
  display: flex;
94
94
  flex-direction: column;
95
95
  background-color: ${e=>e.theme.colors.grey5};
@@ -102,7 +102,7 @@ import{V as t,J,a9 as he,F as U,cG as ye,aE as ge,cq as be,cr as fe,cs as xe,ac
102
102
  background-color: ${e=>e.theme.colors.grey3};
103
103
  min-height: 1px;
104
104
  max-height: 1px;
105
- `,Ke=g.div`
105
+ `,Qe=g.div`
106
106
  display: flex;
107
107
  flex-direction: column;
108
108
  align-items: flex-start;
@@ -113,7 +113,7 @@ import{V as t,J,a9 as he,F as U,cG as ye,aE as ge,cq as be,cr as fe,cs as xe,ac
113
113
  z-index: 1;
114
114
  outline: 1px solid ${e=>e.theme.colors.primary};
115
115
  }
116
- `,Q=g.div`
116
+ `,Z=g.div`
117
117
  display: flex;
118
118
  flex-direction: row;
119
119
  width: 100%;
@@ -130,7 +130,7 @@ import{V as t,J,a9 as he,F as U,cG as ye,aE as ge,cq as be,cr as fe,cs as xe,ac
130
130
  flex-grow: 1;
131
131
  height: ${e=>k.controlHeight.valuePx(e.size)};
132
132
  align-items: center;
133
- `,P={paddingTopBottomContainer:new p(a[3],a[3]),paddingLeftContainer:new p(a[3],a[6]),paddingRightContainer:new p(a[3],a[8]),marginLeft:new p(a[4],a[6]),buttonWidth:new p(140,140)},Y="internationalDetailsPage",v="internationalWireSection",Qe="mailingAddressSection",ee=e=>`${e}_form`,Xe=({internationalWireView:e,vendorType:i,isCountryDropdownReadonly:l=!1,isCurrencyDropdownReadonly:f=!1,isDisabled:u,addressType:n,addressToEdit:o,mailingAddress:w,billAmount:T,onAccountDetailsUpdated:S,onCurrencyUpdated:C,onSaveHandler:b,onBackClick:$,onAddressClick:D})=>{const m=J(),c=e.createInternationalWireDetails.localData,x=e.createInternationalWireDetails.createStatus,I=e.fetchState,j=he({mode:"all",reValidateMode:"onChange",defaultValues:R.useMemo(()=>te(e),[e]),values:te(e)}),[E,O]=R.useState(!1),[s,r]=R.useState(!1),h=U.getLocalizedStrings().spendManagement.billPay.vendorCreation,_=U.getLocalizedStrings().common.footer,{international:B}=h.wireDetails,re={onOkClick:()=>{r(!1),j.reset(),$()},onCancelClick:()=>{r(!1)}},se=(d,A)=>{if(d.includes("account_holder_name")||d.includes("bank_account_iban")||d.includes("bank_swift_code")||d.includes("account_number")||d.includes("sort_code")||d.includes("ifsc_code")||d.includes("upi_id")||d.includes("contact_no")||d.includes("bank_code")||d.includes("institution_number")||d.includes("transit_number")||d.includes("identification_value")||d.includes("branch_code")||d.includes("clabe")||d.includes("bsb_code")||d.includes("proxy_value")||d.includes("php_e_wallet_no")){O(!0);return}const M=d===`${v}.vendorCountry`,q=d===`${v}.vendorCurrency`;q&&A[v].vendorCurrency.selectedOption!=null&&C(A[v].vendorCurrency.selectedOption,T,i);const pe={...A},me=ie(pe,e,M,q,f);S(me,T,i,q||M)};R.useEffect(()=>{const d=j.watch((A,{name:M})=>{M!=null&&A!=null&&ye(()=>se(M,A))});return()=>{d.unsubscribe()}});const N=R.useCallback(()=>{const d=j.getValues(),A=ie(d,e,!1,!1,f);S(A,T,i,!1),O(!1)},[j,e,f,S,T,i]),de=R.useCallback(()=>{E&&N(),D(n)},[E,N,D,n]),ce=j.handleSubmit(d=>{E&&N(),b()}),ue=!ge(w!=null?K(w):w,o!=null?K(o):o)||j.formState.isDirty;return t.jsxs(it,{children:[t.jsxs(lt,{size:m,children:[s===!0?t.jsx(be,{titleComponent:t.jsx(xe,{children:h.discardTitle}),descriptionComponent:t.jsx(fe,{children:h.discardDescription}),primaryButtonText:h.discard,secondaryButtonText:h.cancel,action:re}):null,t.jsx(We,{header:B.addInternationalWireDetails,isDirty:ue,onBackClick:$,setShowConfirmationPopup:r}),x?.fetchState==="Error"&&x.error?.code===409?t.jsx(ze,{warningText:h.bankAccountCommon.accountExistWarning}):null,t.jsx(ot,{size:m,children:h.bankAccountCommon.accountDetailsTitle}),t.jsx(ve,{...j,children:t.jsxs("form",{id:ee(Y),onSubmit:ce,children:[t.jsx(tt,{size:m,children:t.jsx(Ge,{wireAccountToCreate:c,dynamicFormFetchState:I,supportedAccountTypes:e.supportedAccountTypes,supportedCountries:e.supportedCountries,supportedCurrencies:e.supportedCurrencies,dynamicFormConfig:e.dynamicForm,sectionId:v,isDisabled:u,isCountryDropdownReadonly:l,isCurrencyDropdownReadonly:f})}),t.jsx(Re,{sectionId:Qe,isDisabled:u,addressType:n,addressToEdit:o,onAddressClick:de})]})})]}),t.jsx(we,{formId:ee(Y),primaryBtn:{label:h.bankAccountCommon.saveAccount,isLoading:x.fetchState==="In-Progress",style:{width:P.buttonWidth.value(m)},isDisabled:u!=null},cancelBtn:{label:_.cancel,style:{width:P.buttonWidth.value(m)},shouldResetOnCancel:!1,onClick:()=>{j.formState.isDirty?r(!0):(j.reset(),$())}}})]})},Ye=e=>{const i=e.dynamicForm,l=e.createInternationalWireDetails.localData?.dynamicForm,f=e.createInternationalWireDetails.localData?.accountType?.type;let u={};return l!=null&&i.length>0?(Object.keys(l).forEach(n=>{n===f?(u={...u,[n]:{}},Object.keys(l[n]).forEach(o=>{i.find(w=>w.name===o)?.fieldType==="select"?u[n]={...u[n],[o]:{selectedOption:l[n][o],allOptions:i.find(w=>w.name===o)?.valuesAllowed??[]}}:u[n]={...u[n],[o]:l[n][o]}})):u={...u,[n]:{}}}),u):{}},te=e=>{const i=e.createInternationalWireDetails.localData?.source;return{[v]:{vendorCountry:le(e.createInternationalWireDetails.localData?.countryCode,e.supportedCountries.map(l=>l.countryCode)),vendorCurrency:{allOptions:e.supportedCurrencies.map(l=>({label:`${l.currencyCode} - ${l.currencyName}`,value:l.currencyCode,countryCode:l.currencySymbol,currency:l.currencyName})),selectedOption:e.createInternationalWireDetails.localData?.currencyCode},typeOfAccount:{allOptions:e.supportedAccountTypes.map(l=>({label:l.title,value:l.type})),selectedOption:e.createInternationalWireDetails.localData?.accountType?.type},dynamicForm:Ye(e),source:i!=null&&i!=="phone"&&i!=="email"?"other":i,otherSource:i!=null&&i!=="phone"&&i!=="email"?i:void 0}}},et=e=>{let i={};return Object.keys(e).forEach(l=>{i={...i,[l]:typeof e[l]=="string"?e[l]:e[l].selectedOption}}),i},ie=(e,i,l,f,u)=>{const n=i.createInternationalWireDetails.localData?.accountType?.type;return{dynamicForm:n!=null?{...i.createInternationalWireDetails.localData?.dynamicForm,[n]:et(e[v].dynamicForm?.[n]??{})}:i.createInternationalWireDetails.localData?.dynamicForm??{},source:e[v].source==="other"?e[v].otherSource??"":e[v].source,countryCode:e[v].vendorCountry.selectedOption!=null?Ce(e[v].vendorCountry.selectedOption):void 0,currencyCode:l&&!u?void 0:e[v].vendorCurrency.selectedOption,accountType:f||e[v].typeOfAccount.selectedOption==null?void 0:{type:e[v].typeOfAccount.selectedOption,title:i.supportedAccountTypes.filter(o=>o.type===e[v].typeOfAccount.selectedOption)[0].title}}},tt=g.div`
133
+ `,P={paddingTopBottomContainer:new p(a[3],a[3]),paddingLeftContainer:new p(a[3],a[6]),paddingRightContainer:new p(a[3],a[8]),marginLeft:new p(a[4],a[6]),buttonWidth:new p(140,140)},Y="internationalDetailsPage",v="internationalWireSection",Ze="mailingAddressSection",ee=e=>`${e}_form`,Xe=({internationalWireView:e,vendorType:i,isCountryDropdownReadonly:l=!1,isCurrencyDropdownReadonly:f=!1,isDisabled:u,addressType:n,addressToEdit:o,mailingAddress:w,billAmount:T,onAccountDetailsUpdated:S,onCurrencyUpdated:C,onSaveHandler:b,onBackClick:$,onAddressClick:D})=>{const m=K(),c=e.createInternationalWireDetails.localData,x=e.createInternationalWireDetails.createStatus,I=e.fetchState,j=he({mode:"all",reValidateMode:"onChange",defaultValues:R.useMemo(()=>te(e),[e]),values:te(e)}),[E,O]=R.useState(!1),[s,r]=R.useState(!1),h=U.getLocalizedStrings().spendManagement.billPay.vendorCreation,_=U.getLocalizedStrings().common.footer,{international:B}=h.wireDetails,re={onOkClick:()=>{r(!1),j.reset(),$()},onCancelClick:()=>{r(!1)}},se=(d,F)=>{if(d.includes("account_holder_name")||d.includes("bank_account_iban")||d.includes("bank_swift_code")||d.includes("account_number")||d.includes("sort_code")||d.includes("ifsc_code")||d.includes("upi_id")||d.includes("contact_no")||d.includes("bank_code")||d.includes("institution_number")||d.includes("transit_number")||d.includes("identification_value")||d.includes("branch_code")||d.includes("clabe")||d.includes("bsb_code")||d.includes("proxy_value")||d.includes("php_e_wallet_no")){O(!0);return}const M=d===`${v}.vendorCountry`,N=d===`${v}.vendorCurrency`;N&&F[v].vendorCurrency.selectedOption!=null&&C(F[v].vendorCurrency.selectedOption,T,i);const pe={...F},me=ie(pe,e,M,N,f);S(me,T,i,N||M)};R.useEffect(()=>{const d=j.watch((F,{name:M})=>{M!=null&&F!=null&&ye(()=>se(M,F))});return()=>{d.unsubscribe()}});const q=R.useCallback(()=>{const d=j.getValues(),F=ie(d,e,!1,!1,f);S(F,T,i,!1),O(!1)},[j,e,f,S,T,i]),de=R.useCallback(()=>{E&&q(),D(n)},[E,q,D,n]),ce=j.handleSubmit(d=>{E&&q(),b()}),ue=!ge(w!=null?Q(w):w,o!=null?Q(o):o)||j.formState.isDirty;return t.jsxs(it,{children:[t.jsxs(lt,{size:m,children:[s===!0?t.jsx(be,{titleComponent:t.jsx(xe,{children:h.discardTitle}),descriptionComponent:t.jsx(fe,{children:h.discardDescription}),primaryButtonText:h.discard,secondaryButtonText:h.cancel,action:re}):null,t.jsx(We,{header:B.addInternationalWireDetails,isDirty:ue,onBackClick:$,setShowConfirmationPopup:r}),x?.fetchState==="Error"&&x.error?.code===409?t.jsx(ze,{warningText:h.bankAccountCommon.accountExistWarning}):null,t.jsx(ot,{size:m,children:h.bankAccountCommon.accountDetailsTitle}),t.jsx(ve,{...j,children:t.jsxs("form",{id:ee(Y),onSubmit:ce,children:[t.jsx(tt,{size:m,children:t.jsx(Ge,{wireAccountToCreate:c,dynamicFormFetchState:I,supportedAccountTypes:e.supportedAccountTypes,supportedCountries:e.supportedCountries,supportedCurrencies:e.supportedCurrencies,dynamicFormConfig:e.dynamicForm,sectionId:v,isDisabled:u,isCountryDropdownReadonly:l,isCurrencyDropdownReadonly:f})}),t.jsx(Re,{sectionId:Ze,isDisabled:u,addressType:n,addressToEdit:o,onAddressClick:de})]})})]}),t.jsx(we,{formId:ee(Y),primaryBtn:{label:h.bankAccountCommon.saveAccount,isLoading:x.fetchState==="In-Progress",style:{width:P.buttonWidth.value(m)},isDisabled:u!=null},cancelBtn:{label:_.cancel,style:{width:P.buttonWidth.value(m)},shouldResetOnCancel:!1,onClick:()=>{j.formState.isDirty?r(!0):(j.reset(),$())}}})]})},Ye=e=>{const i=e.dynamicForm,l=e.createInternationalWireDetails.localData?.dynamicForm,f=e.createInternationalWireDetails.localData?.accountType?.type;let u={};return l!=null&&i.length>0?(Object.keys(l).forEach(n=>{n===f?(u={...u,[n]:{}},Object.keys(l[n]).forEach(o=>{i.find(w=>w.name===o)?.fieldType==="select"?u[n]={...u[n],[o]:{selectedOption:l[n][o],allOptions:i.find(w=>w.name===o)?.valuesAllowed??[]}}:u[n]={...u[n],[o]:l[n][o]}})):u={...u,[n]:{}}}),u):{}},te=e=>{const i=e.createInternationalWireDetails.localData?.source;return{[v]:{vendorCountry:le(e.createInternationalWireDetails.localData?.countryCode,e.supportedCountries.map(l=>l.countryCode)),vendorCurrency:{allOptions:e.supportedCurrencies.map(l=>({label:`${l.currencyCode} - ${l.currencyName}`,value:l.currencyCode,countryCode:l.currencySymbol,currency:l.currencyName})),selectedOption:e.createInternationalWireDetails.localData?.currencyCode},typeOfAccount:{allOptions:e.supportedAccountTypes.map(l=>({label:l.title,value:l.type})),selectedOption:e.createInternationalWireDetails.localData?.accountType?.type},dynamicForm:Ye(e),source:i!=null&&i!=="phone"&&i!=="email"?"other":i,otherSource:i!=null&&i!=="phone"&&i!=="email"?i:void 0}}},et=e=>{let i={};return Object.keys(e).forEach(l=>{i={...i,[l]:typeof e[l]=="string"?e[l]:e[l].selectedOption}}),i},ie=(e,i,l,f,u)=>{const n=i.createInternationalWireDetails.localData?.accountType?.type;return{dynamicForm:n!=null?{...i.createInternationalWireDetails.localData?.dynamicForm,[n]:et(e[v].dynamicForm?.[n]??{})}:i.createInternationalWireDetails.localData?.dynamicForm??{},source:e[v].source==="other"?e[v].otherSource??"":e[v].source,countryCode:e[v].vendorCountry.selectedOption!=null?Ce(e[v].vendorCountry.selectedOption):void 0,currencyCode:l&&!u?void 0:e[v].vendorCurrency.selectedOption,accountType:f||e[v].typeOfAccount.selectedOption==null?void 0:{type:e[v].typeOfAccount.selectedOption,title:i.supportedAccountTypes.filter(o=>o.type===e[v].typeOfAccount.selectedOption)[0].title}}},tt=g.div`
134
134
  padding-left: ${e=>P.paddingLeftContainer.valuePx(e.size)};
135
135
  padding-right: ${e=>P.paddingRightContainer.valuePx(e.size)};
136
136
  padding-top: ${e=>P.paddingTopBottomContainer.valuePx(e.size)};
@@ -0,0 +1 @@
1
+ import{V as b}from"./index-DOsjGhSZ.js";import{a as S}from"./sentry-otjdlEta.js";import{f as k}from"./InternationalWireSwiftDetailsPage-BnsnrM3q-TCK2vz36.js";import"./liveblocks-KFxhhSr3.js";import"./core-BHxev_Cl.js";import"./recharts-B7o7FzH2.js";import"./zeni-epic-state-DVinyIRY.js";import"./mui-B2MHg-Mu.js";import"./lottie-DDoT_sT4.js";import"./analytics-Cz7GTPb4.js";import"./lexical-Dja08wvc.js";import"./utils-BbmM3Vsp.js";import"./BankAccountWarningSection-BfN1KiTF-CqPWwbNY.js";import"./MailingDetailsSection-CKtLfBik-Pke0GJpe.js";import"./LabeledAddressValueField-DSU3b6xx-SFUhns2M.js";import"./MagicLinkTitleSection-vMBVJSVF-Cq6tgd4r.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b7d885f8-df95-4503-a03d-4b55b74e2848",e._sentryDebugIdIdentifier="sentry-dbid-b7d885f8-df95-4503-a03d-4b55b74e2848")}catch{}})();const F=({vendorViewDetails:e,bankAccountContext:t,isDisabled:d,onSaveHandler:r,onBankDetailsUpdated:i,onBackClick:n,onFetchBankNameBySwift:s,onAddressClick:f})=>{const{internationalBankAccountCreateStatus:o,internationalBankAccountToCreate:c,editVendorState:m,newVendorState:l,bankNameBySwift:p,fetchBankNameBySwiftStatus:u}=e,a={...m??l};return S.useEffect(()=>{(t==="vendor"&&o.fetchState==="Completed"||a?.saveStatus?.fetchState==="Completed")&&n()},[o,a?.saveStatus?.fetchState,n,t]),b.jsx(k,{bankAccountToCreate:c,bankAccountCreationState:o,bankNameBySwift:p,addressToEdit:a?.vendorNewAddressStatus?.addressToCreate,mailingAddress:a?.vendorAddress,addressType:"vendor_address",fetchBankNameBySwiftStatus:u,isDisabled:d,onSaveHandler:r,onBankDetailsUpdated:i,onBackClick:n,onAddressClick:f,onFetchBankNameBySwift:s})};export{F as default};