@zeniai/web-cockpit-ui 1.14.49-dev → 1.14.50-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-Sg7hdGqd-BJ6Y4E4W.js → ACHDetailsPage-Bk-T9zeA-CfJ6MKab.js} +3 -3
- package/dist/assets/{AIPerformancePage-ChnBEIPH-BG7kRGAc.js → AIPerformancePage-DlVvPiye--DdUUWgj.js} +33 -33
- package/dist/assets/{AccountInfoPage-BxnQEiJ7-CuhRvlDO.js → AccountInfoPage-4a5_z9Mj-DMFU6f23.js} +4 -4
- package/dist/assets/{AccountInfoPageContent-DNUp3TON-D0ib25q5.js → AccountInfoPageContent-DevYKy6p-CMullRtM.js} +19 -19
- package/dist/assets/{AccountLockedInfoModal-CA152nkz-pxVtwGi8.js → AccountLockedInfoModal-BvtyA_xO-CmYw1Jj0.js} +3 -3
- package/dist/assets/{AccountReconDetailsDrawerPage-C2rkkVPs-fzY1AEUi.js → AccountReconDetailsDrawerPage-BXEQ6cqS-j66Ucrn-.js} +12 -12
- package/dist/assets/{AccountRow-36Vtwpnr-DYEexfmz.js → AccountRow---y_a4hQ-CjUH_owU.js} +11 -11
- package/dist/assets/{AccountsPromoCardStack-C2HYR94b-Ds_RYsZp.js → AccountsPromoCardStack-o9Og7QNk-DK3bk-1Y.js} +17 -17
- package/dist/assets/AddAddressForCardDrawer-Blh9zJ9k-Qnts0jiB.js +6 -0
- package/dist/assets/{AddToWalletPage-C_3jcdka-CL8bElM-.js → AddToWalletPage-F_5GSEK1-DfJbrH2K.js} +19 -19
- package/dist/assets/{AgingReportsPage-BPxROntM-AndJUsDi.js → AgingReportsPage-gY6j3hD1-CYYgQtbs.js} +6 -6
- package/dist/assets/{AllUserItems-D4ZSsopG-BpcSmXEj.js → AllUserItems-DuqNI8Rn-C7-Ck6tc.js} +4 -4
- package/dist/assets/{ApAgingDetailPage-Cg_V8f7G-DR1ckQuO.js → ApAgingDetailPage-BCIZ807--CCB1bmdU.js} +5 -5
- package/dist/assets/{AppBasePage-6i0Pu1mT-CYhfw2EW.js → AppBasePage-Cju4WpBd-B7EKJOCZ.js} +7 -7
- package/dist/assets/{AppDrawerContent-B6_iNfLZ-D1T-ud79.js → AppDrawerContent-CJZlwte8-BLgFIh1I.js} +4 -4
- package/dist/assets/{ApprovalRulesSettingsPage-BnsXfKAE-CtUMFa5Y.js → ApprovalRulesSettingsPage-DcFFdV1D-DwwBhpx6.js} +3 -3
- package/dist/assets/{ArAgingChart-DSDIg2mS-75abgEKE.js → ArAgingChart-B_ybJjur-DHM_zS9S.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BYb9qi8c-CJX-8A7X.js → ArAgingDetailPage-CXBgcuJx-BSdM7AD1.js} +4 -4
- package/dist/assets/AttachmentView-D9MocUS9-BtgOsoHb.js +101 -0
- package/dist/assets/{BankAccountSection-CwYIBEbQ-8mzvKjUV.js → BankAccountSection-CFnXlTaa-wnOEAJae.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-DPIyvB6i-CQf_GPyw.js → BankAccountWarningSection-Dl7DA-Xf-Bk2O3H_M.js} +4 -4
- package/dist/assets/{BankConnectionsSettingsPage-O03gMCgp-ktWZ4Eak.js → BankConnectionsSettingsPage-p7NTe5UU-CDYUeY8o.js} +29 -29
- package/dist/assets/{BillDetailPage-D-fa_jc1-20mAoSs4.js → BillDetailPage-Dy7FjtFP-DCGKKisv.js} +6 -6
- package/dist/assets/{BillPayApprovalRuleDetailPage-D_A4wH0g-D4_Up7SF.js → BillPayApprovalRuleDetailPage-BkROIItP-FF3IQxfd.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-gdOVuTqR-Dm9-SFtE.js → BillPayApprovalRulesPage-wnxmErWK-CnIadX77.js} +7 -7
- package/dist/assets/{BillPayPromoPage-SFpIScHQ-DqufeKOh.js → BillPayPromoPage-B09wLq8f-CG5fEZdp.js} +7 -7
- package/dist/assets/BillPaySetUpPage-bK5uUxWL-CxvMnvOZ.js +42 -0
- package/dist/assets/{BillingSettingsPage-CdaNgKMv-qPNA3e0-.js → BillingSettingsPage-yqdPoo5n-C-yi5L8L.js} +6 -6
- package/dist/assets/{BillsBulkReviewDrawerPage-DPgrXGy0-CnvGZNH8.js → BillsBulkReviewDrawerPage-BPoUzM5h-BT57ZA9A.js} +1 -1
- package/dist/assets/{BoxItem-Bla_vZe9-hVwWcQFM.js → BoxItem-BwOmI0eo-Bg_oDJrZ.js} +1 -1
- package/dist/assets/BusinessVerificationPage-DliZ1mtV-DeT5LWZH.js +140 -0
- package/dist/assets/{CardNumberSubText-B-HsVbRQ-DD1zwm43.js → CardNumberSubText-CAQ8mWuF-vKMkb_aM.js} +1 -1
- package/dist/assets/{CashbackDetailPage-gIJ-1lJF-DJvf8K0I.js → CashbackDetailPage-B1XEtXzZ-1-2pfDRY.js} +17 -17
- package/dist/assets/{ChargeCardDetailPage-Dgyl5IJV-dpF3lMeE.js → ChargeCardDetailPage-C35g3tyS-Cr_XhDe3.js} +21 -21
- package/dist/assets/{ChargeCardListPage-CgN69uh_-OWvNh6ZR.js → ChargeCardListPage-DpJ2ukG9-Chnlo_Ls.js} +9 -9
- package/dist/assets/{ChargeCardListTable-Bq3FUrUG-ZxNJoN2u.js → ChargeCardListTable-0mvBVaVR-DezuEV69.js} +26 -26
- package/dist/assets/{ChargeCardPromoPage-DqDd3QeF-DwKhI9v5.js → ChargeCardPromoPage-xcfRobP3-CBiQn6_2.js} +7 -7
- package/dist/assets/{ChargeCardSetupPage-CBP4-JyP-CTSo8lEf.js → ChargeCardSetupPage-CHK4_mR3-uQ6PE_iN.js} +2 -2
- package/dist/assets/{ChargeCardStatementsPage-CVJyNhXt-BWmc6WcQ.js → ChargeCardStatementsPage-B746tyaI-BpHM8ktT.js} +8 -8
- package/dist/assets/{ChargeCardUtils-DaDe1sIq-Cvp2W_S2.js → ChargeCardUtils-Bel9RKog-BYoByp7T.js} +1 -1
- package/dist/assets/{ChaseOverlay-C1SVk4v1-CPf76lKD.js → ChaseOverlay-Cni-YJBq-ki7qKNfn.js} +2 -2
- package/dist/assets/CheckDepositDrawerPage-h5dYs8n1-xM7OVVph.js +206 -0
- package/dist/assets/{CollapsableReportTable-QtToztmP-Dtu3g55w.js → CollapsableReportTable-Bm4Knvjp-CyuCgDm7.js} +48 -48
- package/dist/assets/{CompanyOfficerDetailsSection-Ctoe2QDP-DNnYQb9v.js → CompanyOfficerDetailsSection-BFrN2zbs-E0-ko42y.js} +19 -19
- package/dist/assets/CompanyPassportCard-CFfVmwtT-DyrnlDth.js +42 -0
- package/dist/assets/{CompanyPassportPage-Dd53DZFe-CBQbcAq0.js → CompanyPassportPage-BwuQEpR6-BzltPqSl.js} +21 -21
- package/dist/assets/{CompleteProfile-DlFmFq5M-BMyL27qP.js → CompleteProfile-DFgQXxaw-eh46GqaL.js} +1 -1
- package/dist/assets/{ConfettiBurst-b3SEoaSY-DuWTUbzD.js → ConfettiBurst-CNGVGH7R-OhWdZxEw.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DwvlzEci-BiFTiX_3.js → CreateOrEditVendorPage-BEOugGdV-BkOi2-LS.js} +12 -12
- package/dist/assets/{CreditCardPaymentDrawerPage-y5jJQGS5-DE9_oAZ2.js → CreditCardPaymentDrawerPage-DL99-asT-IVw3ZmF0.js} +9 -9
- package/dist/assets/{CreditCardPaymentPlgSection-BbVnrMer-CMSyRH0x.js → CreditCardPaymentPlgSection-Bo8bjkSd-Cj2DAE6L.js} +5 -5
- package/dist/assets/{CurrencySelectField-B1rl6vQ0-BGOf9wTv.js → CurrencySelectField-Cy3069QS-B4qJii4j.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-DlFjo3Sv-BTL8l8KD.js → CustomerOnboardingActivationPage-DYHxB1DV-DG10uG78.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DGNxouoJ-cK8xEcln.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BxsQBBs2-DKJ8rMmR.js → CustomerOnboardingDetailPageSkeleton-C-eQB--l-D3xzBHMg.js} +10 -10
- package/dist/assets/CustomerOnboardingNoStepsPage-CdXpLzmq-BKo9Mc6w.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-Cw66PfQC-VEMQRRng.js → CustomerOnboardingPage-BScJEPx_-eyx5FypG.js} +2 -2
- package/dist/assets/CustomerOnboardingProductSuitePage-D8hA3Lv_-DiFPqcjv.js +202 -0
- package/dist/assets/{Dashboard-I5fepHMP-Cevcxjrr.js → Dashboard-D5_YXdct-EKQOlNbW.js} +1 -1
- package/dist/assets/{DashboardReportPage-GkuxGc3t-BHv_HG6x.js → DashboardReportPage-Gq4XjHm5-CgkxriU9.js} +19 -19
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Ba6mjrpq-DflDlyBs.js → DashboardSidebarBackgroundAnimation-CfSTodXy-DUwH9YlE.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-8pfQMKs3-BiFZwIDL.js → DepositAccTransactionItem-CfjfIBsm-DifB7Rhh.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BiTWRxfT-FXfV2auu.js → DepositAccTransactionListPage-BxtgMsQs-1C9yKKse.js} +8 -8
- package/dist/assets/{DomesticWireDetailsPage-4Dh_YZ8--Dac_JC4h.js → DomesticWireDetailsPage-BdmpuYqv-CI5W3KSh.js} +2 -2
- package/dist/assets/{DownloadOverlay-D6S9Obtr-Cl7jFmI9.js → DownloadOverlay-B-TeCIiN-cLZkE7c6.js} +18 -18
- package/dist/assets/{DrawerPage-D13P_uWJ-DwxMNR4o.js → DrawerPage-BayK5Cvt-DenqrNxQ.js} +7 -7
- package/dist/assets/EditPeoplePage-moCKwxdw-kdnDyFe4.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-COg9-yb6-CIDvV_2l.js → EditReimbursementDetailPage-DiRxcH2i-CqEhpelp.js} +1 -1
- package/dist/assets/{EntityDetailPage-BbITG8i5-BGeGObtn.js → EntityDetailPage-B0_iMMXi-BFK6-vDg.js} +4 -4
- package/dist/assets/{EntitySummarySection-BIawu9Ww-jWQbkUh5.js → EntitySummarySection-Bzw9paM5-CCulefX0.js} +1 -1
- package/dist/assets/ExpenseAutomationOverviewPage-CN8oHejg-BCXoKv-G.js +222 -0
- package/dist/assets/{ExpenseAutomationPage-BzqJFgyb-Cn25OmeO.js → ExpenseAutomationPage-nQw-48Jn-1DFXEYwM.js} +29 -29
- package/dist/assets/{ExpressPayPage-ciCYdxZj-CZU8Twmg.js → ExpressPayPage-BbxW-YuU-D_hIdCft.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-Bbbcp0Yy-YrV3pTR0.js → FeaturePreviewPage-CMFiodSD-BBGWeje6.js} +2 -2
- package/dist/assets/{FollowStepsSection-B6uVl1dT-DNC0mar6.js → FollowStepsSection-s4utHS95--Y07h10n.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-BOTtaikB-BvTnXg7j.js → GlobalReviewListPage-Ci8wGpO6-BRGgqus8.js} +5 -5
- package/dist/assets/HelpButton-CdHOhYwZ-vfgKqvvf.js +28 -0
- package/dist/assets/{InformationCardStack-Bm0Oh5VL-8LXcrFIu.js → InformationCardStack-C3Q674Be-BHdplWUC.js} +2 -2
- package/dist/assets/InsightsCardStack-CA-O6aZn-DaypKy1-.js +79 -0
- package/dist/assets/{InsightsSection-wZpjHdxh-C71dHBxC.js → InsightsSection-MD_7iYyd-CoTr4evA.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-Cl-Y86Nj-CQcfLXmx.js → IntegrationsSettingsPage-Gpq_ujC4-Cz49FC1Q.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-DkEpnlVz-KQGlf6zC.js → InternationalWireSwiftDetailsPage-DXQCRbA4-jvd32UXh.js} +18 -18
- package/dist/assets/{InternationalWireVerificationPage-Ra78kWjZ-C8uhi-CA.js → InternationalWireVerificationPage-Z9MeS_FE-CvHI3GW5.js} +13 -13
- package/dist/assets/{InviteFormPage-Be3Tqvh8-B9YJH8eq.js → InviteFormPage-CRBxUW8F-ByLwGMQx.js} +20 -20
- package/dist/assets/{InvitePageListView-BuooPBpK-CTSaKN1R.js → InvitePageListView-BLcD6yhf-BHIBTtPc.js} +14 -14
- package/dist/assets/InvitePeoplePage-B6vbKnl8-3Fr2JjFu.js +12 -0
- package/dist/assets/InvoiceUploadSection-C84g6m-u-CTBUGTYr.js +140 -0
- package/dist/assets/{IssueChargeCardPage-C_4bD6HQ-C7zzGhpe.js → IssueChargeCardPage-CtwG1FQW-CIw40zi7.js} +20 -20
- package/dist/assets/{LabeledAddressValue-Ctk46FKq-DXzMzmT1.js → LabeledAddressValue-BbmveEDp-misv-kNS.js} +1 -1
- package/dist/assets/LabeledAddressValueField-BplBue9M-DBaZ2tp6.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-CATsgVfE-C27gMaQw.js +16 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-Bjh5B-q0-q0j6ciRz.js → LabeledCreatableSingleSelectField-B-m-gINB-DKWDwbZB.js} +2 -2
- package/dist/assets/LabeledDocumentField-pmF98M72-DhaPqfnm.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-BX06HLc2-DYKhZ_Ts.js → LabeledDropDownFormattedTextField-DQRvDrH1-nhXIGcQS.js} +1 -1
- package/dist/assets/{LabeledText-DZVRFAkG-DkVxNbLd.js → LabeledText-Dr7b3HNT-JqfYF6TM.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-QoYZvvyE-DPkhJaYm.js → LabeledUserSingleSelectWithSubtitlesField-DucxxQKW-DpGIkkDj.js} +10 -10
- package/dist/assets/{LabeledZeniRolesDropDownField-D9I9Lxk2-CILsRId4.js → LabeledZeniRolesDropDownField-Fg_p41gp-BLJgU8CM.js} +17 -17
- package/dist/assets/{LinkJETransactionPage-C8K00-1a-BdYYSG3G.js → LinkJETransactionPage-CbtDoohS-BYYpt-Eb.js} +4 -4
- package/dist/assets/LockCardPage-CfupCyYS-DqBQdk1I.js +558 -0
- package/dist/assets/{LowBalancePopup-CQQrhufv-BRlLHtBa.js → LowBalancePopup-DPfkvSKp-CZ231Z71.js} +6 -6
- package/dist/assets/{MagicLinkACHDetailsPage-BUGK2W6m-BANuDDL9.js → MagicLinkACHDetailsPage-TJ1c4k1c-e1ecoiPU.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CdGw-8SL-CS027aBy.js → MagicLinkDomesticWireDetailsPage-Dp4F_O6C-BLuK26i4.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-ioBaDPw3-BPFqiBSS.js → MagicLinkInternationalWireDetailsPage-B5TMFBsw-DE5eebOC.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BBnZ5N8r-CaS0ld-S.js → MagicLinkSuccessPage-XmGUk2UP-t-ML7fFm.js} +3 -3
- package/dist/assets/{MagicLinkTitleSection-C0nl5UrB-Di7GkP7e.js → MagicLinkTitleSection-B3CVACcv-CraOpOkK.js} +3 -3
- package/dist/assets/{MailingDetailsSection-DeaanyVd-DQKkTSnq.js → MailingDetailsSection-CFBmvYV_-DKWh8ntV.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-CGGit3Ny-DKPRY5LI.js → MeetingCalenderPopup-Dd1Z-rK3-BN7CJUqh.js} +5 -5
- package/dist/assets/{Menu-BWGaQpko-B1hEJhh5.js → Menu-AlNg4aZb-ezBRMKxQ.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-Bg_ULoVa-CxqhZSCX.js → MyBankConnectionsSettingsPage-De_mXouS-CFWPRCdV.js} +9 -9
- package/dist/assets/{MyPendingActivationChargeCardListPage-DulXydFx-CskMu8cW.js → MyPendingActivationChargeCardListPage-CdDF0PA3-CqrUarF6.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-C2p1O3ct-CWNCW8b-.js → MyProfileSettingsPage-BE6GsTMH-CiY2hNHx.js} +6 -6
- package/dist/assets/{NavBarWithPicker-BCLF3DOO-BL8tDpIu.js → NavBarWithPicker-CTxQ7r97-Dg-pVfaM.js} +4 -4
- package/dist/assets/{NavigationArrow-BPrl00va-kEFRJVOf.js → NavigationArrow-DCZBdY6w-DXzWpT0y.js} +1 -1
- package/dist/assets/{NavigationDots-O0W_nmju-Bbb_MNmq.js → NavigationDots-D6hsvkMX-Dc9TKWSO.js} +3 -3
- package/dist/assets/{NewGlobalMerchantPage-D6e-akD5-Bz4KL-u9.js → NewGlobalMerchantPage-D5Mo9EMy-C_x_UB26.js} +7 -7
- package/dist/assets/{NoDataChart-C9yfpsin-Sd5PCeur.js → NoDataChart-CI5rKAJf-IpywfvaI.js} +1 -1
- package/dist/assets/{NoDataTable-DKv0uhi4-DZ3R1eiz.js → NoDataTable-C4YVpnKy-bA2EH_fQ.js} +1 -1
- package/dist/assets/{NotFoundPage-B5ou4w73-BIVC4g6u.js → NotFoundPage-Dx56yYo3-CJc22lOw.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-BmrtRoZK-C4tjtLGG.js → NotificationSettingsPage-hOwPscnS-CcQKVe46.js} +8 -8
- package/dist/assets/{NotificationsListConfig-DQ4Ho61v-B_UzJqt6.js → NotificationsListConfig-DV_yEagM-CKLpxpSM.js} +1 -1
- package/dist/assets/{NotificationsPage-UraNN_iD-BYa0kjC2.js → NotificationsPage-B83do0my-DGcJO7Z-.js} +25 -25
- package/dist/assets/{OpExByVendorPage-BRPHj5T9-CJ2zs8i0.js → OpExByVendorPage-WMTGx5ZH-CmZADN9R.js} +5 -5
- package/dist/assets/{OverlayContainerPage-B8Rk53Fe-BZkbGcFB.js → OverlayContainerPage-CZaWUQTs-taUnIcxu.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BMjOYb2a-ac2i66Bf.js → PandLWithForecastPage-DyROxN6C-DH_Ynpil.js} +9 -9
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-B38HgGEM-OQqaoswr.js → PaymentAccountSetupBillingAddressSection-CHwhW69s-PBAsz7VT.js} +7 -7
- package/dist/assets/{PeoplePage-BpMkRqCs-DXNskFpP.js → PeoplePage-DzRLyM45-C2knIeVL.js} +11 -11
- package/dist/assets/{PortfolioAllocationFormPage-tnv4t4QU-DojJmLI3.js → PortfolioAllocationFormPage-CIvcJ9hx-C0L8itY1.js} +9 -9
- package/dist/assets/{PortfolioDetails-BQCQctOT-CxWVFhWY.js → PortfolioDetails-8UvaROaS-BV0kfCx8.js} +15 -15
- package/dist/assets/{ProductsCarousel-BUJiJFiX-BHdXJVWV.js → ProductsCarousel-Di0lW14P-gv6t1pzJ.js} +3 -3
- package/dist/assets/{PromoBaseCards-DwBIZ04X-BovCTw4-.js → PromoBaseCards-zfJOT86M-Cxis92cB.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-MjldLygA-BHVMfA9u.js → QBOConnectionDialog-DYCNzDCW-XbK2K7lq.js} +4 -4
- package/dist/assets/{QBOSetupSection-BknE7gT4-B1wY7X0G.js → QBOSetupSection-DtzlFUKs-CMurUb08.js} +6 -6
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DoWiv_tN-DEovISqR.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-C0Plqj93-FjbcelWF.js → ReimbursementApprovalRulesPage-Drav6sw6-CwgLZUAr.js} +40 -40
- package/dist/assets/ReimbursementDetailPage-ByCpOGLu-Dsc_sGAc.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-X_lNy9W2-BOtmzmNq.js → ReimbursementPromoPage-DOhnXgWW-DuNdw2WY.js} +8 -8
- package/dist/assets/{ReimbursementSetUpPage-DJrOp98g-C4tie5bv.js → ReimbursementSetUpPage-B6m_3OjH-BpWl6ujY.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BZL9RVfR-hNQNkikS.js → ReimbursementsBulkReviewDrawerPage-DSbjVLzo-CVRSkvAX.js} +1 -1
- package/dist/assets/{ReloadCard-aqfmXbU5-TeaWaIOz.js → ReloadCard-C7TwZcxr-vlQuHsih.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-D93qno__-BFHmbylc.js → ReportTableViewSelector-Dw5N3kLR-QNx8XxoO.js} +7 -7
- package/dist/assets/{ReportsPage-B0G-7pwv-kj0A7PNF.js → ReportsPage-Cn38qn0l-B-nkuuwa.js} +9 -9
- package/dist/assets/{RevenueChart-BRlahWs9-ClMCTsw3.js → RevenueChart-Cl6AG_A1-Da4QIV8W.js} +16 -16
- package/dist/assets/ReviewDetailsPage-DOU42eYb-DP8hDUqG.js +290 -0
- package/dist/assets/{ReviewOverlay-yCaY1z8K-Y0rYlFxy.js → ReviewOverlay-Cekl52Tp-C4ta_oQT.js} +13 -13
- package/dist/assets/{RoleWithToolTip-C--9WRHn-CSitueNW.js → RoleWithToolTip-Cxn0Q3kG-C5ZkEEHf.js} +4 -4
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-hn74AoeS-Dhn_4Mgq.js → ScheduleDetailsFixedAssetsPage-By4ikZQn-BUboWldf.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-DxdxAx1S-CIiBRojV.js → ScheduleDetailsPage-CMCqsjrb-DIQmIy8n.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-Dq0ZRi2H-D1a5nR8V.js → ScheduleSequenceTable-DNVQ2kVn-kr2CXE0a.js} +49 -49
- package/dist/assets/{ScreenRoutes-CQtuw2xr.js → ScreenRoutes-CngnFJ28.js} +1 -1
- package/dist/assets/{SetUpAccountSection-NP9u54_o-B4yTNPQs.js → SetUpAccountSection-nZ68xEMF-CKqnZuo_.js} +8 -8
- package/dist/assets/{SetUpDefaultSection-BdVOXSh8-NrinDjPO.js → SetUpDefaultSection-e5I_whKg-CWXMi4yS.js} +2 -2
- package/dist/assets/SignIn-e-7z9G0X-C1YFpsfM.js +448 -0
- package/dist/assets/{SignInScreen-BouHtcGb.js → SignInScreen-C77r6V5a.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CfzCjazp-CLg3V-ID.js → SpendManagementListViewPage-BPfU_Lec-BnogwbnW.js} +6 -6
- package/dist/assets/{SpendManagementPerTabPage-CBOlK1hg-DEzNL2pv.js → SpendManagementPerTabPage-CIVfUAF0-7NlzZC3p.js} +48 -48
- package/dist/assets/{SpendManagementSection-DFVWVBv8-Bnfi_ZJV.js → SpendManagementSection-DilGVAEg-UyhbLf0x.js} +5 -5
- package/dist/assets/{SpendMgmtSetupAccountSection-ZPHoUnnr-Dh8eEb_J.js → SpendMgmtSetupAccountSection-BW8Ip5wi-CkkTNUfg.js} +4 -4
- package/dist/assets/{StatementItem-CwkYfX3v-Dak8ss8U.js → StatementItem-li8rxfjF-DE4xpTDg.js} +2 -2
- package/dist/assets/{StatementsPage-DpjcrDLZ-CI5Yw27o.js → StatementsPage-D0VgSNCy-Bi9vK3HK.js} +1 -1
- package/dist/assets/{StatusSwitcher-6n_dRY-n-BNMaDHq9.js → StatusSwitcher-Dhw4Hsko-VYfBZyYc.js} +2 -2
- package/dist/assets/{SubTabSwitcher-DEXr9JG8-DYl-5nkS.js → SubTabSwitcher-CaDODjQq-zPof6WQa.js} +1 -1
- package/dist/assets/{SummaryCard-DY8o3K8p-BAhmWEkq.js → SummaryCard-BZp6ZbhG-D2hcdAY2.js} +1 -1
- package/dist/assets/{TaskManagementPage-V-99_2Xz-DTPBZKOy.js → TaskManagementPage-CdzxcwSR-FTY6PAR3.js} +14 -14
- package/dist/assets/{TimeRangeSwitcher-5vzTnmwD-21oyU6e-.js → TimeRangeSwitcher-BsecxqSf-68LRPk1P.js} +6 -6
- package/dist/assets/{TimeframeSwitcher-B1ZBKWlB-DhXXrYF_.js → TimeframeSwitcher-CXQS6_Dj-pJvRjYVF.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-C8w7NoSs-BpbC3sMX.js → TimeframeSwitcherWithToggle-xUcT4SAn-Dxw3KxOM.js} +1 -1
- package/dist/assets/{TopExCard-CflRvGFb-BAjYz-Iu.js → TopExCard-DpBmbBOH-rqB_17zU.js} +5 -5
- package/dist/assets/{TopExDetailPage-BNouRPM_-Fc2qW_d-.js → TopExDetailPage-CXYcu4vC-BudfE4e2.js} +21 -21
- package/dist/assets/{TransactionDetailPage-uJRfI4fh-DesqTbc7.js → TransactionDetailPage-C-oGYPM2-XIgrFLJc.js} +23 -23
- package/dist/assets/{TransactionList-C--m4NRu-UliJnI2L.js → TransactionList-d0Qe-D7V-BamSxQ9h.js} +9 -9
- package/dist/assets/{TransactionListBig-Cbf9p6a1-DD-Iltyn.js → TransactionListBig-By3GVBgG-Jvz7Xg_z.js} +11 -11
- package/dist/assets/{TransactionListPage-BXQ4Ig8E-twBFfLzE.js → TransactionListPage-ChIGfg3A-ZqEGHvAv.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-CKdVogwj-DhA4vkZ6.js → TransactionVendorDetailPage-D3stMRFF-C_IPHvl6.js} +3 -3
- package/dist/assets/{TransferDrawerPage-BS3lnMMA-D7Uz75yc.js → TransferDrawerPage-QVYSxd-3-BFQ5htQm.js} +22 -22
- package/dist/assets/{TreasuryOverviewPage-U1p6PrnG-BGJad2Km.js → TreasuryOverviewPage-CumKNGbQ-CAGR3hz2.js} +12 -12
- package/dist/assets/{TreasuryPromoPage-C2wmo0Ex-BmAmX39K.js → TreasuryPromoPage-H2Zbw_Yg-DMBJJl3b.js} +8 -8
- package/dist/assets/{TreasurySetupPage-CMl-qGhi-CNu0Qcao.js → TreasurySetupPage-BtUIYjn_-BvLlmakc.js} +4 -4
- package/dist/assets/{TreasuryStatementsPage-BdmLrhA5-D4Nu2ddG.js → TreasuryStatementsPage-B04Ze6pO-DBs8NMkW.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-Q7prcczk-D25azc_v.js → TreasuryTaxLetterPage-D95U9592-A4FKzQli.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-CwvijEQN-Bwp2pRyY.js → TreasuryTransferOrReviewPage-BhHf8lnF-DBq27s-a.js} +91 -91
- package/dist/assets/{TrendChart-SEWDcga_-BO99NbSF.js → TrendChart-BkdPYoj4-D9rpAM75.js} +4 -4
- package/dist/assets/{TrendWithTransactions-CgSaPEFh-CYd6HAWr.js → TrendWithTransactions-CWgoVTcb-CGbGhBS1.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-7LqO7hHL-BDugIDym.js → UncategorizedAccountsMappingPage-LdRZIYp5-BtaeEGaz.js} +10 -10
- package/dist/assets/{UnitIntegrationPage--jgHD8q1-S0pNI1GJ.js → UnitIntegrationPage-Ms9BFSjK-PPYprz9i.js} +4 -4
- package/dist/assets/UploadAdditionalDocumentOverlay-D6x4OGXl-CxKK3Ose.js +38 -0
- package/dist/assets/{Vendor2FAPopup-B0fwm9Q3-DbiowxgB.js → Vendor2FAPopup-UmgHYXvP-pOrgh_fD.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BzgsncOJ-D-wRcBTA.js → VendorACHDetailsPage-B3mdoPp8-DRr-74cL.js} +1 -1
- package/dist/assets/{VendorDetailPage-CA3LTIGq-BWmGwvj9.js → VendorDetailPage-Cj6U1nII-BSRlPQ6y.js} +12 -12
- package/dist/assets/{VendorDomesticWireDetailsPage-Ch42jvVt-Mj8sx7lI.js → VendorDomesticWireDetailsPage-BrZCPlAd-BL-hjFrP.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-QjRWxn7V-CX1a7DDS.js → VendorFiling1099EditablePage-TUixssYI-v6dW0vMN.js} +12 -12
- package/dist/assets/{VendorFirstReviewPage-C-ONdLcA-B0_m6y9f.js → VendorFirstReviewPage-BlUNcGLE-B0NOpsas.js} +44 -44
- package/dist/assets/{VendorInternationalWireDetailsPage-qDx2aiDq-a0VdSR9P.js → VendorInternationalWireDetailsPage-DhHWsAne-VClJg3R1.js} +10 -10
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DICOFwMp-qejyR4Yy.js → VendorInternationalWireSwiftDetailsPage-CIvevemJ-Cnw2il7s.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D0f3TRGG-D68uFCzI.js → VendorsAccountsSection-viRwhErR-BEJjt5C_.js} +4 -4
- package/dist/assets/{VerifyDevice-BMtMcC41-Dbg2e_4c.js → VerifyDevice-l7opea4l-BtT1vRFj.js} +2 -2
- package/dist/assets/{VideoPlayer-DKMO88LY-CpdcOtzz.js → VideoPlayer-BBVi4SOz-9SgJ3yaM.js} +1 -1
- package/dist/assets/{VideoPopup-2z3T5Lnh-DpdsoCXa.js → VideoPopup-CmXRuhQp-5r314mYD.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-yRdYuhLZ-Rl0k4Hgw.js → WarningsDrawerPage-Ckg9AVsj-B9emohJx.js} +2 -2
- package/dist/assets/{ZeniAccountDetailPage-ISiEkizf-DqMBVEzK.js → ZeniAccountDetailPage-B-jNA-tI-ms245E2y.js} +25 -25
- package/dist/assets/{ZeniAccountListViewPage-BTrvu_w1-CvQRO_G0.js → ZeniAccountListViewPage-oBGTDIBN-C9aSAN9Z.js} +8 -8
- package/dist/assets/ZeniAccountNavBarPieces-JScxmkmi-BP103W6l.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-Dac1THyO-Cwp-e4be.js → ZeniAccountPromoPage-BHzfVbtI-P2leDJcs.js} +20 -20
- package/dist/assets/{ZeniAccountSetupPage-ZSfjnq4--Cch7x_8N.js → ZeniAccountSetupPage-DD_QA8h8-DpmP7jf1.js} +4 -4
- package/dist/assets/{ZeniCopyright-C4Hdl7V0-Ca9rvA1h.js → ZeniCopyright-BPSL51G5-DcEAxBC-.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-CAiR-tiF-D35xHKkQ.js +63 -0
- package/dist/assets/{analyticsHelper-Cf24DjyD.js → analyticsHelper-CnRA1Gcw.js} +1 -1
- package/dist/assets/{analyticsHelper-CaxfROfX-BJw_t2lW.js → analyticsHelper-kwNg2DUZ-Bg-BVsZB.js} +1 -1
- package/dist/assets/{chartTypes-CQLwj1wn-DieV0CBv.js → chartTypes-CCFDB3ft-gWEy54C4.js} +1 -1
- package/dist/assets/{commonDimensions-BqqLiZ_H-B0_d-72y.js → commonDimensions-FafZVRxo-CSxm8Nzu.js} +1 -1
- package/dist/assets/{detailCommon-_wteS7vQ-C_UD8u6z.js → detailCommon-Bk08SAcF-CmJo8a2_.js} +7 -7
- package/dist/assets/{downloadPdf-DqURwcIt-CmMnbB-x.js → downloadPdf-Bj4Y4BB4-D1l-PLqG.js} +1 -1
- package/dist/assets/{index-BkGkQn7J.js → index-dX8TSOm6.js} +72 -72
- package/dist/assets/{mapLoadingInProgressToTreeNode-kidLNkmQ-CU04H-qr.js → mapLoadingInProgressToTreeNode-Cx24jJa--D8U4jxjz.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BSUhjNT5-J3kjBIi7.js → mapSectionWithAcOnlyToTreeNode-BRxefLX_-DoZmzx4J.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-m5nGTY8W-trYJ4bob.js → mapSpacerToTreeNode-VUbus-r3-pBb-m1M8.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-D5QkbXkx-D1QrAIga.js → mapTimeframeBalancesToTreeNode-B6aAv6pB-C6UbW4bf.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CHHGNXiT-D9Kz1L-n.js → mapTimeframeBalancesToTreeNode-CSScIc2H-CNAuSnEW.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-o4l_IoBF-BIaJA13t.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DBDE1nuS-CTldXama.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-bhm-pCR2-Cjf_xcN8.js → toCOABalancesWithID-M4gPqViI-CcaXT71y.js} +1 -1
- package/dist/assets/{toChartData-3h9AvMdw-BtuTX52b.js → toChartData-CrsGFSA1-DRCqW50O.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CJ61L8mT-DGtx7Czf.js → treasuryColorHelper-B8Evc_xJ-C2M6xUma.js} +1 -1
- package/dist/assets/{uploadAttachment-Bf61v1Xo-BdDTy9wy.js → uploadAttachment-PM-_GgYg-CTQQfxMY.js} +3 -3
- package/dist/assets/{uploadReceipts-CPeNTSex-B9QC1Ib6.js → uploadReceipts-B3-z3hJ9-DECDgzHp.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddAddressForCardDrawer-BZ0RCcja-DeN0wdYs.js +0 -6
- package/dist/assets/AttachmentView-CdNQ2xWp-Bvpk1SdZ.js +0 -101
- package/dist/assets/BillPaySetUpPage-mD_IeiJx-C2AEnkkH.js +0 -42
- package/dist/assets/BusinessVerificationPage-CXxO69rJ-B2xvcQL_.js +0 -140
- package/dist/assets/CheckDepositDrawerPage-DSR4fX1u-B41Tuwd0.js +0 -206
- package/dist/assets/CompanyPassportCard-D1Qw3xp1-BcKy74pq.js +0 -42
- package/dist/assets/CustomerOnboardingContainerPage-gA22hWiI-zVgsGpbA.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-r85EAGP9-DFBVNcDX.js +0 -66
- package/dist/assets/CustomerOnboardingProductSuitePage-DjNvBda4-BxY-0AsA.js +0 -202
- package/dist/assets/EditPeoplePage-DF_58Z4U-DoX8iNFa.js +0 -55
- package/dist/assets/ExpenseAutomationOverviewPage-DleEJVpj-D4jVCqMP.js +0 -222
- package/dist/assets/HelpButton-CzyBnp0B-ChA2L75P.js +0 -28
- package/dist/assets/InsightsCardStack-DJQ_W9fy-Bkv78BK1.js +0 -79
- package/dist/assets/InvitePeoplePage-BN0ktc82-BLO9Ep-Z.js +0 -12
- package/dist/assets/InvoiceUploadSection-BQgfwgdt-DRCL-kG6.js +0 -140
- package/dist/assets/LabeledAddressValueField-Dg0TLzPn-C8l26S45.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-DJSFmpIX-C25AJyD4.js +0 -16
- package/dist/assets/LabeledDocumentField-BT7CRAVI-BPUiB9Ug.js +0 -41
- package/dist/assets/LockCardPage-Cv7cc2yv-DzSZdmRI.js +0 -558
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DH75g3pT-WgQ1f6n1.js +0 -26
- package/dist/assets/ReimbursementDetailPage-DNaaqXYR-fQnzyGQt.js +0 -314
- package/dist/assets/ReviewDetailsPage-DaLjRiFW-DH1pO3BU.js +0 -290
- package/dist/assets/SignIn-nUeTTVKC-CJvTPeOF.js +0 -329
- package/dist/assets/UploadAdditionalDocumentOverlay-D2Tin1CX-S9tpm7GT.js +0 -38
- package/dist/assets/ZeniAccountNavBarPieces-C3IR1FEp-39hGD_At.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-Co5sY7gl-BoVHF7sd.js +0 -63
package/dist/assets/{DownloadOverlay-D6S9Obtr-Cl7jFmI9.js → DownloadOverlay-B-TeCIiN-cLZkE7c6.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,
|
|
1
|
+
import{j as t,bC as Xe,o as a,e as le,bD as et,n as Re,l as d,g as de,C as H,a6 as tt,M as Y,bE as rt,bi as ze,r as z,ar as Ne,s as T,bp as we,$ as G,m as ce,X as ee,u as Be,br as at,bF as me,bG as pe,h as Ee,bH as Qe,q as fe,bI as W,bg as ot,as as st,bJ as it,bK as nt,b8 as lt,bq as dt,J as ct,bL as mt,by as pt,A as ft}from"./index-dX8TSOm6.js";import{b as u,n,k as Ve,f as he}from"./vendor-rkTZJa59.js";import{m as ht}from"./analyticsHelper-kwNg2DUZ-Bg-BVsZB.js";import{c as ut,h as bt}from"./ReportTableViewSelector-Dw5N3kLR-QNx8XxoO.js";import{t as gt}from"./page-detail-CWX5S47F-BBa5wfAm.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./CollapsableReportTable-Bm4Knvjp-CyuCgDm7.js";import"./AccountRow---y_a4hQ-CjUH_owU.js";const xt=["profit_and_loss","profit_and_loss_by_classes","balance_sheet","cash_flow","cover_page","operating_expenses","revenue","net_burn_or_income","cash_position","cash_in_cash_out"];function te(e,o,r,s){let i=0;if(!(e!==1&&(o==="quarter"||o==="year")))i=r.endDate.endOf(o).diff(r.startDate.startOf(o),o)+1;else switch(o){case"quarter":{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"quarter"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"quarter");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/3);break}case"year":{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"year"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"year");i=Math.ceil(Math.ceil(p.diff(l,"month",!0))/12);break}}return s!=null?Math.min(i,s):i}function X(e,o,r,s=1){if(s>1){const i=d.subtractPeriod(r,e,s-1,o),{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(i,e,o);return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:l,endDate:r}}}else return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:r,endDate:r}}}class Ye{_firstMonthOfFY;_timeframe;_dataAvailable;_endDate;_numberOfPeriods;_maxNumberOfPeriods;constructor(o,r,s,i,l,p=s.endDate){if(s.endDate.isBefore(s.startDate))throw Error(`Invalid data available period ${JSON.stringify(s)}`);this._firstMonthOfFY=o,this._timeframe=r,this._dataAvailable=s,this._numberOfPeriods=i,this._maxNumberOfPeriods=l,this._endDate=p}get value(){return X(this.firstMonthOfFY,this.timeframe,this.endDate,this.numberOfPeriods)}get dataAvailable(){return this._dataAvailable}get firstMonthOfFY(){return this._firstMonthOfFY}get timeframe(){return this._timeframe}set timeframe(o){this._timeframe=o}get numberOfPeriods(){return this._numberOfPeriods}get maxNumberOfPeriods(){return this._maxNumberOfPeriods}set maxNumberOfPeriods(o){if(o<=0)throw Error(`Invalid maxNumberOfPeriods ${this.maxNumberOfPeriods}`);this._maxNumberOfPeriods=o}get startDate(){return this.value.dateRange.startDate}get endDate(){return this._endDate}getValidCalendarPeriod(){const o=d.addPeriod(this.startDate,this.firstMonthOfFY,this.maxNumberOfPeriods-1,this.timeframe);let{endOfTimeframeFY:r}=d.getStartOfAndEndOfTimeframeForFY(o,this.firstMonthOfFY,this.timeframe);return r.isAfter(this.dataAvailable.endDate)&&(r=this.dataAvailable.endDate),{startDate:this.startDate,endDate:r}}canUpdateToPeriod(o,r){if(this.firstMonthOfFY===1||this.timeframe==="month")return o.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]")&&r.isBetween(this.dataAvailable.startDate.startOf(this.timeframe),this.dataAvailable.endDate.endOf(this.timeframe),null,"[]");{const{startOfTimeframeFY:s}=d.getStartOfAndEndOfTimeframeForFY(this.dataAvailable.startDate,this.firstMonthOfFY,this.timeframe),{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(this.dataAvailable.endDate,this.firstMonthOfFY,this.timeframe);return o.isBetween(s,i,null,"[]")&&r.isBetween(s,i,null,"[]")}}updatePeriod(o,r){if(!this.canUpdateToPeriod(o,r))return!1;let s=te(this.firstMonthOfFY,this.timeframe,{startDate:o,endDate:r});if(s>this.maxNumberOfPeriods){s=this._numberOfPeriods;const{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(d.addPeriod(o,this.firstMonthOfFY,this._numberOfPeriods-1,this.timeframe),this.firstMonthOfFY,this.timeframe);this._endDate=i}else if(o.isAfter(r)){s=1;const{endOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(o,this.firstMonthOfFY,this.timeframe);this._endDate=i}else this._endDate=r;return this._endDate.isAfter(this.dataAvailable.endDate)&&(this._endDate=this.dataAvailable.endDate),this._numberOfPeriods=s,!0}updateStartDate(o){return this.updatePeriod(o,this.endDate)}updateEndDate(o){return this.updatePeriod(this.startDate,o)}}const ae=["1","2","3","4"],oe=d.dateNow().localeData().monthsShort(),P={pdf:12,excel:100,csv:100},B=(e,o,r)=>{const s=Y.getLocalizedStrings().dateFormat.analytics.YYYYFormat,i=[];if(e===1||o==="month"){const{startDate:l,endDate:p}=r;let f=l;for(;f.isSameOrBefore(p,"year");)i.push(f.format(s)),f=d.addPeriod(f,e,1,"year")}else{const{startOfTimeframeFY:l}=d.getStartOfAndEndOfTimeframeForFY(r.startDate,e,"year"),{endOfTimeframeFY:p}=d.getStartOfAndEndOfTimeframeForFY(r.endDate,e,"year");let{fyYear:f}=d.getFYQuarterAndYear(l,e);const{fyYear:b}=d.getFYQuarterAndYear(p,e);for(;f<=b;)i.push(`${f}`),f++}return i},yt=n.div`
|
|
2
2
|
padding: ${a.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.borderColor.default};
|
|
4
4
|
border-radius: ${a.sp1};
|
|
@@ -30,7 +30,7 @@ import{j as t,bB as Xe,o as a,e as le,bC as et,m as Re,l as d,g as de,C as H,a3
|
|
|
30
30
|
`,ve=n(nt)`
|
|
31
31
|
width: ${a.sp4};
|
|
32
32
|
height: ${a.sp4};
|
|
33
|
-
`,wt=e=>{const{id:o,disabled:r=!1,checked:s=!1,label:i,showInfoIcon:l,tooltipText:p,style:f={},onClick:b}=e,m=
|
|
33
|
+
`,wt=e=>{const{id:o,disabled:r=!1,checked:s=!1,label:i,showInfoIcon:l,tooltipText:p,style:f={},onClick:b}=e,m=Be();let F=s?je:ve;m.mode==="dark"&&(F=s?je:ve);let $=s?m.colors.primary:m.colors.hero;r&&($=m.colors.grey2);const O=()=>{r||b(o,s)};let w={default:m.colors.background,hover:m.colors.background},h={default:m.colors.hero,hover:m.colors.primary},_={default:m.colors.grey2,hover:m.colors.primary};return s?(w={default:m.colors.grey5,hover:m.colors.grey5},h={default:m.colors.primary,hover:m.colors.primary},_={default:m.colors.primary,hover:m.colors.primary}):r&&(w={default:m.colors.grey4,hover:m.colors.grey4},h={default:m.colors.grey2,hover:m.colors.grey2},_={default:m.colors.grey3,hover:m.colors.grey3}),t.jsxs(yt,{backgroundColor:w,textColor:h,borderColor:_,onClick:O,disabled:r,checked:s,style:{...f},children:[t.jsxs(Oe,{children:[t.jsx(F,{color:s?$:"none"}),i!=null?t.jsx(Ft,{children:i}):null]}),l===!0?t.jsx(Oe,{style:{marginLeft:a.sp3},children:t.jsx(at,{enterDelay:600,title:p,children:t.jsx($t,{width:a.sp3,height:a.sp3})})}):""]})},Yt=he.memo(wt),ue=["year_to_date_total","free_range_total","year_to_date_last_year_total","rolling_12_months","rolling_12_months_average"],Ot=["this_period_vs_last_period","this_period_vs_last_period_percent",...ue,"this_period_vs_same_period_last_year","this_period_vs_same_period_last_year_percent","same_period_last_year"],jt=["this_period_vs_last_period","this_period_vs_last_period_percent",...ue,"this_period_vs_same_period_last_year","this_period_vs_same_period_last_year_percent","same_period_last_year"],vt=["this_period_vs_last_period","this_period_vs_last_period_percent",...ue],He={month:Ot,quarter:jt,year:vt},De=n.div`
|
|
34
34
|
padding-top: ${e=>e.space};
|
|
35
35
|
`,Dt=n(T)`
|
|
36
36
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -56,7 +56,7 @@ import{j as t,bB as Xe,o as a,e as le,bC as et,m as Re,l as d,g as de,C as H,a3
|
|
|
56
56
|
:hover {
|
|
57
57
|
color: ${e=>e.theme.colors.primary};
|
|
58
58
|
}
|
|
59
|
-
`,Tt=e=>{const{value:o,label:r,onClick:s}=e,i=
|
|
59
|
+
`,Tt=e=>{const{value:o,label:r,onClick:s}=e,i=Be(),l=Y.getLocalizedStrings().reports;return t.jsxs(St,{onClick:s,children:[t.jsxs(ke,{style:{display:"flex",alignItems:"center"},children:[t.jsx(mt,{color:i.colors.primary,style:{width:a.sp4,height:a.sp4}}),t.jsxs(ke,{style:{paddingLeft:a.sp3},children:[t.jsx(Pt,{style:{color:i.colors.hero},children:r}),t.jsxs(Mt,{style:{color:i.colors.primary},children:[o,e.timeframeTickTag!=null&&(e.timeframeTickTag==="under_review"?l.starred:l.doubleStarred)]})]})]}),t.jsx(At,{})]})},be=he.memo(Tt),ge=e=>{const{starredPeriod:o,doubleStarredPeriod:r,bookCloseUnderReviewInfo:s,bookCloseIncompleteInfo:i}=e,l=Y.getLocalizedStrings().reports;return t.jsxs(t.Fragment,{children:[o.length>0?t.jsxs(_e,{children:[t.jsx(Se,{children:l.starred}),t.jsxs(Ce,{children:[t.jsx(Pe,{children:l.bookCloseInfoStar}),s]})]}):null,r.length>0?t.jsxs(_e,{children:[t.jsx(Se,{children:l.doubleStarred}),t.jsxs(Ce,{children:[t.jsx(Pe,{children:l.bookCloseIncompleteInfoStar}),i]})]}):null]})},_e=n(ce)`
|
|
60
60
|
background: ${e=>e.theme.colors.grey4};
|
|
61
61
|
color: ${e=>e.theme.colors.primary};
|
|
62
62
|
padding: ${a.sp2} 27px;
|
|
@@ -91,7 +91,7 @@ import{j as t,bB as Xe,o as a,e as le,bC as et,m as Re,l as d,g as de,C as H,a3
|
|
|
91
91
|
`,zt=n.div`
|
|
92
92
|
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
93
93
|
width: 100%;
|
|
94
|
-
`,
|
|
94
|
+
`,Nt=(e,o,r,s)=>{const i=B(e,"month",o).filter(l=>!d.zeniDate(`${l}-01-01`).isBetween(r.startDate.startOf("year"),r.endDate.endOf("year"),null,"[]"));return{disabledMonths:oe.filter(l=>{const p=s.startDate.format(S.YYYYformat);return!d.zeniDate(`${l} ${p}`,S.MMMYYYYFormat).isBetween(r.startDate.startOf("month"),r.endDate.endOf("month"),null,"[]")}),disabledYears:i}},Bt=(e,o,r,s)=>{const i=d.isIncompleteMonthPresentInTimeframeTick(r);return s!=null?oe.filter(l=>o.includes(l)===!1&&d.zeniDate(`${l} ${e}`,S.MMMYYYYFormat).isAfter(s)&&(i===!0?d.zeniDate(r.endDate.format(S.MMMYYYYFormat)).isSame(d.zeniDate(`${l} ${e}`,S.MMMYYYYFormat))===!1:!0)):[]},Et=(e,o,r,s)=>{const i=d.isIncompleteMonthPresentInTimeframeTick(e);return s!=null?oe.filter(l=>r.includes(l)===!1&&d.zeniDate(`${l} ${o}`,S.MMMYYYYFormat).isAfter(s)&&(i===!0?d.zeniDate(e.endDate.format(S.MMMYYYYFormat)).isSame(d.zeniDate(`${l} ${o}`,S.MMMYYYYFormat))===!0:!1)):[]},{reports:Ae,dateFormat:{analytics:J,visual:S}}=Y.getLocalizedStrings(),Qt=e=>{const{selectedPeriod:o,label:r,validPeriod:s,onNewPeriodSelection:i}=e,[l,p]=u.useState(!1),[f,b]=u.useState(o.startDate.format(J.MMMFormat)),[m,F]=u.useState(o.startDate.format(J.YYYYFormat)),$=x=>{b(x),i("month",{startDate:d.zeniDate(`${x} ${m}`,J.MMMYYYYFormat).startOf("month"),endDate:d.zeniDate(`${x} ${m}`,J.MMMYYYYFormat).endOf("month")}),p(!1)},O=x=>{p(x),b(o.startDate.format(S.MMMformat)),F(o.startDate.format(S.YYYYformat))},{disabledMonths:w,disabledYears:h}=Nt(e.firstMonthOfFY,e.dataAvailable,s,{startDate:d.zeniDate(m,S.YYYYformat),endDate:d.zeniDate(m,S.YYYYformat)}),_=B(e.firstMonthOfFY,"month",e.dataAvailable),c=Bt(m,w,s,e.bookCloseDate),y=Et(s,m,w,e.bookCloseDate),v=e.bookCloseDate!=null?d.getTimeframeTickTag("month",e.firstMonthOfFY,o,e.bookCloseDate,e.dataAvailable):void 0;return t.jsx(fe,{onClickAway:()=>O(!1),children:t.jsxs(It,{children:[t.jsx(be,{value:d.formatZeniDate(o.startDate,S.MMMYYFormat,e.firstMonthOfFY),onClick:()=>O(!l),label:r,timeframeTickTag:v}),l?t.jsx(u.Fragment,{children:t.jsxs(Lt,{children:[t.jsxs(Rt,{children:[_.map(x=>t.jsx(W,{id:x,text:x,disabled:h.includes(x),onClick:j=>{F(j),b("")},checked:x===m},x)),t.jsx(Me,{space:a.sp3}),t.jsx(zt,{}),t.jsx(Me,{space:a.sp3}),oe.map(x=>t.jsx(W,{id:x,text:x,disabled:w.includes(x),onClick:j=>$(j),checked:x===f,starred:c.includes(x)&&!w.includes(x),doubleStarred:y.includes(x)&&!w.includes(x)},x))]}),t.jsx(ge,{starredPeriod:c,doubleStarredPeriod:y,bookCloseIncompleteInfo:Ae.bookCloseIncompleteInfoMonth,bookCloseUnderReviewInfo:Ae.bookCloseUnderReviewInfoMonth})]})}):""]})})},Vt=u.memo(Qt),Ht=n.div`
|
|
95
95
|
position: relative;
|
|
96
96
|
cursor: pointer;
|
|
97
97
|
`,Ut=n.div`
|
|
@@ -117,7 +117,7 @@ import{j as t,bB as Xe,o as a,e as le,bC as et,m as Re,l as d,g as de,C as H,a3
|
|
|
117
117
|
`,qt=n.div`
|
|
118
118
|
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
119
119
|
width: 100%;
|
|
120
|
-
`,Zt=(e,o,r,s)=>{const i=
|
|
120
|
+
`,Zt=(e,o,r,s)=>{const i=B(e,"quarter",o).filter(l=>{if(e===1)return!d.zeniDate(`${l}-01-01`).isBetween(r.startDate.startOf("year"),r.endDate.endOf("year"),null,"[]");{const{fyYear:p}=d.getFYQuarterAndYear(r.startDate,e),{fyYear:f}=d.getFYQuarterAndYear(r.endDate,e);return!(parseInt(l)>=p&&parseInt(l)<=f)}});return{disabledQuarters:ae.filter(l=>{const p=parseInt(l),f=d.getFYQuarterAndYear(r.startDate,e),b=d.getFYQuarterAndYear(r.endDate,e);return s===f.fyYear&&p<f.fyQuarter||s===b.fyYear&&p>b.fyQuarter?!0:s<f.fyYear||s>b.fyYear}),disabledYears:i}},Gt=(e,o,r,s,i)=>{const l=d.isIncompleteMonthPresentInTimeframeTick(s);if(i!=null){const p=d.getFYQuarterAndYear(i,o),f=d.getFYQuarterAndYear(s.endDate,o);return ae.filter(b=>{const m=parseInt(b);return e.includes(b)===!1&&(l!==!0||f.fyQuarter!==m)&&(r===p.fyYear&&m>=p.fyQuarter&&d.getLastMonthOfFYQuarter(m,o)!==i.month()+1||r>p.fyYear)})}else return[]},Jt=(e,o,r,s,i)=>{const l=d.isIncompleteMonthPresentInTimeframeTick(s);if(i!=null){const p=d.getFYQuarterAndYear(i,e),f=d.getFYQuarterAndYear(s.endDate,e);return ae.filter(b=>{const m=parseInt(b);return r.includes(b)===!1&&(l!==!0||f.fyQuarter===m)&&o===p.fyYear&&m>=p.fyQuarter||o>p.fyYear})}else return[]},Kt=e=>{const{selectedPeriod:o,label:r,validPeriod:s,onNewPeriodSelection:i}=e,{fyQuarter:l,fyYear:p}=d.getFYQuarterAndYear(o.startDate,e.firstMonthOfFY),[f,b]=u.useState(!1),[m,F]=u.useState(`${l}`),[$,O]=u.useState(`${p}`),{reports:w,dateFormat:h}=Y.getLocalizedStrings(),_=g=>{F(g),i("quarter",d.getActualPeriodOfFYQtr(e.firstMonthOfFY,d.toQuarter(parseInt(g)),parseInt($))),b(!1)},c=g=>{b(g);const{fyQuarter:D,fyYear:A}=d.getFYQuarterAndYear(o.startDate,e.firstMonthOfFY);F(`${D}`),O(`${A}`)},{disabledQuarters:y,disabledYears:v}=Zt(e.firstMonthOfFY,e.dataAvailable,s,parseInt($)),x=B(e.firstMonthOfFY,"quarter",e.dataAvailable),j=Gt(y,e.firstMonthOfFY,parseInt($),s,e.bookCloseDate),E=Jt(e.firstMonthOfFY,parseInt($),y,s,e.bookCloseDate),M=e.bookCloseDate!=null?d.getTimeframeTickTag("quarter",e.firstMonthOfFY,o,e.bookCloseDate,e.dataAvailable):void 0;return t.jsx(fe,{onClickAway:()=>c(!1),children:t.jsxs(Ht,{children:[t.jsx(be,{value:`Q${d.formatZeniDate(o.startDate,h.visual.QYYformat,e.firstMonthOfFY)}`,onClick:()=>c(!f),label:r,timeframeTickTag:M}),f?t.jsxs(Ut,{children:[t.jsxs(Wt,{children:[x.map(g=>t.jsx(W,{id:g,text:g,disabled:v.includes(g),onClick:D=>{O(D),F("")},checked:g===$},g)),t.jsx(Te,{space:a.sp3}),t.jsx(qt,{}),t.jsx(Te,{space:a.sp3}),ae.map(g=>t.jsx(W,{id:g,text:`Q${g}`,disabled:y.includes(g),onClick:D=>_(D),checked:g===m,starred:j.includes(g)&&!y.includes(g),doubleStarred:E.includes(g)&&!y.includes(g)},g))]}),t.jsx(ge,{starredPeriod:j,doubleStarredPeriod:E,bookCloseIncompleteInfo:w.bookCloseIncompleteInfoQuarter,bookCloseUnderReviewInfo:w.bookCloseUnderReviewInfoQuarter})]}):""]})})},Xt=u.memo(Kt),er=n.div`
|
|
121
121
|
position: relative;
|
|
122
122
|
cursor: pointer;
|
|
123
123
|
`,tr=n.div`
|
|
@@ -137,7 +137,7 @@ import{j as t,bB as Xe,o as a,e as le,bC as et,m as Re,l as d,g as de,C as H,a3
|
|
|
137
137
|
flex-wrap: wrap;
|
|
138
138
|
background: ${e=>e.theme.colors.grey5};
|
|
139
139
|
width: 100%;
|
|
140
|
-
`,ar=(e,o,r)=>
|
|
140
|
+
`,ar=(e,o,r)=>B(e,"year",o).filter(s=>{if(e===1)return!d.zeniDate(`${s}-01-01`).isBetween(r.startDate.startOf("year"),r.endDate.endOf("year"),null,"[]");{const{fyYear:i}=d.getFYQuarterAndYear(r.startDate,e),{fyYear:l}=d.getFYQuarterAndYear(r.endDate,e);return parseInt(s)<i||parseInt(s)>l}}),or=(e,o,r,s)=>{const i=d.isIncompleteMonthPresentInTimeframeTick(r);if(s!=null){const l=d.getFYQuarterAndYear(s,e),p=d.getFYQuarterAndYear(r.endDate,e);return B(e,"year",o).filter(f=>{const b=parseInt(f);return(i===!0?p.fyYear!==b:!0)&&parseInt(f)>=l.fyYear&&d.getLastMonthOfFYYear(e)!==s.month()+1})}else return[]},sr=(e,o,r,s)=>{const i=d.isIncompleteMonthPresentInTimeframeTick(r);if(s!=null){const l=d.getFYQuarterAndYear(s,e),p=d.getFYQuarterAndYear(r.endDate,e);return B(e,"year",o).filter(f=>{const b=parseInt(f);return(i===!0?p.fyYear===b:!0)&&parseInt(f)>=l.fyYear})}else return[]},ir=e=>{const{selectedPeriod:o,label:r,validPeriod:s,onNewPeriodSelection:i}=e,[l,p]=u.useState(!1),{reports:f,dateFormat:b}=Y.getLocalizedStrings(),m=ar(e.firstMonthOfFY,e.dataAvailable,s),F=B(e.firstMonthOfFY,"year",e.dataAvailable),$=d.getFYQuarterAndYear(e.selectedPeriod.startDate,e.firstMonthOfFY).fyYear,O=or(e.firstMonthOfFY,e.dataAvailable,s,e.bookCloseDate),w=sr(e.firstMonthOfFY,e.dataAvailable,s,e.bookCloseDate),h=e.bookCloseDate!=null?d.getTimeframeTickTag("year",e.firstMonthOfFY,o,e.bookCloseDate,e.dataAvailable):void 0,_=b.analytics.YYYYFormat;return t.jsx(fe,{onClickAway:()=>p(!1),children:t.jsxs(er,{children:[t.jsx(be,{value:d.formatZeniDate(o.startDate,_,e.firstMonthOfFY),onClick:()=>p(!l),label:r,timeframeTickTag:h}),l?t.jsxs(tr,{children:[t.jsx(rr,{children:F.map(c=>t.jsx(W,{id:c,text:c,disabled:m.includes(c),onClick:y=>{i("year",d.getActualPeriodOfFY(e.firstMonthOfFY,parseInt(y))),p(!1)},checked:parseInt(c)===$,starred:O.includes(c)&&!m.includes(c),doubleStarred:w.includes(c)&&!m.includes(c)},c))}),t.jsx(ge,{starredPeriod:O,doubleStarredPeriod:w,bookCloseIncompleteInfo:f.bookCloseIncompleteInfoYear,bookCloseUnderReviewInfo:f.bookCloseUnderReviewInfoYear})]}):""]})})},nr=u.memo(ir),lr=n.div`
|
|
141
141
|
display: flex;
|
|
142
142
|
align-items: center;
|
|
143
143
|
`,dr=n(st)`
|
|
@@ -154,7 +154,7 @@ import{j as t,bB as Xe,o as a,e as le,bC as et,m as Re,l as d,g as de,C as H,a3
|
|
|
154
154
|
background: ${e=>e.showSuccessBadge?de.success:e.theme.colors.primary};
|
|
155
155
|
`,mr=n(ot)``,pr=e=>{const{numberOfPeriods:o,numberOfAdditionalColumns:r,selectedFileType:s}=e;return t.jsxs(lr,{children:[t.jsx(cr,{showSuccessBadge:P[s]===o+r,children:t.jsx(mr,{children:o+r})}),t.jsx(dr,{children:Y.getLocalizedStrings().downloadReport.maxPeriodSelectionAllowed[s]})]})},fr=he.memo(pr),R=n.div`
|
|
156
156
|
padding-top: ${e=>e.space};
|
|
157
|
-
`,hr=n(
|
|
157
|
+
`,hr=n(Ne)`
|
|
158
158
|
color: ${e=>e.theme.colors.primary};
|
|
159
159
|
`,se=n(T)`
|
|
160
160
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -247,7 +247,7 @@ import{j as t,bB as Xe,o as a,e as le,bC as et,m as Re,l as d,g as de,C as H,a3
|
|
|
247
247
|
`,Ir=n(me)`
|
|
248
248
|
width: ${a.sp4};
|
|
249
249
|
height: ${a.sp4};
|
|
250
|
-
`,Lr=[{id:"excel",label:re.downloadExcel,Icon:Ir},{id:"pdf",label:re.downloadPdf,Icon:Tr}],Rr=e=>{const{label:o,id:r,onClick:s,checked:i,Icon:l,isLoading:p}=e;return t.jsx(kr,{checked:i,onClick:s,id:r,children:p&&i?t.jsx(Ar,{offset:`${Qe("Standard")/2}px`,children:t.jsx(Ee,{size:"Standard",reverseSpinnerColor:!1,start:!0})}):t.jsxs(t.Fragment,{children:[t.jsx(Sr,{children:o}),t.jsx(l,{})]})})},zr=e=>{const{onViewReportClick:o,downloadingStatement:r,disabledDownloadButton:s,downloadTypeProps:i,onResetClick:l,isResetDisabled:p}=e,{calendarPeriod:f,onNewFileTypeSelection:b,numberOfAdditionalColumns:m,selectedFileType:F,resetToDefaultOption:$}=i,[O,w]=u.useState(!1),h=c=>{c.stopPropagation(),o()},_=c=>{c==="pdf"&&f.numberOfPeriods+m>P.pdf?w(!0):(f.maxNumberOfPeriods=P[c]-m,b(c))};return t.jsxs(vr,{onClick:c=>c.stopPropagation(),children:[t.jsxs(_r,{isResetDisabled:p,onClick:l,children:[t.jsx(ze,{width:a.sp4,height:a.sp4}),t.jsx(Cr,{children:re.resetLabel})]}),t.jsxs(Pr,{children:[t.jsx(Mr,{children:Lr.map(c=>t.jsx(Rr,{...c,onClick:()=>{s||_(c.id)},checked:F===c.id,isLoading:r},c.id))}),t.jsx(Dr,{space:a.sp0,style:{display:"flex",alignItems:"center",height:z[7]},children:re.orLabel}),t.jsx(ee,{variant:"primary",label:Y.getLocalizedStrings().downloadReport.viewReport,onClick:h,style:{width:"160px"}})]}),O?t.jsx(Ue,{onSwitchToExcelClick:()=>w(!1),onContinueWithPDFClick:()=>{w(!1),b("pdf"),$()}}):""]})},
|
|
250
|
+
`,Lr=[{id:"excel",label:re.downloadExcel,Icon:Ir},{id:"pdf",label:re.downloadPdf,Icon:Tr}],Rr=e=>{const{label:o,id:r,onClick:s,checked:i,Icon:l,isLoading:p}=e;return t.jsx(kr,{checked:i,onClick:s,id:r,children:p&&i?t.jsx(Ar,{offset:`${Qe("Standard")/2}px`,children:t.jsx(Ee,{size:"Standard",reverseSpinnerColor:!1,start:!0})}):t.jsxs(t.Fragment,{children:[t.jsx(Sr,{children:o}),t.jsx(l,{})]})})},zr=e=>{const{onViewReportClick:o,downloadingStatement:r,disabledDownloadButton:s,downloadTypeProps:i,onResetClick:l,isResetDisabled:p}=e,{calendarPeriod:f,onNewFileTypeSelection:b,numberOfAdditionalColumns:m,selectedFileType:F,resetToDefaultOption:$}=i,[O,w]=u.useState(!1),h=c=>{c.stopPropagation(),o()},_=c=>{c==="pdf"&&f.numberOfPeriods+m>P.pdf?w(!0):(f.maxNumberOfPeriods=P[c]-m,b(c))};return t.jsxs(vr,{onClick:c=>c.stopPropagation(),children:[t.jsxs(_r,{isResetDisabled:p,onClick:l,children:[t.jsx(ze,{width:a.sp4,height:a.sp4}),t.jsx(Cr,{children:re.resetLabel})]}),t.jsxs(Pr,{children:[t.jsx(Mr,{children:Lr.map(c=>t.jsx(Rr,{...c,onClick:()=>{s||_(c.id)},checked:F===c.id,isLoading:r},c.id))}),t.jsx(Dr,{space:a.sp0,style:{display:"flex",alignItems:"center",height:z[7]},children:re.orLabel}),t.jsx(ee,{variant:"primary",label:Y.getLocalizedStrings().downloadReport.viewReport,onClick:h,style:{width:"160px"}})]}),O?t.jsx(Ue,{onSwitchToExcelClick:()=>w(!1),onContinueWithPDFClick:()=>{w(!1),b("pdf"),$()}}):""]})},Nr=u.memo(zr),ne=Y.getLocalizedStrings().downloadReport.footer,Br=n.div`
|
|
251
251
|
display: flex;
|
|
252
252
|
justify-content: center;
|
|
253
253
|
background: ${e=>e.theme.colors.background};
|
|
@@ -297,7 +297,7 @@ import{j as t,bB as Xe,o as a,e as le,bC as et,m as Re,l as d,g as de,C as H,a3
|
|
|
297
297
|
`,Zr=n(me)`
|
|
298
298
|
width: ${a.sp4};
|
|
299
299
|
height: ${a.sp4};
|
|
300
|
-
`,Gr=[{id:"excel",label:ne.downloadExcel,Icon:Zr},{id:"pdf",label:ne.downloadPdf,Icon:qr}],Jr=e=>{const{label:o,id:r,onClick:s,checked:i,Icon:l,isLoading:p}=e;return t.jsx(Qr,{checked:i,onClick:s,id:r,children:p&&i?t.jsx(Wr,{offset:`${Qe("Standard")/2}px`,children:t.jsx(Ee,{size:"Standard",reverseSpinnerColor:!1,start:!0})}):t.jsxs(t.Fragment,{children:[t.jsx(Vr,{children:o}),t.jsx(l,{})]})})},Kr=e=>{const{onViewReportClick:o,downloadingStatement:r,disabledDownloadButton:s,downloadTypeProps:i}=e,{calendarPeriod:l,onNewFileTypeSelection:p,numberOfAdditionalColumns:f,selectedFileType:b,resetToDefaultOption:m}=i,[F,$]=u.useState(!1),O=h=>{h.stopPropagation(),o()},w=h=>{h==="pdf"&&l.numberOfPeriods+f>P.pdf?$(!0):(l.maxNumberOfPeriods=P[h]-f,p(h))};return t.jsxs(
|
|
300
|
+
`,Gr=[{id:"excel",label:ne.downloadExcel,Icon:Zr},{id:"pdf",label:ne.downloadPdf,Icon:qr}],Jr=e=>{const{label:o,id:r,onClick:s,checked:i,Icon:l,isLoading:p}=e;return t.jsx(Qr,{checked:i,onClick:s,id:r,children:p&&i?t.jsx(Wr,{offset:`${Qe("Standard")/2}px`,children:t.jsx(Ee,{size:"Standard",reverseSpinnerColor:!1,start:!0})}):t.jsxs(t.Fragment,{children:[t.jsx(Vr,{children:o}),t.jsx(l,{})]})})},Kr=e=>{const{onViewReportClick:o,downloadingStatement:r,disabledDownloadButton:s,downloadTypeProps:i}=e,{calendarPeriod:l,onNewFileTypeSelection:p,numberOfAdditionalColumns:f,selectedFileType:b,resetToDefaultOption:m}=i,[F,$]=u.useState(!1),O=h=>{h.stopPropagation(),o()},w=h=>{h==="pdf"&&l.numberOfPeriods+f>P.pdf?$(!0):(l.maxNumberOfPeriods=P[h]-f,p(h))};return t.jsxs(Br,{onClick:h=>h.stopPropagation(),children:[t.jsxs(Hr,{children:[t.jsx(Ur,{children:Gr.map(h=>t.jsx(Jr,{...h,onClick:()=>{s||w(h.id)},checked:b===h.id,isLoading:r},h.id))}),t.jsx(Er,{space:a.sp0,style:{display:"flex",alignItems:"center",height:a.sp4},children:ne.orLabel}),t.jsx(ee,{variant:"primary",label:Y.getLocalizedStrings().downloadReport.viewReport,onClick:O,style:{width:"100%"}})]}),F?t.jsx(Ue,{onSwitchToExcelClick:()=>$(!1),onContinueWithPDFClick:()=>{$(!1),p("pdf"),m()}}):""]})},Xr=u.memo(Kr),ea=e=>le()==="small"?t.jsx(Xr,{...e}):t.jsx(Nr,{...e}),ta=e=>u.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u.createElement("path",{d:"M20.5447 1.65002C21.0182 1.65002 21.4723 1.83811 21.807 2.1729C22.1418 2.5077 22.3299 2.96177 22.3299 3.43524V16.8467C22.3299 18.2612 21.768 19.6177 20.7678 20.6179C19.7676 21.6181 18.4111 22.18 16.9966 22.18H3.58514C3.11168 22.18 2.6576 21.9919 2.3228 21.6571C1.98801 21.3224 1.79993 20.8683 1.79993 20.3948V3.43524C1.79993 2.96177 1.98801 2.5077 2.3228 2.1729C2.6576 1.83811 3.11168 1.65002 3.58514 1.65002H20.5447Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M17.8671 22.1086V18.6095C17.8671 18.3728 17.9611 18.1458 18.1285 17.9784C18.2959 17.811 18.5229 17.7169 18.7597 17.7169H22.2587",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M5.97803 6.3999H17.978",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M5.97803 9.97034H17.978",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M5.97803 13.5406H17.978",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M5.97803 17.1112H11.978",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ra=n.div`
|
|
301
301
|
padding: ${a.sp3};
|
|
302
302
|
border: 1px solid
|
|
303
303
|
${e=>e.disabled?e.theme.colors.grey3:e.checked?e.theme.colors.primary:e.theme.colors.grey2};
|
|
@@ -323,7 +323,7 @@ import{j as t,bB as Xe,o as a,e as le,bC as et,m as Re,l as d,g as de,C as H,a3
|
|
|
323
323
|
margin-left: ${a.sp3};
|
|
324
324
|
`,U=n.div`
|
|
325
325
|
padding-top: ${e=>e.space};
|
|
326
|
-
`,Le=n(
|
|
326
|
+
`,Le=n(Ne)`
|
|
327
327
|
color: ${e=>e.theme.colors.primary};
|
|
328
328
|
`,sa=n.div`
|
|
329
329
|
position: relative;
|
|
@@ -350,7 +350,7 @@ import{j as t,bB as Xe,o as a,e as le,bC as et,m as Re,l as d,g as de,C as H,a3
|
|
|
350
350
|
display: flex;
|
|
351
351
|
align-items: center;
|
|
352
352
|
justify-content: space-between;
|
|
353
|
-
`,pa=e=>{const{label:o,id:r,subLabel:s,onClick:i,checked:l,Icon:p,disabled:f}=e;return t.jsxs(ra,{checked:l,disabled:f,onClick:i,id:r,children:[t.jsx(p,{className:"report-format-icon",width:z[7],height:z[7]}),t.jsxs("div",{children:[t.jsx(aa,{children:o}),t.jsx(oa,{children:s})]})]})},fa=e=>{const{reportId:o,firstMonthOfFY:r,selectedFormat:s,disabledFormat:i,selectedView:l,nestedClasses:p,classesToFilterOut:f,classesFetchState:b,showClassAccountNumber:m,showAccountGroups:F,onOpenAccountViewMode:$,onNewFormatSelection:O,onNewViewSelection:w,onResetClick:h,isResetDisabled:_}=e,c=Y.getLocalizedStrings().downloadReport.reportFormats,y=le(),v=[{id:c.summary.id,label:c.summary.label,subLabel:c.summary.subLabel,Icon:rt},{id:c.detailed.id,label:c.detailed.label,subLabel:l==="account_group"?F===!0?c.detailed.subLabelAccountGroups:c.detailed.subLabelAccounts:c.detailed.subLabelClasses,Icon:gt},{id:c.moreDetailed.id,label:c.moreDetailed.label,subLabel:l==="account_group"?F===!0?c.moreDetailed.subLabelAccountGroups:c.moreDetailed.subLabelAccounts:c.moreDetailed.subLabelClasses,Icon:ta}],x=()=>t.jsx(u.Fragment,{children:t.jsx(bt,{reportId:o,firstMonthOfFY:r,nodes:p,classesListFetchState:b,selectedView:l,showAccountGroups:F,downloadPage:!0,onSaveClick:w,classesToBeFilteredOut:f,showClassAccountNumber:m,onOpenAccountViewMode:$})});return t.jsxs(u.Fragment,{children:[y==="small"?t.jsxs(ma,{children:[t.jsx(Le,{children:Y.getLocalizedStrings().downloadReport.reportFormat}),t.jsxs(da,{isResetDisabled:_,onClick:h,children:[t.jsx(ze,{width:a.sp4,height:a.sp4}),t.jsx(ca,{children:c.resetLabel})]})]}):t.jsx(Le,{children:Y.getLocalizedStrings().downloadReport.reportFormat}),t.jsx(U,{space:a.sp4}),t.jsxs(sa,{children:[t.jsx(ia,{children:"View by"}),t.jsx(U,{space:a.sp2}),t.jsx(na,{children:x()})]}),t.jsx(U,{space:a.sp5}),t.jsx(la,{}),t.jsx(U,{space:a.sp5}),v.map(j=>t.jsxs(u.Fragment,{children:[t.jsx(pa,{...j,onClick:()=>{i.includes(j.id)||O(j.id)},checked:s===j.id,disabled:i.includes(j.id)}),t.jsx(U,{space:a.sp4})]},j.id))]})},
|
|
353
|
+
`,pa=e=>{const{label:o,id:r,subLabel:s,onClick:i,checked:l,Icon:p,disabled:f}=e;return t.jsxs(ra,{checked:l,disabled:f,onClick:i,id:r,children:[t.jsx(p,{className:"report-format-icon",width:z[7],height:z[7]}),t.jsxs("div",{children:[t.jsx(aa,{children:o}),t.jsx(oa,{children:s})]})]})},fa=e=>{const{reportId:o,firstMonthOfFY:r,selectedFormat:s,disabledFormat:i,selectedView:l,nestedClasses:p,classesToFilterOut:f,classesFetchState:b,showClassAccountNumber:m,showAccountGroups:F,onOpenAccountViewMode:$,onNewFormatSelection:O,onNewViewSelection:w,onResetClick:h,isResetDisabled:_}=e,c=Y.getLocalizedStrings().downloadReport.reportFormats,y=le(),v=[{id:c.summary.id,label:c.summary.label,subLabel:c.summary.subLabel,Icon:rt},{id:c.detailed.id,label:c.detailed.label,subLabel:l==="account_group"?F===!0?c.detailed.subLabelAccountGroups:c.detailed.subLabelAccounts:c.detailed.subLabelClasses,Icon:gt},{id:c.moreDetailed.id,label:c.moreDetailed.label,subLabel:l==="account_group"?F===!0?c.moreDetailed.subLabelAccountGroups:c.moreDetailed.subLabelAccounts:c.moreDetailed.subLabelClasses,Icon:ta}],x=()=>t.jsx(u.Fragment,{children:t.jsx(bt,{reportId:o,firstMonthOfFY:r,nodes:p,classesListFetchState:b,selectedView:l,showAccountGroups:F,downloadPage:!0,onSaveClick:w,classesToBeFilteredOut:f,showClassAccountNumber:m,onOpenAccountViewMode:$})});return t.jsxs(u.Fragment,{children:[y==="small"?t.jsxs(ma,{children:[t.jsx(Le,{children:Y.getLocalizedStrings().downloadReport.reportFormat}),t.jsxs(da,{isResetDisabled:_,onClick:h,children:[t.jsx(ze,{width:a.sp4,height:a.sp4}),t.jsx(ca,{children:c.resetLabel})]})]}):t.jsx(Le,{children:Y.getLocalizedStrings().downloadReport.reportFormat}),t.jsx(U,{space:a.sp4}),t.jsxs(sa,{children:[t.jsx(ia,{children:"View by"}),t.jsx(U,{space:a.sp2}),t.jsx(na,{children:x()})]}),t.jsx(U,{space:a.sp5}),t.jsx(la,{}),t.jsx(U,{space:a.sp5}),v.map(j=>t.jsxs(u.Fragment,{children:[t.jsx(pa,{...j,onClick:()=>{i.includes(j.id)||O(j.id)},checked:s===j.id,disabled:i.includes(j.id)}),t.jsx(U,{space:a.sp4})]},j.id))]})},N={width:new H(z[11],z[11],33),maxWidth:new H(550,550,425),containerPadding:new H(z[3],z[6]),rowItemPadding:new H(0,z[6]),footerHeight:new H(211,133)},ha=n.div`
|
|
354
354
|
position: relative;
|
|
355
355
|
display: flex;
|
|
356
356
|
width: ${a.sp4};
|
|
@@ -392,7 +392,7 @@ import{j as t,bB as Xe,o as a,e as le,bC as et,m as Re,l as d,g as de,C as H,a3
|
|
|
392
392
|
`,xa=n.div`
|
|
393
393
|
display: flex;
|
|
394
394
|
justify-content: flex-end;
|
|
395
|
-
padding: ${e=>`${a.sp3} ${
|
|
395
|
+
padding: ${e=>`${a.sp3} ${N.containerPadding.valuePx(e.windowSize)}`};
|
|
396
396
|
`,ya=n(tt)`
|
|
397
397
|
width: ${a.sp4};
|
|
398
398
|
height: ${a.sp4};
|
|
@@ -408,17 +408,17 @@ import{j as t,bB as Xe,o as a,e as le,bC as et,m as Re,l as d,g as de,C as H,a3
|
|
|
408
408
|
flex-wrap: wrap;
|
|
409
409
|
justify-content: center;
|
|
410
410
|
height: calc(
|
|
411
|
-
100% - ${e=>
|
|
411
|
+
100% - ${e=>N.footerHeight.valuePx(e.windowSize)}
|
|
412
412
|
);
|
|
413
413
|
overflow-y: auto;
|
|
414
|
-
padding: ${e=>`${
|
|
414
|
+
padding: ${e=>`${N.containerPadding.valuePx(e.windowSize)} ${N.containerPadding.valuePx(e.windowSize)} ${a.sp0} ${N.containerPadding.valuePx(e.windowSize)} `};
|
|
415
415
|
background: ${e=>e.theme.colors.grey4};
|
|
416
416
|
border-radius: ${a.sp2} ${a.sp2} ${a.sp0} ${a.sp0};
|
|
417
417
|
animation: ${ua} 0.4s;
|
|
418
418
|
`,ie=n.div`
|
|
419
|
-
padding: ${e=>`${a.sp0} ${
|
|
420
|
-
width: ${e=>
|
|
421
|
-
max-width: ${e=>
|
|
419
|
+
padding: ${e=>`${a.sp0} ${N.rowItemPadding.valuePx(e.windowSize)}`};
|
|
420
|
+
width: ${e=>N.width.value(e.windowSize)}%;
|
|
421
|
+
max-width: ${e=>N.maxWidth.valuePx(e.windowSize)};
|
|
422
422
|
`,K=n.div`
|
|
423
423
|
padding-top: ${e=>e.space};
|
|
424
424
|
`,$a=n.div`
|
|
@@ -436,4 +436,4 @@ import{j as t,bB as Xe,o as a,e as le,bC as et,m as Re,l as d,g as de,C as H,a3
|
|
|
436
436
|
justify-content: center;
|
|
437
437
|
color: ${e=>e.theme.colors.hero};
|
|
438
438
|
cursor: pointer;
|
|
439
|
-
`,Ya=e=>({localeId:Y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:e.statementFileType,statements:e.statements,firstMonthOfFY:e.firstMonthOfFY,bookCloseDate:e.defaultOptions.bookCloseDate,timeframe:e.timeframe,additionalBalances:e.additionalBalances,format:e.format,balancesFilter:{thisPeriod:{startDate:e.balancesFilter.thisPeriod.startDate,endDate:e.balancesFilter.thisPeriod.endDate},numberOfPeriods:e.balancesFilter.numberOfPeriods,orderBy:e.balancesFilter.orderBy},accountViewMode:e.accountViewMode,nestedClassHierarchy:e.nestedClassHierarchy,classesToFilterOut:e.classesToFilterOut,dataAvailable:e.dataAvailable,isZeniCOAUsed:e.isZeniCOAUsed}),Oa=e=>{const o=Ya(e);if(o!=null)return ut(e.statementEndPoint,e.authParams,o)},ja=e=>{const{onClose:o,defaultOptions:r,dataAvailable:s,analytics:i,onSaveClickHandler:l,onThisPeriodChanged:p,onAdditionalBalanceSelectionChanged:f,onTimeframeSelectionChanged:b}=e,m=le();et();const[F,$]=u.useState(!1),[O,w]=u.useState(!1),[h,_]=u.useState(new Ye(r.firstMonthOfFY,r.timeframe,s,r.balancesFilter.numberOfPeriods,P.excel,r.balancesFilter.thisPeriod.endDate)),[c,y]=u.useState(r.statements),[v,x]=u.useState(r.timeframe),[j,E]=u.useState("excel"),[M,g]=u.useState(r.additionalBalances),[D,A]=u.useState(X(r.firstMonthOfFY,r.timeframe,r.balancesFilter.thisPeriod.endDate,r.balancesFilter.numberOfPeriods).dateRange),[q,We]=u.useState(e.defaultOptions.accountViewMode),[Z,qe]=u.useState(e.defaultOptions.classesToFilterOut),[V,xe]=u.useState(e.defaultOptions.balancesFilter.orderBy),[ye,Fe]=u.useState(!1),Ze=()=>{const k=te(r.firstMonthOfFY,v,D),{startOfTimeframeFY:I,endOfTimeframeFY:C}=d.getStartOfAndEndOfTimeframeForFY(D.endDate,r.firstMonthOfFY,v),L=d.zeniDate(new Date(C.year(),C.month(),C.date()).toISOString());p?.({endDate:L,startDate:I},k,!0)};u.useEffect(()=>{const k=async()=>{const I=h.endDate,{startOfTimeframeFY:C}=d.getStartOfAndEndOfTimeframeForFY(h.endDate,r.firstMonthOfFY,h.timeframe);await Oa({...e,statements:xt.filter(L=>c.includes(L)),firstMonthOfFY:e.defaultOptions.firstMonthOfFY,timeframe:h.timeframe,additionalBalances:He[h.timeframe].filter(L=>M.includes(L)),format:e.reportFormatProps.selectedFormat,statementFileType:j,accountViewMode:q,classesToFilterOut:Z,balancesFilter:{thisPeriod:{startDate:C,endDate:I},orderBy:V,numberOfPeriods:h.numberOfPeriods},dataAvailable:s,isZeniCOAUsed:e.defaultOptions.isZeniCOAUsed}),e.updateDownloadStateHandler("Completed")};ye&&e.downloadState!=="In-Progress"&&(Fe(!1),e.updateDownloadStateHandler("In-Progress"),k(),i?.trackDownload(e.referrer,ht(h.timeframe),j,!1))},[i,h.endDate,h.numberOfPeriods,h.timeframe,ye,e,s,M,j,e.reportFormatProps.selectedFormat,V,c,q,Z,r.firstMonthOfFY]),u.useEffect(()=>{O?F||$(k=>!k):w(k=>!k)},[M,V,D,e.reportFormatProps.selectedFormat]);const Ge=()=>{g(r.additionalBalances),h.maxNumberOfPeriods=P.pdf-r.additionalBalances.length;const k=te(r.firstMonthOfFY,h.timeframe,s,r.balancesFilter.numberOfPeriods),I=X(r.firstMonthOfFY,h.timeframe,h.endDate,k).dateRange;A(I),h.updatePeriod(I.startDate,I.endDate)},Je=k=>{k.stopPropagation(),o()},Ke=(k,I)=>{We(k),e.showAccountGroups===!1&&k==="account_group"?e.reportFormatProps.disabledFormatForRole.push("detailed"):k==="classes"&&e.showAccountGroups===!1&&e.reportFormatProps.disabledFormatForRole.splice(e.reportFormatProps.disabledFormatForRole.indexOf("detailed"),1),k==="classes"?c.includes("profit_and_loss")&&(y(C=>C.filter(L=>L!=="profit_and_loss")),y(C=>[...C,"profit_and_loss_by_classes"])):c.includes("profit_and_loss_by_classes")&&(y(C=>C.filter(L=>L!=="profit_and_loss_by_classes")),y(C=>[...C,"profit_and_loss"])),I!==void 0&&qe(I)},$e=()=>{_(new Ye(r.firstMonthOfFY,r.timeframe,s,r.balancesFilter.numberOfPeriods,P.excel,r.balancesFilter.thisPeriod.endDate)),g(r.additionalBalances),e.reportFormatProps.setSelectedFormat(r.accountViewMode==="classes"?e.reportFormatProps.roleBasedClassesSelectedFormat:e.showAccountGroups===!1?"more_detailed":"detailed"),xe("ascending_date"),y(r.statements),x(r.timeframe),A(X(r.firstMonthOfFY,r.timeframe,r.balancesFilter.thisPeriod.endDate,r.balancesFilter.numberOfPeriods).dateRange),$(!1),w(!1)};return t.jsxs(ga,{children:[t.jsx(xa,{role:"presentation",onClick:k=>Je(k),windowSize:m,children:t.jsx(ya,{})}),t.jsxs(Fa,{windowSize:m,children:[t.jsxs(ie,{windowSize:m,children:[t.jsx(fa,{firstMonthOfFY:e.defaultOptions.firstMonthOfFY,reportId:"profit_and_loss_by_classes",selectedFormat:e.reportFormatProps.selectedFormat,disabledFormat:e.reportFormatProps.disabledFormatForRole,selectedView:q,nestedClasses:e.defaultOptions.nestedClassHierarchy??[],classesToFilterOut:Z,classesFetchState:e.classesFetchState,showClassAccountNumber:e.defaultOptions.showClassAccountNumber??!1,showAccountGroups:e.showAccountGroups,onNewFormatSelection:e.reportFormatProps.setSelectedFormat,onNewViewSelection:Ke,onOpenAccountViewMode:e.onOpenAccountViewMode,onResetClick:$e,isResetDisabled:F}),t.jsx($a,{}),m==="small"||m==="medium-compact"?t.jsx(K,{space:a.sp5}):t.jsx(K,{space:a.sp8})]}),t.jsxs(ie,{windowSize:m,children:[t.jsx(xr,{firstMonthOfFY:r.firstMonthOfFY,calendarPeriod:h,numberOfAdditionalColumns:M.length,selectedOrderBy:V,dataAvailable:s,dateRange:D,defaultOptions:r,selectedTimeframe:v,bookCloseDate:r.bookCloseDate,onDateRangeChange:A,onSelectedTimeframeChange:x,onNewOrderBySelection:xe,selectedFileType:j,onAdditionalColumnsSelectionChanged:g}),t.jsx(K,{space:a.sp5})]}),t.jsxs(ie,{windowSize:m,children:[t.jsx(Ct,{firstMonthOfFY:e.defaultOptions.firstMonthOfFY,disabledAdditionalColumns:r.disabledAdditionalColumns,selectedTimeframe:v,dateRange:D,calendarPeriod:h,selectedAdditionalColumns:M,onAdditionalColumnsSelectionChanged:g,dataAvailable:s,selectedFileType:j}),t.jsx(K,{space:a.sp8})]})]}),t.jsx(ea,{onCancelClick:()=>o(),onViewReportClick:()=>{e.onUpdateDisplayOrder(V),e.onUpdateReportFormat(e.reportFormatProps.selectedFormat),l(q,Z),f?.(M,h.numberOfPeriods,!0),b?.(v,!1,!0),Ze(),o()},downloadingStatement:e.downloadState==="In-Progress",disabledDownloadButton:c.length===0,downloadTypeProps:{selectedFileType:j,calendarPeriod:h,numberOfAdditionalColumns:M.length,onNewFileTypeSelection:k=>{E(k),Fe(!0)},resetToDefaultOption:Ge},onResetClick:$e,isResetDisabled:F})]})},
|
|
439
|
+
`,Ya=e=>({localeId:Y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:e.statementFileType,statements:e.statements,firstMonthOfFY:e.firstMonthOfFY,bookCloseDate:e.defaultOptions.bookCloseDate,timeframe:e.timeframe,additionalBalances:e.additionalBalances,format:e.format,balancesFilter:{thisPeriod:{startDate:e.balancesFilter.thisPeriod.startDate,endDate:e.balancesFilter.thisPeriod.endDate},numberOfPeriods:e.balancesFilter.numberOfPeriods,orderBy:e.balancesFilter.orderBy},accountViewMode:e.accountViewMode,nestedClassHierarchy:e.nestedClassHierarchy,classesToFilterOut:e.classesToFilterOut,dataAvailable:e.dataAvailable,isZeniCOAUsed:e.isZeniCOAUsed}),Oa=e=>{const o=Ya(e);if(o!=null)return ut(e.statementEndPoint,e.authParams,o)},ja=e=>{const{onClose:o,defaultOptions:r,dataAvailable:s,analytics:i,onSaveClickHandler:l,onThisPeriodChanged:p,onAdditionalBalanceSelectionChanged:f,onTimeframeSelectionChanged:b}=e,m=le();et();const[F,$]=u.useState(!1),[O,w]=u.useState(!1),[h,_]=u.useState(new Ye(r.firstMonthOfFY,r.timeframe,s,r.balancesFilter.numberOfPeriods,P.excel,r.balancesFilter.thisPeriod.endDate)),[c,y]=u.useState(r.statements),[v,x]=u.useState(r.timeframe),[j,E]=u.useState("excel"),[M,g]=u.useState(r.additionalBalances),[D,A]=u.useState(X(r.firstMonthOfFY,r.timeframe,r.balancesFilter.thisPeriod.endDate,r.balancesFilter.numberOfPeriods).dateRange),[q,We]=u.useState(e.defaultOptions.accountViewMode),[Z,qe]=u.useState(e.defaultOptions.classesToFilterOut),[V,xe]=u.useState(e.defaultOptions.balancesFilter.orderBy),[ye,Fe]=u.useState(!1),Ze=()=>{const k=te(r.firstMonthOfFY,v,D),{startOfTimeframeFY:I,endOfTimeframeFY:C}=d.getStartOfAndEndOfTimeframeForFY(D.endDate,r.firstMonthOfFY,v),L=d.zeniDate(new Date(C.year(),C.month(),C.date()).toISOString());p?.({endDate:L,startDate:I},k,!0)};u.useEffect(()=>{const k=async()=>{const I=h.endDate,{startOfTimeframeFY:C}=d.getStartOfAndEndOfTimeframeForFY(h.endDate,r.firstMonthOfFY,h.timeframe);await Oa({...e,statements:xt.filter(L=>c.includes(L)),firstMonthOfFY:e.defaultOptions.firstMonthOfFY,timeframe:h.timeframe,additionalBalances:He[h.timeframe].filter(L=>M.includes(L)),format:e.reportFormatProps.selectedFormat,statementFileType:j,accountViewMode:q,classesToFilterOut:Z,balancesFilter:{thisPeriod:{startDate:C,endDate:I},orderBy:V,numberOfPeriods:h.numberOfPeriods},dataAvailable:s,isZeniCOAUsed:e.defaultOptions.isZeniCOAUsed}),e.updateDownloadStateHandler("Completed")};ye&&e.downloadState!=="In-Progress"&&(Fe(!1),e.updateDownloadStateHandler("In-Progress"),k(),i?.trackDownload(e.referrer,ht(h.timeframe),j,!1))},[i,h.endDate,h.numberOfPeriods,h.timeframe,ye,e,s,M,j,e.reportFormatProps.selectedFormat,V,c,q,Z,r.firstMonthOfFY]),u.useEffect(()=>{O?F||$(k=>!k):w(k=>!k)},[M,V,D,e.reportFormatProps.selectedFormat]);const Ge=()=>{g(r.additionalBalances),h.maxNumberOfPeriods=P.pdf-r.additionalBalances.length;const k=te(r.firstMonthOfFY,h.timeframe,s,r.balancesFilter.numberOfPeriods),I=X(r.firstMonthOfFY,h.timeframe,h.endDate,k).dateRange;A(I),h.updatePeriod(I.startDate,I.endDate)},Je=k=>{k.stopPropagation(),o()},Ke=(k,I)=>{We(k),e.showAccountGroups===!1&&k==="account_group"?e.reportFormatProps.disabledFormatForRole.push("detailed"):k==="classes"&&e.showAccountGroups===!1&&e.reportFormatProps.disabledFormatForRole.splice(e.reportFormatProps.disabledFormatForRole.indexOf("detailed"),1),k==="classes"?c.includes("profit_and_loss")&&(y(C=>C.filter(L=>L!=="profit_and_loss")),y(C=>[...C,"profit_and_loss_by_classes"])):c.includes("profit_and_loss_by_classes")&&(y(C=>C.filter(L=>L!=="profit_and_loss_by_classes")),y(C=>[...C,"profit_and_loss"])),I!==void 0&&qe(I)},$e=()=>{_(new Ye(r.firstMonthOfFY,r.timeframe,s,r.balancesFilter.numberOfPeriods,P.excel,r.balancesFilter.thisPeriod.endDate)),g(r.additionalBalances),e.reportFormatProps.setSelectedFormat(r.accountViewMode==="classes"?e.reportFormatProps.roleBasedClassesSelectedFormat:e.showAccountGroups===!1?"more_detailed":"detailed"),xe("ascending_date"),y(r.statements),x(r.timeframe),A(X(r.firstMonthOfFY,r.timeframe,r.balancesFilter.thisPeriod.endDate,r.balancesFilter.numberOfPeriods).dateRange),$(!1),w(!1)};return t.jsxs(ga,{children:[t.jsx(xa,{role:"presentation",onClick:k=>Je(k),windowSize:m,children:t.jsx(ya,{})}),t.jsxs(Fa,{windowSize:m,children:[t.jsxs(ie,{windowSize:m,children:[t.jsx(fa,{firstMonthOfFY:e.defaultOptions.firstMonthOfFY,reportId:"profit_and_loss_by_classes",selectedFormat:e.reportFormatProps.selectedFormat,disabledFormat:e.reportFormatProps.disabledFormatForRole,selectedView:q,nestedClasses:e.defaultOptions.nestedClassHierarchy??[],classesToFilterOut:Z,classesFetchState:e.classesFetchState,showClassAccountNumber:e.defaultOptions.showClassAccountNumber??!1,showAccountGroups:e.showAccountGroups,onNewFormatSelection:e.reportFormatProps.setSelectedFormat,onNewViewSelection:Ke,onOpenAccountViewMode:e.onOpenAccountViewMode,onResetClick:$e,isResetDisabled:F}),t.jsx($a,{}),m==="small"||m==="medium-compact"?t.jsx(K,{space:a.sp5}):t.jsx(K,{space:a.sp8})]}),t.jsxs(ie,{windowSize:m,children:[t.jsx(xr,{firstMonthOfFY:r.firstMonthOfFY,calendarPeriod:h,numberOfAdditionalColumns:M.length,selectedOrderBy:V,dataAvailable:s,dateRange:D,defaultOptions:r,selectedTimeframe:v,bookCloseDate:r.bookCloseDate,onDateRangeChange:A,onSelectedTimeframeChange:x,onNewOrderBySelection:xe,selectedFileType:j,onAdditionalColumnsSelectionChanged:g}),t.jsx(K,{space:a.sp5})]}),t.jsxs(ie,{windowSize:m,children:[t.jsx(Ct,{firstMonthOfFY:e.defaultOptions.firstMonthOfFY,disabledAdditionalColumns:r.disabledAdditionalColumns,selectedTimeframe:v,dateRange:D,calendarPeriod:h,selectedAdditionalColumns:M,onAdditionalColumnsSelectionChanged:g,dataAvailable:s,selectedFileType:j}),t.jsx(K,{space:a.sp8})]})]}),t.jsx(ea,{onCancelClick:()=>o(),onViewReportClick:()=>{e.onUpdateDisplayOrder(V),e.onUpdateReportFormat(e.reportFormatProps.selectedFormat),l(q,Z),f?.(M,h.numberOfPeriods,!0),b?.(v,!1,!0),Ze(),o()},downloadingStatement:e.downloadState==="In-Progress",disabledDownloadButton:c.length===0,downloadTypeProps:{selectedFileType:j,calendarPeriod:h,numberOfAdditionalColumns:M.length,onNewFileTypeSelection:k=>{E(k),Fe(!0)},resetToDefaultOption:Ge},onResetClick:$e,isResetDisabled:F})]})},Na=e=>{const{defaultOptions:o}=e,[r,s]=u.useState(!1),i=o.additionalBalances;return t.jsxs(ha,{onClick:()=>{s(!0)},children:[t.jsx(Xe,{visibility:r?"hidden":"visible",style:{cursor:"pointer",width:a.sp4,height:a.sp4}}),r?null:t.jsx(wa,{className:"download-badge",children:o.balancesFilter.numberOfPeriods+i.length}),r?t.jsx(ja,{...e,onClose:()=>s(!1)}):null]})};export{Na as DownloadOverlayButton,ja as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as a,j as i,
|
|
1
|
+
import{e as a,j as i,br as P,o,M as h,C as s,bB as y,b as c,c as g,a6 as b,r as t,a3 as L,jh as k,ji as C,jj as D}from"./index-dX8TSOm6.js";import{n}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const l={drawerItemPadding:new s(t[3],t[3],t[4]),styledDivMarginLeft:new s(t[6],t[7]),verticalLineLeftMargin:new s(32,42),iconWidth:new s(t[5],t[6]),iconHeight:new s(t[5],t[6]),iconSize:new s(20,t[4])},v={title:new c("standardRegular","largeRegular"),content:new c("smallRegular","standardRegular")},x=h.getLocalizedStrings().rewardsPage.drawerPage,R=({rewardsPlan:e})=>{const r=[M(),_(),B({rewardsPlan:e})],d=a();return i.jsx(E,{children:r.map((f,j)=>i.jsxs(A,{children:[i.jsx(X,{children:f}),j<r.length-1?i.jsx(H,{windowSize:d}):null]},`step_${j}`))})},M=()=>{const e=a(),r=x.item1;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:e,icon:"link",children:i.jsx(N,{windowSize:e})}),i.jsx(S,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},_=()=>{const e=a(),r=x.item2;return i.jsxs(p,{windowSize:e,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:e,icon:"user",children:i.jsx(W,{windowSize:e})}),i.jsx(S,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},B=({rewardsPlan:e})=>{const r=a(),d=x.item3;return i.jsxs(p,{windowSize:r,children:[i.jsxs(m,{children:[i.jsx(z,{windowSize:r,icon:"money",children:i.jsx(I,{windowSize:r})}),i.jsx(S,{windowSize:r,children:d.title[e.planName]})]}),i.jsx($,{windowSize:r,children:i.jsx(u,{windowSize:r,children:d.content[e.planName].replace("__reward-amount__",L("0,0",e.referrerAmount))})})]})},p=n.div`
|
|
2
2
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
3
3
|
border-radius: ${o.sp2};
|
|
4
4
|
box-shadow: ${e=>`${o.sp0} 1px 2px ${o.sp0} ${e.theme.colors.dropShadowNormal}`};
|
|
@@ -15,15 +15,15 @@ import{e as a,j as i,bq as P,o,M as h,C as s,bA as y,b as c,c as g,a3 as b,r as
|
|
|
15
15
|
justify-content: flex-start;
|
|
16
16
|
`,$=n.div`
|
|
17
17
|
margin-left: ${e=>l.styledDivMarginLeft.valuePx(e.windowSize)};
|
|
18
|
-
`,
|
|
18
|
+
`,N=n(k)`
|
|
19
19
|
height: ${e=>l.iconSize.valuePx(e.windowSize)};
|
|
20
20
|
width: ${e=>l.iconSize.valuePx(e.windowSize)};
|
|
21
21
|
color: ${e=>e.theme.colors.graphColor12Dark};
|
|
22
|
-
`,
|
|
22
|
+
`,W=n(C)`
|
|
23
23
|
height: ${e=>l.iconSize.valuePx(e.windowSize)};
|
|
24
24
|
width: ${e=>l.iconSize.valuePx(e.windowSize)};
|
|
25
25
|
color: ${e=>e.theme.colors.graphColor06Dark};
|
|
26
|
-
`,
|
|
26
|
+
`,I=n(D)`
|
|
27
27
|
height: ${e=>l.iconSize.valuePx(e.windowSize)};
|
|
28
28
|
width: ${e=>l.iconSize.valuePx(e.windowSize)};
|
|
29
29
|
color: ${e=>e.theme.colors.success};
|
|
@@ -42,7 +42,7 @@ import{e as a,j as i,bq as P,o,M as h,C as s,bA as y,b as c,c as g,a3 as b,r as
|
|
|
42
42
|
`,u=n(g)`
|
|
43
43
|
color: ${e=>e.theme.colors.hero};
|
|
44
44
|
${e=>`${v.content.style(e.windowSize)}`};
|
|
45
|
-
`,
|
|
45
|
+
`,A=n.div`
|
|
46
46
|
display: flex;
|
|
47
47
|
flex-direction: row;
|
|
48
48
|
position: relative;
|
|
@@ -60,7 +60,7 @@ import{e as a,j as i,bq as P,o,M as h,C as s,bA as y,b as c,c as g,a3 as b,r as
|
|
|
60
60
|
z-index: -1;
|
|
61
61
|
`,X=n.div`
|
|
62
62
|
padding-bottom: ${o.sp4};
|
|
63
|
-
`,{common:{navBar:{back:
|
|
63
|
+
`,{common:{navBar:{back:V}}}=h.getLocalizedStrings(),w={navBarContainerPaddingXaxis:new s(10,t[3]),containerPaddingLeft:new s(t[3],t[6],t[8]),containerPaddingRight:new s(t[3],t[6],t[8])},q={title:new c("standardRegular","largeRegular")},{referAndEarn:F}=h.getLocalizedStrings().rewardsPage;function se({rewardsPlan:e,onDismissClick:r}){const d=a();return i.jsxs(G,{windowSize:d,children:[i.jsx(Q,{windowSize:d,children:i.jsxs(J,{windowSize:d,children:[d==="small"&&i.jsx(U,{children:i.jsx(P,{enterDelay:600,title:V,placement:"bottom",style:{padding:`${o.sp1} ${o.sp2}`},children:i.jsx(Y,{onClick:r})})}),i.jsx(K,{windowSize:d,children:F}),d!=="small"&&i.jsx(T,{onClick:r})]})}),i.jsx(O,{windowSize:d,children:i.jsx(R,{rewardsPlan:e})})]})}const G=n.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -78,7 +78,7 @@ import{e as a,j as i,bq as P,o,M as h,C as s,bA as y,b as c,c as g,a3 as b,r as
|
|
|
78
78
|
color: ${e=>e.theme.colors.primary};
|
|
79
79
|
width: 96%;
|
|
80
80
|
text-align: center;
|
|
81
|
-
${e=>`${
|
|
81
|
+
${e=>`${q.title.style(e.windowSize)}`};
|
|
82
82
|
`,O=n.div`
|
|
83
83
|
padding-left: ${e=>w.containerPaddingLeft.valuePx(e.windowSize)};
|
|
84
84
|
padding-right: ${e=>w.containerPaddingRight.valuePx(e.windowSize)};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import{e as ae,M as de,fs as pe,u as ce,a as ue,a5 as me,j as t,bY as ge,t as he,bZ as fe,b_ as ye,gk as xe,a2 as B,c2 as ve,o as r,br as be,F as $e,a7 as we,C as _,fv as Re,fw as Ce,fx as je,c7 as ke,l as M,ar as Oe,g as W,cw as Pe,r as c}from"./index-dX8TSOm6.js";import{b as $,n as o}from"./vendor-rkTZJa59.js";import{x as Ie}from"./AllUserItems-DuqNI8Rn-C7-Ck6tc.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./LabeledUserSingleSelectWithSubtitlesField-DucxxQKW-DpGIkkDj.js";import"./RoleWithToolTip-Cxn0Q3kG-C5ZkEEHf.js";import"./LabeledZeniRolesDropDownField-Fg_p41gp-BLJgU8CM.js";const j={containerPaddingTop:new _(c[3],c[3]),containerPaddingLeft:new _(c[3],c[6],c[6]),containerPaddingRight:new _(c[3],c[6],c[8]),buttonWidth:new _(85,85)},X="editPeoplePage",w="userItems",a=de.getLocalizedStrings().peoplePage,Ge=({peopleDetails:e,managersList:u,classList:R,controllersList:k,mode:d,isZeniTenant:T,onCloseClick:O,onResetClick:P,onSaveClick:m,onDeleteUser:H,onPeopleLocalDataUpdated:J,analytics:U,isReimbursementDisabled:D,isZeniAccountsDisabled:N,isChargeCardDisabled:Z,isTreasuryDisabled:F,isBankingOnlyTenant:y,isCardsOnlyTenant:x,isLiteRoleDisabled:q})=>{const C=ae(),[K,E]=$.useState(!1),[G,ee]=$.useState(-1),te=d==="zeni_only"?a.invitePage.editZeniTitle:a.invitePage.editTitle,se=$.useRef(null),L=$.useMemo(()=>pe(D,N,Z,y,x,q,F),[D,N,Z,y,x,q,F]),A=ce(),l=ue({mode:"onBlur",reValidateMode:"onChange",defaultValues:Y(e.people,u,R,d,L,y,x),values:Y(e.people,u,R,d,L,y,x)}),re=l.handleSubmit(()=>{V()&&m()},()=>{V(),console.warn("Edit Profile form error")}),V=()=>{const g=l.getValues();let n=!0;return g.userItems.forEach((h,v)=>{const{role:S,department:i,nonZeniRole:f,manager:p}=h;if(d==="zeni_only"){const s=S.selectedOptions;(!s?.length||s?.length===1&&s?.includes("company_officer"))&&(l.setError(`${w}.${v}.role`,{type:"required"}),n=!1)}else{const s=f?.userRole.selectedRole;(s!=null&&f!=null?f.productsByUserRole[s].map(b=>b.selectedOption).filter(b=>b!=null):[]).length<1&&(l.setError(`${w}.${v}.nonZeniRole.userRole.selectedRole`,{type:"required"}),n=!1),s!=="investor_or_banker"&&i?.selectedOption==null&&(y||x||(l.setError(`${w}.${v}.department`,{type:"required"}),n=!1)),p?.selectedUser==null&&s!=="investor_or_banker"&&(l.setError(`${w}.${v}.manager`,{type:"required"}),n=!1)}}),n},ne=async(g,n)=>{const h=[],{userItems:v}=n,S=e.person?.userRole?.userRoleId;v.forEach(i=>{let f={};if(S!=null){if(d==="zeni_only")f={email:i.email,role:i.role.selectedOptions};else{const p=i.nonZeniRole?.userRole.selectedRole;let s=[];p==="admin"||p==="investor_or_banker"?s.push(p):s=p!=null?(i.nonZeniRole?.productsByUserRole[p]??[]).map(z=>M.toUserRoleTypeStrict(z.selectedOption?.value)).filter(z=>z!=null):[],p==="employee"&&s.length===0&&s.push("reimbursements_user");const b=M.hasInvestorBankerLevelAccess(s);f={email:i.email,role:s,departmentId:b?void 0:i.department?.selectedOption?.value,managerId:b?void 0:i.manager?.selectedUser}}h.push(f)}}),J(h)};$.useEffect(()=>{const g=l.watch((n,{name:h})=>{h!=null&&n!=null&&ne(h,n)});return()=>{g.unsubscribe()}});const oe=()=>{E(!0)},le={onOkClick:()=>{const g=e.person;U?.trackRemoveUserAccess(g.userRole.userRoles,g.userRole.userEmail),H?.(e.person)},onCancelClick:()=>{E(!1)}},Q=me(e.person?.update),I=e.person?.update,ie=a.deleteOverlay.description.replace("‘_user-name_’",`"${e.person?.user?.firstName} ${e.person?.user?.lastName}"`);return $.useEffect(()=>{I==null&&Q==="removeUsers"&&(E(!1),P?.())},[I,Q]),t.jsxs(t.Fragment,{children:[K===!0?t.jsx(ge,{titleComponent:t.jsx(ye,{children:a.deleteOverlay.title}),descriptionComponent:t.jsx(fe,{children:ie}),primaryButtonText:a.deleteOverlay.remove,secondaryButtonText:a.deleteOverlay.cancel,action:le,proceedButtonVariant:"danger",isLoading:I==="removeUsers",isDisabled:I==="removeUsers",style:{background:A.colors.overlayColor},children:e.person?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{}),t.jsx(ze,{children:t.jsx(Be,{src:e.person?.user.photo?.toString()??he,alt:e.person?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(xe,{title:te,backgroundColor:A.colors.grey4,style:{zIndex:4},onCloseClick:O,isTitleAlignLeft:C==="small"}),t.jsxs(_e,{"data-testid":B("edit-people-page-container"),windowSize:C,ref:se,children:[t.jsxs(Se,{children:[t.jsx(ve,{personBasic:e.person?.user,styles:{height:r.sp6,width:r.sp6}}),t.jsxs(Te,{children:[t.jsx(Ee,{children:e.person?.user?.firstName?t.jsxs(Le,{children:[e.person?.user?.firstName??""," ",e.person?.user?.lastName??""]}):null}),t.jsx(Ne,{className:"delete-icon-wrapper","data-testid":B("edit-people-page-delete-icon-wrapper"),onClick:oe,children:t.jsx(be,{style:{padding:"2px 5px"},enterDelay:600,title:a.deleteOverlay.title,placement:"top",children:t.jsx(De,{windowsize:C})})})]})]}),t.jsx($e,{...l,children:t.jsx("form",{id:`${X}_form`,onSubmit:re,children:t.jsx(Ie,{control:l.control,sectionId:w,deleteConfirmationIndex:G,updateDeleteConfirmationIndex:ee,mode:d,isZeniTenant:T,classList:R,managersList:u,controllersList:k,customerRoleOptions:L,isBankingOnlyTenant:y,isCardsOnlyTenant:x,isEdit:!0,person:e.person,analytics:U})})})]}),t.jsx(we,{formId:`${X}_form`,"data-testid":B("edit-people-page-footer"),primaryBtn:{label:a.invitePage.update,style:{width:j.buttonWidth.value(C)},isLoading:e.updatePersonState.fetchState==="In-Progress",isDisabled:e.updatePersonState.fetchState==="In-Progress"},showCancel:!0,cancelBtn:{label:a.invitePage.cancel,style:{width:j.buttonWidth.value(C)},shouldResetOnCancel:!1,onClick:O},separatorStyle:{marginRight:r.sp4}})]})},Y=(e,u,R,k,d,T,O)=>{const P=R.map(m=>({label:m.fullyQualifiedAccountingClassName??"",value:m.classId,hoverText:m.accountingClassNumber}));return{[w]:[{userIndex:0,email:e[0].email,role:k==="zeni_only"?{allOptions:ke.roles,selectedOptions:e[0]?.role}:void 0,nonZeniRole:k!=="zeni_only"?{userRole:{selectedRole:je(e[0]?.role),allRootRole:Ce(T,O)},productsByUserRole:Re(e[0]?.role,d)}:void 0,manager:{allUsers:u,selectedUser:e[0]?.managerId?e[0]?.managerId:"no_manager"},department:{allOptions:P,selectedOption:P.find(m=>m.value===e[0]?.departmentId)}}]}},et=(e,u)=>`${e}.${u}`,_e=o.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
5
|
+
padding-left: ${e=>`${j.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
6
|
+
padding-right: ${e=>`${j.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
7
|
+
overflow-x: hidden;
|
|
8
|
+
height: 100%;
|
|
9
|
+
padding-top: ${e=>`${j.containerPaddingTop.valuePx(e.windowSize)}`};
|
|
10
|
+
gap: ${r.sp2};
|
|
11
|
+
`,Te=o.div`
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 5px;
|
|
17
|
+
flex: 1;
|
|
18
|
+
`,Ee=o.div``,Le=o(Oe)`
|
|
19
|
+
color: ${e=>e.theme.colors.primary};
|
|
20
|
+
`,Se=o.div`
|
|
21
|
+
display: flex;
|
|
22
|
+
gap: ${r.sp2};
|
|
23
|
+
align-items: center;
|
|
24
|
+
margin: ${r.sp0} ${r.sp1};
|
|
25
|
+
`,ze=o.div`
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: -26px;
|
|
28
|
+
`,Be=o.img`
|
|
29
|
+
height: 60px;
|
|
30
|
+
width: 60px;
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
color: ${e=>e.theme.colors.hero};
|
|
33
|
+
`,Ue=o.div`
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 1%;
|
|
36
|
+
left: 50%;
|
|
37
|
+
transform: translate(-50%, -50%);
|
|
38
|
+
height: 62px;
|
|
39
|
+
width: ${r.sp9};
|
|
40
|
+
border-radius: 50% 50% 0 0;
|
|
41
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
42
|
+
`,De=o(Pe)`
|
|
43
|
+
width: ${r.sp3};
|
|
44
|
+
height: ${r.sp3};
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
color: ${e=>e.windowsize==="small"?W.important:e.theme.colors.hero};
|
|
47
|
+
&:hover {
|
|
48
|
+
color: ${W.important};
|
|
49
|
+
}
|
|
50
|
+
`,Ne=o.div`
|
|
51
|
+
width: ${r.sp3};
|
|
52
|
+
height: ${r.sp3};
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
position: relative;
|
|
55
|
+
`;export{Ge as default,et as uniqueName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a5 as ai,u as bt,Q as ft,a as en,H as Ci,l as ee,M as me,N as tn,e as Ie,fR as Zn,fT as Qn,fU as eo,j as t,gb as to,F as nn,bY as li,bZ as on,b_ as an,a2 as q,o as i,C as c,a_ as ki,aN as io,dv as no,fV as oo,g4 as rn,f$ as Ii,a7 as ln,q as sn,g0 as ao,eA as _e,gc as At,f1 as si,h as xt,gd as ro,g as j,a6 as cn,J as ci,r as a,aW as lo,g2 as so,cd as co,eH as di,ge as zt,cY as fe,c_ as xe,cf as ui,cp as ct,em as uo,cX as dn,$ as Pt,ci as un,ch as Qe,cx as st,w as mi,gf as mo,f4 as po,cc as ho,ab as Di,aV as go,as as mn,aC as yo,el as bo,ap as Bt,fW as fo,bt as pn,b as pi,c as hn,cz as gn,bR as Mt,eX as xo,ar as wo,cD as So,d3 as $o,s as hi,X as Ti,br as yn,ak as ji,cw as vo,m as Co,cl as bn,a3 as ko,gg as fn,gh as ri,fM as Ri,gi as Ot,cv as Io,fQ as Do,b8 as To,cu as jo}from"./index-dX8TSOm6.js";import{b as v,n,f as vt}from"./vendor-rkTZJa59.js";import{_ as Ro}from"./liveblocks-CP09Cz-7.js";import xn from"./InvoiceUploadSection-C84g6m-u-CTBUGTYr.js";import{r as Po,f as Lt,d as yt,p as gi,u as Pi,h as ve}from"./types-DyvtCprH-BcZYcgaq.js";import{D as Oo}from"./LabeledCreatableSingleSelectField-B-m-gINB-DKWDwbZB.js";import{S as Lo}from"./CurrencySelectField-Cy3069QS-B4qJii4j.js";import{J as Ao}from"./SetUpDefaultSection-e5I_whKg-CWXMi4yS.js";import{e as zo}from"./BankAccountSection-CFnXlTaa-wnOEAJae.js";import{W as Bo,A as Mo}from"./BankAccountWarningSection-Dl7DA-Xf-Bk2O3H_M.js";import{o as Fo}from"./radio-default-CiSgisfh-Z5w0WcFM.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-CK3r1iTV.js";import"./AttachmentView-D9MocUS9-BtgOsoHb.js";import"./uploadReceipts-B3-z3hJ9-DECDgzHp.js";const Je=(e,o)=>`${e}.${o}`,Oi={largeLabelWidth:new c(120,120,160),paddingBottom:new c(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Re}},dateFormat:Eo,common:No}=me.getLocalizedStrings(),Wo=({lineIndex:e,mileage:o,classList:r,defaultCurrency:u,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:S,companyMileageConfigInfo:b,reimbursementId:l,classHierarchyList:k})=>{const f=Ie(),s=ft(),g=zt(),w=`dashboard_${s.currentTenant?.companyId}`,R=bt(),{getValues:T}=ct(),$=No.strings.empty,K=T(Je(p,"distanceInMiles")),L=Oi.largeLabelWidth.value(f),I={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},E=A=>r.filter(_=>_.classId===A)[0]?.accountingClassNumber,te=r.find(A=>A.classId===o.class),pe={valueContainer:A=>({...A,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.transactionDate`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("transactionDate",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(bn,{isDisabled:m,label:{label:Re.transactionDate,width:L},style:{paddingBottom:Oi.paddingBottom.valuePx(f),width:"auto"},dateField:{name:Je(p,"transactionDate"),placeholder:Re.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Eo.visual.defaultInput,autoComplete:"off",maxDate:ee.dateNow(),registerOptions:{required:!0,validate:A=>!!A}}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:S?"disabled":void 0,style:{width:"auto"},label:{label:Re.distanceInMiles,width:L},formattedTextField:{type:"number",name:Je(p,"distanceInMiles"),placeholder:Re.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.amount`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("amount",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:"disabled",label:{label:Re.amount,width:L},formattedTextField:{type:"number",name:Je(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:Qe(Re.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:K!=null&&b?.mileageUnitAmount!=null?`${u.currencySymbol}${b?.mileageUnitAmount} per mile x ${K}`:void 0})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.memo`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("memo",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(ui,{isDisabled:m,label:{label:Re.memo,width:L},style:{width:"auto"},text:{type:"text",name:Je(p,"memo"),placeholder:Qe(Re.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:fn}}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.class`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("class",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(ri,{isLoading:!1,label:{label:Re.department,width:L},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Je(p,"class"),placeholder:Qe(Re.department),valueToId:A=>E(A),defaultValue:{selectedOption:te?.classId,allOptions:_e(k,[])},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:A=>!!A.selectedOption}},style:{borderBottom:`1px solid ${R.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Je(p,"class"))})]})},Ct=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey3};
|
package/dist/assets/{EntityDetailPage-BbITG8i5-BGeGObtn.js → EntityDetailPage-B0_iMMXi-BFK6-vDg.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{u as y,M as T,
|
|
1
|
+
import{u as y,M as T,ab as C,j as o,D as v,o as t,L as m}from"./index-dX8TSOm6.js";import{n as a}from"./vendor-rkTZJa59.js";import{R as $}from"./TrendWithTransactions-CWgoVTcb-CGbGhBS1.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./TrendChart-BkdPYoj4-D9rpAM75.js";import"./chartTypes-CCFDB3ft-gWEy54C4.js";import"./toCOABalancesWithID-M4gPqViI-CcaXT71y.js";import"./toChartData-CrsGFSA1-DRCqW50O.js";import"./NoDataChart-CI5rKAJf-IpywfvaI.js";import"./InsightsSection-MD_7iYyd-CoTr4evA.js";import"./NavigationDots-D6hsvkMX-Dc9TKWSO.js";import"./TransactionList-d0Qe-D7V-BamSxQ9h.js";import"./BoxItem-BwOmI0eo-Bg_oDJrZ.js";import"./commonDimensions-FafZVRxo-CSxm8Nzu.js";const k=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
margin: ${t.sp0} ${t.sp0} ${t.sp0} ${t.sp0};
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
width: 100%;
|
|
6
6
|
height: 100%;
|
|
7
7
|
background-color: ${i=>i.theme.colors.grey5};
|
|
8
|
-
`,
|
|
8
|
+
`,M=a.div`
|
|
9
9
|
padding-left: ${t.sp0};
|
|
10
10
|
position: fixed;
|
|
11
11
|
width: 100%;
|
|
@@ -13,6 +13,6 @@ import{u as y,M as T,a8 as C,j as o,y as v,o as t,H as m}from"./index-BkGkQn7J.j
|
|
|
13
13
|
position: -webkit-sticky;
|
|
14
14
|
position: sticky;
|
|
15
15
|
top: ${t.sp0};
|
|
16
|
-
`,
|
|
16
|
+
`,j=a.div`
|
|
17
17
|
flex: 1 1 auto;
|
|
18
|
-
`;function J({firstMonthOfFY:i,selectedEntity:e,trendWithTransactionsReport:n,autoCompleteData:l,autoCompleteActions:d,analytics:s,onTransactionItemClick:c,onTrendSelectedPeriodChange:h}){const u=y(),{dateFormat:{analytics:f}}=T.getLocalizedStrings(),g=new C(u.colors.graphColor12),x=(p,r)=>{p==="Chart"&&r!=null&&s?.trackSpendIncomeTrend(e.type==="vendor"?m.Event.spendTrend:m.Event.incomeTrend,"Search",e.type,e.name,r?.addTimePeriod.startDate.format(f.MMMYYFormat)),p==="TransactionListLoadMore"&&s?.trackTransactionList(void 0,void 0,"Search",void 0,void 0,!0),h?.(r)};return o.jsxs(
|
|
18
|
+
`;function J({firstMonthOfFY:i,selectedEntity:e,trendWithTransactionsReport:n,autoCompleteData:l,autoCompleteActions:d,analytics:s,onTransactionItemClick:c,onTrendSelectedPeriodChange:h}){const u=y(),{dateFormat:{analytics:f}}=T.getLocalizedStrings(),g=new C(u.colors.graphColor12),x=(p,r)=>{p==="Chart"&&r!=null&&s?.trackSpendIncomeTrend(e.type==="vendor"?m.Event.spendTrend:m.Event.incomeTrend,"Search",e.type,e.name,r?.addTimePeriod.startDate.format(f.MMMYYFormat)),p==="TransactionListLoadMore"&&s?.trackTransactionList(void 0,void 0,"Search",void 0,void 0,!0),h?.(r)};return o.jsxs(k,{children:[o.jsx(M,{children:o.jsx(v,{viewType:"entity_search",searchAutoComplete:{autoCompleteData:l,autoCompleteActions:d},source:"EntityDetailPage"})}),e!=null&&n!=null&&o.jsx(j,{children:o.jsx($,{firstMonthOfFY:i,trendWithTransactionsReport:n,isDetailPage:!1,graphColor:g,page:"EntityDetailPage",onTransactionItemClick:c,onTimePeriodChange:x})})]})}export{J as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as z,M as L,j as i,ds as O,C as d,cB as _,o as s,E as S,
|
|
1
|
+
import{e as z,M as L,j as i,ds as O,C as d,cB as _,o as s,E as S,a3 as b,am as K,c0 as R,r,c9 as B,m as U,s as k,ar as F,w as N,c5 as G,g as D,c8 as I}from"./index-dX8TSOm6.js";import{b as f,n as t}from"./vendor-rkTZJa59.js";import{l as J}from"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";const w=L.getLocalizedStrings().reports.aging.agingDetail.header,m=[{key:"date",value:w.date,sortOrder:"ascending",width:new d(212,212)},{key:"invoiceNumber",value:w.invoiceNumber,sortOrder:"ascending",width:new d(188,188)},{key:"dueDate",value:w.dueDate,sortOrder:"ascending",width:new d(188,188)},{key:"daysPastDue",value:w.daysPastDue,sortOrder:"ascending",width:new d(188,188)},{key:"amount",value:w.amount,sortOrder:"ascending",width:new d(188,188)},{key:"balance",value:w.balance,sortOrder:"ascending",width:new d(120,120)}],M={headerHeight:new d(45,58)},Q=t.div`
|
|
2
2
|
top: ${s.sp0};
|
|
3
3
|
left: ${s.sp0};
|
|
4
4
|
min-height: ${e=>M.headerHeight.valuePx(e.windowSize)};
|