@zeniai/web-cockpit-ui 1.15.4-dev → 1.15.5-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/dist/assets/{ACHDetailsPage-uGxVPurg-BoohNpSs.js → ACHDetailsPage-BLKhKkZC-CoU9qIfj.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DqmxZNlX--Hr--1bJ.js → AIPerformancePage-J3dtNEgn-DnDSfWCN.js} +103 -103
  3. package/dist/assets/{AccountInfoPage-C2Dq8UPa-CDfBL7Wu.js → AccountInfoPage-CI5UcHFj-BegJKMi4.js} +3 -3
  4. package/dist/assets/{AccountInfoPageContent-HVhR3c9c-DosFJwky.js → AccountInfoPageContent-D8oVcn1T-BXq3_V4W.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-DM9AQ-14-CIrGwmC7.js → AccountLockedInfoModal-B9_FdrYm-5NyxuZ6Z.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-zcvYkXrD-BPDfVNC-.js → AccountReconDetailsDrawerPage-DFjW0u9--BQEqjGYe.js} +39 -39
  7. package/dist/assets/{AccountRow-B3ULDo0k-BhJpm00a.js → AccountRow-Bq6uJ1hA-Vc9-Z3M-.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-CJZlWV2d-EdC25r6I.js → AccountsPromoCardStack-DQmHrc8b-Vd3CyDRc.js} +3 -3
  9. package/dist/assets/{AddAddressForCardDrawer-Rm7tH3HQ-BC-bWtsD.js → AddAddressForCardDrawer-O987RTn2-BVD6IV9k.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-DfB-vvqh--jeS88nY.js → AddToWalletPage-C2Z6f8Y6-DKRITatO.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-__jUwahK-CLXoQ0cz.js → AgingReportsPage-BlPqvXdx-BhMR9uMZ.js} +3 -3
  12. package/dist/assets/{AllUserItems-Coo6Qik6-UHUBqeo9.js → AllUserItems-CL17FcAl-HA7Ybf9E.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-C1LyqY_A-BtwuroAU.js → ApAgingDetailPage-CHVwRH_g-DOXwF09t.js} +1 -1
  14. package/dist/assets/{AppBasePage-Cz2ddFfo-mHKaK9iL.js → AppBasePage-CnlPnTBn-DzDs3_Wg.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-CObWehh2-Cjn399er.js → AppDrawerContent-C2CNe5yn-CV61WWnW.js} +5 -5
  16. package/dist/assets/{ApprovalRulesSettingsPage-ZqKHe7B_-CavRIFVF.js → ApprovalRulesSettingsPage-XsMzIe4e-WBRcfJJV.js} +1 -1
  17. package/dist/assets/{ArAgingChart-CjRE8wyO-KhcQp5wu.js → ArAgingChart-Ck1uAv_a-BqG8XmZ6.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-DXjs7XAS-CBng1tZs.js → ArAgingDetailPage-KRWJzbCq-SXmC1xou.js} +5 -5
  19. package/dist/assets/{AttachmentView-C3WpRmXR-DHEKPSUE.js → AttachmentView-uaen0kuU-Bv_0F11t.js} +1 -1
  20. package/dist/assets/{BankAccountSection-BigS_oOq-Ci-ry1uG.js → BankAccountSection-CwOhGEgT-CV3SB5KM.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-Czlvc-qX-fV9_v1_E.js → BankAccountWarningSection-D7BVcqIu-RUBf41j-.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BgliKI11-CVrp_3jT.js → BankConnectionsSettingsPage-BOdlcBfa-aX1YHXK9.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DNPgeuje-DvJjtReR.js → BillDetailPage-Ct4Q960V-B1Ta0IG7.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-OrTzXAEP-F8EXZnBA.js → BillPayApprovalRuleDetailPage-DUU4rXuM-DI9nvx98.js} +4 -4
  25. package/dist/assets/{BillPayApprovalRulesPage-DXcPkwwf-D9IFAJHv.js → BillPayApprovalRulesPage-C0pcFzje-Rb9cSqGe.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-fBpp10um-GZ0MLbC-.js → BillPayPromoPage-BsEtxcjB-BRyrvd2x.js} +13 -13
  27. package/dist/assets/{BillPaySetUpPage-9iEVFLUa-CieGlXQ4.js → BillPaySetUpPage-B-rBYCtR-CKuO1PYp.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-IL6J1DV0-C_Ptx6al.js → BillingSettingsPage-BadzsZdt-CdWNz3my.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DcRTKRMw-Dot6MMyh.js → BillsBulkReviewDrawerPage-CbA-LUIt-BCAx-hEw.js} +1 -1
  30. package/dist/assets/{BoxItem-Cg9N_YPt-DJ_jUCA7.js → BoxItem-BoanamYM-C9a7ISxI.js} +3 -3
  31. package/dist/assets/{BusinessVerificationPage-KZWTxmeh-Bf4A-QbN.js → BusinessVerificationPage-B9hjIdCd-fjXOOEEK.js} +2 -2
  32. package/dist/assets/{CardNumberSubText-DqtkAe0V-CnWXJt_4.js → CardNumberSubText-DFO_EKrs-fq6YqMPG.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-D-l7cqjW-DUYPwmfE.js → CashbackDetailPage-Bp85-5Ie-BrWWJ_z3.js} +8 -8
  34. package/dist/assets/{ChargeCardDetailPage-ChwrpnhL-veTgs8Ar.js → ChargeCardDetailPage-D8dY9X8Q-CY9gkPfd.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-zDV88I5X-B2RVPf-8.js → ChargeCardListPage-CxplfJ1W-Cs-f2f69.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-Cu1sCT_g-BGpTFZxZ.js → ChargeCardListTable-scY11ryy-Biigjr-j.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-Db6zW203-WFxJEWqw.js → ChargeCardPaymentHistoryPage-Brh4ot5q-B0jRGM62.js} +1 -1
  38. package/dist/assets/{ChargeCardPromoPage-DsrTt5B0-CxLK8tnF.js → ChargeCardPromoPage-CPURUrkI-ElY1-FvK.js} +10 -10
  39. package/dist/assets/{ChargeCardSetupPage-DcYthQvc-CTSyFY1c.js → ChargeCardSetupPage-Bumq17f6-CZtiCi9E.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-DkUJKxIz-CnKozjSR.js → ChargeCardStatementsPage-DbU7LEIP-BvT1248-.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-C7rL0Ts2-RP5ItDdY.js → CheckDepositDrawerPage-CFl7Vr_I-m-GUaKwL.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-B0N8Ybey-DhyMNzbJ.js → CollapsableReportTable-CRaZZnGr-DHalWth7.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-5DfSL2V8-ScLL5OT8.js → CompanyOfficerDetailsSection-C4rN7mXr-DfF7L_UZ.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-BLw_MMZR-CEzISmuM.js → CompanyPassportCard-I21kA_Ir-BLJfyfQk.js} +3 -3
  45. package/dist/assets/{CompanyPassportPage-BamWWVQB-C7x4VyMq.js → CompanyPassportPage-BSDnF5-7-Cj98T4ob.js} +1 -1
  46. package/dist/assets/{CompleteProfile-CPwV8diq-J2SvPl5E.js → CompleteProfile-uultMZ5R-wTNN90nG.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-CJc1ZWFJ-DhK08ncO.js → ConfettiBurst-CpmYtgfk-D3B4eByY.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-CDqjntBH-Dvy2lhUu.js → CreateOrEditVendorPage-AfKsEb9G-Dm36bf3i.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-cBCHuatx-C8VBVt7-.js → CreditCardPaymentDrawerPage-D0Lh5Tw1-XpTz-POB.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-kA2N_h2r-CcyWX90z.js → CurrencySelectField-BvNBUOqg-A4J8Uxia.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-BU5SX7SV-Difzp9Mo.js → CustomerOnboardingActivationPage-OtCugBPI-qX05IlgL.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-DGhE9fpo-BZZCLRzR.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DGG2nFxO-Dw6MsSJ6.js → CustomerOnboardingDetailPageSkeleton-CMqEIIWe-DnAkQb7J.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-Dx_Py2Fa-Eccb4L_B.js → CustomerOnboardingNoStepsPage-p062pNc5-C-l3wTbU.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingPage-AHQX5bSN-BxpQ0OvT.js → CustomerOnboardingPage-Byojt-WN-CQTmwoTL.js} +1 -1
  56. package/dist/assets/CustomerOnboardingProductSuitePage-C9W7h_tT-Brpfoewd.js +202 -0
  57. package/dist/assets/{Dashboard-BQGdcgDK-CcNLKkZL.js → Dashboard-Dkwr9npN-BXZ9_-Zj.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-C9eB1Lz--5ieAwPtY.js → DashboardReportPage-Qk5_OFw7-BDc17Jc3.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-Cu7qPhOd-CTi4Znx6.js → DashboardSidebarBackgroundAnimation-BiD26wyg-CHBm92QN.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-DOcqx_qa-leYCAzF7.js → DepositAccTransactionItem-13TnlK6P-m98DXUKx.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-gxOQSQ9a-C_x5v-6x.js → DepositAccTransactionListPage-Dc3G81fB-A9cH7zUI.js} +1 -1
  62. package/dist/assets/{DomesticWireDetailsPage-C_chbExL-BeToz5h5.js → DomesticWireDetailsPage-CCIoGmZO-B4_Jo1Es.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-a0IFrzRd-D3N8T5hh.js → DownloadOverlay-Nc_Ra7Co-DN1ubFHO.js} +1 -1
  64. package/dist/assets/{DrawerPage-D3ezgD8z-B72SfIcT.js → DrawerPage-Bq1naYya-CQiLfSVq.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-BnCysZo9-DrBsiLvG.js → EditPeoplePage-BnYTxq_9-DPMlpday.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-BzKR9gus-CcV8vLu7.js → EditReimbursementDetailPage-D-uH9OV3-BSdAEEMn.js} +1 -1
  67. package/dist/assets/{EntityDetailPage-B8vx2Mri-Dq6ftPMD.js → EntityDetailPage-DCcgGupN-C9TRJ7Es.js} +2 -2
  68. package/dist/assets/{EntitySummarySection-B5pV5wTI-DsRwDVIH.js → EntitySummarySection-BI44dDjO-CYCNaLvg.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-D25gPCR4-DOT9Bi2a.js → ExpenseAutomationOverviewPage-XA0L4mZw-dYnFXq-m.js} +4 -4
  70. package/dist/assets/{ExpenseAutomationPage-BUAS2p9i-IL1JLlJv.js → ExpenseAutomationPage-CGkJWoKY-B55w2jvQ.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-DfIwfewF-QpNTIKub.js → ExpressPayPage-BX3rmT8V-AcNsZZN-.js} +8 -8
  72. package/dist/assets/{FeaturePreviewPage-AXorSpml-Ds6bcvAF.js → FeaturePreviewPage-W5YS3_F--DlENOTKC.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-YR8SDxZC-jK4GFXy_.js → FollowStepsSection-C1Nmspra-Cdu3naRV.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-CxH9D6qC-D9VCs7_X.js → GlobalReviewListPage-BfVSGVJe-Bw9xs6tt.js} +1 -1
  75. package/dist/assets/{InformationCardStack-GuTsARmk-m7W2Cyla.js → InformationCardStack-BwgEyJER-uNbIwCBo.js} +3 -3
  76. package/dist/assets/{InsightsCardStack-CmTNccBr-B7V7JJKw.js → InsightsCardStack-BnEWSQ0m-VtqL0Nqc.js} +2 -2
  77. package/dist/assets/{InsightsSection-Bu-MplmN-Dorr_z_6.js → InsightsSection-hFNVHtei-D2NFl-zU.js} +5 -5
  78. package/dist/assets/{IntegrationsSettingsPage-JZMYvwgs-DuQDlnR9.js → IntegrationsSettingsPage-De8DEt0a-Cw9Ydly2.js} +2 -2
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-CM50BUc0-_CxvnrXr.js → InternationalWireSwiftDetailsPage-Dri_Nj57-i38KBpxN.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-Cg0oEA0I-D1TCfpW-.js → InternationalWireVerificationPage-CPIRgDy5-DxjBH4Le.js} +3 -3
  81. package/dist/assets/{InviteFormPage-CDlB29vX-Dmvvor8B.js → InviteFormPage-Ca_tdccZ-C7hXm59I.js} +1 -1
  82. package/dist/assets/{InvitePageListView-74Ymz8Xr-JpwUJSKI.js → InvitePageListView-BQbRhQ6V-DRrSpNW9.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-DxLF-5KU-CkS36yG4.js → InvitePeoplePage-BKffwOP--D-GaMZqa.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-De-7n3RO-qOxwsJtX.js → InvoiceUploadSection-H-JhX_DQ-B3PXCVQk.js} +1 -1
  85. package/dist/assets/{IssueChargeCardPage-CzKlIsrE-CA_eEqsH.js → IssueChargeCardPage-rinAPB-d-By9lpPwl.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-CZwyvCy5-D1-9Sm0B.js → LabeledAddressValue-kPYLLOgv-BlJjmDxn.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-k9TP-qlZ-BzpglZfd.js → LabeledAddressValueField-B_N4O3Mv-CAfERVwt.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-DBnXkX-G-D4fP_6xf.js → LabeledControlledCheckBoxField-DiD9FNgO-CEPdNCHK.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-CiWNHg9A-DFrwqamp.js → LabeledCountryMultiSelectField-BCYMtV4j-BR8aIp2g.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-DdVE_wVv-xntEGmYo.js → LabeledCreatableSingleSelectField-Dm03LVdQ-DGBXlNr1.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-DGnh1cGh-BCYe8_PA.js → LabeledDocumentField-CWqz_jSU-BI4o2Iwv.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-BnaconeO-Ced0Yfaq.js → LabeledDropDownFormattedTextField-DhwPnDY8-yVeJPc_Q.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-Bt5PGbgf-8xamnDnk.js → LabeledMultiSelectField-C9feGqHN-OE3NSO1-.js} +1 -1
  94. package/dist/assets/{LabeledText-D9rbUJbs-B8rHFe3f.js → LabeledText-C91Eu04E-DW9Q389z.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DsstNVEx-CdKxnW8j.js → LabeledUserSingleSelectWithSubtitlesField-uruIe6mr--Ku_p9uL.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-DhvE24vx-B-YVtH41.js → LabeledZeniRolesDropDownField-BBpe1-wI-fb12_Q3E.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-CpttcuV1-DTLtK8Xw.js → LinkJETransactionPage-Cn7He0uo-CU1EJOb0.js} +2 -2
  98. package/dist/assets/{LockCardPage-FMI6xt1u-BqXJz86i.js → LockCardPage-CaIor45t-fxRy_eBL.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-UNnJZwgC-D6ASOhaV.js → LowBalancePopup-DQJYforY-CaW9bnoT.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-CTqUXhIp-BPw-bzqm.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-Dn7zRSmC-Cp1zfiCQ.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-BP3vdY52-BzDP-7_t.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-MURH2rp8-CYwIx8kJ.js → MagicLinkSuccessPage-RsvHwQTQ-DKdw4jPk.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-Cyx2YimC-BzlWjntf.js → MagicLinkTitleSection-DaThYY60-DuPzkS6C.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-Ro9Lxvtp-BP_WY31Z.js → MailingDetailsSection-DKs9SGYB-DpYzwmUT.js} +2 -2
  106. package/dist/assets/{Menu-XT10vy6U-BOoUbuzb.js → Menu-DWx47kcG-CqRpt11Z.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BwD3OyXL-Da0NgCMi.js → MyBankConnectionsSettingsPage-DtnGJLK--62eLaU86.js} +5 -5
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-B4yQ0O4T-B-nL-DnD.js → MyPendingActivationChargeCardListPage-B1A2Dxw3-KQAV9F2y.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-Bb4QkILK-HSMShd-J.js → MyProfileSettingsPage-BHpnpTmJ-DUJX3teA.js} +5 -5
  110. package/dist/assets/{NavBarWithPicker-DhLovvzt-DexTgtAK.js → NavBarWithPicker-Biz620wH-BwhpY8Dt.js} +1 -1
  111. package/dist/assets/{NavigationArrow-lK8LcatV-DGfMOxMA.js → NavigationArrow-CV_u5I1d-Dq_Cpl0i.js} +1 -1
  112. package/dist/assets/{NavigationDots-Dp0jKWtv-wJZlAbQ6.js → NavigationDots-DBshnTnS-eQudWkl3.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-DFt03MpW-DqMLqtG6.js → NewGlobalMerchantPage-DV2k3q5N-BcTx-Ahj.js} +1 -1
  114. package/dist/assets/{NoDataChart-BVStkyEY-B8WZvGsw.js → NoDataChart-DmThvRWS-pxiREfeT.js} +1 -1
  115. package/dist/assets/{NoDataTable-CBglXVQp-DDY10FD4.js → NoDataTable-8GCzndE4-Bqx95DdJ.js} +1 -1
  116. package/dist/assets/{NotFoundPage-8N4Q0cRS-l_4f29AK.js → NotFoundPage-VR72eVPP-RofDTL3E.js} +4 -4
  117. package/dist/assets/{NotificationSettingsPage--cl75C4Y-CI4sz5M5.js → NotificationSettingsPage-Bwf-7o4F-Aj6P3Xzl.js} +3 -3
  118. package/dist/assets/{NotificationsListConfig-BvqUVi6A-BHY0be2X.js → NotificationsListConfig-Dn_RFaAK-YhpveZOf.js} +1 -1
  119. package/dist/assets/{NotificationsPage-ClhmC4cD-IBtrx1co.js → NotificationsPage-B8GufkTS-DUQT6vp2.js} +18 -18
  120. package/dist/assets/{OpExByVendorPage-B24tsc-s-D6QTllTB.js → OpExByVendorPage-BlEqljuU-DVw46mxv.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-Daz3A7cI-qKQBMmtx.js → OverlayContainerPage-Daz3A7cI-jq9xEsKm.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-ChmIZfeB--a2CqoGA.js → PandLWithForecastPage-GOxiUR2j-BGagWawc.js} +2 -2
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-rhNK3_SE-DvD9qIA8.js → PaymentAccountSetupBillingAddressSection-BIxsEOJG-BjXFADJ0.js} +1 -1
  124. package/dist/assets/{PeoplePage-PetKjS8P-_ragIp3s.js → PeoplePage-DahKRMoB-F0cHCzgT.js} +13 -13
  125. package/dist/assets/{Preview-BfeJRZ_s.js → Preview-CrPzNPnm.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-DzhNUiJk-CnpcLYLM.js → ProductsCarousel-1P24z1p4-CeCLsS0U.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-ZTN2uS4W-CaNYBpDe.js → PromoBaseCards-DiKj0_oo-CtEGMdvr.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-CBtavUIz-BfsbqfyR.js → QBOConnectionDialog-A0ysjdIC-Eqpwl6_L.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-jcVYFWfP-BR9neq53.js → QBOSetupSection-Me828i1a-N1PCk_UL.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BoarRMWS-CplZNZTA.js → ReimbursementApprovalRuleDetailPage-dID4dZbu-DAIygneU.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-B5hHz-7T-COzYdYAx.js → ReimbursementApprovalRulesPage-D8stgYq_-CqsPNPUT.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-YfiCLu3C-DRrFxOgG.js → ReimbursementDetailPage-DaYD1eTP-BBI-ZKs3.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-CC_zFd3U-B-6fRWux.js → ReimbursementPromoPage-ClRa3wo6-GK77Fy92.js} +4 -4
  134. package/dist/assets/{ReimbursementSetUpPage-ChjBTodZ-BokcNixy.js → ReimbursementSetUpPage-CaJCRajP-Bhbzq9G6.js} +4 -4
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DOSDVT4u-B7pg5Efr.js → ReimbursementsBulkReviewDrawerPage-BuBVWui--heWobZZd.js} +1 -1
  136. package/dist/assets/{ReloadCard-qzpNu5-B-VePHUMif.js → ReloadCard-DzxA-pGI-BwtgRkm9.js} +5 -5
  137. package/dist/assets/{ReportTableViewSelector-kzIQLZ5u-DS78KTH3.js → ReportTableViewSelector-D1k2eDtE-DWKTaUmF.js} +1 -1
  138. package/dist/assets/{ReportsPage-DVZ3Rcn1-CBE174bA.js → ReportsPage-DqXYfBQC-DTOBKK0U.js} +5 -5
  139. package/dist/assets/{RevenueChart-Bu8VCI9M-BYSxY3Z8.js → RevenueChart-C0vx4zUX-Uw0PsYMZ.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-Cl2_0ldt-BqZxApRm.js → ReviewDetailsPage-DmHHVA8I-Sy4HvXq_.js} +52 -52
  141. package/dist/assets/{ReviewOverlay-vmoQ2B3U-XNVWskNH.js → ReviewOverlay-tGj059Ib-BvRNdoTH.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-CEcusyL7-YmpTx_Di.js → RoleWithToolTip-BGafXnoE-Cs8CtpyO.js} +5 -5
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-D9w3rUch-DKLGn-zP.js → ScheduleDetailsFixedAssetsPage-DuuvsMhX-gKNOvkFU.js} +3 -3
  144. package/dist/assets/{ScheduleDetailsPage-LbjrnfcH-DCCH1T9I.js → ScheduleDetailsPage-BCw7YaHZ-CsQRejR9.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-2IpjhbUO-GCUPvy0g.js → ScheduleSequenceTable-C31xhtxt-m1Npa7Ri.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-DkDRu-4T.js → ScreenRoutes-CcDq1jZA.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-p_viPmIN-BeZeCWCj.js → SetUpAccountSection-D8PGmPML-_7698rPN.js} +1 -1
  148. package/dist/assets/SignIn-CwWQnPnB-BjWxjduT.js +491 -0
  149. package/dist/assets/{SignInScreen-DLU3c9qR.js → SignInScreen-CMNwX-LP.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-C3i-Mkip-BJcfLEEj.js → SpendManagementListViewPage-B-EbBpvJ-ON20KKOZ.js} +5 -5
  151. package/dist/assets/{SpendManagementPerTabPage-dTz2pMKg-CV1wRQLN.js → SpendManagementPerTabPage-DANa2aTd-C61KLHM_.js} +1 -1
  152. package/dist/assets/{SpendManagementSection-DKMG4ReN-CZlClCbP.js → SpendManagementSection-CXYhrJSF-CXDxQfGM.js} +7 -7
  153. package/dist/assets/StatementItem-DeYhvD3S-1QR10Whm.js +31 -0
  154. package/dist/assets/{StatementsPage-DwvWOETo-C11bqWeD.js → StatementsPage-2OCuox8g-8nyeHbc9.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-Moxr70rd-DtIz0Sb6.js → StatusSwitcher-CfBOEbYV-jyQUqc0h.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-DnCoUKmO-qRR_BP7y.js → SubTabSwitcher-LzrZe6zz-Bq05ehgW.js} +4 -4
  157. package/dist/assets/SummaryCard-DTbKziXk-DQjaUfYU.js +1 -0
  158. package/dist/assets/{TaskManagementPage-kHOwTTeJ-D1GVz39b.js → TaskManagementPage-J0L5w2Wc-ChHzcbst.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-8DihGZnj-BuenjRnY.js → TimeRangeSwitcher-CIhE-4dW-CNYy5JM_.js} +11 -11
  160. package/dist/assets/{TimeframeSwitcher-Dy5hbFn4-tf-sE1Tu.js → TimeframeSwitcher-YlXclGGy-Dzk_QBMX.js} +5 -5
  161. package/dist/assets/TimeframeSwitcherWithToggle-BKRmBPLL-D7T-iUSK.js +31 -0
  162. package/dist/assets/{TopExCard-D_okDk9T-wYnCPso1.js → TopExCard-D1k8bh_F-C0WRKW8Q.js} +1 -1
  163. package/dist/assets/{TopExDetailPage-pOK_Ly9f-DZHeA38W.js → TopExDetailPage-BRJ9k9hY-DGh-mViS.js} +1 -1
  164. package/dist/assets/{TransactionDetailPage-T1xurXsz-B4W_5S1Q.js → TransactionDetailPage-CJjGDJoM-4j_0Nnvx.js} +1 -1
  165. package/dist/assets/{TransactionList-DblCSg0s-Dp5Vrkhr.js → TransactionList-CLJV-J8J-DPWKYbwQ.js} +6 -6
  166. package/dist/assets/{TransactionListBig-JLNkkeay-kxPrn2Fz.js → TransactionListBig-CDMd8KmW-BMMhha0s.js} +1 -1
  167. package/dist/assets/{TransactionListPage-Cf2i0F_k-CbyopTmd.js → TransactionListPage-Dm_JZDPM-CpkM0KX9.js} +2 -2
  168. package/dist/assets/{TransactionVendorDetailPage-B4T07nWa-DPNm9QGH.js → TransactionVendorDetailPage-BDuBQged-CAcA5ymW.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-BukQB5RF-CjEiIEvy.js → TransferDrawerPage-lY_wB7eB-BHJQPQzp.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-C0bQkCDh-BxK_GNbO.js → TreasuryOverviewPage-D5OetJEP-DU_svhq3.js} +1 -1
  171. package/dist/assets/{TreasuryPromoPage-BaXLj90f-CHTsHIFq.js → TreasuryPromoPage-8tXexPVv-CiI-0ZNb.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-CNK6wX8W-D72m3AI-.js → TreasuryStatementsPage-DEOyNQFW-CWB-xLSh.js} +1 -1
  173. package/dist/assets/{TreasuryTaxLetterPage-DEnUpGEu-BnF_XmM3.js → TreasuryTaxLetterPage-B2AurZ-A-Dvkl-xbT.js} +1 -1
  174. package/dist/assets/{TrendChart-BhcSso96-HdF7LRi9.js → TrendChart-DhH1bAfv-Bh3qy9e2.js} +1 -1
  175. package/dist/assets/{TrendWithTransactions-B6xQ_DkB-Cvs1eKME.js → TrendWithTransactions-BLYyM3MY-D_wSnssv.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-DDqyVfnh-eAWCdEG0.js → UncategorizedAccountsMappingPage-CFir4dX5-DJbsYjHd.js} +5 -5
  177. package/dist/assets/{UnitIntegrationPage-BpT6E05N-RmQBxDe9.js → UnitIntegrationPage-CHR1UsV3-CoAODj2A.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-Dgwmxm6G-BrPUqWPJ.js → UploadAdditionalDocumentOverlay-CVb-0jqF-BDqTVyrb.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-CayW9AB7-DH4zWHWM.js → Vendor2FAPopup-BJI6SeE0-CTu9U0EV.js} +1 -1
  180. package/dist/assets/{VendorACHDetailsPage-CjsWjEGI-DSO-nYli.js → VendorACHDetailsPage-DLY7vm1r-DGGLogkV.js} +1 -1
  181. package/dist/assets/{VendorDetailPage-DQKnd_wl-DwLsSmFh.js → VendorDetailPage-Bl6Xaq0d-DsXiZRzL.js} +5 -5
  182. package/dist/assets/VendorDomesticWireDetailsPage-B83WB2Vz-DFPT0ZYm.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-monlt0GX-DhHW1Hg8.js → VendorFiling1099EditablePage-DHabnH22-CEFAMCGK.js} +32 -32
  184. package/dist/assets/{VendorFirstReviewPage-B_5VMGPE-DN-QZxaX.js → VendorFirstReviewPage-JhwEqiFF-kofbScrA.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-Czz9BmEm-DfcATEGo.js → VendorInternationalWireDetailsPage-DKsYBIjo-D8VzNPtl.js} +1 -1
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-XKp9TJ4g-m_5Ao1BR.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-BCxVL3Vy-BoF6gQ0C.js → VendorsAccountsSection-Bvhib6Hd-BRinGYjw.js} +3 -3
  188. package/dist/assets/{VerifyDevice-CzW6x8kw-B7mzxysF.js → VerifyDevice-DGjS39sh-CtcNv75O.js} +1 -1
  189. package/dist/assets/{VideoPlayer-B6HamlwN-DO-Ebeno.js → VideoPlayer-DufuoQRs-CzFmZCl7.js} +2 -2
  190. package/dist/assets/{VideoPopup-D2mt1wC7-DHjn2cBV.js → VideoPopup-1aNRmLD6-E6I5SdxR.js} +2 -2
  191. package/dist/assets/{WarningsDrawerPage-BbN2G_rG-D-RK3Kf3.js → WarningsDrawerPage-Bikg48FF-BUXgPrL6.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-Bs_CVksP-aa_P2NUV.js → ZeniAccountDetailPage-DJiB-R44-8YHKJ_Rk.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-D5VNz-Hq-Cl6QAZp7.js → ZeniAccountListViewPage-BJF3-1hq-aqs0GGLS.js} +7 -7
  194. package/dist/assets/{ZeniAccountNavBarPieces-Dr8RdhtI-Bb7xJeYD.js → ZeniAccountNavBarPieces-ZZoVi49V-B5zNoIEH.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-DvOrXg46-D6yWqYxW.js → ZeniAccountPromoPage-VfZj6e9J-CEBstujd.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-zxlxRsQl-LI3fD0r9.js → ZeniAccountSetupPage-CfUBgLaM-ZmrhqCPO.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-F1ki_Lss-DMCcW5zx.js → ZeniCopyright-UUk3LylG-VfT1dTbC.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-CK6HDTK_-DITkaxMM.js → ZeniTransferAmountSlider-DuyKUAsb-Di2nbbIa.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-B95D_4Mz.js → add-to-wallet-DgdBD8_G-DHth-HM4.js} +1 -1
  200. package/dist/assets/{analytics-Cvgud8Kt.js → analytics-CxT-6Gc4.js} +1 -1
  201. package/dist/assets/{analyticsHelper-B9B5MkKm.js → analyticsHelper-BbgU3YZ3.js} +1 -1
  202. package/dist/assets/{analyticsHelper-BgGQcED5-B6zw5Y6I.js → analyticsHelper-C_CHYSrd-D1gtzETx.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-D4yBr92E.js → arrow-south-east-round-PEovUgvH-jJL-u3ku.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-Bx6GnRAc.js → auto-transfer-rule-mbafm5D3-Bxbaldq-.js} +1 -1
  205. package/dist/assets/{chartTypes-Cdx27b7W-ChloPEmp.js → chartTypes-CfyGWP2E-zDFdatAv.js} +1 -1
  206. package/dist/assets/{commonDimensions-BIRY_wCD--kqEOvxT.js → commonDimensions-uDLC8oOH-DZ9sBzhX.js} +1 -1
  207. package/dist/assets/{commonTypes-DfehYs8A-BsLjL_9-.js → commonTypes-DBWmGaRi-Bvj_-gYH.js} +1 -1
  208. package/dist/assets/{constants-BtzoEfaK.js → constants-Dpo-zUMa.js} +1 -1
  209. package/dist/assets/{core-CXv949D6.js → core-CYa2vsSD.js} +1 -1
  210. package/dist/assets/{dash.all.min-Cqg4Xi33.js → dash.all.min-BwfoNW06.js} +1 -1
  211. package/dist/assets/{detailCommon-C4lCnx9f-C7pmgfja.js → detailCommon-CUjnzfBn-Bjs9ry6w.js} +3 -3
  212. package/dist/assets/{downloadPdf-BuszScX2-B_Z_90M1.js → downloadPdf-DZnGQqi5-DWxICXE5.js} +1 -1
  213. package/dist/assets/{empty-ByGWobuT.js → empty-BSEyVh8N.js} +1 -1
  214. package/dist/assets/{empty-DMMVJjdh.js → empty-CFYi5Ru2.js} +1 -1
  215. package/dist/assets/{epic-CfYPw6_1.js → epic-BaGEtIuG.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-BVRdqnGH.js → gift-box-Cmt9OgIZ-D2c9pOix.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BOH0Hki6.js → graphic-no-data-l-DU4J8fDt-Dm8Nhvl9.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-D2SwohD-.js → graphic-no-data-net-burn-l-CzmycA0m-CTFvUdJH.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-B7qt1m6p.js → handshake-BPg58FML-cD35y_0x.js} +1 -1
  220. package/dist/assets/{index-HEX4i15-.js → index-CLqQIFvx.js} +9 -9
  221. package/dist/assets/{index-B7Vrs2at.js → index-D1NG7F-c.js} +1 -1
  222. package/dist/assets/{index-BoFx375B.js → index-DEJ7sanz.js} +1 -1
  223. package/dist/assets/{index-CWzyMkSf.js → index-DhBlfmDf.js} +1 -1
  224. package/dist/assets/{index-BoBO6goA.js → index-WnHIYL2y.js} +1 -1
  225. package/dist/assets/{index-sODlkJM-.js → index-o7l6M0TC.js} +1 -1
  226. package/dist/assets/{index-CuYWWTvq.js → index-oF3vysIj.js} +1 -1
  227. package/dist/assets/{lexical-DVRjsGc3.js → lexical-DzVC4tTe.js} +1 -1
  228. package/dist/assets/{liveblocks-Cb1r83bZ.js → liveblocks-DZksneMc.js} +1 -1
  229. package/dist/assets/{lottie-ChpXBaXa.js → lottie-EtzJiaFi.js} +1 -1
  230. package/dist/assets/mapLoadingInProgressToTreeNode-BNip5yf2-B8eJRUmh.js +1 -0
  231. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-KPnNJcR6-DHEAql9w.js → mapSectionWithAcOnlyToTreeNode-6D3s6K5H-Bt6Ormba.js} +1 -1
  232. package/dist/assets/{mapSpacerToTreeNode-BgJYIgvo-fV_Gwxoc.js → mapSpacerToTreeNode-D950gQIm-BVvu7Mmj.js} +1 -1
  233. package/dist/assets/mapTimeframeBalancesToTreeNode-BwoNhSxI-9FFTEIt6.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-CpO1mQ6n-CJZiBXdi.js +1 -0
  235. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-tLFl9PXK-2yg-AGqh.js +1 -0
  236. package/dist/assets/{mui-ic6OiqS8.js → mui-Co4rhSdf.js} +1 -1
  237. package/dist/assets/{page-detail-CWX5S47F-k_jk9CoG.js → page-detail-CWX5S47F-DzQ9yNth.js} +1 -1
  238. package/dist/assets/{radio-default-CiSgisfh-za7RGM9N.js → radio-default-CiSgisfh-DdBmb3s2.js} +1 -1
  239. package/dist/assets/{react-CPjX1wmE.js → react-B9BOYeX6.js} +2 -2
  240. package/dist/assets/{react-DK-HRtjG.js → react-BHvhexjt.js} +1 -1
  241. package/dist/assets/{react-gyhpZrY7.js → react-BcTgPaBt.js} +1 -1
  242. package/dist/assets/{react-9LgnLXOA.js → react-BfmS3tc2.js} +1 -1
  243. package/dist/assets/{react-Bdp1N68v.js → react-BrZdHxR5.js} +1 -1
  244. package/dist/assets/{react-DQZAFu6o.js → react-DaPNcQnJ.js} +1 -1
  245. package/dist/assets/{react-BuqZeXYc.js → react-USABo3kI.js} +1 -1
  246. package/dist/assets/{react-BBhRq74A.js → react-hKmyc3EK.js} +1 -1
  247. package/dist/assets/{recharts-C7z-lQH-.js → recharts-C4PW-81v.js} +1 -1
  248. package/dist/assets/{sentry-DNw4E1cx.js → sentry-Cue4MgLi.js} +1 -1
  249. package/dist/assets/{shield-DOlUxcFf-D6nz_AIb.js → shield-DOlUxcFf-UAy-EXjs.js} +1 -1
  250. package/dist/assets/toCOABalancesWithID-B6AaIKKE-ZUVHY5cX.js +1 -0
  251. package/dist/assets/{toChartData-B0HFgnVy-FTnLuytJ.js → toChartData-DD8ISjzM-DQ9NjKIx.js} +1 -1
  252. package/dist/assets/{uploadAttachment-DlvokhTk-r6x0axxP.js → uploadAttachment-CEqqTe84-MicetzMb.js} +1 -1
  253. package/dist/assets/{uploadReceipts-CPw64UYa-BWHPlnz7.js → uploadReceipts-CPw64UYa-BwoznkPo.js} +1 -1
  254. package/dist/assets/{url-DBQRifxB.js → url-CIbQHzW3.js} +1 -1
  255. package/dist/assets/{url--ZPS5B7f.js → url-CpxLPhmr.js} +1 -1
  256. package/dist/assets/{useLongPress-GCK2COYQ-DCMSiElk.js → useLongPress-GCK2COYQ-Da6NOL1P.js} +1 -1
  257. package/dist/assets/{usp-line-BBd1wKwW-BHEAhb94.js → usp-line-BBd1wKwW-BZcVCehg.js} +1 -1
  258. package/dist/assets/{utils-BM6IYCHh.js → utils-CxOjlxtI.js} +1 -1
  259. package/dist/assets/{zeni-epic-state-CKYsFVFb.js → zeni-epic-state-DcWK4mxP.js} +3 -3
  260. package/dist/index.html +1 -1
  261. package/package.json +2 -2
  262. package/dist/assets/CustomerOnboardingContainerPage-CY24zxv4-DINzCoKw.js +0 -1
  263. package/dist/assets/CustomerOnboardingProductSuitePage-CJ9rX2hA-BJUYSoDy.js +0 -202
  264. package/dist/assets/MagicLinkACHDetailsPage-Bwzk6331-BkvpBbKP.js +0 -1
  265. package/dist/assets/MagicLinkDomesticWireDetailsPage-23WXWUBb-DxgLQKhU.js +0 -1
  266. package/dist/assets/MagicLinkInternationalWireDetailsPage-XqDeRmny-DaBhYRdy.js +0 -1
  267. package/dist/assets/SignIn-DhRwLJFX-CrhLsfuP.js +0 -448
  268. package/dist/assets/StatementItem-Dk8gBfGY-DssA0Zy_.js +0 -31
  269. package/dist/assets/SummaryCard-DvdjDQ13-B4TCkks7.js +0 -1
  270. package/dist/assets/TimeframeSwitcherWithToggle-V2cHhGoQ-ChkncCQh.js +0 -31
  271. package/dist/assets/VendorDomesticWireDetailsPage-DBOWshWu-N9IiH6Qb.js +0 -1
  272. package/dist/assets/VendorInternationalWireSwiftDetailsPage-B-mh5P3v-Bc79bIRM.js +0 -1
  273. package/dist/assets/mapLoadingInProgressToTreeNode-COOEc1T9-DGQoLemv.js +0 -1
  274. package/dist/assets/mapTimeframeBalancesToTreeNode-DAnYNYrr-D_2bOFsl.js +0 -1
  275. package/dist/assets/mapTimeframeBalancesToTreeNode-DKbBYyC9--OjhjG_D.js +0 -1
  276. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BeGSkZpM-DL5IPXlV.js +0 -1
  277. package/dist/assets/toCOABalancesWithID-C__BVdeG-L2MMXLgC.js +0 -1
@@ -1,31 +1,31 @@
1
- import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as le,f5 as At,f6 as Mt,f7 as Bt,f8 as Ft,aL as A,f9 as Rt,aN as j,fa as Lt,fb as Me,fc as Be,fd as Fe,b as H,fe as O,p as S,ff as zt,fg as E,fh as Z,fi as Nt,fj as Ot,bR as Re,o as n,aP as Et,c as s,F as Zt,ai as _t,c0 as qt,R as Wt,M as Gt,fk as Vt,cg as Yt,al as se,am as ce,fl as Ht,fm as Kt,bh as Ut,l as Jt,b8 as Qt,fn as Xt,aq as et,bI as en,ah as tt,bs as tn,fo as nn}from"./index-HEX4i15-.js";import{a as q}from"./sentry-DNw4E1cx.js";import{n as i}from"./mui-ic6OiqS8.js";import{bo as Le,bm as ze,bH as I,bN as an,Fv as ln,bL as oe,bP as on}from"./zeni-epic-state-CKYsFVFb.js";import{t as rn,o as dn}from"./LowBalancePopup-UNnJZwgC-D6ASOhaV.js";import{S as _}from"./LabeledText-D9rbUJbs-B8rHFe3f.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./recharts-C7z-lQH-.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="41b86355-fbb3-4458-9d8d-50675cd1fc02",e._sentryDebugIdIdentifier="sentry-dbid-41b86355-fbb3-4458-9d8d-50675cd1fc02")}catch{}})();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,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Zt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,Ze=({attachment:e})=>{const[y,f]=q.useState(!1),M=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:Q,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=q.useState(!1),[mt,xe]=q.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);q.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,W=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&W?.code?W:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&W?.code?W:P,ne=()=>{me()},we=()=>{me()},G=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,V=y.allApprovalRules.length>0,gt=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),g=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=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,V,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(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(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),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}),ae!=null){const Ce=$?.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===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&Y(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,Y]=q.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{Y(!1),ne()},onClickAway:()=>{Y(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Vn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(qn,{children:[t.jsx(Gn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Wn,{children:nt.includes(d)?t.jsxs(Ve,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Zn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),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(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ve,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:d,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(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ye,{children:a.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ye,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!g&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:G.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(G.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(We,{children:[t.jsx(de,{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(We,{children:[t.jsx(de,{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(de,{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:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:qe(!1,k,b,V,d)}},primaryBtn:{label:_e(b,V,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?Y(!0):Se()},style:{width:qe(!0,k,b,V,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Yn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):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:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,qe=(e,y,f,M,T)=>f?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
1
+ import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as le,f5 as At,f6 as Mt,f7 as Bt,f8 as Ft,aL as A,f9 as Rt,aN as j,fa as Lt,fb as Me,fc as Be,fd as Fe,b as H,fe as O,p as S,ff as zt,fg as E,fh as Z,fi as Nt,fj as Ot,bR as Re,o as n,aP as Et,c as s,F as Zt,ag as _t,c0 as qt,R as Wt,M as Gt,fk as Vt,cg as Yt,al as se,am as ce,fl as Ht,fm as Kt,bh as Ut,l as Jt,b8 as Qt,fn as Xt,aq as et,bI as en,ai as tt,bs as tn,fo as nn}from"./index-CLqQIFvx.js";import{a as q}from"./sentry-Cue4MgLi.js";import{n as a}from"./mui-Co4rhSdf.js";import{bo as Le,bm as ze,bH as I,bN as an,Fv as ln,bL as oe,bP as on}from"./zeni-epic-state-DcWK4mxP.js";import{t as rn,o as dn}from"./LowBalancePopup-DQJYforY-CaW9bnoT.js";import{S as _}from"./LabeledText-C91Eu04E-DW9Q389z.js";import"./liveblocks-DZksneMc.js";import"./core-CYa2vsSD.js";import"./recharts-C4PW-81v.js";import"./lottie-EtzJiaFi.js";import"./analytics-CxT-6Gc4.js";import"./lexical-DzVC4tTe.js";import"./utils-CxOjlxtI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="4b6911bf-691c-4658-a5b1-a43faf8add6e",e._sentryDebugIdIdentifier="sentry-dbid-4b6911bf-691c-4658-a5b1-a43faf8add6e")}catch{}})();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,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Zt.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,Ze=({attachment:e})=>{const[y,f]=q.useState(!1),M=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:Q,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=q.useState(!1),[mt,xe]=q.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);q.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,W=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&W?.code?W:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&W?.code?W:P,ne=()=>{me()},we=()=>{me()},G=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,V=y.allApprovalRules.length>0,gt=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),g=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=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,V,e.isBillMarkedForRetry),wt=()=>g?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?Mt(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(x??"new_bill"),o?.method!=null&&l!=null){const St=g?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),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 Ce=$?.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(Ce,De,Ie,Pe,ke,Ae):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&Y(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,Y]=q.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{Y(!1),ne()},onClickAway:()=>{Y(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:it,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Vn,{}),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:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(qn,{children:[t.jsx(Gn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Wn,{children:nt.includes(d)?t.jsxs(Ve,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Zn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),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(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ve,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>Q(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(C)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:d,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(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ye,{children:i.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ye,{children:i.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:i.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!g&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:G.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(G.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,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(fn,{children:[t.jsxs(We,{children:[t.jsx(de,{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(We,{children:[t.jsx(de,{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(de,{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:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:qe(!1,k,b,V,d)}},primaryBtn:{label:_e(b,V,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?Y(!0):Se()},style:{width:qe(!0,k,b,V,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Yn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):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})]})},_e=(e,y,f)=>e?i.paymentOutsideZeni.markAsPaid:f===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,qe=(e,y,f,M,T)=>f?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=a(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
5
5
  &:hover {
6
6
  color: ${e=>e.theme.colors.primary};
7
7
  }
8
- `,We=i(tt)`
8
+ `,We=a(tt)`
9
9
  display: flex;
10
10
  justify-content: space-between;
11
11
  padding-bottom: ${n.sp1};
12
- `,re=i.div`
12
+ `,re=a.div`
13
13
  color: ${e=>e.theme.colors.brandColorPearl};
14
- `,de=i.div`
14
+ `,de=a.div`
15
15
  color: ${e=>e.theme.colors.hero};
16
- `,un=i(tt)`
16
+ `,un=a(tt)`
17
17
  display: flex;
18
18
  justify-content: space-between;
19
19
  padding-top: ${n.sp1};
20
- `,yn=i.div``,hn=i.div`
20
+ `,yn=a.div``,hn=a.div`
21
21
  background-color: ${S.neutralGrey3Dark};
22
22
  height: 1px;
23
23
  width: 280px;
24
- `,fn=i.div``,gn=i.div`
24
+ `,fn=a.div``,gn=a.div`
25
25
  display: flex;
26
26
  width: 100%;
27
27
  box-sizing: border-box;
28
- `,xn=i.div`
28
+ `,xn=a.div`
29
29
  width: 100%;
30
30
  padding: ${n.sp3};
31
31
  display: flex;
@@ -36,30 +36,30 @@ import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as
36
36
  border-radius: ${n.sp2};
37
37
  color: ${e=>e.theme.colors.hero};
38
38
  margin-bottom: ${n.sp2};
39
- `,bn=i(et)`
39
+ `,bn=a(et)`
40
40
  gap: ${n.sp1};
41
41
  display: flex;
42
42
  width: 100%;
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  align-items: center;
45
- `,wn=i(et)`
45
+ `,wn=a(et)`
46
46
  display: flex;
47
47
  width: calc(100% - 176px);
48
48
  justify-content: flex-end;
49
49
  color: ${e=>e.theme.colors.primary};
50
- `,$n=i.div`
50
+ `,$n=a.div`
51
51
  display: flex;
52
52
  flex-direction: column;
53
53
  width: 100%;
54
54
  height: 100%;
55
- `,vn=i.div`
55
+ `,vn=a.div`
56
56
  display: flex;
57
57
  flex-grow: 1;
58
58
  flex-direction: column;
59
59
  margin-left: ${e=>m.reviewContainerMarginLeft.valuePx(e.windowSize)};
60
60
  margin-right: ${e=>m.reviewContainerMarginRight.valuePx(e.windowSize)};
61
61
  padding-top: ${n.sp3};
62
- `,jn=i.div`
62
+ `,jn=a.div`
63
63
  display: flex;
64
64
  flex-direction: column;
65
65
  background-color: ${e=>e.theme.colors.grey5};
@@ -68,21 +68,21 @@ import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as
68
68
  border-radius: ${n.sp2};
69
69
  margin-bottom: ${n.sp3};
70
70
  margin-top: ${n.sp3};
71
- `,K=i.div`
71
+ `,K=a.div`
72
72
  display: flex;
73
73
  flex: 1;
74
74
  background-color: ${e=>e.theme.colors.grey3};
75
75
  min-height: 1px;
76
76
  max-height: 1px;
77
- `,Ge=i(Gt)`
77
+ `,Ge=a(Gt)`
78
78
  color: ${e=>e.theme.colors.primary};
79
79
  ${e=>`${sn.sectionTitle.style(e.windowSize)}`};
80
80
  margin-left: ${e=>m.sectionTitleMarginLeft.valuePx(e.windowSize)};
81
- `,Sn=i.div`
81
+ `,Sn=a.div`
82
82
  display: flex;
83
83
  margin-bottom: ${n.sp3};
84
84
  margin-top: ${n.sp3};
85
- `,Tn=i.div`
85
+ `,Tn=a.div`
86
86
  display: flex;
87
87
  flex-direction: column;
88
88
  border-radius: ${n.sp2};
@@ -90,46 +90,46 @@ import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as
90
90
  background-color: ${e=>e.theme.colors.grey5};
91
91
  border: 1px solid ${e=>e.theme.colors.grey3};
92
92
  box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
93
- `,Cn=i.div`
93
+ `,Cn=a.div`
94
94
  background-color: ${S.alertLight};
95
95
  border-radius: ${n.sp2};
96
96
  width: 100%;
97
97
  display: flex;
98
- `,Dn=i.div`
98
+ `,Dn=a.div`
99
99
  display: flex;
100
100
  flex-direction: column;
101
101
  padding-left: ${n.sp2};
102
- `,In=i(se)`
102
+ `,In=a(se)`
103
103
  padding-bottom: ${n.sp3};
104
104
  color: ${S.brandColorGoldDark};
105
- `,Pn=i(Yt)`
105
+ `,Pn=a(Yt)`
106
106
  padding-top: ${n.sp3};
107
107
  color: ${S.brandColorGoldDark};
108
- `,Ve=i.div`
108
+ `,Ve=a.div`
109
109
  display: flex;
110
110
  flex-direction: ${e=>nt.includes(e.windowSize)?"column":"row"};
111
111
  width: 100%;
112
- `,kn=i.div`
112
+ `,kn=a.div`
113
113
  display: flex;
114
114
  justify-content: space-between;
115
115
  align-items: center;
116
116
  column-gap: ${n.sp1};
117
- `,An=i.div`
117
+ `,An=a.div`
118
118
  display: flex;
119
119
  column-gap: ${n.sp2};
120
120
  align-items: center;
121
- `,Mn=i.div`
121
+ `,Mn=a.div`
122
122
  display: flex;
123
123
  padding-top: ${n.sp3};
124
- `,Ye=i(Jt)`
124
+ `,Ye=a(Jt)`
125
125
  display: flex;
126
126
  color: ${e=>e.theme.colors.hero};
127
127
  margin-right: ${n.sp1};
128
- `,He=i(Qt)`
128
+ `,He=a(Qt)`
129
129
  display: flex;
130
130
  color: ${e=>e.theme.colors.primary};
131
131
  margin-right: ${n.sp1};
132
- `,Ke=i(qt)`
132
+ `,Ke=a(qt)`
133
133
  cursor: pointer;
134
134
  color: ${e=>e.theme.colors.hero};
135
135
  width: 20px;
@@ -137,9 +137,9 @@ import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as
137
137
  &:hover {
138
138
  color: ${e=>e.theme.colors.primary};
139
139
  }
140
- `,Bn=i.div`
140
+ `,Bn=a.div`
141
141
  margin-bottom: ${n.sp3};
142
- `,Fn=i.div`
142
+ `,Fn=a.div`
143
143
  display: flex;
144
144
  align-items: center;
145
145
  margin-right: ${e=>e.showAutofill===!0?n.sp8:"unset"};
@@ -152,23 +152,23 @@ import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as
152
152
  padding-left: ${n.sp0};
153
153
  z-index: 2;
154
154
  background-color: ${e=>e.theme.colors.grey4};
155
- `,Rn=i(_t)`
155
+ `,Rn=a(_t)`
156
156
  height: ${n.sp3};
157
157
  width: ${n.sp3};
158
158
  color: ${e=>e.theme.colors.hero};
159
- `,Ln=i.span`
159
+ `,Ln=a.span`
160
160
  display: flex;
161
161
  align-items: center;
162
162
  margin-left: ${n.sp2};
163
163
  margin-top: ${e=>m.iconContainerMarginTop.valuePx(e.size)};
164
164
  align-self: ${e=>e.size==="small"?"baseline":"center"};
165
- `,zn=i(ce)`
165
+ `,zn=a(ce)`
166
166
  color: ${e=>e.theme.colors.grey1};
167
167
  display: flex;
168
168
  flex-wrap: wrap;
169
169
  justify-content: center;
170
170
  align-items: center;
171
- `,Nn=i.a`
171
+ `,Nn=a.a`
172
172
  color: ${e=>e.theme.colors.grey1};
173
173
  text-decoration: underline;
174
174
  margin-right: ${n.sp1};
@@ -176,7 +176,7 @@ import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as
176
176
  &:hover {
177
177
  color: ${e=>e.theme.colors.primary};
178
178
  }
179
- `,On=i.div`
179
+ `,On=a.div`
180
180
  cursor: ${e=>e.isDisabled?"default":"pointer"};
181
181
  display: flex;
182
182
  flex-direction: row;
@@ -189,49 +189,49 @@ import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as
189
189
  color: ${e=>e.isDisabled?e.theme.colors.hero:e.theme.colors.primary};
190
190
  }
191
191
  }
192
- `,En=i.div`
192
+ `,En=a.div`
193
193
  width: ${n.sp4};
194
194
  height: ${n.sp4};
195
195
  display: flex;
196
- `,Ue=i.div`
196
+ `,Ue=a.div`
197
197
  cursor: default;
198
198
  display: flex;
199
199
  align-items: center;
200
200
  margin-right: ${n.sp1};
201
- `,Je=i(Ut)`
201
+ `,Je=a(Ut)`
202
202
  cursor: pointer;
203
203
  width: ${n.sp4};
204
204
  height: ${n.sp4};
205
205
  color: ${e=>e.theme.colors.hero};
206
- `,U=i(se)`
206
+ `,U=a(se)`
207
207
  display: flex;
208
208
  color: ${e=>e.theme.colors.hero};
209
209
  align-items: center;
210
210
  min-width: 142px;
211
211
  flex-grow: 1;
212
- `,Qe=i(se)`
212
+ `,Qe=a(se)`
213
213
  display: flex;
214
214
  color: ${e=>e.theme.colors.primary};
215
215
  align-items: center;
216
216
  margin-right: ${e=>m.infoMarginRight.valuePx(e.windowSize)};
217
217
  min-width: ${e=>m.infoMinWidth.valuePx(e.windowSize)};
218
218
  justify-content: flex-end;
219
- `,Zn=i.div`
219
+ `,Zn=a.div`
220
220
  display: flex;
221
221
  cursor: pointer;
222
222
  column-gap: ${n.sp1};
223
223
  margin-left: ${n.sp5};
224
- `,Xe=i.div`
224
+ `,Xe=a.div`
225
225
  width: 120px;
226
226
  display: flex;
227
227
  justify-content: flex-end;
228
228
  align-items: center;
229
- `,_n=i.div`
229
+ `,_n=a.div`
230
230
  display: flex;
231
231
  flex-grow: 1;
232
232
  cursor: pointer;
233
233
  width: 100%;
234
- `,J=i(ce)`
234
+ `,J=a(ce)`
235
235
  display: flex;
236
236
  color: ${e=>e.borderColor};
237
237
  height: 20px;
@@ -247,31 +247,31 @@ import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as
247
247
  padding: 1px 6px;
248
248
  border: ${e=>`1px solid ${e.borderColor}`};
249
249
  border-radius: ${n.sp1};
250
- `,qn=i.div`
250
+ `,qn=a.div`
251
251
  display: flex;
252
252
  flex-direction: column;
253
- `,Wn=i.div`
253
+ `,Wn=a.div`
254
254
  display: flex;
255
255
  width: 100%;
256
256
  flex-flow: column;
257
257
  padding-top: ${n.sp2};
258
258
  padding-bottom: ${n.sp2};
259
259
  border-bottom: ${e=>`1px solid ${e.theme.colors.grey3}`};
260
- `,Gn=i(ce)`
260
+ `,Gn=a(ce)`
261
261
  margin-top: ${n.sp3};
262
262
  color: ${S.alert};
263
- `,Vn=i(Vt)`
263
+ `,Vn=a(Vt)`
264
264
  min-width: ${n.sp4};
265
265
  height: ${n.sp4};
266
266
  width: ${n.sp4};
267
267
  margin-top: ${n.sp3};
268
268
  margin-left: ${n.sp4};
269
269
  color: ${S.brandColorGoldDark};
270
- `,Yn=i.div`
270
+ `,Yn=a.div`
271
271
  display: flex;
272
272
  justify-content: flex-end;
273
273
  margin-right: ${e=>m.footerRightIconMarginRight.valuePx(e.windowSize)};
274
- `,Hn=i(tn)`
274
+ `,Hn=a(tn)`
275
275
  cursor: pointer;
276
276
  color: ${e=>e.theme.colors.hero};
277
277
  width: ${n.sp4};
@@ -279,7 +279,7 @@ import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as
279
279
  &:hover {
280
280
  color: ${e=>e.theme.colors.primary};
281
281
  }
282
- `,Kn=i.div`
282
+ `,Kn=a.div`
283
283
  display: flex;
284
284
  cursor: pointer;
285
285
  color: ${e=>e.theme.colors.grey1};
@@ -287,4 +287,4 @@ import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as
287
287
  &:hover {
288
288
  color: ${e=>e.theme.colors.primary};
289
289
  }
290
- `;export{si as default};
290
+ `;export{sa as default};
@@ -1,4 +1,4 @@
1
- import{q as L,V as i,aN as m,o as r,aP as M,y as d,L as B,R as I,M as W,p as s,al as j,cz as C,k as R,ah as b,bg as D,c as n,ef as G,u as _,iU as q,k5 as A}from"./index-HEX4i15-.js";import{n as t}from"./mui-ic6OiqS8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="b701d06f-384e-48fe-9e70-c4ad0dc98be7",e._sentryDebugIdIdentifier="sentry-dbid-b701d06f-384e-48fe-9e70-c4ad0dc98be7")}catch{}})();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])},F={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const a=L();return i.jsxs(H,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:a,children:[i.jsxs(N,{windowSize:a,children:[i.jsx(O,{children:i.jsx(U,{windowSize:a,children:e})}),i.jsx(K,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(Q,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>P(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:V(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(M,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),H=t.div`
1
+ import{q as L,V as i,aN as m,o as r,aP as M,y as d,L as B,R as I,M as W,p as s,al as j,cz as C,k as R,ai as b,bg as D,c as n,ef as G,u as _,iU as q,k5 as A}from"./index-CLqQIFvx.js";import{n as t}from"./mui-Co4rhSdf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="5d53e90f-a21d-413b-9144-a8effa06f86f",e._sentryDebugIdIdentifier="sentry-dbid-5d53e90f-a21d-413b-9144-a8effa06f86f")}catch{}})();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])},F={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const a=L();return i.jsxs(H,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:a,children:[i.jsxs(N,{windowSize:a,children:[i.jsx(O,{children:i.jsx(U,{windowSize:a,children:e})}),i.jsx(K,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(Q,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>P(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:V(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(M,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),H=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1,15 +1,15 @@
1
- import{eM as h,eN as f,V as s,bR as g,o as d,aN as l,F as x,an as y,ah as p}from"./index-HEX4i15-.js";import{n}from"./mui-ic6OiqS8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="008e4e06-c87f-4251-978b-9fda1e724b13",e._sentryDebugIdIdentifier="sentry-dbid-008e4e06-c87f-4251-978b-9fda1e724b13")}catch{}})();const{hyphen:i}=x.getLocalizedStrings().common.strings,b=n.div``,m=n.div`
1
+ import{eM as h,eN as b,V as s,bR as f,o as d,aN as l,F as g,an as x,ai as c}from"./index-CLqQIFvx.js";import{n}from"./mui-Co4rhSdf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="61eb3be2-80a0-452c-8aed-e8bcb86512f6",e._sentryDebugIdIdentifier="sentry-dbid-61eb3be2-80a0-452c-8aed-e8bcb86512f6")}catch{}})();const{hyphen:i}=g.getLocalizedStrings().common.strings,y=n.div``,m=n.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
5
- `,u=n(p)`
5
+ `,u=n(c)`
6
6
  color: ${e=>e.theme.colors.hero};
7
- `,j=n(p)`
7
+ `,j=n(c)`
8
8
  color: ${e=>e.theme.colors.brandColorPearl};
9
9
  `,a=n.div`
10
10
  display: flex;
11
11
  align-items: center;
12
- `,w=n(y)`
12
+ `,w=n(x)`
13
13
  border-radius: ${d.sp12};
14
14
  border: 1px solid ${e=>e.theme.colors.grey1};
15
15
  display: flex;
@@ -19,4 +19,4 @@ import{eM as h,eN as f,V as s,bR as g,o as d,aN as l,F as x,an as y,ah as p}from
19
19
  justify-content: center;
20
20
  color: 1px solid ${e=>e.theme.colors.grey1};
21
21
  margin-left: ${d.sp1};
22
- `,I=({roles:e})=>{let t=i,r=[];t=h(e),r=f(e);const c=()=>r.length>0?s.jsx(b,{children:r.map(o=>s.jsxs(m,{children:[s.jsx(u,{children:o[0]}),s.jsx(j,{children:o[1]})]},o.join(",")))}):s.jsx(s.Fragment,{children:i});return r.length>0?s.jsx(g,{enterDelay:600,"data-testid":l("roles-tooltip",t),title:c(),placement:"top-end",style:{marginLeft:d.sp1,padding:"6px 12px"},maxWidth:"264px",children:s.jsxs(a,{"data-testid":l("roles-label-wrapper",t),children:[t,s.jsx(w,{className:"roles-count-wrapper","data-testid":l("roles-count-wrapper",t),children:r.length})]})}):s.jsx(a,{"data-testid":l("roles-label-wrapper",t),children:t})};export{I as T};
22
+ `,I=({roles:e})=>{let t=i,r=[];t=h(e),r=b(e);const p=()=>r.length>0?s.jsx(y,{children:r.map(o=>s.jsxs(m,{children:[s.jsx(u,{children:o[0]}),s.jsx(j,{children:o[1]})]},o.join(",")))}):s.jsx(s.Fragment,{children:i});return r.length>0?s.jsx(f,{enterDelay:600,"data-testid":l("roles-tooltip",t),title:p(),placement:"top-end",style:{marginLeft:d.sp1,padding:"6px 12px"},maxWidth:"264px",children:s.jsxs(a,{"data-testid":l("roles-label-wrapper",t),children:[t,s.jsx(w,{className:"roles-count-wrapper","data-testid":l("roles-count-wrapper",t),children:r.length})]})}):s.jsx(a,{"data-testid":l("roles-label-wrapper",t),children:t})};export{I as T};
@@ -1,4 +1,4 @@
1
- import{aO as K,ij as ee,gE as fe,ew as we,ik as Le,a9 as Je,il as Me,cC as _e,cD as Ve,V as a,ac as Fe,cn as Pe,co as qe,cp as Ne,aP as Be,im as Re,io as We,F as be,aa as he,ip as me,iq as ze,cP as Ue,q as $e,iE as Ge,gJ as re,c as R,p as Se,y as De,cF as Ke,ir as He,is as Qe,it as Ye,o as V}from"./index-HEX4i15-.js";import{a as f}from"./sentry-DNw4E1cx.js";import{n as z}from"./mui-ic6OiqS8.js";import{F_ as Ze,F$ as Xe}from"./zeni-epic-state-CKYsFVFb.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-2IpjhbUO-GCUPvy0g.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./recharts-C7z-lQH-.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7f5a4bbe-0de9-4631-867b-668f6b8cd647",e._sentryDebugIdIdentifier="sentry-dbid-7f5a4bbe-0de9-4631-867b-668f6b8cd647")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=z.div`
1
+ import{aO as K,ij as ee,gE as fe,ew as we,ik as Le,a9 as Je,il as Me,cC as _e,cD as Ve,V as a,ac as Fe,cn as Pe,co as qe,cp as Ne,aP as Be,im as Re,io as We,F as Ce,aa as he,ip as me,iq as ze,cP as Ue,q as $e,iE as Ge,gJ as re,c as R,p as Se,y as De,cF as Ke,ir as He,is as Qe,it as Ye,o as V}from"./index-CLqQIFvx.js";import{a as f}from"./sentry-Cue4MgLi.js";import{n as z}from"./mui-Co4rhSdf.js";import{F_ as Ze,F$ as Xe}from"./zeni-epic-state-DcWK4mxP.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-C31xhtxt-m1Npa7Ri.js";import"./liveblocks-DZksneMc.js";import"./core-CYa2vsSD.js";import"./recharts-C4PW-81v.js";import"./lottie-EtzJiaFi.js";import"./analytics-CxT-6Gc4.js";import"./lexical-DzVC4tTe.js";import"./utils-CxOjlxtI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="43beab83-c1f5-4852-b95a-f264ac8aedd2",e._sentryDebugIdIdentifier="sentry-dbid-43beab83-c1f5-4852-b95a-f264ac8aedd2")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=z.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -18,7 +18,7 @@ import{aO as K,ij as ee,gE as fe,ew as we,ik as Le,a9 as Je,il as Me,cC as _e,cD
18
18
  display: flex;
19
19
  flex-direction: column;
20
20
  margin: ${V.sp4} ${V.sp8} ${V.sp0} ${V.sp8};
21
- `,_=(e,n)=>`${e}.${n}`;function nt({sectionId:e,jeScheduledTransaction:n,updateStatus:m,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:b,allMonthOptions:v,uncategorizedAccounts:k,selectedAccount:T,selectedClass:F,selectedAccumulatedDepreciationCategory:P,assetId:w,selectedDate:L,selectedMonths:I,selectedPostingDay:E,lastDayOfMonth:j,isDisabled:h,allowCreateSchedule:J,onCreateSchedule:i,onDelete:ae,onMarkAsComplete:Y}){const{resetField:S}=Ue(),se=_(e,"scheduleExpenseCategory"),oe=_(e,"scheduleClass"),ne=_(e,"accumulatedDepreciationCategory"),de=_(e,"assetId"),Z=_(e,"startDate"),D=_(e,"postingDate"),r=_(e,"months"),t=be.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,C=o=>s.filter(N=>N.qboId===o)[0]?.qboId,x=o=>p.filter(N=>N.qboId===o)[0]?.qboId,ie=o=>u.filter(N=>N.classId===o)[0]?.accountingClassNumber,Q={valueContainer:o=>({...o,overflow:"unset"})},O=$e(),U=Ge({startDate:n.baseTransaction.date,endDate:n.baseTransaction.date.add(1,"year")}),$=()=>{S(D)},G=E==null&&j==null?void 0:j===!0?"lastDayOfMonth":"day",q=o=>[k.expense?.qboId,k.income?.qboId].includes(o),X=()=>{n.jeScheduleId!=null&&ae(n.jeScheduleId)},g=n.scheduledJournalEntry.flatMap(o=>o.error);return a.jsxs(ot,{children:[a.jsx(lt,{status:n.status.code,jeScheduleId:n.jeScheduleId,allowCreateSchedule:J,onDelete:X,isUpdating:m==="In-Progress",onMarkAsComplete:Y,onCreateSchedule:i}),a.jsx(he,{controller:J===!0,children:a.jsxs(st,{children:[a.jsx(re,{isDisabled:g.includes("debit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.expenseCategory,width:W.labelWidth.value(O)},groupedSingleSelectField:{customPlaceholderColor:g.includes("debit_category_deleted")?Se.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:se,placeholder:t.expenseCategoryPlaceholder,valueToId:o=>C(o),defaultValue:{selectedOption:T,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},disableCurrentOption:q,style:{borderTopLeftRadius:R[2],borderTopRightRadius:R[2]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:h,isLoading:!1,label:{label:t.class,width:W.labelWidth.value(O)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:oe,placeholder:t.classPlaceholder,valueToId:o=>ie(o),defaultValue:{selectedOption:F,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:g.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.accumulatedDepreciationCategory,width:W.depCategoryLabelWidth.value(O)},groupedSingleSelectField:{customPlaceholderColor:g.includes("credit_category_deleted")?Se.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:ne,placeholder:t.accumulatedDepreciationCategoryPlaceholder,valueToId:o=>x(o),defaultValue:{selectedOption:P,allOptions:b},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},disableCurrentOption:q,style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(Ke,{label:{label:t.assetId,width:W.labelWidth.value(O)},style:{width:"auto"},text:{type:"text",name:de,defaultValue:w,placeholder:t.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:R[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(H,{}),a.jsx(He,{label:{label:t.startMonth,width:W.labelWidth.value(O)},monthSelectorField:{name:Z,placeholder:t.startMonthPlaceholder,defaultValue:L,showDownChevron:!1,isDisabled:h,monthsAndYears:U},isDisabled:h}),a.jsx(H,{}),a.jsx(at,{label:{label:t.postingDate,width:W.labelWidth.value(O)},isDisabled:h,dayOfMonthField:{placeholder:t.postingDatePlaceholder,name:D,defaultValue:{type:G,dayOfMonth:E},onSaveClick:()=>{},onCancelClick:$}}),a.jsx(H,{}),a.jsx(Qe,{label:{label:t.months,width:W.labelWidth.value(O)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:t.monthsPlaceholder,defaultValue:{selectedOption:I!=null?v[I-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(he,{controller:J===!1,children:a.jsx(Ye,{text:t.scheduleMarkedAsCompleted})})]})}const dt=z.div`
21
+ `,_=(e,n)=>`${e}.${n}`;function nt({sectionId:e,jeScheduledTransaction:n,updateStatus:m,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:C,allMonthOptions:v,uncategorizedAccounts:k,selectedAccount:T,selectedClass:F,selectedAccumulatedDepreciationCategory:P,assetId:w,selectedDate:L,selectedMonths:I,selectedPostingDay:E,lastDayOfMonth:j,isDisabled:h,allowCreateSchedule:J,onCreateSchedule:i,onDelete:ae,onMarkAsComplete:Y}){const{resetField:S}=Ue(),se=_(e,"scheduleExpenseCategory"),oe=_(e,"scheduleClass"),ne=_(e,"accumulatedDepreciationCategory"),de=_(e,"assetId"),Z=_(e,"startDate"),D=_(e,"postingDate"),r=_(e,"months"),t=Ce.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,b=o=>s.filter(N=>N.qboId===o)[0]?.qboId,x=o=>p.filter(N=>N.qboId===o)[0]?.qboId,ie=o=>u.filter(N=>N.classId===o)[0]?.accountingClassNumber,Q={valueContainer:o=>({...o,overflow:"unset"})},O=$e(),U=Ge({startDate:n.baseTransaction.date,endDate:n.baseTransaction.date.add(1,"year")}),$=()=>{S(D)},G=E==null&&j==null?void 0:j===!0?"lastDayOfMonth":"day",q=o=>[k.expense?.qboId,k.income?.qboId].includes(o),X=()=>{n.jeScheduleId!=null&&ae(n.jeScheduleId)},g=n.scheduledJournalEntry.flatMap(o=>o.error);return a.jsxs(ot,{children:[a.jsx(lt,{status:n.status.code,jeScheduleId:n.jeScheduleId,allowCreateSchedule:J,onDelete:X,isUpdating:m==="In-Progress",onMarkAsComplete:Y,onCreateSchedule:i}),a.jsx(he,{controller:J===!0,children:a.jsxs(st,{children:[a.jsx(re,{isDisabled:g.includes("debit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.expenseCategory,width:W.labelWidth.value(O)},groupedSingleSelectField:{customPlaceholderColor:g.includes("debit_category_deleted")?Se.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:se,placeholder:t.expenseCategoryPlaceholder,valueToId:o=>b(o),defaultValue:{selectedOption:T,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},disableCurrentOption:q,style:{borderTopLeftRadius:R[2],borderTopRightRadius:R[2]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:h,isLoading:!1,label:{label:t.class,width:W.labelWidth.value(O)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:oe,placeholder:t.classPlaceholder,valueToId:o=>ie(o),defaultValue:{selectedOption:F,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:g.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.accumulatedDepreciationCategory,width:W.depCategoryLabelWidth.value(O)},groupedSingleSelectField:{customPlaceholderColor:g.includes("credit_category_deleted")?Se.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:ne,placeholder:t.accumulatedDepreciationCategoryPlaceholder,valueToId:o=>x(o),defaultValue:{selectedOption:P,allOptions:C},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},disableCurrentOption:q,style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(Ke,{label:{label:t.assetId,width:W.labelWidth.value(O)},style:{width:"auto"},text:{type:"text",name:de,defaultValue:w,placeholder:t.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:R[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(H,{}),a.jsx(He,{label:{label:t.startMonth,width:W.labelWidth.value(O)},monthSelectorField:{name:Z,placeholder:t.startMonthPlaceholder,defaultValue:L,showDownChevron:!1,isDisabled:h,monthsAndYears:U},isDisabled:h}),a.jsx(H,{}),a.jsx(at,{label:{label:t.postingDate,width:W.labelWidth.value(O)},isDisabled:h,dayOfMonthField:{placeholder:t.postingDatePlaceholder,name:D,defaultValue:{type:G,dayOfMonth:E},onSaveClick:()=>{},onCancelClick:$}}),a.jsx(H,{}),a.jsx(Qe,{label:{label:t.months,width:W.labelWidth.value(O)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:t.monthsPlaceholder,defaultValue:{selectedOption:I!=null?v[I-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(he,{controller:J===!1,children:a.jsx(Ye,{text:t.scheduleMarkedAsCompleted})})]})}const dt=z.div`
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  width: 100%;
@@ -34,4 +34,4 @@ import{aO as K,ij as ee,gE as fe,ew as we,ik as Le,a9 as Je,il as Me,cC as _e,cD
34
34
  `,rt=z.div`
35
35
  display: flex;
36
36
  justify-content: center;
37
- `,ge="scheduleDetailsPage",te="scheduleDetailsFixedAssetsSection",le="scheduleDetailsListSection",ut=be.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ht}}=ut;function Tt({analytics:e,controllerUserDetails:n,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:b,onJELinkClick:v,onSave:k,onDelete:T,onDetailPageChange:F,onViewLinkedJE:P,onTransactionClick:w,onMarkAsComplete:L,removeJeScheduleTransactionKey:I}){const[E,j]=f.useState(!1),h=K(l.updateStatus.fetchState),J=K(l.selectedJEScheduleTransaction?.status.code),i=K(l.deleteStatus.fetchState),[ae,Y]=f.useState(!1),S=l.scheduleDetailsLocalData.fixed_assets,se=K(S.jeScheduleDetails.length),oe=K(S.selectedDate),ne=K(S.selectedDayOfMonth),[de,Z]=f.useState(!0),D=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,t=l.selectedJEScheduleTransaction,C=Ze(n.controllers),x=Xe(n.controllerUserIds),ie={onOkClick:()=>{j(!1),p()},onCancelClick:()=>{j(!1)}},Q=d=>{const y=t?.scheduledJournalEntry[d];r!=null&&y!=null&&t!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...ze(r)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{...me(y)},vendorName:D!=null?D.name:M.strings.hyphen,controllerEmails:C,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),v(d)},O=(d,y)=>{const A=t?.scheduledJournalEntry[y];r!=null&&A!=null&&t!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:me(A),controllerEmails:C,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),P(d)};f.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&t!=null&&e.trackScheduleDetailsSaved(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:C,controllerUserIds:x})),c===!0&&t?.jeScheduleTransactionKey!=null&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&I(t.jeScheduleTransactionKey,{month:m.month,year:m.year}),p())},[m,J,l.selectedJEScheduleTransaction?.status.code,e,p,h,I,c,l.updateStatus,t,r,D,C,x]),f.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const U=fe(l.accountListNestedAccountHierarchy),$=fe(l.allDepreciationAccountListNestedAccountHierarchy),G=we(l.classListNestedAccountHierarchy),q=Le("fixed_assets"),X=f.useRef(),g=Je({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,U,G,$,q,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,U,G,$,q,u.entityAutoCompleteView)}),o=g.watch("scheduleDetailsFixedAssetsSection.vendor");f.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&X.current?.(Me(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const N=(d,y)=>{s.onAutoCompleteInputChange?.(d,"vendor"),X.current=y},Ce=g.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),xe=async(d,y)=>{const A=y[te].vendor;if(d.includes("vendor")){const ce=A?.defaultOptions.map(B=>B.value);if(A?.selectedOption!=null&&ce?.includes(A.selectedOption)!==!0){const B=u.entityAutoCompleteView.vendor.find(ke=>ke.id===A.selectedOption);B!=null&&g.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:B.name??"",value:B.id}])}}const Oe=d.includes("amount");if(F(y,Oe),d.includes("amount")){const ce=d.split(".")[1],B=parseInt(ce);Y(!0),b(B,l.selectedJEScheduleTransaction?.jeScheduleId)}};f.useEffect(()=>{const d=g.watch((y,{name:A})=>{A!=null&&y!=null&&_e(()=>xe(A,y))});return()=>{d.unsubscribe()}}),f.useEffect(()=>{(se!==S.jeScheduleDetails.length||oe!==S.selectedDate||ne!==S.selectedDayOfMonth)&&ae===!0&&(g.resetField(le,{defaultValue:ue(l,U,G,$,q,u.entityAutoCompleteView)[le],keepDirty:!1}),Y(!1))},[S.jeScheduleDetails.length,S.selectedDate,S.selectedDayOfMonth]),f.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&Z(!1)},[l.selectedJEScheduleTransaction?.status.code]);const pe=(Ve(g.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&S.jeScheduleDetails.length>0,ve=()=>{pe===!0?j(!0):(r!=null&&t!=null&&e.trackScheduleDetailsCanceled(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:C,controllerUserIds:x})),p())},Ee=()=>{l.selectedJEScheduleTransaction!=null&&w({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},je=f.useCallback(()=>{Z(!0)},[]),Ae=f.useCallback(()=>{r!=null&&t!=null&&e.trackScheduleDetailsMarkedAsCompleted(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:C,controllerUserIds:x})),L()},[e,C,x,t,L,r,D]),Te=f.useCallback(d=>{r!=null&&t!=null&&e.trackScheduleDetailsDeleted(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:C,controllerUserIds:x})),T(d)},[e,C,x,t,T,r,D]),Ie=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(d=>d.error??[]).filter(d=>!!d)??[])?.includes("vendor_deleted")===!0?o?.defaultOptions.find(d=>d.value===o?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name;return a.jsxs(dt,{children:[a.jsx(pt,{title:Ie??M.strings.empty,onNavigateBack:ve,onTransactionClick:Ee}),a.jsx(it,{children:a.jsx(Fe,{...g,children:a.jsxs("form",{style:{width:"100%"},id:ye(ge),onSubmit:Ce,children:[a.jsx(ft,{vendorLoadOptions:N,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:U,allClassOptions:G,allMonthOptions:q,allDepAccountOptions:$,onEditAmount:b,onDelete:Te,onJELinkClick:Q,onViewLinkedJE:O,onMarkAsComplete:Ae,allowCreateSchedule:de,onCreateSchedule:je}),E===!0?a.jsx(Pe,{titleComponent:a.jsx(Ne,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(qe,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ie}):null,pe===!0?a.jsx(Be,{formId:ye(ge),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{j(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function pt({onNavigateBack:e,onTransactionClick:n,title:m}){return a.jsx(We,{title:m,tooltipTextOnLaunch:ht.showTransactionTooltip,onBackClick:e,onLaunchClick:n,style:{zIndex:3}})}function ft({vendorField:e,vendorLoadOptions:n,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:b,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:T,onDelete:F,onJELinkClick:P,onViewLinkedJE:w,onMarkAsComplete:L}){const I=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(E=>E.error).filter(E=>!!E)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(ct,{children:[a.jsx(rt,{children:a.jsx(et,{vendorLoadOptions:n,vendorField:e,vendorFieldName:_(te,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,errors:I,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(nt,{sectionId:te,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:b,uncategorizedAccounts:s.uncategorizedAccounts,lastDayOfMonth:s.scheduleDetailsLocalData.fixed_assets.lastDayOfMonth,assetId:s.scheduleDetailsLocalData.fixed_assets.assetId,selectedPostingDay:s.scheduleDetailsLocalData.fixed_assets.selectedDayOfMonth,selectedMonths:s.scheduleDetailsLocalData.fixed_assets.selectedMonths,isDisabled:s.selectedJEScheduleTransaction.jeScheduleId!=null&&s.selectedJEScheduleTransaction.status.code!=="draft"&&s.selectedJEScheduleTransaction.status.code!=="marked_as_completed"?"disabled":void 0,updateStatus:s.deleteStatus.fetchState,allowCreateSchedule:v,onDelete:F,onMarkAsComplete:L,onCreateSchedule:k}),a.jsx(he,{controller:v===!0,children:a.jsx(tt,{sectionId:le,totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:T,onJELinkClick:P,onViewLinkedJE:w,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ye=e=>`${e}_form`,ue=(e,n,m,l,s,u)=>{const c=e.scheduleDetailsLocalData.fixed_assets,p=c.selectedAccount,b=c.selectedVendor,v=b!=null?u.vendor.find(i=>i.zeniId===b.id):void 0,k=p!=null?e.allAccountList.find(i=>i.accountId===p):void 0,T=c.selectedAccumulatedDepreciationCategory,F=T!=null?e.allDepreciationAccountList.find(i=>i.accountId===T):void 0,P=c.assetId,w=c.selectedClass,L=w!=null?e.allClassList.find(i=>i.classId===w):void 0,I=c.selectedMonths,E=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),j=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=j==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:F?.qboId,allOptions:l},assetId:P,scheduleClass:{selectedOption:L?.classId,allOptions:m},startDate:c.selectedDate,months:{selectedOption:I,allOptions:s},vendor:{selectedOption:v?.id??b?.id,defaultOptions:Re(u,v??b)},postingDate:{type:J,dayOfMonth:j}},[le]:E}};export{Tt as default};
37
+ `,ge="scheduleDetailsPage",te="scheduleDetailsFixedAssetsSection",le="scheduleDetailsListSection",ut=Ce.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ht}}=ut;function Tt({analytics:e,controllerUserDetails:n,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:C,onJELinkClick:v,onSave:k,onDelete:T,onDetailPageChange:F,onViewLinkedJE:P,onTransactionClick:w,onMarkAsComplete:L,removeJeScheduleTransactionKey:I}){const[E,j]=f.useState(!1),h=K(l.updateStatus.fetchState),J=K(l.selectedJEScheduleTransaction?.status.code),i=K(l.deleteStatus.fetchState),[ae,Y]=f.useState(!1),S=l.scheduleDetailsLocalData.fixed_assets,se=K(S.jeScheduleDetails.length),oe=K(S.selectedDate),ne=K(S.selectedDayOfMonth),[de,Z]=f.useState(!0),D=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,t=l.selectedJEScheduleTransaction,b=Ze(n.controllers),x=Xe(n.controllerUserIds),ie={onOkClick:()=>{j(!1),p()},onCancelClick:()=>{j(!1)}},Q=d=>{const y=t?.scheduledJournalEntry[d];r!=null&&y!=null&&t!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...ze(r)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{...me(y)},vendorName:D!=null?D.name:M.strings.hyphen,controllerEmails:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),v(d)},O=(d,y)=>{const A=t?.scheduledJournalEntry[y];r!=null&&A!=null&&t!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:me(A),controllerEmails:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),P(d)};f.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&t!=null&&e.trackScheduleDetailsSaved(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),c===!0&&t?.jeScheduleTransactionKey!=null&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&I(t.jeScheduleTransactionKey,{month:m.month,year:m.year}),p())},[m,J,l.selectedJEScheduleTransaction?.status.code,e,p,h,I,c,l.updateStatus,t,r,D,b,x]),f.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const U=fe(l.accountListNestedAccountHierarchy),$=fe(l.allDepreciationAccountListNestedAccountHierarchy),G=we(l.classListNestedAccountHierarchy),q=Le("fixed_assets"),X=f.useRef(),g=Je({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,U,G,$,q,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,U,G,$,q,u.entityAutoCompleteView)}),o=g.watch("scheduleDetailsFixedAssetsSection.vendor");f.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&X.current?.(Me(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const N=(d,y)=>{s.onAutoCompleteInputChange?.(d,"vendor"),X.current=y},be=g.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),xe=async(d,y)=>{const A=y[te].vendor;if(d.includes("vendor")){const ce=A?.defaultOptions.map(B=>B.value);if(A?.selectedOption!=null&&ce?.includes(A.selectedOption)!==!0){const B=u.entityAutoCompleteView.vendor.find(ke=>ke.id===A.selectedOption);B!=null&&g.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:B.name??"",value:B.id}])}}const Oe=d.includes("amount");if(F(y,Oe),d.includes("amount")){const ce=d.split(".")[1],B=parseInt(ce);Y(!0),C(B,l.selectedJEScheduleTransaction?.jeScheduleId)}};f.useEffect(()=>{const d=g.watch((y,{name:A})=>{A!=null&&y!=null&&_e(()=>xe(A,y))});return()=>{d.unsubscribe()}}),f.useEffect(()=>{(se!==S.jeScheduleDetails.length||oe!==S.selectedDate||ne!==S.selectedDayOfMonth)&&ae===!0&&(g.resetField(le,{defaultValue:ue(l,U,G,$,q,u.entityAutoCompleteView)[le],keepDirty:!1}),Y(!1))},[S.jeScheduleDetails.length,S.selectedDate,S.selectedDayOfMonth]),f.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&Z(!1)},[l.selectedJEScheduleTransaction?.status.code]);const pe=(Ve(g.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&S.jeScheduleDetails.length>0,ve=()=>{pe===!0?j(!0):(r!=null&&t!=null&&e.trackScheduleDetailsCanceled(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),p())},Ee=()=>{l.selectedJEScheduleTransaction!=null&&w({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},je=f.useCallback(()=>{Z(!0)},[]),Ae=f.useCallback(()=>{r!=null&&t!=null&&e.trackScheduleDetailsMarkedAsCompleted(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),L()},[e,b,x,t,L,r,D]),Te=f.useCallback(d=>{r!=null&&t!=null&&e.trackScheduleDetailsDeleted(ee({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:b,controllerUserIds:x})),T(d)},[e,b,x,t,T,r,D]),Ie=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(d=>d.error??[]).filter(d=>!!d)??[])?.includes("vendor_deleted")===!0?o?.defaultOptions.find(d=>d.value===o?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name;return a.jsxs(dt,{children:[a.jsx(pt,{title:Ie??M.strings.empty,onNavigateBack:ve,onTransactionClick:Ee}),a.jsx(it,{children:a.jsx(Fe,{...g,children:a.jsxs("form",{style:{width:"100%"},id:ye(ge),onSubmit:be,children:[a.jsx(ft,{vendorLoadOptions:N,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:U,allClassOptions:G,allMonthOptions:q,allDepAccountOptions:$,onEditAmount:C,onDelete:Te,onJELinkClick:Q,onViewLinkedJE:O,onMarkAsComplete:Ae,allowCreateSchedule:de,onCreateSchedule:je}),E===!0?a.jsx(Pe,{titleComponent:a.jsx(Ne,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(qe,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ie}):null,pe===!0?a.jsx(Be,{formId:ye(ge),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{j(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function pt({onNavigateBack:e,onTransactionClick:n,title:m}){return a.jsx(We,{title:m,tooltipTextOnLaunch:ht.showTransactionTooltip,onBackClick:e,onLaunchClick:n,style:{zIndex:3}})}function ft({vendorField:e,vendorLoadOptions:n,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:C,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:T,onDelete:F,onJELinkClick:P,onViewLinkedJE:w,onMarkAsComplete:L}){const I=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(E=>E.error).filter(E=>!!E)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(ct,{children:[a.jsx(rt,{children:a.jsx(et,{vendorLoadOptions:n,vendorField:e,vendorFieldName:_(te,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,errors:I,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(nt,{sectionId:te,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:C,uncategorizedAccounts:s.uncategorizedAccounts,lastDayOfMonth:s.scheduleDetailsLocalData.fixed_assets.lastDayOfMonth,assetId:s.scheduleDetailsLocalData.fixed_assets.assetId,selectedPostingDay:s.scheduleDetailsLocalData.fixed_assets.selectedDayOfMonth,selectedMonths:s.scheduleDetailsLocalData.fixed_assets.selectedMonths,isDisabled:s.selectedJEScheduleTransaction.jeScheduleId!=null&&s.selectedJEScheduleTransaction.status.code!=="draft"&&s.selectedJEScheduleTransaction.status.code!=="marked_as_completed"?"disabled":void 0,updateStatus:s.deleteStatus.fetchState,allowCreateSchedule:v,onDelete:F,onMarkAsComplete:L,onCreateSchedule:k}),a.jsx(he,{controller:v===!0,children:a.jsx(tt,{sectionId:le,totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:T,onJELinkClick:P,onViewLinkedJE:w,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ye=e=>`${e}_form`,ue=(e,n,m,l,s,u)=>{const c=e.scheduleDetailsLocalData.fixed_assets,p=c.selectedAccount,C=c.selectedVendor,v=C!=null?u.vendor.find(i=>i.zeniId===C.id):void 0,k=p!=null?e.allAccountList.find(i=>i.accountId===p):void 0,T=c.selectedAccumulatedDepreciationCategory,F=T!=null?e.allDepreciationAccountList.find(i=>i.accountId===T):void 0,P=c.assetId,w=c.selectedClass,L=w!=null?e.allClassList.find(i=>i.classId===w):void 0,I=c.selectedMonths,E=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),j=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=j==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:F?.qboId,allOptions:l},assetId:P,scheduleClass:{selectedOption:L?.classId,allOptions:m},startDate:c.selectedDate,months:{selectedOption:I,allOptions:s},vendor:{selectedOption:v?.id??C?.id,defaultOptions:Re(u,v??C)},postingDate:{type:J,dayOfMonth:j}},[le]:E}};export{Tt as default};
@@ -1,4 +1,4 @@
1
- import{aO as F,ij as Y,gE as ke,ew as Ae,ik as Ie,a9 as Je,il as we,cC as Le,cD as Me,V as a,ac as Ve,cn as Pe,co as _e,cp as Fe,aP as $e,im as Be,io as Ne,F as Se,aa as ie,ip as he,iq as qe,cP as ze,q as Ue,gJ as pe,c as X,p as We,y as Re,ir as Ke,is as Ge,it as He,o as w}from"./index-HEX4i15-.js";import{a as D}from"./sentry-DNw4E1cx.js";import{n as P}from"./mui-ic6OiqS8.js";import{F_ as Qe,F$ as Ye,bL as Xe}from"./zeni-epic-state-CKYsFVFb.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-2IpjhbUO-GCUPvy0g.js";import"./liveblocks-Cb1r83bZ.js";import"./core-CXv949D6.js";import"./recharts-C7z-lQH-.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./utils-BM6IYCHh.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="2010b597-62dc-4e02-9309-34465ccbebbe",e._sentryDebugIdIdentifier="sentry-dbid-2010b597-62dc-4e02-9309-34465ccbebbe")}catch{}})();const q={labelWidth:new Re(160,160,160)},at=P.div`
1
+ import{aO as F,ij as Y,gE as ke,ew as Ae,ik as Ie,a9 as Je,il as we,cC as Le,cD as Me,V as a,ac as Ve,cn as Pe,co as _e,cp as Fe,aP as $e,im as Be,io as Ne,F as Se,aa as ie,ip as he,iq as qe,cP as ze,q as Ue,gJ as pe,c as X,p as We,y as Re,ir as Ke,is as Ge,it as He,o as w}from"./index-CLqQIFvx.js";import{a as D}from"./sentry-Cue4MgLi.js";import{n as P}from"./mui-Co4rhSdf.js";import{F_ as Qe,F$ as Ye,bL as Xe}from"./zeni-epic-state-DcWK4mxP.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-C31xhtxt-m1Npa7Ri.js";import"./liveblocks-DZksneMc.js";import"./core-CYa2vsSD.js";import"./recharts-C4PW-81v.js";import"./lottie-EtzJiaFi.js";import"./analytics-CxT-6Gc4.js";import"./lexical-DzVC4tTe.js";import"./utils-CxOjlxtI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="7dd4c544-7387-4b47-a592-315a3e8c2d2b",e._sentryDebugIdIdentifier="sentry-dbid-7dd4c544-7387-4b47-a592-315a3e8c2d2b")}catch{}})();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 A,d as X,V as t,iu as ie,iv as oe,R as le,iw as xe,dM as fe,fd as ye,b as I,F as R,ix as we,it as be,o as i,y as b,p as j,l as $e,aa as re,dI as je,cn as Se,cp as ke,cP as Z,eo as ee,cV as ve,iy as K,iz as De,b2 as Ce,iA as Me,cr as ze,iB as Le,c as h,al as L,b8 as Ee,co as Oe,ao as pe,ex as Ie,b0 as ne,ej as Ae,aP as Te,iC as T,ge as Ve,aL as Fe,iD as Je,aT as H,cX as Be,bg as Pe}from"./index-HEX4i15-.js";import{n as l,c as B}from"./mui-ic6OiqS8.js";import{a as C}from"./sentry-DNw4E1cx.js";import{bh as G,G0 as Re}from"./zeni-epic-state-CKYsFVFb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="0658ac7a-81f3-46c1-8855-66bd86c4cfb4",e._sentryDebugIdIdentifier="sentry-dbid-0658ac7a-81f3-46c1-8855-66bd86c4cfb4")}catch{}})();const N=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:o,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,o),g=A(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ue,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{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(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(o,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.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(Ae,{name:N(o,"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,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Qe,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${o}.dayOfMonth`,$),S(`${o}.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(o,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Te,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:o,isDisabled:s}){return t.jsxs(He,{isDisabled:s!=null,children:[o?.type==null?t.jsx(Ke,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${o.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:o}){return t.jsxs(Xe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(Re(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=l.div`
1
+ import{q as A,d as X,V as t,iu as ie,iv as oe,R as le,iw as xe,dM as fe,fd as ye,b as I,F as R,ix as we,it as be,o as i,y as b,p as j,l as $e,aa as re,dI as je,cn as Se,cp as ke,cP as Z,eo as ee,cV as ve,iy as K,iz as De,b2 as Ce,iA as Me,cr as ze,iB as Le,c as h,al as L,b8 as Ee,co as Oe,ao as pe,ex as Ie,b0 as ne,ej as Ae,aP as Te,iC as T,ge as Ve,aL as Fe,iD as Je,aT as H,cX as Be,bg as Pe}from"./index-CLqQIFvx.js";import{n as l,c as B}from"./mui-Co4rhSdf.js";import{a as C}from"./sentry-Cue4MgLi.js";import{bh as G,G0 as Re}from"./zeni-epic-state-DcWK4mxP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="0658ac7a-81f3-46c1-8855-66bd86c4cfb4",e._sentryDebugIdIdentifier="sentry-dbid-0658ac7a-81f3-46c1-8855-66bd86c4cfb4")}catch{}})();const N=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:o,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,o),g=A(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ue,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{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(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(o,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.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(Ae,{name:N(o,"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,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Qe,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${o}.dayOfMonth`,$),S(`${o}.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(o,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Te,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:o,isDisabled:s}){return t.jsxs(He,{isDisabled:s!=null,children:[o?.type==null?t.jsx(Ke,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${o.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:o}){return t.jsxs(Xe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(Re(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=l.div`
2
2
  position: relative;
3
3
  `,He=l.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{DU as Xf,DV as Lt,DW as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,DX as Pa,hB as th,hC as rh,DY as Gt,DZ as kt,h0 as nh,D_ as xr,D$ as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E0 as kl,E1 as Nl,hQ as ah,hN as sh,E2 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E3 as hh,dJ as dh,cU as ph,i$ as Dl,E4 as mh,bL as Tr,hF as xa,hK as gh,oL as Ml,iO as qr,E5 as Ne,ib as na,E6 as yh,j5 as vh,B as Re,E7 as ia,E8 as bh,gZ as wh,E9 as Eh,Ea as Fl,Eb as Sh,nj as qa,mQ as _h,Ec as Rh,mW as Zr,Ed as Oh,mY as Th,Ee as Ze,mN as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,Ef as Ph,nm as jh,Eg as xh,n3 as qh,ng as Lh,Eh as kh,n7 as Nh,Ei as Dh,Ej as _t,Ek as sa,El as Mh,Em as Fh,lQ as Uh,lW as $l,En as Vl,gu as Bh,C_ as Gl,Eo as $h,CU as Vh,Ep as Gh,Eq as zh,lZ as Hh,Er as Zh,D3 as Wh,CT as Yh,qg as zl,Es as Wr,Et as Hl,A6 as ua,zU as Jh,A9 as Zl,zX as Kh,Eu as Xh,A0 as Qh,zO as ed,zR as td,Ev as rd,Ad as nd,A3 as id,c4 as od,bd as ad,Ew as sd,Ex as ft,Ey as ud,Ez as cd,EA as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-CKYsFVFb.js";import{j as N}from"./liveblocks-Cb1r83bZ.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-DNw4E1cx.js";import{v as dd,d as dt,q as Lr,e as pe,z as be,m as pd,W as md,y as Pe,f as kr,h as gd,E as Je,F as Nt,i as pt,j as at,k as Nr,o as tt,X as yd,r as vd,N as nt,t as ca,w as it,Z as bd,Y as wd,c as Yr,x as Ed,A as Jl,C as Sd,D as Kl,G as Xl,H as Xo,I as _d,J as Rd,K as Od,O as Ql,P as Td,Q as Id,S as Ad,T as Cd,U as Pd,_ as jd,$ as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md}from"./index-HEX4i15-.js";import{f as Fd}from"./analyticsHelper-B9B5MkKm.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core-CXv949D6.js";import{D as Dr,n as Te,S as mt}from"./mui-ic6OiqS8.js";import{a as ve,b as Ud,c as Bd,d as $d,e as fa,f as Vd,g as Gd,h as zd,i as gt,j as Hd,k as xt,l as Mr,m as Zd,n as Dt,o as Wd}from"./utils-BM6IYCHh.js";import{r as ha}from"./empty-DMMVJjdh.js";import{r as Yd,a as Jd,b as Kd,c as Xd}from"./constants-BtzoEfaK.js";import{r as Mt,a as Qd}from"./index-CuYWWTvq.js";import{r as ep}from"./index-CWzyMkSf.js";import"./recharts-C7z-lQH-.js";import"./lottie-ChpXBaXa.js";import"./analytics-Cvgud8Kt.js";import"./lexical-DVRjsGc3.js";import"./url-DBQRifxB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e4ef933b-2bdb-45c9-80f6-466a5934d8c7",e._sentryDebugIdIdentifier="sentry-dbid-e4ef933b-2bdb-45c9-80f6-466a5934d8c7")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},tp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function rp(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function np(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const ip=ge(np,rp)(gd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pe.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:tp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(pd,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(md,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(ip,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},op=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ap=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function sp(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const up={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??up.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const cp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(lp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,lp=Te.div`
1
+ import{DU as Xf,DV as Lt,DW as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,DX as Pa,hB as th,hC as rh,DY as Gt,DZ as kt,h0 as nh,D_ as xr,D$ as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E0 as kl,E1 as Nl,hQ as ah,hN as sh,E2 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E3 as hh,dJ as dh,cU as ph,i$ as Dl,E4 as mh,bL as Tr,hF as xa,hK as gh,oL as Ml,iO as qr,E5 as Ne,ib as na,E6 as yh,j5 as vh,B as Re,E7 as ia,E8 as bh,gZ as wh,E9 as Eh,Ea as Fl,Eb as Sh,nj as qa,mQ as _h,Ec as Rh,mW as Zr,Ed as Oh,mY as Th,Ee as Ze,mN as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,Ef as Ph,nm as jh,Eg as xh,n3 as qh,ng as Lh,Eh as kh,n7 as Nh,Ei as Dh,Ej as _t,Ek as sa,El as Mh,Em as Fh,lQ as Uh,lW as $l,En as Vl,gu as Bh,C_ as Gl,Eo as $h,CU as Vh,Ep as Gh,Eq as zh,lZ as Hh,Er as Zh,D3 as Wh,CT as Yh,qg as zl,Es as Wr,Et as Hl,A6 as ua,zU as Jh,A9 as Zl,zX as Kh,Eu as Xh,A0 as Qh,zO as ed,zR as td,Ev as rd,Ad as nd,A3 as id,c4 as od,bd as ad,Ew as sd,Ex as ft,Ey as ud,Ez as cd,EA as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-DcWK4mxP.js";import{j as N}from"./liveblocks-DZksneMc.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-Cue4MgLi.js";import{v as dd,d as dt,q as Lr,e as pe,z as be,m as pd,W as md,y as Pe,f as kr,h as gd,E as Je,F as Nt,i as pt,j as at,k as Nr,o as tt,X as yd,r as vd,N as nt,t as ca,w as it,Z as bd,Y as wd,c as Yr,x as Ed,A as Jl,C as Sd,D as Kl,G as Xl,H as Xo,I as _d,J as Rd,K as Od,O as Ql,P as Td,Q as Id,S as Ad,T as Cd,U as Pd,_ as jd,$ as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md}from"./index-CLqQIFvx.js";import{f as Fd}from"./analyticsHelper-BbgU3YZ3.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core-CYa2vsSD.js";import{D as Dr,n as Te,S as mt}from"./mui-Co4rhSdf.js";import{a as ve,b as Ud,c as Bd,d as $d,e as fa,f as Vd,g as Gd,h as zd,i as gt,j as Hd,k as xt,l as Mr,m as Zd,n as Dt,o as Wd}from"./utils-CxOjlxtI.js";import{r as ha}from"./empty-CFYi5Ru2.js";import{r as Yd,a as Jd,b as Kd,c as Xd}from"./constants-Dpo-zUMa.js";import{r as Mt,a as Qd}from"./index-oF3vysIj.js";import{r as ep}from"./index-DhBlfmDf.js";import"./recharts-C4PW-81v.js";import"./lottie-EtzJiaFi.js";import"./analytics-CxT-6Gc4.js";import"./lexical-DzVC4tTe.js";import"./url-CIbQHzW3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e4ef933b-2bdb-45c9-80f6-466a5934d8c7",e._sentryDebugIdIdentifier="sentry-dbid-e4ef933b-2bdb-45c9-80f6-466a5934d8c7")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},tp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function rp(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function np(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const ip=ge(np,rp)(gd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pe.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:tp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(pd,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(md,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(ip,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},op=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ap=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function sp(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const up={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??up.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const cp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(lp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,lp=Te.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;