@zeniai/web-cockpit-ui 1.14.89-qa → 1.14.90-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-BBq7KpbY-D459fVD1.js → ACHDetailsPage-BUP-_2-W-BxsdzxJg.js} +3 -3
- package/dist/assets/{AIPerformancePage-Djq6mgKa-CoW3VwJ4.js → AIPerformancePage-DHF_70JI-BB0m0Wmb.js} +22 -22
- package/dist/assets/AccountInfoPage-pmUIckJ9-ClFTcWKH.js +18 -0
- package/dist/assets/{AccountInfoPageContent-DO6aVqBW-NM1136mH.js → AccountInfoPageContent-DLSL1NNm-ysW8pq2z.js} +9 -9
- package/dist/assets/AccountLockedInfoModal-Bq3y0K0F-DT_bUQ3U.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-DEKzSPCP-BuiGpDgm.js → AccountReconDetailsDrawerPage-CGcZO_qz-Cy1Ijv5f.js} +16 -16
- package/dist/assets/{AccountRow-Ck53DDbT-DWMrYTR2.js → AccountRow-D2Ypckgj-DU9kFXuE.js} +26 -26
- package/dist/assets/{AccountsPromoCardStack-BYjuB-4I-t6F8QAnS.js → AccountsPromoCardStack-BVVDCW1H-DJjdfLGW.js} +23 -23
- package/dist/assets/AddAddressForCardDrawer-C8aENofu-DA1NQK9C.js +6 -0
- package/dist/assets/{AddToWalletPage-DA6AmuaY-CmFVVEiw.js → AddToWalletPage-CmT5jSb5-D2YVbVt5.js} +11 -11
- package/dist/assets/{AgingReportsPage-B_Hhl_Is-B3LI-4Jv.js → AgingReportsPage-BeUGvj3b-CHP-b-K4.js} +6 -6
- package/dist/assets/{AllUserItems-BV22Ibpn-Cn4Po_RI.js → AllUserItems-CmlMyz-f-C0puagwR.js} +11 -11
- package/dist/assets/{ApAgingDetailPage-DqV1vOVH-C9HZaqeP.js → ApAgingDetailPage-Dz1_N0Yw-iyEKxxlG.js} +3 -3
- package/dist/assets/{AppBasePage-LrgCcvIv-D0C3kYnC.js → AppBasePage-DX4EGGcT-DxyBlsaI.js} +11 -11
- package/dist/assets/{AppDrawerContent-aZG5Qc_X-BTCDRaet.js → AppDrawerContent-Brg3Rw4K-DWiehP3E.js} +5 -5
- package/dist/assets/ApprovalRulesSettingsPage-Bn7KrUl2-CvKRvgo_.js +47 -0
- package/dist/assets/{ArAgingChart-Am7LTkqG-ChRjJ3UX.js → ArAgingChart-DQZtCsHS-CSTDLkfC.js} +4 -4
- package/dist/assets/ArAgingDetailPage-BtF6K5dA-VZeY_ZUJ.js +46 -0
- package/dist/assets/{AttachmentView-Bujbmx1d-DTmJzSNU.js → AttachmentView-DgPySmB8-B0CUUwUu.js} +8 -8
- package/dist/assets/{BankAccountSection-C5rYUW3V-DGt3bEf8.js → BankAccountSection-BVZK5jmO-oboSifeA.js} +7 -7
- package/dist/assets/{BankAccountWarningSection-DakysSbk-6wJeRIrk.js → BankAccountWarningSection-DHdeDi15-DsdgRhNS.js} +8 -8
- package/dist/assets/{BankConnectionsSettingsPage-BjZDNgZG-BiPdq8-x.js → BankConnectionsSettingsPage-BN3lAARB-UlnRR8CQ.js} +31 -31
- package/dist/assets/{BillDetailPage-DYc_nZRU-Cv-3eSux.js → BillDetailPage-BuUm6vdf-DEUKUhee.js} +13 -13
- package/dist/assets/BillPayApprovalRuleDetailPage-BXSdsF2E-CYUFVErE.js +27 -0
- package/dist/assets/BillPayApprovalRulesPage-B8HbVvc9-DpzHPmZp.js +241 -0
- package/dist/assets/{BillPayPromoPage-BK2J56U5-CnqDBUB8.js → BillPayPromoPage-DkoqXDNt-FNHctwfQ.js} +7 -7
- package/dist/assets/{BillPaySetUpPage-Jic5E25q-BFBJyheg.js → BillPaySetUpPage-BommXkLS-DOKgmPVm.js} +2 -2
- package/dist/assets/{BillingSettingsPage-CKZVChEm-Cuz40Itk.js → BillingSettingsPage-gHbc5Kq3-CFDIJf8G.js} +10 -10
- package/dist/assets/{BillsBulkReviewDrawerPage-C4Ra5e82-BPVTB2M3.js → BillsBulkReviewDrawerPage-C541rBnx-DPMvwxh2.js} +1 -1
- package/dist/assets/{BoxItem-8PfNfaHq-CoDiwyqr.js → BoxItem-usHxaONy-BSYmkNdH.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-JGge-Iiw-CFAqeRW8.js → BusinessVerificationPage-CLsxXy9d-ClcyVS-f.js} +10 -10
- package/dist/assets/{CardNumberSubText-W81SQ4GF-Bqu_rml1.js → CardNumberSubText-D_fWhc_K-BxJ3GoBc.js} +2 -2
- package/dist/assets/{CashbackDetailPage-DnOcmx2i-BEl7J3hp.js → CashbackDetailPage-D3WylWVP-CydwwFdH.js} +19 -19
- package/dist/assets/{ChargeCardDetailPage-DNVMsxzE-DkV5Ob3a.js → ChargeCardDetailPage-BUsGBwBf-DhD5ouX9.js} +27 -27
- package/dist/assets/{ChargeCardListPage-Dgj-WWWI-CbwqZtRf.js → ChargeCardListPage-Jhx05dVV-DjDdThgH.js} +24 -24
- package/dist/assets/{ChargeCardListTable-uJZKWoh7-DhZ8QmJ_.js → ChargeCardListTable-D-eYWaxh-CZeSVtIX.js} +26 -26
- package/dist/assets/ChargeCardPromoPage-CzR82VtA-DoVVgv51.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-BDbJU-vm-DUDTmQvB.js → ChargeCardSetupPage-Ctz8PCuu-Dmh0C1fi.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DImRqpH1-BOQhT3Eo.js → ChargeCardStatementsPage-EUtRTAX2-CIQRTxBN.js} +6 -6
- package/dist/assets/{CheckDepositDrawerPage-BVtOOPoa-Di3gSIJN.js → CheckDepositDrawerPage-B7DC0HAi-DPwOJJS7.js} +17 -17
- package/dist/assets/{CollapsableReportTable-Crihcv_z-Dz-RLuna.js → CollapsableReportTable-I40BZv7o-RBVPkQ58.js} +233 -233
- package/dist/assets/{CompanyOfficerDetailsSection-CNxtAkKM-CgBxbEOZ.js → CompanyOfficerDetailsSection-ChsNKXbx-Dk7vpi01.js} +24 -24
- package/dist/assets/{CompanyPassportCard-DMRQkRPb-C4cE2wuT.js → CompanyPassportCard-82bbFwk--C3mnYk4t.js} +1 -1
- package/dist/assets/{CompanyPassportPage-D3XvbSF_-CAA4hMAo.js → CompanyPassportPage-DG1Fa_Uw-B4wsnqA2.js} +18 -18
- package/dist/assets/{CompleteProfile-BqjXO5ze-D8LP_nnA.js → CompleteProfile-B7bQqLQH-DwtJrHr4.js} +1 -1
- package/dist/assets/{ConfettiBurst-DtwLo4WZ-CAgZ-6DA.js → ConfettiBurst-DUyIBnw4-BZY51mbD.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-FrGRJxMy-FFsZZvsv.js → CreateOrEditVendorPage-DVzMO96w-CjeOn0Zu.js} +6 -6
- package/dist/assets/CreditCardPaymentDrawerPage-C03hfKGc-BI7dTqV7.js +224 -0
- package/dist/assets/{CurrencySelectField-ClOg6nnS-BqF8GQ_v.js → CurrencySelectField-2hU3oIp_-CnccIVlk.js} +3 -3
- package/dist/assets/{CustomerOnboardingActivationPage-Du-zzeL2-DRuZjTjM.js → CustomerOnboardingActivationPage-Dt-Nml2t-CQyv3wO4.js} +8 -8
- package/dist/assets/CustomerOnboardingContainerPage-Dt-_tVOQ-B7ffmmrc.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BgY95XeU-CaAElGhv.js → CustomerOnboardingDetailPageSkeleton-C4Z1pDVe-CS261SSd.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-BsKoqUta-CmLhznz-.js → CustomerOnboardingNoStepsPage-CwI8nL61-Xg6qQ6Ku.js} +4 -4
- package/dist/assets/CustomerOnboardingPage-C3FgZjAN-C75cnlLW.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-DGVV8Tkk-2I-6Jp_o.js → CustomerOnboardingProductSuitePage-BOYu-82S-uR17VQjV.js} +4 -4
- package/dist/assets/{Dashboard-CdYlvep--DUCbDeKg.js → Dashboard-D_oTtu1--CP9XS1zf.js} +1 -1
- package/dist/assets/{DashboardReportPage-c6q027Qp-VmbWeRH9.js → DashboardReportPage-Dprj3eUQ-BK5e1r9g.js} +20 -20
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BdDVYK19-C2glc1OE.js → DashboardSidebarBackgroundAnimation-C6SQaB7q-C2qHBViE.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-D8kL8enp-Dmv2QmwN.js → DepositAccTransactionItem-C2oP415b-B5ygx6vl.js} +6 -6
- package/dist/assets/DepositAccTransactionListPage-DCvdqAz1-Df_FOAOf.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-CjM1DXnn-4nt88Wq7.js → DomesticWireDetailsPage-Da_3EveP-Bjb9K-P-.js} +2 -2
- package/dist/assets/{DownloadOverlay-Dr4uLNpZ-CSP7n0ty.js → DownloadOverlay-BwddFmV2-BqOR54wm.js} +26 -26
- package/dist/assets/{DrawerPage-CbKBsc7w-Czd32d3w.js → DrawerPage-CGrnrvf2-BvrxfWnf.js} +12 -12
- package/dist/assets/EditPeoplePage-DMgxG2Gd-C3BsPnxU.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-BTrwOX_s-B_mgHJUC.js → EditReimbursementDetailPage-DwCiVkeu-B4w5FVLx.js} +25 -25
- package/dist/assets/EntityDetailPage-BcRVEfi5-Cnj_gM9q.js +18 -0
- package/dist/assets/{EntitySummarySection-BIV9aAq2-CISETdsS.js → EntitySummarySection-BaHHLLkE-D3Ip19-Y.js} +28 -28
- package/dist/assets/{ExpenseAutomationOverviewPage-B5MtjO2p-BoXO6RyV.js → ExpenseAutomationOverviewPage-hl_3Pc0g-gY12ACUr.js} +27 -27
- package/dist/assets/ExpenseAutomationPage-D70ghitX-EafeQT3m.js +1650 -0
- package/dist/assets/{ExpressPayPage-DnpQuDmt-Nmc0dbGr.js → ExpressPayPage-BpfkmJ_I-B4izq8YR.js} +13 -13
- package/dist/assets/{FeaturePreviewPage-BmwBZ7ZP-BhRm4xx9.js → FeaturePreviewPage-Bzi8Bpk3-DtSpKYbK.js} +3 -3
- package/dist/assets/{FollowStepsSection-B2I9SddL-CxOpeC7P.js → FollowStepsSection-Bu3RG_GH-DmaIgxgE.js} +10 -10
- package/dist/assets/{GlobalReviewListPage-D3GCP5Xd-CB1HWDWu.js → GlobalReviewListPage-D4BD7q-I-BHZQG-gN.js} +11 -11
- package/dist/assets/{InformationCardStack-mEhasBqu-CreS8hEy.js → InformationCardStack-B9wnkR3p-CjpaX6cg.js} +3 -3
- package/dist/assets/{InsightsCardStack-Mj7QcQnH-ZWcbply5.js → InsightsCardStack-C1_rd2Sb-uYkz47Dy.js} +11 -11
- package/dist/assets/InsightsSection-7-T67WeF-BlMRO9Ba.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-CsI_agJB-DugcuKws.js → IntegrationsSettingsPage-C9YpvDgg-DjW-A2Ra.js} +11 -11
- package/dist/assets/{InternationalWireSwiftDetailsPage-Dszmi69h-CJS_ucM1.js → InternationalWireSwiftDetailsPage-C5mI8dEh-MFTemI3R.js} +12 -12
- package/dist/assets/{InternationalWireVerificationPage-DG9Enrpo-CrYQdSU8.js → InternationalWireVerificationPage-B8AOwcSX-HJr1qwVZ.js} +23 -23
- package/dist/assets/{InviteFormPage-DK6X9Zwi-BmvvCw3D.js → InviteFormPage-DuBhhnre-DKK8UkI0.js} +22 -22
- package/dist/assets/{InvitePageListView-CwKbcKlM-C3aARAlE.js → InvitePageListView-Dw8kwEFd-zXFzVUiq.js} +41 -41
- package/dist/assets/InvitePeoplePage-BI_vd7xw-BSlMVd1C.js +12 -0
- package/dist/assets/{InvoiceUploadSection-CokNNkKu-C3YItMb9.js → InvoiceUploadSection-9DaovMq8-DOf6F-xG.js} +3 -3
- package/dist/assets/IssueChargeCardPage-fumweN4Y-Ie_niRER.js +532 -0
- package/dist/assets/{LabeledAddressValue-BhwrrtZX-CXia5eoe.js → LabeledAddressValue-cNf6hI1l-C1IgZGiS.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DzmwP7hP-rTSkkk1A.js → LabeledAddressValueField-CoTtV0RQ-CTJHm8Dm.js} +8 -8
- package/dist/assets/{LabeledControlledCheckBoxField-B6ndrF2e-BO9IVhKI.js → LabeledControlledCheckBoxField-DQwUvKR2-BFeYWYOG.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CfzLlkho-CKXiWbBE.js → LabeledCreatableSingleSelectField-CnQsTYWe-BxSldgLD.js} +7 -7
- package/dist/assets/LabeledDocumentField-MkryOLQ8-ZmKcbrkd.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-oQX33Fim-t40SKG-g.js → LabeledDropDownFormattedTextField-B-yUtgxR-CkZPhULB.js} +7 -7
- package/dist/assets/{LabeledText-Db46hFZY-DW3nTMl_.js → LabeledText-BJ3Zvb5p-yc50ilCa.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-CwPLh_do.js → LabeledUserSingleSelectWithSubtitlesField-CSEiKb8M-B7kyEAM_.js} +17 -17
- package/dist/assets/{LabeledZeniRolesDropDownField-Docjgj8Y-CTQGzlhW.js → LabeledZeniRolesDropDownField-CS_oKjBG-CatyVbOL.js} +11 -11
- package/dist/assets/{LinkJETransactionPage-BZSRaZqY-uJGURN6e.js → LinkJETransactionPage-BsszwFNq-BtKpHm2U.js} +10 -10
- package/dist/assets/{LockCardPage-KTyESoXL-YHe6YgOp.js → LockCardPage-DqQGGac2-Bntrtxvn.js} +42 -42
- package/dist/assets/{LowBalancePopup-B0BDCEui-Boc2ml-j.js → LowBalancePopup-BFo5zRk3-BLFy36gu.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-wYa3cyyZ-Cn9Ml7SS.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CW4RNKOV-Bj3CP8hj.js +1 -0
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C2kxncrD-D3lbgGYX.js → MagicLinkInternationalWireDetailsPage-CX9SeCLl-Bato55Wl.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DNVe2qMu-CojCEkBp.js → MagicLinkSuccessPage-Dipq1-St-C4ZMZxw5.js} +2 -2
- package/dist/assets/{MagicLinkTitleSection-CWw516D8-D0jQqmvx.js → MagicLinkTitleSection-DnN52Uwb-aNaCMrDN.js} +7 -7
- package/dist/assets/{MailingDetailsSection-CugAM90r-DEwALK-q.js → MailingDetailsSection-DwNF-L2Y-DJJZ9RqI.js} +1 -1
- package/dist/assets/{Menu-CGN2qO6T-BTKtVwIK.js → Menu-D0jF6uaE-AMW53cTN.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CQUfVa0r-C9Wn2ND9.js → MyBankConnectionsSettingsPage-DpM6MKBq-CmnrHUZV.js} +7 -7
- package/dist/assets/{MyPendingActivationChargeCardListPage-TOQWRGjp-Sg0KcH3B.js → MyPendingActivationChargeCardListPage-BaT55Pwg-BdKjhqSf.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-lCG03Uoh-BOr5u8wJ.js → MyProfileSettingsPage-kD1dY6P6-BAgE1Tqp.js} +6 -6
- package/dist/assets/{NavBarWithPicker-DLLvivn4-C2EMLk4R.js → NavBarWithPicker-D-WQJ-tG-C6mGlKIr.js} +4 -4
- package/dist/assets/{NavigationArrow-B4j2t8Qu-ApLGyN2d.js → NavigationArrow-Z9PgxZ-c-DrPA9Vgt.js} +1 -1
- package/dist/assets/{NavigationDots-DyMqwpgy-BlQ4OF1d.js → NavigationDots-BT-m0FmS-CJdtX5bS.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Bx7iBsCP-BXKBuyek.js → NewGlobalMerchantPage-YsnX4uQU-7PwHdB8y.js} +36 -36
- package/dist/assets/{NoDataChart-Ce1_TZ5w-rlYBF6PD.js → NoDataChart-DMivligx-DVgr9SAl.js} +1 -1
- package/dist/assets/{NoDataTable-l2T5Hw3t-BDh4JUXv.js → NoDataTable-DwOJY23X-BMIpXvJR.js} +1 -1
- package/dist/assets/{NotFoundPage-msdN-Eu6-CnnlrsU4.js → NotFoundPage-DuKXpHos-BIXgl60z.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-_ovcjr8E-DY9p6U88.js → NotificationSettingsPage-DlU2NxiC-DDx7Rraa.js} +22 -22
- package/dist/assets/NotificationsListConfig-BQCb9x9X-C3jJIn48.js +1 -0
- package/dist/assets/{NotificationsPage-Ddxb5kE0-CDVU5W_a.js → NotificationsPage-q0bK_5gs-C_zZBYkJ.js} +37 -37
- package/dist/assets/{OpExByVendorPage-BLAHey0l-f-WjImJe.js → OpExByVendorPage-Boc7U8eu-BxBRsCtx.js} +24 -24
- package/dist/assets/OverlayContainerPage-CrZuT2Jj-DDO8EgYZ.js +11 -0
- package/dist/assets/{PandLWithForecastPage-B7Z73Sq--8S6z0rAz.js → PandLWithForecastPage-B2eGvFPp-CEl0eyCC.js} +10 -10
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-pL7omrJk-DD7f9yVw.js → PaymentAccountSetupBillingAddressSection-BP-_59EO-KoltH9y1.js} +9 -9
- package/dist/assets/{PeoplePage-BHRFiM0D-BagkceCs.js → PeoplePage-YMfZIga6-BPMCy-eb.js} +23 -23
- package/dist/assets/{Preview-Bnbo8Nq1.js → Preview-BszQHI_F.js} +1 -1
- package/dist/assets/{ProductsCarousel-D2bf_6Gb-B-FAzu9h.js → ProductsCarousel-CUaU5-V7-CFq7I05R.js} +6 -6
- package/dist/assets/{PromoBaseCards-CI7UOpeY-BbdxV6ii.js → PromoBaseCards-CmOYEhSO-D3yPErwW.js} +2 -2
- package/dist/assets/{QBOConnectionDialog-D7MeKn1t-TYawHVny.js → QBOConnectionDialog-BNiXUEAk-B55AIWRo.js} +3 -3
- package/dist/assets/{QBOSetupSection-DWhfA4Xv--q8kidUR.js → QBOSetupSection-CjjNFfgF-CIhiV9Dd.js} +9 -9
- package/dist/assets/ReimbursementApprovalRuleDetailPage-tP7WcKvd-CCMfftol.js +26 -0
- package/dist/assets/ReimbursementApprovalRulesPage-BkuYJ6qb-BIx385RC.js +243 -0
- package/dist/assets/{ReimbursementDetailPage-COIRwy7i-DZGfkzvc.js → ReimbursementDetailPage-D5IzqJS5-BklJr7jT.js} +13 -13
- package/dist/assets/ReimbursementPromoPage-D7n6lZNo-BpT8Ss67.js +84 -0
- package/dist/assets/{ReimbursementSetUpPage-CMYR8CcH-cG1PPIji.js → ReimbursementSetUpPage-E1elWU5Z-VC2DwUtC.js} +15 -15
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BDdhVfaz-CxW2G_F4.js → ReimbursementsBulkReviewDrawerPage-HzYNji-G-DGG79plx.js} +1 -1
- package/dist/assets/{ReloadCard-B2sJR97f-BG30B7lD.js → ReloadCard-DMWwNZ1z-CIbg2f6Q.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-_IO343vS-DarLVXtz.js → ReportTableViewSelector-EU36E1lv-XPDH-qLc.js} +11 -11
- package/dist/assets/{ReportsPage-C-aQ1bdd-DCIgVjO8.js → ReportsPage-iJDifG6q-BnnQKn2l.js} +4 -4
- package/dist/assets/{RevenueChart-Bgq6My4J-D1wqXuV1.js → RevenueChart-BbOK-HCB-UtcLA02J.js} +22 -22
- package/dist/assets/ReviewDetailsPage-Bk2vvBn3-C2KvPaPZ.js +290 -0
- package/dist/assets/{ReviewOverlay-CPU7RPiJ-BhFB4uqb.js → ReviewOverlay-CJlk2MNH-s-FncxF6.js} +14 -14
- package/dist/assets/{RoleWithToolTip-DSSGBzvw-Ca10uH2X.js → RoleWithToolTip-B7woUKhj-CCCbdbHN.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DKGBfhAM-UyHqt-88.js → ScheduleDetailsFixedAssetsPage-B-WjqQN_-BZxRVl4y.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-B-fKJ7Ct-BzTbS9K2.js → ScheduleDetailsPage-ocFBINM3-BwGXsqpK.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-Dh_aT47H-BL4_zz48.js → ScheduleSequenceTable-Bb7MJ-zJ-GmSlZz8a.js} +24 -24
- package/dist/assets/{ScreenRoutes-DKJDWrq-.js → ScreenRoutes-Bs2X1R3V.js} +42 -42
- package/dist/assets/{SetUpAccountSection-DrMCC1IY-DEHd1Ql0.js → SetUpAccountSection-9zELif-q-xWCkQEz2.js} +4 -4
- package/dist/assets/{SignIn-Ij6tlYI5-CcVqI-K7.js → SignIn-BHHUcLal-BDutKsDY.js} +17 -17
- package/dist/assets/{SignInScreen-BZlFDA0S.js → SignInScreen-DqJeiieA.js} +1 -1
- package/dist/assets/SpendManagementListViewPage-BAdSW-49-C0b0e4ib.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-HzCmGr0--BrKmnwTS.js +785 -0
- package/dist/assets/{SpendManagementSection-BqWbsmBW-C71zMSb0.js → SpendManagementSection-LzT-Bnhy-DcyEJGSm.js} +15 -15
- package/dist/assets/StatementItem-BnxTFgdM-ncI51LoG.js +31 -0
- package/dist/assets/{StatementsPage-BG_pNQzc-FNk9HF4E.js → StatementsPage-B8X2un5p-CiIvEzAF.js} +4 -4
- package/dist/assets/{StatusSwitcher-DYRXaLvx-erQqAcc2.js → StatusSwitcher-BPKr5BUW-lb0m6Cbr.js} +1 -1
- package/dist/assets/{SubTabSwitcher-C75XU1EG-khmziXpM.js → SubTabSwitcher-4dvyyQSv-BdqA6ZlC.js} +1 -1
- package/dist/assets/{SummaryCard-DEnzgi31-BCFloXQE.js → SummaryCard-CiNkV7uy-BHimAYKo.js} +1 -1
- package/dist/assets/{TaskManagementPage-BacWm0wS-C9oPqJX0.js → TaskManagementPage-BiyyDIWi-DCcTniX2.js} +15 -15
- package/dist/assets/{TimeRangeSwitcher-BOzR-0O6-DleTftrv.js → TimeRangeSwitcher-DEEhq2Us-D64DWBCZ.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BVgI_VZw-DeIWrcpL.js → TimeframeSwitcher-u606tI8Z-DKc_Ov1z.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CPVSAvFa-CMvHnrOH.js → TimeframeSwitcherWithToggle-D2sBGHXQ-Dp4KGiW_.js} +1 -1
- package/dist/assets/{TopExCard-ImUx-vXr-CKpHxxKg.js → TopExCard-DbPlohSJ-YKd6FEuQ.js} +4 -4
- package/dist/assets/{TopExDetailPage-Dg_8DQk8-zNlOv5On.js → TopExDetailPage-Cla8Hd-1-1fpYe-lT.js} +9 -9
- package/dist/assets/{TransactionDetailPage-BzaDB50S-6K-8nkD6.js → TransactionDetailPage-BbjtQvBr-DNyUqobk.js} +45 -45
- package/dist/assets/{TransactionList-DMd3dgoK-CLgrj5t0.js → TransactionList-BRiHadkm-BVpjF8up.js} +14 -14
- package/dist/assets/{TransactionListBig-BxHqh8u6-_P9SDt8S.js → TransactionListBig-BOeu4-R4-Cua70V6_.js} +20 -20
- package/dist/assets/TransactionListPage-ByVvx6ON-C32shKZQ.js +35 -0
- package/dist/assets/TransactionVendorDetailPage-DMweGn3b-CelejD-M.js +80 -0
- package/dist/assets/{TransferDrawerPage-oV7ickRP-5Eww1c_s.js → TransferDrawerPage-BTqCR3Hb-CYdeK3jF.js} +12 -12
- package/dist/assets/{TreasuryOverviewPage-CECDKjNn-DsPaT5wp.js → TreasuryOverviewPage-CDJtsQsC-ns0b2xlD.js} +42 -42
- package/dist/assets/{TreasuryPromoPage-Bgt7uGAE-DbUuqsJn.js → TreasuryPromoPage-Bqt6DcqL-DbWZMgaj.js} +131 -131
- package/dist/assets/TreasuryStatementsPage-2PsC-PWa-MMDwIX2Z.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-D6MoHMAo-MFFnXqVo.js +58 -0
- package/dist/assets/{TrendChart-C_6ob-SX-CNkMjJ7x.js → TrendChart-DiutckSt-CgHLzJj6.js} +4 -4
- package/dist/assets/{TrendWithTransactions-lMD2sZ-C-DdlZeAtv.js → TrendWithTransactions-rPwZKHfV-DNKy45Dj.js} +9 -9
- package/dist/assets/{UncategorizedAccountsMappingPage-DEgz17_R-Cgic9eeC.js → UncategorizedAccountsMappingPage-CFx4P194-CH9WyFGN.js} +11 -11
- package/dist/assets/{UnitIntegrationPage-D9Pzxqju-Cl7tn05L.js → UnitIntegrationPage-DO8dMzVg-DvbEuGmN.js} +6 -6
- package/dist/assets/UploadAdditionalDocumentOverlay-Ug3kL02_-B3G6i9sn.js +38 -0
- package/dist/assets/{Vendor2FAPopup-D-r0NVE--BqeJAf6W.js → Vendor2FAPopup-BdG-Ywma-QkJvZ609.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-Dv6bTD6Y-Dh7VC92k.js → VendorACHDetailsPage-BUNmE_s6-5dZ0tO5y.js} +1 -1
- package/dist/assets/{VendorDetailPage-BhfawsBd-8Uqpk4ze.js → VendorDetailPage-Dy9McuGu-BueeE3oi.js} +19 -19
- package/dist/assets/{VendorDomesticWireDetailsPage-BjmlrfTQ-7VOlTeLI.js → VendorDomesticWireDetailsPage-DvACrh7C-fv6qIbh-.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-glvi0GTU-BXYIOtNt.js → VendorFiling1099EditablePage-Y0hGO4RH-Bkykk5NB.js} +21 -21
- package/dist/assets/{VendorFirstReviewPage-DUuUM8ZT-DqUSgRG9.js → VendorFirstReviewPage-C-pT1M36-D21-SWZN.js} +50 -50
- package/dist/assets/{VendorInternationalWireDetailsPage--Lb-TviQ-Bp9LJlPA.js → VendorInternationalWireDetailsPage-CCMramET-CvrUOrMX.js} +15 -15
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C6KviV2Z-DLcr_p5Y.js → VendorInternationalWireSwiftDetailsPage-lxD_Z5W--BAaZ1iJw.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-EmHO3wQ0-DPKbgQ3f.js → VendorsAccountsSection-D-3fhQvy-ODF-nF1J.js} +2 -2
- package/dist/assets/{VerifyDevice-DE3UbLEe-8CXh-0a9.js → VerifyDevice-DDZdWfa8-C2_zooti.js} +7 -7
- package/dist/assets/{VideoPlayer-Gw_PLr8F-DVeDzAlW.js → VideoPlayer-D0GZ_Yml-CzUqkm8K.js} +2 -2
- package/dist/assets/{VideoPopup-DPZYhLgy-BzGmVjpY.js → VideoPopup-CEdhfU31-CRc_PqEa.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CZvToguS-GWzWrxrB.js → WarningsDrawerPage-CIK9lkT2-4Dbh3gee.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-CQhqngBz-Dy1WX8Sh.js → ZeniAccountDetailPage-BF8cg2oa-D23upslb.js} +36 -36
- package/dist/assets/{ZeniAccountListViewPage-CpX8vqYa-DyYliYsL.js → ZeniAccountListViewPage-BkdkYY8j-BsJgCgRQ.js} +9 -9
- package/dist/assets/{ZeniAccountNavBarPieces-DsUwG15z-DX40_WfT.js → ZeniAccountNavBarPieces-FAxN1QDY-BljetA4S.js} +3 -3
- package/dist/assets/{ZeniAccountPromoPage-DA611IgH-CAN8a9xp.js → ZeniAccountPromoPage-COAOIU03-Bkst1764.js} +31 -31
- package/dist/assets/{ZeniAccountSetupPage-CJv2Fk1i-BLYsiWRn.js → ZeniAccountSetupPage-QMBiVius-DdJzbNoZ.js} +6 -6
- package/dist/assets/{ZeniCopyright-FFqiWypL-ClNN14Sj.js → ZeniCopyright-CgfP-kcy-BQ8g3w-z.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DSrBZUbA-CY6pLC2m.js → ZeniTransferAmountSlider-B1fmc3f9-BXoBksgM.js} +3 -3
- package/dist/assets/{add-to-wallet-DgdBD8_G-CmJT13gp.js → add-to-wallet-DgdBD8_G-BctcirlU.js} +1 -1
- package/dist/assets/{analytics-XaDXTZcq.js → analytics-DGBWhVbe.js} +1 -1
- package/dist/assets/{analyticsHelper-CczQLvkM-CCZefn7k.js → analyticsHelper-BKtlFOJm-DFeq4K6y.js} +1 -1
- package/dist/assets/analyticsHelper-BY515BEN.js +1 -0
- package/dist/assets/{arrow-south-east-round-PEovUgvH-7DsZUZDF.js → arrow-south-east-round-PEovUgvH-DFZl4BUT.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-iFkTgScT.js → auto-transfer-rule-mbafm5D3-BCnmjSj0.js} +1 -1
- package/dist/assets/{chartTypes-CwQl8aoN-vis3Ppko.js → chartTypes-BZYC5y5J-fsutalT0.js} +1 -1
- package/dist/assets/{commonDimensions-B1u_MhON-B6mWoroN.js → commonDimensions-B-aZt-hB-CyMsSMR_.js} +1 -1
- package/dist/assets/{core-3dlyNYRL.js → core-B-FNbYlu.js} +12 -12
- package/dist/assets/{dash.all.min-DBAY9LgI.js → dash.all.min-BBsvkPzr.js} +1 -1
- package/dist/assets/{detailCommon-nYxvvV_i-w2-qTde1.js → detailCommon-DCtkwfR8-BBwf5Sk5.js} +2 -2
- package/dist/assets/{downloadPdf-yGlKpV2--Y8lOVYTP.js → downloadPdf-BhQlJMh0-BaxCiwAc.js} +1 -1
- package/dist/assets/{empty-DeBX16Fq.js → empty-TjEo4rDg.js} +1 -1
- package/dist/assets/epic-DMZtehrN.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-CvUdutGd.js → gift-box-Cmt9OgIZ-aujv_noX.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js → graphic-no-data-l-DU4J8fDt-DTSR9TM8.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js → graphic-no-data-net-burn-l-CzmycA0m-Bw4ambPw.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-D7G7L1P7.js → handshake-BPg58FML-BjSDfVm7.js} +1 -1
- package/dist/assets/{index-BzfDeuOT.js → index-BhteR_e0.js} +3325 -3235
- package/dist/assets/{index-DYDdrdFx.js → index-CFi0iD-l.js} +1 -1
- package/dist/assets/{index-CEtuJXY3.js → index-CL_7G35J.js} +1 -1
- package/dist/assets/{index-DrmeEdvK.js → index-DdJI4MMd.js} +1 -1
- package/dist/assets/{index-CdTBIE6I.js → index-dPPP2cWo.js} +1 -1
- package/dist/assets/{index-DQmBF4-D.js → index-piC0sJHK.js} +1 -1
- package/dist/assets/{liveblocks-CNYVvsag.js → liveblocks-BBTLClA6.js} +1 -1
- package/dist/assets/{lottie-22bRan8M.js → lottie-gmZDfwf4.js} +2 -2
- package/dist/assets/{mapLoadingInProgressToTreeNode-DIAuL28N-CE171aMF.js → mapLoadingInProgressToTreeNode-B8iO-fIh-RTAx_JGt.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DRSmQ56_-DrWPogDr.js → mapSectionWithAcOnlyToTreeNode-PLUfKBDd-B2JV3NdC.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DOEVwUIo-C7NOdCBj.js → mapSpacerToTreeNode-BPbkmHFY-Ce33KPvG.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DbnAvW1M-r-xCXIcX.js → mapTimeframeBalancesToTreeNode-B-kK0AfR-BuUApKLg.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DkrEWOxt-Rww75weA.js → mapTimeframeBalancesToTreeNode-BvN4m9TA-kT_avyio.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-BHUC6JHc.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-CoGG1EsI.js} +1 -1
- package/dist/assets/{mui-bYXq4XMS.js → mui-DLNyBjYF.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-Bc8Xpsuq.js → page-detail-CWX5S47F-Dn7FEY9U.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-Clpw2LWj.js → radio-default-CiSgisfh-B6CtarQ8.js} +1 -1
- package/dist/assets/{react-BpmEXSTM.js → react-2VG2yH4x.js} +1 -1
- package/dist/assets/{react-B84192hO.js → react-BiH01iGK.js} +2 -2
- package/dist/assets/{react-BvHTyLQY.js → react-Bqj7JUF5.js} +1 -1
- package/dist/assets/{react-Egsc5mMa.js → react-CeCWo9lx.js} +3 -3
- package/dist/assets/{react-BUQtf2po.js → react-CwPTei9W.js} +2 -2
- package/dist/assets/{react-CA3XI5Yc.js → react-CxPSrq5B.js} +1 -1
- package/dist/assets/{react-BuvI16A0.js → react-VfkIuzgx.js} +1 -1
- package/dist/assets/{react-Cz0zQhlY.js → react-sPv488Z5.js} +1 -1
- package/dist/assets/{recharts-h5iNQbFd.js → recharts-Cnl2EvUV.js} +1 -1
- package/dist/assets/{sentry-cYFeB6Pw.js → sentry-EYLV4XmG.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-BXuToJ7O.js → shield-DOlUxcFf-DYYbm8md.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-rZFEkHuM-E72ORuv4.js → toCOABalancesWithID-ChMShONK-DKVddnaL.js} +1 -1
- package/dist/assets/{toChartData-C-dHC-Oz-OuMMtKUa.js → toChartData-BUweupH8-9P9fGujj.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-0pwHfQC6.js → transaction-placeholder-CpOwZAMG-R9RAntKW.js} +1 -1
- package/dist/assets/{uploadAttachment-D3clfqPu-BmVWSSt_.js → uploadAttachment-CeUHLpzO-CvskAe_e.js} +23 -23
- package/dist/assets/{uploadReceipts-Bkf_PaOH-C3QTKEAv.js → uploadReceipts-Bkf_PaOH-B-Qf32vH.js} +1 -1
- package/dist/assets/{url-DPKHmOp_.js → url-DzcuVjHh.js} +1 -1
- package/dist/assets/{url-B-8T_WZb.js → url-dmxYLsoS.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-8uipnze8.js → useLongPress-GCK2COYQ-BC43nxgO.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-ClwDS-nj.js → usp-line-BBd1wKwW-_aHpaGit.js} +1 -1
- package/dist/assets/utils-D1zwltK3.js +70 -0
- package/dist/assets/{zeni-epic-state-BwKvATgd.js → zeni-epic-state-HWtMOH-U.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-CxWBk_t_-qPYiFJSq.js +0 -18
- package/dist/assets/AccountLockedInfoModal-DVvzKHJQ-kmmeDebU.js +0 -59
- package/dist/assets/AddAddressForCardDrawer-e8qbO2Y5-DsaJZQWB.js +0 -6
- package/dist/assets/ApprovalRulesSettingsPage-DQQw30S5-CnLGJ0xc.js +0 -47
- package/dist/assets/ArAgingDetailPage-BEKsyA9Q-7a6TaIXp.js +0 -46
- package/dist/assets/BillPayApprovalRuleDetailPage-ppU1Epmy-BVL7a4hF.js +0 -27
- package/dist/assets/BillPayApprovalRulesPage-UblNi2mR-C84KMJKz.js +0 -235
- package/dist/assets/ChargeCardPromoPage-uqT96W3_-CeqDR53z.js +0 -222
- package/dist/assets/CreditCardPaymentDrawerPage-BvifQpD3-CKtkQXFi.js +0 -224
- package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-Dtf3INy1.js +0 -1
- package/dist/assets/CustomerOnboardingPage-DUMQKVfM-BM9txdIv.js +0 -107
- package/dist/assets/DepositAccTransactionListPage-BS-OReem-DDmHQNjM.js +0 -66
- package/dist/assets/EditPeoplePage-BgsR09q8-CEehYeHu.js +0 -55
- package/dist/assets/EntityDetailPage-Cvd4MG0F-HlxSZMDv.js +0 -18
- package/dist/assets/ExpenseAutomationPage-DW6Pxoah-Ctf3nYeu.js +0 -1650
- package/dist/assets/InsightsSection-B3xD0SZ9-Bq9pMcss.js +0 -27
- package/dist/assets/InvitePeoplePage-BqzJOjVI-BuNYyatr.js +0 -12
- package/dist/assets/IssueChargeCardPage-CRtJDmrZ-YScD5lVM.js +0 -532
- package/dist/assets/LabeledDocumentField-p3pI5qLu-DEgMORLm.js +0 -41
- package/dist/assets/MagicLinkACHDetailsPage-DwFvuGwG-B9i-tfwt.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CDB2igue-D0JS60DY.js +0 -1
- package/dist/assets/NotificationsListConfig-BJm7A9Mz-DNN8xXMd.js +0 -1
- package/dist/assets/OverlayContainerPage-CrZuT2Jj-C4_lIvBh.js +0 -11
- package/dist/assets/ReimbursementApprovalRuleDetailPage-C_dTOk5P-Bf4aX0F8.js +0 -26
- package/dist/assets/ReimbursementApprovalRulesPage-B5lca4qx-B6B_PqnR.js +0 -237
- package/dist/assets/ReimbursementPromoPage-Bjm0UHcm-Ds7mgpFk.js +0 -84
- package/dist/assets/ReviewDetailsPage-COx9R71r-DWjftc73.js +0 -290
- package/dist/assets/SpendManagementListViewPage-AI676Urw-Dg56Cd43.js +0 -123
- package/dist/assets/SpendManagementPerTabPage-D79c3Xqh-BBXH9q0t.js +0 -754
- package/dist/assets/StatementItem-Aal79YaO-rV9Mr1N9.js +0 -31
- package/dist/assets/TransactionListPage-CN9fZznd-D7O-RTyH.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-CykcquSh-C9KUicY5.js +0 -80
- package/dist/assets/TreasuryStatementsPage-QyWxshsI-ix86c1ud.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-BLmfU0VD-DlyZ-4ZM.js +0 -58
- package/dist/assets/UploadAdditionalDocumentOverlay-CJYvOjh0-B8P8CMZI.js +0 -38
- package/dist/assets/analyticsHelper-9zRS_Y19.js +0 -1
- package/dist/assets/epic-BLwHhkRJ.js +0 -2
- package/dist/assets/utils-fBOyu0sO.js +0 -70
package/dist/assets/{AgingReportsPage-B_Hhl_Is-B3LI-4Jv.js → AgingReportsPage-BeUGvj3b-CHP-b-K4.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as K,q as j,F as x,hW as be,V as t,hX as De,bL as Ne,hY as Oe,bA as je,bz as ve,y as D,a9 as F,g1 as ke,o as N,aQ as Pe,d as m,aL as X,cc as Be,cd as $e,ce as Ae,ak as Me,cf as Ie,b1 as ne,aA as oe,aS as re}from"./index-BhteR_e0.js";import{a as f}from"./core-B-FNbYlu.js";import{n as y}from"./mui-DLNyBjYF.js";import{bj as R,FB as Ye}from"./zeni-epic-state-HWtMOH-U.js";import{n as M}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{L as Le,k as ze}from"./ArAgingChart-DQZtCsHS-CSTDLkfC.js";import{C as ie}from"./NoDataChart-DMivligx-DVgr9SAl.js";import{I as se,R as $}from"./CollapsableReportTable-I40BZv7o-RBVPkQ58.js";import{d as le}from"./NoDataTable-DwOJY23X-BMIpXvJR.js";import{l as ce}from"./mapSpacerToTreeNode-BPbkmHFY-Ce33KPvG.js";import{l as Ee}from"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./chartTypes-BZYC5y5J-fsutalT0.js";import"./AccountRow-D2Ypckgj-DU9kFXuE.js";import"./graphic-no-data-l-DU4J8fDt-DTSR9TM8.js";const Fe={chartHeight:new D(288,360)},de=y.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,ge=y.div`
|
|
4
4
|
display: flex;
|
|
@@ -6,7 +6,7 @@ import{d as H,Q as j,F as x,hW as be,V as t,hX as De,bL as Ne,hY as Oe,bA as je,
|
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
height: ${e=>Fe.chartHeight.valuePx(e.windowSize)};
|
|
8
8
|
padding-bottom: ${N.sp6};
|
|
9
|
-
`;function Re({report:e}){return e.reportId==="accounts_payable_aging"?t.jsx(Te,{report:e}):t.jsx(
|
|
9
|
+
`;function Re({report:e}){return e.reportId==="accounts_payable_aging"?t.jsx(Te,{report:e}):t.jsx(qe,{report:e})}function Te({report:e}){const a=j();return e.agingBalances.length===0?t.jsx(de,{children:t.jsx(ie,{title:x.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(ge,{windowSize:a,children:t.jsx(ne,{children:({height:o,width:i})=>t.jsx(Le,{isDetailPage:!0,report:e,width:i,height:o})})})}function qe({report:e}){const a=j();return e.agingBalances.length===0?t.jsx(de,{children:t.jsx(ie,{title:x.getLocalizedStrings().chartCard.no_data_available})}):t.jsx(ge,{windowSize:a,children:t.jsx(ne,{children:({height:o,width:i})=>t.jsx(ze,{isDetailPage:!0,report:e,width:i,height:o})})})}function Ke({nestedCustomer:e,numOfBalances:a,title:o,config:i,parentNodeIDs:s,ancestorMetadata:n}){return{children:[],id:$("ac_subentity_total",s),isLastNode:!1,reportElementData:{element:{kind:"ac_subentity_total",title:o,data:e,numOfBalances:a,metadata:n},config:i}}}function pe({agingBalances:e,numOfBalances:a,title:o,isLastNode:i,config:s,parentNodeIDs:n,ancestorMetadata:c}){const l=$("aging_report_row",[],o),r={children:[],id:l,isLastNode:i,reportElementData:{element:{kind:"aging_report_row",title:o,data:e,numOfBalances:a,metadata:c},config:s}},u=e.children.map((p,d)=>pe({agingBalances:p,numOfBalances:a,title:p.customer.name,config:s,isLastNode:d===e.children.length-1,parentNodeIDs:[...n,l],ancestorMetadata:{vendorOrCustomerAncestorMetadata:[...c.vendorOrCustomerAncestorMetadata,{depth:p.id.length-1,hasSibling:e.children.length>1,hasChildren:p.children.length>0,isLastNode:d===e.children.length-1,name:p.customer.name}]}}));return r.children.push(...u),e.children.length>0&&r.children.push(Ke({config:s,nestedCustomer:e,numOfBalances:a,title:e.customer.name,parentNodeIDs:n,ancestorMetadata:c})),r}function Ue({agingBalances:e,numOfBalances:a,title:o,isLastNode:i,config:s}){const n=$("aging_report_row",[],o);return{children:[],id:n,isLastNode:i,reportElementData:{element:{kind:"aging_report_row",title:o,data:e,numOfBalances:a},config:s}}}function U({agingPeriods:e,config:a,nodeId:o}){return{children:[],id:o??$("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:a}}}function me({title:e,balances:a,config:o,numOfBalances:i,nodeId:s}){return{children:[],id:s??$("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,numOfBalances:i,data:a},config:o}}}const We=(e,a,o=!0)=>{const{agingPeriods:i,totalBalances:s,agingBalances:n}=e,c=i.length,l=U({agingPeriods:i,config:a}),r=[];r.push(l);const u=n.map((d,g)=>Ue({agingBalances:d,title:d.vendor.name,numOfBalances:c,isLastNode:g===n.length-1,config:a}));r.push(...u);const p=me({title:x.getLocalizedStrings().chartCard.total,balances:s,config:a,numOfBalances:c});return r.push(p),[...Array(1)].forEach((d,g)=>{r.push(ce({title:`${g}+${x.getLocalizedStrings().common.loading}`,balances:[],config:a}))}),{config:a,headerNodes:o?[l]:[],contentNodes:r}},He=(e,a,o=!0)=>{const{agingPeriods:i,totalBalances:s,agingBalances:n}=e,c=i.length,l=U({agingPeriods:i,config:a}),r=[];r.push(l);const u=n.map((d,g)=>pe({agingBalances:d,title:d.customer.name,numOfBalances:c,isLastNode:g===n.length-1,config:a,parentNodeIDs:[],ancestorMetadata:{vendorOrCustomerAncestorMetadata:[{depth:0,hasSibling:n.length>1,hasChildren:d.children.length>0,isLastNode:g===n.length-1}]}}));r.push(...u);const p=me({title:x.getLocalizedStrings().chartCard.total,balances:s,config:a,numOfBalances:c});return r.push(p),[...Array(1)].forEach((d,g)=>{r.push(ce({title:`${g}+${x.getLocalizedStrings().common.loading}`,balances:[],config:a}))}),{config:a,headerNodes:o?[l]:[],contentNodes:r}};function ue(e,a,o,i=!0){Object.assign(e.config,a);const{agingPeriods:s}=o,n=U({agingPeriods:s,config:a});return{config:a,headerNodes:i?[n]:[],contentNodes:[n,...e.contentNodes.slice(1)]}}const O={contentPaddingLeft:new D(m[0],m[0],m[0]),contentPaddingRight:new D(m[3],m[3],m[8]),wrapperPadding:new D(m[3],m[3],m[8])},I=y.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
position: sticky;
|
|
12
12
|
justify-content: center;
|
|
@@ -16,7 +16,7 @@ import{d as H,Q as j,F as x,hW as be,V as t,hX as De,bL as Ne,hY as Oe,bA as je,
|
|
|
16
16
|
`,he=y.div`
|
|
17
17
|
width: 100%;
|
|
18
18
|
height: calc(100vh - ${N.sp11});
|
|
19
|
-
`;function Ge({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){return e.reportId==="accounts_payable_aging"?t.jsx(Je,{report:e,onSortOrderChange:a,onEntityNameClick:o}):t.jsx(Ve,{report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i})}function Je({report:e,onSortOrderChange:a,onEntityNameClick:o}){const[i,s]=f.useState(void 0),[n,c]=f.useState(void 0),l=j(),r=
|
|
19
|
+
`;function Ge({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){return e.reportId==="accounts_payable_aging"?t.jsx(Je,{report:e,onSortOrderChange:a,onEntityNameClick:o}):t.jsx(Ve,{report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i})}function Je({report:e,onSortOrderChange:a,onEntityNameClick:o}){const[i,s]=f.useState(void 0),[n,c]=f.useState(void 0),l=j(),r=K(),u=!(l==="small"||l==="medium-compact"),p=f.useCallback((d,g)=>{a(d,g)},[a]);return f.useEffect(()=>{const d={reportId:e.reportId,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:!0,agingReportConfig:{sortKey:e.apAgingUIState.sortKey,sortOrder:e.apAgingUIState.sortOrder,onSortOrderChanged:p,onEntityNameClick:o}};if(n==null||!oe(i,e)){const g=We(e,d,u);s(e),c(g)}else{const g=ue(n,d,e,u);c(g)}},[e,p]),e.agingBalances.length===0?t.jsx(I,{windowSize:l,children:t.jsx(le,{})}):n!=null?t.jsx(I,{windowSize:l,children:t.jsx(he,{numOfRows:e.agingBalances.length,children:t.jsx(se,{backgroundColor:new re(r.colors.grey4),rootNodes:n,type:"name+balances_actual",isSticky:{isStickyHeader:u,isStickyName:u},treeNodePadding:{left:O.contentPaddingLeft.value(l),right:O.contentPaddingRight.value(l)},nodeOpenStatus:{},compareMode:"compare_mode_amount"})})}):null}function Ve({report:e,onSortOrderChange:a,onEntityNameClick:o,onNodeCollapseToggled:i}){const[s,n]=f.useState(void 0),[c,l]=f.useState(void 0),r=j(),u=K(),p=!(r==="small"||r==="medium-compact"),d=f.useCallback((g,C)=>{a(g,C)},[a]);return f.useEffect(()=>{const g={reportId:e.reportId,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:e.bookCloseDate,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:!0,agingReportConfig:{sortKey:e.arAgingUIState.sortKey,sortOrder:e.arAgingUIState.sortOrder,onSortOrderChanged:d,onEntityNameClick:o}};if(c==null||!oe(s,e)){const C=He(e,g,p);n(e),l(C)}else{const C=ue(c,g,e,p);l(C)}},[e,d]),e.agingBalances.length===0?t.jsx(I,{windowSize:r,children:t.jsx(le,{})}):c!=null?t.jsx(I,{windowSize:r,children:t.jsx(he,{numOfRows:e.agingBalances.length,children:t.jsx(se,{backgroundColor:new re(u.colors.grey4),rootNodes:c,type:"name+balances_actual",isSticky:{isStickyHeader:p,isStickyName:p},treeNodePadding:{left:O.contentPaddingLeft.value(r),right:O.contentPaddingRight.value(r)},nodeOpenStatus:e.arAgingUIState.nodeCollapseState,onNodeCollapseToggled:i,compareMode:"compare_mode_amount"})})}):null}const Qe={summaryColumnGap:new D(m[2],m[1],m[1],m[2],m[6])},Xe=y.div`
|
|
20
20
|
display: flex;
|
|
21
21
|
width: 100%;
|
|
22
22
|
justify-content: space-between;
|
|
@@ -34,7 +34,7 @@ import{d as H,Q as j,F as x,hW as be,V as t,hX as De,bL as Ne,hY as Oe,bA as je,
|
|
|
34
34
|
width: fit-content;
|
|
35
35
|
`,te=y(Ie)`
|
|
36
36
|
color: ${e=>e.theme.colors.primary};
|
|
37
|
-
`;function Ze({totalBalances:e,reportId:a}){const o=f.useMemo(()=>Ee(e),[e]),i=j();return t.jsxs(Xe,{windowSize:i,children:[e.map(s=>{const{period:n}=s;return t.jsxs(Z,{children:[t.jsx(ee,{children:x.getLocalizedStrings().reports.aging.duration[n]}),t.jsx(te,{children:X("0,0",s?.balance)})]},n)}),t.jsxs(Z,{children:[t.jsx(ee,{children:a==="accounts_payable_aging"?x.getLocalizedStrings().reports.aging.apAging.totalPayable:x.getLocalizedStrings().reports.aging.arAging.totalReceivable}),t.jsx(te,{children:X("0,0",o?.balance)})]})]})}const
|
|
37
|
+
`;function Ze({totalBalances:e,reportId:a}){const o=f.useMemo(()=>Ee(e),[e]),i=j();return t.jsxs(Xe,{windowSize:i,children:[e.map(s=>{const{period:n}=s;return t.jsxs(Z,{children:[t.jsx(ee,{children:x.getLocalizedStrings().reports.aging.duration[n]}),t.jsx(te,{children:X("0,0",s?.balance)})]},n)}),t.jsxs(Z,{children:[t.jsx(ee,{children:a==="accounts_payable_aging"?x.getLocalizedStrings().reports.aging.apAging.totalPayable:x.getLocalizedStrings().reports.aging.arAging.totalReceivable}),t.jsx(te,{children:X("0,0",o?.balance)})]})]})}const q={wrapperPadding:new D(m[3],m[3],m[8]),navbarMarginBottom:new D(m[7],m[4])},{download:T,dateFormat:b,reports:{common:et,aging:B}}=x.getLocalizedStrings();function Bt(e){const a=K(),[o,i]=f.useState(!1),s=j(),{report:n,uiState:c,downloadParams:l,analytics:r,onSelectedDateChanged:u,onBackClick:p,onSearchTextChange:d,onReloadReport:g,onSortOrderChange:C,onEntityNameClick:fe,updateDownloadStateHandler:Y,onNodeCollapseToggled:ye}=e,{fetchState:v,reportTitle:we,reportId:w}=n,{searchString:k,downloadState:A,sortKey:L,sortOrder:z,selectedDate:S,agingDateSelectionType:W}=c,{authParams:H,downloadEndPoint:G,timezone:J}=l,V=f.useCallback((h,_)=>{const P=ae(_);u(h,P),r.trackAgingReportDateChange(M(w),S!=null?S.format(b.analytics.YYYYDashMMDashDDFormat):R().format(b.analytics.YYYYDashMMDashDDFormat),h.format(b.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,S]),Q=f.useCallback(h=>{const _=be({options:B.preComputedDurationOptions.map(({label:E,value:_e})=>({label:E,value:Ye(_e)})).filter(({value:E})=>E!=null),selectedDate:h}),P=ae(_);u(h,P),r.trackAgingReportDateChange(M(w),S!=null?S.format(b.analytics.YYYYDashMMDashDDFormat):R().format(b.analytics.YYYYDashMMDashDDFormat),h.format(b.analytics.YYYYDashMMDashDDFormat),P)},[r,u,w,S]),xe=f.useCallback((h,_)=>{C(h,_),r.trackAgingReportSortChange(M(w),_,h)},[r,C,w]),Se=f.useCallback(()=>t.jsx(De,{maxDate:R(),selectedDate:{date:S},precomputedOptionsProperties:{preComputedOptionSelected:ct(W),preComputedOptionDateFormat:b.visual.MMMDCommaYYYYformat,preComputedOptions:B.preComputedDurationOptions,onPreComputedOptionSelected:V},onSelectedDateChanged:Q}),[S,V,Q,W]);if(f.useEffect(()=>{async function h(){const _={companyName:l.companyName,searchString:k,sortKey:L,sortOrder:z,statementFileType:"excel",timezone:J,reportId:w==="accounts_receivable_aging"?"accounts_receivable_aging":"accounts_payable_aging",reportDate:S};await tt(G,H,_),Y("Completed"),r.trackAgingReportDownloadClick(M(w),L,z)}o&&A!=="In-Progress"&&(i(!1),Y("In-Progress"),h())},[H,G,l.companyName,A,o,w,k,L,z,Y,S,r,J]),v==="Error")return t.jsxs(nt,{children:[t.jsx(ot,{onClick:g,children:t.jsx(Ne,{})}),t.jsx(rt,{children:et.failed})]});const Ce=t.jsxs(t.Fragment,{children:[t.jsx(Oe,{isSearchOpen:(k?.length??0)>0,searchPlaceHolder:w==="accounts_payable_aging"?B.apAging.searchPlaceholder:B.arAging.searchPlaceholder,searchText:k??"",onSearchTextChanged:h=>{d(h)},downloadPresent:!0}),t.jsx(je,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:A==="In-Progress"}],onDownloadClick:async h=>{if(h==="excel")if(A==="In-Progress"){console.log("Download is already in progress!");return}else i(!0)}}}})]});return t.jsxs(it,{children:[t.jsx(ve,{title:we,subTitle:Se(),backgroundColor:a.colors.grey5,onBackClick:p,rightSideComponent:Ce,downloadPresent:!0,style:{marginBottom:q.navbarMarginBottom.valuePx(s)},source:"AgingReportsPage"}),t.jsx(F,{controller:v==="In-Progress"||v==="Not-Started",children:t.jsx(ke,{fetchState:v})}),t.jsxs(F,{controller:v==="Completed",children:[t.jsx(F,{controller:k.length===0,children:t.jsxs(lt,{windowSize:s,children:[t.jsx(st,{children:t.jsx(Ze,{reportId:w==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",totalBalances:n.totalBalances})}),t.jsx(Re,{report:n})]})}),t.jsx(Ge,{report:n,onSortOrderChange:xe,onEntityNameClick:fe,onNodeCollapseToggled:ye})]})]})}async function tt(e,a,o){const i=`${e}?query=${encodeURIComponent(JSON.stringify(at(o)))}`,s=B.arAging;try{const n=await Be({urlEndPoint:i,authParams:a,fileType:"excel"});if(n.ok){const c=$e(n.headers,T.defaultFileName),l=await n.arrayBuffer();Ae(l,c)}else console.error(`${T.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${n.statusText}`)}catch(n){console.error(`${T.errorMessages.fileDownloadError.replace("__feature__",s.arAging)} ${JSON.stringify(n)}`)}}function at(e){return{statement_file_type:e.statementFileType,search_string:e.searchString,report_id:e.reportId,company_name:e.companyName,locale_id:x.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,report_date:e.reportDate,timezone:e.timezone}}const nt=y.div`
|
|
38
38
|
display: flex;
|
|
39
39
|
width: 100%;
|
|
40
40
|
height: calc(100% - 60px);
|
|
@@ -74,6 +74,6 @@ import{d as H,Q as j,F as x,hW as be,V as t,hX as De,bL as Ne,hY as Oe,bA as je,
|
|
|
74
74
|
position: relative;
|
|
75
75
|
box-shadow: ${e=>`2px 2px ${N.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
76
76
|
background-color: ${e=>e.theme.colors.grey5};
|
|
77
|
-
padding-left: ${e=>
|
|
78
|
-
padding-right: ${e=>
|
|
77
|
+
padding-left: ${e=>q.wrapperPadding.valuePx(e.windowSize)};
|
|
78
|
+
padding-right: ${e=>q.wrapperPadding.valuePx(e.windowSize)};
|
|
79
79
|
`,ct=e=>{switch(e){case"last_month":return"month";case"last_quarter":return"quarter";default:return}},ae=e=>e==="month"?"last_month":e==="quarter"?"last_quarter":"custom_date";export{Bt as default,at as toDownloadAgingReportOptionsPayload};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cO as
|
|
1
|
+
import{cO as Q,eh as Ie,q as M,V as l,aK as P,F as _,y as R,o as i,b7 as re,n as ie,ak as ne,cY as Pe,cf as Ce,fR as Y,fS as K,cx as J,d as L,bQ as Se,aH as te,gJ as de,fU as T,fT as ce,fV as pe,aZ as me,gK as Oe,p as ue,cV as ge,al as he,cW as Re,ac as Te}from"./index-BhteR_e0.js";import{n as p}from"./mui-DLNyBjYF.js";import{Fh as ze,bh as X}from"./zeni-epic-state-HWtMOH-U.js";import{a as E}from"./core-B-FNbYlu.js";import{Y as xe}from"./LabeledUserSingleSelectWithSubtitlesField-CSEiKb8M-B7kyEAM_.js";import{j as be,C as fe}from"./LabeledZeniRolesDropDownField-CS_oKjBG-CatyVbOL.js";const Z=(e,t)=>`${e}.${t}`,se={largeLabelWidth:new R(120,120,160),toolTipWidth:new R(215,237)},g=_.getLocalizedStrings().peoplePage,De=({user:e,sectionId:t,mode:o,managersList:a,classList:s,controllersList:h,customerRoleOptions:$,isBankingOnlyTenant:m,isCardsOnlyTenant:f,isEdit:U,person:x,analytics:v})=>{const w=M(),C=se.largeLabelWidth.value(w),{setValue:S}=Q(),D=te(h),y=D.splice(0,1),N=D.reduce((r,n)=>r.concat(`${n.email},`),""),B=E.useMemo(()=>te(J.roles),[]),u=X(e.role);return E.useEffect(()=>{(u||m||f)&&S("userItems.0.department",{allOptions:[],selectedOption:void 0}),u&&S("userItems.0.manager",{allUsers:[],selectedUser:void 0})},[u,m,f]),l.jsxs(Le,{windowSize:w,"data-testid":P("edit-people-user-item-section"),children:[l.jsx(de,{label:g.invitePage.email,name:Z(t,"email"),registerOptions:{required:!0,value:e.email,disabled:!0},placeholder:T(g.addPlaceholderPrefix,g.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2}}),l.jsx(G,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:g.invitePage.role,width:C},style:{width:"auto"},rolesDropDownField:{name:Z(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:K(m,f)},productsByUserRole:Y(e.role,$)},registerOptions:{required:!0}}}),l.jsx(G,{}),l.jsx(xe,{label:{label:g.invitePage.manager,width:C},showTooltip:!0,toolTipWidth:se.toolTipWidth.valuePx(w),tooltipTitle:l.jsx(ke,{}),userSingleSelectWithSubTitlesField:{name:Z(t,"manager"),value:{allUsers:a,selectedUser:e?.managerId?e?.managerId:"no_manager"},valueToSubtitle:r=>{const n=a.findIndex(d=>d.userId===r);if(n!==-1){const d=a[n],j=s.find(k=>k.classId===d.userRole.accountingClassIDs[0]),I=[];return j!=null&&I.push(j.className),I}else return[]},placeholderLabel:u?g.notApplicable:T(g.selectPlaceholderPrefix,g.invitePage.manager),registerOptions:{required:!u},showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]},isDisabled:u?"disabled":void 0,isOptionDisabled:r=>r===x?.user?.userId},style:{width:"auto"},isDisabled:u?"disabled":void 0,opacity:u?.32:1}),l.jsx(G,{}),l.jsx(pe,{label:{label:g.invitePage.department,width:C},singleSelectWithoutClearableField:{name:Z(t,"department"),defaultValue:{allOptions:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})),selectedOption:s.map(r=>({label:r.fullyQualifiedAccountingClassName??"",value:r.classId,hoverText:r.accountingClassNumber})).find(r=>r.value===e.departmentId)},placeholder:u||m||f?g.notApplicable:T(g.selectPlaceholderPrefix,g.invitePage.department),registerOptions:{required:!u||!(m||f)},isDisabled:u||m||f?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:u||m||f?"disabled":void 0,opacity:u||m||f?.32:1}),U?null:l.jsxs(Ue,{windowSize:w,children:[g.invitePage.controllerText,y[0]?l.jsxs(Ne,{href:`mailto:${y[0].email}?cc=${N}&subject=${encodeURIComponent(g.invitePage.emailSubject)}`,children:[l.jsx("span",{children:`${y[0].firstName} ${y[0].lastName}`}),l.jsx(me,{className:"arrowIcon"})]}):null]})]}):l.jsx(fe,{label:{label:g.invitePage.role,width:C},zeniRolesDropDownField:{name:Z(t,"role"),defaultValue:{selectedOptions:e.role,allOptions:B},registerOptions:{required:!0},placeholderLabel:T(g.selectPlaceholderPrefix,g.invitePage.role),isMulti:!0,forZeniUser:!0,onSelectionChanged:r=>{x!=null&&v?.trackRoleChanged(x.userRole.userRoles,r[0],x?.userRole.userEmail)}},style:{width:"auto"}})]})},ke=()=>_.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Le=p.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -9,7 +9,7 @@ import{cO as G,eh as Ie,Q as M,V as l,aK as P,F as Z,y as T,o as i,b7 as re,n as
|
|
|
9
9
|
.single-select-field__menu {
|
|
10
10
|
border: ${e=>e.windowSize==="small"?`1px solid ${e.theme.colors.grey3}`:"unset"};
|
|
11
11
|
}
|
|
12
|
-
`,
|
|
12
|
+
`,G=p.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
flex: 1;
|
|
15
15
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -43,7 +43,7 @@ import{cO as G,eh as Ie,Q as M,V as l,aK as P,F as Z,y as T,o as i,b7 as re,n as
|
|
|
43
43
|
color: ${e=>e.theme.colors.primary};
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
`,
|
|
46
|
+
`,F=(e,t)=>`${e}.${t}`,oe={largeLabelWidth:new R(125,140,160),toolTipWidth:new R(246,250)},c=_.getLocalizedStrings().peoplePage,Fe=({user:e,sectionId:t,mode:o,isZeniTenant:a,managersList:s,classList:h,controllersList:$,index:m,customerRoleOptions:f,isEdit:U,isBankingOnlyTenant:x,isCardsOnlyTenant:v})=>{const w=M(),{getValues:C,formState:{errors:S},setValue:D}=Q(),y=oe.largeLabelWidth.value(w),[N,...B]=$,u=B.map(d=>d.email).join(","),r=E.useMemo(()=>J.roles.filter(d=>!["admin","bookkeeping_admin"].includes(d.value)),[]),n=X(e.role);return E.useEffect(()=>{(n||x||v)&&D(`userItems.${m}.department`,{allOptions:[],selectedOption:void 0}),n&&D(`userItems.${m}.manager`,{allUsers:[],selectedUser:void 0})},[n,x,v]),l.jsxs(Be,{windowSize:w,"data-testid":P("invite-people-user-item-section"),children:[l.jsx(de,{label:c.invitePage.email,name:F(t,"email"),registerOptions:{required:!0,value:e.email,validate:{duplicate:d=>!Me(d,C("userItems"),m),notZeniMail:d=>o==="zeni_only"?!0:a||d.map(j=>!j.match(Oe)).reduce((j,I)=>j&&I)}},placeholder:T(c.addPlaceholderPrefix,c.invitePage.email),style:{paddingTop:i.sp2,paddingBottom:i.sp2},additionalInfoLabel:Ve(C("userItems"),F(t,"email"),m,o,S)}),l.jsx(V,{}),o==="off"?l.jsxs(l.Fragment,{children:[l.jsx(be,{label:{label:c.invitePage.role,width:y},style:{width:"auto"},rolesDropDownField:{name:F(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(e.role),allRootRole:K(x,v)},productsByUserRole:Y(e.role,f)},registerOptions:{required:!0}}}),l.jsx(V,{}),l.jsx(xe,{label:{label:c.invitePage.manager,width:y},showTooltip:!0,toolTipWidth:oe.toolTipWidth.valuePx(w),tooltipTitle:l.jsx(We,{}),userSingleSelectWithSubTitlesField:{name:F(t,"manager"),value:{allUsers:s,selectedUser:e.managerId},valueToSubtitle:d=>{const j=s.findIndex(I=>I.userId===d);if(j!==-1){const I=s[j],k=h.find(O=>O.classId===I.userRole.accountingClassIDs[0]),b=[];return k!=null&&b.push(k.className),b}else return[]},placeholderLabel:n?c.notApplicable:T(c.selectPlaceholderPrefix,c.invitePage.manager),registerOptions:{required:!n},isDisabled:n?"disabled":void 0,showOneOffLabel:{label:"No Manager",value:"no_manager",position:"top",subtitles:[]}},style:{width:"auto",height:e.managerId==null?i.sp8:"74px",boxSizing:"border-box"},isDisabled:n?"disabled":void 0,opacity:n?.32:1}),l.jsx(V,{}),l.jsx(pe,{label:{label:c.invitePage.department,width:y},singleSelectWithoutClearableField:{name:F(t,"department"),defaultValue:{allOptions:h.map(d=>({label:d.fullyQualifiedAccountingClassName??"",value:d.classId,hoverText:d.accountingClassNumber})),selectedOption:h.map(d=>({label:d.fullyQualifiedAccountingClassName??"",value:d.classId,hoverText:d.accountingClassNumber})).find(d=>d.value===e.departmentId)},placeholder:n||x||v?c.notApplicable:T(c.selectPlaceholderPrefix,c.invitePage.department),registerOptions:{required:!n||!(x||v)},isDisabled:n||x||v?"disabled":void 0,showOptionOnHover:!0},style:{width:"auto"},isDisabled:n||x||v?"disabled":void 0,opacity:n||x||v?.32:1}),l.jsx(V,{}),U?null:l.jsxs(Ze,{windowSize:w,isDisabled:n,children:[c.invitePage.controllerText,N?l.jsx(Ee,{firstController:[N],isInvestorBanker:n,restControllerEmailsStr:u}):null]})]}):l.jsx(fe,{label:{label:c.invitePage.role,width:y},zeniRolesDropDownField:{defaultValue:{allOptions:r,selectedOptions:e.role},name:F(t,"role"),placeholderLabel:T(c.selectPlaceholderPrefix,c.invitePage.role),registerOptions:{required:o==="zeni_only"},isMulti:!1,forZeniUser:!1},style:{width:"auto"}})]})},We=()=>_.getLocalizedStrings().peoplePage.invitePage.managerTooltipText,Me=(e,t,o)=>{const a=t.filter(s=>s.userIndex!==o).map(s=>s.email).flat();return a.length>0&&e.every(s=>a.includes(s))},Be=p.div`
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-direction: column;
|
|
49
49
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -60,7 +60,7 @@ import{cO as G,eh as Ie,Q as M,V as l,aK as P,F as Z,y as T,o as i,b7 as re,n as
|
|
|
60
60
|
background-color: ${e=>e.theme.colors.grey3};
|
|
61
61
|
min-height: 1px;
|
|
62
62
|
max-height: 1px;
|
|
63
|
-
`,
|
|
63
|
+
`,Ze=p(he)`
|
|
64
64
|
padding: ${e=>`${i.sp1} ${e.windowSize==="small"?i.sp3:i.sp4}`};
|
|
65
65
|
background: ${e=>e.theme.colors.grey4};
|
|
66
66
|
border-radius: ${i.sp0} ${i.sp0} ${i.sp2} ${i.sp2};
|
|
@@ -71,7 +71,7 @@ import{cO as G,eh as Ie,Q as M,V as l,aK as P,F as Z,y as T,o as i,b7 as re,n as
|
|
|
71
71
|
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
72
72
|
gap: ${e=>e.windowSize==="small"?i.sp0:"6px"};
|
|
73
73
|
opacity: ${e=>e.isDisabled?.32:1};
|
|
74
|
-
`,
|
|
74
|
+
`,_e=p.a`
|
|
75
75
|
color: ${e=>e.theme.colors.hero};
|
|
76
76
|
text-decoration: none;
|
|
77
77
|
cursor: ${e=>e.isDisabled?"unset":"pointer"};
|
|
@@ -89,13 +89,13 @@ import{cO as G,eh as Ie,Q as M,V as l,aK as P,F as Z,y as T,o as i,b7 as re,n as
|
|
|
89
89
|
color: ${e=>e.isDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
`,Ve=(e,t,o,a,s)=>{if(
|
|
92
|
+
`,Ve=(e,t,o,a,s)=>{if(Re(s,t)&&s?.userItems&&s?.userItems[o]?.email)switch(s?.userItems[o]?.email.type){case"required":return c.invitePage.defaultHelpText;case"pattern":return e[o].email.forEach(h=>{if(!Te.test(h))return c.invitePage.defaultHelpText}),a==="zeni_only"?c.invitePage.otherThanZeniMailIDForZeniModeText:c.invitePage.zeniMailIDForNormalModeText;case"duplicate":return c.invitePage.emailAlreadyExist;case"notZeniMail":return c.invitePage.zeniMailIDForNormalModeText;case"validate":return c.invitePage.defaultHelpText;default:return}},Ee=({isInvestorBanker:e,firstController:t,restControllerEmailsStr:o})=>{let a="";const s=t[0];return s?.firstName&&s?.lastName?a=`${s?.firstName} ${s?.lastName}`:s?.firstName?a=s?.firstName:s?.lastName?a=s?.lastName:a=s?.email??"",l.jsxs(_e,{isDisabled:e,href:e?void 0:`mailto:${t[0]?.email}?cc=${o}&subject=${encodeURIComponent(c.invitePage.emailSubject)}`,children:[l.jsx("span",{children:a}),l.jsx(me,{className:"arrowIcon"})]})},qe=e=>l.jsx(Ae,{style:e.style,"data-testid":P("user-item-section"),children:e.isEdit?l.jsx(De,{...e}):l.jsx(Fe,{...e})}),Ae=p.div`
|
|
93
93
|
display: flex;
|
|
94
94
|
flex-direction: column;
|
|
95
|
-
`,
|
|
95
|
+
`,W={buttonWidth:new R(70,70),marginBottom:new R(12,L[3]),deleteContentMarginLeft:new R(L[0],L[3]),containerPaddingTop:new R(L[0],L[3]),addUserWrapperGap:new R(L[1],L[2])},He=(e,t,o,a,s,h,$)=>({userIndex:e,email:[],role:a==="zeni_only"?{allOptions:J.roles,selectedOptions:[]}:void 0,nonZeniRole:a!=="zeni_only"?{userRole:{selectedRole:void 0,allRootRole:K(h,$)},productsByUserRole:Y([],s)}:void 0,manager:{allUsers:t,selectedUser:void 0},department:{allOptions:o.map(m=>({label:m.className,value:m.classId})),selectedOption:void 0}}),z=_.getLocalizedStrings().peoplePage,gl=({isDisabled:e,control:t,deleteConfirmationIndex:o,updateDeleteConfirmationIndex:a,style:s,sectionId:h,mode:$,isZeniTenant:m,managersList:f,classList:U,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:w,isCardsOnlyTenant:C,isEdit:S=!1,person:D,analytics:y})=>{const{getValues:N}=Q(),{append:B,remove:u}=Ie({name:h,control:t}),r=M(),n=N().userItems,d=()=>{const b=n.length-1,O=He(b+1,f,U,$,v,w,C);setTimeout(()=>B(O,{shouldFocus:!0}))},j=b=>{a(b)},I=()=>{a(-1)},k=()=>{setTimeout(()=>u(o)),a(-1)};return l.jsxs(Ke,{style:s,windowSize:r,"data-testid":P("user-items"),children:[n.length>0?n.map((b,O)=>{const je=n.length;let q={};if($==="zeni_only")q={email:b.email,role:Ye(b.role.selectedOptions,S)??void 0};else{const ee=b.nonZeniRole?.userRole.selectedRole,A=ee!=null?(b.nonZeniRole?.productsByUserRole[ee]??[]).map(H=>ze(H.selectedOption?.value)).filter(H=>H!=null):[],le=A.length>0?X(A):!1;q={email:b.email,role:A,managerId:le?void 0:b.manager?.selectedUser,departmentId:le?void 0:b.department?.selectedOption?.value}}return l.jsxs(Je,{"data-testid":P("user-item",b.userIndex.toString()),children:[S?null:l.jsx(l.Fragment,{children:je>1?l.jsx(ae,{windowSize:r,children:l.jsx(Ge,{curIndex:O,isDisabled:e,deleteConfirmationIndex:o,onDeleteClick:j,onCancelClick:I,onRemoveUserItem:k})}):l.jsx(ae,{windowSize:r,children:l.jsx(we,{children:l.jsx(ye,{children:l.jsx($e,{windowSize:r,children:z.invitePage.user})})})})}),l.jsx(qe,{isDisabled:e,sectionId:`${h}.${O}`,control:t,user:q,mode:$,isZeniTenant:m,managersList:f,classList:U,controllersList:x,customerRoleOptions:v,isBankingOnlyTenant:w,isCardsOnlyTenant:C,isEdit:S,person:D,analytics:y,index:O}),o===O&&r==="small"?l.jsx(ll,{children:l.jsx(ve,{onCancelClick:I,onRemoveUserItem:k})}):null]},O)}):null,S?null:l.jsxs(ol,{"data-testid":P("all-user-items-add-user-button"),windowSize:r,onClick:()=>{d?.()},children:[l.jsx(al,{}),l.jsx(rl,{children:`${z.invitePage.add} ${z.invitePage.user}`})]})]})},Ge=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s,isDisabled:h})=>{const $=M();return l.jsxs(we,{children:[l.jsx(ye,{children:l.jsx($e,{windowSize:$,children:`#${e+1} ${z.invitePage.user}`})}),h===void 0?l.jsx(Qe,{curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s}):null]})},Qe=({curIndex:e,deleteConfirmationIndex:t,onDeleteClick:o,onCancelClick:a,onRemoveUserItem:s})=>{const h=M();return l.jsx(l.Fragment,{children:h==="small"?l.jsx(l.Fragment,{children:t!==e?l.jsx(sl,{"data-testid":P("delete-icon",e.toString()),onClick:()=>o(e)}):null}):l.jsx(l.Fragment,{children:t===e?l.jsx(el,{children:l.jsx(ve,{onCancelClick:a,onRemoveUserItem:s})}):l.jsx(Xe,{"data-testid":P("all-user-items-delete-icon-wrapper"),className:"delete-icon-wrapper",onClick:()=>o(e),children:l.jsx(Se,{style:{padding:"2px 5px"},enterDelay:600,title:z.invitePage.remove,placement:"left",children:l.jsx(tl,{})})})})})},ve=({onCancelClick:e,onRemoveUserItem:t})=>{const o=M();return l.jsxs(l.Fragment,{children:[z.invitePage.deleteConfirmation,l.jsxs(il,{windowSize:o,"data-testid":P("delete-confirmation-wrapper"),children:[l.jsx(ie,{"data-testid":P("delete-confirmation-cancel-button"),label:z.invitePage.cancel,onClick:e,style:{width:W.buttonWidth.value(o),marginRight:i.sp3},size:"small",variant:"secondary"}),l.jsx(ie,{"data-testid":P("delete-confirmation-remove-button"),label:z.invitePage.remove,onClick:t,style:{width:W.buttonWidth.value(o)},size:"small",variant:"danger"})]})]})},Ye=(e,t)=>t?e:e!=null?[e]:[],Ke=p.div`
|
|
96
96
|
display: flex;
|
|
97
97
|
flex-direction: column;
|
|
98
|
-
padding-top: ${e=>
|
|
98
|
+
padding-top: ${e=>W.containerPaddingTop.valuePx(e.windowSize)};
|
|
99
99
|
`,Je=p.div`
|
|
100
100
|
.delete-icon-wrapper {
|
|
101
101
|
visibility: hidden;
|
|
@@ -138,10 +138,10 @@ import{cO as G,eh as Ie,Q as M,V as l,aK as P,F as Z,y as T,o as i,b7 as re,n as
|
|
|
138
138
|
gap: ${i.sp2};
|
|
139
139
|
`,il=p.div`
|
|
140
140
|
display: flex;
|
|
141
|
-
margin-left: ${e=>
|
|
141
|
+
margin-left: ${e=>W.deleteContentMarginLeft.valuePx(e.windowSize)};
|
|
142
142
|
`,ae=p.div`
|
|
143
143
|
display: flex;
|
|
144
|
-
margin-bottom: ${e=>
|
|
144
|
+
margin-bottom: ${e=>W.marginBottom.valuePx(e.windowSize)};
|
|
145
145
|
`,tl=p(ge)`
|
|
146
146
|
width: ${i.sp3};
|
|
147
147
|
height: ${i.sp3};
|
|
@@ -162,7 +162,7 @@ import{cO as G,eh as Ie,Q as M,V as l,aK as P,F as Z,y as T,o as i,b7 as re,n as
|
|
|
162
162
|
justify-content: center;
|
|
163
163
|
align-items: center;
|
|
164
164
|
padding: ${i.sp3} ${i.sp4};
|
|
165
|
-
gap: ${e=>
|
|
165
|
+
gap: ${e=>W.addUserWrapperGap.valuePx(e.windowSize)};
|
|
166
166
|
|
|
167
167
|
width: auto;
|
|
168
168
|
height: ${i.sp8};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as R,q as B,F as c,V as o,bL as H,g1 as K,bz as U,cj as V,o as L,aQ as W,bA as q,y as M,cc as J,cd as Q,ce as Z,d as u}from"./index-BhteR_e0.js";import{a as v}from"./core-B-FNbYlu.js";import{n as i}from"./mui-DLNyBjYF.js";import{W as G,L as X}from"./EntitySummarySection-BaHHLLkE-D3Ip19-Y.js";import"./sentry-EYLV4XmG.js";import"./zeni-epic-state-HWtMOH-U.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";const C={wrapperContainerMarginTop:new M(u[4],u[0]),wrapperContaineHorizontalrMargin:new M(u[0],u[8])},ee=i.div`
|
|
2
2
|
height: 100%;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -25,7 +25,7 @@ import{d as R,Q as B,F as c,V as o,bL as H,g1 as K,bz as V,cj as J,o as L,aQ as
|
|
|
25
25
|
color: ${e=>e.theme.colors.primary};
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
`,te=i(
|
|
28
|
+
`,te=i(W)`
|
|
29
29
|
margin-top: ${L.sp3};
|
|
30
30
|
color: ${e=>e.theme.colors.hero};
|
|
31
31
|
`,ae=i.div`
|
|
@@ -43,4 +43,4 @@ import{d as R,Q as B,F as c,V as o,bL as H,g1 as K,bz as V,cj as J,o as L,aQ as
|
|
|
43
43
|
margin-left: ${e=>C.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
|
|
44
44
|
margin-right: ${e=>C.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
|
|
45
45
|
height: 100%;
|
|
46
|
-
`;function ve(e){const h=R(),d=B(),w=c.getLocalizedStrings().common,g=c.getLocalizedStrings().reports.common,{apAgingDetail:t,downloadParams:a,reportDate:r,analytics:s,onReload:f,onBackClick:N,onColumnSortConfigChanged:_,updateDownloadStateHandler:x,onTransactionClick:T}=e,{authParams:z,downloadEndPoint:k
|
|
46
|
+
`;function ve(e){const h=R(),d=B(),w=c.getLocalizedStrings().common,g=c.getLocalizedStrings().reports.common,{apAgingDetail:t,downloadParams:a,reportDate:r,analytics:s,onReload:f,onBackClick:N,onColumnSortConfigChanged:_,updateDownloadStateHandler:x,onTransactionClick:T}=e,{authParams:z,downloadEndPoint:$,timezone:k}=a,{fetchState:p,invoices:j,apAgingDetailUIState:b,vendor:n,totalBalances:F}=t,{sortKey:D,sortOrder:S,downloadState:m}=b,[P,I]=v.useState(!1),A=c.getLocalizedStrings(),E=A.reports.aging.agingDetail,Y=v.useCallback((l,y)=>{t.vendor!=null&&s.trackApAgingDetailReportSortChange(l,y,r.format(A.dateFormat.analytics.YYYYDashMMDashDDFormat),t.vendor.id,t.vendor.name),_(l,y)},[s,t.vendor,r,_]);if(v.useEffect(()=>{async function l(){const y={companyName:a.companyName,sortKey:D,sortOrder:S,statementFileType:"excel",reportId:"accounts_payable_aging",entityId:n?.id??"",timezone:k,reportDate:r};await se($,z,y),x("Completed"),t.vendor!=null&&s.trackApAgingDetailReportDownload(D,S,r.format(c.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat),t.vendor.id,t.vendor.name)}P&&m!=="In-Progress"&&(I(!1),x("In-Progress"),l())},[s,t.vendor,z,$,a.companyName,m,P,r,D,S,k,x,n?.id]),p==="Error")return o.jsxs(oe,{children:[o.jsx(re,{onClick:f,children:o.jsx(H,{})}),o.jsx(te,{children:g.failed})]});if(p==="In-Progress"||p==="Not-Started")return o.jsx(K,{fetchState:p});const O=o.jsx(q,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:m==="In-Progress"}],onDownloadClick:async l=>{if(l==="excel")if(m==="In-Progress"){console.log("Download is already in progress!");return}else I(!0)}}}});return o.jsxs(ae,{children:[o.jsx(U,{title:w.strings.empty,backgroundColor:h.colors.grey5,onBackClick:N,rightSideComponent:O,source:"ApAgingDetailPage"}),o.jsx(G,{totalBalances:F,entityName:n?.name??"",entityLogo:n?.logo,reportId:"accounts_payable_aging",reportDate:r}),o.jsx(ne,{windowSize:d,children:o.jsx(ie,{windowSize:d,children:j.length===0||n==null?o.jsx(V,{message:E.noDataText}):o.jsx(ee,{windowSize:d,children:o.jsx(X,{uiState:b,invoices:j,entityName:n.name,entityLogo:n.logo,onColumnSortConfigChanged:Y,onTransactionClick:T})})})})]})}async function se(e,h,d){const w=`${e}?query=${encodeURIComponent(JSON.stringify(le(d)))}`,g=c.getLocalizedStrings(),t=g.reports.aging.apAging.apAging,a=g.download;try{const r=await J({urlEndPoint:w,authParams:h,fileType:"excel"});if(r.ok){const s=Q(r.headers,a.defaultFileName),f=await r.arrayBuffer();Z(f,s)}else console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",t)} ${r.statusText}`)}catch(r){console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",t)} ${JSON.stringify(r)}`)}}function le(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:c.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}export{ve as default,le as toDownloadAgingDetailedReportOptionsPayload};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{V as t,
|
|
1
|
+
import{V as t,q as m,L as x,o as e,y as l,p as s,aQ as $,F as g,bn as u,cT as w,dK as f,cS as b}from"./index-BhteR_e0.js";import{n as i,k as j}from"./mui-DLNyBjYF.js";import{a as k}from"./core-B-FNbYlu.js";import"./sentry-EYLV4XmG.js";import"./zeni-epic-state-HWtMOH-U.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const d={maxWidth:new l(280,322),contentMaxWidth:new l(200,250)},y=j`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateX(100%)
|
|
4
4
|
}
|
|
5
5
|
100% {
|
|
6
6
|
transform: translateX(0)
|
|
7
7
|
}
|
|
8
|
-
`,v=
|
|
8
|
+
`,v=i.div`
|
|
9
9
|
position: fixed;
|
|
10
10
|
top: ${e.sp3};
|
|
11
11
|
right: ${e.sp3};
|
|
@@ -23,37 +23,37 @@ import{V as t,Q as m,_ as x,o as e,y as l,p as s,aQ as $,F as g,bn as u,cT as w,
|
|
|
23
23
|
justify-content: center;
|
|
24
24
|
align-items: flex-start;
|
|
25
25
|
animation: ${y} 0.4s;
|
|
26
|
-
`,S=
|
|
26
|
+
`,S=i(b)`
|
|
27
27
|
margin-top: 2px;
|
|
28
28
|
margin-right: 12px;
|
|
29
29
|
width: ${e.sp3};
|
|
30
30
|
height: ${e.sp3};
|
|
31
31
|
color: ${s.success};
|
|
32
|
-
`,z=
|
|
32
|
+
`,z=i(f)`
|
|
33
33
|
margin-top: 2px;
|
|
34
34
|
margin-right: 12px;
|
|
35
35
|
width: ${e.sp3};
|
|
36
36
|
height: ${e.sp3};
|
|
37
37
|
color: ${s.info};
|
|
38
|
-
`,
|
|
38
|
+
`,T=i(w)`
|
|
39
39
|
margin-top: 2px;
|
|
40
40
|
margin-right: 12px;
|
|
41
41
|
width: ${e.sp3};
|
|
42
42
|
height: ${e.sp3};
|
|
43
43
|
color: ${s.important};
|
|
44
|
-
`,
|
|
44
|
+
`,D=i(u)`
|
|
45
45
|
margin-top: 2px;
|
|
46
46
|
margin-right: 12px;
|
|
47
47
|
width: ${e.sp3};
|
|
48
48
|
height: ${e.sp3};
|
|
49
49
|
color: ${s.info};
|
|
50
|
-
`,
|
|
50
|
+
`,W=i.div``,E=i($)`
|
|
51
51
|
color: ${s.neutralGrey2Light};
|
|
52
52
|
word-break: break-word;
|
|
53
53
|
white-space: pre-line;
|
|
54
|
-
`,
|
|
54
|
+
`,L=i.div`
|
|
55
55
|
max-width: ${r=>d.contentMaxWidth.valuePx(r.windowSize)};
|
|
56
|
-
`,C=
|
|
56
|
+
`,C=i.div`
|
|
57
57
|
margin-top: 3px;
|
|
58
58
|
margin-left: 12px;
|
|
59
59
|
width: ${e.sp3};
|
|
@@ -66,6 +66,6 @@ import{V as t,Q as m,_ as x,o as e,y as l,p as s,aQ as $,F as g,bn as u,cT as w,
|
|
|
66
66
|
&:hover {
|
|
67
67
|
color: ${s.primaryDark};
|
|
68
68
|
}
|
|
69
|
-
`,M=(r,n,
|
|
69
|
+
`,M=(r,n,o)=>{let a=g.getLocalizedStrings().common.snackBar[r][n];return o?.forEach(c=>{a=a.replace(c.variableName,c.variableValue)}),a},O=({type:r})=>{switch(r){case"success":return t.jsx(S,{});case"info":return t.jsx(z,{});case"error":case"warning":return t.jsx(T,{});case"notification":return t.jsx(D,{});default:return null}};function P(r){const n=m(),{message:o,messageType:a,showStatusIcon:c,onRemoveSnackbar:p}=r;return k.useEffect(()=>{const h=setTimeout(()=>{p()},5e3);return()=>clearTimeout(h)},[o.section]),t.jsxs(v,{windowSize:n,children:[c===!0?t.jsx(O,{type:a}):null,t.jsx(L,{windowSize:n,children:t.jsx(W,{children:t.jsx(E,{children:M(o.section,o.text,o.variables)})})}),t.jsx(C,{onClick:p,children:t.jsx(x,{})})]})}const Z=r=>t.jsx(R,{isOnDashboard:r.isOnDashboard,children:r.showSnackbar===!0?t.jsx(P,{...r.snackbar}):null}),R=i.div`
|
|
70
70
|
background-color: ${r=>r.isOnDashboard?r.theme.colors.background:"transparent"};
|
|
71
|
-
`;export{
|
|
71
|
+
`;export{Z as default};
|
package/dist/assets/{AppDrawerContent-aZG5Qc_X-BTCDRaet.js → AppDrawerContent-Brg3Rw4K-DWiehP3E.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as te,
|
|
1
|
+
import{av as te,R as ae,t as k,bh as se,V as e,bi as oe,bj as le,bk as re,bl as de,a9 as ce,bm as ue,o as t,bn as pe,aW as m,b3 as b}from"./index-BhteR_e0.js";import{a as o,S as me}from"./core-B-FNbYlu.js";import{n as l}from"./mui-DLNyBjYF.js";import{bl as be}from"./zeni-epic-state-HWtMOH-U.js";import{v as he}from"./DashboardSidebarBackgroundAnimation-C6SQaB7q-C2qHBViE.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const fe=o.memo(function({animationEnabled:n=!1}){const[i,s]=m("DashboardSidebarBottomNewYear",n),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),n&&a!=null?e.jsx(ge,{children:e.jsx(b,{style:{display:"flex",width:"70px",height:"140px"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),ge=l.div`
|
|
2
2
|
position: absolute;
|
|
3
3
|
z-index: 0;
|
|
4
4
|
bottom: -${t.sp3};
|
|
@@ -13,7 +13,7 @@ import{av as te,k as ae,l as k,bh as se,V as e,bi as oe,bj as le,bk as re,bl as
|
|
|
13
13
|
height: auto;
|
|
14
14
|
right: ${t.sp0};
|
|
15
15
|
width: 100%;
|
|
16
|
-
`,Ce=o.memo(function({animationEnabled:n=!1}){const[i,s]=m("DashboardSidebarBottomHalloween",n),[a,r]=o.useState(null);return i!=null&&a==null&&!s&&r(i),n&&a!=null?e.jsx(
|
|
16
|
+
`,Ce=o.memo(function({animationEnabled:n=!1}){const[i,s]=m("DashboardSidebarBottomHalloween",n),[a,r]=o.useState(null);return i!=null&&a==null&&!s&&r(i),n&&a!=null?e.jsx(ye,{children:e.jsx(b,{style:{display:"flex",width:"60px",height:"60px",marginLeft:"20%",marginTop:"10%"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),ye=l.div`
|
|
17
17
|
position: absolute;
|
|
18
18
|
z-index: 0;
|
|
19
19
|
width: 100%;
|
|
@@ -25,14 +25,14 @@ import{av as te,k as ae,l as k,bh as se,V as e,bi as oe,bj as le,bk as re,bl as
|
|
|
25
25
|
background-repeat: no-repeat;
|
|
26
26
|
background-position-y: bottom;
|
|
27
27
|
left: 0;
|
|
28
|
-
`,
|
|
28
|
+
`,Se=o.memo(function({animationEnabled:n=!1}){const[i,s]=m("DashboardSidebarBottomThanksgiving",n),[a,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),n&&a!=null?e.jsx(we,{children:e.jsx(b,{style:{display:"flex",width:"100px",height:"100px",marginLeft:"45%"},animationData:a,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),we=l.div`
|
|
29
29
|
position: absolute;
|
|
30
30
|
z-index: 0;
|
|
31
31
|
bottom: ${t.sp0};
|
|
32
32
|
display: flex;
|
|
33
33
|
height: auto;
|
|
34
34
|
right: ${t.sp0};
|
|
35
|
-
`,ve=o.memo(function({christmasAnimationEnabled:n=!1,halloweenAnimationEnabled:i=!1,newYearAnimationEnabled:s=!1,thanksGivingAnimationEnabled:a=!1}){return i?e.jsx(Ce,{animationEnabled:i}):a?e.jsx(
|
|
35
|
+
`,ve=o.memo(function({christmasAnimationEnabled:n=!1,halloweenAnimationEnabled:i=!1,newYearAnimationEnabled:s=!1,thanksGivingAnimationEnabled:a=!1}){return i?e.jsx(Ce,{animationEnabled:i}):a?e.jsx(Se,{animationEnabled:a}):n?e.jsx(xe,{animationEnabled:n}):s?e.jsx(fe,{animationEnabled:s}):null}),Ae=l.div`
|
|
36
36
|
display: flex;
|
|
37
37
|
flex: 1 1 auto;
|
|
38
38
|
flex-direction: column;
|
|
@@ -88,4 +88,4 @@ import{av as te,k as ae,l as k,bh as se,V as e,bi as oe,bj as le,bk as re,bl as
|
|
|
88
88
|
height: ${t.sp4};
|
|
89
89
|
align-items: center;
|
|
90
90
|
justify-content: center;
|
|
91
|
-
`;function
|
|
91
|
+
`;function Be({currentTenantId:n,tenants:i,isVendorsTabVisible:s,isZeniAccountEnabled:a,isTreasuryEnabled:r,isTreasuryPopupVisible:j,isChargeCardEnabled:$,rewardsConfiguration:T,selectedMenu:D,isTenantDropdownDisabled:V,isSettings:c=!1,isAiCfo:I=!1,isOnDashboard:M,isAiCfoAccessEnabled:Y,isNotificationsTabVisible:F,isSettingsFeatureEnabled:x,signedInUser:h,aiCfoView:R,currentTenant:E,christmasAnimationEnabled:f=!1,halloweenAnimationEnabled:C=!1,newYearAnimationEnabled:y=!1,thanksGivingAnimationEnabled:S=!1,notificationCountDetails:u,isExpenseAutomationEnabledForUser:N,treasuryYieldPercentage:P,onNotificationIconClick:U,handleLogOutClick:z,handleMenuChange:L,onZeniLogoClick:O,handlePopupClose:B,handleBackClick:w,handleCockpitClick:G,handleTenantSelect:H,updateCurrentChatSessionId:Z,handleSettingsClick:v}){const[d,Q]=o.useState(c&&x),g=me.useRef("noAnimation"),_=be(h),W=te(),{useFeatureGate:A}=ae(),{isFeatureEnabled:q}=A(k.isReimbursementCommentingEnabled),{isFeatureEnabled:J}=A(k.isBillPayCommentingEnabled),K=se(),X=()=>{g.current="slide-in-right-to-left",v&&v()},ee=()=>{g.current="slide-in-left-to-right",d&&w&&w()};o.useEffect(()=>{c!==d&&Q(c)},[c,d]);const p=u?.fetchStatus.fetchState==="Not-Started"||u?.fetchStatus.fetchState==="In-Progress",ne=g.current,ie=_||q&&J&&!W.loggedInUserRole.includes("investor_or_banker");return e.jsxs(Ae,{isOnDashboard:M,children:[e.jsxs(ke,{children:[e.jsx(oe,{onClick:O,halloweenAnimationEnabled:C,thanksGivingAnimationEnabled:S,christmasAnimationEnabled:f,newYearAnimationEnabled:y}),e.jsx(le,{currentTenantId:n??"",tenants:i,isDisabled:V,onTenantSelect:H})]}),e.jsx(je,{children:e.jsx(re,{className:ne,signedInUser:h,selectedMenu:D,currentTenant:E,isVendorsTabVisible:s,rewardsConfiguration:T,isSetting:d,isAiCfo:I,isAiCfoAccessEnabled:Y,aiCfoView:R,isZeniAccountEnabled:a,isTreasuryEnabled:r,isTreasuryPopupVisible:j,treasuryYieldPercentage:P,isChargeCardEnabled:$,isNotificationsTabVisible:F,isPerformanceEnabledForUser:K,isExpenseAutomationEnabledForUser:N,onSelectionChanged:L,updateCurrentChatSessionId:Z,onBackClick:ee,onPopupClose:B})}),e.jsx(he,{christmasAnimationEnabled:f}),e.jsxs($e,{children:[e.jsx(de,{signedInUser:h,onLogOutClick:z,onSettingsClick:X,onCockpitClick:G,currentTenant:E,isSettingsFeatureEnabled:x}),ie?e.jsx(ce,{controller:u!=null,children:e.jsxs(Te,{isDisabled:p,onClick:p?void 0:U,children:[e.jsx(ue,{count:p?void 0:u?.count,type:"important",isLoading:p,style:{left:"12px"}}),e.jsx(De,{})]})}):null]}),e.jsx(ve,{halloweenAnimationEnabled:C,thanksGivingAnimationEnabled:S,christmasAnimationEnabled:f,newYearAnimationEnabled:y})]},d.toString())}export{Be as default};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import{e as V,q as _,av as D,F as c,aS as S,V as e,bz as E,m as G,fp as f,dC as y,y as s,o as j,al as J,b,d as o}from"./index-BhteR_e0.js";import{n as l}from"./mui-DLNyBjYF.js";import{Fe as N,Ff as q}from"./zeni-epic-state-HWtMOH-U.js";import"./core-B-FNbYlu.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const a={sectionRowGap:new s(o[4],o[8],o[8]),lastSectionPaddingBottom:new s(o[7],o[10],o[10]),iconWidthHeight:new s(20,o[4]),subtitleSectionWidth:new s(343,580,1200)},ue=({billpayApprovalView:t,remiApproverView:R,currentTenant:d,onBackClick:k,onClickMenuIcon:P,onSetupApprovalRulesBillPaySectionClick:z,onSetupApprovalRulesRemiSectionClick:C})=>{const n=V(),i=_(),p=D(),{fetchState:u,allApprovalRules:m,approvalRulesStatus:A}=t,{fetchState:h,allApprovalRules:g,approvalRulesStatus:T}=R,{commonSetUp:$,spendManagement:B}=c.getLocalizedStrings(),x=c.getLocalizedStrings().common.settings,v=c.getLocalizedStrings().common.headers,{billPay:I,reimbursement:M}=B,{billPaySetup:L}=I,{reimbursementSetup:W}=M,{setUp:r}=$,H=u==="In-Progress"||h==="In-Progress"||u==="Not-Started"||h==="Not-Started",w=n.mode==="light"?new S(n.colors.brandColorJadeLight):new S(n.colors.brandColorJadeDark),F=N(d,p.loggedInUserRoleMap),U=q(d,p.loggedInUserRoleMap);return e.jsxs(Q,{children:[e.jsx(E,{source:"ApprovalRulesSettingsPage",title:x.title.approvalRules,backgroundColor:n.colors.grey4,style:{zIndex:3},onBackClick:k,showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:P}),e.jsx(X,{windowSize:i,children:H?e.jsx(Y,{children:e.jsx(G,{size:"ExtraLarge",start:!0})}):e.jsxs(O,{children:[e.jsx(K,{windowSize:i,children:e.jsx(ee,{windowSize:i,children:x.infoText.approvalRules})}),e.jsxs(Z,{windowSize:i,children:[F===!0&&e.jsx(f,{title:m.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:L.approvalSubTitle,header:v.bills,icon:{element:e.jsx(y,{width:a.iconWidthHeight.valuePx(i),height:a.iconWidthHeight.valuePx(i)}),color:w},onClick:z,status:m.length>0?A:void 0}),U===!0&&e.jsx(f,{title:g.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:W.approvalSubTitle,header:v.reimbursements,icon:{element:e.jsx(y,{height:a.iconWidthHeight.valuePx(i)}),color:w},style:{paddingBottom:a.lastSectionPaddingBottom.valuePx(i)},onClick:C,status:g.length>0?T:void 0})]})]})})]})},O=l.div`
|
|
2
|
+
width: 100%;
|
|
3
|
+
margin: auto;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: flex-start;
|
|
6
|
+
height: 100%;
|
|
7
|
+
overflow-y: auto;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
align-items: center;
|
|
10
|
+
`,Q=l.div`
|
|
11
|
+
display: flex;
|
|
12
|
+
min-height: 100%;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
row-gap: ${j.sp3};
|
|
15
|
+
width: 100%;
|
|
16
|
+
background-color: ${t=>t.theme.colors.grey4};
|
|
17
|
+
`,X=l.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
height: 100%;
|
|
20
|
+
overflow-y: auto;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
`,Y=l.div`
|
|
23
|
+
display: flex;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: calc(100vh - 110px);
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
align-items: center;
|
|
29
|
+
background-color: ${t=>t.theme.colors.grey4};
|
|
30
|
+
`,Z=l.div`
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
row-gap: ${t=>a.sectionRowGap.valuePx(t.windowSize)};
|
|
34
|
+
`,K=l(J)`
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
align-items: center;
|
|
38
|
+
width: ${t=>a.subtitleSectionWidth.valuePx(t.windowSize)};
|
|
39
|
+
margin-bottom: ${j.sp5};
|
|
40
|
+
`,ee=l.div`
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
|
|
44
|
+
color: ${t=>t.theme.colors.hero};
|
|
45
|
+
font-family: ${b.largeMedium.fontFamily};
|
|
46
|
+
${b.standardRegular.css};
|
|
47
|
+
`;export{ue as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as i,F as f,d6 as k,
|
|
1
|
+
import{V as i,F as f,d6 as k,e as z,b1 as P,d as S,b as v,aV as T,d7 as N,d8 as K,p as h,o as x,ak as q}from"./index-BhteR_e0.js";import{a as C,S as H}from"./core-B-FNbYlu.js";import{n as j}from"./mui-DLNyBjYF.js";import{l as w,_ as V,h as R,m as J,u as L}from"./chartTypes-BZYC5y5J-fsutalT0.js";import{bn as B,E_ as E}from"./zeni-epic-state-HWtMOH-U.js";import{d as A,C as W,X as G,Y as I,T as M,b as F}from"./recharts-Cnl2EvUV.js";const Q=j.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,U=j.div`
|
|
4
4
|
flex: display;
|
|
@@ -15,10 +15,10 @@ import{V as i,F as f,d6 as k,d as z,b1 as P,u as S,b as w,aV as T,d7 as N,d8 as
|
|
|
15
15
|
width: 100%;
|
|
16
16
|
height: 1px;
|
|
17
17
|
background-color: ${h.neutralGrey3Dark};
|
|
18
|
-
`,rr=({active:r,payload:o,barName:e})=>{const t=[];if(o!=null&&r===!0){const n=o.filter(m=>m.name==e)[0],c=n.payload,u=n.color,s=e!=null&&c.record[e]!=null?c.record[e].amount:void 0,d={amount:0,currencyCode:"",currencySymbol:""};let l;for(l in c.record){const m=c.record[l].amount;d.amount+=c.record[l].amount?.amount??0,d.currencyCode=m!=null?m.currencyCode:d.currencyCode,d.currencySymbol=m!=null?m.currencySymbol:d.currencySymbol}const a=J(e);t.push({barName:a,actual:s,color:u}),t.push({barName:f.getLocalizedStrings().chartCard.total,actual:d,color:h.brandColorPearl})}return t},er=({barLabelsWithValues:r})=>i.jsx(Q,{children:i.jsxs(U,{children:[i.jsx(D,{color:r[0].color,children:`${r[0].barName}: ${L(r[0].actual)}`}),i.jsx(Z,{}),i.jsx(D,{children:`${f.getLocalizedStrings().chartCard.total}: ${L(r[1].actual)}`})]})}),tr=r=>{const o=rr({...r});return o.length===0?null:i.jsx(er,{barLabelsWithValues:o})},Y=H.memo(tr),X=5;function or(r){const o=N(r,(e,t)=>[e.amount?.amount??0,t]);return o.sort((e,t)=>t[0]-e[0]),o.slice(0,X-1).reduce((e,t)=>({...e,[t[1]]:!0}),{})}function O(r){const o=[];for(const e in r)o.push(e);return o.sort((e,t)=>(r[t].amount?.amount??0)-(r[e].amount?.amount??0)),o}const ar=r=>{const o=r.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),e=[];return{recordByDurations:r.agingPeriods.map(t=>{const n={};r.agingBalances.forEach(s=>{const d=
|
|
18
|
+
`,rr=({active:r,payload:o,barName:e})=>{const t=[];if(o!=null&&r===!0){const n=o.filter(m=>m.name==e)[0],c=n.payload,u=n.color,s=e!=null&&c.record[e]!=null?c.record[e].amount:void 0,d={amount:0,currencyCode:"",currencySymbol:""};let l;for(l in c.record){const m=c.record[l].amount;d.amount+=c.record[l].amount?.amount??0,d.currencyCode=m!=null?m.currencyCode:d.currencyCode,d.currencySymbol=m!=null?m.currencySymbol:d.currencySymbol}const a=J(e);t.push({barName:a,actual:s,color:u}),t.push({barName:f.getLocalizedStrings().chartCard.total,actual:d,color:h.brandColorPearl})}return t},er=({barLabelsWithValues:r})=>i.jsx(Q,{children:i.jsxs(U,{children:[i.jsx(D,{color:r[0].color,children:`${r[0].barName}: ${L(r[0].actual)}`}),i.jsx(Z,{}),i.jsx(D,{children:`${f.getLocalizedStrings().chartCard.total}: ${L(r[1].actual)}`})]})}),tr=r=>{const o=rr({...r});return o.length===0?null:i.jsx(er,{barLabelsWithValues:o})},Y=H.memo(tr),X=5;function or(r){const o=N(r,(e,t)=>[e.amount?.amount??0,t]);return o.sort((e,t)=>t[0]-e[0]),o.slice(0,X-1).reduce((e,t)=>({...e,[t[1]]:!0}),{})}function O(r){const o=[];for(const e in r)o.push(e);return o.sort((e,t)=>(r[t].amount?.amount??0)-(r[e].amount?.amount??0)),o}const ar=r=>{const o=r.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),e=[];return{recordByDurations:r.agingPeriods.map(t=>{const n={};r.agingBalances.forEach(s=>{const d=w(s.vendor?.name??"",t);n[d]={amount:s.apAgingBalances.find(l=>l.period===t)?.balance}});const c=f.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>X){const s=or(n),d=k(n,(b,p)=>s[p]===!0),l=k(n,(b,p)=>s[p]!==!0),a=Object.keys(l).reduce((b,p)=>b+(l[p].amount?.amount??0),0),m=Object.keys(l)[0],g=w("Other",t);d[g]={...l[m],amount:{amount:a,currencyCode:l[m].amount?.currencyCode??B.currencyCode,currencySymbol:l[m].amount?.currencySymbol??B.currencySymbol}};const y=O(d);return e.push(...y),{label:c,record:d}}const u=O(n);return e.push(...u),{label:c,record:n}}),durationLabels:o,orderedKeys:Array.from(e)}},nr=j.div`
|
|
19
19
|
width: ${r=>r.width}px;
|
|
20
20
|
height: ${r=>r.height}px;
|
|
21
|
-
`,sr=({active:r,payload:o,mouseOverBarName:e})=>o?.find(t=>t.name===e)!=null&&e!=null&&r===!0?i.jsx(Y,{active:r,payload:o,barName:e}):null;function jr({report:r,width:o,height:e,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=ar(r),d=()=>{const a=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;a.push(l(m,g))}),a},l=(a,m)=>i.jsx(F,{name:a,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const y=g.record;return(y[a]?.amount!=null?y[a].amount:void 0)?.amount??0},stackId:"a",fill:lr(a,s),onMouseEnter:()=>{c!==a&&u(a)},onMouseLeave:()=>{c!=null&&u(void 0)}},a);return s==null?null:i.jsx(cr,{chartData:s,barElements:d(),width:o,height:e,isDetailPage:t===!0,customToolTipContent:i.jsx(sr,{mouseOverBarName:c})})}const cr=({chartData:r,barElements:o,customToolTipContent:e,width:t,height:n,isDetailPage:c})=>{const u=z(),s=V(r);return i.jsx(nr,{width:t,height:n,children:i.jsx(P,{children:({height:d,width:l})=>i.jsxs(A,{width:l,height:d,stackOffset:"sign",data:r.recordByDurations,barCategoryGap:"25%",maxBarSize:c?S[8]:S[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(W,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(G,{dataKey:a=>a.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...
|
|
21
|
+
`,sr=({active:r,payload:o,mouseOverBarName:e})=>o?.find(t=>t.name===e)!=null&&e!=null&&r===!0?i.jsx(Y,{active:r,payload:o,barName:e}):null;function jr({report:r,width:o,height:e,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=ar(r),d=()=>{const a=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;a.push(l(m,g))}),a},l=(a,m)=>i.jsx(F,{name:a,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const y=g.record;return(y[a]?.amount!=null?y[a].amount:void 0)?.amount??0},stackId:"a",fill:lr(a,s),onMouseEnter:()=>{c!==a&&u(a)},onMouseLeave:()=>{c!=null&&u(void 0)}},a);return s==null?null:i.jsx(cr,{chartData:s,barElements:d(),width:o,height:e,isDetailPage:t===!0,customToolTipContent:i.jsx(sr,{mouseOverBarName:c})})}const cr=({chartData:r,barElements:o,customToolTipContent:e,width:t,height:n,isDetailPage:c})=>{const u=z(),s=V(r);return i.jsx(nr,{width:t,height:n,children:i.jsx(P,{children:({height:d,width:l})=>i.jsxs(A,{width:l,height:d,stackOffset:"sign",data:r.recordByDurations,barCategoryGap:"25%",maxBarSize:c?S[8]:S[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(W,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(G,{dataKey:a=>a.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...v.extraSmallRegular.cssObject}}),i.jsx(I,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...v.extraSmallRegular.cssObject},tickFormatter:a=>T("0,0.[00]a",a,s)}),i.jsx(M,{wrapperStyle:{zIndex:2},cursor:!1,content:e,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})};function lr(r,o){const e=R(r),t=f.getLocalizedStrings().reports.aging.duration[e],n=o?.recordByDurations.find(c=>c.label===t)?.record;if(n?.[r]!=null){const c=n[r].amount?.amount??0;let u=1;switch(K(n,s=>{(s.amount?.amount??0)>c&&u++}),u){case 1:return h.graphColor24;case 2:return h.graphColor33;case 3:return h.graphColor18;case 4:return h.graphColor12;case 5:return h.graphColor01;default:return h.graphColor01}}return h.graphColor01}const _=5;function ir(r){const o=N(r,(e,t)=>[e.amount?.amount??0,t]);return o.sort((e,t)=>t[0]-e[0]),o.slice(0,_-1).reduce((e,t)=>({...e,[t[1]]:!0}),{})}function $(r){const o=[];for(const e in r)o.push(e);return o.sort((e,t)=>(r[t].amount?.amount??0)-(r[e].amount?.amount??0)),o}const ur=r=>{const o=r.agingPeriods.map(t=>f.getLocalizedStrings().reports.aging.duration[t]),e=[];return{recordByDurations:r.agingPeriods.map(t=>{const n={};r.agingBalances.forEach(s=>{const d=w(s.customer?.name??"",t),l=s.arAgingBalances.find(a=>a.period===t);n[d]={amount:s.children.length>0?l?.totalBalance:l?.balance}});const c=f.getLocalizedStrings().reports.aging.duration[t];if(Object.keys(n).length>_){const s=ir(n),d=k(n,(b,p)=>s[p]===!0),l=k(n,(b,p)=>s[p]!==!0),a=Object.keys(l).reduce((b,p)=>b+(l[p].amount?.amount??0),0),m=Object.keys(l)[0],g=w("Other",t);d[g]={...l[m],amount:{amount:a,currencyCode:l[m].amount?.currencyCode??E.currencyCode,currencySymbol:l[m].amount?.currencySymbol??E.currencySymbol}};const y=$(d);return e.push(...y),{label:c,record:d}}const u=$(n);return e.push(...u),{label:c,record:n}}),durationLabels:o,orderedKeys:Array.from(e)}},dr=j.div`
|
|
22
22
|
width: ${r=>r.width}px;
|
|
23
23
|
height: ${r=>r.height}px;
|
|
24
|
-
`,mr=({active:r,payload:o,mouseOverBarName:e})=>o?.find(t=>t.name===e)!=null&&e!=null&&r===!0?i.jsx(Y,{active:r,payload:o,barName:e}):null;function kr({report:r,width:o,height:e,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=ur(r),d=()=>{const a=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;a.push(l(m,g))}),a},l=(a,m)=>i.jsx(F,{name:a,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const y=g.record;return(y[a]?.amount!=null?y[a].amount:void 0)?.amount??0},stackId:"a",fill:gr(a,s),onMouseEnter:()=>{c!==a&&u(a)},onMouseLeave:()=>{c!=null&&u(void 0)}},a);return s==null?null:i.jsx(hr,{chartData:s,barElements:d(),width:o,height:e,isDetailPage:t===!0,customToolTipContent:i.jsx(mr,{mouseOverBarName:c})})}const hr=({chartData:r,barElements:o,customToolTipContent:e,width:t,height:n,isDetailPage:c})=>{const u=z(),s=V(r);return i.jsx(dr,{width:t,height:n,children:i.jsx(P,{children:({height:d,width:l})=>i.jsxs(A,{width:l,height:d,stackOffset:"sign",data:r.recordByDurations,barCategoryGap:"25%",maxBarSize:c?S[8]:S[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(W,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(G,{dataKey:a=>a.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...
|
|
24
|
+
`,mr=({active:r,payload:o,mouseOverBarName:e})=>o?.find(t=>t.name===e)!=null&&e!=null&&r===!0?i.jsx(Y,{active:r,payload:o,barName:e}):null;function kr({report:r,width:o,height:e,isDetailPage:t}){const n=C.useRef(!1),[c,u]=C.useState(void 0);C.useEffect(()=>{n.current=!0},[]);const s=ur(r),d=()=>{const a=[];return s?.orderedKeys.forEach(m=>{const g=t===!0&&!n.current;a.push(l(m,g))}),a},l=(a,m)=>i.jsx(F,{name:a,animationDuration:m?500:void 0,style:{cursor:"pointer"},dataKey:g=>{const y=g.record;return(y[a]?.amount!=null?y[a].amount:void 0)?.amount??0},stackId:"a",fill:gr(a,s),onMouseEnter:()=>{c!==a&&u(a)},onMouseLeave:()=>{c!=null&&u(void 0)}},a);return s==null?null:i.jsx(hr,{chartData:s,barElements:d(),width:o,height:e,isDetailPage:t===!0,customToolTipContent:i.jsx(mr,{mouseOverBarName:c})})}const hr=({chartData:r,barElements:o,customToolTipContent:e,width:t,height:n,isDetailPage:c})=>{const u=z(),s=V(r);return i.jsx(dr,{width:t,height:n,children:i.jsx(P,{children:({height:d,width:l})=>i.jsxs(A,{width:l,height:d,stackOffset:"sign",data:r.recordByDurations,barCategoryGap:"25%",maxBarSize:c?S[8]:S[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[i.jsx(W,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:u.colors.grey3}),i.jsx(G,{dataKey:a=>a.label,type:"category",axisLine:{stroke:u.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:u.colors.hero,...v.extraSmallRegular.cssObject}}),i.jsx(I,{type:"number",axisLine:!1,tickLine:!1,tick:{color:u.colors.hero,...v.extraSmallRegular.cssObject},tickFormatter:a=>T("0,0.[00]a",a,s)}),i.jsx(M,{wrapperStyle:{zIndex:2},cursor:!1,content:e,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})};function gr(r,o){const e=R(r),t=f.getLocalizedStrings().reports.aging.duration[e],n=o?.recordByDurations.find(c=>c.label===t)?.record;if(n?.[r]!=null){const c=n[r].amount?.amount??0;let u=1;switch(K(n,s=>{(s.amount?.amount??0)>c&&u++}),u){case 1:return h.graphColor24;case 2:return h.graphColor33;case 3:return h.graphColor18;case 4:return h.graphColor12;case 5:return h.graphColor01;default:return h.graphColor01}}return h.graphColor01}export{jr as L,kr as k};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import{e as Y,q as F,F as C,V as o,bL as O,g1 as R,bz as B,cj as H,o as M,aQ as K,bA as U,y as I,cc as V,cd as W,ce as q,d as y}from"./index-BhteR_e0.js";import{a as S}from"./core-B-FNbYlu.js";import{n as s}from"./mui-DLNyBjYF.js";import{W as J,L as Z}from"./EntitySummarySection-BaHHLLkE-D3Ip19-Y.js";import"./sentry-EYLV4XmG.js";import"./zeni-epic-state-HWtMOH-U.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";const _={wrapperContainerMarginTop:new I(y[4],y[0]),wrapperContaineHorizontalrMargin:new I(y[0],y[8])},{common:Q,reports:{common:G,aging:{agingDetail:X}},dateFormat:A}=C.getLocalizedStrings();function _e(e){const h=Y(),d=F(),{arAgingDetail:r,downloadParams:l,reportDate:t,analytics:a,onReload:n,onBackClick:w,onColumnSortConfigChanged:m,updateDownloadStateHandler:f,onTransactionClick:N}=e,{authParams:k,downloadEndPoint:v,timezone:$}=l,{fetchState:g,invoices:j,arAgingDetailUIState:P,customer:i,totalBalances:L}=r,{sortKey:x,sortOrder:D,downloadState:p}=P,[b,z]=S.useState(!1),T=S.useCallback((c,u)=>{r.customer!=null&&a.trackArAgingDetailReportSortChange(c,u,t.format(A.analytics.YYYYDashMMDashDDFormat),r.customer.id,r.customer.name),m(c,u)},[r.customer,m,a,t]);if(S.useEffect(()=>{async function c(){const u={companyName:l.companyName,sortKey:x,sortOrder:D,statementFileType:"excel",reportId:"accounts_receivable_aging",entityId:i?.id??"",timezone:$,reportDate:t};await ee(v,k,u),f("Completed"),r.customer!=null&&a.trackApAgingDetailReportDownload(x,D,t.format(A.analytics.YYYYDashMMDashDDFormat),r.customer.id,r.customer.name)}b&&p!=="In-Progress"&&(z(!1),f("In-Progress"),c())},[k,v,l.companyName,p,b,t,x,D,$,f,i?.id,r.customer,a]),g==="Error")return o.jsxs(te,{children:[o.jsx(ae,{onClick:n,children:o.jsx(O,{})}),o.jsx(ne,{children:G.failed})]});if(g==="In-Progress"||g==="Not-Started")return o.jsx(R,{fetchState:g});const E=o.jsx(U,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:p==="In-Progress"}],onDownloadClick:async c=>{if(c==="excel")if(p==="In-Progress"){console.log("Download is already in progress!");return}else z(!0)}}}});return o.jsxs(ie,{children:[o.jsx(B,{title:Q.strings.empty,backgroundColor:h.colors.grey5,onBackClick:w,rightSideComponent:E,downloadPresent:!0,source:"ArAgingDetailPage"}),o.jsx(J,{totalBalances:L,entityName:i?.name??"",entityLogo:i?.logo,reportId:"accounts_receivable_aging",reportDate:t}),o.jsx(se,{windowSize:d,children:o.jsx(le,{windowSize:d,children:j.length===0||i==null?o.jsx(H,{message:X.noDataText}):o.jsx(re,{windowSize:d,children:o.jsx(Z,{uiState:P,invoices:j,entityName:i.name,entityLogo:i.logo,onColumnSortConfigChanged:T,onTransactionClick:N})})})})]})}async function ee(e,h,d){const r=`${e}?query=${encodeURIComponent(JSON.stringify(oe(d)))}`,l=C.getLocalizedStrings(),t=l.reports.aging.arAging.arAging,a=l.download;try{const n=await V({urlEndPoint:r,authParams:h,fileType:"excel"});if(n.ok){const w=W(n.headers,a.defaultFileName),m=await n.arrayBuffer();q(m,w)}else console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",t)} ${n.statusText}`)}catch(n){console.error(`${a.errorMessages.fileDownloadError.replace("__feature__",t)} ${JSON.stringify(n)}`)}}function oe(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:C.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}const re=s.div`
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
max-width: 99.9%;
|
|
6
|
+
`,te=s.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: calc(100% - 60px);
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
`,ae=s.div`
|
|
14
|
+
height: 96px;
|
|
15
|
+
width: 96px;
|
|
16
|
+
background: ${e=>e.theme.colors.background};
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
& svg {
|
|
20
|
+
margin: ${M.sp5};
|
|
21
|
+
color: ${e=>e.theme.colors.grey1};
|
|
22
|
+
}
|
|
23
|
+
&:hover {
|
|
24
|
+
& svg {
|
|
25
|
+
color: ${e=>e.theme.colors.primary};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`,ne=s(K)`
|
|
29
|
+
margin-top: ${M.sp3};
|
|
30
|
+
color: ${e=>e.theme.colors.hero};
|
|
31
|
+
`,ie=s.div`
|
|
32
|
+
display: flex;
|
|
33
|
+
min-height: 100%;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
width: 100%;
|
|
36
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
37
|
+
`,se=s.div`
|
|
38
|
+
display: block;
|
|
39
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
40
|
+
height: calc(100vh - 178px);
|
|
41
|
+
margin-top: ${e=>_.wrapperContainerMarginTop.valuePx(e.windowSize)};
|
|
42
|
+
`,le=s.div`
|
|
43
|
+
margin-left: ${e=>_.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
|
|
44
|
+
margin-right: ${e=>_.wrapperContaineHorizontalrMargin.valuePx(e.windowSize)};
|
|
45
|
+
height: 100%;
|
|
46
|
+
`;export{_e as default,oe as toDownloadAgingDetailedReportOptionsPayload};
|