@zeniai/web-cockpit-ui 1.14.17-qa → 1.14.18-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-DDccOBrQ-xtRCcN-J.js +21 -0
- package/dist/assets/{AIPerformancePage-4oC8MJWN-3x4rvqkH.js → AIPerformancePage-u3qF__mF-Cwmno93h.js} +42 -42
- package/dist/assets/{AccountInfoPage-mOPytffA-BHPN2sFX.js → AccountInfoPage-vDWC6AMf-DzR0-3Io.js} +2 -2
- package/dist/assets/{AccountInfoPageContent-VULusDEd-Bbj6r5XK.js → AccountInfoPageContent-0PqU7bCV-D6wFAbY2.js} +13 -13
- package/dist/assets/{AccountReconDetailsDrawerPage-89APlrhb-OpGiG4Fe.js → AccountReconDetailsDrawerPage-DEqtU-rh-Deoo-ctA.js} +19 -19
- package/dist/assets/{AccountRow-DJd-IAIl-C8ES_stT.js → AccountRow-DTQ6Qoyr-_b2APADd.js} +25 -25
- package/dist/assets/{AccountsPromoCardStack-DE39TpIu-D-Yop5mF.js → AccountsPromoCardStack-DkYqKp1i-mDnDl8sy.js} +33 -33
- package/dist/assets/{AddAddressForCardDrawer-CKdcU_pi-CwaicPlo.js → AddAddressForCardDrawer-DB3HtvgV-DDm-Yx81.js} +2 -2
- package/dist/assets/{AddToWalletPage-DPXW2fbY-CtMlIrQx.js → AddToWalletPage-DvgM0-kj-TsEzz5fI.js} +22 -22
- package/dist/assets/{AgingReportsPage--CLUwcIa-BsmrKMJu.js → AgingReportsPage-BP6-oG6W-DRhLxK4p.js} +16 -16
- package/dist/assets/{AllUserItems-CC9l-O5G-B5y_zhUe.js → AllUserItems-w6M8k5yU-DRpE6VjZ.js} +9 -9
- package/dist/assets/ApAgingDetailPage-BZuNGMx_-DRH7p0_b.js +46 -0
- package/dist/assets/{AppBasePage-CgHKYFmd-DpxCZRxE.js → AppBasePage-l_TUUps8-K0ozDeR0.js} +10 -10
- package/dist/assets/{AppDrawerContent-Cofo0-5p-Bon4ebWD.js → AppDrawerContent-_gInVeZf-CqHabOEw.js} +19 -19
- package/dist/assets/{ApprovalRulesSettingsPage-DsshEbzW-bVy7ndBX.js → ApprovalRulesSettingsPage-CKRde9he-CmSQRugq.js} +7 -7
- package/dist/assets/{ArAgingChart-K2LSe8mo-8wVTOMUv.js → ArAgingChart-Dg0oBo5K-CF9AvFJC.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DCFL9YAy-C_v7XA9q.js → ArAgingDetailPage-CNizMSbt-CgouefYI.js} +4 -4
- package/dist/assets/{AttachmentView-Cn3VnVyO-2AecVG_r.js → AttachmentView-B8hloBca-DRZOHo7x.js} +7 -7
- package/dist/assets/{BankAccountSection-Au9_D0Ji-CWUpdxVP.js → BankAccountSection-4HNC0ypd-BpuQrkpU.js} +8 -8
- package/dist/assets/{BankAccountWarningSection-927iR_QB-DZ1ZjG-a.js → BankAccountWarningSection-BqgTMjDy-DwldrkYy.js} +7 -7
- package/dist/assets/{BankConnectionsSettingsPage-CXab8fzD-DrAzYcY3.js → BankConnectionsSettingsPage-BBQh1oT8-CYERxE0e.js} +26 -26
- package/dist/assets/{BillDetailPage-yIdrE7YG-MPJpbHEH.js → BillDetailPage-R4oRrdsm-Bhl-v3vo.js} +20 -20
- package/dist/assets/{BillPayApprovalRuleDetailPage-BJl_-eJN-DfaKZiCw.js → BillPayApprovalRuleDetailPage-d_A1-Gv_-D0vt2nJT.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-rXaFCSLp-B4hJZE4K.js → BillPayApprovalRulesPage-5q5b2drs-DNrIHclU.js} +8 -8
- package/dist/assets/{BillPayPromoPage-BLi_wIbj-CSiPqqF2.js → BillPayPromoPage-Dz_R3Vd_-D4VHTD7W.js} +10 -10
- package/dist/assets/{BillPaySetUpPage-BFmpWT_x-BdnlBxHY.js → BillPaySetUpPage-CwTRrElO-Dy2xJbwX.js} +2 -2
- package/dist/assets/{BillingSettingsPage-Da01aYql-CO5KbCIq.js → BillingSettingsPage-_XJCl2yq-D0rAMBJt.js} +5 -5
- package/dist/assets/{BillsBulkReviewDrawerPage-J2kO9_8C-DvF5RYPT.js → BillsBulkReviewDrawerPage-B_S35aKX-pMNSaHSP.js} +1 -1
- package/dist/assets/{BoxItem-CQlEDklH-CpOQze_E.js → BoxItem-9JmA6QqI-D4hhkbCR.js} +4 -4
- package/dist/assets/{BusinessVerificationPage-DWhXCuG5-CLLfRzHs.js → BusinessVerificationPage-DJKOIC1M-BEeGVZ1S.js} +11 -11
- package/dist/assets/{CardNumberSubText-BTjxrF3b-Dd1chwrY.js → CardNumberSubText-CewmMWju-DJiRPNiZ.js} +1 -1
- package/dist/assets/{CashbackDetailPage-qcMtGUQ0-CNgA1vkF.js → CashbackDetailPage-HtjAmPa8-DEVbhkAr.js} +26 -26
- package/dist/assets/{ChargeCardDetailPage-BurpUHl9-CHOF0hOK.js → ChargeCardDetailPage-D_5vb_92-DYjdXqRv.js} +27 -27
- package/dist/assets/{ChargeCardListPage-CBIYOllB-C5IIqKJ8.js → ChargeCardListPage-BT-8bueF-C8QRxzgr.js} +23 -23
- package/dist/assets/{ChargeCardListTable-BTZu7ldI-HV9pRu0d.js → ChargeCardListTable-oJTQcOkc-HAou4pja.js} +104 -104
- package/dist/assets/ChargeCardPromoPage-Dp01F4cn-Br2kcjZo.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-QOdjFcsr-DPZS2Ku4.js → ChargeCardSetupPage-cqydgFPZ-KP5FKJ0i.js} +2 -2
- package/dist/assets/{ChargeCardStatementsPage-C1UmjyIW-D6OuW8Qw.js → ChargeCardStatementsPage-URwhXATj-BVz6_ztr.js} +8 -8
- package/dist/assets/{ChargeCardUtils-C3fhOMpV-Bs2JPnXP.js → ChargeCardUtils-DBEgXAMc-DYsQMmpv.js} +1 -1
- package/dist/assets/{ChaseOverlay-RPex2o5e-DW09zrbw.js → ChaseOverlay-HTpWDuLt-D0qtM7hD.js} +10 -10
- package/dist/assets/CheckDepositDrawerPage-DLc3qfVH-Dq_DIMy3.js +206 -0
- package/dist/assets/{CollapsableReportTable-Ds0h8x1N-Cp0fRlE2.js → CollapsableReportTable-PpQgBBRC-BpxIl-X-.js} +93 -93
- package/dist/assets/{CompanyOfficerDetailsSection-B8yGAFVj-DKWPUUTw.js → CompanyOfficerDetailsSection-C1aPsDga-DX0GYxxu.js} +35 -35
- package/dist/assets/{CompanyPassportCard-BDei9Pfp-D0uwhtPQ.js → CompanyPassportCard-DMKqBgwh-20YLIkOw.js} +6 -6
- package/dist/assets/{CompanyPassportPage-DFA733vS-BIvmx8nC.js → CompanyPassportPage-CHHPIqN_-CQsnT2Hp.js} +37 -37
- package/dist/assets/CompleteProfile-D6jHfaC2-Cwowcy8N.js +36 -0
- package/dist/assets/{ConfettiBurst-97CCPVCH-DogXPRqs.js → ConfettiBurst-14a5kaEE-D-oFz-sG.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BSi6pOXN-60R3TaVL.js → CreateOrEditVendorPage-K5rhe_y3-6e_B7drg.js} +11 -11
- package/dist/assets/{CreditCardPaymentDrawerPage-ZletyeGG-ChI8BG09.js → CreditCardPaymentDrawerPage-LQ--HUI9-Ct-Z_PH4.js} +20 -20
- package/dist/assets/{CreditCardPaymentPlgSection-BE982atG-ChH0EM9O.js → CreditCardPaymentPlgSection-BM05WC-i-Bk08bY1j.js} +12 -12
- package/dist/assets/{CurrencySelectField-cnP09xH2-CzK_uHkh.js → CurrencySelectField-bhkJTNUW-TAA9r3NA.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-DhcKiTJ_-BwUbkzAO.js → CustomerOnboardingActivationPage-BHD1irjF-BuHM5vzQ.js} +9 -9
- package/dist/assets/CustomerOnboardingContainerPage-BhS5NmVt-CloO5_fX.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-jguCmaVx-df6TlzkN.js → CustomerOnboardingDetailPageSkeleton-B--kAA3i-BtWP8-CX.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-xakP7IDr-C-0r2BD6.js → CustomerOnboardingNoStepsPage-sHKAos8m-1qMzs8BU.js} +5 -5
- package/dist/assets/{CustomerOnboardingPage-Ct5YbyHs-CAyxa338.js → CustomerOnboardingPage-B_S5G-6o-Cv0ITZ4_.js} +10 -10
- package/dist/assets/{CustomerOnboardingProductSuitePage-CugfvMkw-CslbljsJ.js → CustomerOnboardingProductSuitePage-CVi8WuQY-DZMQtVHo.js} +12 -12
- package/dist/assets/{Dashboard-XbVGCnvI-_hcViTk2.js → Dashboard-CIMiF6eU-SPzOaUuR.js} +1 -1
- package/dist/assets/{DashboardReportPage-OeEPg2kx-C3vOR__5.js → DashboardReportPage-6z6qBQSB-C79wD_Nr.js} +21 -21
- package/dist/assets/{DepositAccTransactionItem-Dy6qzuSL-CpAkao08.js → DepositAccTransactionItem-BQYFrzDW-VNbpp2iU.js} +10 -10
- package/dist/assets/DepositAccTransactionListPage-xSNsUwS4-DJcgYerm.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-B0tbjNLO-CzO-wZCX.js → DomesticWireDetailsPage-b1iB1HBM-CrTulX9A.js} +1 -1
- package/dist/assets/{DownloadOverlay-BKKO1nm1-C2Pb_CvM.js → DownloadOverlay-C3oy6eq7-CCVozCSE.js} +12 -12
- package/dist/assets/{DrawerPage-osM8gPVn-DjFhvXE_.js → DrawerPage-DLVTld-y-Cb3VyNgX.js} +12 -12
- package/dist/assets/EditPeoplePage-DKJNf1oJ-6CdgkITi.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-DvLeCixY-DsVIw_1c.js → EditReimbursementDetailPage-zgUt303N-BpiV7KXr.js} +80 -80
- package/dist/assets/{EntityDetailPage-BzJbAOSj--n76aj0W.js → EntityDetailPage-DY4i6GZK-DN-UWde9.js} +3 -3
- package/dist/assets/{EntitySummarySection-Drj07P9h-B2lq71iV.js → EntitySummarySection-BbxeYdm8-Bf_NXajy.js} +13 -13
- package/dist/assets/{ExpenseAutomationOverviewPage-BQ9dwGkq-CJ6yhltW.js → ExpenseAutomationOverviewPage-D3x3XpmU-fjM7OZCO.js} +31 -30
- package/dist/assets/{ExpenseAutomationPage-DLld6Lux-0w2CvM4U.js → ExpenseAutomationPage-BTAjM6yZ-yDXqzAOJ.js} +56 -56
- package/dist/assets/{ExpressPayPage-QBNV0dC8-ZmY9Sslu.js → ExpressPayPage-C30-lVTo-C8uKTmQz.js} +11 -11
- package/dist/assets/FeaturePreviewPage-BRqSxk9H-D2VfZkvq.js +11 -0
- package/dist/assets/{FollowStepsSection-1RCO2W7K-8GLsxGi6.js → FollowStepsSection-B171fPtM-D2ueI9DZ.js} +28 -28
- package/dist/assets/{GlobalReviewListPage-ByMZFe7Y-DU4g2-mq.js → GlobalReviewListPage-BaZx32sB-CsLBtCph.js} +14 -14
- package/dist/assets/HelpButton-ewiNuwlj-a7BLQVoR.js +28 -0
- package/dist/assets/{InformationCardStack-C0AmMOu2-CsXKnz33.js → InformationCardStack-BtxneVKK-CvEQzEwX.js} +6 -6
- package/dist/assets/{InsightsCardStack-BiIDBYY8-BDWjMJ74.js → InsightsCardStack-CCee6pLA-D-hqWx-q.js} +7 -7
- package/dist/assets/InsightsSection-BZNwdoG4-BHWxrsk5.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-7wAnV8kG-a8zGkb-o.js → IntegrationsSettingsPage-CsY38-LI-tUcaBNIE.js} +9 -9
- package/dist/assets/{InternationalWireSwiftDetailsPage-C7D15jtK-CNlL_DBa.js → InternationalWireSwiftDetailsPage-sSSgjYdh-CECQrN0I.js} +17 -17
- package/dist/assets/{InternationalWireVerificationPage-GDKPXtU--DouJAx7L.js → InternationalWireVerificationPage-zv0FIhUz-BUPdBF6w.js} +14 -14
- package/dist/assets/{InviteFormPage-CKGJHYWa-ThYyvIC6.js → InviteFormPage-DxszbbOJ-CJWqS0tA.js} +19 -19
- package/dist/assets/{InvitePageListView-CWXyDZU2-B1FV1J7C.js → InvitePageListView-BYVWTwTc-Dq61wzB9.js} +46 -46
- package/dist/assets/InvitePeoplePage-CJ4KyyxI-Ci7vEwdq.js +12 -0
- package/dist/assets/InvoiceUploadSection-Dy_H9a8Y-CvpINn7W.js +140 -0
- package/dist/assets/{IssueChargeCardPage-DLX44XaR-DJEU4BAz.js → IssueChargeCardPage-CPmj_trJ-CTV2OfvE.js} +19 -19
- package/dist/assets/LabeledAddressValue-BVpwGdA2-5vfMRzOg.js +49 -0
- package/dist/assets/LabeledAddressValueField-Eka4fXzu-BSJMd52k.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-B6cLYSmS-HQU25j6e.js → LabeledControlledCheckBoxField-BnfJ3gKr-7p5KdXvW.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CV4GQQ7F-DB0whr2c.js → LabeledCreatableSingleSelectField-CJT-CuQl-C0rlBcX2.js} +4 -4
- package/dist/assets/{LabeledDocumentField-BFhyNqP8-BF1FtSO9.js → LabeledDocumentField-BoraKtTI-BRERXK8W.js} +6 -6
- package/dist/assets/{LabeledDropDownFormattedTextField-gE3aWP_T-D1puR-he.js → LabeledDropDownFormattedTextField-elNvxcOB-BPm7rTz8.js} +7 -7
- package/dist/assets/{LabeledText-0pRIcJw5-DnreSqVg.js → LabeledText-DhZgeQqu-Dz4gRnMS.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-C-32ySGI-Ckf3XRJ6.js → LabeledUserSingleSelectWithSubtitlesField-D63Z4SE5-Hunv1W3n.js} +16 -16
- package/dist/assets/{LabeledZeniRolesDropDownField--l6D29VX-2y_t8N2x.js → LabeledZeniRolesDropDownField-MwrQ9tKT-DwAqMpNU.js} +11 -11
- package/dist/assets/{LinkJETransactionPage-DLcpx9ns-B4OQKP_z.js → LinkJETransactionPage-BpQXs8JH-CczVuOJd.js} +6 -6
- package/dist/assets/{LowBalancePopup-BuelKDeS-DmsngLwA.js → LowBalancePopup-DPbr0gUO-BMtDcyj7.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-NIkquHvv-DhLEEbR7.js → MagicLinkACHDetailsPage-D11FRh9u-CA4ESgf_.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CdaNz396-CGsvsJCT.js → MagicLinkDomesticWireDetailsPage-CG7yqz6X-CxkGJZaJ.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-CnEhS5PP-BfdXlGYo.js → MagicLinkInternationalWireDetailsPage-PkDENzkO-BALvlHZZ.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-D_VJZV0O-DKgCh3Z1.js → MagicLinkSuccessPage-BS9ddhQA-DfzVlezu.js} +2 -2
- package/dist/assets/MagicLinkTitleSection-CBYkZ8RD-DOnIUCAU.js +17 -0
- package/dist/assets/{MailingDetailsSection-CTrx1xoB-DJHX02qB.js → MailingDetailsSection-Cx1s77og-DXexyF-i.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-DWvpTRQJ-B65gs1hH.js → MeetingCalenderPopup-DNthMj1J-DCVu9x9-.js} +1 -1
- package/dist/assets/{Menu-CbQ6Zkdp-D6lRjeT8.js → Menu-CIjXHu3p-BVUzW_3W.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-9dQLb8iw-h322l6cg.js → MyBankConnectionsSettingsPage-D77Axpyj-Dsr9teql.js} +15 -15
- package/dist/assets/{MyPendingActivationChargeCardListPage-B2-YthuF-CH0O9Vq4.js → MyPendingActivationChargeCardListPage-CnZZJsMY-KyflajTT.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-CfmYPv4_-m8ou3iA-.js → MyProfileSettingsPage-iXkYV9nQ-C8PmA-Fq.js} +6 -6
- package/dist/assets/NavBarWithPicker-D8Mx-0SS-CQTf4kGi.js +30 -0
- package/dist/assets/{NavigationArrow-9pvhzLz8-Cjtb_5vy.js → NavigationArrow-DOvptaEZ-B1BrtWg6.js} +2 -2
- package/dist/assets/{NavigationDots-CXPwKFh1-D0BlOlke.js → NavigationDots-HukimDRY-BSdcE3Mo.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-D6ZpP6J1-BvWRpxN8.js → NewGlobalMerchantPage-BlOMnHda-Cw8vvr0B.js} +12 -12
- package/dist/assets/{NoDataChart-BUR7CF8w-D1wb8NU8.js → NoDataChart-DyGfwFNo-Bpe0xKgS.js} +1 -1
- package/dist/assets/{NoDataTable-3L4pbKR0-DADiNiUz.js → NoDataTable-CJseWuln-x_ccMVrT.js} +1 -1
- package/dist/assets/{NotFoundPage-CgZfmKbj-zfL-Bldu.js → NotFoundPage-UG00-OBF-BoQnjyIO.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BwYT3Tdc-NOzItap9.js → NotificationSettingsPage-COyRIY7z-B69eM29f.js} +17 -17
- package/dist/assets/NotificationsListConfig-BR7QDiGp-CoZ9cxNa.js +1 -0
- package/dist/assets/{NotificationsPage-6qNQYQK4-BVdwZRiv.js → NotificationsPage-DNSiZHw_-DhSCbYyU.js} +38 -38
- package/dist/assets/{OpExByVendorPage-C28MBvmW-DRKZbvH2.js → OpExByVendorPage-DmSYppgo-B8QxoNs0.js} +7 -7
- package/dist/assets/{OverlayContainerPage-9K5jaX8Z-Co7rIc3P.js → OverlayContainerPage-DB42kFLd-BB8Mm-uG.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-onJJ3Fh4-VHgA6a_C.js → PandLWithForecastPage-Cvpj3Rx7-BBqZBlne.js} +12 -12
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-nGuJ5fbq-Bl9Hzudf.js → PaymentAccountSetupBillingAddressSection-CsldB-k7-VgWcdB9R.js} +9 -9
- package/dist/assets/{PeoplePage-CKzezKqB-C-ecacKb.js → PeoplePage-CZhJF86l-BUJerLay.js} +33 -33
- package/dist/assets/PortfolioAllocationFormPage-9GM9dOrM-B8ssUltJ.js +207 -0
- package/dist/assets/{PortfolioDetails-CIv1yXo2-Cn8bwh7v.js → PortfolioDetails-BmAHjCVw-CsG6lf5x.js} +42 -42
- package/dist/assets/{ProductsCarousel-CSUQ6rVw-Bd7wsnlW.js → ProductsCarousel-DnbMUIHf-CibvwP8L.js} +7 -7
- package/dist/assets/{PromoBaseCards-2L1JfY-v-2Z0dVig4.js → PromoBaseCards-BC5rOok_-CbjLwgXv.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DNP_b7aK-Bxywaa9r.js → QBOConnectionDialog-Ci5zNza5-6_E7GkKa.js} +4 -4
- package/dist/assets/{QBOSetupSection-CGrGCC2j-ZviOH5QS.js → QBOSetupSection-BTOCiyES-BQ9iHLEQ.js} +12 -12
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DqxyCfuQ-TKf1S-sK.js → ReimbursementApprovalRuleDetailPage-BfU-6jeB-4BEDb2U8.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-D_RMSSoW-Bf_KsPWO.js → ReimbursementApprovalRulesPage-M8JZSUOE-C8eBggiH.js} +32 -32
- package/dist/assets/{ReimbursementDetailPage-BkT7zJoE-DxIxRel2.js → ReimbursementDetailPage-D54RyrP4-DTi4hKLb.js} +23 -23
- package/dist/assets/ReimbursementPromoPage-B2uVT4md-CMAH_EoV.js +112 -0
- package/dist/assets/{ReimbursementSetUpPage-lH4Z7Lqi-BjSmn0a4.js → ReimbursementSetUpPage-DgZLqhEv-7jHyoRwK.js} +13 -13
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Bvh4mRws-H31l-TPn.js → ReimbursementsBulkReviewDrawerPage-DdaqWcd4-DhSMDa4E.js} +1 -1
- package/dist/assets/{ReloadCard-BQKVLlzZ-kVLw1q8k.js → ReloadCard-Brl4XdzV-avg2x7k6.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-Cvk4LxRf-EyWXn90g.js → ReportTableViewSelector-BUwsckE_-Cr50tsiY.js} +9 -9
- package/dist/assets/{ReportsPage-C2cIfu51-5H5N0irE.js → ReportsPage-B_p1fu0v-DX66zZ_7.js} +4 -4
- package/dist/assets/{RevenueChart-ByCekdyG-CbrdKEhj.js → RevenueChart-Wm8uOprY-DjqKlnHO.js} +17 -17
- package/dist/assets/{ReviewDetailsPage-DGyfz9q5-JDs12zdM.js → ReviewDetailsPage-KBHsF8bJ-BZe7KZL0.js} +26 -26
- package/dist/assets/{ReviewOverlay-Dp5yLAdR-D5ldovaw.js → ReviewOverlay-Dw0qj7TA-qOb8xPV_.js} +21 -21
- package/dist/assets/{RoleWithToolTip-B7xRZ-3a-C1CQ4C1p.js → RoleWithToolTip-XfK92pcD-DtUyDW-U.js} +4 -4
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BvJX-G-F-DjgDOThV.js → ScheduleDetailsFixedAssetsPage-BWlIEli5-C8Xnu1wF.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CNpkuW7O-8EQwuxLj.js → ScheduleDetailsPage-C1xCJX3o-Cpr_7FVH.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-B_90qPjE-D3mQ-hUZ.js → ScheduleSequenceTable-BprYPV37-CbJbmsNz.js} +48 -48
- package/dist/assets/{ScreenRoutes-Df1GkgZA.js → ScreenRoutes--7yT1DKW.js} +62 -62
- package/dist/assets/{SetUpAccountSection-D5x8PZG1-BA29puUF.js → SetUpAccountSection-Dr1TfnG_-Cel5DtZp.js} +24 -24
- package/dist/assets/{SetUpDefaultSection-BsOdnADR-fIw9FyAe.js → SetUpDefaultSection-Be5NU_Em-BdXA12e3.js} +9 -9
- package/dist/assets/{SignIn-Bt7hCYjV-CwfH0JLW.js → SignIn-CE6RYJOs-ty2bYK-D.js} +20 -20
- package/dist/assets/{SignInScreen-CWUZN0CQ.js → SignInScreen-B_Dlksbi.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-C5cJKuRq-C1_jwmdt.js → SpendManagementListViewPage-BESddx6p-DEy09jpS.js} +11 -11
- package/dist/assets/{SpendManagementPerTabPage-IBAw8wc4-Bn0g9_Tf.js → SpendManagementPerTabPage-BzOooEMS-CS5nadJ3.js} +56 -56
- package/dist/assets/{SpendManagementSection-yNP3swb6-BIaTdSBC.js → SpendManagementSection-CczioNZH-D_OdnYKx.js} +12 -12
- package/dist/assets/{SpendMgmtSetupAccountSection-CYxt9dN8-BxpldXSf.js → SpendMgmtSetupAccountSection-CVFRXVhZ-KbAbVozh.js} +22 -22
- package/dist/assets/{StatementItem-q9U89Htr-DJqALh3W.js → StatementItem-Cptht91w-CXR-Xt2m.js} +8 -8
- package/dist/assets/StatementsPage-Bk_DWBsO-D9kCpcdC.js +58 -0
- package/dist/assets/{StatusSwitcher-CtuL5COG-Bd0whTb6.js → StatusSwitcher-B3gZD4Xk-Bh4cnysY.js} +4 -4
- package/dist/assets/{SubTabSwitcher-DHiC-mOv-B69z0IV-.js → SubTabSwitcher-ymwMdmPQ-Bui2S7lB.js} +3 -3
- package/dist/assets/{SummaryCard-D4Me-qWU-Cw61JFxF.js → SummaryCard-CVO_hW5i-BNIAsEAp.js} +1 -1
- package/dist/assets/{TaskManagementPage-D-F7ufTD-E-k_0ZqR.js → TaskManagementPage-C8FiHas2-CSgpx3sK.js} +38 -38
- package/dist/assets/{TimeRangeSwitcher-CGN9Hq2L-DPvzjSG7.js → TimeRangeSwitcher-CPklgWMn-CIOi92rx.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-BN4-ACoQ-DRoCnrrw.js → TimeframeSwitcher-Do-13K0C-DY9TYA6Y.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-BkzCFclG-CATb3Hw3.js → TimeframeSwitcherWithToggle-CtVJiYRA-BFfeCNSf.js} +2 -2
- package/dist/assets/{TopExCard-Wuzj4gLV-C7hKo1xh.js → TopExCard-CAbVMarX-DzMoRGlM.js} +5 -5
- package/dist/assets/{TopExDetailPage-DMYNc-gj-BOIId_ra.js → TopExDetailPage-CN49s925-BpBrFgHR.js} +10 -10
- package/dist/assets/{TransactionDetailPage-CcryBjJ4-BBoQstAc.js → TransactionDetailPage-Q9XC1VgP-B1t0fuZa.js} +35 -35
- package/dist/assets/{TransactionList-BrOpzi25-BpXcE9sq.js → TransactionList-Pn-voMDJ-cxv4xlA8.js} +12 -12
- package/dist/assets/{TransactionListBig-D6QMNaV6-dxXwqgSe.js → TransactionListBig-D4U1VfMP-q6KLDBuW.js} +25 -25
- package/dist/assets/{TransactionListPage-BB_LkPKR-D44T4dDk.js → TransactionListPage-Dcr5n_hs-BCiA3wu6.js} +4 -4
- package/dist/assets/TransactionVendorDetailPage-DxDXndQ6-Cuilftgh.js +80 -0
- package/dist/assets/TransferDrawerPage-CuQct69A-B079B2IU.js +362 -0
- package/dist/assets/{TreasuryOverviewPage-EDaXKMNQ-D8fnAwU_.js → TreasuryOverviewPage-BDYqKBrS-CScokRvu.js} +56 -56
- package/dist/assets/{TreasuryPromoPage-Brja4nGR-4ejoYZft.js → TreasuryPromoPage-CTkEFZ57-BEp9DAWk.js} +22 -23
- package/dist/assets/{TreasurySetupPage-8ZXXBvyU-CSrGG7JX.js → TreasurySetupPage-KI_5DQnD-D9S_zLnk.js} +3 -3
- package/dist/assets/{TreasuryStatementsPage-BjT1FVfa-CDFhhK60.js → TreasuryStatementsPage-DB1KkguP-BSv5nFQ9.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-Cxk8TjrI-BYzTKoII.js → TreasuryTaxLetterPage-DbHBl6-e-B10fxK69.js} +5 -5
- package/dist/assets/TreasuryTransferOrReviewPage-CLJ2x2M1-Q00AAxLj.js +506 -0
- package/dist/assets/{TrendChart-D2B0mwGW-CDLMKcy5.js → TrendChart-Ck4SVLtn-DxCRoE-5.js} +5 -5
- package/dist/assets/{TrendWithTransactions-Ch8smOOz-dEqRqTOG.js → TrendWithTransactions-BiWHzfIf-CM8I_QYq.js} +6 -6
- package/dist/assets/{UncategorizedAccountsMappingPage-CCIn9g7v-q0ijIBJ8.js → UncategorizedAccountsMappingPage-BEbiQMPB-P5OqOc0G.js} +8 -8
- package/dist/assets/{UnitIntegrationPage-SY0L_D7Z-CKGuE_M5.js → UnitIntegrationPage-DghvgER8-G5psF27e.js} +5 -5
- package/dist/assets/{UploadAdditionalDocumentOverlay-BowxerPw-BznAQGh0.js → UploadAdditionalDocumentOverlay-BasudeQ3-BthiTAoM.js} +2 -2
- package/dist/assets/Vendor2FAPopup-BVYQk2Yt-C9WsXmh_.js +1 -0
- package/dist/assets/{VendorACHDetailsPage-Ba1oMHkp-YzZn8D1q.js → VendorACHDetailsPage-DYwQERlH-B1gQMIfP.js} +1 -1
- package/dist/assets/{VendorDetailPage-CjBeVAkw-D_BTgh0F.js → VendorDetailPage-D-Mcnqod-jIU9WO5F.js} +13 -13
- package/dist/assets/{VendorDomesticWireDetailsPage-DJcyNUun-XfBIF9jc.js → VendorDomesticWireDetailsPage-sx958z_p-CRI6ZI2U.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CUWkLY0f-CuezbVxz.js → VendorFiling1099EditablePage-D0AAdqa3-D6a_Y5gP.js} +11 -11
- package/dist/assets/{VendorFirstReviewPage-XUgEai-M-D0i_iEBg.js → VendorFirstReviewPage-DS7Qb6O_-DE9J3Hnv.js} +30 -30
- package/dist/assets/{VendorInternationalWireDetailsPage-BgHCBv0S-D_ke2Imn.js → VendorInternationalWireDetailsPage-CUw0lbm5-B48sIzNH.js} +13 -13
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-axseacZL-DrQ20j5u.js → VendorInternationalWireSwiftDetailsPage-2BGGr3aV-bgtv6P0O.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-oYghWvs6-CBTS5C2m.js → VendorsAccountsSection-D5-r6xWp-BXiiVWTo.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-B1his2AN-DWCRBrQ3.js → WarningsDrawerPage-BEuiclea-2arBaAmM.js} +9 -9
- package/dist/assets/{ZeniAccountDetailPage-B21kawRR-DGJGfsGD.js → ZeniAccountDetailPage-DvUTbTBC-BePzTP3_.js} +31 -31
- package/dist/assets/{ZeniAccountListViewPage-D9lefqbT-aMx9U6Vt.js → ZeniAccountListViewPage-BpAa6XZc-xCgx2LuK.js} +22 -22
- package/dist/assets/ZeniAccountNavBarPieces-CBRZuAIU-D4DE3sLv.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-B8aWqCOQ-C46UIAAl.js → ZeniAccountPromoPage-BDzkOGum-ucUtzXa7.js} +22 -22
- package/dist/assets/{ZeniAccountSetupPage-BmFF5yvk-ncauPk_L.js → ZeniAccountSetupPage-B6ExD1mo-DRJ8Xy53.js} +1 -1
- package/dist/assets/{ZeniCopyright-eQoaUH08-BAcaltmK.js → ZeniCopyright-BcpJPWHG-DnS0u_xy.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-B6ftMZ_m-CBjZaRui.js → ZeniTransferAmountSlider-BQDqgNKJ-Buxspfp3.js} +2 -2
- package/dist/assets/{analyticsHelper-Bns4muDg-CNix0JAa.js → analyticsHelper-BP6myd2z-CsiFRwZa.js} +1 -1
- package/dist/assets/{analyticsHelper-DIkeHXkP.js → analyticsHelper-CL3ebWyT.js} +1 -1
- package/dist/assets/{chartTypes-ZJYcsh-k-QASYidAg.js → chartTypes-BU-pRq_m-4W1rDqui.js} +1 -1
- package/dist/assets/{commonDimensions-NUQEpowf-IZPez2Zj.js → commonDimensions-BpaqG_u8-Hm0X7sCE.js} +1 -1
- package/dist/assets/{detailCommon-DMKakaa6-Bgcgnt6c.js → detailCommon-dG26UIR2-hMVwnMUq.js} +6 -6
- package/dist/assets/{downloadPdf-CNrmv_yZ-CxSqkh2v.js → downloadPdf-B5Tb5dp_-Ct6A3VYi.js} +1 -1
- package/dist/assets/{index-D3AeqRGt.js → index-C5chxI3W.js} +4203 -4371
- package/dist/assets/{mapLoadingInProgressToTreeNode-CwLhcXcQ-DE5uV0w5.js → mapLoadingInProgressToTreeNode-DOBKyY4b-Cji_pzGZ.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-D8iLkGEE-DaBUvlwh.js → mapSectionWithAcOnlyToTreeNode-Bja0zC1h-BgIeww8r.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CF_gEYDy-omwVP5Kf.js → mapSpacerToTreeNode-BnX1Qa3P-BdNPRcx1.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Dp2QmYvb-FnBEwh3Z.js → mapTimeframeBalancesToTreeNode-BTMBlZfj-BF58Lu6L.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-B672MK55-1iS28pBs.js → mapTimeframeBalancesToTreeNode-DRU0rg28-CA6THCw5.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BaEMd-vj-y-nXGJ6b.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CafUd-oV-Xm435fDX.js} +1 -1
- package/dist/assets/{play-icon-CgWP2Myd-CjzXITiB.js → play-icon-CwzVvYsB-Do7CqLGc.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DJNZCEmi-D9lE8sxN.js → toCOABalancesWithID-CTIZoP69-DeVrMVx4.js} +1 -1
- package/dist/assets/{toChartData-HYsxUPzh-CN6TOhlP.js → toChartData-yWFIkpKX-RS3uH3U9.js} +1 -1
- package/dist/assets/{treasuryColorHelper-BgV2H9Kv-BBaiHC7Z.js → treasuryColorHelper-I90KNlm_-BYEIYIdA.js} +1 -1
- package/dist/assets/{uploadAttachment-BgjFjkkw-CHJQ_-jA.js → uploadAttachment-BIyTb3QF-DLfW32Gd.js} +35 -35
- package/dist/assets/{uploadReceipts-CwjPukNh-CnV2uz7X.js → uploadReceipts-CB79ouJi-D3aL_mpJ.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-BwrF_fEr-Bl6tw_2_.js +0 -21
- package/dist/assets/ApAgingDetailPage-CsQ3DujX-DlJxm9wv.js +0 -46
- package/dist/assets/ChargeCardPromoPage-us_v89rV-BWpqYDUH.js +0 -222
- package/dist/assets/CheckDepositDrawerPage-XZJ1F0aC-DZabwxX9.js +0 -206
- package/dist/assets/CompleteProfile-BpX6H4vJ-CZDJQ04r.js +0 -52
- package/dist/assets/CustomerOnboardingContainerPage-C1higvpq-tWYvfVXz.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-BisaE6sH-CNi5QHjT.js +0 -66
- package/dist/assets/EditPeoplePage-ixJkT03_-BL4teQzP.js +0 -55
- package/dist/assets/FeaturePreviewPage-CpBX-Xic-CzzPQxyN.js +0 -11
- package/dist/assets/HelpButton-CzTfBZQj-CySfZ02w.js +0 -28
- package/dist/assets/InsightsSection-C-kpIvRH-BPjMKWaa.js +0 -27
- package/dist/assets/InvitePeoplePage-CPBMZNa--CIaNjMb9.js +0 -12
- package/dist/assets/InvoiceUploadSection-C0WzT0uv-BIhpe2Cm.js +0 -140
- package/dist/assets/LabeledAddressValue-B8awEVKI-D-PU1InD.js +0 -49
- package/dist/assets/LabeledAddressValueField-Dl5yKg2N-CEGK2Y9X.js +0 -45
- package/dist/assets/MagicLinkTitleSection-tHh2d5Ld-CTdvPKXv.js +0 -17
- package/dist/assets/NavBarWithPicker-Bzkl4W0x-CfzrLfDY.js +0 -30
- package/dist/assets/NotificationsListConfig-CeeJpJ2p-9azM46PI.js +0 -1
- package/dist/assets/PortfolioAllocationFormPage-28Rg5Um0-DY6maLGs.js +0 -207
- package/dist/assets/ReimbursementPromoPage-DQsLI50f-DvOFKYbI.js +0 -112
- package/dist/assets/StatementsPage-BM5Glizw-KJqDC7mS.js +0 -58
- package/dist/assets/TransactionVendorDetailPage-RajWBB1I-n3kajgLY.js +0 -80
- package/dist/assets/TransferDrawerPage-D-KFK0BM-BSonC9br.js +0 -362
- package/dist/assets/TreasuryTransferOrReviewPage-DrNld8H2-pA_lhDcW.js +0 -506
- package/dist/assets/Vendor2FAPopup-DvWVDx58-BBDrtmPb.js +0 -1
- package/dist/assets/VerifyDevice-XUExnmR9-BVFZuTkv.js +0 -67
- package/dist/assets/ZeniAccountNavBarPieces-5yZFq-zt-CS3RCOOK.js +0 -14
package/dist/assets/{DownloadOverlay-BKKO1nm1-C2Pb_CvM.js → DownloadOverlay-C3oy6eq7-CCVozCSE.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,
|
|
1
|
+
import{j as t,bq as Xe,o as a,X as le,br as et,n as Le,l as d,g as de,C as H,a3 as tt,M as Y,bs as rt,bf as ze,q as z,ao as Be,e as T,bm as we,f as G,m as ce,K as ee,u as Ne,bt as at,bu as me,bv as pe,c as Ee,bw as Qe,p as fe,bx as q,bd as ot,ap as st,by as it,bz as nt,b5 as lt,bA as dt,Z as ct,bB as mt,bC as pt,b1 as ft}from"./index-C5chxI3W.js";import{b as u,n,k as Ve,f as he}from"./vendor-CnQcJ2Lu.js";import{m as ht}from"./analyticsHelper-BP6myd2z-CsiFRwZa.js";import{c as ut,h as bt}from"./ReportTableViewSelector-BUwsckE_-Cr50tsiY.js";import{t as gt}from"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";import"./CollapsableReportTable-PpQgBBRC-BpxIl-X-.js";import"./AccountRow-DTQ6Qoyr-_b2APADd.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},N=(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};
|
|
@@ -61,14 +61,14 @@ import{j as t,bu as Xe,o as a,e as le,bv as et,r as Re,l as d,g as de,C as H,a3
|
|
|
61
61
|
color: ${e=>e.theme.colors.primary};
|
|
62
62
|
padding: ${a.sp2} 27px;
|
|
63
63
|
display: flex;
|
|
64
|
-
`,Ce=n.div``,Se=n(
|
|
64
|
+
`,Ce=n.div``,Se=n(Le)`
|
|
65
65
|
margin-right: 6px;
|
|
66
66
|
`,Pe=n.span`
|
|
67
67
|
font-weight: ${pt.medium};
|
|
68
68
|
`,It=n.div`
|
|
69
69
|
position: relative;
|
|
70
70
|
cursor: pointer;
|
|
71
|
-
`,
|
|
71
|
+
`,Rt=n.div`
|
|
72
72
|
display: flex;
|
|
73
73
|
z-index: 9;
|
|
74
74
|
flex-wrap: wrap;
|
|
@@ -78,7 +78,7 @@ import{j as t,bu as Xe,o as a,e as le,bv as et,r as Re,l as d,g as de,C as H,a3
|
|
|
78
78
|
background: ${e=>e.theme.colors.grey5};
|
|
79
79
|
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
80
80
|
width: 100%;
|
|
81
|
-
`,
|
|
81
|
+
`,Lt=n.div`
|
|
82
82
|
padding: ${a.sp3};
|
|
83
83
|
border-top: none;
|
|
84
84
|
display: flex;
|
|
@@ -91,7 +91,7 @@ import{j as t,bu as Xe,o as a,e as le,bv as et,r 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
|
-
`,Bt=(e,o,r,s)=>{const i=N(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}},Nt=(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}=Bt(e.firstMonthOfFY,e.dataAvailable,s,{startDate:d.zeniDate(m,S.YYYYformat),endDate:d.zeniDate(m,S.YYYYformat)}),_=N(e.firstMonthOfFY,"month",e.dataAvailable),c=Nt(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(
|
|
94
|
+
`,Bt=(e,o,r,s)=>{const i=N(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}},Nt=(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}=Bt(e.firstMonthOfFY,e.dataAvailable,s,{startDate:d.zeniDate(m,S.YYYYformat),endDate:d.zeniDate(m,S.YYYYformat)}),_=N(e.firstMonthOfFY,"month",e.dataAvailable),c=Nt(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(Rt,{children:[t.jsxs(Lt,{children:[_.map(x=>t.jsx(q,{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(q,{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`
|
|
@@ -152,7 +152,7 @@ import{j as t,bu as Xe,o as a,e as le,bv as et,r as Re,l as d,g as de,C as H,a3
|
|
|
152
152
|
align-items: center;
|
|
153
153
|
color: ${e=>e.theme.colors.grey5};
|
|
154
154
|
background: ${e=>e.showSuccessBadge?de.success:e.theme.colors.primary};
|
|
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),
|
|
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),L=n.div`
|
|
156
156
|
padding-top: ${e=>e.space};
|
|
157
157
|
`,hr=n(Be)`
|
|
158
158
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -160,7 +160,7 @@ import{j as t,bu as Xe,o as a,e as le,bv as et,r as Re,l as d,g as de,C as H,a3
|
|
|
160
160
|
color: ${e=>e.theme.colors.primary};
|
|
161
161
|
`,ur=n.div`
|
|
162
162
|
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
163
|
-
`,br=(e,o,r)=>{const{endOfTimeframeFY:s}=d.getStartOfAndEndOfTimeframeForFY(o.startDate,e,r),{startOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(o.endDate,e,r),l={startDate:o.startDate,endDate:s},p={startDate:i,endDate:o.endDate};return{fromDateRange:l,toDateRange:p}},gr=e=>{const{firstMonthOfFY:o,selectedTimeframe:r,numberOfAdditionalColumns:s,calendarPeriod:i,dateRange:l,selectedOrderBy:p,dataAvailable:f,defaultOptions:b,selectedFileType:m,bookCloseDate:F,onDateRangeChange:$,onSelectedTimeframeChange:O,onNewOrderBySelection:w,onAdditionalColumnsSelectionChanged:h}=e,_=g=>Y.getLocalizedStrings().timeframe[g],c=g=>Y.getLocalizedStrings().downloadReport.orderBy[g],y=Y.getLocalizedStrings().downloadReport.displayColumns,{fromDateRange:v,toDateRange:x}=br(o,l,r),j=g=>{const D=te(o,g,f,b.balancesFilter.numberOfPeriods);i.timeframe=g,i.maxNumberOfPeriods=P[m]-b.additionalBalances.length,i.updatePeriod(d.subtractPeriod(f.endDate,o,D-1,g),f.endDate),$(i.value.dateRange),O(i.value.timeframe),h(b.additionalBalances)},E=u.useCallback((g,D,A)=>{A==="to"?i.updateEndDate(D.endDate):i.updateStartDate(D.startDate),$(i.value.dateRange)},[i,$]),M=()=>{let g=Vt;return r==="quarter"?g=Xt:r==="year"&&(g=nr),t.jsxs(u.Fragment,{children:[t.jsx(g,{firstMonthOfFY:o,onNewPeriodSelection:(D,A)=>E(D,A,"from"),dataAvailable:f,selectedPeriod:v,label:"From",validPeriod:{startDate:f.startDate,endDate:f.endDate},bookCloseDate:F}),t.jsx(
|
|
163
|
+
`,br=(e,o,r)=>{const{endOfTimeframeFY:s}=d.getStartOfAndEndOfTimeframeForFY(o.startDate,e,r),{startOfTimeframeFY:i}=d.getStartOfAndEndOfTimeframeForFY(o.endDate,e,r),l={startDate:o.startDate,endDate:s},p={startDate:i,endDate:o.endDate};return{fromDateRange:l,toDateRange:p}},gr=e=>{const{firstMonthOfFY:o,selectedTimeframe:r,numberOfAdditionalColumns:s,calendarPeriod:i,dateRange:l,selectedOrderBy:p,dataAvailable:f,defaultOptions:b,selectedFileType:m,bookCloseDate:F,onDateRangeChange:$,onSelectedTimeframeChange:O,onNewOrderBySelection:w,onAdditionalColumnsSelectionChanged:h}=e,_=g=>Y.getLocalizedStrings().timeframe[g],c=g=>Y.getLocalizedStrings().downloadReport.orderBy[g],y=Y.getLocalizedStrings().downloadReport.displayColumns,{fromDateRange:v,toDateRange:x}=br(o,l,r),j=g=>{const D=te(o,g,f,b.balancesFilter.numberOfPeriods);i.timeframe=g,i.maxNumberOfPeriods=P[m]-b.additionalBalances.length,i.updatePeriod(d.subtractPeriod(f.endDate,o,D-1,g),f.endDate),$(i.value.dateRange),O(i.value.timeframe),h(b.additionalBalances)},E=u.useCallback((g,D,A)=>{A==="to"?i.updateEndDate(D.endDate):i.updateStartDate(D.startDate),$(i.value.dateRange)},[i,$]),M=()=>{let g=Vt;return r==="quarter"?g=Xt:r==="year"&&(g=nr),t.jsxs(u.Fragment,{children:[t.jsx(g,{firstMonthOfFY:o,onNewPeriodSelection:(D,A)=>E(D,A,"from"),dataAvailable:f,selectedPeriod:v,label:"From",validPeriod:{startDate:f.startDate,endDate:f.endDate},bookCloseDate:F}),t.jsx(L,{space:a.sp3}),t.jsx(g,{firstMonthOfFY:o,onNewPeriodSelection:(D,A)=>E(D,A,"to"),dataAvailable:f,selectedPeriod:x,label:"To",validPeriod:i.getValidCalendarPeriod(),bookCloseDate:F})]})};return t.jsxs(u.Fragment,{children:[t.jsx(hr,{children:y.title}),t.jsx(L,{space:a.sp2}),t.jsx(fr,{numberOfPeriods:i.numberOfPeriods,numberOfAdditionalColumns:s,selectedFileType:m}),t.jsx(L,{space:a.sp5}),t.jsx(se,{children:y.displayOrderBy}),t.jsx(L,{space:a.sp2}),t.jsx(we,{pickerValues:["ascending_date","descending_date"],valueToLabel:c,selectedValue:p,onPickerSelectionChanged:g=>w(g),optionTextStyle:G.standardRegular,titleTextStyle:G.standardRegular,outlined:!0}),t.jsx(L,{space:a.sp5}),t.jsx(ur,{}),t.jsx(L,{space:a.sp4}),t.jsx(se,{children:"Period"}),t.jsx(L,{space:a.sp2}),t.jsx(we,{pickerValues:["month","quarter","year"],valueToLabel:_,selectedValue:r,onPickerSelectionChanged:g=>j(g),titleTextStyle:G.standardRegular,optionTextStyle:G.standardRegular,outlined:!0}),t.jsx(L,{space:a.sp4}),t.jsx(se,{children:y.periodRange}),t.jsx(L,{space:a.sp2}),M()]})},xr=u.memo(gr),Q=n.div`
|
|
164
164
|
padding-top: ${e=>e.top??0};
|
|
165
165
|
padding-left: ${e=>e.left??0};
|
|
166
166
|
`,yr=n.div`
|
|
@@ -247,7 +247,7 @@ import{j as t,bu as Xe,o as a,e as le,bv as et,r 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
|
-
`,
|
|
250
|
+
`,Rr=[{id:"excel",label:re.downloadExcel,Icon:Ir},{id:"pdf",label:re.downloadPdf,Icon:Tr}],Lr=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:Rr.map(c=>t.jsx(Lr,{...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"),$()}}):""]})},Br=u.memo(zr),ne=Y.getLocalizedStrings().downloadReport.footer,Nr=n.div`
|
|
251
251
|
display: flex;
|
|
252
252
|
justify-content: center;
|
|
253
253
|
background: ${e=>e.theme.colors.background};
|
|
@@ -323,7 +323,7 @@ import{j as t,bu as Xe,o as a,e as le,bv as et,r 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
|
-
`,
|
|
326
|
+
`,Re=n(Be)`
|
|
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,bu as Xe,o as a,e as le,bv as et,r 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(
|
|
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(Re,{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(Re,{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))]})},B={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};
|
|
@@ -423,7 +423,7 @@ import{j as t,bu as Xe,o as a,e as le,bv as et,r as Re,l as d,g as de,C as H,a3
|
|
|
423
423
|
padding-top: ${e=>e.space};
|
|
424
424
|
`,$a=n.div`
|
|
425
425
|
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
426
|
-
`,wa=n(
|
|
426
|
+
`,wa=n(Le)`
|
|
427
427
|
position: absolute;
|
|
428
428
|
top: -${a.sp2};
|
|
429
429
|
right: -12px;
|
|
@@ -436,4 +436,4 @@ import{j as t,bu as Xe,o as a,e as le,bv as et,r 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),[W,qe]=u.useState(e.defaultOptions.accountViewMode),[Z,We]=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),
|
|
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),[W,qe]=u.useState(e.defaultOptions.accountViewMode),[Z,We]=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),R=d.zeniDate(new Date(C.year(),C.month(),C.date()).toISOString());p?.({endDate:R,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(R=>c.includes(R)),firstMonthOfFY:e.defaultOptions.firstMonthOfFY,timeframe:h.timeframe,additionalBalances:He[h.timeframe].filter(R=>M.includes(R)),format:e.reportFormatProps.selectedFormat,statementFileType:j,accountViewMode:W,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,W,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)=>{qe(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(R=>R!=="profit_and_loss")),y(C=>[...C,"profit_and_loss_by_classes"])):c.includes("profit_and_loss_by_classes")&&(y(C=>C.filter(R=>R!=="profit_and_loss_by_classes")),y(C=>[...C,"profit_and_loss"])),I!==void 0&&We(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:W,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(W,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})]})},Ba=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{Ba as DownloadOverlayButton,ja as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{X as a,j as i,bt as P,o,M as h,C as s,bp as y,Q as c,h as g,a3 as b,q as t,a0 as L,j4 as k,j5 as C,j6 as R}from"./index-C5chxI3W.js";import{n}from"./vendor-CnQcJ2Lu.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.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=[M(),_(),H({rewardsPlan:e})],d=a();return i.jsx(W,{children:r.map((f,j)=>i.jsxs(N,{children:[i.jsx(E,{children:f}),j<r.length-1?i.jsx(A,{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(X,{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(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}`};
|
|
@@ -23,7 +23,7 @@ import{e as a,j as i,bx as P,o,M as h,C as s,bt as y,X as c,h as g,a3 as b,q as
|
|
|
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(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};
|
|
@@ -42,14 +42,14 @@ import{e as a,j as i,bx as P,o,M as h,C as s,bt as y,X as c,h as g,a3 as b,q as
|
|
|
42
42
|
`,u=n(g)`
|
|
43
43
|
color: ${e=>e.theme.colors.hero};
|
|
44
44
|
${e=>`${v.content.style(e.windowSize)}`};
|
|
45
|
-
`,
|
|
45
|
+
`,N=n.div`
|
|
46
46
|
display: flex;
|
|
47
47
|
flex-direction: row;
|
|
48
48
|
position: relative;
|
|
49
49
|
z-index: 1;
|
|
50
|
-
`,
|
|
50
|
+
`,W=n.div`
|
|
51
51
|
margin-top: ${o.sp4};
|
|
52
|
-
`,
|
|
52
|
+
`,A=n.div`
|
|
53
53
|
top: ${o.sp0};
|
|
54
54
|
width: 1px;
|
|
55
55
|
height: 100%;
|
|
@@ -58,9 +58,9 @@ import{e as a,j as i,bx as P,o,M as h,C as s,bt as y,X as c,h as g,a3 as b,q as
|
|
|
58
58
|
width: 2px;
|
|
59
59
|
background: ${e=>e.theme.colors.grey2};
|
|
60
60
|
z-index: -1;
|
|
61
|
-
`,
|
|
61
|
+
`,E=n.div`
|
|
62
62
|
padding-bottom: ${o.sp4};
|
|
63
|
-
`,{common:{navBar:{back:
|
|
63
|
+
`,{common:{navBar:{back:Q}}}=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:J}=h.getLocalizedStrings().rewardsPage;function se({rewardsPlan:e,onDismissClick:r}){const d=a();return i.jsxs(F,{windowSize:d,children:[i.jsx(T,{windowSize:d,children:i.jsxs(G,{windowSize:d,children:[d==="small"&&i.jsx(V,{children:i.jsx(P,{enterDelay:600,title:Q,placement:"bottom",style:{padding:`${o.sp1} ${o.sp2}`},children:i.jsx(Y,{onClick:r})})}),i.jsx(K,{windowSize:d,children:J}),d!=="small"&&i.jsx(U,{onClick:r})]})}),i.jsx(O,{windowSize:d,children:i.jsx(D,{rewardsPlan:e})})]})}const F=n.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -68,7 +68,7 @@ import{e as a,j as i,bx as P,o,M as h,C as s,bt as y,X as c,h as g,a3 as b,q as
|
|
|
68
68
|
width: 100%;
|
|
69
69
|
height: 100vh;
|
|
70
70
|
position: relative;
|
|
71
|
-
`,
|
|
71
|
+
`,G=n.div`
|
|
72
72
|
display: flex;
|
|
73
73
|
align-items: center;
|
|
74
74
|
justify-content: space-between;
|
|
@@ -78,11 +78,11 @@ import{e as a,j as i,bx as P,o,M as h,C as s,bt as y,X as c,h as g,a3 as b,q 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)};
|
|
85
|
-
`,
|
|
85
|
+
`,T=n.div`
|
|
86
86
|
display: flex;
|
|
87
87
|
flex-direction: row;
|
|
88
88
|
justify-content: center;
|
|
@@ -92,7 +92,7 @@ import{e as a,j as i,bx as P,o,M as h,C as s,bt as y,X as c,h as g,a3 as b,q as
|
|
|
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{e as a,j as i,bx as P,o,M as h,C as s,bt as y,X as c,h as g,a3 as b,q as
|
|
|
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{X as ae,M as de,fk as pe,u as ce,a as ue,a2 as me,j as t,bP as ge,bQ as he,bR as fe,bS as ye,gc as ve,_ as B,bW as xe,o,bt as be,F as $e,a4 as we,C as _,fn as Re,fo as Ce,fp as je,b$ as ke,l as M,ao as Oe,g as Q,co as Pe,q as c}from"./index-C5chxI3W.js";import{b as $,n}from"./vendor-CnQcJ2Lu.js";import{x as Ie}from"./AllUserItems-w6M8k5yU-DRpE6VjZ.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";import"./LabeledUserSingleSelectWithSubtitlesField-D63Z4SE5-Hunv1W3n.js";import"./RoleWithToolTip-XfK92pcD-DtUyDW-U.js";import"./LabeledZeniRolesDropDownField-MwrQ9tKT-DwAqMpNU.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,He=({peopleDetails:e,managersList:u,classList:R,controllersList:k,mode:d,isZeniTenant:S,onCloseClick:O,onResetClick:P,onSaveClick:m,onDeleteUser:Y,onPeopleLocalDataUpdated:G,analytics:U,isReimbursementDisabled:D,isZeniAccountsDisabled:N,isChargeCardDisabled:Z,isTreasuryDisabled:q,isBankingOnlyTenant:y,isCardsOnlyTenant:v,isLiteRoleDisabled:F})=>{const C=ae(),[J,T]=$.useState(!1),[H,ee]=$.useState(-1),te=d==="zeni_only"?a.invitePage.editZeniTitle:a.invitePage.editTitle,se=$.useRef(null),E=$.useMemo(()=>pe(D,N,Z,y,v,F,q),[D,N,Z,y,v,F,q]),A=ce(),l=ue({mode:"onBlur",reValidateMode:"onChange",defaultValues:K(e.people,u,R,d,E,y,v),values:K(e.people,u,R,d,E,y,v)}),oe=l.handleSubmit(()=>{V()&&m()},()=>{V(),console.warn("Edit Profile form error")}),V=()=>{const g=l.getValues();let r=!0;return g.userItems.forEach((h,x)=>{const{role:z,department:i,nonZeniRole:f,manager:p}=h;if(d==="zeni_only"){const s=z.selectedOptions;(!s?.length||s?.length===1&&s?.includes("company_officer"))&&(l.setError(`${w}.${x}.role`,{type:"required"}),r=!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}.${x}.nonZeniRole.userRole.selectedRole`,{type:"required"}),r=!1),s!=="investor_or_banker"&&i?.selectedOption==null&&(y||v||(l.setError(`${w}.${x}.department`,{type:"required"}),r=!1)),p?.selectedUser==null&&s!=="investor_or_banker"&&(l.setError(`${w}.${x}.manager`,{type:"required"}),r=!1)}}),r},re=async(g,r)=>{const h=[],{userItems:x}=r,z=e.person?.userRole?.userRoleId;x.forEach(i=>{let f={};if(z!=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(L=>M.toUserRoleTypeStrict(L.selectedOption?.value)).filter(L=>L!=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)}}),G(h)};$.useEffect(()=>{const g=l.watch((r,{name:h})=>{h!=null&&r!=null&&re(h,r)});return()=>{g.unsubscribe()}});const ne=()=>{T(!0)},le={onOkClick:()=>{const g=e.person;U?.trackRemoveUserAccess(g.userRole.userRoles,g.userRole.userEmail),Y?.(e.person)},onCancelClick:()=>{T(!1)}},W=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&&W==="removeUsers"&&(T(!1),P?.())},[I,W]),t.jsxs(t.Fragment,{children:[J===!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(Le,{children:t.jsx(Be,{src:e.person?.user.photo?.toString()??he,alt:e.person?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(ve,{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(ze,{children:[t.jsx(xe,{personBasic:e.person?.user,styles:{height:o.sp6,width:o.sp6}}),t.jsxs(Se,{children:[t.jsx(Te,{children:e.person?.user?.firstName?t.jsxs(Ee,{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:ne,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:oe,children:t.jsx(Ie,{control:l.control,sectionId:w,deleteConfirmationIndex:H,updateDeleteConfirmationIndex:ee,mode:d,isZeniTenant:S,classList:R,managersList:u,controllersList:k,customerRoleOptions:E,isBankingOnlyTenant:y,isCardsOnlyTenant:v,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:o.sp4}})]})},K=(e,u,R,k,d,S,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(S,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=n.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: ${o.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
|
+
`,Te=n.div``,Ee=n(Oe)`
|
|
19
|
+
color: ${e=>e.theme.colors.primary};
|
|
20
|
+
`,ze=n.div`
|
|
21
|
+
display: flex;
|
|
22
|
+
gap: ${o.sp2};
|
|
23
|
+
align-items: center;
|
|
24
|
+
margin: ${o.sp0} ${o.sp1};
|
|
25
|
+
`,Le=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
|
+
`,Ue=n.div`
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 1%;
|
|
36
|
+
left: 50%;
|
|
37
|
+
transform: translate(-50%, -50%);
|
|
38
|
+
height: 62px;
|
|
39
|
+
width: ${o.sp9};
|
|
40
|
+
border-radius: 50% 50% 0 0;
|
|
41
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
42
|
+
`,De=n(Pe)`
|
|
43
|
+
width: ${o.sp3};
|
|
44
|
+
height: ${o.sp3};
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
color: ${e=>e.windowsize==="small"?Q.important:e.theme.colors.hero};
|
|
47
|
+
&:hover {
|
|
48
|
+
color: ${Q.important};
|
|
49
|
+
}
|
|
50
|
+
`,Ne=n.div`
|
|
51
|
+
width: ${o.sp3};
|
|
52
|
+
height: ${o.sp3};
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
position: relative;
|
|
55
|
+
`;export{He as default,et as uniqueName};
|