@zeniai/web-cockpit-ui 1.14.72-dev → 1.14.72-dev-betaSK01
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-BZFkcCOG-Bm0yzLzS.js → ACHDetailsPage-BZFkcCOG-WfBPHoUX.js} +2 -2
- package/dist/assets/{AIPerformancePage-DtNLjoUW-C8WssBlV.js → AIPerformancePage-DtNLjoUW-CinUSJg2.js} +124 -124
- package/dist/assets/{AccountInfoPage-D-E_-WpE-D3xkesKo.js → AccountInfoPage-D-E_-WpE-DJyb7x4k.js} +2 -2
- package/dist/assets/{AccountInfoPageContent-B8GKrtCm-Bl_GPEk1.js → AccountInfoPageContent-B8GKrtCm-10kK72ec.js} +13 -13
- package/dist/assets/AccountLockedInfoModal-BD7Nb81U-ZCs8qzoa.js +59 -0
- package/dist/assets/AccountReconDetailsDrawerPage-D-_ME0pV-BuvZZBZ-.js +239 -0
- package/dist/assets/{AccountRow-Be3LIHO--AtWCxnkE.js → AccountRow-Be3LIHO--BjLJB43L.js} +32 -32
- package/dist/assets/AccountsPromoCardStack-CdBwPVgI-CkQ7kJh8.js +207 -0
- package/dist/assets/{AddAddressForCardDrawer-Lm7cn4kq-BwSuj-eK.js → AddAddressForCardDrawer-Lm7cn4kq-DzFp-OyN.js} +2 -2
- package/dist/assets/{AddToWalletPage-nSq-9dQy-DNXeo8yV.js → AddToWalletPage-nSq-9dQy-D56Hf4hb.js} +13 -13
- package/dist/assets/AgingReportsPage-L0zQxwCf-D3sUJmot.js +79 -0
- package/dist/assets/AllUserItems-CvwaOEhu-DISgj-9d.js +192 -0
- package/dist/assets/ApAgingDetailPage-B_78aSEv-DLL7XkHo.js +46 -0
- package/dist/assets/{AppBasePage-Br0WbQRY-C5P2SI_a.js → AppBasePage-Br0WbQRY-BAK8zLlg.js} +5 -5
- package/dist/assets/{AppDrawerContent-BZODvVvi-DO9-i0u3.js → AppDrawerContent-BZODvVvi-DQ-V9QL0.js} +7 -7
- package/dist/assets/ApprovalRulesSettingsPage-Dxd7A3hZ-CRTSWRxG.js +47 -0
- package/dist/assets/ArAgingChart-BezVy1Sm-ClcQ64wd.js +24 -0
- package/dist/assets/{ArAgingDetailPage-BlV3iJeW-DvSoM4Rd.js → ArAgingDetailPage-BlV3iJeW-D0lCDh_0.js} +3 -3
- package/dist/assets/{AttachmentView-DhluaeAV-DnrJUkr5.js → AttachmentView-DhluaeAV-DsM43aN0.js} +9 -9
- package/dist/assets/{BankAccountSection-GDEQdiGL-CuwfGvXF.js → BankAccountSection-GDEQdiGL-CmBLlIS1.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-Di_BsiJC-Cp36wJhl.js → BankAccountWarningSection-Di_BsiJC-_Ul1tNJQ.js} +9 -9
- package/dist/assets/BankConnectionsSettingsPage-D5hI4xtm-ik9FJnty.js +425 -0
- package/dist/assets/BillDetailPage-CDAh8Jtl-wk3WJY1W.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-BzyTn4mC-DYCBn6RW.js → BillPayApprovalRuleDetailPage-BzyTn4mC-DxDRXjZW.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DDJ-LxQz-D20J03DB.js → BillPayApprovalRulesPage-DDJ-LxQz-B-4hhNoy.js} +7 -7
- package/dist/assets/BillPayPromoPage-B2YcxWc9-ChjVVUdj.js +84 -0
- package/dist/assets/BillPaySetUpPage-oJvoWpFu-ZQ44J65y.js +42 -0
- package/dist/assets/BillingSettingsPage-BRsKYzT5-C1YZEc97.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-B7tORIok-09a60H-u.js +1 -0
- package/dist/assets/{BoxItem-COIjjFrn-DqU4ZyNU.js → BoxItem-COIjjFrn-CYZK_lth.js} +4 -4
- package/dist/assets/BusinessVerificationPage-Nw_fedst-Ce7UF4J6.js +138 -0
- package/dist/assets/{CardNumberSubText-CmhH95Ff-CLBGKyAX.js → CardNumberSubText-CmhH95Ff-D70_vfvB.js} +2 -2
- package/dist/assets/{CashbackDetailPage-BPLjvuA3-362WFi2j.js → CashbackDetailPage-BPLjvuA3-D2AlurqK.js} +56 -56
- package/dist/assets/{ChargeCardDetailPage-qOu4cPGd-BUoeKuHJ.js → ChargeCardDetailPage-qOu4cPGd-CMQ9x73T.js} +215 -215
- package/dist/assets/ChargeCardListPage-v5hH98Wi-BhiUhdgm.js +406 -0
- package/dist/assets/{ChargeCardListTable-BGWV4zJl-fPTlw7hA.js → ChargeCardListTable-BGWV4zJl-CcT6S7FA.js} +51 -51
- package/dist/assets/ChargeCardPromoPage-CPEaGOL3-CiA1pNTj.js +222 -0
- package/dist/assets/ChargeCardSetupPage-G5Rn0o6y-Bqw8Kqbv.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-CJgUrcLz-BpTcE_Fq.js → ChargeCardStatementsPage-CJgUrcLz-BY-SWhAj.js} +3 -3
- package/dist/assets/ChargeCardUtils-BRgkrCTs-Bo37IpfS.js +1 -0
- package/dist/assets/{ChaseOverlay-BC_4vwtb-ZJ37WP7g.js → ChaseOverlay-BC_4vwtb-BQqHx8M-.js} +4 -4
- package/dist/assets/{CheckDepositDrawerPage-CDo5E13X-BcLnzbHC.js → CheckDepositDrawerPage-CDo5E13X-CKNKZDF1.js} +21 -21
- package/dist/assets/CollapsableReportTable-7iAngywY-BhPujiYA.js +2932 -0
- package/dist/assets/CompanyOfficerDetailsSection-CJKyxEnf-B2MTqDnr.js +260 -0
- package/dist/assets/{CompanyPassportCard-D3F01eJL-CYg3XwZh.js → CompanyPassportCard-D3F01eJL-BhEJq4YF.js} +1 -1
- package/dist/assets/CompanyPassportPage-BQoEcPJr-CLTXsXdq.js +574 -0
- package/dist/assets/CompleteProfile-D5e9TQgy-B3NCfzYL.js +52 -0
- package/dist/assets/{ConfettiBurst--HIHB7Os-CFkZhGnX.js → ConfettiBurst--HIHB7Os-S4QyIwiq.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D9jmSrKr-BqbzMjKm.js → CreateOrEditVendorPage-D9jmSrKr-DpdjBsSE.js} +11 -11
- package/dist/assets/CreditCardPaymentDrawerPage-DXeq4z9l-C-tETdxW.js +224 -0
- package/dist/assets/{CreditCardPaymentPlgSection-8ZShMO31-D_nbIzHo.js → CreditCardPaymentPlgSection-8ZShMO31-COciJwfu.js} +10 -10
- package/dist/assets/{CurrencySelectField-nhg_dhDw-Ct_sJsLw.js → CurrencySelectField-nhg_dhDw-nZHVWMo0.js} +6 -6
- package/dist/assets/{CustomerOnboardingActivationPage-CoGvz7Kd-2HboMU2B.js → CustomerOnboardingActivationPage-CoGvz7Kd-1Tt5lNh3.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-CdqN8qku.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DUGRKWtN-Bm0dGA9J.js → CustomerOnboardingDetailPageSkeleton-DUGRKWtN-ClKlbRH6.js} +13 -13
- package/dist/assets/{CustomerOnboardingNoStepsPage-Cc5frP29-BNFSu_0c.js → CustomerOnboardingNoStepsPage-Cc5frP29-Pt9D5fwX.js} +6 -6
- package/dist/assets/CustomerOnboardingPage-zBqp9QN6-BMM-roBm.js +107 -0
- package/dist/assets/CustomerOnboardingProductSuitePage-BbJ4oiCI-DgRG1l8f.js +202 -0
- package/dist/assets/{Dashboard-D6Ba5oj0-DGZ5Ekyf.js → Dashboard-D6Ba5oj0-C5iZr7Dc.js} +262 -262
- package/dist/assets/DashboardReportPage-DTMbYOWH-B0H-UpGg.js +371 -0
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Locz2zHR-BPk9MxB4.js → DashboardSidebarBackgroundAnimation-Locz2zHR-Bhgpjfq-.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-B0BGwVqF-CxL2uxQm.js → DepositAccTransactionItem-B0BGwVqF-Cwta5ei3.js} +5 -5
- package/dist/assets/DepositAccTransactionListPage-CcO673ZL-D1h5XemH.js +66 -0
- package/dist/assets/DomesticWireDetailsPage-D5hbPNCt-Bhq4tM9b.js +21 -0
- package/dist/assets/DownloadOverlay-DRcasKoB-BTfb8tZj.js +439 -0
- package/dist/assets/{DrawerPage-BRD6cE6J-CdG9rNJx.js → DrawerPage-BRD6cE6J-1UMYAHb7.js} +13 -13
- package/dist/assets/EditPeoplePage-Zzo62if7-Clw_H_tG.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-DgdwTZwz.js +865 -0
- package/dist/assets/EntityDetailPage-CzlzOW8n-CjIrlTQm.js +18 -0
- package/dist/assets/{EntitySummarySection-BRt1kPDf-BrvMzC_z.js → EntitySummarySection-BRt1kPDf-DQbEIQFx.js} +28 -28
- package/dist/assets/{ExpenseAutomationOverviewPage-vUkGameq-D28DcERt.js → ExpenseAutomationOverviewPage-vUkGameq-CHnaqssF.js} +50 -50
- package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-DxIRsn8B.js +1650 -0
- package/dist/assets/ExpressPayPage-DdQiFzDu-CXe6diRB.js +168 -0
- package/dist/assets/{FeaturePreviewPage-CQN2xThT-D8GcVVCI.js → FeaturePreviewPage-CQN2xThT-DJXN60Ac.js} +3 -3
- package/dist/assets/{FollowStepsSection-DdwEVWhG-XjqeMDlz.js → FollowStepsSection-DdwEVWhG-yjJ5FRCa.js} +21 -21
- package/dist/assets/GlobalReviewListPage-DHn2Uk8R-Dz5cpAt1.js +291 -0
- package/dist/assets/HelpButton-BNMy-6ce-CVlMGZqS.js +28 -0
- package/dist/assets/{InformationCardStack-Cw7c9Pnd-JKEjusS_.js → InformationCardStack-Cw7c9Pnd-BX2LTL8l.js} +2 -2
- package/dist/assets/InsightsCardStack-CaMZiCnn-DLt2ZmbV.js +79 -0
- package/dist/assets/{InsightsSection-JIKb9lz3-CSUvMdaP.js → InsightsSection-JIKb9lz3-Hi0aN8hq.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-h4pel2yK-CfkisAjm.js → IntegrationsSettingsPage-h4pel2yK-CxqwarZy.js} +4 -4
- package/dist/assets/{InternationalWireSwiftDetailsPage-C2SnHEV1-D4h6wt17.js → InternationalWireSwiftDetailsPage-C2SnHEV1-CzlIxaS1.js} +16 -16
- package/dist/assets/{InternationalWireVerificationPage-Dk11ztF7-CGQwkBKG.js → InternationalWireVerificationPage-Dk11ztF7-BCCRbUea.js} +28 -28
- package/dist/assets/{InviteFormPage-CrtH0cSG-lBcBfRNC.js → InviteFormPage-CrtH0cSG-eVIYbN0r.js} +16 -16
- package/dist/assets/{InvitePageListView-DUoopPip-D3WES4Ay.js → InvitePageListView-DUoopPip-D5qrm4ww.js} +164 -164
- package/dist/assets/InvitePeoplePage-C3ecL8XJ-olYxQVFB.js +12 -0
- package/dist/assets/InvoiceUploadSection-DoR834b4-CjFOCIIZ.js +140 -0
- package/dist/assets/{IssueChargeCardPage-D6DCohbK-CY0NLJ-D.js → IssueChargeCardPage-D6DCohbK-BMG4Ljit.js} +10 -10
- package/dist/assets/{LabeledAddressValue-C3R0DSjj-DSFQoK0_.js → LabeledAddressValue-C3R0DSjj-CpxXKm9c.js} +1 -1
- package/dist/assets/LabeledAddressValueField-YP7bXlgZ-D9-PqJNp.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-zwoLFM1n-WAKwiqVu.js → LabeledControlledCheckBoxField-zwoLFM1n-B44wDW2V.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BhaeopJt-r1U--LmU.js → LabeledCreatableSingleSelectField-BhaeopJt-tsmH64cn.js} +7 -7
- package/dist/assets/LabeledDocumentField-ED03S2kQ-BGespvxP.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-brzU_fnp-DR9C1PhE.js → LabeledDropDownFormattedTextField-brzU_fnp-hUkbh0bF.js} +5 -5
- package/dist/assets/{LabeledText-BESSkt5Z-DvRhicFs.js → LabeledText-BESSkt5Z-CPDVK04g.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-BRFp4N3Z.js → LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-DaWgPr9f.js} +18 -18
- package/dist/assets/{LabeledZeniRolesDropDownField-BXTCN4j2-C9dcF_vL.js → LabeledZeniRolesDropDownField-BXTCN4j2-CLEMt0Ht.js} +33 -33
- package/dist/assets/LinkJETransactionPage-_ROjxBMO-C6IEO3Ec.js +98 -0
- package/dist/assets/{LockCardPage-DYfgK11k-CA2sqFlt.js → LockCardPage-DYfgK11k-BFAZ4k7o.js} +71 -71
- package/dist/assets/LowBalancePopup-CZDcHxyW-BSR036zV.js +34 -0
- package/dist/assets/{MagicLinkACHDetailsPage-CLXcRbZ--CVcTUs2d.js → MagicLinkACHDetailsPage-CLXcRbZ--B-X6oebP.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CZlZr96w-BPglJFOV.js → MagicLinkDomesticWireDetailsPage-CZlZr96w-DllJxuHV.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DhPjvv0o-DFwZaRYm.js → MagicLinkInternationalWireDetailsPage-DhPjvv0o-BIaiGIsd.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Bh2nlLPN-Ddx1hbRe.js → MagicLinkSuccessPage-Bh2nlLPN-6rfZopUb.js} +3 -3
- package/dist/assets/MagicLinkTitleSection-Cn1v72Rs-Dx0fyRw5.js +17 -0
- package/dist/assets/{MailingDetailsSection-9RwlQxVG-C09sdGhg.js → MailingDetailsSection-9RwlQxVG-_UrE81Sw.js} +2 -2
- package/dist/assets/{MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js → MeetingCalenderPopup-BxV_UIXP-BXGtVHle.js} +4 -4
- package/dist/assets/Menu-B6iTf2H7-Cu2Vb11u.js +17 -0
- package/dist/assets/MyBankConnectionsSettingsPage-IPPiH6jv-uU5Nku5W.js +110 -0
- package/dist/assets/MyPendingActivationChargeCardListPage-BTGb1yIE-yyVAdXqO.js +6 -0
- package/dist/assets/MyProfileSettingsPage-BRK5nWg2-BCkp79gR.js +85 -0
- package/dist/assets/{NavBarWithPicker-CKh_HMfV-U1f60LTo.js → NavBarWithPicker-CKh_HMfV-i4ObGPrS.js} +4 -4
- package/dist/assets/{NavigationArrow-XZmJpDrE-BSGdgz-m.js → NavigationArrow-XZmJpDrE-DolsLofY.js} +2 -2
- package/dist/assets/{NavigationDots-BxPgEW_p-CnLRJgGA.js → NavigationDots-BxPgEW_p-Cjr25BX_.js} +3 -3
- package/dist/assets/{NewGlobalMerchantPage-CQzrDe0S-CFbklyjG.js → NewGlobalMerchantPage-CQzrDe0S-K2NUXsKS.js} +35 -35
- package/dist/assets/{NoDataChart-5E72SElf-Bfyft1Tp.js → NoDataChart-5E72SElf-3CnLxisw.js} +4 -4
- package/dist/assets/{NoDataTable-BwHbkm3l-C4AJlFQY.js → NoDataTable-BwHbkm3l-VTHrTfOq.js} +2 -2
- package/dist/assets/{NotFoundPage-6udaksBZ-Bdrzyyzv.js → NotFoundPage-6udaksBZ-DUgTbMe0.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DkYmxMgg-B7fNoy2R.js → NotificationSettingsPage-DkYmxMgg-BVRECpS0.js} +32 -32
- package/dist/assets/{NotificationsListConfig-FGxLgO1o-Bjqs17aQ.js → NotificationsListConfig-FGxLgO1o-C0kfEx8A.js} +1 -1
- package/dist/assets/NotificationsPage-C7lSAnUb-CEUwTZM_.js +685 -0
- package/dist/assets/{OpExByVendorPage-CM0RluUk-BgpW2giu.js → OpExByVendorPage-CM0RluUk-PZB-G7xm.js} +4 -4
- package/dist/assets/{OverlayContainerPage-BKHs_4eI-mLdiagVZ.js → OverlayContainerPage-BKHs_4eI-CSsJiY_P.js} +2 -2
- package/dist/assets/PandLWithForecastPage-W4jlNjml-8wxKAhbo.js +107 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQ82eP9Q-ChYOGpfy.js → PaymentAccountSetupBillingAddressSection-DQ82eP9Q-Cwm2aoR2.js} +9 -9
- package/dist/assets/{PeoplePage-CB3T3u_F-DC1PdCPq.js → PeoplePage-CB3T3u_F-BR69e4ui.js} +96 -96
- package/dist/assets/{PortfolioAllocationFormPage-CZkJD6tu-CmTdPnvM.js → PortfolioAllocationFormPage-CZkJD6tu-1mutznS7.js} +13 -13
- package/dist/assets/{PortfolioDetails-D4yT8r35-DSk0Sc23.js → PortfolioDetails-D4yT8r35-BZAutCbg.js} +34 -34
- package/dist/assets/{ProductsCarousel-CR7_rk0K-DQWJaP-C.js → ProductsCarousel-CR7_rk0K-CKMGS-I4.js} +7 -7
- package/dist/assets/{PromoBaseCards-BAPolzxE-DLtmx-3v.js → PromoBaseCards-BAPolzxE-DjUVr5kX.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-D3eazhj7-fJDNmSLU.js → QBOConnectionDialog-D3eazhj7-DCdAj667.js} +7 -7
- package/dist/assets/{QBOSetupSection-Cjjhm_Ee-CrlXRkit.js → QBOSetupSection-Cjjhm_Ee-CX61tnWs.js} +12 -12
- package/dist/assets/ReimbursementApprovalRuleDetailPage-eidNY097-DDLdjGbX.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-GSzJGSuy-H2GhhV11.js → ReimbursementApprovalRulesPage-GSzJGSuy-DOLnlfRe.js} +12 -12
- package/dist/assets/ReimbursementDetailPage-AvqEBxbz-ByJDRCe5.js +314 -0
- package/dist/assets/ReimbursementPromoPage-PshodHUZ-CEBQKb7P.js +84 -0
- package/dist/assets/ReimbursementSetUpPage-6P4FT-UC-BMbaH1eU.js +140 -0
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-Cas6GzVp-CEJlVV08.js +1 -0
- package/dist/assets/{ReloadCard-Dpoxd9nE-B9DlyhD4.js → ReloadCard-Dpoxd9nE-_RGkkZLm.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-Ci-WKrCO-DAZRgQwg.js → ReportTableViewSelector-Ci-WKrCO-D0sA8766.js} +30 -30
- package/dist/assets/ReportsPage-C7zirS74-oNrbhh6a.js +121 -0
- package/dist/assets/{RevenueChart-CXMBT3cr-DnDEiqPG.js → RevenueChart-CXMBT3cr-BigDcfmP.js} +29 -29
- package/dist/assets/ReviewDetailsPage-ClsyL5-w-rKSUEvaS.js +290 -0
- package/dist/assets/{ReviewOverlay-C6Kx7Hfm-IahzUsv3.js → ReviewOverlay-C6Kx7Hfm-Aab2M4el.js} +12 -12
- package/dist/assets/{RoleWithToolTip-BqI6M0x_-CwUqJeb5.js → RoleWithToolTip-BqI6M0x_-3Pz3ZAbU.js} +2 -2
- package/dist/assets/ScheduleDetailsFixedAssetsPage-zFyJPVpN-Dm8QVj-0.js +37 -0
- package/dist/assets/ScheduleDetailsPage-BftjSvA7-D97uCI5t.js +37 -0
- package/dist/assets/{ScheduleSequenceTable-lTN7r0p4-BFWt_8N-.js → ScheduleSequenceTable-lTN7r0p4-BmAjQVGV.js} +42 -42
- package/dist/assets/ScreenRoutes-Du6t5Ig_.js +206 -0
- package/dist/assets/SetUpAccountSection-Bnbi8X23-7-Jadv9H.js +378 -0
- package/dist/assets/{SetUpDefaultSection-Bm1eZSgT-BcxYXAIw.js → SetUpDefaultSection-Bm1eZSgT-9DFPAVat.js} +13 -13
- package/dist/assets/{SignIn-BlISBvt5-C9HXqHPg.js → SignIn-BlISBvt5-BSeULTEW.js} +28 -28
- package/dist/assets/SignInScreen-BN2xWnU-.js +1 -0
- package/dist/assets/SpendManagementListViewPage-ChNp8dgm-ByNxcaX6.js +123 -0
- package/dist/assets/SpendManagementPerTabPage-D-bOr2-6-C5z49u7s.js +754 -0
- package/dist/assets/SpendManagementSection-kucZgC-H-Cqflt6S1.js +230 -0
- package/dist/assets/SpendMgmtSetupAccountSection-de7hEmtE-9bAK-YlL.js +206 -0
- package/dist/assets/{StatementItem-BVIVLdDn-BLcyHqWZ.js → StatementItem-BVIVLdDn-DWQxeT2X.js} +2 -2
- package/dist/assets/StatementsPage-KnLUSJbm-DVR36Ge4.js +58 -0
- package/dist/assets/{StatusSwitcher-aAizq1mr-D4E7X1zy.js → StatusSwitcher-aAizq1mr-c-jcIGD9.js} +2 -2
- package/dist/assets/{SubTabSwitcher-COrYJ6CW-B2hsvJe_.js → SubTabSwitcher-COrYJ6CW-BIZF-iNv.js} +1 -1
- package/dist/assets/{SummaryCard-Dv0dWKBw-BnK7xgrF.js → SummaryCard-Dv0dWKBw-CGu-GHYa.js} +1 -1
- package/dist/assets/TaskManagementPage-CPLyyK1Y-BZe-OFxL.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-ifkHfqEg-CGFdCObN.js → TimeRangeSwitcher-ifkHfqEg-VY1vzvIS.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-BP-PxO5g-DG6ysLlp.js → TimeframeSwitcher-BP-PxO5g-DxTIS9PI.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DH-PfsTQ-Dd12kokF.js → TimeframeSwitcherWithToggle-DH-PfsTQ-D7U0L-cV.js} +1 -1
- package/dist/assets/{TopExCard-Bam-Q4MV-GCmLzO6i.js → TopExCard-Bam-Q4MV-BsP_HKjG.js} +6 -6
- package/dist/assets/{TopExDetailPage-P0Twt5zZ-BElfoauE.js → TopExDetailPage-P0Twt5zZ-CoHp8hDQ.js} +12 -12
- package/dist/assets/TransactionDetailPage-D1Z1f-DD-BPMl_wDr.js +912 -0
- package/dist/assets/TransactionList-BzJEbOV9-0ST5sY1-.js +147 -0
- package/dist/assets/{TransactionListBig-u4SJBZTE-BZvqZwTB.js → TransactionListBig-u4SJBZTE-BlGBIBoN.js} +44 -44
- package/dist/assets/{TransactionListPage-D4GJ6i3l-BXLL3BhX.js → TransactionListPage-D4GJ6i3l-yaso0Nlb.js} +3 -3
- package/dist/assets/{TransactionVendorDetailPage-CuFHbm8c-Cl9iluIt.js → TransactionVendorDetailPage-CuFHbm8c-kFca8x3E.js} +5 -5
- package/dist/assets/{TransferDrawerPage-GD2I8ptj-B7cXbGdy.js → TransferDrawerPage-GD2I8ptj-CANT8JC_.js} +27 -27
- package/dist/assets/TreasuryOverviewPage-DySunaqy-Du5jK6WV.js +708 -0
- package/dist/assets/{TreasuryPromoPage-DW1f8_q1-CZjoBD0v.js → TreasuryPromoPage-DW1f8_q1-CkWefV3r.js} +6 -6
- package/dist/assets/{TreasurySetupPage-53k6ARHC-8YVNt5Wt.js → TreasurySetupPage-53k6ARHC-DuoYqIOy.js} +3 -3
- package/dist/assets/{TreasuryStatementsPage-pIshKNaR-Dtfk2lx_.js → TreasuryStatementsPage-pIshKNaR--8vN-IgR.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-B3PkB1al-CKVKJh1V.js → TreasuryTaxLetterPage-B3PkB1al-CkqZdxpj.js} +5 -5
- package/dist/assets/TreasuryTransferOrReviewPage-Dzq-FxSM-DKViGoiZ.js +576 -0
- package/dist/assets/TrendChart-B_5D-Zud-Cw_zgD-R.js +16 -0
- package/dist/assets/{TrendWithTransactions-mI_El5D1-SbfSjDf-.js → TrendWithTransactions-mI_El5D1-DUVZm_U-.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-LQeq8Gdv-BxpsIXJf.js → UncategorizedAccountsMappingPage-LQeq8Gdv-BNgZRg4x.js} +47 -47
- package/dist/assets/{UnitIntegrationPage-XOWqGHla-DR8O2yO4.js → UnitIntegrationPage-XOWqGHla-BIoTpmZ_.js} +11 -11
- package/dist/assets/UploadAdditionalDocumentOverlay-DhXRLBEg-BNMbNbJQ.js +38 -0
- package/dist/assets/{Vendor2FAPopup-BfqIHZBb-CksyyTez.js → Vendor2FAPopup-BfqIHZBb-DUpQFrOM.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CswCvAFH-CdUK-HJH.js → VendorACHDetailsPage-CswCvAFH-DqnJleBx.js} +1 -1
- package/dist/assets/VendorDetailPage-CEX7xMIN-D29fVYfj.js +257 -0
- package/dist/assets/{VendorDomesticWireDetailsPage-DxrSjlTR-B4ZHtbXA.js → VendorDomesticWireDetailsPage-DxrSjlTR-GbXdyYXP.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-q1gQ8keD-BmDatzoV.js → VendorFiling1099EditablePage-q1gQ8keD-GKQT7vTw.js} +32 -32
- package/dist/assets/VendorFirstReviewPage-D9ogNmAK-DwoL9x7s.js +730 -0
- package/dist/assets/VendorInternationalWireDetailsPage-Ct689KuY-N7HCxAFy.js +152 -0
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-W0s1zQNC-ZgE8KOcO.js → VendorInternationalWireSwiftDetailsPage-W0s1zQNC-eVlfJ9f_.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C13Z2HN9-C2XOcHy1.js → VendorsAccountsSection-C13Z2HN9-DvGRJwYY.js} +4 -4
- package/dist/assets/VerifyDevice-C27gEWkZ-BrEq9dHz.js +112 -0
- package/dist/assets/{VideoPlayer-ByyqUuhG-DTMNeCaX.js → VideoPlayer-ByyqUuhG-CcmvFcG0.js} +1 -1
- package/dist/assets/{VideoPopup-DJrQQTPq-DoXO-Vwb.js → VideoPopup-DJrQQTPq-BZRShVLd.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-B3Ht3VnM-DBDTIhyB.js → WarningsDrawerPage-B3Ht3VnM-C_aFzWZK.js} +5 -5
- package/dist/assets/ZeniAccountDetailPage-egmysAfI-CX7srLCt.js +300 -0
- package/dist/assets/{ZeniAccountListViewPage-q_v2FogF-B-baYGeD.js → ZeniAccountListViewPage-q_v2FogF-wW_PUJNB.js} +12 -12
- package/dist/assets/ZeniAccountNavBarPieces-HNIht0FM-azEwN9c2.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-CzncR6vK-DAONZr9A.js → ZeniAccountPromoPage-CzncR6vK-CoCFGvia.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-TcdzEL_V-CApQPT0B.js → ZeniAccountSetupPage-TcdzEL_V-CPTq7KjK.js} +1 -1
- package/dist/assets/{ZeniCopyright-B7Q6IUGC-Ca3UXoxG.js → ZeniCopyright-B7Q6IUGC-DjtbTVnp.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Dmf5xxv4-D_ugGHJW.js → ZeniTransferAmountSlider-Dmf5xxv4-D-BoRJmd.js} +3 -3
- package/dist/assets/addSubtractPeriod-CFvkmqm8.js +1 -0
- package/dist/assets/analyticsHelper-L-FpsGLH.js +1 -0
- package/dist/assets/analyticsHelper-or1KkBWk-CU2Z2CeD.js +1 -0
- package/dist/assets/{chartTypes-DCvOVjlS-BdPIN5WI.js → chartTypes-DCvOVjlS-CF3jsUNb.js} +1 -1
- package/dist/assets/{commonDimensions-C32v1F7H-CiAEfJl2.js → commonDimensions-C32v1F7H-C9uaBJ8J.js} +1 -1
- package/dist/assets/{detailCommon-CRAGrqoO-Cq9phP1q.js → detailCommon-CRAGrqoO-5xMc7u9M.js} +8 -8
- package/dist/assets/downloadPdf-D7p3yKmg-DrJJdcEl.js +1 -0
- package/dist/assets/{index-sAOH0Fje.js → index-kF4u7Flm.js} +511 -704
- package/dist/assets/{mapLoadingInProgressToTreeNode-CRwG2DSD-B4LnWZMC.js → mapLoadingInProgressToTreeNode-CRwG2DSD-CLLcsBiK.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C9O-C2dp-BYZLhSZo.js → mapSectionWithAcOnlyToTreeNode-C9O-C2dp-4sjxXlit.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-5aJk-sLn-DpF_Q8pH.js → mapSpacerToTreeNode-5aJk-sLn-CeZutbYy.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CnviLujI-Do2_oG27.js → mapTimeframeBalancesToTreeNode-CnviLujI-rcfKFEh1.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv4d4PqE-C559SZVp.js → mapTimeframeBalancesToTreeNode-Cv4d4PqE-BmreU2CJ.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-yJCRTG35.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-CkRgUU-m.js} +1 -1
- package/dist/assets/redux-D-TY61DZ.js +12 -0
- package/dist/assets/{toCOABalancesWithID-B3yVGPrV-B_BzNOYP.js → toCOABalancesWithID-B3yVGPrV-Dj01dEre.js} +1 -1
- package/dist/assets/toChartData-DEW0iT7T-DaQT4Adc.js +1 -0
- package/dist/assets/{treasuryColorHelper-13LJ_xhk-LqN_6Xl4.js → treasuryColorHelper-13LJ_xhk-5-aGYtqD.js} +1 -1
- package/dist/assets/{uploadAttachment-DVy2pZeJ-X-xSyfvF.js → uploadAttachment-DVy2pZeJ-DL6B1oGY.js} +25 -25
- package/dist/assets/{uploadReceipts-Dp1dvCjf-Bw0_dVvQ.js → uploadReceipts-Dp1dvCjf-BQPyxtgi.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountLockedInfoModal-BD7Nb81U-CexK1k9m.js +0 -59
- package/dist/assets/AccountReconDetailsDrawerPage-D-_ME0pV-s74oVSdU.js +0 -239
- package/dist/assets/AccountsPromoCardStack-CdBwPVgI-0eZTGbZE.js +0 -207
- package/dist/assets/AgingReportsPage-L0zQxwCf-BGxthXxn.js +0 -79
- package/dist/assets/AllUserItems-CvwaOEhu-4FgiUHmj.js +0 -192
- package/dist/assets/ApAgingDetailPage-B_78aSEv-BIkW3as9.js +0 -46
- package/dist/assets/ApprovalRulesSettingsPage-Dxd7A3hZ-B57JU70m.js +0 -47
- package/dist/assets/ArAgingChart-BezVy1Sm-UplSlTlX.js +0 -24
- package/dist/assets/BankConnectionsSettingsPage-D5hI4xtm-CIHmOttI.js +0 -425
- package/dist/assets/BillDetailPage-CDAh8Jtl-0qBbZ__0.js +0 -266
- package/dist/assets/BillPayPromoPage-B2YcxWc9-CwLnyiow.js +0 -84
- package/dist/assets/BillPaySetUpPage-oJvoWpFu-CYkgRBSH.js +0 -42
- package/dist/assets/BillingSettingsPage-BRsKYzT5-gKM6YCmc.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-B7tORIok-Cjhni78W.js +0 -1
- package/dist/assets/BusinessVerificationPage-Nw_fedst-D0V3bhmc.js +0 -138
- package/dist/assets/ChargeCardListPage-v5hH98Wi-D_Ffaz0x.js +0 -406
- package/dist/assets/ChargeCardPromoPage-CPEaGOL3-BJBmWN7Q.js +0 -222
- package/dist/assets/ChargeCardSetupPage-G5Rn0o6y-DXJQIwPQ.js +0 -36
- package/dist/assets/ChargeCardUtils-BRgkrCTs-DoVoCmwL.js +0 -1
- package/dist/assets/CollapsableReportTable-7iAngywY-CxWB4sRz.js +0 -2932
- package/dist/assets/CompanyOfficerDetailsSection-CJKyxEnf-BshC7d2B.js +0 -260
- package/dist/assets/CompanyPassportPage-BQoEcPJr-DzLqV-NZ.js +0 -574
- package/dist/assets/CompleteProfile-D5e9TQgy-ppOK1lFi.js +0 -52
- package/dist/assets/CreditCardPaymentDrawerPage-DXeq4z9l-Dr585X5v.js +0 -224
- package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-4OaWohod.js +0 -1
- package/dist/assets/CustomerOnboardingPage-zBqp9QN6-D_UHEoUt.js +0 -107
- package/dist/assets/CustomerOnboardingProductSuitePage-BbJ4oiCI-C_0KKlnp.js +0 -202
- package/dist/assets/DashboardReportPage-DTMbYOWH-CSMllwg6.js +0 -371
- package/dist/assets/DepositAccTransactionListPage-CcO673ZL-CiLAoQqZ.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-D5hbPNCt-Bj16Fg_f.js +0 -21
- package/dist/assets/DownloadOverlay-DRcasKoB-BDQCkt6Q.js +0 -439
- package/dist/assets/EditPeoplePage-Zzo62if7-CQfgpQsa.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-7T5j9Uz8.js +0 -865
- package/dist/assets/EntityDetailPage-CzlzOW8n-DjZ6eItY.js +0 -18
- package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-Ch0agMlw.js +0 -1650
- package/dist/assets/ExpressPayPage-DdQiFzDu-ykW984zo.js +0 -168
- package/dist/assets/GlobalReviewListPage-DHn2Uk8R-Cd3V8M7p.js +0 -291
- package/dist/assets/HelpButton-BNMy-6ce-WFq-iELy.js +0 -28
- package/dist/assets/InsightsCardStack-CaMZiCnn-D5ut2TNQ.js +0 -79
- package/dist/assets/InvitePeoplePage-C3ecL8XJ-D06hBumB.js +0 -12
- package/dist/assets/InvoiceUploadSection-DoR834b4-BezkawDL.js +0 -140
- package/dist/assets/LabeledAddressValueField-YP7bXlgZ-8CibrbWw.js +0 -45
- package/dist/assets/LabeledDocumentField-ED03S2kQ-wbMhlpMQ.js +0 -41
- package/dist/assets/LinkJETransactionPage-_ROjxBMO-DP6JabBY.js +0 -98
- package/dist/assets/LowBalancePopup-CZDcHxyW-BHOAXZjC.js +0 -34
- package/dist/assets/MagicLinkTitleSection-Cn1v72Rs-BaSRKY-c.js +0 -17
- package/dist/assets/Menu-B6iTf2H7-Cqx4dVPp.js +0 -17
- package/dist/assets/MyBankConnectionsSettingsPage-IPPiH6jv-CVF8iXYJ.js +0 -110
- package/dist/assets/MyPendingActivationChargeCardListPage-BTGb1yIE-BD419NGA.js +0 -6
- package/dist/assets/MyProfileSettingsPage-BRK5nWg2--GwgfIws.js +0 -85
- package/dist/assets/NotificationsPage-C7lSAnUb-wDRHsOkp.js +0 -685
- package/dist/assets/PandLWithForecastPage-W4jlNjml-Bcn3UKYp.js +0 -107
- package/dist/assets/ReimbursementApprovalRuleDetailPage-eidNY097-DmIjK42h.js +0 -26
- package/dist/assets/ReimbursementDetailPage-AvqEBxbz-fUbgpa2M.js +0 -314
- package/dist/assets/ReimbursementPromoPage-PshodHUZ-B_XNUegE.js +0 -84
- package/dist/assets/ReimbursementSetUpPage-6P4FT-UC-Bw__edeG.js +0 -140
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-Cas6GzVp-BQcspCuT.js +0 -1
- package/dist/assets/ReportsPage-C7zirS74-CyyHiNy4.js +0 -121
- package/dist/assets/ReviewDetailsPage-ClsyL5-w-_y4o463o.js +0 -290
- package/dist/assets/ScheduleDetailsFixedAssetsPage-zFyJPVpN-BSd6OZtz.js +0 -37
- package/dist/assets/ScheduleDetailsPage-BftjSvA7-Jy_FtZQR.js +0 -37
- package/dist/assets/ScreenRoutes-en4svsq9.js +0 -206
- package/dist/assets/SetUpAccountSection-Bnbi8X23-DL-18RCf.js +0 -378
- package/dist/assets/SignInScreen-Ba17TSWH.js +0 -1
- package/dist/assets/SpendManagementListViewPage-ChNp8dgm-BhMjXPdH.js +0 -123
- package/dist/assets/SpendManagementPerTabPage-D-bOr2-6-GaRieOUe.js +0 -754
- package/dist/assets/SpendManagementSection-kucZgC-H-DLgSRXEX.js +0 -230
- package/dist/assets/SpendMgmtSetupAccountSection-de7hEmtE-CX-1PNOC.js +0 -206
- package/dist/assets/StatementsPage-KnLUSJbm-DvU_Y3UP.js +0 -58
- package/dist/assets/TaskManagementPage-CPLyyK1Y-ena6uodh.js +0 -508
- package/dist/assets/TransactionDetailPage-D1Z1f-DD-DTPxqy3v.js +0 -912
- package/dist/assets/TransactionList-BzJEbOV9-BQZ8x4Oq.js +0 -147
- package/dist/assets/TreasuryOverviewPage-DySunaqy-CWB-hp0S.js +0 -708
- package/dist/assets/TreasuryTransferOrReviewPage-Dzq-FxSM-CX84O_mN.js +0 -576
- package/dist/assets/TrendChart-B_5D-Zud-BUU2-6nI.js +0 -16
- package/dist/assets/UploadAdditionalDocumentOverlay-DhXRLBEg-DvVrgitE.js +0 -38
- package/dist/assets/VendorDetailPage-CEX7xMIN-Djo4PloX.js +0 -257
- package/dist/assets/VendorFirstReviewPage-D9ogNmAK-PlB10gEr.js +0 -730
- package/dist/assets/VendorInternationalWireDetailsPage-Ct689KuY-DAoPjpj5.js +0 -152
- package/dist/assets/VerifyDevice-C27gEWkZ-C7pLL5Wm.js +0 -112
- package/dist/assets/ZeniAccountDetailPage-egmysAfI-DFbZv9KZ.js +0 -300
- package/dist/assets/ZeniAccountNavBarPieces-HNIht0FM-aSJ3m6rj.js +0 -14
- package/dist/assets/analyticsHelper-CVWZE356.js +0 -1
- package/dist/assets/analyticsHelper-or1KkBWk-Plh_6I_p.js +0 -1
- package/dist/assets/downloadPdf-D7p3yKmg-CYmmjPHt.js +0 -1
- package/dist/assets/redux-CEhZD0hA.js +0 -12
- package/dist/assets/toChartData-DEW0iT7T-DrkbvIyQ.js +0 -1
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
import{j as t,et as it,o as s,q as fe,eu as lt,cf as He,ev as C,h as ue,y as W,A as nt,O as F,ew as dt,e0 as Ue,ao as P,u as N,d2 as qe,cd as R,ef as _e,C as te,ce as xe,ex as Z,n as ae,x as We,eh as ct,ey as be,ez as ge,Y as Ge,eA as Ze,cg as ye,cD as pt,eB as K,d_ as mt,d3 as ht,eC as ft,eD as ut,dS as xt,eg as bt,ci as gt,eE as yt,ep as $t,cm as wt,eF as _,eG as Ft,eH as jt,eI as vt,eJ as Ot,eK as Yt}from"./index-kF4u7Flm.js";import{b as f,n as l,k as Ke,w as $e}from"./vendor-Bs1fkIUX.js";import{g as we,a as U}from"./CollapsableReportTable-7iAngywY-BhPujiYA.js";import{a as me,s as X}from"./addSubtractPeriod-CFvkmqm8.js";import{m as kt}from"./analyticsHelper-or1KkBWk-CU2Z2CeD.js";import{h as Dt,u as _t}from"./ReportTableViewSelector-Ci-WKrCO-D0sA8766.js";import{t as Ct}from"./page-detail-CWX5S47F-lMo0MYzU.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-D-TY61DZ.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./AccountRow-Be3LIHO--BjLJB43L.js";const Pt=["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 ie(e,o,r,a){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:n}=C(r.startDate,e,"quarter"),{endOfTimeframeFY:p}=C(r.endDate,e,"quarter");i=Math.ceil(Math.ceil(p.diff(n,"month",!0))/3);break}case"year":{const{startOfTimeframeFY:n}=C(r.startDate,e,"year"),{endOfTimeframeFY:p}=C(r.endDate,e,"year");i=Math.ceil(Math.ceil(p.diff(n,"month",!0))/12);break}}return a!=null?Math.min(i,a):i}function oe(e,o,r,a=1){if(a>1){const i=X(r,e,a-1,o),{startOfTimeframeFY:n}=C(i,e,o);return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:n,endDate:r}}}else return{firstMonthOfFY:e,timeframe:o,dateRange:{startDate:r,endDate:r}}}class Ce{_firstMonthOfFY;_timeframe;_dataAvailable;_endDate;_numberOfPeriods;_maxNumberOfPeriods;constructor(o,r,a,i,n,p=a.endDate){if(a.endDate.isBefore(a.startDate))throw Error(`Invalid data available period ${JSON.stringify(a)}`);this._firstMonthOfFY=o,this._timeframe=r,this._dataAvailable=a,this._numberOfPeriods=i,this._maxNumberOfPeriods=n,this._endDate=p}get value(){return oe(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=me(this.startDate,this.firstMonthOfFY,this.maxNumberOfPeriods-1,this.timeframe);let{endOfTimeframeFY:r}=C(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:a}=C(this.dataAvailable.startDate,this.firstMonthOfFY,this.timeframe),{endOfTimeframeFY:i}=C(this.dataAvailable.endDate,this.firstMonthOfFY,this.timeframe);return o.isBetween(a,i,null,"[]")&&r.isBetween(a,i,null,"[]")}}updatePeriod(o,r){if(!this.canUpdateToPeriod(o,r))return!1;let a=ie(this.firstMonthOfFY,this.timeframe,{startDate:o,endDate:r});if(a>this.maxNumberOfPeriods){a=this._numberOfPeriods;const{endOfTimeframeFY:i}=C(me(o,this.firstMonthOfFY,this._numberOfPeriods-1,this.timeframe),this.firstMonthOfFY,this.timeframe);this._endDate=i}else if(o.isAfter(r)){a=1;const{endOfTimeframeFY:i}=C(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=a,!0}updateStartDate(o){return this.updatePeriod(o,this.endDate)}updateEndDate(o){return this.updatePeriod(this.startDate,o)}}const ne=["1","2","3","4"],de=pt().localeData().monthsShort(),A={pdf:12,excel:100,csv:100},V=(e,o,r)=>{const a=F.getLocalizedStrings().dateFormat.analytics.YYYYFormat,i=[];if(e===1||o==="month"){const{startDate:n,endDate:p}=r;let m=n;for(;m.isSameOrBefore(p,"year");)i.push(m.format(a)),m=me(m,e,1,"year")}else{const{startOfTimeframeFY:n}=C(r.startDate,e,"year"),{endOfTimeframeFY:p}=C(r.endDate,e,"year");let{fyYear:m}=_(n,e);const{fyYear:u}=_(p,e);for(;m<=u;)i.push(`${m}`),m++}return i},St=l.div`
|
|
2
|
+
padding: ${s.sp3};
|
|
3
|
+
border: 1px solid ${e=>e.borderColor.default};
|
|
4
|
+
border-radius: ${s.sp1};
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
cursor: ${e=>e.disabled?"default":"pointer"};
|
|
9
|
+
background: ${e=>e.backgroundColor.default};
|
|
10
|
+
color: ${e=>e.textColor.default};
|
|
11
|
+
&:hover {
|
|
12
|
+
color: ${e=>e.textColor.hover};
|
|
13
|
+
border: 1px solid ${e=>e.borderColor.hover};
|
|
14
|
+
& svg {
|
|
15
|
+
color: ${e=>e.disabled||e.checked?"":e.theme.colors.primary};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`,Pe=l.div`
|
|
19
|
+
display: flex;
|
|
20
|
+
`,Mt=l(R)`
|
|
21
|
+
margin-left: ${s.sp3};
|
|
22
|
+
`,At=l(xt)`
|
|
23
|
+
color: ${e=>e.theme.colors.hero};
|
|
24
|
+
&:hover {
|
|
25
|
+
color: ${e=>e.theme.colors.primary};
|
|
26
|
+
}
|
|
27
|
+
`,Se=l(ft)`
|
|
28
|
+
width: ${s.sp4};
|
|
29
|
+
height: ${s.sp4};
|
|
30
|
+
`,Me=l(ut)`
|
|
31
|
+
width: ${s.sp4};
|
|
32
|
+
height: ${s.sp4};
|
|
33
|
+
`,Tt=e=>{const{id:o,disabled:r=!1,checked:a=!1,label:i,showInfoIcon:n,tooltipText:p,style:m={},onClick:u}=e,c=We();let y=a?Se:Me;c.mode==="dark"&&(y=a?Se:Me);let $=a?c.colors.primary:c.colors.hero;r&&($=c.colors.grey2);const j=()=>{r||u(o,a)};let w={default:c.colors.background,hover:c.colors.background},h={default:c.colors.hero,hover:c.colors.primary},D={default:c.colors.grey2,hover:c.colors.primary};return a?(w={default:c.colors.grey5,hover:c.colors.grey5},h={default:c.colors.primary,hover:c.colors.primary},D={default:c.colors.primary,hover:c.colors.primary}):r&&(w={default:c.colors.grey4,hover:c.colors.grey4},h={default:c.colors.grey2,hover:c.colors.grey2},D={default:c.colors.grey3,hover:c.colors.grey3}),t.jsxs(St,{backgroundColor:w,textColor:h,borderColor:D,onClick:j,disabled:r,checked:a,style:{...m},children:[t.jsxs(Pe,{children:[t.jsx(y,{color:a?$:"none"}),i!=null?t.jsx(Mt,{children:i}):null]}),n===!0?t.jsx(Pe,{style:{marginLeft:s.sp3},children:t.jsx(ct,{enterDelay:600,title:p,children:t.jsx(At,{width:s.sp3,height:s.sp3})})}):""]})},It=$e.memo(Tt),Fe=["year_to_date_total","free_range_total","year_to_date_last_year_total","rolling_12_months","rolling_12_months_average"],Rt=["this_period_vs_last_period","this_period_vs_last_period_percent",...Fe,"this_period_vs_same_period_last_year","this_period_vs_same_period_last_year_percent","same_period_last_year"],Lt=["this_period_vs_last_period","this_period_vs_last_period_percent",...Fe,"this_period_vs_same_period_last_year","this_period_vs_same_period_last_year_percent","same_period_last_year"],zt=["this_period_vs_last_period","this_period_vs_last_period_percent",...Fe],Xe={month:Rt,quarter:Lt,year:zt},Ae=l.div`
|
|
34
|
+
padding-top: ${e=>e.space};
|
|
35
|
+
`,Bt=l(R)`
|
|
36
|
+
color: ${e=>e.theme.colors.primary};
|
|
37
|
+
`,Nt=(e,o,r)=>{const a=[],i=r.startDate;return X(o,e,1,"year").isBefore(i)&&a.push("same_period_last_year","this_period_vs_same_period_last_year","this_period_vs_same_period_last_year_percent","year_to_date_last_year_total"),a},Et=e=>{const{firstMonthOfFY:o,selectedTimeframe:r,disabledAdditionalColumns:a,selectedAdditionalColumns:i,dateRange:n,calendarPeriod:p,dataAvailable:m,selectedFileType:u,onAdditionalColumnsSelectionChanged:c}=e,y=Nt(o,n.endDate,m);f.useEffect(()=>{const d=i.filter(g=>!y.includes(g));i.length!==d.length&&c(d)},[y,i,c]);const $=p.numberOfPeriods+i.length<A[u],j=F.getLocalizedStrings().downloadReport.additionalColumns[r],w=Xe[r],h=(d,g)=>{if(g){const O=i.indexOf(d),b=[...i];b.splice(O,1),p.maxNumberOfPeriods=A[u]-b.length,c(b)}else p.maxNumberOfPeriods=A[u]-(i.length+1),c([...i,d])},D=(d,g)=>{const{dateFormat:{visual:O}}=F.getLocalizedStrings();let b=Z(X(n.endDate,g,1,"year"),O.MMMYYFormat,g);return r==="quarter"&&(b=`Q${Z(X(n.endDate,g,1,"year"),O.QYYformat,g)}`),j[d].replace("-same_period_last_year-",b)};return t.jsxs(f.Fragment,{children:[t.jsx(Bt,{children:F.getLocalizedStrings().downloadReport.addColumns}),t.jsx(Ae,{space:s.sp3}),w.map(d=>t.jsxs(f.Fragment,{children:[t.jsx(It,{checked:i.includes(d),label:D(d,o),disabled:a?.includes(d)===!0||y.includes(d)||!$&&!i.includes(d),id:d,onClick:(g,O)=>h(g,O),showInfoIcon:y.includes(d)&&$,tooltipText:F.getLocalizedStrings().downloadReport.dataNotAvailable}),t.jsx(Ae,{space:s.sp3})]},d))]})},Vt=f.memo(Et),Te=l.div``,Qt=l.div`
|
|
38
|
+
padding: ${s.sp2} ${s.sp3};
|
|
39
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
40
|
+
background: ${e=>e.theme.colors.grey5};
|
|
41
|
+
border-radius: ${s.sp1};
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: space-between;
|
|
44
|
+
align-items: center;
|
|
45
|
+
position: relative;
|
|
46
|
+
`,Ht=l(xe)`
|
|
47
|
+
color: ${e=>e.theme.colors.hero};
|
|
48
|
+
`,Ut=l(R)`
|
|
49
|
+
color: ${e=>e.theme.colors.primary};
|
|
50
|
+
margin-top: -2px;
|
|
51
|
+
`,qt=l(wt)`
|
|
52
|
+
color: ${e=>e.theme.colors.hero};
|
|
53
|
+
width: 12px;
|
|
54
|
+
height: 12px;
|
|
55
|
+
margin: auto ${s.sp0};
|
|
56
|
+
:hover {
|
|
57
|
+
color: ${e=>e.theme.colors.primary};
|
|
58
|
+
}
|
|
59
|
+
`,Wt=e=>{const{value:o,label:r,onClick:a}=e,i=We(),n=F.getLocalizedStrings().reports;return t.jsxs(Qt,{onClick:a,children:[t.jsxs(Te,{style:{display:"flex",alignItems:"center"},children:[t.jsx(yt,{color:i.colors.primary,style:{width:s.sp4,height:s.sp4}}),t.jsxs(Te,{style:{paddingLeft:s.sp3},children:[t.jsx(Ht,{style:{color:i.colors.hero},children:r}),t.jsxs(Ut,{style:{color:i.colors.primary},children:[o,e.timeframeTickTag!=null&&(e.timeframeTickTag==="under_review"?n.starred:n.doubleStarred)]})]})]}),t.jsx(qt,{})]})},je=$e.memo(Wt),ve=e=>{const{starredPeriod:o,doubleStarredPeriod:r,bookCloseUnderReviewInfo:a,bookCloseIncompleteInfo:i}=e,n=F.getLocalizedStrings().reports;return t.jsxs(t.Fragment,{children:[o.length>0?t.jsxs(Ie,{children:[t.jsx(Le,{children:n.starred}),t.jsxs(Re,{children:[t.jsx(ze,{children:n.bookCloseInfoStar}),a]})]}):null,r.length>0?t.jsxs(Ie,{children:[t.jsx(Le,{children:n.doubleStarred}),t.jsxs(Re,{children:[t.jsx(ze,{children:n.bookCloseIncompleteInfoStar}),i]})]}):null]})},Ie=l(xe)`
|
|
60
|
+
background: ${e=>e.theme.colors.grey4};
|
|
61
|
+
color: ${e=>e.theme.colors.primary};
|
|
62
|
+
padding: ${s.sp2} 27px;
|
|
63
|
+
display: flex;
|
|
64
|
+
`,Re=l.div``,Le=l(He)`
|
|
65
|
+
margin-right: 6px;
|
|
66
|
+
`,ze=l.span`
|
|
67
|
+
font-weight: ${$t.medium};
|
|
68
|
+
`,Gt=l.div`
|
|
69
|
+
position: relative;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
`,Zt=l.div`
|
|
72
|
+
display: flex;
|
|
73
|
+
z-index: 9;
|
|
74
|
+
flex-wrap: wrap;
|
|
75
|
+
box-shadow: ${e=>`${s.sp0} 2px ${s.sp2} ${e.theme.colors.dropShadowNormal}`};
|
|
76
|
+
border-radius: ${s.sp0} ${s.sp0} ${s.sp1} ${s.sp1};
|
|
77
|
+
position: absolute;
|
|
78
|
+
background: ${e=>e.theme.colors.grey5};
|
|
79
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
80
|
+
width: 100%;
|
|
81
|
+
`,Kt=l.div`
|
|
82
|
+
padding: ${s.sp3};
|
|
83
|
+
border-top: none;
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-wrap: wrap;
|
|
86
|
+
background: ${e=>e.theme.colors.grey5};
|
|
87
|
+
width: 100%;
|
|
88
|
+
`,Be=l.div`
|
|
89
|
+
padding-top: ${e=>e.space};
|
|
90
|
+
width: 100%;
|
|
91
|
+
`,Xt=l.div`
|
|
92
|
+
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
93
|
+
width: 100%;
|
|
94
|
+
`,Jt=(e,o,r,a)=>{const i=V(e,"month",o).filter(n=>!P(`${n}-01-01`).isBetween(r.startDate.startOf("year"),r.endDate.endOf("year"),null,"[]"));return{disabledMonths:de.filter(n=>{const p=a.startDate.format(M.YYYYformat);return!P(`${n} ${p}`,M.MMMYYYYFormat).isBetween(r.startDate.startOf("month"),r.endDate.endOf("month"),null,"[]")}),disabledYears:i}},er=(e,o,r,a)=>{const i=U(r);return a!=null?de.filter(n=>o.includes(n)===!1&&P(`${n} ${e}`,M.MMMYYYYFormat).isAfter(a)&&(i===!0?P(r.endDate.format(M.MMMYYYYFormat)).isSame(P(`${n} ${e}`,M.MMMYYYYFormat))===!1:!0)):[]},tr=(e,o,r,a)=>{const i=U(e);return a!=null?de.filter(n=>r.includes(n)===!1&&P(`${n} ${o}`,M.MMMYYYYFormat).isAfter(a)&&(i===!0?P(e.endDate.format(M.MMMYYYYFormat)).isSame(P(`${n} ${o}`,M.MMMYYYYFormat))===!0:!1)):[]},{reports:Ne,dateFormat:{analytics:re,visual:M}}=F.getLocalizedStrings(),rr=e=>{const{selectedPeriod:o,label:r,validPeriod:a,onNewPeriodSelection:i}=e,[n,p]=f.useState(!1),[m,u]=f.useState(o.startDate.format(re.MMMFormat)),[c,y]=f.useState(o.startDate.format(re.YYYYFormat)),$=b=>{u(b),i("month",{startDate:P(`${b} ${c}`,re.MMMYYYYFormat).startOf("month"),endDate:P(`${b} ${c}`,re.MMMYYYYFormat).endOf("month")}),p(!1)},j=b=>{p(b),u(o.startDate.format(M.MMMformat)),y(o.startDate.format(M.YYYYformat))},{disabledMonths:w,disabledYears:h}=Jt(e.firstMonthOfFY,e.dataAvailable,a,{startDate:P(c,M.YYYYformat),endDate:P(c,M.YYYYformat)}),D=V(e.firstMonthOfFY,"month",e.dataAvailable),d=er(c,w,a,e.bookCloseDate),g=tr(a,c,w,e.bookCloseDate),O=e.bookCloseDate!=null?we("month",e.firstMonthOfFY,o,e.bookCloseDate,e.dataAvailable):void 0;return t.jsx(ye,{onClickAway:()=>j(!1),children:t.jsxs(Gt,{children:[t.jsx(je,{value:Z(o.startDate,M.MMMYYFormat,e.firstMonthOfFY),onClick:()=>j(!n),label:r,timeframeTickTag:O}),n?t.jsx(f.Fragment,{children:t.jsxs(Zt,{children:[t.jsxs(Kt,{children:[D.map(b=>t.jsx(K,{id:b,text:b,disabled:h.includes(b),onClick:v=>{y(v),u("")},checked:b===c},b)),t.jsx(Be,{space:s.sp3}),t.jsx(Xt,{}),t.jsx(Be,{space:s.sp3}),de.map(b=>t.jsx(K,{id:b,text:b,disabled:w.includes(b),onClick:v=>$(v),checked:b===m,starred:d.includes(b)&&!w.includes(b),doubleStarred:g.includes(b)&&!w.includes(b)},b))]}),t.jsx(ve,{starredPeriod:d,doubleStarredPeriod:g,bookCloseIncompleteInfo:Ne.bookCloseIncompleteInfoMonth,bookCloseUnderReviewInfo:Ne.bookCloseUnderReviewInfoMonth})]})}):""]})})},sr=f.memo(rr),or=l.div`
|
|
95
|
+
position: relative;
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
`,ar=l.div`
|
|
98
|
+
display: flex;
|
|
99
|
+
z-index: 9;
|
|
100
|
+
flex-wrap: wrap;
|
|
101
|
+
box-shadow: ${e=>`${s.sp0} 2px ${s.sp2} ${e.theme.colors.dropShadowHover}`};
|
|
102
|
+
border-radius: ${s.sp0} ${s.sp0} ${s.sp1} ${s.sp1};
|
|
103
|
+
position: absolute;
|
|
104
|
+
background: ${e=>e.theme.colors.grey5};
|
|
105
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
106
|
+
width: 100%;
|
|
107
|
+
`,ir=l.div`
|
|
108
|
+
padding: ${s.sp3};
|
|
109
|
+
border-top: none;
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-wrap: wrap;
|
|
112
|
+
background: ${e=>e.theme.colors.grey5};
|
|
113
|
+
width: 100%;
|
|
114
|
+
`,Ee=l.div`
|
|
115
|
+
padding-top: ${e=>e.space};
|
|
116
|
+
width: 100%;
|
|
117
|
+
`,lr=l.div`
|
|
118
|
+
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
119
|
+
width: 100%;
|
|
120
|
+
`,nr=(e,o,r,a)=>{const i=V(e,"quarter",o).filter(n=>{if(e===1)return!P(`${n}-01-01`).isBetween(r.startDate.startOf("year"),r.endDate.endOf("year"),null,"[]");{const{fyYear:p}=_(r.startDate,e),{fyYear:m}=_(r.endDate,e);return!(parseInt(n)>=p&&parseInt(n)<=m)}});return{disabledQuarters:ne.filter(n=>{const p=parseInt(n),m=_(r.startDate,e),u=_(r.endDate,e);return a===m.fyYear&&p<m.fyQuarter||a===u.fyYear&&p>u.fyQuarter?!0:a<m.fyYear||a>u.fyYear}),disabledYears:i}},dr=(e,o,r,a,i)=>{const n=U(a);if(i!=null){const p=_(i,o),m=_(a.endDate,o);return ne.filter(u=>{const c=parseInt(u);return e.includes(u)===!1&&(n!==!0||m.fyQuarter!==c)&&(r===p.fyYear&&c>=p.fyQuarter&&jt(c,o)!==i.month()+1||r>p.fyYear)})}else return[]},cr=(e,o,r,a,i)=>{const n=U(a);if(i!=null){const p=_(i,e),m=_(a.endDate,e);return ne.filter(u=>{const c=parseInt(u);return r.includes(u)===!1&&(n!==!0||m.fyQuarter===c)&&o===p.fyYear&&c>=p.fyQuarter||o>p.fyYear})}else return[]},pr=e=>{const{selectedPeriod:o,label:r,validPeriod:a,onNewPeriodSelection:i}=e,{fyQuarter:n,fyYear:p}=_(o.startDate,e.firstMonthOfFY),[m,u]=f.useState(!1),[c,y]=f.useState(`${n}`),[$,j]=f.useState(`${p}`),{reports:w,dateFormat:h}=F.getLocalizedStrings(),D=x=>{y(x),i("quarter",vt(e.firstMonthOfFY,Ot(parseInt(x)),parseInt($))),u(!1)},d=x=>{u(x);const{fyQuarter:Y,fyYear:I}=_(o.startDate,e.firstMonthOfFY);y(`${Y}`),j(`${I}`)},{disabledQuarters:g,disabledYears:O}=nr(e.firstMonthOfFY,e.dataAvailable,a,parseInt($)),b=V(e.firstMonthOfFY,"quarter",e.dataAvailable),v=dr(g,e.firstMonthOfFY,parseInt($),a,e.bookCloseDate),Q=cr(e.firstMonthOfFY,parseInt($),g,a,e.bookCloseDate),T=e.bookCloseDate!=null?we("quarter",e.firstMonthOfFY,o,e.bookCloseDate,e.dataAvailable):void 0;return t.jsx(ye,{onClickAway:()=>d(!1),children:t.jsxs(or,{children:[t.jsx(je,{value:`Q${Z(o.startDate,h.visual.QYYformat,e.firstMonthOfFY)}`,onClick:()=>d(!m),label:r,timeframeTickTag:T}),m?t.jsxs(ar,{children:[t.jsxs(ir,{children:[b.map(x=>t.jsx(K,{id:x,text:x,disabled:O.includes(x),onClick:Y=>{j(Y),y("")},checked:x===$},x)),t.jsx(Ee,{space:s.sp3}),t.jsx(lr,{}),t.jsx(Ee,{space:s.sp3}),ne.map(x=>t.jsx(K,{id:x,text:`Q${x}`,disabled:g.includes(x),onClick:Y=>D(Y),checked:x===c,starred:v.includes(x)&&!g.includes(x),doubleStarred:Q.includes(x)&&!g.includes(x)},x))]}),t.jsx(ve,{starredPeriod:v,doubleStarredPeriod:Q,bookCloseIncompleteInfo:w.bookCloseIncompleteInfoQuarter,bookCloseUnderReviewInfo:w.bookCloseUnderReviewInfoQuarter})]}):""]})})},mr=f.memo(pr),hr=l.div`
|
|
121
|
+
position: relative;
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
`,fr=l.div`
|
|
124
|
+
display: flex;
|
|
125
|
+
z-index: 9;
|
|
126
|
+
flex-wrap: wrap;
|
|
127
|
+
box-shadow: ${e=>`${s.sp0} 2px ${s.sp2} ${e.theme.colors.dropShadowHover}`};
|
|
128
|
+
border-radius: ${s.sp0} ${s.sp0} ${s.sp1} ${s.sp1};
|
|
129
|
+
position: absolute;
|
|
130
|
+
background: ${e=>e.theme.colors.grey5};
|
|
131
|
+
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
132
|
+
width: 100%;
|
|
133
|
+
`,ur=l.div`
|
|
134
|
+
padding: ${s.sp3};
|
|
135
|
+
border-top: none;
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-wrap: wrap;
|
|
138
|
+
background: ${e=>e.theme.colors.grey5};
|
|
139
|
+
width: 100%;
|
|
140
|
+
`,xr=(e,o,r)=>V(e,"year",o).filter(a=>{if(e===1)return!P(`${a}-01-01`).isBetween(r.startDate.startOf("year"),r.endDate.endOf("year"),null,"[]");{const{fyYear:i}=_(r.startDate,e),{fyYear:n}=_(r.endDate,e);return parseInt(a)<i||parseInt(a)>n}}),br=(e,o,r,a)=>{const i=U(r);if(a!=null){const n=_(a,e),p=_(r.endDate,e);return V(e,"year",o).filter(m=>{const u=parseInt(m);return(i===!0?p.fyYear!==u:!0)&&parseInt(m)>=n.fyYear&&Yt(e)!==a.month()+1})}else return[]},gr=(e,o,r,a)=>{const i=U(r);if(a!=null){const n=_(a,e),p=_(r.endDate,e);return V(e,"year",o).filter(m=>{const u=parseInt(m);return(i===!0?p.fyYear===u:!0)&&parseInt(m)>=n.fyYear})}else return[]},yr=e=>{const{selectedPeriod:o,label:r,validPeriod:a,onNewPeriodSelection:i}=e,[n,p]=f.useState(!1),{reports:m,dateFormat:u}=F.getLocalizedStrings(),c=xr(e.firstMonthOfFY,e.dataAvailable,a),y=V(e.firstMonthOfFY,"year",e.dataAvailable),$=_(e.selectedPeriod.startDate,e.firstMonthOfFY).fyYear,j=br(e.firstMonthOfFY,e.dataAvailable,a,e.bookCloseDate),w=gr(e.firstMonthOfFY,e.dataAvailable,a,e.bookCloseDate),h=e.bookCloseDate!=null?we("year",e.firstMonthOfFY,o,e.bookCloseDate,e.dataAvailable):void 0,D=u.analytics.YYYYFormat;return t.jsx(ye,{onClickAway:()=>p(!1),children:t.jsxs(hr,{children:[t.jsx(je,{value:Z(o.startDate,D,e.firstMonthOfFY),onClick:()=>p(!n),label:r,timeframeTickTag:h}),n?t.jsxs(fr,{children:[t.jsx(ur,{children:y.map(d=>t.jsx(K,{id:d,text:d,disabled:c.includes(d),onClick:g=>{i("year",Ft(e.firstMonthOfFY,parseInt(g))),p(!1)},checked:parseInt(d)===$,starred:j.includes(d)&&!c.includes(d),doubleStarred:w.includes(d)&&!c.includes(d)},d))}),t.jsx(ve,{starredPeriod:j,doubleStarredPeriod:w,bookCloseIncompleteInfo:m.bookCloseIncompleteInfoYear,bookCloseUnderReviewInfo:m.bookCloseUnderReviewInfoYear})]}):""]})})},$r=f.memo(yr),wr=l.div`
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
`,Fr=l(ht)`
|
|
144
|
+
margin-left: ${s.sp2};
|
|
145
|
+
color: ${e=>e.theme.colors.hero};
|
|
146
|
+
`,jr=l.div`
|
|
147
|
+
border-radius: 18px;
|
|
148
|
+
padding: 0 5.5px;
|
|
149
|
+
height: 18px;
|
|
150
|
+
display: flex;
|
|
151
|
+
justify-content: center;
|
|
152
|
+
align-items: center;
|
|
153
|
+
color: ${e=>e.theme.colors.grey5};
|
|
154
|
+
background: ${e=>e.showSuccessBadge?ue.success:e.theme.colors.primary};
|
|
155
|
+
`,vr=l(mt)``,Or=e=>{const{numberOfPeriods:o,numberOfAdditionalColumns:r,selectedFileType:a}=e;return t.jsxs(wr,{children:[t.jsx(jr,{showSuccessBadge:A[a]===o+r,children:t.jsx(vr,{children:o+r})}),t.jsx(Fr,{children:F.getLocalizedStrings().downloadReport.maxPeriodSelectionAllowed[a]})]})},Yr=$e.memo(Or),B=l.div`
|
|
156
|
+
padding-top: ${e=>e.space};
|
|
157
|
+
`,kr=l(qe)`
|
|
158
|
+
color: ${e=>e.theme.colors.primary};
|
|
159
|
+
`,ce=l(R)`
|
|
160
|
+
color: ${e=>e.theme.colors.primary};
|
|
161
|
+
`,Dr=l.div`
|
|
162
|
+
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
163
|
+
`,_r=(e,o,r)=>{const{endOfTimeframeFY:a}=C(o.startDate,e,r),{startOfTimeframeFY:i}=C(o.endDate,e,r),n={startDate:o.startDate,endDate:a},p={startDate:i,endDate:o.endDate};return{fromDateRange:n,toDateRange:p}},Cr=e=>{const{firstMonthOfFY:o,selectedTimeframe:r,numberOfAdditionalColumns:a,calendarPeriod:i,dateRange:n,selectedOrderBy:p,dataAvailable:m,defaultOptions:u,selectedFileType:c,bookCloseDate:y,onDateRangeChange:$,onSelectedTimeframeChange:j,onNewOrderBySelection:w,onAdditionalColumnsSelectionChanged:h}=e,D=x=>F.getLocalizedStrings().timeframe[x],d=x=>F.getLocalizedStrings().downloadReport.orderBy[x],g=F.getLocalizedStrings().downloadReport.displayColumns,{fromDateRange:O,toDateRange:b}=_r(o,n,r),v=x=>{const Y=ie(o,x,m,u.balancesFilter.numberOfPeriods);i.timeframe=x,i.maxNumberOfPeriods=A[c]-u.additionalBalances.length,i.updatePeriod(X(m.endDate,o,Y-1,x),m.endDate),$(i.value.dateRange),j(i.value.timeframe),h(u.additionalBalances)},Q=f.useCallback((x,Y,I)=>{I==="to"?i.updateEndDate(Y.endDate):i.updateStartDate(Y.startDate),$(i.value.dateRange)},[i,$]),T=()=>{let x=sr;return r==="quarter"?x=mr:r==="year"&&(x=$r),t.jsxs(f.Fragment,{children:[t.jsx(x,{firstMonthOfFY:o,onNewPeriodSelection:(Y,I)=>Q(Y,I,"from"),dataAvailable:m,selectedPeriod:O,label:"From",validPeriod:{startDate:m.startDate,endDate:m.endDate},bookCloseDate:y}),t.jsx(B,{space:s.sp3}),t.jsx(x,{firstMonthOfFY:o,onNewPeriodSelection:(Y,I)=>Q(Y,I,"to"),dataAvailable:m,selectedPeriod:b,label:"To",validPeriod:i.getValidCalendarPeriod(),bookCloseDate:y})]})};return t.jsxs(f.Fragment,{children:[t.jsx(kr,{children:g.title}),t.jsx(B,{space:s.sp2}),t.jsx(Yr,{numberOfPeriods:i.numberOfPeriods,numberOfAdditionalColumns:a,selectedFileType:c}),t.jsx(B,{space:s.sp5}),t.jsx(ce,{children:g.displayOrderBy}),t.jsx(B,{space:s.sp2}),t.jsx(_e,{pickerValues:["ascending_date","descending_date"],valueToLabel:d,selectedValue:p,onPickerSelectionChanged:x=>w(x),optionTextStyle:te.standardRegular,titleTextStyle:te.standardRegular,outlined:!0}),t.jsx(B,{space:s.sp5}),t.jsx(Dr,{}),t.jsx(B,{space:s.sp4}),t.jsx(ce,{children:"Period"}),t.jsx(B,{space:s.sp2}),t.jsx(_e,{pickerValues:["month","quarter","year"],valueToLabel:D,selectedValue:r,onPickerSelectionChanged:x=>v(x),titleTextStyle:te.standardRegular,optionTextStyle:te.standardRegular,outlined:!0}),t.jsx(B,{space:s.sp4}),t.jsx(ce,{children:g.periodRange}),t.jsx(B,{space:s.sp2}),T()]})},Pr=f.memo(Cr),H=l.div`
|
|
164
|
+
padding-top: ${e=>e.top??0};
|
|
165
|
+
padding-left: ${e=>e.left??0};
|
|
166
|
+
`,Sr=l.div`
|
|
167
|
+
display: flex;
|
|
168
|
+
justify-content: center;
|
|
169
|
+
align-items: center;
|
|
170
|
+
color: ${e=>e.theme.colors.hero};
|
|
171
|
+
`,Mr=l.div`
|
|
172
|
+
display: flex;
|
|
173
|
+
justify-content: center;
|
|
174
|
+
`,Ar=l.div`
|
|
175
|
+
text-align: center;
|
|
176
|
+
color: ${e=>e.theme.colors.hero};
|
|
177
|
+
max-width: 475px;
|
|
178
|
+
box-sizing: content-box;
|
|
179
|
+
padding: ${s.sp7} ${s.sp11};
|
|
180
|
+
`,Tr=l(gt)`
|
|
181
|
+
color: ${e=>e.theme.colors.primary};
|
|
182
|
+
`,Ir=l(R)`
|
|
183
|
+
white-space: pre-line;
|
|
184
|
+
`,Rr=l.div`
|
|
185
|
+
width: 1px;
|
|
186
|
+
height: ${s.sp7};
|
|
187
|
+
background: ${e=>e.theme.colors.grey2};
|
|
188
|
+
`,Ve=l.div``,Lr=e=>{const{onContinueWithPDFClick:o,onSwitchToExcelClick:r}=e,a=F.getLocalizedStrings().downloadReport.fileSwitchDialogue;return t.jsx(bt,{open:!0,children:t.jsxs(Ar,{children:[t.jsxs(Sr,{children:[t.jsx(be,{width:s.sp10,height:s.sp10}),t.jsx(H,{left:s.sp6}),t.jsx(Rr,{}),t.jsx(H,{left:s.sp6}),t.jsx(ge,{width:s.sp10,height:s.sp10})]}),t.jsx(H,{top:s.sp6}),t.jsx(Tr,{children:a.pdfLimitation}),t.jsx(H,{top:s.sp3}),t.jsx(Ir,{children:a.excelNoLimitation}),t.jsx(H,{top:s.sp4}),t.jsxs(Mr,{children:[t.jsxs(Ve,{children:[t.jsx(ae,{label:a.switchToExcel,onClick:r,style:{width:"195px"}}),t.jsx(H,{top:s.sp1})]}),t.jsx(H,{left:s.sp4}),t.jsx(Ve,{children:t.jsx(ae,{variant:"primary",label:a.continueWithPDF,onClick:o,style:{width:"195px"}})})]})]})})},Je=f.memo(Lr),le=F.getLocalizedStrings().downloadReport.footer,zr=l.div`
|
|
189
|
+
display: flex;
|
|
190
|
+
justify-content: center;
|
|
191
|
+
background: ${e=>e.theme.colors.background};
|
|
192
|
+
padding: ${s.sp3} ${s.sp3} ${s.sp4} 148px;
|
|
193
|
+
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
194
|
+
gap: ${s.sp4};
|
|
195
|
+
`,Br=l.div`
|
|
196
|
+
margin-right: ${e=>e.space};
|
|
197
|
+
`,Nr=l.div`
|
|
198
|
+
padding: ${s.sp3};
|
|
199
|
+
border: 1px solid
|
|
200
|
+
${e=>e.checked?e.theme.colors.primary:e.theme.colors.grey2};
|
|
201
|
+
border-radius: ${s.sp2};
|
|
202
|
+
cursor: pointer;
|
|
203
|
+
display: flex;
|
|
204
|
+
justify-content: center;
|
|
205
|
+
background: ${e=>e.checked?e.theme.colors.grey5:e.theme.colors.background};
|
|
206
|
+
color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
|
|
207
|
+
&:hover {
|
|
208
|
+
color: ${e=>e.theme.colors.primary};
|
|
209
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
210
|
+
}
|
|
211
|
+
height: ${s.sp7};
|
|
212
|
+
gap: 10px;
|
|
213
|
+
box-sizing: border-box;
|
|
214
|
+
align-items: center;
|
|
215
|
+
position: relative;
|
|
216
|
+
min-width: 183px;
|
|
217
|
+
max-width: 183px;
|
|
218
|
+
`,Er=l.div`
|
|
219
|
+
border-radius: ${s.sp2};
|
|
220
|
+
cursor: pointer;
|
|
221
|
+
display: flex;
|
|
222
|
+
justify-content: center;
|
|
223
|
+
height: ${s.sp7};
|
|
224
|
+
gap: ${s.sp2};
|
|
225
|
+
box-sizing: border-box;
|
|
226
|
+
align-items: center;
|
|
227
|
+
color: ${e=>e.isResetDisabled?e.theme.colors.primary:e.theme.colors.grey1};
|
|
228
|
+
`,Vr=l(R)`
|
|
229
|
+
color: inherit;
|
|
230
|
+
`,Qr=l(R)``,Hr=l.div`
|
|
231
|
+
display: flex;
|
|
232
|
+
flex: 1;
|
|
233
|
+
align-items: center;
|
|
234
|
+
justify-content: center;
|
|
235
|
+
gap: ${s.sp4};
|
|
236
|
+
`,Ur=l.div`
|
|
237
|
+
display: flex;
|
|
238
|
+
justify-content: space-between;
|
|
239
|
+
gap: ${s.sp3};
|
|
240
|
+
`,qr=l.div`
|
|
241
|
+
position: absolute;
|
|
242
|
+
top: calc(50% - ${e=>e.offset});
|
|
243
|
+
left: calc(50% - ${e=>e.offset});
|
|
244
|
+
`,Wr=l(ge)`
|
|
245
|
+
width: ${s.sp4};
|
|
246
|
+
height: ${s.sp4};
|
|
247
|
+
`,Gr=l(be)`
|
|
248
|
+
width: ${s.sp4};
|
|
249
|
+
height: ${s.sp4};
|
|
250
|
+
`,Zr=[{id:"excel",label:le.downloadExcel,Icon:Gr},{id:"pdf",label:le.downloadPdf,Icon:Wr}],Kr=e=>{const{label:o,id:r,onClick:a,checked:i,Icon:n,isLoading:p}=e;return t.jsx(Nr,{checked:i,onClick:a,id:r,children:p&&i?t.jsx(qr,{offset:`${Ze("Standard")/2}px`,children:t.jsx(Ge,{size:"Standard",reverseSpinnerColor:!1,start:!0})}):t.jsxs(t.Fragment,{children:[t.jsx(Qr,{children:o}),t.jsx(n,{})]})})},Xr=e=>{const{onViewReportClick:o,downloadingStatement:r,disabledDownloadButton:a,downloadTypeProps:i,onResetClick:n,isResetDisabled:p}=e,{calendarPeriod:m,onNewFileTypeSelection:u,numberOfAdditionalColumns:c,selectedFileType:y,resetToDefaultOption:$}=i,[j,w]=f.useState(!1),h=d=>{d.stopPropagation(),o()},D=d=>{d==="pdf"&&m.numberOfPeriods+c>A.pdf?w(!0):(m.maxNumberOfPeriods=A[d]-c,u(d))};return t.jsxs(zr,{onClick:d=>d.stopPropagation(),children:[t.jsxs(Er,{isResetDisabled:p,onClick:n,children:[t.jsx(Ue,{width:s.sp4,height:s.sp4}),t.jsx(Vr,{children:le.resetLabel})]}),t.jsxs(Hr,{children:[t.jsx(Ur,{children:Zr.map(d=>t.jsx(Kr,{...d,onClick:()=>{a||D(d.id)},checked:y===d.id,isLoading:r},d.id))}),t.jsx(Br,{space:s.sp0,style:{display:"flex",alignItems:"center",height:N[7]},children:le.orLabel}),t.jsx(ae,{variant:"primary",label:F.getLocalizedStrings().downloadReport.viewReport,onClick:h,style:{width:"160px"}})]}),j?t.jsx(Je,{onSwitchToExcelClick:()=>w(!1),onContinueWithPDFClick:()=>{w(!1),u("pdf"),$()}}):""]})},Jr=f.memo(Xr),he=F.getLocalizedStrings().downloadReport.footer,es=l.div`
|
|
251
|
+
display: flex;
|
|
252
|
+
justify-content: center;
|
|
253
|
+
background: ${e=>e.theme.colors.background};
|
|
254
|
+
padding: ${s.sp3};
|
|
255
|
+
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
256
|
+
gap: ${s.sp4};
|
|
257
|
+
`,ts=l.div`
|
|
258
|
+
margin-right: ${e=>e.space};
|
|
259
|
+
`,rs=l.div`
|
|
260
|
+
padding: ${s.sp3};
|
|
261
|
+
border: 1px solid
|
|
262
|
+
${e=>e.checked?e.theme.colors.primary:e.theme.colors.grey2};
|
|
263
|
+
border-radius: ${s.sp2};
|
|
264
|
+
cursor: pointer;
|
|
265
|
+
display: flex;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
background: ${e=>e.checked?e.theme.colors.grey5:e.theme.colors.background};
|
|
268
|
+
color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
|
|
269
|
+
&:hover {
|
|
270
|
+
color: ${e=>e.theme.colors.primary};
|
|
271
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
272
|
+
}
|
|
273
|
+
height: ${s.sp6};
|
|
274
|
+
gap: 10px;
|
|
275
|
+
box-sizing: border-box;
|
|
276
|
+
align-items: center;
|
|
277
|
+
position: relative;
|
|
278
|
+
width: 50%;
|
|
279
|
+
`,ss=l(R)``,os=l.div`
|
|
280
|
+
display: flex;
|
|
281
|
+
flex: 1;
|
|
282
|
+
align-items: center;
|
|
283
|
+
justify-content: center;
|
|
284
|
+
flex-direction: column;
|
|
285
|
+
gap: ${s.sp2};
|
|
286
|
+
`,as=l.div`
|
|
287
|
+
display: flex;
|
|
288
|
+
gap: ${s.sp3};
|
|
289
|
+
width: 100%;
|
|
290
|
+
`,is=l.div`
|
|
291
|
+
position: absolute;
|
|
292
|
+
top: calc(50% - ${e=>e.offset});
|
|
293
|
+
left: calc(50% - ${e=>e.offset});
|
|
294
|
+
`,ls=l(ge)`
|
|
295
|
+
width: ${s.sp4};
|
|
296
|
+
height: ${s.sp4};
|
|
297
|
+
`,ns=l(be)`
|
|
298
|
+
width: ${s.sp4};
|
|
299
|
+
height: ${s.sp4};
|
|
300
|
+
`,ds=[{id:"excel",label:he.downloadExcel,Icon:ns},{id:"pdf",label:he.downloadPdf,Icon:ls}],cs=e=>{const{label:o,id:r,onClick:a,checked:i,Icon:n,isLoading:p}=e;return t.jsx(rs,{checked:i,onClick:a,id:r,children:p&&i?t.jsx(is,{offset:`${Ze("Standard")/2}px`,children:t.jsx(Ge,{size:"Standard",reverseSpinnerColor:!1,start:!0})}):t.jsxs(t.Fragment,{children:[t.jsx(ss,{children:o}),t.jsx(n,{})]})})},ps=e=>{const{onViewReportClick:o,downloadingStatement:r,disabledDownloadButton:a,downloadTypeProps:i}=e,{calendarPeriod:n,onNewFileTypeSelection:p,numberOfAdditionalColumns:m,selectedFileType:u,resetToDefaultOption:c}=i,[y,$]=f.useState(!1),j=h=>{h.stopPropagation(),o()},w=h=>{h==="pdf"&&n.numberOfPeriods+m>A.pdf?$(!0):(n.maxNumberOfPeriods=A[h]-m,p(h))};return t.jsxs(es,{onClick:h=>h.stopPropagation(),children:[t.jsxs(os,{children:[t.jsx(as,{children:ds.map(h=>t.jsx(cs,{...h,onClick:()=>{a||w(h.id)},checked:u===h.id,isLoading:r},h.id))}),t.jsx(ts,{space:s.sp0,style:{display:"flex",alignItems:"center",height:s.sp4},children:he.orLabel}),t.jsx(ae,{variant:"primary",label:F.getLocalizedStrings().downloadReport.viewReport,onClick:j,style:{width:"100%"}})]}),y?t.jsx(Je,{onSwitchToExcelClick:()=>$(!1),onContinueWithPDFClick:()=>{$(!1),p("pdf"),c()}}):""]})},ms=f.memo(ps),hs=e=>fe()==="small"?t.jsx(ms,{...e}):t.jsx(Jr,{...e}),fs=e=>f.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},f.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"}),f.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"}),f.createElement("path",{d:"M5.97803 6.3999H17.978",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M5.97803 9.97034H17.978",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M5.97803 13.5406H17.978",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M5.97803 17.1112H11.978",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),us=l.div`
|
|
301
|
+
padding: ${s.sp3};
|
|
302
|
+
border: 1px solid
|
|
303
|
+
${e=>e.disabled?e.theme.colors.grey3:e.checked?e.theme.colors.primary:e.theme.colors.grey2};
|
|
304
|
+
border-radius: ${s.sp1};
|
|
305
|
+
display: flex;
|
|
306
|
+
cursor: ${e=>e.disabled?"default":"pointer"};
|
|
307
|
+
background: ${e=>e.checked?e.theme.colors.grey5:e.theme.colors.background};
|
|
308
|
+
color: ${e=>e.disabled?e.theme.colors.grey2:e.checked?e.theme.colors.primary:e.theme.colors.hero};
|
|
309
|
+
.report-format-icon {
|
|
310
|
+
color: inherit;
|
|
311
|
+
}
|
|
312
|
+
&:hover {
|
|
313
|
+
color: ${e=>e.disabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
314
|
+
border: 1px solid
|
|
315
|
+
${e=>e.disabled?e.theme.colors.grey3:e.theme.colors.primary};
|
|
316
|
+
.report-format-icon {
|
|
317
|
+
color: inherit;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
`,xs=l(R)`
|
|
321
|
+
margin-left: ${s.sp3};
|
|
322
|
+
`,bs=l(xe)`
|
|
323
|
+
margin-left: ${s.sp3};
|
|
324
|
+
`,G=l.div`
|
|
325
|
+
padding-top: ${e=>e.space};
|
|
326
|
+
`,Qe=l(qe)`
|
|
327
|
+
color: ${e=>e.theme.colors.primary};
|
|
328
|
+
`,gs=l.div`
|
|
329
|
+
position: relative;
|
|
330
|
+
z-index: 2;
|
|
331
|
+
`,ys=l(R)`
|
|
332
|
+
color: ${e=>e.theme.colors.primary};
|
|
333
|
+
`,$s=l.div`
|
|
334
|
+
max-height: ${s.sp8};
|
|
335
|
+
`,ws=l.div`
|
|
336
|
+
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
337
|
+
`,Fs=l.div`
|
|
338
|
+
border-radius: ${s.sp2};
|
|
339
|
+
cursor: pointer;
|
|
340
|
+
display: flex;
|
|
341
|
+
justify-content: center;
|
|
342
|
+
height: ${s.sp4};
|
|
343
|
+
gap: ${s.sp2};
|
|
344
|
+
box-sizing: border-box;
|
|
345
|
+
align-items: center;
|
|
346
|
+
color: ${e=>e.isResetDisabled?e.theme.colors.primary:e.theme.colors.grey1};
|
|
347
|
+
`,js=l(R)`
|
|
348
|
+
color: inherit;
|
|
349
|
+
`,vs=l.div`
|
|
350
|
+
display: flex;
|
|
351
|
+
align-items: center;
|
|
352
|
+
justify-content: space-between;
|
|
353
|
+
`,Os=e=>{const{label:o,id:r,subLabel:a,onClick:i,checked:n,Icon:p,disabled:m}=e;return t.jsxs(us,{checked:n,disabled:m,onClick:i,id:r,children:[t.jsx(p,{className:"report-format-icon",width:N[7],height:N[7]}),t.jsxs("div",{children:[t.jsx(xs,{children:o}),t.jsx(bs,{children:a})]})]})},Ys=e=>{const{reportId:o,firstMonthOfFY:r,selectedFormat:a,disabledFormat:i,selectedView:n,nestedClasses:p,classesToFilterOut:m,classesFetchState:u,showClassAccountNumber:c,showAccountGroups:y,onOpenAccountViewMode:$,onNewFormatSelection:j,onNewViewSelection:w,onResetClick:h,isResetDisabled:D}=e,d=F.getLocalizedStrings().downloadReport.reportFormats,g=fe(),O=[{id:d.summary.id,label:d.summary.label,subLabel:d.summary.subLabel,Icon:dt},{id:d.detailed.id,label:d.detailed.label,subLabel:n==="account_group"?y===!0?d.detailed.subLabelAccountGroups:d.detailed.subLabelAccounts:d.detailed.subLabelClasses,Icon:Ct},{id:d.moreDetailed.id,label:d.moreDetailed.label,subLabel:n==="account_group"?y===!0?d.moreDetailed.subLabelAccountGroups:d.moreDetailed.subLabelAccounts:d.moreDetailed.subLabelClasses,Icon:fs}],b=()=>t.jsx(f.Fragment,{children:t.jsx(_t,{reportId:o,firstMonthOfFY:r,nodes:p,classesListFetchState:u,selectedView:n,showAccountGroups:y,downloadPage:!0,onSaveClick:w,classesToBeFilteredOut:m,showClassAccountNumber:c,onOpenAccountViewMode:$})});return t.jsxs(f.Fragment,{children:[g==="small"?t.jsxs(vs,{children:[t.jsx(Qe,{children:F.getLocalizedStrings().downloadReport.reportFormat}),t.jsxs(Fs,{isResetDisabled:D,onClick:h,children:[t.jsx(Ue,{width:s.sp4,height:s.sp4}),t.jsx(js,{children:d.resetLabel})]})]}):t.jsx(Qe,{children:F.getLocalizedStrings().downloadReport.reportFormat}),t.jsx(G,{space:s.sp4}),t.jsxs(gs,{children:[t.jsx(ys,{children:"View by"}),t.jsx(G,{space:s.sp2}),t.jsx($s,{children:b()})]}),t.jsx(G,{space:s.sp5}),t.jsx(ws,{}),t.jsx(G,{space:s.sp5}),O.map(v=>t.jsxs(f.Fragment,{children:[t.jsx(Os,{...v,onClick:()=>{i.includes(v.id)||j(v.id)},checked:a===v.id,disabled:i.includes(v.id)}),t.jsx(G,{space:s.sp4})]},v.id))]})},E={width:new W(N[11],N[11],33),maxWidth:new W(550,550,425),containerPadding:new W(N[3],N[6]),rowItemPadding:new W(0,N[6]),footerHeight:new W(211,133)},ks=l.div`
|
|
354
|
+
position: relative;
|
|
355
|
+
display: flex;
|
|
356
|
+
width: ${s.sp4};
|
|
357
|
+
height: ${s.sp4};
|
|
358
|
+
color: ${e=>e.theme.colors.hero};
|
|
359
|
+
&:hover {
|
|
360
|
+
color: ${e=>e.theme.colors.primary};
|
|
361
|
+
.download-badge {
|
|
362
|
+
color: ${e=>e.theme.colors.primary};
|
|
363
|
+
border-color: ${e=>e.theme.colors.primary};
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
`,Ds=Ke`
|
|
367
|
+
0% {
|
|
368
|
+
transform: translateY(100%)
|
|
369
|
+
}
|
|
370
|
+
100% {
|
|
371
|
+
transform: translateY(0)
|
|
372
|
+
}
|
|
373
|
+
`,_s=Ke`
|
|
374
|
+
0% {
|
|
375
|
+
opacity: 0
|
|
376
|
+
}
|
|
377
|
+
90% {
|
|
378
|
+
opacity: 0
|
|
379
|
+
}
|
|
380
|
+
100% {
|
|
381
|
+
opacity: 1
|
|
382
|
+
}
|
|
383
|
+
`,Cs=l.div`
|
|
384
|
+
position: fixed;
|
|
385
|
+
top: 0;
|
|
386
|
+
left: 0;
|
|
387
|
+
width: 100%;
|
|
388
|
+
z-index: 10;
|
|
389
|
+
height: 100%;
|
|
390
|
+
text-align: left;
|
|
391
|
+
background: ${ue.overlayDark};
|
|
392
|
+
`,Ps=l.div`
|
|
393
|
+
display: flex;
|
|
394
|
+
justify-content: flex-end;
|
|
395
|
+
padding: ${e=>`${s.sp3} ${E.containerPadding.valuePx(e.windowSize)}`};
|
|
396
|
+
`,Ss=l(nt)`
|
|
397
|
+
width: ${s.sp4};
|
|
398
|
+
height: ${s.sp4};
|
|
399
|
+
color: ${e=>e.theme.colors.hero};
|
|
400
|
+
cursor: pointer;
|
|
401
|
+
line-height: ${s.sp0};
|
|
402
|
+
&:hover {
|
|
403
|
+
color: ${ue.primaryDark};
|
|
404
|
+
}
|
|
405
|
+
animation: ${_s} 0.4s;
|
|
406
|
+
`,Ms=l.div`
|
|
407
|
+
display: flex;
|
|
408
|
+
flex-wrap: wrap;
|
|
409
|
+
justify-content: center;
|
|
410
|
+
height: calc(
|
|
411
|
+
100% - ${e=>E.footerHeight.valuePx(e.windowSize)}
|
|
412
|
+
);
|
|
413
|
+
overflow-y: auto;
|
|
414
|
+
padding: ${e=>`${E.containerPadding.valuePx(e.windowSize)} ${E.containerPadding.valuePx(e.windowSize)} ${s.sp0} ${E.containerPadding.valuePx(e.windowSize)} `};
|
|
415
|
+
background: ${e=>e.theme.colors.grey4};
|
|
416
|
+
border-radius: ${s.sp2} ${s.sp2} ${s.sp0} ${s.sp0};
|
|
417
|
+
animation: ${Ds} 0.4s;
|
|
418
|
+
`,pe=l.div`
|
|
419
|
+
padding: ${e=>`${s.sp0} ${E.rowItemPadding.valuePx(e.windowSize)}`};
|
|
420
|
+
width: ${e=>E.width.value(e.windowSize)}%;
|
|
421
|
+
max-width: ${e=>E.maxWidth.valuePx(e.windowSize)};
|
|
422
|
+
`,se=l.div`
|
|
423
|
+
padding-top: ${e=>e.space};
|
|
424
|
+
`,As=l.div`
|
|
425
|
+
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
426
|
+
`,Ts=l(He)`
|
|
427
|
+
position: absolute;
|
|
428
|
+
top: -${s.sp2};
|
|
429
|
+
right: -12px;
|
|
430
|
+
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
431
|
+
border-radius: 50%;
|
|
432
|
+
width: 18px;
|
|
433
|
+
height: 18px;
|
|
434
|
+
display: flex;
|
|
435
|
+
align-items: center;
|
|
436
|
+
justify-content: center;
|
|
437
|
+
color: ${e=>e.theme.colors.hero};
|
|
438
|
+
cursor: pointer;
|
|
439
|
+
`,Is=e=>({localeId:F.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}),Rs=e=>{const o=Is(e);if(o!=null)return Dt(e.statementEndPoint,e.authParams,o)},Ls=e=>{const{onClose:o,defaultOptions:r,dataAvailable:a,analytics:i,onSaveClickHandler:n,onThisPeriodChanged:p,onAdditionalBalanceSelectionChanged:m,onTimeframeSelectionChanged:u}=e,c=fe();lt();const[y,$]=f.useState(!1),[j,w]=f.useState(!1),[h,D]=f.useState(new Ce(r.firstMonthOfFY,r.timeframe,a,r.balancesFilter.numberOfPeriods,A.excel,r.balancesFilter.thisPeriod.endDate)),[d,g]=f.useState(r.statements),[O,b]=f.useState(r.timeframe),[v,Q]=f.useState("excel"),[T,x]=f.useState(r.additionalBalances),[Y,I]=f.useState(oe(r.firstMonthOfFY,r.timeframe,r.balancesFilter.thisPeriod.endDate,r.balancesFilter.numberOfPeriods).dateRange),[J,et]=f.useState(e.defaultOptions.accountViewMode),[ee,tt]=f.useState(e.defaultOptions.classesToFilterOut),[q,Oe]=f.useState(e.defaultOptions.balancesFilter.orderBy),[Ye,ke]=f.useState(!1),rt=()=>{const k=ie(r.firstMonthOfFY,O,Y),{startOfTimeframeFY:L,endOfTimeframeFY:S}=C(Y.endDate,r.firstMonthOfFY,O),z=P(new Date(S.year(),S.month(),S.date()).toISOString());p?.({endDate:z,startDate:L},k,!0)};f.useEffect(()=>{const k=async()=>{const L=h.endDate,{startOfTimeframeFY:S}=C(h.endDate,r.firstMonthOfFY,h.timeframe);await Rs({...e,statements:Pt.filter(z=>d.includes(z)),firstMonthOfFY:e.defaultOptions.firstMonthOfFY,timeframe:h.timeframe,additionalBalances:Xe[h.timeframe].filter(z=>T.includes(z)),format:e.reportFormatProps.selectedFormat,statementFileType:v,accountViewMode:J,classesToFilterOut:ee,balancesFilter:{thisPeriod:{startDate:S,endDate:L},orderBy:q,numberOfPeriods:h.numberOfPeriods},dataAvailable:a,isZeniCOAUsed:e.defaultOptions.isZeniCOAUsed}),e.updateDownloadStateHandler("Completed")};Ye&&e.downloadState!=="In-Progress"&&(ke(!1),e.updateDownloadStateHandler("In-Progress"),k(),i?.trackDownload(e.referrer,kt(h.timeframe),v,!1))},[i,h.endDate,h.numberOfPeriods,h.timeframe,Ye,e,a,T,v,e.reportFormatProps.selectedFormat,q,d,J,ee,r.firstMonthOfFY]),f.useEffect(()=>{j?y||$(k=>!k):w(k=>!k)},[T,q,Y,e.reportFormatProps.selectedFormat]);const st=()=>{x(r.additionalBalances),h.maxNumberOfPeriods=A.pdf-r.additionalBalances.length;const k=ie(r.firstMonthOfFY,h.timeframe,a,r.balancesFilter.numberOfPeriods),L=oe(r.firstMonthOfFY,h.timeframe,h.endDate,k).dateRange;I(L),h.updatePeriod(L.startDate,L.endDate)},ot=k=>{k.stopPropagation(),o()},at=(k,L)=>{et(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"?d.includes("profit_and_loss")&&(g(S=>S.filter(z=>z!=="profit_and_loss")),g(S=>[...S,"profit_and_loss_by_classes"])):d.includes("profit_and_loss_by_classes")&&(g(S=>S.filter(z=>z!=="profit_and_loss_by_classes")),g(S=>[...S,"profit_and_loss"])),L!==void 0&&tt(L)},De=()=>{D(new Ce(r.firstMonthOfFY,r.timeframe,a,r.balancesFilter.numberOfPeriods,A.excel,r.balancesFilter.thisPeriod.endDate)),x(r.additionalBalances),e.reportFormatProps.setSelectedFormat(r.accountViewMode==="classes"?e.reportFormatProps.roleBasedClassesSelectedFormat:e.showAccountGroups===!1?"more_detailed":"detailed"),Oe("ascending_date"),g(r.statements),b(r.timeframe),I(oe(r.firstMonthOfFY,r.timeframe,r.balancesFilter.thisPeriod.endDate,r.balancesFilter.numberOfPeriods).dateRange),$(!1),w(!1)};return t.jsxs(Cs,{children:[t.jsx(Ps,{role:"presentation",onClick:k=>ot(k),windowSize:c,children:t.jsx(Ss,{})}),t.jsxs(Ms,{windowSize:c,children:[t.jsxs(pe,{windowSize:c,children:[t.jsx(Ys,{firstMonthOfFY:e.defaultOptions.firstMonthOfFY,reportId:"profit_and_loss_by_classes",selectedFormat:e.reportFormatProps.selectedFormat,disabledFormat:e.reportFormatProps.disabledFormatForRole,selectedView:J,nestedClasses:e.defaultOptions.nestedClassHierarchy??[],classesToFilterOut:ee,classesFetchState:e.classesFetchState,showClassAccountNumber:e.defaultOptions.showClassAccountNumber??!1,showAccountGroups:e.showAccountGroups,onNewFormatSelection:e.reportFormatProps.setSelectedFormat,onNewViewSelection:at,onOpenAccountViewMode:e.onOpenAccountViewMode,onResetClick:De,isResetDisabled:y}),t.jsx(As,{}),c==="small"||c==="medium-compact"?t.jsx(se,{space:s.sp5}):t.jsx(se,{space:s.sp8})]}),t.jsxs(pe,{windowSize:c,children:[t.jsx(Pr,{firstMonthOfFY:r.firstMonthOfFY,calendarPeriod:h,numberOfAdditionalColumns:T.length,selectedOrderBy:q,dataAvailable:a,dateRange:Y,defaultOptions:r,selectedTimeframe:O,bookCloseDate:r.bookCloseDate,onDateRangeChange:I,onSelectedTimeframeChange:b,onNewOrderBySelection:Oe,selectedFileType:v,onAdditionalColumnsSelectionChanged:x}),t.jsx(se,{space:s.sp5})]}),t.jsxs(pe,{windowSize:c,children:[t.jsx(Vt,{firstMonthOfFY:e.defaultOptions.firstMonthOfFY,disabledAdditionalColumns:r.disabledAdditionalColumns,selectedTimeframe:O,dateRange:Y,calendarPeriod:h,selectedAdditionalColumns:T,onAdditionalColumnsSelectionChanged:x,dataAvailable:a,selectedFileType:v}),t.jsx(se,{space:s.sp8})]})]}),t.jsx(hs,{onCancelClick:()=>o(),onViewReportClick:()=>{e.onUpdateDisplayOrder(q),e.onUpdateReportFormat(e.reportFormatProps.selectedFormat),n(J,ee),m?.(T,h.numberOfPeriods,!0),u?.(O,!1,!0),rt(),o()},downloadingStatement:e.downloadState==="In-Progress",disabledDownloadButton:d.length===0,downloadTypeProps:{selectedFileType:v,calendarPeriod:h,numberOfAdditionalColumns:T.length,onNewFileTypeSelection:k=>{Q(k),ke(!0)},resetToDefaultOption:st},onResetClick:De,isResetDisabled:y})]})},eo=e=>{const{defaultOptions:o}=e,[r,a]=f.useState(!1),i=o.additionalBalances;return t.jsxs(ks,{onClick:()=>{a(!0)},children:[t.jsx(it,{visibility:r?"hidden":"visible",style:{cursor:"pointer",width:s.sp4,height:s.sp4}}),r?null:t.jsx(Ts,{className:"download-badge",children:o.balancesFilter.numberOfPeriods+i.length}),r?t.jsx(Ls,{...e,onClose:()=>a(!1)}):null]})};export{eo as DownloadOverlayButton,Ls as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as a,j as i,
|
|
1
|
+
import{q as a,j as i,eh as P,o,O as h,y as s,es as y,b as c,H as g,A as b,u as t,cG as L,nD as k,nE as C,nF as R}from"./index-kF4u7Flm.js";import{n}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-D-TY61DZ.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.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,D=({rewardsPlan:e})=>{const r=[A(),_(),H({rewardsPlan:e})],d=a();return i.jsx(N,{children:r.map((f,j)=>i.jsxs(I,{children:[i.jsx(q,{children:f}),j<r.length-1?i.jsx(O,{windowSize:d}):null]},`step_${j}`))})},A=()=>{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(M,{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(B,{windowSize:e})}),i.jsx(S,{windowSize:e,children:r.title})]}),i.jsx($,{windowSize:e,children:i.jsx(u,{windowSize:e,children:r.content})})]})},H=({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(E,{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}`};
|
|
@@ -19,11 +19,11 @@ import{q as a,j as i,c5 as P,o,O as h,y as s,cg as y,c,H as g,A as b,u as t,aN a
|
|
|
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
|
+
`,B=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
|
+
`,E=n(R)`
|
|
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};
|
|
@@ -47,9 +47,9 @@ import{q as a,j as i,c5 as P,o,O as h,y as s,cg as y,c,H as g,A as b,u as t,aN a
|
|
|
47
47
|
flex-direction: row;
|
|
48
48
|
position: relative;
|
|
49
49
|
z-index: 1;
|
|
50
|
-
`,
|
|
50
|
+
`,N=n.div`
|
|
51
51
|
margin-top: ${o.sp4};
|
|
52
|
-
`,
|
|
52
|
+
`,O=n.div`
|
|
53
53
|
top: ${o.sp0};
|
|
54
54
|
width: 1px;
|
|
55
55
|
height: 100%;
|
|
@@ -58,9 +58,9 @@ import{q as a,j as i,c5 as P,o,O as h,y as s,cg as y,c,H as g,A as b,u as t,aN a
|
|
|
58
58
|
width: 2px;
|
|
59
59
|
background: ${e=>e.theme.colors.grey2};
|
|
60
60
|
z-index: -1;
|
|
61
|
-
`,
|
|
61
|
+
`,q=n.div`
|
|
62
62
|
padding-bottom: ${o.sp4};
|
|
63
|
-
`,{common:{navBar:{back:W}}}=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])},X={title:new c("standardRegular","largeRegular")},{referAndEarn:
|
|
63
|
+
`,{common:{navBar:{back:W}}}=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])},X={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(T,{windowSize:d,children:i.jsxs(K,{windowSize:d,children:[d==="small"&&i.jsx(V,{children:i.jsx(P,{enterDelay:600,title:W,placement:"bottom",style:{padding:`${o.sp1} ${o.sp2}`},children:i.jsx(Z,{onClick:r})})}),i.jsx(J,{windowSize:d,children:F}),d!=="small"&&i.jsx(U,{onClick:r})]})}),i.jsx(Q,{windowSize:d,children:i.jsx(D,{rewardsPlan:e})})]})}const G=n.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -68,21 +68,21 @@ import{q as a,j as i,c5 as P,o,O as h,y as s,cg as y,c,H as g,A as b,u as t,aN a
|
|
|
68
68
|
width: 100%;
|
|
69
69
|
height: 100vh;
|
|
70
70
|
position: relative;
|
|
71
|
-
`,
|
|
71
|
+
`,K=n.div`
|
|
72
72
|
display: flex;
|
|
73
73
|
align-items: center;
|
|
74
74
|
justify-content: space-between;
|
|
75
75
|
height: 100%;
|
|
76
76
|
width: ${e=>e.windowSize==="small"?"100%":"76%"};
|
|
77
|
-
`,
|
|
77
|
+
`,J=n(g)`
|
|
78
78
|
color: ${e=>e.theme.colors.primary};
|
|
79
79
|
width: 96%;
|
|
80
80
|
text-align: center;
|
|
81
81
|
${e=>`${X.title.style(e.windowSize)}`};
|
|
82
|
-
`,
|
|
82
|
+
`,Q=n.div`
|
|
83
83
|
padding-left: ${e=>w.containerPaddingLeft.valuePx(e.windowSize)};
|
|
84
84
|
padding-right: ${e=>w.containerPaddingRight.valuePx(e.windowSize)};
|
|
85
|
-
`,
|
|
85
|
+
`,T=n.div`
|
|
86
86
|
display: flex;
|
|
87
87
|
flex-direction: row;
|
|
88
88
|
justify-content: center;
|
|
@@ -92,7 +92,7 @@ import{q as a,j as i,c5 as P,o,O as h,y as s,cg as y,c,H as g,A as b,u as t,aN a
|
|
|
92
92
|
padding: ${e=>`${w.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${o.sp0}`};
|
|
93
93
|
z-index: 2;
|
|
94
94
|
background-color: ${e=>e.theme.colors.grey4};
|
|
95
|
-
`,
|
|
95
|
+
`,U=n(b)`
|
|
96
96
|
cursor: pointer;
|
|
97
97
|
color: ${e=>e.theme.colors.hero};
|
|
98
98
|
width: ${o.sp4};
|
|
@@ -101,7 +101,7 @@ import{q as a,j as i,c5 as P,o,O as h,y as s,cg as y,c,H as g,A as b,u as t,aN a
|
|
|
101
101
|
&:hover {
|
|
102
102
|
color: ${e=>e.theme.colors.primary};
|
|
103
103
|
}
|
|
104
|
-
`,
|
|
104
|
+
`,V=n.div`
|
|
105
105
|
height: ${o.sp4};
|
|
106
106
|
width: ${o.sp4};
|
|
107
107
|
display: flex;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import{q as ie,O as ae,jd as de,x as pe,c1 as ce,cJ as ue,j as s,eX as me,ch as he,eY as ge,eZ as fe,kf as ye,cF as z,f2 as ve,o as r,eh as xe,c4 as $e,cK as be,y as T,jg as je,jh as we,ji as Re,f7 as Oe,jr as Ce,cp as ke,d2 as Pe,h as W,fG as Ie,u as c}from"./index-kF4u7Flm.js";import{b,n}from"./vendor-Bs1fkIUX.js";import{f as Te}from"./AllUserItems-CvwaOEhu-DISgj-9d.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-D-TY61DZ.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-DaWgPr9f.js";import"./RoleWithToolTip-BqI6M0x_-3Pz3ZAbU.js";import"./LabeledZeniRolesDropDownField-BXTCN4j2-CLEMt0Ht.js";const O={containerPaddingTop:new T(c[3],c[3]),containerPaddingLeft:new T(c[3],c[6],c[6]),containerPaddingRight:new T(c[3],c[6],c[8]),buttonWidth:new T(85,85)},G="editPeoplePage",j="userItems",a=ae.getLocalizedStrings().peoplePage,es=({peopleDetails:e,managersList:u,classList:w,controllersList:C,mode:d,isZeniTenant:_,onCloseClick:k,onResetClick:P,onSaveClick:m,onDeleteUser:M,onPeopleLocalDataUpdated:Q,analytics:B,isReimbursementDisabled:D,isZeniAccountsDisabled:N,isChargeCardDisabled:Z,isTreasuryDisabled:q,isBankingOnlyTenant:y,isCardsOnlyTenant:v,isLiteRoleDisabled:A})=>{const R=ie(),[X,S]=b.useState(!1),[Y,H]=b.useState(-1),ee=d==="zeni_only"?a.invitePage.editZeniTitle:a.invitePage.editTitle,se=b.useRef(null),E=b.useMemo(()=>de(D,N,Z,y,v,A,q),[D,N,Z,y,v,A,q]),F=pe(),l=ce({mode:"onBlur",reValidateMode:"onChange",defaultValues:J(e.people,u,w,d,E,y,v),values:J(e.people,u,w,d,E,y,v)}),te=l.handleSubmit(()=>{V()&&m()},()=>{V(),console.warn("Edit Profile form error")}),V=()=>{const h=l.getValues();let o=!0;return h.userItems.forEach((g,x)=>{const{role:L,department:i,nonZeniRole:f,manager:p}=g;if(d==="zeni_only"){const t=L.selectedOptions;(!t?.length||t?.length===1&&t?.includes("company_officer"))&&(l.setError(`${j}.${x}.role`,{type:"required"}),o=!1)}else{const t=f?.userRole.selectedRole;(t!=null&&f!=null?f.productsByUserRole[t].map($=>$.selectedOption).filter($=>$!=null):[]).length<1&&(l.setError(`${j}.${x}.nonZeniRole.userRole.selectedRole`,{type:"required"}),o=!1),t!=="investor_or_banker"&&i?.selectedOption==null&&(y||v||(l.setError(`${j}.${x}.department`,{type:"required"}),o=!1)),p?.selectedUser==null&&t!=="investor_or_banker"&&(l.setError(`${j}.${x}.manager`,{type:"required"}),o=!1)}}),o},re=async(h,o)=>{const g=[],{userItems:x}=o,L=e.person?.userRole?.userRoleId;x.forEach(i=>{let f={};if(L!=null){if(d==="zeni_only")f={email:i.email,role:i.role.selectedOptions};else{const p=i.nonZeniRole?.userRole.selectedRole;let t=[];p==="admin"||p==="investor_or_banker"?t.push(p):t=p!=null?(i.nonZeniRole?.productsByUserRole[p]??[]).map(U=>Ce(U.selectedOption?.value)).filter(U=>U!=null):[],p==="employee"&&t.length===0&&t.push("reimbursements_user");const $=ke(t);f={email:i.email,role:t,departmentId:$?void 0:i.department?.selectedOption?.value,managerId:$?void 0:i.manager?.selectedUser}}g.push(f)}}),Q(g)};b.useEffect(()=>{const h=l.watch((o,{name:g})=>{g!=null&&o!=null&&re(g,o)});return()=>{h.unsubscribe()}});const oe=()=>{S(!0)},ne={onOkClick:()=>{const h=e.person;B?.trackRemoveUserAccess(h.userRole.userRoles,h.userRole.userEmail),M?.(e.person)},onCancelClick:()=>{S(!1)}},K=ue(e.person?.update),I=e.person?.update,le=a.deleteOverlay.description.replace("‘_user-name_’",`"${e.person?.user?.firstName} ${e.person?.user?.lastName}"`);return b.useEffect(()=>{I==null&&K==="removeUsers"&&(S(!1),P?.())},[I,K]),s.jsxs(s.Fragment,{children:[X===!0?s.jsx(me,{titleComponent:s.jsx(fe,{children:a.deleteOverlay.title}),descriptionComponent:s.jsx(ge,{children:le}),primaryButtonText:a.deleteOverlay.remove,secondaryButtonText:a.deleteOverlay.cancel,action:ne,proceedButtonVariant:"danger",isLoading:I==="removeUsers",isDisabled:I==="removeUsers",style:{background:F.colors.overlayColor},children:e.person?.user!=null?s.jsxs(s.Fragment,{children:[s.jsx(De,{}),s.jsx(ze,{children:s.jsx(Be,{src:e.person?.user.photo?.toString()??he,alt:e.person?.user.userId,loading:"lazy"})})]}):null}):null,s.jsx(ye,{title:ee,backgroundColor:F.colors.grey4,style:{zIndex:4},onCloseClick:k,isTitleAlignLeft:R==="small"}),s.jsxs(_e,{"data-testid":z("edit-people-page-container"),windowSize:R,ref:se,children:[s.jsxs(Ue,{children:[s.jsx(ve,{personBasic:e.person?.user,styles:{height:r.sp6,width:r.sp6}}),s.jsxs(Se,{children:[s.jsx(Ee,{children:e.person?.user?.firstName?s.jsxs(Le,{children:[e.person?.user?.firstName??""," ",e.person?.user?.lastName??""]}):null}),s.jsx(Ze,{className:"delete-icon-wrapper","data-testid":z("edit-people-page-delete-icon-wrapper"),onClick:oe,children:s.jsx(xe,{style:{padding:"2px 5px"},enterDelay:600,title:a.deleteOverlay.title,placement:"top",children:s.jsx(Ne,{windowsize:R})})})]})]}),s.jsx($e,{...l,children:s.jsx("form",{id:`${G}_form`,onSubmit:te,children:s.jsx(Te,{control:l.control,sectionId:j,deleteConfirmationIndex:Y,updateDeleteConfirmationIndex:H,mode:d,isZeniTenant:_,classList:w,managersList:u,controllersList:C,customerRoleOptions:E,isBankingOnlyTenant:y,isCardsOnlyTenant:v,isEdit:!0,person:e.person,analytics:B})})})]}),s.jsx(be,{formId:`${G}_form`,"data-testid":z("edit-people-page-footer"),primaryBtn:{label:a.invitePage.update,style:{width:O.buttonWidth.value(R)},isLoading:e.updatePersonState.fetchState==="In-Progress",isDisabled:e.updatePersonState.fetchState==="In-Progress"},showCancel:!0,cancelBtn:{label:a.invitePage.cancel,style:{width:O.buttonWidth.value(R)},shouldResetOnCancel:!1,onClick:k},separatorStyle:{marginRight:r.sp4}})]})},J=(e,u,w,C,d,_,k)=>{const P=w.map(m=>({label:m.fullyQualifiedAccountingClassName??"",value:m.classId,hoverText:m.accountingClassNumber}));return{[j]:[{userIndex:0,email:e[0].email,role:C==="zeni_only"?{allOptions:Oe.roles,selectedOptions:e[0]?.role}:void 0,nonZeniRole:C!=="zeni_only"?{userRole:{selectedRole:Re(e[0]?.role),allRootRole:we(_,k)},productsByUserRole:je(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)}}]}},ss=(e,u)=>`${e}.${u}`,_e=n.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
5
|
+
padding-left: ${e=>`${O.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
6
|
+
padding-right: ${e=>`${O.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
7
|
+
overflow-x: hidden;
|
|
8
|
+
height: 100%;
|
|
9
|
+
padding-top: ${e=>`${O.containerPaddingTop.valuePx(e.windowSize)}`};
|
|
10
|
+
gap: ${r.sp2};
|
|
11
|
+
`,Se=n.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=n.div``,Le=n(Pe)`
|
|
19
|
+
color: ${e=>e.theme.colors.primary};
|
|
20
|
+
`,Ue=n.div`
|
|
21
|
+
display: flex;
|
|
22
|
+
gap: ${r.sp2};
|
|
23
|
+
align-items: center;
|
|
24
|
+
margin: ${r.sp0} ${r.sp1};
|
|
25
|
+
`,ze=n.div`
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: -26px;
|
|
28
|
+
`,Be=n.img`
|
|
29
|
+
height: 60px;
|
|
30
|
+
width: 60px;
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
color: ${e=>e.theme.colors.hero};
|
|
33
|
+
`,De=n.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
|
+
`,Ne=n(Ie)`
|
|
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
|
+
`,Ze=n.div`
|
|
51
|
+
width: ${r.sp3};
|
|
52
|
+
height: ${r.sp3};
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
position: relative;
|
|
55
|
+
`;export{es as default,ss as uniqueName};
|