@zeniai/web-cockpit-ui 1.14.26-qa → 1.14.27-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-CewoCaPp-CT46HXFD.js → ACHDetailsPage-L2DbWHeB-ClPCdt3t.js} +1 -1
- package/dist/assets/{AIPerformancePage-ClcHr2vQ-BRukUWGH.js → AIPerformancePage-CBnXdO75-_wvhajiU.js} +1 -1
- package/dist/assets/{AccountInfoPage-RGndqyKY-Dlk0PGab.js → AccountInfoPage-D4oJXZ8m-eDxbUsbg.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CPeAeIaj-DBMSAwjV.js → AccountInfoPageContent-BqLZQENu-DKLbAtSV.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-YmpBWIqf-C-FSdJ0f.js → AccountLockedInfoModal-hgMwZrTb-BvUDbEdN.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DKalyFgK-CJqqjdmk.js → AccountReconDetailsDrawerPage-7hHZqKRV-Db30q4PK.js} +1 -1
- package/dist/assets/{AccountRow-WWzGUuw7-Dt5T0RKJ.js → AccountRow-gWy9pcbP-DahK5KVt.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-DUyZb--O-Do7uL_WW.js → AccountsPromoCardStack-BQi9-8pB-CVFLB2J-.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-S7OQ2NMb-BJNsQVwm.js → AddAddressForCardDrawer-D1jRuUxc-Dj-DNwyI.js} +1 -1
- package/dist/assets/{AddToWalletPage-BGR4bL7y-Bb6lLFD1.js → AddToWalletPage-w5nljCSh-Dtwub1Eh.js} +1 -1
- package/dist/assets/{AgingReportsPage--ALJve3d-BOQ75VTx.js → AgingReportsPage-DjKYyPl--B8G2-GNO.js} +1 -1
- package/dist/assets/{AllUserItems-CXe9YYB3-y8ot8_91.js → AllUserItems-C_eIzTQY-BoOb57Xg.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CUhwlJgU-CBNh63K3.js → ApAgingDetailPage-DQxGkFx0-BRg8Onqk.js} +1 -1
- package/dist/assets/{AppBasePage-N1UOSAYA-ButOeNpY.js → AppBasePage-D2jhgUwi-BHgbbx-N.js} +1 -1
- package/dist/assets/{AppDrawerContent-DkAfYRso-DIgwPri6.js → AppDrawerContent-Lh99VUj_-DSErHMOD.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-BZU512eg-Cq34ED6P.js → ApprovalRulesSettingsPage-4hGn8gls-Csbq5L0I.js} +1 -1
- package/dist/assets/{ArAgingChart-Gd9NNOYZ-CturEeZP.js → ArAgingChart-L1Eg5OH--QXuokGaq.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-Cd4bADiY-CloBhw4x.js → ArAgingDetailPage-DS_UdNpc-DdJDf5fe.js} +1 -1
- package/dist/assets/{AttachmentView-DosFXiGs-CcFBAMaq.js → AttachmentView-oUhRgwS1-xwc1nlCi.js} +1 -1
- package/dist/assets/{BankAccountSection-Cip0emaB-3CubpYBV.js → BankAccountSection-B0xnTvSs-DBwtu6_1.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-fV2PcWJ1-DcwDUiS-.js → BankAccountWarningSection-HSVR9hlO-FwmZ-JqM.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BFT45Z3u-D9kKiR3-.js → BankConnectionsSettingsPage-DEyxN2qT-CwI8CC1C.js} +1 -1
- package/dist/assets/{BillDetailPage-Chgck1s6-MGepsrr1.js → BillDetailPage-6n61oxQP-DGAzOzEp.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-CclJEpMl-BlzMt5rM.js → BillPayApprovalRuleDetailPage-Bgibj30U-CeM7HU2w.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DRdc6G1q-Do7PWTUK.js → BillPayApprovalRulesPage-B1qC2X1f-Cd-O0G4O.js} +1 -1
- package/dist/assets/{BillPayPromoPage-Bhun2mXo-CFVXl7cx.js → BillPayPromoPage-BUZm54Qw-CCL7GZv5.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-244QjdAR--3ZPrG8f.js → BillPaySetUpPage-Bbu0IGXf-BAbCT_kS.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CORwZVhc-BOL88-8S.js → BillingSettingsPage-BgXwuyai-C4bSAkfQ.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-CRtHsCgz-736eeCkq.js → BillsBulkReviewDrawerPage-BG4vJDjd-D_5oaI_2.js} +1 -1
- package/dist/assets/{BoxItem-DWDWpna--D2cYla4w.js → BoxItem-sBvV-njQ-C8Sj46hv.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DHXRhOfC-DuFHbUBn.js → BusinessVerificationPage-syPjq1-X-DjthHO0M.js} +1 -1
- package/dist/assets/{CardNumberSubText-GYcLZ5q7-DDRlJ3Xc.js → CardNumberSubText-D6WXzfC0-BBYg8SeO.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CTLDlyWQ-v4bjdBVF.js → CashbackDetailPage-DLAOhViI-CQNN0Oxk.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-CV02cgTr-HaRAGSGQ.js → ChargeCardDetailPage-D9wo7CV4-CUr5LNIS.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DiBVKdGc-BVHqbmYC.js → ChargeCardListPage-DmRPUJI1-BbID8kE0.js} +1 -1
- package/dist/assets/{ChargeCardListTable-ixkVZt9F-CslM77bc.js → ChargeCardListTable-DkRhOsTp-DQ097Jz2.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-C9AT9hu_-BwQqyK7j.js → ChargeCardPromoPage-CY29hORT-DK3BWpKu.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-CyJU6nOC-BKJGZJ3i.js → ChargeCardSetupPage-DjuxXgtx-BTK9oWDK.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-g8nRbdcm-BiOY4wOK.js → ChargeCardStatementsPage-05e-Rv4L-DyFgXT9k.js} +1 -1
- package/dist/assets/{ChargeCardUtils-CaeU7cUK-CiIwxJCF.js → ChargeCardUtils-BAz43f_r-DlWXaeiv.js} +1 -1
- package/dist/assets/{ChaseOverlay-BGvkZQ2l-D9dV7WP7.js → ChaseOverlay-BX0hFprH-CheTBvmx.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BvaSO00v-xO42YT_V.js → CheckDepositDrawerPage-Bd59EnDi-DVjKwQxX.js} +1 -1
- package/dist/assets/{CollapsableReportTable-B3cboW0a-CD9KncJ0.js → CollapsableReportTable-CsR4lewg-BCplnaWV.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-D-bG22hs-CgMrGGJW.js → CompanyOfficerDetailsSection-CQ4pjozN-DI9wppT8.js} +1 -1
- package/dist/assets/{CompanyPassportCard-CR6DjQ-I-CifV8Uu-.js → CompanyPassportCard-BqJfTSkV-CgFKrjFF.js} +1 -1
- package/dist/assets/{CompanyPassportPage-BPrDJy2O-sA4KINu1.js → CompanyPassportPage-B4x5JYS3-QEOChnPa.js} +1 -1
- package/dist/assets/{CompleteProfile-BmpWGuf--D2nAi13Y.js → CompleteProfile-CPjhTOMg-Bn_rO_-p.js} +1 -1
- package/dist/assets/{ConfettiBurst-BVBXgQdB-BXZoY3AT.js → ConfettiBurst-CJyAglUs-7Su0flU5.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Bmr0GyLM-De3rLN1x.js → CreateOrEditVendorPage-DI-FQKPk-DYcyDGuB.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CfCLKSCF-WcDNXwGD.js → CreditCardPaymentDrawerPage-CxJqSR2l-BJTXtXKj.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-CVVsL-9r-BKuaJLA2.js → CreditCardPaymentPlgSection-D2iK5zd5-BW35VwUN.js} +1 -1
- package/dist/assets/{CurrencySelectField-DgJCjCx8-B2oMSate.js → CurrencySelectField-zveSgwTU-IrKdmw1Q.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Bs_JvG9T-DiUEeOeN.js → CustomerOnboardingActivationPage-BBlYah_--CiuIKOvd.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CsLB44OM-DiFZy3jV.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BhZzNu1m-BLM6ptcO.js → CustomerOnboardingDetailPageSkeleton-CE1dy5F9-BwIXTn7L.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-Whh36SXZ-Dc6CgaLn.js → CustomerOnboardingNoStepsPage-Bx9_ctyK-CAycrgS1.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-CzkLweUd-5KgWw58d.js → CustomerOnboardingPage-BObZoqDa-BLwC2x0O.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-9TrvxuUq-DnpTrdJH.js → CustomerOnboardingProductSuitePage-Dv864eku-CrCM6790.js} +1 -1
- package/dist/assets/{Dashboard-D34he_GT-L3J_In0U.js → Dashboard-Cqsn_xor-CAbkhLP7.js} +1 -1
- package/dist/assets/{DashboardReportPage-B2YLw1cH-BN3dSNTv.js → DashboardReportPage-D7rrc_LV-Bqg3ON1L.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BJa2hS_o-XKCgBVx6.js → DashboardSidebarBackgroundAnimation-Cn1xsSMy-CBA72j9x.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem--SnHZPfd-BbNgV8N2.js → DepositAccTransactionItem-DhO5pQ2D-D_QaCuVF.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-Ck-fbeJy-CSFntDRx.js → DepositAccTransactionListPage-CoGo__FB-Bui_Xqcl.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-C6Qiwdxz-B5KNssdu.js → DomesticWireDetailsPage-CNUwvH-x-DELRnncB.js} +1 -1
- package/dist/assets/{DownloadOverlay-DL0MytOi-DKCXGCnh.js → DownloadOverlay-D-Y3ilH_-BA8mvHOJ.js} +1 -1
- package/dist/assets/{DrawerPage-B58qg5nB-HfdHo8J9.js → DrawerPage-CHtXbldN-BLaKbfh2.js} +1 -1
- package/dist/assets/{EditPeoplePage-GKvVCE5z-DjqVmvDk.js → EditPeoplePage-2LzzSLC3-DfBRYaB1.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-D1MioFVj-DH_wDDq4.js → EditReimbursementDetailPage-PjZbUg25-CwFr7xGE.js} +1 -1
- package/dist/assets/{EntityDetailPage-DQWLe49l-BuhfK0t_.js → EntityDetailPage-BfSU_uHj-MWXQRs6e.js} +1 -1
- package/dist/assets/{EntitySummarySection-CqTrjk_Q-gPV4Y69o.js → EntitySummarySection-C_qgJH5q-D6D-9-D8.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-wTuiXZhd-BBum1cDw.js → ExpenseAutomationOverviewPage-B9cNpuZF-l7hBIrHY.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-D8HVgxVi-6Jf1NY6q.js → ExpenseAutomationPage-FdxNtX_M-B6s2ObTd.js} +1 -1
- package/dist/assets/{ExpressPayPage-hxixn_a5-D2UAvzV5.js → ExpressPayPage-BZMNK1fM-CJNVvYo6.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-D2WqSgUY-D2oqrOP_.js → FeaturePreviewPage-22xEt2Xs-9YjqAwmx.js} +1 -1
- package/dist/assets/{FollowStepsSection-BdppdSCG-CShfzQV7.js → FollowStepsSection-BP4Jjo3T-Dg_k_Eu7.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DRKd8hE9-B16KNi8Q.js → GlobalReviewListPage-IpkiV5FS-CksYMZBX.js} +1 -1
- package/dist/assets/{HelpButton-Deu41-qI-DvSY4HR1.js → HelpButton-DFCkvYzx-BqvnZiPu.js} +1 -1
- package/dist/assets/{InformationCardStack-DsynT9vP-gxNLPR98.js → InformationCardStack-Dx-sRnhQ-BAw8BXD4.js} +1 -1
- package/dist/assets/{InsightsCardStack-WP7JAv_5-C5xr1SQa.js → InsightsCardStack-RBgdi8NS-Gv5G6CtC.js} +1 -1
- package/dist/assets/{InsightsSection-tLAgCQfS-D9fZ5_CP.js → InsightsSection-BSWX8_jF-BBrD5tML.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-LzPf29eX-DtVPxwcp.js → IntegrationsSettingsPage-CVIrSM7W-D1A4aHm7.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-CUoPzQIv-CD0QsOMP.js → InternationalWireSwiftDetailsPage-5BaIQVWk-Ch62ubQL.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-Da_J_IU4-DI7RwJ9n.js → InternationalWireVerificationPage-ZQnAkFCP-DSSWn9AH.js} +1 -1
- package/dist/assets/{InviteFormPage-JbynfL4s-B24CZuZG.js → InviteFormPage-C5X0v0De-9Y1heADW.js} +1 -1
- package/dist/assets/{InvitePageListView-BBIxkRhG-CvtpmgPs.js → InvitePageListView-BnfBq3ip-DDOpVtlT.js} +1 -1
- package/dist/assets/{InvitePeoplePage-DrkakKul-DpWIPFqn.js → InvitePeoplePage-YP3YdUkS-DHK5ybrl.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-B6OrfzVQ-mWPr2iey.js → InvoiceUploadSection-DRWzfNlH-D-YCHRxW.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-jZPDYgiF-D3zHng_C.js → IssueChargeCardPage-7_4rXBxl-fPp8Ajpe.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BCxx4Ym4-CGRIujfu.js → LabeledAddressValue-BWukRQiR-B_KoLV4N.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-D0ApugQ2-Ban9Cygt.js → LabeledAddressValueField-ZzLPPTOt-CEcpWS66.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-Be6a12Zt-1Q41AiKl.js → LabeledControlledCheckBoxField-DaBrpZ-a-DgSxK2Ly.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-8uWALHq2-DGFA2rXY.js → LabeledCreatableSingleSelectField-BtRI6qTj-Bz_eFbLJ.js} +1 -1
- package/dist/assets/{LabeledDocumentField-BhWz_lFG-CDTeBBLX.js → LabeledDocumentField-C0ZkEhSD-PgvjUbgi.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CXuWTmZ2-B_9VzHsr.js → LabeledDropDownFormattedTextField-D6MJpX0M-BRhfU-OX.js} +1 -1
- package/dist/assets/{LabeledText-DnPjenHw-BmbRsgPT.js → LabeledText-B50vR7KS-wVVFk1hP.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CnIkfztG-BbISKB0u.js → LabeledUserSingleSelectWithSubtitlesField-C6EiM1_m-ByPuUaGf.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-DSYZd8IK-0Us87RiE.js → LabeledZeniRolesDropDownField-DmXyMa7_-Bd2CZDQq.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-HtzLhRDp-CtCpNFMw.js → LinkJETransactionPage-C7mwJuAG-vEqssAi9.js} +1 -1
- package/dist/assets/{LowBalancePopup-CkfU52XR-CnX5cfpo.js → LowBalancePopup-BHamFyCn-D1gSvWdq.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-Vo3I5xUd-Cbdt7rKP.js → MagicLinkACHDetailsPage-Bmg846bE-mujY-BFr.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DjOsCfW9-D0WjF50F.js → MagicLinkDomesticWireDetailsPage-CfvXhzCl-Css4tLhV.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DX73ukbM-8uNTilnj.js → MagicLinkInternationalWireDetailsPage-CYtRtOzU-E9b-9-OX.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BhNMcw3m-De-g2XDm.js → MagicLinkSuccessPage-BRzJVVbN-CAUanTeB.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DuepEVwF-tv4-flMI.js → MagicLinkTitleSection-DU6LgoX_-SF5iErU3.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BzidTWDc-DB-uG9bH.js → MailingDetailsSection-qOmPAUSS-BxoWlb6y.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-69pWIeUs-DaoErZbb.js → MeetingCalenderPopup-p5EOWukC-zpObwsoM.js} +1 -1
- package/dist/assets/{Menu-CcDfUWLP-CMJniPyP.js → Menu-B1CEca0C-r5__lqIT.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-q-Cugt7i-OzsUoIZR.js → MyBankConnectionsSettingsPage-P2FrkQD_-CK7vXzu2.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BoYjasU9-C9vXvN5S.js → MyPendingActivationChargeCardListPage-BnDjrr_X-Bfr6UvK_.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BQn20Mer-BLXIr4zf.js → MyProfileSettingsPage-D_KvmLaa-czMu3WmW.js} +1 -1
- package/dist/assets/{NavBarWithPicker-Cx9FYNA1-MZMXu4Lx.js → NavBarWithPicker-BC-T3HeP-BjcVtk6S.js} +1 -1
- package/dist/assets/{NavigationArrow-DlJXC4xL-ChRV5zjf.js → NavigationArrow-CyUUSesZ-8kG9oG0M.js} +1 -1
- package/dist/assets/{NavigationDots-D0aavCTX-CH9Zqjf3.js → NavigationDots-CeLb5VQU-gETgW9ae.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CSYd-A6s-D0A_B42U.js → NewGlobalMerchantPage-DJSmnj9x-_ffBVpe0.js} +1 -1
- package/dist/assets/{NoDataChart-BpXztt8w-iCzsfFqH.js → NoDataChart-CYcz93UF-jvTiwlU0.js} +1 -1
- package/dist/assets/{NoDataTable-DdM0yjdd-BbkENdqK.js → NoDataTable-fN3c9rsa-DJnFFzbM.js} +1 -1
- package/dist/assets/{NotFoundPage-D4LpOaCk-UWESOf9B.js → NotFoundPage-DJ0uY1ML-ZP6ysT40.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CCHmbbm0-s8ZZoPo4.js → NotificationSettingsPage-CoNkPojs-DaoKrxh7.js} +1 -1
- package/dist/assets/{NotificationsListConfig-CkT3ifeZ-0NznpWON.js → NotificationsListConfig-BsiX-NYv-C963xeTc.js} +1 -1
- package/dist/assets/{NotificationsPage-CH84TJ1B-BMkLMNHN.js → NotificationsPage-D4-ksII6-83e1A0HC.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BO2WcMgl-B7oCen-o.js → OpExByVendorPage-D411M857-BD2QYgkw.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-CRf95pXx.js → OverlayContainerPage-Bmu909Fo-DcPlzoqJ.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Bt6Mw_gU-Cs8_d3u_.js → PandLWithForecastPage-BhPSJvK9-mCBkntej.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-B4GNmpUK-CxSio8Ky.js → PaymentAccountSetupBillingAddressSection-D6PCdbch-CCi_T0Vq.js} +1 -1
- package/dist/assets/{PeoplePage-BW4NDtwt-DkjfS6_L.js → PeoplePage-BphDokC_-DyLpw_P9.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-Cq2dN9SD-CSm2Ava2.js → PortfolioAllocationFormPage-DSU_3MAa-DrLrAjoR.js} +1 -1
- package/dist/assets/{PortfolioDetails-BntkZVUn-CKJbqtbE.js → PortfolioDetails-ChJvqnSe-ew_TZWFQ.js} +1 -1
- package/dist/assets/{ProductsCarousel-DiQK-Lzx-BZMIQoKV.js → ProductsCarousel-D4WEVVKD-Dis78Y72.js} +1 -1
- package/dist/assets/{PromoBaseCards-CtuOYupT-Dyiyn7d5.js → PromoBaseCards-BK3A8pNV-BrLELXLr.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-qOO80680-CcTCYwmt.js → QBOConnectionDialog-Ctqo-QYD-DfbOVF-i.js} +1 -1
- package/dist/assets/{QBOSetupSection-QkM5eBnB-Oj9IQUMU.js → QBOSetupSection-6UqNQs2P-CMRzGCfs.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-UywWQk0j-Yk7T38pf.js → ReimbursementApprovalRuleDetailPage-N6-NIyQN-Dkq4lZ90.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-C4-kuIRF-CoKZQtgz.js → ReimbursementApprovalRulesPage-CfhsytOA-B2_O25OB.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DHLkdW4E-AHeMtNNE.js → ReimbursementDetailPage-McJFYJar-DUEvk803.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-SPqDtNP3-CFdMh3QE.js → ReimbursementPromoPage-Cy2-ax-T-GDc3GJqw.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-BQGSy-0f-DU2GHGk7.js → ReimbursementSetUpPage-Pb1LicsA-DxE65z6l.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C0WYNN1_-DHIOWp7o.js → ReimbursementsBulkReviewDrawerPage-DdfUd5Xs-C1lxCkY_.js} +1 -1
- package/dist/assets/{ReloadCard-hjrvUIYg-Dq63nnpI.js → ReloadCard-B46-ft_v-BRzBqi7s.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-Bok7Utfe-BUDFlBkJ.js → ReportTableViewSelector-B-nrKwox-BN4kX_Iz.js} +1 -1
- package/dist/assets/{ReportsPage-Ckp6uaf0-QjBX1IQe.js → ReportsPage-TCPF9O7D-D0wV95XO.js} +1 -1
- package/dist/assets/{RevenueChart-VAcu4ww5-Cj6ZKomc.js → RevenueChart-Ck68S4vZ-BynauqVH.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-pHm8GF9U-CIBwCGYN.js → ReviewDetailsPage-CuZ4gllU-DyHdslgo.js} +1 -1
- package/dist/assets/{ReviewOverlay-CPkvoQ4t-DdnAnidx.js → ReviewOverlay-_znOER9h-CHXK6ec_.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DWvJm-1j-DqPRUm_1.js → RoleWithToolTip-Bo8lwH2J-CaV2qJaY.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CrBh686Y-DRzwNRWE.js → ScheduleDetailsFixedAssetsPage-NHKgn2B_-7pL-P9MS.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-DPhBxN-b-3gzmwL_o.js → ScheduleDetailsPage-Cyes1Hqk-CNkOfOGT.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-BRHFAfM9-Co_73EFw.js → ScheduleSequenceTable-Dt-O9AJR-Cx-gmbSa.js} +1 -1
- package/dist/assets/{ScreenRoutes-BKTPRR-t.js → ScreenRoutes-D1MHSJyk.js} +1 -1
- package/dist/assets/{SetUpAccountSection-Q_YVv46Q-B_9EeRdq.js → SetUpAccountSection-MagNswiG-C57L6kvb.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-Cvr6_blm-Df33xlPA.js → SetUpDefaultSection-CW6d4gp7-T2IKPxwX.js} +1 -1
- package/dist/assets/{SignIn-Btsg-pxI-M0UHaVG-.js → SignIn-Df2NrLSh-4GWCkTd4.js} +1 -1
- package/dist/assets/{SignInScreen-PyUkU1Rp.js → SignInScreen-IJmyjlny.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-B1rLW-kh-CkMpbmNg.js → SpendManagementListViewPage-BkqhnBuG-CAKiOxXk.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-BZUekdm5-Cbp30KPr.js → SpendManagementPerTabPage-JEEIZUyZ-C-QNnVzg.js} +1 -1
- package/dist/assets/{SpendManagementSection-DccRaspC-02Bz3X9g.js → SpendManagementSection-Ibu0ounY-CRMUSWTy.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-C28yfVQi-FRWPugGr.js → SpendMgmtSetupAccountSection-BoQUuYkt-CsIAHdM7.js} +1 -1
- package/dist/assets/{StatementItem-BI3QeS8f-DfvDNicK.js → StatementItem--AHGDiMN-DQ6vGaR2.js} +1 -1
- package/dist/assets/{StatementsPage-DL9Lzsp3-BpKCM5fn.js → StatementsPage-Qi2VPoZh-CAxExqiA.js} +1 -1
- package/dist/assets/{StatusSwitcher-PbG-8evx--GfQ8YXL.js → StatusSwitcher-DGGgMFsU-BWku4J1v.js} +1 -1
- package/dist/assets/{SubTabSwitcher-hVNHd9C4-P-cq5U1j.js → SubTabSwitcher-eAfz2-Lc-DcGuafZZ.js} +1 -1
- package/dist/assets/{SummaryCard-BKOTImSp-jC8lfB9z.js → SummaryCard-Dqip8ZQb-B2Zx_Fqv.js} +1 -1
- package/dist/assets/{TaskManagementPage-2Z1pOUxy-Cmo0zr83.js → TaskManagementPage-Bosgb_fo-CXdMQHGJ.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-bwo7NYw1-Dq8Rap0M.js → TimeRangeSwitcher-CvcbbXCJ-DRfH7eQv.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-B0XKrq8k-CFx47Xg5.js → TimeframeSwitcher-C8DAGW2V-dkmBVCxs.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-B707zow_-DQg5qK9l.js → TimeframeSwitcherWithToggle-CMrYTuXz-CIo7o1Zn.js} +1 -1
- package/dist/assets/{TopExCard-D22OJzeW-DTXgdJ7A.js → TopExCard-BmTIQ2DK-wMXURbl5.js} +1 -1
- package/dist/assets/{TopExDetailPage-Cr3Z09kR-BGTJEaJ2.js → TopExDetailPage-BhwybNsw-DbzLdw6T.js} +1 -1
- package/dist/assets/{TransactionDetailPage-DWoUgUdK-CIJf6La2.js → TransactionDetailPage-CXDtk8ts-BY0srxik.js} +1 -1
- package/dist/assets/{TransactionList-EZh96kjx-DOeoS1jc.js → TransactionList-59giJdUf-C4UChFvS.js} +1 -1
- package/dist/assets/{TransactionListBig-BKUawJB5-CEzAXUXF.js → TransactionListBig-C8u5yUv3-D0jMuLpk.js} +1 -1
- package/dist/assets/{TransactionListPage-BkFa6sG1-BtlrKa7H.js → TransactionListPage-EBscLNug-CN8G07mf.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CN6osu7v-CHCOl410.js → TransactionVendorDetailPage-BWLV7xtE-Dmr9Yz18.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BYz9fB52-DA3WfaV1.js → TransferDrawerPage-CM5iuNip-CfBoPf6H.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-u8VsE9Y1-DMIKJb9Q.js → TreasuryOverviewPage-CVBXnZ07-B97jLBUj.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-DTDOak2Y-BW-niOyD.js → TreasuryPromoPage-BzRK0qtG-4x775oCw.js} +1 -1
- package/dist/assets/{TreasurySetupPage-DrLHmZhl-b1wN951s.js → TreasurySetupPage-2Aevh0cV-CiSeaC4S.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-RAY4B7hK-CVM6r50L.js → TreasuryStatementsPage-CwPcqy4Y-BG2ENXFX.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-OJ4bHbJ7-C3R-ZOwD.js → TreasuryTaxLetterPage-D7G3QcNO-Dc1vplru.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-BLbXRv2h-hJ0e8xpo.js → TreasuryTransferOrReviewPage-DYRhs_uX-CvIJ6mI6.js} +1 -1
- package/dist/assets/{TrendChart-CuzDp7uD-wy3vuBZH.js → TrendChart-DgszF2m_-COQfjibh.js} +1 -1
- package/dist/assets/{TrendWithTransactions-Cmk48Jqj-B0R44vJu.js → TrendWithTransactions-D6l7QfxS-MGPQ1OUD.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-CCBv7KTO-CDDAaMng.js → UncategorizedAccountsMappingPage-nYSa9KVs-Jk5Bnldc.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-3XuAXC0q-DvHU8qGV.js → UnitIntegrationPage-BHri3DvH-CMKe7Jp4.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-FdcuZ27x-tvltJpeS.js → UploadAdditionalDocumentOverlay-DfplQSBr-B9gpicfS.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-Db5990IN-BvIpiovq.js → Vendor2FAPopup-c6lufcgW-DkkMYFYL.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-D-HvadNm-CchqnN43.js → VendorACHDetailsPage-DJyFJ6mB-83dd9PVM.js} +1 -1
- package/dist/assets/{VendorDetailPage-C-rMj9h--ChfLyJbS.js → VendorDetailPage-jHPqI6jP-BGgQpA5a.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-p0pYARKU-DEjBjU8_.js → VendorDomesticWireDetailsPage-CzL1nHq4-CizKPoFq.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CxYZS7j6-DxsODf-0.js → VendorFiling1099EditablePage-BVeRIPb0-DaIn8gBf.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-ynD9RQWy-pgpC0L3K.js → VendorFirstReviewPage-kmPtQF7C-QfTUxH5h.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-BhgM0lSZ-CPL3V25w.js → VendorInternationalWireDetailsPage-GJeSmexW-CuSX-PDI.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-yPthE5qV-DHt0Y7Vr.js → VendorInternationalWireSwiftDetailsPage-BTm4bGKa-9Q7eIAo9.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C3rimjf3-CPvuVcU0.js → VendorsAccountsSection-DkHXlqM9-Bn8DmqlL.js} +1 -1
- package/dist/assets/{VerifyDevice-D0OuH8HR-0jV84iKO.js → VerifyDevice-LSH3GYJi-CUa1ClgV.js} +1 -1
- package/dist/assets/{VideoPlayer-b1lD-9mC-BlFeixC4.js → VideoPlayer-C0GoslQO-CKyPqfbG.js} +1 -1
- package/dist/assets/{VideoPopup-BgqDBh7c-DZENo65X.js → VideoPopup-CLbVKb9o-DNF4g2PC.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-Dma7Z4vW-CBESfU_o.js → WarningsDrawerPage-B-h_LfmH-BLStmgTa.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-dv8ndfwd-CO7tRzEo.js → ZeniAccountDetailPage-B-Banptn-BGm3rIgs.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-D7_ItInH-Cm5nHSe6.js → ZeniAccountListViewPage-CkbTdPFV-BCYXHGv0.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-C16sUk1w-CdtYsjBl.js → ZeniAccountNavBarPieces-CZzYxS7P-CBbL4MCT.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-COYIbgAC-BEbGdJd2.js → ZeniAccountPromoPage-C__Oe6Lf-CpnNznsf.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-BQZpDQEz-CwiKWv6n.js → ZeniAccountSetupPage-Ce0xwUlv-6Oi9rWik.js} +1 -1
- package/dist/assets/{ZeniCopyright-CXhOsuk5-Bb5KERqY.js → ZeniCopyright-BVBF1SHv-BYYS5eDC.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-NbZpDggn-BrIYkIIB.js → ZeniTransferAmountSlider-CmzSi73--CGBAGwFT.js} +1 -1
- package/dist/assets/{analyticsHelper-B18W140f.js → analyticsHelper-C7-W35Ls.js} +1 -1
- package/dist/assets/{analyticsHelper-DemX-evW-99GXBWAu.js → analyticsHelper-aFZRzNsS-B-24b8sG.js} +1 -1
- package/dist/assets/{chartTypes-BilrAjHG-C5LahPIZ.js → chartTypes-CcxHG70c-6RIDkj1k.js} +1 -1
- package/dist/assets/{commonDimensions-B699Wk8x-BD0z4FRG.js → commonDimensions-DihO1hm6-B2pqjT-C.js} +1 -1
- package/dist/assets/{detailCommon-3_34aa64-DBKz2T03.js → detailCommon-mHaGI1Ut-DCwSNaWj.js} +1 -1
- package/dist/assets/{downloadPdf-C14EZOKs-CM7WRUOa.js → downloadPdf-DVRwZL_W-BzPjgh6y.js} +1 -1
- package/dist/assets/{index-BLQaqS_c.js → index-H65M8kUw.js} +7 -7
- package/dist/assets/{mapLoadingInProgressToTreeNode-Cw5XFtZ9-C4pOODm2.js → mapLoadingInProgressToTreeNode-DtB7eKBX-Bypf2m-l.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-62hlA_iJ-CidLvOtA.js → mapSectionWithAcOnlyToTreeNode-BoqjDTrm-CKL1UpES.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-BvXNV-c7-CqPWJ3Ld.js → mapSpacerToTreeNode-COyDN2jR-BYKiBMGm.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CMNhMiQR-CLIOo0l_.js → mapTimeframeBalancesToTreeNode-CR5UZq0i-DvDzboHP.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DDc4F-uB-pOTfWkA6.js → mapTimeframeBalancesToTreeNode-D2unCV4q-CISkeoXY.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BDHC7EOK-CRHy6e-2.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CDnIpZVE-CDya5I5j.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-D9-l2_mb-Dr30YdC0.js → toCOABalancesWithID-CAuCqaiC-TO5zFNjo.js} +1 -1
- package/dist/assets/{toChartData-DLSag8k1-ClptSdLt.js → toChartData-BqYenMLa-BRSfFGkF.js} +1 -1
- package/dist/assets/{treasuryColorHelper-Dnd6iR54-Cgts7fBG.js → treasuryColorHelper-HS8TxPMS-C3HaZj4J.js} +1 -1
- package/dist/assets/{uploadAttachment-PuftuiMf-BtsvUj8U.js → uploadAttachment-BndaV4Vd-B5CLN4Jj.js} +1 -1
- package/dist/assets/{uploadReceipts-dxsKhm9I-DLhMwdWr.js → uploadReceipts-dxsKhm9I-dRe4Gmwn.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-CrGhPOCE-CTlqZ-CE.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as M,j as b,bV as V,bX as q,bY as W,jk as X,ab as Y,l as z}from"./index-
|
|
1
|
+
import{B as M,j as b,bV as V,bX as q,bY as W,jk as X,ab as Y,l as z}from"./index-H65M8kUw.js";import{b as f}from"./vendor-rkTZJa59.js";import{p as H}from"./ReviewOverlay-_znOER9h-CHXK6ec_.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const{common:n,spendManagement:{reimbursement:B}}=M.getLocalizedStrings(),o=B.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(P(e,h,a)),[x,R]=f.useState(h),[j,J]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(j===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(I)}),[m.length,j,x,e.fetchState,h,e,a]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,$=()=>{const{title:u,description:T}=Z(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},F={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,z.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:L,description:U}=G(p,S,E,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},N=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:$,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(V,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(q,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(H,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=X(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:Y("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Z=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},G=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as h,j as r,_ as a,$ as m,ai as j,B as w,a5 as l,a_ as x,w as g,o as c,aj as C}from"./index-
|
|
1
|
+
import{u as h,j as r,_ as a,$ as m,ai as j,B as w,a5 as l,a_ as x,w as g,o as c,aj as C}from"./index-H65M8kUw.js";import{n as s,b as d}from"./vendor-rkTZJa59.js";function f({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function S({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(C,{children:({height:i,width:n})=>r.jsx(f,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Q,e as ie,bJ as me,a as fe,j as o,p as ge,B as X,bK as ee,F as xe,C as O,a4 as be,o as n,bL as ye,bM as we,bN as _e,bO as $e,bP as ve,k as ce,bQ as Ce,q as p,w as ke,O as K,a_ as je,a8 as Ne,s as Se,b2 as Ie}from"./index-
|
|
1
|
+
import{u as Q,e as ie,bJ as me,a as fe,j as o,p as ge,B as X,bK as ee,F as xe,C as O,a4 as be,o as n,bL as ye,bM as we,bN as _e,bO as $e,bP as ve,k as ce,bQ as Ce,q as p,w as ke,O as K,a_ as je,a8 as Ne,s as Se,b2 as Ie}from"./index-H65M8kUw.js";import{b as f,f as de,n as d}from"./vendor-rkTZJa59.js";import{W as P,R as Oe}from"./CollapsableReportTable-CsR4lewg-BCplnaWV.js";const z=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;function Be(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(z):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Be(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Fe=d.div`
|
|
2
2
|
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as U,u as G,B as y,Y as he,l as _,j as r,$ as k,bg as fe,aZ as me,aX as ge,C as v,o as C,a6 as _e,m as be,bh as Se,q as w,N as B,O as J,bi as we,a8 as Ce,aD as ye,b0 as xe}from"./index-BLQaqS_c.js";import{b as P,f as X,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as H}from"./analyticsHelper-DemX-evW-99GXBWAu.js";import{h as Oe}from"./ReportTableViewSelector-Bok7Utfe-BUDFlBkJ.js";import{a as K,p as Re}from"./TimeRangeSwitcher-bwo7NYw1-Dq8Rap0M.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-B707zow_-DQg5qK9l.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-DL0MytOi-DKCXGCnh.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-B3cboW0a-CD9KncJ0.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-62hlA_iJ-CidLvOtA.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-CMNhMiQR-CLIOo0l_.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BDHC7EOK-CRHy6e-2.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-Cw5XFtZ9-C4pOODm2.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-B0XKrq8k-CFx47Xg5.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-WWzGUuw7-Dt5T0RKJ.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ne({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ne({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ie(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Le({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
1
|
+
import{e as U,u as G,B as y,Y as he,l as _,j as r,$ as k,bg as fe,aZ as me,aX as ge,C as v,o as C,a6 as _e,m as be,bh as Se,q as w,N as B,O as J,bi as we,a8 as Ce,aD as ye,b0 as xe}from"./index-H65M8kUw.js";import{b as P,f as X,n as b}from"./vendor-rkTZJa59.js";import{m as z,l as H}from"./analyticsHelper-aFZRzNsS-B-24b8sG.js";import{h as Oe}from"./ReportTableViewSelector-B-nrKwox-BN4kX_Iz.js";import{a as K,p as Re}from"./TimeRangeSwitcher-CvcbbXCJ-DRfH7eQv.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-CMrYTuXz-CIo7o1Zn.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-D-Y3ilH_-BA8mvHOJ.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-CsR4lewg-BCplnaWV.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-BoqjDTrm-CKL1UpES.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-CR5UZq0i-DvDzboHP.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CDnIpZVE-CDya5I5j.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-DtB7eKBX-Bypf2m-l.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./TimeframeSwitcher-C8DAGW2V-dkmBVCxs.js";import"./page-detail-CWX5S47F-BBa5wfAm.js";import"./AccountRow-gWy9pcbP-DahK5KVt.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ne({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ne({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ie(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Le({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${C.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as A,j as a,B as S,e as de,$ as Ae,aj as Z,b7 as Te,q as E,b8 as J,aw as ee,v as M,av as ae,ab as re,b9 as oe,ba as ge,o as m,bb as te,g,O as Fe,bc as pe,bd as me,C as xe,be as fe,s as R,bf as F,ap as V}from"./index-
|
|
1
|
+
import{u as A,j as a,B as S,e as de,$ as Ae,aj as Z,b7 as Te,q as E,b8 as J,aw as ee,v as M,av as ae,ab as re,b9 as oe,ba as ge,o as m,bb as te,g,O as Fe,bc as pe,bd as me,C as xe,be as fe,s as R,bf as F,ap as V}from"./index-H65M8kUw.js";import{b as P,f as le,n as x}from"./vendor-rkTZJa59.js";import{p as b,d as ne,y as W,b as N,g as se,u as T}from"./chartTypes-CcxHG70c-6RIDkj1k.js";import{i as K,h as ce,c as I}from"./toCOABalancesWithID-CAuCqaiC-TO5zFNjo.js";import{V as Q}from"./toChartData-BqYenMLa-BRSfFGkF.js";const q={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Ve=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Tt,Y as vt,C as y,cI as jt,B as St,cJ as Ct,cK as Dt,j as t,cL as It,cM as le,cN as Pt,l as d,cO as kt,cP as At,$ as j,cQ as Mt,a0 as A,cR as Bt,cS as Nt,cT as Ae,cU as Me,cV as Be,v as q,cW as O,cX as z,cY as _,g as S,cZ as Rt,c_ as Et,c$ as Ft,d0 as Lt,bB as Ne,o as n,a4 as Ot,q as c,f as zt,bx as _t,J as Wt,y as Ut,d1 as Yt,bO as Zt,s as se,k as de,d2 as Ht,d3 as Vt,aC as qt,T as Gt,ao as Xt,r as Ke,b6 as Kt,w as Qe,aP as Qt,d4 as Jt}from"./index-BLQaqS_c.js";import{b as U,n as i}from"./vendor-rkTZJa59.js";import{t as en,o as tn}from"./LowBalancePopup-CkfU52XR-CnX5cfpo.js";import{S as W}from"./LabeledText-DnPjenHw-BmbRsgPT.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Re,common:{currency:v,labels:Ee,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Fe}=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(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=Tt(),m=vt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,R=`dashboard_${m.currentTenant?.companyId}`,E=p.largeLabelWidth.value(s),F=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Re.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(kn,{size:s,children:t.jsx(Pn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(F?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[F,J,ye,me,ue]);const T=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:P?.code=="approved"&&Y?.code?Y:P,pt=e.billPayInfo?.isRefundInitiated===!0?mt:P?.code=="approved"&&Y?.code?Y:P,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(Pt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,H=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-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",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},k=g&&(T?.code!=null?T.code==="draft"||P?.code==="approved":!0),b=k&&!it,Te=Oe(b,H,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Et(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?kt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(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=T?.code??"draft",Ce=P?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Pe=Jt(m.loggedInUser),ke=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Pe,ke):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Pe,ke)}}},ve=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:F?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:ve,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(At,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.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(He,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(He,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(vn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Fn,{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(X,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ge,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(X,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(K,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(K,{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(En,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(X,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(X,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ge,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(K,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(K,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ye,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(Ye,{children:a.to}),t.jsx(Ze,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId: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:E},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(G,{})]}),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:E},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(G,{}),!g&&Z!=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:E},style:{width:"auto"},value:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(G,{})]}):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:E},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: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:E},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Ft(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==v.currencyCode?Fe.conversionAmountColon:Ee.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:Fe.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:Ee.total}),t.jsx(oe,{children:A("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?$e:ne,style:{width:ze(!1,k,b,H,s)}},primaryBtn:{label:Oe(b,H,e.isBillMarkedForRetry),isLoading:F?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):ve()},style:{width:ze(!0,k,b,H,s)}},rightSideComponent:k&&!b&&F.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(An,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Kt)`
|
|
1
|
+
import{e as Tt,Y as vt,C as y,cI as jt,B as St,cJ as Ct,cK as Dt,j as t,cL as It,cM as le,cN as Pt,l as d,cO as kt,cP as At,$ as j,cQ as Mt,a0 as A,cR as Bt,cS as Nt,cT as Ae,cU as Me,cV as Be,v as q,cW as O,cX as z,cY as _,g as S,cZ as Rt,c_ as Et,c$ as Ft,d0 as Lt,bB as Ne,o as n,a4 as Ot,q as c,f as zt,bx as _t,J as Wt,y as Ut,d1 as Yt,bO as Zt,s as se,k as de,d2 as Ht,d3 as Vt,aC as qt,T as Gt,ao as Xt,r as Ke,b6 as Kt,w as Qe,aP as Qt,d4 as Jt}from"./index-H65M8kUw.js";import{b as U,n as i}from"./vendor-rkTZJa59.js";import{t as en,o as tn}from"./LowBalancePopup-BHamFyCn-D1gSvWdq.js";import{S as W}from"./LabeledText-B50vR7KS-wVVFk1hP.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Re,common:{currency:v,labels:Ee,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Fe}=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(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=Tt(),m=vt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,R=`dashboard_${m.currentTenant?.companyId}`,E=p.largeLabelWidth.value(s),F=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Re.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(kn,{size:s,children:t.jsx(Pn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(F?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[F,J,ye,me,ue]);const T=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:P?.code=="approved"&&Y?.code?Y:P,pt=e.billPayInfo?.isRefundInitiated===!0?mt:P?.code=="approved"&&Y?.code?Y:P,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(Pt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,H=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-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",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},k=g&&(T?.code!=null?T.code==="draft"||P?.code==="approved":!0),b=k&&!it,Te=Oe(b,H,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Et(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?kt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(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=T?.code??"draft",Ce=P?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Pe=Jt(m.loggedInUser),ke=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Pe,ke):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Pe,ke)}}},ve=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:F?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:ve,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(At,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.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(He,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(He,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(vn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Fn,{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(X,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ge,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(X,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(K,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(K,{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(En,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(X,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(X,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ge,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(K,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(K,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ye,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(Ye,{children:a.to}),t.jsx(Ze,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId: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:E},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(G,{})]}),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:E},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(G,{}),!g&&Z!=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:E},style:{width:"auto"},value:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(G,{})]}):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:E},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: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:E},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Ft(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==v.currencyCode?Fe.conversionAmountColon:Ee.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:Fe.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:Ee.total}),t.jsx(oe,{children:A("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?$e:ne,style:{width:ze(!1,k,b,H,s)}},primaryBtn:{label:Oe(b,H,e.isBillMarkedForRetry),isLoading:F?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):ve()},style:{width:ze(!0,k,b,H,s)}},rightSideComponent:k&&!b&&F.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(An,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Kt)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
package/dist/assets/{ReviewOverlay-CPkvoQ4t-DdnAnidx.js → ReviewOverlay-_znOER9h-CHXK6ec_.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as B,j as e,$ as x,o as r,a4 as L,C as d,a3 as M,J as C,y as W,g as s,s as y,c6 as R,m as I,w as j,aB as D,q as n,ei as G,az as J,ji as A,jj as F}from"./index-
|
|
1
|
+
import{e as B,j as e,$ as x,o as r,a4 as L,C as d,a3 as M,J as C,y as W,g as s,s as y,c6 as R,m as I,w as j,aB as D,q as n,ei as G,az as J,ji as A,jj as F}from"./index-H65M8kUw.js";import{n as t}from"./vendor-rkTZJa59.js";const l={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 C("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const a=B();return e.jsxs(H,{children:[e.jsx(X,{windowSize:a,children:e.jsx(Y,{children:e.jsx(Z,{windowSize:a,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(O,{windowSize:a,children:[e.jsxs(_,{windowSize:a,children:[e.jsx(K,{children:e.jsx(N,{windowSize:a,children:i})}),e.jsx(U,{isError:p.isError,windowSize:a,children:p.content})]}),e.jsx(V,{windowSize:a,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:q(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}),a!=="small"?e.jsxs(w,{windowSize:a,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]})]})]}),a==="small"?e.jsxs(w,{windowSize:a,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(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},q=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(ai,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(li,{}),H=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${i=>i.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-DWvJm-1j-DqPRUm_1.js → RoleWithToolTip-Bo8lwH2J-CaV2qJaY.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eN as h,eO as x,j as t,bB as m,o as n,$ as o,B as g,n as j,w as p}from"./index-
|
|
1
|
+
import{eN as h,eO as x,j as t,bB as m,o as n,$ as o,B as g,n as j,w as p}from"./index-H65M8kUw.js";import{n as s}from"./vendor-rkTZJa59.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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as G,l as me,hJ as ee,g9 as fe,ex as Je,hK as we,a as Me,hL as Ve,ca as _e,cb as Pe,j as a,B as be,F as Fe,bV as Ne,bX as qe,bY as Be,a4 as Re,hM as We,hN as $e,b as he,hO as Se,hP as Ue,cn as ze,e as Ye,i1 as Ge,ge as re,q as R,g as De,C as Ce,cd as He,hQ as Ke,hR as Qe,hS as Xe,o as _}from"./index-
|
|
1
|
+
import{a2 as G,l as me,hJ as ee,g9 as fe,ex as Je,hK as we,a as Me,hL as Ve,ca as _e,cb as Pe,j as a,B as be,F as Fe,bV as Ne,bX as qe,bY as Be,a4 as Re,hM as We,hN as $e,b as he,hO as Se,hP as Ue,cn as ze,e as Ye,i1 as Ge,ge as re,q as R,g as De,C as Ce,cd as He,hQ as Ke,hR as Qe,hS as Xe,o as _}from"./index-H65M8kUw.js";import{b as m,n as $}from"./vendor-rkTZJa59.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-Dt-O9AJR-Cx-gmbSa.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const W={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=$.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as $,l as ie,hJ as G,g9 as Ae,ex as Je,hK as Ie,a as Le,hL as we,ca as Me,cb as Ve,j as a,B as De,F as Pe,bV as Fe,bX as $e,bY as _e,a4 as Be,hM as Ne,hN as qe,b as re,hO as pe,hP as ze,cn as Ue,e as Re,ge as me,q as X,g as We,C as Ke,hQ as He,hR as Qe,hS as Ye,o as L}from"./index-
|
|
1
|
+
import{a2 as $,l as ie,hJ as G,g9 as Ae,ex as Je,hK as Ie,a as Le,hL as we,ca as Me,cb as Ve,j as a,B as De,F as Pe,bV as Fe,bX as $e,bY as _e,a4 as Be,hM as Ne,hN as qe,b as re,hO as pe,hP as ze,cn as Ue,e as Re,ge as me,q as X,g as We,C as Ke,hQ as He,hR as Qe,hS as Ye,o as L}from"./index-H65M8kUw.js";import{b as D,n as P}from"./vendor-rkTZJa59.js";import{i as Ge,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-Dt-O9AJR-Cx-gmbSa.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const q={labelWidth:new Ke(160,160,160)},tt=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as T,u as Z,j as t,hT as ie,B as N,hU as le,J as oe,hV as ge,dP as fe,cV as we,v as A,hW as ye,hS as be,o as i,C as b,g as j,T as $e,b as re,dL as je,bV as Se,bY as ke,cn as Q,cv as ee,ct as ve,hX as U,hY as Ce,aj as De,hZ as Me,b_ as ze,h_ as Le,q as u,s as L,ao as Ee,bX as Oe,p as pe,cw as Ae,ah as ne,cH as Te,a4 as Ie,l as _,h$ as I,fN as Ve,a0 as Fe,i0 as Je,a8 as G,cx as Be,aB as Pe}from"./index-
|
|
1
|
+
import{e as T,u as Z,j as t,hT as ie,B as N,hU as le,J as oe,hV as ge,dP as fe,cV as we,v as A,hW as ye,hS as be,o as i,C as b,g as j,T as $e,b as re,dL as je,bV as Se,bY as ke,cn as Q,cv as ee,ct as ve,hX as U,hY as Ce,aj as De,hZ as Me,b_ as ze,h_ as Le,q as u,s as L,ao as Ee,bX as Oe,p as pe,cw as Ae,ah as ne,cH as Te,a4 as Ie,l as _,h$ as I,fN as Ve,a0 as Fe,i0 as Je,a8 as G,cx as Be,aB as Pe}from"./index-H65M8kUw.js";import{b as D,n as o,j as B}from"./vendor-rkTZJa59.js";const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,h]=D.useState(!1),{control:m,formState:{errors:g},setValue:S}=Q(),v=()=>{k||(c(),h(!1))},w=()=>{y(),h(!1)},k=ee(g,l),x=T(),a=Z();return t.jsx(pe,{onClickAway:()=>{h(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&h(!0)},children:t.jsx(Ae,{name:R(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(Re,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(qe,{alignLeft:r===!0,children:[t.jsx(Qe,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Te,{name:R(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(et,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ie,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Re({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(_e,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ge,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function We({defaultValue:e,onClick:l}){return t.jsxs(Ke,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(_.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,_e=o.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ut,e as en,l as Y,kb as Ke,kc as tt,C as dt,kd as ud,ke as cd,kf as tn,kg as fd,kh as Tt,B as ir,ki as Bt,kj as qt,m as rn,o as kt,kk as ld,kl as hd,aE as Ft,aF as Kl,jR as Lt,km as dd,kn as pd,q as yn,ko as md,kp as Yl,kq as gd,kr as Jl,bi as Xl,N as zo,ks as vd,kt as yd,ku as _d,kv as Ql,kw as bd,kx as wd,ky as Sd,kz as Ed,kA as Rd,kB as Od,kC as Td,kD as xd,kE as Cd,kF as Ad,kG as Id,kH as Pd,kI as kd,gq as Ld}from"./index-
|
|
1
|
+
import{u as Ut,e as en,l as Y,kb as Ke,kc as tt,C as dt,kd as ud,ke as cd,kf as tn,kg as fd,kh as Tt,B as ir,ki as Bt,kj as qt,m as rn,o as kt,kk as ld,kl as hd,aE as Ft,aF as Kl,jR as Lt,km as dd,kn as pd,q as yn,ko as md,kp as Yl,kq as gd,kr as Jl,bi as Xl,N as zo,ks as vd,kt as yd,ku as _d,kv as Ql,kw as bd,kx as wd,ky as Sd,kz as Ed,kA as Rd,kB as Od,kC as Td,kD as xd,kE as Cd,kF as Ad,kG as Id,kH as Pd,kI as kd,gq as Ld}from"./index-H65M8kUw.js";import{j as X,D as nn,S as Vt}from"./mui-C42whWwM.js";import{b as Se,n as ut,c as Ve,i as eh,g as qd}from"./vendor-rkTZJa59.js";import{f as jd}from"./analyticsHelper-C7-W35Ls.js";import{g as rt,u as Ie,f as Ye}from"./redux-2gfZRks6.js";import{a as Je,d as pt,e as Dd,N as er,R as wt,c as qe,u as Zo,b as Go}from"./routing-VwiwPky5.js";import{B as ze,a as Qe,b as Nd,c as Wo,d as $d,e as Ko,f as Yo,g as Md,h as Fd,i as zt,j as th,k as rr,l as an,m as Ud,n as Bd,o as Vd,p as zd,q as Gd,s as Hd,t as Zd,u as rh,v as on,w as ar}from"./crypto-BDNqpTKX.js";import{p as Oe}from"./sentry-osuhWjvS.js";import{r as Wd}from"./lodash-BWJmwMit.js";import"./analytics-B3n5JGPc.js";import"./liveblocks-CP09Cz-7.js";const Kd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Yd(e,n){return{headerActions:{onTabChange:a=>{const i=qt(a),o=Bt(a);Ke.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ke.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(o=>o.matchingOperator).join(vs.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(o=>o.field).join(vs.comma)}}),e(Y.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(Y.initializeCompanyHealthMetricViewLocalData(a))},onColumnSortConfigChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(Y.fetchCompanyHealthMetricView())},onFiltersChange:a=>{e(Y.updateCompanyHealthViewUIState({uiState:{filters:a}}))}}}}function Jd(e,n){return{headerData:{selectedTabOption:Tt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Xd=Ye(Jd,Yd)(fd);function _n({isDrawerOpen:e}){const n=Je(),a=rt(),i=Ut(),o=en(),{companyId:t}=pt(),[r,s]=Dd(),[d,h]=Se.useState(!1),c=Ie(w=>Y.getCompanyHealthMetricView(w)),f=Ie(w=>Y.getCompanyManagementView(w)),{additionalChurnFactors:l}=Ie(w=>Y.getCompanyHealthMetricConfig(w)),{selectedCompanyDetail:_,selectedCompanyId:m,localFormDataAndStatusByCompanyId:b}=c,p=Ie(w=>w.companyViewState.zeniUsers.fetchState),u=Ie(w=>w.companyHealthMetricConfigViewState);if(Se.useEffect(()=>{const w=v=>v==="Not-Started"||v==="Error";c.fetchState==="Completed"?a(Y.fetchAllCockpitViews(!1)):w(c.fetchState)&&(a(Y.fetchCompanyHealthMetricView()),w(p)&&a(Y.fetchZeniUsers()),w(u.fetchState)&&a(Y.fetchCompanyHealthMetricConfig()))},[c.fetchState,u.fetchState]),Se.useEffect(()=>{t!=null&&c.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Y.initializeCompanyHealthMetricViewLocalData(t)),_!=null&&(Ke.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:_.companyInfo.companyId,companyName:_.companyInfo.name,churnProbability:_.companyHealthMetric.churnProbabilityPercentage??null}),h(r.has("utm_source")),r.delete("utm_source"),s(r)))},[c.fetchState,_?.companyInfo.companyId,_?.companyInfo.name]),tt.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return X.jsxs(X.Fragment,{children:[e===!0||m!=null&&_!=null?X.jsx(nn,{anchor:"right",open:m!=null,PaperProps:{style:{width:Kd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Y.removeSelectedCompanyId()),children:X.jsx(ud,{roomId:`cockpit_${m}`,autoConnect:!0,children:X.jsx(cd,{onSaveClick:()=>{m!=null&&a(Y.saveCompanyHealthMetricById(m))},onSaveChangesToLocalStore:w=>{c.selectedCompanyId!=null&&a(Y.updateCompanyHealthMetricLocalStore({companyId:c.selectedCompanyId,updatedLocalData:w}))},localData:b?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>a(Y.removeSelectedCompanyId()),analytics:Ke,urlSource:d,additionalChurnFactorsOptions:l})})}):null,X.jsx(Xd,{healthView:c,managementView:f,navigate:n,mixpanelHMUrl:tn.mixpanelHMUrl})]})}const nh=(e,n)=>{const a=[...e??[]];return a.push(n),a},Qd=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ep=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},Fe=({state:e,element:n})=>tt.isSignedIn()===!0?X.jsx(X.Fragment,{children:n}):X.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function tp(){return X.jsxs(wt,{children:[X.jsx(qe,{path:"/companies/:companyId",element:X.jsx(Fe,{element:X.jsx(_n,{isDrawerOpen:!0})})}),X.jsx(qe,{path:"/",element:X.jsx(Fe,{element:X.jsx(_n,{})})}),X.jsx(qe,{path:"/*",element:X.jsx(Fe,{element:X.jsx(_n,{})})})]})}const rp={drawerLeftMargin:new dt(0,0,240)};function or(e){const{isOpen:n,drawerLeftMargin:a,children:i,onClose:o}=e,t=en(),r=a?.valuePx(t)??rp.drawerLeftMargin.valuePx(t),s=Ut();return X.jsx(nn,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:o,children:i})}const np=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?X.jsx(ip,{children:X.jsx(rn,{size:"ExtraLarge",start:!0})}):null,ip=ut.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|