@zeniai/web-cockpit-ui 1.14.19-dev-betaSK01 → 1.14.20-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-CVBRtacz-BEkwx2cM.js +21 -0
- package/dist/assets/{AIPerformancePage-CJ0myi1p-CyCBKn16.js → AIPerformancePage-DnOjd2BF-CRXsdl24.js} +52 -52
- package/dist/assets/AccountInfoPage-Bt-jShgf-CCHYq--w.js +18 -0
- package/dist/assets/{AccountInfoPageContent-CVV20YhW-q-TI4Dr6.js → AccountInfoPageContent-Cc80eQeo-579rUIpL.js} +20 -20
- package/dist/assets/AccountLockedInfoModal-B-Hn6_hG-B-4Dg7na.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-CNT6qZyD-ZHVZJgF9.js → AccountReconDetailsDrawerPage-Bz1Sk2du-CwztkqDE.js} +18 -18
- package/dist/assets/{AccountRow-COaolUm5-Bsrm5YYV.js → AccountRow-D01C0A0f-QA2NRq7R.js} +46 -46
- package/dist/assets/{AccountsPromoCardStack-BOmk5qYk-Bnozn1QW.js → AccountsPromoCardStack-DsjFJ8gZ-DjW6RsEa.js} +37 -37
- package/dist/assets/{AddAddressForCardDrawer-DQN-6ztS-C4C6h_V9.js → AddAddressForCardDrawer-DnoYIvUp-DRozqjCP.js} +2 -2
- package/dist/assets/{AddToWalletPage-CT9nivqI-BnXCEk6P.js → AddToWalletPage-BIiW9JxG-D9CD9wND.js} +122 -122
- package/dist/assets/{AgingReportsPage-DGzFK69_-DgqwpnRI.js → AgingReportsPage-WazD_3Z7-CoFeaJHD.js} +17 -17
- package/dist/assets/{AllUserItems-diZQlFqb-DwUtiew2.js → AllUserItems-CTSy4oBh-COmuQZqb.js} +18 -18
- package/dist/assets/ApAgingDetailPage--NGBXWsy-C8HiqI6Z.js +46 -0
- package/dist/assets/AppBasePage-B5br9UXD-BXEvz6Z3.js +70 -0
- package/dist/assets/{AppDrawerContent-Z3Hny9GH-BBS5jJHD.js → AppDrawerContent-vFeMNL3B-anFPhgeB.js} +13 -13
- package/dist/assets/ApprovalRulesSettingsPage-6j7VBBZ6-D1yZE3mH.js +47 -0
- package/dist/assets/ArAgingChart-BYWN3_Nl-CYX1U_rU.js +24 -0
- package/dist/assets/ArAgingDetailPage-B-hHa8A6-BrQATxNB.js +46 -0
- package/dist/assets/{AttachmentView-ChlYn2cr-DueA245P.js → AttachmentView-C2kWA5X5-XqMuBHHe.js} +8 -8
- package/dist/assets/{BankAccountSection-DdvqFTBS-3WhABy0l.js → BankAccountSection-B20IwpOn-dEqA-3oX.js} +7 -7
- package/dist/assets/{BankAccountWarningSection-VrRQxdkB-DFivrjf8.js → BankAccountWarningSection-GHO0P0IZ-jfpI3pUb.js} +10 -10
- package/dist/assets/{BankConnectionsSettingsPage-D1Y3V93C-Bfvr_pF_.js → BankConnectionsSettingsPage-Cpg1ObB6-DR3nDiYc.js} +33 -33
- package/dist/assets/{BillDetailPage-XL8GxSiQ-Cxb-3w9d.js → BillDetailPage-DOF5ibT6-Bat6GtFx.js} +17 -17
- package/dist/assets/{BillPayApprovalRuleDetailPage-wIEW2R5G-CC_GZTsX.js → BillPayApprovalRuleDetailPage-BI1R1zT_-D9iKVE5j.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-kGddvG8V-rTKT6DIU.js → BillPayApprovalRulesPage-B3x4So_i-B5TxdAS5.js} +11 -11
- package/dist/assets/{BillPayPromoPage-VBLYqFtx-CSmxPHYz.js → BillPayPromoPage-BqzH5AIp-Bcp4yJP9.js} +10 -10
- package/dist/assets/BillPaySetUpPage-DqiNMnRE-abIQ9Tkf.js +42 -0
- package/dist/assets/BillingSettingsPage-BOAAGOLs-CdPqd8Hl.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-B76xXQJ9-CbXzjgOR.js +1 -0
- package/dist/assets/{BoxItem-DJq3mny1-nPTLB__B.js → BoxItem-DCsIK5bA-DrkhsCS_.js} +4 -4
- package/dist/assets/BusinessVerificationPage-hSVDM_Bi-eN7TBacX.js +140 -0
- package/dist/assets/{CardNumberSubText-Bo_ZeAR0-DocU3odv.js → CardNumberSubText-B_ZdgYVm-CRvH-CRy.js} +4 -4
- package/dist/assets/{CashbackDetailPage-0Yl3lHzq-CJUtuV5y.js → CashbackDetailPage-CNeEt6aE-CsctITKU.js} +32 -32
- package/dist/assets/{ChargeCardDetailPage-BaceF_92-G63YAG6z.js → ChargeCardDetailPage-C0a8jqCD-CUfhgRr0.js} +78 -78
- package/dist/assets/ChargeCardListPage-_3lJqIYP-iewbQ3J2.js +355 -0
- package/dist/assets/{ChargeCardListTable-DE1xnRyd-D2F1GAJW.js → ChargeCardListTable-Kx-_ZAZu-BvnPLhgK.js} +62 -62
- package/dist/assets/ChargeCardPromoPage-CKTkcQdI-B3wD2hqP.js +222 -0
- package/dist/assets/ChargeCardSetupPage-CGRMFERy-BQ8k2roy.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-bpyamxR5-WxHdE5xc.js → ChargeCardStatementsPage-B_7CdyKP-CMTrFXHN.js} +13 -13
- package/dist/assets/ChargeCardUtils-BcwLwgz7-DrE0N0EF.js +1 -0
- package/dist/assets/{ChaseOverlay-YVpKSII6-BIyjTgCz.js → ChaseOverlay-ClcKUdpT-Buerorcp.js} +12 -12
- package/dist/assets/CheckDepositDrawerPage-I3siSP2H-BrRdb26D.js +206 -0
- package/dist/assets/{CollapsableReportTable-CDe76ha7-3Q7qsS_e.js → CollapsableReportTable-ULd7PQST-DRS_mwem.js} +57 -57
- package/dist/assets/{CompanyOfficerDetailsSection-CeVdKqY7-DWrcELqw.js → CompanyOfficerDetailsSection-DLaAmVLG-9U29EMpY.js} +32 -32
- package/dist/assets/{CompanyPassportCard-O7LbMSSb-D53wb0da.js → CompanyPassportCard-CZQuAyI2-Du4zK6a2.js} +8 -8
- package/dist/assets/{CompanyPassportPage-B05q2F4S-DiyGLc2N.js → CompanyPassportPage-DqoVJfO--BezYa4q3.js} +154 -154
- package/dist/assets/CompleteProfile-BJV-xUlM-DoWTiT1k.js +52 -0
- package/dist/assets/ConfettiBurst-D4ga9TRN-DITQey3L.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-BZ6ZfaSo-Dn1DLrma.js → CreateOrEditVendorPage-C6efUMJu-BO_oyqIH.js} +13 -13
- package/dist/assets/{CreditCardPaymentDrawerPage-cABpaIqh-BIRd807Z.js → CreditCardPaymentDrawerPage-26ysDTts-B2nPMyDO.js} +16 -16
- package/dist/assets/{CreditCardPaymentPlgSection-BgJ074tY-CfzZdzTd.js → CreditCardPaymentPlgSection-8NQI5gcx-CtF_TfUM.js} +12 -12
- package/dist/assets/{CurrencySelectField-BfgtNimH-BYHOS_CH.js → CurrencySelectField-CVNn0XCq-DT36t2lI.js} +6 -6
- package/dist/assets/{CustomerOnboardingActivationPage-Czg8rmEW-YInlsWzY.js → CustomerOnboardingActivationPage-D0-sOxDl-Bm2kAKIU.js} +4 -4
- package/dist/assets/CustomerOnboardingContainerPage-DoibuhLN-8rsNTWNZ.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DtYTYPnO-DzMzbH73.js → CustomerOnboardingDetailPageSkeleton-B7hkzgkV-BXEF9ppx.js} +17 -17
- package/dist/assets/CustomerOnboardingNoStepsPage-CD1QldcG-CzeAfya1.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-CXZCAc_N-BfMJFDq7.js → CustomerOnboardingPage-DB1gXgdD-CUHFehdd.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-ucFJ1PHr-BwZiAWEx.js → CustomerOnboardingProductSuitePage-DGMmLmq8-Cbgji3lL.js} +12 -12
- package/dist/assets/{Dashboard-CAWL19Rr-CvQLInkH.js → Dashboard-CU3UQhxj-VVHJwggZ.js} +25 -25
- package/dist/assets/{DashboardReportPage-DYgKY1Ns-_VZzH9Ck.js → DashboardReportPage-DMdKWPtx-DkAIriFg.js} +27 -27
- package/dist/assets/DashboardSidebarBackgroundAnimation-BMEqBAyh-vfJQWz_r.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-DeOMizAI-BUL1onQj.js → DepositAccTransactionItem-C1-JGWD1-BMvGw-zQ.js} +10 -10
- package/dist/assets/DepositAccTransactionListPage-CfwhQ7mC-B3prPdix.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-FsJvVULE-cMWuJpE8.js → DomesticWireDetailsPage-D6fDbjcO-DHXj9Zdn.js} +1 -1
- package/dist/assets/{DownloadOverlay-CVCKyDWO-CyzPCm3f.js → DownloadOverlay-CsX54puJ-DeWJ_bTZ.js} +39 -39
- package/dist/assets/{DrawerPage-l697kk-T-C0lMqvCR.js → DrawerPage-xYwGDHR6-Ch0S05SG.js} +17 -17
- package/dist/assets/EditPeoplePage-9SmQtrJz-Cw0-GcjG.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-COuH1JPm-DF1XIZnj.js → EditReimbursementDetailPage-EUO0BoRp-EVPPjvHX.js} +49 -49
- package/dist/assets/{EntityDetailPage-BqjWJTDI-qcUtYQZh.js → EntityDetailPage-CF6LS35a-CeBa6jKf.js} +3 -3
- package/dist/assets/{EntitySummarySection-B1zP9dKH-kkSLVqaS.js → EntitySummarySection-C0gR6pkr-AtoRf1sI.js} +11 -11
- package/dist/assets/ExpenseAutomationOverviewPage-B0I8v21w-C1ihD57y.js +222 -0
- package/dist/assets/{ExpenseAutomationPage-DP0P07VH-DhP4-CZe.js → ExpenseAutomationPage-BorzJM7G-DFmLOpV0.js} +88 -88
- package/dist/assets/{ExpressPayPage-CuuS2EDn-D3uvvYo2.js → ExpressPayPage-D0YWItIv-Bvps2LX7.js} +11 -11
- package/dist/assets/FeaturePreviewPage-yu8G5cHk-BxkuThqr.js +11 -0
- package/dist/assets/{FollowStepsSection-DbS5XlIB--DgM9Akw.js → FollowStepsSection-DRDFxA8H-Dg1nQMTR.js} +11 -11
- package/dist/assets/{GlobalReviewListPage-D1a2gbca-BjGUSD3w.js → GlobalReviewListPage-D80yv7U2-CfvcgDlu.js} +11 -11
- package/dist/assets/{HelpButton-Dw0OujKs-8AApGgt1.js → HelpButton-D9ONg6cm-CuNxHNm2.js} +7 -7
- package/dist/assets/{InformationCardStack-QA9nEJlH-BHcB9j6E.js → InformationCardStack-CbKQwtHm-B7yYvAdF.js} +4 -4
- package/dist/assets/{InsightsCardStack-DKM6Xigy-B12rMXAv.js → InsightsCardStack-BWsN9_G2-DemEieR0.js} +13 -13
- package/dist/assets/InsightsSection-WZo-AWJt-DohBwSi_.js +27 -0
- package/dist/assets/IntegrationsSettingsPage-BLjSJt9r-6t6Ass9f.js +57 -0
- package/dist/assets/{InternationalWireSwiftDetailsPage-KC-9TwlR-DtVQ4upN.js → InternationalWireSwiftDetailsPage-BXNDZ1Mk-BO2f4UVV.js} +16 -16
- package/dist/assets/{InternationalWireVerificationPage-D59omOr2-BqyFDoPr.js → InternationalWireVerificationPage-BLgPJ1NJ-CMky3KEh.js} +12 -12
- package/dist/assets/InviteFormPage-DPQ4vL9--DIhY9xxd.js +312 -0
- package/dist/assets/{InvitePageListView-BO-RmmHm-B9WEWx8n.js → InvitePageListView-YUKxUGBn-CGJ_yirg.js} +58 -58
- package/dist/assets/InvitePeoplePage-C3vECRns-DBtYnb-4.js +12 -0
- package/dist/assets/{InvoiceUploadSection-CibgDVMW-Ct_Yqg-6.js → InvoiceUploadSection-Cx6pXJiN-CgRQkeV5.js} +10 -10
- package/dist/assets/{IssueChargeCardPage-CB5DhzQb-Dowc3uml.js → IssueChargeCardPage-DZVtocCO-B49QpSq-.js} +75 -75
- package/dist/assets/LabeledAddressValue-BrB2xQYz-B09yXjLA.js +49 -0
- package/dist/assets/LabeledAddressValueField-_35LG3OI-C2eHerzm.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-o0K1dba0-BZipP4yv.js +16 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-CIhXQBns-C3KOt5qj.js → LabeledCreatableSingleSelectField-DQwGH21a-D1Rth7u2.js} +8 -8
- package/dist/assets/LabeledDocumentField-CfgzkjDY-CbC276Lv.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-pClUx8A9-Dtg8BoKW.js → LabeledDropDownFormattedTextField-DdaTvUbM-C4uCaUJ3.js} +10 -10
- package/dist/assets/{LabeledText-CW-bei7--hAClqsQN.js → LabeledText-Hi4MixDN-n_lfAbe7.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DZUt2T7b-B09ph3mF.js → LabeledUserSingleSelectWithSubtitlesField-BlVebvR7-CKRRo1Fi.js} +22 -22
- package/dist/assets/{LabeledZeniRolesDropDownField-DNZUBYDP-ltAbPko_.js → LabeledZeniRolesDropDownField-Bm7Emr_n-JLIDvMIU.js} +11 -11
- package/dist/assets/LinkJETransactionPage-ittEPbhi-BCWKpHna.js +98 -0
- package/dist/assets/{LowBalancePopup-DcVkWdb3-vRNfAVIB.js → LowBalancePopup-ChA83eFW-dErt1yuL.js} +6 -6
- package/dist/assets/{MagicLinkACHDetailsPage-B3NEKP0z-DUbPO0xw.js → MagicLinkACHDetailsPage-B4PPI06n-DFF50HiV.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-SvX8hE_J-6LOmcKRH.js → MagicLinkDomesticWireDetailsPage-DRK5ytSb-CTgdy9NG.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DnrUY7JS-nyREbLmz.js → MagicLinkInternationalWireDetailsPage-C2pn5xtm-DTn743zM.js} +1 -1
- package/dist/assets/MagicLinkSuccessPage-Bag5TE2J-DCGiU-tX.js +31 -0
- package/dist/assets/MagicLinkTitleSection-Ch72cLUN-CsTRlAex.js +17 -0
- package/dist/assets/{MailingDetailsSection-DFxnpK8F-CiXDBg4h.js → MailingDetailsSection-CrHHLtQN-loRqi7di.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-LNaVbSrR-TEQEw5Mb.js → MeetingCalenderPopup-B_KRQLwc-CemZcgIl.js} +3 -3
- package/dist/assets/{Menu-BCNEnlpd-D3With3F.js → Menu-Czq7AdhP-C-oEbm2f.js} +3 -3
- package/dist/assets/{MyBankConnectionsSettingsPage-DCURGC-R-BMFNqNjE.js → MyBankConnectionsSettingsPage-y3YOYnQr-BDn2GzBg.js} +13 -13
- package/dist/assets/MyPendingActivationChargeCardListPage-DJeYzaPj-Dm2kAILW.js +6 -0
- package/dist/assets/MyProfileSettingsPage-hQvoACAQ-DxTxhxW-.js +85 -0
- package/dist/assets/{NavBarWithPicker-CBOGjIl3-ajX8qLcM.js → NavBarWithPicker-DUaSGf4d-hMIZgUnq.js} +6 -6
- package/dist/assets/{NavigationArrow-C6KDDKXh-BuGIAK_3.js → NavigationArrow-ClEBtns--CBhi3Wa5.js} +5 -5
- package/dist/assets/{NavigationDots-CGOsNTLj-ZRX96j5F.js → NavigationDots-BsJyQWOZ-DQaJD5qn.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-C478pZIu-cHWkOmAB.js → NewGlobalMerchantPage-BKZGSrDk-Bj0fLOGG.js} +4 -4
- package/dist/assets/{NoDataChart-BSoXaJD0-JxM1S3Cy.js → NoDataChart-Bk9eWo52-DbkTpf0E.js} +8 -8
- package/dist/assets/{NoDataTable-iH1r029I-DLkBIcoK.js → NoDataTable-DCQbtvPN-DkrWdcTk.js} +1 -1
- package/dist/assets/{NotFoundPage-BQLKWvT9-wlLCbXww.js → NotFoundPage-CGx7FoiU-CZaJl2_e.js} +6 -6
- package/dist/assets/{NotificationSettingsPage-R7veJvze-BqnLD-ld.js → NotificationSettingsPage-CoD8eTUS-8OIZSyCr.js} +26 -26
- package/dist/assets/NotificationsListConfig-hyqVBWDA-BxI8wBvU.js +1 -0
- package/dist/assets/{NotificationsPage-D_vooxhV-BtfMVNB5.js → NotificationsPage-BavPSx1H-CVEnlnNl.js} +60 -60
- package/dist/assets/{OpExByVendorPage-DWCdLRPc-peo3zX7H.js → OpExByVendorPage-DD8tCc8E-DObB3ZyW.js} +15 -15
- package/dist/assets/{OverlayContainerPage-1M2CZQoK-DROfCTrK.js → OverlayContainerPage-Dg-aOJQU-XdQCUH0G.js} +1 -1
- package/dist/assets/PandLWithForecastPage-bSkidYRR-D-Y5VMs1.js +107 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-YLuS3VUf-CaBoPPAw.js → PaymentAccountSetupBillingAddressSection-CGIC_vLw-BIusm93k.js} +12 -12
- package/dist/assets/{PeoplePage-CRZ7ywRU-CZLazd8w.js → PeoplePage-C-2NZJpQ-BbdMKhWr.js} +36 -36
- package/dist/assets/{PortfolioAllocationFormPage-QP1Aoj30-7H62H89u.js → PortfolioAllocationFormPage-B6JOvEvW-BSgeoBob.js} +12 -12
- package/dist/assets/{PortfolioDetails-DOlYfVij-TNjtwW2_.js → PortfolioDetails-Cpv5bi4_-C3K7fsrr.js} +40 -40
- package/dist/assets/{ProductsCarousel-CzJnAk3w-MortVhyi.js → ProductsCarousel-WDd37Mjn-NLHTDL58.js} +11 -11
- package/dist/assets/{PromoBaseCards-CLKhsYfl-BEkL1oHo.js → PromoBaseCards-BaFkKGkm-Bw-1QrdI.js} +4 -4
- package/dist/assets/{QBOConnectionDialog-CiAUTeD2-D061mOJX.js → QBOConnectionDialog-l3ThoJCI-BaUAxpz_.js} +10 -10
- package/dist/assets/QBOSetupSection-DSrxcrXI-CnwGvTKQ.js +79 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DCzX_1-a-BNW7pXC_.js → ReimbursementApprovalRuleDetailPage-hb8mPFw0-iXwT5wDy.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DfHVzdAB-hV-2mfna.js → ReimbursementApprovalRulesPage-fs4WqNUv-BvFXhzka.js} +10 -10
- package/dist/assets/{ReimbursementDetailPage-Di8XpCvg-B7b0ZH64.js → ReimbursementDetailPage-BYw6Mc2u-ZOQaZirb.js} +14 -14
- package/dist/assets/{ReimbursementPromoPage-CJSuqONm-DlocTKyV.js → ReimbursementPromoPage-DzDuwRxU-DEtJqrhv.js} +24 -24
- package/dist/assets/ReimbursementSetUpPage-DdT6uu1--I31J4BAO.js +140 -0
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-CXvng56s-BxlZIO2c.js +1 -0
- package/dist/assets/{ReloadCard-BuBuLupE-Cty15m_t.js → ReloadCard-BPoOhxrs-D8lPs5qf.js} +5 -5
- package/dist/assets/ReportTableViewSelector-CkZW5TtX-I9C4FHDc.js +150 -0
- package/dist/assets/{ReportsPage-R29_iuow-B4_GPbvP.js → ReportsPage-C-ARKbIQ-CCoiMwuP.js} +6 -6
- package/dist/assets/{RevenueChart-D3r_Mgmm-XyYx-Hfz.js → RevenueChart-CuqZW-Jr-B_s8E_iU.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-Cimq9su3-CRN9WHDV.js → ReviewDetailsPage-BVN_Uym2-d0L-TTpG.js} +17 -17
- package/dist/assets/ReviewOverlay-CIgtaUn1-wggYVp0Q.js +152 -0
- package/dist/assets/RoleWithToolTip-Dm4yIm31-3pGQtzkX.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Cbe0zp9o-DxmW_LFp.js → ScheduleDetailsFixedAssetsPage-Ce3z1VPg-SvqdKcr4.js} +13 -13
- package/dist/assets/{ScheduleDetailsPage-DxmJdx3I-Bant9wup.js → ScheduleDetailsPage-O69iLj4h-CXnxPezp.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-srpDx2n6-l1UT781V.js → ScheduleSequenceTable-DMIzc2zC-3WngbgQC.js} +27 -27
- package/dist/assets/{ScreenRoutes-DPjLo75W.js → ScreenRoutes-D3pC7BH7.js} +1 -1
- package/dist/assets/SetUpAccountSection-C1_QjMwF-C_2yznzy.js +378 -0
- package/dist/assets/{SetUpDefaultSection-BWt_kYKx-Dc8telSj.js → SetUpDefaultSection-B-ZEHQUb-iLzGQnWH.js} +15 -15
- package/dist/assets/SignIn-CXQyYEJI-BbNAmrjc.js +408 -0
- package/dist/assets/SignInScreen-DtWV87E_.js +1 -0
- package/dist/assets/SpendManagementListViewPage-DEMLoStE-C1nPAYM8.js +123 -0
- package/dist/assets/{SpendManagementPerTabPage-CZaPjNjx-Bhxn4ZLQ.js → SpendManagementPerTabPage-CLf-7YyR-60GdYb7a.js} +68 -68
- package/dist/assets/{SpendManagementSection-atmLAM4T-DeXVF-9S.js → SpendManagementSection-DIVgOKWy-D35voP2u.js} +22 -22
- package/dist/assets/{SpendMgmtSetupAccountSection-h6duObCp-PJLwXWd-.js → SpendMgmtSetupAccountSection-DFyUBsg3-DRIU7IWr.js} +18 -18
- package/dist/assets/StatementItem-CSyEn4Pz-CIQDSk8U.js +31 -0
- package/dist/assets/StatementsPage-D34J2aZa-9jSr3LU8.js +58 -0
- package/dist/assets/{StatusSwitcher-BTTEP3yZ-DwSqL8zG.js → StatusSwitcher-B77NoO6o-CLTHQ9CP.js} +2 -2
- package/dist/assets/{SubTabSwitcher-BedfItte-C-XhL99Y.js → SubTabSwitcher-baJGHUgJ-BPKK4q6_.js} +6 -6
- package/dist/assets/{SummaryCard--FoJZECU-DjUF26i-.js → SummaryCard-BvuRZj8f-DCeFdYs2.js} +1 -1
- package/dist/assets/{TaskManagementPage-DchOWpNF-n_asmH-l.js → TaskManagementPage-vG8GXEJA-DX4VWYkl.js} +50 -50
- package/dist/assets/{TimeRangeSwitcher-RLCCDvSp-DYQOEgth.js → TimeRangeSwitcher-CnoZ9Rqp-QTEqL6la.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-DABwUJSm-DPkuAUy9.js → TimeframeSwitcher-W5kHnuHI-B5U_sUAn.js} +4 -4
- package/dist/assets/{TimeframeSwitcherWithToggle-DMblyoo8-ize9yIra.js → TimeframeSwitcherWithToggle-yLA5y4zJ-CFlsdObg.js} +2 -2
- package/dist/assets/{TopExCard-BwOpZFuj-CBPfgwzP.js → TopExCard-oyXmygm8-DV87vjZL.js} +7 -7
- package/dist/assets/{TopExDetailPage-BLaZA-dy-BH7Jcbvo.js → TopExDetailPage-4HMIURzm-ulBg6b5V.js} +19 -19
- package/dist/assets/{TransactionDetailPage-BSDcUBWF-RsUJuQC6.js → TransactionDetailPage-CIw_7B72-CcQHWkUG.js} +55 -55
- package/dist/assets/{TransactionList-CnOj_LA1-DJxHv2ky.js → TransactionList-B9M4ftBY-9Xoftl5l.js} +27 -27
- package/dist/assets/{TransactionListBig-vNVdUmc6-C0TF6R2i.js → TransactionListBig-D5SRFdH7-CUrzZcWs.js} +26 -26
- package/dist/assets/TransactionListPage-DCiIH4ES-DulMTWBW.js +35 -0
- package/dist/assets/TransactionVendorDetailPage-BNY3vBm0-Cw6AkzlK.js +80 -0
- package/dist/assets/{TransferDrawerPage-BMfeqbNy-BPjvRE9M.js → TransferDrawerPage-DdgfrrRM-BBEomNnq.js} +36 -36
- package/dist/assets/{TreasuryOverviewPage-B0vqbfmt-Cncu2g9Z.js → TreasuryOverviewPage-COFbWN48-DSaB6zFu.js} +48 -48
- package/dist/assets/{TreasuryPromoPage-CQDA9os9-W40fA_vr.js → TreasuryPromoPage-EYqV98OG-CvFj_oTJ.js} +22 -22
- package/dist/assets/{TreasurySetupPage-ChKM9npc-DNsYbGBz.js → TreasurySetupPage-DEz3fabz-BopnXkx6.js} +9 -9
- package/dist/assets/TreasuryStatementsPage-JSf4JXXI-CSff_RYi.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-Id6od0WY-D3YHLWYb.js +58 -0
- package/dist/assets/{TreasuryTransferOrReviewPage-wt-8Okdj-CDylzOrV.js → TreasuryTransferOrReviewPage-D25tiep8-CregJCyC.js} +96 -96
- package/dist/assets/TrendChart-xBdkrxjQ-BHwV7FvD.js +16 -0
- package/dist/assets/{TrendWithTransactions-CaExMJVA-C_0n3oh-.js → TrendWithTransactions-CQdqelNB-BxApJhmm.js} +10 -10
- package/dist/assets/{UncategorizedAccountsMappingPage-CEHiflWp-D5pq-zY_.js → UncategorizedAccountsMappingPage-DaSjSoeK-2h_6-Ko4.js} +12 -12
- package/dist/assets/{UnitIntegrationPage-CNZbRdtN-B7b4N3wp.js → UnitIntegrationPage-zM4qGyLV-CinH_PeY.js} +4 -4
- package/dist/assets/UploadAdditionalDocumentOverlay-Y64l7Rho-BebTHNkT.js +38 -0
- package/dist/assets/{Vendor2FAPopup-CqQOI5F6-CXSUTyq5.js → Vendor2FAPopup-DO-eL5Ot-DjhAlKT-.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BwYEhxJe-BB1a4fFU.js → VendorACHDetailsPage-BDROr_dC-CAZxPDsT.js} +1 -1
- package/dist/assets/{VendorDetailPage-C5zTkWhA-Uj3MwLUr.js → VendorDetailPage-B8S-gV53-DaZx1eZP.js} +19 -19
- package/dist/assets/{VendorDomesticWireDetailsPage-DrwX_ukC-DBWePN-A.js → VendorDomesticWireDetailsPage-BrxQuXus-DYcgNh9D.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-C3wjgkez-Dr8QyAeR.js → VendorFiling1099EditablePage-BK-XGzxl-CVlxfcrS.js} +16 -16
- package/dist/assets/{VendorFirstReviewPage-BmRvA38Y-B_gKBGgZ.js → VendorFirstReviewPage-CrSdEY-q-DsAt-Zva.js} +31 -31
- package/dist/assets/{VendorInternationalWireDetailsPage-DtG2HQ0g-WjpK5qgH.js → VendorInternationalWireDetailsPage-DuE2n00d-C0HY8jsi.js} +14 -14
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DLSMDEiO-DSuW-yyD.js → VendorInternationalWireSwiftDetailsPage-_0douojx-uTqjQvZ8.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-5QJEJeCr-ovimcD6K.js → VendorsAccountsSection-C2McA3-C-CAGlOz8b.js} +4 -4
- package/dist/assets/VerifyDevice-BOb4uKLq-B9iw9cGN.js +96 -0
- package/dist/assets/{WarningsDrawerPage-rcWR2KXe-BgEVT8fd.js → WarningsDrawerPage-f9lS8sCp-Yx0s05ZC.js} +11 -11
- package/dist/assets/{ZeniAccountDetailPage-i8C1YB1W-CGdZ9Fyc.js → ZeniAccountDetailPage-BnWDpR9g-BpHh2OhY.js} +27 -27
- package/dist/assets/{ZeniAccountListViewPage-DyHxeqvW-CBT4R7Fd.js → ZeniAccountListViewPage-D9ORn0_O-BQPutSAN.js} +26 -26
- package/dist/assets/ZeniAccountNavBarPieces-4jG3uNmW-B7nBCOPn.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-C5icpLpX-DtIf5jxs.js → ZeniAccountPromoPage-CswETXvx-DfER_hgz.js} +21 -21
- package/dist/assets/ZeniAccountSetupPage-7B6Vgmg6-DsByA6Pf.js +36 -0
- package/dist/assets/{ZeniCopyright-BX1-vpnA-B9MOS9At.js → ZeniCopyright-DrkcGEYL-D8qMh6Rn.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-Bw5S2HTx-CfuKg8UT.js +63 -0
- package/dist/assets/{add-to-wallet-DgdBD8_G-XP_wmSR7.js → add-to-wallet-DgdBD8_G-y8nGTHEa.js} +1 -1
- package/dist/assets/{analyticsHelper-BFpl-Msc.js → analyticsHelper-B46gu6zH.js} +1 -1
- package/dist/assets/{analyticsHelper-B3JHS_Qr-D08xKZsr.js → analyticsHelper-C37dCyKv-Ci3W403B.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-DnzbA_s-.js → arrow-south-east-round-PEovUgvH-D6oVD1ix.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-BA0iOPjL.js → auto-transfer-rule-mbafm5D3-DsDlaCxy.js} +1 -1
- package/dist/assets/{chartTypes-CICM6xJ3-DAE7LSQz.js → chartTypes-Cknnnhq_-BKEap-MQ.js} +1 -1
- package/dist/assets/{commonDimensions-EDu7gcyc-DiuxcTjp.js → commonDimensions-D0ovCC4N-B0G2UdHm.js} +1 -1
- package/dist/assets/{crypto-DPjkCRYF.js → crypto-BDNqpTKX.js} +1 -1
- package/dist/assets/{detailCommon-DAG_rX2o-B0QDOSIy.js → detailCommon-CKa5_aP2-CTgqAfFe.js} +9 -9
- package/dist/assets/{downloadPdf-DCmFpTS--B48gcxsA.js → downloadPdf-BJozh7zE-M2Rp1JlQ.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-Bnh-gm_T.js → gift-box-Cmt9OgIZ-BqWjP_Ex.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-DTLZpyxa.js → graphic-no-data-l-DU4J8fDt-BBc6l6Au.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-W-GGrHSF.js → graphic-no-data-net-burn-l-CzmycA0m-DANomItj.js} +1 -1
- package/dist/assets/handshake-BPg58FML-CVKh3Eii.js +1 -0
- package/dist/assets/index-BAKoUD4u.css +1 -0
- package/dist/assets/{index-D9zAXs3-.js → index-Cnh9fv8f.js} +14551 -6041
- package/dist/assets/{liveblocks-C2xecagE.js → liveblocks-CP09Cz-7.js} +2 -2
- package/dist/assets/{lodash-D52QloPU.js → lodash-BWJmwMit.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-CtvSoL64-CS0Ie6NV.js → mapLoadingInProgressToTreeNode-DttwbPj7-BWaq84fe.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BujdmE12-MD1XTXUW.js → mapSectionWithAcOnlyToTreeNode-CKUACdvT-96C16ahX.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CY5XRFK--DC8NIrxN.js → mapSpacerToTreeNode-CeH4tptC-BD7Zb85P.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DVzQl7Bb-DDS_OBZQ.js → mapTimeframeBalancesToTreeNode-CElz2Cb0-CuxVDYys.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DLd8jhti-Bxl7AnhE.js → mapTimeframeBalancesToTreeNode-TLHaVbTv-OZW2z0IX.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CnZa-P_--DVtFUdDi.js → mapTimeframeHeaderLoadingInProgressToTreeNode-D96sl236-Da50HxFS.js} +1 -1
- package/dist/assets/{mui-Ty75qFQF.js → mui-C42whWwM.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-lMo0MYzU.js → page-detail-CWX5S47F-BBa5wfAm.js} +1 -1
- package/dist/assets/{play-icon-KtJH-UgF-Bm3lFkFZ.js → play-icon-XWt7iQeF-7dWJ4Dkg.js} +3 -3
- package/dist/assets/{radio-default-CiSgisfh-Cuu8ymvq.js → radio-default-CiSgisfh-Z5w0WcFM.js} +1 -1
- package/dist/assets/{redux-CEhZD0hA.js → redux-2gfZRks6.js} +1 -1
- package/dist/assets/{routing-lj7oVq6C.js → routing-VwiwPky5.js} +1 -1
- package/dist/assets/{sentry-BE5FTzpq.js → sentry-osuhWjvS.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-CDkNAu2o.js → shield-DOlUxcFf-bFVWRY1X.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-B0F8-Lgv-mwB6oBaM.js → toCOABalancesWithID-DACfD5ZE-BgoTIDec.js} +1 -1
- package/dist/assets/{toChartData-D_8GUwpP-CFofR1sw.js → toChartData-C6ap15NT-ByCawuJX.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-CGEA36Na.js → transaction-placeholder-CpOwZAMG-DYG2_sCF.js} +1 -1
- package/dist/assets/{treasuryColorHelper-C2d7wCjK-BWDQfCvz.js → treasuryColorHelper-DmVCoHv9-Cx3TVoRp.js} +1 -1
- package/dist/assets/{uploadAttachment-CxwBrcm3-DDVTRYQ0.js → uploadAttachment-D1XtO8---B9AANbCr.js} +18 -18
- package/dist/assets/{uploadReceipts-DIYsXeyf-_3VvjCR-.js → uploadReceipts-Cl7e8jci-C-56lzXC.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-B0RUPzZV.js → useLongPress-GCK2COYQ-BoJXFS3o.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-ZlUrfnG1.js → usp-line-BBd1wKwW-u-VMxix8.js} +1 -1
- package/dist/assets/{vendor-Bs1fkIUX.js → vendor-rkTZJa59.js} +1 -1
- package/dist/assets/{verification-CW6uEyev-CQXAdM_w.js → verification-CW6uEyev-BVrJsi0i.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/ACHDetailsPage-TewccRkX-DetITKOl.js +0 -21
- package/dist/assets/AccountInfoPage-CuytgM09-DMWlq-IF.js +0 -18
- package/dist/assets/ApAgingDetailPage-CtXSUVGC-DdWwytoq.js +0 -46
- package/dist/assets/AppBasePage-D6MgS-da-2jH4Fzgr.js +0 -70
- package/dist/assets/ApprovalRulesSettingsPage-BwnaDPqA-BMHJ2n3v.js +0 -47
- package/dist/assets/ArAgingChart-BvG_iPlt-BYubF9ZD.js +0 -24
- package/dist/assets/ArAgingDetailPage-Sm4672LS-o1itnQt5.js +0 -46
- package/dist/assets/AuditReportDrawerPage-CaFo0k9s-NaTvWx96.js +0 -369
- package/dist/assets/BillPaySetUpPage-CTNtHQBM-CpoUfnMM.js +0 -42
- package/dist/assets/BillingSettingsPage-CR0doM6R-DRs8JS8S.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-B0ebreRX-D7v6qOnU.js +0 -1
- package/dist/assets/BusinessVerificationPage-B6lyqGIK-BfLlNZ0a.js +0 -140
- package/dist/assets/BusyIndication-_H8LL7GJ-BjR55KdD.js +0 -9
- package/dist/assets/ChargeCardListPage-_YORyJOy-uqdfjUZk.js +0 -355
- package/dist/assets/ChargeCardPromoPage-DO2UJyXm-Dwx7STGG.js +0 -222
- package/dist/assets/ChargeCardSetupPage-De5jDB3D-CMdmpmLu.js +0 -36
- package/dist/assets/ChargeCardUtils-DYpmF85C-qBaPG14m.js +0 -1
- package/dist/assets/CheckDepositDrawerPage-Dj2do0Un-DCNBKUNr.js +0 -206
- package/dist/assets/CompleteProfile-B_dl9xEx-DFZ3KU15.js +0 -52
- package/dist/assets/ConfettiBurst-ChCmpiHq-BBDSx_jo.js +0 -1
- package/dist/assets/ControlledCheckBoxField-BIqM2o6X-Ml88Uf7U.js +0 -74
- package/dist/assets/CustomerOnboardingContainerPage-Ciaw11Nw-O_DtjvXM.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-CdOEZjmC-HqvGWI7K.js +0 -66
- package/dist/assets/DashboardSidebarBackgroundAnimation-CblfOXOJ-B4cbMZpc.js +0 -12
- package/dist/assets/DepositAccTransactionListPage-2kpIHXLb-j8eQ9Syw.js +0 -66
- package/dist/assets/EditPeoplePage-CwhUp4W2-CnFSjC3L.js +0 -55
- package/dist/assets/EmptySearchResults-CB9-FwYT-DCczU5qh.js +0 -46
- package/dist/assets/ExpenseAutomationOverviewPage-CKokJTC4-C9VvWXen.js +0 -222
- package/dist/assets/FeaturePreviewPage-D90G_5Q8-CnQvTfz2.js +0 -11
- package/dist/assets/Header-DLZFUQF8-BI2bQ6MH.js +0 -226
- package/dist/assets/HealthListRow-iF093_lw-DegqmjBi.js +0 -210
- package/dist/assets/HealthMonitorDetailDrawer-BJRgJJOH-BzVkHFE6.js +0 -401
- package/dist/assets/HealthMonitorPage-BT0gIPV6-BAgQvawR.js +0 -108
- package/dist/assets/InsightsSection-DxpsNIIy-D73VhmA2.js +0 -27
- package/dist/assets/IntegrationsSettingsPage-DEOHHrS4-xD8BgFGo.js +0 -57
- package/dist/assets/InviteFormPage-CU5_JoYd-DtlUlrhp.js +0 -312
- package/dist/assets/InvitePeoplePage-Btu9ayOz-bG-WZTzF.js +0 -12
- package/dist/assets/LabeledAddressValue-tO6Kg-ki-DIZXgDEF.js +0 -49
- package/dist/assets/LabeledAddressValueField-CkveEJJG-BEvwzrCB.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-B50HdRDc-BPCXXpG-.js +0 -16
- package/dist/assets/LabeledDocumentField-B8uyJA2N-B3iZ1bpr.js +0 -41
- package/dist/assets/LabeledEmailInputField-D5OBo0RU-Cn7DEiyr.js +0 -182
- package/dist/assets/LabeledGroupedCheckBoxField-DLSgfRui-CIvqEp4U.js +0 -82
- package/dist/assets/LabeledItemWithButton-CNlRAl-1-D8RdmCNz.js +0 -21
- package/dist/assets/LabeledNameField-B73hOD1K-DrzOl55q.js +0 -141
- package/dist/assets/LabeledSingleSelectField-nPVDbcr0-DXhzL0iF.js +0 -136
- package/dist/assets/LabeledSingleSelectWithoutClearableField-DgT7faZC-Or3zfyeO.js +0 -38
- package/dist/assets/LinkJETransactionPage-ChyKb7xl-LR_CFAXE.js +0 -98
- package/dist/assets/Loader-Cqmoylhp-CKPikayq.js +0 -32
- package/dist/assets/MagicLinkSuccessPage-7bTkYgEa-CPPkAGGs.js +0 -31
- package/dist/assets/MagicLinkTitleSection-BlxCsth7-BHITpmKu.js +0 -17
- package/dist/assets/ManagementPage-D5egEDwP-uTkBBFJq.js +0 -556
- package/dist/assets/MatchingOperatorDropdown-C5zSNKmV-DBpzsPUC.js +0 -130
- package/dist/assets/MonthEndEmailDrawerCustomerRequestPage-CK7yjkYx-Dj2GK4HO.js +0 -39
- package/dist/assets/MonthEndReportHistoricDataPage-BuRBd_9k-DDKlEI2q.js +0 -124
- package/dist/assets/MonthEndReportPage-DOTCU96W-VybM2w9h.js +0 -28
- package/dist/assets/MoreMenuButton-Cj6SIPVt-CYCCFBqM.js +0 -134
- package/dist/assets/MyPendingActivationChargeCardListPage-BFe1hoDt-CfBCldAO.js +0 -6
- package/dist/assets/MyProfileSettingsPage-B7zND-Ux-BN19QlhA.js +0 -85
- package/dist/assets/NavBar-BjyxKUvF-gwYjTp7H.js +0 -189
- package/dist/assets/NavHeader-9VET6uub-DBlTa1KF.js +0 -236
- package/dist/assets/NotificationsListConfig-CyQxEQ13-D7e4Z7fR.js +0 -1
- package/dist/assets/OnboardingCustomerPage-jmb-3M9K-C-4WzmwX.js +0 -476
- package/dist/assets/OnboardingPage-LCaIErMj-Bhag4ahh.js +0 -408
- package/dist/assets/PandLWithForecastPage-3h8Q4kZg-CZgSqzQW.js +0 -107
- package/dist/assets/PortfolioPage-BfNGByGB-ea6OEgaP.js +0 -237
- package/dist/assets/QBOSetupSection-D-Q_DVva-q5JlqA-2.js +0 -79
- package/dist/assets/ReimbursementSetUpPage-5OtsfDPV-DQz8dNtG.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-BX722SXa-YTQZVgWe.js +0 -1
- package/dist/assets/ReloadContainer-BRXUxBxu-BAp5l7-f.js +0 -13
- package/dist/assets/ReloadContainer-fx3kImdJ-D2lKf-Yd.js +0 -17
- package/dist/assets/ReportTableViewSelector-W7zYmKIW-BpJdvlc6.js +0 -150
- package/dist/assets/ReviewOverlay-Bz1kr6zu-Dw4JE5ud.js +0 -152
- package/dist/assets/ReviewPage-Cel3qzEQ-DiaZxW5f.js +0 -306
- package/dist/assets/RoleWithToolTip-CUogd8qi-BfjjZiS9.js +0 -22
- package/dist/assets/SetUpAccountSection-2UGQI7fx-D_tNKXyG.js +0 -378
- package/dist/assets/SignIn-BF4ojxcy-ignSyaGW.js +0 -408
- package/dist/assets/SignInScreen-DjQXT0cG.js +0 -1
- package/dist/assets/SpendManagementListViewPage-DbfQ_jzA-sW1BTRjR.js +0 -123
- package/dist/assets/StatementItem-DgZtQdC5-CijP321B.js +0 -31
- package/dist/assets/StatementsPage-Az4ZzxA6-CY7Q-Hv-.js +0 -58
- package/dist/assets/StatusTag-MQXQGj2--SPp-Hljk.js +0 -38
- package/dist/assets/SubscriptionAddPlanPage-Bn4CUx_v-BcoEoxy8.js +0 -59
- package/dist/assets/SubscriptionDetailPage-BZDJEjR1-DavSO9K8.js +0 -216
- package/dist/assets/SubscriptionPage-Tpj1RZco-CfI0x1AO.js +0 -282
- package/dist/assets/SubscriptionSnackBar-CwdSE1Xz-BYx3vQ0D.js +0 -57
- package/dist/assets/SubscriptionSummaryPage-Dep_cm58-D3JscAEe.js +0 -176
- package/dist/assets/SubscriptionUpdatePlanPage-5_wWKxme-CSTH4683.js +0 -408
- package/dist/assets/SuccessAnimation-BtFsm6Oj-BU_bae75.js +0 -13
- package/dist/assets/TaskDetailPage-aleDjLBo-DJGRUSEM.js +0 -775
- package/dist/assets/TaskListRow-xLyzXOYn-CLZGelcY.js +0 -403
- package/dist/assets/TaskManagerPage-Dye8P0ua-jLCJwLcT.js +0 -176
- package/dist/assets/TextHighlightSection-Y0L_w9RR-D8_NKTqM.js +0 -584
- package/dist/assets/TransactionListPage-CrUtG598-DR2tdFwA.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-DjuFdK9S-Bn1DMv6P.js +0 -80
- package/dist/assets/TreasuryStatementsPage-C0oRa1nh-BiT4V4PF.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-BuGFH3YF-BkeOYDmd.js +0 -58
- package/dist/assets/TrendChart-a95Aii8O-Crc1NrOm.js +0 -16
- package/dist/assets/UploadAdditionalDocumentOverlay-Bxc2MMx0-Cpl1vzGP.js +0 -38
- package/dist/assets/UserMultiSelectField-UsIy6n-8-DdaF7B7O.js +0 -154
- package/dist/assets/UserWithTimestamp-i09mOCAu-Cw5lsbIN.js +0 -38
- package/dist/assets/VerifyDevice-DBnFzHim-C-LQbPfS.js +0 -67
- package/dist/assets/ZeniAccountNavBarPieces-CsSdfTKg-5k_P9-6W.js +0 -14
- package/dist/assets/ZeniAccountSetupPage-BXHIQxgf-DcysatW3.js +0 -36
- package/dist/assets/ZeniAvatar-Cendj_Bv-Dp3oXY0H.js +0 -13
- package/dist/assets/ZeniDatePicker-El_phkQ0-z80YcUbm.js +0 -187
- package/dist/assets/ZeniDatePickerField-3DaqcxMB-QK1YG1pI.js +0 -1
- package/dist/assets/ZeniTransferAmountSlider-CxxqQPB_-BqeHyBds.js +0 -63
- package/dist/assets/add-C0nqJFLa-C2eApjPK.js +0 -1
- package/dist/assets/avatar-Dz7aEm3d-D64JGSQG.js +0 -1
- package/dist/assets/calculateSize-BUfcd-gF-DqmEdKsX.js +0 -1
- package/dist/assets/clock-CJkylEKt-CJ3FIZ_o.js +0 -1
- package/dist/assets/cockpitConstants-CT7OARAT-C430UcjZ.js +0 -1
- package/dist/assets/cockpitHelpers-CSVzBgeI-BARdDEyf.js +0 -1
- package/dist/assets/cockpitHelpers-Y5_CbmvR-BhJ5C_6h.js +0 -1
- package/dist/assets/common-CU4uS1La-DdHnWUCD.js +0 -1
- package/dist/assets/dollar-round-D18u7nlm-CXc5TAek.js +0 -1
- package/dist/assets/double-tick-D6s_OvsM-DFvZDijg.js +0 -1
- package/dist/assets/filter-cZIFUNvj-B9dfJXS9.js +0 -1
- package/dist/assets/getCockpitColor-YYDF6h1T-D0_aeMEA.js +0 -1
- package/dist/assets/groupHelper-CTA_J_U7-CPJTcSSg.js +0 -1
- package/dist/assets/hyperlink-DQyCeXx2-ChMvASRu.js +0 -1
- package/dist/assets/index-DVThwdcI.css +0 -1
- package/dist/assets/intuit-quick-books-logo-qyL3_3cm-Cj0LgD2I.js +0 -1
- package/dist/assets/loader-BwDk7JSW-DoE-nOgh.js +0 -1
- package/dist/assets/money-2cg1MuG4-BaDu1jFd.js +0 -1
- package/dist/assets/note-DCtChU1T-DArfpxk4.js +0 -1
- package/dist/assets/page-summary-D7_VQHwN-DEY33DNc.js +0 -1
- package/dist/assets/sectionColor-euXcOIkp-Cmmp8esL.js +0 -1
- package/dist/assets/tick-round-CPC394H5-C8roQJBa.js +0 -1
- package/dist/assets/undo-b_3XZ5CX-Xpx_MAU7.js +0 -1
- package/dist/assets/zeniDatePicker.helpers-Bv0wGqkO-0jS7nOtw.js +0 -1
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import{u as Q,e as ie,bI as me,a as fe,j as o,p as ge,M as X,bJ as ee,F as xe,C as P,a4 as be,o as n,bK as ye,bL as _e,bM as we,bN as $e,bO as ve,B as ce,bP as Ce,q as p,d as ke,E as K,aZ as je,a8 as Ne,n as Se,b1 as Ie}from"./index-Cnh9fv8f.js";import{b as f,f as de,n as d}from"./vendor-rkTZJa59.js";import{W as O,R as Pe}from"./CollapsableReportTable-ULd7PQST-DRS_mwem.js";const z=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Oe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;function Be(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(z):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Oe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Be(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=_e(h.headers,t.defaultFileName),y=await h.arrayBuffer();we(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Fe=d.div`
|
|
2
|
+
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
|
+
background: ${e=>e.theme.colors.grey5};
|
|
5
|
+
border-radius: ${n.sp1};
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
align-items: center;
|
|
9
|
+
position: relative;
|
|
10
|
+
height: ${n.sp8};
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
`,Ee=d(Se)`
|
|
13
|
+
color: ${e=>e.theme.colors.primary};
|
|
14
|
+
margin-top: -2px;
|
|
15
|
+
`,Le=d(Ie)`
|
|
16
|
+
color: ${e=>e.theme.colors.hero};
|
|
17
|
+
width: 12px;
|
|
18
|
+
height: 12px;
|
|
19
|
+
margin: auto ${n.sp0};
|
|
20
|
+
:hover {
|
|
21
|
+
color: ${e=>e.theme.colors.primary};
|
|
22
|
+
}
|
|
23
|
+
`,Ae=e=>{const{value:c,onClick:a}=e,t=Q();return o.jsxs(Fe,{onClick:a,children:[o.jsx(Ee,{style:{color:t.colors.primary},children:c}),o.jsx(Le,{})]})},Te=de.memo(Ae);function Me({backgroundColor:e,foregroundColor:c,animated:a,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:a!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:p[3],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:p[8],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:p[4]})]})}function he({nestedClass:e,isLastNode:c,config:a,parentNodeIDs:t}){const r=O("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:r,isLastNode:c,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((b,y)=>he({nestedClass:b,config:a,isLastNode:y===e.children.length-1,parentNodeIDs:[...t,r]})),h}function We(e,c){const a=e.map((t,r)=>{const h=O("checkbox_and_name_only",[],t.classId[0]),b={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:c}},y=t.children.map(D=>he({nestedClass:D,config:c,isLastNode:r===t.children.length-1,parentNodeIDs:[h]}));return b.children.push(...y),b});return{config:c,headerNodes:[],contentNodes:[...a]}}function Re(e,c){Object.assign(e.config,c);const a=e.contentNodes;return a.forEach(t=>ue(t,c)),{config:c,headerNodes:[],contentNodes:[...a]}}function ue(e,c){Object.assign(e.reportElementData.config,c),e.children.forEach(a=>ue(a,c))}const oe={contentPaddingLeft:new P(p[3],p[3],p[2]),contentPaddingRight:new P(p[3],p[3],p[2])},ze=d.div`
|
|
24
|
+
height: ${e=>e.height}px;
|
|
25
|
+
width: 100%;
|
|
26
|
+
`,He=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:U,onToggleCheck:B})=>{const H=Q(),Y=ie(),[$,j]=f.useState(void 0),[T,_]=f.useState(!1),[M,F]=f.useState({}),[g,W]=f.useState(void 0),[E,v]=f.useState(r),G="none",L=i=>r==="account_group"?!0:t?.length>0?t.find(l=>l[0]===i[0])!=null:!1,N=(i,l)=>{_(!0),F(i),B?.(i,l,r==="account_group"?!0:void 0),w(i,l)},w=(i,l)=>{const m=V(i);for(const C of m.children)B?.(C.classId,l),w(C.classId,l)},V=i=>{let l=a.filter(m=>m.classId[0]===i[i.length-1])[0];for(let m=i.length-2;m>=0;m--)l=l.children.filter(C=>C.classId[0]===i[m])[0];return l},q=i=>{if(i.length>1){const l=V(i.slice(1));let m=!1;for(const C of l.children)if(t.find(s=>s[0]===C.classId[0])===void 0){m=!0;break}m===!0?B?.(l.classId,!0):B?.(l.classId,!1),F(l.classId)}};f.useEffect(()=>{T&&q(M)}),f.useEffect(()=>{const i={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:G,firstMonthOfFY:c,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:L,showClassAccountNumber:h};if($==null||!K(g,a)||!K(E,r)||T===!0){const l=We(a,i);W(a),j(l),v(r)}else{const l=Re($,i);j(l),v(r)}},[a,r,t]);const[J,Z]=f.useState(5),A=i=>{const l=i+p[6];Z(l)};return $!=null?o.jsx(ze,{height:J,children:o.jsx(Pe,{backgroundColor:r==="classes"?new Ne(H.colors.background):void 0,rootNodes:$,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:oe.contentPaddingLeft.value(Y),right:oe.contentPaddingRight.value(Y)},scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:U,onToggleCheck:N,onReportTableHeightChanged:A})}):null},k={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(p[5],p[5]),containerWidth:new P(150,400,400)},Ye=d.div`
|
|
27
|
+
position: relative;
|
|
28
|
+
pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
|
|
29
|
+
`,Ge=d.div`
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
width: ${e=>k.containerWidth.valuePx(e.windowSize)};
|
|
33
|
+
`,Ve=d($e)`
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
width: fit-content;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
color: ${e=>e.theme.colors.primary};
|
|
39
|
+
.dropdownIcon {
|
|
40
|
+
color: ${e=>e.theme.colors.hero};
|
|
41
|
+
}
|
|
42
|
+
&:hover {
|
|
43
|
+
.dropdownIcon {
|
|
44
|
+
color: ${e=>e.theme.colors.primary};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
gap: ${n.sp2};
|
|
48
|
+
margin-top: 12px;
|
|
49
|
+
align-items: center;
|
|
50
|
+
`,qe=d(ve)`
|
|
51
|
+
color: ${e=>e.theme.colors.hero};
|
|
52
|
+
width: ${n.sp4};
|
|
53
|
+
height: ${n.sp4};
|
|
54
|
+
&:hover {
|
|
55
|
+
color: ${e=>e.theme.colors.primary};
|
|
56
|
+
}
|
|
57
|
+
`,Je=d.div`
|
|
58
|
+
display: flex;
|
|
59
|
+
width: ${e=>e.width}px;
|
|
60
|
+
align-items: flex-start;
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
border: 1px solid ${e=>e.theme.colors.grey5};
|
|
64
|
+
border-radius: ${n.sp1};
|
|
65
|
+
box-shadow: ${e=>`${n.sp0} 2px ${n.sp2} ${e.theme.colors.dropShadowHover}`};
|
|
66
|
+
margin-top: 10px;
|
|
67
|
+
padding-top: ${n.sp1};
|
|
68
|
+
background: ${e=>e.theme.colors.grey5};
|
|
69
|
+
`,te=d.div`
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: flex-start;
|
|
72
|
+
justify-content: space-between;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
width: 100%;
|
|
75
|
+
background-color: ${e=>e.checked===!0?e.theme.colors.background:"transparent"};
|
|
76
|
+
& input[type="radio"] {
|
|
77
|
+
-webkit-appearance: none;
|
|
78
|
+
-moz-appearance: none;
|
|
79
|
+
appearance: none;
|
|
80
|
+
display: inline-block;
|
|
81
|
+
width: ${n.sp3};
|
|
82
|
+
height: ${n.sp3};
|
|
83
|
+
padding: 2px;
|
|
84
|
+
background-clip: content-box;
|
|
85
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
margin: ${n.sp0} ${n.sp2} ${n.sp0} ${n.sp2};
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
input[type="radio"]:checked {
|
|
92
|
+
background-color: ${e=>e.theme.colors.primary};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
input[type="radio"]:disabled {
|
|
96
|
+
cursor: default;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:hover {
|
|
100
|
+
background: ${e=>e.theme.colors.background};
|
|
101
|
+
}
|
|
102
|
+
`,se=d(ke)`
|
|
103
|
+
height: ${n.sp6};
|
|
104
|
+
display: flex;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
align-items: center;
|
|
107
|
+
`,Ue=d.div`
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-wrap: wrap;
|
|
110
|
+
justify-content: flex-start;
|
|
111
|
+
height: 100%;
|
|
112
|
+
width: inherit;
|
|
113
|
+
overflow-y: auto;
|
|
114
|
+
.hide-icon {
|
|
115
|
+
display: none;
|
|
116
|
+
}
|
|
117
|
+
min-height: 165px;
|
|
118
|
+
max-height: 353px;
|
|
119
|
+
overscroll-behavior: contain;
|
|
120
|
+
`,Ze=d.div`
|
|
121
|
+
width: 100%;
|
|
122
|
+
height: 65px;
|
|
123
|
+
`,ae=d.label`
|
|
124
|
+
color: ${e=>e.theme.colors.primary};
|
|
125
|
+
cursor: ${e=>e.disabled===!0?"default":"pointer"};
|
|
126
|
+
`,Ke=d(ce)`
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
column-gap: ${n.sp2};
|
|
130
|
+
margin-left: ${n.sp5};
|
|
131
|
+
color: ${e=>e.theme.colors.hero};
|
|
132
|
+
&:hover {
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
color: ${e=>e.theme.colors.primary};
|
|
135
|
+
}
|
|
136
|
+
`,Qe=d.div`
|
|
137
|
+
display: flex;
|
|
138
|
+
flex: 1;
|
|
139
|
+
width: inherit;
|
|
140
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
141
|
+
min-height: 1px;
|
|
142
|
+
max-height: 1px;
|
|
143
|
+
`,Xe=d(Ce)`
|
|
144
|
+
width: ${n.sp3};
|
|
145
|
+
height: ${n.sp3};
|
|
146
|
+
`,eo=d(ce)`
|
|
147
|
+
margin-left: ${n.sp5};
|
|
148
|
+
margin-top: -12px;
|
|
149
|
+
color: ${e=>e.theme.colors.hero};
|
|
150
|
+
`,{reportViewSelector:I,common:{footer:ne}}=X.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function ro({reportId:e,firstMonthOfFY:c,nodes:a,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:b,onOpenAccountViewMode:y,onSaveClick:D,isClassViewDisabled:U,downloadPage:B,showAccountGroups:H=!0,onResyncReports:Y,isPageFetchInProgress:$=!1,lastRefreshSuccessTime:j}){const T=Q(),_=ie(),[M,F]=f.useState(!1),[g,W]=f.useState(r),[E,v]=f.useState({}),G=(s,u)=>(s.forEach(x=>{u.push(x.classId),u=G(x.children,u)}),u),L=G(a,[]),[N,w]=f.useState(g==="classes"?h:L),V=t!=="Completed"||g==="classes"&&N.length===L.length;me({componentName:`reports.${e}`});const q=s=>s==="classes"?I.classes.label:H===!0?I.accountGroups.label:I.accounts.label,J=fe({mode:"all"}),Z=J.handleSubmit(()=>{F(!1),g==="classes"?D?.("classes",N):D?.("account_group")}),A=s=>{if(W(s),s==="classes")v({}),w([]);else{w(L);let u={};a.forEach(x=>{const S=O("checkbox_and_name_only",[],x.classId[0]);u=Object.assign({},u,{[S]:!1})}),v(u)}},i=()=>{M===!0&&m(),F(!M);let s={};a.forEach(u=>{const x=O("checkbox_and_name_only",[],u.classId[0]);r==="account_group"||N.find(S=>S[0]===u.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),v(s)},l=(s,u,x)=>{if(x===!0&&(W("classes"),w(L)),u===!0){const S=O("checkbox_and_name_only",[],s[0]);E[S]=!0,v(E),w(R=>R.filter(pe=>pe[0]!==s[0]))}else{const S=O("checkbox_and_name_only",[],s[0]);E[S]=!1,N.find(R=>R[0]===s[0])===void 0&&w(R=>[...R,s])}},m=()=>{F(!1),W(r),w(h)},C=()=>{$===!1&&Y?.()};return f.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};a.forEach(u=>{const x=O("checkbox_and_name_only",[],u.classId[0]);s=Object.assign({},s,{[x]:!1})}),v(s)}},[t]),o.jsx(ge,{onClickAway:m,children:o.jsxs(Ye,{isDisabled:U??!1,children:[B===!0?o.jsx(Te,{value:q(r),onClick:()=>{y?.(),i()}}):o.jsxs(Ge,{windowSize:_,children:[o.jsxs(Ve,{onClick:s=>{s.preventDefault(),y?.(),i()},children:[o.jsx(qe,{className:"dropdownIcon"}),q(r)]}),r==="classes"?o.jsx(Ke,{onClick:C,children:$?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${ee(j)}`,o.jsx(Xe,{})]})}):null]}),M?o.jsx(xe,{...J,children:o.jsx("form",{id:le(re),onSubmit:Z,children:o.jsxs(Je,{width:k.width.value(_),children:[o.jsx(te,{checked:g==="account_group",children:o.jsxs(se,{onClick:()=>g!=="account_group"?A("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>A(s.currentTarget.value),checked:g==="account_group",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:H===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(Qe,{}),o.jsxs(te,{checked:g==="classes",children:[o.jsxs(se,{onClick:()=>t==="Completed"?A("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?A(s.currentTarget.value):null,checked:g==="classes",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),$||t!=="Completed"?null:o.jsx(eo,{children:j&&`${ee(j)}`}),t==="Completed"?o.jsx(Ue,{id:"sectionformcontainer",children:o.jsx(oo,{reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:N,selectedView:g,nodeOpenStatus:E,showClassAccountNumber:b,onToggleCheck:l})}):o.jsx(Me,{backgroundColor:T.colors.grey3,foregroundColor:T.colors.grey4,width:k.width.value(_),height:k.height.value(_),animated:!0})]}),o.jsx(Ze,{children:o.jsx(be,{formId:le(re),primaryBtn:{label:ne.save,style:{width:k.buttonWidth.valuePx(_),height:k.buttonHeight.valuePx(_)},isLoading:!1,isDisabled:V,size:"small"},showCancel:!0,cancelBtn:{label:ne.cancel,style:{width:k.buttonWidth.valuePx(_),height:k.buttonHeight.valuePx(_)},onClick:m,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const oo=de.memo(He,K);export{no as c,ro as h};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{K as U,u as G,F as y,z as he,l as _,j as r,Z as k,bf as fe,aY as me,aW as ge,x as v,o as C,a6 as _e,i as be,bg as Se,n as w,H as B,I as K,bh as we,a8 as Ce,aD as ye,a$ as xe}from"./index-D9zAXs3-.js";import{b as P,w as Q,n as b}from"./vendor-Bs1fkIUX.js";import{m as z,l as Z}from"./analyticsHelper-B3JHS_Qr-D08xKZsr.js";import{u as Oe}from"./ReportTableViewSelector-W7zYmKIW-BpJdvlc6.js";import{a as X,p as Re}from"./TimeRangeSwitcher-RLCCDvSp-DYQOEgth.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-DMblyoo8-ize9yIra.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-CVCKyDWO-CyzPCm3f.js";import{T as ve,I as F,x as ee}from"./CollapsableReportTable-CDe76ha7-3Q7qsS_e.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-BujdmE12-MD1XTXUW.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-DLd8jhti-Bxl7AnhE.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CnZa-P_--DVtFUdDi.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-CtvSoL64-CS0Ie6NV.js";import"./mui-Ty75qFQF.js";import"./analytics-CBL_L82S.js";import"./routing-lj7oVq6C.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-C2xecagE.js";import"./crypto-DPjkCRYF.js";import"./filter-cZIFUNvj-B9dfJXS9.js";import"./TimeframeSwitcher-DABwUJSm-DPkuAUy9.js";import"./page-detail-CWX5S47F-lMo0MYzU.js";import"./page-summary-D7_VQHwN-DEY33DNc.js";import"./AccountRow-COaolUm5-Bsrm5YYV.js";import"./clock-CJkylEKt-CJ3FIZ_o.js";import"./Loader-Cqmoylhp-CKPikayq.js";import"./sectionColor-euXcOIkp-Cmmp8esL.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Le({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
1
|
+
import{e as U,u as G,M as y,Y as he,l as _,j as r,_ as k,bf as fe,aY as me,aW as ge,C as v,o as C,a6 as _e,m as be,bg as Se,q as w,D as B,E as Q,bh as we,a8 as Ce,aD as ye,a$ as xe}from"./index-Cnh9fv8f.js";import{b as P,f as X,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as Z}from"./analyticsHelper-C37dCyKv-Ci3W403B.js";import{h as Oe}from"./ReportTableViewSelector-CkZW5TtX-I9C4FHDc.js";import{a as K,p as Re}from"./TimeRangeSwitcher-CnoZ9Rqp-QTEqL6la.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-yLA5y4zJ-CFlsdObg.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-CsX54puJ-DeWJ_bTZ.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-ULd7PQST-DRS_mwem.js";import{T as te,I as se,L as j,D as Le,g as ne}from"./mapSectionWithAcOnlyToTreeNode-CKUACdvT-96C16ahX.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-TLHaVbTv-OZW2z0IX.js";import{d as Te,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D96sl236-Da50HxFS.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-DttwbPj7-BWaq84fe.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-W5kHnuHI-B5U_sUAn.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-D01C0A0f-QA2NRq7R.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Te({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Le({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${C.sp2};
|
|
5
5
|
background-color: ${e=>e.theme.colors.grey4};
|
|
6
|
-
`;function De({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=U(),s=G(),[c,x]=P.useState(void 0),[O,E]=P.useState(void 0),
|
|
6
|
+
`;function De({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=U(),s=G(),[c,x]=P.useState(void 0),[O,E]=P.useState(void 0),L=!(h==="small"||h==="medium-compact"),V="name+balances_actual",$=u===!0?"this_period_vs_period_before":"none",R=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const f=e;m=(f.sections.expenses.balances.length>0?f.sections.expenses:f.sections.income).additionalBalances.map(D=>_.toTimeframeTick(D));break}case"profit_and_loss_by_classes":{const f=e,D=(f.sections.expenses?.balances?.length??0)>0?f.sections.expenses:null,pe=(f.sections.income?.balances?.length??0)>0?f.sections.income:null,H=D??pe;H?.additionalBalances!=null&&(m=H.additionalBalances.map(ue=>_.toTimeframeTick(ue)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>_.toTimeframeTick(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>_.toTimeframeTick(f));break}}return m.length>0&&m.find(f=>f.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};P.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:$,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:xe(),showClassAccountNumber:n};if(c==null||!Q(O,e)||g===!0){const f=ze(e,m,L,g);E(e),x(f)}else{const f=Ne(c,m,e,L);x(f)}},[u,e,g]);const[A,N]=P.useState(5),M=m=>{const f=m+135;N(f)},de=m=>m?.trackPageLoaded(We(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(we,{analytics:a,onLoad:de}),r.jsx(Ve,{height:A,children:r.jsx(ve,{backgroundColor:new Ce(s.colors.grey4),rootNodes:c,type:V,compareMode:R(),isSticky:{isStickyHeader:L,isStickyName:L},treeNodePadding:{left:q.contentPaddingLeft.value(h),right:q.contentPaddingRight.value(h)},onAccountClick:p==null?void 0:(m,f)=>{p(m,f)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,f)=>i?.(e.reportId,m,f),onReportTableHeightChanged:M,onScroll:m=>l?.(e.reportId,m)})})]}):null}const ze=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return Ee(e,t,o);case"profit_and_loss_by_classes":return je(e,t,o,a);case"cash_flow":return $e(e,t,o);case"balance_sheet":return Me(e,t,o);default:return}},We=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return B.Event.profitAndLoss;case"cash_flow":return B.Event.cashFlow;case"balance_sheet":return B.Event.balanceSheet;default:return B.Event.reports}},Ue=b.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
@@ -49,7 +49,7 @@ import{K as U,u as G,F as y,z as he,l as _,j as r,Z as k,bf as fe,aY as me,aW as
|
|
|
49
49
|
width: 160px;
|
|
50
50
|
left: 63%;
|
|
51
51
|
}
|
|
52
|
-
`;function Ze({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[n];default:return console.warn("Unsupported report"),""}};return r.jsx(Ye,{"data-testid":k("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function qe({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=n=>{o?.(n)};return r.jsx(Ue,{"data-testid":k("report-switcher-container"),children:r.jsx(Ge,{"data-testid":k("report-switcher-content"),children:e.map(n=>n!=="profit_and_loss_by_classes"&&r.jsxs("div",{children:[r.jsx(Ze,{reportId:n,isSelected:t===n,onClick:a}),r.jsx(He,{className:`Slider ${t}`})]},`reportSegment-${n}`))})})}const I={contentContainerLeftRightMargin:new v(w[3],w[3],w[8]),contentRightPadding:new v(w[3],w[3],w[8]),tickSkelectionContainerWidth:new v(343,600,905,1240)},Je=new v(4,4),
|
|
52
|
+
`;function Ze({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[n];default:return console.warn("Unsupported report"),""}};return r.jsx(Ye,{"data-testid":k("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function qe({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=n=>{o?.(n)};return r.jsx(Ue,{"data-testid":k("report-switcher-container"),children:r.jsx(Ge,{"data-testid":k("report-switcher-content"),children:e.map(n=>n!=="profit_and_loss_by_classes"&&r.jsxs("div",{children:[r.jsx(Ze,{reportId:n,isSelected:t===n,onClick:a}),r.jsx(He,{className:`Slider ${t}`})]},`reportSegment-${n}`))})})}const I={contentContainerLeftRightMargin:new v(w[3],w[3],w[8]),contentRightPadding:new v(w[3],w[3],w[8]),tickSkelectionContainerWidth:new v(343,600,905,1240)},Je=new v(4,4),Qe=new v(4,4),Xe={selectedNumberOfPeriods:(e,t)=>e?Qe.value(t):Je.value(t)},Ke=b.div`
|
|
53
53
|
display: flex;
|
|
54
54
|
flex: 1 1 auto;
|
|
55
55
|
min-height: 100%;
|
|
@@ -98,7 +98,7 @@ import{K as U,u as G,F as y,z as he,l as _,j as r,Z as k,bf as fe,aY as me,aW as
|
|
|
98
98
|
`,at=b(_e)`
|
|
99
99
|
margin-top: ${C.sp3};
|
|
100
100
|
color: ${e=>e.theme.colors.hero};
|
|
101
|
-
`,re=({style:e,isLoading:t})=>t?r.jsx(tt,{style:e,children:r.jsx(be,{size:"ExtraLarge",start:!0})}):null,S=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},W=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=Qe.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Wt(e){const t=U(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(R,A)=>{R!==h?.accountViewMode&&a?.(R),A&&n?.(A)};P.useEffect(()=>{if(e.fetchState==="Completed"){const R=S(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(R,e.isCompareMode,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=rt(e),s=y.getLocalizedStrings().reports.common,c=he(),x=c!=null&&_.hasInvestorBankerLevelAccess(c.loggedInUserRole)?"detailed":"more_detailed",O=c!=null&&_.hasInvestorBankerLevelAccess(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&O.push("detailed");const[E,T]=Q.useState(O.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:E,disabledFormatForRole:O,roleBasedClassesSelectedFormat:x,setSelectedFormat:T};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(nt,{"data-testid":k("report-page-error-reload-page"),children:[r.jsx(ot,{"data-testid":k("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(fe,{})}),r.jsx(at,{children:s.failed})]});const $=e.fetchState;if(i.fetchState!=="Completed"&&($==="In-Progress"||$==="Not-Started"))return r.jsx(re,{isLoading:!0});{const R=r.jsx(me,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Be,{defaultOptions:h,analytics:e.analytics,referrer:L(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(A,N,M)=>{d(l,A,N,M)},onTimeframeSelectionChanged:(A,N,M)=>{p?.(A,N,M)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(Xe,{children:[r.jsx(ge,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:R,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(it,{...e})]})}}function it(e){const t=U(),o=G(),a=P.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const x=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...S(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(O=>O!=="this_period_vs_last_period"):[...S(e).filter.additionalBalances,"this_period_vs_last_period"].filter(O=>O!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,x,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=S(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=_.reduceAllFetchState([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(et,{windowSize:t,"data-testid":k("reports-page-content-container"),children:[r.jsx(pt,{windowSize:t,ref:a,children:r.jsx(Ae,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=S(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(ht,{windowSize:t,children:r.jsx(ft,{children:r.jsx(Se,{width:u,height:X-w[2],backgroundColor:o.colors.grey3,style:{borderRadius:C.sp2}})})}):r.jsx(ut,{windowSize:t,children:r.jsx(Re,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,Z(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=ct(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,Z(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(mt,{windowSize:t,children:r.jsx(qe,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(lt(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(re,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(le,{report:S(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),_.isPAndLReport(e.selectedReport)?r.jsx(st,{windowSize:t,children:r.jsx(Oe,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const J=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},ct=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function rt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=S(e).firstMonthOfFY,a=S(e).bookCloseDate,n=S(e).dataAvailable,d=S(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const L=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},lt=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return B.Event.profitAndLoss;case"cash_flow":return B.Event.cashFlow;case"balance_sheet":return B.Event.balanceSheet;default:return B.Event.reports}},le=Q.memo(De,(e,t)=>dt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));le.displayName="Reports table";const dt=(e,t,o)=>o.reduce((a,n)=>a===!0&&K(e[`${n}`],t[`${n}`]),!0),pt=b.div`
|
|
101
|
+
`,re=({style:e,isLoading:t})=>t?r.jsx(tt,{style:e,children:r.jsx(be,{size:"ExtraLarge",start:!0})}):null,S=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},W=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=Xe.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function jt(e){const t=U(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(R,A)=>{R!==h?.accountViewMode&&a?.(R),A&&n?.(A)};P.useEffect(()=>{if(e.fetchState==="Completed"){const R=S(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(R,e.isCompareMode,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=rt(e),s=y.getLocalizedStrings().reports.common,c=he(),x=c!=null&&_.hasInvestorBankerLevelAccess(c.loggedInUserRole)?"detailed":"more_detailed",O=c!=null&&_.hasInvestorBankerLevelAccess(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&O.push("detailed");const[E,L]=X.useState(O.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:E,disabledFormatForRole:O,roleBasedClassesSelectedFormat:x,setSelectedFormat:L};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(nt,{"data-testid":k("report-page-error-reload-page"),children:[r.jsx(ot,{"data-testid":k("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(fe,{})}),r.jsx(at,{children:s.failed})]});const $=e.fetchState;if(i.fetchState!=="Completed"&&($==="In-Progress"||$==="Not-Started"))return r.jsx(re,{isLoading:!0});{const R=r.jsx(me,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Be,{defaultOptions:h,analytics:e.analytics,referrer:T(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(A,N,M)=>{d(l,A,N,M)},onTimeframeSelectionChanged:(A,N,M)=>{p?.(A,N,M)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(Ke,{children:[r.jsx(ge,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:R,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(it,{...e})]})}}function it(e){const t=U(),o=G(),a=P.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",T(e.selectedReport),z(e.selectedTimeframe),c);const x=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...S(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(O=>O!=="this_period_vs_last_period"):[...S(e).filter.additionalBalances,"this_period_vs_last_period"].filter(O=>O!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,x,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=S(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=_.reduceAllFetchState([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(et,{windowSize:t,"data-testid":k("reports-page-content-container"),children:[r.jsx(pt,{windowSize:t,ref:a,children:r.jsx(Ae,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),T(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,T(e.selectedReport),z(e.selectedTimeframe));const c=S(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(ht,{windowSize:t,children:r.jsx(ft,{children:r.jsx(Se,{width:u,height:K-w[2],backgroundColor:o.colors.grey3,style:{borderRadius:C.sp2}})})}):r.jsx(ut,{windowSize:t,children:r.jsx(Re,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(T(e.selectedReport),"range filter",e.isCompareMode,Z(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=ct(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(T(e.selectedReport),"range filter",e.isCompareMode,Z(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(mt,{windowSize:t,children:r.jsx(qe,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(lt(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(re,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(le,{report:S(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),_.isPAndLReport(e.selectedReport)?r.jsx(st,{windowSize:t,children:r.jsx(Oe,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const J=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},ct=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function rt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=S(e).firstMonthOfFY,a=S(e).bookCloseDate,n=S(e).dataAvailable,d=S(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const T=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},lt=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return B.Event.profitAndLoss;case"cash_flow":return B.Event.cashFlow;case"balance_sheet":return B.Event.balanceSheet;default:return B.Event.reports}},le=X.memo(De,(e,t)=>dt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));le.displayName="Reports table";const dt=(e,t,o)=>o.reduce((a,n)=>a===!0&&Q(e[`${n}`],t[`${n}`]),!0),pt=b.div`
|
|
102
102
|
padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
|
|
103
103
|
`,ut=b.div`
|
|
104
104
|
margin-top: ${C.sp3};
|
|
@@ -110,7 +110,7 @@ import{K as U,u as G,F as y,z as he,l as _,j as r,Z as k,bf as fe,aY as me,aW as
|
|
|
110
110
|
display: flex;
|
|
111
111
|
flex-direction: row;
|
|
112
112
|
justify-content: flex-start;
|
|
113
|
-
min-height: ${
|
|
113
|
+
min-height: ${K}px;
|
|
114
114
|
box-sizing: content-box;
|
|
115
115
|
width: 100%;
|
|
116
116
|
align-items: center;
|
|
@@ -118,4 +118,4 @@ import{K as U,u as G,F as y,z as he,l as _,j as r,Z as k,bf as fe,aY as me,aW as
|
|
|
118
118
|
`,mt=b.div`
|
|
119
119
|
margin-top: ${C.sp4};
|
|
120
120
|
padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
|
|
121
|
-
`;export{
|
|
121
|
+
`;export{jt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as A,j as a,
|
|
1
|
+
import{u as A,j as a,M as S,e as de,_ as Ae,aj as Q,b6 as Te,q as E,b7 as J,aw as ee,v as M,av as ae,ab as re,b8 as oe,b9 as ge,o as m,ba as te,c as g,E as Fe,bb as pe,bc as me,C as xe,bd as fe,n as R,be as F,ap as V}from"./index-Cnh9fv8f.js";import{b as P,f as le,n as x}from"./vendor-rkTZJa59.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-Cknnnhq_-BKEap-MQ.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-DACfD5ZE-BgoTIDec.js";import{V as Z}from"./toChartData-C6ap15NT-ByCawuJX.js";const q={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Ve=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{K as Tt,z as vt,x as y,fh as jt,F as St,fi as Ct,fj as Dt,j as t,fk as It,fl as le,fm as Pt,l as d,fn as At,cs as kt,Z as j,fo as Mt,a0 as k,fp as Bt,fq as Nt,fr as ke,fs as Me,ft as Be,y as q,fu as O,fv as z,fw as _,h as S,fx as Rt,fy as Ft,fz as Et,fA as Lt,bw as Ne,o as n,a4 as Ot,n as c,w as zt,bt as _t,V as Wt,Q as Ut,eZ as Vt,bK as Zt,k as se,O as de,fB as Ht,fC as Yt,aC as qt,t as Kt,ao as Gt,p as Xe,b5 as Xt,$ as Qe,aP as Qt,fD as Jt}from"./index-D9zAXs3-.js";import{b as U,n as i}from"./vendor-Bs1fkIUX.js";import{t as en,o as tn}from"./LowBalancePopup-DcVkWdb3-vRNfAVIB.js";import{S as W}from"./LabeledText-CW-bei7--hAClqsQN.js";import"./mui-Ty75qFQF.js";import"./analytics-CBL_L82S.js";import"./routing-lj7oVq6C.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-C2xecagE.js";import"./crypto-DPjkCRYF.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Re,common:{currency:v,labels:Fe,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=ln,Le=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Yt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=Tt(),m=vt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,R=`dashboard_${m.currentTenant?.companyId}`,F=p.largeLabelWidth.value(s),E=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Re.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(An,{size:s,children:t.jsx(Pn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(E?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[E,J,ye,me,ue]);const T=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:P?.code=="approved"&&V?.code?V:P,pt=e.billPayInfo?.isRefundInitiated===!0?mt:P?.code=="approved"&&V?.code?V:P,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(Pt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,H=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},A=g&&(T?.code!=null?T.code==="draft"||P?.code==="approved":!0),b=A&&!it,Te=Oe(b,H,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Ft(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?At(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Re.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=T?.code??"draft",Ce=P?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Pe=Jt(m.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Pe,Ae):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Pe,Ae)}}},ve=()=>{je===!0&&Y(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,Y]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:E?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:ve,onCancelClick:()=>{Y(!1),ne()},onClickAway:()=>{Y(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(He,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(He,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(vn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(En,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ye,{children:t.jsx(qe,{})}),t.jsx(G,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ke,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(G,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ge,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ye,{children:t.jsx(qe,{})}),t.jsxs(Fn,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(G,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(G,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(Ge,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ve,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(Ve,{children:a.to}),t.jsx(Ze,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:F},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Rt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:F},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(K,{}),!g&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:F},style:{width:"auto"},value:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:F},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:F},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==v.currencyCode?Ee.conversionAmountColon:Fe.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Ee.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Fe.total}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:A&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:A&&!b?$e:ne,style:{width:ze(!1,A,b,H,s)}},primaryBtn:{label:Oe(b,H,e.isBillMarkedForRetry),isLoading:E?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?Y(!0):ve()},style:{width:ze(!0,A,b,H,s)}},rightSideComponent:A&&!b&&E.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(kn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
|
|
1
|
+
import{e as Tt,Y as vt,C as y,cH as jt,M as St,cI as Ct,cJ as Dt,j as t,cK as It,cL as le,cM as Pt,l as d,cN as kt,cO as At,_ as j,cP as Mt,a0 as A,cQ as Bt,cR as Nt,cS as Ae,cT as Me,cU as Be,v as q,cV as O,cW as z,cX as _,c as S,cY as Lt,cZ as Rt,c_ as Ft,c$ as Et,bA as Ne,o as n,a4 as Ot,q as c,$ as zt,bw as _t,b as Wt,h as Ut,d0 as Yt,bN as Ht,n as se,B as de,d1 as Zt,d2 as Vt,aC as qt,L as Gt,ao as Kt,s as Xe,b5 as Xt,d as Qe,aP as Qt,d3 as Jt}from"./index-Cnh9fv8f.js";import{b as U,n as i}from"./vendor-rkTZJa59.js";import{t as en,o as tn}from"./LowBalancePopup-ChA83eFW-dErt1yuL.js";import{S as W}from"./LabeledText-Hi4MixDN-n_lfAbe7.js";import"./mui-C42whWwM.js";import"./analytics-CBL_L82S.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Le,common:{currency:v,labels:Re,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Fe}=ln,Ee=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Zt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=Tt(),m=vt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,L=`dashboard_${m.currentTenant?.companyId}`,R=p.largeLabelWidth.value(s),F=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Le.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},E={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(kn,{size:s,children:t.jsx(Pn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(F?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[F,J,ye,me,ue]);const T=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:P?.code=="approved"&&Y?.code?Y:P,pt=e.billPayInfo?.isRefundInitiated===!0?mt:P?.code=="approved"&&Y?.code?Y:P,ne=()=>{ce()},be=()=>{ce()},H=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(Pt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,Z=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-E.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},k=g&&(T?.code!=null?T.code==="draft"||P?.code==="approved":!0),b=k&&!it,Te=Oe(b,Z,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Rt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?kt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Le.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=T?.code??"draft",Ce=P?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Pe=Jt(m.loggedInUser),ke=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Pe,ke):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Pe,ke)}}},ve=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:F?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:ve,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(At,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:H?.format(D)??"",paymentType:we,amount:A("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(Ze,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ze,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(vn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Fn,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(En,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ee,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ge,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{children:r!=null?Ae.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Ee,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(qe,{})}),t.jsxs(Rn,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ge,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Ke,{children:r!=null?Ae.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ye,{children:a.pay}),t.jsx(He,{children:t.jsx(Be,{amount:yt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(Ye,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Lt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(G,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(G,{}),!g&&H!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:H.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(H.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(G,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(G,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Et(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Ft(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==v.currencyCode?Fe.conversionAmountColon:Re.invoiceAmount}),t.jsx(oe,{children:A("0,0[.]00",{amount:u.amount-E.amount,currencySymbol:E.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Fe.transactionFee}),t.jsx(oe,{children:A("0,0[.]00",{amount:E.amount,currencySymbol:E.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Re.total}),t.jsx(oe,{children:A("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?$e:ne,style:{width:ze(!1,k,b,Z,s)}},primaryBtn:{label:Oe(b,Z,e.isBillMarkedForRetry),isLoading:F?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):ve()},style:{width:ze(!0,k,b,Z,s)}},rightSideComponent:k&&!b&&F.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(An,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -68,7 +68,7 @@ import{K as Tt,z as vt,x as y,fh as jt,F as St,fi as Ct,fj as Dt,j as t,fk as It
|
|
|
68
68
|
border-radius: ${n.sp2};
|
|
69
69
|
margin-bottom: ${n.sp3};
|
|
70
70
|
margin-top: ${n.sp3};
|
|
71
|
-
`,
|
|
71
|
+
`,G=i.div`
|
|
72
72
|
display: flex;
|
|
73
73
|
flex: 1;
|
|
74
74
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -102,7 +102,7 @@ import{K as Tt,z as vt,x as y,fh as jt,F as St,fi as Ct,fj as Dt,j as t,fk as It
|
|
|
102
102
|
`,Tn=i(se)`
|
|
103
103
|
padding-bottom: ${n.sp3};
|
|
104
104
|
color: ${S.brandColorGoldDark};
|
|
105
|
-
`,vn=i(
|
|
105
|
+
`,vn=i(Ht)`
|
|
106
106
|
padding-top: ${n.sp3};
|
|
107
107
|
color: ${S.brandColorGoldDark};
|
|
108
108
|
`,Ue=i.div`
|
|
@@ -121,15 +121,15 @@ import{K as Tt,z as vt,x as y,fh as jt,F as St,fi as Ct,fj as Dt,j as t,fk as It
|
|
|
121
121
|
`,Cn=i.div`
|
|
122
122
|
display: flex;
|
|
123
123
|
padding-top: ${n.sp3};
|
|
124
|
-
`,
|
|
124
|
+
`,Ye=i(Gt)`
|
|
125
125
|
display: flex;
|
|
126
126
|
color: ${e=>e.theme.colors.hero};
|
|
127
127
|
margin-right: ${n.sp1};
|
|
128
|
-
`,
|
|
128
|
+
`,He=i(Kt)`
|
|
129
129
|
display: flex;
|
|
130
130
|
color: ${e=>e.theme.colors.primary};
|
|
131
131
|
margin-right: ${n.sp1};
|
|
132
|
-
`,
|
|
132
|
+
`,Ze=i(_t)`
|
|
133
133
|
cursor: pointer;
|
|
134
134
|
color: ${e=>e.theme.colors.hero};
|
|
135
135
|
width: 20px;
|
|
@@ -156,13 +156,13 @@ import{K as Tt,z as vt,x as y,fh as jt,F as St,fi as Ct,fj as Dt,j as t,fk as It
|
|
|
156
156
|
height: ${n.sp3};
|
|
157
157
|
width: ${n.sp3};
|
|
158
158
|
color: ${e=>e.theme.colors.hero};
|
|
159
|
-
`,
|
|
159
|
+
`,kn=i.span`
|
|
160
160
|
display: flex;
|
|
161
161
|
align-items: center;
|
|
162
162
|
margin-left: ${n.sp2};
|
|
163
163
|
margin-top: ${e=>p.iconContainerMarginTop.valuePx(e.size)};
|
|
164
164
|
align-self: ${e=>e.size==="small"?"baseline":"center"};
|
|
165
|
-
`,
|
|
165
|
+
`,An=i(de)`
|
|
166
166
|
color: ${e=>e.theme.colors.grey1};
|
|
167
167
|
display: flex;
|
|
168
168
|
flex-wrap: wrap;
|
|
@@ -193,7 +193,7 @@ import{K as Tt,z as vt,x as y,fh as jt,F as St,fi as Ct,fj as Dt,j as t,fk as It
|
|
|
193
193
|
width: ${n.sp4};
|
|
194
194
|
height: ${n.sp4};
|
|
195
195
|
display: flex;
|
|
196
|
-
`,
|
|
196
|
+
`,Ve=i.div`
|
|
197
197
|
cursor: default;
|
|
198
198
|
display: flex;
|
|
199
199
|
align-items: center;
|
|
@@ -203,30 +203,30 @@ import{K as Tt,z as vt,x as y,fh as jt,F as St,fi as Ct,fj as Dt,j as t,fk as It
|
|
|
203
203
|
width: ${n.sp4};
|
|
204
204
|
height: ${n.sp4};
|
|
205
205
|
color: ${e=>e.theme.colors.hero};
|
|
206
|
-
`,
|
|
206
|
+
`,K=i(se)`
|
|
207
207
|
display: flex;
|
|
208
208
|
color: ${e=>e.theme.colors.hero};
|
|
209
209
|
align-items: center;
|
|
210
210
|
min-width: 142px;
|
|
211
211
|
flex-grow: 1;
|
|
212
|
-
`,
|
|
212
|
+
`,Ge=i(se)`
|
|
213
213
|
display: flex;
|
|
214
214
|
color: ${e=>e.theme.colors.primary};
|
|
215
215
|
align-items: center;
|
|
216
216
|
margin-right: ${e=>p.infoMarginRight.valuePx(e.windowSize)};
|
|
217
217
|
min-width: ${e=>p.infoMinWidth.valuePx(e.windowSize)};
|
|
218
218
|
justify-content: flex-end;
|
|
219
|
-
`,
|
|
219
|
+
`,Ln=i.div`
|
|
220
220
|
display: flex;
|
|
221
221
|
cursor: pointer;
|
|
222
222
|
column-gap: ${n.sp1};
|
|
223
223
|
margin-left: ${n.sp5};
|
|
224
|
-
`,
|
|
224
|
+
`,Ke=i.div`
|
|
225
225
|
width: 120px;
|
|
226
226
|
display: flex;
|
|
227
227
|
justify-content: flex-end;
|
|
228
228
|
align-items: center;
|
|
229
|
-
`,
|
|
229
|
+
`,Rn=i.div`
|
|
230
230
|
display: flex;
|
|
231
231
|
flex-grow: 1;
|
|
232
232
|
cursor: pointer;
|
|
@@ -247,10 +247,10 @@ import{K as Tt,z as vt,x as y,fh as jt,F as St,fi as Ct,fj as Dt,j as t,fk as It
|
|
|
247
247
|
padding: 1px 6px;
|
|
248
248
|
border: ${e=>`1px solid ${e.borderColor}`};
|
|
249
249
|
border-radius: ${n.sp1};
|
|
250
|
-
`,
|
|
250
|
+
`,Fn=i.div`
|
|
251
251
|
display: flex;
|
|
252
252
|
flex-direction: column;
|
|
253
|
-
`,
|
|
253
|
+
`,En=i.div`
|
|
254
254
|
display: flex;
|
|
255
255
|
width: 100%;
|
|
256
256
|
flex-flow: column;
|
|
@@ -260,7 +260,7 @@ import{K as Tt,z as vt,x as y,fh as jt,F as St,fi as Ct,fj as Dt,j as t,fk as It
|
|
|
260
260
|
`,On=i(de)`
|
|
261
261
|
margin-top: ${n.sp3};
|
|
262
262
|
color: ${S.alert};
|
|
263
|
-
`,zn=i(
|
|
263
|
+
`,zn=i(Yt)`
|
|
264
264
|
min-width: ${n.sp4};
|
|
265
265
|
height: ${n.sp4};
|
|
266
266
|
width: ${n.sp4};
|