@zeniai/web-components 3.16.93 → 3.16.95

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 (905) hide show
  1. package/dist/ACHDetailsPage-D19fvbL2.js +160 -0
  2. package/dist/ACHDetailsPage-wk_OoOjF.cjs +21 -0
  3. package/dist/AIPerformancePage-CtQssf2V.cjs +539 -0
  4. package/dist/AIPerformancePage-DW0vgs3w.js +1345 -0
  5. package/dist/AccountInfoPage-B0HnACVZ.js +78 -0
  6. package/dist/AccountInfoPage-Dxdlyp01.cjs +18 -0
  7. package/dist/AccountInfoPageContent-B9DHX_ra.js +428 -0
  8. package/dist/AccountInfoPageContent-CbrgOAyw.cjs +149 -0
  9. package/dist/AccountLockedInfoModal-CM1F6VNU.js +125 -0
  10. package/dist/AccountLockedInfoModal-DDCXEim9.cjs +59 -0
  11. package/dist/AccountReconDetailsDrawerPage-BbtaXRQT.js +687 -0
  12. package/dist/AccountReconDetailsDrawerPage-Cpn49MT-.cjs +239 -0
  13. package/dist/AccountRow-Cu8Fq1Ub.cjs +298 -0
  14. package/dist/AccountRow-DqB8rPL2.js +1014 -0
  15. package/dist/AccountsPromoCardStack-COoESiBe.cjs +207 -0
  16. package/dist/AccountsPromoCardStack-G9g_ND9B.js +664 -0
  17. package/dist/AddAddressForCardDrawer-UCJdFwxu.js +82 -0
  18. package/dist/AddAddressForCardDrawer-icr3JN9l.cjs +6 -0
  19. package/dist/AddToWalletPage-B-mvkRWQ.js +642 -0
  20. package/dist/AddToWalletPage-CoxUYgu4.cjs +344 -0
  21. package/dist/AgingReportsPage-D-_9vpHg.cjs +79 -0
  22. package/dist/AgingReportsPage-dKUkHiCt.js +827 -0
  23. package/dist/AllUserItems-CB09DeF_.cjs +192 -0
  24. package/dist/AllUserItems-CQki1qcr.js +979 -0
  25. package/dist/ApAgingDetailPage-B3m08COS.cjs +46 -0
  26. package/dist/ApAgingDetailPage-nMjsbSmM.js +239 -0
  27. package/dist/AppBasePage-BYj0h9gw.js +120 -0
  28. package/dist/AppBasePage-RIBthgdN.cjs +71 -0
  29. package/dist/AppDrawerContent-C21qZewJ.js +379 -0
  30. package/dist/AppDrawerContent-CgNaYtXB.cjs +91 -0
  31. package/dist/ApprovalRulesSettingsPage-B84m25GW.js +145 -0
  32. package/dist/ApprovalRulesSettingsPage-zXAcOxpl.cjs +47 -0
  33. package/dist/ArAgingChart-CLxB28eR.js +530 -0
  34. package/dist/ArAgingChart-Comx1fG3.cjs +24 -0
  35. package/dist/ArAgingDetailPage-BoJkAI6M.cjs +46 -0
  36. package/dist/ArAgingDetailPage-C5yzbIB3.js +243 -0
  37. package/dist/AttachmentView-OnxqovzE.cjs +101 -0
  38. package/dist/AttachmentView-_qAuq3Am.js +260 -0
  39. package/dist/BankAccountSection-B0pfiSf6.js +398 -0
  40. package/dist/BankAccountSection-CQNjmm8_.cjs +79 -0
  41. package/dist/BankAccountWarningSection-CFREgyss.cjs +51 -0
  42. package/dist/BankAccountWarningSection-Xo-Jy-73.js +110 -0
  43. package/dist/BankConnectionsSettingsPage-CaDdfQrN.cjs +425 -0
  44. package/dist/BankConnectionsSettingsPage-o5oe0ctd.js +1694 -0
  45. package/dist/BillDetailPage-CkpLJssw.cjs +266 -0
  46. package/dist/BillDetailPage-CtThP7Y9.js +1798 -0
  47. package/dist/BillPayApprovalRuleDetailPage-BQjmqKng.js +247 -0
  48. package/dist/BillPayApprovalRuleDetailPage-CSNcUZau.cjs +27 -0
  49. package/dist/BillPayApprovalRulesPage-BxCNEom7.js +415 -0
  50. package/dist/BillPayApprovalRulesPage-De1vhSyp.cjs +235 -0
  51. package/dist/BillPayPromoPage-BElTLopb.js +292 -0
  52. package/dist/BillPayPromoPage-N3VBFDni.cjs +84 -0
  53. package/dist/BillPaySetUpPage-BG8feTVd.js +408 -0
  54. package/dist/BillPaySetUpPage-Bny8dEQG.cjs +42 -0
  55. package/dist/BillingSettingsPage-07P7VjDH.js +336 -0
  56. package/dist/BillingSettingsPage-DDyf9RjJ.cjs +44 -0
  57. package/dist/BillsBulkReviewDrawerPage-D7EPuth4.js +216 -0
  58. package/dist/BillsBulkReviewDrawerPage-FU8nF9Mh.cjs +1 -0
  59. package/dist/BoxItem-CzX5kr9f.js +118 -0
  60. package/dist/BoxItem-DSkPneMj.cjs +53 -0
  61. package/dist/BusinessVerificationPage-DRxqBeZi.cjs +138 -0
  62. package/dist/BusinessVerificationPage-WSJeMnHc.js +716 -0
  63. package/dist/BusyIndication-K5tZ950O.js +19 -0
  64. package/dist/BusyIndication-qVZtGDu1.cjs +9 -0
  65. package/dist/CardNumberSubText-CmeaV9MY.cjs +21 -0
  66. package/dist/CardNumberSubText-D76dl24E.js +59 -0
  67. package/dist/CashbackDetailPage-BEbgfK2q.cjs +285 -0
  68. package/dist/CashbackDetailPage-CNxA7NQY.js +825 -0
  69. package/dist/ChargeCardDetailPage-BEA-UAT5.cjs +1462 -0
  70. package/dist/ChargeCardDetailPage-K4gUpiwZ.js +5454 -0
  71. package/dist/ChargeCardListPage-CyTEY_8V.js +1797 -0
  72. package/dist/ChargeCardListPage-CypinPvA.cjs +412 -0
  73. package/dist/ChargeCardListTable-BFyvNTeY.js +2901 -0
  74. package/dist/ChargeCardListTable-D8I5tlVr.cjs +711 -0
  75. package/dist/ChargeCardPromoPage-C9z3yHL2.js +816 -0
  76. package/dist/ChargeCardPromoPage-HHbFA-mc.cjs +222 -0
  77. package/dist/ChargeCardSetupPage-D0wq-ir-.cjs +36 -0
  78. package/dist/ChargeCardSetupPage-DO8JYrZP.js +359 -0
  79. package/dist/ChargeCardStatementsPage-BOikTcKC.js +243 -0
  80. package/dist/ChargeCardStatementsPage-D7PPvfS1.cjs +60 -0
  81. package/dist/CheckDepositDrawerPage-DH3MI8HN.js +726 -0
  82. package/dist/CheckDepositDrawerPage-Dh3G_eiJ.cjs +206 -0
  83. package/dist/CollapsableReportTable-B2M1S7L1.js +11659 -0
  84. package/dist/CollapsableReportTable-C8O7Xv-e.cjs +2844 -0
  85. package/dist/CompanyOfficerDetailsSection-BqY-k8Ic.js +1633 -0
  86. package/dist/CompanyOfficerDetailsSection-R4QT4vSX.cjs +260 -0
  87. package/dist/CompanyPassportCard-BR60dER0.js +146 -0
  88. package/dist/CompanyPassportCard-DOQjeEsu.cjs +42 -0
  89. package/dist/CompanyPassportPage-Bmd04hik.js +2160 -0
  90. package/dist/CompanyPassportPage-CPuIyXvI.cjs +574 -0
  91. package/dist/CompleteProfile-Dm9IhNbX.cjs +52 -0
  92. package/dist/CompleteProfile-UULN8u-c.js +301 -0
  93. package/dist/ConfettiBurst-CozTW5Rn.js +37 -0
  94. package/dist/ConfettiBurst-zwNh4JCQ.cjs +1 -0
  95. package/dist/CreateOrEditVendorPage-D78xf5_Y.js +763 -0
  96. package/dist/CreateOrEditVendorPage-GYGkbBt8.cjs +281 -0
  97. package/dist/CreditCardPaymentDrawerPage-Bj9_96UC.cjs +224 -0
  98. package/dist/CreditCardPaymentDrawerPage-CuqD_nKw.js +1170 -0
  99. package/dist/CurrencySelectField-DWAO-FaV.js +348 -0
  100. package/dist/CurrencySelectField-g4GrpdqE.cjs +139 -0
  101. package/dist/CustomerOnboardingActivationPage-CVFjnQyI.cjs +88 -0
  102. package/dist/CustomerOnboardingActivationPage-Cib3Mx_T.js +143 -0
  103. package/dist/CustomerOnboardingContainerPage-B6irVTU7.cjs +1 -0
  104. package/dist/CustomerOnboardingContainerPage-J1gLDhpW.js +7 -0
  105. package/dist/CustomerOnboardingDetailPageSkeleton-VIZpDXJC.cjs +162 -0
  106. package/dist/CustomerOnboardingDetailPageSkeleton-XJtMtsSn.js +434 -0
  107. package/dist/CustomerOnboardingNoStepsPage-B_0Hrx2F.js +424 -0
  108. package/dist/CustomerOnboardingNoStepsPage-CsEniz1q.cjs +66 -0
  109. package/dist/CustomerOnboardingPage-D4CG8sTb.cjs +107 -0
  110. package/dist/CustomerOnboardingPage-aBkvsh1l.js +1094 -0
  111. package/dist/CustomerOnboardingProductSuitePage-BpF-YMGr.js +348 -0
  112. package/dist/CustomerOnboardingProductSuitePage-BsgHouxQ.cjs +202 -0
  113. package/dist/Dashboard-PoZO9l3-.js +5540 -0
  114. package/dist/Dashboard-pTXYJ7cq.cjs +1551 -0
  115. package/dist/DashboardReportPage--m1KiT3x.js +2536 -0
  116. package/dist/DashboardReportPage-DO1GhhFd.cjs +371 -0
  117. package/dist/DashboardSidebarBackgroundAnimation-B9k788rT.cjs +12 -0
  118. package/dist/DashboardSidebarBackgroundAnimation-bBmcRJEU.js +53 -0
  119. package/dist/DepositAccTransactionItem-C8Bq-GBb.cjs +76 -0
  120. package/dist/DepositAccTransactionItem-tRzKuflq.js +112 -0
  121. package/dist/DepositAccTransactionListPage-AwxQHNLD.js +152 -0
  122. package/dist/DepositAccTransactionListPage-DnMh5P3k.cjs +66 -0
  123. package/dist/DomesticWireDetailsPage-CuE-QHLh.js +189 -0
  124. package/dist/DomesticWireDetailsPage-DT-FSmVC.cjs +21 -0
  125. package/dist/DownloadOverlay-Dy2YR_VW.cjs +439 -0
  126. package/dist/DownloadOverlay-ebdpHSki.js +2148 -0
  127. package/dist/DrawerPage-BJVDhT4E.cjs +118 -0
  128. package/dist/DrawerPage-DHT0UTT4.js +208 -0
  129. package/dist/EditPeoplePage-DnlxIHaj.cjs +55 -0
  130. package/dist/EditPeoplePage-Ds7odnkL.js +392 -0
  131. package/dist/EditReimbursementDetailPage-1VpqzNAU.cjs +865 -0
  132. package/dist/EditReimbursementDetailPage-B6EHHEhj.js +4531 -0
  133. package/dist/EmptySearchResults-3FFbgKD9.js +70 -0
  134. package/dist/EmptySearchResults-Ds5y5v2x.cjs +46 -0
  135. package/dist/EntityDetailPage-BJ_UcXyk.cjs +18 -0
  136. package/dist/EntityDetailPage-sR_MHnxH.js +82 -0
  137. package/dist/EntitySummarySection-BLwfMK6_.js +530 -0
  138. package/dist/EntitySummarySection-SQFhqK7g.cjs +149 -0
  139. package/dist/ExpenseAutomationOverviewPage-BRlLZD6k.cjs +281 -0
  140. package/dist/ExpenseAutomationOverviewPage-BqFR2yic.js +807 -0
  141. package/dist/ExpenseAutomationPage-C7IKGki-.js +11583 -0
  142. package/dist/ExpenseAutomationPage-DQqr4Dou.cjs +1650 -0
  143. package/dist/ExpressPayPage-C6UtAiIN.js +1136 -0
  144. package/dist/ExpressPayPage-D_Zm9z4S.cjs +168 -0
  145. package/dist/FeaturePreviewPage-C_b5hdtk.js +114 -0
  146. package/dist/FeaturePreviewPage-DLU9JOKW.cjs +11 -0
  147. package/dist/FollowStepsSection-dgWK-_PA.js +1313 -0
  148. package/dist/FollowStepsSection-x-nMKFbt.cjs +390 -0
  149. package/dist/GlobalReviewListPage-Bs7BRxg_.js +1674 -0
  150. package/dist/GlobalReviewListPage-cKq4Btyk.cjs +291 -0
  151. package/dist/InformationCardStack-Def3TczI.js +219 -0
  152. package/dist/InformationCardStack-HhSzy3GD.cjs +31 -0
  153. package/dist/InsightsCardStack-BPIS4AP2.cjs +79 -0
  154. package/dist/InsightsCardStack-CDejyDrL.js +305 -0
  155. package/dist/InsightsSection-CO-WR0SD.cjs +27 -0
  156. package/dist/InsightsSection-DeLBGRXz.js +97 -0
  157. package/dist/IntegrationsSettingsPage-DATr031p.cjs +57 -0
  158. package/dist/IntegrationsSettingsPage-Vd7CM5dW.js +136 -0
  159. package/dist/InternationalWireSwiftDetailsPage-CPIzRzqS.js +753 -0
  160. package/dist/InternationalWireSwiftDetailsPage-jkeYPHeY.cjs +171 -0
  161. package/dist/InternationalWireVerificationPage-Bk7TeRAz.cjs +292 -0
  162. package/dist/InternationalWireVerificationPage-Cc3OKrpr.js +877 -0
  163. package/dist/InviteFormPage-CZGS0FOH.cjs +312 -0
  164. package/dist/InviteFormPage-hXbvSboB.js +873 -0
  165. package/dist/InvitePageListView-BB8Tf-Gw.cjs +739 -0
  166. package/dist/InvitePageListView-xv6f7OYE.js +1764 -0
  167. package/dist/InvitePeoplePage-Bns8mbbj.js +286 -0
  168. package/dist/InvitePeoplePage-Dn5RDiYO.cjs +12 -0
  169. package/dist/InvoiceUploadSection-C-kFsye_.cjs +140 -0
  170. package/dist/InvoiceUploadSection-wKWbAAeR.js +465 -0
  171. package/dist/IssueChargeCardPage-BHa85DbL.cjs +532 -0
  172. package/dist/IssueChargeCardPage-BbCULpNx.js +2875 -0
  173. package/dist/LabeledAddressValue-BiZJ5Dxn.cjs +49 -0
  174. package/dist/LabeledAddressValue-CYPuDjMF.js +115 -0
  175. package/dist/LabeledAddressValueField-C4ft1l-K.js +130 -0
  176. package/dist/LabeledAddressValueField-Cq8sW-at.cjs +45 -0
  177. package/dist/LabeledControlledCheckBoxField-DHrJB0QL.js +73 -0
  178. package/dist/LabeledControlledCheckBoxField-zxnLebiY.cjs +16 -0
  179. package/dist/LabeledCreatableSingleSelectField-BeelRB2Y.js +515 -0
  180. package/dist/LabeledCreatableSingleSelectField-T3HJtW8r.cjs +204 -0
  181. package/dist/LabeledDocumentField-BRyK7MkU.cjs +41 -0
  182. package/dist/LabeledDocumentField-CgMzc8wC.js +147 -0
  183. package/dist/LabeledDropDownFormattedTextField-DTU50Ewj.cjs +59 -0
  184. package/dist/LabeledDropDownFormattedTextField-DcO2nEfi.js +163 -0
  185. package/dist/LabeledEmailInputField-B6g-BA38.cjs +182 -0
  186. package/dist/LabeledEmailInputField-vYbf9nD2.js +425 -0
  187. package/dist/LabeledItemWithButton-BaudQcLJ.cjs +21 -0
  188. package/dist/LabeledItemWithButton-D0qfOec8.js +74 -0
  189. package/dist/LabeledNameField-Cv8P2AXQ.cjs +141 -0
  190. package/dist/LabeledNameField-CxddpZZo.js +293 -0
  191. package/dist/LabeledSingleSelectField-CIdP5ikL.js +372 -0
  192. package/dist/LabeledSingleSelectField-CetYWvdW.cjs +136 -0
  193. package/dist/LabeledSingleSelectWithoutClearableField-CbARscZp.cjs +38 -0
  194. package/dist/LabeledSingleSelectWithoutClearableField-DGm7KtJU.js +103 -0
  195. package/dist/LabeledText-BNDM-899.js +103 -0
  196. package/dist/LabeledText-UfT9AjW8.cjs +42 -0
  197. package/dist/LabeledUserSingleSelectWithSubtitlesField-DZ7VaLKz.cjs +229 -0
  198. package/dist/LabeledUserSingleSelectWithSubtitlesField-TSpiqQUi.js +572 -0
  199. package/dist/LabeledZeniRolesDropDownField-C5I9rtgW.js +975 -0
  200. package/dist/LabeledZeniRolesDropDownField-DyKs3xN8.cjs +297 -0
  201. package/dist/LinkJETransactionPage-BWrpuWUo.js +406 -0
  202. package/dist/LinkJETransactionPage-OBRdMiBn.cjs +98 -0
  203. package/dist/LockCardPage-CPqDo-Rl.cjs +623 -0
  204. package/dist/LockCardPage-Ddf8_2ti.js +2032 -0
  205. package/dist/LowBalancePopup-BMSJwe7h.js +219 -0
  206. package/dist/LowBalancePopup-Cu8qfPrB.cjs +34 -0
  207. package/dist/MagicLinkACHDetailsPage--sbw2gZ6.cjs +1 -0
  208. package/dist/MagicLinkACHDetailsPage-CRYqb_qO.js +39 -0
  209. package/dist/MagicLinkDomesticWireDetailsPage-CE12GLds.js +44 -0
  210. package/dist/MagicLinkDomesticWireDetailsPage-Hs7_azM4.cjs +1 -0
  211. package/dist/MagicLinkInternationalWireDetailsPage-BTT9n9mq.cjs +1 -0
  212. package/dist/MagicLinkInternationalWireDetailsPage-DO4DIUrG.js +43 -0
  213. package/dist/MagicLinkSuccessPage-DrTIIf2N.cjs +31 -0
  214. package/dist/MagicLinkSuccessPage-fsnKXDBD.js +59 -0
  215. package/dist/MagicLinkTitleSection-DQw4cqq_.js +40 -0
  216. package/dist/MagicLinkTitleSection-DYPaX7EA.cjs +17 -0
  217. package/dist/MailingDetailsSection-CAV69_Sr.js +74 -0
  218. package/dist/MailingDetailsSection-MFBugPIQ.cjs +21 -0
  219. package/dist/MatchingOperatorDropdown-CXM1-yh4.cjs +130 -0
  220. package/dist/MatchingOperatorDropdown-DwQctFPk.js +572 -0
  221. package/dist/Menu-B_DpiT_k.js +110 -0
  222. package/dist/Menu-DfZQTi6g.cjs +17 -0
  223. package/dist/MoreMenuButton-B64CVFwk.cjs +167 -0
  224. package/dist/MoreMenuButton-B8VIX-xp.js +569 -0
  225. package/dist/MyBankConnectionsSettingsPage-CM2Faxmi.js +297 -0
  226. package/dist/MyBankConnectionsSettingsPage-D-Yoo2io.cjs +110 -0
  227. package/dist/MyPendingActivationChargeCardListPage-BDvzx7eu.cjs +6 -0
  228. package/dist/MyPendingActivationChargeCardListPage-BV2N6fOb.js +168 -0
  229. package/dist/MyProfileSettingsPage-BjGB1P4t.js +641 -0
  230. package/dist/MyProfileSettingsPage-Bs0W0jBU.cjs +85 -0
  231. package/dist/NavBarWithPicker-CrDC7aPk.js +106 -0
  232. package/dist/NavBarWithPicker-DmI6nCNz.cjs +30 -0
  233. package/dist/NavigationArrow-AIYiZbYj.js +88 -0
  234. package/dist/NavigationArrow-qaHGDHq7.cjs +47 -0
  235. package/dist/NavigationDots-CVjs5Sdt.js +44 -0
  236. package/dist/NavigationDots-DmWLKbNT.cjs +15 -0
  237. package/dist/NewGlobalMerchantPage-Bx1M-Dpk.js +543 -0
  238. package/dist/NewGlobalMerchantPage-CxuxTcpH.cjs +160 -0
  239. package/dist/NoDataChart-B_yk9del.js +58 -0
  240. package/dist/NoDataChart-ZYlFKNeu.cjs +26 -0
  241. package/dist/NoDataTable-CYW-GfBv.cjs +8 -0
  242. package/dist/NoDataTable-DRJW6ofl.js +27 -0
  243. package/dist/NotFoundPage-C6X8pmKB.js +71 -0
  244. package/dist/NotFoundPage-DUjB-Cvy.cjs +46 -0
  245. package/dist/NotificationSettingsPage-CsaIk9hI.js +541 -0
  246. package/dist/NotificationSettingsPage-J4rN81dJ.cjs +163 -0
  247. package/dist/NotificationsListConfig-B8ldcs-T.js +10 -0
  248. package/dist/NotificationsListConfig-CcFOEXpU.cjs +1 -0
  249. package/dist/NotificationsPage-Cv2LlPX0.js +2664 -0
  250. package/dist/NotificationsPage-DMaoVqAl.cjs +685 -0
  251. package/dist/OpExByVendorPage-K9AOvf6S.cjs +100 -0
  252. package/dist/OpExByVendorPage-cVCb-lRK.js +1058 -0
  253. package/dist/PandLWithForecastPage-BFGppjBo.cjs +107 -0
  254. package/dist/PandLWithForecastPage-CG5AGAFM.js +563 -0
  255. package/dist/PaymentAccountSetupBillingAddressSection-BoDvDyQM.cjs +106 -0
  256. package/dist/PaymentAccountSetupBillingAddressSection-DFeVoMTQ.js +623 -0
  257. package/dist/PeoplePage-WlPKN4CF.cjs +675 -0
  258. package/dist/PeoplePage-vwcbvzlP.js +1994 -0
  259. package/dist/ProductsCarousel-C2h9pwDb.js +309 -0
  260. package/dist/ProductsCarousel-CEXIIy9T.cjs +142 -0
  261. package/dist/PromoBaseCards-eJJXwTt_.cjs +218 -0
  262. package/dist/PromoBaseCards-nxua6geT.js +356 -0
  263. package/dist/QBOConnectionDialog-BRU6xjQi.js +115 -0
  264. package/dist/QBOConnectionDialog-kZyW6IX8.cjs +51 -0
  265. package/dist/QBOSetupSection-CvWw_-bE.js +167 -0
  266. package/dist/QBOSetupSection-qoPKBaig.cjs +79 -0
  267. package/dist/ReimbursementApprovalRuleDetailPage-CDAPt76T.js +247 -0
  268. package/dist/ReimbursementApprovalRuleDetailPage-CL8Mmop3.cjs +26 -0
  269. package/dist/ReimbursementApprovalRulesPage-CT8KUn9L.js +410 -0
  270. package/dist/ReimbursementApprovalRulesPage-szoh1JdN.cjs +237 -0
  271. package/dist/ReimbursementDetailPage-BlWqdoKk.js +1514 -0
  272. package/dist/ReimbursementDetailPage-Cygiml9F.cjs +314 -0
  273. package/dist/ReimbursementPromoPage-B9H9hlkV.cjs +84 -0
  274. package/dist/ReimbursementPromoPage-C12vL_aT.js +363 -0
  275. package/dist/ReimbursementSetUpPage-Bx4eKFea.cjs +140 -0
  276. package/dist/ReimbursementSetUpPage-aeXyHOzw.js +663 -0
  277. package/dist/ReimbursementsBulkReviewDrawerPage-BZn17ZAb.js +204 -0
  278. package/dist/ReimbursementsBulkReviewDrawerPage-CoffuX5s.cjs +1 -0
  279. package/dist/ReloadCard-BVcEjrcM.js +137 -0
  280. package/dist/ReloadCard-DJ_C-EfK.cjs +26 -0
  281. package/dist/ReloadContainer-BX7OBliW.js +2165 -0
  282. package/dist/ReloadContainer-C_uUd5op.cjs +596 -0
  283. package/dist/ReportTableViewSelector-DAjv6TQb.cjs +150 -0
  284. package/dist/ReportTableViewSelector-DlD_ISoP.js +679 -0
  285. package/dist/ReportsPage-CqXr-QZi.js +1315 -0
  286. package/dist/ReportsPage-oDtOdnN0.cjs +121 -0
  287. package/dist/RevenueChart-B1KEseXB.js +2240 -0
  288. package/dist/RevenueChart-oFRLwjHZ.cjs +280 -0
  289. package/dist/ReviewDetailsPage-BgKz9kIV.cjs +290 -0
  290. package/dist/ReviewDetailsPage-CYhNq-J0.js +1073 -0
  291. package/dist/ReviewOverlay-CkDsXXfs.cjs +152 -0
  292. package/dist/ReviewOverlay-DkL6mTyl.js +299 -0
  293. package/dist/RoleWithToolTip-B3HwWNuP.cjs +22 -0
  294. package/dist/RoleWithToolTip-DRSravXg.js +72 -0
  295. package/dist/ScheduleDetailsFixedAssetsPage-BfAmIH7o.cjs +37 -0
  296. package/dist/ScheduleDetailsFixedAssetsPage-BsigTjZM.js +806 -0
  297. package/dist/ScheduleDetailsPage-B5B51gzI.cjs +37 -0
  298. package/dist/ScheduleDetailsPage-C-lGzBL_.js +726 -0
  299. package/dist/ScheduleSequenceTable-BCmdqAXy.js +1261 -0
  300. package/dist/ScheduleSequenceTable-DDH1pUPC.cjs +324 -0
  301. package/dist/SetUpAccountSection-BKOCyUH3.js +1469 -0
  302. package/dist/SetUpAccountSection-zR8JnYmm.cjs +378 -0
  303. package/dist/SignIn-BCQE-TTL.cjs +448 -0
  304. package/dist/SignIn-CS-J3pfV.js +1075 -0
  305. package/dist/SpendManagementListViewPage-BiHQp4Tk.cjs +122 -0
  306. package/dist/SpendManagementListViewPage-Df2_A3Ff.js +627 -0
  307. package/dist/SpendManagementPerTabPage-CMowSBFq.js +2735 -0
  308. package/dist/SpendManagementPerTabPage-CbdgF6pd.cjs +754 -0
  309. package/dist/SpendManagementSection-CMV7noyB.js +1043 -0
  310. package/dist/SpendManagementSection-ZWaC54fT.cjs +230 -0
  311. package/dist/StatementItem-DJ39tw7i.js +81 -0
  312. package/dist/StatementItem-ksakDDXC.cjs +31 -0
  313. package/dist/StatementsPage-BvHwKbEs.cjs +58 -0
  314. package/dist/StatementsPage-bQ7Ni723.js +130 -0
  315. package/dist/StatusSwitcher-BM33IJVd.cjs +120 -0
  316. package/dist/StatusSwitcher-dxck0-_D.js +319 -0
  317. package/dist/SubTabSwitcher-DJRCwIbt.cjs +58 -0
  318. package/dist/SubTabSwitcher-iw3pF9RG.js +113 -0
  319. package/dist/SuccessAnimation-BXippMvU.js +52 -0
  320. package/dist/SuccessAnimation-DMw8t9fw.cjs +13 -0
  321. package/dist/SummaryCard-BcdM-YuK.cjs +1 -0
  322. package/dist/SummaryCard-BhSCeFtW.js +25 -0
  323. package/dist/TaskDetailPage-BY2rW1EA.js +2533 -0
  324. package/dist/TaskDetailPage-oxa4m94O.cjs +775 -0
  325. package/dist/TaskListRow-BVRCVsOe.cjs +556 -0
  326. package/dist/TaskListRow-D1DJIJ60.js +1950 -0
  327. package/dist/TaskManagementPage-BhiHAm59.cjs +508 -0
  328. package/dist/TaskManagementPage-g-ZeUacD.js +1935 -0
  329. package/dist/TimeRangeSwitcher-D7V3BEJp.cjs +64 -0
  330. package/dist/TimeRangeSwitcher-DV7Vkxir.js +265 -0
  331. package/dist/TimeframeSwitcher-DGN5L0Db.cjs +31 -0
  332. package/dist/TimeframeSwitcher-n-e2hXsK.js +103 -0
  333. package/dist/TimeframeSwitcherWithToggle-CRJFLiDr.cjs +31 -0
  334. package/dist/TimeframeSwitcherWithToggle-DLiPwXnZ.js +157 -0
  335. package/dist/TopExCard-CUCtGWMG.js +569 -0
  336. package/dist/TopExCard-xG10gkxE.cjs +38 -0
  337. package/dist/TopExDetailPage-DZtBvpvt.cjs +132 -0
  338. package/dist/TopExDetailPage-Du_E_YKe.js +318 -0
  339. package/dist/TransactionDetailPage-B0tt0OMQ.cjs +912 -0
  340. package/dist/TransactionDetailPage-CgT445to.js +5238 -0
  341. package/dist/TransactionList-CxBC5YBo.cjs +147 -0
  342. package/dist/TransactionList-we_zUYsL.js +558 -0
  343. package/dist/TransactionListBig-Ctzd-f0m.cjs +284 -0
  344. package/dist/TransactionListBig-nH1Qjoil.js +658 -0
  345. package/dist/TransactionListPage-38GpLjpf.js +145 -0
  346. package/dist/TransactionListPage-D3D8Iief.cjs +35 -0
  347. package/dist/TransactionVendorDetailPage-D9Xiyh8f.js +425 -0
  348. package/dist/TransactionVendorDetailPage-FKohcBQy.cjs +80 -0
  349. package/dist/TransferDrawerPage-CQFD6Sv1.cjs +362 -0
  350. package/dist/TransferDrawerPage-lmX46zkj.js +1436 -0
  351. package/dist/TreasuryOverviewPage-BRcee3DT.cjs +708 -0
  352. package/dist/TreasuryOverviewPage-C4AZO1qa.js +1890 -0
  353. package/dist/TreasuryPromoPage-BXwJi1NK.cjs +505 -0
  354. package/dist/TreasuryPromoPage-D2UpPIMJ.js +1123 -0
  355. package/dist/TreasuryStatementsPage-C00TDK8U.cjs +58 -0
  356. package/dist/TreasuryStatementsPage-DJZjPYxF.js +131 -0
  357. package/dist/TreasuryTaxLetterPage-CRhVrCVC.js +131 -0
  358. package/dist/TreasuryTaxLetterPage-Ci-uvsom.cjs +58 -0
  359. package/dist/TrendChart-B3602phb.cjs +16 -0
  360. package/dist/TrendChart-C6eEpBKz.js +334 -0
  361. package/dist/TrendWithTransactions-CesVaJPk.js +346 -0
  362. package/dist/TrendWithTransactions-Vn1U-fJj.cjs +116 -0
  363. package/dist/UncategorizedAccountsMappingPage-Czy6CYEz.cjs +244 -0
  364. package/dist/UncategorizedAccountsMappingPage-wFi1shv1.js +1159 -0
  365. package/dist/UnitIntegrationPage-Bv2VpBv3.cjs +67 -0
  366. package/dist/UnitIntegrationPage-Dc1U07vV.js +405 -0
  367. package/dist/UploadAdditionalDocumentOverlay-Bd8S4nFV.cjs +38 -0
  368. package/dist/UploadAdditionalDocumentOverlay-E73Idplv.js +211 -0
  369. package/dist/Vendor2FAPopup-BvdRkNkS.js +69 -0
  370. package/dist/Vendor2FAPopup-DllmeBzT.cjs +1 -0
  371. package/dist/VendorACHDetailsPage-DSwUAV1v.js +43 -0
  372. package/dist/VendorACHDetailsPage-DlZ-np_3.cjs +1 -0
  373. package/dist/VendorDetailPage-B6g6zt7Z.cjs +257 -0
  374. package/dist/VendorDetailPage-DNoyNRTj.js +1236 -0
  375. package/dist/VendorDomesticWireDetailsPage-Bc8qjWTX.js +53 -0
  376. package/dist/VendorDomesticWireDetailsPage-Fc9Cxx1a.cjs +1 -0
  377. package/dist/VendorFiling1099EditablePage-B1B5iG9x.js +842 -0
  378. package/dist/VendorFiling1099EditablePage-CNaJJ3GZ.cjs +175 -0
  379. package/dist/VendorFirstReviewPage-B4yTlldy.js +2748 -0
  380. package/dist/VendorFirstReviewPage-BSXmf2rZ.cjs +730 -0
  381. package/dist/VendorInternationalWireDetailsPage-C75e6UGi.cjs +152 -0
  382. package/dist/VendorInternationalWireDetailsPage-CJFUOmlk.js +968 -0
  383. package/dist/VendorInternationalWireSwiftDetailsPage-CErU8raj.cjs +1 -0
  384. package/dist/VendorInternationalWireSwiftDetailsPage-CegBbxXf.js +52 -0
  385. package/dist/VendorsAccountsSection-DmEHyvLE.cjs +68 -0
  386. package/dist/VendorsAccountsSection-WAKW9Ve9.js +279 -0
  387. package/dist/VerifyDevice-CcZqv2Lp.js +298 -0
  388. package/dist/VerifyDevice-CeR3KSyP.cjs +112 -0
  389. package/dist/VideoPlayer-BpEyxLYQ.cjs +77 -0
  390. package/dist/VideoPlayer-UPe1R-1g.js +170 -0
  391. package/dist/VideoPopup-CUd3F8wz.js +60 -0
  392. package/dist/VideoPopup-Cpd2pxtl.cjs +31 -0
  393. package/dist/WarningsDrawerPage-3P8MpGll.cjs +92 -0
  394. package/dist/WarningsDrawerPage-CDKJe82X.js +228 -0
  395. package/dist/ZeniAccountDetailPage-Bm-Zan6l.js +908 -0
  396. package/dist/ZeniAccountDetailPage-BxknHkxN.cjs +300 -0
  397. package/dist/ZeniAccountListViewPage-CCB38vGw.js +1078 -0
  398. package/dist/ZeniAccountListViewPage-t2B0Xkgs.cjs +441 -0
  399. package/dist/ZeniAccountNavBarPieces-CLhDDOWv.cjs +14 -0
  400. package/dist/ZeniAccountNavBarPieces-Cxtt22Vg.js +89 -0
  401. package/dist/ZeniAccountPromoPage-0NXmIQbU.cjs +184 -0
  402. package/dist/ZeniAccountPromoPage-CPLBUFop.js +522 -0
  403. package/dist/ZeniAccountSetupPage-jOZVnJMr.js +309 -0
  404. package/dist/ZeniAccountSetupPage-ui3cwcMO.cjs +36 -0
  405. package/dist/ZeniAvatar-BD61QXx5.cjs +13 -0
  406. package/dist/ZeniAvatar-DNpCrrKE.js +34 -0
  407. package/dist/ZeniCopyright-BX77ah4B.js +9 -0
  408. package/dist/ZeniCopyright-Bh9shl-o.cjs +1 -0
  409. package/dist/ZeniDatePicker-BXohUOwy.js +386 -0
  410. package/dist/ZeniDatePicker-CvGzsNfU.cjs +187 -0
  411. package/dist/ZeniTransferAmountSlider-D_e1aK-S.cjs +63 -0
  412. package/dist/ZeniTransferAmountSlider-DwZiry1v.js +215 -0
  413. package/dist/analyticsHelper-D74sOCSo.cjs +1 -0
  414. package/dist/analyticsHelper-tTHd6Unu.js +65 -0
  415. package/dist/calculateSize-B5kahr1G.js +22 -0
  416. package/dist/calculateSize-DUqTiZqy.cjs +1 -0
  417. package/dist/chartTypes-BFYRQ3Cv.js +47 -0
  418. package/dist/chartTypes-BeBQuLEe.cjs +1 -0
  419. package/dist/cockpit.cjs.js +2 -2
  420. package/dist/cockpit.esm.js +15 -15
  421. package/dist/common-Bvc67QXc.js +22 -0
  422. package/dist/common-GCqI-nRD.cjs +1 -0
  423. package/dist/commonDimensions-C2kzP_me.js +13 -0
  424. package/dist/commonDimensions-C3QvaI1o.cjs +1 -0
  425. package/dist/detailCommon-BAtNx7ca.js +124 -0
  426. package/dist/detailCommon-Dy5z8mJ6.cjs +38 -0
  427. package/dist/downloadPdf-Dvc9c-Km.cjs +1 -0
  428. package/dist/downloadPdf-Sdq-1kVQ.js +32 -0
  429. package/dist/index-B9wG56Sb.js +92167 -0
  430. package/dist/index-DbeDc75y.cjs +21111 -0
  431. package/dist/index.cjs.js +1 -1
  432. package/dist/index.esm.js +1 -1
  433. package/dist/mapLoadingInProgressToTreeNode-8AkwjRg3.js +25 -0
  434. package/dist/mapLoadingInProgressToTreeNode-DNvIoRl8.cjs +1 -0
  435. package/dist/mapSectionWithAcOnlyToTreeNode-4xd7D21g.cjs +1 -0
  436. package/dist/mapSectionWithAcOnlyToTreeNode-BZ6gG9Ko.js +387 -0
  437. package/dist/mapSpacerToTreeNode-BmS2slGC.cjs +1 -0
  438. package/dist/mapSpacerToTreeNode-CfM4s6Ab.js +25 -0
  439. package/dist/mapTimeframeBalancesToTreeNode-B0gWnt3S.js +24 -0
  440. package/dist/mapTimeframeBalancesToTreeNode-CZJ4xgBH.cjs +1 -0
  441. package/dist/mapTimeframeBalancesToTreeNode-CgKejCE5.cjs +1 -0
  442. package/dist/mapTimeframeBalancesToTreeNode-Ckh-PZp0.js +24 -0
  443. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-B6ynSFN-.js +32 -0
  444. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-CV__DCQT.cjs +1 -0
  445. package/dist/sectionColor-B_pCO3YX.cjs +1 -0
  446. package/dist/sectionColor-CurzXcnH.js +32 -0
  447. package/dist/toCOABalancesWithID-BQU0rcwz.cjs +1 -0
  448. package/dist/toCOABalancesWithID-CHuRV6Cy.js +8 -0
  449. package/dist/toChartData-DCsJk0-J.cjs +1 -0
  450. package/dist/toChartData-DjeEqlPj.js +76 -0
  451. package/dist/uploadAttachment-Bc2Dsh7T.cjs +286 -0
  452. package/dist/uploadAttachment-l_PHn7FL.js +952 -0
  453. package/dist/zeniDatePicker.helpers-DHtpSHpg.cjs +1 -0
  454. package/dist/zeniDatePicker.helpers-DhTjsg1E.js +14 -0
  455. package/package.json +3 -3
  456. package/dist/ACHDetailsPage-DZAhdHlC.cjs +0 -21
  457. package/dist/ACHDetailsPage-Dzk7YdoJ.js +0 -160
  458. package/dist/AIPerformancePage-DBCH9dJi.js +0 -1345
  459. package/dist/AIPerformancePage-Yj78EYeJ.cjs +0 -539
  460. package/dist/AccountInfoPage-C8NJ-Nvg.cjs +0 -18
  461. package/dist/AccountInfoPage-Mzw-22d_.js +0 -78
  462. package/dist/AccountInfoPageContent-Bjp81drF.js +0 -428
  463. package/dist/AccountInfoPageContent-SNhACFkg.cjs +0 -149
  464. package/dist/AccountLockedInfoModal-DtfXdnNt.cjs +0 -59
  465. package/dist/AccountLockedInfoModal-Zg2PAu1o.js +0 -125
  466. package/dist/AccountReconDetailsDrawerPage-BTkrwp4Q.js +0 -687
  467. package/dist/AccountReconDetailsDrawerPage-CUzunYxk.cjs +0 -239
  468. package/dist/AccountRow-CIsbwvGp.js +0 -1014
  469. package/dist/AccountRow-DmfqwsKu.cjs +0 -298
  470. package/dist/AccountsPromoCardStack-DrElZh-K.js +0 -664
  471. package/dist/AccountsPromoCardStack-ciMlYoMr.cjs +0 -207
  472. package/dist/AddAddressForCardDrawer-D5Kqxx0c.js +0 -82
  473. package/dist/AddAddressForCardDrawer-S3ApNRiS.cjs +0 -6
  474. package/dist/AddToWalletPage-68rWu1tw.cjs +0 -344
  475. package/dist/AddToWalletPage-B68eBsAU.js +0 -642
  476. package/dist/AgingReportsPage-BlQHxYjL.js +0 -827
  477. package/dist/AgingReportsPage-sqpAPqGy.cjs +0 -79
  478. package/dist/AllUserItems-Brw9F8Wb.cjs +0 -192
  479. package/dist/AllUserItems-DsECKAGD.js +0 -979
  480. package/dist/ApAgingDetailPage-Bg0ZrGXm.js +0 -239
  481. package/dist/ApAgingDetailPage-DfJ7_AB-.cjs +0 -46
  482. package/dist/AppBasePage-BaLR6lmB.cjs +0 -71
  483. package/dist/AppBasePage-tPaBc2ei.js +0 -120
  484. package/dist/AppDrawerContent-21QbDnL-.cjs +0 -91
  485. package/dist/AppDrawerContent-Cx4zDKi_.js +0 -379
  486. package/dist/ApprovalRulesSettingsPage-B-bAvYxw.cjs +0 -47
  487. package/dist/ApprovalRulesSettingsPage-BcRZvSQH.js +0 -145
  488. package/dist/ArAgingChart-Bce9G3aV.cjs +0 -24
  489. package/dist/ArAgingChart-RdGwOP5k.js +0 -530
  490. package/dist/ArAgingDetailPage-Bh7NAVZf.js +0 -243
  491. package/dist/ArAgingDetailPage-CcLZ4unL.cjs +0 -46
  492. package/dist/AttachmentView-CE3MY5xN.cjs +0 -101
  493. package/dist/AttachmentView-ClnTjRCg.js +0 -260
  494. package/dist/BankAccountSection-Cgc7mExz.cjs +0 -79
  495. package/dist/BankAccountSection-D3sQOQ-c.js +0 -398
  496. package/dist/BankAccountWarningSection-BdrglxXk.cjs +0 -51
  497. package/dist/BankAccountWarningSection-CxLBPI_P.js +0 -110
  498. package/dist/BankConnectionsSettingsPage-BicqZMNf.cjs +0 -425
  499. package/dist/BankConnectionsSettingsPage-Bsix2nzV.js +0 -1694
  500. package/dist/BillDetailPage-B52FZrvM.js +0 -1798
  501. package/dist/BillDetailPage-Eql9e7cQ.cjs +0 -266
  502. package/dist/BillPayApprovalRuleDetailPage-C8S2g0eC.cjs +0 -27
  503. package/dist/BillPayApprovalRuleDetailPage-CswUbxdi.js +0 -247
  504. package/dist/BillPayApprovalRulesPage-B-8sIYjs.js +0 -415
  505. package/dist/BillPayApprovalRulesPage-DJN703Qy.cjs +0 -235
  506. package/dist/BillPayPromoPage-B6jW_8rf.js +0 -292
  507. package/dist/BillPayPromoPage-BanfoPsG.cjs +0 -84
  508. package/dist/BillPaySetUpPage-BhRTyKpF.cjs +0 -42
  509. package/dist/BillPaySetUpPage-Rqxy02BM.js +0 -408
  510. package/dist/BillingSettingsPage-BKzlt1MN.cjs +0 -44
  511. package/dist/BillingSettingsPage-CPs5zrIc.js +0 -336
  512. package/dist/BillsBulkReviewDrawerPage-BDIESFdM.cjs +0 -1
  513. package/dist/BillsBulkReviewDrawerPage-DLQsxJi8.js +0 -216
  514. package/dist/BoxItem-CP9cPZQd.js +0 -118
  515. package/dist/BoxItem-DBUw6CmO.cjs +0 -53
  516. package/dist/BusinessVerificationPage-BHjap89g.cjs +0 -138
  517. package/dist/BusinessVerificationPage-Cayj-kYe.js +0 -716
  518. package/dist/BusyIndication-BKHAFH5D.cjs +0 -9
  519. package/dist/BusyIndication-CD2XLOYO.js +0 -19
  520. package/dist/CardNumberSubText-FdCtSIHd.js +0 -59
  521. package/dist/CardNumberSubText-VpkiedcA.cjs +0 -21
  522. package/dist/CashbackDetailPage-CZICE37r.js +0 -825
  523. package/dist/CashbackDetailPage-J4ZXmXTz.cjs +0 -285
  524. package/dist/ChargeCardDetailPage-Be2X4Rx8.js +0 -5454
  525. package/dist/ChargeCardDetailPage-DZyOSfY_.cjs +0 -1462
  526. package/dist/ChargeCardListPage-CjcL-inS.cjs +0 -412
  527. package/dist/ChargeCardListPage-DzfBzM8o.js +0 -1797
  528. package/dist/ChargeCardListTable-Bc-4mcCz.js +0 -2901
  529. package/dist/ChargeCardListTable-Br8ErSa0.cjs +0 -711
  530. package/dist/ChargeCardPromoPage-CjvCgST7.cjs +0 -222
  531. package/dist/ChargeCardPromoPage-D_C7hXGy.js +0 -816
  532. package/dist/ChargeCardSetupPage-BwNi9-pq.js +0 -359
  533. package/dist/ChargeCardSetupPage-CUvCqWTG.cjs +0 -36
  534. package/dist/ChargeCardStatementsPage-Bf04MOoK.js +0 -243
  535. package/dist/ChargeCardStatementsPage-i3cJm8UB.cjs +0 -60
  536. package/dist/CheckDepositDrawerPage-B-A9fkGZ.js +0 -726
  537. package/dist/CheckDepositDrawerPage-Drh8EirV.cjs +0 -206
  538. package/dist/CollapsableReportTable-DdMyzUD0.js +0 -11659
  539. package/dist/CollapsableReportTable-Dra50qBW.cjs +0 -2844
  540. package/dist/CompanyOfficerDetailsSection-CdMCmqHk.cjs +0 -260
  541. package/dist/CompanyOfficerDetailsSection-kRtuUd2c.js +0 -1633
  542. package/dist/CompanyPassportCard-BAExOrbF.cjs +0 -42
  543. package/dist/CompanyPassportCard-KhSJJMcy.js +0 -146
  544. package/dist/CompanyPassportPage--ckOuqML.js +0 -2160
  545. package/dist/CompanyPassportPage-CT52jNjA.cjs +0 -574
  546. package/dist/CompleteProfile-D8egRg8d.js +0 -301
  547. package/dist/CompleteProfile-joqW2Fjp.cjs +0 -52
  548. package/dist/ConfettiBurst-C0nZeYiu.cjs +0 -1
  549. package/dist/ConfettiBurst-CvRhNEAY.js +0 -37
  550. package/dist/CreateOrEditVendorPage-CJiZ-hEC.cjs +0 -281
  551. package/dist/CreateOrEditVendorPage-DrZh60Xs.js +0 -763
  552. package/dist/CreditCardPaymentDrawerPage-B7ssB1GM.js +0 -1170
  553. package/dist/CreditCardPaymentDrawerPage-C5hhjtAh.cjs +0 -224
  554. package/dist/CurrencySelectField-Ac3IdwQO.cjs +0 -139
  555. package/dist/CurrencySelectField-BXp2mtZ7.js +0 -348
  556. package/dist/CustomerOnboardingActivationPage-BX7STQsk.js +0 -143
  557. package/dist/CustomerOnboardingActivationPage-Dlr-n1mP.cjs +0 -88
  558. package/dist/CustomerOnboardingContainerPage-BkPTeV9_.js +0 -7
  559. package/dist/CustomerOnboardingContainerPage-DUDQHo-7.cjs +0 -1
  560. package/dist/CustomerOnboardingDetailPageSkeleton-9agjhGnI.cjs +0 -162
  561. package/dist/CustomerOnboardingDetailPageSkeleton-C5tSpmSB.js +0 -434
  562. package/dist/CustomerOnboardingNoStepsPage-CQUQlLbj.js +0 -424
  563. package/dist/CustomerOnboardingNoStepsPage-CYto1L2Z.cjs +0 -66
  564. package/dist/CustomerOnboardingPage-BxaZRw3t.cjs +0 -107
  565. package/dist/CustomerOnboardingPage-D0p8khnC.js +0 -1094
  566. package/dist/CustomerOnboardingProductSuitePage-BRk3TA9f.js +0 -348
  567. package/dist/CustomerOnboardingProductSuitePage-xbRmKpBR.cjs +0 -202
  568. package/dist/Dashboard-BmoVeoeI.cjs +0 -1551
  569. package/dist/Dashboard-CBOma7mv.js +0 -5540
  570. package/dist/DashboardReportPage-CeE9AN61.cjs +0 -371
  571. package/dist/DashboardReportPage-DRYx3AOy.js +0 -2536
  572. package/dist/DashboardSidebarBackgroundAnimation-BbKeOvDx.cjs +0 -12
  573. package/dist/DashboardSidebarBackgroundAnimation-DYsp7Imm.js +0 -53
  574. package/dist/DepositAccTransactionItem-BQU7vZKr.js +0 -112
  575. package/dist/DepositAccTransactionItem-BcuJMd8A.cjs +0 -76
  576. package/dist/DepositAccTransactionListPage-CwBnNUIj.cjs +0 -66
  577. package/dist/DepositAccTransactionListPage-DQDt_2kb.js +0 -152
  578. package/dist/DomesticWireDetailsPage-B0KbC9m8.js +0 -189
  579. package/dist/DomesticWireDetailsPage-BrYMJZLl.cjs +0 -21
  580. package/dist/DownloadOverlay-CD89D0EE.cjs +0 -439
  581. package/dist/DownloadOverlay-D2vm9EYI.js +0 -2148
  582. package/dist/DrawerPage-Bw_N2SXI.cjs +0 -118
  583. package/dist/DrawerPage-DHIaNEwf.js +0 -208
  584. package/dist/EditPeoplePage-B4OaKX89.js +0 -392
  585. package/dist/EditPeoplePage-DT3GaNaY.cjs +0 -55
  586. package/dist/EditReimbursementDetailPage-CAQ17be-.cjs +0 -865
  587. package/dist/EditReimbursementDetailPage-C_JOnUnR.js +0 -4531
  588. package/dist/EmptySearchResults-DDRNqRC-.js +0 -70
  589. package/dist/EmptySearchResults-DOMU5DP1.cjs +0 -46
  590. package/dist/EntityDetailPage-DGq_Sr4I.js +0 -82
  591. package/dist/EntityDetailPage-DZrO7kMO.cjs +0 -18
  592. package/dist/EntitySummarySection-CAKPRhm9.js +0 -530
  593. package/dist/EntitySummarySection-ZXiJDmjD.cjs +0 -149
  594. package/dist/ExpenseAutomationOverviewPage-c4H81maP.js +0 -807
  595. package/dist/ExpenseAutomationOverviewPage-xohtIkfw.cjs +0 -281
  596. package/dist/ExpenseAutomationPage-CH8IQWN3.cjs +0 -1650
  597. package/dist/ExpenseAutomationPage-DoI_XKeY.js +0 -11583
  598. package/dist/ExpressPayPage-BwDxid49.cjs +0 -168
  599. package/dist/ExpressPayPage-CjhXfVeX.js +0 -1136
  600. package/dist/FeaturePreviewPage-CwrW_5lN.js +0 -114
  601. package/dist/FeaturePreviewPage-gs7KwLmV.cjs +0 -11
  602. package/dist/FollowStepsSection-BBMnNmg7.cjs +0 -390
  603. package/dist/FollowStepsSection-DwVibYwI.js +0 -1313
  604. package/dist/GlobalReviewListPage-JUSXRKq4.js +0 -1674
  605. package/dist/GlobalReviewListPage-NYfI7qF2.cjs +0 -291
  606. package/dist/InformationCardStack-CK1Ztw1n.js +0 -219
  607. package/dist/InformationCardStack-b9JGyIEc.cjs +0 -31
  608. package/dist/InsightsCardStack-BKAezFjz.js +0 -305
  609. package/dist/InsightsCardStack-vqw4R0bp.cjs +0 -79
  610. package/dist/InsightsSection-Bauri5yR.js +0 -97
  611. package/dist/InsightsSection-CeFYSdwJ.cjs +0 -27
  612. package/dist/IntegrationsSettingsPage-CnRe_xH3.js +0 -136
  613. package/dist/IntegrationsSettingsPage-DuLhZ7KD.cjs +0 -57
  614. package/dist/InternationalWireSwiftDetailsPage-BJkaLuNw.js +0 -753
  615. package/dist/InternationalWireSwiftDetailsPage-CdB8L31o.cjs +0 -171
  616. package/dist/InternationalWireVerificationPage-D5CPFG6s.cjs +0 -292
  617. package/dist/InternationalWireVerificationPage-pPH2bNM7.js +0 -877
  618. package/dist/InviteFormPage-BUB1_gEV.cjs +0 -312
  619. package/dist/InviteFormPage-CsL2egNG.js +0 -873
  620. package/dist/InvitePageListView-DRrXAsc0.cjs +0 -739
  621. package/dist/InvitePageListView-rt3KC_c5.js +0 -1764
  622. package/dist/InvitePeoplePage-BRyC8kc4.cjs +0 -12
  623. package/dist/InvitePeoplePage-Cdr0dhtJ.js +0 -286
  624. package/dist/InvoiceUploadSection-C8aUUsBJ.cjs +0 -140
  625. package/dist/InvoiceUploadSection-NVvtQvoL.js +0 -465
  626. package/dist/IssueChargeCardPage-B-TaVJ9L.cjs +0 -532
  627. package/dist/IssueChargeCardPage-D5KenKnm.js +0 -2875
  628. package/dist/LabeledAddressValue-Bwkw-Ez_.js +0 -115
  629. package/dist/LabeledAddressValue-CRZcQpcH.cjs +0 -49
  630. package/dist/LabeledAddressValueField-BgkRIdwJ.js +0 -130
  631. package/dist/LabeledAddressValueField-DSNjAlNG.cjs +0 -45
  632. package/dist/LabeledControlledCheckBoxField-B1ktfy8c.cjs +0 -16
  633. package/dist/LabeledControlledCheckBoxField-RzyuT5ZX.js +0 -73
  634. package/dist/LabeledCreatableSingleSelectField-BP_p62Nk.js +0 -515
  635. package/dist/LabeledCreatableSingleSelectField-CoPds8o4.cjs +0 -204
  636. package/dist/LabeledDocumentField-DGncRe-Q.js +0 -147
  637. package/dist/LabeledDocumentField-dpZLEvvP.cjs +0 -41
  638. package/dist/LabeledDropDownFormattedTextField-AY936jUj.cjs +0 -59
  639. package/dist/LabeledDropDownFormattedTextField-DWUVcIR8.js +0 -163
  640. package/dist/LabeledEmailInputField-CUwwCB_a.cjs +0 -182
  641. package/dist/LabeledEmailInputField-DVbkArLk.js +0 -425
  642. package/dist/LabeledItemWithButton-BLWtsYdm.cjs +0 -21
  643. package/dist/LabeledItemWithButton-D3eEyvpq.js +0 -74
  644. package/dist/LabeledNameField-DwkoE-hq.js +0 -293
  645. package/dist/LabeledNameField-pNrgMg1p.cjs +0 -141
  646. package/dist/LabeledSingleSelectField-Dqa_KKMU.js +0 -372
  647. package/dist/LabeledSingleSelectField-ERgMpxa9.cjs +0 -136
  648. package/dist/LabeledSingleSelectWithoutClearableField-D33G2o_z.js +0 -103
  649. package/dist/LabeledSingleSelectWithoutClearableField-WPGQxZ8t.cjs +0 -38
  650. package/dist/LabeledText-BzD_-lgI.js +0 -103
  651. package/dist/LabeledText-VqhOQ1I5.cjs +0 -42
  652. package/dist/LabeledUserSingleSelectWithSubtitlesField-D3kjxF9V.js +0 -572
  653. package/dist/LabeledUserSingleSelectWithSubtitlesField-DqjPKRq2.cjs +0 -229
  654. package/dist/LabeledZeniRolesDropDownField-BlmybTGB.js +0 -975
  655. package/dist/LabeledZeniRolesDropDownField-C5ZTK6oU.cjs +0 -297
  656. package/dist/LinkJETransactionPage-BBS2FWdF.cjs +0 -98
  657. package/dist/LinkJETransactionPage-CUnfHHeT.js +0 -406
  658. package/dist/LockCardPage-2jOFCVkW.js +0 -2032
  659. package/dist/LockCardPage-Dli26ZH9.cjs +0 -623
  660. package/dist/LowBalancePopup-BZFYr3DM.cjs +0 -34
  661. package/dist/LowBalancePopup-Du0kX_mJ.js +0 -219
  662. package/dist/MagicLinkACHDetailsPage-CkbNMu7Z.js +0 -39
  663. package/dist/MagicLinkACHDetailsPage-DIVQGVr9.cjs +0 -1
  664. package/dist/MagicLinkDomesticWireDetailsPage-BmSXCSlA.cjs +0 -1
  665. package/dist/MagicLinkDomesticWireDetailsPage-D0XBf5_X.js +0 -44
  666. package/dist/MagicLinkInternationalWireDetailsPage-Bl93T-SF.js +0 -43
  667. package/dist/MagicLinkInternationalWireDetailsPage-DPJ3RHNk.cjs +0 -1
  668. package/dist/MagicLinkSuccessPage-BYiaTszm.cjs +0 -31
  669. package/dist/MagicLinkSuccessPage-C26glp7T.js +0 -59
  670. package/dist/MagicLinkTitleSection-B4nxLzap.js +0 -40
  671. package/dist/MagicLinkTitleSection-BYD6BunI.cjs +0 -17
  672. package/dist/MailingDetailsSection-BQtbdDm4.cjs +0 -21
  673. package/dist/MailingDetailsSection-Cou_W8JF.js +0 -74
  674. package/dist/MatchingOperatorDropdown-B771006L.cjs +0 -130
  675. package/dist/MatchingOperatorDropdown-wAX2nzu9.js +0 -572
  676. package/dist/Menu-B4XJuuAC.cjs +0 -17
  677. package/dist/Menu-CdF7UWPF.js +0 -110
  678. package/dist/MoreMenuButton-DUyMHpfm.cjs +0 -167
  679. package/dist/MoreMenuButton-R5Py4_U-.js +0 -569
  680. package/dist/MyBankConnectionsSettingsPage-BAjjxA98.js +0 -297
  681. package/dist/MyBankConnectionsSettingsPage-DVTUnM8l.cjs +0 -110
  682. package/dist/MyPendingActivationChargeCardListPage-BhflSb_M.cjs +0 -6
  683. package/dist/MyPendingActivationChargeCardListPage-DsRGcA8F.js +0 -168
  684. package/dist/MyProfileSettingsPage-DB1h3Sj2.cjs +0 -85
  685. package/dist/MyProfileSettingsPage-y-iZgUqL.js +0 -641
  686. package/dist/NavBarWithPicker-Demddf-8.cjs +0 -30
  687. package/dist/NavBarWithPicker-ph4heJns.js +0 -106
  688. package/dist/NavigationArrow-BojAUI53.js +0 -88
  689. package/dist/NavigationArrow-rhViEc7W.cjs +0 -47
  690. package/dist/NavigationDots-Bf66leAL.js +0 -44
  691. package/dist/NavigationDots-Dqjo7-Mm.cjs +0 -15
  692. package/dist/NewGlobalMerchantPage-BVTegOiz.cjs +0 -160
  693. package/dist/NewGlobalMerchantPage-D43XJhIa.js +0 -543
  694. package/dist/NoDataChart-6R5pxJVo.js +0 -58
  695. package/dist/NoDataChart-Bbw3hY7B.cjs +0 -26
  696. package/dist/NoDataTable-BXXAc_L7.cjs +0 -8
  697. package/dist/NoDataTable-CNx0KCKn.js +0 -27
  698. package/dist/NotFoundPage-CE9BW_aV.js +0 -71
  699. package/dist/NotFoundPage-DG3NiAsj.cjs +0 -46
  700. package/dist/NotificationSettingsPage-DPuBtoQq.cjs +0 -163
  701. package/dist/NotificationSettingsPage-etN6HEwO.js +0 -541
  702. package/dist/NotificationsListConfig-15ae4nik.js +0 -10
  703. package/dist/NotificationsListConfig-DM0FdS6M.cjs +0 -1
  704. package/dist/NotificationsPage-BwbxqKxd.js +0 -2664
  705. package/dist/NotificationsPage-DY3u4B7m.cjs +0 -685
  706. package/dist/OpExByVendorPage-7k2JM-8_.cjs +0 -100
  707. package/dist/OpExByVendorPage-FR3oloXp.js +0 -1058
  708. package/dist/PandLWithForecastPage-Bx3ZyA3l.js +0 -563
  709. package/dist/PandLWithForecastPage-z2LizVZM.cjs +0 -107
  710. package/dist/PaymentAccountSetupBillingAddressSection-BwTidj8L.cjs +0 -106
  711. package/dist/PaymentAccountSetupBillingAddressSection-R1O20DhA.js +0 -623
  712. package/dist/PeoplePage-B3HRaJWz.js +0 -1994
  713. package/dist/PeoplePage-BFp8cJVT.cjs +0 -675
  714. package/dist/ProductsCarousel-BT6gjtio.cjs +0 -142
  715. package/dist/ProductsCarousel-Dn4vuZwM.js +0 -309
  716. package/dist/PromoBaseCards-BKo4wO-U.js +0 -356
  717. package/dist/PromoBaseCards-VgfqN_BL.cjs +0 -218
  718. package/dist/QBOConnectionDialog-CPq0aUew.js +0 -115
  719. package/dist/QBOConnectionDialog-Ce-ojdwg.cjs +0 -51
  720. package/dist/QBOSetupSection-BjImTh7O.js +0 -167
  721. package/dist/QBOSetupSection-D6w3xt2a.cjs +0 -79
  722. package/dist/ReimbursementApprovalRuleDetailPage-DD1HwLO0.js +0 -247
  723. package/dist/ReimbursementApprovalRuleDetailPage-TLJi0WUL.cjs +0 -26
  724. package/dist/ReimbursementApprovalRulesPage-DFLHMQK2.cjs +0 -237
  725. package/dist/ReimbursementApprovalRulesPage-DHQHS0eD.js +0 -410
  726. package/dist/ReimbursementDetailPage-BKhGBzIa.cjs +0 -314
  727. package/dist/ReimbursementDetailPage-DiMXs0_o.js +0 -1514
  728. package/dist/ReimbursementPromoPage-BinqJ3lR.js +0 -363
  729. package/dist/ReimbursementPromoPage-CvYLtqH7.cjs +0 -84
  730. package/dist/ReimbursementSetUpPage-BD6B-0CO.js +0 -663
  731. package/dist/ReimbursementSetUpPage-DFPNPoCi.cjs +0 -140
  732. package/dist/ReimbursementsBulkReviewDrawerPage-BpBhnRKG.cjs +0 -1
  733. package/dist/ReimbursementsBulkReviewDrawerPage-DK-nCoay.js +0 -204
  734. package/dist/ReloadCard-Bt8qxAUx.js +0 -137
  735. package/dist/ReloadCard-DKeQg4CL.cjs +0 -26
  736. package/dist/ReloadContainer-DFgNxGK3.js +0 -2165
  737. package/dist/ReloadContainer-lVJ6xsvt.cjs +0 -596
  738. package/dist/ReportTableViewSelector-0DAVQnO4.cjs +0 -150
  739. package/dist/ReportTableViewSelector-Dv7BwM1q.js +0 -679
  740. package/dist/ReportsPage-BOY8oCAr.js +0 -1315
  741. package/dist/ReportsPage-c_1xR_O-.cjs +0 -121
  742. package/dist/RevenueChart-B3_eo48T.cjs +0 -280
  743. package/dist/RevenueChart-D_yexiAR.js +0 -2240
  744. package/dist/ReviewDetailsPage-CzjrbETD.cjs +0 -290
  745. package/dist/ReviewDetailsPage-Czrlb8BL.js +0 -1073
  746. package/dist/ReviewOverlay-BHUy3fWf.js +0 -299
  747. package/dist/ReviewOverlay-DEM3obXE.cjs +0 -152
  748. package/dist/RoleWithToolTip-BxI2nAro.js +0 -72
  749. package/dist/RoleWithToolTip-DoOgFzdk.cjs +0 -22
  750. package/dist/ScheduleDetailsFixedAssetsPage-DUDEoaIo.cjs +0 -37
  751. package/dist/ScheduleDetailsFixedAssetsPage-DsNhFGrc.js +0 -806
  752. package/dist/ScheduleDetailsPage-Bu4Z-fUL.cjs +0 -37
  753. package/dist/ScheduleDetailsPage-Dy2poGsp.js +0 -726
  754. package/dist/ScheduleSequenceTable-Bv1feMZc.js +0 -1261
  755. package/dist/ScheduleSequenceTable-CBPCIQAg.cjs +0 -324
  756. package/dist/SetUpAccountSection-DSgFlQ-4.cjs +0 -378
  757. package/dist/SetUpAccountSection-SSkLhU2W.js +0 -1469
  758. package/dist/SignIn-C9HgUmSo.cjs +0 -448
  759. package/dist/SignIn-Chuf9_2E.js +0 -1075
  760. package/dist/SpendManagementListViewPage-BpCZzQ7I.js +0 -627
  761. package/dist/SpendManagementListViewPage-CWGR-MiQ.cjs +0 -122
  762. package/dist/SpendManagementPerTabPage-CipQlc4R.cjs +0 -754
  763. package/dist/SpendManagementPerTabPage-DbXTM50B.js +0 -2735
  764. package/dist/SpendManagementSection-BMU1BTEo.js +0 -1043
  765. package/dist/SpendManagementSection-BdmHz6Vl.cjs +0 -230
  766. package/dist/StatementItem-BkovJaHB.cjs +0 -31
  767. package/dist/StatementItem-qLZEMVrM.js +0 -81
  768. package/dist/StatementsPage-B3qY1D4K.js +0 -130
  769. package/dist/StatementsPage-CoVggbWl.cjs +0 -58
  770. package/dist/StatusSwitcher-BcXGVM61.cjs +0 -120
  771. package/dist/StatusSwitcher-xQ_AW7ze.js +0 -319
  772. package/dist/SubTabSwitcher-DIx2AarH.cjs +0 -58
  773. package/dist/SubTabSwitcher-w8vLc-35.js +0 -113
  774. package/dist/SuccessAnimation-BAOUQFyI.js +0 -52
  775. package/dist/SuccessAnimation-D7rkmU7F.cjs +0 -13
  776. package/dist/SummaryCard-CTq_yqTg.js +0 -25
  777. package/dist/SummaryCard-LDkBrUAi.cjs +0 -1
  778. package/dist/TaskDetailPage-C4SIhO68.cjs +0 -775
  779. package/dist/TaskDetailPage-CliIl9An.js +0 -2533
  780. package/dist/TaskListRow-BBEY07yD.cjs +0 -556
  781. package/dist/TaskListRow-Dg13z3PQ.js +0 -1950
  782. package/dist/TaskManagementPage-Cfefh9HF.cjs +0 -508
  783. package/dist/TaskManagementPage-keXFNmIv.js +0 -1935
  784. package/dist/TimeRangeSwitcher-C4Tph63B.js +0 -265
  785. package/dist/TimeRangeSwitcher-C8i-_LPp.cjs +0 -64
  786. package/dist/TimeframeSwitcher-ChlzrFIQ.cjs +0 -31
  787. package/dist/TimeframeSwitcher-LLgotbh8.js +0 -103
  788. package/dist/TimeframeSwitcherWithToggle-BQR2xbFo.cjs +0 -31
  789. package/dist/TimeframeSwitcherWithToggle-Cw3a9d0I.js +0 -157
  790. package/dist/TopExCard-D2lVJUMs.cjs +0 -38
  791. package/dist/TopExCard-Dj0wtF6g.js +0 -569
  792. package/dist/TopExDetailPage-Ba0y-Zk1.cjs +0 -132
  793. package/dist/TopExDetailPage-JutaMmtR.js +0 -318
  794. package/dist/TransactionDetailPage-BdFHqSCv.js +0 -5238
  795. package/dist/TransactionDetailPage-DyKb6mAZ.cjs +0 -912
  796. package/dist/TransactionList-BECc08zS.cjs +0 -147
  797. package/dist/TransactionList-C85wyFeI.js +0 -558
  798. package/dist/TransactionListBig-BGctaY-R.cjs +0 -284
  799. package/dist/TransactionListBig-DPev2-Mm.js +0 -658
  800. package/dist/TransactionListPage-CEWvjh5T.cjs +0 -35
  801. package/dist/TransactionListPage-D127NU4T.js +0 -145
  802. package/dist/TransactionVendorDetailPage-BGoHmn0Y.cjs +0 -80
  803. package/dist/TransactionVendorDetailPage-BJ1YnPif.js +0 -425
  804. package/dist/TransferDrawerPage-Bl11ydP0.cjs +0 -362
  805. package/dist/TransferDrawerPage-DcrfmXH1.js +0 -1436
  806. package/dist/TreasuryOverviewPage-BjQRTJyE.cjs +0 -708
  807. package/dist/TreasuryOverviewPage-D-Zw4Npq.js +0 -1890
  808. package/dist/TreasuryPromoPage-2cAQWhr_.cjs +0 -505
  809. package/dist/TreasuryPromoPage-BhBPhhbb.js +0 -1123
  810. package/dist/TreasuryStatementsPage-C-W0mgZK.cjs +0 -58
  811. package/dist/TreasuryStatementsPage-Dxjg_QN7.js +0 -131
  812. package/dist/TreasuryTaxLetterPage-Dm552RDZ.js +0 -131
  813. package/dist/TreasuryTaxLetterPage-Dxf-TtBv.cjs +0 -58
  814. package/dist/TrendChart-5bkRD59B.cjs +0 -16
  815. package/dist/TrendChart-_c8z5Kxm.js +0 -334
  816. package/dist/TrendWithTransactions-B2rde1MW.js +0 -346
  817. package/dist/TrendWithTransactions-DBCIS09H.cjs +0 -116
  818. package/dist/UncategorizedAccountsMappingPage-77nkQFar.js +0 -1159
  819. package/dist/UncategorizedAccountsMappingPage-BZMisSi4.cjs +0 -244
  820. package/dist/UnitIntegrationPage-3_YMV_f4.js +0 -405
  821. package/dist/UnitIntegrationPage-Cp7w8HKP.cjs +0 -67
  822. package/dist/UploadAdditionalDocumentOverlay-C2_WynUY.cjs +0 -38
  823. package/dist/UploadAdditionalDocumentOverlay-D72fkcgM.js +0 -211
  824. package/dist/Vendor2FAPopup-912qN1o5.cjs +0 -1
  825. package/dist/Vendor2FAPopup-DLbGF5_q.js +0 -69
  826. package/dist/VendorACHDetailsPage-CaNQylEA.js +0 -43
  827. package/dist/VendorACHDetailsPage-CnLK1MQ9.cjs +0 -1
  828. package/dist/VendorDetailPage-DDgE-16h.cjs +0 -257
  829. package/dist/VendorDetailPage-DqdH4UMj.js +0 -1236
  830. package/dist/VendorDomesticWireDetailsPage-9pyV_r_g.js +0 -53
  831. package/dist/VendorDomesticWireDetailsPage-DIr-5npj.cjs +0 -1
  832. package/dist/VendorFiling1099EditablePage-SToW5JIh.cjs +0 -175
  833. package/dist/VendorFiling1099EditablePage-nb9_V73Z.js +0 -842
  834. package/dist/VendorFirstReviewPage-C2RjaA8x.js +0 -2748
  835. package/dist/VendorFirstReviewPage-bFXjM89r.cjs +0 -730
  836. package/dist/VendorInternationalWireDetailsPage-DptkcP2w.cjs +0 -152
  837. package/dist/VendorInternationalWireDetailsPage-VOAgofls.js +0 -968
  838. package/dist/VendorInternationalWireSwiftDetailsPage-CcRuLO-_.js +0 -52
  839. package/dist/VendorInternationalWireSwiftDetailsPage-CvJtvrYC.cjs +0 -1
  840. package/dist/VendorsAccountsSection-CfDkyxWT.cjs +0 -68
  841. package/dist/VendorsAccountsSection-RzVUJ8IV.js +0 -279
  842. package/dist/VerifyDevice-CvpVGzfX.cjs +0 -112
  843. package/dist/VerifyDevice-DUxQHfLf.js +0 -298
  844. package/dist/VideoPlayer-BGmAa5K0.cjs +0 -77
  845. package/dist/VideoPlayer-BxuhQQfM.js +0 -170
  846. package/dist/VideoPopup-BSoME1Bt.cjs +0 -31
  847. package/dist/VideoPopup-DdtmLcPB.js +0 -60
  848. package/dist/WarningsDrawerPage-DC5ophK0.js +0 -228
  849. package/dist/WarningsDrawerPage-knH25NBo.cjs +0 -92
  850. package/dist/ZeniAccountDetailPage-C1KKeyYC.js +0 -908
  851. package/dist/ZeniAccountDetailPage-CFPcROaK.cjs +0 -300
  852. package/dist/ZeniAccountListViewPage-BK8CpX9W.cjs +0 -441
  853. package/dist/ZeniAccountListViewPage-Bw5_2Q-c.js +0 -1078
  854. package/dist/ZeniAccountNavBarPieces-DTheWynN.cjs +0 -14
  855. package/dist/ZeniAccountNavBarPieces-DlfwFtOB.js +0 -89
  856. package/dist/ZeniAccountPromoPage-B8cXf7Ni.js +0 -522
  857. package/dist/ZeniAccountPromoPage-CFKctCrV.cjs +0 -184
  858. package/dist/ZeniAccountSetupPage-2-Y92flU.cjs +0 -36
  859. package/dist/ZeniAccountSetupPage-Cae0pB-b.js +0 -309
  860. package/dist/ZeniAvatar-B744fPUL.js +0 -34
  861. package/dist/ZeniAvatar-D4Izl51w.cjs +0 -13
  862. package/dist/ZeniCopyright-CnTWLugt.cjs +0 -1
  863. package/dist/ZeniCopyright-gTS4uZlF.js +0 -9
  864. package/dist/ZeniDatePicker-Bw5_UPw-.cjs +0 -187
  865. package/dist/ZeniDatePicker-DRD1Krpq.js +0 -386
  866. package/dist/ZeniTransferAmountSlider-17kY7kNO.js +0 -215
  867. package/dist/ZeniTransferAmountSlider-K0Re3Q-7.cjs +0 -63
  868. package/dist/analyticsHelper-DXVBA0aW.js +0 -65
  869. package/dist/analyticsHelper-v5n1YGT2.cjs +0 -1
  870. package/dist/calculateSize-BPCOqzEg.js +0 -22
  871. package/dist/calculateSize-By4-nx8e.cjs +0 -1
  872. package/dist/chartTypes-BXBHlosV.js +0 -47
  873. package/dist/chartTypes-Dd8pl6nm.cjs +0 -1
  874. package/dist/common-COfaxAld.cjs +0 -1
  875. package/dist/common-spU034hK.js +0 -22
  876. package/dist/commonDimensions-Bm2CSHrw.js +0 -13
  877. package/dist/commonDimensions-CUojcSpQ.cjs +0 -1
  878. package/dist/detailCommon-D2pu94Nq.cjs +0 -38
  879. package/dist/detailCommon-VW4xegQy.js +0 -124
  880. package/dist/downloadPdf-BSG76tOl.cjs +0 -1
  881. package/dist/downloadPdf-DUAAPKqC.js +0 -32
  882. package/dist/index-CwWJYVG_.cjs +0 -21111
  883. package/dist/index-l08vvOmt.js +0 -92167
  884. package/dist/mapLoadingInProgressToTreeNode-D5WZ1WGx.js +0 -25
  885. package/dist/mapLoadingInProgressToTreeNode-xHr-3KHj.cjs +0 -1
  886. package/dist/mapSectionWithAcOnlyToTreeNode-BxzLwMCb.js +0 -387
  887. package/dist/mapSectionWithAcOnlyToTreeNode-D6TT5ckr.cjs +0 -1
  888. package/dist/mapSpacerToTreeNode-CScyNZ9s.js +0 -25
  889. package/dist/mapSpacerToTreeNode-DdU383ha.cjs +0 -1
  890. package/dist/mapTimeframeBalancesToTreeNode-Bm9tz1my.cjs +0 -1
  891. package/dist/mapTimeframeBalancesToTreeNode-CQAQhz-j.cjs +0 -1
  892. package/dist/mapTimeframeBalancesToTreeNode-Caj8eqsL.js +0 -24
  893. package/dist/mapTimeframeBalancesToTreeNode-CdVqeC27.js +0 -24
  894. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-CAF71q1h.cjs +0 -1
  895. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-CUFXYz6j.js +0 -32
  896. package/dist/sectionColor-Bv9kEiCi.js +0 -32
  897. package/dist/sectionColor-CqSihH6n.cjs +0 -1
  898. package/dist/toCOABalancesWithID-CqzWoD-C.js +0 -8
  899. package/dist/toCOABalancesWithID-kVrEfd7z.cjs +0 -1
  900. package/dist/toChartData-K6sJY6z8.cjs +0 -1
  901. package/dist/toChartData-X878W8tN.js +0 -76
  902. package/dist/uploadAttachment-DNKgJox4.js +0 -952
  903. package/dist/uploadAttachment-Dn8P1LaN.cjs +0 -286
  904. package/dist/zeniDatePicker.helpers-B7xxt_BV.cjs +0 -1
  905. package/dist/zeniDatePicker.helpers-BNND3BX5.js +0 -14
@@ -1,4531 +0,0 @@
1
- import { u as $t, d as at, m as Pe, j as t, X as zt, C as cn, k as dn, o as cr, g as un, h as dr, b as Po, F as mn, l as Bo } from "./vendor-.pnpm-B2klaOGU.js";
2
- import It, { useEffect as ye, useState as Q, useRef as bt, useCallback as pn, useMemo as xt, useContext as ur } from "react";
3
- import n from "@emotion/styled";
4
- import { RoomProvider as mr } from "@liveblocks/react";
5
- import { dateNow as po, zeniDate as it, toAmount as hn, getNextNthWorkingDay as gn, defaultVendorCurrency as Ao, reduceAnyFetchState as pr, toReimbursementTypeCode as Lo } from "@zeniai/client-epic-state";
6
- import { u as ze, dB as St, iz as Wt, a as we, R as s, hw as $e, hy as Se, aH as yn, ij as Mo, fj as rt, aS as ho, iA as fn, S as o, iB as uo, gK as Ye, D as r, e as U, fR as hr, n as xn, aB as gr, C as I, A as vt, aw as go, Z as bn, F as yo, ag as yr, iC as Et, a2 as fr, aA as fo, B as Ro, it as wn, at as zo, k as Vt, o as xo, x as xr, E as br, im as wr, hv as $n, t as Ft, fn as Sn, fv as $r, hC as Sr, _ as _t, e_ as vn, J as Cn, y as Tn, iD as Ue, hj as bo, aP as wo, aQ as kn, aR as jn, hI as vr, eP as Cr, ao as In, aX as Tr, w as kr, aD as mo, iE as jr, b as On, V as $o, bc as Ir, bd as Or, T as Pr, d as Br, N as Ar, iF as Lr, aE as Fo, h as Mr, ae as Rr, il as zr, ir as No, i as Fr, eQ as Nr, l as Wr, aG as Er, iG as Vr, X as _r } from "./index-l08vvOmt.js";
7
- import Pn from "./InvoiceUploadSection-NVvtQvoL.js";
8
- import { u as Ie, w as Nt, l as So, p as wt, s as Wo, g as Dr } from "./types-DyvtCprH.js";
9
- import { L as qr } from "./LabeledCreatableSingleSelectField-BP_p62Nk.js";
10
- import { C as Ur } from "./CurrencySelectField-BXp2mtZ7.js";
11
- import { usePlaidLink as Hr } from "react-plaid-link";
12
- import { B as Kr } from "./BankAccountSection-D3sQOQ-c.js";
13
- import { B as Gr, a as Yr } from "./BankAccountWarningSection-CxLBPI_P.js";
14
- import { S as Jr } from "./radio-default-CiSgisfh.js";
15
- const We = (e, i) => `${e}.${i}`, Eo = {
16
- largeLabelWidth: new s(120, 120, 160),
17
- paddingBottom: new s(r[3], r[2]),
18
- paddingLeft: new s(r[3], r[4])
19
- }, {
20
- spendManagement: {
21
- reimbursement: { reimbursementDetail: je }
22
- },
23
- dateFormat: Xr,
24
- common: Qr
25
- } = we.getLocalizedStrings(), Zr = ({
26
- lineIndex: e,
27
- mileage: i,
28
- classList: a,
29
- defaultCurrency: d,
30
- sectionId: p,
31
- isReimbursementCommentingEnabled: v,
32
- isDisabled: m,
33
- isAddReimbursementDisabled: S,
34
- companyMileageConfigInfo: x,
35
- reimbursementId: l,
36
- classHierarchyList: C
37
- }) => {
38
- const b = ze(), c = St(), y = Wt(), $ = `dashboard_${c.currentTenant?.companyId}`, O = $t(), {
39
- formState: { errors: T },
40
- getValues: P,
41
- trigger: H
42
- } = at(), B = Qr.strings.empty, k = P(
43
- We(p, "distanceInMiles")
44
- ), M = Eo.largeLabelWidth.value(b), te = P(We(p, "class")), ne = a.find(
45
- (L) => L.classId === te?.selectedOption
46
- ), re = We(p, "class"), Y = Pe(T, re);
47
- ye(() => {
48
- te?.selectedOption != null && (ne?.isDeleted === !0 || Y) && H(re);
49
- }, [
50
- te?.selectedOption,
51
- ne?.isDeleted,
52
- a,
53
- re,
54
- H
55
- ]);
56
- const K = {
57
- application: "dashboard",
58
- companyId: c.currentTenant?.companyId,
59
- tab: "reimbursement",
60
- entityId: l
61
- }, F = (L) => a.filter((X) => X.classId === L)[0]?.accountingClassNumber, J = a.find((L) => L.classId === i.class), q = {
62
- valueContainer: (L) => ({
63
- ...L,
64
- padding: `2px ${o.sp3} !important`,
65
- overflow: "unset"
66
- }),
67
- singleValue: () => ({
68
- margin: 0
69
- })
70
- };
71
- return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
72
- /* @__PURE__ */ t.jsx(
73
- $e,
74
- {
75
- isThreadAllowed: v && l != null,
76
- dashboardTabKey: Se({
77
- type: "details",
78
- key: `${e}.mileage.transactionDate`
79
- }),
80
- roomId: $,
81
- companyId: c.currentTenant?.companyId ?? B,
82
- companyName: c.currentTenant?.companyName ?? B,
83
- entityId: l,
84
- dashboardOptionType: "reimbursement",
85
- filterMetaData: {
86
- ...K,
87
- entityType: `reimbursement.details.${Ie(
88
- "transactionDate",
89
- e,
90
- "mileage"
91
- )}`
92
- },
93
- fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
94
- children: /* @__PURE__ */ t.jsx(
95
- yn,
96
- {
97
- isDisabled: m,
98
- label: {
99
- label: je.transactionDate,
100
- width: M
101
- },
102
- style: {
103
- paddingBottom: Eo.paddingBottom.valuePx(b),
104
- width: "auto"
105
- },
106
- dateField: {
107
- name: We(p, "transactionDate"),
108
- placeholder: je.datePlaceholder,
109
- defaultValue: i?.transactionDate,
110
- dateFormat: Xr.visual.defaultInput,
111
- autoComplete: "off",
112
- maxDate: po(),
113
- registerOptions: {
114
- required: !0,
115
- validate: (L) => !!L
116
- }
117
- }
118
- }
119
- )
120
- }
121
- ),
122
- /* @__PURE__ */ t.jsx(Ot, {}),
123
- /* @__PURE__ */ t.jsx(
124
- $e,
125
- {
126
- isThreadAllowed: v && l != null,
127
- dashboardTabKey: Se({
128
- type: "details",
129
- key: `${e}.mileage.distanceInMiles`
130
- }),
131
- roomId: $,
132
- companyId: c.currentTenant?.companyId ?? B,
133
- companyName: c.currentTenant?.companyName ?? B,
134
- entityId: l,
135
- dashboardOptionType: "reimbursement",
136
- filterMetaData: {
137
- ...K,
138
- entityType: `reimbursement.details.${Ie(
139
- "distanceInMiles",
140
- e,
141
- "mileage"
142
- )}`
143
- },
144
- fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
145
- children: /* @__PURE__ */ t.jsx(
146
- Mo,
147
- {
148
- isDisabled: S ? "disabled" : void 0,
149
- style: { width: "auto" },
150
- label: { label: je.distanceInMiles, width: M },
151
- formattedTextField: {
152
- type: "number",
153
- name: We(p, "distanceInMiles"),
154
- placeholder: je.addMiles,
155
- defaultValue: i.distanceInMiles,
156
- registerOptions: {
157
- required: !0,
158
- validate: (L) => L != null ? L > 0 : !0,
159
- min: 0.01
160
- },
161
- returnValueType: "floatValue",
162
- allowNegative: !1,
163
- isNumericString: !1,
164
- decimalScale: 2
165
- }
166
- }
167
- )
168
- }
169
- ),
170
- /* @__PURE__ */ t.jsx(Ot, {}),
171
- /* @__PURE__ */ t.jsx(
172
- $e,
173
- {
174
- isThreadAllowed: v && l != null,
175
- dashboardTabKey: Se({
176
- type: "details",
177
- key: `${e}.mileage.amount`
178
- }),
179
- roomId: $,
180
- companyId: c.currentTenant?.companyId ?? B,
181
- companyName: c.currentTenant?.companyName ?? B,
182
- entityId: l,
183
- dashboardOptionType: "reimbursement",
184
- filterMetaData: {
185
- ...K,
186
- entityType: `reimbursement.details.${Ie(
187
- "amount",
188
- e,
189
- "mileage"
190
- )}`
191
- },
192
- fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
193
- children: /* @__PURE__ */ t.jsx(
194
- Mo,
195
- {
196
- isDisabled: "disabled",
197
- label: {
198
- label: je.amount,
199
- width: M
200
- },
201
- formattedTextField: {
202
- type: "number",
203
- name: We(`${p}.amount`, "amount"),
204
- defaultValue: i.amount?.amount,
205
- placeholder: rt(je.amount),
206
- returnValueType: "floatValue",
207
- prefix: i.amount?.currencySymbol,
208
- allowNegative: !1,
209
- isNumericString: !1,
210
- registerOptions: {
211
- required: !0,
212
- validate: (L) => L != null ? L > 0 : !0
213
- },
214
- autoComplete: "off",
215
- decimalSeparator: ".",
216
- decimalScale: 2,
217
- fixedDecimalScale: !1,
218
- thousandSeparator: !0
219
- },
220
- style: { width: "auto" },
221
- additionalInfoLabel: k != null && x?.mileageUnitAmount != null ? `${d.currencySymbol}${x?.mileageUnitAmount} per mile x ${k}` : void 0
222
- }
223
- )
224
- }
225
- ),
226
- /* @__PURE__ */ t.jsx(Ot, {}),
227
- /* @__PURE__ */ t.jsx(
228
- $e,
229
- {
230
- isThreadAllowed: v && l != null,
231
- dashboardTabKey: Se({
232
- type: "details",
233
- key: `${e}.mileage.memo`
234
- }),
235
- roomId: $,
236
- companyId: c.currentTenant?.companyId ?? B,
237
- companyName: c.currentTenant?.companyName ?? B,
238
- entityId: l,
239
- dashboardOptionType: "reimbursement",
240
- filterMetaData: {
241
- ...K,
242
- entityType: `reimbursement.details.${Ie(
243
- "memo",
244
- e,
245
- "mileage"
246
- )}`
247
- },
248
- fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
249
- children: /* @__PURE__ */ t.jsx(
250
- ho,
251
- {
252
- isDisabled: m,
253
- label: {
254
- label: je.memo,
255
- width: M
256
- },
257
- style: { width: "auto" },
258
- text: {
259
- type: "text",
260
- name: We(p, "memo"),
261
- placeholder: rt(je.memo),
262
- defaultValue: i.memo,
263
- autoComplete: "off",
264
- options: {
265
- pattern: fn
266
- }
267
- }
268
- }
269
- )
270
- }
271
- ),
272
- /* @__PURE__ */ t.jsx(Ot, {}),
273
- /* @__PURE__ */ t.jsx(
274
- $e,
275
- {
276
- isThreadAllowed: v && l != null,
277
- dashboardTabKey: Se({
278
- type: "details",
279
- key: `${e}.mileage.class`
280
- }),
281
- roomId: $,
282
- companyId: c.currentTenant?.companyId ?? B,
283
- companyName: c.currentTenant?.companyName ?? B,
284
- entityId: l,
285
- dashboardOptionType: "reimbursement",
286
- filterMetaData: {
287
- ...K,
288
- entityType: `reimbursement.details.${Ie(
289
- "class",
290
- e,
291
- "mileage"
292
- )}`
293
- },
294
- fieldThreadTargetElement: y?.sharedRef?.contentWrapperRef,
295
- style: {
296
- borderRadius: `0 0 ${o.sp2} ${o.sp2}`
297
- },
298
- children: /* @__PURE__ */ t.jsx(
299
- uo,
300
- {
301
- isLoading: !1,
302
- label: {
303
- label: je.department,
304
- width: M
305
- },
306
- additionalLabelInfo: ne?.isDeleted === !0 && Pe(T, We(p, "class")) ? je.deletedClassError : void 0,
307
- groupedSingleSelectField: {
308
- shouldShowChevronIcon: !1,
309
- name: We(p, "class"),
310
- placeholder: rt(je.department),
311
- valueToId: (L) => F(L),
312
- defaultValue: {
313
- selectedOption: J?.classId,
314
- allOptions: Ye(C, [])
315
- },
316
- style: {
317
- width: "100%"
318
- },
319
- customStyleConfig: q,
320
- registerOptions: {
321
- required: !0,
322
- validate: (L) => L?.selectedOption == null ? !1 : a.find(
323
- (X) => X.classId === L?.selectedOption
324
- )?.isDeleted === !0 ? je.deletedClassError : !0
325
- }
326
- },
327
- style: {
328
- borderBottom: `1px solid ${O.colors.grey3}`,
329
- borderBottomLeftRadius: o.sp2,
330
- borderBottomRightRadius: o.sp2
331
- },
332
- fullWidthSelect: !0
333
- },
334
- We(p, "class")
335
- )
336
- }
337
- )
338
- ] });
339
- }, Ot = n.div`
340
- display: flex;
341
- flex: 1;
342
- background-color: ${(e) => e.theme.colors.grey3};
343
- min-height: 1px;
344
- max-height: 1px;
345
- `, Vo = {
346
- amounWidth: new s(50, 30),
347
- currencyWidth: new s(50, 70)
348
- };
349
- function ei({
350
- name: e,
351
- placeHolder: i,
352
- defaultValue: a,
353
- isDisabled: d,
354
- showAmountCurrencyError: p,
355
- style: v,
356
- allCurrencies: m
357
- }) {
358
- const [S, x] = Q(!1), {
359
- getValues: l,
360
- formState: { errors: C }
361
- } = at(), b = $t(), c = ze(), y = d != null, $ = l(e), O = `${$?.amount} ${$?.currency?.selectedOption}`, T = Pe(C, e) && zt(C, `${e}.amount`) != null, P = Pe(C, e) && zt(C, `${e}.currency`) != null, H = p === !0 ? T || P : !1, B = !H && S === !1;
362
- return ye(() => {
363
- B === !1 && x(!0);
364
- }, [B]), /* @__PURE__ */ t.jsx(
365
- cn,
366
- {
367
- onClickAway: () => y === !1 && !H && x(!1),
368
- children: /* @__PURE__ */ t.jsx(
369
- oi,
370
- {
371
- style: v,
372
- isDisabled: y,
373
- tabIndex: B && !y ? 0 : void 0,
374
- onClick: () => y === !1 && x(!0),
375
- "data-testid": U("currency-amount-field", e),
376
- children: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
377
- $?.amount != null ? /* @__PURE__ */ t.jsx(
378
- _o,
379
- {
380
- className: "amount-field",
381
- isVisible: B,
382
- children: O
383
- }
384
- ) : /* @__PURE__ */ t.jsx(
385
- _o,
386
- {
387
- className: "amount-field amount-placeholder",
388
- isVisible: B,
389
- children: i?.name
390
- }
391
- ),
392
- /* @__PURE__ */ t.jsxs(ti, { isVisible: !B, children: [
393
- /* @__PURE__ */ t.jsx(
394
- hr,
395
- {
396
- type: "number",
397
- name: `${e}.amount`,
398
- defaultValue: a?.amount,
399
- placeholder: i?.amount,
400
- returnValueType: "floatValue",
401
- allowNegative: !1,
402
- isNumericString: !1,
403
- registerOptions: {
404
- required: !0,
405
- validate: (k) => k != null ? k > 0 : !0
406
- },
407
- autoComplete: "off",
408
- decimalSeparator: ".",
409
- decimalScale: 2,
410
- fixedDecimalScale: !1,
411
- thousandSeparator: !0,
412
- isDisabled: d,
413
- style: {
414
- display: "flex",
415
- flexGrow: 1,
416
- width: Vo.amounWidth.valuePercentage(c),
417
- cursor: "inherit"
418
- },
419
- bgColor: b.colors.background,
420
- isFieldError: T,
421
- shouldHighlightZeroAmount: !0
422
- }
423
- ),
424
- B ? null : /* @__PURE__ */ t.jsx(ni, {}),
425
- /* @__PURE__ */ t.jsx(
426
- Ur,
427
- {
428
- name: `${e}.currency`,
429
- registerOptions: {
430
- validate: (k) => k != null && k.selectedOption != null
431
- },
432
- defaultValue: {
433
- allOptions: m.map((k) => ({
434
- label: c === "small" ? k.currencyCode : `${k.currencyCode} - ${k.currency}`,
435
- value: k.currencyCode,
436
- countryCode: k.countryCode
437
- })),
438
- selectedOption: a?.currencyCode
439
- },
440
- controlStyle: {
441
- justifyContent: "flex-start",
442
- backgroundColor: b.colors.background
443
- },
444
- isDisabled: d,
445
- style: {
446
- width: Vo.currencyWidth.valuePercentage(c),
447
- flexGrow: 1
448
- },
449
- isOptionRemovable: !1
450
- }
451
- )
452
- ] })
453
- ] })
454
- }
455
- )
456
- }
457
- );
458
- }
459
- const ti = n.div`
460
- display: ${(e) => e.isVisible ? "flex" : "none"};
461
- width: 100%;
462
- input {
463
- text-align: left;
464
- }
465
- `, oi = n.div`
466
- display: flex;
467
- align-items: center;
468
- justify-content: flex-end;
469
- position: relative;
470
- width: 100%;
471
- background-color: ${(e) => e.theme.colors.grey5};
472
- outline: none;
473
- outline-width: 0;
474
- input {
475
- text-align: right;
476
- }
477
- `, ni = n.div`
478
- background-color: ${(e) => e.theme.colors.grey5};
479
- min-width: ${o.sp3};
480
- `, _o = n(xn)`
481
- display: ${(e) => e.isVisible ? "flex" : "none"};
482
- padding: 0 ${o.sp3};
483
- border-radius: ${o.sp1};
484
- height: 100%;
485
- align-items: center;
486
- width: 100%;
487
- justify-content: flex-end;
488
- color: ${(e) => e.theme.colors.primary};
489
- &.amount-placeholder {
490
- color: ${(e) => e.theme.colors.grey1};
491
- }
492
- `, De = {
493
- width: new s(343, 580, 726),
494
- height: new s(r[6], r[6]),
495
- controlHeight: new s(r[6], r[6]),
496
- paddingTopBottom: new s(r[2], r[2]),
497
- marginTop: new s(r[2], r[2]),
498
- marginBottom: new s(r[2], r[2]),
499
- marginRight: new s(r[2], r[2]),
500
- labelMarginLeft: new s(r[3], r[4]),
501
- labelMarginRight: new s(r[3], r[4]),
502
- labelMarginTop: new s(r[2], r[2])
503
- }, Bn = {
504
- infoLabel: new go("extraSmallRegular", "smallRegular")
505
- };
506
- function ri({
507
- isDisabled: e,
508
- label: i,
509
- currencyAmountField: a,
510
- style: d,
511
- errorInfoLabel: p,
512
- isAdditionalInfoLabelLoading: v,
513
- showAdditionalLabelTooltip: m = !1,
514
- additionalLabelTooltip: S,
515
- additionalInfoLabel: x,
516
- showAdditionalInfoLabel: l = !0
517
- }) {
518
- const C = ze(), {
519
- formState: { errors: b }
520
- } = at(), c = Pe(b, a.name) && zt(b, `${a.name}.amount`) != null, y = Pe(b, a.name) && zt(b, `${a.name}.currency`) != null, $ = a.showAmountCurrencyError === !0 ? c || y : !1, O = c || y || $, T = () => {
521
- if (v === !0)
522
- return /* @__PURE__ */ t.jsx(ci, { children: /* @__PURE__ */ t.jsx(vt, { size: "Small", start: !0 }) });
523
- if (l && x || $) {
524
- let P = null;
525
- return m === !0 && l && x && (P = /* @__PURE__ */ t.jsx(
526
- bn,
527
- {
528
- placement: C === "small" ? "bottom" : "right",
529
- maxWidth: "364px",
530
- title: /* @__PURE__ */ t.jsx(si, { children: S ?? "" }),
531
- children: /* @__PURE__ */ t.jsx(ui, { children: /* @__PURE__ */ t.jsx(mi, {}) })
532
- }
533
- )), /* @__PURE__ */ t.jsxs(
534
- di,
535
- {
536
- size: C,
537
- isError: $,
538
- hasToolTip: m,
539
- children: [
540
- P,
541
- x
542
- ]
543
- }
544
- );
545
- }
546
- };
547
- return /* @__PURE__ */ t.jsxs(
548
- ii,
549
- {
550
- size: C,
551
- style: d,
552
- isDisabled: e != null,
553
- isAmountError: c,
554
- isCurrencyError: y,
555
- "data-testid": U(
556
- "labeled-currency-amount-field",
557
- a.name
558
- ),
559
- children: [
560
- /* @__PURE__ */ t.jsx(
561
- gr,
562
- {
563
- isDisabled: e,
564
- label: i.label,
565
- htmlFor: a.name,
566
- style: {
567
- marginLeft: De.labelMarginLeft.value(C),
568
- marginRight: De.labelMarginRight.value(C),
569
- marginTop: De.labelMarginTop.value(C),
570
- width: i.width ?? "auto"
571
- }
572
- }
573
- ),
574
- /* @__PURE__ */ t.jsxs(li, { labelWidth: i.width, children: [
575
- /* @__PURE__ */ t.jsx(
576
- ei,
577
- {
578
- ...a,
579
- isDisabled: e,
580
- style: {
581
- flexGrow: 1,
582
- height: De.controlHeight.value(C)
583
- }
584
- }
585
- ),
586
- O ? /* @__PURE__ */ t.jsx(ai, { size: C, hasError: O, children: p }) : null,
587
- T()
588
- ] })
589
- ]
590
- }
591
- );
592
- }
593
- const ii = n.div`
594
- display: flex;
595
- flex-direction: row;
596
- align-items: flex-start;
597
- background-color: ${(e) => e.theme.colors.grey5};
598
- width: ${(e) => De.width.valuePx(e.size)};
599
- min-height: ${(e) => De.height.valuePx(e.size)};
600
- padding-right: ${(e) => De.marginRight.valuePx(e.size)};
601
- padding-top: ${(e) => De.paddingTopBottom.valuePx(e.size)};
602
- padding-bottom: ${(e) => De.paddingTopBottom.valuePx(e.size)};
603
-
604
- :first-of-type {
605
- border-top-left-radius: inherit;
606
- border-top-right-radius: inherit;
607
- }
608
-
609
- :last-of-type {
610
- border-bottom-left-radius: inherit;
611
- border-bottom-right-radius: inherit;
612
- }
613
-
614
- &:focus-within {
615
- z-index: 2;
616
- outline: 1px solid ${(e) => e.theme.colors.primary};
617
-
618
- .amount-field {
619
- background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
620
- }
621
-
622
- input:nth-of-type(1) {
623
- background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
624
- }
625
-
626
- input:nth-of-type(2) {
627
- background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
628
- }
629
- }
630
- input {
631
- text-align: left;
632
- background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
633
- }
634
-
635
- input:nth-of-type(1) {
636
- background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
637
- }
638
-
639
- input:nth-of-type(2) {
640
- background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
641
- }
642
-
643
- &:hover {
644
- z-index: 1;
645
- outline: 1px solid
646
- ${(e) => e.isDisabled === !0 ? e.theme.colors.grey3 : e.theme.colors.primary};
647
- input,
648
- .amount-field {
649
- background-color: ${(e) => e.isDisabled === !0 ? e.theme.colors.grey5 : e.theme.colors.background};
650
- }
651
-
652
- input:nth-of-type(1) {
653
- background-color: ${(e) => e.isAmountError ? I.importantLight : e.theme.colors.background};
654
- }
655
-
656
- input:nth-of-type(2) {
657
- background-color: ${(e) => e.isCurrencyError ? I.importantLight : e.theme.colors.background};
658
- }
659
- }
660
- `, ai = n.label`
661
- color: ${(e) => e.hasError === !0 ? I.important : e.additionalInfoTextColor != null ? e.additionalInfoTextColor : e.theme.colors.grey1};
662
- width: auto;
663
- ${(e) => `${Bn.infoLabel.style(e.size)}`};
664
- padding-right: ${o.sp3};
665
- text-align: right;
666
- `, li = n.div`
667
- display: flex;
668
- width: ${(e) => e.labelWidth != null ? `calc(100% - ${e.labelWidth}px)` : "auto"};
669
- justify-content: flex-end;
670
- flex-direction: column;
671
- position: relative;
672
- `, si = n(yo)`
673
- padding: 12px;
674
- color: ${(e) => e.theme.colors.grey1};
675
- background: ${(e) => e.theme.colors.overlayColor};
676
- border-radius: ${o.sp1};
677
- `, ci = n.div`
678
- padding-right: ${o.sp3};
679
- padding-top: ${o.sp1};
680
- display: flex;
681
- justify-content: flex-end;
682
- `, di = n.label`
683
- display: flex;
684
- justify-content: flex-end;
685
- color: ${(e) => e.isError ? I.important : e.theme.colors.hero};
686
- &:hover {
687
- color: ${(e) => e.isError ? I.importantDark : e.theme.colors.primary};
688
- }
689
- ${(e) => `${Bn.infoLabel.style(e.size)}`};
690
- padding-right: ${o.sp3};
691
- text-align: right;
692
- margin-top: ${(e) => e.hasToolTip === !0 ? o.sp1 : o.sp0};
693
- `, ui = n.div`
694
- display: flex;
695
- margin-right: ${o.sp2};
696
- margin-top: 2px;
697
- align-items: center;
698
- `, mi = n(yr)`
699
- width: ${o.sp3};
700
- height: ${o.sp3};
701
- color: inherit;
702
- `, ge = (e, i) => `${e}.${i}`, Mt = {
703
- largeLabelWidth: new s(120, 120, 160),
704
- smallLabelWidth: new s(85, 85, 160),
705
- paddingBottom: new s(r[3], r[2]),
706
- paddingLeft: new s(r[3], r[4]),
707
- autoFillIconLeft: new s(-r[2], -r[4])
708
- }, {
709
- dateFormat: pi,
710
- common: An,
711
- spendManagement: {
712
- reimbursement: { reimbursementDetail: oe }
713
- }
714
- } = we.getLocalizedStrings(), {
715
- strings: { empty: ae }
716
- } = An, hi = (e, i) => {
717
- const a = e.slice(1);
718
- let d = !1;
719
- return a.forEach((p) => {
720
- p.account?.qboId != null && p.account?.qboId === i && (d = !0);
721
- }), d;
722
- }, gi = (e) => e.charAt(0).toLowerCase() + e.slice(1), yi = ({
723
- lineIndex: e,
724
- outOfPocket: i,
725
- accountList: a,
726
- classList: d,
727
- merchantList: p,
728
- isAddReimbursementDisabled: v,
729
- sectionId: m,
730
- isReimbursementCommentingEnabled: S,
731
- isDisabled: x,
732
- autoFields: l = [],
733
- accountsHierarchyList: C,
734
- classHierarchyList: b,
735
- reimbursementId: c,
736
- tentativeMerchantName: y,
737
- allCurrencies: $,
738
- uncategorizedAccounts: O
739
- }) => {
740
- const T = ze(), P = St(), H = Wt(), B = $t(), {
741
- formState: { errors: k },
742
- getValues: M,
743
- trigger: te
744
- } = at(), ne = M(ge(m, "class")), re = d.find(
745
- (h) => h.classId === ne?.selectedOption
746
- ), Y = ge(m, "class"), K = Pe(k, Y), F = M(ge(m, "account")), J = a.find(
747
- (h) => h.qboId === F?.selectedOption || h.accountId === F?.selectedOption
748
- ), q = ge(m, "account"), L = Pe(k, q);
749
- ye(() => {
750
- ne?.selectedOption != null && (re?.isDeleted === !0 || K) && te(Y);
751
- }, [
752
- ne?.selectedOption,
753
- re?.isDeleted,
754
- d,
755
- Y,
756
- te
757
- ]), ye(() => {
758
- F?.selectedOption != null && (J?.isDeleted === !0 || L) && te(q);
759
- }, [
760
- F?.selectedOption,
761
- J?.isDeleted,
762
- a,
763
- q,
764
- te
765
- ]);
766
- const ce = i.isCategoryUpdateSelected != null && i.recommendedAccount != null && //if category was autofilled but subsequetly updated, isCategoryFirstTimeAutofilled will be false
767
- !i.isCategoryFirstTimeAutofilled && // if R2 or R3 selected, don't show the checkbox
768
- !hi(
769
- i.recommendations,
770
- i.account
771
- ), X = i.isRetainedCategorySelected != null && i.retainedAccount != null, V = Mt.largeLabelWidth.value(T), de = Mt.smallLabelWidth.value(T), _e = p.map(
772
- (h) => h.id ?? ae
773
- ), ue = {
774
- application: "dashboard",
775
- companyId: P.currentTenant?.companyId,
776
- tab: "reimbursement",
777
- entityId: c
778
- }, fe = `dashboard_${P.currentTenant?.companyId}`, le = (h) => p.find((Ce) => Ce.id === h)?.name ?? h, Be = a.find(
779
- (h) => h.qboId === i.account
780
- ), Ae = (h) => [
781
- O.expense?.qboId,
782
- O.income?.qboId
783
- ].includes(h), Le = d.find((h) => h.classId === i.class), me = {
784
- valueContainer: (h) => ({
785
- ...h,
786
- padding: `2px ${o.sp3} !important`,
787
- overflow: "unset"
788
- }),
789
- singleValue: () => ({
790
- margin: 0
791
- })
792
- }, Me = (h) => a.filter((he) => he.qboId === h)[0]?.qboId, pe = (h) => d.filter((he) => he.classId === h)[0]?.accountingClassNumber, ve = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace(
793
- "__based__",
794
- gi(i?.recommendedAccount?.reason ?? ae)
795
- ), Je = Et(
796
- C,
797
- i.recommendations
798
- );
799
- return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
800
- y != null || l.includes("merchant") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
801
- /* @__PURE__ */ t.jsx(
802
- $e,
803
- {
804
- isThreadAllowed: S && c != null,
805
- dashboardTabKey: Se({
806
- type: "details",
807
- key: `${e}.out_of_pocket.merchant`
808
- }),
809
- roomId: fe,
810
- companyId: P.currentTenant?.companyId ?? ae,
811
- companyName: P.currentTenant?.companyName ?? ae,
812
- entityId: c,
813
- dashboardOptionType: "reimbursement",
814
- filterMetaData: {
815
- ...ue,
816
- entityType: `reimbursement.details.${Ie(
817
- "merchant",
818
- e,
819
- "out_of_pocket"
820
- )}`
821
- },
822
- fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
823
- children: /* @__PURE__ */ t.jsx(
824
- qr,
825
- {
826
- isDisabled: x != null || v ? "disabled" : void 0,
827
- label: {
828
- label: oe.merchant,
829
- width: V
830
- },
831
- style: {
832
- width: "auto"
833
- },
834
- creatableSingleSelectField: {
835
- name: ge(m, "merchant"),
836
- placeholder: oe.merchantPlaceholder,
837
- defaultValue: {
838
- selectedOption: i.merchant ?? ae,
839
- allOptions: _e
840
- },
841
- registerOptions: {
842
- required: !0,
843
- validate: (h) => !!h.selectedOption
844
- }
845
- },
846
- isOptionRemovable: !0,
847
- addIconInCreateLabel: !0,
848
- getLabelForId: le
849
- }
850
- )
851
- }
852
- ),
853
- /* @__PURE__ */ t.jsx(Pt, {}),
854
- l.includes("transactionDate") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
855
- /* @__PURE__ */ t.jsx(
856
- $e,
857
- {
858
- isThreadAllowed: S && c != null,
859
- dashboardTabKey: Se({
860
- type: "details",
861
- key: `${e}.out_of_pocket.transactionDate`
862
- }),
863
- roomId: fe,
864
- companyId: P.currentTenant?.companyId ?? ae,
865
- companyName: P.currentTenant?.companyName ?? ae,
866
- entityId: c,
867
- dashboardOptionType: "reimbursement",
868
- filterMetaData: {
869
- ...ue,
870
- entityType: `reimbursement.details.${Ie(
871
- "transactionDate",
872
- e,
873
- "out_of_pocket"
874
- )}`
875
- },
876
- fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
877
- children: /* @__PURE__ */ t.jsx(
878
- yn,
879
- {
880
- isDisabled: x,
881
- label: {
882
- label: oe.transactionDate,
883
- width: V
884
- },
885
- style: {
886
- paddingBottom: Mt.paddingBottom.valuePx(T),
887
- width: "auto"
888
- },
889
- dateField: {
890
- name: ge(m, "transactionDate"),
891
- placeholder: oe.datePlaceholder,
892
- defaultValue: i?.transactionDate,
893
- dateFormat: pi.visual.defaultInput,
894
- autoComplete: "off",
895
- maxDate: po(),
896
- registerOptions: {
897
- required: !0,
898
- validate: (h) => !!h
899
- }
900
- }
901
- }
902
- )
903
- }
904
- ),
905
- /* @__PURE__ */ t.jsx(Pt, {}),
906
- l.includes("amount") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, isTwoLined: !0, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
907
- /* @__PURE__ */ t.jsx(
908
- $e,
909
- {
910
- isThreadAllowed: S && c != null,
911
- dashboardTabKey: Se({
912
- type: "details",
913
- key: `${e}.out_of_pocket.amount`
914
- }),
915
- roomId: fe,
916
- companyId: P.currentTenant?.companyId ?? ae,
917
- companyName: P.currentTenant?.companyName ?? ae,
918
- entityId: c,
919
- dashboardOptionType: "reimbursement",
920
- filterMetaData: {
921
- ...ue,
922
- entityType: `reimbursement.details.${Ie(
923
- "amount",
924
- e,
925
- "out_of_pocket"
926
- )}`
927
- },
928
- fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
929
- children: /* @__PURE__ */ t.jsx(
930
- ri,
931
- {
932
- isDisabled: x != null || v ? "disabled" : void 0,
933
- label: { label: oe.amount, width: de },
934
- style: { width: "auto" },
935
- currencyAmountField: {
936
- style: { height: o.sp6 },
937
- name: `${m}.amount`,
938
- defaultValue: {
939
- amount: i.amount.amount,
940
- currencyCode: i.amount.currencyCode,
941
- currencySymbol: i.amount.currencySymbol
942
- },
943
- placeHolder: {
944
- amount: oe.addAmount,
945
- name: oe.addAmount
946
- },
947
- allCurrencies: $,
948
- showAmountCurrencyError: !0
949
- },
950
- showAdditionalInfoLabel: !0,
951
- showAdditionalLabelTooltip: !0,
952
- additionalLabelTooltip: oe.amountExchangeRateTooltip,
953
- isAdditionalInfoLabelLoading: i.isConvertedCurrencyLoading === !0,
954
- additionalInfoLabel: !dn(i.homeCurrencyDetails, i.amount) && i.amount.currencyCode !== An.currency.currencyCode && i.homeCurrencyDetails?.amount !== 0 ? `${fr(
955
- "0,0[.]00",
956
- i.homeCurrencyDetails
957
- )} ${i.homeCurrencyDetails?.currencyCode}` : void 0
958
- }
959
- )
960
- }
961
- ),
962
- /* @__PURE__ */ t.jsx(Pt, {}),
963
- l.includes("memo") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
964
- /* @__PURE__ */ t.jsx(
965
- $e,
966
- {
967
- isThreadAllowed: S && c != null,
968
- dashboardTabKey: Se({
969
- type: "details",
970
- key: `${e}.out_of_pocket.memo`
971
- }),
972
- roomId: fe,
973
- companyId: P.currentTenant?.companyId ?? ae,
974
- companyName: P.currentTenant?.companyName ?? ae,
975
- entityId: c,
976
- dashboardOptionType: "reimbursement",
977
- filterMetaData: {
978
- ...ue,
979
- entityType: `reimbursement.details.${Ie(
980
- "memo",
981
- e,
982
- "out_of_pocket"
983
- )}`
984
- },
985
- fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
986
- children: /* @__PURE__ */ t.jsx(
987
- ho,
988
- {
989
- isDisabled: x,
990
- label: {
991
- label: oe.memo,
992
- width: V
993
- },
994
- style: { width: "auto" },
995
- text: {
996
- type: "text",
997
- name: ge(m, "memo"),
998
- placeholder: rt(oe.memo),
999
- defaultValue: i.memo,
1000
- autoComplete: "off",
1001
- options: {
1002
- pattern: fn
1003
- }
1004
- }
1005
- }
1006
- )
1007
- }
1008
- ),
1009
- /* @__PURE__ */ t.jsx(Pt, {}),
1010
- l.includes("account") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
1011
- /* @__PURE__ */ t.jsx(
1012
- $e,
1013
- {
1014
- isThreadAllowed: S && c != null,
1015
- dashboardTabKey: Se({
1016
- type: "details",
1017
- key: `${e}.out_of_pocket.account`
1018
- }),
1019
- roomId: fe,
1020
- companyId: P.currentTenant?.companyId ?? ae,
1021
- companyName: P.currentTenant?.companyName ?? ae,
1022
- entityId: c,
1023
- dashboardOptionType: "reimbursement",
1024
- filterMetaData: {
1025
- ...ue,
1026
- entityType: `reimbursement.details.${Ie(
1027
- "account",
1028
- e,
1029
- "out_of_pocket"
1030
- )}`
1031
- },
1032
- fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
1033
- children: /* @__PURE__ */ t.jsx(
1034
- uo,
1035
- {
1036
- label: {
1037
- label: oe.category,
1038
- width: V
1039
- },
1040
- additionalLabelInfo: J?.isDeleted === !0 && Pe(k, ge(m, "account")) ? oe.deletedCategoryError : void 0,
1041
- groupedSingleSelectField: {
1042
- shouldShowChevronIcon: ce || X,
1043
- name: ge(m, "account"),
1044
- placeholder: oe.categoryPlaceholder,
1045
- valueToId: (h) => Me(h),
1046
- defaultValue: {
1047
- selectedOption: Be?.qboId ?? Be?.accountId,
1048
- allOptions: Je
1049
- },
1050
- style: {
1051
- width: "100%"
1052
- },
1053
- customStyleConfig: me,
1054
- registerOptions: {
1055
- required: !0,
1056
- validate: (h) => h?.selectedOption == null ? !1 : a.find(
1057
- (he) => he.qboId === h?.selectedOption || he.accountId === h?.selectedOption
1058
- )?.isDeleted === !0 ? oe.deletedCategoryError : !0
1059
- }
1060
- },
1061
- disableCurrentOption: Ae,
1062
- style: {
1063
- borderBottom: `1px solid ${B.colors.grey3}`,
1064
- minHeight: o.sp6,
1065
- boxSizing: "initial"
1066
- },
1067
- fullWidthSelect: !0,
1068
- isLoading: i.isRecommendationLoading,
1069
- recommendationCheckboxField: ce ? {
1070
- tooltipProps: { text: ve },
1071
- label: {
1072
- label: i.recommendedAccount?.accountName ?? ae
1073
- },
1074
- checkBoxField: {
1075
- name: ge(m, "isCategoryUpdateSelected"),
1076
- defaultChecked: !!i.isCategoryUpdateSelected
1077
- }
1078
- } : void 0,
1079
- retainCheckboxField: X ? {
1080
- label: {
1081
- label: i.retainedAccount?.accountName ?? ae
1082
- },
1083
- checkBoxField: {
1084
- name: ge(m, "isRetainedCategorySelected"),
1085
- defaultChecked: !!i.isRetainedCategorySelected
1086
- }
1087
- } : void 0
1088
- },
1089
- ge(m, "account")
1090
- )
1091
- }
1092
- ),
1093
- l.includes("class") ? /* @__PURE__ */ t.jsx(ct, { children: /* @__PURE__ */ t.jsx(ut, { windowSize: T, children: /* @__PURE__ */ t.jsx(dt, {}) }) }) : null,
1094
- /* @__PURE__ */ t.jsx(
1095
- $e,
1096
- {
1097
- isThreadAllowed: S && c != null,
1098
- dashboardTabKey: Se({
1099
- type: "details",
1100
- key: `${e}.out_of_pocket.class`
1101
- }),
1102
- roomId: fe,
1103
- companyId: P.currentTenant?.companyId ?? ae,
1104
- companyName: P.currentTenant?.companyName ?? ae,
1105
- entityId: c,
1106
- dashboardOptionType: "reimbursement",
1107
- filterMetaData: {
1108
- ...ue,
1109
- entityType: `reimbursement.details.${Ie(
1110
- "class",
1111
- e,
1112
- "out_of_pocket"
1113
- )}`
1114
- },
1115
- fieldThreadTargetElement: H?.sharedRef?.contentWrapperRef,
1116
- style: {
1117
- borderRadius: `0 0 ${o.sp2} ${o.sp2}`
1118
- },
1119
- children: /* @__PURE__ */ t.jsx(
1120
- uo,
1121
- {
1122
- isLoading: !1,
1123
- label: {
1124
- label: oe.department,
1125
- width: V
1126
- },
1127
- additionalLabelInfo: re?.isDeleted === !0 && Pe(k, ge(m, "class")) ? oe.deletedClassError : void 0,
1128
- groupedSingleSelectField: {
1129
- shouldShowChevronIcon: !1,
1130
- name: ge(m, "class"),
1131
- placeholder: rt(oe.department),
1132
- valueToId: (h) => pe(h),
1133
- defaultValue: {
1134
- selectedOption: Le?.classId,
1135
- allOptions: Ye(b, [])
1136
- },
1137
- style: {
1138
- width: "100%"
1139
- },
1140
- customStyleConfig: me,
1141
- registerOptions: {
1142
- required: !0,
1143
- validate: (h) => h?.selectedOption == null ? !1 : d.find(
1144
- (he) => he.classId === h?.selectedOption
1145
- )?.isDeleted === !0 ? oe.deletedClassError : !0
1146
- }
1147
- },
1148
- style: {
1149
- borderBottom: `1px solid ${B.colors.grey3}`,
1150
- borderBottomLeftRadius: o.sp2,
1151
- borderBottomRightRadius: o.sp2
1152
- },
1153
- fullWidthSelect: !0
1154
- },
1155
- ge(m, "class")
1156
- )
1157
- }
1158
- )
1159
- ] });
1160
- }, ct = n.span`
1161
- position: relative;
1162
- `, dt = n(fo)`
1163
- color: ${(e) => e.theme.colors.primary};
1164
- width: ${o.sp3};
1165
- height: ${o.sp3};
1166
- `, ut = n.div`
1167
- z-index: 2;
1168
- left: ${(e) => Mt.autoFillIconLeft.valuePx(e.windowSize)};
1169
- position: absolute;
1170
- top: ${(e) => e.isTwoLined === !0 ? o.sp5 : "22px"};
1171
- `, Pt = n.div`
1172
- display: flex;
1173
- flex: 1;
1174
- background-color: ${(e) => e.theme.colors.grey3};
1175
- min-height: 1px;
1176
- max-height: 1px;
1177
- `, ot = (e, i) => `${e}.${i}`, qe = {
1178
- paddingTop: new s(r[5], r[4]),
1179
- marginBottom: new s(r[3], r[3]),
1180
- labelPaddingLeft: new s(r[3], r[4]),
1181
- buttonWidth: new s(70, 70),
1182
- containerRightMargin: new s(r[3], r[8]),
1183
- containerLeftMargin: new s(r[3], r[6]),
1184
- deleteConfirmationTextMarginBottom: new s(r[2], r[0])
1185
- }, G = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, fi = ({
1186
- lineData: e,
1187
- currencyConversionState: i,
1188
- recommendationFetchState: a,
1189
- remiStage: d,
1190
- lineIndex: p,
1191
- accountList: v,
1192
- classList: m,
1193
- merchantList: S,
1194
- hasFile: x,
1195
- defaultCurrency: l,
1196
- hasMultipleLineItems: C,
1197
- fileRequiredLineIds: b,
1198
- duplicateLineDetails: c,
1199
- remiStatus: y,
1200
- sectionId: $,
1201
- isDisabled: O,
1202
- isReimbursementCommentingEnabled: T,
1203
- isAddReimbursementDisabled: P,
1204
- style: H,
1205
- autoFields: B = [],
1206
- analytics: k,
1207
- reimbursementId: M,
1208
- tentativeMerchantName: te,
1209
- companyMileageConfigInfo: ne,
1210
- uncategorizedAccounts: re,
1211
- removeDuplicateReimbursementForLine: Y,
1212
- scrollToSection: K,
1213
- onDuplicateLineClick: F,
1214
- onRemoveReimbursement: J,
1215
- clearTentativeNameForLine: q,
1216
- allCurrencies: L,
1217
- accountsHierarchyList: ce,
1218
- classHierarchyList: X
1219
- }) => {
1220
- const V = ze(), de = St(), _e = Wt(), ue = we.getLocalizedStrings().common.strings.empty, fe = {
1221
- application: "dashboard",
1222
- companyId: de.currentTenant?.companyId,
1223
- tab: "reimbursement",
1224
- entityId: M
1225
- }, le = `dashboard_${de.currentTenant?.companyId}`, { getValues: Be } = at(), [Ae, Le] = Q(!1), me = Be(
1226
- ot($, "reimbursementType")
1227
- );
1228
- return /* @__PURE__ */ t.jsxs(Ci, { style: H, windowSize: V, children: [
1229
- /* @__PURE__ */ t.jsxs(
1230
- bi,
1231
- {
1232
- hasFile: x,
1233
- windowSize: V,
1234
- showDeleteConfirmation: Ae,
1235
- children: [
1236
- /* @__PURE__ */ t.jsx(ki, { windowSize: V, children: C ? `#${p + 1} ${G.reimbursement}` : G.reimbursement }),
1237
- Ae ? /* @__PURE__ */ t.jsxs(vi, { windowSize: V, children: [
1238
- /* @__PURE__ */ t.jsx(Si, { windowSize: V, children: G.deleteConfirmation }),
1239
- /* @__PURE__ */ t.jsxs(xi, { children: [
1240
- /* @__PURE__ */ t.jsx(
1241
- Ro,
1242
- {
1243
- label: G.buttons.cancel,
1244
- onClick: () => Le(!1),
1245
- style: {
1246
- width: qe.buttonWidth.value(V),
1247
- marginLeft: V === "small" ? o.sp0 : o.sp4,
1248
- marginRight: o.sp3
1249
- },
1250
- size: "small",
1251
- variant: "secondary",
1252
- "data-testid": U(
1253
- "delete-remi-button",
1254
- G.buttons.cancel
1255
- )
1256
- }
1257
- ),
1258
- /* @__PURE__ */ t.jsx(
1259
- Ro,
1260
- {
1261
- label: G.buttons.remove,
1262
- onClick: () => {
1263
- k?.trackReimbursementDeleteReimbursementLine(
1264
- e.lineId,
1265
- M
1266
- ), q?.(e.lineId ?? "1"), Le(!1), Y(e.lineId), J(p);
1267
- },
1268
- style: { width: qe.buttonWidth.value(V) },
1269
- size: "small",
1270
- variant: "danger",
1271
- "data-testid": U(
1272
- "delete-remi-button",
1273
- G.buttons.remove
1274
- )
1275
- }
1276
- )
1277
- ] })
1278
- ] }) : C && (d === "draft" || y === "rejected") ? /* @__PURE__ */ t.jsx(
1279
- wi,
1280
- {
1281
- className: "deleteIconWrapper",
1282
- windowSize: V,
1283
- onClick: () => Le(!0),
1284
- "data-testid": U(
1285
- "delete-remi-button",
1286
- e.lineId
1287
- ),
1288
- children: /* @__PURE__ */ t.jsx(
1289
- bn,
1290
- {
1291
- enterDelay: 600,
1292
- title: G.deleteReimbursement,
1293
- placement: "top-end",
1294
- children: /* @__PURE__ */ t.jsx($i, {})
1295
- }
1296
- )
1297
- }
1298
- ) : null
1299
- ]
1300
- }
1301
- ),
1302
- b.includes(e.lineId) ? /* @__PURE__ */ t.jsx(
1303
- wn,
1304
- {
1305
- title: G.missingReceipt,
1306
- description: G.missingReceiptDescription,
1307
- style: { marginBottom: o.sp3 }
1308
- }
1309
- ) : null,
1310
- /* @__PURE__ */ t.jsxs(ji, { windowSize: V, children: [
1311
- c?.duplicateLineId != null ? /* @__PURE__ */ t.jsxs(Ti, { children: [
1312
- G.thisExpense,
1313
- " ",
1314
- c.isDuplicateWithinTransaction ? /* @__PURE__ */ t.jsx(
1315
- Do,
1316
- {
1317
- "data-testid": U(
1318
- "view-duplicate-transaction-expense"
1319
- ),
1320
- onClick: () => (k?.trackReimbursementViewDuplicateExpense(
1321
- !0,
1322
- M
1323
- ), K(
1324
- c.duplicateLineId
1325
- )),
1326
- children: G.viewOriginalExpense
1327
- }
1328
- ) : /* @__PURE__ */ t.jsx(
1329
- Do,
1330
- {
1331
- "data-testid": U("view-duplicate-expense"),
1332
- onClick: () => {
1333
- c.duplicateTransactionId != null && c.duplicateLineId != null && (k?.trackReimbursementViewDuplicateExpense(
1334
- !1,
1335
- M
1336
- ), F(
1337
- c.duplicateTransactionId,
1338
- c.duplicateLineId
1339
- ));
1340
- },
1341
- children: G.viewOriginalExpense
1342
- }
1343
- )
1344
- ] }) : null,
1345
- /* @__PURE__ */ t.jsx(
1346
- $e,
1347
- {
1348
- isThreadAllowed: T && M != null,
1349
- dashboardTabKey: Se({
1350
- type: "details",
1351
- key: me === G.mileageKey ? `${p}.mileage.reimbursementType` : `${p}.out_of_pocket.reimbursementType`
1352
- }),
1353
- roomId: le,
1354
- companyId: de.currentTenant?.companyId ?? ue,
1355
- companyName: de.currentTenant?.companyName ?? ue,
1356
- entityId: M,
1357
- dashboardOptionType: "reimbursement",
1358
- filterMetaData: {
1359
- ...fe,
1360
- entityType: `reimbursement.details.${Ie(
1361
- "reimbursementType",
1362
- p,
1363
- me === G.mileageKey ? "mileage" : "out_of_pocket"
1364
- )}`
1365
- },
1366
- fieldThreadTargetElement: _e?.sharedRef?.contentWrapperRef,
1367
- style: {
1368
- borderRadius: c?.duplicateLineId != null ? "0 0 0 0" : `${o.sp2} ${o.sp2} 0 0`
1369
- },
1370
- children: /* @__PURE__ */ t.jsxs(
1371
- Oi,
1372
- {
1373
- isDisabled: O != null,
1374
- haveBorderRadius: c?.duplicateLineId == null,
1375
- children: [
1376
- /* @__PURE__ */ t.jsx(
1377
- zo,
1378
- {
1379
- isDisabled: O != null || P ? "disabled" : void 0,
1380
- isContainerClickable: !0,
1381
- label: {
1382
- label: G.outOfPocket
1383
- },
1384
- style: {
1385
- padding: `${o.sp3} ${o.sp0}`,
1386
- paddingLeft: qe.labelPaddingLeft.value(V),
1387
- borderTopLeftRadius: "inherit"
1388
- },
1389
- showOutline: !(T && M != null),
1390
- radioField: {
1391
- name: ot($, "reimbursementType"),
1392
- id: `${ot($, "reimbursementType")}.${G.outOfPocketKey}`,
1393
- value: G.outOfPocketKey
1394
- }
1395
- }
1396
- ),
1397
- /* @__PURE__ */ t.jsx(Ii, {}),
1398
- /* @__PURE__ */ t.jsx(
1399
- zo,
1400
- {
1401
- isDisabled: O != null || P ? "disabled" : void 0,
1402
- isContainerClickable: !0,
1403
- label: {
1404
- label: G.mileage
1405
- },
1406
- style: {
1407
- padding: `${o.sp3} ${o.sp0}`,
1408
- paddingLeft: qe.labelPaddingLeft.value(V),
1409
- borderTopRightRadius: "inherit"
1410
- },
1411
- showOutline: !(T && M != null),
1412
- radioField: {
1413
- name: ot($, "reimbursementType"),
1414
- id: `${ot($, "reimbursementType")}.${G.mileageKey}`,
1415
- value: G.mileageKey
1416
- }
1417
- }
1418
- )
1419
- ]
1420
- }
1421
- )
1422
- }
1423
- ),
1424
- /* @__PURE__ */ t.jsx(Pi, {}),
1425
- me === G.outOfPocketKey ? /* @__PURE__ */ t.jsx(
1426
- yi,
1427
- {
1428
- lineIndex: p,
1429
- reimbursementId: M,
1430
- uncategorizedAccounts: re,
1431
- isReimbursementCommentingEnabled: T,
1432
- isDisabled: O,
1433
- outOfPocket: {
1434
- transactionDate: e.outOfPocket.transactionDate != null ? it(
1435
- e.outOfPocket.transactionDate.toDateString()
1436
- ) : void 0,
1437
- account: e.outOfPocket.account.selectedOption,
1438
- isConvertedCurrencyLoading: i?.fetchState === "In-Progress",
1439
- isRecommendationLoading: a === "In-Progress",
1440
- homeCurrencyDetails: e.homeCurrencyConversions,
1441
- class: e.outOfPocket.class.selectedOption,
1442
- amount: {
1443
- amount: e.outOfPocket.amount?.amount ?? 0,
1444
- currencyCode: e.outOfPocket.amount?.currencyCode ?? "USD",
1445
- currencySymbol: e.outOfPocket.amount?.currencySymbol ?? "$"
1446
- },
1447
- memo: e.outOfPocket.memo,
1448
- merchant: e.outOfPocket.merchant.selectedOption,
1449
- recommendations: e.outOfPocket.recommendations,
1450
- recommendedAccount: e.outOfPocket.recommendedAccount,
1451
- //account to show in update to checkbox
1452
- isCategoryUpdateSelected: e.outOfPocket.isCategoryUpdateSelected,
1453
- //update to checkbox is ticked
1454
- isCategoryFirstTimeAutofilled: e.outOfPocket.isCategoryFirstTimeAutofilled,
1455
- retainedAccount: e.outOfPocket.retainedAccount,
1456
- //account to show in retain checkbox
1457
- isRetainedCategorySelected: e.outOfPocket.isRetainedCategorySelected
1458
- //retain checkbox is selected
1459
- },
1460
- sectionId: ot($, "outOfPocket"),
1461
- accountList: v,
1462
- classList: m,
1463
- autoFields: B,
1464
- merchantList: S,
1465
- tentativeMerchantName: te,
1466
- allCurrencies: L,
1467
- isAddReimbursementDisabled: P,
1468
- accountsHierarchyList: ce,
1469
- classHierarchyList: X
1470
- }
1471
- ) : /* @__PURE__ */ t.jsx(
1472
- Zr,
1473
- {
1474
- lineIndex: p,
1475
- reimbursementId: M,
1476
- isReimbursementCommentingEnabled: T,
1477
- isDisabled: O,
1478
- mileage: {
1479
- transactionDate: e.mileage.transactionDate != null ? it(e.mileage.transactionDate.toDateString()) : void 0,
1480
- class: e.mileage.class.selectedOption,
1481
- distanceInMiles: e.mileage.distanceInMiles,
1482
- amount: {
1483
- amount: e.mileage.amount?.amount ?? 0,
1484
- currencyCode: e.mileage.amount?.currencyCode ?? "USD",
1485
- currencySymbol: e.mileage.amount?.currencySymbol ?? "$"
1486
- },
1487
- memo: e.mileage.memo
1488
- },
1489
- classList: m,
1490
- sectionId: ot($, "mileage"),
1491
- companyMileageConfigInfo: ne,
1492
- defaultCurrency: l,
1493
- isAddReimbursementDisabled: P,
1494
- classHierarchyList: X
1495
- }
1496
- )
1497
- ] })
1498
- ] });
1499
- }, xi = n.div``, bi = n.div`
1500
- //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
1501
- //https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
1502
- display: ${(e) => e.hasFile && e.windowSize === "small" ? "none" : "flex"};
1503
- justify-content: ${(e) => e.windowSize === "small" ? e.showDeleteConfirmation ? "center" : "flex-end" : "space-between"};
1504
- margin-bottom: ${o.sp3};
1505
- align-items: center;
1506
- `, wi = n.div`
1507
- width: ${o.sp3};
1508
- height: ${o.sp3};
1509
- cursor: pointer;
1510
- display: none;
1511
- color: ${(e) => e.windowSize === "small" ? I.important : e.theme.colors.hero};
1512
- &:hover {
1513
- color: ${I.important};
1514
- }
1515
- `, Do = n.span`
1516
- border-bottom: 1px solid currentColor;
1517
- cursor: pointer;
1518
- `, $i = n(xr)`
1519
- width: ${o.sp3};
1520
- height: ${o.sp3};
1521
- cursor: pointer;
1522
- `, Si = n.div`
1523
- margin-bottom: ${(e) => qe.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
1524
- `, vi = n(xo)`
1525
- color: ${(e) => e.theme.colors.hero};
1526
- display: flex;
1527
- align-items: center;
1528
- flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
1529
- `, Ci = n.div`
1530
- display: flex;
1531
- flex-direction: column;
1532
- padding-top: ${(e) => qe.paddingTop.valuePx(e.windowSize)};
1533
- margin-right: ${(e) => qe.containerRightMargin.valuePx(e.windowSize)};
1534
- margin-left: ${(e) => qe.containerLeftMargin.valuePx(e.windowSize)};
1535
- .deleteIconWrapper {
1536
- ${(e) => e.windowSize === "small" && `
1537
- display: block;
1538
- `}
1539
- }
1540
- &:hover {
1541
- .deleteIconWrapper {
1542
- display: block;
1543
- }
1544
- }
1545
- `, Ti = n(br)`
1546
- padding: ${o.sp2} ${o.sp0} ${o.sp2} ${o.sp4};
1547
- background-color: ${I.alertLight};
1548
- color: ${I.brandColorGoldDark};
1549
- border-top-left-radius: inherit;
1550
- border-top-right-radius: inherit;
1551
- `, ki = n(Vt)`
1552
- color: ${(e) => e.theme.colors.primary};
1553
- display: ${(e) => e.windowSize === "small" ? "none" : "unset"};
1554
- `, ji = n.div`
1555
- display: flex;
1556
- flex-direction: column;
1557
- background-color: ${(e) => e.theme.colors.grey5};
1558
- border: 1px solid ${(e) => e.theme.colors.grey3};
1559
- box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1560
- border-radius: ${o.sp2};
1561
- margin-bottom: ${(e) => qe.marginBottom.valuePx(e.windowSize)};
1562
- `, Ii = n.div`
1563
- background-color: ${(e) => e.theme.colors.grey3};
1564
- min-width: 1px;
1565
- max-width: 1px;
1566
- `, Oi = n.div`
1567
- display: flex;
1568
- flex-direction: row;
1569
- border-top-left-radius: ${(e) => e.haveBorderRadius ? "inherit" : "unset"};
1570
- border-top-right-radius: ${(e) => e.haveBorderRadius ? "inherit" : "unset"};
1571
- `, Pi = n.div`
1572
- display: flex;
1573
- flex: 1;
1574
- background-color: ${(e) => e.theme.colors.grey3};
1575
- min-height: 1px;
1576
- max-height: 1px;
1577
- `, Bi = (e, i) => `${e}.${i}`, mt = {
1578
- labelWidth: new s(120, 160, 160),
1579
- paddingBottom: new s(r[3], r[3]),
1580
- paddingTop: new s(12, r[3]),
1581
- marginBottom: new s(12, r[3]),
1582
- containerRightMargin: new s(r[3], r[8]),
1583
- containerLeftMargin: new s(r[3], r[6])
1584
- }, Ln = ({
1585
- isReimbursementCommentingEnabled: e,
1586
- sectionId: i,
1587
- isDisabled: a,
1588
- reportTitle: d,
1589
- reimbursementId: p,
1590
- style: v
1591
- }) => {
1592
- const m = ze(), S = St(), x = Wt(), l = `dashboard_${S.currentTenant?.companyId}`, C = we.getLocalizedStrings(), b = C.spendManagement.reimbursement.reimbursementDetail, c = C.common.strings.empty, y = mt.labelWidth.value(m);
1593
- return /* @__PURE__ */ t.jsxs(Ai, { style: v, windowSize: m, children: [
1594
- /* @__PURE__ */ t.jsx(Mi, { windowSize: m, children: b.whatFor }),
1595
- /* @__PURE__ */ t.jsx(Li, { children: /* @__PURE__ */ t.jsx(
1596
- $e,
1597
- {
1598
- isThreadAllowed: e && p != null,
1599
- dashboardTabKey: Se({
1600
- type: "details",
1601
- key: "whatFor"
1602
- }),
1603
- roomId: l,
1604
- companyId: S.currentTenant?.companyId ?? c,
1605
- companyName: S.currentTenant?.companyName ?? c,
1606
- entityId: p,
1607
- dashboardOptionType: "reimbursement",
1608
- filterMetaData: {
1609
- application: "dashboard",
1610
- companyId: S.currentTenant?.companyId,
1611
- tab: "reimbursement",
1612
- entityId: p,
1613
- entityType: "reimbursement.details.whatFor"
1614
- },
1615
- fieldThreadTargetElement: x?.sharedRef?.contentWrapperRef,
1616
- style: {
1617
- borderRadius: o.sp2
1618
- },
1619
- children: /* @__PURE__ */ t.jsx(
1620
- ho,
1621
- {
1622
- isDisabled: a,
1623
- label: {
1624
- label: b.reportTitle,
1625
- width: y
1626
- },
1627
- text: {
1628
- type: "text",
1629
- name: Bi(i, "reportTitle"),
1630
- placeholder: b.lunchWithClient,
1631
- defaultValue: d,
1632
- autoComplete: "off",
1633
- options: {
1634
- required: !0,
1635
- validate: ($) => !!$
1636
- }
1637
- },
1638
- style: { width: "auto", borderRadius: o.sp2 }
1639
- }
1640
- )
1641
- }
1642
- ) })
1643
- ] });
1644
- }, Ai = n.div`
1645
- display: flex;
1646
- flex-direction: column;
1647
- padding-top: ${(e) => mt.paddingTop.valuePx(e.windowSize)};
1648
- padding-bottom: ${(e) => mt.paddingBottom.valuePx(e.windowSize)};
1649
- margin-right: ${(e) => mt.containerRightMargin.valuePx(e.windowSize)};
1650
- margin-left: ${(e) => mt.containerLeftMargin.valuePx(e.windowSize)};
1651
- `, Li = n.div`
1652
- display: flex;
1653
- flex-direction: column;
1654
- background-color: ${(e) => e.theme.colors.grey5};
1655
- border: 1px solid ${(e) => e.theme.colors.grey3};
1656
- box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1657
- border-radius: ${o.sp2};
1658
- `, Mi = n(Vt)`
1659
- color: ${(e) => e.theme.colors.primary};
1660
- margin-bottom: ${(e) => mt.marginBottom.valuePx(e.windowSize)};
1661
- `, N = {
1662
- largeLabelWidth: new s(120, 120, 220),
1663
- marginTop: new s(28, 8),
1664
- paymentToMarginTop: new s(0, r[4]),
1665
- marginBottom: new s(r[5], r[4]),
1666
- paymentToMarginBottom: new s(12, r[3]),
1667
- totalMarginBottom: new s(r[3], r[3]),
1668
- reimbursementSectionLeftMargin: new s(r[3], r[6]),
1669
- reimbursementSectionRightMargin: new s(r[3], r[8]),
1670
- invoiceSectionLeftMargin: new s(r[3], r[8]),
1671
- invoiceSectionRightMargin: new s(r[3], r[6]),
1672
- rightSectionWidth: new s(100, 58),
1673
- firstOrLastItemHeight: new s(390, 760),
1674
- itemHeight: new s(390, 459),
1675
- duplicateBannerWrapperMarginTop: new s(r[5], r[3]),
1676
- duplicateBannerWrapperMarginRight: new s(r[3], r[8]),
1677
- duplicateBannerWrapperMarginBottom: new s(r[5], r[3]),
1678
- duplicateBannerWrapperMarginLeft: new s(r[3], r[6])
1679
- }, Ri = {
1680
- total: new go("largeMedium", "h6Medium")
1681
- }, {
1682
- spendManagement: {
1683
- reimbursement: { reimbursementDetail: D },
1684
- billPay: {
1685
- vendorCreation: { achDetails: Bt }
1686
- }
1687
- },
1688
- common: {
1689
- currency: { currencyCode: At }
1690
- }
1691
- } = we.getLocalizedStrings(), Mn = (e) => {
1692
- let i = 0, a = At;
1693
- if ("recommendationFetchState" in e && e.recommendationFetchState != null) {
1694
- const d = e;
1695
- i = d.outOfPocket.amount ?? 0, a = d.outOfPocket.currencyCode ?? At;
1696
- } else {
1697
- const d = e;
1698
- i = d.outOfPocket.amount?.amount ?? 0, a = d.outOfPocket.amount?.currencyCode ?? At;
1699
- }
1700
- return (e.homeCurrencyConversions?.currencyCode ?? At) !== a && (i = e.homeCurrencyConversions?.amount ?? 0), i;
1701
- }, zi = ({
1702
- remiUploadStatus: e,
1703
- progressSectionObj: i,
1704
- reimbursementId: a,
1705
- createDate: d,
1706
- scheduleDate: p,
1707
- paymentDate: v,
1708
- hasDuplicateLine: m,
1709
- approvedDate: S,
1710
- isFirstOrLastListItem: x,
1711
- index: l,
1712
- reimbursementSectionRef: C,
1713
- showSkipAutoFill: b,
1714
- lineData: c,
1715
- currencyConversionState: y,
1716
- authParams: $,
1717
- uploadInvoiceEndPoint: O,
1718
- accountList: T,
1719
- classList: P,
1720
- merchantList: H,
1721
- remiStage: B,
1722
- autoFieldsByLineId: k,
1723
- isReimbursementCommentingEnabled: M,
1724
- isAutoFieldsExist: te,
1725
- totalAmount: ne,
1726
- showTotalAmountLoader: re,
1727
- totalNumberOfLines: Y,
1728
- defaultCurrency: K,
1729
- bankAccounts: F,
1730
- fileRequiredLineIds: J,
1731
- isAddReimbursementDisabled: q,
1732
- duplicateLineByLineId: L,
1733
- remiStatus: ce,
1734
- file: X,
1735
- uncategorizedAccounts: V,
1736
- reportTitle: de,
1737
- recommendationFetchState: _e,
1738
- tentativeMerchantName: ue,
1739
- paymentTo: fe,
1740
- analytics: le,
1741
- companyMileageConfigInfo: Be,
1742
- loggedInUserDepartmentId: Ae,
1743
- isSignedInUserReimbursementCreator: Le,
1744
- setShowBankAccountPage: me,
1745
- setRefByLineId: Me,
1746
- setCurrentLineIdForUpload: pe,
1747
- onDuplicateLineClick: ve,
1748
- setUploadedReceiptPayload: Je,
1749
- removeDuplicateReimbursementForLine: h,
1750
- onReceiptsUpload: Ce,
1751
- scrollToSection: he,
1752
- onRemoveReimbursement: He,
1753
- onAddReimbursement: Re,
1754
- clearTentativeNameForLine: Xe,
1755
- onReplaceClick: Fe,
1756
- onDeleteBankAccount: Ke,
1757
- updateInvoiceUploadFetchState: Ge,
1758
- removeFileFromLine: Qe,
1759
- allCurrencies: Ze,
1760
- accountsHierarchyList: ie,
1761
- classHierarchyList: lt
1762
- }) => {
1763
- const {
1764
- formState: { errors: pt }
1765
- } = at(), et = bt(null);
1766
- ye(() => (Me((R) => ({
1767
- ...R,
1768
- [`L${c.lineId}`]: et.current
1769
- })), () => {
1770
- Me((R) => ({
1771
- ...R,
1772
- [`L${c.lineId}`]: null
1773
- }));
1774
- }), [c.lineId, Me]);
1775
- const _ = ze(), ht = B === "draft" ? D.newReimbursementTitle : D.editReimbursementTitle, W = N.largeLabelWidth.value(_), se = (R) => R.outOfPocket.account.selectedOption == null && (R.outOfPocket.amount == null || R.outOfPocket.amount.amount == 0) && (R.outOfPocket.class.selectedOption == null || R.outOfPocket.class.selectedOption === Ae) && (R.outOfPocket.memo === "" || R.outOfPocket.memo == null) && R.outOfPocket.merchant.selectedOption == null && R.outOfPocket.transactionDate == null, Ct = F.map((R) => R.bankAccountId), Te = c.reimbursementType === D.outOfPocketKey && Mn(c) >= 75 && X == null;
1776
- return /* @__PURE__ */ t.jsxs(ta, { ref: C, windowSize: _, children: [
1777
- /* @__PURE__ */ t.jsx(
1778
- oa,
1779
- {
1780
- ref: (R) => {
1781
- R != null && (et.current = R);
1782
- },
1783
- windowSize: _,
1784
- bottomSeperator: Y !== 1,
1785
- showSkipAutoFill: b,
1786
- isFirstItem: l === 0,
1787
- children: /* @__PURE__ */ t.jsx(
1788
- Pn,
1789
- {
1790
- customError: Te ? D.requireReceipt : void 0,
1791
- analytics: le,
1792
- showAutofill: !1,
1793
- uploadInvoiceEndPoint: O,
1794
- authParams: $,
1795
- entityId: q ? "" : void 0,
1796
- file: X,
1797
- style: {
1798
- width: "auto",
1799
- padding: 0,
1800
- height: x ? N.firstOrLastItemHeight.valuePx(_) : N.itemHeight.valuePx(_),
1801
- margin: _ === "small" ? o.sp0 : void 0
1802
- },
1803
- updateInvoiceUploadFetchState: Ge,
1804
- onInvoiceUpload: (R) => {
1805
- c.reimbursementType === D.outOfPocketKey && !se(c) ? (pe(Number(c.lineId)), Je(
1806
- R
1807
- ), Fe?.()) : Ce(
1808
- R,
1809
- Number(c.lineId),
1810
- !0
1811
- );
1812
- },
1813
- dropFilePlaceholder: {
1814
- upload: D.dropReceipt.upload,
1815
- receipt: D.dropReceipt.receipt
1816
- },
1817
- showInfoText: !1,
1818
- showTitlebar: !0,
1819
- showTitlebarIcon: !q,
1820
- pdfTitle: Y > 1 ? `#${l + 1} Receipt` : "Receipt",
1821
- onDeleteClick: () => {
1822
- Ge?.("In-Progress"), setTimeout(() => Qe?.(Number(c.lineId)));
1823
- },
1824
- onReplaceClick: () => {
1825
- pe(Number(c.lineId)), Fe?.();
1826
- },
1827
- allowMultiFiles: Y === l + 1,
1828
- type: "reimbursement"
1829
- }
1830
- )
1831
- }
1832
- ),
1833
- /* @__PURE__ */ t.jsxs(ea, { windowSize: _, children: [
1834
- l === 0 && _ !== "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1835
- /* @__PURE__ */ t.jsx(Ui, { children: ht }),
1836
- /* @__PURE__ */ t.jsx(na, { children: /* @__PURE__ */ t.jsx(
1837
- wr,
1838
- {
1839
- progressSectionObj: i,
1840
- createDate: d,
1841
- paymentDate: v,
1842
- scheduleDate: p,
1843
- approvedDate: S,
1844
- isBillUploaded: a != null ? !0 : e === "Completed"
1845
- }
1846
- ) }),
1847
- te && /* @__PURE__ */ t.jsxs(Wi, { children: [
1848
- /* @__PURE__ */ t.jsx(Fi, {}),
1849
- /* @__PURE__ */ t.jsx(qi, { children: D.banner })
1850
- ] }),
1851
- m && /* @__PURE__ */ t.jsxs(Ei, { size: _, children: [
1852
- /* @__PURE__ */ t.jsx(Ni, {}),
1853
- /* @__PURE__ */ t.jsxs(_i, { children: [
1854
- /* @__PURE__ */ t.jsx(Vi, { children: D.thereSeems }),
1855
- /* @__PURE__ */ t.jsx(Di, { children: D.pleaseFind })
1856
- ] })
1857
- ] }),
1858
- /* @__PURE__ */ t.jsx(
1859
- Ln,
1860
- {
1861
- isReimbursementCommentingEnabled: M,
1862
- sectionId: Nt,
1863
- reportTitle: de,
1864
- reimbursementId: a
1865
- }
1866
- )
1867
- ] }) : null,
1868
- /* @__PURE__ */ t.jsx(
1869
- fi,
1870
- {
1871
- analytics: le,
1872
- reimbursementId: a,
1873
- onDuplicateLineClick: ve,
1874
- uncategorizedAccounts: V,
1875
- sectionId: `${So}.${l}`,
1876
- scrollToSection: he,
1877
- lineIndex: l,
1878
- lineData: c,
1879
- accountList: T,
1880
- classList: P,
1881
- merchantList: H,
1882
- autoFields: c.lineId != null ? k[c.lineId] : [],
1883
- currencyConversionState: y,
1884
- recommendationFetchState: _e,
1885
- onRemoveReimbursement: He,
1886
- hasMultipleLineItems: Y > 1,
1887
- clearTentativeNameForLine: Xe,
1888
- tentativeMerchantName: ue,
1889
- hasFile: X != null,
1890
- companyMileageConfigInfo: Be,
1891
- defaultCurrency: K,
1892
- remiStage: B,
1893
- remiStatus: ce,
1894
- fileRequiredLineIds: J,
1895
- allCurrencies: Ze,
1896
- isReimbursementCommentingEnabled: M,
1897
- isAddReimbursementDisabled: q,
1898
- accountsHierarchyList: ie,
1899
- classHierarchyList: lt,
1900
- duplicateLineDetails: L[c.lineId],
1901
- removeDuplicateReimbursementForLine: h
1902
- }
1903
- ),
1904
- Y !== 1 && Y === l + 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1905
- /* @__PURE__ */ t.jsxs(Ki, { windowSize: _, children: [
1906
- /* @__PURE__ */ t.jsx(Gi, { children: D.total }),
1907
- re ? /* @__PURE__ */ t.jsx(Yi, { windowSize: _, children: /* @__PURE__ */ t.jsx(Ji, { children: /* @__PURE__ */ t.jsx(
1908
- vt,
1909
- {
1910
- size: "Standard",
1911
- start: !0,
1912
- style: { display: "flex" }
1913
- }
1914
- ) }) }) : /* @__PURE__ */ t.jsx(
1915
- $n,
1916
- {
1917
- amount: hn(ne, "USD", "$"),
1918
- integerStyles: Ft.h6Regular.cssObject,
1919
- decimalStyles: Ft.standardRegular.cssObject
1920
- }
1921
- )
1922
- ] }),
1923
- /* @__PURE__ */ t.jsxs(
1924
- Qi,
1925
- {
1926
- windowSize: _,
1927
- onClick: () => {
1928
- q === !1 && Re();
1929
- },
1930
- isDisabled: q,
1931
- "data-testid": U("add-reimbursement-row"),
1932
- children: [
1933
- /* @__PURE__ */ t.jsx(Uo, {}),
1934
- /* @__PURE__ */ t.jsx(qo, { children: D.addReimbursement })
1935
- ]
1936
- }
1937
- ),
1938
- Le ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1939
- /* @__PURE__ */ t.jsx(Hi, { windowSize: _, children: D.receivePaymentTo }),
1940
- /* @__PURE__ */ t.jsx(
1941
- Xi,
1942
- {
1943
- windowSize: _,
1944
- shouldDisplay: F.length > 0,
1945
- children: /* @__PURE__ */ t.jsx(
1946
- Sn,
1947
- {
1948
- label: {
1949
- label: D.yourBankAccount,
1950
- width: W
1951
- },
1952
- style: {
1953
- width: "auto"
1954
- },
1955
- singleSelectField: {
1956
- singleSelect: {
1957
- name: wt,
1958
- placeholder: rt(
1959
- D.yourBankAccount
1960
- ),
1961
- showValueEyeIcon: !q,
1962
- menuPlacement: "top",
1963
- maxMenuHeight: 308,
1964
- showEyeIconOnSelect: !1,
1965
- onDelete: Ke,
1966
- getTooltipInfo: (R) => Rn(F, R),
1967
- onClickCreateBankAccount: () => me(!0),
1968
- getLabelForId: (R) => Fn(F, R),
1969
- isOptionRemovable: !1,
1970
- showDeleteIcon: !0,
1971
- showAddBankAccountOption: !0,
1972
- isDisabled: q ? "readonly" : void 0,
1973
- showTickMark: !1,
1974
- alwaysShowEyeTooltip: !0
1975
- },
1976
- defaultValue: {
1977
- selectedOption: fe,
1978
- allOptions: Ct
1979
- },
1980
- registerOptions: {
1981
- required: !0,
1982
- validate: (R) => !!R.selectedOption
1983
- }
1984
- },
1985
- isFunctional: !0
1986
- }
1987
- )
1988
- }
1989
- ),
1990
- /* @__PURE__ */ t.jsxs(
1991
- Zi,
1992
- {
1993
- shouldDisplay: F.length === 0,
1994
- windowSize: _,
1995
- hasError: Pe(pt, wt),
1996
- onClick: () => {
1997
- q === !1 && me(!0);
1998
- },
1999
- isDisabled: q,
2000
- "data-testid": U(
2001
- "remi-add-bank-account-container"
2002
- ),
2003
- children: [
2004
- /* @__PURE__ */ t.jsx(Uo, {}),
2005
- /* @__PURE__ */ t.jsx(qo, { children: D.addBankAccount })
2006
- ]
2007
- }
2008
- )
2009
- ] }) : null
2010
- ] })
2011
- ] })
2012
- ] });
2013
- }, Rn = (e, i) => {
2014
- const a = zn(e, i);
2015
- return a == null ? `${Bt.bankRoutingNumber} ${D.emptyValue}
2016
- ${Bt.bankAccountNumber} ${D.emptyValue}` : `${Bt.bankRoutingNumber} ${a.bankRoutingNumberAch ?? D.emptyValue}, ${a.bankName ?? D.emptyValue}
2017
- ${Bt.bankAccountNumber} ${a.bankAccountNumber ?? D.emptyValue}`;
2018
- }, zn = (e, i) => e.find((a) => a.bankAccountId === i), Fn = (e, i) => {
2019
- const a = zn(e, i);
2020
- return a == null ? D.selectBankAccount : a.bankAccountName ? a.bankAccountName : a.maskedAccountNumber ? a.maskedAccountNumber : a.bankName && a.bankAccountNumber ? `${a.bankName} ${D.accountNameConnector}${a.bankAccountNumber.slice(
2021
- a.bankAccountNumber.length - 4
2022
- )}` : D.selectBankAccount;
2023
- }, Fi = n(fo)`
2024
- color: ${(e) => e.theme.colors.primary};
2025
- width: ${o.sp3};
2026
- height: ${o.sp3};
2027
- `, Ni = n(Sr)`
2028
- width: ${o.sp4};
2029
- height: ${o.sp4};
2030
- color: ${I.brandColorGoldDark};
2031
- `, Wi = n.div`
2032
- display: flex;
2033
- gap: ${o.sp2};
2034
- border: 1px solid ${(e) => e.theme.colors.grey3};
2035
- padding: ${o.sp3};
2036
- border-radius: ${o.sp2};
2037
- align-items: center;
2038
- margin: 0 ${o.sp8} 0 ${o.sp6};
2039
- `, Ei = n.div`
2040
- display: flex;
2041
- gap: ${o.sp2};
2042
- padding: ${o.sp3};
2043
- border-radius: ${o.sp2};
2044
- align-items: start;
2045
- margin-top: ${(e) => N.duplicateBannerWrapperMarginTop.valuePx(e.size)};
2046
- margin-right: ${(e) => N.duplicateBannerWrapperMarginRight.valuePx(e.size)};
2047
- margin-bottom: ${(e) => N.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
2048
- margin-left: ${(e) => N.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
2049
- background-color: ${I.alertLight};
2050
- border: 1px solid ${(e) => e.theme.colors.brandColorGoldDark};
2051
- `, Vi = n(_t)`
2052
- color: ${(e) => e.theme.colors.brandColorGoldDark};
2053
- `, _i = n.div`
2054
- width: 100%;
2055
- `, Di = n(xo)`
2056
- color: ${(e) => e.theme.colors.brandColorGoldDark};
2057
- `, qi = n.span`
2058
- color: ${(e) => e.theme.colors.hero};
2059
- `, Ui = n($r)`
2060
- letter-spacing: -0.02em;
2061
- color: ${(e) => e.theme.colors.primary};
2062
- margin: ${o.sp3} ${o.sp8} ${o.sp3} ${o.sp6};
2063
- `, Hi = n(Vt)`
2064
- letter-spacing: -0.02em;
2065
- color: ${(e) => e.theme.colors.primary};
2066
- margin-top: ${(e) => N.paymentToMarginTop.valuePx(e.windowSize)};
2067
- margin-bottom: ${(e) => N.paymentToMarginBottom.valuePx(e.windowSize)};
2068
- margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2069
- margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2070
- `, Ki = n.div`
2071
- padding: ${o.sp3};
2072
- display: flex;
2073
- align-items: center;
2074
- justify-content: space-between;
2075
- background-color: ${(e) => e.theme.colors.grey3};
2076
- border: 1px solid ${(e) => e.theme.colors.grey3};
2077
- border-radius: ${o.sp2};
2078
- color: ${(e) => e.theme.colors.hero};
2079
- margin-top: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
2080
- margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2081
- margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2082
- margin-bottom: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
2083
- justify-content: space-between;
2084
- `, Gi = n(vn)`
2085
- display: flex;
2086
- width: 176px;
2087
- color: ${(e) => e.theme.colors.primary};
2088
- `, Yi = n(Cn)`
2089
- display: flex;
2090
- width: calc(100% - 176px);
2091
- justify-content: flex-end;
2092
- color: ${(e) => e.theme.colors.primary};
2093
- ${(e) => `${Ri.total.style(e.windowSize)}`};
2094
- `, Ji = n.div`
2095
- padding-right: ${o.sp3};
2096
- height: 30px;
2097
- display: flex;
2098
- justify-content: flex-end;
2099
- `, Xi = n.div`
2100
- margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2101
- margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2102
- margin-bottom: ${o.sp3};
2103
- border: 1px solid ${(e) => e.theme.colors.grey3};
2104
- border-radius: ${o.sp2};
2105
- box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
2106
- display: ${(e) => e.shouldDisplay ? "unset" : "none"};
2107
- `, Qi = n.div`
2108
- padding: ${o.sp3};
2109
- display: flex;
2110
- align-items: center;
2111
- justify-content: center;
2112
- border: 1px solid
2113
- ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2114
- border-radius: ${o.sp2};
2115
- color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2116
- cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
2117
- &:hover {
2118
- color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2119
- border: 1px solid
2120
- ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2121
- }
2122
- margin-top: ${(e) => N.totalMarginBottom.valuePx(e.windowSize)};
2123
- margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2124
- margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2125
- margin-bottom: ${(e) => N.marginBottom.valuePx(e.windowSize)};
2126
- `, Zi = n.div`
2127
- padding: ${o.sp3};
2128
- display: ${(e) => e.shouldDisplay ? "flex" : "none"};
2129
- align-items: center;
2130
- justify-content: center;
2131
- border: 1px solid
2132
- ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2133
- border-radius: ${o.sp2};
2134
- color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2135
- cursor: pointer;
2136
- &:hover {
2137
- color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2138
- border: 1px solid
2139
- ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2140
- }
2141
- margin-left: ${(e) => N.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
2142
- margin-right: ${(e) => N.reimbursementSectionRightMargin.valuePx(e.windowSize)};
2143
- margin-bottom: ${(e) => N.marginBottom.valuePx(e.windowSize)};
2144
- `, qo = n(_t)`
2145
- color: inherit;
2146
- `, Uo = n(Tn)`
2147
- margin-right: ${o.sp2};
2148
- width: ${o.sp3};
2149
- height: ${o.sp3};
2150
- `, ea = n.div`
2151
- display: flex;
2152
- flex-direction: column;
2153
- width: ${(e) => N.rightSectionWidth.valuePercentage(e.windowSize)};
2154
- `, ta = n.div`
2155
- display: flex;
2156
- width: 100%;
2157
- flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
2158
- `, oa = n.div`
2159
- height: 100%;
2160
- background: ${(e) => e.theme.colors.grey3};
2161
- border-radius: ${o.sp2};
2162
- width: ${(e) => e.windowSize === "small" ? "auto" : "42%"};
2163
- margin-left: ${(e) => N.invoiceSectionLeftMargin.valuePx(e.windowSize)};
2164
- margin-right: ${(e) => N.invoiceSectionRightMargin.valuePx(e.windowSize)};
2165
- visibility: ${(e) => e.showSkipAutoFill ? "hidden" : "unset"};
2166
- margin-bottom: ${(e) => e.bottomSeperator === !0 && e.windowSize !== "small" ? e.isFirstItem ? "102px" : o.sp10 : 0};
2167
- margin-top: ${(e) => N.marginTop.valuePx(e.windowSize)};
2168
- `, na = n.div`
2169
- padding: ${o.sp2} ${o.sp8} ${o.sp0} ${o.sp6};
2170
- `, ra = {
2171
- total: new go("largeMedium", "h6Medium")
2172
- }, Z = {
2173
- largeLabelWidth: new s(120, 120, 220),
2174
- marginBottom: new s(r[5], r[4]),
2175
- addBankAccountMarginBottom: new s(r[5], r[5]),
2176
- marginTop: new s(r[0], 78),
2177
- paymentToMarginTop: new s(0, r[4]),
2178
- totalMarginBottom: new s(r[3], r[3]),
2179
- rightMargin: new s(r[3], r[8]),
2180
- leftMargin: new s(r[3], r[6]),
2181
- paymentToMarginBottom: new s(12, r[3])
2182
- }, nt = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, ia = ({
2183
- remiDetails: e,
2184
- isUserAdmin: i,
2185
- authParams: a,
2186
- uploadInvoiceEndPoint: d,
2187
- showSkipAutoFill: p,
2188
- isReimbursementCommentingEnabled: v,
2189
- isAutoFieldsExist: m,
2190
- totalAmount: S,
2191
- defaultCurrency: x,
2192
- hasDuplicateLine: l,
2193
- bankAccounts: C,
2194
- fileRequiredLineIds: b,
2195
- companyMileageConfigInfo: c,
2196
- analytics: y,
2197
- reimbursementId: $,
2198
- currencyConversionStatus: O,
2199
- setShowSkipAutoFill: T,
2200
- setShowBankAccountPage: P,
2201
- removeDuplicateReimbursementForLine: H,
2202
- onReceiptsUpload: B,
2203
- setCurrentLineIdForUpload: k,
2204
- onDuplicateLineClick: M,
2205
- setUploadedReceiptPayload: te,
2206
- removeFileFromLine: ne,
2207
- onReplaceClick: re,
2208
- updateInvoiceUploadFetchState: Y,
2209
- clearTentativeNameForLine: K,
2210
- onDeleteBankAccount: F,
2211
- uncategorizedAccounts: J,
2212
- isSignedInUserReimbursementCreator: q,
2213
- duplicateLineByLineId: L,
2214
- showTotalAmountLoader: ce,
2215
- scrollContainerRef: X
2216
- }) => {
2217
- const {
2218
- control: V,
2219
- formState: { errors: de }
2220
- } = at(), { fields: _e, append: ue, remove: fe } = cr({
2221
- name: So,
2222
- control: V
2223
- }), le = _e, Be = bt(null), Ae = (W) => {
2224
- setTimeout(() => {
2225
- fe(W);
2226
- });
2227
- }, { tentativeMerchantNameByLineId: Le, remiStage: me, remiStatus: Me } = e, pe = !q || me === "pending_approval" && Me !== "rejected" && i || me === "pending_approval" && Me === "rejected", ve = pe ? e.paymentToBankAccountDetail != null ? [e.paymentToBankAccountDetail] : [] : C, Je = ve.map((W) => W.bankAccountId), h = ze(), Ce = Z.largeLabelWidth.value(h), he = e.whatForSection.reportTitle, He = e.accountList.accounts, Re = e.accountsHierarchyList, Xe = e.classHierarchyList, Fe = e.classList.classes, Ke = e.merchantList.merchants, Ge = e.addRemiAutoFieldsByLineId, Qe = Math.max(
2228
- ...Object.keys(
2229
- e.editRemiInitialDetails?.lineDetailSection ?? {}
2230
- ).map((W) => Number(W)),
2231
- 0
2232
- ), Ze = () => {
2233
- const W = le[le.length - 1], se = Nn(
2234
- le.length,
2235
- Number(W.lineId) > Qe ? String(Number(W.lineId) + 1) : String(Qe + 1),
2236
- Re,
2237
- Xe,
2238
- Ke,
2239
- x,
2240
- e.allCurrencies,
2241
- e.loggedInUserDepartmentId
2242
- );
2243
- setTimeout(() => {
2244
- ue(se, { shouldFocus: !1 });
2245
- }), k(Number(se.lineId)), T(!0), setTimeout(
2246
- () => Wo(
2247
- Be.current,
2248
- X?.current
2249
- ),
2250
- 50
2251
- );
2252
- }, [ie, lt] = Q({}), pt = pn(
2253
- (W) => {
2254
- const se = ie[`L${W}`];
2255
- se != null && Wo(se, X?.current);
2256
- },
2257
- [ie, X]
2258
- ), et = e.reimbursementInfo?.billStatus.code == "approved" && e.reimbursementInfo?.billPaymentStatus.code ? e.reimbursementInfo?.billPaymentStatus : e.reimbursementInfo?.billStatus, _ = e.reimbursementInfo?.paymentDate != null ? it(
2259
- gn(
2260
- e.reimbursementInfo.paymentDate.toDate(),
2261
- [0, 6],
2262
- e.achSameDayMaxDays
2263
- ).toDateString()
2264
- ) : void 0, ht = e.reimbursementInfo?.expectedDepositDate ?? _;
2265
- return /* @__PURE__ */ t.jsxs(ca, { windowSize: h, showSkipAutoFill: p, children: [
2266
- le.map((W, se) => /* @__PURE__ */ t.jsx(
2267
- zi,
2268
- {
2269
- removeDuplicateReimbursementForLine: H,
2270
- onDuplicateLineClick: M,
2271
- scrollToSection: pt,
2272
- setRefByLineId: lt,
2273
- duplicateLineByLineId: L,
2274
- reimbursementId: $,
2275
- remiUploadStatus: e.uploadStatus,
2276
- uncategorizedAccounts: J,
2277
- progressSectionObj: et,
2278
- createDate: e.createTime,
2279
- paymentDate: ht,
2280
- scheduleDate: e.reimbursementInfo?.paymentDate,
2281
- approvedDate: e.latestApprovedDate,
2282
- isFirstOrLastListItem: le.length - 1 === se || se === 0,
2283
- index: se,
2284
- reimbursementSectionRef: Be,
2285
- remiStage: me,
2286
- remiStatus: Me,
2287
- authParams: a,
2288
- file: W.file,
2289
- uploadInvoiceEndPoint: d,
2290
- showSkipAutoFill: p,
2291
- lineData: W,
2292
- currencyConversionState: O[W.lineId],
2293
- recommendationFetchState: e.lineDetailSection[W.lineId]?.recommendationFetchState,
2294
- setCurrentLineIdForUpload: k,
2295
- setUploadedReceiptPayload: te,
2296
- onReplaceClick: re,
2297
- onReceiptsUpload: B,
2298
- removeFileFromLine: ne,
2299
- isReimbursementCommentingEnabled: v,
2300
- isAutoFieldsExist: m,
2301
- reportTitle: he,
2302
- accountList: He,
2303
- classList: Fe,
2304
- merchantList: Ke,
2305
- autoFieldsByLineId: Ge,
2306
- onRemoveReimbursement: Ae,
2307
- onAddReimbursement: Ze,
2308
- totalAmount: S,
2309
- showTotalAmountLoader: ce,
2310
- hasDuplicateLine: l,
2311
- totalNumberOfLines: le.length,
2312
- updateInvoiceUploadFetchState: Y,
2313
- clearTentativeNameForLine: K,
2314
- tentativeMerchantName: Le[W.lineId],
2315
- companyMileageConfigInfo: c,
2316
- defaultCurrency: x,
2317
- setShowBankAccountPage: P,
2318
- paymentTo: e.paymentTo,
2319
- bankAccounts: ve,
2320
- onDeleteBankAccount: F,
2321
- analytics: y,
2322
- fileRequiredLineIds: b,
2323
- allCurrencies: e.allCurrencies,
2324
- loggedInUserDepartmentId: e.loggedInUserDepartmentId,
2325
- isAddReimbursementDisabled: pe,
2326
- accountsHierarchyList: Re,
2327
- classHierarchyList: Xe,
2328
- isSignedInUserReimbursementCreator: q
2329
- },
2330
- W.lineId
2331
- )),
2332
- le.length === 1 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2333
- /* @__PURE__ */ t.jsxs(to, { children: [
2334
- h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
2335
- /* @__PURE__ */ t.jsx(eo, { windowSize: h, children: /* @__PURE__ */ t.jsxs(da, { windowSize: h, children: [
2336
- /* @__PURE__ */ t.jsx(ua, { children: nt.total }),
2337
- ce ? /* @__PURE__ */ t.jsx(pa, { windowSize: h, children: /* @__PURE__ */ t.jsx(ha, { children: /* @__PURE__ */ t.jsx(
2338
- vt,
2339
- {
2340
- size: "Standard",
2341
- start: !0,
2342
- style: { display: "flex" }
2343
- }
2344
- ) }) }) : /* @__PURE__ */ t.jsx(
2345
- $n,
2346
- {
2347
- amount: hn(
2348
- S,
2349
- Ao.currencyCode,
2350
- Ao.currencySymbol
2351
- ),
2352
- integerStyles: Ft.h6Regular.cssObject,
2353
- decimalStyles: Ft.standardRegular.cssObject
2354
- }
2355
- )
2356
- ] }) })
2357
- ] }),
2358
- /* @__PURE__ */ t.jsxs(to, { children: [
2359
- h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
2360
- /* @__PURE__ */ t.jsx(eo, { windowSize: h, children: /* @__PURE__ */ t.jsxs(
2361
- ga,
2362
- {
2363
- windowSize: h,
2364
- onClick: () => {
2365
- pe === !1 && Ze();
2366
- },
2367
- isDisabled: pe,
2368
- "data-testid": U("add-reimbursement-container"),
2369
- children: [
2370
- /* @__PURE__ */ t.jsx(Ko, {}),
2371
- /* @__PURE__ */ t.jsx(Ho, { children: nt.addReimbursement })
2372
- ]
2373
- }
2374
- ) })
2375
- ] }),
2376
- /* @__PURE__ */ t.jsxs(to, { children: [
2377
- h !== "small" ? /* @__PURE__ */ t.jsx(Zt, { windowSize: h }) : null,
2378
- q ? /* @__PURE__ */ t.jsxs(eo, { windowSize: h, children: [
2379
- /* @__PURE__ */ t.jsx(ma, { windowSize: h, children: nt.receivePaymentTo }),
2380
- /* @__PURE__ */ t.jsx(
2381
- sa,
2382
- {
2383
- windowSize: h,
2384
- shouldDisplay: ve.length > 0,
2385
- children: /* @__PURE__ */ t.jsx(
2386
- Sn,
2387
- {
2388
- label: {
2389
- label: nt.yourBankAccount,
2390
- width: Ce
2391
- },
2392
- style: {
2393
- width: "auto"
2394
- },
2395
- singleSelectField: {
2396
- singleSelect: {
2397
- name: wt,
2398
- placeholder: rt(
2399
- nt.yourBankAccount
2400
- ),
2401
- showValueEyeIcon: !pe,
2402
- menuPlacement: "top",
2403
- maxMenuHeight: 308,
2404
- showEyeIconOnSelect: !1,
2405
- onDelete: F,
2406
- getTooltipInfo: (W) => Rn(ve, W),
2407
- onClickCreateBankAccount: () => P(!0),
2408
- getLabelForId: (W) => Fn(ve, W),
2409
- isOptionRemovable: !1,
2410
- showDeleteIcon: !0,
2411
- showAddBankAccountOption: !0,
2412
- isDisabled: pe ? "readonly" : void 0,
2413
- showTickMark: !1,
2414
- alwaysShowEyeTooltip: !0
2415
- },
2416
- defaultValue: {
2417
- selectedOption: e.paymentTo,
2418
- allOptions: Je
2419
- },
2420
- registerOptions: {
2421
- required: !0,
2422
- validate: (W) => !!W.selectedOption
2423
- }
2424
- },
2425
- isFunctional: !0
2426
- }
2427
- )
2428
- }
2429
- ),
2430
- /* @__PURE__ */ t.jsxs(
2431
- ya,
2432
- {
2433
- shouldDisplay: ve.length === 0,
2434
- windowSize: h,
2435
- onClick: () => {
2436
- pe === !1 && P(!0);
2437
- },
2438
- hasError: Pe(de, wt),
2439
- isDisabled: pe,
2440
- "data-testid": U(
2441
- "remi-add-bank-account-container"
2442
- ),
2443
- children: [
2444
- /* @__PURE__ */ t.jsx(Ko, {}),
2445
- /* @__PURE__ */ t.jsx(Ho, { children: nt.addBankAccount })
2446
- ]
2447
- }
2448
- )
2449
- ] }) : null
2450
- ] })
2451
- ] })
2452
- ] });
2453
- }, Nn = (e, i, a, d, p, v, m, S) => {
2454
- const x = aa(
2455
- a,
2456
- d,
2457
- p,
2458
- v,
2459
- m,
2460
- S
2461
- );
2462
- return {
2463
- lineIndex: e,
2464
- lineId: i,
2465
- reimbursementType: nt.outOfPocketKey,
2466
- file: void 0,
2467
- outOfPocket: x,
2468
- mileage: la(
2469
- d,
2470
- v,
2471
- S
2472
- )
2473
- };
2474
- }, aa = (e, i, a, d, p, v) => ({
2475
- transactionDate: void 0,
2476
- class: {
2477
- allOptions: Ue(
2478
- Ye(i, [])
2479
- ),
2480
- selectedOption: v
2481
- },
2482
- account: {
2483
- allOptions: Ue(
2484
- Et(e, [])
2485
- ),
2486
- selectedOption: void 0
2487
- },
2488
- amount: {
2489
- amount: 0,
2490
- currencyCode: d.currencyCode,
2491
- currencySymbol: d.currencySymbol,
2492
- currency: {
2493
- allOptions: p.map((m) => ({
2494
- label: `${m.currencyCode} - ${m.currency}`,
2495
- value: m.currencyCode,
2496
- countryCode: bo(
2497
- m.countryCode
2498
- )
2499
- })),
2500
- selectedOption: d.currencyCode ?? we.getLocalizedStrings().common.currency.currencyCode
2501
- }
2502
- },
2503
- memo: void 0,
2504
- merchant: {
2505
- allOptions: a.map((m) => m.id).filter((m) => !!m),
2506
- selectedOption: void 0
2507
- },
2508
- recommendations: [],
2509
- isCategoryUpdateSelected: !1,
2510
- isCategoryFirstTimeAutofilled: !1,
2511
- isRetainedCategorySelected: !1
2512
- }), la = (e, i, a) => ({
2513
- transactionDate: void 0,
2514
- class: {
2515
- allOptions: Ue(
2516
- Ye(e, [])
2517
- ),
2518
- selectedOption: a
2519
- },
2520
- distanceInMiles: void 0,
2521
- amount: {
2522
- amount: 0,
2523
- currencyCode: i.currencyCode,
2524
- currencySymbol: i.currencySymbol
2525
- },
2526
- memo: void 0
2527
- }), sa = n.div`
2528
- margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2529
- margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2530
- margin-bottom: ${(e) => Z.addBankAccountMarginBottom.valuePx(e.windowSize)};
2531
- border: 1px solid ${(e) => e.theme.colors.grey3};
2532
- border-radius: ${o.sp2};
2533
- box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
2534
- display: ${(e) => e.shouldDisplay ? "inherit" : "none"};
2535
- `, Zt = n.div`
2536
- width: ${(e) => e.windowSize === "small" ? "100%" : "42%"};
2537
- `, eo = n.div`
2538
- width: ${(e) => e.windowSize === "small" ? "100%" : "58%"};
2539
- `, ca = n.div`
2540
- display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
2541
- flex-direction: column;
2542
- margin-top: ${(e) => Z.marginTop.valuePx(e.windowSize)};
2543
- `, da = n.div`
2544
- padding: ${o.sp3};
2545
- display: flex;
2546
- align-items: center;
2547
- justify-content: space-between;
2548
- background-color: ${(e) => e.theme.colors.grey3};
2549
- border: 1px solid ${(e) => e.theme.colors.grey3};
2550
- border-radius: ${o.sp2};
2551
- color: ${(e) => e.theme.colors.hero};
2552
- margin-top: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
2553
- margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2554
- margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2555
- margin-bottom: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
2556
- `, ua = n(vn)`
2557
- display: flex;
2558
- width: 176px;
2559
- color: ${(e) => e.theme.colors.primary};
2560
- `, ma = n(Vt)`
2561
- color: ${(e) => e.theme.colors.primary};
2562
- margin-top: ${(e) => Z.paymentToMarginTop.valuePx(e.windowSize)};
2563
- margin-bottom: ${(e) => Z.paymentToMarginBottom.valuePx(e.windowSize)};
2564
- margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2565
- margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2566
- `, pa = n(Cn)`
2567
- display: flex;
2568
- width: calc(100% - 176px);
2569
- justify-content: flex-end;
2570
- color: ${(e) => e.theme.colors.primary};
2571
- ${(e) => `${ra.total.style(e.windowSize)}`};
2572
- `, ha = n.div`
2573
- padding-right: ${o.sp3};
2574
- height: 30px;
2575
- display: flex;
2576
- justify-content: flex-end;
2577
- `, ga = n.div`
2578
- padding: ${o.sp3};
2579
- display: flex;
2580
- align-items: center;
2581
- justify-content: center;
2582
- border: 1px solid
2583
- ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2584
- border-radius: ${o.sp2};
2585
-
2586
- color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2587
- cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
2588
- &:hover {
2589
- color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2590
- border: 1px solid
2591
- ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2592
- }
2593
- margin-top: ${(e) => Z.totalMarginBottom.valuePx(e.windowSize)};
2594
- margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2595
- margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2596
- margin-bottom: ${(e) => Z.marginBottom.valuePx(e.windowSize)};
2597
- `, ya = n.div`
2598
- padding: ${o.sp3};
2599
- display: ${(e) => e.shouldDisplay ? "flex" : "none"};
2600
- align-items: center;
2601
- justify-content: center;
2602
- border: 1px solid
2603
- ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2604
- border-radius: ${o.sp2};
2605
- color: ${(e) => e.hasError === !0 ? I.important : e.theme.colors.hero};
2606
- cursor: ${(e) => e.isDisabled ? "default" : "pointer"};
2607
- &:hover {
2608
- color: ${(e) => e.isDisabled ? e.theme.colors.hero : e.hasError === !0 ? I.important : e.theme.colors.primary};
2609
- border: 1px solid
2610
- ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.hasError === !0 ? I.important : e.theme.colors.primary};
2611
- }
2612
- margin-left: ${(e) => Z.leftMargin.valuePx(e.windowSize)};
2613
- margin-right: ${(e) => Z.rightMargin.valuePx(e.windowSize)};
2614
- margin-bottom: ${(e) => Z.addBankAccountMarginBottom.valuePx(e.windowSize)};
2615
- `, Ho = n(_t)`
2616
- color: inherit;
2617
- `, Ko = n(Tn)`
2618
- margin-right: ${o.sp2};
2619
- width: ${o.sp3};
2620
- height: ${o.sp3};
2621
- `, to = n.div`
2622
- display: flex;
2623
- width: 100%;
2624
- `, Ve = {
2625
- buttonWidth: new s(140, 140),
2626
- paddingLeft: new s(r[3], r[6]),
2627
- paddingRight: new s(r[3], r[8]),
2628
- marginbottom: new s(r[4], r[5]),
2629
- subTitleMarginbottom: new s(r[2], r[3]),
2630
- orSeperatorTopBottomMargin: new s(r[6], 44),
2631
- iconWidthHeight: new s(20, r[4])
2632
- }, Go = "userBankAccountPage", Rt = "bankAccountSection", fa = (e) => ({
2633
- [Rt]: {
2634
- bankRoutingNumber: e?.bankRoutingNumber,
2635
- bankName: e?.bankName,
2636
- bankAccountNumber: e?.bankAccountNumber,
2637
- confirmedBankAccountNumber: e?.confirmedBankAccountNumber,
2638
- bankAccountName: e?.bankAccountName
2639
- }
2640
- }), Yo = (e) => `${e}_form`, xa = ({
2641
- bankAccountCreationState: e,
2642
- setShowBankAccountPage: i,
2643
- plaidConnectionDetails: a,
2644
- onFetchLinkTokenClick: d,
2645
- onEstablishConnectionClick: p,
2646
- bankAccountToCreate: v,
2647
- fetchBankNameByRoutingStatus: m,
2648
- isDisabled: S,
2649
- onSaveHandler: x,
2650
- onUserBankDetailsUpdated: l,
2651
- onFetchBankName: C,
2652
- onBackClick: b
2653
- }) => {
2654
- const c = $t(), y = ze(), $ = un({
2655
- mode: "onBlur",
2656
- reValidateMode: "onChange",
2657
- defaultValues: xt(
2658
- () => fa(v),
2659
- [v]
2660
- )
2661
- }), O = pn(
2662
- (K) => {
2663
- p?.(K), b();
2664
- },
2665
- [b, p]
2666
- ), T = a.link_account_no_microdeposit, { open: P } = Hr({
2667
- token: T.linkToken ?? null,
2668
- onSuccess: O
2669
- });
2670
- ye(() => {
2671
- (it((/* @__PURE__ */ new Date()).toISOString()).isAfter(T.expiration) || T.linkToken == null) && d?.("link_account_no_microdeposit");
2672
- }, []);
2673
- const [H, B] = Q(!1), k = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail, M = we.getLocalizedStrings().common.footer, te = {
2674
- onOkClick: () => {
2675
- B(!1), $.reset(), b();
2676
- },
2677
- onCancelClick: () => {
2678
- B(!1);
2679
- }
2680
- }, ne = async (K, F) => {
2681
- const J = F[Rt].bankRoutingNumber;
2682
- l(F), K === `${Rt}.bankRoutingNumber` && J?.length === 9 && Tr.test(J) === !0 && C?.(J);
2683
- };
2684
- ye(() => {
2685
- const K = $.watch((F, { name: J }) => {
2686
- J != null && F != null && dr(() => ne(J, F));
2687
- });
2688
- return () => {
2689
- K.unsubscribe();
2690
- };
2691
- }), ye(() => {
2692
- e?.fetchState === "Completed" && b();
2693
- }, [
2694
- e?.fetchState,
2695
- b,
2696
- i
2697
- ]);
2698
- const re = $.handleSubmit((K) => {
2699
- m.fetchState !== "In-Progress" && x();
2700
- }), Y = c.mode === "light" ? new Po(c.colors.brandColorJadeLight) : new Po(c.colors.brandColorJadeDark);
2701
- return /* @__PURE__ */ t.jsxs(ba, { children: [
2702
- /* @__PURE__ */ t.jsxs(ka, { windowSize: y, children: [
2703
- H === !0 ? /* @__PURE__ */ t.jsx(
2704
- wo,
2705
- {
2706
- titleComponent: /* @__PURE__ */ t.jsx(jn, { children: k.discardTitle }),
2707
- descriptionComponent: /* @__PURE__ */ t.jsx(kn, { children: k.discardDescription }),
2708
- primaryButtonText: k.buttons.delete,
2709
- secondaryButtonText: k.buttons.cancel,
2710
- action: te
2711
- }
2712
- ) : null,
2713
- /* @__PURE__ */ t.jsx(
2714
- Gr,
2715
- {
2716
- header: k.addBankAccount,
2717
- isDirty: $.formState.isDirty,
2718
- onBackClick: b,
2719
- setShowConfirmationPopup: B
2720
- }
2721
- ),
2722
- /* @__PURE__ */ t.jsx(wa, {}),
2723
- /* @__PURE__ */ t.jsxs(ja, { size: y, children: [
2724
- /* @__PURE__ */ t.jsx(
2725
- vr,
2726
- {
2727
- onClick: () => {
2728
- $.reset(), P();
2729
- },
2730
- title: k.connectYourBank,
2731
- subTitle: k.loginToBank,
2732
- header: k.setupAchPayments,
2733
- icon: {
2734
- element: /* @__PURE__ */ t.jsx(
2735
- Cr,
2736
- {
2737
- width: Ve.iconWidthHeight.valuePx(y),
2738
- height: Ve.iconWidthHeight.valuePx(y)
2739
- }
2740
- ),
2741
- color: Y
2742
- },
2743
- style: {
2744
- width: "unset",
2745
- rowGap: y === "small" ? o.sp2 : void 0
2746
- }
2747
- }
2748
- ),
2749
- /* @__PURE__ */ t.jsxs($a, { windowSize: y, children: [
2750
- /* @__PURE__ */ t.jsx(Sa, {}),
2751
- /* @__PURE__ */ t.jsx(Ca, { children: /* @__PURE__ */ t.jsx(Ta, { children: k.or }) })
2752
- ] }),
2753
- /* @__PURE__ */ t.jsx(va, { windowSize: y, children: k.saveAccountManually })
2754
- ] }),
2755
- /* @__PURE__ */ t.jsx(Ia, { size: y, children: /* @__PURE__ */ t.jsx(mn, { ...$, children: /* @__PURE__ */ t.jsxs("form", { id: Yo(Go), onSubmit: re, children: [
2756
- e?.fetchState === "Error" && e.error?.code === 409 ? /* @__PURE__ */ t.jsx(
2757
- Yr,
2758
- {
2759
- warningText: k.accountExistWarning
2760
- }
2761
- ) : null,
2762
- /* @__PURE__ */ t.jsx(
2763
- Kr,
2764
- {
2765
- bankAccountToCreate: v,
2766
- fetchBankNameByRoutingStatus: m,
2767
- sectionId: Rt
2768
- }
2769
- )
2770
- ] }) }) })
2771
- ] }),
2772
- /* @__PURE__ */ t.jsx(
2773
- In,
2774
- {
2775
- formId: Yo(Go),
2776
- primaryBtn: {
2777
- label: k.saveAccount,
2778
- isLoading: e.fetchState === "In-Progress",
2779
- style: { width: Ve.buttonWidth.value(y) },
2780
- isDisabled: S != null
2781
- },
2782
- cancelBtn: {
2783
- label: M.cancel,
2784
- style: { width: Ve.buttonWidth.value(y) },
2785
- shouldResetOnCancel: !1,
2786
- onClick: () => {
2787
- $.formState.isDirty ? B(!0) : (B(!1), $.reset(), b());
2788
- }
2789
- }
2790
- }
2791
- )
2792
- ] });
2793
- }, ba = n.div`
2794
- display: flex;
2795
- flex-direction: column;
2796
- width: 100%;
2797
- height: 100%;
2798
- `, wa = n.div`
2799
- margin: ${o.sp2} 0;
2800
- position: relative;
2801
- `, $a = n.div`
2802
- margin: ${(e) => Ve.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
2803
- position: relative;
2804
- `, Sa = n.div`
2805
- background: ${(e) => e.theme.colors.grey2};
2806
- height: 1px;
2807
- `, va = n(kr)`
2808
- color: ${(e) => e.theme.colors.primary};
2809
- margin-bottom: ${(e) => Ve.subTitleMarginbottom.valuePx(e.windowSize)};
2810
- `, Ca = n.div`
2811
- display: flex;
2812
- justify-content: center;
2813
- `, Ta = n(yo)`
2814
- background: ${(e) => e.theme.colors.background};
2815
- border: 1px solid ${(e) => e.theme.colors.grey2};
2816
- border-radius: ${o.sp5};
2817
- width: 43px;
2818
- height: 25px;
2819
- display: flex;
2820
- align-items: center;
2821
- justify-content: center;
2822
- color: ${(e) => e.theme.colors.grey1};
2823
- top: -11px;
2824
- position: absolute;
2825
- `, ka = n.div`
2826
- display: flex;
2827
- flex-direction: column;
2828
- flex-grow: 1;
2829
- `, ja = n.div`
2830
- padding-left: ${(e) => Ve.paddingLeft.valuePx(e.size)};
2831
- padding-right: ${(e) => Ve.paddingRight.valuePx(e.size)};
2832
- `, Ia = n.div`
2833
- padding-left: ${(e) => Ve.paddingLeft.valuePx(e.size)};
2834
- padding-right: ${(e) => Ve.paddingRight.valuePx(e.size)};
2835
- padding-bottom: ${o.sp3};
2836
- `, Oe = {
2837
- containerWidth: new s(343, 544),
2838
- confirmationPopUpTitleMarginTop: new s(r[6], r[7]),
2839
- confirmationPopUpTitlePaddingLeftRight: new s(r[5], r[8]),
2840
- submitButtonWidth: new s(145, 156),
2841
- cancelButtonWidth: new s(121, 121),
2842
- errorLineItemGap: new s(r[2], 12),
2843
- styledCloseIconRight: new s(r[3], r[8])
2844
- }, { footer: Jo } = we.getLocalizedStrings().common, be = we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo, Xo = ({ fetchState: e }) => {
2845
- switch (e) {
2846
- case "Not-Started":
2847
- return /* @__PURE__ */ t.jsx(Zo, {});
2848
- case "In-Progress":
2849
- return /* @__PURE__ */ t.jsx(
2850
- vt,
2851
- {
2852
- size: "Small",
2853
- start: !0,
2854
- style: {
2855
- alignItems: "center",
2856
- display: "flex"
2857
- }
2858
- }
2859
- );
2860
- case "Completed":
2861
- return /* @__PURE__ */ t.jsx(Wn, {});
2862
- default:
2863
- return /* @__PURE__ */ t.jsx(Zo, {});
2864
- }
2865
- }, Oa = (e) => {
2866
- switch (e) {
2867
- case "Not-Started":
2868
- return be.detectDuplicates;
2869
- case "In-Progress":
2870
- return be.detectingDuplicates;
2871
- case "Completed":
2872
- return be.noDuplicatesFound;
2873
- default:
2874
- return be.detectDuplicates;
2875
- }
2876
- }, Pa = ({
2877
- submitFetchState: e,
2878
- duplicateReimbursementStatus: i,
2879
- hasDuplicateLine: a,
2880
- numberOfDuplicateLines: d,
2881
- setShowDuplicatePopup: p,
2882
- analytics: v,
2883
- reimbursementId: m,
2884
- submitReport: S,
2885
- fetchDuplicateReimbursement: x,
2886
- clearDuplicateReimbursementDetail: l,
2887
- clearRemiSaveStatus: C
2888
- }) => {
2889
- const b = ze(), [c, y] = It.useState(!0), $ = mo(e), O = mo(
2890
- i
2891
- );
2892
- It.useEffect(() => {
2893
- setTimeout(() => {
2894
- c && (y(!1), i === "Not-Started" && x());
2895
- }, 2e3);
2896
- }, [
2897
- i,
2898
- x,
2899
- c
2900
- ]), It.useEffect(() => {
2901
- $ === "In-Progress" && e === "Completed" && (l(), p(!1));
2902
- }, [
2903
- e,
2904
- $,
2905
- p,
2906
- l
2907
- ]), It.useEffect(() => {
2908
- O === "In-Progress" && i === "Completed" && !a && S();
2909
- }, [
2910
- O,
2911
- i,
2912
- a,
2913
- S
2914
- ]);
2915
- const T = i === "Error" || e === "Error";
2916
- return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2917
- T ? (
2918
- //onClick will be automatically handled by the ClickAwayListener inside ConfirmationPopup component
2919
- /* @__PURE__ */ t.jsx(Ba, { size: b })
2920
- ) : null,
2921
- /* @__PURE__ */ t.jsx(
2922
- wo,
2923
- {
2924
- action: {
2925
- onOkClick: () => {
2926
- T ? (l(), e === "Error" && C(), y(!0)) : (v?.trackReimbursementReviewDuplicateReportReimbursement(
2927
- d,
2928
- m
2929
- ), p(!1), jr());
2930
- },
2931
- onCancelClick: () => {
2932
- T ? (l(), e === "Error" && C(), p(!1)) : (v?.trackReimbursementSubmitAnywayDuplicateReimbursement(
2933
- d,
2934
- m
2935
- ), S());
2936
- }
2937
- },
2938
- shouldClickAway: T,
2939
- isSecondaryLoading: e === "In-Progress",
2940
- secondaryButtonVariant: "secondary",
2941
- primaryButtonText: T ? Jo.resubmit : be.primaryButtonText,
2942
- secondaryButtonText: T ? Jo.cancel : be.secondaryButtonText,
2943
- primaryButtonWidth: T ? Oe.cancelButtonWidth.value(b) : Oe.submitButtonWidth.value(b),
2944
- secondaryButtonWidth: T ? Oe.cancelButtonWidth.value(b) : Oe.submitButtonWidth.value(b),
2945
- descriptionComponent: /* @__PURE__ */ t.jsx(Ma, { size: b, children: /* @__PURE__ */ t.jsxs(
2946
- Aa,
2947
- {
2948
- hasDuplicate: a,
2949
- duplicateReimbursementStatus: i,
2950
- children: [
2951
- /* @__PURE__ */ t.jsxs(no, { isDisabled: !1, isSuccess: !c, children: [
2952
- c ? /* @__PURE__ */ t.jsx(
2953
- vt,
2954
- {
2955
- size: "Small",
2956
- start: !0,
2957
- style: {
2958
- alignItems: "center",
2959
- display: "flex"
2960
- }
2961
- }
2962
- ) : /* @__PURE__ */ t.jsx(Wn, {}),
2963
- /* @__PURE__ */ t.jsx(oo, { isDisabled: !1, children: c ? be.reviewingExpenses : be.reviewedAllExpenses })
2964
- ] }),
2965
- a || i === "Error" ? /* @__PURE__ */ t.jsxs(tn, { size: b, children: [
2966
- /* @__PURE__ */ t.jsx(Qo, {}),
2967
- /* @__PURE__ */ t.jsx(en, { children: i === "Error" ? be.failedToDetect : `${d} ${be.duplicateExpensesFound}` })
2968
- ] }) : /* @__PURE__ */ t.jsxs(
2969
- no,
2970
- {
2971
- isDisabled: i === "Not-Started",
2972
- isSuccess: i === "Completed" && d === 0,
2973
- children: [
2974
- /* @__PURE__ */ t.jsx(Xo, { fetchState: i }),
2975
- /* @__PURE__ */ t.jsx(
2976
- oo,
2977
- {
2978
- isDisabled: i === "Not-Started",
2979
- children: Oa(i)
2980
- }
2981
- )
2982
- ]
2983
- }
2984
- ),
2985
- e === "Error" ? /* @__PURE__ */ t.jsxs(tn, { size: b, children: [
2986
- /* @__PURE__ */ t.jsx(Qo, {}),
2987
- /* @__PURE__ */ t.jsx(en, { children: be.failedToSubmit })
2988
- ] }) : a || i === "Error" ? null : /* @__PURE__ */ t.jsxs(
2989
- no,
2990
- {
2991
- isDisabled: e === "Not-Started",
2992
- isSuccess: e === "Completed",
2993
- children: [
2994
- /* @__PURE__ */ t.jsx(Xo, { fetchState: e }),
2995
- /* @__PURE__ */ t.jsx(oo, { isDisabled: e === "Not-Started", children: e === "Not-Started" ? be.submitReport : be.submittingReport })
2996
- ]
2997
- }
2998
- )
2999
- ]
3000
- }
3001
- ) }),
3002
- titleComponent: /* @__PURE__ */ t.jsx(La, { size: b, children: be.title }),
3003
- showFooter: a || T,
3004
- containerStyle: {
3005
- width: Oe.containerWidth.value(b),
3006
- maxWidth: "unset"
3007
- }
3008
- }
3009
- )
3010
- ] });
3011
- }, Ba = n(On)`
3012
- width: ${o.sp4};
3013
- height: ${o.sp4};
3014
- color: ${(e) => e.theme.colors.hero};
3015
- position: fixed;
3016
- top: 19px;
3017
- right: ${(e) => Oe.styledCloseIconRight.valuePx(e.size)};
3018
- z-index: 11;
3019
- cursor: pointer;
3020
- &:hover {
3021
- color: ${(e) => e.theme.colors.primary};
3022
- }
3023
- `, Qo = n(Or)`
3024
- width: ${o.sp4};
3025
- height: ${o.sp4};
3026
- min-width: ${o.sp4};
3027
- color: ${I.brandColorGoldDark};
3028
- `, Zo = n(Jr)`
3029
- width: ${o.sp3};
3030
- height: ${o.sp3};
3031
- min-width: ${o.sp3};
3032
- color: ${(e) => e.theme.colors.grey3};
3033
- `, oo = n.div`
3034
- color: ${(e) => e.isDisabled ? e.theme.colors.grey2 : e.theme.colors.primary};
3035
- text-align: left;
3036
- `, en = n.div`
3037
- color: ${I.brandColorGoldDark};
3038
- `, no = n.div`
3039
- display: flex;
3040
- align-items: center;
3041
- gap: ${(e) => e.isSuccess ? o.sp2 : o.sp3};
3042
- border: 1px solid
3043
- ${(e) => e.isDisabled ? e.theme.colors.grey3 : e.theme.colors.primary};
3044
- padding: ${o.sp3};
3045
- border-radius: ${o.sp2};
3046
- `, Aa = n.div`
3047
- display: flex;
3048
- flex-direction: column;
3049
- gap: ${o.sp3};
3050
- margin-bottom: ${(e) => e.hasDuplicate || e.duplicateReimbursementStatus === "Error" ? 0 : o.sp3};
3051
- `, tn = n.div`
3052
- display: flex;
3053
- align-items: center;
3054
- gap: ${(e) => Oe.errorLineItemGap.valuePx(e.size)};
3055
- border: 1px solid ${(e) => e.theme.colors.brandColorGold};
3056
- background-color: ${I.alertLight};
3057
- padding: ${o.sp3};
3058
- border-radius: ${o.sp2};
3059
- text-align: left;
3060
- `, La = n($o)`
3061
- margin-top: ${(e) => Oe.confirmationPopUpTitleMarginTop.valuePx(e.size)};
3062
- padding-left: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3063
- padding-right: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3064
- color: ${(e) => e.theme.colors.primary};
3065
- word-break: break-word;
3066
- width: ${(e) => e.size === "small" ? "max-content" : "-webkit-fill-available"};
3067
- `, Ma = n(xn)`
3068
- color: ${(e) => e.theme.colors.hero};
3069
- padding-left: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3070
- padding-right: ${(e) => Oe.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
3071
- margin-bottom: ${o.sp5};
3072
- margin-top: ${o.sp4};
3073
- white-space: pre-line;
3074
- width: -webkit-fill-available;
3075
- `, Wn = n(Ir)`
3076
- width: ${o.sp4};
3077
- height: ${o.sp4};
3078
- min-width: ${o.sp4};
3079
- color: ${I.success};
3080
- `, ee = {
3081
- rightMargin: new s(r[3], r[8]),
3082
- leftMargin: new s(r[3], r[6]),
3083
- bottomMargin: new s(56, 56),
3084
- closeMarginTop: new s(0, 19),
3085
- closeMarginRight: new s(r[3], r[8]),
3086
- rightSectionWidth: new s(100, 58),
3087
- leftSectionWidth: new s(100, 42),
3088
- footerButtonWidth: new s(120, 165),
3089
- right: new s(r[3], r[0]),
3090
- actionsContainerRight: new s(r[0], r[6]),
3091
- otherActionsContainerBottom: new s(58, 44),
3092
- duplicateBannerWrapperMarginTop: new s(r[5], r[3]),
3093
- duplicateBannerWrapperMarginRight: new s(r[3], r[8]),
3094
- duplicateBannerWrapperMarginBottom: new s(r[5], r[3]),
3095
- duplicateBannerWrapperMarginLeft: new s(r[3], r[6]),
3096
- navBarWidth: new s(100, 58)
3097
- }, {
3098
- spendManagement: {
3099
- reimbursement: { reimbursementDetail: f, bulkActions: on }
3100
- },
3101
- common: {
3102
- currency: { currencyCode: Ee, currencySymbol: Lt },
3103
- texts: { comments: Ra },
3104
- strings: { empty: za }
3105
- },
3106
- collaboration: {
3107
- threads: {
3108
- placeholder: { addANewComment: Fa, replyAComment: Na },
3109
- tooltip: { resolveComment: Wa, unResolveComment: Ea }
3110
- }
3111
- },
3112
- dateFormat: nn
3113
- } = we.getLocalizedStrings(), rn = "editReimbursementDetailPage", an = (e) => `${e}_form`, Va = (e, i, a, d, p, v, m, S, x) => {
3114
- const l = e.outOfPocket, C = e.mileage, b = l.merchant, c = l.recommendations;
3115
- return {
3116
- lineIndex: v,
3117
- lineId: e?.lineId ?? String(v + 1),
3118
- reimbursementType: e?.type ?? f.outOfPocketKey,
3119
- file: e?.file,
3120
- homeCurrencyConversions: {
3121
- amount: e?.homeCurrencyConversions?.amount ?? 0,
3122
- currencyCode: e?.homeCurrencyConversions?.currencyCode ?? m.currencyCode,
3123
- currencySymbol: e?.homeCurrencyConversions?.currencySymbol ?? m.currencySymbol
3124
- },
3125
- outOfPocket: {
3126
- recommendedAccount: l.recommendedAccount,
3127
- //account to show in update to checkbox
3128
- isCategoryUpdateSelected: l.isCategoryUpdateSelected ?? !1,
3129
- //update to checkbox is ticked
3130
- isCategoryFirstTimeAutofilled: l.isCategoryFirstTimeAutofilled ?? !1,
3131
- retainedAccount: l.retainedAccount,
3132
- //account to show in retain checkbox
3133
- isRetainedCategorySelected: l.isRetainedCategorySelected ?? !1,
3134
- //retain checkbox is selected
3135
- recommendations: c ?? [],
3136
- transactionDate: l?.transactionDate?.toDate() ?? void 0,
3137
- class: {
3138
- allOptions: Ue(
3139
- Ye(a, [])
3140
- ),
3141
- selectedOption: l?.lineDetail?.class?.classId ?? x
3142
- },
3143
- account: {
3144
- allOptions: Ue(
3145
- Et(i, c)
3146
- ),
3147
- selectedOption: l.lineDetail?.account?.qboId ?? l.lineDetail?.account?.accountId
3148
- },
3149
- amount: {
3150
- amount: l?.amount ?? 0,
3151
- currencyCode: l?.currencyCode ?? m.currencyCode,
3152
- currencySymbol: l?.currencySymbol ?? m.currencySymbol,
3153
- currency: {
3154
- allOptions: S.map((y) => ({
3155
- label: `${y.currencyCode} - ${y.currency}`,
3156
- value: y.currencyCode,
3157
- countryCode: bo(
3158
- y.countryCode
3159
- )
3160
- })),
3161
- selectedOption: l?.currencyCode ?? m.currencyCode ?? Ee
3162
- }
3163
- },
3164
- memo: l?.description ?? void 0,
3165
- merchant: {
3166
- allOptions: d.map((y) => y.id).filter((y) => !!y),
3167
- selectedOption: b?.id ? b?.id : b?.name ? b?.name : e?.lineId != null ? p[e?.lineId] : void 0
3168
- }
3169
- },
3170
- mileage: {
3171
- transactionDate: C?.transactionDate?.toDate(),
3172
- class: {
3173
- allOptions: Ue(
3174
- Ye(a, [])
3175
- ),
3176
- selectedOption: C?.lineDetail?.class?.classId
3177
- },
3178
- distanceInMiles: C?.distanceMileage?.value,
3179
- amount: {
3180
- amount: C?.amount ?? 0,
3181
- currencyCode: C?.currencyCode ?? m.currencyCode,
3182
- currencySymbol: C?.currencySymbol ?? m.currencySymbol
3183
- },
3184
- memo: C?.description
3185
- }
3186
- };
3187
- }, ro = (e, i, a) => {
3188
- const d = [];
3189
- return Object.values(e.lineDetailSection).forEach(
3190
- (p, v) => {
3191
- p?.lineId != null && d.push(
3192
- Va(
3193
- p,
3194
- e.accountsHierarchyList,
3195
- e.classHierarchyList,
3196
- e.merchantList.merchants,
3197
- e.tentativeMerchantNameByLineId,
3198
- v,
3199
- i,
3200
- e.allCurrencies,
3201
- e.loggedInUserDepartmentId
3202
- )
3203
- );
3204
- }
3205
- ), d.length === 0 && d.push(
3206
- Nn(
3207
- 0,
3208
- "1",
3209
- e.accountsHierarchyList,
3210
- e.classHierarchyList,
3211
- e.merchantList.merchants,
3212
- i,
3213
- e.allCurrencies,
3214
- e.loggedInUserDepartmentId
3215
- )
3216
- ), {
3217
- [Nt]: {
3218
- reportTitle: e.whatForSection.reportTitle
3219
- },
3220
- [So]: d,
3221
- [wt]: {
3222
- selectedOption: e.paymentTo,
3223
- allOptions: a.map((p) => p.bankAccountId)
3224
- }
3225
- };
3226
- }, io = (e, i) => {
3227
- const a = (d) => d.lineId == null || i[d.lineId]?.fetchState === "In-Progress" ? 0 : (i[d.lineId]?.fetchState === "Completed", d.type === f.mileageKey ? d?.mileage?.amount ?? 0 : d?.outOfPocket?.currencyCode !== Ee && d.homeCurrencyConversions?.amount !== d?.outOfPocket?.amount ? d.homeCurrencyConversions?.amount ?? 0 : d?.outOfPocket?.amount ?? 0);
3228
- return Object.values(e).reduce((d, p) => d + a(p), 0);
3229
- }, ao = (e, i, a, d, p, v, m, S) => {
3230
- const x = {};
3231
- return e.lineInfo.forEach((l) => {
3232
- const C = S.find(
3233
- (O) => O.classId === l.mileage.class.selectedOption
3234
- ), b = m.find(
3235
- (O) => O.qboId === l.outOfPocket.account.selectedOption || O.accountId === l.outOfPocket.account.selectedOption
3236
- ), c = S.find(
3237
- (O) => O.classId === l.outOfPocket.class.selectedOption
3238
- ), y = i.find(
3239
- (O) => O.id === l.outOfPocket.merchant.selectedOption
3240
- ), $ = v.find(
3241
- (O) => O.currencyCode === l.outOfPocket.amount?.currency.selectedOption
3242
- )?.currencySymbol;
3243
- x[l.lineId] = {
3244
- fileId: l.file?.fileId,
3245
- lineId: l.lineId,
3246
- type: l.reimbursementType,
3247
- homeCurrencyConversions: l.homeCurrencyConversions ?? {
3248
- amount: 0,
3249
- currencyCode: "USD",
3250
- currencySymbol: "$"
3251
- },
3252
- mileage: {
3253
- description: l.mileage.memo ?? "",
3254
- lineDetail: {
3255
- class: C
3256
- },
3257
- transactionDate: l.mileage.transactionDate != null ? it(l.mileage.transactionDate.toDateString()) : void 0,
3258
- amount: l.mileage.amount?.amount ?? 0,
3259
- currencyCode: l.mileage.amount?.currencyCode ?? $,
3260
- currencySymbol: l.mileage.amount?.currencySymbol ?? $,
3261
- distanceMileage: {
3262
- unit: "miles",
3263
- value: l.mileage.distanceInMiles ?? 0
3264
- }
3265
- },
3266
- outOfPocket: {
3267
- description: l.outOfPocket.memo ?? "",
3268
- lineDetail: {
3269
- class: c,
3270
- account: b
3271
- },
3272
- transactionDate: l.outOfPocket.transactionDate != null ? it(l.outOfPocket.transactionDate.toDateString()) : void 0,
3273
- amount: l.outOfPocket.amount?.amount ?? 0,
3274
- currencyCode: l.outOfPocket.amount?.currency.selectedOption ?? $,
3275
- currencySymbol: $,
3276
- merchant: l.outOfPocket.merchant.selectedOption != null ? {
3277
- id: y?.id ?? "",
3278
- name: y?.name ?? l.outOfPocket.merchant.selectedOption
3279
- } : void 0,
3280
- recommendations: l.outOfPocket.recommendations,
3281
- recommendedAccount: l.outOfPocket.recommendedAccount,
3282
- isCategoryUpdateSelected: l.outOfPocket.isCategoryUpdateSelected,
3283
- isCategoryFirstTimeAutofilled: l.outOfPocket.isCategoryFirstTimeAutofilled,
3284
- isRetainedCategorySelected: l.outOfPocket.isRetainedCategorySelected,
3285
- retainedAccount: l.outOfPocket.retainedAccount
3286
- }
3287
- };
3288
- }), {
3289
- whatForSection: {
3290
- reportTitle: e.whatFor.reportTitle
3291
- },
3292
- updatesByLineId: x,
3293
- totalAmount: {
3294
- amount: d,
3295
- ...a
3296
- },
3297
- currencyConversionStateByLineId: p,
3298
- paymentTo: e.paymentTo.selectedOption
3299
- };
3300
- }, Nl = ({
3301
- remiDetails: e,
3302
- authParams: i,
3303
- defaultCurrency: a,
3304
- companyMileageConfigInfo: d,
3305
- uploadInvoiceEndPoint: p,
3306
- isReimbursementCommentingEnabled: v,
3307
- isUserAdmin: m,
3308
- analytics: S,
3309
- reimbursementId: x,
3310
- plaidConnectionDetails: l,
3311
- bankAccountCreationState: C,
3312
- bankNameByRouting: b,
3313
- bankAccounts: c,
3314
- isSignedInUserReimbursementCreator: y,
3315
- uncategorizedAccounts: $,
3316
- bankAccountToCreate: O,
3317
- fetchBankNameByRoutingStatus: T,
3318
- onUserBankDetailsUpdated: P,
3319
- onFetchBankName: H,
3320
- onSaveBankAccount: B,
3321
- fetchDuplicateReimbursement: k,
3322
- clearDuplicateReimbursementDetail: M,
3323
- clearRemiSaveStatus: te,
3324
- removeDuplicateReimbursementForLine: ne,
3325
- onDuplicateLineClick: re,
3326
- onExistingMerchantChange: Y,
3327
- onNewMerchantChange: K,
3328
- onReceiptsUpload: F,
3329
- saveRemiDetails: J,
3330
- submitRemiDetails: q,
3331
- discardReimbursementDetailsFromLocalStore: L,
3332
- onReimbursementDetailsChanged: ce,
3333
- updateReimbursementType: X,
3334
- onHomeCurrencyConversionUpdate: V,
3335
- redirectToReimbursementListScreen: de,
3336
- redirectToReimbursementDetailScreen: _e,
3337
- deleteReimbursement: ue,
3338
- removeFileFromLine: fe,
3339
- onZeniLogoClick: le,
3340
- onAmountChanged: Be,
3341
- updateInvoiceUploadFetchState: Ae,
3342
- clearTentativeNameForLine: Le,
3343
- onAddNewRule: me,
3344
- onFetchLinkTokenClick: Me,
3345
- onEstablishConnectionClick: pe,
3346
- deleteBankAccount: ve,
3347
- onBackClickFromBankAccountPage: Je
3348
- }) => {
3349
- const h = bt(null), Ce = bt(null), he = mo(e.uploadStatus), He = $t(), Re = St(), [Xe, Fe] = Q(!1), [Ke, Ge] = Q(!1), [Qe, Ze] = Q("save"), [ie, lt] = Q(
3350
- io(
3351
- e.lineDetailSection,
3352
- e.currencyConversionStatus
3353
- )
3354
- ), [pt, et] = Q(!1), [_, ht] = Q(
3355
- null
3356
- ), [W, se] = Q(!1), Ct = `dashboard_${Re.currentTenant?.companyId}`, Te = un({
3357
- mode: "all",
3358
- reValidateMode: "onChange",
3359
- defaultValues: xt(
3360
- () => ro(e, a, c),
3361
- [e, a, c]
3362
- ),
3363
- values: xt(
3364
- () => ro(e, a, c),
3365
- [e, a, c]
3366
- ),
3367
- resetOptions: {
3368
- keepErrors: !0
3369
- },
3370
- shouldFocusError: !0
3371
- }), { isDirty: R, dirtyFields: En } = Te.formState, Vn = async (g, j) => {
3372
- const { lineInfo: u } = j, w = Number(g.split(".")[1]);
3373
- if (g.includes("reportTitle") || g.includes("memo"))
3374
- return;
3375
- if (g.includes("reimbursementType")) {
3376
- const z = u[w].mileage, E = u[w].outOfPocket;
3377
- u[w] = {
3378
- ...u[w],
3379
- outOfPocket: {
3380
- transactionDate: E.transactionDate ?? void 0,
3381
- class: {
3382
- allOptions: E.class.allOptions ?? Ue(
3383
- Ye(e.classHierarchyList, [])
3384
- ),
3385
- selectedOption: E.class.selectedOption ?? void 0
3386
- },
3387
- account: {
3388
- allOptions: E.account.allOptions ?? Ue(
3389
- Et(e.accountsHierarchyList, [])
3390
- ),
3391
- selectedOption: E.account.selectedOption ?? void 0
3392
- },
3393
- amount: E.amount ?? {
3394
- amount: 0,
3395
- currencyCode: a.currencyCode,
3396
- currencySymbol: a.currencySymbol,
3397
- currency: {
3398
- allOptions: e.allCurrencies.map((ke) => ({
3399
- label: `${ke.currencyCode} - ${ke.currency}`,
3400
- value: ke.currencyCode,
3401
- countryCode: bo(
3402
- ke.countryCode
3403
- )
3404
- })),
3405
- selectedOption: a.currencyCode ?? Ee
3406
- }
3407
- },
3408
- memo: E.memo ?? void 0,
3409
- merchant: E.merchant ?? void 0,
3410
- recommendations: E.recommendations ?? [],
3411
- recommendedAccount: E.recommendedAccount ?? void 0,
3412
- isCategoryUpdateSelected: E.isCategoryUpdateSelected ?? !1,
3413
- isCategoryFirstTimeAutofilled: E.isCategoryFirstTimeAutofilled ?? !1,
3414
- retainedAccount: E.retainedAccount ?? void 0,
3415
- isRetainedCategorySelected: E.isRetainedCategorySelected ?? !1
3416
- },
3417
- mileage: {
3418
- transactionDate: z.transactionDate ?? void 0,
3419
- class: {
3420
- allOptions: z.class.allOptions ?? Ue(
3421
- Ye(e.classHierarchyList, [])
3422
- ),
3423
- selectedOption: z.class.selectedOption ?? e.loggedInUserDepartmentId
3424
- },
3425
- distanceInMiles: z.distanceInMiles,
3426
- amount: {
3427
- amount: z?.amount?.amount ?? 0,
3428
- currencyCode: z?.amount?.currencyCode ?? Ee,
3429
- currencySymbol: z?.amount?.currencySymbol ?? Lt
3430
- },
3431
- memo: z.memo ?? void 0
3432
- }
3433
- };
3434
- } else if (g.includes("mileage.distanceInMiles")) {
3435
- const { distanceInMiles: z } = u[w].mileage, E = d?.mileageUnitAmount ?? 0;
3436
- u[w].mileage = {
3437
- ...u[w].mileage,
3438
- amount: {
3439
- amount: z != null ? z * E : 0,
3440
- currencyCode: a.currencyCode,
3441
- currencySymbol: a.currencySymbol
3442
- }
3443
- };
3444
- } else if (g.includes("outOfPocket.amount") && u[w].lineId) {
3445
- const z = u[w].outOfPocket.amount, E = e.allCurrencies.find(
3446
- (ke) => ke.currencyCode === z?.currency.selectedOption
3447
- )?.currencySymbol;
3448
- if (z?.currencyCode !== z?.currency.selectedOption) {
3449
- const ke = z?.currency?.allOptions || [];
3450
- u[w].outOfPocket.amount = {
3451
- currency: {
3452
- allOptions: ke,
3453
- selectedOption: z?.currency?.selectedOption
3454
- },
3455
- amount: u[w].outOfPocket?.amount?.amount ?? 0,
3456
- currencyCode: z?.currency.selectedOption ?? Ee,
3457
- currencySymbol: E ?? Lt
3458
- };
3459
- }
3460
- if (z?.currency.selectedOption !== Ee)
3461
- et(!0), Yn(u[w].lineId, Ee);
3462
- else {
3463
- const ke = {};
3464
- u.forEach((Qt) => {
3465
- ke[Qt.lineId] = {
3466
- lineId: Qt.lineId,
3467
- homeCurrencyConversions: Qt.homeCurrencyConversions
3468
- };
3469
- }), u[w].homeCurrencyConversions = {
3470
- amount: z.amount ?? 0,
3471
- currencyCode: z?.currency.selectedOption ?? Ee,
3472
- currencySymbol: E ?? Lt
3473
- };
3474
- const jt = io(
3475
- ke,
3476
- e.currencyConversionStatus
3477
- );
3478
- ie !== jt && lt(jt);
3479
- }
3480
- } else if (g.includes("outOfPocket.isRetainedCategorySelected"))
3481
- //retain checkbox is true
3482
- u[w].outOfPocket.isRetainedCategorySelected === !0 && (u[w].outOfPocket.isCategoryUpdateSelected = !1, u[w].outOfPocket.account.selectedOption = u[w].outOfPocket.retainedAccount?.qboId);
3483
- else if (g.includes("outOfPocket.isCategoryUpdateSelected"))
3484
- if (
3485
- //update to checkbox is true
3486
- u[w].outOfPocket.isCategoryUpdateSelected === !0
3487
- )
3488
- u[w].outOfPocket.account.selectedOption = u[w].outOfPocket.recommendedAccount?.qboId, u[w].outOfPocket.isRetainedCategorySelected = !1;
3489
- else {
3490
- const z = u[w].lineId, E = e.editRemiInitialDetails.lineDetailSection[z]?.lineDetail?.account?.qboId;
3491
- u[w].outOfPocket.account.selectedOption = E, u[w].outOfPocket.isRetainedCategorySelected = !1;
3492
- }
3493
- else g.includes("outOfPocket.account") && (u[w].outOfPocket.recommendations.length > 0 && (u[w].outOfPocket.recommendedAccount = u[w].outOfPocket.recommendations[0].account), //account value is same as update to checkbox
3494
- u[w].outOfPocket.recommendedAccount?.qboId != null && u[w].outOfPocket.account.selectedOption === u[w].outOfPocket.recommendedAccount?.qboId ? u[w].outOfPocket.isCategoryUpdateSelected = !0 : u[w].outOfPocket.isCategoryUpdateSelected = !1, //account value is same as retain to checkbox
3495
- u[w].outOfPocket.retainedAccount?.qboId != null && u[w].outOfPocket.account.selectedOption === u[w].outOfPocket.retainedAccount?.qboId ? u[w].outOfPocket.isRetainedCategorySelected = !0 : u[w].outOfPocket.isRetainedCategorySelected = !1, u[w].outOfPocket.isCategoryFirstTimeAutofilled = !1);
3496
- const kt = ao(
3497
- { ...j, lineInfo: u },
3498
- e.merchantList.merchants,
3499
- a,
3500
- ie,
3501
- e.currencyConversionStatus,
3502
- e.allCurrencies,
3503
- e.accountList.accounts,
3504
- e.classList.classes
3505
- );
3506
- if (ce?.(kt), g.includes("outOfPocket.merchant")) {
3507
- const z = u[w].lineId, E = u[w].outOfPocket.merchant.selectedOption ?? "";
3508
- u[w].outOfPocket.merchant.allOptions.find(
3509
- (jt) => jt === E
3510
- ) != null ? Y(E, z) : K(E, z);
3511
- }
3512
- }, vo = xt(
3513
- () => Bo((g, j) => Vn(g, j), 300),
3514
- // eslint-disable-next-line react-hooks/exhaustive-deps
3515
- [
3516
- //these needs to be added because these fetchState were coming as "In-Progress" because of debounce
3517
- e.accountList.fetchState,
3518
- e.classList.fetchState,
3519
- e.merchantList.fetchState
3520
- ]
3521
- );
3522
- ye(() => {
3523
- const g = Te.watch((j, { name: u }) => {
3524
- u != null && j != null && vo(u, j);
3525
- });
3526
- return () => {
3527
- g.unsubscribe();
3528
- };
3529
- }, [vo, Te]), ye(() => {
3530
- const g = pr(
3531
- Object.values(e.currencyConversionStatus)
3532
- ), j = g.fetchState === "In-Progress" || g.fetchState === "Error";
3533
- et(j);
3534
- }, [e.currencyConversionStatus]), ye(() => {
3535
- for (const j in e.currencyConversionStatus) {
3536
- const u = e.lineDetailSection[j], w = e.lineDetailSection[j];
3537
- e.currencyConversionStatus[j].fetchState === "Completed" && w != null && u.type !== f.mileageKey && !dn(
3538
- u?.homeCurrencyConversions,
3539
- w.homeCurrencyConversions
3540
- ) && V(
3541
- {
3542
- amount: u?.homeCurrencyConversions?.amount ?? 0,
3543
- currencyCode: u?.homeCurrencyConversions?.currencyCode ?? Ee,
3544
- currencySymbol: u?.homeCurrencyConversions?.currencySymbol ?? Lt
3545
- },
3546
- j,
3547
- x
3548
- );
3549
- }
3550
- const g = io(
3551
- e.lineDetailSection,
3552
- e.currencyConversionStatus
3553
- );
3554
- ie !== g && lt(g);
3555
- }, [e.currencyConversionStatus, e.lineDetailSection]), ye(() => {
3556
- (e.saveStatus?.fetchState === "Completed" || e.deleteStatus.fetchState === "Completed") && (L(x), de?.());
3557
- }, [
3558
- e.saveStatus?.fetchState,
3559
- e.deleteStatus.fetchState,
3560
- x,
3561
- L,
3562
- de
3563
- ]);
3564
- const A = ze(), [Ne, gt] = Q(
3565
- x == null
3566
- ), [yt, _n] = Q(1), [Dn, Dt] = Q(!1), [qn, Un] = Q(""), [qt, Hn] = Q(null), [Kn, st] = Q(!1), [Gn, Co] = Q(!1), [Ut, Ht] = Q([]), [xe, Tt] = Q({
3567
- title: "",
3568
- description: "",
3569
- primaryButtonText: "",
3570
- secondaryButtonText: ""
3571
- }), Yn = bt(
3572
- Bo(
3573
- (g, j) => Be(g, j),
3574
- 500,
3575
- {
3576
- trailing: !0
3577
- }
3578
- )
3579
- ).current;
3580
- ye(() => {
3581
- he === "In-Progress" && (e.uploadStatus === "Completed" ? (Te.reset(
3582
- ro(e, a, c),
3583
- { keepDefaultValues: !0 }
3584
- ), Fe(!1), gt(!1)) : e.uploadStatus === "Error" && Fe(!1));
3585
- }, [
3586
- he,
3587
- e.uploadStatus,
3588
- Te,
3589
- e,
3590
- Xe,
3591
- Fe,
3592
- Ne,
3593
- a,
3594
- c,
3595
- S
3596
- ]), ye(() => {
3597
- e.uploadStatus === "In-Progress" && Ne === !1 && Fe(!0);
3598
- }, [e.uploadStatus, Fe, Ne]);
3599
- const Kt = e.remiStage === "draft" ? f.newReimbursementTitle : f.editReimbursementTitle, Jn = {
3600
- onOkClick: () => {
3601
- if (st(!1), xe.primaryButtonText === f.buttons.discard)
3602
- L(x), e.remiStage === "draft" ? de?.() : _e?.();
3603
- else if (xe.primaryButtonText === f.buttons.delete)
3604
- xe.title === f.deleteBankAccountTitle ? ve?.(qn) : ue?.();
3605
- else if (xe.primaryButtonText === f.buttons.yes && qt != null) {
3606
- const g = Ut.filter(
3607
- (j) => j !== yt.toString()
3608
- );
3609
- Ht(
3610
- g
3611
- ), F(qt, yt, !0);
3612
- }
3613
- },
3614
- onCancelClick: () => {
3615
- if (st(!1), xe.secondaryButtonText === f.buttons.no) {
3616
- const g = Ut.filter(
3617
- (j) => j !== yt.toString()
3618
- );
3619
- Ht(
3620
- g
3621
- ), F(
3622
- qt,
3623
- yt,
3624
- !1
3625
- );
3626
- }
3627
- }
3628
- }, To = () => {
3629
- R || Er(En) ? (Tt({
3630
- title: f.discardTitle,
3631
- description: f.discardDescription,
3632
- primaryButtonText: f.buttons.discard,
3633
- secondaryButtonText: f.buttons.cancel
3634
- }), st(!0)) : (L(x), de?.());
3635
- }, Xn = () => {
3636
- Tt({
3637
- title: e.remiStage === "draft" ? f.deleteDraftTitle : f.deleteReportTitle,
3638
- description: f.deleteAlertDescription,
3639
- primaryButtonText: f.buttons.delete,
3640
- secondaryButtonText: f.buttons.cancel
3641
- }), st(!0);
3642
- }, Qn = (g) => {
3643
- Un(g), Tt({
3644
- title: f.deleteBankAccountTitle,
3645
- description: f.deleteBankAccountDescription,
3646
- primaryButtonText: f.buttons.delete,
3647
- secondaryButtonText: f.buttons.cancel
3648
- }), st(!0);
3649
- }, Zn = () => {
3650
- Tt({
3651
- title: f.overwriteTitle,
3652
- description: f.overwriteDescription,
3653
- primaryButtonText: f.buttons.yes,
3654
- secondaryButtonText: f.buttons.no
3655
- }), st(!0);
3656
- }, er = () => {
3657
- let g = !0;
3658
- const j = [];
3659
- return Object.values(e.lineDetailSection).forEach((u, w) => {
3660
- u.type === f.outOfPocketKey && Mn(u) >= 75 && u.file == null && (j.push(u.lineId), g = !1);
3661
- }), Ht(j), g;
3662
- }, ko = () => {
3663
- if (m && e.remiStage === "pending_approval" && e.remiStatus !== "rejected")
3664
- To();
3665
- else {
3666
- Ze("save");
3667
- const g = Te.getValues(), j = ao(
3668
- g,
3669
- e.merchantList.merchants,
3670
- a,
3671
- ie,
3672
- e.currencyConversionStatus,
3673
- e.allCurrencies,
3674
- e.accountList.accounts,
3675
- e.classList.classes
3676
- );
3677
- ce?.(j);
3678
- const u = j.whatForSection?.reportTitle;
3679
- u != null && u.length > 0 ? J(
3680
- e.remiStatus === "rejected" ? "pending_approval" : "draft"
3681
- ) : Te.trigger(`${Nt}.reportTitle`, {
3682
- shouldFocus: !0
3683
- });
3684
- }
3685
- };
3686
- let Gt = !1;
3687
- Object.values(e.addRemiAutoFieldsByLineId).forEach((g) => {
3688
- g.length > 0 && (Gt = !0);
3689
- });
3690
- let jo = [];
3691
- if (e.remiId == null) {
3692
- const g = ie ?? 0;
3693
- g > 0 && (jo = e.approvalRules.allApprovalRules?.filter((j) => {
3694
- const u = j.criteria[0].range;
3695
- if (u.max != null) {
3696
- if (u.min.amount < g && u.max.amount >= g)
3697
- return j;
3698
- } else if (u.min.amount < g)
3699
- return j;
3700
- return null;
3701
- }).map((j) => ({
3702
- ...j,
3703
- stepsWithStatus: j.steps.map((u) => ({
3704
- ...u,
3705
- actorsActivity: [],
3706
- isOriginalApprovalStep: !0
3707
- })),
3708
- isRealTimeApprovalEnabled: !1
3709
- })));
3710
- }
3711
- const tr = (g) => {
3712
- const j = er();
3713
- return Te.handleSubmit(() => {
3714
- j && (Ze("submit"), S?.trackReimbursementSubmitReimbursement(
3715
- e.createTime?.format(
3716
- nn.analytics.MMMDashDDDashYYYYFormat
3717
- ) ?? po().format(nn.analytics.MMMDashDDDashYYYYFormat),
3718
- a.currencyCode,
3719
- ie,
3720
- x
3721
- ), M(), Co(!0));
3722
- })(g);
3723
- }, or = () => {
3724
- const g = Te.getValues(), j = ao(
3725
- g,
3726
- e.merchantList.merchants,
3727
- a,
3728
- ie,
3729
- e.currencyConversionStatus,
3730
- e.allCurrencies,
3731
- e.accountList.accounts,
3732
- e.classList.classes
3733
- );
3734
- ce?.(j), q();
3735
- }, nr = e.reimbursementInfo?.billStatus.code == "approved" && e.reimbursementInfo?.billPaymentStatus.code ? e.reimbursementInfo?.billPaymentStatus : e.reimbursementInfo?.billStatus, rr = e.reimbursementInfo?.paymentDate != null ? it(
3736
- gn(
3737
- e.reimbursementInfo.paymentDate.toDate(),
3738
- [0, 6],
3739
- e.achSameDayMaxDays
3740
- ).toDateString()
3741
- ) : void 0, ir = e.reimbursementInfo?.expectedDepositDate ?? rr, ar = x != null && e.remiStage === "draft", Io = Dr(
3742
- e.duplicateLineByLineId
3743
- ), Yt = e.duplicateReimbursementStatus.fetchState === "Completed" && Io > 0, { requestToOpenThread: Jt, setRequestToOpenThread: Oo, setOpenThread: Xt } = ur(Pr), { threads: ft, isLoading: tt } = Br(
3744
- {
3745
- application: "dashboard",
3746
- companyId: Re.currentTenant?.companyId,
3747
- tab: "reimbursement",
3748
- entityId: x,
3749
- // Use remiId here
3750
- isGlobalComment: !1
3751
- },
3752
- "both",
3753
- !1
3754
- );
3755
- ye(() => {
3756
- Jt?.threadId != null && ft.length > 0 && !tt && (Xt(Jt.threadId), Oo(null));
3757
- }, [
3758
- Jt,
3759
- ft,
3760
- tt,
3761
- Xt,
3762
- Oo
3763
- ]);
3764
- const lr = xt(() => x == null ? [] : ft.filter(
3765
- (g) => g.resolved === !1 && !g.id.includes(Ar)
3766
- ), [ft, x]).length, sr = (g, j) => {
3767
- Xt(j);
3768
- const u = g.entityType.split("."), w = parseInt(u[2]);
3769
- if (isNaN(w)) {
3770
- se(!1);
3771
- return;
3772
- }
3773
- const kt = `${w + 1}`, z = e.lineDetailSection[w + 1].type;
3774
- u.includes(f.mileageKey) && z === f.outOfPocketKey ? X(
3775
- Lo(f.mileageKey),
3776
- kt,
3777
- x
3778
- ) : u.includes(f.outOfPocketKey) && z === f.mileageKey && X(
3779
- Lo(f.outOfPocketKey),
3780
- kt,
3781
- x
3782
- ), se(!1);
3783
- };
3784
- return /* @__PURE__ */ t.jsx(Da, { ref: h, children: /* @__PURE__ */ t.jsx(
3785
- Lr,
3786
- {
3787
- sharedItems: {
3788
- sharedFunctions: void 0,
3789
- sharedRef: { contentWrapperRef: Ce.current ?? null }
3790
- },
3791
- children: /* @__PURE__ */ t.jsxs(mn, { ...Te, children: [
3792
- /* @__PURE__ */ t.jsx(
3793
- "form",
3794
- {
3795
- id: an(rn),
3796
- onSubmit: (g) => tr(g),
3797
- children: /* @__PURE__ */ t.jsxs(xl, { windowSize: A, ref: Ce, children: [
3798
- Kn ? /* @__PURE__ */ t.jsx(
3799
- wo,
3800
- {
3801
- titleComponent: /* @__PURE__ */ t.jsx(jn, { children: xe.title }),
3802
- descriptionComponent: /* @__PURE__ */ t.jsx(kn, { children: xe.description }),
3803
- primaryButtonText: xe.primaryButtonText,
3804
- secondaryButtonText: xe.secondaryButtonText,
3805
- action: Jn,
3806
- proceedButtonVariant: xe.title === f.deleteBankAccountTitle || xe.title === f.deleteDraftTitle || xe.title === f.deleteReportTitle || xe.title === f.discardTitle ? "danger" : "primary",
3807
- isEditPopup: xe.title === f.deleteBankAccountTitle
3808
- }
3809
- ) : null,
3810
- Gn ? /* @__PURE__ */ t.jsx(
3811
- Pa,
3812
- {
3813
- reimbursementId: x,
3814
- submitFetchState: e.saveStatus?.fetchState ?? "Not-Started",
3815
- duplicateReimbursementStatus: e.duplicateReimbursementStatus.fetchState,
3816
- hasDuplicateLine: Yt,
3817
- numberOfDuplicateLines: Io,
3818
- setShowDuplicatePopup: Co,
3819
- submitReport: or,
3820
- fetchDuplicateReimbursement: k,
3821
- clearDuplicateReimbursementDetail: M,
3822
- clearRemiSaveStatus: te,
3823
- analytics: S
3824
- }
3825
- ) : null,
3826
- Xe ? /* @__PURE__ */ t.jsx(sn, { windowSize: A }) : null,
3827
- Ne ? /* @__PURE__ */ t.jsxs(
3828
- sn,
3829
- {
3830
- windowSize: A,
3831
- "data-testid": U("skip-autofill-section"),
3832
- children: [
3833
- A === "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3834
- /* @__PURE__ */ t.jsx(tl, { children: /* @__PURE__ */ t.jsx(
3835
- co,
3836
- {
3837
- partOfSkipAutoFill: !0,
3838
- size: A,
3839
- onClick: () => gt(!1),
3840
- "data-testid": U(
3841
- "close-invoice-upload"
3842
- ),
3843
- children: /* @__PURE__ */ t.jsx(so, { withOverlay: !0, children: /* @__PURE__ */ t.jsx(lo, {}) })
3844
- }
3845
- ) }),
3846
- /* @__PURE__ */ t.jsx(nl, { children: Kt })
3847
- ] }) : null,
3848
- /* @__PURE__ */ t.jsx(
3849
- Pn,
3850
- {
3851
- showAutofill: Ne,
3852
- analytics: S,
3853
- onSkipAutofill: () => {
3854
- S?.trackReimbursementSkipAutofill(), gt(!1);
3855
- },
3856
- uploadInvoiceEndPoint: p,
3857
- authParams: i,
3858
- style: {
3859
- width: ee.leftSectionWidth.valuePercentage(A),
3860
- boxSizing: "border-box",
3861
- backgroundColor: A === "small" ? He.colors.grey4 : "unset",
3862
- padding: A === "small" ? `${o.sp5} ${o.sp3}` : `78px ${o.sp6} 15px ${o.sp8}`,
3863
- margin: A === "small" ? o.sp0 : void 0
3864
- },
3865
- onInvoiceUpload: (g) => F(
3866
- g,
3867
- yt,
3868
- !0
3869
- ),
3870
- dropFilePlaceholder: {
3871
- upload: f.dropReceipt.upload,
3872
- single: f.dropReceipt.single,
3873
- or: f.dropReceipt.or,
3874
- multiple: f.dropReceipt.multiple,
3875
- receipts: f.dropReceipt.receipts
3876
- },
3877
- updateInvoiceUploadFetchState: Ae,
3878
- showInfoText: !1,
3879
- allowMultiFiles: Ne,
3880
- type: "reimbursement"
3881
- }
3882
- ),
3883
- A !== "small" ? /* @__PURE__ */ t.jsx(ol, { children: /* @__PURE__ */ t.jsx(
3884
- co,
3885
- {
3886
- partOfSkipAutoFill: !0,
3887
- onClick: () => gt(!1),
3888
- "data-testid": U(
3889
- "close-invoice-upload"
3890
- ),
3891
- children: /* @__PURE__ */ t.jsx(so, { withOverlay: !0, children: /* @__PURE__ */ t.jsx(lo, {}) })
3892
- }
3893
- ) }) : null
3894
- ]
3895
- }
3896
- ) : null,
3897
- /* @__PURE__ */ t.jsxs(
3898
- pl,
3899
- {
3900
- windowSize: A,
3901
- "data-testid": U(
3902
- "edit-reimbursement-detail-page-nav-bar-container"
3903
- ),
3904
- children: [
3905
- A !== "small" ? /* @__PURE__ */ t.jsx(
3906
- Fo,
3907
- {
3908
- style: { width: "42%" },
3909
- "data-testid": U(
3910
- "edit-reimbursement-detail-page-left-nav-bar"
3911
- ),
3912
- title: "",
3913
- leftSideComponent: /* @__PURE__ */ t.jsx(
3914
- hl,
3915
- {
3916
- "data-testid": U(
3917
- "zeni-logo-spend-management-reimbursement-detail-page"
3918
- ),
3919
- onClick: le
3920
- }
3921
- ),
3922
- enableTitleOnScroll: !1,
3923
- scrollableContent: h,
3924
- backgroundColor: He.colors.background,
3925
- keepBackgroundOnScroll: !0,
3926
- source: "EditReimbursementDetailPage"
3927
- }
3928
- ) : null,
3929
- A !== "small" ? /* @__PURE__ */ t.jsx(qa, {}) : null,
3930
- /* @__PURE__ */ t.jsx(
3931
- Fo,
3932
- {
3933
- style: { width: ee.navBarWidth.valuePercentage(A) },
3934
- "data-testid": U(
3935
- "edit-reimbursement-detail-page-right-nav-bar"
3936
- ),
3937
- source: "EditReimbursementDetailPage",
3938
- title: Kt,
3939
- leftSideComponent: /* @__PURE__ */ t.jsx(t.Fragment, {}),
3940
- rightSideComponent: Ne != !0 ? /* @__PURE__ */ t.jsxs(gl, { children: [
3941
- v && x != null ? /* @__PURE__ */ t.jsxs(
3942
- yl,
3943
- {
3944
- isDisabled: tt,
3945
- "data-testid": U(
3946
- "remi-comment-button"
3947
- ),
3948
- onClick: tt ? () => null : (g) => {
3949
- g.preventDefault(), g.stopPropagation(), ht({
3950
- roomId: Ct,
3951
- companyId: Re.currentTenant?.companyId ?? "",
3952
- companyName: Re.currentTenant?.companyName ?? "",
3953
- entityType: "reimbursement.details",
3954
- entityId: x
3955
- }), se(!0), S?.trackCommentActivity(
3956
- "reimbursement",
3957
- // pageName
3958
- "clicked",
3959
- // activityType
3960
- Re.currentTenant?.companyName ?? "",
3961
- // tenantName
3962
- Re.controllersList.controllers.map(
3963
- (j) => Rr(j)
3964
- ),
3965
- // controllerName
3966
- void 0,
3967
- // status
3968
- void 0,
3969
- // createdBy
3970
- "page icon"
3971
- // source
3972
- );
3973
- },
3974
- children: [
3975
- /* @__PURE__ */ t.jsx(
3976
- Mr,
3977
- {
3978
- count: tt ? void 0 : lr,
3979
- isLoading: tt,
3980
- style: { left: "12px" }
3981
- }
3982
- ),
3983
- /* @__PURE__ */ t.jsx(fl, {})
3984
- ]
3985
- }
3986
- ) : null,
3987
- /* @__PURE__ */ t.jsx(
3988
- co,
3989
- {
3990
- size: A,
3991
- onClick: () => To(),
3992
- "data-testid": U("close-nav-bar"),
3993
- children: /* @__PURE__ */ t.jsx(so, { withOverlay: !1, children: /* @__PURE__ */ t.jsx(lo, {}) })
3994
- }
3995
- )
3996
- ] }) : null,
3997
- enableTitleOnScroll: A !== "small",
3998
- scrollThreshold: 64,
3999
- scrollableContent: h,
4000
- backgroundColor: He.colors.grey4
4001
- }
4002
- )
4003
- ]
4004
- }
4005
- ),
4006
- A === "small" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
4007
- /* @__PURE__ */ t.jsx(ml, { children: Kt }),
4008
- /* @__PURE__ */ t.jsx(
4009
- zr,
4010
- {
4011
- progressSectionObj: nr,
4012
- createDate: e.createTime,
4013
- paymentDate: ir,
4014
- scheduleDate: e.reimbursementInfo?.paymentDate,
4015
- approvedDate: e.latestApprovedDate,
4016
- isBillUploaded: x != null ? !0 : e.uploadStatus === "Completed"
4017
- }
4018
- ),
4019
- Gt && /* @__PURE__ */ t.jsxs(al, { children: [
4020
- /* @__PURE__ */ t.jsx(il, {}),
4021
- /* @__PURE__ */ t.jsx(ll, { children: f.banner })
4022
- ] }),
4023
- e.isProcessing ? /* @__PURE__ */ t.jsx(
4024
- wn,
4025
- {
4026
- variant: "warning",
4027
- style: {
4028
- margin: A === "small" ? `${o.sp5} ${o.sp3}` : `${o.sp3} ${o.sp8} ${o.sp3} ${o.sp6}`
4029
- },
4030
- title: on.duplicateWarning.title,
4031
- description: on.duplicateWarning.description
4032
- }
4033
- ) : Yt ? /* @__PURE__ */ t.jsxs(sl, { size: A, children: [
4034
- /* @__PURE__ */ t.jsx(Ga, {}),
4035
- /* @__PURE__ */ t.jsxs(dl, { children: [
4036
- /* @__PURE__ */ t.jsx(cl, { children: f.thereSeems }),
4037
- /* @__PURE__ */ t.jsx(ul, { children: f.pleaseFind })
4038
- ] })
4039
- ] }) : null,
4040
- /* @__PURE__ */ t.jsx(
4041
- Ln,
4042
- {
4043
- isReimbursementCommentingEnabled: v,
4044
- sectionId: Nt,
4045
- reimbursementId: e.remiId,
4046
- reportTitle: e.whatForSection.reportTitle
4047
- }
4048
- )
4049
- ] }) : null,
4050
- /* @__PURE__ */ t.jsx(
4051
- ia,
4052
- {
4053
- onDuplicateLineClick: re,
4054
- reimbursementId: x,
4055
- remiDetails: e,
4056
- uploadInvoiceEndPoint: p,
4057
- authParams: i,
4058
- showSkipAutoFill: Ne,
4059
- setShowSkipAutoFill: gt,
4060
- isReimbursementCommentingEnabled: v,
4061
- isAutoFieldsExist: Gt,
4062
- totalAmount: ie,
4063
- removeFileFromLine: fe,
4064
- onReplaceClick: Zn,
4065
- onReceiptsUpload: F,
4066
- currencyConversionStatus: e.currencyConversionStatus,
4067
- setCurrentLineIdForUpload: _n,
4068
- setUploadedReceiptPayload: Hn,
4069
- updateInvoiceUploadFetchState: Ae,
4070
- clearTentativeNameForLine: Le,
4071
- defaultCurrency: a,
4072
- companyMileageConfigInfo: d,
4073
- isUserAdmin: m,
4074
- setShowBankAccountPage: Dt,
4075
- bankAccounts: c,
4076
- onDeleteBankAccount: Qn,
4077
- analytics: S,
4078
- fileRequiredLineIds: Ut,
4079
- isSignedInUserReimbursementCreator: y,
4080
- uncategorizedAccounts: $,
4081
- showTotalAmountLoader: pt,
4082
- duplicateLineByLineId: e.duplicateLineByLineId,
4083
- hasDuplicateLine: Yt,
4084
- removeDuplicateReimbursementForLine: ne,
4085
- scrollContainerRef: h
4086
- }
4087
- ),
4088
- /* @__PURE__ */ t.jsxs(
4089
- bl,
4090
- {
4091
- showSkipAutoFill: Ne,
4092
- windowSize: A,
4093
- children: [
4094
- A !== "small" ? /* @__PURE__ */ t.jsx(ln, {}) : null,
4095
- /* @__PURE__ */ t.jsx(wl, { windowSize: A, children: /* @__PURE__ */ t.jsxs($l, { windowSize: A, children: [
4096
- e.remiId !== void 0 && /* @__PURE__ */ t.jsx(
4097
- No,
4098
- {
4099
- amount: ie ?? 0,
4100
- activities: e.remiActivities,
4101
- stage: e.remiStage ?? "draft",
4102
- onAddNewRule: me,
4103
- entity: "reimbursement",
4104
- historicActivities: e.remiHistory.activities
4105
- }
4106
- ),
4107
- e.remiId == null && ie != null && ie > 0 ? /* @__PURE__ */ t.jsx(
4108
- No,
4109
- {
4110
- amount: ie ?? 0,
4111
- activities: jo,
4112
- stage: "draft",
4113
- entity: "reimbursement",
4114
- historicActivities: e.remiHistory.activities
4115
- }
4116
- ) : null
4117
- ] }) })
4118
- ]
4119
- }
4120
- ),
4121
- /* @__PURE__ */ t.jsx(Sl, {}),
4122
- /* @__PURE__ */ t.jsxs(
4123
- rl,
4124
- {
4125
- showSkipAutoFill: Ne,
4126
- windowSize: A,
4127
- children: [
4128
- A !== "small" ? /* @__PURE__ */ t.jsx(ln, {}) : null,
4129
- /* @__PURE__ */ t.jsx(
4130
- Ua,
4131
- {
4132
- windowSize: A,
4133
- onClick: (g) => {
4134
- g.stopPropagation(), Ke === !0 && Ge(!1);
4135
- },
4136
- children: /* @__PURE__ */ t.jsx(
4137
- In,
4138
- {
4139
- formId: an(rn),
4140
- separatorStyle: { marginRight: o.sp4 },
4141
- showCancel: y,
4142
- cancelBtn: {
4143
- label: m && e.remiStage === "pending_approval" && e.remiStatus !== "rejected" ? A === "small" ? f.buttons.discard : f.buttons.discardChanges : A === "small" ? f.buttons.save : f.buttons.saveChanges,
4144
- isLoading: Qe === "save" && e.saveStatus?.fetchState === "In-Progress",
4145
- onClick: ko,
4146
- style: { width: ee.footerButtonWidth.value(A) },
4147
- reverseSpinnerColor: !1
4148
- },
4149
- primaryBtn: {
4150
- label: _a(
4151
- y,
4152
- m,
4153
- e,
4154
- A
4155
- ),
4156
- isDisabled: !y,
4157
- style: {
4158
- width: y ? ee.footerButtonWidth.value(A) : "auto"
4159
- },
4160
- type: y ? "submit" : "button",
4161
- onClick: y ? () => null : ko,
4162
- isLoading: !y && Qe === "save" && e.saveStatus?.fetchState === "In-Progress"
4163
- },
4164
- rightSideComponent: /* @__PURE__ */ t.jsx(Ha, { children: /* @__PURE__ */ t.jsxs(Qa, { windowSize: A, children: [
4165
- Ke ? /* @__PURE__ */ t.jsx(
4166
- cn,
4167
- {
4168
- onClickAway: () => Ge(!1),
4169
- children: /* @__PURE__ */ t.jsx(
4170
- Xa,
4171
- {
4172
- windowSize: A,
4173
- "data-testid": U(
4174
- "remi-other-actions-container"
4175
- ),
4176
- children: /* @__PURE__ */ t.jsx(
4177
- Za,
4178
- {
4179
- onClick: Xn,
4180
- "data-testid": U(
4181
- "delete-report-action"
4182
- ),
4183
- children: f.buttons.deleteReport
4184
- }
4185
- )
4186
- }
4187
- )
4188
- }
4189
- ) : null,
4190
- /* @__PURE__ */ t.jsx(Ja, { windowSize: A, children: ar === !0 ? /* @__PURE__ */ t.jsx(
4191
- Ya,
4192
- {
4193
- windowSize: A,
4194
- "data-testid": U(
4195
- "more-details-button"
4196
- ),
4197
- children: /* @__PURE__ */ t.jsx(
4198
- Ka,
4199
- {
4200
- onClick: () => Ge(!Ke)
4201
- }
4202
- )
4203
- }
4204
- ) : null })
4205
- ] }) }),
4206
- style: {
4207
- minHeight: 62
4208
- }
4209
- }
4210
- )
4211
- }
4212
- )
4213
- ]
4214
- }
4215
- ),
4216
- v && x != null ? /* @__PURE__ */ t.jsx(mr, { id: Ct, children: /* @__PURE__ */ t.jsx(
4217
- Fr,
4218
- {
4219
- isDrawerOpen: W,
4220
- allowComposer: !0,
4221
- drawerTitle: Ra,
4222
- threads: ft,
4223
- autoExpand: !0,
4224
- autoFocus: !1,
4225
- filter: {
4226
- application: "dashboard",
4227
- companyId: _?.companyId ?? za,
4228
- isGlobalComment: !1,
4229
- tab: "reimbursement"
4230
- },
4231
- isLoading: tt,
4232
- threadMetadata: _ ? {
4233
- companyName: _.companyName,
4234
- companyId: _.companyId,
4235
- entityId: _.entityId,
4236
- entityType: _.entityType,
4237
- isGlobalComment: !1,
4238
- application: "dashboard",
4239
- tab: "reimbursement",
4240
- url: window.location.href
4241
- } : void 0,
4242
- textOverrides: {
4243
- composerPlaceholder: Fa,
4244
- replyComposerPlaceholder: Na,
4245
- threadResolve: Wa,
4246
- threadUnResolve: Ea
4247
- },
4248
- onThreadClick: (g, j) => sr(g, j),
4249
- onCloseAllThreadsDrawer: () => se(!1),
4250
- drawerSectionStyle: {
4251
- width: "400px",
4252
- backgroundColor: He.colors.background
4253
- }
4254
- }
4255
- ) }) : null
4256
- ] })
4257
- }
4258
- ),
4259
- Dn ? /* @__PURE__ */ t.jsx(el, { windowSize: A, children: /* @__PURE__ */ t.jsx(
4260
- xa,
4261
- {
4262
- bankAccountCreationState: C,
4263
- setShowBankAccountPage: Dt,
4264
- plaidConnectionDetails: l,
4265
- onFetchLinkTokenClick: Me,
4266
- onEstablishConnectionClick: pe,
4267
- onSaveHandler: B,
4268
- bankAccountToCreate: O,
4269
- bankNameByRouting: b,
4270
- fetchBankNameByRoutingStatus: T,
4271
- onUserBankDetailsUpdated: P,
4272
- onFetchBankName: H,
4273
- onBackClick: () => {
4274
- Je(), Dt(!1);
4275
- }
4276
- }
4277
- ) }) : null
4278
- ] })
4279
- }
4280
- ) });
4281
- }, _a = (e, i, a, d) => e ? a.reimbursementId != null && a.remiStage === "pending_approval" ? f.buttons.resubmit : f.buttons.submit : i && a.remiStage === "pending_approval" && a.remiStatus !== "rejected" ? d === "small" ? f.buttons.discard : f.buttons.discardChanges : d === "small" ? f.buttons.save : f.buttons.saveChanges, Da = n.div`
4282
- position: relative;
4283
- height: 100vh;
4284
- overflow-y: scroll;
4285
- `, qa = n.div`
4286
- position: fixed;
4287
- top: 0;
4288
- left: 42vw;
4289
- width: 100%;
4290
- height: 100vh;
4291
- background: transparent;
4292
- box-shadow: 0 2px ${o.sp1} ${({ theme: e }) => e.colors.dropShadowNormal};
4293
- pointer-events: none;
4294
- z-index: 3;
4295
- `, Ua = n.div`
4296
- width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
4297
- `, Ha = n.div`
4298
- display: flex;
4299
- justify-content: flex-end;
4300
- `, Ka = n(Vr)`
4301
- cursor: pointer;
4302
- color: ${(e) => e.theme.colors.hero};
4303
- width: ${o.sp5};
4304
- height: ${o.sp5};
4305
- &:hover {
4306
- color: ${(e) => e.theme.colors.primary};
4307
- }
4308
- `, Ga = n(_r)`
4309
- width: ${o.sp4};
4310
- height: ${o.sp4};
4311
- color: ${I.brandColorGoldDark};
4312
- `, Ya = n.div`
4313
- display: flex;
4314
- margin-left: ${(e) => e.windowSize === "small" ? o.sp4 : o.sp5};
4315
- cursor: pointer;
4316
- color: ${(e) => e.theme.colors.grey1};
4317
- &:hover {
4318
- color: ${(e) => e.theme.colors.primary};
4319
- }
4320
- `, Ja = n.div`
4321
- display: flex;
4322
- justify-content: center;
4323
- align-items: center;
4324
- `, Xa = n.div`
4325
- display: flex;
4326
- width: auto;
4327
- align-items: center;
4328
- justify-content: center;
4329
- flex-direction: column;
4330
- background-color: ${(e) => e.theme.colors.grey5};
4331
- color: ${(e) => e.theme.colors.hero};
4332
- cursor: pointer;
4333
- padding-top: ${o.sp1};
4334
- padding-bottom: ${o.sp1};
4335
- position: absolute;
4336
- bottom: ${(e) => ee.otherActionsContainerBottom.valuePx(e.windowSize)};
4337
- z-index: 3;
4338
- border: ${(e) => `1px solid ${e.theme.colors.grey3}`};
4339
- border-radius: ${o.sp1};
4340
- right: ${(e) => ee.right.valuePx(e.windowSize)};
4341
- box-shadow: ${(e) => `${o.sp0} 2px ${o.sp1} ${e.theme.colors.grey1} 3D`};
4342
- `, Qa = n.div`
4343
- width: 100%;
4344
- justify-content: flex-end;
4345
- position: ${(e) => e.windowSize === "small" ? "static" : "relative"};
4346
- right: ${(e) => ee.actionsContainerRight.valuePx(e.windowSize)};
4347
- height: 100%;
4348
- display: flex;
4349
- `, Za = n(yo)`
4350
- display: flex;
4351
- align-items: center;
4352
- width: -webkit-fill-available;
4353
- padding-left: ${o.sp3};
4354
- padding-right: ${o.sp3};
4355
- height: ${o.sp6};
4356
- box-sizing: border-box;
4357
- &:hover {
4358
- background-color: ${(e) => e.theme.colors.background};
4359
- }
4360
- `, el = n.div`
4361
- overflow-y: auto;
4362
- z-index: 5;
4363
- height: 100vh;
4364
- position: fixed;
4365
- background: ${(e) => e.theme.colors.grey4};
4366
- width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
4367
- right: 0;
4368
- top: 0;
4369
- `, tl = n.div`
4370
- background: ${(e) => e.theme.colors.grey4};
4371
- height: 44px;
4372
- display: flex;
4373
- align-items: center;
4374
- justify-content: end;
4375
- `, ol = n.div`
4376
- width: 58%;
4377
- `, nl = n($o)`
4378
- padding: ${o.sp3} ${o.sp3} 0 ${o.sp3};
4379
- background: ${(e) => e.theme.colors.grey4};
4380
- color: ${(e) => e.theme.colors.primary};
4381
- `, rl = n.div`
4382
- display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
4383
- width: 100%;
4384
- position: fixed;
4385
- bottom: 0;
4386
- z-index: 3;
4387
- `, ln = n.div`
4388
- width: 42%;
4389
- `, il = n(fo)`
4390
- color: ${(e) => e.theme.colors.primary};
4391
- width: ${o.sp3};
4392
- height: ${o.sp3};
4393
- `, al = n.div`
4394
- display: flex;
4395
- gap: ${o.sp2};
4396
- border: 1px solid ${(e) => e.theme.colors.grey3};
4397
- padding: ${o.sp3};
4398
- border-radius: ${o.sp2};
4399
- align-items: center;
4400
- margin: ${o.sp3};
4401
- `, ll = n.span`
4402
- color: ${(e) => e.theme.colors.hero};
4403
- `, sl = n.div`
4404
- display: flex;
4405
- gap: ${o.sp2};
4406
- padding: ${o.sp3};
4407
- border-radius: ${o.sp2};
4408
- align-items: start;
4409
- margin-top: ${(e) => ee.duplicateBannerWrapperMarginTop.valuePx(e.size)};
4410
- margin-right: ${(e) => ee.duplicateBannerWrapperMarginRight.valuePx(e.size)};
4411
- margin-bottom: ${(e) => ee.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
4412
- margin-left: ${(e) => ee.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
4413
- background-color: ${I.alertLight};
4414
- border: 1px solid ${(e) => e.theme.colors.brandColorGoldDark};
4415
- `, cl = n(_t)`
4416
- color: ${(e) => e.theme.colors.brandColorGoldDark};
4417
- `, dl = n.div`
4418
- width: 100%;
4419
- `, ul = n(xo)`
4420
- color: ${(e) => e.theme.colors.brandColorGoldDark};
4421
- `, ml = n($o)`
4422
- letter-spacing: -0.02em;
4423
- color: ${(e) => e.theme.colors.primary};
4424
- margin: ${o.sp3};
4425
- `, sn = n.div`
4426
- display: flex;
4427
- flex-direction: ${(e) => e.windowSize === "small" ? "column" : "row"};
4428
- height: 100vh;
4429
- visibility: inherit;
4430
- width: 100%;
4431
- background-color: ${I.overlayDark};
4432
- z-index: 11; // This is to ensure that the skip autofill section is above the AI CFO icon whose value is 10
4433
- position: fixed;
4434
- `, pl = n.div`
4435
- z-index: 3;
4436
- min-height: 62px;
4437
- height: 62px;
4438
- display: flex;
4439
- align-items: center;
4440
- width: 100%;
4441
- justify-content: space-between;
4442
- position: fixed;
4443
- `, hl = n(Nr)`
4444
- display: flex;
4445
- color: ${(e) => e.theme.colors.brandColorJade};
4446
- cursor: pointer;
4447
- width: ${o.sp4};
4448
- height: ${o.sp4};
4449
- `, lo = n(On)`
4450
- cursor: pointer;
4451
- width: ${o.sp4};
4452
- height: ${o.sp4};
4453
- float: right;
4454
- color: inherit;
4455
- `, so = n.div`
4456
- color: ${(e) => e.theme.colors.hero};
4457
- &:hover {
4458
- color: ${(e) => e.withOverlay ? I.primaryDark : e.theme.colors.primary};
4459
- }
4460
- `, gl = n.div`
4461
- margin-top: ${(e) => ee.closeMarginTop.valuePx(e.windowSize)};
4462
- display: flex;
4463
- float: right;
4464
- `, yl = n.div`
4465
- display: flex;
4466
- align-items: center;
4467
- justify-content: center;
4468
- position: relative;
4469
- float: right;
4470
- cursor: ${(e) => e.isDisabled ? "not-allowed" : "pointer"};
4471
- color: ${(e) => e.theme.colors.hero};
4472
- &:hover {
4473
- color: ${(e) => e.theme.colors.primary};
4474
- }
4475
- `, fl = n(Wr)`
4476
- display: flex;
4477
- width: ${o.sp4};
4478
- height: ${o.sp4};
4479
- align-items: center;
4480
- justify-content: center;
4481
- `, co = n.div`
4482
- margin-top: ${(e) => e.partOfSkipAutoFill === !0 ? ee.closeMarginTop.valuePx(e.size) : 0};
4483
- margin-left: ${o.sp5};
4484
- margin-right: ${(e) => e.partOfSkipAutoFill === !0 ? ee.closeMarginRight.valuePx(e.size) : 0};
4485
- `, xl = n.div`
4486
- display: flex;
4487
- flex-direction: column;
4488
- width: 100vw;
4489
- overflow-x: hidden;
4490
- background: -webkit-linear-gradient(
4491
- to right,
4492
- ${(e) => e.theme.colors.background} 42%,
4493
- ${(e) => e.theme.colors.grey4} 42%
4494
- );
4495
- background: -moz-linear-gradient(
4496
- to right,
4497
- ${(e) => e.theme.colors.background} 42%,
4498
- ${(e) => e.theme.colors.grey4} 42%
4499
- );
4500
- background: -o-linear-gradient(
4501
- to right,
4502
- ${(e) => e.theme.colors.background} 42%,
4503
- ${(e) => e.theme.colors.grey4} 42%
4504
- );
4505
- background: linear-gradient(
4506
- to right,
4507
- ${(e) => e.theme.colors.background} 42%,
4508
- ${(e) => e.theme.colors.grey4} 42%
4509
- );
4510
- ${(e) => e.windowSize === "small" && `
4511
- background: ${e.theme.colors.grey4};
4512
- `}
4513
- min-height: 100vh;
4514
- `, bl = n.div`
4515
- display: ${(e) => e.windowSize === "small" && e.showSkipAutoFill ? "none" : "flex"};
4516
- width: 100%;
4517
- margin-bottom: ${(e) => ee.bottomMargin.valuePx(e.windowSize)};
4518
- `, wl = n.div`
4519
- width: ${(e) => ee.rightSectionWidth.valuePercentage(e.windowSize)};
4520
- `, $l = n.div`
4521
- margin-left: ${(e) => ee.leftMargin.valuePx(e.windowSize)};
4522
- margin-right: ${(e) => ee.rightMargin.valuePx(e.windowSize)};
4523
- `, Sl = n.div`
4524
- display: flex;
4525
- flex-direction: column;
4526
- height: ${o.sp11};
4527
- `;
4528
- export {
4529
- Nl as default,
4530
- an as uniqueName
4531
- };