@zeniai/web-cockpit-ui 1.14.20-qa → 1.14.21-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-B2GVy8XM-ti0XjGQx.js +21 -0
- package/dist/assets/{AIPerformancePage-DnOjd2BF-lO5zS7uR.js → AIPerformancePage-DKwSS0Zl-c3B4-q-Y.js} +33 -33
- package/dist/assets/AccountInfoPage-CSIM7DNw-BklcBUFt.js +18 -0
- package/dist/assets/{AccountInfoPageContent-Cc80eQeo-CgEfuzww.js → AccountInfoPageContent-CwbmE2Bb-CgQ5VXBk.js} +16 -16
- package/dist/assets/{AccountLockedInfoModal-B-Hn6_hG-6a5g7mIJ.js → AccountLockedInfoModal-SFgC439X-BdfeA6l0.js} +5 -5
- package/dist/assets/{AccountReconDetailsDrawerPage-Bz1Sk2du-BxAo_hsT.js → AccountReconDetailsDrawerPage-DhlVNNlq-zaiIx1Be.js} +14 -14
- package/dist/assets/{AccountRow-D01C0A0f-CckYNleY.js → AccountRow-Bhq6cvtX-CIGcG8Mb.js} +31 -31
- package/dist/assets/{AccountsPromoCardStack-DsjFJ8gZ-tDFsAqWF.js → AccountsPromoCardStack-Cx60IXNK-DyJ52Wxc.js} +33 -33
- package/dist/assets/{AddAddressForCardDrawer-DnoYIvUp-D4V9AU-3.js → AddAddressForCardDrawer-D1cDpMRq-BEiWkJUF.js} +2 -2
- package/dist/assets/{AddToWalletPage-BIiW9JxG-DzC3aDRW.js → AddToWalletPage-DjD9kDfD-7on3PFY8.js} +27 -27
- package/dist/assets/{AgingReportsPage-WazD_3Z7-BztL8RZo.js → AgingReportsPage-C68tZbMZ-BZn0w9tu.js} +7 -7
- package/dist/assets/{AllUserItems-CTSy4oBh-aCjvc204.js → AllUserItems-D4ZWfS3r-Dzjpd7KF.js} +14 -14
- package/dist/assets/{ApAgingDetailPage--NGBXWsy-Cfxnglrx.js → ApAgingDetailPage-C9xdKi6n-CJy9_j_h.js} +3 -3
- package/dist/assets/{AppBasePage-B5br9UXD-dTwGe1qL.js → AppBasePage-C77LebWx-j5O8MdDX.js} +11 -11
- package/dist/assets/{AppDrawerContent-vFeMNL3B-OmNElgxS.js → AppDrawerContent-rleLuP6d-CWfhTnVv.js} +19 -32
- package/dist/assets/ApprovalRulesSettingsPage-l6wNe5y0-CnwhageD.js +47 -0
- package/dist/assets/{ArAgingChart-BYWN3_Nl-M7Hk0Q05.js → ArAgingChart-BzPI5KpZ-DCA8w670.js} +7 -7
- package/dist/assets/{ArAgingDetailPage-B-hHa8A6-CG4Qyos2.js → ArAgingDetailPage-QPScba6I-BS5C1iok.js} +1 -1
- package/dist/assets/{AttachmentView-C2kWA5X5-BbtHpCnk.js → AttachmentView-BWRZe11t-C3aomYUX.js} +7 -7
- package/dist/assets/{BankAccountSection-B20IwpOn-DQog70tV.js → BankAccountSection-D4xFLS8Y-DYVkxnj8.js} +6 -6
- package/dist/assets/{BankAccountWarningSection-GHO0P0IZ-1uRlfSfl.js → BankAccountWarningSection-xch7b7oM-KAL6I_7u.js} +9 -9
- package/dist/assets/{BankConnectionsSettingsPage-Cpg1ObB6-C889d37H.js → BankConnectionsSettingsPage-BAf6txkS-BUkZUmB1.js} +33 -33
- package/dist/assets/{BillDetailPage-DOF5ibT6-CMzLP3E2.js → BillDetailPage-DNjo2hSl-HAMxBkoh.js} +5 -5
- package/dist/assets/BillPayApprovalRuleDetailPage-CyzRcfmb-CWMkHGTv.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-B3x4So_i-CY4rm4rp.js → BillPayApprovalRulesPage-XcSe-JLu-paWl1wgj.js} +8 -8
- package/dist/assets/{BillPayPromoPage-BqzH5AIp-CPmZM4sb.js → BillPayPromoPage-XAG7hXMH-TJCiv7fN.js} +12 -12
- package/dist/assets/BillPaySetUpPage-BBsdhwgY-BJ3SN0Z9.js +42 -0
- package/dist/assets/BillingSettingsPage-DJNjNtIF-BPnIxQJs.js +44 -0
- package/dist/assets/{BillsBulkReviewDrawerPage-B76xXQJ9-KS_QhPM7.js → BillsBulkReviewDrawerPage-C0-0H-LH-B1c9iIV6.js} +1 -1
- package/dist/assets/{BoxItem-DCsIK5bA-DmT1xtf2.js → BoxItem-DfMMtLK3-CwOmwsz7.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-hSVDM_Bi-2zlgnS4x.js → BusinessVerificationPage-Bdf48vIt-gFo5pnI5.js} +11 -11
- package/dist/assets/{CardNumberSubText-B_ZdgYVm-ChY45Xav.js → CardNumberSubText-DgQelYSF-ByXOxvTG.js} +2 -2
- package/dist/assets/{CashbackDetailPage-CNeEt6aE-b0UGJHmQ.js → CashbackDetailPage-pDpjBsfK-CeHQC4hd.js} +21 -21
- package/dist/assets/{ChargeCardDetailPage-C0a8jqCD-Cx7pv4Cb.js → ChargeCardDetailPage-DU9RMQc6-BIkkENPA.js} +74 -74
- package/dist/assets/ChargeCardListPage-DMYZIi2J-C0pY-hXD.js +355 -0
- package/dist/assets/{ChargeCardListTable-Kx-_ZAZu-BIEC6Lus.js → ChargeCardListTable-BGhtEqlM-1uQtcdAL.js} +118 -118
- package/dist/assets/{ChargeCardPromoPage-CKTkcQdI-D4z7TcsI.js → ChargeCardPromoPage-B2v83Vrf-DE3g4SaQ.js} +14 -14
- package/dist/assets/ChargeCardSetupPage-D4DqJYC2-tJD3m4rN.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-B_7CdyKP-BwoBFpZ8.js → ChargeCardStatementsPage-N-UJC5n3-DRCoIqWQ.js} +12 -12
- package/dist/assets/CheckDepositDrawerPage-BlNXO233-B6D-qsf9.js +206 -0
- package/dist/assets/{CollapsableReportTable-ULd7PQST-zRaWsZKw.js → CollapsableReportTable-CuZSfiJ--DndUaoHT.js} +51 -51
- package/dist/assets/{CompanyOfficerDetailsSection-DLaAmVLG-BXyV3XUg.js → CompanyOfficerDetailsSection-B8_6LaaT-Bm6A2sxD.js} +20 -20
- package/dist/assets/{CompanyPassportCard-CZQuAyI2-FnmQYEWp.js → CompanyPassportCard-Dnoe52f1-Bb0yMF1k.js} +9 -9
- package/dist/assets/{CompanyPassportPage-DqoVJfO--B2V256bS.js → CompanyPassportPage-ChrMM5cG-CBSi0VyZ.js} +9 -9
- package/dist/assets/{CompleteProfile-BJV-xUlM-_mjlqEii.js → CompleteProfile-BcB52KEM-eSrsUGzf.js} +1 -1
- package/dist/assets/{ConfettiBurst-D4ga9TRN-DNqfOt_I.js → ConfettiBurst-CLXTwsEc-BKNVbRl0.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C6efUMJu-BPk-OMPd.js → CreateOrEditVendorPage-BQT9jEKf-D7ltp_Gl.js} +8 -8
- package/dist/assets/{CreditCardPaymentDrawerPage-26ysDTts-2EgGLxxN.js → CreditCardPaymentDrawerPage-CqjXmiuE-DMxbqlO3.js} +22 -22
- package/dist/assets/CurrencySelectField-DptlyOSs-CcylyEJM.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-D0-sOxDl-Ce46LukP.js → CustomerOnboardingActivationPage-CwOkKzOg-B6RVJbjC.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-CicNW9-B-DzHnXZE1.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B7hkzgkV-BF5167bb.js → CustomerOnboardingDetailPageSkeleton-czdG16p5-DpEmk0UD.js} +10 -10
- package/dist/assets/CustomerOnboardingNoStepsPage-vfiQQOHz-Bp1CMF4Z.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-DB1gXgdD-CBPKCr70.js → CustomerOnboardingPage-YXekfOBo-BxMO09Sc.js} +5 -5
- package/dist/assets/CustomerOnboardingProductSuitePage-CZTuBAv2-DO0Q6ibG.js +202 -0
- package/dist/assets/{Dashboard-CU3UQhxj-C1Mkz5gx.js → Dashboard-DSgwFRPe-C8675P9W.js} +1 -1
- package/dist/assets/{DashboardReportPage-DMdKWPtx-atQPuhmI.js → DashboardReportPage-BJvP8_MA-BpjY-74m.js} +17 -17
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BMEqBAyh-C6IEWJ-w.js → DashboardSidebarBackgroundAnimation-BzB16gcw-DGUbQY3b.js} +2 -2
- package/dist/assets/{DepositAccTransactionItem-C1-JGWD1-PimeTN3F.js → DepositAccTransactionItem-iLxnaDON-Cited1L2.js} +3 -3
- package/dist/assets/DepositAccTransactionListPage-BYdaEGCV-dRBdHWPK.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-D6fDbjcO-B5-gEW7w.js → DomesticWireDetailsPage-D7ID3OCC-BFvvuPQV.js} +1 -1
- package/dist/assets/{DownloadOverlay-CsX54puJ-Dn_Qxrz1.js → DownloadOverlay-DK3Nswwn-axnAyF4J.js} +23 -23
- package/dist/assets/{DrawerPage-xYwGDHR6-DzearJMx.js → DrawerPage-qdVRf0zd-rAuGPrSz.js} +10 -10
- package/dist/assets/EditPeoplePage-BQlHto3J-B1wgqdbr.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-EUO0BoRp-DXFt_-b4.js → EditReimbursementDetailPage-wJUr8jPN-cAj4KIG_.js} +75 -75
- package/dist/assets/{EntityDetailPage-CF6LS35a-I8h1XS7y.js → EntityDetailPage-BNbBdxQj-DOptLJPY.js} +3 -3
- package/dist/assets/{EntitySummarySection-C0gR6pkr-BFT2Z-pB.js → EntitySummarySection-BQXLwSRf-XMfwUKWz.js} +15 -15
- package/dist/assets/{ExpenseAutomationOverviewPage-B0I8v21w-DnXjKNKz.js → ExpenseAutomationOverviewPage-UXpoYnDh-DTEX425p.js} +22 -22
- package/dist/assets/{ExpenseAutomationPage-BorzJM7G-DkRsvTE3.js → ExpenseAutomationPage-Cn4VyB6M-CECxbhts.js} +69 -69
- package/dist/assets/{ExpressPayPage-D0YWItIv-vsfFJlZY.js → ExpressPayPage-DjV_dQoe-B6QGETdI.js} +12 -12
- package/dist/assets/{FeaturePreviewPage-yu8G5cHk-D2BrLKE_.js → FeaturePreviewPage-CPu1OiVj-C8nQdj7i.js} +2 -2
- package/dist/assets/{FollowStepsSection-DRDFxA8H-CjpGRF9d.js → FollowStepsSection-6KGTmbym-CjBGo1sT.js} +11 -11
- package/dist/assets/{GlobalReviewListPage-D80yv7U2-DSeBsZZz.js → GlobalReviewListPage-BpuYWhKy-BWJ3NE1D.js} +12 -12
- package/dist/assets/{HelpButton-D9ONg6cm-Be59SjbC.js → HelpButton-j66YbdZ7-MN2mMJbU.js} +5 -5
- package/dist/assets/{InformationCardStack-CbKQwtHm-iVG-egn1.js → InformationCardStack--_YYIZmU-TVF3K_in.js} +5 -5
- package/dist/assets/{InsightsCardStack-BWsN9_G2-DIXMPF3Z.js → InsightsCardStack-BAqsxgx_-C1UXRHpT.js} +10 -10
- package/dist/assets/{InsightsSection-WZo-AWJt-B29Z2aQ6.js → InsightsSection-R-m-A1rt-hAhn3f3r.js} +8 -8
- package/dist/assets/{IntegrationsSettingsPage-BLjSJt9r-DCLywH7v.js → IntegrationsSettingsPage-BP0P9-PB-q-RNhTQ5.js} +14 -14
- package/dist/assets/{InternationalWireSwiftDetailsPage-BXNDZ1Mk-BxL2cwbW.js → InternationalWireSwiftDetailsPage-Bl40XkdZ-FmcHiNeD.js} +16 -16
- package/dist/assets/{InternationalWireVerificationPage-BLgPJ1NJ-q4IibCup.js → InternationalWireVerificationPage-BxIz3xUq-DfERa7mH.js} +18 -18
- package/dist/assets/{InviteFormPage-DPQ4vL9--i-ULec9w.js → InviteFormPage-t42rmGiL-DbS-Xo1y.js} +22 -22
- package/dist/assets/{InvitePageListView-YUKxUGBn-B16-8w8X.js → InvitePageListView-CWpmFhZH-BU1izezz.js} +40 -40
- package/dist/assets/InvitePeoplePage-78Fznvo4-Cs3muHFK.js +12 -0
- package/dist/assets/{InvoiceUploadSection-Cx6pXJiN-CVGkefQN.js → InvoiceUploadSection-BWCF-vNf-ENuDGJpZ.js} +9 -9
- package/dist/assets/{IssueChargeCardPage-DZVtocCO-I_yEnYGn.js → IssueChargeCardPage-DrHldS8--Y0lQ8nqU.js} +19 -19
- package/dist/assets/{LabeledAddressValue-BrB2xQYz-Bp1iKMXW.js → LabeledAddressValue-WlsZ5Ghz-BgDzWzX8.js} +1 -1
- package/dist/assets/LabeledAddressValueField-B-6CWCep-BS0rQu3k.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-o0K1dba0-CaYkqqwf.js → LabeledControlledCheckBoxField-DLlz4JyR-BC1O7GWF.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DQwGH21a-DCo3yiXZ.js → LabeledCreatableSingleSelectField-rYzQ2Ot2-C76fE8D-.js} +2 -2
- package/dist/assets/{LabeledDocumentField-CfgzkjDY-pn3OcRy3.js → LabeledDocumentField-CD2nmWBu-DN57A6Dt.js} +4 -4
- package/dist/assets/{LabeledDropDownFormattedTextField-DdaTvUbM-KTtCMdFX.js → LabeledDropDownFormattedTextField-DpVX6osq-D5-gOJ3f.js} +3 -3
- package/dist/assets/{LabeledText-Hi4MixDN-WrbKJ642.js → LabeledText-QTidAWAx-C3c3LDP1.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BlVebvR7-Jqg6BKYy.js → LabeledUserSingleSelectWithSubtitlesField-BlTOGYfX-B2GK4-w4.js} +19 -19
- package/dist/assets/{LabeledZeniRolesDropDownField-Bm7Emr_n-glZ8PCSO.js → LabeledZeniRolesDropDownField-BVYRgzSM-BwBrTbH3.js} +12 -12
- package/dist/assets/{LinkJETransactionPage-ittEPbhi-W7ymwETt.js → LinkJETransactionPage-CKTmE3J5-oxz25OQ_.js} +10 -10
- package/dist/assets/{LowBalancePopup-ChA83eFW-D0eQDhH3.js → LowBalancePopup-3lHeOacz-D0jLBPuP.js} +5 -5
- package/dist/assets/{MagicLinkACHDetailsPage-B4PPI06n-C_DxqSTi.js → MagicLinkACHDetailsPage-CJwMNdWw-CQRuhIMs.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DRK5ytSb-DngVeo5M.js → MagicLinkDomesticWireDetailsPage-7fXlIwuo-BfygosWH.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C2pn5xtm-BATETY3T.js → MagicLinkInternationalWireDetailsPage-D7oeyaXU-BvZA1a8O.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Bag5TE2J-CZ9jwejs.js → MagicLinkSuccessPage-D8iyZlJy-BCBc7pXl.js} +4 -4
- package/dist/assets/{MagicLinkTitleSection-Ch72cLUN-YrwcYc6L.js → MagicLinkTitleSection-DUrwrEj2-Dar-V5KH.js} +5 -5
- package/dist/assets/{MailingDetailsSection-CrHHLtQN-DrQYYUeI.js → MailingDetailsSection-CXSm1fgW-B1aDR6z2.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-B_KRQLwc-Dk4sRI3u.js → MeetingCalenderPopup-SnrmOSBf-C5dtHg-v.js} +1 -1
- package/dist/assets/{Menu-Czq7AdhP-DuOfxCaz.js → Menu-C7N3gHcb-bEZ9k_XO.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-y3YOYnQr-D-9bdC9E.js → MyBankConnectionsSettingsPage-B4Pjmw7q-qUHzU9ca.js} +16 -16
- package/dist/assets/MyPendingActivationChargeCardListPage-COeIF-Gj-lF4Ynxvz.js +6 -0
- package/dist/assets/{MyProfileSettingsPage-hQvoACAQ-De4LQ2zP.js → MyProfileSettingsPage-Dv0V1Z6z-B0QjyZRW.js} +10 -10
- package/dist/assets/NavBarWithPicker-Dd5TPoA8-B5GD0shW.js +30 -0
- package/dist/assets/{NavigationArrow-ClEBtns--QcRQdXVR.js → NavigationArrow-xI3dolgO-CZbe0Kw1.js} +2 -2
- package/dist/assets/{NavigationDots-BsJyQWOZ-BDcajz6w.js → NavigationDots-CbSSDiyy-CF0bIpTT.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BKZGSrDk-l-MVFG0h.js → NewGlobalMerchantPage-vHNZ1z6p-DzCKZ31U.js} +13 -13
- package/dist/assets/{NoDataChart-Bk9eWo52-DcgFDiHH.js → NoDataChart-DHDhwnCE--JxqggmJ.js} +5 -5
- package/dist/assets/{NoDataTable-DCQbtvPN-DodiAtKz.js → NoDataTable-BnVKm6Qa-D-DP72-h.js} +1 -1
- package/dist/assets/{NotFoundPage-CGx7FoiU-UHTxKuRN.js → NotFoundPage-BNZEf9qH-DJyohjVl.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-CoD8eTUS-BjZb9tDk.js → NotificationSettingsPage-DfnpY6qJ-IVv8rNvQ.js} +24 -24
- package/dist/assets/NotificationsListConfig-DtICI7X6-Ds4a71oz.js +1 -0
- package/dist/assets/{NotificationsPage-BavPSx1H-DHL13AeJ.js → NotificationsPage-Bg1mW_-3-Bqq3aGWJ.js} +86 -86
- package/dist/assets/OpExByVendorPage-qNgK4tMM-C2uybElE.js +100 -0
- package/dist/assets/{OverlayContainerPage-Dg-aOJQU-C9FBG3yb.js → OverlayContainerPage-ZbhbAqlg-Pe8QjCNe.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-bSkidYRR-CDPJjYTV.js → PandLWithForecastPage-C8qE7xCZ-4J3Yl7J8.js} +14 -14
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CGIC_vLw-DbAjNAQ-.js → PaymentAccountSetupBillingAddressSection-DA77K9eY-KFOyfAw1.js} +17 -17
- package/dist/assets/{PeoplePage-C-2NZJpQ-BenUVGbg.js → PeoplePage-Chec7uSH-BJQiakcT.js} +22 -22
- package/dist/assets/PortfolioAllocationFormPage-B_lIRV75-2KTCiqQZ.js +207 -0
- package/dist/assets/{PortfolioDetails-Cpv5bi4_-BHPnb_oU.js → PortfolioDetails-Dm2r3i6b-CSqaBp0x.js} +29 -29
- package/dist/assets/{ProductsCarousel-WDd37Mjn-BH0jA9xy.js → ProductsCarousel-Ba0LHKrb-CXNqNsMy.js} +7 -7
- package/dist/assets/{PromoBaseCards-BaFkKGkm-Cz7eAULC.js → PromoBaseCards-D3gKG9qA-BnJ2PjWk.js} +7 -7
- package/dist/assets/{QBOConnectionDialog-l3ThoJCI-ChlbOfD6.js → QBOConnectionDialog-C8y2XvBN-DhJ_XJEx.js} +10 -10
- package/dist/assets/{QBOSetupSection-DSrxcrXI-CkvMDxrM.js → QBOSetupSection-DDGIRv8E-WWMe3MOR.js} +8 -8
- package/dist/assets/ReimbursementApprovalRuleDetailPage-Dc_vsL89-WjjIqi27.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-fs4WqNUv-Bqd9-BoW.js → ReimbursementApprovalRulesPage-DsIFWYvA-BB4iiWOZ.js} +8 -8
- package/dist/assets/{ReimbursementDetailPage-BYw6Mc2u-BxuwZTKk.js → ReimbursementDetailPage-6KZSAl8R-DdvuKv3t.js} +19 -19
- package/dist/assets/ReimbursementPromoPage-Bijp59bV-Cpfy_AWs.js +112 -0
- package/dist/assets/ReimbursementSetUpPage-UW_9Cl4O-CgdV74cL.js +140 -0
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DblkkMcc-C0pmpacW.js +1 -0
- package/dist/assets/{ReloadCard-BPoOhxrs-kBbFGmsU.js → ReloadCard-BszztAdg-BGcTmGev.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-CkZW5TtX-DumdDRTp.js → ReportTableViewSelector-DOnGrFNT-CJshToiT.js} +28 -28
- package/dist/assets/{ReportsPage-C-ARKbIQ-o9K1sd3F.js → ReportsPage-BfKLEriq-DUqc1b6J.js} +7 -7
- package/dist/assets/{RevenueChart-CuqZW-Jr-N4UQEA-E.js → RevenueChart-B5dfrWKL-CCXtRcm3.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BVN_Uym2-C5S7_prb.js → ReviewDetailsPage-BCo54ehm-CX79VGjq.js} +17 -17
- package/dist/assets/{ReviewOverlay-CIgtaUn1-BvAebQ4j.js → ReviewOverlay-BysN2GYI-B3EhPHzZ.js} +25 -25
- package/dist/assets/{RoleWithToolTip-Dm4yIm31-B7MerbZ_.js → RoleWithToolTip-BRe9iDOl-Q0pJSQDn.js} +2 -2
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Ce3z1VPg-BTEmNd7t.js → ScheduleDetailsFixedAssetsPage-gij2cBvS-C2Yl94k-.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-O69iLj4h-CjfWVecQ.js → ScheduleDetailsPage-DVm4cyKr-CgRDdyS9.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-DMIzc2zC-7wRpGkTy.js → ScheduleSequenceTable-aSVVm6mG-DGPmYAZ0.js} +15 -15
- package/dist/assets/{ScreenRoutes-DSJYi7xE.js → ScreenRoutes-VXm4ob92.js} +1 -1
- package/dist/assets/SetUpAccountSection-qYVA9A09-BONGuihD.js +378 -0
- package/dist/assets/{SignIn-CXQyYEJI-CDAsUoma.js → SignIn-BLt95c3U-Dlnl1w8u.js} +20 -20
- package/dist/assets/{SignInScreen-DfZrql6t.js → SignInScreen-DEaBPUrL.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DEMLoStE-DOCGQBTb.js → SpendManagementListViewPage-Dav0JMKy-Dm4nEWMb.js} +13 -13
- package/dist/assets/{SpendManagementPerTabPage-CLf-7YyR-Dcu59y-5.js → SpendManagementPerTabPage-C-Y-BFqH-PpgBRx-N.js} +43 -43
- package/dist/assets/{SpendManagementSection-DIVgOKWy-DXji9rI6.js → SpendManagementSection-DGz-I0bf-BKzTZ_B1.js} +12 -12
- package/dist/assets/{StatementItem-CSyEn4Pz-Ceu9_WYP.js → StatementItem-2F2qxL7G-DvQ_AOWY.js} +5 -5
- package/dist/assets/StatementsPage-D8hwgVAz-Cub96aye.js +58 -0
- package/dist/assets/{StatusSwitcher-B77NoO6o--2WeeksA.js → StatusSwitcher-DBUg94S_-BAqpWDHz.js} +4 -4
- package/dist/assets/{SubTabSwitcher-baJGHUgJ-DvovvHUF.js → SubTabSwitcher-CoK8FOIA-DVmudC7o.js} +2 -2
- package/dist/assets/{SummaryCard-BvuRZj8f-T-eFM0LS.js → SummaryCard-D1KRVnqp-Dvy_al2s.js} +1 -1
- package/dist/assets/{TaskManagementPage-vG8GXEJA-BGipUdPV.js → TaskManagementPage-BhFEeDBu-Dz6ITwfD.js} +45 -45
- package/dist/assets/{TimeRangeSwitcher-CnoZ9Rqp-B5iNAfYV.js → TimeRangeSwitcher-4JrIq9xZ-CS5enEHL.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-W5kHnuHI-BadD6oo8.js → TimeframeSwitcher-CjctaKq_-BTzm82tm.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-yLA5y4zJ-4o4duI3A.js → TimeframeSwitcherWithToggle-C0dRRCYf-DyMTP-so.js} +1 -1
- package/dist/assets/{TopExCard-oyXmygm8-BYyuzniq.js → TopExCard-CCBEun3e-2zjFnsRQ.js} +7 -7
- package/dist/assets/{TopExDetailPage-4HMIURzm-DnalCFp3.js → TopExDetailPage-DbwmOLnV-BBhCS5FY.js} +10 -10
- package/dist/assets/{TransactionDetailPage-CIw_7B72-CYXPG11l.js → TransactionDetailPage-DsQJU2de-Cs2qQW8e.js} +39 -39
- package/dist/assets/{TransactionList-B9M4ftBY-DwRVqc-5.js → TransactionList-BIMzvzrT-CfNPr3Oc.js} +12 -12
- package/dist/assets/{TransactionListBig-D5SRFdH7-DM-CzEo0.js → TransactionListBig-DiFiu66r-oT2afajE.js} +26 -26
- package/dist/assets/{TransactionListPage-DCiIH4ES-fcePVcVZ.js → TransactionListPage-7JveOMDe-B7fdmsSh.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-BNY3vBm0-CW0SP2il.js → TransactionVendorDetailPage-A2F8TF9r-CbwnVt2A.js} +5 -5
- package/dist/assets/TransferDrawerPage-CCqQ3Daq-Daf8n1RY.js +362 -0
- package/dist/assets/{TreasuryOverviewPage-COFbWN48-BYeFpwIv.js → TreasuryOverviewPage-Bwy2y6eI-BKBfV02s.js} +42 -42
- package/dist/assets/{TreasuryPromoPage-EYqV98OG-NVU8LSqs.js → TreasuryPromoPage-B3P0nF1z-CmOyTb19.js} +17 -17
- package/dist/assets/{TreasurySetupPage-DEz3fabz-DDNrOk49.js → TreasurySetupPage-BgrgBBsW-fmJdf9pD.js} +9 -9
- package/dist/assets/TreasuryStatementsPage-DvCQhl_X-CgWR5LfD.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-iG8-cJFt-DtHFKc00.js +58 -0
- package/dist/assets/{TreasuryTransferOrReviewPage-D25tiep8-BNfZoc8Z.js → TreasuryTransferOrReviewPage-BZ5sPJAg-XRzfaj0V.js} +48 -48
- package/dist/assets/{TrendChart-xBdkrxjQ-C4056Hlf.js → TrendChart-_IpSJoUH-D_Xka3ge.js} +5 -5
- package/dist/assets/{TrendWithTransactions-CQdqelNB-DQo5xCdz.js → TrendWithTransactions-BqGV_CQg-C8WEVoW0.js} +8 -8
- package/dist/assets/{UncategorizedAccountsMappingPage-DaSjSoeK-DCzQZher.js → UncategorizedAccountsMappingPage-iK-1vllN-DE4gP4RH.js} +17 -17
- package/dist/assets/{UnitIntegrationPage-zM4qGyLV-BUih8kDy.js → UnitIntegrationPage-sYNoUudZ-MStTdQpl.js} +4 -4
- package/dist/assets/UploadAdditionalDocumentOverlay-DMtjF2N8-C2Be6sSI.js +38 -0
- package/dist/assets/{Vendor2FAPopup-DO-eL5Ot-DkBNux6r.js → Vendor2FAPopup--4Ufzmk0-CNai3nMR.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BDROr_dC-BY7HbNfr.js → VendorACHDetailsPage-BD9WwdNN-CaWAjhaB.js} +1 -1
- package/dist/assets/{VendorDetailPage-B8S-gV53-DhUdJ0v4.js → VendorDetailPage-DwLCEthT-BvPUhXCZ.js} +21 -21
- package/dist/assets/{VendorDomesticWireDetailsPage-BrxQuXus-CKp63XIB.js → VendorDomesticWireDetailsPage-Y2SlFgHo-D65nqzrv.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BK-XGzxl-BDsZSV4B.js → VendorFiling1099EditablePage-nGfjBA1D-OLG4m_gM.js} +16 -16
- package/dist/assets/{VendorFirstReviewPage-CrSdEY-q-B1bLGVGQ.js → VendorFirstReviewPage-Bgf9MtEn-Dtn_s7_m.js} +17 -17
- package/dist/assets/{VendorInternationalWireDetailsPage-DuE2n00d-CfT-V_5M.js → VendorInternationalWireDetailsPage-CMxyzCCL-CvcC_o3S.js} +8 -8
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-_0douojx-BYFNBvm2.js → VendorInternationalWireSwiftDetailsPage-C6rMWgzM-Ba3gVeFl.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C2McA3-C-Cb0CgKxi.js → VendorsAccountsSection-Ceq0cYf6-Cjsd_QQc.js} +2 -2
- package/dist/assets/{VerifyDevice-BOb4uKLq-DNkxVYQK.js → VerifyDevice-BTFRL9bH-BUJZK5YU.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-f9lS8sCp-DvTpHrxU.js → WarningsDrawerPage-DSssRFm_-C1VqOBKj.js} +11 -11
- package/dist/assets/{ZeniAccountDetailPage-BnWDpR9g-BIlqd_yq.js → ZeniAccountDetailPage-C6q8N5tU-Dc_1K1Bi.js} +17 -17
- package/dist/assets/{ZeniAccountListViewPage-D9ORn0_O-9Rmkt-8p.js → ZeniAccountListViewPage-CqUvXrvR-ZqvC3boH.js} +19 -19
- package/dist/assets/ZeniAccountNavBarPieces-DcmtDKVQ-CBPL_oum.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-CswETXvx-BsmBi2Qk.js → ZeniAccountPromoPage-B6wyK1mQ-C0Tgm2fT.js} +28 -28
- package/dist/assets/ZeniAccountSetupPage-Dl83s-y4-B5nGAEOh.js +36 -0
- package/dist/assets/{ZeniCopyright-DrkcGEYL-BmTJIlKC.js → ZeniCopyright-BqG_ynZT-WDJiIgsT.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Bw5S2HTx-DdoSkWzm.js → ZeniTransferAmountSlider-BZb23ypm-DU9mco3Q.js} +7 -7
- package/dist/assets/{analyticsHelper-C37dCyKv-CGyvCbtY.js → analyticsHelper-517kzICQ-BBH33il4.js} +1 -1
- package/dist/assets/{analyticsHelper-6vBfv0ec.js → analyticsHelper-CNrWxJzq.js} +1 -1
- package/dist/assets/{chartTypes-Cknnnhq_-DeXPyHuq.js → chartTypes-BTkUFFIf-HJpcoXWZ.js} +1 -1
- package/dist/assets/{commonDimensions-D0ovCC4N-CNPc1P_A.js → commonDimensions-Dw8Sh6Gv-a3To-vKo.js} +1 -1
- package/dist/assets/{detailCommon-CKa5_aP2-yoaB_aFJ.js → detailCommon-BA8Eb9ta-B1i92RWc.js} +11 -11
- package/dist/assets/downloadPdf-CDKlyJb--CILbJzzK.js +1 -0
- package/dist/assets/{index-b-ZazAq5.js → index-CjrcOwMA.js} +9891 -9282
- package/dist/assets/{mapLoadingInProgressToTreeNode-DttwbPj7-ClOsgYHo.js → mapLoadingInProgressToTreeNode-B16JI0nu-DSXwnXFw.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CKUACdvT-DnNr7s_7.js → mapSectionWithAcOnlyToTreeNode-u05r0BKW-CAyI7F2S.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CeH4tptC-DDar-aaX.js → mapSpacerToTreeNode-DHlbGqUH-D80xjgLV.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-TLHaVbTv-CwUi2UE6.js → mapTimeframeBalancesToTreeNode-CGkPIsh6-Cf2XqEry.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CElz2Cb0-yR23ijYO.js → mapTimeframeBalancesToTreeNode-ymtaozr7-oHeBpj1f.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D96sl236-Ceni4bmN.js → mapTimeframeHeaderLoadingInProgressToTreeNode-C7X7F5Ac-BRCHhf6Z.js} +1 -1
- package/dist/assets/{play-icon-XWt7iQeF-BXe3XEM9.js → play-icon-B0_JAuQa-Bjb2tow6.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DACfD5ZE-DPBjMuXT.js → toCOABalancesWithID-B0nbXcq3-CLRAcvjs.js} +1 -1
- package/dist/assets/{toChartData-C6ap15NT-C4C_iiHg.js → toChartData-CZR7pH0W-CMEBURV_.js} +1 -1
- package/dist/assets/{treasuryColorHelper-DmVCoHv9-BvBjIWNj.js → treasuryColorHelper-99Jkq8AE-9boKU_Ao.js} +1 -1
- package/dist/assets/{uploadAttachment-D1XtO8---C1HecV0B.js → uploadAttachment-5GZYaQNG-D5JMjedW.js} +21 -21
- package/dist/assets/{uploadReceipts-Cl7e8jci-CgmtP8oE.js → uploadReceipts-CtQowT1I-Bg_9c22l.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/ACHDetailsPage-CVBRtacz-B-wXgcdL.js +0 -21
- package/dist/assets/AccountInfoPage-Bt-jShgf-D7-pY8Xy.js +0 -18
- package/dist/assets/ApprovalRulesSettingsPage-6j7VBBZ6-DtpGfRvd.js +0 -47
- package/dist/assets/BillPayApprovalRuleDetailPage-BI1R1zT_-B2pclG9C.js +0 -27
- package/dist/assets/BillPaySetUpPage-DqiNMnRE-CJW2K1WW.js +0 -42
- package/dist/assets/BillingSettingsPage-BOAAGOLs-EF78E3-A.js +0 -44
- package/dist/assets/ChargeCardListPage-_3lJqIYP-CjqfIBRz.js +0 -355
- package/dist/assets/ChargeCardSetupPage-CGRMFERy-nwvjRvTP.js +0 -36
- package/dist/assets/ChargeCardUtils-BcwLwgz7-DtCcFgNi.js +0 -1
- package/dist/assets/ChaseOverlay-ClcKUdpT-DsBdB3dn.js +0 -170
- package/dist/assets/CheckDepositDrawerPage-I3siSP2H-DOYShP5D.js +0 -206
- package/dist/assets/CreditCardPaymentPlgSection-8NQI5gcx-CYgVnwi-.js +0 -78
- package/dist/assets/CurrencySelectField-CVNn0XCq-id1wN7tu.js +0 -139
- package/dist/assets/CustomerOnboardingContainerPage-DoibuhLN-BAot3xFZ.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-CD1QldcG-DOJTbsT8.js +0 -66
- package/dist/assets/CustomerOnboardingProductSuitePage-DGMmLmq8-Ba1Ge8Ql.js +0 -202
- package/dist/assets/DepositAccTransactionListPage-CfwhQ7mC-BpwI3LPz.js +0 -66
- package/dist/assets/EditPeoplePage-9SmQtrJz-CpjsvZ5X.js +0 -55
- package/dist/assets/InvitePeoplePage-C3vECRns-C0xQ6TWc.js +0 -12
- package/dist/assets/LabeledAddressValueField-_35LG3OI-D_e5OIiQ.js +0 -45
- package/dist/assets/MyPendingActivationChargeCardListPage-DJeYzaPj-shBILIuz.js +0 -6
- package/dist/assets/NavBarWithPicker-DUaSGf4d-CMjrmt-1.js +0 -30
- package/dist/assets/NotificationsListConfig-hyqVBWDA-ChVmChxH.js +0 -1
- package/dist/assets/OpExByVendorPage-DD8tCc8E-CwNf3ShD.js +0 -100
- package/dist/assets/PortfolioAllocationFormPage-B6JOvEvW-B8_jJPtJ.js +0 -207
- package/dist/assets/ReimbursementApprovalRuleDetailPage-hb8mPFw0-AvrXlJya.js +0 -26
- package/dist/assets/ReimbursementPromoPage-DzDuwRxU-B6R_66mk.js +0 -112
- package/dist/assets/ReimbursementSetUpPage-DdT6uu1--B5ymQEc4.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-CXvng56s-D22V4iw-.js +0 -1
- package/dist/assets/SetUpAccountSection-C1_QjMwF-D_Jc9DPP.js +0 -378
- package/dist/assets/SetUpDefaultSection-B-ZEHQUb-wT4VB7Bz.js +0 -174
- package/dist/assets/SpendMgmtSetupAccountSection-DFyUBsg3-CBY1E6Ip.js +0 -206
- package/dist/assets/StatementsPage-D34J2aZa-DVBVlsnj.js +0 -58
- package/dist/assets/TransferDrawerPage-DdgfrrRM-F6iL3sbI.js +0 -362
- package/dist/assets/TreasuryStatementsPage-JSf4JXXI-CCZGMWz5.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-Id6od0WY--LdWqgsE.js +0 -58
- package/dist/assets/UploadAdditionalDocumentOverlay-Y64l7Rho-CmfSD-Zu.js +0 -38
- package/dist/assets/ZeniAccountNavBarPieces-4jG3uNmW-ClvlddSI.js +0 -14
- package/dist/assets/ZeniAccountSetupPage-7B6Vgmg6-Cm9X_vfT.js +0 -36
- package/dist/assets/downloadPdf-BJozh7zE-DZm4gsxy.js +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{u as Q,e as ie,bI as me,a as fe,j as o,
|
|
2
|
-
padding: 0 ${
|
|
1
|
+
import{u as Q,e as ie,bI as me,a as fe,j as o,r as ge,B as X,bJ as ee,F as xe,C as O,a4 as be,o as a,bK as ye,bL as _e,bM as we,bN as $e,bO as ve,n as ce,bP as Ce,s as p,c as ke,M as K,aZ as je,a8 as Ne,k as Se,b1 as Ie}from"./index-CjrcOwMA.js";import{b as f,f as de,n as d}from"./vendor-rkTZJa59.js";import{W as P,R as Oe}from"./CollapsableReportTable-CuZSfiJ--DndUaoHT.js";const R=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Fe(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(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ao(e,c,n){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Fe(n)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:n.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 Be=d.div`
|
|
2
|
+
padding: 0 ${a.sp3} 0 ${a.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
5
|
-
border-radius: ${
|
|
5
|
+
border-radius: ${a.sp1};
|
|
6
6
|
display: flex;
|
|
7
7
|
justify-content: space-between;
|
|
8
8
|
align-items: center;
|
|
9
9
|
position: relative;
|
|
10
|
-
height: ${
|
|
10
|
+
height: ${a.sp8};
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
`,Ee=d(Se)`
|
|
13
13
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -16,14 +16,14 @@ 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
|
|
|
16
16
|
color: ${e=>e.theme.colors.hero};
|
|
17
17
|
width: 12px;
|
|
18
18
|
height: 12px;
|
|
19
|
-
margin: auto ${
|
|
19
|
+
margin: auto ${a.sp0};
|
|
20
20
|
:hover {
|
|
21
21
|
color: ${e=>e.theme.colors.primary};
|
|
22
22
|
}
|
|
23
|
-
`,Ae=e=>{const{value:c,onClick:
|
|
23
|
+
`,Ae=e=>{const{value:c,onClick:n}=e,t=Q();return o.jsxs(Be,{onClick:n,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:n,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:n!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:a.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:n,parentNodeIDs:t}){const r=P("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:r,isLastNode:c,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:n}};return h.children=e.children.map((b,y)=>he({nestedClass:b,config:n,isLastNode:y===e.children.length-1,parentNodeIDs:[...t,r]})),h}function ze(e,c){const n=e.map((t,r)=>{const h=P("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:[...n]}}function We(e,c){Object.assign(e.config,c);const n=e.contentNodes;return n.forEach(t=>ue(t,c)),{config:c,headerNodes:[],contentNodes:[...n]}}function ue(e,c){Object.assign(e.reportElementData.config,c),e.children.forEach(n=>ue(n,c))}const oe={contentPaddingLeft:new O(p[3],p[3],p[2]),contentPaddingRight:new O(p[3],p[3],p[2])},Re=d.div`
|
|
24
24
|
height: ${e=>e.height}px;
|
|
25
25
|
width: 100%;
|
|
26
|
-
`,
|
|
26
|
+
`,Ye=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:n,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:q,onToggleCheck:F})=>{const Y=Q(),H=ie(),[$,j]=f.useState(void 0),[T,_]=f.useState(!1),[M,B]=f.useState({}),[g,z]=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),B(i),F?.(i,l,r==="account_group"?!0:void 0),w(i,l)},w=(i,l)=>{const m=V(i);for(const C of m.children)F?.(C.classId,l),w(C.classId,l)},V=i=>{let l=n.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},J=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?F?.(l.classId,!0):F?.(l.classId,!1),B(l.classId)}};f.useEffect(()=>{T&&J(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,n)||!K(E,r)||T===!0){const l=ze(n,i);z(n),j(l),v(r)}else{const l=We($,i);j(l),v(r)}},[n,r,t]);const[Z,U]=f.useState(5),A=i=>{const l=i+p[6];U(l)};return $!=null?o.jsx(Re,{height:Z,children:o.jsx(Oe,{backgroundColor:r==="classes"?new Ne(Y.colors.background):void 0,rootNodes:$,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:oe.contentPaddingLeft.value(H),right:oe.contentPaddingRight.value(H)},scrollPosition:b,onScroll:y,nodeOpenStatus:D,onNodeCollapseToggled:q,onToggleCheck:N,onReportTableHeightChanged:A})}):null},k={width:new O(350,400,400),height:new O(165,165,165),buttonWidth:new O(62,62),buttonHeight:new O(p[5],p[5]),containerWidth:new O(150,400,400)},He=d.div`
|
|
27
27
|
position: relative;
|
|
28
28
|
pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
|
|
29
29
|
`,Ge=d.div`
|
|
@@ -44,27 +44,27 @@ 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
|
|
|
44
44
|
color: ${e=>e.theme.colors.primary};
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
gap: ${
|
|
47
|
+
gap: ${a.sp2};
|
|
48
48
|
margin-top: 12px;
|
|
49
49
|
align-items: center;
|
|
50
|
-
`,
|
|
50
|
+
`,Je=d(ve)`
|
|
51
51
|
color: ${e=>e.theme.colors.hero};
|
|
52
|
-
width: ${
|
|
53
|
-
height: ${
|
|
52
|
+
width: ${a.sp4};
|
|
53
|
+
height: ${a.sp4};
|
|
54
54
|
&:hover {
|
|
55
55
|
color: ${e=>e.theme.colors.primary};
|
|
56
56
|
}
|
|
57
|
-
`,
|
|
57
|
+
`,Ze=d.div`
|
|
58
58
|
display: flex;
|
|
59
59
|
width: ${e=>e.width}px;
|
|
60
60
|
align-items: flex-start;
|
|
61
61
|
justify-content: space-between;
|
|
62
62
|
flex-direction: column;
|
|
63
63
|
border: 1px solid ${e=>e.theme.colors.grey5};
|
|
64
|
-
border-radius: ${
|
|
65
|
-
box-shadow: ${e=>`${
|
|
64
|
+
border-radius: ${a.sp1};
|
|
65
|
+
box-shadow: ${e=>`${a.sp0} 2px ${a.sp2} ${e.theme.colors.dropShadowHover}`};
|
|
66
66
|
margin-top: 10px;
|
|
67
|
-
padding-top: ${
|
|
67
|
+
padding-top: ${a.sp1};
|
|
68
68
|
background: ${e=>e.theme.colors.grey5};
|
|
69
69
|
`,te=d.div`
|
|
70
70
|
display: flex;
|
|
@@ -78,13 +78,13 @@ 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
|
|
|
78
78
|
-moz-appearance: none;
|
|
79
79
|
appearance: none;
|
|
80
80
|
display: inline-block;
|
|
81
|
-
width: ${
|
|
82
|
-
height: ${
|
|
81
|
+
width: ${a.sp3};
|
|
82
|
+
height: ${a.sp3};
|
|
83
83
|
padding: 2px;
|
|
84
84
|
background-clip: content-box;
|
|
85
85
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
86
86
|
border-radius: 50%;
|
|
87
|
-
margin: ${
|
|
87
|
+
margin: ${a.sp0} ${a.sp2} ${a.sp0} ${a.sp2};
|
|
88
88
|
cursor: pointer;
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -100,11 +100,11 @@ 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
|
|
|
100
100
|
background: ${e=>e.theme.colors.background};
|
|
101
101
|
}
|
|
102
102
|
`,se=d(ke)`
|
|
103
|
-
height: ${
|
|
103
|
+
height: ${a.sp6};
|
|
104
104
|
display: flex;
|
|
105
105
|
justify-content: center;
|
|
106
106
|
align-items: center;
|
|
107
|
-
`,
|
|
107
|
+
`,qe=d.div`
|
|
108
108
|
display: flex;
|
|
109
109
|
flex-wrap: wrap;
|
|
110
110
|
justify-content: flex-start;
|
|
@@ -117,17 +117,17 @@ 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
|
|
|
117
117
|
min-height: 165px;
|
|
118
118
|
max-height: 353px;
|
|
119
119
|
overscroll-behavior: contain;
|
|
120
|
-
`,
|
|
120
|
+
`,Ue=d.div`
|
|
121
121
|
width: 100%;
|
|
122
122
|
height: 65px;
|
|
123
|
-
`,
|
|
123
|
+
`,ne=d.label`
|
|
124
124
|
color: ${e=>e.theme.colors.primary};
|
|
125
125
|
cursor: ${e=>e.disabled===!0?"default":"pointer"};
|
|
126
126
|
`,Ke=d(ce)`
|
|
127
127
|
display: flex;
|
|
128
128
|
align-items: center;
|
|
129
|
-
column-gap: ${
|
|
130
|
-
margin-left: ${
|
|
129
|
+
column-gap: ${a.sp2};
|
|
130
|
+
margin-left: ${a.sp5};
|
|
131
131
|
color: ${e=>e.theme.colors.hero};
|
|
132
132
|
&:hover {
|
|
133
133
|
cursor: pointer;
|
|
@@ -141,10 +141,10 @@ 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
|
|
|
141
141
|
min-height: 1px;
|
|
142
142
|
max-height: 1px;
|
|
143
143
|
`,Xe=d(Ce)`
|
|
144
|
-
width: ${
|
|
145
|
-
height: ${
|
|
144
|
+
width: ${a.sp3};
|
|
145
|
+
height: ${a.sp3};
|
|
146
146
|
`,eo=d(ce)`
|
|
147
|
-
margin-left: ${
|
|
147
|
+
margin-left: ${a.sp5};
|
|
148
148
|
margin-top: -12px;
|
|
149
149
|
color: ${e=>e.theme.colors.hero};
|
|
150
|
-
`,{reportViewSelector:I,common:{footer:
|
|
150
|
+
`,{reportViewSelector:I,common:{footer:ae}}=X.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function ro({reportId:e,firstMonthOfFY:c,nodes:n,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:b,onOpenAccountViewMode:y,onSaveClick:D,isClassViewDisabled:q,downloadPage:F,showAccountGroups:Y=!0,onResyncReports:H,isPageFetchInProgress:$=!1,lastRefreshSuccessTime:j}){const T=Q(),_=ie(),[M,B]=f.useState(!1),[g,z]=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(n,[]),[N,w]=f.useState(g==="classes"?h:L),V=t!=="Completed"||g==="classes"&&N.length===L.length;me({componentName:`reports.${e}`});const J=s=>s==="classes"?I.classes.label:Y===!0?I.accountGroups.label:I.accounts.label,Z=fe({mode:"all"}),U=Z.handleSubmit(()=>{B(!1),g==="classes"?D?.("classes",N):D?.("account_group")}),A=s=>{if(z(s),s==="classes")v({}),w([]);else{w(L);let u={};n.forEach(x=>{const S=P("checkbox_and_name_only",[],x.classId[0]);u=Object.assign({},u,{[S]:!1})}),v(u)}},i=()=>{M===!0&&m(),B(!M);let s={};n.forEach(u=>{const x=P("checkbox_and_name_only",[],u.classId[0]);r==="account_group"||N.find(S=>S[0]===u.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),v(s)},l=(s,u,x)=>{if(x===!0&&(z("classes"),w(L)),u===!0){const S=P("checkbox_and_name_only",[],s[0]);E[S]=!0,v(E),w(W=>W.filter(pe=>pe[0]!==s[0]))}else{const S=P("checkbox_and_name_only",[],s[0]);E[S]=!1,N.find(W=>W[0]===s[0])===void 0&&w(W=>[...W,s])}},m=()=>{B(!1),z(r),w(h)},C=()=>{$===!1&&H?.()};return f.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};n.forEach(u=>{const x=P("checkbox_and_name_only",[],u.classId[0]);s=Object.assign({},s,{[x]:!1})}),v(s)}},[t]),o.jsx(ge,{onClickAway:m,children:o.jsxs(He,{isDisabled:q??!1,children:[F===!0?o.jsx(Te,{value:J(r),onClick:()=>{y?.(),i()}}):o.jsxs(Ge,{windowSize:_,children:[o.jsxs(Ve,{onClick:s=>{s.preventDefault(),y?.(),i()},children:[o.jsx(Je,{className:"dropdownIcon"}),J(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,{...Z,children:o.jsx("form",{id:le(re),onSubmit:U,children:o.jsxs(Ze,{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(ne,{disabled:t!=="Completed",children:Y===!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(ne,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),$||t!=="Completed"?null:o.jsx(eo,{children:j&&`${ee(j)}`}),t==="Completed"?o.jsx(qe,{id:"sectionformcontainer",children:o.jsx(oo,{reportId:e,firstMonthOfFY:c,nestedClassHierarchy:n,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(Ue,{children:o.jsx(be,{formId:le(re),primaryBtn:{label:ae.save,style:{width:k.buttonWidth.valuePx(_),height:k.buttonHeight.valuePx(_)},isLoading:!1,isDisabled:V,size:"small"},showCancel:!0,cancelBtn:{label:ae.cancel,style:{width:k.buttonWidth.valuePx(_),height:k.buttonHeight.valuePx(_)},onClick:m,size:"small",shouldResetOnCancel:!0},style:{padding:a.sp3}})})]})})}):null]})})}const oo=de.memo(Ye,K);export{ao as c,ro as h};
|
|
@@ -1,19 +1,19 @@
|
|
|
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-b-ZazAq5.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-CGyvCbtY.js";import{h as Oe}from"./ReportTableViewSelector-CkZW5TtX-DumdDRTp.js";import{a as K,p as Re}from"./TimeRangeSwitcher-CnoZ9Rqp-B5iNAfYV.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-yLA5y4zJ-4o4duI3A.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-CsX54puJ-Dn_Qxrz1.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-ULd7PQST-zRaWsZKw.js";import{T as te,I as se,L as j,D as Le,g as ne}from"./mapSectionWithAcOnlyToTreeNode-CKUACdvT-DnNr7s_7.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-TLHaVbTv-CwUi2UE6.js";import{d as Te,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D96sl236-Ceni4bmN.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-DttwbPj7-ClOsgYHo.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-BadD6oo8.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-D01C0A0f-CckYNleY.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`
|
|
1
|
+
import{e as G,u as U,B as y,w as he,l as _,j as r,Z as k,bf as fe,aY as me,aW as ge,C as v,o as C,a6 as _e,p as be,bg as Se,s as w,H as B,M as Q,bh as we,a8 as Ce,aD as ye,a$ as xe}from"./index-CjrcOwMA.js";import{b as P,f as X,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as Z}from"./analyticsHelper-517kzICQ-BBH33il4.js";import{h as Oe}from"./ReportTableViewSelector-DOnGrFNT-CJshToiT.js";import{a as K,p as Re}from"./TimeRangeSwitcher-4JrIq9xZ-CS5enEHL.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-C0dRRCYf-DyMTP-so.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-DK3Nswwn-axnAyF4J.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-CuZSfiJ--DndUaoHT.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-u05r0BKW-CAyI7F2S.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-CGkPIsh6-Cf2XqEry.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-C7X7F5Ac-BRCHhf6Z.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-B16JI0nu-DSXwnXFw.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-CjctaKq_-BTzm82tm.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-Bhq6cvtX-CIGcG8Mb.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=H({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=H({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.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=H({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=
|
|
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=G(),s=U(),[c,x]=P.useState(void 0),[O,E]=P.useState(void 0),T=!(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,Y=D??pe;Y?.additionalBalances!=null&&(m=Y.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,T,g);E(e),x(f)}else{const f=Ne(c,m,e,T);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:T,isStickyName:T},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}},Ge=b.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
10
10
|
justify-content: center;
|
|
11
11
|
width: 100%;
|
|
12
12
|
align-items: center;
|
|
13
|
-
`,
|
|
13
|
+
`,Ue=b.div`
|
|
14
14
|
display: flex;
|
|
15
15
|
position: relative;
|
|
16
|
-
`,
|
|
16
|
+
`,He=b(ye)`
|
|
17
17
|
padding: 12px;
|
|
18
18
|
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
|
|
19
19
|
cursor: ${e=>e.isSelected?"default":"pointer"};
|
|
@@ -24,7 +24,7 @@ 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
|
|
|
24
24
|
&:hover {
|
|
25
25
|
color: ${e=>e.theme.colors.primary};
|
|
26
26
|
}
|
|
27
|
-
`,
|
|
27
|
+
`,Ye=b.div`
|
|
28
28
|
height: 2px;
|
|
29
29
|
background-color: ${e=>e.theme.colors.primary};
|
|
30
30
|
border-radius: 1px;
|
|
@@ -49,7 +49,7 @@ 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
|
|
|
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(
|
|
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(He,{"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(Ge,{"data-testid":k("report-switcher-container"),children:r.jsx(Ue,{"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(Ye,{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{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
|
|
|
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=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`
|
|
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=G(),o=U(),{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]=X.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(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=G(),o=U(),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: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(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=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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as A,j as a,
|
|
1
|
+
import{u as A,j as a,B as S,e as de,Z as Ae,aj as Q,b6 as Te,s as E,b7 as J,aw as ee,$ as M,av as ae,ab as re,b8 as oe,b9 as ge,o as m,ba as te,g,M as Fe,bb as pe,bc as me,C as xe,bd as fe,k as R,be as F,ap as V}from"./index-CjrcOwMA.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-BTkUFFIf-HJpcoXWZ.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-B0nbXcq3-CLRAcvjs.js";import{V as Z}from"./toChartData-CZR7pH0W-CMEBURV_.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{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-b-ZazAq5.js";import{b as U,n as i}from"./vendor-rkTZJa59.js";import{t as en,o as tn}from"./LowBalancePopup-ChA83eFW-D0eQDhH3.js";import{S as W}from"./LabeledText-Hi4MixDN-WrbKJ642.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)`
|
|
1
|
+
import{e as Tt,w as vt,C as y,cH as jt,B 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 At,cO as kt,Z as j,cP as Mt,a0 as k,cQ as Bt,cR as Nt,cS as ke,cT as Me,cU as Be,$ as G,cV as O,cW as z,cX as _,g as S,cY as Lt,cZ as Ft,c_ as Rt,c$ as Et,bA as Ne,o as n,a4 as Ot,s as c,d as zt,bw as _t,b as Wt,h as Ut,d0 as Yt,bN as Zt,k as se,n as de,d1 as Ht,d2 as Vt,aC as Gt,T as Kt,ao as Xt,Y as qe,b5 as qt,c as Qe,aP as Qt,d3 as Jt}from"./index-CjrcOwMA.js";import{b as U,n as i}from"./vendor-rkTZJa59.js";import{t as en,o as tn}from"./LowBalancePopup-3lHeOacz-D0jLBPuP.js";import{S as W}from"./LabeledText-QTidAWAx-C3c3LDP1.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:Fe,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Re}=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(Ht,{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}`,F=p.largeLabelWidth.value(s),R=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(An,{size:s,children:t.jsx(Pn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(R?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[R,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()},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-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)},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(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),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&&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:R?.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(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(Rn,{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(Ge,{})}),t.jsx(X,{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(Ln,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(X,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Xe,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(q,{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(Ge,{})}),t.jsxs(Fn,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(X,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(X,{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(Xe,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(q,{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(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:G.largeMedium.cssObject,decimalStyles:G.smallMedium.cssObject})}),t.jsx(Ye,{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: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:F},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(K,{})]}),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: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: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: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: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: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: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:F},style:{width:"auto"},value:Et(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Rt(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?Re.conversionAmountColon:Fe.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-E.amount,currencySymbol:E.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Re.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:E.amount,currencySymbol:E.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:G.h6Medium.cssObject,decimalStyles:G.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:R?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):ve()},style:{width:ze(!0,A,b,H,s)}},rightSideComponent:A&&!b&&R.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(qt)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -36,13 +36,13 @@ 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
|
|
|
36
36
|
border-radius: ${n.sp2};
|
|
37
37
|
color: ${e=>e.theme.colors.hero};
|
|
38
38
|
margin-bottom: ${n.sp2};
|
|
39
|
-
`,un=i(
|
|
39
|
+
`,un=i(qe)`
|
|
40
40
|
gap: ${n.sp1};
|
|
41
41
|
display: flex;
|
|
42
42
|
width: 100%;
|
|
43
43
|
color: ${e=>e.theme.colors.primary};
|
|
44
44
|
align-items: center;
|
|
45
|
-
`,yn=i(
|
|
45
|
+
`,yn=i(qe)`
|
|
46
46
|
display: flex;
|
|
47
47
|
width: calc(100% - 176px);
|
|
48
48
|
justify-content: flex-end;
|
|
@@ -68,7 +68,7 @@ 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
|
|
|
68
68
|
border-radius: ${n.sp2};
|
|
69
69
|
margin-bottom: ${n.sp3};
|
|
70
70
|
margin-top: ${n.sp3};
|
|
71
|
-
`,
|
|
71
|
+
`,K=i.div`
|
|
72
72
|
display: flex;
|
|
73
73
|
flex: 1;
|
|
74
74
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -102,7 +102,7 @@ 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
|
|
|
102
102
|
`,Tn=i(se)`
|
|
103
103
|
padding-bottom: ${n.sp3};
|
|
104
104
|
color: ${S.brandColorGoldDark};
|
|
105
|
-
`,vn=i(
|
|
105
|
+
`,vn=i(Zt)`
|
|
106
106
|
padding-top: ${n.sp3};
|
|
107
107
|
color: ${S.brandColorGoldDark};
|
|
108
108
|
`,Ue=i.div`
|
|
@@ -121,15 +121,15 @@ 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
|
|
|
121
121
|
`,Cn=i.div`
|
|
122
122
|
display: flex;
|
|
123
123
|
padding-top: ${n.sp3};
|
|
124
|
-
`,Ye=i(
|
|
124
|
+
`,Ye=i(Kt)`
|
|
125
125
|
display: flex;
|
|
126
126
|
color: ${e=>e.theme.colors.hero};
|
|
127
127
|
margin-right: ${n.sp1};
|
|
128
|
-
`,
|
|
128
|
+
`,Ze=i(Xt)`
|
|
129
129
|
display: flex;
|
|
130
130
|
color: ${e=>e.theme.colors.primary};
|
|
131
131
|
margin-right: ${n.sp1};
|
|
132
|
-
`,
|
|
132
|
+
`,He=i(_t)`
|
|
133
133
|
cursor: pointer;
|
|
134
134
|
color: ${e=>e.theme.colors.hero};
|
|
135
135
|
width: 20px;
|
|
@@ -156,13 +156,13 @@ 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
|
|
|
156
156
|
height: ${n.sp3};
|
|
157
157
|
width: ${n.sp3};
|
|
158
158
|
color: ${e=>e.theme.colors.hero};
|
|
159
|
-
`,
|
|
159
|
+
`,An=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
|
+
`,kn=i(de)`
|
|
166
166
|
color: ${e=>e.theme.colors.grey1};
|
|
167
167
|
display: flex;
|
|
168
168
|
flex-wrap: wrap;
|
|
@@ -198,18 +198,18 @@ 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
|
|
|
198
198
|
display: flex;
|
|
199
199
|
align-items: center;
|
|
200
200
|
margin-right: ${n.sp1};
|
|
201
|
-
`,
|
|
201
|
+
`,Ge=i(Gt)`
|
|
202
202
|
cursor: pointer;
|
|
203
203
|
width: ${n.sp4};
|
|
204
204
|
height: ${n.sp4};
|
|
205
205
|
color: ${e=>e.theme.colors.hero};
|
|
206
|
-
`,
|
|
206
|
+
`,X=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
|
+
`,Ke=i(se)`
|
|
213
213
|
display: flex;
|
|
214
214
|
color: ${e=>e.theme.colors.primary};
|
|
215
215
|
align-items: center;
|
|
@@ -221,17 +221,17 @@ 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
|
|
|
221
221
|
cursor: pointer;
|
|
222
222
|
column-gap: ${n.sp1};
|
|
223
223
|
margin-left: ${n.sp5};
|
|
224
|
-
`,
|
|
224
|
+
`,Xe=i.div`
|
|
225
225
|
width: 120px;
|
|
226
226
|
display: flex;
|
|
227
227
|
justify-content: flex-end;
|
|
228
228
|
align-items: center;
|
|
229
|
-
`,
|
|
229
|
+
`,Fn=i.div`
|
|
230
230
|
display: flex;
|
|
231
231
|
flex-grow: 1;
|
|
232
232
|
cursor: pointer;
|
|
233
233
|
width: 100%;
|
|
234
|
-
`,
|
|
234
|
+
`,q=i(de)`
|
|
235
235
|
display: flex;
|
|
236
236
|
color: ${e=>e.borderColor};
|
|
237
237
|
height: 20px;
|
|
@@ -247,7 +247,7 @@ 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
|
|
|
247
247
|
padding: 1px 6px;
|
|
248
248
|
border: ${e=>`1px solid ${e.borderColor}`};
|
|
249
249
|
border-radius: ${n.sp1};
|
|
250
|
-
`,
|
|
250
|
+
`,Rn=i.div`
|
|
251
251
|
display: flex;
|
|
252
252
|
flex-direction: column;
|
|
253
253
|
`,En=i.div`
|