@zeniai/web-cockpit-ui 1.14.72-qa → 1.14.73-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/dist/assets/{ACHDetailsPage-BZFkcCOG-BgLnT2bx.js → ACHDetailsPage-FHBR2PCA-DLva-SPh.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DtNLjoUW-B-tQfVdq.js → AIPerformancePage-CiYLvD6Z-bHSk8bLC.js} +19 -19
  3. package/dist/assets/{AccountInfoPage-D-E_-WpE-BBToHrwY.js → AccountInfoPage-B0uMPZhx-BIQF2gH2.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-B8GKrtCm-eOZxiYcE.js → AccountInfoPageContent-CdgOtpop-AHRejHe6.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BD7Nb81U-B8-e-Aqp.js → AccountLockedInfoModal-DnQEp6tD-BW8Fp--s.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D-_ME0pV-ZyQ51UQi.js → AccountReconDetailsDrawerPage-BxjUNX_b-C4CXpIA8.js} +1 -1
  7. package/dist/assets/AccountRow-C6z4Ft3r-BFimoTCg.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-CdBwPVgI-DC42arzv.js → AccountsPromoCardStack-BS-HxQ5z-BoaDvf04.js} +15 -15
  9. package/dist/assets/{AddAddressForCardDrawer-Lm7cn4kq-IB0w7L6k.js → AddAddressForCardDrawer-qa7RqzlX-DAOW06gk.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-nSq-9dQy-BLazFAns.js → AddToWalletPage-DNjsPMFK-r8gZ63eR.js} +18 -18
  11. package/dist/assets/{AgingReportsPage-L0zQxwCf-CzxlP75b.js → AgingReportsPage-Dmgvzu2b-DiSOGn-n.js} +1 -1
  12. package/dist/assets/{AllUserItems-CvwaOEhu-CSstsloE.js → AllUserItems-BBC-qn-o-D2MAzw4F.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-B_78aSEv-CyRGhFJs.js → ApAgingDetailPage-YWdtNxkt-5BxHOM_M.js} +2 -2
  14. package/dist/assets/{AppBasePage-Br0WbQRY-CvtL6jFY.js → AppBasePage-BnA8ceAD-BvanHCQt.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-BZODvVvi-CBR3J9Hc.js → AppDrawerContent-DKHWPZQW-CEAxNC9t.js} +2 -2
  16. package/dist/assets/{ApprovalRulesSettingsPage-Dxd7A3hZ-CpKhvWXh.js → ApprovalRulesSettingsPage-D4Vz_gLv-DJSQNR5P.js} +1 -1
  17. package/dist/assets/{ArAgingChart-BezVy1Sm-B5e4MyYb.js → ArAgingChart-CuHk_U2p-D7juYPVe.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BlV3iJeW-C8LgZKgM.js → ArAgingDetailPage-H77B2AWo-DYwzxBIW.js} +1 -1
  19. package/dist/assets/{AttachmentView-DhluaeAV-BaM0a1eW.js → AttachmentView-D1SPuem6-CmH4xHN2.js} +1 -1
  20. package/dist/assets/{BankAccountSection-GDEQdiGL-D7Gh00lc.js → BankAccountSection-ByfDYmEM-WCmaTn1f.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-Di_BsiJC-Be424FdZ.js → BankAccountWarningSection-BTCdQgZV-Bb72qOHU.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-D5hI4xtm-DMzJVZgn.js → BankConnectionsSettingsPage-L62aMW_s-Ce_PfdvA.js} +8 -8
  23. package/dist/assets/{BillDetailPage-CDAh8Jtl-B38-z0c0.js → BillDetailPage-BBQJpRTI-D0MlJ03G.js} +4 -4
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BzyTn4mC-BYJ5p8aA.js → BillPayApprovalRuleDetailPage-ByLLupWf-BGMDsIwH.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DDJ-LxQz-CCttQ48s.js → BillPayApprovalRulesPage-D4d-6Jnf-CF6fIJls.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-B2YcxWc9-BQxU6TuM.js → BillPayPromoPage-CPGYF3vl-DVnbNH0W.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-oJvoWpFu-rnx0woyr.js → BillPaySetUpPage-CeciDq-c-NzaXshML.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-BRsKYzT5-Bkhfil_F.js → BillingSettingsPage-DknUlTgB-CcR7ugmH.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-B7tORIok-CzktZl5t.js → BillsBulkReviewDrawerPage-BIjlRcX--CZ4DepwQ.js} +1 -1
  30. package/dist/assets/{BoxItem-COIjjFrn-BdkILoXu.js → BoxItem-D4K0YgBP-Bm_px4kT.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Nw_fedst-DWFoTVFR.js → BusinessVerificationPage-CWioKmMC--fpYbOGK.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-CmhH95Ff-Cm3hJRYZ.js → CardNumberSubText-C_03r_B--CXrhgc3z.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-BPLjvuA3-oIqL5TUs.js → CashbackDetailPage-BaImXBc2-BqUQeIYw.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-qOu4cPGd-C633jFp0.js → ChargeCardDetailPage-Ba7cRz0p-DYtlHHMF.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-v5hH98Wi-BuxeUD72.js → ChargeCardListPage-BTH_OAht-CJvC6mTi.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-BGWV4zJl-Ce2AthWH.js → ChargeCardListTable-DpRWVPmZ-CcrBBELQ.js} +39 -39
  37. package/dist/assets/{ChargeCardPromoPage-CPEaGOL3-BLFFi5jX.js → ChargeCardPromoPage-B3bc_Qcj-DVNboRNz.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-G5Rn0o6y-DYXNrre8.js → ChargeCardSetupPage-3-7oaikG-BYx_BUtm.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-CJgUrcLz-BI7ZoCFJ.js → ChargeCardStatementsPage-3HMKClyw-mCs_-TXo.js} +5 -5
  40. package/dist/assets/{ChargeCardUtils-BRgkrCTs-C8zXQGn9.js → ChargeCardUtils-Cx6ntaue-CziTslau.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-BC_4vwtb-COKgYEaj.js → ChaseOverlay-1PyDzocW-DV1roPs3.js} +5 -5
  42. package/dist/assets/{CheckDepositDrawerPage-CDo5E13X-Cbi1sEYQ.js → CheckDepositDrawerPage-DTADpJQC-sqk-xG07.js} +16 -16
  43. package/dist/assets/{CollapsableReportTable-7iAngywY-3SRlHTeX.js → CollapsableReportTable-rEGCWPrN-DiziLVLU.js} +3 -3
  44. package/dist/assets/{CompanyOfficerDetailsSection-CJKyxEnf-mrI2AYJG.js → CompanyOfficerDetailsSection-Dpe50aqM-B1Sor9Us.js} +11 -11
  45. package/dist/assets/{CompanyPassportCard-D3F01eJL-DPoINVrz.js → CompanyPassportCard-l9sgkbw_-BXrIXjOn.js} +3 -3
  46. package/dist/assets/{CompanyPassportPage-BQoEcPJr-2ha-NP_x.js → CompanyPassportPage-DQPGAnFq-DsQ6naIu.js} +9 -9
  47. package/dist/assets/{CompleteProfile-D5e9TQgy-cUhxzOkn.js → CompleteProfile-DJBScNev-5kVXmwEh.js} +1 -1
  48. package/dist/assets/{ConfettiBurst--HIHB7Os-BVRZRbZr.js → ConfettiBurst-DukumtTx-CSzALiwF.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-D9jmSrKr-CMioxX86.js → CreateOrEditVendorPage-C39AEROO-Df_MDMmD.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-DXeq4z9l-C5xTsPli.js → CreditCardPaymentDrawerPage-D8VUjeG2-Nczpa7J9.js} +15 -15
  51. package/dist/assets/{CreditCardPaymentPlgSection-8ZShMO31-B_vJ6o3d.js → CreditCardPaymentPlgSection-L8WvXQsE-Dx-X3Ggn.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-nhg_dhDw-DQZDcRCb.js → CurrencySelectField-yIymL1et-BBkhU934.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-CoGvz7Kd-DP5AN6ur.js → CustomerOnboardingActivationPage-BKBFtr-o-B3t33ZLt.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-BwRlnH01-Di0CtCSz.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DUGRKWtN-CMWBr_hG.js → CustomerOnboardingDetailPageSkeleton-BsnPvucg-BEvywTxp.js} +5 -5
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-Cc5frP29-_UWfoHYC.js → CustomerOnboardingNoStepsPage-Db1DFgQR-DfT9hNRl.js} +6 -6
  57. package/dist/assets/{CustomerOnboardingPage-zBqp9QN6-wHOjxMhK.js → CustomerOnboardingPage-BoF4bXiW-CKAc0RQX.js} +4 -4
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BbJ4oiCI-CU_hgVPi.js → CustomerOnboardingProductSuitePage-BdGFZtH3-DLLnRFgg.js} +8 -8
  59. package/dist/assets/{Dashboard-D6Ba5oj0-BMy5lCc9.js → Dashboard-hADP7IBB-Bk1vjezx.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-DTMbYOWH-DGx7cygN.js → DashboardReportPage-BwTchCvy-O2bBIky3.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-Locz2zHR-Ca532zPr.js → DashboardSidebarBackgroundAnimation-B-w4cVMW-BWggpu2o.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-B0BGwVqF-BM-W7GCr.js → DepositAccTransactionItem-BMkCcz-U-g-iJ8Z3m.js} +2 -2
  63. package/dist/assets/{DepositAccTransactionListPage-CcO673ZL-DRqh7vYS.js → DepositAccTransactionListPage-D6h0mu0p-Cba8Z-zG.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-D5hbPNCt-DaulrfVc.js → DomesticWireDetailsPage-DQG9O9kV-DkLiQ_AK.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DRcasKoB-DLYS6xSC.js → DownloadOverlay-mXe-oklf-DPD6fOSt.js} +1 -1
  66. package/dist/assets/{DrawerPage-BRD6cE6J-DYHldhBX.js → DrawerPage-DSbF_bCc-BOfcYWDU.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-Zzo62if7-Xj5VLqqt.js → EditPeoplePage-DnE5ud-m-STxMbpu_.js} +3 -3
  68. package/dist/assets/EditReimbursementDetailPage-CtHzBFwx-CcMSn1Z9.js +865 -0
  69. package/dist/assets/{EntityDetailPage-CzlzOW8n-AF0nPS5d.js → EntityDetailPage-CSR_wxIn-C3ytfDma.js} +2 -2
  70. package/dist/assets/{EntitySummarySection-BRt1kPDf-BQpDHoFd.js → EntitySummarySection-BP9sqkp_-C8j67E3x.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-vUkGameq-CGGvu9kc.js → ExpenseAutomationOverviewPage-C-ZrFIVW-LPRP5OZt.js} +7 -7
  72. package/dist/assets/ExpenseAutomationPage-BEhjUkgs-DU0Mp3Bk.js +1650 -0
  73. package/dist/assets/{ExpressPayPage-DdQiFzDu-ZxolIAW1.js → ExpressPayPage-C9rqylRE-fd6R9yCg.js} +8 -8
  74. package/dist/assets/{FeaturePreviewPage-CQN2xThT-CtWhCMTj.js → FeaturePreviewPage-BcRRbP7e-DlhiW3MZ.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-DdwEVWhG-D5CWxbHL.js → FollowStepsSection-B3Kyt5j4-CgmrU6eD.js} +18 -18
  76. package/dist/assets/{GlobalReviewListPage-DHn2Uk8R-B02Df9ic.js → GlobalReviewListPage-Bz-YyIK8-B-UTCvpv.js} +5 -5
  77. package/dist/assets/{HelpButton-BNMy-6ce-Dj_O42xW.js → HelpButton-38HaKgFL-BugYIsvp.js} +1 -1
  78. package/dist/assets/{InformationCardStack-Cw7c9Pnd-Z9rJV-HY.js → InformationCardStack-BY26HFGi-BLGIbInA.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-CaMZiCnn-DH8dmM6J.js → InsightsCardStack-BI7iTuQ_-DQl2fOce.js} +10 -10
  80. package/dist/assets/{InsightsSection-JIKb9lz3-BHiqZJbQ.js → InsightsSection-AQ5yTmGG-DS0VgX7W.js} +3 -3
  81. package/dist/assets/{IntegrationsSettingsPage-h4pel2yK-CMzEW2al.js → IntegrationsSettingsPage-BEAFHjYf-d2P0RMG5.js} +5 -5
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-C2SnHEV1-DaLUKDNV.js → InternationalWireSwiftDetailsPage-DNvv8jLc-dT-poZdm.js} +6 -6
  83. package/dist/assets/{InternationalWireVerificationPage-Dk11ztF7-Du-xTdOF.js → InternationalWireVerificationPage-BdUXxMgU-DhF9zfHu.js} +6 -6
  84. package/dist/assets/{InviteFormPage-CrtH0cSG-DocQjxv0.js → InviteFormPage-CY-8DzRS-Bfynw6ME.js} +1 -1
  85. package/dist/assets/{InvitePageListView-DUoopPip-D2WxsqtH.js → InvitePageListView-DXjKBR4k-Np2jy73K.js} +14 -14
  86. package/dist/assets/{InvitePeoplePage-C3ecL8XJ-B6CmBuLR.js → InvitePeoplePage-CIafIgkR-BdmOchmq.js} +4 -4
  87. package/dist/assets/{InvoiceUploadSection-DoR834b4-CUq8fAkS.js → InvoiceUploadSection-cXNOY5jR-DGuQgS61.js} +1 -1
  88. package/dist/assets/{IssueChargeCardPage-D6DCohbK-D8VGttsh.js → IssueChargeCardPage-DN1zD_YI-i_-kvzIl.js} +10 -10
  89. package/dist/assets/{LabeledAddressValue-C3R0DSjj-Bir4MON_.js → LabeledAddressValue-Bk3vXfZU-CU4YMzA1.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-YP7bXlgZ-DTTFAf5k.js → LabeledAddressValueField-6MpVMde--DXTq8JS8.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-zwoLFM1n-II-cAJkn.js → LabeledControlledCheckBoxField-BjYGaRbt-BGdAOJoA.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-BhaeopJt-C3MxM3hQ.js → LabeledCreatableSingleSelectField-9q4Lqszf-Csk7xXRk.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-ED03S2kQ-Dxa7UQxr.js → LabeledDocumentField-CAWaftIF-CSQ4X3Cr.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-brzU_fnp-DtaD0WN_.js → LabeledDropDownFormattedTextField-WbohTHp8-Bsf-e-tx.js} +1 -1
  95. package/dist/assets/{LabeledText-BESSkt5Z-DXlW_VY-.js → LabeledText-B3JYr4tU-laTDcIhJ.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-Dq3Y2KPE.js → LabeledUserSingleSelectWithSubtitlesField-DHOsMX6S-5w6248s9.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-BXTCN4j2-BoDRzyRs.js → LabeledZeniRolesDropDownField-DcUdbKa4-fYq87dcd.js} +13 -13
  98. package/dist/assets/{LinkJETransactionPage-_ROjxBMO-iAkW-laA.js → LinkJETransactionPage-B1XJOlhU-DdWugwxQ.js} +2 -2
  99. package/dist/assets/{LockCardPage-DYfgK11k-3kQoNozm.js → LockCardPage-B-EvOmPO-B73f-ypE.js} +10 -10
  100. package/dist/assets/{LowBalancePopup-CZDcHxyW-DuEa-iJG.js → LowBalancePopup-BoFHsW5A-B3QtlbXZ.js} +1 -1
  101. package/dist/assets/{MagicLinkACHDetailsPage-CLXcRbZ--Dwvc772T.js → MagicLinkACHDetailsPage-D5-czDfb-D9jHfcHK.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CZlZr96w-DD7d2isR.js → MagicLinkDomesticWireDetailsPage-DxtWixFB-79ayjypJ.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DhPjvv0o-B4AeaXKS.js → MagicLinkInternationalWireDetailsPage-kmj9pdzN-DnNURYN2.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-Bh2nlLPN-0Oz4r3Up.js → MagicLinkSuccessPage-BPzk03R8-SXgLVDgR.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-Cn1v72Rs-BFZI4Y3w.js → MagicLinkTitleSection-CgS4ZMfb-BI5Lq2SW.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-9RwlQxVG-BFE8Zj6F.js → MailingDetailsSection-BktKZ2Nr-DyWKpOiG.js} +1 -1
  107. package/dist/assets/{MeetingCalenderPopup-BxV_UIXP-CbDuBV39.js → MeetingCalenderPopup-2tPtQeqB-QatkmFKh.js} +1 -1
  108. package/dist/assets/{Menu-B6iTf2H7-CaN3eNC5.js → Menu-CV1BBSGW-DKOqAYYS.js} +1 -1
  109. package/dist/assets/{MyBankConnectionsSettingsPage-IPPiH6jv-BZaCFusP.js → MyBankConnectionsSettingsPage-CMyrZ4nS-BheEjXSF.js} +1 -1
  110. package/dist/assets/{MyPendingActivationChargeCardListPage-BTGb1yIE-B60FFt6i.js → MyPendingActivationChargeCardListPage-DuOoKlPP-thKNb-ry.js} +1 -1
  111. package/dist/assets/{MyProfileSettingsPage-BRK5nWg2-BMqEc-a-.js → MyProfileSettingsPage-CA-5gU5k-BFEIvdNu.js} +5 -5
  112. package/dist/assets/{NavBarWithPicker-CKh_HMfV-Bk70qUr9.js → NavBarWithPicker-DuazRsm7-BXAVo-zX.js} +1 -1
  113. package/dist/assets/{NavigationArrow-XZmJpDrE-BIKmxNt5.js → NavigationArrow-DnZuPnXh-BOLYjEri.js} +1 -1
  114. package/dist/assets/{NavigationDots-BxPgEW_p-BH_dRdsk.js → NavigationDots-DarWlthl-CEtLiSj-.js} +1 -1
  115. package/dist/assets/{NewGlobalMerchantPage-CQzrDe0S-C0l22Bkl.js → NewGlobalMerchantPage-C5zI88lM-DBDRlSHQ.js} +2 -2
  116. package/dist/assets/{NoDataChart-5E72SElf-CivTfVpi.js → NoDataChart-Dwrv5FXT-BktYGhJl.js} +1 -1
  117. package/dist/assets/{NoDataTable-BwHbkm3l-BFQFSxPN.js → NoDataTable-BT9VQUID-B1zJzLW9.js} +2 -2
  118. package/dist/assets/{NotFoundPage-6udaksBZ-D3E8rdhi.js → NotFoundPage-BpVYjIy9-CAwSGm4b.js} +1 -1
  119. package/dist/assets/{NotificationSettingsPage-DkYmxMgg-D8pPsHqH.js → NotificationSettingsPage-Br1VS7sj-D72VzMEy.js} +22 -22
  120. package/dist/assets/{NotificationsListConfig-FGxLgO1o-B8OXacze.js → NotificationsListConfig-COCJ7xUp-B665e_3O.js} +1 -1
  121. package/dist/assets/{NotificationsPage-C7lSAnUb-Dr_7ygVm.js → NotificationsPage-CtIcIo4T-DuWbZv_Q.js} +24 -24
  122. package/dist/assets/{OpExByVendorPage-CM0RluUk-_37yq8j1.js → OpExByVendorPage-CTdChrGD-CvW5Vepn.js} +5 -5
  123. package/dist/assets/{OverlayContainerPage-BKHs_4eI-BzvRxHIb.js → OverlayContainerPage-CU1AAMcq-ai6w2Y-V.js} +1 -1
  124. package/dist/assets/{PandLWithForecastPage-W4jlNjml-GYerKXw7.js → PandLWithForecastPage-DVhAvUAV-CoqLEkYS.js} +2 -2
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQ82eP9Q-C3WHDKOj.js → PaymentAccountSetupBillingAddressSection-Cqk9_T2U-B2k-ZLJe.js} +1 -1
  126. package/dist/assets/{PeoplePage-CB3T3u_F-DiglFISH.js → PeoplePage-BR4qd-jm-CBOJNYwE.js} +8 -8
  127. package/dist/assets/{PortfolioAllocationFormPage-CZkJD6tu-k-ZMlZhC.js → PortfolioAllocationFormPage-T83_xyer-BkoO9beS.js} +1 -1
  128. package/dist/assets/{PortfolioDetails-D4yT8r35-D0ar_g4P.js → PortfolioDetails-6ElQWU58-ByHc7XYH.js} +4 -4
  129. package/dist/assets/{ProductsCarousel-CR7_rk0K-DBx3LGPh.js → ProductsCarousel-CijsxgpU-C19z6U57.js} +4 -4
  130. package/dist/assets/{PromoBaseCards-BAPolzxE-BXtgaLrj.js → PromoBaseCards-BWsv2pTB-B6b592gJ.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-D3eazhj7-DYLpkxDj.js → QBOConnectionDialog-ChKHWoK7-CSeEHm2_.js} +2 -2
  132. package/dist/assets/{QBOSetupSection-Cjjhm_Ee-DBhrwkGC.js → QBOSetupSection-C4gt0qc8-DTKMvJ4_.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRuleDetailPage-eidNY097-BCByIFaN.js → ReimbursementApprovalRuleDetailPage-BwgWdSTd-NVamJEor.js} +1 -1
  134. package/dist/assets/{ReimbursementApprovalRulesPage-GSzJGSuy-c5aCCOnC.js → ReimbursementApprovalRulesPage-C2asBtuf-DT1aAQsK.js} +1 -1
  135. package/dist/assets/ReimbursementDetailPage-DS1ewUKC-CVEFgQmR.js +314 -0
  136. package/dist/assets/{ReimbursementPromoPage-PshodHUZ-B43Em7U3.js → ReimbursementPromoPage-5OaQjA8F-DErLTtUx.js} +1 -1
  137. package/dist/assets/{ReimbursementSetUpPage-6P4FT-UC-BJa0K7Xr.js → ReimbursementSetUpPage-Bl8jzyRg-3jDcWgfT.js} +1 -1
  138. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cas6GzVp-DVcLPzki.js → ReimbursementsBulkReviewDrawerPage-DIesC2GA-CmjN--dc.js} +1 -1
  139. package/dist/assets/{ReloadCard-Dpoxd9nE-CXRu-hav.js → ReloadCard-0q5pQ13T-CKzHIqK2.js} +3 -3
  140. package/dist/assets/{ReportTableViewSelector-Ci-WKrCO-BjESI86S.js → ReportTableViewSelector-C0SiD_xG-BLDdaXUR.js} +5 -5
  141. package/dist/assets/{ReportsPage-C7zirS74-Cfwy01bz.js → ReportsPage-GTIPR29D-BtSUMj6k.js} +1 -1
  142. package/dist/assets/{RevenueChart-CXMBT3cr-H1qgR87b.js → RevenueChart-C099OBIz-BCjETeYD.js} +1 -1
  143. package/dist/assets/{ReviewDetailsPage-ClsyL5-w-Dm8fiuBk.js → ReviewDetailsPage-Dj29qJWr-znzq99Zm.js} +11 -11
  144. package/dist/assets/{ReviewOverlay-C6Kx7Hfm-PTA7Sxfm.js → ReviewOverlay-OPfHsiEH-DYnwxQBa.js} +3 -3
  145. package/dist/assets/{RoleWithToolTip-BqI6M0x_-CjRr5WNK.js → RoleWithToolTip-CnJMJF5X-DPQwf2SV.js} +2 -2
  146. package/dist/assets/{ScheduleDetailsFixedAssetsPage-zFyJPVpN-DR77A8Vi.js → ScheduleDetailsFixedAssetsPage-BojehSaf-CqIP5z2b.js} +8 -8
  147. package/dist/assets/{ScheduleDetailsPage-BftjSvA7-Bu1ekUfV.js → ScheduleDetailsPage-aZbK93Nq-BFB854u3.js} +3 -3
  148. package/dist/assets/{ScheduleSequenceTable-lTN7r0p4-BuEMykDk.js → ScheduleSequenceTable-By6Dky2k-cVt4Itnj.js} +21 -21
  149. package/dist/assets/{ScreenRoutes-CfLauL0U.js → ScreenRoutes-m-9CX7nW.js} +1 -1
  150. package/dist/assets/{SetUpAccountSection-Bnbi8X23-C17_K52x.js → SetUpAccountSection-B_VtQMHv-v5HWkW-2.js} +7 -7
  151. package/dist/assets/{SetUpDefaultSection-Bm1eZSgT-vK_tZkJp.js → SetUpDefaultSection-CR4EJd0L-DR8b1nlJ.js} +4 -4
  152. package/dist/assets/{SignIn-BlISBvt5-lALsslOV.js → SignIn-DlL4Ve5C-CS2k0j8x.js} +8 -8
  153. package/dist/assets/SignInScreen-82F821nF.js +1 -0
  154. package/dist/assets/{SpendManagementListViewPage-ChNp8dgm-BcuBIXnt.js → SpendManagementListViewPage-hcbJnpe0-Dx5Mkywb.js} +3 -3
  155. package/dist/assets/{SpendManagementPerTabPage-D-bOr2-6-IrMdTJ81.js → SpendManagementPerTabPage-CZMtZLLG-BwL9QJKu.js} +25 -25
  156. package/dist/assets/{SpendManagementSection-kucZgC-H-BqDZp6la.js → SpendManagementSection-v3VQ4WLv-BgJcZL_k.js} +7 -7
  157. package/dist/assets/{SpendMgmtSetupAccountSection-de7hEmtE-Dqky-jvG.js → SpendMgmtSetupAccountSection-BstM92cv-D_s447NX.js} +4 -4
  158. package/dist/assets/{StatementItem-BVIVLdDn-Z5Lg6CTz.js → StatementItem-DHN42swg-QQn_8xP5.js} +2 -2
  159. package/dist/assets/{StatementsPage-KnLUSJbm-BuZcsgE6.js → StatementsPage-BuWUMrMJ-ClESyfR5.js} +1 -1
  160. package/dist/assets/{StatusSwitcher-aAizq1mr-DMDnuQ9N.js → StatusSwitcher-BQIZqQby-CwGTf6Yt.js} +1 -1
  161. package/dist/assets/{SubTabSwitcher-COrYJ6CW-B2hOhdQG.js → SubTabSwitcher-BwULcWpV-KD7oZVm0.js} +1 -1
  162. package/dist/assets/{SummaryCard-Dv0dWKBw-nvmMyFzf.js → SummaryCard-sp4k0Xek-DgWj-oz4.js} +1 -1
  163. package/dist/assets/{TaskManagementPage-CPLyyK1Y-B19ne-R4.js → TaskManagementPage-N2Egdy4r-qGkYEZ7q.js} +1 -1
  164. package/dist/assets/{TimeRangeSwitcher-ifkHfqEg-DfO_JEAJ.js → TimeRangeSwitcher-BbGr7Bdf-CGee3poJ.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcher-BP-PxO5g-ICJqPhse.js → TimeframeSwitcher-CqP9hXqB-r5frPdgi.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-DH-PfsTQ-DT6_nKNc.js → TimeframeSwitcherWithToggle-C-Nxe_F8-C62_HCuz.js} +1 -1
  167. package/dist/assets/{TopExCard-Bam-Q4MV-DQjRYkgY.js → TopExCard-CLw0PDAU-BbYnCf3a.js} +5 -5
  168. package/dist/assets/{TopExDetailPage-P0Twt5zZ-eAB7xN9I.js → TopExDetailPage-GLquKOoy-kMqzF42L.js} +1 -1
  169. package/dist/assets/{TransactionDetailPage-D1Z1f-DD-B17t_ZG8.js → TransactionDetailPage-cTLfJiHb-1yZP6Zin.js} +1 -1
  170. package/dist/assets/{TransactionList-BzJEbOV9-BBSoiur3.js → TransactionList-SkjGKFn_-BwaaUL7x.js} +6 -6
  171. package/dist/assets/{TransactionListBig-u4SJBZTE-Cy4VRcVB.js → TransactionListBig-B4CiUxir-C15l10qy.js} +5 -5
  172. package/dist/assets/{TransactionListPage-D4GJ6i3l-DALdoomA.js → TransactionListPage-eiEKrfCB-CXZ0iEN3.js} +2 -2
  173. package/dist/assets/{TransactionVendorDetailPage-CuFHbm8c-BJ-Cayzm.js → TransactionVendorDetailPage-CySokm3L-BpHJwA9m.js} +3 -3
  174. package/dist/assets/{TransferDrawerPage-GD2I8ptj-DUje1E-7.js → TransferDrawerPage-BSv0D4Zs-BT9NFCI4.js} +12 -12
  175. package/dist/assets/{TreasuryOverviewPage-DySunaqy-Nz7IbNC7.js → TreasuryOverviewPage-C5hIMuk--DxAuBNvx.js} +15 -15
  176. package/dist/assets/{TreasuryPromoPage-DW1f8_q1-C7_Z0mWE.js → TreasuryPromoPage-DSJHOwhj-BeQhN-a8.js} +1 -1
  177. package/dist/assets/{TreasurySetupPage-53k6ARHC-BnG6gfLx.js → TreasurySetupPage-B_EmY_UY-DAaCNRGd.js} +4 -4
  178. package/dist/assets/{TreasuryStatementsPage-pIshKNaR-aDA9O2fx.js → TreasuryStatementsPage-BrZVJwAL-Bs1LrL-1.js} +1 -1
  179. package/dist/assets/{TreasuryTaxLetterPage-B3PkB1al-CRAagKdD.js → TreasuryTaxLetterPage-DsmLrBId-CRVnttNh.js} +1 -1
  180. package/dist/assets/{TreasuryTransferOrReviewPage-Dzq-FxSM-xSwgnlQS.js → TreasuryTransferOrReviewPage-WB0pVkO6-BWBLW8Tp.js} +13 -13
  181. package/dist/assets/{TrendChart-B_5D-Zud-CJGzPrRj.js → TrendChart-CWR5JV7S-Bu3AQa_8.js} +1 -1
  182. package/dist/assets/{TrendWithTransactions-mI_El5D1-BVyR_3Fo.js → TrendWithTransactions-D9x71aZs-CM8kaEfz.js} +1 -1
  183. package/dist/assets/{UncategorizedAccountsMappingPage-LQeq8Gdv-n_vWC-so.js → UncategorizedAccountsMappingPage-Tx1NEXyX-DoWK8o5r.js} +1 -1
  184. package/dist/assets/{UnitIntegrationPage-XOWqGHla-BZ95dO5C.js → UnitIntegrationPage-aTpJwSQj-BYrPkyiL.js} +1 -1
  185. package/dist/assets/{UploadAdditionalDocumentOverlay-DhXRLBEg-BdwkpQvO.js → UploadAdditionalDocumentOverlay-BVMdCZ9e-BITtYlPW.js} +1 -1
  186. package/dist/assets/Vendor2FAPopup-BtVySDI--nsMiWnZu.js +1 -0
  187. package/dist/assets/{VendorACHDetailsPage-CswCvAFH-Dy_DyxN4.js → VendorACHDetailsPage-Cx9VUYTN-CUP3Cq5s.js} +1 -1
  188. package/dist/assets/{VendorDetailPage-CEX7xMIN-BmFNmhWb.js → VendorDetailPage-BTBlddyH-Bc_YJfHo.js} +6 -6
  189. package/dist/assets/{VendorDomesticWireDetailsPage-DxrSjlTR-Bu1va64U.js → VendorDomesticWireDetailsPage-DIQg-f5b-Bwf6L3re.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-q1gQ8keD-l7qrKyA8.js → VendorFiling1099EditablePage-CZzpO5dU-BLT7WxiF.js} +8 -8
  191. package/dist/assets/{VendorFirstReviewPage-D9ogNmAK-C3g7z5qc.js → VendorFirstReviewPage-_Bf2O8Hk-B9tTYmRJ.js} +1 -1
  192. package/dist/assets/{VendorInternationalWireDetailsPage-Ct689KuY-DCwtWCEl.js → VendorInternationalWireDetailsPage-DmM691ao-Dzdr5mG2.js} +1 -1
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-W0s1zQNC-BM0C0ziQ.js → VendorInternationalWireSwiftDetailsPage-CmfDU583-Dk7aONaM.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-C13Z2HN9-C3emmS_D.js → VendorsAccountsSection-VX_qjrvm-R24t7Q7V.js} +4 -4
  195. package/dist/assets/{VerifyDevice-C27gEWkZ-Bd6cyY--.js → VerifyDevice-pndtId1R-C8OsQHlo.js} +3 -3
  196. package/dist/assets/{VideoPlayer-ByyqUuhG-BSXeTxMk.js → VideoPlayer-Cv2VluI6-D2yBmBgw.js} +1 -1
  197. package/dist/assets/{VideoPopup-DJrQQTPq-B81ilqru.js → VideoPopup-DwltINTO-0GPyihNZ.js} +1 -1
  198. package/dist/assets/{WarningsDrawerPage-B3Ht3VnM-Bsz-Tz3J.js → WarningsDrawerPage-I6fXTo8V-B0kNeHBS.js} +1 -1
  199. package/dist/assets/{ZeniAccountDetailPage-egmysAfI-B5QFTFx1.js → ZeniAccountDetailPage-BhqYqyk--DeI4__gE.js} +5 -5
  200. package/dist/assets/{ZeniAccountListViewPage-q_v2FogF-D_UNRleH.js → ZeniAccountListViewPage-M7S_ZBj4-94TU34gP.js} +1 -1
  201. package/dist/assets/{ZeniAccountNavBarPieces-HNIht0FM-CJCYTYns.js → ZeniAccountNavBarPieces-Crjx7iNX-DK8JxCJS.js} +2 -2
  202. package/dist/assets/{ZeniAccountPromoPage-CzncR6vK-BEKkuPuQ.js → ZeniAccountPromoPage-rK7P_Dpk-DmoLuwn8.js} +1 -1
  203. package/dist/assets/{ZeniAccountSetupPage-TcdzEL_V-C2CFXEp_.js → ZeniAccountSetupPage-B8yrjDVW-gPUnEzAZ.js} +1 -1
  204. package/dist/assets/{ZeniCopyright-B7Q6IUGC-CXMr85Qq.js → ZeniCopyright-BDsnkVlH-C00Fssys.js} +1 -1
  205. package/dist/assets/{ZeniTransferAmountSlider-Dmf5xxv4-Dpr9CnoV.js → ZeniTransferAmountSlider-BCVTdEWO-p69HMFsD.js} +1 -1
  206. package/dist/assets/analyticsHelper-CS2u9ax9.js +1 -0
  207. package/dist/assets/{analyticsHelper-or1KkBWk-fKfUVxR4.js → analyticsHelper-D8CGsPLU-DJI9oEaD.js} +1 -1
  208. package/dist/assets/{chartTypes-DCvOVjlS-Byyz5YpX.js → chartTypes-DLnePN0T-B_54UqyM.js} +1 -1
  209. package/dist/assets/{commonDimensions-C32v1F7H-73JTdKL8.js → commonDimensions-CWOH4KIa-zIW9i9kk.js} +1 -1
  210. package/dist/assets/{detailCommon-CRAGrqoO-DD6StmxB.js → detailCommon-COLWOJB--3sJPi-qA.js} +1 -1
  211. package/dist/assets/{downloadPdf-D7p3yKmg-DnkIBRMw.js → downloadPdf-DmVZhHLH-D1xNlFUJ.js} +1 -1
  212. package/dist/assets/{index-TYkG9rxW.js → index-MAXVX6UR.js} +1725 -1741
  213. package/dist/assets/{lodash-B66NTFTY.js → lodash-D52QloPU.js} +6 -6
  214. package/dist/assets/{mapLoadingInProgressToTreeNode-CRwG2DSD-DozMx8Qu.js → mapLoadingInProgressToTreeNode-DzagCSPK-Df3QAuQq.js} +1 -1
  215. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C9O-C2dp-CWK7pK5S.js → mapSectionWithAcOnlyToTreeNode-gKc2xWyG-DTjSgiEj.js} +1 -1
  216. package/dist/assets/{mapSpacerToTreeNode-5aJk-sLn-C_5ehzQk.js → mapSpacerToTreeNode-toSXbVwB-B0PNlKW1.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-CnviLujI-C3yLK1bp.js → mapTimeframeBalancesToTreeNode-D0Bib2dl-Cgs41-OD.js} +1 -1
  218. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv4d4PqE-SXM8J_jw.js → mapTimeframeBalancesToTreeNode-D63QAMZm-BDtNdJWW.js} +1 -1
  219. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-BrwdtkMi.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BuAL-Z9U-Ceeq3tsz.js} +1 -1
  220. package/dist/assets/{toCOABalancesWithID-B3yVGPrV-CxcOLkAO.js → toCOABalancesWithID-D-AHYPZY-Bomk_rrT.js} +1 -1
  221. package/dist/assets/{toChartData-DEW0iT7T-DY_WveEO.js → toChartData-BIN4xqGz-BcU_F8Ix.js} +1 -1
  222. package/dist/assets/{treasuryColorHelper-13LJ_xhk-DZAJRVzv.js → treasuryColorHelper--7Rf6Fm8-BdEMhZbj.js} +1 -1
  223. package/dist/assets/{uploadAttachment-DVy2pZeJ-DRTnRPP6.js → uploadAttachment-DwI0nG8D-VCODDzfq.js} +7 -7
  224. package/dist/assets/{uploadReceipts-Dp1dvCjf-DlPrtBK4.js → uploadReceipts-9DTOr0BG-pwNYcimh.js} +1 -1
  225. package/dist/index.html +1 -1
  226. package/package.json +6 -9
  227. package/dist/assets/AccountRow-Be3LIHO--BhldzD55.js +0 -298
  228. package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-DM3MDxim.js +0 -1
  229. package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-Dxcj4pSI.js +0 -865
  230. package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-CBoXf2Y_.js +0 -1650
  231. package/dist/assets/ReimbursementDetailPage-AvqEBxbz-BX8VzCE_.js +0 -314
  232. package/dist/assets/SignInScreen-BSpw7NT9.js +0 -1
  233. package/dist/assets/Vendor2FAPopup-BfqIHZBb-ClbfqMql.js +0 -1
  234. package/dist/assets/analyticsHelper-CE-cGidw.js +0 -1
@@ -0,0 +1,865 @@
1
+ import{aP as ai,c as bt,ax as ft,aa as en,az as Ci,l as ee,O as me,aC as tn,q as Ie,gr as Zn,gt as Xn,gu as eo,j as t,gN as to,ad as nn,cD as li,cE as on,cF as an,aM as q,o as i,y as c,bF as ki,bs as io,dN as no,gv as oo,gG as rn,gB as Ii,aQ as ln,ap as sn,gC as ao,eR as _e,gO as At,ff as si,P as xt,gP as ro,h as j,A as cn,ar as ci,u as a,bB as lo,gE as so,cT as co,eY as di,gQ as zt,fu as fe,fw as xe,cV as ui,d3 as ct,eD as uo,ft as dn,C as Rt,cY as un,cX as Xe,db as st,ai as mi,gR as mo,fG as po,cS as ho,aU as Di,bA as go,b9 as mn,M as yo,eC as bo,b6 as Bt,gw as fo,c7 as pn,b as pi,H as hn,dd as gn,cw as Mt,fa as xo,b8 as wo,dh as So,fB as $o,am as hi,n as Ti,c5 as yn,b1 as ji,da as vo,an as Co,c$ as bn,aN as ko,gS as fn,gT as ri,gm as Pi,gU as Ot,d9 as Io,gq as Do,bP as To,d8 as jo}from"./index-MAXVX6UR.js";import{b as v,n,w as vt}from"./vendor-Bs1fkIUX.js";import{_ as Po}from"./liveblocks-8ht9CoL5.js";import xn from"./InvoiceUploadSection-cXNOY5jR-DGuQgS61.js";import{r as Ro,f as Lt,d as yt,p as gi,u as Ri,h as ve}from"./types-DyvtCprH-BcZYcgaq.js";import{I as Oo}from"./LabeledCreatableSingleSelectField-9q4Lqszf-Csk7xXRk.js";import{S as Lo}from"./CurrencySelectField-yIymL1et-BBkhU934.js";import{K as Ao}from"./SetUpDefaultSection-CR4EJd0L-DR8b1nlJ.js";import{e as zo}from"./BankAccountSection-ByfDYmEM-WCmaTn1f.js";import{W as Bo,F as Mo}from"./BankAccountWarningSection-BTCdQgZV-Bb72qOHU.js";import{o as Fo}from"./radio-default-CiSgisfh-Cuu8ymvq.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-cQYYQPTZ.js";import"./AttachmentView-D1SPuem6-CmH4xHN2.js";import"./uploadReceipts-9DTOr0BG-pwNYcimh.js";const Je=(e,o)=>`${e}.${o}`,Oi={largeLabelWidth:new c(120,120,160),paddingBottom:new c(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Pe}},dateFormat:Eo,common:No}=me.getLocalizedStrings(),Wo=({lineIndex:e,mileage:o,classList:r,defaultCurrency:u,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:S,companyMileageConfigInfo:b,reimbursementId:l,classHierarchyList:k})=>{const f=Ie(),s=ft(),g=zt(),w=`dashboard_${s.currentTenant?.companyId}`,P=bt(),{getValues:T}=ct(),$=No.strings.empty,K=T(Je(p,"distanceInMiles")),L=Oi.largeLabelWidth.value(f),I={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},E=A=>r.filter(_=>_.classId===A)[0]?.accountingClassNumber,te=r.find(A=>A.classId===o.class),pe={valueContainer:A=>({...A,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.transactionDate`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("transactionDate",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(bn,{isDisabled:m,label:{label:Pe.transactionDate,width:L},style:{paddingBottom:Oi.paddingBottom.valuePx(f),width:"auto"},dateField:{name:Je(p,"transactionDate"),placeholder:Pe.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Eo.visual.defaultInput,autoComplete:"off",maxDate:ee.dateNow(),registerOptions:{required:!0,validate:A=>!!A}}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(Pi,{isDisabled:S?"disabled":void 0,style:{width:"auto"},label:{label:Pe.distanceInMiles,width:L},formattedTextField:{type:"number",name:Je(p,"distanceInMiles"),placeholder:Pe.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.amount`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("amount",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(Pi,{isDisabled:"disabled",label:{label:Pe.amount,width:L},formattedTextField:{type:"number",name:Je(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:Xe(Pe.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:K!=null&&b?.mileageUnitAmount!=null?`${u.currencySymbol}${b?.mileageUnitAmount} per mile x ${K}`:void 0})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.memo`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("memo",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(ui,{isDisabled:m,label:{label:Pe.memo,width:L},style:{width:"auto"},text:{type:"text",name:Je(p,"memo"),placeholder:Xe(Pe.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:fn}}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.class`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("class",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(ri,{isLoading:!1,label:{label:Pe.department,width:L},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Je(p,"class"),placeholder:Xe(Pe.department),valueToId:A=>E(A),defaultValue:{selectedOption:te?.classId,allOptions:_e(k,[])},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:A=>!!A.selectedOption}},style:{borderBottom:`1px solid ${P.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Je(p,"class"))})]})},Ct=n.div`
2
+ display: flex;
3
+ flex: 1;
4
+ background-color: ${e=>e.theme.colors.grey3};
5
+ min-height: 1px;
6
+ max-height: 1px;
7
+ `,Li={amounWidth:new c(50,30),currencyWidth:new c(50,70)};function Uo({name:e,placeHolder:o,defaultValue:r,isDisabled:u,showAmountCurrencyError:p,style:C,allCurrencies:m}){const[S,b]=v.useState(!1),{getValues:l,formState:{errors:k}}=ct(),f=bt(),s=Ie(),g=u!=null,w=l(e),P=`${w?.amount} ${w?.currency?.selectedOption}`,T=st(k,e)&&Ot(k,`${e}.amount`)!=null,$=st(k,e)&&Ot(k,`${e}.currency`)!=null,K=p===!0?T||$:!1,L=!K&&S===!1;return v.useEffect(()=>{L===!1&&b(!0)},[L]),t.jsx(sn,{onClickAway:()=>g===!1&&!K&&b(!1),children:t.jsx(_o,{style:C,isDisabled:g,tabIndex:L&&!g?0:void 0,onClick:()=>g===!1&&b(!0),"data-testid":q("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[w?.amount!=null?t.jsx(Ai,{className:"amount-field",isVisible:L,children:P}):t.jsx(Ai,{className:"amount-field amount-placeholder",isVisible:L,children:o?.name}),t.jsxs(Vo,{isVisible:!L,children:[t.jsx(Do,{type:"number",name:`${e}.amount`,defaultValue:r?.amount,placeholder:o?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:I=>I!=null?I>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:u,style:{display:"flex",flexGrow:1,width:Li.amounWidth.valuePercentage(s),cursor:"inherit"},bgColor:f.colors.background,isFieldError:T,shouldHighlightZeroAmount:!0}),L?null:t.jsx(Ho,{}),t.jsx(Lo,{name:`${e}.currency`,registerOptions:{validate:I=>I!=null&&I.selectedOption!=null},defaultValue:{allOptions:m.map(I=>({label:s==="small"?I.currencyCode:`${I.currencyCode} - ${I.currency}`,value:I.currencyCode,countryCode:I.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:f.colors.background},isDisabled:u,style:{width:Li.currencyWidth.valuePercentage(s),flexGrow:1},isOptionRemovable:!1})]})]})})})}const Vo=n.div`
8
+ display: ${e=>e.isVisible?"flex":"none"};
9
+ width: 100%;
10
+ input {
11
+ text-align: left;
12
+ }
13
+ `,_o=n.div`
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: flex-end;
17
+ position: relative;
18
+ width: 100%;
19
+ background-color: ${e=>e.theme.colors.grey5};
20
+ outline: none;
21
+ outline-width: 0;
22
+ input {
23
+ text-align: right;
24
+ }
25
+ `,Ho=n.div`
26
+ background-color: ${e=>e.theme.colors.grey5};
27
+ min-width: ${i.sp3};
28
+ `,Ai=n(mn)`
29
+ display: ${e=>e.isVisible?"flex":"none"};
30
+ padding: 0 ${i.sp3};
31
+ border-radius: ${i.sp1};
32
+ height: 100%;
33
+ align-items: center;
34
+ width: 100%;
35
+ justify-content: flex-end;
36
+ color: ${e=>e.theme.colors.primary};
37
+ &.amount-placeholder {
38
+ color: ${e=>e.theme.colors.grey1};
39
+ }
40
+ `,Fe={width:new c(343,580,726),height:new c(a[6],a[6]),controlHeight:new c(a[6],a[6]),paddingTopBottom:new c(a[2],a[2]),marginRight:new c(a[2],a[2]),labelMarginLeft:new c(a[3],a[4]),labelMarginRight:new c(a[3],a[4]),labelMarginTop:new c(a[2],a[2])},wn={infoLabel:new pi("extraSmallRegular","smallRegular")};function qo({isDisabled:e,label:o,currencyAmountField:r,style:u,errorInfoLabel:p,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:S,additionalInfoLabel:b,showAdditionalInfoLabel:l=!0}){const k=Ie(),{formState:{errors:f}}=ct(),s=st(f,r.name)&&Ot(f,`${r.name}.amount`)!=null,g=st(f,r.name)&&Ot(f,`${r.name}.currency`)!=null,w=r.showAmountCurrencyError===!0?s||g:!1,P=s||g||w,T=()=>{if(C===!0)return t.jsx(Qo,{children:t.jsx(xt,{size:"Small",start:!0})});if(l&&b||w){let $=null;return m===!0&&l&&b&&($=t.jsx(yn,{placement:k==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Jo,{children:S??""}),children:t.jsx(Xo,{children:t.jsx(ea,{})})})),t.jsxs(Zo,{size:k,isError:w,hasToolTip:m,children:[$,b]})}};return t.jsxs(Ko,{size:k,style:u,isDisabled:e!=null,isAmountError:s,isCurrencyError:g,"data-testid":q("labeled-currency-amount-field",r.name),children:[t.jsx(Io,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:Fe.labelMarginLeft.value(k),marginRight:Fe.labelMarginRight.value(k),marginTop:Fe.labelMarginTop.value(k),width:o.width??"auto"}}),t.jsxs(Yo,{labelWidth:o.width,children:[t.jsx(Uo,{...r,isDisabled:e,style:{flexGrow:1,height:Fe.controlHeight.value(k)}}),P?t.jsx(Go,{size:k,hasError:P,children:p}):null,T()]})]})}const Ko=n.div`
41
+ display: flex;
42
+ flex-direction: row;
43
+ align-items: flex-start;
44
+ background-color: ${e=>e.theme.colors.grey5};
45
+ width: ${e=>Fe.width.valuePx(e.size)};
46
+ min-height: ${e=>Fe.height.valuePx(e.size)};
47
+ padding-right: ${e=>Fe.marginRight.valuePx(e.size)};
48
+ padding-top: ${e=>Fe.paddingTopBottom.valuePx(e.size)};
49
+ padding-bottom: ${e=>Fe.paddingTopBottom.valuePx(e.size)};
50
+
51
+ :first-of-type {
52
+ border-top-left-radius: inherit;
53
+ border-top-right-radius: inherit;
54
+ }
55
+
56
+ :last-of-type {
57
+ border-bottom-left-radius: inherit;
58
+ border-bottom-right-radius: inherit;
59
+ }
60
+
61
+ &:focus-within {
62
+ z-index: 2;
63
+ outline: 1px solid ${e=>e.theme.colors.primary};
64
+
65
+ .amount-field {
66
+ background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.theme.colors.background};
67
+ }
68
+
69
+ input:nth-of-type(1) {
70
+ background-color: ${e=>e.isAmountError?j.importantLight:e.theme.colors.background};
71
+ }
72
+
73
+ input:nth-of-type(2) {
74
+ background-color: ${e=>e.isCurrencyError?j.importantLight:e.theme.colors.background};
75
+ }
76
+ }
77
+ input {
78
+ text-align: left;
79
+ background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.theme.colors.background};
80
+ }
81
+
82
+ input:nth-of-type(1) {
83
+ background-color: ${e=>e.isAmountError?j.importantLight:e.theme.colors.background};
84
+ }
85
+
86
+ input:nth-of-type(2) {
87
+ background-color: ${e=>e.isCurrencyError?j.importantLight:e.theme.colors.background};
88
+ }
89
+
90
+ &:hover {
91
+ z-index: 1;
92
+ outline: 1px solid
93
+ ${e=>e.isDisabled===!0?e.theme.colors.grey3:e.theme.colors.primary};
94
+ input,
95
+ .amount-field {
96
+ background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.theme.colors.background};
97
+ }
98
+
99
+ input:nth-of-type(1) {
100
+ background-color: ${e=>e.isAmountError?j.importantLight:e.theme.colors.background};
101
+ }
102
+
103
+ input:nth-of-type(2) {
104
+ background-color: ${e=>e.isCurrencyError?j.importantLight:e.theme.colors.background};
105
+ }
106
+ }
107
+ `,Go=n.label`
108
+ color: ${e=>e.hasError===!0?j.important:e.additionalInfoTextColor!=null?e.additionalInfoTextColor:e.theme.colors.grey1};
109
+ width: auto;
110
+ ${e=>`${wn.infoLabel.style(e.size)}`};
111
+ padding-right: ${i.sp3};
112
+ text-align: right;
113
+ `,Yo=n.div`
114
+ display: flex;
115
+ width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
116
+ justify-content: flex-end;
117
+ flex-direction: column;
118
+ position: relative;
119
+ `,Jo=n(mi)`
120
+ padding: 12px;
121
+ color: ${e=>e.theme.colors.grey1};
122
+ background: ${e=>e.theme.colors.overlayColor};
123
+ border-radius: ${i.sp1};
124
+ `,Qo=n.div`
125
+ padding-right: ${i.sp3};
126
+ padding-top: ${i.sp1};
127
+ display: flex;
128
+ justify-content: flex-end;
129
+ `,Zo=n.label`
130
+ display: flex;
131
+ justify-content: flex-end;
132
+ color: ${e=>e.isError?j.important:e.theme.colors.hero};
133
+ &:hover {
134
+ color: ${e=>e.isError?j.importantDark:e.theme.colors.primary};
135
+ }
136
+ ${e=>`${wn.infoLabel.style(e.size)}`};
137
+ padding-right: ${i.sp3};
138
+ text-align: right;
139
+ margin-top: ${e=>e.hasToolTip===!0?i.sp1:i.sp0};
140
+ `,Xo=n.div`
141
+ display: flex;
142
+ margin-right: ${i.sp2};
143
+ margin-top: 2px;
144
+ align-items: center;
145
+ `,ea=n(To)`
146
+ width: ${i.sp3};
147
+ height: ${i.sp3};
148
+ color: inherit;
149
+ `,Be=(e,o)=>`${e}.${o}`,jt={largeLabelWidth:new c(120,120,160),smallLabelWidth:new c(85,85,160),paddingBottom:new c(a[3],a[2]),autoFillIconLeft:new c(-8,-24)},{dateFormat:ta,common:Sn,spendManagement:{reimbursement:{reimbursementDetail:de}}}=me.getLocalizedStrings(),{strings:{empty:oe}}=Sn,ia=(e,o)=>{const r=e.slice(1);let u=!1;return r.forEach(p=>{p.account?.qboId!=null&&p.account?.qboId===o&&(u=!0)}),u},na=e=>e.charAt(0).toLowerCase()+e.slice(1),oa=({lineIndex:e,outOfPocket:o,accountList:r,classList:u,merchantList:p,isAddReimbursementDisabled:C,sectionId:m,isReimbursementCommentingEnabled:S,isDisabled:b,autoFields:l=[],accountsHierarchyList:k,classHierarchyList:f,reimbursementId:s,tentativeMerchantName:g,allCurrencies:w,uncategorizedAccounts:P})=>{const T=Ie(),$=ft(),K=zt(),L=bt(),I=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!ia(o.recommendations,o.account),E=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,te=jt.largeLabelWidth.value(T),pe=jt.smallLabelWidth.value(T),A=p.map(R=>R.id??oe),_={application:"dashboard",companyId:$.currentTenant?.companyId,tab:"reimbursement",entityId:s},Y=`dashboard_${$.currentTenant?.companyId}`,H=R=>p.find(ge=>ge.id===R)?.name??R,ie=r.find(R=>R.qboId===o.account),X=R=>[P.expense?.qboId,P.income?.qboId].includes(R),we=u.find(R=>R.classId===o.class),he={valueContainer:R=>({...R,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},re=R=>r.filter(ge=>ge.qboId===R)[0]?.qboId,J=R=>u.filter(ge=>ge.classId===R)[0]?.accountingClassNumber,le=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",na(o?.recommendedAccount?.reason??oe)),Oe=At(k,o.recommendations);return t.jsxs(t.Fragment,{children:[g!=null||l.includes("merchant")?t.jsx(ot,{children:t.jsx(rt,{windowSize:T,children:t.jsx(at,{})})}):null,t.jsx(fe,{isThreadAllowed:S&&s!=null,dashboardTabKey:xe({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:Y,companyId:$.currentTenant?.companyId??oe,companyName:$.currentTenant?.companyName??oe,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{..._,entityType:`reimbursement.details.${ve("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:K?.sharedRef?.contentWrapperRef,children:t.jsx(Oo,{isDisabled:b!=null||C?"disabled":void 0,label:{label:de.merchant,width:te},style:{width:"auto"},creatableSingleSelectField:{name:Be(m,"merchant"),placeholder:de.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??oe,allOptions:A},registerOptions:{required:!0,validate:R=>!!R.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:H})}),t.jsx(kt,{}),l.includes("transactionDate")?t.jsx(ot,{children:t.jsx(rt,{windowSize:T,children:t.jsx(at,{})})}):null,t.jsx(fe,{isThreadAllowed:S&&s!=null,dashboardTabKey:xe({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:Y,companyId:$.currentTenant?.companyId??oe,companyName:$.currentTenant?.companyName??oe,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{..._,entityType:`reimbursement.details.${ve("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:K?.sharedRef?.contentWrapperRef,children:t.jsx(bn,{isDisabled:b,label:{label:de.transactionDate,width:te},style:{paddingBottom:jt.paddingBottom.valuePx(T),width:"auto"},dateField:{name:Be(m,"transactionDate"),placeholder:de.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:ta.visual.defaultInput,autoComplete:"off",maxDate:ee.dateNow(),registerOptions:{required:!0,validate:R=>!!R}}})}),t.jsx(kt,{}),l.includes("amount")?t.jsx(ot,{children:t.jsx(rt,{windowSize:T,isTwoLined:!0,children:t.jsx(at,{})})}):null,t.jsx(fe,{isThreadAllowed:S&&s!=null,dashboardTabKey:xe({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:Y,companyId:$.currentTenant?.companyId??oe,companyName:$.currentTenant?.companyName??oe,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{..._,entityType:`reimbursement.details.${ve("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:K?.sharedRef?.contentWrapperRef,children:t.jsx(qo,{isDisabled:b!=null||C?"disabled":void 0,label:{label:de.amount,width:pe},style:{width:"auto"},currencyAmountField:{style:{height:i.sp6},name:`${m}.amount`,defaultValue:{amount:o.amount.amount,currencyCode:o.amount.currencyCode,currencySymbol:o.amount.currencySymbol},placeHolder:{amount:de.addAmount,name:de.addAmount},allCurrencies:w,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:de.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:!tn(o.homeCurrencyDetails,o.amount)&&o.amount.currencyCode!==Sn.currency.currencyCode&&o.homeCurrencyDetails?.amount!==0?`${ko("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`:void 0})}),t.jsx(kt,{}),l.includes("memo")?t.jsx(ot,{children:t.jsx(rt,{windowSize:T,children:t.jsx(at,{})})}):null,t.jsx(fe,{isThreadAllowed:S&&s!=null,dashboardTabKey:xe({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:Y,companyId:$.currentTenant?.companyId??oe,companyName:$.currentTenant?.companyName??oe,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{..._,entityType:`reimbursement.details.${ve("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:K?.sharedRef?.contentWrapperRef,children:t.jsx(ui,{isDisabled:b,label:{label:de.memo,width:te},style:{width:"auto"},text:{type:"text",name:Be(m,"memo"),placeholder:Xe(de.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:fn}}})}),t.jsx(kt,{}),l.includes("account")?t.jsx(ot,{children:t.jsx(rt,{windowSize:T,children:t.jsx(at,{})})}):null,t.jsx(fe,{isThreadAllowed:S&&s!=null,dashboardTabKey:xe({type:"details",key:`${e}.out_of_pocket.account`}),roomId:Y,companyId:$.currentTenant?.companyId??oe,companyName:$.currentTenant?.companyName??oe,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{..._,entityType:`reimbursement.details.${ve("account",e,"out_of_pocket")}`},fieldThreadTargetElement:K?.sharedRef?.contentWrapperRef,children:t.jsx(ri,{label:{label:de.category,width:te},groupedSingleSelectField:{shouldShowChevronIcon:I||E,name:Be(m,"account"),placeholder:de.categoryPlaceholder,valueToId:R=>re(R),defaultValue:{selectedOption:ie?.qboId??ie?.accountId,allOptions:Oe},style:{width:"100%"},customStyleConfig:he,registerOptions:{required:!0,validate:R=>!!R.selectedOption}},disableCurrentOption:X,style:{borderBottom:`1px solid ${L.colors.grey3}`,minHeight:i.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:I?{tooltipProps:{text:le},label:{label:o.recommendedAccount?.accountName??oe},checkBoxField:{name:Be(m,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:E?{label:{label:o.retainedAccount?.accountName??oe},checkBoxField:{name:Be(m,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},Be(m,"account"))}),l.includes("class")?t.jsx(ot,{children:t.jsx(rt,{windowSize:T,children:t.jsx(at,{})})}):null,t.jsx(fe,{isThreadAllowed:S&&s!=null,dashboardTabKey:xe({type:"details",key:`${e}.out_of_pocket.class`}),roomId:Y,companyId:$.currentTenant?.companyId??oe,companyName:$.currentTenant?.companyName??oe,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{..._,entityType:`reimbursement.details.${ve("class",e,"out_of_pocket")}`},fieldThreadTargetElement:K?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(ri,{isLoading:!1,label:{label:de.department,width:te},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Be(m,"class"),placeholder:Xe(de.department),valueToId:R=>J(R),defaultValue:{selectedOption:we?.classId,allOptions:_e(f,[])},style:{width:"100%"},customStyleConfig:he,registerOptions:{required:!0,validate:R=>!!R.selectedOption}},style:{borderBottom:`1px solid ${L.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Be(m,"class"))})]})},ot=n.span`
150
+ position: relative;
151
+ `,at=n(di)`
152
+ color: ${e=>e.theme.colors.primary};
153
+ width: ${i.sp3};
154
+ height: ${i.sp3};
155
+ `,rt=n.div`
156
+ z-index: 2;
157
+ left: ${e=>jt.autoFillIconLeft.valuePx(e.windowSize)};
158
+ position: absolute;
159
+ top: ${e=>e.isTwoLined===!0?i.sp5:"22px"};
160
+ `,kt=n.div`
161
+ display: flex;
162
+ flex: 1;
163
+ background-color: ${e=>e.theme.colors.grey3};
164
+ min-height: 1px;
165
+ max-height: 1px;
166
+ `,Qe=(e,o)=>`${e}.${o}`,Ee={paddingTop:new c(a[5],a[4]),marginBottom:new c(a[3],a[3]),labelPaddingLeft:new c(a[3],a[4]),buttonWidth:new c(70,70),containerRightMargin:new c(a[3],a[8]),containerLeftMargin:new c(a[3],a[6]),deleteConfirmationTextMarginBottom:new c(a[2],a[0])},G=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,aa=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:u,lineIndex:p,accountList:C,classList:m,merchantList:S,hasFile:b,defaultCurrency:l,hasMultipleLineItems:k,fileRequiredLineIds:f,duplicateLineDetails:s,remiStatus:g,sectionId:w,isDisabled:P,isReimbursementCommentingEnabled:T,isAddReimbursementDisabled:$,style:K,autoFields:L=[],analytics:I,reimbursementId:E,tentativeMerchantName:te,companyMileageConfigInfo:pe,uncategorizedAccounts:A,removeDuplicateReimbursementForLine:_,scrollToSection:Y,onDuplicateLineClick:H,onRemoveReimbursement:ie,clearTentativeNameForLine:X,allCurrencies:we,accountsHierarchyList:he,classHierarchyList:re})=>{const J=Ie(),le=ft(),Oe=zt(),R=me.getLocalizedStrings().common.strings.empty,ge={application:"dashboard",companyId:le.currentTenant?.companyId,tab:"reimbursement",entityId:E},se=`dashboard_${le.currentTenant?.companyId}`,{getValues:Ne}=ct(),[Le,Ae]=v.useState(!1),Se=Ne(Qe(w,"reimbursementType"));return t.jsxs(ma,{style:K,windowSize:J,children:[t.jsxs(la,{hasFile:b,windowSize:J,showDeleteConfirmation:Le,children:[t.jsx(ha,{windowSize:J,children:k?`#${p+1} ${G.reimbursement}`:G.reimbursement}),Le?t.jsxs(ua,{windowSize:J,children:[t.jsx(da,{windowSize:J,children:G.deleteConfirmation}),t.jsxs(ra,{children:[t.jsx(Ti,{label:G.buttons.cancel,onClick:()=>Ae(!1),style:{width:Ee.buttonWidth.value(J),marginLeft:J==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":q("delete-remi-button",G.buttons.cancel)}),t.jsx(Ti,{label:G.buttons.remove,onClick:()=>{I?.trackReimbursementDeleteReimbursementLine(e.lineId,E),X?.(e.lineId??"1"),Ae(!1),_(e.lineId),ie(p)},style:{width:Ee.buttonWidth.value(J)},size:"small",variant:"danger","data-testid":q("delete-remi-button",G.buttons.remove)})]})]}):k&&(u==="draft"||g==="rejected")?t.jsx(sa,{className:"deleteIconWrapper",windowSize:J,onClick:()=>Ae(!0),"data-testid":q("delete-remi-button",e.lineId),children:t.jsx(yn,{enterDelay:600,title:G.deleteReimbursement,placement:"top-end",children:t.jsx(ca,{})})}):null]}),f.includes(e.lineId)?t.jsx(rn,{title:G.missingReceipt,description:G.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs(ga,{windowSize:J,children:[s?.duplicateLineId!=null?t.jsxs(pa,{children:[G.thisExpense," ",s.isDuplicateWithinTransaction?t.jsx(zi,{"data-testid":q("view-duplicate-transaction-expense"),onClick:()=>(I?.trackReimbursementViewDuplicateExpense(!0,E),Y(s.duplicateLineId)),children:G.viewOriginalExpense}):t.jsx(zi,{"data-testid":q("view-duplicate-expense"),onClick:()=>{s.duplicateTransactionId!=null&&s.duplicateLineId!=null&&(I?.trackReimbursementViewDuplicateExpense(!1,E),H(s.duplicateTransactionId,s.duplicateLineId))},children:G.viewOriginalExpense})]}):null,t.jsx(fe,{isThreadAllowed:T&&E!=null,dashboardTabKey:xe({type:"details",key:Se===G.mileageKey?`${p}.mileage.reimbursementType`:`${p}.out_of_pocket.reimbursementType`}),roomId:se,companyId:le.currentTenant?.companyId??R,companyName:le.currentTenant?.companyName??R,entityId:E,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${ve("reimbursementType",p,Se===G.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:Oe?.sharedRef?.contentWrapperRef,style:{borderRadius:s?.duplicateLineId!=null?"0 0 0 0":`${i.sp2} ${i.sp2} 0 0`},children:t.jsxs(ba,{isDisabled:P!=null,haveBorderRadius:s?.duplicateLineId==null,children:[t.jsx(ji,{isDisabled:P!=null||$?"disabled":void 0,isContainerClickable:!0,label:{label:G.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ee.labelPaddingLeft.value(J),borderTopLeftRadius:"inherit"},showOutline:!(T&&E!=null),radioField:{name:Qe(w,"reimbursementType"),id:`${Qe(w,"reimbursementType")}.${G.outOfPocketKey}`,value:G.outOfPocketKey}}),t.jsx(ya,{}),t.jsx(ji,{isDisabled:P!=null||$?"disabled":void 0,isContainerClickable:!0,label:{label:G.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ee.labelPaddingLeft.value(J),borderTopRightRadius:"inherit"},showOutline:!(T&&E!=null),radioField:{name:Qe(w,"reimbursementType"),id:`${Qe(w,"reimbursementType")}.${G.mileageKey}`,value:G.mileageKey}})]})}),t.jsx(fa,{}),Se===G.outOfPocketKey?t.jsx(oa,{lineIndex:p,reimbursementId:E,uncategorizedAccounts:A,isReimbursementCommentingEnabled:T,isDisabled:P,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?ee.zeniDate(e.outOfPocket.transactionDate.toDateString()):void 0,account:e.outOfPocket.account.selectedOption,isConvertedCurrencyLoading:o?.fetchState==="In-Progress",isRecommendationLoading:r==="In-Progress",homeCurrencyDetails:e.homeCurrencyConversions,class:e.outOfPocket.class.selectedOption,amount:{amount:e.outOfPocket.amount?.amount??0,currencyCode:e.outOfPocket.amount?.currencyCode??"USD",currencySymbol:e.outOfPocket.amount?.currencySymbol??"$"},memo:e.outOfPocket.memo,merchant:e.outOfPocket.merchant.selectedOption,recommendations:e.outOfPocket.recommendations,recommendedAccount:e.outOfPocket.recommendedAccount,isCategoryUpdateSelected:e.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:e.outOfPocket.isCategoryFirstTimeAutofilled,retainedAccount:e.outOfPocket.retainedAccount,isRetainedCategorySelected:e.outOfPocket.isRetainedCategorySelected},sectionId:Qe(w,"outOfPocket"),accountList:C,classList:m,autoFields:L,merchantList:S,tentativeMerchantName:te,allCurrencies:we,isAddReimbursementDisabled:$,accountsHierarchyList:he,classHierarchyList:re}):t.jsx(Wo,{lineIndex:p,reimbursementId:E,isReimbursementCommentingEnabled:T,isDisabled:P,mileage:{transactionDate:e.mileage.transactionDate!=null?ee.zeniDate(e.mileage.transactionDate.toDateString()):void 0,class:e.mileage.class.selectedOption,distanceInMiles:e.mileage.distanceInMiles,amount:{amount:e.mileage.amount?.amount??0,currencyCode:e.mileage.amount?.currencyCode??"USD",currencySymbol:e.mileage.amount?.currencySymbol??"$"},memo:e.mileage.memo},classList:m,sectionId:Qe(w,"mileage"),companyMileageConfigInfo:pe,defaultCurrency:l,isAddReimbursementDisabled:$,classHierarchyList:re})]})]})},ra=n.div``,la=n.div`
167
+ //when file is present and it's a small window, we don't have to show the title and delete icon. Delete icon will be displayed inside the invoice title, next to replace
168
+ //https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
169
+ display: ${e=>e.hasFile&&e.windowSize==="small"?"none":"flex"};
170
+ justify-content: ${e=>e.windowSize==="small"?e.showDeleteConfirmation?"center":"flex-end":"space-between"};
171
+ margin-bottom: ${i.sp3};
172
+ align-items: center;
173
+ `,sa=n.div`
174
+ width: ${i.sp3};
175
+ height: ${i.sp3};
176
+ cursor: pointer;
177
+ display: none;
178
+ color: ${e=>e.windowSize==="small"?j.important:e.theme.colors.hero};
179
+ &:hover {
180
+ color: ${j.important};
181
+ }
182
+ `,zi=n.span`
183
+ border-bottom: 1px solid currentColor;
184
+ cursor: pointer;
185
+ `,ca=n(vo)`
186
+ width: ${i.sp3};
187
+ height: ${i.sp3};
188
+ cursor: pointer;
189
+ `,da=n.div`
190
+ margin-bottom: ${e=>Ee.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
191
+ `,ua=n(hi)`
192
+ color: ${e=>e.theme.colors.hero};
193
+ display: flex;
194
+ align-items: center;
195
+ flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
196
+ `,ma=n.div`
197
+ display: flex;
198
+ flex-direction: column;
199
+ padding-top: ${e=>Ee.paddingTop.valuePx(e.windowSize)};
200
+ margin-right: ${e=>Ee.containerRightMargin.valuePx(e.windowSize)};
201
+ margin-left: ${e=>Ee.containerLeftMargin.valuePx(e.windowSize)};
202
+ .deleteIconWrapper {
203
+ ${e=>e.windowSize==="small"&&`
204
+ display: block;
205
+ `}
206
+ }
207
+ &:hover {
208
+ .deleteIconWrapper {
209
+ display: block;
210
+ }
211
+ }
212
+ `,pa=n(Co)`
213
+ padding: ${i.sp2} ${i.sp0} ${i.sp2} ${i.sp4};
214
+ background-color: ${j.alertLight};
215
+ color: ${j.brandColorGoldDark};
216
+ border-top-left-radius: inherit;
217
+ border-top-right-radius: inherit;
218
+ `,ha=n(Bt)`
219
+ color: ${e=>e.theme.colors.primary};
220
+ display: ${e=>e.windowSize==="small"?"none":"unset"};
221
+ `,ga=n.div`
222
+ display: flex;
223
+ flex-direction: column;
224
+ background-color: ${e=>e.theme.colors.grey5};
225
+ border: 1px solid ${e=>e.theme.colors.grey3};
226
+ box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
227
+ border-radius: ${i.sp2};
228
+ margin-bottom: ${e=>Ee.marginBottom.valuePx(e.windowSize)};
229
+ `,ya=n.div`
230
+ background-color: ${e=>e.theme.colors.grey3};
231
+ min-width: 1px;
232
+ max-width: 1px;
233
+ `,ba=n.div`
234
+ display: flex;
235
+ flex-direction: row;
236
+ border-top-left-radius: ${e=>e.haveBorderRadius?"inherit":"unset"};
237
+ border-top-right-radius: ${e=>e.haveBorderRadius?"inherit":"unset"};
238
+ `,fa=n.div`
239
+ display: flex;
240
+ flex: 1;
241
+ background-color: ${e=>e.theme.colors.grey3};
242
+ min-height: 1px;
243
+ max-height: 1px;
244
+ `,xa=(e,o)=>`${e}.${o}`,lt={labelWidth:new c(120,160,160),paddingBottom:new c(a[3],a[3]),paddingTop:new c(12,a[3]),marginBottom:new c(12,a[3]),containerRightMargin:new c(a[3],a[8]),containerLeftMargin:new c(a[3],a[6])},$n=({isReimbursementCommentingEnabled:e,sectionId:o,isDisabled:r,reportTitle:u,reimbursementId:p,style:C})=>{const m=Ie(),S=ft(),b=zt(),l=`dashboard_${S.currentTenant?.companyId}`,k=me.getLocalizedStrings(),f=k.spendManagement.reimbursement.reimbursementDetail,s=k.common.strings.empty,g=lt.labelWidth.value(m);return t.jsxs(wa,{style:C,windowSize:m,children:[t.jsx($a,{windowSize:m,children:f.whatFor}),t.jsx(Sa,{children:t.jsx(fe,{isThreadAllowed:e&&p!=null,dashboardTabKey:xe({type:"details",key:"whatFor"}),roomId:l,companyId:S.currentTenant?.companyId??s,companyName:S.currentTenant?.companyName??s,entityId:p,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:S.currentTenant?.companyId,tab:"reimbursement",entityId:p,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:b?.sharedRef?.contentWrapperRef,style:{borderRadius:i.sp2},children:t.jsx(ui,{isDisabled:r,label:{label:f.reportTitle,width:g},text:{type:"text",name:xa(o,"reportTitle"),placeholder:f.lunchWithClient,defaultValue:u,autoComplete:"off",options:{required:!0,validate:w=>!!w}},style:{width:"auto",borderRadius:i.sp2}})})})]})},wa=n.div`
245
+ display: flex;
246
+ flex-direction: column;
247
+ padding-top: ${e=>lt.paddingTop.valuePx(e.windowSize)};
248
+ padding-bottom: ${e=>lt.paddingBottom.valuePx(e.windowSize)};
249
+ margin-right: ${e=>lt.containerRightMargin.valuePx(e.windowSize)};
250
+ margin-left: ${e=>lt.containerLeftMargin.valuePx(e.windowSize)};
251
+ `,Sa=n.div`
252
+ display: flex;
253
+ flex-direction: column;
254
+ background-color: ${e=>e.theme.colors.grey5};
255
+ border: 1px solid ${e=>e.theme.colors.grey3};
256
+ box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
257
+ border-radius: ${i.sp2};
258
+ `,$a=n(Bt)`
259
+ color: ${e=>e.theme.colors.primary};
260
+ margin-bottom: ${e=>lt.marginBottom.valuePx(e.windowSize)};
261
+ `,M={largeLabelWidth:new c(120,120,220),marginTop:new c(28,8),paymentToMarginTop:new c(0,a[4]),marginBottom:new c(a[5],a[4]),paymentToMarginBottom:new c(12,a[3]),totalMarginBottom:new c(a[3],a[3]),reimbursementSectionLeftMargin:new c(a[3],a[6]),reimbursementSectionRightMargin:new c(a[3],a[8]),invoiceSectionLeftMargin:new c(a[3],a[8]),invoiceSectionRightMargin:new c(a[3],a[6]),rightSectionWidth:new c(100,58),firstOrLastItemHeight:new c(390,760),itemHeight:new c(390,459),duplicateBannerWrapperMarginTop:new c(a[5],a[3]),duplicateBannerWrapperMarginRight:new c(a[3],a[8]),duplicateBannerWrapperMarginBottom:new c(a[5],a[3]),duplicateBannerWrapperMarginLeft:new c(a[3],a[6])},va={total:new pi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:V},billPay:{vendorCreation:{achDetails:It}}},common:{currency:{currencyCode:Dt}}}=me.getLocalizedStrings(),vn=e=>{let o=0,r=Dt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const u=e;o=u.outOfPocket.amount??0,r=u.outOfPocket.currencyCode??Dt}else{const u=e;o=u.outOfPocket.amount?.amount??0,r=u.outOfPocket.amount?.currencyCode??Dt}return(e.homeCurrencyConversions?.currencyCode??Dt)!==r&&(o=e.homeCurrencyConversions?.amount??0),o},Ca=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:r,createDate:u,scheduleDate:p,paymentDate:C,hasDuplicateLine:m,approvedDate:S,isFirstOrLastListItem:b,index:l,reimbursementSectionRef:k,showSkipAutoFill:f,lineData:s,currencyConversionState:g,authParams:w,uploadInvoiceEndPoint:P,accountList:T,classList:$,merchantList:K,remiStage:L,autoFieldsByLineId:I,isReimbursementCommentingEnabled:E,isAutoFieldsExist:te,totalAmount:pe,showTotalAmountLoader:A,totalNumberOfLines:_,defaultCurrency:Y,bankAccounts:H,fileRequiredLineIds:ie,isAddReimbursementDisabled:X,duplicateLineByLineId:we,remiStatus:he,file:re,uncategorizedAccounts:J,reportTitle:le,recommendationFetchState:Oe,tentativeMerchantName:R,paymentTo:ge,analytics:se,companyMileageConfigInfo:Ne,loggedInUserDepartmentId:Le,isSignedInUserReimbursementCreator:Ae,setShowBankAccountPage:Se,setRefByLineId:ze,setCurrentLineIdForUpload:ye,onDuplicateLineClick:De,setUploadedReceiptPayload:dt,removeDuplicateReimbursementForLine:W,onReceiptsUpload:et,scrollToSection:tt,onRemoveReimbursement:We,onAddReimbursement:ke,clearTentativeNameForLine:He,onReplaceClick:Te,onDeleteBankAccount:Ue,updateInvoiceUploadFetchState:Ve,removeFileFromLine:qe,allCurrencies:Ke,accountsHierarchyList:ne,classHierarchyList:it})=>{const{formState:{errors:ut}}=ct(),Ge=v.useRef(null);v.useEffect(()=>(ze(z=>({...z,[`L${s.lineId}`]:Ge.current})),()=>{ze(z=>({...z,[`L${s.lineId}`]:null}))}),[s.lineId,ze]);const U=Ie(),mt=L==="draft"?V.newReimbursementTitle:V.editReimbursementTitle,F=M.largeLabelWidth.value(U),ae=z=>z.outOfPocket.account.selectedOption==null&&(z.outOfPocket.amount==null||z.outOfPocket.amount.amount==0)&&(z.outOfPocket.class.selectedOption==null||z.outOfPocket.class.selectedOption===Le)&&(z.outOfPocket.memo===""||z.outOfPocket.memo==null)&&z.outOfPocket.merchant.selectedOption==null&&z.outOfPocket.transactionDate==null,wt=H.map(z=>z.bankAccountId),$e=s.reimbursementType===V.outOfPocketKey&&vn(s)>=75&&re==null;return t.jsxs(Va,{ref:k,windowSize:U,children:[t.jsx(_a,{ref:z=>{z!=null&&(Ge.current=z)},windowSize:U,bottomSeperator:_!==1,showSkipAutoFill:f,isFirstItem:l===0,children:t.jsx(xn,{customError:$e?V.requireReceipt:void 0,analytics:se,showAutofill:!1,uploadInvoiceEndPoint:P,authParams:w,entityId:X?"":void 0,file:re,style:{width:"auto",padding:0,height:b?M.firstOrLastItemHeight.valuePx(U):M.itemHeight.valuePx(U),margin:U==="small"?i.sp0:void 0},updateInvoiceUploadFetchState:Ve,onInvoiceUpload:z=>{s.reimbursementType===V.outOfPocketKey&&!ae(s)?(ye(Number(s.lineId)),dt(z),Te?.()):et(z,Number(s.lineId),!0)},dropFilePlaceholder:{upload:V.dropReceipt.upload,receipt:V.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!X,pdfTitle:_>1?`#${l+1} Receipt`:"Receipt",onDeleteClick:()=>{Ve?.("In-Progress"),setTimeout(()=>qe?.(Number(s.lineId)))},onReplaceClick:()=>{ye(Number(s.lineId)),Te?.()},allowMultiFiles:_===l+1,type:"receipt"})}),t.jsxs(Ua,{windowSize:U,children:[l===0&&U!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(La,{children:mt}),t.jsx(Ha,{children:t.jsx(fo,{progressSectionObj:o,createDate:u,paymentDate:C,scheduleDate:p,approvedDate:S,isBillUploaded:r!=null?!0:e==="Completed"})}),te&&t.jsxs(Da,{children:[t.jsx(ka,{}),t.jsx(Oa,{children:V.banner})]}),m&&t.jsxs(Ta,{size:U,children:[t.jsx(Ia,{}),t.jsxs(Pa,{children:[t.jsx(ja,{children:V.thereSeems}),t.jsx(Ra,{children:V.pleaseFind})]})]}),t.jsx($n,{isReimbursementCommentingEnabled:E,sectionId:Lt,reportTitle:le,reimbursementId:r})]}):null,t.jsx(aa,{analytics:se,reimbursementId:r,onDuplicateLineClick:De,uncategorizedAccounts:J,sectionId:`${gi}.${l}`,scrollToSection:tt,lineIndex:l,lineData:s,accountList:T,classList:$,merchantList:K,autoFields:s.lineId!=null?I[s.lineId]:[],currencyConversionState:g,recommendationFetchState:Oe,onRemoveReimbursement:We,hasMultipleLineItems:_>1,clearTentativeNameForLine:He,tentativeMerchantName:R,hasFile:re!=null,companyMileageConfigInfo:Ne,defaultCurrency:Y,remiStage:L,remiStatus:he,fileRequiredLineIds:ie,allCurrencies:Ke,isReimbursementCommentingEnabled:E,isAddReimbursementDisabled:X,accountsHierarchyList:ne,classHierarchyList:it,duplicateLineDetails:we[s.lineId],removeDuplicateReimbursementForLine:W}),_!==1&&_===l+1&&t.jsxs(t.Fragment,{children:[t.jsxs(za,{windowSize:U,children:[t.jsx(Ba,{children:V.total}),A?t.jsx(Ma,{windowSize:U,children:t.jsx(Fa,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(dn,{amount:ee.toAmount(pe,"USD","$"),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]}),t.jsxs(Na,{windowSize:U,onClick:()=>{X===!1&&ke()},isDisabled:X,"data-testid":q("add-reimbursement-row"),children:[t.jsx(Mi,{}),t.jsx(Bi,{children:V.addReimbursement})]}),Ae?t.jsxs(t.Fragment,{children:[t.jsx(Aa,{windowSize:U,children:V.receivePaymentTo}),t.jsx(Ea,{windowSize:U,shouldDisplay:H.length>0,children:t.jsx(un,{label:{label:V.yourBankAccount,width:F},style:{width:"auto"},singleSelectField:{singleSelect:{name:yt,placeholder:Xe(V.yourBankAccount),showValueEyeIcon:!X,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:Ue,getTooltipInfo:z=>Cn(H,z),onClickCreateBankAccount:()=>Se(!0),getLabelForId:z=>In(H,z),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:X?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:ge,allOptions:wt},registerOptions:{required:!0,validate:z=>!!z.selectedOption}},isFunctional:!0})}),t.jsxs(Wa,{shouldDisplay:H.length===0,windowSize:U,hasError:st(ut,yt),onClick:()=>{X===!1&&Se(!0)},isDisabled:X,"data-testid":q("remi-add-bank-account-container"),children:[t.jsx(Mi,{}),t.jsx(Bi,{children:V.addBankAccount})]})]}):null]})]})]})},Cn=(e,o)=>{const r=kn(e,o);return r==null?`${It.bankRoutingNumber} ${V.emptyValue}
262
+ ${It.bankAccountNumber} ${V.emptyValue}`:`${It.bankRoutingNumber} ${r.bankRoutingNumberAch??V.emptyValue}, ${r.bankName??V.emptyValue}
263
+ ${It.bankAccountNumber} ${r.bankAccountNumber??V.emptyValue}`},kn=(e,o)=>e.find(r=>r.bankAccountId===o),In=(e,o)=>{const r=kn(e,o);return r==null?V.selectBankAccount:r.bankAccountName?r.bankAccountName:r.maskedAccountNumber?r.maskedAccountNumber:r.bankName&&r.bankAccountNumber?`${r.bankName} ${V.accountNameConnector}${r.bankAccountNumber.slice(r.bankAccountNumber.length-4)}`:V.selectBankAccount},ka=n(di)`
264
+ color: ${e=>e.theme.colors.primary};
265
+ width: ${i.sp3};
266
+ height: ${i.sp3};
267
+ `,Ia=n($o)`
268
+ width: ${i.sp4};
269
+ height: ${i.sp4};
270
+ color: ${j.brandColorGoldDark};
271
+ `,Da=n.div`
272
+ display: flex;
273
+ gap: ${i.sp2};
274
+ border: 1px solid ${e=>e.theme.colors.grey3};
275
+ padding: ${i.sp3};
276
+ border-radius: ${i.sp2};
277
+ align-items: center;
278
+ margin: 0 ${i.sp8} 0 ${i.sp6};
279
+ `,Ta=n.div`
280
+ display: flex;
281
+ gap: ${i.sp2};
282
+ padding: ${i.sp3};
283
+ border-radius: ${i.sp2};
284
+ align-items: start;
285
+ margin-top: ${e=>M.duplicateBannerWrapperMarginTop.valuePx(e.size)};
286
+ margin-right: ${e=>M.duplicateBannerWrapperMarginRight.valuePx(e.size)};
287
+ margin-bottom: ${e=>M.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
288
+ margin-left: ${e=>M.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
289
+ background-color: ${j.alertLight};
290
+ border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
291
+ `,ja=n(Mt)`
292
+ color: ${e=>e.theme.colors.brandColorGoldDark};
293
+ `,Pa=n.div`
294
+ width: 100%;
295
+ `,Ra=n(hi)`
296
+ color: ${e=>e.theme.colors.brandColorGoldDark};
297
+ `,Oa=n.span`
298
+ color: ${e=>e.theme.colors.hero};
299
+ `,La=n(So)`
300
+ letter-spacing: -0.02em;
301
+ color: ${e=>e.theme.colors.primary};
302
+ margin: ${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6};
303
+ `,Aa=n(Bt)`
304
+ letter-spacing: -0.02em;
305
+ color: ${e=>e.theme.colors.primary};
306
+ margin-top: ${e=>M.paymentToMarginTop.valuePx(e.windowSize)};
307
+ margin-bottom: ${e=>M.paymentToMarginBottom.valuePx(e.windowSize)};
308
+ margin-left: ${e=>M.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
309
+ margin-right: ${e=>M.reimbursementSectionRightMargin.valuePx(e.windowSize)};
310
+ `,za=n.div`
311
+ padding: ${i.sp3};
312
+ display: flex;
313
+ align-items: center;
314
+ justify-content: space-between;
315
+ background-color: ${e=>e.theme.colors.grey3};
316
+ border: 1px solid ${e=>e.theme.colors.grey3};
317
+ border-radius: ${i.sp2};
318
+ color: ${e=>e.theme.colors.hero};
319
+ margin-top: ${e=>M.totalMarginBottom.valuePx(e.windowSize)};
320
+ margin-left: ${e=>M.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
321
+ margin-right: ${e=>M.reimbursementSectionRightMargin.valuePx(e.windowSize)};
322
+ margin-bottom: ${e=>M.totalMarginBottom.valuePx(e.windowSize)};
323
+ justify-content: space-between;
324
+ `,Ba=n(pn)`
325
+ display: flex;
326
+ width: 176px;
327
+ color: ${e=>e.theme.colors.primary};
328
+ `,Ma=n(hn)`
329
+ display: flex;
330
+ width: calc(100% - 176px);
331
+ justify-content: flex-end;
332
+ color: ${e=>e.theme.colors.primary};
333
+ ${e=>`${va.total.style(e.windowSize)}`};
334
+ `,Fa=n.div`
335
+ padding-right: ${i.sp3};
336
+ height: 30px;
337
+ display: flex;
338
+ justify-content: flex-end;
339
+ `,Ea=n.div`
340
+ margin-left: ${e=>M.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
341
+ margin-right: ${e=>M.reimbursementSectionRightMargin.valuePx(e.windowSize)};
342
+ margin-bottom: ${i.sp3};
343
+ border: 1px solid ${e=>e.theme.colors.grey3};
344
+ border-radius: ${i.sp2};
345
+ box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
346
+ display: ${e=>e.shouldDisplay?"unset":"none"};
347
+ `,Na=n.div`
348
+ padding: ${i.sp3};
349
+ display: flex;
350
+ align-items: center;
351
+ justify-content: center;
352
+ border: 1px solid
353
+ ${e=>e.hasError===!0?j.important:e.theme.colors.hero};
354
+ border-radius: ${i.sp2};
355
+ color: ${e=>e.hasError===!0?j.important:e.theme.colors.hero};
356
+ cursor: ${e=>e.isDisabled?"default":"pointer"};
357
+ &:hover {
358
+ color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?j.important:e.theme.colors.primary};
359
+ border: 1px solid
360
+ ${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
361
+ }
362
+ margin-top: ${e=>M.totalMarginBottom.valuePx(e.windowSize)};
363
+ margin-left: ${e=>M.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
364
+ margin-right: ${e=>M.reimbursementSectionRightMargin.valuePx(e.windowSize)};
365
+ margin-bottom: ${e=>M.marginBottom.valuePx(e.windowSize)};
366
+ `,Wa=n.div`
367
+ padding: ${i.sp3};
368
+ display: ${e=>e.shouldDisplay?"flex":"none"};
369
+ align-items: center;
370
+ justify-content: center;
371
+ border: 1px solid
372
+ ${e=>e.hasError===!0?j.important:e.theme.colors.hero};
373
+ border-radius: ${i.sp2};
374
+ color: ${e=>e.hasError===!0?j.important:e.theme.colors.hero};
375
+ cursor: pointer;
376
+ &:hover {
377
+ color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?j.important:e.theme.colors.primary};
378
+ border: 1px solid
379
+ ${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
380
+ }
381
+ margin-left: ${e=>M.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
382
+ margin-right: ${e=>M.reimbursementSectionRightMargin.valuePx(e.windowSize)};
383
+ margin-bottom: ${e=>M.marginBottom.valuePx(e.windowSize)};
384
+ `,Bi=n(Mt)`
385
+ color: inherit;
386
+ `,Mi=n(gn)`
387
+ margin-right: ${i.sp2};
388
+ width: ${i.sp3};
389
+ height: ${i.sp3};
390
+ `,Ua=n.div`
391
+ display: flex;
392
+ flex-direction: column;
393
+ width: ${e=>M.rightSectionWidth.valuePercentage(e.windowSize)};
394
+ `,Va=n.div`
395
+ display: flex;
396
+ width: 100%;
397
+ flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
398
+ `,_a=n.div`
399
+ height: 100%;
400
+ background: ${e=>e.theme.colors.grey3};
401
+ border-radius: ${i.sp2};
402
+ width: ${e=>e.windowSize==="small"?"auto":"42%"};
403
+ margin-left: ${e=>M.invoiceSectionLeftMargin.valuePx(e.windowSize)};
404
+ margin-right: ${e=>M.invoiceSectionRightMargin.valuePx(e.windowSize)};
405
+ visibility: ${e=>e.showSkipAutoFill?"hidden":"unset"};
406
+ margin-bottom: ${e=>e.bottomSeperator===!0&&e.windowSize!=="small"?e.isFirstItem?"102px":i.sp10:0};
407
+ margin-top: ${e=>M.marginTop.valuePx(e.windowSize)};
408
+ `,Ha=n.div`
409
+ padding: ${i.sp2} ${i.sp8} ${i.sp0} ${i.sp6};
410
+ `,qa={total:new pi("largeMedium","h6Medium")},Q={largeLabelWidth:new c(120,120,220),marginBottom:new c(a[5],a[4]),addBankAccountMarginBottom:new c(a[5],a[5]),marginTop:new c(a[0],78),paymentToMarginTop:new c(0,a[4]),totalMarginBottom:new c(a[3],a[3]),rightMargin:new c(a[3],a[8]),leftMargin:new c(a[3],a[6]),paymentToMarginBottom:new c(12,a[3])},Ze=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,Ka=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:u,showSkipAutoFill:p,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,totalAmount:S,defaultCurrency:b,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:f,companyMileageConfigInfo:s,analytics:g,reimbursementId:w,currencyConversionStatus:P,setShowSkipAutoFill:T,setShowBankAccountPage:$,removeDuplicateReimbursementForLine:K,onReceiptsUpload:L,setCurrentLineIdForUpload:I,onDuplicateLineClick:E,setUploadedReceiptPayload:te,removeFileFromLine:pe,onReplaceClick:A,updateInvoiceUploadFetchState:_,clearTentativeNameForLine:Y,onDeleteBankAccount:H,uncategorizedAccounts:ie,isSignedInUserReimbursementCreator:X,duplicateLineByLineId:we,showTotalAmountLoader:he,scrollContainerRef:re})=>{const{control:J,formState:{errors:le}}=ct(),{fields:Oe,append:R,remove:ge}=uo({name:gi,control:J}),se=Oe,Ne=v.useRef(null),Le=F=>{setTimeout(()=>{ge(F)})},{tentativeMerchantNameByLineId:Ae,remiStage:Se,remiStatus:ze}=e,ye=!X||Se==="pending_approval"&&ze!=="rejected"&&o||Se==="pending_approval"&&ze==="rejected",De=ye?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:k,dt=De.map(F=>F.bankAccountId),W=Ie(),et=Q.largeLabelWidth.value(W),tt=e.whatForSection.reportTitle,We=e.accountList.accounts,ke=e.accountsHierarchyList,He=e.classHierarchyList,Te=e.classList.classes,Ue=e.merchantList.merchants,Ve=e.addRemiAutoFieldsByLineId,qe=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(F=>Number(F)),0),Ke=()=>{const F=se[se.length-1],ae=Dn(se.length,Number(F.lineId)>qe?String(Number(F.lineId)+1):String(qe+1),ke,He,Ue,b,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{R(ae,{shouldFocus:!1})}),I(Number(ae.lineId)),T(!0),setTimeout(()=>Ri(Ne.current,re?.current),50)},[ne,it]=v.useState({}),ut=v.useCallback(F=>{const ae=ne[`L${F}`];ae!=null&&Ri(ae,re?.current)},[ne,re]),Ge=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,U=e.reimbursementInfo?.paymentDate!=null?ee.zeniDate(ee.getNextNthWorkingDay(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,mt=e.reimbursementInfo?.expectedDepositDate??U;return t.jsxs(Qa,{windowSize:W,showSkipAutoFill:p,children:[se.map((F,ae)=>t.jsx(Ca,{removeDuplicateReimbursementForLine:K,onDuplicateLineClick:E,scrollToSection:ut,setRefByLineId:it,duplicateLineByLineId:we,reimbursementId:w,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:ie,progressSectionObj:Ge,createDate:e.createTime,paymentDate:mt,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:se.length-1===ae||ae===0,index:ae,reimbursementSectionRef:Ne,remiStage:Se,remiStatus:ze,authParams:r,file:F.file,uploadInvoiceEndPoint:u,showSkipAutoFill:p,lineData:F,currencyConversionState:P[F.lineId],recommendationFetchState:e.lineDetailSection[F.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:I,setUploadedReceiptPayload:te,onReplaceClick:A,onReceiptsUpload:L,removeFileFromLine:pe,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,reportTitle:tt,accountList:We,classList:Te,merchantList:Ue,autoFieldsByLineId:Ve,onRemoveReimbursement:Le,onAddReimbursement:Ke,totalAmount:S,showTotalAmountLoader:he,hasDuplicateLine:l,totalNumberOfLines:se.length,updateInvoiceUploadFetchState:_,clearTentativeNameForLine:Y,tentativeMerchantName:Ae[F.lineId],companyMileageConfigInfo:s,defaultCurrency:b,setShowBankAccountPage:$,paymentTo:e.paymentTo,bankAccounts:De,onDeleteBankAccount:H,analytics:g,fileRequiredLineIds:f,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:ye,accountsHierarchyList:ke,classHierarchyList:He,isSignedInUserReimbursementCreator:X},F.lineId)),se.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(Jt,{children:[W!=="small"?t.jsx(Gt,{windowSize:W}):null,t.jsx(Yt,{windowSize:W,children:t.jsxs(Za,{windowSize:W,children:[t.jsx(Xa,{children:Ze.total}),he?t.jsx(tr,{windowSize:W,children:t.jsx(ir,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(dn,{amount:ee.toAmount(S,ee.defaultVendorCurrency.currencyCode,ee.defaultVendorCurrency.currencySymbol),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]})})]}),t.jsxs(Jt,{children:[W!=="small"?t.jsx(Gt,{windowSize:W}):null,t.jsx(Yt,{windowSize:W,children:t.jsxs(nr,{windowSize:W,onClick:()=>{ye===!1&&Ke()},isDisabled:ye,"data-testid":q("add-reimbursement-container"),children:[t.jsx(Ei,{}),t.jsx(Fi,{children:Ze.addReimbursement})]})})]}),t.jsxs(Jt,{children:[W!=="small"?t.jsx(Gt,{windowSize:W}):null,X?t.jsxs(Yt,{windowSize:W,children:[t.jsx(er,{windowSize:W,children:Ze.receivePaymentTo}),t.jsx(Ja,{windowSize:W,shouldDisplay:De.length>0,children:t.jsx(un,{label:{label:Ze.yourBankAccount,width:et},style:{width:"auto"},singleSelectField:{singleSelect:{name:yt,placeholder:Xe(Ze.yourBankAccount),showValueEyeIcon:!ye,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:H,getTooltipInfo:F=>Cn(De,F),onClickCreateBankAccount:()=>$(!0),getLabelForId:F=>In(De,F),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:ye?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:dt},registerOptions:{required:!0,validate:F=>!!F.selectedOption}},isFunctional:!0})}),t.jsxs(or,{shouldDisplay:De.length===0,windowSize:W,onClick:()=>{ye===!1&&$(!0)},hasError:st(le,yt),isDisabled:ye,"data-testid":q("remi-add-bank-account-container"),children:[t.jsx(Ei,{}),t.jsx(Fi,{children:Ze.addBankAccount})]})]}):null]})]})]})},Dn=(e,o,r,u,p,C,m,S)=>{const b=Ga(r,u,p,C,m,S);return{lineIndex:e,lineId:o,reimbursementType:Ze.outOfPocketKey,file:void 0,outOfPocket:b,mileage:Ya(u,C,S)}},Ga=(e,o,r,u,p,C)=>({transactionDate:void 0,class:{allOptions:_e(o,[]),selectedOption:C},account:{allOptions:At(e,[]),selectedOption:void 0},amount:{amount:0,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol,currency:{allOptions:p.map(m=>({label:`${m.currencyCode} - ${m.currency}`,value:m.currencyCode,countryCode:si(m.countryCode)})),selectedOption:u.currencyCode??me.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(m=>m.id).filter(m=>!!m),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),Ya=(e,o,r)=>({transactionDate:void 0,class:{allOptions:_e(e,[]),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),Ja=n.div`
411
+ margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
412
+ margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
413
+ margin-bottom: ${e=>Q.addBankAccountMarginBottom.valuePx(e.windowSize)};
414
+ border: 1px solid ${e=>e.theme.colors.grey3};
415
+ border-radius: ${i.sp2};
416
+ box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
417
+ display: ${e=>e.shouldDisplay?"inherit":"none"};
418
+ `,Gt=n.div`
419
+ width: ${e=>e.windowSize==="small"?"100%":"42%"};
420
+ `,Yt=n.div`
421
+ width: ${e=>e.windowSize==="small"?"100%":"58%"};
422
+ `,Qa=n.div`
423
+ display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
424
+ flex-direction: column;
425
+ margin-top: ${e=>Q.marginTop.valuePx(e.windowSize)};
426
+ `,Za=n.div`
427
+ padding: ${i.sp3};
428
+ display: flex;
429
+ align-items: center;
430
+ justify-content: space-between;
431
+ background-color: ${e=>e.theme.colors.grey3};
432
+ border: 1px solid ${e=>e.theme.colors.grey3};
433
+ border-radius: ${i.sp2};
434
+ color: ${e=>e.theme.colors.hero};
435
+ margin-top: ${e=>Q.totalMarginBottom.valuePx(e.windowSize)};
436
+ margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
437
+ margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
438
+ margin-bottom: ${e=>Q.totalMarginBottom.valuePx(e.windowSize)};
439
+ `,Xa=n(pn)`
440
+ display: flex;
441
+ width: 176px;
442
+ color: ${e=>e.theme.colors.primary};
443
+ `,er=n(Bt)`
444
+ color: ${e=>e.theme.colors.primary};
445
+ margin-top: ${e=>Q.paymentToMarginTop.valuePx(e.windowSize)};
446
+ margin-bottom: ${e=>Q.paymentToMarginBottom.valuePx(e.windowSize)};
447
+ margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
448
+ margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
449
+ `,tr=n(hn)`
450
+ display: flex;
451
+ width: calc(100% - 176px);
452
+ justify-content: flex-end;
453
+ color: ${e=>e.theme.colors.primary};
454
+ ${e=>`${qa.total.style(e.windowSize)}`};
455
+ `,ir=n.div`
456
+ padding-right: ${i.sp3};
457
+ height: 30px;
458
+ display: flex;
459
+ justify-content: flex-end;
460
+ `,nr=n.div`
461
+ padding: ${i.sp3};
462
+ display: flex;
463
+ align-items: center;
464
+ justify-content: center;
465
+ border: 1px solid
466
+ ${e=>e.hasError===!0?j.important:e.theme.colors.hero};
467
+ border-radius: ${i.sp2};
468
+
469
+ color: ${e=>e.hasError===!0?j.important:e.theme.colors.hero};
470
+ cursor: ${e=>e.isDisabled?"default":"pointer"};
471
+ &:hover {
472
+ color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?j.important:e.theme.colors.primary};
473
+ border: 1px solid
474
+ ${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
475
+ }
476
+ margin-top: ${e=>Q.totalMarginBottom.valuePx(e.windowSize)};
477
+ margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
478
+ margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
479
+ margin-bottom: ${e=>Q.marginBottom.valuePx(e.windowSize)};
480
+ `,or=n.div`
481
+ padding: ${i.sp3};
482
+ display: ${e=>e.shouldDisplay?"flex":"none"};
483
+ align-items: center;
484
+ justify-content: center;
485
+ border: 1px solid
486
+ ${e=>e.hasError===!0?j.important:e.theme.colors.hero};
487
+ border-radius: ${i.sp2};
488
+ color: ${e=>e.hasError===!0?j.important:e.theme.colors.hero};
489
+ cursor: ${e=>e.isDisabled?"default":"pointer"};
490
+ &:hover {
491
+ color: ${e=>e.isDisabled?e.theme.colors.hero:e.hasError===!0?j.important:e.theme.colors.primary};
492
+ border: 1px solid
493
+ ${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
494
+ }
495
+ margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
496
+ margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
497
+ margin-bottom: ${e=>Q.addBankAccountMarginBottom.valuePx(e.windowSize)};
498
+ `,Fi=n(Mt)`
499
+ color: inherit;
500
+ `,Ei=n(gn)`
501
+ margin-right: ${i.sp2};
502
+ width: ${i.sp3};
503
+ height: ${i.sp3};
504
+ `,Jt=n.div`
505
+ display: flex;
506
+ width: 100%;
507
+ `,Re={buttonWidth:new c(140,140),paddingLeft:new c(a[3],a[6]),paddingRight:new c(a[3],a[8]),subTitleMarginbottom:new c(a[2],a[3]),orSeperatorTopBottomMargin:new c(a[6],44),iconWidthHeight:new c(20,a[4])},Ni="userBankAccountPage",Pt="bankAccountSection",ar=e=>({[Pt]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName}}),Wi=e=>`${e}_form`,rr=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:u,onEstablishConnectionClick:p,bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,isDisabled:S,onSaveHandler:b,onUserBankDetailsUpdated:l,onFetchBankName:k,onBackClick:f})=>{const s=bt(),g=Ie(),w=en({mode:"onBlur",reValidateMode:"onChange",defaultValues:v.useMemo(()=>ar(C),[C])}),P=v.useCallback(Y=>{p?.(Y),f()},[f,p]),T=r.link_account_no_microdeposit,{open:$}=po({token:T.linkToken??null,onSuccess:P});v.useEffect(()=>{(ee.zeniDate(new Date().toISOString()).isAfter(T.expiration)||T.linkToken==null)&&u?.("link_account_no_microdeposit")},[]);const[K,L]=v.useState(!1),I=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,E=me.getLocalizedStrings().common.footer,te={onOkClick:()=>{L(!1),w.reset(),f()},onCancelClick:()=>{L(!1)}},pe=async(Y,H)=>{const ie=H[Pt].bankRoutingNumber;l(H),Y===`${Pt}.bankRoutingNumber`&&ie?.length===9&&xo.test(ie)===!0&&k?.(ie)};v.useEffect(()=>{const Y=w.watch((H,{name:ie})=>{ie!=null&&H!=null&&ho(()=>pe(ie,H))});return()=>{Y.unsubscribe()}}),v.useEffect(()=>{e?.fetchState==="Completed"&&f()},[e?.fetchState,f,o]);const A=w.handleSubmit(Y=>{m.fetchState!=="In-Progress"&&b()}),_=s.mode==="light"?new Di(s.colors.brandColorJadeLight):new Di(s.colors.brandColorJadeDark);return t.jsxs(lr,{children:[t.jsxs(hr,{windowSize:g,children:[K===!0?t.jsx(li,{titleComponent:t.jsx(an,{children:I.discardTitle}),descriptionComponent:t.jsx(on,{children:I.discardDescription}),primaryButtonText:I.buttons.delete,secondaryButtonText:I.buttons.cancel,action:te}):null,t.jsx(Bo,{header:I.addBankAccount,isDirty:w.formState.isDirty,onBackClick:f,setShowConfirmationPopup:L}),t.jsx(sr,{}),t.jsxs(gr,{size:g,children:[t.jsx(Ao,{onClick:()=>{w.reset(),$()},title:I.connectYourBank,subTitle:I.loginToBank,header:I.setupAchPayments,icon:{element:t.jsx(go,{width:Re.iconWidthHeight.valuePx(g),height:Re.iconWidthHeight.valuePx(g)}),color:_},style:{width:"unset",rowGap:g==="small"?i.sp2:void 0}}),t.jsxs(cr,{windowSize:g,children:[t.jsx(dr,{}),t.jsx(mr,{children:t.jsx(pr,{children:I.or})})]}),t.jsx(ur,{windowSize:g,children:I.saveAccountManually})]}),t.jsx(yr,{size:g,children:t.jsx(nn,{...w,children:t.jsxs("form",{id:Wi(Ni),onSubmit:A,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(Mo,{warningText:I.accountExistWarning}):null,t.jsx(zo,{bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,sectionId:Pt})]})})})]}),t.jsx(ln,{formId:Wi(Ni),primaryBtn:{label:I.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Re.buttonWidth.value(g)},isDisabled:S!=null},cancelBtn:{label:E.cancel,style:{width:Re.buttonWidth.value(g)},shouldResetOnCancel:!1,onClick:()=>{w.formState.isDirty?L(!0):(L(!1),w.reset(),f())}}})]})},lr=n.div`
508
+ display: flex;
509
+ flex-direction: column;
510
+ width: 100%;
511
+ height: 100%;
512
+ `,sr=n.div`
513
+ margin: ${i.sp2} 0;
514
+ position: relative;
515
+ `,cr=n.div`
516
+ margin: ${e=>Re.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
517
+ position: relative;
518
+ `,dr=n.div`
519
+ background: ${e=>e.theme.colors.grey2};
520
+ height: 1px;
521
+ `,ur=n(wo)`
522
+ color: ${e=>e.theme.colors.primary};
523
+ margin-bottom: ${e=>Re.subTitleMarginbottom.valuePx(e.windowSize)};
524
+ `,mr=n.div`
525
+ display: flex;
526
+ justify-content: center;
527
+ `,pr=n(mi)`
528
+ background: ${e=>e.theme.colors.background};
529
+ border: 1px solid ${e=>e.theme.colors.grey2};
530
+ border-radius: ${i.sp5};
531
+ width: 43px;
532
+ height: 25px;
533
+ display: flex;
534
+ align-items: center;
535
+ justify-content: center;
536
+ color: ${e=>e.theme.colors.grey1};
537
+ top: -11px;
538
+ position: absolute;
539
+ `,hr=n.div`
540
+ display: flex;
541
+ flex-direction: column;
542
+ flex-grow: 1;
543
+ `,gr=n.div`
544
+ padding-left: ${e=>Re.paddingLeft.valuePx(e.size)};
545
+ padding-right: ${e=>Re.paddingRight.valuePx(e.size)};
546
+ `,yr=n.div`
547
+ padding-left: ${e=>Re.paddingLeft.valuePx(e.size)};
548
+ padding-right: ${e=>Re.paddingRight.valuePx(e.size)};
549
+ padding-bottom: ${i.sp3};
550
+ `,Ce={containerWidth:new c(343,544),confirmationPopUpTitleMarginTop:new c(a[6],a[7]),confirmationPopUpTitlePaddingLeftRight:new c(a[5],a[8]),submitButtonWidth:new c(145,156),cancelButtonWidth:new c(121,121),errorLineItemGap:new c(a[2],12),styledCloseIconRight:new c(a[3],a[8])},{footer:Ui}=me.getLocalizedStrings().common,ue=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,Vi=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(Hi,{});case"In-Progress":return t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(Tn,{});default:return t.jsx(Hi,{})}},br=e=>{switch(e){case"Not-Started":return ue.detectDuplicates;case"In-Progress":return ue.detectingDuplicates;case"Completed":return ue.noDuplicatesFound;default:return ue.detectDuplicates}},fr=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:u,setShowDuplicatePopup:p,analytics:C,reimbursementId:m,submitReport:S,fetchDuplicateReimbursement:b,clearDuplicateReimbursementDetail:l,clearRemiSaveStatus:k})=>{const f=Ie(),[s,g]=vt.useState(!0),w=ai(e),P=ai(o);vt.useEffect(()=>{setTimeout(()=>{s&&(g(!1),o==="Not-Started"&&b())},2e3)},[o,b,s]),vt.useEffect(()=>{w==="In-Progress"&&e==="Completed"&&(l(),p(!1))},[e,w,p,l]),vt.useEffect(()=>{P==="In-Progress"&&o==="Completed"&&!r&&S()},[P,o,r,S]);const T=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[T?t.jsx(xr,{size:f}):null,t.jsx(li,{action:{onOkClick:()=>{T?(l(),e==="Error"&&k(),g(!0)):(C?.trackReimbursementReviewDuplicateReportReimbursement(u,m),p(!1),ro())},onCancelClick:()=>{T?(l(),e==="Error"&&k(),p(!1)):(C?.trackReimbursementSubmitAnywayDuplicateReimbursement(u,m),S())}},shouldClickAway:T,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:T?Ui.resubmit:ue.primaryButtonText,secondaryButtonText:T?Ui.cancel:ue.secondaryButtonText,primaryButtonWidth:T?Ce.cancelButtonWidth.value(f):Ce.submitButtonWidth.value(f),secondaryButtonWidth:T?Ce.cancelButtonWidth.value(f):Ce.submitButtonWidth.value(f),descriptionComponent:t.jsx($r,{size:f,children:t.jsxs(wr,{hasDuplicate:r,duplicateReimbursementStatus:o,children:[t.jsxs(Zt,{isDisabled:!1,isSuccess:!s,children:[s?t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(Tn,{}),t.jsx(Qt,{isDisabled:!1,children:s?ue.reviewingExpenses:ue.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(Ki,{size:f,children:[t.jsx(_i,{}),t.jsx(qi,{children:o==="Error"?ue.failedToDetect:`${u} ${ue.duplicateExpensesFound}`})]}):t.jsxs(Zt,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&u===0,children:[t.jsx(Vi,{fetchState:o}),t.jsx(Qt,{isDisabled:o==="Not-Started",children:br(o)})]}),e==="Error"?t.jsxs(Ki,{size:f,children:[t.jsx(_i,{}),t.jsx(qi,{children:ue.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(Zt,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(Vi,{fetchState:e}),t.jsx(Qt,{isDisabled:e==="Not-Started",children:e==="Not-Started"?ue.submitReport:ue.submittingReport})]})]})}),titleComponent:t.jsx(Sr,{size:f,children:ue.title}),showFooter:r||T,containerStyle:{width:Ce.containerWidth.value(f),maxWidth:"unset"}})]})},xr=n(cn)`
551
+ width: ${i.sp4};
552
+ height: ${i.sp4};
553
+ color: ${e=>e.theme.colors.hero};
554
+ position: fixed;
555
+ top: 19px;
556
+ right: ${e=>Ce.styledCloseIconRight.valuePx(e.size)};
557
+ z-index: 11;
558
+ cursor: pointer;
559
+ &:hover {
560
+ color: ${e=>e.theme.colors.primary};
561
+ }
562
+ `,_i=n(bo)`
563
+ width: ${i.sp4};
564
+ height: ${i.sp4};
565
+ min-width: ${i.sp4};
566
+ color: ${j.brandColorGoldDark};
567
+ `,Hi=n(Fo)`
568
+ width: ${i.sp3};
569
+ height: ${i.sp3};
570
+ min-width: ${i.sp3};
571
+ color: ${e=>e.theme.colors.grey3};
572
+ `,Qt=n.div`
573
+ color: ${e=>e.isDisabled?e.theme.colors.grey2:e.theme.colors.primary};
574
+ text-align: left;
575
+ `,qi=n.div`
576
+ color: ${j.brandColorGoldDark};
577
+ `,Zt=n.div`
578
+ display: flex;
579
+ align-items: center;
580
+ gap: ${e=>e.isSuccess?i.sp2:i.sp3};
581
+ border: 1px solid
582
+ ${e=>e.isDisabled?e.theme.colors.grey3:e.theme.colors.primary};
583
+ padding: ${i.sp3};
584
+ border-radius: ${i.sp2};
585
+ `,wr=n.div`
586
+ display: flex;
587
+ flex-direction: column;
588
+ gap: ${i.sp3};
589
+ margin-bottom: ${e=>e.hasDuplicate||e.duplicateReimbursementStatus==="Error"?0:i.sp3};
590
+ `,Ki=n.div`
591
+ display: flex;
592
+ align-items: center;
593
+ gap: ${e=>Ce.errorLineItemGap.valuePx(e.size)};
594
+ border: 1px solid ${e=>e.theme.colors.brandColorGold};
595
+ background-color: ${j.alertLight};
596
+ padding: ${i.sp3};
597
+ border-radius: ${i.sp2};
598
+ text-align: left;
599
+ `,Sr=n(ci)`
600
+ margin-top: ${e=>Ce.confirmationPopUpTitleMarginTop.valuePx(e.size)};
601
+ padding-left: ${e=>Ce.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
602
+ padding-right: ${e=>Ce.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
603
+ color: ${e=>e.theme.colors.primary};
604
+ word-break: break-word;
605
+ width: ${e=>e.size==="small"?"max-content":"-webkit-fill-available"};
606
+ `,$r=n(mn)`
607
+ color: ${e=>e.theme.colors.hero};
608
+ padding-left: ${e=>Ce.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
609
+ padding-right: ${e=>Ce.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
610
+ margin-bottom: ${i.sp5};
611
+ margin-top: ${i.sp4};
612
+ white-space: pre-line;
613
+ width: -webkit-fill-available;
614
+ `,Tn=n(yo)`
615
+ width: ${i.sp4};
616
+ height: ${i.sp4};
617
+ min-width: ${i.sp4};
618
+ color: ${j.success};
619
+ `,Z={rightMargin:new c(a[3],a[8]),leftMargin:new c(a[3],a[6]),bottomMargin:new c(56,56),closeMarginTop:new c(0,19),closeMarginRight:new c(a[3],a[8]),rightSectionWidth:new c(100,58),leftSectionWidth:new c(100,42),footerButtonWidth:new c(120,165),right:new c(a[3],a[0]),actionsContainerRight:new c(a[0],a[6]),otherActionsContainerBottom:new c(58,44),duplicateBannerWrapperMarginTop:new c(a[5],a[3]),duplicateBannerWrapperMarginRight:new c(a[3],a[8]),duplicateBannerWrapperMarginBottom:new c(a[5],a[3]),duplicateBannerWrapperMarginLeft:new c(a[3],a[6]),navBarWidth:new c(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:y,bulkActions:Gi}},common:{currency:{currencyCode:Me,currencySymbol:Tt},texts:{comments:vr},strings:{empty:Cr}},collaboration:{threads:{placeholder:{addANewComment:kr,replyAComment:Ir},tooltip:{resolveComment:Dr,unResolveComment:Tr}}},dateFormat:Yi}=me.getLocalizedStrings(),Ji="editReimbursementDetailPage",Qi=e=>`${e}_form`,jr=(e,o,r,u,p,C,m,S,b)=>{const l=e.outOfPocket,k=e.mileage,f=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??y.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??m.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??m.currencySymbol},outOfPocket:{recommendedAccount:l.recommendedAccount,isCategoryUpdateSelected:l.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:l.isCategoryFirstTimeAutofilled??!1,retainedAccount:l.retainedAccount,isRetainedCategorySelected:l.isRetainedCategorySelected??!1,recommendations:s??[],transactionDate:l?.transactionDate?.toDate()??void 0,class:{allOptions:_e(r,[]),selectedOption:l?.lineDetail?.class?.classId??b},account:{allOptions:At(o,s),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??m.currencyCode,currencySymbol:l?.currencySymbol??m.currencySymbol,currency:{allOptions:S.map(g=>({label:`${g.currencyCode} - ${g.currency}`,value:g.currencyCode,countryCode:si(g.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??Me}},memo:l?.description??void 0,merchant:{allOptions:u.map(g=>g.id).filter(g=>!!g),selectedOption:f?.id?f?.id:f?.name?f?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:_e(r,[]),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??m.currencyCode,currencySymbol:k?.currencySymbol??m.currencySymbol},memo:k?.description}}},Xt=(e,o,r)=>{const u=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&u.push(jr(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),u.length===0&&u.push(Dn(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[Lt]:{reportTitle:e.whatForSection.reportTitle},[gi]:u,[yt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},ei=(e,o)=>{const r=u=>u.lineId==null||o[u.lineId]?.fetchState==="In-Progress"?0:(o[u.lineId]?.fetchState,u.type===y.mileageKey?u?.mileage?.amount??0:u?.outOfPocket?.currencyCode!==Me&&u.homeCurrencyConversions?.amount!==u?.outOfPocket?.amount?u.homeCurrencyConversions?.amount??0:u?.outOfPocket?.amount??0);return Object.values(e).reduce((u,p)=>u+r(p),0)},ti=(e,o,r,u,p,C,m,S)=>{const b={};return e.lineInfo.forEach(l=>{const k=S.find(P=>P.classId===l.mileage.class.selectedOption),f=m.find(P=>P.qboId===l.outOfPocket.account.selectedOption||P.accountId===l.outOfPocket.account.selectedOption),s=S.find(P=>P.classId===l.outOfPocket.class.selectedOption),g=o.find(P=>P.id===l.outOfPocket.merchant.selectedOption),w=C.find(P=>P.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;b[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k},transactionDate:l.mileage.transactionDate!=null?ee.zeniDate(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??w,currencySymbol:l.mileage.amount?.currencySymbol??w,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:f},transactionDate:l.outOfPocket.transactionDate!=null?ee.zeniDate(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??w,currencySymbol:w,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:g?.id??"",name:g?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:b,totalAmount:{amount:u,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},Pl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:u,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:S,reimbursementId:b,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:f,bankAccounts:s,isSignedInUserReimbursementCreator:g,uncategorizedAccounts:w,bankAccountToCreate:P,fetchBankNameByRoutingStatus:T,onUserBankDetailsUpdated:$,onFetchBankName:K,onSaveBankAccount:L,fetchDuplicateReimbursement:I,clearDuplicateReimbursementDetail:E,clearRemiSaveStatus:te,removeDuplicateReimbursementForLine:pe,onDuplicateLineClick:A,onExistingMerchantChange:_,onNewMerchantChange:Y,onReceiptsUpload:H,saveRemiDetails:ie,submitRemiDetails:X,discardReimbursementDetailsFromLocalStore:we,onReimbursementDetailsChanged:he,updateReimbursementType:re,onHomeCurrencyConversionUpdate:J,redirectToReimbursementListScreen:le,redirectToReimbursementDetailScreen:Oe,deleteReimbursement:R,removeFileFromLine:ge,onZeniLogoClick:se,onAmountChanged:Ne,updateInvoiceUploadFetchState:Le,clearTentativeNameForLine:Ae,onAddNewRule:Se,onFetchLinkTokenClick:ze,onEstablishConnectionClick:ye,deleteBankAccount:De,onBackClickFromBankAccountPage:dt})=>{const W=v.useRef(null),et=v.useRef(null),tt=ai(e.uploadStatus),We=bt(),ke=ft(),[He,Te]=v.useState(!1),[Ue,Ve]=v.useState(!1),[qe,Ke]=v.useState("save"),[ne,it]=v.useState(ei(e.lineDetailSection,e.currencyConversionStatus)),[ut,Ge]=v.useState(!1),[U,mt]=v.useState(null),[F,ae]=v.useState(!1),wt=`dashboard_${ke.currentTenant?.companyId}`,$e=en({mode:"all",reValidateMode:"onChange",defaultValues:v.useMemo(()=>Xt(e,r,s),[e,r,s]),values:v.useMemo(()=>Xt(e,r,s),[e,r,s])}),{isDirty:z,dirtyFields:jn}=$e.formState,Pn=async(h,D)=>{const{lineInfo:d}=D,x=Number(h.split(".")[1]);if(h.includes("reportTitle")||h.includes("memo"))return;if(h.includes("reimbursementType")){const B=d[x].mileage,N=d[x].outOfPocket;d[x]={...d[x],outOfPocket:{transactionDate:N.transactionDate??void 0,class:{allOptions:N.class.allOptions??_e(e.classHierarchyList,[]),selectedOption:N.class.selectedOption??void 0},account:{allOptions:N.account.allOptions??At(e.accountsHierarchyList,[]),selectedOption:N.account.selectedOption??void 0},amount:N.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(be=>({label:`${be.currencyCode} - ${be.currency}`,value:be.currencyCode,countryCode:si(be.countryCode)})),selectedOption:r.currencyCode??Me}},memo:N.memo??void 0,merchant:N.merchant??void 0,recommendations:N.recommendations??[],recommendedAccount:N.recommendedAccount??void 0,isCategoryUpdateSelected:N.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:N.isCategoryFirstTimeAutofilled??!1,retainedAccount:N.retainedAccount??void 0,isRetainedCategorySelected:N.isRetainedCategorySelected??!1},mileage:{transactionDate:B.transactionDate??void 0,class:{allOptions:B.class.allOptions??_e(e.classHierarchyList,[]),selectedOption:B.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:B.distanceInMiles,amount:{amount:B?.amount?.amount??0,currencyCode:B?.amount?.currencyCode??Me,currencySymbol:B?.amount?.currencySymbol??Tt},memo:B.memo??void 0}}}else if(h.includes("mileage.distanceInMiles")){const{distanceInMiles:B}=d[x].mileage,N=u?.mileageUnitAmount??0;d[x].mileage={...d[x].mileage,amount:{amount:B!=null?B*N:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(h.includes("outOfPocket.amount")&&d[x].lineId){const B=d[x].outOfPocket.amount,N=e.allCurrencies.find(be=>be.currencyCode===B?.currency.selectedOption)?.currencySymbol;if(B?.currencyCode!==B?.currency.selectedOption){const be=B?.currency?.allOptions||[];d[x].outOfPocket.amount={currency:{allOptions:be,selectedOption:B?.currency?.selectedOption},amount:d[x].outOfPocket?.amount?.amount??0,currencyCode:B?.currency.selectedOption??Me,currencySymbol:N??Tt}}if(B?.currency.selectedOption!==Me)Ge(!0),Fn(d[x].lineId,Me);else{const be={};d.forEach(Kt=>{be[Kt.lineId]={lineId:Kt.lineId,homeCurrencyConversions:Kt.homeCurrencyConversions}}),d[x].homeCurrencyConversions={amount:B.amount??0,currencyCode:B?.currency.selectedOption??Me,currencySymbol:N??Tt};const vi=ei(be,e.currencyConversionStatus);ne!==vi&&it(vi)}}else if(h.includes("outOfPocket.isRetainedCategorySelected"))d[x].outOfPocket.isRetainedCategorySelected===!0&&(d[x].outOfPocket.isCategoryUpdateSelected=!1,d[x].outOfPocket.account.selectedOption=d[x].outOfPocket.retainedAccount?.qboId);else if(h.includes("outOfPocket.isCategoryUpdateSelected"))if(d[x].outOfPocket.isCategoryUpdateSelected===!0)d[x].outOfPocket.account.selectedOption=d[x].outOfPocket.recommendedAccount?.qboId,d[x].outOfPocket.isRetainedCategorySelected=!1;else{const B=d[x].lineId,N=e.editRemiInitialDetails.lineDetailSection[B]?.lineDetail?.account?.qboId;d[x].outOfPocket.account.selectedOption=N,d[x].outOfPocket.isRetainedCategorySelected=!1}else h.includes("outOfPocket.account")&&(d[x].outOfPocket.recommendations.length>0&&(d[x].outOfPocket.recommendedAccount=d[x].outOfPocket.recommendations[0].account),d[x].outOfPocket.recommendedAccount?.qboId!=null&&d[x].outOfPocket.account.selectedOption===d[x].outOfPocket.recommendedAccount?.qboId?d[x].outOfPocket.isCategoryUpdateSelected=!0:d[x].outOfPocket.isCategoryUpdateSelected=!1,d[x].outOfPocket.retainedAccount?.qboId!=null&&d[x].outOfPocket.account.selectedOption===d[x].outOfPocket.retainedAccount?.qboId?d[x].outOfPocket.isRetainedCategorySelected=!0:d[x].outOfPocket.isRetainedCategorySelected=!1,d[x].outOfPocket.isCategoryFirstTimeAutofilled=!1);const $t=ti({...D,lineInfo:d},e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(he?.($t),h.includes("outOfPocket.merchant")){const B=d[x].lineId,N=d[x].outOfPocket.merchant.selectedOption??"";d[x].outOfPocket.merchant.allOptions.find(be=>be===N)!=null?_(N,B):Y(N,B)}},yi=v.useMemo(()=>Ci((h,D)=>Pn(h,D),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);v.useEffect(()=>{const h=$e.watch((D,{name:d})=>{d!=null&&D!=null&&yi(d,D)});return()=>{h.unsubscribe()}},[yi,$e]),v.useEffect(()=>{const h=ee.reduceAnyFetchState(Object.values(e.currencyConversionStatus)),D=h.fetchState==="In-Progress"||h.fetchState==="Error";Ge(D)},[e.currencyConversionStatus]),v.useEffect(()=>{for(const D in e.currencyConversionStatus){const d=e.lineDetailSection[D],x=e.lineDetailSection[D];e.currencyConversionStatus[D].fetchState==="Completed"&&x!=null&&d.type!==y.mileageKey&&!tn(d?.homeCurrencyConversions,x.homeCurrencyConversions)&&J({amount:d?.homeCurrencyConversions?.amount??0,currencyCode:d?.homeCurrencyConversions?.currencyCode??Me,currencySymbol:d?.homeCurrencyConversions?.currencySymbol??Tt},D,b)}const h=ei(e.lineDetailSection,e.currencyConversionStatus);ne!==h&&it(h)},[e.currencyConversionStatus,e.lineDetailSection]),v.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(we(b),le?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,b,we,le]);const O=Ie(),[je,pt]=v.useState(b==null),[ht,Rn]=v.useState(1),[On,Ft]=v.useState(!1),[Ln,An]=v.useState(""),[Et,zn]=v.useState(null),[Bn,nt]=v.useState(!1),[Mn,bi]=v.useState(!1),[Nt,Wt]=v.useState([]),[ce,St]=v.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Fn=v.useRef(Ci((h,D)=>Ne(h,D),500,{trailing:!0})).current;v.useEffect(()=>{tt==="In-Progress"&&(e.uploadStatus==="Completed"?($e.reset(Xt(e,r,s),{keepDefaultValues:!0}),Te(!1),pt(!1)):e.uploadStatus==="Error"&&Te(!1))},[tt,e.uploadStatus,$e,e,He,Te,je,r,s,S]),v.useEffect(()=>{e.uploadStatus==="In-Progress"&&je===!1&&Te(!0)},[e.uploadStatus,Te,je]);const Ut=e.remiStage==="draft"?y.newReimbursementTitle:y.editReimbursementTitle,En={onOkClick:()=>{if(nt(!1),ce.primaryButtonText===y.buttons.discard)we(b),e.remiStage==="draft"?le?.():Oe?.();else if(ce.primaryButtonText===y.buttons.delete)ce.title===y.deleteBankAccountTitle?De?.(Ln):R?.();else if(ce.primaryButtonText===y.buttons.yes&&Et!=null){const h=Nt.filter(D=>D!==ht.toString());Wt(h),H(Et,ht,!0)}},onCancelClick:()=>{if(nt(!1),ce.secondaryButtonText===y.buttons.no){const h=Nt.filter(D=>D!==ht.toString());Wt(h),H(Et,ht,!1)}}},fi=()=>{z||co(jn)?(St({title:y.discardTitle,description:y.discardDescription,primaryButtonText:y.buttons.discard,secondaryButtonText:y.buttons.cancel}),nt(!0)):(we(b),le?.())},Nn=()=>{St({title:e.remiStage==="draft"?y.deleteDraftTitle:y.deleteReportTitle,description:y.deleteAlertDescription,primaryButtonText:y.buttons.delete,secondaryButtonText:y.buttons.cancel}),nt(!0)},Wn=h=>{An(h),St({title:y.deleteBankAccountTitle,description:y.deleteBankAccountDescription,primaryButtonText:y.buttons.delete,secondaryButtonText:y.buttons.cancel}),nt(!0)},Un=()=>{St({title:y.overwriteTitle,description:y.overwriteDescription,primaryButtonText:y.buttons.yes,secondaryButtonText:y.buttons.no}),nt(!0)},Vn=()=>{let h=!0;const D=[];return Object.values(e.lineDetailSection).forEach((d,x)=>{d.type===y.outOfPocketKey&&vn(d)>=75&&d.file==null&&(D.push(d.lineId),h=!1)}),Wt(D),h},xi=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")fi();else{Ke("save");const h=$e.getValues(),D=ti(h,e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);he?.(D);const d=D.whatForSection?.reportTitle;d!=null&&d.length>0?ie(e.remiStatus==="rejected"?"pending_approval":"draft"):$e.trigger(`${Lt}.reportTitle`,{shouldFocus:!0})}};let Vt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(h=>{h.length>0&&(Vt=!0)});let wi=[];if(e.remiId==null){const h=ne??0;h>0&&(wi=e.approvalRules.allApprovalRules?.filter(D=>{const d=D.criteria[0].range;if(d.max!=null){if(d.min.amount<h&&d.max.amount>=h)return D}else if(d.min.amount<h)return D;return null}).map(D=>({...D,stepsWithStatus:D.steps.map(d=>({...d,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const _n=h=>{const D=Vn();return $e.handleSubmit(()=>{D&&(Ke("submit"),S?.trackReimbursementSubmitReimbursement(e.createTime?.format(Yi.analytics.MMMDashDDDashYYYYFormat)??ee.dateNow().format(Yi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,ne,b),E(),bi(!0))})(h)},Hn=()=>{const h=$e.getValues(),D=ti(h,e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);he?.(D),X()},qn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Kn=e.reimbursementInfo?.paymentDate!=null?ee.zeniDate(ee.getNextNthWorkingDay(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Gn=e.reimbursementInfo?.expectedDepositDate??Kn,Yn=b!=null&&e.remiStage==="draft",Si=Ro(e.duplicateLineByLineId),_t=e.duplicateReimbursementStatus.fetchState==="Completed"&&Si>0,{requestToOpenThread:Ht,setRequestToOpenThread:$i,setOpenThread:qt}=v.useContext(Zn),{threads:gt,isLoading:Ye}=Xn({application:"dashboard",companyId:ke.currentTenant?.companyId,tab:"reimbursement",entityId:b,isGlobalComment:!1},"both",!1);v.useEffect(()=>{Ht?.threadId!=null&&gt.length>0&&!Ye&&(qt(Ht.threadId),$i(null))},[Ht,gt,Ye,qt,$i]);const Jn=v.useMemo(()=>b==null?[]:gt.filter(h=>h.resolved===!1&&!h.id.includes(eo)),[gt,b]).length,Qn=(h,D)=>{qt(D);const d=h.entityType.split("."),x=parseInt(d[2]);if(isNaN(x)){ae(!1);return}const $t=`${x+1}`,B=e.lineDetailSection[x+1].type;d.includes(y.mileageKey)&&B===y.outOfPocketKey?re(ee.toReimbursementTypeCode(y.mileageKey),$t,b):d.includes(y.outOfPocketKey)&&B===y.mileageKey&&re(ee.toReimbursementTypeCode(y.outOfPocketKey),$t,b),ae(!1)};return t.jsx(Rr,{ref:W,children:t.jsx(to,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:et.current??null}},children:t.jsxs(nn,{...$e,children:[t.jsx("form",{id:Qi(Ji),onSubmit:h=>_n(h),children:t.jsxs(rl,{windowSize:O,ref:et,children:[Bn?t.jsx(li,{titleComponent:t.jsx(an,{children:ce.title}),descriptionComponent:t.jsx(on,{children:ce.description}),primaryButtonText:ce.primaryButtonText,secondaryButtonText:ce.secondaryButtonText,action:En,proceedButtonVariant:ce.title===y.deleteBankAccountTitle||ce.title===y.deleteDraftTitle||ce.title===y.deleteReportTitle||ce.title===y.discardTitle?"danger":"primary",isEditPopup:ce.title===y.deleteBankAccountTitle}):null,Mn?t.jsx(fr,{reimbursementId:b,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:_t,numberOfDuplicateLines:Si,setShowDuplicatePopup:bi,submitReport:Hn,fetchDuplicateReimbursement:I,clearDuplicateReimbursementDetail:E,clearRemiSaveStatus:te,analytics:S}):null,He?t.jsx(Xi,{windowSize:O}):null,je?t.jsxs(Xi,{windowSize:O,"data-testid":q("skip-autofill-section"),children:[O==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Vr,{children:t.jsx(oi,{partOfSkipAutoFill:!0,size:O,onClick:()=>pt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ni,{withOverlay:!0,children:t.jsx(ii,{})})})}),t.jsx(Hr,{children:Ut})]}):null,t.jsx(xn,{showAutofill:je,analytics:S,onSkipAutofill:()=>{S?.trackReimbursementSkipAutofill(),pt(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:Z.leftSectionWidth.valuePercentage(O),boxSizing:"border-box",backgroundColor:O==="small"?We.colors.grey4:"unset",padding:O==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:O==="small"?i.sp0:void 0},onInvoiceUpload:h=>H(h,ht,!0),dropFilePlaceholder:{upload:y.dropReceipt.upload,single:y.dropReceipt.single,or:y.dropReceipt.or,multiple:y.dropReceipt.multiple,receipts:y.dropReceipt.receipts},updateInvoiceUploadFetchState:Le,showInfoText:!1,allowMultiFiles:je,type:"receipt"}),O!=="small"?t.jsx(_r,{children:t.jsx(oi,{partOfSkipAutoFill:!0,onClick:()=>pt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ni,{withOverlay:!0,children:t.jsx(ii,{})})})}):null]}):null,t.jsxs(tl,{windowSize:O,"data-testid":q("edit-reimbursement-detail-page-nav-bar-container"),children:[O!=="small"?t.jsx(ki,{style:{width:"42%"},"data-testid":q("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(il,{"data-testid":q("zeni-logo-spend-management-reimbursement-detail-page"),onClick:se}),enableTitleOnScroll:!1,scrollableContent:W,backgroundColor:We.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,O!=="small"?t.jsx(Or,{}):null,t.jsx(ki,{style:{width:Z.navBarWidth.valuePercentage(O)},"data-testid":q("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Ut,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:je!=!0?t.jsxs(nl,{children:[C&&b!=null?t.jsxs(ol,{isDisabled:Ye,"data-testid":q("remi-comment-button"),onClick:Ye?()=>null:h=>{h.preventDefault(),h.stopPropagation(),mt({roomId:wt,companyId:ke.currentTenant?.companyId??"",companyName:ke.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:b}),ae(!0),S?.trackCommentActivity("reimbursement","clicked",ke.currentTenant?.companyName??"",ke.controllersList.controllers.map(D=>no(D)),void 0,void 0,"page icon")},children:[t.jsx(io,{count:Ye?void 0:Jn,isLoading:Ye,style:{left:"12px"}}),t.jsx(al,{})]}):null,t.jsx(oi,{size:O,onClick:()=>fi(),"data-testid":q("close-nav-bar"),children:t.jsx(ni,{withOverlay:!1,children:t.jsx(ii,{})})})]}):null,enableTitleOnScroll:O!=="small",scrollThreshold:64,scrollableContent:W,backgroundColor:We.colors.grey4})]}),O==="small"?t.jsxs(t.Fragment,{children:[t.jsx(el,{children:Ut}),t.jsx(oo,{progressSectionObj:qn,createDate:e.createTime,paymentDate:Gn,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:b!=null?!0:e.uploadStatus==="Completed"}),Vt&&t.jsxs(Gr,{children:[t.jsx(Kr,{}),t.jsx(Yr,{children:y.banner})]}),e.isProcessing?t.jsx(rn,{variant:"warning",style:{margin:O==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Gi.duplicateWarning.title,description:Gi.duplicateWarning.description}):_t?t.jsxs(Jr,{size:O,children:[t.jsx(Br,{}),t.jsxs(Zr,{children:[t.jsx(Qr,{children:y.thereSeems}),t.jsx(Xr,{children:y.pleaseFind})]})]}):null,t.jsx($n,{isReimbursementCommentingEnabled:C,sectionId:Lt,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(Ka,{onDuplicateLineClick:A,reimbursementId:b,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:je,setShowSkipAutoFill:pt,isReimbursementCommentingEnabled:C,isAutoFieldsExist:Vt,totalAmount:ne,removeFileFromLine:ge,onReplaceClick:Un,onReceiptsUpload:H,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Rn,setUploadedReceiptPayload:zn,updateInvoiceUploadFetchState:Le,clearTentativeNameForLine:Ae,defaultCurrency:r,companyMileageConfigInfo:u,isUserAdmin:m,setShowBankAccountPage:Ft,bankAccounts:s,onDeleteBankAccount:Wn,analytics:S,fileRequiredLineIds:Nt,isSignedInUserReimbursementCreator:g,uncategorizedAccounts:w,showTotalAmountLoader:ut,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:_t,removeDuplicateReimbursementForLine:pe,scrollContainerRef:W}),t.jsxs(ll,{showSkipAutoFill:je,windowSize:O,children:[O!=="small"?t.jsx(Zi,{}):null,t.jsx(sl,{windowSize:O,children:t.jsxs(cl,{windowSize:O,children:[e.remiId!==void 0&&t.jsx(Ii,{amount:ne??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:Se,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&ne!=null&&ne>0?t.jsx(Ii,{amount:ne??0,activities:wi,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(dl,{}),t.jsxs(qr,{showSkipAutoFill:je,windowSize:O,children:[O!=="small"?t.jsx(Zi,{}):null,t.jsx(Lr,{windowSize:O,onClick:h=>{h.stopPropagation(),Ue===!0&&Ve(!1)},children:t.jsx(ln,{formId:Qi(Ji),separatorStyle:{marginRight:i.sp4},showCancel:g,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?O==="small"?y.buttons.discard:y.buttons.discardChanges:O==="small"?y.buttons.save:y.buttons.saveChanges,isLoading:qe==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:xi,style:{width:Z.footerButtonWidth.value(O)},reverseSpinnerColor:!1},primaryBtn:{label:Pr(g,m,e,O),isDisabled:!g,style:{width:g?Z.footerButtonWidth.value(O):"auto"},type:g?"submit":"button",onClick:g?()=>null:xi,isLoading:!g&&qe==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Ar,{children:t.jsxs(Nr,{windowSize:O,children:[Ue?t.jsx(sn,{onClickAway:()=>Ve(!1),children:t.jsx(Er,{windowSize:O,"data-testid":q("remi-other-actions-container"),children:t.jsx(Wr,{onClick:Nn,"data-testid":q("delete-report-action"),children:y.buttons.deleteReport})})}):null,t.jsx(Fr,{windowSize:O,children:Yn===!0?t.jsx(Mr,{windowSize:O,"data-testid":q("more-details-button"),children:t.jsx(zr,{onClick:()=>Ve(!Ue)})}):null})]})}),style:{minHeight:62}})})]}),C&&b!=null?t.jsx(Po,{id:wt,children:t.jsx(ao,{isDrawerOpen:F,allowComposer:!0,drawerTitle:vr,threads:gt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:U?.companyId??Cr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Ye,threadMetadata:U?{companyName:U.companyName,companyId:U.companyId,entityId:U.entityId,entityType:U.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:kr,replyComposerPlaceholder:Ir,threadResolve:Dr,threadUnResolve:Tr},onThreadClick:(h,D)=>Qn(h,D),onCloseAllThreadsDrawer:()=>ae(!1),drawerSectionStyle:{width:"400px",backgroundColor:We.colors.background}})}):null]})}),On?t.jsx(Ur,{windowSize:O,children:t.jsx(rr,{bankAccountCreationState:k,setShowBankAccountPage:Ft,plaidConnectionDetails:l,onFetchLinkTokenClick:ze,onEstablishConnectionClick:ye,onSaveHandler:L,bankAccountToCreate:P,bankNameByRouting:f,fetchBankNameByRoutingStatus:T,onUserBankDetailsUpdated:$,onFetchBankName:K,onBackClick:()=>{dt(),Ft(!1)}})}):null]})})})},Pr=(e,o,r,u)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?y.buttons.resubmit:y.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?u==="small"?y.buttons.discard:y.buttons.discardChanges:u==="small"?y.buttons.save:y.buttons.saveChanges,Rr=n.div`
620
+ position: relative;
621
+ height: 100vh;
622
+ overflow-y: scroll;
623
+ `,Or=n.div`
624
+ position: fixed;
625
+ top: 0;
626
+ left: 42vw;
627
+ width: 100%;
628
+ height: 100vh;
629
+ background: transparent;
630
+ box-shadow: 0 2px ${i.sp1} ${({theme:e})=>e.colors.dropShadowNormal};
631
+ pointer-events: none;
632
+ z-index: 3;
633
+ `,Lr=n.div`
634
+ width: ${e=>Z.rightSectionWidth.valuePercentage(e.windowSize)};
635
+ `,Ar=n.div`
636
+ display: flex;
637
+ justify-content: flex-end;
638
+ `,zr=n(mo)`
639
+ cursor: pointer;
640
+ color: ${e=>e.theme.colors.hero};
641
+ width: ${i.sp5};
642
+ height: ${i.sp5};
643
+ &:hover {
644
+ color: ${e=>e.theme.colors.primary};
645
+ }
646
+ `,Br=n(jo)`
647
+ width: ${i.sp4};
648
+ height: ${i.sp4};
649
+ color: ${j.brandColorGoldDark};
650
+ `,Mr=n.div`
651
+ display: flex;
652
+ margin-left: ${e=>e.windowSize==="small"?i.sp4:i.sp5};
653
+ cursor: pointer;
654
+ color: ${e=>e.theme.colors.grey1};
655
+ &:hover {
656
+ color: ${e=>e.theme.colors.primary};
657
+ }
658
+ `,Fr=n.div`
659
+ display: flex;
660
+ justify-content: center;
661
+ align-items: center;
662
+ `,Er=n.div`
663
+ display: flex;
664
+ width: auto;
665
+ align-items: center;
666
+ justify-content: center;
667
+ flex-direction: column;
668
+ background-color: ${e=>e.theme.colors.grey5};
669
+ color: ${e=>e.theme.colors.hero};
670
+ cursor: pointer;
671
+ padding-top: ${i.sp1};
672
+ padding-bottom: ${i.sp1};
673
+ position: absolute;
674
+ bottom: ${e=>Z.otherActionsContainerBottom.valuePx(e.windowSize)};
675
+ z-index: 3;
676
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
677
+ border-radius: ${i.sp1};
678
+ right: ${e=>Z.right.valuePx(e.windowSize)};
679
+ box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.grey1} 3D`};
680
+ `,Nr=n.div`
681
+ width: 100%;
682
+ justify-content: flex-end;
683
+ position: ${e=>e.windowSize==="small"?"static":"relative"};
684
+ right: ${e=>Z.actionsContainerRight.valuePx(e.windowSize)};
685
+ height: 100%;
686
+ display: flex;
687
+ `,Wr=n(mi)`
688
+ display: flex;
689
+ align-items: center;
690
+ width: -webkit-fill-available;
691
+ padding-left: ${i.sp3};
692
+ padding-right: ${i.sp3};
693
+ height: ${i.sp6};
694
+ box-sizing: border-box;
695
+ &:hover {
696
+ background-color: ${e=>e.theme.colors.background};
697
+ }
698
+ `,Ur=n.div`
699
+ overflow-y: auto;
700
+ z-index: 5;
701
+ height: 100vh;
702
+ position: fixed;
703
+ background: ${e=>e.theme.colors.grey4};
704
+ width: ${e=>Z.rightSectionWidth.valuePercentage(e.windowSize)};
705
+ right: 0;
706
+ top: 0;
707
+ `,Vr=n.div`
708
+ background: ${e=>e.theme.colors.grey4};
709
+ height: 44px;
710
+ display: flex;
711
+ align-items: center;
712
+ justify-content: end;
713
+ `,_r=n.div`
714
+ width: 58%;
715
+ `,Hr=n(ci)`
716
+ padding: ${i.sp3} ${i.sp3} 0 ${i.sp3};
717
+ background: ${e=>e.theme.colors.grey4};
718
+ color: ${e=>e.theme.colors.primary};
719
+ `,qr=n.div`
720
+ display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
721
+ width: 100%;
722
+ position: fixed;
723
+ bottom: 0;
724
+ z-index: 3;
725
+ `,Zi=n.div`
726
+ width: 42%;
727
+ `,Kr=n(di)`
728
+ color: ${e=>e.theme.colors.primary};
729
+ width: ${i.sp3};
730
+ height: ${i.sp3};
731
+ `,Gr=n.div`
732
+ display: flex;
733
+ gap: ${i.sp2};
734
+ border: 1px solid ${e=>e.theme.colors.grey3};
735
+ padding: ${i.sp3};
736
+ border-radius: ${i.sp2};
737
+ align-items: center;
738
+ margin: ${i.sp3};
739
+ `,Yr=n.span`
740
+ color: ${e=>e.theme.colors.hero};
741
+ `,Jr=n.div`
742
+ display: flex;
743
+ gap: ${i.sp2};
744
+ padding: ${i.sp3};
745
+ border-radius: ${i.sp2};
746
+ align-items: start;
747
+ margin-top: ${e=>Z.duplicateBannerWrapperMarginTop.valuePx(e.size)};
748
+ margin-right: ${e=>Z.duplicateBannerWrapperMarginRight.valuePx(e.size)};
749
+ margin-bottom: ${e=>Z.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
750
+ margin-left: ${e=>Z.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
751
+ background-color: ${j.alertLight};
752
+ border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
753
+ `,Qr=n(Mt)`
754
+ color: ${e=>e.theme.colors.brandColorGoldDark};
755
+ `,Zr=n.div`
756
+ width: 100%;
757
+ `,Xr=n(hi)`
758
+ color: ${e=>e.theme.colors.brandColorGoldDark};
759
+ `,el=n(ci)`
760
+ letter-spacing: -0.02em;
761
+ color: ${e=>e.theme.colors.primary};
762
+ margin: ${i.sp3};
763
+ `,Xi=n.div`
764
+ display: flex;
765
+ flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
766
+ height: 100vh;
767
+ visibility: inherit;
768
+ width: 100%;
769
+ background-color: ${j.overlayDark};
770
+ z-index: 11; // This is to ensure that the skip autofill section is above the AI CFO icon whose value is 10
771
+ position: fixed;
772
+ `,tl=n.div`
773
+ z-index: 3;
774
+ min-height: 62px;
775
+ height: 62px;
776
+ display: flex;
777
+ align-items: center;
778
+ width: 100%;
779
+ justify-content: space-between;
780
+ position: fixed;
781
+ `,il=n(lo)`
782
+ display: flex;
783
+ color: ${e=>e.theme.colors.brandColorJade};
784
+ cursor: pointer;
785
+ width: ${i.sp4};
786
+ height: ${i.sp4};
787
+ `,ii=n(cn)`
788
+ cursor: pointer;
789
+ width: ${i.sp4};
790
+ height: ${i.sp4};
791
+ float: right;
792
+ color: inherit;
793
+ `,ni=n.div`
794
+ color: ${e=>e.theme.colors.hero};
795
+ &:hover {
796
+ color: ${e=>e.withOverlay?j.primaryDark:e.theme.colors.primary};
797
+ }
798
+ `,nl=n.div`
799
+ margin-top: ${e=>Z.closeMarginTop.valuePx(e.windowSize)};
800
+ display: flex;
801
+ float: right;
802
+ `,ol=n.div`
803
+ display: flex;
804
+ align-items: center;
805
+ justify-content: center;
806
+ position: relative;
807
+ float: right;
808
+ cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
809
+ color: ${e=>e.theme.colors.hero};
810
+ &:hover {
811
+ color: ${e=>e.theme.colors.primary};
812
+ }
813
+ `,al=n(so)`
814
+ display: flex;
815
+ width: ${i.sp4};
816
+ height: ${i.sp4};
817
+ align-items: center;
818
+ justify-content: center;
819
+ `,oi=n.div`
820
+ margin-top: ${e=>e.partOfSkipAutoFill===!0?Z.closeMarginTop.valuePx(e.size):0};
821
+ margin-left: ${i.sp5};
822
+ margin-right: ${e=>e.partOfSkipAutoFill===!0?Z.closeMarginRight.valuePx(e.size):0};
823
+ `,rl=n.div`
824
+ display: flex;
825
+ flex-direction: column;
826
+ width: 100vw;
827
+ overflow-x: hidden;
828
+ background: -webkit-linear-gradient(
829
+ to right,
830
+ ${e=>e.theme.colors.background} 42%,
831
+ ${e=>e.theme.colors.grey4} 42%
832
+ );
833
+ background: -moz-linear-gradient(
834
+ to right,
835
+ ${e=>e.theme.colors.background} 42%,
836
+ ${e=>e.theme.colors.grey4} 42%
837
+ );
838
+ background: -o-linear-gradient(
839
+ to right,
840
+ ${e=>e.theme.colors.background} 42%,
841
+ ${e=>e.theme.colors.grey4} 42%
842
+ );
843
+ background: linear-gradient(
844
+ to right,
845
+ ${e=>e.theme.colors.background} 42%,
846
+ ${e=>e.theme.colors.grey4} 42%
847
+ );
848
+ ${e=>e.windowSize==="small"&&`
849
+ background: ${e.theme.colors.grey4};
850
+ `}
851
+ min-height: 100vh;
852
+ `,ll=n.div`
853
+ display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
854
+ width: 100%;
855
+ margin-bottom: ${e=>Z.bottomMargin.valuePx(e.windowSize)};
856
+ `,sl=n.div`
857
+ width: ${e=>Z.rightSectionWidth.valuePercentage(e.windowSize)};
858
+ `,cl=n.div`
859
+ margin-left: ${e=>Z.leftMargin.valuePx(e.windowSize)};
860
+ margin-right: ${e=>Z.rightMargin.valuePx(e.windowSize)};
861
+ `,dl=n.div`
862
+ display: flex;
863
+ flex-direction: column;
864
+ height: ${i.sp11};
865
+ `;export{Pl as default,Qi as uniqueName};