@zeniai/web-cockpit-ui 1.15.23-qa → 1.15.24-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 (317) hide show
  1. package/dist/assets/{ACHDetailsPage-BOZmOJHO-cEby8czd.js → ACHDetailsPage-DsLMYxB2-DiWdTxEX.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-ZVCJizP9-Dtv35PtV.js → AIPerformancePage-Do1Jme84-DdOnxVtL.js} +45 -45
  3. package/dist/assets/AccountInfoPage-DBm3kSeD-C0VOOR62.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-D0wuuzMd-B0xWHsG5.js → AccountInfoPageContent-DLxvkpvG-BfQIWLZb.js} +23 -23
  5. package/dist/assets/AccountLockedInfoModal-Dbzdjjk6-DxFx-N4r.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DbHX6rPG-DT6lFlWy.js → AccountReconDetailsDrawerPage-BMhGA2Nw-3sJH1EqF.js} +11 -11
  7. package/dist/assets/{AccountRow-Bk_25FCy-C16qMB4Z.js → AccountRow-D5S7-AKx-CMAenaIW.js} +28 -28
  8. package/dist/assets/{AccountsPromoCardStack-DAXRwY1f-BZwImYDU.js → AccountsPromoCardStack-Cq1lsoaV-ClvHGp3M.js} +27 -27
  9. package/dist/assets/AddAddressForCardDrawer-Cfd3TMpf-DJjbOnkw.js +6 -0
  10. package/dist/assets/{AddToWalletPage-CzziHgi7-BcDoFidX.js → AddToWalletPage-CEhxUk5V-D1aSu8HU.js} +32 -32
  11. package/dist/assets/{AgingReportsPage-Bdi3krKK-D_TiZ-tF.js → AgingReportsPage-CYrw-ffE-CLFSHLPA.js} +5 -5
  12. package/dist/assets/{AllUserItems-XWDuiug6-BAkUBjEM.js → AllUserItems-CUPJzOon-ClzFTm8l.js} +7 -7
  13. package/dist/assets/{ApAgingDetailPage-CaM_AzrU-BfYzOpHB.js → ApAgingDetailPage-BHfoAgPL-9OKwbRzK.js} +3 -3
  14. package/dist/assets/AppBasePage-BhcC9bkH-DtCArmcZ.js +71 -0
  15. package/dist/assets/{AppDrawerContent-DSX1364T-D_rsKUJJ.js → AppDrawerContent-CxmXgxbq-C_5ysSm0.js} +5 -5
  16. package/dist/assets/{ApprovalRulesSettingsPage-DrjPOeyp-CdYnJ9vy.js → ApprovalRulesSettingsPage-gu0Fjo8W-B6qPc807.js} +2 -2
  17. package/dist/assets/{ArAgingChart-M7KUNA4G-BBhQnHg6.js → ArAgingChart-CxGoJ-eL-BTrpq4ll.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-7lby5mXn-Cn-mYvQ2.js → ArAgingDetailPage-CNKe5FGf-DnsMVnO9.js} +4 -4
  19. package/dist/assets/{AttachmentView-Bsa0u92o-CjvOotrN.js → AttachmentView-BNb1kv2i-A0kL4eNc.js} +6 -6
  20. package/dist/assets/{BankAccountSection-BkOlwayA-BPcMBUXX.js → BankAccountSection-nxf2HgVE-CszdswjK.js} +7 -7
  21. package/dist/assets/BankAccountWarningSection-b7VJzhDr-C9lI5R8O.js +51 -0
  22. package/dist/assets/{BankConnectionsSettingsPage-C_YytTke-BzB9VzDB.js → BankConnectionsSettingsPage-Dj5RPseY-BsNJb4MV.js} +26 -26
  23. package/dist/assets/{BillDetailPage-DvU5_Rsp-DU8CrmLb.js → BillDetailPage-B8vxUUjs-wCDXpcbd.js} +8 -8
  24. package/dist/assets/BillPayApprovalRuleDetailPage-RxCSuM7j-Cm0UAXUf.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-CA9eufjt-Dn60Oc6F.js → BillPayApprovalRulesPage-qB8FSNxF-CXWPxuvt.js} +16 -16
  26. package/dist/assets/{BillPayPromoPage-DsXPWKAf-DohS7qp6.js → BillPayPromoPage-C-MLRBwj-rVTQLPGI.js} +11 -11
  27. package/dist/assets/{BillPaySetUpPage-CeMhzZ_3-vvoPdyI4.js → BillPaySetUpPage-DUcVwFf0-BSesdKGQ.js} +4 -4
  28. package/dist/assets/BillingSettingsPage-Br6yvoDv-TW6U52nf.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-WrR46NRa-BoZt797E.js → BillsBulkReviewDrawerPage-Cm2iOzT8-r_BIf6ms.js} +1 -1
  30. package/dist/assets/{BoxItem-C0M4PSXY-CL2s8rtu.js → BoxItem-BIGbJrpV-DWBd9dMt.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-orZNuqPA-7wUdhrYB.js +138 -0
  32. package/dist/assets/{CardNumberSubText-B4dAoYDE-CA1yVbnM.js → CardNumberSubText-lCdVj97_-CYJ5QkWc.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-B6xvn-y3-CWbA3umh.js → CashbackDetailPage-DyqE-V7x-CRCR9nS0.js} +27 -27
  34. package/dist/assets/{ChargeCardDetailPage-eJJ4MEE6-Dqa1hLcL.js → ChargeCardDetailPage-0a7KVsQ4-hN8gCQtG.js} +40 -40
  35. package/dist/assets/{ChargeCardListPage-BYI2HIjA-BxgrU4Bo.js → ChargeCardListPage-DZgzRmUt-Do_X95aE.js} +16 -16
  36. package/dist/assets/{ChargeCardListTable-DAVYmKCK-DhPjSkf0.js → ChargeCardListTable-CrPIqCYY-D8irt-gE.js} +51 -51
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-BX5HtOxd-By7opFFe.js → ChargeCardPaymentHistoryPage-BenEXh0n-DNZruLon.js} +27 -27
  38. package/dist/assets/ChargeCardPromoPage-Dv8vSGMv-DpjOjqBE.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-DG1eKhYR-C5J1ZUCx.js → ChargeCardSetupPage-BQdagLKY-25EtnZAG.js} +6 -6
  40. package/dist/assets/ChargeCardStatementsPage-1ntqN8-C-D2mSHxbe.js +60 -0
  41. package/dist/assets/{CheckDepositDrawerPage-BdacGDpy-_E8iHDvd.js → CheckDepositDrawerPage-Bbe3YMhk-CO2Q4-ZB.js} +23 -23
  42. package/dist/assets/{CollapsableReportTable-UADp1m_8-mWjI_leU.js → CollapsableReportTable-Bjp9ufA3-Dgphs2fm.js} +84 -84
  43. package/dist/assets/CompanyOfficerDetailsSection-DQYR5DxB-DWkkLcmn.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-BJN2GEVm-1-ckXmYg.js → CompanyPassportCard-B9yLuYoV-D8pOY5Pg.js} +6 -6
  45. package/dist/assets/CompanyPassportPage-DrNN8V93-BS2z_ZGy.js +574 -0
  46. package/dist/assets/{CompleteProfile-C8X8Z3C2-B5zH0Tmw.js → CompleteProfile-DlDJUF9s-CdsViPGP.js} +1 -1
  47. package/dist/assets/ConfettiBurst-arWK85ba-Nctx98GV.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-BxZ8LuDZ.js → ConstrainedInnerElement-BeIpAPjB-CUj8qilg.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-y-COpdhs-mKDFSPdj.js → CreateOrEditVendorPage-C0zQBkip-U8NfTx7v.js} +13 -13
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CntYJJ8v-CCrwQ0wx.js → CreditCardPaymentDrawerPage-BonuuJrp-5J05qwGb.js} +14 -14
  51. package/dist/assets/{CurrencySelectField-Dn-hE2az-Bzyg81M-.js → CurrencySelectField-CcwMU19m-DhJ7GYyu.js} +3 -3
  52. package/dist/assets/{CustomerOnboardingActivationPage-B9MZHJVc-BGGiyire.js → CustomerOnboardingActivationPage-CnLIuUI_-CZ-HlIwz.js} +5 -5
  53. package/dist/assets/CustomerOnboardingContainerPage-_uAzzeQT-CG5sXasi.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BCe8BvQF-BNh6nQQn.js → CustomerOnboardingDetailPageSkeleton-DFnaf7ny-CPvnX2LA.js} +14 -14
  55. package/dist/assets/CustomerOnboardingNoStepsPage-Dabc1DIn-BjBCiSR-.js +66 -0
  56. package/dist/assets/CustomerOnboardingPage-Dt4u_Cnq-BSCcv5Lh.js +107 -0
  57. package/dist/assets/CustomerOnboardingProductSuitePage-DrUE-f0H-oFUJaNSz.js +202 -0
  58. package/dist/assets/{Dashboard-CCV0_aCP-CQUZUy1N.js → Dashboard-Cgrcdi17-CUBT5krQ.js} +497 -478
  59. package/dist/assets/{DashboardReportPage-CmoH9Vrc-YRVh1xv0.js → DashboardReportPage-DbhRTdc4-CQqal3HB.js} +17 -17
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-hw3einS7-RBFGGSlR.js → DashboardSidebarBackgroundAnimation-C8g6lMFj-B53Xk9C1.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-DgdkYGjP-CjXxm0tW.js → DepositAccTransactionItem-D1o4IBkT-CKPRK6dd.js} +8 -8
  62. package/dist/assets/{DepositAccTransactionListPage-CF0WJn9M-BU4eJyrh.js → DepositAccTransactionListPage-xxNjjtT--2BN6hfkm.js} +6 -6
  63. package/dist/assets/{DomesticWireDetailsPage-B12tNa6e-CNX84UV9.js → DomesticWireDetailsPage-CwJaUAl--Cj9x82UD.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-Dt9yt4Fz-CIXLzBI9.js → DownloadOverlay-DQhWlo3j-Bh86wxNB.js} +18 -18
  65. package/dist/assets/{DrawerPage-Clki97FA-zwV1ORRL.js → DrawerPage-Cy3cU-ts-D2TKFfD6.js} +18 -18
  66. package/dist/assets/EditPeoplePage-XMLOGiwc-fvqHi7F-.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-CXy2ZWfZ-Ck_YPJ4k.js → EditReimbursementDetailPage-CPtNF3lE-CQCoSlzQ.js} +70 -70
  68. package/dist/assets/EntityDetailPage-CtIcsfb_-JOBkNq01.js +18 -0
  69. package/dist/assets/{EntitySummarySection-D_YLsP_P-BoWXtkG5.js → EntitySummarySection-DKVe_auH-CeBDnO_D.js} +11 -11
  70. package/dist/assets/{ExpenseAutomationOverviewPage-4z3yzHEA-nTE-jWCA.js → ExpenseAutomationOverviewPage-BerWhvvC-CSjoH80E.js} +16 -16
  71. package/dist/assets/{ExpenseAutomationPage-BJ4H_c2z-BvYmjMqO.js → ExpenseAutomationPage-ZFDuZKVx-B83nArlS.js} +133 -133
  72. package/dist/assets/{ExpressPayPage-CTBD4y1v-DvSbDu0h.js → ExpressPayPage-DWGFzFY1-Cbs-ZH6I.js} +19 -19
  73. package/dist/assets/{FeaturePreviewPage-CYuTQWpP-DOlo4xRY.js → FeaturePreviewPage-CTROYslk-B5_k_VjC.js} +3 -3
  74. package/dist/assets/{FollowStepsSection-BrpI2HyW-XxzZFZcC.js → FollowStepsSection-Cdw8tftg-CoRfWAMh.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-BcvxLqIL-BHB3eUmM.js → GlobalReviewListPage-FIiMWDt4-C-FGlEih.js} +47 -47
  76. package/dist/assets/{InformationCardStack-CU4Moqky-BIHm0VQL.js → InformationCardStack-DRM_CrnR-CyxIUlsK.js} +5 -5
  77. package/dist/assets/{InsightsCardStack-D8UQiuXZ-DZQxCUN_.js → InsightsCardStack-B6KSNBOO-BsTECKaL.js} +10 -10
  78. package/dist/assets/{InsightsSection-C3X6ZNEt-DJG_Zmq4.js → InsightsSection-CwYXRQBN-CI3Avgr4.js} +6 -6
  79. package/dist/assets/{IntegrationsSettingsPage-CsLv00HW-BCygOGPq.js → IntegrationsSettingsPage-VPy6IQco-D5f0_wQb.js} +12 -12
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DgrN5Xg7-ClZ3XWsC.js → InternationalWireSwiftDetailsPage-CbztUTOk-DKKJSiFP.js} +19 -19
  81. package/dist/assets/InternationalWireVerificationPage-YuglosZT-hHWwb4SL.js +292 -0
  82. package/dist/assets/{InviteFormPage-B3KmRWXd-DulIQZ_M.js → InviteFormPage-BBHD1wv7-BsXiZ5Av.js} +38 -38
  83. package/dist/assets/{InvitePageListView-DfpJBZru-BHFIBF2O.js → InvitePageListView-Gpf4q2HF-Cgrh3Brc.js} +33 -33
  84. package/dist/assets/InvitePeoplePage-C0n05Aw5-BiEQhiP1.js +12 -0
  85. package/dist/assets/InvoiceUploadSection-UXlA1jqD-DKu4SBzN.js +140 -0
  86. package/dist/assets/{IssueChargeCardPage-mPsxt52d-D6CBoByV.js → IssueChargeCardPage-CiL8yWbI-TIPP0zPK.js} +17 -17
  87. package/dist/assets/{LabeledAddressValue-C4fnQSyi-qLRstEHA.js → LabeledAddressValue-DGEHzZ-x-CpMYU-xP.js} +2 -2
  88. package/dist/assets/{LabeledAddressValueField-D6dEaI69-B-8SJ_Vf.js → LabeledAddressValueField-ClBxKhYQ-BPwdblj0.js} +2 -2
  89. package/dist/assets/{LabeledControlledCheckBoxField-B1QdZmvd-YPRDAbf-.js → LabeledControlledCheckBoxField-B8sC2eqF--fXqIBCr.js} +3 -3
  90. package/dist/assets/{LabeledCreatableSingleSelectField-BPX2Nrlf-P1p4rR_W.js → LabeledCreatableSingleSelectField-BzOLZcSy-pPeiMm4m.js} +17 -21
  91. package/dist/assets/LabeledDocumentField-D520KMMj-BWBkZsyZ.js +41 -0
  92. package/dist/assets/{LabeledDropDownFormattedTextField-A-rgip1E-DwXmP_dw.js → LabeledDropDownFormattedTextField-BwoAMxs1-UIy7_mYn.js} +8 -8
  93. package/dist/assets/{LabeledText-38fqkkE--CWSGVUzZ.js → LabeledText-CYRn3LhA-DMSyV-Kr.js} +2 -2
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BbF25dUP-n-b2igUs.js → LabeledUserSingleSelectWithSubtitlesField-BzsLAAeQ-B2HtQzCh.js} +15 -15
  95. package/dist/assets/{LabeledZeniRolesDropDownField-Dg9_Ww-A-DIXzLshF.js → LabeledZeniRolesDropDownField-UiY4N_NF-DAzbxXzi.js} +28 -28
  96. package/dist/assets/{LinkJETransactionPage-66mQ4nrK-BzSVrJXZ.js → LinkJETransactionPage-PvLzGCy_-BrMsOKhb.js} +10 -10
  97. package/dist/assets/{LockCardPage-BCqN4K17-CeCQzjIU.js → LockCardPage-Cv1mXAE9-9__dgVHz.js} +58 -58
  98. package/dist/assets/{LowBalancePopup-BPk1-eAb-B6NttzQA.js → LowBalancePopup-go-1GM2R-DD-JSJCf.js} +5 -5
  99. package/dist/assets/MagicLinkACHDetailsPage-C7hjYeuM-BHqLoDUK.js +1 -0
  100. package/dist/assets/MagicLinkDomesticWireDetailsPage-Cv6pT3w6-pHplq2If.js +1 -0
  101. package/dist/assets/MagicLinkInternationalWireDetailsPage-CfMDImmz-BFiTy8N6.js +1 -0
  102. package/dist/assets/MagicLinkSuccessPage-D9Xys0GC-BWFMi_8X.js +31 -0
  103. package/dist/assets/{MagicLinkTitleSection-77rxhjLm-CJlwIBEZ.js → MagicLinkTitleSection-CPs72o7_-B260haOm.js} +4 -4
  104. package/dist/assets/MailingDetailsSection-wmwBSANL-jxA64fnZ.js +21 -0
  105. package/dist/assets/{MyBankConnectionsSettingsPage-z0tHaSl1-C2cR_W8d.js → MyBankConnectionsSettingsPage-Xo-zsUV_-Cbo1qVHj.js} +11 -11
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-CwGYwufd-8VTw2t9E.js → MyPendingActivationChargeCardListPage-pMnrYxHt-D7bLZ8M3.js} +1 -1
  107. package/dist/assets/MyProfileSettingsPage-BKCzLBD9-DJbKBDYL.js +85 -0
  108. package/dist/assets/NavBarWithPicker-DFywcKz8-CSP4toa_.js +30 -0
  109. package/dist/assets/{NavigationArrow-NuJEpE7O-B5Q_1LoQ.js → NavigationArrow-BiYMk3Wz-DV9laMt6.js} +7 -7
  110. package/dist/assets/{NavigationDots-C7Na64B9-DsPnGRfr.js → NavigationDots-CCLpxuwG-stH2nUIP.js} +3 -3
  111. package/dist/assets/{NewGlobalMerchantPage-Cus6zYV_-B6Ar9J14.js → NewGlobalMerchantPage-C48VzTEf-Rej0eQZY.js} +7 -7
  112. package/dist/assets/NoDataChart-sGr0o2BN-Bsuwo3YM.js +26 -0
  113. package/dist/assets/NoDataTable-0l_09Wxn-YZLcmEEn.js +8 -0
  114. package/dist/assets/{NotFoundPage-RjXioqc8-DhhNAhxs.js → NotFoundPage-DFw9HBCT-CpQg4_TB.js} +6 -6
  115. package/dist/assets/{NotificationSettingsPage-DrDW_LU_-CS2oaUQv.js → NotificationSettingsPage-D1rRNeRj-BoZjctkd.js} +33 -33
  116. package/dist/assets/{NotificationsListConfig-C6_ap0JT-ByTHHJzO.js → NotificationsListConfig-LrfChZUx-DIWHkHKZ.js} +1 -1
  117. package/dist/assets/{NotificationsPage-DOM-Gf5P-B5QjEdl2.js → NotificationsPage-Cx4eb-l6-Tv8h6IrX.js} +35 -35
  118. package/dist/assets/{OpExByVendorPage-CTuBB827-bAvCbmPr.js → OpExByVendorPage-LpdEEb1U-C_zXpayd.js} +20 -20
  119. package/dist/assets/OverlayContainerPage-D4QU0p4o-DVuvwnps.js +11 -0
  120. package/dist/assets/{PandLWithForecastPage-BXaENYdR-CIp55YUH.js → PandLWithForecastPage-DwaVCK2R-B3ldDrVm.js} +7 -7
  121. package/dist/assets/PaymentAccountSetupBillingAddressSection-CBVazVlJ-Cj6aYWOl.js +107 -0
  122. package/dist/assets/{PeoplePage-BlyVVthI-B-EV5gcz.js → PeoplePage-z8ZDLJp4-CzfsOL8l.js} +31 -31
  123. package/dist/assets/{Preview-DuIVCswF.js → Preview-CYHE6ojy.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-CAcPH--E-rNhNCUol.js → ProductsCarousel-Dp5Of83--DVU-QMP8.js} +6 -6
  125. package/dist/assets/{PromoBaseCards-BVwZMVeE-sKF0t-Cs.js → PromoBaseCards-Bpmi7do2-BJmFgVqa.js} +14 -14
  126. package/dist/assets/{QBOConnectionDialog-C3OYyhYO-R6UU_AEU.js → QBOConnectionDialog-BCOigpzW-42XztANC.js} +6 -6
  127. package/dist/assets/QBOSetupSection-Blf2QxYu-XsjB6fpI.js +79 -0
  128. package/dist/assets/ReimbursementApprovalRuleDetailPage-D4G5Zc8u-xW6pbKuW.js +32 -0
  129. package/dist/assets/{ReimbursementApprovalRulesPage-Cx0gs7sS-C6EpKLmO.js → ReimbursementApprovalRulesPage-Cq3lTD4B-tMr-F7DV.js} +5 -5
  130. package/dist/assets/{ReimbursementDetailPage-Cs_rmkS8-B_IsEOAd.js → ReimbursementDetailPage-CxP7ZEyW-B6qTtbOy.js} +18 -18
  131. package/dist/assets/{ReimbursementPromoPage-CCFl0kQK-4i08L5Az.js → ReimbursementPromoPage-tSycJK9l-Ckl5RC8p.js} +13 -13
  132. package/dist/assets/{ReimbursementSetUpPage-lf3xTVFh-DUT9d0Mn.js → ReimbursementSetUpPage-iGjNkC8E-CCqGUnkA.js} +11 -11
  133. package/dist/assets/ReimbursementsBulkReviewDrawerPage-HrLSNRHq-MRocYFws.js +1 -0
  134. package/dist/assets/{ReloadCard-V_tv6YLR-DqFWQtu8.js → ReloadCard-CuRTghCv-1vd5kIoI.js} +5 -5
  135. package/dist/assets/{ReportTableViewSelector-CWEvGn8L-BJ8v1swV.js → ReportTableViewSelector-C2oaqgZL-DxS4YP70.js} +29 -29
  136. package/dist/assets/{ReportsPage-BJOH1wgv-BsrwNJ-k.js → ReportsPage-D5DDZHox-DJ4p-I_l.js} +5 -5
  137. package/dist/assets/{RevenueChart-C_tSBw_N-mvbUBlrr.js → RevenueChart-Na7paK3w-C9jLX88S.js} +15 -15
  138. package/dist/assets/{ReviewDetailsPage-CScPf4w3-Ctziy86b.js → ReviewDetailsPage-BFj3ZJyp-DV2ASgwc.js} +30 -30
  139. package/dist/assets/{ReviewOverlay-BQVwPzKa-4F5TS8uf.js → ReviewOverlay-Cz8LqkKC-CAVeDnHw.js} +25 -25
  140. package/dist/assets/RoleWithToolTip-CSC65531-LXNMc-YZ.js +22 -0
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Cgqgn7nk-BjZWT_sw.js → ScheduleDetailsFixedAssetsPage-UVIM7eda-BD3KjhgE.js} +8 -8
  142. package/dist/assets/ScheduleDetailsPage-_mUOLW28-DoX9vWxb.js +37 -0
  143. package/dist/assets/{ScheduleSequenceTable-DDhoyPGX-DiqXc1Uz.js → ScheduleSequenceTable-DQlMdMO0-r5LBclLE.js} +24 -24
  144. package/dist/assets/{ScreenRoutes-D8bPqH59.js → ScreenRoutes-IDjhPTpz.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-AVL_16HQ-BbYtft6_.js → SetUpAccountSection-C_DCt5R8-BxiVSyFQ.js} +5 -5
  146. package/dist/assets/{SignIn-BLUwTp1l-DB5kyM9Q.js → SignIn-1fhq5RCV-BLtoe96T.js} +24 -24
  147. package/dist/assets/{SignInScreen-UMW9hVBZ.js → SignInScreen-Bt9k9qpu.js} +1 -1
  148. package/dist/assets/{SpendManagementListViewPage-DJbNFHvP-zzqCy8fW.js → SpendManagementListViewPage-Cxe5movK-Q_tVVASy.js} +8 -8
  149. package/dist/assets/{SpendManagementPerTabPage-J5pIRm-Q-BAHyEiz9.js → SpendManagementPerTabPage-Dj9VrJCp-yGVPTW-t.js} +54 -54
  150. package/dist/assets/{SpendManagementSection-DZaP5ai6-DqwZ8uTy.js → SpendManagementSection-DGGqh0xs-CpnXaxhL.js} +25 -25
  151. package/dist/assets/{StatementItem-D2Fx65LN-itwCNL7r.js → StatementItem-ChfKUse--BISxQzB7.js} +7 -7
  152. package/dist/assets/{StatementsPage-BCh51lDW-BCn67G2d.js → StatementsPage-BAg2GA58-6dBp6JN9.js} +2 -2
  153. package/dist/assets/{StatusSwitcher-C5ZrzI8Y-Bh2yMPTS.js → StatusSwitcher-DsSflF9D-B-QsB0QQ.js} +4 -4
  154. package/dist/assets/{SubTabSwitcher-BXZxKeq9-CG8W65SL.js → SubTabSwitcher-DxUZTJB0-xCwGWu4u.js} +1 -1
  155. package/dist/assets/{SummaryCard-194UToy6-BSV06CcW.js → SummaryCard-B1mg84fd-GbF-N-vY.js} +1 -1
  156. package/dist/assets/{TaskManagementPage-zcxDUo0t-D96gR07A.js → TaskManagementPage-Z40FApxJ-CMQHa1zS.js} +15 -15
  157. package/dist/assets/{TimeRangeSwitcher-Bsv7zQmN-B2ABAd6E.js → TimeRangeSwitcher-B4sHEx1F-C3HNMT2K.js} +11 -11
  158. package/dist/assets/{TimeframeSwitcher-DtxsNy1Z-biWVJ5xe.js → TimeframeSwitcher-D8zfgEX_-Bal85V7i.js} +6 -6
  159. package/dist/assets/{TimeframeSwitcherWithToggle-B5bFhbvL-CMKwEo3M.js → TimeframeSwitcherWithToggle-CD1f2F9o-B2FZN44A.js} +2 -2
  160. package/dist/assets/{TopExCard-CBua66Cj-CLdeyiEj.js → TopExCard-BpicN73M-DINSiiqz.js} +6 -6
  161. package/dist/assets/{TopExDetailPage-DtMA-XMp-eQWNkFxw.js → TopExDetailPage-iw-7HulH-DXnd8BHg.js} +17 -17
  162. package/dist/assets/{TransactionActivityLogPage-C3BPL8hi-cf_AJXhm.js → TransactionActivityLogPage-D7oH2hs_-vzUEThxA.js} +16 -16
  163. package/dist/assets/{TransactionDetailPage-CeKaduBe-CDZ2fkiy.js → TransactionDetailPage-DLiA4XLe-BY8d6fwg.js} +28 -28
  164. package/dist/assets/{TransactionList-CSx8ZCZ--d2IrBP0a.js → TransactionList-CFz4Gf7Z-BRDY3-q0.js} +11 -11
  165. package/dist/assets/{TransactionListBig-B4cNQY2d-DsSMgpDJ.js → TransactionListBig-BYHLJtlB-BgEsroqF.js} +17 -17
  166. package/dist/assets/TransactionListPage-BxtVNNib-CNsq76WM.js +35 -0
  167. package/dist/assets/{TransactionVendorDetailPage-DsxI8U5b-ndv151CC.js → TransactionVendorDetailPage-CEAFUrTl-DeNvS775.js} +7 -7
  168. package/dist/assets/{TransferDrawerPage-C91TQwZi-DG70uoUO.js → TransferDrawerPage-C6hdavbT-DrJHkT7i.js} +34 -34
  169. package/dist/assets/{TreasuryOverviewPage-BoBn_gtF-DRCeca-k.js → TreasuryOverviewPage-BP26JP5_-CP8HfxZ3.js} +47 -47
  170. package/dist/assets/{TreasuryPromoPage-CQ-VYEQC-B8CYyPsQ.js → TreasuryPromoPage-DjVR20gs-wVmMwzp-.js} +131 -131
  171. package/dist/assets/TreasuryStatementsPage-Beixz0Ou-tCIgJGtT.js +58 -0
  172. package/dist/assets/{TreasuryTaxLetterPage-Cxhr51TD-XbjcHfk-.js → TreasuryTaxLetterPage-BW2fTHN--mfzNiBgO.js} +3 -3
  173. package/dist/assets/{TrendChart-DATgAEKG-Djx4U96K.js → TrendChart-sup0F9JZ-BygEThKD.js} +5 -5
  174. package/dist/assets/{TrendWithTransactions-DqPFuOvC-x4Algl45.js → TrendWithTransactions-C7azwT25-C5kNS0ZN.js} +3 -3
  175. package/dist/assets/{UncategorizedAccountsMappingPage-BQjXazj4-Dqjd8HUK.js → UncategorizedAccountsMappingPage-Etkl_fAG-DXRnm2d5.js} +9 -9
  176. package/dist/assets/{UnitIntegrationPage-BiRGRtpI-CH_KjQo0.js → UnitIntegrationPage-ZsJHRr7Z-BSAHu-Ly.js} +10 -10
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-DCldWCol-52j80irm.js → UploadAdditionalDocumentOverlay-Z5AuwaDQ-BUBRAJWb.js} +1 -1
  178. package/dist/assets/Vendor2FAPopup-BcnPzCr1-DSeMdCqS.js +1 -0
  179. package/dist/assets/VendorACHDetailsPage-D5SdrDy6-N4lQNnE6.js +1 -0
  180. package/dist/assets/{VendorDetailPage-DY4iaLtz-qkdhxNgo.js → VendorDetailPage-Dnr8_eWj-07Hixr6q.js} +91 -91
  181. package/dist/assets/VendorDomesticWireDetailsPage-Bv2OKF0M-DAfdk4lz.js +1 -0
  182. package/dist/assets/{VendorFiling1099EditablePage-Dep7O8Uz-40wzCsHS.js → VendorFiling1099EditablePage-C7SK3oAX-sJjp-Qba.js} +32 -32
  183. package/dist/assets/{VendorFirstReviewPage-CJQIZn8g-BnRcRr5L.js → VendorFirstReviewPage-sMOzaFlZ-Bd_oFyDy.js} +49 -49
  184. package/dist/assets/{VendorInternationalWireDetailsPage-CJG5RIa2-CMGp5yLv.js → VendorInternationalWireDetailsPage-B2c1Rev--BIjFP46u.js} +9 -9
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CRpoKTWj-B3s-WEz1.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-D65ewlO6-CXkQj_-N.js → VendorsAccountsSection-Df4nOfCb-CW1ZNQaH.js} +2 -2
  187. package/dist/assets/{VerifyDevice-B1_jgwgY-Bn121ir_.js → VerifyDevice-ogibIJ0s-DAh6OFj7.js} +12 -12
  188. package/dist/assets/{VideoPlayer-vWSXteQ6-Bhqtm51R.js → VideoPlayer-C5JZyeyT-D8KcGBDj.js} +2 -2
  189. package/dist/assets/{VideoPopup-CdsmU6H4-CKubgiHN.js → VideoPopup-Dw-9lQNK-0rd-UPIe.js} +2 -2
  190. package/dist/assets/{WarningsDrawerPage-CjgOsD00-DPo9HOu3.js → WarningsDrawerPage-CR9wWm5g-e4J9Pag3.js} +11 -11
  191. package/dist/assets/{ZeniAccountDetailPage-DiLnoonB-Dt3FIT6q.js → ZeniAccountDetailPage-CP6XbPoi-BnZudMg6.js} +20 -20
  192. package/dist/assets/{ZeniAccountListViewPage-YfPsO8ls-BVnH_XmJ.js → ZeniAccountListViewPage-B-8rvc59-BisABJW0.js} +25 -25
  193. package/dist/assets/ZeniAccountNavBarPieces-D_Jdtql7-D0896al8.js +14 -0
  194. package/dist/assets/{ZeniAccountPromoPage-cEfW88p8-DvvQgJIb.js → ZeniAccountPromoPage-DmXuuPc3-BsixtEBb.js} +28 -28
  195. package/dist/assets/ZeniAccountSetupPage-CiLrh0yu-B_DH4YUU.js +36 -0
  196. package/dist/assets/{ZeniCopyright-BROHmszx-0R55d0Il.js → ZeniCopyright-DIzbP27w-D1bPi2Em.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-DZZrrFXf-Dokv6rUo.js → ZeniTransferAmountSlider-CYZYkuN_-Bs-AxRga.js} +7 -7
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-DBbMptVC.js → add-to-wallet-DgdBD8_G-DgwTOiTb.js} +1 -1
  199. package/dist/assets/{analytics-DH2FWXQR.js → analytics-BVR-nkdQ.js} +1 -1
  200. package/dist/assets/analyticsHelper-CeSpIREf.js +1 -0
  201. package/dist/assets/{analyticsHelper-FJ-cS8qS-eGTXz9ur.js → analyticsHelper-CirorDP7-BWRCY1oT.js} +1 -1
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-DzFpwdLa.js → arrow-south-east-round-PEovUgvH-DTABdjGY.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-C9AIqfs3.js → auto-transfer-rule-mbafm5D3-uZ4hnV5g.js} +1 -1
  204. package/dist/assets/{chartTypes-DJdbX13L-CrV_XhuE.js → chartTypes-B9iWOG3r-C4s2YMo6.js} +1 -1
  205. package/dist/assets/{commonDimensions-BpYNnQtf-BrWIfeCb.js → commonDimensions-SFn2jHVc-CTDxaBd-.js} +1 -1
  206. package/dist/assets/{constants-nz8RVtEp.js → constants-CZu969tQ.js} +1 -1
  207. package/dist/assets/{core-Be77t6wT.js → core-BCC1NfcO.js} +1 -1
  208. package/dist/assets/{dash.all.min-1JaBh8EA.js → dash.all.min-BRxR-4km.js} +1 -1
  209. package/dist/assets/{detailCommon-BRja9H93-B06H9tRW.js → detailCommon-BTjqps8N-BwbXd0VD.js} +5 -5
  210. package/dist/assets/downloadPdf-CqjEwKR5-CVBCWVbb.js +1 -0
  211. package/dist/assets/{empty-DqMX1iak.js → empty-BjP_AR0Y.js} +1 -1
  212. package/dist/assets/{empty-CVHCqPg8.js → empty-CN6lL5vr.js} +1 -1
  213. package/dist/assets/epic-CYfuPaR1.js +2 -0
  214. package/dist/assets/{gift-box-Cmt9OgIZ-hRxp85e2.js → gift-box-Cmt9OgIZ-jp2GTx_l.js} +1 -1
  215. package/dist/assets/{graphic-no-data-l-DU4J8fDt-DdG5b35f.js → graphic-no-data-l-DU4J8fDt-CoNwe8F7.js} +1 -1
  216. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CRLCiMSY.js → graphic-no-data-net-burn-l-CzmycA0m-Blfk9v0F.js} +1 -1
  217. package/dist/assets/{handshake-BPg58FML-Ts-GBzII.js → handshake-BPg58FML-BZVWd-R4.js} +1 -1
  218. package/dist/assets/{index-BsnL7ZTX.js → index-BJwUmr6X.js} +4654 -4680
  219. package/dist/assets/{index-gGz0-y9K.js → index-CDawrAV5.js} +1 -1
  220. package/dist/assets/{index-BIQvGH1Z.js → index-DOGKWCNR.js} +1 -1
  221. package/dist/assets/{index-CHDWslZ9.js → index-Dc-8bDa8.js} +1 -1
  222. package/dist/assets/{index-Cyi12XGG.js → index-DdlMyYMd.js} +1 -1
  223. package/dist/assets/{index-WLQ2kK4T.js → index-klyQo3c-.js} +1 -1
  224. package/dist/assets/{index-Q1D5afUf.js → index-oIMKLk8g.js} +1 -1
  225. package/dist/assets/{lexical-4qH-Yr6_.js → lexical-D1A0yBcv.js} +1 -1
  226. package/dist/assets/{liveblocks-CUDrE-0X.js → liveblocks-gc1Zpgue.js} +1 -1
  227. package/dist/assets/{lottie-C5G-hUN3.js → lottie-PDiRMFOU.js} +1 -1
  228. package/dist/assets/mapLoadingInProgressToTreeNode-DkhO3K0B-BF8CClXj.js +1 -0
  229. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BlrJTKah-CAIHDBtK.js → mapSectionWithAcOnlyToTreeNode-BywQAVX8-CBoe52_o.js} +1 -1
  230. package/dist/assets/{mapSpacerToTreeNode-DvdWKHfX-CpssydBI.js → mapSpacerToTreeNode-nn83cq1C-a5kCwrR8.js} +1 -1
  231. package/dist/assets/{mapTimeframeBalancesToTreeNode-88qIN3FA-COjHTdZT.js → mapTimeframeBalancesToTreeNode-CKjqanKd-DfEyG-Ny.js} +1 -1
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-CmXuntuz-4PcA3DEd.js +1 -0
  233. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-B5MDTbLz-CKS-2PqY.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Bs8iGys9-D6oy7HtW.js} +1 -1
  234. package/dist/assets/{mui-DsjrNjDe.js → mui-BPiKl8lE.js} +1 -1
  235. package/dist/assets/{page-detail-CWX5S47F--SwzhZlk.js → page-detail-CWX5S47F-GD7pPHSX.js} +1 -1
  236. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-Cev-MiVu.js → panelSelectedMixin-CzfD5-Zs-DK9S-4A7.js} +1 -1
  237. package/dist/assets/{radio-default-CiSgisfh-YvmWy399.js → radio-default-CiSgisfh-BDa9leTw.js} +1 -1
  238. package/dist/assets/{react-eUpxlpRg.js → react-BmSXOB2V.js} +1 -1
  239. package/dist/assets/{react-BWkra2hE.js → react-CVwAo7aZ.js} +1 -1
  240. package/dist/assets/{react-CSCeF-Sb.js → react-Chs2CyCz.js} +1 -1
  241. package/dist/assets/{react-XG3-S5t1.js → react-Ck-O1ppd.js} +1 -1
  242. package/dist/assets/{react-Ci_HLnoa.js → react-DZxKpeyN.js} +2 -2
  243. package/dist/assets/{react-Bqp70D_u.js → react-DtUvZi19.js} +1 -1
  244. package/dist/assets/{react-BCXSKYRr.js → react-T0X5kbJf.js} +1 -1
  245. package/dist/assets/{react-DL4wn98u.js → react-kH3wqLZe.js} +2 -2
  246. package/dist/assets/{recharts-CmZa-egc.js → recharts-CTVVh_-r.js} +1 -1
  247. package/dist/assets/{sentry-9b1mvxJ5.js → sentry-Dozbf0xW.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-B8zzGKQS.js → shield-DOlUxcFf-BXU_wIp-.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-DvC1wuTC-B-3HfOc_.js +1 -0
  250. package/dist/assets/{toChartData-B3ouXKAd-D6dTQxs5.js → toChartData-mAeXlYNV-B69xO8vw.js} +1 -1
  251. package/dist/assets/{uploadAttachment-DNNG-CMy-BbELmBL6.js → uploadAttachment-BAVcYsOo-CTVw7Tly.js} +16 -16
  252. package/dist/assets/uploadReceipts-Dge0cNF1-1wHJJfDu.js +1 -0
  253. package/dist/assets/{url-RTB-DW5V.js → url-AR2JoXnJ.js} +1 -1
  254. package/dist/assets/{url-BiBhYcFe.js → url-D26ZSNVT.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-CsE5mUiU.js → useLongPress-GCK2COYQ-DajesI1J.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-5m5uF-Rf.js → usp-line-BBd1wKwW-CY_8hROo.js} +1 -1
  257. package/dist/assets/{utils-VcZ1Xqjg.js → utils-CJtHQQTa.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-DJX8u9R8.js → zeni-epic-state-DD2IEaUq.js} +17 -17
  259. package/dist/index.html +1 -1
  260. package/package.json +4 -4
  261. package/dist/assets/AccountInfoPage-DF6IU0EG-DxCZYmdQ.js +0 -18
  262. package/dist/assets/AccountLockedInfoModal-Cfx-lPAZ-DshiVPV5.js +0 -59
  263. package/dist/assets/AddAddressForCardDrawer-DNGQGGYg-CLwDyH_f.js +0 -6
  264. package/dist/assets/AppBasePage-B7_L4R6d-CdK-0SuM.js +0 -71
  265. package/dist/assets/BankAccountWarningSection-uMOXLH0B-BYzXyhFM.js +0 -51
  266. package/dist/assets/BillPayApprovalRuleDetailPage-UeVxIxfF-DVjWIsxB.js +0 -27
  267. package/dist/assets/BillingSettingsPage-BygJjDSp-TUk3hFrg.js +0 -44
  268. package/dist/assets/BusinessVerificationPage-C63pUk4d-O2_DYefs.js +0 -138
  269. package/dist/assets/ChargeCardPromoPage-DuQe7BpX-C4Pi99Eb.js +0 -222
  270. package/dist/assets/ChargeCardStatementsPage-CvtZtuVC-fVY1XVT7.js +0 -60
  271. package/dist/assets/CompanyOfficerDetailsSection-CaAR0Wvk-Y2CrJIeH.js +0 -331
  272. package/dist/assets/CompanyPassportPage-D2ALJDF_-BefJj8do.js +0 -417
  273. package/dist/assets/ConfettiBurst-DxHzdDPp-B5gAhZ11.js +0 -1
  274. package/dist/assets/CustomerOnboardingContainerPage-eR0yY2uX-BeFivMSV.js +0 -1
  275. package/dist/assets/CustomerOnboardingNoStepsPage-BHk7rDAg-DFqj8w76.js +0 -66
  276. package/dist/assets/CustomerOnboardingPage-1LvpVpHC-CtZqBhcA.js +0 -107
  277. package/dist/assets/CustomerOnboardingProductSuitePage-DMYHMJXg-DknXOQ4Z.js +0 -202
  278. package/dist/assets/EditPeoplePage-CKS_aEZm-3p7F4OmS.js +0 -55
  279. package/dist/assets/EntityDetailPage-B3TQ5hCP-Ce-hU3r6.js +0 -18
  280. package/dist/assets/InternationalWireVerificationPage-CvysJNBQ-ClnlKtmf.js +0 -65
  281. package/dist/assets/InvitePeoplePage-C5Qgk24s-Dkn2B0kS.js +0 -12
  282. package/dist/assets/InvoiceUploadSection-BO1i-e_D-DgD0BWyr.js +0 -140
  283. package/dist/assets/LabeledCountryMultiSelectField-XeBih_-f-fdD3iTtd.js +0 -237
  284. package/dist/assets/LabeledDocumentField-Bjg8sNsg-ozNb8OQw.js +0 -41
  285. package/dist/assets/LabeledMultiSelectField-Di9Wnifv-Cu7d4aN2.js +0 -223
  286. package/dist/assets/MagicLinkACHDetailsPage-DM7EUUU7-CP2qlsFS.js +0 -1
  287. package/dist/assets/MagicLinkDomesticWireDetailsPage-DKrGgFTu-CxyKarhq.js +0 -1
  288. package/dist/assets/MagicLinkInternationalWireDetailsPage-B3OpSWB3-Ka8HAAdC.js +0 -1
  289. package/dist/assets/MagicLinkSuccessPage-CphaJa4k-ClRRHux0.js +0 -31
  290. package/dist/assets/MailingDetailsSection-BJfZvT0b-CfIiVZuJ.js +0 -21
  291. package/dist/assets/MyProfileSettingsPage-8yBXAre6-z1GTbXeP.js +0 -85
  292. package/dist/assets/NavBarWithPicker-C3LVyiC9-CjcZT1T-.js +0 -30
  293. package/dist/assets/NoDataChart-B3s_7m2n-ConKu00U.js +0 -26
  294. package/dist/assets/NoDataTable-CMpypnTw-Bpr4-Ujz.js +0 -8
  295. package/dist/assets/OverlayContainerPage-D4QU0p4o-D1piLlT1.js +0 -11
  296. package/dist/assets/PaymentAccountSetupBillingAddressSection-DSnQX90O-1Q0Vgv-d.js +0 -107
  297. package/dist/assets/QBOSetupSection-DQjol-D0-AZZiDMHT.js +0 -79
  298. package/dist/assets/ReimbursementApprovalRuleDetailPage-llw4ONPo-Ysis5LEV.js +0 -32
  299. package/dist/assets/ReimbursementsBulkReviewDrawerPage-C5MTFJLG-CU5EXNX4.js +0 -1
  300. package/dist/assets/RoleWithToolTip-GCV_l8Ly-C91LsT_P.js +0 -22
  301. package/dist/assets/ScheduleDetailsPage-D1EJbzxN-tEZm6Ypr.js +0 -37
  302. package/dist/assets/TransactionListPage-DHr64V-b-Dv4ZTiv4.js +0 -35
  303. package/dist/assets/TreasuryStatementsPage-taTRE54D-C6eZxSm6.js +0 -58
  304. package/dist/assets/Vendor2FAPopup-BpkAiYTA-EdR_K2lH.js +0 -1
  305. package/dist/assets/VendorACHDetailsPage-tUuZzJnN-Ber2jwRD.js +0 -1
  306. package/dist/assets/VendorDomesticWireDetailsPage-B5Nym5J9-CNysSCSa.js +0 -1
  307. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DZabfieM-CzR_dRp5.js +0 -1
  308. package/dist/assets/ZeniAccountNavBarPieces-CHStBvRa-mP-Dj2Rz.js +0 -14
  309. package/dist/assets/ZeniAccountSetupPage-B20DHYex-B3wsvhel.js +0 -36
  310. package/dist/assets/analyticsHelper-nIT7pIRZ.js +0 -1
  311. package/dist/assets/commonTypes-BVbA7QjV-Ym_NCrQO.js +0 -1
  312. package/dist/assets/downloadPdf-WDHjFv79-pPdvILQx.js +0 -1
  313. package/dist/assets/epic-upTynnWU.js +0 -2
  314. package/dist/assets/mapLoadingInProgressToTreeNode-C_5Bb47i-BB5tvKPX.js +0 -1
  315. package/dist/assets/mapTimeframeBalancesToTreeNode-AkxvYRty-CiDsqvCZ.js +0 -1
  316. package/dist/assets/toCOABalancesWithID-Bq4Xe7az-BxQaUEv2.js +0 -1
  317. package/dist/assets/uploadReceipts-Dge0cNF1-CyA0lW2P.js +0 -1
@@ -1,40 +1,40 @@
1
- import{J as B,V as i,aP as m,o as r,aR as L,y as d,x as M,O as C,a as D,p as s,al as j,cC as I,T as W,ai as b,bh as R,u as n,em as G,h as _,i$ as J,kc as O}from"./index-BsnL7ZTX.js";import{n as t}from"./mui-DsjrNjDe.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]="b33e3df9-894b-4e63-9ddc-d0d3d8e9c375",e._sentryDebugIdIdentifier="sentry-dbid-b33e3df9-894b-4e63-9ddc-d0d3d8e9c375")}catch{}})();const a={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},A={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const l=B();return i.jsxs(V,{children:[i.jsx(U,{windowSize:l,children:i.jsx(X,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(H,{windowSize:l,children:[i.jsxs(Z,{windowSize:l,children:[i.jsx(q,{children:i.jsx(K,{windowSize:l,children:e})}),i.jsx(N,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(Q,{windowSize:l,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:F(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}),l!=="small"?i.jsxs(u,{windowSize:l,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]})]})]}),l==="small"?i.jsxs(u,{windowSize:l,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(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},F=e=>e.reviewStatus.isLoading?i.jsx(W,{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(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),V=t.div`
1
+ import{J as P,V as i,aQ as m,o as r,aS as L,y as d,c as M,N as I,a as C,p as s,al as b,cD as D,T as W,ai as j,bi as R,u as n,eo as G,h as _,iZ as J,ka as A}from"./index-BJwUmr6X.js";import{n as t}from"./mui-BPiKl8lE.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]="fa7bfe47-aad8-4c8e-9f7a-552d1fc020bb",e._sentryDebugIdIdentifier="sentry-dbid-fa7bfe47-aad8-4c8e-9f7a-552d1fc020bb")}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:B})=>{const a=P();return i.jsxs(Q,{children:[i.jsx(U,{windowSize:a,children:i.jsx(X,{children:i.jsx(Y,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(V,{windowSize:a,children:[i.jsxs(H,{windowSize:a,children:[i.jsx(O,{children:i.jsx(Z,{windowSize:a,children:e})}),i.jsx(q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(K,{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:()=>B(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:N(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(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},N=e=>e.reviewStatus.isLoading?i.jsx(W,{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,{}),Q=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
5
- `,H=t.div`
5
+ `,V=t.div`
6
6
  min-height: 100vh;
7
7
  display: flex;
8
8
  flex-direction: column;
9
- margin-top: ${e=>a.containerMarginTop.valuePx(e.windowSize)};
9
+ margin-top: ${e=>l.containerMarginTop.valuePx(e.windowSize)};
10
10
  margin-bottom: ${r.sp8};
11
- `,Z=t.div`
11
+ `,H=t.div`
12
12
  position: sticky;
13
13
  top: ${r.sp0};
14
14
  background-color: ${e=>e.theme.colors.grey4};
15
15
  z-index: 1;
16
- padding-left: ${e=>a.containerMarginLeft.valuePx(e.windowSize)};
17
- padding-right: ${e=>a.containerMarginRight.valuePx(e.windowSize)};
18
- `,q=t.div`
16
+ padding-left: ${e=>l.containerMarginLeft.valuePx(e.windowSize)};
17
+ padding-right: ${e=>l.containerMarginRight.valuePx(e.windowSize)};
18
+ `,O=t.div`
19
19
  display: flex;
20
20
  align-items: center;
21
- `,K=t(D)`
22
- ${e=>`${A.title.style(e.windowSize)}`};
21
+ `,Z=t(C)`
22
+ ${e=>`${F.title.style(e.windowSize)}`};
23
23
  color: ${e=>e.theme.colors.primary};
24
24
  margin-top: ${r.sp2};
25
- margin-bottom: ${e=>a.titleMarginBotom.valuePx(e.windowSize)};
26
- margin-right: ${e=>a.titleMarginRight.valuePx(e.windowSize)};
27
- `,N=t(j)`
28
- margin-bottom: ${e=>a.subTitleMarginBottom.valuePx(e.windowSize)};
25
+ margin-bottom: ${e=>l.titleMarginBotom.valuePx(e.windowSize)};
26
+ margin-right: ${e=>l.titleMarginRight.valuePx(e.windowSize)};
27
+ `,q=t(b)`
28
+ margin-bottom: ${e=>l.subTitleMarginBottom.valuePx(e.windowSize)};
29
29
  color: ${e=>e.isError?s.important:e.theme.colors.hero};
30
- `,Q=t.div`
30
+ `,K=t.div`
31
31
  display: flex;
32
32
  flex-direction: column;
33
33
  margin-top: ${r.sp3};
34
- margin-left: ${e=>a.containerMarginLeft.valuePx(e.windowSize)};
35
- margin-right: ${e=>a.containerMarginRight.valuePx(e.windowSize)};
34
+ margin-left: ${e=>l.containerMarginLeft.valuePx(e.windowSize)};
35
+ margin-right: ${e=>l.containerMarginRight.valuePx(e.windowSize)};
36
36
  `,U=t.div`
37
- min-height: ${e=>a.navBarHeight.valuePx(e.windowSize)};
37
+ min-height: ${e=>l.navBarHeight.valuePx(e.windowSize)};
38
38
  position: sticky;
39
39
  border-bottom: 1px solid transparent;
40
40
  z-index: 2;
@@ -52,8 +52,8 @@ import{J as B,V as i,aP as m,o as r,aR as L,y as d,x as M,O as C,a as D,p as s,a
52
52
  top: ${r.sp0};
53
53
  left: ${r.sp0};
54
54
  right: ${r.sp0};
55
- padding-right: ${e=>a.navBarPaddingRight.valuePx(e.windowSize)};
56
- padding-left: ${e=>a.navBarPaddingLeft.valuePx(e.windowSize)};
55
+ padding-right: ${e=>l.navBarPaddingRight.valuePx(e.windowSize)};
56
+ padding-left: ${e=>l.navBarPaddingLeft.valuePx(e.windowSize)};
57
57
  height: 100%;
58
58
  `,ee=t.div`
59
59
  display: flex;
@@ -96,12 +96,12 @@ import{J as B,V as i,aP as m,o as r,aR as L,y as d,x as M,O as C,a as D,p as s,a
96
96
  display: flex;
97
97
  flex-direction: column;
98
98
  align-items: ${e=>e.windowSize==="small"?"self-start":"self-end"};
99
- `,f=t(j)`
99
+ `,f=t(b)`
100
100
  color: ${e=>e.isError||e.isWarning?e.theme.mode==="dark"?s.neutralGrey4Dark:e.isWarning:e.theme.colors.primary};
101
- `,se=t(b)`
101
+ `,se=t(j)`
102
102
  margin-top: -5px;
103
103
  color: ${e=>e.theme.mode==="dark"?s.neutralGrey1Dark:e.theme.colors.primary};
104
- `,p=t(b)`
104
+ `,p=t(j)`
105
105
  display: flex;
106
106
  margin-top: -5px;
107
107
  color: ${e=>e.isError?s.important:e.isWarning?s.brandColorGoldDark:e.theme.colors.primary};
@@ -109,18 +109,18 @@ import{J as B,V as i,aP as m,o as r,aR as L,y as d,x as M,O as C,a as D,p as s,a
109
109
  width: ${r.sp4};
110
110
  height: ${r.sp4};
111
111
  color: ${e=>e.isError?s.important:s.brandColorGoldDark};
112
- `,le=t(_)`
112
+ `,ae=t(_)`
113
113
  width: ${r.sp4};
114
114
  height: ${r.sp4};
115
115
  color: ${s.success};
116
- `,ae=t(O)`
116
+ `,le=t(A)`
117
117
  width: ${r.sp4};
118
118
  height: ${r.sp4};
119
119
  color: ${e=>e.theme.colors.grey2};
120
120
  `,de=t.div`
121
121
  margin-top: 2px;
122
122
  display: flex;
123
- `,ce=t(I)`
123
+ `,ce=t(D)`
124
124
  cursor: pointer;
125
125
  color: ${e=>e.theme.colors.hero};
126
126
  &:hover {
@@ -0,0 +1,22 @@
1
+ import{eR as h,eS as b,V as s,bU as f,o as i,aQ as l,F as g,an as y,ai as p}from"./index-BJwUmr6X.js";import{n}from"./mui-BPiKl8lE.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]="70c0b653-f0e7-4b81-b173-94b8509871e8",e._sentryDebugIdIdentifier="sentry-dbid-70c0b653-f0e7-4b81-b173-94b8509871e8")}catch{}})();const{hyphen:d}=g.getLocalizedStrings().common.strings,x=n.div``,m=n.div`
2
+ display: flex;
3
+ min-width: 192px;
4
+ justify-content: space-between;
5
+ `,u=n(p)`
6
+ color: ${e=>e.theme.colors.hero};
7
+ `,j=n(p)`
8
+ color: ${e=>e.theme.colors.brandColorPearl};
9
+ `,a=n.div`
10
+ display: flex;
11
+ align-items: center;
12
+ `,w=n(y)`
13
+ border-radius: ${i.sp12};
14
+ border: 1px solid ${e=>e.theme.colors.grey1};
15
+ display: flex;
16
+ height: 18px;
17
+ width: 18px;
18
+ align-items: center;
19
+ justify-content: center;
20
+ color: 1px solid ${e=>e.theme.colors.grey1};
21
+ margin-left: ${i.sp1};
22
+ `,$=({roles:e})=>{let t=d,r=[];t=h(e),r=b(e);const c=()=>r.length>0?s.jsx(x,{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:d});return r.length>0?s.jsx(f,{enterDelay:600,"data-testid":l("roles-tooltip",t),title:c(),placement:"top-end",style:{marginLeft:i.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{$ as T};
@@ -1,4 +1,4 @@
1
- import{aQ as G,ir as te,gK as me,eD as Je,is as Me,a9 as _e,it as Ve,cF as Pe,cG as Fe,V as a,ac as Ne,cp as Re,cq as qe,cr as Be,aR as ze,iu as We,iv as Ue,F as be,aa as pe,iw as Se,ix as $e,cJ as Ke,J as Ge,iL as He,gP as ue,u as B,p as De,y as ye,cK as Ye,iy as Ze,iz as Qe,iA as Xe,o as V}from"./index-BsnL7ZTX.js";import{a as f}from"./sentry-9b1mvxJ5.js";import{n as W}from"./mui-DsjrNjDe.js";import{G2 as et,G3 as tt}from"./zeni-epic-state-DJX8u9R8.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-DDhoyPGX-DiqXc1Uz.js";import"./liveblocks-CUDrE-0X.js";import"./core-Be77t6wT.js";import"./recharts-CmZa-egc.js";import"./lottie-C5G-hUN3.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./utils-VcZ1Xqjg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="b12a7a43-767f-4e22-bc90-92ca21304830",e._sentryDebugIdIdentifier="sentry-dbid-b12a7a43-767f-4e22-bc90-92ca21304830")}catch{}})();const z={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=W.div`
1
+ import{aR as H,ip as te,gI as me,eE as Je,iq as Me,a9 as _e,ir as Ve,cG as Fe,cH as Pe,V as a,ac as Ne,cq as qe,cr as Re,cs as Be,aS as We,is as Ue,it as ze,F as be,aa as pe,iu as Se,iv as $e,cT as Ge,J as He,iJ as Ke,gN as ue,u as B,p as De,y as ye,cJ as Xe,iw as Ye,ix as Ze,iy as Qe,o as V}from"./index-BJwUmr6X.js";import{a as f}from"./sentry-Dozbf0xW.js";import{n as U}from"./mui-BPiKl8lE.js";import{G2 as et,G3 as tt}from"./zeni-epic-state-DD2IEaUq.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-DQlMdMO0-r5LBclLE.js";import"./liveblocks-gc1Zpgue.js";import"./core-BCC1NfcO.js";import"./recharts-CTVVh_-r.js";import"./lottie-PDiRMFOU.js";import"./analytics-BVR-nkdQ.js";import"./lexical-D1A0yBcv.js";import"./utils-CJtHQQTa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="0b96fe2a-c02a-4ac2-8de8-4b6d1a7dae0a",e._sentryDebugIdIdentifier="sentry-dbid-0b96fe2a-c02a-4ac2-8de8-4b6d1a7dae0a")}catch{}})();const W={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=U.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -9,29 +9,29 @@ import{aQ as G,ir as te,gK as me,eD as Je,is as Me,a9 as _e,it as Ve,cF as Pe,cG
9
9
  border-top-right-radius: ${V.sp2};
10
10
  border-bottom-left-radius: ${V.sp0};
11
11
  border-bottom-right-radius: ${V.sp0};
12
- `,H=W.div`
12
+ `,K=U.div`
13
13
  display: flex;
14
14
  flex: 1;
15
15
  background-color: ${e=>e.theme.colors.grey3};
16
16
  min-height: 1px;
17
- `,dt=W.div`
17
+ `,dt=U.div`
18
18
  display: flex;
19
19
  flex-direction: column;
20
20
  margin: ${V.sp4} ${V.sp8} ${V.sp0} ${V.sp8};
21
- `,_=(e,d)=>`${e}.${d}`;function it({sectionId:e,jeScheduledTransaction:d,updateStatus:m,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:C,allMonthOptions:v,uncategorizedAccounts:k,selectedAccount:j,selectedClass:P,selectedAccumulatedDepreciationCategory:F,assetId:L,selectedDate:w,selectedMonths:T,selectedPostingDay:A,lastDayOfMonth:E,isDisabled:h,allowCreateSchedule:J,onCreateSchedule:i,onDelete:se,onMarkAsComplete:Z}){const{resetField:S}=Ke(),oe=_(e,"scheduleExpenseCategory"),ne=_(e,"scheduleClass"),de=_(e,"accumulatedDepreciationCategory"),ie=_(e,"assetId"),Q=_(e,"startDate"),D=_(e,"postingDate"),r=_(e,"months"),t=be.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,g=o=>s.filter(R=>R.qboId===o)[0]?.qboId,b=o=>p.filter(R=>R.qboId===o)[0]?.qboId,ce=o=>u.filter(R=>R.classId===o)[0]?.accountingClassNumber,Y={valueContainer:o=>({...o,overflow:"unset"})},I=Ge(),U=He({startDate:d.baseTransaction.date,endDate:d.baseTransaction.date.add(1,"year")}),$=()=>{S(D)},K=A==null&&E==null?void 0:E===!0?"lastDayOfMonth":"day",N=o=>[k.expense?.qboId,k.income?.qboId].includes(o),X=()=>{d.jeScheduleId!=null&&se(d.jeScheduleId)},y=d.scheduledJournalEntry.flatMap(o=>o.error);return a.jsxs(dt,{children:[a.jsx(st,{status:d.status.code,jeScheduleId:d.jeScheduleId,allowCreateSchedule:J,onDelete:X,isUpdating:m==="In-Progress",onMarkAsComplete:Z,onCreateSchedule:i}),a.jsx(pe,{controller:J===!0,children:a.jsxs(nt,{children:[a.jsx(ue,{isDisabled:y.includes("debit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.expenseCategory,width:z.labelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:y.includes("debit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:oe,placeholder:t.expenseCategoryPlaceholder,valueToId:o=>g(o),defaultValue:{selectedOption:j,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Y},disableCurrentOption:N,style:{borderTopLeftRadius:B[2],borderTopRightRadius:B[2]}}),a.jsx(H,{}),a.jsx(ue,{isDisabled:h,isLoading:!1,label:{label:t.class,width:z.labelWidth.value(I)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:ne,placeholder:t.classPlaceholder,valueToId:o=>ce(o),defaultValue:{selectedOption:P,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Y},style:{borderTopLeftRadius:B[0],borderTopRightRadius:B[0]}}),a.jsx(H,{}),a.jsx(ue,{isDisabled:y.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.accumulatedDepreciationCategory,width:z.depCategoryLabelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:y.includes("credit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:de,placeholder:t.accumulatedDepreciationCategoryPlaceholder,valueToId:o=>b(o),defaultValue:{selectedOption:F,allOptions:C},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Y},disableCurrentOption:N,style:{borderTopLeftRadius:B[0],borderTopRightRadius:B[0]}}),a.jsx(H,{}),a.jsx(Ye,{label:{label:t.assetId,width:z.labelWidth.value(I)},style:{width:"auto"},text:{type:"text",name:ie,defaultValue:L,placeholder:t.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:B[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(H,{}),a.jsx(Ze,{label:{label:t.startMonth,width:z.labelWidth.value(I)},monthSelectorField:{name:Q,placeholder:t.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:h,monthsAndYears:U},isDisabled:h}),a.jsx(H,{}),a.jsx(ot,{label:{label:t.postingDate,width:z.labelWidth.value(I)},isDisabled:h,dayOfMonthField:{placeholder:t.postingDatePlaceholder,name:D,defaultValue:{type:K,dayOfMonth:A},onSaveClick:()=>{},onCancelClick:$}}),a.jsx(H,{}),a.jsx(Qe,{label:{label:t.months,width:z.labelWidth.value(I)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:t.monthsPlaceholder,defaultValue:{selectedOption:T!=null?v[T-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(pe,{controller:J===!1,children:a.jsx(Xe,{text:t.scheduleMarkedAsCompleted})})]})}const ct=W.div`
21
+ `,_=(e,d)=>`${e}.${d}`;function it({sectionId:e,jeScheduledTransaction:d,updateStatus:m,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:C,allMonthOptions:v,uncategorizedAccounts:k,selectedAccount:j,selectedClass:F,selectedAccumulatedDepreciationCategory:P,assetId:L,selectedDate:w,selectedMonths:A,selectedPostingDay:E,lastDayOfMonth:O,isDisabled:h,allowCreateSchedule:J,onCreateSchedule:i,onDelete:se,onMarkAsComplete:Y}){const{resetField:S}=Ge(),oe=_(e,"scheduleExpenseCategory"),ne=_(e,"scheduleClass"),de=_(e,"accumulatedDepreciationCategory"),ie=_(e,"assetId"),Z=_(e,"startDate"),D=_(e,"postingDate"),r=_(e,"months"),t=be.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,g=o=>s.filter(q=>q.qboId===o)[0]?.qboId,b=o=>p.filter(q=>q.qboId===o)[0]?.qboId,ce=o=>u.filter(q=>q.classId===o)[0]?.accountingClassNumber,X={valueContainer:o=>({...o,overflow:"unset"})},I=He(),z=Ke({startDate:d.baseTransaction.date,endDate:d.baseTransaction.date.add(1,"year")}),$=()=>{S(D)},G=E==null&&O==null?void 0:O===!0?"lastDayOfMonth":"day",N=o=>[k.expense?.qboId,k.income?.qboId].includes(o),Q=()=>{d.jeScheduleId!=null&&se(d.jeScheduleId)},y=d.scheduledJournalEntry.flatMap(o=>o.error);return a.jsxs(dt,{children:[a.jsx(st,{status:d.status.code,jeScheduleId:d.jeScheduleId,allowCreateSchedule:J,onDelete:Q,isUpdating:m==="In-Progress",onMarkAsComplete:Y,onCreateSchedule:i}),a.jsx(pe,{controller:J===!0,children:a.jsxs(nt,{children:[a.jsx(ue,{isDisabled:y.includes("debit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.expenseCategory,width:W.labelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:y.includes("debit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:oe,placeholder:t.expenseCategoryPlaceholder,valueToId:o=>g(o),defaultValue:{selectedOption:j,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:X},disableCurrentOption:N,style:{borderTopLeftRadius:B[2],borderTopRightRadius:B[2]}}),a.jsx(K,{}),a.jsx(ue,{isDisabled:h,isLoading:!1,label:{label:t.class,width:W.labelWidth.value(I)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:ne,placeholder:t.classPlaceholder,valueToId:o=>ce(o),defaultValue:{selectedOption:F,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:X},style:{borderTopLeftRadius:B[0],borderTopRightRadius:B[0]}}),a.jsx(K,{}),a.jsx(ue,{isDisabled:y.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:t.accumulatedDepreciationCategory,width:W.depCategoryLabelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:y.includes("credit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:de,placeholder:t.accumulatedDepreciationCategoryPlaceholder,valueToId:o=>b(o),defaultValue:{selectedOption:P,allOptions:C},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:X},disableCurrentOption:N,style:{borderTopLeftRadius:B[0],borderTopRightRadius:B[0]}}),a.jsx(K,{}),a.jsx(Xe,{label:{label:t.assetId,width:W.labelWidth.value(I)},style:{width:"auto"},text:{type:"text",name:ie,defaultValue:L,placeholder:t.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:B[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(K,{}),a.jsx(Ye,{label:{label:t.startMonth,width:W.labelWidth.value(I)},monthSelectorField:{name:Z,placeholder:t.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:h,monthsAndYears:z},isDisabled:h}),a.jsx(K,{}),a.jsx(ot,{label:{label:t.postingDate,width:W.labelWidth.value(I)},isDisabled:h,dayOfMonthField:{placeholder:t.postingDatePlaceholder,name:D,defaultValue:{type:G,dayOfMonth:E},onSaveClick:()=>{},onCancelClick:$}}),a.jsx(K,{}),a.jsx(Ze,{label:{label:t.months,width:W.labelWidth.value(I)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:t.monthsPlaceholder,defaultValue:{selectedOption:A!=null?v[A-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(pe,{controller:J===!1,children:a.jsx(Qe,{text:t.scheduleMarkedAsCompleted})})]})}const ct=U.div`
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  width: 100%;
25
25
  height: 100%;
26
26
  min-height: 100vh;
27
27
  background-color: ${e=>e.theme.colors.grey4};
28
- `,rt=W.div`
28
+ `,rt=U.div`
29
29
  display: flex;
30
30
  z-index: 2;
31
- `,ut=W.div`
31
+ `,ut=U.div`
32
32
  display: flex;
33
33
  flex-direction: column;
34
- `,ht=W.div`
34
+ `,ht=U.div`
35
35
  display: flex;
36
36
  justify-content: center;
37
- `,Ce="scheduleDetailsPage",le="scheduleDetailsFixedAssetsSection",ae="scheduleDetailsListSection",pt=be.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ft}}=pt;function It({analytics:e,controllerUserDetails:d,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:C,onJELinkClick:v,onSave:k,onDelete:j,onDetailPageChange:P,onViewLinkedJE:F,onTransactionClick:L,onMarkAsComplete:w,removeJeScheduleTransactionKey:T}){const[A,E]=f.useState(!1),h=G(l.updateStatus.fetchState),J=G(l.selectedJEScheduleTransaction?.status.code),i=G(l.deleteStatus.fetchState),[se,Z]=f.useState(!1),S=l.scheduleDetailsLocalData.fixed_assets,oe=G(S.jeScheduleDetails.length),ne=G(S.selectedDate),de=G(S.selectedDayOfMonth),[ie,Q]=f.useState(!0),D=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,t=l.selectedJEScheduleTransaction,g=et(d.controllers),b=tt(d.controllerUserIds),ce={onOkClick:()=>{E(!1),p()},onCancelClick:()=>{E(!1)}},Y=n=>{const x=t?.scheduledJournalEntry[n];r!=null&&x!=null&&t!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...$e(r)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{...Se(x)},vendorName:D!=null?D.name:M.strings.hyphen,controllerEmails:g,controllerUserIds:b,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),v(n)},I=(n,x)=>{const O=t?.scheduledJournalEntry[x];r!=null&&O!=null&&t!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:Se(O),controllerEmails:g,controllerUserIds:b,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),F(n)};f.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&t!=null&&e.trackScheduleDetailsSaved(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),c===!0&&t?.jeScheduleTransactionKey!=null&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&T(t.jeScheduleTransactionKey,{month:m.month,year:m.year}),p())},[m,J,l.selectedJEScheduleTransaction?.status.code,e,p,h,T,c,l.updateStatus,t,r,D,g,b]),f.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const U=me(l.accountListNestedAccountHierarchy),$=me(l.allDepreciationAccountListNestedAccountHierarchy),K=Je(l.classListNestedAccountHierarchy),N=Me("fixed_assets"),X=f.useRef(),y=_e({mode:"all",reValidateMode:"onChange",defaultValues:he(l,U,K,$,N,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:he(l,U,K,$,N,u.entityAutoCompleteView)}),o=y.watch("scheduleDetailsFixedAssetsSection.vendor");f.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&X.current?.(Ve(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const R=(n,x)=>{s.onAutoCompleteInputChange?.(n,"vendor"),X.current=x},xe=y.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),ve=async(n,x)=>{const O=x[le].vendor;if(n.includes("vendor")){const re=O?.defaultOptions.map(q=>q.value);if(O?.selectedOption!=null&&re?.includes(O.selectedOption)!==!0){const q=u.entityAutoCompleteView.vendor.find(we=>we.id===O.selectedOption);q!=null&&y.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:q.name??"",value:q.id}])}}const ee=n.includes("amount");if(P(x,ee),n.includes("amount")){const re=n.split(".")[1],q=parseInt(re);Z(!0),C(q,l.selectedJEScheduleTransaction?.jeScheduleId)}};f.useEffect(()=>{let n=!0;const x=y.watch((O,{name:ee})=>{ee!=null&&O!=null&&Pe(()=>{n&&ve(ee,O)})});return()=>{n=!1,x.unsubscribe()}}),f.useEffect(()=>{(oe!==S.jeScheduleDetails.length||ne!==S.selectedDate||de!==S.selectedDayOfMonth)&&se===!0&&(y.resetField(ae,{defaultValue:he(l,U,K,$,N,u.entityAutoCompleteView)[ae],keepDirty:!1}),Z(!1))},[S.jeScheduleDetails.length,S.selectedDate,S.selectedDayOfMonth]),f.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&Q(!1)},[l.selectedJEScheduleTransaction?.status.code]);const fe=(Fe(y.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&S.jeScheduleDetails.length>0,Ae=()=>{fe===!0?E(!0):(r!=null&&t!=null&&e.trackScheduleDetailsCanceled(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),p())},Ee=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Oe=f.useCallback(()=>{Q(!0)},[]),je=f.useCallback(()=>{r!=null&&t!=null&&e.trackScheduleDetailsMarkedAsCompleted(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),w()},[e,g,b,t,w,r,D]),Te=f.useCallback(n=>{r!=null&&t!=null&&e.trackScheduleDetailsDeleted(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),j(n)},[e,g,b,t,j,r,D]),Ie=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(n=>n.error??[]).filter(n=>!!n)??[])?.includes("vendor_deleted")===!0?o?.defaultOptions.find(n=>n.value===o?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name,ke=a.jsx(mt,{title:Ie??M.strings.empty,onNavigateBack:Ae,onTransactionClick:Ee}),Le=a.jsx(rt,{children:a.jsx(Ne,{...y,children:a.jsxs("form",{style:{width:"100%"},id:ge(Ce),onSubmit:xe,children:[a.jsx(St,{vendorLoadOptions:R,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:U,allClassOptions:K,allMonthOptions:N,allDepAccountOptions:$,onEditAmount:C,onDelete:Te,onJELinkClick:Y,onViewLinkedJE:I,onMarkAsComplete:je,allowCreateSchedule:ie,onCreateSchedule:Oe}),A===!0?a.jsx(Re,{titleComponent:a.jsx(Be,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(qe,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ce}):null,fe===!0?a.jsx(ze,{formId:ge(Ce),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:()=>{E(!0)},style:{minWidth:"82px"}}}):null]})})});return a.jsxs(ct,{children:[ke,Le]})}function mt({onNavigateBack:e,onTransactionClick:d,title:m}){return a.jsx(Ue,{title:m,tooltipTextOnLaunch:ft.showTransactionTooltip,onBackClick:e,onLaunchClick:d,style:{zIndex:3}})}function St({vendorField:e,vendorLoadOptions:d,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:C,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:j,onDelete:P,onJELinkClick:F,onViewLinkedJE:L,onMarkAsComplete:w}){const T=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(A=>A.error).filter(A=>!!A)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(ut,{children:[a.jsx(ht,{children:a.jsx(lt,{vendorLoadOptions:d,vendorField:e,vendorFieldName:_(le,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,errors:T,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(it,{sectionId:le,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:P,onMarkAsComplete:w,onCreateSchedule:k}),a.jsx(pe,{controller:v===!0,children:a.jsx(at,{sectionId:ae,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:j,onJELinkClick:F,onViewLinkedJE:L,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ge=e=>`${e}_form`,he=(e,d,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,j=c.selectedAccumulatedDepreciationCategory,P=j!=null?e.allDepreciationAccountList.find(i=>i.accountId===j):void 0,F=c.assetId,L=c.selectedClass,w=L!=null?e.allClassList.find(i=>i.classId===L):void 0,T=c.selectedMonths,A=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),E=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=E==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[le]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:d},accumulatedDepreciationCategory:{selectedOption:P?.qboId,allOptions:l},assetId:F,scheduleClass:{selectedOption:w?.classId,allOptions:m},startDate:c.selectedDate,months:{selectedOption:T,allOptions:s},vendor:{selectedOption:v?.id??C?.id,defaultOptions:We(u,v??C)},postingDate:{type:J,dayOfMonth:E}},[ae]:A}};export{It as default};
37
+ `,Ce="scheduleDetailsPage",le="scheduleDetailsFixedAssetsSection",ae="scheduleDetailsListSection",pt=be.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ft}}=pt;function It({analytics:e,controllerUserDetails:d,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:C,onJELinkClick:v,onSave:k,onDelete:j,onDetailPageChange:F,onViewLinkedJE:P,onTransactionClick:L,onMarkAsComplete:w,removeJeScheduleTransactionKey:A}){const[E,O]=f.useState(!1),h=H(l.updateStatus.fetchState),J=H(l.selectedJEScheduleTransaction?.status.code),i=H(l.deleteStatus.fetchState),[se,Y]=f.useState(!1),S=l.scheduleDetailsLocalData.fixed_assets,oe=H(S.jeScheduleDetails.length),ne=H(S.selectedDate),de=H(S.selectedDayOfMonth),[ie,Z]=f.useState(!0),D=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,t=l.selectedJEScheduleTransaction,g=et(d.controllers),b=tt(d.controllerUserIds),ce={onOkClick:()=>{O(!1),p()},onCancelClick:()=>{O(!1)}},X=n=>{const x=t?.scheduledJournalEntry[n];r!=null&&x!=null&&t!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...$e(r)},scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:{...Se(x)},vendorName:D!=null?D.name:M.strings.hyphen,controllerEmails:g,controllerUserIds:b,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),v(n)},I=(n,x)=>{const T=t?.scheduledJournalEntry[x];r!=null&&T!=null&&t!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:t.jeDebit.account?.accountName??null,expenseClass:t.jeDebit.accountingClass?.className??null},journalEntryDetails:Se(T),controllerEmails:g,controllerUserIds:b,fixedAssetsDetails:{accumulatedDepreciationCategory:t.jeCredit.account?.accountName??null,assetId:t.otherAttributes.assetId??null}}),P(n)};f.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&t!=null&&e.trackScheduleDetailsSaved(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),c===!0&&t?.jeScheduleTransactionKey!=null&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&A(t.jeScheduleTransactionKey,{month:m.month,year:m.year}),p())},[m,J,l.selectedJEScheduleTransaction?.status.code,e,p,h,A,c,l.updateStatus,t,r,D,g,b]),f.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const z=me(l.accountListNestedAccountHierarchy),$=me(l.allDepreciationAccountListNestedAccountHierarchy),G=Je(l.classListNestedAccountHierarchy),N=Me("fixed_assets"),Q=f.useRef(),y=_e({mode:"all",reValidateMode:"onChange",defaultValues:he(l,z,G,$,N,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:he(l,z,G,$,N,u.entityAutoCompleteView)}),o=y.watch("scheduleDetailsFixedAssetsSection.vendor");f.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&Q.current?.(Ve(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const q=(n,x)=>{s.onAutoCompleteInputChange?.(n,"vendor"),Q.current=x},xe=y.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),ve=async(n,x)=>{const T=x[le].vendor;if(n.includes("vendor")){const re=T?.defaultOptions.map(R=>R.value);if(T?.selectedOption!=null&&re?.includes(T.selectedOption)!==!0){const R=u.entityAutoCompleteView.vendor.find(we=>we.id===T.selectedOption);R!=null&&y.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:R.name??"",value:R.id}])}}const ee=n.includes("amount");if(F(x,ee),n.includes("amount")){const re=n.split(".")[1],R=parseInt(re);Y(!0),C(R,l.selectedJEScheduleTransaction?.jeScheduleId)}};f.useEffect(()=>{let n=!0;const x=y.watch((T,{name:ee})=>{ee!=null&&T!=null&&Fe(()=>{n&&ve(ee,T)})});return()=>{n=!1,x.unsubscribe()}}),f.useEffect(()=>{(oe!==S.jeScheduleDetails.length||ne!==S.selectedDate||de!==S.selectedDayOfMonth)&&se===!0&&(y.resetField(ae,{defaultValue:he(l,z,G,$,N,u.entityAutoCompleteView)[ae],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 fe=(Pe(y.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&S.jeScheduleDetails.length>0,Ee=()=>{fe===!0?O(!0):(r!=null&&t!=null&&e.trackScheduleDetailsCanceled(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),p())},Oe=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Te=f.useCallback(()=>{Z(!0)},[]),je=f.useCallback(()=>{r!=null&&t!=null&&e.trackScheduleDetailsMarkedAsCompleted(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),w()},[e,g,b,t,w,r,D]),Ae=f.useCallback(n=>{r!=null&&t!=null&&e.trackScheduleDetailsDeleted(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),j(n)},[e,g,b,t,j,r,D]),Ie=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(n=>n.error??[]).filter(n=>!!n)??[])?.includes("vendor_deleted")===!0?o?.defaultOptions.find(n=>n.value===o?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name,ke=a.jsx(mt,{title:Ie??M.strings.empty,onNavigateBack:Ee,onTransactionClick:Oe}),Le=a.jsx(rt,{children:a.jsx(Ne,{...y,children:a.jsxs("form",{style:{width:"100%"},id:ge(Ce),onSubmit:xe,children:[a.jsx(St,{vendorLoadOptions:q,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:z,allClassOptions:G,allMonthOptions:N,allDepAccountOptions:$,onEditAmount:C,onDelete:Ae,onJELinkClick:X,onViewLinkedJE:I,onMarkAsComplete:je,allowCreateSchedule:ie,onCreateSchedule:Te}),E===!0?a.jsx(qe,{titleComponent:a.jsx(Be,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Re,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ce}):null,fe===!0?a.jsx(We,{formId:ge(Ce),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:()=>{O(!0)},style:{minWidth:"82px"}}}):null]})})});return a.jsxs(ct,{children:[ke,Le]})}function mt({onNavigateBack:e,onTransactionClick:d,title:m}){return a.jsx(ze,{title:m,tooltipTextOnLaunch:ft.showTransactionTooltip,onBackClick:e,onLaunchClick:d,style:{zIndex:3}})}function St({vendorField:e,vendorLoadOptions:d,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:C,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:j,onDelete:F,onJELinkClick:P,onViewLinkedJE:L,onMarkAsComplete:w}){const A=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(E=>E.error).filter(E=>!!E)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(ut,{children:[a.jsx(ht,{children:a.jsx(lt,{vendorLoadOptions:d,vendorField:e,vendorFieldName:_(le,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,errors:A,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(it,{sectionId:le,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:w,onCreateSchedule:k}),a.jsx(pe,{controller:v===!0,children:a.jsx(at,{sectionId:ae,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:j,onJELinkClick:P,onViewLinkedJE:L,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ge=e=>`${e}_form`,he=(e,d,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,j=c.selectedAccumulatedDepreciationCategory,F=j!=null?e.allDepreciationAccountList.find(i=>i.accountId===j):void 0,P=c.assetId,L=c.selectedClass,w=L!=null?e.allClassList.find(i=>i.classId===L):void 0,A=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})),O=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=O==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[le]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:d},accumulatedDepreciationCategory:{selectedOption:F?.qboId,allOptions:l},assetId:P,scheduleClass:{selectedOption:w?.classId,allOptions:m},startDate:c.selectedDate,months:{selectedOption:A,allOptions:s},vendor:{selectedOption:v?.id??C?.id,defaultOptions:Ue(u,v??C)},postingDate:{type:J,dayOfMonth:O}},[ae]:E}};export{It as default};
@@ -0,0 +1,37 @@
1
+ import{aR as F,ip as Q,gI as Ie,eE as Je,iq as we,a9 as Le,ir as Me,cG as Ve,cH as Pe,V as a,ac as _e,cq as Fe,cr as $e,cs as Ne,aS as qe,is as Be,it as Re,F as ye,aa as re,iu as pe,iv as Ue,cT as We,J as ze,gN as fe,u as Z,p as Ge,y as Ke,iw as He,ix as Xe,iy as Ye,o as w}from"./index-BJwUmr6X.js";import{a as y}from"./sentry-Dozbf0xW.js";import{n as P}from"./mui-BPiKl8lE.js";import{G2 as Qe,G3 as Ze,bL as et}from"./zeni-epic-state-DD2IEaUq.js";import{i as tt,r as lt,n as at,o as st}from"./ScheduleSequenceTable-DQlMdMO0-r5LBclLE.js";import"./liveblocks-gc1Zpgue.js";import"./core-BCC1NfcO.js";import"./recharts-CTVVh_-r.js";import"./lottie-PDiRMFOU.js";import"./analytics-BVR-nkdQ.js";import"./lexical-D1A0yBcv.js";import"./utils-CJtHQQTa.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]="424c4f7e-cc02-4ffa-80ea-1dd589e51f21",e._sentryDebugIdIdentifier="sentry-dbid-424c4f7e-cc02-4ffa-80ea-1dd589e51f21")}catch{}})();const B={labelWidth:new Ke(160,160,160)},nt=P.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 100%;
5
+ background-color: ${e=>e.theme.colors.grey5};
6
+ border: 1px solid ${e=>e.theme.colors.grey3};
7
+
8
+ border-top-left-radius: ${w.sp2};
9
+ border-top-right-radius: ${w.sp2};
10
+ border-bottom-left-radius: ${w.sp0};
11
+ border-bottom-right-radius: ${w.sp0};
12
+ `,ee=P.div`
13
+ display: flex;
14
+ flex: 1;
15
+ background-color: ${e=>e.theme.colors.grey3};
16
+ min-height: 1px;
17
+ `,ot=P.div`
18
+ display: flex;
19
+ flex-direction: column;
20
+ margin: ${w.sp4} ${w.sp8} ${w.sp0} ${w.sp8};
21
+ `,$=(e,s)=>`${e}.${s}`;function dt({sectionId:e,jeScheduledTransaction:s,updateStatus:p,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:g,allMonthOptions:o,uncategorizedAccounts:f,selectedAccount:r,selectedClass:D,selectedDate:L,selectedMonths:I,selectedPostingDay:O,lastDayOfMonth:k,isDisabled:m,allowCreateSchedule:b,onCreateSchedule:u,onDelete:ae,onMarkAsComplete:_}){const{resetField:R}=We(),U=$(e,"scheduleExpenseCategory"),W=$(e,"scheduleClass"),se=$(e,"startDate"),N=$(e,"postingDate"),C=$(e,"months"),S=ye.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,ne=c=>t.filter(q=>q.qboId===c)[0]?.qboId,oe=c=>i.filter(q=>q.classId===c)[0]?.accountingClassNumber,z={valueContainer:c=>({...c,overflow:"unset"})},J=ze(),v=ct({startDate:s.baseTransaction.date,endDate:s.baseTransaction.date.add(1,"year")}),h=()=>{R(N)},n=O==null&&k==null?void 0:k===!0?"lastDayOfMonth":"day",x=c=>[f.expense?.qboId,f.income?.qboId].includes(c),E=()=>{s.jeScheduleId!=null&&ae(s.jeScheduleId)},G=s.scheduledJournalEntry.flatMap(c=>c.error);return a.jsxs(ot,{children:[a.jsx(at,{isUpdating:p==="In-Progress",status:s.status.code,jeScheduleId:s.jeScheduleId,allowCreateSchedule:b,onDelete:E,onMarkAsComplete:_,onCreateSchedule:u}),a.jsx(re,{controller:b===!0,children:a.jsxs(nt,{children:[a.jsx(fe,{isDisabled:G.includes("debit_category_deleted")?void 0:m,isLoading:!1,label:{label:S.expenseCategory,width:B.labelWidth.value(J)},groupedSingleSelectField:{customPlaceholderColor:G.includes("debit_category_deleted")?Ge.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:U,placeholder:S.expenseCategoryPlaceholder,valueToId:c=>ne(c),defaultValue:{selectedOption:r,allOptions:l},registerOptions:{required:!0,validate:c=>!!c.selectedOption},customStyleConfig:z},disableCurrentOption:x,style:{borderTopLeftRadius:Z[2],borderTopRightRadius:Z[2]}}),a.jsx(ee,{}),a.jsx(fe,{isDisabled:m,isLoading:!1,label:{label:S.class,width:B.labelWidth.value(J)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:W,placeholder:S.classPlaceholder,valueToId:c=>oe(c),defaultValue:{selectedOption:D,allOptions:g},registerOptions:{required:!0,validate:c=>!!c.selectedOption},customStyleConfig:z},style:{borderTopLeftRadius:Z[0],borderTopRightRadius:Z[0]}}),a.jsx(ee,{}),a.jsx(He,{label:{label:S.startMonth,width:B.labelWidth.value(J)},monthSelectorField:{name:se,placeholder:S.startMonthPlaceholder,defaultValue:L,showDownChevron:!1,isDisabled:m,monthsAndYears:v},isDisabled:m}),a.jsx(ee,{}),a.jsx(st,{label:{label:S.postingDate,width:B.labelWidth.value(J)},isDisabled:m,dayOfMonthField:{placeholder:S.postingDatePlaceholder,name:N,defaultValue:{type:n,dayOfMonth:O},onSaveClick:()=>{},onCancelClick:h}}),a.jsx(ee,{}),a.jsx(Xe,{label:{label:S.months,width:B.labelWidth.value(J)},singleSelectNumericField:{name:C,isDisabled:m,placeholder:S.monthsPlaceholder,defaultValue:{selectedOption:I!=null?o[I-1]:void 0,allOptions:o},registerOptions:{required:!0,validate:c=>!!c.selectedOption}}})]})}),a.jsx(re,{controller:b===!1,children:a.jsx(Ye,{text:S.scheduleMarkedAsCompleted})})]})}const ct=e=>{const s={},p=e.endDate.year()-e.startDate.year()+1,l=e.endDate.year(),t=e.startDate.year();return{years:Array(p).fill(l).map((i,g)=>{const o=i-g,f=o.toString();let r=[];if(o===t){const D=e.startDate.month();r=e.startDate.localeData().monthsShort(),D!==0&&r.splice(0,D)}else r=et(`${o}-01-01`).localeData().monthsShort();return s[f]=r,f}).reverse(),months:s}},it=P.div`
22
+ display: flex;
23
+ flex-direction: column;
24
+ width: 100%;
25
+ height: 100%;
26
+ min-height: 100vh;
27
+ background-color: ${e=>e.theme.colors.grey4};
28
+ `,rt=P.div`
29
+ display: flex;
30
+ z-index: 2;
31
+ `,ut=P.div`
32
+ display: flex;
33
+ flex-direction: column;
34
+ `,ht=P.div`
35
+ display: flex;
36
+ justify-content: center;
37
+ `,me="scheduleDetailsPage",te="scheduleDetailsSection",le="scheduleDetailsListSection",pt=ye.getLocalizedStrings(),{common:A,jeSchedules:{scheduleDetails:ft}}=pt;function At({analytics:e,controllerUserDetails:s,expenseAutomationSelectedPeriod:p,scheduleDetailsView:l,scheduleTab:t,usedInExpenseAutomation:i,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:o,onMarkAsComplete:f,onNavigateBack:r,onEditAmount:D,onJELinkClick:L,onSave:I,onDelete:O,onDetailPageChange:k,onViewLinkedJE:m,onTransactionClick:b,removeJeScheduleTransactionKey:u}){const[ae,_]=y.useState(!1),R=F(l.updateStatus.fetchState),U=F(l.selectedJEScheduleTransaction?.status.code),W=F(l.deleteStatus.fetchState),[se,N]=y.useState(!1),C=l.scheduleDetailsLocalData.prepaid_expenses,S=F(C.jeScheduleDetails.length),ne=F(C.selectedDate),oe=F(C.selectedDayOfMonth),[z,J]=y.useState(!0),v=l.selectedJEScheduleTransaction?.vendor,h=l.selectedJEScheduleTransaction?.baseTransaction,n=l.selectedJEScheduleTransaction,x=Qe(s.controllers),E=Ze(s.controllerUserIds),G={onOkClick:()=>{_(!1),r()},onCancelClick:()=>{_(!1)}},c=d=>{const T=n?.scheduledJournalEntry[d];h!=null&&T!=null&&n!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:t,transaction:{...Ue(h)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...pe(T)},vendorName:v!=null?v.name:A.strings.hyphen,controllerEmails:x,controllerUserIds:E}),L(d)},q=(d,T)=>{const j=n?.scheduledJournalEntry[T];h!=null&&j!=null&&n!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:pe(j),controllerEmails:x,controllerUserIds:E}),m(d)};y.useEffect(()=>{R==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(h!=null&&n!=null&&e.trackScheduleDetailsSaved(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),i===!0&&n?.jeScheduleTransactionKey!=null&&U==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(n.jeScheduleTransactionKey,{month:p.month,year:p.year}),r())},[U,l.selectedJEScheduleTransaction?.status.code,e,r,p,R,l.updateStatus,u,t,i,n,h,v,x,E]),y.useEffect(()=>{W==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[W,l.deleteStatus,r]);const K=Ie(l.accountListNestedAccountHierarchy),H=Je(l.classListNestedAccountHierarchy),X=we(t),ue=y.useRef(),M=Le({mode:"all",reValidateMode:"onChange",defaultValues:ie(l,K,H,X,o.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ie(l,K,H,X,o.entityAutoCompleteView)}),de=M.watch("scheduleDetailsSection.vendor");y.useEffect(()=>{o.entityAutoCompleteView.fetchState==="Completed"&&ue.current?.(Me(o.entityAutoCompleteView))},[o.entityAutoCompleteView.fetchState]);const De=(d,T)=>{g.onAutoCompleteInputChange?.(d,"vendor"),ue.current=T},Ce=M.handleSubmit(()=>{I(l.selectedJEScheduleTransaction?.jeScheduleId)}),ge=async(d,T)=>{const j=T[te].vendor;if(d.includes("vendor")){const ce=j?.defaultOptions.map(V=>V.value);if(j?.selectedOption!=null&&ce?.includes(j.selectedOption)!==!0){const V=o.entityAutoCompleteView.vendor.find(Ae=>Ae.id===j.selectedOption);V!=null&&M.setValue("scheduleDetailsSection.vendor.defaultOptions",[{label:V.name??A.strings.empty,value:V.id}])}}const Y=d.includes("amount");if(k(T,Y),d.includes("amount")){const ce=d.split(".")[1],V=parseInt(ce);N(!0),D(V,l.selectedJEScheduleTransaction?.jeScheduleId)}};y.useEffect(()=>{let d=!0;const T=M.watch((j,{name:Y})=>{Y!=null&&j!=null&&Ve(()=>{d&&ge(Y,j)})});return()=>{d=!1,T.unsubscribe()}}),y.useEffect(()=>{(S!==C.jeScheduleDetails.length||ne!==C.selectedDate||oe!==C.selectedDayOfMonth)&&se===!0&&(M.resetField(le,{defaultValue:ie(l,K,H,X,o.entityAutoCompleteView)[le],keepDirty:!1}),N(!1))},[C.jeScheduleDetails.length,C.selectedDate,C.selectedDayOfMonth]),y.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&J(!1)},[l.selectedJEScheduleTransaction?.status.code]);const he=(Pe(M.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&C.jeScheduleDetails.length>0,be=()=>{he===!0?_(!0):(h!=null&&n!=null&&e.trackScheduleDetailsCanceled(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),r())},ve=()=>{l.selectedJEScheduleTransaction!=null&&b({id:l.selectedJEScheduleTransaction?.baseTransaction.id,type:l.selectedJEScheduleTransaction?.baseTransaction.type})},xe=y.useCallback(()=>{J(!0)},[]),Ee=y.useCallback(()=>{h!=null&&n!=null&&e.trackScheduleDetailsMarkedAsCompleted(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),f()},[e,n,f,t,h,v,x,E]),Te=y.useCallback(d=>{h!=null&&n!=null&&e.trackScheduleDetailsDeleted(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),O(d)},[e,n,O,t,h,v,x,E]),je=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(d=>d.error??[]).filter(d=>!!d)??[])?.includes("vendor_deleted")===!0?de?.defaultOptions.find(d=>d.value===de?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name,Oe=a.jsx(mt,{onNavigateBack:be,onTransactionClick:ve,title:je??A.strings.empty}),ke=a.jsx(rt,{children:a.jsx(_e,{...M,children:a.jsxs("form",{style:{width:"100%"},id:Se(me),onSubmit:Ce,children:[a.jsx(St,{vendorLoadOptions:De,vendorField:de,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:o,scheduleDetailsView:l,allAccountOptions:K,allClassOptions:H,allMonthOptions:X,allowCreateSchedule:z,onEditAmount:D,onDelete:Te,onJELinkClick:c,onViewLinkedJE:q,onMarkAsComplete:Ee,onCreateSchedule:xe}),ae===!0?a.jsx(Fe,{titleComponent:a.jsx(Ne,{children:A.confirmationPopup.discardTitle}),descriptionComponent:a.jsx($e,{children:A.confirmationPopup.discardDescription}),primaryButtonText:A.confirmationPopup.discard,secondaryButtonText:A.confirmationPopup.cancel,proceedButtonVariant:"danger",action:G}):null,he===!0?a.jsx(qe,{formId:Se(me),primaryBtn:{label:A.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:A.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{_(!0)},style:{minWidth:"82px"}}}):null]})})});return a.jsxs(it,{children:[Oe,ke]})}function mt({title:e,onNavigateBack:s,onTransactionClick:p}){return a.jsx(Re,{title:e,tooltipTextOnLaunch:ft.showTransactionTooltip,onBackClick:s,onLaunchClick:p,style:{zIndex:3}})}function St({vendorField:e,vendorLoadOptions:s,vendorSearchAutoCompleteActions:p,vendorSearchAutoCompleteData:l,scheduleDetailsView:t,allAccountOptions:i,allClassOptions:g,allMonthOptions:o,allowCreateSchedule:f,onCreateSchedule:r,onMarkAsComplete:D,onEditAmount:L,onDelete:I,onJELinkClick:O,onViewLinkedJE:k}){const m=t.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(b=>b.error??[]).filter(b=>!!b)??[];return t.selectedJEScheduleTransaction!=null?a.jsxs(ut,{children:[a.jsx(ht,{children:a.jsx(tt,{errors:m,vendorLoadOptions:s,vendorField:e,vendorFieldName:$(te,"vendor"),vendorSearchAutoCompleteActions:p,vendorSearchAutoCompleteData:l,transaction:t.selectedJEScheduleTransaction.baseTransaction,vendor:t.selectedJEScheduleTransaction.vendor})}),a.jsx(dt,{sectionId:te,jeScheduledTransaction:t.selectedJEScheduleTransaction,allAccountOptions:i,allAccountList:t.allAccountList,allClassList:t.allClassList,allClassOptions:g,allMonthOptions:o,uncategorizedAccounts:t.uncategorizedAccounts,lastDayOfMonth:t.scheduleDetailsLocalData.prepaid_expenses.lastDayOfMonth,selectedPostingDay:t.scheduleDetailsLocalData.prepaid_expenses.selectedDayOfMonth,selectedMonths:t.scheduleDetailsLocalData.prepaid_expenses.selectedMonths,isDisabled:t.selectedJEScheduleTransaction.jeScheduleId!=null&&t.selectedJEScheduleTransaction.status.code!=="marked_as_completed"&&t.selectedJEScheduleTransaction.status.code!=="draft"?"disabled":void 0,allowCreateSchedule:f,onCreateSchedule:r,onDelete:I,onMarkAsComplete:D,updateStatus:t.deleteStatus.fetchState}),a.jsx(re,{controller:f===!0,children:a.jsx(lt,{sectionId:le,totalAmount:t.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:t.fetchState,scheduleJournalEntries:t.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:t.selectedJEScheduleTransaction.jeScheduleId==null,localData:t.scheduleDetailsLocalData.prepaid_expenses.jeScheduleDetails,uiState:t.uiState,onEditAmount:L,onJELinkClick:O,onViewLinkedJE:k,jeScheduleId:t.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const Se=e=>`${e}_form`,ie=(e,s,p,l,t)=>{const i=e.scheduleDetailsLocalData.prepaid_expenses,g=i.selectedAccount,o=i.selectedVendor,f=o!=null?t.vendor.find(u=>u.zeniId===o.id):void 0,r=g!=null?e.allAccountList.find(u=>u.accountId===g):void 0,D=i.selectedClass,L=D!=null?e.allClassList.find(u=>u.classId===D):void 0,I=i.selectedMonths,O=i.jeScheduleDetails.map(u=>({postingDate:u.postingDate,amount:u.amount.amount,runningBalance:u.runningBalance.amount,postingStatus:u.postingStatus,jeLink:u.jeLink.thirdPartyTransactionId})),k=i.selectedDayOfMonth,m=i.lastDayOfMonth,b=k==null&&m==null?void 0:m===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:r?.qboId,allOptions:s},scheduleClass:{selectedOption:L?.classId,allOptions:p},startDate:i.selectedDate,months:{selectedOption:I,allOptions:l},vendor:{selectedOption:f?.id??o?.id,defaultOptions:Be(t,f??o)},postingDate:{type:b,dayOfMonth:k}},[le]:O}};export{At as default};
@@ -1,6 +1,6 @@
1
- import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye,b as I,F as P,iE as we,iA as be,o as i,y as b,p as j,c as $e,aa as re,dN as je,cp as Se,cr as ke,cJ as Q,ev as ee,cO as ve,iF as K,iG as De,b3 as Ce,iH as Me,ct as ze,iI as Oe,u as h,al as O,b9 as Ee,cq as Le,ao as pe,eE as Ie,b1 as ne,eq as Ae,aR as Fe,iJ as F,gj as Ve,aN as Te,iK as Je,aV as Y,c$ as Be,bh as Re}from"./index-BsnL7ZTX.js";import{n as o,c as B}from"./mui-DsjrNjDe.js";import{a as C}from"./sentry-9b1mvxJ5.js";import{bh as G,G4 as Pe}from"./zeni-epic-state-DJX8u9R8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="d830a6ac-76a1-468b-a3bf-8de5166f4b0d",e._sentryDebugIdIdentifier="sentry-dbid-d830a6ac-76a1-468b-a3bf-8de5166f4b0d")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=P.getLocalizedStrings();function Ne({defaultValue:e,name:l,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}=Q(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=A(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...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(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...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(Fe,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:qe(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:l,isDisabled:s}){return t.jsxs(Ye,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ke,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(q,{isSelected:r===e,onClick:()=>l(Pe(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
1
+ import{J as F,e as X,V as t,iz as ie,iA as le,N as oe,iB as xe,dU as fe,fi as ye,b as I,F as N,iC as we,iy as be,o as i,y as b,p as j,d as $e,aa as re,dP as je,cq as Se,cs as ke,cT as Q,c$ as ee,cZ as ve,iD as K,iE as De,b4 as Ce,iF as Me,cu as ze,iG as Oe,u as h,al as O,ba as Ee,cr as Le,ao as pe,d0 as Ie,b2 as ne,es as Fe,aS as Ae,iH as A,gh as Te,aO as Ve,iI as Je,aW as q,d1 as Be,bi as Pe}from"./index-BJwUmr6X.js";import{n as o,c as B}from"./mui-BPiKl8lE.js";import{a as C}from"./sentry-Dozbf0xW.js";import{bh as G,G4 as Ne}from"./zeni-epic-state-DD2IEaUq.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="779a3db6-e204-4dea-8bf7-ed7c7fadce55",e._sentryDebugIdIdentifier="sentry-dbid-779a3db6-e204-4dea-8bf7-ed7c7fadce55")}catch{}})();const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Re({defaultValue:e,name:l,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}=Q(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=F(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ze,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:R(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(Ye,{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(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...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(Fe,{name:R(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(l,"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(Ae,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:He(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:l,isDisabled:s}){return t.jsxs(qe,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ke,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:l}){return t.jsxs(Xe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(Ne(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const He=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ye=o.div`
2
2
  position: relative;
3
- `,Ye=o.div`
3
+ `,qe=o.div`
4
4
  display: flex;
5
5
  padding-right: ${i.sp3};
6
6
  `,ae=o.div`
@@ -35,7 +35,7 @@ import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye
35
35
  `,de=o.div`
36
36
  display: flex;
37
37
  gap: ${i.sp1};
38
- `,Xe=o.div`
38
+ `,Ze=o.div`
39
39
  display: flex;
40
40
  align-items: center;
41
41
  justify-content: flex-end;
@@ -47,7 +47,7 @@ import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye
47
47
  &:hover {
48
48
  background-color: ${e=>e.isDisabled?e.theme.colors.grey5:e.theme.colors.background};
49
49
  }
50
- `,Ze=o.div`
50
+ `,Xe=o.div`
51
51
  display: flex;
52
52
  flex-direction: column;
53
53
  width: fit-content;
@@ -55,7 +55,7 @@ import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye
55
55
  color: ${e=>e.theme.colors.hero};
56
56
  `,_=o.div`
57
57
  display: flex;
58
- `,q=o(O)`
58
+ `,H=o(O)`
59
59
  padding: ${i.sp1} ${i.sp2};
60
60
  max-width: ${i.sp5};
61
61
  min-width: 18px;
@@ -89,7 +89,7 @@ import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye
89
89
  width: 100%;
90
90
  height: 1px;
91
91
  background-color: ${e=>e.theme.colors.grey3};
92
- `,z={height:new b(h[6],h[6]),controlHeight:new b(h[6],h[6]),paddingTopBottom:new b(h[2],h[2]),marginRight:new b(h[2],h[2]),labelMarginLeft:new b(h[3],h[4]),labelMarginRight:new b(h[3],h[4]),labelMarginTop:new b(h[2],h[2])};function Xt({label:e,dayOfMonthField:l,isDisabled:s,style:r}){const p=A(),{formState:{errors:n}}=Q(),d=ee(n,l.name);return t.jsxs(it,{size:p,style:r,isDisabled:s!=null,isError:d,children:[t.jsx(ve,{isDisabled:s,label:e.label,htmlFor:l.name,style:{marginLeft:z.labelMarginLeft.value(p),marginRight:z.labelMarginRight.value(p),marginTop:z.labelMarginTop.value(p),width:e.width??"auto"}}),t.jsx(lt,{labelWidth:e.width,children:t.jsx(Ne,{...l,isDisabled:s,style:{display:"flex",flexGrow:1,width:"100%",height:z.controlHeight.value(p)}})})]})}const it=o.div`
92
+ `,z={height:new b(h[6],h[6]),controlHeight:new b(h[6],h[6]),paddingTopBottom:new b(h[2],h[2]),marginRight:new b(h[2],h[2]),labelMarginLeft:new b(h[3],h[4]),labelMarginRight:new b(h[3],h[4]),labelMarginTop:new b(h[2],h[2])};function Zt({label:e,dayOfMonthField:l,isDisabled:s,style:r}){const p=F(),{formState:{errors:n}}=Q(),d=ee(n,l.name);return t.jsxs(it,{size:p,style:r,isDisabled:s!=null,isError:d,children:[t.jsx(ve,{isDisabled:s,label:e.label,htmlFor:l.name,style:{marginLeft:z.labelMarginLeft.value(p),marginRight:z.labelMarginRight.value(p),marginTop:z.labelMarginTop.value(p),width:e.width??"auto"}}),t.jsx(lt,{labelWidth:e.width,children:t.jsx(Re,{...l,isDisabled:s,style:{display:"flex",flexGrow:1,width:"100%",height:z.controlHeight.value(p)}})})]})}const it=o.div`
93
93
  display: flex;
94
94
  flex-direction: row;
95
95
  align-items: flex-start;
@@ -143,12 +143,12 @@ import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye
143
143
  margin: ${i.sp3} ${i.sp1};
144
144
  `,ce=o.div`
145
145
  margin-bottom: ${i.sp2};
146
- `,{common:V,jeSchedules:{scheduleDetails:D}}=P.getLocalizedStrings();function Zt({isUpdating:e,status:l,jeScheduleId:s,allowCreateSchedule:r,onDelete:p,onMarkAsComplete:n,onCreateSchedule:d}){const[c,w]=C.useState(!1),f={onOkClick:()=>{p()},onCancelClick:()=>{w(!1)}},u=()=>null,m=[];return(l==="new"||l=="draft")&&m.push({label:D.scheduleDetailsSection.markAsCompleted,value:D.scheduleDetailsSection.markAsCompleted}),s!=null&&l!=="draft"&&(l==="marked_as_completed"?r===!1&&m.push({label:D.scheduleDetailsSection.createSchedule,value:D.scheduleDetailsSection.createSchedule}):m.push({label:V.delete,value:V.delete})),t.jsxs(ot,{children:[t.jsx(rt,{children:D.scheduleDetailsSection.header}),t.jsx(re,{controller:m.length>0,children:t.jsx(je,{moreIconType:"plain",options:m,customStyleConfig:{valueContainer:()=>({".more-icon":{width:i.sp3,height:i.sp3}})},menuPlacement:"top",onOptionSelection:x=>{x===V.delete&&w(!0),x===D.scheduleDetailsSection.markAsCompleted&&n(),x===D.scheduleDetailsSection.createSchedule&&d()},valueToIcon:u})}),t.jsx(re,{controller:c===!0,children:t.jsx(Se,{titleComponent:t.jsx(ke,{children:D.scheduleDetailsSection.confirmDeletionTitle}),descriptionComponent:t.jsx(nt,{}),action:f,primaryButtonText:V.yes,proceedButtonVariant:"danger",secondaryButtonText:V.no,isLoading:e})})]})}function nt(){return t.jsxs(Le,{children:[t.jsx(ce,{children:D.scheduleDetailsSection.confirmDeletionDescription}),t.jsx(ce,{children:D.scheduleDetailsSection.confirmDeletionDescriptionNote})]})}const R={containerPadding:new b(h[3],h[8]),containerMarginTop:new b(h[3],h[4]),containerMarginBottom:new b(h[4],h[5]),transactionLabelMarginTop:new b(h[2],h[0]),transactionTitleContainerWidth:new b(187,480)},U={transactionLabel:new oe("standardMedium","largeMedium"),transactionTitle:new oe("h6SemiBold","h5SemiBold")},st=o.div``,ue=o.div`
146
+ `,{common:T,jeSchedules:{scheduleDetails:D}}=N.getLocalizedStrings();function Xt({isUpdating:e,status:l,jeScheduleId:s,allowCreateSchedule:r,onDelete:p,onMarkAsComplete:n,onCreateSchedule:d}){const[c,w]=C.useState(!1),f={onOkClick:()=>{p()},onCancelClick:()=>{w(!1)}},u=()=>null,m=[];return(l==="new"||l=="draft")&&m.push({label:D.scheduleDetailsSection.markAsCompleted,value:D.scheduleDetailsSection.markAsCompleted}),s!=null&&l!=="draft"&&(l==="marked_as_completed"?r===!1&&m.push({label:D.scheduleDetailsSection.createSchedule,value:D.scheduleDetailsSection.createSchedule}):m.push({label:T.delete,value:T.delete})),t.jsxs(ot,{children:[t.jsx(rt,{children:D.scheduleDetailsSection.header}),t.jsx(re,{controller:m.length>0,children:t.jsx(je,{moreIconType:"plain",options:m,customStyleConfig:{valueContainer:()=>({".more-icon":{width:i.sp3,height:i.sp3}})},menuPlacement:"top",onOptionSelection:x=>{x===T.delete&&w(!0),x===D.scheduleDetailsSection.markAsCompleted&&n(),x===D.scheduleDetailsSection.createSchedule&&d()},valueToIcon:u})}),t.jsx(re,{controller:c===!0,children:t.jsx(Se,{titleComponent:t.jsx(ke,{children:D.scheduleDetailsSection.confirmDeletionTitle}),descriptionComponent:t.jsx(nt,{}),action:f,primaryButtonText:T.yes,proceedButtonVariant:"danger",secondaryButtonText:T.no,isLoading:e})})]})}function nt(){return t.jsxs(Le,{children:[t.jsx(ce,{children:D.scheduleDetailsSection.confirmDeletionDescription}),t.jsx(ce,{children:D.scheduleDetailsSection.confirmDeletionDescriptionNote})]})}const P={containerPadding:new b(h[3],h[8]),containerMarginTop:new b(h[3],h[4]),containerMarginBottom:new b(h[4],h[5]),transactionLabelMarginTop:new b(h[2],h[0]),transactionTitleContainerWidth:new b(187,480)},U={transactionLabel:new oe("standardMedium","largeMedium"),transactionTitle:new oe("h6SemiBold","h5SemiBold")},st=o.div``,ue=o.div`
147
147
  margin: ${i.sp0} ${i.sp3} ${i.sp0} ${i.sp0};
148
- max-width: ${e=>R.transactionTitleContainerWidth.valuePx(e.windowSize)};
148
+ max-width: ${e=>P.transactionTitleContainerWidth.valuePx(e.windowSize)};
149
149
  `,at=o($e)`
150
150
  color: ${j.neutralGrey5Light};
151
- margin-top: ${e=>R.transactionLabelMarginTop.valuePx(e.windowSize)};
151
+ margin-top: ${e=>P.transactionLabelMarginTop.valuePx(e.windowSize)};
152
152
  ${e=>`${U.transactionLabel.style(e.windowSize)}`};
153
153
  background-color: ${e=>e.labelColor.toString()};
154
154
  border-radius: ${i.sp1};
@@ -168,7 +168,7 @@ import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye
168
168
  flex-direction: column;
169
169
  background-color: ${e=>e.theme.colors.grey5};
170
170
  box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
171
- padding: ${e=>`${i.sp0} ${R.containerPadding.valuePx(e.windowSize)}`};
171
+ padding: ${e=>`${i.sp0} ${P.containerPadding.valuePx(e.windowSize)}`};
172
172
  `,ht=o.div`
173
173
  display: flex;
174
174
  flex-direction: row;
@@ -177,8 +177,8 @@ import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye
177
177
  flex-wrap: wrap;
178
178
  align-items: flex-start;
179
179
  justify-content: space-between;
180
- margin-top: ${e=>R.containerMarginTop.valuePx(e.windowSize)};
181
- margin-bottom: ${e=>R.containerMarginBottom.valuePx(e.windowSize)};
180
+ margin-top: ${e=>P.containerMarginTop.valuePx(e.windowSize)};
181
+ margin-bottom: ${e=>P.containerMarginBottom.valuePx(e.windowSize)};
182
182
  `,pt=o(O)`
183
183
  color: ${e=>e.theme.colors.hero};
184
184
  height: ${i.sp4};
@@ -203,7 +203,7 @@ import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye
203
203
  width: 100%;
204
204
  height: 1px;
205
205
  background-color: ${e=>e.theme.colors.grey3};
206
- `,wt=({title:e,value:l})=>t.jsxs(gt,{children:[t.jsx(pt,{children:e}),t.jsx(mt,{children:l||me})]}),{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:L},scheduleAccruedDetails:{placeholders:{selectVendor:bt}}},dateFormat:{visual:{MMMDCommaYYYYformat:$t}},common:{strings:{hyphen:me}}}=P.getLocalizedStrings();function Qt({transaction:e,vendorField:l,vendorLoadOptions:s,errors:r,vendorFieldName:p,vendor:n}){const d=A(),c=Z(),[w,f]=C.useState(!1),u=jt(e),m=r?.includes("vendor_deleted"),[x,S]=C.useState(r?.includes("vendor_deleted")),v=l?.defaultOptions.find(y=>y.value===l?.selectedOption);return t.jsxs(ut,{windowSize:d,children:[t.jsxs(ht,{windowSize:d,children:[t.jsxs(ct,{windowSize:d,children:[t.jsx(t.Fragment,{children:m===!0?t.jsx(t.Fragment,{children:x===!0?t.jsx(ie,{text:L.addVendor,handleClick:()=>{S(!1),f(!0)}}):t.jsx(t.Fragment,{children:w===!1?t.jsx(st,{onClick:()=>f(!0),children:v!=null?t.jsx(ue,{windowSize:d,children:t.jsx(le,{itemTextStyle:{...U.transactionTitle.styleObject(d),lineHeight:"unset",color:c.colors.primary,cursor:"default"},text:v.label})}):t.jsx(ie,{text:L.addVendor,handleClick:()=>{S(!1),f(!0)}})}):t.jsx(xe,{autoFocus:!0,menuIsOpen:w,name:p??"",placeholder:bt,valueToId:y=>y,defaultValue:{selectedOption:l?.selectedOption,defaultOptions:l?.defaultOptions??[]},onMenuClose:()=>f(!1),customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"})},style:{width:250},registerOptions:{required:!0,validate:y=>!!y.selectedOption},loadOptions:s})})}):t.jsx(ue,{windowSize:d,children:t.jsx(le,{itemTextStyle:{...U.transactionTitle.styleObject(d),lineHeight:"unset",color:c.colors.primary},text:n.name})})}),t.jsx(at,{windowSize:d,labelColor:fe(e.type,c),children:e.typeName??e.type})]}),t.jsx(dt,{children:t.jsx(ye,{amount:e.amount,integerStyles:I.h6SemiBold.cssObject,decimalStyles:I.standardMedium.cssObject})})]}),t.jsx(yt,{}),t.jsx(ft,{children:u.map((y,k)=>t.jsx(xt,{children:t.jsx(wt,{title:y.title,value:y.value})},k))})]})}function jt(e){const l=[];return l.push({title:L.transactionDate,value:e.date.format($t)}),l.push({title:L.category,value:e.account.accountName}),l.push({title:L.class,value:e.classBase?.className??me}),l.push({title:L.memo,value:e.memo}),l}const he=(e,l)=>`${e}.${l}`,St={webkitLineClamp:new b(2,2,1,1,1)},kt=P.getLocalizedStrings(),{dateFormat:vt,jeSchedules:{scheduleDetails:X}}=kt,Dt=({sectionId:e,rowId:l,isDisabled:s,hideMemoField:r,minMaxValuesForAmount:p,isAmountEditable:n,scheduleJournalEntry:d,localData:c,onJELinkClick:w,onViewLinkedJE:f})=>{const u=A(),m=Z(),[x,S]=C.useState(!1),{formState:{errors:v}}=Q(),y=C.useCallback(()=>{w(l)},[w,l]),k=d?.jeScheduleId!=null&&d.status.code==="unknown",g=n===!1?"disabled":s,a=d?.jeScheduleId!=null&&d.status.code==="posted"&&c.jeLink.transactionDetailID!=null,$=()=>{a&&c.jeLink.transactionDetailID!=null&&f(c.jeLink.transactionDetailID,l)},H=he(e,"amount"),E=ee(v,H);return t.jsxs(zt,{windowSize:u,isRowEditable:n,isClickable:a||n,onClick:$,children:[r?null:t.jsx(T,{windowSize:u,widthSize:F[0].width,children:t.jsx(J,{windowSize:u,isClickable:a||n,title:c.memo,children:c.memo})}),t.jsx(T,{windowSize:u,widthSize:F[1].width,children:t.jsx(J,{windowSize:u,isClickable:a||n,children:c.postingDate.format(vt.visual.MMMDCommaYYYYformat)})}),t.jsx(T,{windowSize:u,widthSize:F[2].width,children:t.jsx(pe,{onClickAway:()=>S(!1),children:t.jsx(J,{windowSize:u,onClick:()=>{(a||n)&&S(!0)},isClickable:a||n,children:t.jsx(Ve,{style:{height:i.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:i.sp3,color:E===!0?j.important:x===!1?m.colors.hero:m.colors.primary},type:"number",autoFocus:!1,focus:x,name:he(e,"amount"),placeholder:X.sequenceSchedule.sequenceData.amountPlaceholder,autoComplete:"new-password",defaultValue:c.amount.amount,returnValueType:"floatValue",allowEmptyFormatting:!0,hoverBgColor:s==null?m.colors.background:m.colors.grey5,bgColor:E===!0?j.importantLight:x===!1?m.colors.grey5:m.colors.background,prefix:c.amount.currencySymbol,decimalScale:2,allowNegative:!0,isNumericString:!1,isFieldError:E,registerOptions:{required:g==null,min:p.min,max:p.max},isDisabled:g,thousandsGroupStyle:"thousand",thousandSeparator:!0})})})}),t.jsx(T,{windowSize:u,widthSize:F[3].width,children:t.jsx(J,{windowSize:u,isClickable:a||n,children:Te("0,0.00",c.runningBalance)})}),t.jsx(T,{windowSize:u,widthSize:F[4].width,children:t.jsx(J,{windowSize:u,isLastItem:!0,isClickable:a||n,children:t.jsxs(At,{children:[t.jsx(Je,{textColor:Mt(c.postingStatus,m),onClick:a||n?$:void 0,text:X.sequenceSchedule.postingStatus[c.postingStatus]}),k?t.jsx(It,{onClick:a?$:y,children:t.jsx(Ct,{jeLink:c.jeLink,isJElinkAllowed:k})}):null]})})})]})};function Ct({jeLink:e,isJElinkAllowed:l}){const[s,r]=C.useState(!1);return e.type==="linked"&&l?t.jsx(t.Fragment,{}):l&&(e.type==="unknown"||e.type==="recommended")?t.jsxs(Ot,{onMouseOver:()=>r(!0),onMouseLeave:()=>r(!1),children:[t.jsx(Ft,{}),s?t.jsxs(Et,{children:[e.type==="recommended"?t.jsx(Vt,{}):null,t.jsx(Lt,{children:X.linkJE.linkJE})]}):null]}):null}const Mt=(e,l)=>{switch(e){case"pending":case"canceled":case"recorded":return new Y(l.colors.grey1);case"posted":return new Y(j.success);case"unknown":return new Y(j.alert)}},zt=o.div`
206
+ `,wt=({title:e,value:l})=>t.jsxs(gt,{children:[t.jsx(pt,{children:e}),t.jsx(mt,{children:l||me})]}),{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:L},scheduleAccruedDetails:{placeholders:{selectVendor:bt}}},dateFormat:{visual:{MMMDCommaYYYYformat:$t}},common:{strings:{hyphen:me}}}=N.getLocalizedStrings();function Qt({transaction:e,vendorField:l,vendorLoadOptions:s,errors:r,vendorFieldName:p,vendor:n}){const d=F(),c=X(),[w,f]=C.useState(!1),u=jt(e),m=r?.includes("vendor_deleted"),[x,S]=C.useState(r?.includes("vendor_deleted")),v=l?.defaultOptions.find(y=>y.value===l?.selectedOption);return t.jsxs(ut,{windowSize:d,children:[t.jsxs(ht,{windowSize:d,children:[t.jsxs(ct,{windowSize:d,children:[t.jsx(t.Fragment,{children:m===!0?t.jsx(t.Fragment,{children:x===!0?t.jsx(ie,{text:L.addVendor,handleClick:()=>{S(!1),f(!0)}}):t.jsx(t.Fragment,{children:w===!1?t.jsx(st,{onClick:()=>f(!0),children:v!=null?t.jsx(ue,{windowSize:d,children:t.jsx(le,{itemTextStyle:{...U.transactionTitle.styleObject(d),lineHeight:"unset",color:c.colors.primary,cursor:"default"},text:v.label})}):t.jsx(ie,{text:L.addVendor,handleClick:()=>{S(!1),f(!0)}})}):t.jsx(xe,{autoFocus:!0,menuIsOpen:w,name:p??"",placeholder:bt,valueToId:y=>y,defaultValue:{selectedOption:l?.selectedOption,defaultOptions:l?.defaultOptions??[]},onMenuClose:()=>f(!1),customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"})},style:{width:250},registerOptions:{required:!0,validate:y=>!!y.selectedOption},loadOptions:s})})}):t.jsx(ue,{windowSize:d,children:t.jsx(le,{itemTextStyle:{...U.transactionTitle.styleObject(d),lineHeight:"unset",color:c.colors.primary},text:n.name})})}),t.jsx(at,{windowSize:d,labelColor:fe(e.type,c),children:e.typeName??e.type})]}),t.jsx(dt,{children:t.jsx(ye,{amount:e.amount,integerStyles:I.h6SemiBold.cssObject,decimalStyles:I.standardMedium.cssObject})})]}),t.jsx(yt,{}),t.jsx(ft,{children:u.map((y,k)=>t.jsx(xt,{children:t.jsx(wt,{title:y.title,value:y.value})},k))})]})}function jt(e){const l=[];return l.push({title:L.transactionDate,value:e.date.format($t)}),l.push({title:L.category,value:e.account.accountName}),l.push({title:L.class,value:e.classBase?.className??me}),l.push({title:L.memo,value:e.memo}),l}const he=(e,l)=>`${e}.${l}`,St={webkitLineClamp:new b(2,2,1,1,1)},kt=N.getLocalizedStrings(),{dateFormat:vt,jeSchedules:{scheduleDetails:Z}}=kt,Dt=({sectionId:e,rowId:l,isDisabled:s,hideMemoField:r,minMaxValuesForAmount:p,isAmountEditable:n,scheduleJournalEntry:d,localData:c,onJELinkClick:w,onViewLinkedJE:f})=>{const u=F(),m=X(),[x,S]=C.useState(!1),{formState:{errors:v}}=Q(),y=C.useCallback(()=>{w(l)},[w,l]),k=d?.jeScheduleId!=null&&d.status.code==="unknown",g=n===!1?"disabled":s,a=d?.jeScheduleId!=null&&d.status.code==="posted"&&c.jeLink.transactionDetailID!=null,$=()=>{a&&c.jeLink.transactionDetailID!=null&&f(c.jeLink.transactionDetailID,l)},Y=he(e,"amount"),E=ee(v,Y);return t.jsxs(zt,{windowSize:u,isRowEditable:n,isClickable:a||n,onClick:$,children:[r?null:t.jsx(V,{windowSize:u,widthSize:A[0].width,children:t.jsx(J,{windowSize:u,isClickable:a||n,title:c.memo,children:c.memo})}),t.jsx(V,{windowSize:u,widthSize:A[1].width,children:t.jsx(J,{windowSize:u,isClickable:a||n,children:c.postingDate.format(vt.visual.MMMDCommaYYYYformat)})}),t.jsx(V,{windowSize:u,widthSize:A[2].width,children:t.jsx(pe,{onClickAway:()=>S(!1),children:t.jsx(J,{windowSize:u,onClick:()=>{(a||n)&&S(!0)},isClickable:a||n,children:t.jsx(Te,{style:{height:i.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:i.sp3,color:E===!0?j.important:x===!1?m.colors.hero:m.colors.primary},type:"number",autoFocus:!1,focus:x,name:he(e,"amount"),placeholder:Z.sequenceSchedule.sequenceData.amountPlaceholder,autoComplete:"new-password",defaultValue:c.amount.amount,returnValueType:"floatValue",allowEmptyFormatting:!0,hoverBgColor:s==null?m.colors.background:m.colors.grey5,bgColor:E===!0?j.importantLight:x===!1?m.colors.grey5:m.colors.background,prefix:c.amount.currencySymbol,decimalScale:2,allowNegative:!0,isNumericString:!1,isFieldError:E,registerOptions:{required:g==null,min:p.min,max:p.max},isDisabled:g,thousandsGroupStyle:"thousand",thousandSeparator:!0})})})}),t.jsx(V,{windowSize:u,widthSize:A[3].width,children:t.jsx(J,{windowSize:u,isClickable:a||n,children:Ve("0,0.00",c.runningBalance)})}),t.jsx(V,{windowSize:u,widthSize:A[4].width,children:t.jsx(J,{windowSize:u,isLastItem:!0,isClickable:a||n,children:t.jsxs(Ft,{children:[t.jsx(Je,{textColor:Mt(c.postingStatus,m),onClick:a||n?$:void 0,text:Z.sequenceSchedule.postingStatus[c.postingStatus]}),k?t.jsx(It,{onClick:a?$:y,children:t.jsx(Ct,{jeLink:c.jeLink,isJElinkAllowed:k})}):null]})})})]})};function Ct({jeLink:e,isJElinkAllowed:l}){const[s,r]=C.useState(!1);return e.type==="linked"&&l?t.jsx(t.Fragment,{}):l&&(e.type==="unknown"||e.type==="recommended")?t.jsxs(Ot,{onMouseOver:()=>r(!0),onMouseLeave:()=>r(!1),children:[t.jsx(At,{}),s?t.jsxs(Et,{children:[e.type==="recommended"?t.jsx(Tt,{}):null,t.jsx(Lt,{children:Z.linkJE.linkJE})]}):null]}):null}const Mt=(e,l)=>{switch(e){case"pending":case"canceled":case"recorded":return new q(l.colors.grey1);case"posted":return new q(j.success);case"unknown":return new q(j.alert)}},zt=o.div`
207
207
  display: flex;
208
208
  height: ${K}px;
209
209
  justify-content: space-between;
@@ -230,7 +230,7 @@ import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye
230
230
  align-items: center;
231
231
 
232
232
  cursor: ${e=>e.isClickable===!0?"pointer":"default"};
233
- `,T=o.div`
233
+ `,V=o.div`
234
234
  display: flex;
235
235
  align-items: center;
236
236
  width: ${e=>e.widthSize.valuePx(e.windowSize)};
@@ -251,14 +251,14 @@ import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye
251
251
  display: flex;
252
252
  align-items: center;
253
253
  gap: ${i.sp1};
254
- `,Lt=o(O)``,It=o.div``,At=o.div`
254
+ `,Lt=o(O)``,It=o.div``,Ft=o.div`
255
255
  display: flex;
256
256
  gap: ${i.sp3};
257
257
  align-items: center;
258
- `,Ft=o(Be)`
258
+ `,At=o(Be)`
259
259
  width: ${i.sp3};
260
260
  height: ${i.sp3};
261
- `,Vt=o(Re)`
261
+ `,Tt=o(Pe)`
262
262
  width: ${i.sp3};
263
263
  height: ${i.sp3};
264
264
  `,J=o(O)`
@@ -277,16 +277,16 @@ import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye
277
277
  display: ${e=>e.isLastItem===!0?"flex":"inline-block"};
278
278
  margin-right: ${e=>e.isLastItem===!0?0:i.sp4};
279
279
  padding-right: ${i.sp0};
280
- `,ge={scheduleDetailsWrapperContainerMarginTop:new b(h[3],h[3]),paddingRight:new b(h[4],0)},ei=({sectionId:e,totalAmount:l,isDisabled:s,hideMemoField:r,listFetchState:p,scheduleJournalEntries:n,localData:d,uiState:c,onEditAmount:w,onJELinkClick:f,onViewLinkedJE:u,jeScheduleId:m})=>{const x=A(),S=p==="Not-Started"||p==="In-Progress"&&n.length===0,v=p==="Completed"&&d.length===0,y=P.getLocalizedStrings().jeSchedules.scheduleDetails.sequenceSchedule;return t.jsxs(_t,{windowSize:x,children:[t.jsx(Ht,{windowSize:x,children:y.header}),S?t.jsx(we,{}):v?t.jsx(qt,{windowSize:x,children:t.jsx(be,{text:y.notCreated})}):t.jsx(Pt,{children:t.jsx(Tt,{isDisabled:s,sectionId:e,hideMemoField:r,totalAmount:l,uiState:c,scheduleJournalEntries:n,localData:d,onEditAmount:w,onJELinkClick:f,onViewLinkedJE:u,jeScheduleId:m})})]})},Tt=({sectionId:e,totalAmount:l,isDisabled:s,hideMemoField:r,scheduleJournalEntries:p,localData:n,uiState:d,jeScheduleId:c,onEditAmount:w,onJELinkClick:f,onViewLinkedJE:u})=>{const m=C.useRef(null),x=A(),S=g=>K,v=n.length*K+De;C.useEffect(()=>{m.current?.resetAfterIndex(0)},[p]);const y=(g,a,$)=>{if(g===a.length-1)return!1;if($?.jeScheduleId==null)return!0;const H=G(),E=G().startOf("month"),te=G().endOf("month");if(a[g].postingDate!=null){if(a[g].postingDate.month()===H.month()&&a[g].postingDate.isBetween(E,te)===!0)return(a[g].postingStatus==="pending"||a[g].postingStatus==="canceled")&&n[g].runningBalance.amount!==0;if(a[g].postingDate.isBefore(E)===!0)return!1;if(a[g].postingDate.isAfter(te)===!0&&g!==0&&n[g-1].postingStatus==="posted"&&n[g-1].runningBalance.amount!==0)return!0}return!1},k=g=>{const a=l<0;if(g===0)return{min:a?l:0,max:a?0:l};{const $=n[g-1].runningBalance.amount;return{min:a?$:0,max:a?0:$}}};return t.jsx(Bt,{windowSize:x,containerHeight:v,children:t.jsx(Ce,{children:({height:g,width:a})=>t.jsxs(Wt,{style:{height:g,width:a},children:[t.jsx(Rt,{children:t.jsx(Me,{hideMemo:r})}),t.jsx(ze,{height:g,itemCount:n.length,itemSize:S,itemData:{sectionId:e,scheduleJournalEntries:p,localData:n,onEditAmount:w,onJELinkClick:f,uiState:d,windowSize:x,isDisabled:s,isAmountEditable:y,hideMemoField:r,getMinMaxValuesForAmount:k,onViewLinkedJE:u,jeScheduleId:c},width:a,ref:m,overscanCount:Oe,initialScrollOffset:0,children:Jt})]})})})},Jt=({index:e,data:l})=>{const{sectionId:s,scheduleJournalEntries:r,localData:p,onJELinkClick:n,windowSize:d,isDisabled:c,hideMemoField:w,isAmountEditable:f,getMinMaxValuesForAmount:u,onViewLinkedJE:m,jeScheduleId:x}=l;return t.jsx(Nt,{windowSize:d,children:t.jsx(Dt,{rowId:e,isDisabled:c,isAmountEditable:f(e,p,r[e]),hideMemoField:w,minMaxValuesForAmount:u(e),sectionId:`${s}.${e}`,scheduleJournalEntry:r[e],localData:p[e],onJELinkClick:n,onViewLinkedJE:m})},x+e)},Bt=o.div`
280
+ `,ge={scheduleDetailsWrapperContainerMarginTop:new b(h[3],h[3]),paddingRight:new b(h[4],0)},ei=({sectionId:e,totalAmount:l,isDisabled:s,hideMemoField:r,listFetchState:p,scheduleJournalEntries:n,localData:d,uiState:c,onEditAmount:w,onJELinkClick:f,onViewLinkedJE:u,jeScheduleId:m})=>{const x=F(),S=p==="Not-Started"||p==="In-Progress"&&n.length===0,v=p==="Completed"&&d.length===0,y=N.getLocalizedStrings().jeSchedules.scheduleDetails.sequenceSchedule;return t.jsxs(_t,{windowSize:x,children:[t.jsx(Yt,{windowSize:x,children:y.header}),S?t.jsx(we,{}):v?t.jsx(Ht,{windowSize:x,children:t.jsx(be,{text:y.notCreated})}):t.jsx(Nt,{children:t.jsx(Vt,{isDisabled:s,sectionId:e,hideMemoField:r,totalAmount:l,uiState:c,scheduleJournalEntries:n,localData:d,onEditAmount:w,onJELinkClick:f,onViewLinkedJE:u,jeScheduleId:m})})]})},Vt=({sectionId:e,totalAmount:l,isDisabled:s,hideMemoField:r,scheduleJournalEntries:p,localData:n,uiState:d,jeScheduleId:c,onEditAmount:w,onJELinkClick:f,onViewLinkedJE:u})=>{const m=C.useRef(null),x=F(),S=g=>K,v=n.length*K+De;C.useEffect(()=>{m.current?.resetAfterIndex(0)},[p]);const y=(g,a,$)=>{if(g===a.length-1)return!1;if($?.jeScheduleId==null)return!0;const Y=G(),E=G().startOf("month"),te=G().endOf("month");if(a[g].postingDate!=null){if(a[g].postingDate.month()===Y.month()&&a[g].postingDate.isBetween(E,te)===!0)return(a[g].postingStatus==="pending"||a[g].postingStatus==="canceled")&&n[g].runningBalance.amount!==0;if(a[g].postingDate.isBefore(E)===!0)return!1;if(a[g].postingDate.isAfter(te)===!0&&g!==0&&n[g-1].postingStatus==="posted"&&n[g-1].runningBalance.amount!==0)return!0}return!1},k=g=>{const a=l<0;if(g===0)return{min:a?l:0,max:a?0:l};{const $=n[g-1].runningBalance.amount;return{min:a?$:0,max:a?0:$}}};return t.jsx(Bt,{windowSize:x,containerHeight:v,children:t.jsx(Ce,{children:({height:g,width:a})=>t.jsxs(Wt,{style:{height:g,width:a},children:[t.jsx(Pt,{children:t.jsx(Me,{hideMemo:r})}),t.jsx(ze,{height:g,itemCount:n.length,itemSize:S,itemData:{sectionId:e,scheduleJournalEntries:p,localData:n,onEditAmount:w,onJELinkClick:f,uiState:d,windowSize:x,isDisabled:s,isAmountEditable:y,hideMemoField:r,getMinMaxValuesForAmount:k,onViewLinkedJE:u,jeScheduleId:c},width:a,ref:m,overscanCount:Oe,initialScrollOffset:0,children:Jt})]})})})},Jt=({index:e,data:l})=>{const{sectionId:s,scheduleJournalEntries:r,localData:p,onJELinkClick:n,windowSize:d,isDisabled:c,hideMemoField:w,isAmountEditable:f,getMinMaxValuesForAmount:u,onViewLinkedJE:m,jeScheduleId:x}=l;return t.jsx(Rt,{windowSize:d,children:t.jsx(Dt,{rowId:e,isDisabled:c,isAmountEditable:f(e,p,r[e]),hideMemoField:w,minMaxValuesForAmount:u(e),sectionId:`${s}.${e}`,scheduleJournalEntry:r[e],localData:p[e],onJELinkClick:n,onViewLinkedJE:m})},x+e)},Bt=o.div`
281
281
  height: ${e=>e.containerHeight}px;
282
282
  width: 100%;
283
283
  margin-right: ${i.sp8};
284
- `,Rt=o.div`
285
- width: auto;
286
284
  `,Pt=o.div`
285
+ width: auto;
286
+ `,Nt=o.div`
287
287
  display: flex;
288
288
  flex-direction: column;
289
- `,Nt=o.div`
289
+ `,Rt=o.div`
290
290
  top: ${i.sp0};
291
291
  left: ${i.sp0};
292
292
  padding-bottom: ${i.sp3};
@@ -311,14 +311,14 @@ import{J as A,d as Z,V as t,iB as ie,iC as le,O as oe,iD as xe,dS as fe,fj as ye
311
311
  margin-bottom: ${i.sp8};
312
312
  padding: ${i.sp0} ${i.sp4} ${i.sp4} ${i.sp4};
313
313
  background-color: ${e=>e.theme.colors.grey5};
314
- `,qt=o.div`
314
+ `,Ht=o.div`
315
315
  display: flex;
316
316
  height: 100%;
317
317
  flex-direction: column;
318
318
  width: 100%;
319
319
  margin-top: ${e=>ge.scheduleDetailsWrapperContainerMarginTop.valuePx(e.windowSize)};
320
- `,Ht=o.div`
320
+ `,Yt=o.div`
321
321
  color: ${e=>e.theme.colors.hero};
322
322
  margin: ${i.sp3} ${i.sp0};
323
323
  ${I.standardRegular.css};
324
- `;export{Qt as i,Zt as n,Xt as o,ei as r};
324
+ `;export{Qt as i,Xt as n,Zt as o,ei as r};
@@ -1,4 +1,4 @@
1
- import{DY as Xf,DZ as Lt,D_ as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,D$ as Pa,hB as th,hC as rh,E0 as Gt,E1 as kt,h0 as nh,E2 as xr,E3 as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E4 as kl,E5 as Nl,hQ as ah,hN as sh,E6 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E7 as hh,dJ as dh,cU as ph,i$ as Dl,E8 as mh,bL as Tr,hF as xa,hK as gh,oL as Ml,iO as qr,E9 as Ne,ib as na,Ea as yh,j5 as vh,B as Re,Eb as ia,Ec as bh,gZ as wh,Ed as Eh,Ee as Fl,Ef as Sh,nj as qa,mQ as _h,Eg as Rh,mW as Zr,Eh as Oh,mY as Th,Ei as Ze,mN as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,Ej as Ph,nm as jh,Ek as xh,n3 as qh,ng as Lh,El as kh,n7 as Nh,Em as Dh,En as _t,Eo as sa,Ep as Mh,Eq as Fh,lQ as Uh,lW as $l,Er as Vl,gu as Bh,D2 as Gl,Es as $h,CY as Vh,Et as Gh,Eu as zh,lZ as Hh,Ev as Zh,D7 as Wh,CX as Yh,qg as zl,Ew as Wr,Ex as Hl,A6 as ua,zU as Jh,A9 as Zl,zX as Kh,Ey as Xh,A0 as Qh,zO as ed,zR as td,Ez as rd,Ad as nd,A3 as id,c4 as od,bd as ad,EA as sd,EB as ft,EC as ud,ED as cd,EE as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-DJX8u9R8.js";import{j as N}from"./liveblocks-CUDrE-0X.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-9b1mvxJ5.js";import{I as dd,d as dt,J as Lr,e as pe,z as be,f as pd,W as md,y as Pe,g as kr,i as gd,E as Je,F as Nt,j as pt,k as at,T as Nr,o as tt,X as yd,m as vd,n as nt,q as ca,P as it,Z as bd,s as wd,u as Yr,t as Ed,v as Jl,w as Sd,A as Kl,U as Xl,C as Xo,D as _d,N as Rd,H as Od,G as Ql,K as Td,L as Id,M as Ad,Q as Cd,S 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-BsnL7ZTX.js";import{f as Fd}from"./analyticsHelper-nIT7pIRZ.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-Be77t6wT.js";import{D as Dr,n as Te,S as mt}from"./mui-DsjrNjDe.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-VcZ1Xqjg.js";import{r as ha}from"./empty-DqMX1iak.js";import{r as Yd,a as Jd,b as Kd,c as Xd}from"./constants-nz8RVtEp.js";import{r as Mt,a as Qd}from"./index-Q1D5afUf.js";import{r as ep}from"./index-CHDWslZ9.js";import"./recharts-CmZa-egc.js";import"./lottie-C5G-hUN3.js";import"./analytics-DH2FWXQR.js";import"./lexical-4qH-Yr6_.js";import"./url-RTB-DW5V.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]="61f4a1e5-04d0-49af-919f-10d9440b94f0",e._sentryDebugIdIdentifier="sentry-dbid-61f4a1e5-04d0-49af-919f-10d9440b94f0")}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{DY as Xf,DZ as Lt,D_ as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,D$ as Pa,hB as th,hC as rh,E0 as Gt,E1 as kt,h0 as nh,E2 as xr,E3 as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E4 as kl,E5 as Nl,hQ as ah,hN as sh,E6 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E7 as hh,dJ as dh,cU as ph,i$ as Dl,E8 as mh,bL as Tr,hF as xa,hK as gh,oL as Ml,iO as qr,E9 as Ne,ib as na,Ea as yh,j5 as vh,B as Re,Eb as ia,Ec as bh,gZ as wh,Ed as Eh,Ee as Fl,Ef as Sh,nj as qa,mQ as _h,Eg as Rh,mW as Zr,Eh as Oh,mY as Th,Ei as Ze,mN as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,Ej as Ph,nm as jh,Ek as xh,n3 as qh,ng as Lh,El as kh,n7 as Nh,Em as Dh,En as _t,Eo as sa,Ep as Mh,Eq as Fh,lQ as Uh,lW as $l,Er as Vl,gu as Bh,D2 as Gl,Es as $h,CY as Vh,Et as Gh,Eu as zh,lZ as Hh,Ev as Zh,D7 as Wh,CX as Yh,qg as zl,Ew as Wr,Ex as Hl,A6 as ua,zU as Jh,A9 as Zl,zX as Kh,Ey as Xh,A0 as Qh,zO as ed,zR as td,Ez as rd,Ad as nd,A3 as id,c4 as od,bd as ad,EA as sd,EB as ft,EC as ud,ED as cd,EE as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-DD2IEaUq.js";import{j as N}from"./liveblocks-gc1Zpgue.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-Dozbf0xW.js";import{D as dd,e as dt,J as Lr,f as pe,z as be,O as pd,W as md,y as Pe,g as kr,j as gd,E as Je,F as Nt,k as pt,m as at,T as Nr,o as tt,X as yd,n as vd,I as nt,r as ca,P as it,Z as bd,Y as wd,u as Yr,G as Ed,s as Jl,t as Sd,v as Kl,w as Xl,x as Xo,A as _d,C as Rd,H as Od,K as Ql,L as Td,M as Id,Q as Ad,S 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-BJwUmr6X.js";import{f as Fd}from"./analyticsHelper-CeSpIREf.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-BCC1NfcO.js";import{D as Dr,n as Te,S as mt}from"./mui-BPiKl8lE.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-CJtHQQTa.js";import{r as ha}from"./empty-BjP_AR0Y.js";import{r as Yd,a as Jd,b as Kd,c as Xd}from"./constants-CZu969tQ.js";import{r as Mt,a as Qd}from"./index-oIMKLk8g.js";import{r as ep}from"./index-Dc-8bDa8.js";import"./recharts-CTVVh_-r.js";import"./lottie-PDiRMFOU.js";import"./analytics-BVR-nkdQ.js";import"./lexical-D1A0yBcv.js";import"./url-AR2JoXnJ.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]="b43bc635-192e-4642-8dd1-ae0cf0f8410e",e._sentryDebugIdIdentifier="sentry-dbid-b43bc635-192e-4642-8dd1-ae0cf0f8410e")}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%;