@zeniai/web-cockpit-ui 1.14.90-dev → 1.14.90-qa

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.
Files changed (214) hide show
  1. package/dist/assets/{ACHDetailsPage-BUP-_2-W-BxsdzxJg.js → ACHDetailsPage-BUP-_2-W-gKUKs0Pb.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DHF_70JI-BB0m0Wmb.js → AIPerformancePage-DHF_70JI-Byb0JaRY.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-pmUIckJ9-ClFTcWKH.js → AccountInfoPage-pmUIckJ9-CAlO-FHB.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-DLSL1NNm-ysW8pq2z.js → AccountInfoPageContent-DLSL1NNm-CTMQNQY3.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-Bq3y0K0F-DT_bUQ3U.js → AccountLockedInfoModal-Bq3y0K0F-Caep-eEi.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CGcZO_qz-Cy1Ijv5f.js → AccountReconDetailsDrawerPage-CGcZO_qz-DphTR8AG.js} +1 -1
  7. package/dist/assets/{AccountRow-D2Ypckgj-DU9kFXuE.js → AccountRow-D2Ypckgj-BVuVsxAI.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-BVVDCW1H-DJjdfLGW.js → AccountsPromoCardStack-BVVDCW1H-CHjSEilj.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-C8aENofu-DA1NQK9C.js → AddAddressForCardDrawer-C8aENofu-_B3noxtJ.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CmT5jSb5-D2YVbVt5.js → AddToWalletPage-CmT5jSb5-BtE7INh2.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BeUGvj3b-CHP-b-K4.js → AgingReportsPage-BeUGvj3b-BnHb3lWK.js} +1 -1
  12. package/dist/assets/{AllUserItems-CmlMyz-f-C0puagwR.js → AllUserItems-CmlMyz-f-BE3QXVOa.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-Dz1_N0Yw-iyEKxxlG.js → ApAgingDetailPage-Dz1_N0Yw-TUc4-BfW.js} +1 -1
  14. package/dist/assets/{AppBasePage-DX4EGGcT-DxyBlsaI.js → AppBasePage-DX4EGGcT-CA5JIcq8.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-Brg3Rw4K-DWiehP3E.js → AppDrawerContent-Brg3Rw4K-Du3ev71U.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-Bn7KrUl2-CvKRvgo_.js → ApprovalRulesSettingsPage-Bn7KrUl2-C_CZXQYN.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DQZtCsHS-CSTDLkfC.js → ArAgingChart-DQZtCsHS-zcjxKJqm.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BtF6K5dA-VZeY_ZUJ.js → ArAgingDetailPage-BtF6K5dA-CM34YcdM.js} +1 -1
  19. package/dist/assets/{AttachmentView-DgPySmB8-B0CUUwUu.js → AttachmentView-DgPySmB8-B41pIkR9.js} +1 -1
  20. package/dist/assets/{BankAccountSection-BVZK5jmO-oboSifeA.js → BankAccountSection-BVZK5jmO-CjTZMznk.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-DHdeDi15-DsdgRhNS.js → BankAccountWarningSection-DHdeDi15-M9LQMU5u.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BN3lAARB-UlnRR8CQ.js → BankConnectionsSettingsPage-BN3lAARB-B0yEFHuK.js} +1 -1
  23. package/dist/assets/{BillDetailPage-BuUm6vdf-DEUKUhee.js → BillDetailPage-BuUm6vdf-BEfZuL72.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BXSdsF2E-CYUFVErE.js → BillPayApprovalRuleDetailPage-BXSdsF2E-BZdDia51.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-B8HbVvc9-DpzHPmZp.js → BillPayApprovalRulesPage-B8HbVvc9-CNKY0-NR.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-DkoqXDNt-FNHctwfQ.js → BillPayPromoPage-DkoqXDNt-Jx7NR9vs.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-BommXkLS-DOKgmPVm.js → BillPaySetUpPage-BommXkLS-CxAPQ6nt.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-gHbc5Kq3-CFDIJf8G.js → BillingSettingsPage-gHbc5Kq3-6eOgIWo-.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-C541rBnx-DPMvwxh2.js → BillsBulkReviewDrawerPage-C541rBnx-CpMaFNun.js} +1 -1
  30. package/dist/assets/{BoxItem-usHxaONy-BSYmkNdH.js → BoxItem-usHxaONy-yqmV2_EE.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-CLsxXy9d-ClcyVS-f.js → BusinessVerificationPage-CLsxXy9d-ThEm2-hv.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-D_fWhc_K-BxJ3GoBc.js → CardNumberSubText-D_fWhc_K-C63mXt5C.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-D3WylWVP-CydwwFdH.js → CashbackDetailPage-D3WylWVP-D9Vs2ft8.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-BUsGBwBf-DhD5ouX9.js → ChargeCardDetailPage-BUsGBwBf-B-LmCTsN.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-Jhx05dVV-DjDdThgH.js → ChargeCardListPage-Jhx05dVV-CgbSqG5e.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-D-eYWaxh-CZeSVtIX.js → ChargeCardListTable-D-eYWaxh-OyS_l2le.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-CzR82VtA-DoVVgv51.js → ChargeCardPromoPage-CzR82VtA-C4AU7pmq.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-Ctz8PCuu-Dmh0C1fi.js → ChargeCardSetupPage-Ctz8PCuu-CQ_qZ7MK.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-EUtRTAX2-CIQRTxBN.js → ChargeCardStatementsPage-EUtRTAX2-C_GDwTRC.js} +1 -1
  40. package/dist/assets/{CheckDepositDrawerPage-B7DC0HAi-DPwOJJS7.js → CheckDepositDrawerPage-B7DC0HAi-p07KcTOW.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-I40BZv7o-RBVPkQ58.js → CollapsableReportTable-I40BZv7o-d2_h6r8O.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-ChsNKXbx-Dk7vpi01.js → CompanyOfficerDetailsSection-ChsNKXbx-BF5MOIbR.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-82bbFwk--C3mnYk4t.js → CompanyPassportCard-82bbFwk--CB88G7Qo.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-DG1Fa_Uw-B4wsnqA2.js → CompanyPassportPage-DG1Fa_Uw-Dkbt-nxV.js} +1 -1
  45. package/dist/assets/{CompleteProfile-B7bQqLQH-DwtJrHr4.js → CompleteProfile-B7bQqLQH-3BvSCHX1.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-DUyIBnw4-BZY51mbD.js → ConfettiBurst-DUyIBnw4-Bzth-g3m.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-DVzMO96w-CjeOn0Zu.js → CreateOrEditVendorPage-DVzMO96w-D2_PioHE.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-C03hfKGc-BI7dTqV7.js → CreditCardPaymentDrawerPage-C03hfKGc-CNfSxnSZ.js} +1 -1
  49. package/dist/assets/{CurrencySelectField-2hU3oIp_-CnccIVlk.js → CurrencySelectField-2hU3oIp_-C4bLV2kj.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-Dt-Nml2t-CQyv3wO4.js → CustomerOnboardingActivationPage-Dt-Nml2t-B6WqU8lr.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-Dt-_tVOQ-UhKf7bOm.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-C4Z1pDVe-CS261SSd.js → CustomerOnboardingDetailPageSkeleton-C4Z1pDVe-BqoeEQuE.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-CwI8nL61-Xg6qQ6Ku.js → CustomerOnboardingNoStepsPage-CwI8nL61-fFJJ4fRN.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-C3FgZjAN-C75cnlLW.js → CustomerOnboardingPage-C3FgZjAN-BMoiiOVQ.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-BOYu-82S-uR17VQjV.js → CustomerOnboardingProductSuitePage-BOYu-82S-CVVsk6ik.js} +1 -1
  56. package/dist/assets/{Dashboard-D_oTtu1--CP9XS1zf.js → Dashboard-D_oTtu1--DmU_Kxzw.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-Dprj3eUQ-BK5e1r9g.js → DashboardReportPage-Dprj3eUQ-BvCOtKTf.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-C6SQaB7q-C2qHBViE.js → DashboardSidebarBackgroundAnimation-C6SQaB7q-Dxl5QlMk.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-C2oP415b-B5ygx6vl.js → DepositAccTransactionItem-C2oP415b-fO_vukRP.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-DCvdqAz1-Df_FOAOf.js → DepositAccTransactionListPage-DCvdqAz1-B_wb_nSG.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-Da_3EveP-Bjb9K-P-.js → DomesticWireDetailsPage-Da_3EveP-BRE1nKx5.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-BwddFmV2-BqOR54wm.js → DownloadOverlay-BwddFmV2-TXwTh2dm.js} +1 -1
  63. package/dist/assets/{DrawerPage-CGrnrvf2-BvrxfWnf.js → DrawerPage-CGrnrvf2-C0F2USa4.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-DMgxG2Gd-C3BsPnxU.js → EditPeoplePage-DMgxG2Gd-CCtVDE58.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-DwCiVkeu-B4w5FVLx.js → EditReimbursementDetailPage-DwCiVkeu-CHb4Vx_R.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-BcRVEfi5-Cnj_gM9q.js → EntityDetailPage-BcRVEfi5-CepotlTP.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-BaHHLLkE-D3Ip19-Y.js → EntitySummarySection-BaHHLLkE-Drrfo_tg.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-hl_3Pc0g-gY12ACUr.js → ExpenseAutomationOverviewPage-hl_3Pc0g-DYxAAMa6.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-D70ghitX-EafeQT3m.js → ExpenseAutomationPage-D70ghitX-sSwqGXv6.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-BpfkmJ_I-B4izq8YR.js → ExpressPayPage-BpfkmJ_I-Cr6J8360.js} +1 -1
  71. package/dist/assets/{FeaturePreviewPage-Bzi8Bpk3-DtSpKYbK.js → FeaturePreviewPage-Bzi8Bpk3-Drk_uxAx.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-Bu3RG_GH-DmaIgxgE.js → FollowStepsSection-Bu3RG_GH-1o9BWCUV.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-D4BD7q-I-BHZQG-gN.js → GlobalReviewListPage-D4BD7q-I-IVn_04O3.js} +1 -1
  74. package/dist/assets/{InformationCardStack-B9wnkR3p-CjpaX6cg.js → InformationCardStack-B9wnkR3p-InW9f_7k.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-C1_rd2Sb-uYkz47Dy.js → InsightsCardStack-C1_rd2Sb-Dhs19DDG.js} +1 -1
  76. package/dist/assets/{InsightsSection-7-T67WeF-BlMRO9Ba.js → InsightsSection-7-T67WeF-R1I0UTTj.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-C9YpvDgg-DjW-A2Ra.js → IntegrationsSettingsPage-C9YpvDgg-q-aOCVtI.js} +1 -1
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-C5mI8dEh-MFTemI3R.js → InternationalWireSwiftDetailsPage-C5mI8dEh-B0sOCS9F.js} +1 -1
  79. package/dist/assets/{InternationalWireVerificationPage-B8AOwcSX-HJr1qwVZ.js → InternationalWireVerificationPage-B8AOwcSX-O5d4_jx5.js} +1 -1
  80. package/dist/assets/{InviteFormPage-DuBhhnre-DKK8UkI0.js → InviteFormPage-DuBhhnre-BDO1iW13.js} +1 -1
  81. package/dist/assets/{InvitePageListView-Dw8kwEFd-zXFzVUiq.js → InvitePageListView-Dw8kwEFd-BOBOJq-T.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-BI_vd7xw-BSlMVd1C.js → InvitePeoplePage-BI_vd7xw-BK1DYXv5.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-9DaovMq8-DOf6F-xG.js → InvoiceUploadSection-9DaovMq8-nY-DuZwJ.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-fumweN4Y-Ie_niRER.js → IssueChargeCardPage-fumweN4Y-CbGa-1Sy.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-cNf6hI1l-C1IgZGiS.js → LabeledAddressValue-cNf6hI1l-BswrPJcJ.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-CoTtV0RQ-CTJHm8Dm.js → LabeledAddressValueField-CoTtV0RQ-oEM2MjQO.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-DQwUvKR2-BFeYWYOG.js → LabeledControlledCheckBoxField-DQwUvKR2-CCQx34pM.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-CnQsTYWe-BxSldgLD.js → LabeledCreatableSingleSelectField-CnQsTYWe-BNKI3sBW.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-MkryOLQ8-ZmKcbrkd.js → LabeledDocumentField-MkryOLQ8-DH1KAWxk.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-B-yUtgxR-CkZPhULB.js → LabeledDropDownFormattedTextField-B-yUtgxR-Svg2dZ6s.js} +1 -1
  91. package/dist/assets/{LabeledText-BJ3Zvb5p-yc50ilCa.js → LabeledText-BJ3Zvb5p-ndTmW7U8.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CSEiKb8M-B7kyEAM_.js → LabeledUserSingleSelectWithSubtitlesField-CSEiKb8M-DUVObrd4.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-CS_oKjBG-CatyVbOL.js → LabeledZeniRolesDropDownField-CS_oKjBG-BYrCH7sg.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-BsszwFNq-BtKpHm2U.js → LinkJETransactionPage-BsszwFNq-CVlh2hC9.js} +1 -1
  95. package/dist/assets/{LockCardPage-DqQGGac2-Bntrtxvn.js → LockCardPage-DqQGGac2-DNRrTsHA.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-BFo5zRk3-BLFy36gu.js → LowBalancePopup-BFo5zRk3-mdHe1dcy.js} +1 -1
  97. package/dist/assets/{MagicLinkACHDetailsPage-wYa3cyyZ-Cn9Ml7SS.js → MagicLinkACHDetailsPage-wYa3cyyZ-tz2BvffR.js} +1 -1
  98. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CW4RNKOV-Bj3CP8hj.js → MagicLinkDomesticWireDetailsPage-CW4RNKOV-CtiYd2c1.js} +1 -1
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-CX9SeCLl-Bato55Wl.js → MagicLinkInternationalWireDetailsPage-CX9SeCLl-HVNLuX22.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-Dipq1-St-C4ZMZxw5.js → MagicLinkSuccessPage-Dipq1-St-CbeB13LZ.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-DnN52Uwb-aNaCMrDN.js → MagicLinkTitleSection-DnN52Uwb-Cs_fy5V9.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-DwNF-L2Y-DJJZ9RqI.js → MailingDetailsSection-DwNF-L2Y-DrhhdeyV.js} +1 -1
  103. package/dist/assets/{Menu-D0jF6uaE-AMW53cTN.js → Menu-D0jF6uaE-063ttLpF.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-DpM6MKBq-CmnrHUZV.js → MyBankConnectionsSettingsPage-DpM6MKBq-E1-nhC0K.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-BaT55Pwg-BdKjhqSf.js → MyPendingActivationChargeCardListPage-BaT55Pwg-Ag6G6vZu.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-kD1dY6P6-BAgE1Tqp.js → MyProfileSettingsPage-kD1dY6P6-BfZFNoxD.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-D-WQJ-tG-C6mGlKIr.js → NavBarWithPicker-D-WQJ-tG-Cy7zBv5q.js} +1 -1
  108. package/dist/assets/{NavigationArrow-Z9PgxZ-c-DrPA9Vgt.js → NavigationArrow-Z9PgxZ-c-2tqZ4Fw-.js} +1 -1
  109. package/dist/assets/{NavigationDots-BT-m0FmS-CJdtX5bS.js → NavigationDots-BT-m0FmS-COkqBkfX.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-YsnX4uQU-7PwHdB8y.js → NewGlobalMerchantPage-YsnX4uQU-D0h-bx1p.js} +1 -1
  111. package/dist/assets/{NoDataChart-DMivligx-DVgr9SAl.js → NoDataChart-DMivligx-CY99ibCB.js} +1 -1
  112. package/dist/assets/{NoDataTable-DwOJY23X-BMIpXvJR.js → NoDataTable-DwOJY23X-0CWxLk-0.js} +1 -1
  113. package/dist/assets/{NotFoundPage-DuKXpHos-BIXgl60z.js → NotFoundPage-DuKXpHos-CG3u4rQy.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-DlU2NxiC-DDx7Rraa.js → NotificationSettingsPage-DlU2NxiC-Dm2QaTZo.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-BQCb9x9X-C3jJIn48.js → NotificationsListConfig-BQCb9x9X-CKZiM7oL.js} +1 -1
  116. package/dist/assets/{NotificationsPage-q0bK_5gs-C_zZBYkJ.js → NotificationsPage-q0bK_5gs-jK6e_Uyw.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-Boc7U8eu-BxBRsCtx.js → OpExByVendorPage-Boc7U8eu-CVJq9vF2.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-CrZuT2Jj-DDO8EgYZ.js → OverlayContainerPage-CrZuT2Jj-CY2cJwH_.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-B2eGvFPp-CEl0eyCC.js → PandLWithForecastPage-B2eGvFPp-BaY0fBnf.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BP-_59EO-KoltH9y1.js → PaymentAccountSetupBillingAddressSection-BP-_59EO-hGRsM6bI.js} +1 -1
  121. package/dist/assets/{PeoplePage-YMfZIga6-BPMCy-eb.js → PeoplePage-YMfZIga6-BEib8XAV.js} +1 -1
  122. package/dist/assets/{ProductsCarousel-CUaU5-V7-CFq7I05R.js → ProductsCarousel-CUaU5-V7-DTCkPx2F.js} +1 -1
  123. package/dist/assets/{PromoBaseCards-CmOYEhSO-D3yPErwW.js → PromoBaseCards-CmOYEhSO-bExxN6kp.js} +1 -1
  124. package/dist/assets/{QBOConnectionDialog-BNiXUEAk-B55AIWRo.js → QBOConnectionDialog-BNiXUEAk-O1EeGUUa.js} +1 -1
  125. package/dist/assets/{QBOSetupSection-CjjNFfgF-CIhiV9Dd.js → QBOSetupSection-CjjNFfgF-hqHet92Q.js} +1 -1
  126. package/dist/assets/{ReimbursementApprovalRuleDetailPage-tP7WcKvd-CCMfftol.js → ReimbursementApprovalRuleDetailPage-tP7WcKvd-47DORnA2.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRulesPage-BkuYJ6qb-BIx385RC.js → ReimbursementApprovalRulesPage-BkuYJ6qb-7dFuSzMb.js} +1 -1
  128. package/dist/assets/{ReimbursementDetailPage-D5IzqJS5-BklJr7jT.js → ReimbursementDetailPage-D5IzqJS5-B19mA4vu.js} +1 -1
  129. package/dist/assets/{ReimbursementPromoPage-D7n6lZNo-BpT8Ss67.js → ReimbursementPromoPage-D7n6lZNo-CgdMqXow.js} +1 -1
  130. package/dist/assets/{ReimbursementSetUpPage-E1elWU5Z-VC2DwUtC.js → ReimbursementSetUpPage-E1elWU5Z-D7O-pf9b.js} +1 -1
  131. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-HzYNji-G-DGG79plx.js → ReimbursementsBulkReviewDrawerPage-HzYNji-G-BjLwNAB4.js} +1 -1
  132. package/dist/assets/{ReloadCard-DMWwNZ1z-CIbg2f6Q.js → ReloadCard-DMWwNZ1z-D31XYoZn.js} +1 -1
  133. package/dist/assets/{ReportTableViewSelector-EU36E1lv-XPDH-qLc.js → ReportTableViewSelector-EU36E1lv-CLM26q4e.js} +1 -1
  134. package/dist/assets/{ReportsPage-iJDifG6q-BnnQKn2l.js → ReportsPage-iJDifG6q-CYAyIPrv.js} +1 -1
  135. package/dist/assets/{RevenueChart-BbOK-HCB-UtcLA02J.js → RevenueChart-BbOK-HCB-C8qpvMvb.js} +1 -1
  136. package/dist/assets/{ReviewDetailsPage-Bk2vvBn3-C2KvPaPZ.js → ReviewDetailsPage-Bk2vvBn3-CMASDCWv.js} +1 -1
  137. package/dist/assets/{ReviewOverlay-CJlk2MNH-s-FncxF6.js → ReviewOverlay-CJlk2MNH-DksHT3Bn.js} +1 -1
  138. package/dist/assets/{RoleWithToolTip-B7woUKhj-CCCbdbHN.js → RoleWithToolTip-B7woUKhj-tuSqaaK3.js} +1 -1
  139. package/dist/assets/{ScheduleDetailsFixedAssetsPage-B-WjqQN_-BZxRVl4y.js → ScheduleDetailsFixedAssetsPage-B-WjqQN_-lrt0yIGR.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsPage-ocFBINM3-BwGXsqpK.js → ScheduleDetailsPage-ocFBINM3-BDslid8Y.js} +1 -1
  141. package/dist/assets/{ScheduleSequenceTable-Bb7MJ-zJ-GmSlZz8a.js → ScheduleSequenceTable-Bb7MJ-zJ-BYUE2OMk.js} +1 -1
  142. package/dist/assets/{ScreenRoutes-Bs2X1R3V.js → ScreenRoutes-DoE2zy1N.js} +1 -1
  143. package/dist/assets/{SetUpAccountSection-9zELif-q-xWCkQEz2.js → SetUpAccountSection-9zELif-q-jAntwqfL.js} +1 -1
  144. package/dist/assets/{SignIn-BHHUcLal-BDutKsDY.js → SignIn-BHHUcLal-B9B7yu5c.js} +1 -1
  145. package/dist/assets/{SignInScreen-DqJeiieA.js → SignInScreen-Czg-Wlkz.js} +1 -1
  146. package/dist/assets/{SpendManagementListViewPage-BAdSW-49-C0b0e4ib.js → SpendManagementListViewPage-BAdSW-49-Cy3aFFuZ.js} +3 -3
  147. package/dist/assets/{SpendManagementPerTabPage-HzCmGr0--BrKmnwTS.js → SpendManagementPerTabPage-HzCmGr0--xZeoOzCY.js} +1 -1
  148. package/dist/assets/{SpendManagementSection-LzT-Bnhy-DcyEJGSm.js → SpendManagementSection-LzT-Bnhy-7KIDrHzn.js} +1 -1
  149. package/dist/assets/{StatementItem-BnxTFgdM-ncI51LoG.js → StatementItem-BnxTFgdM-BUy1CSEA.js} +1 -1
  150. package/dist/assets/{StatementsPage-B8X2un5p-CiIvEzAF.js → StatementsPage-B8X2un5p-Ao0DiWwm.js} +1 -1
  151. package/dist/assets/{StatusSwitcher-BPKr5BUW-lb0m6Cbr.js → StatusSwitcher-BPKr5BUW-iZy1SY4R.js} +1 -1
  152. package/dist/assets/{SubTabSwitcher-4dvyyQSv-BdqA6ZlC.js → SubTabSwitcher-4dvyyQSv-B0aTRMDP.js} +1 -1
  153. package/dist/assets/{SummaryCard-CiNkV7uy-BHimAYKo.js → SummaryCard-CiNkV7uy-CyUPIfT8.js} +1 -1
  154. package/dist/assets/{TaskManagementPage-BiyyDIWi-DCcTniX2.js → TaskManagementPage-BiyyDIWi-DOn8-w1u.js} +1 -1
  155. package/dist/assets/{TimeRangeSwitcher-DEEhq2Us-D64DWBCZ.js → TimeRangeSwitcher-DEEhq2Us-DC70llJC.js} +1 -1
  156. package/dist/assets/{TimeframeSwitcher-u606tI8Z-DKc_Ov1z.js → TimeframeSwitcher-u606tI8Z-CLiEbUCN.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcherWithToggle-D2sBGHXQ-Dp4KGiW_.js → TimeframeSwitcherWithToggle-D2sBGHXQ-ChLeBSSB.js} +1 -1
  158. package/dist/assets/{TopExCard-DbPlohSJ-YKd6FEuQ.js → TopExCard-DbPlohSJ-Dhp9OZxf.js} +1 -1
  159. package/dist/assets/{TopExDetailPage-Cla8Hd-1-1fpYe-lT.js → TopExDetailPage-Cla8Hd-1-DK-xuoZs.js} +1 -1
  160. package/dist/assets/{TransactionDetailPage-BbjtQvBr-DNyUqobk.js → TransactionDetailPage-BbjtQvBr-FXHAHiFr.js} +1 -1
  161. package/dist/assets/{TransactionList-BRiHadkm-BVpjF8up.js → TransactionList-BRiHadkm-DPpaSQ1Y.js} +1 -1
  162. package/dist/assets/{TransactionListBig-BOeu4-R4-Cua70V6_.js → TransactionListBig-BOeu4-R4-o6UH9k2V.js} +1 -1
  163. package/dist/assets/{TransactionListPage-ByVvx6ON-C32shKZQ.js → TransactionListPage-ByVvx6ON-CwQjGljA.js} +1 -1
  164. package/dist/assets/{TransactionVendorDetailPage-DMweGn3b-CelejD-M.js → TransactionVendorDetailPage-DMweGn3b-Dq7toltd.js} +1 -1
  165. package/dist/assets/{TransferDrawerPage-BTqCR3Hb-CYdeK3jF.js → TransferDrawerPage-BTqCR3Hb-BWfDRvEr.js} +1 -1
  166. package/dist/assets/{TreasuryOverviewPage-CDJtsQsC-ns0b2xlD.js → TreasuryOverviewPage-CDJtsQsC-BAM2Gg0T.js} +1 -1
  167. package/dist/assets/{TreasuryPromoPage-Bqt6DcqL-DbWZMgaj.js → TreasuryPromoPage-Bqt6DcqL-CXIyIitA.js} +1 -1
  168. package/dist/assets/{TreasuryStatementsPage-2PsC-PWa-MMDwIX2Z.js → TreasuryStatementsPage-2PsC-PWa-D70yhjS2.js} +1 -1
  169. package/dist/assets/{TreasuryTaxLetterPage-D6MoHMAo-MFFnXqVo.js → TreasuryTaxLetterPage-D6MoHMAo-DmesESI8.js} +1 -1
  170. package/dist/assets/{TrendChart-DiutckSt-CgHLzJj6.js → TrendChart-DiutckSt-D94T5IZh.js} +1 -1
  171. package/dist/assets/{TrendWithTransactions-rPwZKHfV-DNKy45Dj.js → TrendWithTransactions-rPwZKHfV-Dtp5jwDW.js} +1 -1
  172. package/dist/assets/{UncategorizedAccountsMappingPage-CFx4P194-CH9WyFGN.js → UncategorizedAccountsMappingPage-CFx4P194-BZZ4iMs4.js} +1 -1
  173. package/dist/assets/{UnitIntegrationPage-DO8dMzVg-DvbEuGmN.js → UnitIntegrationPage-DO8dMzVg-Cd3rb01x.js} +1 -1
  174. package/dist/assets/{UploadAdditionalDocumentOverlay-Ug3kL02_-B3G6i9sn.js → UploadAdditionalDocumentOverlay-Ug3kL02_-DKI6OhwV.js} +1 -1
  175. package/dist/assets/{Vendor2FAPopup-BdG-Ywma-QkJvZ609.js → Vendor2FAPopup-BdG-Ywma-CO_da9UG.js} +1 -1
  176. package/dist/assets/{VendorACHDetailsPage-BUNmE_s6-5dZ0tO5y.js → VendorACHDetailsPage-BUNmE_s6-DPSp4E23.js} +1 -1
  177. package/dist/assets/{VendorDetailPage-Dy9McuGu-BueeE3oi.js → VendorDetailPage-Dy9McuGu-d-ZpZ6aU.js} +1 -1
  178. package/dist/assets/{VendorDomesticWireDetailsPage-DvACrh7C-fv6qIbh-.js → VendorDomesticWireDetailsPage-DvACrh7C-BLzpieuI.js} +1 -1
  179. package/dist/assets/{VendorFiling1099EditablePage-Y0hGO4RH-Bkykk5NB.js → VendorFiling1099EditablePage-Y0hGO4RH-BToJSlm-.js} +1 -1
  180. package/dist/assets/{VendorFirstReviewPage-C-pT1M36-D21-SWZN.js → VendorFirstReviewPage-C-pT1M36-D4-Nv1Fg.js} +1 -1
  181. package/dist/assets/{VendorInternationalWireDetailsPage-CCMramET-CvrUOrMX.js → VendorInternationalWireDetailsPage-CCMramET-BwYsNdGo.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-lxD_Z5W--BAaZ1iJw.js → VendorInternationalWireSwiftDetailsPage-lxD_Z5W--961yvZRp.js} +1 -1
  183. package/dist/assets/{VendorsAccountsSection-D-3fhQvy-ODF-nF1J.js → VendorsAccountsSection-D-3fhQvy-CbP2SER5.js} +1 -1
  184. package/dist/assets/{VerifyDevice-DDZdWfa8-C2_zooti.js → VerifyDevice-DDZdWfa8-H5PbdKsY.js} +1 -1
  185. package/dist/assets/{VideoPlayer-D0GZ_Yml-CzUqkm8K.js → VideoPlayer-D0GZ_Yml-gee9OAo-.js} +1 -1
  186. package/dist/assets/{VideoPopup-CEdhfU31-CRc_PqEa.js → VideoPopup-CEdhfU31-8qrMVIxi.js} +1 -1
  187. package/dist/assets/{WarningsDrawerPage-CIK9lkT2-4Dbh3gee.js → WarningsDrawerPage-CIK9lkT2-D5cDBgQm.js} +1 -1
  188. package/dist/assets/{ZeniAccountDetailPage-BF8cg2oa-D23upslb.js → ZeniAccountDetailPage-BF8cg2oa-Df5W17bc.js} +1 -1
  189. package/dist/assets/{ZeniAccountListViewPage-BkdkYY8j-BsJgCgRQ.js → ZeniAccountListViewPage-BkdkYY8j-Bvi6PCOk.js} +1 -1
  190. package/dist/assets/{ZeniAccountNavBarPieces-FAxN1QDY-BljetA4S.js → ZeniAccountNavBarPieces-FAxN1QDY-C5pMry9_.js} +1 -1
  191. package/dist/assets/{ZeniAccountPromoPage-COAOIU03-Bkst1764.js → ZeniAccountPromoPage-COAOIU03-B_FVyXMi.js} +1 -1
  192. package/dist/assets/{ZeniAccountSetupPage-QMBiVius-DdJzbNoZ.js → ZeniAccountSetupPage-QMBiVius-DueIhJzT.js} +1 -1
  193. package/dist/assets/{ZeniCopyright-CgfP-kcy-BQ8g3w-z.js → ZeniCopyright-CgfP-kcy-DUMhOisg.js} +1 -1
  194. package/dist/assets/{ZeniTransferAmountSlider-B1fmc3f9-BXoBksgM.js → ZeniTransferAmountSlider-B1fmc3f9-DSYZgQje.js} +1 -1
  195. package/dist/assets/{analyticsHelper-BKtlFOJm-DFeq4K6y.js → analyticsHelper-BKtlFOJm-CcPLbTK6.js} +1 -1
  196. package/dist/assets/{analyticsHelper-BY515BEN.js → analyticsHelper-BV9ovV44.js} +1 -1
  197. package/dist/assets/{chartTypes-BZYC5y5J-fsutalT0.js → chartTypes-BZYC5y5J-CVmMioA0.js} +1 -1
  198. package/dist/assets/{commonDimensions-B-aZt-hB-CyMsSMR_.js → commonDimensions-B-aZt-hB-CP54iB8v.js} +1 -1
  199. package/dist/assets/{detailCommon-DCtkwfR8-BBwf5Sk5.js → detailCommon-DCtkwfR8-Dr2vx6ZY.js} +1 -1
  200. package/dist/assets/{downloadPdf-BhQlJMh0-BaxCiwAc.js → downloadPdf-BhQlJMh0-DeqZGQ39.js} +1 -1
  201. package/dist/assets/{index-BhteR_e0.js → index-Dm9r1f6s.js} +4 -4
  202. package/dist/assets/{mapLoadingInProgressToTreeNode-B8iO-fIh-RTAx_JGt.js → mapLoadingInProgressToTreeNode-B8iO-fIh-DwG7e-RM.js} +1 -1
  203. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-PLUfKBDd-B2JV3NdC.js → mapSectionWithAcOnlyToTreeNode-PLUfKBDd-BfmC19Y6.js} +1 -1
  204. package/dist/assets/{mapSpacerToTreeNode-BPbkmHFY-Ce33KPvG.js → mapSpacerToTreeNode-BPbkmHFY-BZPeecIF.js} +1 -1
  205. package/dist/assets/{mapTimeframeBalancesToTreeNode-B-kK0AfR-BuUApKLg.js → mapTimeframeBalancesToTreeNode-B-kK0AfR-0kzYcFSC.js} +1 -1
  206. package/dist/assets/{mapTimeframeBalancesToTreeNode-BvN4m9TA-kT_avyio.js → mapTimeframeBalancesToTreeNode-BvN4m9TA-DSQ0LTze.js} +1 -1
  207. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-CoGG1EsI.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-C5Cp6P0a.js} +1 -1
  208. package/dist/assets/{toCOABalancesWithID-ChMShONK-DKVddnaL.js → toCOABalancesWithID-ChMShONK-Cq-mLDe3.js} +1 -1
  209. package/dist/assets/{toChartData-BUweupH8-9P9fGujj.js → toChartData-BUweupH8-sZruIW4t.js} +1 -1
  210. package/dist/assets/{uploadAttachment-CeUHLpzO-CvskAe_e.js → uploadAttachment-CeUHLpzO-C_J8w5W4.js} +1 -1
  211. package/dist/assets/{uploadReceipts-Bkf_PaOH-B-Qf32vH.js → uploadReceipts-Bkf_PaOH-qo0cBRii.js} +1 -1
  212. package/dist/index.html +1 -1
  213. package/package.json +1 -1
  214. package/dist/assets/CustomerOnboardingContainerPage-Dt-_tVOQ-B7ffmmrc.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as W,e as G,F as C,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y as B,o as w,aQ as we,m as Ce,bM as ye,d as S,E as R,aA as K,T as xe,aS as Oe,as as Ae,bD as Re}from"./index-BhteR_e0.js";import{a as T,S as X}from"./core-B-FNbYlu.js";import{n as _}from"./mui-DLNyBjYF.js";import{bh as Z,Et as Be,EC as ve,ED as E,EE as Le,EF as Te,EG as Pe,EH as ke,EI as Ne,EJ as ee,EK as te}from"./zeni-epic-state-HWtMOH-U.js";import{m as z,l as q}from"./analyticsHelper-BKtlFOJm-DFeq4K6y.js";import{u as Ie}from"./ReportTableViewSelector-EU36E1lv-XPDH-qLc.js";import{a as se,p as Me}from"./TimeRangeSwitcher-DEEhq2Us-D64DWBCZ.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-D2sBGHXQ-Dp4KGiW_.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-BwddFmV2-BqOR54wm.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-I40BZv7o-RBVPkQ58.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-PLUfKBDd-B2JV3NdC.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-BvN4m9TA-kT_avyio.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-CoGG1EsI.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-B8iO-fIh-RTAx_JGt.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./TimeframeSwitcher-u606tI8Z-DKc_Ov1z.js";import"./page-detail-CWX5S47F-Dn7FEY9U.js";import"./AccountRow-D2Ypckgj-DU9kFXuE.js";function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({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 re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({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 le({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=H({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=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 Ge(e,t,o=!0){const a=C.getLocalizedStrings().reports.sections,n=C.getLocalizedStrings().reports.balanceSheet,d=de(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=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("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(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(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 He({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function Ye(e,t,o=!0){const a=C.getLocalizedStrings().reports.sections,n=C.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=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("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(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else ke(s)===!0?i.push(He({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ne(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 Ze(e,t,o=!0,a=!1){const n=C.getLocalizedStrings().reports,d=C.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({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=De[s];const y=ze({title:`${h}+${c}`,balances:p,config:t});y.reportElementData.element.numOfBalances=6,l.push(y)})}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=H({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(ee(s)===!0){const c=e.sections[s];c!=null&&l.push($e({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(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 qe(e,t,o=!0){const a=C.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=H({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(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 B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
1
+ import{q as W,e as G,F as C,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y as B,o as w,aQ as we,m as Ce,bM as ye,d as S,E as R,aA as K,T as xe,aS as Oe,as as Ae,bD as Re}from"./index-Dm9r1f6s.js";import{a as T,S as X}from"./core-B-FNbYlu.js";import{n as _}from"./mui-DLNyBjYF.js";import{bh as Z,Et as Be,EC as ve,ED as E,EE as Le,EF as Te,EG as Pe,EH as ke,EI as Ne,EJ as ee,EK as te}from"./zeni-epic-state-HWtMOH-U.js";import{m as z,l as q}from"./analyticsHelper-BKtlFOJm-CcPLbTK6.js";import{u as Ie}from"./ReportTableViewSelector-EU36E1lv-CLM26q4e.js";import{a as se,p as Me}from"./TimeRangeSwitcher-DEEhq2Us-DC70llJC.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-D2sBGHXQ-ChLeBSSB.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-BwddFmV2-TXwTh2dm.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-I40BZv7o-d2_h6r8O.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-PLUfKBDd-BfmC19Y6.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-BvN4m9TA-DSQ0LTze.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-C5Cp6P0a.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-B8iO-fIh-DwG7e-RM.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./TimeframeSwitcher-u606tI8Z-CLiEbUCN.js";import"./page-detail-CWX5S47F-Dn7FEY9U.js";import"./AccountRow-D2Ypckgj-BVuVsxAI.js";function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({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 re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({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 le({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=H({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=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 Ge(e,t,o=!0){const a=C.getLocalizedStrings().reports.sections,n=C.getLocalizedStrings().reports.balanceSheet,d=de(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=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("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(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(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 He({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function Ye(e,t,o=!0){const a=C.getLocalizedStrings().reports.sections,n=C.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=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("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(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else ke(s)===!0?i.push(He({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ne(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 Ze(e,t,o=!0,a=!1){const n=C.getLocalizedStrings().reports,d=C.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({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=De[s];const y=ze({title:`${h}+${c}`,balances:p,config:t});y.reportElementData.element.numOfBalances=6,l.push(y)})}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=H({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(ee(s)===!0){const c=e.sections[s];c!=null&&l.push($e({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(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 qe(e,t,o=!0){const a=C.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=H({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(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 B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
2
2
  height: ${e=>e.height}px;
3
3
  width: 99.9%;
4
4
  margin-top: ${w.sp2};
@@ -1,4 +1,4 @@
1
- import{e as A,V as a,F as S,q as de,aK as Ae,b1 as Q,d as E,b as M,aV as J,o as m,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-BhteR_e0.js";import{a as P,S as ee}from"./core-B-FNbYlu.js";import{n as x}from"./mui-DLNyBjYF.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-BZYC5y5J-fsutalT0.js";import{i as K,h as oe,c as I}from"./toCOABalancesWithID-ChMShONK-DKVddnaL.js";import{V as Z}from"./toChartData-BUweupH8-9P9fGujj.js";import{B as Te,C as te,X as le,Y as ne,T as ce,L as pe,b as se,c as me,d as fe}from"./recharts-Cnl2EvUV.js";const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Fe=x.div`
1
+ import{e as A,V as a,F as S,q as de,aK as Ae,b1 as Q,d as E,b as M,aV as J,o as m,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-Dm9r1f6s.js";import{a as P,S as ee}from"./core-B-FNbYlu.js";import{n as x}from"./mui-DLNyBjYF.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-BZYC5y5J-CVmMioA0.js";import{i as K,h as oe,c as I}from"./toCOABalancesWithID-ChMShONK-Cq-mLDe3.js";import{V as Z}from"./toChartData-BUweupH8-sZruIW4t.js";import{B as Te,C as te,X as le,Y as ne,T as ce,L as pe,b as se,c as me,d as fe}from"./recharts-Cnl2EvUV.js";const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Fe=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{q as Ct,av as Tt,y as u,e$ as Dt,F as It,f0 as Pt,f1 as kt,V as t,f2 as At,f3 as le,f4 as Mt,f5 as Bt,f6 as Ft,aK as j,f7 as Rt,aL as A,f8 as Lt,f9 as zt,fa as Me,fb as Be,fc as Fe,b as K,fd as O,fe as E,ff as W,p as S,fg as Nt,fh as Ot,fi as Et,fj as Wt,bQ as Re,o as n,aO as Zt,d,ah as Vt,b$ as Yt,a as _t,B as qt,fk as Gt,cf as Kt,ak as de,al as ce,fl as Ht,fm as Ut,bg as Qt,l as Jt,b7 as Xt,ap as et,bI as en,ag as tt,br as tn,fn as nn}from"./index-BhteR_e0.js";import{a as V}from"./core-B-FNbYlu.js";import{n as a}from"./mui-DLNyBjYF.js";import{bp as Le,bn as ze,bK as I,bQ as an,Fb as ln,bO as oe,bS as on}from"./zeni-epic-state-HWtMOH-U.js";import{t as rn,o as sn}from"./LowBalancePopup-BFo5zRk3-BLFy36gu.js";import{S as Z}from"./LabeledText-BJ3Zvb5p-yc50ilCa.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new _t("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:y}},spendManagement:{billPay:mn}}=It.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[b,g]=V.useState(!1),M=()=>{g(!1)},C=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?g(!0):null,children:[b&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},da=({billDetails:e,billpayApprovalView:b,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:f,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:dt})=>{const s=Ct(),c=Tt(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:f},F=g&&f!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(C,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Ne.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?Pt(ge,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?kt(ge,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,fe]=V.useState(!1),[mt,xe]=V.useState(!1),be=()=>fe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:s,children:t.jsx(Rn,{})})]}):At(e.paymentDetailsSection?.paymentTo);V.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&Y?.code?Y:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&Y?.code?Y:P,ne=()=>{me()},we=()=>{me()},_=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),gt=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,q=b.allApprovalRules.length>0,ft=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),h=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{st(),xe(!1)},k=h&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),x=k&&!ot,je=Ze(x,q,e.isBillMarkedForRetry),wt=()=>h?x?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Ot(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?Bt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const St=h?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(T),endDate:oe(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ie!=null){const Te=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Te,De,Ie,Pe,ke,Ae):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Te,De,Ie,Pe,ke,Ae)}}},Se=()=>{Ce===!0&&G(!1),e.isBillMarkedForRetry===!0?(dt(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,b.allApprovalRules,c.loggedInUser),[Ce,G]=V.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Ft,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Rt,{companyName:Lt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:_?.format(T)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:s,style:it,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(He,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(_e,{windowSize:s,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(He,{onClick:we})}),s!=="small"?t.jsx(Sn,{children:t.jsx(_e,{windowSize:s,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[t.jsx(qn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Vn,{children:[t.jsx(_n,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=zt(l);return l!=null?t.jsx(Yn,{children:nt.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Qe,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(T)]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Qe,{})}),t.jsxs(Zn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(T)]}),t.jsx(Je,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ge,{children:i.pay}),t.jsx(Ke,{children:t.jsx(Fe,{amount:ft,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ge,{children:i.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[h?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(Z,{label:{label:i.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Nt(e.paymentDetailsSection.withdrawFrom,s):y,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(H,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(Z,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(H,{}),!h&&_!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(Z,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:_.format(T),additionalInfoLabel:`${i.estimatedArrival}${oe(on(_.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(H,{})]}):null,h?null:t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(Z,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:gt})}),h||lt?t.jsxs(t.Fragment,{children:[t.jsx(H,{}),t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(Z,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Wt(e.isRecurring,h,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,h,e.recurringConfig)})})]}):null]}),!h&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(fn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(gn,{children:[t.jsxs(Ye,{children:[t.jsx(se,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ye,{children:[t.jsx(se,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(se,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Zt,{cancelBtn:{label:k&&!x?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!x?ve:ne,style:{width:Ve(!1,k,x,q,s)}},primaryBtn:{label:Ze(x,q,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:x?ve:()=>{vt&&ie!=null?G(!0):Se()},style:{width:Ve(!0,k,x,q,s)}},rightSideComponent:k&&!x&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:s,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Hn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Kn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},Ze=(e,b,g)=>e?i.paymentOutsideZeni.markAsPaid:g===!0?i.retryPayment:b?i.sendForApproval:i.scheduleBill,Ve=(e,b,g,M,C)=>g?128:b&&!e&&C==="small"?"auto":M?165:m.footerButtonWidth.value(C),pn=a(en)`
1
+ import{q as Ct,av as Tt,y as u,e$ as Dt,F as It,f0 as Pt,f1 as kt,V as t,f2 as At,f3 as le,f4 as Mt,f5 as Bt,f6 as Ft,aK as j,f7 as Rt,aL as A,f8 as Lt,f9 as zt,fa as Me,fb as Be,fc as Fe,b as K,fd as O,fe as E,ff as W,p as S,fg as Nt,fh as Ot,fi as Et,fj as Wt,bQ as Re,o as n,aO as Zt,d,ah as Vt,b$ as Yt,a as _t,B as qt,fk as Gt,cf as Kt,ak as de,al as ce,fl as Ht,fm as Ut,bg as Qt,l as Jt,b7 as Xt,ap as et,bI as en,ag as tt,br as tn,fn as nn}from"./index-Dm9r1f6s.js";import{a as V}from"./core-B-FNbYlu.js";import{n as a}from"./mui-DLNyBjYF.js";import{bp as Le,bn as ze,bK as I,bQ as an,Fb as ln,bO as oe,bS as on}from"./zeni-epic-state-HWtMOH-U.js";import{t as rn,o as sn}from"./LowBalancePopup-BFo5zRk3-mdHe1dcy.js";import{S as Z}from"./LabeledText-BJ3Zvb5p-ndTmW7U8.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new _t("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:y}},spendManagement:{billPay:mn}}=It.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[b,g]=V.useState(!1),M=()=>{g(!1)},C=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?g(!0):null,children:[b&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},da=({billDetails:e,billpayApprovalView:b,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:f,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:dt})=>{const s=Ct(),c=Tt(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:f},F=g&&f!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(C,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Ne.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?Pt(ge,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?kt(ge,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,fe]=V.useState(!1),[mt,xe]=V.useState(!1),be=()=>fe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:s,children:t.jsx(Rn,{})})]}):At(e.paymentDetailsSection?.paymentTo);V.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&Y?.code?Y:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&Y?.code?Y:P,ne=()=>{me()},we=()=>{me()},_=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),gt=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,q=b.allApprovalRules.length>0,ft=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),h=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{st(),xe(!1)},k=h&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),x=k&&!ot,je=Ze(x,q,e.isBillMarkedForRetry),wt=()=>h?x?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Ot(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?Bt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const St=h?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(T),endDate:oe(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ie!=null){const Te=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Te,De,Ie,Pe,ke,Ae):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Te,De,Ie,Pe,ke,Ae)}}},Se=()=>{Ce===!0&&G(!1),e.isBillMarkedForRetry===!0?(dt(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,b.allApprovalRules,c.loggedInUser),[Ce,G]=V.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Ft,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Rt,{companyName:Lt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:_?.format(T)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:s,style:it,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(He,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(_e,{windowSize:s,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(He,{onClick:we})}),s!=="small"?t.jsx(Sn,{children:t.jsx(_e,{windowSize:s,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[t.jsx(qn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Vn,{children:[t.jsx(_n,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=zt(l);return l!=null?t.jsx(Yn,{children:nt.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Qe,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(T)]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Qe,{})}),t.jsxs(Zn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(T)]}),t.jsx(Je,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ge,{children:i.pay}),t.jsx(Ke,{children:t.jsx(Fe,{amount:ft,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ge,{children:i.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[h?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(Z,{label:{label:i.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Nt(e.paymentDetailsSection.withdrawFrom,s):y,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(H,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(Z,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(H,{}),!h&&_!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(Z,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:_.format(T),additionalInfoLabel:`${i.estimatedArrival}${oe(on(_.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(H,{})]}):null,h?null:t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(Z,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:gt})}),h||lt?t.jsxs(t.Fragment,{children:[t.jsx(H,{}),t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(Z,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Wt(e.isRecurring,h,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,h,e.recurringConfig)})})]}):null]}),!h&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(fn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(gn,{children:[t.jsxs(Ye,{children:[t.jsx(se,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ye,{children:[t.jsx(se,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(se,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Zt,{cancelBtn:{label:k&&!x?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!x?ve:ne,style:{width:Ve(!1,k,x,q,s)}},primaryBtn:{label:Ze(x,q,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:x?ve:()=>{vt&&ie!=null?G(!0):Se()},style:{width:Ve(!0,k,x,q,s)}},rightSideComponent:k&&!x&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:s,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Hn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Kn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},Ze=(e,b,g)=>e?i.paymentOutsideZeni.markAsPaid:g===!0?i.retryPayment:b?i.sendForApproval:i.scheduleBill,Ve=(e,b,g,M,C)=>g?128:b&&!e&&C==="small"?"auto":M?165:m.footerButtonWidth.value(C),pn=a(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{q as B,V as e,aK as x,o as r,aO as L,y as d,L as P,a as C,B as W,p as s,ak as $,cy as R,m as I,ag as j,bf as D,d as n,eg as G,c as q,iQ as A,j$ as F}from"./index-BhteR_e0.js";import{n as t}from"./mui-DLNyBjYF.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])},O={title:new C("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:E,hideCancel:T},onCloseOverlay:k,onCloseReviewItem:M})=>{const a=B();return e.jsxs(H,{children:[e.jsx(Y,{windowSize:a,children:e.jsx(Z,{children:e.jsx(_,{windowSize:a,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(J,{windowSize:a,children:[e.jsxs(K,{windowSize:a,children:[e.jsx(Q,{children:e.jsx(N,{windowSize:a,children:i})}),e.jsx(U,{isError:p.isError,windowSize:a,children:p.content})]}),e.jsx(X,{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:()=>M(o.id),"data-testid":x("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:V(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(v,{children:e.jsx(y,{})}):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(v,{children:e.jsx(y,{})}):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:E,showCancel:!T}):null]})},V=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(f,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(f,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(ai,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(li,{}),H=t.div`
1
+ import{q as B,V as e,aK as x,o as r,aO as L,y as d,L as P,a as C,B as W,p as s,ak as $,cy as R,m as I,ag as j,bf as D,d as n,eg as G,c as q,iQ as A,j$ as F}from"./index-Dm9r1f6s.js";import{n as t}from"./mui-DLNyBjYF.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])},O={title:new C("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:E,hideCancel:T},onCloseOverlay:k,onCloseReviewItem:M})=>{const a=B();return e.jsxs(H,{children:[e.jsx(Y,{windowSize:a,children:e.jsx(Z,{children:e.jsx(_,{windowSize:a,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(J,{windowSize:a,children:[e.jsxs(K,{windowSize:a,children:[e.jsx(Q,{children:e.jsx(N,{windowSize:a,children:i})}),e.jsx(U,{isError:p.isError,windowSize:a,children:p.content})]}),e.jsx(X,{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:()=>M(o.id),"data-testid":x("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:V(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(v,{children:e.jsx(y,{})}):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(v,{children:e.jsx(y,{})}):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:E,showCancel:!T}):null]})},V=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(f,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(f,{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};
@@ -1,4 +1,4 @@
1
- import{eL as h,eM as x,V as s,bQ as m,o as n,aK as o,F as g,am as j,ag as p}from"./index-BhteR_e0.js";import{n as r}from"./mui-DLNyBjYF.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=r.div``,f=r.div`
1
+ import{eL as h,eM as x,V as s,bQ as m,o as n,aK as o,F as g,am as j,ag as p}from"./index-Dm9r1f6s.js";import{n as r}from"./mui-DLNyBjYF.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=r.div``,f=r.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{aN as G,ie as ee,gA as me,ew as Le,ig as we,a8 as Je,ih as Me,cB as Ve,cC as _e,V as a,F as ge,ab as Fe,cm as Pe,cn as Ne,co as qe,aO as Be,ii as We,ij as Re,a9 as he,ik as fe,il as Ue,cO as ze,q as $e,iA as Ke,gF as re,d as W,p as Se,y as De,cE as Ge,im as He,io as Xe,ip as Ze,o as _}from"./index-BhteR_e0.js";import{a as m}from"./core-B-FNbYlu.js";import{n as U}from"./mui-DLNyBjYF.js";import{FF as Qe,FG as Ye}from"./zeni-epic-state-HWtMOH-U.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-Bb7MJ-zJ-GmSlZz8a.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const R={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=U.div`
1
+ import{aN as G,ie as ee,gA as me,ew as Le,ig as we,a8 as Je,ih as Me,cB as Ve,cC as _e,V as a,F as ge,ab as Fe,cm as Pe,cn as Ne,co as qe,aO as Be,ii as We,ij as Re,a9 as he,ik as fe,il as Ue,cO as ze,q as $e,iA as Ke,gF as re,d as W,p as Se,y as De,cE as Ge,im as He,io as Xe,ip as Ze,o as _}from"./index-Dm9r1f6s.js";import{a as m}from"./core-B-FNbYlu.js";import{n as U}from"./mui-DLNyBjYF.js";import{FF as Qe,FG as Ye}from"./zeni-epic-state-HWtMOH-U.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-Bb7MJ-zJ-BYUE2OMk.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const R={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=U.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{aN as _,ie as Q,gA as ke,ew as Ae,ig as Ie,a8 as Je,ih as Le,cB as we,cC as Me,V as a,F as fe,ab as Ve,cm as Pe,cn as Fe,co as _e,aO as $e,ii as Be,ij as Ne,a9 as ie,ik as he,il as qe,cO as Ue,q as ze,gF as pe,d as X,p as We,y as Re,im as Ke,io as Ge,ip as He,o as L}from"./index-BhteR_e0.js";import{a as D}from"./core-B-FNbYlu.js";import{n as P}from"./mui-DLNyBjYF.js";import{FF as Ye,FG as Qe,bO as Xe}from"./zeni-epic-state-HWtMOH-U.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-Bb7MJ-zJ-GmSlZz8a.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const q={labelWidth:new Re(160,160,160)},at=P.div`
1
+ import{aN as _,ie as Q,gA as ke,ew as Ae,ig as Ie,a8 as Je,ih as Le,cB as we,cC as Me,V as a,F as fe,ab as Ve,cm as Pe,cn as Fe,co as _e,aO as $e,ii as Be,ij as Ne,a9 as ie,ik as he,il as qe,cO as Ue,q as ze,gF as pe,d as X,p as We,y as Re,im as Ke,io as Ge,ip as He,o as L}from"./index-Dm9r1f6s.js";import{a as D}from"./core-B-FNbYlu.js";import{n as P}from"./mui-DLNyBjYF.js";import{FF as Ye,FG as Qe,bO as Xe}from"./zeni-epic-state-HWtMOH-U.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-Bb7MJ-zJ-BYUE2OMk.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const q={labelWidth:new Re(160,160,160)},at=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{q as I,e as Z,V as t,iq as ie,F as R,ir as le,a as oe,is as xe,dN as fe,fc as we,b as A,it as ye,ip as be,o as i,y as b,p as j,l as $e,a9 as re,dJ as je,cm as Se,co as ke,cO as K,cW as ee,cU as ve,iu as U,iv as De,b1 as Ce,iw as Me,cq as ze,ix as Le,d as h,ak as L,b7 as Ee,cn as Oe,an as pe,cX as Ae,a$ as ne,ek as Ie,aO as Ve,iy as V,gb as Fe,aL as Te,iz as Je,aS as _,cY as Be,bf as Pe}from"./index-BhteR_e0.js";import{n as o,b as B}from"./mui-DLNyBjYF.js";import{a as C}from"./core-B-FNbYlu.js";import{bj as G,FH as Re}from"./zeni-epic-state-HWtMOH-U.js";const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=K(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(x,l),g=I(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Qe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ke,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(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(Ie,{name:N(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(Xe,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(qe,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(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(Ve,{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 We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(_e,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ue,{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 qe({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(Re(r)),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{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`
1
+ import{q as I,e as Z,V as t,iq as ie,F as R,ir as le,a as oe,is as xe,dN as fe,fc as we,b as A,it as ye,ip as be,o as i,y as b,p as j,l as $e,a9 as re,dJ as je,cm as Se,co as ke,cO as K,cW as ee,cU as ve,iu as U,iv as De,b1 as Ce,iw as Me,cq as ze,ix as Le,d as h,ak as L,b7 as Ee,cn as Oe,an as pe,cX as Ae,a$ as ne,ek as Ie,aO as Ve,iy as V,gb as Fe,aL as Te,iz as Je,aS as _,cY as Be,bf as Pe}from"./index-Dm9r1f6s.js";import{n as o,b as B}from"./mui-DLNyBjYF.js";import{a as C}from"./core-B-FNbYlu.js";import{bj as G,FH as Re}from"./zeni-epic-state-HWtMOH-U.js";const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=K(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(x,l),g=I(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Qe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ke,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(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(Ie,{name:N(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(Xe,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(qe,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(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(Ve,{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 We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(_e,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ue,{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 qe({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(Re(r)),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{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{DG as Gh,DH as ir,DI as Hh,iO as qt,hw as xl,iQ as Ot,ht as Zh,hA as Tl,DJ as ls,hC as Yh,hD as Wh,DK as mr,DL as ar,h1 as Kh,DM as nn,DN as qo,cP as Jh,f3 as Do,f0 as Xr,f8 as kt,f6 as Xh,DO as Il,DP as Al,hR as Qh,hO as ed,DQ as td,i0 as rd,hX as hs,hU as nd,hJ as id,DR as ad,dK as od,cV as sd,j0 as Cl,DS as ud,bO as Jr,hG as ds,hL as cd,oE as Pl,iP as an,DT as pt,ic as No,DU as fd,j6 as ld,B as et,A as ye,DV as $o,DW as hd,g_ as dd,DX as pd,DY as kl,DZ as md,nf as ps,mM as gd,D_ as vd,mS as bn,D$ as yd,mU as _d,E0 as St,mJ as bd,cC as wd,iT as jl,iU as Ll,iS as Mo,iR as Fo,iV as Ed,E1 as Sd,ni as Rd,E2 as Od,m$ as xd,nc as Td,E3 as Id,n3 as Ad,E4 as Cd,E5 as Zt,E6 as Uo,E7 as Pd,E8 as kd,lM as jd,lS as ql,E9 as Dl,gv as Ld,CM as Nl,Ea as qd,CG as Dd,Eb as Nd,Ec as $d,lV as Md,Ed as Fd,CR as Ud,CF as Bd,q9 as $l,Ee as wn,Ef as Ml,zV as Bo,zH as Vd,zY as Fl,zK as zd,Eg as Gd,zP as Hd,zB as Zd,zE as Yd,Eh as Wd,A0 as Kd,zS as Jd,c3 as Xd,bd as Qd,Ei as ep,Ej as Mt,Ek as tp,El as rp,Em as np,i4 as Po,bb as ip}from"./zeni-epic-state-HWtMOH-U.js";import{j as B,D as on,n as tt,S as Ut}from"./mui-DLNyBjYF.js";import{p as Ve,w as Ke,x as ct,y as ap,a as le,n as Oe,o as ze,N as er,s as bt,t as xe,e as Ul,d as Bl,g as op,u as Vo,q as ko}from"./core-B-FNbYlu.js";import{e as Bt,q as sn,f as Be,z as We,y as ut,g as sp,W as up,h as un,i as cp,N as xt,F as or,j as Vt,k as Dt,m as cn,o as Pt,r as fp,H as lp,R as jt,t as zo,v as Lt,Z as hp,Y as dp,d as En,C as pp,w as Vl,x as mp,A as zl,T as Gl,E as jo,G as gp,I as vp,J as yp,K as Hl,O as _p,P as bp,Q as wp,S as Ep,X as Sp,U as Rp,_ as Op,$ as xp,a0 as Tp,a1 as Ip,a2 as Ap,a3 as Cp,a4 as Pp}from"./index-BhteR_e0.js";import{f as kp}from"./analyticsHelper-BY515BEN.js";import{q as He,v as jp,w as Lp,x as qp,y as Go,z as Dp,A as Np,B as $p,C as zt,D as Mp,E as rr,F as fn,G as Fp,H as sr,I as Up}from"./utils-D1zwltK3.js";import{r as Ho}from"./empty-CnIz-OQ7.js";import{r as ur,a as Bp}from"./index-DdJI4MMd.js";import{r as Vp}from"./index-dPPP2cWo.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./url-DzcuVjHh.js";const zp={overlayWidth:new ut(100,100,50)},{common:{strings:ms}}=or.getLocalizedStrings();function Gp(e,n){return{headerActions:{onTabChange:o=>{const i=Dt(o),a=Vt(o);Be.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(mr({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Be.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(ms.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(ms.comma)}}),e(mr({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Tl(o))},onColumnSortConfigChanged:(o,i)=>{e(mr({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(xl())},onFiltersChange:o=>{e(mr({uiState:{filters:o}}))}}}}function Hp(e,n){return{headerData:{selectedTabOption:xt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Zp=ze(Hp,Gp)(cp);function Sn({isDrawerOpen:e}){const n=Ve(),o=Ke(),i=Bt(),a=sn(),{companyId:t}=ct(),[r,s]=ap(),[d,l]=le.useState(!1),f=Oe(b=>Gh(b)),h=Oe(b=>ir(b)),{additionalChurnFactors:c}=Oe(b=>Hh(b)),{selectedCompanyDetail:w,selectedCompanyId:m,localFormDataAndStatusByCompanyId:y}=f,g=Oe(b=>b.companyViewState.zeniUsers.fetchState),u=Oe(b=>b.companyHealthMetricConfigViewState);if(le.useEffect(()=>{const b=v=>v==="Not-Started"||v==="Error";f.fetchState==="Completed"?o(qt(!1)):b(f.fetchState)&&(o(xl()),b(g)&&o(Ot()),b(u.fetchState)&&o(Zh()))},[f.fetchState,u.fetchState]),le.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Tl(t)),w!=null&&(Be.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),We.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return B.jsxs(B.Fragment,{children:[e===!0||m!=null&&w!=null?B.jsx(on,{anchor:"right",open:m!=null,PaperProps:{style:{width:zp.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(ls()),children:B.jsx(sp,{roomId:`cockpit_${m}`,autoConnect:!0,children:B.jsx(up,{onSaveClick:()=>{m!=null&&o(Wh(m))},onSaveChangesToLocalStore:b=>{f.selectedCompanyId!=null&&o(Yh({companyId:f.selectedCompanyId,updatedLocalData:b}))},localData:y?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>o(ls()),analytics:Be,urlSource:d,additionalChurnFactorsOptions:c})})}):null,B.jsx(Zp,{healthView:f,managementView:h,navigate:n,mixpanelHMUrl:un.mixpanelHMUrl})]})}const Zl=(e,n)=>{const o=[...e??[]];return o.push(n),o},Yp=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Wp=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>We.isSignedIn()===!0?B.jsx(B.Fragment,{children:n}):B.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Kp(){return B.jsxs(bt,{children:[B.jsx(xe,{path:"/companies/:companyId",element:B.jsx(Pe,{element:B.jsx(Sn,{isDrawerOpen:!0})})}),B.jsx(xe,{path:"/",element:B.jsx(Pe,{element:B.jsx(Sn,{})})}),B.jsx(xe,{path:"/*",element:B.jsx(Pe,{element:B.jsx(Sn,{})})})]})}const Jp={drawerLeftMargin:new ut(0,0,240)};function cr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=sn(),r=o?.valuePx(t)??Jp.drawerLeftMargin.valuePx(t),s=Bt();return B.jsx(on,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Xp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?B.jsx(Qp,{children:B.jsx(cn,{size:"ExtraLarge",start:!0})}):null,Qp=tt.div`
1
+ import{DG as Gh,DH as ir,DI as Hh,iO as qt,hw as xl,iQ as Ot,ht as Zh,hA as Tl,DJ as ls,hC as Yh,hD as Wh,DK as mr,DL as ar,h1 as Kh,DM as nn,DN as qo,cP as Jh,f3 as Do,f0 as Xr,f8 as kt,f6 as Xh,DO as Il,DP as Al,hR as Qh,hO as ed,DQ as td,i0 as rd,hX as hs,hU as nd,hJ as id,DR as ad,dK as od,cV as sd,j0 as Cl,DS as ud,bO as Jr,hG as ds,hL as cd,oE as Pl,iP as an,DT as pt,ic as No,DU as fd,j6 as ld,B as et,A as ye,DV as $o,DW as hd,g_ as dd,DX as pd,DY as kl,DZ as md,nf as ps,mM as gd,D_ as vd,mS as bn,D$ as yd,mU as _d,E0 as St,mJ as bd,cC as wd,iT as jl,iU as Ll,iS as Mo,iR as Fo,iV as Ed,E1 as Sd,ni as Rd,E2 as Od,m$ as xd,nc as Td,E3 as Id,n3 as Ad,E4 as Cd,E5 as Zt,E6 as Uo,E7 as Pd,E8 as kd,lM as jd,lS as ql,E9 as Dl,gv as Ld,CM as Nl,Ea as qd,CG as Dd,Eb as Nd,Ec as $d,lV as Md,Ed as Fd,CR as Ud,CF as Bd,q9 as $l,Ee as wn,Ef as Ml,zV as Bo,zH as Vd,zY as Fl,zK as zd,Eg as Gd,zP as Hd,zB as Zd,zE as Yd,Eh as Wd,A0 as Kd,zS as Jd,c3 as Xd,bd as Qd,Ei as ep,Ej as Mt,Ek as tp,El as rp,Em as np,i4 as Po,bb as ip}from"./zeni-epic-state-HWtMOH-U.js";import{j as B,D as on,n as tt,S as Ut}from"./mui-DLNyBjYF.js";import{p as Ve,w as Ke,x as ct,y as ap,a as le,n as Oe,o as ze,N as er,s as bt,t as xe,e as Ul,d as Bl,g as op,u as Vo,q as ko}from"./core-B-FNbYlu.js";import{e as Bt,q as sn,f as Be,z as We,y as ut,g as sp,W as up,h as un,i as cp,N as xt,F as or,j as Vt,k as Dt,m as cn,o as Pt,r as fp,H as lp,R as jt,t as zo,v as Lt,Z as hp,Y as dp,d as En,C as pp,w as Vl,x as mp,A as zl,T as Gl,E as jo,G as gp,I as vp,J as yp,K as Hl,O as _p,P as bp,Q as wp,S as Ep,X as Sp,U as Rp,_ as Op,$ as xp,a0 as Tp,a1 as Ip,a2 as Ap,a3 as Cp,a4 as Pp}from"./index-Dm9r1f6s.js";import{f as kp}from"./analyticsHelper-BV9ovV44.js";import{q as He,v as jp,w as Lp,x as qp,y as Go,z as Dp,A as Np,B as $p,C as zt,D as Mp,E as rr,F as fn,G as Fp,H as sr,I as Up}from"./utils-D1zwltK3.js";import{r as Ho}from"./empty-CnIz-OQ7.js";import{r as ur,a as Bp}from"./index-DdJI4MMd.js";import{r as Vp}from"./index-dPPP2cWo.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./url-DzcuVjHh.js";const zp={overlayWidth:new ut(100,100,50)},{common:{strings:ms}}=or.getLocalizedStrings();function Gp(e,n){return{headerActions:{onTabChange:o=>{const i=Dt(o),a=Vt(o);Be.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(mr({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Be.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(ms.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(ms.comma)}}),e(mr({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Tl(o))},onColumnSortConfigChanged:(o,i)=>{e(mr({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(xl())},onFiltersChange:o=>{e(mr({uiState:{filters:o}}))}}}}function Hp(e,n){return{headerData:{selectedTabOption:xt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Zp=ze(Hp,Gp)(cp);function Sn({isDrawerOpen:e}){const n=Ve(),o=Ke(),i=Bt(),a=sn(),{companyId:t}=ct(),[r,s]=ap(),[d,l]=le.useState(!1),f=Oe(b=>Gh(b)),h=Oe(b=>ir(b)),{additionalChurnFactors:c}=Oe(b=>Hh(b)),{selectedCompanyDetail:w,selectedCompanyId:m,localFormDataAndStatusByCompanyId:y}=f,g=Oe(b=>b.companyViewState.zeniUsers.fetchState),u=Oe(b=>b.companyHealthMetricConfigViewState);if(le.useEffect(()=>{const b=v=>v==="Not-Started"||v==="Error";f.fetchState==="Completed"?o(qt(!1)):b(f.fetchState)&&(o(xl()),b(g)&&o(Ot()),b(u.fetchState)&&o(Zh()))},[f.fetchState,u.fetchState]),le.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Tl(t)),w!=null&&(Be.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),We.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return B.jsxs(B.Fragment,{children:[e===!0||m!=null&&w!=null?B.jsx(on,{anchor:"right",open:m!=null,PaperProps:{style:{width:zp.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(ls()),children:B.jsx(sp,{roomId:`cockpit_${m}`,autoConnect:!0,children:B.jsx(up,{onSaveClick:()=>{m!=null&&o(Wh(m))},onSaveChangesToLocalStore:b=>{f.selectedCompanyId!=null&&o(Yh({companyId:f.selectedCompanyId,updatedLocalData:b}))},localData:y?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>o(ls()),analytics:Be,urlSource:d,additionalChurnFactorsOptions:c})})}):null,B.jsx(Zp,{healthView:f,managementView:h,navigate:n,mixpanelHMUrl:un.mixpanelHMUrl})]})}const Zl=(e,n)=>{const o=[...e??[]];return o.push(n),o},Yp=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Wp=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>We.isSignedIn()===!0?B.jsx(B.Fragment,{children:n}):B.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Kp(){return B.jsxs(bt,{children:[B.jsx(xe,{path:"/companies/:companyId",element:B.jsx(Pe,{element:B.jsx(Sn,{isDrawerOpen:!0})})}),B.jsx(xe,{path:"/",element:B.jsx(Pe,{element:B.jsx(Sn,{})})}),B.jsx(xe,{path:"/*",element:B.jsx(Pe,{element:B.jsx(Sn,{})})})]})}const Jp={drawerLeftMargin:new ut(0,0,240)};function cr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=sn(),r=o?.valuePx(t)??Jp.drawerLeftMargin.valuePx(t),s=Bt();return B.jsx(on,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Xp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?B.jsx(Qp,{children:B.jsx(cn,{size:"ExtraLarge",start:!0})}):null,Qp=tt.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;