@zeniai/web-cockpit-ui 1.15.30-qa → 1.15.31-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 (320) hide show
  1. package/dist/assets/ACHDetailsPage-CxpLuJpQ-JKcW_L_F.js +21 -0
  2. package/dist/assets/{AIPerformancePage-DncCC-Dz-BOvGHscI.js → AIPerformancePage-BtDuOBey-R_FrOwFb.js} +104 -104
  3. package/dist/assets/AccountInfoPage-DkpBGfrR-CwURNe8d.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-D-dwMWkI-D88W2OaR.js → AccountInfoPageContent-BLF92_vF-BcSKCd1r.js} +18 -18
  5. package/dist/assets/AccountLockedInfoModal-AsMkXu1I-DpSC039N.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BL7C23h8-DzmiVaut.js → AccountReconDetailsDrawerPage-CkaBrm5K-DMOtTL8X.js} +12 -12
  7. package/dist/assets/AccountRow-aEmcYP8T-BckNDPBQ.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-BqyCa3EH-BhL0cBgw.js → AccountsPromoCardStack-C0At5pn8-DZihjHYv.js} +26 -26
  9. package/dist/assets/AddAddressForCardDrawer-CbjThbsA-Djr5aTMV.js +6 -0
  10. package/dist/assets/{AddToWalletPage-tRVFR3Rw-C5ubbZea.js → AddToWalletPage-CMJwUbgf-rFPYYVSy.js} +47 -47
  11. package/dist/assets/{AgingReportsPage-BO9qovKL-CdlQDQIv.js → AgingReportsPage-B_BSfude-DWyamJwj.js} +15 -15
  12. package/dist/assets/{AllUserItems-C5uzbqu0-Dz7hSnjr.js → AllUserItems-CGlWa60t-EoZjozXY.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-Dw4d844_-BkAKurnC.js → ApAgingDetailPage-DT3vkmLG-BsDDXbrZ.js} +4 -4
  14. package/dist/assets/AppBasePage-CDy7wPlv-CsB4iu-c.js +71 -0
  15. package/dist/assets/{AppDrawerContent-C5KqoZ6_-D_png9qE.js → AppDrawerContent-CEsXm_i6-DCe9idAB.js} +4 -4
  16. package/dist/assets/{ApprovalRulesSettingsPage-nEW4hufu-BCL2xSkm.js → ApprovalRulesSettingsPage-CB2_4-2f-JTvT_FnG.js} +6 -6
  17. package/dist/assets/{ArAgingChart-2eGhMrCs-EqBo0h4i.js → ArAgingChart-qxhWsIQb-D_1Ue9xU.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CE_nDD48-BIHfiXjf.js → ArAgingDetailPage-BbzQryp_-Babiy5ST.js} +4 -4
  19. package/dist/assets/{AttachmentView-DdX3DEyN-Bw2PxRrG.js → AttachmentView-duTVxc9g-BoSNnqkS.js} +4 -4
  20. package/dist/assets/{BankAccountSection-Db8KCDjh-iTFbb6-_.js → BankAccountSection-CAwAf9xK-BTGyBjUJ.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-DLKyK-pN-Cdd5qBMX.js → BankAccountWarningSection-CaDnP9_--BOTeyp6n.js} +11 -11
  22. package/dist/assets/{BankConnectionsSettingsPage-BcMQdf1D-DfqGvpXs.js → BankConnectionsSettingsPage-CDV7O8cl-CQv6ub4_.js} +10 -10
  23. package/dist/assets/{BillDetailPage-BOoE3r9n-BIPuOuQe.js → BillDetailPage-DJxh2CIc-BeHpC_ZG.js} +13 -13
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-C-M8i0tF-B9YYzCOC.js → BillPayApprovalRuleDetailPage-B2ZPbqtr-CXCcZzHB.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-cqq9M7pi-BVbvcx0Z.js → BillPayApprovalRulesPage-MM7v8ZMx-B1_OO9dS.js} +15 -15
  26. package/dist/assets/{BillPayPromoPage-CHu-sh9I-B_sxrL9M.js → BillPayPromoPage-JK-VOx4W-BEeCN8sy.js} +8 -8
  27. package/dist/assets/{BillPaySetUpPage-ICbZgQZR-CfoTEl08.js → BillPaySetUpPage-h0uoCWMl-D8aqE5Rg.js} +2 -2
  28. package/dist/assets/BillingSettingsPage-gJG9OxD6-Cdnv1hFG.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-Cr-JmUCA-Ccv-NbDw.js → BillsBulkReviewDrawerPage-CPPDFsZt-C0sV8yKV.js} +1 -1
  30. package/dist/assets/{BoxItem-ChtGcSH1-MoZYQOAh.js → BoxItem-CYe_gTmA-rmtQXiBP.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-Dos8Bnvb-EV3QIoHL.js +138 -0
  32. package/dist/assets/{CardNumberSubText-Dxhe-tx2-TLAx16j3.js → CardNumberSubText-CFDhtij8-BmUW8oI1.js} +3 -3
  33. package/dist/assets/{CashbackDetailPage-BTR9tfZP-Jo7Dpa8J.js → CashbackDetailPage-BBGGzKh7-Bts6uMDO.js} +13 -13
  34. package/dist/assets/{ChargeCardDetailPage-D_dF0Nv_-C7o20zm-.js → ChargeCardDetailPage-BQhago53-D_FFt-oF.js} +18 -18
  35. package/dist/assets/{ChargeCardListPage-wA3_NOPD-DOl_739p.js → ChargeCardListPage-B0E-C3RH-CrU64eoy.js} +23 -23
  36. package/dist/assets/{ChargeCardListTable-8Bgd9bzh-HEXHQyum.js → ChargeCardListTable-ByGv0xWl-rSJFMbd2.js} +46 -46
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-mcW9jr2k-BjrB9BAc.js → ChargeCardPaymentHistoryPage-LCY9rFqO-CkY1nhYn.js} +12 -12
  38. package/dist/assets/ChargeCardPromoPage-CKEnOseD-DuGq7XTO.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-BxAJ2HVU-BX-4Vim4.js → ChargeCardSetupPage-BHv2VOdc-Bv0dAghh.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-CZzDSv5y-BXWMC8ei.js → ChargeCardStatementsPage-UpRXyPTS-DcNMglcu.js} +5 -5
  41. package/dist/assets/{CheckDepositDrawerPage-iPcp79Wu-CA2AafB8.js → CheckDepositDrawerPage-0zbTQ3Fa-Edy7R6vj.js} +21 -21
  42. package/dist/assets/{CollapsableReportTable-Ck29YUyD-pECWNLmO.js → CollapsableReportTable-DlYIKSlQ-COjE28P7.js} +93 -93
  43. package/dist/assets/CompanyOfficerDetailsSection-Ck0xqZ0d-C5sOytCr.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-CCfVNfP0-CrPt14U3.js → CompanyPassportCard-DeVPuuje-B4Kq9zLA.js} +3 -3
  45. package/dist/assets/CompanyPassportPage-F_GUET9a-DWgtD9ML.js +574 -0
  46. package/dist/assets/{CompleteProfile-C0Qk6P6p-C3tZC3ME.js → CompleteProfile-Y6HwKtpz-CsUQDLc6.js} +2 -2
  47. package/dist/assets/ConfettiBurst-BGE3Okwr-B_KCfg_0.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-fIa3khF_.js → ConstrainedInnerElement-BeIpAPjB-Dx2Q69aJ.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-CmnpkgTu-DFILJK0S.js → CreateOrEditVendorPage-BlZe6gmh-DxGvfsZR.js} +16 -16
  50. package/dist/assets/{CreditCardPaymentDrawerPage-wPiHCF7z-DO8qxsK-.js → CreditCardPaymentDrawerPage-flPmyCaF-D3mVRIQk.js} +11 -11
  51. package/dist/assets/{CurrencySelectField-CxIflyKX-BkVKHW7P.js → CurrencySelectField-RiKAivD8-Dz6NASLd.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-CE5B6BET-BSoJNJvi.js → CustomerOnboardingActivationPage-B7dLMk4g-D_eaYsMZ.js} +5 -5
  53. package/dist/assets/CustomerOnboardingContainerPage-BHPDhC3d-BBqvBSFY.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton--jL1SUOo-CBYeHto3.js → CustomerOnboardingDetailPageSkeleton-AWsst0XH-Df3wynLD.js} +14 -14
  55. package/dist/assets/CustomerOnboardingNoStepsPage-Bqid4-rH-CmXil69t.js +66 -0
  56. package/dist/assets/CustomerOnboardingPage-B5LrMzZS-Bw_YjaWD.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-IUm6QKOQ-7Xb_cC54.js → CustomerOnboardingProductSuitePage-DqgoBLWp-D2XUuLJm.js} +6 -6
  58. package/dist/assets/{Dashboard-CeBbTIiJ-CjYF6swU.js → Dashboard-D0KlujCx-D0HvooTT.js} +66 -66
  59. package/dist/assets/{DashboardReportPage-DVIwO5-L-Jzf6CQjM.js → DashboardReportPage-bxKyMsG7-Bb1y4PVD.js} +13 -13
  60. package/dist/assets/DashboardSidebarBackgroundAnimation-Ch0OiH1g-CbEVCb1f.js +12 -0
  61. package/dist/assets/{DepositAccTransactionItem-B7ErTe-9-IiBwcqn_.js → DepositAccTransactionItem-BdZVCAx--BEQtPnX0.js} +6 -6
  62. package/dist/assets/{DepositAccTransactionListPage-Czm5uOxb-CsvUWB2Z.js → DepositAccTransactionListPage-LU0QMdSV-Bfh4B_mk.js} +6 -6
  63. package/dist/assets/{DomesticWireDetailsPage-B3Cib987-Bpr9YIbH.js → DomesticWireDetailsPage-CFt5GgZ1-Co98r5Ek.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-CS_4lZDV-Bj-tFxKl.js → DownloadOverlay-CH_bA3On-bfSkm5Nl.js} +11 -11
  65. package/dist/assets/{DrawerPage-CrCkJ_bE-4OdrvmR8.js → DrawerPage-Cpdp-IFb-BRc12KLa.js} +14 -14
  66. package/dist/assets/EditPeoplePage-BYnuNojX-B1GcGpQ9.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-DisSqLai-DgqcVW3v.js → EditReimbursementDetailPage-DnyyPZ26-CeObB7v0.js} +67 -67
  68. package/dist/assets/EntityDetailPage-DSfZZ1JW-Dd0uW0uD.js +18 -0
  69. package/dist/assets/{EntitySummarySection-CmVlq7pY-ClR4v434.js → EntitySummarySection-BFpgAYAM-D1hJybsA.js} +8 -8
  70. package/dist/assets/{ExpenseAutomationOverviewPage-DuWbC5EZ-MQAQvJgp.js → ExpenseAutomationOverviewPage-YjOVm_Bw-p-cnIw4N.js} +56 -56
  71. package/dist/assets/ExpenseAutomationPage-DlhH-R-e-C1M6QNQ4.js +1700 -0
  72. package/dist/assets/{ExpressPayPage-DZHOM942-C3TqtMLa.js → ExpressPayPage-CKqPEfbR-CGYA64IG.js} +14 -14
  73. package/dist/assets/{FeaturePreviewPage-DHomR4Oi-BUxEkmDY.js → FeaturePreviewPage-Cs1Y3nP0-IoYZsFaa.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-C8Zv_X5E-CbGu5Ubj.js → FollowStepsSection-BCyL8Jdr-B2UM5UTK.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-BFR_WZdE-DGzcSSRg.js → GlobalReviewListPage-CBQFcVHd-Cv9-dFGG.js} +16 -16
  76. package/dist/assets/{InformationCardStack-C39QsHiY-BFHNROWc.js → InformationCardStack-nFMetrAy-CQVo7xoK.js} +6 -6
  77. package/dist/assets/{InsightsCardStack-Bi2tusdE-tu5bOLaK.js → InsightsCardStack-CEMeGJXy-CBEUbPAA.js} +7 -7
  78. package/dist/assets/InsightsSection-BYiN2xB7-DRSyBaKY.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-Bj9lE3dy-BoquOG18.js → IntegrationsSettingsPage-BQ7g3a3K-BolFhxmH.js} +3 -3
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-HPxS_eP2-CXu6WZDB.js → InternationalWireSwiftDetailsPage-BHRYsZgm-D9-8cqjd.js} +20 -20
  81. package/dist/assets/InternationalWireVerificationPage-tJbVtzQP-CBXNZ9Tt.js +292 -0
  82. package/dist/assets/{InviteFormPage-DyUgmNt6-DbKce1qR.js → InviteFormPage-BVXte8w8-LmKOVXja.js} +23 -23
  83. package/dist/assets/{InvitePageListView-PbTTJA74-Bz3RohnK.js → InvitePageListView-DFPyLLrA-8Qu-82aZ.js} +55 -55
  84. package/dist/assets/InvitePeoplePage-B-uxjkke-hqYTwKtm.js +12 -0
  85. package/dist/assets/InvoiceUploadSection-B9q7nIs0-DaXZuZIR.js +140 -0
  86. package/dist/assets/{IssueChargeCardPage-WeFAdE9k-BwCdMfjt.js → IssueChargeCardPage-BuLj1bOl-CrhI2RvS.js} +19 -19
  87. package/dist/assets/{LabeledAddressValue-BEiVNwJh-B1AetA9A.js → LabeledAddressValue-D2t8ti-C-DZj4ysSt.js} +2 -2
  88. package/dist/assets/LabeledAddressValueField-DMcor_I8-1VjKhx0I.js +45 -0
  89. package/dist/assets/LabeledControlledCheckBoxField-B6w2HGJK-UqsSfRFN.js +16 -0
  90. package/dist/assets/{LabeledCreatableSingleSelectField-B-KMzhH--DUvTQCE0.js → LabeledCreatableSingleSelectField-DHNAX5Pu-BPCw1so2.js} +13 -17
  91. package/dist/assets/LabeledDocumentField-Bx1u7vv_-CXDoMBrK.js +41 -0
  92. package/dist/assets/LabeledDropDownFormattedTextField-BBS4da2b-DZkQmKIJ.js +59 -0
  93. package/dist/assets/{LabeledText-B1BxC4mo-Cud6m7nr.js → LabeledText-zjKn4Cw--KApo6LBw.js} +5 -5
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D0OTplnZ-DV_bhuhP.js → LabeledUserSingleSelectWithSubtitlesField-CIofqRT6-DSUwJJwR.js} +18 -18
  95. package/dist/assets/{LabeledZeniRolesDropDownField-DruyoV6I-DsPwqNC4.js → LabeledZeniRolesDropDownField-DiBtAWQ3-CBaCEhEP.js} +38 -38
  96. package/dist/assets/{LinkJETransactionPage-_GJ-x5FQ-CpZcMkUO.js → LinkJETransactionPage-D66bzDh_-CkE3r5Fj.js} +14 -14
  97. package/dist/assets/{LockCardPage-BiembyjL-o0APbzNc.js → LockCardPage-B1g2TZWL-BB9OEQ3a.js} +23 -23
  98. package/dist/assets/{LowBalancePopup-DF0W3ZsB-BL8lxWid.js → LowBalancePopup-DbtHeVY--C1kZvBgV.js} +6 -6
  99. package/dist/assets/MagicLinkACHDetailsPage-X1pXkZYT-BwbjH03_.js +1 -0
  100. package/dist/assets/MagicLinkDomesticWireDetailsPage-BDl8k_bB-CowCmii0.js +1 -0
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BohPD43K-C9uNU_-f.js → MagicLinkInternationalWireDetailsPage-Q4lIsHtG-Cz_o6Fdm.js} +1 -1
  102. package/dist/assets/MagicLinkSuccessPage-BkxuITX--Dm_WsIEN.js +31 -0
  103. package/dist/assets/{MagicLinkTitleSection-Dlvzbcxc-DASQrA7S.js → MagicLinkTitleSection-CqkZ9wOf-Bw_OwXxB.js} +4 -4
  104. package/dist/assets/{MailingDetailsSection-BT5P_beR-B4cpXc_i.js → MailingDetailsSection-DRFGCM2W-BZiRRBi6.js} +1 -1
  105. package/dist/assets/{MyBankConnectionsSettingsPage-BSErzm4Y-C-MWTdNj.js → MyBankConnectionsSettingsPage-CE2ZqHBJ-BgvQaaTM.js} +9 -9
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-CC02lTyz-BJnd3ofq.js → MyPendingActivationChargeCardListPage-BffxXDZg-ByY1n8i6.js} +2 -2
  107. package/dist/assets/MyProfileSettingsPage-DrsAlesY-hN8LUcXX.js +85 -0
  108. package/dist/assets/{NavBarWithPicker-BsrNGnWt-BlQqabt1.js → NavBarWithPicker-C4VfP_Kw-CBhRZ97T.js} +5 -5
  109. package/dist/assets/{NavigationArrow-BXIVh8h9-D7IH5yMo.js → NavigationArrow-DCCxx6H7-W7U95qs4.js} +7 -7
  110. package/dist/assets/{NavigationDots-CqAMUVd8-BXhLjOxS.js → NavigationDots-tWCw6Bpk-CuIUDxge.js} +4 -4
  111. package/dist/assets/{NewGlobalMerchantPage-BJ5efhOX-ClQiHLq9.js → NewGlobalMerchantPage-UIA8zAjd-D8vToc6n.js} +36 -36
  112. package/dist/assets/{NoDataChart-YIESVuNz-DpSXAqlW.js → NoDataChart-Bvetk9za-0wt6JdBt.js} +2 -2
  113. package/dist/assets/NoDataTable-9xF1_3XS-DsLBD4Qa.js +8 -0
  114. package/dist/assets/{NotFoundPage-DsvOs3ie-C-4MxVNW.js → NotFoundPage-CdH-3upl-C_fcZJin.js} +5 -5
  115. package/dist/assets/{NotificationSettingsPage-DVfgPnm5-BvgqO3jt.js → NotificationSettingsPage-DP2gGIz1-CLjjU0Sc.js} +17 -17
  116. package/dist/assets/{NotificationsListConfig-DpYbR8ec-DqDCfeTP.js → NotificationsListConfig-DG-DH2Aj-CKXowXh2.js} +1 -1
  117. package/dist/assets/{NotificationsPage-DvWc70qe-VWTqaRJg.js → NotificationsPage-CgFMmR2X-Be5cEQ7m.js} +24 -24
  118. package/dist/assets/{OpExByVendorPage-H76M8qaf-BQH2QQSj.js → OpExByVendorPage-eUvIAWzt-PZY_Xas_.js} +20 -20
  119. package/dist/assets/OverlayContainerPage-D4QU0p4o-3r3Bw7Lg.js +11 -0
  120. package/dist/assets/{PandLWithForecastPage-sw9N690f-DXwOGKkt.js → PandLWithForecastPage-8S06Nyi5-BhQGG0da.js} +11 -11
  121. package/dist/assets/PaymentAccountSetupBillingAddressSection-DQtrANhI-9ZSRDZH6.js +107 -0
  122. package/dist/assets/PeoplePage-D1BLHtO0-sla4AS_t.js +675 -0
  123. package/dist/assets/{Preview-CTKmuGb_.js → Preview-CU8d2zan.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-BcFZaXQq-CAcJ2P5M.js → ProductsCarousel-BKSXWnFR-DXZOy7zR.js} +5 -5
  125. package/dist/assets/{PromoBaseCards-BglIl0tN-Buak4qY9.js → PromoBaseCards-BYT9nEJT-CqAOmcFY.js} +17 -17
  126. package/dist/assets/{QBOConnectionDialog-D9BGyyB3-C_3987E6.js → QBOConnectionDialog-C2-omQMZ-zbiv02JV.js} +3 -3
  127. package/dist/assets/{QBOSetupSection-C6L-OXzd-C71uj0xQ.js → QBOSetupSection-lgv5wVlg-y58Hyzd-.js} +16 -16
  128. package/dist/assets/{ReimbursementApprovalRuleDetailPage-tKu15I_o-BFCP9Tbv.js → ReimbursementApprovalRuleDetailPage-CbJViS3x-D3aK08AA.js} +2 -2
  129. package/dist/assets/{ReimbursementApprovalRulesPage-r2WRV6kv-C9GzIbw-.js → ReimbursementApprovalRulesPage-BuNt-Bmb-C78e8kMC.js} +8 -8
  130. package/dist/assets/{ReimbursementDetailPage-jJxS8CSo-DjnZk067.js → ReimbursementDetailPage-CK3-Jqkd-CgZiOEYV.js} +8 -8
  131. package/dist/assets/{ReimbursementPromoPage-CrKB_OxS-3EkO-wL1.js → ReimbursementPromoPage-fptOAJna-IPM14XMn.js} +20 -20
  132. package/dist/assets/{ReimbursementSetUpPage-COWnzuHW-CLMx95-b.js → ReimbursementSetUpPage-CidrpT2g-Ln_h8FTr.js} +12 -12
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-jpGSx2Pg-_Bcfji9w.js → ReimbursementsBulkReviewDrawerPage-Cy_Hediw-DgBEVXGU.js} +1 -1
  134. package/dist/assets/{ReloadCard-Dl1P55OC-zZUvCa72.js → ReloadCard-C81rGzOp-DJ3imZKo.js} +5 -5
  135. package/dist/assets/{ReportTableViewSelector-CPU5qvuC-2zZIaHx7.js → ReportTableViewSelector-neRSjrhV-Ren0yuJI.js} +9 -9
  136. package/dist/assets/{ReportsPage-FhO_9i3v-DNezkReN.js → ReportsPage-BhzQVaer-_PFG_SDT.js} +5 -5
  137. package/dist/assets/{RevenueChart-Bju5kT8K-oXD-rW-y.js → RevenueChart-x7uTbFlm-De__t5uZ.js} +18 -18
  138. package/dist/assets/{ReviewDetailsPage-CaEI-TGi-BctO-qMF.js → ReviewDetailsPage-jXZCylzg-CxWQeENN.js} +52 -52
  139. package/dist/assets/{ReviewOverlay-l69rpwr7-CL2MzHR0.js → ReviewOverlay-nlm2HnGw-CrtXVWUE.js} +18 -18
  140. package/dist/assets/RoleWithToolTip-C29QOzxS-Flc5rF91.js +22 -0
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BRsO23kh-Bd6jJjXE.js → ScheduleDetailsFixedAssetsPage-CkPzofLN-DIX9LFTM.js} +8 -8
  142. package/dist/assets/ScheduleDetailsPage-BSZefKOh-8kI1Do_y.js +37 -0
  143. package/dist/assets/{ScheduleSequenceTable-CeHDyMVV-BDB0daT6.js → ScheduleSequenceTable-BW5M7Zfq-BxUxwc-r.js} +42 -42
  144. package/dist/assets/{ScreenRoutes-BQy3VYdc.js → ScreenRoutes-CLhWgWVO.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-rRjmVlU7-DwMfeFsK.js → SetUpAccountSection-C703iFL6-CB7BMbY7.js} +5 -5
  146. package/dist/assets/SignIn-D9K5FklU-DoHIITb_.js +491 -0
  147. package/dist/assets/SignInScreen-BUCf8qGW.js +1 -0
  148. package/dist/assets/{SpendManagementListViewPage-B452IhbL-DeBmV72o.js → SpendManagementListViewPage-CBNtC74m-BtgixD4n.js} +12 -12
  149. package/dist/assets/{SpendManagementPerTabPage-BDYtqf0E-DyNuQ-pi.js → SpendManagementPerTabPage-D_sa7WRd-BkE5ihPf.js} +23 -23
  150. package/dist/assets/{SpendManagementSection-BBotB3Xj-CCF7KJv2.js → SpendManagementSection-DpZUTV6m-Dxy1NGgK.js} +25 -25
  151. package/dist/assets/{StatementItem-hqxspUme-sh_LlOTp.js → StatementItem-DvdSsb8I-Yc2t3LwG.js} +6 -6
  152. package/dist/assets/{StatementsPage-CL35o_9R-ReR2nu-n.js → StatementsPage-73jGj5P2-39XE15IE.js} +1 -1
  153. package/dist/assets/{StatusSwitcher-LSy5NlOs-B-twulWz.js → StatusSwitcher-hKYgwNLC-CdIzFF5N.js} +2 -2
  154. package/dist/assets/{SubTabSwitcher-BB80NFhP-CfbWDFoA.js → SubTabSwitcher-aeDd9xiF-cMszftZd.js} +2 -2
  155. package/dist/assets/{SummaryCard-wJqTtNFt-C_twlvBD.js → SummaryCard-CK8Gxbiu-D9gdCQ60.js} +1 -1
  156. package/dist/assets/TaskManagementPage-D2Ooq8DR-BCLu8T25.js +508 -0
  157. package/dist/assets/{TimeRangeSwitcher-B1jJf76U-DhK9j_RI.js → TimeRangeSwitcher-DEqlZxa6-CbVp5G_Z.js} +11 -11
  158. package/dist/assets/{TimeframeSwitcher-CTyaOUPX-CbY24_cZ.js → TimeframeSwitcher-BppC6giF-B4vl7lp6.js} +6 -6
  159. package/dist/assets/TimeframeSwitcherWithToggle-CbX9ElMN-CKuHpWeL.js +31 -0
  160. package/dist/assets/{TopExCard-D-0SNihe-DbAMEJsc.js → TopExCard-Cy6tPVSx-DoueUq-S.js} +6 -6
  161. package/dist/assets/{TopExDetailPage-2Wo3VpBY-CQB6lP8u.js → TopExDetailPage-Rtrcdkcp-Bee2kIbH.js} +11 -11
  162. package/dist/assets/{TransactionActivityLogPage-Bh3D2NmZ-D3qvKicV.js → TransactionActivityLogPage-DbwSsjPJ-Duhd9ppW.js} +15 -15
  163. package/dist/assets/TransactionDetailPage-D-vXAAB7-K9QSYBJd.js +903 -0
  164. package/dist/assets/{TransactionList-DUgCrZWV-BvVKtqdG.js → TransactionList-BruCNjQg-Bs3Zye0k.js} +16 -16
  165. package/dist/assets/{TransactionListBig-BXR8xSqt-DaiA8bG9.js → TransactionListBig-bp7q3prH-DtAaFzgB.js} +13 -13
  166. package/dist/assets/TransactionListPage-ZfJsaVb8-DDRcg9yh.js +35 -0
  167. package/dist/assets/{TransactionVendorDetailPage-D0ZIWPbx-Cn6y3WJt.js → TransactionVendorDetailPage-CldkuO2--BwneqCS_.js} +15 -15
  168. package/dist/assets/{TransferDrawerPage-BP4KhD5c-BrSTdfTz.js → TransferDrawerPage-DswS6KZf-lfQEHAd_.js} +35 -35
  169. package/dist/assets/{TreasuryOverviewPage-CrYY5MJP-C0AmvEQV.js → TreasuryOverviewPage-DWo7iRpO-DwVZc_ol.js} +15 -15
  170. package/dist/assets/{TreasuryPromoPage-DZ4Kyqzq-D_pEn2EG.js → TreasuryPromoPage-DQxCF3-4-CSmOO24g.js} +131 -131
  171. package/dist/assets/{TreasuryStatementsPage-BaId882i-D75gB9l5.js → TreasuryStatementsPage-CYkPtmaT-DN6XWXk4.js} +2 -2
  172. package/dist/assets/{TreasuryTaxLetterPage-BD36dset-gxrB031E.js → TreasuryTaxLetterPage-DH3su_rX-KVvmjWUc.js} +2 -2
  173. package/dist/assets/{TrendChart-CS2cE4wE-9GYHRUaO.js → TrendChart-BMHDaOeh-Buv1h9ol.js} +3 -3
  174. package/dist/assets/{TrendWithTransactions-BNti0lYr-DivQSKL6.js → TrendWithTransactions-DDLrmIrt-fNUGa6rL.js} +3 -3
  175. package/dist/assets/{UncategorizedAccountsMappingPage-BsRepV5l-DlPkehZf.js → UncategorizedAccountsMappingPage-3SW8Gj0Z-BU7ZjTMQ.js} +12 -12
  176. package/dist/assets/{UnitIntegrationPage-DqzH4Opa-SO4FcuGi.js → UnitIntegrationPage-DPMy8dXP-BZ-cXQsX.js} +7 -7
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-BIzKt99W-Th7W6jYz.js → UploadAdditionalDocumentOverlay-BHpT2al--BnkxVa5e.js} +1 -1
  178. package/dist/assets/Vendor2FAPopup-C6gEOhUv-evnz1t4i.js +1 -0
  179. package/dist/assets/VendorACHDetailsPage-LNCcubjL-C8VaJhNx.js +1 -0
  180. package/dist/assets/{VendorDetailPage-C9YSL-3_-BF0fdd2j.js → VendorDetailPage-BC1FhaQA-CueuZtdN.js} +12 -12
  181. package/dist/assets/{VendorDomesticWireDetailsPage-CqnTEv1M-CgJRLwZn.js → VendorDomesticWireDetailsPage-CLudahOt-Y_vODi9v.js} +1 -1
  182. package/dist/assets/{VendorFiling1099EditablePage-CmnR7Dwc-DZxsZ_RS.js → VendorFiling1099EditablePage-DYyPOA8D-CMg58Qh3.js} +32 -32
  183. package/dist/assets/{VendorFirstReviewPage-CAjuo6H2-BffNSToW.js → VendorFirstReviewPage-Cpmk7rDk-DktpXCT6.js} +8 -8
  184. package/dist/assets/{VendorInternationalWireDetailsPage-Ca1voldE-BbjAc52w.js → VendorInternationalWireDetailsPage-CWAWq6kq-vjVbUdxz.js} +9 -9
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CUtums8t-ChJiB8Jl.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-BY-jWDwa-60HtC92w.js → VendorsAccountsSection-CGQ35Mhp-Bs7nzLpL.js} +2 -2
  187. package/dist/assets/{VerifyDevice-DSN3CxFh-da41a_-g.js → VerifyDevice-CfMJW1Vh-pAakXHUa.js} +9 -9
  188. package/dist/assets/{VideoPlayer-BzBvO4D1-CGFIyDTJ.js → VideoPlayer-BNBpjXJk-CNvH9RBW.js} +2 -2
  189. package/dist/assets/{VideoPopup-BB6qYshg-ZG_r-hRa.js → VideoPopup-BF6lmB7l-BYaaNsYn.js} +4 -4
  190. package/dist/assets/{WarningsDrawerPage-B4NIhdau-Bru4kwPQ.js → WarningsDrawerPage-Crj70lnR-KEtM2APc.js} +3 -3
  191. package/dist/assets/{ZeniAccountDetailPage-CbMnZZXn-DLFDNJ9i.js → ZeniAccountDetailPage-CaA6m3tQ-CEYZpiUC.js} +10 -10
  192. package/dist/assets/{ZeniAccountListViewPage-DuuiC_LT-jT3VVTcG.js → ZeniAccountListViewPage-x_51gDs1-Avk4qZ_6.js} +9 -9
  193. package/dist/assets/ZeniAccountNavBarPieces-Csr24dri-DksQYhl9.js +14 -0
  194. package/dist/assets/{ZeniAccountPromoPage-Bce5rHc6-m6-ECwyb.js → ZeniAccountPromoPage-lxKBk2r5-B5zalg2W.js} +13 -13
  195. package/dist/assets/{ZeniAccountSetupPage-Cwr7kLE1-DplcqBsj.js → ZeniAccountSetupPage-DUI4-2Zw-DRlq62qF.js} +3 -3
  196. package/dist/assets/{ZeniCopyright-CPV8cCJj-D08CfMJu.js → ZeniCopyright-DxEZ4DiK-hTA8S1dS.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-CSJnweYQ-bsaYWF1B.js → ZeniTransferAmountSlider-4Nq4Sm9J-DVwizo2l.js} +11 -11
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-Bh5GmIs8.js → add-to-wallet-DgdBD8_G-DYxovDvY.js} +1 -1
  199. package/dist/assets/{analytics-C7qRceeD.js → analytics-Cmcqa01V.js} +1 -1
  200. package/dist/assets/{analyticsHelper-CeIe3crh-AsfAm_i9.js → analyticsHelper-CL-t3Y2i-BWhNt6sH.js} +1 -1
  201. package/dist/assets/analyticsHelper-DVKjUmRh.js +1 -0
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-DKJtOEDh.js → arrow-south-east-round-PEovUgvH-Cg10bY7L.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-BtLYBoTe.js → auto-transfer-rule-mbafm5D3-BzGzQRiq.js} +1 -1
  204. package/dist/assets/{chartTypes-Cpjk7Uyr-Cx7FiySP.js → chartTypes-B3501CSI-EaJM1gmS.js} +1 -1
  205. package/dist/assets/{commonDimensions-BiY7_JPE-DCs4Mvgg.js → commonDimensions-YcBBlmYP-Djn7MvQY.js} +1 -1
  206. package/dist/assets/{constants-BSSpHQLd.js → constants-CO0CvGHR.js} +1 -1
  207. package/dist/assets/{core-BdfL-uia.js → core-MmJvanAX.js} +1 -1
  208. package/dist/assets/{dash.all.min-BHbNWZhu.js → dash.all.min-BtkViWW9.js} +1 -1
  209. package/dist/assets/{detailCommon-C7usWt5l-BPTKb5an.js → detailCommon-C19MYPnq-K0CC_UYn.js} +2 -2
  210. package/dist/assets/downloadPdf-DPAqxw6u-DNPeICgY.js +1 -0
  211. package/dist/assets/{empty-B_wp4jbR.js → empty-B8yNMhy_.js} +1 -1
  212. package/dist/assets/{empty-BfoY8avI.js → empty-wbHL4fCk.js} +1 -1
  213. package/dist/assets/epic-cC-V8fqP.js +2 -0
  214. package/dist/assets/{gift-box-Cmt9OgIZ-CTA3oEEm.js → gift-box-Cmt9OgIZ-mKGEn6_z.js} +1 -1
  215. package/dist/assets/{graphic-no-data-l-DU4J8fDt-B-BNuWuf.js → graphic-no-data-l-DU4J8fDt-DL4eASZx.js} +1 -1
  216. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BKSa_BmO.js → graphic-no-data-net-burn-l-CzmycA0m-CPdXbVAf.js} +1 -1
  217. package/dist/assets/{handshake-BPg58FML-BspGwKvx.js → handshake-BPg58FML-D9DqrV5o.js} +1 -1
  218. package/dist/assets/{index-DQGwrG6i.js → index-B2COPa4J.js} +1 -1
  219. package/dist/assets/{index-97wdo8qZ.js → index-BALzBmnK.js} +1 -1
  220. package/dist/assets/{index-CLP97b5b.js → index-BMz5TN4Z.js} +1 -1
  221. package/dist/assets/{index-2U9XpSIT.js → index-BZrvYCMV.js} +1 -1
  222. package/dist/assets/{index-BE47hrTe.js → index-Bj85L4uf.js} +1 -1
  223. package/dist/assets/{index-Blb3rESX.js → index-BmeBEa4W.js} +1 -1
  224. package/dist/assets/{index-Bkm6Mxfx.js → index-DK3PYuee.js} +4083 -4077
  225. package/dist/assets/{lexical-CNiclLj0.js → lexical-DyUba00B.js} +1 -1
  226. package/dist/assets/{liveblocks-Lf8LVeH9.js → liveblocks-DzWLGwR5.js} +1 -1
  227. package/dist/assets/{lottie-BAIk2ri4.js → lottie-C8IpdMqp.js} +1 -1
  228. package/dist/assets/mapLoadingInProgressToTreeNode-D2u9MDI--B6CSGc2J.js +1 -0
  229. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-COWbEMKO-DeIvL42p.js → mapSectionWithAcOnlyToTreeNode-BDWD3x8r-BZO45bNY.js} +1 -1
  230. package/dist/assets/mapSpacerToTreeNode-Blr3egSm-BptZuVYf.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-3Hd8QHr2-BTUA7CSo.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-D-LTfKnD-DSTIJ2iA.js +1 -0
  233. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-mmJVrGj0-DKkBp9K3.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-Dqp5HT1g.js} +1 -1
  234. package/dist/assets/{mui-Dg-yyLd1.js → mui-CgqbPqeT.js} +1 -1
  235. package/dist/assets/{page-detail-CWX5S47F-C9V7NZCx.js → page-detail-CWX5S47F-CWr90kJa.js} +1 -1
  236. package/dist/assets/panelSelectedMixin-CzfD5-Zs-DRCw2iu0.js +4 -0
  237. package/dist/assets/{radio-default-CiSgisfh-7Dm34YkL.js → radio-default-CiSgisfh-BEZqUVYK.js} +1 -1
  238. package/dist/assets/{react-afxvtM8P.js → react-BE0WbgXK.js} +2 -2
  239. package/dist/assets/{react-BYCJSJzc.js → react-BWJsSx2R.js} +2 -2
  240. package/dist/assets/{react-XQWanSnz.js → react-BgXIf4f3.js} +1 -1
  241. package/dist/assets/{react-CmD2oDdV.js → react-C4LlJL88.js} +1 -1
  242. package/dist/assets/{react-CLIsPthr.js → react-CMcqnen6.js} +1 -1
  243. package/dist/assets/{react-CK1-HLiI.js → react-COyNmpZ3.js} +1 -1
  244. package/dist/assets/{react-CXimFM-A.js → react-DsUgK5BV.js} +1 -1
  245. package/dist/assets/{react-RbEMA7cG.js → react-DzUY3cKk.js} +1 -1
  246. package/dist/assets/{recharts-DVyIhUUu.js → recharts-CcfvjpA4.js} +1 -1
  247. package/dist/assets/{sentry-nVlxguQq.js → sentry-DS5py-mq.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-DoCKBSgZ.js → shield-DOlUxcFf-BF58Ag0p.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-D35Fk0m2-B_xF911W.js +1 -0
  250. package/dist/assets/toChartData-DzatRnt8-DoRfMwGl.js +1 -0
  251. package/dist/assets/{uploadAttachment-B3eC-lyz-geS_kP_o.js → uploadAttachment-Bq8dk-Sm-D_5FZVYa.js} +18 -18
  252. package/dist/assets/{uploadReceipts-Dge0cNF1-CY10Jpnu.js → uploadReceipts-Dge0cNF1-v2Zp1kxY.js} +1 -1
  253. package/dist/assets/{url-3XfBQAPr.js → url-B1m04Aj9.js} +1 -1
  254. package/dist/assets/{url-A_ZszWlu.js → url-rEq3bn1J.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-BmH9C_mp.js → useLongPress-GCK2COYQ-BbRZopJb.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-iPZVfl3G.js → usp-line-BBd1wKwW-C_HT3NYA.js} +1 -1
  257. package/dist/assets/{utils-Bn_xI0qf.js → utils-C5WTobSB.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-DwXlACp-.js → zeni-epic-state-QRf7TPA6.js} +18 -18
  259. package/dist/index.html +1 -1
  260. package/package.json +4 -4
  261. package/dist/assets/ACHDetailsPage-BR3rG--e-kSCtv-NB.js +0 -21
  262. package/dist/assets/AccountInfoPage-CD5N14l8-Cj9mMftg.js +0 -18
  263. package/dist/assets/AccountLockedInfoModal-Bu3jEa0r-B0qvTV9d.js +0 -59
  264. package/dist/assets/AccountRow-B5Gqqqtn-CIBZjEoF.js +0 -298
  265. package/dist/assets/AddAddressForCardDrawer-BwmafnJT-Bmncy62v.js +0 -6
  266. package/dist/assets/AppBasePage-BMHvSY21-DvkLzmdG.js +0 -71
  267. package/dist/assets/BillingSettingsPage-DYdJ7J5w-Dpj9oE-s.js +0 -44
  268. package/dist/assets/BusinessVerificationPage-CyDHfWqO-DZAPmAGn.js +0 -138
  269. package/dist/assets/ChargeCardPromoPage-BPyHy6jq-BKhW8ZTA.js +0 -222
  270. package/dist/assets/CompanyOfficerDetailsSection-CEpMwx3h-CtZ35yMq.js +0 -331
  271. package/dist/assets/CompanyPassportPage-S00SGN0f-daLbEDp8.js +0 -417
  272. package/dist/assets/ConfettiBurst-BFSc4yf1-Cmp5Smtr.js +0 -1
  273. package/dist/assets/CustomerOnboardingContainerPage-CyY14sjC-CpRK_yh3.js +0 -1
  274. package/dist/assets/CustomerOnboardingNoStepsPage-DtAEP0LR-Cj2h9iOe.js +0 -66
  275. package/dist/assets/CustomerOnboardingPage-8fLLsJWV-CvrWaaS9.js +0 -107
  276. package/dist/assets/DashboardSidebarBackgroundAnimation-CntzllmW-4doWKP65.js +0 -12
  277. package/dist/assets/EditPeoplePage-CbH2FQwr-Dwdc6XuJ.js +0 -55
  278. package/dist/assets/EntityDetailPage-CPfVH0Qx-Bbq5VGjF.js +0 -18
  279. package/dist/assets/ExpenseAutomationPage-DBW9Urqw-CdNZdY6H.js +0 -1794
  280. package/dist/assets/InsightsSection-CKYv2Mnk-DfsYpI8T.js +0 -27
  281. package/dist/assets/InternationalWireVerificationPage-0DjZSpXZ-BZd7iT9O.js +0 -65
  282. package/dist/assets/InvitePeoplePage-CD1AM3Js-Coy9qSK8.js +0 -12
  283. package/dist/assets/InvoiceUploadSection-DPN2hpHj-Le_Nue4w.js +0 -140
  284. package/dist/assets/LabeledAddressValueField-CeyT4xDd-CsZJNIxr.js +0 -45
  285. package/dist/assets/LabeledControlledCheckBoxField-9wqNy7sL-DXrYHBBD.js +0 -16
  286. package/dist/assets/LabeledCountryMultiSelectField-S16_1kXP-x8HeIlI2.js +0 -237
  287. package/dist/assets/LabeledDocumentField-9m7Nhuth-BMfR8g3v.js +0 -41
  288. package/dist/assets/LabeledDropDownFormattedTextField-B_jJYbeK-CTMDj_vU.js +0 -59
  289. package/dist/assets/MagicLinkACHDetailsPage-p0Nwa4g8-D5bMLjso.js +0 -1
  290. package/dist/assets/MagicLinkDomesticWireDetailsPage-B_wnHSrq-CpgplOKq.js +0 -1
  291. package/dist/assets/MagicLinkSuccessPage-RJUcSgy8-CVLM8P-e.js +0 -31
  292. package/dist/assets/MyProfileSettingsPage-BM5j8vuZ-DC0wslST.js +0 -85
  293. package/dist/assets/NoDataTable-CHeZXDKw-D3EaccW5.js +0 -8
  294. package/dist/assets/OverlayContainerPage-D4QU0p4o-DOJMQyvQ.js +0 -11
  295. package/dist/assets/PaymentAccountSetupBillingAddressSection-D_rfYltd-BxAOPNlU.js +0 -107
  296. package/dist/assets/PeoplePage-D0ePO3d9-Bb5tMyL7.js +0 -727
  297. package/dist/assets/RoleWithToolTip-C4vCwcT8-C5FDPwWf.js +0 -22
  298. package/dist/assets/ScheduleDetailsPage-pKJSKheu-3-MzjHkZ.js +0 -37
  299. package/dist/assets/SignIn-zX3S7vuf-CwAOg_w9.js +0 -491
  300. package/dist/assets/SignInScreen-CpVpLRgx.js +0 -1
  301. package/dist/assets/TaskManagementPage-CnB395ci-lpQsi4e6.js +0 -508
  302. package/dist/assets/TimeframeSwitcherWithToggle-D48PqfUX-D2nr0MDh.js +0 -31
  303. package/dist/assets/TransactionDetailPage-NZEjiM1T-0AsyLNKc.js +0 -903
  304. package/dist/assets/TransactionListPage-BhY1YX8v-Shvm7Elv.js +0 -35
  305. package/dist/assets/Vendor2FAPopup-BzQXTs0l-C90qWU_9.js +0 -1
  306. package/dist/assets/VendorACHDetailsPage-D1DvwT9e-CTgO1cQ9.js +0 -1
  307. package/dist/assets/VendorInternationalWireSwiftDetailsPage-B17rmnsI-__uNZA7s.js +0 -1
  308. package/dist/assets/ZeniAccountNavBarPieces-CLNviNEx-CPY4QhCF.js +0 -14
  309. package/dist/assets/analyticsHelper-C4Qu-lAN.js +0 -1
  310. package/dist/assets/commonTypes-B1ylXa_P-Cc0VFSjp.js +0 -1
  311. package/dist/assets/downloadPdf-DRVFJQsk-BTOjeNSN.js +0 -1
  312. package/dist/assets/epic-BcpbmT-B.js +0 -2
  313. package/dist/assets/helper-Bwr_8pRi-tqcy2Ple.js +0 -223
  314. package/dist/assets/mapLoadingInProgressToTreeNode-DkvfU-AQ-BcQQ_ng7.js +0 -1
  315. package/dist/assets/mapSpacerToTreeNode-Csr6iLbE-BBc-Z9-B.js +0 -1
  316. package/dist/assets/mapTimeframeBalancesToTreeNode-DWah9nq--hXoargkz.js +0 -1
  317. package/dist/assets/mapTimeframeBalancesToTreeNode-KUx30-z6-Bx1KZ8Tg.js +0 -1
  318. package/dist/assets/panelSelectedMixin-Cddsb26L-BcWH15GY.js +0 -3
  319. package/dist/assets/toCOABalancesWithID-BOdn6oVS-D2aQDAmk.js +0 -1
  320. package/dist/assets/toChartData--znXzhow-CuORq1Y-.js +0 -1
@@ -1,4 +1,4 @@
1
- import{aR as K,ir as te,gL as me,eF as Je,is as Me,a9 as _e,it as Ve,cH as Pe,cI as Fe,V as a,ad as Ne,cr as qe,cs as Re,ct as Be,aS as We,iu as ze,iv as Ue,F as be,aa as pe,iw as Se,ix as $e,cL as Ge,J as Ke,iL as He,gQ as ue,u as B,p as De,y as ye,cM as Xe,iy as Ye,iz as Ze,iA as Qe,o as V}from"./index-Bkm6Mxfx.js";import{a as f}from"./sentry-nVlxguQq.js";import{n as z}from"./mui-Dg-yyLd1.js";import{Ga as et,Gb as tt}from"./zeni-epic-state-DwXlACp-.js";import{r as lt,s as at,i as st,n as ot}from"./ScheduleSequenceTable-CeHDyMVV-BDB0daT6.js";import"./liveblocks-Lf8LVeH9.js";import"./core-BdfL-uia.js";import"./recharts-DVyIhUUu.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.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]="6354d202-df89-4aa7-9780-178d0353bd3b",e._sentryDebugIdIdentifier="sentry-dbid-6354d202-df89-4aa7-9780-178d0353bd3b")}catch{}})();const W={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=z.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-DK3PYuee.js";import{a as f}from"./sentry-DS5py-mq.js";import{n as U}from"./mui-CgqbPqeT.js";import{G2 as et,G3 as tt}from"./zeni-epic-state-QRf7TPA6.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-BW5M7Zfq-BxUxwc-r.js";import"./liveblocks-DzWLGwR5.js";import"./core-MmJvanAX.js";import"./recharts-CcfvjpA4.js";import"./lottie-C8IpdMqp.js";import"./analytics-Cmcqa01V.js";import"./lexical-DyUba00B.js";import"./utils-C5WTobSB.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]="557cfe04-4e7e-438e-90b3-af80aae07823",e._sentryDebugIdIdentifier="sentry-dbid-557cfe04-4e7e-438e-90b3-af80aae07823")}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{aR as K,ir as te,gL as me,eF as Je,is as Me,a9 as _e,it as Ve,cH as Pe,cI
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=z.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=z.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:T,selectedClass:P,selectedAccumulatedDepreciationCategory:F,assetId:L,selectedDate:w,selectedMonths:j,selectedPostingDay:A,lastDayOfMonth:E,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=Ke(),U=He({startDate:d.baseTransaction.date,endDate:d.baseTransaction.date.add(1,"year")}),$=()=>{S(D)},G=A==null&&E==null?void 0:E===!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:T,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:X},disableCurrentOption:N,style:{borderTopLeftRadius:B[2],borderTopRightRadius:B[2]}}),a.jsx(H,{}),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:P,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:X},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: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:F,allOptions:C},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:X},disableCurrentOption:N,style:{borderTopLeftRadius:B[0],borderTopRightRadius:B[0]}}),a.jsx(H,{}),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(H,{}),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:U},isDisabled:h}),a.jsx(H,{}),a.jsx(ot,{label:{label:t.postingDate,width:W.labelWidth.value(I)},isDisabled:h,dayOfMonthField:{placeholder:t.postingDatePlaceholder,name:D,defaultValue:{type:G,dayOfMonth:A},onSaveClick:()=>{},onCancelClick:$}}),a.jsx(H,{}),a.jsx(Ze,{label:{label:t.months,width:W.labelWidth.value(I)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:t.monthsPlaceholder,defaultValue:{selectedOption:j!=null?v[j-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=z.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=z.div`
28
+ `,rt=U.div`
29
29
  display: flex;
30
30
  z-index: 2;
31
- `,ut=z.div`
31
+ `,ut=U.div`
32
32
  display: flex;
33
33
  flex-direction: column;
34
- `,ht=z.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:T,onDetailPageChange:P,onViewLinkedJE:F,onTransactionClick:L,onMarkAsComplete:w,removeJeScheduleTransactionKey:j}){const[A,E]=f.useState(!1),h=K(l.updateStatus.fetchState),J=K(l.selectedJEScheduleTransaction?.status.code),i=K(l.deleteStatus.fetchState),[se,Y]=f.useState(!1),S=l.scheduleDetailsLocalData.fixed_assets,oe=K(S.jeScheduleDetails.length),ne=K(S.selectedDate),de=K(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:()=>{E(!1),p()},onCancelClick:()=>{E(!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 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"&&j(t.jeScheduleTransactionKey,{month:m.month,year:m.year}),p())},[m,J,l.selectedJEScheduleTransaction?.status.code,e,p,h,j,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),G=Je(l.classListNestedAccountHierarchy),N=Me("fixed_assets"),Q=f.useRef(),y=_e({mode:"all",reValidateMode:"onChange",defaultValues:he(l,U,G,$,N,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:he(l,U,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 O=x[le].vendor;if(n.includes("vendor")){const re=O?.defaultOptions.map(R=>R.value);if(O?.selectedOption!=null&&re?.includes(O.selectedOption)!==!0){const R=u.entityAutoCompleteView.vendor.find(we=>we.id===O.selectedOption);R!=null&&y.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:R.name??"",value:R.id}])}}const ee=n.includes("amount");if(P(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((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,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=(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(()=>{Z(!0)},[]),Te=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]),je=f.useCallback(n=>{r!=null&&t!=null&&e.trackScheduleDetailsDeleted(te({jeScheduleTransaction:t,scheduleTab:"fixed_assets",transaction:r,vendor:D,controllerEmails:g,controllerUserIds:b})),T(n)},[e,g,b,t,T,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:q,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:U,allClassOptions:G,allMonthOptions:N,allDepAccountOptions:$,onEditAmount:C,onDelete:je,onJELinkClick:X,onViewLinkedJE:I,onMarkAsComplete:Te,allowCreateSchedule:ie,onCreateSchedule:Oe}),A===!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:()=>{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:T,onDelete:P,onJELinkClick:F,onViewLinkedJE:L,onMarkAsComplete:w}){const j=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:j,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:T,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,T=c.selectedAccumulatedDepreciationCategory,P=T!=null?e.allDepreciationAccountList.find(i=>i.accountId===T):void 0,F=c.assetId,L=c.selectedClass,w=L!=null?e.allClassList.find(i=>i.classId===L):void 0,j=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:j,allOptions:s},vendor:{selectedOption:v?.id??C?.id,defaultOptions:ze(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-DK3PYuee.js";import{a as y}from"./sentry-DS5py-mq.js";import{n as P}from"./mui-CgqbPqeT.js";import{G2 as Qe,G3 as Ze,bL as et}from"./zeni-epic-state-QRf7TPA6.js";import{i as tt,r as lt,n as at,o as st}from"./ScheduleSequenceTable-BW5M7Zfq-BxUxwc-r.js";import"./liveblocks-DzWLGwR5.js";import"./core-MmJvanAX.js";import"./recharts-CcfvjpA4.js";import"./lottie-C8IpdMqp.js";import"./analytics-Cmcqa01V.js";import"./lexical-DyUba00B.js";import"./utils-C5WTobSB.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]="8681fbce-f09a-42d9-8cad-2169014634b7",e._sentryDebugIdIdentifier="sentry-dbid-8681fbce-f09a-42d9-8cad-2169014634b7")}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 Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl as ye,b as I,F as R,iE as we,iA as be,o as i,y as b,p as j,c as $e,ab as je,aa as re,dO as Se,cr as ke,ct as ve,cL as X,ex as ee,cQ as De,iF as K,iG as Ce,b4 as Me,iH as ze,cv as Ee,iI as Le,u as h,am as E,ba as Oe,cs as Ie,ap as pe,eG as Ae,b2 as ne,es as Fe,aS as Te,iJ as F,gk as Ve,aP as Je,iK as Be,aW as q,d1 as Pe,bi as Re}from"./index-Bkm6Mxfx.js";import{n as o,c as B}from"./mui-Dg-yyLd1.js";import{a as C}from"./sentry-nVlxguQq.js";import{bh as G,Gc as Ne}from"./zeni-epic-state-DwXlACp-.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]="90edb35b-ccbd-4d65-9cb4-5fb47005c8d0",e._sentryDebugIdIdentifier="sentry-dbid-90edb35b-ccbd-4d65-9cb4-5fb47005c8d0")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function We({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}=X(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=A(),a=Q();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Qe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{children:[t.jsx(_e,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ke,{alignLeft:r===!0,children:[t.jsx(tt,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(et,{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(Fe,{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(Ze,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(He,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(it,{}),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(Te,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function _e({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(Ge,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ue,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function He({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 Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=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-DK3PYuee.js";import{n as o,c as B}from"./mui-CgqbPqeT.js";import{a as C}from"./sentry-DS5py-mq.js";import{bh as G,G4 as Ne}from"./zeni-epic-state-QRf7TPA6.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
- `,Ge=o.div`
3
+ `,qe=o.div`
4
4
  display: flex;
5
5
  padding-right: ${i.sp3};
6
6
  `,ae=o.div`
@@ -8,7 +8,7 @@ import{J as A,d as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl as ye
8
8
  flex-direction: column;
9
9
  background-color: ${e=>e.isSelected===!0?e.theme.colors.background:e.theme.colors.grey5};
10
10
  color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
11
- `,Ke=o.div`
11
+ `,Ge=o.div`
12
12
  position: absolute;
13
13
  z-index: 9;
14
14
  cursor: pointer;
@@ -25,17 +25,17 @@ import{J as A,d as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl as ye
25
25
  display: flex;
26
26
  flex-direction: column;
27
27
  width: 270px;
28
- `,Ue=o(E)`
28
+ `,Ke=o(O)`
29
29
  color: ${e=>e.theme.colors.grey1};
30
30
  margin-right: ${i.sp1};
31
- `,W=o(E)`
31
+ `,W=o(O)`
32
32
  color: ${e=>e.theme.colors.primary};
33
- `,Ze=o(E)`
33
+ `,Ue=o(O)`
34
34
  color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
35
35
  `,de=o.div`
36
36
  display: flex;
37
37
  gap: ${i.sp1};
38
- `,Qe=o.div`
38
+ `,Ze=o.div`
39
39
  display: flex;
40
40
  align-items: center;
41
41
  justify-content: flex-end;
@@ -55,7 +55,7 @@ import{J as A,d as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl as ye
55
55
  color: ${e=>e.theme.colors.hero};
56
56
  `,_=o.div`
57
57
  display: flex;
58
- `,H=o(E)`
58
+ `,H=o(O)`
59
59
  padding: ${i.sp1} ${i.sp2};
60
60
  max-width: ${i.sp5};
61
61
  min-width: 18px;
@@ -66,7 +66,7 @@ import{J as A,d as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl as ye
66
66
  color: ${e.theme.colors.background};
67
67
  background-color: ${e.theme.colors.primary};
68
68
  `:null}
69
- `,et=o.div`
69
+ `,Qe=o.div`
70
70
  display: flex;
71
71
  align-items: center;
72
72
  background-color: ${e=>e.isError?j.importantLight:"transparent"};
@@ -81,15 +81,15 @@ import{J as A,d as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl as ye
81
81
  border-color: ${e=>e.isError?j.important:e.theme.colors.primary};
82
82
  }
83
83
  }
84
- `,tt=o.div`
84
+ `,et=o.div`
85
85
  width: 100%;
86
86
  margin-top: ${i.sp1};
87
87
  height: 1px;
88
- `,it=o.div`
88
+ `,tt=o.div`
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 Qt({label:e,dayOfMonthField:l,isDisabled:s,style:r}){const p=A(),{formState:{errors:n}}=X(),d=ee(n,l.name);return t.jsxs(lt,{size:p,style:r,isDisabled:s!=null,isError:d,children:[t.jsx(De,{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(ot,{labelWidth:e.width,children:t.jsx(We,{...l,isDisabled:s,style:{display:"flex",flexGrow:1,width:"100%",height:z.controlHeight.value(p)}})})]})}const lt=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;
@@ -128,48 +128,48 @@ import{J as A,d as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl as ye
128
128
  background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.isError?j.importantLight:e.theme.colors.background};
129
129
  }
130
130
  }
131
- `,ot=o.div`
131
+ `,lt=o.div`
132
132
  display: flex;
133
133
  flex-direction: column;
134
134
  width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
135
135
  align-items: flex-end;
136
136
  flex-grow: 1;
137
- `,rt=o.div`
137
+ `,ot=o.div`
138
138
  display: flex;
139
139
  width: 100%;
140
140
  justify-content: space-between;
141
- `,nt=o(Oe)`
141
+ `,rt=o(Ee)`
142
142
  color: ${e=>e.theme.colors.primary};
143
143
  margin: ${i.sp3} ${i.sp1};
144
144
  `,ce=o.div`
145
145
  margin-bottom: ${i.sp2};
146
- `,{common:T,jeSchedules:{scheduleDetails:D}}=R.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(rt,{children:[t.jsx(nt,{"data-testid":je("schedule-details-title"),children:D.scheduleDetailsSection.header}),t.jsx(re,{controller:m.length>0,children:t.jsx(Se,{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(ke,{titleComponent:t.jsx(ve,{children:D.scheduleDetailsSection.confirmDeletionTitle}),descriptionComponent:t.jsx(st,{}),action:f,primaryButtonText:T.yes,proceedButtonVariant:"danger",secondaryButtonText:T.no,isLoading:e})})]})}function st(){return t.jsxs(Ie,{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")},at=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
148
  max-width: ${e=>P.transactionTitleContainerWidth.valuePx(e.windowSize)};
149
- `,dt=o($e)`
149
+ `,at=o($e)`
150
150
  color: ${j.neutralGrey5Light};
151
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};
155
155
  padding: ${i.sp0} ${i.sp2} ${i.sp0} ${i.sp2};
156
- `,ct=o.div`
156
+ `,dt=o.div`
157
157
  display: flex;
158
158
  flex-direction: column;
159
- `,ut=o.div`
159
+ `,ct=o.div`
160
160
  display: flex;
161
161
  flex: 0 0 auto;
162
162
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
163
163
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
164
164
  gap: ${i.sp3};
165
- `,ht=o.div`
165
+ `,ut=o.div`
166
166
  display: flex;
167
167
  width: 100%;
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
171
  padding: ${e=>`${i.sp0} ${P.containerPadding.valuePx(e.windowSize)}`};
172
- `,pt=o.div`
172
+ `,ht=o.div`
173
173
  display: flex;
174
174
  flex-direction: row;
175
175
  width: 100%;
@@ -179,31 +179,31 @@ import{J as A,d as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl as ye
179
179
  justify-content: space-between;
180
180
  margin-top: ${e=>P.containerMarginTop.valuePx(e.windowSize)};
181
181
  margin-bottom: ${e=>P.containerMarginBottom.valuePx(e.windowSize)};
182
- `,mt=o(E)`
182
+ `,pt=o(O)`
183
183
  color: ${e=>e.theme.colors.hero};
184
184
  height: ${i.sp4};
185
- `,gt=o(E)`
185
+ `,mt=o(O)`
186
186
  color: ${e=>e.theme.colors.primary};
187
187
  word-break: break-all;
188
188
  text-align: right;
189
- `,xt=o.div`
189
+ `,gt=o.div`
190
190
  display: flex;
191
191
  flex-direction: row;
192
192
  justify-content: space-between;
193
193
  gap: ${i.sp3};
194
- `,ft=o.div`
194
+ `,xt=o.div`
195
195
  margin-top: ${i.sp3};
196
196
  width: 100%;
197
- `,yt=o.div`
197
+ `,ft=o.div`
198
198
  display: flex;
199
199
  flex-direction: column;
200
200
  margin: ${i.sp3} ${i.sp0} ${i.sp6} ${i.sp0};
201
- `,wt=o.div`
201
+ `,yt=o.div`
202
202
  display: flex;
203
203
  width: 100%;
204
204
  height: 1px;
205
205
  background-color: ${e=>e.theme.colors.grey3};
206
- `,bt=({title:e,value:l})=>t.jsxs(xt,{children:[t.jsx(mt,{children:e}),t.jsx(gt,{children:l||me})]}),{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:O},scheduleAccruedDetails:{placeholders:{selectVendor:$t}}},dateFormat:{visual:{MMMDCommaYYYYformat:jt}},common:{strings:{hyphen:me}}}=R.getLocalizedStrings();function ei({transaction:e,vendorField:l,vendorLoadOptions:s,errors:r,vendorFieldName:p,vendor:n}){const d=A(),c=Q(),[w,f]=C.useState(!1),u=St(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(ht,{windowSize:d,children:[t.jsxs(pt,{windowSize:d,children:[t.jsxs(ut,{windowSize:d,children:[t.jsx(t.Fragment,{children:m===!0?t.jsx(t.Fragment,{children:x===!0?t.jsx(ie,{text:O.addVendor,handleClick:()=>{S(!1),f(!0)}}):t.jsx(t.Fragment,{children:w===!1?t.jsx(at,{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:O.addVendor,handleClick:()=>{S(!1),f(!0)}})}):t.jsx(xe,{autoFocus:!0,menuIsOpen:w,name:p??"",placeholder:$t,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(dt,{windowSize:d,labelColor:fe(e.type,c),children:e.typeName??e.type})]}),t.jsx(ct,{children:t.jsx(ye,{amount:e.amount,integerStyles:I.h6SemiBold.cssObject,decimalStyles:I.standardMedium.cssObject})})]}),t.jsx(wt,{}),t.jsx(yt,{children:u.map((y,k)=>t.jsx(ft,{children:t.jsx(bt,{title:y.title,value:y.value})},k))})]})}function St(e){const l=[];return l.push({title:O.transactionDate,value:e.date.format(jt)}),l.push({title:O.category,value:e.account.accountName}),l.push({title:O.class,value:e.classBase?.className??me}),l.push({title:O.memo,value:e.memo}),l}const he=(e,l)=>`${e}.${l}`,kt={webkitLineClamp:new b(2,2,1,1,1)},vt=R.getLocalizedStrings(),{dateFormat:Dt,jeSchedules:{scheduleDetails:Z}}=vt,Ct=({sectionId:e,rowId:l,isDisabled:s,hideMemoField:r,minMaxValuesForAmount:p,isAmountEditable:n,scheduleJournalEntry:d,localData:c,onJELinkClick:w,onViewLinkedJE:f})=>{const u=A(),m=Q(),[x,S]=C.useState(!1),{formState:{errors:v}}=X(),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"),L=ee(v,Y);return t.jsxs(Et,{windowSize:u,isRowEditable:n,isClickable:a||n,onClick:$,children:[r?null:t.jsx(V,{windowSize:u,widthSize:F[0].width,children:t.jsx(J,{windowSize:u,isClickable:a||n,title:c.memo,children:c.memo})}),t.jsx(V,{windowSize:u,widthSize:F[1].width,children:t.jsx(J,{windowSize:u,isClickable:a||n,children:c.postingDate.format(Dt.visual.MMMDCommaYYYYformat)})}),t.jsx(V,{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:L===!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:L===!0?j.importantLight:x===!1?m.colors.grey5:m.colors.background,prefix:c.amount.currencySymbol,decimalScale:2,allowNegative:!0,isNumericString:!1,isFieldError:L,registerOptions:{required:g==null,min:p.min,max:p.max},isDisabled:g,thousandsGroupStyle:"thousand",thousandSeparator:!0})})})}),t.jsx(V,{windowSize:u,widthSize:F[3].width,children:t.jsx(J,{windowSize:u,isClickable:a||n,children:Je("0,0.00",c.runningBalance)})}),t.jsx(V,{windowSize:u,widthSize:F[4].width,children:t.jsx(J,{windowSize:u,isLastItem:!0,isClickable:a||n,children:t.jsxs(Ft,{children:[t.jsx(Be,{textColor:zt(c.postingStatus,m),onClick:a||n?$:void 0,text:Z.sequenceSchedule.postingStatus[c.postingStatus]}),k?t.jsx(At,{onClick:a?$:y,children:t.jsx(Mt,{jeLink:c.jeLink,isJElinkAllowed:k})}):null]})})})]})};function Mt({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(Lt,{onMouseOver:()=>r(!0),onMouseLeave:()=>r(!1),children:[t.jsx(Tt,{}),s?t.jsxs(Ot,{children:[e.type==="recommended"?t.jsx(Vt,{}):null,t.jsx(It,{children:Z.linkJE.linkJE})]}):null]}):null}const zt=(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)}},Et=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;
@@ -238,7 +238,7 @@ import{J as A,d as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl as ye
238
238
  :last-of-type {
239
239
  padding-right: 0;
240
240
  }
241
- `,Lt=o.div`
241
+ `,Ot=o.div`
242
242
  display: flex;
243
243
  align-items: center;
244
244
  gap: ${i.sp1};
@@ -247,26 +247,26 @@ import{J as A,d as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl as ye
247
247
  &:hover {
248
248
  color: ${e=>e.theme.colors.primary};
249
249
  }
250
- `,Ot=o.div`
250
+ `,Et=o.div`
251
251
  display: flex;
252
252
  align-items: center;
253
253
  gap: ${i.sp1};
254
- `,It=o(E)``,At=o.div``,Ft=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
- `,Tt=o(Pe)`
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
- `,J=o(E)`
264
+ `,J=o(O)`
265
265
  flex-grow: 1;
266
266
  word-break: break-word;
267
267
  white-space: nowrap;
268
268
  cursor: ${e=>e.isClickable===!0?"pointer":"default"};
269
- -webkit-line-clamp: ${e=>kt.webkitLineClamp.value(e.windowSize)};
269
+ -webkit-line-clamp: ${e=>St.webkitLineClamp.value(e.windowSize)};
270
270
  -webkit-box-orient: vertical;
271
271
  overflow: hidden;
272
272
  text-align: "left";
@@ -277,23 +277,23 @@ import{J as A,d as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl 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)},ti=({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=R.getLocalizedStrings().jeSchedules.scheduleDetails.sequenceSchedule;return t.jsxs(Ht,{windowSize:x,children:[t.jsx(qt,{windowSize:x,children:y.header}),S?t.jsx(we,{}):v?t.jsx(Yt,{windowSize:x,children:t.jsx(be,{text:y.notCreated})}):t.jsx(Nt,{children:t.jsx(Jt,{isDisabled:s,sectionId:e,hideMemoField:r,totalAmount:l,uiState:c,scheduleJournalEntries:n,localData:d,onEditAmount:w,onJELinkClick:f,onViewLinkedJE:u,jeScheduleId:m})})]})},Jt=({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+Ce;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(),L=G().startOf("month"),te=G().endOf("month");if(a[g].postingDate!=null){if(a[g].postingDate.month()===Y.month()&&a[g].postingDate.isBetween(L,te)===!0)return(a[g].postingStatus==="pending"||a[g].postingStatus==="canceled")&&n[g].runningBalance.amount!==0;if(a[g].postingDate.isBefore(L)===!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(Pt,{windowSize:x,containerHeight:v,children:t.jsx(Me,{children:({height:g,width:a})=>t.jsxs(_t,{style:{height:g,width:a},children:[t.jsx(Rt,{children:t.jsx(ze,{hideMemo:r})}),t.jsx(Ee,{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:Le,initialScrollOffset:0,children:Bt})]})})})},Bt=({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(Wt,{windowSize:d,children:t.jsx(Ct,{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)},Pt=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`
284
+ `,Pt=o.div`
285
285
  width: auto;
286
286
  `,Nt=o.div`
287
287
  display: flex;
288
288
  flex-direction: column;
289
- `,Wt=o.div`
289
+ `,Rt=o.div`
290
290
  top: ${i.sp0};
291
291
  left: ${i.sp0};
292
292
  padding-bottom: ${i.sp3};
293
293
  box-sizing: border-box;
294
294
  width: 100%;
295
295
  padding: ${e=>`${i.sp0} ${ge.paddingRight.valuePx(e.windowSize)} ${i.sp0} ${i.sp0}`};
296
- `,_t=o.div``,Ht=o.div`
296
+ `,Wt=o.div``,_t=o.div`
297
297
  display: flex;
298
298
  min-height: 100%;
299
299
  flex-direction: column;
@@ -311,14 +311,14 @@ import{J as A,d as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl 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
- `,Yt=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
- `,qt=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{Xt as i,Qt as n,ei as r,ti as s};
324
+ `;export{Qt as i,Xt as n,Zt as o,ei as r};
@@ -1,4 +1,4 @@
1
- import{D_ as Xf,D$ as Lt,E0 as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,E1 as Pa,hB as th,hC as rh,E2 as Gt,E3 as kt,h0 as nh,E4 as xr,E5 as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E6 as kl,E7 as Nl,hQ as ah,hN as sh,E8 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E9 as hh,dJ as dh,cU as ph,i$ as Dl,Ea as mh,bL as Tr,hF as xa,hK as gh,oO as Ml,iO as qr,Eb as Ne,ib as na,Ec as yh,j5 as vh,B as Re,Ed as ia,Ee as bh,gZ as wh,Ef as Eh,Eg as Fl,Eh as Sh,nm as qa,mT as _h,Ei as Rh,mZ as Zr,Ej as Oh,m$ as Th,Ek as Ze,mQ as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,El as Ph,np as jh,Em as xh,n6 as qh,nj as Lh,En as kh,na as Nh,Eo as Dh,Ep as _t,Eq as sa,Er as Mh,Es as Fh,lT as Uh,lZ as $l,Et as Vl,gu as Bh,D4 as Gl,Eu as $h,C_ as Vh,Ev as Gh,Ew as zh,m0 as Hh,Ex as Zh,D9 as Wh,CZ as Yh,qj as zl,Ey as Wr,Ez as Hl,A9 as ua,zX as Jh,Ac as Zl,z_ as Kh,EA as Xh,A3 as Qh,zR as ed,zU as td,EB as rd,Ag as nd,A6 as id,c4 as od,bd as ad,EC as sd,ED as ft,EE as ud,EF as cd,EG as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-DwXlACp-.js";import{j as N}from"./liveblocks-Lf8LVeH9.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-nVlxguQq.js";import{T as dd,d as dt,J as Lr,e as pe,z as be,P as pd,W as md,y as Pe,f as kr,g as gd,E as Je,F as Nt,j as pt,k as at,m as Nr,o as tt,X as yd,n as vd,I as nt,q as ca,r as it,Z as bd,Y as wd,u as Yr,s as Ed,t as Jl,v as Sd,w as Kl,O as Xl,A as Xo,C as _d,D as Rd,G as Od,K as Ql,L as Td,M as Id,_ as Ad,Q as Cd,S as Pd,U as jd,$ as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md}from"./index-Bkm6Mxfx.js";import{f as Fd}from"./analyticsHelper-C4Qu-lAN.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-BdfL-uia.js";import{D as Dr,n as Te,S as mt}from"./mui-Dg-yyLd1.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-Bn_xI0qf.js";import{r as ha}from"./empty-BfoY8avI.js";import{r as Yd,a as Jd,b as Kd,c as Xd}from"./constants-BSSpHQLd.js";import{r as Mt,a as Qd}from"./index-DQGwrG6i.js";import{r as ep}from"./index-CLP97b5b.js";import"./recharts-DVyIhUUu.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./url-3XfBQAPr.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]="a403ddd3-5159-4aa6-9b23-141111a5888e",e._sentryDebugIdIdentifier="sentry-dbid-a403ddd3-5159-4aa6-9b23-141111a5888e")}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-QRf7TPA6.js";import{j as N}from"./liveblocks-DzWLGwR5.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-DS5py-mq.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-DK3PYuee.js";import{f as Fd}from"./analyticsHelper-DVKjUmRh.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-MmJvanAX.js";import{D as Dr,n as Te,S as mt}from"./mui-CgqbPqeT.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-C5WTobSB.js";import{r as ha}from"./empty-wbHL4fCk.js";import{r as Yd,a as Jd,b as Kd,c as Xd}from"./constants-CO0CvGHR.js";import{r as Mt,a as Qd}from"./index-B2COPa4J.js";import{r as ep}from"./index-BMz5TN4Z.js";import"./recharts-CcfvjpA4.js";import"./lottie-C8IpdMqp.js";import"./analytics-Cmcqa01V.js";import"./lexical-DyUba00B.js";import"./url-B1m04Aj9.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%;