@zeniai/web-cockpit-ui 1.14.90-qa → 1.14.91-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 (437) hide show
  1. package/dist/assets/ACHDetailsPage-B6sY0jN6-B0gf8H4B.js +21 -0
  2. package/dist/assets/{AIPerformancePage-DHF_70JI-Byb0JaRY.js → AIPerformancePage-BWK9fXrz-DKsZ1mo0.js} +43 -43
  3. package/dist/assets/AccountInfoPage-DfT5DDiZ-fWZyYCg5.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-nUi26Aww-BYypek4H.js +149 -0
  5. package/dist/assets/AccountLockedInfoModal-BROj4bmE-BVM1T1YI.js +59 -0
  6. package/dist/assets/AccountReconDetailsDrawerPage-C-3FFCQZ-sRbxt9OR.js +239 -0
  7. package/dist/assets/{AccountRow-D2Ypckgj-BVuVsxAI.js → AccountRow-BM2kGWyR-T6iB2hx_.js} +24 -24
  8. package/dist/assets/AccountsPromoCardStack-CNCG5uPJ-CVvmiGCx.js +207 -0
  9. package/dist/assets/AddAddressForCardDrawer-BuAtFO1w-BFBt3SFQ.js +6 -0
  10. package/dist/assets/{AddToWalletPage-CmT5jSb5-BtE7INh2.js → AddToWalletPage-DyrcWdBZ-CvPiU8kF.js} +32 -32
  11. package/dist/assets/{AgingReportsPage-BeUGvj3b-BnHb3lWK.js → AgingReportsPage-CmluxKG3-A44UbSFN.js} +9 -9
  12. package/dist/assets/{AllUserItems-CmlMyz-f-BE3QXVOa.js → AllUserItems-CVZZU-J3-TfKbUj2d.js} +9 -9
  13. package/dist/assets/ApAgingDetailPage-CoNxqskm-DFDFQfze.js +46 -0
  14. package/dist/assets/AppBasePage-CTGNzUtN-DSfPwIJw.js +71 -0
  15. package/dist/assets/AppDrawerContent-59dQVUxu-C64nAWzc.js +91 -0
  16. package/dist/assets/ApprovalRulesSettingsPage-XEW5sdNg-BbhudnSk.js +47 -0
  17. package/dist/assets/ArAgingChart-D3Ym4gVE-BqVBnPwY.js +24 -0
  18. package/dist/assets/ArAgingDetailPage-BLEJSLJJ-DwMAtZnW.js +46 -0
  19. package/dist/assets/AttachmentView-DSP80cjm-UNIl1Ai8.js +101 -0
  20. package/dist/assets/{BankAccountSection-BVZK5jmO-CjTZMznk.js → BankAccountSection-DRrNcA79-hP-Vs5m_.js} +8 -8
  21. package/dist/assets/BankAccountWarningSection-Ub-gsfhE-CrMug0PW.js +51 -0
  22. package/dist/assets/{BankConnectionsSettingsPage-BN3lAARB-B0yEFHuK.js → BankConnectionsSettingsPage-BcTtJTbg-algC_RED.js} +29 -29
  23. package/dist/assets/BillDetailPage-D7AQyxwr-Cr5mMjBH.js +266 -0
  24. package/dist/assets/BillPayApprovalRuleDetailPage-BQWGENO8-OS81cubl.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-B8HbVvc9-CNKY0-NR.js → BillPayApprovalRulesPage-BbA1Nwqe-BwMbtGVn.js} +17 -17
  26. package/dist/assets/BillPayPromoPage-DSTS_vBW-BNfdixF0.js +84 -0
  27. package/dist/assets/BillPaySetUpPage-CvlVPVCA-C-Yq8DpY.js +42 -0
  28. package/dist/assets/BillingSettingsPage-nKpHtd4C-Bnbrb4t9.js +44 -0
  29. package/dist/assets/BillsBulkReviewDrawerPage-DNHAoceL-Dw8wGAVZ.js +1 -0
  30. package/dist/assets/BoxItem-Bjv3WNXO-DVhc5wWw.js +53 -0
  31. package/dist/assets/BusinessVerificationPage-Bj4D9bX2-BIO97DuN.js +138 -0
  32. package/dist/assets/CardNumberSubText-BYY-Inxd-BdlFsn4_.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-D3WylWVP-D9Vs2ft8.js → CashbackDetailPage-D9UiTqp9-zR6MfAmm.js} +23 -23
  34. package/dist/assets/{ChargeCardDetailPage-BUsGBwBf-B-LmCTsN.js → ChargeCardDetailPage-C5EdiIyl-DLQH13JM.js} +24 -24
  35. package/dist/assets/{ChargeCardListPage-Jhx05dVV-CgbSqG5e.js → ChargeCardListPage-DZwz1qoD-C4LK4t_r.js} +17 -17
  36. package/dist/assets/{ChargeCardListTable-D-eYWaxh-OyS_l2le.js → ChargeCardListTable-D5B05Z1F-BFq9lu6-.js} +21 -21
  37. package/dist/assets/ChargeCardPromoPage-CDJMtGJb-BonChypf.js +222 -0
  38. package/dist/assets/ChargeCardSetupPage-CVV24gS9-Bz9Vbd0f.js +36 -0
  39. package/dist/assets/ChargeCardStatementsPage-CmjBoi5e-CP137h_S.js +60 -0
  40. package/dist/assets/CheckDepositDrawerPage-CYOhT5Qz-Ctri9wNN.js +206 -0
  41. package/dist/assets/{CollapsableReportTable-I40BZv7o-d2_h6r8O.js → CollapsableReportTable-hL_Ycouc-B8J7Q_nq.js} +81 -81
  42. package/dist/assets/{CompanyOfficerDetailsSection-ChsNKXbx-BF5MOIbR.js → CompanyOfficerDetailsSection-DR_6TlQa-eD8A7jcO.js} +23 -23
  43. package/dist/assets/CompanyPassportCard-B4chn7-Q-D5SPmBv_.js +42 -0
  44. package/dist/assets/{CompanyPassportPage-DG1Fa_Uw-Dkbt-nxV.js → CompanyPassportPage-oT9HnnPQ-SX0lC40Z.js} +136 -136
  45. package/dist/assets/CompleteProfile-BgH4v76Z-8UAVvvgt.js +52 -0
  46. package/dist/assets/ConfettiBurst-Cl6jHJ8H-LC2meCe-.js +1 -0
  47. package/dist/assets/{CreateOrEditVendorPage-DVzMO96w-D2_PioHE.js → CreateOrEditVendorPage-CW-u7pJU-p324jU3k.js} +16 -16
  48. package/dist/assets/CreditCardPaymentDrawerPage-D30M7ol4-DoXJ5bDN.js +224 -0
  49. package/dist/assets/CurrencySelectField-DOCEstMc-DZU689ma.js +139 -0
  50. package/dist/assets/CustomerOnboardingActivationPage-DMPNjFL_-ku4Vuy0S.js +88 -0
  51. package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-DTgF2r26.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-C4Z1pDVe-BqoeEQuE.js → CustomerOnboardingDetailPageSkeleton-CBYo4VQn-Dn7fU-s8.js} +20 -20
  53. package/dist/assets/CustomerOnboardingNoStepsPage-EBVRCYfJ-CfvYqECa.js +66 -0
  54. package/dist/assets/{CustomerOnboardingPage-C3FgZjAN-BMoiiOVQ.js → CustomerOnboardingPage-TJK6s-LM-BKRL2lJB.js} +10 -10
  55. package/dist/assets/CustomerOnboardingProductSuitePage-lNIP5gSu-PR2itKHa.js +202 -0
  56. package/dist/assets/{Dashboard-D_oTtu1--DmU_Kxzw.js → Dashboard-WiE9IRrh-Cv0kOt8p.js} +63 -63
  57. package/dist/assets/{DashboardReportPage-Dprj3eUQ-BvCOtKTf.js → DashboardReportPage-BKHl_IVD-C4Ea2qys.js} +21 -21
  58. package/dist/assets/DashboardSidebarBackgroundAnimation-B1mJObim-BrrhB9xn.js +12 -0
  59. package/dist/assets/{DepositAccTransactionItem-C2oP415b-fO_vukRP.js → DepositAccTransactionItem-C8tChaJS-DUssbHtI.js} +12 -12
  60. package/dist/assets/DepositAccTransactionListPage-B6px7upV-CeIhvwtb.js +66 -0
  61. package/dist/assets/DomesticWireDetailsPage-BFQJmzYm-RX-JpFy3.js +21 -0
  62. package/dist/assets/{DownloadOverlay-BwddFmV2-TXwTh2dm.js → DownloadOverlay-DB-qx46O-j8z4pSob.js} +90 -90
  63. package/dist/assets/DrawerPage-Bha9ElcW-B8Be3mMf.js +118 -0
  64. package/dist/assets/EditPeoplePage-B6QD5Vld-jl0Ywq6s.js +55 -0
  65. package/dist/assets/{EditReimbursementDetailPage-DwCiVkeu-CHb4Vx_R.js → EditReimbursementDetailPage-EplOf2mP-0BJtsB6D.js} +20 -20
  66. package/dist/assets/EntityDetailPage-5Cu1qehd-DbU14HUf.js +18 -0
  67. package/dist/assets/EntitySummarySection-D6z6-dM7-CxR6H9p6.js +149 -0
  68. package/dist/assets/{ExpenseAutomationOverviewPage-hl_3Pc0g-DYxAAMa6.js → ExpenseAutomationOverviewPage-DkoxczRc-Nhh5EsPg.js} +27 -27
  69. package/dist/assets/ExpenseAutomationPage-Na3XKgcg-v_T_dNPC.js +1650 -0
  70. package/dist/assets/{ExpressPayPage-BpfkmJ_I-Cr6J8360.js → ExpressPayPage-DWGl_gml-BK4q9z9-.js} +19 -19
  71. package/dist/assets/FeaturePreviewPage-BgkpUPMm-CjuE-Vy6.js +11 -0
  72. package/dist/assets/{FollowStepsSection-Bu3RG_GH-1o9BWCUV.js → FollowStepsSection-64oy2OLD-mYi4qCkY.js} +23 -23
  73. package/dist/assets/{GlobalReviewListPage-D4BD7q-I-IVn_04O3.js → GlobalReviewListPage-DHfTyj2C-jQOPvWvS.js} +48 -48
  74. package/dist/assets/{InformationCardStack-B9wnkR3p-InW9f_7k.js → InformationCardStack-Dw3lhl2I-7einUDdd.js} +8 -8
  75. package/dist/assets/InsightsCardStack-BiEswY1Z-B0ppu_rT.js +79 -0
  76. package/dist/assets/InsightsSection-DvqCilqy-J94KiGaL.js +27 -0
  77. package/dist/assets/IntegrationsSettingsPage-DzVYf5ff-EFzWzTcS.js +57 -0
  78. package/dist/assets/InternationalWireSwiftDetailsPage-DTHcuQsH-DCnTBpNn.js +171 -0
  79. package/dist/assets/{InternationalWireVerificationPage-B8AOwcSX-O5d4_jx5.js → InternationalWireVerificationPage-BzyRqd-m-CtMekcQE.js} +13 -13
  80. package/dist/assets/InviteFormPage-CaJB3ss1-BX5i7EqT.js +312 -0
  81. package/dist/assets/{InvitePageListView-Dw8kwEFd-BOBOJq-T.js → InvitePageListView-8Ltt8tHx-CtYoDyrk.js} +49 -49
  82. package/dist/assets/InvitePeoplePage-A7oKAD7M-BQc_PdIV.js +12 -0
  83. package/dist/assets/InvoiceUploadSection-DomquLut-e92SA0tf.js +140 -0
  84. package/dist/assets/{IssueChargeCardPage-fumweN4Y-CbGa-1Sy.js → IssueChargeCardPage-DtIQ1Buk-DjM4t17X.js} +8 -8
  85. package/dist/assets/LabeledAddressValue-B_9lh-_a-DIizmhzb.js +49 -0
  86. package/dist/assets/LabeledAddressValueField-CC7T3qZQ-m9gvzhHo.js +45 -0
  87. package/dist/assets/LabeledControlledCheckBoxField-CeMM7Ci3-mZLzoQGL.js +16 -0
  88. package/dist/assets/{LabeledCreatableSingleSelectField-CnQsTYWe-BNKI3sBW.js → LabeledCreatableSingleSelectField-DKD0oEl8-gq-eDRMt.js} +12 -12
  89. package/dist/assets/LabeledDocumentField-Dy3jwAiL-49YAoImC.js +41 -0
  90. package/dist/assets/LabeledDropDownFormattedTextField-DDzM3r6s-ECrfBFdw.js +59 -0
  91. package/dist/assets/LabeledText-axaAGyUS-Dng_AeMD.js +42 -0
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CSEiKb8M-DUVObrd4.js → LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-Bns3vXLL.js} +17 -17
  93. package/dist/assets/{LabeledZeniRolesDropDownField-CS_oKjBG-BYrCH7sg.js → LabeledZeniRolesDropDownField-dpz7g9jK-BS9FUIQq.js} +26 -26
  94. package/dist/assets/LinkJETransactionPage-CJniqVcu-DlmRVmek.js +98 -0
  95. package/dist/assets/{LockCardPage-DqQGGac2-DNRrTsHA.js → LockCardPage-CjO8cr2a-_f0132IP.js} +42 -42
  96. package/dist/assets/LowBalancePopup-DVS-w3b7-DP0lgN2T.js +34 -0
  97. package/dist/assets/MagicLinkACHDetailsPage-CUHMKmcj-B4JK6Tsk.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-CjkHVZHo.js +1 -0
  99. package/dist/assets/MagicLinkInternationalWireDetailsPage-sBpQkYwP-BFgoRuDp.js +1 -0
  100. package/dist/assets/MagicLinkSuccessPage-DAAoq3iT-c3oKtr_f.js +31 -0
  101. package/dist/assets/MagicLinkTitleSection-FMRBLlRJ-BOWrScDm.js +17 -0
  102. package/dist/assets/MailingDetailsSection-CiJ5JLA6-DddwOxAo.js +21 -0
  103. package/dist/assets/Menu-wpP8R1br-CxnIQs8p.js +17 -0
  104. package/dist/assets/MyBankConnectionsSettingsPage-DIIFgnkE-CogNLqVY.js +110 -0
  105. package/dist/assets/MyPendingActivationChargeCardListPage-Di_KYRgS-DRNBLhDG.js +6 -0
  106. package/dist/assets/MyProfileSettingsPage-m6vaeGgZ-chnTYzOu.js +85 -0
  107. package/dist/assets/NavBarWithPicker-C_qO8mgD-DUpFfabv.js +30 -0
  108. package/dist/assets/{NavigationArrow-Z9PgxZ-c-2tqZ4Fw-.js → NavigationArrow-BXYIj6Wz-DziJLhPd.js} +7 -7
  109. package/dist/assets/NavigationDots-BvKSgdgh-LQiuRx4x.js +15 -0
  110. package/dist/assets/{NewGlobalMerchantPage-YsnX4uQU-D0h-bx1p.js → NewGlobalMerchantPage-Dc3xEoiZ-C2aDiu95.js} +19 -19
  111. package/dist/assets/NoDataChart-C5ZP32zB-Co6FSXzL.js +26 -0
  112. package/dist/assets/NoDataTable-BnBYE8p_-CiELOEE2.js +8 -0
  113. package/dist/assets/NotFoundPage-CZ25GWwU-BIBXUzqs.js +46 -0
  114. package/dist/assets/{NotificationSettingsPage-DlU2NxiC-Dm2QaTZo.js → NotificationSettingsPage-DHvgj7Hu-D3suXG--.js} +28 -28
  115. package/dist/assets/NotificationsListConfig-BBLSv0sd-C4KCM8pw.js +1 -0
  116. package/dist/assets/{NotificationsPage-q0bK_5gs-jK6e_Uyw.js → NotificationsPage-CGVEC-Zc-C8fq9c_9.js} +34 -34
  117. package/dist/assets/{OpExByVendorPage-Boc7U8eu-CVJq9vF2.js → OpExByVendorPage-D55JZne--D9xmj7rz.js} +24 -24
  118. package/dist/assets/OverlayContainerPage-Daz3A7cI-D6qPPmeQ.js +11 -0
  119. package/dist/assets/{PandLWithForecastPage-B2eGvFPp-BaY0fBnf.js → PandLWithForecastPage-fVmttEKP-D6Evs_k0.js} +12 -12
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BP-_59EO-hGRsM6bI.js → PaymentAccountSetupBillingAddressSection-BiU8tQnm-4Kl9uXwr.js} +22 -22
  121. package/dist/assets/{PeoplePage-YMfZIga6-BEib8XAV.js → PeoplePage-QuuuX2AS-CUwuNLCQ.js} +13 -13
  122. package/dist/assets/Preview-D0lKYz6_.js +1 -0
  123. package/dist/assets/ProductsCarousel-zdZkfaiY-CKycG9Wt.js +142 -0
  124. package/dist/assets/{PromoBaseCards-CmOYEhSO-bExxN6kp.js → PromoBaseCards-flFtcbIg-iLyc6jwq.js} +14 -14
  125. package/dist/assets/QBOConnectionDialog-DNB2C1vQ-B6h7mZJt.js +51 -0
  126. package/dist/assets/QBOSetupSection-B59etoGz-Dx4Hkrje.js +79 -0
  127. package/dist/assets/ReimbursementApprovalRuleDetailPage-D7do3o0A-DaR0xdJA.js +32 -0
  128. package/dist/assets/{ReimbursementApprovalRulesPage-BkuYJ6qb-7dFuSzMb.js → ReimbursementApprovalRulesPage-BJ6GewQ2-D7efVmkv.js} +33 -33
  129. package/dist/assets/ReimbursementDetailPage-DKAtYSOy-C-uqjyM_.js +314 -0
  130. package/dist/assets/ReimbursementPromoPage-DKcSHlHp-XcrUKScH.js +84 -0
  131. package/dist/assets/ReimbursementSetUpPage-Y1e_hna--rh2VyUST.js +140 -0
  132. package/dist/assets/ReimbursementsBulkReviewDrawerPage-fgz8s4w9-CzZAxGly.js +1 -0
  133. package/dist/assets/ReloadCard-DjtdPHq5-BoSxtWCb.js +26 -0
  134. package/dist/assets/ReportTableViewSelector-C8e6IEWt-BJN3fro7.js +150 -0
  135. package/dist/assets/{ReportsPage-iJDifG6q-CYAyIPrv.js → ReportsPage-BIe0eDLC-D5ygJVqP.js} +12 -12
  136. package/dist/assets/{RevenueChart-BbOK-HCB-C8qpvMvb.js → RevenueChart-Cc0XrxLL-BB6kfchw.js} +35 -35
  137. package/dist/assets/ReviewDetailsPage-CU1AYWgR--SOiatSS.js +290 -0
  138. package/dist/assets/ReviewOverlay-CruJ9O84-BdMFQyaH.js +152 -0
  139. package/dist/assets/RoleWithToolTip-fC3byzzv-DteZC2-q.js +22 -0
  140. package/dist/assets/ScheduleDetailsFixedAssetsPage-CE3tUYhk-Aj3mnuFr.js +37 -0
  141. package/dist/assets/ScheduleDetailsPage-BhAqJ1Of-BNYzMpaE.js +37 -0
  142. package/dist/assets/{ScheduleSequenceTable-Bb7MJ-zJ-BYUE2OMk.js → ScheduleSequenceTable-NSt1juSD-BtySotUK.js} +21 -21
  143. package/dist/assets/ScreenRoutes-Ofrn7XPK.js +201 -0
  144. package/dist/assets/SetUpAccountSection-C1EnJv1V-nWkvB51T.js +378 -0
  145. package/dist/assets/SignIn-BhIof_Cm-Stp0fHNQ.js +463 -0
  146. package/dist/assets/SignInScreen-ApNcuhAj.js +1 -0
  147. package/dist/assets/SpendManagementListViewPage-BEWNNX_Z-Qf8TDCkQ.js +123 -0
  148. package/dist/assets/{SpendManagementPerTabPage-HzCmGr0--xZeoOzCY.js → SpendManagementPerTabPage-Vs1Eoxgd-DGhcXeqs.js} +43 -43
  149. package/dist/assets/{SpendManagementSection-LzT-Bnhy-7KIDrHzn.js → SpendManagementSection-C38Zpi1z-Hvu4v5m7.js} +16 -16
  150. package/dist/assets/StatementItem-bHInVThd-BfGU3kqj.js +31 -0
  151. package/dist/assets/StatementsPage-CGQhmaXx-CVtkQqM2.js +58 -0
  152. package/dist/assets/{StatusSwitcher-BPKr5BUW-iZy1SY4R.js → StatusSwitcher-7fiKLb5g-cQtYU__8.js} +10 -10
  153. package/dist/assets/{SubTabSwitcher-4dvyyQSv-B0aTRMDP.js → SubTabSwitcher-9AnfZiNy-CobTdTqd.js} +8 -8
  154. package/dist/assets/SummaryCard-DOycYLs1-BLeRuOD7.js +1 -0
  155. package/dist/assets/{TaskManagementPage-BiyyDIWi-DOn8-w1u.js → TaskManagementPage-CehyMnY0-BwJtO-U4.js} +29 -29
  156. package/dist/assets/TimeRangeSwitcher-Dq2FEgFR-DmMi5La_.js +64 -0
  157. package/dist/assets/{TimeframeSwitcher-u606tI8Z-CLiEbUCN.js → TimeframeSwitcher-By3xz_-m-1CBF6COV.js} +4 -4
  158. package/dist/assets/TimeframeSwitcherWithToggle-a3fmbzNR-B9R7QlVw.js +31 -0
  159. package/dist/assets/TopExCard-GEQpp_KY-74e79UYx.js +38 -0
  160. package/dist/assets/{TopExDetailPage-Cla8Hd-1-DK-xuoZs.js → TopExDetailPage-hid1dQYl-WgHXC6hE.js} +31 -31
  161. package/dist/assets/{TransactionDetailPage-BbjtQvBr-FXHAHiFr.js → TransactionDetailPage-CX4JW9WM-DyZTJ1bq.js} +44 -44
  162. package/dist/assets/TransactionList-BixeXh4Y-Il163hc_.js +147 -0
  163. package/dist/assets/{TransactionListBig-BOeu4-R4-o6UH9k2V.js → TransactionListBig-CGMMJQBd-KQNhkGbE.js} +25 -25
  164. package/dist/assets/TransactionListPage-CBVUTX4y-DWsla1LN.js +35 -0
  165. package/dist/assets/TransactionVendorDetailPage-CEbHH_0r-CS6QQqEG.js +80 -0
  166. package/dist/assets/{TransferDrawerPage-BTqCR3Hb-BWfDRvEr.js → TransferDrawerPage-BFd7uQnF-AGu3EQB7.js} +19 -19
  167. package/dist/assets/{TreasuryOverviewPage-CDJtsQsC-BAM2Gg0T.js → TreasuryOverviewPage-Bd58hOy8-P3TIcDYG.js} +50 -50
  168. package/dist/assets/{TreasuryPromoPage-Bqt6DcqL-CXIyIitA.js → TreasuryPromoPage-BvArufHi-B6OSOn5z.js} +10 -10
  169. package/dist/assets/TreasuryStatementsPage-YLCEBbRh-BeAedV0-.js +58 -0
  170. package/dist/assets/TreasuryTaxLetterPage-D_6mgQqi-CO3HXioV.js +58 -0
  171. package/dist/assets/TrendChart-D3dT6hUb-CRyvw86n.js +16 -0
  172. package/dist/assets/TrendWithTransactions-Gj-u5KXi-CpckXM1N.js +116 -0
  173. package/dist/assets/{UncategorizedAccountsMappingPage-CFx4P194-BZZ4iMs4.js → UncategorizedAccountsMappingPage-B3eRYolj-D-Jwo7-l.js} +10 -10
  174. package/dist/assets/UnitIntegrationPage-DpjR9hUu-BIdCIf5k.js +67 -0
  175. package/dist/assets/UploadAdditionalDocumentOverlay-COtszXUY-DBj80beJ.js +38 -0
  176. package/dist/assets/Vendor2FAPopup-C85mhuSb-SCWhQlz7.js +1 -0
  177. package/dist/assets/VendorACHDetailsPage-DeexeWpV-CvETHK8j.js +1 -0
  178. package/dist/assets/{VendorDetailPage-Dy9McuGu-d-ZpZ6aU.js → VendorDetailPage-BrbKfsL4-BYuDBwtU.js} +100 -100
  179. package/dist/assets/VendorDomesticWireDetailsPage-DBChSKlR-4iWeRYsC.js +1 -0
  180. package/dist/assets/{VendorFiling1099EditablePage-Y0hGO4RH-BToJSlm-.js → VendorFiling1099EditablePage-DgBLn3fd-DyXTQ39Q.js} +11 -11
  181. package/dist/assets/{VendorFirstReviewPage-C-pT1M36-D4-Nv1Fg.js → VendorFirstReviewPage-jc7-OExI-CcNlKzIr.js} +66 -66
  182. package/dist/assets/{VendorInternationalWireDetailsPage-CCMramET-BwYsNdGo.js → VendorInternationalWireDetailsPage-c6isgwH2-CfXEdhbK.js} +11 -11
  183. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CywCx8-0-BWyYdePs.js +1 -0
  184. package/dist/assets/VendorsAccountsSection--VfdAF3H-aooc9xax.js +68 -0
  185. package/dist/assets/VerifyDevice-CaifjdR8-CqDImdvA.js +112 -0
  186. package/dist/assets/VideoPlayer-BVR9LPmm-Cf1X7mgb.js +78 -0
  187. package/dist/assets/VideoPopup-BEXc8o78-CxvDyO3n.js +31 -0
  188. package/dist/assets/WarningsDrawerPage-CboqfxzC-BsdL63Q1.js +92 -0
  189. package/dist/assets/{ZeniAccountDetailPage-BF8cg2oa-Df5W17bc.js → ZeniAccountDetailPage-Dujj0-XC-Bs0_mCxO.js} +33 -33
  190. package/dist/assets/{ZeniAccountListViewPage-BkdkYY8j-Bvi6PCOk.js → ZeniAccountListViewPage--SMJDGvC-B9VB-g9k.js} +18 -18
  191. package/dist/assets/ZeniAccountNavBarPieces-DqLJVQ5t-B6EqVL37.js +14 -0
  192. package/dist/assets/{ZeniAccountPromoPage-COAOIU03-B_FVyXMi.js → ZeniAccountPromoPage-BVjJvWsA-D_izrQ3u.js} +29 -29
  193. package/dist/assets/ZeniAccountSetupPage-Dvxst8RT-Dw_0q67c.js +36 -0
  194. package/dist/assets/ZeniCopyright-B88k3pkr-D_GBhPtz.js +1 -0
  195. package/dist/assets/ZeniTransferAmountSlider-1DS0MsTI-D_vM8ORb.js +63 -0
  196. package/dist/assets/add-to-wallet-DgdBD8_G-DvwlYBb0.js +1 -0
  197. package/dist/assets/agingReportHelper-ovKP-qSS-Cx4Hdid-.js +1 -0
  198. package/dist/assets/{analytics-DGBWhVbe.js → analytics-CHPpxU3b.js} +2 -2
  199. package/dist/assets/analyticsHelper-D88-Oppk.js +1 -0
  200. package/dist/assets/analyticsHelper-DmujELNG-B2_5NV-p.js +1 -0
  201. package/dist/assets/arrow-south-east-round-PEovUgvH-D9klpzRU.js +1 -0
  202. package/dist/assets/auto-transfer-rule-mbafm5D3-CHCjFoIN.js +1 -0
  203. package/dist/assets/chartTypes-DRiSljvE-CN4L62GH.js +1 -0
  204. package/dist/assets/commonDimensions-BDftm0gJ-DyUDFvZC.js +1 -0
  205. package/dist/assets/constants-B4Ak6U9p.js +1 -0
  206. package/dist/assets/{core-B-FNbYlu.js → core-CA3j8Axi.js} +13 -13
  207. package/dist/assets/{dash.all.min-BBsvkPzr.js → dash.all.min-Bzta_mrR.js} +11 -11
  208. package/dist/assets/detailCommon-BGgE4mE3-D-w4kHC7.js +38 -0
  209. package/dist/assets/downloadPdf-DCQ9vVZs-Be80rXL-.js +1 -0
  210. package/dist/assets/empty-CrPfQgao.js +1 -0
  211. package/dist/assets/empty-Dn000SHy.js +1 -0
  212. package/dist/assets/epic-C_I3d-Sx.js +2 -0
  213. package/dist/assets/getReferrerType-DjPOy76W-DRP5VHem.js +1 -0
  214. package/dist/assets/gift-box-Cmt9OgIZ-eSACml6z.js +1 -0
  215. package/dist/assets/graphic-no-data-l-DU4J8fDt-BzIPOWHn.js +1 -0
  216. package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-CtBcTNoa.js +1 -0
  217. package/dist/assets/handshake-BPg58FML-DvA7MfJg.js +1 -0
  218. package/dist/assets/{hls-BA0yQjS5.js → hls-SyH7Grr1.js} +1 -1
  219. package/dist/assets/{index-piC0sJHK.js → index-BG_bOyH4.js} +57 -57
  220. package/dist/assets/index-BWZriWwb.js +1 -0
  221. package/dist/assets/index-BiiqfeFx.js +39 -0
  222. package/dist/assets/index-C-ypGNlB.js +1 -0
  223. package/dist/assets/index-C4-PHmb9.js +1 -0
  224. package/dist/assets/index-C5fdNIhc.js +1 -0
  225. package/dist/assets/{index-Dm9r1f6s.js → index-DJLrbf0F.js} +4190 -4191
  226. package/dist/assets/lexical-dZFDzIA1.js +21 -0
  227. package/dist/assets/{liveblocks-BBTLClA6.js → liveblocks-C2I4vRCJ.js} +15 -15
  228. package/dist/assets/{lottie-gmZDfwf4.js → lottie-B7mXQ-R-.js} +1 -1
  229. package/dist/assets/mapLoadingInProgressToTreeNode-CXP8ZZTG-DkaL-N2A.js +1 -0
  230. package/dist/assets/mapSectionWithAcOnlyToTreeNode-BZSP-VcP-BuUbTOqM.js +1 -0
  231. package/dist/assets/mapSpacerToTreeNode-Bc1S_1ej-BOT7FVTB.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-ClgcHX26-Cs9gyyXd.js +1 -0
  233. package/dist/assets/mapTimeframeBalancesToTreeNode-Cwp98PMa-tz5P0V5W.js +1 -0
  234. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-Bmf8af15.js +1 -0
  235. package/dist/assets/{mixin-D3UDm--6.js → mixin-BPAPQfSE.js} +3 -3
  236. package/dist/assets/{mui-DLNyBjYF.js → mui-DpJXlk4t.js} +5 -5
  237. package/dist/assets/page-detail-CWX5S47F-Byx36A1h.js +1 -0
  238. package/dist/assets/radio-default-CiSgisfh-HcY1qXLg.js +1 -0
  239. package/dist/assets/react-B2Dtpj08.js +29 -0
  240. package/dist/assets/react-B7zczQTC.js +17 -0
  241. package/dist/assets/react-BuuImry8.js +44 -0
  242. package/dist/assets/react-C5CamjHm.js +16 -0
  243. package/dist/assets/react-CurU10nF.js +37 -0
  244. package/dist/assets/{react-BiH01iGK.js → react-D9gRIIQJ.js} +3 -3
  245. package/dist/assets/react-KsUvriAa.js +31 -0
  246. package/dist/assets/{react-2VG2yH4x.js → react-PdDuKQQV.js} +2 -2
  247. package/dist/assets/{recharts-Cnl2EvUV.js → recharts-BGdJnVo5.js} +1 -1
  248. package/dist/assets/{sentry-EYLV4XmG.js → sentry-BA4piVNf.js} +19 -19
  249. package/dist/assets/shield-DOlUxcFf-DciCHlJY.js +1 -0
  250. package/dist/assets/toCOABalancesWithID--oEGymMJ-DrPkDPTu.js +1 -0
  251. package/dist/assets/toChartData-CavJzP6f-B2iIF7nP.js +1 -0
  252. package/dist/assets/transaction-placeholder-CpOwZAMG-2yCTNaDx.js +1 -0
  253. package/dist/assets/types-DyvtCprH-NFPm5TaG.js +1 -0
  254. package/dist/assets/{uploadAttachment-CeUHLpzO-C_J8w5W4.js → uploadAttachment-BuVCsq0Q-BB-5S1Qg.js} +12 -12
  255. package/dist/assets/uploadReceipts-CPw64UYa-DU-gRzOR.js +1 -0
  256. package/dist/assets/url-Bq2XNMnM.js +1 -0
  257. package/dist/assets/url-RUB1rBsd.js +6 -0
  258. package/dist/assets/useLongPress-GCK2COYQ-Ch-mrcwO.js +1 -0
  259. package/dist/assets/usp-line-BBd1wKwW-BZdA9pHf.js +1 -0
  260. package/dist/assets/{utils-D1zwltK3.js → utils-DUsHM-Uc.js} +1 -1
  261. package/dist/assets/{zeni-epic-state-HWtMOH-U.js → zeni-epic-state-CQt4n3Xe.js} +32 -32
  262. package/dist/index.html +1 -1
  263. package/package.json +15 -13
  264. package/dist/assets/ACHDetailsPage-BUP-_2-W-gKUKs0Pb.js +0 -21
  265. package/dist/assets/AccountInfoPage-pmUIckJ9-CAlO-FHB.js +0 -18
  266. package/dist/assets/AccountInfoPageContent-DLSL1NNm-CTMQNQY3.js +0 -149
  267. package/dist/assets/AccountLockedInfoModal-Bq3y0K0F-Caep-eEi.js +0 -59
  268. package/dist/assets/AccountReconDetailsDrawerPage-CGcZO_qz-DphTR8AG.js +0 -239
  269. package/dist/assets/AccountsPromoCardStack-BVVDCW1H-CHjSEilj.js +0 -207
  270. package/dist/assets/AddAddressForCardDrawer-C8aENofu-_B3noxtJ.js +0 -6
  271. package/dist/assets/ApAgingDetailPage-Dz1_N0Yw-TUc4-BfW.js +0 -46
  272. package/dist/assets/AppBasePage-DX4EGGcT-CA5JIcq8.js +0 -71
  273. package/dist/assets/AppDrawerContent-Brg3Rw4K-Du3ev71U.js +0 -91
  274. package/dist/assets/ApprovalRulesSettingsPage-Bn7KrUl2-C_CZXQYN.js +0 -47
  275. package/dist/assets/ArAgingChart-DQZtCsHS-zcjxKJqm.js +0 -24
  276. package/dist/assets/ArAgingDetailPage-BtF6K5dA-CM34YcdM.js +0 -46
  277. package/dist/assets/AttachmentView-DgPySmB8-B41pIkR9.js +0 -101
  278. package/dist/assets/BankAccountWarningSection-DHdeDi15-M9LQMU5u.js +0 -51
  279. package/dist/assets/BillDetailPage-BuUm6vdf-BEfZuL72.js +0 -266
  280. package/dist/assets/BillPayApprovalRuleDetailPage-BXSdsF2E-BZdDia51.js +0 -27
  281. package/dist/assets/BillPayPromoPage-DkoqXDNt-Jx7NR9vs.js +0 -84
  282. package/dist/assets/BillPaySetUpPage-BommXkLS-CxAPQ6nt.js +0 -42
  283. package/dist/assets/BillingSettingsPage-gHbc5Kq3-6eOgIWo-.js +0 -44
  284. package/dist/assets/BillsBulkReviewDrawerPage-C541rBnx-CpMaFNun.js +0 -1
  285. package/dist/assets/BoxItem-usHxaONy-yqmV2_EE.js +0 -53
  286. package/dist/assets/BusinessVerificationPage-CLsxXy9d-ThEm2-hv.js +0 -138
  287. package/dist/assets/CardNumberSubText-D_fWhc_K-C63mXt5C.js +0 -21
  288. package/dist/assets/ChargeCardPromoPage-CzR82VtA-C4AU7pmq.js +0 -222
  289. package/dist/assets/ChargeCardSetupPage-Ctz8PCuu-CQ_qZ7MK.js +0 -36
  290. package/dist/assets/ChargeCardStatementsPage-EUtRTAX2-C_GDwTRC.js +0 -60
  291. package/dist/assets/CheckDepositDrawerPage-B7DC0HAi-p07KcTOW.js +0 -206
  292. package/dist/assets/CompanyPassportCard-82bbFwk--CB88G7Qo.js +0 -42
  293. package/dist/assets/CompleteProfile-B7bQqLQH-3BvSCHX1.js +0 -52
  294. package/dist/assets/ConfettiBurst-DUyIBnw4-Bzth-g3m.js +0 -1
  295. package/dist/assets/CreditCardPaymentDrawerPage-C03hfKGc-CNfSxnSZ.js +0 -224
  296. package/dist/assets/CurrencySelectField-2hU3oIp_-C4bLV2kj.js +0 -139
  297. package/dist/assets/CustomerOnboardingActivationPage-Dt-Nml2t-B6WqU8lr.js +0 -88
  298. package/dist/assets/CustomerOnboardingContainerPage-Dt-_tVOQ-UhKf7bOm.js +0 -1
  299. package/dist/assets/CustomerOnboardingNoStepsPage-CwI8nL61-fFJJ4fRN.js +0 -66
  300. package/dist/assets/CustomerOnboardingProductSuitePage-BOYu-82S-CVVsk6ik.js +0 -202
  301. package/dist/assets/DashboardSidebarBackgroundAnimation-C6SQaB7q-Dxl5QlMk.js +0 -12
  302. package/dist/assets/DepositAccTransactionListPage-DCvdqAz1-B_wb_nSG.js +0 -66
  303. package/dist/assets/DomesticWireDetailsPage-Da_3EveP-BRE1nKx5.js +0 -21
  304. package/dist/assets/DrawerPage-CGrnrvf2-C0F2USa4.js +0 -118
  305. package/dist/assets/EditPeoplePage-DMgxG2Gd-CCtVDE58.js +0 -55
  306. package/dist/assets/EntityDetailPage-BcRVEfi5-CepotlTP.js +0 -18
  307. package/dist/assets/EntitySummarySection-BaHHLLkE-Drrfo_tg.js +0 -149
  308. package/dist/assets/ExpenseAutomationPage-D70ghitX-sSwqGXv6.js +0 -1650
  309. package/dist/assets/FeaturePreviewPage-Bzi8Bpk3-Drk_uxAx.js +0 -11
  310. package/dist/assets/InsightsCardStack-C1_rd2Sb-Dhs19DDG.js +0 -79
  311. package/dist/assets/InsightsSection-7-T67WeF-R1I0UTTj.js +0 -27
  312. package/dist/assets/IntegrationsSettingsPage-C9YpvDgg-q-aOCVtI.js +0 -57
  313. package/dist/assets/InternationalWireSwiftDetailsPage-C5mI8dEh-B0sOCS9F.js +0 -171
  314. package/dist/assets/InviteFormPage-DuBhhnre-BDO1iW13.js +0 -312
  315. package/dist/assets/InvitePeoplePage-BI_vd7xw-BK1DYXv5.js +0 -12
  316. package/dist/assets/InvoiceUploadSection-9DaovMq8-nY-DuZwJ.js +0 -140
  317. package/dist/assets/LabeledAddressValue-cNf6hI1l-BswrPJcJ.js +0 -49
  318. package/dist/assets/LabeledAddressValueField-CoTtV0RQ-oEM2MjQO.js +0 -45
  319. package/dist/assets/LabeledControlledCheckBoxField-DQwUvKR2-CCQx34pM.js +0 -16
  320. package/dist/assets/LabeledDocumentField-MkryOLQ8-DH1KAWxk.js +0 -41
  321. package/dist/assets/LabeledDropDownFormattedTextField-B-yUtgxR-Svg2dZ6s.js +0 -59
  322. package/dist/assets/LabeledText-BJ3Zvb5p-ndTmW7U8.js +0 -42
  323. package/dist/assets/LinkJETransactionPage-BsszwFNq-CVlh2hC9.js +0 -98
  324. package/dist/assets/LowBalancePopup-BFo5zRk3-mdHe1dcy.js +0 -34
  325. package/dist/assets/MagicLinkACHDetailsPage-wYa3cyyZ-tz2BvffR.js +0 -1
  326. package/dist/assets/MagicLinkDomesticWireDetailsPage-CW4RNKOV-CtiYd2c1.js +0 -1
  327. package/dist/assets/MagicLinkInternationalWireDetailsPage-CX9SeCLl-HVNLuX22.js +0 -1
  328. package/dist/assets/MagicLinkSuccessPage-Dipq1-St-CbeB13LZ.js +0 -31
  329. package/dist/assets/MagicLinkTitleSection-DnN52Uwb-Cs_fy5V9.js +0 -17
  330. package/dist/assets/MailingDetailsSection-DwNF-L2Y-DrhhdeyV.js +0 -21
  331. package/dist/assets/Menu-D0jF6uaE-063ttLpF.js +0 -17
  332. package/dist/assets/MyBankConnectionsSettingsPage-DpM6MKBq-E1-nhC0K.js +0 -110
  333. package/dist/assets/MyPendingActivationChargeCardListPage-BaT55Pwg-Ag6G6vZu.js +0 -6
  334. package/dist/assets/MyProfileSettingsPage-kD1dY6P6-BfZFNoxD.js +0 -85
  335. package/dist/assets/NavBarWithPicker-D-WQJ-tG-Cy7zBv5q.js +0 -30
  336. package/dist/assets/NavigationDots-BT-m0FmS-COkqBkfX.js +0 -15
  337. package/dist/assets/NoDataChart-DMivligx-CY99ibCB.js +0 -26
  338. package/dist/assets/NoDataTable-DwOJY23X-0CWxLk-0.js +0 -8
  339. package/dist/assets/NotFoundPage-DuKXpHos-CG3u4rQy.js +0 -46
  340. package/dist/assets/NotificationsListConfig-BQCb9x9X-CKZiM7oL.js +0 -1
  341. package/dist/assets/OverlayContainerPage-CrZuT2Jj-CY2cJwH_.js +0 -11
  342. package/dist/assets/Preview-BszQHI_F.js +0 -1
  343. package/dist/assets/ProductsCarousel-CUaU5-V7-DTCkPx2F.js +0 -142
  344. package/dist/assets/QBOConnectionDialog-BNiXUEAk-O1EeGUUa.js +0 -51
  345. package/dist/assets/QBOSetupSection-CjjNFfgF-hqHet92Q.js +0 -79
  346. package/dist/assets/ReimbursementApprovalRuleDetailPage-tP7WcKvd-47DORnA2.js +0 -26
  347. package/dist/assets/ReimbursementDetailPage-D5IzqJS5-B19mA4vu.js +0 -314
  348. package/dist/assets/ReimbursementPromoPage-D7n6lZNo-CgdMqXow.js +0 -84
  349. package/dist/assets/ReimbursementSetUpPage-E1elWU5Z-D7O-pf9b.js +0 -140
  350. package/dist/assets/ReimbursementsBulkReviewDrawerPage-HzYNji-G-BjLwNAB4.js +0 -1
  351. package/dist/assets/ReloadCard-DMWwNZ1z-D31XYoZn.js +0 -26
  352. package/dist/assets/ReportTableViewSelector-EU36E1lv-CLM26q4e.js +0 -150
  353. package/dist/assets/ReviewDetailsPage-Bk2vvBn3-CMASDCWv.js +0 -290
  354. package/dist/assets/ReviewOverlay-CJlk2MNH-DksHT3Bn.js +0 -152
  355. package/dist/assets/RoleWithToolTip-B7woUKhj-tuSqaaK3.js +0 -22
  356. package/dist/assets/ScheduleDetailsFixedAssetsPage-B-WjqQN_-lrt0yIGR.js +0 -37
  357. package/dist/assets/ScheduleDetailsPage-ocFBINM3-BDslid8Y.js +0 -37
  358. package/dist/assets/ScreenRoutes-DoE2zy1N.js +0 -201
  359. package/dist/assets/SetUpAccountSection-9zELif-q-jAntwqfL.js +0 -378
  360. package/dist/assets/SignIn-BHHUcLal-B9B7yu5c.js +0 -448
  361. package/dist/assets/SignInScreen-Czg-Wlkz.js +0 -1
  362. package/dist/assets/SpendManagementListViewPage-BAdSW-49-Cy3aFFuZ.js +0 -123
  363. package/dist/assets/StatementItem-BnxTFgdM-BUy1CSEA.js +0 -31
  364. package/dist/assets/StatementsPage-B8X2un5p-Ao0DiWwm.js +0 -58
  365. package/dist/assets/SummaryCard-CiNkV7uy-CyUPIfT8.js +0 -1
  366. package/dist/assets/TimeRangeSwitcher-DEEhq2Us-DC70llJC.js +0 -64
  367. package/dist/assets/TimeframeSwitcherWithToggle-D2sBGHXQ-ChLeBSSB.js +0 -31
  368. package/dist/assets/TopExCard-DbPlohSJ-Dhp9OZxf.js +0 -38
  369. package/dist/assets/TransactionList-BRiHadkm-DPpaSQ1Y.js +0 -147
  370. package/dist/assets/TransactionListPage-ByVvx6ON-CwQjGljA.js +0 -35
  371. package/dist/assets/TransactionVendorDetailPage-DMweGn3b-Dq7toltd.js +0 -80
  372. package/dist/assets/TreasuryStatementsPage-2PsC-PWa-D70yhjS2.js +0 -58
  373. package/dist/assets/TreasuryTaxLetterPage-D6MoHMAo-DmesESI8.js +0 -58
  374. package/dist/assets/TrendChart-DiutckSt-D94T5IZh.js +0 -16
  375. package/dist/assets/TrendWithTransactions-rPwZKHfV-Dtp5jwDW.js +0 -116
  376. package/dist/assets/UnitIntegrationPage-DO8dMzVg-Cd3rb01x.js +0 -67
  377. package/dist/assets/UploadAdditionalDocumentOverlay-Ug3kL02_-DKI6OhwV.js +0 -38
  378. package/dist/assets/Vendor2FAPopup-BdG-Ywma-CO_da9UG.js +0 -1
  379. package/dist/assets/VendorACHDetailsPage-BUNmE_s6-DPSp4E23.js +0 -1
  380. package/dist/assets/VendorDomesticWireDetailsPage-DvACrh7C-BLzpieuI.js +0 -1
  381. package/dist/assets/VendorInternationalWireSwiftDetailsPage-lxD_Z5W--961yvZRp.js +0 -1
  382. package/dist/assets/VendorsAccountsSection-D-3fhQvy-CbP2SER5.js +0 -68
  383. package/dist/assets/VerifyDevice-DDZdWfa8-H5PbdKsY.js +0 -112
  384. package/dist/assets/VideoPlayer-D0GZ_Yml-gee9OAo-.js +0 -78
  385. package/dist/assets/VideoPopup-CEdhfU31-8qrMVIxi.js +0 -31
  386. package/dist/assets/WarningsDrawerPage-CIK9lkT2-D5cDBgQm.js +0 -92
  387. package/dist/assets/ZeniAccountNavBarPieces-FAxN1QDY-C5pMry9_.js +0 -14
  388. package/dist/assets/ZeniAccountSetupPage-QMBiVius-DueIhJzT.js +0 -36
  389. package/dist/assets/ZeniCopyright-CgfP-kcy-DUMhOisg.js +0 -1
  390. package/dist/assets/ZeniTransferAmountSlider-B1fmc3f9-DSYZgQje.js +0 -63
  391. package/dist/assets/add-to-wallet-DgdBD8_G-BctcirlU.js +0 -1
  392. package/dist/assets/agingReportHelper-ovKP-qSS-BPG0U4uX.js +0 -1
  393. package/dist/assets/analyticsHelper-BKtlFOJm-CcPLbTK6.js +0 -1
  394. package/dist/assets/analyticsHelper-BV9ovV44.js +0 -1
  395. package/dist/assets/arrow-south-east-round-PEovUgvH-DFZl4BUT.js +0 -1
  396. package/dist/assets/auto-transfer-rule-mbafm5D3-BCnmjSj0.js +0 -1
  397. package/dist/assets/chartTypes-BZYC5y5J-CVmMioA0.js +0 -1
  398. package/dist/assets/commonDimensions-B-aZt-hB-CP54iB8v.js +0 -1
  399. package/dist/assets/detailCommon-DCtkwfR8-Dr2vx6ZY.js +0 -38
  400. package/dist/assets/downloadPdf-BhQlJMh0-DeqZGQ39.js +0 -1
  401. package/dist/assets/empty-CnIz-OQ7.js +0 -1
  402. package/dist/assets/empty-TjEo4rDg.js +0 -1
  403. package/dist/assets/epic-DMZtehrN.js +0 -2
  404. package/dist/assets/getReferrerType-DjPOy76W-Cm31g4vJ.js +0 -1
  405. package/dist/assets/gift-box-Cmt9OgIZ-aujv_noX.js +0 -1
  406. package/dist/assets/graphic-no-data-l-DU4J8fDt-DTSR9TM8.js +0 -1
  407. package/dist/assets/graphic-no-data-net-burn-l-CzmycA0m-Bw4ambPw.js +0 -1
  408. package/dist/assets/handshake-BPg58FML-BjSDfVm7.js +0 -1
  409. package/dist/assets/index-CFi0iD-l.js +0 -1
  410. package/dist/assets/index-CL_7G35J.js +0 -1
  411. package/dist/assets/index-DdJI4MMd.js +0 -1
  412. package/dist/assets/index-dPPP2cWo.js +0 -1
  413. package/dist/assets/lexical-DPEnH3HH.js +0 -21
  414. package/dist/assets/mapLoadingInProgressToTreeNode-B8iO-fIh-DwG7e-RM.js +0 -1
  415. package/dist/assets/mapSectionWithAcOnlyToTreeNode-PLUfKBDd-BfmC19Y6.js +0 -1
  416. package/dist/assets/mapSpacerToTreeNode-BPbkmHFY-BZPeecIF.js +0 -1
  417. package/dist/assets/mapTimeframeBalancesToTreeNode-B-kK0AfR-0kzYcFSC.js +0 -1
  418. package/dist/assets/mapTimeframeBalancesToTreeNode-BvN4m9TA-DSQ0LTze.js +0 -1
  419. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-C5Cp6P0a.js +0 -1
  420. package/dist/assets/page-detail-CWX5S47F-Dn7FEY9U.js +0 -1
  421. package/dist/assets/radio-default-CiSgisfh-B6CtarQ8.js +0 -1
  422. package/dist/assets/react-Bqj7JUF5.js +0 -29
  423. package/dist/assets/react-CeCWo9lx.js +0 -44
  424. package/dist/assets/react-CwPTei9W.js +0 -17
  425. package/dist/assets/react-CxPSrq5B.js +0 -16
  426. package/dist/assets/react-VfkIuzgx.js +0 -37
  427. package/dist/assets/react-sPv488Z5.js +0 -31
  428. package/dist/assets/shield-DOlUxcFf-DYYbm8md.js +0 -1
  429. package/dist/assets/toCOABalancesWithID-ChMShONK-Cq-mLDe3.js +0 -1
  430. package/dist/assets/toChartData-BUweupH8-sZruIW4t.js +0 -1
  431. package/dist/assets/transaction-placeholder-CpOwZAMG-R9RAntKW.js +0 -1
  432. package/dist/assets/types-DyvtCprH-BcZYcgaq.js +0 -1
  433. package/dist/assets/uploadReceipts-Bkf_PaOH-qo0cBRii.js +0 -1
  434. package/dist/assets/url-DzcuVjHh.js +0 -6
  435. package/dist/assets/url-dmxYLsoS.js +0 -1
  436. package/dist/assets/useLongPress-GCK2COYQ-BC43nxgO.js +0 -1
  437. package/dist/assets/usp-line-BBd1wKwW-_aHpaGit.js +0 -1
@@ -1,10 +1,10 @@
1
- import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc as oo,ge as ao,gf as ro,V as t,gy as lo,ab as ln,cm as si,cn as sn,co as cn,aK as K,o as i,y as c,bz as Di,bm as so,dr as co,gg as uo,gr as dn,gm as Ti,aO as un,an as mn,gn as mo,gz as _e,ew as qe,e_ as ci,gA as zt,m as xt,gB as po,p as j,L as pn,ap as di,d as a,bv as ho,gp as go,cC as yo,eD as ui,gC as Bt,fd as Se,ff as $e,cE as mi,cO as ot,eh as bo,fc as hn,b as Rt,cH as gn,cG as it,cW as Te,ag as pi,gD as fo,fv as wo,cB as xo,aS as ji,fp as So,bu as $o,b8 as yn,c as vo,eg as Co,b5 as Mt,gh as ko,bS as bn,a as hi,B as fn,cY as wn,cf as Ft,eR as Io,b7 as Do,d0 as To,fk as jo,ak as gi,n as Oi,bQ as xn,a$ as Pi,cV as Oo,al as Po,cK as Sn,aL as Ro,gE as $n,gF as li,g7 as Ri,gG as Lt,cU as Lo,gb as Ao,bI as zo,cT as Bo}from"./index-Dm9r1f6s.js";import{a as $,S as Ct}from"./core-B-FNbYlu.js";import{n}from"./mui-DLNyBjYF.js";import{a as Mo}from"./liveblocks-BBTLClA6.js";import{Fo,bO as nt,bS as vn,bj as yi,bp as Cn,bn as Li,Fp as Ai}from"./zeni-epic-state-HWtMOH-U.js";import kn from"./InvoiceUploadSection-9DaovMq8-nY-DuZwJ.js";import{r as Eo,f as At,d as bt,p as bi,u as zi,h as Ie}from"./types-DyvtCprH-BcZYcgaq.js";import{I as No}from"./LabeledCreatableSingleSelectField-CnQsTYWe-BNKI3sBW.js";import{S as Wo}from"./CurrencySelectField-2hU3oIp_-C4bLV2kj.js";import{e as Uo}from"./BankAccountSection-BVZK5jmO-CjTZMznk.js";import{W as _o,A as Vo}from"./BankAccountWarningSection-DHdeDi15-M9LQMU5u.js";import{o as Ho}from"./radio-default-CiSgisfh-B6CtarQ8.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./utils-D1zwltK3.js";import"./lexical-DPEnH3HH.js";import"./AttachmentView-DgPySmB8-B41pIkR9.js";import"./uploadReceipts-Bkf_PaOH-qo0cBRii.js";const Me=(e,o)=>`${e}.${o}`,Bi={largeLabelWidth:new c(120,120,160),paddingBottom:new c(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:ke}},dateFormat:Ko,common:qo}=we.getLocalizedStrings(),Go=({lineIndex:e,mileage:o,classList:r,defaultCurrency:d,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:v,companyMileageConfigInfo:f,reimbursementId:l,classHierarchyList:k})=>{const w=Ae(),s=wt(),y=Bt(),S=`dashboard_${s.currentTenant?.companyId}`,O=ft(),{formState:{errors:I},getValues:P,trigger:q}=ot(),R=qo.strings.empty,D=P(Me(p,"distanceInMiles")),z=Bi.largeLabelWidth.value(w),ee=P(Me(p,"class")),ie=r.find(A=>A.classId===ee?.selectedOption),ne=Me(p,"class"),Z=Te(I,ne);$.useEffect(()=>{ee?.selectedOption!=null&&(ie?.isDeleted===!0||Z)&&q(ne)},[ee?.selectedOption,ie?.isDeleted,r,ne,q]);const G={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},F=A=>r.filter(oe=>oe.classId===A)[0]?.accountingClassNumber,Y=r.find(A=>A.classId===o.class),H={valueContainer:A=>({...A,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.transactionDate`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:m,label:{label:ke.transactionDate,width:z},style:{paddingBottom:Bi.paddingBottom.valuePx(w),width:"auto"},dateField:{name:Me(p,"transactionDate"),placeholder:ke.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Ko.visual.defaultInput,autoComplete:"off",maxDate:yi(),registerOptions:{required:!0,validate:A=>!!A}}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:v?"disabled":void 0,style:{width:"auto"},label:{label:ke.distanceInMiles,width:z},formattedTextField:{type:"number",name:Me(p,"distanceInMiles"),placeholder:ke.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.amount`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:"disabled",label:{label:ke.amount,width:z},formattedTextField:{type:"number",name:Me(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:it(ke.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:D!=null&&f?.mileageUnitAmount!=null?`${d.currencySymbol}${f?.mileageUnitAmount} per mile x ${D}`:void 0})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.memo`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(mi,{isDisabled:m,label:{label:ke.memo,width:z},style:{width:"auto"},text:{type:"text",name:Me(p,"memo"),placeholder:it(ke.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.class`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(li,{isLoading:!1,label:{label:ke.department,width:z},additionalLabelInfo:ie?.isDeleted===!0&&Te(I,Me(p,"class"))?ke.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Me(p,"class"),placeholder:it(ke.department),valueToId:A=>F(A),defaultValue:{selectedOption:Y?.classId,allOptions:qe(k,[])},style:{width:"100%"},customStyleConfig:H,registerOptions:{required:!0,validate:A=>A?.selectedOption==null?!1:r.find(oe=>oe.classId===A?.selectedOption)?.isDeleted===!0?ke.deletedClassError:!0}},style:{borderBottom:`1px solid ${O.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Me(p,"class"))})]})},kt=n.div`
1
+ import{aN as ri,d as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc as oo,ge as ao,gf as ro,V as t,gz as lo,ab as ln,cm as si,cn as sn,co as dn,aK as K,o as i,y as d,bz as Di,bm as so,dr as co,gg as uo,gr as cn,gm as Ti,aO as un,an as mn,gn as mo,gA as _e,ew as qe,e_ as di,gB as zt,m as xt,gC as po,p as j,L as pn,ap as ci,c as a,bv as ho,gp as go,cC as yo,eD as ui,gD as Bt,fd as Se,ff as $e,cE as mi,cO as ot,eh as bo,fc as hn,b as Rt,cH as gn,cG as it,cW as Te,ag as pi,gE as fo,fv as wo,cB as xo,aS as ji,fp as So,bu as $o,b8 as yn,u as vo,eg as Co,b5 as Mt,gh as ko,bS as bn,a as hi,B as fn,cY as wn,cf as Ft,eR as Io,b7 as Do,d0 as To,fk as jo,ak as gi,n as Oi,bQ as xn,a$ as Pi,cV as Oo,al as Po,cK as Sn,aL as Ro,gF as $n,gG as li,g7 as Ri,gH as Lt,cU as Lo,gb as Ao,bI as zo,cT as Bo}from"./index-DJLrbf0F.js";import{a as $,S as Ct}from"./core-CA3j8Axi.js";import{n}from"./mui-DpJXlk4t.js";import{a as Mo}from"./liveblocks-C2I4vRCJ.js";import{FD as Fo,bO as nt,bS as vn,bj as yi,bp as Cn,bn as Li,FE as Ai}from"./zeni-epic-state-CQt4n3Xe.js";import kn from"./InvoiceUploadSection-DomquLut-e92SA0tf.js";import{r as Eo,f as At,d as bt,p as bi,u as zi,h as Ie}from"./types-DyvtCprH-NFPm5TaG.js";import{I as No}from"./LabeledCreatableSingleSelectField-DKD0oEl8-gq-eDRMt.js";import{S as Wo}from"./CurrencySelectField-DOCEstMc-DZU689ma.js";import{e as Uo}from"./BankAccountSection-DRrNcA79-hP-Vs5m_.js";import{W as _o,A as Vo}from"./BankAccountWarningSection-Ub-gsfhE-CrMug0PW.js";import{o as Ho}from"./radio-default-CiSgisfh-HcY1qXLg.js";import"./sentry-BA4piVNf.js";import"./lottie-B7mXQ-R-.js";import"./analytics-CHPpxU3b.js";import"./recharts-BGdJnVo5.js";import"./utils-DUsHM-Uc.js";import"./lexical-dZFDzIA1.js";import"./AttachmentView-DSP80cjm-UNIl1Ai8.js";import"./uploadReceipts-CPw64UYa-DU-gRzOR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="edc60b10-3348-4d1a-acef-b7781e6f2ee0",e._sentryDebugIdIdentifier="sentry-dbid-edc60b10-3348-4d1a-acef-b7781e6f2ee0")}catch{}})();const Me=(e,o)=>`${e}.${o}`,Bi={largeLabelWidth:new d(120,120,160),paddingBottom:new d(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:ke}},dateFormat:Ko,common:qo}=we.getLocalizedStrings(),Go=({lineIndex:e,mileage:o,classList:r,defaultCurrency:c,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:v,companyMileageConfigInfo:f,reimbursementId:l,classHierarchyList:k})=>{const w=Ae(),s=wt(),y=Bt(),S=`dashboard_${s.currentTenant?.companyId}`,O=ft(),{formState:{errors:I},getValues:P,trigger:q}=ot(),R=qo.strings.empty,D=P(Me(p,"distanceInMiles")),z=Bi.largeLabelWidth.value(w),ee=P(Me(p,"class")),ie=r.find(A=>A.classId===ee?.selectedOption),ne=Me(p,"class"),Z=Te(I,ne);$.useEffect(()=>{ee?.selectedOption!=null&&(ie?.isDeleted===!0||Z)&&q(ne)},[ee?.selectedOption,ie?.isDeleted,r,ne,q]);const G={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},F=A=>r.filter(oe=>oe.classId===A)[0]?.accountingClassNumber,Y=r.find(A=>A.classId===o.class),H={valueContainer:A=>({...A,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.transactionDate`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:m,label:{label:ke.transactionDate,width:z},style:{paddingBottom:Bi.paddingBottom.valuePx(w),width:"auto"},dateField:{name:Me(p,"transactionDate"),placeholder:ke.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Ko.visual.defaultInput,autoComplete:"off",maxDate:yi(),registerOptions:{required:!0,validate:A=>!!A}}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:v?"disabled":void 0,style:{width:"auto"},label:{label:ke.distanceInMiles,width:z},formattedTextField:{type:"number",name:Me(p,"distanceInMiles"),placeholder:ke.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.amount`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:"disabled",label:{label:ke.amount,width:z},formattedTextField:{type:"number",name:Me(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:it(ke.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:D!=null&&f?.mileageUnitAmount!=null?`${c.currencySymbol}${f?.mileageUnitAmount} per mile x ${D}`:void 0})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.memo`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(mi,{isDisabled:m,label:{label:ke.memo,width:z},style:{width:"auto"},text:{type:"text",name:Me(p,"memo"),placeholder:it(ke.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.class`}),roomId:S,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...G,entityType:`reimbursement.details.${Ie("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(li,{isLoading:!1,label:{label:ke.department,width:z},additionalLabelInfo:ie?.isDeleted===!0&&Te(I,Me(p,"class"))?ke.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Me(p,"class"),placeholder:it(ke.department),valueToId:A=>F(A),defaultValue:{selectedOption:Y?.classId,allOptions:qe(k,[])},style:{width:"100%"},customStyleConfig:H,registerOptions:{required:!0,validate:A=>A?.selectedOption==null?!1:r.find(oe=>oe.classId===A?.selectedOption)?.isDeleted===!0?ke.deletedClassError:!0}},style:{borderBottom:`1px solid ${O.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Me(p,"class"))})]})},kt=n.div`
2
2
  display: flex;
3
3
  flex: 1;
4
4
  background-color: ${e=>e.theme.colors.grey3};
5
5
  min-height: 1px;
6
6
  max-height: 1px;
7
- `,Mi={amounWidth:new c(50,30),currencyWidth:new c(50,70)};function Jo({name:e,placeHolder:o,defaultValue:r,isDisabled:d,showAmountCurrencyError:p,style:C,allCurrencies:m}){const[v,f]=$.useState(!1),{getValues:l,formState:{errors:k}}=ot(),w=ft(),s=Ae(),y=d!=null,S=l(e),O=`${S?.amount} ${S?.currency?.selectedOption}`,I=Te(k,e)&&Lt(k,`${e}.amount`)!=null,P=Te(k,e)&&Lt(k,`${e}.currency`)!=null,q=p===!0?I||P:!1,R=!q&&v===!1;return $.useEffect(()=>{R===!1&&f(!0)},[R]),t.jsx(mn,{onClickAway:()=>y===!1&&!q&&f(!1),children:t.jsx(Yo,{style:C,isDisabled:y,tabIndex:R&&!y?0:void 0,onClick:()=>y===!1&&f(!0),"data-testid":K("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[S?.amount!=null?t.jsx(Fi,{className:"amount-field",isVisible:R,children:O}):t.jsx(Fi,{className:"amount-field amount-placeholder",isVisible:R,children:o?.name}),t.jsxs(Zo,{isVisible:!R,children:[t.jsx(Ao,{type:"number",name:`${e}.amount`,defaultValue:r?.amount,placeholder:o?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:D=>D!=null?D>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:d,style:{display:"flex",flexGrow:1,width:Mi.amounWidth.valuePercentage(s),cursor:"inherit"},bgColor:w.colors.background,isFieldError:I,shouldHighlightZeroAmount:!0}),R?null:t.jsx(Qo,{}),t.jsx(Wo,{name:`${e}.currency`,registerOptions:{validate:D=>D!=null&&D.selectedOption!=null},defaultValue:{allOptions:m.map(D=>({label:s==="small"?D.currencyCode:`${D.currencyCode} - ${D.currency}`,value:D.currencyCode,countryCode:D.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:w.colors.background},isDisabled:d,style:{width:Mi.currencyWidth.valuePercentage(s),flexGrow:1},isOptionRemovable:!1})]})]})})})}const Zo=n.div`
7
+ `,Mi={amounWidth:new d(50,30),currencyWidth:new d(50,70)};function Jo({name:e,placeHolder:o,defaultValue:r,isDisabled:c,showAmountCurrencyError:p,style:C,allCurrencies:m}){const[v,f]=$.useState(!1),{getValues:l,formState:{errors:k}}=ot(),w=ft(),s=Ae(),y=c!=null,S=l(e),O=`${S?.amount} ${S?.currency?.selectedOption}`,I=Te(k,e)&&Lt(k,`${e}.amount`)!=null,P=Te(k,e)&&Lt(k,`${e}.currency`)!=null,q=p===!0?I||P:!1,R=!q&&v===!1;return $.useEffect(()=>{R===!1&&f(!0)},[R]),t.jsx(mn,{onClickAway:()=>y===!1&&!q&&f(!1),children:t.jsx(Yo,{style:C,isDisabled:y,tabIndex:R&&!y?0:void 0,onClick:()=>y===!1&&f(!0),"data-testid":K("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[S?.amount!=null?t.jsx(Fi,{className:"amount-field",isVisible:R,children:O}):t.jsx(Fi,{className:"amount-field amount-placeholder",isVisible:R,children:o?.name}),t.jsxs(Zo,{isVisible:!R,children:[t.jsx(Ao,{type:"number",name:`${e}.amount`,defaultValue:r?.amount,placeholder:o?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:D=>D!=null?D>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:c,style:{display:"flex",flexGrow:1,width:Mi.amounWidth.valuePercentage(s),cursor:"inherit"},bgColor:w.colors.background,isFieldError:I,shouldHighlightZeroAmount:!0}),R?null:t.jsx(Qo,{}),t.jsx(Wo,{name:`${e}.currency`,registerOptions:{validate:D=>D!=null&&D.selectedOption!=null},defaultValue:{allOptions:m.map(D=>({label:s==="small"?D.currencyCode:`${D.currencyCode} - ${D.currency}`,value:D.currencyCode,countryCode:D.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:w.colors.background},isDisabled:c,style:{width:Mi.currencyWidth.valuePercentage(s),flexGrow:1},isOptionRemovable:!1})]})]})})})}const Zo=n.div`
8
8
  display: ${e=>e.isVisible?"flex":"none"};
9
9
  width: 100%;
10
10
  input {
@@ -37,7 +37,7 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
37
37
  &.amount-placeholder {
38
38
  color: ${e=>e.theme.colors.grey1};
39
39
  }
40
- `,We={width:new c(343,580,726),height:new c(a[6],a[6]),controlHeight:new c(a[6],a[6]),paddingTopBottom:new c(a[2],a[2]),marginRight:new c(a[2],a[2]),labelMarginLeft:new c(a[3],a[4]),labelMarginRight:new c(a[3],a[4]),labelMarginTop:new c(a[2],a[2])},In={infoLabel:new hi("extraSmallRegular","smallRegular")};function Xo({isDisabled:e,label:o,currencyAmountField:r,style:d,errorInfoLabel:p,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:v,additionalInfoLabel:f,showAdditionalInfoLabel:l=!0}){const k=Ae(),{formState:{errors:w}}=ot(),s=Te(w,r.name)&&Lt(w,`${r.name}.amount`)!=null,y=Te(w,r.name)&&Lt(w,`${r.name}.currency`)!=null,S=r.showAmountCurrencyError===!0?s||y:!1,O=s||y||S,I=()=>{if(C===!0)return t.jsx(oa,{children:t.jsx(xt,{size:"Small",start:!0})});if(l&&f||S){let P=null;return m===!0&&l&&f&&(P=t.jsx(xn,{placement:k==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(na,{children:v??""}),children:t.jsx(ra,{children:t.jsx(la,{})})})),t.jsxs(aa,{size:k,isError:S,hasToolTip:m,children:[P,f]})}};return t.jsxs(ea,{size:k,style:d,isDisabled:e!=null,isAmountError:s,isCurrencyError:y,"data-testid":K("labeled-currency-amount-field",r.name),children:[t.jsx(Lo,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:We.labelMarginLeft.value(k),marginRight:We.labelMarginRight.value(k),marginTop:We.labelMarginTop.value(k),width:o.width??"auto"}}),t.jsxs(ia,{labelWidth:o.width,children:[t.jsx(Jo,{...r,isDisabled:e,style:{flexGrow:1,height:We.controlHeight.value(k)}}),O?t.jsx(ta,{size:k,hasError:O,children:p}):null,I()]})]})}const ea=n.div`
40
+ `,We={width:new d(343,580,726),height:new d(a[6],a[6]),controlHeight:new d(a[6],a[6]),paddingTopBottom:new d(a[2],a[2]),marginRight:new d(a[2],a[2]),labelMarginLeft:new d(a[3],a[4]),labelMarginRight:new d(a[3],a[4]),labelMarginTop:new d(a[2],a[2])},In={infoLabel:new hi("extraSmallRegular","smallRegular")};function Xo({isDisabled:e,label:o,currencyAmountField:r,style:c,errorInfoLabel:p,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:v,additionalInfoLabel:f,showAdditionalInfoLabel:l=!0}){const k=Ae(),{formState:{errors:w}}=ot(),s=Te(w,r.name)&&Lt(w,`${r.name}.amount`)!=null,y=Te(w,r.name)&&Lt(w,`${r.name}.currency`)!=null,S=r.showAmountCurrencyError===!0?s||y:!1,O=s||y||S,I=()=>{if(C===!0)return t.jsx(oa,{children:t.jsx(xt,{size:"Small",start:!0})});if(l&&f||S){let P=null;return m===!0&&l&&f&&(P=t.jsx(xn,{placement:k==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(na,{children:v??""}),children:t.jsx(ra,{children:t.jsx(la,{})})})),t.jsxs(aa,{size:k,isError:S,hasToolTip:m,children:[P,f]})}};return t.jsxs(ea,{size:k,style:c,isDisabled:e!=null,isAmountError:s,isCurrencyError:y,"data-testid":K("labeled-currency-amount-field",r.name),children:[t.jsx(Lo,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:We.labelMarginLeft.value(k),marginRight:We.labelMarginRight.value(k),marginTop:We.labelMarginTop.value(k),width:o.width??"auto"}}),t.jsxs(ia,{labelWidth:o.width,children:[t.jsx(Jo,{...r,isDisabled:e,style:{flexGrow:1,height:We.controlHeight.value(k)}}),O?t.jsx(ta,{size:k,hasError:O,children:p}):null,I()]})]})}const ea=n.div`
41
41
  display: flex;
42
42
  flex-direction: row;
43
43
  align-items: flex-start;
@@ -146,13 +146,13 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
146
146
  width: ${i.sp3};
147
147
  height: ${i.sp3};
148
148
  color: inherit;
149
- `,ge=(e,o)=>`${e}.${o}`,Ot={largeLabelWidth:new c(120,120,160),smallLabelWidth:new c(85,85,160),paddingBottom:new c(a[3],a[2]),autoFillIconLeft:new c(-8,-24)},{dateFormat:sa,common:Dn,spendManagement:{reimbursement:{reimbursementDetail:te}}}=we.getLocalizedStrings(),{strings:{empty:le}}=Dn,ca=(e,o)=>{const r=e.slice(1);let d=!1;return r.forEach(p=>{p.account?.qboId!=null&&p.account?.qboId===o&&(d=!0)}),d},da=e=>e.charAt(0).toLowerCase()+e.slice(1),ua=({lineIndex:e,outOfPocket:o,accountList:r,classList:d,merchantList:p,isAddReimbursementDisabled:C,sectionId:m,isReimbursementCommentingEnabled:v,isDisabled:f,autoFields:l=[],accountsHierarchyList:k,classHierarchyList:w,reimbursementId:s,tentativeMerchantName:y,allCurrencies:S,uncategorizedAccounts:O})=>{const I=Ae(),P=wt(),q=Bt(),R=ft(),{formState:{errors:D},getValues:z,trigger:ee}=ot(),ie=z(ge(m,"class")),ne=d.find(h=>h.classId===ie?.selectedOption),Z=ge(m,"class"),G=Te(D,Z),F=z(ge(m,"account")),Y=r.find(h=>h.qboId===F?.selectedOption||h.accountId===F?.selectedOption),H=ge(m,"account"),A=Te(D,H);$.useEffect(()=>{ie?.selectedOption!=null&&(ne?.isDeleted===!0||G)&&ee(Z)},[ie?.selectedOption,ne?.isDeleted,d,Z,ee]),$.useEffect(()=>{F?.selectedOption!=null&&(Y?.isDeleted===!0||A)&&ee(H)},[F?.selectedOption,Y?.isDeleted,r,H,ee]);const oe=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!ca(o.recommendations,o.account),se=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,U=Ot.largeLabelWidth.value(I),ue=Ot.smallLabelWidth.value(I),Ee=p.map(h=>h.id??le),me={application:"dashboard",companyId:P.currentTenant?.companyId,tab:"reimbursement",entityId:s},ye=`dashboard_${P.currentTenant?.companyId}`,ce=h=>p.find(ae=>ae.id===h)?.name??h,je=r.find(h=>h.qboId===o.account),Oe=h=>[O.expense?.qboId,O.income?.qboId].includes(h),Pe=d.find(h=>h.classId===o.class),pe={valueContainer:h=>({...h,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},Re=h=>r.filter(ae=>ae.qboId===h)[0]?.qboId,he=h=>d.filter(ae=>ae.classId===h)[0]?.accountingClassNumber,ve=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",da(o?.recommendedAccount?.reason??le)),Ge=zt(k,o.recommendations);return t.jsxs(t.Fragment,{children:[y!=null||l.includes("merchant")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(No,{isDisabled:f!=null||C?"disabled":void 0,label:{label:te.merchant,width:U},style:{width:"auto"},creatableSingleSelectField:{name:ge(m,"merchant"),placeholder:te.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??le,allOptions:Ee},registerOptions:{required:!0,validate:h=>!!h.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:ce})}),t.jsx(It,{}),l.includes("transactionDate")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:f,label:{label:te.transactionDate,width:U},style:{paddingBottom:Ot.paddingBottom.valuePx(I),width:"auto"},dateField:{name:ge(m,"transactionDate"),placeholder:te.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:sa.visual.defaultInput,autoComplete:"off",maxDate:yi(),registerOptions:{required:!0,validate:h=>!!h}}})}),t.jsx(It,{}),l.includes("amount")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,isTwoLined:!0,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(Xo,{isDisabled:f!=null||C?"disabled":void 0,label:{label:te.amount,width:ue},style:{width:"auto"},currencyAmountField:{style:{height:i.sp6},name:`${m}.amount`,defaultValue:{amount:o.amount.amount,currencyCode:o.amount.currencyCode,currencySymbol:o.amount.currencySymbol},placeHolder:{amount:te.addAmount,name:te.addAmount},allCurrencies:S,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:te.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:!rn(o.homeCurrencyDetails,o.amount)&&o.amount.currencyCode!==Dn.currency.currencyCode&&o.homeCurrencyDetails?.amount!==0?`${Ro("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`:void 0})}),t.jsx(It,{}),l.includes("memo")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(mi,{isDisabled:f,label:{label:te.memo,width:U},style:{width:"auto"},text:{type:"text",name:ge(m,"memo"),placeholder:it(te.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(It,{}),l.includes("account")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.account`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("account",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(li,{label:{label:te.category,width:U},additionalLabelInfo:Y?.isDeleted===!0&&Te(D,ge(m,"account"))?te.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:oe||se,name:ge(m,"account"),placeholder:te.categoryPlaceholder,valueToId:h=>Re(h),defaultValue:{selectedOption:je?.qboId??je?.accountId,allOptions:Ge},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:r.find(ae=>ae.qboId===h?.selectedOption||ae.accountId===h?.selectedOption)?.isDeleted===!0?te.deletedCategoryError:!0}},disableCurrentOption:Oe,style:{borderBottom:`1px solid ${R.colors.grey3}`,minHeight:i.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:oe?{tooltipProps:{text:ve},label:{label:o.recommendedAccount?.accountName??le},checkBoxField:{name:ge(m,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:se?{label:{label:o.retainedAccount?.accountName??le},checkBoxField:{name:ge(m,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},ge(m,"account"))}),l.includes("class")?t.jsx(st,{children:t.jsx(dt,{windowSize:I,children:t.jsx(ct,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.class`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("class",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(li,{isLoading:!1,label:{label:te.department,width:U},additionalLabelInfo:ne?.isDeleted===!0&&Te(D,ge(m,"class"))?te.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:ge(m,"class"),placeholder:it(te.department),valueToId:h=>he(h),defaultValue:{selectedOption:Pe?.classId,allOptions:qe(w,[])},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:d.find(ae=>ae.classId===h?.selectedOption)?.isDeleted===!0?te.deletedClassError:!0}},style:{borderBottom:`1px solid ${R.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},ge(m,"class"))})]})},st=n.span`
149
+ `,ge=(e,o)=>`${e}.${o}`,Ot={largeLabelWidth:new d(120,120,160),smallLabelWidth:new d(85,85,160),paddingBottom:new d(a[3],a[2]),autoFillIconLeft:new d(-8,-24)},{dateFormat:sa,common:Dn,spendManagement:{reimbursement:{reimbursementDetail:te}}}=we.getLocalizedStrings(),{strings:{empty:le}}=Dn,da=(e,o)=>{const r=e.slice(1);let c=!1;return r.forEach(p=>{p.account?.qboId!=null&&p.account?.qboId===o&&(c=!0)}),c},ca=e=>e.charAt(0).toLowerCase()+e.slice(1),ua=({lineIndex:e,outOfPocket:o,accountList:r,classList:c,merchantList:p,isAddReimbursementDisabled:C,sectionId:m,isReimbursementCommentingEnabled:v,isDisabled:f,autoFields:l=[],accountsHierarchyList:k,classHierarchyList:w,reimbursementId:s,tentativeMerchantName:y,allCurrencies:S,uncategorizedAccounts:O})=>{const I=Ae(),P=wt(),q=Bt(),R=ft(),{formState:{errors:D},getValues:z,trigger:ee}=ot(),ie=z(ge(m,"class")),ne=c.find(h=>h.classId===ie?.selectedOption),Z=ge(m,"class"),G=Te(D,Z),F=z(ge(m,"account")),Y=r.find(h=>h.qboId===F?.selectedOption||h.accountId===F?.selectedOption),H=ge(m,"account"),A=Te(D,H);$.useEffect(()=>{ie?.selectedOption!=null&&(ne?.isDeleted===!0||G)&&ee(Z)},[ie?.selectedOption,ne?.isDeleted,c,Z,ee]),$.useEffect(()=>{F?.selectedOption!=null&&(Y?.isDeleted===!0||A)&&ee(H)},[F?.selectedOption,Y?.isDeleted,r,H,ee]);const oe=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!da(o.recommendations,o.account),se=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,U=Ot.largeLabelWidth.value(I),ue=Ot.smallLabelWidth.value(I),Ee=p.map(h=>h.id??le),me={application:"dashboard",companyId:P.currentTenant?.companyId,tab:"reimbursement",entityId:s},ye=`dashboard_${P.currentTenant?.companyId}`,de=h=>p.find(ae=>ae.id===h)?.name??h,je=r.find(h=>h.qboId===o.account),Oe=h=>[O.expense?.qboId,O.income?.qboId].includes(h),Pe=c.find(h=>h.classId===o.class),pe={valueContainer:h=>({...h,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},Re=h=>r.filter(ae=>ae.qboId===h)[0]?.qboId,he=h=>c.filter(ae=>ae.classId===h)[0]?.accountingClassNumber,ve=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",ca(o?.recommendedAccount?.reason??le)),Ge=zt(k,o.recommendations);return t.jsxs(t.Fragment,{children:[y!=null||l.includes("merchant")?t.jsx(st,{children:t.jsx(ct,{windowSize:I,children:t.jsx(dt,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(No,{isDisabled:f!=null||C?"disabled":void 0,label:{label:te.merchant,width:U},style:{width:"auto"},creatableSingleSelectField:{name:ge(m,"merchant"),placeholder:te.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??le,allOptions:Ee},registerOptions:{required:!0,validate:h=>!!h.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:de})}),t.jsx(It,{}),l.includes("transactionDate")?t.jsx(st,{children:t.jsx(ct,{windowSize:I,children:t.jsx(dt,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:f,label:{label:te.transactionDate,width:U},style:{paddingBottom:Ot.paddingBottom.valuePx(I),width:"auto"},dateField:{name:ge(m,"transactionDate"),placeholder:te.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:sa.visual.defaultInput,autoComplete:"off",maxDate:yi(),registerOptions:{required:!0,validate:h=>!!h}}})}),t.jsx(It,{}),l.includes("amount")?t.jsx(st,{children:t.jsx(ct,{windowSize:I,isTwoLined:!0,children:t.jsx(dt,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(Xo,{isDisabled:f!=null||C?"disabled":void 0,label:{label:te.amount,width:ue},style:{width:"auto"},currencyAmountField:{style:{height:i.sp6},name:`${m}.amount`,defaultValue:{amount:o.amount.amount,currencyCode:o.amount.currencyCode,currencySymbol:o.amount.currencySymbol},placeHolder:{amount:te.addAmount,name:te.addAmount},allCurrencies:S,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:te.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:!rn(o.homeCurrencyDetails,o.amount)&&o.amount.currencyCode!==Dn.currency.currencyCode&&o.homeCurrencyDetails?.amount!==0?`${Ro("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`:void 0})}),t.jsx(It,{}),l.includes("memo")?t.jsx(st,{children:t.jsx(ct,{windowSize:I,children:t.jsx(dt,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(mi,{isDisabled:f,label:{label:te.memo,width:U},style:{width:"auto"},text:{type:"text",name:ge(m,"memo"),placeholder:it(te.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(It,{}),l.includes("account")?t.jsx(st,{children:t.jsx(ct,{windowSize:I,children:t.jsx(dt,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.account`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("account",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(li,{label:{label:te.category,width:U},additionalLabelInfo:Y?.isDeleted===!0&&Te(D,ge(m,"account"))?te.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:oe||se,name:ge(m,"account"),placeholder:te.categoryPlaceholder,valueToId:h=>Re(h),defaultValue:{selectedOption:je?.qboId??je?.accountId,allOptions:Ge},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:r.find(ae=>ae.qboId===h?.selectedOption||ae.accountId===h?.selectedOption)?.isDeleted===!0?te.deletedCategoryError:!0}},disableCurrentOption:Oe,style:{borderBottom:`1px solid ${R.colors.grey3}`,minHeight:i.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:oe?{tooltipProps:{text:ve},label:{label:o.recommendedAccount?.accountName??le},checkBoxField:{name:ge(m,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:se?{label:{label:o.retainedAccount?.accountName??le},checkBoxField:{name:ge(m,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},ge(m,"account"))}),l.includes("class")?t.jsx(st,{children:t.jsx(ct,{windowSize:I,children:t.jsx(dt,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.class`}),roomId:ye,companyId:P.currentTenant?.companyId??le,companyName:P.currentTenant?.companyName??le,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...me,entityType:`reimbursement.details.${Ie("class",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(li,{isLoading:!1,label:{label:te.department,width:U},additionalLabelInfo:ne?.isDeleted===!0&&Te(D,ge(m,"class"))?te.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:ge(m,"class"),placeholder:it(te.department),valueToId:h=>he(h),defaultValue:{selectedOption:Pe?.classId,allOptions:qe(w,[])},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:c.find(ae=>ae.classId===h?.selectedOption)?.isDeleted===!0?te.deletedClassError:!0}},style:{borderBottom:`1px solid ${R.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},ge(m,"class"))})]})},st=n.span`
150
150
  position: relative;
151
- `,ct=n(ui)`
151
+ `,dt=n(ui)`
152
152
  color: ${e=>e.theme.colors.primary};
153
153
  width: ${i.sp3};
154
154
  height: ${i.sp3};
155
- `,dt=n.div`
155
+ `,ct=n.div`
156
156
  z-index: 2;
157
157
  left: ${e=>Ot.autoFillIconLeft.valuePx(e.windowSize)};
158
158
  position: absolute;
@@ -163,7 +163,7 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
163
163
  background-color: ${e=>e.theme.colors.grey3};
164
164
  min-height: 1px;
165
165
  max-height: 1px;
166
- `,et=(e,o)=>`${e}.${o}`,Ue={paddingTop:new c(a[5],a[4]),marginBottom:new c(a[3],a[3]),labelPaddingLeft:new c(a[3],a[4]),buttonWidth:new c(70,70),containerRightMargin:new c(a[3],a[8]),containerLeftMargin:new c(a[3],a[6]),deleteConfirmationTextMarginBottom:new c(a[2],a[0])},J=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,ma=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:d,lineIndex:p,accountList:C,classList:m,merchantList:v,hasFile:f,defaultCurrency:l,hasMultipleLineItems:k,fileRequiredLineIds:w,duplicateLineDetails:s,remiStatus:y,sectionId:S,isDisabled:O,isReimbursementCommentingEnabled:I,isAddReimbursementDisabled:P,style:q,autoFields:R=[],analytics:D,reimbursementId:z,tentativeMerchantName:ee,companyMileageConfigInfo:ie,uncategorizedAccounts:ne,removeDuplicateReimbursementForLine:Z,scrollToSection:G,onDuplicateLineClick:F,onRemoveReimbursement:Y,clearTentativeNameForLine:H,allCurrencies:A,accountsHierarchyList:oe,classHierarchyList:se})=>{const U=Ae(),ue=wt(),Ee=Bt(),me=we.getLocalizedStrings().common.strings.empty,ye={application:"dashboard",companyId:ue.currentTenant?.companyId,tab:"reimbursement",entityId:z},ce=`dashboard_${ue.currentTenant?.companyId}`,{getValues:je}=ot(),[Oe,Pe]=$.useState(!1),pe=je(et(S,"reimbursementType"));return t.jsxs(wa,{style:q,windowSize:U,children:[t.jsxs(ha,{hasFile:f,windowSize:U,showDeleteConfirmation:Oe,children:[t.jsx(Sa,{windowSize:U,children:k?`#${p+1} ${J.reimbursement}`:J.reimbursement}),Oe?t.jsxs(fa,{windowSize:U,children:[t.jsx(ba,{windowSize:U,children:J.deleteConfirmation}),t.jsxs(pa,{children:[t.jsx(Oi,{label:J.buttons.cancel,onClick:()=>Pe(!1),style:{width:Ue.buttonWidth.value(U),marginLeft:U==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":K("delete-remi-button",J.buttons.cancel)}),t.jsx(Oi,{label:J.buttons.remove,onClick:()=>{D?.trackReimbursementDeleteReimbursementLine(e.lineId,z),H?.(e.lineId??"1"),Pe(!1),Z(e.lineId),Y(p)},style:{width:Ue.buttonWidth.value(U)},size:"small",variant:"danger","data-testid":K("delete-remi-button",J.buttons.remove)})]})]}):k&&(d==="draft"||y==="rejected")?t.jsx(ga,{className:"deleteIconWrapper",windowSize:U,onClick:()=>Pe(!0),"data-testid":K("delete-remi-button",e.lineId),children:t.jsx(xn,{enterDelay:600,title:J.deleteReimbursement,placement:"top-end",children:t.jsx(ya,{})})}):null]}),w.includes(e.lineId)?t.jsx(dn,{title:J.missingReceipt,description:J.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs($a,{windowSize:U,children:[s?.duplicateLineId!=null?t.jsxs(xa,{children:[J.thisExpense," ",s.isDuplicateWithinTransaction?t.jsx(Ei,{"data-testid":K("view-duplicate-transaction-expense"),onClick:()=>(D?.trackReimbursementViewDuplicateExpense(!0,z),G(s.duplicateLineId)),children:J.viewOriginalExpense}):t.jsx(Ei,{"data-testid":K("view-duplicate-expense"),onClick:()=>{s.duplicateTransactionId!=null&&s.duplicateLineId!=null&&(D?.trackReimbursementViewDuplicateExpense(!1,z),F(s.duplicateTransactionId,s.duplicateLineId))},children:J.viewOriginalExpense})]}):null,t.jsx(Se,{isThreadAllowed:I&&z!=null,dashboardTabKey:$e({type:"details",key:pe===J.mileageKey?`${p}.mileage.reimbursementType`:`${p}.out_of_pocket.reimbursementType`}),roomId:ce,companyId:ue.currentTenant?.companyId??me,companyName:ue.currentTenant?.companyName??me,entityId:z,dashboardOptionType:"reimbursement",filterMetaData:{...ye,entityType:`reimbursement.details.${Ie("reimbursementType",p,pe===J.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:Ee?.sharedRef?.contentWrapperRef,style:{borderRadius:s?.duplicateLineId!=null?"0 0 0 0":`${i.sp2} ${i.sp2} 0 0`},children:t.jsxs(Ca,{isDisabled:O!=null,haveBorderRadius:s?.duplicateLineId==null,children:[t.jsx(Pi,{isDisabled:O!=null||P?"disabled":void 0,isContainerClickable:!0,label:{label:J.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ue.labelPaddingLeft.value(U),borderTopLeftRadius:"inherit"},showOutline:!(I&&z!=null),radioField:{name:et(S,"reimbursementType"),id:`${et(S,"reimbursementType")}.${J.outOfPocketKey}`,value:J.outOfPocketKey}}),t.jsx(va,{}),t.jsx(Pi,{isDisabled:O!=null||P?"disabled":void 0,isContainerClickable:!0,label:{label:J.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ue.labelPaddingLeft.value(U),borderTopRightRadius:"inherit"},showOutline:!(I&&z!=null),radioField:{name:et(S,"reimbursementType"),id:`${et(S,"reimbursementType")}.${J.mileageKey}`,value:J.mileageKey}})]})}),t.jsx(ka,{}),pe===J.outOfPocketKey?t.jsx(ua,{lineIndex:p,reimbursementId:z,uncategorizedAccounts:ne,isReimbursementCommentingEnabled:I,isDisabled:O,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?nt(e.outOfPocket.transactionDate.toDateString()):void 0,account:e.outOfPocket.account.selectedOption,isConvertedCurrencyLoading:o?.fetchState==="In-Progress",isRecommendationLoading:r==="In-Progress",homeCurrencyDetails:e.homeCurrencyConversions,class:e.outOfPocket.class.selectedOption,amount:{amount:e.outOfPocket.amount?.amount??0,currencyCode:e.outOfPocket.amount?.currencyCode??"USD",currencySymbol:e.outOfPocket.amount?.currencySymbol??"$"},memo:e.outOfPocket.memo,merchant:e.outOfPocket.merchant.selectedOption,recommendations:e.outOfPocket.recommendations,recommendedAccount:e.outOfPocket.recommendedAccount,isCategoryUpdateSelected:e.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:e.outOfPocket.isCategoryFirstTimeAutofilled,retainedAccount:e.outOfPocket.retainedAccount,isRetainedCategorySelected:e.outOfPocket.isRetainedCategorySelected},sectionId:et(S,"outOfPocket"),accountList:C,classList:m,autoFields:R,merchantList:v,tentativeMerchantName:ee,allCurrencies:A,isAddReimbursementDisabled:P,accountsHierarchyList:oe,classHierarchyList:se}):t.jsx(Go,{lineIndex:p,reimbursementId:z,isReimbursementCommentingEnabled:I,isDisabled:O,mileage:{transactionDate:e.mileage.transactionDate!=null?nt(e.mileage.transactionDate.toDateString()):void 0,class:e.mileage.class.selectedOption,distanceInMiles:e.mileage.distanceInMiles,amount:{amount:e.mileage.amount?.amount??0,currencyCode:e.mileage.amount?.currencyCode??"USD",currencySymbol:e.mileage.amount?.currencySymbol??"$"},memo:e.mileage.memo},classList:m,sectionId:et(S,"mileage"),companyMileageConfigInfo:ie,defaultCurrency:l,isAddReimbursementDisabled:P,classHierarchyList:se})]})]})},pa=n.div``,ha=n.div`
166
+ `,et=(e,o)=>`${e}.${o}`,Ue={paddingTop:new d(a[5],a[4]),marginBottom:new d(a[3],a[3]),labelPaddingLeft:new d(a[3],a[4]),buttonWidth:new d(70,70),containerRightMargin:new d(a[3],a[8]),containerLeftMargin:new d(a[3],a[6]),deleteConfirmationTextMarginBottom:new d(a[2],a[0])},J=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,ma=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:c,lineIndex:p,accountList:C,classList:m,merchantList:v,hasFile:f,defaultCurrency:l,hasMultipleLineItems:k,fileRequiredLineIds:w,duplicateLineDetails:s,remiStatus:y,sectionId:S,isDisabled:O,isReimbursementCommentingEnabled:I,isAddReimbursementDisabled:P,style:q,autoFields:R=[],analytics:D,reimbursementId:z,tentativeMerchantName:ee,companyMileageConfigInfo:ie,uncategorizedAccounts:ne,removeDuplicateReimbursementForLine:Z,scrollToSection:G,onDuplicateLineClick:F,onRemoveReimbursement:Y,clearTentativeNameForLine:H,allCurrencies:A,accountsHierarchyList:oe,classHierarchyList:se})=>{const U=Ae(),ue=wt(),Ee=Bt(),me=we.getLocalizedStrings().common.strings.empty,ye={application:"dashboard",companyId:ue.currentTenant?.companyId,tab:"reimbursement",entityId:z},de=`dashboard_${ue.currentTenant?.companyId}`,{getValues:je}=ot(),[Oe,Pe]=$.useState(!1),pe=je(et(S,"reimbursementType"));return t.jsxs(wa,{style:q,windowSize:U,children:[t.jsxs(ha,{hasFile:f,windowSize:U,showDeleteConfirmation:Oe,children:[t.jsx(Sa,{windowSize:U,children:k?`#${p+1} ${J.reimbursement}`:J.reimbursement}),Oe?t.jsxs(fa,{windowSize:U,children:[t.jsx(ba,{windowSize:U,children:J.deleteConfirmation}),t.jsxs(pa,{children:[t.jsx(Oi,{label:J.buttons.cancel,onClick:()=>Pe(!1),style:{width:Ue.buttonWidth.value(U),marginLeft:U==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":K("delete-remi-button",J.buttons.cancel)}),t.jsx(Oi,{label:J.buttons.remove,onClick:()=>{D?.trackReimbursementDeleteReimbursementLine(e.lineId,z),H?.(e.lineId??"1"),Pe(!1),Z(e.lineId),Y(p)},style:{width:Ue.buttonWidth.value(U)},size:"small",variant:"danger","data-testid":K("delete-remi-button",J.buttons.remove)})]})]}):k&&(c==="draft"||y==="rejected")?t.jsx(ga,{className:"deleteIconWrapper",windowSize:U,onClick:()=>Pe(!0),"data-testid":K("delete-remi-button",e.lineId),children:t.jsx(xn,{enterDelay:600,title:J.deleteReimbursement,placement:"top-end",children:t.jsx(ya,{})})}):null]}),w.includes(e.lineId)?t.jsx(cn,{title:J.missingReceipt,description:J.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs($a,{windowSize:U,children:[s?.duplicateLineId!=null?t.jsxs(xa,{children:[J.thisExpense," ",s.isDuplicateWithinTransaction?t.jsx(Ei,{"data-testid":K("view-duplicate-transaction-expense"),onClick:()=>(D?.trackReimbursementViewDuplicateExpense(!0,z),G(s.duplicateLineId)),children:J.viewOriginalExpense}):t.jsx(Ei,{"data-testid":K("view-duplicate-expense"),onClick:()=>{s.duplicateTransactionId!=null&&s.duplicateLineId!=null&&(D?.trackReimbursementViewDuplicateExpense(!1,z),F(s.duplicateTransactionId,s.duplicateLineId))},children:J.viewOriginalExpense})]}):null,t.jsx(Se,{isThreadAllowed:I&&z!=null,dashboardTabKey:$e({type:"details",key:pe===J.mileageKey?`${p}.mileage.reimbursementType`:`${p}.out_of_pocket.reimbursementType`}),roomId:de,companyId:ue.currentTenant?.companyId??me,companyName:ue.currentTenant?.companyName??me,entityId:z,dashboardOptionType:"reimbursement",filterMetaData:{...ye,entityType:`reimbursement.details.${Ie("reimbursementType",p,pe===J.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:Ee?.sharedRef?.contentWrapperRef,style:{borderRadius:s?.duplicateLineId!=null?"0 0 0 0":`${i.sp2} ${i.sp2} 0 0`},children:t.jsxs(Ca,{isDisabled:O!=null,haveBorderRadius:s?.duplicateLineId==null,children:[t.jsx(Pi,{isDisabled:O!=null||P?"disabled":void 0,isContainerClickable:!0,label:{label:J.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ue.labelPaddingLeft.value(U),borderTopLeftRadius:"inherit"},showOutline:!(I&&z!=null),radioField:{name:et(S,"reimbursementType"),id:`${et(S,"reimbursementType")}.${J.outOfPocketKey}`,value:J.outOfPocketKey}}),t.jsx(va,{}),t.jsx(Pi,{isDisabled:O!=null||P?"disabled":void 0,isContainerClickable:!0,label:{label:J.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ue.labelPaddingLeft.value(U),borderTopRightRadius:"inherit"},showOutline:!(I&&z!=null),radioField:{name:et(S,"reimbursementType"),id:`${et(S,"reimbursementType")}.${J.mileageKey}`,value:J.mileageKey}})]})}),t.jsx(ka,{}),pe===J.outOfPocketKey?t.jsx(ua,{lineIndex:p,reimbursementId:z,uncategorizedAccounts:ne,isReimbursementCommentingEnabled:I,isDisabled:O,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?nt(e.outOfPocket.transactionDate.toDateString()):void 0,account:e.outOfPocket.account.selectedOption,isConvertedCurrencyLoading:o?.fetchState==="In-Progress",isRecommendationLoading:r==="In-Progress",homeCurrencyDetails:e.homeCurrencyConversions,class:e.outOfPocket.class.selectedOption,amount:{amount:e.outOfPocket.amount?.amount??0,currencyCode:e.outOfPocket.amount?.currencyCode??"USD",currencySymbol:e.outOfPocket.amount?.currencySymbol??"$"},memo:e.outOfPocket.memo,merchant:e.outOfPocket.merchant.selectedOption,recommendations:e.outOfPocket.recommendations,recommendedAccount:e.outOfPocket.recommendedAccount,isCategoryUpdateSelected:e.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:e.outOfPocket.isCategoryFirstTimeAutofilled,retainedAccount:e.outOfPocket.retainedAccount,isRetainedCategorySelected:e.outOfPocket.isRetainedCategorySelected},sectionId:et(S,"outOfPocket"),accountList:C,classList:m,autoFields:R,merchantList:v,tentativeMerchantName:ee,allCurrencies:A,isAddReimbursementDisabled:P,accountsHierarchyList:oe,classHierarchyList:se}):t.jsx(Go,{lineIndex:p,reimbursementId:z,isReimbursementCommentingEnabled:I,isDisabled:O,mileage:{transactionDate:e.mileage.transactionDate!=null?nt(e.mileage.transactionDate.toDateString()):void 0,class:e.mileage.class.selectedOption,distanceInMiles:e.mileage.distanceInMiles,amount:{amount:e.mileage.amount?.amount??0,currencyCode:e.mileage.amount?.currencyCode??"USD",currencySymbol:e.mileage.amount?.currencySymbol??"$"},memo:e.mileage.memo},classList:m,sectionId:et(S,"mileage"),companyMileageConfigInfo:ie,defaultCurrency:l,isAddReimbursementDisabled:P,classHierarchyList:se})]})]})},pa=n.div``,ha=n.div`
167
167
  //when file is present and it's a small window, we don't have to show the title and delete icon. Delete icon will be displayed inside the invoice title, next to replace
168
168
  //https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
169
169
  display: ${e=>e.hasFile&&e.windowSize==="small"?"none":"flex"};
@@ -241,7 +241,7 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
241
241
  background-color: ${e=>e.theme.colors.grey3};
242
242
  min-height: 1px;
243
243
  max-height: 1px;
244
- `,Ia=(e,o)=>`${e}.${o}`,ut={labelWidth:new c(120,160,160),paddingBottom:new c(a[3],a[3]),paddingTop:new c(12,a[3]),marginBottom:new c(12,a[3]),containerRightMargin:new c(a[3],a[8]),containerLeftMargin:new c(a[3],a[6])},Tn=({isReimbursementCommentingEnabled:e,sectionId:o,isDisabled:r,reportTitle:d,reimbursementId:p,style:C})=>{const m=Ae(),v=wt(),f=Bt(),l=`dashboard_${v.currentTenant?.companyId}`,k=we.getLocalizedStrings(),w=k.spendManagement.reimbursement.reimbursementDetail,s=k.common.strings.empty,y=ut.labelWidth.value(m);return t.jsxs(Da,{style:C,windowSize:m,children:[t.jsx(ja,{windowSize:m,children:w.whatFor}),t.jsx(Ta,{children:t.jsx(Se,{isThreadAllowed:e&&p!=null,dashboardTabKey:$e({type:"details",key:"whatFor"}),roomId:l,companyId:v.currentTenant?.companyId??s,companyName:v.currentTenant?.companyName??s,entityId:p,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:v.currentTenant?.companyId,tab:"reimbursement",entityId:p,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:f?.sharedRef?.contentWrapperRef,style:{borderRadius:i.sp2},children:t.jsx(mi,{isDisabled:r,label:{label:w.reportTitle,width:y},text:{type:"text",name:Ia(o,"reportTitle"),placeholder:w.lunchWithClient,defaultValue:d,autoComplete:"off",options:{required:!0,validate:S=>!!S}},style:{width:"auto",borderRadius:i.sp2}})})})]})},Da=n.div`
244
+ `,Ia=(e,o)=>`${e}.${o}`,ut={labelWidth:new d(120,160,160),paddingBottom:new d(a[3],a[3]),paddingTop:new d(12,a[3]),marginBottom:new d(12,a[3]),containerRightMargin:new d(a[3],a[8]),containerLeftMargin:new d(a[3],a[6])},Tn=({isReimbursementCommentingEnabled:e,sectionId:o,isDisabled:r,reportTitle:c,reimbursementId:p,style:C})=>{const m=Ae(),v=wt(),f=Bt(),l=`dashboard_${v.currentTenant?.companyId}`,k=we.getLocalizedStrings(),w=k.spendManagement.reimbursement.reimbursementDetail,s=k.common.strings.empty,y=ut.labelWidth.value(m);return t.jsxs(Da,{style:C,windowSize:m,children:[t.jsx(ja,{windowSize:m,children:w.whatFor}),t.jsx(Ta,{children:t.jsx(Se,{isThreadAllowed:e&&p!=null,dashboardTabKey:$e({type:"details",key:"whatFor"}),roomId:l,companyId:v.currentTenant?.companyId??s,companyName:v.currentTenant?.companyName??s,entityId:p,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:v.currentTenant?.companyId,tab:"reimbursement",entityId:p,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:f?.sharedRef?.contentWrapperRef,style:{borderRadius:i.sp2},children:t.jsx(mi,{isDisabled:r,label:{label:w.reportTitle,width:y},text:{type:"text",name:Ia(o,"reportTitle"),placeholder:w.lunchWithClient,defaultValue:c,autoComplete:"off",options:{required:!0,validate:S=>!!S}},style:{width:"auto",borderRadius:i.sp2}})})})]})},Da=n.div`
245
245
  display: flex;
246
246
  flex-direction: column;
247
247
  padding-top: ${e=>ut.paddingTop.valuePx(e.windowSize)};
@@ -258,7 +258,7 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
258
258
  `,ja=n(Mt)`
259
259
  color: ${e=>e.theme.colors.primary};
260
260
  margin-bottom: ${e=>ut.marginBottom.valuePx(e.windowSize)};
261
- `,E={largeLabelWidth:new c(120,120,220),marginTop:new c(28,8),paymentToMarginTop:new c(0,a[4]),marginBottom:new c(a[5],a[4]),paymentToMarginBottom:new c(12,a[3]),totalMarginBottom:new c(a[3],a[3]),reimbursementSectionLeftMargin:new c(a[3],a[6]),reimbursementSectionRightMargin:new c(a[3],a[8]),invoiceSectionLeftMargin:new c(a[3],a[8]),invoiceSectionRightMargin:new c(a[3],a[6]),rightSectionWidth:new c(100,58),firstOrLastItemHeight:new c(390,760),itemHeight:new c(390,459),duplicateBannerWrapperMarginTop:new c(a[5],a[3]),duplicateBannerWrapperMarginRight:new c(a[3],a[8]),duplicateBannerWrapperMarginBottom:new c(a[5],a[3]),duplicateBannerWrapperMarginLeft:new c(a[3],a[6])},Oa={total:new hi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:V},billPay:{vendorCreation:{achDetails:Dt}}},common:{currency:{currencyCode:Tt}}}=we.getLocalizedStrings(),jn=e=>{let o=0,r=Tt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const d=e;o=d.outOfPocket.amount??0,r=d.outOfPocket.currencyCode??Tt}else{const d=e;o=d.outOfPocket.amount?.amount??0,r=d.outOfPocket.amount?.currencyCode??Tt}return(e.homeCurrencyConversions?.currencyCode??Tt)!==r&&(o=e.homeCurrencyConversions?.amount??0),o},Pa=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:r,createDate:d,scheduleDate:p,paymentDate:C,hasDuplicateLine:m,approvedDate:v,isFirstOrLastListItem:f,index:l,reimbursementSectionRef:k,showSkipAutoFill:w,lineData:s,currencyConversionState:y,authParams:S,uploadInvoiceEndPoint:O,accountList:I,classList:P,merchantList:q,remiStage:R,autoFieldsByLineId:D,isReimbursementCommentingEnabled:z,isAutoFieldsExist:ee,totalAmount:ie,showTotalAmountLoader:ne,totalNumberOfLines:Z,defaultCurrency:G,bankAccounts:F,fileRequiredLineIds:Y,isAddReimbursementDisabled:H,duplicateLineByLineId:A,remiStatus:oe,file:se,uncategorizedAccounts:U,reportTitle:ue,recommendationFetchState:Ee,tentativeMerchantName:me,paymentTo:ye,analytics:ce,companyMileageConfigInfo:je,loggedInUserDepartmentId:Oe,isSignedInUserReimbursementCreator:Pe,setShowBankAccountPage:pe,setRefByLineId:Re,setCurrentLineIdForUpload:he,onDuplicateLineClick:ve,setUploadedReceiptPayload:Ge,removeDuplicateReimbursementForLine:h,onReceiptsUpload:ae,scrollToSection:at,onRemoveReimbursement:Ve,onAddReimbursement:Le,clearTentativeNameForLine:Je,onReplaceClick:ze,onDeleteBankAccount:He,updateInvoiceUploadFetchState:Ke,removeFileFromLine:Ze,allCurrencies:Ye,accountsHierarchyList:re,classHierarchyList:rt})=>{const{formState:{errors:mt}}=ot(),Qe=$.useRef(null);$.useEffect(()=>(Re(B=>({...B,[`L${s.lineId}`]:Qe.current})),()=>{Re(B=>({...B,[`L${s.lineId}`]:null}))}),[s.lineId,Re]);const _=Ae(),pt=R==="draft"?V.newReimbursementTitle:V.editReimbursementTitle,N=E.largeLabelWidth.value(_),de=B=>B.outOfPocket.account.selectedOption==null&&(B.outOfPocket.amount==null||B.outOfPocket.amount.amount==0)&&(B.outOfPocket.class.selectedOption==null||B.outOfPocket.class.selectedOption===Oe)&&(B.outOfPocket.memo===""||B.outOfPocket.memo==null)&&B.outOfPocket.merchant.selectedOption==null&&B.outOfPocket.transactionDate==null,St=F.map(B=>B.bankAccountId),Ce=s.reimbursementType===V.outOfPocketKey&&jn(s)>=75&&se==null;return t.jsxs(Za,{ref:k,windowSize:_,children:[t.jsx(Ya,{ref:B=>{B!=null&&(Qe.current=B)},windowSize:_,bottomSeperator:Z!==1,showSkipAutoFill:w,isFirstItem:l===0,children:t.jsx(kn,{customError:Ce?V.requireReceipt:void 0,analytics:ce,showAutofill:!1,uploadInvoiceEndPoint:O,authParams:S,entityId:H?"":void 0,file:se,style:{width:"auto",padding:0,height:f?E.firstOrLastItemHeight.valuePx(_):E.itemHeight.valuePx(_),margin:_==="small"?i.sp0:void 0},updateInvoiceUploadFetchState:Ke,onInvoiceUpload:B=>{s.reimbursementType===V.outOfPocketKey&&!de(s)?(he(Number(s.lineId)),Ge(B),ze?.()):ae(B,Number(s.lineId),!0)},dropFilePlaceholder:{upload:V.dropReceipt.upload,receipt:V.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!H,pdfTitle:Z>1?`#${l+1} Receipt`:"Receipt",onDeleteClick:()=>{Ke?.("In-Progress"),setTimeout(()=>Ze?.(Number(s.lineId)))},onReplaceClick:()=>{he(Number(s.lineId)),ze?.()},allowMultiFiles:Z===l+1,type:"reimbursement"})}),t.jsxs(Ja,{windowSize:_,children:[l===0&&_!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(Na,{children:pt}),t.jsx(Qa,{children:t.jsx(ko,{progressSectionObj:o,createDate:d,paymentDate:C,scheduleDate:p,approvedDate:v,isBillUploaded:r!=null?!0:e==="Completed"})}),ee&&t.jsxs(Aa,{children:[t.jsx(Ra,{}),t.jsx(Ea,{children:V.banner})]}),m&&t.jsxs(za,{size:_,children:[t.jsx(La,{}),t.jsxs(Ma,{children:[t.jsx(Ba,{children:V.thereSeems}),t.jsx(Fa,{children:V.pleaseFind})]})]}),t.jsx(Tn,{isReimbursementCommentingEnabled:z,sectionId:At,reportTitle:ue,reimbursementId:r})]}):null,t.jsx(ma,{analytics:ce,reimbursementId:r,onDuplicateLineClick:ve,uncategorizedAccounts:U,sectionId:`${bi}.${l}`,scrollToSection:at,lineIndex:l,lineData:s,accountList:I,classList:P,merchantList:q,autoFields:s.lineId!=null?D[s.lineId]:[],currencyConversionState:y,recommendationFetchState:Ee,onRemoveReimbursement:Ve,hasMultipleLineItems:Z>1,clearTentativeNameForLine:Je,tentativeMerchantName:me,hasFile:se!=null,companyMileageConfigInfo:je,defaultCurrency:G,remiStage:R,remiStatus:oe,fileRequiredLineIds:Y,allCurrencies:Ye,isReimbursementCommentingEnabled:z,isAddReimbursementDisabled:H,accountsHierarchyList:re,classHierarchyList:rt,duplicateLineDetails:A[s.lineId],removeDuplicateReimbursementForLine:h}),Z!==1&&Z===l+1&&t.jsxs(t.Fragment,{children:[t.jsxs(Ua,{windowSize:_,children:[t.jsx(_a,{children:V.total}),ne?t.jsx(Va,{windowSize:_,children:t.jsx(Ha,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:Cn(ie,"USD","$"),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]}),t.jsxs(qa,{windowSize:_,onClick:()=>{H===!1&&Le()},isDisabled:H,"data-testid":K("add-reimbursement-row"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:V.addReimbursement})]}),Pe?t.jsxs(t.Fragment,{children:[t.jsx(Wa,{windowSize:_,children:V.receivePaymentTo}),t.jsx(Ka,{windowSize:_,shouldDisplay:F.length>0,children:t.jsx(gn,{label:{label:V.yourBankAccount,width:N},style:{width:"auto"},singleSelectField:{singleSelect:{name:bt,placeholder:it(V.yourBankAccount),showValueEyeIcon:!H,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:He,getTooltipInfo:B=>On(F,B),onClickCreateBankAccount:()=>pe(!0),getLabelForId:B=>Rn(F,B),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:H?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:ye,allOptions:St},registerOptions:{required:!0,validate:B=>!!B.selectedOption}},isFunctional:!0})}),t.jsxs(Ga,{shouldDisplay:F.length===0,windowSize:_,hasError:Te(mt,bt),onClick:()=>{H===!1&&pe(!0)},isDisabled:H,"data-testid":K("remi-add-bank-account-container"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:V.addBankAccount})]})]}):null]})]})]})},On=(e,o)=>{const r=Pn(e,o);return r==null?`${Dt.bankRoutingNumber} ${V.emptyValue}
261
+ `,E={largeLabelWidth:new d(120,120,220),marginTop:new d(28,8),paymentToMarginTop:new d(0,a[4]),marginBottom:new d(a[5],a[4]),paymentToMarginBottom:new d(12,a[3]),totalMarginBottom:new d(a[3],a[3]),reimbursementSectionLeftMargin:new d(a[3],a[6]),reimbursementSectionRightMargin:new d(a[3],a[8]),invoiceSectionLeftMargin:new d(a[3],a[8]),invoiceSectionRightMargin:new d(a[3],a[6]),rightSectionWidth:new d(100,58),firstOrLastItemHeight:new d(390,760),itemHeight:new d(390,459),duplicateBannerWrapperMarginTop:new d(a[5],a[3]),duplicateBannerWrapperMarginRight:new d(a[3],a[8]),duplicateBannerWrapperMarginBottom:new d(a[5],a[3]),duplicateBannerWrapperMarginLeft:new d(a[3],a[6])},Oa={total:new hi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:V},billPay:{vendorCreation:{achDetails:Dt}}},common:{currency:{currencyCode:Tt}}}=we.getLocalizedStrings(),jn=e=>{let o=0,r=Tt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const c=e;o=c.outOfPocket.amount??0,r=c.outOfPocket.currencyCode??Tt}else{const c=e;o=c.outOfPocket.amount?.amount??0,r=c.outOfPocket.amount?.currencyCode??Tt}return(e.homeCurrencyConversions?.currencyCode??Tt)!==r&&(o=e.homeCurrencyConversions?.amount??0),o},Pa=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:r,createDate:c,scheduleDate:p,paymentDate:C,hasDuplicateLine:m,approvedDate:v,isFirstOrLastListItem:f,index:l,reimbursementSectionRef:k,showSkipAutoFill:w,lineData:s,currencyConversionState:y,authParams:S,uploadInvoiceEndPoint:O,accountList:I,classList:P,merchantList:q,remiStage:R,autoFieldsByLineId:D,isReimbursementCommentingEnabled:z,isAutoFieldsExist:ee,totalAmount:ie,showTotalAmountLoader:ne,totalNumberOfLines:Z,defaultCurrency:G,bankAccounts:F,fileRequiredLineIds:Y,isAddReimbursementDisabled:H,duplicateLineByLineId:A,remiStatus:oe,file:se,uncategorizedAccounts:U,reportTitle:ue,recommendationFetchState:Ee,tentativeMerchantName:me,paymentTo:ye,analytics:de,companyMileageConfigInfo:je,loggedInUserDepartmentId:Oe,isSignedInUserReimbursementCreator:Pe,setShowBankAccountPage:pe,setRefByLineId:Re,setCurrentLineIdForUpload:he,onDuplicateLineClick:ve,setUploadedReceiptPayload:Ge,removeDuplicateReimbursementForLine:h,onReceiptsUpload:ae,scrollToSection:at,onRemoveReimbursement:Ve,onAddReimbursement:Le,clearTentativeNameForLine:Je,onReplaceClick:ze,onDeleteBankAccount:He,updateInvoiceUploadFetchState:Ke,removeFileFromLine:Ze,allCurrencies:Ye,accountsHierarchyList:re,classHierarchyList:rt})=>{const{formState:{errors:mt}}=ot(),Qe=$.useRef(null);$.useEffect(()=>(Re(B=>({...B,[`L${s.lineId}`]:Qe.current})),()=>{Re(B=>({...B,[`L${s.lineId}`]:null}))}),[s.lineId,Re]);const _=Ae(),pt=R==="draft"?V.newReimbursementTitle:V.editReimbursementTitle,N=E.largeLabelWidth.value(_),ce=B=>B.outOfPocket.account.selectedOption==null&&(B.outOfPocket.amount==null||B.outOfPocket.amount.amount==0)&&(B.outOfPocket.class.selectedOption==null||B.outOfPocket.class.selectedOption===Oe)&&(B.outOfPocket.memo===""||B.outOfPocket.memo==null)&&B.outOfPocket.merchant.selectedOption==null&&B.outOfPocket.transactionDate==null,St=F.map(B=>B.bankAccountId),Ce=s.reimbursementType===V.outOfPocketKey&&jn(s)>=75&&se==null;return t.jsxs(Za,{ref:k,windowSize:_,children:[t.jsx(Ya,{ref:B=>{B!=null&&(Qe.current=B)},windowSize:_,bottomSeperator:Z!==1,showSkipAutoFill:w,isFirstItem:l===0,children:t.jsx(kn,{customError:Ce?V.requireReceipt:void 0,analytics:de,showAutofill:!1,uploadInvoiceEndPoint:O,authParams:S,entityId:H?"":void 0,file:se,style:{width:"auto",padding:0,height:f?E.firstOrLastItemHeight.valuePx(_):E.itemHeight.valuePx(_),margin:_==="small"?i.sp0:void 0},updateInvoiceUploadFetchState:Ke,onInvoiceUpload:B=>{s.reimbursementType===V.outOfPocketKey&&!ce(s)?(he(Number(s.lineId)),Ge(B),ze?.()):ae(B,Number(s.lineId),!0)},dropFilePlaceholder:{upload:V.dropReceipt.upload,receipt:V.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!H,pdfTitle:Z>1?`#${l+1} Receipt`:"Receipt",onDeleteClick:()=>{Ke?.("In-Progress"),setTimeout(()=>Ze?.(Number(s.lineId)))},onReplaceClick:()=>{he(Number(s.lineId)),ze?.()},allowMultiFiles:Z===l+1,type:"reimbursement"})}),t.jsxs(Ja,{windowSize:_,children:[l===0&&_!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(Na,{children:pt}),t.jsx(Qa,{children:t.jsx(ko,{progressSectionObj:o,createDate:c,paymentDate:C,scheduleDate:p,approvedDate:v,isBillUploaded:r!=null?!0:e==="Completed"})}),ee&&t.jsxs(Aa,{children:[t.jsx(Ra,{}),t.jsx(Ea,{children:V.banner})]}),m&&t.jsxs(za,{size:_,children:[t.jsx(La,{}),t.jsxs(Ma,{children:[t.jsx(Ba,{children:V.thereSeems}),t.jsx(Fa,{children:V.pleaseFind})]})]}),t.jsx(Tn,{isReimbursementCommentingEnabled:z,sectionId:At,reportTitle:ue,reimbursementId:r})]}):null,t.jsx(ma,{analytics:de,reimbursementId:r,onDuplicateLineClick:ve,uncategorizedAccounts:U,sectionId:`${bi}.${l}`,scrollToSection:at,lineIndex:l,lineData:s,accountList:I,classList:P,merchantList:q,autoFields:s.lineId!=null?D[s.lineId]:[],currencyConversionState:y,recommendationFetchState:Ee,onRemoveReimbursement:Ve,hasMultipleLineItems:Z>1,clearTentativeNameForLine:Je,tentativeMerchantName:me,hasFile:se!=null,companyMileageConfigInfo:je,defaultCurrency:G,remiStage:R,remiStatus:oe,fileRequiredLineIds:Y,allCurrencies:Ye,isReimbursementCommentingEnabled:z,isAddReimbursementDisabled:H,accountsHierarchyList:re,classHierarchyList:rt,duplicateLineDetails:A[s.lineId],removeDuplicateReimbursementForLine:h}),Z!==1&&Z===l+1&&t.jsxs(t.Fragment,{children:[t.jsxs(Ua,{windowSize:_,children:[t.jsx(_a,{children:V.total}),ne?t.jsx(Va,{windowSize:_,children:t.jsx(Ha,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:Cn(ie,"USD","$"),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]}),t.jsxs(qa,{windowSize:_,onClick:()=>{H===!1&&Le()},isDisabled:H,"data-testid":K("add-reimbursement-row"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:V.addReimbursement})]}),Pe?t.jsxs(t.Fragment,{children:[t.jsx(Wa,{windowSize:_,children:V.receivePaymentTo}),t.jsx(Ka,{windowSize:_,shouldDisplay:F.length>0,children:t.jsx(gn,{label:{label:V.yourBankAccount,width:N},style:{width:"auto"},singleSelectField:{singleSelect:{name:bt,placeholder:it(V.yourBankAccount),showValueEyeIcon:!H,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:He,getTooltipInfo:B=>On(F,B),onClickCreateBankAccount:()=>pe(!0),getLabelForId:B=>Rn(F,B),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:H?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:ye,allOptions:St},registerOptions:{required:!0,validate:B=>!!B.selectedOption}},isFunctional:!0})}),t.jsxs(Ga,{shouldDisplay:F.length===0,windowSize:_,hasError:Te(mt,bt),onClick:()=>{H===!1&&pe(!0)},isDisabled:H,"data-testid":K("remi-add-bank-account-container"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:V.addBankAccount})]})]}):null]})]})]})},On=(e,o)=>{const r=Pn(e,o);return r==null?`${Dt.bankRoutingNumber} ${V.emptyValue}
262
262
  ${Dt.bankAccountNumber} ${V.emptyValue}`:`${Dt.bankRoutingNumber} ${r.bankRoutingNumberAch??V.emptyValue}, ${r.bankName??V.emptyValue}
263
263
  ${Dt.bankAccountNumber} ${r.bankAccountNumber??V.emptyValue}`},Pn=(e,o)=>e.find(r=>r.bankAccountId===o),Rn=(e,o)=>{const r=Pn(e,o);return r==null?V.selectBankAccount:r.bankAccountName?r.bankAccountName:r.maskedAccountNumber?r.maskedAccountNumber:r.bankName&&r.bankAccountNumber?`${r.bankName} ${V.accountNameConnector}${r.bankAccountNumber.slice(r.bankAccountNumber.length-4)}`:V.selectBankAccount},Ra=n(ui)`
264
264
  color: ${e=>e.theme.colors.primary};
@@ -407,7 +407,7 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
407
407
  margin-top: ${e=>E.marginTop.valuePx(e.windowSize)};
408
408
  `,Qa=n.div`
409
409
  padding: ${i.sp2} ${i.sp8} ${i.sp0} ${i.sp6};
410
- `,Xa={total:new hi("largeMedium","h6Medium")},Q={largeLabelWidth:new c(120,120,220),marginBottom:new c(a[5],a[4]),addBankAccountMarginBottom:new c(a[5],a[5]),marginTop:new c(a[0],78),paymentToMarginTop:new c(0,a[4]),totalMarginBottom:new c(a[3],a[3]),rightMargin:new c(a[3],a[8]),leftMargin:new c(a[3],a[6]),paymentToMarginBottom:new c(12,a[3])},tt=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,er=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:d,showSkipAutoFill:p,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,totalAmount:v,defaultCurrency:f,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:w,companyMileageConfigInfo:s,analytics:y,reimbursementId:S,currencyConversionStatus:O,setShowSkipAutoFill:I,setShowBankAccountPage:P,removeDuplicateReimbursementForLine:q,onReceiptsUpload:R,setCurrentLineIdForUpload:D,onDuplicateLineClick:z,setUploadedReceiptPayload:ee,removeFileFromLine:ie,onReplaceClick:ne,updateInvoiceUploadFetchState:Z,clearTentativeNameForLine:G,onDeleteBankAccount:F,uncategorizedAccounts:Y,isSignedInUserReimbursementCreator:H,duplicateLineByLineId:A,showTotalAmountLoader:oe,scrollContainerRef:se})=>{const{control:U,formState:{errors:ue}}=ot(),{fields:Ee,append:me,remove:ye}=bo({name:bi,control:U}),ce=Ee,je=$.useRef(null),Oe=N=>{setTimeout(()=>{ye(N)})},{tentativeMerchantNameByLineId:Pe,remiStage:pe,remiStatus:Re}=e,he=!H||pe==="pending_approval"&&Re!=="rejected"&&o||pe==="pending_approval"&&Re==="rejected",ve=he?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:k,Ge=ve.map(N=>N.bankAccountId),h=Ae(),ae=Q.largeLabelWidth.value(h),at=e.whatForSection.reportTitle,Ve=e.accountList.accounts,Le=e.accountsHierarchyList,Je=e.classHierarchyList,ze=e.classList.classes,He=e.merchantList.merchants,Ke=e.addRemiAutoFieldsByLineId,Ze=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(N=>Number(N)),0),Ye=()=>{const N=ce[ce.length-1],de=Ln(ce.length,Number(N.lineId)>Ze?String(Number(N.lineId)+1):String(Ze+1),Le,Je,He,f,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{me(de,{shouldFocus:!1})}),D(Number(de.lineId)),I(!0),setTimeout(()=>zi(je.current,se?.current),50)},[re,rt]=$.useState({}),mt=$.useCallback(N=>{const de=re[`L${N}`];de!=null&&zi(de,se?.current)},[re,se]),Qe=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,_=e.reimbursementInfo?.paymentDate!=null?nt(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,pt=e.reimbursementInfo?.expectedDepositDate??_;return t.jsxs(or,{windowSize:h,showSkipAutoFill:p,children:[ce.map((N,de)=>t.jsx(Pa,{removeDuplicateReimbursementForLine:q,onDuplicateLineClick:z,scrollToSection:mt,setRefByLineId:rt,duplicateLineByLineId:A,reimbursementId:S,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:Y,progressSectionObj:Qe,createDate:e.createTime,paymentDate:pt,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:ce.length-1===de||de===0,index:de,reimbursementSectionRef:je,remiStage:pe,remiStatus:Re,authParams:r,file:N.file,uploadInvoiceEndPoint:d,showSkipAutoFill:p,lineData:N,currencyConversionState:O[N.lineId],recommendationFetchState:e.lineDetailSection[N.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:D,setUploadedReceiptPayload:ee,onReplaceClick:ne,onReceiptsUpload:R,removeFileFromLine:ie,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,reportTitle:at,accountList:Ve,classList:ze,merchantList:He,autoFieldsByLineId:Ke,onRemoveReimbursement:Oe,onAddReimbursement:Ye,totalAmount:v,showTotalAmountLoader:oe,hasDuplicateLine:l,totalNumberOfLines:ce.length,updateInvoiceUploadFetchState:Z,clearTentativeNameForLine:G,tentativeMerchantName:Pe[N.lineId],companyMileageConfigInfo:s,defaultCurrency:f,setShowBankAccountPage:P,paymentTo:e.paymentTo,bankAccounts:ve,onDeleteBankAccount:F,analytics:y,fileRequiredLineIds:w,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:he,accountsHierarchyList:Le,classHierarchyList:Je,isSignedInUserReimbursementCreator:H},N.lineId)),ce.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(Yt,{children:[h!=="small"?t.jsx(Jt,{windowSize:h}):null,t.jsx(Zt,{windowSize:h,children:t.jsxs(ar,{windowSize:h,children:[t.jsx(rr,{children:tt.total}),oe?t.jsx(sr,{windowSize:h,children:t.jsx(cr,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:Cn(v,Li.currencyCode,Li.currencySymbol),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]})})]}),t.jsxs(Yt,{children:[h!=="small"?t.jsx(Jt,{windowSize:h}):null,t.jsx(Zt,{windowSize:h,children:t.jsxs(dr,{windowSize:h,onClick:()=>{he===!1&&Ye()},isDisabled:he,"data-testid":K("add-reimbursement-container"),children:[t.jsx(_i,{}),t.jsx(Ui,{children:tt.addReimbursement})]})})]}),t.jsxs(Yt,{children:[h!=="small"?t.jsx(Jt,{windowSize:h}):null,H?t.jsxs(Zt,{windowSize:h,children:[t.jsx(lr,{windowSize:h,children:tt.receivePaymentTo}),t.jsx(nr,{windowSize:h,shouldDisplay:ve.length>0,children:t.jsx(gn,{label:{label:tt.yourBankAccount,width:ae},style:{width:"auto"},singleSelectField:{singleSelect:{name:bt,placeholder:it(tt.yourBankAccount),showValueEyeIcon:!he,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:F,getTooltipInfo:N=>On(ve,N),onClickCreateBankAccount:()=>P(!0),getLabelForId:N=>Rn(ve,N),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:he?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Ge},registerOptions:{required:!0,validate:N=>!!N.selectedOption}},isFunctional:!0})}),t.jsxs(ur,{shouldDisplay:ve.length===0,windowSize:h,onClick:()=>{he===!1&&P(!0)},hasError:Te(ue,bt),isDisabled:he,"data-testid":K("remi-add-bank-account-container"),children:[t.jsx(_i,{}),t.jsx(Ui,{children:tt.addBankAccount})]})]}):null]})]})]})},Ln=(e,o,r,d,p,C,m,v)=>{const f=tr(r,d,p,C,m,v);return{lineIndex:e,lineId:o,reimbursementType:tt.outOfPocketKey,file:void 0,outOfPocket:f,mileage:ir(d,C,v)}},tr=(e,o,r,d,p,C)=>({transactionDate:void 0,class:{allOptions:_e(qe(o,[])),selectedOption:C},account:{allOptions:_e(zt(e,[])),selectedOption:void 0},amount:{amount:0,currencyCode:d.currencyCode,currencySymbol:d.currencySymbol,currency:{allOptions:p.map(m=>({label:`${m.currencyCode} - ${m.currency}`,value:m.currencyCode,countryCode:ci(m.countryCode)})),selectedOption:d.currencyCode??we.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(m=>m.id).filter(m=>!!m),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),ir=(e,o,r)=>({transactionDate:void 0,class:{allOptions:_e(qe(e,[])),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),nr=n.div`
410
+ `,Xa={total:new hi("largeMedium","h6Medium")},Q={largeLabelWidth:new d(120,120,220),marginBottom:new d(a[5],a[4]),addBankAccountMarginBottom:new d(a[5],a[5]),marginTop:new d(a[0],78),paymentToMarginTop:new d(0,a[4]),totalMarginBottom:new d(a[3],a[3]),rightMargin:new d(a[3],a[8]),leftMargin:new d(a[3],a[6]),paymentToMarginBottom:new d(12,a[3])},tt=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,er=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:c,showSkipAutoFill:p,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,totalAmount:v,defaultCurrency:f,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:w,companyMileageConfigInfo:s,analytics:y,reimbursementId:S,currencyConversionStatus:O,setShowSkipAutoFill:I,setShowBankAccountPage:P,removeDuplicateReimbursementForLine:q,onReceiptsUpload:R,setCurrentLineIdForUpload:D,onDuplicateLineClick:z,setUploadedReceiptPayload:ee,removeFileFromLine:ie,onReplaceClick:ne,updateInvoiceUploadFetchState:Z,clearTentativeNameForLine:G,onDeleteBankAccount:F,uncategorizedAccounts:Y,isSignedInUserReimbursementCreator:H,duplicateLineByLineId:A,showTotalAmountLoader:oe,scrollContainerRef:se})=>{const{control:U,formState:{errors:ue}}=ot(),{fields:Ee,append:me,remove:ye}=bo({name:bi,control:U}),de=Ee,je=$.useRef(null),Oe=N=>{setTimeout(()=>{ye(N)})},{tentativeMerchantNameByLineId:Pe,remiStage:pe,remiStatus:Re}=e,he=!H||pe==="pending_approval"&&Re!=="rejected"&&o||pe==="pending_approval"&&Re==="rejected",ve=he?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:k,Ge=ve.map(N=>N.bankAccountId),h=Ae(),ae=Q.largeLabelWidth.value(h),at=e.whatForSection.reportTitle,Ve=e.accountList.accounts,Le=e.accountsHierarchyList,Je=e.classHierarchyList,ze=e.classList.classes,He=e.merchantList.merchants,Ke=e.addRemiAutoFieldsByLineId,Ze=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(N=>Number(N)),0),Ye=()=>{const N=de[de.length-1],ce=Ln(de.length,Number(N.lineId)>Ze?String(Number(N.lineId)+1):String(Ze+1),Le,Je,He,f,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{me(ce,{shouldFocus:!1})}),D(Number(ce.lineId)),I(!0),setTimeout(()=>zi(je.current,se?.current),50)},[re,rt]=$.useState({}),mt=$.useCallback(N=>{const ce=re[`L${N}`];ce!=null&&zi(ce,se?.current)},[re,se]),Qe=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,_=e.reimbursementInfo?.paymentDate!=null?nt(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,pt=e.reimbursementInfo?.expectedDepositDate??_;return t.jsxs(or,{windowSize:h,showSkipAutoFill:p,children:[de.map((N,ce)=>t.jsx(Pa,{removeDuplicateReimbursementForLine:q,onDuplicateLineClick:z,scrollToSection:mt,setRefByLineId:rt,duplicateLineByLineId:A,reimbursementId:S,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:Y,progressSectionObj:Qe,createDate:e.createTime,paymentDate:pt,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:de.length-1===ce||ce===0,index:ce,reimbursementSectionRef:je,remiStage:pe,remiStatus:Re,authParams:r,file:N.file,uploadInvoiceEndPoint:c,showSkipAutoFill:p,lineData:N,currencyConversionState:O[N.lineId],recommendationFetchState:e.lineDetailSection[N.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:D,setUploadedReceiptPayload:ee,onReplaceClick:ne,onReceiptsUpload:R,removeFileFromLine:ie,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,reportTitle:at,accountList:Ve,classList:ze,merchantList:He,autoFieldsByLineId:Ke,onRemoveReimbursement:Oe,onAddReimbursement:Ye,totalAmount:v,showTotalAmountLoader:oe,hasDuplicateLine:l,totalNumberOfLines:de.length,updateInvoiceUploadFetchState:Z,clearTentativeNameForLine:G,tentativeMerchantName:Pe[N.lineId],companyMileageConfigInfo:s,defaultCurrency:f,setShowBankAccountPage:P,paymentTo:e.paymentTo,bankAccounts:ve,onDeleteBankAccount:F,analytics:y,fileRequiredLineIds:w,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:he,accountsHierarchyList:Le,classHierarchyList:Je,isSignedInUserReimbursementCreator:H},N.lineId)),de.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(Yt,{children:[h!=="small"?t.jsx(Jt,{windowSize:h}):null,t.jsx(Zt,{windowSize:h,children:t.jsxs(ar,{windowSize:h,children:[t.jsx(rr,{children:tt.total}),oe?t.jsx(sr,{windowSize:h,children:t.jsx(dr,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:Cn(v,Li.currencyCode,Li.currencySymbol),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]})})]}),t.jsxs(Yt,{children:[h!=="small"?t.jsx(Jt,{windowSize:h}):null,t.jsx(Zt,{windowSize:h,children:t.jsxs(cr,{windowSize:h,onClick:()=>{he===!1&&Ye()},isDisabled:he,"data-testid":K("add-reimbursement-container"),children:[t.jsx(_i,{}),t.jsx(Ui,{children:tt.addReimbursement})]})})]}),t.jsxs(Yt,{children:[h!=="small"?t.jsx(Jt,{windowSize:h}):null,H?t.jsxs(Zt,{windowSize:h,children:[t.jsx(lr,{windowSize:h,children:tt.receivePaymentTo}),t.jsx(nr,{windowSize:h,shouldDisplay:ve.length>0,children:t.jsx(gn,{label:{label:tt.yourBankAccount,width:ae},style:{width:"auto"},singleSelectField:{singleSelect:{name:bt,placeholder:it(tt.yourBankAccount),showValueEyeIcon:!he,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:F,getTooltipInfo:N=>On(ve,N),onClickCreateBankAccount:()=>P(!0),getLabelForId:N=>Rn(ve,N),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:he?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Ge},registerOptions:{required:!0,validate:N=>!!N.selectedOption}},isFunctional:!0})}),t.jsxs(ur,{shouldDisplay:ve.length===0,windowSize:h,onClick:()=>{he===!1&&P(!0)},hasError:Te(ue,bt),isDisabled:he,"data-testid":K("remi-add-bank-account-container"),children:[t.jsx(_i,{}),t.jsx(Ui,{children:tt.addBankAccount})]})]}):null]})]})]})},Ln=(e,o,r,c,p,C,m,v)=>{const f=tr(r,c,p,C,m,v);return{lineIndex:e,lineId:o,reimbursementType:tt.outOfPocketKey,file:void 0,outOfPocket:f,mileage:ir(c,C,v)}},tr=(e,o,r,c,p,C)=>({transactionDate:void 0,class:{allOptions:_e(qe(o,[])),selectedOption:C},account:{allOptions:_e(zt(e,[])),selectedOption:void 0},amount:{amount:0,currencyCode:c.currencyCode,currencySymbol:c.currencySymbol,currency:{allOptions:p.map(m=>({label:`${m.currencyCode} - ${m.currency}`,value:m.currencyCode,countryCode:di(m.countryCode)})),selectedOption:c.currencyCode??we.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(m=>m.id).filter(m=>!!m),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),ir=(e,o,r)=>({transactionDate:void 0,class:{allOptions:_e(qe(e,[])),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),nr=n.div`
411
411
  margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
412
412
  margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
413
413
  margin-bottom: ${e=>Q.addBankAccountMarginBottom.valuePx(e.windowSize)};
@@ -452,12 +452,12 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
452
452
  justify-content: flex-end;
453
453
  color: ${e=>e.theme.colors.primary};
454
454
  ${e=>`${Xa.total.style(e.windowSize)}`};
455
- `,cr=n.div`
455
+ `,dr=n.div`
456
456
  padding-right: ${i.sp3};
457
457
  height: 30px;
458
458
  display: flex;
459
459
  justify-content: flex-end;
460
- `,dr=n.div`
460
+ `,cr=n.div`
461
461
  padding: ${i.sp3};
462
462
  display: flex;
463
463
  align-items: center;
@@ -504,7 +504,7 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
504
504
  `,Yt=n.div`
505
505
  display: flex;
506
506
  width: 100%;
507
- `,Fe={buttonWidth:new c(140,140),paddingLeft:new c(a[3],a[6]),paddingRight:new c(a[3],a[8]),subTitleMarginbottom:new c(a[2],a[3]),orSeperatorTopBottomMargin:new c(a[6],44),iconWidthHeight:new c(20,a[4])},Vi="userBankAccountPage",Pt="bankAccountSection",mr=e=>({[Pt]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName}}),Hi=e=>`${e}_form`,pr=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:d,onEstablishConnectionClick:p,bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,isDisabled:v,onSaveHandler:f,onUserBankDetailsUpdated:l,onFetchBankName:k,onBackClick:w})=>{const s=ft(),y=Ae(),S=an({mode:"onBlur",reValidateMode:"onChange",defaultValues:$.useMemo(()=>mr(C),[C])}),O=$.useCallback(G=>{p?.(G),w()},[w,p]),I=r.link_account_no_microdeposit,{open:P}=wo({token:I.linkToken??null,onSuccess:O});$.useEffect(()=>{(nt(new Date().toISOString()).isAfter(I.expiration)||I.linkToken==null)&&d?.("link_account_no_microdeposit")},[]);const[q,R]=$.useState(!1),D=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,z=we.getLocalizedStrings().common.footer,ee={onOkClick:()=>{R(!1),S.reset(),w()},onCancelClick:()=>{R(!1)}},ie=async(G,F)=>{const Y=F[Pt].bankRoutingNumber;l(F),G===`${Pt}.bankRoutingNumber`&&Y?.length===9&&Io.test(Y)===!0&&k?.(Y)};$.useEffect(()=>{const G=S.watch((F,{name:Y})=>{Y!=null&&F!=null&&xo(()=>ie(Y,F))});return()=>{G.unsubscribe()}}),$.useEffect(()=>{e?.fetchState==="Completed"&&w()},[e?.fetchState,w,o]);const ne=S.handleSubmit(G=>{m.fetchState!=="In-Progress"&&f()}),Z=s.mode==="light"?new ji(s.colors.brandColorJadeLight):new ji(s.colors.brandColorJadeDark);return t.jsxs(hr,{children:[t.jsxs(Sr,{windowSize:y,children:[q===!0?t.jsx(si,{titleComponent:t.jsx(cn,{children:D.discardTitle}),descriptionComponent:t.jsx(sn,{children:D.discardDescription}),primaryButtonText:D.buttons.delete,secondaryButtonText:D.buttons.cancel,action:ee}):null,t.jsx(_o,{header:D.addBankAccount,isDirty:S.formState.isDirty,onBackClick:w,setShowConfirmationPopup:R}),t.jsx(gr,{}),t.jsxs($r,{size:y,children:[t.jsx(So,{onClick:()=>{S.reset(),P()},title:D.connectYourBank,subTitle:D.loginToBank,header:D.setupAchPayments,icon:{element:t.jsx($o,{width:Fe.iconWidthHeight.valuePx(y),height:Fe.iconWidthHeight.valuePx(y)}),color:Z},style:{width:"unset",rowGap:y==="small"?i.sp2:void 0}}),t.jsxs(yr,{windowSize:y,children:[t.jsx(br,{}),t.jsx(wr,{children:t.jsx(xr,{children:D.or})})]}),t.jsx(fr,{windowSize:y,children:D.saveAccountManually})]}),t.jsx(vr,{size:y,children:t.jsx(ln,{...S,children:t.jsxs("form",{id:Hi(Vi),onSubmit:ne,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(Vo,{warningText:D.accountExistWarning}):null,t.jsx(Uo,{bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,sectionId:Pt})]})})})]}),t.jsx(un,{formId:Hi(Vi),primaryBtn:{label:D.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Fe.buttonWidth.value(y)},isDisabled:v!=null},cancelBtn:{label:z.cancel,style:{width:Fe.buttonWidth.value(y)},shouldResetOnCancel:!1,onClick:()=>{S.formState.isDirty?R(!0):(R(!1),S.reset(),w())}}})]})},hr=n.div`
507
+ `,Fe={buttonWidth:new d(140,140),paddingLeft:new d(a[3],a[6]),paddingRight:new d(a[3],a[8]),subTitleMarginbottom:new d(a[2],a[3]),orSeperatorTopBottomMargin:new d(a[6],44),iconWidthHeight:new d(20,a[4])},Vi="userBankAccountPage",Pt="bankAccountSection",mr=e=>({[Pt]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName}}),Hi=e=>`${e}_form`,pr=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:c,onEstablishConnectionClick:p,bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,isDisabled:v,onSaveHandler:f,onUserBankDetailsUpdated:l,onFetchBankName:k,onBackClick:w})=>{const s=ft(),y=Ae(),S=an({mode:"onBlur",reValidateMode:"onChange",defaultValues:$.useMemo(()=>mr(C),[C])}),O=$.useCallback(G=>{p?.(G),w()},[w,p]),I=r.link_account_no_microdeposit,{open:P}=wo({token:I.linkToken??null,onSuccess:O});$.useEffect(()=>{(nt(new Date().toISOString()).isAfter(I.expiration)||I.linkToken==null)&&c?.("link_account_no_microdeposit")},[]);const[q,R]=$.useState(!1),D=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,z=we.getLocalizedStrings().common.footer,ee={onOkClick:()=>{R(!1),S.reset(),w()},onCancelClick:()=>{R(!1)}},ie=async(G,F)=>{const Y=F[Pt].bankRoutingNumber;l(F),G===`${Pt}.bankRoutingNumber`&&Y?.length===9&&Io.test(Y)===!0&&k?.(Y)};$.useEffect(()=>{const G=S.watch((F,{name:Y})=>{Y!=null&&F!=null&&xo(()=>ie(Y,F))});return()=>{G.unsubscribe()}}),$.useEffect(()=>{e?.fetchState==="Completed"&&w()},[e?.fetchState,w,o]);const ne=S.handleSubmit(G=>{m.fetchState!=="In-Progress"&&f()}),Z=s.mode==="light"?new ji(s.colors.brandColorJadeLight):new ji(s.colors.brandColorJadeDark);return t.jsxs(hr,{children:[t.jsxs(Sr,{windowSize:y,children:[q===!0?t.jsx(si,{titleComponent:t.jsx(dn,{children:D.discardTitle}),descriptionComponent:t.jsx(sn,{children:D.discardDescription}),primaryButtonText:D.buttons.delete,secondaryButtonText:D.buttons.cancel,action:ee}):null,t.jsx(_o,{header:D.addBankAccount,isDirty:S.formState.isDirty,onBackClick:w,setShowConfirmationPopup:R}),t.jsx(gr,{}),t.jsxs($r,{size:y,children:[t.jsx(So,{onClick:()=>{S.reset(),P()},title:D.connectYourBank,subTitle:D.loginToBank,header:D.setupAchPayments,icon:{element:t.jsx($o,{width:Fe.iconWidthHeight.valuePx(y),height:Fe.iconWidthHeight.valuePx(y)}),color:Z},style:{width:"unset",rowGap:y==="small"?i.sp2:void 0}}),t.jsxs(yr,{windowSize:y,children:[t.jsx(br,{}),t.jsx(wr,{children:t.jsx(xr,{children:D.or})})]}),t.jsx(fr,{windowSize:y,children:D.saveAccountManually})]}),t.jsx(vr,{size:y,children:t.jsx(ln,{...S,children:t.jsxs("form",{id:Hi(Vi),onSubmit:ne,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(Vo,{warningText:D.accountExistWarning}):null,t.jsx(Uo,{bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,sectionId:Pt})]})})})]}),t.jsx(un,{formId:Hi(Vi),primaryBtn:{label:D.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Fe.buttonWidth.value(y)},isDisabled:v!=null},cancelBtn:{label:z.cancel,style:{width:Fe.buttonWidth.value(y)},shouldResetOnCancel:!1,onClick:()=>{S.formState.isDirty?R(!0):(R(!1),S.reset(),w())}}})]})},hr=n.div`
508
508
  display: flex;
509
509
  flex-direction: column;
510
510
  width: 100%;
@@ -547,7 +547,7 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
547
547
  padding-left: ${e=>Fe.paddingLeft.valuePx(e.size)};
548
548
  padding-right: ${e=>Fe.paddingRight.valuePx(e.size)};
549
549
  padding-bottom: ${i.sp3};
550
- `,De={containerWidth:new c(343,544),confirmationPopUpTitleMarginTop:new c(a[6],a[7]),confirmationPopUpTitlePaddingLeftRight:new c(a[5],a[8]),submitButtonWidth:new c(145,156),cancelButtonWidth:new c(121,121),errorLineItemGap:new c(a[2],12),styledCloseIconRight:new c(a[3],a[8])},{footer:Ki}=we.getLocalizedStrings().common,fe=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,qi=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(Ji,{});case"In-Progress":return t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(An,{});default:return t.jsx(Ji,{})}},Cr=e=>{switch(e){case"Not-Started":return fe.detectDuplicates;case"In-Progress":return fe.detectingDuplicates;case"Completed":return fe.noDuplicatesFound;default:return fe.detectDuplicates}},kr=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:d,setShowDuplicatePopup:p,analytics:C,reimbursementId:m,submitReport:v,fetchDuplicateReimbursement:f,clearDuplicateReimbursementDetail:l,clearRemiSaveStatus:k})=>{const w=Ae(),[s,y]=Ct.useState(!0),S=ri(e),O=ri(o);Ct.useEffect(()=>{setTimeout(()=>{s&&(y(!1),o==="Not-Started"&&f())},2e3)},[o,f,s]),Ct.useEffect(()=>{S==="In-Progress"&&e==="Completed"&&(l(),p(!1))},[e,S,p,l]),Ct.useEffect(()=>{O==="In-Progress"&&o==="Completed"&&!r&&v()},[O,o,r,v]);const I=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[I?t.jsx(Ir,{size:w}):null,t.jsx(si,{action:{onOkClick:()=>{I?(l(),e==="Error"&&k(),y(!0)):(C?.trackReimbursementReviewDuplicateReportReimbursement(d,m),p(!1),po())},onCancelClick:()=>{I?(l(),e==="Error"&&k(),p(!1)):(C?.trackReimbursementSubmitAnywayDuplicateReimbursement(d,m),v())}},shouldClickAway:I,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:I?Ki.resubmit:fe.primaryButtonText,secondaryButtonText:I?Ki.cancel:fe.secondaryButtonText,primaryButtonWidth:I?De.cancelButtonWidth.value(w):De.submitButtonWidth.value(w),secondaryButtonWidth:I?De.cancelButtonWidth.value(w):De.submitButtonWidth.value(w),descriptionComponent:t.jsx(jr,{size:w,children:t.jsxs(Dr,{hasDuplicate:r,duplicateReimbursementStatus:o,children:[t.jsxs(Xt,{isDisabled:!1,isSuccess:!s,children:[s?t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(An,{}),t.jsx(Qt,{isDisabled:!1,children:s?fe.reviewingExpenses:fe.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(Yi,{size:w,children:[t.jsx(Gi,{}),t.jsx(Zi,{children:o==="Error"?fe.failedToDetect:`${d} ${fe.duplicateExpensesFound}`})]}):t.jsxs(Xt,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&d===0,children:[t.jsx(qi,{fetchState:o}),t.jsx(Qt,{isDisabled:o==="Not-Started",children:Cr(o)})]}),e==="Error"?t.jsxs(Yi,{size:w,children:[t.jsx(Gi,{}),t.jsx(Zi,{children:fe.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(Xt,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(qi,{fetchState:e}),t.jsx(Qt,{isDisabled:e==="Not-Started",children:e==="Not-Started"?fe.submitReport:fe.submittingReport})]})]})}),titleComponent:t.jsx(Tr,{size:w,children:fe.title}),showFooter:r||I,containerStyle:{width:De.containerWidth.value(w),maxWidth:"unset"}})]})},Ir=n(pn)`
550
+ `,De={containerWidth:new d(343,544),confirmationPopUpTitleMarginTop:new d(a[6],a[7]),confirmationPopUpTitlePaddingLeftRight:new d(a[5],a[8]),submitButtonWidth:new d(145,156),cancelButtonWidth:new d(121,121),errorLineItemGap:new d(a[2],12),styledCloseIconRight:new d(a[3],a[8])},{footer:Ki}=we.getLocalizedStrings().common,fe=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,qi=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(Ji,{});case"In-Progress":return t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(An,{});default:return t.jsx(Ji,{})}},Cr=e=>{switch(e){case"Not-Started":return fe.detectDuplicates;case"In-Progress":return fe.detectingDuplicates;case"Completed":return fe.noDuplicatesFound;default:return fe.detectDuplicates}},kr=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:c,setShowDuplicatePopup:p,analytics:C,reimbursementId:m,submitReport:v,fetchDuplicateReimbursement:f,clearDuplicateReimbursementDetail:l,clearRemiSaveStatus:k})=>{const w=Ae(),[s,y]=Ct.useState(!0),S=ri(e),O=ri(o);Ct.useEffect(()=>{setTimeout(()=>{s&&(y(!1),o==="Not-Started"&&f())},2e3)},[o,f,s]),Ct.useEffect(()=>{S==="In-Progress"&&e==="Completed"&&(l(),p(!1))},[e,S,p,l]),Ct.useEffect(()=>{O==="In-Progress"&&o==="Completed"&&!r&&v()},[O,o,r,v]);const I=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[I?t.jsx(Ir,{size:w}):null,t.jsx(si,{action:{onOkClick:()=>{I?(l(),e==="Error"&&k(),y(!0)):(C?.trackReimbursementReviewDuplicateReportReimbursement(c,m),p(!1),po())},onCancelClick:()=>{I?(l(),e==="Error"&&k(),p(!1)):(C?.trackReimbursementSubmitAnywayDuplicateReimbursement(c,m),v())}},shouldClickAway:I,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:I?Ki.resubmit:fe.primaryButtonText,secondaryButtonText:I?Ki.cancel:fe.secondaryButtonText,primaryButtonWidth:I?De.cancelButtonWidth.value(w):De.submitButtonWidth.value(w),secondaryButtonWidth:I?De.cancelButtonWidth.value(w):De.submitButtonWidth.value(w),descriptionComponent:t.jsx(jr,{size:w,children:t.jsxs(Dr,{hasDuplicate:r,duplicateReimbursementStatus:o,children:[t.jsxs(Xt,{isDisabled:!1,isSuccess:!s,children:[s?t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(An,{}),t.jsx(Qt,{isDisabled:!1,children:s?fe.reviewingExpenses:fe.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(Yi,{size:w,children:[t.jsx(Gi,{}),t.jsx(Zi,{children:o==="Error"?fe.failedToDetect:`${c} ${fe.duplicateExpensesFound}`})]}):t.jsxs(Xt,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&c===0,children:[t.jsx(qi,{fetchState:o}),t.jsx(Qt,{isDisabled:o==="Not-Started",children:Cr(o)})]}),e==="Error"?t.jsxs(Yi,{size:w,children:[t.jsx(Gi,{}),t.jsx(Zi,{children:fe.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(Xt,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(qi,{fetchState:e}),t.jsx(Qt,{isDisabled:e==="Not-Started",children:e==="Not-Started"?fe.submitReport:fe.submittingReport})]})]})}),titleComponent:t.jsx(Tr,{size:w,children:fe.title}),showFooter:r||I,containerStyle:{width:De.containerWidth.value(w),maxWidth:"unset"}})]})},Ir=n(pn)`
551
551
  width: ${i.sp4};
552
552
  height: ${i.sp4};
553
553
  color: ${e=>e.theme.colors.hero};
@@ -596,7 +596,7 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
596
596
  padding: ${i.sp3};
597
597
  border-radius: ${i.sp2};
598
598
  text-align: left;
599
- `,Tr=n(di)`
599
+ `,Tr=n(ci)`
600
600
  margin-top: ${e=>De.confirmationPopUpTitleMarginTop.valuePx(e.size)};
601
601
  padding-left: ${e=>De.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
602
602
  padding-right: ${e=>De.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
@@ -616,7 +616,7 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
616
616
  height: ${i.sp4};
617
617
  min-width: ${i.sp4};
618
618
  color: ${j.success};
619
- `,X={rightMargin:new c(a[3],a[8]),leftMargin:new c(a[3],a[6]),bottomMargin:new c(56,56),closeMarginTop:new c(0,19),closeMarginRight:new c(a[3],a[8]),rightSectionWidth:new c(100,58),leftSectionWidth:new c(100,42),footerButtonWidth:new c(120,165),right:new c(a[3],a[0]),actionsContainerRight:new c(a[0],a[6]),otherActionsContainerBottom:new c(58,44),duplicateBannerWrapperMarginTop:new c(a[5],a[3]),duplicateBannerWrapperMarginRight:new c(a[3],a[8]),duplicateBannerWrapperMarginBottom:new c(a[5],a[3]),duplicateBannerWrapperMarginLeft:new c(a[3],a[6]),navBarWidth:new c(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:b,bulkActions:Qi}},common:{currency:{currencyCode:Ne,currencySymbol:jt},texts:{comments:Or},strings:{empty:Pr}},collaboration:{threads:{placeholder:{addANewComment:Rr,replyAComment:Lr},tooltip:{resolveComment:Ar,unResolveComment:zr}}},dateFormat:Xi}=we.getLocalizedStrings(),en="editReimbursementDetailPage",tn=e=>`${e}_form`,Br=(e,o,r,d,p,C,m,v,f)=>{const l=e.outOfPocket,k=e.mileage,w=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??b.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??m.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??m.currencySymbol},outOfPocket:{recommendedAccount:l.recommendedAccount,isCategoryUpdateSelected:l.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:l.isCategoryFirstTimeAutofilled??!1,retainedAccount:l.retainedAccount,isRetainedCategorySelected:l.isRetainedCategorySelected??!1,recommendations:s??[],transactionDate:l?.transactionDate?.toDate()??void 0,class:{allOptions:_e(qe(r,[])),selectedOption:l?.lineDetail?.class?.classId??f},account:{allOptions:_e(zt(o,s)),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??m.currencyCode,currencySymbol:l?.currencySymbol??m.currencySymbol,currency:{allOptions:v.map(y=>({label:`${y.currencyCode} - ${y.currency}`,value:y.currencyCode,countryCode:ci(y.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??Ne}},memo:l?.description??void 0,merchant:{allOptions:d.map(y=>y.id).filter(y=>!!y),selectedOption:w?.id?w?.id:w?.name?w?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:_e(qe(r,[])),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??m.currencyCode,currencySymbol:k?.currencySymbol??m.currencySymbol},memo:k?.description}}},ei=(e,o,r)=>{const d=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&d.push(Br(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),d.length===0&&d.push(Ln(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[At]:{reportTitle:e.whatForSection.reportTitle},[bi]:d,[bt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},ti=(e,o)=>{const r=d=>d.lineId==null||o[d.lineId]?.fetchState==="In-Progress"?0:(o[d.lineId]?.fetchState,d.type===b.mileageKey?d?.mileage?.amount??0:d?.outOfPocket?.currencyCode!==Ne&&d.homeCurrencyConversions?.amount!==d?.outOfPocket?.amount?d.homeCurrencyConversions?.amount??0:d?.outOfPocket?.amount??0);return Object.values(e).reduce((d,p)=>d+r(p),0)},ii=(e,o,r,d,p,C,m,v)=>{const f={};return e.lineInfo.forEach(l=>{const k=v.find(O=>O.classId===l.mileage.class.selectedOption),w=m.find(O=>O.qboId===l.outOfPocket.account.selectedOption||O.accountId===l.outOfPocket.account.selectedOption),s=v.find(O=>O.classId===l.outOfPocket.class.selectedOption),y=o.find(O=>O.id===l.outOfPocket.merchant.selectedOption),S=C.find(O=>O.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;f[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k},transactionDate:l.mileage.transactionDate!=null?nt(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??S,currencySymbol:l.mileage.amount?.currencySymbol??S,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:w},transactionDate:l.outOfPocket.transactionDate!=null?nt(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??S,currencySymbol:S,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:y?.id??"",name:y?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:f,totalAmount:{amount:d,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},Fl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:d,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:v,reimbursementId:f,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:w,bankAccounts:s,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:S,bankAccountToCreate:O,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:P,onFetchBankName:q,onSaveBankAccount:R,fetchDuplicateReimbursement:D,clearDuplicateReimbursementDetail:z,clearRemiSaveStatus:ee,removeDuplicateReimbursementForLine:ie,onDuplicateLineClick:ne,onExistingMerchantChange:Z,onNewMerchantChange:G,onReceiptsUpload:F,saveRemiDetails:Y,submitRemiDetails:H,discardReimbursementDetailsFromLocalStore:A,onReimbursementDetailsChanged:oe,updateReimbursementType:se,onHomeCurrencyConversionUpdate:U,redirectToReimbursementListScreen:ue,redirectToReimbursementDetailScreen:Ee,deleteReimbursement:me,removeFileFromLine:ye,onZeniLogoClick:ce,onAmountChanged:je,updateInvoiceUploadFetchState:Oe,clearTentativeNameForLine:Pe,onAddNewRule:pe,onFetchLinkTokenClick:Re,onEstablishConnectionClick:he,deleteBankAccount:ve,onBackClickFromBankAccountPage:Ge})=>{const h=$.useRef(null),ae=$.useRef(null),at=ri(e.uploadStatus),Ve=ft(),Le=wt(),[Je,ze]=$.useState(!1),[He,Ke]=$.useState(!1),[Ze,Ye]=$.useState("save"),[re,rt]=$.useState(ti(e.lineDetailSection,e.currencyConversionStatus)),[mt,Qe]=$.useState(!1),[_,pt]=$.useState(null),[N,de]=$.useState(!1),St=`dashboard_${Le.currentTenant?.companyId}`,Ce=an({mode:"all",reValidateMode:"onChange",defaultValues:$.useMemo(()=>ei(e,r,s),[e,r,s]),values:$.useMemo(()=>ei(e,r,s),[e,r,s]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:B,dirtyFields:zn}=Ce.formState,Bn=async(g,T)=>{const{lineInfo:u}=T,x=Number(g.split(".")[1]);if(g.includes("reportTitle")||g.includes("memo"))return;if(g.includes("reimbursementType")){const M=u[x].mileage,W=u[x].outOfPocket;u[x]={...u[x],outOfPocket:{transactionDate:W.transactionDate??void 0,class:{allOptions:W.class.allOptions??_e(qe(e.classHierarchyList,[])),selectedOption:W.class.selectedOption??void 0},account:{allOptions:W.account.allOptions??_e(zt(e.accountsHierarchyList,[])),selectedOption:W.account.selectedOption??void 0},amount:W.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(xe=>({label:`${xe.currencyCode} - ${xe.currency}`,value:xe.currencyCode,countryCode:ci(xe.countryCode)})),selectedOption:r.currencyCode??Ne}},memo:W.memo??void 0,merchant:W.merchant??void 0,recommendations:W.recommendations??[],recommendedAccount:W.recommendedAccount??void 0,isCategoryUpdateSelected:W.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:W.isCategoryFirstTimeAutofilled??!1,retainedAccount:W.retainedAccount??void 0,isRetainedCategorySelected:W.isRetainedCategorySelected??!1},mileage:{transactionDate:M.transactionDate??void 0,class:{allOptions:M.class.allOptions??_e(qe(e.classHierarchyList,[])),selectedOption:M.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:M.distanceInMiles,amount:{amount:M?.amount?.amount??0,currencyCode:M?.amount?.currencyCode??Ne,currencySymbol:M?.amount?.currencySymbol??jt},memo:M.memo??void 0}}}else if(g.includes("mileage.distanceInMiles")){const{distanceInMiles:M}=u[x].mileage,W=d?.mileageUnitAmount??0;u[x].mileage={...u[x].mileage,amount:{amount:M!=null?M*W:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(g.includes("outOfPocket.amount")&&u[x].lineId){const M=u[x].outOfPocket.amount,W=e.allCurrencies.find(xe=>xe.currencyCode===M?.currency.selectedOption)?.currencySymbol;if(M?.currencyCode!==M?.currency.selectedOption){const xe=M?.currency?.allOptions||[];u[x].outOfPocket.amount={currency:{allOptions:xe,selectedOption:M?.currency?.selectedOption},amount:u[x].outOfPocket?.amount?.amount??0,currencyCode:M?.currency.selectedOption??Ne,currencySymbol:W??jt}}if(M?.currency.selectedOption!==Ne)Qe(!0),Vn(u[x].lineId,Ne);else{const xe={};u.forEach(Gt=>{xe[Gt.lineId]={lineId:Gt.lineId,homeCurrencyConversions:Gt.homeCurrencyConversions}}),u[x].homeCurrencyConversions={amount:M.amount??0,currencyCode:M?.currency.selectedOption??Ne,currencySymbol:W??jt};const ki=ti(xe,e.currencyConversionStatus);re!==ki&&rt(ki)}}else if(g.includes("outOfPocket.isRetainedCategorySelected"))u[x].outOfPocket.isRetainedCategorySelected===!0&&(u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.retainedAccount?.qboId);else if(g.includes("outOfPocket.isCategoryUpdateSelected"))if(u[x].outOfPocket.isCategoryUpdateSelected===!0)u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.recommendedAccount?.qboId,u[x].outOfPocket.isRetainedCategorySelected=!1;else{const M=u[x].lineId,W=e.editRemiInitialDetails.lineDetailSection[M]?.lineDetail?.account?.qboId;u[x].outOfPocket.account.selectedOption=W,u[x].outOfPocket.isRetainedCategorySelected=!1}else g.includes("outOfPocket.account")&&(u[x].outOfPocket.recommendations.length>0&&(u[x].outOfPocket.recommendedAccount=u[x].outOfPocket.recommendations[0].account),u[x].outOfPocket.recommendedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.recommendedAccount?.qboId?u[x].outOfPocket.isCategoryUpdateSelected=!0:u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.retainedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.retainedAccount?.qboId?u[x].outOfPocket.isRetainedCategorySelected=!0:u[x].outOfPocket.isRetainedCategorySelected=!1,u[x].outOfPocket.isCategoryFirstTimeAutofilled=!1);const vt=ii({...T,lineInfo:u},e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(oe?.(vt),g.includes("outOfPocket.merchant")){const M=u[x].lineId,W=u[x].outOfPocket.merchant.selectedOption??"";u[x].outOfPocket.merchant.allOptions.find(xe=>xe===W)!=null?Z(W,M):G(W,M)}},fi=$.useMemo(()=>Ii((g,T)=>Bn(g,T),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);$.useEffect(()=>{const g=Ce.watch((T,{name:u})=>{u!=null&&T!=null&&fi(u,T)});return()=>{g.unsubscribe()}},[fi,Ce]),$.useEffect(()=>{const g=Fo(Object.values(e.currencyConversionStatus)),T=g.fetchState==="In-Progress"||g.fetchState==="Error";Qe(T)},[e.currencyConversionStatus]),$.useEffect(()=>{for(const T in e.currencyConversionStatus){const u=e.lineDetailSection[T],x=e.lineDetailSection[T];e.currencyConversionStatus[T].fetchState==="Completed"&&x!=null&&u.type!==b.mileageKey&&!rn(u?.homeCurrencyConversions,x.homeCurrencyConversions)&&U({amount:u?.homeCurrencyConversions?.amount??0,currencyCode:u?.homeCurrencyConversions?.currencyCode??Ne,currencySymbol:u?.homeCurrencyConversions?.currencySymbol??jt},T,f)}const g=ti(e.lineDetailSection,e.currencyConversionStatus);re!==g&&rt(g)},[e.currencyConversionStatus,e.lineDetailSection]),$.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(A(f),ue?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,f,A,ue]);const L=Ae(),[Be,ht]=$.useState(f==null),[gt,Mn]=$.useState(1),[Fn,Et]=$.useState(!1),[En,Nn]=$.useState(""),[Nt,Wn]=$.useState(null),[Un,lt]=$.useState(!1),[_n,wi]=$.useState(!1),[Wt,Ut]=$.useState([]),[be,$t]=$.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Vn=$.useRef(Ii((g,T)=>je(g,T),500,{trailing:!0})).current;$.useEffect(()=>{at==="In-Progress"&&(e.uploadStatus==="Completed"?(Ce.reset(ei(e,r,s),{keepDefaultValues:!0}),ze(!1),ht(!1)):e.uploadStatus==="Error"&&ze(!1))},[at,e.uploadStatus,Ce,e,Je,ze,Be,r,s,v]),$.useEffect(()=>{e.uploadStatus==="In-Progress"&&Be===!1&&ze(!0)},[e.uploadStatus,ze,Be]);const _t=e.remiStage==="draft"?b.newReimbursementTitle:b.editReimbursementTitle,Hn={onOkClick:()=>{if(lt(!1),be.primaryButtonText===b.buttons.discard)A(f),e.remiStage==="draft"?ue?.():Ee?.();else if(be.primaryButtonText===b.buttons.delete)be.title===b.deleteBankAccountTitle?ve?.(En):me?.();else if(be.primaryButtonText===b.buttons.yes&&Nt!=null){const g=Wt.filter(T=>T!==gt.toString());Ut(g),F(Nt,gt,!0)}},onCancelClick:()=>{if(lt(!1),be.secondaryButtonText===b.buttons.no){const g=Wt.filter(T=>T!==gt.toString());Ut(g),F(Nt,gt,!1)}}},xi=()=>{B||yo(zn)?($t({title:b.discardTitle,description:b.discardDescription,primaryButtonText:b.buttons.discard,secondaryButtonText:b.buttons.cancel}),lt(!0)):(A(f),ue?.())},Kn=()=>{$t({title:e.remiStage==="draft"?b.deleteDraftTitle:b.deleteReportTitle,description:b.deleteAlertDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),lt(!0)},qn=g=>{Nn(g),$t({title:b.deleteBankAccountTitle,description:b.deleteBankAccountDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),lt(!0)},Gn=()=>{$t({title:b.overwriteTitle,description:b.overwriteDescription,primaryButtonText:b.buttons.yes,secondaryButtonText:b.buttons.no}),lt(!0)},Jn=()=>{let g=!0;const T=[];return Object.values(e.lineDetailSection).forEach((u,x)=>{u.type===b.outOfPocketKey&&jn(u)>=75&&u.file==null&&(T.push(u.lineId),g=!1)}),Ut(T),g},Si=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")xi();else{Ye("save");const g=Ce.getValues(),T=ii(g,e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);oe?.(T);const u=T.whatForSection?.reportTitle;u!=null&&u.length>0?Y(e.remiStatus==="rejected"?"pending_approval":"draft"):Ce.trigger(`${At}.reportTitle`,{shouldFocus:!0})}};let Vt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(g=>{g.length>0&&(Vt=!0)});let $i=[];if(e.remiId==null){const g=re??0;g>0&&($i=e.approvalRules.allApprovalRules?.filter(T=>{const u=T.criteria[0].range;if(u.max!=null){if(u.min.amount<g&&u.max.amount>=g)return T}else if(u.min.amount<g)return T;return null}).map(T=>({...T,stepsWithStatus:T.steps.map(u=>({...u,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const Zn=g=>{const T=Jn();return Ce.handleSubmit(()=>{T&&(Ye("submit"),v?.trackReimbursementSubmitReimbursement(e.createTime?.format(Xi.analytics.MMMDashDDDashYYYYFormat)??yi().format(Xi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,re,f),z(),wi(!0))})(g)},Yn=()=>{const g=Ce.getValues(),T=ii(g,e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);oe?.(T),H()},Qn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Xn=e.reimbursementInfo?.paymentDate!=null?nt(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,eo=e.reimbursementInfo?.expectedDepositDate??Xn,to=f!=null&&e.remiStage==="draft",vi=Eo(e.duplicateLineByLineId),Ht=e.duplicateReimbursementStatus.fetchState==="Completed"&&vi>0,{requestToOpenThread:Kt,setRequestToOpenThread:Ci,setOpenThread:qt}=$.useContext(oo),{threads:yt,isLoading:Xe}=ao({application:"dashboard",companyId:Le.currentTenant?.companyId,tab:"reimbursement",entityId:f,isGlobalComment:!1},"both",!1);$.useEffect(()=>{Kt?.threadId!=null&&yt.length>0&&!Xe&&(qt(Kt.threadId),Ci(null))},[Kt,yt,Xe,qt,Ci]);const io=$.useMemo(()=>f==null?[]:yt.filter(g=>g.resolved===!1&&!g.id.includes(ro)),[yt,f]).length,no=(g,T)=>{qt(T);const u=g.entityType.split("."),x=parseInt(u[2]);if(isNaN(x)){de(!1);return}const vt=`${x+1}`,M=e.lineDetailSection[x+1].type;u.includes(b.mileageKey)&&M===b.outOfPocketKey?se(Ai(b.mileageKey),vt,f):u.includes(b.outOfPocketKey)&&M===b.mileageKey&&se(Ai(b.outOfPocketKey),vt,f),de(!1)};return t.jsx(Fr,{ref:h,children:t.jsx(lo,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:ae.current??null}},children:t.jsxs(ln,{...Ce,children:[t.jsx("form",{id:tn(en),onSubmit:g=>Zn(g),children:t.jsxs(pl,{windowSize:L,ref:ae,children:[Un?t.jsx(si,{titleComponent:t.jsx(cn,{children:be.title}),descriptionComponent:t.jsx(sn,{children:be.description}),primaryButtonText:be.primaryButtonText,secondaryButtonText:be.secondaryButtonText,action:Hn,proceedButtonVariant:be.title===b.deleteBankAccountTitle||be.title===b.deleteDraftTitle||be.title===b.deleteReportTitle||be.title===b.discardTitle?"danger":"primary",isEditPopup:be.title===b.deleteBankAccountTitle}):null,_n?t.jsx(kr,{reimbursementId:f,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:Ht,numberOfDuplicateLines:vi,setShowDuplicatePopup:wi,submitReport:Yn,fetchDuplicateReimbursement:D,clearDuplicateReimbursementDetail:z,clearRemiSaveStatus:ee,analytics:v}):null,Je?t.jsx(on,{windowSize:L}):null,Be?t.jsxs(on,{windowSize:L,"data-testid":K("skip-autofill-section"),children:[L==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Zr,{children:t.jsx(ai,{partOfSkipAutoFill:!0,size:L,onClick:()=>ht(!1),"data-testid":K("close-invoice-upload"),children:t.jsx(oi,{withOverlay:!0,children:t.jsx(ni,{})})})}),t.jsx(Qr,{children:_t})]}):null,t.jsx(kn,{showAutofill:Be,analytics:v,onSkipAutofill:()=>{v?.trackReimbursementSkipAutofill(),ht(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:X.leftSectionWidth.valuePercentage(L),boxSizing:"border-box",backgroundColor:L==="small"?Ve.colors.grey4:"unset",padding:L==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:L==="small"?i.sp0:void 0},onInvoiceUpload:g=>F(g,gt,!0),dropFilePlaceholder:{upload:b.dropReceipt.upload,single:b.dropReceipt.single,or:b.dropReceipt.or,multiple:b.dropReceipt.multiple,receipts:b.dropReceipt.receipts},updateInvoiceUploadFetchState:Oe,showInfoText:!1,allowMultiFiles:Be,type:"reimbursement"}),L!=="small"?t.jsx(Yr,{children:t.jsx(ai,{partOfSkipAutoFill:!0,onClick:()=>ht(!1),"data-testid":K("close-invoice-upload"),children:t.jsx(oi,{withOverlay:!0,children:t.jsx(ni,{})})})}):null]}):null,t.jsxs(sl,{windowSize:L,"data-testid":K("edit-reimbursement-detail-page-nav-bar-container"),children:[L!=="small"?t.jsx(Di,{style:{width:"42%"},"data-testid":K("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(cl,{"data-testid":K("zeni-logo-spend-management-reimbursement-detail-page"),onClick:ce}),enableTitleOnScroll:!1,scrollableContent:h,backgroundColor:Ve.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,L!=="small"?t.jsx(Er,{}):null,t.jsx(Di,{style:{width:X.navBarWidth.valuePercentage(L)},"data-testid":K("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:_t,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Be!=!0?t.jsxs(dl,{children:[C&&f!=null?t.jsxs(ul,{isDisabled:Xe,"data-testid":K("remi-comment-button"),onClick:Xe?()=>null:g=>{g.preventDefault(),g.stopPropagation(),pt({roomId:St,companyId:Le.currentTenant?.companyId??"",companyName:Le.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:f}),de(!0),v?.trackCommentActivity("reimbursement","clicked",Le.currentTenant?.companyName??"",Le.controllersList.controllers.map(T=>co(T)),void 0,void 0,"page icon")},children:[t.jsx(so,{count:Xe?void 0:io,isLoading:Xe,style:{left:"12px"}}),t.jsx(ml,{})]}):null,t.jsx(ai,{size:L,onClick:()=>xi(),"data-testid":K("close-nav-bar"),children:t.jsx(oi,{withOverlay:!1,children:t.jsx(ni,{})})})]}):null,enableTitleOnScroll:L!=="small",scrollThreshold:64,scrollableContent:h,backgroundColor:Ve.colors.grey4})]}),L==="small"?t.jsxs(t.Fragment,{children:[t.jsx(ll,{children:_t}),t.jsx(uo,{progressSectionObj:Qn,createDate:e.createTime,paymentDate:eo,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:f!=null?!0:e.uploadStatus==="Completed"}),Vt&&t.jsxs(tl,{children:[t.jsx(el,{}),t.jsx(il,{children:b.banner})]}),e.isProcessing?t.jsx(dn,{variant:"warning",style:{margin:L==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Qi.duplicateWarning.title,description:Qi.duplicateWarning.description}):Ht?t.jsxs(nl,{size:L,children:[t.jsx(_r,{}),t.jsxs(al,{children:[t.jsx(ol,{children:b.thereSeems}),t.jsx(rl,{children:b.pleaseFind})]})]}):null,t.jsx(Tn,{isReimbursementCommentingEnabled:C,sectionId:At,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(er,{onDuplicateLineClick:ne,reimbursementId:f,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:Be,setShowSkipAutoFill:ht,isReimbursementCommentingEnabled:C,isAutoFieldsExist:Vt,totalAmount:re,removeFileFromLine:ye,onReplaceClick:Gn,onReceiptsUpload:F,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Mn,setUploadedReceiptPayload:Wn,updateInvoiceUploadFetchState:Oe,clearTentativeNameForLine:Pe,defaultCurrency:r,companyMileageConfigInfo:d,isUserAdmin:m,setShowBankAccountPage:Et,bankAccounts:s,onDeleteBankAccount:qn,analytics:v,fileRequiredLineIds:Wt,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:S,showTotalAmountLoader:mt,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:Ht,removeDuplicateReimbursementForLine:ie,scrollContainerRef:h}),t.jsxs(hl,{showSkipAutoFill:Be,windowSize:L,children:[L!=="small"?t.jsx(nn,{}):null,t.jsx(gl,{windowSize:L,children:t.jsxs(yl,{windowSize:L,children:[e.remiId!==void 0&&t.jsx(Ti,{amount:re??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:pe,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&re!=null&&re>0?t.jsx(Ti,{amount:re??0,activities:$i,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(bl,{}),t.jsxs(Xr,{showSkipAutoFill:Be,windowSize:L,children:[L!=="small"?t.jsx(nn,{}):null,t.jsx(Nr,{windowSize:L,onClick:g=>{g.stopPropagation(),He===!0&&Ke(!1)},children:t.jsx(un,{formId:tn(en),separatorStyle:{marginRight:i.sp4},showCancel:y,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?L==="small"?b.buttons.discard:b.buttons.discardChanges:L==="small"?b.buttons.save:b.buttons.saveChanges,isLoading:Ze==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:Si,style:{width:X.footerButtonWidth.value(L)},reverseSpinnerColor:!1},primaryBtn:{label:Mr(y,m,e,L),isDisabled:!y,style:{width:y?X.footerButtonWidth.value(L):"auto"},type:y?"submit":"button",onClick:y?()=>null:Si,isLoading:!y&&Ze==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Wr,{children:t.jsxs(qr,{windowSize:L,children:[He?t.jsx(mn,{onClickAway:()=>Ke(!1),children:t.jsx(Kr,{windowSize:L,"data-testid":K("remi-other-actions-container"),children:t.jsx(Gr,{onClick:Kn,"data-testid":K("delete-report-action"),children:b.buttons.deleteReport})})}):null,t.jsx(Hr,{windowSize:L,children:to===!0?t.jsx(Vr,{windowSize:L,"data-testid":K("more-details-button"),children:t.jsx(Ur,{onClick:()=>Ke(!He)})}):null})]})}),style:{minHeight:62}})})]}),C&&f!=null?t.jsx(Mo,{id:St,children:t.jsx(mo,{isDrawerOpen:N,allowComposer:!0,drawerTitle:Or,threads:yt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:_?.companyId??Pr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Xe,threadMetadata:_?{companyName:_.companyName,companyId:_.companyId,entityId:_.entityId,entityType:_.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Rr,replyComposerPlaceholder:Lr,threadResolve:Ar,threadUnResolve:zr},onThreadClick:(g,T)=>no(g,T),onCloseAllThreadsDrawer:()=>de(!1),drawerSectionStyle:{width:"400px",backgroundColor:Ve.colors.background}})}):null]})}),Fn?t.jsx(Jr,{windowSize:L,children:t.jsx(pr,{bankAccountCreationState:k,setShowBankAccountPage:Et,plaidConnectionDetails:l,onFetchLinkTokenClick:Re,onEstablishConnectionClick:he,onSaveHandler:R,bankAccountToCreate:O,bankNameByRouting:w,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:P,onFetchBankName:q,onBackClick:()=>{Ge(),Et(!1)}})}):null]})})})},Mr=(e,o,r,d)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?b.buttons.resubmit:b.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?d==="small"?b.buttons.discard:b.buttons.discardChanges:d==="small"?b.buttons.save:b.buttons.saveChanges,Fr=n.div`
619
+ `,X={rightMargin:new d(a[3],a[8]),leftMargin:new d(a[3],a[6]),bottomMargin:new d(56,56),closeMarginTop:new d(0,19),closeMarginRight:new d(a[3],a[8]),rightSectionWidth:new d(100,58),leftSectionWidth:new d(100,42),footerButtonWidth:new d(120,165),right:new d(a[3],a[0]),actionsContainerRight:new d(a[0],a[6]),otherActionsContainerBottom:new d(58,44),duplicateBannerWrapperMarginTop:new d(a[5],a[3]),duplicateBannerWrapperMarginRight:new d(a[3],a[8]),duplicateBannerWrapperMarginBottom:new d(a[5],a[3]),duplicateBannerWrapperMarginLeft:new d(a[3],a[6]),navBarWidth:new d(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:b,bulkActions:Qi}},common:{currency:{currencyCode:Ne,currencySymbol:jt},texts:{comments:Or},strings:{empty:Pr}},collaboration:{threads:{placeholder:{addANewComment:Rr,replyAComment:Lr},tooltip:{resolveComment:Ar,unResolveComment:zr}}},dateFormat:Xi}=we.getLocalizedStrings(),en="editReimbursementDetailPage",tn=e=>`${e}_form`,Br=(e,o,r,c,p,C,m,v,f)=>{const l=e.outOfPocket,k=e.mileage,w=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??b.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??m.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??m.currencySymbol},outOfPocket:{recommendedAccount:l.recommendedAccount,isCategoryUpdateSelected:l.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:l.isCategoryFirstTimeAutofilled??!1,retainedAccount:l.retainedAccount,isRetainedCategorySelected:l.isRetainedCategorySelected??!1,recommendations:s??[],transactionDate:l?.transactionDate?.toDate()??void 0,class:{allOptions:_e(qe(r,[])),selectedOption:l?.lineDetail?.class?.classId??f},account:{allOptions:_e(zt(o,s)),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??m.currencyCode,currencySymbol:l?.currencySymbol??m.currencySymbol,currency:{allOptions:v.map(y=>({label:`${y.currencyCode} - ${y.currency}`,value:y.currencyCode,countryCode:di(y.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??Ne}},memo:l?.description??void 0,merchant:{allOptions:c.map(y=>y.id).filter(y=>!!y),selectedOption:w?.id?w?.id:w?.name?w?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:_e(qe(r,[])),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??m.currencyCode,currencySymbol:k?.currencySymbol??m.currencySymbol},memo:k?.description}}},ei=(e,o,r)=>{const c=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&c.push(Br(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),c.length===0&&c.push(Ln(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[At]:{reportTitle:e.whatForSection.reportTitle},[bi]:c,[bt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},ti=(e,o)=>{const r=c=>c.lineId==null||o[c.lineId]?.fetchState==="In-Progress"?0:(o[c.lineId]?.fetchState,c.type===b.mileageKey?c?.mileage?.amount??0:c?.outOfPocket?.currencyCode!==Ne&&c.homeCurrencyConversions?.amount!==c?.outOfPocket?.amount?c.homeCurrencyConversions?.amount??0:c?.outOfPocket?.amount??0);return Object.values(e).reduce((c,p)=>c+r(p),0)},ii=(e,o,r,c,p,C,m,v)=>{const f={};return e.lineInfo.forEach(l=>{const k=v.find(O=>O.classId===l.mileage.class.selectedOption),w=m.find(O=>O.qboId===l.outOfPocket.account.selectedOption||O.accountId===l.outOfPocket.account.selectedOption),s=v.find(O=>O.classId===l.outOfPocket.class.selectedOption),y=o.find(O=>O.id===l.outOfPocket.merchant.selectedOption),S=C.find(O=>O.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;f[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k},transactionDate:l.mileage.transactionDate!=null?nt(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??S,currencySymbol:l.mileage.amount?.currencySymbol??S,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:w},transactionDate:l.outOfPocket.transactionDate!=null?nt(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??S,currencySymbol:S,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:y?.id??"",name:y?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:f,totalAmount:{amount:c,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},Fl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:c,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:v,reimbursementId:f,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:w,bankAccounts:s,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:S,bankAccountToCreate:O,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:P,onFetchBankName:q,onSaveBankAccount:R,fetchDuplicateReimbursement:D,clearDuplicateReimbursementDetail:z,clearRemiSaveStatus:ee,removeDuplicateReimbursementForLine:ie,onDuplicateLineClick:ne,onExistingMerchantChange:Z,onNewMerchantChange:G,onReceiptsUpload:F,saveRemiDetails:Y,submitRemiDetails:H,discardReimbursementDetailsFromLocalStore:A,onReimbursementDetailsChanged:oe,updateReimbursementType:se,onHomeCurrencyConversionUpdate:U,redirectToReimbursementListScreen:ue,redirectToReimbursementDetailScreen:Ee,deleteReimbursement:me,removeFileFromLine:ye,onZeniLogoClick:de,onAmountChanged:je,updateInvoiceUploadFetchState:Oe,clearTentativeNameForLine:Pe,onAddNewRule:pe,onFetchLinkTokenClick:Re,onEstablishConnectionClick:he,deleteBankAccount:ve,onBackClickFromBankAccountPage:Ge})=>{const h=$.useRef(null),ae=$.useRef(null),at=ri(e.uploadStatus),Ve=ft(),Le=wt(),[Je,ze]=$.useState(!1),[He,Ke]=$.useState(!1),[Ze,Ye]=$.useState("save"),[re,rt]=$.useState(ti(e.lineDetailSection,e.currencyConversionStatus)),[mt,Qe]=$.useState(!1),[_,pt]=$.useState(null),[N,ce]=$.useState(!1),St=`dashboard_${Le.currentTenant?.companyId}`,Ce=an({mode:"all",reValidateMode:"onChange",defaultValues:$.useMemo(()=>ei(e,r,s),[e,r,s]),values:$.useMemo(()=>ei(e,r,s),[e,r,s]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:B,dirtyFields:zn}=Ce.formState,Bn=async(g,T)=>{const{lineInfo:u}=T,x=Number(g.split(".")[1]);if(g.includes("reportTitle")||g.includes("memo"))return;if(g.includes("reimbursementType")){const M=u[x].mileage,W=u[x].outOfPocket;u[x]={...u[x],outOfPocket:{transactionDate:W.transactionDate??void 0,class:{allOptions:W.class.allOptions??_e(qe(e.classHierarchyList,[])),selectedOption:W.class.selectedOption??void 0},account:{allOptions:W.account.allOptions??_e(zt(e.accountsHierarchyList,[])),selectedOption:W.account.selectedOption??void 0},amount:W.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(xe=>({label:`${xe.currencyCode} - ${xe.currency}`,value:xe.currencyCode,countryCode:di(xe.countryCode)})),selectedOption:r.currencyCode??Ne}},memo:W.memo??void 0,merchant:W.merchant??void 0,recommendations:W.recommendations??[],recommendedAccount:W.recommendedAccount??void 0,isCategoryUpdateSelected:W.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:W.isCategoryFirstTimeAutofilled??!1,retainedAccount:W.retainedAccount??void 0,isRetainedCategorySelected:W.isRetainedCategorySelected??!1},mileage:{transactionDate:M.transactionDate??void 0,class:{allOptions:M.class.allOptions??_e(qe(e.classHierarchyList,[])),selectedOption:M.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:M.distanceInMiles,amount:{amount:M?.amount?.amount??0,currencyCode:M?.amount?.currencyCode??Ne,currencySymbol:M?.amount?.currencySymbol??jt},memo:M.memo??void 0}}}else if(g.includes("mileage.distanceInMiles")){const{distanceInMiles:M}=u[x].mileage,W=c?.mileageUnitAmount??0;u[x].mileage={...u[x].mileage,amount:{amount:M!=null?M*W:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(g.includes("outOfPocket.amount")&&u[x].lineId){const M=u[x].outOfPocket.amount,W=e.allCurrencies.find(xe=>xe.currencyCode===M?.currency.selectedOption)?.currencySymbol;if(M?.currencyCode!==M?.currency.selectedOption){const xe=M?.currency?.allOptions||[];u[x].outOfPocket.amount={currency:{allOptions:xe,selectedOption:M?.currency?.selectedOption},amount:u[x].outOfPocket?.amount?.amount??0,currencyCode:M?.currency.selectedOption??Ne,currencySymbol:W??jt}}if(M?.currency.selectedOption!==Ne)Qe(!0),Vn(u[x].lineId,Ne);else{const xe={};u.forEach(Gt=>{xe[Gt.lineId]={lineId:Gt.lineId,homeCurrencyConversions:Gt.homeCurrencyConversions}}),u[x].homeCurrencyConversions={amount:M.amount??0,currencyCode:M?.currency.selectedOption??Ne,currencySymbol:W??jt};const ki=ti(xe,e.currencyConversionStatus);re!==ki&&rt(ki)}}else if(g.includes("outOfPocket.isRetainedCategorySelected"))u[x].outOfPocket.isRetainedCategorySelected===!0&&(u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.retainedAccount?.qboId);else if(g.includes("outOfPocket.isCategoryUpdateSelected"))if(u[x].outOfPocket.isCategoryUpdateSelected===!0)u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.recommendedAccount?.qboId,u[x].outOfPocket.isRetainedCategorySelected=!1;else{const M=u[x].lineId,W=e.editRemiInitialDetails.lineDetailSection[M]?.lineDetail?.account?.qboId;u[x].outOfPocket.account.selectedOption=W,u[x].outOfPocket.isRetainedCategorySelected=!1}else g.includes("outOfPocket.account")&&(u[x].outOfPocket.recommendations.length>0&&(u[x].outOfPocket.recommendedAccount=u[x].outOfPocket.recommendations[0].account),u[x].outOfPocket.recommendedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.recommendedAccount?.qboId?u[x].outOfPocket.isCategoryUpdateSelected=!0:u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.retainedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.retainedAccount?.qboId?u[x].outOfPocket.isRetainedCategorySelected=!0:u[x].outOfPocket.isRetainedCategorySelected=!1,u[x].outOfPocket.isCategoryFirstTimeAutofilled=!1);const vt=ii({...T,lineInfo:u},e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(oe?.(vt),g.includes("outOfPocket.merchant")){const M=u[x].lineId,W=u[x].outOfPocket.merchant.selectedOption??"";u[x].outOfPocket.merchant.allOptions.find(xe=>xe===W)!=null?Z(W,M):G(W,M)}},fi=$.useMemo(()=>Ii((g,T)=>Bn(g,T),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);$.useEffect(()=>{const g=Ce.watch((T,{name:u})=>{u!=null&&T!=null&&fi(u,T)});return()=>{g.unsubscribe()}},[fi,Ce]),$.useEffect(()=>{const g=Fo(Object.values(e.currencyConversionStatus)),T=g.fetchState==="In-Progress"||g.fetchState==="Error";Qe(T)},[e.currencyConversionStatus]),$.useEffect(()=>{for(const T in e.currencyConversionStatus){const u=e.lineDetailSection[T],x=e.lineDetailSection[T];e.currencyConversionStatus[T].fetchState==="Completed"&&x!=null&&u.type!==b.mileageKey&&!rn(u?.homeCurrencyConversions,x.homeCurrencyConversions)&&U({amount:u?.homeCurrencyConversions?.amount??0,currencyCode:u?.homeCurrencyConversions?.currencyCode??Ne,currencySymbol:u?.homeCurrencyConversions?.currencySymbol??jt},T,f)}const g=ti(e.lineDetailSection,e.currencyConversionStatus);re!==g&&rt(g)},[e.currencyConversionStatus,e.lineDetailSection]),$.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(A(f),ue?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,f,A,ue]);const L=Ae(),[Be,ht]=$.useState(f==null),[gt,Mn]=$.useState(1),[Fn,Et]=$.useState(!1),[En,Nn]=$.useState(""),[Nt,Wn]=$.useState(null),[Un,lt]=$.useState(!1),[_n,wi]=$.useState(!1),[Wt,Ut]=$.useState([]),[be,$t]=$.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Vn=$.useRef(Ii((g,T)=>je(g,T),500,{trailing:!0})).current;$.useEffect(()=>{at==="In-Progress"&&(e.uploadStatus==="Completed"?(Ce.reset(ei(e,r,s),{keepDefaultValues:!0}),ze(!1),ht(!1)):e.uploadStatus==="Error"&&ze(!1))},[at,e.uploadStatus,Ce,e,Je,ze,Be,r,s,v]),$.useEffect(()=>{e.uploadStatus==="In-Progress"&&Be===!1&&ze(!0)},[e.uploadStatus,ze,Be]);const _t=e.remiStage==="draft"?b.newReimbursementTitle:b.editReimbursementTitle,Hn={onOkClick:()=>{if(lt(!1),be.primaryButtonText===b.buttons.discard)A(f),e.remiStage==="draft"?ue?.():Ee?.();else if(be.primaryButtonText===b.buttons.delete)be.title===b.deleteBankAccountTitle?ve?.(En):me?.();else if(be.primaryButtonText===b.buttons.yes&&Nt!=null){const g=Wt.filter(T=>T!==gt.toString());Ut(g),F(Nt,gt,!0)}},onCancelClick:()=>{if(lt(!1),be.secondaryButtonText===b.buttons.no){const g=Wt.filter(T=>T!==gt.toString());Ut(g),F(Nt,gt,!1)}}},xi=()=>{B||yo(zn)?($t({title:b.discardTitle,description:b.discardDescription,primaryButtonText:b.buttons.discard,secondaryButtonText:b.buttons.cancel}),lt(!0)):(A(f),ue?.())},Kn=()=>{$t({title:e.remiStage==="draft"?b.deleteDraftTitle:b.deleteReportTitle,description:b.deleteAlertDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),lt(!0)},qn=g=>{Nn(g),$t({title:b.deleteBankAccountTitle,description:b.deleteBankAccountDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),lt(!0)},Gn=()=>{$t({title:b.overwriteTitle,description:b.overwriteDescription,primaryButtonText:b.buttons.yes,secondaryButtonText:b.buttons.no}),lt(!0)},Jn=()=>{let g=!0;const T=[];return Object.values(e.lineDetailSection).forEach((u,x)=>{u.type===b.outOfPocketKey&&jn(u)>=75&&u.file==null&&(T.push(u.lineId),g=!1)}),Ut(T),g},Si=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")xi();else{Ye("save");const g=Ce.getValues(),T=ii(g,e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);oe?.(T);const u=T.whatForSection?.reportTitle;u!=null&&u.length>0?Y(e.remiStatus==="rejected"?"pending_approval":"draft"):Ce.trigger(`${At}.reportTitle`,{shouldFocus:!0})}};let Vt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(g=>{g.length>0&&(Vt=!0)});let $i=[];if(e.remiId==null){const g=re??0;g>0&&($i=e.approvalRules.allApprovalRules?.filter(T=>{const u=T.criteria[0].range;if(u.max!=null){if(u.min.amount<g&&u.max.amount>=g)return T}else if(u.min.amount<g)return T;return null}).map(T=>({...T,stepsWithStatus:T.steps.map(u=>({...u,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const Zn=g=>{const T=Jn();return Ce.handleSubmit(()=>{T&&(Ye("submit"),v?.trackReimbursementSubmitReimbursement(e.createTime?.format(Xi.analytics.MMMDashDDDashYYYYFormat)??yi().format(Xi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,re,f),z(),wi(!0))})(g)},Yn=()=>{const g=Ce.getValues(),T=ii(g,e.merchantList.merchants,r,re,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);oe?.(T),H()},Qn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Xn=e.reimbursementInfo?.paymentDate!=null?nt(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,eo=e.reimbursementInfo?.expectedDepositDate??Xn,to=f!=null&&e.remiStage==="draft",vi=Eo(e.duplicateLineByLineId),Ht=e.duplicateReimbursementStatus.fetchState==="Completed"&&vi>0,{requestToOpenThread:Kt,setRequestToOpenThread:Ci,setOpenThread:qt}=$.useContext(oo),{threads:yt,isLoading:Xe}=ao({application:"dashboard",companyId:Le.currentTenant?.companyId,tab:"reimbursement",entityId:f,isGlobalComment:!1},"both",!1);$.useEffect(()=>{Kt?.threadId!=null&&yt.length>0&&!Xe&&(qt(Kt.threadId),Ci(null))},[Kt,yt,Xe,qt,Ci]);const io=$.useMemo(()=>f==null?[]:yt.filter(g=>g.resolved===!1&&!g.id.includes(ro)),[yt,f]).length,no=(g,T)=>{qt(T);const u=g.entityType.split("."),x=parseInt(u[2]);if(isNaN(x)){ce(!1);return}const vt=`${x+1}`,M=e.lineDetailSection[x+1].type;u.includes(b.mileageKey)&&M===b.outOfPocketKey?se(Ai(b.mileageKey),vt,f):u.includes(b.outOfPocketKey)&&M===b.mileageKey&&se(Ai(b.outOfPocketKey),vt,f),ce(!1)};return t.jsx(Fr,{ref:h,children:t.jsx(lo,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:ae.current??null}},children:t.jsxs(ln,{...Ce,children:[t.jsx("form",{id:tn(en),onSubmit:g=>Zn(g),children:t.jsxs(pl,{windowSize:L,ref:ae,children:[Un?t.jsx(si,{titleComponent:t.jsx(dn,{children:be.title}),descriptionComponent:t.jsx(sn,{children:be.description}),primaryButtonText:be.primaryButtonText,secondaryButtonText:be.secondaryButtonText,action:Hn,proceedButtonVariant:be.title===b.deleteBankAccountTitle||be.title===b.deleteDraftTitle||be.title===b.deleteReportTitle||be.title===b.discardTitle?"danger":"primary",isEditPopup:be.title===b.deleteBankAccountTitle}):null,_n?t.jsx(kr,{reimbursementId:f,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:Ht,numberOfDuplicateLines:vi,setShowDuplicatePopup:wi,submitReport:Yn,fetchDuplicateReimbursement:D,clearDuplicateReimbursementDetail:z,clearRemiSaveStatus:ee,analytics:v}):null,Je?t.jsx(on,{windowSize:L}):null,Be?t.jsxs(on,{windowSize:L,"data-testid":K("skip-autofill-section"),children:[L==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Zr,{children:t.jsx(ai,{partOfSkipAutoFill:!0,size:L,onClick:()=>ht(!1),"data-testid":K("close-invoice-upload"),children:t.jsx(oi,{withOverlay:!0,children:t.jsx(ni,{})})})}),t.jsx(Qr,{children:_t})]}):null,t.jsx(kn,{showAutofill:Be,analytics:v,onSkipAutofill:()=>{v?.trackReimbursementSkipAutofill(),ht(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:X.leftSectionWidth.valuePercentage(L),boxSizing:"border-box",backgroundColor:L==="small"?Ve.colors.grey4:"unset",padding:L==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:L==="small"?i.sp0:void 0},onInvoiceUpload:g=>F(g,gt,!0),dropFilePlaceholder:{upload:b.dropReceipt.upload,single:b.dropReceipt.single,or:b.dropReceipt.or,multiple:b.dropReceipt.multiple,receipts:b.dropReceipt.receipts},updateInvoiceUploadFetchState:Oe,showInfoText:!1,allowMultiFiles:Be,type:"reimbursement"}),L!=="small"?t.jsx(Yr,{children:t.jsx(ai,{partOfSkipAutoFill:!0,onClick:()=>ht(!1),"data-testid":K("close-invoice-upload"),children:t.jsx(oi,{withOverlay:!0,children:t.jsx(ni,{})})})}):null]}):null,t.jsxs(sl,{windowSize:L,"data-testid":K("edit-reimbursement-detail-page-nav-bar-container"),children:[L!=="small"?t.jsx(Di,{style:{width:"42%"},"data-testid":K("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(dl,{"data-testid":K("zeni-logo-spend-management-reimbursement-detail-page"),onClick:de}),enableTitleOnScroll:!1,scrollableContent:h,backgroundColor:Ve.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,L!=="small"?t.jsx(Er,{}):null,t.jsx(Di,{style:{width:X.navBarWidth.valuePercentage(L)},"data-testid":K("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:_t,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Be!=!0?t.jsxs(cl,{children:[C&&f!=null?t.jsxs(ul,{isDisabled:Xe,"data-testid":K("remi-comment-button"),onClick:Xe?()=>null:g=>{g.preventDefault(),g.stopPropagation(),pt({roomId:St,companyId:Le.currentTenant?.companyId??"",companyName:Le.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:f}),ce(!0),v?.trackCommentActivity("reimbursement","clicked",Le.currentTenant?.companyName??"",Le.controllersList.controllers.map(T=>co(T)),void 0,void 0,"page icon")},children:[t.jsx(so,{count:Xe?void 0:io,isLoading:Xe,style:{left:"12px"}}),t.jsx(ml,{})]}):null,t.jsx(ai,{size:L,onClick:()=>xi(),"data-testid":K("close-nav-bar"),children:t.jsx(oi,{withOverlay:!1,children:t.jsx(ni,{})})})]}):null,enableTitleOnScroll:L!=="small",scrollThreshold:64,scrollableContent:h,backgroundColor:Ve.colors.grey4})]}),L==="small"?t.jsxs(t.Fragment,{children:[t.jsx(ll,{children:_t}),t.jsx(uo,{progressSectionObj:Qn,createDate:e.createTime,paymentDate:eo,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:f!=null?!0:e.uploadStatus==="Completed"}),Vt&&t.jsxs(tl,{children:[t.jsx(el,{}),t.jsx(il,{children:b.banner})]}),e.isProcessing?t.jsx(cn,{variant:"warning",style:{margin:L==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Qi.duplicateWarning.title,description:Qi.duplicateWarning.description}):Ht?t.jsxs(nl,{size:L,children:[t.jsx(_r,{}),t.jsxs(al,{children:[t.jsx(ol,{children:b.thereSeems}),t.jsx(rl,{children:b.pleaseFind})]})]}):null,t.jsx(Tn,{isReimbursementCommentingEnabled:C,sectionId:At,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(er,{onDuplicateLineClick:ne,reimbursementId:f,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:Be,setShowSkipAutoFill:ht,isReimbursementCommentingEnabled:C,isAutoFieldsExist:Vt,totalAmount:re,removeFileFromLine:ye,onReplaceClick:Gn,onReceiptsUpload:F,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Mn,setUploadedReceiptPayload:Wn,updateInvoiceUploadFetchState:Oe,clearTentativeNameForLine:Pe,defaultCurrency:r,companyMileageConfigInfo:c,isUserAdmin:m,setShowBankAccountPage:Et,bankAccounts:s,onDeleteBankAccount:qn,analytics:v,fileRequiredLineIds:Wt,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:S,showTotalAmountLoader:mt,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:Ht,removeDuplicateReimbursementForLine:ie,scrollContainerRef:h}),t.jsxs(hl,{showSkipAutoFill:Be,windowSize:L,children:[L!=="small"?t.jsx(nn,{}):null,t.jsx(gl,{windowSize:L,children:t.jsxs(yl,{windowSize:L,children:[e.remiId!==void 0&&t.jsx(Ti,{amount:re??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:pe,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&re!=null&&re>0?t.jsx(Ti,{amount:re??0,activities:$i,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(bl,{}),t.jsxs(Xr,{showSkipAutoFill:Be,windowSize:L,children:[L!=="small"?t.jsx(nn,{}):null,t.jsx(Nr,{windowSize:L,onClick:g=>{g.stopPropagation(),He===!0&&Ke(!1)},children:t.jsx(un,{formId:tn(en),separatorStyle:{marginRight:i.sp4},showCancel:y,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?L==="small"?b.buttons.discard:b.buttons.discardChanges:L==="small"?b.buttons.save:b.buttons.saveChanges,isLoading:Ze==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:Si,style:{width:X.footerButtonWidth.value(L)},reverseSpinnerColor:!1},primaryBtn:{label:Mr(y,m,e,L),isDisabled:!y,style:{width:y?X.footerButtonWidth.value(L):"auto"},type:y?"submit":"button",onClick:y?()=>null:Si,isLoading:!y&&Ze==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Wr,{children:t.jsxs(qr,{windowSize:L,children:[He?t.jsx(mn,{onClickAway:()=>Ke(!1),children:t.jsx(Kr,{windowSize:L,"data-testid":K("remi-other-actions-container"),children:t.jsx(Gr,{onClick:Kn,"data-testid":K("delete-report-action"),children:b.buttons.deleteReport})})}):null,t.jsx(Hr,{windowSize:L,children:to===!0?t.jsx(Vr,{windowSize:L,"data-testid":K("more-details-button"),children:t.jsx(Ur,{onClick:()=>Ke(!He)})}):null})]})}),style:{minHeight:62}})})]}),C&&f!=null?t.jsx(Mo,{id:St,children:t.jsx(mo,{isDrawerOpen:N,allowComposer:!0,drawerTitle:Or,threads:yt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:_?.companyId??Pr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Xe,threadMetadata:_?{companyName:_.companyName,companyId:_.companyId,entityId:_.entityId,entityType:_.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Rr,replyComposerPlaceholder:Lr,threadResolve:Ar,threadUnResolve:zr},onThreadClick:(g,T)=>no(g,T),onCloseAllThreadsDrawer:()=>ce(!1),drawerSectionStyle:{width:"400px",backgroundColor:Ve.colors.background}})}):null]})}),Fn?t.jsx(Jr,{windowSize:L,children:t.jsx(pr,{bankAccountCreationState:k,setShowBankAccountPage:Et,plaidConnectionDetails:l,onFetchLinkTokenClick:Re,onEstablishConnectionClick:he,onSaveHandler:R,bankAccountToCreate:O,bankNameByRouting:w,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:P,onFetchBankName:q,onBackClick:()=>{Ge(),Et(!1)}})}):null]})})})},Mr=(e,o,r,c)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?b.buttons.resubmit:b.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?c==="small"?b.buttons.discard:b.buttons.discardChanges:c==="small"?b.buttons.save:b.buttons.saveChanges,Fr=n.div`
620
620
  position: relative;
621
621
  height: 100vh;
622
622
  overflow-y: scroll;
@@ -712,7 +712,7 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
712
712
  justify-content: end;
713
713
  `,Yr=n.div`
714
714
  width: 58%;
715
- `,Qr=n(di)`
715
+ `,Qr=n(ci)`
716
716
  padding: ${i.sp3} ${i.sp3} 0 ${i.sp3};
717
717
  background: ${e=>e.theme.colors.grey4};
718
718
  color: ${e=>e.theme.colors.primary};
@@ -756,7 +756,7 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
756
756
  width: 100%;
757
757
  `,rl=n(gi)`
758
758
  color: ${e=>e.theme.colors.brandColorGoldDark};
759
- `,ll=n(di)`
759
+ `,ll=n(ci)`
760
760
  letter-spacing: -0.02em;
761
761
  color: ${e=>e.theme.colors.primary};
762
762
  margin: ${i.sp3};
@@ -778,7 +778,7 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
778
778
  width: 100%;
779
779
  justify-content: space-between;
780
780
  position: fixed;
781
- `,cl=n(ho)`
781
+ `,dl=n(ho)`
782
782
  display: flex;
783
783
  color: ${e=>e.theme.colors.brandColorJade};
784
784
  cursor: pointer;
@@ -795,7 +795,7 @@ import{aN as ri,e as ft,av as wt,a8 as an,ax as Ii,F as we,aA as rn,q as Ae,gc a
795
795
  &:hover {
796
796
  color: ${e=>e.withOverlay?j.primaryDark:e.theme.colors.primary};
797
797
  }
798
- `,dl=n.div`
798
+ `,cl=n.div`
799
799
  margin-top: ${e=>X.closeMarginTop.valuePx(e.windowSize)};
800
800
  display: flex;
801
801
  float: right;
@@ -0,0 +1,18 @@
1
+ import{d as b,F as T,aS as x,V as i,aw as C,o,C as p}from"./index-DJLrbf0F.js";import{n as a}from"./mui-DpJXlk4t.js";import{R as v}from"./TrendWithTransactions-Gj-u5KXi-CpckXM1N.js";import"./core-CA3j8Axi.js";import"./sentry-BA4piVNf.js";import"./zeni-epic-state-CQt4n3Xe.js";import"./lottie-B7mXQ-R-.js";import"./liveblocks-C2I4vRCJ.js";import"./utils-DUsHM-Uc.js";import"./analytics-CHPpxU3b.js";import"./recharts-BGdJnVo5.js";import"./lexical-dZFDzIA1.js";import"./TrendChart-D3dT6hUb-CRyvw86n.js";import"./chartTypes-DRiSljvE-CN4L62GH.js";import"./toCOABalancesWithID--oEGymMJ-DrPkDPTu.js";import"./toChartData-CavJzP6f-B2iIF7nP.js";import"./NoDataChart-C5ZP32zB-Co6FSXzL.js";import"./InsightsSection-DvqCilqy-J94KiGaL.js";import"./NavigationDots-BvKSgdgh-LQiuRx4x.js";import"./TransactionList-BixeXh4Y-Il163hc_.js";import"./BoxItem-Bjv3WNXO-DVhc5wWw.js";import"./commonDimensions-BDftm0gJ-DyUDFvZC.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e9b5f32b-69ac-44db-a583-1dba6d9f55e6",t._sentryDebugIdIdentifier="sentry-dbid-e9b5f32b-69ac-44db-a583-1dba6d9f55e6")}catch{}})();const w=a.div`
2
+ display: flex;
3
+ margin: ${o.sp0} ${o.sp0} ${o.sp0} ${o.sp0};
4
+ flex-direction: column;
5
+ width: 100%;
6
+ height: 100%;
7
+ background-color: ${t=>t.theme.colors.grey5};
8
+ `,k=a.div`
9
+ padding-left: ${o.sp0};
10
+ position: fixed;
11
+ width: 100%;
12
+ z-index: 20;
13
+ position: -webkit-sticky;
14
+ position: sticky;
15
+ top: ${o.sp0};
16
+ `,D=a.div`
17
+ flex: 1 1 auto;
18
+ `;function J({firstMonthOfFY:t,selectedEntity:e,trendWithTransactionsReport:r,autoCompleteData:l,autoCompleteActions:c,analytics:s,onTransactionItemClick:m,onTrendSelectedPeriodChange:f}){const u=b(),{dateFormat:{analytics:y}}=T.getLocalizedStrings(),g=new x(u.colors.graphColor12),h=(d,n)=>{d==="Chart"&&n!=null&&s?.trackSpendIncomeTrend(e.type==="vendor"?p.Event.spendTrend:p.Event.incomeTrend,"Search",e.type,e.name,n?.addTimePeriod.startDate.format(y.MMMYYFormat)),d==="TransactionListLoadMore"&&s?.trackTransactionList(void 0,void 0,"Search",void 0,void 0,!0),f?.(n)};return i.jsxs(w,{children:[i.jsx(k,{children:i.jsx(C,{viewType:"entity_search",searchAutoComplete:{autoCompleteData:l,autoCompleteActions:c},source:"EntityDetailPage"})}),e!=null&&r!=null&&i.jsx(D,{children:i.jsx(v,{firstMonthOfFY:t,trendWithTransactionsReport:r,isDetailPage:!1,graphColor:g,page:"EntityDetailPage",onTransactionItemClick:m,onTimePeriodChange:h})})]})}export{J as default};