@zeniai/web-cockpit-ui 1.14.75-dev → 1.14.76-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-CgSAnexf-B3A8op6h.js → ACHDetailsPage-Xx5xzGG6-TLkgYXDo.js} +1 -1
- package/dist/assets/{AIPerformancePage-C9EQ3p87-OJBktR4D.js → AIPerformancePage-CUXg59Hy-CQ1-rEhi.js} +24 -24
- package/dist/assets/{AccountInfoPage-C239tsDp-DRuutmdG.js → AccountInfoPage-BCsDFfVy-hrluJcll.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CgDFcQqY-CqasllNx.js → AccountInfoPageContent-Dc3zDc0L-zxWLzozl.js} +4 -4
- package/dist/assets/{AccountLockedInfoModal-CQzFFcuJ-Do66phz_.js → AccountLockedInfoModal-C9esWbYw-DmLSIkZF.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-xtmSIQ0k-Cx_Pu75e.js → AccountReconDetailsDrawerPage-zLLBfV9S-BNb08J_3.js} +4 -4
- package/dist/assets/{AccountRow-BrRxbza5-pSnSZur-.js → AccountRow-CjMOMc-1-x3Qeaa-E.js} +6 -6
- package/dist/assets/{AccountsPromoCardStack-CqXbhSj4-Dxz2-66c.js → AccountsPromoCardStack-DkqmFDos-CykT6dqn.js} +17 -17
- package/dist/assets/{AddAddressForCardDrawer-fgjjFlrb-j1U1vMZd.js → AddAddressForCardDrawer-D8Towl2b-BnpRCEKK.js} +1 -1
- package/dist/assets/{AddToWalletPage-DfB7hWI1-IQOFdx9h.js → AddToWalletPage-DPlpIxsE-B4bdwm1E.js} +15 -15
- package/dist/assets/{AgingReportsPage-DHYj512r-CC4JWVYi.js → AgingReportsPage-Bkw7sNWp-BamyEZIc.js} +5 -5
- package/dist/assets/{AllUserItems-DeSMFizX-DNdHjuWX.js → AllUserItems-DMlj0bT0-gvuqGIhf.js} +4 -4
- package/dist/assets/{ApAgingDetailPage-DU0hQxT3-DZWyZWni.js → ApAgingDetailPage-BLz4srnJ-Cc1Xbcy9.js} +2 -2
- package/dist/assets/{AppBasePage-BR-YhSR_-CzGzdBlR.js → AppBasePage-D-TkEHTb-DROxn97N.js} +5 -5
- package/dist/assets/{AppDrawerContent-B80zy-Gz-B39ZSWi1.js → AppDrawerContent-B_OcDS2l-DzddisDQ.js} +2 -2
- package/dist/assets/{ApprovalRulesSettingsPage-By648tCr-CQAcViTv.js → ApprovalRulesSettingsPage-CFLA9ZNm-DAP_H-up.js} +3 -3
- package/dist/assets/{ArAgingChart-TzANw6Zm-ud3qmxZt.js → ArAgingChart-GDCZoeS6-ejUvAmZP.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-C2rcOePe-DceP7UdC.js → ArAgingDetailPage-BpbaAaQd-BiEAKqhS.js} +2 -2
- package/dist/assets/{AttachmentView-jMWZdYNa-B4G6-utv.js → AttachmentView-C5nZKhTq-vO_X412a.js} +4 -4
- package/dist/assets/{BankAccountSection-SGI34h8u-BmPo8uGy.js → BankAccountSection-IncAN4Fp-_HbGSxHo.js} +3 -3
- package/dist/assets/{BankAccountWarningSection-BYhi53r4-4douKQRZ.js → BankAccountWarningSection-B5zw3yYg-D0pN9DqK.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-ChDwYCek-CV2qmOPT.js → BankConnectionsSettingsPage-C_B2Ap4v-CWKHwroD.js} +28 -28
- package/dist/assets/{BillDetailPage-CDcMpkQh-WKx-zUwY.js → BillDetailPage-ZwjUMPQZ-BsZDr1gg.js} +10 -10
- package/dist/assets/{BillPayApprovalRuleDetailPage-CEPY5Pk4-BbBRmkGK.js → BillPayApprovalRuleDetailPage-C253InxT-RvLtQlW3.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CL2A3R9R-lHKvJ4Ac.js → BillPayApprovalRulesPage-CA3FfPrr-qSqftFhb.js} +1 -1
- package/dist/assets/{BillPayPromoPage-B9Tz3jBR-C8UtwtS8.js → BillPayPromoPage-BKleb4US-pzvsBPOp.js} +4 -4
- package/dist/assets/{BillPaySetUpPage-Dt_bfrGH-BFJQWbSz.js → BillPaySetUpPage-DwK0lrbO-rQcYv7BW.js} +1 -1
- package/dist/assets/{BillingSettingsPage-DS50kMjn-x8sOi9VN.js → BillingSettingsPage-zBDcEj5D-BDTLKTvE.js} +5 -5
- package/dist/assets/{BillsBulkReviewDrawerPage-Btt7v1Mg-BawjVs5H.js → BillsBulkReviewDrawerPage-BjOYcTwa-Dv0CJOPA.js} +1 -1
- package/dist/assets/{BoxItem-BFUJgt2x-BC0-eR6w.js → BoxItem-CoguTodA-DItO3xcr.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CF3ZLtzs-m9ujMa8b.js → BusinessVerificationPage-DGQ9x2pf-35QVlpBA.js} +6 -6
- package/dist/assets/{CardNumberSubText-B1MkRWES-C67yiD_w.js → CardNumberSubText-BudPffUB-BTvRfksc.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CPSsS7-h-D1KsDfk8.js → CashbackDetailPage-2KpaTEWi-CUzGkPf8.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-BDqTbXzY-BMqKHARM.js → ChargeCardDetailPage-DU-yz6wh-CBCtuxOp.js} +1 -1
- package/dist/assets/{ChargeCardListPage-yj0mhqgF-BwQcpXMc.js → ChargeCardListPage-C4ITCZwO-C8GmtyMf.js} +14 -14
- package/dist/assets/{ChargeCardListTable-DM6dYuPz-DQIQm3j5.js → ChargeCardListTable-DEqAOIyN-nTkk33YA.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DSoQsDJK-k397bkJL.js → ChargeCardPromoPage-CvPAVoti-Dig5Emby.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-DhEITB5H-DwrNYcBw.js → ChargeCardSetupPage-CLhkL1Eh-B9fDm_Ae.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-tCXt7AVZ-CGXmLyEQ.js → ChargeCardStatementsPage-6TvYstIS-DKHBxCkb.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-6PfNZ8GG-CpP6SDgV.js → CheckDepositDrawerPage-D64qEFAi-DmFPX3Hy.js} +5 -5
- package/dist/assets/{CollapsableReportTable-DERfLf9A-B02u2C6v.js → CollapsableReportTable-o0pGO_sw-CoQujIPL.js} +48 -48
- package/dist/assets/{CompanyOfficerDetailsSection-CmMDQgui-DjcUawXU.js → CompanyOfficerDetailsSection-D3PSro9F-CN8Reo83.js} +12 -12
- package/dist/assets/{CompanyPassportCard-ki3cq_A3-BIFk_EYX.js → CompanyPassportCard-CUcLJOne-CwK5fmgg.js} +2 -2
- package/dist/assets/{CompanyPassportPage-C9UW7mV8-CjYiaVUt.js → CompanyPassportPage-C1v4xE8B-zCkhH9yQ.js} +10 -10
- package/dist/assets/{CompleteProfile-CcjiEAtN-G6pC79hX.js → CompleteProfile-DP8FFDH_-B7Va_v1e.js} +1 -1
- package/dist/assets/{ConfettiBurst-Dq3DwwfS-Bk63elQ-.js → ConfettiBurst-KNUWsLgM-C3W-6qSV.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CsYVqUf8-CQGCDeX8.js → CreateOrEditVendorPage-hEPeylx6-VsqoPSRS.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-C1QUtunc-B_csVrG-.js → CreditCardPaymentDrawerPage-DOgKpleO-DLW-KVW8.js} +8 -8
- package/dist/assets/{CurrencySelectField-PjVnHOPO-De5v3EBh.js → CurrencySelectField-C8L9A7zC-DLDLvWwm.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-BEz1pkPV-m1nyzrH-.js → CustomerOnboardingActivationPage-D_AcFXeU-p0ieIiP_.js} +8 -8
- package/dist/assets/CustomerOnboardingContainerPage-DAxVaKqp-DMOGZ592.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-3S6lsaCB-BUgUvYUX.js → CustomerOnboardingDetailPageSkeleton-DPSQT5UG-yxM-FX1s.js} +12 -12
- package/dist/assets/{CustomerOnboardingNoStepsPage-C7EvOlnr-Bb_AP_JK.js → CustomerOnboardingNoStepsPage-Bqi6QK8D-CnhmXiFi.js} +4 -4
- package/dist/assets/{CustomerOnboardingPage-Clo_UlCC-DsyGD0B2.js → CustomerOnboardingPage-eY5fJENY-CW0ZIKes.js} +4 -4
- package/dist/assets/{CustomerOnboardingProductSuitePage-BEy5gk3x-B66-9NVf.js → CustomerOnboardingProductSuitePage-BEWQQxa2-CUaimIpy.js} +4 -4
- package/dist/assets/{Dashboard-B1tMJ_lT-Dt3eYG-5.js → Dashboard-DyK1Y6xH-BhOeJdbK.js} +1 -1
- package/dist/assets/{DashboardReportPage-CoFYSDIH-DHztoZKU.js → DashboardReportPage-9mEEgfb9-8pEwgBSt.js} +11 -11
- package/dist/assets/{DashboardSidebarBackgroundAnimation-4ckOdfXR-Csek43Wl.js → DashboardSidebarBackgroundAnimation-BKaRUOA4-CrFQyftY.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-tQvZegVN-2h85R67z.js → DepositAccTransactionItem-CwSsISRg-BhipE2js.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-CwXktzEW-DdOhhhJy.js → DepositAccTransactionListPage-d_A-lWfh-BHvjyvXp.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-W6hOjjFW-BWSats5d.js → DomesticWireDetailsPage-C-qIXO7t-BK1ogPTU.js} +1 -1
- package/dist/assets/{DownloadOverlay-BSUE9cHx-CQqT-O4K.js → DownloadOverlay-_HVjRZb_-ovRMQuBS.js} +10 -10
- package/dist/assets/{DrawerPage-CgdtPYXN-BbWBMozy.js → DrawerPage-DgRO2OFE-DsZBSqxn.js} +3 -3
- package/dist/assets/EditPeoplePage-6lvgaJQi-Df2Mb0kP.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-Q2e7iDtu-BBcP7tRA.js → EditReimbursementDetailPage-B85brpdt-BYguIPkd.js} +19 -19
- package/dist/assets/{EntityDetailPage-XsEIg05w-Cod5Z1f6.js → EntityDetailPage-Ds03l_Nm-BYieYjCl.js} +3 -3
- package/dist/assets/{EntitySummarySection-CsXlmDFx-l9ddhbEU.js → EntitySummarySection-CbloJrPd-DGVEU9qa.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-CVe0vhrD-B-avItru.js → ExpenseAutomationOverviewPage-CYNO1bW--pa8gzAaD.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-D6r_A_CD-CiCcvo0I.js → ExpenseAutomationPage-CoYAnlKO-CIOZ9cQ5.js} +1 -1
- package/dist/assets/{ExpressPayPage-C6b1fiyD-DNDZJNDu.js → ExpressPayPage-VpqTGVa6-iCCnAcb9.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-DOebdPqb-TzEy5dMk.js → FeaturePreviewPage-DzgPdfBh-BlncrRkT.js} +1 -1
- package/dist/assets/{FollowStepsSection-jmyNE2Fl-CvBGwqtX.js → FollowStepsSection-NM8GXTRZ--kMzASD7.js} +6 -6
- package/dist/assets/{GlobalReviewListPage-Cx1Km5fu-Bailuk1q.js → GlobalReviewListPage-xUe6yXIO-DDRodqQY.js} +6 -6
- package/dist/assets/{InformationCardStack-C5bKx9vg-k3hJn-Id.js → InformationCardStack-BYRwUh-e-Bm84GPsq.js} +2 -2
- package/dist/assets/{InsightsCardStack-EFoc_EWA-D2FaxDtB.js → InsightsCardStack-DfJXM3Fn-B0luA3Cz.js} +7 -7
- package/dist/assets/{InsightsSection-B0Rg5beY-u8CdyXOx.js → InsightsSection-4aveyVKo-DnKJf3sJ.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-BQmjM8Np-1cGkOCA2.js → IntegrationsSettingsPage-BZMs-taD-ChagB0kp.js} +4 -4
- package/dist/assets/{InternationalWireSwiftDetailsPage-ChSGHFzT-CvsM4E7Y.js → InternationalWireSwiftDetailsPage-D3mlT5XG-CMQP_Nn8.js} +4 -4
- package/dist/assets/{InternationalWireVerificationPage-D41gWYDb-CEwQheQ1.js → InternationalWireVerificationPage-MUHsO8eu-CkpdoULT.js} +1 -1
- package/dist/assets/{InviteFormPage-CltJ2XYv-DJJh50vB.js → InviteFormPage-aZR9lFWK-BCwWSqH4.js} +1 -1
- package/dist/assets/{InvitePageListView-D5OdkeEV-CglVOI_I.js → InvitePageListView-CHyiR2RC-Sk8zihrC.js} +12 -12
- package/dist/assets/{InvitePeoplePage-CyXnulj0-B7lM98ff.js → InvitePeoplePage-BRl496Mv-FaAOJzgH.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-B2ePrdY8-CUZ5YkU9.js → InvoiceUploadSection-BqpspjSO-DbodpMov.js} +6 -6
- package/dist/assets/{IssueChargeCardPage-BCfMS2Zu-DdG6-d9q.js → IssueChargeCardPage-D39Bd6J9-Bz3hak_j.js} +21 -21
- package/dist/assets/{LabeledAddressValue-D7udvbin-kVKW8gGz.js → LabeledAddressValue-w3powIaN-xKKxpzsE.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-jlDhqmgU-CM1ZWEJK.js → LabeledAddressValueField-BPOKk4mI-BFmVYPcn.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-DNmJFVpZ-DjMQjBxM.js → LabeledControlledCheckBoxField-afEn8tHL-DxqXt4PA.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B6Vit6ZA-Bdnw6feS.js → LabeledCreatableSingleSelectField-DXA_bSyS-BJinmWca.js} +3 -3
- package/dist/assets/{LabeledDocumentField-CbTN9aAs-CEmYFygD.js → LabeledDocumentField-Z9OHDFr6-HgLdszDI.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CD6Bs8EU-Bok-Bw1g.js → LabeledDropDownFormattedTextField-0Bk8vscY-CDQY3SED.js} +3 -3
- package/dist/assets/{LabeledText-aSB1WzCl-Cj9Ocs2U.js → LabeledText-CgI7e_L--BwhQOiOZ.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Y99F7D2f-Dwh42b2N.js → LabeledUserSingleSelectWithSubtitlesField-B0y_IMnV-GTOhW6B-.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-BJePp4f_-Dc_g-F8s.js → LabeledZeniRolesDropDownField-CEwtGHuw-Bl11WCzt.js} +14 -14
- package/dist/assets/{LinkJETransactionPage-CNbLCYzA-Bg5upj_n.js → LinkJETransactionPage-BqF3QSeN-CXTqkit6.js} +2 -2
- package/dist/assets/{LockCardPage-DMB-6EyM-lbTpu5O_.js → LockCardPage-Ui2RTfpb-B7R1Xixi.js} +10 -10
- package/dist/assets/{LowBalancePopup-D8MLLJa7-CBiPecxo.js → LowBalancePopup-DzqqMGEK-DvUWGZSI.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-BdS3aAWw-BrXiv9-t.js → MagicLinkACHDetailsPage-Kz-uZGml-CF0KJ9I8.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CG0a1drB-Dmn6AGH4.js → MagicLinkDomesticWireDetailsPage-DNR1hQud-DTuqaECC.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C9-ZvcKN-C21_WG8V.js → MagicLinkInternationalWireDetailsPage-B-hsxI7i-DU8bPbJw.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BBQLFLJ9-CPkaiDv7.js → MagicLinkSuccessPage-CTyWzEAl-CcSFqgbx.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BVR_lDfw-BbQ3PhCM.js → MagicLinkTitleSection-egx3li4v-CK9jYn1b.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DZi-O94--DF-Hpww_.js → MailingDetailsSection-D28xdU_N-D7dNEE4R.js} +1 -1
- package/dist/assets/{Menu-DGwHJlS--Djq7PCKE.js → Menu-BsPZbkcv-dMEFFJAw.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-BYTxFTOW-gDKKbyJg.js → MyBankConnectionsSettingsPage-B7pw1loZ-BZemPN_o.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CUvKbnux-CN2CiFSh.js → MyPendingActivationChargeCardListPage-CaDgVLY9-D9RWTHXk.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BHnImAny-TmsmZErc.js → MyProfileSettingsPage-DGPjjcRE-BkjL1klq.js} +11 -11
- package/dist/assets/{NavBarWithPicker-Q739fT8--CrZ3WYmY.js → NavBarWithPicker-CK69EXMo-BopYsgXw.js} +3 -3
- package/dist/assets/{NavigationArrow-DQfX85VC-Dvm4TJ9a.js → NavigationArrow-B5JMjj8b-Yf4kFeB6.js} +1 -1
- package/dist/assets/{NavigationDots-CyCjbpW--DGfBQuMJ.js → NavigationDots-yYEq4mai-Bct7I6H1.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CzT7wrsy-CItQq0bZ.js → NewGlobalMerchantPage-DXdipj9r-Cg-jSrpq.js} +4 -4
- package/dist/assets/{NoDataChart-BnAshBnb-UHLHtstu.js → NoDataChart-CetZJAul-Dliv4FgS.js} +1 -1
- package/dist/assets/{NoDataTable-BhokhW6d-QEuWLEd7.js → NoDataTable-CbxTnnUj-RBS2BO0t.js} +1 -1
- package/dist/assets/{NotFoundPage-uFZMkf3D-DLBn6ZTy.js → NotFoundPage-JK9WWLQL-t0Ol92QM.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BE1_MgJM-BWk4ph6m.js → NotificationSettingsPage-BYFMb4y6-BucvDhx8.js} +7 -7
- package/dist/assets/{NotificationsListConfig-CUWNEUCL-XvkMOcjh.js → NotificationsListConfig-EKmLeUqF-DPKxh2va.js} +1 -1
- package/dist/assets/{NotificationsPage-BMZvKV7t-v_KJjY-j.js → NotificationsPage-Ca9rvFJG-3IKE1yMl.js} +23 -23
- package/dist/assets/{OpExByVendorPage-BuHAApyT-ZSJOclS-.js → OpExByVendorPage-S3IdisaI-C-NcDs3u.js} +20 -20
- package/dist/assets/{OverlayContainerPage-BKHs_4eI-Cod2hmti.js → OverlayContainerPage-BKHs_4eI-B8gf_Owe.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-B0IiVx6D-BofpOT29.js → PandLWithForecastPage-Bf-D_XNg-CrzOb2hU.js} +7 -7
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BkfPpFae-CQO2zwUL.js → PaymentAccountSetupBillingAddressSection-CMVwDWuf-jHkUqKP1.js} +13 -13
- package/dist/assets/{PeoplePage-Cj9mjcMw-9OYaHyag.js → PeoplePage-BKkwc_YR-BoZfR8X8.js} +1 -1
- package/dist/assets/{ProductsCarousel-_jYEgpxl-3H43gICJ.js → ProductsCarousel-DsI5t_Kc-Cpn89x6_.js} +1 -1
- package/dist/assets/{PromoBaseCards-8tkwl6GI-B2drNSiA.js → PromoBaseCards-CnQcR3Wn-B3iRHG7z.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CJz2SlfE-Cw-cnWS5.js → QBOConnectionDialog-PCdTWQqn-D0QAr5xA.js} +2 -2
- package/dist/assets/{QBOSetupSection-CpfryKtp-ZjQWXWah.js → QBOSetupSection-DhsqYA8G-Dcjp9EQd.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-B8CBB3JI-xMBay2No.js → ReimbursementApprovalRuleDetailPage-Dao_lRpW-BNs6twdR.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BsLmDz25-CgEjqCg6.js → ReimbursementApprovalRulesPage-B_LTt_z4-DnK-3YAX.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DiG34Vur-Dcz6odls.js → ReimbursementDetailPage-H6HNtQHN-2pM8Fun7.js} +8 -8
- package/dist/assets/{ReimbursementPromoPage-CNZdwAl--BsBEvPRx.js → ReimbursementPromoPage-j-UbNrbV-VHty7Yzb.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-Ccc4qnNZ-CPmymOEP.js → ReimbursementSetUpPage-FagEYTJ_-BpDXEjSX.js} +7 -7
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cza64yGU-BleycvIi.js → ReimbursementsBulkReviewDrawerPage-imSK_7rH-B3IJ7p46.js} +1 -1
- package/dist/assets/{ReloadCard-Cnz9ywvF-BGT4MYH-.js → ReloadCard-CqdeJe0l-Bb07dYPg.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-B70dJfTV-SlWwkWXT.js → ReportTableViewSelector-DgPlLWgl-CNrxPhYC.js} +5 -5
- package/dist/assets/{ReportsPage-DdvNbMAj-SF_Ndi0S.js → ReportsPage-ByfO0uyp-DE8vAkKj.js} +6 -6
- package/dist/assets/{RevenueChart-B0CcrRHw-DSEzCN2z.js → RevenueChart-ChbWXtmx-BA32Na2v.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BVebc63A-zFlaxD9H.js → ReviewDetailsPage-BsOffi8f-BLsxP3vo.js} +5 -5
- package/dist/assets/{ReviewOverlay-Dm9GTjwu-bBb6sGal.js → ReviewOverlay-B73a-P2j-CTP6pyS2.js} +7 -7
- package/dist/assets/RoleWithToolTip-Ckorto5Y-CV42dy1h.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BWwDY16q-BLBhJP_5.js → ScheduleDetailsFixedAssetsPage-0vTqFn9N-BEm7Cgkc.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CqFbh9HE-R8G_b4b1.js → ScheduleDetailsPage-Cl11M6UJ-BhHsLjma.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-DDYFTEg4-CG84KRpd.js → ScheduleSequenceTable-ClzxD7gh-DTqJnrdA.js} +26 -26
- package/dist/assets/{ScreenRoutes-BVWkKC_W.js → ScreenRoutes-D3i6oNhN.js} +1 -1
- package/dist/assets/{SetUpAccountSection-BuF3A3dP-Dlc3aKO9.js → SetUpAccountSection-xqqgeGLA-YX4p_D4B.js} +1 -1
- package/dist/assets/{SignIn-CyGyU8wg-8SnTpqj6.js → SignIn-Bh-9-pko-DyJR1DLA.js} +14 -14
- package/dist/assets/{SignInScreen-CEzKwqwu.js → SignInScreen-CaiIkh6O.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DPUhOVZl-B5bRhpPB.js → SpendManagementListViewPage-Bn4KmChq-B4Y0L643.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CeYdMTbj-DL_aA7k6.js → SpendManagementPerTabPage-pYgoZlfR-DI3UJ4l8.js} +37 -37
- package/dist/assets/{SpendManagementSection--vF9XUYO-BtgzDFex.js → SpendManagementSection-4ctnlmiO-I2pWsNDv.js} +1 -1
- package/dist/assets/{StatementItem-CiYj7XWK-5AkRMgC4.js → StatementItem-CYkgMHQd-B65BnaGl.js} +6 -6
- package/dist/assets/{StatementsPage-SLgIPcxl-DedL5QW0.js → StatementsPage-BeF9vuPn-DNaEdwZ3.js} +1 -1
- package/dist/assets/{StatusSwitcher-CAMXea4Z-Ci68Xk-W.js → StatusSwitcher-DOwOcMYF-CSG0Jxkr.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BFezBmcr-Bv0UYLck.js → SubTabSwitcher-BcEtc_ob-GF65Or0C.js} +1 -1
- package/dist/assets/{SummaryCard-Bk5Eh2IR-CvYAWxo_.js → SummaryCard-fjNCTkA5-B-M5KnHi.js} +1 -1
- package/dist/assets/{TaskManagementPage-ClL2snRe-BkZUI-Os.js → TaskManagementPage-BYMJMIhz-Do04zyQE.js} +15 -15
- package/dist/assets/{TimeRangeSwitcher-fGI52XTc-B8YAuD1t.js → TimeRangeSwitcher-B4FKox6K-C6y8kYZQ.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-CV-bryv5-BZG0GUCh.js → TimeframeSwitcher-DVWPgeL0-8qGmZwOz.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-kmZOYJwI-CNr8HJvn.js → TimeframeSwitcherWithToggle-BWGJWyJr-ClUkg8re.js} +1 -1
- package/dist/assets/{TopExCard-DeYN3ImD-B_G3aCn4.js → TopExCard-CUrz7PjD-Co2zX82Y.js} +5 -5
- package/dist/assets/{TopExDetailPage-BmyFCtzb-Cf6VgVmt.js → TopExDetailPage-BMzQUB6s-BXWwFBJe.js} +3 -3
- package/dist/assets/{TransactionDetailPage-BFpvUUmz-C0BrkJmS.js → TransactionDetailPage-CZdeoUBY-XP0PswSG.js} +31 -31
- package/dist/assets/{TransactionList-JHbSuP08-BE5oUWHj.js → TransactionList-CixEJAgS-CGekhIG9.js} +8 -8
- package/dist/assets/{TransactionListBig-FzOmuwBP-CVEEn05Z.js → TransactionListBig-CMVJvB3o-DxRTSLNX.js} +7 -7
- package/dist/assets/{TransactionListPage-Kkxkkd_A-uxvvUDBa.js → TransactionListPage-CAMz9-YS-BNVZMAVt.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-m1wxsTyn-CtzfWKY9.js → TransactionVendorDetailPage-CzbyeJ4F-DfY35mWk.js} +3 -3
- package/dist/assets/{TransferDrawerPage-obzTPCDc-DmDROdGW.js → TransferDrawerPage-aQAyy9SJ-CtSZX6V_.js} +6 -6
- package/dist/assets/{TreasuryOverviewPage-DW68UR3w-CXp8UZWj.js → TreasuryOverviewPage-DStdhtYj-BmaX-LUn.js} +8 -8
- package/dist/assets/{TreasuryPromoPage-BW76YUSB-1YJbHf0S.js → TreasuryPromoPage-ukEVtL3s-BxkytgW6.js} +7 -7
- package/dist/assets/{TreasuryStatementsPage-BDD4VO8n-DUjcdDs1.js → TreasuryStatementsPage-CrTNmv-B-fC2pfiKh.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-B2NDIt_Q-DCX4Q69d.js → TreasuryTaxLetterPage-BkyI9zJM-Ds84Dj6n.js} +1 -1
- package/dist/assets/{TrendChart-D5CYCZnh-DAyWGjcL.js → TrendChart-BV_FYo44-Dbzn5dy8.js} +1 -1
- package/dist/assets/{TrendWithTransactions-DoCnDpHm-CdDHaHZ9.js → TrendWithTransactions-COtEkfX9-BcCvtDz-.js} +5 -5
- package/dist/assets/{UncategorizedAccountsMappingPage-DX_TBAhJ-BssvOjsa.js → UncategorizedAccountsMappingPage-CDFz90Rp-CAIHAo3N.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DZfp553j-ByWZS3hU.js → UnitIntegrationPage-DU3fVYZs-CPctIuWc.js} +1 -1
- package/dist/assets/UploadAdditionalDocumentOverlay-C663UVhz-FUVjkpYI.js +38 -0
- package/dist/assets/{Vendor2FAPopup-BmT-gcIz-n3vjq-3y.js → Vendor2FAPopup-DTGw_BLn-CTkC0axp.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CQ7Hq4OS-OICNgdvg.js → VendorACHDetailsPage-BEB-BRPf-BW1XdRCh.js} +1 -1
- package/dist/assets/{VendorDetailPage-Cs6xk6eD-zl-heKdM.js → VendorDetailPage-DgKqF5w_-Da2PCb7B.js} +5 -5
- package/dist/assets/{VendorDomesticWireDetailsPage-8mY07nVg-DHqiq7vN.js → VendorDomesticWireDetailsPage-DsT7aeCi-Cxqzwzrv.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CAFeI80I-sDSbFxEy.js → VendorFiling1099EditablePage-DSQPqiXK-BlXqobVl.js} +14 -14
- package/dist/assets/{VendorFirstReviewPage-ACNdg13I-BUeCp6NI.js → VendorFirstReviewPage-CHhQfRiw-BCpTFAZN.js} +70 -70
- package/dist/assets/{VendorInternationalWireDetailsPage-BpkamVMK-D0VBsQab.js → VendorInternationalWireDetailsPage-BALUN3IH-B1HapV15.js} +4 -4
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Gvr65ujG-DJLCreKr.js → VendorInternationalWireSwiftDetailsPage-BCJLWye_-CJZeW3NQ.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-AmC5VwVD-DhkXxukb.js → VendorsAccountsSection-BNeOtayE-BfOhq53p.js} +1 -1
- package/dist/assets/{VerifyDevice-PHsuiYk_-D412mfmG.js → VerifyDevice-BdS9Wg6i-km9HNFiy.js} +2 -2
- package/dist/assets/{VideoPlayer-DSqyhtMK-C3AGcKQT.js → VideoPlayer--4ECwDUJ-DpdXEWOa.js} +1 -1
- package/dist/assets/{VideoPopup-BcGkTYtT-KpRyilVI.js → VideoPopup-D0KR8nhb-L_41dJ_u.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-BMxsT694-CfyoaWK9.js → WarningsDrawerPage-CZi7W_N2-BvrjJAup.js} +10 -10
- package/dist/assets/{ZeniAccountDetailPage-CvVIdc-T-DXao_tc2.js → ZeniAccountDetailPage-DRpUQWRY-CFQQ9DDl.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-D8RyYP_F-v3DmCD-q.js → ZeniAccountListViewPage-B58qILci-DPpjeTIQ.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-DN7XGX4V-Dx8A5GLh.js → ZeniAccountNavBarPieces-BvwIaUWa-BHDVxbAK.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-DtkPkWS_-DSD29DUQ.js → ZeniAccountPromoPage-BKn8HRaG-C8TqY5PJ.js} +10 -10
- package/dist/assets/{ZeniAccountSetupPage-NDzdHEb2-CwWBVh2N.js → ZeniAccountSetupPage-B52_WsH5-Ny13na_H.js} +2 -2
- package/dist/assets/{ZeniCopyright-C2Et8K0x-lDJzPJZG.js → ZeniCopyright-BBZoZbnj-BkZUi5kn.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-D7NLq8nU-CERt_WDB.js → ZeniTransferAmountSlider-DuVixxF--B3VBiout.js} +1 -1
- package/dist/assets/{analyticsHelper-CaFa35yP-G2_hr-0j.js → analyticsHelper-BFEbpTaS-CI1-ZwNW.js} +1 -1
- package/dist/assets/{analyticsHelper-DU_Un8e0.js → analyticsHelper-DEd3yAFk.js} +1 -1
- package/dist/assets/{chartTypes-D3stzk-w-BOvyI3x_.js → chartTypes-D3rvsvls-DmtOpgie.js} +1 -1
- package/dist/assets/{commonDimensions-DP_SFwFq-B4nonWMr.js → commonDimensions-DTY9_AOp-DlMPlh2t.js} +1 -1
- package/dist/assets/{detailCommon-Cz5amAEd-Cc-pki0l.js → detailCommon-CLP6KEix-B5bEqT96.js} +4 -4
- package/dist/assets/{downloadPdf-BEpDZsHw-iAkz6QUF.js → downloadPdf-DEpaGHNR-Bw53_d32.js} +1 -1
- package/dist/assets/{index-CUpJHznP.js → index-CN7UAWAg.js} +2530 -2515
- package/dist/assets/{mapLoadingInProgressToTreeNode-9Bg2UmOc-COxeXpBk.js → mapLoadingInProgressToTreeNode-B_mkEOSy-BQa7i_Nl.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CrGK4Cl1-CK5Yo8-v.js → mapSectionWithAcOnlyToTreeNode-C_s2TWXG-1zhixfCC.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-Dpahky1g-BWER0KF3.js → mapSpacerToTreeNode-BsPCAFm5-CkJKxUF2.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DGNk2hE1-BtbWYKjA.js → mapTimeframeBalancesToTreeNode-6mbqZF6a-D84LKXiT.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DD94NO-L-IqTvqjc2.js → mapTimeframeBalancesToTreeNode-DLbpODYp-DDiXCv85.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CJYVSL83-sS_oqH0-.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CKvU3bUP-kVnJxQIG.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-iOGWxWc5-CwkpaTeT.js → toCOABalancesWithID-CHHSLp5k-D9n1b9Hs.js} +1 -1
- package/dist/assets/{toChartData-BEJwj1pL-BUKCXEQF.js → toChartData-CBhPep_F-DbHa5eNf.js} +1 -1
- package/dist/assets/{uploadAttachment-Cs4cwF3u-BqxRSnPC.js → uploadAttachment-BXzSdWYh-ChPsAoWK.js} +6 -6
- package/dist/assets/{uploadReceipts-Dp1dvCjf-Rghek-rE.js → uploadReceipts-Dp1dvCjf-CdBFemgP.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CustomerOnboardingContainerPage-BoQBdIuG-Dc2nEhqg.js +0 -1
- package/dist/assets/EditPeoplePage-DIj7SItK-CKkznNAO.js +0 -55
- package/dist/assets/RoleWithToolTip-CqLSnFDx-DgQ7tDAb.js +0 -22
- package/dist/assets/UploadAdditionalDocumentOverlay-BqO1S9_p-C6rWAFOs.js +0 -38
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as D,q as I,F as y,j as o,bG as E,
|
|
1
|
+
import{d as D,q as I,F as y,j as o,bG as E,k as G,aM as S,o as t,y as r,am as L,aN as z,cE as H,cF as U,cG as q,de as F,u as l,b9 as V,B as P,b8 as _,p as j,db as J,by as Y,b as O}from"./index-CN7UAWAg.js";import{n as i,b as Z}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},W={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},K=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:b})=>{const[g,d]=Z.useState(!1),a=I(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,n=y.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},A={onOkClick:()=>{d(!1),b?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(Q,{windowSize:a,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(X,{windowSize:a,children:[o.jsxs(ne,{children:[o.jsxs(B,{windowSize:a,children:[n.from," ",z("0,0",c.min)]}),o.jsxs(ee,{children:[o.jsx(k,{}),o.jsx(oe,{}),o.jsx(k,{})]}),c.max==null?o.jsx(ce,{}):o.jsx(B,{windowSize:a,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ae,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:a,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:a,children:w.map((h,N)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?o.jsx(le,{children:n.requireText}):o.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>o.jsxs(C,{children:[o.jsx(T,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(R,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>o.jsxs(C,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(R,{className:"operator",children:h.operator}):null]},p.userId))]},N))})}),g?o.jsx(H,{titleComponent:o.jsx(q,{children:n.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(U,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:A}):null]})},Q=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ax as Mt,a9 as Rt,q as Pt,d as Bt,cs as Nt,y as m,F as Xe,l as ie,gu as Lt,gw as _t,gx as Ot,j as t,cE as ze,cF as Ae,cG as Me,aM as y,bG as Re,bt as Wt,dO as Et,gy as Ft,gJ as Pe,o as a,gz as Be,fv as b,fx as x,gC as w,aN as Ne,fu as Le,b as F,gE as _e,aQ as Kt,ap as Ut,gF as Vt,gG as ae,bC as Gt,gH as Yt,_ as Ht,B as Jt,M as qt,am as et,b9 as tt,p as K,an as Zt,c8 as Qt,ai as Xt,gZ as ei,gV as ti,u as c,cx as ii,d9 as ai}from"./index-CUpJHznP.js";import{b as p,n as r}from"./vendor-Bs1fkIUX.js";import{_ as ri}from"./liveblocks-8ht9CoL5.js";import oi from"./InvoiceUploadSection-B2ePrdY8-CUZ5YkU9.js";import{r as ni,h as f,u as li}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-CK1x27Ua.js";import"./AttachmentView-jMWZdYNa-B4G6-utv.js";import"./uploadReceipts-Dp1dvCjf-Rghek-rE.js";const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},si={formTitle:new Jt("h6Regular","h5Regular")},aa=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=Mt(),st=Rt().analytics,o=Pt(),ye=Bt(),[dt,k]=p.useState(!1),[G,Y]=p.useState(!1),[ct,H]=p.useState(!1),[J,q]=p.useState("approved"),P=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.current[l];n!=null&&setTimeout(()=>li(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);be(n)}},[]);const ut=()=>{V()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},D=s.labelWidth.value(o),z=s.largeLabelWidth.value(o),xe=Xe.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:we}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:xt,unResolveComment:wt}}},dateFormat:fe}=xe,{reimbursementDetail:i,bulkActions:N}=xe.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,_=e.remiDetails?.reimbursementInfo.billStatus,O=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:_?.code=="approved"&&O?.code?O:_,$=di(e.remiDetails),A=_?.code=="approved"&&O?.code?O:_,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},je=()=>{rt()},Tt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("rejected"),H(!0))},Dt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,X=e.remiDetails?.reimbursementInfo.expectedDepositDate??Dt,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,De=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!It,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,kt=ni(e.duplicateLineByLineId),Ie=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Lt),{threads:M,isLoading:I}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>M.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[M]).length,At=p.useCallback((l,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!I&&(E(te.threadId),Ce(null))},[te,M,I,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Ni,{windowSize:o,ref:P,children:[dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(ki,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(zi,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Di,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??we,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Mi,{children:[u?t.jsxs(Ri,{isDisabled:I,onClick:I?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:I?void 0:zt,isLoading:I,style:{left:"12px"}}),t.jsx(Pi,{})]}):null,t.jsx(Bi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ai,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Ki,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Q})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):Ie?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsx(Ei,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(oi,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Q}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):Ie?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(yi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(hi,{children:t.jsx(gi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(bi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(pi,{children:[i.thisExpenseReview," ",t.jsx(ui,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:z},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:z},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:z},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:D},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:D},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:D},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:z},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:z},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:D},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:D},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:D},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:D},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(_i,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(ci,{windowSize:o,children:[t.jsx(Li,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(mi,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Fi,{})]}),$e||W===!0?null:t.jsxs(Ci,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),G===!0&&Y(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(xi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&G?t.jsx(Ut,{onClickAway:()=>Y(!1),children:t.jsxs(ji,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Si,{windowSize:o,children:[!R&&De?t.jsx(Ti,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx(vi,{})}):null,!R&&Ct===!0?t.jsx($i,{windowSize:o,showEditIcon:De,children:t.jsx(fi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??we,isGlobalComment:!1,tab:"reimbursement"},isLoading:I,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:xt,threadUnResolve:wt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},di=e=>{const U=Xe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},ci=r.div`
|
|
1
|
+
import{ax as Mt,a9 as Rt,q as Bt,d as Pt,cs as Nt,y as m,F as Xe,l as ie,gu as Lt,gw as _t,gx as Ot,j as t,cE as ze,cF as Ae,cG as Me,aM as y,bG as Re,bt as Wt,dO as Et,gy as Ft,gJ as Be,o as a,gz as Pe,fv as b,fx as x,gC as w,aN as Ne,fu as Le,b as F,gE as _e,aQ as Kt,ap as Ut,gF as Vt,gG as ae,bC as Gt,gH as Yt,L as Ht,B as Jt,M as qt,am as et,b9 as tt,p as K,an as Qt,c8 as Zt,ai as Xt,gZ as ei,gV as ti,u as c,cx as ii,d9 as ai}from"./index-CN7UAWAg.js";import{b as p,n as r}from"./vendor-Bs1fkIUX.js";import{_ as ri}from"./liveblocks-8ht9CoL5.js";import oi from"./InvoiceUploadSection-BqpspjSO-DbodpMov.js";import{r as ni,h as f,u as li}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-CK1x27Ua.js";import"./AttachmentView-C5nZKhTq-vO_X412a.js";import"./uploadReceipts-Dp1dvCjf-CdBFemgP.js";const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},si={formTitle:new Jt("h6Regular","h5Regular")},aa=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=Mt(),st=Rt().analytics,o=Bt(),ye=Pt(),[dt,k]=p.useState(!1),[G,Y]=p.useState(!1),[ct,H]=p.useState(!1),[J,q]=p.useState("approved"),B=p.useRef(null),[S,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,P]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.current[l];n!=null&&setTimeout(()=>li(n,B.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);be(n)}},[]);const ut=()=>{V()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ue?.():S.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},D=s.labelWidth.value(o),z=s.largeLabelWidth.value(o),xe=Xe.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:we}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:xt,unResolveComment:wt}}},dateFormat:fe}=xe,{reimbursementDetail:i,bulkActions:N}=xe.spendManagement.reimbursement,Z=e.remiDetails?.reportTitle,j=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,_=e.remiDetails?.reimbursementInfo.billStatus,O=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:_?.code=="approved"&&O?.code?O:_,$=di(e.remiDetails),A=_?.code=="approved"&&O?.code?O:_,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,je=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},Se=()=>{rt()},Tt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?Se():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),je()):(q("rejected"),H(!0))},Dt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,X=e.remiDetails?.reimbursementInfo.expectedDepositDate??Dt,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,De=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!It,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,kt=ni(e.duplicateLineByLineId),Ie=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Lt),{threads:M,isLoading:I}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>M.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[M]).length,At=p.useCallback((l,n)=>{E(n),P(!1)},[E,P]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!I&&(E(te.threadId),Ce(null))},[te,M,I,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Ni,{windowSize:o,ref:B,children:[dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:S.title}),descriptionComponent:t.jsx(Ae,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(ki,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(zi,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Di,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Z??we,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Mi,{children:[u?t.jsxs(Ri,{isDisabled:I,onClick:I?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),P(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:I?void 0:zt,isLoading:I,style:{left:"12px"}}),t.jsx(Bi,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ai,{})})]}),scrollableContent:B,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Ki,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Z})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):Ie?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Pe,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,j.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Ze,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsx(Ei,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(oi,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Z}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Pe,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):Ie?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(yi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(hi,{children:t.jsx(gi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(bi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(pi,{children:[i.thisExpenseReview," ",t.jsx(ui,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:z},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:z},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:z},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:D},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:D},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:D},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:z},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:z},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:D},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:D},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:D},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:D},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(_i,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),j.length===1&&t.jsxs(Ze,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(ci,{windowSize:o,children:[t.jsx(Li,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(mi,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Fi,{})]}),$e||W===!0?null:t.jsxs(Ci,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),G===!0&&Y(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(xi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&G?t.jsx(Ut,{onClickAway:()=>Y(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:je,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(ji,{windowSize:o,children:[!R&&De?t.jsx(Ti,{onClick:Se,"data-testid":y("remi-edit-button"),children:t.jsx(vi,{})}):null,!R&&Ct===!0?t.jsx($i,{windowSize:o,showEditIcon:De,children:t.jsx(fi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??we,isGlobalComment:!1,tab:"reimbursement"},isLoading:I,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:xt,threadUnResolve:wt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>P(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},di=e=>{const U=Xe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},ci=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -6,7 +6,7 @@ import{ax as Mt,a9 as Rt,q as Pt,d as Bt,cs as Nt,y as m,F as Xe,l as ie,gu as L
|
|
|
6
6
|
margin-left: ${e=>s.leftMargin.valuePx(e.windowSize)};
|
|
7
7
|
margin-right: ${e=>s.rightMargin.valuePx(e.windowSize)};
|
|
8
8
|
margin-bottom: ${e=>s.activityBottomMargin.valuePx(e.windowSize)};
|
|
9
|
-
`,pi=r(
|
|
9
|
+
`,pi=r(Qt)`
|
|
10
10
|
padding: ${a.sp2} ${a.sp0} ${a.sp2} ${a.sp4};
|
|
11
11
|
background-color: ${K.alertLight};
|
|
12
12
|
color: ${K.brandColorGoldDark};
|
|
@@ -108,11 +108,11 @@ import{ax as Mt,a9 as Rt,q as Pt,d as Bt,cs as Nt,y as m,F as Xe,l as ie,gu as L
|
|
|
108
108
|
border-radius: ${a.sp1};
|
|
109
109
|
min-width: fit-content;
|
|
110
110
|
max-width: fit-content;
|
|
111
|
-
`,
|
|
111
|
+
`,ji=r.div`
|
|
112
112
|
display: flex;
|
|
113
113
|
justify-content: center;
|
|
114
114
|
align-items: center;
|
|
115
|
-
`,
|
|
115
|
+
`,Si=r.div`
|
|
116
116
|
display: flex;
|
|
117
117
|
width: max-content;
|
|
118
118
|
align-items: center;
|
|
@@ -207,13 +207,13 @@ import{ax as Mt,a9 as Rt,q as Pt,d as Bt,cs as Nt,y as m,F as Xe,l as ie,gu as L
|
|
|
207
207
|
&:hover {
|
|
208
208
|
color: ${e=>e.theme.colors.primary};
|
|
209
209
|
}
|
|
210
|
-
`,
|
|
210
|
+
`,Bi=r(Yt)`
|
|
211
211
|
display: flex;
|
|
212
212
|
width: ${a.sp4};
|
|
213
213
|
height: ${a.sp4};
|
|
214
214
|
align-items: center;
|
|
215
215
|
justify-content: center;
|
|
216
|
-
`,
|
|
216
|
+
`,Pi=r.div`
|
|
217
217
|
margin-top: ${e=>s.closeMarginTop.valuePx(e.size)};
|
|
218
218
|
margin-left: ${a.sp5};
|
|
219
219
|
`,Ni=r.div`
|
|
@@ -283,7 +283,7 @@ import{ax as Mt,a9 as Rt,q as Pt,d as Bt,cs as Nt,y as m,F as Xe,l as ie,gu as L
|
|
|
283
283
|
color: ${e=>e.theme.colors.hero};
|
|
284
284
|
margin-bottom: ${e=>s.totalBottomMargin.valuePx(e.windowSize)};
|
|
285
285
|
justify-content: space-between;
|
|
286
|
-
`,
|
|
286
|
+
`,Qe=r(Zt)`
|
|
287
287
|
display: flex;
|
|
288
288
|
width: 176px;
|
|
289
289
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -291,7 +291,7 @@ import{ax as Mt,a9 as Rt,q as Pt,d as Bt,cs as Nt,y as m,F as Xe,l as ie,gu as L
|
|
|
291
291
|
display: flex;
|
|
292
292
|
flex-direction: column;
|
|
293
293
|
width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
294
|
-
`,
|
|
294
|
+
`,Ze=r.div`
|
|
295
295
|
display: flex;
|
|
296
296
|
width: 100%;
|
|
297
297
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ax as le,d as S,q as k,aP as ae,l as
|
|
1
|
+
import{ax as le,d as S,q as k,aP as ae,l as L,F as E,j as e,aM as a,fG as me,bG as ce,n as u,af as m,o as t,ar as de,a as pe,aS as F,an as xe,y as he,p as z,cS as ue,aT as ge,ba as we,u as je}from"./index-CN7UAWAg.js";import{b as j,n as r}from"./vendor-Bs1fkIUX.js";import{f as be}from"./VideoPopup-D0KR8nhb-L_41dJ_u.js";import{M as v}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./VideoPlayer--4ECwDUJ-DpdXEWOa.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",fe={midContainerMarginBottom:new he(je[5],44)},$e=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -23,7 +23,7 @@ import{ax as le,d as S,q as k,aP as ae,l as I,F as E,j as e,aM as a,fG as me,bG
|
|
|
23
23
|
align-items: center;
|
|
24
24
|
justify-content: center;
|
|
25
25
|
margin-bottom: ${i=>fe.midContainerMarginBottom.valuePx(i.windowSize)};
|
|
26
|
-
`,ze=r.div``,
|
|
26
|
+
`,ze=r.div``,M=r.div`
|
|
27
27
|
display: flex;
|
|
28
28
|
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
29
29
|
align-items: center;
|
|
@@ -68,7 +68,7 @@ import{ax as le,d as S,q as k,aP as ae,l as I,F as E,j as e,aM as a,fG as me,bG
|
|
|
68
68
|
color: ${i=>i.theme.colors.champion};
|
|
69
69
|
`,d=r.div``,p=r.div`
|
|
70
70
|
padding-left: ${t.sp3};
|
|
71
|
-
`,
|
|
71
|
+
`,I=r(F)`
|
|
72
72
|
margin: ${i=>i.windowSize==="small"?t.sp1:`auto ${t.sp5}`};
|
|
73
73
|
color: ${i=>i.theme.colors.grey1};
|
|
74
74
|
`,W=r(v)`
|
|
@@ -81,4 +81,4 @@ import{ax as le,d as S,q as k,aP as ae,l as I,F as E,j as e,aM as a,fG as me,bG
|
|
|
81
81
|
margin: ${t.sp3} auto;
|
|
82
82
|
max-width: 772px;
|
|
83
83
|
color: ${i=>i.theme.colors.hero};
|
|
84
|
-
`,s=E.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=E.getLocalizedStrings().commonSetUp.businessVerification.terms,ve=()=>{const i=S(),o=k();return e.jsxs(G,{windowSize:o,children:[e.jsx(V,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:q,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.simplestText.bold}),e.jsx($,{children:s.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.aiPoweredText.bold}),e.jsx($,{children:s.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.multiLevelApprovalText.bold}),e.jsx($,{children:s.multiLevelApprovalText.regular})]})]})]})]})},Te=()=>{const i=S(),o=k();return e.jsxs(G,{windowSize:o,children:[e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx(f,{children:s.simplestText.bold}),e.jsx(b,{children:s.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(f,{children:s.aiPoweredText.bold}),e.jsx(b,{children:s.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx(f,{children:s.multiLevelApprovalText.bold}),e.jsx(b,{children:s.multiLevelApprovalText.regular})]})]})]}),e.jsx(V,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:q,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},Ze=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:_,videoUrl:J,analytics:x,onSetupButtonClick:K,onCreateNewRemiButtonClick:Q,onBackClick:X,onSetupReimbursementSuccess:T,onClickMenuIcon:ee})=>{const C=le(),[ie,se]=j.useState(!1),[te,P]=j.useState(!1),re=S(),l=k(),{remiTermsDetails:h}=i,R=ae(h?.fetchStatus.fetchState),oe=
|
|
84
|
+
`,s=E.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=E.getLocalizedStrings().commonSetUp.businessVerification.terms,ve=()=>{const i=S(),o=k();return e.jsxs(G,{windowSize:o,children:[e.jsx(V,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:q,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.simplestText.bold}),e.jsx($,{children:s.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.aiPoweredText.bold}),e.jsx($,{children:s.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.multiLevelApprovalText.bold}),e.jsx($,{children:s.multiLevelApprovalText.regular})]})]})]})]})},Te=()=>{const i=S(),o=k();return e.jsxs(G,{windowSize:o,children:[e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx(f,{children:s.simplestText.bold}),e.jsx(b,{children:s.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(f,{children:s.aiPoweredText.bold}),e.jsx(b,{children:s.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx(f,{children:s.multiLevelApprovalText.bold}),e.jsx(b,{children:s.multiLevelApprovalText.regular})]})]})]}),e.jsx(V,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:q,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},Ze=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:_,videoUrl:J,analytics:x,onSetupButtonClick:K,onCreateNewRemiButtonClick:Q,onBackClick:X,onSetupReimbursementSuccess:T,onClickMenuIcon:ee})=>{const C=le(),[ie,se]=j.useState(!1),[te,P]=j.useState(!1),re=S(),l=k(),{remiTermsDetails:h}=i,R=ae(h?.fetchStatus.fetchState),oe=L.hasReimbursementAdminLevelAccess(C.loggedInUserRoleMap),w=L.hasReimbursementAccess(C.loggedInUserRoleMap)&&!oe,ne=!!o?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=w?U?s.employeeAcceptPromoText:s.employeePendingPromoText:s.promoText;j.useEffect(()=>{R==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&T?.()},[R,T,h?.fetchStatus]);const B=()=>{x?.trackReimbursementPromoScheduleDemo(),P(!0)};return e.jsxs($e,{children:[ie===!0?e.jsx(be,{onCancelClick:()=>{se(!1)},videoUrl:J,"data-testid":a("remi-promo-page-video-popup")}):null,te===!0?e.jsx(me,{onCancelClick:()=>{P(!1)},meetingUrl:_,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(ce,{title:s.title,backgroundColor:re.colors.grey4,onBackClick:X,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:ee,source:"ReimbursementPromoPage"}),e.jsxs(ye,{windowSize:l,children:[l==="small"?e.jsx(ke,{children:A}):e.jsx(Se,{children:A}),l==="small"?e.jsx(ve,{}):e.jsx(Te,{}),e.jsx(ze,{children:w?e.jsx(e.Fragment,{children:U&&!ne?e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:s.scheduleDemoButton,onClick:B,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:s.orText}),e.jsx(u,{variant:"primary",label:s.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:Q,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[s.terms.createTerms1,e.jsx(m,{href:s.terms.tosUrl,linkText:s.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),s.terms.terms2,e.jsx(m,{href:s.terms.privacyPolicyUrl,linkText:s.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),s.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:s.scheduleDemoButton,onClick:B,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:s.orText}),e.jsx(u,{variant:"primary",label:s.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:K,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[s.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,s.terms.terms3]})]})})]})]})};export{Ze as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as
|
|
1
|
+
import{d as Ee,q as Te,aP as N,aa as Ge,cT as qe,F as Ve,l as Ze,aU as be,j as t,fo as Je,p as Z,y as s,bG as Ye,k as Ke,ad as Qe,fH as ve,e7 as Xe,fI as et,bB as tt,dZ as it,aQ as nt,o as a,fK as ot,u as n,cx as at,d4 as lt,dc as st,fO as ke,fP as $e,gt as rt,n as ct,aM as Pe,B as je,bY as dt,ai as ut,by as mt}from"./index-CN7UAWAg.js";import{b as o,n as i}from"./vendor-Bs1fkIUX.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-C663UVhz-FUVjkpYI.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new je("standardSemiBold","largeSemiBold"),infoLabel:new je("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:r,onSaveMileageClick:J}){const l=Te(),D=Ee(),{formState:{errors:Y},trigger:K}=lt(),E=ft($,"mileageAmountInDenomination"),f=st(Y,E),{localData:c,updateStatus:F,mileageStatus:C}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Q,spendManagement:X}=Ve.getLocalizedStrings(),{reimbursement:ee}=X,[S,T]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:x}=ee,{setUp:ie}=Q,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(Ct,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(St,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:$e(C.code)}):null]}),t.jsxs(yt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:C.name,textColor:$e(C.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Tt,{children:[t.jsx(rt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:S||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:V=>V!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Lt,{children:S?t.jsx(ct,{label:x.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&J?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
|
|
@@ -68,10 +68,10 @@ import{d as De,q as Te,aP as N,aa as Ge,cT as qe,F as Le,l as Ze,aU as be,j as t
|
|
|
68
68
|
`,jt=i.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
|
-
`,At=i.div``,
|
|
71
|
+
`,At=i.div``,Dt=i(dt)`
|
|
72
72
|
color: ${e=>e.theme.colors.comingSoon};
|
|
73
73
|
margin-left: ${a.sp3};
|
|
74
|
-
`,
|
|
74
|
+
`,Et=i.div`
|
|
75
75
|
display: flex;
|
|
76
76
|
width: 100%;
|
|
77
77
|
flex-direction: column;
|
|
@@ -82,13 +82,13 @@ import{d as De,q as Te,aP as N,aa as Ge,cT as qe,F as Le,l as Ze,aU as be,j as t
|
|
|
82
82
|
height: ${a.sp6};
|
|
83
83
|
width: 100%;
|
|
84
84
|
position: relative;
|
|
85
|
-
`,
|
|
85
|
+
`,Vt=i.label`
|
|
86
86
|
display: flex;
|
|
87
87
|
padding-left: ${e=>h.infoLabelPaddingLeft.valuePx(e.size)};
|
|
88
88
|
color: ${e=>e.hasError===!0?Z.important:e.additionalInfoTextColor??e.theme.colors.hero};
|
|
89
89
|
${e=>`${ge.infoLabel.style(e.size)}`};
|
|
90
90
|
margin-top: ${a.sp1};
|
|
91
|
-
`,
|
|
91
|
+
`,Lt=i.div`
|
|
92
92
|
display: flex;
|
|
93
93
|
position: absolute;
|
|
94
94
|
top: 50%;
|
|
@@ -103,7 +103,7 @@ import{d as De,q as Te,aP as N,aa as Ge,cT as qe,F as Le,l as Ze,aU as be,j as t
|
|
|
103
103
|
&:hover {
|
|
104
104
|
color: ${e=>e.theme.colors.primary};
|
|
105
105
|
}
|
|
106
|
-
`,p={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},Ae="remiSetupPage",G="remiAccount",q="remiMileage",Yt=({remiSetupView:e,isDisabled:y,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:r,meetingUrl:J,analytics:l,accountsPromoConfig:
|
|
106
|
+
`,p={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},Ae="remiSetupPage",G="remiAccount",q="remiMileage",Yt=({remiSetupView:e,isDisabled:y,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:r,meetingUrl:J,analytics:l,accountsPromoConfig:D,onBackClick:Y,onBusinessVerificationSectionClick:K,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:C,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:Q,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:T,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:V})=>{const B=Ee(),u=Te(),[W,L]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:he,updateStatus:I,accountUpdateStatus:Le,plaidConnectionDetails:le,allBankAccounts:Ie,companyRemiInfo:ze,companyBillPayInfo:fe,mileageRateConfig:Me,isRefreshingViewInBackground:Re,selectedCompanyOfficer:g}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=j,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),we=N(I.fetchState),ye=N(se.fetchState),Ce=N(re.fetchState),z=Ge({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!W&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&L(!0),W&&_==="In-Progress"&&v==="Completed"&&L(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&se.fetchState==="Completed"||Ce==="In-Progress"&&re.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,ye,se.fetchState,Ce,re.fetchState]);const Ue=z.handleSubmit(P=>{l.trackEnableReimbursement(),S()}),He=async(P,R)=>{const m=R[G];if(P.includes(G)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&b?.id!=m.fundingAccount.selectedOption){const w=he.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&Q(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&b?.id!=null&&b?.zeniAccountId!=m.account.selectedOption){const w=m.account.allOptions.find(me=>me.value===m.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),U(m.account.selectedOption,b.id,b.accType)}}else if(P.includes(q)){const w=R[q];C(w)}};o.useEffect(()=>{const P=z.watch((R,{name:m})=>{m!=null&&R!=null&&qe(()=>He(m,R))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&I.fetchState==="Completed"&&T()},[T,we,I.fetchState]);const{commonSetUp:Se,spendManagement:Be}=Ve.getLocalizedStrings(),{reimbursement:We}=Be,{reimbursementSetup:M}=We,{setUp:k}=Se,ce=fe?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||Ze.isVerifiedPaymentAccountProviderStatusCode(b?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Se.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=B.mode==="light"?new be(B.colors.brandColorJadeLight):new be(B.colors.brandColorJadeDark),Ne=()=>{!W&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"?L(!0):K?.()};return t.jsxs(zt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:W,onClose:()=>L(!1),style:{backgroundColor:Z.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:d,updateStatus:I,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>L(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ye,{title:M.setupTitle,backgroundColor:B.colors.grey4,style:{zIndex:3},onBackClick:Y,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Ke,{size:"ExtraLarge",start:!0})}):t.jsx(Qe,{...z,children:t.jsx("form",{id:De(Ae),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Xe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Re}),t.jsx(et,{connectedAccountProvider:A,primaryFundingAccount:b,plaidConnectionDetails:le,allBankAccounts:Ie,allFundingAccounts:he,sectionId:G,isDisabled:y,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(tt,{width:p.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:V,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ht,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:q,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(it,{height:p.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(nt,{formId:De(Ae),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:I.fetchState==="In-Progress"||Le.fetchState==="In-Progress",isDisabled:y!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(ot,{isFooterRendered:ce&&!de,meetingUrl:J,analytics:l,productType:"reimbursement"})]})},zt=i.div`
|
|
107
107
|
display: flex;
|
|
108
108
|
min-height: 100%;
|
|
109
109
|
flex-direction: column;
|
|
@@ -137,4 +137,4 @@ import{d as De,q as Te,aP as N,aa as Ge,cT as qe,F as Le,l as Ze,aU as be,j as t
|
|
|
137
137
|
display: flex;
|
|
138
138
|
flex-direction: column;
|
|
139
139
|
row-gap: ${e=>p.sectionRowGap.valuePx(e.windowSize)};
|
|
140
|
-
`,pe=e=>{const{allBankAccounts:y,allFundingAccounts:j,mileageDetails:A,primaryFundingAccount:$}=e,{localData:d}=A;return{[G]:{fundingAccount:{selectedOption:$?.id,allOptions:j.map(r=>({label:r.label,value:r.id,isRecommended:r.accType==="depositAccount"}))},account:{selectedOption:$?.zeniAccountId,allOptions:y.map(r=>({label:r.accountName,value:r.accountId}))}},[q]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},
|
|
140
|
+
`,pe=e=>{const{allBankAccounts:y,allFundingAccounts:j,mileageDetails:A,primaryFundingAccount:$}=e,{localData:d}=A;return{[G]:{fundingAccount:{selectedOption:$?.id,allOptions:j.map(r=>({label:r.label,value:r.id,isRecommended:r.accType==="depositAccount"}))},account:{selectedOption:$?.zeniAccountId,allOptions:y.map(r=>({label:r.accountName,value:r.accountId}))}},[q]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},De=e=>`${e}_form`;export{Yt as default,De as uniqueName};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as M,j as b,cE as G,cF as V,cG as W,kl as X,aX as Y,l as q}from"./index-
|
|
1
|
+
import{F as M,j as b,cE as G,cF as V,cG as W,kl as X,aX as Y,l as q}from"./index-CN7UAWAg.js";import{b as f}from"./vendor-Bs1fkIUX.js";import{u as z}from"./ReviewOverlay-B73a-P2j-CTP6pyS2.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const{common:n,spendManagement:{reimbursement:j}}=M.getLocalizedStrings(),o=j.bulkActions;let I;const ae=({remisReviewView:e,isAdmin:l,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,a]=f.useState(!1),[m,_]=f.useState(P(e,h,l)),[x,R]=f.useState(h),[B,J]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,l)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,l]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=Z(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),a(!0)},$={onOkClick:u=>{a(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,q.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:L,description:U}=H(p,S,E,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},N=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(G,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(z,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:C}})]})},P=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=X(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:Y("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Z=e=>{const{this_:l,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},H=(e,l,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=l>1,a=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",a?j.bulkActions.reports:o.report).replace("<_has_>",a?s:r),l===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",a?c:p).replace("<_do_>",a?g:h):_=`${l}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",a?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",a?c:p)),{title:m,description:_}};export{ae as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{d as h,j as r,aL as a,aM as m,b2 as j,F as f,aR as l,bJ as x,ai as g,o as c,b3 as C}from"./index-
|
|
1
|
+
import{d as h,j as r,aL as a,aM as m,b2 as j,F as f,aR as l,bJ as x,ai as g,o as c,b3 as C}from"./index-CN7UAWAg.js";import{n as s,b as d}from"./vendor-Bs1fkIUX.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(x,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
|
-
`;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function
|
|
3
|
+
`;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function q({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(C,{children:({height:n,width:i})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
|
|
4
4
|
justify-content: space-between;
|
|
5
5
|
`,b=s.div`
|
|
6
6
|
height: ${c.sp10};
|
|
@@ -23,4 +23,4 @@ import{d as h,j as r,aL as a,aM as m,b2 as j,F as f,aR as l,bJ as x,ai as g,o as
|
|
|
23
23
|
color: ${e=>e.theme.colors.champion};
|
|
24
24
|
`,v=s(g)`
|
|
25
25
|
color: ${e=>e.theme.colors.hero};
|
|
26
|
-
`,L=s(y)``;function
|
|
26
|
+
`,L=s(y)``;function z({dimension:e,cardType:o,cardIndex:t,reportTitle:n,onReloadData:i}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>i(t,o),children:r.jsxs(k,{children:[r.jsxs($,{children:[n??j(o)," "]}),r.jsx(b,{children:r.jsx(L,{})}),r.jsx(v,{children:f.getLocalizedStrings().card.failedText})]})})}export{T as E,z as I,q as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as K,q as ie,cs as me,aa as fe,j as o,ap as ge,F as X,ct as ee,ad as xe,y as F,aQ as ye,o as n,cu as be,cv as we,cw as _e,cx as $e,cy as ve,an as ce,cz as Ce,u as p,ai as ke,aC as Q,bJ as je,aU as
|
|
1
|
+
import{d as K,q as ie,cs as me,aa as fe,j as o,ap as ge,F as X,ct as ee,ad as xe,y as F,aQ as ye,o as n,cu as be,cv as we,cw as _e,cx as $e,cy as ve,an as ce,cz as Ce,u as p,ai as ke,aC as Q,bJ as je,aU as Ne,am as Se,av as Ie}from"./index-CN7UAWAg.js";import{b as f,w as de,n as d}from"./vendor-Bs1fkIUX.js";import{R as P,I as Fe}from"./CollapsableReportTable-o0pGO_sw-CoQujIPL.js";const W=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(W),end_date:e.thisPeriod.endDate.format(W)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Oe=e=>e!=null?{start_date:e.startDate.format(W),end_date:e.endDate.format(W)}:void 0;function De(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(W):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Oe(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(De(a)))}`;try{const h=await be({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const y=we(h.headers,t.defaultFileName),b=await h.arrayBuffer();_e(b,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
|
|
2
2
|
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -9,7 +9,7 @@ import{d as K,q as ie,cs as me,aa as fe,j as o,ap as ge,F as X,ct as ee,ad as xe
|
|
|
9
9
|
position: relative;
|
|
10
10
|
height: ${n.sp8};
|
|
11
11
|
cursor: pointer;
|
|
12
|
-
`,Ee=d(
|
|
12
|
+
`,Ee=d(Se)`
|
|
13
13
|
color: ${e=>e.theme.colors.primary};
|
|
14
14
|
margin-top: -2px;
|
|
15
15
|
`,Le=d(Ie)`
|
|
@@ -20,10 +20,10 @@ import{d as K,q as ie,cs as me,aa as fe,j as o,ap as ge,F as X,ct as ee,ad as xe
|
|
|
20
20
|
:hover {
|
|
21
21
|
color: ${e=>e.theme.colors.primary};
|
|
22
22
|
}
|
|
23
|
-
`,Ae=e=>{const{value:c,onClick:a}=e,t=K();return o.jsxs(Be,{onClick:a,children:[o.jsx(Ee,{style:{color:t.colors.primary},children:c}),o.jsx(Le,{})]})},Te=de.memo(Ae);function ze({backgroundColor:e,foregroundColor:c,animated:a,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:a!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:p[3],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:p[8],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:p[4]})]})}function he({nestedClass:e,isLastNode:c,config:a,parentNodeIDs:t}){const r=
|
|
23
|
+
`,Ae=e=>{const{value:c,onClick:a}=e,t=K();return o.jsxs(Be,{onClick:a,children:[o.jsx(Ee,{style:{color:t.colors.primary},children:c}),o.jsx(Le,{})]})},Te=de.memo(Ae);function ze({backgroundColor:e,foregroundColor:c,animated:a,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:a!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:p[3],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:p[8],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:p[4]})]})}function he({nestedClass:e,isLastNode:c,config:a,parentNodeIDs:t}){const r=P("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:r,isLastNode:c,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((y,b)=>he({nestedClass:y,config:a,isLastNode:b===e.children.length-1,parentNodeIDs:[...t,r]})),h}function Me(e,c){const a=e.map((t,r)=>{const h=P("checkbox_and_name_only",[],t.classId[0]),y={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:c}},b=t.children.map(O=>he({nestedClass:O,config:c,isLastNode:r===t.children.length-1,parentNodeIDs:[h]}));return y.children.push(...b),y});return{config:c,headerNodes:[],contentNodes:[...a]}}function Re(e,c){Object.assign(e.config,c);const a=e.contentNodes;return a.forEach(t=>ue(t,c)),{config:c,headerNodes:[],contentNodes:[...a]}}function ue(e,c){Object.assign(e.reportElementData.config,c),e.children.forEach(a=>ue(a,c))}const oe={contentPaddingLeft:new F(p[3],p[3],p[2]),contentPaddingRight:new F(p[3],p[3],p[2])},We=d.div`
|
|
24
24
|
height: ${e=>e.height}px;
|
|
25
25
|
width: 100%;
|
|
26
|
-
`,Ye=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:y,onScroll:b,nodeOpenStatus:
|
|
26
|
+
`,Ye=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:y,onScroll:b,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:D})=>{const Y=K(),G=ie(),[$,j]=f.useState(void 0),[T,w]=f.useState(!1),[z,B]=f.useState({}),[g,M]=f.useState(void 0),[E,v]=f.useState(r),H="none",L=i=>r==="account_group"?!0:t?.length>0?t.find(l=>l[0]===i[0])!=null:!1,N=(i,l)=>{w(!0),B(i),D?.(i,l,r==="account_group"?!0:void 0),_(i,l)},_=(i,l)=>{const m=V(i);for(const C of m.children)D?.(C.classId,l),_(C.classId,l)},V=i=>{let l=a.filter(m=>m.classId[0]===i[i.length-1])[0];for(let m=i.length-2;m>=0;m--)l=l.children.filter(C=>C.classId[0]===i[m])[0];return l},q=i=>{if(i.length>1){const l=V(i.slice(1));let m=!1;for(const C of l.children)if(t.find(s=>s[0]===C.classId[0])===void 0){m=!0;break}m===!0?D?.(l.classId,!0):D?.(l.classId,!1),B(l.classId)}};f.useEffect(()=>{T&&q(z)}),f.useEffect(()=>{const i={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:H,firstMonthOfFY:c,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:L,showClassAccountNumber:h};if($==null||!Q(g,a)||!Q(E,r)||T===!0){const l=Me(a,i);M(a),j(l),v(r)}else{const l=Re($,i);j(l),v(r)}},[a,r,t]);const[J,Z]=f.useState(5),A=i=>{const l=i+p[6];Z(l)};return $!=null?o.jsx(We,{height:J,children:o.jsx(Fe,{backgroundColor:r==="classes"?new Ne(Y.colors.background):void 0,rootNodes:$,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:oe.contentPaddingLeft.value(G),right:oe.contentPaddingRight.value(G)},scrollPosition:y,onScroll:b,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:N,onReportTableHeightChanged:A})}):null},k={width:new F(350,400,400),height:new F(165,165,165),buttonWidth:new F(62,62),buttonHeight:new F(p[5],p[5]),containerWidth:new F(150,400,400)},Ge=d.div`
|
|
27
27
|
position: relative;
|
|
28
28
|
pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
|
|
29
29
|
`,He=d.div`
|
|
@@ -147,4 +147,4 @@ import{d as K,q as ie,cs as me,aa as fe,j as o,ap as ge,F as X,ct as ee,ad as xe
|
|
|
147
147
|
margin-left: ${n.sp5};
|
|
148
148
|
margin-top: -12px;
|
|
149
149
|
color: ${e=>e.theme.colors.hero};
|
|
150
|
-
`,{reportViewSelector:I,common:{footer:ne}}=X.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function ro({reportId:e,firstMonthOfFY:c,nodes:a,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:y,onOpenAccountViewMode:b,onSaveClick:
|
|
150
|
+
`,{reportViewSelector:I,common:{footer:ne}}=X.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function ro({reportId:e,firstMonthOfFY:c,nodes:a,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:y,onOpenAccountViewMode:b,onSaveClick:O,isClassViewDisabled:U,downloadPage:D,showAccountGroups:Y=!0,onResyncReports:G,isPageFetchInProgress:$=!1,lastRefreshSuccessTime:j}){const T=K(),w=ie(),[z,B]=f.useState(!1),[g,M]=f.useState(r),[E,v]=f.useState({}),H=(s,u)=>(s.forEach(x=>{u.push(x.classId),u=H(x.children,u)}),u),L=H(a,[]),[N,_]=f.useState(g==="classes"?h:L),V=t!=="Completed"||g==="classes"&&N.length===L.length;me({componentName:`reports.${e}`});const q=s=>s==="classes"?I.classes.label:Y===!0?I.accountGroups.label:I.accounts.label,J=fe({mode:"all"}),Z=J.handleSubmit(()=>{B(!1),g==="classes"?O?.("classes",N):O?.("account_group")}),A=s=>{if(M(s),s==="classes")v({}),_([]);else{_(L);let u={};a.forEach(x=>{const S=P("checkbox_and_name_only",[],x.classId[0]);u=Object.assign({},u,{[S]:!1})}),v(u)}},i=()=>{z===!0&&m(),B(!z);let s={};a.forEach(u=>{const x=P("checkbox_and_name_only",[],u.classId[0]);r==="account_group"||N.find(S=>S[0]===u.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),v(s)},l=(s,u,x)=>{if(x===!0&&(M("classes"),_(L)),u===!0){const S=P("checkbox_and_name_only",[],s[0]);E[S]=!0,v(E),_(R=>R.filter(pe=>pe[0]!==s[0]))}else{const S=P("checkbox_and_name_only",[],s[0]);E[S]=!1,N.find(R=>R[0]===s[0])===void 0&&_(R=>[...R,s])}},m=()=>{B(!1),M(r),_(h)},C=()=>{$===!1&&G?.()};return f.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};a.forEach(u=>{const x=P("checkbox_and_name_only",[],u.classId[0]);s=Object.assign({},s,{[x]:!1})}),v(s)}},[t]),o.jsx(ge,{onClickAway:m,children:o.jsxs(Ge,{isDisabled:U??!1,children:[D===!0?o.jsx(Te,{value:q(r),onClick:()=>{b?.(),i()}}):o.jsxs(He,{windowSize:w,children:[o.jsxs(Ve,{onClick:s=>{s.preventDefault(),b?.(),i()},children:[o.jsx(qe,{className:"dropdownIcon"}),q(r)]}),r==="classes"?o.jsx(Qe,{onClick:C,children:$?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${ee(j)}`,o.jsx(Xe,{})]})}):null]}),z?o.jsx(xe,{...J,children:o.jsx("form",{id:le(re),onSubmit:Z,children:o.jsxs(Je,{width:k.width.value(w),children:[o.jsx(te,{checked:g==="account_group",children:o.jsxs(se,{onClick:()=>g!=="account_group"?A("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>A(s.currentTarget.value),checked:g==="account_group",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:Y===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(Ke,{}),o.jsxs(te,{checked:g==="classes",children:[o.jsxs(se,{onClick:()=>t==="Completed"?A("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?A(s.currentTarget.value):null,checked:g==="classes",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),$||t!=="Completed"?null:o.jsx(eo,{children:j&&`${ee(j)}`}),t==="Completed"?o.jsx(Ue,{id:"sectionformcontainer",children:o.jsx(oo,{reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:N,selectedView:g,nodeOpenStatus:E,showClassAccountNumber:y,onToggleCheck:l})}):o.jsx(ze,{backgroundColor:T.colors.grey3,foregroundColor:T.colors.grey4,width:k.width.value(w),height:k.height.value(w),animated:!0})]}),o.jsx(Ze,{children:o.jsx(ye,{formId:le(re),primaryBtn:{label:ne.save,style:{width:k.buttonWidth.valuePx(w),height:k.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:V,size:"small"},showCancel:!0,cancelBtn:{label:ne.cancel,style:{width:k.buttonWidth.valuePx(w),height:k.buttonHeight.valuePx(w)},onClick:m,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const oo=de.memo(Ye,Q);export{no as h,ro as u};
|