@zeniai/web-cockpit-ui 1.13.84-qa → 1.13.85-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-Bya_wRcI-D24AQL3_.js → ACHDetailsPage-CRqyoYEz-xYrGFNnE.js} +3 -3
- package/dist/assets/{AIPerformancePage-Bc2kKHSK-vnI3KLwi.js → AIPerformancePage-DAkvkXSA-CGVKmjkJ.js} +24 -24
- package/dist/assets/AccountInfoPage-6EVpo7mW-aLkrvciq.js +18 -0
- package/dist/assets/{AccountInfoPageContent-BhU-TVmh-C-UpNXF8.js → AccountInfoPageContent-BWZbyIYz-Q8Byt1d2.js} +20 -20
- package/dist/assets/{AccountReconDetailsDrawerPage-Dp2R5isq-6LbQVUfj.js → AccountReconDetailsDrawerPage-DLd_igXD-BoD_5Mp7.js} +18 -18
- package/dist/assets/AccountRow-D4iz2vCr-FZzwmYfW.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-DYUyO-ip-Afoar8fj.js → AccountsPromoCardStack-DIly1lFF-BymCGDNy.js} +22 -22
- package/dist/assets/{AddAddressForCardDrawer-CNSnxc8q-CfZsmSuQ.js → AddAddressForCardDrawer-C90j4Cwr-BKCwJ7c4.js} +1 -1
- package/dist/assets/{AddToWalletPage-Q8uWTckm-C9vK1iqP.js → AddToWalletPage-Bo2KesYz-Cz9shvNb.js} +30 -30
- package/dist/assets/{AgingReportsPage-B-DOb7my-WwOH5_Yn.js → AgingReportsPage-DuoKsSkU-D9JwO5kE.js} +4 -4
- package/dist/assets/{AllUserItems-B86Y2Fmg-DwBM7tfH.js → AllUserItems-C0U1Brjm-bMWZMmau.js} +7 -7
- package/dist/assets/{ApAgingDetailPage-CMYJgTzS-C2HHMQbl.js → ApAgingDetailPage-dNwAZULr-Bgfeeq5D.js} +3 -3
- package/dist/assets/{AppBasePage-DJO-V2ox-C-oIOb39.js → AppBasePage-CfkaWEbJ-DV03x5l2.js} +4 -4
- package/dist/assets/{AppDrawerContent-5_QaBLwS-picTHWhb.js → AppDrawerContent-DlHQEgOZ-CwVua6gS.js} +2 -2
- package/dist/assets/{ApprovalRulesSettingsPage-CPbVQ97S-C7Jihchv.js → ApprovalRulesSettingsPage-Pl7HoLmk-7CPgqfk2.js} +6 -6
- package/dist/assets/{ArAgingChart-l020Rk_S-DFeuvhU_.js → ArAgingChart-xI9TRvfS-B-FSsHVj.js} +5 -5
- package/dist/assets/{ArAgingDetailPage-BeUPeHBJ-BkRCdWjT.js → ArAgingDetailPage-BMGCnP5d-Ia6ZCwAD.js} +2 -2
- package/dist/assets/{AttachmentView-Afp_U4fV-8-c7IhJe.js → AttachmentView-C8AgUAnY-CXbbCi9n.js} +8 -8
- package/dist/assets/{BankAccountSection-CNQgxgSJ-Bj0DaA_J.js → BankAccountSection-DB4PEf_X-BThY20p4.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-V0HHzW57-vrqdtD7y.js → BankAccountWarningSection-BNO8Gl59-Cj0YvVYP.js} +5 -5
- package/dist/assets/{BankConnectionsSettingsPage-Bk8K0xUn-CeZc6fuw.js → BankConnectionsSettingsPage-BOreBo5b-ClbcS0AA.js} +22 -22
- package/dist/assets/{BillDetailPage-D9d6X0o4-DnbAMdeA.js → BillDetailPage-Bv86SywV-OjQAhExV.js} +5 -5
- package/dist/assets/{BillPayApprovalRuleDetailPage-CSVTc5Mn-zEJJLZMO.js → BillPayApprovalRuleDetailPage-CDXxmD-3-CPsk0oK8.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-DIOOCVKH-ec-IeSJ_.js → BillPayApprovalRulesPage-Ci5Ok7Zj-tof82RhM.js} +3 -3
- package/dist/assets/{BillPayPromoPage-C44YKAlE-CZ8TnOy7.js → BillPayPromoPage-Co2j2krO-DmiPp1nW.js} +2 -2
- package/dist/assets/{BillPaySetUpPage-erTIfKkS-B8D6nffd.js → BillPaySetUpPage-DjpCUZaT-BN2J-t4G.js} +2 -2
- package/dist/assets/BillingSettingsPage-CAs7DZQz-CqK9Ho86.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-DjunAUW0-BurxqQ7q.js +1 -0
- package/dist/assets/{BoxItem-UFBGpfBB-Hna_3gSj.js → BoxItem-BqLhtWoJ-N1dze3h9.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Cl7jz1DF-P_BUnpPu.js → BusinessVerificationPage-CZGOzc9Z-fjFONiSD.js} +8 -8
- package/dist/assets/{CardNumberSubText-DyFZudV_-B0AxiMNx.js → CardNumberSubText-23sLjCVt-BzieyTnf.js} +1 -1
- package/dist/assets/{CashbackDetailPage-D0_YW2Dy-CJHMwowQ.js → CashbackDetailPage-DY0n94jz-BUYqnV34.js} +21 -21
- package/dist/assets/{ChargeCardDetailPage-YkvyvIEk-C3d7vBC0.js → ChargeCardDetailPage-NWTPnGtM-D2U2Irky.js} +58 -58
- package/dist/assets/{ChargeCardListPage-4vg8Q6bl-Btxhg5jy.js → ChargeCardListPage-D42dfnET-QGICTWTK.js} +35 -35
- package/dist/assets/{ChargeCardListTable-Dl-rblE6-D5iGQu5n.js → ChargeCardListTable-B7uRDVzb-T3KA1SlK.js} +25 -25
- package/dist/assets/ChargeCardPromoPage-CXiXee-8-DqF9CwRb.js +190 -0
- package/dist/assets/{ChargeCardSetupPage-BSiJnRP_-y1F_pjxz.js → ChargeCardSetupPage-Ccc8PoCm-BSIg4VNL.js} +2 -2
- package/dist/assets/{ChargeCardStatementsPage-NkfA1SYG-kW4Au9ab.js → ChargeCardStatementsPage-JEslDm3r-C_RfZvQ8.js} +4 -4
- package/dist/assets/{ChargeCardUtils-CLpd-HDH-dMJ2Q_93.js → ChargeCardUtils-B3JEziD7-CwQE9qIG.js} +1 -1
- package/dist/assets/{ChaseOverlay-B1cuawle-CSkF_51t.js → ChaseOverlay-KLet3F9X-BJh9nem5.js} +8 -8
- package/dist/assets/CheckDepositDrawerPage-JYHyo9Hw-BwsvgZ74.js +206 -0
- package/dist/assets/{CollapsableReportTable-iMD5xyGN-DxpM_9bu.js → CollapsableReportTable-DshWn4Fc-1Ky5jq0N.js} +29 -29
- package/dist/assets/{CompanyOfficerDetailsSection-BA7etm2I-DTt9FR5w.js → CompanyOfficerDetailsSection-DWqEolPc-C_ETEVFs.js} +26 -26
- package/dist/assets/{CompanyPassportCard-Dks4EQDN-B0Dzj-Sj.js → CompanyPassportCard-fyolEQTs-BpIPYjUj.js} +2 -2
- package/dist/assets/{CompanyPassportPage-Denliwgg-BRN9vOeB.js → CompanyPassportPage-CrgsRRVr-WqqSGX_w.js} +140 -140
- package/dist/assets/{CompleteProfile-CCLq4pNY-CtKBUzOW.js → CompleteProfile-D_zq0Bxi-Bi1YeUNU.js} +10 -10
- package/dist/assets/ConfettiBurst-CZuMHGP8-BTcuXQPa.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-BFejWQMx-C7NqnKds.js → CreateOrEditVendorPage-Ct4Kfowi-Drrod2cP.js} +15 -15
- package/dist/assets/{CreditCardPaymentDrawerPage-B7Sesq_n-DvfL88dh.js → CreditCardPaymentDrawerPage-Cpu-7pGN-z0mDR9Zy.js} +16 -16
- package/dist/assets/{CreditCardPaymentPlgSection-D5CNl0oa-DiWqHLoj.js → CreditCardPaymentPlgSection-DoMaCnIZ-BpT8OJXl.js} +10 -10
- package/dist/assets/{CurrencySelectField-DYvc6rwt-DrMXyXgk.js → CurrencySelectField-CCOtXLC7-DmgJhn-v.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-oUiw--hv-uDxfiRoM.js → CustomerOnboardingActivationPage-Cgzif1ji-CPNUkRDw.js} +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-ByWeMmBf-DwYZZ9jR.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BaDpU--M-Dr2X5vzk.js → CustomerOnboardingDetailPageSkeleton-BOMwRZEO-PNOXFbTm.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-C_cxcuWE-BQPyN4r3.js → CustomerOnboardingNoStepsPage-DDloVGvk-EFD3k0Z1.js} +8 -8
- package/dist/assets/CustomerOnboardingPage-DHji4ZmF-vPwCgWM6.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-DEqdhh-2-DNDa-YZB.js → CustomerOnboardingProductSuitePage-BA3GAX42-usBGW0iL.js} +4 -4
- package/dist/assets/Dashboard-Cr5ugENA-_ss7RgaI.js +1251 -0
- package/dist/assets/{DashboardReportPage-Tq4KsQuw-C0NFJvrJ.js → DashboardReportPage-paPVk_v2-7626om2P.js} +67 -67
- package/dist/assets/{DepositAccTransactionItem-DWhVL-kH-HToIlcYx.js → DepositAccTransactionItem-BXRfgUfE-Bcw5EG9I.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-BiaZBvV4-Eo8UgPbX.js → DepositAccTransactionListPage--7TRlqKj-zqnHB4vQ.js} +8 -8
- package/dist/assets/{DocumentSecurityBanner-eGDvEOvr-Dfhgnjgy.js → DocumentSecurityBanner-B0Qt1FLC-BKK2GBle.js} +1 -1
- package/dist/assets/DomesticWireDetailsPage-RoRpMC50-Dx8FlvWR.js +21 -0
- package/dist/assets/{DownloadOverlay-C0vGOFIR-CLlCJb4E.js → DownloadOverlay-Cl_EXjiu-_W4-6wVr.js} +20 -20
- package/dist/assets/{DrawerPage-keu-rP1c-BE2Fh2qJ.js → DrawerPage-wXwAaYEB-ClkK54Ag.js} +8 -8
- package/dist/assets/EditPeoplePage-xDL6VA_r-DBIETQHy.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-jqf5akyj-a9iq4xwG.js → EditReimbursementDetailPage-BUpJPJNu-BuRQj9KF.js} +74 -74
- package/dist/assets/{EntityDetailPage-D0mZIEcR-Rg_90ffL.js → EntityDetailPage-BNXqSwVL-BtqM-DEW.js} +2 -2
- package/dist/assets/{EntitySummarySection-bL2stKO1-CambP6kY.js → EntitySummarySection-MZ57i-bY-H7IGJvB2.js} +11 -11
- package/dist/assets/{ExpenseAutomationOverviewPage-Cm00uGHv-BucC69E3.js → ExpenseAutomationOverviewPage-Y3IHs4dG-BCr8LQIN.js} +17 -17
- package/dist/assets/{ExpenseAutomationPage-BA8sRxM--BvNgZY1Q.js → ExpenseAutomationPage-C0hvPLo7-CxYhLUjG.js} +84 -84
- package/dist/assets/{ExpressPayPage-DRNbLpuL-BTcYYJnP.js → ExpressPayPage-Bncb54-Q-m2KDux54.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-CeeAOF5C-DHX56uCl.js → FeaturePreviewPage-BnGBEF9H-DIdV1EEF.js} +2 -2
- package/dist/assets/{FollowStepsSection-DuElPK3y-dhjgL0Nu.js → FollowStepsSection-laCvnETV-BKhPlVRt.js} +7 -7
- package/dist/assets/{GlobalReviewListPage-DfjZMTms-DrRjYv7e.js → GlobalReviewListPage-CskEuHc5-BvuvkrWm.js} +10 -10
- package/dist/assets/HelpButton-D5ZYyQMh-D3OqqJNA.js +28 -0
- package/dist/assets/{InformationCardStack-CmquAm7A-Bio4HHzL.js → InformationCardStack-BFJqdH9n-Cbvb8Zyt.js} +5 -5
- package/dist/assets/{InsightsCardStack-D5ahtQWr-B_JxN54j.js → InsightsCardStack-CcoMWMiA-BcmYr1H8.js} +9 -9
- package/dist/assets/{InsightsSection-xgqf4arB-CemPO1xM.js → InsightsSection-D9PiJagu-DOwHVFks.js} +3 -3
- package/dist/assets/{IntegrationsSettingsPage-Cl6dfKQL-WHKkc-0x.js → IntegrationsSettingsPage-CVmDobJ8-CKVB31Cy.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-D_jWoFli-CGo3Glkw.js → InternationalWireSwiftDetailsPage-DqW88v9N-H1bFtbsa.js} +11 -11
- package/dist/assets/{InternationalWireVerificationPage-it1U4OPj-CAqG3vli.js → InternationalWireVerificationPage-X90z_30k-xPYg__QG.js} +17 -17
- package/dist/assets/{InviteFormPage-DTMy8xZk-2GrL0qjS.js → InviteFormPage-BK-PRmeH-BAomtB1K.js} +23 -23
- package/dist/assets/{InvitePageListView-X7W1jRxY-DLLNNo8k.js → InvitePageListView-6-iCc4BK-DiUJrTMB.js} +31 -31
- package/dist/assets/InvitePeoplePage-C9AwNqIx-U6OqJmP1.js +12 -0
- package/dist/assets/{InvoiceUploadSection-BhCDvIPX-e244hYqN.js → InvoiceUploadSection-D5aF4auL-D8CZg2Vk.js} +7 -7
- package/dist/assets/{IssueChargeCardPage-CqE8lMsX-CQoXeSdg.js → IssueChargeCardPage-C_xt7hKZ-CgCvIFoE.js} +22 -22
- package/dist/assets/{LabeledAddressValue-CCEVX0ke-Dr-Y2rNd.js → LabeledAddressValue-DpSK0MqC-D58RjKgD.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-B9iirKZj-B-lkILdh.js → LabeledAddressValueField-_LY7c-ZC-EdJfII0E.js} +3 -3
- package/dist/assets/{LabeledControlledCheckBoxField-Bl3-Zao6-CHB8td0R.js → LabeledControlledCheckBoxField-FB40Z8J7-CUjOIHO8.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-v86g-OZd-NNxB-j11.js → LabeledCreatableSingleSelectField-paSeI8_R-COJp3Y9m.js} +7 -7
- package/dist/assets/LabeledDocumentField-DiMgPKtR-DDw2gK-2.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-DsjpTL6X-BQHdfd5e.js +59 -0
- package/dist/assets/{LabeledText-D9feJraX-o9BoQjAH.js → LabeledText-CyXj8QWV-DunmbzZf.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BKNBvO_C-BxGzxKzb.js → LabeledUserSingleSelectWithSubtitlesField-CUT00Vix-oJIrTzfz.js} +7 -7
- package/dist/assets/{LabeledZeniRolesDropDownField-AwQaO42N-CKgF9hTJ.js → LabeledZeniRolesDropDownField-D0cQlbhO-Dqs02jMf.js} +26 -26
- package/dist/assets/{LinkJETransactionPage-D3I2NvQw-P3R8MlXe.js → LinkJETransactionPage-DaXjiQRp-CH9vE8pm.js} +8 -8
- package/dist/assets/{LowBalancePopup-OSUi1Alp-BiLt2AdI.js → LowBalancePopup-CdftTvLb-DzgqRFO5.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-r3XSoJ11-Cv-fI0u0.js → MagicLinkACHDetailsPage-C25i1T4c-B_gtZsWu.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DPG9fUzZ-B7fiv6MZ.js → MagicLinkDomesticWireDetailsPage-B0r3WStl-CY0AGP-m.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-CmXJXEaN-Tp9z-x5e.js → MagicLinkInternationalWireDetailsPage-C-ev-6xJ-DYlN82pS.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-CwszAuW2-Bix3eRV8.js → MagicLinkSuccessPage-7JG3V4Qt-Brf6FY6k.js} +5 -5
- package/dist/assets/{MagicLinkTitleSection-CvrbJ-of-B5SXKUsj.js → MagicLinkTitleSection-DEe0hhml-De1g7fYA.js} +3 -3
- package/dist/assets/{MailingDetailsSection-BJHZIZCt-Dq0ArLOp.js → MailingDetailsSection-Qc65E0w3-C6CH0-UP.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-C4r3bJ84-B_7Xob1I.js → MeetingCalenderPopup-Dh8meV6d-BwK6voO1.js} +1 -1
- package/dist/assets/{Menu-MHZ6Ibt0-DsBN8RMC.js → Menu-DyfXBl_1-H_GViJ7L.js} +3 -3
- package/dist/assets/{MyBankConnectionsSettingsPage-DG1tuqAt-BHEUeVdz.js → MyBankConnectionsSettingsPage-CCFcVgyX-Cj9pmtPo.js} +13 -13
- package/dist/assets/{MyPendingActivationChargeCardListPage-DZyxqqyJ-BhPK50AW.js → MyPendingActivationChargeCardListPage-DS966wTB-DXMBzQKu.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BnNbspx9-D_qqDWXw.js → MyProfileSettingsPage-BRRzMoQL-z-2QKlLv.js} +8 -8
- package/dist/assets/{NavBarWithPicker-3okDhiol-CJJ9BrpE.js → NavBarWithPicker-BvWih0k0-DqsmpQXd.js} +2 -2
- package/dist/assets/{NavigationArrow-iw-yd_9S-DvXlGggY.js → NavigationArrow-DYSL2aDL-BJUiAKpZ.js} +9 -6
- package/dist/assets/{NavigationDots-CB5JLuJi-Bme4BexN.js → NavigationDots-DyyCcIih-C83s6vN7.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CcGws2R2-Coiq6yZx.js → NewGlobalMerchantPage-DjEvzM4M-D2PAZo-X.js} +33 -33
- package/dist/assets/NoDataChart-DE6NV823-DlzVvXWT.js +26 -0
- package/dist/assets/{NoDataTable-BbDo9Kma-CGZ-ZRju.js → NoDataTable-CXNsBBVP-CNpKcnQr.js} +1 -1
- package/dist/assets/{NotFoundPage-gbtwlR8l-C8W_IclM.js → NotFoundPage-CuuO2Mia-DtoiuMBe.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-slkQwvVZ-C6_X1MwL.js → NotificationSettingsPage-C7ilxUAV-DVBhuDeZ.js} +16 -16
- package/dist/assets/NotificationsListConfig-TBQMobJ5-Dg1BFWgp.js +1 -0
- package/dist/assets/{NotificationsPage-BAyRPK64-D9pYswFj.js → NotificationsPage-BjaKD99B-HczC9sOP.js} +32 -32
- package/dist/assets/{OpExByVendorPage-CofD6hKi-_r0JCjwW.js → OpExByVendorPage-IuDiHnIW-DSQhabH4.js} +5 -5
- package/dist/assets/{OverlayContainerPage-nhe7xtoR-BqnlKexX.js → OverlayContainerPage-C0rUb6-5-zCXylyg1.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-_uOEFXiy-uRGPUMun.js → PandLWithForecastPage-DLvgYpF8-BvtUu1nj.js} +7 -7
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-C0zGxU4f-BbIQnivK.js → PaymentAccountSetupBillingAddressSection-CZ8ZY08D-DItr6wpu.js} +8 -8
- package/dist/assets/{PeoplePage-8GExF-Lt-DycjJFii.js → PeoplePage-DyqY-rIV-6wYuIYCy.js} +19 -19
- package/dist/assets/{PortfolioAllocationFormPage-CMKEE7P7-BAgV1W9Q.js → PortfolioAllocationFormPage-DTuKtkwr-BCUD0jpE.js} +3 -3
- package/dist/assets/{PortfolioDetails-A3P3vG57-D-PvzBt-.js → PortfolioDetails-DJFeMG4U-jhRfPjHw.js} +11 -11
- package/dist/assets/{ProductsCarousel-D9H3mUJ--BVzwDfPL.js → ProductsCarousel-CS4_yc80-CJENMC5j.js} +7 -7
- package/dist/assets/{PromoBaseCards-CF0Bv_9G-CPu8OwaX.js → PromoBaseCards-BZ2m6LfO-DtHfjjw4.js} +25 -25
- package/dist/assets/{QBOConnectionDialog-D2zi5wKm-BnMrx2Jb.js → QBOConnectionDialog-2vJQuslh-gswZrMuL.js} +6 -6
- package/dist/assets/{QBOSetupSection-B3Dj2g2k-B6Vh45jl.js → QBOSetupSection-Yv3Xw-yn-CsTlHo9j.js} +11 -11
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DgpHHy3U-CVsGPnLd.js → ReimbursementApprovalRuleDetailPage-tvJ2APRB-CJktCsdd.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BjFi-uJl-B-1i4jgW.js → ReimbursementApprovalRulesPage-_nXCDa2A-BNgKNHzv.js} +8 -8
- package/dist/assets/{ReimbursementDetailPage-BersvjG9-CWQWXTAd.js → ReimbursementDetailPage-CtEAsq7u-DRdTiZKG.js} +7 -7
- package/dist/assets/{ReimbursementPromoPage-K8dT-rtu-ejmkM2xl.js → ReimbursementPromoPage-BaEX5Ej4-BuvxoLSr.js} +16 -16
- package/dist/assets/{ReimbursementSetUpPage-CfBuIpx6-BHJ5mWF-.js → ReimbursementSetUpPage-DXOqEJL4-iJtd4hOD.js} +12 -12
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-yaSD_tF5-CtbYjDdi.js → ReimbursementsBulkReviewDrawerPage-HQg1y1K--CLvh9oMo.js} +1 -1
- package/dist/assets/{ReloadCard-Do9Znv21-BdHDUomQ.js → ReloadCard-stfG9ekP-E5rZnPxi.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-D1UrK7VQ-B2lv_ic2.js → ReportTableViewSelector-_RTCd2td-Bc2QvO79.js} +7 -7
- package/dist/assets/{ReportsPage-dER5Ukfc-CkbR9-hx.js → ReportsPage-BIzz5Dt_-NFZB2f2n.js} +9 -9
- package/dist/assets/{RevenueChart-CCr_XauF-DE6xvLaq.js → RevenueChart-DeDVVUge-BKnJBaLk.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-ZoXTLGfR-CMQzdLlE.js → ReviewDetailsPage-DZqPpiln-DMAHDtV0.js} +19 -19
- package/dist/assets/{ReviewOverlay-Bywh-8pJ-CohY-7e4.js → ReviewOverlay-DcBe94Sd-COJlSRKh.js} +14 -14
- package/dist/assets/{RoleWithToolTip-CX9tF-BO-CfHGhDZn.js → RoleWithToolTip-DZO2tooH-B0y78jDy.js} +6 -6
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BEXr2qc0-BzP6cE1T.js → ScheduleDetailsFixedAssetsPage-Cl8iBII0-5-jnemx1.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CR8uJC5O-BvWjtOn1.js → ScheduleDetailsPage-D6ZxZ2uU-CKiYugJn.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-D7kDvImN-BYm5tvmN.js → ScheduleSequenceTable-eRImHbZn-zcCUBGZK.js} +50 -50
- package/dist/assets/{ScreenRoutes-wesefRwS.js → ScreenRoutes-CXwvcn5x.js} +1 -1
- package/dist/assets/{SetUpAccountSection-B0J0zCOF-BgXG5DS8.js → SetUpAccountSection-BBZNI1Xl-C0b9akyJ.js} +103 -103
- package/dist/assets/{SetUpDefaultSection-ES6v0-xw-DftidMnh.js → SetUpDefaultSection--9Qh-utY-3YrGFMUC.js} +16 -16
- package/dist/assets/{SignIn-yQ-8MBRA-CihMyZ7q.js → SignIn-CI0Ik2va-3pWKv9Zj.js} +19 -19
- package/dist/assets/{SignInScreen-DS6fEfuU.js → SignInScreen-CCdAg0VB.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-_rUojA3M-EqvrqWBS.js → SpendManagementListViewPage-NWkSnIdD-CxhuHjHo.js} +13 -13
- package/dist/assets/{SpendManagementPerTabPage-Bhes-f7M-Cb3eyaQr.js → SpendManagementPerTabPage-CdWwn_b8-liFVp2pd.js} +47 -47
- package/dist/assets/{SpendManagementSection-CQHWqht2-DUZQM13E.js → SpendManagementSection-DGhD95sz-DwpipRyt.js} +9 -9
- package/dist/assets/{SpendMgmtSetupAccountSection-BHZ9nmWy-XOLb3Fur.js → SpendMgmtSetupAccountSection-DG4ozkeT-CwbSJso6.js} +14 -14
- package/dist/assets/{StatementItem-CKnsnb3u-ChM8cclP.js → StatementItem-BlfBohft-EV50IPyl.js} +8 -8
- package/dist/assets/StatementsPage-CUpjL5u7-BCXI4rzX.js +58 -0
- package/dist/assets/{StatusSwitcher-xR-S3KaW-BKRdafwP.js → StatusSwitcher-C6703BAG-BvT29XW2.js} +4 -4
- package/dist/assets/{SubTabSwitcher-DczmDw-I-DARuAs1S.js → SubTabSwitcher-lf9S7Ubj-DJDWAJ0r.js} +1 -1
- package/dist/assets/{SummaryCard-YTxf_JPz-B8RE6XJZ.js → SummaryCard-yghz4PLR-Bjx-2ODn.js} +1 -1
- package/dist/assets/TaskManagementPage-Cf523C5f-IxjfQuXH.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-C5yC8ifv-C8eV7Phr.js → TimeRangeSwitcher-BoPrOhKX-BejCCLXp.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-D1xKpIjp-DZocHPU3.js → TimeframeSwitcher-DufweySH-PZfP9LZt.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-BKwe3K9l-4nzCluDg.js +31 -0
- package/dist/assets/{TopExCard-CJN2nSdQ-Dyx710RI.js → TopExCard-DrOjlLiv-BAcprpz7.js} +6 -6
- package/dist/assets/{TopExDetailPage-ClQK2WDh-vTx0gLy7.js → TopExDetailPage-Ds4zlxKD-CEw3GubR.js} +11 -11
- package/dist/assets/{TransactionDetailPage-CcNUBQmc-Bqi04LL8.js → TransactionDetailPage-Csl-Qjxp-EnZp16li.js} +47 -47
- package/dist/assets/{TransactionList-Dtqr5BZm-2I1pMc5u.js → TransactionList-2HeLZVn9-CrbbPmBE.js} +13 -13
- package/dist/assets/{TransactionListBig-D5_iDOBi-CLtD8kFo.js → TransactionListBig-p6iVof9y-BIk3tMms.js} +18 -18
- package/dist/assets/{TransactionListPage-DUCJRiyi-Bc5rziPm.js → TransactionListPage-tnL66tOu-CH3TLKSv.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-DSpchZAl-CViZ0jmN.js → TransactionVendorDetailPage-DzkUYyCr-CDrpLHNP.js} +6 -6
- package/dist/assets/{TransferDrawerPage-BKWQEojA-CbMkqPsC.js → TransferDrawerPage-B9MGSdS9-CzcQLCyn.js} +28 -28
- package/dist/assets/{TreasuryOverviewPage-D1D2WipM-Pwv9-UGk.js → TreasuryOverviewPage-BEzBuOWn-BGywb4hM.js} +31 -31
- package/dist/assets/{TreasuryPromoPage-BKgJHnC1-DyZjT5wh.js → TreasuryPromoPage-C8X4X7iN-D0YArboa.js} +15 -15
- package/dist/assets/TreasurySetupPage-Cb_GW75l-CXuYmMxJ.js +152 -0
- package/dist/assets/{TreasuryStatementsPage-DKHWWnrU-B3Bgyu2R.js → TreasuryStatementsPage-sOiD2QYm-_sZuOKSh.js} +7 -7
- package/dist/assets/{TreasuryTaxLetterPage-ieX9MUQd-FaNLEXUv.js → TreasuryTaxLetterPage-DYzqfHym-58oHHynw.js} +7 -7
- package/dist/assets/{TreasuryTransferOrReviewPage-DebuIwR3-DyjGtRDG.js → TreasuryTransferOrReviewPage-CesaUuNp-BPIM69Eo.js} +85 -85
- package/dist/assets/{TrendChart-B3VgdtYY-Dy5fluFV.js → TrendChart-kwGU0d90-GuSGL0hJ.js} +3 -3
- package/dist/assets/{TrendWithTransactions-BMorBxWJ-C0G8In8o.js → TrendWithTransactions-CUlTYGIm-CezwwQyi.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-BtmfySl9-BN2ZnER4.js → UncategorizedAccountsMappingPage-D76VPNEd-0jriRkP3.js} +15 -15
- package/dist/assets/{UnitIntegrationPage-ByqJQgJ1-BX7a3DQa.js → UnitIntegrationPage-BsZCe-lq-DHXBulD5.js} +4 -4
- package/dist/assets/{UploadAdditionalDocumentOverlay-Dwv3x7HQ-Ct27O0zE.js → UploadAdditionalDocumentOverlay-B3tUNhKj-B-Cnmuf3.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BVCUSOMr-BGHN4Pyc.js → Vendor2FAPopup-Bk-WKgMh-DEL2u-h6.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-Cyp1bTJx-DCBHt584.js → VendorACHDetailsPage-u8a3XF33-D560uVGS.js} +1 -1
- package/dist/assets/{VendorDetailPage-1_rVoehK-BobdIlMd.js → VendorDetailPage-B-RdB79n-DCaK7fJL.js} +15 -15
- package/dist/assets/{VendorDomesticWireDetailsPage-B0wv2GP--DTrjpRQD.js → VendorDomesticWireDetailsPage-Bhb1Dmge-CBaHEUU6.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-C5rHkQrV-CdnxzjBF.js → VendorFiling1099EditablePage-DHRivhBg-D2O_5fGv.js} +10 -10
- package/dist/assets/{VendorFirstReviewPage-CDlmZHmw-F8vzLeda.js → VendorFirstReviewPage-Cn2GBsyl-Crwyd647.js} +29 -29
- package/dist/assets/{VendorInternationalWireDetailsPage-Cdy000Jx-D5vc2ds4.js → VendorInternationalWireDetailsPage-Cjx1hvUL-CfeyeaMQ.js} +7 -7
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DRN-5n5Y-BNzUBPow.js → VendorInternationalWireSwiftDetailsPage-BszRCCDh-BwXuAv_8.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Ba7QpWAm-BA29ezpA.js → VendorsAccountsSection-D6VSJUo1-D3zBJygS.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-DCUPzxfi-Cw0kcPsl.js → WarningsDrawerPage-DReVGPEj-CByBNeKa.js} +4 -4
- package/dist/assets/{ZeniAccountDetailPage-DF7Tn3t3-Bb4ItLLQ.js → ZeniAccountDetailPage-CFTB_WYX-BNpX3bjE.js} +28 -28
- package/dist/assets/{ZeniAccountListViewPage-Cz9v3TCo-DC90elHU.js → ZeniAccountListViewPage-BmYgbIuC-CB7ObKhn.js} +18 -18
- package/dist/assets/ZeniAccountNavBarPieces-gzy5T7nu-3EZY4gW6.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-D7veJGZk-CE2g39oZ.js → ZeniAccountPromoPage-AfRVTc8V-Ck8cpTYF.js} +10 -10
- package/dist/assets/{ZeniAccountSetupPage-ftl559Pj-DUN6Xu8R.js → ZeniAccountSetupPage-YXJmpz_d-DVvqqczO.js} +1 -1
- package/dist/assets/{ZeniCopyright-BScA_p2_-3vVWZkac.js → ZeniCopyright-CqpcrgAZ-sq7_yXnA.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Bu23FZCA-L2os7fMa.js → ZeniTransferAmountSlider-DGkzRyMW-Btixfh5b.js} +1 -1
- package/dist/assets/analytics-DThoELaW.js +7 -0
- package/dist/assets/{analyticsHelper-SSZc85h7.js → analyticsHelper-adG_BjY9.js} +1 -1
- package/dist/assets/{analyticsHelper-CGq-fGOi-CdOAgckK.js → analyticsHelper-sgo3pabT-K1toqw66.js} +1 -1
- package/dist/assets/{chartTypes-ChsIdl40-BAMg3Yoy.js → chartTypes-Dj-_K0Gi-BTPAwFj5.js} +1 -1
- package/dist/assets/{commonDimensions-Dk1fkj7r-DiuY44GO.js → commonDimensions-CKgBEMhT-DV1PneSk.js} +1 -1
- package/dist/assets/{detailCommon-BdiFpATU-C4tIDJfX.js → detailCommon-vtB2ffbe-CI1tw59v.js} +6 -6
- package/dist/assets/{downloadPdf-h21F3Bzk-BukvqPr-.js → downloadPdf-CiC0AXNH-BaYefCbJ.js} +1 -1
- package/dist/assets/{index-BU_OFOHO.js → index-nrhSmhQT.js} +3364 -3324
- package/dist/assets/{liveblocks-BUGn2yQ6.js → liveblocks-sSQ9JElv.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-Bimz-BOL-DbOC86fY.js → mapLoadingInProgressToTreeNode-0MIZwF_y-C-JcxjaL.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Dy2RH2lH--F7hkKSm.js → mapSectionWithAcOnlyToTreeNode-CWaIGa37-TStxu4Jm.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CadZGfr8-BC_KRXsY.js → mapSpacerToTreeNode-1Bdqp9WS-BwfPBFlV.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BvXiirfs-BVF2yIEM.js → mapTimeframeBalancesToTreeNode-MPZhFWqo-BaV0QGS3.js} +1 -1
- package/dist/assets/mui-C5LQ0bMa.js +25 -0
- package/dist/assets/{play-icon-DD7TfH-R-DFC4jJ2P.js → play-icon-CF-Mkuir-DlDAGdqf.js} +1 -1
- package/dist/assets/{redux-DmDqXYej.js → redux-ByjIRbhZ.js} +1 -1
- package/dist/assets/{routing-BNz5gZgX.js → routing-Cpaypegg.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-Dy9J_UtA-BOr91SlJ.js → toCOABalancesWithID-D1BwrImS-goHqPuef.js} +1 -1
- package/dist/assets/{toChartData-BdomEAJ--DsSFVPa5.js → toChartData-DVTo0PPD-CtviYuE-.js} +1 -1
- package/dist/assets/{treasuryColorHelper-D2LtJllD-vFc_5JFm.js → treasuryColorHelper-QzSX5YTe-9nXuNVNj.js} +1 -1
- package/dist/assets/{uploadAttachment-C5PL0FaC-BEd4sEZo.js → uploadAttachment-BxwOR3I5-CYLMnUD6.js} +29 -29
- package/dist/assets/{uploadReceipts-BH9fi3Vt-Dy17GpvZ.js → uploadReceipts-Buvz7DfG-D9z5xpPz.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +5 -5
- package/dist/assets/AccountInfoPage-d3ST-rTL-C3RGUA9e.js +0 -18
- package/dist/assets/AccountRow-t4I1y-2K-CtaiIm2n.js +0 -298
- package/dist/assets/BillingSettingsPage-CmvoTc8r-DeChOFZr.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-OSbHVAMk-DHypnLOn.js +0 -1
- package/dist/assets/ChargeCardPromoPage-BzcIsHeK-DWt1qpzp.js +0 -175
- package/dist/assets/CheckDepositDrawerPage-BwJ5tAF--BOjUwQ0e.js +0 -206
- package/dist/assets/ConfettiBurst-MKPxinI7-D5PjCF0D.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-D2xC_a0G-Edo-ai-j.js +0 -1
- package/dist/assets/CustomerOnboardingPage-Cuf1lJmu-DJVUg9pf.js +0 -107
- package/dist/assets/Dashboard-DnR1KvYd-qcmjh10k.js +0 -778
- package/dist/assets/DomesticWireDetailsPage-Bvmpk8LN-Cb6zfshw.js +0 -21
- package/dist/assets/EditPeoplePage-BTnhywM--C7FSnENf.js +0 -55
- package/dist/assets/HelpButton-BKCFqzW3-mV3KEyfP.js +0 -28
- package/dist/assets/InvitePeoplePage-fzgtceuE-Ds-gEhhL.js +0 -12
- package/dist/assets/LabeledDocumentField-Dv4qzOY0-B2ZnIaW5.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-BFMEaVfR-Cbq5gKFg.js +0 -59
- package/dist/assets/NoDataChart-BsN_tNbW-DRgn1703.js +0 -26
- package/dist/assets/NotificationsListConfig-DtsQwW2b-D98CVoY-.js +0 -1
- package/dist/assets/StatementsPage-B73U7d9e-DHwgyw8_.js +0 -58
- package/dist/assets/TaskManagementPage-LDFC29Ik-C44JMD6X.js +0 -508
- package/dist/assets/TimeframeSwitcherWithToggle-BiHAqit5-BfVPVHhs.js +0 -31
- package/dist/assets/TreasurySetupPage-C2JtTOhh-C5WOQnSa.js +0 -152
- package/dist/assets/ZeniAccountNavBarPieces-BSObmR0D-Dr6kpot6.js +0 -14
- package/dist/assets/analytics-BSSiLa6f.js +0 -7
- package/dist/assets/mui-BgvZYSo0.js +0 -22
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{X as U,u as W,M as y,
|
|
1
|
+
import{X as U,u as W,M as y,t as le,l as b,j as i,Y as L,be as de,aY as pe,aW as ue,C as B,o as C,a5 as he,d as fe,bf as me,p as w,D as A,H as q,bg as ge,a7 as _e,aB as be,a_ as Se}from"./index-nrhSmhQT.js";import{b as T,f as K,n as _}from"./vendor-CnQcJ2Lu.js";import{m as D,l as Y}from"./analyticsHelper-sgo3pabT-K1toqw66.js";import{e as we}from"./ReportTableViewSelector-_RTCd2td-Bc2QvO79.js";import{a as X,p as Ce}from"./TimeRangeSwitcher-BoPrOhKX-BejCCLXp.js";import{M as ye}from"./TimeframeSwitcherWithToggle-BKwe3K9l-4nzCluDg.js";import{DownloadOverlayButton as xe}from"./DownloadOverlay-Cl_EXjiu-_W4-6wVr.js";import{a as Oe,r as M,b as J}from"./CollapsableReportTable-DshWn4Fc-1Ky5jq0N.js";import{T as Q,I as ee,L as $,D as Ae,g as te}from"./mapSectionWithAcOnlyToTreeNode-CWaIGa37-TStxu4Jm.js";import{s as G}from"./mapTimeframeBalancesToTreeNode-MPZhFWqo-BaV0QGS3.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-DufweySH-PZfP9LZt.js";import"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./AccountRow-D4iz2vCr-FZzwmYfW.js";function se({section:e,sectionId:t,numOfBalances:o,config:a}){return J("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(s=>Be({accountGroup:s,sectionType:t,numOfBalances:o,title:s.accountGroupName,isLastNode:!0,config:a}))}function Be({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:s,config:l}){const p=M("section",[],a+t),d={children:[],id:p,isLastNode:s,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:l}},n=J("no_filter",l.filterAccountsWithNilBalances,l.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),g=n.map((r,u)=>te({account:r,sectionType:t,numOfBalances:o,title:r.account.accountName,config:l,isLastNode:u===n.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:n.length>1,hasChildren:r.children.length>0,isLastNode:u===n.length-1}]}}));return d.children.push(...g),d}function ne({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((s,l)=>te({account:s,sectionType:t,numOfBalances:o,title:s.account.accountName,config:a,isLastNode:l===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:s.children.length>0,isLastNode:l===e.accounts.length-1}]}}))}function oe({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Re(e,t,o,a=!0){Object.assign(e.config,t);const s=ae(o),l=G({balances:s,config:t});return{config:t,headerNodes:a?[l]:[],contentNodes:[l,...e.contentNodes.slice(1)]}}const ae=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function ve(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,s=y.getLocalizedStrings().reports.balanceSheet,l=ae(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&l.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,d=oe({balances:l,config:t}),n=[];return n.push(d),Object.keys(e.rootSectionsWithSubSectionIds).forEach(g=>{const r=M("title_string_only",[],g),u={children:[],id:r,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[g],data:void 0,numOfBalances:0},config:t}};n.push(u),e.rootSectionsWithSubSectionIds[g].forEach(c=>{if(b.isBalanceSheetReportViewSectionID(c)===!0)if(e.sections[c].accountGroups.length>0)if(c==="equity"){const f=se({sectionId:c,section:e.sections[c],numOfBalances:p,config:t});n.push(...f)}else n.push(Q({section:e.sections[c],sectionType:c,numOfBalances:p,title:s[c],isLastNode:!0,config:t}));else if(c==="equity"){const f=ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:p,config:t});n.push(...f)}else{const f=e.sections[c];n.push(ee({sectionWithAcOnly:f,sectionType:c,numOfBalances:p,title:s[c],isLastNode:!0,config:t}))}else b.isBalanceSheetReportViewCalculatedSectionID(c)===!0&&n.push($({calculatedSection:e.calculatedSections[c],numOfBalances:p,title:s[c],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[d]:[],contentNodes:n}}function Te({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:s}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:s}}}function Le(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,s=y.getLocalizedStrings().reports.cashFlow,l=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&l.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,d=oe({balances:l,config:t}),n=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(g=>{const r=M("title_string_only",[],g),u={children:[],id:r,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[g],data:void 0,numOfBalances:0},config:t}};n.push(u),e.rootSectionsWithSubSectionIds[g].forEach(c=>{if(b.isCashFlowReportViewSectionID(c)===!0)if(e.sections[c].accountGroups.length>0){const f=se({sectionId:c,section:e.sections[c],numOfBalances:p,config:t});n.push(...f)}else{const f=ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:p,config:t});n.push(...f)}else b.isCashFlowReportViewCalculatedSectionType1ID(c)===!0?n.push(Te({calculatedSection:e.calculatedSections[c],numOfBalances:p,title:s[c],isLastNode:!0,config:t})):b.isCashFlowReportViewCalculatedSectionID(c)===!0&&n.push($({calculatedSection:e.calculatedSections[c],numOfBalances:p,title:s[c],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[d]:[],contentNodes:[d,...n]}}function ke(e,t,o=!0){const a=y.getLocalizedStrings().reports,s=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],l=t.mode!=null&&t.mode==="this_period_vs_period_before"&&s.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=G({balances:s,config:t}),d=[];return d.push(p),e.idsInOrder.forEach(n=>{b.isPandLReportViewSectionID(n)===!0?d.push(Ae({section:e.sections[n],sectionType:n,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t})):b.isPandLReportViewCalculatedSectionID(n)===!0&&d.push($({calculatedSection:e.calculatedSections[n],numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:d}}function Ne(e,t,o=!0){const a=y.getLocalizedStrings().reports,s=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],l=t.mode!=null&&t.mode==="this_period_vs_period_before"&&s.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=G({balances:s,config:t}),d=[];return d.push(p),e.idsInOrder.forEach(n=>{if(b.isPandLReportViewSectionID(n)===!0&&(e.sections[n].accountGroups.length>0?d.push(Q({section:e.sections[n],sectionType:n,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t})):d.push(ee({sectionWithAcOnly:e.sections[n],sectionType:n,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t}))),b.isPandLReportViewCalculatedSectionID(n)===!0){const g=e.calculatedSections[n];g!=null&&d.push($({calculatedSection:g,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:d}}const H={contentPaddingLeft:new B(w[0],w[0],w[0]),contentPaddingRight:new B(w[3],w[3],w[8])},Pe=_.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${C.sp2};
|
|
5
5
|
background-color: ${e=>e.theme.colors.grey4};
|
|
6
|
-
`;function Ie({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:s,onAdditionalBalanceSelectionChanged:l,onAccountBalanceClick:p,onTableScroll:d,onElementCollapseStateChanged:n,isCompareModeOn:g}){const r=U(),u=W(),[c,f]=T.useState(void 0),[F,N]=T.useState(void 0),
|
|
6
|
+
`;function Ie({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:s,onAdditionalBalanceSelectionChanged:l,onAccountBalanceClick:p,onTableScroll:d,onElementCollapseStateChanged:n,isCompareModeOn:g}){const r=U(),u=W(),[c,f]=T.useState(void 0),[F,N]=T.useState(void 0),R=!(r==="small"||r==="medium-compact"),j="name+balances_actual",E=g===!0?"this_period_vs_period_before":"none",x=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const h=e;m=(h.sections.expenses.balances.length>0?h.sections.expenses:h.sections.income).additionalBalances.map(V=>b.toTimeframeTick(V));break}case"profit_and_loss_by_classes":{const h=e;m=(h.sections.expenses.balances.length>0?h.sections.expenses:h.sections.income).additionalBalances.map(V=>b.toTimeframeTick(V));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(h=>b.toTimeframeTick(h));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(h=>b.toTimeframeTick(h));break}}return m.length>0&&m.find(h=>h.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:E,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Se(),showClassAccountNumber:s};if(c==null||!q(F,e)){const h=Me(e,m,R);N(e),f(h)}else{const h=Re(c,m,e,R);f(h)}},[g,e]);const[O,P]=T.useState(5),I=m=>{const h=m+135;P(h)},re=m=>m?.trackPageLoaded($e(e));return c!=null?i.jsxs(i.Fragment,{children:[i.jsx(ge,{analytics:a,onLoad:re}),i.jsx(Pe,{height:O,children:i.jsx(Oe,{backgroundColor:new _e(u.colors.grey4),rootNodes:c,type:j,compareMode:x(),isSticky:{isStickyHeader:R,isStickyName:R},treeNodePadding:{left:H.contentPaddingLeft.value(r),right:H.contentPaddingRight.value(r)},onAccountClick:p==null?void 0:(m,h)=>{p(m,h)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>l?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,h)=>n?.(e.reportId,m,h),onReportTableHeightChanged:I,onScroll:m=>d?.(e.reportId,m)})})]}):null}const Me=(e,t,o=!0)=>{switch(e.reportId){case"profit_and_loss":return Ne(e,t,o);case"profit_and_loss_by_classes":return ke(e,t,o);case"cash_flow":return Le(e,t,o);case"balance_sheet":return ve(e,t,o);default:return}},$e=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},Fe=_.div`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
@@ -49,19 +49,19 @@ import{X as U,u as W,M as y,w as le,l as b,j as i,Y as L,bg as de,aY as pe,aW as
|
|
|
49
49
|
width: 160px;
|
|
50
50
|
left: 63%;
|
|
51
51
|
}
|
|
52
|
-
`;function De({reportId:e,isSelected:t,onClick:o}){const a=s=>{switch(s){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[s];default:return console.warn("Unsupported report"),""}};return i.jsx(Ee,{"data-testid":L("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function ze({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=s=>{o?.(s)};return i.jsx(Fe,{"data-testid":L("report-switcher-container"),children:i.jsx(je,{"data-testid":L("report-switcher-content"),children:e.map(s=>s!=="profit_and_loss_by_classes"&&i.jsxs("div",{children:[i.jsx(De,{reportId:s,isSelected:t===s,onClick:a}),i.jsx(Ve,{className:`Slider ${t}`})]},`reportSegment-${s}`))})})}const k={contentContainerLeftRightMargin:new
|
|
52
|
+
`;function De({reportId:e,isSelected:t,onClick:o}){const a=s=>{switch(s){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[s];default:return console.warn("Unsupported report"),""}};return i.jsx(Ee,{"data-testid":L("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function ze({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=s=>{o?.(s)};return i.jsx(Fe,{"data-testid":L("report-switcher-container"),children:i.jsx(je,{"data-testid":L("report-switcher-content"),children:e.map(s=>s!=="profit_and_loss_by_classes"&&i.jsxs("div",{children:[i.jsx(De,{reportId:s,isSelected:t===s,onClick:a}),i.jsx(Ve,{className:`Slider ${t}`})]},`reportSegment-${s}`))})})}const k={contentContainerLeftRightMargin:new B(w[3],w[3],w[8]),contentRightPadding:new B(w[3],w[3],w[8]),tickSkelectionContainerWidth:new B(343,600,905,1240)},Ue=new B(4,4),We=new B(4,4),Ge={selectedNumberOfPeriods:(e,t)=>e?We.value(t):Ue.value(t)},Ye=_.div`
|
|
53
53
|
display: flex;
|
|
54
54
|
flex: 1 1 auto;
|
|
55
55
|
min-height: 100%;
|
|
56
56
|
flex-direction: column;
|
|
57
57
|
background-color: ${e=>e.theme.colors.grey4};
|
|
58
|
-
`,
|
|
58
|
+
`,He=_.div`
|
|
59
59
|
display: flex;
|
|
60
60
|
flex: 1 1 auto;
|
|
61
61
|
flex-direction: column;
|
|
62
62
|
height: calc(100vh - ${C.sp10});
|
|
63
63
|
margin: ${e=>`${C.sp2} ${C.sp0} ${C.sp0} ${k.contentContainerLeftRightMargin.valuePx(e.windowSize)}`};
|
|
64
|
-
`,
|
|
64
|
+
`,Ze=_.div`
|
|
65
65
|
display: flex;
|
|
66
66
|
width: 100%;
|
|
67
67
|
height: 100%;
|
|
@@ -79,7 +79,7 @@ import{X as U,u as W,M as y,w as le,l as b,j as i,Y as L,bg as de,aY as pe,aW as
|
|
|
79
79
|
flex-direction: column;
|
|
80
80
|
justify-content: center;
|
|
81
81
|
align-items: center;
|
|
82
|
-
`,
|
|
82
|
+
`,Xe=_.div`
|
|
83
83
|
height: 96px;
|
|
84
84
|
width: 96px;
|
|
85
85
|
background: ${e=>e.theme.colors.background};
|
|
@@ -94,10 +94,10 @@ import{X as U,u as W,M as y,w as le,l as b,j as i,Y as L,bg as de,aY as pe,aW as
|
|
|
94
94
|
color: ${e=>e.theme.colors.primary};
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`,Je=_(he)`
|
|
98
98
|
margin-top: ${C.sp3};
|
|
99
99
|
color: ${e=>e.theme.colors.hero};
|
|
100
|
-
`,ie=({style:e,fetchState:t})=>t==="In-Progress"||t==="Not-Started"?i.jsx(
|
|
100
|
+
`,ie=({style:e,fetchState:t})=>t==="In-Progress"||t==="Not-Started"?i.jsx(Ze,{style:e,children:i.jsx(fe,{size:"ExtraLarge",start:!0})}):null,S=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},z=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let s=Ge.selectedNumberOfPeriods(t,o);return a!=null&&(s=Math.min(s,a)),s};function Tt(e){const t=U(),o=W(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:s,onAdditionalBalanceSelectionChanged:l,onTimeframeSelectionChanged:p,isCompareMode:d,selectedReportAndTimeframeFetchState:n,onClickMenuIcon:g}=e,r=(x,O)=>{x!==u?.accountViewMode&&a?.(x),O&&s?.(O)};T.useEffect(()=>{if(e.fetchState==="Completed"){const x=S(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(x,e.isCompareMode,z({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const u=tt(e),c=y.getLocalizedStrings().reports.common,f=le(),F=f!=null&&b.hasInvestorBankerLevelAccess(f.loggedInUserRole)?"detailed":"more_detailed",N=f!=null&&b.hasInvestorBankerLevelAccess(f.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&u?.accountViewMode==="account_group"&&N.push("detailed");const[R,j]=K.useState(N.includes("more_detailed")?"detailed":"more_detailed"),E={selectedFormat:R,disabledFormatForRole:N,roleBasedClassesSelectedFormat:F,setSelectedFormat:j};if(n.fetchState==="Error"||e.fetchState==="Error")return i.jsxs(Ke,{"data-testid":L("report-page-error-reload-page"),children:[i.jsx(Xe,{"data-testid":L("report-page-error-reload-icon"),onClick:e.onReloadReport,children:i.jsx(de,{})}),i.jsx(Je,{children:c.failed})]});if(n.fetchState!=="Completed"&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"))return i.jsx(ie,{fetchState:e.fetchState});{const x=i.jsx(pe,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:u!=null&&e.dataAvailable!=null?i.jsx(xe,{defaultOptions:u,analytics:e.analytics,referrer:v(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:E,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:r,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(O,P,I)=>{l(d,O,P,I)},onTimeframeSelectionChanged:(O,P,I)=>{p?.(O,P,I)}}):i.jsx(i.Fragment,{})}}});return i.jsxs(Ye,{children:[i.jsx(ue,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:g,rightSideComponent:x,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),i.jsx(Qe,{...e})]})}}function Qe(e){const t=U(),o=W(),a=T.useRef(null),{selectedReportAndTimeframeFetchState:s}=e,l=["month","quarter","year"],p=(r,u)=>{e.analytics?.trackCompareFilterChange(r==="this_period_vs_last_period_percent"?"percentage":"amount",v(e.selectedReport),D(e.selectedTimeframe),u);const c=Array.from(new Set(r==="this_period_vs_last_period_percent"?[...S(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(f=>f!=="this_period_vs_last_period"):[...S(e).filter.additionalBalances,"this_period_vs_last_period"].filter(f=>f!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,c,z({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},d=(r,u)=>{r!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(r),u&&e.onUpdateClassesToFilterOut?.(u)},n=S(e),g=a.current?.clientWidth??k.tickSkelectionContainerWidth.value(t);return i.jsxs(He,{windowSize:t,"data-testid":L("reports-page-content-container"),children:[i.jsx(ot,{windowSize:t,ref:a,children:i.jsx(ye,{timeframe:{allowedTimeframes:l,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:r=>{e.analytics?.trackTimeframeSwitch(D(r),v(e.selectedReport)),e.onTimeframeSelectionChanged?.(r,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:r=>{e.analytics?.trackCompareMode(r,v(e.selectedReport),D(e.selectedTimeframe));const u=S(e).filter;e.onAdditionalBalanceSelectionChanged?.(r,u.additionalBalances,u.balancesRange.numberOfPeriods)}}})}),s.fetchState==="Not-Started"||s.fetchState==="In-Progress"?i.jsx(it,{windowSize:t,children:i.jsx(ct,{children:i.jsx(me,{width:g,height:X-w[2],backgroundColor:o.colors.grey3,style:{borderRadius:C.sp2}})})}):i.jsx(at,{windowSize:t,children:i.jsx(Ce,{firstMonthOfFY:n.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Z(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Z(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(r,u)=>{e.analytics?.trackDateRangeFilterChange(v(e.selectedReport),"range filter",e.isCompareMode,Y(n.firstMonthOfFY,e.selectedTimeframe,u)),e.onThisPeriodChanged?.(u,z({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:r=>{const u=et(e.allTimeframeTicks,r.fromEnd);e.analytics?.trackDateRangeFilterChange(v(e.selectedReport),"range filter",e.isCompareMode,Y(n.firstMonthOfFY,e.selectedTimeframe,u.thisPeriod)),e.onCOABalancesRangeChanged?.(u)}})}),i.jsx(rt,{windowSize:t,children:i.jsx(ze,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:r=>{e.analytics?.trackPageLoaded(st(r)),r==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(r)}})}),s.fetchState==="Not-Started"||s.fetchState==="In-Progress"?i.jsx(ie,{style:{boxShadow:"none",backgroundColor:"inherit"},fetchState:s.fetchState}):i.jsxs(i.Fragment,{children:[i.jsx(ce,{report:S(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser}),b.isPAndLReport(e.selectedReport)?i.jsx(qe,{windowSize:t,children:i.jsx(we,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:d,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode})}):null]})]})}const Z=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},et=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function tt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,d=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(d!=null&&d.balances.length>0){const n=p==="ascending_date"?d.balances.length-1:0;t=d.balances[n]}}const o=S(e).firstMonthOfFY,a=S(e).bookCloseDate,s=S(e).dataAvailable,l=S(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:s,timeframe:e.selectedTimeframe,additionalBalances:l,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const v=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},st=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ce=K.memo(Ie,(e,t)=>nt(e,t,["report","analytics","isCompareModeOn","isZeniUser"]));ce.displayName="Reports table";const nt=(e,t,o)=>o.reduce((a,s)=>a===!0&&q(e[`${s}`],t[`${s}`]),!0),ot=_.div`
|
|
101
101
|
padding-right: ${e=>k.contentRightPadding.valuePx(e.windowSize)};
|
|
102
102
|
`,at=_.div`
|
|
103
103
|
margin-top: ${C.sp3};
|
|
@@ -109,7 +109,7 @@ import{X as U,u as W,M as y,w as le,l as b,j as i,Y as L,bg as de,aY as pe,aW as
|
|
|
109
109
|
display: flex;
|
|
110
110
|
flex-direction: row;
|
|
111
111
|
justify-content: flex-start;
|
|
112
|
-
min-height: ${
|
|
112
|
+
min-height: ${X}px;
|
|
113
113
|
box-sizing: content-box;
|
|
114
114
|
width: 100%;
|
|
115
115
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as A,j as a,M as D,X as de,Y as Ae,
|
|
1
|
+
import{u as A,j as a,M as D,X as de,Y as Ae,ai as Q,b5 as Te,p as E,b6 as J,au as ee,v as M,at as ae,aa as re,b7 as oe,b8 as ge,o as m,b9 as te,g,H as Fe,ba as pe,bb as me,C as xe,bc as fe,q as R,bd as F,ao as V}from"./index-nrhSmhQT.js";import{b as P,f as le,n as x}from"./vendor-CnQcJ2Lu.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-Dj-_K0Gi-BTPAwFj5.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-D1BwrImS-goHqPuef.js";import{V as Z}from"./toChartData-DVTo0PPD-CtviYuE-.js";const q={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Ve=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{X as vt,w as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It,cF as le,cG as kt,l as d,cH as Pt,cI as At,Y as j,cJ as Mt,_ as A,cK as Bt,cL as Nt,cM as Ae,cN as Me,cO as Be,q as K,cP as O,cQ as z,cR as _,g as S,cS as Rt,cT as Ft,cU as Et,cV as Lt,bu as Ne,o as n,a7 as Ot,p as c,b as zt,bq as _t,Q as Wt,h as Ut,cW as Zt,ah as Ht,s as se,f as de,cX as Yt,cY as Vt,cZ as Kt,k as qt,as as Gt,Z as Xe,b6 as Xt,v as Je,aN as Jt,c_ as Qt}from"./index-BU_OFOHO.js";import{b as U,n as i}from"./vendor-CnQcJ2Lu.js";import{t as en,o as tn}from"./LowBalancePopup-OSUi1Alp-BiLt2AdI.js";import{S as W}from"./LabeledText-D9feJraX-o9BoQjAH.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";const Qe=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Re,common:{currency:T,labels:Fe,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=ln,Le=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Yt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:J,retryPayment:ot})=>{const s=vt(),m=Tt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,R=`dashboard_${m.currentTenant?.companyId}`,F=p.largeLabelWidth.value(s),E=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Re.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Pn,{size:s,children:t.jsx(kn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(E?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(me(),ue(),ye())},[E,Q,ye,me,ue]);const v=e.billPayInfo?.stage,k=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=v?.code==="paid"?v:k?.code=="approved"&&Z?.code?Z:k,pt=e.billPayInfo?.isRefundInitiated===!0?mt:k?.code=="approved"&&Z?.code?Z:k,ne=()=>{ce()},be=()=>{ce()},H=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(kt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,Y=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",v?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(v?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},P=g&&(v?.code!=null?v.code==="draft"||k?.code==="approved":!0),b=P&&!it,ve=Oe(b,Y,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===T.currencyCode?Ft(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?Pt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Re.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=v?.code??"draft",Ce=k?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",ke=Qt(m.loggedInUser),Pe=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";ve===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,ke,Pe):ve===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,ke,Pe)}}},Te=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",v?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:E?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(At,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:H?.format(D)??"",paymentType:we,amount:A("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(Ye,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ye,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(Tn,{children:a.duplicateBillPayWarning}),t.jsxs(vn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(En,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Qe.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ke,{})}),t.jsx(G,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(qe,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(G,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ge,{children:r!=null?Ae.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ke,{})}),t.jsxs(Fn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(G,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(G,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(qe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Ge,{children:r!=null?Ae.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ze,{children:a.pay}),t.jsx(He,{children:t.jsx(Be,{amount:yt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ze,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:F},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Rt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:F},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(q,{}),!g&&H!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:F},style:{width:"auto"},value:H.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(H.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(q,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:F},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:F},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==T.currencyCode?Ee.conversionAmountColon:Fe.invoiceAmount}),t.jsx(oe,{children:A("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Ee.transactionFee}),t.jsx(oe,{children:A("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Fe.total}),t.jsx(oe,{children:A("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?$e:ne,style:{width:ze(!1,P,b,Y,s)}},primaryBtn:{label:Oe(b,Y,e.isBillMarkedForRetry),isLoading:E?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):Te()},style:{width:ze(!0,P,b,Y,s)}},rightSideComponent:P&&!b&&E.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(An,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
|
|
1
|
+
import{X as vt,t as Tt,C as y,cA as jt,M as St,cB as Ct,cC as Dt,j as t,cD as It,cE as le,cF as At,l as d,cG as Pt,cH as kt,Y as j,cI as Mt,_ as k,cJ as Bt,cK as Nt,cL as ke,cM as Me,cN as Be,v as q,cO as O,cP as z,cQ as _,g as S,cR as Ft,cS as Rt,cT as Et,cU as Lt,bs as Ne,o as n,a3 as Ot,p as c,b as zt,bo as _t,Q as Wt,h as Ut,cV as Ht,bF as Yt,q as se,f as de,cW as Zt,cX as Vt,aA as qt,k as Gt,an as Kt,Z as Xe,b4 as Xt,w as Qe,aN as Qt,cY as Jt}from"./index-nrhSmhQT.js";import{b as U,n as i}from"./vendor-CnQcJ2Lu.js";import{t as en,o as tn}from"./LowBalancePopup-CdftTvLb-DzgqRFO5.js";import{S as W}from"./LabeledText-CyXj8QWV-DunmbzZf.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Fe,common:{currency:T,labels:Re,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=ln,Le=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Zt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=vt(),m=Tt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,F=`dashboard_${m.currentTenant?.companyId}`,R=p.largeLabelWidth.value(s),E=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Fe.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Pn,{size:s,children:t.jsx(An,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(E?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[E,J,ye,me,ue]);const v=e.billPayInfo?.stage,A=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=v?.code==="paid"?v:A?.code=="approved"&&H?.code?H:A,pt=e.billPayInfo?.isRefundInitiated===!0?mt:A?.code=="approved"&&H?.code?H:A,ne=()=>{ce()},be=()=>{ce()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,Z=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",v?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(v?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},P=g&&(v?.code!=null?v.code==="draft"||A?.code==="approved":!0),b=P&&!it,ve=Oe(b,Z,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===T.currencyCode?Rt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?Pt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Fe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=v?.code??"draft",Ce=A?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Ae=Jt(m.loggedInUser),Pe=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";ve===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Ae,Pe):ve===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Ae,Pe)}}},Te=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",v?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:E?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(Ze,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ze,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(Tn,{children:a.duplicateBillPayWarning}),t.jsxs(vn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(En,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ge,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Fn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(qe,{})}),t.jsxs(Rn,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ge,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(Ke,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(He,{children:a.pay}),t.jsx(Ye,{children:t.jsx(Be,{amount:yt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ye,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Ft(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(G,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(G,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:Y.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(G,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(G,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==T.currencyCode?Ee.conversionAmountColon:Re.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Ee.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Re.total}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?$e:ne,style:{width:ze(!1,P,b,Z,s)}},primaryBtn:{label:Oe(b,Z,e.isBillMarkedForRetry),isLoading:E?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):Te()},style:{width:ze(!0,P,b,Z,s)}},rightSideComponent:P&&!b&&E.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(kn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
|
5
5
|
&:hover {
|
|
6
6
|
color: ${e=>e.theme.colors.primary};
|
|
7
7
|
}
|
|
8
|
-
`,_e=i(
|
|
8
|
+
`,_e=i(Qe)`
|
|
9
9
|
display: flex;
|
|
10
10
|
justify-content: space-between;
|
|
11
11
|
padding-bottom: ${n.sp1};
|
|
@@ -13,7 +13,7 @@ import{X as vt,w as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
13
13
|
color: ${e=>e.theme.colors.brandColorPearl};
|
|
14
14
|
`,re=i.div`
|
|
15
15
|
color: ${e=>e.theme.colors.hero};
|
|
16
|
-
`,rn=i(
|
|
16
|
+
`,rn=i(Qe)`
|
|
17
17
|
display: flex;
|
|
18
18
|
justify-content: space-between;
|
|
19
19
|
padding-top: ${n.sp1};
|
|
@@ -68,7 +68,7 @@ import{X as vt,w as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
68
68
|
border-radius: ${n.sp2};
|
|
69
69
|
margin-bottom: ${n.sp3};
|
|
70
70
|
margin-top: ${n.sp3};
|
|
71
|
-
`,
|
|
71
|
+
`,G=i.div`
|
|
72
72
|
display: flex;
|
|
73
73
|
flex: 1;
|
|
74
74
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -102,12 +102,12 @@ import{X as vt,w as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
102
102
|
`,vn=i(se)`
|
|
103
103
|
padding-bottom: ${n.sp3};
|
|
104
104
|
color: ${S.brandColorGoldDark};
|
|
105
|
-
`,Tn=i(
|
|
105
|
+
`,Tn=i(Yt)`
|
|
106
106
|
padding-top: ${n.sp3};
|
|
107
107
|
color: ${S.brandColorGoldDark};
|
|
108
108
|
`,Ue=i.div`
|
|
109
109
|
display: flex;
|
|
110
|
-
flex-direction: ${e=>
|
|
110
|
+
flex-direction: ${e=>Je.includes(e.windowSize)?"column":"row"};
|
|
111
111
|
width: 100%;
|
|
112
112
|
`,jn=i.div`
|
|
113
113
|
display: flex;
|
|
@@ -121,15 +121,15 @@ import{X as vt,w as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
121
121
|
`,Cn=i.div`
|
|
122
122
|
display: flex;
|
|
123
123
|
padding-top: ${n.sp3};
|
|
124
|
-
`,
|
|
124
|
+
`,He=i(Gt)`
|
|
125
125
|
display: flex;
|
|
126
126
|
color: ${e=>e.theme.colors.hero};
|
|
127
127
|
margin-right: ${n.sp1};
|
|
128
|
-
`,
|
|
128
|
+
`,Ye=i(Kt)`
|
|
129
129
|
display: flex;
|
|
130
130
|
color: ${e=>e.theme.colors.primary};
|
|
131
131
|
margin-right: ${n.sp1};
|
|
132
|
-
`,
|
|
132
|
+
`,Ze=i(_t)`
|
|
133
133
|
cursor: pointer;
|
|
134
134
|
color: ${e=>e.theme.colors.hero};
|
|
135
135
|
width: 20px;
|
|
@@ -152,7 +152,7 @@ import{X as vt,w as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
152
152
|
padding-left: ${n.sp0};
|
|
153
153
|
z-index: 2;
|
|
154
154
|
background-color: ${e=>e.theme.colors.grey4};
|
|
155
|
-
`,
|
|
155
|
+
`,An=i(zt)`
|
|
156
156
|
height: ${n.sp3};
|
|
157
157
|
width: ${n.sp3};
|
|
158
158
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -162,7 +162,7 @@ import{X as vt,w as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
162
162
|
margin-left: ${n.sp2};
|
|
163
163
|
margin-top: ${e=>p.iconContainerMarginTop.valuePx(e.size)};
|
|
164
164
|
align-self: ${e=>e.size==="small"?"baseline":"center"};
|
|
165
|
-
`,
|
|
165
|
+
`,kn=i(de)`
|
|
166
166
|
color: ${e=>e.theme.colors.grey1};
|
|
167
167
|
display: flex;
|
|
168
168
|
flex-wrap: wrap;
|
|
@@ -198,35 +198,35 @@ import{X as vt,w as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
198
198
|
display: flex;
|
|
199
199
|
align-items: center;
|
|
200
200
|
margin-right: ${n.sp1};
|
|
201
|
-
`,
|
|
201
|
+
`,qe=i(qt)`
|
|
202
202
|
cursor: pointer;
|
|
203
203
|
width: ${n.sp4};
|
|
204
204
|
height: ${n.sp4};
|
|
205
205
|
color: ${e=>e.theme.colors.hero};
|
|
206
|
-
`,
|
|
206
|
+
`,K=i(se)`
|
|
207
207
|
display: flex;
|
|
208
208
|
color: ${e=>e.theme.colors.hero};
|
|
209
209
|
align-items: center;
|
|
210
210
|
min-width: 142px;
|
|
211
211
|
flex-grow: 1;
|
|
212
|
-
`,
|
|
212
|
+
`,Ge=i(se)`
|
|
213
213
|
display: flex;
|
|
214
214
|
color: ${e=>e.theme.colors.primary};
|
|
215
215
|
align-items: center;
|
|
216
216
|
margin-right: ${e=>p.infoMarginRight.valuePx(e.windowSize)};
|
|
217
217
|
min-width: ${e=>p.infoMinWidth.valuePx(e.windowSize)};
|
|
218
218
|
justify-content: flex-end;
|
|
219
|
-
`,
|
|
219
|
+
`,Fn=i.div`
|
|
220
220
|
display: flex;
|
|
221
221
|
cursor: pointer;
|
|
222
222
|
column-gap: ${n.sp1};
|
|
223
223
|
margin-left: ${n.sp5};
|
|
224
|
-
`,
|
|
224
|
+
`,Ke=i.div`
|
|
225
225
|
width: 120px;
|
|
226
226
|
display: flex;
|
|
227
227
|
justify-content: flex-end;
|
|
228
228
|
align-items: center;
|
|
229
|
-
`,
|
|
229
|
+
`,Rn=i.div`
|
|
230
230
|
display: flex;
|
|
231
231
|
flex-grow: 1;
|
|
232
232
|
cursor: pointer;
|
|
@@ -260,7 +260,7 @@ import{X as vt,w as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
260
260
|
`,On=i(de)`
|
|
261
261
|
margin-top: ${n.sp3};
|
|
262
262
|
color: ${S.alert};
|
|
263
|
-
`,zn=i(
|
|
263
|
+
`,zn=i(Ht)`
|
|
264
264
|
min-width: ${n.sp4};
|
|
265
265
|
height: ${n.sp4};
|
|
266
266
|
width: ${n.sp4};
|
|
@@ -271,7 +271,7 @@ import{X as vt,w as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
|
|
|
271
271
|
display: flex;
|
|
272
272
|
justify-content: flex-end;
|
|
273
273
|
margin-right: ${e=>p.footerRightIconMarginRight.valuePx(e.windowSize)};
|
|
274
|
-
`,Wn=i(
|
|
274
|
+
`,Wn=i(Qt)`
|
|
275
275
|
cursor: pointer;
|
|
276
276
|
color: ${e=>e.theme.colors.hero};
|
|
277
277
|
width: ${n.sp4};
|
package/dist/assets/{ReviewOverlay-Bywh-8pJ-CohY-7e4.js → ReviewOverlay-DcBe94Sd-COJlSRKh.js}
RENAMED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import{X as B,j as e,Y as
|
|
1
|
+
import{X as B,j as e,Y as x,o as r,a3 as C,C as d,a2 as L,Q as M,h as W,g as s,q as y,b_ as R,d as I,w as j,az as D,p as n,ec as G,ax as A,ji as F,jj as J}from"./index-nrhSmhQT.js";import{n as t}from"./vendor-CnQcJ2Lu.js";const a={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},Q={title:new M("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const l=B();return e.jsxs(q,{children:[e.jsx(U,{windowSize:l,children:e.jsx(V,{children:e.jsx(Z,{windowSize:l,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(H,{windowSize:l,children:[e.jsxs(K,{windowSize:l,children:[e.jsx(N,{children:e.jsx(O,{windowSize:l,children:i})}),e.jsx(Y,{isError:p.isError,windowSize:l,children:p.content})]}),e.jsx(_,{windowSize:l,children:S.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return e.jsxs(ri,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?e.jsx(ci,{onClick:()=>P(o.id),"data-testid":x("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:X(o)}),e.jsxs(oi,{children:[e.jsxs(m,{children:[e.jsx(u,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),e.jsx(u,{isWarning:c,isError:h,children:o.rightSideText.title})]}),e.jsxs(m,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),b?e.jsx(C,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},X=i=>i.reviewStatus.isLoading?e.jsx(I,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(v,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(v,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(li,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(ai,{}),q=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${i=>i.theme.colors.grey4};
|
|
5
|
-
`,
|
|
5
|
+
`,H=t.div`
|
|
6
6
|
min-height: 100vh;
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
margin-top: ${i=>a.containerMarginTop.valuePx(i.windowSize)};
|
|
10
10
|
margin-bottom: ${r.sp8};
|
|
11
|
-
`,
|
|
11
|
+
`,K=t.div`
|
|
12
12
|
position: sticky;
|
|
13
13
|
top: ${r.sp0};
|
|
14
14
|
background-color: ${i=>i.theme.colors.grey4};
|
|
15
15
|
z-index: 1;
|
|
16
16
|
padding-left: ${i=>a.containerMarginLeft.valuePx(i.windowSize)};
|
|
17
17
|
padding-right: ${i=>a.containerMarginRight.valuePx(i.windowSize)};
|
|
18
|
-
`,
|
|
18
|
+
`,N=t.div`
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
|
-
`,
|
|
21
|
+
`,O=t(W)`
|
|
22
22
|
${i=>`${Q.title.style(i.windowSize)}`};
|
|
23
23
|
color: ${i=>i.theme.colors.primary};
|
|
24
24
|
margin-top: ${r.sp2};
|
|
25
25
|
margin-bottom: ${i=>a.titleMarginBotom.valuePx(i.windowSize)};
|
|
26
26
|
margin-right: ${i=>a.titleMarginRight.valuePx(i.windowSize)};
|
|
27
|
-
`,
|
|
27
|
+
`,Y=t(y)`
|
|
28
28
|
margin-bottom: ${i=>a.subTitleMarginBottom.valuePx(i.windowSize)};
|
|
29
29
|
color: ${i=>i.isError?s.important:i.theme.colors.hero};
|
|
30
|
-
`,
|
|
30
|
+
`,_=t.div`
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
margin-top: ${r.sp3};
|
|
34
34
|
margin-left: ${i=>a.containerMarginLeft.valuePx(i.windowSize)};
|
|
35
35
|
margin-right: ${i=>a.containerMarginRight.valuePx(i.windowSize)};
|
|
36
|
-
`,
|
|
36
|
+
`,U=t.div`
|
|
37
37
|
min-height: ${i=>a.navBarHeight.valuePx(i.windowSize)};
|
|
38
38
|
position: sticky;
|
|
39
39
|
border-bottom: 1px solid transparent;
|
|
40
40
|
z-index: 2;
|
|
41
41
|
top: ${r.sp0};
|
|
42
42
|
width: 100%;
|
|
43
|
-
`,
|
|
43
|
+
`,V=t.div`
|
|
44
44
|
position: relative;
|
|
45
45
|
min-height: 62px;
|
|
46
|
-
`,
|
|
46
|
+
`,Z=t.div`
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-direction: row;
|
|
49
49
|
align-items: center;
|
|
@@ -88,7 +88,7 @@ import{X as B,j as e,Y as m,o as r,a7 as C,C as d,a6 as L,Q as M,h as W,g as s,s
|
|
|
88
88
|
flex-direction: column;
|
|
89
89
|
width: 100%;
|
|
90
90
|
align-items: center;
|
|
91
|
-
`,
|
|
91
|
+
`,m=t.div`
|
|
92
92
|
display: flex;
|
|
93
93
|
width: 100%;
|
|
94
94
|
justify-content: space-between;
|
|
@@ -96,7 +96,7 @@ import{X as B,j as e,Y as m,o as r,a7 as C,C as d,a6 as L,Q as M,h as W,g as s,s
|
|
|
96
96
|
display: flex;
|
|
97
97
|
flex-direction: column;
|
|
98
98
|
align-items: ${i=>i.windowSize==="small"?"self-start":"self-end"};
|
|
99
|
-
`,u=t(
|
|
99
|
+
`,u=t(y)`
|
|
100
100
|
color: ${i=>i.isError||i.isWarning?i.theme.mode==="dark"?s.neutralGrey4Dark:i.isWarning:i.theme.colors.primary};
|
|
101
101
|
`,si=t(j)`
|
|
102
102
|
margin-top: -5px;
|
|
@@ -141,7 +141,7 @@ import{X as B,j as e,Y as m,o as r,a7 as C,C as d,a6 as L,Q as M,h as W,g as s,s
|
|
|
141
141
|
align-items: center;
|
|
142
142
|
justify-content: center;
|
|
143
143
|
margin-right: ${r.sp1};
|
|
144
|
-
|
|
144
|
+
`,$=t(D)`
|
|
145
145
|
color: ${i=>i.theme.colors.brandColorJade};
|
|
146
146
|
width: ${r.sp3};
|
|
147
147
|
height: ${r.sp3};
|
|
@@ -149,4 +149,4 @@ import{X as B,j as e,Y as m,o as r,a7 as C,C as d,a6 as L,Q as M,h as W,g as s,s
|
|
|
149
149
|
color: ${i=>i.theme.colors.brandColorGoldDark};
|
|
150
150
|
width: ${r.sp4};
|
|
151
151
|
height: ${r.sp4};
|
|
152
|
-
`;export{
|
|
152
|
+
`;export{xi as m};
|
package/dist/assets/{RoleWithToolTip-CX9tF-BO-CfHGhDZn.js → RoleWithToolTip-DZO2tooH-B0y78jDy.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{eI as x,eJ as h,j as t,bs as m,o as n,Y as o,M as g,r as j,w as p}from"./index-nrhSmhQT.js";import{n as s}from"./vendor-CnQcJ2Lu.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=s.div``,f=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
5
|
-
`,
|
|
5
|
+
`,w=s(p)`
|
|
6
6
|
color: ${e=>e.theme.colors.hero};
|
|
7
7
|
`,b=s(p)`
|
|
8
8
|
color: ${e=>e.theme.colors.brandColorPearl};
|
|
9
9
|
`,d=s.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
|
-
`,
|
|
13
|
-
border-radius: ${
|
|
12
|
+
`,u=s(j)`
|
|
13
|
+
border-radius: ${n.sp12};
|
|
14
14
|
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
15
15
|
display: flex;
|
|
16
16
|
height: 18px;
|
|
@@ -18,5 +18,5 @@ import{eL as h,eM as x,j as t,bu as m,o as i,Y as o,M as g,n as j,v as p}from"./
|
|
|
18
18
|
align-items: center;
|
|
19
19
|
justify-content: center;
|
|
20
20
|
color: 1px solid ${e=>e.theme.colors.grey1};
|
|
21
|
-
margin-left: ${
|
|
22
|
-
`,
|
|
21
|
+
margin-left: ${n.sp1};
|
|
22
|
+
`,C=({roles:e})=>{let r=a,l=[];r=x(e),l=h(e);const c=()=>l.length>0?t.jsx(y,{children:l.map(i=>t.jsxs(f,{children:[t.jsx(w,{children:i[0]}),t.jsx(b,{children:i[1]})]},i.join(",")))}):t.jsx(t.Fragment,{children:a});return l.length>0?t.jsx(m,{enterDelay:600,"data-testid":o("roles-tooltip",r),title:c(),placement:"top-end",style:{marginLeft:n.sp1,padding:"6px 12px"},maxWidth:"264px",children:t.jsxs(d,{"data-testid":o("roles-label-wrapper",r),children:[r,t.jsx(u,{className:"roles-count-wrapper","data-testid":o("roles-count-wrapper",r),children:l.length})]})}):t.jsx(d,{"data-testid":o("roles-label-wrapper",r),children:r})};export{C as T};
|