@zeniai/web-app-ui 4.14.38-qa → 4.14.39-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (432) hide show
  1. package/dist/assets/{ACHDetailsPage-BShpKoIj-fWd9thRi.js → ACHDetailsPage-B5qIuZya-Dqn8ZaVl.js} +6 -6
  2. package/dist/assets/{AIPerformancePage-CFErwUsE-snITC-s1.js → AIPerformancePage-BHB45mP--CWtWN8JR.js} +23 -23
  3. package/dist/assets/AccountInfoPage-Cd5xYT1g-BylH1aam.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-CJ7ycVIK-3aE5KJwU.js +149 -0
  5. package/dist/assets/{AccountLockedInfoModal-c30P9O_3-7xneSCwL.js → AccountLockedInfoModal-Dox7IuAX-C5qPLBPz.js} +6 -6
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CO9BYPWm-C-h2FArs.js → AccountReconDetailsDrawerPage-Bqty08m0-Dbr-jmu7.js} +5 -5
  7. package/dist/assets/{AccountRow-BrW_eEjE-DNRjFVcP.js → AccountRow-D1cjRJJD-Dsnq1o4t.js} +9 -9
  8. package/dist/assets/{AccountsPromoCardStack-De2yNNuZ-CSno44se.js → AccountsPromoCardStack-Bs3naJHM-DvbUMPbJ.js} +17 -17
  9. package/dist/assets/AddAddressForCardDrawer-DZkBMJfp-DwU9s4jD.js +6 -0
  10. package/dist/assets/{AddToWalletPage-CsOmzC7v-Cj06wdOf.js → AddToWalletPage-CyRfqVDB-DtRghMSs.js} +12 -12
  11. package/dist/assets/AddressRoutes-DbIoDD0z.js +1 -0
  12. package/dist/assets/AddressScreen-Duz_V-eF.js +9 -0
  13. package/dist/assets/AgingReportsPage-xBFff3BM-B936IQ2N.js +79 -0
  14. package/dist/assets/{AiCfoScreen-BAk_dxw0.js → AiCfoScreen-DkKXC6Fw.js} +2 -2
  15. package/dist/assets/{AllUserItems-Dq7NcP-o-BAdmqEIT.js → AllUserItems-BJf6WPDo-D0H1tMjG.js} +7 -7
  16. package/dist/assets/{ApAgingDetailPage-Z5JgfH-e-BN9WDlLq.js → ApAgingDetailPage-CjBrPyi8-Dy0hX-gn.js} +5 -5
  17. package/dist/assets/{AppBasePage-B5sDynhi-KPVBtrs7.js → AppBasePage-CqDm-hnV-DluaESRo.js} +9 -9
  18. package/dist/assets/{AppDrawerContent-D9Q8ir0T-CSqphav9.js → AppDrawerContent-CVVWj66i-D4zioU_X.js} +6 -6
  19. package/dist/assets/ApprovalRulesSettingsPage-Cckd2uVA-Bu-mEOHu.js +47 -0
  20. package/dist/assets/ArAgingChart-CBsqOd-4-CVCl4d59.js +24 -0
  21. package/dist/assets/{ArAgingDetailPage-B5vqkc3v-BVlxBAMs.js → ArAgingDetailPage-i7JObt60-CsyQx3rL.js} +1 -1
  22. package/dist/assets/{AttachmentView-CiYfninr-6iFibggZ.js → AttachmentView-CzC4skJ3-D2ObdnK2.js} +6 -6
  23. package/dist/assets/BalancesInsightWithToolTip-B6umvmgL-B94s6jgr.js +38 -0
  24. package/dist/assets/{BankAccountSection-EZtscP2z-CnmlGLJZ.js → BankAccountSection-Di4sF52j-BobhPzIF.js} +3 -3
  25. package/dist/assets/{BankAccountWarningSection-DCfyIUlu-DWGOWwU8.js → BankAccountWarningSection-Cled-2cR-CypxFFmY.js} +10 -10
  26. package/dist/assets/{BankConnectionsSettingsPage-CQWy9jvt-6r8YHtRG.js → BankConnectionsSettingsPage-Ccnzq7st-DGOhp4FX.js} +52 -52
  27. package/dist/assets/{BillDetailPage-pt1k5AQf-C4XZbQqy.js → BillDetailPage-XXOwBfO1-DauaxUA2.js} +9 -9
  28. package/dist/assets/BillPayApprovalRoutes-S9Y_fMTz.js +1 -0
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-Drh7Bhi8-DEQ3gHmS.js → BillPayApprovalRuleDetailPage-DFZ0csaT-1KbX_IY6.js} +2 -2
  30. package/dist/assets/{BillPayApprovalRulesPage-Cmyo59xB-B9Q9d_tb.js → BillPayApprovalRulesPage-COCypDcS-BjGZEACH.js} +9 -9
  31. package/dist/assets/{BillPayPromoPage-Dgpz2TLG-CIs4FndH.js → BillPayPromoPage-DOE2YIqC-C8ApdrdB.js} +7 -7
  32. package/dist/assets/{BillPayRoutes-C3s6um5A.js → BillPayRoutes-Bz92yFGI.js} +18 -18
  33. package/dist/assets/{BillPaySetUpPage-B6Pd_eBf-Ds0KjbN5.js → BillPaySetUpPage-BCJbZDsV-BF2fTyNr.js} +7 -7
  34. package/dist/assets/{BillingSettingsPage-CYsvBrFV-CkCbu93u.js → BillingSettingsPage-iImtlEmO-CBp1rdfh.js} +6 -6
  35. package/dist/assets/{BillsBulkReviewDrawerPage-DNnAmqWz-DGjq3gMe.js → BillsBulkReviewDrawerPage-B11GWM_0-Crsw24X2.js} +1 -1
  36. package/dist/assets/{BoxItem-B06DK4G--DWbBsOKU.js → BoxItem-Bxa1M4QU-BEQbjRW-.js} +4 -4
  37. package/dist/assets/{BusinessVerificationPage-Dgk5gyMv-C_48y3eC.js → BusinessVerificationPage-DSuJFoW1-mYZPYqnm.js} +8 -8
  38. package/dist/assets/{BusinessVerificationPageScreen-C0MRjLR6.js → BusinessVerificationPageScreen-BlaiKu4I.js} +2 -2
  39. package/dist/assets/{BusyIndication-Cd67eHX6-CtvBXiRL.js → BusyIndication-9zDqSKBP-WSsX6_uU.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-CcH9jUoZ-BDFM7Ge9.js → CardNumberSubText-_ZZbaz_k-D2s6-wsQ.js} +8 -8
  41. package/dist/assets/{CashbackDetailPage-5eysaHGf-CYaLHynC.js → CashbackDetailPage-DAZXitLt-Dn6UduwT.js} +24 -24
  42. package/dist/assets/{ChargeCardDetailPage-Diwf-gwZ-BiwCPZo-.js → ChargeCardDetailPage-B1VIpASk-D0l4y1IR.js} +20 -20
  43. package/dist/assets/{ChargeCardListPage-C-RTGkKK-B2_lKD4-.js → ChargeCardListPage-BOBepN-x-BtfglwWz.js} +36 -36
  44. package/dist/assets/{ChargeCardListTable-B-bNbtZQ-Dci6OLkr.js → ChargeCardListTable-YznzSsJo-KwncCUaT.js} +31 -31
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-Cu-zT5tO-BOra7Rvn.js → ChargeCardPaymentHistoryPage--jOwsMla-DQFHZBZ2.js} +19 -19
  46. package/dist/assets/ChargeCardPromoPage-DIfakIOK-CUSVcG-Z.js +222 -0
  47. package/dist/assets/{ChargeCardRoutes-BN8xSwU5.js → ChargeCardRoutes-PKJBtykP.js} +9 -9
  48. package/dist/assets/{ChargeCardSetupPage-BcTB9Yy5-r-uwgYnE.js → ChargeCardSetupPage-0bpVkeJs-yW1xF9DG.js} +4 -4
  49. package/dist/assets/{ChargeCardStatementsPage-B_ERvgmB-CYpHQAai.js → ChargeCardStatementsPage-ChWyQlw6-BDnJUrTu.js} +2 -2
  50. package/dist/assets/CheckDepositDrawerPage-BS7hnyZn-C-RoPs-w.js +206 -0
  51. package/dist/assets/{CollapsableReportTable-h0vIfI8o-B6GpVtrk.js → CollapsableReportTable-DNfFkAts-CoCUKzx3.js} +40 -40
  52. package/dist/assets/{CompanyOfficerDetailsSection-CWADX4kZ-BPWcwdB2.js → CompanyOfficerDetailsSection-CrOIN4IW-wL1QY22J.js} +23 -23
  53. package/dist/assets/{CompanyPassportCard-DF9LFrFD-DKr80bar.js → CompanyPassportCard-CkzYFTrp-DRHCWpeb.js} +4 -4
  54. package/dist/assets/{CompanyPassportPage-BtAopyLq-CYUPpkJA.js → CompanyPassportPage-FE6yli6h-Dd4_9uh3.js} +14 -14
  55. package/dist/assets/CompanyPassportScreen-BxfK5qi-.js +1 -0
  56. package/dist/assets/CompleteProfile-Cb8i1XgZ-BjB2Cj8T.js +52 -0
  57. package/dist/assets/ConfettiBurst-BZCXEGYA-2D0_Pemr.js +1 -0
  58. package/dist/assets/ConnectionAuthScreen-Wp_pgh6b.js +11 -0
  59. package/dist/assets/{ConstrainedInnerElement-hv51KpGg-D4gYEuVE.js → ConstrainedInnerElement-CgdnMeoA-CE1VZ_Vz.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-C2xU6c51-DBwl6xUl.js → CreateOrEditVendorPage-CzpSgxbO-k7E9cu5j.js} +10 -10
  61. package/dist/assets/{CreditCardPaymentDrawerPage-CeagMaCu-WyeO0sfn.js → CreditCardPaymentDrawerPage-c_q0MsSO-dQfGXEwP.js} +7 -7
  62. package/dist/assets/{CurrencySelectField-B8EoF2aF-CpaeLEvO.js → CurrencySelectField-BAh7SHrG-BY-wwlD4.js} +5 -5
  63. package/dist/assets/{CustomerOnboardingActivationPage-CIeR2XvU-C2ojqyMc.js → CustomerOnboardingActivationPage-f3Aa6E5r-CsLUjIve.js} +6 -6
  64. package/dist/assets/CustomerOnboardingAuthScreen-CTK0e_jx.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-CHM5gdzL.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-kUbwh2r2-XN6Qwg1Y.js → CustomerOnboardingDetailPageSkeleton-DYuiWn8s-Cjt3eU6d.js} +12 -12
  67. package/dist/assets/{CustomerOnboardingNoStepsPage-Br0jy7Pu-BRxlJCi7.js → CustomerOnboardingNoStepsPage-Bh_F0-oC-wTFuOqC8.js} +12 -12
  68. package/dist/assets/{CustomerOnboardingPage-Dm2Si769-Cmr-TTFk.js → CustomerOnboardingPage-B9hSO88_-DWmXd-Uc.js} +7 -7
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-Cz81Q5jC-_9JVpPYF.js → CustomerOnboardingProductSuitePage-CG0HKCpQ-GHwnhZEx.js} +7 -7
  70. package/dist/assets/CustomerOnboardingRoutes-liI38PH4.js +23 -0
  71. package/dist/assets/{Dashboard-DReG_aaf-CJroxq1R.js → Dashboard-BJ_oIHab-R3_sy9De.js} +1 -1
  72. package/dist/assets/{DashboardReportPage-BXSlwsR7-Bifyqc1s.js → DashboardReportPage-BemzMw2e-DvGvflyG.js} +11 -11
  73. package/dist/assets/{DashboardRoutes-CcC7_3PW.js → DashboardRoutes-C7dEIbTS.js} +3 -3
  74. package/dist/assets/DashboardSidebarBackgroundAnimation-BtA5oEGG-DP44-3NB.js +12 -0
  75. package/dist/assets/{DefaultTenantHome-d55WPyJZ.js → DefaultTenantHome-CkG7rrVy.js} +1 -1
  76. package/dist/assets/DepositAccTransactionItem-CyFi1P_L-VEy51_-P.js +76 -0
  77. package/dist/assets/{DepositAccTransactionListPage-C-FAvZwD-BlyjU0oU.js → DepositAccTransactionListPage-DvBRRUdZ-FPrNb8c2.js} +6 -6
  78. package/dist/assets/DomesticWireDetailScreen-CgfzlsVD.js +18 -0
  79. package/dist/assets/{DomesticWireDetailsPage-BaiSpc0N-Ch_6qZVT.js → DomesticWireDetailsPage-DCDo3aHI-DZy_Auc2.js} +4 -4
  80. package/dist/assets/{DownloadOverlay-BpRKCn-0-L4byV6ko.js → DownloadOverlay-D_lL1sPW-DBEVtdkQ.js} +18 -18
  81. package/dist/assets/{DrawerPage-DQ3Xuekx-C25HKZ4X.js → DrawerPage-DesxXhZk-qxdDcPRN.js} +10 -10
  82. package/dist/assets/DrawerScreen-IScn_gPb.js +1 -0
  83. package/dist/assets/EditPeoplePage-QvPy_Six-pqhLCmsP.js +55 -0
  84. package/dist/assets/{EditReimbursementDetailPage-CC2BjMkR-BA33kcGZ.js → EditReimbursementDetailPage-C0ZDkboO-Ds7tBMbu.js} +17 -17
  85. package/dist/assets/EntityDetailPage-l7nXIsyF-D-OEpTX_.js +18 -0
  86. package/dist/assets/EntityDetailRoutes-DCBMx6-C.js +1 -0
  87. package/dist/assets/{EntitySummarySection-vsEMiXYh-b447Pkl8.js → EntitySummarySection-BwX0a4JL-CYDWshdA.js} +12 -12
  88. package/dist/assets/{ExpenseAutomationOverviewPage-B3HPfIsK-BWcr0uLA.js → ExpenseAutomationOverviewPage-EdyHjbff-QECZrSJL.js} +13 -13
  89. package/dist/assets/ExpenseAutomationPage-DA22Qofw-QWboM4Rp.js +3614 -0
  90. package/dist/assets/ExpenseAutomationRoutes-DVcJr4np.js +20 -0
  91. package/dist/assets/{ExpressPayPage-BH7oCW_F-Cn_ygI86.js → ExpressPayPage-EMP6inpX-C812vhu_.js} +6 -6
  92. package/dist/assets/{FeaturePreviewPage-DSv61BhF-CnLFcwsn.js → FeaturePreviewPage-SYJm-3aR-BnuhMtuP.js} +2 -2
  93. package/dist/assets/FeaturePreviewScreen-C3Y9pgiz.js +1 -0
  94. package/dist/assets/{FollowStepsSection-Bgy9MpO4-C5zXR2w0.js → FollowStepsSection-BxESVqJD-BFhnhk7r.js} +9 -9
  95. package/dist/assets/{GlobalReviewListPage-VRq_gimm-q7Ngmw6E.js → GlobalReviewListPage-D5_ACa-q-DZo6UglL.js} +7 -7
  96. package/dist/assets/{InformationCardStack-rx0fypl3-DX-Qi0u8.js → InformationCardStack-B_qQUEYD-DRekqbq_.js} +4 -4
  97. package/dist/assets/InsightsCardStack-BsQzoVzj-BI_nQIXQ.js +79 -0
  98. package/dist/assets/{InsightsSection-ByFf2oGn-O2kwXghv.js → InsightsSection-B6CNlTNH-BFr6MnTG.js} +9 -9
  99. package/dist/assets/{IntegrationsSettingsPage-Cj01Nub6-DanmyN_T.js → IntegrationsSettingsPage-DP6fAccq-CigqZ0SM.js} +2 -2
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-C2PM97sv--IsCSEC1.js → InternationalWireSwiftDetailsPage-VdG7bDZi-Rlu68XJQ.js} +11 -11
  101. package/dist/assets/InternationalWireVerificationPage-COC6lZml-CR1f2JQF.js +65 -0
  102. package/dist/assets/{InviteFormPage-dsMpScvq-BSmEB5t_.js → InviteFormPage-DN02jRy5-UECY6Ai9.js} +6 -6
  103. package/dist/assets/{InvitePageListView-e7vGSbFa-lWVPew31.js → InvitePageListView-CP4K9tJi-CrsR5dUL.js} +42 -42
  104. package/dist/assets/InvitePeoplePage-VTM6kM1u-DEUyoj-n.js +12 -0
  105. package/dist/assets/{InvoiceUploadSection-Dg1-uunA-CdV_lYCj.js → InvoiceUploadSection-it-ZYl1N-gndqObmu.js} +12 -12
  106. package/dist/assets/{IssueChargeCardPage-CyF9wrb0-C00uByr7.js → IssueChargeCardPage-CVfuvGey-DLZauQU0.js} +20 -20
  107. package/dist/assets/{LabeledAddressValue-3l0Bv00--D4SAlVUn.js → LabeledAddressValue-DDrQcHIE-CrQXufeN.js} +2 -2
  108. package/dist/assets/LabeledAddressValueField-BgWwd5Gw-BjdQu4oY.js +45 -0
  109. package/dist/assets/{LabeledControlledCheckBoxField-BgC8y0D6-CE2WH-rg.js → LabeledControlledCheckBoxField-CcPO1k23-wgZTidrw.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-3qI_4noU-BeknFMe3.js → LabeledCountryMultiSelectField-BYYjzwUG-Dh1nhUsB.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-BV3h9bh7-46gx1dC-.js → LabeledCreatableSingleSelectField-CISYMojq-C0CA90PE.js} +6 -6
  112. package/dist/assets/{LabeledDocumentField-rriEcsdr-BwrcuQUL.js → LabeledDocumentField-C_bcFxdY-rxfuitkN.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-DoVSg3nZ-BFaTo2zA.js → LabeledDropDownFormattedTextField-ScGGCap8-5XDDElAU.js} +5 -5
  114. package/dist/assets/{LabeledEmailInputField-CKWZEkTs-K1-nx9hv.js → LabeledEmailInputField-BppuWRbl-BqM5ToGw.js} +7 -7
  115. package/dist/assets/{LabeledNameField-yaSRe5Vt-B1WOmtZJ.js → LabeledNameField-mxSNQk3k-DSUzbE3j.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-D5QUlcEP-CTACJg8Z.js → LabeledSingleSelectField-C6ctNzkA-DJY2_gU-.js} +2 -2
  117. package/dist/assets/{LabeledText-DGZ7hxY4-BoX7lemD.js → LabeledText-C8Y7EOsX-BG8Z0MTH.js} +3 -3
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DI07Eicg-BjyfWV9u.js → LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-eV0BTiQT.js} +11 -11
  119. package/dist/assets/{LabeledZeniRolesDropDownField-jIrTovp--KnDiAlnF.js → LabeledZeniRolesDropDownField-BZtreVpj-BQKcvtGQ.js} +6 -6
  120. package/dist/assets/{LinkJETransactionPage-Bvbqpltz-TQTwB5Ra.js → LinkJETransactionPage-CKq4oiX9-BMq1iE01.js} +10 -10
  121. package/dist/assets/{LockCardPage-DyEQBJYx-BqE2JwR7.js → LockCardPage-CZENNby7-fCE1WXTx.js} +14 -14
  122. package/dist/assets/{LowBalancePopup-C2vHKMNF-B1dLaV9R.js → LowBalancePopup-1727S1ri-CiFxrWZ6.js} +5 -5
  123. package/dist/assets/MagicLinkACHDetailsPage-BSOlSfNu-C5Jji5Bc.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-D1DTPo0E-DNJbU9wA.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-D_wo_2nm-BDPVvMNI.js +1 -0
  126. package/dist/assets/MagicLinkRoutes-BBf-u6YU.js +72 -0
  127. package/dist/assets/MagicLinkSignInScreen-BGYMIMGW.js +12 -0
  128. package/dist/assets/{MagicLinkSuccessPage-B1LBYM2F-BhpgnlDO.js → MagicLinkSuccessPage-QMkZgQLG-0gaJkIUo.js} +6 -6
  129. package/dist/assets/{MagicLinkTitleSection-ClAnBBt9-Cym29B_c.js → MagicLinkTitleSection-CARU1oLQ-D-x2cYul.js} +9 -9
  130. package/dist/assets/MailingDetailsSection-ByOPaJ05-C__aFJd6.js +21 -0
  131. package/dist/assets/MobileAppDrawer-TF-9OTZ8.js +1 -0
  132. package/dist/assets/{MoreMenuButton-Ct8k8Oax-Jl7RdYoC.js → MoreMenuButton-BsBKwXvk-DeCIVX9G.js} +18 -18
  133. package/dist/assets/{MyBankConnectionsSettingsPage-CBNYcuP4-D719I_IU.js → MyBankConnectionsSettingsPage-BdgIIhL1-DSKnFya9.js} +6 -6
  134. package/dist/assets/{MyPendingActivationChargeCardListPage-n71n40uQ-DGClXmnK.js → MyPendingActivationChargeCardListPage-CX38bDdq-CKY6khDW.js} +1 -1
  135. package/dist/assets/MyProfileSettingsPage-DYu0Fx6I-MQ1Uu5yx.js +85 -0
  136. package/dist/assets/{NavBarWithPicker-CbjFNysh-Gsj0zn-Z.js → NavBarWithPicker-CGGEvLwe-xLu9BDbC.js} +8 -8
  137. package/dist/assets/{NavigationArrow-Dpc7u6y4-BduXlhxm.js → NavigationArrow-CTNkKUtV-Cv--eO3H.js} +1 -1
  138. package/dist/assets/NavigationDots-Dvce3gHt-B5IBT8ql.js +15 -0
  139. package/dist/assets/{NewGlobalMerchantPage-B10sY6Q_-DHbg5KdP.js → NewGlobalMerchantPage-D_f7z47T-DZeAHBD8.js} +12 -12
  140. package/dist/assets/NoDataChart-CrKeqWSr-aTXx8C4D.js +26 -0
  141. package/dist/assets/{NoDataTable-C6Q2Anpz-Dt08aukB.js → NoDataTable-4vPXmPYF-MAxQ6k5D.js} +1 -1
  142. package/dist/assets/{NotFoundPage-4mPhXD5--B-cMmgSa.js → NotFoundPage-BLWPU1wU-BDFevjLh.js} +4 -4
  143. package/dist/assets/NotFoundScreen-BOQb1xUE.js +1 -0
  144. package/dist/assets/NotificationRoutes-CHyP48D4.js +1 -0
  145. package/dist/assets/{NotificationSettingsPage-BTxCoB_b-GR1fpvE7.js → NotificationSettingsPage-CDiDLX3A-CdiPU3_w.js} +30 -30
  146. package/dist/assets/NotificationsListConfig-B5pDa4cJ-C0GWEb8S.js +1 -0
  147. package/dist/assets/{NotificationsPage-D41h0mS6-C9DBLIC1.js → NotificationsPage-Ccl7Dny1-CsnU2sZr.js} +18 -18
  148. package/dist/assets/{OpExByVendorPage-BV_uJSCh-CweIBxzu.js → OpExByVendorPage-spd-nKV4-Cz37eGG7.js} +9 -9
  149. package/dist/assets/OverlayContainerPage-BG9y5C0t-DvO1fY_N.js +11 -0
  150. package/dist/assets/{PandLWithForecastPage-Cj3UWjG4-DJOh_oXL.js → PandLWithForecastPage-TSoe4Z7F-xn1jaFoi.js} +11 -11
  151. package/dist/assets/PandLWithForecastRoutes-DWeIYgqG.js +1 -0
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BWFl695q-COL-e_83.js → PaymentAccountSetupBillingAddressSection-9ma8SpIa-BDBHBe3a.js} +10 -10
  153. package/dist/assets/{PeoplePage-DcGqWtAP-DPX6yuPR.js → PeoplePage-b5_I0qOw-lWi2XLJ6.js} +16 -16
  154. package/dist/assets/PeopleRoutes-D96ZRShY.js +22 -0
  155. package/dist/assets/PerformanceRoutes-w_Iip8ae.js +1 -0
  156. package/dist/assets/{Preview-Bd0e5eLk.js → Preview-C2zvk1tu.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-C9JoJQeH-CkXkxCBK.js → ProductsCarousel-C3M0ocdF-2raBZnNq.js} +3 -3
  158. package/dist/assets/{PromoBaseCards-mFk7SsOr-aETB5Ygs.js → PromoBaseCards-BOGJI2ws-Cm4e0wPQ.js} +1 -1
  159. package/dist/assets/{QBOConnectionDialog-CJsIrEZq-D0yN3PXk.js → QBOConnectionDialog-CmpnnuzP-BhhJabU7.js} +4 -4
  160. package/dist/assets/{QBOConnectionScreen--nNex-HH.js → QBOConnectionScreen-CCeXLrlB.js} +1 -1
  161. package/dist/assets/{QBOSetupSection-C_fqHza_-KCFm35xW.js → QBOSetupSection-DjnN9dgv-6umyaC6d.js} +14 -14
  162. package/dist/assets/ReferralListScreen-DY8vZLmY.js +5 -0
  163. package/dist/assets/ReimbursementApprovalRoutes-kgV17rI7.js +1 -0
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BMZnKpsk-CZta2n6p.js → ReimbursementApprovalRuleDetailPage-D5NXjrO9-Bjrjwfbm.js} +2 -2
  165. package/dist/assets/ReimbursementApprovalRuleDetailScreen-CrQlcAIE.js +1 -0
  166. package/dist/assets/{ReimbursementApprovalRulesPage-C2zNa8dT-Dx_jUEM7.js → ReimbursementApprovalRulesPage-BsCTIqUJ-CQyWyznw.js} +5 -5
  167. package/dist/assets/{ReimbursementDetailPage-B1o8ea57-Dof3tsbT.js → ReimbursementDetailPage-BbyxE2uL-DAWO6MN3.js} +16 -16
  168. package/dist/assets/{ReimbursementPromoPage-Df5QmXzC-BHlanHYp.js → ReimbursementPromoPage-CyEgwqcf-D5kNu4r7.js} +10 -10
  169. package/dist/assets/{ReimbursementRoutes-CNHtnGTV.js → ReimbursementRoutes-9PVCls-1.js} +3 -3
  170. package/dist/assets/{ReimbursementSetUpPage-D450RVsP-w7ex11t8.js → ReimbursementSetUpPage-RETPkEQd-zKPq6P2O.js} +9 -9
  171. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DwgKrhlQ-CGZmi3lN.js → ReimbursementsBulkReviewDrawerPage-DnmYl0FM-Cp5RXmHi.js} +1 -1
  172. package/dist/assets/{ReloadCard-D5cvzWxe-DYoPEBgn.js → ReloadCard-Bdoo0XiI-CgAT4eqC.js} +4 -4
  173. package/dist/assets/{ReportTableViewSelector-Ig41fOPb-rBlSQ3e9.js → ReportTableViewSelector-Bc1K7mU_-CRH7B2Xe.js} +9 -9
  174. package/dist/assets/{ReportsPage-CRAVAUTO-CDAZl-Wm.js → ReportsPage-BOTHMLWh-DYARtx-l.js} +7 -7
  175. package/dist/assets/ReportsRoutes-DAq_Kk7t.js +1 -0
  176. package/dist/assets/{RevenueChart-DtQu0KAn-CJ0e9bCc.js → RevenueChart-DvyZ3aO7-D41DyD4f.js} +18 -18
  177. package/dist/assets/{ReviewDetailsPage-vui4TqeA-CrYNT8pq.js → ReviewDetailsPage-BIMg1n2e-w51F2KtJ.js} +19 -19
  178. package/dist/assets/{ReviewOverlay-CUnL7H-a-B6WGfdWG.js → ReviewOverlay-CxwoiOLC-C8uqNFMN.js} +9 -9
  179. package/dist/assets/RewardsRoutes-2CDMw_SM.js +1 -0
  180. package/dist/assets/RoleWithToolTip-Ct3_VuDM-zYFjvA-a.js +22 -0
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-D_Cls2jC-BbXiHOdz.js → ScheduleDetailsFixedAssetsPage-DiL5Dozk-DjOTIJE4.js} +3 -3
  182. package/dist/assets/{ScheduleDetailsPage-DmSLuM8g-VVVHjW5Q.js → ScheduleDetailsPage-5FWpLRtd-DdkQQcuL.js} +3 -3
  183. package/dist/assets/{ScheduleSequenceTable-js9_P_Lo-D3P2gakZ.js → ScheduleSequenceTable-R3-PsXES-F_YuqAKO.js} +8 -8
  184. package/dist/assets/{ScreenRoutes-tN3DKXwj.js → ScreenRoutes-D-VUXgUA.js} +2 -2
  185. package/dist/assets/{SetUpAccountSection-DYRWWXcL-Bt4sXwAD.js → SetUpAccountSection-CctbMmoK-BIwzDeUn.js} +16 -16
  186. package/dist/assets/{SettingsRoutes-B7xS4Bv0.js → SettingsRoutes-BCFW0mUs.js} +7 -7
  187. package/dist/assets/{SetupPagesScreen-Dec5-vG9.js → SetupPagesScreen-D_H5m3yT.js} +6 -6
  188. package/dist/assets/{SignIn-CUJkZb3S-Cl_ZsA0p.js → SignIn-CmgmnRm4-BefvH7_D.js} +16 -16
  189. package/dist/assets/{SignInScreen-BCab6yM0.js → SignInScreen-DNDiNfUZ.js} +1 -1
  190. package/dist/assets/SignOutScreen-CGgsrBqm.js +9 -0
  191. package/dist/assets/{SpendManagementListViewPage-BieufnDb-BvlrNZeN.js → SpendManagementListViewPage-CFUxCqkU-DWVJ8T34.js} +11 -11
  192. package/dist/assets/{SpendManagementPerTabPage-BmUp80QX-5QSrTfVD.js → SpendManagementPerTabPage-C-kqNTci-61EpQHHf.js} +55 -55
  193. package/dist/assets/{SpendManagementSection-DKZNTYXT-JIQihEyD.js → SpendManagementSection-CIz4nE_w-CLtvB3Jo.js} +24 -24
  194. package/dist/assets/{StatementItem-Dyt5Q0eR-DMqzBE6A.js → StatementItem-vVtoBN2w-CGfe2rf-.js} +3 -3
  195. package/dist/assets/StatementsPage-As5WOnMR-C07ZcwWR.js +58 -0
  196. package/dist/assets/{StatusSwitcher-BfQ9VbBH-Dgu_WG_g.js → StatusSwitcher-Bv-ozN6U-BMGDezKv.js} +4 -4
  197. package/dist/assets/{SubTabSwitcher-CzGiuhk3-ryyXc5wR.js → SubTabSwitcher-D7QeM6nb-C5vo1QLg.js} +3 -3
  198. package/dist/assets/SuccessAnimation-hijccO_0-CXGCZdn9.js +13 -0
  199. package/dist/assets/SummaryCard-C2qoTsAY-LkZgmc3l.js +1 -0
  200. package/dist/assets/{TaskDetailPage-CyZxZdJB-Ciw5Uu5K.js → TaskDetailPage-QMk4DTDK-DuNonnMy.js} +39 -39
  201. package/dist/assets/TaskListScreen-DXCPcaMg.js +9 -0
  202. package/dist/assets/{TaskManagementPage-ucVAdv7x-fUgA7HRS.js → TaskManagementPage-BJwp32Ph-D-u68mRD.js} +64 -64
  203. package/dist/assets/TaskRoutes-Biii2LFo.js +9 -0
  204. package/dist/assets/{TimeRangeSwitcher-C3jXm39I-0VbXr2bN.js → TimeRangeSwitcher-D00bDDhP-BG1zi2IK.js} +2 -2
  205. package/dist/assets/{TimeframeSwitcher-CcYg-YQJ-DOGZ9gMN.js → TimeframeSwitcher-DA99HdHt-BQziHQmj.js} +6 -6
  206. package/dist/assets/{TimeframeSwitcherWithToggle-w4YJno-p-C9o85JE8.js → TimeframeSwitcherWithToggle-DyggDIQj-BfhUUfrK.js} +2 -2
  207. package/dist/assets/{TopExCard-D2PRxvFc-DYT8NSuE.js → TopExCard-Z1WabZ8c-CBwSMJxd.js} +6 -6
  208. package/dist/assets/{TopExDetailPage-C0uHdU7N-nxnaVy-a.js → TopExDetailPage-CzHG4f9E-gwAj-hq_.js} +18 -18
  209. package/dist/assets/{TransactionActivityLogPage-CqYb19tY-BdO5tRUg.js → TransactionActivityLogPage-CGKnjNfU-BApvDmwN.js} +1 -1
  210. package/dist/assets/TransactionDetailPage-1-mLOWSz-rzQ235mE.js +903 -0
  211. package/dist/assets/TransactionDetailRoutes-C36yIgf5.js +1 -0
  212. package/dist/assets/TransactionDetailScreen-B9QxqSWW.js +5 -0
  213. package/dist/assets/TransactionList-BB-xoIGm-Cfa3U35Q.js +153 -0
  214. package/dist/assets/{TransactionListBig-BrDWayQS-CYutGkGW.js → TransactionListBig-C5Sf5Xh--ILOBUs5F.js} +14 -14
  215. package/dist/assets/TransactionListPage-Cj7h1Ros-C0trpcRO.js +35 -0
  216. package/dist/assets/TransactionListRoutes-DYDLTelW.js +1 -0
  217. package/dist/assets/{TransactionVendorDetailPage-CQQuAR6V-BrnkOOxy.js → TransactionVendorDetailPage-SsrSOk3O-DvVZeIE6.js} +13 -13
  218. package/dist/assets/{TransferDrawerPage-DfFm-1-3-BUPWCPmv.js → TransferDrawerPage-BvKZ7vHF-gusMX693.js} +21 -21
  219. package/dist/assets/{TreasuryOverviewPage-CKSanlUG-hcTuDL8m.js → TreasuryOverviewPage-DwvjMR4_-v_PwtYfB.js} +15 -15
  220. package/dist/assets/{TreasuryPromoPage-Dyip3H10-CaL--OIv.js → TreasuryPromoPage-CtTFvSQW-CBUcln_7.js} +14 -14
  221. package/dist/assets/TreasuryRoutes-BL7M49IT.js +45 -0
  222. package/dist/assets/TreasuryStatementsPage-Catz8shX-B10cgIs5.js +58 -0
  223. package/dist/assets/{TreasuryTaxLetterPage-D3cV3a-8-BTBXzOEj.js → TreasuryTaxLetterPage-D8hzCL5o-8bU6d1vy.js} +4 -4
  224. package/dist/assets/TrendChart-Bnp4Pcdf-CsoTufL2.js +16 -0
  225. package/dist/assets/{TrendWithTransactions-It4KDov3-SqmxJLwp.js → TrendWithTransactions-3D1FvM8G-Dwn_v3ES.js} +7 -7
  226. package/dist/assets/{UncategorizedAccountsMappingPage-BxBz2Ce0-BuxR3cW9.js → UncategorizedAccountsMappingPage-DbyY-dYB-DJ-xU1nq.js} +5 -5
  227. package/dist/assets/{UnitIntegrationPage-gVgsk2ji-Be3rQKfw.js → UnitIntegrationPage-CTzme1te-Kzmir-JV.js} +4 -4
  228. package/dist/assets/{UploadAdditionalDocumentOverlay-C5m8jqup-BuDXKqpt.js → UploadAdditionalDocumentOverlay-Wl4Spdpn-vi85vqk-.js} +1 -1
  229. package/dist/assets/{Vendor2FAPopup-DRwBzOwn-Bu88G5Uf.js → Vendor2FAPopup-D0zYKkIv-Corqbsks.js} +1 -1
  230. package/dist/assets/VendorACHDetailsPage-YYX9aQdw-DWmocppw.js +1 -0
  231. package/dist/assets/{VendorDetailPage-jci1LqX3-CcT9Y7_3.js → VendorDetailPage-Br9wIOnI-D1eJIjzb.js} +5 -5
  232. package/dist/assets/VendorDomesticWireDetailsPage-BpPgQRHI-BpbupYob.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-8pYT3u-X-E-s_MI6R.js → VendorFiling1099EditablePage-himC7iD3-DuTr9_9d.js} +24 -24
  234. package/dist/assets/{VendorFirstReviewPage-CafakxA1-2lhthp_z.js → VendorFirstReviewPage-BbknTCBD-DB1g9Qot.js} +15 -15
  235. package/dist/assets/{VendorInternationalWireDetailsPage-DJeI-ZFW-DsIia0J7.js → VendorInternationalWireDetailsPage-CS595Xgc-CmEESHX6.js} +9 -9
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-yhTjWXvw-D43LaVfJ.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-YX2g8ETe-DB_XPKqM.js → VendorsAccountsSection-CgSJu8wq-CW2zmnnP.js} +4 -4
  238. package/dist/assets/{VendorsRoutes-BKpp91Ol.js → VendorsRoutes-C4N6gRBp.js} +23 -23
  239. package/dist/assets/{VerifyDevice-DeHW4GAi-Xw2L2uDk.js → VerifyDevice-Dvf0JsNN-CSGpw0v_.js} +2 -2
  240. package/dist/assets/VideoPlayer-VAzOGCDL-BYL37uoQ.js +77 -0
  241. package/dist/assets/{VideoPopup-CUP7ctgS-COd6keBu.js → VideoPopup-BqvZ-XIh-DBw1PWZ3.js} +5 -5
  242. package/dist/assets/WiseConfirmationScreen-DNU9Mqxk.js +12 -0
  243. package/dist/assets/{ZeniAccountDetailPage-7NdkdSg3-7e7alBpD.js → ZeniAccountDetailPage-GcwTJdB8-_6oIn_wc.js} +19 -19
  244. package/dist/assets/{ZeniAccountListViewPage-B-cs_xnc-DPQ7NJOh.js → ZeniAccountListViewPage-CdwO0Duy-G5U6kbnQ.js} +35 -35
  245. package/dist/assets/{ZeniAccountNavBarPieces-CjRip0v9-x_CaXaVR.js → ZeniAccountNavBarPieces-BrSIfL36-CgdxCVoA.js} +5 -5
  246. package/dist/assets/{ZeniAccountPromoPage-BikXtkeH-nFNGwlDD.js → ZeniAccountPromoPage-JrcedQYB-BtfY6t2a.js} +20 -20
  247. package/dist/assets/{ZeniAccountRoutes-C-qtUClC.js → ZeniAccountRoutes-uUgaZh13.js} +11 -11
  248. package/dist/assets/{ZeniAccountSetupPage-BRBsijVt-ZM0-bMDB.js → ZeniAccountSetupPage-TKBfbgzJ-Ovrdcrt5.js} +1 -1
  249. package/dist/assets/ZeniAccountStatementScreen-CPFcfx6A.js +9 -0
  250. package/dist/assets/{ZeniAvatar-pjdoqfWE-BIF5P_G9.js → ZeniAvatar-Bzhq25CU-DO1x3yqH.js} +1 -1
  251. package/dist/assets/{ZeniCopyright-DDGvdmLF-DwYXGCDa.js → ZeniCopyright-DglqrTpl-iRqjfc19.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker-K3F-G3-0-D-lxuOwz.js → ZeniDatePicker-BHXPxPnI-CRe89Wst.js} +6 -6
  253. package/dist/assets/{ZeniTransferAmountSlider-Cdg0TlHk-DNSmlK3y.js → ZeniTransferAmountSlider-BcaZZuAw-BeVI8Qc_.js} +2 -2
  254. package/dist/assets/{accountMappingHelper-CMy_dzCB.js → accountMappingHelper-BVO1DeGB.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-DZDSR_90.js → add-to-wallet-DgdBD8_G-CV8RMwhX.js} +1 -1
  256. package/dist/assets/{analytics-Buyhprzd.js → analytics-CZ3wLx3P.js} +1 -1
  257. package/dist/assets/{analyticsHelper-D9xdJK4b-C4FHTXha.js → analyticsHelper-CAYdbjhS-CB8PHHr8.js} +1 -1
  258. package/dist/assets/{analyticsHelper-CMK0FF_Q.js → analyticsHelper-RqmdZ4w4.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-CxvC0Cnw.js → arrow-south-east-round-PEovUgvH-DB6pjtdO.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-BXD0aAHO.js → auto-transfer-rule-mbafm5D3-CrxycPHV.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-tC3a4UX-.js → avatar-Dz7aEm3d-B1h__iIh.js} +1 -1
  262. package/dist/assets/{bank-letter-BOcVjN6J-B3HKnrvN.js → bank-letter-BOcVjN6J-B0RfZgcz.js} +1 -1
  263. package/dist/assets/{calculateSize-zPet_z9g-DAbLjY3A.js → calculateSize-B2w5JPEU-BqvYgtxt.js} +1 -1
  264. package/dist/assets/{chartTypes-Dq3hUz_T-boMzYtYd.js → chartTypes-CD3vrBsI-4eICteeW.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-BFtrn8ev.js → clock-CJkylEKt-o4osYW2f.js} +1 -1
  266. package/dist/assets/common-BpxEACHl-SqfXrkK_.js +1 -0
  267. package/dist/assets/{commonDimensions-CGHIQ2To-BnULbNsl.js → commonDimensions-Oz1tdAcx-Cf4qEJmU.js} +1 -1
  268. package/dist/assets/{commonTypes-BAJPaPYg-2nCYtMXG.js → commonTypes-5tEXwrX4-F6mC0EfI.js} +1 -1
  269. package/dist/assets/{core-5sxMy3sZ.js → core-CVVdXRky.js} +1 -1
  270. package/dist/assets/{dash.all.min-CTYaOyx7.js → dash.all.min-C2vle8BQ.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-BXr_Lgnt.js → decodeURIComponentSafe-Da8IsQO4.js} +1 -1
  272. package/dist/assets/{dnd-Cfx_ai1S.js → dnd-CcRW__D6.js} +3 -3
  273. package/dist/assets/{dollar-round-D18u7nlm-BAPPb_YV.js → dollar-round-D18u7nlm-BkHqkGHG.js} +1 -1
  274. package/dist/assets/{downloadPdf-BI2Y41h2-Bu4K6jWB.js → downloadPdf-Dsuxeias-CPZEuUrl.js} +1 -1
  275. package/dist/assets/{empty-CDKH4CBD.js → empty-BHbH22vT.js} +1 -1
  276. package/dist/assets/{empty-DLdEFiEn.js → empty-M26y6UyA.js} +1 -1
  277. package/dist/assets/epic-CiCSO3K5.js +2 -0
  278. package/dist/assets/{filter-cZIFUNvj-DR0oScp6.js → filter-cZIFUNvj-BeqNUW3e.js} +1 -1
  279. package/dist/assets/getLocaleForTenant-DBVI4ovb.js +1 -0
  280. package/dist/assets/{gift-box-Cmt9OgIZ-CLkhO8vB.js → gift-box-Cmt9OgIZ-CR0qdQnT.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BXfLioW6.js → graphic-no-data-l-DU4J8fDt-CslJm2fU.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DESi1ZUm.js → graphic-no-data-net-burn-l-CzmycA0m-Cj977U7E.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-Cw8-rpU_.js → handshake-BPg58FML-tq0X0Kiz.js} +1 -1
  284. package/dist/assets/{helper-z5-P4a-y-BYdbtuif.js → helper-Ckm10Uko-U81O1HXL.js} +1 -1
  285. package/dist/assets/{hyperlink-DQyCeXx2-DiF-LRfD.js → hyperlink-DQyCeXx2-D504LM2b.js} +1 -1
  286. package/dist/assets/{index-XrFKA72B.js → index-BZOQWoRX.js} +1 -1
  287. package/dist/assets/{index-DBW4633P.js → index-BngCC-zG.js} +2513 -2513
  288. package/dist/assets/{index-a2iFhnhM.js → index-ClO_SXUU.js} +1 -1
  289. package/dist/assets/{index-Bsc8ZpcH.js → index-DiKwyzh3.js} +1 -1
  290. package/dist/assets/{index-DCFJ_6wy.js → index-jI4vB8VC.js} +1 -1
  291. package/dist/assets/{index-B6cTzWKI.js → index-uxYir9Bm.js} +1 -1
  292. package/dist/assets/{lexical-BAlvZZhY.js → lexical-DPtIv0jk.js} +1 -1
  293. package/dist/assets/{liveblocks-BsQBjN-0.js → liveblocks-CHs9GmLG.js} +17 -17
  294. package/dist/assets/{lottie-C2R6rGxS.js → lottie-D68Xb3aQ.js} +1 -1
  295. package/dist/assets/mapLoadingInProgressToTreeNode-jcHEi-mv-cRyD83dc.js +1 -0
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-dsBogxKz-D2PE8B4K.js → mapSectionWithAcOnlyToTreeNode-Cgyt68f3-C2AYKRBA.js} +1 -1
  297. package/dist/assets/{mapSpacerToTreeNode-DMDEaLzQ-A_DJ4_H7.js → mapSpacerToTreeNode-XgUp1xUb-VRJ6un-L.js} +1 -1
  298. package/dist/assets/{mapTimeframeBalancesToTreeNode-CW_wzI5T-u6fAoA1F.js → mapTimeframeBalancesToTreeNode-Bre8FfBF-XT9mQqpQ.js} +1 -1
  299. package/dist/assets/mapTimeframeBalancesToTreeNode-DOyCX6ij-CGvd2Wmc.js +1 -0
  300. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-BVVmyoym.js +1 -0
  301. package/dist/assets/{media-player-BX2lrCiw.js → media-player-D-MhIu5T.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-C1UnGCa2.js → money-2cg1MuG4-DZxnWrWu.js} +1 -1
  303. package/dist/assets/{mui-C_CXevf3.js → mui-DyGc7Pg8.js} +3 -3
  304. package/dist/assets/{page-detail-CWX5S47F-DCvximFz.js → page-detail-CWX5S47F-CXX81aXy.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-BBMfUdRp.js → page-summary-D7_VQHwN-V_V9hbFl.js} +1 -1
  306. package/dist/assets/{panelSelectedMixin-Cddsb26L-Kk0Lc2Dj.js → panelSelectedMixin-Cddsb26L-bdcPTs-R.js} +1 -1
  307. package/dist/assets/{pathToGoBack-D5dFRCuJ.js → pathToGoBack-CsNBJVc2.js} +1 -1
  308. package/dist/assets/pdf-BxqSCr4b.js +13 -0
  309. package/dist/assets/{pdf-lib-BLLlynNv.js → pdf-lib-jHogAi_2.js} +1 -1
  310. package/dist/assets/{plaid-Yyr3DBd8.js → plaid-xWfKHEqu.js} +1 -1
  311. package/dist/assets/{pusher-CQAuuZH-.js → pusher-pngVK7xY.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh-HLL7c7Ix.js → radio-default-CiSgisfh-sLqGTxQv.js} +1 -1
  313. package/dist/assets/{react-CEO525cE.js → react-B3z4onjT.js} +1 -1
  314. package/dist/assets/{react-B9pn5zl_.js → react-BC4BTRLG.js} +1 -1
  315. package/dist/assets/{react-COI-5ihT.js → react-BElDOWJc.js} +1 -1
  316. package/dist/assets/{react-BFykbpKw.js → react-BuoJ-wtg.js} +1 -1
  317. package/dist/assets/{react-YbLjyGgM.js → react-CuUL9Ybl.js} +1 -1
  318. package/dist/assets/{react-D7RjW9MW.js → react-DpxbyLPn.js} +1 -1
  319. package/dist/assets/{react-BmJ9wc4M.js → react-DyZ9MM_3.js} +3 -3
  320. package/dist/assets/{react-BEZA9UfV.js → react-mv5GPJR4.js} +1 -1
  321. package/dist/assets/{recharts-CTWfsY-L.js → recharts-CMjB5mmq.js} +36 -36
  322. package/dist/assets/{routePaths-GPfd2GU_.js → routePaths-B2Ez8xiG.js} +1 -1
  323. package/dist/assets/{sentry-DINNQYpi.js → sentry-CHlUi953.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-DFaW8QSC.js → shield-DOlUxcFf-u1WG480f.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-05QrBanM.js → spend-limit-D6SyboD4-DKcfJ6au.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-aLNB35t7-DBx2vR3D.js +1 -0
  327. package/dist/assets/{toChartData-BUf5HHim-BlDtF069.js → toChartData-DUL6vnzJ-CHvhrhF4.js} +1 -1
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-kO6lyet9.js → transaction-placeholder-CpOwZAMG-BRNI97Lv.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-CAOnjxt9.js → undo-b_3XZ5CX-CHRencVP.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-fA9hPtxv.js → unlock-BPWn2I5L-BfuVrsIJ.js} +1 -1
  331. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-BbiwxEOu.js → upload-reimbursement-receipt-O2N8vcO7-vYnAE0FP.js} +1 -1
  332. package/dist/assets/{uploadAttachment-DJA30WSD-plv7LCEU.js → uploadAttachment-Ck4wivBR-D3iFmRh8.js} +18 -18
  333. package/dist/assets/{uploadReceipts-CqDftTRt-Dkc7WGe9.js → uploadReceipts-CIgkuVpu-DQDaRUPe.js} +1 -1
  334. package/dist/assets/{url-dGBmezhj.js → url-7B3Yv5Zc.js} +1 -1
  335. package/dist/assets/{url-BnrMVJye.js → url-CDjIygfF.js} +1 -1
  336. package/dist/assets/{useDeviceId-Dhw-GVYT.js → useDeviceId-CPhY1yO5.js} +1 -1
  337. package/dist/assets/useInitialThreadRequest-D3BmEojQ.js +1 -0
  338. package/dist/assets/{useLongPress-GCK2COYQ-CI59nlOM.js → useLongPress-GCK2COYQ-C-ro8Pxu.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-Bi23t2Q-.js → usp-line-BBd1wKwW-BHKdiO38.js} +1 -1
  340. package/dist/assets/{utils-DmE88LS_.js → utils-BpkJZQMI.js} +12 -12
  341. package/dist/assets/withTransactionSidePanel-D4jXMzEn.js +8 -0
  342. package/dist/assets/{zeni-epic-state-a7Sj5mjO.js → zeni-epic-state-D8D2Skiq.js} +6 -6
  343. package/dist/assets/{zeni-icon-only-COM3FcNM.js → zeni-icon-only-BUIVMYdQ.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/package.json +4 -4
  346. package/dist/assets/AccountInfoPage-B8upbXj9-vrSWYUF1.js +0 -18
  347. package/dist/assets/AccountInfoPageContent-CKpeDot5-D2xjzg6V.js +0 -149
  348. package/dist/assets/AddAddressForCardDrawer-riOPLnxb-mAwCf0Pc.js +0 -6
  349. package/dist/assets/AddressRoutes-DQjryUkl.js +0 -1
  350. package/dist/assets/AddressScreen-C6vJhn2u.js +0 -9
  351. package/dist/assets/AgingReportsPage-D9I9afnB-yHHj3Wmi.js +0 -79
  352. package/dist/assets/ApprovalRulesSettingsPage-DVGvJsQG-C6QLqN1r.js +0 -47
  353. package/dist/assets/ArAgingChart-Tcu0Lja_-BdIZJO8_.js +0 -24
  354. package/dist/assets/BalancesInsightWithToolTip-tiQUQUbX-DzkOWVQM.js +0 -38
  355. package/dist/assets/BillPayApprovalRoutes-BlJjLh3Z.js +0 -1
  356. package/dist/assets/ChargeCardPromoPage-Cz3rNFwM-Bi8y2V52.js +0 -222
  357. package/dist/assets/CheckDepositDrawerPage-D7_usOVn-J4mV41ZF.js +0 -206
  358. package/dist/assets/CompanyPassportScreen-ChKPVSO-.js +0 -1
  359. package/dist/assets/CompleteProfile-CsbsHQ0p-Bd33SFhs.js +0 -52
  360. package/dist/assets/ConfettiBurst-duD341Gp-DUM2aCzm.js +0 -1
  361. package/dist/assets/ConnectionAuthScreen--S5MRVzc.js +0 -11
  362. package/dist/assets/CustomerOnboardingAuthScreen-56Gd68oe.js +0 -1
  363. package/dist/assets/CustomerOnboardingContainerPage-DVL4s-eV-DfPVnT4w.js +0 -1
  364. package/dist/assets/CustomerOnboardingRoutes-BM1FvHLp.js +0 -23
  365. package/dist/assets/DashboardSidebarBackgroundAnimation-B3dtVAe2-ceF5qNn2.js +0 -12
  366. package/dist/assets/DepositAccTransactionItem-YuSXjbLh-B9DRqaZc.js +0 -76
  367. package/dist/assets/DomesticWireDetailScreen-BavbRsOF.js +0 -18
  368. package/dist/assets/DrawerScreen-C_bLtDRv.js +0 -1
  369. package/dist/assets/EditPeoplePage-8DalSMWH-jeT76aa4.js +0 -55
  370. package/dist/assets/EntityDetailPage-fmWuxHTZ-DkQICR3e.js +0 -18
  371. package/dist/assets/EntityDetailRoutes-BJPdCnex.js +0 -1
  372. package/dist/assets/ExpenseAutomationPage-4LJefgNh-CHSe-eX7.js +0 -3628
  373. package/dist/assets/ExpenseAutomationRoutes-DVq6I4cf.js +0 -20
  374. package/dist/assets/FeaturePreviewScreen-DX_dSelb.js +0 -1
  375. package/dist/assets/InsightsCardStack-uJWMkIZL-BEQ1nM_Y.js +0 -79
  376. package/dist/assets/InternationalWireVerificationPage-Cr3sDrT--CUVEN_2T.js +0 -65
  377. package/dist/assets/InvitePeoplePage-BT_YVCP4-DtNP7JKz.js +0 -12
  378. package/dist/assets/LabeledAddressValueField-F9kvUR_r-DWIWqg4N.js +0 -45
  379. package/dist/assets/MagicLinkACHDetailsPage-lAAwAtH7-u0ZacaAy.js +0 -1
  380. package/dist/assets/MagicLinkDomesticWireDetailsPage-cv823ASo-CPv9egXH.js +0 -1
  381. package/dist/assets/MagicLinkInternationalWireDetailsPage-C_SjsgC9-nDwskxXL.js +0 -1
  382. package/dist/assets/MagicLinkRoutes-JRtQtFqQ.js +0 -72
  383. package/dist/assets/MagicLinkSignInScreen-DkCDkLiS.js +0 -12
  384. package/dist/assets/MailingDetailsSection-9_XLl4bT-uVaax-qs.js +0 -21
  385. package/dist/assets/MobileAppDrawer-D_NdxckS.js +0 -1
  386. package/dist/assets/MyProfileSettingsPage-BUMIjZYc-DIf9EMiw.js +0 -85
  387. package/dist/assets/NavigationDots-DCpslVnm-wapVz6Ga.js +0 -15
  388. package/dist/assets/NoDataChart-9-bhq204-Ck-FboCC.js +0 -26
  389. package/dist/assets/NotFoundScreen-DIsBJSaH.js +0 -1
  390. package/dist/assets/NotificationRoutes-BlE0nk7I.js +0 -1
  391. package/dist/assets/NotificationsListConfig-CylnViXd-DiKD1VlE.js +0 -1
  392. package/dist/assets/OverlayContainerPage-CkUYOhlh-BLbo4mkL.js +0 -11
  393. package/dist/assets/PandLWithForecastRoutes-Du4Y6NM_.js +0 -1
  394. package/dist/assets/PeopleRoutes-BBTvXpYa.js +0 -22
  395. package/dist/assets/PerformanceRoutes-BwZ7C83C.js +0 -1
  396. package/dist/assets/ReferralListScreen-DTl3cgUl.js +0 -5
  397. package/dist/assets/ReimbursementApprovalRoutes-Chwz3Zd6.js +0 -1
  398. package/dist/assets/ReimbursementApprovalRuleDetailScreen-3osscpq2.js +0 -1
  399. package/dist/assets/ReportsRoutes-BpBrdYFu.js +0 -1
  400. package/dist/assets/RewardsRoutes-j_a3QqIz.js +0 -1
  401. package/dist/assets/RoleWithToolTip-x2rnvWn9-BcsseCTF.js +0 -22
  402. package/dist/assets/SignOutScreen-BVFjhNbz.js +0 -9
  403. package/dist/assets/StatementsPage-CbtnJM5y-DFFjoYfI.js +0 -58
  404. package/dist/assets/SuccessAnimation-DA3343II-CPpeKMV2.js +0 -13
  405. package/dist/assets/SummaryCard-D61xzK3a-QerUeyNc.js +0 -1
  406. package/dist/assets/TaskListScreen-j6aXmdAS.js +0 -9
  407. package/dist/assets/TaskRoutes-CGRMEck8.js +0 -9
  408. package/dist/assets/TransactionDetailPage-D-NR_yZG-Ci72o0wJ.js +0 -921
  409. package/dist/assets/TransactionDetailRoutes-DT2_L5nu.js +0 -1
  410. package/dist/assets/TransactionDetailScreen-C-kbZYkM.js +0 -5
  411. package/dist/assets/TransactionList-f6yB-byH-BbsyqjjD.js +0 -157
  412. package/dist/assets/TransactionListPage-C-Z62y2d-Cs4hNKp4.js +0 -35
  413. package/dist/assets/TransactionListRoutes-CS-Aed2O.js +0 -1
  414. package/dist/assets/TreasuryRoutes-2SWOS6G5.js +0 -45
  415. package/dist/assets/TreasuryStatementsPage-mljf2Van-BxW1eeF3.js +0 -58
  416. package/dist/assets/TrendChart-fFlHCvNx-C-NDpGcx.js +0 -16
  417. package/dist/assets/VendorACHDetailsPage-By2Ya2bv-BZiTrUhh.js +0 -1
  418. package/dist/assets/VendorDomesticWireDetailsPage-uIDE-n5v-CZQCRVkI.js +0 -1
  419. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Co-5nTam-ShOnk0vp.js +0 -1
  420. package/dist/assets/VideoPlayer-DxIfGrPu-CxZJ5OEW.js +0 -77
  421. package/dist/assets/WiseConfirmationScreen-B8p2H0wE.js +0 -12
  422. package/dist/assets/ZeniAccountStatementScreen-BtXMxdDS.js +0 -9
  423. package/dist/assets/common-kiEGPQ33-i2MKa07U.js +0 -1
  424. package/dist/assets/epic-Bn4m6PJ6.js +0 -2
  425. package/dist/assets/getLocaleForTenant-BxHoiee7.js +0 -1
  426. package/dist/assets/mapLoadingInProgressToTreeNode-DrC2Zs2y-BM0pLknf.js +0 -1
  427. package/dist/assets/mapTimeframeBalancesToTreeNode-DvfKBCs5-pYXcOLbR.js +0 -1
  428. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-BAYHZBxR.js +0 -1
  429. package/dist/assets/pdf-DyB_VHQx.js +0 -13
  430. package/dist/assets/toCOABalancesWithID-P7keEtAg-DjgvOCvR.js +0 -1
  431. package/dist/assets/useInitialThreadRequest-CIvC2FkG.js +0 -1
  432. package/dist/assets/withTransactionSidePanel-C2pbazis.js +0 -8
@@ -0,0 +1,20 @@
1
+ import{j as C}from"./pdf-BxqSCr4b.js";import Jt from"./NotFoundScreen-BOQb1xUE.js";import{a as l}from"./sentry-CHlUi953.js";import{n as Ee,D as lt,S as je}from"./mui-DyGc7Pg8.js";import{i as ue,j as rt,h as Be,u as F,l as Ze,k as Yt,R as Kt,m as Ae}from"./core-CVVdXRky.js";import{ct as Oe,Ny as Zt,cJ as re,cY as Qt,nd as Wt,Nz as _e,NA as dt,ko as Ht,NB as ut,jW as Xt,mK as en,NC as tn,gX as nn,ND as an,Co as on,cF as Ve,mp as mt,Ji as Qe,Jk as sn,gO as cn,Jl as ln,gV as rn,bT as dn,qb as Me,I9 as un,gW as mn,cH as hn,k1 as ht,kt as ke,cI as pt,ks as We,j$ as te,kv as gt,kx as pn,bG as gn,ij as Sn,ig as Cn,kw as Ie,ku as le,NE as In,kN as He,y2 as St,NF as Ct,pc as It,lR as fn,ha as kn,NG as En,NH as yn,NI as vn,NJ as bn,k9 as Tn,NK as wn,NL as Pn,NM as xn,kD as An,gZ as Rn,gQ as Dn,NN as Un,gY as Xe,Js as Fn,NO as Bn,NP as _n,ml as Vn,l$ as Mn,l_ as Re,NQ as jn,NR as On,Ia as De,NS as Ln,iw as zn,bs as Nn,iq as et,ia as $n,NT as Gn,eg as tt,du as qn,im as Jn,s4 as Yn,NU as Kn,l2 as Zn,Ib as Qn,kZ as Wn,l1 as Hn,kO as Xn,NV as ea,kh as ta,k4 as na,cZ as nt,ky as aa,NW as oa,NX as sa,NY as ca,NZ as ia,N_ as at,mx as la,lN as ra,N$ as ot,lE as da,lp as ua,lt as ma,lS as ha,O0 as pa,O1 as ga,O2 as Sa,lc as Ca,l9 as Ia,la as fa,l7 as ka,lG as Ea}from"./zeni-epic-state-D8D2Skiq.js";import{aE as ft,aG as de,jz as B,jO as Q,k2 as kt,mc as ya,y as Et,js as ye,md as va,kv as fe,jQ as yt,me as ba,mf as Ta,a7 as Ue,N as wa,_ as Pa,aF as xa,mg as Aa,x as Ra,O as Da,mh as Ua,k4 as Fa,mi as Ba}from"./index-BngCC-zG.js";import{c as st,C as _a}from"./TransactionDetailScreen-B9QxqSWW.js";import{w as Va}from"./withTransactionSidePanel-D4jXMzEn.js";import{h as Ma,v as ja}from"./routePaths-B2Ez8xiG.js";import{g as Fe}from"./accountMappingHelper-BVO1DeGB.js";import{D as Oa}from"./DrawerScreen-IScn_gPb.js";import"./lottie-D68Xb3aQ.js";import"./liveblocks-CHs9GmLG.js";import"./recharts-CMjB5mmq.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.js";import"./decodeURIComponentSafe-Da8IsQO4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new t.Error().stack;c&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[c]="de5996c3-4309-4dd7-bcc7-6d7d80b13127",t._sentryDebugIdIdentifier="sentry-dbid-de5996c3-4309-4dd7-bcc7-6d7d80b13127")}catch{}})();const La=()=>{const t=ue(),c=rt(),y=Be(),E=F(h=>Oe(h)),{useFeatureGate:T}=ft(),{isFeatureEnabled:p}=T(de.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:u}=T(de.isMissingReceiptsBulkUploadEnabled),r=F(h=>h.expenseAutomationViewState.selectedPeriodByTenantId),a=F(h=>Zt(h,E.tenantId)),g=l.useCallback((h,q,J=!1)=>{t(re({tenantId:q,period:{month:h.month,year:h.year},refreshViewInBackground:J}))},[]),x=l.useCallback(h=>{const q=y.state?.referrer;a.monthEndCloseChecks?.auditSummary!=null&&B.trackMonthCloseAuditPage(h.month,h.year,a.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",a.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,q??null),t(Qt(E.tenantId,h))},[E.tenantId,a.monthEndCloseChecks?.auditSummary,a.monthEndCloseChecks?.reportEmailSentDate]),d=r[E.tenantId],w=l.useCallback(()=>{const h=y.state?.referrer;a.monthEndCloseChecks?.auditSummary!=null&&B.trackMonthCloseAuditPage(d.month,d.year,a.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",a.monthEndCloseChecks.auditSummary.auditScorePercentage,!0,h??null),g(d,E.tenantId,!0)},[g,d,E.tenantId,a.monthEndCloseChecks?.auditSummary,a.monthEndCloseChecks?.reportEmailSentDate]),_=Q(y.state?.pathnameStackToGoBack,y.pathname),I=l.useCallback(()=>{if(a.monthEndCloseChecks!=null&&d!=null){const h=a.monthEndCloseChecks.monthEndCloseCheckList.find(q=>q.progress<100);if(h!=null)return void c(`./${h.id}/${d.month}-${d.year}`,{state:{pathnameStackToGoBack:_,message:"comingFromOverview"}});c(`./month_end_insights/${d.month}-${d.year}`,{state:{pathnameStackToGoBack:_,message:"comingFromOverview"}})}},[a.monthEndCloseChecks,d]),{areTenantIdsInSync:m}=kt();return l.useEffect(()=>{d!=null&&a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&m&&g(d,E.tenantId)},[g,d,a.fetchState,E.tenantId,m]),l.useEffect(()=>{d!=null&&a.monthClosePerformanceTrendFetchStatus.fetchState!=="In-Progress"&&a.monthClosePerformanceTrendFetchStatus.fetchState!=="Completed"&&m&&t(Wt(d))},[d,a.monthClosePerformanceTrendFetchStatus.fetchState,m]),l.useEffect(()=>{const h=setInterval(()=>{a.fetchState!=="In-Progress"&&a.fetchState==="Completed"&&w()},3e5);return()=>clearInterval(h)},[a.fetchState]),l.useEffect(()=>{if(a.fetchState==="Completed"&&a.monthEndCloseChecks?.auditSummary!=null){const h=y.state?.referrer;B.trackMonthCloseAuditPage(a.selectedPeriod.month,a.selectedPeriod.year,a.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",a.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,h??null)}},[a.fetchState,a.selectedPeriod,a.monthEndCloseChecks?.auditSummary,a.monthEndCloseChecks?.reportEmailSentDate]),C.jsx(za,{children:C.jsx(ya,{monthEndCloseChecksView:a,isRealtimeInsightsFeatureEnabled:p,isMissingReceiptsBulkUploadEnabled:u,onMonthEndCheckClick:h=>{c(`./${h}/${d.month}-${d.year}`,{state:{pathnameStackToGoBack:_,message:"comingFromOverview",referrer:"Expense Automation - Overview"}})},onPeriodChange:x,handleReviewButtonClick:I,onBackClick:()=>{c("../../dashboard")},onReload:w})})},za=Ee.div`
2
+ display: flex;
3
+ height: 100vh;
4
+ width: 100%;
5
+ flex: 1 1 auto;
6
+ flex-direction: column;
7
+ background-color: ${t=>t.theme.colors.grey4};
8
+ `,Na="512px",$a=({reconciliation:t,selectedDrawerAccountId:c,onFetchLinkTokenClick:y,onEstablishConnectionClick:E})=>{const T=Et(),p=ue(),u=ye.getSignedInUser(),r=F(m=>Oe(m)),a={userId:u?.userId??"",sessionId:u?.zeniSessionId??"",tenantId:r.tenantId??""},{accountReconciliationsByAccountID:g,monthYearPeriod:x,statementUploadChosen:d}=t,w=c!=null?g[c]:void 0,_=w?.accountReconEntity.statementMetaData?.statementUploadId,I=l.useCallback(()=>{c!=null&&p(_e({selectedDrawerAccountId:void 0}))},[p,c]);return w!=null?C.jsx(lt,{anchor:"right",open:c!=null,PaperProps:{style:{width:Na,color:T.colors.grey4}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:()=>I(),children:C.jsx(Ga,{onClick:m=>m.stopPropagation(),children:C.jsx(va,{accountReconciliation:w,monthYearPeriod:x,onDismissClick:I,plaidConnectionDetails:t.plaidConnectionDetails,onFetchLinkTokenClick:y,onEstablishConnectionClick:E,onEditFileName:(m,h)=>{p(en(m,h.split(".")[0]))},onDeleteFile:m=>{_!=null&&p(Xt({accountId:c??"",selectedPeriod:x,fileId:m,statementUploadId:_}))},onSelectSourceType:m=>{c!=null&&p(ut({accountId:c,selectedPeriod:x,localData:{accountSource:m}}))},filesEndPoint:`${fe.fileMicroServiceBaseUrl}`,authParams:a,openFilePicker:d,onStatementUploadSuccess:m=>{c!=null&&p(Ht({accountId:c,selectedPeriod:x,payload:m}))},onUploadWindowOpenedOnce:()=>{p(dt({statementUploadChosen:!1}))}})})}):null},Ga=Ee(je)`
9
+ display: flex;
10
+ min-height: 100%;
11
+ flex-direction: column;
12
+ `;function qa({companyId:t,closeCustomerRequestDrawer:c,addCustomerRequest:y,resetCustomerRequest:E}){const T=ye.getSignedInUser();if(T==null)throw Error("Can't access Customer Request page without signing in...");const p=F(u=>tn(u,t,T));return l.useEffect(()=>{E()},[]),C.jsx(C.Fragment,{children:p.fetchState==="In-Progress"||p.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?C.jsx(yt,{fetchState:"In-Progress"}):C.jsx(ba,{onCloseClick:c,addCustomerRequest:y,snippets:p.companyMonthEndReportTemplatesData,bulletPoints:p.zeniRequestsData??[]})})}const Ja=t=>C.jsx(Ta,{...t}),Ya="512px",Ka=({selectedTransactionId:t,onClose:c})=>{const y=Et(),E=ue(),T=F(a=>t==null?void 0:nn(a.transactionState,t)),p=T?.qboId,u=F(a=>p==null?void 0:an(a,p));l.useEffect(()=>{p!=null&&E(on(p))},[E,t,p]);const r=l.useCallback(()=>{c()},[c]);return t==null||u==null?null:C.jsx(lt,{anchor:"right",open:t!=null,PaperProps:{style:{width:Ya,color:y.colors.grey4}},slotProps:{backdrop:{style:{backgroundColor:"transparent",cursor:"pointer"}}},onClose:r,children:C.jsx(Za,{onClick:a=>a.stopPropagation(),children:C.jsx(Ja,{transactionActivityLogSelectorView:u,onClose:r})})})},Za=Ee(je)`
13
+ display: flex;
14
+ min-height: 100%;
15
+ flex-direction: column;
16
+ `,Qa=t=>t.sections.generalExpense.vendors.length+t.sections.reimbursement.vendors.length,{common:{strings:{hyphen:Wa,comma:ct,space:Ha}},dateFormat:vt}=Da.getLocalizedStrings(),it=Ea,Xa=Yt(function(t,c){const{uncategorizedAccounts:y,vendorSearchAutoCompleteData:E,monthEndInsightsCustomerRequestData:T,monthEndInsightsPreviewMode:p,companyId:u,isMissingReceiptsBulkUploadEnabled:r,isTransactionActivityEnabled:a}=c,g=ye.getSignedInUser(),x=t.tenantState.currentTenantId,d={userId:g?.userId??"",sessionId:g?.zeniSessionId??"",tenantId:x??""},w=Ve(t),{selectedTransactionCategorizationTab:_}=w;return{expenseAutomationViewSelector:w,bulkUploadSelector:w.missingReceipts.bulkUpload,vendorSearchAutoCompleteData:E,authParams:d,receiptUploadEndpoint:`${fe.accountMicroServiceBaseUrl}`,transactionAttachmentsEndpoint:`${Fa}/transaction_attachments`,bulkUploadEndpoint:r===!0?`${fe.communicationAgentMicroServiceBaseUrl}/1.0/receipts/bulk-upload`:void 0,isDisabled:!1,currentTab:_,monthEndInsightsCustomerRequestData:T,monthEndInsightsPreviewMode:p,allThreadsSectionOpen:!1,enableMonthEndInsightsZeniGPTFeature:!1,loggedInUser:g,uncategorizedAccounts:y,companyId:u,isTransactionActivityEnabled:a}},function(t,c){const{themeState:y,isCOTEnabled:E,isUncategorizedExpenseCategoryEnabled:T,isMissingReceiptsBulkUploadEnabled:p,location:u,vendorSearchAutoCompleteData:r,expenseAutomationViewSelector:a,currentTenant:g,uncategorizedAccounts:x,navigate:d,onClickCustomerRequest:w,handleEditClick:_,setActivityLogTransactionId:I}=c,{selectedPeriod:m,currentSelectedView:h,reconciliation:{selectedAccountId:q}}=a,{accountSettingsView:J}=a.jeSchedules,me=ht(m),V=ke(me.start),j=ke(me.end);return{onZeniLogoClick:()=>{y.toggle()},onUploadReceiptAttachment:e=>{B.trackMissingReceiptAttached(m.month,m.year),t(ra(e))},onUploadTransactionReceipt:(e,n,o,i,f,S)=>{t(at(e,n,{fetchState:"In-Progress"}));const k=()=>t(at(e,n,{fetchState:"Error"}));Ba(`${fe.accountMicroServiceBaseUrl}/1.0/transactions/${n}/attachments`,S,n,o,i,f).then(v=>{v!=null?t(la(e,v)):k()}).catch(k)},onMissingReceiptsRowClick:(e,n)=>{if(c.openTransactionPanel)return void c.openTransactionPanel(e,n);const o=Q(u.state?.pathnameStackToGoBack,u.pathname);d(`../../transaction/${n}/${e}`,{state:{pathnameStackToGoBack:o,message:"expenseAutomation",origin:"missing_receipts"}})},onUploadReceiptComplete:(e,n)=>{t(ia(e,n)),g!=null&&t(re({tenantId:g.tenantId,period:n,refreshViewInBackground:!0}))},onUploadReceiptFetchStatus:(e,n,o,i)=>{t(ca(e,{fetchState:n,error:o})),o!=null&&t(tt({messageSection:"missing_receipts_attachment",messageText:"failed",type:"error",showStatusIcon:!0,variables:[{variableName:"__message__",variableValue:i!=null?Ha+Wa+i+ct:ct}]}))},onUpdateMissingReceiptsUIState:e=>{t(sa(e))},onFetchMissingReceiptsList:()=>{j!=null&&V!=null&&t(gt({start:V,end:j},{amount:75,currencyCode:"USD",currencySymbol:"$"},!0,!1))},...p===!0?{onBulkUploadFiles:e=>{t(ka(e))},onBulkUploadProgress:e=>{t(fa(e))},onBulkUploadSuccess:e=>{t(Ia({batchId:e}))},onConfirmBulkUploadMatch:(e,n,o,i,f)=>{t(Ca(e,n,o,i,f))},onBulkUploadConfirmMatchAcknowledged:()=>{t(Sa())},onSetBulkUploadResultsTab:e=>{t(ga(e))},onSetBulkUploadCompletedSubTab:e=>{t(pa(e))},onSetBulkUploadSortConfig:(e,n)=>{t(ot({sortKey:e,sortOrder:n}))},onClearBulkUpload:()=>{t(ha())},onSearchTransactionsForManualMatch:(e,n)=>{t(it(e,n??void 0))},onLoadMoreManualSearch:()=>{const{manualSearch:e}=a.missingReceipts.bulkUpload;e.nextPageToken!=null&&e.searchQuery!==""&&t(it(e.searchQuery,e.nextPageToken))},onFetchCompletedTransactions:(e,n)=>{t(ma(e,n))},onFetchBulkUploadBatches:e=>{t(ua(e))},onFetchMoreBatchDetails:()=>{t(da())},onResetBulkUploadSort:()=>{t(ot({sortKey:"date",sortOrder:"descending"}))}}:{},onClearMissingReceiptsTabNavigation:()=>{t(oa())},onSearchTextChanged:e=>{const n=a.currentSelectedView,o=a.selectedTransactionCategorizationTab;n==="transaction_categorization"&&(t(Re({selectedTab:o,uiState:{searchString:e}})),j!=null&&V!=null&&t(le(o,{start:V,end:j},!0,!1,e,void 0,!0)))},onRefresh:()=>{c.trackExpenseAutomationTabAnalytics(!0),t(aa(T))},onClose:()=>{h==="reconciliation"&&q!=null&&t(nt({selectedAccountId:void 0})),d("../")},onBack:()=>{h==="reconciliation"&&q!=null&&t(nt({selectedAccountId:void 0}))},onSaveReconciliation:e=>{t(na(e))},onSaveReconciliationReview:e=>{t(ta(e))},onUpdateStep:e=>{const{selectedPeriod:n}=a,o=Q(u.state?.pathnameStackToGoBack,u.pathname);d(`../${e}/${n.month}-${n.year}`,{state:{pathnameStackToGoBack:o,referrer:a.currentSelectedView}}),t(pt(e))},handleLogOutClick:()=>{const e=Q(u.state?.pathnameStackToGoBack,u.pathname);d("/signout",{replace:!0,state:{pathnameStackToGoBack:e,message:"logout"}})},onJeAccountSettingsChange:e=>{const{vendorsAccountSection:n}=e,{prepaidExpensesAccount:o,fixedAssetsAccount:i,accruedExpensesAccount:f}=n,S=Fe(J.prepaidExpensesAccountList,o.selectedOptions),k=Fe(J.fixedAssetsAccountList,i.selectedOptions),v=Fe(J.accruedExpensesAccountList,f.selectedOptions),O={selectedPrepaidExpensesAccountIds:S.map(D=>D.accountId),selectedFixedAssetsAccountIds:k.map(D=>D.accountId),selectedAccruedExpensesAccountIds:v.map(D=>D.accountId)};t(ea({data:O}))},onSaveJeAccountSettingsClick:()=>{t(Xn())},onJESchedulesFormDataChange(e,n){const{jeScheduleID:o,accumulatedDepreciationCategory:i,scheduleClass:f,scheduleExpenseCategory:S,vendor:k}=n,{allAccountList:v,allClassList:O,allDepreciationAccountList:D}=a.jeSchedules,Y=r.entityAutoCompleteView.vendor.length>0?r.entityAutoCompleteView.vendor.find(L=>L.id===k?.selectedOption):void 0,he={id:Y?.zeniId??k?.selectedOption??"",name:Y?.name??k?.defaultOptions.find(L=>L.value===k?.selectedOption)?.label??"",logo:Y?.logo},ne=S?.selectedOption!=null?v.find(L=>L.qboId===S.selectedOption):void 0,ve=f?.selectedOption!=null?O.find(L=>L.classId===f.selectedOption):void 0,K=i?.selectedOption!=null?D.find(L=>L.qboId===i.selectedOption):void 0;t(Hn({scheduledJournalEntryID:e,localData:{jeScheduleID:o,scheduledJournalEntryID:e,updatedCategoryId:ne?.accountId,updatedClassId:ve?.classId,updatedAccumulatedDepreciationCategoryID:K?.accountId,updatedVendor:{id:he.id,name:he.name}}}))},ignoreRecommendedJeSchedule(e,n){t(Wn(e,n))},vendorSearchAutoCompleteActions:{onAutoCompleteInputChange:(e,n)=>{e.trim().length>=2?t(Qn({searchString:e,entityType:n,searchOrigin:"common"})):e.trim().length===0&&t(De("common"))},onCancelAutoComplete:()=>{t(De("common"))}},onPostJESchedule(e,n){t(Zn({scheduledJournalEntryID:e,jeScheduleTransactionKey:n}))},clearJeScheduleLocalData(){t(Kn())},handleJeScheduleClick:(e,n,o)=>{t(Yn({selectedJEScheduleKey:n}));const i=Q(u.state?.pathnameStackToGoBack,u.pathname);d(`../../vendors/schedules/${o}/details/${e}`,{state:{pathnameStackToGoBack:i,message:"expenseAutomation",origin:"je_schedules"}})},improveMonthEndInsightsUsingZeniGPTClick:e=>{g!=null&&t(Jn(e,g.companyId,g.tenantId))},onClickCustomerRequest:w,setActivityLogTransactionId:I,onCloseAllThreadsSection:()=>{},onCloseFileAttachmentSnackBar:()=>{t(qn())},onOpenFileAttachmentSnackBar:()=>{t(tt({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},onRemoveFileAttachment:e=>{t(Gn(e))},onUpdateFileAttachment:e=>{t($n({files:e}))},previewMonthEndReport:(e,n,o,i)=>{g!=null&&t(et(e,g.companyId,n,!0,o,i,g.tenantId))},saveMonthEndReport:(e,n,o,i)=>{g!=null&&t(et(e,g.companyId,n,!1,o,i,g.tenantId))},onEditMonthEndInsightsClick:_,sendMonthEndReport:e=>{const n=u.state?.referrer,{selectedPeriod:o,auditSummary:i}=a;g!=null&&i?.auditScorePercentage!=null&&(t(zn(g.companyId,e,g.tenantId)),B.trackInsightsEmailPage(o.month,o.year,!1,"draft",i.auditScorePercentage,Nn().format(vt.analytics.MMMDDCommaYYYYformat),n??null))},onTransactionCategorizationRowClick:(e,n)=>{if(c.openTransactionPanel)return void c.openTransactionPanel(e,n);const o=Q(u.state?.pathnameStackToGoBack,u.pathname);d(`../../transaction/${n}/${e}`,{state:{pathnameStackToGoBack:o,message:"expenseAutomation",origin:"transaction_categorization"}})},setLocalDataForCategoryAndClass:(e,n,o,i,f,S,k,v,O,D,Y)=>{t(Ln(e,n,o,i,x,f,S,k,v,O,D,Y))},onCancelAutoComplete:()=>{t(De("common"))},updateExpenseAutomationReconListScrollPosition:e=>{t(On({scrollPosition:e}))},onUpdateTab:e=>{c.closeSidePanel?.(),j!=null&&V!=null&&(t(le(e,{start:V,end:j},!1,!1)),t(jn(e)))},onUpdateTransactionCategorizationUIState:(e,n)=>{t(Re({selectedTab:e,uiState:n})),j!=null&&V!=null&&t(le(e,{start:V,end:j},!1,!1,n.searchString,null,!0))},onUpdateScrollYOffSetTransactionCategorizationUIState:(e,n)=>{t(Re({selectedTab:e,uiState:n}))},onFetchTransactionCategorizationList:(e,n,o,i,f,S,k)=>{j!=null&&V!=null&&t(le(e,{start:V,end:j},!0,o,n,i,f,S,k))},resetTransactionCategorizationLocalData:(e,n,o,i,f,S,k,v)=>{t(Mn(e,n,o,i,v??null,f,S,!1,k))},updateSelectedVendorForTransaction:(e,n,o,i,f)=>{t(Xe({selectedTab:e,transactionId:n,lineId:o,selectedTransaction:i,uncategorizedAccounts:x,updatedVendor:f}))},onSaveUpdateTransactionCategorization:(e,n,o)=>{const i=u.state?.referrer;e==="autoCategorized"?B.trackTransactionsAutoCategorisedPage(m.month,m.year,a.transactionView.totalCountByTab.autoCategorized,n.length,!1,i??null):B.trackTransactionsReviewPage(m.month,m.year,a.transactionView.totalCountByTab.review,n.length,!1,i??null),t(Vn(e,n,o,T))},onUpdateSelectedCheckboxTransactionIds:(e,n)=>{t(_n({selectedTab:e,transactionIds:n}))},onFetchRecommendationsForEntityCategorizationWithCustomer:(e,n,o,i,f,S,k)=>{const{transactionId:v,transaction:O,lineIds:D}=n;S!=null&&t(Fn({transactionId:v,customerUpdates:S})),t(Bn({selectedTab:i,transactionId:v.id,lineId:D[0],selectedTransaction:O,uncategorizedAccounts:x,updatedCustomer:S,selectedEntity:f,isUncategorizedExpenseCategoryEnabled:k})),f!=null&&t(Me(f,e,n,o,!0,E,k))},onFetchRecommendationsForEntityCategorization:(e,n,o,i,f,S,k)=>{const{transactionId:v,transaction:O,lineIds:D}=n;S!=null&&(t(Rn({transactionId:v,vendorUpdates:{name:S.name,id:S.id?S.id:void 0}})),t(Dn({vendorId:S.id?S.id:void 0,localData:{vendorName:S.name,vendorId:S.id?S.id:void 0}}))),S?.id?(t(Xe({selectedTab:i,transactionId:v.id,lineId:D[0],selectedTransaction:O,uncategorizedAccounts:x,updatedVendor:S,selectedEntity:f,isUncategorizedExpenseCategoryEnabled:k})),f!=null&&t(Me(f,e,n,o,!0,E,k))):t(Un({selectedTab:i,transactionId:v.id,lineId:D[0]}))},fetchFluxViewOnScroll:(e,n)=>{t(Ie(e,!0,!1,n,!1,!0))},onFetchFluxViewList:()=>{t(Ie(m,!0,!1,null,!1,!1))},markAsReview:(e,n,o,i)=>{B.trackFluxAnalysisReviewed(o.month,o.year,i??!1,e),t(An(n,e,o,i??!1))},onUpdateFluxAnalysisUIState:e=>{t(xn(e))},updateOperatingExpensesIdsForReview:e=>{t(Pn({operatingExpenseIds:e,selectedPeriod:m}))},redirectToVendorDetailPage:e=>{if(c.tenantEmailDomain!=null){const n=ja(e.id,e.qboId,c.tenantEmailDomain),o=Q(c.location.state?.pathnameStackToGoBack,c.location.pathname);c.navigate(n,{state:{pathnameStackToGoBack:o,message:"expenseAutomation",referrer:"Vendor List",origin:"flux_analysis"}})}},updateSectionIdsForReview:e=>{t(wn({sectionId:e,selectedPeriod:m}))},onFetchReimbursementView:(e,n,o)=>{t(Ie(e,!0,!1,n,!0,o))},onReviewClicked:e=>{t(te(m,e))},setOpenDrawerClicked:e=>{t(_e({selectedDrawerAccountId:e}))},onFetchLinkTokenClick:(e,n)=>{t(It("expense_automation_reconcile",e,n))},onEstablishConnectionClick:(e,n)=>{const o=g?.companyId;o!=null&&(t(St(e,o,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",n)),t(Ct({accountId:n,connectionInProgress:!0})))},onAddStatementClick:e=>{t(_e({selectedDrawerAccountId:e})),t(ut({accountId:e,selectedPeriod:m,localData:{accountSource:"bank_statement"}})),t(dt({statementUploadChosen:!0}))},onReloadReconciliationListPage:()=>{t(te(m,void 0,!0,!1))},onUpdateReconcileTabLocalData:e=>{t(Tn({selectedTransactionIds:e}))},onReconTabColumnSortConfigChanged:(e,n)=>{t(bn({sortKey:e,sortOrder:n}))},onReconReviewTabColumnSortConfigChanged:(e,n)=>{t(vn({sortKey:e,sortOrder:n}))},onReconTabUpdate:e=>{c.closeSidePanel?.(),t(yn({selectedTab:e}))},updateReconReviewTabLocalData:(e,n,o)=>{const i=e.vendor?.id;o&&i!=null&&t(kn(i)),t(En({data:e,transactionId:n}))},onReconMatchedTransactionClick:e=>{if(c.openTransactionPanel)return void c.openTransactionPanel(e,mt("bill"));const n=Q(u.state?.pathnameStackToGoBack,u.pathname);d(`../../transaction/bill/${e}`,{state:{pathnameStackToGoBack:n,message:"expenseAutomation",origin:"reconciliation"}})},onReloadPage:()=>{window.location.reload()}}},(t,c,y)=>{const{isMissingReceiptsBulkUploadEnabled:E,...T}=y;return function(p,u,r){return{...p,...u,...r,onUploadTransactionReceipt:(a,g,x,d,w)=>{u.onUploadTransactionReceipt(a,g,x,d,w,p.authParams)}}}(t,c,T)})(Ua),eo=Va(({closeSidePanel:t,openTransactionPanel:c,panelContent:y,sidePanelIsFullView:E,sidePanelIsOpen:T})=>{const p=rt(),u=Be(),r=ue(),{areTenantIdsInSync:a}=kt(),g=(()=>{const s=F($=>Ve($)),b=Be(),{currentSelectedViewFetchState:R,currentSelectedView:U,selectedPeriod:P}=s,ie=Ue(U),W=Ue(R.fetchState),ge=l.useCallback($=>{const Z=b.state?.referrer;U==="transaction_categorization"&&(s.selectedTransactionCategorizationTab==="review"?B.trackTransactionsReviewPage(P.month,P.year,s.transactionView.totalCountByTab.review,0,$,Z??null):B.trackTransactionsAutoCategorisedPage(P.month,P.year,s.transactionView.totalCountByTab.autoCategorized,0,$,Z??null)),U==="missing_receipts"&&B.trackMissingReceiptsPage(P.month,P.year,$,s.missingReceipts.transactions.length,Z??null),U==="je_schedules"&&B.trackMonthCloseScheduleListPage(P.month,P.year,$,s.jeSchedules.draftSchedules.length,s.jeSchedules.resolveSchedules.length,Z??null),U==="flux_analysis"&&B.trackFluxAnalysisPage(P.month,P.year,$,Qa(s.fluxAnalysis),Z??null),U==="month_end_insights"&&s.auditSummary?.auditScorePercentage!=null&&B.trackInsightsEmailPage(P.month,P.year,$,"draft",s.auditSummary.auditScorePercentage,null,Z??null)},[P,s]);return l.useEffect(()=>{W===R.fetchState&&U===ie||R.fetchState!=="Completed"||ge(!1)},[U,R.fetchState,ie]),ge})(),x=wa(),[d,w]=l.useState(!1),_=F(s=>Qe(s)),I=F(s=>Oe(s)),[m,h]=l.useState(!1),[q,J]=l.useState(!1),[me,V]=l.useState([]),[j,e]=l.useState(void 0),[n,o]=l.useState(!1),i=l.useRef(!1),{selectedTab:f}=Ze(),{tenantEmailDomain:S}=Ze(),[k,v]=l.useState(u.state?.message==="comingFromTransactionDetail"),O=u.state?.message==="comingFromOverview",D=Pa(),Y=ye.getSignedInUser(),{useDynamicConfig:he,useFeatureGate:ne}=ft(),{configValue:ve}=he(xa.enableUncategorizedExpenseCategory),K=ve?.uncategorized_expense_category_enabled===!0,{isFeatureEnabled:L}=ne(de.isRealtimeInsightsFeatureEnabled),{isFeatureEnabled:be}=ne(de.isMissingReceiptsBulkUploadEnabled),{isFeatureEnabled:Le}=ne(de.isTransactionActivityEnabled),bt=F(s=>un(s,"common")),M=F(s=>Ve(s)),{monthEndCloseChecksView:N,currentSelectedView:z,selectedPeriod:A,selectedTransactionCategorizationTab:ze,currentSelectedViewBackgroundRefreshFetchState:Tt,currentSelectedViewFetchState:X,jeSchedules:Te,reconciliation:wt}=M,{selectedAccountId:ae}=wt,Ne=Ue(Te.accountSettingsView.saveState.fetchState),Pt=F(s=>mn(s.accountState,s.accountListState,"accountList")),oe=f!=null?hn(f):z,xt=F(s=>s.entityAutoCompleteState.autoCompleteText.common);if(Y==null)throw Error("Can't access expense automation screen without signing in...");const $e=ht(A),se=ke($e.start),ce=ke($e.end);if(se==null||ce==null)throw Error(`Invalid start - ${se} and end - ${ce} period from given ${A}`);const At=l.useCallback(()=>{h(!1)},[]),Rt=l.useCallback(()=>{J(!0)},[]),Dt=l.useCallback(s=>{V(s),J(!1)},[]),Ut=l.useCallback(()=>{V([])},[]),we=`private-${Y.userId}`,Ge="missing-receipts-batch-completed",pe=Aa();l.useEffect(()=>{if(pe==null||z!=="missing_receipts"||be===!1)return;const s=pe.channel(we)??pe.subscribe(we),b=R=>{r(fn({batchId:R.batch_id,progress:R.progress,status:R.status.toLowerCase()}))};return s.bind(Ge,b),()=>{s.unbind(Ge,b)}},[pe,z,we,r,be]),l.useEffect(()=>{_.newVendorState?.vendorDetailLocalData?.vendorName!=null?w(!0):w(!1)},[_.newVendorState?.vendorDetailLocalData?.vendorName]),l.useEffect(()=>{oe!=null&&z!==oe&&r(pt(oe))},[oe]),l.useEffect(()=>{n!==!1||X.fetchState!=="Completed"&&X.fetchState!=="Error"||!a||(o(!0),r(We(!1,!1,K)))},[n,X,a,K]),l.useEffect(()=>{!O&&a&&(r(We(!1,!1,K)),r(te(A,ae,!1,!1)))},[A.month,A.year,a,K]);const qe=l.useCallback((s=!1,b=!1)=>{const R={start:se,end:ce};switch(z){case"transaction_categorization":r(le(ze,R,s,!k,void 0,void 0,b,void 0,K)),v(!1);break;case"flux_analysis":r(Ie(A,s,b,null));break;case"month_end_insights":if(b===!1){const U=new Date(A.year,A.month,0),P=gn(U.toDateString()).format(vt.analytics.YYYYDashMMDashDDFormat);r(Sn(!0,I.companyId,I.tenantId,P)),r(Cn(I.companyId,I.tenantId))}break;case"je_schedules":r(pn(R,b));break;case"missing_receipts":r(gt(R,{amount:75,currencyCode:"USD",currencySymbol:"$"},s,b));break;default:r(te(A,ae,s,b))}},[z,se,ce,I.companyId,I.tenantId,ze,A,ae,k,v,K]);l.useEffect(()=>{z===oe&&X.fetchState==="Not-Started"&&a&&qe(!0)},[X,se,ce,I.companyId,I.tenantId,a]),l.useEffect(()=>{O||k||i.current||Tt.fetchState==="In-Progress"||X.fetchState!=="Completed"||(i.current=!0,qe(!0,!0))},[]),l.useEffect(()=>{N.fetchState!=="In-Progress"&&N.fetchState!=="Completed"&&r(re({tenantId:I.tenantId,period:A,refreshViewInBackground:!1}))},[N.fetchState,I.tenantId]),l.useEffect(()=>{M.monthEndInsights?.previewMonthEndReportStatus?.fetchState==="Completed"?h(!0):h(!1)},[M.monthEndInsights?.previewMonthEndReportStatus?.fetchState]),l.useEffect(()=>{M.monthEndInsights?.sendMonthEndReportStatus?.fetchState==="Completed"&&a&&(r(re({tenantId:I.tenantId,period:A,refreshViewInBackground:!0})),r(In({companyId:I.companyId})),p("../"))},[M.monthEndInsights?.sendMonthEndReportStatus?.fetchState,I.tenantId,A,I.companyId,a]),l.useEffect(()=>{const s=setInterval(()=>{N.fetchState!=="In-Progress"&&N.fetchState==="Completed"&&r(re({tenantId:I.tenantId,period:A,refreshViewInBackground:!0}))},3e5);return()=>clearInterval(s)},[N.fetchState,I.tenantId,A,r]),l.useEffect(()=>{const s=setInterval(()=>{z==="reconciliation"&&ae==null&&M.reconciliation.fetchStatus.fetchState==="Completed"&&M.reconciliation.refreshStatus.fetchState!=="In-Progress"&&r(te(A,void 0,!0,!0))},3e5);return()=>clearInterval(s)},[z,r,M.reconciliation.fetchStatus.fetchState,M.reconciliation.refreshStatus.fetchState,te,ae,A]);const Ft=st();l.useEffect(()=>{const s=(N.monthEndCloseChecks?.monthEndCloseCheckList.find(b=>b.id==="month_end_insights")?.isDisabled??!1)&&!L;z!=="month_end_insights"||!s&&N.monthEndCloseChecks?.reportEmailSentDate==null||p("../")},[z,N.monthEndCloseChecks]);const Bt=M.reconciliation.selectedDrawerAccountId;l.useEffect(()=>{Ne==="In-Progress"&&Te.accountSettingsView.saveState.fetchState==="Completed"&&r(He())},[Ne,Te.accountSettingsView.saveState.fetchState,He]);const{transactionId:Je,onSaveVendor:_t,onSaveSuccess:Vt,onCancel:Mt,vendorViewDetails:jt}=(({expenseAutomationViewSelector:s,closeDrawerHandler:b,currentSelectedView:R})=>{const U=ue();let P,ie,W;const ge=st(),$=s.transactionView;let Z=()=>{};const{transactions:Ot,selectedTransactionId:ee,selectedTransactionLineId:Se,transactionLocalData:Lt}=$;if(R==="transaction_categorization"){const Pe=Lt.find(H=>H.transactionId===ee),G=Ot.find(H=>H.id===ee),Ye=Se!=null?Pe?.transactionReviewLocalData?.lineItemById[Se]:void 0,Ke=Ye?.account;ie=Ye?.class?.classId,P=["Uncategorized Income","Uncategorized Expense"].includes(Ke?.accountName??"")?void 0:Ke?.accountId;const Nt=Ma(ee,G?.typeOfTransaction);G!=null&&Nt&&(W={id:ee,type:mt(G.typeOfTransaction)}),Z=()=>{if(ee!=null&&Se!=null&&G!=null){const H=$.transactionLocalData.find(Ce=>Ce.transactionId===ee)?.transactionReviewLocalData;if(H!=null&&G.lines!=null&&G.lines.length>0){const Ce=H.lineItemById[Se];let xe=H.selectedEntity;if(dn(G)||(xe=Ce.selectedEntityLine),xe!=null){const $t=xe,Gt={transactionId:{id:G.id,type:G.type},transaction:G,lineIds:G.lines.map(qt=>qt.id)??[]};U(Me($t,Ce.amount.amount,Gt,!1,!0,ge))}}}}}const zt=F(Pe=>Qe(Pe,void 0,P,ie));return{transactionId:W,onSaveVendor:()=>{U(rn(W,void 0,!1,!0))},onSaveSuccess:Z,onCancel:()=>{W!=null&&U(sn({transactionId:W})),U(cn()),U(ln()),b()},vendorViewDetails:zt}})({expenseAutomationViewSelector:M,closeDrawerHandler:()=>{w(!1)},currentSelectedView:z});return D?.loggedInUserRoleMap!=null&&N.fetchState==="Completed"?C.jsxs(C.Fragment,{children:[C.jsx(Oa,{isOpen:q,drawerLeftMargin:new Ra(0,0,300,650),onClose:()=>{J(!1)},children:C.jsx(to,{onClick:s=>s.stopPropagation(),children:C.jsx(qa,{companyId:I.companyId,closeCustomerRequestDrawer:()=>J(!1),addCustomerRequest:Dt,resetCustomerRequest:Ut})})}),Je!=null&&d&&C.jsx(_a,{isOpen:d,transactionId:Je,onSaveVendor:_t,onSaveSuccess:Vt,onCancel:Mt,vendorViewDetails:jt}),C.jsx($a,{selectedDrawerAccountId:Bt,reconciliation:M.reconciliation,onFetchLinkTokenClick:(s,b)=>{r(It("expense_automation_reconcile",s,b))},onEstablishConnectionClick:(s,b)=>{const R=I?.companyId;R!=null&&(r(St(s,R,"expense_automation_reconcile",void 0,"link_account_no_microdeposit",b)),r(Ct({accountId:b,connectionInProgress:!0})))}}),Le&&C.jsx(Ka,{selectedTransactionId:j,onClose:()=>e(void 0)}),C.jsx(Xa,{navigate:p,location:u,themeState:x,vendorSearchAutoCompleteData:{autoCompleteText:xt,entityAutoCompleteView:bt},expenseAutomationViewSelector:M,isMissingReceiptsBulkUploadEnabled:be,monthEndInsightsPreviewMode:m,monthEndInsightsCustomerRequestData:me,isRealtimeInsightsFeatureEnabled:L,isUncategorizedExpenseCategoryEnabled:K,isCOTEnabled:Ft,currentTenant:I,companyId:I.companyId,signedInUser:Y,isTransactionActivityEnabled:Le,uncategorizedAccounts:Pt,onClickCustomerRequest:Rt,handleEditClick:At,tenantEmailDomain:S,trackExpenseAutomationTabAnalytics:g,setActivityLogTransactionId:e,closeSidePanel:t,openTransactionPanel:c,sidePanelIsOpen:T,sidePanelIsFullView:E,panelContent:y})]}):C.jsx(yt,{fetchState:N.fetchState})}),to=Ee(je)`
17
+ display: flex;
18
+ min-height: 100%;
19
+ flex-direction: column;
20
+ `;function vo(){return C.jsxs(Kt,{children:[C.jsx(Ae,{path:"*",element:C.jsx(La,{})}),C.jsx(Ae,{path:"/:selectedTab/:selectedPeriod/*",element:C.jsx(eo,{})}),C.jsx(Ae,{path:"*",element:C.jsx(Jt,{})})]})}export{vo as default};
@@ -1,4 +1,4 @@
1
- import{y as Be,X as K,O as q,P as Qe,a7 as ke,c8 as et,V as t,a_ as tt,M as it,a9 as nt,x as g,o as n,jo as at,jp as lt,jq as ot,cg as ze,cd as rt,eH as dt,fg as st,fh as ct,cf as Oe,fN as pt,jr as mt,ci as ut,cj as ht,eO as Ee,eP as Le,eY as Ae,w as ge,j as p,eZ as yt,au as gt,ar as fe,e as We,H as xt,T as qe}from"./index-DBW4633P.js";import{a as Y}from"./sentry-DINNQYpi.js";import{n as d}from"./mui-C_CXevf3.js";import{bG as _e,bs as oe,c5 as He,bU as bt,cp as ft}from"./zeni-epic-state-a7Sj5mjO.js";import{Y as wt}from"./LabeledDocumentField-rriEcsdr-BwrcuQUL.js";import{S as ie}from"./LabeledText-DGZ7hxY4-BoX7lemD.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="09bffb30-92f3-4b1b-8fe7-9d51004e08f8",e._sentryDebugIdIdentifier="sentry-dbid-09bffb30-92f3-4b1b-8fe7-9d51004e08f8")}catch{}})();const vt={progressBarWidth:new g(343,726)},St=({pageIndex:e})=>{const i=K(),x=Be(),u=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[u.stateOne,u.stateTwo,u.stateThree];return i==="small"?t.jsxs(Ct,{children:[t.jsx(at,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:x.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Pt,{children:h.map((c,l)=>t.jsx(Tt,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Me,{children:c})},l))})]}):t.jsxs(jt,{windowSize:i,children:[t.jsx(lt,{coloredSectionCount:e,totalSections:2,barColor:x.colors.brandColorJade,isFrozen:!1}),t.jsx(It,{children:h.map((c,l)=>t.jsx($t,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Me,{children:c})},c))})]})},jt=d.div`
1
+ import{y as Be,e as K,O as q,T as Qe,a7 as ke,c8 as et,V as t,a_ as tt,A as it,a9 as nt,x as g,o as n,jm as at,jn as lt,jo as ot,cg as ze,cd as rt,ex as dt,f6 as st,f7 as ct,cf as Oe,fD as pt,jp as mt,ci as ut,cj as ht,eE as Ee,eF as Ae,eO as Le,w as ge,m as p,eP as yt,au as gt,ar as fe,f as We,H as xt,q as qe}from"./index-BngCC-zG.js";import{a as Y}from"./sentry-CHlUi953.js";import{n as d}from"./mui-DyGc7Pg8.js";import{bG as _e,bs as oe,c6 as He,bX as bt,cp as ft}from"./zeni-epic-state-D8D2Skiq.js";import{Y as wt}from"./LabeledDocumentField-C_bcFxdY-rxfuitkN.js";import{S as ie}from"./LabeledText-C8Y7EOsX-BG8Z0MTH.js";import"./pdf-BxqSCr4b.js";import"./core-CVVdXRky.js";import"./lottie-D68Xb3aQ.js";import"./liveblocks-CHs9GmLG.js";import"./recharts-CMjB5mmq.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="8d8d0cb0-97b7-4f7e-8a9e-40b491b40c74",e._sentryDebugIdIdentifier="sentry-dbid-8d8d0cb0-97b7-4f7e-8a9e-40b491b40c74")}catch{}})();const vt={progressBarWidth:new g(343,726)},St=({pageIndex:e})=>{const i=K(),x=Be(),u=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.progressBar,h=[u.stateOne,u.stateTwo,u.stateThree];return i==="small"?t.jsxs(Ct,{children:[t.jsx(at,{coloredSectionCount:e,stretchedSection:1,totalSections:2,barColor:x.colors.brandColorJade,isFrozen:!1,topMargin:8}),t.jsx(Pt,{children:h.map((c,l)=>t.jsx(Tt,{isLast:l==h.length-1,isRelevant:l<=e,perSectionHeight:100/h.length,children:t.jsx(Me,{children:c})},l))})]}):t.jsxs(jt,{windowSize:i,children:[t.jsx(lt,{coloredSectionCount:e,totalSections:2,barColor:x.colors.brandColorJade,isFrozen:!1}),t.jsx(It,{children:h.map((c,l)=>t.jsx($t,{stateIndex:l,isRelevant:l<=e,children:t.jsx(Me,{children:c})},c))})]})},jt=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-top: ${n.sp3};
@@ -38,7 +38,7 @@ import{y as Be,X as K,O as q,P as Qe,a7 as ke,c8 as et,V as t,a_ as tt,M as it,a
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
- `,P={containerWidth:new g(343,580,726),labelWidth:new g(120,160,160),largeLabelWidth:new g(150,228,228),largeLabelPickerWidth:new g(100,180,180),paddingBottom:new g(p[3],p[2]),labelMarginLeftPicker:new g(p[3],p[4]),labelMarginRightPicker:new g(p[3],p[4]),labelMarginTopPicker:new g(p[2],p[2]),labeledFieldPaddingLeft:new g(p[0],p[0]),labeledFieldPaddingRight:new g(p[2],p[2]),labeledFieldPaddingTop:new g(p[2],p[2]),labeledFieldPaddingBottom:new g(p[2],p[2]),infoLabelPaddingRight:new g(p[0],p[3]),infoLabelMarginTop:new g(p[1],p[0])},B=(e,i)=>`${e}.${i}`,Ft=({sectionId:e,paymentDetails:i,allPaymentMethods:x,paymentToOptions:u,withdrawFromList:h,internationalVerificationStatus:c,fileProps:l,receiptFile:F,deleteFileStatusById:I,updateFileStatusById:f,onClickAddAccount:j})=>{const o=K(),{spendManagement:O,dateFormat:V,common:r}=q.getLocalizedStrings(),w=O.billPay.billDetails,J=V.visual.defaultInput,de=O.zeniAccounts.expressPay,se=r.documents,_=P.largeLabelWidth.value(o),[y,Z]=Y.useState(!1),H=x.filter(a=>a.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&a.method.includes(bt)===!1),L=a=>u.find(m=>m.id===a);return t.jsxs(t.Fragment,{children:[t.jsx(Dt,{children:w.paymentDetailsTitle}),t.jsxs(kt,{windowSize:o,children:[t.jsx(dt,{label:{label:w.withdrawFrom,width:_,style:{marginLeft:P.labelMarginLeftPicker.valuePx(o),marginTop:P.labelMarginTopPicker.valuePx(o),marginRight:P.labelMarginRightPicker.valuePx(o),width:P.largeLabelPickerWidth.value(o)}},style:{paddingTop:P.labeledFieldPaddingTop.valuePx(o),paddingBottom:P.labeledFieldPaddingBottom.valuePx(o),paddingLeft:P.labeledFieldPaddingLeft.valuePx(o),paddingRight:P.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:P.infoLabelPaddingRight.valuePx(o),marginTop:P.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:B(e,"withdrawFrom"),placeholder:Oe(w.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(a,m)=>ct(h,a,m),valueToSubLabels:(a,m)=>st(h,a,m,!1),defaultValue:{selectedOption:i?.withdrawFrom?.id,allOptions:h.map(a=>({label:a.label,value:a.id}))},textAlignment:"right",registerOptions:{required:!0,validate:a=>a!=null&&!!a.selectedOption}}}),t.jsx(U,{}),t.jsx(pt,{showAdditionalInfoLabel:!1,label:{label:w.amount,width:_},formattedTextField:{type:"number",name:B(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:Oe(w.amount),returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:a=>a!=null&&a!==0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,shouldHighlightZeroAmount:!0},style:{width:"auto"}}),t.jsx(U,{}),t.jsx(mt,{label:{label:w.paymentMethod,width:P.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:B(e,"paymentMethod"),placeholder:w.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:H,isAdmin:!0,internationalVerificationStatus:c,registerOptions:{required:!0,validate:a=>a!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(U,{}),t.jsx(ut,{label:{label:w.paymentDate,width:P.labelWidth.value(o)},style:{paddingBottom:P.paddingBottom.valuePx(o),width:"auto"},dateField:{name:B(e,"paymentDate"),placeholder:w.paymentDate,dateFormat:J,autoComplete:"off",minDate:oe(),registerOptions:{required:!0}}}),t.jsx(U,{}),t.jsx(ze,{label:{label:w.paymentTo,width:_},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:B(e,"paymentTo"),placeholder:w.selectAccount,getTooltipInfo:a=>{const m=L(a),$=q.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(xe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:$.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberAch??$.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:$.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??$.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:$.vendorCreation.achDetails.bankAccountNumber}),t.jsx(E,{children:m?.bankAccountNumber??$.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(xe,{children:m?.piLabels.map(G=>t.jsxs(W,{children:[t.jsxs(z,{children:[G.name,$.paymentDetails.colon]}),t.jsx(E,{children:G.value})]},G.name))}):t.jsxs(xe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:$.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberWireTransfer??$.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:$.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??$.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:$.vendorCreation.wireDetails.accountNumber}),t.jsx(E,{children:m?.bankAccountNumber??$.vendorCreation.emptyPlaceholderString})]})]}):""},menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:j,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:a=>Ee(L(a))},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?(()=>{let a=[];return a=i?.paymentType?.method.includes("wire")===!0?u.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):u.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),a})():[]},registerOptions:{required:!0,validate:a=>a?.selectedOption!=null}}}),t.jsx(U,{}),t.jsx(wt,{name:B(e,"receipt"),sizeLimit:ht,deleteFileStatusById:I,updateFileStatusById:f,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:de.reciept,width:_},filemetadataPayload:{documentType:"id_document",purposeId:"business_verification_others",documentSide:"front"},file:F,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:y,updateFilesEntity:l.updateFilesEntity,onEditFileName:l.onEditFileName,onDeleteFile:l.onDeleteFile,onFileSizeError:a=>Z(a),isOptional:!0,style:F!=null?{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}:void 0},B(e,"receipt")),F==null?t.jsx(Ot,{windowSize:o,isError:y,children:se.formatDocumentText10MB}):null,t.jsx(U,{})]})]})},Dt=d(fe)`
41
+ `,P={containerWidth:new g(343,580,726),labelWidth:new g(120,160,160),largeLabelWidth:new g(150,228,228),largeLabelPickerWidth:new g(100,180,180),paddingBottom:new g(p[3],p[2]),labelMarginLeftPicker:new g(p[3],p[4]),labelMarginRightPicker:new g(p[3],p[4]),labelMarginTopPicker:new g(p[2],p[2]),labeledFieldPaddingLeft:new g(p[0],p[0]),labeledFieldPaddingRight:new g(p[2],p[2]),labeledFieldPaddingTop:new g(p[2],p[2]),labeledFieldPaddingBottom:new g(p[2],p[2]),infoLabelPaddingRight:new g(p[0],p[3]),infoLabelMarginTop:new g(p[1],p[0])},B=(e,i)=>`${e}.${i}`,Ft=({sectionId:e,paymentDetails:i,allPaymentMethods:x,paymentToOptions:u,withdrawFromList:h,internationalVerificationStatus:c,fileProps:l,receiptFile:F,deleteFileStatusById:I,updateFileStatusById:f,onClickAddAccount:j})=>{const o=K(),{spendManagement:O,dateFormat:V,common:r}=q.getLocalizedStrings(),w=O.billPay.billDetails,J=V.visual.defaultInput,de=O.zeniAccounts.expressPay,se=r.documents,_=P.largeLabelWidth.value(o),[y,G]=Y.useState(!1),H=x.filter(a=>a.method.includes(i?.withdrawFrom?.accType??"depositAccount")&&a.method.includes(bt)===!1),A=a=>u.find(m=>m.id===a);return t.jsxs(t.Fragment,{children:[t.jsx(Dt,{children:w.paymentDetailsTitle}),t.jsxs(kt,{windowSize:o,children:[t.jsx(dt,{label:{label:w.withdrawFrom,width:_,style:{marginLeft:P.labelMarginLeftPicker.valuePx(o),marginTop:P.labelMarginTopPicker.valuePx(o),marginRight:P.labelMarginRightPicker.valuePx(o),width:P.largeLabelPickerWidth.value(o)}},style:{paddingTop:P.labeledFieldPaddingTop.valuePx(o),paddingBottom:P.labeledFieldPaddingBottom.valuePx(o),paddingLeft:P.labeledFieldPaddingLeft.valuePx(o),paddingRight:P.labeledFieldPaddingRight.valuePx(o),border:"none",width:"auto",display:o==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:o==="small"?"left":"right",paddingRight:P.infoLabelPaddingRight.valuePx(o),marginTop:P.infoLabelMarginTop.valuePx(o)},singleSelectPickerField:{name:B(e,"withdrawFrom"),placeholder:Oe(w.withdrawFrom),style:{position:"relative"},capitalizeOptions:!0,isOptionRemovable:!1,showTickIcon:!1,valueToLogo:(a,m)=>ct(h,a,m),valueToSubLabels:(a,m)=>st(h,a,m,!1),defaultValue:{selectedOption:i?.withdrawFrom?.id,allOptions:h.map(a=>({label:a.label,value:a.id}))},textAlignment:"right",registerOptions:{required:!0,validate:a=>a!=null&&!!a.selectedOption}}}),t.jsx(U,{}),t.jsx(pt,{showAdditionalInfoLabel:!1,label:{label:w.amount,width:_},formattedTextField:{type:"number",name:B(e,"amount"),defaultValue:i?.recipientAmount??0,placeholder:Oe(w.amount),returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:a=>a!=null&&a!==0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,shouldHighlightZeroAmount:!0},style:{width:"auto"}}),t.jsx(U,{}),t.jsx(mt,{label:{label:w.paymentMethod,width:P.labelWidth.value(o)},style:{width:"auto"},disableOutline:!0,paymentSingleSelectField:{name:B(e,"paymentMethod"),placeholder:w.billTypeMethodPlaceholder,defaultValue:i?.paymentType,allPaymentMethods:H,isAdmin:!0,internationalVerificationStatus:c,registerOptions:{required:!0,validate:a=>a!=null},onInternationalWireVerifyClick:()=>{}}}),t.jsx(U,{}),t.jsx(ut,{label:{label:w.paymentDate,width:P.labelWidth.value(o)},style:{paddingBottom:P.paddingBottom.valuePx(o),width:"auto"},dateField:{name:B(e,"paymentDate"),placeholder:w.paymentDate,dateFormat:J,autoComplete:"off",minDate:oe(),registerOptions:{required:!0}}}),t.jsx(U,{}),t.jsx(ze,{label:{label:w.paymentTo,width:_},style:{width:"auto"},isFunctional:!0,singleSelectField:{singleSelect:{name:B(e,"paymentTo"),placeholder:w.selectAccount,getTooltipInfo:a=>{const m=A(a),$=q.getLocalizedStrings().spendManagement.billPay;return i?.paymentType?.method.includes("ach")===!0?t.jsxs(xe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:$.vendorCreation.achDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberAch??$.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:$.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??$.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:$.vendorCreation.achDetails.bankAccountNumber}),t.jsx(E,{children:m?.bankAccountNumber??$.vendorCreation.emptyPlaceholderString})]})]}):i?.paymentType?.method.includes("wire")===!0?i.paymentType?.method.includes("international")===!0?t.jsx(xe,{children:m?.piLabels.map(X=>t.jsxs(W,{children:[t.jsxs(z,{children:[X.name,$.paymentDetails.colon]}),t.jsx(E,{children:X.value})]},X.name))}):t.jsxs(xe,{children:[t.jsxs(W,{children:[t.jsx(z,{children:$.vendorCreation.wireDetails.bankRoutingNumber}),t.jsx(E,{children:m?.bankRoutingNumberWireTransfer??$.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:$.vendorCreation.achDetails.bankName}),t.jsx(E,{children:m?.bankName??$.vendorCreation.emptyPlaceholderString})]}),t.jsxs(W,{children:[t.jsx(z,{children:$.vendorCreation.wireDetails.accountNumber}),t.jsx(E,{children:m?.bankAccountNumber??$.vendorCreation.emptyPlaceholderString})]})]}):""},menuPlacement:"top",maxMenuHeight:308,isOptionRemovable:!1,showEyeIconOnSelect:!1,showVerifiedIcon:!0,onClickCreateBankAccount:j,showAddBankAccountOption:!0,showCollectPaymentDetailsOption:!1,getLabelForId:a=>Ee(A(a))},defaultValue:{selectedOption:i?.paymentType!=null?i?.paymentTo?.id:"",allOptions:i?.paymentType!=null?(()=>{let a=[];return a=i?.paymentType?.method.includes("wire")===!0?u.filter(m=>!!m.bankRoutingNumberWireTransfer).map(m=>m.id):u.filter(m=>!!m.bankRoutingNumberAch).map(m=>m.id),a})():[]},registerOptions:{required:!0,validate:a=>a?.selectedOption!=null}}}),t.jsx(U,{}),t.jsx(wt,{name:B(e,"receipt"),sizeLimit:ht,deleteFileStatusById:I,updateFileStatusById:f,filesEndPoint:l.filesEndPoint,authParams:l.authParams,label:{label:de.reciept,width:_},filemetadataPayload:{documentType:"id_document",purposeId:"business_verification_others",documentSide:"front"},file:F,acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!1},hasError:y,updateFilesEntity:l.updateFilesEntity,onEditFileName:l.onEditFileName,onDeleteFile:l.onDeleteFile,onFileSizeError:a=>G(a),isOptional:!0,style:F!=null?{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}:void 0},B(e,"receipt")),F==null?t.jsx(Ot,{windowSize:o,isError:y,children:se.formatDocumentText10MB}):null,t.jsx(U,{})]})]})},Dt=d(fe)`
42
42
  color: ${e=>e.theme.colors.primary};
43
43
  margin-bottom: ${n.sp3};
44
44
  `,kt=d.div`
@@ -79,7 +79,7 @@ import{y as Be,X as K,O as q,P as Qe,a7 as ke,c8 as et,V as t,a_ as tt,M as it,a
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?We.important:e.theme.colors.grey1};
82
- `,Lt={largeLabelWidth:new g(150,210,210)},ne=(e,i)=>`${e}.${i}`,At=({sectionId:e,vendorTypeList:i,formLocalData:x,vendorSearchAutoCompleteData:u,vendorSearchAutoCompleteActions:h})=>{const c=K(),l=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,F=Lt.largeLabelWidth.value(c),I=Y.useRef();Y.useEffect(()=>{u?.entityAutoCompleteView.fetchState==="Completed"&&I.current?.(Mt(u?.entityAutoCompleteView))},[u?.entityAutoCompleteView.fetchState]);const f=u,j=(r,w)=>{h?.onAutoCompleteInputChange?.(r,"vendor"),I.current=w},o=f?.autoCompleteText!=null&&(f?.entityAutoCompleteView.fetchState==="In-Progress"||f?.entityAutoCompleteView.fetchState==="Not-Started"),O={defaultOptions:Ue(x?.vendorId,x?.vendorName,u?.entityAutoCompleteView),selectedOption:x?.vendorId??x?.vendorName??""},V={valueContainer:r=>({...r,padding:`2px ${c==="small"?n.sp2:n.sp3} !important`,overflow:"unset"}),singleValue:r=>({...r,margin:0}),placeholder:r=>({...r,fontWeight:"normal"})};return t.jsxs(t.Fragment,{children:[t.jsx(Nt,{children:l.recipientSectionTitle}),t.jsx(Vt,{children:t.jsxs(Rt,{children:[t.jsx(ot,{label:{label:l.recipientName,width:F},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ne(e,"recipient"),placeholder:c==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:r=>r,defaultValue:{...O},style:{width:"100%"},customStyleConfig:V,registerOptions:{required:!0,validate:r=>r!=null&&!!r.selectedOption},loadOptions:j,isOptionsLoading:o,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ne(e,"recipient")),t.jsx(Ne,{}),t.jsx(ze,{label:{label:l.recipientType,width:F},singleSelectField:{singleSelect:{name:ne(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:r=>i.find(w=>w.code===r)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:x?.vendorType,allOptions:i.map(r=>r.code)},registerOptions:{required:!0,validate:r=>!!r.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(rt,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:F},text:{type:"email",name:ne(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},Ue=(e,i,x)=>{if(e==null)return[];const u=x?.vendor?.find(h=>h.id===e);return u!=null||e!=null?[{label:u?.name??i??e??"",value:e??i??""}]:[]},Mt=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Nt=d(fe)`
82
+ `,At={largeLabelWidth:new g(150,210,210)},ne=(e,i)=>`${e}.${i}`,Lt=({sectionId:e,vendorTypeList:i,formLocalData:x,vendorSearchAutoCompleteData:u,vendorSearchAutoCompleteActions:h})=>{const c=K(),l=q.getLocalizedStrings().spendManagement.zeniAccounts.expressPay,F=At.largeLabelWidth.value(c),I=Y.useRef();Y.useEffect(()=>{u?.entityAutoCompleteView.fetchState==="Completed"&&I.current?.(Mt(u?.entityAutoCompleteView))},[u?.entityAutoCompleteView.fetchState]);const f=u,j=(r,w)=>{h?.onAutoCompleteInputChange?.(r,"vendor"),I.current=w},o=f?.autoCompleteText!=null&&(f?.entityAutoCompleteView.fetchState==="In-Progress"||f?.entityAutoCompleteView.fetchState==="Not-Started"),O={defaultOptions:Ue(x?.vendorId,x?.vendorName,u?.entityAutoCompleteView),selectedOption:x?.vendorId??x?.vendorName??""},V={valueContainer:r=>({...r,padding:`2px ${c==="small"?n.sp2:n.sp3} !important`,overflow:"unset"}),singleValue:r=>({...r,margin:0}),placeholder:r=>({...r,fontWeight:"normal"})};return t.jsxs(t.Fragment,{children:[t.jsx(Nt,{children:l.recipientSectionTitle}),t.jsx(Vt,{children:t.jsxs(Rt,{children:[t.jsx(ot,{label:{label:l.recipientName,width:F},addIconInCreateLabel:!0,autoCompleteSingleSelectField:{name:ne(e,"recipient"),placeholder:c==="small"?l.placeholders.recipientNameMobile:l.placeholders.recipientName,valueToId:r=>r,defaultValue:{...O},style:{width:"100%"},customStyleConfig:V,registerOptions:{required:!0,validate:r=>r!=null&&!!r.selectedOption},loadOptions:j,isOptionsLoading:o,makeCreateOptionSticky:!0,entity:"recipient"},style:{justifyContent:"space-between"},fullWidthSelect:!0},ne(e,"recipient")),t.jsx(Ne,{}),t.jsx(ze,{label:{label:l.recipientType,width:F},singleSelectField:{singleSelect:{name:ne(e,"recipientType"),placeholder:l.placeholders.recipientType,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:r=>i.find(w=>w.code===r)?.name??"",showTickMark:!1,maxMenuHeight:250},defaultValue:{selectedOption:x?.vendorType,allOptions:i.map(r=>r.code)},registerOptions:{required:!0,validate:r=>!!r.selectedOption}},isFunctional:!0}),t.jsx(Ne,{}),t.jsx(rt,{showAdditionalInfoLabel:!1,label:{label:l.recipientEmail,width:F},text:{type:"email",name:ne(e,"recipientEmail"),placeholder:l.placeholders.recipientEmail,options:{required:!0}},style:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"}})]})})]})},Ue=(e,i,x)=>{if(e==null)return[];const u=x?.vendor?.find(h=>h.id===e);return u!=null||e!=null?[{label:u?.name??i??e??"",value:e??i??""}]:[]},Mt=e=>e?.vendor.map(i=>({label:i.name,value:i.zeniId,zeniId:i.zeniId}))??[],Nt=d(fe)`
83
83
  color: ${e=>e.theme.colors.primary};
84
84
  margin-bottom: ${n.sp3};
85
85
  `,Vt=d.div`
@@ -98,7 +98,7 @@ import{y as Be,X as K,O as q,P as Qe,a7 as ke,c8 as et,V as t,a_ as tt,M as it,a
98
98
  background-color: ${e=>e.theme.colors.grey3};
99
99
  min-height: 1px;
100
100
  max-height: 1px;
101
- `,re={containerWidth:new g(343,580,726),largeLabelWidth:new g(150,215,215),reviewContainerMarginLeft:new g(p[3],p[6]),reviewContainerMarginRight:new g(p[3],p[8])},Bt=({vendorName:e,reviewDetails:i,paymentToOptions:x,style:u})=>{const h=K(),c=re.largeLabelWidth.value(h),{billPay:l}=q.getLocalizedStrings().spendManagement,{dateFormat:F,common:I}=q.getLocalizedStrings(),f=l.billDetails,j=i?.paymentType,o=F.visual.MMMDCommaYYYYformat,O={amount:i?.amount?.amount??0,currencyCode:I.currency.currencyCode,currencySymbol:I.currency.currencySymbol},V=Ee(x.find(J=>J.id===i?.paymentToAccountId)),r=i?.paymentDate,w=Le(j?.method??"");return t.jsx(Ht,{children:t.jsxs(Ut,{windowSize:h,style:u,children:[t.jsxs(Jt,{children:[t.jsx(ae,{children:f.pay}),t.jsx(ae,{children:t.jsx(Ae,{amount:O,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ae,{children:f.to}),t.jsx(ae,{children:e})]}),t.jsxs(Yt,{windowSize:h,children:[t.jsx(ie,{label:{label:f.withdrawFrom,width:c},style:{width:"auto",gap:p[3]},value:i?.withdrawFrom!=null?yt(i.withdrawFrom,h):I.strings.empty}),t.jsx(be,{}),t.jsx(ie,{label:{label:f.paymentMethod,width:c},style:{width:"auto"},value:Le(j?.method??"")}),t.jsx(be,{}),r!=null?t.jsxs(t.Fragment,{children:[t.jsx(ie,{label:{label:f.paymentDate,width:c},style:{width:"auto"},value:r.format(o),additionalInfoLabel:`${f.estimatedArrival}${_e(He(r.toDate(),[0,6],j?.maxPeriod.value??0).toDateString()).format(o)} - (${w.length>0?`${w} `:""}${f.deliveryTimeLabel} = ${j?.maxPeriod.value??"0"} ${f.deliveryTimeUnits})`}),t.jsx(be,{})]}):null,t.jsx(ie,{label:{label:f.paymentTo,width:c},style:{width:"auto"},value:V??""})]}),t.jsx(Et,{children:t.jsxs(Wt,{windowSize:h,children:[t.jsx(qt,{children:t.jsx(zt,{children:l.paymentDetails.total})}),t.jsx(_t,{children:t.jsx(Ae,{amount:ft(O.amount,O.currencyCode,O.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},zt=d.div``,Et=d.div`
101
+ `,re={containerWidth:new g(343,580,726),largeLabelWidth:new g(150,215,215),reviewContainerMarginLeft:new g(p[3],p[6]),reviewContainerMarginRight:new g(p[3],p[8])},Bt=({vendorName:e,reviewDetails:i,paymentToOptions:x,style:u})=>{const h=K(),c=re.largeLabelWidth.value(h),{billPay:l}=q.getLocalizedStrings().spendManagement,{dateFormat:F,common:I}=q.getLocalizedStrings(),f=l.billDetails,j=i?.paymentType,o=F.visual.MMMDCommaYYYYformat,O={amount:i?.amount?.amount??0,currencyCode:I.currency.currencyCode,currencySymbol:I.currency.currencySymbol},V=Ee(x.find(J=>J.id===i?.paymentToAccountId)),r=i?.paymentDate,w=Ae(j?.method??"");return t.jsx(Ht,{children:t.jsxs(Ut,{windowSize:h,style:u,children:[t.jsxs(Jt,{children:[t.jsx(ae,{children:f.pay}),t.jsx(ae,{children:t.jsx(Le,{amount:O,integerStyles:ge.largeSemiBold.cssObject})}),t.jsx(ae,{children:f.to}),t.jsx(ae,{children:e})]}),t.jsxs(Yt,{windowSize:h,children:[t.jsx(ie,{label:{label:f.withdrawFrom,width:c},style:{width:"auto",gap:p[3]},value:i?.withdrawFrom!=null?yt(i.withdrawFrom,h):I.strings.empty}),t.jsx(be,{}),t.jsx(ie,{label:{label:f.paymentMethod,width:c},style:{width:"auto"},value:Ae(j?.method??"")}),t.jsx(be,{}),r!=null?t.jsxs(t.Fragment,{children:[t.jsx(ie,{label:{label:f.paymentDate,width:c},style:{width:"auto"},value:r.format(o),additionalInfoLabel:`${f.estimatedArrival}${_e(He(r.toDate(),[0,6],j?.maxPeriod.value??0).toDateString()).format(o)} - (${w.length>0?`${w} `:""}${f.deliveryTimeLabel} = ${j?.maxPeriod.value??"0"} ${f.deliveryTimeUnits})`}),t.jsx(be,{})]}):null,t.jsx(ie,{label:{label:f.paymentTo,width:c},style:{width:"auto"},value:V??""})]}),t.jsx(Et,{children:t.jsxs(Wt,{windowSize:h,children:[t.jsx(qt,{children:t.jsx(zt,{children:l.paymentDetails.total})}),t.jsx(_t,{children:t.jsx(Le,{amount:ft(O.amount,O.currencyCode,O.currencySymbol),integerStyles:ge.h6Medium.cssObject,decimalStyles:ge.standardMedium.cssObject})})]})})]})})},zt=d.div``,Et=d.div`
102
102
  display: flex;
103
103
  width: 100%;
104
104
  box-sizing: border-box;
@@ -157,7 +157,7 @@ import{y as Be,X as K,O as q,P as Qe,a7 as ke,c8 as et,V as t,a_ as tt,M as it,a
157
157
  display: flex;
158
158
  color: ${e=>e.theme.colors.primary};
159
159
  margin-right: ${n.sp1};
160
- `,Ve="expressPayPage",Zt=e=>`${e}_form`,N="recipientDetails",k="paymentDetails",le={buttonWidth:new g(160,140),largeButtonWidth:new g(166,166)},mi=({expressPayDetails:e,fileProps:i,analytics:x,accountId:u,onClickAddAccount:h,onSaveVendor:c,onVendorSelected:l,updateSelectedVendorForCreate:F,onBackClick:I,saveVendorDetailLocalData:f,saveExpressPayLocalData:j,resetVendorSaveStatus:o,onSchedulePayment:O,initializeVendorAddress:V,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:w,onEditFileName:J,onDeleteFile:de,updateFilesEntity:se})=>{const{vendorViewDetails:_,expressPayLocalData:y,vendorTypeList:Z,allPaymentMethods:H,paymentToOptions:L,withdrawFromList:a,internationalWireOnboardingStatus:m,deleteFileStatusById:$,updateFileStatusById:G,submitStatus:Q,receiptFile:ce,vendorSaveStatus:we}=e,[S,ee]=Y.useState(0),Ye=Be(),X=K(),{common:ve,spendManagement:Je}=q.getLocalizedStrings(),pe=ve.footer,Se=ve.currency,me=Je.zeniAccounts.expressPay,{editVendorState:je,newVendorState:Ce}=_,R=y?.vendorId!=null?je?.vendorDetailLocalData:Ce?.vendorDetailLocalData,Ie=Object.assign({},je??Ce),Ze=R?.vendorName,$e=a.find(s=>s.id===u),te=Qe({mode:"onBlur",reValidateMode:"onChange",defaultValues:Re(Z,a,L,$e,H,R,y,ce,r?.entityAutoCompleteView),values:Re(Z,a,L,$e,H,R,y,ce,r?.entityAutoCompleteView)}),Pe=ke(Ie.saveStatus?.fetchState),Te=ke(Q);Y.useEffect(()=>{const s=te.watch((C,{name:b})=>{b!=null&&C!=null&&et(()=>Ge(b,C))});return()=>{s.unsubscribe()}}),Y.useEffect(()=>{Pe==="In-Progress"&&we==="Completed"&&(S===0?(ee(1),o?.(y?.vendorId)):S===1&&ee(2)),Te==="In-Progress"&&Q==="Completed"&&I(y?.vendorId)},[Pe,we,S,o,y?.vendorId,Te,Q,I]);const Ge=async(s,C)=>{if(s!=="recipientDetails.recipientEmail")if(s==="recipientDetails.recipient"){const b=C[N].recipient.selectedOption,A=r?.entityAutoCompleteView.vendor.find(D=>D.zeniId===b);Xe(C),V(),R?.vendorId!==b&&A!=null&&(l?.(b),he(C,!1,L,b))}else if(s.includes("recipient"))ue(C);else{const b=C[k].paymentMethod?.method,A=y?.paymentType?.method,D=b!=null&&A!=null&&(b.toLowerCase().includes("ach")&&A.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&A.toLowerCase().includes("ach"));he(C,D,L,y?.vendorId)}},Xe=s=>{const C=s[N].recipient.selectedOption,b=r?.entityAutoCompleteView.vendor.find(A=>A.id===C)!=null;if(C!=null&&b===!0)return F?.(C),void he(s,!1,L,C);ue(s,!0)},ue=(s,C)=>{const b=R?.vendorId,A=function(D,ye,v,T){const M=D[N].recipient.defaultOptions.find(Ke=>Ke.value===D[N].recipient.selectedOption);return{vendorType:T===!0?void 0:D[N].recipientType.selectedOption,vendorId:ye,vendorName:M?.label??v?.vendorName,contacts:T===!0?[]:[{fullName:"",email:D[N].recipientEmail,phone:""}],bankAccountIds:T===!0?[]:v?.bankAccountIds??[],paymentInstrumentIds:T===!0?[]:v?.paymentInstrumentIds??[],vendorOwner:T===!0?void 0:v?.vendorOwner,isVendor1099:v?.isVendor1099,documentIds:v?.documentIds??[],fileIdsToBeDeleted:v?.fileIdsToBeDeleted??[],countryCode:T===!0?void 0:v?.countryCode,currencyCode:v?.currencyCode,currencySymbol:T===!0?void 0:v?.currencySymbol,deleteFileStatusById:v?.deleteFileStatusById??{},updateFileStatusById:v?.updateFileStatusById??{},recommendedCategory:v?.recommendedCategory,recommendedClass:v?.recommendedClass,isCategoryUpdateSelected:v?.isCategoryUpdateSelected??!1,isClassUpdateSelected:v?.isClassUpdateSelected??!1,isCategoryRecommendationPrefilled:v?.isCategoryRecommendationPrefilled??!0,isClassRecommendationPrefilled:v?.isClassRecommendationPrefilled??!0}}(s,r?.entityAutoCompleteView.vendor.find(D=>D.zeniId===b)!=null?b:void 0,R,C);f?.(A,b)},he=(s,C,b,A)=>{const D=(()=>{let T=[];return T=s[k].paymentMethod?.method.includes("wire")===!0?b.filter(M=>!!M.bankRoutingNumberWireTransfer).map(M=>M.id):b.filter(M=>!!M.bankRoutingNumberAch).map(M=>M.id),T})(),ye=b.find(T=>T.id===s[k]?.paymentTo?.selectedOption),v={vendorId:A,amount:{amount:s[k].amount,currencyCode:Se.currencyCode,currencySymbol:Se.currencySymbol},paymentDate:s[k].paymentDate?_e(s[k].paymentDate.toString()):oe(),paymentType:s[k]?.paymentMethod!=null?s[k]?.paymentMethod:void 0,paymentToAccountId:C?D[0]:ye?.id,withdrawFrom:a.find(T=>T.id===s[k]?.withdrawFrom?.selectedOption),receiptFileId:s[k].receipt?.fileId};j?.(v)},Fe=te.handleSubmit(()=>{if(S===0||S===1){x.trackExpressPayNextClick(S===0?"Recipient Details":"Payment Details");const s=te.getValues();ue(s),c(y?.vendorId)}else x.trackExpressPayScheduleClick(),O()}),De={withdrawFrom:y?.withdrawFrom,paymentTo:y?.paymentToAccountId!=null?L.find(s=>s.id===y?.paymentToAccountId):void 0,paymentDate:y?.paymentDate,paymentType:y?.paymentType??H?.[0],recipientAmount:y?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(tt,{title:me.pageTitle,onBackClick:()=>{S===0?I(y?.vendorId):ee(S===1?0:1)},backgroundColor:Ye.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Gt,{windowSize:X,children:[t.jsx(St,{pageIndex:S}),t.jsx(it,{...te,children:t.jsx("form",{id:Ve,onSubmit:Fe,children:S===0?t.jsx(At,{sectionId:N,vendorTypeList:Z,formLocalData:R,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:w}):S===1?t.jsx(Ft,{sectionId:k,paymentDetails:De,paymentToOptions:L,allPaymentMethods:H,withdrawFromList:a,internationalVerificationStatus:m,fileProps:{...i,onEditFileName:J,onDeleteFile:de,updateFilesEntity:se},deleteFileStatusById:$,updateFileStatusById:G,receiptFile:ce,onClickAddAccount:()=>{const s=De?.paymentType;s!=null&&h(s)}}):S===2?t.jsx(Bt,{reviewDetails:y,paymentToOptions:L,vendorName:Ze}):null})})]}),t.jsx(nt,{formId:Zt(Ve),style:{width:"100%"},primaryBtn:{label:S===2?oe().isSame(y?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:S===0||S===1?Ie.saveStatus?.fetchState==="In-Progress":Q==="In-Progress",style:{width:S===2?le.largeButtonWidth.value(X):le.buttonWidth.value(X),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Fe()}},cancelBtn:{label:S===2?pe.edit:pe.cancel,style:{width:S===2?le.largeButtonWidth.value(X):le.buttonWidth.value(X),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:()=>{S===2?ee(1):I(y?.vendorId)}}})]})},Re=(e,i,x,u,h,c,l,F,I)=>{const f=(()=>{let j=[];return j=l?.paymentType?.method.includes("wire")===!0?x.filter(o=>!!o.bankRoutingNumberWireTransfer).map(o=>o.id):x.filter(o=>!!o.bankRoutingNumberAch).map(o=>o.id),j})();return{[N]:{recipient:{defaultOptions:Ue(c?.vendorId,c?.vendorName,I),selectedOption:c?.vendorId??c?.vendorName??""},recipientEmail:c?.contacts?.[0]?.email??"",recipientName:c?.vendorName??"",recipientType:{allOptions:e.map(j=>j.code),selectedOption:c?.vendorType}},[k]:{paymentMethod:l?.paymentType??h?.[0],withdrawFrom:{selectedOption:l?.withdrawFrom?.id??u?.id??i[0]?.id,allOptions:i.map(j=>({label:j.label,value:j.id}))},amount:l?.amount.amount??0,paymentDate:l?.paymentDate?.toDate()??He(oe().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?f:[],selectedOption:l?.paymentToAccountId??f[0]},receipt:F}}},Gt=d.div`
160
+ `,Ve="expressPayPage",Gt=e=>`${e}_form`,N="recipientDetails",k="paymentDetails",le={buttonWidth:new g(160,140),largeButtonWidth:new g(166,166)},mi=({expressPayDetails:e,fileProps:i,analytics:x,accountId:u,onClickAddAccount:h,onSaveVendor:c,onVendorSelected:l,updateSelectedVendorForCreate:F,onBackClick:I,saveVendorDetailLocalData:f,saveExpressPayLocalData:j,resetVendorSaveStatus:o,onSchedulePayment:O,initializeVendorAddress:V,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:w,onEditFileName:J,onDeleteFile:de,updateFilesEntity:se})=>{const{vendorViewDetails:_,expressPayLocalData:y,vendorTypeList:G,allPaymentMethods:H,paymentToOptions:A,withdrawFromList:a,internationalWireOnboardingStatus:m,deleteFileStatusById:$,updateFileStatusById:X,submitStatus:Q,receiptFile:ce,vendorSaveStatus:we}=e,[S,ee]=Y.useState(0),Ye=Be(),Z=K(),{common:ve,spendManagement:Je}=q.getLocalizedStrings(),pe=ve.footer,Se=ve.currency,me=Je.zeniAccounts.expressPay,{editVendorState:je,newVendorState:Ce}=_,R=y?.vendorId!=null?je?.vendorDetailLocalData:Ce?.vendorDetailLocalData,Ie=Object.assign({},je??Ce),Ge=R?.vendorName,$e=a.find(s=>s.id===u),te=Qe({mode:"onBlur",reValidateMode:"onChange",defaultValues:Re(G,a,A,$e,H,R,y,ce,r?.entityAutoCompleteView),values:Re(G,a,A,$e,H,R,y,ce,r?.entityAutoCompleteView)}),Pe=ke(Ie.saveStatus?.fetchState),Te=ke(Q);Y.useEffect(()=>{const s=te.watch((C,{name:b})=>{b!=null&&C!=null&&et(()=>Xe(b,C))});return()=>{s.unsubscribe()}}),Y.useEffect(()=>{Pe==="In-Progress"&&we==="Completed"&&(S===0?(ee(1),o?.(y?.vendorId)):S===1&&ee(2)),Te==="In-Progress"&&Q==="Completed"&&I(y?.vendorId)},[Pe,we,S,o,y?.vendorId,Te,Q,I]);const Xe=async(s,C)=>{if(s!=="recipientDetails.recipientEmail")if(s==="recipientDetails.recipient"){const b=C[N].recipient.selectedOption,L=r?.entityAutoCompleteView.vendor.find(D=>D.zeniId===b);Ze(C),V(),R?.vendorId!==b&&L!=null&&(l?.(b),he(C,!1,A,b))}else if(s.includes("recipient"))ue(C);else{const b=C[k].paymentMethod?.method,L=y?.paymentType?.method,D=b!=null&&L!=null&&(b.toLowerCase().includes("ach")&&L.toLowerCase().includes("wire")||b.toLowerCase().includes("wire")&&L.toLowerCase().includes("ach"));he(C,D,A,y?.vendorId)}},Ze=s=>{const C=s[N].recipient.selectedOption,b=r?.entityAutoCompleteView.vendor.find(L=>L.id===C)!=null;if(C!=null&&b===!0)return F?.(C),void he(s,!1,A,C);ue(s,!0)},ue=(s,C)=>{const b=R?.vendorId,L=function(D,ye,v,T){const M=D[N].recipient.defaultOptions.find(Ke=>Ke.value===D[N].recipient.selectedOption);return{vendorType:T===!0?void 0:D[N].recipientType.selectedOption,vendorId:ye,vendorName:M?.label??v?.vendorName,contacts:T===!0?[]:[{fullName:"",email:D[N].recipientEmail,phone:""}],bankAccountIds:T===!0?[]:v?.bankAccountIds??[],paymentInstrumentIds:T===!0?[]:v?.paymentInstrumentIds??[],vendorOwner:T===!0?void 0:v?.vendorOwner,isVendor1099:v?.isVendor1099,documentIds:v?.documentIds??[],fileIdsToBeDeleted:v?.fileIdsToBeDeleted??[],countryCode:T===!0?void 0:v?.countryCode,currencyCode:v?.currencyCode,currencySymbol:T===!0?void 0:v?.currencySymbol,deleteFileStatusById:v?.deleteFileStatusById??{},updateFileStatusById:v?.updateFileStatusById??{},recommendedCategory:v?.recommendedCategory,recommendedClass:v?.recommendedClass,isCategoryUpdateSelected:v?.isCategoryUpdateSelected??!1,isClassUpdateSelected:v?.isClassUpdateSelected??!1,isCategoryRecommendationPrefilled:v?.isCategoryRecommendationPrefilled??!0,isClassRecommendationPrefilled:v?.isClassRecommendationPrefilled??!0}}(s,r?.entityAutoCompleteView.vendor.find(D=>D.zeniId===b)!=null?b:void 0,R,C);f?.(L,b)},he=(s,C,b,L)=>{const D=(()=>{let T=[];return T=s[k].paymentMethod?.method.includes("wire")===!0?b.filter(M=>!!M.bankRoutingNumberWireTransfer).map(M=>M.id):b.filter(M=>!!M.bankRoutingNumberAch).map(M=>M.id),T})(),ye=b.find(T=>T.id===s[k]?.paymentTo?.selectedOption),v={vendorId:L,amount:{amount:s[k].amount,currencyCode:Se.currencyCode,currencySymbol:Se.currencySymbol},paymentDate:s[k].paymentDate?_e(s[k].paymentDate.toString()):oe(),paymentType:s[k]?.paymentMethod!=null?s[k]?.paymentMethod:void 0,paymentToAccountId:C?D[0]:ye?.id,withdrawFrom:a.find(T=>T.id===s[k]?.withdrawFrom?.selectedOption),receiptFileId:s[k].receipt?.fileId};j?.(v)},Fe=te.handleSubmit(()=>{if(S===0||S===1){x.trackExpressPayNextClick(S===0?"Recipient Details":"Payment Details");const s=te.getValues();ue(s),c(y?.vendorId)}else x.trackExpressPayScheduleClick(),O()}),De={withdrawFrom:y?.withdrawFrom,paymentTo:y?.paymentToAccountId!=null?A.find(s=>s.id===y?.paymentToAccountId):void 0,paymentDate:y?.paymentDate,paymentType:y?.paymentType??H?.[0],recipientAmount:y?.amount?.amount};return t.jsxs(t.Fragment,{children:[t.jsx(tt,{title:me.pageTitle,onBackClick:()=>{S===0?I(y?.vendorId):ee(S===1?0:1)},backgroundColor:Ye.colors.grey4,hideSearchBtn:!0,source:"ExpressPayPage"}),t.jsxs(Xt,{windowSize:Z,children:[t.jsx(St,{pageIndex:S}),t.jsx(it,{...te,children:t.jsx("form",{id:Ve,onSubmit:Fe,children:S===0?t.jsx(Lt,{sectionId:N,vendorTypeList:G,formLocalData:R,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:w}):S===1?t.jsx(Ft,{sectionId:k,paymentDetails:De,paymentToOptions:A,allPaymentMethods:H,withdrawFromList:a,internationalVerificationStatus:m,fileProps:{...i,onEditFileName:J,onDeleteFile:de,updateFilesEntity:se},deleteFileStatusById:$,updateFileStatusById:X,receiptFile:ce,onClickAddAccount:()=>{const s=De?.paymentType;s!=null&&h(s)}}):S===2?t.jsx(Bt,{reviewDetails:y,paymentToOptions:A,vendorName:Ge}):null})})]}),t.jsx(nt,{formId:Gt(Ve),style:{width:"100%"},primaryBtn:{label:S===2?oe().isSame(y?.paymentDate,"date")?me.sendMoney:me.schedulePayment:pe.next,isLoading:S===0||S===1?Ie.saveStatus?.fetchState==="In-Progress":Q==="In-Progress",style:{width:S===2?le.largeButtonWidth.value(Z):le.buttonWidth.value(Z),whiteSpace:"nowrap"},isDisabled:!1,onClick:()=>{Fe()}},cancelBtn:{label:S===2?pe.edit:pe.cancel,style:{width:S===2?le.largeButtonWidth.value(Z):le.buttonWidth.value(Z),whiteSpace:"nowrap"},shouldResetOnCancel:!1,onClick:()=>{S===2?ee(1):I(y?.vendorId)}}})]})},Re=(e,i,x,u,h,c,l,F,I)=>{const f=(()=>{let j=[];return j=l?.paymentType?.method.includes("wire")===!0?x.filter(o=>!!o.bankRoutingNumberWireTransfer).map(o=>o.id):x.filter(o=>!!o.bankRoutingNumberAch).map(o=>o.id),j})();return{[N]:{recipient:{defaultOptions:Ue(c?.vendorId,c?.vendorName,I),selectedOption:c?.vendorId??c?.vendorName??""},recipientEmail:c?.contacts?.[0]?.email??"",recipientName:c?.vendorName??"",recipientType:{allOptions:e.map(j=>j.code),selectedOption:c?.vendorType}},[k]:{paymentMethod:l?.paymentType??h?.[0],withdrawFrom:{selectedOption:l?.withdrawFrom?.id??u?.id??i[0]?.id,allOptions:i.map(j=>({label:j.label,value:j.id}))},amount:l?.amount.amount??0,paymentDate:l?.paymentDate?.toDate()??He(oe().toDate(),[0,6],0),paymentTo:{allOptions:l?.paymentType!=null?f:[],selectedOption:l?.paymentToAccountId??f[0]},receipt:F}}},Xt=d.div`
161
161
  display: flex;
162
162
  flex-wrap: wrap;
163
163
  height: 100%;
@@ -165,4 +165,4 @@ import{y as Be,X as K,O as q,P as Qe,a7 as ke,c8 as et,V as t,a_ as tt,M as it,a
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{mi as default,Zt as formUniqueName};
168
+ `;export{mi as default,Gt as formUniqueName};
@@ -1,4 +1,4 @@
1
- import{y as _,X as w,O as y,ad as n,e as r,V as i,bR as v,x as p,bS as k,bT as x,j as g}from"./index-DBW4633P.js";import{n as d}from"./mui-C_CXevf3.js";import"./sentry-DINNQYpi.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./zeni-epic-state-a7Sj5mjO.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="818a719f-2dab-4139-87de-19eb785b80ab",e._sentryDebugIdIdentifier="sentry-dbid-818a719f-2dab-4139-87de-19eb785b80ab")}catch{}})();const t={popupWidth:new p(200,468,468,468),buttonWidth:new p(140,160,160,160),popupContainerLeft:new p(g[0],g[0],255),popupContainerWidth:new p(100,100,85)},z=d.div`
1
+ import{y as _,e as w,O as y,ad as n,f as r,V as i,bR as v,x as p,bS as k,bT as x,m as g}from"./index-BngCC-zG.js";import{n as d}from"./mui-DyGc7Pg8.js";import"./sentry-CHlUi953.js";import"./pdf-BxqSCr4b.js";import"./zeni-epic-state-D8D2Skiq.js";import"./core-CVVdXRky.js";import"./lottie-D68Xb3aQ.js";import"./liveblocks-CHs9GmLG.js";import"./recharts-CMjB5mmq.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="7b12be6d-1e4f-4ccf-9559-99f749338c7a",e._sentryDebugIdIdentifier="sentry-dbid-7b12be6d-1e4f-4ccf-9559-99f749338c7a")}catch{}})();const t={popupWidth:new p(200,468,468,468),buttonWidth:new p(140,160,160,160),popupContainerLeft:new p(g[0],g[0],255),popupContainerWidth:new p(100,100,85)},z=d.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -8,4 +8,4 @@ import{y as _,X as w,O as y,ad as n,e as r,V as i,bR as v,x as p,bS as k,bT as x
8
8
  `,C=d.img`
9
9
  width: 100%;
10
10
  height: 100%;
11
- `,W={mobile:{home:"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",users_and_roles:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_settings:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_cfo:"",command_center:"",task_checklist:"",transaction_categorization:"",je_schedules:"",missing_receipts:"",flux_analysis:"",reconciliation:""},normal:{home:"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",users_and_roles:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_settings:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_cfo:"",command_center:"",task_checklist:"",transaction_categorization:"",je_schedules:"",missing_receipts:"",flux_analysis:"",reconciliation:""}};function R({menuItem:e,onDemoClick:a,onGoBack:m}){const s=_(),o=w(),u=`${W[o==="small"?"mobile":"normal"][e]}-${s.mode}.png`,{featurePreview:c}=y.getLocalizedStrings(),l=c.popups[e],b=s.mode==="light"?new n(r.backgroundGradient1Light):new n(r.backgroundGradient1Dark),h=s.mode==="light"?new n(r.backgroundGradient2Light):new n(r.backgroundGradient2Dark),f={onOkClick:()=>{a()},onCancelClick:()=>{m()}};return i.jsxs(z,{children:[i.jsx(C,{src:u,alt:"feature-preview",loading:"lazy"}),i.jsx(v,{titleComponent:i.jsx(x,{children:l.title}),descriptionComponent:i.jsx(k,{children:l.text}),primaryButtonText:c.scheduleDemo,secondaryButtonText:c.goBack,action:f,primaryButtonWidth:t.buttonWidth.value(o),secondaryButtonWidth:t.buttonWidth.value(o),style:{background:`radial-gradient(50% 50% at 50% 50%, ${b} 0%, ${h} 100%)`,backdropFilter:"blur(2px)",width:t.popupContainerWidth.valuePercentage(o),left:t.popupContainerLeft.value(o)},containerStyle:{border:`1px solid ${s.colors.grey1}`,minWidth:t.popupWidth.valuePx(o)}})]})}export{R as default};
11
+ `,W={mobile:{home:"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",users_and_roles:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-mobile",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_settings:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_cfo:"",command_center:"",task_checklist:"",transaction_categorization:"",je_schedules:"",missing_receipts:"",flux_analysis:"",reconciliation:""},normal:{home:"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",users_and_roles:"",rewards:"",cards:"",checking:"https://storage.googleapis.com/zeni-apis.appspot.com/images/accounts-view-normal",treasury:"",accounting:"",approval_rules:"",bank_connections:"",business_verification:"",company_settings:"",company_details:"",integrations:"",my_profile:"",my_bank_connections:"",notifications:"",billing:"",performance:"",ai_cfo:"",command_center:"",task_checklist:"",transaction_categorization:"",je_schedules:"",missing_receipts:"",flux_analysis:"",reconciliation:""}};function R({menuItem:e,onDemoClick:s,onGoBack:m}){const a=_(),o=w(),u=`${W[o==="small"?"mobile":"normal"][e]}-${a.mode}.png`,{featurePreview:c}=y.getLocalizedStrings(),l=c.popups[e],b=a.mode==="light"?new n(r.backgroundGradient1Light):new n(r.backgroundGradient1Dark),h=a.mode==="light"?new n(r.backgroundGradient2Light):new n(r.backgroundGradient2Dark),f={onOkClick:()=>{s()},onCancelClick:()=>{m()}};return i.jsxs(z,{children:[i.jsx(C,{src:u,alt:"feature-preview",loading:"lazy"}),i.jsx(v,{titleComponent:i.jsx(x,{children:l.title}),descriptionComponent:i.jsx(k,{children:l.text}),primaryButtonText:c.scheduleDemo,secondaryButtonText:c.goBack,action:f,primaryButtonWidth:t.buttonWidth.value(o),secondaryButtonWidth:t.buttonWidth.value(o),style:{background:`radial-gradient(50% 50% at 50% 50%, ${b} 0%, ${h} 100%)`,backdropFilter:"blur(2px)",width:t.popupContainerWidth.valuePercentage(o),left:t.popupContainerLeft.value(o)},containerStyle:{border:`1px solid ${a.colors.grey1}`,minWidth:t.popupWidth.valuePx(o)}})]})}export{R as default};
@@ -0,0 +1 @@
1
+ import{j as s}from"./pdf-BxqSCr4b.js";import{a as r}from"./sentry-CHlUi953.js";import{k5 as i,k6 as c,k7 as l,jM as m}from"./index-BngCC-zG.js";import"./mui-DyGc7Pg8.js";import p from"./NotFoundScreen-BOQb1xUE.js";import{j as u,h as k}from"./core-CVVdXRky.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="47effd69-4e65-4d6d-8f52-cfa681848ec2",e._sentryDebugIdIdentifier="sentry-dbid-47effd69-4e65-4d6d-8f52-cfa681848ec2")}catch{}})();const D=()=>{const e=u(),t=k(),a=r.useCallback(()=>{window.open("https://www.zeni.ai/demo/request","_blank")},[]),d=r.useCallback(()=>{(()=>{const n=m(t.state?.pathnameStackToGoBack),f=n.poppedPathname??b();e(f,{state:{pathnameStackToGoBack:n.newStack}})})()},[]),o=i(t.pathname);return o!=null?s.jsx(c,{menuItem:l(o),onDemoClick:a,onGoBack:d}):s.jsx(p,{})},b=(e=2)=>{let t="../";for(let a=0;a<e;a++)t=`${t}../`;return t};export{D as F};
@@ -1,4 +1,4 @@
1
- import{X as B,V as l,O as X,cc as M,e5 as H,y as Q,c6 as Z,x as I,fR as W,o,E as F,dW as de,S as Y,fJ as ne,fK as ce,a as pe,e as u,j as m,g7 as ue,cp as he,ee as fe,i as xe,b3 as ye,w as q,cP as ve,b4 as ge,b2 as we}from"./index-DBW4633P.js";import{n as d}from"./mui-C_CXevf3.js";import{a as R}from"./sentry-DINNQYpi.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="1cc89f7d-8a86-43b9-8c3f-ad84365df861",e._sentryDebugIdIdentifier="sentry-dbid-1cc89f7d-8a86-43b9-8c3f-ad84365df861")}catch{}})();const $={width:new I(343,580,726),height:new I(m[6],m[6]),controlHeight:new I(m[6],m[6]),paddingLeftRight:new I(m[3],m[4]),paddingTop:new I(m[3],m[3]),paddingBottom:new I(m[3],m[2]),labelMarginRight:new I(m[3],m[4])};function $e({isDisabled:e,label:s,firstText:i,secondText:p,style:k,isFieldError:j}){const f=B(),{formState:{errors:O}}=M(),x=H(O,i.name),w=H(O,p.name),t=Q();return l.jsxs(ke,{size:f,style:k,isDisabled:e!=null,isErrorFirstText:x,isErrorSecondText:w,"data-testid":F("labeled-multi-text-field",i.name),children:[l.jsx(Z,{isDisabled:e,label:s.label,style:{marginRight:$.labelMarginRight.value(f),width:s.width??"auto",color:t.colors.champion}}),l.jsxs(je,{labelWidth:s.width,children:[l.jsxs(ie,{className:"firstField",isDisabled:i.isDisabled,children:[l.jsx(W,{type:i.type,name:i.name,placeholder:i.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:i.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:i.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:$.controlHeight.value(f),cursor:"inherit",backgroundColor:t.colors.grey3,borderRadius:o.sp1,color:t.colors.primary},hoverBgColor:t.colors.background,bgColor:t.colors.background,disabledColor:t.colors.background,isFieldError:j,defaultValue:i.defaultValue}),i.additionalInfoLabel&&i.isDisabled||x&&i.additionalErrorLabel?l.jsx(te,{isError:x,children:x?i.additionalErrorLabel:i.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Oe,{children:[l.jsx(oe,{}),l.jsx(Le,{}),l.jsx(oe,{})]}),l.jsxs(ie,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(W,{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:$.controlHeight.value(f),cursor:"inherit",backgroundColor:t.colors.grey3,borderRadius:o.sp1,color:t.colors.primary},hoverBgColor:t.colors.background,bgColor:t.colors.background,disabledColor:t.colors.background,isFieldError:j,defaultValue:i.defaultValue}),l.jsx(te,{isError:w,children:p.additionalInfoLabel})]})]})]})]})}const ke=d.div`
1
+ import{e as M,V as l,O as K,cc as B,dX as q,y as Q,c6 as Z,x as I,fH as W,o,b as F,dP as de,S as Y,fz as ne,fA as ce,a as pe,f as u,m,g0 as ue,cp as he,e4 as fe,k as xe,b3 as ye,w as _,cM as ve,b4 as ge,b2 as we}from"./index-BngCC-zG.js";import{n as d}from"./mui-DyGc7Pg8.js";import{a as R}from"./sentry-CHlUi953.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="ec97c322-dba8-455a-8d53-51abe09e6d9d",e._sentryDebugIdIdentifier="sentry-dbid-ec97c322-dba8-455a-8d53-51abe09e6d9d")}catch{}})();const $={width:new I(343,580,726),height:new I(m[6],m[6]),controlHeight:new I(m[6],m[6]),paddingLeftRight:new I(m[3],m[4]),paddingTop:new I(m[3],m[3]),paddingBottom:new I(m[3],m[2]),labelMarginRight:new I(m[3],m[4])};function $e({isDisabled:e,label:s,firstText:i,secondText:p,style:k,isFieldError:j}){const f=M(),{formState:{errors:O}}=B(),x=q(O,i.name),w=q(O,p.name),t=Q();return l.jsxs(ke,{size:f,style:k,isDisabled:e!=null,isErrorFirstText:x,isErrorSecondText:w,"data-testid":F("labeled-multi-text-field",i.name),children:[l.jsx(Z,{isDisabled:e,label:s.label,style:{marginRight:$.labelMarginRight.value(f),width:s.width??"auto",color:t.colors.champion}}),l.jsxs(je,{labelWidth:s.width,children:[l.jsxs(ie,{className:"firstField",isDisabled:i.isDisabled,children:[l.jsx(W,{type:i.type,name:i.name,placeholder:i.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:i.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:i.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:$.controlHeight.value(f),cursor:"inherit",backgroundColor:t.colors.grey3,borderRadius:o.sp1,color:t.colors.primary},hoverBgColor:t.colors.background,bgColor:t.colors.background,disabledColor:t.colors.background,isFieldError:j,defaultValue:i.defaultValue}),i.additionalInfoLabel&&i.isDisabled||x&&i.additionalErrorLabel?l.jsx(te,{isError:x,children:x?i.additionalErrorLabel:i.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(l.Fragment,{children:[l.jsxs(Oe,{children:[l.jsx(oe,{}),l.jsx(Le,{}),l.jsx(oe,{})]}),l.jsxs(ie,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(W,{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:$.controlHeight.value(f),cursor:"inherit",backgroundColor:t.colors.grey3,borderRadius:o.sp1,color:t.colors.primary},hoverBgColor:t.colors.background,bgColor:t.colors.background,disabledColor:t.colors.background,isFieldError:j,defaultValue:i.defaultValue}),l.jsx(te,{isError:w,children:p.additionalInfoLabel})]})]})]})]})}const ke=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: flex-start;
@@ -95,7 +95,7 @@ import{X as B,V as l,O as X,cc as M,e5 as H,y as Q,c6 as Z,x as I,fR as W,o,E as
95
95
  color: ${e=>e.isError?u.important:e.theme.colors.hero};
96
96
  white-space: pre-line;
97
97
  margin-top: ${o.sp1};
98
- `;function Ie({isDisabled:e,label:s,firstText:i,secondText:p,style:k,isFieldError:j}){const f=B(),{formState:{errors:O}}=M(),x=H(O,i.name),w=H(O,p.name),t=Q();return l.jsxs(Te,{size:f,style:k,isDisabled:e!=null,isErrorFirstText:x,isErrorSecondText:w,children:[l.jsx(Z,{isDisabled:e,label:s.label,style:{marginRight:$.labelMarginRight.value(f),width:s.width??"auto",color:t.colors.champion}}),l.jsxs(Se,{labelWidth:s.width,children:[p.hideField?null:l.jsxs(Ue,{children:[l.jsx(re,{}),l.jsx(Ee,{isAdditionalLabel:(!!i.additionalInfoLabel&&i.isDisabled)===!0}),l.jsx(re,{})]}),l.jsxs(De,{children:[l.jsxs(se,{className:"firstField",isDisabled:i.isDisabled,children:[l.jsx(W,{type:i.type,name:i.name,placeholder:i.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:i.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:i.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:$.controlHeight.value(f),cursor:"inherit",backgroundColor:t.colors.grey3,borderRadius:o.sp1,color:t.colors.primary},hoverBgColor:t.colors.background,bgColor:t.colors.background,disabledColor:t.colors.background,isFieldError:j,defaultValue:i.defaultValue}),i.additionalInfoLabel&&i.isDisabled||x&&i.additionalErrorLabel?l.jsx(ae,{isError:x,children:x?i.additionalErrorLabel:i.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(se,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(W,{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:$.controlHeight.value(f),cursor:"inherit",backgroundColor:t.colors.grey3,borderRadius:o.sp1,color:t.colors.primary},hoverBgColor:t.colors.background,bgColor:t.colors.background,disabledColor:t.colors.background,isFieldError:j,defaultValue:i.defaultValue}),l.jsx(ae,{isError:w,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
98
+ `;function Ie({isDisabled:e,label:s,firstText:i,secondText:p,style:k,isFieldError:j}){const f=M(),{formState:{errors:O}}=B(),x=q(O,i.name),w=q(O,p.name),t=Q();return l.jsxs(Te,{size:f,style:k,isDisabled:e!=null,isErrorFirstText:x,isErrorSecondText:w,children:[l.jsx(Z,{isDisabled:e,label:s.label,style:{marginRight:$.labelMarginRight.value(f),width:s.width??"auto",color:t.colors.champion}}),l.jsxs(Se,{labelWidth:s.width,children:[p.hideField?null:l.jsxs(Ue,{children:[l.jsx(re,{}),l.jsx(Ee,{isAdditionalLabel:(!!i.additionalInfoLabel&&i.isDisabled)===!0}),l.jsx(re,{})]}),l.jsxs(De,{children:[l.jsxs(se,{className:"firstField",isDisabled:i.isDisabled,children:[l.jsx(W,{type:i.type,name:i.name,placeholder:i.placeholder,prefix:"$",allowNegative:!1,isNumericString:!1,inputMode:"numeric",returnValueType:"floatValue",registerOptions:i.options,decimalScale:0,allowLeadingZeros:!1,thousandSeparator:!0,thousandsGroupStyle:"thousand",isDisabled:i.isDisabled?"disabled":void 0,style:{display:"flex",flexGrow:1,width:"-webkit-fill-available",height:$.controlHeight.value(f),cursor:"inherit",backgroundColor:t.colors.grey3,borderRadius:o.sp1,color:t.colors.primary},hoverBgColor:t.colors.background,bgColor:t.colors.background,disabledColor:t.colors.background,isFieldError:j,defaultValue:i.defaultValue}),i.additionalInfoLabel&&i.isDisabled||x&&i.additionalErrorLabel?l.jsx(ae,{isError:x,children:x?i.additionalErrorLabel:i.additionalInfoLabel}):null]}),p.hideField?null:l.jsxs(se,{className:"secondField",isDisabled:p.isDisabled,children:[l.jsx(W,{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:$.controlHeight.value(f),cursor:"inherit",backgroundColor:t.colors.grey3,borderRadius:o.sp1,color:t.colors.primary},hoverBgColor:t.colors.background,bgColor:t.colors.background,disabledColor:t.colors.background,isFieldError:j,defaultValue:i.defaultValue}),l.jsx(ae,{isError:w,children:p.additionalInfoLabel})]})]})]})]})}const Te=d.div`
99
99
  display: flex;
100
100
  flex-direction: column;
101
101
  align-items: flex-start;
@@ -198,7 +198,7 @@ import{X as B,V as l,O as X,cc as M,e5 as H,y as Q,c6 as Z,x as I,fR as W,o,E as
198
198
  color: ${e=>e.isError?u.important:e.theme.colors.hero};
199
199
  white-space: pre-line;
200
200
  margin-top: ${o.sp1};
201
- `;function nl(e){return B()==="small"?l.jsx(Ie,{...e}):l.jsx($e,{...e})}const Ce=({allOptions:e,selectedValue:s,name:i,onSelectedValueChanged:p,valueToLabel:k,disable:j=!1,defaultMenuIsOpen:f,placeholderLabel:O})=>{const{formState:{errors:x}}=M(),w=H(x,i??""),t=Q(),[T,E]=R.useState(void 0),[h,A]=R.useState(f),D=R.useCallback(n=>({value:n,label:k(n)}),[k]);R.useEffect(()=>{const n=s==null?void 0:D(s);E(n?.label===""?void 0:n)},[s,k,D]);const P=t.colors.grey5,V=t.colors.grey5,U=q.smallRegular,_=q.extraSmallRegular,C={control:(n,{selectProps:v})=>({...n,border:0,height:m[6],backgroundColor:v.menuIsOpen===!0?t.colors.background:w===!0?u.importantLight:t.colors.background,boxShadow:V,":hover":{fill:t.colors.primary,backgroundColor:t.colors.background,borderColor:"none"},width:"auto",minHeight:"auto",cursor:"pointer"}),container:n=>({...n,backgroundColor:V,width:"100%"}),singleValue:(n,{data:v})=>({...n,alignItems:"center",margin:`${o.sp0}`,height:`${o.sp4}`,color:v.value==="require_approval"?u.alertDark:u.successDark,...q.standardRegular.cssObject,width:"100%",textOverflow:"ellipsis"}),valueContainer:(n,{selectProps:v})=>({...n,maxWidth:"100%",cursor:"pointer",..._,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:v.menuIsOpen===!1?"flex-end":"flex-start",alignItems:"center",flexWrap:"nowrap",paddingLeft:o.sp3,marginRight:o.sp3,width:" -webkit-fill-available"}),menu:n=>({...n,backgroundColor:P,borderRadius:4,boxShadow:`${o.sp0} 2px ${o.sp2} ${t.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:m[4],...q.standardRegular.cssObject,color:w===!0?u.important:t.colors.grey1,display:"flex",justifyContent:"flex-start",alignItems:"center"}),option:(n,{isSelected:v,isFocused:z,isDisabled:a,data:g})=>({...n,...U,height:m[6],color:g.value==="require_approval"?u.alertDark:u.successDark,backgroundColor:v||z?t.colors.background:P,cursor:a?"not-allowed":"pointer",borderTop:g.topBorder===!0?`1px solid ${u.optionBorderLight}`:"none",":hover":{backgroundColor:t.colors.background},":first-div":{width:"100%"},"& label":{flex:1,paddingRight:"10px",cursor:a?"not-allowed":v?"default":"pointer"},zIndex:2}),input:(n,v)=>({color:t.colors.primary,overflow:"hidden",zIndex:2,height:m[4],width:v.selectProps.menuIsOpen?"auto":"0",position:"absolute",display:"flex",alignItems:"center",...q.standardRegular.cssObject})};return l.jsx(xe,{onClickAway:()=>{A(!1)},children:l.jsx(ye,{isMulti:!1,onChange:n=>{(v=>{p(v)})(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:T,value:T,placeholder:O,components:{Option:Ne,DropdownIndicator:Me,IndicatorSeparator:Ae,SingleValue:ze},hideSelectedOptions:!1,styles:C,options:(S=e,S.map(n=>D(n))),isClearable:!1,isSearchable:!1,isDisabled:j,defaultMenuIsOpen:h,"data-testid":F("single-select",i)},ve())});var S},ze=({children:e,...s})=>l.jsx(ge.SingleValue,{...s,children:e}),Ne=e=>{const{data:s,options:i,isFocused:p,label:k,isSelected:j}=e,f=i.find(x=>x.value===s.value),O=typeof s.label=="string"?s.label:s.value;return l.jsxs(ge.Option,{...e,children:[l.jsxs(Re,{"data-testid":F("single-select-option",O),children:[l.jsxs(Fe,{children:[l.jsx("label",{children:k}),p===!0&&f?.id!=null&&l.jsx(Pe,{children:f.id})]}),j?l.jsx(Ve,{children:l.jsx(Be,{className:"tick-icon"})}):null]}),f.additionalInfo!==""&&l.jsx(l.Fragment,{children:f.additionalInfo})]})},Re=d.div`
201
+ `;function nl(e){return M()==="small"?l.jsx(Ie,{...e}):l.jsx($e,{...e})}const Ce=({allOptions:e,selectedValue:s,name:i,onSelectedValueChanged:p,valueToLabel:k,disable:j=!1,defaultMenuIsOpen:f,placeholderLabel:O})=>{const{formState:{errors:x}}=B(),w=q(x,i??""),t=Q(),[T,E]=R.useState(void 0),[h,A]=R.useState(f),D=R.useCallback(n=>({value:n,label:k(n)}),[k]);R.useEffect(()=>{const n=s==null?void 0:D(s);E(n?.label===""?void 0:n)},[s,k,D]);const P=t.colors.grey5,V=t.colors.grey5,U=_.smallRegular,H=_.extraSmallRegular,C={control:(n,{selectProps:v})=>({...n,border:0,height:m[6],backgroundColor:v.menuIsOpen===!0?t.colors.background:w===!0?u.importantLight:t.colors.background,boxShadow:V,":hover":{fill:t.colors.primary,backgroundColor:t.colors.background,borderColor:"none"},width:"auto",minHeight:"auto",cursor:"pointer"}),container:n=>({...n,backgroundColor:V,width:"100%"}),singleValue:(n,{data:v})=>({...n,alignItems:"center",margin:`${o.sp0}`,height:`${o.sp4}`,color:v.value==="require_approval"?u.alertDark:u.successDark,..._.standardRegular.cssObject,width:"100%",textOverflow:"ellipsis"}),valueContainer:(n,{selectProps:v})=>({...n,maxWidth:"100%",cursor:"pointer",...H,overflow:"visible",minWidth:"auto",padding:0,display:"flex",justifyContent:v.menuIsOpen===!1?"flex-end":"flex-start",alignItems:"center",flexWrap:"nowrap",paddingLeft:o.sp3,marginRight:o.sp3,width:" -webkit-fill-available"}),menu:n=>({...n,backgroundColor:P,borderRadius:4,boxShadow:`${o.sp0} 2px ${o.sp2} ${t.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:m[4],..._.standardRegular.cssObject,color:w===!0?u.important:t.colors.grey1,display:"flex",justifyContent:"flex-start",alignItems:"center"}),option:(n,{isSelected:v,isFocused:z,isDisabled:a,data:g})=>({...n,...U,height:m[6],color:g.value==="require_approval"?u.alertDark:u.successDark,backgroundColor:v||z?t.colors.background:P,cursor:a?"not-allowed":"pointer",borderTop:g.topBorder===!0?`1px solid ${u.optionBorderLight}`:"none",":hover":{backgroundColor:t.colors.background},":first-div":{width:"100%"},"& label":{flex:1,paddingRight:"10px",cursor:a?"not-allowed":v?"default":"pointer"},zIndex:2}),input:(n,v)=>({color:t.colors.primary,overflow:"hidden",zIndex:2,height:m[4],width:v.selectProps.menuIsOpen?"auto":"0",position:"absolute",display:"flex",alignItems:"center",..._.standardRegular.cssObject})};return l.jsx(xe,{onClickAway:()=>{A(!1)},children:l.jsx(ye,{isMulti:!1,onChange:n=>{(v=>{p(v)})(n)},minMenuHeight:208,menuPlacement:"auto",menuShouldScrollIntoView:!1,defaultValue:T,value:T,placeholder:O,components:{Option:Ne,DropdownIndicator:Be,IndicatorSeparator:Ae,SingleValue:ze},hideSelectedOptions:!1,styles:C,options:(S=e,S.map(n=>D(n))),isClearable:!1,isSearchable:!1,isDisabled:j,defaultMenuIsOpen:h,"data-testid":F("single-select",i)},ve())});var S},ze=({children:e,...s})=>l.jsx(ge.SingleValue,{...s,children:e}),Ne=e=>{const{data:s,options:i,isFocused:p,label:k,isSelected:j}=e,f=i.find(x=>x.value===s.value),O=typeof s.label=="string"?s.label:s.value;return l.jsxs(ge.Option,{...e,children:[l.jsxs(Re,{"data-testid":F("single-select-option",O),children:[l.jsxs(Fe,{children:[l.jsx("label",{children:k}),p===!0&&f?.id!=null&&l.jsx(Pe,{children:f.id})]}),j?l.jsx(Ve,{children:l.jsx(Me,{className:"tick-icon"})}):null]}),f.additionalInfo!==""&&l.jsx(l.Fragment,{children:f.additionalInfo})]})},Re=d.div`
202
202
  display: flex;
203
203
  flex-direction: row;
204
204
  align-items: center;
@@ -220,12 +220,12 @@ import{X as B,V as l,O as X,cc as M,e5 as H,y as Q,c6 as Z,x as I,fR as W,o,E as
220
220
  margin: 0 ${o.sp5} 0 ${o.sp3};
221
221
  `,Ve=d.div`
222
222
  display: flex;
223
- `,Be=d(we)`
223
+ `,Me=d(we)`
224
224
  width: ${o.sp3};
225
225
  height: ${o.sp3};
226
226
  cursor: pointer;
227
227
  color: ${e=>e.theme.colors.primary};
228
- `,Me=()=>null,Ae=()=>null,be=R.memo(({name:e,registerOptions:s,value:i,isDisabled:p,defaultMenuIsOpen:k,placeholderLabel:j})=>{const{control:f}=M(),O=i.allOptions.map(w=>w.value??""),x=w=>i.allOptions.find(t=>t.value===w.value)?.value;return l.jsx(fe,{name:e,control:f,defaultValue:i,rules:s,"data-testid":F("single-select-field",e),render:({field:{value:w,onChange:t}})=>l.jsx(Ce,{allOptions:O,onSelectedValueChanged:T=>{t({allOptions:i.allOptions,selectedOption:x(T)})},valueToLabel:T=>(E=>i.allOptions.filter(h=>h.value===E)[0]?.label??"")(T),selectedValue:w.selectedOption,disable:p,name:e,defaultMenuIsOpen:k,placeholderLabel:j})})},(e,s)=>Y(e,s)),L={width:new I(343,580,726),height:new I(m[6],m[6]),paddingLeftRight:new I(m[3],m[4]),paddingTopBottom:new I(m[3],m[3]),labelMarginRight:new I(m[3],m[4])},G=(e,s)=>`${e}.${s}`;function _e({label:e,isDisabled:s,sectionId:i,style:p,approversPlaceholder:k,notifiersPlaceholder:j,userSelectPlaceholder:f,approveNotifyPlaceholder:O,allUserWithRoles:x,filteredApprovers:w,allAttributes:t,filteredAttributes:T,allAccountingClasses:E,stepsInfo:h,productType:A}){const D=B(),{commonSetUp:{approval:P}}=X.getLocalizedStrings(),V=w.length+T.length,U=x.map(a=>a.user),{control:_,setValue:C}=M(),{fields:S,replace:n}=de({name:i,control:_});R.useEffect(()=>{const a=S.map(r=>{const{actors:c,stepType:y}=r;return{selectedUsers:c.selectedUsers.map(b=>b.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),g=h.map(r=>{const{actors:c,stepType:y}=r;return{selectedUsers:c.selectedUsers.map(b=>b.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!Y(a,g)){const r=h.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:U,allNonUsers:ee(t)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:le}}));n(r)}},[U,h,S,n,t]);const v=h[h.length-1],z=s!=null||V===0||v.actors.selectedUsers.length+v.actors.selectedNonUsers.length===0||!v.stepType.selectedOption;return l.jsxs(qe,{size:D,style:p,isDisabled:!1,isError:!1,children:[l.jsx(Z,{label:e.label,style:{marginRight:L.labelMarginRight.value(D),width:"auto"}}),h.map((a,g)=>l.jsxs(He,{labelWidth:e.width,children:[l.jsxs(Ke,{children:[g+1,"."]}),l.jsx(Ze,{children:l.jsx(be,{name:G(`${i}.${a.stepIndex}`,"stepType"),value:a.stepType,isDisabled:g===0,defaultMenuIsOpen:g===1&&a.stepType.selectedOption==null,registerOptions:{required:!0,validate:r=>r!=null&&r.selectedOption!=null||s!=null},placeholderLabel:O})}),l.jsxs(Je,{children:[l.jsx(ne,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:a.stepType.selectedOption==null?f:a.stepType.selectedOption==="require_approval"?k:j,name:G(`${i}.${a.stepIndex}`,"actors"),value:a.actors,operator:a.stepType!=null&&a.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:r=>r!=null&&(r.selectedUsers!=null&&r.selectedUsers.length>0||r.selectedNonUsers!=null&&r.selectedNonUsers.length>0)||s!=null},valueToSubtitle:r=>{const c=x.map(b=>b.role).find(b=>b?.userId===r),y=[];if(c!=null){const b=ce(c.userRoles,A);b.length>0&&y.push(b),c.accountingClassIDs.forEach(J=>{const N=E.find(K=>K.classId===J);N!=null&&N.className&&y.push(N.className)})}return y}}),a.stepIndex>0&&l.jsx(We,{onClick:()=>(r=>{const c=h.filter((y,b)=>b!==r);C(i,c)})(g)})]})]},S[g]?.id||g)),l.jsx(Ge,{disabled:z,children:l.jsx(pe,{onClick:()=>{const a=h[h.length-1].stepIndex,g=me(a+1,U,t);C(i,[...h,g])},style:{padding:`${o.sp1} ${o.sp2}`,borderRadius:o.sp1},label:P.addStep,size:"small",disabled:z,"data-testid":F("add-step-button-web")})})]})}const me=(e,s,i)=>({stepIndex:e,actors:{allUsers:s,selectedUsers:[],allNonUsers:ee(i),selectedNonUsers:[]},stepType:{allOptions:le,selectedOption:void 0}}),ee=e=>{const s=X.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(i=>({label:s[i].label,value:i,position:"top",subtitles:[s[i].subTitle]}))},le=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],qe=d.div`
228
+ `,Be=()=>null,Ae=()=>null,be=R.memo(({name:e,registerOptions:s,value:i,isDisabled:p,defaultMenuIsOpen:k,placeholderLabel:j})=>{const{control:f}=B(),O=i.allOptions.map(w=>w.value??""),x=w=>i.allOptions.find(t=>t.value===w.value)?.value;return l.jsx(fe,{name:e,control:f,defaultValue:i,rules:s,"data-testid":F("single-select-field",e),render:({field:{value:w,onChange:t}})=>l.jsx(Ce,{allOptions:O,onSelectedValueChanged:T=>{t({allOptions:i.allOptions,selectedOption:x(T)})},valueToLabel:T=>(E=>i.allOptions.filter(h=>h.value===E)[0]?.label??"")(T),selectedValue:w.selectedOption,disable:p,name:e,defaultMenuIsOpen:k,placeholderLabel:j})})},(e,s)=>Y(e,s)),L={width:new I(343,580,726),height:new I(m[6],m[6]),paddingLeftRight:new I(m[3],m[4]),paddingTopBottom:new I(m[3],m[3]),labelMarginRight:new I(m[3],m[4])},G=(e,s)=>`${e}.${s}`;function He({label:e,isDisabled:s,sectionId:i,style:p,approversPlaceholder:k,notifiersPlaceholder:j,userSelectPlaceholder:f,approveNotifyPlaceholder:O,allUserWithRoles:x,filteredApprovers:w,allAttributes:t,filteredAttributes:T,allAccountingClasses:E,stepsInfo:h,productType:A}){const D=M(),{commonSetUp:{approval:P}}=K.getLocalizedStrings(),V=w.length+T.length,U=x.map(a=>a.user),{control:H,setValue:C}=B(),{fields:S,replace:n}=de({name:i,control:H});R.useEffect(()=>{const a=S.map(r=>{const{actors:c,stepType:y}=r;return{selectedUsers:c.selectedUsers.map(b=>b.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),g=h.map(r=>{const{actors:c,stepType:y}=r;return{selectedUsers:c.selectedUsers.map(b=>b.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!Y(a,g)){const r=h.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:U,allNonUsers:ee(t)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:le}}));n(r)}},[U,h,S,n,t]);const v=h[h.length-1],z=s!=null||V===0||v.actors.selectedUsers.length+v.actors.selectedNonUsers.length===0||!v.stepType.selectedOption;return l.jsxs(_e,{size:D,style:p,isDisabled:!1,isError:!1,children:[l.jsx(Z,{label:e.label,style:{marginRight:L.labelMarginRight.value(D),width:"auto"}}),h.map((a,g)=>l.jsxs(qe,{labelWidth:e.width,children:[l.jsxs(Xe,{children:[g+1,"."]}),l.jsx(Ze,{children:l.jsx(be,{name:G(`${i}.${a.stepIndex}`,"stepType"),value:a.stepType,isDisabled:g===0,defaultMenuIsOpen:g===1&&a.stepType.selectedOption==null,registerOptions:{required:!0,validate:r=>r!=null&&r.selectedOption!=null||s!=null},placeholderLabel:O})}),l.jsxs(Je,{children:[l.jsx(ne,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:a.stepType.selectedOption==null?f:a.stepType.selectedOption==="require_approval"?k:j,name:G(`${i}.${a.stepIndex}`,"actors"),value:a.actors,operator:a.stepType!=null&&a.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:r=>r!=null&&(r.selectedUsers!=null&&r.selectedUsers.length>0||r.selectedNonUsers!=null&&r.selectedNonUsers.length>0)||s!=null},valueToSubtitle:r=>{const c=x.map(b=>b.role).find(b=>b?.userId===r),y=[];if(c!=null){const b=ce(c.userRoles,A);b.length>0&&y.push(b),c.accountingClassIDs.forEach(J=>{const N=E.find(X=>X.classId===J);N!=null&&N.className&&y.push(N.className)})}return y}}),a.stepIndex>0&&l.jsx(We,{onClick:()=>(r=>{const c=h.filter((y,b)=>b!==r);C(i,c)})(g)})]})]},S[g]?.id||g)),l.jsx(Ge,{disabled:z,children:l.jsx(pe,{onClick:()=>{const a=h[h.length-1].stepIndex,g=me(a+1,U,t);C(i,[...h,g])},style:{padding:`${o.sp1} ${o.sp2}`,borderRadius:o.sp1},label:P.addStep,size:"small",disabled:z,"data-testid":F("add-step-button-web")})})]})}const me=(e,s,i)=>({stepIndex:e,actors:{allUsers:s,selectedUsers:[],allNonUsers:ee(i),selectedNonUsers:[]},stepType:{allOptions:le,selectedOption:void 0}}),ee=e=>{const s=K.getLocalizedStrings().commonSetUp.approval.nonUsers;return e.map(i=>({label:s[i].label,value:i,position:"top",subtitles:[s[i].subTitle]}))},le=[{label:"Require",value:"require_approval"},{label:"Notify",value:"send_notification"}],_e=d.div`
229
229
  display: flex;
230
230
  flex-direction: column;
231
231
  align-items: flex-start;
@@ -267,7 +267,7 @@ import{X as B,V as l,O as X,cc as M,e5 as H,y as Q,c6 as Z,x as I,fR as W,o,E as
267
267
  background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.isError?u.importantLight:e.theme.colors.background};
268
268
  }
269
269
  }
270
- `,He=d.div`
270
+ `,qe=d.div`
271
271
  display: flex;
272
272
  width: 100%;
273
273
  align-items: baseline;
@@ -300,10 +300,10 @@ import{X as B,V as l,O as X,cc as M,e5 as H,y as Q,c6 as Z,x as I,fR as W,o,E as
300
300
  gap: ${o.sp3};
301
301
  align-items: baseline;
302
302
  max-height: 300px;
303
- `,Ke=d.div`
303
+ `,Xe=d.div`
304
304
  width: ${o.sp5};
305
305
  color: ${e=>e.theme.colors.hero};
306
- `;function Xe({label:e,isDisabled:s,sectionId:i,style:p,approversPlaceholder:k,notifiersPlaceholder:j,userSelectPlaceholder:f,approveNotifyPlaceholder:O,allUserWithRoles:x,filteredApprovers:w,allAttributes:t,filteredAttributes:T,allAccountingClasses:E,stepsInfo:h,productType:A}){const D=B(),{commonSetUp:{approval:P}}=X.getLocalizedStrings(),V=w.length+T.length,U=x.map(a=>a.user),{control:_,setValue:C}=M(),{fields:S,replace:n}=de({name:i,control:_});R.useEffect(()=>{const a=S.map(r=>{const{actors:c,stepType:y}=r;return{selectedUsers:c.selectedUsers.map(b=>b.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),g=h.map(r=>{const{actors:c,stepType:y}=r;return{selectedUsers:c.selectedUsers.map(b=>b.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!Y(a,g)){const r=h.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:U,allNonUsers:ee(t)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:le}}));n(r)}},[U,h,S,n,t]);const v=h[h.length-1],z=s!=null||V===0||v.actors.selectedUsers.length+v.actors.selectedNonUsers.length===0||!v.stepType.selectedOption;return l.jsxs(Qe,{size:D,style:p,isDisabled:!1,isError:!1,children:[l.jsx(Z,{label:e.label,style:{marginRight:L.labelMarginRight.value(D),width:"auto"}}),h.map((a,g)=>l.jsxs(Ye,{labelWidth:e.width,children:[l.jsxs(sl,{children:[g+1,"."]}),l.jsxs(tl,{children:[l.jsx(be,{name:G(`${i}.${a.stepIndex}`,"stepType"),value:a.stepType,isDisabled:g===0,defaultMenuIsOpen:g===1&&a.stepType.selectedOption==null,registerOptions:{required:!0,validate:r=>r!=null&&r.selectedOption!=null||s!=null},placeholderLabel:O}),l.jsxs(il,{children:[l.jsx(ol,{children:l.jsx(ne,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:a.stepType.selectedOption==null?f:a.stepType.selectedOption==="require_approval"?k:j,name:G(`${i}.${a.stepIndex}`,"actors"),value:a.actors,operator:a.stepType!=null&&a.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:r=>r!=null&&(r.selectedUsers!=null&&r.selectedUsers.length>0||r.selectedNonUsers!=null&&r.selectedNonUsers.length>0)||s!=null},valueToSubtitle:r=>{const c=x.map(b=>b.role).find(b=>b?.userId===r),y=[];if(c!=null){const b=ce(c.userRoles,A);b.length>0&&y.push(b),c.accountingClassIDs.forEach(J=>{const N=E.find(K=>K.classId===J);N!=null&&N.className&&y.push(N.className)})}return y}})}),a.stepIndex>0&&l.jsx(el,{onClick:()=>(r=>{const c=h.filter((y,b)=>b!==r);C(i,c)})(g),"data-testid":F("delete-step",g.toString())})]})]})]},S[g]?.id||g)),l.jsx(ll,{disabled:z,children:l.jsx(pe,{onClick:()=>{const a=h[h.length-1].stepIndex,g=me(a+1,U,t);C(i,[...h,g])},style:{width:"100%"},label:P.addStep,size:"standard",variant:"light_transparent",disabled:z,"data-testid":F("add-step-button-small")})})]})}const Qe=d.div`
306
+ `;function Ke({label:e,isDisabled:s,sectionId:i,style:p,approversPlaceholder:k,notifiersPlaceholder:j,userSelectPlaceholder:f,approveNotifyPlaceholder:O,allUserWithRoles:x,filteredApprovers:w,allAttributes:t,filteredAttributes:T,allAccountingClasses:E,stepsInfo:h,productType:A}){const D=M(),{commonSetUp:{approval:P}}=K.getLocalizedStrings(),V=w.length+T.length,U=x.map(a=>a.user),{control:H,setValue:C}=B(),{fields:S,replace:n}=de({name:i,control:H});R.useEffect(()=>{const a=S.map(r=>{const{actors:c,stepType:y}=r;return{selectedUsers:c.selectedUsers.map(b=>b.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}}),g=h.map(r=>{const{actors:c,stepType:y}=r;return{selectedUsers:c.selectedUsers.map(b=>b.userId),selectedNonUsers:c.selectedNonUsers,selectedOption:y.selectedOption}});if(!Y(a,g)){const r=h.map((c,y)=>({actors:{selectedUsers:c.actors.selectedUsers,selectedNonUsers:c.actors.selectedNonUsers,allUsers:U,allNonUsers:ee(t)},stepIndex:y,stepType:{selectedOption:c.stepType.selectedOption,allOptions:le}}));n(r)}},[U,h,S,n,t]);const v=h[h.length-1],z=s!=null||V===0||v.actors.selectedUsers.length+v.actors.selectedNonUsers.length===0||!v.stepType.selectedOption;return l.jsxs(Qe,{size:D,style:p,isDisabled:!1,isError:!1,children:[l.jsx(Z,{label:e.label,style:{marginRight:L.labelMarginRight.value(D),width:"auto"}}),h.map((a,g)=>l.jsxs(Ye,{labelWidth:e.width,children:[l.jsxs(sl,{children:[g+1,"."]}),l.jsxs(tl,{children:[l.jsx(be,{name:G(`${i}.${a.stepIndex}`,"stepType"),value:a.stepType,isDisabled:g===0,defaultMenuIsOpen:g===1&&a.stepType.selectedOption==null,registerOptions:{required:!0,validate:r=>r!=null&&r.selectedOption!=null||s!=null},placeholderLabel:O}),l.jsxs(il,{children:[l.jsx(ol,{children:l.jsx(ne,{hideEmailTooltip:!1,shouldHaveBackgroundColor:!0,showBackgroundColorIfHasAnySelectedOption:!0,placeholderLabel:a.stepType.selectedOption==null?f:a.stepType.selectedOption==="require_approval"?k:j,name:G(`${i}.${a.stepIndex}`,"actors"),value:a.actors,operator:a.stepType!=null&&a.stepType.selectedOption==="require_approval"?"or":"and",registerOptions:{required:!0,validate:r=>r!=null&&(r.selectedUsers!=null&&r.selectedUsers.length>0||r.selectedNonUsers!=null&&r.selectedNonUsers.length>0)||s!=null},valueToSubtitle:r=>{const c=x.map(b=>b.role).find(b=>b?.userId===r),y=[];if(c!=null){const b=ce(c.userRoles,A);b.length>0&&y.push(b),c.accountingClassIDs.forEach(J=>{const N=E.find(X=>X.classId===J);N!=null&&N.className&&y.push(N.className)})}return y}})}),a.stepIndex>0&&l.jsx(el,{onClick:()=>(r=>{const c=h.filter((y,b)=>b!==r);C(i,c)})(g),"data-testid":F("delete-step",g.toString())})]})]})]},S[g]?.id||g)),l.jsx(ll,{disabled:z,children:l.jsx(pe,{onClick:()=>{const a=h[h.length-1].stepIndex,g=me(a+1,U,t);C(i,[...h,g])},style:{width:"100%"},label:P.addStep,size:"standard",variant:"light_transparent",disabled:z,"data-testid":F("add-step-button-small")})})]})}const Qe=d.div`
307
307
  display: flex;
308
308
  flex-direction: column;
309
309
  align-items: flex-start;
@@ -387,4 +387,4 @@ import{X as B,V as l,O as X,cc as M,e5 as H,y as Q,c6 as Z,x as I,fR as W,o,E as
387
387
  `,sl=d.div`
388
388
  width: ${o.sp4};
389
389
  color: ${e=>e.theme.colors.hero};
390
- `;function cl(e){return B()==="small"?l.jsx(Xe,{...e}):l.jsx(_e,{...e})}export{nl as b,cl as f,le as l,ee as o};
390
+ `;function cl(e){return M()==="small"?l.jsx(Ke,{...e}):l.jsx(He,{...e})}export{nl as b,cl as f,le as l,ee as o};
@@ -1,4 +1,4 @@
1
- import{y as Ue,X as Z,P as Be,A as _e,c8 as Ke,V as t,E as L,a_ as Ee,M as Je,bP as Se,o,a as xe,O as we,bd as Ye,bN as Xe,an as Qe,cR as Ze,bV as et,I as tt,L as lt,cq as ot,b1 as Te,ab as nt,x as P,bg as re,j as M,bO as $e,C as ue,b_ as it,c1 as at,cc as rt,cN as ve,cs as he,bo as X,e9 as Me,i as st,hI as dt,l as ct,aC as ht,hF as mt,hJ as Pe,bH as gt,aR as pt,e as De}from"./index-DBW4633P.js";import{a as S}from"./sentry-DINNQYpi.js";import{n as a,c as fe}from"./mui-C_CXevf3.js";import{bp as wt,Gv as ut}from"./zeni-epic-state-a7Sj5mjO.js";import{t as bt}from"./undo-b_3XZ5CX-CAOnjxt9.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="2402b0f4-d211-42c3-ba3f-64096ff1838c",e._sentryDebugIdIdentifier="sentry-dbid-2402b0f4-d211-42c3-ba3f-64096ff1838c")}catch{}})();const Ie="recommendedFirst",Ce="recommendedSecond",K="currentSelection",be="originalVendor",me="requested",se=(e,l)=>`${e}.${l}`,de=(e,l,i)=>i!=null?`${e}.${l}.${i}`:`${e}.${l}`;function xt(e){const l=Z(),{button:{label:i,onClick:n},search:{isOpen:g,placeHolder:h,searchText:u,onTextChange:d},newVendorButtonDataTestId:m,searchBarDataTestId:p}=e;return t.jsxs(vt,{children:[t.jsx(ft,{isSearchOpen:g&&l==="small",windowsize:l,children:l!=="small"?t.jsx(Se,{placeholder:h,searchBarDataTestId:p,searchText:u,style:{position:"absolute",left:"unset",right:o.sp0},onSearchTextChanged:d}):null}),l==="small"?t.jsx(Se,{keepSearchBoxOpen:!0,placeholder:h,searchBarDataTestId:p,searchText:u,style:{position:"absolute",left:"5px",right:"unset",top:"44px",width:"98%"},onSearchTextChanged:d}):null,l==="small"?t.jsx(yt,{"data-testid":m,style:{marginLeft:o.sp5}}):t.jsx(xe,{dataTestId:m,label:i,onClick:n,size:"small",style:{marginLeft:o.sp3},variant:"primary"})]})}const vt=a.div`
1
+ import{y as Be,e as Z,T as Ue,B as Ke,c8 as _e,V as t,b as L,a_ as Ee,A as Ye,bP as Se,o,a as xe,O as we,bd as Je,bN as Qe,an as Xe,cO as Ze,bV as et,E as tt,L as lt,cq as ot,b1 as Te,ab as nt,x as P,bg as re,m as M,bO as $e,C as ue,b_ as it,c1 as at,cc as rt,cK as ve,cs as he,bo as Q,d$ as Me,k as st,hG as dt,l as ct,aC as ht,hD as mt,hH as Pe,bH as gt,aR as pt,f as De}from"./index-BngCC-zG.js";import{a as S}from"./sentry-CHlUi953.js";import{n as a,c as fe}from"./mui-DyGc7Pg8.js";import{bp as wt,Gp as ut}from"./zeni-epic-state-D8D2Skiq.js";import{t as bt}from"./undo-b_3XZ5CX-CHRencVP.js";import"./pdf-BxqSCr4b.js";import"./core-CVVdXRky.js";import"./lottie-D68Xb3aQ.js";import"./liveblocks-CHs9GmLG.js";import"./recharts-CMjB5mmq.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="bd53ff01-48f3-4a52-b296-f761e4bc3483",e._sentryDebugIdIdentifier="sentry-dbid-bd53ff01-48f3-4a52-b296-f761e4bc3483")}catch{}})();const Ie="recommendedFirst",Ce="recommendedSecond",_="currentSelection",be="originalVendor",me="requested",se=(e,l)=>`${e}.${l}`,de=(e,l,i)=>i!=null?`${e}.${l}.${i}`:`${e}.${l}`;function xt(e){const l=Z(),{button:{label:i,onClick:n},search:{isOpen:g,placeHolder:h,searchText:u,onTextChange:d},newVendorButtonDataTestId:m,searchBarDataTestId:p}=e;return t.jsxs(vt,{children:[t.jsx(ft,{isSearchOpen:g&&l==="small",windowsize:l,children:l!=="small"?t.jsx(Se,{placeholder:h,searchBarDataTestId:p,searchText:u,style:{position:"absolute",left:"unset",right:o.sp0},onSearchTextChanged:d}):null}),l==="small"?t.jsx(Se,{keepSearchBoxOpen:!0,placeholder:h,searchBarDataTestId:p,searchText:u,style:{position:"absolute",left:"5px",right:"unset",top:"44px",width:"98%"},onSearchTextChanged:d}):null,l==="small"?t.jsx(yt,{"data-testid":m,style:{marginLeft:o.sp5}}):t.jsx(xe,{dataTestId:m,label:i,onClick:n,size:"small",style:{marginLeft:o.sp3},variant:"primary"})]})}const vt=a.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  padding-right: ${o.sp0};
@@ -75,7 +75,7 @@ import{y as Ue,X as Z,P as Be,A as _e,c8 as Ke,V as t,E as L,a_ as Ee,M as Je,bP
75
75
  }
76
76
  `,Tt=a(ue)`
77
77
  display: flex;
78
- `,{common:v,vendorReview:{globalReview:{globalMerchantList:Pt}}}=we.getLocalizedStrings(),s={containerPaddingLeftRight:new P(M[3],M[4]),containerPaddingTopBottom:new P(M[2],M[3]),logoHeightAndWidth:new P(M[3],M[4]),vendorNameLogoHeightAndWidth:new P(M[4],M[6]),logoToValueGap:new P(M[2],M[2]),smallLogoToValueGap:new P(M[1],M[1])},Dt=({vendorGlobalReviewData:e,allGlobalMerchants:l,globalMerchantAutoCompleteView:i,sectionId:n,isDisabled:g,analytics:h,onLoadGlobalMerchants:u,onCreateGlobalMerchant:d,onApproveGlobalReview:m,onRejectGlobalReview:p,onClearGlobalMerchantAutoCompleteResults:C})=>{const r=Z(),{resetField:z,formState:E}=rt(),[O,N]=S.useState(!1),[W,U]=n.split("."),H=parseInt(U),A=String(H),k=c=>L(c,A),J=E.dirtyFields[W]?.[H]?.originalVendor===!0&&e.selectedMerchantId!==e.merchant.tenantMerchantId,Y=e.currentSelection!=null,{merchant:w,recommendations:$}=e,{fetchState:f}=i,F=[];$.forEach((c,G)=>{const b=`recommended${mt(G)}`;F.push({label:{label:t.jsx(t.Fragment,{children:c.logo!=null?t.jsxs(Ge,{children:[t.jsx(ve,{photoUrl:c.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(r),height:s.logoHeightAndWidth.valuePx(r)},placeholder:{width:s.logoHeightAndWidth.value(r),height:s.logoHeightAndWidth.value(r)},fallbackAvatar:t.jsx(pe,{children:t.jsx(he,{name:c.globalMerchantName,size:s.logoHeightAndWidth.valuePx(r)})})}),t.jsx(I,{className:"global-review-row-item",windowSize:r,isLastItem:!1,children:t.jsx(ee,{children:c.globalMerchantName})})]}):t.jsx(I,{className:"global-review-row-item",windowSize:r,isLastItem:!1,children:t.jsx(ee,{children:c.globalMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:de(n,K,b),checkBoxValue:de(n,K,b),defaultChecked:e.currentSelection===b},tooltipProps:{text:t.jsx(Bt,{onRedirectionToRecommendedMerchantWebsiteUrl:()=>(j=>{let R=j.websiteUrl?.toString();if(R){if(R=Pe(R)??R,e.selectedMerchantId!=null){const B=j.globalMerchantName??null;h.trackVendorReviewWebsiteOpened({reviewSource:"global_review",vendorName:e.merchant.tenantMerchantName,wasRecommendationAvailable:!!B,recommendedVendorName:B,recommendedVendorReason:j.reason??null,vendorWebsite:R})}window.open(R,"_blank")}})(c),recommendation:c,recommendationIndex:G,rowSuffix:A}),maxWidth:"360px"},fieldName:b})});const V=w!=null?{label:{label:t.jsx(t.Fragment,{children:w.logo!=null?t.jsxs(Ge,{children:[t.jsx(ve,{photoUrl:w.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(r),height:s.logoHeightAndWidth.valuePx(r)},placeholder:{width:s.logoHeightAndWidth.value(r),height:s.logoHeightAndWidth.value(r)},fallbackAvatar:t.jsx(pe,{children:t.jsx(he,{name:w.tenantMerchantName,size:s.logoHeightAndWidth.valuePx(r)})})}),t.jsx(I,{className:"global-review-row-item",windowSize:r,isLastItem:!1,children:t.jsx(ee,{children:w.tenantMerchantName})})]}):t.jsx(I,{className:"global-review-row-item",windowSize:r,isLastItem:!1,children:t.jsx(ee,{children:w.tenantMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:de(n,K,me),checkBoxValue:de(n,K,me),defaultChecked:e.currentSelection==="requested"},tooltipProps:{text:t.jsx(_t,{merchant:w,rowSuffix:A}),maxWidth:"360px"}}:void 0;let y=w.oldMerchantName;e.currentSelection==="originalVendor"&&e.selectedMerchantId!=null&&(y=e.selectedMerchantId);const x=S.useMemo(()=>He(y,e.merchant,l),[e,l]),T=()=>{N(!1),C()},ne=()=>{z(n)};return t.jsx(We,{"data-testid":k("global-review-list-row"),windowSize:r,isActiveField:J,children:D.map((c,G)=>{switch(c.key){case"originalVendor":return t.jsx(q,{"data-testid":k(`global-review-list-row-column-${c.key}`),windowSize:r,wrapperWidth:c.width,children:O===!0?t.jsx(st,{onClickAway:T,children:t.jsx(Ht,{children:t.jsx(dt,{name:se(n,"originalVendor"),defaultValue:x,isOptionsLoading:f==="In-Progress",addIconInCreateLabel:!0,autoFocus:!0,isDisabled:g,style:{marginRight:o.sp4},menuIsOpen:O,loadOptions:u,customStyleConfig:{valueContainer:(b,j)=>({justifyContent:"flex-start",margin:`${o.sp0} ${j.selectProps.menuIsOpen===!1?o.sp0:o.sp3}`}),menu:()=>({width:"150%"}),singleValue:()=>({display:"flex",alignItems:"center",color:"inherit"})},onCreateOptionClick:b=>{d(w.tenantMerchantId,b,w.websiteUrl)},onMenuClose:T})})}):x.selectedOption!=null?Ut(x.selectedOption,w,l,r,G,J,N,ne,A):t.jsxs(I,{className:"global-review-row-item",windowSize:r,isLastItem:G===D.length-1,children:[Pt.selectPlaceholder,t.jsx(X,{display:"block",placement:"bottom",title:t.jsx(Q,{children:v.tooltips.editName}),enterDelay:600,children:t.jsx(ye,{onClick:()=>N(!0),"data-testid":k("global-review-list-row-edit-icon")})})]})},se(n,"originalVendor"));case"recommended":return t.jsx(S.Fragment,{children:t.jsx(q,{"data-testid":k(`global-review-list-row-column-${c.key}`),gap:s.logoToValueGap,windowSize:r,wrapperWidth:c.width,children:F.map((b,j)=>t.jsxs(S.Fragment,{children:[t.jsx(I,{className:"vendor-global-review-row-item","data-testid":L("global-review-list-row-recommendation-option",`${A}-${j}`),isLastItem:!1,windowSize:r,children:t.jsx(Me,{isHighlighted:!0,label:b.label,checkBoxField:b.checkBoxField,tooltipProps:b.tooltipProps,defaultChecked:e.currentSelection===b.fieldName})}),j<F.length-1?t.jsxs(Wt,{children:[" ",v.texts.or]}):null]},j))})},`${n}-recommended`);case"action":return t.jsx(q,{"data-testid":k(`global-review-list-row-column-${c.key}`),gap:s.smallLogoToValueGap,windowSize:r,wrapperWidth:c.width,children:t.jsxs(I,{className:"global-review-row-button",windowSize:r,isLastItem:G===D.length-1,children:[t.jsx(xe,{dataTestId:k("global-review-list-row-reject"),label:v.footer.reject,loading:e.rejectStatus.fetchState==="In-Progress",onClick:()=>p(w.tenantMerchantId),size:"small",style:{height:"100%"},variant:"light_transparent"}),t.jsx(qt,{space:o.sp0,style:{display:"flex",alignItems:"center",height:o.sp4,width:o.sp3}}),t.jsx(xe,{dataTestId:k("global-review-list-row-approve"),disabled:!Y,label:v.footer.approve,loading:e.approveStatus.fetchState==="In-Progress",onClick:()=>m(w.tenantMerchantId),size:"small",variant:"primary"})]})},`${n}.${c.key}`);case"requestedVendor":return t.jsx(q,{"data-testid":k(`global-review-list-row-column-${c.key}`),gap:s.smallLogoToValueGap,windowSize:r,wrapperWidth:c.width,children:w.tenantMerchantName&&V!=null?t.jsx(I,{windowSize:r,className:"vendor-global-review-row-item",isLastItem:!1,children:t.jsx(Me,{isHighlighted:!0,label:V.label,checkBoxField:V.checkBoxField,tooltipProps:V.tooltipProps,defaultChecked:e.currentSelection==="requested"})}):t.jsx(I,{className:"vendor-global-review-row-item",windowSize:r,isLastItem:!1,children:v.strings.hyphen})},se(n,"merchantId"));default:return t.jsx(q,{"data-testid":k(`global-review-list-row-column-${c.key}`),windowSize:r,wrapperWidth:c.width,children:t.jsx(Ft,{className:"global-review-row-item",windowSize:r,isLastItem:G===D.length-1,children:t.jsx(X,{display:"block",placement:"bottom-start",title:t.jsx(Q,{children:w.tenantName}),children:t.jsx(ee,{children:w.tenantName})})})},se(n,"tenantId"))}})})},Ot=()=>{const e=Z();return t.jsx(We,{windowSize:e,isActiveField:!1,children:D.map((l,i)=>{switch(l.key){case"originalVendor":case"recommended":return t.jsxs(q,{windowSize:e,wrapperWidth:l.width,gap:s.smallLogoToValueGap,children:[t.jsx($e,{width:s.logoHeightAndWidth.value(e),height:s.logoHeightAndWidth.value(e)}),t.jsx(I,{windowSize:e,isLastItem:i===D.length-1,children:t.jsx(re,{width:120,height:s.logoHeightAndWidth.value(e),style:{display:"flex",alignItems:"center"}})})]},l.key);case"requestedVendor":return t.jsxs(q,{windowSize:e,wrapperWidth:l.width,gap:s.logoToValueGap,children:[t.jsx($e,{width:s.vendorNameLogoHeightAndWidth.value(e),height:s.vendorNameLogoHeightAndWidth.value(e)}),t.jsx(I,{windowSize:e,isLastItem:i===D.length-1,children:t.jsx(re,{width:120,height:s.vendorNameLogoHeightAndWidth.value(e),style:{display:"flex",alignItems:"center"}})})]},l.key);case"tenants":return t.jsx(q,{windowSize:e,wrapperWidth:l.width,children:t.jsx(I,{windowSize:e,isLastItem:i===D.length-1,children:t.jsx(re,{width:100,height:M[4],style:{display:"flex",alignItems:"center"}})})},l.key);default:return t.jsx(q,{windowSize:e,wrapperWidth:l.width,children:t.jsx(I,{windowSize:e,isLastItem:i===D.length-1,children:t.jsx(re,{width:M[11],height:M[5],style:{display:"flex",alignItems:"center"}})})},l.key)}})})},We=a.div`
78
+ `,{common:v,vendorReview:{globalReview:{globalMerchantList:Pt}}}=we.getLocalizedStrings(),s={containerPaddingLeftRight:new P(M[3],M[4]),containerPaddingTopBottom:new P(M[2],M[3]),logoHeightAndWidth:new P(M[3],M[4]),vendorNameLogoHeightAndWidth:new P(M[4],M[6]),logoToValueGap:new P(M[2],M[2]),smallLogoToValueGap:new P(M[1],M[1])},Dt=({vendorGlobalReviewData:e,allGlobalMerchants:l,globalMerchantAutoCompleteView:i,sectionId:n,isDisabled:g,analytics:h,onLoadGlobalMerchants:u,onCreateGlobalMerchant:d,onApproveGlobalReview:m,onRejectGlobalReview:p,onClearGlobalMerchantAutoCompleteResults:C})=>{const r=Z(),{resetField:z,formState:E}=rt(),[O,N]=S.useState(!1),[W,B]=n.split("."),H=parseInt(B),A=String(H),k=c=>L(c,A),Y=E.dirtyFields[W]?.[H]?.originalVendor===!0&&e.selectedMerchantId!==e.merchant.tenantMerchantId,J=e.currentSelection!=null,{merchant:w,recommendations:$}=e,{fetchState:f}=i,F=[];$.forEach((c,G)=>{const b=`recommended${mt(G)}`;F.push({label:{label:t.jsx(t.Fragment,{children:c.logo!=null?t.jsxs(Ge,{children:[t.jsx(ve,{photoUrl:c.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(r),height:s.logoHeightAndWidth.valuePx(r)},placeholder:{width:s.logoHeightAndWidth.value(r),height:s.logoHeightAndWidth.value(r)},fallbackAvatar:t.jsx(pe,{children:t.jsx(he,{name:c.globalMerchantName,size:s.logoHeightAndWidth.valuePx(r)})})}),t.jsx(I,{className:"global-review-row-item",windowSize:r,isLastItem:!1,children:t.jsx(ee,{children:c.globalMerchantName})})]}):t.jsx(I,{className:"global-review-row-item",windowSize:r,isLastItem:!1,children:t.jsx(ee,{children:c.globalMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:de(n,_,b),checkBoxValue:de(n,_,b),defaultChecked:e.currentSelection===b},tooltipProps:{text:t.jsx(Ut,{onRedirectionToRecommendedMerchantWebsiteUrl:()=>(j=>{let R=j.websiteUrl?.toString();if(R){if(R=Pe(R)??R,e.selectedMerchantId!=null){const U=j.globalMerchantName??null;h.trackVendorReviewWebsiteOpened({reviewSource:"global_review",vendorName:e.merchant.tenantMerchantName,wasRecommendationAvailable:!!U,recommendedVendorName:U,recommendedVendorReason:j.reason??null,vendorWebsite:R})}window.open(R,"_blank")}})(c),recommendation:c,recommendationIndex:G,rowSuffix:A}),maxWidth:"360px"},fieldName:b})});const V=w!=null?{label:{label:t.jsx(t.Fragment,{children:w.logo!=null?t.jsxs(Ge,{children:[t.jsx(ve,{photoUrl:w.logo.toString(),styles:{width:s.logoHeightAndWidth.valuePx(r),height:s.logoHeightAndWidth.valuePx(r)},placeholder:{width:s.logoHeightAndWidth.value(r),height:s.logoHeightAndWidth.value(r)},fallbackAvatar:t.jsx(pe,{children:t.jsx(he,{name:w.tenantMerchantName,size:s.logoHeightAndWidth.valuePx(r)})})}),t.jsx(I,{className:"global-review-row-item",windowSize:r,isLastItem:!1,children:t.jsx(ee,{children:w.tenantMerchantName})})]}):t.jsx(I,{className:"global-review-row-item",windowSize:r,isLastItem:!1,children:t.jsx(ee,{children:w.tenantMerchantName})})}),style:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},checkBoxField:{name:de(n,_,me),checkBoxValue:de(n,_,me),defaultChecked:e.currentSelection==="requested"},tooltipProps:{text:t.jsx(Kt,{merchant:w,rowSuffix:A}),maxWidth:"360px"}}:void 0;let y=w.oldMerchantName;e.currentSelection==="originalVendor"&&e.selectedMerchantId!=null&&(y=e.selectedMerchantId);const x=S.useMemo(()=>He(y,e.merchant,l),[e,l]),T=()=>{N(!1),C()},ne=()=>{z(n)};return t.jsx(We,{"data-testid":k("global-review-list-row"),windowSize:r,isActiveField:Y,children:D.map((c,G)=>{switch(c.key){case"originalVendor":return t.jsx(q,{"data-testid":k(`global-review-list-row-column-${c.key}`),windowSize:r,wrapperWidth:c.width,children:O===!0?t.jsx(st,{onClickAway:T,children:t.jsx(Ht,{children:t.jsx(dt,{name:se(n,"originalVendor"),defaultValue:x,isOptionsLoading:f==="In-Progress",addIconInCreateLabel:!0,autoFocus:!0,isDisabled:g,style:{marginRight:o.sp4},menuIsOpen:O,loadOptions:u,customStyleConfig:{valueContainer:(b,j)=>({justifyContent:"flex-start",margin:`${o.sp0} ${j.selectProps.menuIsOpen===!1?o.sp0:o.sp3}`}),menu:()=>({width:"150%"}),singleValue:()=>({display:"flex",alignItems:"center",color:"inherit"})},onCreateOptionClick:b=>{d(w.tenantMerchantId,b,w.websiteUrl)},onMenuClose:T})})}):x.selectedOption!=null?Bt(x.selectedOption,w,l,r,G,Y,N,ne,A):t.jsxs(I,{className:"global-review-row-item",windowSize:r,isLastItem:G===D.length-1,children:[Pt.selectPlaceholder,t.jsx(Q,{display:"block",placement:"bottom",title:t.jsx(X,{children:v.tooltips.editName}),enterDelay:600,children:t.jsx(ye,{onClick:()=>N(!0),"data-testid":k("global-review-list-row-edit-icon")})})]})},se(n,"originalVendor"));case"recommended":return t.jsx(S.Fragment,{children:t.jsx(q,{"data-testid":k(`global-review-list-row-column-${c.key}`),gap:s.logoToValueGap,windowSize:r,wrapperWidth:c.width,children:F.map((b,j)=>t.jsxs(S.Fragment,{children:[t.jsx(I,{className:"vendor-global-review-row-item","data-testid":L("global-review-list-row-recommendation-option",`${A}-${j}`),isLastItem:!1,windowSize:r,children:t.jsx(Me,{isHighlighted:!0,label:b.label,checkBoxField:b.checkBoxField,tooltipProps:b.tooltipProps,defaultChecked:e.currentSelection===b.fieldName})}),j<F.length-1?t.jsxs(Wt,{children:[" ",v.texts.or]}):null]},j))})},`${n}-recommended`);case"action":return t.jsx(q,{"data-testid":k(`global-review-list-row-column-${c.key}`),gap:s.smallLogoToValueGap,windowSize:r,wrapperWidth:c.width,children:t.jsxs(I,{className:"global-review-row-button",windowSize:r,isLastItem:G===D.length-1,children:[t.jsx(xe,{dataTestId:k("global-review-list-row-reject"),label:v.footer.reject,loading:e.rejectStatus.fetchState==="In-Progress",onClick:()=>p(w.tenantMerchantId),size:"small",style:{height:"100%"},variant:"light_transparent"}),t.jsx(qt,{space:o.sp0,style:{display:"flex",alignItems:"center",height:o.sp4,width:o.sp3}}),t.jsx(xe,{dataTestId:k("global-review-list-row-approve"),disabled:!J,label:v.footer.approve,loading:e.approveStatus.fetchState==="In-Progress",onClick:()=>m(w.tenantMerchantId),size:"small",variant:"primary"})]})},`${n}.${c.key}`);case"requestedVendor":return t.jsx(q,{"data-testid":k(`global-review-list-row-column-${c.key}`),gap:s.smallLogoToValueGap,windowSize:r,wrapperWidth:c.width,children:w.tenantMerchantName&&V!=null?t.jsx(I,{windowSize:r,className:"vendor-global-review-row-item",isLastItem:!1,children:t.jsx(Me,{isHighlighted:!0,label:V.label,checkBoxField:V.checkBoxField,tooltipProps:V.tooltipProps,defaultChecked:e.currentSelection==="requested"})}):t.jsx(I,{className:"vendor-global-review-row-item",windowSize:r,isLastItem:!1,children:v.strings.hyphen})},se(n,"merchantId"));default:return t.jsx(q,{"data-testid":k(`global-review-list-row-column-${c.key}`),windowSize:r,wrapperWidth:c.width,children:t.jsx(Ft,{className:"global-review-row-item",windowSize:r,isLastItem:G===D.length-1,children:t.jsx(Q,{display:"block",placement:"bottom-start",title:t.jsx(X,{children:w.tenantName}),children:t.jsx(ee,{children:w.tenantName})})})},se(n,"tenantId"))}})})},Ot=()=>{const e=Z();return t.jsx(We,{windowSize:e,isActiveField:!1,children:D.map((l,i)=>{switch(l.key){case"originalVendor":case"recommended":return t.jsxs(q,{windowSize:e,wrapperWidth:l.width,gap:s.smallLogoToValueGap,children:[t.jsx($e,{width:s.logoHeightAndWidth.value(e),height:s.logoHeightAndWidth.value(e)}),t.jsx(I,{windowSize:e,isLastItem:i===D.length-1,children:t.jsx(re,{width:120,height:s.logoHeightAndWidth.value(e),style:{display:"flex",alignItems:"center"}})})]},l.key);case"requestedVendor":return t.jsxs(q,{windowSize:e,wrapperWidth:l.width,gap:s.logoToValueGap,children:[t.jsx($e,{width:s.vendorNameLogoHeightAndWidth.value(e),height:s.vendorNameLogoHeightAndWidth.value(e)}),t.jsx(I,{windowSize:e,isLastItem:i===D.length-1,children:t.jsx(re,{width:120,height:s.vendorNameLogoHeightAndWidth.value(e),style:{display:"flex",alignItems:"center"}})})]},l.key);case"tenants":return t.jsx(q,{windowSize:e,wrapperWidth:l.width,children:t.jsx(I,{windowSize:e,isLastItem:i===D.length-1,children:t.jsx(re,{width:100,height:M[4],style:{display:"flex",alignItems:"center"}})})},l.key);default:return t.jsx(q,{windowSize:e,wrapperWidth:l.width,children:t.jsx(I,{windowSize:e,isLastItem:i===D.length-1,children:t.jsx(re,{width:M[11],height:M[5],style:{display:"flex",alignItems:"center"}})})},l.key)}})})},We=a.div`
79
79
  display: flex;
80
80
  margin-bottom: ${o.sp3};
81
81
  background-color: ${e=>e.theme.colors.grey5};
@@ -153,7 +153,7 @@ import{y as Ue,X as Z,P as Be,A as _e,c8 as Ke,V as t,E as L,a_ as Ee,M as Je,bP
153
153
  ${je};
154
154
  justify-content: ${e=>e.isLastItem?"flex-end":"unset"};
155
155
  display: ${e=>e.isLastItem?"flex":"inline-block"};
156
- `,Q=a(ue)`
156
+ `,X=a(ue)`
157
157
  padding: 2px ${o.sp2};
158
158
  color: ${e=>e.theme.colors.hero};
159
159
  background: ${e=>e.theme.colors.overlayColor};
@@ -215,16 +215,16 @@ import{y as Ue,X as Z,P as Be,A as _e,c8 as Ke,V as t,E as L,a_ as Ee,M as Je,bP
215
215
  `,Ge=a.div`
216
216
  display: flex;
217
217
  gap: ${o.sp2};
218
- `,He=(e,l,i)=>{const n=i.find(h=>h.globalMerchantId===e),g=l.tenantMerchantId===e?{label:l.tenantMerchantName,value:l.tenantMerchantId}:n!=null?{label:n.globalMerchantName,value:n.globalMerchantId}:void 0;return g!=null?{defaultOptions:[g],selectedOption:e}:{defaultOptions:[],selectedOption:e}},Ut=(e,l,i,n,g,h,u,d,m)=>{const p=z=>L(z,m),C=i.find(z=>z.globalMerchantId===e),r=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 r==null?t.jsxs(t.Fragment,{children:[t.jsx(I,{className:"vendor-global-review-row-item",windowSize:n,isLastItem:!1,children:v.strings.hyphen}),t.jsxs(Ve,{children:[t.jsx(X,{display:"block",placement:"bottom",title:t.jsx(Q,{children:v.tooltips.editName}),enterDelay:600,children:t.jsx(ye,{className:"edit-icon","data-testid":p("global-review-list-row-edit-icon"),onClick:()=>u(!0)})}),h?t.jsx(X,{display:"block",placement:"bottom",title:t.jsx(Q,{children:v.tooltips.reset}),enterDelay:600,children:t.jsx(Ne,{className:"reset-icon","data-testid":p("global-review-list-row-undo-icon"),onClick:d})}):null]})]}):t.jsxs(t.Fragment,{children:[r.logo!=null?t.jsx(ve,{photoUrl:r.logo.toString(),styles:{width:s.vendorNameLogoHeightAndWidth.valuePx(n),height:s.vendorNameLogoHeightAndWidth.valuePx(n),marginRight:s.logoToValueGap.valuePx(n)},placeholder:{width:s.vendorNameLogoHeightAndWidth.value(n),height:s.vendorNameLogoHeightAndWidth.value(n),style:{marginRight:s.logoToValueGap.valuePx(n)}},fallbackAvatar:t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(n)},children:t.jsx(he,{name:r.name,size:s.vendorNameLogoHeightAndWidth.valuePx(n)})})}):t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(n)},children:t.jsx(he,{name:r.name,size:s.vendorNameLogoHeightAndWidth.valuePx(n)})}),t.jsxs(Ve,{children:[t.jsx(I,{className:"global-review-row-item",windowSize:n,isLastItem:g===D.length-1,children:t.jsx(X,{display:"block",placement:"bottom-start",title:t.jsx(Q,{children:r.name}),children:t.jsx(ee,{children:r.name})})}),t.jsx(X,{display:"block",placement:"bottom",title:t.jsx(Q,{children:v.tooltips.editName}),enterDelay:600,children:t.jsx(ye,{className:"edit-icon","data-testid":p("global-review-list-row-edit-icon"),onClick:()=>u(!0)})}),h?t.jsx(X,{display:"block",placement:"bottom",title:t.jsx(Q,{children:v.tooltips.reset}),enterDelay:600,children:t.jsx(Ne,{className:"reset-icon","data-testid":p("global-review-list-row-undo-icon"),onClick:d})}):null]})]})},Bt=({onRedirectionToRecommendedMerchantWebsiteUrl:e,recommendation:l,recommendationIndex:i,rowSuffix:n})=>t.jsxs(Fe,{setMaxHeight:!0,children:[t.jsxs(te,{children:[t.jsx(oe,{children:v.labels.vendor}),t.jsx(le,{children:l.globalMerchantName})]}),l.websiteUrl?t.jsxs(te,{children:[t.jsx(oe,{children:v.labels.websiteURL}),t.jsx(le,{className:"websiteUrlTooltipText","data-testid":L("global-review-list-row-recommended-website-url",`${n}-${String(i)}`),onClick:()=>e(l),children:l.websiteUrl?.toString()})]}):null]}),_t=({merchant:e,rowSuffix:l})=>{let i=e.websiteUrl?.toString()??v.strings.empty;return t.jsxs(Fe,{children:[t.jsxs(te,{children:[t.jsx(oe,{children:v.labels.name}),t.jsx(le,{children:e.tenantMerchantName})]}),e.accountName.length?t.jsxs(te,{children:[t.jsx(oe,{children:v.labels.category}),t.jsx(le,{children:e.accountName})]}):null,e.accountName.length?t.jsxs(te,{children:[t.jsx(oe,{children:v.labels.class}),t.jsx(le,{children:e.className})]}):null,i?t.jsxs(te,{children:[t.jsx(oe,{children:v.labels.websiteURL}),t.jsx(le,{className:"websiteUrlTooltipText","data-testid":L("global-review-list-row-requested-vendor-website-url",l),onClick:()=>{i&&(i=Pe(i)??i,window.open(i,"_blank"))},children:i})]}):null]})},Kt=({sortConfig:e,fetchState:l,isDisabled:i,onColumnSortConfigChanged:n})=>{const g=Z();return t.jsxs(Et,{windowSize:g,children:[t.jsx(Oe,{sortConfig:e,isDisabled:l==="In-Progress"?"readonly":i,onColumnSortConfigChanged:n}),t.jsx(Jt,{windowSize:g,children:[...Array(7)].map((h,u)=>t.jsx(Ot,{},u))})]})},Et=a.div`
218
+ `,He=(e,l,i)=>{const n=i.find(h=>h.globalMerchantId===e),g=l.tenantMerchantId===e?{label:l.tenantMerchantName,value:l.tenantMerchantId}:n!=null?{label:n.globalMerchantName,value:n.globalMerchantId}:void 0;return g!=null?{defaultOptions:[g],selectedOption:e}:{defaultOptions:[],selectedOption:e}},Bt=(e,l,i,n,g,h,u,d,m)=>{const p=z=>L(z,m),C=i.find(z=>z.globalMerchantId===e),r=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 r==null?t.jsxs(t.Fragment,{children:[t.jsx(I,{className:"vendor-global-review-row-item",windowSize:n,isLastItem:!1,children:v.strings.hyphen}),t.jsxs(Ve,{children:[t.jsx(Q,{display:"block",placement:"bottom",title:t.jsx(X,{children:v.tooltips.editName}),enterDelay:600,children:t.jsx(ye,{className:"edit-icon","data-testid":p("global-review-list-row-edit-icon"),onClick:()=>u(!0)})}),h?t.jsx(Q,{display:"block",placement:"bottom",title:t.jsx(X,{children:v.tooltips.reset}),enterDelay:600,children:t.jsx(Ne,{className:"reset-icon","data-testid":p("global-review-list-row-undo-icon"),onClick:d})}):null]})]}):t.jsxs(t.Fragment,{children:[r.logo!=null?t.jsx(ve,{photoUrl:r.logo.toString(),styles:{width:s.vendorNameLogoHeightAndWidth.valuePx(n),height:s.vendorNameLogoHeightAndWidth.valuePx(n),marginRight:s.logoToValueGap.valuePx(n)},placeholder:{width:s.vendorNameLogoHeightAndWidth.value(n),height:s.vendorNameLogoHeightAndWidth.value(n),style:{marginRight:s.logoToValueGap.valuePx(n)}},fallbackAvatar:t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(n)},children:t.jsx(he,{name:r.name,size:s.vendorNameLogoHeightAndWidth.valuePx(n)})})}):t.jsx(pe,{style:{marginRight:s.logoToValueGap.valuePx(n)},children:t.jsx(he,{name:r.name,size:s.vendorNameLogoHeightAndWidth.valuePx(n)})}),t.jsxs(Ve,{children:[t.jsx(I,{className:"global-review-row-item",windowSize:n,isLastItem:g===D.length-1,children:t.jsx(Q,{display:"block",placement:"bottom-start",title:t.jsx(X,{children:r.name}),children:t.jsx(ee,{children:r.name})})}),t.jsx(Q,{display:"block",placement:"bottom",title:t.jsx(X,{children:v.tooltips.editName}),enterDelay:600,children:t.jsx(ye,{className:"edit-icon","data-testid":p("global-review-list-row-edit-icon"),onClick:()=>u(!0)})}),h?t.jsx(Q,{display:"block",placement:"bottom",title:t.jsx(X,{children:v.tooltips.reset}),enterDelay:600,children:t.jsx(Ne,{className:"reset-icon","data-testid":p("global-review-list-row-undo-icon"),onClick:d})}):null]})]})},Ut=({onRedirectionToRecommendedMerchantWebsiteUrl:e,recommendation:l,recommendationIndex:i,rowSuffix:n})=>t.jsxs(Fe,{setMaxHeight:!0,children:[t.jsxs(te,{children:[t.jsx(oe,{children:v.labels.vendor}),t.jsx(le,{children:l.globalMerchantName})]}),l.websiteUrl?t.jsxs(te,{children:[t.jsx(oe,{children:v.labels.websiteURL}),t.jsx(le,{className:"websiteUrlTooltipText","data-testid":L("global-review-list-row-recommended-website-url",`${n}-${String(i)}`),onClick:()=>e(l),children:l.websiteUrl?.toString()})]}):null]}),Kt=({merchant:e,rowSuffix:l})=>{let i=e.websiteUrl?.toString()??v.strings.empty;return t.jsxs(Fe,{children:[t.jsxs(te,{children:[t.jsx(oe,{children:v.labels.name}),t.jsx(le,{children:e.tenantMerchantName})]}),e.accountName.length?t.jsxs(te,{children:[t.jsx(oe,{children:v.labels.category}),t.jsx(le,{children:e.accountName})]}):null,e.accountName.length?t.jsxs(te,{children:[t.jsx(oe,{children:v.labels.class}),t.jsx(le,{children:e.className})]}):null,i?t.jsxs(te,{children:[t.jsx(oe,{children:v.labels.websiteURL}),t.jsx(le,{className:"websiteUrlTooltipText","data-testid":L("global-review-list-row-requested-vendor-website-url",l),onClick:()=>{i&&(i=Pe(i)??i,window.open(i,"_blank"))},children:i})]}):null]})},_t=({sortConfig:e,fetchState:l,isDisabled:i,onColumnSortConfigChanged:n})=>{const g=Z();return t.jsxs(Et,{windowSize:g,children:[t.jsx(Oe,{sortConfig:e,isDisabled:l==="In-Progress"?"readonly":i,onColumnSortConfigChanged:n}),t.jsx(Yt,{windowSize:g,children:[...Array(7)].map((h,u)=>t.jsx(Ot,{},u))})]})},Et=a.div`
219
219
  display: block;
220
220
  min-height: 100%;
221
221
  flex-direction: column;
222
222
  width: 100%;
223
- `,Jt=a.div`
223
+ `,Yt=a.div`
224
224
  display: flex;
225
225
  min-height: 100%;
226
226
  flex-direction: column;
227
- `,{common:Yt,vendorReview:{globalReview:{globalMerchantList:Le}}}=we.getLocalizedStrings(),Xt=({vendorGlobalReviewList:e,allGlobalMerchants:l,sectionId:i,listFetchState:n,globalMerchantAutoCompleteView:g,uiState:h,isDisabled:u,analytics:d,onLoadGlobalMerchants:m,onUpdateGlobalReviewUIState:p,onFetchGlobalReviewList:C,onCreateGlobalMerchant:r,onApproveGlobalMerchantReview:z,onRejectGlobalMerchantReview:E,onClearGlobalMerchantAutoCompleteResults:O})=>{const N=Z(),W=S.useRef(null),[U,H]=S.useState(!1);S.useEffect(()=>{W.current?.resetAfterIndex(0)},[N,W]),S.useEffect(()=>{n==="Completed"&&H(!1)},[n]);const A=$=>88,k=($,f)=>{p({sortOrder:f,sortKey:$}),C(h.searchText,!1,null)},J=$=>$<e.length,Y=()=>{h.pageToken!=null&&n==="Completed"&&(H(!0),C(h.searchText,!0,h.pageToken))},w=$=>{const f=e.find(V=>V.merchant.tenantMerchantId===$),F=l.find(V=>V.globalMerchantId===f?.selectedMerchantId);f?.currentSelection!="requested"||F!=null&&f?.currentSelection=="requested"?z($):f!=null&&r($,f.merchant.tenantMerchantName,f.merchant.websiteUrl)};return t.jsxs(el,{windowSize:N,children:[t.jsx(tl,{windowSize:N,children:n==="Error"?t.jsxs(ol,{windowSize:N,children:[t.jsx(nl,{"data-testid":L("global-review-list-table-reload-icon"),onClick:()=>C("",!1,null),children:t.jsx(Ye,{})}),t.jsx(il,{children:Yt.reloadPage.label})]}):n==="Completed"&&e.length===0?t.jsx(Xe,{message:h.searchText?Le.noMatchedDataText:Le.noDataText,style:{padding:o.sp0}}):n==="Not-Started"||n==="In-Progress"&&e.length===0?t.jsx(Kt,{sortConfig:{sortKey:h.sortKey,sortOrder:h.sortOrder},isDisabled:u,fetchState:n,onColumnSortConfigChanged:k}):t.jsx(ll,{windowSize:N,children:t.jsx(Qe,{children:({height:$,width:f})=>t.jsx(Ze,{isItemLoaded:J,itemCount:e.length+1,loadMoreItems:Y,children:({onItemsRendered:F})=>t.jsxs(rl,{style:{height:$,width:f},children:[t.jsx(Zt,{children:t.jsx(Oe,{sortConfig:{sortKey:h.sortKey,sortOrder:h.sortOrder},isDisabled:n==="In-Progress"?"readonly":u,onColumnSortConfigChanged:k})}),t.jsx(et,{ref:W,height:$-53,itemCount:e.length,itemData:{analytics:d,vendorGlobalReviewList:e,sectionId:i,allGlobalMerchants:l,globalMerchantAutoCompleteView:g,isDisabled:u,onLoadGlobalMerchants:m,onApproveGlobalReview:w,onRejectGlobalMerchantReview:E,onCreateGlobalMerchant:r,onClearGlobalMerchantAutoCompleteResults:O},onItemsRendered:F,itemSize:A,width:f,style:{willChange:"auto"},overscanCount:1,onScroll:({scrollOffset:V})=>{p({scrollYOffset:V})},initialScrollOffset:h.scrollYOffset,children:Qt})]})})})})}),t.jsx(tt,{controller:U===!0,children:t.jsx(sl,{children:t.jsx(lt,{size:"Small",start:!0})})})]})},Qt=({index:e,style:l,data:i})=>{const{analytics:n,vendorGlobalReviewList:g,allGlobalMerchants:h,globalMerchantAutoCompleteView:u,sectionId:d,isDisabled:m,onLoadGlobalMerchants:p,onCreateGlobalMerchant:C,onApproveGlobalReview:r,onRejectGlobalMerchantReview:z,onClearGlobalMerchantAutoCompleteResults:E}=i,O=g[e];return t.jsx(al,{className:"global-review-list-item","data-testid":L("global-review-list-list-item",String(e)),style:{...l,width:"100%"},children:t.jsx(Dt,{sectionId:`${d}.${e}`,isDisabled:O.approveStatus.fetchState==="In-Progress"?"readonly":m,globalMerchantAutoCompleteView:u,vendorGlobalReviewData:O,allGlobalMerchants:h,onLoadGlobalMerchants:p,onCreateGlobalMerchant:C,onApproveGlobalReview:r,onRejectGlobalReview:z,onClearGlobalMerchantAutoCompleteResults:E,analytics:n},O.merchant.tenantMerchantId)})},Zt=a.div`
227
+ `,{common:Jt,vendorReview:{globalReview:{globalMerchantList:Le}}}=we.getLocalizedStrings(),Qt=({vendorGlobalReviewList:e,allGlobalMerchants:l,sectionId:i,listFetchState:n,globalMerchantAutoCompleteView:g,uiState:h,isDisabled:u,analytics:d,onLoadGlobalMerchants:m,onUpdateGlobalReviewUIState:p,onFetchGlobalReviewList:C,onCreateGlobalMerchant:r,onApproveGlobalMerchantReview:z,onRejectGlobalMerchantReview:E,onClearGlobalMerchantAutoCompleteResults:O})=>{const N=Z(),W=S.useRef(null),[B,H]=S.useState(!1);S.useEffect(()=>{W.current?.resetAfterIndex(0)},[N,W]),S.useEffect(()=>{n==="Completed"&&H(!1)},[n]);const A=$=>88,k=($,f)=>{p({sortOrder:f,sortKey:$}),C(h.searchText,!1,null)},Y=$=>$<e.length,J=()=>{h.pageToken!=null&&n==="Completed"&&(H(!0),C(h.searchText,!0,h.pageToken))},w=$=>{const f=e.find(V=>V.merchant.tenantMerchantId===$),F=l.find(V=>V.globalMerchantId===f?.selectedMerchantId);f?.currentSelection!="requested"||F!=null&&f?.currentSelection=="requested"?z($):f!=null&&r($,f.merchant.tenantMerchantName,f.merchant.websiteUrl)};return t.jsxs(el,{windowSize:N,children:[t.jsx(tl,{windowSize:N,children:n==="Error"?t.jsxs(ol,{windowSize:N,children:[t.jsx(nl,{"data-testid":L("global-review-list-table-reload-icon"),onClick:()=>C("",!1,null),children:t.jsx(Je,{})}),t.jsx(il,{children:Jt.reloadPage.label})]}):n==="Completed"&&e.length===0?t.jsx(Qe,{message:h.searchText?Le.noMatchedDataText:Le.noDataText,style:{padding:o.sp0}}):n==="Not-Started"||n==="In-Progress"&&e.length===0?t.jsx(_t,{sortConfig:{sortKey:h.sortKey,sortOrder:h.sortOrder},isDisabled:u,fetchState:n,onColumnSortConfigChanged:k}):t.jsx(ll,{windowSize:N,children:t.jsx(Xe,{children:({height:$,width:f})=>t.jsx(Ze,{isItemLoaded:Y,itemCount:e.length+1,loadMoreItems:J,children:({onItemsRendered:F})=>t.jsxs(rl,{style:{height:$,width:f},children:[t.jsx(Zt,{children:t.jsx(Oe,{sortConfig:{sortKey:h.sortKey,sortOrder:h.sortOrder},isDisabled:n==="In-Progress"?"readonly":u,onColumnSortConfigChanged:k})}),t.jsx(et,{ref:W,height:$-53,itemCount:e.length,itemData:{analytics:d,vendorGlobalReviewList:e,sectionId:i,allGlobalMerchants:l,globalMerchantAutoCompleteView:g,isDisabled:u,onLoadGlobalMerchants:m,onApproveGlobalReview:w,onRejectGlobalMerchantReview:E,onCreateGlobalMerchant:r,onClearGlobalMerchantAutoCompleteResults:O},onItemsRendered:F,itemSize:A,width:f,style:{willChange:"auto"},overscanCount:1,onScroll:({scrollOffset:V})=>{p({scrollYOffset:V})},initialScrollOffset:h.scrollYOffset,children:Xt})]})})})})}),t.jsx(tt,{controller:B===!0,children:t.jsx(sl,{children:t.jsx(lt,{size:"Small",start:!0})})})]})},Xt=({index:e,style:l,data:i})=>{const{analytics:n,vendorGlobalReviewList:g,allGlobalMerchants:h,globalMerchantAutoCompleteView:u,sectionId:d,isDisabled:m,onLoadGlobalMerchants:p,onCreateGlobalMerchant:C,onApproveGlobalReview:r,onRejectGlobalMerchantReview:z,onClearGlobalMerchantAutoCompleteResults:E}=i,O=g[e];return t.jsx(al,{className:"global-review-list-item","data-testid":L("global-review-list-list-item",String(e)),style:{...l,width:"100%"},children:t.jsx(Dt,{sectionId:`${d}.${e}`,isDisabled:O.approveStatus.fetchState==="In-Progress"?"readonly":m,globalMerchantAutoCompleteView:u,vendorGlobalReviewData:O,allGlobalMerchants:h,onLoadGlobalMerchants:p,onCreateGlobalMerchant:C,onApproveGlobalReview:r,onRejectGlobalReview:z,onClearGlobalMerchantAutoCompleteResults:E,analytics:n},O.merchant.tenantMerchantId)})},Zt=a.div`
228
228
  width: auto;
229
229
  `,el=a.div`
230
230
  display: block;
@@ -280,7 +280,7 @@ import{y as Ue,X as Z,P as Be,A as _e,c8 as Ke,V as t,E as L,a_ as Ee,M as Je,bP
280
280
  align-items: center;
281
281
  margin-top: ${o.sp3};
282
282
  margin-bottom: ${o.sp3};
283
- `,{common:{sectionTitles:dl},vendorReview:{globalReview:{globalMerchantList:ze}}}=we.getLocalizedStrings(),ce="globalReviewListTable",kl=({vendorGlobalReviewView:e,globalMerchantAutoCompleteView:l,analytics:i,isDisabled:n,onUpdateSelectedGlobalMerchant:g,onApproveGlobalReview:h,onRejectGlobalReview:u,onCreateGlobalMerchant:d,onFetchGlobalMerchantAutoCompleteResults:m,onUpdateGlobalReviewUIState:p,onFetchGlobalReviewList:C,onClearGlobalMerchantAutoCompleteResults:r,onBackClick:z,onClickMenuIcon:E})=>{const O=Ue(),N=Z(),{vendorGlobalReviewData:W,allGlobalMerchants:U,uiState:H,fetchState:A}=e,{globalMerchants:k,fetchState:J}=l,Y=Be({mode:"all",reValidateMode:"onChange",defaultValues:Ae(W,U),values:Ae(W,U),resetOptions:{keepDirtyValues:!0}}),[w,$]=S.useState(H.searchText),f=S.useRef(),F=S.useRef(_e(y=>(x=>{C(x,!1,null)})(y),500,{trailing:!0})).current;S.useEffect(()=>{A==="Completed"&&i.trackVendorReviewPage("global_review",H.totalCount)},[A]),S.useEffect(()=>{J==="Completed"&&f.current?.(gl(k))},[J]),S.useEffect(()=>{const y=Y.watch((x,{name:T,type:ne})=>{T!=null&&x!=null&&Ke(()=>(async(c,G,b)=>{const{globalReviewListTable:j}=G,R=parseInt(c.split(".")[1]),B=j[R].merchantId;if(b!=null){if(c.includes(ce)){const qe=parseInt(c.split(".")[1]),_={...G[ce][qe]};let ae,ie=_[K];_.merchantId!=null&&(c.includes(Ie)?(ie={recommendedFirst:_[K].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},ae=_[Ie]?.globalMerchantId):c.includes(Ce)?(ie={recommendedFirst:!1,recommendedSecond:_[K].recommendedSecond,originalVendor:!1,requested:!1},ae=_[Ce]?.globalMerchantId):c.includes(me)?(ie={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:_[K].requested},ae=_[me]):c.includes(be)&&(ie={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(B,ie,c.includes(be)?j[R][be].selectedOption:ae)}}else g(B,{recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:!1},B)})(T,x,ne))});return()=>{y.unsubscribe()}});const V=t.jsx(xt,{button:{label:dl.newVendor,onClick:()=>d()},search:{searchText:w,hide:!1,isOpen:w.length>0,placeHolder:ze.searchPlaceholder,onTextChange:y=>{$(y),y.trim().length>=2?F(y):y.trim().length==0&&F("")}},newVendorButtonDataTestId:L("global-review-list-new-vendor-button"),searchBarDataTestId:L("global-review-list-search-bar")});return t.jsxs(cl,{children:[t.jsx(Ee,{title:ze.navBarTitle,backgroundColor:O.colors.grey4,onBackClick:z,rightSideComponent:V,showMenuIcon:N==="medium-compact"||N==="small",onClickMenuIcon:E,source:"GlobalReviewListPage"}),t.jsx(hl,{children:t.jsx(Je,{...Y,children:t.jsx("form",{id:ml("globalReviewListPage"),onSubmit:Y.handleSubmit(()=>{}),style:{width:"100%"},children:t.jsx(Xt,{vendorGlobalReviewList:W,allGlobalMerchants:U,globalMerchantAutoCompleteView:l,uiState:{...H,searchText:w},isDisabled:n,listFetchState:A,sectionId:ce,onLoadGlobalMerchants:(y,x)=>{m(y),f.current=x},onUpdateGlobalReviewUIState:p,onFetchGlobalReviewList:C,onCreateGlobalMerchant:d,onApproveGlobalMerchantReview:y=>{const x=W.find(T=>T.merchant.tenantMerchantId===y);if(x!=null){const T=U.find(B=>B.globalMerchantId===x.selectedMerchantId),ne=x.recommendations,{tenantName:c,oldMerchantName:G,tenantMerchantName:b}=x.merchant,j=T?.globalMerchantName??b,R=ne[0];i.trackVendorReviewApproveRequested({reviewSource:"global_review",tenantName:c,requestedVendorName:b,originalVendorName:G,approveVendorName:j,isGlobalVendorRequested:T!=null,isNewCreatedVendorRequested:!1,isVendorNameRecommendationSelected:x.currentSelection==="recommendedFirst"||x.currentSelection==="recommendedSecond",isVendorNameChangedAndSelected:j!==b,wasRecommendationAvailable:!!R?.globalMerchantName,approveVendorReason:T?.reason??null,approveVendorNameSelectionSource:j===R?.globalMerchantName?"recommendation":"text_edit",recommendedVendorName:R?.globalMerchantName??null,recommendedVendorReason:R?.reason??null})}h(y)},onRejectGlobalMerchantReview:u,onClearGlobalMerchantAutoCompleteResults:r,analytics:i})})})})]})},cl=a.div`
283
+ `,{common:{sectionTitles:dl},vendorReview:{globalReview:{globalMerchantList:ze}}}=we.getLocalizedStrings(),ce="globalReviewListTable",kl=({vendorGlobalReviewView:e,globalMerchantAutoCompleteView:l,analytics:i,isDisabled:n,onUpdateSelectedGlobalMerchant:g,onApproveGlobalReview:h,onRejectGlobalReview:u,onCreateGlobalMerchant:d,onFetchGlobalMerchantAutoCompleteResults:m,onUpdateGlobalReviewUIState:p,onFetchGlobalReviewList:C,onClearGlobalMerchantAutoCompleteResults:r,onBackClick:z,onClickMenuIcon:E})=>{const O=Be(),N=Z(),{vendorGlobalReviewData:W,allGlobalMerchants:B,uiState:H,fetchState:A}=e,{globalMerchants:k,fetchState:Y}=l,J=Ue({mode:"all",reValidateMode:"onChange",defaultValues:Ae(W,B),values:Ae(W,B),resetOptions:{keepDirtyValues:!0}}),[w,$]=S.useState(H.searchText),f=S.useRef(),F=S.useRef(Ke(y=>(x=>{C(x,!1,null)})(y),500,{trailing:!0})).current;S.useEffect(()=>{A==="Completed"&&i.trackVendorReviewPage("global_review",H.totalCount)},[A]),S.useEffect(()=>{Y==="Completed"&&f.current?.(gl(k))},[Y]),S.useEffect(()=>{const y=J.watch((x,{name:T,type:ne})=>{T!=null&&x!=null&&_e(()=>(async(c,G,b)=>{const{globalReviewListTable:j}=G,R=parseInt(c.split(".")[1]),U=j[R].merchantId;if(b!=null){if(c.includes(ce)){const qe=parseInt(c.split(".")[1]),K={...G[ce][qe]};let ae,ie=K[_];K.merchantId!=null&&(c.includes(Ie)?(ie={recommendedFirst:K[_].recommendedFirst,recommendedSecond:!1,originalVendor:!1,requested:!1},ae=K[Ie]?.globalMerchantId):c.includes(Ce)?(ie={recommendedFirst:!1,recommendedSecond:K[_].recommendedSecond,originalVendor:!1,requested:!1},ae=K[Ce]?.globalMerchantId):c.includes(me)?(ie={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:K[_].requested},ae=K[me]):c.includes(be)&&(ie={recommendedFirst:!1,recommendedSecond:!1,originalVendor:!0,requested:!1})),g(U,ie,c.includes(be)?j[R][be].selectedOption:ae)}}else g(U,{recommendedFirst:!1,recommendedSecond:!1,originalVendor:!1,requested:!1},U)})(T,x,ne))});return()=>{y.unsubscribe()}});const V=t.jsx(xt,{button:{label:dl.newVendor,onClick:()=>d()},search:{searchText:w,hide:!1,isOpen:w.length>0,placeHolder:ze.searchPlaceholder,onTextChange:y=>{$(y),y.trim().length>=2?F(y):y.trim().length==0&&F("")}},newVendorButtonDataTestId:L("global-review-list-new-vendor-button"),searchBarDataTestId:L("global-review-list-search-bar")});return t.jsxs(cl,{children:[t.jsx(Ee,{title:ze.navBarTitle,backgroundColor:O.colors.grey4,onBackClick:z,rightSideComponent:V,showMenuIcon:N==="medium-compact"||N==="small",onClickMenuIcon:E,source:"GlobalReviewListPage"}),t.jsx(hl,{children:t.jsx(Ye,{...J,children:t.jsx("form",{id:ml("globalReviewListPage"),onSubmit:J.handleSubmit(()=>{}),style:{width:"100%"},children:t.jsx(Qt,{vendorGlobalReviewList:W,allGlobalMerchants:B,globalMerchantAutoCompleteView:l,uiState:{...H,searchText:w},isDisabled:n,listFetchState:A,sectionId:ce,onLoadGlobalMerchants:(y,x)=>{m(y),f.current=x},onUpdateGlobalReviewUIState:p,onFetchGlobalReviewList:C,onCreateGlobalMerchant:d,onApproveGlobalMerchantReview:y=>{const x=W.find(T=>T.merchant.tenantMerchantId===y);if(x!=null){const T=B.find(U=>U.globalMerchantId===x.selectedMerchantId),ne=x.recommendations,{tenantName:c,oldMerchantName:G,tenantMerchantName:b}=x.merchant,j=T?.globalMerchantName??b,R=ne[0];i.trackVendorReviewApproveRequested({reviewSource:"global_review",tenantName:c,requestedVendorName:b,originalVendorName:G,approveVendorName:j,isGlobalVendorRequested:T!=null,isNewCreatedVendorRequested:!1,isVendorNameRecommendationSelected:x.currentSelection==="recommendedFirst"||x.currentSelection==="recommendedSecond",isVendorNameChangedAndSelected:j!==b,wasRecommendationAvailable:!!R?.globalMerchantName,approveVendorReason:T?.reason??null,approveVendorNameSelectionSource:j===R?.globalMerchantName?"recommendation":"text_edit",recommendedVendorName:R?.globalMerchantName??null,recommendedVendorReason:R?.reason??null})}h(y)},onRejectGlobalMerchantReview:u,onClearGlobalMerchantAutoCompleteResults:r,analytics:i})})})})]})},cl=a.div`
284
284
  display: flex;
285
285
  min-height: 100%;
286
286
  width: 100%;