@zeniai/web-cockpit-ui 1.14.98-dev → 1.14.99-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ACHDetailsPage-BRWOdhMx-B-izv--D.js +21 -0
- package/dist/assets/{AIPerformancePage-TtdFArUl-j0kjTnVR.js → AIPerformancePage-4v4Fkm9f-8H5taohv.js} +108 -108
- package/dist/assets/AccountInfoPage-Ca_vKG58--BfC_vXh.js +18 -0
- package/dist/assets/{AccountInfoPageContent-BXX4TyeS-SAgRb0Wy.js → AccountInfoPageContent-Dv1IPcdF-BHWFRnzI.js} +19 -19
- package/dist/assets/AccountLockedInfoModal-CEk5d9hq-BMstREsN.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-BZsVhDyw-NNurOrkC.js → AccountReconDetailsDrawerPage-DYKjrPwN-Drg0SGIJ.js} +54 -54
- package/dist/assets/{AccountRow-COxNWv3J-Dkf6Savq.js → AccountRow-BM3xLbeh-BSdpkM-d.js} +30 -30
- package/dist/assets/{AccountsPromoCardStack-BW7r2R96-BzoEoVWx.js → AccountsPromoCardStack-CTkwARBJ-Cy5pYNXf.js} +30 -30
- package/dist/assets/AddAddressForCardDrawer-DfOyebHX-DhjpIE6j.js +6 -0
- package/dist/assets/{AddToWalletPage-CXhBOHda-b2nCfyTx.js → AddToWalletPage-OJBvAKUj-B4ZmMeKh.js} +13 -13
- package/dist/assets/{AgingReportsPage-CX3Te0mD-BjuuVeMz.js → AgingReportsPage-n-UKn3Ei-CZEEMMir.js} +10 -10
- package/dist/assets/{AllUserItems-Cd2jEIM9-DycIVbwH.js → AllUserItems-BsvKEVcx-lxn8aic0.js} +13 -13
- package/dist/assets/{ApAgingDetailPage-BCBhgQDY-m3orWzJK.js → ApAgingDetailPage-Duu2uAEr-DUMvdGKK.js} +5 -5
- package/dist/assets/{AppBasePage-BRcQ7IPJ-DssY-F_Q.js → AppBasePage-DoCF494Z-qPWVG34b.js} +16 -16
- package/dist/assets/{AppDrawerContent-DQlHQEcs-DrKgTlSj.js → AppDrawerContent-DM1t0oLS-9US_DgsB.js} +2 -2
- package/dist/assets/{ApprovalRulesSettingsPage-Cqt8FvLJ-CEOV0Ixl.js → ApprovalRulesSettingsPage-GZCo6_i2-CJH6P32S.js} +6 -6
- package/dist/assets/{ArAgingChart-BvAQf_dB-CCF75Uiv.js → ArAgingChart-CsFDVdeO-C4PujVrW.js} +4 -4
- package/dist/assets/ArAgingDetailPage-CaOr6vAU-B5uL9zyI.js +46 -0
- package/dist/assets/{AttachmentView-e6OZT5St-CRHdzPSa.js → AttachmentView-B0d42oAf-DVHm34mB.js} +6 -6
- package/dist/assets/{BankAccountSection-DWKYMZid-XH_pxLOm.js → BankAccountSection-Bgdk93V0-Cg5PjZDc.js} +7 -7
- package/dist/assets/BankAccountWarningSection-DMRmF2yM-BgfDzJHZ.js +51 -0
- package/dist/assets/{BankConnectionsSettingsPage-DLnQeHtD-CQ9CrcQ2.js → BankConnectionsSettingsPage-BpwKq93l-Brctq4SF.js} +16 -16
- package/dist/assets/BillDetailPage-BG7FhHEq-DUv2nuJK.js +266 -0
- package/dist/assets/BillPayApprovalRuleDetailPage-BAK1Gfko-A9_oblKa.js +27 -0
- package/dist/assets/BillPayApprovalRulesPage-DiCNUU-G-BjMEKdHG.js +235 -0
- package/dist/assets/BillPayPromoPage-aGKOv8Ur-eBwd93N4.js +84 -0
- package/dist/assets/{BillPaySetUpPage-CneIMbul-lrmOziwC.js → BillPaySetUpPage-DRCjyEfB-XKTwWmRS.js} +2 -2
- package/dist/assets/{BillingSettingsPage-35KDGxi0-Ct237R_x.js → BillingSettingsPage-CdYb74V7-HQVzU-6G.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-B2SeSM_K-CBWl1wuN.js → BillsBulkReviewDrawerPage-D8EGfY5P-B0Wqyx4s.js} +1 -1
- package/dist/assets/{BoxItem-BGDuiQll-BzndiGjI.js → BoxItem-WOrvBzns-DN4WYKEf.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-GZnJ9G9I-Crwn_TZB.js → BusinessVerificationPage-CbqJIVpz-DVX5hTQl.js} +10 -10
- package/dist/assets/{CardNumberSubText-COHmqgEx-BK8P_Xt5.js → CardNumberSubText-DBOH0_yP-3HOBgKpF.js} +8 -8
- package/dist/assets/{CashbackDetailPage-DvA_0POP-D_6kuYkj.js → CashbackDetailPage-D-kXy6LW-CbbkR_T0.js} +26 -26
- package/dist/assets/{ChargeCardDetailPage-DF69jsTG-COjz_Wle.js → ChargeCardDetailPage-BQnJsfn5-C0NtbZa-.js} +244 -244
- package/dist/assets/ChargeCardListPage-130ILwkr-ZB2yzsHG.js +412 -0
- package/dist/assets/{ChargeCardListTable-BEYWfP5G-1q8VKxw1.js → ChargeCardListTable-EGkwcy7i-DEc29h5o.js} +67 -67
- package/dist/assets/ChargeCardPromoPage-BwqrXrY--IstKF_Na.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-BsTAJGSf-BVABxQAh.js → ChargeCardSetupPage-DRzB7Rt4-DmQFjafd.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-BwuOooT4-Ds9c5zWv.js → ChargeCardStatementsPage-C3NxKjmB-C8FsLWHJ.js} +8 -8
- package/dist/assets/{CheckDepositDrawerPage-CC3EUXpO-Fr7mH3zN.js → CheckDepositDrawerPage-ClxKj2js-Do24RzJh.js} +17 -17
- package/dist/assets/{CollapsableReportTable-Bju2JSCg-BqWf1iHn.js → CollapsableReportTable-xkNXkjfh-CtzSwjPt.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CtHtINKb-ChsViTKu.js → CompanyOfficerDetailsSection-BtUBatbQ-Con3Jm3w.js} +30 -30
- package/dist/assets/{CompanyPassportCard-ClihOV6I-659ckUvl.js → CompanyPassportCard-BOxM716U-TVvNmGP9.js} +7 -7
- package/dist/assets/{CompanyPassportPage-Bzbp9vtj-DZ2qH-RA.js → CompanyPassportPage-DzE7sm8S-Bu9tLN80.js} +40 -40
- package/dist/assets/{CompleteProfile-C88rpvIR-CPwa_ZcH.js → CompleteProfile-BjGSPASa-AWB6Qzlv.js} +3 -3
- package/dist/assets/ConfettiBurst-1rYKpbAj-DRsprSNw.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-DJWcJCPR-VpXOBLk1.js → CreateOrEditVendorPage-WQeDCj-E-D6Y6HtQ7.js} +20 -20
- package/dist/assets/CreditCardPaymentDrawerPage-Q12y6HMX-CloaEiop.js +224 -0
- package/dist/assets/{CurrencySelectField-9MMlAXHh-7T5GvQvy.js → CurrencySelectField-AjAWhg6e-BY-FVQ5N.js} +4 -4
- package/dist/assets/CustomerOnboardingActivationPage-BJhw-PvI-BRcGbX9s.js +88 -0
- package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-ByC2CvtB.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-EBEAYH3x-DVqWwomd.js → CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-DKx0xsM-.js} +15 -15
- package/dist/assets/CustomerOnboardingNoStepsPage-CNni6chX-pyXbZEvq.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-BWvGF8wk-Gc8v-oNy.js → CustomerOnboardingPage-CvN9Jrdy-CzriWSkS.js} +4 -4
- package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-7zbQywoe.js +202 -0
- package/dist/assets/{Dashboard-Zq5BpBhF-C6unAaBQ.js → Dashboard-_o0Ftdv8-_2fT5Ubv.js} +55 -55
- package/dist/assets/{DashboardReportPage-Pie-FQ1e-CpPHLX-r.js → DashboardReportPage-Cu5wqWkj-BHVvAcwu.js} +20 -20
- package/dist/assets/DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-Ds_VkWfq.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-C6o7UraM-ERw30shi.js → DepositAccTransactionItem-BOPK7-7P-CUK10p36.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-DWIzj9EC-C4ETOwPX.js → DepositAccTransactionListPage-oj9tntbI-BS3VI9z2.js} +4 -4
- package/dist/assets/{DomesticWireDetailsPage-BbuaFhlm-B7VB8oiV.js → DomesticWireDetailsPage-FGdEilUB-DiafQBWa.js} +1 -1
- package/dist/assets/{DownloadOverlay-smXqu_-_-DbNqWY1P.js → DownloadOverlay-c57lEf_V-LFGP7g4c.js} +39 -39
- package/dist/assets/{DrawerPage-C-NGhaFc-Bdiyy2BL.js → DrawerPage-inbhWwND-Db0y8xmo.js} +18 -18
- package/dist/assets/EditPeoplePage-DJthuIP4-C5mu6ajz.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-Bt7XKq5h-CsQHoeMv.js +865 -0
- package/dist/assets/EntityDetailPage-DbTiF9Hs-C-1lJOCB.js +18 -0
- package/dist/assets/{EntitySummarySection-D7ui3VxW-BWyvfwWL.js → EntitySummarySection-CHgrPo86-DQf0eS91.js} +9 -9
- package/dist/assets/{ExpenseAutomationOverviewPage-Cci1pEY4-BQvp8jPr.js → ExpenseAutomationOverviewPage-QZT_UFXf-CqWIAvtS.js} +27 -27
- package/dist/assets/{ExpenseAutomationPage-DsPGEQpL-CcB9eHac.js → ExpenseAutomationPage-Y7V_Z8rd-BtMIiHAT.js} +63 -63
- package/dist/assets/{ExpressPayPage-ddPMg7wE-Tlo0T7f7.js → ExpressPayPage-CIp_R6ZQ-bLqdW2c-.js} +10 -10
- package/dist/assets/{FeaturePreviewPage-B7rx89MJ-NE6QqmUF.js → FeaturePreviewPage-qsUO3mUu-Bg5tciIN.js} +3 -3
- package/dist/assets/{FollowStepsSection-WUNvyjJh-Bpyevbi9.js → FollowStepsSection-ebmR-eLP-DUvk8yUe.js} +49 -49
- package/dist/assets/{GlobalReviewListPage-CrEL8cxP-BVjE_r1i.js → GlobalReviewListPage-9V-xoqvs-DgQFHT5d.js} +14 -14
- package/dist/assets/{InformationCardStack-cYN7bwE3-B7UR3-b4.js → InformationCardStack-DnB7TmOk-DRRzuuUg.js} +8 -8
- package/dist/assets/{InsightsCardStack-CAuhoPST-MWY5O8lc.js → InsightsCardStack-BBczCYEz-DTWoyTqN.js} +12 -12
- package/dist/assets/InsightsSection-BTXj5WUe-ByTIWrkc.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-CBqEJpyq-Bl--bqo-.js → IntegrationsSettingsPage-CByj2tO4-C70tL_8j.js} +10 -10
- package/dist/assets/{InternationalWireSwiftDetailsPage-Bg2_G0O4-DwQXwZkY.js → InternationalWireSwiftDetailsPage-4-pl1ozv-BerAwOXU.js} +17 -17
- package/dist/assets/{InternationalWireVerificationPage-BdaKAePs-BIYMiNd6.js → InternationalWireVerificationPage-kIajgPZt-CeT00ZG8.js} +26 -26
- package/dist/assets/{InviteFormPage-a7CtHDQi-gCSqizmu.js → InviteFormPage-XsnZcAvb-CP-m9x5T.js} +24 -24
- package/dist/assets/{InvitePageListView-D0flsJMi-CW5tcQ7p.js → InvitePageListView-HfsehyxK-NVvr8Ith.js} +78 -78
- package/dist/assets/InvitePeoplePage-DrBtwpMH-CbYg413Q.js +12 -0
- package/dist/assets/{InvoiceUploadSection-D6gMuygS-CT-0_4kq.js → InvoiceUploadSection-DPd4VmqZ-CDlXjsFg.js} +4 -4
- package/dist/assets/{IssueChargeCardPage-_zy-SJN0-qq3fKGX-.js → IssueChargeCardPage-xbfFhV0O-D9cPo91Q.js} +34 -34
- package/dist/assets/{LabeledAddressValue-CXqpyfBQ-40JlhWdQ.js → LabeledAddressValue-CB_KH7v5-BfaoCJC2.js} +2 -2
- package/dist/assets/{LabeledAddressValueField-D-0wb98p-CSTw9NrL.js → LabeledAddressValueField-Bt41wdNQ-C-99cOeY.js} +4 -4
- package/dist/assets/LabeledControlledCheckBoxField-Btw_zwzy-BqFptUno.js +16 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-B-OgiRpS-D789AeMD.js → LabeledCreatableSingleSelectField-fycRE7PX-Hf4cCYiq.js} +4 -4
- package/dist/assets/LabeledDocumentField-C73vQNgq-BAncal8r.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-D54g8qxW-Cnlp1a42.js → LabeledDropDownFormattedTextField-DGb_bDyp-BCPR37EJ.js} +7 -7
- package/dist/assets/{LabeledText-BJi28Cmu-KVGobttz.js → LabeledText-yhm8qxrA-Bs5CTGJn.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dgn_WK0p-B4rGn1v8.js → LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-DC0r0kWN.js} +23 -23
- package/dist/assets/{LabeledZeniRolesDropDownField--9AjGtEh-1hSD4x8B.js → LabeledZeniRolesDropDownField-DGkU72cd-ub025LyJ.js} +25 -25
- package/dist/assets/LinkJETransactionPage-C0onrP5t-BH-iwj4o.js +98 -0
- package/dist/assets/{LockCardPage-4ihNCAhG-Zb-UDpxz.js → LockCardPage-DaVzuRMw-Dq4q5Qyn.js} +21 -21
- package/dist/assets/{LowBalancePopup-YdUL24Wb-PfAaWR1_.js → LowBalancePopup-Dd9HLWlh-9AO78nGr.js} +4 -4
- package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-CbO6Gy8N.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-6hv3VXVe.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-DGyc9KKZ.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-B-YTZWYj-DKWdsZyd.js → MagicLinkSuccessPage-DbhdGmhh-Dlqur3CF.js} +5 -5
- package/dist/assets/{MagicLinkTitleSection-RHv_GuEq-c-uPcRfj.js → MagicLinkTitleSection-Bx92291D-eyJD0RqY.js} +4 -4
- package/dist/assets/MailingDetailsSection-D-tnK244-DkMA7qYY.js +21 -0
- package/dist/assets/Menu-0YHUdU0n-DClJzSBJ.js +17 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-CryrCaA2-C1O3R525.js → MyBankConnectionsSettingsPage-Dn9AT8p1-DOZcDQsI.js} +4 -4
- package/dist/assets/{MyPendingActivationChargeCardListPage-DmmwfwjV-Dzs7maAE.js → MyPendingActivationChargeCardListPage-DrQu6s7j-CuceVEXz.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BspAqqsh-B3zEQ3j1.js → MyProfileSettingsPage-CBvjEd7r-BTYXHZnd.js} +10 -10
- package/dist/assets/{NavBarWithPicker-C7xr7tTs-CsJWjiOL.js → NavBarWithPicker-aXn2QYh1-wbQMsyuO.js} +5 -5
- package/dist/assets/{NavigationArrow-rBOsZ92g-CvJ7c17R.js → NavigationArrow-JLUXaIrz-Dqbhc2Cm.js} +8 -8
- package/dist/assets/{NavigationDots-CautbD-g-AEb3JA6J.js → NavigationDots-B0_dDbgu-D0YfkCXB.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-DD4raaWT-0NjfCgam.js → NewGlobalMerchantPage-B_019EtP-DM6Ow8UK.js} +12 -12
- package/dist/assets/NoDataChart-DLKHNXD4-tDLmbg2P.js +26 -0
- package/dist/assets/NoDataTable-BMD2qygC-BimI42bf.js +8 -0
- package/dist/assets/{NotFoundPage-D-nIKeoL-DS39BiNV.js → NotFoundPage-BEya4LS2-BAtVahFo.js} +7 -7
- package/dist/assets/{NotificationSettingsPage-DP3xTLvr-C8krffT3.js → NotificationSettingsPage-C9SjRKCu-AB1K2bpw.js} +23 -23
- package/dist/assets/NotificationsListConfig-OCeJNw1G-D_0tuWLm.js +1 -0
- package/dist/assets/{NotificationsPage-DkDGBzhT-B-IU27Zt.js → NotificationsPage-FJHx_WBG-DVMmN4nH.js} +49 -49
- package/dist/assets/{OpExByVendorPage-CtcdC3f9-DjyRt_lN.js → OpExByVendorPage-Dxk68R6U-DAiWfakx.js} +12 -12
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-D0iblwqz.js → OverlayContainerPage-Daz3A7cI-8v0sqF2w.js} +1 -1
- package/dist/assets/PandLWithForecastPage-Bu49FbWD-CfqbniUD.js +107 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BjcqKBLG-BtuRZNcH.js → PaymentAccountSetupBillingAddressSection-s9EEHxoG-ByN70cgf.js} +8 -8
- package/dist/assets/{PeoplePage-DCI7v6ru-BQGxB0UL.js → PeoplePage-DN5VtG7Q-BobeSyfg.js} +29 -29
- package/dist/assets/Preview-B4cYjk3Q.js +1 -0
- package/dist/assets/{ProductsCarousel-Dqm1bC2_-C9nhPtyf.js → ProductsCarousel-6gthLCkf-CBWUX5-H.js} +8 -8
- package/dist/assets/{PromoBaseCards-dqE7GIJ6-CjPZd9YZ.js → PromoBaseCards-CzPzj69A-VNtWOXHP.js} +6 -6
- package/dist/assets/{QBOConnectionDialog-CGPNOde4-iJ0HQZcD.js → QBOConnectionDialog-BFy0lMZd-DQ6dF1fn.js} +6 -6
- package/dist/assets/{QBOSetupSection-HhIe91hw-09HBN8uJ.js → QBOSetupSection-DcLYyQ5m-BZmieU8G.js} +16 -16
- package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-DMhGskvy.js +26 -0
- package/dist/assets/ReimbursementApprovalRulesPage-D5ZMrrmO-17BV5IdU.js +237 -0
- package/dist/assets/ReimbursementDetailPage-DatcF8rt-DDHL4NDq.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-BZoZAydM-_dTEqW97.js → ReimbursementPromoPage-MweW-4DO-DOu17agw.js} +10 -10
- package/dist/assets/{ReimbursementSetUpPage-C8Oat8g_-oUMPzcZW.js → ReimbursementSetUpPage-BD2LWlbW-CPGJalxA.js} +10 -10
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BSXV7fzi-DApiFQ6Z.js → ReimbursementsBulkReviewDrawerPage-DV_PLm_g-C-hMp3nk.js} +1 -1
- package/dist/assets/{ReloadCard-BMn_7fNI-DobUmKfH.js → ReloadCard-9KpQCrce-CJxth4v-.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-BE2BuEqj-Cv65zIMR.js → ReportTableViewSelector-BPliEsuo-CYSspAKt.js} +8 -8
- package/dist/assets/{ReportsPage-C4HDLBDq-nmW__s9z.js → ReportsPage-h2DAaQfK-BbjLhSlv.js} +14 -14
- package/dist/assets/{RevenueChart-q15U89i8-DTxTOafZ.js → RevenueChart-DY2s_upY-BrlpK408.js} +2 -2
- package/dist/assets/{ReviewDetailsPage-4mhC2jOb-D75AxfOq.js → ReviewDetailsPage-BiYxRnvA-B6yUj6Im.js} +20 -20
- package/dist/assets/{ReviewOverlay-Co22Cju1-u5iV88jr.js → ReviewOverlay-BvPN7IKD-Dzf2W2o-.js} +12 -12
- package/dist/assets/RoleWithToolTip-aW95rpRe-BSqBI82l.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DkKSZ0sJ-zAFG0_v4.js → ScheduleDetailsFixedAssetsPage-DlXqz1QQ-DCo0J0MC.js} +13 -13
- package/dist/assets/{ScheduleDetailsPage-B98XJtoQ-DL_QucDj.js → ScheduleDetailsPage-DebosLND-Dr3_f1Ao.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-DXLxjeWw-DWriUjIB.js → ScheduleSequenceTable-Dd4Ep_c0-BGLZarfG.js} +36 -36
- package/dist/assets/ScreenRoutes-RCtfctxM.js +201 -0
- package/dist/assets/{SetUpAccountSection-AZk8_IC3-BgRTrYL7.js → SetUpAccountSection-Dhb8A0Oe-DTgzquEa.js} +8 -8
- package/dist/assets/SignIn-DQBJB5ad-Df-bXPXY.js +448 -0
- package/dist/assets/{SignInScreen-DJh1xRdL.js → SignInScreen-ymJeGv_l.js} +1 -1
- package/dist/assets/SpendManagementListViewPage-Ac-9u-X2-DDL7odAh.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-DgrMAQ8l-B-iCv2wr.js +754 -0
- package/dist/assets/SpendManagementSection-Ci2yOCJ9-Cl4Y2hmX.js +230 -0
- package/dist/assets/StatementItem-hcBoe79o-3MewkfUT.js +31 -0
- package/dist/assets/{StatementsPage-CBIa00EK-BjIWTE3I.js → StatementsPage-DVR5LhTi-yR6sBvKB.js} +3 -3
- package/dist/assets/{StatusSwitcher-Blc3-MDg-B12KNYTc.js → StatusSwitcher-Cy5ITFgi-BPjCuaKT.js} +1 -1
- package/dist/assets/{SubTabSwitcher-3oir5lzq-Cmzice7W.js → SubTabSwitcher-DhsES2OW-Bo9PDg54.js} +4 -4
- package/dist/assets/{SummaryCard-DO09QLUp-DPmkfJxO.js → SummaryCard-Byv4Hw8Q-CRXX5OyN.js} +1 -1
- package/dist/assets/{TaskManagementPage-C_EZJRtM-P8DErI3a.js → TaskManagementPage-CVXMOPf2-BPgLGH37.js} +42 -42
- package/dist/assets/TimeRangeSwitcher-jct2_5PE-CLdBT1H-.js +64 -0
- package/dist/assets/{TimeframeSwitcher-BsGp8KOv-CTY5_Ouk.js → TimeframeSwitcher-BK-qliOX-H_AqcOc6.js} +6 -6
- package/dist/assets/TimeframeSwitcherWithToggle-Cl6ISBIz-B90xLHLZ.js +31 -0
- package/dist/assets/{TopExCard-Cn8iW3fO-DMUR1qBk.js → TopExCard-o4Q3ze1b-BhWZC02k.js} +12 -12
- package/dist/assets/{TopExDetailPage-BS8qCkLq-Cq17vLoi.js → TopExDetailPage-BsCwwwDi-CQb-1xKa.js} +12 -12
- package/dist/assets/{TransactionDetailPage-CUeVImfA-D9txujQI.js → TransactionDetailPage-rpCG65yC-DrwxmLfQ.js} +36 -36
- package/dist/assets/{TransactionList-CnjoEn7K-D2hvg7ek.js → TransactionList-YI4oZaim-BA7WlPL4.js} +15 -15
- package/dist/assets/{TransactionListBig-xVKV1MCm-GtEvft_N.js → TransactionListBig-D_Jw9Ip2-D2rLxw32.js} +12 -12
- package/dist/assets/TransactionListPage-B2yWm7eA-DHwvAIPN.js +35 -0
- package/dist/assets/TransactionVendorDetailPage-Dr5C4-7q-cB0L9hlJ.js +80 -0
- package/dist/assets/{TransferDrawerPage-uBmvyc-P-CFJl7D9L.js → TransferDrawerPage-BnEVH7Mc-BoQvOiLs.js} +34 -34
- package/dist/assets/{TreasuryOverviewPage-DJcUyLa4-Cd3rdx_U.js → TreasuryOverviewPage-C927Rdkg-CauQRw4k.js} +47 -47
- package/dist/assets/{TreasuryPromoPage-DymCO6nN-Dc1dLp52.js → TreasuryPromoPage-C6D3bF2f-OrOyQ7OO.js} +14 -14
- package/dist/assets/{TreasuryStatementsPage-YEgI38zU-DOHp07qg.js → TreasuryStatementsPage-BE54gWl6-D5_ViYZY.js} +4 -4
- package/dist/assets/{TreasuryTaxLetterPage-CYO6JXCO-fy_exAGm.js → TreasuryTaxLetterPage-BaHut8Wc-CEbpmHg1.js} +3 -3
- package/dist/assets/{TrendChart-Dzc9yPKs-Blv6Qzrf.js → TrendChart-BI4Tz813-fFdjYEGq.js} +4 -4
- package/dist/assets/{TrendWithTransactions-C2HIrxbU-BSlQs2Tq.js → TrendWithTransactions-BicIDSlC-CR1UupOW.js} +7 -7
- package/dist/assets/{UncategorizedAccountsMappingPage-CN3CI6bw-zjOv8nCW.js → UncategorizedAccountsMappingPage-sbn4Sdr2-Cp0yxgAi.js} +13 -13
- package/dist/assets/{UnitIntegrationPage-EaVWz4pX-CbKtqluY.js → UnitIntegrationPage-CZUyjeh5-CHXW7rW2.js} +11 -11
- package/dist/assets/UploadAdditionalDocumentOverlay-4AWDV_HK-BN630Ftn.js +38 -0
- package/dist/assets/Vendor2FAPopup-C_PmEAQ7-CPcuM1Lv.js +1 -0
- package/dist/assets/VendorACHDetailsPage-DMMoCytX-D0o8agib.js +1 -0
- package/dist/assets/{VendorDetailPage-C_B_CmoV-DZeP35Np.js → VendorDetailPage-CLFKkF8I-C1yDRJ_V.js} +87 -87
- package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-C47siTp3.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-Dzgzl_4E-VsmZ5Vuv.js → VendorFiling1099EditablePage-CrWrhHZl-jwDcG4lR.js} +17 -17
- package/dist/assets/{VendorFirstReviewPage-mfIvCyFK-ApwBXjUo.js → VendorFirstReviewPage-C6MnbIan-DEgAFFp_.js} +60 -60
- package/dist/assets/{VendorInternationalWireDetailsPage-CNs1VqUa-DbFJLYLp.js → VendorInternationalWireDetailsPage-CzPRK4E2-DPbUqt-0.js} +17 -17
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-OZPxcMNL.js +1 -0
- package/dist/assets/{VendorsAccountsSection-B6DkSP2a-Ct-pliYw.js → VendorsAccountsSection-CVh1n81R-DKMXaRY8.js} +5 -5
- package/dist/assets/{VerifyDevice-Cu9P83rS-BlGa7yZF.js → VerifyDevice-BHocExfO-BBG3ubvW.js} +7 -7
- package/dist/assets/{VideoPlayer-Dml6r7Q7-CtFMcnbA.js → VideoPlayer-9rYRtSLf-BqgUiaDS.js} +2 -2
- package/dist/assets/{VideoPopup-B7E5ZfFp-BvZy2q4i.js → VideoPopup-D1o92dj6-CPKE8Mhx.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-BZU8XDHH-Djgf6BN0.js → WarningsDrawerPage-CzufXgaN-PU9KYQuW.js} +3 -3
- package/dist/assets/{ZeniAccountDetailPage-Do5LJYN4-DOVBM5Q5.js → ZeniAccountDetailPage-ZZ3Ra-Jf-C6vBQEO7.js} +31 -31
- package/dist/assets/{ZeniAccountListViewPage-Be5rl4e6-BE0wkZ9j.js → ZeniAccountListViewPage-Cxid0mfh-BWdmN1tO.js} +10 -10
- package/dist/assets/ZeniAccountNavBarPieces-DDc-xph4-CakYiqJV.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-BMULic13-C4Ac4YqS.js → ZeniAccountPromoPage-YIYFkPIB-DeTeBxx_.js} +22 -22
- package/dist/assets/{ZeniAccountSetupPage-D_doc0Sf-BchKN68c.js → ZeniAccountSetupPage-BJ9UJ0dP-BVBV8wvJ.js} +1 -1
- package/dist/assets/{ZeniCopyright-CDfvakjf-8KnokS3w.js → ZeniCopyright-CztmWsFm-BfzonAhy.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BdZ5l3Hh-C3Uey-AS.js → ZeniTransferAmountSlider-g9qU5Lsq-Xlt7u852.js} +7 -7
- package/dist/assets/{add-to-wallet-DgdBD8_G-Bp_adk0W.js → add-to-wallet-DgdBD8_G-C9HdEEg2.js} +1 -1
- package/dist/assets/{analytics-GoB8GGlk.js → analytics-DHoFVrJa.js} +1 -1
- package/dist/assets/{analyticsHelper-C164AjRf-tG0aq5YR.js → analyticsHelper-D4lKCWjQ-D3kvyQYi.js} +1 -1
- package/dist/assets/analyticsHelper-ogjXN0a1.js +1 -0
- package/dist/assets/{arrow-south-east-round-PEovUgvH-BlptIYjS.js → arrow-south-east-round-PEovUgvH-DTpfnp7v.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DNmdc0t7.js → auto-transfer-rule-mbafm5D3-Drj2iH_J.js} +1 -1
- package/dist/assets/{chartTypes-DQ1OffIu-Bo_aesHa.js → chartTypes-BPPSjkhb-B7nnCmyE.js} +1 -1
- package/dist/assets/{commonDimensions-j5_IHOmP-jvW6K-um.js → commonDimensions-Ds75pRzR-BWQNp0GW.js} +1 -1
- package/dist/assets/{constants-DTxI1rHn.js → constants-JMxq3kKJ.js} +1 -1
- package/dist/assets/{core-cG0U1y2d.js → core-DbjebHB2.js} +2 -2
- package/dist/assets/{dash.all.min-CKz_ZRDI.js → dash.all.min-DW9Kl4IB.js} +1 -1
- package/dist/assets/{detailCommon-BdYIBs8o-CJ5ceH6M.js → detailCommon-DdZdfmYT-DKTM1aWX.js} +6 -6
- package/dist/assets/downloadPdf-B8UMaJCC-DUveB_dN.js +1 -0
- package/dist/assets/{empty-DAIP1XxB.js → empty-6lxZMaF0.js} +1 -1
- package/dist/assets/{index-BMQnSjFr.js → empty-wNjVfCDj.js} +1 -1
- package/dist/assets/epic-DThgZpcq.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-CTtI5cXz.js → gift-box-Cmt9OgIZ-CNk2xYWr.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-PUQeicgl.js → graphic-no-data-l-DU4J8fDt-ClpG2ri3.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BwRajxvj.js → graphic-no-data-net-burn-l-CzmycA0m-BOz-3nes.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BXfsCAUf.js → handshake-BPg58FML-k1WIZYu1.js} +1 -1
- package/dist/assets/{index-BqrFe7eC.js → index-7ciVtOQ7.js} +1 -1
- package/dist/assets/{index-CO_Updpp.js → index-BqVFY7NZ.js} +4410 -4418
- package/dist/assets/{index-DVGnYxP0.js → index-C1PhqSzi.js} +1 -1
- package/dist/assets/{index-uRSEmDsl.js → index-Cryszh5n.js} +1 -1
- package/dist/assets/{index-CpulHfxu.js → index-JDXIN5Fj.js} +1 -1
- package/dist/assets/index-JN-1XlIu.js +1 -0
- package/dist/assets/index-TZkjLPoA.js +1 -0
- package/dist/assets/{lexical-CUq6kk0g.js → lexical-B-aBuW2Y.js} +1 -1
- package/dist/assets/{liveblocks-BOlC_Koo.js → liveblocks-DBgNWxtT.js} +1 -1
- package/dist/assets/{lottie-DQ5EyuJ6.js → lottie-DbNQVAcx.js} +2 -2
- package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-DGzOqzir.js +1 -0
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-rrJBbsC8-TBViCt8n.js +1 -0
- package/dist/assets/mapSpacerToTreeNode-CWvamMX2-HhIsCvlh.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DfQk4Tsr-CrmG1KLX.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-D-1vMkLl.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-DDk9yv3G.js +1 -0
- package/dist/assets/{mui-ByF8ZmHV.js → mui-BdKs9UwT.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-C2KjOx45.js → page-detail-CWX5S47F-Dil4tjIc.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-B7-vB3nP.js → radio-default-CiSgisfh-DIcxqpZX.js} +1 -1
- package/dist/assets/{react-B3-oq61_.js → react--GRYl8Vw.js} +2 -2
- package/dist/assets/{react-B1eYDq6e.js → react-1ymFMNft.js} +3 -3
- package/dist/assets/{react-B20ZDkLv.js → react-2NSNcP_P.js} +2 -2
- package/dist/assets/{react-osFWCkxJ.js → react-D1OXMWSN.js} +2 -2
- package/dist/assets/{react-D74rpLXu.js → react-DEyP-vQs.js} +1 -1
- package/dist/assets/{react-CeCukAHo.js → react-DaVNNE91.js} +1 -1
- package/dist/assets/{react-BU_tzuye.js → react-DfSxWhpD.js} +1 -1
- package/dist/assets/{react-iY_JqSpg.js → react-Dmst1txh.js} +2 -2
- package/dist/assets/{recharts-C9z9JCsM.js → recharts-CU0wfbyQ.js} +1 -1
- package/dist/assets/{sentry-DdXOXL3j.js → sentry-DfYwagp9.js} +2 -2
- package/dist/assets/{shield-DOlUxcFf-hMFlex27.js → shield-DOlUxcFf-C7eXS_DD.js} +1 -1
- package/dist/assets/toCOABalancesWithID-CkjRB0sJ-BaA2_x3K.js +1 -0
- package/dist/assets/toChartData-CMi2WgAy-JL4zgl5e.js +1 -0
- package/dist/assets/transaction-placeholder-CpOwZAMG-C6Cgts33.js +1 -0
- package/dist/assets/{uploadAttachment-DiJJciQx-DORmL_G6.js → uploadAttachment-B4ddYCCL-BXwz-FZi.js} +27 -27
- package/dist/assets/{uploadReceipts-CPw64UYa-CIYZXcqS.js → uploadReceipts-CPw64UYa-CTZvsl83.js} +1 -1
- package/dist/assets/{url-PLN9h9fH.js → url-CNQZElM1.js} +1 -1
- package/dist/assets/{url-DnfeNFje.js → url-K5H6qIZr.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-aie8BHVS.js → useLongPress-GCK2COYQ-hK0wtujH.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-nbZRH-xL.js → usp-line-BBd1wKwW-C0__t1n1.js} +1 -1
- package/dist/assets/{utils-BMrfBn9K.js → utils-DTmuLq6q.js} +1 -1
- package/dist/assets/{zeni-epic-state-BiQIJCwr.js → zeni-epic-state-DcbIZGFH.js} +32 -32
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-DSdNOxQ9-Cve45-FP.js +0 -21
- package/dist/assets/AccountInfoPage-BVK7wWF2-D6Zwr__G.js +0 -18
- package/dist/assets/AccountLockedInfoModal-CiHVEVZY-D75r_EpP.js +0 -59
- package/dist/assets/AddAddressForCardDrawer-BB7h_VuN-BW-_Qu7Y.js +0 -6
- package/dist/assets/ArAgingDetailPage-BjvQEK0m-N2ygiYcL.js +0 -46
- package/dist/assets/BankAccountWarningSection-neFg-P9--B7Ex5Gby.js +0 -51
- package/dist/assets/BillDetailPage-Caang31I-CV8BSbsx.js +0 -266
- package/dist/assets/BillPayApprovalRuleDetailPage-4n9jmsl3-C-Id93Y1.js +0 -27
- package/dist/assets/BillPayApprovalRulesPage-BPX-ygl8-NB7YIybj.js +0 -241
- package/dist/assets/BillPayPromoPage-KojRs3th-CbM1NPfP.js +0 -84
- package/dist/assets/ChargeCardListPage-BaxxkyMM-Tr5RRdcf.js +0 -412
- package/dist/assets/ChargeCardPaymentHistoryPage-5dwl-3gt-Cg-FZFeP.js +0 -534
- package/dist/assets/ChargeCardPromoPage-DXHFY90F-COAtEu6_.js +0 -222
- package/dist/assets/ConfettiBurst-fYnxwqdQ-9H12a4VU.js +0 -1
- package/dist/assets/CreditCardPaymentDrawerPage-nshXhNlE-CfhRwqnV.js +0 -227
- package/dist/assets/CustomerOnboardingActivationPage-J6mQ99Q--BiV07KZX.js +0 -88
- package/dist/assets/CustomerOnboardingContainerPage-DHYXaV1V-BTZJkTlt.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-_P1XRJy7-BBpsfMtj.js +0 -66
- package/dist/assets/CustomerOnboardingProductSuitePage-BWN72Maw-CVrAAnDn.js +0 -202
- package/dist/assets/DashboardSidebarBackgroundAnimation-BCWBgFUn-C6Sp2Ncg.js +0 -12
- package/dist/assets/EditPeoplePage-Ck6tbODS-2oTO0N4I.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-CYCB7XUZ-Bkc4_Xh-.js +0 -865
- package/dist/assets/EntityDetailPage-DEzsWzSU-C1IWQ2YR.js +0 -18
- package/dist/assets/InsightsSection-9xZ9BN4e-D22swiZq.js +0 -27
- package/dist/assets/InvitePeoplePage-xJZ4CmaB-D0fUyZVv.js +0 -12
- package/dist/assets/LabeledControlledCheckBoxField-CcPruRSO-BooOk31f.js +0 -16
- package/dist/assets/LabeledDocumentField-Bo6fnkUs-BetKwcOR.js +0 -41
- package/dist/assets/LinkJETransactionPage-CejrEmB0-M4S6E6Jj.js +0 -98
- package/dist/assets/MagicLinkACHDetailsPage-BNATDZtB-DsiI-0KM.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-ZGyx0g5t-8Tuy5QId.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CP5KtUSE-HiNxzZ5H.js +0 -1
- package/dist/assets/MailingDetailsSection-DAryNhi6-DIXrN7jG.js +0 -21
- package/dist/assets/Menu-IHf_FfRX-LPFIlYqd.js +0 -17
- package/dist/assets/NoDataChart-58kSyixy-CZ5Rv3U9.js +0 -26
- package/dist/assets/NoDataTable-aDUu8tCI-CN9poHgG.js +0 -8
- package/dist/assets/NotificationsListConfig-CAW8P9gG-CmdQuS9n.js +0 -1
- package/dist/assets/PandLWithForecastPage-CpCiLOIl-DtQtxcyB.js +0 -107
- package/dist/assets/Preview-D56XCw0A.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-Cx24E4je-CUe9BrFq.js +0 -32
- package/dist/assets/ReimbursementApprovalRulesPage-DRAkofwN-Cw1wl-sh.js +0 -243
- package/dist/assets/ReimbursementDetailPage-DToZctqy-CIF8fvzJ.js +0 -314
- package/dist/assets/RoleWithToolTip-DUEwWP4s-ChXNLhUR.js +0 -22
- package/dist/assets/ScreenRoutes-BRmamOlw.js +0 -201
- package/dist/assets/SignIn-C5PcCpLW-Da05HaL3.js +0 -480
- package/dist/assets/SpendManagementListViewPage-BmZeAl5K-BgHQbDY0.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-BfJ_icLF-CGfN-F05.js +0 -785
- package/dist/assets/SpendManagementSection-DoJcpweo-BSx0Jax5.js +0 -246
- package/dist/assets/StatementItem-Bw66NYeY-DcIvhMqc.js +0 -31
- package/dist/assets/TimeRangeSwitcher-mYZQR43P-BLWBlyWb.js +0 -64
- package/dist/assets/TimeframeSwitcherWithToggle-wwIX-Q6T-DmtPgL2u.js +0 -31
- package/dist/assets/TransactionListPage-DDNtUv3t-Dwe7tcE5.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-BTufZurh-CGfPDjZ_.js +0 -80
- package/dist/assets/UploadAdditionalDocumentOverlay-DIL6E7Sd-BEDKH1e3.js +0 -38
- package/dist/assets/Vendor2FAPopup-BxAm0k92-Dk5tVOzX.js +0 -1
- package/dist/assets/VendorACHDetailsPage-DF0jHzqw-CNLQ8AnP.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-a52VbRia-DcoKPqJx.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BoEZ09xC-egxnMP7A.js +0 -1
- package/dist/assets/ZeniAccountNavBarPieces-0h-vfuVY-BqB9OPYl.js +0 -14
- package/dist/assets/analyticsHelper-OMYXGOV0.js +0 -1
- package/dist/assets/downloadPdf-BduTAGPj-DUom1tyc.js +0 -1
- package/dist/assets/empty-D_oWKko5.js +0 -1
- package/dist/assets/epic-4bGyY7Fz.js +0 -2
- package/dist/assets/index-D4nV_3XK.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-kWMAzMb3-CMOJHu7q.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-CSuXPDoO-BSS8TRaL.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-BjnjpyM6-BNLh9WdA.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CaRKUf6w-8AEXCCet.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-XslT-q64-Q3w1WkcY.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-ByvQizpc-BItBTBN2.js +0 -1
- package/dist/assets/toCOABalancesWithID-BA4WkU1y-CDNy4Vu0.js +0 -1
- package/dist/assets/toChartData-DrvhJgTD-N2b3lY8k.js +0 -1
|
@@ -1,865 +0,0 @@
|
|
|
1
|
-
import{aO as li,f as ft,aw as wt,a9 as an,ay as Ii,aB as rn,q as Re,gd as ao,gf as ro,gg as lo,V as t,gA as so,ac as ln,cn as di,co as sn,cp as dn,aN as H,o as i,y as d,bA as Ti,bn as co,ds as uo,gh as mo,gs as cn,gn as Di,aP as un,ao as mn,go as po,gB as Ve,ex as Ke,e$ as ci,gC as Bt,F as fe,A as xt,gD as ho,p as j,_ as pn,aq as ui,d as a,bw as go,gq as yo,cD as bo,eE as mi,gE as Mt,fe as Se,cF as pi,fh as $e,cP as nt,ei as fo,fd as hn,b as Rt,cI as gn,cH as tt,cX as Te,ai as hi,gF as wo,fw as xo,cC as So,aT as ji,fq as $o,bv as vo,b9 as yn,u as Co,eh as ko,b6 as Ft,gi as Io,bT as bn,M as gi,a as fn,cZ as wn,cg as Et,eS as To,b8 as Do,d1 as jo,fk as Oo,al as yi,n as Oi,bR as xn,b0 as Pi,cW as Po,am as Lo,cL as Sn,aL as Ro,gG as $n,gH as si,g8 as Li,gI as At,cV as Ao,gc as zo,bI as Bo,cU as Mo}from"./index-CO_Updpp.js";import{a as S,S as kt}from"./sentry-DdXOXL3j.js";import{n}from"./mui-ByF8ZmHV.js";import{a as Fo}from"./liveblocks-BOlC_Koo.js";import{FI as Eo,bL as it,bP as vn,bo as Cn,bm as Ri,FJ as Ai,bh as bi}from"./zeni-epic-state-BiQIJCwr.js";import kn from"./InvoiceUploadSection-D6gMuygS-CT-0_4kq.js";import{r as No,f as zt,d as bt,p as fi,u as zi,h as ke}from"./types-DyvtCprH-NFPm5TaG.js";import{I as Wo}from"./LabeledCreatableSingleSelectField-B-OgiRpS-D789AeMD.js";import{S as Uo}from"./CurrencySelectField-9MMlAXHh-7T5GvQvy.js";import{e as _o}from"./BankAccountSection-DWKYMZid-XH_pxLOm.js";import{W as Vo,A as Ho}from"./BankAccountWarningSection-neFg-P9--B7Ex5Gby.js";import{o as qo}from"./radio-default-CiSgisfh-B7-vB3nP.js";import"./core-cG0U1y2d.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./recharts-C9z9JCsM.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.js";import"./AttachmentView-e6OZT5St-CRHdzPSa.js";import"./uploadReceipts-CPw64UYa-CIYZXcqS.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="9ce2505c-7a95-4dd7-ac5b-8a7074109b5b",e._sentryDebugIdIdentifier="sentry-dbid-9ce2505c-7a95-4dd7-ac5b-8a7074109b5b")}catch{}})();const Me=(e,o)=>`${e}.${o}`,Bi={largeLabelWidth:new d(120,120,160),paddingBottom:new d(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Ce}},dateFormat:Ko,common:Go}=fe.getLocalizedStrings(),Yo=({lineIndex:e,mileage:o,classList:r,defaultCurrency:c,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:v,companyMileageConfigInfo:f,reimbursementId:l,classHierarchyList:k})=>{const w=Re(),s=wt(),y=Mt(),$=`dashboard_${s.currentTenant?.companyId}`,P=ft(),{formState:{errors:I},getValues:L,trigger:q}=nt(),R=Go.strings.empty,T=L(Me(p,"distanceInMiles")),B=Bi.largeLabelWidth.value(w),te=L(Me(p,"class")),ne=r.find(z=>z.classId===te?.selectedOption),oe=Me(p,"class"),Y=Te(I,oe);S.useEffect(()=>{te?.selectedOption!=null&&(ne?.isDeleted===!0||Y)&&q(oe)},[te?.selectedOption,ne?.isDeleted,r,oe,q]);const K={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},F=z=>r.filter(ae=>ae.classId===z)[0]?.accountingClassNumber,Z=r.find(z=>z.classId===o.class),V={valueContainer:z=>({...z,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:$,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("transactionDate",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:m,label:{label:Ce.transactionDate,width:B},style:{paddingBottom:Bi.paddingBottom.valuePx(w),width:"auto"},dateField:{name:Me(p,"transactionDate"),placeholder:Ce.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Ko.visual.defaultInput,autoComplete:"off",maxDate:bi(),registerOptions:{required:!0,validate:z=>!!z}}})}),t.jsx(It,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:$,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Li,{isDisabled:v?"disabled":void 0,style:{width:"auto"},label:{label:Ce.distanceInMiles,width:B},formattedTextField:{type:"number",name:Me(p,"distanceInMiles"),placeholder:Ce.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:z=>z!=null?z>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(It,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.amount`}),roomId:$,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("amount",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(Li,{isDisabled:"disabled",label:{label:Ce.amount,width:B},formattedTextField:{type:"number",name:Me(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:tt(Ce.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:z=>z!=null?z>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:T!=null&&f?.mileageUnitAmount!=null?`${c.currencySymbol}${f?.mileageUnitAmount} per mile x ${T}`:void 0})}),t.jsx(It,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.memo`}),roomId:$,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("memo",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,children:t.jsx(pi,{isDisabled:m,label:{label:Ce.memo,width:B},style:{width:"auto"},text:{type:"text",name:Me(p,"memo"),placeholder:tt(Ce.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(It,{}),t.jsx(Se,{isThreadAllowed:C&&l!=null,dashboardTabKey:$e({type:"details",key:`${e}.mileage.class`}),roomId:$,companyId:s.currentTenant?.companyId??R,companyName:s.currentTenant?.companyName??R,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...K,entityType:`reimbursement.details.${ke("class",e,"mileage")}`},fieldThreadTargetElement:y?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(si,{isLoading:!1,label:{label:Ce.department,width:B},additionalLabelInfo:ne?.isDeleted===!0&&Te(I,Me(p,"class"))?Ce.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Me(p,"class"),placeholder:tt(Ce.department),valueToId:z=>F(z),defaultValue:{selectedOption:Z?.classId,allOptions:Ke(k,[])},style:{width:"100%"},customStyleConfig:V,registerOptions:{required:!0,validate:z=>z?.selectedOption==null?!1:r.find(ae=>ae.classId===z?.selectedOption)?.isDeleted===!0?Ce.deletedClassError:!0}},style:{borderBottom:`1px solid ${P.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Me(p,"class"))})]})},It=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
|
-
`,Mi={amounWidth:new d(50,30),currencyWidth:new d(50,70)};function Zo({name:e,placeHolder:o,defaultValue:r,isDisabled:c,showAmountCurrencyError:p,style:C,allCurrencies:m}){const[v,f]=S.useState(!1),{getValues:l,formState:{errors:k}}=nt(),w=ft(),s=Re(),y=c!=null,$=l(e),P=`${$?.amount} ${$?.currency?.selectedOption}`,I=Te(k,e)&&At(k,`${e}.amount`)!=null,L=Te(k,e)&&At(k,`${e}.currency`)!=null,q=p===!0?I||L:!1,R=!q&&v===!1;return S.useEffect(()=>{R===!1&&f(!0)},[R]),t.jsx(mn,{onClickAway:()=>y===!1&&!q&&f(!1),children:t.jsx(Jo,{style:C,isDisabled:y,tabIndex:R&&!y?0:void 0,onClick:()=>y===!1&&f(!0),"data-testid":H("currency-amount-field",e),children:t.jsxs(t.Fragment,{children:[$?.amount!=null?t.jsx(Fi,{className:"amount-field",isVisible:R,children:P}):t.jsx(Fi,{className:"amount-field amount-placeholder",isVisible:R,children:o?.name}),t.jsxs(Xo,{isVisible:!R,children:[t.jsx(zo,{type:"number",name:`${e}.amount`,defaultValue:r?.amount,placeholder:o?.amount,returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:T=>T!=null?T>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,isDisabled:c,style:{display:"flex",flexGrow:1,width:Mi.amounWidth.valuePercentage(s),cursor:"inherit"},bgColor:w.colors.background,isFieldError:I,shouldHighlightZeroAmount:!0}),R?null:t.jsx(Qo,{}),t.jsx(Uo,{name:`${e}.currency`,registerOptions:{validate:T=>T!=null&&T.selectedOption!=null},defaultValue:{allOptions:m.map(T=>({label:s==="small"?T.currencyCode:`${T.currencyCode} - ${T.currency}`,value:T.currencyCode,countryCode:T.countryCode})),selectedOption:r?.currencyCode},controlStyle:{justifyContent:"flex-start",backgroundColor:w.colors.background},isDisabled:c,style:{width:Mi.currencyWidth.valuePercentage(s),flexGrow:1},isOptionRemovable:!1})]})]})})})}const Xo=n.div`
|
|
8
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
9
|
-
width: 100%;
|
|
10
|
-
input {
|
|
11
|
-
text-align: left;
|
|
12
|
-
}
|
|
13
|
-
`,Jo=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
|
-
`,Fi=n(yn)`
|
|
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
|
-
`,Ue={width:new d(343,580,726),height:new d(a[6],a[6]),controlHeight:new d(a[6],a[6]),paddingTopBottom:new d(a[2],a[2]),marginRight:new d(a[2],a[2]),labelMarginLeft:new d(a[3],a[4]),labelMarginRight:new d(a[3],a[4]),labelMarginTop:new d(a[2],a[2])},In={infoLabel:new gi("extraSmallRegular","smallRegular")};function ea({isDisabled:e,label:o,currencyAmountField:r,style:c,errorInfoLabel:p,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:v,additionalInfoLabel:f,showAdditionalInfoLabel:l=!0}){const k=Re(),{formState:{errors:w}}=nt(),s=Te(w,r.name)&&At(w,`${r.name}.amount`)!=null,y=Te(w,r.name)&&At(w,`${r.name}.currency`)!=null,$=r.showAmountCurrencyError===!0?s||y:!1,P=s||y||$,I=()=>{if(C===!0)return t.jsx(aa,{children:t.jsx(xt,{size:"Small",start:!0})});if(l&&f||$){let L=null;return m===!0&&l&&f&&(L=t.jsx(xn,{placement:k==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(oa,{children:v??""}),children:t.jsx(la,{children:t.jsx(sa,{})})})),t.jsxs(ra,{size:k,isError:$,hasToolTip:m,children:[L,f]})}};return t.jsxs(ta,{size:k,style:c,isDisabled:e!=null,isAmountError:s,isCurrencyError:y,"data-testid":H("labeled-currency-amount-field",r.name),children:[t.jsx(Ao,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:Ue.labelMarginLeft.value(k),marginRight:Ue.labelMarginRight.value(k),marginTop:Ue.labelMarginTop.value(k),width:o.width??"auto"}}),t.jsxs(na,{labelWidth:o.width,children:[t.jsx(Zo,{...r,isDisabled:e,style:{flexGrow:1,height:Ue.controlHeight.value(k)}}),P?t.jsx(ia,{size:k,hasError:P,children:p}):null,I()]})]})}const ta=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=>Ue.width.valuePx(e.size)};
|
|
46
|
-
min-height: ${e=>Ue.height.valuePx(e.size)};
|
|
47
|
-
padding-right: ${e=>Ue.marginRight.valuePx(e.size)};
|
|
48
|
-
padding-top: ${e=>Ue.paddingTopBottom.valuePx(e.size)};
|
|
49
|
-
padding-bottom: ${e=>Ue.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
|
-
`,ia=n.label`
|
|
108
|
-
color: ${e=>e.hasError===!0?j.important:e.additionalInfoTextColor!=null?e.additionalInfoTextColor:e.theme.colors.grey1};
|
|
109
|
-
width: auto;
|
|
110
|
-
${e=>`${In.infoLabel.style(e.size)}`};
|
|
111
|
-
padding-right: ${i.sp3};
|
|
112
|
-
text-align: right;
|
|
113
|
-
`,na=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
|
-
`,oa=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
|
-
`,aa=n.div`
|
|
125
|
-
padding-right: ${i.sp3};
|
|
126
|
-
padding-top: ${i.sp1};
|
|
127
|
-
display: flex;
|
|
128
|
-
justify-content: flex-end;
|
|
129
|
-
`,ra=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=>`${In.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
|
-
`,la=n.div`
|
|
141
|
-
display: flex;
|
|
142
|
-
margin-right: ${i.sp2};
|
|
143
|
-
margin-top: 2px;
|
|
144
|
-
align-items: center;
|
|
145
|
-
`,sa=n(Bo)`
|
|
146
|
-
width: ${i.sp3};
|
|
147
|
-
height: ${i.sp3};
|
|
148
|
-
color: inherit;
|
|
149
|
-
`,he=(e,o)=>`${e}.${o}`,Pt={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:da,common:Tn,spendManagement:{reimbursement:{reimbursementDetail:ie}}}=fe.getLocalizedStrings(),{strings:{empty:re}}=Tn,ca=(e,o)=>{const r=e.slice(1);let c=!1;return r.forEach(p=>{p.account?.qboId!=null&&p.account?.qboId===o&&(c=!0)}),c},ua=e=>e.charAt(0).toLowerCase()+e.slice(1),ma=({lineIndex:e,outOfPocket:o,accountList:r,classList:c,merchantList:p,isAddReimbursementDisabled:C,sectionId:m,isReimbursementCommentingEnabled:v,isDisabled:f,autoFields:l=[],accountsHierarchyList:k,classHierarchyList:w,reimbursementId:s,tentativeMerchantName:y,allCurrencies:$,uncategorizedAccounts:P})=>{const I=Re(),L=wt(),q=Mt(),R=ft(),{formState:{errors:T},getValues:B,trigger:te}=nt(),ne=B(he(m,"class")),oe=c.find(h=>h.classId===ne?.selectedOption),Y=he(m,"class"),K=Te(T,Y),F=B(he(m,"account")),Z=r.find(h=>h.qboId===F?.selectedOption||h.accountId===F?.selectedOption),V=he(m,"account"),z=Te(T,V);S.useEffect(()=>{ne?.selectedOption!=null&&(oe?.isDeleted===!0||K)&&te(Y)},[ne?.selectedOption,oe?.isDeleted,c,Y,te]),S.useEffect(()=>{F?.selectedOption!=null&&(Z?.isDeleted===!0||z)&&te(V)},[F?.selectedOption,Z?.isDeleted,r,V,te]);const ae=o.isCategoryUpdateSelected!=null&&o.recommendedAccount!=null&&!o.isCategoryFirstTimeAutofilled&&!ca(o.recommendations,o.account),le=o.isRetainedCategorySelected!=null&&o.retainedAccount!=null,U=Pt.largeLabelWidth.value(I),ce=Pt.smallLabelWidth.value(I),Ee=p.map(h=>h.id??re),ue={application:"dashboard",companyId:L.currentTenant?.companyId,tab:"reimbursement",entityId:s},ge=`dashboard_${L.currentTenant?.companyId}`,se=h=>p.find(ee=>ee.id===h)?.name??h,De=r.find(h=>h.qboId===o.account),je=h=>[P.expense?.qboId,P.income?.qboId].includes(h),Oe=c.find(h=>h.classId===o.class),me={valueContainer:h=>({...h,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})},Pe=h=>r.filter(ee=>ee.qboId===h)[0]?.qboId,pe=h=>c.filter(ee=>ee.classId===h)[0]?.accountingClassNumber,ve=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.tooltip.category.replace("__based__",ua(o?.recommendedAccount?.reason??re)),Ge=Bt(k,o.recommendations);return t.jsxs(t.Fragment,{children:[y!=null||l.includes("merchant")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.merchant`}),roomId:ge,companyId:L.currentTenant?.companyId??re,companyName:L.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("merchant",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(Wo,{isDisabled:f!=null||C?"disabled":void 0,label:{label:ie.merchant,width:U},style:{width:"auto"},creatableSingleSelectField:{name:he(m,"merchant"),placeholder:ie.merchantPlaceholder,defaultValue:{selectedOption:o.merchant??re,allOptions:Ee},registerOptions:{required:!0,validate:h=>!!h.selectedOption}},isOptionRemovable:!0,addIconInCreateLabel:!0,getLabelForId:se})}),t.jsx(Tt,{}),l.includes("transactionDate")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.transactionDate`}),roomId:ge,companyId:L.currentTenant?.companyId??re,companyName:L.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("transactionDate",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(Sn,{isDisabled:f,label:{label:ie.transactionDate,width:U},style:{paddingBottom:Pt.paddingBottom.valuePx(I),width:"auto"},dateField:{name:he(m,"transactionDate"),placeholder:ie.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:da.visual.defaultInput,autoComplete:"off",maxDate:bi(),registerOptions:{required:!0,validate:h=>!!h}}})}),t.jsx(Tt,{}),l.includes("amount")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,isTwoLined:!0,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.amount`}),roomId:ge,companyId:L.currentTenant?.companyId??re,companyName:L.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("amount",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(ea,{isDisabled:f!=null||C?"disabled":void 0,label:{label:ie.amount,width:ce},style:{width:"auto"},currencyAmountField:{style:{height:i.sp6},name:`${m}.amount`,defaultValue:{amount:o.amount.amount,currencyCode:o.amount.currencyCode,currencySymbol:o.amount.currencySymbol},placeHolder:{amount:ie.addAmount,name:ie.addAmount},allCurrencies:$,showAmountCurrencyError:!0},showAdditionalInfoLabel:!0,showAdditionalLabelTooltip:!0,additionalLabelTooltip:ie.amountExchangeRateTooltip,isAdditionalInfoLabelLoading:o.isConvertedCurrencyLoading===!0,additionalInfoLabel:!rn(o.homeCurrencyDetails,o.amount)&&o.amount.currencyCode!==Tn.currency.currencyCode&&o.homeCurrencyDetails?.amount!==0?`${Ro("0,0[.]00",o.homeCurrencyDetails)} ${o.homeCurrencyDetails?.currencyCode}`:void 0})}),t.jsx(Tt,{}),l.includes("memo")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.memo`}),roomId:ge,companyId:L.currentTenant?.companyId??re,companyName:L.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("memo",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(pi,{isDisabled:f,label:{label:ie.memo,width:U},style:{width:"auto"},text:{type:"text",name:he(m,"memo"),placeholder:tt(ie.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:$n}}})}),t.jsx(Tt,{}),l.includes("account")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.account`}),roomId:ge,companyId:L.currentTenant?.companyId??re,companyName:L.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("account",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,children:t.jsx(si,{label:{label:ie.category,width:U},additionalLabelInfo:Z?.isDeleted===!0&&Te(T,he(m,"account"))?ie.deletedCategoryError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:ae||le,name:he(m,"account"),placeholder:ie.categoryPlaceholder,valueToId:h=>Pe(h),defaultValue:{selectedOption:De?.qboId??De?.accountId,allOptions:Ge},style:{width:"100%"},customStyleConfig:me,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:r.find(ee=>ee.qboId===h?.selectedOption||ee.accountId===h?.selectedOption)?.isDeleted===!0?ie.deletedCategoryError:!0}},disableCurrentOption:je,style:{borderBottom:`1px solid ${R.colors.grey3}`,minHeight:i.sp6,boxSizing:"initial"},fullWidthSelect:!0,isLoading:o.isRecommendationLoading,recommendationCheckboxField:ae?{tooltipProps:{text:ve},label:{label:o.recommendedAccount?.accountName??re},checkBoxField:{name:he(m,"isCategoryUpdateSelected"),defaultChecked:!!o.isCategoryUpdateSelected}}:void 0,retainCheckboxField:le?{label:{label:o.retainedAccount?.accountName??re},checkBoxField:{name:he(m,"isRetainedCategorySelected"),defaultChecked:!!o.isRetainedCategorySelected}}:void 0},he(m,"account"))}),l.includes("class")?t.jsx(ct,{children:t.jsx(mt,{windowSize:I,children:t.jsx(ut,{})})}):null,t.jsx(Se,{isThreadAllowed:v&&s!=null,dashboardTabKey:$e({type:"details",key:`${e}.out_of_pocket.class`}),roomId:ge,companyId:L.currentTenant?.companyId??re,companyName:L.currentTenant?.companyName??re,entityId:s,dashboardOptionType:"reimbursement",filterMetaData:{...ue,entityType:`reimbursement.details.${ke("class",e,"out_of_pocket")}`},fieldThreadTargetElement:q?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(si,{isLoading:!1,label:{label:ie.department,width:U},additionalLabelInfo:oe?.isDeleted===!0&&Te(T,he(m,"class"))?ie.deletedClassError:void 0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:he(m,"class"),placeholder:tt(ie.department),valueToId:h=>pe(h),defaultValue:{selectedOption:Oe?.classId,allOptions:Ke(w,[])},style:{width:"100%"},customStyleConfig:me,registerOptions:{required:!0,validate:h=>h?.selectedOption==null?!1:c.find(ee=>ee.classId===h?.selectedOption)?.isDeleted===!0?ie.deletedClassError:!0}},style:{borderBottom:`1px solid ${R.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},he(m,"class"))})]})},ct=n.span`
|
|
150
|
-
position: relative;
|
|
151
|
-
`,ut=n(mi)`
|
|
152
|
-
color: ${e=>e.theme.colors.primary};
|
|
153
|
-
width: ${i.sp3};
|
|
154
|
-
height: ${i.sp3};
|
|
155
|
-
`,mt=n.div`
|
|
156
|
-
z-index: 2;
|
|
157
|
-
left: ${e=>Pt.autoFillIconLeft.valuePx(e.windowSize)};
|
|
158
|
-
position: absolute;
|
|
159
|
-
top: ${e=>e.isTwoLined===!0?i.sp5:"22px"};
|
|
160
|
-
`,Tt=n.div`
|
|
161
|
-
display: flex;
|
|
162
|
-
flex: 1;
|
|
163
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
164
|
-
min-height: 1px;
|
|
165
|
-
max-height: 1px;
|
|
166
|
-
`,Qe=(e,o)=>`${e}.${o}`,_e={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=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,pa=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:c,lineIndex:p,accountList:C,classList:m,merchantList:v,hasFile:f,defaultCurrency:l,hasMultipleLineItems:k,fileRequiredLineIds:w,duplicateLineDetails:s,remiStatus:y,sectionId:$,isDisabled:P,isReimbursementCommentingEnabled:I,isAddReimbursementDisabled:L,style:q,autoFields:R=[],analytics:T,reimbursementId:B,tentativeMerchantName:te,companyMileageConfigInfo:ne,uncategorizedAccounts:oe,removeDuplicateReimbursementForLine:Y,scrollToSection:K,onDuplicateLineClick:F,onRemoveReimbursement:Z,clearTentativeNameForLine:V,allCurrencies:z,accountsHierarchyList:ae,classHierarchyList:le})=>{const U=Re(),ce=wt(),Ee=Mt(),ue=fe.getLocalizedStrings().common.strings.empty,ge={application:"dashboard",companyId:ce.currentTenant?.companyId,tab:"reimbursement",entityId:B},se=`dashboard_${ce.currentTenant?.companyId}`,{getValues:De}=nt(),[je,Oe]=S.useState(!1),me=De(Qe($,"reimbursementType"));return t.jsxs(xa,{style:q,windowSize:U,children:[t.jsxs(ga,{hasFile:f,windowSize:U,showDeleteConfirmation:je,children:[t.jsx($a,{windowSize:U,children:k?`#${p+1} ${G.reimbursement}`:G.reimbursement}),je?t.jsxs(wa,{windowSize:U,children:[t.jsx(fa,{windowSize:U,children:G.deleteConfirmation}),t.jsxs(ha,{children:[t.jsx(Oi,{label:G.buttons.cancel,onClick:()=>Oe(!1),style:{width:_e.buttonWidth.value(U),marginLeft:U==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":H("delete-remi-button",G.buttons.cancel)}),t.jsx(Oi,{label:G.buttons.remove,onClick:()=>{T?.trackReimbursementDeleteReimbursementLine(e.lineId,B),V?.(e.lineId??"1"),Oe(!1),Y(e.lineId),Z(p)},style:{width:_e.buttonWidth.value(U)},size:"small",variant:"danger","data-testid":H("delete-remi-button",G.buttons.remove)})]})]}):k&&(c==="draft"||y==="rejected")?t.jsx(ya,{className:"deleteIconWrapper",windowSize:U,onClick:()=>Oe(!0),"data-testid":H("delete-remi-button",e.lineId),children:t.jsx(xn,{enterDelay:600,title:G.deleteReimbursement,placement:"top-end",children:t.jsx(ba,{})})}):null]}),w.includes(e.lineId)?t.jsx(cn,{title:G.missingReceipt,description:G.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs(va,{windowSize:U,children:[s?.duplicateLineId!=null?t.jsxs(Sa,{children:[G.thisExpense," ",s.isDuplicateWithinTransaction?t.jsx(Ei,{"data-testid":H("view-duplicate-transaction-expense"),onClick:()=>(T?.trackReimbursementViewDuplicateExpense(!0,B),K(s.duplicateLineId)),children:G.viewOriginalExpense}):t.jsx(Ei,{"data-testid":H("view-duplicate-expense"),onClick:()=>{s.duplicateTransactionId!=null&&s.duplicateLineId!=null&&(T?.trackReimbursementViewDuplicateExpense(!1,B),F(s.duplicateTransactionId,s.duplicateLineId))},children:G.viewOriginalExpense})]}):null,t.jsx(Se,{isThreadAllowed:I&&B!=null,dashboardTabKey:$e({type:"details",key:me===G.mileageKey?`${p}.mileage.reimbursementType`:`${p}.out_of_pocket.reimbursementType`}),roomId:se,companyId:ce.currentTenant?.companyId??ue,companyName:ce.currentTenant?.companyName??ue,entityId:B,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${ke("reimbursementType",p,me===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(ka,{isDisabled:P!=null,haveBorderRadius:s?.duplicateLineId==null,children:[t.jsx(Pi,{isDisabled:P!=null||L?"disabled":void 0,isContainerClickable:!0,label:{label:G.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:_e.labelPaddingLeft.value(U),borderTopLeftRadius:"inherit"},showOutline:!(I&&B!=null),radioField:{name:Qe($,"reimbursementType"),id:`${Qe($,"reimbursementType")}.${G.outOfPocketKey}`,value:G.outOfPocketKey}}),t.jsx(Ca,{}),t.jsx(Pi,{isDisabled:P!=null||L?"disabled":void 0,isContainerClickable:!0,label:{label:G.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:_e.labelPaddingLeft.value(U),borderTopRightRadius:"inherit"},showOutline:!(I&&B!=null),radioField:{name:Qe($,"reimbursementType"),id:`${Qe($,"reimbursementType")}.${G.mileageKey}`,value:G.mileageKey}})]})}),t.jsx(Ia,{}),me===G.outOfPocketKey?t.jsx(ma,{lineIndex:p,reimbursementId:B,uncategorizedAccounts:oe,isReimbursementCommentingEnabled:I,isDisabled:P,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:Qe($,"outOfPocket"),accountList:C,classList:m,autoFields:R,merchantList:v,tentativeMerchantName:te,allCurrencies:z,isAddReimbursementDisabled:L,accountsHierarchyList:ae,classHierarchyList:le}):t.jsx(Yo,{lineIndex:p,reimbursementId:B,isReimbursementCommentingEnabled:I,isDisabled:P,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:m,sectionId:Qe($,"mileage"),companyMileageConfigInfo:ne,defaultCurrency:l,isAddReimbursementDisabled:L,classHierarchyList:le})]})]})},ha=n.div``,ga=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
|
-
`,ya=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
|
-
`,Ei=n.span`
|
|
183
|
-
border-bottom: 1px solid currentColor;
|
|
184
|
-
cursor: pointer;
|
|
185
|
-
`,ba=n(Po)`
|
|
186
|
-
width: ${i.sp3};
|
|
187
|
-
height: ${i.sp3};
|
|
188
|
-
cursor: pointer;
|
|
189
|
-
`,fa=n.div`
|
|
190
|
-
margin-bottom: ${e=>_e.deleteConfirmationTextMarginBottom.valuePx(e.windowSize)};
|
|
191
|
-
`,wa=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
|
-
`,xa=n.div`
|
|
197
|
-
display: flex;
|
|
198
|
-
flex-direction: column;
|
|
199
|
-
padding-top: ${e=>_e.paddingTop.valuePx(e.windowSize)};
|
|
200
|
-
margin-right: ${e=>_e.containerRightMargin.valuePx(e.windowSize)};
|
|
201
|
-
margin-left: ${e=>_e.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
|
-
`,Sa=n(Lo)`
|
|
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
|
-
`,$a=n(Ft)`
|
|
219
|
-
color: ${e=>e.theme.colors.primary};
|
|
220
|
-
display: ${e=>e.windowSize==="small"?"none":"unset"};
|
|
221
|
-
`,va=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=>_e.marginBottom.valuePx(e.windowSize)};
|
|
229
|
-
`,Ca=n.div`
|
|
230
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
231
|
-
min-width: 1px;
|
|
232
|
-
max-width: 1px;
|
|
233
|
-
`,ka=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
|
-
`,Ia=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
|
-
`,Ta=(e,o)=>`${e}.${o}`,pt={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:p,style:C})=>{const m=Re(),v=wt(),f=Mt(),l=`dashboard_${v.currentTenant?.companyId}`,k=fe.getLocalizedStrings(),w=k.spendManagement.reimbursement.reimbursementDetail,s=k.common.strings.empty,y=pt.labelWidth.value(m);return t.jsxs(Da,{style:C,windowSize:m,children:[t.jsx(Oa,{windowSize:m,children:w.whatFor}),t.jsx(ja,{children:t.jsx(Se,{isThreadAllowed:e&&p!=null,dashboardTabKey:$e({type:"details",key:"whatFor"}),roomId:l,companyId:v.currentTenant?.companyId??s,companyName:v.currentTenant?.companyName??s,entityId:p,dashboardOptionType:"reimbursement",filterMetaData:{application:"dashboard",companyId:v.currentTenant?.companyId,tab:"reimbursement",entityId:p,entityType:"reimbursement.details.whatFor"},fieldThreadTargetElement:f?.sharedRef?.contentWrapperRef,style:{borderRadius:i.sp2},children:t.jsx(pi,{isDisabled:r,label:{label:w.reportTitle,width:y},text:{type:"text",name:Ta(o,"reportTitle"),placeholder:w.lunchWithClient,defaultValue:c,autoComplete:"off",options:{required:!0,validate:$=>!!$}},style:{width:"auto",borderRadius:i.sp2}})})})]})},Da=n.div`
|
|
245
|
-
display: flex;
|
|
246
|
-
flex-direction: column;
|
|
247
|
-
padding-top: ${e=>pt.paddingTop.valuePx(e.windowSize)};
|
|
248
|
-
padding-bottom: ${e=>pt.paddingBottom.valuePx(e.windowSize)};
|
|
249
|
-
margin-right: ${e=>pt.containerRightMargin.valuePx(e.windowSize)};
|
|
250
|
-
margin-left: ${e=>pt.containerLeftMargin.valuePx(e.windowSize)};
|
|
251
|
-
`,ja=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
|
-
`,Oa=n(Ft)`
|
|
259
|
-
color: ${e=>e.theme.colors.primary};
|
|
260
|
-
margin-bottom: ${e=>pt.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])},Pa={total:new gi("largeMedium","h6Medium")},{spendManagement:{reimbursement:{reimbursementDetail:_},billPay:{vendorCreation:{achDetails:Dt}}},common:{currency:{currencyCode:jt}}}=fe.getLocalizedStrings(),jn=e=>{let o=0,r=jt;if("recommendationFetchState"in e&&e.recommendationFetchState!=null){const c=e;o=c.outOfPocket.amount??0,r=c.outOfPocket.currencyCode??jt}else{const c=e;o=c.outOfPocket.amount?.amount??0,r=c.outOfPocket.amount?.currencyCode??jt}return(e.homeCurrencyConversions?.currencyCode??jt)!==r&&(o=e.homeCurrencyConversions?.amount??0),o},La=({remiUploadStatus:e,progressSectionObj:o,reimbursementId:r,createDate:c,scheduleDate:p,paymentDate:C,hasDuplicateLine:m,approvedDate:v,isFirstOrLastListItem:f,index:l,reimbursementSectionRef:k,showSkipAutoFill:w,lineData:s,currencyConversionState:y,authParams:$,uploadInvoiceEndPoint:P,accountList:I,classList:L,merchantList:q,remiStage:R,autoFieldsByLineId:T,isReimbursementCommentingEnabled:B,isAutoFieldsExist:te,totalAmount:ne,showTotalAmountLoader:oe,totalNumberOfLines:Y,defaultCurrency:K,bankAccounts:F,fileRequiredLineIds:Z,isAddReimbursementDisabled:V,duplicateLineByLineId:z,remiStatus:ae,file:le,uncategorizedAccounts:U,reportTitle:ce,recommendationFetchState:Ee,tentativeMerchantName:ue,paymentTo:ge,analytics:se,companyMileageConfigInfo:De,loggedInUserDepartmentId:je,isSignedInUserReimbursementCreator:Oe,setShowBankAccountPage:me,setRefByLineId:Pe,setCurrentLineIdForUpload:pe,onDuplicateLineClick:ve,setUploadedReceiptPayload:Ge,removeDuplicateReimbursementForLine:h,onReceiptsUpload:ee,scrollToSection:ot,onRemoveReimbursement:at,onAddReimbursement:Ne,clearTentativeNameForLine:Le,onReplaceClick:Ye,onDeleteBankAccount:Ae,updateInvoiceUploadFetchState:He,removeFileFromLine:qe,allCurrencies:Ze,accountsHierarchyList:Xe,classHierarchyList:de})=>{const{formState:{errors:rt}}=nt(),lt=S.useRef(null);S.useEffect(()=>(Pe(O=>({...O,[`L${s.lineId}`]:lt.current})),()=>{Pe(O=>({...O,[`L${s.lineId}`]:null}))}),[s.lineId,Pe]);const X=Re(),ze=R==="draft"?_.newReimbursementTitle:_.editReimbursementTitle,N=E.largeLabelWidth.value(X),we=O=>O.outOfPocket.account.selectedOption==null&&(O.outOfPocket.amount==null||O.outOfPocket.amount.amount==0)&&(O.outOfPocket.class.selectedOption==null||O.outOfPocket.class.selectedOption===je)&&(O.outOfPocket.memo===""||O.outOfPocket.memo==null)&&O.outOfPocket.merchant.selectedOption==null&&O.outOfPocket.transactionDate==null,st=F.map(O=>O.bankAccountId),St=s.reimbursementType===_.outOfPocketKey&&jn(s)>=75&&le==null;return t.jsxs(Xa,{ref:k,windowSize:X,children:[t.jsx(Ja,{ref:O=>{O!=null&&(lt.current=O)},windowSize:X,bottomSeperator:Y!==1,showSkipAutoFill:w,isFirstItem:l===0,children:t.jsx(kn,{customError:St?_.requireReceipt:void 0,analytics:se,showAutofill:!1,uploadInvoiceEndPoint:P,authParams:$,entityId:V?"":void 0,file:le,style:{width:"auto",padding:0,height:f?E.firstOrLastItemHeight.valuePx(X):E.itemHeight.valuePx(X),margin:X==="small"?i.sp0:void 0},updateInvoiceUploadFetchState:He,onInvoiceUpload:O=>{s.reimbursementType===_.outOfPocketKey&&!we(s)?(pe(Number(s.lineId)),Ge(O),Ye?.()):ee(O,Number(s.lineId),!0)},dropFilePlaceholder:{upload:_.dropReceipt.upload,receipt:_.dropReceipt.receipt},showInfoText:!1,showTitlebar:!0,showTitlebarIcon:!V,pdfTitle:Y>1?`#${l+1} Receipt`:"Receipt",onDeleteClick:()=>{He?.("In-Progress"),setTimeout(()=>qe?.(Number(s.lineId)))},onReplaceClick:()=>{pe(Number(s.lineId)),Ye?.()},allowMultiFiles:Y===l+1,type:"reimbursement"})}),t.jsxs(Za,{windowSize:X,children:[l===0&&X!=="small"?t.jsxs(t.Fragment,{children:[t.jsx(Wa,{children:ze}),t.jsx(Qa,{children:t.jsx(Io,{progressSectionObj:o,createDate:c,paymentDate:C,scheduleDate:p,approvedDate:v,isBillUploaded:r!=null?!0:e==="Completed"})}),te&&t.jsxs(za,{children:[t.jsx(Ra,{}),t.jsx(Na,{children:_.banner})]}),m&&t.jsxs(Ba,{size:X,children:[t.jsx(Aa,{}),t.jsxs(Fa,{children:[t.jsx(Ma,{children:_.thereSeems}),t.jsx(Ea,{children:_.pleaseFind})]})]}),t.jsx(Dn,{isReimbursementCommentingEnabled:B,sectionId:zt,reportTitle:ce,reimbursementId:r})]}):null,t.jsx(pa,{analytics:se,reimbursementId:r,onDuplicateLineClick:ve,uncategorizedAccounts:U,sectionId:`${fi}.${l}`,scrollToSection:ot,lineIndex:l,lineData:s,accountList:I,classList:L,merchantList:q,autoFields:s.lineId!=null?T[s.lineId]:[],currencyConversionState:y,recommendationFetchState:Ee,onRemoveReimbursement:at,hasMultipleLineItems:Y>1,clearTentativeNameForLine:Le,tentativeMerchantName:ue,hasFile:le!=null,companyMileageConfigInfo:De,defaultCurrency:K,remiStage:R,remiStatus:ae,fileRequiredLineIds:Z,allCurrencies:Ze,isReimbursementCommentingEnabled:B,isAddReimbursementDisabled:V,accountsHierarchyList:Xe,classHierarchyList:de,duplicateLineDetails:z[s.lineId],removeDuplicateReimbursementForLine:h}),Y!==1&&Y===l+1&&t.jsxs(t.Fragment,{children:[t.jsxs(_a,{windowSize:X,children:[t.jsx(Va,{children:_.total}),oe?t.jsx(Ha,{windowSize:X,children:t.jsx(qa,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:Cn(ne,"USD","$"),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]}),t.jsxs(Ga,{windowSize:X,onClick:()=>{V===!1&&Ne()},isDisabled:V,"data-testid":H("add-reimbursement-row"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:_.addReimbursement})]}),Oe?t.jsxs(t.Fragment,{children:[t.jsx(Ua,{windowSize:X,children:_.receivePaymentTo}),t.jsx(Ka,{windowSize:X,shouldDisplay:F.length>0,children:t.jsx(gn,{label:{label:_.yourBankAccount,width:N},style:{width:"auto"},singleSelectField:{singleSelect:{name:bt,placeholder:tt(_.yourBankAccount),showValueEyeIcon:!V,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:Ae,getTooltipInfo:O=>On(F,O),onClickCreateBankAccount:()=>me(!0),getLabelForId:O=>Ln(F,O),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:V?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:ge,allOptions:st},registerOptions:{required:!0,validate:O=>!!O.selectedOption}},isFunctional:!0})}),t.jsxs(Ya,{shouldDisplay:F.length===0,windowSize:X,hasError:Te(rt,bt),onClick:()=>{V===!1&&me(!0)},isDisabled:V,"data-testid":H("remi-add-bank-account-container"),children:[t.jsx(Wi,{}),t.jsx(Ni,{children:_.addBankAccount})]})]}):null]})]})]})},On=(e,o)=>{const r=Pn(e,o);return r==null?`${Dt.bankRoutingNumber} ${_.emptyValue}
|
|
262
|
-
${Dt.bankAccountNumber} ${_.emptyValue}`:`${Dt.bankRoutingNumber} ${r.bankRoutingNumberAch??_.emptyValue}, ${r.bankName??_.emptyValue}
|
|
263
|
-
${Dt.bankAccountNumber} ${r.bankAccountNumber??_.emptyValue}`},Pn=(e,o)=>e.find(r=>r.bankAccountId===o),Ln=(e,o)=>{const r=Pn(e,o);return r==null?_.selectBankAccount:r.bankAccountName?r.bankAccountName:r.maskedAccountNumber?r.maskedAccountNumber:r.bankName&&r.bankAccountNumber?`${r.bankName} ${_.accountNameConnector}${r.bankAccountNumber.slice(r.bankAccountNumber.length-4)}`:_.selectBankAccount},Ra=n(mi)`
|
|
264
|
-
color: ${e=>e.theme.colors.primary};
|
|
265
|
-
width: ${i.sp3};
|
|
266
|
-
height: ${i.sp3};
|
|
267
|
-
`,Aa=n(Oo)`
|
|
268
|
-
width: ${i.sp4};
|
|
269
|
-
height: ${i.sp4};
|
|
270
|
-
color: ${j.brandColorGoldDark};
|
|
271
|
-
`,za=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
|
-
`,Ba=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
|
-
`,Ma=n(Et)`
|
|
292
|
-
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
293
|
-
`,Fa=n.div`
|
|
294
|
-
width: 100%;
|
|
295
|
-
`,Ea=n(yi)`
|
|
296
|
-
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
297
|
-
`,Na=n.span`
|
|
298
|
-
color: ${e=>e.theme.colors.hero};
|
|
299
|
-
`,Wa=n(jo)`
|
|
300
|
-
letter-spacing: -0.02em;
|
|
301
|
-
color: ${e=>e.theme.colors.primary};
|
|
302
|
-
margin: ${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6};
|
|
303
|
-
`,Ua=n(Ft)`
|
|
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
|
-
`,_a=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
|
-
`,Va=n(bn)`
|
|
325
|
-
display: flex;
|
|
326
|
-
width: 176px;
|
|
327
|
-
color: ${e=>e.theme.colors.primary};
|
|
328
|
-
`,Ha=n(fn)`
|
|
329
|
-
display: flex;
|
|
330
|
-
width: calc(100% - 176px);
|
|
331
|
-
justify-content: flex-end;
|
|
332
|
-
color: ${e=>e.theme.colors.primary};
|
|
333
|
-
${e=>`${Pa.total.style(e.windowSize)}`};
|
|
334
|
-
`,qa=n.div`
|
|
335
|
-
padding-right: ${i.sp3};
|
|
336
|
-
height: 30px;
|
|
337
|
-
display: flex;
|
|
338
|
-
justify-content: flex-end;
|
|
339
|
-
`,Ka=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
|
-
`,Ga=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
|
-
`,Ya=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
|
-
`,Ni=n(Et)`
|
|
385
|
-
color: inherit;
|
|
386
|
-
`,Wi=n(wn)`
|
|
387
|
-
margin-right: ${i.sp2};
|
|
388
|
-
width: ${i.sp3};
|
|
389
|
-
height: ${i.sp3};
|
|
390
|
-
`,Za=n.div`
|
|
391
|
-
display: flex;
|
|
392
|
-
flex-direction: column;
|
|
393
|
-
width: ${e=>E.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
394
|
-
`,Xa=n.div`
|
|
395
|
-
display: flex;
|
|
396
|
-
width: 100%;
|
|
397
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
398
|
-
`,Ja=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
|
-
`,er={total:new gi("largeMedium","h6Medium")},J={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=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,tr=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:c,showSkipAutoFill:p,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,totalAmount:v,defaultCurrency:f,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:w,companyMileageConfigInfo:s,analytics:y,reimbursementId:$,currencyConversionStatus:P,setShowSkipAutoFill:I,setShowBankAccountPage:L,removeDuplicateReimbursementForLine:q,onReceiptsUpload:R,setCurrentLineIdForUpload:T,onDuplicateLineClick:B,setUploadedReceiptPayload:te,removeFileFromLine:ne,onReplaceClick:oe,updateInvoiceUploadFetchState:Y,clearTentativeNameForLine:K,onDeleteBankAccount:F,uncategorizedAccounts:Z,isSignedInUserReimbursementCreator:V,duplicateLineByLineId:z,showTotalAmountLoader:ae,scrollContainerRef:le})=>{const{control:U,formState:{errors:ce}}=nt(),{fields:Ee,append:ue,remove:ge}=fo({name:fi,control:U}),se=Ee,De=S.useRef(null),je=N=>{setTimeout(()=>{ge(N)})},{tentativeMerchantNameByLineId:Oe,remiStage:me,remiStatus:Pe}=e,pe=!V||me==="pending_approval"&&Pe!=="rejected"&&o||me==="pending_approval"&&Pe==="rejected",ve=pe?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:k,Ge=ve.map(N=>N.bankAccountId),h=Re(),ee=J.largeLabelWidth.value(h),ot=e.whatForSection.reportTitle,at=e.accountList.accounts,Ne=e.accountsHierarchyList,Le=e.classHierarchyList,Ye=e.classList.classes,Ae=e.merchantList.merchants,He=e.addRemiAutoFieldsByLineId,qe=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(N=>Number(N)),0),Ze=()=>{const N=se[se.length-1],we=Rn(se.length,Number(N.lineId)>qe?String(Number(N.lineId)+1):String(qe+1),Ne,Le,Ae,f,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{ue(we,{shouldFocus:!1})}),T(Number(we.lineId)),I(!0),setTimeout(()=>zi(De.current,le?.current),50)},[Xe,de]=S.useState({}),rt=S.useCallback(N=>{const we=Xe[`L${N}`];we!=null&&zi(we,le?.current)},[Xe,le]),lt=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,X=e.reimbursementInfo?.paymentDate!=null?it(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,ze=e.reimbursementInfo?.expectedDepositDate??X;return t.jsxs(ar,{windowSize:h,showSkipAutoFill:p,children:[se.map((N,we)=>t.jsx(La,{removeDuplicateReimbursementForLine:q,onDuplicateLineClick:B,scrollToSection:rt,setRefByLineId:de,duplicateLineByLineId:z,reimbursementId:$,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:Z,progressSectionObj:lt,createDate:e.createTime,paymentDate:ze,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:se.length-1===we||we===0,index:we,reimbursementSectionRef:De,remiStage:me,remiStatus:Pe,authParams:r,file:N.file,uploadInvoiceEndPoint:c,showSkipAutoFill:p,lineData:N,currencyConversionState:P[N.lineId],recommendationFetchState:e.lineDetailSection[N.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:T,setUploadedReceiptPayload:te,onReplaceClick:oe,onReceiptsUpload:R,removeFileFromLine:ne,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,reportTitle:ot,accountList:at,classList:Ye,merchantList:Ae,autoFieldsByLineId:He,onRemoveReimbursement:je,onAddReimbursement:Ze,totalAmount:v,showTotalAmountLoader:ae,hasDuplicateLine:l,totalNumberOfLines:se.length,updateInvoiceUploadFetchState:Y,clearTentativeNameForLine:K,tentativeMerchantName:Oe[N.lineId],companyMileageConfigInfo:s,defaultCurrency:f,setShowBankAccountPage:L,paymentTo:e.paymentTo,bankAccounts:ve,onDeleteBankAccount:F,analytics:y,fileRequiredLineIds:w,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:pe,accountsHierarchyList:Ne,classHierarchyList:Le,isSignedInUserReimbursementCreator:V},N.lineId)),se.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(Jt,{children:[h!=="small"?t.jsx(Zt,{windowSize:h}):null,t.jsx(Xt,{windowSize:h,children:t.jsxs(rr,{windowSize:h,children:[t.jsx(lr,{children:et.total}),ae?t.jsx(dr,{windowSize:h,children:t.jsx(cr,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(hn,{amount:Cn(v,Ri.currencyCode,Ri.currencySymbol),integerStyles:Rt.h6Regular.cssObject,decimalStyles:Rt.standardRegular.cssObject})]})})]}),t.jsxs(Jt,{children:[h!=="small"?t.jsx(Zt,{windowSize:h}):null,t.jsx(Xt,{windowSize:h,children:t.jsxs(ur,{windowSize:h,onClick:()=>{pe===!1&&Ze()},isDisabled:pe,"data-testid":H("add-reimbursement-container"),children:[t.jsx(_i,{}),t.jsx(Ui,{children:et.addReimbursement})]})})]}),t.jsxs(Jt,{children:[h!=="small"?t.jsx(Zt,{windowSize:h}):null,V?t.jsxs(Xt,{windowSize:h,children:[t.jsx(sr,{windowSize:h,children:et.receivePaymentTo}),t.jsx(or,{windowSize:h,shouldDisplay:ve.length>0,children:t.jsx(gn,{label:{label:et.yourBankAccount,width:ee},style:{width:"auto"},singleSelectField:{singleSelect:{name:bt,placeholder:tt(et.yourBankAccount),showValueEyeIcon:!pe,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:F,getTooltipInfo:N=>On(ve,N),onClickCreateBankAccount:()=>L(!0),getLabelForId:N=>Ln(ve,N),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:pe?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:Ge},registerOptions:{required:!0,validate:N=>!!N.selectedOption}},isFunctional:!0})}),t.jsxs(mr,{shouldDisplay:ve.length===0,windowSize:h,onClick:()=>{pe===!1&&L(!0)},hasError:Te(ce,bt),isDisabled:pe,"data-testid":H("remi-add-bank-account-container"),children:[t.jsx(_i,{}),t.jsx(Ui,{children:et.addBankAccount})]})]}):null]})]})]})},Rn=(e,o,r,c,p,C,m,v)=>{const f=ir(r,c,p,C,m,v);return{lineIndex:e,lineId:o,reimbursementType:et.outOfPocketKey,file:void 0,outOfPocket:f,mileage:nr(c,C,v)}},ir=(e,o,r,c,p,C)=>({transactionDate:void 0,class:{allOptions:Ve(Ke(o,[])),selectedOption:C},account:{allOptions:Ve(Bt(e,[])),selectedOption:void 0},amount:{amount:0,currencyCode:c.currencyCode,currencySymbol:c.currencySymbol,currency:{allOptions:p.map(m=>({label:`${m.currencyCode} - ${m.currency}`,value:m.currencyCode,countryCode:ci(m.countryCode)})),selectedOption:c.currencyCode??fe.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(m=>m.id).filter(m=>!!m),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),nr=(e,o,r)=>({transactionDate:void 0,class:{allOptions:Ve(Ke(e,[])),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),or=n.div`
|
|
411
|
-
margin-left: ${e=>J.leftMargin.valuePx(e.windowSize)};
|
|
412
|
-
margin-right: ${e=>J.rightMargin.valuePx(e.windowSize)};
|
|
413
|
-
margin-bottom: ${e=>J.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
|
-
`,Zt=n.div`
|
|
419
|
-
width: ${e=>e.windowSize==="small"?"100%":"42%"};
|
|
420
|
-
`,Xt=n.div`
|
|
421
|
-
width: ${e=>e.windowSize==="small"?"100%":"58%"};
|
|
422
|
-
`,ar=n.div`
|
|
423
|
-
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
424
|
-
flex-direction: column;
|
|
425
|
-
margin-top: ${e=>J.marginTop.valuePx(e.windowSize)};
|
|
426
|
-
`,rr=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=>J.totalMarginBottom.valuePx(e.windowSize)};
|
|
436
|
-
margin-left: ${e=>J.leftMargin.valuePx(e.windowSize)};
|
|
437
|
-
margin-right: ${e=>J.rightMargin.valuePx(e.windowSize)};
|
|
438
|
-
margin-bottom: ${e=>J.totalMarginBottom.valuePx(e.windowSize)};
|
|
439
|
-
`,lr=n(bn)`
|
|
440
|
-
display: flex;
|
|
441
|
-
width: 176px;
|
|
442
|
-
color: ${e=>e.theme.colors.primary};
|
|
443
|
-
`,sr=n(Ft)`
|
|
444
|
-
color: ${e=>e.theme.colors.primary};
|
|
445
|
-
margin-top: ${e=>J.paymentToMarginTop.valuePx(e.windowSize)};
|
|
446
|
-
margin-bottom: ${e=>J.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
447
|
-
margin-left: ${e=>J.leftMargin.valuePx(e.windowSize)};
|
|
448
|
-
margin-right: ${e=>J.rightMargin.valuePx(e.windowSize)};
|
|
449
|
-
`,dr=n(fn)`
|
|
450
|
-
display: flex;
|
|
451
|
-
width: calc(100% - 176px);
|
|
452
|
-
justify-content: flex-end;
|
|
453
|
-
color: ${e=>e.theme.colors.primary};
|
|
454
|
-
${e=>`${er.total.style(e.windowSize)}`};
|
|
455
|
-
`,cr=n.div`
|
|
456
|
-
padding-right: ${i.sp3};
|
|
457
|
-
height: 30px;
|
|
458
|
-
display: flex;
|
|
459
|
-
justify-content: flex-end;
|
|
460
|
-
`,ur=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=>J.totalMarginBottom.valuePx(e.windowSize)};
|
|
477
|
-
margin-left: ${e=>J.leftMargin.valuePx(e.windowSize)};
|
|
478
|
-
margin-right: ${e=>J.rightMargin.valuePx(e.windowSize)};
|
|
479
|
-
margin-bottom: ${e=>J.marginBottom.valuePx(e.windowSize)};
|
|
480
|
-
`,mr=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=>J.leftMargin.valuePx(e.windowSize)};
|
|
496
|
-
margin-right: ${e=>J.rightMargin.valuePx(e.windowSize)};
|
|
497
|
-
margin-bottom: ${e=>J.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
498
|
-
`,Ui=n(Et)`
|
|
499
|
-
color: inherit;
|
|
500
|
-
`,_i=n(wn)`
|
|
501
|
-
margin-right: ${i.sp2};
|
|
502
|
-
width: ${i.sp3};
|
|
503
|
-
height: ${i.sp3};
|
|
504
|
-
`,Jt=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])},Vi="userBankAccountPage",Lt="bankAccountSection",pr=e=>({[Lt]:{bankRoutingNumber:e?.bankRoutingNumber,bankName:e?.bankName,bankAccountNumber:e?.bankAccountNumber,confirmedBankAccountNumber:e?.confirmedBankAccountNumber,bankAccountName:e?.bankAccountName}}),Hi=e=>`${e}_form`,hr=({bankAccountCreationState:e,setShowBankAccountPage:o,plaidConnectionDetails:r,onFetchLinkTokenClick:c,onEstablishConnectionClick:p,bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,isDisabled:v,onSaveHandler:f,onUserBankDetailsUpdated:l,onFetchBankName:k,onBackClick:w})=>{const s=ft(),y=Re(),$=an({mode:"onBlur",reValidateMode:"onChange",defaultValues:S.useMemo(()=>pr(C),[C])}),P=S.useCallback(K=>{p?.(K),w()},[w,p]),I=r.link_account_no_microdeposit,{open:L}=xo({token:I.linkToken??null,onSuccess:P});S.useEffect(()=>{(it(new Date().toISOString()).isAfter(I.expiration)||I.linkToken==null)&&c?.("link_account_no_microdeposit")},[]);const[q,R]=S.useState(!1),T=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,B=fe.getLocalizedStrings().common.footer,te={onOkClick:()=>{R(!1),$.reset(),w()},onCancelClick:()=>{R(!1)}},ne=async(K,F)=>{const Z=F[Lt].bankRoutingNumber;l(F),K===`${Lt}.bankRoutingNumber`&&Z?.length===9&&To.test(Z)===!0&&k?.(Z)};S.useEffect(()=>{const K=$.watch((F,{name:Z})=>{Z!=null&&F!=null&&So(()=>ne(Z,F))});return()=>{K.unsubscribe()}}),S.useEffect(()=>{e?.fetchState==="Completed"&&w()},[e?.fetchState,w,o]);const oe=$.handleSubmit(K=>{m.fetchState!=="In-Progress"&&f()}),Y=s.mode==="light"?new ji(s.colors.brandColorJadeLight):new ji(s.colors.brandColorJadeDark);return t.jsxs(gr,{children:[t.jsxs($r,{windowSize:y,children:[q===!0?t.jsx(di,{titleComponent:t.jsx(dn,{children:T.discardTitle}),descriptionComponent:t.jsx(sn,{children:T.discardDescription}),primaryButtonText:T.buttons.delete,secondaryButtonText:T.buttons.cancel,action:te}):null,t.jsx(Vo,{header:T.addBankAccount,isDirty:$.formState.isDirty,onBackClick:w,setShowConfirmationPopup:R}),t.jsx(yr,{}),t.jsxs(vr,{size:y,children:[t.jsx($o,{onClick:()=>{$.reset(),L()},title:T.connectYourBank,subTitle:T.loginToBank,header:T.setupAchPayments,icon:{element:t.jsx(vo,{width:Fe.iconWidthHeight.valuePx(y),height:Fe.iconWidthHeight.valuePx(y)}),color:Y},style:{width:"unset",rowGap:y==="small"?i.sp2:void 0}}),t.jsxs(br,{windowSize:y,children:[t.jsx(fr,{}),t.jsx(xr,{children:t.jsx(Sr,{children:T.or})})]}),t.jsx(wr,{windowSize:y,children:T.saveAccountManually})]}),t.jsx(Cr,{size:y,children:t.jsx(ln,{...$,children:t.jsxs("form",{id:Hi(Vi),onSubmit:oe,children:[e?.fetchState==="Error"&&e.error?.code===409?t.jsx(Ho,{warningText:T.accountExistWarning}):null,t.jsx(_o,{bankAccountToCreate:C,fetchBankNameByRoutingStatus:m,sectionId:Lt})]})})})]}),t.jsx(un,{formId:Hi(Vi),primaryBtn:{label:T.saveAccount,isLoading:e.fetchState==="In-Progress",style:{width:Fe.buttonWidth.value(y)},isDisabled:v!=null},cancelBtn:{label:B.cancel,style:{width:Fe.buttonWidth.value(y)},shouldResetOnCancel:!1,onClick:()=>{$.formState.isDirty?R(!0):(R(!1),$.reset(),w())}}})]})},gr=n.div`
|
|
508
|
-
display: flex;
|
|
509
|
-
flex-direction: column;
|
|
510
|
-
width: 100%;
|
|
511
|
-
height: 100%;
|
|
512
|
-
`,yr=n.div`
|
|
513
|
-
margin: ${i.sp2} 0;
|
|
514
|
-
position: relative;
|
|
515
|
-
`,br=n.div`
|
|
516
|
-
margin: ${e=>Fe.orSeperatorTopBottomMargin.valuePx(e.windowSize)} 0;
|
|
517
|
-
position: relative;
|
|
518
|
-
`,fr=n.div`
|
|
519
|
-
background: ${e=>e.theme.colors.grey2};
|
|
520
|
-
height: 1px;
|
|
521
|
-
`,wr=n(Do)`
|
|
522
|
-
color: ${e=>e.theme.colors.primary};
|
|
523
|
-
margin-bottom: ${e=>Fe.subTitleMarginbottom.valuePx(e.windowSize)};
|
|
524
|
-
`,xr=n.div`
|
|
525
|
-
display: flex;
|
|
526
|
-
justify-content: center;
|
|
527
|
-
`,Sr=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
|
-
`,$r=n.div`
|
|
540
|
-
display: flex;
|
|
541
|
-
flex-direction: column;
|
|
542
|
-
flex-grow: 1;
|
|
543
|
-
`,vr=n.div`
|
|
544
|
-
padding-left: ${e=>Fe.paddingLeft.valuePx(e.size)};
|
|
545
|
-
padding-right: ${e=>Fe.paddingRight.valuePx(e.size)};
|
|
546
|
-
`,Cr=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
|
-
`,Ie={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}=fe.getLocalizedStrings().common,be=fe.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,Ki=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(Yi,{});case"In-Progress":return t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(An,{});default:return t.jsx(Yi,{})}},kr=e=>{switch(e){case"Not-Started":return be.detectDuplicates;case"In-Progress":return be.detectingDuplicates;case"Completed":return be.noDuplicatesFound;default:return be.detectDuplicates}},Ir=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:c,setShowDuplicatePopup:p,analytics:C,reimbursementId:m,submitReport:v,fetchDuplicateReimbursement:f,clearDuplicateReimbursementDetail:l,clearRemiSaveStatus:k})=>{const w=Re(),[s,y]=kt.useState(!0),$=li(e),P=li(o);kt.useEffect(()=>{setTimeout(()=>{s&&(y(!1),o==="Not-Started"&&f())},2e3)},[o,f,s]),kt.useEffect(()=>{$==="In-Progress"&&e==="Completed"&&(l(),p(!1))},[e,$,p,l]),kt.useEffect(()=>{P==="In-Progress"&&o==="Completed"&&!r&&v()},[P,o,r,v]);const I=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[I?t.jsx(Tr,{size:w}):null,t.jsx(di,{action:{onOkClick:()=>{I?(l(),e==="Error"&&k(),y(!0)):(C?.trackReimbursementReviewDuplicateReportReimbursement(c,m),p(!1),ho())},onCancelClick:()=>{I?(l(),e==="Error"&&k(),p(!1)):(C?.trackReimbursementSubmitAnywayDuplicateReimbursement(c,m),v())}},shouldClickAway:I,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:I?qi.resubmit:be.primaryButtonText,secondaryButtonText:I?qi.cancel:be.secondaryButtonText,primaryButtonWidth:I?Ie.cancelButtonWidth.value(w):Ie.submitButtonWidth.value(w),secondaryButtonWidth:I?Ie.cancelButtonWidth.value(w):Ie.submitButtonWidth.value(w),descriptionComponent:t.jsx(Or,{size:w,children:t.jsxs(Dr,{hasDuplicate:r,duplicateReimbursementStatus:o,children:[t.jsxs(ei,{isDisabled:!1,isSuccess:!s,children:[s?t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(An,{}),t.jsx(Qt,{isDisabled:!1,children:s?be.reviewingExpenses:be.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(Xi,{size:w,children:[t.jsx(Gi,{}),t.jsx(Zi,{children:o==="Error"?be.failedToDetect:`${c} ${be.duplicateExpensesFound}`})]}):t.jsxs(ei,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&c===0,children:[t.jsx(Ki,{fetchState:o}),t.jsx(Qt,{isDisabled:o==="Not-Started",children:kr(o)})]}),e==="Error"?t.jsxs(Xi,{size:w,children:[t.jsx(Gi,{}),t.jsx(Zi,{children:be.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(ei,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(Ki,{fetchState:e}),t.jsx(Qt,{isDisabled:e==="Not-Started",children:e==="Not-Started"?be.submitReport:be.submittingReport})]})]})}),titleComponent:t.jsx(jr,{size:w,children:be.title}),showFooter:r||I,containerStyle:{width:Ie.containerWidth.value(w),maxWidth:"unset"}})]})},Tr=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=>Ie.styledCloseIconRight.valuePx(e.size)};
|
|
557
|
-
z-index: 11;
|
|
558
|
-
cursor: pointer;
|
|
559
|
-
&:hover {
|
|
560
|
-
color: ${e=>e.theme.colors.primary};
|
|
561
|
-
}
|
|
562
|
-
`,Gi=n(ko)`
|
|
563
|
-
width: ${i.sp4};
|
|
564
|
-
height: ${i.sp4};
|
|
565
|
-
min-width: ${i.sp4};
|
|
566
|
-
color: ${j.brandColorGoldDark};
|
|
567
|
-
`,Yi=n(qo)`
|
|
568
|
-
width: ${i.sp3};
|
|
569
|
-
height: ${i.sp3};
|
|
570
|
-
min-width: ${i.sp3};
|
|
571
|
-
color: ${e=>e.theme.colors.grey3};
|
|
572
|
-
`,Qt=n.div`
|
|
573
|
-
color: ${e=>e.isDisabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
574
|
-
text-align: left;
|
|
575
|
-
`,Zi=n.div`
|
|
576
|
-
color: ${j.brandColorGoldDark};
|
|
577
|
-
`,ei=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
|
-
`,Dr=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=>Ie.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
|
-
`,jr=n(ui)`
|
|
600
|
-
margin-top: ${e=>Ie.confirmationPopUpTitleMarginTop.valuePx(e.size)};
|
|
601
|
-
padding-left: ${e=>Ie.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
602
|
-
padding-right: ${e=>Ie.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
|
-
`,Or=n(yn)`
|
|
607
|
-
color: ${e=>e.theme.colors.hero};
|
|
608
|
-
padding-left: ${e=>Ie.confirmationPopUpTitlePaddingLeftRight.valuePx(e.size)};
|
|
609
|
-
padding-right: ${e=>Ie.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
|
-
`,An=n(Co)`
|
|
615
|
-
width: ${i.sp4};
|
|
616
|
-
height: ${i.sp4};
|
|
617
|
-
min-width: ${i.sp4};
|
|
618
|
-
color: ${j.success};
|
|
619
|
-
`,Q={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:Ji}},common:{currency:{currencyCode:We,currencySymbol:Ot},texts:{comments:Pr},strings:{empty:Lr}},collaboration:{threads:{placeholder:{addANewComment:Rr,replyAComment:Ar},tooltip:{resolveComment:zr,unResolveComment:Br}}},dateFormat:Qi}=fe.getLocalizedStrings(),en="editReimbursementDetailPage",tn=e=>`${e}_form`,Mr=(e,o,r,c,p,C,m,v,f)=>{const l=e.outOfPocket,k=e.mileage,w=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??b.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??m.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??m.currencySymbol},outOfPocket:{recommendedAccount:l.recommendedAccount,isCategoryUpdateSelected:l.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:l.isCategoryFirstTimeAutofilled??!1,retainedAccount:l.retainedAccount,isRetainedCategorySelected:l.isRetainedCategorySelected??!1,recommendations:s??[],transactionDate:l?.transactionDate?.toDate()??void 0,class:{allOptions:Ve(Ke(r,[])),selectedOption:l?.lineDetail?.class?.classId??f},account:{allOptions:Ve(Bt(o,s)),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??m.currencyCode,currencySymbol:l?.currencySymbol??m.currencySymbol,currency:{allOptions:v.map(y=>({label:`${y.currencyCode} - ${y.currency}`,value:y.currencyCode,countryCode:ci(y.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??We}},memo:l?.description??void 0,merchant:{allOptions:c.map(y=>y.id).filter(y=>!!y),selectedOption:w?.id?w?.id:w?.name?w?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:Ve(Ke(r,[])),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??m.currencyCode,currencySymbol:k?.currencySymbol??m.currencySymbol},memo:k?.description}}},ti=(e,o,r)=>{const c=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&c.push(Mr(p,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)),{[zt]:{reportTitle:e.whatForSection.reportTitle},[fi]:c,[bt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},ii=(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!==We&&c.homeCurrencyConversions?.amount!==c?.outOfPocket?.amount?c.homeCurrencyConversions?.amount??0:c?.outOfPocket?.amount??0);return Object.values(e).reduce((c,p)=>c+r(p),0)},ni=(e,o,r,c,p,C,m,v)=>{const f={};return e.lineInfo.forEach(l=>{const k=v.find(P=>P.classId===l.mileage.class.selectedOption),w=m.find(P=>P.qboId===l.outOfPocket.account.selectedOption||P.accountId===l.outOfPocket.account.selectedOption),s=v.find(P=>P.classId===l.outOfPocket.class.selectedOption),y=o.find(P=>P.id===l.outOfPocket.merchant.selectedOption),$=C.find(P=>P.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??$,currencySymbol:l.mileage.amount?.currencySymbol??$,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:w},transactionDate:l.outOfPocket.transactionDate!=null?it(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??$,currencySymbol:$,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:y?.id??"",name:y?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:f,totalAmount:{amount:c,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},El=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:c,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:v,reimbursementId:f,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:w,bankAccounts:s,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:$,bankAccountToCreate:P,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:L,onFetchBankName:q,onSaveBankAccount:R,fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:B,clearRemiSaveStatus:te,removeDuplicateReimbursementForLine:ne,onDuplicateLineClick:oe,onExistingMerchantChange:Y,onNewMerchantChange:K,onReceiptsUpload:F,saveRemiDetails:Z,submitRemiDetails:V,discardReimbursementDetailsFromLocalStore:z,onReimbursementDetailsChanged:ae,updateReimbursementType:le,onHomeCurrencyConversionUpdate:U,redirectToReimbursementListScreen:ce,redirectToReimbursementDetailScreen:Ee,deleteReimbursement:ue,removeFileFromLine:ge,onZeniLogoClick:se,onAmountChanged:De,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:Oe,onAddNewRule:me,onFetchLinkTokenClick:Pe,onEstablishConnectionClick:pe,deleteBankAccount:ve,onBackClickFromBankAccountPage:Ge,initialOpenThreadRequest:h})=>{const ee=S.useRef(null),ot=S.useRef(null),at=li(e.uploadStatus),Ne=ft(),Le=wt(),[Ye,Ae]=S.useState(!1),[He,qe]=S.useState(!1),[Ze,Xe]=S.useState("save"),[de,rt]=S.useState(ii(e.lineDetailSection,e.currencyConversionStatus)),[lt,X]=S.useState(!1),[ze,N]=S.useState(null),[we,st]=S.useState(!1),St=`dashboard_${Le.currentTenant?.companyId}`,O=an({mode:"all",reValidateMode:"onChange",defaultValues:S.useMemo(()=>ti(e,r,s),[e,r,s]),values:S.useMemo(()=>ti(e,r,s),[e,r,s]),resetOptions:{keepErrors:!0},shouldFocusError:!0}),{isDirty:zn,dirtyFields:Bn}=O.formState,Mn=async(g,D)=>{const{lineInfo:u}=D,x=Number(g.split(".")[1]);if(g.includes("reportTitle")||g.includes("memo"))return;if(g.includes("reimbursementType")){const M=u[x].mileage,W=u[x].outOfPocket;u[x]={...u[x],outOfPocket:{transactionDate:W.transactionDate??void 0,class:{allOptions:W.class.allOptions??Ve(Ke(e.classHierarchyList,[])),selectedOption:W.class.selectedOption??void 0},account:{allOptions:W.account.allOptions??Ve(Bt(e.accountsHierarchyList,[])),selectedOption:W.account.selectedOption??void 0},amount:W.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(xe=>({label:`${xe.currencyCode} - ${xe.currency}`,value:xe.currencyCode,countryCode:ci(xe.countryCode)})),selectedOption:r.currencyCode??We}},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??Ve(Ke(e.classHierarchyList,[])),selectedOption:M.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:M.distanceInMiles,amount:{amount:M?.amount?.amount??0,currencyCode:M?.amount?.currencyCode??We,currencySymbol:M?.amount?.currencySymbol??Ot},memo:M.memo??void 0}}}else if(g.includes("mileage.distanceInMiles")){const{distanceInMiles:M}=u[x].mileage,W=c?.mileageUnitAmount??0;u[x].mileage={...u[x].mileage,amount:{amount:M!=null?M*W:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(g.includes("outOfPocket.amount")&&u[x].lineId){const M=u[x].outOfPocket.amount,W=e.allCurrencies.find(xe=>xe.currencyCode===M?.currency.selectedOption)?.currencySymbol;if(M?.currencyCode!==M?.currency.selectedOption){const xe=M?.currency?.allOptions||[];u[x].outOfPocket.amount={currency:{allOptions:xe,selectedOption:M?.currency?.selectedOption},amount:u[x].outOfPocket?.amount?.amount??0,currencyCode:M?.currency.selectedOption??We,currencySymbol:W??Ot}}if(M?.currency.selectedOption!==We)X(!0),Hn(u[x].lineId,We);else{const xe={};u.forEach(Yt=>{xe[Yt.lineId]={lineId:Yt.lineId,homeCurrencyConversions:Yt.homeCurrencyConversions}}),u[x].homeCurrencyConversions={amount:M.amount??0,currencyCode:M?.currency.selectedOption??We,currencySymbol:W??Ot};const ki=ii(xe,e.currencyConversionStatus);de!==ki&&rt(ki)}}else if(g.includes("outOfPocket.isRetainedCategorySelected"))u[x].outOfPocket.isRetainedCategorySelected===!0&&(u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.retainedAccount?.qboId);else if(g.includes("outOfPocket.isCategoryUpdateSelected"))if(u[x].outOfPocket.isCategoryUpdateSelected===!0)u[x].outOfPocket.account.selectedOption=u[x].outOfPocket.recommendedAccount?.qboId,u[x].outOfPocket.isRetainedCategorySelected=!1;else{const M=u[x].lineId,W=e.editRemiInitialDetails.lineDetailSection[M]?.lineDetail?.account?.qboId;u[x].outOfPocket.account.selectedOption=W,u[x].outOfPocket.isRetainedCategorySelected=!1}else g.includes("outOfPocket.account")&&(u[x].outOfPocket.recommendations.length>0&&(u[x].outOfPocket.recommendedAccount=u[x].outOfPocket.recommendations[0].account),u[x].outOfPocket.recommendedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.recommendedAccount?.qboId?u[x].outOfPocket.isCategoryUpdateSelected=!0:u[x].outOfPocket.isCategoryUpdateSelected=!1,u[x].outOfPocket.retainedAccount?.qboId!=null&&u[x].outOfPocket.account.selectedOption===u[x].outOfPocket.retainedAccount?.qboId?u[x].outOfPocket.isRetainedCategorySelected=!0:u[x].outOfPocket.isRetainedCategorySelected=!1,u[x].outOfPocket.isCategoryFirstTimeAutofilled=!1);const Ct=ni({...D,lineInfo:u},e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(ae?.(Ct),g.includes("outOfPocket.merchant")){const M=u[x].lineId,W=u[x].outOfPocket.merchant.selectedOption??"";u[x].outOfPocket.merchant.allOptions.find(xe=>xe===W)!=null?Y(W,M):K(W,M)}},wi=S.useMemo(()=>Ii((g,D)=>Mn(g,D),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);S.useEffect(()=>{const g=O.watch((D,{name:u})=>{u!=null&&D!=null&&wi(u,D)});return()=>{g.unsubscribe()}},[wi,O]),S.useEffect(()=>{const g=Eo(Object.values(e.currencyConversionStatus)),D=g.fetchState==="In-Progress"||g.fetchState==="Error";X(D)},[e.currencyConversionStatus]),S.useEffect(()=>{for(const D in e.currencyConversionStatus){const u=e.lineDetailSection[D],x=e.lineDetailSection[D];e.currencyConversionStatus[D].fetchState==="Completed"&&x!=null&&u.type!==b.mileageKey&&!rn(u?.homeCurrencyConversions,x.homeCurrencyConversions)&&U({amount:u?.homeCurrencyConversions?.amount??0,currencyCode:u?.homeCurrencyConversions?.currencyCode??We,currencySymbol:u?.homeCurrencyConversions?.currencySymbol??Ot},D,f)}const g=ii(e.lineDetailSection,e.currencyConversionStatus);de!==g&&rt(g)},[e.currencyConversionStatus,e.lineDetailSection]),S.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(z(f),ce?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,f,z,ce]);const A=Re(),[Be,ht]=S.useState(f==null),[gt,Fn]=S.useState(1),[En,Nt]=S.useState(!1),[Nn,Wn]=S.useState(""),[Wt,Un]=S.useState(null),[_n,dt]=S.useState(!1),[Vn,xi]=S.useState(!1),[Ut,_t]=S.useState([]),[ye,$t]=S.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Hn=S.useRef(Ii((g,D)=>De(g,D),500,{trailing:!0})).current;S.useEffect(()=>{at==="In-Progress"&&(e.uploadStatus==="Completed"?(O.reset(ti(e,r,s),{keepDefaultValues:!0}),Ae(!1),ht(!1)):e.uploadStatus==="Error"&&Ae(!1))},[at,e.uploadStatus,O,e,Ye,Ae,Be,r,s,v]),S.useEffect(()=>{e.uploadStatus==="In-Progress"&&Be===!1&&Ae(!0)},[e.uploadStatus,Ae,Be]);const Vt=e.remiStage==="draft"?b.newReimbursementTitle:b.editReimbursementTitle,qn={onOkClick:()=>{if(dt(!1),ye.primaryButtonText===b.buttons.discard)z(f),e.remiStage==="draft"?ce?.():Ee?.();else if(ye.primaryButtonText===b.buttons.delete)ye.title===b.deleteBankAccountTitle?ve?.(Nn):ue?.();else if(ye.primaryButtonText===b.buttons.yes&&Wt!=null){const g=Ut.filter(D=>D!==gt.toString());_t(g),F(Wt,gt,!0)}},onCancelClick:()=>{if(dt(!1),ye.secondaryButtonText===b.buttons.no){const g=Ut.filter(D=>D!==gt.toString());_t(g),F(Wt,gt,!1)}}},Si=()=>{zn||bo(Bn)?($t({title:b.discardTitle,description:b.discardDescription,primaryButtonText:b.buttons.discard,secondaryButtonText:b.buttons.cancel}),dt(!0)):(z(f),ce?.())},Kn=()=>{$t({title:e.remiStage==="draft"?b.deleteDraftTitle:b.deleteReportTitle,description:b.deleteAlertDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),dt(!0)},Gn=g=>{Wn(g),$t({title:b.deleteBankAccountTitle,description:b.deleteBankAccountDescription,primaryButtonText:b.buttons.delete,secondaryButtonText:b.buttons.cancel}),dt(!0)},Yn=()=>{$t({title:b.overwriteTitle,description:b.overwriteDescription,primaryButtonText:b.buttons.yes,secondaryButtonText:b.buttons.no}),dt(!0)},Zn=()=>{let g=!0;const D=[];return Object.values(e.lineDetailSection).forEach((u,x)=>{u.type===b.outOfPocketKey&&jn(u)>=75&&u.file==null&&(D.push(u.lineId),g=!1)}),_t(D),g},$i=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")Si();else{Xe("save");const g=O.getValues(),D=ni(g,e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);ae?.(D);const u=D.whatForSection?.reportTitle;u!=null&&u.length>0?Z(e.remiStatus==="rejected"?"pending_approval":"draft"):O.trigger(`${zt}.reportTitle`,{shouldFocus:!0})}};let Ht=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(g=>{g.length>0&&(Ht=!0)});let vi=[];if(e.remiId==null){const g=de??0;g>0&&(vi=e.approvalRules.allApprovalRules?.filter(D=>{const u=D.criteria[0].range;if(u.max!=null){if(u.min.amount<g&&u.max.amount>=g)return D}else if(u.min.amount<g)return D;return null}).map(D=>({...D,stepsWithStatus:D.steps.map(u=>({...u,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const Xn=g=>{const D=Zn();return O.handleSubmit(()=>{D&&(Xe("submit"),v?.trackReimbursementSubmitReimbursement(e.createTime?.format(Qi.analytics.MMMDashDDDashYYYYFormat)??bi().format(Qi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,de,f),B(),xi(!0))})(g)},Jn=()=>{const g=O.getValues(),D=ni(g,e.merchantList.merchants,r,de,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);ae?.(D),V()},Qn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,eo=e.reimbursementInfo?.paymentDate!=null?it(vn(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,to=e.reimbursementInfo?.expectedDepositDate??eo,io=f!=null&&e.remiStage==="draft",Ci=No(e.duplicateLineByLineId),qt=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ci>0,{requestToOpenThread:Kt,setRequestToOpenThread:vt,setOpenThread:Gt}=S.useContext(ao);S.useEffect(()=>{h?.threadId!=null&&h?.companyId!=null&&h?.entityType!=null&&vt(h)},[h,vt]);const{threads:yt,isLoading:Je}=ro({application:"dashboard",companyId:Le.currentTenant?.companyId,tab:"reimbursement",entityId:f,isGlobalComment:!1},"both",!1);S.useEffect(()=>{Kt?.threadId!=null&&yt.length>0&&!Je&&(Gt(Kt.threadId),vt(null))},[Kt,yt,Je,Gt,vt]);const no=S.useMemo(()=>f==null?[]:yt.filter(g=>g.resolved===!1&&!g.id.includes(lo)),[yt,f]).length,oo=(g,D)=>{Gt(D);const u=g.entityType.split("."),x=parseInt(u[2]);if(isNaN(x)){st(!1);return}const Ct=`${x+1}`,M=e.lineDetailSection[x+1].type;u.includes(b.mileageKey)&&M===b.outOfPocketKey?le(Ai(b.mileageKey),Ct,f):u.includes(b.outOfPocketKey)&&M===b.mileageKey&&le(Ai(b.outOfPocketKey),Ct,f),st(!1)};return t.jsx(Er,{ref:ee,children:t.jsx(so,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:ot.current??null}},children:t.jsxs(ln,{...O,children:[t.jsx("form",{id:tn(en),onSubmit:g=>Xn(g),children:t.jsxs(hl,{windowSize:A,ref:ot,children:[_n?t.jsx(di,{titleComponent:t.jsx(dn,{children:ye.title}),descriptionComponent:t.jsx(sn,{children:ye.description}),primaryButtonText:ye.primaryButtonText,secondaryButtonText:ye.secondaryButtonText,action:qn,proceedButtonVariant:ye.title===b.deleteBankAccountTitle||ye.title===b.deleteDraftTitle||ye.title===b.deleteReportTitle||ye.title===b.discardTitle?"danger":"primary",isEditPopup:ye.title===b.deleteBankAccountTitle}):null,Vn?t.jsx(Ir,{reimbursementId:f,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:qt,numberOfDuplicateLines:Ci,setShowDuplicatePopup:xi,submitReport:Jn,fetchDuplicateReimbursement:T,clearDuplicateReimbursementDetail:B,clearRemiSaveStatus:te,analytics:v}):null,Ye?t.jsx(on,{windowSize:A}):null,Be?t.jsxs(on,{windowSize:A,"data-testid":H("skip-autofill-section"),children:[A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Xr,{children:t.jsx(ri,{partOfSkipAutoFill:!0,size:A,onClick:()=>ht(!1),"data-testid":H("close-invoice-upload"),children:t.jsx(ai,{withOverlay:!0,children:t.jsx(oi,{})})})}),t.jsx(Qr,{children:Vt})]}):null,t.jsx(kn,{showAutofill:Be,analytics:v,onSkipAutofill:()=>{v?.trackReimbursementSkipAutofill(),ht(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:Q.leftSectionWidth.valuePercentage(A),boxSizing:"border-box",backgroundColor:A==="small"?Ne.colors.grey4:"unset",padding:A==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:A==="small"?i.sp0:void 0},onInvoiceUpload:g=>F(g,gt,!0),dropFilePlaceholder:{upload:b.dropReceipt.upload,single:b.dropReceipt.single,or:b.dropReceipt.or,multiple:b.dropReceipt.multiple,receipts:b.dropReceipt.receipts},updateInvoiceUploadFetchState:je,showInfoText:!1,allowMultiFiles:Be,type:"reimbursement"}),A!=="small"?t.jsx(Jr,{children:t.jsx(ri,{partOfSkipAutoFill:!0,onClick:()=>ht(!1),"data-testid":H("close-invoice-upload"),children:t.jsx(ai,{withOverlay:!0,children:t.jsx(oi,{})})})}):null]}):null,t.jsxs(dl,{windowSize:A,"data-testid":H("edit-reimbursement-detail-page-nav-bar-container"),children:[A!=="small"?t.jsx(Ti,{style:{width:"42%"},"data-testid":H("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(cl,{"data-testid":H("zeni-logo-spend-management-reimbursement-detail-page"),onClick:se}),enableTitleOnScroll:!1,scrollableContent:ee,backgroundColor:Ne.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,A!=="small"?t.jsx(Nr,{}):null,t.jsx(Ti,{style:{width:Q.navBarWidth.valuePercentage(A)},"data-testid":H("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Vt,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:Be!=!0?t.jsxs(ul,{children:[C&&f!=null?t.jsxs(ml,{isDisabled:Je,"data-testid":H("remi-comment-button"),onClick:Je?()=>null:g=>{g.preventDefault(),g.stopPropagation(),N({roomId:St,companyId:Le.currentTenant?.companyId??"",companyName:Le.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:f}),st(!0),v?.trackCommentActivity("reimbursement","clicked",Le.currentTenant?.companyName??"",Le.controllersList.controllers.map(D=>uo(D)),void 0,void 0,"page icon")},children:[t.jsx(co,{count:Je?void 0:no,isLoading:Je,style:{left:"12px"}}),t.jsx(pl,{})]}):null,t.jsx(ri,{size:A,onClick:()=>Si(),"data-testid":H("close-nav-bar"),children:t.jsx(ai,{withOverlay:!1,children:t.jsx(oi,{})})})]}):null,enableTitleOnScroll:A!=="small",scrollThreshold:64,scrollableContent:ee,backgroundColor:Ne.colors.grey4})]}),A==="small"?t.jsxs(t.Fragment,{children:[t.jsx(sl,{children:Vt}),t.jsx(mo,{progressSectionObj:Qn,createDate:e.createTime,paymentDate:to,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:f!=null?!0:e.uploadStatus==="Completed"}),Ht&&t.jsxs(il,{children:[t.jsx(tl,{}),t.jsx(nl,{children:b.banner})]}),e.isProcessing?t.jsx(cn,{variant:"warning",style:{margin:A==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Ji.duplicateWarning.title,description:Ji.duplicateWarning.description}):qt?t.jsxs(ol,{size:A,children:[t.jsx(Vr,{}),t.jsxs(rl,{children:[t.jsx(al,{children:b.thereSeems}),t.jsx(ll,{children:b.pleaseFind})]})]}):null,t.jsx(Dn,{isReimbursementCommentingEnabled:C,sectionId:zt,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(tr,{onDuplicateLineClick:oe,reimbursementId:f,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:Be,setShowSkipAutoFill:ht,isReimbursementCommentingEnabled:C,isAutoFieldsExist:Ht,totalAmount:de,removeFileFromLine:ge,onReplaceClick:Yn,onReceiptsUpload:F,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Fn,setUploadedReceiptPayload:Un,updateInvoiceUploadFetchState:je,clearTentativeNameForLine:Oe,defaultCurrency:r,companyMileageConfigInfo:c,isUserAdmin:m,setShowBankAccountPage:Nt,bankAccounts:s,onDeleteBankAccount:Gn,analytics:v,fileRequiredLineIds:Ut,isSignedInUserReimbursementCreator:y,uncategorizedAccounts:$,showTotalAmountLoader:lt,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:qt,removeDuplicateReimbursementForLine:ne,scrollContainerRef:ee}),t.jsxs(gl,{showSkipAutoFill:Be,windowSize:A,children:[A!=="small"?t.jsx(nn,{}):null,t.jsx(yl,{windowSize:A,children:t.jsxs(bl,{windowSize:A,children:[e.remiId!==void 0&&t.jsx(Di,{amount:de??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:me,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&de!=null&&de>0?t.jsx(Di,{amount:de??0,activities:vi,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(fl,{}),t.jsxs(el,{showSkipAutoFill:Be,windowSize:A,children:[A!=="small"?t.jsx(nn,{}):null,t.jsx(Wr,{windowSize:A,onClick:g=>{g.stopPropagation(),He===!0&&qe(!1)},children:t.jsx(un,{formId:tn(en),separatorStyle:{marginRight:i.sp4},showCancel:y,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?A==="small"?b.buttons.discard:b.buttons.discardChanges:A==="small"?b.buttons.save:b.buttons.saveChanges,isLoading:Ze==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:$i,style:{width:Q.footerButtonWidth.value(A)},reverseSpinnerColor:!1},primaryBtn:{label:Fr(y,m,e,A),isDisabled:!y,style:{width:y?Q.footerButtonWidth.value(A):"auto"},type:y?"submit":"button",onClick:y?()=>null:$i,isLoading:!y&&Ze==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Ur,{children:t.jsxs(Gr,{windowSize:A,children:[He?t.jsx(mn,{onClickAway:()=>qe(!1),children:t.jsx(Kr,{windowSize:A,"data-testid":H("remi-other-actions-container"),children:t.jsx(Yr,{onClick:Kn,"data-testid":H("delete-report-action"),children:b.buttons.deleteReport})})}):null,t.jsx(qr,{windowSize:A,children:io===!0?t.jsx(Hr,{windowSize:A,"data-testid":H("more-details-button"),children:t.jsx(_r,{onClick:()=>qe(!He)})}):null})]})}),style:{minHeight:62}})})]}),C&&f!=null?t.jsx(Fo,{id:St,children:t.jsx(po,{isDrawerOpen:we,allowComposer:!0,drawerTitle:Pr,threads:yt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:ze?.companyId??Lr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Je,threadMetadata:ze?{companyName:ze.companyName,companyId:ze.companyId,entityId:ze.entityId,entityType:ze.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:Rr,replyComposerPlaceholder:Ar,threadResolve:zr,threadUnResolve:Br},onThreadClick:(g,D)=>oo(g,D),onCloseAllThreadsDrawer:()=>st(!1),drawerSectionStyle:{width:"400px",backgroundColor:Ne.colors.background}})}):null]})}),En?t.jsx(Zr,{windowSize:A,children:t.jsx(hr,{bankAccountCreationState:k,setShowBankAccountPage:Nt,plaidConnectionDetails:l,onFetchLinkTokenClick:Pe,onEstablishConnectionClick:pe,onSaveHandler:R,bankAccountToCreate:P,bankNameByRouting:w,fetchBankNameByRoutingStatus:I,onUserBankDetailsUpdated:L,onFetchBankName:q,onBackClick:()=>{Ge(),Nt(!1)}})}):null]})})})},Fr=(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,Er=n.div`
|
|
620
|
-
position: relative;
|
|
621
|
-
height: 100vh;
|
|
622
|
-
overflow-y: scroll;
|
|
623
|
-
`,Nr=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
|
-
`,Wr=n.div`
|
|
634
|
-
width: ${e=>Q.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
635
|
-
`,Ur=n.div`
|
|
636
|
-
display: flex;
|
|
637
|
-
justify-content: flex-end;
|
|
638
|
-
`,_r=n(wo)`
|
|
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
|
-
`,Vr=n(Mo)`
|
|
647
|
-
width: ${i.sp4};
|
|
648
|
-
height: ${i.sp4};
|
|
649
|
-
color: ${j.brandColorGoldDark};
|
|
650
|
-
`,Hr=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
|
-
`,qr=n.div`
|
|
659
|
-
display: flex;
|
|
660
|
-
justify-content: center;
|
|
661
|
-
align-items: center;
|
|
662
|
-
`,Kr=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=>Q.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=>Q.right.valuePx(e.windowSize)};
|
|
679
|
-
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.grey1} 3D`};
|
|
680
|
-
`,Gr=n.div`
|
|
681
|
-
width: 100%;
|
|
682
|
-
justify-content: flex-end;
|
|
683
|
-
position: ${e=>e.windowSize==="small"?"static":"relative"};
|
|
684
|
-
right: ${e=>Q.actionsContainerRight.valuePx(e.windowSize)};
|
|
685
|
-
height: 100%;
|
|
686
|
-
display: flex;
|
|
687
|
-
`,Yr=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
|
-
`,Zr=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=>Q.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
705
|
-
right: 0;
|
|
706
|
-
top: 0;
|
|
707
|
-
`,Xr=n.div`
|
|
708
|
-
background: ${e=>e.theme.colors.grey4};
|
|
709
|
-
height: 44px;
|
|
710
|
-
display: flex;
|
|
711
|
-
align-items: center;
|
|
712
|
-
justify-content: end;
|
|
713
|
-
`,Jr=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
|
-
`,el=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
|
-
`,nn=n.div`
|
|
726
|
-
width: 42%;
|
|
727
|
-
`,tl=n(mi)`
|
|
728
|
-
color: ${e=>e.theme.colors.primary};
|
|
729
|
-
width: ${i.sp3};
|
|
730
|
-
height: ${i.sp3};
|
|
731
|
-
`,il=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
|
-
`,nl=n.span`
|
|
740
|
-
color: ${e=>e.theme.colors.hero};
|
|
741
|
-
`,ol=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=>Q.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
748
|
-
margin-right: ${e=>Q.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
749
|
-
margin-bottom: ${e=>Q.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
750
|
-
margin-left: ${e=>Q.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
751
|
-
background-color: ${j.alertLight};
|
|
752
|
-
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
753
|
-
`,al=n(Et)`
|
|
754
|
-
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
755
|
-
`,rl=n.div`
|
|
756
|
-
width: 100%;
|
|
757
|
-
`,ll=n(yi)`
|
|
758
|
-
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
759
|
-
`,sl=n(ui)`
|
|
760
|
-
letter-spacing: -0.02em;
|
|
761
|
-
color: ${e=>e.theme.colors.primary};
|
|
762
|
-
margin: ${i.sp3};
|
|
763
|
-
`,on=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
|
-
`,dl=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
|
-
`,cl=n(go)`
|
|
782
|
-
display: flex;
|
|
783
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
784
|
-
cursor: pointer;
|
|
785
|
-
width: ${i.sp4};
|
|
786
|
-
height: ${i.sp4};
|
|
787
|
-
`,oi=n(pn)`
|
|
788
|
-
cursor: pointer;
|
|
789
|
-
width: ${i.sp4};
|
|
790
|
-
height: ${i.sp4};
|
|
791
|
-
float: right;
|
|
792
|
-
color: inherit;
|
|
793
|
-
`,ai=n.div`
|
|
794
|
-
color: ${e=>e.theme.colors.hero};
|
|
795
|
-
&:hover {
|
|
796
|
-
color: ${e=>e.withOverlay?j.primaryDark:e.theme.colors.primary};
|
|
797
|
-
}
|
|
798
|
-
`,ul=n.div`
|
|
799
|
-
margin-top: ${e=>Q.closeMarginTop.valuePx(e.windowSize)};
|
|
800
|
-
display: flex;
|
|
801
|
-
float: right;
|
|
802
|
-
`,ml=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
|
-
`,pl=n(yo)`
|
|
814
|
-
display: flex;
|
|
815
|
-
width: ${i.sp4};
|
|
816
|
-
height: ${i.sp4};
|
|
817
|
-
align-items: center;
|
|
818
|
-
justify-content: center;
|
|
819
|
-
`,ri=n.div`
|
|
820
|
-
margin-top: ${e=>e.partOfSkipAutoFill===!0?Q.closeMarginTop.valuePx(e.size):0};
|
|
821
|
-
margin-left: ${i.sp5};
|
|
822
|
-
margin-right: ${e=>e.partOfSkipAutoFill===!0?Q.closeMarginRight.valuePx(e.size):0};
|
|
823
|
-
`,hl=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
|
-
`,gl=n.div`
|
|
853
|
-
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
854
|
-
width: 100%;
|
|
855
|
-
margin-bottom: ${e=>Q.bottomMargin.valuePx(e.windowSize)};
|
|
856
|
-
`,yl=n.div`
|
|
857
|
-
width: ${e=>Q.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
858
|
-
`,bl=n.div`
|
|
859
|
-
margin-left: ${e=>Q.leftMargin.valuePx(e.windowSize)};
|
|
860
|
-
margin-right: ${e=>Q.rightMargin.valuePx(e.windowSize)};
|
|
861
|
-
`,fl=n.div`
|
|
862
|
-
display: flex;
|
|
863
|
-
flex-direction: column;
|
|
864
|
-
height: ${i.sp11};
|
|
865
|
-
`;export{El as default,tn as uniqueName};
|