@zeniai/web-cockpit-ui 1.14.6-qa → 1.14.7-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.
- package/dist/assets/{ACHDetailsPage-DgGGv2hx-DhGqxCnw.js → ACHDetailsPage-CYMIIaPh-C8Zl6MLV.js} +3 -3
- package/dist/assets/{AIPerformancePage-cpZUms56-qBalK6QF.js → AIPerformancePage-DpQIi2ZW-BO0NE_2F.js} +35 -35
- package/dist/assets/{AccountInfoPage-CFLaCiT5-DqoBEOc-.js → AccountInfoPage-Sh-82JXU-CKtI4bnL.js} +5 -5
- package/dist/assets/{AccountInfoPageContent-DtAZ50Qc-BeekofSV.js → AccountInfoPageContent-CsHvwqHd-BlW8CgcU.js} +13 -13
- package/dist/assets/{AccountReconDetailsDrawerPage-CMN1zNHW-CL-ockWE.js → AccountReconDetailsDrawerPage-DlKlKwh2-DpdK7fsT.js} +16 -16
- package/dist/assets/{AccountRow-DAc1wwY9-C0HqOA9-.js → AccountRow-CtIoeB6x-B01gigKX.js} +17 -17
- package/dist/assets/{AccountsPromoCardStack-Bp1wRT6M-CYo6jPNU.js → AccountsPromoCardStack-XGoMEJWB-ClZD8Pkf.js} +15 -15
- package/dist/assets/{AddAddressForCardDrawer-ChDzvTVq-GLR6_t5g.js → AddAddressForCardDrawer-C6Sfh784-BO6CLNaD.js} +2 -2
- package/dist/assets/{AddToWalletPage-BvrcjDhk-NkMR8hRQ.js → AddToWalletPage-CzD2AhWP-GEi12jel.js} +13 -13
- package/dist/assets/{AgingReportsPage-CzYUWOIt-CJFG9hw0.js → AgingReportsPage-D9YcQ7A--jEVrKNWY.js} +7 -7
- package/dist/assets/{AllUserItems-XxV2Tu4Y-sbn-nokE.js → AllUserItems-BtS-YtE0-oBJempiY.js} +7 -7
- package/dist/assets/{ApAgingDetailPage-DTXhjXRb-tDKmCLbA.js → ApAgingDetailPage-BTJqRp9j-CVJ5DZ9g.js} +4 -4
- package/dist/assets/{AppBasePage-Cfiv8Ecs-UJWdcIkl.js → AppBasePage-B5fgkJHL-nKspGTEB.js} +4 -4
- package/dist/assets/{AppDrawerContent-ggBgpYsv-BhuQV-gE.js → AppDrawerContent-C1lzepXw-Dt703jdK.js} +6 -6
- package/dist/assets/{ApprovalRulesSettingsPage-BlRSdCTV-LrZASIni.js → ApprovalRulesSettingsPage-Bqt15rR_-CJ2-js2Y.js} +7 -7
- package/dist/assets/{ArAgingChart-C7_e1ezL-Cfi6j3Jg.js → ArAgingChart-BGVvhkR5-CfmO25FB.js} +6 -6
- package/dist/assets/{ArAgingDetailPage-DhjFbj4K-sRIzddV0.js → ArAgingDetailPage-Ddp7z3e8-BWaOoITE.js} +2 -2
- package/dist/assets/{AttachmentView-CQD-yy-o-1NVaWP30.js → AttachmentView-pcpYs-s8-D808dzO5.js} +5 -5
- package/dist/assets/{BankAccountSection-CmOHWLFq-vSt2i69h.js → BankAccountSection-CmXQQBck-BXf6w0tF.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-DsBsO84p-Br5XLEf9.js → BankAccountWarningSection-Dp7qMaI2-DCN96rsg.js} +5 -5
- package/dist/assets/{BankConnectionsSettingsPage-Cz6smhXo-Cdgop5x9.js → BankConnectionsSettingsPage-ldzD1a4O-CXgyrIw4.js} +38 -38
- package/dist/assets/{BillDetailPage-CYa0EITJ-0aSYVKGp.js → BillDetailPage-CBubcYMe-BO_dFsg-.js} +11 -11
- package/dist/assets/{BillPayApprovalRuleDetailPage-BbU_Q81T-BVCvUvRL.js → BillPayApprovalRuleDetailPage-BxiRr1tP-COYx8jcO.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-D8ehXeiO-I0Ym-A1W.js → BillPayApprovalRulesPage-CLBGuxUe-fnAlfa5X.js} +8 -8
- package/dist/assets/{BillPayPromoPage-DuaA85G4-CW37fYt2.js → BillPayPromoPage-C3takK8D-DwgwIjWq.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-BH06l9Hv-BQ5XuNfG.js → BillPaySetUpPage-CweOkcc2-D46-_5BW.js} +2 -2
- package/dist/assets/{BillingSettingsPage-BUas93LA-Bw3kXQzV.js → BillingSettingsPage-BQSZ6DMP-DRARmVD3.js} +7 -7
- package/dist/assets/{BillsBulkReviewDrawerPage-D6cSAH1--Dypef8h4.js → BillsBulkReviewDrawerPage-3trPH78u-CF22gH7n.js} +1 -1
- package/dist/assets/{BoxItem-D88gMTQn-D46Yo25S.js → BoxItem-Bf7JemSM-D8tvXCvN.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-rX7_wUAW-C4OzNGUb.js → BusinessVerificationPage-DXODyk9C-B5e28vsE.js} +8 -8
- package/dist/assets/{CardNumberSubText-CxTVkF4V-iWi8Ysv4.js → CardNumberSubText-ByVXSDZX-CD-Gw7wf.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DdDMDW2I-DEFkWzKF.js → CashbackDetailPage-9RLOXq5b-DSEoSjiZ.js} +23 -23
- package/dist/assets/{ChargeCardDetailPage-JrO7h-ff-CM_N7uQT.js → ChargeCardDetailPage-lkNsxEdO-e-8D7tkI.js} +1 -1
- package/dist/assets/{ChargeCardListPage-CelWKqSg-Dhoo911d.js → ChargeCardListPage-DV25pQMP-BgesY_b4.js} +1 -1
- package/dist/assets/{ChargeCardListTable-B4c4WFSq-DJFUY7lB.js → ChargeCardListTable-CSWl05jK-CRlk7PbR.js} +25 -25
- package/dist/assets/ChargeCardPromoPage-Cv34m9BS-BmZiFW4y.js +219 -0
- package/dist/assets/{ChargeCardSetupPage-PQAwr78u-msQYLFMS.js → ChargeCardSetupPage-7mEdImT--BWhFbFIQ.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DVPKN4xX-BDfS62On.js → ChargeCardStatementsPage-D_rKdZ5c-DUDd82r_.js} +3 -3
- package/dist/assets/{ChargeCardUtils-BQZTS-KQ-DN5emI4w.js → ChargeCardUtils-BB7l65Bf-DfL6sW6K.js} +1 -1
- package/dist/assets/{ChaseOverlay-DveM_aY_-SrUhZ-KA.js → ChaseOverlay-hsrWeA5X-B3bQwtbG.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-DoMhVKPu-BWBUN8tI.js → CheckDepositDrawerPage-CZNH4rCm-CxSsvi_m.js} +19 -19
- package/dist/assets/{CollapsableReportTable-CWIVhYku-DzNE0ECl.js → CollapsableReportTable-C73RBmaZ-A1Br721z.js} +46 -46
- package/dist/assets/{CompanyOfficerDetailsSection-Ci47swN_-GWpqyiJH.js → CompanyOfficerDetailsSection-CZWTSWyp-BOVUWJjT.js} +34 -34
- package/dist/assets/{CompanyPassportCard-Bw2TdWs0-BiZohcbB.js → CompanyPassportCard-D-hYeDRN-Bo9rwkQb.js} +3 -3
- package/dist/assets/{CompanyPassportPage-CKIihOM0-D1cXLT0P.js → CompanyPassportPage-fQ60DR7u-DD7YvAPU.js} +12 -12
- package/dist/assets/CompleteProfile-DnBzaAdT-JcsdBGpZ.js +52 -0
- package/dist/assets/{ConfettiBurst-CU6fcwCz-CJlWrE_E.js → ConfettiBurst-D5XTvsuG-Dl2X4lye.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BoDt1Ez7-DgN-5P6-.js → CreateOrEditVendorPage-7KdDJirx--0K-JjCB.js} +10 -10
- package/dist/assets/{CreditCardPaymentDrawerPage-D7Hka4sI-XMOTHoN6.js → CreditCardPaymentDrawerPage-BNJLUnlH-D5HY42Lo.js} +15 -15
- package/dist/assets/{CreditCardPaymentPlgSection-C86KVs5o-CMHP3c_1.js → CreditCardPaymentPlgSection-BwqznNRc-DXBqgi-A.js} +10 -10
- package/dist/assets/{CurrencySelectField-B0VTg3Rt-Dd3IQIDs.js → CurrencySelectField-PwurThUn-qsqObS4L.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-oegOz3kP-D9IgnjCf.js → CustomerOnboardingActivationPage-CHJLyOyf-vC6AUxAJ.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DyM4sCZd-DLhRqrqJ.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DhuLaWYK-DcG6KMpl.js → CustomerOnboardingDetailPageSkeleton-BqdhqyL7-D5d_8a27.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-BxwT2uzY-D7TcqLpN.js → CustomerOnboardingNoStepsPage-DDio10hZ-Bwj4xg2w.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-L_1XcD2Y-DKNCW3S2.js → CustomerOnboardingPage-k2OYvIqe-DW9-8aDi.js} +9 -9
- package/dist/assets/CustomerOnboardingProductSuitePage-CxB32dUM-D8l5mASB.js +202 -0
- package/dist/assets/{Dashboard-CWSUiuiJ-CkG7yAH9.js → Dashboard-DhMPjLVy-BPpidTU7.js} +1 -1
- package/dist/assets/{DashboardReportPage-D79gYgHb-BVvCBIWA.js → DashboardReportPage-C9YvD_24-CnK8XRxa.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BCJn6a_d-BT-feK8R.js → DepositAccTransactionItem-BYFOUvho-D1tjwPkv.js} +4 -4
- package/dist/assets/{DepositAccTransactionListPage-6QMW3q5S-DniMW2S1.js → DepositAccTransactionListPage-DeN4-lBP-CBJVTEU-.js} +7 -7
- package/dist/assets/{DocumentSecurityBanner-C7TAyvIZ-DjIw6AYV.js → DocumentSecurityBanner-6cQ2cW7e-Bf5Osic5.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DGOgMHF5-CR1jD4GL.js → DomesticWireDetailsPage-BmMEth4c-Duh2OS1c.js} +1 -1
- package/dist/assets/{DownloadOverlay-BrVMY7u8-nMRk4mVN.js → DownloadOverlay-D0_pmb7k-BhK-Q9wQ.js} +6 -6
- package/dist/assets/{DrawerPage-DbmFkDa9-Djje95q9.js → DrawerPage-C5u676VK-BwyTjOJX.js} +1 -1
- package/dist/assets/EditPeoplePage-DAM71X8m-kukHxW_0.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-BSXwufQy-BGfoaRvB.js → EditReimbursementDetailPage-BxjNoyj8-mj8ySbuq.js} +43 -43
- package/dist/assets/{EntityDetailPage-ClKvTCns-CiI4yzJ7.js → EntityDetailPage-BfscGvkI-DlE98_0K.js} +3 -3
- package/dist/assets/{EntitySummarySection-BcyWfLW_-llSGPYnB.js → EntitySummarySection-BCkLY2Py-lpTrhfnW.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-CQ5_4jtz-Dwom5i2h.js → ExpenseAutomationOverviewPage-C4SCxViu-BAakN-WZ.js} +18 -18
- package/dist/assets/{ExpenseAutomationPage-SDYsJmGO-CNd8g10S.js → ExpenseAutomationPage-DF1-Q4X5-DubLusUH.js} +33 -33
- package/dist/assets/{ExpressPayPage-S33czP_U-wOnUG70H.js → ExpressPayPage-Cdtx03yB-BxTU3id1.js} +10 -10
- package/dist/assets/{FeaturePreviewPage-COWIqmTf-CyZ-Ngo6.js → FeaturePreviewPage-nQYT4moR-CobwvrFz.js} +2 -2
- package/dist/assets/{FollowStepsSection-Cw8htUBe-KlacKTEI.js → FollowStepsSection-CRBm3eL9-Bz_q7qOo.js} +8 -8
- package/dist/assets/{GlobalReviewListPage-DKBYTVNe-B054__m6.js → GlobalReviewListPage-3iXmpaXt-BpdqjyXr.js} +1 -1
- package/dist/assets/{HelpButton-BvPX8uxd-B7O0Ne6B.js → HelpButton-Cv7-d_qL-CciztHgu.js} +1 -1
- package/dist/assets/{InformationCardStack-CtueyMCq-B3RHQtJt.js → InformationCardStack-JCre21xs-BlkeDU23.js} +3 -3
- package/dist/assets/{InsightsCardStack-BKtPGTdt-rc65DXp-.js → InsightsCardStack-Dekfw94R-VqCo_XNV.js} +8 -8
- package/dist/assets/{InsightsSection-BFIeAUrz-CogsOJk3.js → InsightsSection-CLqfyvOO-CKwkK2Sj.js} +4 -4
- package/dist/assets/{IntegrationsSettingsPage-BSyZC7Kg-CHF3rylS.js → IntegrationsSettingsPage-o9w1-WIT-BCMJ43n5.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-C9Z04pG5-ChUNSNNN.js → InternationalWireSwiftDetailsPage-DBG1ni7g-DMTAsaCM.js} +18 -18
- package/dist/assets/{InternationalWireVerificationPage-iRa0YMo6-BqMlSuW7.js → InternationalWireVerificationPage-BLU4F--p-BFU2uuwn.js} +19 -19
- package/dist/assets/{InviteFormPage-CbSJssAT-C5BLeKFh.js → InviteFormPage-Bf8Mqb7S-BtjdSecG.js} +13 -13
- package/dist/assets/{InvitePageListView-BrUBTz5B-DxiDTLU3.js → InvitePageListView-6oeT1vaB-Bpmua81S.js} +52 -52
- package/dist/assets/InvitePeoplePage-CLvVDRca-CLtgUYZW.js +12 -0
- package/dist/assets/{InvoiceUploadSection-CRgtSthn-CdJu9_SZ.js → InvoiceUploadSection-BiIfE0Mk-DzhUPeCE.js} +7 -7
- package/dist/assets/{IssueChargeCardPage-CdOs81el-CaQjXLma.js → IssueChargeCardPage-Dd312Qu7-BymELIm-.js} +20 -20
- package/dist/assets/{LabeledAddressValue-CoQKG0Vs-XiBnAGSr.js → LabeledAddressValue-BplX--OG-BBD4K47a.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-D5zB7wnP-C-ACJntJ.js → LabeledAddressValueField-DkhJs5ky-DLdSr7t1.js} +4 -4
- package/dist/assets/{LabeledControlledCheckBoxField-DSefRIxV-fZ095MYZ.js → LabeledControlledCheckBoxField-SJfjkDzA-q46TDnxw.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DOv10RFp-Do8dWxGN.js → LabeledCreatableSingleSelectField-CPwrvNjy-C-LowpML.js} +3 -3
- package/dist/assets/LabeledDocumentField-DLd6UnEn-DtqGgdoi.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-D6qgntCW-BJC3ifVH.js → LabeledDropDownFormattedTextField-D70GX0HR-7dIEmO5F.js} +7 -7
- package/dist/assets/{LabeledText-DiD_FvMm-CCwT2lQh.js → LabeledText-mTAE2dvH-e6RXkC8i.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-rBaXx4JB-DR0Xw0HO.js → LabeledUserSingleSelectWithSubtitlesField-Dx8TfHuB-hRPyJuOY.js} +10 -10
- package/dist/assets/{LabeledZeniRolesDropDownField-DI9XLkn7-BHhuV6HF.js → LabeledZeniRolesDropDownField-ZGHinaTy-14IF6Cak.js} +12 -12
- package/dist/assets/{LinkJETransactionPage-BI9rvDWF-CfBfl5Qd.js → LinkJETransactionPage-CNYQO-AQ-BO9clNns.js} +8 -8
- package/dist/assets/{LowBalancePopup-ChqqEeWk-BM4fEMD_.js → LowBalancePopup-hdwaJezh-B0CYMe4t.js} +5 -5
- package/dist/assets/{MagicLinkACHDetailsPage-DYDNDN_--DivIHnp3.js → MagicLinkACHDetailsPage--DRHcaKz-BBtLo6wh.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DQuuLyWQ-DMuYoH5t.js → MagicLinkDomesticWireDetailsPage-B5hbI4dU-0vD7L8pJ.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-CnUTecpU-D_T2GhHn.js → MagicLinkInternationalWireDetailsPage-BdwVZCRt-BzFpmTJD.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Dyhk5vnq-BIlvFeEv.js → MagicLinkSuccessPage-DOUrPdD--h771bDUh.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CAwqT4_X-BZUCaIfF.js → MagicLinkTitleSection-Bb27jU2a-DQOPYd-Z.js} +3 -3
- package/dist/assets/{MailingDetailsSection-Cpu-qwub-DXvamX34.js → MailingDetailsSection-CdKFQB_8-K5G0AaPG.js} +2 -2
- package/dist/assets/{MeetingCalenderPopup-B5M2lm-y-C_FrJz7Q.js → MeetingCalenderPopup-B3sIZU3d-DuEMLObz.js} +3 -3
- package/dist/assets/{Menu-D0NUi1FB-BawltZy9.js → Menu-Bsk58l8k-kRDchKev.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-SYlGHINJ-UgY1mvLj.js → MyBankConnectionsSettingsPage-P1Zh6SFD-C4DvQ61H.js} +12 -12
- package/dist/assets/{MyPendingActivationChargeCardListPage-EBaDVcO8-BUhvlg7Q.js → MyPendingActivationChargeCardListPage-Cs7rVAdh-B9AXkK-5.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-a1LKde_U-C-CluQ5D.js → MyProfileSettingsPage-Cc4XfbBQ-C9qNtbAb.js} +6 -6
- package/dist/assets/{NavBarWithPicker-D3YzfX06-BOvWanjk.js → NavBarWithPicker-DFD5LZ4o-CjFvYGu-.js} +3 -3
- package/dist/assets/{NavigationArrow-C81m-KZF-DiGpo5fD.js → NavigationArrow-mL8dVddD-CApZjvsF.js} +5 -5
- package/dist/assets/{NavigationDots-CB3WQq54-bd5dE2x5.js → NavigationDots-MPqPjbnr-gK408Eu4.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BwuCbGQ_-BWfS6c1K.js → NewGlobalMerchantPage-QTvziNPs-DJ7dMRKm.js} +6 -6
- package/dist/assets/{NoDataChart-B0CMrh6X-CjUp7yyw.js → NoDataChart-C1BY1riw-DoqrJEIG.js} +1 -1
- package/dist/assets/{NoDataTable-BgcSvfNz-CZM6fS2_.js → NoDataTable-C_4AqyDp-cxOm3TqL.js} +1 -1
- package/dist/assets/{NotFoundPage-BnPqLAwW-DXn1vq6B.js → NotFoundPage-U8Zqpzgy-DGacTch6.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-wigFcdhu-BCVXYCAc.js → NotificationSettingsPage-2A4Pahmq-ugOY8DfW.js} +13 -13
- package/dist/assets/NotificationsListConfig-BIw5ASx2-BpsD8zMo.js +1 -0
- package/dist/assets/{NotificationsPage-BC-f8rc3-Cv1jpZ5r.js → NotificationsPage-B6yKJmGI-ABrq9lsr.js} +36 -36
- package/dist/assets/{OpExByVendorPage-CIh1CcAU-DhceACAT.js → OpExByVendorPage-BnTlBXeu-CtQ9Rudi.js} +4 -4
- package/dist/assets/{OverlayContainerPage-GWXnlbZH-D_pF8lEg.js → OverlayContainerPage-BxBOhoib-0U2mSFzb.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Dj21XOWq-Bil3pCly.js → PandLWithForecastPage-CKW73tr8-DQuvWZ35.js} +5 -5
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-C0eGjv2q-hYajAvBR.js → PaymentAccountSetupBillingAddressSection-CSEVISAI-Bq0DuZcX.js} +6 -6
- package/dist/assets/{PeoplePage-DHWuODjG-BG9mOlzv.js → PeoplePage-BJxZJT-l-FSQqwOWI.js} +16 -16
- package/dist/assets/{PortfolioAllocationFormPage-CYoVD723-JNLkou6k.js → PortfolioAllocationFormPage-C4pRhyet-Wf_11Z3Y.js} +4 -4
- package/dist/assets/PortfolioDetails-4fbkArz6-0_-lQYOm.js +218 -0
- package/dist/assets/{ProductsCarousel-DcSxZECS-DlL_nQ7i.js → ProductsCarousel-gGbLzHle-BYrndM43.js} +1 -1
- package/dist/assets/{PromoBaseCards-B-s9wF0Q-C_JFN1l_.js → PromoBaseCards-DUlZEg5E-CbxyeszU.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CQlXDalh-pYOnv0Lz.js → QBOConnectionDialog-C_Z2lvUz-DLhuJ1u0.js} +6 -6
- package/dist/assets/{QBOSetupSection-Dpib3Rx5-CvOyCasF.js → QBOSetupSection-DqWiwHwl-DIb9XM9r.js} +11 -11
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CutUv2m2-DV8JJchD.js → ReimbursementApprovalRuleDetailPage-JWdrVgqW-CFvIiw2A.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-Cyye_Ayg-D3NnZeto.js → ReimbursementApprovalRulesPage-BnBNwFzM-C_gjNu0y.js} +33 -33
- package/dist/assets/{ReimbursementDetailPage-C4Tsi1io-C3Ydj8yn.js → ReimbursementDetailPage-Dyjb0qZE-BT9Piz6e.js} +7 -7
- package/dist/assets/{ReimbursementPromoPage-4BFu3jYR-DJOp85Xg.js → ReimbursementPromoPage-D1EqiXEa-DCne6gHN.js} +3 -3
- package/dist/assets/{ReimbursementSetUpPage-Cpl4wfuS-CLF96wxU.js → ReimbursementSetUpPage-ClJ_4WMp-Rk-zjJTF.js} +5 -5
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-iGaIl0hj-Ez4D4cLW.js → ReimbursementsBulkReviewDrawerPage-B-uGRv6i-04ZwLpFl.js} +1 -1
- package/dist/assets/{ReloadCard-F-DEmw51-DLqR0F5O.js → ReloadCard-DVYCtjFP-BRGDk89Q.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-BSPNRs-f-BSuMcYEk.js → ReportTableViewSelector-BTu2hum1-C1Mbyqo-.js} +7 -7
- package/dist/assets/{ReportsPage-BQF-yVRz-qmz-Tsud.js → ReportsPage-BJEqtDDR-D_PksdU9.js} +5 -5
- package/dist/assets/{RevenueChart-ClRH1Vei-DMmGXmTr.js → RevenueChart-BFS-A4qa-BBXnyto4.js} +13 -13
- package/dist/assets/{ReviewDetailsPage-BKfSEXv--BulgMAR_.js → ReviewDetailsPage-C6qSCmDQ-B2yUNAOk.js} +13 -13
- package/dist/assets/{ReviewOverlay-Dgnr47GU-pLIXYebD.js → ReviewOverlay-DItEmr7f-J3VxEX04.js} +1 -1
- package/dist/assets/{RoleWithToolTip-Bcjjd_2M-CEhXe82J.js → RoleWithToolTip-CqtMdboJ-Do2co-59.js} +6 -6
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bq6XAACj-b2tW9Mlc.js → ScheduleDetailsFixedAssetsPage-CKcDbns8-CVYGhsoz.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-DTLTxgOx-BSog8pZ6.js → ScheduleDetailsPage-CYqYYvix-CdBl7QS5.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-CEZL4GA8-Bz6Z5iY2.js → ScheduleSequenceTable-DUYFGZvc-B-XLebxH.js} +18 -18
- package/dist/assets/{ScreenRoutes-CPSDcwH4.js → ScreenRoutes-BFh5xZjd.js} +35 -35
- package/dist/assets/{SetUpAccountSection-CJsY-S6w-C1WEKP8_.js → SetUpAccountSection-DfuZHlL6-sva6HoSx.js} +21 -21
- package/dist/assets/{SetUpDefaultSection-Dbzui0hL-iIB8Rf0_.js → SetUpDefaultSection-Jl4dtzx3-CDDnDgUz.js} +10 -10
- package/dist/assets/{SignIn-yFG7aeiJ-ckyRX-3p.js → SignIn-OTT_6lLp-4uioYcss.js} +4 -4
- package/dist/assets/{SignInScreen-CezO9Lof.js → SignInScreen-VsVK9Vz1.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-cw0B29Ux-C5QKbiAX.js → SpendManagementListViewPage-BkL-3WNh-DhY9QPd5.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-Bkw1eegW-6YGIDLoT.js → SpendManagementPerTabPage-Buppd61y-KX81e_1p.js} +14 -14
- package/dist/assets/{SpendManagementSection-DuYMRljT-Bdg69CKN.js → SpendManagementSection-BGcBRKGN-CG3uT_ZE.js} +10 -10
- package/dist/assets/{SpendMgmtSetupAccountSection-DF3XzW-2-DYLliU2g.js → SpendMgmtSetupAccountSection-Cswh297O-5u1iK010.js} +13 -13
- package/dist/assets/{StatementItem-DGX-Yd6i-BY_yCToE.js → StatementItem-C3tUNT5A-D9LIbCmi.js} +4 -4
- package/dist/assets/{StatementsPage-BJ3A9NXT-DMgbNE2o.js → StatementsPage-DGryRE6z-C-mT3zfT.js} +3 -3
- package/dist/assets/{StatusSwitcher-Duc8UFd8-CiSz19gK.js → StatusSwitcher-BgWlxay9-Mp4PEzEM.js} +2 -2
- package/dist/assets/{SubTabSwitcher-U04APwPI-BuE6OItd.js → SubTabSwitcher-DwwAqq_R-DBNFWy_6.js} +1 -1
- package/dist/assets/{SummaryCard-BPy7YF4F-CCR3LVUp.js → SummaryCard-Dm0Tx9is-BV25EA5P.js} +1 -1
- package/dist/assets/{TaskManagementPage-CaPSMhTy-CpyLEYTY.js → TaskManagementPage-59XAl_cs-BbyBf_KE.js} +31 -31
- package/dist/assets/{TimeRangeSwitcher-DR2s6McL-3_tMweub.js → TimeRangeSwitcher-D7-Jph-G-Cn7zeCi8.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-CR_Pithb-DBISxzXu.js → TimeframeSwitcher-CWYQWFLF-B37Mzr7G.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CxsK8B8h-Cc3bm2cD.js → TimeframeSwitcherWithToggle-QOhQ3sac-BtE_j2V5.js} +1 -1
- package/dist/assets/{TopExCard-CykkX8Ny-DVQt4RbM.js → TopExCard-CTlizsDD-CdK-gYL3.js} +5 -5
- package/dist/assets/{TopExDetailPage-D9lST5M2-BxtgAaio.js → TopExDetailPage-Df3JbgcF-BUIhSfiv.js} +2 -2
- package/dist/assets/{TransactionDetailPage-CdEYjFbk-B6ledmKA.js → TransactionDetailPage-DvNpTjAp-3mOQ99vo.js} +30 -30
- package/dist/assets/{TransactionList-Dybq00u0-BjLYzc0q.js → TransactionList-SkSPfIsE-CE8kQBAe.js} +8 -8
- package/dist/assets/{TransactionListBig-C08_BfqV-BbvbiTrP.js → TransactionListBig-CZCV_kmJ-DVUvA7le.js} +9 -9
- package/dist/assets/{TransactionListPage-B1Yrd7M3-DonBnBnw.js → TransactionListPage-CBbyagWp-Da8WpQzF.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-C4c-gk4U-BJLuJ4bf.js → TransactionVendorDetailPage-BXnlFdHR-DkKO-vTr.js} +3 -3
- package/dist/assets/{TransferDrawerPage-R6BJFqqt-DlAyhuZ7.js → TransferDrawerPage-CxXLyKwW-pf6KUagR.js} +29 -29
- package/dist/assets/{TreasuryOverviewPage-BsLzvGJ9-B1GjNHT4.js → TreasuryOverviewPage-3JlXZfCV-Dx_gGX5K.js} +16 -16
- package/dist/assets/{TreasuryPromoPage-k4TR0X4_-eC19CXAQ.js → TreasuryPromoPage-BhAicq7r-CWtB-Ior.js} +15 -15
- package/dist/assets/{TreasurySetupPage-xA9wkaxu-DOCNmlPJ.js → TreasurySetupPage-BQG_Wd5U-DotUWNKW.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-BeGMnFii-YfwK-mig.js → TreasuryStatementsPage-dCAtvvZk-CQC0pKh5.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-D6xf_HNB-DiYrdqjP.js → TreasuryTaxLetterPage-irA0Cgkj-CtL9UaTH.js} +5 -5
- package/dist/assets/{TreasuryTransferOrReviewPage-Cy90K2k1-BwaHgqNm.js → TreasuryTransferOrReviewPage-Dd1oLBma-BqeITAG-.js} +80 -80
- package/dist/assets/{TrendChart-CJ4ymPpY-4Nl5mDmM.js → TrendChart-Ctquh3qH-BiYWLM8X.js} +2 -2
- package/dist/assets/{TrendWithTransactions-B1FMv4RR-BXjd6gRu.js → TrendWithTransactions-CoXTnQK7-BLlEO5rp.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-MX9qLxmy-NN0GCNcI.js → UncategorizedAccountsMappingPage-Cq49D6V9-TgKDL_ek.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-B1wIRNw1-DQCY0VyM.js → UnitIntegrationPage-CR0nZ7NM-R_gwAwZ8.js} +4 -4
- package/dist/assets/{UploadAdditionalDocumentOverlay-DiX5Dbc--DMKXpGlq.js → UploadAdditionalDocumentOverlay-B_DFEIlC-D-vyB1J1.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-Cljy86Us-CqvodjDD.js → Vendor2FAPopup-KsRgKz_Z-j8koIFf4.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BZG4bwOp-CtpzzPJH.js → VendorACHDetailsPage-MRaehbhm-DmI12dQp.js} +1 -1
- package/dist/assets/{VendorDetailPage-B8m4FkG5-D-auLoHo.js → VendorDetailPage-Cji21PBc-B3adWyVF.js} +18 -18
- package/dist/assets/{VendorDomesticWireDetailsPage-D7Mt3s3R-_HscDehj.js → VendorDomesticWireDetailsPage-DhUIW9g--qdYZ8d9x.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-B1FNkNlL-Sg-MnT3r.js → VendorFiling1099EditablePage-BWFbXLhQ-C5qvIENm.js} +11 -11
- package/dist/assets/{VendorFirstReviewPage-CDmMppJJ-CtMKXiJP.js → VendorFirstReviewPage-tvh5pcvQ-B2Kk7Crs.js} +26 -26
- package/dist/assets/{VendorInternationalWireDetailsPage-X-j8j32p-CWI0CPWX.js → VendorInternationalWireDetailsPage-CfmZSb8O-B-ILWyNn.js} +11 -11
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-eJXY7B89-B0ExbgQf.js → VendorInternationalWireSwiftDetailsPage-V_1s9mWi-hnkkHj00.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DH0v9LaU-DHJI7MF_.js → VendorsAccountsSection-b9s5nqGq-DfS13Vrv.js} +6 -6
- package/dist/assets/VerifyDevice-CJgD3UmO-uodXssPo.js +67 -0
- package/dist/assets/{WarningsDrawerPage-0XqR-WSe-anF5_tw2.js → WarningsDrawerPage-CB4mJGTB-fzxOGtfc.js} +9 -9
- package/dist/assets/{ZeniAccountDetailPage-poRKOvKO-DKb8kmv1.js → ZeniAccountDetailPage-CgSyyen1-PEjv41n1.js} +33 -33
- package/dist/assets/{ZeniAccountListViewPage-DAwsHVFu-BGWKwgu8.js → ZeniAccountListViewPage-DjGZpdh_-BsFv0aAo.js} +14 -14
- package/dist/assets/{ZeniAccountNavBarPieces-CK1z6uDE-EtXKthio.js → ZeniAccountNavBarPieces-BJC4d2Iu-BjaYs6wQ.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-D_AeQXK0-BigsavEn.js → ZeniAccountPromoPage-D3Yt6FIj-ypiLoIIl.js} +9 -9
- package/dist/assets/{ZeniAccountSetupPage-B5KmPY23-C7MeYCAt.js → ZeniAccountSetupPage-BeCPekI4-BoIQB_8y.js} +3 -3
- package/dist/assets/{ZeniCopyright-DawBwguL-CoKChncL.js → ZeniCopyright-Dhdl9kqY-CRu5oNtE.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BBQgQPfw-CW26dOpf.js → ZeniTransferAmountSlider-B8VFb2l--enqH4TrQ.js} +1 -1
- package/dist/assets/{analyticsHelper-mARzqEfV-glOPluPl.js → analyticsHelper-Cawv3PXO-DqLgneHd.js} +1 -1
- package/dist/assets/{analyticsHelper-DTaSIWBm.js → analyticsHelper-DBiIeSgZ.js} +1 -1
- package/dist/assets/{chartTypes-CedtWDkU-D_XzUeW6.js → chartTypes-5p7NWUHx-6R9pye-p.js} +1 -1
- package/dist/assets/{commonDimensions-ZxGdYNGR-BLBlsCik.js → commonDimensions-CQlLUBWG-C3nTCVjo.js} +1 -1
- package/dist/assets/{detailCommon-C0urnGcj-AeDRs0j5.js → detailCommon-CoAmJ6pY-B0Qu3snC.js} +4 -4
- package/dist/assets/{downloadPdf-C1cvLEsi-rU2eYPue.js → downloadPdf-CCJjnfCZ-ODxWAPRh.js} +1 -1
- package/dist/assets/{index-BEYLWYh7.js → index-C2JVdK9x.js} +2597 -2579
- package/dist/assets/{mapLoadingInProgressToTreeNode-D9ofcMAJ-DzcUuzrj.js → mapLoadingInProgressToTreeNode-CwyU1xs5-DTtIWEnS.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CAhuUnXV-B-V1WxKb.js → mapSectionWithAcOnlyToTreeNode-IKJYFM7_-BiH-dZ1q.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-BPXOBdsi-fkjPbAs6.js → mapSpacerToTreeNode-D5XTLzM7-CZeCl2Hx.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BYB1q7M0-BG-ucR_V.js → mapTimeframeBalancesToTreeNode-CJMbtmIl-DGh10zzw.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BU0Ph9My-DP-H6YbL.js → mapTimeframeBalancesToTreeNode-SX6fBp6e-DSWmrMTg.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Bkav2l0W-kqY2QYd9.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Ts5lOZtX-DZNSlCJx.js} +1 -1
- package/dist/assets/{play-icon-BaaR5WkW-bsECe0gv.js → play-icon-oQKnPjZi-D1s2fk0_.js} +3 -3
- package/dist/assets/{toCOABalancesWithID-CCW7YVfm-BLH1CPxw.js → toCOABalancesWithID-DwvFse7w-YhdHXdmt.js} +1 -1
- package/dist/assets/{toChartData-C3kVg0fD-Dm5_eyYk.js → toChartData-BBvMC_VQ-D9RVT7PQ.js} +1 -1
- package/dist/assets/{treasuryColorHelper-Cc1DTnhB-C-kSfp9f.js → treasuryColorHelper-CUDK9KvQ-DUBVC7I-.js} +1 -1
- package/dist/assets/{uploadAttachment-C56u0Q20-DnHCC04X.js → uploadAttachment-P4S_2L_v-CgBJ3cvv.js} +13 -13
- package/dist/assets/{uploadReceipts-D80JLNY4-dIgIudSI.js → uploadReceipts-DhDnr0ap-Dmr6ZzO6.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ChargeCardPromoPage-BiyYawq5-C06aowQC.js +0 -219
- package/dist/assets/CompleteProfile-CikcmDmg-BRscmvQ1.js +0 -36
- package/dist/assets/CustomerOnboardingContainerPage-56mBQg5m-P-4bO2TI.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-Xqdww5iU-DE5MK9MP.js +0 -202
- package/dist/assets/EditPeoplePage-CKiV3DO3-CiLuq48J.js +0 -55
- package/dist/assets/InvitePeoplePage-BbDUlUjQ-BFnCmfU7.js +0 -12
- package/dist/assets/LabeledDocumentField-CO6_e65U-C8oWnxyV.js +0 -41
- package/dist/assets/NotificationsListConfig-D2ndsr4D-C04oDiNr.js +0 -1
- package/dist/assets/PortfolioDetails-5xc1wonC-DS3ORnSc.js +0 -218
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as ae,
|
|
1
|
+
import{X as ae,V as Nn,u as mn,a as nt,hz as Te,c6 as tt,y as On,hA as ie,hB as xe,hC as fe,hD as be,hE as me,M as je,j as n,hv as ot,F as rt,aV as it,T as st,bR as at,bT as lt,bU as dt,bp as ct,Y as X,be as mt,bO as pt,ai as ut,dl as ht,bW as gt,C as w,d as wt,A as Ne,o as t,a6 as In,s as De,a5 as vt,p as c,v as Re,b$ as xt,l as Pn,dr as Tn,bf as Pe,az as zn,c2 as ft,bE as bt,d2 as $t,ao as Xe,aN as pn,g as B,ax as Dn,fg as St,dh as wn,cv as rn,hF as yt,hG as sn,m as jt,bw as Be,d1 as Rt,er as vn,b4 as Ct,dt as Vt,K as xn,hH as kt,cj as Mt,cr as Nt,cs as Ot,ew as It,f as Ln,hI as Pt,b2 as se,hJ as fn,gc as Tt,b0 as zt,aB as Dt,ds as Lt,q as An,Q as At,eD as _t,a8 as dn}from"./index-C2JVdK9x.js";import{b as f,n as o,j as cn}from"./vendor-CnQcJ2Lu.js";import{r as Ft}from"./mui-C5LQ0bMa.js";import{R as Bt}from"./Menu-Bsk58l8k-kRDchKev.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const _n=({steps:e})=>{const s=ae();return n.jsx(Ut,{windowSize:s,children:e.map((m,d)=>n.jsxs(Et,{children:[n.jsx(Gt,{children:d!==e.length-1?d+1:n.jsx(Ht,{})}),n.jsx(qt,{children:m}),d<e.length-1?n.jsx(Wt,{}):null]},`step_${d}`))})},Et=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
position: relative;
|
|
@@ -32,7 +32,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
32
32
|
`,Ht=o($t)`
|
|
33
33
|
width: ${t.sp3};
|
|
34
34
|
height: ${t.sp3};
|
|
35
|
-
`,M=je.getLocalizedStrings(),Qt=()=>n.jsx(
|
|
35
|
+
`,M=je.getLocalizedStrings(),Qt=()=>n.jsx(_n,{steps:[Kt(),Yt(),Xt(),Jt(),Zt()]}),Kt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step1;return n.jsxs(Ee,{children:[e.navigateTo,n.jsx(ye,{children:e.expenses}),e.andSelectThe,n.jsx(ye,{children:e.vendors}),e.tab]})},Yt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step2;return n.jsxs(Ee,{children:[e.lineText,n.jsxs(ye,{children:[n.jsx(Fn,{}),M.common.edit]}),e.andCopy,n.jsxs(eo,{children:[n.jsx(no,{}),n.jsx(bn,{children:e.company}),M.common.and,n.jsx(bn,{children:e.display}),M.common.texts.name.toLowerCase(),M.common.strings.space,n.jsx(to,{})]})]})},Xt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step3;return n.jsxs(Ee,{children:[e.goBackTo,n.jsx(ye,{children:M.common.headers.vendors}),e.lineText,n.jsxs(ye,{children:[n.jsx(Fn,{}),M.common.edit]})]})},Jt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step4;return n.jsx(Ee,{children:e.lineText})},Zt=()=>{const e=M.vendorReview.firstReview.popupMessages.mergeInQBOSteppedContent.step5;return n.jsxs(Ee,{children:[M.common.texts.select,M.common.strings.space,n.jsx(ye,{children:M.common.footer.save}),e.andThen,n.jsx(ye,{children:M.common.yes}),M.common.strings.space,M.common.to,M.common.texts.confirm.toLowerCase(),M.common.strings.dot]})},Ee=o(Xe)`
|
|
36
36
|
color: ${e=>e.theme.colors.hero};
|
|
37
37
|
`,eo=o.div`
|
|
38
38
|
display: flex;
|
|
@@ -56,7 +56,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
56
56
|
&:hover {
|
|
57
57
|
color: ${e=>e.theme.colors.primary};
|
|
58
58
|
}
|
|
59
|
-
`,ye=o(
|
|
59
|
+
`,ye=o(Xe)`
|
|
60
60
|
color: ${e=>e.theme.colors.primary};
|
|
61
61
|
border-radius: ${t.sp1};
|
|
62
62
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
@@ -68,7 +68,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
68
68
|
color: ${e=>e.theme.colors.primary};
|
|
69
69
|
margin-left: ${t.sp1};
|
|
70
70
|
margin-right: ${t.sp1};
|
|
71
|
-
`,
|
|
71
|
+
`,J=je.getLocalizedStrings(),oo=()=>n.jsx(_n,{steps:[ro(),io(),so(),ao(),lo(),co(),mo(),po(),uo(),ho()]}),ro=()=>{const e=J.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step1;return n.jsxs(Z,{children:[e.goTo,n.jsx(z,{children:e.lists}),e.then,n.jsx(z,{children:e.relationships}),e.then2,n.jsx(z,{children:e.vendors})]})},io=()=>{const e=J.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step2;return n.jsxs(Z,{children:[e.click,n.jsxs(z,{children:[n.jsx(go,{}),e.edit]}),e.next,n.jsx(z,{children:e.vendor}),e.sourceInfo]})},so=()=>{const e=J.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step3;return n.jsxs(Z,{children:[e.onThe,n.jsx(z,{children:e.vendor}),e.page,n.jsx(z,{children:e.actions}),e.click,n.jsx(z,{children:e.merge})]})},ao=()=>{const e=J.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step4;return n.jsxs(Z,{children:[e.onThe,n.jsx(z,{children:e.mergeVendor}),e.endText]})},lo=()=>{const e=J.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step5;return n.jsx(Z,{children:e.text})},co=()=>{const e=J.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step6;return n.jsxs(Z,{children:[e.click,n.jsx(z,{children:e.merge}),e.text,n.jsx(z,{children:e.ok})]})},mo=()=>{const e=J.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step7;return n.jsxs(Z,{children:[e.onThe,n.jsx(z,{children:e.duplicateResolution}),e.text]})},po=()=>{const e=J.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step8;return n.jsxs(Z,{children:[e.click,n.jsx(z,{children:e.refresh}),e.processText,n.jsx(z,{children:e.cancel}),e.haltText]})},uo=()=>{const e=J.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step9;return n.jsxs(Z,{children:[e.the,n.jsx(z,{children:e.status}),e.text]})},ho=()=>{const e=J.vendorReview.firstReview.popupMessages.mergeInNetSuiteSteppedContent.step10;return n.jsxs(Z,{children:[e.text,n.jsx(wo,{})]})},Z=o(Xe)`
|
|
72
72
|
color: ${e=>e.theme.colors.hero};
|
|
73
73
|
`,go=o(pn)`
|
|
74
74
|
width: ${t.sp3};
|
|
@@ -81,7 +81,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
81
81
|
vertical-align: middle;
|
|
82
82
|
margin-right: ${t.sp2};
|
|
83
83
|
color: ${B.success};
|
|
84
|
-
`,z=o(
|
|
84
|
+
`,z=o(Xe)`
|
|
85
85
|
color: ${e=>e.theme.colors.primary};
|
|
86
86
|
border-radius: ${t.sp1};
|
|
87
87
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
@@ -89,7 +89,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
89
89
|
padding: ${t.sp1} ${t.sp2};
|
|
90
90
|
align-items: center;
|
|
91
91
|
justify-content: center;
|
|
92
|
-
`,F={containerPaddingLeft:new w(c[3],c[4]),containerPaddingRight:new w(c[3],c[4]),containerPaddingTop:new w(c[2],c[3]),containerPaddingBottom:new w(c[2],c[3]),containerMarginLeft:new w(c[4],c[8]),vendorsContainerWidth:new w(25,25),recommendedContainerWidth:new w(20,20),retainedContainerWidth:new w(25,25),statusContainerWidth:new w(10,10),invoiceContainerWidth:new w(5,5),logoToValueGap:new w(c[2],c[2]),webkitLineClamp:new w(2,2,1,1,1)},
|
|
92
|
+
`,F={containerPaddingLeft:new w(c[3],c[4]),containerPaddingRight:new w(c[3],c[4]),containerPaddingTop:new w(c[2],c[3]),containerPaddingBottom:new w(c[2],c[3]),containerMarginLeft:new w(c[4],c[8]),vendorsContainerWidth:new w(25,25),recommendedContainerWidth:new w(20,20),retainedContainerWidth:new w(25,25),statusContainerWidth:new w(10,10),invoiceContainerWidth:new w(5,5),logoToValueGap:new w(c[2],c[2]),webkitLineClamp:new w(2,2,1,1,1)},vo=()=>{const e=ae();return n.jsx(xo,{windowSize:e,children:n.jsx(fo,{children:n.jsxs(bo,{children:[n.jsxs(_e,{windowSize:e,width:F.vendorsContainerWidth,gap:F.logoToValueGap,children:[n.jsx(Tn,{width:c[6],height:c[6]}),n.jsx(Fe,{windowSize:e,children:n.jsx(Pe,{width:120,height:c[4]})})]}),n.jsx(_e,{windowSize:e,width:F.invoiceContainerWidth,children:n.jsx(Fe,{windowSize:e,children:n.jsx(Pe,{width:120,height:c[4]})})}),n.jsx(_e,{windowSize:e,width:F.recommendedContainerWidth,children:n.jsx(Fe,{windowSize:e,children:n.jsx(Pe,{width:120,height:c[4]})})}),n.jsx(_e,{windowSize:e,width:F.retainedContainerWidth,children:n.jsx(Fe,{windowSize:e,children:n.jsx(Pe,{width:120,height:c[4]})})}),n.jsx(_e,{windowSize:e,width:F.statusContainerWidth,children:n.jsx(Fe,{windowSize:e,children:n.jsx(Pe,{width:120,height:c[4]})})})]})})})},xo=o.div`
|
|
93
93
|
display: flex;
|
|
94
94
|
margin-bottom: ${t.sp3};
|
|
95
95
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -121,7 +121,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
121
121
|
display: flex;
|
|
122
122
|
width: 100%;
|
|
123
123
|
align-items: center;
|
|
124
|
-
`,
|
|
124
|
+
`,_e=o.div`
|
|
125
125
|
display: flex;
|
|
126
126
|
align-items: center;
|
|
127
127
|
gap: ${e=>e.gap?.valuePx(e.windowSize)};
|
|
@@ -141,7 +141,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
141
141
|
max-width: ${e=>e.windowSize==="small"?"200px":"initial"};
|
|
142
142
|
display: "inline-block";
|
|
143
143
|
margin-right: ${t.sp4};
|
|
144
|
-
`,$o=88,So=156,Bn=58,yo=45,un=je.getLocalizedStrings(),
|
|
144
|
+
`,$o=88,So=156,Bn=58,yo=45,un=je.getLocalizedStrings(),Je=un.vendors.reviewVendorList.header,En={key:"vendor",value:Je.vendors,sortOrder:"ascending",width:25},Un={key:"updateTo",value:Je.updateTo,sortOrder:"ascending",width:27},jo={key:"retain",value:Je.retain,sortOrder:"ascending",width:20},Wn={key:"status",value:Je.status,sortOrder:"ascending",width:10},Ro={key:"action",value:un.common.strings.empty,sortOrder:"ascending",width:15},Co={key:"viewTenantInvoice",value:un.common.strings.empty,sortOrder:"ascending",width:c[1]},Vo=[En,Co,Un,jo,Wn,Ro],$n=[En.key,Un.key,Wn.key],an={sortKey:"ytd",sortOrder:"descending"},Oe={headerLastColumnTopPadding:new w(c[0],c[4]),headerLastColumnRightPadding:new w(c[3],c[11]),headerLastColumnBottomPadding:new w(c[0],c[4]),headerLastColumnLeftPadding:new w(c[3],c[11]),headerHeight:new w(yo,Bn)},Gn=({sortConfig:e,disableClick:s=!1,onColumnSortConfigChanged:m})=>{const d=ae(),[r,V]=f.useState(Vo);f.useEffect(()=>{const g=[...r];for(const k of g)k.key===e.sortKey?k.sortOrder=e.sortOrder:k.sortOrder="ascending";V(g)},[e.sortKey,e.sortOrder]);const S=(g,k)=>{let D=k;e.sortKey===g&&(D=k==="ascending"?"descending":"ascending"),m(g,D)},R=g=>{s===!1&&g.key!=null&&$n.includes(g.key)&&S(Pn.toVendorFirstReviewViewColumnKeyType(g.key),g.sortOrder)};return n.jsx(ko,{windowSize:d,children:r.map(g=>n.jsxs(Mo,{sortDataValue:e.sortKey,actualDataValue:g.key,wrapperWidth:g.width,isClickDisabled:s,windowSize:d,children:[n.jsx(Po,{onClick:()=>R(g),isClickDisabled:s,isSortingDisabled:g.key==="retain","data-testid":X("vendor-first-review-page-header-name-wrapper"),children:n.jsxs(n.Fragment,{children:[g.key==="updateTo"?n.jsx(To,{children:n.jsx(zo,{})}):null,n.jsx(Re,{children:g.value}),$n.includes(g.key)?n.jsx(Oo,{sortConfig:e,headerdata:g,children:n.jsx(xt,{width:12,height:12})}):null]})}),n.jsx(Io,{isClickDisabled:s,sortDataValue:e.sortKey,isVisible:e.sortKey===g.key&&g.key!==an.sortKey,children:n.jsx(No,{onClick:()=>{s===!1&&S(an.sortKey,an.sortOrder)},"data-testid":X("vendor-first-review-page-header-sort-cancel-icon")})})]},g.key))})},ko=o.div`
|
|
145
145
|
top: ${t.sp0};
|
|
146
146
|
left: ${t.sp0};
|
|
147
147
|
min-height: ${e=>Oe.headerHeight.valuePx(e.windowSize)};
|
|
@@ -199,19 +199,19 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
199
199
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
200
200
|
width: ${t.sp3};
|
|
201
201
|
height: ${t.sp3};
|
|
202
|
-
`,Do=({sortConfig:e,onColumnSortConfigChanged:s})=>{const m=ae();return n.jsxs(Lo,{windowSize:m,children:[n.jsx(Gn,{sortConfig:e,disableClick:!0,onColumnSortConfigChanged:s}),n.jsx(
|
|
202
|
+
`,Do=({sortConfig:e,onColumnSortConfigChanged:s})=>{const m=ae();return n.jsxs(Lo,{windowSize:m,children:[n.jsx(Gn,{sortConfig:e,disableClick:!0,onColumnSortConfigChanged:s}),n.jsx(Ao,{windowSize:m,children:[...Array(7)].map((d,r)=>n.jsx(vo,{},r))})]})},Lo=o.div`
|
|
203
203
|
display: flex;
|
|
204
204
|
min-height: 100%;
|
|
205
205
|
flex-direction: column;
|
|
206
206
|
width: 100%;
|
|
207
|
-
`,
|
|
207
|
+
`,Ao=o.div`
|
|
208
208
|
display: flex;
|
|
209
209
|
min-height: 100%;
|
|
210
210
|
flex-direction: column;
|
|
211
|
-
`,pe={autocompleteEmptyPaddingTop:new w(0,c[1]),autocompleteEmptyPaddingBottom:new w(0,c[1]),loadingStateOptionTopMargin:new w(9.5,9.5),loadingStateOptionBottomMargin:new w(9.5,9.5),loadingStateOptionLeftMargin:new w(16,16),loadingStateOptionRightMargin:new w(19,19),loadingStateOptionRowGap:new w(19,19),loadingStateRowGap:new w(10,10)},
|
|
211
|
+
`,pe={autocompleteEmptyPaddingTop:new w(0,c[1]),autocompleteEmptyPaddingBottom:new w(0,c[1]),loadingStateOptionTopMargin:new w(9.5,9.5),loadingStateOptionBottomMargin:new w(9.5,9.5),loadingStateOptionLeftMargin:new w(16,16),loadingStateOptionRightMargin:new w(19,19),loadingStateOptionRowGap:new w(19,19),loadingStateRowGap:new w(10,10)},_o={selectFieldInput:new At("smallRegular","standardRegular")},Fo=({name:e,registerOptions:s,menuIsOpen:m,defaultValue:d,isDisabled:r,style:V,placeholder:S,customStyleConfig:R,showDownChevronWithValue:g,isOptionRemovable:k=!0,autoFocus:D=!1,getRenameOptionText:le,onClickRenameOption:ee,onMenuClose:b,valueToInfo:q,valueToId:ne,loadOptions:L})=>{const{control:Ue,formState:{errors:Ce}}=Mt(),Ve=mn(),[ue,A]=f.useState(null),W=Nt(Ce,e),Le=f.useCallback(u=>({value:u.value,label:u.label,info:q?.(u.value)??"",id:ne?.(u.value)??null,isDisabled:u.isDisabled,isOptionRecommended:u.isOptionRecommended}),[q,ne]),te=u=>u.map(y=>({label:y.label,options:y.options.map(G=>Le(G))})),C=u=>{if(u==null||!u)return;let y=[];return d.defaultOptions.forEach(G=>{y=y.concat(G.options)}),{value:u,label:y.find(G=>G.value===u)?.label??u,info:q?.(u)??""}},ke=u=>{A(u)},H={...R,container:u=>({...u,width:"100%",...V}),valueContainer:(u,y)=>({...u,justifyContent:y.selectProps.menuIsOpen===!1?"flex-end":"flex-start",...R?.valueContainer?.(u,y)}),menu:u=>({...u,backgroundColor:Ve.colors.grey5,borderRadius:t.sp1,boxShadow:`${t.sp0} 2px ${t.sp2} ${Ve.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:0}),menuList:u=>({...u,borderRadius:t.sp1})},P={hasError:W,showDownChevronWithValue:g,customFirstGroup:ue,updateCustomFirstGroup:ke,getRenameOptionText:le,onClickRenameOption:ee},N=je.getLocalizedStrings().autoComplete,E=ae(),v=u=>u.inputValue.trim().length<2?null:n.jsxs(xr,{windowSize:E,children:[n.jsx(fr,{}),n.jsx(br,{children:N.input.noMatches})]}),de=(u,y)=>{L(u,y)},he=f.useRef(On((u,y)=>de(u,y),500,{trailing:!0})).current,Q=(u,y)=>{if(u.trim().length<2)return y([]);he(u,y)};return n.jsx(Ot,{name:e,control:Ue,defaultValue:d,rules:s,render:({field:{onChange:u,onBlur:y,value:G,ref:ge}})=>{const K=G;return n.jsx(It,{...P,menuIsOpen:m,autoFocus:D,ref:ge,cacheOptions:!1,isMulti:!1,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:S,noOptionsMessage:v,value:C(K.selectedOption),defaultOptions:te(K.defaultOptions),loadOptions:Q,onChange:ce=>{ce==null||ce.value!=null&&K?.selectedOption===ce.value?k===!0&&u({selectedOption:void 0,defaultOptions:K.defaultOptions}):u({selectedOption:ce.value,defaultOptions:K.defaultOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,onMenuClose:b,classNamePrefix:"auto-complete-grouped-single-select-field",onBlur:y,menuPlacement:"auto",maxMenuHeight:288,menuShouldScrollIntoView:!0,closeMenuOnSelect:!0,components:{Control:Bo,Option:Ko,Input:Uo,Group:Go,GroupHeading:qo,SingleValue:Ho,ValueContainer:Eo,MenuList:Wo,LoadingIndicator:jr,DropdownIndicator:$r,IndicatorSeparator:Sr,Placeholder:Qo,ClearIndicator:yr},hideSelectedOptions:!1,styles:H,isDisabled:r!=null})}})},Bo=e=>{const{menuIsOpen:s,isFocused:m,isDisabled:d,selectProps:r,options:V}=e,{value:S,hasError:R}=r;let g=[];V.forEach(D=>{g=g.concat(D.options)});const k=ae();return n.jsx(er,{windowSize:k,menuIsOpen:s,isFocused:m,isDisabled:d,selectedValue:S,hasError:R,children:n.jsx(se.Control,{...e,className:"select-control",children:e.children})})},Eo=e=>{const{selectProps:s,children:m}=e,{showDownChevronWithValue:d}=s;return n.jsxs(se.ValueContainer,{...e,className:"select-value-container",children:[m,d===!0?n.jsx(De,{children:n.jsx(nr,{})}):null]})},Uo=e=>{const{selectProps:s}=e,{placeholder:m,value:d}=s;return n.jsx(se.Input,{...e,autoComplete:"off",placeholder:d==null?m:void 0,children:e.children})},Wo=e=>{const{children:s,selectProps:m}=e,{customFirstGroup:d,updateCustomFirstGroup:r,getRenameOptionText:V,onClickRenameOption:S}=m,R=ae(),g=V?.(e.selectProps.inputValue);return f.useEffect(()=>{d==null&&r(s[0])},[d,r,s]),n.jsx(n.Fragment,{children:e.isLoading===!0?n.jsxs(se.MenuList,{...e,children:[d,n.jsx(cr,{windowSize:R,children:[...Array(2)].map((k,D)=>n.jsxs(mr,{windowSize:R,children:[n.jsx(Tn,{width:c[4],height:c[4]}),n.jsx(Pe,{width:218,height:c[4]})]},D))})]}):n.jsxs(se.MenuList,{...e,children:[s,g!=null&&g.length>0?n.jsxs(pr,{onClick:()=>{S?.(e.selectProps.inputValue)},children:[n.jsx(hr,{children:n.jsx(ur,{})}),n.jsx(gr,{children:g})]}):null]})})},Go=e=>n.jsx(se.Group,{...e,children:e.children}),qo=e=>{const[s,m]=f.useState(!0);return n.jsx(ar,{className:"group-heading-container",isGroupOpen:s,onClick:()=>m(!s),children:n.jsxs(se.GroupHeading,{...e,children:[n.jsx(lr,{isGroupOpen:s,children:n.jsx(dr,{className:"close-tick-icon"})}),e.children]})})},Ho=({children:e,...s},m)=>{const d=m==null||s.selectProps.menuIsOpen===!0?e:m.sticky===!0?n.jsx(Yo,{title:m.text,children:e}):n.jsx(Be,{style:{padding:t.sp3},title:m.text,placement:"top",children:e});return n.jsx(se.SingleValue,{...s,children:d})},Qo=()=>null,Ko=e=>{const{data:s,isSelected:m,isDisabled:d,isFocused:r}=e;return n.jsx(tr,{className:"select-option-wrapper",isFocused:r,isSelected:m,isDisabled:d,isOptionRecommended:s.isOptionRecommended===!0,showBottomBorder:s.info==null||s.isOptionRecommended===!1,children:n.jsx(se.Option,{...e,className:"select-option",children:n.jsxs(or,{isOptionRecommended:s.isOptionRecommended,children:[s.isOptionRecommended===!0?n.jsx(wr,{children:n.jsx(vr,{})}):null,n.jsxs(sr,{isSelected:m,isOptionRecommended:s.isOptionRecommended,children:[n.jsx(rr,{isSelected:m,isDisabled:d,children:s.label}),s.isOptionRecommended===!0&&s.info!=null?n.jsx(ir,{isSelected:m,isDisabled:d,children:s.info}):null]})]})})})},Yo=({children:e,title:s})=>n.jsxs(Xo,{children:[n.jsxs(Jo,{children:[s,n.jsx(Zo,{})]}),e]}),Xo=o.div`
|
|
212
212
|
position: relative;
|
|
213
213
|
display: none;
|
|
214
|
-
`,
|
|
214
|
+
`,Jo=o.div`
|
|
215
215
|
position: absolute;
|
|
216
216
|
background: ${dn.primary};
|
|
217
217
|
color: ${dn.grey5};
|
|
@@ -262,14 +262,14 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
262
262
|
.auto-complete-grouped-single-select-field__single-value {
|
|
263
263
|
display: flex;
|
|
264
264
|
color: ${e=>e.hasError?B.important:e.theme.colors.primary};
|
|
265
|
-
${e=>`${
|
|
265
|
+
${e=>`${_o.selectFieldInput.style(e.windowSize)}`};
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
.auto-complete-grouped-single-select-field__input-container {
|
|
269
269
|
display: flex;
|
|
270
270
|
width: ${e=>e.menuIsOpen===!1&&e.selectedValue!=null?t.sp0:"100%"};
|
|
271
271
|
position: ${e=>e.isFocused===!1&&e.selectedValue==null?"initial":"absolute"};
|
|
272
|
-
${
|
|
272
|
+
${An.standardRegular.css};
|
|
273
273
|
color: ${e=>e.theme.colors.primary};
|
|
274
274
|
margin: ${t.sp0};
|
|
275
275
|
cursor: inherit;
|
|
@@ -304,7 +304,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
304
304
|
background-color: ${e=>e.isDisabled?e.theme.colors.grey5:e.theme.colors.background};
|
|
305
305
|
}
|
|
306
306
|
.select-option {
|
|
307
|
-
${
|
|
307
|
+
${An.smallRegular.css};
|
|
308
308
|
height: ${e=>e.isOptionRecommended===!0?t.sp8:"auto"};
|
|
309
309
|
padding: 9px ${t.sp3};
|
|
310
310
|
color: ${e=>e.isSelected||e.isOptionRecommended?e.theme.colors.primary:e.theme.colors.hero};
|
|
@@ -418,11 +418,11 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
418
418
|
`,wr=o.div`
|
|
419
419
|
margin-right: ${t.sp2};
|
|
420
420
|
margin-bottom: 12px;
|
|
421
|
-
`,
|
|
421
|
+
`,vr=o(zn)`
|
|
422
422
|
color: ${e=>e.theme.colors.primary};
|
|
423
423
|
width: ${t.sp3};
|
|
424
424
|
height: ${t.sp3};
|
|
425
|
-
`,
|
|
425
|
+
`,xr=o.div`
|
|
426
426
|
display: flex;
|
|
427
427
|
flex-direction: row;
|
|
428
428
|
align-items: center;
|
|
@@ -430,7 +430,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
430
430
|
padding-right: ${t.sp3};
|
|
431
431
|
padding-bottom: ${e=>pe.autocompleteEmptyPaddingBottom.valuePx(e.windowSize)};
|
|
432
432
|
padding-left: ${t.sp0};
|
|
433
|
-
`,fr=o(
|
|
433
|
+
`,fr=o(_t)`
|
|
434
434
|
width: ${t.sp4};
|
|
435
435
|
height: ${t.sp4};
|
|
436
436
|
margin: ${t.sp3} ${t.sp3} ${t.sp3} ${t.sp0};
|
|
@@ -440,7 +440,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
440
440
|
overflow-wrap: break-word;
|
|
441
441
|
white-space: normal;
|
|
442
442
|
word-break: break-all;
|
|
443
|
-
`,$r=()=>null,Sr=()=>null,yr=()=>null,jr=()=>null,hn=(e,s,m,d,r)=>{const V=je.getLocalizedStrings().vendorReview.firstReview,S=[];return m.length>0&&S.push({label:V.vendorDropdown.recommendedVendor,options:[]}),m.forEach(R=>{S[0].options.push({label:R.globalMerchantName,value:R.globalMerchantId??R.globalMerchantName,isVisible:!0,isDisabled:s,info:R.reason,isOptionRecommended:!0})}),S.length&&S[0].options.length===0&&S.pop(),S.push({label:V.vendorDropdown.allVendors,options:e.map(R=>({label:R.globalMerchantName,value:R.globalMerchantId,isVisible:!0}))}),d!=null&&S[S.length-1].options.push({label:d.name,value:d.id,isVisible:!1,isDisabled:s}),r!=null&&S[S.length-1].options.push({label:r.name,value:r.id,isVisible:!1}),S},T={containerPaddingLeft:new w(c[3],c[4]),containerPaddingRight:new w(c[3],c[4]),containerPaddingTop:new w(c[2],c[3]),containerPaddingBottom:new w(c[2],c[3]),containerMarginLeft:new w(c[4],c[8]),nameLogoWidth:new w(c[6],c[6]),nameLogoHeight:new w(c[6],c[6]),logoToValueGap:new w(c[2],c[2]),logoHeightAndWidth:new w(c[3],c[4]),webkitLineClamp:new w(2,2,1,1,1)},{common:U,vendorReview:{firstReview:Se}}=je.getLocalizedStrings(),Rr=({analytics:e,authParams:s,attachmentEndpoint:m,sectionId:d,rowData:r,searchAutoComplete:V,setCurrentVendorInAction:S,onClickRenameOption:R,onVendorNameClick:g,onClickSave:k,onClickCancel:D,onClearGlobalMerchantAutoCompleteResults:le})=>{const ee=mn(),b=ae(),q=Nn(),[ne,L]=f.useState(!1),[Ue,Ce]=f.useState(0),[Ve,ue]=f.useState(!1),{globalMerchantAutoCompleteView:_}=V.autoCompleteData,W=r.currentSelection!=null,[Le,te]=f.useState(!1),{transactionAttachments:C}=r,[ke,H]=f.useState([]),[P,N]=f.useState(null),[E,x]=f.useState(0),[de,he]=f.useState(0),[Q,u]=f.useState(0),y=a=>{u(a),te(!0),we(C[a]),N(ke[a])};function G(a){x(a.targetTouches[0].clientX)}function ge(a){he(a.targetTouches[0].clientX)}function K(a){return a<0?C.length+a:a%C.length}function ce(){E-de>50&&de!==0&&Q<C.length-1?(y(K(Q+1)),x(0),he(0)):E-de<-50&&de!==0&&Q>0&&(y(K(Q-1)),x(0),he(0))}const[_e,we]=f.useState(C[0]),Ze=()=>{te(!1),N(null),H([]),C.length>0&&we(C[0])},en=()=>{H([]),Ce(a=>{const $=a<C.length-1?a+1:0;return qe(r.vendorId,$),$})},nn=()=>{H([]),Ce(a=>{const $=a>0?a-1:C.length-1;return qe(r.vendorId,$),$})},We=C.length===0,Ge=C.map(a=>a.id),qe=(a,$)=>{te(!0);async function A(Qe){return await fn(m,s,Qe)}const oe=[Ge[$]];A({vendorId:a,attachmentIds:oe}).then(Qe=>{H(Qe),we(C[$]),C.length>0&&N(Qe[0])})},tn=a=>{te(!0);async function $(A){return await fn(m,s,A)}$({vendorId:a,attachmentIds:Ge}).then(A=>{H(A),C.length>0&&N(A[0])})},He=f.useMemo(()=>r.currentSelection==="customMerchant"&&r.selectedVendor.id!=null&&r.selectedVendor.name!=null?{id:r.selectedVendor.id,name:r.selectedVendor.name}:void 0,[r]),xe=r.status.code==="under_review"||r.saveStatus.fetchState==="In-Progress",O=r.status.code==="merge_in_qbo"||r.status.code==="merge_in_netsuite",Me=O||xe,i=a=>{let $=a.websiteUrl?.toString();if($){if($.includes("http")||($="https://".concat($)),r.currentVendor!=null){const A=a?.globalMerchantName??null;e.trackVendorReviewWebsiteOpened({reviewSource:"tenant_review",vendorName:r.currentVendor.name,wasRecommendationAvailable:!!A,recommendedVendorName:A,recommendedVendorReason:a.reason??null,vendorWebsite:$})}window.open($,"_blank")}},h=r.currentVendor!=null?{label:{label:r.currentVendor?.name,style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:sn(d,ie,"retain"),defaultChecked:r.currentSelection==="retain"},tooltipProps:{text:r.currentVendor?.name},isDisabled:Me}:void 0,v=f.useCallback(a=>a.logo!=null?n.jsxs(Dr,{children:[n.jsx(wn,{photoUrl:a.logo.toString(),styles:{width:T.logoHeightAndWidth.valuePx(b),height:T.logoHeightAndWidth.valuePx(b)},placeholder:{width:T.logoHeightAndWidth.value(b),height:T.logoHeightAndWidth.value(b)},fallbackAvatar:n.jsx(ln,{children:n.jsx(rn,{name:a.globalMerchantName,size:T.logoHeightAndWidth.valuePx(b)})})}),n.jsx($e,{windowSize:b,isLastItem:!1,children:n.jsx(kn,{children:a.globalMerchantName})})]}):n.jsx($e,{windowSize:b,isLastItem:!1,children:n.jsx(kn,{children:a.globalMerchantName})}),[b]),l=r.recommendations.map((a,$)=>{const A=v(a),oe=`recommended${yt($)}`;return{label:{label:A,style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:sn(d,ie,oe),defaultChecked:r.currentSelection===oe},tooltipProps:{text:a.websiteUrl?.toString().length?n.jsx(Cr,{recommendation:a,onRedirectionToRecommendedMerchantWebsiteUrl:()=>i(a)}):a.globalMerchantName,maxWidth:"360px"},isDisabled:Me,fieldName:oe}}),p=f.useMemo(()=>({defaultOptions:hn(_.globalMerchants,O,r.recommendations,r.currentVendor,He),selectedOption:r.selectedVendor.id}),[_,r,He,O]),j=()=>{L(!1),le()},Y=a=>{const $=r.currentVendor?.name,A=[..._.globalMerchants.map(oe=>oe.globalMerchantName),...r.recommendations.map(oe=>oe.globalMerchantName)];return r.currentVendor==null||A.includes(a)||$===a?null:a.trim().length>0?Se.vendorDropdown.fromOldName.replace("__old_name__",$??"")+" "+Se.vendorDropdown.toNewName.replace("__new_name__",a??""):null},on=a=>{a.stopPropagation(),k(r.vendorId)},Hn=a=>{a.stopPropagation(),D(d)},Qn=a=>{a.stopPropagation(),L(!0)},Kn=()=>{r.selectedVendor.id!=null&&r.vendorQboId!=null&&g(r.vendorId,r.vendorQboId)},Yn=a=>{r.selectedVendor.id!=null&&R(r.selectedVendor.id,a),L(!1)},Jn=(a,$)=>{S(r.vendorId),V.loadOptions(a,$)},Xn=a=>r.recommendations.find($=>$.globalMerchantId===a||$.globalMerchantName===a)?.reason??"",Zn=()=>{k(r.vendorId,!0)},et=()=>{k(r.vendorId,!1,!0)};return n.jsxs(kr,{windowSize:b,isDisabled:xe,isRowActive:W,children:[n.jsx(Ie,{windowSize:b,width:25,isDisabled:xe,gap:T.logoToValueGap,children:n.jsx(n.Fragment,{children:ne===!0?n.jsx(jt,{onClickAway:j,children:n.jsx(Pr,{windowSize:b,children:n.jsx(Fo,{name:sn(d,me),placeholder:U.strings.empty,defaultValue:p,autoFocus:!0,customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start",margin:`${t.sp0} ${t.sp3}`}),singleValue:()=>({display:"flex",alignItems:"center",color:ee.colors.hero,"&:hover":{color:ee.colors.primary}})},style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:"20px",cursor:"inherit",alignItems:"center"},valueToInfo:Xn,menuIsOpen:ne,getRenameOptionText:Y,onMenuClose:j,loadOptions:Jn,isOptionRemovable:!1,onClickRenameOption:Yn})})}):n.jsxs(n.Fragment,{children:[r.selectedVendor?.logo!=null&&r.selectedVendor.name!=null?n.jsx(wn,{photoUrl:r.selectedVendor.logo.toString(),styles:{width:T.nameLogoWidth.valuePx(b),height:T.nameLogoHeight.valuePx(b)},fallbackAvatar:n.jsx(ln,{children:n.jsx(rn,{name:r.selectedVendor.name,size:t.sp6})})}):r.selectedVendor.name!=null?n.jsx(ln,{children:n.jsx(rn,{name:r.selectedVendor.name,size:t.sp6})}):null,n.jsx(Nr,{onClick:Kn,"data-testid":J("vendor-first-review-row-vendor-name-text"),children:n.jsxs(Or,{children:[r.selectedVendor.name?n.jsx(Be,{enterDelay:600,display:"block",placement:"bottom",title:r.selectedVendor.name,children:n.jsx(jn,{children:r.selectedVendor.name})}):n.jsx(jn,{children:U.strings.hyphen}),n.jsx(Be,{display:"block",placement:"bottom",title:U.tooltips.editName,enterDelay:600,children:n.jsx(Ir,{onClick:Qn,"data-testid":J("vendor-first-review-row-edit-icon")})})]})})]})})}),n.jsx(Ie,{windowSize:b,width:c[1],isDisabled:!1,children:C.length>0?n.jsx($e,{windowSize:b,className:"vendor-first-review-row-item",children:n.jsx(Lr,{isDisabled:We,onClick:()=>We===!1?tn(r.vendorId):null,"data-testid":J("vendor-first-review-row-attachment-tag-box"),children:n.jsx(Be,{display:"block",placement:"top",title:Se.viewRecipts,enterDelay:600,children:n.jsx(_r,{children:n.jsx(Rt,{width:t.sp3,height:t.sp3})})})})}):n.jsx($e,{className:"vendor-first-review-row-item",windowSize:b,children:U.strings.hyphen})}),n.jsx(Ie,{windowSize:b,width:25,isDisabled:Me,gap:T.logoToValueGap,children:l.map((a,$)=>n.jsxs(n.Fragment,{children:[n.jsx($e,{windowSize:b,className:"vendor-first-review-row-item",children:n.jsx(xn,{isHighlighted:!0,defaultChecked:r.currentSelection===a.fieldName,label:a.label,checkBoxField:a.checkBoxField,isDisabled:a.isDisabled,tooltipProps:a.tooltipProps})}),$<l.length-1?n.jsxs(Vn,{children:[" ",U.texts.or]}):null]}))}),n.jsx(Ie,{windowSize:b,width:20,isDisabled:Me,children:r.currentVendor!=null&&h!=null?n.jsx($e,{windowSize:b,className:"vendor-first-review-row-item",children:n.jsx(xn,{defaultChecked:r.currentSelection==="retain",label:h.label,checkBoxField:h.checkBoxField,isDisabled:h.isDisabled,tooltipProps:h.tooltipProps,backgroundDefaultColor:ee.colors.grey5})}):null}),n.jsx(Ie,{windowSize:b,"data-currentVendorName":r.currentVendor?.name,"data-mergeVendorName":r.mergeVendorName,"data-testid":J("vendor-first-review-row-status-tag"),width:W?10:25,isDisabled:xe,children:n.jsxs($e,{windowSize:b,className:"vendor-first-review-row-item",children:[n.jsxs(Vn,{children:[n.jsx(Mr,{isDisabled:!1,clickable:!1,statusMergeInQBO:O,children:n.jsx(Sn,{children:r.status.name})}),O&&r.currentVendor!=null&&r.mergeVendorName!=null?n.jsx(Be,{title:n.jsx(Vr,{vendorName:r.currentVendor.name,mergeVendorName:r.mergeVendorName,statusCode:r.status}),maxWidth:"312px",children:n.jsx(Ct,{width:t.sp3,height:t.sp3})}):null]}),r.lastUpdatedVendorNameByUser!=null&&O?n.jsx(Sn,{children:`${U.by} ${Vt(r.lastUpdatedVendorNameByUser)}`}):null]})}),n.jsxs(Ie,{windowSize:b,width:W?15:0,isDisabled:xe,className:"vendor-first-review-action-items",children:[n.jsx(vn,{variant:"light_transparent",label:U.footer.cancel,onClick:Hn,size:"small",style:{height:"100%"},disabled:!W}),n.jsx(yn,{space:t.sp0}),n.jsx(vn,{variant:"primary",loading:r.saveStatus.fetchState==="In-Progress",label:U.texts.confirm,onClick:on,size:"small",style:{height:"100%"},disabled:!W}),n.jsx(yn,{space:t.sp0}),n.jsx(Tr,{children:r.currentSelection==null?n.jsx(Bt,{menuItems:n.jsxs(zr,{children:[n.jsxs(Rn,{onClick:()=>{ue(!1),Zn()},"data-testid":J("vendor-first-review-row-mark-as-employee-menu-item"),children:[n.jsx(Cn,{}),Se.rowMoreActions.markAsEmployee]}),n.jsxs(Rn,{onClick:()=>{ue(!1),et()},"data-testid":J("vendor-first-review-row-mark-as-contractor-menu-item"),children:[n.jsx(Cn,{}),Se.rowMoreActions.markAsLocalContractor]})]}),setIsMenuOpen:ue,isMenuOpen:Ve}):null})]}),Le&&C.length>0?Ft.createPortal(n.jsx(kt,{allFiles:ke,fileSource:P,file:_e,title:_e.fileName,attachments:C,showNavigation:q.connectionName==="netsuite",setFileSource:N,setShowFullScreenView:te,onCrossClick:Ze,onNextClick:en,onPreviousClick:nn,setSelectedFileAttachment:we,handleTouchStart:G,handleTouchMove:ge,handleTouchEnd:ce}),document.body):null]})},Cr=({recommendation:e,onRedirectionToRecommendedMerchantWebsiteUrl:s})=>n.jsxs(qn,{setMaxHeight:!0,children:[n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.name}),n.jsx(Ye,{children:e.globalMerchantName})]}),n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.websiteURL}),n.jsx(Ye,{className:"websiteUrlTooltipText",onClick:s,"data-testid":J("vendor-first-review-row-website-url-tooltip-content"),children:e.websiteUrl?.toString()})]})]}),Vr=({vendorName:e,mergeVendorName:s,statusCode:m})=>n.jsxs(qn,{setMaxHeight:!1,children:[m.code==="merge_in_qbo"?n.jsx(ze,{children:Se.tooltip.mergeInQBOText}):null,m.code==="merge_in_netsuite"?n.jsx(ze,{children:Se.tooltip.mergeInNetSuiteText}):null,n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.vendor}),n.jsx(Ye,{children:e})]}),n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.mergedTo}),n.jsx(Ye,{children:s})]})]}),kr=o.div`
|
|
443
|
+
`,$r=()=>null,Sr=()=>null,yr=()=>null,jr=()=>null,hn=(e,s,m,d,r)=>{const V=je.getLocalizedStrings().vendorReview.firstReview,S=[];return m.length>0&&S.push({label:V.vendorDropdown.recommendedVendor,options:[]}),m.forEach(R=>{S[0].options.push({label:R.globalMerchantName,value:R.globalMerchantId??R.globalMerchantName,isVisible:!0,isDisabled:s,info:R.reason,isOptionRecommended:!0})}),S.length&&S[0].options.length===0&&S.pop(),S.push({label:V.vendorDropdown.allVendors,options:e.map(R=>({label:R.globalMerchantName,value:R.globalMerchantId,isVisible:!0}))}),d!=null&&S[S.length-1].options.push({label:d.name,value:d.id,isVisible:!1,isDisabled:s}),r!=null&&S[S.length-1].options.push({label:r.name,value:r.id,isVisible:!1}),S},T={containerPaddingLeft:new w(c[3],c[4]),containerPaddingRight:new w(c[3],c[4]),containerPaddingTop:new w(c[2],c[3]),containerPaddingBottom:new w(c[2],c[3]),containerMarginLeft:new w(c[4],c[8]),nameLogoWidth:new w(c[6],c[6]),nameLogoHeight:new w(c[6],c[6]),logoToValueGap:new w(c[2],c[2]),logoHeightAndWidth:new w(c[3],c[4]),webkitLineClamp:new w(2,2,1,1,1)},{common:U,vendorReview:{firstReview:Se}}=je.getLocalizedStrings(),Rr=({analytics:e,authParams:s,attachmentEndpoint:m,sectionId:d,rowData:r,searchAutoComplete:V,setCurrentVendorInAction:S,onClickRenameOption:R,onVendorNameClick:g,onClickSave:k,onClickCancel:D,onClearGlobalMerchantAutoCompleteResults:le})=>{const ee=mn(),b=ae(),q=Nn(),[ne,L]=f.useState(!1),[Ue,Ce]=f.useState(0),[Ve,ue]=f.useState(!1),{globalMerchantAutoCompleteView:A}=V.autoCompleteData,W=r.currentSelection!=null,[Le,te]=f.useState(!1),{transactionAttachments:C}=r,[ke,H]=f.useState([]),[P,N]=f.useState(null),[E,v]=f.useState(0),[de,he]=f.useState(0),[Q,u]=f.useState(0),y=a=>{u(a),te(!0),we(C[a]),N(ke[a])};function G(a){v(a.targetTouches[0].clientX)}function ge(a){he(a.targetTouches[0].clientX)}function K(a){return a<0?C.length+a:a%C.length}function ce(){E-de>50&&de!==0&&Q<C.length-1?(y(K(Q+1)),v(0),he(0)):E-de<-50&&de!==0&&Q>0&&(y(K(Q-1)),v(0),he(0))}const[Ae,we]=f.useState(C[0]),Ze=()=>{te(!1),N(null),H([]),C.length>0&&we(C[0])},en=()=>{H([]),Ce(a=>{const $=a<C.length-1?a+1:0;return qe(r.vendorId,$),$})},nn=()=>{H([]),Ce(a=>{const $=a>0?a-1:C.length-1;return qe(r.vendorId,$),$})},We=C.length===0,Ge=C.map(a=>a.id),qe=(a,$)=>{te(!0);async function _(Qe){return await fn(m,s,Qe)}const oe=[Ge[$]];_({vendorId:a,attachmentIds:oe}).then(Qe=>{H(Qe),we(C[$]),C.length>0&&N(Qe[0])})},tn=a=>{te(!0);async function $(_){return await fn(m,s,_)}$({vendorId:a,attachmentIds:Ge}).then(_=>{H(_),C.length>0&&N(_[0])})},He=f.useMemo(()=>r.currentSelection==="customMerchant"&&r.selectedVendor.id!=null&&r.selectedVendor.name!=null?{id:r.selectedVendor.id,name:r.selectedVendor.name}:void 0,[r]),ve=r.status.code==="under_review"||r.saveStatus.fetchState==="In-Progress",O=r.status.code==="merge_in_qbo"||r.status.code==="merge_in_netsuite",Me=O||ve,i=a=>{let $=a.websiteUrl?.toString();if($){if($.includes("http")||($="https://".concat($)),r.currentVendor!=null){const _=a?.globalMerchantName??null;e.trackVendorReviewWebsiteOpened({reviewSource:"tenant_review",vendorName:r.currentVendor.name,wasRecommendationAvailable:!!_,recommendedVendorName:_,recommendedVendorReason:a.reason??null,vendorWebsite:$})}window.open($,"_blank")}},h=r.currentVendor!=null?{label:{label:r.currentVendor?.name,style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:sn(d,ie,"retain"),defaultChecked:r.currentSelection==="retain"},tooltipProps:{text:r.currentVendor?.name},isDisabled:Me}:void 0,x=f.useCallback(a=>a.logo!=null?n.jsxs(Dr,{children:[n.jsx(wn,{photoUrl:a.logo.toString(),styles:{width:T.logoHeightAndWidth.valuePx(b),height:T.logoHeightAndWidth.valuePx(b)},placeholder:{width:T.logoHeightAndWidth.value(b),height:T.logoHeightAndWidth.value(b)},fallbackAvatar:n.jsx(ln,{children:n.jsx(rn,{name:a.globalMerchantName,size:T.logoHeightAndWidth.valuePx(b)})})}),n.jsx($e,{windowSize:b,isLastItem:!1,children:n.jsx(kn,{children:a.globalMerchantName})})]}):n.jsx($e,{windowSize:b,isLastItem:!1,children:n.jsx(kn,{children:a.globalMerchantName})}),[b]),l=r.recommendations.map((a,$)=>{const _=x(a),oe=`recommended${yt($)}`;return{label:{label:_,style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:sn(d,ie,oe),defaultChecked:r.currentSelection===oe},tooltipProps:{text:a.websiteUrl?.toString().length?n.jsx(Cr,{recommendation:a,onRedirectionToRecommendedMerchantWebsiteUrl:()=>i(a)}):a.globalMerchantName,maxWidth:"360px"},isDisabled:Me,fieldName:oe}}),p=f.useMemo(()=>({defaultOptions:hn(A.globalMerchants,O,r.recommendations,r.currentVendor,He),selectedOption:r.selectedVendor.id}),[A,r,He,O]),j=()=>{L(!1),le()},Y=a=>{const $=r.currentVendor?.name,_=[...A.globalMerchants.map(oe=>oe.globalMerchantName),...r.recommendations.map(oe=>oe.globalMerchantName)];return r.currentVendor==null||_.includes(a)||$===a?null:a.trim().length>0?Se.vendorDropdown.fromOldName.replace("__old_name__",$??"")+" "+Se.vendorDropdown.toNewName.replace("__new_name__",a??""):null},on=a=>{a.stopPropagation(),k(r.vendorId)},Hn=a=>{a.stopPropagation(),D(d)},Qn=a=>{a.stopPropagation(),L(!0)},Kn=()=>{r.selectedVendor.id!=null&&r.vendorQboId!=null&&g(r.vendorId,r.vendorQboId)},Yn=a=>{r.selectedVendor.id!=null&&R(r.selectedVendor.id,a),L(!1)},Xn=(a,$)=>{S(r.vendorId),V.loadOptions(a,$)},Jn=a=>r.recommendations.find($=>$.globalMerchantId===a||$.globalMerchantName===a)?.reason??"",Zn=()=>{k(r.vendorId,!0)},et=()=>{k(r.vendorId,!1,!0)};return n.jsxs(kr,{windowSize:b,isDisabled:ve,isRowActive:W,children:[n.jsx(Ie,{windowSize:b,width:25,isDisabled:ve,gap:T.logoToValueGap,children:n.jsx(n.Fragment,{children:ne===!0?n.jsx(jt,{onClickAway:j,children:n.jsx(Pr,{windowSize:b,children:n.jsx(Fo,{name:sn(d,me),placeholder:U.strings.empty,defaultValue:p,autoFocus:!0,customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start",margin:`${t.sp0} ${t.sp3}`}),singleValue:()=>({display:"flex",alignItems:"center",color:ee.colors.hero,"&:hover":{color:ee.colors.primary}})},style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:"20px",cursor:"inherit",alignItems:"center"},valueToInfo:Jn,menuIsOpen:ne,getRenameOptionText:Y,onMenuClose:j,loadOptions:Xn,isOptionRemovable:!1,onClickRenameOption:Yn})})}):n.jsxs(n.Fragment,{children:[r.selectedVendor?.logo!=null&&r.selectedVendor.name!=null?n.jsx(wn,{photoUrl:r.selectedVendor.logo.toString(),styles:{width:T.nameLogoWidth.valuePx(b),height:T.nameLogoHeight.valuePx(b)},fallbackAvatar:n.jsx(ln,{children:n.jsx(rn,{name:r.selectedVendor.name,size:t.sp6})})}):r.selectedVendor.name!=null?n.jsx(ln,{children:n.jsx(rn,{name:r.selectedVendor.name,size:t.sp6})}):null,n.jsx(Nr,{onClick:Kn,"data-testid":X("vendor-first-review-row-vendor-name-text"),children:n.jsxs(Or,{children:[r.selectedVendor.name?n.jsx(Be,{enterDelay:600,display:"block",placement:"bottom",title:r.selectedVendor.name,children:n.jsx(jn,{children:r.selectedVendor.name})}):n.jsx(jn,{children:U.strings.hyphen}),n.jsx(Be,{display:"block",placement:"bottom",title:U.tooltips.editName,enterDelay:600,children:n.jsx(Ir,{onClick:Qn,"data-testid":X("vendor-first-review-row-edit-icon")})})]})})]})})}),n.jsx(Ie,{windowSize:b,width:c[1],isDisabled:!1,children:C.length>0?n.jsx($e,{windowSize:b,className:"vendor-first-review-row-item",children:n.jsx(Lr,{isDisabled:We,onClick:()=>We===!1?tn(r.vendorId):null,"data-testid":X("vendor-first-review-row-attachment-tag-box"),children:n.jsx(Be,{display:"block",placement:"top",title:Se.viewRecipts,enterDelay:600,children:n.jsx(Ar,{children:n.jsx(Rt,{width:t.sp3,height:t.sp3})})})})}):n.jsx($e,{className:"vendor-first-review-row-item",windowSize:b,children:U.strings.hyphen})}),n.jsx(Ie,{windowSize:b,width:25,isDisabled:Me,gap:T.logoToValueGap,children:l.map((a,$)=>n.jsxs(n.Fragment,{children:[n.jsx($e,{windowSize:b,className:"vendor-first-review-row-item",children:n.jsx(vn,{isHighlighted:!0,defaultChecked:r.currentSelection===a.fieldName,label:a.label,checkBoxField:a.checkBoxField,isDisabled:a.isDisabled,tooltipProps:a.tooltipProps})}),$<l.length-1?n.jsxs(Vn,{children:[" ",U.texts.or]}):null]}))}),n.jsx(Ie,{windowSize:b,width:20,isDisabled:Me,children:r.currentVendor!=null&&h!=null?n.jsx($e,{windowSize:b,className:"vendor-first-review-row-item",children:n.jsx(vn,{defaultChecked:r.currentSelection==="retain",label:h.label,checkBoxField:h.checkBoxField,isDisabled:h.isDisabled,tooltipProps:h.tooltipProps,backgroundDefaultColor:ee.colors.grey5})}):null}),n.jsx(Ie,{windowSize:b,"data-currentVendorName":r.currentVendor?.name,"data-mergeVendorName":r.mergeVendorName,"data-testid":X("vendor-first-review-row-status-tag"),width:W?10:25,isDisabled:ve,children:n.jsxs($e,{windowSize:b,className:"vendor-first-review-row-item",children:[n.jsxs(Vn,{children:[n.jsx(Mr,{isDisabled:!1,clickable:!1,statusMergeInQBO:O,children:n.jsx(Sn,{children:r.status.name})}),O&&r.currentVendor!=null&&r.mergeVendorName!=null?n.jsx(Be,{title:n.jsx(Vr,{vendorName:r.currentVendor.name,mergeVendorName:r.mergeVendorName,statusCode:r.status}),maxWidth:"312px",children:n.jsx(Ct,{width:t.sp3,height:t.sp3})}):null]}),r.lastUpdatedVendorNameByUser!=null&&O?n.jsx(Sn,{children:`${U.by} ${Vt(r.lastUpdatedVendorNameByUser)}`}):null]})}),n.jsxs(Ie,{windowSize:b,width:W?15:0,isDisabled:ve,className:"vendor-first-review-action-items",children:[n.jsx(xn,{variant:"light_transparent",label:U.footer.cancel,onClick:Hn,size:"small",style:{height:"100%"},disabled:!W}),n.jsx(yn,{space:t.sp0}),n.jsx(xn,{variant:"primary",loading:r.saveStatus.fetchState==="In-Progress",label:U.texts.confirm,onClick:on,size:"small",style:{height:"100%"},disabled:!W}),n.jsx(yn,{space:t.sp0}),n.jsx(Tr,{children:r.currentSelection==null?n.jsx(Bt,{menuItems:n.jsxs(zr,{children:[n.jsxs(Rn,{onClick:()=>{ue(!1),Zn()},"data-testid":X("vendor-first-review-row-mark-as-employee-menu-item"),children:[n.jsx(Cn,{}),Se.rowMoreActions.markAsEmployee]}),n.jsxs(Rn,{onClick:()=>{ue(!1),et()},"data-testid":X("vendor-first-review-row-mark-as-contractor-menu-item"),children:[n.jsx(Cn,{}),Se.rowMoreActions.markAsLocalContractor]})]}),setIsMenuOpen:ue,isMenuOpen:Ve}):null})]}),Le&&C.length>0?Ft.createPortal(n.jsx(kt,{allFiles:ke,fileSource:P,file:Ae,title:Ae.fileName,attachments:C,showNavigation:q.connectionName==="netsuite",setFileSource:N,setShowFullScreenView:te,onCrossClick:Ze,onNextClick:en,onPreviousClick:nn,setSelectedFileAttachment:we,handleTouchStart:G,handleTouchMove:ge,handleTouchEnd:ce}),document.body):null]})},Cr=({recommendation:e,onRedirectionToRecommendedMerchantWebsiteUrl:s})=>n.jsxs(qn,{setMaxHeight:!0,children:[n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.name}),n.jsx(Ye,{children:e.globalMerchantName})]}),n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.websiteURL}),n.jsx(Ye,{className:"websiteUrlTooltipText",onClick:s,"data-testid":X("vendor-first-review-row-website-url-tooltip-content"),children:e.websiteUrl?.toString()})]})]}),Vr=({vendorName:e,mergeVendorName:s,statusCode:m})=>n.jsxs(qn,{setMaxHeight:!1,children:[m.code==="merge_in_qbo"?n.jsx(ze,{children:Se.tooltip.mergeInQBOText}):null,m.code==="merge_in_netsuite"?n.jsx(ze,{children:Se.tooltip.mergeInNetSuiteText}):null,n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.vendor}),n.jsx(Ye,{children:e})]}),n.jsxs(Ke,{children:[n.jsx(ze,{children:U.labels.mergedTo}),n.jsx(Ye,{children:s})]})]}),kr=o.div`
|
|
444
444
|
display: flex;
|
|
445
445
|
margin-bottom: ${t.sp3};
|
|
446
446
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -638,12 +638,12 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
638
638
|
color: ${e=>e.isDisabled?e.theme.colors.hero:e.theme.colors.primary};
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
`,
|
|
641
|
+
`,Ar=o.div`
|
|
642
642
|
width: ${t.sp3};
|
|
643
643
|
height: ${t.sp3};
|
|
644
644
|
display: flex;
|
|
645
645
|
align-items: center;
|
|
646
|
-
`,
|
|
646
|
+
`,_r=cn`
|
|
647
647
|
flex-grow: 1;
|
|
648
648
|
word-break: break-word;
|
|
649
649
|
white-space: nowrap;
|
|
@@ -654,8 +654,8 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
654
654
|
width: 100%;
|
|
655
655
|
max-width: 100%;
|
|
656
656
|
`,kn=o.div`
|
|
657
|
-
${
|
|
658
|
-
`,Fr=e=>n.jsx(Rr,{...e}),gn={listContainerMarginTop:new w(c[3],c[3]),itemHeight:new w(So,$o),vendorListWrapperContainerMarginTop:new w(c[4],0)},{common:re,vendorReview:{firstReview:I}}=je.getLocalizedStrings(),hi=({vendorFirstReviewView:e,globalMerchantAutoCompleteData:s,analytics:m,authParams:d,attachmentEndpoint:r,onBackClick:V,onVendorNameClick:S,onGlobalMerchantAutoCompleteInputChange:R,onUpdateLocalData:g,onFetchVendorReviewView:k,onUpdateScrollYOffset:D,onUpdatePageToken:le,onUpdateSortUiState:ee,onClickSave:b,updateVendorDetailLocalData:q,onReloadList:ne,onClickCancelPopup:L,onClickRedirectToQBO:Ue,onClearGlobalMerchantAutoCompleteResults:Ce,onResetVendorLocalData:Ve,onClickMenuIcon:ue})=>{const _=ae(),W=Nn(),Le=mn(),[te,C]=f.useState(!1),[ke,H]=f.useState(null),{uiState:P,fetchState:N,vendorReviewView:E,recentlySavedErroredVendorView:x}=e,[de,he]=f.useState(P.searchText),Q=f.useRef(null),u=f.useRef(),y=nt({mode:"all",reValidateMode:"onChange",defaultValues:Mn(E,s.globalMerchantAutoCompleteView),values:Mn(E,s.globalMerchantAutoCompleteView),resetOptions:{keepDirtyValues:!0}});f.useEffect(()=>{if(s.globalMerchantAutoCompleteView.fetchState==="Completed"){const i=e.vendorReviewView.find(v=>v.vendorId===ke);let h;i!=null&&(h=i?.recommendations),u.current?.(hn(s.globalMerchantAutoCompleteView.globalMerchants,i?.status.code==="merge_in_qbo",h??[])),H(null)}},[s.globalMerchantAutoCompleteView.fetchState]),f.useEffect(()=>{Q.current?.resetAfterIndex(0)},[_,Q]),f.useEffect(()=>{N==="Completed"&&C(!1)},[N]),f.useEffect(()=>{const i=y.watch((h,{name:v,type:l})=>{v!=null&&h[Te]!=null&&tt(()=>Ze(v,h,l))});return()=>{i.unsubscribe()}}),f.useEffect(()=>{N==="Completed"&&m.trackVendorReviewPage("tenant_review",P.totalCount)},[N]);const G=i=>gn.itemHeight.value(_),ge=(i,h,v)=>{k(v??null,i,h)},K=i=>{le(null),ge(i,!1,null)},ce=(i,h)=>{u.current=h,R(i,"vendor")},_e=f.useRef(On(i=>K(i),500,{trailing:!0})).current,we=(i,h)=>{ee(h,i),le(null),ge(P.searchText,!1,null)},Ze=(i,h,v)=>{if(i.includes(Te)){const l=parseInt(i.split(".")[1]),p=Object.assign(h[Te][l]);let j=p[ie];if(p[ve]!=null){let Y;if(i.includes(`${ie}.${fe}`)&&(p[fe]?.globalMerchantId!=null||p[fe]?.globalMerchantName!=null)?(j={retain:!1,recommendedFirst:p[ie].recommendedFirst,recommendedSecond:!1,rename:!1,customMerchant:!1},Y=p[fe].globalMerchantId??p[fe].globalMerchantName):i.includes(`${ie}.${be}`)&&(p[be]?.globalMerchantId!=null||p[be]?.globalMerchantName!=null)?(j={retain:!1,recommendedFirst:!1,recommendedSecond:p[ie].recommendedSecond,rename:!1,customMerchant:!1},Y=p[be].globalMerchantId??p[be].globalMerchantName):i.includes(`${ie}.retain`)&&p[ve]!=null&&(j={retain:p[ie].retain,recommendedFirst:!1,recommendedSecond:!1,rename:!1,customMerchant:!1},Y=p[ve]),i.includes(me)&&(Y=p[me].selectedOption,p[me].selectedOption===p[fe]?.globalMerchantId||p[me].selectedOption===p[fe]?.globalMerchantName?j={retain:!1,recommendedFirst:!0,recommendedSecond:!1,rename:!1,customMerchant:!0}:p[me].selectedOption===p[be]?.globalMerchantId||p[me].selectedOption===p[be]?.globalMerchantName?j={retain:!1,recommendedFirst:!1,recommendedSecond:!0,rename:!1,customMerchant:!0}:p[me].selectedOption===p[ve]?j={retain:!0,recommendedFirst:!1,recommendedSecond:!1,rename:!1,customMerchant:!0}:j={retain:!1,recommendedFirst:!1,recommendedSecond:!1,rename:!1,customMerchant:!0}),v==null){Ve(p[ve]);return}g(p[ve],j,Y??p[ve])}}},en=()=>{C(!0),ge(P.searchText,!0,P.pageToken)},nn=i=>i<E.length,We=()=>{P.pageToken!=null&&N==="Completed"&&en()},Ge=(i,h)=>{const v=e.vendorReviewView.find(l=>l.vendorId===i);v!=null&&g(v.vendorId,{retain:!1,recommendedFirst:!1,recommendedSecond:!1,rename:!0,customMerchant:!1},v.vendorId,h)},qe=i=>{const h=parseInt(i.split(".")[1]),v=e.vendorReviewView[h];if(v?.currentVendor!=null){const l=v.recommendations[0]?.globalMerchantName??null;m.trackVendorReviewUpdateVendorCanceled({reviewSource:"tenant_review",vendorName:v.currentVendor.name,vendorReviewStatus:v.status.code??null,wasRecommendationAvailable:!!l,recommendedVendorName:l,recommendedVendorReason:v.recommendations[0]?.reason??null})}y.resetField(`${Te}.${h}`)},tn=y.handleSubmit(i=>{}),He=(i,h,v)=>{const l=e.vendorReviewView.find(p=>p.vendorId===i);if(l?.currentVendor!=null){const p=[];l.recommendations.forEach(j=>{j.globalMerchantId!=null&&p.push(j.globalMerchantId)}),(l?.currentSelection==="retain"||l?.currentSelection==="rename")&&l?.isWebsiteUrlSaved===!1&&q({id:i,name:l.currentVendor.name,qboId:l.vendorQboId??i,websiteUrl:Pn.toZeniUrlWithoutBaseURL(l.currentVendor.websiteUrl.toString())})}if(l?.currentSelection!=="retain"&&l?.currentSelection!=="rename"||l?.isWebsiteUrlSaved===!0){if(l?.currentVendor!=null){const p=l.selectedVendor.name,j=l.recommendations[0]?.globalMerchantName??null,Y=l.currentSelection,on=l.recommendations[0]?.globalMerchantId===l.selectedVendor.id||l.recommendations[0]?.globalMerchantName===p?l.recommendations[0]:void 0;m.trackVendorReviewSaveVendorRequested({reviewSource:"tenant_review",vendorName:l.currentVendor.name,vendorReviewStatus:l.status.code??null,saveRequestedVendorSource:Y,saveRequestedVendorName:p,saveRequestedVendorReason:on?.reason??null,isGlobalVendorRequested:l.currentSelection==="customMerchant",isVendorNameRecommendationSelected:j===p,isVendorNameChangedAndSelected:l.currentSelection==="rename",isVendorNameRetainSelected:Y==="retain",recommendedVendorName:j,wasRecommendationAvailable:!!j,recommendedVendorReason:l.recommendations[0]?.reason??null,isVendorNameMarkedAsEmployee:h??!1,isVendorNameMarkedAsLocalContractor:v??!1})}b(i,h,v)}},xe={onOkClick:()=>{if(W.connectionName==="netsuite")L();else if(x!=null){const i=e.vendorReviewView.find(h=>h.vendorId===x.vendorId);if(i?.currentVendor!=null){const h=i.selectedVendor.name,v=i.recommendations[0]?.globalMerchantId===i.selectedVendor.id||i.recommendations[0]?.globalMerchantName===h?i.recommendations[0]:void 0,l=i.currentSelection??(x.newRecommendedVendor!=null?"recommendedFirst":null),p=i.recommendations[0]?.globalMerchantName??null;if(x.oldRecommendedVendor!=null||x.newRecommendedVendor!=null){const j={vendorName:i.currentVendor.name,saveRequestedVendorName:h,saveRequestedVendorReason:v?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null};x.newRecommendedVendor!=null?(m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateContinue,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:x.newRecommendedVendor.globalMerchantName,updatedRecommendedVendorReason:x.newRecommendedVendor.reason??null}),b(x.vendorId)):m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateCancel,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:null,updatedRecommendedVendorReason:null}),L()}else m.trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantMergeInQBORedirect,vendorName:i.currentVendor.name,vendorReviewStatus:i.status.code??null,saveRequestedVendorSource:l,saveRequestedVendorName:h,saveRequestedVendorReason:v?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null}),Ue(),L()}}},onCancelClick:()=>{if(x!=null){const i=e.vendorReviewView.find(h=>h.vendorId===x.vendorId);if(i?.currentVendor!=null){const h=i.selectedVendor.name,v=i.recommendations[0]?.globalMerchantId===i.selectedVendor.id||i.recommendations[0]?.globalMerchantName===h?i.recommendations[0]:void 0,l=i.currentSelection,p=i.recommendations[0]?.globalMerchantName??null;if(x.oldRecommendedVendor!=null||x.newRecommendedVendor!=null){const j={vendorName:i.currentVendor.name,saveRequestedVendorName:h,saveRequestedVendorReason:v?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null};x.newRecommendedVendor!=null?m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateCancel,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:x.newRecommendedVendor.globalMerchantName,updatedRecommendedVendorReason:x.newRecommendedVendor.reason??null}):m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateCancel,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:null,updatedRecommendedVendorReason:null})}else m.trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantMergeInQBOCancel,vendorName:i.currentVendor.name,vendorReviewStatus:i.status.code??null,saveRequestedVendorSource:l,saveRequestedVendorName:h,saveRequestedVendorReason:v?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null})}L()}}},O=(()=>{if(x!=null)if(x.newRecommendedVendor!=null&&x.oldRecommendedVendor!=null){const i=I.popupMessages.zeniUpdatedRecommendationPopupTitle.replace("_vendor_name_",x.vendorName).replace("_old_recommendation_",x.oldRecommendedVendor.globalMerchantName).replace("_new_recommendation_",x.newRecommendedVendor.globalMerchantName);return{description:I.popupMessages.zeniUpdatedRecommendationPopupMsg,title:i,secondaryButtonText:re.cancel,primaryButtonText:re.continue}}else if(x.newRecommendedVendor!=null){const i=I.popupMessages.zeniNewRecommendationPopupTitle.replace("_vendor_name_",x.vendorName).replace("_new_recommendation_",x.newRecommendedVendor.globalMerchantName);return{description:I.popupMessages.zeniNewRecommendationPopupMsg,title:i,secondaryButtonText:re.cancel,primaryButtonText:re.continue}}else if(x.oldRecommendedVendor!=null){const i=I.popupMessages.zeniNewRecommendationNotAvailablePopupTitle.replace("_vendor_name_",x.vendorName);return{description:I.popupMessages.zeniNewRecommendationNotAvailablePopupMsg,title:i,primaryButtonText:re.gotIt}}else return W.connectionName==="netsuite"?{descriptionHeader:I.popupMessages.netsuiteLinkPopupMsgHeader,title:I.popupMessages.netsuiteLinkPopupTitle.replace("_vendor_name_",x.vendorName),subTitle:I.popupMessages.netsuiteLinkPopupSubTitle,description:I.popupMessages.netsuiteLinkPopupDescription,primaryButtonText:re.texts.close}:{descriptionHeader:I.popupMessages.qboLinkPopupMsgHeader,title:I.popupMessages.qboLinkPopupTitle.replace("_vendor_name_",x.vendorName),subTitle:I.popupMessages.qboLinkPopupSubTitle,secondaryButtonText:re.cancel,primaryButtonText:I.popupMessages.redirectToQBO}})(),Me=n.jsx(ot,{isSearchOpen:P.searchText.length>0,searchPlaceHolder:I.searchPlaceholder,searchText:de,onSearchTextChanged:i=>{he(i),i.trim().length>=2?_e(i):i.trim().length==0&&_e("")}});return n.jsx(Er,{windowSize:_,children:n.jsxs(rt,{...y,children:[n.jsx(it,{title:I.title,backgroundColor:Le.colors.grey4,onBackClick:V,rightSideComponent:Me,showMenuIcon:_==="medium-compact"||_==="small",onClickMenuIcon:ue,source:"VendorFirstReviewPage"}),n.jsx("form",{onSubmit:tn,children:n.jsxs(Ur,{windowSize:_,children:[n.jsx(st,{controller:!!x?.vendorId&&!!O,children:n.jsx(at,{titleComponent:n.jsx(dt,{children:n.jsxs(ei,{children:[n.jsx(ct,{children:O?.title}),O?.subTitle!=null?n.jsx(ni,{children:O.subTitle}):null]})}),descriptionComponent:n.jsxs(lt,{style:{textAlign:O?.description==null?"left":"unset"},children:[O?.descriptionHeader!=null?n.jsx(ti,{children:O.descriptionHeader}):null,O?.description!=null?n.jsx(oi,{children:O.description}):W.connectionName==="netsuite"?n.jsx(oo,{}):n.jsx(Qt,{})]}),primaryButtonText:O?.primaryButtonText??re.continue,secondaryButtonText:O?.secondaryButtonText,containerStyle:{maxWidth:"624px"},action:xe,primaryButtonWidth:148,secondaryButtonWidth:148})}),n.jsx(Wr,{windowSize:_,children:N==="Error"?n.jsxs(qr,{children:[n.jsx(Hr,{onClick:ne,"data-testid":J("vendor-first-review-page-reload-icon"),children:n.jsx(mt,{})}),n.jsx(Kr,{children:re.reloadPage.label})]}):N==="Completed"&&E.length===0?n.jsx(pt,{message:P.searchText?I.noMatchedDataText:I.noDataText}):N==="Not-Started"||N==="In-Progress"&&E.length===0?n.jsx(Do,{sortConfig:{sortKey:P.sortKey,sortOrder:P.sortOrder},onColumnSortConfigChanged:we,disableClick:!0}):n.jsx(Gr,{windowSize:_,children:n.jsx(ut,{children:({height:i,width:h})=>n.jsx(ht,{isItemLoaded:nn,itemCount:E.length+1,loadMoreItems:We,children:({onItemsRendered:v})=>n.jsxs(Zr,{style:{height:i,width:h},children:[n.jsx(Xr,{style:{width:"auto"},children:n.jsx(Gn,{sortConfig:{sortKey:P.sortKey,sortOrder:P.sortOrder},disableClick:N!=="Completed",onColumnSortConfigChanged:we})}),n.jsx(gt,{height:i-Bn,itemSize:G,width:h,ref:Q,overscanCount:1,itemCount:E.length,onItemsRendered:v,onScroll:({scrollOffset:l})=>{D(l)},initialScrollOffset:P.scrollYOffset,itemData:{vendorFirstReviewView:e,analytics:m,authParams:d,attachmentEndpoint:r,globalMerchantAutoCompleteView:s.globalMerchantAutoCompleteView,searchAutoComplete:{autoCompleteData:s,loadOptions:ce},setCurrentVendorInAction:H,onClickVendorName:S,onClickVendorRename:Ge,onClickCancel:qe,onClickSave:He,onClearGlobalMerchantAutoCompleteResults:Ce},children:Br})]})})})})}),te===!0?n.jsx(Jr,{children:n.jsx(wt,{size:"Small",start:!0})}):null]})})]})})},Br=({index:e,style:s,data:m})=>{const{analytics:d,authParams:r,attachmentEndpoint:V,vendorFirstReviewView:S,searchAutoComplete:R,setCurrentVendorInAction:g,onClickVendorName:k,onClickVendorRename:D,onClickCancel:le,onClickSave:ee,onClearGlobalMerchantAutoCompleteResults:b}=m,{vendorReviewView:q,fetchState:ne}=S,L=q[e];return e<q.length&&L.selectedVendor!=null?n.jsx(Yr,{style:{...s,width:"100%"},className:"vendor-list-item",children:n.jsx(Qr,{children:n.jsx(Fr,{fetchState:ne,analytics:d,authParams:r,attachmentEndpoint:V,sectionId:`${Te}.${e}`,vendorId:L.currentVendor?.id,rowData:L,setCurrentVendorInAction:g,searchAutoComplete:R,onVendorNameClick:k,onClickCancel:le,onClickSave:ee,onClickRenameOption:D,onClearGlobalMerchantAutoCompleteResults:b},e)},`sub-container-${e}`)}):null},Mn=(e,s)=>{const m=e.map(d=>{const r=d.currentSelection==="customMerchant"&&d.selectedVendor?.id!=null&&d.selectedVendor.name!=null?{id:d.selectedVendor.id,name:d.selectedVendor.name}:void 0,V=d.recommendations;return{selectedVendor:{defaultOptions:hn(s.globalMerchants,d.status.code==="merge_in_qbo",V,d.currentVendor,r),selectedOption:d.selectedVendor.id??d.vendorRenamedText},recommendedFirst:d.recommendations[0],recommendedSecond:d.recommendations[1],currentSelection:{retain:d.currentSelection==="retain",recommendedFirst:d.currentSelection==="recommendedFirst",recommendedSecond:d.currentSelection==="recommendedSecond",rename:d.currentSelection==="rename",customMerchant:d.currentSelection==="customMerchant"},retainVendorId:d.currentVendor?.id,status:d.status,lastUpdatedVendorNameByUser:d.lastUpdatedVendorNameByUser}});return{[Te]:m}},Er=o.div`
|
|
657
|
+
${_r};
|
|
658
|
+
`,Fr=e=>n.jsx(Rr,{...e}),gn={listContainerMarginTop:new w(c[3],c[3]),itemHeight:new w(So,$o),vendorListWrapperContainerMarginTop:new w(c[4],0)},{common:re,vendorReview:{firstReview:I}}=je.getLocalizedStrings(),hi=({vendorFirstReviewView:e,globalMerchantAutoCompleteData:s,analytics:m,authParams:d,attachmentEndpoint:r,onBackClick:V,onVendorNameClick:S,onGlobalMerchantAutoCompleteInputChange:R,onUpdateLocalData:g,onFetchVendorReviewView:k,onUpdateScrollYOffset:D,onUpdatePageToken:le,onUpdateSortUiState:ee,onClickSave:b,updateVendorDetailLocalData:q,onReloadList:ne,onClickCancelPopup:L,onClickRedirectToQBO:Ue,onClearGlobalMerchantAutoCompleteResults:Ce,onResetVendorLocalData:Ve,onClickMenuIcon:ue})=>{const A=ae(),W=Nn(),Le=mn(),[te,C]=f.useState(!1),[ke,H]=f.useState(null),{uiState:P,fetchState:N,vendorReviewView:E,recentlySavedErroredVendorView:v}=e,[de,he]=f.useState(P.searchText),Q=f.useRef(null),u=f.useRef(),y=nt({mode:"all",reValidateMode:"onChange",defaultValues:Mn(E,s.globalMerchantAutoCompleteView),values:Mn(E,s.globalMerchantAutoCompleteView),resetOptions:{keepDirtyValues:!0}});f.useEffect(()=>{if(s.globalMerchantAutoCompleteView.fetchState==="Completed"){const i=e.vendorReviewView.find(x=>x.vendorId===ke);let h;i!=null&&(h=i?.recommendations),u.current?.(hn(s.globalMerchantAutoCompleteView.globalMerchants,i?.status.code==="merge_in_qbo",h??[])),H(null)}},[s.globalMerchantAutoCompleteView.fetchState]),f.useEffect(()=>{Q.current?.resetAfterIndex(0)},[A,Q]),f.useEffect(()=>{N==="Completed"&&C(!1)},[N]),f.useEffect(()=>{const i=y.watch((h,{name:x,type:l})=>{x!=null&&h[Te]!=null&&tt(()=>Ze(x,h,l))});return()=>{i.unsubscribe()}}),f.useEffect(()=>{N==="Completed"&&m.trackVendorReviewPage("tenant_review",P.totalCount)},[N]);const G=i=>gn.itemHeight.value(A),ge=(i,h,x)=>{k(x??null,i,h)},K=i=>{le(null),ge(i,!1,null)},ce=(i,h)=>{u.current=h,R(i,"vendor")},Ae=f.useRef(On(i=>K(i),500,{trailing:!0})).current,we=(i,h)=>{ee(h,i),le(null),ge(P.searchText,!1,null)},Ze=(i,h,x)=>{if(i.includes(Te)){const l=parseInt(i.split(".")[1]),p=Object.assign(h[Te][l]);let j=p[ie];if(p[xe]!=null){let Y;if(i.includes(`${ie}.${fe}`)&&(p[fe]?.globalMerchantId!=null||p[fe]?.globalMerchantName!=null)?(j={retain:!1,recommendedFirst:p[ie].recommendedFirst,recommendedSecond:!1,rename:!1,customMerchant:!1},Y=p[fe].globalMerchantId??p[fe].globalMerchantName):i.includes(`${ie}.${be}`)&&(p[be]?.globalMerchantId!=null||p[be]?.globalMerchantName!=null)?(j={retain:!1,recommendedFirst:!1,recommendedSecond:p[ie].recommendedSecond,rename:!1,customMerchant:!1},Y=p[be].globalMerchantId??p[be].globalMerchantName):i.includes(`${ie}.retain`)&&p[xe]!=null&&(j={retain:p[ie].retain,recommendedFirst:!1,recommendedSecond:!1,rename:!1,customMerchant:!1},Y=p[xe]),i.includes(me)&&(Y=p[me].selectedOption,p[me].selectedOption===p[fe]?.globalMerchantId||p[me].selectedOption===p[fe]?.globalMerchantName?j={retain:!1,recommendedFirst:!0,recommendedSecond:!1,rename:!1,customMerchant:!0}:p[me].selectedOption===p[be]?.globalMerchantId||p[me].selectedOption===p[be]?.globalMerchantName?j={retain:!1,recommendedFirst:!1,recommendedSecond:!0,rename:!1,customMerchant:!0}:p[me].selectedOption===p[xe]?j={retain:!0,recommendedFirst:!1,recommendedSecond:!1,rename:!1,customMerchant:!0}:j={retain:!1,recommendedFirst:!1,recommendedSecond:!1,rename:!1,customMerchant:!0}),x==null){Ve(p[xe]);return}g(p[xe],j,Y??p[xe])}}},en=()=>{C(!0),ge(P.searchText,!0,P.pageToken)},nn=i=>i<E.length,We=()=>{P.pageToken!=null&&N==="Completed"&&en()},Ge=(i,h)=>{const x=e.vendorReviewView.find(l=>l.vendorId===i);x!=null&&g(x.vendorId,{retain:!1,recommendedFirst:!1,recommendedSecond:!1,rename:!0,customMerchant:!1},x.vendorId,h)},qe=i=>{const h=parseInt(i.split(".")[1]),x=e.vendorReviewView[h];if(x?.currentVendor!=null){const l=x.recommendations[0]?.globalMerchantName??null;m.trackVendorReviewUpdateVendorCanceled({reviewSource:"tenant_review",vendorName:x.currentVendor.name,vendorReviewStatus:x.status.code??null,wasRecommendationAvailable:!!l,recommendedVendorName:l,recommendedVendorReason:x.recommendations[0]?.reason??null})}y.resetField(`${Te}.${h}`)},tn=y.handleSubmit(i=>{}),He=(i,h,x)=>{const l=e.vendorReviewView.find(p=>p.vendorId===i);if(l?.currentVendor!=null){const p=[];l.recommendations.forEach(j=>{j.globalMerchantId!=null&&p.push(j.globalMerchantId)}),(l?.currentSelection==="retain"||l?.currentSelection==="rename")&&l?.isWebsiteUrlSaved===!1&&q({id:i,name:l.currentVendor.name,qboId:l.vendorQboId??i,websiteUrl:Pn.toZeniUrlWithoutBaseURL(l.currentVendor.websiteUrl.toString())})}if(l?.currentSelection!=="retain"&&l?.currentSelection!=="rename"||l?.isWebsiteUrlSaved===!0){if(l?.currentVendor!=null){const p=l.selectedVendor.name,j=l.recommendations[0]?.globalMerchantName??null,Y=l.currentSelection,on=l.recommendations[0]?.globalMerchantId===l.selectedVendor.id||l.recommendations[0]?.globalMerchantName===p?l.recommendations[0]:void 0;m.trackVendorReviewSaveVendorRequested({reviewSource:"tenant_review",vendorName:l.currentVendor.name,vendorReviewStatus:l.status.code??null,saveRequestedVendorSource:Y,saveRequestedVendorName:p,saveRequestedVendorReason:on?.reason??null,isGlobalVendorRequested:l.currentSelection==="customMerchant",isVendorNameRecommendationSelected:j===p,isVendorNameChangedAndSelected:l.currentSelection==="rename",isVendorNameRetainSelected:Y==="retain",recommendedVendorName:j,wasRecommendationAvailable:!!j,recommendedVendorReason:l.recommendations[0]?.reason??null,isVendorNameMarkedAsEmployee:h??!1,isVendorNameMarkedAsLocalContractor:x??!1})}b(i,h,x)}},ve={onOkClick:()=>{if(W.connectionName==="netsuite")L();else if(v!=null){const i=e.vendorReviewView.find(h=>h.vendorId===v.vendorId);if(i?.currentVendor!=null){const h=i.selectedVendor.name,x=i.recommendations[0]?.globalMerchantId===i.selectedVendor.id||i.recommendations[0]?.globalMerchantName===h?i.recommendations[0]:void 0,l=i.currentSelection??(v.newRecommendedVendor!=null?"recommendedFirst":null),p=i.recommendations[0]?.globalMerchantName??null;if(v.oldRecommendedVendor!=null||v.newRecommendedVendor!=null){const j={vendorName:i.currentVendor.name,saveRequestedVendorName:h,saveRequestedVendorReason:x?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null};v.newRecommendedVendor!=null?(m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateContinue,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:v.newRecommendedVendor.globalMerchantName,updatedRecommendedVendorReason:v.newRecommendedVendor.reason??null}),b(v.vendorId)):m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateCancel,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:null,updatedRecommendedVendorReason:null}),L()}else m.trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantMergeInQBORedirect,vendorName:i.currentVendor.name,vendorReviewStatus:i.status.code??null,saveRequestedVendorSource:l,saveRequestedVendorName:h,saveRequestedVendorReason:x?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null}),Ue(),L()}}},onCancelClick:()=>{if(v!=null){const i=e.vendorReviewView.find(h=>h.vendorId===v.vendorId);if(i?.currentVendor!=null){const h=i.selectedVendor.name,x=i.recommendations[0]?.globalMerchantId===i.selectedVendor.id||i.recommendations[0]?.globalMerchantName===h?i.recommendations[0]:void 0,l=i.currentSelection,p=i.recommendations[0]?.globalMerchantName??null;if(v.oldRecommendedVendor!=null||v.newRecommendedVendor!=null){const j={vendorName:i.currentVendor.name,saveRequestedVendorName:h,saveRequestedVendorReason:x?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null};v.newRecommendedVendor!=null?m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateCancel,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:v.newRecommendedVendor.globalMerchantName,updatedRecommendedVendorReason:v.newRecommendedVendor.reason??null}):m.trackVendorReviewRecommendationUpdateContinuedOrCanceled({...j,reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantRecommendationUpdateCancel,saveRequestedVendorSource:l,vendorReviewStatus:i.status.code??null,updatedRecommendedVendorName:null,updatedRecommendedVendorReason:null})}else m.trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:"tenant_review",event:Ne.Event.vendorReviewTenantMergeInQBOCancel,vendorName:i.currentVendor.name,vendorReviewStatus:i.status.code??null,saveRequestedVendorSource:l,saveRequestedVendorName:h,saveRequestedVendorReason:x?.reason??null,isVendorNameRecommendationSelected:l==="recommendedFirst"||l==="recommendedSecond",isVendorNameRetainSelected:l==="retain",isVendorNameChangedAndSelected:l==="rename",wasRecommendationAvailable:!!p,recommendedVendorName:p,recommendedVendorReason:i.recommendations[0]?.reason??null})}L()}}},O=(()=>{if(v!=null)if(v.newRecommendedVendor!=null&&v.oldRecommendedVendor!=null){const i=I.popupMessages.zeniUpdatedRecommendationPopupTitle.replace("_vendor_name_",v.vendorName).replace("_old_recommendation_",v.oldRecommendedVendor.globalMerchantName).replace("_new_recommendation_",v.newRecommendedVendor.globalMerchantName);return{description:I.popupMessages.zeniUpdatedRecommendationPopupMsg,title:i,secondaryButtonText:re.cancel,primaryButtonText:re.continue}}else if(v.newRecommendedVendor!=null){const i=I.popupMessages.zeniNewRecommendationPopupTitle.replace("_vendor_name_",v.vendorName).replace("_new_recommendation_",v.newRecommendedVendor.globalMerchantName);return{description:I.popupMessages.zeniNewRecommendationPopupMsg,title:i,secondaryButtonText:re.cancel,primaryButtonText:re.continue}}else if(v.oldRecommendedVendor!=null){const i=I.popupMessages.zeniNewRecommendationNotAvailablePopupTitle.replace("_vendor_name_",v.vendorName);return{description:I.popupMessages.zeniNewRecommendationNotAvailablePopupMsg,title:i,primaryButtonText:re.gotIt}}else return W.connectionName==="netsuite"?{descriptionHeader:I.popupMessages.netsuiteLinkPopupMsgHeader,title:I.popupMessages.netsuiteLinkPopupTitle.replace("_vendor_name_",v.vendorName),subTitle:I.popupMessages.netsuiteLinkPopupSubTitle,description:I.popupMessages.netsuiteLinkPopupDescription,primaryButtonText:re.texts.close}:{descriptionHeader:I.popupMessages.qboLinkPopupMsgHeader,title:I.popupMessages.qboLinkPopupTitle.replace("_vendor_name_",v.vendorName),subTitle:I.popupMessages.qboLinkPopupSubTitle,secondaryButtonText:re.cancel,primaryButtonText:I.popupMessages.redirectToQBO}})(),Me=n.jsx(ot,{isSearchOpen:P.searchText.length>0,searchPlaceHolder:I.searchPlaceholder,searchText:de,onSearchTextChanged:i=>{he(i),i.trim().length>=2?Ae(i):i.trim().length==0&&Ae("")}});return n.jsx(Er,{windowSize:A,children:n.jsxs(rt,{...y,children:[n.jsx(it,{title:I.title,backgroundColor:Le.colors.grey4,onBackClick:V,rightSideComponent:Me,showMenuIcon:A==="medium-compact"||A==="small",onClickMenuIcon:ue,source:"VendorFirstReviewPage"}),n.jsx("form",{onSubmit:tn,children:n.jsxs(Ur,{windowSize:A,children:[n.jsx(st,{controller:!!v?.vendorId&&!!O,children:n.jsx(at,{titleComponent:n.jsx(dt,{children:n.jsxs(ei,{children:[n.jsx(ct,{children:O?.title}),O?.subTitle!=null?n.jsx(ni,{children:O.subTitle}):null]})}),descriptionComponent:n.jsxs(lt,{style:{textAlign:O?.description==null?"left":"unset"},children:[O?.descriptionHeader!=null?n.jsx(ti,{children:O.descriptionHeader}):null,O?.description!=null?n.jsx(oi,{children:O.description}):W.connectionName==="netsuite"?n.jsx(oo,{}):n.jsx(Qt,{})]}),primaryButtonText:O?.primaryButtonText??re.continue,secondaryButtonText:O?.secondaryButtonText,containerStyle:{maxWidth:"624px"},action:ve,primaryButtonWidth:148,secondaryButtonWidth:148})}),n.jsx(Wr,{windowSize:A,children:N==="Error"?n.jsxs(qr,{children:[n.jsx(Hr,{onClick:ne,"data-testid":X("vendor-first-review-page-reload-icon"),children:n.jsx(mt,{})}),n.jsx(Kr,{children:re.reloadPage.label})]}):N==="Completed"&&E.length===0?n.jsx(pt,{message:P.searchText?I.noMatchedDataText:I.noDataText}):N==="Not-Started"||N==="In-Progress"&&E.length===0?n.jsx(Do,{sortConfig:{sortKey:P.sortKey,sortOrder:P.sortOrder},onColumnSortConfigChanged:we,disableClick:!0}):n.jsx(Gr,{windowSize:A,children:n.jsx(ut,{children:({height:i,width:h})=>n.jsx(ht,{isItemLoaded:nn,itemCount:E.length+1,loadMoreItems:We,children:({onItemsRendered:x})=>n.jsxs(Zr,{style:{height:i,width:h},children:[n.jsx(Jr,{style:{width:"auto"},children:n.jsx(Gn,{sortConfig:{sortKey:P.sortKey,sortOrder:P.sortOrder},disableClick:N!=="Completed",onColumnSortConfigChanged:we})}),n.jsx(gt,{height:i-Bn,itemSize:G,width:h,ref:Q,overscanCount:1,itemCount:E.length,onItemsRendered:x,onScroll:({scrollOffset:l})=>{D(l)},initialScrollOffset:P.scrollYOffset,itemData:{vendorFirstReviewView:e,analytics:m,authParams:d,attachmentEndpoint:r,globalMerchantAutoCompleteView:s.globalMerchantAutoCompleteView,searchAutoComplete:{autoCompleteData:s,loadOptions:ce},setCurrentVendorInAction:H,onClickVendorName:S,onClickVendorRename:Ge,onClickCancel:qe,onClickSave:He,onClearGlobalMerchantAutoCompleteResults:Ce},children:Br})]})})})})}),te===!0?n.jsx(Xr,{children:n.jsx(wt,{size:"Small",start:!0})}):null]})})]})})},Br=({index:e,style:s,data:m})=>{const{analytics:d,authParams:r,attachmentEndpoint:V,vendorFirstReviewView:S,searchAutoComplete:R,setCurrentVendorInAction:g,onClickVendorName:k,onClickVendorRename:D,onClickCancel:le,onClickSave:ee,onClearGlobalMerchantAutoCompleteResults:b}=m,{vendorReviewView:q,fetchState:ne}=S,L=q[e];return e<q.length&&L.selectedVendor!=null?n.jsx(Yr,{style:{...s,width:"100%"},className:"vendor-list-item",children:n.jsx(Qr,{children:n.jsx(Fr,{fetchState:ne,analytics:d,authParams:r,attachmentEndpoint:V,sectionId:`${Te}.${e}`,vendorId:L.currentVendor?.id,rowData:L,setCurrentVendorInAction:g,searchAutoComplete:R,onVendorNameClick:k,onClickCancel:le,onClickSave:ee,onClickRenameOption:D,onClearGlobalMerchantAutoCompleteResults:b},e)},`sub-container-${e}`)}):null},Mn=(e,s)=>{const m=e.map(d=>{const r=d.currentSelection==="customMerchant"&&d.selectedVendor?.id!=null&&d.selectedVendor.name!=null?{id:d.selectedVendor.id,name:d.selectedVendor.name}:void 0,V=d.recommendations;return{selectedVendor:{defaultOptions:hn(s.globalMerchants,d.status.code==="merge_in_qbo",V,d.currentVendor,r),selectedOption:d.selectedVendor.id??d.vendorRenamedText},recommendedFirst:d.recommendations[0],recommendedSecond:d.recommendations[1],currentSelection:{retain:d.currentSelection==="retain",recommendedFirst:d.currentSelection==="recommendedFirst",recommendedSecond:d.currentSelection==="recommendedSecond",rename:d.currentSelection==="rename",customMerchant:d.currentSelection==="customMerchant"},retainVendorId:d.currentVendor?.id,status:d.status,lastUpdatedVendorNameByUser:d.lastUpdatedVendorNameByUser}});return{[Te]:m}},Er=o.div`
|
|
659
659
|
display: flex;
|
|
660
660
|
min-height: 100%;
|
|
661
661
|
flex-direction: column;
|
|
@@ -699,7 +699,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
699
699
|
`,Qr=o.div`
|
|
700
700
|
display: flex;
|
|
701
701
|
flex-direction: column;
|
|
702
|
-
`,Kr=o(
|
|
702
|
+
`,Kr=o(vt)`
|
|
703
703
|
margin-top: ${t.sp3};
|
|
704
704
|
color: ${e=>e.theme.colors.hero};
|
|
705
705
|
`,Yr=o.div`
|
|
@@ -707,7 +707,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
707
707
|
left: ${t.sp0};
|
|
708
708
|
padding-bottom: ${t.sp3};
|
|
709
709
|
box-sizing: border-box;
|
|
710
|
-
`,
|
|
710
|
+
`,Xr=o.div`
|
|
711
711
|
display: flex;
|
|
712
712
|
width: 100%;
|
|
713
713
|
height: ${t.sp3};
|
|
@@ -716,7 +716,7 @@ import{X as ae,w as Nn,u as mn,a as nt,hw as Te,c3 as tt,z as On,hx as ie,hy as
|
|
|
716
716
|
align-items: center;
|
|
717
717
|
margin-top: ${t.sp3};
|
|
718
718
|
margin-bottom: ${t.sp3};
|
|
719
|
-
`,
|
|
719
|
+
`,Jr=o.div``,Zr=o.div`
|
|
720
720
|
position: relative;
|
|
721
721
|
`,ei=o.div`
|
|
722
722
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,X as
|
|
1
|
+
import{j as t,X as Q,a as he,M as N,c6 as ye,B as ge,l as Y,bR as be,bT as fe,bU as xe,F as ve,a3 as we,C as p,cz as le,cA as Ce,o as y,an as $e,cj as oe,u as ne,cB as je,cC as J,cp as G,ag as H,c9 as De,cD as Te,p as a,cr as Se,Y as ke,g as V,d as Fe,Q as Oe,bw as Ae,v as Le,b4 as ze}from"./index-C2JVdK9x.js";import{b as I,n as g}from"./vendor-CnQcJ2Lu.js";import{W as We,A as Re}from"./BankAccountWarningSection-Dp7qMaI2-DCN96rsg.js";import{T as Ie}from"./MailingDetailsSection-CdKFQB_8-K5G0AaPG.js";import{S as Pe}from"./CurrencySelectField-PwurThUn-qsqObS4L.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-DkhJs5ky-DLdSr7t1.js";const O={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 Ee({isDisabled:e,label:i,currencySelectField:l,style:f,errorInfoLabel:u,isAdditionalInfoLabelLoading:n=!1,showAdditionalLabelTooltip:o=!1,additionalLabelTooltip:w,additionalInfoLabel:D,showAdditionalInfoLabel:k=!0}){const C=Q(),{formState:{errors:b}}=oe(),$=ne(),j=Se(b,l.name),m=()=>{if(n===!0)return t.jsx(He,{children:t.jsx(Fe,{size:"Small",start:!0})});if(k&&D||j){let c=null;return o===!0&&k&&w&&(c=t.jsx(Ae,{placement:C==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Ve,{children:w}),children:t.jsx(Ue,{children:t.jsx(Ne,{})})})),t.jsxs(qe,{size:C,isError:j,hasToolTip:o,isDisabled:e!=null,children:[c,D]})}};return t.jsxs(_e,{size:C,style:f,isDisabled:e!=null,isError:j,"data-testid":ke("labeled-currency-field",l.name),children:[t.jsx(G,{isDisabled:e,label:i.label,htmlFor:l.name,style:{marginLeft:O.labelMarginLeft.value(C),marginRight:O.labelMarginRight.value(C),marginTop:O.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:O.controlHeight.value(C)}}),j?t.jsx(Be,{windowSize:C,hasError:j,children:u}):null,m()]})]})}const _e=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -47,13 +47,13 @@ import{j as t,X as G,a as he,M as U,c3 as ye,H as ge,l as Y,bO as be,bQ as fe,bR
|
|
|
47
47
|
background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.isError?V.importantLight:e.theme.colors.background};
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
`,
|
|
50
|
+
`,Be=g.label`
|
|
51
51
|
color: ${e=>e.hasError===!0?V.important:e.additionalInfoTextColor??e.theme.colors.grey1};
|
|
52
52
|
width: auto;
|
|
53
53
|
${e=>`${ae.infoLabel.style(e.windowSize)}`};
|
|
54
54
|
padding-right: ${y.sp3};
|
|
55
55
|
text-align: right;
|
|
56
|
-
`,
|
|
56
|
+
`,Me=g.div`
|
|
57
57
|
display: flex;
|
|
58
58
|
width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
|
|
59
59
|
justify-content: flex-end;
|
|
@@ -77,16 +77,16 @@ import{j as t,X as G,a as he,M as U,c3 as ye,H as ge,l as Y,bO as be,bQ as fe,bR
|
|
|
77
77
|
padding-right: ${y.sp3};
|
|
78
78
|
text-align: right;
|
|
79
79
|
margin-top: ${e=>e.hasToolTip===!0?y.sp1:y.sp0};
|
|
80
|
-
`,
|
|
80
|
+
`,Ue=g.div`
|
|
81
81
|
display: flex;
|
|
82
82
|
margin-right: ${y.sp2};
|
|
83
83
|
margin-top: 2px;
|
|
84
84
|
align-items: center;
|
|
85
|
-
`,
|
|
85
|
+
`,Ne=g(ze)`
|
|
86
86
|
width: ${y.sp3};
|
|
87
87
|
height: ${y.sp3};
|
|
88
88
|
color: inherit;
|
|
89
|
-
`,S={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)},
|
|
89
|
+
`,S={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:D,isDisabled:k,style:C})=>{const b=Q(),{getValues:$}=oe(),j=ne(),m=N.getLocalizedStrings().spendManagement.billPay.vendorCreation.wireDetails,{international:c}=m,x=S.largeLabelWidth.value(b),z=n?.accountType?.type,T=n?.countryCode==null,_=n?.currencyCode==null,F=["phone","email","other"];return t.jsx(Qe,{style:C,children:t.jsxs(Ye,{children:[t.jsx(je,{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(R,{}),t.jsx(Ee,{isDisabled:T===!0?"disabled":D===!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(R,{}),_!==!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(R,{})]}):null,n!=null&&z!=null&&n.dynamicForm[z]!=null&&i.length>0?Object.keys(n.dynamicForm[z]).map(s=>{const r=i.filter(E=>E.name===s)[0],h=n.accountType?.type;if(h!=null&&r!=null){const E=n.dynamicForm[h][s];switch(r.fieldType){case"text":return t.jsxs(t.Fragment,{children:[t.jsx(De,{label:{label:r.label+c.colon,width:x},text:{type:"text",name:W(o,"dynamicForm",h,r.name),placeholder:r.placeholder,defaultValue:E,options:{required:r.required,pattern:r.validationRegex!=null?new RegExp(r.validationRegex):void 0,maxLength:r.maxLength,minLength:r.minLength}},isDisabled:k,style:{width:"auto"},showAdditionalInfoLabel:!1},W(o,"dynamicForm",h,r.name)),t.jsx(R,{})]});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:E,allOptions:r.valuesAllowed??[]}}},W(o,"dynamicForm",h,r.name)),t.jsx(R,{})]});case"radio":return t.jsxs(t.Fragment,{children:[t.jsxs(K,{size:b,children:[t.jsx(G,{label:r.label+c.colon,htmlFor:W(o,"dynamicForm",h,r.name),style:{marginLeft:S.labelMarginLeft.value(b),marginRight:S.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(R,{})]});default:return null}}else return null}):null,t.jsxs(Je,{size:b,children:[t.jsxs(K,{size:b,children:[t.jsx(G,{label:c.addSource,htmlFor:L(o,"source"),style:{marginLeft:S.labelMarginLeft.value(b),marginRight:S.labelMarginRight.value(b),width:x},showTooltip:!0,tooltipTitle:c.sourceTooltip,toolTipWidth:S.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:F[0],value:F[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:F[1],value:F[1],registerOptions:{required:!0},radioSize:"small"}}),t.jsx(H,{label:{label:c.other},style:{width:"auto"},isContainerClickable:!0,radioField:{name:L(o,"source"),id:F[2],value:F[2],registerOptions:{required:!0},radioSize:"small"}})]})]}),$(`${o}.source`)==="other"?t.jsx(Te,{type:"text",name:L(o,"otherSource"),placeholder:c.sourcePlaceholder,style:{display:"flex",flexGrow:1,cursor:"inherit",height:y.sp7,width:"calc(100% - largeLabelWidth)",background:j.colors.background,border:`1px solid ${j.colors.background}`,marginLeft:x},registerOptions:{required:!0,validate:s=>$(`${o}.source`)==="other"&&!!s}}):null]}),t.jsx(R,{})]})})},L=(e,i)=>`${e}.${i}`,W=(e,i,l,f)=>`${e}.${i}.${l}.${f}`,Qe=g.div`
|
|
90
90
|
display: flex;
|
|
91
91
|
flex-direction: column;
|
|
92
92
|
`,Ye=g.div`
|
|
@@ -102,7 +102,7 @@ import{j as t,X as G,a as he,M as U,c3 as ye,H as ge,l as Y,bO as be,bQ as fe,bR
|
|
|
102
102
|
background-color: ${e=>e.theme.colors.grey3};
|
|
103
103
|
min-height: 1px;
|
|
104
104
|
max-height: 1px;
|
|
105
|
-
`,
|
|
105
|
+
`,Je=g.div`
|
|
106
106
|
display: flex;
|
|
107
107
|
flex-direction: column;
|
|
108
108
|
align-items: flex-start;
|
|
@@ -113,7 +113,7 @@ import{j as t,X as G,a as he,M as U,c3 as ye,H as ge,l as Y,bO as be,bQ as fe,bR
|
|
|
113
113
|
z-index: 1;
|
|
114
114
|
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
115
115
|
}
|
|
116
|
-
`,
|
|
116
|
+
`,K=g.div`
|
|
117
117
|
display: flex;
|
|
118
118
|
flex-direction: row;
|
|
119
119
|
width: 100%;
|
|
@@ -121,7 +121,7 @@ import{j as t,X as G,a as he,M as U,c3 as ye,H as ge,l as Y,bO as be,bQ as fe,bR
|
|
|
121
121
|
background-color: ${e=>e.theme.colors.grey5};
|
|
122
122
|
min-height: ${e=>S.labelHeight.valuePx(e.size)};
|
|
123
123
|
align-items: center;
|
|
124
|
-
`,
|
|
124
|
+
`,X=g.div`
|
|
125
125
|
display: flex;
|
|
126
126
|
flex-direction: row;
|
|
127
127
|
width: ${e=>`calc(100% - ${e.labelWidth}px)`};
|
|
@@ -130,7 +130,7 @@ import{j as t,X as G,a as he,M as U,c3 as ye,H as ge,l as Y,bO as be,bQ as fe,bR
|
|
|
130
130
|
flex-grow: 1;
|
|
131
131
|
height: ${e=>S.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)},
|
|
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)},Z="internationalDetailsPage",v="internationalWireSection",Ke="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:D,onAccountDetailsUpdated:k,onCurrencyUpdated:C,onSaveHandler:b,onBackClick:$,onAddressClick:j})=>{const m=Q(),c=e.createInternationalWireDetails.localData,x=e.createInternationalWireDetails.createStatus,z=e.fetchState,T=he({mode:"all",reValidateMode:"onChange",defaultValues:I.useMemo(()=>te(e),[e]),values:te(e)}),[_,F]=I.useState(!1),[s,r]=I.useState(!1),h=N.getLocalizedStrings().spendManagement.billPay.vendorCreation,E=N.getLocalizedStrings().common.footer,{international:B}=h.wireDetails,re={onOkClick:()=>{r(!1),T.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")){F(!0);return}const M=d===`${v}.vendorCountry`,U=d===`${v}.vendorCurrency`;U&&A[v].vendorCurrency.selectedOption!=null&&C(A[v].vendorCurrency.selectedOption,D,i);const pe={...A},me=ie(pe,e,M,U,f);k(me,D,i,U||M)};I.useEffect(()=>{const d=T.watch((A,{name:M})=>{M!=null&&A!=null&&ye(()=>se(M,A))});return()=>{d.unsubscribe()}});const q=I.useCallback(()=>{const d=T.getValues(),A=ie(d,e,!1,!1,f);k(A,D,i,!1),F(!1)},[T,e,f,k,D,i]),de=I.useCallback(()=>{_&&q(),j(n)},[_,q,j,n]),ce=T.handleSubmit(d=>{_&&q(),b()}),ue=!ge(w!=null?Y.getFormattedAddress(w):w,o!=null?Y.getFormattedAddress(o):o)||T.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(Re,{warningText:h.bankAccountCommon.accountExistWarning}):null,t.jsx(ot,{size:m,children:h.bankAccountCommon.accountDetailsTitle}),t.jsx(ve,{...T,children:t.jsxs("form",{id:ee(Z),onSubmit:ce,children:[t.jsx(tt,{size:m,children:t.jsx(Ge,{wireAccountToCreate:c,dynamicFormFetchState:z,supportedAccountTypes:e.supportedAccountTypes,supportedCountries:e.supportedCountries,supportedCurrencies:e.supportedCurrencies,dynamicFormConfig:e.dynamicForm,sectionId:v,isDisabled:u,isCountryDropdownReadonly:l,isCurrencyDropdownReadonly:f})}),t.jsx(Ie,{sectionId:Ke,isDisabled:u,addressType:n,addressToEdit:o,onAddressClick:de})]})})]}),t.jsx(we,{formId:ee(Z),primaryBtn:{label:h.bankAccountCommon.saveAccount,isLoading:x.fetchState==="In-Progress",style:{width:P.buttonWidth.value(m)},isDisabled:u!=null},cancelBtn:{label:E.cancel,style:{width:P.buttonWidth.value(m)},shouldResetOnCancel:!1,onClick:()=>{T.formState.isDirty?r(!0):(T.reset(),$())}}})]})},Ze=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:Ze(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)};
|
|
@@ -149,4 +149,4 @@ import{j as t,X as G,a as he,M as U,c3 as ye,H as ge,l as Y,bO as be,bQ as fe,bR
|
|
|
149
149
|
color: ${e=>e.theme.colors.champion};
|
|
150
150
|
margin-left: ${e=>P.marginLeft.valuePx(e.size)};
|
|
151
151
|
margin-top: ${y.sp3};
|
|
152
|
-
`,ft=({internationalWireView:e,vendorViewDetails:i,bankAccountContext:l,vendorType:f,addressType:u,isDisabled:n,addressToEdit:o,mailingAddress:w,billAmount:D,onAccountDetailsUpdated:k,onCurrencyUpdated:C,onSaveHandler:b,onBackClick:$,onAddressClick:j})=>{const m={...i.editVendorState??i.newVendorState},c=m.vendorDetailLocalData?.paymentInstrumentIds!=null&&m.vendorDetailLocalData?.paymentInstrumentIds.length>0,x=m.vendorBasic?.countryCode!=null||c,z=m.vendorBasic?.currencyCode!=null||c;return I.useEffect(()=>{(l==="vendor"&&e.createInternationalWireDetails.createStatus.fetchState==="Completed"||m?.saveStatus?.fetchState==="Completed")&&$()},[m?.saveStatus?.fetchState,$,l,e.createInternationalWireDetails.createStatus]),t.jsx(
|
|
152
|
+
`,ft=({internationalWireView:e,vendorViewDetails:i,bankAccountContext:l,vendorType:f,addressType:u,isDisabled:n,addressToEdit:o,mailingAddress:w,billAmount:D,onAccountDetailsUpdated:k,onCurrencyUpdated:C,onSaveHandler:b,onBackClick:$,onAddressClick:j})=>{const m={...i.editVendorState??i.newVendorState},c=m.vendorDetailLocalData?.paymentInstrumentIds!=null&&m.vendorDetailLocalData?.paymentInstrumentIds.length>0,x=m.vendorBasic?.countryCode!=null||c,z=m.vendorBasic?.currencyCode!=null||c;return I.useEffect(()=>{(l==="vendor"&&e.createInternationalWireDetails.createStatus.fetchState==="Completed"||m?.saveStatus?.fetchState==="Completed")&&$()},[m?.saveStatus?.fetchState,$,l,e.createInternationalWireDetails.createStatus]),t.jsx(Xe,{internationalWireView:e,addressToEdit:o,mailingAddress:w,addressType:u,billAmount:D,isDisabled:n,onSaveHandler:b,onBackClick:$,onAddressClick:j,onAccountDetailsUpdated:k,onCurrencyUpdated:C,vendorType:f,isCountryDropdownReadonly:x,isCurrencyDropdownReadonly:z})};export{ft as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as l}from"./index-
|
|
1
|
+
import{j as l}from"./index-C2JVdK9x.js";import{b as B}from"./vendor-CnQcJ2Lu.js";import{f as u}from"./InternationalWireSwiftDetailsPage-DBG1ni7g-DMTAsaCM.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./BankAccountWarningSection-Dp7qMaI2-DCN96rsg.js";import"./MailingDetailsSection-CdKFQB_8-K5G0AaPG.js";import"./LabeledAddressValueField-DkhJs5ky-DLdSr7t1.js";import"./MagicLinkTitleSection-Bb27jU2a-DQOPYd-Z.js";const F=({vendorViewDetails:n,bankAccountContext:o,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onFetchBankNameBySwift:d,onAddressClick:c})=>{const{internationalBankAccountCreateStatus:a,internationalBankAccountToCreate:m,editVendorState:p,newVendorState:S,bankNameBySwift:f,fetchBankNameBySwiftStatus:k}=n,t={...p??S};return B.useEffect(()=>{(o==="vendor"&&a.fetchState==="Completed"||t?.saveStatus?.fetchState==="Completed")&&e()},[a,t?.saveStatus?.fetchState,e,o]),l.jsx(u,{bankAccountToCreate:m,bankAccountCreationState:a,bankNameBySwift:f,addressToEdit:t?.vendorNewAddressStatus?.addressToCreate,mailingAddress:t?.vendorAddress,addressType:"vendor_address",fetchBankNameBySwiftStatus:k,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onAddressClick:c,onFetchBankNameBySwift:d})};export{F as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as ie,u as oe,M as te,C as c,
|
|
1
|
+
import{X as ie,u as oe,M as te,C as c,g5 as w,a7 as T,j as i,hm as m,hl as g,o as n,Q as re,g as ne,dy as se,v as le,p as a}from"./index-C2JVdK9x.js";import{n as l}from"./vendor-CnQcJ2Lu.js";const s={labelWidth:new c(270,340,350),sectionWidth:new c(343,580,726),iconContainerMaxWidthHeight:new c(a[6],a[7]),iconContainerMarginRight:new c(12,a[3]),iconPadding:new c(10,12),rowGap:new c(a[2],a[3]),elementsMarginLeftRight:new c(a[3],a[4]),controlWidth:n.sp6},L={title:new re("standardMedium","largeMedium")},de=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
row-gap: ${e=>s.rowGap.valuePx(e.windowSize)};
|
|
@@ -27,7 +27,7 @@ import{X as ie,u as oe,M as te,C as c,g3 as w,a7 as T,j as i,hj as m,hi as g,o a
|
|
|
27
27
|
margin-bottom: ${n.sp0};
|
|
28
28
|
`,ae=l.div`
|
|
29
29
|
color: ${e=>e.theme.colors.primary};
|
|
30
|
-
${e=>`${
|
|
30
|
+
${e=>`${L.title.style(e.windowSize)}`};
|
|
31
31
|
`,S=l.div`
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
@@ -45,17 +45,17 @@ import{X as ie,u as oe,M as te,C as c,g3 as w,a7 as T,j as i,hj as m,hi as g,o a
|
|
|
45
45
|
max-height: ${e=>s.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
46
46
|
margin-right: ${e=>s.iconContainerMarginRight.valuePx(e.windowSize)};
|
|
47
47
|
`,$=l.div`
|
|
48
|
-
${e=>`${
|
|
48
|
+
${e=>`${L.title.style(e.windowSize)}`};
|
|
49
49
|
color: ${e=>e.theme.colors.primary};
|
|
50
50
|
`,v=l(le)`
|
|
51
51
|
color: ${e=>e.theme.colors.hero};
|
|
52
52
|
`,y=l(se)`
|
|
53
53
|
width: ${n.sp4};
|
|
54
54
|
height: ${n.sp4};
|
|
55
|
-
`,
|
|
55
|
+
`,A=l.div`
|
|
56
56
|
display: flex;
|
|
57
57
|
flex-direction: column;
|
|
58
|
-
`,
|
|
58
|
+
`,j=l.div`
|
|
59
59
|
display: flex;
|
|
60
60
|
flex-direction: column;
|
|
61
61
|
margin-left: ${e=>s.elementsMarginLeftRight.valuePx(e.windowSize)};
|
|
@@ -65,4 +65,4 @@ import{X as ie,u as oe,M as te,C as c,g3 as w,a7 as T,j as i,hj as m,hi as g,o a
|
|
|
65
65
|
background-color: ${e=>e.theme.colors.grey5};
|
|
66
66
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
67
67
|
border-radius: ${n.sp2};
|
|
68
|
-
`,z=(e,u)=>`${e}.${u}`;function xe({sectionId:e,vendorAccountMappingSection:u,isAccruedExpensesFeatureEnabled:
|
|
68
|
+
`,z=(e,u)=>`${e}.${u}`;function xe({sectionId:e,vendorAccountMappingSection:u,isAccruedExpensesFeatureEnabled:k,showTitle:I=!0}){const r=ie(),d=oe(),{accruedExpensesAccountHierarchy:O,accruedExpensesAccountList:_,accruedExpensesRecommendations:M,fixedAssetsAccountHierarchy:B,fixedAssetsAccountList:E,fixedAssetsRecommendations:R,prepaidExpensesAccountHierarchy:F,prepaidExpensesAccountList:C,prepaidExpensesRecommendations:P,selectedAccruedExpensesAccountIds:W,selectedFixedAssetsAccountIds:H,selectedPrepaidExpensesAccountIds:V}=u,t=te.getLocalizedStrings().uncategorizedAccountsMapping,p=s.labelWidth.value(r),q=w(F,P,"Accounts"),D=w(B,R,"Accounts"),G=w(O,M,"Accounts"),J=P[0]?.account?.reason??"",Q=t.tooltip.replace("__based__",J).replace("__account__",t.vendorSection.prepaidExpenseAccount),N=R[0]?.account?.reason??"",X=t.tooltip.replace("__based__",N).replace("__account__",t.vendorSection.fixedAssetsAccount),K=M[0]?.account?.reason??"",U=t.tooltip.replace("__based__",K).replace("__account__",t.vendorSection.accruedExpensesAccount),Y=C.filter(o=>V.includes(o.accountId)??!1),Z=E.filter(o=>H.includes(o.accountId)??!1),ee=_.filter(o=>W.includes(o.accountId)??!1),x={valueContainer:o=>({...o,padding:`2px ${n.sp3}`,overflow:"unset"}),multiValue:o=>({...o,margin:0})},h=d.mode==="light"?new T(d.colors.brandColorJadeLight):new T(d.colors.brandColorJadeDark);return i.jsxs(de,{windowSize:r,children:[I?i.jsx(ae,{windowSize:r,children:t.vendorSection.heading}):null,i.jsxs(ce,{windowSize:r,children:[i.jsxs(f,{windowSize:r,children:[i.jsx(b,{windowSize:r,iconColor:h,isDarkMode:d.mode==="dark",children:i.jsx(y,{})}),i.jsxs(S,{children:[i.jsx($,{windowSize:r,children:t.vendorSection.prepaidExpenseTitle}),i.jsx(v,{children:t.vendorSection.prepaidExpenseSubTitle})]})]}),i.jsx(A,{children:i.jsx(j,{windowSize:r,children:i.jsx(m,{label:{label:t.vendorSection.prepaidExpenselabel,width:p},groupedMultiSelectField:{name:z(e,"prepaidExpensesAccount"),treeViewStructure:!0,groupType:"Accounts",registerOptions:{required:!1},defaultValue:{allOptions:q,selectedOptions:Y.map(o=>o.qboId).filter(o=>o!=null)},placeholder:t.placeholder.accountPlaceholders,style:{borderBottom:`1px solid ${d.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},customStyleConfig:x,tooltip:{text:Q,sticky:!1},valueToId:o=>g(o,C)}})})}),i.jsxs(f,{windowSize:r,children:[i.jsx(b,{windowSize:r,iconColor:h,isDarkMode:d.mode==="dark",children:i.jsx(y,{})}),i.jsxs(S,{children:[i.jsx($,{windowSize:r,children:t.vendorSection.FixedAssetsTitle}),i.jsx(v,{children:t.vendorSection.fixedAssetsSubTitle})]})]}),i.jsx(A,{children:i.jsx(j,{windowSize:r,children:i.jsx(m,{label:{label:t.vendorSection.fixedAssetslabel,width:p},groupedMultiSelectField:{name:z(e,"fixedAssetsAccount"),treeViewStructure:!0,groupType:"Accounts",registerOptions:{required:!1},defaultValue:{allOptions:D,selectedOptions:Z.map(o=>o.qboId).filter(o=>o!=null)},placeholder:t.placeholder.accountPlaceholders,style:{borderBottom:`1px solid ${d.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},customStyleConfig:x,tooltip:{text:X,sticky:!1},valueToId:o=>g(o,E)}})})}),k?i.jsxs(i.Fragment,{children:[i.jsxs(f,{windowSize:r,children:[i.jsx(b,{windowSize:r,iconColor:h,isDarkMode:d.mode==="dark",children:i.jsx(y,{})}),i.jsxs(S,{children:[i.jsx($,{windowSize:r,children:t.vendorSection.AccruedExpensesTitle}),i.jsx(v,{children:t.vendorSection.accruedExpensesSubTitle})]})]}),i.jsx(A,{children:i.jsx(j,{windowSize:r,children:i.jsx(m,{label:{label:t.vendorSection.accruedExpenseslabel,width:p},groupedMultiSelectField:{name:z(e,"accruedExpensesAccount"),treeViewStructure:!0,groupType:"Accounts",registerOptions:{required:!1},defaultValue:{allOptions:G,selectedOptions:ee.map(o=>o.qboId).filter(o=>o!=null)},placeholder:t.placeholder.accountPlaceholders,style:{borderBottom:`1px solid ${d.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},customStyleConfig:x,tooltip:{text:U,sticky:!1},valueToId:o=>g(o,_)}})})})]}):null]})]})}export{xe as h};
|