@zeniai/web-cockpit-ui 1.14.18-qa → 1.14.19-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-DDccOBrQ-DAFloIR7.js → ACHDetailsPage-BahbefPk-CJUwOp-5.js} +3 -3
- package/dist/assets/{AIPerformancePage-u3qF__mF-C2rQdAUj.js → AIPerformancePage-BuQApbEf-iP9bvKhu.js} +53 -53
- package/dist/assets/AccountInfoPage-TD30edES-B2dxCd6A.js +18 -0
- package/dist/assets/{AccountInfoPageContent-0PqU7bCV-DjyLxVjc.js → AccountInfoPageContent-DQJFmREl-DoaILqqU.js} +16 -16
- package/dist/assets/{AccountReconDetailsDrawerPage-DEqtU-rh-DShYSkdD.js → AccountReconDetailsDrawerPage-D2B9Na3--BPjptdtd.js} +18 -18
- package/dist/assets/{AccountRow-DTQ6Qoyr-BWLnnP7O.js → AccountRow-ZcS_RTJN-DNHX6IR1.js} +36 -36
- package/dist/assets/{AccountsPromoCardStack-DkYqKp1i-DIQYZHkX.js → AccountsPromoCardStack-Bh2D-mXh-Yx4rUExR.js} +37 -37
- package/dist/assets/{AddAddressForCardDrawer-DB3HtvgV-CtFYoq0c.js → AddAddressForCardDrawer-Ds2V5DyG-D2Tq6L1d.js} +2 -2
- package/dist/assets/{AddToWalletPage-DvgM0-kj-DdLn-yYb.js → AddToWalletPage-DQ_gwAcu-Bv5nxp9i.js} +29 -29
- package/dist/assets/{AgingReportsPage-BP6-oG6W-Zw_sJROa.js → AgingReportsPage-BU_tqV13-C2Yi_y38.js} +8 -8
- package/dist/assets/{AllUserItems-w6M8k5yU-YJIh_rl6.js → AllUserItems-DBXzXO61-sIPVSbAT.js} +5 -5
- package/dist/assets/ApAgingDetailPage-Crv9EDe5-Dm92urnR.js +46 -0
- package/dist/assets/AppBasePage-BK_b0fFf-DXr3P5KV.js +70 -0
- package/dist/assets/{AppDrawerContent-_gInVeZf-BQim72zX.js → AppDrawerContent-rw39Hn3s-Aoghs5SQ.js} +20 -19
- package/dist/assets/{ApprovalRulesSettingsPage-CKRde9he-xNULn6j9.js → ApprovalRulesSettingsPage-C6jxuvhu-S4p-j-Jr.js} +7 -7
- package/dist/assets/{ArAgingChart-Dg0oBo5K-D_U-_y14.js → ArAgingChart-DVMlvNTF-DuCGC2Pt.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CNizMSbt-Dth0_YLs.js → ArAgingDetailPage-CbmOL5tx-Bg8YQJ9n.js} +1 -1
- package/dist/assets/{AttachmentView-B8hloBca-B7H5OHbd.js → AttachmentView-BTAMhgXU-BizBD4c6.js} +9 -9
- package/dist/assets/{BankAccountSection-4HNC0ypd-C0gSDf56.js → BankAccountSection-DVO3xzgl-BbF3_Xvy.js} +7 -7
- package/dist/assets/{BankAccountWarningSection-BqgTMjDy-D19_f5S8.js → BankAccountWarningSection-CQsqUFKg-CEwje_vW.js} +10 -10
- package/dist/assets/{BankConnectionsSettingsPage-BBQh1oT8-CZV3CN6h.js → BankConnectionsSettingsPage-CEyhk8v--D1MZcFK5.js} +22 -22
- package/dist/assets/{BillDetailPage-R4oRrdsm-BEresB8F.js → BillDetailPage-CP6QCrla-C-q234bH.js} +18 -18
- package/dist/assets/{BillPayApprovalRuleDetailPage-d_A1-Gv_-3RrpKEuO.js → BillPayApprovalRuleDetailPage-Bem5LvtY-ByYY2uP-.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-5q5b2drs-IWViHE-L.js → BillPayApprovalRulesPage-DhDaCfQa-cqstNfVf.js} +8 -8
- package/dist/assets/{BillPayPromoPage-Dz_R3Vd_--yvJrLJn.js → BillPayPromoPage-BjH9lvnR-7aNAb2i3.js} +10 -10
- package/dist/assets/{BillPaySetUpPage-CwTRrElO-CydqQ4Hb.js → BillPaySetUpPage-X8X9gq1a-DvsjYi7w.js} +2 -2
- package/dist/assets/{BillingSettingsPage-_XJCl2yq-PULazhmD.js → BillingSettingsPage-CyyR8GW1-3x2HPXEj.js} +6 -6
- package/dist/assets/{BillsBulkReviewDrawerPage-B_S35aKX-BEOZeSq9.js → BillsBulkReviewDrawerPage-D_xxZjcU-M0WKN8pE.js} +1 -1
- package/dist/assets/{BoxItem-9JmA6QqI-COQbCWSM.js → BoxItem-BL-UVx2X-CDUWJCC4.js} +4 -4
- package/dist/assets/{BusinessVerificationPage-DJKOIC1M-LiFEkQgk.js → BusinessVerificationPage-Tr-N_rHo-BFVLh_Kq.js} +8 -8
- package/dist/assets/{CardNumberSubText-CewmMWju-DvCOWAQW.js → CardNumberSubText-CNMNL0y--CRLH2YxV.js} +2 -2
- package/dist/assets/{CashbackDetailPage-HtjAmPa8-CinbzV-Y.js → CashbackDetailPage-Cj26I5CB-DNKm6NdF.js} +27 -27
- package/dist/assets/{ChargeCardDetailPage-D_5vb_92-Du3sCUPX.js → ChargeCardDetailPage-herJK06r-Jj0sML3r.js} +40 -40
- package/dist/assets/{ChargeCardListPage-BT-8bueF-06vjr20X.js → ChargeCardListPage-LYVKm-0u-CGVPXLUW.js} +26 -26
- package/dist/assets/{ChargeCardListTable-oJTQcOkc-BWmgu2hA.js → ChargeCardListTable-DxE-nRR4-Dc_afx90.js} +38 -38
- package/dist/assets/ChargeCardPromoPage-LVuaSVsQ-xG3b-_Ag.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-cqydgFPZ-BGlawUmi.js → ChargeCardSetupPage-CWoHclOr-CLs_UkHN.js} +2 -2
- package/dist/assets/{ChargeCardStatementsPage-URwhXATj-CKBPOOuu.js → ChargeCardStatementsPage-DkCHd5c6-y_ZysAG_.js} +8 -8
- package/dist/assets/{ChargeCardUtils-DBEgXAMc-CCKJwoXw.js → ChargeCardUtils-6kq_92Ri-BhC-mlU5.js} +1 -1
- package/dist/assets/{ChaseOverlay-HTpWDuLt-DX0UAuYL.js → ChaseOverlay-N7gGQaMQ-Bh9lkzpe.js} +7 -7
- package/dist/assets/{CheckDepositDrawerPage-DLc3qfVH-D8HoFLZB.js → CheckDepositDrawerPage-w7IziUHI-DeTxsGVS.js} +20 -20
- package/dist/assets/{CollapsableReportTable-PpQgBBRC-ZGrGfaoO.js → CollapsableReportTable-NSlKGCNZ-9GlkRzVX.js} +59 -59
- package/dist/assets/{CompanyOfficerDetailsSection-C1aPsDga-CZMmYqn7.js → CompanyOfficerDetailsSection-C1IpMsWw-4riCbcJi.js} +33 -33
- package/dist/assets/{CompanyPassportCard-DMKqBgwh-BK9jAm1s.js → CompanyPassportCard-D5gkzDNU-DdCNWaie.js} +4 -4
- package/dist/assets/{CompanyPassportPage-CHHPIqN_-DmQdYIKs.js → CompanyPassportPage-6_6yWHxX-BzKkvM2X.js} +31 -31
- package/dist/assets/CompleteProfile-1xeOWkGT-CSILrADl.js +52 -0
- package/dist/assets/{ConfettiBurst-14a5kaEE-GS9xo-rd.js → ConfettiBurst-b1-NNKbl-Dk_0sV_i.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-K5rhe_y3-N41MtjES.js → CreateOrEditVendorPage-DQW4Wobx-CiIXGaQB.js} +13 -13
- package/dist/assets/{CreditCardPaymentDrawerPage-LQ--HUI9-Cc_Sa5wy.js → CreditCardPaymentDrawerPage-BEpQXn9g-DzfCHeLI.js} +21 -21
- package/dist/assets/{CreditCardPaymentPlgSection-BM05WC-i-DNDbbaSP.js → CreditCardPaymentPlgSection-BGh2TJeK-DFQxSPk-.js} +8 -8
- package/dist/assets/{CurrencySelectField-bhkJTNUW-BRZe_YtM.js → CurrencySelectField-C2if0NUa-ChKY5K5U.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-BHD1irjF-CTeUMMCT.js → CustomerOnboardingActivationPage-_zjv9RZY-5MkPCW8D.js} +9 -9
- package/dist/assets/CustomerOnboardingContainerPage-BXSxGbv8-CIUqDhfe.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B--kAA3i-MPsa0cdA.js → CustomerOnboardingDetailPageSkeleton-CXApNm6A-BSR-PhTi.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-sHKAos8m-Db1Asz6M.js → CustomerOnboardingNoStepsPage-BaBxG1Yn-DqlQrhK_.js} +5 -5
- package/dist/assets/{CustomerOnboardingPage-B_S5G-6o-ioTtf7qq.js → CustomerOnboardingPage-CWpmMXrh-CRkiPpz7.js} +8 -8
- package/dist/assets/{CustomerOnboardingProductSuitePage-CVi8WuQY-DhCHrYf_.js → CustomerOnboardingProductSuitePage-CGYRoz3v-BhEGdWj7.js} +11 -11
- package/dist/assets/{Dashboard-CIMiF6eU-Bh4A-kwo.js → Dashboard-Dyt4nvyG-CkNduEQV.js} +1 -1
- package/dist/assets/{DashboardReportPage-6z6qBQSB-DtM_VyEZ.js → DashboardReportPage-BSbTlRwW-gHAkcokq.js} +20 -20
- package/dist/assets/{DepositAccTransactionItem-BQYFrzDW-BcHBCoaK.js → DepositAccTransactionItem-CuTp6qxI-Ce2SFbUX.js} +10 -10
- package/dist/assets/{DepositAccTransactionListPage-xSNsUwS4-CqhIj9_l.js → DepositAccTransactionListPage-CrQrOyrm-LYbEgddo.js} +8 -8
- package/dist/assets/{DomesticWireDetailsPage-b1iB1HBM-DQ1jdhWC.js → DomesticWireDetailsPage-C5hxxGsr-D-EvElMb.js} +1 -1
- package/dist/assets/{DownloadOverlay-C3oy6eq7-DGj-h14-.js → DownloadOverlay-B9O7jf-4-BeIpOSC8.js} +1 -1
- package/dist/assets/{DrawerPage-DLVTld-y-ocrEwuzh.js → DrawerPage-Dpd6lRf7-l9nV_5N2.js} +15 -15
- package/dist/assets/EditPeoplePage-C7uOWg9F-BdboEEOc.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-zgUt303N-DNfD2_Hk.js → EditReimbursementDetailPage-BL-W1hPs-D4iR-8Yt.js} +55 -55
- package/dist/assets/{EntityDetailPage-DY4i6GZK-BLVHMR98.js → EntityDetailPage-BsQ9bSpC-Do5rjOCb.js} +2 -2
- package/dist/assets/{EntitySummarySection-BbxeYdm8-BY7Iv_Z9.js → EntitySummarySection-eNxIwvHt-CkeObU85.js} +9 -9
- package/dist/assets/{ExpenseAutomationOverviewPage-D3x3XpmU-C_l3U2ns.js → ExpenseAutomationOverviewPage-CKBACgsI-pcAU6Tzl.js} +29 -29
- package/dist/assets/{ExpenseAutomationPage-BTAjM6yZ-DWdHw-Sn.js → ExpenseAutomationPage-LPWPrpwm-T8iyqKP1.js} +56 -56
- package/dist/assets/{ExpressPayPage-C30-lVTo-6WY6w68k.js → ExpressPayPage-COQrt-KL-sn6b2-XB.js} +11 -11
- package/dist/assets/FeaturePreviewPage-Coe53hoK-Doq3zPCz.js +11 -0
- package/dist/assets/{FollowStepsSection-B171fPtM-BriP7ojJ.js → FollowStepsSection-BJFJzQrz-CGmrm9Lr.js} +12 -12
- package/dist/assets/{GlobalReviewListPage-BaZx32sB-DX_UXvHY.js → GlobalReviewListPage-DDQb-plt-B7MJAdcL.js} +17 -17
- package/dist/assets/HelpButton-BT_HyQ5k-B4E1vZtk.js +28 -0
- package/dist/assets/{InformationCardStack-BtxneVKK-5zmgZr81.js → InformationCardStack-B9E29_zj-DokGK6g8.js} +4 -4
- package/dist/assets/{InsightsCardStack-CCee6pLA-BiJYSmPO.js → InsightsCardStack-7XbkZ-A3-BxqeB-iN.js} +8 -8
- package/dist/assets/InsightsSection-DtBq9eII-CGUvYjY9.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-CsY38-LI-c3uW4I03.js → IntegrationsSettingsPage-TjdF0ahh-BOCCfb_h.js} +11 -11
- package/dist/assets/{InternationalWireSwiftDetailsPage-sSSgjYdh-f5YlyKlr.js → InternationalWireSwiftDetailsPage-BeSYu2Dm-y3Tu_Xyi.js} +12 -12
- package/dist/assets/{InternationalWireVerificationPage-zv0FIhUz-C7apQHs9.js → InternationalWireVerificationPage-Ctcaggen-Cihfrd35.js} +15 -15
- package/dist/assets/{InviteFormPage-DxszbbOJ-zBQSU0hV.js → InviteFormPage-DEDBu0OO-Dsi8hwhI.js} +24 -24
- package/dist/assets/{InvitePageListView-BYVWTwTc-Bc4HhTKp.js → InvitePageListView-BMMOpM9O-B8oUxVru.js} +41 -41
- package/dist/assets/InvitePeoplePage-BzPRCgA6-C4LT3zxO.js +12 -0
- package/dist/assets/InvoiceUploadSection-C6Dx8Web-CBeOBAnd.js +140 -0
- package/dist/assets/{IssueChargeCardPage-CPmj_trJ-DaakIEW8.js → IssueChargeCardPage-DWRhiOzj-DCnENqBq.js} +72 -72
- package/dist/assets/LabeledAddressValue-CSb0EGEx-owkgfzr7.js +49 -0
- package/dist/assets/LabeledAddressValueField-DJHY_wPN-ChfMLz4N.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-BnfJ3gKr-BPIj9243.js → LabeledControlledCheckBoxField-rRmtlmRJ-ZOoy4ee7.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CJT-CuQl-CtkVdb8Y.js → LabeledCreatableSingleSelectField-CTwToXIo-Cle-L6Nt.js} +5 -5
- package/dist/assets/LabeledDocumentField-sIz4Fhet-CBqe5ksA.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-mOxkCT-G-CFeF0x5h.js +59 -0
- package/dist/assets/{LabeledText-DhZgeQqu-CywDQAlQ.js → LabeledText-CExeogkg-361xlNV7.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D63Z4SE5-CnyU9bGi.js → LabeledUserSingleSelectWithSubtitlesField-DrloYoze-DB50WeN3.js} +16 -16
- package/dist/assets/{LabeledZeniRolesDropDownField-MwrQ9tKT-DoYqkoGc.js → LabeledZeniRolesDropDownField-BZKMSlzI-B3-a-Sde.js} +7 -7
- package/dist/assets/LinkJETransactionPage-D9Kae7Qd-CXNveZ-N.js +98 -0
- package/dist/assets/{LowBalancePopup-DPbr0gUO-CxEILVy0.js → LowBalancePopup-DqY0lHvk-Bg-BhJJe.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-D11FRh9u-BBPz7AfC.js → MagicLinkACHDetailsPage-BctRnNGY-DEYW76Ne.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CG7yqz6X-BMCdaHEj.js → MagicLinkDomesticWireDetailsPage-UjO7TGNI-jNwBg57q.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-PkDENzkO-CQ6x4AIV.js → MagicLinkInternationalWireDetailsPage-ex7nPlxc-Cv717ajH.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BS9ddhQA-C5O3E-9t.js → MagicLinkSuccessPage-D3ORpbmL-DiCQcMcn.js} +1 -1
- package/dist/assets/MagicLinkTitleSection-Di20DmsJ-Dweea4Ge.js +17 -0
- package/dist/assets/{MailingDetailsSection-Cx1s77og-9yNUNzNW.js → MailingDetailsSection-D7d7fV5j-Cs19YBt0.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-DNthMj1J-CXzPKXlg.js → MeetingCalenderPopup-C-Ca0puH-BuYhTZNY.js} +1 -1
- package/dist/assets/{Menu-CIjXHu3p-Cmalcvja.js → Menu-FcKyIIWS-5DaRICk4.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-D77Axpyj-Ai6fCxsi.js → MyBankConnectionsSettingsPage-B4NuqJVI-C5C-Tkbz.js} +13 -13
- package/dist/assets/{MyPendingActivationChargeCardListPage-CnZZJsMY-C0kXy7DL.js → MyPendingActivationChargeCardListPage-C4eMpxAr-CvtH5135.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-iXkYV9nQ-CFM1P4s_.js → MyProfileSettingsPage-D0ALOEls-D9BtQ_Rr.js} +9 -9
- package/dist/assets/{NavBarWithPicker-D8Mx-0SS-Bw0IYR8x.js → NavBarWithPicker-Bu03gVw7-BBANsf51.js} +6 -6
- package/dist/assets/{NavigationArrow-DOvptaEZ-Bf-QMj_h.js → NavigationArrow-D7Eb-FlF-DFK_OGPD.js} +2 -2
- package/dist/assets/{NavigationDots-HukimDRY-D9Wp9S6c.js → NavigationDots-CFjUchuX-BbVX67wD.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BlOMnHda-BUDWmT_6.js → NewGlobalMerchantPage-rhhm0o-f-DpBge9cX.js} +9 -9
- package/dist/assets/{NoDataChart-DyGfwFNo-CLQrerWr.js → NoDataChart-D5DKMqIS-BEaaizBY.js} +5 -5
- package/dist/assets/{NoDataTable-CJseWuln-Cygckdm_.js → NoDataTable-CPEKYH-4-ChRW7vff.js} +1 -1
- package/dist/assets/{NotFoundPage-UG00-OBF-CdRsamc6.js → NotFoundPage-Cfk62GPw-D375IgXA.js} +3 -3
- package/dist/assets/{NotificationSettingsPage-COyRIY7z-Dbyjp6us.js → NotificationSettingsPage-BZtsKPBO-AXQQWsyF.js} +19 -19
- package/dist/assets/NotificationsListConfig-DiJLl-YW-Be2lRZvs.js +1 -0
- package/dist/assets/{NotificationsPage-DNSiZHw_-Bj3dzmk_.js → NotificationsPage-CgABP7O1-BFGmWSCt.js} +39 -39
- package/dist/assets/{OpExByVendorPage-DmSYppgo-COjO13JB.js → OpExByVendorPage-CMEokGbw-5aOd51kS.js} +8 -8
- package/dist/assets/{OverlayContainerPage-DB42kFLd-pwzAAum1.js → OverlayContainerPage-9K5jaX8Z-DmDVJorJ.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Cvpj3Rx7-B_X_y6oD.js → PandLWithForecastPage-IizA8WJN-C3H0uMBf.js} +10 -10
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CsldB-k7-f3lPV-NL.js → PaymentAccountSetupBillingAddressSection-D6cW0hFS-DO3Osr4s.js} +9 -9
- package/dist/assets/{PeoplePage-CZhJF86l-D_AEtRE4.js → PeoplePage-lD4QPAkF-28PZT7ir.js} +29 -29
- package/dist/assets/{PortfolioAllocationFormPage-9GM9dOrM-BT7Q_b3W.js → PortfolioAllocationFormPage-pynkIQMX-BFz04Oo7.js} +11 -11
- package/dist/assets/{PortfolioDetails-BmAHjCVw-VXiwUltt.js → PortfolioDetails-Cs8o8xzm-bO5l1T7Z.js} +22 -22
- package/dist/assets/{ProductsCarousel-DnbMUIHf-CDI2aSn4.js → ProductsCarousel-vPy7zk53-DjiVBmpl.js} +7 -7
- package/dist/assets/{PromoBaseCards-BC5rOok_-CryGPY7g.js → PromoBaseCards-CWGpTa57-Bj-bRm1l.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-Ci5zNza5-BQubclq5.js → QBOConnectionDialog-66XnPKaW-8EXYy72U.js} +10 -10
- package/dist/assets/QBOSetupSection-T0b8qjoq-C3lySFCv.js +79 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BfU-6jeB-CaKrx3Ua.js → ReimbursementApprovalRuleDetailPage-BSI9Lg6a-wX6i8H_B.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-M8JZSUOE-Bppvfizw.js → ReimbursementApprovalRulesPage-XxC6pXqt-Bzz5uq1t.js} +33 -33
- package/dist/assets/{ReimbursementDetailPage-D54RyrP4-azFGfBxO.js → ReimbursementDetailPage-BwtY21D5-BOkbylET.js} +15 -15
- package/dist/assets/ReimbursementPromoPage-CmO1DP-8-DpBTbSy4.js +112 -0
- package/dist/assets/{ReimbursementSetUpPage-DgZLqhEv-BzIv1edv.js → ReimbursementSetUpPage-CrCsRxAy-Bpo-Mk0A.js} +9 -9
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DdaqWcd4-DN-OLQO2.js → ReimbursementsBulkReviewDrawerPage-Ct-lvcR1-DC9qwxGH.js} +1 -1
- package/dist/assets/{ReloadCard-Brl4XdzV-K0dTBTCK.js → ReloadCard-CJfjUA_Q-iqgRrGxj.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-BUwsckE_-BLN_c3vd.js → ReportTableViewSelector-CkuvvlJm-btt9uZlN.js} +9 -9
- package/dist/assets/{ReportsPage-B_p1fu0v-Bun8YYap.js → ReportsPage-BJqldqjR-p6MwUSO1.js} +5 -5
- package/dist/assets/{RevenueChart-Wm8uOprY-CA_G3fH9.js → RevenueChart-BUnSkoUN-CWdeY5GO.js} +8 -8
- package/dist/assets/{ReviewDetailsPage-KBHsF8bJ-BOtPONmS.js → ReviewDetailsPage-8I09Puca-B9BkrydV.js} +23 -23
- package/dist/assets/{ReviewOverlay-Dw0qj7TA-DnC9Iul5.js → ReviewOverlay-Czmj4HG0-BLH60HLe.js} +25 -25
- package/dist/assets/{RoleWithToolTip-XfK92pcD-CVavs0oL.js → RoleWithToolTip-CNQZHC7h-LUv0Jw-2.js} +4 -4
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BWlIEli5-DBxUekBG.js → ScheduleDetailsFixedAssetsPage-1Y1ZylI7-BDsLy1RB.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-C1xCJX3o-CIdul5TY.js → ScheduleDetailsPage-BcRuA_7y-mmMtrxsU.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-BprYPV37-Cl2LrpiB.js → ScheduleSequenceTable-DC75D2Dx-BSdJrIG_.js} +17 -17
- package/dist/assets/{ScreenRoutes-IGwGtJ0n.js → ScreenRoutes-DRpA2l4T.js} +62 -62
- package/dist/assets/{SetUpAccountSection-Dr1TfnG_-5hIyS4v7.js → SetUpAccountSection-CaLxl4l3-BRnWdFeV.js} +15 -15
- package/dist/assets/{SetUpDefaultSection-Be5NU_Em-B29pYDRY.js → SetUpDefaultSection-a6NTauck-C-i38hil.js} +7 -7
- package/dist/assets/{SignIn-CE6RYJOs-CikIV0Hp.js → SignIn-_ZPdER_K-0cn49L67.js} +1 -1
- package/dist/assets/{SignInScreen-CKme_DxL.js → SignInScreen-BGUfMUqo.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BESddx6p-BLBMNf4m.js → SpendManagementListViewPage-Cvev9izU-BZzSvbIK.js} +4 -4
- package/dist/assets/{SpendManagementPerTabPage-BzOooEMS-B_EkXhuq.js → SpendManagementPerTabPage-CbjC0IBF-BthyUtDp.js} +54 -54
- package/dist/assets/{SpendManagementSection-CczioNZH-Dkreg46Z.js → SpendManagementSection-BKTkeRK6-DIa3Rn7O.js} +12 -12
- package/dist/assets/{SpendMgmtSetupAccountSection-CVFRXVhZ-C1yMf9ET.js → SpendMgmtSetupAccountSection-D8Yv-Jng-D3WoppPf.js} +20 -20
- package/dist/assets/{StatementItem-Cptht91w-wlq1UAzv.js → StatementItem-DSJvKpAv-DV7N47r3.js} +8 -8
- package/dist/assets/StatementsPage-Bhk6u845-C7EltSZm.js +58 -0
- package/dist/assets/{StatusSwitcher-B3gZD4Xk-D9MKHZL1.js → StatusSwitcher-CTDNbKqC-Bv4PZo8C.js} +4 -4
- package/dist/assets/{SubTabSwitcher-ymwMdmPQ-B96M_uuA.js → SubTabSwitcher-D33kV-tw-BTeEHhHa.js} +2 -2
- package/dist/assets/{SummaryCard-CVO_hW5i-CSuBy2D2.js → SummaryCard-tsJZnge3-DE5AVV4x.js} +1 -1
- package/dist/assets/{TaskManagementPage-C8FiHas2-D3TuTHD7.js → TaskManagementPage-BW9M6AQs-DyLPADr6.js} +19 -19
- package/dist/assets/{TimeRangeSwitcher-CPklgWMn-BOlT7YwO.js → TimeRangeSwitcher-CkXysnFa-BxX2v8T-.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-Do-13K0C-BsEeofAL.js → TimeframeSwitcher-B-S09J4A-MdxeQVLH.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CtVJiYRA-CJwvNUHv.js → TimeframeSwitcherWithToggle-B9Lo2-pD-oHueEdHK.js} +2 -2
- package/dist/assets/{TopExCard-CAbVMarX-BxCf3Zb4.js → TopExCard-DwP8Cppq-BA7R-fYL.js} +5 -5
- package/dist/assets/{TopExDetailPage-CN49s925-DmkXyXHQ.js → TopExDetailPage-CIMSDSxd-DWJg2Rhe.js} +8 -8
- package/dist/assets/{TransactionDetailPage-Q9XC1VgP-BVFfsWva.js → TransactionDetailPage-rwzAZT-Q-kE9Vj_Gw.js} +34 -34
- package/dist/assets/{TransactionList-Pn-voMDJ-DGAqnABY.js → TransactionList-CFYj7bYL-GEiFuum0.js} +12 -12
- package/dist/assets/{TransactionListBig-D4U1VfMP-DdNYiwzY.js → TransactionListBig-BidYBgz3-mdU3i6TS.js} +24 -24
- package/dist/assets/{TransactionListPage-Dcr5n_hs-DFnT8O1f.js → TransactionListPage-CImIYabg-BI9Hn9ZN.js} +3 -3
- package/dist/assets/{TransactionVendorDetailPage-DxDXndQ6-D-9aHV7e.js → TransactionVendorDetailPage-LzIzQGZ1-NlBjctZ1.js} +6 -6
- package/dist/assets/TransferDrawerPage-CztFCYxm-CBCCBWte.js +362 -0
- package/dist/assets/{TreasuryOverviewPage-BDYqKBrS-_o9rtQse.js → TreasuryOverviewPage-E5E5Gr3g-D2CrCBTV.js} +55 -57
- package/dist/assets/{TreasuryPromoPage-CTkEFZ57-BquHIsOx.js → TreasuryPromoPage-D2F4Y8gV-CYlJ3kU9.js} +20 -19
- package/dist/assets/{TreasurySetupPage-KI_5DQnD-DtRdjcAX.js → TreasurySetupPage-Dxa4l6Ec-D8eLBdo9.js} +8 -8
- package/dist/assets/TreasuryStatementsPage-DEhWu0S0-CbB6wAo4.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-CEMU2CI9-BGxkDpux.js +58 -0
- package/dist/assets/TreasuryTransferOrReviewPage-BfReLw_V-7MLhWFB6.js +506 -0
- package/dist/assets/{TrendChart-Ck4SVLtn-CXi992Ul.js → TrendChart-D1gtjDe3-DWpkP03z.js} +4 -4
- package/dist/assets/{TrendWithTransactions-BiWHzfIf-h_PZkaTI.js → TrendWithTransactions-BslpnJTN-CCs7L3oP.js} +7 -7
- package/dist/assets/{UncategorizedAccountsMappingPage-BEbiQMPB-BE67gz9h.js → UncategorizedAccountsMappingPage-Brm7fcuy-1WMghiUv.js} +9 -9
- package/dist/assets/{UnitIntegrationPage-DghvgER8-DUjp5v9z.js → UnitIntegrationPage-DhiEmm9g-CyoCc7wN.js} +5 -5
- package/dist/assets/{UploadAdditionalDocumentOverlay-BasudeQ3-WkwupeXg.js → UploadAdditionalDocumentOverlay-Dq1ToFCn-BQjCguyB.js} +2 -2
- package/dist/assets/Vendor2FAPopup-Brg14-Cw-BfoPqsuP.js +1 -0
- package/dist/assets/{VendorACHDetailsPage-DYwQERlH-u-_TPYjg.js → VendorACHDetailsPage-mk0vAyqE-BSy-kLup.js} +1 -1
- package/dist/assets/{VendorDetailPage-D-Mcnqod-DRjHRl2g.js → VendorDetailPage-CRhCXEsq-qmv0EtV4.js} +13 -13
- package/dist/assets/{VendorDomesticWireDetailsPage-sx958z_p-DGjTvY13.js → VendorDomesticWireDetailsPage-DhWkYV9N-CfYo0l4g.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-D0AAdqa3-Dbu0eezS.js → VendorFiling1099EditablePage-Bp5FgSiJ-DJr2e5wU.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-DS7Qb6O_-CtRrPKLj.js → VendorFirstReviewPage-XHOyQIOp-D3qnz2ww.js} +16 -16
- package/dist/assets/{VendorInternationalWireDetailsPage-CUw0lbm5-Ds_S2bsN.js → VendorInternationalWireDetailsPage-B13qu8u3-XGuYC0bw.js} +12 -12
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-2BGGr3aV-Cm02ZRRr.js → VendorInternationalWireSwiftDetailsPage-Dtgusj3r-lncQfKmQ.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D5-r6xWp-Bb2HvHxE.js → VendorsAccountsSection-B-qorJ8x-D7fZrn7B.js} +4 -4
- package/dist/assets/VerifyDevice-CBO1Uzra-0Sdb0n5n.js +67 -0
- package/dist/assets/{WarningsDrawerPage-BEuiclea-DGE4v0Hu.js → WarningsDrawerPage-B4Nic3gX-jDmAJMW0.js} +10 -10
- package/dist/assets/{ZeniAccountDetailPage-DvUTbTBC-B58XYLhH.js → ZeniAccountDetailPage-IDGYSZVs-DmZJYRcm.js} +15 -15
- package/dist/assets/{ZeniAccountListViewPage-BpAa6XZc-sSA5NycY.js → ZeniAccountListViewPage-IlPP8Yit-dH-QXkwU.js} +26 -26
- package/dist/assets/ZeniAccountNavBarPieces-2j-ZQRIF-DhfLCa9V.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-BDzkOGum-Ddw-sKos.js → ZeniAccountPromoPage-BhFf42Fz-TRhbuR-7.js} +15 -15
- package/dist/assets/{ZeniAccountSetupPage-B6ExD1mo-DtoMVKCB.js → ZeniAccountSetupPage-DcYDO3x8-DOdNLBlO.js} +4 -4
- package/dist/assets/{ZeniCopyright-BcpJPWHG-aqipC7iB.js → ZeniCopyright-C4Ze2E8o-C33E_V5I.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BQDqgNKJ-D3Rx0t-C.js → ZeniTransferAmountSlider-DFB0ntiR-IB41czFT.js} +2 -2
- package/dist/assets/{analyticsHelper-DxAemT72.js → analyticsHelper-BuNdZ9jh.js} +1 -1
- package/dist/assets/{analyticsHelper-BP6myd2z-IG6G9Q9p.js → analyticsHelper-CsfdC0kT-BpVlkMRS.js} +1 -1
- package/dist/assets/{chartTypes-BU-pRq_m-BNABrIt4.js → chartTypes-CPj7oOMJ-Cv2ANOse.js} +1 -1
- package/dist/assets/{commonDimensions-BpaqG_u8-bPBJ7BtU.js → commonDimensions-CKs-7p-V-CmlPem1Z.js} +1 -1
- package/dist/assets/{detailCommon-dG26UIR2-Du_tf-0V.js → detailCommon-BJ8iCchG-CdCS4VPM.js} +6 -6
- package/dist/assets/{downloadPdf-B5Tb5dp_-C4780vVv.js → downloadPdf-hPck-AA1-CD5ZG46J.js} +1 -1
- package/dist/assets/{index-CbZTLtvs.js → index-CyJdCOlu.js} +4480 -4253
- package/dist/assets/{mapLoadingInProgressToTreeNode-DOBKyY4b-y1aUwiix.js → mapLoadingInProgressToTreeNode-R394S2in-pIplKgrn.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Bja0zC1h-BFJxO5iY.js → mapSectionWithAcOnlyToTreeNode-B20NECa8-DENXzcIZ.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-BnX1Qa3P-bqHYhPP-.js → mapSpacerToTreeNode-CLYF1Foh-BkgQTnh2.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BTMBlZfj-DW7k0pyS.js → mapTimeframeBalancesToTreeNode-B-iRb2_j-BOYVHL5U.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DRU0rg28-CTqFcFWx.js → mapTimeframeBalancesToTreeNode-fLAswzPX-uvgKr4WV.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CafUd-oV-M5D8OIRq.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CTmIxkdn-rpNZ4fKa.js} +1 -1
- package/dist/assets/{play-icon-CwzVvYsB-DjoVXxSh.js → play-icon-BZYr9mDs-DofqQFSd.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CTIZoP69-DhP0PBP-.js → toCOABalancesWithID-Dsa-tGTi-Bmzakp6x.js} +1 -1
- package/dist/assets/{toChartData-yWFIkpKX-iU9RbLET.js → toChartData-Cp_80Bi6-Dfd3dSx4.js} +1 -1
- package/dist/assets/{treasuryColorHelper-I90KNlm_-OeAa3kjr.js → treasuryColorHelper-CnKoJBRW-CDwAxole.js} +1 -1
- package/dist/assets/{uploadAttachment-BIyTb3QF-BJprEnkX.js → uploadAttachment-Cx3LGzsg-DDC6BFL5.js} +32 -32
- package/dist/assets/{uploadReceipts-CB79ouJi-DqMpy5A5.js → uploadReceipts-CwjPukNh-BNp5wSMb.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-vDWC6AMf-Yo7vRxFj.js +0 -18
- package/dist/assets/ApAgingDetailPage-BZuNGMx_-Hc9KiYIG.js +0 -46
- package/dist/assets/AppBasePage-l_TUUps8-BdZGta7w.js +0 -68
- package/dist/assets/ChargeCardPromoPage-Dp01F4cn-BGnAP75r.js +0 -222
- package/dist/assets/CompleteProfile-D6jHfaC2-BAjYhWRD.js +0 -36
- package/dist/assets/CustomerOnboardingContainerPage-BhS5NmVt-ePZ8Lp4k.js +0 -1
- package/dist/assets/EditPeoplePage-DKJNf1oJ-DT58GFah.js +0 -55
- package/dist/assets/FeaturePreviewPage-BRqSxk9H-C5uU9wQY.js +0 -11
- package/dist/assets/HelpButton-ewiNuwlj-DtcvmbFW.js +0 -28
- package/dist/assets/InsightsSection-BZNwdoG4-DFSwQ90v.js +0 -27
- package/dist/assets/InvitePeoplePage-CJ4KyyxI-DVCbKs7n.js +0 -12
- package/dist/assets/InvoiceUploadSection-Dy_H9a8Y-Dv2LW-0K.js +0 -140
- package/dist/assets/LabeledAddressValue-BVpwGdA2-CIuUAEcq.js +0 -49
- package/dist/assets/LabeledAddressValueField-Eka4fXzu-BBxiflEl.js +0 -45
- package/dist/assets/LabeledDocumentField-BoraKtTI-BrK0QicB.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-elNvxcOB-BMj7fmh2.js +0 -59
- package/dist/assets/LinkJETransactionPage-BpQXs8JH-Bjzy2XV-.js +0 -98
- package/dist/assets/MagicLinkTitleSection-CBYkZ8RD-OqnDMduv.js +0 -17
- package/dist/assets/NotificationsListConfig-BR7QDiGp-C9AjhN7a.js +0 -1
- package/dist/assets/QBOSetupSection-BTOCiyES-cJZzoBZX.js +0 -79
- package/dist/assets/ReimbursementPromoPage-B2uVT4md-0og62qKp.js +0 -112
- package/dist/assets/StatementsPage-Bk_DWBsO-oO_5pc2Z.js +0 -58
- package/dist/assets/TransferDrawerPage-CuQct69A-CI2Fs3ur.js +0 -362
- package/dist/assets/TreasuryStatementsPage-DB1KkguP-Bjz83PUL.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-DbHBl6-e-BaDM3AA5.js +0 -58
- package/dist/assets/TreasuryTransferOrReviewPage-CLJ2x2M1-C0G9A0-P.js +0 -506
- package/dist/assets/Vendor2FAPopup-BVYQk2Yt-CFXnylIF.js +0 -1
- package/dist/assets/ZeniAccountNavBarPieces-CBRZuAIU-8yMtgWMI.js +0 -14
package/dist/assets/{ExpressPayPage-C30-lVTo-6WY6w68k.js → ExpressPayPage-COQrt-KL-sn6b2-XB.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Re,
|
|
1
|
+
import{u as Re,e as Q,M as Y,a as Ke,a2 as De,c7 as Qe,l as O,j as t,aW as et,F as tt,a4 as it,C as x,o as n,k4 as at,k5 as nt,k6 as lt,cd as ze,ca as ot,cD as rt,f7 as dt,f8 as st,cc as ke,fG as ct,k7 as pt,cg as mt,cI as Ve,ch as ut,cJ as Ae,cS as Oe,v as ge,cW as ht,q as u,ap as yt,am as be,c as Ee,B as gt,t as We}from"./index-CyJdCOlu.js";import{b as G,n as d}from"./vendor-CnQcJ2Lu.js";import{Y as xt}from"./LabeledDocumentField-sIz4Fhet-CBqe5ksA.js";import{S as ie}from"./LabeledText-CExeogkg-361xlNV7.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";const ft={progressBarWidth:new x(343,726)},bt=({pageIndex:e})=>{const i=Q(),a=Re(),s=Y.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[s.stateOne,s.stateTwo,s.stateThree];return i==="small"?t.jsxs(vt,{children:[t.jsx(at,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Ct,{children:h.map((p,l)=>t.jsx($t,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Le,{children:p})},l))})]}):t.jsxs(wt,{windowSize:i,children:[t.jsx(nt,{coloredSectionCount:e,totalSections:2,barColor:a.colors.brandColorJade,isFrozen:!1}),t.jsx(St,{children:h.map((p,l)=>t.jsx(jt,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Le,{children:p})},p))})]})},wt=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
margin-top: ${n.sp3};
|
|
@@ -38,18 +38,18 @@ import{u as Re,X as Q,M as _,a as Ke,a2 as De,c4 as Qe,l as O,j as t,aW as et,F
|
|
|
38
38
|
position: relative;
|
|
39
39
|
height: ${e=>`${e.perSectionHeight}%`};
|
|
40
40
|
color: ${e=>e.isRelevant?e.theme.colors.primary:e.theme.colors.grey2};
|
|
41
|
-
`,
|
|
41
|
+
`,I={containerWidth:new x(343,580,726),labelWidth:new x(120,160,160),largeLabelWidth:new x(150,228,228),largeLabelPickerWidth:new x(100,180,180),paddingBottom:new x(u[3],u[2]),labelMarginLeftPicker:new x(u[3],u[4]),labelMarginRightPicker:new x(u[3],u[4]),labelMarginTopPicker:new x(u[2],u[2]),labeledFieldPaddingLeft:new x(u[0],u[0]),labeledFieldPaddingRight:new x(u[2],u[2]),labeledFieldPaddingTop:new x(u[2],u[2]),labeledFieldPaddingBottom:new x(u[2],u[2]),infoLabelPaddingRight:new x(u[0],u[3]),infoLabelMarginTop:new x(u[1],u[0])},V=(e,i)=>`${e}.${i}`,Pt=({sectionId:e,paymentDetails:i,allPaymentMethods:a,paymentToOptions:s,withdrawFromList:h,internationalVerificationStatus:p,fileProps:l,receiptFile:T,deleteFileStatusById:P,updateFileStatusById:f,onClickAddAccount:w})=>{const o=Q(),{spendManagement:D,dateFormat:y,common:C}=Y.getLocalizedStrings(),$=D.billPay.billDetails,X=y.visual.defaultInput,re=D.zeniAccounts.expressPay,de=C.documents,_=I.largeLabelWidth.value(o),[g,Z]=G.useState(!1),H=a.filter(r=>r.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&r.method.includes(O.NEW_INTERNATIONAL_METHOD_SUBTEXT)===!1),k=r=>s.find(m=>m.id===r),N=r=>Ve(k(r)),se=()=>{let r=[];return i?.paymentType?.method.includes("wire")===!0?r=s.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):r=s.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),r},ce=r=>{const m=k(r),j=Y.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(xe,{children:[t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(W,{children:m?.bankRoutingNumberAch??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankName}),t.jsx(W,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankAccountNumber}),t.jsx(W,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(xe,{children:m?.piLabels.map(U=>t.jsxs(q,{children:[t.jsxs(E,{children:[U.name,j.paymentDetails.colon]}),t.jsx(W,{children:U.value})]},U.name))}):t.jsxs(xe,{children:[t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(W,{children:m?.bankRoutingNumberWireTransfer??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.achDetails.bankName}),t.jsx(W,{children:m?.bankName??j.vendorCreation.emptyPlaceholderString})]}),t.jsxs(q,{children:[t.jsx(E,{children:j.vendorCreation.wireDetails.accountNumber}),t.jsx(W,{children:m?.bankAccountNumber??j.vendorCreation.emptyPlaceholderString})]})]}):""};return t.jsxs(t.Fragment,{children:[t.jsx(It,{children:$.paymentDetailsTitle}),t.jsxs(Tt,{windowSize:o,children:[t.jsx(rt,{label:{label:$.withdrawFrom,width:_,style:{marginLeft:I.labelMarginLeftPicker.valuePx(o),marginTop:I.labelMarginTopPicker.valuePx(o),marginRight:I.labelMarginRightPicker.valuePx(o),width:I.largeLabelPickerWidth.value(o)}},style:{paddingTop:I.labeledFieldPaddingTop.valuePx(o),paddingBottom:I.labeledFieldPaddingBottom.valuePx(o),paddingLeft:I.labeledFieldPaddingLeft.valuePx(o),paddingRight:I.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:I.infoLabelPaddingRight.valuePx(o),marginTop:I.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:V(e,"withdrawFrom"),placeholder:ke($.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(r,m)=>st(h,r,m),valueToSubLabels:(r,m)=>dt(h,r,m,!1),defaultValue:{selectedOption:i?.withdrawFrom?.id,allOptions:h.map(r=>({label:r.label,value:r.id}))},textAlignment:"right",registerOptions:{required:!0,validate:r=>r!=null&&!!r.selectedOption}}}),t.jsx(J,{}),t.jsx(ct,{showAdditionalInfoLabel:!1,label:{label:$.amount,width:_},formattedTextField:{type:"number",name:V(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:ke($.amount),returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:r=>r!=null&&r!==0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,shouldHighlightZeroAmount:!0},style:{width:"auto"}}),t.jsx(J,{}),t.jsx(pt,{label:{label:$.paymentMethod,width:I.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:V(e,"paymentMethod"),placeholder:$.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:H,isAdmin:!0,internationalVerificationStatus:p,registerOptions:{required:!0,validate:r=>r!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(J,{}),t.jsx(mt,{label:{label:$.paymentDate,width:I.labelWidth.value(o)},style:{paddingBottom:I.paddingBottom.valuePx(o),width:"auto"},dateField:{name:V(e,"paymentDate"),placeholder:$.paymentDate,dateFormat:X,autoComplete:"off",minDate:O.dateNow(),registerOptions:{required:!0}}}),t.jsx(J,{}),t.jsx(ze,{label:{label:$.paymentTo,width:_},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:V(e,"paymentTo"),placeholder:$.selectAccount,getTooltipInfo:ce,menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:w,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:N},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?se():[]},registerOptions:{required:!0,validate:r=>r?.selectedOption!=null}}}),t.jsx(J,{}),t.jsx(xt,{name:V(e,"receipt"),sizeLimit:ut,deleteFileStatusById:P,updateFileStatusById:f,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:re.reciept,width:_},filemetadataPayload:{documentType:"id_document",purposeId:"business_verification_others",documentSide:"front"},file:T,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:g,updateFilesEntity:l.updateFilesEntity,onEditFileName:l.onEditFileName,onDeleteFile:l.onDeleteFile,onFileSizeError:r=>Z(r),isOptional:!0,style:T!=null?{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}:void 0},V(e,"receipt")),T==null?t.jsx(Ft,{windowSize:o,isError:g,children:de.formatDocumentText10MB}):null,t.jsx(J,{})]})]})},It=d(be)`
|
|
42
42
|
color: ${e=>e.theme.colors.primary};
|
|
43
43
|
margin-bottom: ${n.sp3};
|
|
44
|
-
`,
|
|
44
|
+
`,Tt=d.div`
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
background-color: ${e=>e.theme.colors.grey5};
|
|
48
48
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
49
49
|
box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
50
50
|
border-radius: ${n.sp2};
|
|
51
|
-
width: ${e=>
|
|
52
|
-
`,
|
|
51
|
+
width: ${e=>I.containerWidth.valuePx(e.windowSize)};
|
|
52
|
+
`,J=d.div`
|
|
53
53
|
display: flex;
|
|
54
54
|
flex: 1;
|
|
55
55
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -79,7 +79,7 @@ import{u as Re,X as Q,M as _,a as Ke,a2 as De,c4 as Qe,l as O,j as t,aW as et,F
|
|
|
79
79
|
border-radius: ${n.sp0} ${n.sp0} ${n.sp2} ${n.sp2};
|
|
80
80
|
text-align: ${e=>e.windowSize==="small"?"initial":"right"};
|
|
81
81
|
color: ${e=>e.isError?Ee.important:e.theme.colors.grey1};
|
|
82
|
-
`,Dt={largeLabelWidth:new x(150,210,210)},ae=(e,i)=>`${e}.${i}`,kt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=Q(),l=
|
|
82
|
+
`,Dt={largeLabelWidth:new x(150,210,210)},ae=(e,i)=>`${e}.${i}`,kt=({sectionId:e,vendorTypeList:i,formLocalData:a,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:h})=>{const p=Q(),l=Y.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,T=Dt.largeLabelWidth.value(p),P=G.useRef();G.useEffect(()=>{s?.entityAutoCompleteView.fetchState==="Completed"&&P.current?.(At(s?.entityAutoCompleteView))},[s?.entityAutoCompleteView.fetchState]);const f={vendorSearchAutoCompleteData:s,loadOptions:(y,C)=>{h?.onAutoCompleteInputChange?.(y,"vendor"),P.current=C}},w=f?.vendorSearchAutoCompleteData?.autoCompleteText!=null&&(f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="In-Progress"||f?.vendorSearchAutoCompleteData?.entityAutoCompleteView.fetchState==="Not-Started"),o={defaultOptions:qe(a?.vendorId,a?.vendorName,s?.entityAutoCompleteView),selectedOption:a?.vendorId??a?.vendorName??""},D={valueContainer:y=>({...y,padding:`2px ${p==="small"?n.sp2:n.sp3} !important`,overflow:"unset"}),singleValue:y=>({...y,margin:0}),placeholder:y=>({...y,fontWeight:"normal"})};return t.jsxs(t.Fragment,{children:[t.jsx(Ot,{children:l.recipientSectionTitle}),t.jsx(Lt,{children:t.jsxs(Nt,{children:[t.jsx(lt,{label:{label:l.recipientName,width:T},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ae(e,"recipient"),placeholder:p==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:y=>y,defaultValue:{...o},style:{width:"100%"},customStyleConfig:D,registerOptions:{required:!0,validate:y=>y!=null&&!!y.selectedOption},loadOptions:f?.loadOptions,isOptionsLoading:w,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ae(e,"recipient")),t.jsx(Ne,{}),t.jsx(ze,{label:{label:l.recipientType,width:T},singleSelectField:{singleSelect:{name:ae(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:y=>i.find(C=>C.code===y)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:a?.vendorType,allOptions:i.map(y=>y.code)},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(ot,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:T},text:{type:"email",name:ae(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},qe=(e,i,a)=>{if(e==null)return[];const s=a?.vendor?.find(h=>h.id===e);return s!=null||e!=null?[{label:s?.name??i??e??"",value:e??i??""}]:[]},At=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Ot=d(be)`
|
|
83
83
|
color: ${e=>e.theme.colors.primary};
|
|
84
84
|
margin-bottom: ${n.sp3};
|
|
85
85
|
`,Lt=d.div`
|
|
@@ -98,7 +98,7 @@ import{u as Re,X as Q,M as _,a as Ke,a2 as De,c4 as Qe,l as O,j as t,aW as et,F
|
|
|
98
98
|
background-color: ${e=>e.theme.colors.grey3};
|
|
99
99
|
min-height: 1px;
|
|
100
100
|
max-height: 1px;
|
|
101
|
-
`,oe={containerWidth:new x(343,580,726),largeLabelWidth:new x(150,215,215),reviewContainerMarginLeft:new x(u[3],u[6]),reviewContainerMarginRight:new x(u[3],u[8])},Mt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=Q(),p=oe.largeLabelWidth.value(h),{billPay:l}=
|
|
101
|
+
`,oe={containerWidth:new x(343,580,726),largeLabelWidth:new x(150,215,215),reviewContainerMarginLeft:new x(u[3],u[6]),reviewContainerMarginRight:new x(u[3],u[8])},Mt=({vendorName:e,reviewDetails:i,paymentToOptions:a,style:s})=>{const h=Q(),p=oe.largeLabelWidth.value(h),{billPay:l}=Y.getLocalizedStrings().spendManagement,{dateFormat:T,common:P}=Y.getLocalizedStrings(),f=l.billDetails,w=i?.paymentType,o=T.visual.MMMDCommaYYYYformat,D={amount:i?.amount?.amount??0,currencyCode:P.currency.currencyCode,currencySymbol:P.currency.currencySymbol},y=Ve(a.find(X=>X.id===i?.paymentToAccountId)),C=i?.paymentDate,$=Ae(w?.method??"");return t.jsx(Wt,{children:t.jsxs(qt,{windowSize:h,style:s,children:[t.jsxs(_t,{children:[t.jsx(ne,{children:f.pay}),t.jsx(ne,{children:t.jsx(Oe,{amount:D,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ne,{children:f.to}),t.jsx(ne,{children:e})]}),t.jsxs(Yt,{windowSize:h,children:[t.jsx(ie,{label:{label:f.withdrawFrom,width:p},style:{width:"auto",gap:u[3]},value:i?.withdrawFrom!=null?ht(i.withdrawFrom,h):P.strings.empty}),t.jsx(fe,{}),t.jsx(ie,{label:{label:f.paymentMethod,width:p},style:{width:"auto"},value:Ae(w?.method??"")}),t.jsx(fe,{}),C!=null?t.jsxs(t.Fragment,{children:[t.jsx(ie,{label:{label:f.paymentDate,width:p},style:{width:"auto"},value:C.format(o),additionalInfoLabel:`${f.estimatedArrival}${O.zeniDate(O.getNextNthWorkingDay(C.toDate(),[0,6],w?.maxPeriod.value??0).toDateString()).format(o)} - (${$.length>0?`${$} `:""}${f.deliveryTimeLabel} = ${w?.maxPeriod.value??"0"} ${f.deliveryTimeUnits})`}),t.jsx(fe,{})]}):null,t.jsx(ie,{label:{label:f.paymentTo,width:p},style:{width:"auto"},value:y??""})]}),t.jsx(Rt,{children:t.jsxs(zt,{windowSize:h,children:[t.jsx(Vt,{children:t.jsx(Bt,{children:l.paymentDetails.total})}),t.jsx(Et,{children:t.jsx(Oe,{amount:O.toAmount(D.amount,D.currencyCode,D.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},Bt=d.div``,Rt=d.div`
|
|
102
102
|
display: flex;
|
|
103
103
|
width: 100%;
|
|
104
104
|
box-sizing: border-box;
|
|
@@ -135,7 +135,7 @@ import{u as Re,X as Q,M as _,a as Ke,a2 as De,c4 as Qe,l as O,j as t,aW as et,F
|
|
|
135
135
|
flex-direction: column;
|
|
136
136
|
margin-left: ${e=>oe.reviewContainerMarginLeft.valuePx(e.windowSize)};
|
|
137
137
|
margin-right: ${e=>oe.reviewContainerMarginRight.valuePx(e.windowSize)};
|
|
138
|
-
`,
|
|
138
|
+
`,Yt=d.div`
|
|
139
139
|
display: flex;
|
|
140
140
|
flex-direction: column;
|
|
141
141
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -151,13 +151,13 @@ import{u as Re,X as Q,M as _,a as Ke,a2 as De,c4 as Qe,l as O,j as t,aW as et,F
|
|
|
151
151
|
background-color: ${e=>e.theme.colors.grey3};
|
|
152
152
|
min-height: 1px;
|
|
153
153
|
max-height: 1px;
|
|
154
|
-
`,
|
|
154
|
+
`,_t=d.div`
|
|
155
155
|
display: flex;
|
|
156
156
|
`,ne=d(be)`
|
|
157
157
|
display: flex;
|
|
158
158
|
color: ${e=>e.theme.colors.primary};
|
|
159
159
|
margin-right: ${n.sp1};
|
|
160
|
-
`,Me="expressPayPage",
|
|
160
|
+
`,Me="expressPayPage",Ht=e=>`${e}_form`,L="recipientDetails",F="paymentDetails",le={buttonWidth:new x(160,140),largeButtonWidth:new x(166,166)},oi=({expressPayDetails:e,fileProps:i,analytics:a,accountId:s,onClickAddAccount:h,onSaveVendor:p,onVendorSelected:l,updateSelectedVendorForCreate:T,onBackClick:P,saveVendorDetailLocalData:f,saveExpressPayLocalData:w,resetVendorSaveStatus:o,onSchedulePayment:D,initializeVendorAddress:y,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de})=>{const{vendorViewDetails:_,expressPayLocalData:g,vendorTypeList:Z,allPaymentMethods:H,paymentToOptions:k,withdrawFromList:N,internationalWireOnboardingStatus:se,deleteFileStatusById:ce,updateFileStatusById:r,submitStatus:m,receiptFile:j,vendorSaveStatus:U}=e,[v,ee]=G.useState(0),Ye=Re(),K=Q(),{common:we,spendManagement:_e}=Y.getLocalizedStrings(),pe=we.footer,ve=we.currency,me=_e.zeniAccounts.expressPay,{editVendorState:Se,newVendorState:je}=_,M=g?.vendorId!=null?Se?.vendorDetailLocalData:je?.vendorDetailLocalData,Ce=Object.assign({},Se??je),He=M?.vendorName,$e=N.find(c=>c.id===s),te=Ke({mode:"onBlur",reValidateMode:"onChange",defaultValues:Be(Z,N,k,$e,H,M,g,j,C?.entityAutoCompleteView),values:Be(Z,N,k,$e,H,M,g,j,C?.entityAutoCompleteView)}),Pe=De(Ce.saveStatus?.fetchState),Ie=De(m);G.useEffect(()=>{const c=te.watch((S,{name:b})=>{b!=null&&S!=null&&Qe(()=>Ue(b,S))});return()=>{c.unsubscribe()}}),G.useEffect(()=>{Pe==="In-Progress"&&U==="Completed"&&(v===0?(ee(1),o?.(g?.vendorId)):v===1&&ee(2)),Ie==="In-Progress"&&m==="Completed"&&P(g?.vendorId)},[Pe,U,v,o,g?.vendorId,Ie,m,P]);const Ue=async(c,S)=>{if(c!=="recipientDetails.recipientEmail")if(c==="recipientDetails.recipient"){const b=S[L].recipient.selectedOption,A=C?.entityAutoCompleteView.vendor.find(B=>B.zeniId===b);Je(S),y(),M?.vendorId!==b&&A!=null&&(l?.(b),he(S,!1,k,b))}else if(c.includes("recipient"))ue(S);else{const b=S[F].paymentMethod?.method,A=g?.paymentType?.method,B=b!=null&&A!=null&&(b.toLowerCase().includes("ach")&&A.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&A.toLowerCase().includes("ach"));he(S,B,k,g?.vendorId)}},Je=c=>{const S=c[L].recipient.selectedOption,b=C?.entityAutoCompleteView.vendor.find(A=>A.id===S)!=null;if(S!=null&&b===!0){T?.(S),he(c,!1,k,S);return}ue(c,!0)},ue=(c,S)=>{const b=M?.vendorId,A=C?.entityAutoCompleteView.vendor.find(ye=>ye.zeniId===b)!=null,B=Ut(c,A===!0?b:void 0,M,S);f?.(B,b)},he=(c,S,b,A)=>{const B=(()=>{let R=[];return c[F].paymentMethod?.method.includes("wire")===!0?R=b.filter(z=>!!z.bankRoutingNumberWireTransfer).map(z=>z.id):R=b.filter(z=>!!z.bankRoutingNumberAch).map(z=>z.id),R})(),ye=b.find(R=>R.id===c[F]?.paymentTo?.selectedOption),Ze={vendorId:A,amount:{amount:c[F].amount,currencyCode:ve.currencyCode,currencySymbol:ve.currencySymbol},paymentDate:c[F].paymentDate?O.zeniDate(c[F].paymentDate.toString()):O.dateNow(),paymentType:c[F]?.paymentMethod!=null?c[F]?.paymentMethod:void 0,paymentToAccountId:S?B[0]:ye?.id,withdrawFrom:N.find(R=>R.id===c[F]?.withdrawFrom?.selectedOption),receiptFileId:c[F].receipt?.fileId};w?.(Ze)},Te=te.handleSubmit(()=>{if(v===0||v===1){a.trackExpressPayNextClick(v===0?"Recipient Details":"Payment Details");const c=te.getValues();ue(c),p(g?.vendorId)}else a.trackExpressPayScheduleClick(),D()}),Ge=()=>{v===2?ee(1):P(g?.vendorId)},Xe=()=>{v===0?P(g?.vendorId):ee(v===1?0:1)},Fe={withdrawFrom:g?.withdrawFrom,paymentTo:g?.paymentToAccountId!=null?k.find(c=>c.id===g?.paymentToAccountId):void 0,paymentDate:g?.paymentDate,paymentType:g?.paymentType??H?.[0],recipientAmount:g?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(et,{title:me.pageTitle,onBackClick:Xe,backgroundColor:Ye.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Jt,{windowSize:K,children:[t.jsx(bt,{pageIndex:v}),t.jsx(tt,{...te,children:t.jsx("form",{id:Me,onSubmit:Te,children:v===0?t.jsx(kt,{sectionId:L,vendorTypeList:Z,formLocalData:M,vendorSearchAutoCompleteData:C,vendorSearchAutoCompleteActions:$}):v===1?t.jsx(Pt,{sectionId:F,paymentDetails:Fe,paymentToOptions:k,allPaymentMethods:H,withdrawFromList:N,internationalVerificationStatus:se,fileProps:{...i,onEditFileName:X,onDeleteFile:re,updateFilesEntity:de},deleteFileStatusById:ce,updateFileStatusById:r,receiptFile:j,onClickAddAccount:()=>{const c=Fe?.paymentType;c!=null&&h(c)}}):v===2?t.jsx(Mt,{reviewDetails:g,paymentToOptions:k,vendorName:He}):null})})]}),t.jsx(it,{formId:Ht(Me),style:{width:"100%"},primaryBtn:{label:v===2?O.dateNow().isSame(g?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:v===0||v===1?Ce.saveStatus?.fetchState==="In-Progress":m==="In-Progress",style:{width:v===2?le.largeButtonWidth.value(K):le.buttonWidth.value(K),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Te()}},cancelBtn:{label:v===2?pe.edit:pe.cancel,style:{width:v===2?le.largeButtonWidth.value(K):le.buttonWidth.value(K),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:Ge}})]})},Be=(e,i,a,s,h,p,l,T,P)=>{const f=(()=>{let w=[];return l?.paymentType?.method.includes("wire")===!0?w=a.filter(o=>!!o.bankRoutingNumberWireTransfer).map(o=>o.id):w=a.filter(o=>!!o.bankRoutingNumberAch).map(o=>o.id),w})();return{[L]:{recipient:{defaultOptions:qe(p?.vendorId,p?.vendorName,P),selectedOption:p?.vendorId??p?.vendorName??""},recipientEmail:p?.contacts?.[0]?.email??"",recipientName:p?.vendorName??"",recipientType:{allOptions:e.map(w=>w.code),selectedOption:p?.vendorType}},[F]:{paymentMethod:l?.paymentType??h?.[0],withdrawFrom:{selectedOption:l?.withdrawFrom?.id??s?.id??i[0]?.id,allOptions:i.map(w=>({label:w.label,value:w.id}))},amount:l?.amount.amount??0,paymentDate:l?.paymentDate?.toDate()??O.getNextNthWorkingDay(O.dateNow().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?f:[],selectedOption:l?.paymentToAccountId??f[0]},receipt:T}}};function Ut(e,i,a,s){const h=e[L].recipient.defaultOptions.find(p=>p.value===e[L].recipient.selectedOption);return{vendorType:s===!0?void 0:e[L].recipientType.selectedOption,vendorId:i,vendorName:h?.label??a?.vendorName,contacts:s===!0?[]:[{fullName:"",email:e[L].recipientEmail,phone:""}],bankAccountIds:s===!0?[]:a?.bankAccountIds??[],paymentInstrumentIds:s===!0?[]:a?.paymentInstrumentIds??[],vendorOwner:s===!0?void 0:a?.vendorOwner,isVendor1099:a?.isVendor1099,documentIds:a?.documentIds??[],fileIdsToBeDeleted:a?.fileIdsToBeDeleted??[],countryCode:s===!0?void 0:a?.countryCode,currencyCode:a?.currencyCode,currencySymbol:s===!0?void 0:a?.currencySymbol,deleteFileStatusById:a?.deleteFileStatusById??{},updateFileStatusById:a?.updateFileStatusById??{},recommendedCategory:a?.recommendedCategory,recommendedClass:a?.recommendedClass,isCategoryUpdateSelected:a?.isCategoryUpdateSelected??!1,isClassUpdateSelected:a?.isClassUpdateSelected??!1,isCategoryRecommendationPrefilled:a?.isCategoryRecommendationPrefilled??!0,isClassRecommendationPrefilled:a?.isClassRecommendationPrefilled??!0}}const Jt=d.div`
|
|
161
161
|
display: flex;
|
|
162
162
|
flex-wrap: wrap;
|
|
163
163
|
height: 100%;
|
|
@@ -165,4 +165,4 @@ import{u as Re,X as Q,M as _,a as Ke,a2 as De,c4 as Qe,l as O,j as t,aW as et,F
|
|
|
165
165
|
align-items: center;
|
|
166
166
|
background-color: ${e=>e.theme.colors.grey4};
|
|
167
167
|
margin-top: ${e=>e.windowSize==="small"?n.sp3:0};
|
|
168
|
-
`;export{oi as default,
|
|
168
|
+
`;export{oi as default,Ht as formUniqueName};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{u as w,e as f,M as k,a8 as s,c as p,j as e,bS as y,C as n,bU as x,bV as _,q as c}from"./index-CyJdCOlu.js";import{n as l}from"./vendor-CnQcJ2Lu.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";const i={popupWidth:new n(200,468,468,468),buttonWidth:new n(140,160,160,160),popupContainerLeft:new n(c[0],c[0],255),popupContainerWidth:new n(100,100,85)},z=l.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex: 1 1 auto;
|
|
4
|
+
min-height: 100%;
|
|
5
|
+
width: 100%;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
background-color: ${t=>t.theme.colors.grey4};
|
|
8
|
+
`,C=l.img`
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
`,W={mobile:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-mobile",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-mobile",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-mobile",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-mobile",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-mobile",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-mobile",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",overview:"",ai_cfo:""},normal:{dashboard:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dashboard-view-normal",reports:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reports-view-normal",forecast:"https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-view-normal",bills:"https://storage.googleapis.com/zeni-apis.appspot.com/images/bills-view-normal",reimbursements:"https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-view-normal",vendors:"https://storage.googleapis.com/zeni-apis.appspot.com/images/vendors-view-normal",people:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",overview:"",ai_cfo:""}};function q({menuItem:t,onDemoClick:g,onGoBack:d}){const a=w(),o=f(),u=`${W[o==="small"?"mobile":"normal"][t]}-${a.mode}.png`,{featurePreview:r}=k.getLocalizedStrings(),m=r.popups[t],h=a.mode==="light"?new s(p.backgroundGradient1Light):new s(p.backgroundGradient1Dark),b=a.mode==="light"?new s(p.backgroundGradient2Light):new s(p.backgroundGradient2Dark),v={onOkClick:()=>{g()},onCancelClick:()=>{d()}};return e.jsxs(z,{children:[e.jsx(C,{src:u,alt:"feature-preview",loading:"lazy"}),e.jsx(y,{titleComponent:e.jsx(_,{children:m.title}),descriptionComponent:e.jsx(x,{children:m.text}),primaryButtonText:r.scheduleDemo,secondaryButtonText:r.goBack,action:v,primaryButtonWidth:i.buttonWidth.value(o),secondaryButtonWidth:i.buttonWidth.value(o),style:{background:`radial-gradient(50% 50% at 50% 50%, ${h} 0%, ${b} 100%)`,backdropFilter:"blur(2px)",width:i.popupContainerWidth.valuePercentage(o),left:i.popupContainerLeft.value(o)},containerStyle:{border:`1px solid ${a.colors.grey1}`,minWidth:i.popupWidth.valuePx(o)}})]})}export{q as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l,
|
|
1
|
+
import{j as l,e as q,M as Y,ck as A,cs as G,u as ee,cq as K,C as S,fK as Z,o as i,_ as M,ei as ce,E as le,fD as pe,fE as ue,k as he,c as u,q as g,g4 as ge,cr as be,ct as ye,p as ve,b2 as we,v as _,dk as $e,b3 as me,b0 as ke}from"./index-CyJdCOlu.js";import{b as V,n as d}from"./vendor-CnQcJ2Lu.js";const v={width:new S(343,580,726),height:new S(g[6],g[6]),controlHeight:new S(g[6],g[6]),paddingLeftRight:new S(g[3],g[4]),paddingTop:new S(g[3],g[3]),paddingBottom:new S(g[3],g[2]),labelMarginRight:new S(g[3],g[4])};function je({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=q(),{formState:{errors:j}}=A(),f=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(Te,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:T,"data-testid":M("labeled-multi-text-field",t.name),children:[l.jsx(K,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(Le,{labelWidth:o.width,children:[l.jsxs(ie,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||f&&t.additionalErrorLabel?l.jsx(oe,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Oe,{children:[l.jsx(se,{}),l.jsx(Se,{}),l.jsx(se,{})]}),l.jsxs(ie,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(oe,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -95,7 +95,7 @@ import{j as l,X as q,M as Y,ch as A,cp as G,u as ee,cn as J,C as S,fI as Z,o as
|
|
|
95
95
|
color: ${e=>e.isError?u.important:e.theme.colors.hero};
|
|
96
96
|
white-space: pre-line;
|
|
97
97
|
margin-top: ${i.sp1};
|
|
98
|
-
`;function Ie({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=q(),{formState:{errors:j}}=A(),f=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(Ee,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:T,children:[l.jsx(
|
|
98
|
+
`;function Ie({isDisabled:e,label:o,firstText:t,secondText:p,style:$,isFieldError:k}){const m=q(),{formState:{errors:j}}=A(),f=G(j,t.name),T=G(j,p.name),r=ee();return l.jsxs(Ee,{size:m,style:$,isDisabled:e!=null,isErrorFirstText:f,isErrorSecondText:T,children:[l.jsx(K,{isDisabled:e,label:o.label,style:{marginRight:v.labelMarginRight.value(m),width:o.width??"auto",color:r.colors.champion}}),l.jsxs(De,{labelWidth:o.width,children:[p.hideField?null:l.jsxs(Ce,{children:[l.jsx(de,{}),l.jsx(ze,{isAdditionalLabel:(!!t.additionalInfoLabel&&t.isDisabled)===!0}),l.jsx(de,{})]}),l.jsxs(Ue,{children:[l.jsxs(ae,{className:"firstField",isDisabled:t.isDisabled,children:[l.jsx(Z,{type:t.type,name:t.name,placeholder:t.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:t.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:t.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),t.additionalInfoLabel&&t.isDisabled||f&&t.additionalErrorLabel?l.jsx(ne,{isError:f,children:f?t.additionalErrorLabel:t.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(ae,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(Z,{type:p.type,name:p.name,placeholder:p.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:p.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:p.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:v.controlHeight.value(m),cursor:"inherit",backgroundColor:r.colors.grey3,borderRadius:i.sp1,color:r.colors.primary},hoverBgColor:r.colors.background,bgColor:r.colors.background,disabledColor:r.colors.background,isFieldError:k,defaultValue:t.defaultValue}),l.jsx(ne,{isError:T,children:p.additionalInfoLabel})]})]})]})]})}const Ee=d.div`
|
|
99
99
|
display: flex;
|
|
100
100
|
flex-direction: column;
|
|
101
101
|
align-items: flex-start;
|
|
@@ -165,20 +165,20 @@ import{j as l,X as q,M as Y,ch as A,cp as G,u as ee,cn as J,C as S,fI as Z,o as
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
`,
|
|
168
|
+
`,De=d.div`
|
|
169
169
|
display: flex;
|
|
170
170
|
width: 100%;
|
|
171
171
|
flex-grow: 1;
|
|
172
172
|
input {
|
|
173
173
|
text-align: left;
|
|
174
174
|
}
|
|
175
|
-
`,
|
|
175
|
+
`,Ue=d.div`
|
|
176
176
|
display: flex;
|
|
177
177
|
flex-direction: column;
|
|
178
178
|
width: 100%;
|
|
179
179
|
`,ae=d.div`
|
|
180
180
|
width: inherit;
|
|
181
|
-
`,
|
|
181
|
+
`,Ce=d.div`
|
|
182
182
|
align-items: center;
|
|
183
183
|
display: flex;
|
|
184
184
|
flex-direction: column;
|
|
@@ -198,7 +198,7 @@ import{j as l,X as q,M as Y,ch as A,cp as G,u as ee,cn as J,C as S,fI as Z,o as
|
|
|
198
198
|
color: ${e=>e.isError?u.important:e.theme.colors.hero};
|
|
199
199
|
white-space: pre-line;
|
|
200
200
|
margin-top: ${i.sp1};
|
|
201
|
-
`;function pl(e){return q()==="small"?l.jsx(Ie,{...e}):l.jsx(je,{...e})}const
|
|
201
|
+
`;function pl(e){return q()==="small"?l.jsx(Ie,{...e}):l.jsx(je,{...e})}const Fe=({allOptions:e,selectedValue:o,name:t,onSelectedValueChanged:p,valueToLabel:$,disable:k=!1,defaultMenuIsOpen:m,placeholderLabel:j})=>{const{formState:{errors:f}}=A(),T=G(f,t??""),r=ee(),[O,E]=V.useState(void 0),[b,H]=V.useState(m),z=n=>n.map(w=>F(w)),F=V.useCallback(n=>({value:n,label:$(n)}),[$]);V.useEffect(()=>{const n=o==null?void 0:F(o);E(n?.label===""?void 0:n)},[o,$,F]);const W=n=>{p(n)},I=r.colors.grey5,B=r.colors.grey5,N=_.smallRegular,D=_.extraSmallRegular,R={control:(n,{selectProps:w})=>({...n,border:0,height:g[6],backgroundColor:w.menuIsOpen===!0?r.colors.background:T===!0?u.importantLight:r.colors.background,boxShadow:B,":hover":{fill:r.colors.primary,backgroundColor:r.colors.background,borderColor:"none"},width:"auto",minHeight:"auto",cursor:"pointer"}),container:n=>({...n,backgroundColor:B,width:"100%"}),singleValue:(n,{data:w})=>({...n,alignItems:"center",margin:`${i.sp0}`,height:`${i.sp4}`,color:w.value==="require_approval"?u.alertDark:u.successDark,..._.standardRegular.cssObject,width:"100%",textOverflow:"ellipsis"}),valueContainer:(n,{selectProps:w})=>({...n,maxWidth:"100%",cursor:"pointer",...D,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:w.menuIsOpen===!1?"flex-end":"flex-start",alignItems:"center",flexWrap:"nowrap",paddingLeft:i.sp3,marginRight:i.sp3,width:" -webkit-fill-available"}),menu:n=>({...n,backgroundColor:I,borderRadius:4,boxShadow:`${i.sp0} 2px ${i.sp2} ${r.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:10,margin:0,width:"100%",WebkitJustifyContent:"unset",overflow:"hidden"}),menuList:n=>({...n,borderRadius:10}),placeholder:n=>({...n,width:"100%",height:g[4],..._.standardRegular.cssObject,color:T===!0?u.important:r.colors.grey1,display:"flex",justifyContent:"flex-start",alignItems:"center"}),option:(n,{isSelected:w,isFocused:U,isDisabled:C,data:s})=>({...n,...N,height:g[6],color:s.value==="require_approval"?u.alertDark:u.successDark,backgroundColor:w||U?r.colors.background:I,cursor:C?"not-allowed":"pointer",borderTop:s.topBorder===!0?`1px solid ${u.optionBorderLight}`:"none",":hover":{backgroundColor:r.colors.background},":first-div":{width:"100%"},"& label":{flex:1,paddingRight:"10px",cursor:C?"not-allowed":w?"default":"pointer"},zIndex:2}),input:(n,w)=>({color:r.colors.primary,overflow:"hidden",zIndex:2,height:g[4],width:w.selectProps.menuIsOpen?"auto":"0",position:"absolute",display:"flex",alignItems:"center",..._.standardRegular.cssObject})};return l.jsx(ve,{onClickAway:()=>{H(!1)},children:l.jsx(we,{isMulti:!1,onChange:n=>{W(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:O,value:O,placeholder:j,components:{Option:Re,DropdownIndicator:Ae,IndicatorSeparator:He,SingleValue:Ne},hideSelectedOptions:!1,styles:R,options:z(e),isClearable:!1,isSearchable:!1,isDisabled:k,defaultMenuIsOpen:b,"data-testid":M("single-select",t)},$e())})},Ne=({children:e,...o})=>l.jsx(me.SingleValue,{...o,children:e}),Re=e=>{const{data:o,options:t,isFocused:p,label:$,isSelected:k}=e,m=t.find(f=>f.value===o.value),j=typeof o.label=="string"?o.label:o.value;return l.jsxs(me.Option,{...e,children:[l.jsxs(Pe,{"data-testid":M("single-select-option",j),children:[l.jsxs(Ve,{children:[l.jsx("label",{children:$}),p===!0&&m?.id!=null&&l.jsx(Me,{children:m.id})]}),k?l.jsx(Be,{children:l.jsx(qe,{className:"tick-icon"})}):null]}),m.additionalInfo!==""&&l.jsx(l.Fragment,{children:m.additionalInfo})]})},Pe=d.div`
|
|
202
202
|
display: flex;
|
|
203
203
|
flex-direction: row;
|
|
204
204
|
align-items: center;
|
|
@@ -207,7 +207,7 @@ import{j as l,X as q,M as Y,ch as A,cp as G,u as ee,cn as J,C as S,fI as Z,o as
|
|
|
207
207
|
width: 100%;
|
|
208
208
|
display: flex;
|
|
209
209
|
align-items: center;
|
|
210
|
-
`,
|
|
210
|
+
`,Me=d.div`
|
|
211
211
|
display: flex;
|
|
212
212
|
color: ${e=>e.theme.colors.primary};
|
|
213
213
|
align-items: center;
|
|
@@ -218,14 +218,14 @@ import{j as l,X as q,M as Y,ch as A,cp as G,u as ee,cn as J,C as S,fI as Z,o as
|
|
|
218
218
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
219
219
|
border-radius: ${i.sp1};
|
|
220
220
|
margin: 0 ${i.sp5} 0 ${i.sp3};
|
|
221
|
-
`,
|
|
221
|
+
`,Be=d.div`
|
|
222
222
|
display: flex;
|
|
223
223
|
`,qe=d(ke)`
|
|
224
224
|
width: ${i.sp3};
|
|
225
225
|
height: ${i.sp3};
|
|
226
226
|
cursor: pointer;
|
|
227
227
|
color: ${e=>e.theme.colors.primary};
|
|
228
|
-
`,Ae=()=>null,He=()=>null,We=({name:e,registerOptions:o,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:m}=A(),j=t.allOptions.map(r=>r.value??""),f=r=>t.allOptions.filter(O=>O.value===r)[0]?.label??"",T=r=>t.allOptions.find(O=>O.value===r.value)?.value;return l.jsx(ye,{name:e,control:m,defaultValue:t,rules:o,"data-testid":
|
|
228
|
+
`,Ae=()=>null,He=()=>null,We=({name:e,registerOptions:o,value:t,isDisabled:p,defaultMenuIsOpen:$,placeholderLabel:k})=>{const{control:m}=A(),j=t.allOptions.map(r=>r.value??""),f=r=>t.allOptions.filter(O=>O.value===r)[0]?.label??"",T=r=>t.allOptions.find(O=>O.value===r.value)?.value;return l.jsx(ye,{name:e,control:m,defaultValue:t,rules:o,"data-testid":M("single-select-field",e),render:({field:{value:r,onChange:O}})=>l.jsx(Fe,{allOptions:j,onSelectedValueChanged:E=>{O({allOptions:t.allOptions,selectedOption:T(E)})},valueToLabel:E=>f(E),selectedValue:r.selectedOption,disable:p,name:e,defaultMenuIsOpen:$,placeholderLabel:k})})},fe=V.memo(We,(e,o)=>le(e,o)),L={width:new S(343,580,726),height:new S(g[6],g[6]),paddingLeftRight:new S(g[3],g[4]),paddingTopBottom:new S(g[3],g[3]),labelMarginRight:new S(g[3],g[4])},J=(e,o)=>`${e}.${o}`;function _e({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:O,allAccountingClasses:E,stepsInfo:b,productType:H}){const z=q(),{commonSetUp:{approval:F}}=Y.getLocalizedStrings(),W=T.length+O.length,I=f.map(s=>s.user),{control:B,setValue:N}=A(),{fields:D,replace:R}=ce({name:t,control:B}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,I,r);N(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);N(t,h)};V.useEffect(()=>{const s=D.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:I,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));R(a)}},[I,b,D,R,r]);const U=b[b.length-1],C=o!=null||W===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(Ge,{size:z,style:p,isDisabled:!1,isError:!1,children:[l.jsx(K,{label:e.label,style:{marginRight:L.labelMarginRight.value(z),width:"auto"}}),b.map((s,h)=>l.jsxs(Ze,{labelWidth:e.width,children:[l.jsxs(Ye,{children:[h+1,"."]}),l.jsx(Xe,{children:l.jsx(fe,{name:J(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j})}),l.jsxs(Qe,{children:[l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,H);x.length>0&&y.push(x),c.accountingClassIDs.forEach(X=>{const P=E.find(Q=>Q.classId===X);P!=null&&P.className&&y.push(P.className)})}return y}}),s.stepIndex>0&&l.jsx(Je,{onClick:()=>w(h)})]})]},D[h]?.id||h)),l.jsx(Ke,{disabled:C,children:l.jsx(he,{onClick:n,style:{padding:`${i.sp1} ${i.sp2}`,borderRadius:i.sp1},label:F.addStep,size:"small",disabled:C,"data-testid":M("add-step-button-web")})})]})}const xe=(e,o,t)=>({stepIndex:e,actors:{allUsers:o,selectedUsers:[],allNonUsers:te(t),selectedNonUsers:[]},stepType:{allOptions:re,selectedOption:void 0}}),te=e=>{const o=Y.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(t=>({label:o[t].label,value:t,position:"top",subtitles:[o[t].subTitle]}))},re=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],Ge=d.div`
|
|
229
229
|
display: flex;
|
|
230
230
|
flex-direction: column;
|
|
231
231
|
align-items: flex-start;
|
|
@@ -273,7 +273,7 @@ import{j as l,X as q,M as Y,ch as A,cp as G,u as ee,cn as J,C as S,fI as Z,o as
|
|
|
273
273
|
align-items: baseline;
|
|
274
274
|
flex-grow: 1;
|
|
275
275
|
gap: ${i.sp3};
|
|
276
|
-
`,
|
|
276
|
+
`,Je=d(be)`
|
|
277
277
|
width: ${i.sp3};
|
|
278
278
|
height: ${i.sp3};
|
|
279
279
|
cursor: pointer;
|
|
@@ -281,7 +281,7 @@ import{j as l,X as q,M as Y,ch as A,cp as G,u as ee,cn as J,C as S,fI as Z,o as
|
|
|
281
281
|
&:hover {
|
|
282
282
|
color: ${u.important};
|
|
283
283
|
}
|
|
284
|
-
`,
|
|
284
|
+
`,Ke=d.div`
|
|
285
285
|
width: 100%;
|
|
286
286
|
display: flex;
|
|
287
287
|
justify-content: flex-end;
|
|
@@ -303,7 +303,7 @@ import{j as l,X as q,M as Y,ch as A,cp as G,u as ee,cn as J,C as S,fI as Z,o as
|
|
|
303
303
|
`,Ye=d.div`
|
|
304
304
|
width: ${i.sp5};
|
|
305
305
|
color: ${e=>e.theme.colors.hero};
|
|
306
|
-
`;function el({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:O,allAccountingClasses:E,stepsInfo:b,productType:H}){const z=q(),{commonSetUp:{approval:
|
|
306
|
+
`;function el({label:e,isDisabled:o,sectionId:t,style:p,approversPlaceholder:$,notifiersPlaceholder:k,userSelectPlaceholder:m,approveNotifyPlaceholder:j,allUserWithRoles:f,filteredApprovers:T,allAttributes:r,filteredAttributes:O,allAccountingClasses:E,stepsInfo:b,productType:H}){const z=q(),{commonSetUp:{approval:F}}=Y.getLocalizedStrings(),W=T.length+O.length,I=f.map(s=>s.user),{control:B,setValue:N}=A(),{fields:D,replace:R}=ce({name:t,control:B}),n=()=>{const s=b[b.length-1].stepIndex,h=xe(s+1,I,r);N(t,[...b,h])},w=s=>{const h=b.filter((a,c)=>c!==s);N(t,h)};V.useEffect(()=>{const s=D.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),h=b.map(a=>{const{actors:c,stepType:y}=a;return{selectedUsers:c.selectedUsers.map(x=>x.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!le(s,h)){const a=b.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:I,allNonUsers:te(r)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:re}}));R(a)}},[I,b,D,R,r]);const U=b[b.length-1],C=o!=null||W===0||U.actors.selectedUsers.length+U.actors.selectedNonUsers.length===0||!U.stepType.selectedOption;return l.jsxs(ll,{size:z,style:p,isDisabled:!1,isError:!1,children:[l.jsx(K,{label:e.label,style:{marginRight:L.labelMarginRight.value(z),width:"auto"}}),b.map((s,h)=>l.jsxs(tl,{labelWidth:e.width,children:[l.jsxs(dl,{children:[h+1,"."]}),l.jsxs(al,{children:[l.jsx(fe,{name:J(`${t}.${s.stepIndex}`,"stepType"),value:s.stepType,isDisabled:h===0,defaultMenuIsOpen:h===1&&s.stepType.selectedOption==null,registerOptions:{required:!0,validate:a=>a!=null&&a.selectedOption!=null||o!=null},placeholderLabel:j}),l.jsxs(sl,{children:[l.jsx(ol,{children:l.jsx(pe,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:s.stepType.selectedOption==null?m:s.stepType.selectedOption==="require_approval"?$:k,name:J(`${t}.${s.stepIndex}`,"actors"),value:s.actors,operator:s.stepType!=null&&s.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:a=>a!=null&&(a.selectedUsers!=null&&a.selectedUsers.length>0||a.selectedNonUsers!=null&&a.selectedNonUsers.length>0)||o!=null},valueToSubtitle:a=>{const c=f.map(x=>x.role).find(x=>x?.userId===a),y=[];if(c!=null){const x=ue(c.userRoles,H);x.length>0&&y.push(x),c.accountingClassIDs.forEach(X=>{const P=E.find(Q=>Q.classId===X);P!=null&&P.className&&y.push(P.className)})}return y}})}),s.stepIndex>0&&l.jsx(rl,{onClick:()=>w(h),"data-testid":M("delete-step",h.toString())})]})]})]},D[h]?.id||h)),l.jsx(il,{disabled:C,children:l.jsx(he,{onClick:n,style:{width:"100%"},label:F.addStep,size:"standard",variant:"light_transparent",disabled:C,"data-testid":M("add-step-button-small")})})]})}const ll=d.div`
|
|
307
307
|
display: flex;
|
|
308
308
|
flex-direction: column;
|
|
309
309
|
align-items: flex-start;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ee,
|
|
1
|
+
import{u as Ee,e as Y,a as _e,y as Ye,c7 as Je,j as t,M as ue,aW as Xe,F as Qe,bQ as Ce,o,k as je,_ as T,bf as Ze,bP as et,aj as tt,dm as lt,bX as ot,T as it,m as nt,cu as at,a_ as We,a6 as rt,C as N,l as Fe,bg as se,q as $,ds as ke,d as we,c0 as st,c3 as dt,ck as ct,hz as ht,di as ye,cw as me,bx as E,es as Ie,p as mt,hE as gt,n as pt,aB as ut,hF as Oe,bL as wt,aP as xt,c as De,hG as bt}from"./index-CyJdCOlu.js";import{b as C,n,j as Se}from"./vendor-CnQcJ2Lu.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";const Re="recommendedFirst",Ne="recommendedSecond",H="currentSelection",ve="originalVendor",ge="requested",de=(e,l)=>`${e}.${l}`,ce=(e,l,a)=>a!=null?`${e}.${l}.${a}`:`${e}.${l}`;function vt(e){const l=Y(),{button:{label:a,onClick:i},search:{isOpen:g,placeHolder:m,searchText:w,onTextChange:j}}=e;return t.jsxs(ft,{children:[t.jsx(jt,{isSearchOpen:g&&l==="small",windowsize:l,children:l!=="small"?t.jsx(Ce,{style:{position:"absolute",left:"unset",right:o.sp0},placeholder:m,searchText:w,onSearchTextChanged:j}):null}),l==="small"?t.jsx(Ce,{style:{position:"absolute",left:"5px",right:"unset",top:"44px",width:"98%"},placeholder:m,searchText:w,onSearchTextChanged:j,keepSearchBoxOpen:!0}):null,l==="small"?t.jsx(yt,{style:{marginLeft:o.sp5}}):t.jsx(je,{variant:"primary",onClick:i,label:a,size:"small",style:{marginLeft:o.sp3}})]})}const ft=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
padding-right: ${o.sp0};
|
|
@@ -20,7 +20,7 @@ import{u as Ee,X as Y,a as _e,z as Ye,c4 as Je,j as t,M as ue,aW as Xe,F as Ze,b
|
|
|
20
20
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
21
21
|
width: ${o.sp3};
|
|
22
22
|
height: ${o.sp3};
|
|
23
|
-
`,{headers:
|
|
23
|
+
`,{headers:xe,strings:Mt}=ue.getLocalizedStrings().common,Ct={key:"tenants",value:xe.tenants,sortOrder:"ascending",width:new N(15,15)},kt={key:"requestedVendor",value:xe.requestedVendor,sortOrder:"ascending",width:new N(28,28)},It={key:"originalVendor",value:xe.originalVendor,sortOrder:"ascending",width:new N(15,15)},Rt={key:"recommended",value:xe.recommended,sortOrder:"ascending",width:new N(30,30),icon:t.jsx(St,{children:t.jsx($t,{})})},Nt={key:"action",value:Mt.empty,sortOrder:"ascending",width:new N(12,12)},V=[Ct,It,Rt,kt,Nt],fe={sortKey:"tenants",sortOrder:"ascending"},Vt=88,He=53,Lt=1,Gt=["action"],Ve=e=>Fe.stringToUnionStrict(e,Gt),Ue=({sortConfig:e,isDisabled:l,onColumnSortConfigChanged:a})=>{const i=Y(),[g,m]=C.useState(V);C.useEffect(()=>{const c=[...g];for(const h of c)h.key===e.sortKey?h.sortOrder=e.sortOrder:h.sortOrder="ascending";m(c)},[e.sortKey,e.sortOrder]);const w=(c,h)=>{let y=h;e.sortKey===c&&(y=h==="ascending"?"descending":"ascending"),a?.(c,y)},j=c=>{Ve(c.key)==null&&w(Fe.toVendorGlobalReviewColumnSortKeyType(c.key),c.sortOrder)};return t.jsx(zt,{windowSize:i,children:g.map(c=>{const h=l!=null||Ve(c.key)!=null;return t.jsxs(At,{sortDataValue:e.sortKey,actualDataValue:c.key,wrapperWidth:c.width,isSortDisabled:h,windowSize:i,children:[t.jsxs(Ot,{onClick:()=>h?null:j(c),isSortDisabled:h,"data-testid":T("global-review-list-header-name-wrapper"),children:[c.icon,t.jsx(Dt,{children:c.value}),h?null:t.jsx(Tt,{sortConfig:e,headerdata:c,children:t.jsx(Ft,{})})]}),h?null:t.jsx(Wt,{isSortDisabled:h,sortDataValue:e.sortKey,isVisible:e.sortKey===c.key&&e.sortKey!==fe.sortKey,children:t.jsx(Pt,{onClick:()=>{h||w(fe.sortKey,fe.sortOrder)},"data-testid":T("global-review-list-header-close-icon")})})]},c.key)})})},zt=n.div`
|
|
24
24
|
top: ${o.sp0};
|
|
25
25
|
left: ${o.sp0};
|
|
26
26
|
height: ${He}px;
|
|
@@ -63,10 +63,10 @@ import{u as Ee,X as Y,a as _e,z as Ye,c4 as Je,j as t,M as ue,aW as Xe,F as Ze,b
|
|
|
63
63
|
&:hover {
|
|
64
64
|
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
65
65
|
}
|
|
66
|
-
`,
|
|
66
|
+
`,Ft=n(st)`
|
|
67
67
|
width: 12px;
|
|
68
68
|
height: 12px;
|
|
69
|
-
`,
|
|
69
|
+
`,Ot=n.div`
|
|
70
70
|
display: flex;
|
|
71
71
|
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
72
72
|
gap: 6px;
|
|
@@ -75,7 +75,7 @@ import{u as Ee,X as Y,a as _e,z as Ye,c4 as Je,j as t,M as ue,aW as Xe,F as Ze,b
|
|
|
75
75
|
}
|
|
76
76
|
`,Dt=n(we)`
|
|
77
77
|
display: flex;
|
|
78
|
-
`,{common:f,vendorReview:{globalReview:{globalMerchantList:Ht}}}=ue.getLocalizedStrings(),s={containerPaddingLeftRight:new N($[3],$[4]),containerPaddingTopBottom:new N($[2],$[3]),logoHeightAndWidth:new N($[3],$[4]),vendorNameLogoHeightAndWidth:new N($[4],$[6]),logoToValueGap:new N($[2],$[2]),smallLogoToValueGap:new N($[1],$[1])},Ut=({vendorGlobalReviewData:e,allGlobalMerchants:l,globalMerchantAutoCompleteView:a,sectionId:i,isDisabled:g,analytics:m,onLoadGlobalMerchants:w,onCreateGlobalMerchant:j,onApproveGlobalReview:c,onRejectGlobalReview:h,onClearGlobalMerchantAutoCompleteResults:y})=>{const d=Y(),{resetField:U,formState:q}=ct(),[L,
|
|
78
|
+
`,{common:f,vendorReview:{globalReview:{globalMerchantList:Ht}}}=ue.getLocalizedStrings(),s={containerPaddingLeftRight:new N($[3],$[4]),containerPaddingTopBottom:new N($[2],$[3]),logoHeightAndWidth:new N($[3],$[4]),vendorNameLogoHeightAndWidth:new N($[4],$[6]),logoToValueGap:new N($[2],$[2]),smallLogoToValueGap:new N($[1],$[1])},Ut=({vendorGlobalReviewData:e,allGlobalMerchants:l,globalMerchantAutoCompleteView:a,sectionId:i,isDisabled:g,analytics:m,onLoadGlobalMerchants:w,onCreateGlobalMerchant:j,onApproveGlobalReview:c,onRejectGlobalReview:h,onClearGlobalMerchantAutoCompleteResults:y})=>{const d=Y(),{resetField:U,formState:q}=ct(),[L,k]=C.useState(!1),[G,W]=i.split("."),F=parseInt(W),O=q.dirtyFields[G]?.[F]?.originalVendor===!0&&e.selectedMerchantId!==e.merchant.tenantMerchantId,J=e.currentSelection!=null,{merchant:p,recommendations:B}=e,{fetchState:K}=a,oe=u=>{let S=u.websiteUrl?.toString();if(S){if(S=Oe(S)??S,e.selectedMerchantId!=null){const r=u.globalMerchantName??null;m.trackVendorReviewWebsiteOpened({reviewSource:"global_review",vendorName:e.merchant.tenantMerchantName,wasRecommendationAvailable:!!r,recommendedVendorName:r,recommendedVendorReason:u.reason??null,vendorWebsite:S})}window.open(S,"_blank")}},b=[];B.forEach((u,S)=>{const r=`recommended${ht(S)}`;b.push({label:{label:t.jsx(t.Fragment,{children:u.logo!=null?t.jsxs(ze,{children:[t.jsx(ye,{photoUrl:u.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:u.globalMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:u.globalMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:u.globalMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,r),checkBoxValue:ce(i,H,r),defaultChecked:e.currentSelection===r},tooltipProps:{text:t.jsx(Jt,{recommendation:u,onRedirectionToRecommendedMerchantWebsiteUrl:()=>oe(u)}),maxWidth:"360px"},fieldName:r})});const v=p!=null?{label:{label:t.jsx(t.Fragment,{children:p.logo!=null?t.jsxs(ze,{children:[t.jsx(ye,{photoUrl:p.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(d),height:s.logoHeightAndWidth.valuePx(d)},placeholder:{width:s.logoHeightAndWidth.value(d),height:s.logoHeightAndWidth.value(d)},fallbackAvatar:t.jsx(pe,{children:t.jsx(me,{name:p.tenantMerchantName,size:s.logoHeightAndWidth.valuePx(d)})})}),t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:p.tenantMerchantName})})]}):t.jsx(M,{className:"global-review-row-item",windowSize:d,isLastItem:!1,children:t.jsx(Z,{children:p.tenantMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:ce(i,H,ge),checkBoxValue:ce(i,H,ge),defaultChecked:e.currentSelection==="requested"},tooltipProps:{text:t.jsx(Xt,{merchant:p}),maxWidth:"360px"}}:void 0;let D=p.oldMerchantName;e.currentSelection==="originalVendor"&&e.selectedMerchantId!=null&&(D=e.selectedMerchantId);const I=C.useMemo(()=>Ke(D,e.merchant,l),[e,l]),ae=()=>{k(!1),y()},be=()=>{U(i)};return t.jsx(qe,{windowSize:d,isActiveField:O,children:V.map((u,S)=>{switch(u.key){case"originalVendor":return t.jsx(P,{windowSize:d,wrapperWidth:u.width,children:L===!0?t.jsx(mt,{onClickAway:ae,children:t.jsx(Et,{children:t.jsx(gt,{name:de(i,"originalVendor"),defaultValue:I,isOptionsLoading:K==="In-Progress",addIconInCreateLabel:!0,autoFocus:!0,isDisabled:g,style:{marginRight:o.sp4},menuIsOpen:L,loadOptions:w,customStyleConfig:{valueContainer:(r,x)=>({justifyContent:"flex-start",margin:`${o.sp0} ${x.selectProps.menuIsOpen===!1?o.sp0:o.sp3}`}),menu:()=>({width:"150%"}),singleValue:()=>({display:"flex",alignItems:"center",color:"inherit"})},onCreateOptionClick:r=>{j(p.tenantMerchantId,r,p.websiteUrl)},onMenuClose:ae})})}):I.selectedOption!=null?Yt(I.selectedOption,p,l,d,S,O,k,be):t.jsxs(M,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:[Ht.selectPlaceholder,t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{onClick:()=>k(!0),"data-testid":T("global-review-list-row-edit-icon")})})]})},de(i,"originalVendor"));case"recommended":return t.jsx(t.Fragment,{children:t.jsx(P,{windowSize:d,wrapperWidth:u.width,gap:s.logoToValueGap,children:b.map((r,x)=>t.jsxs(t.Fragment,{children:[t.jsx(M,{windowSize:d,className:"vendor-global-review-row-item",isLastItem:!1,children:t.jsx(Ie,{isHighlighted:!0,label:r.label,checkBoxField:r.checkBoxField,tooltipProps:r.tooltipProps,defaultChecked:e.currentSelection===r.fieldName})},x),x<b.length-1?t.jsxs(Bt,{children:[" ",f.texts.or]}):null]}))})});case"action":return t.jsx(P,{windowSize:d,wrapperWidth:u.width,gap:s.smallLogoToValueGap,children:t.jsxs(M,{className:"global-review-row-button",windowSize:d,isLastItem:S===V.length-1,children:[t.jsx(je,{variant:"light_transparent",label:f.footer.reject,onClick:()=>h(p.tenantMerchantId),loading:e.rejectStatus.fetchState==="In-Progress",size:"small",style:{height:"100%"}}),t.jsx(_t,{space:o.sp0,style:{display:"flex",alignItems:"center",height:o.sp4,width:o.sp3}}),t.jsx(je,{label:f.footer.approve,onClick:()=>c(p.tenantMerchantId),disabled:!J,loading:e.approveStatus.fetchState==="In-Progress",size:"small",variant:"primary"})]})},`${i}.${u.key}`);case"requestedVendor":return t.jsx(P,{windowSize:d,wrapperWidth:u.width,gap:s.smallLogoToValueGap,children:p.tenantMerchantName&&v!=null?t.jsx(M,{windowSize:d,className:"vendor-global-review-row-item",isLastItem:!1,children:t.jsx(Ie,{isHighlighted:!0,label:v.label,checkBoxField:v.checkBoxField,tooltipProps:v.tooltipProps,defaultChecked:e.currentSelection==="requested"})}):t.jsx(M,{className:"vendor-global-review-row-item",windowSize:d,isLastItem:!1,children:f.strings.hyphen})},de(i,"merchantId"));case"tenants":default:return t.jsx(P,{windowSize:d,wrapperWidth:u.width,children:t.jsx(Kt,{className:"global-review-row-item",windowSize:d,isLastItem:S===V.length-1,children:t.jsx(E,{display:"block",placement:"bottom-start",title:t.jsx(_,{children:p.tenantName}),children:t.jsx(Z,{children:p.tenantName})})})},de(i,"tenantId"))}})})},qt=()=>{const e=Y();return t.jsx(qe,{windowSize:e,isActiveField:!1,children:V.map((l,a)=>{switch(l.key){case"originalVendor":case"recommended":return t.jsxs(P,{windowSize:e,wrapperWidth:l.width,gap:s.smallLogoToValueGap,children:[t.jsx(ke,{width:s.logoHeightAndWidth.value(e),height:s.logoHeightAndWidth.value(e)}),t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:120,height:s.logoHeightAndWidth.value(e),style:{display:"flex",alignItems:"center"}})})]},l.key);case"requestedVendor":return t.jsxs(P,{windowSize:e,wrapperWidth:l.width,gap:s.logoToValueGap,children:[t.jsx(ke,{width:s.vendorNameLogoHeightAndWidth.value(e),height:s.vendorNameLogoHeightAndWidth.value(e)}),t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:120,height:s.vendorNameLogoHeightAndWidth.value(e),style:{display:"flex",alignItems:"center"}})})]},l.key);case"tenants":return t.jsx(P,{windowSize:e,wrapperWidth:l.width,children:t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:100,height:$[4],style:{display:"flex",alignItems:"center"}})})},l.key);case"action":default:return t.jsx(P,{windowSize:e,wrapperWidth:l.width,children:t.jsx(M,{windowSize:e,isLastItem:a===V.length-1,children:t.jsx(se,{width:$[11],height:$[5],style:{display:"flex",alignItems:"center"}})})},l.key)}})})},qe=n.div`
|
|
79
79
|
display: flex;
|
|
80
80
|
margin-bottom: ${o.sp3};
|
|
81
81
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -143,13 +143,13 @@ import{u as Ee,X as Y,a as _e,z as Ye,c4 as Je,j as t,M as ue,aW as Xe,F as Ze,b
|
|
|
143
143
|
-webkit-box-orient: vertical;
|
|
144
144
|
overflow: hidden;
|
|
145
145
|
text-overflow: ellipsis;
|
|
146
|
-
`,
|
|
146
|
+
`,Bt=n.div``,Z=n.div`
|
|
147
147
|
${Me};
|
|
148
148
|
`,M=n(pt)`
|
|
149
149
|
${Me};
|
|
150
150
|
justify-content: ${e=>e.isLastItem?"flex-end":"unset"};
|
|
151
151
|
display: ${e=>e.isLastItem?"flex":"inline-block"};
|
|
152
|
-
`,
|
|
152
|
+
`,Kt=n(wt)`
|
|
153
153
|
${Me};
|
|
154
154
|
justify-content: ${e=>e.isLastItem?"flex-end":"unset"};
|
|
155
155
|
display: ${e=>e.isLastItem?"flex":"inline-block"};
|
|
@@ -160,7 +160,7 @@ import{u as Ee,X as Y,a as _e,z as Ye,c4 as Je,j as t,M as ue,aW as Xe,F as Ze,b
|
|
|
160
160
|
border-radius: ${o.sp1};
|
|
161
161
|
`,pe=n.div`
|
|
162
162
|
display: flex;
|
|
163
|
-
`,$e=n(
|
|
163
|
+
`,$e=n(xt)`
|
|
164
164
|
color: ${e=>e.theme.colors.hero};
|
|
165
165
|
align-items: center;
|
|
166
166
|
height: ${o.sp3};
|
|
@@ -170,7 +170,7 @@ import{u as Ee,X as Y,a as _e,z as Ye,c4 as Je,j as t,M as ue,aW as Xe,F as Ze,b
|
|
|
170
170
|
align-items: center;
|
|
171
171
|
visibility: hidden;
|
|
172
172
|
cursor: pointer;
|
|
173
|
-
`,Le=n(
|
|
173
|
+
`,Le=n(bt)`
|
|
174
174
|
color: ${e=>e.theme.colors.hero};
|
|
175
175
|
align-items: center;
|
|
176
176
|
height: ${o.sp3};
|
|
@@ -179,7 +179,7 @@ import{u as Ee,X as Y,a as _e,z as Ye,c4 as Je,j as t,M as ue,aW as Xe,F as Ze,b
|
|
|
179
179
|
display: flex;
|
|
180
180
|
align-items: center;
|
|
181
181
|
cursor: pointer;
|
|
182
|
-
`,
|
|
182
|
+
`,Ge=n.div`
|
|
183
183
|
display: flex;
|
|
184
184
|
text-align: center;
|
|
185
185
|
align-items: center;
|
|
@@ -187,7 +187,7 @@ import{u as Ee,X as Y,a as _e,z as Ye,c4 as Je,j as t,M as ue,aW as Xe,F as Ze,b
|
|
|
187
187
|
`,Et=n.div`
|
|
188
188
|
display: flex;
|
|
189
189
|
width: 100%;
|
|
190
|
-
`,
|
|
190
|
+
`,Be=n.div`
|
|
191
191
|
width: auto;
|
|
192
192
|
box-sizing: border-box;
|
|
193
193
|
max-height: ${e=>e.setMaxHeight===!0?o.sp10:"none"};
|
|
@@ -212,10 +212,10 @@ import{u as Ee,X as Y,a as _e,z as Ye,c4 as Je,j as t,M as ue,aW as Xe,F as Ze,b
|
|
|
212
212
|
white-space: nowrap;
|
|
213
213
|
`,_t=n.div`
|
|
214
214
|
margin-right: ${e=>e.space};
|
|
215
|
-
`,
|
|
215
|
+
`,ze=n.div`
|
|
216
216
|
display: flex;
|
|
217
217
|
gap: ${o.sp2};
|
|
218
|
-
`,
|
|
218
|
+
`,Ke=(e,l,a)=>{const i=a.find(m=>m.globalMerchantId===e),g=l.tenantMerchantId===e?{label:l.tenantMerchantName,value:l.tenantMerchantId}:i!=null?{label:i.globalMerchantName,value:i.globalMerchantId}:void 0;return g!=null?{defaultOptions:[g],selectedOption:e}:{defaultOptions:[],selectedOption:e}},Yt=(e,l,a,i,g,m,w,j)=>{const c=a.find(y=>y.globalMerchantId===e),h=l.tenantMerchantId===e?{logo:l.logo,name:l.tenantMerchantName}:c!=null?{logo:c.logo,name:c.globalMerchantName}:e.length>0?{logo:void 0,name:e}:void 0;return h==null?t.jsxs(t.Fragment,{children:[t.jsx(M,{className:"vendor-global-review-row-item",windowSize:i,isLastItem:!1,children:f.strings.hyphen}),t.jsxs(Ge,{children:[t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":T("global-review-list-row-edit-icon")})}),m?t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Le,{className:"reset-icon",onClick:j,"data-testid":T("global-review-list-row-undo-icon")})}):null]})]}):t.jsxs(t.Fragment,{children:[h.logo!=null?t.jsx(ye,{photoUrl:h.logo.toString(),styles:{width:s.vendorNameLogoHeightAndWidth.valuePx(i),height:s.vendorNameLogoHeightAndWidth.valuePx(i),marginRight:s.logoToValueGap.valuePx(i)},placeholder:{width:s.vendorNameLogoHeightAndWidth.value(i),height:s.vendorNameLogoHeightAndWidth.value(i),style:{marginRight:s.logoToValueGap.valuePx(i)}},fallbackAvatar:t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(i)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(i)})})}):t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(i)},children:t.jsx(me,{name:h.name,size:s.vendorNameLogoHeightAndWidth.valuePx(i)})}),t.jsxs(Ge,{children:[t.jsx(M,{className:"global-review-row-item",windowSize:i,isLastItem:g===V.length-1,children:t.jsx(E,{display:"block",placement:"bottom-start",title:t.jsx(_,{children:h.name}),children:t.jsx(Z,{children:h.name})})}),t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.editName}),enterDelay:600,children:t.jsx($e,{className:"edit-icon",onClick:()=>w(!0),"data-testid":T("global-review-list-row-edit-icon-tooltip")})}),m?t.jsx(E,{display:"block",placement:"bottom",title:t.jsx(_,{children:f.tooltips.reset}),enterDelay:600,children:t.jsx(Le,{className:"reset-icon",onClick:j})}):null]})]})},Jt=({recommendation:e,onRedirectionToRecommendedMerchantWebsiteUrl:l})=>t.jsxs(Be,{setMaxHeight:!0,children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.vendor}),t.jsx(te,{children:e.globalMerchantName})]}),e.websiteUrl?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>l(e),"data-testid":T("global-review-list-row-website-url-tooltip-website-url"),children:e.websiteUrl?.toString()})]}):null]}),Xt=({merchant:e})=>{let l=e.websiteUrl?.toString()??f.strings.empty;return t.jsxs(Be,{children:[t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.name}),t.jsx(te,{children:e.tenantMerchantName})]}),e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.category}),t.jsx(te,{children:e.accountName})]}):null,e.accountName.length?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.class}),t.jsx(te,{children:e.className})]}):null,l?t.jsxs(ee,{children:[t.jsx(le,{children:f.labels.websiteURL}),t.jsx(te,{className:"websiteUrlTooltipText",onClick:()=>{l&&(l=Oe(l)??l,window.open(l,"_blank"))},"data-testid":T("global-review-list-row-website-url-tooltip"),children:l})]}):null]})},Qt=({sortConfig:e,fetchState:l,isDisabled:a,onColumnSortConfigChanged:i})=>{const g=Y();return t.jsxs(Zt,{windowSize:g,children:[t.jsx(Ue,{sortConfig:e,isDisabled:l==="In-Progress"?"readonly":a,onColumnSortConfigChanged:i}),t.jsx(el,{windowSize:g,children:[...Array(7)].map((m,w)=>t.jsx(qt,{},w))})]})},Zt=n.div`
|
|
219
219
|
display: block;
|
|
220
220
|
min-height: 100%;
|
|
221
221
|
flex-direction: column;
|
|
@@ -224,7 +224,7 @@ import{u as Ee,X as Y,a as _e,z as Ye,c4 as Je,j as t,M as ue,aW as Xe,F as Ze,b
|
|
|
224
224
|
display: flex;
|
|
225
225
|
min-height: 100%;
|
|
226
226
|
flex-direction: column;
|
|
227
|
-
`,{common:tl,vendorReview:{globalReview:{globalMerchantList:Ae}}}=ue.getLocalizedStrings(),ll=({vendorGlobalReviewList:e,allGlobalMerchants:l,sectionId:a,listFetchState:i,globalMerchantAutoCompleteView:g,uiState:m,isDisabled:w,analytics:j,onLoadGlobalMerchants:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:y,onCreateGlobalMerchant:d,onApproveGlobalMerchantReview:U,onRejectGlobalMerchantReview:q,onClearGlobalMerchantAutoCompleteResults:L})=>{const
|
|
227
|
+
`,{common:tl,vendorReview:{globalReview:{globalMerchantList:Ae}}}=ue.getLocalizedStrings(),ll=({vendorGlobalReviewList:e,allGlobalMerchants:l,sectionId:a,listFetchState:i,globalMerchantAutoCompleteView:g,uiState:m,isDisabled:w,analytics:j,onLoadGlobalMerchants:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:y,onCreateGlobalMerchant:d,onApproveGlobalMerchantReview:U,onRejectGlobalMerchantReview:q,onClearGlobalMerchantAutoCompleteResults:L})=>{const k=Y(),G=C.useRef(null),[W,F]=C.useState(!1);C.useEffect(()=>{G.current?.resetAfterIndex(0)},[k,G]),C.useEffect(()=>{i==="Completed"&&F(!1)},[i]);const O=b=>Vt,J=(b,v)=>{h({sortOrder:v,sortKey:b}),y(m.searchText,!1,null)},p=()=>{F(!0),y(m.searchText,!0,m.pageToken)},B=b=>b<e.length,K=()=>{m.pageToken!=null&&i==="Completed"&&p()},oe=b=>{const v=e.find(I=>I.merchant.tenantMerchantId===b),D=l.find(I=>I.globalMerchantId===v?.selectedMerchantId);v?.currentSelection!="requested"||D!=null&&v?.currentSelection=="requested"?U(b):v!=null&&d(b,v.merchant.tenantMerchantName,v.merchant.websiteUrl)};return t.jsxs(nl,{windowSize:k,children:[t.jsx(al,{windowSize:k,children:i==="Error"?t.jsxs(sl,{windowSize:k,children:[t.jsx(dl,{"data-testid":T("global-review-list-table-reload-icon"),onClick:()=>y("",!1,null),children:t.jsx(Ze,{})}),t.jsx(cl,{children:tl.reloadPage.label})]}):i==="Completed"&&e.length===0?t.jsx(et,{message:m.searchText?Ae.noMatchedDataText:Ae.noDataText,style:{padding:o.sp0}}):i==="Not-Started"||i==="In-Progress"&&e.length===0?t.jsx(Qt,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:w,fetchState:i,onColumnSortConfigChanged:J}):t.jsx(rl,{windowSize:k,children:t.jsx(tt,{children:({height:b,width:v})=>t.jsx(lt,{isItemLoaded:B,itemCount:e.length+1,loadMoreItems:K,children:({onItemsRendered:D})=>t.jsxs(ml,{style:{height:b,width:v},children:[t.jsx(il,{children:t.jsx(Ue,{sortConfig:{sortKey:m.sortKey,sortOrder:m.sortOrder},isDisabled:i==="In-Progress"?"readonly":w,onColumnSortConfigChanged:J})}),t.jsx(ot,{ref:G,height:b-He,itemCount:e.length,itemData:{analytics:j,vendorGlobalReviewList:e,sectionId:a,allGlobalMerchants:l,globalMerchantAutoCompleteView:g,isDisabled:w,onLoadGlobalMerchants:c,onApproveGlobalReview:oe,onRejectGlobalMerchantReview:q,onCreateGlobalMerchant:d,onClearGlobalMerchantAutoCompleteResults:L},onItemsRendered:D,itemSize:O,width:v,style:{willChange:"auto"},overscanCount:Lt,onScroll:({scrollOffset:I})=>{h({scrollYOffset:I})},initialScrollOffset:m.scrollYOffset,children:ol})]})})})})}),t.jsx(it,{controller:W===!0,children:t.jsx(gl,{children:t.jsx(nt,{size:"Small",start:!0})})})]})},ol=({index:e,style:l,data:a})=>{const{analytics:i,vendorGlobalReviewList:g,allGlobalMerchants:m,globalMerchantAutoCompleteView:w,sectionId:j,isDisabled:c,onLoadGlobalMerchants:h,onCreateGlobalMerchant:y,onApproveGlobalReview:d,onRejectGlobalMerchantReview:U,onClearGlobalMerchantAutoCompleteResults:q}=a,L=g[e];return t.jsx(hl,{style:{...l,width:"100%"},className:"global-review-list-item",children:t.jsx(Ut,{sectionId:`${j}.${e}`,isDisabled:L.approveStatus.fetchState==="In-Progress"?"readonly":c,globalMerchantAutoCompleteView:w,vendorGlobalReviewData:L,allGlobalMerchants:m,onLoadGlobalMerchants:h,onCreateGlobalMerchant:y,onApproveGlobalReview:d,onRejectGlobalReview:U,onClearGlobalMerchantAutoCompleteResults:q,analytics:i},L.merchant.tenantMerchantId)})},il=n.div`
|
|
228
228
|
width: auto;
|
|
229
229
|
`,nl=n.div`
|
|
230
230
|
display: block;
|
|
@@ -280,12 +280,12 @@ import{u as Ee,X as Y,a as _e,z as Ye,c4 as Je,j as t,M as ue,aW as Xe,F as Ze,b
|
|
|
280
280
|
align-items: center;
|
|
281
281
|
margin-top: ${o.sp3};
|
|
282
282
|
margin-bottom: ${o.sp3};
|
|
283
|
-
`,{common:{sectionTitles:pl},vendorReview:{globalReview:{globalMerchantList:Pe}}}=ue.getLocalizedStrings(),ul="globalReviewListPage",he="globalReviewListTable",Rl=({vendorGlobalReviewView:e,globalMerchantAutoCompleteView:l,analytics:a,isDisabled:i,onUpdateSelectedGlobalMerchant:g,onApproveGlobalReview:m,onRejectGlobalReview:w,onCreateGlobalMerchant:j,onFetchGlobalMerchantAutoCompleteResults:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:y,onClearGlobalMerchantAutoCompleteResults:d,onBackClick:U,onClickMenuIcon:q})=>{const L=Ee(),
|
|
283
|
+
`,{common:{sectionTitles:pl},vendorReview:{globalReview:{globalMerchantList:Pe}}}=ue.getLocalizedStrings(),ul="globalReviewListPage",he="globalReviewListTable",Rl=({vendorGlobalReviewView:e,globalMerchantAutoCompleteView:l,analytics:a,isDisabled:i,onUpdateSelectedGlobalMerchant:g,onApproveGlobalReview:m,onRejectGlobalReview:w,onCreateGlobalMerchant:j,onFetchGlobalMerchantAutoCompleteResults:c,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:y,onClearGlobalMerchantAutoCompleteResults:d,onBackClick:U,onClickMenuIcon:q})=>{const L=Ee(),k=Y(),{vendorGlobalReviewData:G,allGlobalMerchants:W,uiState:F,fetchState:O}=e,{globalMerchants:J,fetchState:p}=l,B=_e({mode:"all",reValidateMode:"onChange",defaultValues:Te(G,W),values:Te(G,W),resetOptions:{keepDirtyValues:!0}}),[K,oe]=C.useState(F.searchText),b=C.useRef(),v=r=>{y(r,!1,null)},D=r=>{const x=G.find(z=>z.merchant.tenantMerchantId===r);if(x!=null){const z=W.find(Q=>Q.globalMerchantId===x.selectedMerchantId),X=x.recommendations,{tenantName:re,oldMerchantName:ie,tenantMerchantName:ne}=x.merchant,R=z?.globalMerchantName??ne,A=X[0];a.trackVendorReviewApproveRequested({reviewSource:"global_review",tenantName:re,requestedVendorName:ne,originalVendorName:ie,approveVendorName:R,isGlobalVendorRequested:z!=null,isNewCreatedVendorRequested:!1,isVendorNameRecommendationSelected:x.currentSelection==="recommendedFirst"||x.currentSelection==="recommendedSecond",isVendorNameChangedAndSelected:R!==ne,wasRecommendationAvailable:!!A?.globalMerchantName,approveVendorReason:z?.reason??null,approveVendorNameSelectionSource:R===A?.globalMerchantName?"recommendation":"text_edit",recommendedVendorName:A?.globalMerchantName??null,recommendedVendorReason:A?.reason??null})}m(r)},I=C.useRef(Ye(r=>v(r),500,{trailing:!0})).current;C.useEffect(()=>{O==="Completed"&&a.trackVendorReviewPage("global_review",F.totalCount)},[O]),C.useEffect(()=>{p==="Completed"&&b.current?.(vl(J))},[p]);const ae=(r,x)=>{c(r),b.current=x},be=()=>{},u=async(r,x,z)=>{const{globalReviewListTable:X}=x,re=parseInt(r.split(".")[1]),ie=X[re].merchantId;if(z==null){g(ie,{recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:!1},ie);return}if(r.includes(he)){const ne=parseInt(r.split(".")[1]),R={...x[he][ne]};let A=R[H],Q;R.merchantId!=null&&(r.includes(Re)?(A={recommendedFirst:R[H].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},Q=R[Re]?.globalMerchantId):r.includes(Ne)?(A={recommendedFirst:!1,recommendedSecond:R[H].recommendedSecond,originalVendor:!1,requested:!1},Q=R[Ne]?.globalMerchantId):r.includes(ge)?(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:R[H].requested},Q=R[ge]):r.includes(ve)&&(A={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(ie,A,r.includes(ve)?X[re][ve].selectedOption:Q)}};C.useEffect(()=>{const r=B.watch((x,{name:z,type:X})=>{z!=null&&x!=null&&Je(()=>u(z,x,X))});return()=>{r.unsubscribe()}});const S=t.jsx(vt,{button:{label:pl.newVendor,onClick:()=>j()},search:{searchText:K,hide:!1,isOpen:K.length>0,placeHolder:Pe.searchPlaceholder,onTextChange:r=>{oe(r),r.trim().length>=2?I(r):r.trim().length==0&&I("")}}});return t.jsxs(wl,{children:[t.jsx(Xe,{title:Pe.navBarTitle,backgroundColor:L.colors.grey4,onBackClick:U,rightSideComponent:S,showMenuIcon:k==="medium-compact"||k==="small",onClickMenuIcon:q,source:"GlobalReviewListPage"}),t.jsx(xl,{children:t.jsx(Qe,{...B,children:t.jsx("form",{id:bl(ul),onSubmit:B.handleSubmit(be),style:{width:"100%"},children:t.jsx(ll,{vendorGlobalReviewList:G,allGlobalMerchants:W,globalMerchantAutoCompleteView:l,uiState:{...F,searchText:K},isDisabled:i,listFetchState:O,sectionId:he,onLoadGlobalMerchants:ae,onUpdateGlobalReviewUIState:h,onFetchGlobalReviewList:y,onCreateGlobalMerchant:j,onApproveGlobalMerchantReview:D,onRejectGlobalMerchantReview:w,onClearGlobalMerchantAutoCompleteResults:d,analytics:a})})})})]})},wl=n.div`
|
|
284
284
|
display: flex;
|
|
285
285
|
min-height: 100%;
|
|
286
286
|
width: 100%;
|
|
287
287
|
flex-direction: column;
|
|
288
288
|
background-color: ${e=>e.theme.colors.grey4};
|
|
289
|
-
`,
|
|
289
|
+
`,xl=n.div`
|
|
290
290
|
display: flex;
|
|
291
|
-
`,
|
|
291
|
+
`,bl=e=>`${e}_form`,Te=(e,l)=>({[he]:e.map(a=>{const{merchant:i}=a;let g=i.oldMerchantName;return a.currentSelection==="originalVendor"&&a.selectedMerchantId!=null&&(g=a.selectedMerchantId),{tenantId:i.tenantId,merchantId:i.tenantMerchantId,originalVendor:Ke(g,i,l),recommendedFirst:a.recommendations[0],recommendedSecond:a.recommendations[1],currentSelection:{recommendedFirst:a.currentSelection==="recommendedFirst",recommendedSecond:a.currentSelection==="recommendedSecond",requested:a.currentSelection==="requested",originalVendor:a.currentSelection==="originalVendor"},requested:i.tenantMerchantId}})}),vl=e=>e.map(l=>({label:l.globalMerchantName,value:l.globalMerchantId})).sort((l,a)=>l.label.localeCompare(a.label));export{Rl as default,bl as uniqueFormName};
|