@zeniai/web-cockpit-ui 1.15.44-dev → 1.15.45-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ACHDetailsPage-D2Xav-UW-S35Uhoxw.js +21 -0
- package/dist/assets/{AIPerformancePage-Bi73UpGb-fWDWILJ2.js → AIPerformancePage-DlTdGosv-wmtN61X5.js} +104 -104
- package/dist/assets/AccountInfoPage-B8-8kUGD-Dn2GAcNI.js +18 -0
- package/dist/assets/{AccountInfoPageContent-Dg0u2dUY-CwC-_xBB.js → AccountInfoPageContent-BS2TBUSE-C5aZvKIb.js} +21 -21
- package/dist/assets/{AccountLockedInfoModal-CfkJI6XB-C47nbz46.js → AccountLockedInfoModal-aukulrV7-BnyIzxt7.js} +11 -11
- package/dist/assets/{AccountReconDetailsDrawerPage-YaScsZ9w-naExi3CF.js → AccountReconDetailsDrawerPage-kQJld6_N-mlekIKpg.js} +19 -19
- package/dist/assets/AccountRow-BiEYR4Y1-BYraCT3U.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-Bm3kl_kc-CgD_G72F.js → AccountsPromoCardStack-DBQnDPXQ-Cg1k8iOd.js} +32 -32
- package/dist/assets/AddAddressForCardDrawer-DTnfk8K7-CSPtYmJ3.js +6 -0
- package/dist/assets/{AddToWalletPage-fW711jLQ-BRrd9uh8.js → AddToWalletPage-C4EwdLZJ-CuTX3g12.js} +19 -19
- package/dist/assets/{AgingReportsPage-BRMI5zyE-DecoJ-JY.js → AgingReportsPage-vAvkUfOS-CY0Z3qTp.js} +7 -7
- package/dist/assets/{AllUserItems-CJvwVAIJ-BTHbX-kV.js → AllUserItems-qrYg6Gdx-CdYLC57_.js} +11 -11
- package/dist/assets/ApAgingDetailPage-BRYQMwo2-BLS80uGo.js +46 -0
- package/dist/assets/{AppBasePage-BncZeYVM-BmWxuFMK.js → AppBasePage-DrE-W6d7-BJchX_M5.js} +8 -8
- package/dist/assets/{AppDrawerContent-nr81m7Yo-B9REx-fp.js → AppDrawerContent-ATbZG_cu-DjhYjDhr.js} +5 -5
- package/dist/assets/ApprovalRulesSettingsPage-5MYC1I6k-B_-ue4-L.js +47 -0
- package/dist/assets/{ArAgingChart-C6JBnoyC-CUJeSTbJ.js → ArAgingChart-CuzG9AZY-tEsYzpMw.js} +6 -6
- package/dist/assets/{ArAgingDetailPage-KRxBhwoF-Bs_qr7kj.js → ArAgingDetailPage-DwRkcLEu-CyeLsbpX.js} +6 -6
- package/dist/assets/{AttachmentView-BQxK0CVV-CCdx-RAZ.js → AttachmentView-BrQRChzc-CLMui9x5.js} +6 -6
- package/dist/assets/{BankAccountSection-BNyucHO2-DmJIO1WC.js → BankAccountSection-hcKEMs80-C6Jbh-5h.js} +14 -14
- package/dist/assets/{BankAccountWarningSection-CXuL4u5y-g-HZT5cn.js → BankAccountWarningSection-CpxVDMSZ-C7N2KxYy.js} +10 -10
- package/dist/assets/{BankConnectionsSettingsPage-CBgj0E9b-D9RluevF.js → BankConnectionsSettingsPage-Bdw1K00m-BvzDHkyQ.js} +27 -27
- package/dist/assets/BillDetailPage-D0NLFZXA-C0lmLs0O.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-Dx4q6Dqs-DjDGvRN4.js → BillPayApprovalRuleDetailPage-DkpCvYvo-O8-69iVq.js} +4 -4
- package/dist/assets/{BillPayApprovalRulesPage-CqAUZyDI-F4GaYkgK.js → BillPayApprovalRulesPage-BEqZD0GU-BxwF6ACD.js} +17 -17
- package/dist/assets/BillPayPromoPage-BMcP4EU5-CGhF2c_7.js +84 -0
- package/dist/assets/{BillPaySetUpPage-Di_7lbDT-DcNv7Em-.js → BillPaySetUpPage-WdEdbf16-Dy9LV6PH.js} +4 -4
- package/dist/assets/BillingSettingsPage-GtRUqSZm-DYu87yXp.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-DAUoo9pq-DaWpx5HK.js +1 -0
- package/dist/assets/{BoxItem-emrYmYE_-COqrZfL4.js → BoxItem-CACRFWG2-DVYuXWIN.js} +1 -1
- package/dist/assets/BusinessVerificationPage-9gZbBDL6-k_B2yV-X.js +138 -0
- package/dist/assets/{CardNumberSubText-D0jiyjgP-DrKFcYQ8.js → CardNumberSubText-C-oVdziK-DunIHxKO.js} +3 -3
- package/dist/assets/{CashbackDetailPage-Ck68kvKO-btdGd49W.js → CashbackDetailPage-BhFKSl4p-BQ_VopLN.js} +26 -26
- package/dist/assets/{ChargeCardDetailPage-3MoXQEkg-CSC4sD6E.js → ChargeCardDetailPage-D8J6HINu-BuT8xfhQ.js} +20 -20
- package/dist/assets/{ChargeCardListPage-C-Ju6BEl-kbouKU1g.js → ChargeCardListPage-tdUKyHdz-C4MlwZVJ.js} +15 -15
- package/dist/assets/{ChargeCardListTable-CiKxrzpB-BwvLbNVl.js → ChargeCardListTable-CByk3iqX-DoHny0DQ.js} +55 -55
- package/dist/assets/{ChargeCardPaymentHistoryPage-CQFeSCt3-CSxBUfgn.js → ChargeCardPaymentHistoryPage-B8zRcrjo-BRbQG-FC.js} +34 -34
- package/dist/assets/{ChargeCardPromoPage-D9dU6_7j-D1-1DfmI.js → ChargeCardPromoPage-C4cgx2gm-D_Yc06ky.js} +32 -32
- package/dist/assets/{ChargeCardSetupPage-D0WrBcxG-ycTOq8L1.js → ChargeCardSetupPage-DtwiTNKA-BFEsY7tk.js} +4 -4
- package/dist/assets/{ChargeCardStatementsPage-CJFkaLCd-BumVYv_H.js → ChargeCardStatementsPage-B0KPw52e-DBUcIJ4E.js} +8 -8
- package/dist/assets/{CheckDepositDrawerPage-Durtx5TN-DwuNGoqA.js → CheckDepositDrawerPage-DKNAXI77-BLa4tOO2.js} +15 -15
- package/dist/assets/{CollapsableReportTable-CCnbdYjk-BPZVqk8_.js → CollapsableReportTable-Cq8bhaYC-ZEUmVRwU.js} +272 -272
- package/dist/assets/{CompanyOfficerDetailsSection-g42vPH8W-BxpfMgYr.js → CompanyOfficerDetailsSection-Rk0B5cB5-D0GfPSDE.js} +32 -32
- package/dist/assets/{CompanyPassportCard-B6FYoxyq-BX2GdDcs.js → CompanyPassportCard-CHaKk74P-ChdhDOcg.js} +8 -8
- package/dist/assets/{CompanyPassportPage-rQvYbXt5-CjnUEPux.js → CompanyPassportPage-DXWXFFKM-KfIA3e5g.js} +20 -20
- package/dist/assets/{CompleteProfile-CcNl1Edy-CEvFMhi-.js → CompleteProfile-ChaWsK6t-DspQFryi.js} +2 -2
- package/dist/assets/ConfettiBurst-CdB5fRMt-B7nj3Nyc.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DwnbKiER.js → ConstrainedInnerElement-BeIpAPjB-DRM9GAJ_.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-SK5exTt3-BjZ8lvyL.js → CreateOrEditVendorPage-C_8Jqubo-Bk2WY5iH.js} +13 -13
- package/dist/assets/{CreditCardPaymentDrawerPage-EtqemOZS-BnapCiVl.js → CreditCardPaymentDrawerPage-lOjOtk28-Csye-cQG.js} +18 -18
- package/dist/assets/CurrencySelectField-BDqU4HVy-2khO8cFF.js +139 -0
- package/dist/assets/CustomerOnboardingActivationPage-DO6NCakm-AEOEu5XD.js +88 -0
- package/dist/assets/CustomerOnboardingContainerPage-CckCX7Vt-DBrhwTVX.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-FKQGP-CB-zopx1VE5.js → CustomerOnboardingDetailPageSkeleton-BYXyF1CQ-Nc7z_MPq.js} +16 -16
- package/dist/assets/{CustomerOnboardingNoStepsPage-D3T1ftj7-D6SSHlsp.js → CustomerOnboardingNoStepsPage-CbG5WshV-DAGPqB92.js} +6 -6
- package/dist/assets/{CustomerOnboardingPage-K68iZ1pc-D0YY7tLm.js → CustomerOnboardingPage-DyVyf8oK-qTGHLvSK.js} +16 -16
- package/dist/assets/{CustomerOnboardingProductSuitePage-DZY25kUO-BvycO_p-.js → CustomerOnboardingProductSuitePage-1F3JfCRp-DuMqzBOS.js} +10 -10
- package/dist/assets/{Dashboard-C0M4vT8O-BYqqEpJb.js → Dashboard-Csggwob0-CyGCXOXS.js} +66 -66
- package/dist/assets/{DashboardReportPage-D59wQPy8-DDmWtoIa.js → DashboardReportPage-DFIdi_I0-BoysSy4a.js} +22 -22
- package/dist/assets/DashboardSidebarBackgroundAnimation-C3Ovv-ob-4-suD4NX.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-CZHXtZB5-BEgA4Uyh.js → DepositAccTransactionItem-CZ7v1T4S-Btt7kuPp.js} +6 -6
- package/dist/assets/DepositAccTransactionListPage-FldPGX6K-BuhxBRx8.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-SDNDGGnk-Dpbta2A4.js → DomesticWireDetailsPage-C--eZ-UG-iiw5Chir.js} +2 -2
- package/dist/assets/{DownloadOverlay-CW7nP_gr-Gu43ShKI.js → DownloadOverlay-4f9deyJS-BdBfaHAQ.js} +26 -26
- package/dist/assets/{DrawerPage-BdXd2igp-_3hBO89m.js → DrawerPage-roO3xvRT-XwvbAR8R.js} +11 -11
- package/dist/assets/EditPeoplePage-pi5RclAj-BM2zxscy.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-CIUcImns-BxmdhEQa.js +865 -0
- package/dist/assets/EntityDetailPage-OTKTVNMD-hGdzRif2.js +18 -0
- package/dist/assets/{EntitySummarySection-BNvGG3d6-BgSlIoO3.js → EntitySummarySection-fBL4TZpT-DwG1Et7L.js} +32 -32
- package/dist/assets/{ExpenseAutomationOverviewPage-Dpd7fWT8-CJNhgI1p.js → ExpenseAutomationOverviewPage-CnhNINCc-BWYSqjyt.js} +47 -47
- package/dist/assets/ExpenseAutomationPage-BDLCJbFw-BzgpYsoD.js +1703 -0
- package/dist/assets/{ExpressPayPage-B_jJBRS3-CqeRUh4h.js → ExpressPayPage-c8oTCnBR-BO5E-s_t.js} +17 -17
- package/dist/assets/{FeaturePreviewPage-CkiCr5FY-YcKqVNJz.js → FeaturePreviewPage-DkiAajs2-CeQkBCBu.js} +3 -3
- package/dist/assets/{FollowStepsSection-D4hhP5Ns-Dhgeeir0.js → FollowStepsSection-GaWu1kt9-BI3yZ8yb.js} +44 -44
- package/dist/assets/GlobalReviewListPage-DEzj0RVG-OABkNmc3.js +291 -0
- package/dist/assets/{InformationCardStack-L_DUxY4M-D8FPjAw-.js → InformationCardStack-dMFbHUWM-DZ5NgV9d.js} +6 -6
- package/dist/assets/{InsightsCardStack-BkHzx-Ku-CGbiVWHq.js → InsightsCardStack-BlXkyuyz-BYkM34Ig.js} +9 -9
- package/dist/assets/InsightsSection-D-oCmrir-CD7SS_Wx.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-Cd1Rx9sO-CrFZOF4B.js → IntegrationsSettingsPage-D-hfghuq-9CRnYKlL.js} +11 -11
- package/dist/assets/{InternationalWireSwiftDetailsPage-D9MjWari-b7e10eXN.js → InternationalWireSwiftDetailsPage-DxdKE300-DZZJSkkC.js} +20 -20
- package/dist/assets/InternationalWireVerificationPage-CkSmhOrS-UEYqwZ-4.js +65 -0
- package/dist/assets/{InviteFormPage-DuMgV0Gj-COrTi430.js → InviteFormPage-BCdalqtP-CheVg02u.js} +21 -21
- package/dist/assets/{InvitePageListView-C8FmzWUR-C8XzfhVF.js → InvitePageListView-B88FW48q-BlNwjDCb.js} +63 -63
- package/dist/assets/InvitePeoplePage-Z-2L7lWc-CTYR92-E.js +12 -0
- package/dist/assets/InvoiceUploadSection-C8hytmay-CkdGw_XE.js +140 -0
- package/dist/assets/{IssueChargeCardPage-BSakJkYv-CIpGjR5J.js → IssueChargeCardPage-B6wmvbEr-BJuCdS5L.js} +18 -18
- package/dist/assets/{LabeledAddressValue-7ZW0Bp2--B1g9_ntb.js → LabeledAddressValue-CQrDCgNs-BE2vwBEi.js} +2 -2
- package/dist/assets/LabeledAddressValueField-BoHS44YO-GpChwVD3.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-BsFqjCpn-DbSKF3Eo.js +16 -0
- package/dist/assets/{LabeledCountryMultiSelectField-CBp07VjV-BFYchWVu.js → LabeledCountryMultiSelectField-D1fVDYR_-X0msQxRV.js} +12 -12
- package/dist/assets/{LabeledCreatableSingleSelectField-B_esaKIM-BMEYFLNo.js → LabeledCreatableSingleSelectField-Bhka-Faj-PIAOXuuF.js} +8 -8
- package/dist/assets/LabeledDocumentField-CnRk5aKZ-CP7eylom.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-BI8tGUij-WgkzFxD0.js → LabeledDropDownFormattedTextField-ChgtJqPr-DoauSiSH.js} +7 -7
- package/dist/assets/LabeledText-2EDpuXZ4-C8KbdmSn.js +42 -0
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BoJDAYsP-ISocjwDg.js → LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-Dxfcd1ix.js} +20 -20
- package/dist/assets/{LabeledZeniRolesDropDownField-B7n0GmSV-aaT1wrjI.js → LabeledZeniRolesDropDownField-CpH0eDWO-nc3j9OL8.js} +28 -28
- package/dist/assets/{LinkJETransactionPage-BRHWap1M-B6jJFTGs.js → LinkJETransactionPage-BhV2MnCY-2VFbWc8b.js} +16 -16
- package/dist/assets/LockCardPage-CHv1xi2J-DERlEjt9.js +623 -0
- package/dist/assets/{LowBalancePopup-6cIv7QGI-Cdkp97a-.js → LowBalancePopup-Cb55PGLc-gAPp5TRy.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-Dnp01hnF-MnmyVJLu.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-B36rsikS-BiwQJWMK.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-Zo4oNZez-Ba4r75te.js +1 -0
- package/dist/assets/MagicLinkSuccessPage-09NLbjFG-BOQ43guP.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-BaWqmY8Y-DpNPE-31.js → MagicLinkTitleSection-BA-i6vzA-BK_4bD52.js} +5 -5
- package/dist/assets/MailingDetailsSection-EwtoQ2TZ-BkNjZheA.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-DkE_cUdA-B5nqcQf6.js → MyBankConnectionsSettingsPage-Aer6AWxY-BxNOJih2.js} +14 -14
- package/dist/assets/MyPendingActivationChargeCardListPage-Ddy4bAEY-CbDHJT6Y.js +6 -0
- package/dist/assets/MyProfileSettingsPage-DMz-6h9F-CFSERtJI.js +85 -0
- package/dist/assets/NavBarWithPicker-D8WNahg--DUG3-gGB.js +30 -0
- package/dist/assets/{NavigationArrow-CJ3RPyfe-DBdDojnz.js → NavigationArrow-kQWS5Pzb-BEUVzE31.js} +7 -7
- package/dist/assets/{NavigationDots-D4COr3-8-BoU1J180.js → NavigationDots-BQb_Fodq-DtOlofVb.js} +2 -2
- package/dist/assets/{NewGlobalMerchantPage-CwrkgMXG-CLtkOvtX.js → NewGlobalMerchantPage-z86XZorn-DoavPLi0.js} +40 -40
- package/dist/assets/NoDataChart-CyYJ6icu-DPPKQloI.js +26 -0
- package/dist/assets/{NoDataTable-Dvgptxms-ken8n7Gv.js → NoDataTable-DVe7sQhD-x5eVDn8H.js} +1 -1
- package/dist/assets/{NotFoundPage-BTdYSpRB-DzcaBauu.js → NotFoundPage-B1XCmhSe-DRWfxKXj.js} +3 -3
- package/dist/assets/{NotificationSettingsPage-hF48Xjil-DO4vgNZR.js → NotificationSettingsPage-BaN20EGV-BGI1AOxL.js} +20 -20
- package/dist/assets/NotificationsListConfig-BOW_TmPC-gVlD4if6.js +1 -0
- package/dist/assets/NotificationsPage-C9efAgjo-BbYISYVW.js +685 -0
- package/dist/assets/OpExByVendorPage-DXeBU3-z-CtYWzGKb.js +100 -0
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-lZh11hHV.js → OverlayContainerPage-D4QU0p4o-DWwt3jvC.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BzMdJxuM-CW9al9Hz.js → PandLWithForecastPage-CXtJhnA_-CX7CsCDy.js} +12 -12
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CDPrK0IE-Bj86EDR9.js → PaymentAccountSetupBillingAddressSection-Deb_ngk6-DGKyDmFS.js} +16 -16
- package/dist/assets/PeoplePage-DXC2CtOt-CfYJLjB6.js +675 -0
- package/dist/assets/{Preview-DOtugFE3.js → Preview-bUJ-afSX.js} +1 -1
- package/dist/assets/{ProductsCarousel-CPh6jfEO-DETwqGwx.js → ProductsCarousel-ufZlh7Rx-BIDCk-h1.js} +7 -7
- package/dist/assets/{PromoBaseCards-Dl2VCjhb-rYH3pV0i.js → PromoBaseCards-D2UbhBhT-BSjHyOyw.js} +4 -4
- package/dist/assets/{QBOConnectionDialog-B3Ph_e2z-_atibkwZ.js → QBOConnectionDialog-BrQ71F06-BH2ZV7vR.js} +6 -6
- package/dist/assets/QBOSetupSection-EOFscEW--DnT8IFo9.js +79 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Djt5y4oN-BC_IHAVg.js → ReimbursementApprovalRuleDetailPage-C-HPI4Ng-BKRiZPcc.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-CiJJjcFu-CunJ2bVS.js → ReimbursementApprovalRulesPage-CMpYn5y_-DhEhjlJP.js} +13 -13
- package/dist/assets/ReimbursementDetailPage-CfmICHZb-EfH6pB2u.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-CPVzzNRs-HEHlPAqh.js → ReimbursementPromoPage-DXTAY8c7-BNOZ_20N.js} +32 -32
- package/dist/assets/{ReimbursementSetUpPage-BtOQPkaY-026y2WyP.js → ReimbursementSetUpPage-KrGPXTCb-qu8Limvb.js} +14 -14
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-l2mYNEKn-DBc7kt2f.js +1 -0
- package/dist/assets/{ReloadCard-C7JwMWXw-Cvj7koCQ.js → ReloadCard-vAhL7B8U-D7YWwAyL.js} +7 -7
- package/dist/assets/{ReportTableViewSelector-zuExZvaR-CuH-HEtv.js → ReportTableViewSelector-Y97ney3W-CvSSJ9ac.js} +5 -5
- package/dist/assets/{ReportsPage-DZpovmcV-CxO7Ay0j.js → ReportsPage-DKM0gVzR-DOSeE9yO.js} +6 -6
- package/dist/assets/{RevenueChart-ez6wj7cc-DsS332Fh.js → RevenueChart-BEjDS1u4-BIqPjNsw.js} +13 -13
- package/dist/assets/{ReviewDetailsPage-CSPg-7hy-BBEucee7.js → ReviewDetailsPage-BlQLrN9z-Dca8kSzg.js} +53 -53
- package/dist/assets/{ReviewOverlay-CCHslqz--CZdRxBdf.js → ReviewOverlay-Bn3TFqfi-DPoyDHGn.js} +9 -9
- package/dist/assets/RoleWithToolTip-DhBFvJea-B8n0jz5Q.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DcTMG4tX-kAkxwz74.js → ScheduleDetailsFixedAssetsPage-BMkFjf9Y-TyHmMR8_.js} +13 -13
- package/dist/assets/{ScheduleDetailsPage-Bxq5fYyw-ByraafRE.js → ScheduleDetailsPage-BP0wdtoP-B3l1fyxF.js} +3 -3
- package/dist/assets/ScheduleSequenceTable-D-rZ4ftr-NNixAuqw.js +324 -0
- package/dist/assets/{ScreenRoutes-DADRt3m9.js → ScreenRoutes-Dkdo_QnR.js} +48 -48
- package/dist/assets/{SetUpAccountSection-8mYaeWwd-DgrolkOV.js → SetUpAccountSection-CoVrSSYL-CtIuqnUK.js} +7 -7
- package/dist/assets/SignIn-BoAejo7r-BtV3Ttcw.js +491 -0
- package/dist/assets/SignInScreen-DsBeFXpf.js +1 -0
- package/dist/assets/SpendManagementListViewPage-D3eISFuA-BH8cRQWr.js +134 -0
- package/dist/assets/{SpendManagementPerTabPage-BYvhmmSc-BoQt5fMQ.js → SpendManagementPerTabPage-BWDjZyLp-C1eUKzso.js} +114 -114
- package/dist/assets/{SpendManagementSection-CCoM_Cxv-CkVjYk2a.js → SpendManagementSection-D8rBpC-y-Co0RTAvb.js} +22 -22
- package/dist/assets/StatementItem-Cu6dlAsl-DmauqRhg.js +31 -0
- package/dist/assets/StatementsPage-DiY2BOcu-ZhmXJvRa.js +58 -0
- package/dist/assets/{StatusSwitcher-qPOjXUSo-CGzUIx1d.js → StatusSwitcher-B9MARTyR-njYpaPcv.js} +4 -4
- package/dist/assets/{SubTabSwitcher-CaSibFBm-RaOxS7Pn.js → SubTabSwitcher-C3rtSwro-UHdU-bAk.js} +2 -2
- package/dist/assets/{SummaryCard-BsvJatQs-CjLjCcVs.js → SummaryCard-CShVbqhj-BLj7j0_e.js} +1 -1
- package/dist/assets/TaskManagementPage-RVS8nv0n-uCuNXBz9.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-CfMkQvYF-CiannF9n.js → TimeRangeSwitcher-DFnX6_WT-DWIBGfP-.js} +13 -13
- package/dist/assets/TimeframeSwitcher-CW08yYgo-Bs-pmnzg.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-DJOCWqpZ-BFZ7bLWL.js +31 -0
- package/dist/assets/{TopExCard-B9J8lGLo-B30R7u2A.js → TopExCard-dI_WEGWb-C8zSoGB_.js} +12 -12
- package/dist/assets/{TopExDetailPage-BD1I7eRD-DJwR7TZd.js → TopExDetailPage-BWy5E8Lp-DECCdxzr.js} +14 -14
- package/dist/assets/TransactionActivityLogPage-DjhEIUYm-PWZNzXJ2.js +195 -0
- package/dist/assets/TransactionDetailPage-CuxqQd8U-BuHJVoXs.js +903 -0
- package/dist/assets/TransactionList-80KjM8Kg-CevujtV6.js +153 -0
- package/dist/assets/{TransactionListBig-Ds4Qi0V4-BTiJtrsL.js → TransactionListBig-DWQXH4ID-DoEu9YAb.js} +20 -20
- package/dist/assets/TransactionListPage-DC08rCC9-Clz1psGf.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-BuEX1oP3-Bo0z6TbP.js → TransactionVendorDetailPage-CzfJ5b_3-Bq1jZ95u.js} +15 -15
- package/dist/assets/{TransferDrawerPage-C52xyV5d-kY6aeXNg.js → TransferDrawerPage-6z-MoZZP-X9c2FbF1.js} +40 -40
- package/dist/assets/{TreasuryOverviewPage-BCCkSArK-DMCpyOsl.js → TreasuryOverviewPage-CF_ter0o-BGvD7KcD.js} +38 -38
- package/dist/assets/{TreasuryPromoPage-vXhlCR_E-BZjuyryw.js → TreasuryPromoPage-Do-PTcjI-BVsAh_s5.js} +24 -24
- package/dist/assets/{TreasuryStatementsPage-BlrEtckW-CvkQwg1B.js → TreasuryStatementsPage-l_HC4zsb-BqffJxCU.js} +2 -2
- package/dist/assets/TreasuryTaxLetterPage-B8YxWytK-ClHOa93u.js +58 -0
- package/dist/assets/{TrendChart-CHHzmjv2-Z1hhrqX1.js → TrendChart-C6B61CAm-BUmkAB5E.js} +5 -5
- package/dist/assets/{TrendWithTransactions-DwaY27f2-DpPg53YC.js → TrendWithTransactions-Bp3vhaPa-DETWpy6t.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-C8k9PzrN-BtUWAI2y.js → UncategorizedAccountsMappingPage-cbFqKAv4-DeCca6Ny.js} +18 -18
- package/dist/assets/{UnitIntegrationPage-C8kaN2M_-C9KPkw2-.js → UnitIntegrationPage-DZ0ZpE5p-DeiuATlr.js} +5 -5
- package/dist/assets/UploadAdditionalDocumentOverlay-BKY6hK51-CydYggee.js +38 -0
- package/dist/assets/Vendor2FAPopup-DezpDfp8-DiVrYh3K.js +1 -0
- package/dist/assets/VendorACHDetailsPage-C8TWKYfc-Becdxrwt.js +1 -0
- package/dist/assets/{VendorDetailPage-BYaJXinH-DUPwtiyr.js → VendorDetailPage-C4g_Gfsl-BNNbSoIa.js} +89 -89
- package/dist/assets/VendorDomesticWireDetailsPage-BhJQ-Vmn-eHvavwdw.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-C5jYzHb1-C2mNpfNu.js → VendorFiling1099EditablePage-Ckt2MiVN-e4TYQZVn.js} +15 -15
- package/dist/assets/VendorFirstReviewPage-CIKRaTax-BN07guXv.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-B_plx9rY-B5vOg7i2.js → VendorInternationalWireDetailsPage-Dz8mMD8d-TCwuy6i-.js} +17 -17
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-XcV7Ot44-CPyZywKh.js +1 -0
- package/dist/assets/{VendorsAccountsSection-BE9NN7j2-M2MOrj0H.js → VendorsAccountsSection-BT-RADSV-Bve5DAMe.js} +4 -4
- package/dist/assets/{VerifyDevice-CHhkhIiR-CN-EcPav.js → VerifyDevice-Cxc9CVMi-DbObYdix.js} +11 -11
- package/dist/assets/{VideoPlayer-Dp4LYdDK-BIrhMJBd.js → VideoPlayer-9UkKMhGy-DADkPX-f.js} +2 -2
- package/dist/assets/{VideoPopup-Kq2Ny4qb-GkudTuD5.js → VideoPopup-rfiYmtio-DF-tGFMP.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-BaJGWils-DFY_x5GH.js → WarningsDrawerPage-DrUA4asI-C6MUqBWp.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-CqeawFzU-pmL8pPeq.js → ZeniAccountDetailPage-K016HgQt-wx5VYyBN.js} +24 -24
- package/dist/assets/{ZeniAccountListViewPage-BC7znv-z-NELgzow8.js → ZeniAccountListViewPage-1oZZynB1-E-BTeqGP.js} +17 -17
- package/dist/assets/{ZeniAccountNavBarPieces-BEekGYF8-5MGMMXj0.js → ZeniAccountNavBarPieces-C6Oicpue-a3nzNo79.js} +3 -3
- package/dist/assets/{ZeniAccountPromoPage-BD61iMJM-AywKP4VO.js → ZeniAccountPromoPage-BCgys-YM-CM9NQ_BO.js} +24 -24
- package/dist/assets/{ZeniAccountSetupPage-CIUArIFg-CEZLAy_L.js → ZeniAccountSetupPage-BubBgkoa-Duwi7djt.js} +3 -3
- package/dist/assets/ZeniCopyright-BxIwmms--Doa5lp53.js +1 -0
- package/dist/assets/ZeniTransferAmountSlider-DVJ0puXA-2P0ZBWZ7.js +63 -0
- package/dist/assets/{add-to-wallet-DgdBD8_G-DWXM_TBw.js → add-to-wallet-DgdBD8_G-DikzZE6B.js} +1 -1
- package/dist/assets/{analytics-Cvg-u8-2.js → analytics-DYhmL7CM.js} +30 -30
- package/dist/assets/{analyticsHelper-BlzRkKZg-B2LkgvA8.js → analyticsHelper-CT5zOInj-99CvxgyS.js} +1 -1
- package/dist/assets/{analyticsHelper-BpNAOx5Q.js → analyticsHelper-DDXauk_Q.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-CMFStSYD.js → arrow-south-east-round-PEovUgvH-8jWq8JIP.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-C_0tBgXa.js → auto-transfer-rule-mbafm5D3-BQD13VLl.js} +1 -1
- package/dist/assets/{chartTypes-Bg8wCCJo-ByGBP7Kx.js → chartTypes-Ddw_3-6f-HF5eETfQ.js} +1 -1
- package/dist/assets/commonDimensions-ClmbdehE-aq41ZcdE.js +1 -0
- package/dist/assets/{commonTypes-B2dNLPs8-LssZrp5i.js → commonTypes-B-foaEwJ-DpfDV34V.js} +1 -1
- package/dist/assets/{constants-DpEmalb9.js → constants-mf68mEZJ.js} +1 -1
- package/dist/assets/{core-BigkILPm.js → core-D7HgM8n1.js} +1 -1
- package/dist/assets/{dash.all.min-BeiUQojL.js → dash.all.min-D8zACU7x.js} +1 -1
- package/dist/assets/{detailCommon-dFjFrXPn-CuohGWbm.js → detailCommon-Cpgf9GLg-BeTL8M1q.js} +9 -9
- package/dist/assets/downloadPdf-DfRYmfsd-v-LOP3Jl.js +1 -0
- package/dist/assets/{empty-B9dXvt_8.js → empty-NSIYiedq.js} +1 -1
- package/dist/assets/{empty-CpJRwiZc.js → empty-Y3MKkeNh.js} +1 -1
- package/dist/assets/epic-CeNkV6CJ.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-JOtbwZSq.js → gift-box-Cmt9OgIZ-CD4XSNN9.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-BSKF2OrL.js → graphic-no-data-l-DU4J8fDt-Cj1mbKoU.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-VZD1sYCA.js → graphic-no-data-net-burn-l-CzmycA0m-DMlgtG13.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BVbCPIlH.js → handshake-BPg58FML-CDBh0ipY.js} +1 -1
- package/dist/assets/{helper-84lLR0pR-CHNdYDIc.js → helper-DP3YY99s-DI38626F.js} +3 -3
- package/dist/assets/{index-DOkuqa9Y.js → index-B1CF5cm3.js} +1 -1
- package/dist/assets/{index-CK72u5UX.js → index-BB6TP51b.js} +1 -1
- package/dist/assets/{index-CO-_hM8s.js → index-BDP43MqE.js} +1 -1
- package/dist/assets/{index-BnrFROY2.js → index-BUGp6bnR.js} +1 -1
- package/dist/assets/{index-Bi0ZQY9Y.js → index-Br79bjER.js} +1 -1
- package/dist/assets/{index-kUGHSXzQ.js → index-DCa8flZr.js} +1 -1
- package/dist/assets/{index-C0Qk6Z4T.js → index-DTirxbyQ.js} +4530 -4535
- package/dist/assets/{lexical-DMkegWP6.js → lexical-BIyV8PdW.js} +1 -1
- package/dist/assets/{liveblocks-CEs1rDbD.js → liveblocks-DIuhFCxt.js} +1 -1
- package/dist/assets/{lottie-B9wjZjZ1.js → lottie-CoVTVb_w.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-C0YIUOnb-CM3HanTy.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-xo9yV2zx-D-t0QvXH.js → mapSectionWithAcOnlyToTreeNode-QJI_OYzu-BY_qJXQo.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-DKDsz0vw-DacYuJs2.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DqDJAeAj-D7B8Pylg.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-C9qIIDvL-cwYb-_mq.js → mapTimeframeBalancesToTreeNode-J3b1nb_T-D59tSp4H.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-COGO4zaM-DoXO862U.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-BNoQeOGL.js} +1 -1
- package/dist/assets/{mui-_BiizxEu.js → mui-CUgxbbSv.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-DOAzp2B2.js → page-detail-CWX5S47F-CYodllrt.js} +1 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-COBjrU2Y.js +4 -0
- package/dist/assets/{radio-default-CiSgisfh-Bk2E4ZQD.js → radio-default-CiSgisfh-D5Swvnjv.js} +1 -1
- package/dist/assets/{react-DV52dlQF.js → react-BUMR3Oqj.js} +2 -2
- package/dist/assets/{react-BDJwzlQ1.js → react-BXfpyu7-.js} +1 -1
- package/dist/assets/{react-Bid-85AH.js → react-C1Bx9mvH.js} +1 -1
- package/dist/assets/{react-CstF33mL.js → react-CBTPpMQr.js} +1 -1
- package/dist/assets/{react-B5lksOsX.js → react-DEF24OHG.js} +1 -1
- package/dist/assets/{react-DQZdqdFY.js → react-DEm3GFrk.js} +3 -3
- package/dist/assets/{react-FG-k1_Zp.js → react-DPzCxJ9_.js} +1 -1
- package/dist/assets/{react-CajqMF-O.js → react-DWqZUhoP.js} +1 -1
- package/dist/assets/{recharts-C1J08DKE.js → recharts-Cv8hlrkl.js} +1 -1
- package/dist/assets/{sentry-DNdJk61Y.js → sentry-DuRPstDP.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-BJAVJLNs.js → shield-DOlUxcFf-BuWXLRZa.js} +1 -1
- package/dist/assets/toCOABalancesWithID-AzKAZ-Cv-BFfmnf7p.js +1 -0
- package/dist/assets/toChartData-BEjMhb7--D2HEmA7d.js +1 -0
- package/dist/assets/{uploadAttachment-Btwmohbb-BIEOFcgm.js → uploadAttachment-DUpHzqMe-BV5nx0ZT.js} +19 -19
- package/dist/assets/uploadReceipts-Dge0cNF1-D2wqfNY0.js +1 -0
- package/dist/assets/{url-7mcltx3r.js → url-CucjwMCN.js} +1 -1
- package/dist/assets/{url-BzfjL4PI.js → url-P-v-bynO.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-Ccim685e.js → useLongPress-GCK2COYQ-CK2T-95t.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-qHMqNnBh.js → usp-line-BBd1wKwW-Du-iFEZV.js} +1 -1
- package/dist/assets/{utils-CJz9ZWWV.js → utils-DiiaN_Gy.js} +1 -1
- package/dist/assets/{zeni-epic-state-BkKyof9Q.js → zeni-epic-state-DfBiKLGZ.js} +34 -34
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-Nw7UKktD-BkNC4e5B.js +0 -21
- package/dist/assets/AccountInfoPage-D4R2TjfL-q-EauRk4.js +0 -18
- package/dist/assets/AccountRow-k3PBYMDV-BqvmTgGx.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-BUlO08En-CebfK0vU.js +0 -6
- package/dist/assets/ApAgingDetailPage-ldAZScyH-BMhKfKFb.js +0 -46
- package/dist/assets/ApprovalRulesSettingsPage-CSEnfHsr-BydIE26A.js +0 -47
- package/dist/assets/BillDetailPage-DD-o3YCG-aXq3dwDB.js +0 -266
- package/dist/assets/BillPayPromoPage-BR1pLuKD-40d0wnUv.js +0 -84
- package/dist/assets/BillingSettingsPage-B8bxR3h2-CrIEihc3.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-OlbqCpCz-CYJfmGFY.js +0 -1
- package/dist/assets/BusinessVerificationPage-70_wkxdb-DV1V3U0I.js +0 -138
- package/dist/assets/ConfettiBurst-DjGWV0IU-CcvGhyUt.js +0 -1
- package/dist/assets/CurrencySelectField-b-bFTgxG-DkRtMPX9.js +0 -139
- package/dist/assets/CustomerOnboardingActivationPage-Dyk4RgRT-uRzB-RK6.js +0 -88
- package/dist/assets/CustomerOnboardingContainerPage-zKUA5_Db-BYTNjhXO.js +0 -1
- package/dist/assets/DashboardSidebarBackgroundAnimation-P0F5PKw_-aKFIlt3u.js +0 -12
- package/dist/assets/DepositAccTransactionListPage-MLtgU8v7-jrThBUmf.js +0 -66
- package/dist/assets/EditPeoplePage-DXaFGpmI-CZHUuWvz.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-Ds8TT5V_-WG75tTc9.js +0 -865
- package/dist/assets/EntityDetailPage-Crf3l24d-BrN0JRJE.js +0 -18
- package/dist/assets/ExpenseAutomationPage-CWAMORJA-CALJ7ezd.js +0 -3001
- package/dist/assets/GlobalReviewListPage-CXTY3EgT-DdtNEjtj.js +0 -291
- package/dist/assets/InsightsSection-BPznqBDz-CK20z1Lb.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-DkLS_bpy-CU7ACyPQ.js +0 -65
- package/dist/assets/InvitePeoplePage-DGPvMvBJ-Ce-6b38B.js +0 -12
- package/dist/assets/InvoiceUploadSection-CdYXqUHS-DdkPj4w6.js +0 -140
- package/dist/assets/LabeledAddressValueField-D8dreD-P-CutCad_f.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-Dk2m4oDh-DQ1UIi3x.js +0 -16
- package/dist/assets/LabeledDocumentField-nN1pbnDm-DRXhEc0D.js +0 -41
- package/dist/assets/LabeledText-DyYv9nNM-Rx5E4rTb.js +0 -42
- package/dist/assets/LockCardPage-3evJXNUe-DEvsvIXw.js +0 -623
- package/dist/assets/MagicLinkACHDetailsPage-Dqnd8OaJ-CNFVgD0s.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-o3R74kSf-CTFJDugq.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-8w78T_Tq-CaVecplo.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-dnU4ZBPE-m6Lhs6Op.js +0 -31
- package/dist/assets/MailingDetailsSection-9K9M3nSH-QXKTdG6h.js +0 -21
- package/dist/assets/MyPendingActivationChargeCardListPage-X64-wbJV-CjppeSVJ.js +0 -6
- package/dist/assets/MyProfileSettingsPage-ZFBRBkeF-P3LdxTas.js +0 -85
- package/dist/assets/NavBarWithPicker-CFd6K3KH-BauUMxnD.js +0 -30
- package/dist/assets/NoDataChart-DpQy-slq-ChCRHiVL.js +0 -26
- package/dist/assets/NotificationsListConfig-CTlXqNw7-Cgmm35uA.js +0 -1
- package/dist/assets/NotificationsPage-odaAtDv9-B6vik02n.js +0 -685
- package/dist/assets/OpExByVendorPage-CwfT-ykE-xwieXP3i.js +0 -100
- package/dist/assets/PeoplePage-D_str2r1-UsQAXDF3.js +0 -727
- package/dist/assets/QBOSetupSection-Dg-ZcGH4-CLd5XL5k.js +0 -79
- package/dist/assets/ReimbursementDetailPage-C7jzaWRr-BtyMwCn9.js +0 -314
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-oy12qHl7-Bxrw7vlM.js +0 -1
- package/dist/assets/RoleWithToolTip-vpx07PDQ-lGN6cB4F.js +0 -22
- package/dist/assets/ScheduleSequenceTable-DZ4vlDs--pwUjwjkR.js +0 -324
- package/dist/assets/SignIn-D8cZWP_m-zJWSuXYX.js +0 -491
- package/dist/assets/SignInScreen-DRfU3UD9.js +0 -1
- package/dist/assets/SpendManagementListViewPage-VfZLwPVN-sElZkBgS.js +0 -134
- package/dist/assets/StatementItem-eSR1knfw-B9s34jxc.js +0 -31
- package/dist/assets/StatementsPage-DLjSMQ19-Czeo_Ttx.js +0 -58
- package/dist/assets/TaskManagementPage-DEF0fOcP-BxFiNe5X.js +0 -508
- package/dist/assets/TimeframeSwitcher-D8BZqgLE-BTtCyPkd.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-CtsW3T5I-Bzp6YXDJ.js +0 -31
- package/dist/assets/TransactionActivityLogPage-8wO9Ge26-CscduFE0.js +0 -195
- package/dist/assets/TransactionDetailPage-Bg2WIamD-DFJfYPF-.js +0 -903
- package/dist/assets/TransactionList-Df0ONSNP-YajUB1tB.js +0 -153
- package/dist/assets/TransactionListPage-kj-3e5OW-HWj3Mfcy.js +0 -35
- package/dist/assets/TreasuryTaxLetterPage-Ry0VzYnZ-HEWOtnH3.js +0 -58
- package/dist/assets/UploadAdditionalDocumentOverlay-DI_ggkf1-DE8vz5Cd.js +0 -38
- package/dist/assets/Vendor2FAPopup-CFubwXdL-DCQTvV0z.js +0 -1
- package/dist/assets/VendorACHDetailsPage-Cgpbjg2Q-CWJCAejj.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-C44ZvJ_s-CM6ieHfN.js +0 -1
- package/dist/assets/VendorFirstReviewPage-D9O9ZrEo-DOoJTpGj.js +0 -730
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-DumD421h-CK-xdBEU.js +0 -1
- package/dist/assets/ZeniCopyright-CHWlGjTG-KN0tcU8W.js +0 -1
- package/dist/assets/ZeniTransferAmountSlider-DNmKLIDa-C2yxsdzh.js +0 -63
- package/dist/assets/commonDimensions-TCgIgcIo-SwaPAAMP.js +0 -1
- package/dist/assets/downloadPdf-CLYXLTga-F4u05EfU.js +0 -1
- package/dist/assets/epic-CQa9naTZ.js +0 -2
- package/dist/assets/mapLoadingInProgressToTreeNode-zhLf08J--DqyjwjpN.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-DAN6wWZH-BjKhXkVS.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Bj58shsO-DZ9mWHDZ.js +0 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-CT-PXRed.js +0 -3
- package/dist/assets/toCOABalancesWithID-DG5oSoAT-DB2kfV3h.js +0 -1
- package/dist/assets/toChartData-DG9EtlOy-C--iJHXH.js +0 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-BlBYl9KM.js +0 -1
- package/dist/assets/uploadReceipts-Dge0cNF1-Z9hpH5GP.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as Ee,J as Ie,aR as N,a9 as Ge,cG as Je,F as Te,aW as Ce,V as t,fe as qe,p as q,y as s,bD as Ze,T as Ye,ac as Ke,fx as ve,dR as Qe,fy as Xe,bx as et,dH as tt,aS as it,o as a,fA as nt,u as n,cj as ot,cK as at,ew as lt,fJ as ke,fK as $e,gj as st,i as rt,aQ as Pe,H as Ae,bN as ct,ai as dt,bu as ut}from"./index-DTirxbyQ.js";import{a as o}from"./sentry-DuRPstDP.js";import{n as i}from"./mui-CUgxbbSv.js";import{bJ as mt}from"./zeni-epic-state-DfBiKLGZ.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-BKY6hK51-CydYggee.js";import"./liveblocks-DIuhFCxt.js";import"./core-D7HgM8n1.js";import"./recharts-Cv8hlrkl.js";import"./lottie-CoVTVb_w.js";import"./analytics-DYhmL7CM.js";import"./lexical-BIyV8PdW.js";import"./utils-DiiaN_Gy.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]="9dbcaf41-e788-473e-9882-b4cc7638daec",e._sentryDebugIdIdentifier="sentry-dbid-9dbcaf41-e788-473e-9882-b4cc7638daec")}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=Ie(),D=Ee(),{formState:{errors:Y},trigger:K}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:c,updateStatus:F,mileageStatus:b}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Q,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[S,I]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{x||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=Q,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style: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(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(It,{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(Vt,{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(),I(!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"};
|
|
@@ -9,12 +9,12 @@ import{y as Ee,J as Ie,aS as N,aa as qe,cI as Ge,b as Ve,aX as Ce,V as t,fg as J
|
|
|
9
9
|
width: 100%;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
justify-content: flex-start;
|
|
12
|
-
`,bt=i.div`
|
|
13
|
-
display: flex;
|
|
14
12
|
`,wt=i.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
`,bt=i.div`
|
|
15
15
|
${e=>`${ge.title.style(e.windowSize)}`};
|
|
16
|
-
color: ${e=>e.isError===!0?
|
|
17
|
-
`,St=i(
|
|
16
|
+
color: ${e=>e.isError===!0?q.important:e.theme.colors.primary};
|
|
17
|
+
`,St=i(dt)`
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
justify-content: flex-start;
|
|
@@ -33,7 +33,7 @@ import{y as Ee,J as Ie,aS as N,aa as qe,cI as Ge,b as Ve,aX as Ce,V as t,fg as J
|
|
|
33
33
|
border-radius: ${a.sp11};
|
|
34
34
|
width: fit-content;
|
|
35
35
|
height: fit-content;
|
|
36
|
-
color: ${e=>e.isDarkMode?
|
|
36
|
+
color: ${e=>e.isDarkMode?q.neutralGrey5Light:e.theme.colors.brandColorOnyx}; // As per design
|
|
37
37
|
max-width: ${e=>h.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
38
38
|
max-height: ${e=>h.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
39
39
|
margin-right: ${e=>h.iconContainerMarginRight.valuePx(e.windowSize)};
|
|
@@ -68,7 +68,7 @@ import{y as Ee,J as Ie,aS as N,aa as qe,cI as Ge,b as Ve,aX as Ce,V as t,fg as J
|
|
|
68
68
|
`,At=i.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
|
-
`,jt=i.div``,Dt=i(
|
|
71
|
+
`,jt=i.div``,Dt=i(ct)`
|
|
72
72
|
color: ${e=>e.theme.colors.comingSoon};
|
|
73
73
|
margin-left: ${a.sp3};
|
|
74
74
|
`,Et=i.div`
|
|
@@ -82,19 +82,19 @@ import{y as Ee,J as Ie,aS as N,aa as qe,cI as Ge,b as Ve,aX as Ce,V as t,fg as J
|
|
|
82
82
|
height: ${a.sp6};
|
|
83
83
|
width: 100%;
|
|
84
84
|
position: relative;
|
|
85
|
-
`,
|
|
85
|
+
`,Tt=i.label`
|
|
86
86
|
display: flex;
|
|
87
87
|
padding-left: ${e=>h.infoLabelPaddingLeft.valuePx(e.size)};
|
|
88
|
-
color: ${e=>e.hasError===!0?
|
|
88
|
+
color: ${e=>e.hasError===!0?q.important:e.additionalInfoTextColor??e.theme.colors.hero};
|
|
89
89
|
${e=>`${ge.infoLabel.style(e.size)}`};
|
|
90
90
|
margin-top: ${a.sp1};
|
|
91
|
-
`,
|
|
91
|
+
`,Vt=i.div`
|
|
92
92
|
display: flex;
|
|
93
93
|
position: absolute;
|
|
94
94
|
top: 50%;
|
|
95
95
|
transform: translateY(-50%);
|
|
96
96
|
right: ${a.sp3};
|
|
97
|
-
`,
|
|
97
|
+
`,Lt=i(ut)`
|
|
98
98
|
width: ${a.sp3};
|
|
99
99
|
height: ${a.sp3};
|
|
100
100
|
cursor: ${e=>e.isDisabled==null?"pointer":"default"};
|
|
@@ -103,13 +103,13 @@ import{y as Ee,J as Ie,aS as N,aa as qe,cI as Ge,b as Ve,aX as Ce,V as t,fg as J
|
|
|
103
103
|
&:hover {
|
|
104
104
|
color: ${e=>e.theme.colors.primary};
|
|
105
105
|
}
|
|
106
|
-
`,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",
|
|
106
|
+
`,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",G="remiAccount",J="remiMileage",Qt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:d,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Y,onBusinessVerificationSectionClick:K,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:b,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:Q,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:I,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const W=Ee(),u=Ie(),[B,V]=o.useState(!1),{fetchState:v,primaryFundingAccount:C,allFundingAccounts:fe,updateStatus:L,accountUpdateStatus:Ve,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:ze,companyBillPayInfo:he,mileageRateConfig:Me,isRefreshingViewInBackground:Re,selectedCompanyOfficer:f}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=$,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(L.fetchState),we=N(se.fetchState),be=N(re.fetchState),z=Ge({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"&&V(!0),B&&_==="In-Progress"&&v==="Completed"&&V(!1)},[f,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||we==="In-Progress"&&se.fetchState==="Completed"||be==="In-Progress"&&re.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,we,se.fetchState,be,re.fetchState]);const Ue=z.handleSubmit(A=>{l.trackEnableReimbursement(),S()}),He=async(A,R)=>{const m=R[G];if(A.includes(G)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&C?.id!=m.fundingAccount.selectedOption){const w=fe.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&Q(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&C?.id!=null&&C?.zeniAccountId!=m.account.selectedOption){const w=m.account.allOptions.find(me=>me.value===m.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),U(m.account.selectedOption,C.id,C.accType)}}else if(A.includes(J)){const w=R[J];b(w)}};o.useEffect(()=>{const A=z.watch((R,{name:m})=>{m!=null&&R!=null&&Je(()=>He(m,R))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&I()},[I,ye,L.fetchState]);const{commonSetUp:Se,spendManagement:We}=Te.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:M}=Be,{setUp:k}=Se,ce=he?.isBusinessVerified===!0&&(C?.accType==="depositAccount"||mt(C?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Se.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=W.mode==="light"?new Ce(W.colors.brandColorJadeLight):new Ce(W.colors.brandColorJadeDark),Ne=()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?V(!0):K?.()};return t.jsxs(zt,{children:[t.jsx(qe,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>V(!1),style:{backgroundColor:q.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:d,updateStatus:L,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:f,onClose:()=>V(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:Y,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Ye,{size:"ExtraLarge",start:!0})}):t.jsx(Ke,{...z,children:t.jsx("form",{id:De(je),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Qe,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Xe,{connectedAccountProvider:j,primaryFundingAccount:C,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:fe,sectionId:G,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ft,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:J,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ve.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},zt=i.div`
|
|
107
107
|
display: flex;
|
|
108
108
|
min-height: 100%;
|
|
109
109
|
flex-direction: column;
|
|
110
110
|
width: 100%;
|
|
111
111
|
background-color: ${e=>e.theme.colors.grey4};
|
|
112
|
-
`,
|
|
112
|
+
`,Mt=i(ot)`
|
|
113
113
|
color: ${e=>e.theme.colors.hero};
|
|
114
114
|
display: flex;
|
|
115
115
|
justify-content: center;
|
|
@@ -137,4 +137,4 @@ import{y as Ee,J as Ie,aS as N,aa as qe,cI as Ge,b as Ve,aX as Ce,V as t,fg as J
|
|
|
137
137
|
display: flex;
|
|
138
138
|
flex-direction: column;
|
|
139
139
|
row-gap: ${e=>g.sectionRowGap.valuePx(e.windowSize)};
|
|
140
|
-
`,pe=e=>{const{allBankAccounts:p,allFundingAccounts:$,mileageDetails:j,primaryFundingAccount:P}=e,{localData:
|
|
140
|
+
`,pe=e=>{const{allBankAccounts:p,allFundingAccounts:$,mileageDetails:j,primaryFundingAccount:P}=e,{localData:d}=j;return{[G]:{fundingAccount:{selectedOption:P?.id,allOptions:$.map(r=>({label:r.label,value:r.id,isRecommended:r.accType==="depositAccount"}))},account:{selectedOption:P?.zeniAccountId,allOptions:p.map(r=>({label:r.accountName,value:r.accountId}))}},[J]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},De=e=>`${e}_form`;export{Qt as default,De as uniqueName};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{V as f,cq as V,cr as M,cs as q,kd as K,aZ as W,F as Z}from"./index-DTirxbyQ.js";import{a as b}from"./sentry-DuRPstDP.js";import{Go as z}from"./zeni-epic-state-DfBiKLGZ.js";import{u as G}from"./ReviewOverlay-Bn3TFqfi-DPoyDHGn.js";import"./liveblocks-DIuhFCxt.js";import"./core-D7HgM8n1.js";import"./recharts-Cv8hlrkl.js";import"./mui-CUgxbbSv.js";import"./lottie-CoVTVb_w.js";import"./analytics-DYhmL7CM.js";import"./lexical-BIyV8PdW.js";import"./utils-DiiaN_Gy.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]="34b0687c-6493-45cd-b0fa-e8f342859645",e._sentryDebugIdIdentifier="sentry-dbid-34b0687c-6493-45cd-b0fa-e8f342859645")}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:y,currentSubTab:g}=e,v=!1,[x,l]=b.useState(!1),[m,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===m.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[m.length,B,h,e.fetchState,v,e,o]);const D=m.length,S=m.filter(d=>d.reviewStatus.code!=="error").length,F=()=>{const{title:d,description:C}=X(S);A({type:"reject",title:d,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,y,g),l(!0)},E={onOkClick:d=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,y,g,z(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",d)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Y(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,y,g),u(t)},N=()=>{let d=a.footer.approve;return T?d=a.texts.close:t==="send_for_approval"&&(d=a.footer.submit),{label:d,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:[x?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(G,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,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=K(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:W("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},X=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)}},Y=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:y,do_:g,does:v}=a.texts,x=o>1,l=i>1;let m="",_="";return e==="Completed"&&!u?(m=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?g:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:y)}`):(m=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as l,V as r,aN as c,b3 as f,F as y,aQ as m,aT as h,bF as g,ai as u,o as a,b4 as b}from"./index-DTirxbyQ.js";import{n as s}from"./mui-CUgxbbSv.js";import{a as d}from"./sentry-DuRPstDP.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]="ebf148f5-e09b-4c42-a312-cecc529bac4c",e._sentryDebugIdIdentifier="sentry-dbid-ebf148f5-e09b-4c42-a312-cecc529bac4c")}catch{}})();function w({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 x=s(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
|
-
`;function T({dimension:e,animated:o}){const t=l();return r.jsx(
|
|
3
|
+
`;function T({dimension:e,animated:o}){const t=l();return r.jsx(c,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(c,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(b,{children:({height:n,width:i})=>r.jsx(w,{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;
|
|
5
5
|
`,k=s.div`
|
|
6
|
-
height: ${
|
|
7
|
-
width: ${
|
|
6
|
+
height: ${a.sp10};
|
|
7
|
+
width: ${a.sp10};
|
|
8
8
|
background: ${e=>e.theme.colors.background};
|
|
9
9
|
border-radius: 50%;
|
|
10
10
|
cursor: pointer;
|
|
@@ -19,8 +19,8 @@ import{y as l,V as r,aP as a,b4 as x,b as y,ac as m,aU as h,bG as g,ak as f,o as
|
|
|
19
19
|
color: ${e=>e.theme.colors.primary};
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
`,v=s(u)`
|
|
23
23
|
color: ${e=>e.theme.colors.champion};
|
|
24
|
-
|
|
24
|
+
`,$=s(u)`
|
|
25
25
|
color: ${e=>e.theme.colors.hero};
|
|
26
|
-
`,E=s(j)``;function
|
|
26
|
+
`,E=s(j)``;function K({dimension:e,cardType:o,cardIndex:t,reportTitle:n,onReloadData:i}){return r.jsx(c,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>i(t,o),children:r.jsxs(C,{children:[r.jsxs(v,{children:[n??f(o)," "]}),r.jsx(k,{children:r.jsx(E,{})}),r.jsx($,{children:y.getLocalizedStrings().card.failedText})]})})}export{T as E,D as I,K as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as ee,J as de,ce as be,a9 as ye,V as o,ao as _e,cf as te,ac as we,y as P,aS as $e,o as n,F as oe,cg as ve,ch as ke,ci as Ce,cj as je,ck as Ie,am as he,cl as Se,ai as Ne,aE as X,bF as Pe,u as f,aW as De,al as Oe,at as Fe}from"./index-DTirxbyQ.js";import{a as u,P as ue}from"./sentry-DuRPstDP.js";import{n as d}from"./mui-CUgxbbSv.js";import{R as D,I as Ae}from"./CollapsableReportTable-Cq8bhaYC-ZEUmVRwU.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]="e6653a46-0646-479a-afa5-5c7347cc75ea",e._sentryDebugIdIdentifier="sentry-dbid-e6653a46-0646-479a-afa5-5c7347cc75ea")}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}),Be=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:Be(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};
|
|
@@ -9,7 +9,7 @@ import{y as ee,J as de,cf as xe,aa as ye,V as o,aq as _e,cg as te,ae as we,x as
|
|
|
9
9
|
position: relative;
|
|
10
10
|
height: ${n.sp8};
|
|
11
11
|
cursor: pointer;
|
|
12
|
-
`,Me=d(
|
|
12
|
+
`,Me=d(Oe)`
|
|
13
13
|
color: ${e=>e.theme.colors.primary};
|
|
14
14
|
margin-top: -2px;
|
|
15
15
|
`,Re=d(Fe)`
|
|
@@ -20,10 +20,10 @@ import{y as ee,J as de,cf as xe,aa as ye,V as o,aq as _e,cg as te,ae as we,x as
|
|
|
20
20
|
:hover {
|
|
21
21
|
color: ${e=>e.theme.colors.primary};
|
|
22
22
|
}
|
|
23
|
-
`,Ve=e=>{const{value:r,onClick:a}=e,t=ee();return o.jsxs(Le,{onClick:a,children:[o.jsx(Me,{style:{color:t.colors.primary},children:r}),o.jsx(Re,{})]})},ze=ue.memo(Ve);function
|
|
23
|
+
`,Ve=e=>{const{value:r,onClick:a}=e,t=ee();return o.jsxs(Le,{onClick:a,children:[o.jsx(Me,{style:{color:t.colors.primary},children:r}),o.jsx(Re,{})]})},ze=ue.memo(Ve);function We({backgroundColor:e,foregroundColor:r,animated:a,width:t,height:l}){return o.jsxs(Pe,{speed:2,width:t,height:l,viewBox:`0 0 ${t} ${l}`,animate:a!=!1,backgroundColor:e,foregroundColor:r,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:f[3],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:f[8],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:f[4]})]})}function pe({nestedClass:e,isLastNode:r,config:a,parentNodeIDs:t}){const l=D("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:l,isLastNode:r,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((y,_)=>pe({nestedClass:y,config:a,isLastNode:_===e.children.length-1,parentNodeIDs:[...t,l]})),h}function Ye(e,r){const a=e.map((t,l)=>{const h=D("checkbox_and_name_only",[],t.classId[0]),y={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:r}},_=t.children.map(O=>pe({nestedClass:O,config:r,isLastNode:l===t.children.length-1,parentNodeIDs:[h]}));return y.children.push(..._),y});return{config:r,headerNodes:[],contentNodes:[...a]}}function He(e,r){Object.assign(e.config,r);const a=e.contentNodes;return a.forEach(t=>fe(t,r)),{config:r,headerNodes:[],contentNodes:[...a]}}function fe(e,r){Object.assign(e.reportElementData.config,r),e.children.forEach(a=>fe(a,r))}const se={contentPaddingLeft:new P(f[3],f[3],f[2]),contentPaddingRight:new P(f[3],f[3],f[2])},Ge=d.div`
|
|
24
24
|
height: ${e=>e.height}px;
|
|
25
25
|
width: 100%;
|
|
26
|
-
`,
|
|
26
|
+
`,Ue=({reportId:e,firstMonthOfFY:r,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:l,showClassAccountNumber:h,scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:q,onToggleCheck:F})=>{const z=ee(),W=de(),[v,j]=u.useState(void 0),[E,w]=u.useState(!1),[L,A]=u.useState({}),[m,M]=u.useState(void 0),[T,k]=u.useState(l),Y="none",B=c=>l==="account_group"?!0:t?.length>0?t.find(i=>i[0]===c[0])!=null:!1,I=(c,i)=>{w(!0),A(c),F?.(c,i,l==="account_group"?!0:void 0),$(c,i)},$=(c,i)=>{const g=H(c);for(const x of g.children)F?.(x.classId,i),$(x.classId,i)},H=c=>{let i=a.filter(g=>g.classId[0]===c[c.length-1])[0];for(let g=c.length-2;g>=0;g--)i=i.children.filter(x=>x.classId[0]===c[g])[0];return i},G=c=>{if(c.length>1){const i=H(c.slice(1));let g=!1;for(const x of i.children)if(t.find(U=>U[0]===x.classId[0])===void 0){g=!0;break}g===!0?F?.(i.classId,!0):F?.(i.classId,!1),A(i.classId)}};u.useEffect(()=>{E&&G(L)}),u.useEffect(()=>{const c={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:Y,firstMonthOfFY:r,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:B,showClassAccountNumber:h};if(v==null||!X(m,a)||!X(T,l)||E===!0){const i=Ye(a,c);M(a),j(i),k(l)}else{const i=He(v,c);j(i),k(l)}},[a,l,t]);const[J,K]=u.useState(5),Z=c=>{const i=c+f[6];K(i)};return v!=null?o.jsx(Ge,{height:J,children:o.jsx(Ae,{backgroundColor:l==="classes"?new De(z.colors.background):void 0,rootNodes:v,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:se.contentPaddingLeft.value(W),right:se.contentPaddingRight.value(W)},scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:q,onToggleCheck:I,onReportTableHeightChanged:Z})}):null},C={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(f[5],f[5]),containerWidth:new P(150,400,400)},qe=d.div`
|
|
27
27
|
position: relative;
|
|
28
28
|
pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
|
|
29
29
|
`,Je=d.div`
|
|
@@ -147,4 +147,4 @@ import{y as ee,J as de,cf as xe,aa as ye,V as o,aq as _e,cg as te,ae as we,x as
|
|
|
147
147
|
margin-left: ${n.sp5};
|
|
148
148
|
margin-top: -12px;
|
|
149
149
|
color: ${e=>e.theme.colors.hero};
|
|
150
|
-
`,{reportViewSelector:N,common:{footer:le}}=oe.getLocalizedStrings(),ie="tableViewSelector",ce=e=>`${e}_form`;function uo({reportId:e,firstMonthOfFY:r,nodes:a,classesListFetchState:t,selectedView:l,classesToBeFilteredOut:h,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:
|
|
150
|
+
`,{reportViewSelector:N,common:{footer:le}}=oe.getLocalizedStrings(),ie="tableViewSelector",ce=e=>`${e}_form`;function uo({reportId:e,firstMonthOfFY:r,nodes:a,classesListFetchState:t,selectedView:l,classesToBeFilteredOut:h,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:O,isClassViewDisabled:q,downloadPage:F,showAccountGroups:z=!0,onResyncReports:W,isPageFetchInProgress:v=!1,lastRefreshSuccessTime:j}){const E=ee(),w=de(),[L,A]=u.useState(!1),[m,M]=u.useState(l),[T,k]=u.useState({}),Y=(s,p)=>(s.forEach(b=>{p.push(b.classId),p=Y(b.children,p)}),p),B=Y(a,[]),[I,$]=u.useState(m==="classes"?h:B),H=t!=="Completed"||m==="classes"&&I.length===B.length,G=u.useRef(!1),[J,K]=u.useState(!1),Z=u.useRef(s=>{s&&!G.current&&(G.current=!0,K(!0))});be({componentName:`reports.${e}`,enabled:J});const c=s=>s==="classes"?N.classes.label:z===!0?N.accountGroups.label:N.accounts.label,i=ye({mode:"all"}),g=i.handleSubmit(()=>{A(!1),m==="classes"?O?.("classes",I):O?.("account_group")}),x=s=>{if(M(s),s==="classes")k({}),$([]);else{$(B);let p={};a.forEach(b=>{const S=D("checkbox_and_name_only",[],b.classId[0]);p=Object.assign({},p,{[S]:!1})}),k(p)}},U=()=>{L===!0&&Q(),A(!L);let s={};a.forEach(p=>{const b=D("checkbox_and_name_only",[],p.classId[0]);l==="account_group"||I.find(S=>S[0]===p.classId[0])!==void 0?s=Object.assign({},s,{[b]:!1}):s=Object.assign({},s,{[b]:!0})}),k(s)},me=(s,p,b)=>{if(b===!0&&(M("classes"),$(B)),p===!0){const S=D("checkbox_and_name_only",[],s[0]);T[S]=!0,k(T),$(R=>R.filter(xe=>xe[0]!==s[0]))}else{const S=D("checkbox_and_name_only",[],s[0]);T[S]=!1,I.find(R=>R[0]===s[0])===void 0&&$(R=>[...R,s])}},Q=()=>{A(!1),M(l),$(h)},ge=()=>{v===!1&&W?.()};return u.useEffect(()=>{if(t==="Completed"&&m==="account_group"){let s={};a.forEach(p=>{const b=D("checkbox_and_name_only",[],p.classId[0]);s=Object.assign({},s,{[b]:!1})}),k(s)}},[t]),o.jsx(_e,{onClickAway:Q,children:o.jsxs(qe,{ref:Z.current,isDisabled:q??!1,children:[F===!0?o.jsx(ze,{value:c(l),onClick:()=>{_?.(),U()}}):o.jsxs(Je,{windowSize:w,children:[o.jsxs(Ke,{onClick:s=>{s.preventDefault(),_?.(),U()},children:[o.jsx(Ze,{className:"dropdownIcon"}),c(l)]}),l==="classes"?o.jsx(oo,{onClick:ge,children:v?N.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${te(j)}`,o.jsx(so,{})]})}):null]}),L?o.jsx(we,{...i,children:o.jsx("form",{id:ce(ie),onSubmit:g,children:o.jsxs(Qe,{width:C.width.value(w),children:[o.jsx(ae,{checked:m==="account_group",children:o.jsxs(ne,{onClick:()=>m!=="account_group"?x("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>x(s.currentTarget.value),checked:m==="account_group",disabled:t!=="Completed"}),o.jsx(re,{disabled:t!=="Completed",children:z===!0?N.accountGroups.dropdownLabel:N.accounts.dropdownLabel})]})}),o.jsx(to,{}),o.jsxs(ae,{checked:m==="classes",children:[o.jsxs(ne,{onClick:()=>t==="Completed"?x("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?x(s.currentTarget.value):null,checked:m==="classes",disabled:t!=="Completed"}),o.jsx(re,{disabled:t!=="Completed",children:N.classes.dropdownLabel})]}),v||t!=="Completed"?null:o.jsx(ao,{children:j&&`${te(j)}`}),t==="Completed"?o.jsx(Xe,{id:"sectionformcontainer",children:o.jsx(no,{reportId:e,firstMonthOfFY:r,nestedClassHierarchy:a,classesToBeFilteredOut:I,selectedView:m,nodeOpenStatus:T,showClassAccountNumber:y,onToggleCheck:me})}):o.jsx(We,{backgroundColor:E.colors.grey3,foregroundColor:E.colors.grey4,width:C.width.value(w),height:C.height.value(w),animated:!0})]}),o.jsx(eo,{children:o.jsx($e,{formId:ce(ie),primaryBtn:{label:le.save,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:H,size:"small"},showCancel:!0,cancelBtn:{label:le.cancel,style:{width:C.buttonWidth.valuePx(w),height:C.buttonHeight.valuePx(w)},onClick:Q,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const no=ue.memo(Ue,X);export{ho as g,uo as x};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{J as W,y as G,b as y,ay as ge,V as r,bQ as _e,ac as T,bF as be,bE as Se,o as w,aV as we,L as ye,x as B,bR as Ce,u as S,D as A,aG as X,C as xe,aX as Oe,au as Re,bN as Ae}from"./index-C0Qk6Z4T.js";import{a as P,P as K}from"./sentry-DNdJk61Y.js";import{n as _}from"./mui-_BiizxEu.js";import{bg as Z,Fy as Be,FH as ve,FI as $,FJ as Le,FK as Pe,FL as Te,FM as Ie,FN as Ne,FO as ee,FP as te}from"./zeni-epic-state-BkKyof9Q.js";import{m as z,l as q}from"./analyticsHelper-BlzRkKZg-B2LkgvA8.js";import{x as ke}from"./ReportTableViewSelector-zuExZvaR-CuH-HEtv.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-CfMkQvYF-CiannF9n.js";import{I as Me}from"./TimeframeSwitcherWithToggle-CtsW3T5I-Bzp6YXDJ.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-CW7nP_gr-Gu43ShKI.js";import{I as je,R as F,p as ne}from"./CollapsableReportTable-CCnbdYjk-BPZVqk8_.js";import{D as oe,T as ae,C as j,L as Ee,g as ie}from"./mapSectionWithAcOnlyToTreeNode-xo9yV2zx-D-t0QvXH.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-C9qIIDvL-cwYb-_mq.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-COGO4zaM-DoXO862U.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-zhLf08J--DqyjwjpN.js";import"./liveblocks-CEs1rDbD.js";import"./core-BigkILPm.js";import"./recharts-C1J08DKE.js";import"./lottie-B9wjZjZ1.js";import"./analytics-Cvg-u8-2.js";import"./lexical-DMkegWP6.js";import"./utils-CJz9ZWWV.js";import"./TimeframeSwitcher-D8BZqgLE-BTtCyPkd.js";import"./page-detail-CWX5S47F-DOAzp2B2.js";import"./AccountRow-k3PBYMDV-BqvmTgGx.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]="d62ac34e-c342-4cad-9422-e98021280d99",e._sentryDebugIdIdentifier="sentry-dbid-d62ac34e-c342-4cad-9422-e98021280d99")}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=H({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(Le(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 Pe(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function He({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 Ye(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(Te(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 Ie(s)===!0?i.push(He({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ne(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(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=H({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(Ee({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(j({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=H({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(j({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,d as G,F as y,aw as ge,V as r,bP as _e,aQ as P,bE as be,bD as Se,o as w,aU as we,T as ye,y as B,bQ as Ce,u as S,w as A,aE as K,v as xe,aW as Oe,as as Re,bM as Ae}from"./index-DTirxbyQ.js";import{a as T,P as X}from"./sentry-DuRPstDP.js";import{n as _}from"./mui-CUgxbbSv.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Le,F1 as Te,F2 as Pe,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-DfBiKLGZ.js";import{m as z,l as q}from"./analyticsHelper-CT5zOInj-99CvxgyS.js";import{x as Ne}from"./ReportTableViewSelector-Y97ney3W-CvSSJ9ac.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-DFnX6_WT-DWIBGfP-.js";import{M as Me}from"./TimeframeSwitcherWithToggle-DJOCWqpZ-BFZ7bLWL.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-4f9deyJS-BdBfaHAQ.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-Cq8bhaYC-ZEUmVRwU.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-QJI_OYzu-BY_qJXQo.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-J3b1nb_T-D59tSp4H.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-BNoQeOGL.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-C0YIUOnb-CM3HanTy.js";import"./liveblocks-DIuhFCxt.js";import"./core-D7HgM8n1.js";import"./recharts-Cv8hlrkl.js";import"./lottie-CoVTVb_w.js";import"./analytics-DYhmL7CM.js";import"./lexical-BIyV8PdW.js";import"./utils-DiiaN_Gy.js";import"./TimeframeSwitcher-CW08yYgo-Bs-pmnzg.js";import"./page-detail-CWX5S47F-CYodllrt.js";import"./AccountRow-BiEYR4Y1-BYraCT3U.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]="eb43d29c-4ef4-42ae-9d32-7339cf8e20d3",e._sentryDebugIdIdentifier="sentry-dbid-eb43d29c-4ef4-42ae-9d32-7339cf8e20d3")}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,f)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:f===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:f===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),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(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 Te(s)===!0&&i.push(E({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 He(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),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),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 Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(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,f)=>{const s=f%4;let c=De[s];const C=ze({title:`${f}+${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}),f=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:f,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:f,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(E({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};
|
|
5
5
|
background-color: ${e=>e.theme.colors.grey4};
|
|
6
|
-
`;function Qe({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const
|
|
6
|
+
`;function Qe({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const f=W(),s=G(),[c,C]=T.useState(void 0),[x,j]=T.useState(void 0),v=!(f==="small"||f==="medium-compact"),V="name+balances_actual",M=u===!0?"this_period_vs_period_before":"none",O=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const h=e;m=(h.sections.expenses.balances.length>0?h.sections.expenses:h.sections.income).additionalBalances.map(D=>$(D));break}case"profit_and_loss_by_classes":{const h=e,D=(h.sections.expenses?.balances?.length??0)>0?h.sections.expenses:null,he=(h.sections.income?.balances?.length??0)>0?h.sections.income:null,H=D??he;H?.additionalBalances!=null&&(m=H.additionalBalances.map(me=>$(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(h=>$(h));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(h=>$(h));break}}return m.length>0&&m.find(h=>h.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:M,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ae(),showClassAccountNumber:n};if(c==null||!K(x,e)||g===!0){const h=Ke(e,m,v,g);j(e),C(h)}else{const h=We(c,m,e,v);C(h)}},[u,e,g]);const[R,k]=T.useState(5),N=m=>{const h=m+135;k(h)},fe=m=>m?.trackPageLoaded(Xe(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:fe}),r.jsx(Je,{height:R,children:r.jsx(Ee,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:J.contentPaddingLeft.value(f),right:J.contentPaddingRight.value(f)},onAccountClick:p==null?void 0:(m,h)=>{p(m,h)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,h)=>i?.(e.reportId,m,h),onReportTableHeightChanged:N,onScroll:m=>l?.(e.reportId,m)})})]}):null}const Ke=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return qe(e,t,o);case"profit_and_loss_by_classes":return Ze(e,t,o,a);case"cash_flow":return He(e,t,o);case"balance_sheet":return Ge(e,t,o);default:return}},Xe=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},et=_.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
@@ -49,7 +49,7 @@ import{J as W,y as G,b as y,ay as ge,V as r,bQ as _e,ac as T,bF as be,bE as Se,o
|
|
|
49
49
|
width: 160px;
|
|
50
50
|
left: 63%;
|
|
51
51
|
}
|
|
52
|
-
`;function ot({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[n];default:return console.warn("Unsupported report"),""}};return r.jsx(st,{"data-testid":
|
|
52
|
+
`;function ot({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[n];default:return console.warn("Unsupported report"),""}};return r.jsx(st,{"data-testid":P("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function at({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=n=>{o?.(n)};return r.jsx(et,{"data-testid":P("report-switcher-container"),children:r.jsx(tt,{"data-testid":P("report-switcher-content"),children:e.map(n=>n!=="profit_and_loss_by_classes"&&r.jsxs("div",{children:[r.jsx(ot,{reportId:n,isSelected:t===n,onClick:a}),r.jsx(nt,{className:`Slider ${t}`})]},`reportSegment-${n}`))})})}const I={contentContainerLeftRightMargin:new B(S[3],S[3],S[8]),contentRightPadding:new B(S[3],S[3],S[8]),tickSkelectionContainerWidth:new B(343,600,905,1240)},it=new B(4,4),ct=new B(4,4),rt={selectedNumberOfPeriods:(e,t)=>e?ct.value(t):it.value(t)},lt=_.div`
|
|
53
53
|
display: flex;
|
|
54
54
|
flex: 1 1 auto;
|
|
55
55
|
min-height: 100%;
|
|
@@ -73,14 +73,14 @@ import{J as W,y as G,b as y,ay as ge,V as r,bQ as _e,ac as T,bF as be,bE as Se,o
|
|
|
73
73
|
position: absolute;
|
|
74
74
|
margin-top: ${e=>e.windowSize==="small"?"230px":"195px"};
|
|
75
75
|
background-color: ${e=>e.theme.colors.grey4};
|
|
76
|
-
`,
|
|
76
|
+
`,ft=_.div`
|
|
77
77
|
display: flex;
|
|
78
78
|
width: 100%;
|
|
79
79
|
height: calc(100% - 60px);
|
|
80
80
|
flex-direction: column;
|
|
81
81
|
justify-content: center;
|
|
82
82
|
align-items: center;
|
|
83
|
-
`,
|
|
83
|
+
`,ht=_.div`
|
|
84
84
|
height: 96px;
|
|
85
85
|
width: 96px;
|
|
86
86
|
background: ${e=>e.theme.colors.background};
|
|
@@ -98,7 +98,7 @@ import{J as W,y as G,b as y,ay as ge,V as r,bQ as _e,ac as T,bF as be,bE as Se,o
|
|
|
98
98
|
`,mt=_(we)`
|
|
99
99
|
margin-top: ${w.sp3};
|
|
100
100
|
color: ${e=>e.theme.colors.hero};
|
|
101
|
-
`,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(ye,{size:"ExtraLarge",start:!0})}):null,b=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Jt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,R)=>{O!==h?.accountViewMode&&a?.(O),R&&n?.(R)};P.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&x.push("detailed");const[E,v]=K.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:E,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ht,{"data-testid":T("report-page-error-reload-page"),children:[r.jsx(ft,{"data-testid":T("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const M=e.fetchState;if(i.fetchState!=="Completed"&&(M==="In-Progress"||M==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx($e,{defaultOptions:h,analytics:e.analytics,referrer:L(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(R,N,k)=>{d(l,R,N,k)},onTimeframeSelectionChanged:(R,N,k)=>{p?.(R,N,k)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=P.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const C=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,C,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":T("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Me,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Fe,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(Rt,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(ke,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Q=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const L=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},St=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ue=K.memo(Qe,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&X(e[`${n}`],t[`${n}`]),!0),yt=_.div`
|
|
101
|
+
`,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(ye,{size:"ExtraLarge",start:!0})}):null,b=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Jt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,R)=>{O!==f?.accountViewMode&&a?.(O),R&&n?.(R)};T.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const f=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&f?.accountViewMode==="account_group"&&x.push("detailed");const[j,v]=X.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:j,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ft,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ht,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const M=e.fetchState;if(i.fetchState!=="Completed"&&(M==="In-Progress"||M==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:f!=null&&e.dataAvailable!=null?r.jsx($e,{defaultOptions:f,analytics:e.analytics,referrer:L(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(R,k,N)=>{d(l,R,k,N)},onTimeframeSelectionChanged:(R,k,N)=>{p?.(R,k,N)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=T.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const C=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,C,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",f=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Me,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Fe,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(Rt,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:f}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(Ne,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Q=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const L=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},St=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ue=X.memo(Qe,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&K(e[`${n}`],t[`${n}`]),!0),yt=_.div`
|
|
102
102
|
padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
|
|
103
103
|
`,Ct=_.div`
|
|
104
104
|
margin-top: ${w.sp3};
|