@zeniai/web-cockpit-ui 1.14.72-dev → 1.14.72-dev-betaSK01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-BZFkcCOG-Bm0yzLzS.js → ACHDetailsPage-BZFkcCOG-WfBPHoUX.js} +2 -2
- package/dist/assets/{AIPerformancePage-DtNLjoUW-C8WssBlV.js → AIPerformancePage-DtNLjoUW-CinUSJg2.js} +124 -124
- package/dist/assets/{AccountInfoPage-D-E_-WpE-D3xkesKo.js → AccountInfoPage-D-E_-WpE-DJyb7x4k.js} +2 -2
- package/dist/assets/{AccountInfoPageContent-B8GKrtCm-Bl_GPEk1.js → AccountInfoPageContent-B8GKrtCm-10kK72ec.js} +13 -13
- package/dist/assets/AccountLockedInfoModal-BD7Nb81U-ZCs8qzoa.js +59 -0
- package/dist/assets/AccountReconDetailsDrawerPage-D-_ME0pV-BuvZZBZ-.js +239 -0
- package/dist/assets/{AccountRow-Be3LIHO--AtWCxnkE.js → AccountRow-Be3LIHO--BjLJB43L.js} +32 -32
- package/dist/assets/AccountsPromoCardStack-CdBwPVgI-CkQ7kJh8.js +207 -0
- package/dist/assets/{AddAddressForCardDrawer-Lm7cn4kq-BwSuj-eK.js → AddAddressForCardDrawer-Lm7cn4kq-DzFp-OyN.js} +2 -2
- package/dist/assets/{AddToWalletPage-nSq-9dQy-DNXeo8yV.js → AddToWalletPage-nSq-9dQy-D56Hf4hb.js} +13 -13
- package/dist/assets/AgingReportsPage-L0zQxwCf-D3sUJmot.js +79 -0
- package/dist/assets/AllUserItems-CvwaOEhu-DISgj-9d.js +192 -0
- package/dist/assets/ApAgingDetailPage-B_78aSEv-DLL7XkHo.js +46 -0
- package/dist/assets/{AppBasePage-Br0WbQRY-C5P2SI_a.js → AppBasePage-Br0WbQRY-BAK8zLlg.js} +5 -5
- package/dist/assets/{AppDrawerContent-BZODvVvi-DO9-i0u3.js → AppDrawerContent-BZODvVvi-DQ-V9QL0.js} +7 -7
- package/dist/assets/ApprovalRulesSettingsPage-Dxd7A3hZ-CRTSWRxG.js +47 -0
- package/dist/assets/ArAgingChart-BezVy1Sm-ClcQ64wd.js +24 -0
- package/dist/assets/{ArAgingDetailPage-BlV3iJeW-DvSoM4Rd.js → ArAgingDetailPage-BlV3iJeW-D0lCDh_0.js} +3 -3
- package/dist/assets/{AttachmentView-DhluaeAV-DnrJUkr5.js → AttachmentView-DhluaeAV-DsM43aN0.js} +9 -9
- package/dist/assets/{BankAccountSection-GDEQdiGL-CuwfGvXF.js → BankAccountSection-GDEQdiGL-CmBLlIS1.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-Di_BsiJC-Cp36wJhl.js → BankAccountWarningSection-Di_BsiJC-_Ul1tNJQ.js} +9 -9
- package/dist/assets/BankConnectionsSettingsPage-D5hI4xtm-ik9FJnty.js +425 -0
- package/dist/assets/BillDetailPage-CDAh8Jtl-wk3WJY1W.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-BzyTn4mC-DYCBn6RW.js → BillPayApprovalRuleDetailPage-BzyTn4mC-DxDRXjZW.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DDJ-LxQz-D20J03DB.js → BillPayApprovalRulesPage-DDJ-LxQz-B-4hhNoy.js} +7 -7
- package/dist/assets/BillPayPromoPage-B2YcxWc9-ChjVVUdj.js +84 -0
- package/dist/assets/BillPaySetUpPage-oJvoWpFu-ZQ44J65y.js +42 -0
- package/dist/assets/BillingSettingsPage-BRsKYzT5-C1YZEc97.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-B7tORIok-09a60H-u.js +1 -0
- package/dist/assets/{BoxItem-COIjjFrn-DqU4ZyNU.js → BoxItem-COIjjFrn-CYZK_lth.js} +4 -4
- package/dist/assets/BusinessVerificationPage-Nw_fedst-Ce7UF4J6.js +138 -0
- package/dist/assets/{CardNumberSubText-CmhH95Ff-CLBGKyAX.js → CardNumberSubText-CmhH95Ff-D70_vfvB.js} +2 -2
- package/dist/assets/{CashbackDetailPage-BPLjvuA3-362WFi2j.js → CashbackDetailPage-BPLjvuA3-D2AlurqK.js} +56 -56
- package/dist/assets/{ChargeCardDetailPage-qOu4cPGd-BUoeKuHJ.js → ChargeCardDetailPage-qOu4cPGd-CMQ9x73T.js} +215 -215
- package/dist/assets/ChargeCardListPage-v5hH98Wi-BhiUhdgm.js +406 -0
- package/dist/assets/{ChargeCardListTable-BGWV4zJl-fPTlw7hA.js → ChargeCardListTable-BGWV4zJl-CcT6S7FA.js} +51 -51
- package/dist/assets/ChargeCardPromoPage-CPEaGOL3-CiA1pNTj.js +222 -0
- package/dist/assets/ChargeCardSetupPage-G5Rn0o6y-Bqw8Kqbv.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-CJgUrcLz-BpTcE_Fq.js → ChargeCardStatementsPage-CJgUrcLz-BY-SWhAj.js} +3 -3
- package/dist/assets/ChargeCardUtils-BRgkrCTs-Bo37IpfS.js +1 -0
- package/dist/assets/{ChaseOverlay-BC_4vwtb-ZJ37WP7g.js → ChaseOverlay-BC_4vwtb-BQqHx8M-.js} +4 -4
- package/dist/assets/{CheckDepositDrawerPage-CDo5E13X-BcLnzbHC.js → CheckDepositDrawerPage-CDo5E13X-CKNKZDF1.js} +21 -21
- package/dist/assets/CollapsableReportTable-7iAngywY-BhPujiYA.js +2932 -0
- package/dist/assets/CompanyOfficerDetailsSection-CJKyxEnf-B2MTqDnr.js +260 -0
- package/dist/assets/{CompanyPassportCard-D3F01eJL-CYg3XwZh.js → CompanyPassportCard-D3F01eJL-BhEJq4YF.js} +1 -1
- package/dist/assets/CompanyPassportPage-BQoEcPJr-CLTXsXdq.js +574 -0
- package/dist/assets/CompleteProfile-D5e9TQgy-B3NCfzYL.js +52 -0
- package/dist/assets/{ConfettiBurst--HIHB7Os-CFkZhGnX.js → ConfettiBurst--HIHB7Os-S4QyIwiq.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D9jmSrKr-BqbzMjKm.js → CreateOrEditVendorPage-D9jmSrKr-DpdjBsSE.js} +11 -11
- package/dist/assets/CreditCardPaymentDrawerPage-DXeq4z9l-C-tETdxW.js +224 -0
- package/dist/assets/{CreditCardPaymentPlgSection-8ZShMO31-D_nbIzHo.js → CreditCardPaymentPlgSection-8ZShMO31-COciJwfu.js} +10 -10
- package/dist/assets/{CurrencySelectField-nhg_dhDw-Ct_sJsLw.js → CurrencySelectField-nhg_dhDw-nZHVWMo0.js} +6 -6
- package/dist/assets/{CustomerOnboardingActivationPage-CoGvz7Kd-2HboMU2B.js → CustomerOnboardingActivationPage-CoGvz7Kd-1Tt5lNh3.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-CdqN8qku.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DUGRKWtN-Bm0dGA9J.js → CustomerOnboardingDetailPageSkeleton-DUGRKWtN-ClKlbRH6.js} +13 -13
- package/dist/assets/{CustomerOnboardingNoStepsPage-Cc5frP29-BNFSu_0c.js → CustomerOnboardingNoStepsPage-Cc5frP29-Pt9D5fwX.js} +6 -6
- package/dist/assets/CustomerOnboardingPage-zBqp9QN6-BMM-roBm.js +107 -0
- package/dist/assets/CustomerOnboardingProductSuitePage-BbJ4oiCI-DgRG1l8f.js +202 -0
- package/dist/assets/{Dashboard-D6Ba5oj0-DGZ5Ekyf.js → Dashboard-D6Ba5oj0-C5iZr7Dc.js} +262 -262
- package/dist/assets/DashboardReportPage-DTMbYOWH-B0H-UpGg.js +371 -0
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Locz2zHR-BPk9MxB4.js → DashboardSidebarBackgroundAnimation-Locz2zHR-Bhgpjfq-.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-B0BGwVqF-CxL2uxQm.js → DepositAccTransactionItem-B0BGwVqF-Cwta5ei3.js} +5 -5
- package/dist/assets/DepositAccTransactionListPage-CcO673ZL-D1h5XemH.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-D5hbPNCt-Bhq4tM9b.js +21 -0
- package/dist/assets/DownloadOverlay-DRcasKoB-BTfb8tZj.js +439 -0
- package/dist/assets/{DrawerPage-BRD6cE6J-CdG9rNJx.js → DrawerPage-BRD6cE6J-1UMYAHb7.js} +13 -13
- package/dist/assets/EditPeoplePage-Zzo62if7-Clw_H_tG.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-DgdwTZwz.js +865 -0
- package/dist/assets/EntityDetailPage-CzlzOW8n-CjIrlTQm.js +18 -0
- package/dist/assets/{EntitySummarySection-BRt1kPDf-BrvMzC_z.js → EntitySummarySection-BRt1kPDf-DQbEIQFx.js} +28 -28
- package/dist/assets/{ExpenseAutomationOverviewPage-vUkGameq-D28DcERt.js → ExpenseAutomationOverviewPage-vUkGameq-CHnaqssF.js} +50 -50
- package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-DxIRsn8B.js +1650 -0
- package/dist/assets/ExpressPayPage-DdQiFzDu-CXe6diRB.js +168 -0
- package/dist/assets/{FeaturePreviewPage-CQN2xThT-D8GcVVCI.js → FeaturePreviewPage-CQN2xThT-DJXN60Ac.js} +3 -3
- package/dist/assets/{FollowStepsSection-DdwEVWhG-XjqeMDlz.js → FollowStepsSection-DdwEVWhG-yjJ5FRCa.js} +21 -21
- package/dist/assets/GlobalReviewListPage-DHn2Uk8R-Dz5cpAt1.js +291 -0
- package/dist/assets/HelpButton-BNMy-6ce-CVlMGZqS.js +28 -0
- package/dist/assets/{InformationCardStack-Cw7c9Pnd-JKEjusS_.js → InformationCardStack-Cw7c9Pnd-BX2LTL8l.js} +2 -2
- package/dist/assets/InsightsCardStack-CaMZiCnn-DLt2ZmbV.js +79 -0
- package/dist/assets/{InsightsSection-JIKb9lz3-CSUvMdaP.js → InsightsSection-JIKb9lz3-Hi0aN8hq.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-h4pel2yK-CfkisAjm.js → IntegrationsSettingsPage-h4pel2yK-CxqwarZy.js} +4 -4
- package/dist/assets/{InternationalWireSwiftDetailsPage-C2SnHEV1-D4h6wt17.js → InternationalWireSwiftDetailsPage-C2SnHEV1-CzlIxaS1.js} +16 -16
- package/dist/assets/{InternationalWireVerificationPage-Dk11ztF7-CGQwkBKG.js → InternationalWireVerificationPage-Dk11ztF7-BCCRbUea.js} +28 -28
- package/dist/assets/{InviteFormPage-CrtH0cSG-lBcBfRNC.js → InviteFormPage-CrtH0cSG-eVIYbN0r.js} +16 -16
- package/dist/assets/{InvitePageListView-DUoopPip-D3WES4Ay.js → InvitePageListView-DUoopPip-D5qrm4ww.js} +164 -164
- package/dist/assets/InvitePeoplePage-C3ecL8XJ-olYxQVFB.js +12 -0
- package/dist/assets/InvoiceUploadSection-DoR834b4-CjFOCIIZ.js +140 -0
- package/dist/assets/{IssueChargeCardPage-D6DCohbK-CY0NLJ-D.js → IssueChargeCardPage-D6DCohbK-BMG4Ljit.js} +10 -10
- package/dist/assets/{LabeledAddressValue-C3R0DSjj-DSFQoK0_.js → LabeledAddressValue-C3R0DSjj-CpxXKm9c.js} +1 -1
- package/dist/assets/LabeledAddressValueField-YP7bXlgZ-D9-PqJNp.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-zwoLFM1n-WAKwiqVu.js → LabeledControlledCheckBoxField-zwoLFM1n-B44wDW2V.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BhaeopJt-r1U--LmU.js → LabeledCreatableSingleSelectField-BhaeopJt-tsmH64cn.js} +7 -7
- package/dist/assets/LabeledDocumentField-ED03S2kQ-BGespvxP.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-brzU_fnp-DR9C1PhE.js → LabeledDropDownFormattedTextField-brzU_fnp-hUkbh0bF.js} +5 -5
- package/dist/assets/{LabeledText-BESSkt5Z-DvRhicFs.js → LabeledText-BESSkt5Z-CPDVK04g.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-BRFp4N3Z.js → LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-DaWgPr9f.js} +18 -18
- package/dist/assets/{LabeledZeniRolesDropDownField-BXTCN4j2-C9dcF_vL.js → LabeledZeniRolesDropDownField-BXTCN4j2-CLEMt0Ht.js} +33 -33
- package/dist/assets/LinkJETransactionPage-_ROjxBMO-C6IEO3Ec.js +98 -0
- package/dist/assets/{LockCardPage-DYfgK11k-CA2sqFlt.js → LockCardPage-DYfgK11k-BFAZ4k7o.js} +71 -71
- package/dist/assets/LowBalancePopup-CZDcHxyW-BSR036zV.js +34 -0
- package/dist/assets/{MagicLinkACHDetailsPage-CLXcRbZ--CVcTUs2d.js → MagicLinkACHDetailsPage-CLXcRbZ--B-X6oebP.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CZlZr96w-BPglJFOV.js → MagicLinkDomesticWireDetailsPage-CZlZr96w-DllJxuHV.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DhPjvv0o-DFwZaRYm.js → MagicLinkInternationalWireDetailsPage-DhPjvv0o-BIaiGIsd.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Bh2nlLPN-Ddx1hbRe.js → MagicLinkSuccessPage-Bh2nlLPN-6rfZopUb.js} +3 -3
- package/dist/assets/MagicLinkTitleSection-Cn1v72Rs-Dx0fyRw5.js +17 -0
- package/dist/assets/{MailingDetailsSection-9RwlQxVG-C09sdGhg.js → MailingDetailsSection-9RwlQxVG-_UrE81Sw.js} +2 -2
- package/dist/assets/{MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js → MeetingCalenderPopup-BxV_UIXP-BXGtVHle.js} +4 -4
- package/dist/assets/Menu-B6iTf2H7-Cu2Vb11u.js +17 -0
- package/dist/assets/MyBankConnectionsSettingsPage-IPPiH6jv-uU5Nku5W.js +110 -0
- package/dist/assets/MyPendingActivationChargeCardListPage-BTGb1yIE-yyVAdXqO.js +6 -0
- package/dist/assets/MyProfileSettingsPage-BRK5nWg2-BCkp79gR.js +85 -0
- package/dist/assets/{NavBarWithPicker-CKh_HMfV-U1f60LTo.js → NavBarWithPicker-CKh_HMfV-i4ObGPrS.js} +4 -4
- package/dist/assets/{NavigationArrow-XZmJpDrE-BSGdgz-m.js → NavigationArrow-XZmJpDrE-DolsLofY.js} +2 -2
- package/dist/assets/{NavigationDots-BxPgEW_p-CnLRJgGA.js → NavigationDots-BxPgEW_p-Cjr25BX_.js} +3 -3
- package/dist/assets/{NewGlobalMerchantPage-CQzrDe0S-CFbklyjG.js → NewGlobalMerchantPage-CQzrDe0S-K2NUXsKS.js} +35 -35
- package/dist/assets/{NoDataChart-5E72SElf-Bfyft1Tp.js → NoDataChart-5E72SElf-3CnLxisw.js} +4 -4
- package/dist/assets/{NoDataTable-BwHbkm3l-C4AJlFQY.js → NoDataTable-BwHbkm3l-VTHrTfOq.js} +2 -2
- package/dist/assets/{NotFoundPage-6udaksBZ-Bdrzyyzv.js → NotFoundPage-6udaksBZ-DUgTbMe0.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DkYmxMgg-B7fNoy2R.js → NotificationSettingsPage-DkYmxMgg-BVRECpS0.js} +32 -32
- package/dist/assets/{NotificationsListConfig-FGxLgO1o-Bjqs17aQ.js → NotificationsListConfig-FGxLgO1o-C0kfEx8A.js} +1 -1
- package/dist/assets/NotificationsPage-C7lSAnUb-CEUwTZM_.js +685 -0
- package/dist/assets/{OpExByVendorPage-CM0RluUk-BgpW2giu.js → OpExByVendorPage-CM0RluUk-PZB-G7xm.js} +4 -4
- package/dist/assets/{OverlayContainerPage-BKHs_4eI-mLdiagVZ.js → OverlayContainerPage-BKHs_4eI-CSsJiY_P.js} +2 -2
- package/dist/assets/PandLWithForecastPage-W4jlNjml-8wxKAhbo.js +107 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQ82eP9Q-ChYOGpfy.js → PaymentAccountSetupBillingAddressSection-DQ82eP9Q-Cwm2aoR2.js} +9 -9
- package/dist/assets/{PeoplePage-CB3T3u_F-DC1PdCPq.js → PeoplePage-CB3T3u_F-BR69e4ui.js} +96 -96
- package/dist/assets/{PortfolioAllocationFormPage-CZkJD6tu-CmTdPnvM.js → PortfolioAllocationFormPage-CZkJD6tu-1mutznS7.js} +13 -13
- package/dist/assets/{PortfolioDetails-D4yT8r35-DSk0Sc23.js → PortfolioDetails-D4yT8r35-BZAutCbg.js} +34 -34
- package/dist/assets/{ProductsCarousel-CR7_rk0K-DQWJaP-C.js → ProductsCarousel-CR7_rk0K-CKMGS-I4.js} +7 -7
- package/dist/assets/{PromoBaseCards-BAPolzxE-DLtmx-3v.js → PromoBaseCards-BAPolzxE-DjUVr5kX.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-D3eazhj7-fJDNmSLU.js → QBOConnectionDialog-D3eazhj7-DCdAj667.js} +7 -7
- package/dist/assets/{QBOSetupSection-Cjjhm_Ee-CrlXRkit.js → QBOSetupSection-Cjjhm_Ee-CX61tnWs.js} +12 -12
- package/dist/assets/ReimbursementApprovalRuleDetailPage-eidNY097-DDLdjGbX.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-GSzJGSuy-H2GhhV11.js → ReimbursementApprovalRulesPage-GSzJGSuy-DOLnlfRe.js} +12 -12
- package/dist/assets/ReimbursementDetailPage-AvqEBxbz-ByJDRCe5.js +314 -0
- package/dist/assets/ReimbursementPromoPage-PshodHUZ-CEBQKb7P.js +84 -0
- package/dist/assets/ReimbursementSetUpPage-6P4FT-UC-BMbaH1eU.js +140 -0
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-Cas6GzVp-CEJlVV08.js +1 -0
- package/dist/assets/{ReloadCard-Dpoxd9nE-B9DlyhD4.js → ReloadCard-Dpoxd9nE-_RGkkZLm.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-Ci-WKrCO-DAZRgQwg.js → ReportTableViewSelector-Ci-WKrCO-D0sA8766.js} +30 -30
- package/dist/assets/ReportsPage-C7zirS74-oNrbhh6a.js +121 -0
- package/dist/assets/{RevenueChart-CXMBT3cr-DnDEiqPG.js → RevenueChart-CXMBT3cr-BigDcfmP.js} +29 -29
- package/dist/assets/ReviewDetailsPage-ClsyL5-w-rKSUEvaS.js +290 -0
- package/dist/assets/{ReviewOverlay-C6Kx7Hfm-IahzUsv3.js → ReviewOverlay-C6Kx7Hfm-Aab2M4el.js} +12 -12
- package/dist/assets/{RoleWithToolTip-BqI6M0x_-CwUqJeb5.js → RoleWithToolTip-BqI6M0x_-3Pz3ZAbU.js} +2 -2
- package/dist/assets/ScheduleDetailsFixedAssetsPage-zFyJPVpN-Dm8QVj-0.js +37 -0
- package/dist/assets/ScheduleDetailsPage-BftjSvA7-D97uCI5t.js +37 -0
- package/dist/assets/{ScheduleSequenceTable-lTN7r0p4-BFWt_8N-.js → ScheduleSequenceTable-lTN7r0p4-BmAjQVGV.js} +42 -42
- package/dist/assets/ScreenRoutes-Du6t5Ig_.js +206 -0
- package/dist/assets/SetUpAccountSection-Bnbi8X23-7-Jadv9H.js +378 -0
- package/dist/assets/{SetUpDefaultSection-Bm1eZSgT-BcxYXAIw.js → SetUpDefaultSection-Bm1eZSgT-9DFPAVat.js} +13 -13
- package/dist/assets/{SignIn-BlISBvt5-C9HXqHPg.js → SignIn-BlISBvt5-BSeULTEW.js} +28 -28
- package/dist/assets/SignInScreen-BN2xWnU-.js +1 -0
- package/dist/assets/SpendManagementListViewPage-ChNp8dgm-ByNxcaX6.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-D-bOr2-6-C5z49u7s.js +754 -0
- package/dist/assets/SpendManagementSection-kucZgC-H-Cqflt6S1.js +230 -0
- package/dist/assets/SpendMgmtSetupAccountSection-de7hEmtE-9bAK-YlL.js +206 -0
- package/dist/assets/{StatementItem-BVIVLdDn-BLcyHqWZ.js → StatementItem-BVIVLdDn-DWQxeT2X.js} +2 -2
- package/dist/assets/StatementsPage-KnLUSJbm-DVR36Ge4.js +58 -0
- package/dist/assets/{StatusSwitcher-aAizq1mr-D4E7X1zy.js → StatusSwitcher-aAizq1mr-c-jcIGD9.js} +2 -2
- package/dist/assets/{SubTabSwitcher-COrYJ6CW-B2hsvJe_.js → SubTabSwitcher-COrYJ6CW-BIZF-iNv.js} +1 -1
- package/dist/assets/{SummaryCard-Dv0dWKBw-BnK7xgrF.js → SummaryCard-Dv0dWKBw-CGu-GHYa.js} +1 -1
- package/dist/assets/TaskManagementPage-CPLyyK1Y-BZe-OFxL.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-ifkHfqEg-CGFdCObN.js → TimeRangeSwitcher-ifkHfqEg-VY1vzvIS.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-BP-PxO5g-DG6ysLlp.js → TimeframeSwitcher-BP-PxO5g-DxTIS9PI.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DH-PfsTQ-Dd12kokF.js → TimeframeSwitcherWithToggle-DH-PfsTQ-D7U0L-cV.js} +1 -1
- package/dist/assets/{TopExCard-Bam-Q4MV-GCmLzO6i.js → TopExCard-Bam-Q4MV-BsP_HKjG.js} +6 -6
- package/dist/assets/{TopExDetailPage-P0Twt5zZ-BElfoauE.js → TopExDetailPage-P0Twt5zZ-CoHp8hDQ.js} +12 -12
- package/dist/assets/TransactionDetailPage-D1Z1f-DD-BPMl_wDr.js +912 -0
- package/dist/assets/TransactionList-BzJEbOV9-0ST5sY1-.js +147 -0
- package/dist/assets/{TransactionListBig-u4SJBZTE-BZvqZwTB.js → TransactionListBig-u4SJBZTE-BlGBIBoN.js} +44 -44
- package/dist/assets/{TransactionListPage-D4GJ6i3l-BXLL3BhX.js → TransactionListPage-D4GJ6i3l-yaso0Nlb.js} +3 -3
- package/dist/assets/{TransactionVendorDetailPage-CuFHbm8c-Cl9iluIt.js → TransactionVendorDetailPage-CuFHbm8c-kFca8x3E.js} +5 -5
- package/dist/assets/{TransferDrawerPage-GD2I8ptj-B7cXbGdy.js → TransferDrawerPage-GD2I8ptj-CANT8JC_.js} +27 -27
- package/dist/assets/TreasuryOverviewPage-DySunaqy-Du5jK6WV.js +708 -0
- package/dist/assets/{TreasuryPromoPage-DW1f8_q1-CZjoBD0v.js → TreasuryPromoPage-DW1f8_q1-CkWefV3r.js} +6 -6
- package/dist/assets/{TreasurySetupPage-53k6ARHC-8YVNt5Wt.js → TreasurySetupPage-53k6ARHC-DuoYqIOy.js} +3 -3
- package/dist/assets/{TreasuryStatementsPage-pIshKNaR-Dtfk2lx_.js → TreasuryStatementsPage-pIshKNaR--8vN-IgR.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-B3PkB1al-CKVKJh1V.js → TreasuryTaxLetterPage-B3PkB1al-CkqZdxpj.js} +5 -5
- package/dist/assets/TreasuryTransferOrReviewPage-Dzq-FxSM-DKViGoiZ.js +576 -0
- package/dist/assets/TrendChart-B_5D-Zud-Cw_zgD-R.js +16 -0
- package/dist/assets/{TrendWithTransactions-mI_El5D1-SbfSjDf-.js → TrendWithTransactions-mI_El5D1-DUVZm_U-.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-LQeq8Gdv-BxpsIXJf.js → UncategorizedAccountsMappingPage-LQeq8Gdv-BNgZRg4x.js} +47 -47
- package/dist/assets/{UnitIntegrationPage-XOWqGHla-DR8O2yO4.js → UnitIntegrationPage-XOWqGHla-BIoTpmZ_.js} +11 -11
- package/dist/assets/UploadAdditionalDocumentOverlay-DhXRLBEg-BNMbNbJQ.js +38 -0
- package/dist/assets/{Vendor2FAPopup-BfqIHZBb-CksyyTez.js → Vendor2FAPopup-BfqIHZBb-DUpQFrOM.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CswCvAFH-CdUK-HJH.js → VendorACHDetailsPage-CswCvAFH-DqnJleBx.js} +1 -1
- package/dist/assets/VendorDetailPage-CEX7xMIN-D29fVYfj.js +257 -0
- package/dist/assets/{VendorDomesticWireDetailsPage-DxrSjlTR-B4ZHtbXA.js → VendorDomesticWireDetailsPage-DxrSjlTR-GbXdyYXP.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-q1gQ8keD-BmDatzoV.js → VendorFiling1099EditablePage-q1gQ8keD-GKQT7vTw.js} +32 -32
- package/dist/assets/VendorFirstReviewPage-D9ogNmAK-DwoL9x7s.js +730 -0
- package/dist/assets/VendorInternationalWireDetailsPage-Ct689KuY-N7HCxAFy.js +152 -0
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-W0s1zQNC-ZgE8KOcO.js → VendorInternationalWireSwiftDetailsPage-W0s1zQNC-eVlfJ9f_.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C13Z2HN9-C2XOcHy1.js → VendorsAccountsSection-C13Z2HN9-DvGRJwYY.js} +4 -4
- package/dist/assets/VerifyDevice-C27gEWkZ-BrEq9dHz.js +112 -0
- package/dist/assets/{VideoPlayer-ByyqUuhG-DTMNeCaX.js → VideoPlayer-ByyqUuhG-CcmvFcG0.js} +1 -1
- package/dist/assets/{VideoPopup-DJrQQTPq-DoXO-Vwb.js → VideoPopup-DJrQQTPq-BZRShVLd.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-B3Ht3VnM-DBDTIhyB.js → WarningsDrawerPage-B3Ht3VnM-C_aFzWZK.js} +5 -5
- package/dist/assets/ZeniAccountDetailPage-egmysAfI-CX7srLCt.js +300 -0
- package/dist/assets/{ZeniAccountListViewPage-q_v2FogF-B-baYGeD.js → ZeniAccountListViewPage-q_v2FogF-wW_PUJNB.js} +12 -12
- package/dist/assets/ZeniAccountNavBarPieces-HNIht0FM-azEwN9c2.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-CzncR6vK-DAONZr9A.js → ZeniAccountPromoPage-CzncR6vK-CoCFGvia.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-TcdzEL_V-CApQPT0B.js → ZeniAccountSetupPage-TcdzEL_V-CPTq7KjK.js} +1 -1
- package/dist/assets/{ZeniCopyright-B7Q6IUGC-Ca3UXoxG.js → ZeniCopyright-B7Q6IUGC-DjtbTVnp.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Dmf5xxv4-D_ugGHJW.js → ZeniTransferAmountSlider-Dmf5xxv4-D-BoRJmd.js} +3 -3
- package/dist/assets/addSubtractPeriod-CFvkmqm8.js +1 -0
- package/dist/assets/analyticsHelper-L-FpsGLH.js +1 -0
- package/dist/assets/analyticsHelper-or1KkBWk-CU2Z2CeD.js +1 -0
- package/dist/assets/{chartTypes-DCvOVjlS-BdPIN5WI.js → chartTypes-DCvOVjlS-CF3jsUNb.js} +1 -1
- package/dist/assets/{commonDimensions-C32v1F7H-CiAEfJl2.js → commonDimensions-C32v1F7H-C9uaBJ8J.js} +1 -1
- package/dist/assets/{detailCommon-CRAGrqoO-Cq9phP1q.js → detailCommon-CRAGrqoO-5xMc7u9M.js} +8 -8
- package/dist/assets/downloadPdf-D7p3yKmg-DrJJdcEl.js +1 -0
- package/dist/assets/{index-sAOH0Fje.js → index-kF4u7Flm.js} +511 -704
- package/dist/assets/{mapLoadingInProgressToTreeNode-CRwG2DSD-B4LnWZMC.js → mapLoadingInProgressToTreeNode-CRwG2DSD-CLLcsBiK.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C9O-C2dp-BYZLhSZo.js → mapSectionWithAcOnlyToTreeNode-C9O-C2dp-4sjxXlit.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-5aJk-sLn-DpF_Q8pH.js → mapSpacerToTreeNode-5aJk-sLn-CeZutbYy.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CnviLujI-Do2_oG27.js → mapTimeframeBalancesToTreeNode-CnviLujI-rcfKFEh1.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv4d4PqE-C559SZVp.js → mapTimeframeBalancesToTreeNode-Cv4d4PqE-BmreU2CJ.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-yJCRTG35.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-CkRgUU-m.js} +1 -1
- package/dist/assets/redux-D-TY61DZ.js +12 -0
- package/dist/assets/{toCOABalancesWithID-B3yVGPrV-B_BzNOYP.js → toCOABalancesWithID-B3yVGPrV-Dj01dEre.js} +1 -1
- package/dist/assets/toChartData-DEW0iT7T-DaQT4Adc.js +1 -0
- package/dist/assets/{treasuryColorHelper-13LJ_xhk-LqN_6Xl4.js → treasuryColorHelper-13LJ_xhk-5-aGYtqD.js} +1 -1
- package/dist/assets/{uploadAttachment-DVy2pZeJ-X-xSyfvF.js → uploadAttachment-DVy2pZeJ-DL6B1oGY.js} +25 -25
- package/dist/assets/{uploadReceipts-Dp1dvCjf-Bw0_dVvQ.js → uploadReceipts-Dp1dvCjf-BQPyxtgi.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountLockedInfoModal-BD7Nb81U-CexK1k9m.js +0 -59
- package/dist/assets/AccountReconDetailsDrawerPage-D-_ME0pV-s74oVSdU.js +0 -239
- package/dist/assets/AccountsPromoCardStack-CdBwPVgI-0eZTGbZE.js +0 -207
- package/dist/assets/AgingReportsPage-L0zQxwCf-BGxthXxn.js +0 -79
- package/dist/assets/AllUserItems-CvwaOEhu-4FgiUHmj.js +0 -192
- package/dist/assets/ApAgingDetailPage-B_78aSEv-BIkW3as9.js +0 -46
- package/dist/assets/ApprovalRulesSettingsPage-Dxd7A3hZ-B57JU70m.js +0 -47
- package/dist/assets/ArAgingChart-BezVy1Sm-UplSlTlX.js +0 -24
- package/dist/assets/BankConnectionsSettingsPage-D5hI4xtm-CIHmOttI.js +0 -425
- package/dist/assets/BillDetailPage-CDAh8Jtl-0qBbZ__0.js +0 -266
- package/dist/assets/BillPayPromoPage-B2YcxWc9-CwLnyiow.js +0 -84
- package/dist/assets/BillPaySetUpPage-oJvoWpFu-CYkgRBSH.js +0 -42
- package/dist/assets/BillingSettingsPage-BRsKYzT5-gKM6YCmc.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-B7tORIok-Cjhni78W.js +0 -1
- package/dist/assets/BusinessVerificationPage-Nw_fedst-D0V3bhmc.js +0 -138
- package/dist/assets/ChargeCardListPage-v5hH98Wi-D_Ffaz0x.js +0 -406
- package/dist/assets/ChargeCardPromoPage-CPEaGOL3-BJBmWN7Q.js +0 -222
- package/dist/assets/ChargeCardSetupPage-G5Rn0o6y-DXJQIwPQ.js +0 -36
- package/dist/assets/ChargeCardUtils-BRgkrCTs-DoVoCmwL.js +0 -1
- package/dist/assets/CollapsableReportTable-7iAngywY-CxWB4sRz.js +0 -2932
- package/dist/assets/CompanyOfficerDetailsSection-CJKyxEnf-BshC7d2B.js +0 -260
- package/dist/assets/CompanyPassportPage-BQoEcPJr-DzLqV-NZ.js +0 -574
- package/dist/assets/CompleteProfile-D5e9TQgy-ppOK1lFi.js +0 -52
- package/dist/assets/CreditCardPaymentDrawerPage-DXeq4z9l-Dr585X5v.js +0 -224
- package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-4OaWohod.js +0 -1
- package/dist/assets/CustomerOnboardingPage-zBqp9QN6-D_UHEoUt.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-BbJ4oiCI-C_0KKlnp.js +0 -202
- package/dist/assets/DashboardReportPage-DTMbYOWH-CSMllwg6.js +0 -371
- package/dist/assets/DepositAccTransactionListPage-CcO673ZL-CiLAoQqZ.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-D5hbPNCt-Bj16Fg_f.js +0 -21
- package/dist/assets/DownloadOverlay-DRcasKoB-BDQCkt6Q.js +0 -439
- package/dist/assets/EditPeoplePage-Zzo62if7-CQfgpQsa.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-7T5j9Uz8.js +0 -865
- package/dist/assets/EntityDetailPage-CzlzOW8n-DjZ6eItY.js +0 -18
- package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-Ch0agMlw.js +0 -1650
- package/dist/assets/ExpressPayPage-DdQiFzDu-ykW984zo.js +0 -168
- package/dist/assets/GlobalReviewListPage-DHn2Uk8R-Cd3V8M7p.js +0 -291
- package/dist/assets/HelpButton-BNMy-6ce-WFq-iELy.js +0 -28
- package/dist/assets/InsightsCardStack-CaMZiCnn-D5ut2TNQ.js +0 -79
- package/dist/assets/InvitePeoplePage-C3ecL8XJ-D06hBumB.js +0 -12
- package/dist/assets/InvoiceUploadSection-DoR834b4-BezkawDL.js +0 -140
- package/dist/assets/LabeledAddressValueField-YP7bXlgZ-8CibrbWw.js +0 -45
- package/dist/assets/LabeledDocumentField-ED03S2kQ-wbMhlpMQ.js +0 -41
- package/dist/assets/LinkJETransactionPage-_ROjxBMO-DP6JabBY.js +0 -98
- package/dist/assets/LowBalancePopup-CZDcHxyW-BHOAXZjC.js +0 -34
- package/dist/assets/MagicLinkTitleSection-Cn1v72Rs-BaSRKY-c.js +0 -17
- package/dist/assets/Menu-B6iTf2H7-Cqx4dVPp.js +0 -17
- package/dist/assets/MyBankConnectionsSettingsPage-IPPiH6jv-CVF8iXYJ.js +0 -110
- package/dist/assets/MyPendingActivationChargeCardListPage-BTGb1yIE-BD419NGA.js +0 -6
- package/dist/assets/MyProfileSettingsPage-BRK5nWg2--GwgfIws.js +0 -85
- package/dist/assets/NotificationsPage-C7lSAnUb-wDRHsOkp.js +0 -685
- package/dist/assets/PandLWithForecastPage-W4jlNjml-Bcn3UKYp.js +0 -107
- package/dist/assets/ReimbursementApprovalRuleDetailPage-eidNY097-DmIjK42h.js +0 -26
- package/dist/assets/ReimbursementDetailPage-AvqEBxbz-fUbgpa2M.js +0 -314
- package/dist/assets/ReimbursementPromoPage-PshodHUZ-B_XNUegE.js +0 -84
- package/dist/assets/ReimbursementSetUpPage-6P4FT-UC-Bw__edeG.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-Cas6GzVp-BQcspCuT.js +0 -1
- package/dist/assets/ReportsPage-C7zirS74-CyyHiNy4.js +0 -121
- package/dist/assets/ReviewDetailsPage-ClsyL5-w-_y4o463o.js +0 -290
- package/dist/assets/ScheduleDetailsFixedAssetsPage-zFyJPVpN-BSd6OZtz.js +0 -37
- package/dist/assets/ScheduleDetailsPage-BftjSvA7-Jy_FtZQR.js +0 -37
- package/dist/assets/ScreenRoutes-en4svsq9.js +0 -206
- package/dist/assets/SetUpAccountSection-Bnbi8X23-DL-18RCf.js +0 -378
- package/dist/assets/SignInScreen-Ba17TSWH.js +0 -1
- package/dist/assets/SpendManagementListViewPage-ChNp8dgm-BhMjXPdH.js +0 -123
- package/dist/assets/SpendManagementPerTabPage-D-bOr2-6-GaRieOUe.js +0 -754
- package/dist/assets/SpendManagementSection-kucZgC-H-DLgSRXEX.js +0 -230
- package/dist/assets/SpendMgmtSetupAccountSection-de7hEmtE-CX-1PNOC.js +0 -206
- package/dist/assets/StatementsPage-KnLUSJbm-DvU_Y3UP.js +0 -58
- package/dist/assets/TaskManagementPage-CPLyyK1Y-ena6uodh.js +0 -508
- package/dist/assets/TransactionDetailPage-D1Z1f-DD-DTPxqy3v.js +0 -912
- package/dist/assets/TransactionList-BzJEbOV9-BQZ8x4Oq.js +0 -147
- package/dist/assets/TreasuryOverviewPage-DySunaqy-CWB-hp0S.js +0 -708
- package/dist/assets/TreasuryTransferOrReviewPage-Dzq-FxSM-CX84O_mN.js +0 -576
- package/dist/assets/TrendChart-B_5D-Zud-BUU2-6nI.js +0 -16
- package/dist/assets/UploadAdditionalDocumentOverlay-DhXRLBEg-DvVrgitE.js +0 -38
- package/dist/assets/VendorDetailPage-CEX7xMIN-Djo4PloX.js +0 -257
- package/dist/assets/VendorFirstReviewPage-D9ogNmAK-PlB10gEr.js +0 -730
- package/dist/assets/VendorInternationalWireDetailsPage-Ct689KuY-DAoPjpj5.js +0 -152
- package/dist/assets/VerifyDevice-C27gEWkZ-C7pLL5Wm.js +0 -112
- package/dist/assets/ZeniAccountDetailPage-egmysAfI-DFbZv9KZ.js +0 -300
- package/dist/assets/ZeniAccountNavBarPieces-HNIht0FM-aSJ3m6rj.js +0 -14
- package/dist/assets/analyticsHelper-CVWZE356.js +0 -1
- package/dist/assets/analyticsHelper-or1KkBWk-Plh_6I_p.js +0 -1
- package/dist/assets/downloadPdf-D7p3yKmg-CYmmjPHt.js +0 -1
- package/dist/assets/redux-CEhZD0hA.js +0 -12
- package/dist/assets/toChartData-DEW0iT7T-DrkbvIyQ.js +0 -1
|
@@ -0,0 +1,865 @@
|
|
|
1
|
+
import{cJ as ri,x as bt,co as ft,c1 as on,cr as ki,r as no,O as we,cu as an,q as Ae,ao as it,iB as rn,jK as oo,jM as ao,jN as ro,j as t,k6 as lo,c4 as ln,eX as si,eY as sn,eZ as dn,cF as q,o as i,y as d,dD as Ii,dn as so,gD as co,jQ as uo,j$ as cn,jW as Di,cK as un,cg as mn,jX as mo,hO as He,k7 as zt,ic as di,cD as ci,Y as xt,k8 as po,h as j,A as pn,ci as ui,u as a,dz as ho,jZ as go,fl as yo,hV as mi,k9 as Bt,iw as Se,iy as $e,fo as pi,fy as nt,hy as bo,iv as hn,C as Rt,gO as gn,fY as Ti,fr as yn,fq as tt,fH as Te,c9 as hi,ka as fo,iO as xo,fk as wo,cO as ji,dy as So,d3 as bn,M as $o,hw as vo,d0 as Mt,jR as Co,ej as fn,b as gi,H as xn,fJ as wn,eQ as Ft,i7 as ko,d2 as Io,fN as Do,iE as To,cd as yi,n as Oi,eh as Sn,cX as Pi,fG as jo,ce as Oo,fu as $n,cG as Po,kb as vn,kc as li,jD as Ri,kd as Lt,fE as Ro,jJ as Lo,dS as Ao,fD as zo}from"./index-kF4u7Flm.js";import{b as v,n,w as Ct}from"./vendor-Bs1fkIUX.js";import{_ as Bo}from"./liveblocks-8ht9CoL5.js";import Cn from"./InvoiceUploadSection-DoR834b4-CjFOCIIZ.js";import{r as Mo,f as At,d as yt,p as bi,u as Li,h as Ie}from"./types-DyvtCprH-BcZYcgaq.js";import{I as Fo}from"./LabeledCreatableSingleSelectField-BhaeopJt-tsmH64cn.js";import{S as Eo}from"./CurrencySelectField-nhg_dhDw-nZHVWMo0.js";import{K as No}from"./SetUpDefaultSection-Bm1eZSgT-9DFPAVat.js";import{e as Wo}from"./BankAccountSection-GDEQdiGL-CmBLlIS1.js";import{W as Uo,F as _o}from"./BankAccountWarningSection-Di_BsiJC-_Ul1tNJQ.js";import{o as Vo}from"./radio-default-CiSgisfh-Cuu8ymvq.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-D-TY61DZ.js";import"./crypto-cQYYQPTZ.js";import"./AttachmentView-DhluaeAV-DsM43aN0.js";import"./uploadReceipts-Dp1dvCjf-BQPyxtgi.js";const Ai=e=>e,Me=(e,o)=>`${e}.${o}`,zi={largeLabelWidth:new d(120,120,160),paddingBottom:new d(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:ke}},dateFormat:qo,common:Ho}=we.getLocalizedStrings(),Ko=({lineIndex:e,mileage:o,classList:r,defaultCurrency:c,sectionId:h,isReimbursementCommentingEnabled:C,isDisabled:u,isAddReimbursementDisabled:w,companyMileageConfigInfo:f,reimbursementId:l,classHierarchyList:k})=>{const S=Ae(),s=ft(),p=Bt(),x=`dashboard_${s.currentTenant?.companyId}`,O=bt(),{formState:{errors:I},getValues:P,trigger:Y}=nt(),R=Ho.strings.empty,D=P(Me(h,"distanceInMiles")),z=zi.largeLabelWidth.value(S),re=P(Me(h,"class")),te=r.find(A=>A.classId===re?.selectedOption),le=Me(h,"class"),Z=Te(I,le);v.useEffect(()=>{re?.selectedOption!=null&&(te?.isDeleted===!0||Z)&&Y(le)},[re?.selectedOption,te?.isDeleted,r]);const H={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},F=A=>r.filter(ie=>ie.classId===A)[0]?.accountingClassNumber,X=r.find(A=>A.classId===o.class),K={valueContainer:A=>({...A,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.transactionDate`}),roomId:x,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...H,entityType:`reimbursement.details.${Ie("transactionDate",e,"mileage")}`},fieldThreadTargetElement:p?.sharedRef?.contentWrapperRef,children:t.jsx($n,{isDisabled:u,label:{label:ke.transactionDate,width:z},style:{paddingBottom:zi.paddingBottom.valuePx(S),width:"auto"},dateField:{name:Me(h,"transactionDate"),placeholder:ke.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:qo.visual.defaultInput,autoComplete:"off",maxDate:ci(),registerOptions:{required:!0,validate:A=>!!A}}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:x,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...H,entityType:`reimbursement.details.${Ie("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:p?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:w?"disabled":void 0,style:{width:"auto"},label:{label:ke.distanceInMiles,width:z},formattedTextField:{type:"number",name:Me(h,"distanceInMiles"),placeholder:ke.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.amount`}),roomId:x,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...H,entityType:`reimbursement.details.${Ie("amount",e,"mileage")}`},fieldThreadTargetElement:p?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:"disabled",label:{label:ke.amount,width:z},formattedTextField:{type:"number",name:Me(`${h}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:tt(ke.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:D!=null&&f?.mileageUnitAmount!=null?`${c.currencySymbol}${f?.mileageUnitAmount} per mile x ${D}`:void 0})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.memo`}),roomId:x,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...H,entityType:`reimbursement.details.${Ie("memo",e,"mileage")}`},fieldThreadTargetElement:p?.sharedRef?.contentWrapperRef,children:t.jsx(pi,{isDisabled:u,label:{label:ke.memo,width:z},style:{width:"auto"},text:{type:"text",name:Me(h,"memo"),placeholder:tt(ke.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:vn}}})}),t.jsx(kt,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.class`}),roomId:x,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...H,entityType:`reimbursement.details.${Ie("class",e,"mileage")}`},fieldThreadTargetElement:p?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(li,{isLoading:!1,label:{label:ke.department,width:z},additionalLabelInfo:te?.isDeleted===!0&&Te(I,Me(h,"class"))?ke.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Me(h,"class"),placeholder:tt(ke.department),valueToId:A=>F(A),defaultValue:{selectedOption:X?.classId,allOptions:He(k,[])},style:{width:"100%"},customStyleConfig:K,registerOptions:{required:!0,validate:A=>r.find(ie=>ie.classId===A?.selectedOption)?.isDeleted===!0?ke.deletedClassError:!0}},style:{borderBottom:`1px solid ${O.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Me(h,"class"))})]})},kt=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
|
+
`,Bi={amounWidth:new d(50,30),currencyWidth:new d(50,70)};function Go({name:e,placeHolder:o,defaultValue:r,isDisabled:c,showAmountCurrencyError:h,style:C,allCurrencies:u}){const[w,f]=v.useState(!1),{getValues:l,formState:{errors:k}}=nt(),S=bt(),s=Ae(),p=c!=null,x=l(e),O=`${x?.amount} ${x?.currency?.selectedOption}`,I=Te(k,e)&&Lt(k,`${e}.amount`)!=null,P=Te(k,e)&&Lt(k,`${e}.currency`)!=null,Y=h===!0?I||P:!1,R=!Y&&w===!1;return v.useEffect(()=>{R===!1&&f(!0)},[R]),t.jsx(mn,{onClickAway:()=>p===!1&&!Y&&f(!1),children:t.jsx(Xo,{style:C,isDisabled:p,tabIndex:R&&!p?0:void 0,onClick:()=>p===!1&&f(!0),"data-testid":q("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[x?.amount!=null?t.jsx(Mi,{className:"amount-field",isVisible:R,children:O}):t.jsx(Mi,{className:"amount-field amount-placeholder",isVisible:R,children:o?.name}),t.jsxs(Yo,{isVisible:!R,children:[t.jsx(Lo,{type:"number",name:`${e}.amount`,defaultValue:r?.amount,placeholder:o?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:D=>D!=null?D>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:c,style:{display:"flex",flexGrow:1,width:Bi.amounWidth.valuePercentage(s),cursor:"inherit"},bgColor:S.colors.background,isFieldError:I,shouldHighlightZeroAmount:!0}),R?null:t.jsx(Qo,{}),t.jsx(Eo,{name:`${e}.currency`,registerOptions:{validate:D=>D!=null&&D.selectedOption!=null},defaultValue:{allOptions:u.map(D=>({label:s==="small"?D.currencyCode:`${D.currencyCode} - ${D.currency}`,value:D.currencyCode,countryCode:D.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:S.colors.background},isDisabled:c,style:{width:Bi.currencyWidth.valuePercentage(s),flexGrow:1},isOptionRemovable:!1})]})]})})})}const Yo=n.div`
|
|
8
|
+
display: ${e=>e.isVisible?"flex":"none"};
|
|
9
|
+
width: 100%;
|
|
10
|
+
input {
|
|
11
|
+
text-align: left;
|
|
12
|
+
}
|
|
13
|
+
`,Xo=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
|
+
`,Qo=n.div`
|
|
26
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
27
|
+
min-width: ${i.sp3};
|
|
28
|
+
`,Mi=n(bn)`
|
|
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
|
+
`,We={width:new d(343,580,726),height:new d(a[6],a[6]),controlHeight:new d(a[6],a[6]),paddingTopBottom:new d(a[2],a[2]),marginRight:new d(a[2],a[2]),labelMarginLeft:new d(a[3],a[4]),labelMarginRight:new d(a[3],a[4]),labelMarginTop:new d(a[2],a[2])},kn={infoLabel:new gi("extraSmallRegular","smallRegular")};function Jo({isDisabled:e,label:o,currencyAmountField:r,style:c,errorInfoLabel:h,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:u=!1,additionalLabelTooltip:w,additionalInfoLabel:f,showAdditionalInfoLabel:l=!0}){const k=Ae(),{formState:{errors:S}}=nt(),s=Te(S,r.name)&&Lt(S,`${r.name}.amount`)!=null,p=Te(S,r.name)&&Lt(S,`${r.name}.currency`)!=null,x=r.showAmountCurrencyError===!0?s||p:!1,O=s||p||x,I=()=>{if(C===!0)return t.jsx(na,{children:t.jsx(xt,{size:"Small",start:!0})});if(l&&f||x){let P=null;return u===!0&&l&&f&&(P=t.jsx(Sn,{placement:k==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(ia,{children:w??""}),children:t.jsx(aa,{children:t.jsx(ra,{})})})),t.jsxs(oa,{size:k,isError:x,hasToolTip:u,children:[P,f]})}};return t.jsxs(Zo,{size:k,style:c,isDisabled:e!=null,isAmountError:s,isCurrencyError:p,"data-testid":q("labeled-currency-amount-field",r.name),children:[t.jsx(Ro,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:We.labelMarginLeft.value(k),marginRight:We.labelMarginRight.value(k),marginTop:We.labelMarginTop.value(k),width:o.width??"auto"}}),t.jsxs(ta,{labelWidth:o.width,children:[t.jsx(Go,{...r,isDisabled:e,style:{flexGrow:1,height:We.controlHeight.value(k)}}),O?t.jsx(ea,{size:k,hasError:O,children:h}):null,I()]})]})}const Zo=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=>We.width.valuePx(e.size)};
|
|
46
|
+
min-height: ${e=>We.height.valuePx(e.size)};
|
|
47
|
+
padding-right: ${e=>We.marginRight.valuePx(e.size)};
|
|
48
|
+
padding-top: ${e=>We.paddingTopBottom.valuePx(e.size)};
|
|
49
|
+
padding-bottom: ${e=>We.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
|
+
`,ea=n.label`
|
|
108
|
+
color: ${e=>e.hasError===!0?j.important:e.additionalInfoTextColor!=null?e.additionalInfoTextColor:e.theme.colors.grey1};
|
|
109
|
+
width: auto;
|
|
110
|
+
${e=>`${kn.infoLabel.style(e.size)}`};
|
|
111
|
+
padding-right: ${i.sp3};
|
|
112
|
+
text-align: right;
|
|
113
|
+
`,ta=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
|
+
`,ia=n(hi)`
|
|
120
|
+
padding: 12px;
|
|
121
|
+
color: ${e=>e.theme.colors.grey1};
|
|
122
|
+
background: ${e=>e.theme.colors.overlayColor};
|
|
123
|
+
border-radius: ${i.sp1};
|
|
124
|
+
`,na=n.div`
|
|
125
|
+
padding-right: ${i.sp3};
|
|
126
|
+
padding-top: ${i.sp1};
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: flex-end;
|
|
129
|
+
`,oa=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=>`${kn.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
|
+
`,aa=n.div`
|
|
141
|
+
display: flex;
|
|
142
|
+
margin-right: ${i.sp2};
|
|
143
|
+
margin-top: 2px;
|
|
144
|
+
align-items: center;
|
|
145
|
+
`,ra=n(Ao)`
|
|
146
|
+
width: ${i.sp3};
|
|
147
|
+
height: ${i.sp3};
|
|
148
|
+
color: inherit;
|
|
149
|
+
`,ye=(e,o)=>`${e}.${o}`,Ot={largeLabelWidth:new d(120,120,160),smallLabelWidth:new d(85,85,160),paddingBottom:new d(a[3],a[2]),autoFillIconLeft:new d(-8,-24)},{dateFormat:la,common:In,spendManagement:{reimbursement:{reimbursementDetail:ee}}}=we.getLocalizedStrings(),{strings:{empty:ae}}=In,sa=(e,o)=>{const r=e.slice(1);let c=!1;return r.forEach(h=>{h.account?.qboId!=null&&h.account?.qboId===o&&(c=!0)}),c},da=e=>e.charAt(0).toLowerCase()+e.slice(1),ca=({lineIndex:e,outOfPocket:o,accountList:r,classList:c,merchantList:h,isAddReimbursementDisabled:C,sectionId:u,isReimbursementCommentingEnabled:w,isDisabled:f,autoFields:l=[],accountsHierarchyList:k,classHierarchyList:S,reimbursementId:s,tentativeMerchantName:p,allCurrencies:x,uncategorizedAccounts:O})=>{const I=Ae(),P=ft(),Y=Bt(),R=bt(),{formState:{errors:D},getValues:z,trigger:re}=nt(),te=z(ye(u,"class")),le=c.find(y=>y.classId===te?.selectedOption),Z=ye(u,"class"),H=Te(D,Z),F=z(ye(u,"account")),X=r.find(y=>y.qboId===F?.selectedOption||y.accountId===F?.selectedOption),K=ye(u,"account"),A=Te(D,K);v.useEffect(()=>{te?.selectedOption!=null&&(le?.isDeleted===!0||H)&&re(Z)},[te?.selectedOption,le?.isDeleted,c]),v.useEffect(()=>{F?.selectedOption!=null&&(X?.isDeleted===!0||A)&&re(K)},[F?.selectedOption,X?.isDeleted,r]);const ie=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!sa(o.recommendations,o.account),se=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,U=Ot.largeLabelWidth.value(I),me=Ot.smallLabelWidth.value(I),Ee=h.map(y=>y.id??ae),pe={application:"dashboard",companyId:P.currentTenant?.companyId,tab:"reimbursement",entityId:s},be=`dashboard_${P.currentTenant?.companyId}`,de=y=>h.find(ne=>ne.id===y)?.name??y,je=r.find(y=>y.qboId===o.account),Oe=y=>[O.expense?.qboId,O.income?.qboId].includes(y),Pe=c.find(y=>y.classId===o.class),he={valueContainer:y=>({...y,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},Re=y=>r.filter(ne=>ne.qboId===y)[0]?.qboId,ge=y=>c.filter(ne=>ne.classId===y)[0]?.accountingClassNumber,ve=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",da(o?.recommendedAccount?.reason??ae)),Ke=zt(k,o.recommendations);return t.jsxs(t.Fragment,{children:[p!=null||l.includes("merchant")?t.jsx(lt,{children:t.jsx(dt,{windowSize:I,children:t.jsx(st,{})})}):null,t.jsx(Se,{isThreadAllowed:w&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:be,companyId:P.currentTenant?.companyId??ae,companyName:P.currentTenant?.companyName??ae,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...pe,entityType:`reimbursement.details.${Ie("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:Y?.sharedRef?.contentWrapperRef,children:t.jsx(Fo,{isDisabled:f!=null||C?"disabled":void 0,label:{label:ee.merchant,width:U},style:{width:"auto"},creatableSingleSelectField:{name:ye(u,"merchant"),placeholder:ee.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??ae,allOptions:Ee},registerOptions:{required:!0,validate:y=>!!y.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:de})}),t.jsx(It,{}),l.includes("transactionDate")?t.jsx(lt,{children:t.jsx(dt,{windowSize:I,children:t.jsx(st,{})})}):null,t.jsx(Se,{isThreadAllowed:w&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:be,companyId:P.currentTenant?.companyId??ae,companyName:P.currentTenant?.companyName??ae,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...pe,entityType:`reimbursement.details.${Ie("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:Y?.sharedRef?.contentWrapperRef,children:t.jsx($n,{isDisabled:f,label:{label:ee.transactionDate,width:U},style:{paddingBottom:Ot.paddingBottom.valuePx(I),width:"auto"},dateField:{name:ye(u,"transactionDate"),placeholder:ee.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:la.visual.defaultInput,autoComplete:"off",maxDate:ci(),registerOptions:{required:!0,validate:y=>!!y}}})}),t.jsx(It,{}),l.includes("amount")?t.jsx(lt,{children:t.jsx(dt,{windowSize:I,isTwoLined:!0,children:t.jsx(st,{})})}):null,t.jsx(Se,{isThreadAllowed:w&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:be,companyId:P.currentTenant?.companyId??ae,companyName:P.currentTenant?.companyName??ae,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...pe,entityType:`reimbursement.details.${Ie("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:Y?.sharedRef?.contentWrapperRef,children:t.jsx(Jo,{isDisabled:f!=null||C?"disabled":void 0,label:{label:ee.amount,width:me},style:{width:"auto"},currencyAmountField:{style:{height:i.sp6},name:`${u}.amount`,defaultValue:{amount:o.amount.amount,currencyCode:o.amount.currencyCode,currencySymbol:o.amount.currencySymbol},placeHolder:{amount:ee.addAmount,name:ee.addAmount},allCurrencies:x,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:ee.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:!an(o.homeCurrencyDetails,o.amount)&&o.amount.currencyCode!==In.currency.currencyCode&&o.homeCurrencyDetails?.amount!==0?`${Po("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`:void 0})}),t.jsx(It,{}),l.includes("memo")?t.jsx(lt,{children:t.jsx(dt,{windowSize:I,children:t.jsx(st,{})})}):null,t.jsx(Se,{isThreadAllowed:w&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:be,companyId:P.currentTenant?.companyId??ae,companyName:P.currentTenant?.companyName??ae,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...pe,entityType:`reimbursement.details.${Ie("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:Y?.sharedRef?.contentWrapperRef,children:t.jsx(pi,{isDisabled:f,label:{label:ee.memo,width:U},style:{width:"auto"},text:{type:"text",name:ye(u,"memo"),placeholder:tt(ee.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:vn}}})}),t.jsx(It,{}),l.includes("account")?t.jsx(lt,{children:t.jsx(dt,{windowSize:I,children:t.jsx(st,{})})}):null,t.jsx(Se,{isThreadAllowed:w&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.account`}),roomId:be,companyId:P.currentTenant?.companyId??ae,companyName:P.currentTenant?.companyName??ae,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...pe,entityType:`reimbursement.details.${Ie("account",e,"out_of_pocket")}`},fieldThreadTargetElement:Y?.sharedRef?.contentWrapperRef,children:t.jsx(li,{label:{label:ee.category,width:U},additionalLabelInfo:X?.isDeleted===!0&&Te(D,ye(u,"account"))?ee.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:ie||se,name:ye(u,"account"),placeholder:ee.categoryPlaceholder,valueToId:y=>Re(y),defaultValue:{selectedOption:je?.qboId??je?.accountId,allOptions:Ke},style:{width:"100%"},customStyleConfig:he,registerOptions:{required:!0,validate:y=>r.find(ne=>ne.qboId===y?.selectedOption||ne.accountId===y?.selectedOption)?.isDeleted===!0?ee.deletedCategoryError:!0}},disableCurrentOption:Oe,style:{borderBottom:`1px solid ${R.colors.grey3}`,minHeight:i.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:ie?{tooltipProps:{text:ve},label:{label:o.recommendedAccount?.accountName??ae},checkBoxField:{name:ye(u,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:se?{label:{label:o.retainedAccount?.accountName??ae},checkBoxField:{name:ye(u,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},ye(u,"account"))}),l.includes("class")?t.jsx(lt,{children:t.jsx(dt,{windowSize:I,children:t.jsx(st,{})})}):null,t.jsx(Se,{isThreadAllowed:w&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.class`}),roomId:be,companyId:P.currentTenant?.companyId??ae,companyName:P.currentTenant?.companyName??ae,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...pe,entityType:`reimbursement.details.${Ie("class",e,"out_of_pocket")}`},fieldThreadTargetElement:Y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(li,{isLoading:!1,label:{label:ee.department,width:U},additionalLabelInfo:le?.isDeleted===!0&&Te(D,ye(u,"class"))?ee.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:ye(u,"class"),placeholder:tt(ee.department),valueToId:y=>ge(y),defaultValue:{selectedOption:Pe?.classId,allOptions:He(S,[])},style:{width:"100%"},customStyleConfig:he,registerOptions:{required:!0,validate:y=>c.find(ne=>ne.classId===y?.selectedOption)?.isDeleted===!0?ee.deletedClassError:!0}},style:{borderBottom:`1px solid ${R.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},ye(u,"class"))})]})},lt=n.span`
|
|
150
|
+
position: relative;
|
|
151
|
+
`,st=n(mi)`
|
|
152
|
+
color: ${e=>e.theme.colors.primary};
|
|
153
|
+
width: ${i.sp3};
|
|
154
|
+
height: ${i.sp3};
|
|
155
|
+
`,dt=n.div`
|
|
156
|
+
z-index: 2;
|
|
157
|
+
left: ${e=>Ot.autoFillIconLeft.valuePx(e.windowSize)};
|
|
158
|
+
position: absolute;
|
|
159
|
+
top: ${e=>e.isTwoLined===!0?i.sp5:"22px"};
|
|
160
|
+
`,It=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
|
+
`,Ze=(e,o)=>`${e}.${o}`,Ue={paddingTop:new d(a[5],a[4]),marginBottom:new d(a[3],a[3]),labelPaddingLeft:new d(a[3],a[4]),buttonWidth:new d(70,70),containerRightMargin:new d(a[3],a[8]),containerLeftMargin:new d(a[3],a[6]),deleteConfirmationTextMarginBottom:new d(a[2],a[0])},G=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,ua=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:c,lineIndex:h,accountList:C,classList:u,merchantList:w,hasFile:f,defaultCurrency:l,hasMultipleLineItems:k,fileRequiredLineIds:S,duplicateLineDetails:s,remiStatus:p,sectionId:x,isDisabled:O,isReimbursementCommentingEnabled:I,isAddReimbursementDisabled:P,style:Y,autoFields:R=[],analytics:D,reimbursementId:z,tentativeMerchantName:re,companyMileageConfigInfo:te,uncategorizedAccounts:le,removeDuplicateReimbursementForLine:Z,scrollToSection:H,onDuplicateLineClick:F,onRemoveReimbursement:X,clearTentativeNameForLine:K,allCurrencies:A,accountsHierarchyList:ie,classHierarchyList:se})=>{const U=Ae(),me=ft(),Ee=Bt(),pe=we.getLocalizedStrings().common.strings.empty,be={application:"dashboard",companyId:me.currentTenant?.companyId,tab:"reimbursement",entityId:z},de=`dashboard_${me.currentTenant?.companyId}`,{getValues:je}=nt(),[Oe,Pe]=v.useState(!1),he=je(Ze(x,"reimbursementType"));return t.jsxs(fa,{style:Y,windowSize:U,children:[t.jsxs(pa,{hasFile:f,windowSize:U,showDeleteConfirmation:Oe,children:[t.jsx(wa,{windowSize:U,children:k?`#${h+1} ${G.reimbursement}`:G.reimbursement}),Oe?t.jsxs(ba,{windowSize:U,children:[t.jsx(ya,{windowSize:U,children:G.deleteConfirmation}),t.jsxs(ma,{children:[t.jsx(Oi,{label:G.buttons.cancel,onClick:()=>Pe(!1),style:{width:Ue.buttonWidth.value(U),marginLeft:U==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":q("delete-remi-button",G.buttons.cancel)}),t.jsx(Oi,{label:G.buttons.remove,onClick:()=>{D?.trackReimbursementDeleteReimbursementLine(e.lineId,z),K?.(e.lineId??"1"),Pe(!1),Z(e.lineId),X(h)},style:{width:Ue.buttonWidth.value(U)},size:"small",variant:"danger","data-testid":q("delete-remi-button",G.buttons.remove)})]})]}):k&&(c==="draft"||p==="rejected")?t.jsx(ha,{className:"deleteIconWrapper",windowSize:U,onClick:()=>Pe(!0),"data-testid":q("delete-remi-button",e.lineId),children:t.jsx(Sn,{enterDelay:600,title:G.deleteReimbursement,placement:"top-end",children:t.jsx(ga,{})})}):null]}),S.includes(e.lineId)?t.jsx(cn,{title:G.missingReceipt,description:G.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs(Sa,{windowSize:U,children:[s?.duplicateLineId!=null?t.jsxs(xa,{children:[G.thisExpense," ",s.isDuplicateWithinTransaction?t.jsx(Fi,{"data-testid":q("view-duplicate-transaction-expense"),onClick:()=>(D?.trackReimbursementViewDuplicateExpense(!0,z),H(s.duplicateLineId)),children:G.viewOriginalExpense}):t.jsx(Fi,{"data-testid":q("view-duplicate-expense"),onClick:()=>{s.duplicateTransactionId!=null&&s.duplicateLineId!=null&&(D?.trackReimbursementViewDuplicateExpense(!1,z),F(s.duplicateTransactionId,s.duplicateLineId))},children:G.viewOriginalExpense})]}):null,t.jsx(Se,{isThreadAllowed:I&&z!=null,dashboardTabKey:$e({type:"details",key:he===G.mileageKey?`${h}.mileage.reimbursementType`:`${h}.out_of_pocket.reimbursementType`}),roomId:de,companyId:me.currentTenant?.companyId??pe,companyName:me.currentTenant?.companyName??pe,entityId:z,dashboardOptionType:"reimbursement",filterMetaData:{...be,entityType:`reimbursement.details.${Ie("reimbursementType",h,he===G.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:Ee?.sharedRef?.contentWrapperRef,style:{borderRadius:s?.duplicateLineId!=null?"0 0 0 0":`${i.sp2} ${i.sp2} 0 0`},children:t.jsxs(va,{isDisabled:O!=null,haveBorderRadius:s?.duplicateLineId==null,children:[t.jsx(Pi,{isDisabled:O!=null||P?"disabled":void 0,isContainerClickable:!0,label:{label:G.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ue.labelPaddingLeft.value(U),borderTopLeftRadius:"inherit"},showOutline:!(I&&z!=null),radioField:{name:Ze(x,"reimbursementType"),id:`${Ze(x,"reimbursementType")}.${G.outOfPocketKey}`,value:G.outOfPocketKey}}),t.jsx($a,{}),t.jsx(Pi,{isDisabled:O!=null||P?"disabled":void 0,isContainerClickable:!0,label:{label:G.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ue.labelPaddingLeft.value(U),borderTopRightRadius:"inherit"},showOutline:!(I&&z!=null),radioField:{name:Ze(x,"reimbursementType"),id:`${Ze(x,"reimbursementType")}.${G.mileageKey}`,value:G.mileageKey}})]})}),t.jsx(Ca,{}),he===G.outOfPocketKey?t.jsx(ca,{lineIndex:h,reimbursementId:z,uncategorizedAccounts:le,isReimbursementCommentingEnabled:I,isDisabled:O,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?it(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:Ze(x,"outOfPocket"),accountList:C,classList:u,autoFields:R,merchantList:w,tentativeMerchantName:re,allCurrencies:A,isAddReimbursementDisabled:P,accountsHierarchyList:ie,classHierarchyList:se}):t.jsx(Ko,{lineIndex:h,reimbursementId:z,isReimbursementCommentingEnabled:I,isDisabled:O,mileage:{transactionDate:e.mileage.transactionDate!=null?it(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:u,sectionId:Ze(x,"mileage"),companyMileageConfigInfo:te,defaultCurrency:l,isAddReimbursementDisabled:P,classHierarchyList:se})]})]})},ma=n.div``,pa=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
|
+
`,ha=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
|
+
`,Fi=n.span`
|
|
183
|
+
border-bottom: 1px solid currentColor;
|
|
184
|
+
cursor: pointer;
|
|
185
|
+
`,ga=n(jo)`
|
|
186
|
+
width: ${i.sp3};
|
|
187
|
+
height: ${i.sp3};
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
`,ya=n.div`
|
|
190
|
+
margin-bottom: ${e=>Ue.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
|
|
191
|
+
`,ba=n(yi)`
|
|
192
|
+
color: ${e=>e.theme.colors.hero};
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
196
|
+
`,fa=n.div`
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
padding-top: ${e=>Ue.paddingTop.valuePx(e.windowSize)};
|
|
200
|
+
margin-right: ${e=>Ue.containerRightMargin.valuePx(e.windowSize)};
|
|
201
|
+
margin-left: ${e=>Ue.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
|
+
`,xa=n(Oo)`
|
|
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
|
+
`,wa=n(Mt)`
|
|
219
|
+
color: ${e=>e.theme.colors.primary};
|
|
220
|
+
display: ${e=>e.windowSize==="small"?"none":"unset"};
|
|
221
|
+
`,Sa=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=>Ue.marginBottom.valuePx(e.windowSize)};
|
|
229
|
+
`,$a=n.div`
|
|
230
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
231
|
+
min-width: 1px;
|
|
232
|
+
max-width: 1px;
|
|
233
|
+
`,va=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
|
+
`,Ca=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
|
+
`,ka=(e,o)=>`${e}.${o}`,ct={labelWidth:new d(120,160,160),paddingBottom:new d(a[3],a[3]),paddingTop:new d(12,a[3]),marginBottom:new d(12,a[3]),containerRightMargin:new d(a[3],a[8]),containerLeftMargin:new d(a[3],a[6])},Dn=({isReimbursementCommentingEnabled:e,sectionId:o,isDisabled:r,reportTitle:c,reimbursementId:h,style:C})=>{const u=Ae(),w=ft(),f=Bt(),l=`dashboard_${w.currentTenant?.companyId}`,k=we.getLocalizedStrings(),S=k.spendManagement.reimbursement.reimbursementDetail,s=k.common.strings.empty,p=ct.labelWidth.value(u);return t.jsxs(Ia,{style:C,windowSize:u,children:[t.jsx(Ta,{windowSize:u,children:S.whatFor}),t.jsx(Da,{children:t.jsx(Se,{isThreadAllowed:e&&h!=null,dashboardTabKey:$e({type:"details",key:"whatFor"}),roomId:l,companyId:w.currentTenant?.companyId??s,companyName:w.currentTenant?.companyName??s,entityId:h,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:w.currentTenant?.companyId,tab:"reimbursement",entityId:h,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:f?.sharedRef?.contentWrapperRef,style:{borderRadius:i.sp2},children:t.jsx(pi,{isDisabled:r,label:{label:S.reportTitle,width:p},text:{type:"text",name:ka(o,"reportTitle"),placeholder:S.lunchWithClient,defaultValue:c,autoComplete:"off",options:{required:!0,validate:x=>!!x}},style:{width:"auto",borderRadius:i.sp2}})})})]})},Ia=n.div`
|
|
245
|
+
display: flex;
|
|
246
|
+
flex-direction: column;
|
|
247
|
+
padding-top: ${e=>ct.paddingTop.valuePx(e.windowSize)};
|
|
248
|
+
padding-bottom: ${e=>ct.paddingBottom.valuePx(e.windowSize)};
|
|
249
|
+
margin-right: ${e=>ct.containerRightMargin.valuePx(e.windowSize)};
|
|
250
|
+
margin-left: ${e=>ct.containerLeftMargin.valuePx(e.windowSize)};
|
|
251
|
+
`,Da=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
|
+
`,Ta=n(Mt)`
|
|
259
|
+
color: ${e=>e.theme.colors.primary};
|
|
260
|
+
margin-bottom: ${e=>ct.marginBottom.valuePx(e.windowSize)};
|
|
261
|
+
`,E={largeLabelWidth:new d(120,120,220),marginTop:new d(28,8),paymentToMarginTop:new d(0,a[4]),marginBottom:new d(a[5],a[4]),paymentToMarginBottom:new d(12,a[3]),totalMarginBottom:new d(a[3],a[3]),reimbursementSectionLeftMargin:new d(a[3],a[6]),reimbursementSectionRightMargin:new d(a[3],a[8]),invoiceSectionLeftMargin:new d(a[3],a[8]),invoiceSectionRightMargin:new d(a[3],a[6]),rightSectionWidth:new d(100,58),firstOrLastItemHeight:new d(390,760),itemHeight:new d(390,459),duplicateBannerWrapperMarginTop:new d(a[5],a[3]),duplicateBannerWrapperMarginRight:new d(a[3],a[8]),duplicateBannerWrapperMarginBottom:new d(a[5],a[3]),duplicateBannerWrapperMarginLeft:new d(a[3],a[6])},ja={total:new gi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:V},billPay:{vendorCreation:{achDetails:Dt}}},common:{currency:{currencyCode:Tt}}}=we.getLocalizedStrings(),Tn=e=>{let o=0,r=Tt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const c=e;o=c.outOfPocket.amount??0,r=c.outOfPocket.currencyCode??Tt}else{const c=e;o=c.outOfPocket.amount?.amount??0,r=c.outOfPocket.amount?.currencyCode??Tt}return(e.homeCurrencyConversions?.currencyCode??Tt)!==r&&(o=e.homeCurrencyConversions?.amount??0),o},Oa=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:r,createDate:c,scheduleDate:h,paymentDate:C,hasDuplicateLine:u,approvedDate:w,isFirstOrLastListItem:f,index:l,reimbursementSectionRef:k,showSkipAutoFill:S,lineData:s,currencyConversionState:p,authParams:x,uploadInvoiceEndPoint:O,accountList:I,classList:P,merchantList:Y,remiStage:R,autoFieldsByLineId:D,isReimbursementCommentingEnabled:z,isAutoFieldsExist:re,totalAmount:te,showTotalAmountLoader:le,totalNumberOfLines:Z,defaultCurrency:H,bankAccounts:F,fileRequiredLineIds:X,isAddReimbursementDisabled:K,duplicateLineByLineId:A,remiStatus:ie,file:se,uncategorizedAccounts:U,reportTitle:me,recommendationFetchState:Ee,tentativeMerchantName:pe,paymentTo:be,analytics:de,companyMileageConfigInfo:je,loggedInUserDepartmentId:Oe,isSignedInUserReimbursementCreator:Pe,setShowBankAccountPage:he,setRefByLineId:Re,setCurrentLineIdForUpload:ge,onDuplicateLineClick:ve,setUploadedReceiptPayload:Ke,removeDuplicateReimbursementForLine:y,onReceiptsUpload:ne,scrollToSection:ot,onRemoveReimbursement:_e,onAddReimbursement:Le,clearTentativeNameForLine:Ge,onReplaceClick:ze,onDeleteBankAccount:Ve,updateInvoiceUploadFetchState:qe,removeFileFromLine:Ye,allCurrencies:Xe,accountsHierarchyList:oe,classHierarchyList:at})=>{const{formState:{errors:ut}}=nt(),Qe=v.useRef(null);v.useEffect(()=>(Re(B=>({...B,[`L${s.lineId}`]:Qe.current})),()=>{Re(B=>({...B,[`L${s.lineId}`]:null}))}),[s.lineId,Re]);const _=Ae(),mt=R==="draft"?V.newReimbursementTitle:V.editReimbursementTitle,N=E.largeLabelWidth.value(_),ce=B=>B.outOfPocket.account.selectedOption==null&&(B.outOfPocket.amount==null||B.outOfPocket.amount.amount==0)&&(B.outOfPocket.class.selectedOption==null||B.outOfPocket.class.selectedOption===Oe)&&(B.outOfPocket.memo===""||B.outOfPocket.memo==null)&&B.outOfPocket.merchant.selectedOption==null&&B.outOfPocket.transactionDate==null,wt=F.map(B=>B.bankAccountId),Ce=s.reimbursementType===V.outOfPocketKey&&Tn(s)>=75&&se==null;return t.jsxs(Ya,{ref:k,windowSize:_,children:[t.jsx(Xa,{ref:B=>{B!=null&&(Qe.current=B)},windowSize:_,bottomSeperator:Z!==1,showSkipAutoFill:S,isFirstItem:l===0,children:t.jsx(Cn,{customError:Ce?V.requireReceipt:void 0,analytics:de,showAutofill:!1,uploadInvoiceEndPoint:O,authParams:x,entityId:K?"":void 0,file:se,style:{width:"auto",padding:0,height:f?E.firstOrLastItemHeight.valuePx(_):E.itemHeight.valuePx(_),margin:_==="small"?i.sp0:void 0},updateInvoiceUploadFetchState:qe,onInvoiceUpload:B=>{s.reimbursementType===V.outOfPocketKey&&!ce(s)?(ge(Number(s.lineId)),Ke(B),ze?.()):ne(B,Number(s.lineId),!0)},dropFilePlaceholder:{upload:V.dropReceipt.upload,receipt:V.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!K,pdfTitle:Z>1?`#${l+1} Receipt`:"Receipt",onDeleteClick:()=>{qe?.("In-Progress"),setTimeout(()=>Ye?.(Number(s.lineId)))},onReplaceClick:()=>{ge(Number(s.lineId)),ze?.()},allowMultiFiles:Z===l+1,type:"reimbursement"})}),t.jsxs(Ga,{windowSize:_,children:[l===0&&_!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ea,{children:mt}),t.jsx(Qa,{children:t.jsx(Co,{progressSectionObj:o,createDate:c,paymentDate:C,scheduleDate:h,approvedDate:w,isBillUploaded:r!=null?!0:e==="Completed"})}),re&&t.jsxs(La,{children:[t.jsx(Pa,{}),t.jsx(Fa,{children:V.banner})]}),u&&t.jsxs(Aa,{size:_,children:[t.jsx(Ra,{}),t.jsxs(Ba,{children:[t.jsx(za,{children:V.thereSeems}),t.jsx(Ma,{children:V.pleaseFind})]})]}),t.jsx(Dn,{isReimbursementCommentingEnabled:z,sectionId:At,reportTitle:me,reimbursementId:r})]}):null,t.jsx(ua,{analytics:de,reimbursementId:r,onDuplicateLineClick:ve,uncategorizedAccounts:U,sectionId:`${bi}.${l}`,scrollToSection:ot,lineIndex:l,lineData:s,accountList:I,classList:P,merchantList:Y,autoFields:s.lineId!=null?D[s.lineId]:[],currencyConversionState:p,recommendationFetchState:Ee,onRemoveReimbursement:_e,hasMultipleLineItems:Z>1,clearTentativeNameForLine:Ge,tentativeMerchantName:pe,hasFile:se!=null,companyMileageConfigInfo:je,defaultCurrency:H,remiStage:R,remiStatus:ie,fileRequiredLineIds:X,allCurrencies:Xe,isReimbursementCommentingEnabled:z,isAddReimbursementDisabled:K,accountsHierarchyList:oe,classHierarchyList:at,duplicateLineDetails:A[s.lineId],removeDuplicateReimbursementForLine:y}),Z!==1&&Z===l+1&&t.jsxs(t.Fragment,{children:[t.jsxs(Wa,{windowSize:_,children:[t.jsx(Ua,{children:V.total}),le?t.jsx(_a,{windowSize:_,children:t.jsx(Va,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:gn(te,"USD","$"),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]}),t.jsxs(Ha,{windowSize:_,onClick:()=>{K===!1&&Le()},isDisabled:K,"data-testid":q("add-reimbursement-row"),children:[t.jsx(Ni,{}),t.jsx(Ei,{children:V.addReimbursement})]}),Pe?t.jsxs(t.Fragment,{children:[t.jsx(Na,{windowSize:_,children:V.receivePaymentTo}),t.jsx(qa,{windowSize:_,shouldDisplay:F.length>0,children:t.jsx(yn,{label:{label:V.yourBankAccount,width:N},style:{width:"auto"},singleSelectField:{singleSelect:{name:yt,placeholder:tt(V.yourBankAccount),showValueEyeIcon:!K,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:Ve,getTooltipInfo:B=>jn(F,B),onClickCreateBankAccount:()=>he(!0),getLabelForId:B=>Pn(F,B),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:K?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:be,allOptions:wt},registerOptions:{required:!0,validate:B=>!!B.selectedOption}},isFunctional:!0})}),t.jsxs(Ka,{shouldDisplay:F.length===0,windowSize:_,hasError:Te(ut,yt),onClick:()=>{K===!1&&he(!0)},isDisabled:K,"data-testid":q("remi-add-bank-account-container"),children:[t.jsx(Ni,{}),t.jsx(Ei,{children:V.addBankAccount})]})]}):null]})]})]})},jn=(e,o)=>{const r=On(e,o);return r==null?`${Dt.bankRoutingNumber} ${V.emptyValue}
|
|
262
|
+
${Dt.bankAccountNumber} ${V.emptyValue}`:`${Dt.bankRoutingNumber} ${r.bankRoutingNumberAch??V.emptyValue}, ${r.bankName??V.emptyValue}
|
|
263
|
+
${Dt.bankAccountNumber} ${r.bankAccountNumber??V.emptyValue}`},On=(e,o)=>e.find(r=>r.bankAccountId===o),Pn=(e,o)=>{const r=On(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},Pa=n(mi)`
|
|
264
|
+
color: ${e=>e.theme.colors.primary};
|
|
265
|
+
width: ${i.sp3};
|
|
266
|
+
height: ${i.sp3};
|
|
267
|
+
`,Ra=n(To)`
|
|
268
|
+
width: ${i.sp4};
|
|
269
|
+
height: ${i.sp4};
|
|
270
|
+
color: ${j.brandColorGoldDark};
|
|
271
|
+
`,La=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
|
+
`,Aa=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=>E.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
286
|
+
margin-right: ${e=>E.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
287
|
+
margin-bottom: ${e=>E.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
288
|
+
margin-left: ${e=>E.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
289
|
+
background-color: ${j.alertLight};
|
|
290
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
291
|
+
`,za=n(Ft)`
|
|
292
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
293
|
+
`,Ba=n.div`
|
|
294
|
+
width: 100%;
|
|
295
|
+
`,Ma=n(yi)`
|
|
296
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
297
|
+
`,Fa=n.span`
|
|
298
|
+
color: ${e=>e.theme.colors.hero};
|
|
299
|
+
`,Ea=n(Do)`
|
|
300
|
+
letter-spacing: -0.02em;
|
|
301
|
+
color: ${e=>e.theme.colors.primary};
|
|
302
|
+
margin: ${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6};
|
|
303
|
+
`,Na=n(Mt)`
|
|
304
|
+
letter-spacing: -0.02em;
|
|
305
|
+
color: ${e=>e.theme.colors.primary};
|
|
306
|
+
margin-top: ${e=>E.paymentToMarginTop.valuePx(e.windowSize)};
|
|
307
|
+
margin-bottom: ${e=>E.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
308
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
309
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
310
|
+
`,Wa=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=>E.totalMarginBottom.valuePx(e.windowSize)};
|
|
320
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
321
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
322
|
+
margin-bottom: ${e=>E.totalMarginBottom.valuePx(e.windowSize)};
|
|
323
|
+
justify-content: space-between;
|
|
324
|
+
`,Ua=n(fn)`
|
|
325
|
+
display: flex;
|
|
326
|
+
width: 176px;
|
|
327
|
+
color: ${e=>e.theme.colors.primary};
|
|
328
|
+
`,_a=n(xn)`
|
|
329
|
+
display: flex;
|
|
330
|
+
width: calc(100% - 176px);
|
|
331
|
+
justify-content: flex-end;
|
|
332
|
+
color: ${e=>e.theme.colors.primary};
|
|
333
|
+
${e=>`${ja.total.style(e.windowSize)}`};
|
|
334
|
+
`,Va=n.div`
|
|
335
|
+
padding-right: ${i.sp3};
|
|
336
|
+
height: 30px;
|
|
337
|
+
display: flex;
|
|
338
|
+
justify-content: flex-end;
|
|
339
|
+
`,qa=n.div`
|
|
340
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
341
|
+
margin-right: ${e=>E.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
|
+
`,Ha=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=>E.totalMarginBottom.valuePx(e.windowSize)};
|
|
363
|
+
margin-left: ${e=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
364
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
365
|
+
margin-bottom: ${e=>E.marginBottom.valuePx(e.windowSize)};
|
|
366
|
+
`,Ka=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=>E.reimbursementSectionLeftMargin.valuePx(e.windowSize)};
|
|
382
|
+
margin-right: ${e=>E.reimbursementSectionRightMargin.valuePx(e.windowSize)};
|
|
383
|
+
margin-bottom: ${e=>E.marginBottom.valuePx(e.windowSize)};
|
|
384
|
+
`,Ei=n(Ft)`
|
|
385
|
+
color: inherit;
|
|
386
|
+
`,Ni=n(wn)`
|
|
387
|
+
margin-right: ${i.sp2};
|
|
388
|
+
width: ${i.sp3};
|
|
389
|
+
height: ${i.sp3};
|
|
390
|
+
`,Ga=n.div`
|
|
391
|
+
display: flex;
|
|
392
|
+
flex-direction: column;
|
|
393
|
+
width: ${e=>E.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
394
|
+
`,Ya=n.div`
|
|
395
|
+
display: flex;
|
|
396
|
+
width: 100%;
|
|
397
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
398
|
+
`,Xa=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=>E.invoiceSectionLeftMargin.valuePx(e.windowSize)};
|
|
404
|
+
margin-right: ${e=>E.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=>E.marginTop.valuePx(e.windowSize)};
|
|
408
|
+
`,Qa=n.div`
|
|
409
|
+
padding: ${i.sp2} ${i.sp8} ${i.sp0} ${i.sp6};
|
|
410
|
+
`,Ja={total:new gi("largeMedium","h6Medium")},Q={largeLabelWidth:new d(120,120,220),marginBottom:new d(a[5],a[4]),addBankAccountMarginBottom:new d(a[5],a[5]),marginTop:new d(a[0],78),paymentToMarginTop:new d(0,a[4]),totalMarginBottom:new d(a[3],a[3]),rightMargin:new d(a[3],a[8]),leftMargin:new d(a[3],a[6]),paymentToMarginBottom:new d(12,a[3])},et=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,Za=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:c,showSkipAutoFill:h,isReimbursementCommentingEnabled:C,isAutoFieldsExist:u,totalAmount:w,defaultCurrency:f,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:S,companyMileageConfigInfo:s,analytics:p,reimbursementId:x,currencyConversionStatus:O,setShowSkipAutoFill:I,setShowBankAccountPage:P,removeDuplicateReimbursementForLine:Y,onReceiptsUpload:R,setCurrentLineIdForUpload:D,onDuplicateLineClick:z,setUploadedReceiptPayload:re,removeFileFromLine:te,onReplaceClick:le,updateInvoiceUploadFetchState:Z,clearTentativeNameForLine:H,onDeleteBankAccount:F,uncategorizedAccounts:X,isSignedInUserReimbursementCreator:K,duplicateLineByLineId:A,showTotalAmountLoader:ie,scrollContainerRef:se})=>{const{control:U,formState:{errors:me}}=nt(),{fields:Ee,append:pe,remove:be}=bo({name:bi,control:U}),de=Ee,je=v.useRef(null),Oe=N=>{setTimeout(()=>{be(N)})},{tentativeMerchantNameByLineId:Pe,remiStage:he,remiStatus:Re}=e,ge=!K||he==="pending_approval"&&Re!=="rejected"&&o||he==="pending_approval"&&Re==="rejected",ve=ge?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:k,Ke=ve.map(N=>N.bankAccountId),y=Ae(),ne=Q.largeLabelWidth.value(y),ot=e.whatForSection.reportTitle,_e=e.accountList.accounts,Le=e.accountsHierarchyList,Ge=e.classHierarchyList,ze=e.classList.classes,Ve=e.merchantList.merchants,qe=e.addRemiAutoFieldsByLineId,Ye=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(N=>Number(N)),0),Xe=()=>{const N=de[de.length-1],ce=Rn(de.length,Number(N.lineId)>Ye?String(Number(N.lineId)+1):String(Ye+1),Le,Ge,Ve,f,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{pe(ce,{shouldFocus:!1})}),D(Number(ce.lineId)),I(!0),setTimeout(()=>Li(je.current,se?.current),50)},[oe,at]=v.useState({}),ut=v.useCallback(N=>{const ce=oe[`L${N}`];ce!=null&&Li(ce,se?.current)},[oe,se]),Qe=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,_=e.reimbursementInfo?.paymentDate!=null?it(rn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,mt=e.reimbursementInfo?.expectedDepositDate??_;return t.jsxs(nr,{windowSize:y,showSkipAutoFill:h,children:[de.map((N,ce)=>t.jsx(Oa,{removeDuplicateReimbursementForLine:Y,onDuplicateLineClick:z,scrollToSection:ut,setRefByLineId:at,duplicateLineByLineId:A,reimbursementId:x,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:X,progressSectionObj:Qe,createDate:e.createTime,paymentDate:mt,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:de.length-1===ce||ce===0,index:ce,reimbursementSectionRef:je,remiStage:he,remiStatus:Re,authParams:r,file:N.file,uploadInvoiceEndPoint:c,showSkipAutoFill:h,lineData:N,currencyConversionState:O[N.lineId],recommendationFetchState:e.lineDetailSection[N.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:D,setUploadedReceiptPayload:re,onReplaceClick:le,onReceiptsUpload:R,removeFileFromLine:te,isReimbursementCommentingEnabled:C,isAutoFieldsExist:u,reportTitle:ot,accountList:_e,classList:ze,merchantList:Ve,autoFieldsByLineId:qe,onRemoveReimbursement:Oe,onAddReimbursement:Xe,totalAmount:w,showTotalAmountLoader:ie,hasDuplicateLine:l,totalNumberOfLines:de.length,updateInvoiceUploadFetchState:Z,clearTentativeNameForLine:H,tentativeMerchantName:Pe[N.lineId],companyMileageConfigInfo:s,defaultCurrency:f,setShowBankAccountPage:P,paymentTo:e.paymentTo,bankAccounts:ve,onDeleteBankAccount:F,analytics:p,fileRequiredLineIds:S,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:ge,accountsHierarchyList:Le,classHierarchyList:Ge,isSignedInUserReimbursementCreator:K},N.lineId)),de.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(Qt,{children:[y!=="small"?t.jsx(Yt,{windowSize:y}):null,t.jsx(Xt,{windowSize:y,children:t.jsxs(or,{windowSize:y,children:[t.jsx(ar,{children:et.total}),ie?t.jsx(lr,{windowSize:y,children:t.jsx(sr,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:gn(w,Ti.currencyCode,Ti.currencySymbol),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]})})]}),t.jsxs(Qt,{children:[y!=="small"?t.jsx(Yt,{windowSize:y}):null,t.jsx(Xt,{windowSize:y,children:t.jsxs(dr,{windowSize:y,onClick:()=>{ge===!1&&Xe()},isDisabled:ge,"data-testid":q("add-reimbursement-container"),children:[t.jsx(Ui,{}),t.jsx(Wi,{children:et.addReimbursement})]})})]}),t.jsxs(Qt,{children:[y!=="small"?t.jsx(Yt,{windowSize:y}):null,K?t.jsxs(Xt,{windowSize:y,children:[t.jsx(rr,{windowSize:y,children:et.receivePaymentTo}),t.jsx(ir,{windowSize:y,shouldDisplay:ve.length>0,children:t.jsx(yn,{label:{label:et.yourBankAccount,width:ne},style:{width:"auto"},singleSelectField:{singleSelect:{name:yt,placeholder:tt(et.yourBankAccount),showValueEyeIcon:!ge,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:F,getTooltipInfo:N=>jn(ve,N),onClickCreateBankAccount:()=>P(!0),getLabelForId:N=>Pn(ve,N),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:ge?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Ke},registerOptions:{required:!0,validate:N=>!!N.selectedOption}},isFunctional:!0})}),t.jsxs(cr,{shouldDisplay:ve.length===0,windowSize:y,onClick:()=>{ge===!1&&P(!0)},hasError:Te(me,yt),isDisabled:ge,"data-testid":q("remi-add-bank-account-container"),children:[t.jsx(Ui,{}),t.jsx(Wi,{children:et.addBankAccount})]})]}):null]})]})]})},Rn=(e,o,r,c,h,C,u,w)=>{const f=er(r,c,h,C,u,w);return{lineIndex:e,lineId:o,reimbursementType:et.outOfPocketKey,file:void 0,outOfPocket:f,mileage:tr(c,C,w)}},er=(e,o,r,c,h,C)=>({transactionDate:void 0,class:{allOptions:He(o,[]).map(u=>({...u,options:u.options.filter(w=>w.isDeleted!==!0)})),selectedOption:C},account:{allOptions:zt(e,[]).map(u=>({...u,options:u.options.filter(w=>w.isDeleted!==!0)})),selectedOption:void 0},amount:{amount:0,currencyCode:c.currencyCode,currencySymbol:c.currencySymbol,currency:{allOptions:h.map(u=>({label:`${u.currencyCode} - ${u.currency}`,value:u.currencyCode,countryCode:di(u.countryCode)})),selectedOption:c.currencyCode??we.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(u=>u.id).filter(u=>!!u),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),tr=(e,o,r)=>({transactionDate:void 0,class:{allOptions:He(e,[]).map(c=>({...c,options:c.options.filter(h=>h.isDeleted!==!0)})),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),ir=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
|
+
`,Yt=n.div`
|
|
419
|
+
width: ${e=>e.windowSize==="small"?"100%":"42%"};
|
|
420
|
+
`,Xt=n.div`
|
|
421
|
+
width: ${e=>e.windowSize==="small"?"100%":"58%"};
|
|
422
|
+
`,nr=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
|
+
`,or=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
|
+
`,ar=n(fn)`
|
|
440
|
+
display: flex;
|
|
441
|
+
width: 176px;
|
|
442
|
+
color: ${e=>e.theme.colors.primary};
|
|
443
|
+
`,rr=n(Mt)`
|
|
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
|
+
`,lr=n(xn)`
|
|
450
|
+
display: flex;
|
|
451
|
+
width: calc(100% - 176px);
|
|
452
|
+
justify-content: flex-end;
|
|
453
|
+
color: ${e=>e.theme.colors.primary};
|
|
454
|
+
${e=>`${Ja.total.style(e.windowSize)}`};
|
|
455
|
+
`,sr=n.div`
|
|
456
|
+
padding-right: ${i.sp3};
|
|
457
|
+
height: 30px;
|
|
458
|
+
display: flex;
|
|
459
|
+
justify-content: flex-end;
|
|
460
|
+
`,dr=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
|
+
`,cr=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
|
+
`,Wi=n(Ft)`
|
|
499
|
+
color: inherit;
|
|
500
|
+
`,Ui=n(wn)`
|
|
501
|
+
margin-right: ${i.sp2};
|
|
502
|
+
width: ${i.sp3};
|
|
503
|
+
height: ${i.sp3};
|
|
504
|
+
`,Qt=n.div`
|
|
505
|
+
display: flex;
|
|
506
|
+
width: 100%;
|
|
507
|
+
`,Fe={buttonWidth:new d(140,140),paddingLeft:new d(a[3],a[6]),paddingRight:new d(a[3],a[8]),subTitleMarginbottom:new d(a[2],a[3]),orSeperatorTopBottomMargin:new d(a[6],44),iconWidthHeight:new d(20,a[4])},_i="userBankAccountPage",Pt="bankAccountSection",ur=e=>({[Pt]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName}}),Vi=e=>`${e}_form`,mr=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:c,onEstablishConnectionClick:h,bankAccountToCreate:C,fetchBankNameByRoutingStatus:u,isDisabled:w,onSaveHandler:f,onUserBankDetailsUpdated:l,onFetchBankName:k,onBackClick:S})=>{const s=bt(),p=Ae(),x=on({mode:"onBlur",reValidateMode:"onChange",defaultValues:v.useMemo(()=>ur(C),[C])}),O=v.useCallback(H=>{h?.(H),S()},[S,h]),I=r.link_account_no_microdeposit,{open:P}=xo({token:I.linkToken??null,onSuccess:O});v.useEffect(()=>{(it(new Date().toISOString()).isAfter(I.expiration)||I.linkToken==null)&&c?.("link_account_no_microdeposit")},[]);const[Y,R]=v.useState(!1),D=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,z=we.getLocalizedStrings().common.footer,re={onOkClick:()=>{R(!1),x.reset(),S()},onCancelClick:()=>{R(!1)}},te=async(H,F)=>{const X=F[Pt].bankRoutingNumber;l(F),H===`${Pt}.bankRoutingNumber`&&X?.length===9&&ko.test(X)===!0&&k?.(X)};v.useEffect(()=>{const H=x.watch((F,{name:X})=>{X!=null&&F!=null&&wo(()=>te(X,F))});return()=>{H.unsubscribe()}}),v.useEffect(()=>{e?.fetchState==="Completed"&&S()},[e?.fetchState,S,o]);const le=x.handleSubmit(H=>{u.fetchState!=="In-Progress"&&f()}),Z=s.mode==="light"?new ji(s.colors.brandColorJadeLight):new ji(s.colors.brandColorJadeDark);return t.jsxs(pr,{children:[t.jsxs(wr,{windowSize:p,children:[Y===!0?t.jsx(si,{titleComponent:t.jsx(dn,{children:D.discardTitle}),descriptionComponent:t.jsx(sn,{children:D.discardDescription}),primaryButtonText:D.buttons.delete,secondaryButtonText:D.buttons.cancel,action:re}):null,t.jsx(Uo,{header:D.addBankAccount,isDirty:x.formState.isDirty,onBackClick:S,setShowConfirmationPopup:R}),t.jsx(hr,{}),t.jsxs(Sr,{size:p,children:[t.jsx(No,{onClick:()=>{x.reset(),P()},title:D.connectYourBank,subTitle:D.loginToBank,header:D.setupAchPayments,icon:{element:t.jsx(So,{width:Fe.iconWidthHeight.valuePx(p),height:Fe.iconWidthHeight.valuePx(p)}),color:Z},style:{width:"unset",rowGap:p==="small"?i.sp2:void 0}}),t.jsxs(gr,{windowSize:p,children:[t.jsx(yr,{}),t.jsx(fr,{children:t.jsx(xr,{children:D.or})})]}),t.jsx(br,{windowSize:p,children:D.saveAccountManually})]}),t.jsx($r,{size:p,children:t.jsx(ln,{...x,children:t.jsxs("form",{id:Vi(_i),onSubmit:le,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(_o,{warningText:D.accountExistWarning}):null,t.jsx(Wo,{bankAccountToCreate:C,fetchBankNameByRoutingStatus:u,sectionId:Pt})]})})})]}),t.jsx(un,{formId:Vi(_i),primaryBtn:{label:D.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Fe.buttonWidth.value(p)},isDisabled:w!=null},cancelBtn:{label:z.cancel,style:{width:Fe.buttonWidth.value(p)},shouldResetOnCancel:!1,onClick:()=>{x.formState.isDirty?R(!0):(R(!1),x.reset(),S())}}})]})},pr=n.div`
|
|
508
|
+
display: flex;
|
|
509
|
+
flex-direction: column;
|
|
510
|
+
width: 100%;
|
|
511
|
+
height: 100%;
|
|
512
|
+
`,hr=n.div`
|
|
513
|
+
margin: ${i.sp2} 0;
|
|
514
|
+
position: relative;
|
|
515
|
+
`,gr=n.div`
|
|
516
|
+
margin: ${e=>Fe.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
|
|
517
|
+
position: relative;
|
|
518
|
+
`,yr=n.div`
|
|
519
|
+
background: ${e=>e.theme.colors.grey2};
|
|
520
|
+
height: 1px;
|
|
521
|
+
`,br=n(Io)`
|
|
522
|
+
color: ${e=>e.theme.colors.primary};
|
|
523
|
+
margin-bottom: ${e=>Fe.subTitleMarginbottom.valuePx(e.windowSize)};
|
|
524
|
+
`,fr=n.div`
|
|
525
|
+
display: flex;
|
|
526
|
+
justify-content: center;
|
|
527
|
+
`,xr=n(hi)`
|
|
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
|
+
`,wr=n.div`
|
|
540
|
+
display: flex;
|
|
541
|
+
flex-direction: column;
|
|
542
|
+
flex-grow: 1;
|
|
543
|
+
`,Sr=n.div`
|
|
544
|
+
padding-left: ${e=>Fe.paddingLeft.valuePx(e.size)};
|
|
545
|
+
padding-right: ${e=>Fe.paddingRight.valuePx(e.size)};
|
|
546
|
+
`,$r=n.div`
|
|
547
|
+
padding-left: ${e=>Fe.paddingLeft.valuePx(e.size)};
|
|
548
|
+
padding-right: ${e=>Fe.paddingRight.valuePx(e.size)};
|
|
549
|
+
padding-bottom: ${i.sp3};
|
|
550
|
+
`,De={containerWidth:new d(343,544),confirmationPopUpTitleMarginTop:new d(a[6],a[7]),confirmationPopUpTitlePaddingLeftRight:new d(a[5],a[8]),submitButtonWidth:new d(145,156),cancelButtonWidth:new d(121,121),errorLineItemGap:new d(a[2],12),styledCloseIconRight:new d(a[3],a[8])},{footer:qi}=we.getLocalizedStrings().common,xe=we.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,Hi=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(Gi,{});case"In-Progress":return t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(Ln,{});default:return t.jsx(Gi,{})}},vr=e=>{switch(e){case"Not-Started":return xe.detectDuplicates;case"In-Progress":return xe.detectingDuplicates;case"Completed":return xe.noDuplicatesFound;default:return xe.detectDuplicates}},Cr=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:c,setShowDuplicatePopup:h,analytics:C,reimbursementId:u,submitReport:w,fetchDuplicateReimbursement:f,clearDuplicateReimbursementDetail:l,clearRemiSaveStatus:k})=>{const S=Ae(),[s,p]=Ct.useState(!0),x=ri(e),O=ri(o);Ct.useEffect(()=>{setTimeout(()=>{s&&(p(!1),o==="Not-Started"&&f())},2e3)},[o,f,s]),Ct.useEffect(()=>{x==="In-Progress"&&e==="Completed"&&(l(),h(!1))},[e,x,h,l]),Ct.useEffect(()=>{O==="In-Progress"&&o==="Completed"&&!r&&w()},[O,o,r,w]);const I=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[I?t.jsx(kr,{size:S}):null,t.jsx(si,{action:{onOkClick:()=>{I?(l(),e==="Error"&&k(),p(!0)):(C?.trackReimbursementReviewDuplicateReportReimbursement(c,u),h(!1),po())},onCancelClick:()=>{I?(l(),e==="Error"&&k(),h(!1)):(C?.trackReimbursementSubmitAnywayDuplicateReimbursement(c,u),w())}},shouldClickAway:I,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:I?qi.resubmit:xe.primaryButtonText,secondaryButtonText:I?qi.cancel:xe.secondaryButtonText,primaryButtonWidth:I?De.cancelButtonWidth.value(S):De.submitButtonWidth.value(S),secondaryButtonWidth:I?De.cancelButtonWidth.value(S):De.submitButtonWidth.value(S),descriptionComponent:t.jsx(Tr,{size:S,children:t.jsxs(Ir,{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(Ln,{}),t.jsx(Jt,{isDisabled:!1,children:s?xe.reviewingExpenses:xe.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(Xi,{size:S,children:[t.jsx(Ki,{}),t.jsx(Yi,{children:o==="Error"?xe.failedToDetect:`${c} ${xe.duplicateExpensesFound}`})]}):t.jsxs(Zt,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&c===0,children:[t.jsx(Hi,{fetchState:o}),t.jsx(Jt,{isDisabled:o==="Not-Started",children:vr(o)})]}),e==="Error"?t.jsxs(Xi,{size:S,children:[t.jsx(Ki,{}),t.jsx(Yi,{children:xe.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(Zt,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(Hi,{fetchState:e}),t.jsx(Jt,{isDisabled:e==="Not-Started",children:e==="Not-Started"?xe.submitReport:xe.submittingReport})]})]})}),titleComponent:t.jsx(Dr,{size:S,children:xe.title}),showFooter:r||I,containerStyle:{width:De.containerWidth.value(S),maxWidth:"unset"}})]})},kr=n(pn)`
|
|
551
|
+
width: ${i.sp4};
|
|
552
|
+
height: ${i.sp4};
|
|
553
|
+
color: ${e=>e.theme.colors.hero};
|
|
554
|
+
position: fixed;
|
|
555
|
+
top: 19px;
|
|
556
|
+
right: ${e=>De.styledCloseIconRight.valuePx(e.size)};
|
|
557
|
+
z-index: 11;
|
|
558
|
+
cursor: pointer;
|
|
559
|
+
&:hover {
|
|
560
|
+
color: ${e=>e.theme.colors.primary};
|
|
561
|
+
}
|
|
562
|
+
`,Ki=n(vo)`
|
|
563
|
+
width: ${i.sp4};
|
|
564
|
+
height: ${i.sp4};
|
|
565
|
+
min-width: ${i.sp4};
|
|
566
|
+
color: ${j.brandColorGoldDark};
|
|
567
|
+
`,Gi=n(Vo)`
|
|
568
|
+
width: ${i.sp3};
|
|
569
|
+
height: ${i.sp3};
|
|
570
|
+
min-width: ${i.sp3};
|
|
571
|
+
color: ${e=>e.theme.colors.grey3};
|
|
572
|
+
`,Jt=n.div`
|
|
573
|
+
color: ${e=>e.isDisabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
574
|
+
text-align: left;
|
|
575
|
+
`,Yi=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
|
+
`,Ir=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
|
+
`,Xi=n.div`
|
|
591
|
+
display: flex;
|
|
592
|
+
align-items: center;
|
|
593
|
+
gap: ${e=>De.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
|
+
`,Dr=n(ui)`
|
|
600
|
+
margin-top: ${e=>De.confirmationPopUpTitleMarginTop.valuePx(e.size)};
|
|
601
|
+
padding-left: ${e=>De.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
602
|
+
padding-right: ${e=>De.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
|
+
`,Tr=n(bn)`
|
|
607
|
+
color: ${e=>e.theme.colors.hero};
|
|
608
|
+
padding-left: ${e=>De.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
609
|
+
padding-right: ${e=>De.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
|
+
`,Ln=n($o)`
|
|
615
|
+
width: ${i.sp4};
|
|
616
|
+
height: ${i.sp4};
|
|
617
|
+
min-width: ${i.sp4};
|
|
618
|
+
color: ${j.success};
|
|
619
|
+
`,J={rightMargin:new d(a[3],a[8]),leftMargin:new d(a[3],a[6]),bottomMargin:new d(56,56),closeMarginTop:new d(0,19),closeMarginRight:new d(a[3],a[8]),rightSectionWidth:new d(100,58),leftSectionWidth:new d(100,42),footerButtonWidth:new d(120,165),right:new d(a[3],a[0]),actionsContainerRight:new d(a[0],a[6]),otherActionsContainerBottom:new d(58,44),duplicateBannerWrapperMarginTop:new d(a[5],a[3]),duplicateBannerWrapperMarginRight:new d(a[3],a[8]),duplicateBannerWrapperMarginBottom:new d(a[5],a[3]),duplicateBannerWrapperMarginLeft:new d(a[3],a[6]),navBarWidth:new d(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:b,bulkActions:Qi}},common:{currency:{currencyCode:Ne,currencySymbol:jt},texts:{comments:jr},strings:{empty:Or}},collaboration:{threads:{placeholder:{addANewComment:Pr,replyAComment:Rr},tooltip:{resolveComment:Lr,unResolveComment:Ar}}},dateFormat:Ji}=we.getLocalizedStrings(),Zi="editReimbursementDetailPage",en=e=>`${e}_form`,zr=(e,o,r,c,h,C,u,w,f)=>{const l=e.outOfPocket,k=e.mileage,S=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??b.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??u.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??u.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:He(r,[]).map(p=>({...p,options:p.options.filter(x=>x.isDeleted!==!0)})),selectedOption:l?.lineDetail?.class?.classId??f},account:{allOptions:zt(o,s).map(p=>({...p,options:p.options.filter(x=>x.isDeleted!==!0)})),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??u.currencyCode,currencySymbol:l?.currencySymbol??u.currencySymbol,currency:{allOptions:w.map(p=>({label:`${p.currencyCode} - ${p.currency}`,value:p.currencyCode,countryCode:di(p.countryCode)})),selectedOption:l?.currencyCode??u.currencyCode??Ne}},memo:l?.description??void 0,merchant:{allOptions:c.map(p=>p.id).filter(p=>!!p),selectedOption:S?.id?S?.id:S?.name?S?.name:e?.lineId!=null?h[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:He(r,[]).map(p=>({...p,options:p.options.filter(x=>x.isDeleted!==!0)})),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??u.currencyCode,currencySymbol:k?.currencySymbol??u.currencySymbol},memo:k?.description}}},ei=(e,o,r)=>{const c=[];return Object.values(e.lineDetailSection).forEach((h,C)=>{h?.lineId!=null&&c.push(zr(h,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),c.length===0&&c.push(Rn(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[At]:{reportTitle:e.whatForSection.reportTitle},[bi]:c,[yt]:{selectedOption:e.paymentTo,allOptions:r.map(h=>h.bankAccountId)}}},ti=(e,o)=>{const r=c=>c.lineId==null||o[c.lineId]?.fetchState==="In-Progress"?0:(o[c.lineId]?.fetchState,c.type===b.mileageKey?c?.mileage?.amount??0:c?.outOfPocket?.currencyCode!==Ne&&c.homeCurrencyConversions?.amount!==c?.outOfPocket?.amount?c.homeCurrencyConversions?.amount??0:c?.outOfPocket?.amount??0);return Object.values(e).reduce((c,h)=>c+r(h),0)},ii=(e,o,r,c,h,C,u,w)=>{const f={};return e.lineInfo.forEach(l=>{const k=w.find(O=>O.classId===l.mileage.class.selectedOption),S=u.find(O=>O.qboId===l.outOfPocket.account.selectedOption||O.accountId===l.outOfPocket.account.selectedOption),s=w.find(O=>O.classId===l.outOfPocket.class.selectedOption),p=o.find(O=>O.id===l.outOfPocket.merchant.selectedOption),x=C.find(O=>O.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;f[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k},transactionDate:l.mileage.transactionDate!=null?it(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??x,currencySymbol:l.mileage.amount?.currencySymbol??x,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:S},transactionDate:l.outOfPocket.transactionDate!=null?it(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??x,currencySymbol:x,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:p?.id??"",name:p?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:f,totalAmount:{amount:c,...r},currencyConversionStateByLineId:h,paymentTo:e.paymentTo.selectedOption}},Bl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:c,uploadInvoiceEndPoint:h,isReimbursementCommentingEnabled:C,isUserAdmin:u,analytics:w,reimbursementId:f,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:S,bankAccounts:s,isSignedInUserReimbursementCreator:p,uncategorizedAccounts:x,bankAccountToCreate:O,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:P,onFetchBankName:Y,onSaveBankAccount:R,fetchDuplicateReimbursement:D,clearDuplicateReimbursementDetail:z,clearRemiSaveStatus:re,removeDuplicateReimbursementForLine:te,onDuplicateLineClick:le,onExistingMerchantChange:Z,onNewMerchantChange:H,onReceiptsUpload:F,saveRemiDetails:X,submitRemiDetails:K,discardReimbursementDetailsFromLocalStore:A,onReimbursementDetailsChanged:ie,updateReimbursementType:se,onHomeCurrencyConversionUpdate:U,redirectToReimbursementListScreen:me,redirectToReimbursementDetailScreen:Ee,deleteReimbursement:pe,removeFileFromLine:be,onZeniLogoClick:de,onAmountChanged:je,updateInvoiceUploadFetchState:Oe,clearTentativeNameForLine:Pe,onAddNewRule:he,onFetchLinkTokenClick:Re,onEstablishConnectionClick:ge,deleteBankAccount:ve,onBackClickFromBankAccountPage:Ke})=>{const y=v.useRef(null),ne=v.useRef(null),ot=ri(e.uploadStatus),_e=bt(),Le=ft(),[Ge,ze]=v.useState(!1),[Ve,qe]=v.useState(!1),[Ye,Xe]=v.useState("save"),[oe,at]=v.useState(ti(e.lineDetailSection,e.currencyConversionStatus)),[ut,Qe]=v.useState(!1),[_,mt]=v.useState(null),[N,ce]=v.useState(!1),wt=`dashboard_${Le.currentTenant?.companyId}`,Ce=on({mode:"all",reValidateMode:"onChange",defaultValues:v.useMemo(()=>ei(e,r,s),[e,r,s]),values:v.useMemo(()=>ei(e,r,s),[e,r,s]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:B,dirtyFields:An}=Ce.formState,zn=async(g,T)=>{const{lineInfo:m}=T,$=Number(g.split(".")[1]);if(g.includes("reportTitle")||g.includes("memo"))return;if(g.includes("reimbursementType")){const M=m[$].mileage,W=m[$].outOfPocket;m[$]={...m[$],outOfPocket:{transactionDate:W.transactionDate??void 0,class:{allOptions:W.class.allOptions??He(e.classHierarchyList,[]),selectedOption:W.class.selectedOption??void 0},account:{allOptions:W.account.allOptions??zt(e.accountsHierarchyList,[]).map(ue=>({...ue,options:ue.options.filter(vt=>vt.isDeleted!==!0)})),selectedOption:W.account.selectedOption??void 0},amount:W.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(ue=>({label:`${ue.currencyCode} - ${ue.currency}`,value:ue.currencyCode,countryCode:di(ue.countryCode)})),selectedOption:r.currencyCode??Ne}},memo:W.memo??void 0,merchant:W.merchant??void 0,recommendations:W.recommendations??[],recommendedAccount:W.recommendedAccount??void 0,isCategoryUpdateSelected:W.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:W.isCategoryFirstTimeAutofilled??!1,retainedAccount:W.retainedAccount??void 0,isRetainedCategorySelected:W.isRetainedCategorySelected??!1},mileage:{transactionDate:M.transactionDate??void 0,class:{allOptions:M.class.allOptions??He(e.classHierarchyList,[]),selectedOption:M.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:M.distanceInMiles,amount:{amount:M?.amount?.amount??0,currencyCode:M?.amount?.currencyCode??Ne,currencySymbol:M?.amount?.currencySymbol??jt},memo:M.memo??void 0}}}else if(g.includes("mileage.distanceInMiles")){const{distanceInMiles:M}=m[$].mileage,W=c?.mileageUnitAmount??0;m[$].mileage={...m[$].mileage,amount:{amount:M!=null?M*W:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(g.includes("outOfPocket.amount")&&m[$].lineId){const M=m[$].outOfPocket.amount,W=e.allCurrencies.find(ue=>ue.currencyCode===M?.currency.selectedOption)?.currencySymbol;if(M?.currencyCode!==M?.currency.selectedOption){const ue=M?.currency?.allOptions||[];m[$].outOfPocket.amount={currency:{allOptions:ue,selectedOption:M?.currency?.selectedOption},amount:m[$].outOfPocket?.amount?.amount??0,currencyCode:M?.currency.selectedOption??Ne,currencySymbol:W??jt}}if(M?.currency.selectedOption!==Ne)Qe(!0),_n(m[$].lineId,Ne);else{const ue={};m.forEach(Gt=>{ue[Gt.lineId]={lineId:Gt.lineId,homeCurrencyConversions:Gt.homeCurrencyConversions}}),m[$].homeCurrencyConversions={amount:M.amount??0,currencyCode:M?.currency.selectedOption??Ne,currencySymbol:W??jt};const vt=ti(ue,e.currencyConversionStatus);oe!==vt&&at(vt)}}else if(g.includes("outOfPocket.isRetainedCategorySelected"))m[$].outOfPocket.isRetainedCategorySelected===!0&&(m[$].outOfPocket.isCategoryUpdateSelected=!1,m[$].outOfPocket.account.selectedOption=m[$].outOfPocket.retainedAccount?.qboId);else if(g.includes("outOfPocket.isCategoryUpdateSelected"))if(m[$].outOfPocket.isCategoryUpdateSelected===!0)m[$].outOfPocket.account.selectedOption=m[$].outOfPocket.recommendedAccount?.qboId,m[$].outOfPocket.isRetainedCategorySelected=!1;else{const M=m[$].lineId,W=e.editRemiInitialDetails.lineDetailSection[M]?.lineDetail?.account?.qboId;m[$].outOfPocket.account.selectedOption=W,m[$].outOfPocket.isRetainedCategorySelected=!1}else g.includes("outOfPocket.account")&&(m[$].outOfPocket.recommendations.length>0&&(m[$].outOfPocket.recommendedAccount=m[$].outOfPocket.recommendations[0].account),m[$].outOfPocket.recommendedAccount?.qboId!=null&&m[$].outOfPocket.account.selectedOption===m[$].outOfPocket.recommendedAccount?.qboId?m[$].outOfPocket.isCategoryUpdateSelected=!0:m[$].outOfPocket.isCategoryUpdateSelected=!1,m[$].outOfPocket.retainedAccount?.qboId!=null&&m[$].outOfPocket.account.selectedOption===m[$].outOfPocket.retainedAccount?.qboId?m[$].outOfPocket.isRetainedCategorySelected=!0:m[$].outOfPocket.isRetainedCategorySelected=!1,m[$].outOfPocket.isCategoryFirstTimeAutofilled=!1);const $t=ii({...T,lineInfo:m},e.merchantList.merchants,r,oe,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(ie?.($t),g.includes("outOfPocket.merchant")){const M=m[$].lineId,W=m[$].outOfPocket.merchant.selectedOption??"";m[$].outOfPocket.merchant.allOptions.find(ue=>ue===W)!=null?Z(W,M):H(W,M)}},fi=v.useMemo(()=>ki((g,T)=>zn(g,T),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);v.useEffect(()=>{const g=Ce.watch((T,{name:m})=>{m!=null&&T!=null&&fi(m,T)});return()=>{g.unsubscribe()}},[fi,Ce]),v.useEffect(()=>{const g=no(Object.values(e.currencyConversionStatus)),T=g.fetchState==="In-Progress"||g.fetchState==="Error";Qe(T)},[e.currencyConversionStatus]),v.useEffect(()=>{for(const T in e.currencyConversionStatus){const m=e.lineDetailSection[T],$=e.lineDetailSection[T];e.currencyConversionStatus[T].fetchState==="Completed"&&$!=null&&m.type!==b.mileageKey&&!an(m?.homeCurrencyConversions,$.homeCurrencyConversions)&&U({amount:m?.homeCurrencyConversions?.amount??0,currencyCode:m?.homeCurrencyConversions?.currencyCode??Ne,currencySymbol:m?.homeCurrencyConversions?.currencySymbol??jt},T,f)}const g=ti(e.lineDetailSection,e.currencyConversionStatus);oe!==g&&at(g)},[e.currencyConversionStatus,e.lineDetailSection]),v.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(A(f),me?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,f,A,me]);const L=Ae(),[Be,pt]=v.useState(f==null),[ht,Bn]=v.useState(1),[Mn,Et]=v.useState(!1),[Fn,En]=v.useState(""),[Nt,Nn]=v.useState(null),[Wn,rt]=v.useState(!1),[Un,xi]=v.useState(!1),[Wt,Ut]=v.useState([]),[fe,St]=v.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),_n=v.useRef(ki((g,T)=>je(g,T),500,{trailing:!0})).current;v.useEffect(()=>{ot==="In-Progress"&&(e.uploadStatus==="Completed"?(Ce.reset(ei(e,r,s),{keepDefaultValues:!0}),ze(!1),pt(!1)):e.uploadStatus==="Error"&&ze(!1))},[ot,e.uploadStatus,Ce,e,Ge,ze,Be,r,s,w]),v.useEffect(()=>{e.uploadStatus==="In-Progress"&&Be===!1&&ze(!0)},[e.uploadStatus,ze,Be]);const _t=e.remiStage==="draft"?b.newReimbursementTitle:b.editReimbursementTitle,Vn={onOkClick:()=>{if(rt(!1),fe.primaryButtonText===b.buttons.discard)A(f),e.remiStage==="draft"?me?.():Ee?.();else if(fe.primaryButtonText===b.buttons.delete)fe.title===b.deleteBankAccountTitle?ve?.(Fn):pe?.();else if(fe.primaryButtonText===b.buttons.yes&&Nt!=null){const g=Wt.filter(T=>T!==ht.toString());Ut(g),F(Nt,ht,!0)}},onCancelClick:()=>{if(rt(!1),fe.secondaryButtonText===b.buttons.no){const g=Wt.filter(T=>T!==ht.toString());Ut(g),F(Nt,ht,!1)}}},wi=()=>{B||yo(An)?(St({title:b.discardTitle,description:b.discardDescription,primaryButtonText:b.buttons.discard,secondaryButtonText:b.buttons.cancel}),rt(!0)):(A(f),me?.())},qn=()=>{St({title:e.remiStage==="draft"?b.deleteDraftTitle:b.deleteReportTitle,description:b.deleteAlertDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),rt(!0)},Hn=g=>{En(g),St({title:b.deleteBankAccountTitle,description:b.deleteBankAccountDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),rt(!0)},Kn=()=>{St({title:b.overwriteTitle,description:b.overwriteDescription,primaryButtonText:b.buttons.yes,secondaryButtonText:b.buttons.no}),rt(!0)},Gn=()=>{let g=!0;const T=[];return Object.values(e.lineDetailSection).forEach((m,$)=>{m.type===b.outOfPocketKey&&Tn(m)>=75&&m.file==null&&(T.push(m.lineId),g=!1)}),Ut(T),g},Si=()=>{if(u&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")wi();else{Xe("save");const g=Ce.getValues(),T=ii(g,e.merchantList.merchants,r,oe,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);ie?.(T);const m=T.whatForSection?.reportTitle;m!=null&&m.length>0?X(e.remiStatus==="rejected"?"pending_approval":"draft"):Ce.trigger(`${At}.reportTitle`,{shouldFocus:!0})}};let Vt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(g=>{g.length>0&&(Vt=!0)});let $i=[];if(e.remiId==null){const g=oe??0;g>0&&($i=e.approvalRules.allApprovalRules?.filter(T=>{const m=T.criteria[0].range;if(m.max!=null){if(m.min.amount<g&&m.max.amount>=g)return T}else if(m.min.amount<g)return T;return null}).map(T=>({...T,stepsWithStatus:T.steps.map(m=>({...m,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const Yn=g=>{const T=Gn();return Ce.handleSubmit(()=>{T&&(Xe("submit"),w?.trackReimbursementSubmitReimbursement(e.createTime?.format(Ji.analytics.MMMDashDDDashYYYYFormat)??ci().format(Ji.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,oe,f),z(),xi(!0))})(g)},Xn=()=>{const g=Ce.getValues(),T=ii(g,e.merchantList.merchants,r,oe,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);ie?.(T),K()},Qn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Jn=e.reimbursementInfo?.paymentDate!=null?it(rn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Zn=e.reimbursementInfo?.expectedDepositDate??Jn,eo=f!=null&&e.remiStage==="draft",vi=Mo(e.duplicateLineByLineId),qt=e.duplicateReimbursementStatus.fetchState==="Completed"&&vi>0,{requestToOpenThread:Ht,setRequestToOpenThread:Ci,setOpenThread:Kt}=v.useContext(oo),{threads:gt,isLoading:Je}=ao({application:"dashboard",companyId:Le.currentTenant?.companyId,tab:"reimbursement",entityId:f,isGlobalComment:!1},"both",!1);v.useEffect(()=>{Ht?.threadId!=null&>.length>0&&!Je&&(Kt(Ht.threadId),Ci(null))},[Ht,gt,Je,Kt,Ci]);const to=v.useMemo(()=>f==null?[]:gt.filter(g=>g.resolved===!1&&!g.id.includes(ro)),[gt,f]).length,io=(g,T)=>{Kt(T);const m=g.entityType.split("."),$=parseInt(m[2]);if(isNaN($)){ce(!1);return}const $t=`${$+1}`,M=e.lineDetailSection[$+1].type;m.includes(b.mileageKey)&&M===b.outOfPocketKey?se(Ai(b.mileageKey),$t,f):m.includes(b.outOfPocketKey)&&M===b.mileageKey&&se(Ai(b.outOfPocketKey),$t,f),ce(!1)};return t.jsx(Mr,{ref:y,children:t.jsx(lo,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:ne.current??null}},children:t.jsxs(ln,{...Ce,children:[t.jsx("form",{id:en(Zi),onSubmit:g=>Yn(g),children:t.jsxs(ml,{windowSize:L,ref:ne,children:[Wn?t.jsx(si,{titleComponent:t.jsx(dn,{children:fe.title}),descriptionComponent:t.jsx(sn,{children:fe.description}),primaryButtonText:fe.primaryButtonText,secondaryButtonText:fe.secondaryButtonText,action:Vn,proceedButtonVariant:fe.title===b.deleteBankAccountTitle||fe.title===b.deleteDraftTitle||fe.title===b.deleteReportTitle||fe.title===b.discardTitle?"danger":"primary",isEditPopup:fe.title===b.deleteBankAccountTitle}):null,Un?t.jsx(Cr,{reimbursementId:f,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:qt,numberOfDuplicateLines:vi,setShowDuplicatePopup:xi,submitReport:Xn,fetchDuplicateReimbursement:D,clearDuplicateReimbursementDetail:z,clearRemiSaveStatus:re,analytics:w}):null,Ge?t.jsx(nn,{windowSize:L}):null,Be?t.jsxs(nn,{windowSize:L,"data-testid":q("skip-autofill-section"),children:[L==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Yr,{children:t.jsx(ai,{partOfSkipAutoFill:!0,size:L,onClick:()=>pt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(oi,{withOverlay:!0,children:t.jsx(ni,{})})})}),t.jsx(Qr,{children:_t})]}):null,t.jsx(Cn,{showAutofill:Be,analytics:w,onSkipAutofill:()=>{w?.trackReimbursementSkipAutofill(),pt(!1)},uploadInvoiceEndPoint:h,authParams:o,style:{width:J.leftSectionWidth.valuePercentage(L),boxSizing:"border-box",backgroundColor:L==="small"?_e.colors.grey4:"unset",padding:L==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:L==="small"?i.sp0:void 0},onInvoiceUpload:g=>F(g,ht,!0),dropFilePlaceholder:{upload:b.dropReceipt.upload,single:b.dropReceipt.single,or:b.dropReceipt.or,multiple:b.dropReceipt.multiple,receipts:b.dropReceipt.receipts},updateInvoiceUploadFetchState:Oe,showInfoText:!1,allowMultiFiles:Be,type:"reimbursement"}),L!=="small"?t.jsx(Xr,{children:t.jsx(ai,{partOfSkipAutoFill:!0,onClick:()=>pt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(oi,{withOverlay:!0,children:t.jsx(ni,{})})})}):null]}):null,t.jsxs(ll,{windowSize:L,"data-testid":q("edit-reimbursement-detail-page-nav-bar-container"),children:[L!=="small"?t.jsx(Ii,{style:{width:"42%"},"data-testid":q("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(sl,{"data-testid":q("zeni-logo-spend-management-reimbursement-detail-page"),onClick:de}),enableTitleOnScroll:!1,scrollableContent:y,backgroundColor:_e.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,L!=="small"?t.jsx(Fr,{}):null,t.jsx(Ii,{style:{width:J.navBarWidth.valuePercentage(L)},"data-testid":q("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:_t,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Be!=!0?t.jsxs(dl,{children:[C&&f!=null?t.jsxs(cl,{isDisabled:Je,"data-testid":q("remi-comment-button"),onClick:Je?()=>null:g=>{g.preventDefault(),g.stopPropagation(),mt({roomId:wt,companyId:Le.currentTenant?.companyId??"",companyName:Le.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:f}),ce(!0),w?.trackCommentActivity("reimbursement","clicked",Le.currentTenant?.companyName??"",Le.controllersList.controllers.map(T=>co(T)),void 0,void 0,"page icon")},children:[t.jsx(so,{count:Je?void 0:to,isLoading:Je,style:{left:"12px"}}),t.jsx(ul,{})]}):null,t.jsx(ai,{size:L,onClick:()=>wi(),"data-testid":q("close-nav-bar"),children:t.jsx(oi,{withOverlay:!1,children:t.jsx(ni,{})})})]}):null,enableTitleOnScroll:L!=="small",scrollThreshold:64,scrollableContent:y,backgroundColor:_e.colors.grey4})]}),L==="small"?t.jsxs(t.Fragment,{children:[t.jsx(rl,{children:_t}),t.jsx(uo,{progressSectionObj:Qn,createDate:e.createTime,paymentDate:Zn,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:f!=null?!0:e.uploadStatus==="Completed"}),Vt&&t.jsxs(el,{children:[t.jsx(Zr,{}),t.jsx(tl,{children:b.banner})]}),e.isProcessing?t.jsx(cn,{variant:"warning",style:{margin:L==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Qi.duplicateWarning.title,description:Qi.duplicateWarning.description}):qt?t.jsxs(il,{size:L,children:[t.jsx(Ur,{}),t.jsxs(ol,{children:[t.jsx(nl,{children:b.thereSeems}),t.jsx(al,{children:b.pleaseFind})]})]}):null,t.jsx(Dn,{isReimbursementCommentingEnabled:C,sectionId:At,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(Za,{onDuplicateLineClick:le,reimbursementId:f,remiDetails:e,uploadInvoiceEndPoint:h,authParams:o,showSkipAutoFill:Be,setShowSkipAutoFill:pt,isReimbursementCommentingEnabled:C,isAutoFieldsExist:Vt,totalAmount:oe,removeFileFromLine:be,onReplaceClick:Kn,onReceiptsUpload:F,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Bn,setUploadedReceiptPayload:Nn,updateInvoiceUploadFetchState:Oe,clearTentativeNameForLine:Pe,defaultCurrency:r,companyMileageConfigInfo:c,isUserAdmin:u,setShowBankAccountPage:Et,bankAccounts:s,onDeleteBankAccount:Hn,analytics:w,fileRequiredLineIds:Wt,isSignedInUserReimbursementCreator:p,uncategorizedAccounts:x,showTotalAmountLoader:ut,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:qt,removeDuplicateReimbursementForLine:te,scrollContainerRef:y}),t.jsxs(pl,{showSkipAutoFill:Be,windowSize:L,children:[L!=="small"?t.jsx(tn,{}):null,t.jsx(hl,{windowSize:L,children:t.jsxs(gl,{windowSize:L,children:[e.remiId!==void 0&&t.jsx(Di,{amount:oe??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&oe!=null&&oe>0?t.jsx(Di,{amount:oe??0,activities:$i,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(yl,{}),t.jsxs(Jr,{showSkipAutoFill:Be,windowSize:L,children:[L!=="small"?t.jsx(tn,{}):null,t.jsx(Er,{windowSize:L,onClick:g=>{g.stopPropagation(),Ve===!0&&qe(!1)},children:t.jsx(un,{formId:en(Zi),separatorStyle:{marginRight:i.sp4},showCancel:p,cancelBtn:{label:u&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?L==="small"?b.buttons.discard:b.buttons.discardChanges:L==="small"?b.buttons.save:b.buttons.saveChanges,isLoading:Ye==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:Si,style:{width:J.footerButtonWidth.value(L)},reverseSpinnerColor:!1},primaryBtn:{label:Br(p,u,e,L),isDisabled:!p,style:{width:p?J.footerButtonWidth.value(L):"auto"},type:p?"submit":"button",onClick:p?()=>null:Si,isLoading:!p&&Ye==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Nr,{children:t.jsxs(Hr,{windowSize:L,children:[Ve?t.jsx(mn,{onClickAway:()=>qe(!1),children:t.jsx(qr,{windowSize:L,"data-testid":q("remi-other-actions-container"),children:t.jsx(Kr,{onClick:qn,"data-testid":q("delete-report-action"),children:b.buttons.deleteReport})})}):null,t.jsx(Vr,{windowSize:L,children:eo===!0?t.jsx(_r,{windowSize:L,"data-testid":q("more-details-button"),children:t.jsx(Wr,{onClick:()=>qe(!Ve)})}):null})]})}),style:{minHeight:62}})})]}),C&&f!=null?t.jsx(Bo,{id:wt,children:t.jsx(mo,{isDrawerOpen:N,allowComposer:!0,drawerTitle:jr,threads:gt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:_?.companyId??Or,isGlobalComment:!1,tab:"reimbursement"},isLoading:Je,threadMetadata:_?{companyName:_.companyName,companyId:_.companyId,entityId:_.entityId,entityType:_.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Pr,replyComposerPlaceholder:Rr,threadResolve:Lr,threadUnResolve:Ar},onThreadClick:(g,T)=>io(g,T),onCloseAllThreadsDrawer:()=>ce(!1),drawerSectionStyle:{width:"400px",backgroundColor:_e.colors.background}})}):null]})}),Mn?t.jsx(Gr,{windowSize:L,children:t.jsx(mr,{bankAccountCreationState:k,setShowBankAccountPage:Et,plaidConnectionDetails:l,onFetchLinkTokenClick:Re,onEstablishConnectionClick:ge,onSaveHandler:R,bankAccountToCreate:O,bankNameByRouting:S,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:P,onFetchBankName:Y,onBackClick:()=>{Ke(),Et(!1)}})}):null]})})})},Br=(e,o,r,c)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?b.buttons.resubmit:b.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?c==="small"?b.buttons.discard:b.buttons.discardChanges:c==="small"?b.buttons.save:b.buttons.saveChanges,Mr=n.div`
|
|
620
|
+
position: relative;
|
|
621
|
+
height: 100vh;
|
|
622
|
+
overflow-y: scroll;
|
|
623
|
+
`,Fr=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
|
+
`,Er=n.div`
|
|
634
|
+
width: ${e=>J.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
635
|
+
`,Nr=n.div`
|
|
636
|
+
display: flex;
|
|
637
|
+
justify-content: flex-end;
|
|
638
|
+
`,Wr=n(fo)`
|
|
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
|
+
`,Ur=n(zo)`
|
|
647
|
+
width: ${i.sp4};
|
|
648
|
+
height: ${i.sp4};
|
|
649
|
+
color: ${j.brandColorGoldDark};
|
|
650
|
+
`,_r=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
|
+
`,Vr=n.div`
|
|
659
|
+
display: flex;
|
|
660
|
+
justify-content: center;
|
|
661
|
+
align-items: center;
|
|
662
|
+
`,qr=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=>J.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=>J.right.valuePx(e.windowSize)};
|
|
679
|
+
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.grey1} 3D`};
|
|
680
|
+
`,Hr=n.div`
|
|
681
|
+
width: 100%;
|
|
682
|
+
justify-content: flex-end;
|
|
683
|
+
position: ${e=>e.windowSize==="small"?"static":"relative"};
|
|
684
|
+
right: ${e=>J.actionsContainerRight.valuePx(e.windowSize)};
|
|
685
|
+
height: 100%;
|
|
686
|
+
display: flex;
|
|
687
|
+
`,Kr=n(hi)`
|
|
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
|
+
`,Gr=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=>J.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
705
|
+
right: 0;
|
|
706
|
+
top: 0;
|
|
707
|
+
`,Yr=n.div`
|
|
708
|
+
background: ${e=>e.theme.colors.grey4};
|
|
709
|
+
height: 44px;
|
|
710
|
+
display: flex;
|
|
711
|
+
align-items: center;
|
|
712
|
+
justify-content: end;
|
|
713
|
+
`,Xr=n.div`
|
|
714
|
+
width: 58%;
|
|
715
|
+
`,Qr=n(ui)`
|
|
716
|
+
padding: ${i.sp3} ${i.sp3} 0 ${i.sp3};
|
|
717
|
+
background: ${e=>e.theme.colors.grey4};
|
|
718
|
+
color: ${e=>e.theme.colors.primary};
|
|
719
|
+
`,Jr=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
|
+
`,tn=n.div`
|
|
726
|
+
width: 42%;
|
|
727
|
+
`,Zr=n(mi)`
|
|
728
|
+
color: ${e=>e.theme.colors.primary};
|
|
729
|
+
width: ${i.sp3};
|
|
730
|
+
height: ${i.sp3};
|
|
731
|
+
`,el=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
|
+
`,tl=n.span`
|
|
740
|
+
color: ${e=>e.theme.colors.hero};
|
|
741
|
+
`,il=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=>J.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
748
|
+
margin-right: ${e=>J.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
749
|
+
margin-bottom: ${e=>J.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
750
|
+
margin-left: ${e=>J.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
751
|
+
background-color: ${j.alertLight};
|
|
752
|
+
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
753
|
+
`,nl=n(Ft)`
|
|
754
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
755
|
+
`,ol=n.div`
|
|
756
|
+
width: 100%;
|
|
757
|
+
`,al=n(yi)`
|
|
758
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
759
|
+
`,rl=n(ui)`
|
|
760
|
+
letter-spacing: -0.02em;
|
|
761
|
+
color: ${e=>e.theme.colors.primary};
|
|
762
|
+
margin: ${i.sp3};
|
|
763
|
+
`,nn=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
|
+
`,ll=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
|
+
`,sl=n(ho)`
|
|
782
|
+
display: flex;
|
|
783
|
+
color: ${e=>e.theme.colors.brandColorJade};
|
|
784
|
+
cursor: pointer;
|
|
785
|
+
width: ${i.sp4};
|
|
786
|
+
height: ${i.sp4};
|
|
787
|
+
`,ni=n(pn)`
|
|
788
|
+
cursor: pointer;
|
|
789
|
+
width: ${i.sp4};
|
|
790
|
+
height: ${i.sp4};
|
|
791
|
+
float: right;
|
|
792
|
+
color: inherit;
|
|
793
|
+
`,oi=n.div`
|
|
794
|
+
color: ${e=>e.theme.colors.hero};
|
|
795
|
+
&:hover {
|
|
796
|
+
color: ${e=>e.withOverlay?j.primaryDark:e.theme.colors.primary};
|
|
797
|
+
}
|
|
798
|
+
`,dl=n.div`
|
|
799
|
+
margin-top: ${e=>J.closeMarginTop.valuePx(e.windowSize)};
|
|
800
|
+
display: flex;
|
|
801
|
+
float: right;
|
|
802
|
+
`,cl=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
|
+
`,ul=n(go)`
|
|
814
|
+
display: flex;
|
|
815
|
+
width: ${i.sp4};
|
|
816
|
+
height: ${i.sp4};
|
|
817
|
+
align-items: center;
|
|
818
|
+
justify-content: center;
|
|
819
|
+
`,ai=n.div`
|
|
820
|
+
margin-top: ${e=>e.partOfSkipAutoFill===!0?J.closeMarginTop.valuePx(e.size):0};
|
|
821
|
+
margin-left: ${i.sp5};
|
|
822
|
+
margin-right: ${e=>e.partOfSkipAutoFill===!0?J.closeMarginRight.valuePx(e.size):0};
|
|
823
|
+
`,ml=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
|
+
`,pl=n.div`
|
|
853
|
+
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
854
|
+
width: 100%;
|
|
855
|
+
margin-bottom: ${e=>J.bottomMargin.valuePx(e.windowSize)};
|
|
856
|
+
`,hl=n.div`
|
|
857
|
+
width: ${e=>J.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
858
|
+
`,gl=n.div`
|
|
859
|
+
margin-left: ${e=>J.leftMargin.valuePx(e.windowSize)};
|
|
860
|
+
margin-right: ${e=>J.rightMargin.valuePx(e.windowSize)};
|
|
861
|
+
`,yl=n.div`
|
|
862
|
+
display: flex;
|
|
863
|
+
flex-direction: column;
|
|
864
|
+
height: ${i.sp11};
|
|
865
|
+
`;export{Bl as default,en as uniqueName};
|