@zeniai/web-cockpit-ui 1.15.13-dev → 1.15.13-qa
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-BlujuoRH-D3z2m9vf.js → ACHDetailsPage-BlujuoRH-Dd5Jdtmf.js} +1 -1
- package/dist/assets/{AIPerformancePage-DfgPUakC-C7_4KJtd.js → AIPerformancePage-DfgPUakC-ZgXRgVKD.js} +1 -1
- package/dist/assets/{AccountInfoPage-BYwGsz6J-ilS3p_4u.js → AccountInfoPage-BYwGsz6J-Ch1FHntj.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CTvsml8u-HiMO1t4f.js → AccountInfoPageContent-CTvsml8u-BgWKlEhB.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DeYVMh3B-Dec8Ripp.js → AccountLockedInfoModal-DeYVMh3B-D6y6Bwr0.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-D6WT5Co_-Boi6JvlJ.js → AccountReconDetailsDrawerPage-D6WT5Co_-Caf4DPub.js} +1 -1
- package/dist/assets/{AccountRow-FmhkZVL4-BiCaU5gp.js → AccountRow-FmhkZVL4-B4hjOMzk.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-B5Mri6qW-C55uOtTG.js → AccountsPromoCardStack-B5Mri6qW-cjKgMtIm.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-Bs4dQyRL-ChMzAqlj.js → AddAddressForCardDrawer-Bs4dQyRL-Ctl6nn7e.js} +1 -1
- package/dist/assets/{AddToWalletPage-fBplELoj-BbSWfj-_.js → AddToWalletPage-fBplELoj-DIi5wnhQ.js} +1 -1
- package/dist/assets/{AgingReportsPage-CgeLN6Su-mjdbj-V7.js → AgingReportsPage-CgeLN6Su-CYUQwEno.js} +1 -1
- package/dist/assets/{AllUserItems-vOFCgjs7-BawEw1bw.js → AllUserItems-vOFCgjs7-CZxF22QA.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CF5WKuOc-DwzZ4J6w.js → ApAgingDetailPage-CF5WKuOc-G76Jhct9.js} +1 -1
- package/dist/assets/{AppBasePage-DrIjva6e-BEoSV9em.js → AppBasePage-DrIjva6e-CIH4lORb.js} +1 -1
- package/dist/assets/{AppDrawerContent-Co1DpiWD-BseTWq0X.js → AppDrawerContent-Co1DpiWD-C1aJG4Zb.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-tYbxBThK-Cp_BZtLr.js → ApprovalRulesSettingsPage-tYbxBThK-Cxpify_d.js} +1 -1
- package/dist/assets/{ArAgingChart-B2zTJJgb-BW-4V4KX.js → ArAgingChart-B2zTJJgb-CxGZOD7f.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-0nCr6crv-CVAwjIoB.js → ArAgingDetailPage-0nCr6crv-Devrv-ey.js} +1 -1
- package/dist/assets/{AttachmentView-vlVaH4YF-DjHAa-jm.js → AttachmentView-vlVaH4YF-B4GAfoTh.js} +1 -1
- package/dist/assets/{BankAccountSection-CDKiTWgn-CtT_fqlj.js → BankAccountSection-CDKiTWgn-BmAeSXp7.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-tSnRJm3S-Xh7INFxm.js → BankAccountWarningSection-tSnRJm3S-B1s5Qbs5.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-O_L8CHJf-Lbkg03Kb.js → BankConnectionsSettingsPage-O_L8CHJf-r9FaHN_N.js} +1 -1
- package/dist/assets/{BillDetailPage-DR3JefXf-CT_vRh92.js → BillDetailPage-DR3JefXf-DQcSQBQN.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-2w8HO-NU-BrDPRKpx.js → BillPayApprovalRuleDetailPage-2w8HO-NU-DEj9c-_Y.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-yFoEpHK8-mn4XE1DW.js → BillPayApprovalRulesPage-yFoEpHK8-DvqKTU1y.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DZkA_0AV-wh6M-Qtv.js → BillPayPromoPage-DZkA_0AV-B7Z2nWn1.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-B2j-es9G-Cgscrq-x.js → BillPaySetUpPage-B2j-es9G-BzaThv8U.js} +1 -1
- package/dist/assets/{BillingSettingsPage-ayQNGWSW-BH36NbEd.js → BillingSettingsPage-ayQNGWSW-12xUM18b.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-B2LDJ9-N-Bz6yNrUs.js → BillsBulkReviewDrawerPage-B2LDJ9-N-Bk0TD_dk.js} +1 -1
- package/dist/assets/{BoxItem-B0bHU_KA-CwJAi_XO.js → BoxItem-B0bHU_KA-Dy4QmdXc.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DZ27apcr-60B1XBNo.js → BusinessVerificationPage-DZ27apcr-BQW590Mb.js} +1 -1
- package/dist/assets/{CardNumberSubText-CpqumrS--C5H93W0D.js → CardNumberSubText-CpqumrS--CXxxAA8f.js} +1 -1
- package/dist/assets/{CashbackDetailPage-C3oNmfln-Cjfl1QQU.js → CashbackDetailPage-C3oNmfln-Cu2JEVGt.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-C9XhHqSo-C6G4QIZB.js → ChargeCardDetailPage-C9XhHqSo-BkvxAWzR.js} +1 -1
- package/dist/assets/{ChargeCardListPage-B_PxtkQX-D4XUj6S4.js → ChargeCardListPage-B_PxtkQX-BnMys8lA.js} +1 -1
- package/dist/assets/{ChargeCardListTable-kp0WwIZo-C7S3-nFL.js → ChargeCardListTable-kp0WwIZo-Cm-Owd6-.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-D1l3Qgr_-CcXK8zox.js → ChargeCardPaymentHistoryPage-D1l3Qgr_-DI6gSbof.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DcmgTF8u-uElL894v.js → ChargeCardPromoPage-DcmgTF8u-D_3YTdIj.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-BX9fPIf_-CJBf2z8R.js → ChargeCardSetupPage-BX9fPIf_-CyjwQIJA.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-a5u9wGDg-CReuXYls.js → ChargeCardStatementsPage-a5u9wGDg-Brg2gDI9.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-_DvlXSse-DhB3lKOy.js → CheckDepositDrawerPage-_DvlXSse-B_BucfsH.js} +1 -1
- package/dist/assets/{CollapsableReportTable-DgteU0nB-DwU6xqcB.js → CollapsableReportTable-DgteU0nB-Cxehs4Kl.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DG1ZQ-UL-BWPYN3Ux.js → CompanyOfficerDetailsSection-DG1ZQ-UL-DV2WNNsF.js} +1 -1
- package/dist/assets/{CompanyPassportCard-JfMVwFHV-DIdzwTm1.js → CompanyPassportCard-JfMVwFHV-yhZW8SN7.js} +1 -1
- package/dist/assets/{CompanyPassportPage-2j8z-oge-D6U4VneL.js → CompanyPassportPage-2j8z-oge-BKw2EluX.js} +1 -1
- package/dist/assets/{CompleteProfile-Cm8XlcS3-h3qANDX9.js → CompleteProfile-Cm8XlcS3-tX4c8EKJ.js} +1 -1
- package/dist/assets/{ConfettiBurst-BtmMysff-DXW2t6JP.js → ConfettiBurst-BtmMysff-DSGDjDAM.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BxSAnKo6-BT1rzueh.js → CreateOrEditVendorPage-BxSAnKo6-D4OGgB6l.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-a2j9Vyid-B5YbQ1Qy.js → CreditCardPaymentDrawerPage-a2j9Vyid-A-8aAfdw.js} +1 -1
- package/dist/assets/{CurrencySelectField-CbBlYqRB-D1pLCzjN.js → CurrencySelectField-CbBlYqRB-C0JlTtQx.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CG508vOx-CLWU-GVx.js → CustomerOnboardingActivationPage-CG508vOx-DfM0MC9z.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CuP19GYc-DKOxICFF.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BszHZi0e-DON_7YLk.js → CustomerOnboardingDetailPageSkeleton-BszHZi0e-4lgjtzgv.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-Cg8ti5NY-DlxEJtW7.js → CustomerOnboardingNoStepsPage-Cg8ti5NY-CNRxBWCb.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DM-gDkp1-rcTTcpJq.js → CustomerOnboardingPage-DM-gDkp1-DzvdKtNr.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BryLMJRG-DDfHjs9L.js → CustomerOnboardingProductSuitePage-BryLMJRG-IKtHrSqJ.js} +1 -1
- package/dist/assets/{Dashboard-BRm1rkFD-sRJsQcvd.js → Dashboard-BRm1rkFD-CRrn0mlI.js} +1 -1
- package/dist/assets/{DashboardReportPage-rtbUwJSW-Cfsk6TQp.js → DashboardReportPage-rtbUwJSW-DlJn5Hkl.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-DVTdlTEZ-LE3GU0DJ.js → DashboardSidebarBackgroundAnimation-DVTdlTEZ-BGfu-u_U.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BbKLxsPR-Dpo7wVCS.js → DepositAccTransactionItem-BbKLxsPR-WtW7LWPm.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-0AV-fx2Z-BFJB16zN.js → DepositAccTransactionListPage-0AV-fx2Z-CWuRJMem.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BKumlfKE-Cqz9aujw.js → DomesticWireDetailsPage-BKumlfKE-CU_KFPsO.js} +1 -1
- package/dist/assets/{DownloadOverlay-C6GFjg2N-DrkN4pip.js → DownloadOverlay-C6GFjg2N-dHGiNNT4.js} +1 -1
- package/dist/assets/{DrawerPage-BjfQ_wvz-BRg4aJBc.js → DrawerPage-BjfQ_wvz-BAoek7CI.js} +1 -1
- package/dist/assets/{EditPeoplePage-59PeI1Ul-cMTnU9vy.js → EditPeoplePage-59PeI1Ul-7BEtuzGE.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-D5cPRveU--6MVI5yI.js → EditReimbursementDetailPage-D5cPRveU-XVZs5ANF.js} +1 -1
- package/dist/assets/{EntityDetailPage-CiO1dOzo-BB1u6uOD.js → EntityDetailPage-CiO1dOzo-D_qDJTqi.js} +1 -1
- package/dist/assets/{EntitySummarySection-DBQxz0Ak-YgKNz1nX.js → EntitySummarySection-DBQxz0Ak-DIU4nLDs.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-D9JnRKeQ-bE2V-UEo.js → ExpenseAutomationOverviewPage-D9JnRKeQ-DcgUsBHj.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-isWf-Yjm-BEj6GzxJ.js → ExpenseAutomationPage-isWf-Yjm-mtyufb1k.js} +1 -1
- package/dist/assets/{ExpressPayPage-iL1BYLic-BqUwfpLY.js → ExpressPayPage-iL1BYLic-DNZMOaZn.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CFz7RpI6-DbRQaCew.js → FeaturePreviewPage-CFz7RpI6-DGwrwI6h.js} +1 -1
- package/dist/assets/{FollowStepsSection-Crd9GwnW-RQu2gQ-V.js → FollowStepsSection-Crd9GwnW-C67UFUxv.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-xUatsnwu-Dx9d2TTm.js → GlobalReviewListPage-xUatsnwu-B_jOR6kE.js} +1 -1
- package/dist/assets/{InformationCardStack-CgSYiHdK-Cf9Cjw1k.js → InformationCardStack-CgSYiHdK-TXOis1xL.js} +1 -1
- package/dist/assets/{InsightsCardStack-dkuf5D9A-Duqx5-xn.js → InsightsCardStack-dkuf5D9A-Bi0NlGwc.js} +1 -1
- package/dist/assets/{InsightsSection-CUk29Ace-BKDJK0uo.js → InsightsSection-CUk29Ace-Bs7LOW5A.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-As-313jz-BWoXfvd2.js → IntegrationsSettingsPage-As-313jz-gWQZcbmC.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-CqMsBHlO-CbK2_2UB.js → InternationalWireSwiftDetailsPage-CqMsBHlO-hyhi_VT_.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BJ9-Rvqo-C5xNuG17.js → InternationalWireVerificationPage-BJ9-Rvqo-BTBmsMoP.js} +1 -1
- package/dist/assets/{InviteFormPage-D7yOmbjN-B6cNY2j6.js → InviteFormPage-D7yOmbjN-DRh2E_al.js} +1 -1
- package/dist/assets/{InvitePageListView-CUeSQD7S-BB-ili2p.js → InvitePageListView-CUeSQD7S-DqLMS2jC.js} +1 -1
- package/dist/assets/{InvitePeoplePage-BY6iz4UW-16zeXtyQ.js → InvitePeoplePage-BY6iz4UW-_LkKTuEm.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-fjn4uF_l-DBvp2GNb.js → InvoiceUploadSection-fjn4uF_l-CtGULxDA.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-B30u11O2-BHXfiwVd.js → IssueChargeCardPage-B30u11O2-BbnI_a88.js} +1 -1
- package/dist/assets/{LabeledAddressValue-CJZ_1zh1-dIyC1ckB.js → LabeledAddressValue-CJZ_1zh1-DgOJaHiW.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-3BEuHr_a-BAXHOnek.js → LabeledAddressValueField-3BEuHr_a-BjZNJRNs.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DqtbWhaH-Ct8s61sn.js → LabeledControlledCheckBoxField-DqtbWhaH-DCCVcSia.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-t7lnpz15-B8MvgThW.js → LabeledCountryMultiSelectField-t7lnpz15-D8FuO5XK.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DSrFEwMO-BtK2wHhP.js → LabeledCreatableSingleSelectField-DSrFEwMO-BKreuFG-.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CYvUm3Rk-DLfE-kKo.js → LabeledDocumentField-CYvUm3Rk-DVDWNVjk.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-IohlqRi7-BoY6bhCM.js → LabeledDropDownFormattedTextField-IohlqRi7-BIeZ8HiN.js} +1 -1
- package/dist/assets/{LabeledMultiSelectField-CveBXp8L-BAd1gTI4.js → LabeledMultiSelectField-CveBXp8L-VcfEoi4D.js} +1 -1
- package/dist/assets/{LabeledText-C9CoADG4-BsL6jbJB.js → LabeledText-C9CoADG4-kebiAoiw.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B6q4n0f5-BWHNFjm5.js → LabeledUserSingleSelectWithSubtitlesField-B6q4n0f5-mzAsluz6.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-B-0ZfQFs-BLpCJZWp.js → LabeledZeniRolesDropDownField-B-0ZfQFs-DQJ7lIYd.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-CLo-jbfZ-CgODjcQ0.js → LinkJETransactionPage-CLo-jbfZ-BP0AwRKd.js} +1 -1
- package/dist/assets/{LockCardPage-CmWzTH0n-B_X-TwZ4.js → LockCardPage-CmWzTH0n-BFlTHvg4.js} +1 -1
- package/dist/assets/{LowBalancePopup-BUAKDPHL-BfDsvGUL.js → LowBalancePopup-BUAKDPHL-B-KZGBlT.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-v539jeyl-sH7kLHfx.js → MagicLinkACHDetailsPage-v539jeyl-CJomAHzE.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CU9g_d2_-gcBn5f-G.js → MagicLinkDomesticWireDetailsPage-CU9g_d2_-nKGmJ40l.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-CYupqopA-BhBR0cCB.js → MagicLinkInternationalWireDetailsPage-CYupqopA-DeZUaaBL.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BGSpNBaK-DRZ7k8D2.js → MagicLinkSuccessPage-BGSpNBaK-CW6IvAZN.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BKIOmha4-ChpstG69.js → MagicLinkTitleSection-BKIOmha4-DeepZ9HN.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BwgWy_VZ-Do6nH1qr.js → MailingDetailsSection-BwgWy_VZ-BUG7NCIc.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-B3HEwRST-BMNPEzRQ.js → MyBankConnectionsSettingsPage-B3HEwRST-gjCWp3eD.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Cy_JIUO5-CXr2StVT.js → MyPendingActivationChargeCardListPage-Cy_JIUO5-CYi0CFHo.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-D4XR8lj4-Cx77Yc0W.js → MyProfileSettingsPage-D4XR8lj4-Dp3XDCA2.js} +1 -1
- package/dist/assets/{NavBarWithPicker-Brxnh3kz-BBzh1_Q6.js → NavBarWithPicker-Brxnh3kz-BA6BmzeV.js} +1 -1
- package/dist/assets/{NavigationArrow-C1HvrCIx-DFOmLMLf.js → NavigationArrow-C1HvrCIx-eBcwRB_h.js} +1 -1
- package/dist/assets/{NavigationDots-Ttv3r4BR-v2ws1TaA.js → NavigationDots-Ttv3r4BR-BmNd3gQF.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-rrVa4Iiv-lDEd0itd.js → NewGlobalMerchantPage-rrVa4Iiv-BIwnJ-_Z.js} +1 -1
- package/dist/assets/{NoDataChart--T7v827k-zXeqjU35.js → NoDataChart--T7v827k-N1NjmdMu.js} +1 -1
- package/dist/assets/{NoDataTable-cJmfr934-D57XH4Vn.js → NoDataTable-cJmfr934-B94qPxg7.js} +1 -1
- package/dist/assets/{NotFoundPage-C-RS1j9W-DH4NAkkX.js → NotFoundPage-C-RS1j9W-DQWzTEg5.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-Bt94GV9--r7sgcB96.js → NotificationSettingsPage-Bt94GV9--BVC4OLZo.js} +1 -1
- package/dist/assets/{NotificationsListConfig-CbWdzORJ-BsmAt2Aw.js → NotificationsListConfig-CbWdzORJ-MhsBqOYT.js} +1 -1
- package/dist/assets/{NotificationsPage-kZGgGVaC-BAHmfRGl.js → NotificationsPage-kZGgGVaC-zvIXXIC-.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BSoM5hsv-8kUubW4x.js → OpExByVendorPage-BSoM5hsv-Bb8IrTkh.js} +1 -1
- package/dist/assets/{OverlayContainerPage-IDTUbuAC-C05m2YxE.js → OverlayContainerPage-IDTUbuAC-Bhrq7EM_.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-C181kEf--CfV2ma5M.js → PandLWithForecastPage-C181kEf--TKHh2C5l.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DqDvhQwH-C-RxqOsn.js → PaymentAccountSetupBillingAddressSection-DqDvhQwH-CYm2Hw3U.js} +1 -1
- package/dist/assets/{PeoplePage-ByvK4lsu-B40YfrBC.js → PeoplePage-ByvK4lsu-vcFsHNs3.js} +1 -1
- package/dist/assets/{ProductsCarousel-CCLEQfr4-D3JLfCUB.js → ProductsCarousel-CCLEQfr4-I7QWzOtX.js} +1 -1
- package/dist/assets/{PromoBaseCards-BESaQCrl-gKsHUW_9.js → PromoBaseCards-BESaQCrl-CNjEFCSA.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BhmH5aji-CM5T8oTr.js → QBOConnectionDialog-BhmH5aji-CFc8C6Qx.js} +1 -1
- package/dist/assets/{QBOSetupSection-BevEEFTb-Jbk-oPo7.js → QBOSetupSection-BevEEFTb-BnGksb95.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Dklp8fND-C3LBVHUX.js → ReimbursementApprovalRuleDetailPage-Dklp8fND-UoScHaM0.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-CCo730ny-q5c8fyV0.js → ReimbursementApprovalRulesPage-CCo730ny-SbXFn_0A.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-D8G3Aoci-DIVONTh0.js → ReimbursementDetailPage-D8G3Aoci-bE7GSifH.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-B8BSm0-k-Bt9GjQuu.js → ReimbursementPromoPage-B8BSm0-k-DoAB3kjA.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-KRQIL0VK-DR0ER4Yx.js → ReimbursementSetUpPage-KRQIL0VK-7SnWIfaP.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B77ypxnc-BkObb0RE.js → ReimbursementsBulkReviewDrawerPage-B77ypxnc-C-JnzSc1.js} +1 -1
- package/dist/assets/{ReloadCard-0KQtayY--Cg4JfrF6.js → ReloadCard-0KQtayY--Bl87L1FQ.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-wrUJSIfk-Dns-QQbX.js → ReportTableViewSelector-wrUJSIfk-2LsgXwby.js} +1 -1
- package/dist/assets/{ReportsPage-D-r0S90r-CtLOp9ey.js → ReportsPage-D-r0S90r-lHJmVa6A.js} +1 -1
- package/dist/assets/{RevenueChart-4kIDtnAc-WBQ50ylJ.js → RevenueChart-4kIDtnAc-CuxrvYRm.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BqIBTewY-C8DdFF_e.js → ReviewDetailsPage-BqIBTewY-DCDTcOA3.js} +1 -1
- package/dist/assets/{ReviewOverlay-DjazNKfI-D9LHGfoS.js → ReviewOverlay-DjazNKfI-BvB_z9vd.js} +1 -1
- package/dist/assets/{RoleWithToolTip-CjvIxkPO-Bi_70Hu8.js → RoleWithToolTip-CjvIxkPO-i8Jvb-Om.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DBfwlnR1-bCnucyiC.js → ScheduleDetailsFixedAssetsPage-DBfwlnR1-a5rKuO2E.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-CLEKOymC-B3NLZeIV.js → ScheduleDetailsPage-CLEKOymC-D9OGnjW_.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-Dnapx3YK-Be50KNDE.js → ScheduleSequenceTable-Dnapx3YK-B3LHOpVc.js} +1 -1
- package/dist/assets/{ScreenRoutes-S2WD5yPN.js → ScreenRoutes-Bw_CLYj-.js} +1 -1
- package/dist/assets/{SetUpAccountSection-D7Nf4cYj-UGNHCsDO.js → SetUpAccountSection-D7Nf4cYj-D_9hYtq8.js} +1 -1
- package/dist/assets/{SignIn-Cl1If8Mq-CvFGHXZ8.js → SignIn-Cl1If8Mq-ChOhS8Cq.js} +1 -1
- package/dist/assets/{SignInScreen-CFwIVPDY.js → SignInScreen-DnCtQXMH.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-B8AdQD7w-DscL1E8I.js → SpendManagementListViewPage-B8AdQD7w-2SnG46U-.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-BJxGbUNp-CTR6zi4P.js → SpendManagementPerTabPage-BJxGbUNp-DBWLG06i.js} +1 -1
- package/dist/assets/{SpendManagementSection-CJ-vMwcf-DAIvaE36.js → SpendManagementSection-CJ-vMwcf-CkjKdsg7.js} +1 -1
- package/dist/assets/{StatementItem-CCXoBC0x-B0aqg_M_.js → StatementItem-CCXoBC0x-DV-yA8w8.js} +1 -1
- package/dist/assets/{StatementsPage-BaDmSL9L-t79Ai808.js → StatementsPage-BaDmSL9L-CUCTBhjX.js} +1 -1
- package/dist/assets/{StatusSwitcher-BZ2svcz0-BTZEKNgF.js → StatusSwitcher-BZ2svcz0-BuztCmym.js} +1 -1
- package/dist/assets/{SubTabSwitcher-C3216C6m-CK-Qtqj3.js → SubTabSwitcher-C3216C6m-Dl7lU-_D.js} +1 -1
- package/dist/assets/{SummaryCard-CSkw4qa9-i9KCkyV3.js → SummaryCard-CSkw4qa9-Bd0y6BWn.js} +1 -1
- package/dist/assets/{TaskManagementPage-BO9Fcar1-BB1pU97E.js → TaskManagementPage-BO9Fcar1-D43wwO7_.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-C9jo91ZR-BexBx71o.js → TimeRangeSwitcher-C9jo91ZR-uL_SpSuM.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-453JT8qD-dl4gBr1v.js → TimeframeSwitcher-453JT8qD-BpIL1ddE.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CkiICrjF-BzFnMJO-.js → TimeframeSwitcherWithToggle-CkiICrjF-Ca-cPuHv.js} +1 -1
- package/dist/assets/{TopExCard-Qae08TpE-B5FSxtbi.js → TopExCard-Qae08TpE-CJNE7KqM.js} +1 -1
- package/dist/assets/{TopExDetailPage-BpwMO-8K-qWr97Eft.js → TopExDetailPage-BpwMO-8K-BBtgOSB1.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CF5tZCkv-ND1Ih8Rd.js → TransactionDetailPage-CF5tZCkv-DaE0IPlE.js} +1 -1
- package/dist/assets/{TransactionList-BuFcrTEd-Pd5NkKsR.js → TransactionList-BuFcrTEd-CDNpioP2.js} +1 -1
- package/dist/assets/{TransactionListBig-B6-3iOkU-brDnQ-dC.js → TransactionListBig-B6-3iOkU-euksbchR.js} +1 -1
- package/dist/assets/{TransactionListPage-cSSv81G2-C84Nagsy.js → TransactionListPage-cSSv81G2-XuOtx5cl.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BJzVtpnF-BD1O-dJA.js → TransactionVendorDetailPage-BJzVtpnF-C5UXCtBB.js} +1 -1
- package/dist/assets/{TransferDrawerPage-DCxNnGwu-R8tXJhB-.js → TransferDrawerPage-DCxNnGwu-CqUkcOyj.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DfIkj3v1-DGzCSt8t.js → TreasuryOverviewPage-DfIkj3v1-CgYmBgC-.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BBdOyiO--DBYyvSzX.js → TreasuryPromoPage-BBdOyiO--AbQPyk6J.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-NgiurO36-wIt2qVvF.js → TreasuryStatementsPage-NgiurO36-BX47gTKN.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DcI8sKk8-CiTg5Fth.js → TreasuryTaxLetterPage-DcI8sKk8-_uuJ4o58.js} +1 -1
- package/dist/assets/{TrendChart-DVp0Led--C8WSZxuE.js → TrendChart-DVp0Led--BygMKz23.js} +1 -1
- package/dist/assets/{TrendWithTransactions-C5Zfe4RN-BXIMOZup.js → TrendWithTransactions-C5Zfe4RN-Dl9T676s.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-DKQj6Y2Z-CJmiPan8.js → UncategorizedAccountsMappingPage-DKQj6Y2Z-CoDcx3gH.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DzP4Z8GG-Dy6PuJhN.js → UnitIntegrationPage-DzP4Z8GG-DXvLno6N.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BGFTh8Ed-BM9KBkkU.js → UploadAdditionalDocumentOverlay-BGFTh8Ed-37xDqOmK.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-CyeLsWVA-Bvm0fc8m.js → Vendor2FAPopup-CyeLsWVA-BnnYCOfU.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-Ch6V5aiE-C8mQ2zAb.js → VendorACHDetailsPage-Ch6V5aiE-DwT4LvSy.js} +1 -1
- package/dist/assets/{VendorDetailPage-CrEIBnBt-BV5_7SzR.js → VendorDetailPage-CrEIBnBt-C7KZBHYF.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-GMtYv721-BHj1SZ-2.js → VendorDomesticWireDetailsPage-GMtYv721-CKzqrsaT.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-Bw_Igktf-DBjJgjbY.js → VendorFiling1099EditablePage-Bw_Igktf-B-WbIArD.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-CCCVS8n7-E428xFy1.js → VendorFirstReviewPage-CCCVS8n7-CKlRdVUB.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DsBGMjtN-CQvN_vWC.js → VendorInternationalWireDetailsPage-DsBGMjtN-Bfva6Pym.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BeXxE9Qn-ym6eVDNw.js → VendorInternationalWireSwiftDetailsPage-BeXxE9Qn-DLR6ZPyB.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Bd1rg5Tw-DRUi6jIP.js → VendorsAccountsSection-Bd1rg5Tw-CL7IEwEP.js} +1 -1
- package/dist/assets/{VerifyDevice-B52Vuja4-0E_pm_dD.js → VerifyDevice-B52Vuja4-UTWR3Ig3.js} +1 -1
- package/dist/assets/{VideoPlayer-Cfh9VY-B-CLXI1KSM.js → VideoPlayer-Cfh9VY-B-ufbtxIAv.js} +1 -1
- package/dist/assets/{VideoPopup-BLRMOVnP-CAsXJ3um.js → VideoPopup-BLRMOVnP-fkReY2U7.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CnUUMlFZ-C2O6kI2F.js → WarningsDrawerPage-CnUUMlFZ-BeDBXJT0.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-DrBVs3G5-BGnEJzEM.js → ZeniAccountDetailPage-DrBVs3G5-Th6GazP4.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-C3WwakQr-CVBB5Etq.js → ZeniAccountListViewPage-C3WwakQr-DfevQgF9.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CP2pkywN-CGbioXtu.js → ZeniAccountNavBarPieces-CP2pkywN-Ca5ooSBr.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-DYAVwX1I-CACWm6_J.js → ZeniAccountPromoPage-DYAVwX1I-Bfs8WOV7.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-D4y3RRC0-VwyN8R98.js → ZeniAccountSetupPage-D4y3RRC0-CePwWlun.js} +1 -1
- package/dist/assets/{ZeniCopyright-DxhdQ6XJ-DxZgbZ2B.js → ZeniCopyright-DxhdQ6XJ-BBelv_tx.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-COT3DDGF-CcOgiNdg.js → ZeniTransferAmountSlider-COT3DDGF-BEmS_Buf.js} +1 -1
- package/dist/assets/{analyticsHelper-C35dM-yG-D6b8wU4U.js → analyticsHelper-C35dM-yG-DEMSy98E.js} +1 -1
- package/dist/assets/{analyticsHelper-BSMq6Y2P.js → analyticsHelper-CoCMocx4.js} +1 -1
- package/dist/assets/{chartTypes-BDwrrz9S-CO6_cPbC.js → chartTypes-BDwrrz9S-Xt8nSCss.js} +1 -1
- package/dist/assets/{commonDimensions-Pu55v5lV-fIykEmeD.js → commonDimensions-Pu55v5lV-z8x_VKwC.js} +1 -1
- package/dist/assets/{commonTypes-BElGElM--Bg_ac7b3.js → commonTypes-BElGElM--CDiTtN3P.js} +1 -1
- package/dist/assets/{detailCommon-CM8F8nQy-BjrXwaKv.js → detailCommon-CM8F8nQy-BxwdCC90.js} +1 -1
- package/dist/assets/{downloadPdf-BF8--IAB-lQpphdcn.js → downloadPdf-BF8--IAB-CLiDzBIR.js} +1 -1
- package/dist/assets/{index-D4DdpT1f.js → index-D-WiwijD.js} +5 -5
- package/dist/assets/{mapLoadingInProgressToTreeNode-4ruPPd2Y-CXJTu75z.js → mapLoadingInProgressToTreeNode-4ruPPd2Y-D4RWIi7y.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-B77EOrVX-heqCPLrc.js → mapSectionWithAcOnlyToTreeNode-B77EOrVX-C6RHHI_E.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DbVBrfUp-DCvPMvjH.js → mapSpacerToTreeNode-DbVBrfUp-Bv0PlGyX.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DA60r528-sldeiWG8.js → mapTimeframeBalancesToTreeNode-DA60r528-6g96AE00.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-IkKV62Jb-JqYi47LI.js → mapTimeframeBalancesToTreeNode-IkKV62Jb-5SdDjuyL.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BPtN2Cj0-BxEY8256.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BPtN2Cj0-BPlARaPh.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-C8uaUoxX-n7EZ1iwJ.js → toCOABalancesWithID-C8uaUoxX-BzCEqBIC.js} +1 -1
- package/dist/assets/{toChartData-CTG-a8va-B2RC0Eyi.js → toChartData-CTG-a8va-BrvbSe1U.js} +1 -1
- package/dist/assets/{uploadAttachment-n14_2p7o-3Yaegacg.js → uploadAttachment-n14_2p7o-CBuTNS1x.js} +1 -1
- package/dist/assets/{uploadReceipts-DJRtId-4-D8fSq3Gx.js → uploadReceipts-DJRtId-4-CsfBPoke.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CuP19GYc-BdzG4LPd.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as W,u as L,g as M,J as G,F as T,a9 as J,aQ as Q,aJ as X,cE as H,V as r,bB as K,ac as Y,aR as Z,o as b,g5 as ee}from"./index-
|
|
1
|
+
import{y as W,u as L,g as M,J as G,F as T,a9 as J,aQ as Q,aJ as X,cE as H,V as r,bB as K,ac as Y,aR as Z,o as b,g5 as ee}from"./index-D-WiwijD.js";import{a as U}from"./sentry-Dlcq8VjX.js";import{n as c}from"./mui-CooLgaJO.js";import{b as ae,f as te,o as B,l as $}from"./FollowStepsSection-Crd9GwnW-C67UFUxv.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./zeni-epic-state-pmiItBju.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b52ac675-d275-4142-8dee-8fd71cbc761e",e._sentryDebugIdIdentifier="sentry-dbid-b52ac675-d275-4142-8dee-8fd71cbc761e")}catch{}})();const _="reimbursementApprovalRuleDetailPage",C="lowerBound",j="upperBound",I="steps",h="applyToExistingReimbursements",le={footerPadding:new W(L[2],L[3])};function Re({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:s=!1,onBackClick:p,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:A}){const V=M(),S=G(),l=T.getLocalizedStrings().commonSetUp.approval,w=T.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,t==="approval_create"&&!a),y=J({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,R=Q(u?.fetchState),{upperBound:P}=x,{allApprovalRules:i,allAccountingClasses:F,remiSetupApproverViewUpdateData:m}=e;let f=i.length>1?i.length-1:0,v=i.length>0?i[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=i.findIndex(d=>d.approvalRuleId===n),v=f>0?i[f-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{N()}),z=async(n,d)=>{g(d)};return U.useEffect(()=>{const n=y.watch((d,{name:D})=>{if(D!=null&&d!=null){const O=X(d);H(()=>z(D,O))}});return()=>{n.unsubscribe()}}),U.useEffect(()=>{R==="In-Progress"&&u?.fetchState==="Completed"&&A()},[R,u?.fetchState,A]),r.jsxs(ie,{children:[r.jsx(K,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:V.colors.grey4,style:{zIndex:4},onBackClick:()=>{p()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Y,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:k(_),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(ae,{label:{label:s?w.amountPerRemiGreaterLabel:w.amountPerRemiLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:n=>a?!0:n!=null&&n>v},isDisabled:a,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:s,additionalInfoLabel:l.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(te,{sectionId:I,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:x[I],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:k(_),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:t==="approval_create"?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:l.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,t)=>{const{criteria:a,steps:o}=e.remiSetupApproverViewUpdateData?.data??{};return{[h]:[h],[I]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),B(e.allAttributes),B(e.filteredAttributes),o??[])??[],[C]:t?void 0:a!=null?a.range.min.amount??0:0,[j]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},oe=(e,t,a,o,s)=>s&&s.length>0?s.map((p,g)=>({stepIndex:g,stepType:{selectedOption:p.action,allOptions:$},actors:{allUsers:t,selectedUsers:se(e,p.actors),allNonUsers:o,selectedNonUsers:ne(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:$},actors:{allUsers:t,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(o=>o.userId===a.userId)>-1),ne=(e,t)=>e.filter(a=>t.findIndex(o=>o.subType===a.value)>-1),k=e=>`${e}_form`,Pe=e=>`${e}`,ie=c.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as F,J as N,F as j,V as t,bB as G,T as V,aP as m,o,y as r,al as M,aN as P,bS as T,co as q,cp as J,cq as K,c_ as O,u as l,b9 as Z,a as k,b8 as Q,p as z,cZ as X,bt as Y,b as ee}from"./index-
|
|
1
|
+
import{g as F,J as N,F as j,V as t,bB as G,T as V,aP as m,o,y as r,al as M,aN as P,bS as T,co as q,cp as J,cq as K,c_ as O,u as l,b9 as Z,a as k,b8 as Q,p as z,cZ as X,bt as Y,b as ee}from"./index-D-WiwijD.js";import{n as i}from"./mui-CooLgaJO.js";import{a as te}from"./sentry-Dlcq8VjX.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./zeni-epic-state-pmiItBju.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="5911d475-f371-4749-b1c5-aa44c5da3f7e",e._sentryDebugIdIdentifier="sentry-dbid-5911d475-f371-4749-b1c5-aa44c5da3f7e")}catch{}})();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)},E={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:g=!1,approvalRule:f,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[x,w]=te.useState(!1),n=N(),{range:u}=f.criteria[0],{steps:$,approvalRuleId:p}=f,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{w(!0)},U={onOkClick:()=>{w(!1),y?.(p)},onCancelClick:()=>{w(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(he,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",u.min)]}),t.jsxs(le,{children:[t.jsx(D,{}),t.jsx(se,{}),t.jsx(D,{})]}),u.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...u.min,amount:u.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e?c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,H)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),h.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(A,{children:[t.jsx(R,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),h.operator!="is"?t.jsx(L,{className:"operator",children:h.operator}):null]},`${d.subType}_${_}`)),h.actors.map(d=>t.jsxs(A,{children:[t.jsxs(R,{children:[d.firstName," ",d.lastName]}),h.operator!="is"?t.jsx(L,{className:"operator",children:h.operator}):null]},d.userId))]},H))})}),x?t.jsx(q,{titleComponent:t.jsx(K,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(J,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},ie=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{aw as Mt,a8 as Rt,J as Pt,g as Bt,cc as Nt,y as m,F as et,gg as Lt,gi as _t,gj as Ot,V as t,co as Ae,cp as Me,cq as Re,bB as Pe,aP as y,bo as Wt,dt as Et,gk as Ft,gv as Be,o as a,gl as Ne,fg as b,go as w,fj as x,aN as Le,ff as _e,b as V,gq as Oe,aR as Kt,ao as Ut,gr as Vt,gs as re,bx as Gt,gt as Ht,x as Yt,a as Jt,d as qt,al as tt,b9 as it,p as G,am as Zt,bU as Qt,ai as Xt,gN as ei,gJ as ti,u as c,ch as ii,cY as ai}from"./index-D4DdpT1f.js";import{a as p}from"./sentry-Dlcq8VjX.js";import{n as r}from"./mui-CooLgaJO.js";import{a as ri}from"./liveblocks-DXNKZvWw.js";import{bL as oi,bP as ni,FH as li}from"./zeni-epic-state-pmiItBju.js";import si from"./InvoiceUploadSection-fjn4uF_l-DBvp2GNb.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-CqdPXR9B.js";import"./lottie-BGCmjFH9.js";import"./recharts-DHPcYqKb.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./AttachmentView-vlVaH4YF-DjHAa-jm.js";import"./uploadReceipts-DJRtId-4-D8fSq3Gx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="9a535ffd-b937-4c2f-867b-f62f0160f90a",e._sentryDebugIdIdentifier="sentry-dbid-9a535ffd-b937-4c2f-867b-f62f0160f90a")}catch{}})();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])},mi={formTitle:new Jt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:H,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:k})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,J]=p.useState(!1),[ct,q]=p.useState(!1),[Z,Q]=p.useState("approved"),N=p.useRef(null),[S,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[z,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=p.useRef({}),xe=l=>{const n=we.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&H()},[e,H]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{H()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ye?.():S.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:_}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,j=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,W=e.remiDetails?.reimbursementInfo.billStatus,E=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",ft=Te?O:W?.code=="approved"&&E?.code?E:W,$=pi(e.remiDetails),R=W?.code=="approved"&&E?.code?E:W,F=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{q(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{q(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Q("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Q("delete"),Ie()):(Q("rejected"),q(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,zt=di(e.duplicateLineByLineId),ze=e.duplicateReimbursementStatus.fetchState==="Completed"&&zt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{k?.threadId!=null&&k?.companyId!=null&&k?.entityType!=null&&K(k)},[k,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:S.title}),descriptionComponent:t.jsx(Me,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(zi,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!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:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Gi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Je,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ze?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,j.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ki,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:ne,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(Fi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ze?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ke=>{ke!=null&&(we.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return xe(`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:M},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:M},text:l.transactionDate?.format(ve.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:M},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:I},text:l.homeCurrencyConversions!=null?Le("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:I},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:I},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:M},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:M},text:l.transactionDate?.format(ve.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:I},text:l.homeCurrencyConversions!=null?Le("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:I},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:I},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:I},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(Ei,{windowSize:o,children:[t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,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:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),j.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,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:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&J(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,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:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="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:Z==="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($i,{children:t.jsxs(ki,{windowSize:o,children:[!B&&Y?t.jsx(Ut,{onClickAway:()=>J(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!B&&Ct===!0?t.jsx(ji,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>J(!Y),"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:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:z?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:z?{companyName:z.companyName,companyId:z.companyId,entityId:z.entityId,entityType:z.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
|
|
1
|
+
import{aw as Mt,a8 as Rt,J as Pt,g as Bt,cc as Nt,y as m,F as et,gg as Lt,gi as _t,gj as Ot,V as t,co as Ae,cp as Me,cq as Re,bB as Pe,aP as y,bo as Wt,dt as Et,gk as Ft,gv as Be,o as a,gl as Ne,fg as b,go as w,fj as x,aN as Le,ff as _e,b as V,gq as Oe,aR as Kt,ao as Ut,gr as Vt,gs as re,bx as Gt,gt as Ht,x as Yt,a as Jt,d as qt,al as tt,b9 as it,p as G,am as Zt,bU as Qt,ai as Xt,gN as ei,gJ as ti,u as c,ch as ii,cY as ai}from"./index-D-WiwijD.js";import{a as p}from"./sentry-Dlcq8VjX.js";import{n as r}from"./mui-CooLgaJO.js";import{a as ri}from"./liveblocks-DXNKZvWw.js";import{bL as oi,bP as ni,FH as li}from"./zeni-epic-state-pmiItBju.js";import si from"./InvoiceUploadSection-fjn4uF_l-CtGULxDA.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-CqdPXR9B.js";import"./lottie-BGCmjFH9.js";import"./recharts-DHPcYqKb.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./AttachmentView-vlVaH4YF-B4GAfoTh.js";import"./uploadReceipts-DJRtId-4-CsfBPoke.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="9a535ffd-b937-4c2f-867b-f62f0160f90a",e._sentryDebugIdIdentifier="sentry-dbid-9a535ffd-b937-4c2f-867b-f62f0160f90a")}catch{}})();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])},mi={formTitle:new Jt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:H,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:k})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,J]=p.useState(!1),[ct,q]=p.useState(!1),[Z,Q]=p.useState("approved"),N=p.useRef(null),[S,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[z,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=p.useRef({}),xe=l=>{const n=we.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&H()},[e,H]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{H()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ye?.():S.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:_}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,j=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,W=e.remiDetails?.reimbursementInfo.billStatus,E=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",ft=Te?O:W?.code=="approved"&&E?.code?E:W,$=pi(e.remiDetails),R=W?.code=="approved"&&E?.code?E:W,F=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{q(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{q(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Q("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Q("delete"),Ie()):(Q("rejected"),q(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,zt=di(e.duplicateLineByLineId),ze=e.duplicateReimbursementStatus.fetchState==="Completed"&&zt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{k?.threadId!=null&&k?.companyId!=null&&k?.entityType!=null&&K(k)},[k,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:S.title}),descriptionComponent:t.jsx(Me,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(zi,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!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:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Gi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Je,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ze?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,j.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ki,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:ne,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(Fi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ze?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ke=>{ke!=null&&(we.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return xe(`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:M},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:M},text:l.transactionDate?.format(ve.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:M},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:I},text:l.homeCurrencyConversions!=null?Le("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:I},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:I},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:M},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:M},text:l.transactionDate?.format(ve.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:I},text:l.homeCurrencyConversions!=null?Le("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:I},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:I},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:I},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(Ei,{windowSize:o,children:[t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,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:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),j.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,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:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&J(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,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:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="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:Z==="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($i,{children:t.jsxs(ki,{windowSize:o,children:[!B&&Y?t.jsx(Ut,{onClickAway:()=>J(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!B&&Ct===!0?t.jsx(ji,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>J(!Y),"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:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:z?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:z?{companyName:z.companyName,companyId:z.companyId,entityId:z.entityId,entityType:z.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as ne,g as S,J as k,aQ as le,V as e,aP as a,fr as ae,bB as de,r as u,ae as d,F,o as t,aq as ce,M as me,aT as E,am as pe,y as xe,p as z,cD as he,aU as ue,ba as ge,u as we}from"./index-
|
|
1
|
+
import{aw as ne,g as S,J as k,aQ as le,V as e,aP as a,fr as ae,bB as de,r as u,ae as d,F,o as t,aq as ce,M as me,aT as E,am as pe,y as xe,p as z,cD as he,aU as ue,ba as ge,u as we}from"./index-D-WiwijD.js";import{a as j}from"./sentry-Dlcq8VjX.js";import{n as s}from"./mui-CooLgaJO.js";import{FG as je,bT as fe}from"./zeni-epic-state-pmiItBju.js";import{f as be}from"./VideoPopup-BLRMOVnP-fkReY2U7.js";import{M as v}from"./usp-line-BBd1wKwW-CZ22OQAj.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./VideoPlayer-Cfh9VY-B-ufbtxIAv.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="01c811ff-ad3f-4cb2-9529-38f492dcd4c2",i._sentryDebugIdIdentifier="sentry-dbid-01c811ff-ad3f-4cb2-9529-38f492dcd4c2")}catch{}})();const V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ee,J as Ve,aQ as N,a9 as qe,cE as Ge,F as Te,aV as Ce,V as t,f9 as Je,p as J,y as s,bB as Ze,T as Qe,ac as Ye,fs as ve,dO as Ke,ft as Xe,bw as et,dE as tt,aR as it,o as a,fv as nt,u as n,ch as ot,cI as at,er as lt,fE as ke,fF as $e,gf as st,r as rt,aP as Pe,a as Ae,bL as ct,ai as dt,bt as ut}from"./index-
|
|
1
|
+
import{g as Ee,J as Ve,aQ as N,a9 as qe,cE as Ge,F as Te,aV as Ce,V as t,f9 as Je,p as J,y as s,bB as Ze,T as Qe,ac as Ye,fs as ve,dO as Ke,ft as Xe,bw as et,dE as tt,aR as it,o as a,fv as nt,u as n,ch as ot,cI as at,er as lt,fE as ke,fF as $e,gf as st,r as rt,aP as Pe,a as Ae,bL as ct,ai as dt,bt as ut}from"./index-D-WiwijD.js";import{a as o}from"./sentry-Dlcq8VjX.js";import{n as i}from"./mui-CooLgaJO.js";import{bJ as mt}from"./zeni-epic-state-pmiItBju.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-BGFTh8Ed-37xDqOmK.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="a930c1c3-fca8-4c3b-bb51-93389729385d",e._sentryDebugIdIdentifier="sentry-dbid-a930c1c3-fca8-4c3b-bb51-93389729385d")}catch{}})();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 Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:Q},trigger:Y}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:c,updateStatus:F,mileageStatus:w}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[S,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{x||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=K,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:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.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(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),H(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,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"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as f,co as V,cp as M,cq as q,k8 as W,aY as Y,F as z}from"./index-
|
|
1
|
+
import{V as f,co as V,cp as M,cq as q,k8 as W,aY as Y,F as z}from"./index-D-WiwijD.js";import{a as b}from"./sentry-Dlcq8VjX.js";import{Ge as G}from"./zeni-epic-state-pmiItBju.js";import{p as J}from"./ReviewOverlay-DjazNKfI-BvB_z9vd.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./mui-CooLgaJO.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="e132f053-f603-4d2f-90bc-9f751dc4dba7",e._sentryDebugIdIdentifier="sentry-dbid-e132f053-f603-4d2f-90bc-9f751dc4dba7")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=z.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:g,currentSubTab:y}=e,v=!1,[S,l]=b.useState(!1),[d,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,Z]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,x=d.filter(m=>m.reviewStatus.code!=="error").length,F=()=>{const{title:m,description:C}=Q(x);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},E={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,G(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=X(p,x,D,h),T=e.fetchState==="Completed"&&x===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},N=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:F,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[S?f.jsx(V,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(J,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&x===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:Y("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Q=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},X=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,S=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",S?t:g)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as l,V as r,aM as a,b2 as x,F as y,aP as m,aS as h,bD as g,ai as f,o as c,b3 as w}from"./index-
|
|
1
|
+
import{g as l,V as r,aM as a,b2 as x,F as y,aP as m,aS as h,bD as g,ai as f,o as c,b3 as w}from"./index-D-WiwijD.js";import{n as s}from"./mui-CooLgaJO.js";import{a as d}from"./sentry-Dlcq8VjX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="fe34bd6e-53ab-4fec-ac5f-5c053c0a0e61",e._sentryDebugIdIdentifier="sentry-dbid-fe34bd6e-53ab-4fec-ac5f-5c053c0a0e61")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{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 p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{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(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(b,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=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"})),C=s(h)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ee,J as de,cc as xe,a9 as ye,V as o,ao as _e,cd as te,ac as we,y as D,aR as $e,o as n,F as oe,ce as ve,cf as ke,cg as Ce,ch as je,ci as Ie,am as he,cj as Ne,ai as Se,aD as X,bD as De,u as f,aV as Pe,al as Oe,at as Fe}from"./index-
|
|
1
|
+
import{g as ee,J as de,cc as xe,a9 as ye,V as o,ao as _e,cd as te,ac as we,y as D,aR as $e,o as n,F as oe,ce as ve,cf as ke,cg as Ce,ch as je,ci as Ie,am as he,cj as Ne,ai as Se,aD as X,bD as De,u as f,aV as Pe,al as Oe,at as Fe}from"./index-D-WiwijD.js";import{a as u,P as ue}from"./sentry-Dlcq8VjX.js";import{n as d}from"./mui-CooLgaJO.js";import{R as P,I as Be}from"./CollapsableReportTable-DgteU0nB-Cxehs4Kl.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="1c162b28-ad95-4129-8bec-d79401a65134",e._sentryDebugIdIdentifier="sentry-dbid-1c162b28-ad95-4129-8bec-d79401a65134")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ae=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(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(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Te(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ae(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as W,g as G,F as y,aw as ge,V as r,bN as _e,aP as P,bC as be,bB as Se,o as w,aT as we,T as ye,y as B,bO as Ce,u as S,G as A,aD as K,A as xe,aV as Oe,as as Re,bK as Ae}from"./index-D4DdpT1f.js";import{a as L,P as X}from"./sentry-Dlcq8VjX.js";import{n as _}from"./mui-CooLgaJO.js";import{bg as H,EN as Be,EW as ve,EX as E,EY as Te,EZ as Le,E_ as Pe,E$ as Ne,F0 as Ie,F1 as ee,F2 as te}from"./zeni-epic-state-pmiItBju.js";import{m as z,l as q}from"./analyticsHelper-C35dM-yG-D6b8wU4U.js";import{x as ke}from"./ReportTableViewSelector-wrUJSIfk-Dns-QQbX.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-C9jo91ZR-BexBx71o.js";import{M as Me}from"./TimeframeSwitcherWithToggle-CkiICrjF-BzFnMJO-.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-C6GFjg2N-DrkN4pip.js";import{I as $e,R as F,x as ne}from"./CollapsableReportTable-DgteU0nB-DwU6xqcB.js";import{D as oe,T as ae,C as $,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-B77EOrVX-heqCPLrc.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-IkKV62Jb-JqYi47LI.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BPtN2Cj0-BxEY8256.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-4ruPPd2Y-CXJTu75z.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./TimeframeSwitcher-453JT8qD-dl4gBr1v.js";import"./page-detail-CWX5S47F-D0SYshoo.js";import"./AccountRow-FmhkZVL4-BiCaU5gp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6be4c6d5-db68-4378-9814-8da43ea2954b",e._sentryDebugIdIdentifier="sentry-dbid-6be4c6d5-db68-4378-9814-8da43ea2954b")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Te(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Le(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function Ze(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ie(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function He(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push($({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push($({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
1
|
+
import{J as W,g as G,F as y,aw as ge,V as r,bN as _e,aP as P,bC as be,bB as Se,o as w,aT as we,T as ye,y as B,bO as Ce,u as S,G as A,aD as K,A as xe,aV as Oe,as as Re,bK as Ae}from"./index-D-WiwijD.js";import{a as L,P as X}from"./sentry-Dlcq8VjX.js";import{n as _}from"./mui-CooLgaJO.js";import{bg as H,EN as Be,EW as ve,EX as E,EY as Te,EZ as Le,E_ as Pe,E$ as Ne,F0 as Ie,F1 as ee,F2 as te}from"./zeni-epic-state-pmiItBju.js";import{m as z,l as q}from"./analyticsHelper-C35dM-yG-DEMSy98E.js";import{x as ke}from"./ReportTableViewSelector-wrUJSIfk-2LsgXwby.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-C9jo91ZR-uL_SpSuM.js";import{M as Me}from"./TimeframeSwitcherWithToggle-CkiICrjF-Ca-cPuHv.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-C6GFjg2N-dHGiNNT4.js";import{I as $e,R as F,x as ne}from"./CollapsableReportTable-DgteU0nB-Cxehs4Kl.js";import{D as oe,T as ae,C as $,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-B77EOrVX-C6RHHI_E.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-IkKV62Jb-5SdDjuyL.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BPtN2Cj0-BPlARaPh.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-4ruPPd2Y-D4RWIi7y.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./TimeframeSwitcher-453JT8qD-BpIL1ddE.js";import"./page-detail-CWX5S47F-D0SYshoo.js";import"./AccountRow-FmhkZVL4-B4hjOMzk.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6be4c6d5-db68-4378-9814-8da43ea2954b",e._sentryDebugIdIdentifier="sentry-dbid-6be4c6d5-db68-4378-9814-8da43ea2954b")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Te(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Le(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function Ze(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ie(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function He(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push($({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push($({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${w.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as A,V as a,F as D,J as de,b3 as Q,u as I,b as M,aY as J,o as m,aP as Ae,p as g,aD as Ve,y as xe,bL as ge,al as R,bM as V,ba as F}from"./index-
|
|
1
|
+
import{g as A,V as a,F as D,J as de,b3 as Q,u as I,b as M,aY as J,o as m,aP as Ae,p as g,aD as Ve,y as xe,bL as ge,al as R,bM as V,ba as F}from"./index-D-WiwijD.js";import{a as P,P as ee}from"./sentry-Dlcq8VjX.js";import{n as x}from"./mui-CooLgaJO.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-BDwrrz9S-Xt8nSCss.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-C8uaUoxX-BzCEqBIC.js";import{V as Z}from"./toChartData-CTG-a8va-BrvbSe1U.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-DHPcYqKb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="933c9cf0-debb-402c-8dc8-3b55571906b4",e._sentryDebugIdIdentifier="sentry-dbid-933c9cf0-debb-402c-8dc8-3b55571906b4")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as Tt,aw as Ct,y as u,f2 as Dt,f3 as It,f4 as Pt,V as t,f5 as kt,f6 as le,f7 as At,f8 as Bt,f9 as Mt,fa as Ft,aN as A,fb as Rt,aP as j,fc as Lt,fd as Be,fe as Me,ff as Fe,b as H,fg as O,p as S,fh as zt,fi as E,fj as _,fk as Nt,fl as Ot,bS as Re,o as n,aR as Et,u as s,F as _t,ag as Wt,c1 as Zt,a as Vt,d as qt,fm as Yt,ch as Gt,al as se,am as ce,fn as Ht,fo as Kt,bi as Ut,f as Xt,b9 as Jt,fp as Qt,aq as et,bJ as en,ai as tt,bt as tn,fq as nn}from"./index-D4DdpT1f.js";import{a as Z}from"./sentry-Dlcq8VjX.js";import{n as i}from"./mui-CooLgaJO.js";import{bo as Le,bm as ze,bH as I,bN as an,Fv as ln,bL as oe,bP as on}from"./zeni-epic-state-pmiItBju.js";import{t as rn,o as dn}from"./LowBalancePopup-BUAKDPHL-BfDsvGUL.js";import{S as W}from"./LabeledText-C9CoADG4-BsL6jbJB.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="76b9197e-74fa-484b-8f28-182cd7d19395",e._sentryDebugIdIdentifier="sentry-dbid-76b9197e-74fa-484b-8f28-182cd7d19395")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=Z.useState(!1),B=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>B(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:B,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:st})=>{const d=Tt(),c=Ct(),M={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[z,Q,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},q=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=We(b,Y,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Bt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&G(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Mt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(B.company?.companyInfo),vendor:e.vendor?.name,paymentDate:q?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(qe,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Mn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(qe,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(qn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(Ye,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Xe,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{children:r!=null?Be.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ye,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Xe,{})}),t.jsxs(Wn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Be.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Bn,{children:[t.jsx(Ge,{children:a.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ge,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...M,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...M,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!g&&q!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...M,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:q.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(q.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...M,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...M,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,Y,d)}},primaryBtn:{label:We(b,Y,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?G(!0):Se()},style:{width:Ze(!0,k,b,Y,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},We=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ze=(e,y,f,B,T)=>f?128:y&&!e&&T==="small"?"auto":B?165:m.footerButtonWidth.value(T),pn=i(en)`
|
|
1
|
+
import{J as Tt,aw as Ct,y as u,f2 as Dt,f3 as It,f4 as Pt,V as t,f5 as kt,f6 as le,f7 as At,f8 as Bt,f9 as Mt,fa as Ft,aN as A,fb as Rt,aP as j,fc as Lt,fd as Be,fe as Me,ff as Fe,b as H,fg as O,p as S,fh as zt,fi as E,fj as _,fk as Nt,fl as Ot,bS as Re,o as n,aR as Et,u as s,F as _t,ag as Wt,c1 as Zt,a as Vt,d as qt,fm as Yt,ch as Gt,al as se,am as ce,fn as Ht,fo as Kt,bi as Ut,f as Xt,b9 as Jt,fp as Qt,aq as et,bJ as en,ai as tt,bt as tn,fq as nn}from"./index-D-WiwijD.js";import{a as Z}from"./sentry-Dlcq8VjX.js";import{n as i}from"./mui-CooLgaJO.js";import{bo as Le,bm as ze,bH as I,bN as an,Fv as ln,bL as oe,bP as on}from"./zeni-epic-state-pmiItBju.js";import{t as rn,o as dn}from"./LowBalancePopup-BUAKDPHL-B-KZGBlT.js";import{S as W}from"./LabeledText-C9CoADG4-kebiAoiw.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="76b9197e-74fa-484b-8f28-182cd7d19395",e._sentryDebugIdIdentifier="sentry-dbid-76b9197e-74fa-484b-8f28-182cd7d19395")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=Z.useState(!1),B=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>B(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:B,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:st})=>{const d=Tt(),c=Ct(),M={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[z,Q,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},q=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=We(b,Y,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Bt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&G(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Mt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(B.company?.companyInfo),vendor:e.vendor?.name,paymentDate:q?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(qe,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Mn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(qe,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(qn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(Ye,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Xe,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{children:r!=null?Be.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ye,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Xe,{})}),t.jsxs(Wn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Be.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Bn,{children:[t.jsx(Ge,{children:a.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ge,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...M,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...M,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!g&&q!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...M,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:q.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(q.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...M,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...M,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,Y,d)}},primaryBtn:{label:We(b,Y,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?G(!0):Se()},style:{width:Ze(!0,k,b,Y,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},We=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ze=(e,y,f,B,T)=>f?128:y&&!e&&T==="small"?"auto":B?165:m.footerButtonWidth.value(T),pn=i(en)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
package/dist/assets/{ReviewOverlay-DjazNKfI-D9LHGfoS.js → ReviewOverlay-DjazNKfI-BvB_z9vd.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as P,V as i,aP as m,o as r,aR as I,y as d,x as L,a as M,d as W,p as s,al as j,cB as C,T as D,ai as b,bh as R,u as n,ei as G,e as _,iW as F,k7 as J}from"./index-
|
|
1
|
+
import{J as P,V as i,aP as m,o as r,aR as I,y as d,x as L,a as M,d as W,p as s,al as j,cB as C,T as D,ai as b,bh as R,u as n,ei as G,e as _,iW as F,k7 as J}from"./index-D-WiwijD.js";import{n as t}from"./mui-CooLgaJO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="14dda321-5300-45fd-8908-c38bc420da9b",e._sentryDebugIdIdentifier="sentry-dbid-14dda321-5300-45fd-8908-c38bc420da9b")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},A={title:new M("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const a=P();return i.jsxs(H,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(O,{windowSize:a,children:[i.jsxs(q,{windowSize:a,children:[i.jsx(K,{children:i.jsx(N,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>B(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:V(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(I,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),H=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-CjvIxkPO-Bi_70Hu8.js → RoleWithToolTip-CjvIxkPO-i8Jvb-Om.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eN as h,eO as b,V as s,bS as f,o,aP as n,F as g,an as x,ai as c}from"./index-
|
|
1
|
+
import{eN as h,eO as b,V as s,bS as f,o,aP as n,F as g,an as x,ai as c}from"./index-D-WiwijD.js";import{n as d}from"./mui-CooLgaJO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d916bd55-4458-4165-a119-4e7b01edccbd",e._sentryDebugIdIdentifier="sentry-dbid-d916bd55-4458-4165-a119-4e7b01edccbd")}catch{}})();const{hyphen:i}=g.getLocalizedStrings().common.strings,y=d.div``,m=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aQ as H,il as ee,gG as fe,ez as Je,im as Le,a9 as we,io as Me,cE as Ve,cF as _e,V as a,ac as Pe,co as Fe,cp as Ne,cq as qe,aR as Re,ip as Be,iq as We,F as be,aa as he,ir as me,is as ze,cI as Ue,J as $e,iG as Ge,gL as re,u as B,p as Se,y as De,cJ as He,it as Ke,iu as Qe,iv as Xe,o as _}from"./index-
|
|
1
|
+
import{aQ as H,il as ee,gG as fe,ez as Je,im as Le,a9 as we,io as Me,cE as Ve,cF as _e,V as a,ac as Pe,co as Fe,cp as Ne,cq as qe,aR as Re,ip as Be,iq as We,F as be,aa as he,ir as me,is as ze,cI as Ue,J as $e,iG as Ge,gL as re,u as B,p as Se,y as De,cJ as He,it as Ke,iu as Qe,iv as Xe,o as _}from"./index-D-WiwijD.js";import{a as f}from"./sentry-Dlcq8VjX.js";import{n as z}from"./mui-CooLgaJO.js";import{F_ as Ze,F$ as Ye}from"./zeni-epic-state-pmiItBju.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-Dnapx3YK-B3LHOpVc.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4ad5e4c4-dd5f-465c-acd9-10bbbb53485c",e._sentryDebugIdIdentifier="sentry-dbid-4ad5e4c4-dd5f-465c-acd9-10bbbb53485c")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=z.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aQ as F,il as Y,gG as ke,ez as Ae,im as Ie,a9 as Je,io as Le,cE as we,cF as Me,V as a,ac as Ve,co as Pe,cp as _e,cq as Fe,aR as $e,ip as Be,iq as Ne,F as Se,aa as ie,ir as he,is as qe,cI as ze,J as Re,gL as pe,u as X,p as Ue,y as We,it as Ge,iu as Ke,iv as He,o as L}from"./index-
|
|
1
|
+
import{aQ as F,il as Y,gG as ke,ez as Ae,im as Ie,a9 as Je,io as Le,cE as we,cF as Me,V as a,ac as Ve,co as Pe,cp as _e,cq as Fe,aR as $e,ip as Be,iq as Ne,F as Se,aa as ie,ir as he,is as qe,cI as ze,J as Re,gL as pe,u as X,p as Ue,y as We,it as Ge,iu as Ke,iv as He,o as L}from"./index-D-WiwijD.js";import{a as D}from"./sentry-Dlcq8VjX.js";import{n as P}from"./mui-CooLgaJO.js";import{F_ as Qe,F$ as Ye,bL as Xe}from"./zeni-epic-state-pmiItBju.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-Dnapx3YK-B3LHOpVc.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="74e7cc74-8dea-418d-ae97-da3127b85665",e._sentryDebugIdIdentifier="sentry-dbid-74e7cc74-8dea-418d-ae97-da3127b85665")}catch{}})();const q={labelWidth:new We(160,160,160)},at=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as A,g as X,V as t,iw as ie,ix as oe,a as le,iy as xe,dP as fe,ff as ye,b as I,F as R,iz as we,iv as be,o as i,y as b,p as j,f as $e,aa as re,dL as je,co as Se,cq as ke,cI as Z,er as ee,cN as ve,iA as K,iB as De,b3 as Ce,iC as Me,cs as ze,iD as Le,u as h,al as L,b9 as Ee,cp as Oe,ao as pe,eA as Ie,b1 as ne,em as Ae,aR as Fe,iE as F,gf as Ve,aN as Te,iF as Je,aV as H,c_ as Be,bh as Pe}from"./index-
|
|
1
|
+
import{J as A,g as X,V as t,iw as ie,ix as oe,a as le,iy as xe,dP as fe,ff as ye,b as I,F as R,iz as we,iv as be,o as i,y as b,p as j,f as $e,aa as re,dL as je,co as Se,cq as ke,cI as Z,er as ee,cN as ve,iA as K,iB as De,b3 as Ce,iC as Me,cs as ze,iD as Le,u as h,al as L,b9 as Ee,cp as Oe,ao as pe,eA as Ie,b1 as ne,em as Ae,aR as Fe,iE as F,gf as Ve,aN as Te,iF as Je,aV as H,c_ as Be,bh as Pe}from"./index-D-WiwijD.js";import{n as l,c as B}from"./mui-CooLgaJO.js";import{a as C}from"./sentry-Dlcq8VjX.js";import{bh as G,G0 as Re}from"./zeni-epic-state-pmiItBju.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="1a9faf6f-7cce-4742-89e6-e53f06341abf",e._sentryDebugIdIdentifier="sentry-dbid-1a9faf6f-7cce-4742-89e6-e53f06341abf")}catch{}})();const N=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:o,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,o),g=A(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Qe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(o,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Ae,{name:N(o,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${o}.dayOfMonth`,$),S(`${o}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(o,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Fe,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:o,isDisabled:s}){return t.jsxs(He,{isDisabled:s!=null,children:[o?.type==null?t.jsx(Ke,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${o.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:o}){return t.jsxs(Xe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(Re(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=l.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,He=l.div`
|
|
4
4
|
display: flex;
|