@zeniai/web-cockpit-ui 1.14.24-qa → 1.14.25-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 (242) hide show
  1. package/dist/assets/{ACHDetailsPage-DZv7I3Jm-YQnMOYp1.js → ACHDetailsPage-Dnaajiit-DPQvVIrY.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DCq95N_N-CXDNIqrC.js → AIPerformancePage-Daw-cRXC-BnOl0sSl.js} +24 -24
  3. package/dist/assets/{AccountInfoPage-wfDS5ToF-Dk38sAxC.js → AccountInfoPage-Dr_EV68J-Dy7B8Ixb.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-dgeBtGlm-D-b-iQe0.js → AccountInfoPageContent-CC5MUG47-DaadDuh7.js} +15 -15
  5. package/dist/assets/{AccountLockedInfoModal-CqjvVPUE-DQpjXn2Q.js → AccountLockedInfoModal-wwzfemk2-D_gLp3zY.js} +2 -2
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BJ1TTvni-CcW2jKAi.js → AccountReconDetailsDrawerPage-CxLOKPZL-DXp_tiIi.js} +5 -5
  7. package/dist/assets/{AccountRow-99zfxKet-C9Nd9F1S.js → AccountRow-CE24vibs-BeG7a0dl.js} +31 -31
  8. package/dist/assets/{AccountsPromoCardStack-CZwrQBcr-CmN3crLg.js → AccountsPromoCardStack-DIj8Lzw_-D6FaQOg3.js} +25 -25
  9. package/dist/assets/{AddAddressForCardDrawer-BcOX27nY-CtiOCTsA.js → AddAddressForCardDrawer-DkS25_j--r1d3UvOC.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CoW0Ppg4-J2VnTm3x.js → AddToWalletPage-Dea21gHA-Bp4QNxQm.js} +17 -17
  11. package/dist/assets/{AgingReportsPage-Dgi5oFl4-Ce7bMUR6.js → AgingReportsPage-B0QeJFi3-sZ5UMlim.js} +1 -1
  12. package/dist/assets/{AllUserItems-6iESftSq-CsmBRymW.js → AllUserItems-B4hCDMjV-gKfLm3-3.js} +7 -7
  13. package/dist/assets/{ApAgingDetailPage-jEL75hOV-JTEWmEwV.js → ApAgingDetailPage-DaJoS0dH-DfkxWfAu.js} +3 -3
  14. package/dist/assets/{AppBasePage-CMHbFdBh-Bo2XhsLy.js → AppBasePage-DssduDyW-DFTlQl-q.js} +5 -5
  15. package/dist/assets/{AppDrawerContent-NAyrnDCL-zWt12xZ6.js → AppDrawerContent-CbbgZnfp-DzI9LWAe.js} +6 -6
  16. package/dist/assets/{ApprovalRulesSettingsPage-BWraRVsT-sq_E7aI8.js → ApprovalRulesSettingsPage-BXmqQlwD-CWFKCLKr.js} +3 -3
  17. package/dist/assets/{ArAgingChart-DPrIHwSE-C_2WpeiM.js → ArAgingChart-D6JqUDEG-AFSroOat.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-CdNiD7uR-CME9SOhC.js → ArAgingDetailPage-DsmlwAqB--L9cmpiU.js} +1 -1
  19. package/dist/assets/{AttachmentView-Cmh726Zl-CgfzBbdX.js → AttachmentView-C1-yT0s8-CT_a09u3.js} +6 -6
  20. package/dist/assets/{BankAccountSection-jRnEB-Ut-5BYJoDk4.js → BankAccountSection-Cb6aph-a-DuZ4WmNC.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-KznYA-cf-DOVsFGdl.js → BankAccountWarningSection-EhX6uury-BPk65Kcm.js} +18 -18
  22. package/dist/assets/{BankConnectionsSettingsPage-BXrsOxcg-DTzvfI-B.js → BankConnectionsSettingsPage-CM5grE5E-kW8remzx.js} +9 -9
  23. package/dist/assets/{BillDetailPage-glKjF2MJ-D3l7IvWg.js → BillDetailPage-BK_uvtAn-1i2teGn-.js} +7 -7
  24. package/dist/assets/BillPayApprovalRuleDetailPage-9iw179oG-DBwy8M8j.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-jctlpXwj-CmhRHJvR.js → BillPayApprovalRulesPage-CodIhk9Z-BxI29Egp.js} +7 -7
  26. package/dist/assets/BillPayPromoPage-CmIXJyPx-qo9MiUmN.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-UfM6FOqW-DiGKIWDe.js → BillPaySetUpPage-A_oRpNoW-CzrXD8De.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-BfMIxeqM-1cKvDtpW.js → BillingSettingsPage-BEDmZgpH-CExdBU0e.js} +5 -5
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DhoLC2aT-D0k9QhkW.js → BillsBulkReviewDrawerPage-BZhQ9qq5-CCCPnCXA.js} +1 -1
  30. package/dist/assets/{BoxItem-CIOib-WX-DEJIIppW.js → BoxItem-7efiVHrX-gIWD7SzU.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Czf-y16x-CBCn2hfu.js → BusinessVerificationPage-CGyAMZF_-M7hgZV6x.js} +8 -8
  32. package/dist/assets/CardNumberSubText-DWvfR19t-DE7est1t.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-BOTxd8DW-CmEQ1WEw.js → CashbackDetailPage-CtUV5555-CGUzig_d.js} +19 -19
  34. package/dist/assets/{ChargeCardDetailPage-DbtvRfDc-xzBtT-ID.js → ChargeCardDetailPage-DDh9vz3a-Cnl8i_PL.js} +23 -23
  35. package/dist/assets/{ChargeCardListPage-Q1zat_TQ-0_0FZfyS.js → ChargeCardListPage-D8cV_Pir-Cr7nCz19.js} +18 -18
  36. package/dist/assets/{ChargeCardListTable-CKH-EZW4-Cd1KUnIO.js → ChargeCardListTable-DHS1cdle-DAwaOV_c.js} +19 -19
  37. package/dist/assets/ChargeCardPromoPage-CpOdwFtx-W_T6Yn6m.js +222 -0
  38. package/dist/assets/{ChargeCardSetupPage-DM15gWD1-WcsJHEqP.js → ChargeCardSetupPage-sV183SET-D5ryWFlf.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-xedf3XEE-DXuw1yy7.js → ChargeCardStatementsPage-C5VALN0g-DYKxahz3.js} +6 -6
  40. package/dist/assets/ChargeCardUtils-aPC5GoNp-DNIL0uw_.js +1 -0
  41. package/dist/assets/{ChaseOverlay-IbWtzNzT-DyjXkZNO.js → ChaseOverlay-De4Qu9qP-B6ZR5Jtp.js} +7 -7
  42. package/dist/assets/CheckDepositDrawerPage-Bf9BNkbA-DtOLd0xX.js +206 -0
  43. package/dist/assets/{CollapsableReportTable-jOFcWQi9-D9Cn8RFJ.js → CollapsableReportTable-C4NioPjf-CL8A5qpd.js} +109 -109
  44. package/dist/assets/{CompanyOfficerDetailsSection-DMCZTk1e-CdzOYXTm.js → CompanyOfficerDetailsSection-BjkrtiV9-wJhKxYTD.js} +14 -14
  45. package/dist/assets/{CompanyPassportCard-BbJLMFqe-CFYXrwOI.js → CompanyPassportCard-CXFn-wF8-DFs13HCt.js} +6 -6
  46. package/dist/assets/{CompanyPassportPage-BwCMcjB9-EhkSO3MY.js → CompanyPassportPage-BDB3rjFV-q4ymY5oH.js} +9 -9
  47. package/dist/assets/{CompleteProfile-Dz4laW45-t2WOdgnE.js → CompleteProfile-trSw9pbM-C9tjupH9.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-B2j3QxzW-C7Hrv_Rv.js → ConfettiBurst-DGVvcZr3-C4LVa8Qf.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-z2chPZUl-Bt138LfS.js → CreateOrEditVendorPage-C9Mf_ICr-Gp1eqMoH.js} +8 -8
  50. package/dist/assets/{CreditCardPaymentDrawerPage-Z9RiL1h7-9F216iMd.js → CreditCardPaymentDrawerPage-DWLfJzPP-Bux3br_f.js} +21 -21
  51. package/dist/assets/{CreditCardPaymentPlgSection-Cg-oo7DU-Br5JMnsp.js → CreditCardPaymentPlgSection-BDA8jYAa-Dyv79lbf.js} +13 -13
  52. package/dist/assets/{CurrencySelectField-CxNprN2u-CL181MHj.js → CurrencySelectField-BwDZkugY-CnGwREoZ.js} +5 -5
  53. package/dist/assets/{CustomerOnboardingActivationPage-diAJ07bX-CsQ5TTri.js → CustomerOnboardingActivationPage-B5MfS1sv-Baeo1JJB.js} +7 -7
  54. package/dist/assets/CustomerOnboardingContainerPage-udfu9eI--BS2ZxOvL.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton--8DBjaCm-DGUaOh56.js → CustomerOnboardingDetailPageSkeleton-CMo7leFT-AMqD-6Q4.js} +11 -11
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-Ccq8kI-v-D8yRunsk.js → CustomerOnboardingNoStepsPage-DRJaAZhA-iimuZEwJ.js} +2 -2
  57. package/dist/assets/{CustomerOnboardingPage-s3GNwP8c-CPXa6rx2.js → CustomerOnboardingPage-BKk_PDqM-D-4x8Jow.js} +3 -3
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-C-tToXNK-D-oPzPaT.js → CustomerOnboardingProductSuitePage-_Vl2g0gl-10ZLiwPM.js} +7 -7
  59. package/dist/assets/{Dashboard-BtcnzaY6-p3zeHNmW.js → Dashboard-els5FzHO-Dh7hNslD.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-C6jLfLtF-B5G4HLsH.js → DashboardReportPage-BkqXGUF0-DT4CcRgQ.js} +27 -27
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-s8Nl8CmH-zwQVOM7e.js → DashboardSidebarBackgroundAnimation-yg8GX_hV-CX2KQ6LO.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-Bm63W_1e-DVqMxFEK.js → DepositAccTransactionItem-CjHyYNYu-RBBjBoNW.js} +3 -3
  63. package/dist/assets/DepositAccTransactionListPage-B1rERpKn-DzZA-c5-.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-DX0BA5i3-amEgmkhH.js → DomesticWireDetailsPage-CoKdnOHK-BHUXWz4M.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-BcH72YTL-B62Er70B.js → DownloadOverlay-F_OSkI0t-BVAyHat1.js} +6 -6
  66. package/dist/assets/{DrawerPage-CzHhh0IP-Be7m4gY2.js → DrawerPage-CKRgC8zD-D0TMwLtR.js} +10 -10
  67. package/dist/assets/{EditPeoplePage-Z5btEDax-BebZCzVz.js → EditPeoplePage-CbHzmCDq-DfkIM-kP.js} +5 -5
  68. package/dist/assets/{EditReimbursementDetailPage-D_FsqRgU-BhAW7PtZ.js → EditReimbursementDetailPage-ChXC9rfg-5j-r9uid.js} +17 -17
  69. package/dist/assets/{EntityDetailPage-Bc4YVpPC-D4GtCT9-.js → EntityDetailPage-427PoMHb-DugrODtd.js} +3 -3
  70. package/dist/assets/{EntitySummarySection-Ba6AWxNi-L5EN9bhV.js → EntitySummarySection-bVBpyGBB-B2MApz9k.js} +9 -9
  71. package/dist/assets/ExpenseAutomationOverviewPage-DuVNFnJ1-DKgdA2WQ.js +222 -0
  72. package/dist/assets/{ExpenseAutomationPage-EjI20a6v-D5pEVPH_.js → ExpenseAutomationPage-Btw1vMsR-CWjy7SIj.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-562vstqT-CCL9eF19.js → ExpressPayPage-dxAJ34CZ-CQbAjueg.js} +8 -8
  74. package/dist/assets/{FeaturePreviewPage-eUvRNjsx-B0l2W-9A.js → FeaturePreviewPage-DV9L7b41-XD4D9byb.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-D60JM8h_-CckSxC9O.js → FollowStepsSection-DrwqT5qI-DLguenxm.js} +11 -11
  76. package/dist/assets/{GlobalReviewListPage-BpXEtrb4-DQ6Mw89s.js → GlobalReviewListPage-B8GTsN3z-DEt1AOjp.js} +7 -7
  77. package/dist/assets/{HelpButton-hflpTkYP-BPMkeu0J.js → HelpButton-BdkhmROe-Bd84gRvW.js} +4 -4
  78. package/dist/assets/{InformationCardStack-BsxmscQq-BVYoOHQR.js → InformationCardStack-B4kayaXA-jbXyNSEh.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-5JDl2mCA-D8idgd3z.js → InsightsCardStack-CtGUwH8B-C93opeZu.js} +9 -9
  80. package/dist/assets/InsightsSection-DLeJHy_5-CQC3yXku.js +27 -0
  81. package/dist/assets/{IntegrationsSettingsPage-MQDeidS6-j6Ew3-s2.js → IntegrationsSettingsPage-V5CRVTE7-CujfgQ2i.js} +5 -5
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-CpT4WPn3-emHrkTKE.js → InternationalWireSwiftDetailsPage-YScZkZ3T-B4isfB0V.js} +14 -14
  83. package/dist/assets/{InternationalWireVerificationPage-DlBFLwxy-laRMBnc9.js → InternationalWireVerificationPage-CU7nDSLB-57YsQsYb.js} +7 -7
  84. package/dist/assets/{InviteFormPage-D0QCEMkX-BO-lOazV.js → InviteFormPage-CuKrTHPL-D0pCRRCl.js} +17 -17
  85. package/dist/assets/{InvitePageListView-CVf8HrhY-mqZvxSGz.js → InvitePageListView-UnErwZjA-B6fQ6u5F.js} +24 -24
  86. package/dist/assets/{InvitePeoplePage-Dg7iuq2i-vvepYHu_.js → InvitePeoplePage-2Wt38URi-BnjdFSAB.js} +2 -2
  87. package/dist/assets/{InvoiceUploadSection-BuwWumE2-COAgE2f8.js → InvoiceUploadSection-DBeEv7pl-D7U5cZZb.js} +6 -6
  88. package/dist/assets/{IssueChargeCardPage-DL23WAiQ-BGDsNpha.js → IssueChargeCardPage-CtOVKu2u-BaMeYx1Q.js} +9 -9
  89. package/dist/assets/{LabeledAddressValue-CnL_9Mgq-CVpIDtQa.js → LabeledAddressValue-fMxbPIcj-L294sEHK.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-DLou-2Lm-hN3Yi48B.js → LabeledAddressValueField-DlUmtYXY-Cs_gnXQQ.js} +2 -2
  91. package/dist/assets/{LabeledControlledCheckBoxField-DqrqiFhz-Bu5rppjm.js → LabeledControlledCheckBoxField-zGMeMXy8-CgAXI_Cv.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CxnC4AFe-D-JkO1RP.js → LabeledCreatableSingleSelectField-B2tnkBes-WTYRlYy4.js} +2 -2
  93. package/dist/assets/LabeledDocumentField-DIZb6TGh-BGGslw6p.js +41 -0
  94. package/dist/assets/{LabeledDropDownFormattedTextField-BF37XlAJ-BaQcEb_i.js → LabeledDropDownFormattedTextField-g9EUyLAN-C6fgQW4J.js} +5 -5
  95. package/dist/assets/{LabeledText-D4fC1Hz2-VzfyK_lh.js → LabeledText-DpHcCRTu-D7mPb_6F.js} +2 -2
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DMxSLbjX-CJztlZ6l.js → LabeledUserSingleSelectWithSubtitlesField-CxqD4p8b-D40nlXRv.js} +10 -10
  97. package/dist/assets/{LabeledZeniRolesDropDownField-CTA3JLz4-BjYewmih.js → LabeledZeniRolesDropDownField-CCEWFs00-DoEA7vPs.js} +5 -5
  98. package/dist/assets/{LinkJETransactionPage-CLAyFAJh-BRCeFYVj.js → LinkJETransactionPage-CHRrLxA5-DUc0uYck.js} +8 -8
  99. package/dist/assets/{LowBalancePopup-TCSP5zrD-C-mSPg9_.js → LowBalancePopup-Ciah5OLh-BrGyf1Jf.js} +2 -2
  100. package/dist/assets/{MagicLinkACHDetailsPage-C9sNEDPT-LvQ8f8NK.js → MagicLinkACHDetailsPage-DS3oJgLQ-V288YZUD.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-D4C-a5QY-BaQEjwuD.js → MagicLinkDomesticWireDetailsPage-DKtf0MEV-Kf5NpYu0.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-oKAXWkRz-C3YaWr8p.js → MagicLinkInternationalWireDetailsPage-CyrBo1eH-BQjhU1d6.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-DTKe1Hxk-C9A401Wb.js → MagicLinkSuccessPage-Clyl0DAk-CRKqo-oj.js} +1 -1
  104. package/dist/assets/MagicLinkTitleSection-BVmJnjIM-CauR-pM0.js +17 -0
  105. package/dist/assets/{MailingDetailsSection-DOuPh_kK-BSVwPRCr.js → MailingDetailsSection-Gr8nHYJX-Bb0nQJ4z.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-Bn5picNg-BBLVilIj.js → MeetingCalenderPopup-Z8cw7xGj-CwGNacrF.js} +1 -1
  107. package/dist/assets/{Menu-D_vf2LDo-BFcfUwqs.js → Menu-DdtklnLU-BpofGVyT.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-DJZVD_j4-4y7IMDFB.js → MyBankConnectionsSettingsPage-6XMaaONC-CvUmwJnE.js} +14 -14
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-DyhXBMCi-D4oC_o0x.js → MyPendingActivationChargeCardListPage-CycEPGif-BJj28ies.js} +2 -2
  110. package/dist/assets/{MyProfileSettingsPage-gPNoKP10-DiBey7CP.js → MyProfileSettingsPage-FPXg5BVk-DGPfsKal.js} +7 -7
  111. package/dist/assets/{NavBarWithPicker-BlYfbDi0-BnGgNUZt.js → NavBarWithPicker-C1RdmaCB-C8vggXa3.js} +3 -3
  112. package/dist/assets/{NavigationArrow-CQ_K0Bon-CawXlbrW.js → NavigationArrow-BddVpdpR-DbkdAJbG.js} +1 -1
  113. package/dist/assets/{NavigationDots-CI0cjpQA-DLC_4Z2x.js → NavigationDots-XsH5foe--BOOtSigy.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-BHQiRWO8-CkuCSAal.js → NewGlobalMerchantPage-BDl4sMXs-CBuZEijk.js} +4 -4
  115. package/dist/assets/{NoDataChart-Dg1_sU_O-BSOy8Xqm.js → NoDataChart-DWgj32LB-BPsCyU00.js} +3 -3
  116. package/dist/assets/{NoDataTable-qTYBbL2H-DM9qxqvN.js → NoDataTable-CLJr9bOe-BrdyVD6V.js} +1 -1
  117. package/dist/assets/{NotFoundPage-DYjrSF7l-CQN0tUCx.js → NotFoundPage-UJYxc5Cc-D4p8kfwg.js} +1 -1
  118. package/dist/assets/{NotificationSettingsPage-DZHlnrbH-QzcGE4E_.js → NotificationSettingsPage-CrHnNMcu-Bg6vV-Qh.js} +11 -11
  119. package/dist/assets/NotificationsListConfig-BvqX-YNT-C3lBLq2n.js +1 -0
  120. package/dist/assets/{NotificationsPage-QgnztPHs-Dl0evqI4.js → NotificationsPage-z6CyuWlj-BwW1gi3t.js} +21 -21
  121. package/dist/assets/{OpExByVendorPage-_AMvFFwS-BI72ljun.js → OpExByVendorPage-imk8yOJ3-TtSwFlGK.js} +6 -6
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-DEiBNUrj.js → OverlayContainerPage-Bmu909Fo-BZWOYlah.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-D_3EfFjd-B-t4XzLD.js → PandLWithForecastPage-DDS9ThKq-Df5zmkm_.js} +7 -7
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Ch5yJBuG-DHGF0FaM.js → PaymentAccountSetupBillingAddressSection-Dtd3PnbX-DSXMtbLs.js} +8 -8
  125. package/dist/assets/{PeoplePage-DZr3Lusf-hEmQAyog.js → PeoplePage-x1LDFwDQ-Zd_bqkIV.js} +19 -19
  126. package/dist/assets/{PortfolioAllocationFormPage-Byu_8Js7-DS7y6gw-.js → PortfolioAllocationFormPage-hSjTvk25-ZQESLZ6G.js} +6 -6
  127. package/dist/assets/{PortfolioDetails-BH-sfG9j-DxGBZzz0.js → PortfolioDetails-B1dQC_Xa-ByVcQSW7.js} +5 -5
  128. package/dist/assets/{ProductsCarousel-C4J19mb--CD1XfI-1.js → ProductsCarousel-D9cvenZp-BWJI4cxP.js} +5 -5
  129. package/dist/assets/{PromoBaseCards-Bj4SLu8_-BIrkv3Tm.js → PromoBaseCards-nzemBKyd-CNE70VVz.js} +1 -1
  130. package/dist/assets/{QBOConnectionDialog-Bx6ZDEvY-BMKA6Yj_.js → QBOConnectionDialog-Cdh8vSaY-COlqnmsO.js} +7 -7
  131. package/dist/assets/{QBOSetupSection-BCdoUjwK-DBDhCM3w.js → QBOSetupSection-BWcvYjNb-nke4kL0N.js} +14 -14
  132. package/dist/assets/ReimbursementApprovalRuleDetailPage-C_oUUTHb-Cq_kOO5b.js +26 -0
  133. package/dist/assets/{ReimbursementApprovalRulesPage-CJLcH9Ov-Cig3L3Bd.js → ReimbursementApprovalRulesPage-CMmYiBA--CrdMeZfY.js} +33 -33
  134. package/dist/assets/{ReimbursementDetailPage-Ctgt3Dcz-f6KrZU7c.js → ReimbursementDetailPage-DHuJHhx2-BOxHjSFr.js} +10 -10
  135. package/dist/assets/{ReimbursementPromoPage-DCmevd5G-wQNAiqBv.js → ReimbursementPromoPage-DyMGQ-p6-BrIO-u3b.js} +7 -7
  136. package/dist/assets/{ReimbursementSetUpPage-Dc9xJUbM-BR8GmF7i.js → ReimbursementSetUpPage-h61-hzK3-BiumEfPp.js} +2 -2
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CKjHGxjw-CDUlYRNg.js → ReimbursementsBulkReviewDrawerPage-Dwx-V4Bz-DvuE1U30.js} +1 -1
  138. package/dist/assets/{ReloadCard-DxJMY9If-nW7iK9Fy.js → ReloadCard-DHExBNFX-DM0aXM9S.js} +5 -5
  139. package/dist/assets/{ReportTableViewSelector-lMBROmrI-N5GobH7z.js → ReportTableViewSelector-I-E8djHt-8CU2obFL.js} +8 -8
  140. package/dist/assets/{ReportsPage-DMYLnwc7-DCYlz8or.js → ReportsPage-BME0CMeV-Bmq0qbx4.js} +5 -5
  141. package/dist/assets/{RevenueChart-DD8vb3zi-C_UY7ZQL.js → RevenueChart-0Wc-f_WH-DcVxD5xk.js} +15 -15
  142. package/dist/assets/{ReviewDetailsPage-C-6hNb3q-KrkMkA8R.js → ReviewDetailsPage-BmGAqycE-in95VKyl.js} +15 -15
  143. package/dist/assets/{ReviewOverlay-sqbjCjkE-snBZ7y9m.js → ReviewOverlay-NgbFy65i-DibK2Nxh.js} +7 -7
  144. package/dist/assets/{RoleWithToolTip-BpMhPbAJ-DWdyATom.js → RoleWithToolTip-EJik-IDk-BzPBZfqT.js} +5 -5
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-D1uRcS4p-DVQ50rIP.js → ScheduleDetailsFixedAssetsPage-D3gHdT8C-BJd1IKXv.js} +8 -8
  146. package/dist/assets/{ScheduleDetailsPage-D8Cvxd7m-BnOiYhbP.js → ScheduleDetailsPage-OwtRLzyh-DW6B52KA.js} +3 -3
  147. package/dist/assets/{ScheduleSequenceTable-CvqXlh31-CwVMjXUG.js → ScheduleSequenceTable-TPeNlVLG-ChBzLHB_.js} +50 -50
  148. package/dist/assets/{ScreenRoutes-CI0AzXAT.js → ScreenRoutes-DzY9NZif.js} +1 -1
  149. package/dist/assets/{SetUpAccountSection-CDXmRiGQ-HkusFLSS.js → SetUpAccountSection-Cs6puvUd-Dhlo8Ufa.js} +16 -16
  150. package/dist/assets/{SetUpDefaultSection-VPie4JZS-4qiMaYlL.js → SetUpDefaultSection-B3K4uwNR-B18eEgx5.js} +4 -4
  151. package/dist/assets/{SignIn-9DfCxy9Q-D4JpW9pe.js → SignIn-waypOYzb-C46Nnd60.js} +7 -7
  152. package/dist/assets/{SignInScreen-BbLwe7Jj.js → SignInScreen-CYIRNr4n.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-Q5bQb3hk-DfgpHKj_.js → SpendManagementListViewPage-DSgh7ish-BAVvhcJ2.js} +3 -3
  154. package/dist/assets/{SpendManagementPerTabPage-CD-kDdxa-Dy7S4NDC.js → SpendManagementPerTabPage-DFR_RubK-CDWi9rmQ.js} +14 -14
  155. package/dist/assets/{SpendManagementSection-DGGOMGEz-pjZ87EhJ.js → SpendManagementSection-OISpkX-z-BJ53j2-y.js} +10 -10
  156. package/dist/assets/{SpendMgmtSetupAccountSection-CjqaRCUW-CRO2vJ11.js → SpendMgmtSetupAccountSection-jAvWpgvm-CJIvPJ3w.js} +12 -12
  157. package/dist/assets/{StatementItem-1vBLASxl-DdTLs-OC.js → StatementItem-GW12r1Iw-CJvbUqer.js} +5 -5
  158. package/dist/assets/StatementsPage-C7fma8fv-M1h2v7ej.js +58 -0
  159. package/dist/assets/{StatusSwitcher-efLzDuyw-xo5uppxy.js → StatusSwitcher-DFTN_Xis-BPYWMG2w.js} +7 -7
  160. package/dist/assets/{SubTabSwitcher-BfYlJKJ6-B-F59cPN.js → SubTabSwitcher-BZxGbsNY-DslvQO7v.js} +7 -7
  161. package/dist/assets/{SummaryCard-BsPejHZG-Brt0nr39.js → SummaryCard-BNLe-1HR-C_RfG6jc.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-CkdITpbn-CxUxcnHV.js → TaskManagementPage-9ZENc76E-CE4s9qMu.js} +11 -11
  163. package/dist/assets/{TimeRangeSwitcher-DVB0vP5W-WYEIuuWg.js → TimeRangeSwitcher-Ccz3adIk-CsyW9hcg.js} +2 -2
  164. package/dist/assets/{TimeframeSwitcher-BmhH741X-DEVymh4n.js → TimeframeSwitcher-kDwlck-n-DwbTkb9h.js} +5 -5
  165. package/dist/assets/TimeframeSwitcherWithToggle-DGsAhHA2-B5P9Cxhq.js +31 -0
  166. package/dist/assets/{TopExCard-DBuo1QUF-DOV-VWcR.js → TopExCard-D_qKivD5-DDImpDJG.js} +7 -7
  167. package/dist/assets/{TopExDetailPage-CGPgaWRb-BdIi4GHq.js → TopExDetailPage-Diptq28B-D5TEFrQN.js} +7 -7
  168. package/dist/assets/TransactionDetailPage-6PT_A8cy-BA99-Eyl.js +912 -0
  169. package/dist/assets/{TransactionList-DP9cEVya-BXcbKAlV.js → TransactionList-B5HwjwQ_-CXKBG0MM.js} +10 -10
  170. package/dist/assets/{TransactionListBig-B_s15U1P-B6nmm19w.js → TransactionListBig-DIJl_L0P-B6wBk0g5.js} +16 -16
  171. package/dist/assets/{TransactionListPage-DpYLFl8A-CG4bgQSq.js → TransactionListPage-CLY5ad85-BnXLO91d.js} +4 -4
  172. package/dist/assets/{TransactionVendorDetailPage-DqqSV533-ClW_Ym1b.js → TransactionVendorDetailPage-Bm1jseAb-SlaBV7lN.js} +4 -4
  173. package/dist/assets/{TransferDrawerPage-CxdQzo0m-DJdXjena.js → TransferDrawerPage-C376Jj1t-CTODsEty.js} +31 -31
  174. package/dist/assets/{TreasuryOverviewPage-D7vqj60i-DqlHCc2-.js → TreasuryOverviewPage-9i9ft-2g-DXeo8ZrJ.js} +21 -21
  175. package/dist/assets/{TreasuryPromoPage-BuxEHMpT-CoWfKW9J.js → TreasuryPromoPage-CKUSAyi9-CWpKX4Ov.js} +10 -10
  176. package/dist/assets/{TreasurySetupPage-BIfbbeL3-D1Mjek99.js → TreasurySetupPage-Cor8zLR3-CBLdmPc2.js} +5 -5
  177. package/dist/assets/{TreasuryStatementsPage-BeUdQZBc-Byh46stc.js → TreasuryStatementsPage-CteWlPmm-gyjWv12T.js} +3 -3
  178. package/dist/assets/{TreasuryTaxLetterPage-uFRMjqLn-DqSDq6k1.js → TreasuryTaxLetterPage-CBeQAQFE-BUwspbw-.js} +3 -3
  179. package/dist/assets/{TreasuryTransferOrReviewPage-BWybwqhc-C3uU9hVX.js → TreasuryTransferOrReviewPage-CgochQAe-bc5ZSOJG.js} +37 -37
  180. package/dist/assets/{TrendChart-7kPgcETh-BaCfzFDE.js → TrendChart-BNjNpGGV-DeJ54QC4.js} +3 -3
  181. package/dist/assets/{TrendWithTransactions-DPby1I5u-DuRZBcAW.js → TrendWithTransactions-DLq6FRIX-CmF8BV30.js} +5 -5
  182. package/dist/assets/{UncategorizedAccountsMappingPage-DEkSWWRY-Dv2mcgjG.js → UncategorizedAccountsMappingPage-CfRZdUo4-D3rE1qoU.js} +8 -8
  183. package/dist/assets/{UnitIntegrationPage-B5yzIJDg-CjDfkeUr.js → UnitIntegrationPage-DmWneokh-DK7To6Ke.js} +3 -3
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-Deu0hM2I-DMqRpRdl.js → UploadAdditionalDocumentOverlay-Ck3jSIy3-B5jtbgfv.js} +8 -8
  185. package/dist/assets/{Vendor2FAPopup-DUyiI_-r-5dHx30Bc.js → Vendor2FAPopup-CpVKMC-V-DzVTm8mc.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-DycUU3MN-mmDLeV3K.js → VendorACHDetailsPage-CGZq9rHs-Cb3Eg4e2.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-B9pWIvXP-BYqLZBRP.js → VendorDetailPage-DjbJdkG0-BD_TM_IR.js} +17 -17
  188. package/dist/assets/{VendorDomesticWireDetailsPage-Cs35uQOp-Cg9TxdaS.js → VendorDomesticWireDetailsPage-D-m_AY6V-DSr1i1UN.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-BeuSWFCY-FB3D0rN0.js → VendorFiling1099EditablePage-BBQUHvZF-CQkAcjv9.js} +6 -6
  190. package/dist/assets/{VendorFirstReviewPage-ANhBsl69-DvP6Pv5V.js → VendorFirstReviewPage-BKiSfhh5-D6n53p2q.js} +12 -12
  191. package/dist/assets/{VendorInternationalWireDetailsPage-BShiEKaz-DZwsuWAH.js → VendorInternationalWireDetailsPage-CbiTxo4--51iz2iZc.js} +8 -8
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-B_NlK1ak-fUcmsjpu.js → VendorInternationalWireSwiftDetailsPage-gRVzJ9zM-BqqvVE2d.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-BclWgEaB-Dx-ETZud.js → VendorsAccountsSection-BvY35sKD-PIKLHY63.js} +2 -2
  194. package/dist/assets/{VerifyDevice-CRrOo66b-Bqzt75Zy.js → VerifyDevice-DvG46tbP-C_qTlqhh.js} +4 -4
  195. package/dist/assets/{VideoPopup-qS-ig_U0-CFnqbh5J.js → VideoPopup-BTi1tNaK-DDZF4fDp.js} +3 -3
  196. package/dist/assets/{WarningsDrawerPage-DgRtxLoa-BtAoBPQW.js → WarningsDrawerPage-CrY3Lv_X-CyET4uGb.js} +21 -21
  197. package/dist/assets/{ZeniAccountDetailPage-B66nIr0V-D0Vvqj6R.js → ZeniAccountDetailPage-D0Sp-9r0-BxhU3RD9.js} +24 -24
  198. package/dist/assets/{ZeniAccountListViewPage-CWhZKmoP-UtAi1p2f.js → ZeniAccountListViewPage-DE2S97vd-Cci7TkWe.js} +12 -12
  199. package/dist/assets/ZeniAccountNavBarPieces-D3E4bGUf-v477yzXX.js +14 -0
  200. package/dist/assets/{ZeniAccountPromoPage-C-oF3-HO-Dhnar7Lt.js → ZeniAccountPromoPage-qk4MGE20-D8g-1o6A.js} +21 -21
  201. package/dist/assets/{ZeniAccountSetupPage-DY-nCuiT-gbHJrTbG.js → ZeniAccountSetupPage-BvCOc6V4-SXAof7Nr.js} +3 -3
  202. package/dist/assets/{ZeniCopyright-rY1T9xhh-DuSeCVwe.js → ZeniCopyright-DZEJD4DK-DFCIndJ-.js} +1 -1
  203. package/dist/assets/ZeniTransferAmountSlider-CGrjDEO_-DqBN-dZT.js +63 -0
  204. package/dist/assets/{analyticsHelper-DUPAuOy2.js → analyticsHelper-BxXohuM3.js} +1 -1
  205. package/dist/assets/{analyticsHelper-BcJgRhqY-CuYHNkab.js → analyticsHelper-C4OJsqY1-DEUl6kM9.js} +1 -1
  206. package/dist/assets/{chartTypes-BoblEsVF-XjODWukX.js → chartTypes-4WPzsIf3-TZwbMJ8c.js} +1 -1
  207. package/dist/assets/{commonDimensions-CFd7y7qU-DRU-Xx_W.js → commonDimensions-Btr3Ruk2--EjhN8RD.js} +1 -1
  208. package/dist/assets/{detailCommon-MYixZ3RD-BU_WVLw2.js → detailCommon-BffITRe2-DyxxqlhA.js} +5 -5
  209. package/dist/assets/{downloadPdf-CgupyHRa-23YMr18r.js → downloadPdf-EaFUuw1_-CTrXJ5wG.js} +1 -1
  210. package/dist/assets/{index-Dg4A8nvL.js → index-B9FgmOrh.js} +1347 -1347
  211. package/dist/assets/{mapLoadingInProgressToTreeNode-B8Y_euQR-Lurb19iR.js → mapLoadingInProgressToTreeNode-Nh09VvTY-7rzf-GR1.js} +1 -1
  212. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-jBSc45Na-BxkTVZ8G.js → mapSectionWithAcOnlyToTreeNode-CqrS4-sA--1xO43Gq.js} +1 -1
  213. package/dist/assets/{mapSpacerToTreeNode-COy8gZAM-COWpkVf-.js → mapSpacerToTreeNode-BVsiguz2-Dg8tyVW2.js} +1 -1
  214. package/dist/assets/{mapTimeframeBalancesToTreeNode-BodkMcFj-B7W1kIkp.js → mapTimeframeBalancesToTreeNode-C6LIzL1r-CL44LvLk.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-DXla81BF-Cx9i4sqP.js → mapTimeframeBalancesToTreeNode-CHMw_ZJj-Bp4XrEqv.js} +1 -1
  216. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-XVJ2Hm74-DfeVdWNH.js → mapTimeframeHeaderLoadingInProgressToTreeNode-vhz8vVqo-Bzd7AJ3d.js} +1 -1
  217. package/dist/assets/{toCOABalancesWithID-CndsNNsv-CKK4tSuL.js → toCOABalancesWithID-vlVs7Gn4-ccOvypAU.js} +1 -1
  218. package/dist/assets/{toChartData-B9eYLI57-CNEoJSOd.js → toChartData-nXazR01S-D88QfXJq.js} +1 -1
  219. package/dist/assets/{treasuryColorHelper-D4iDeX95-D0czat0Y.js → treasuryColorHelper-DqciQwbz-CiEpGb56.js} +1 -1
  220. package/dist/assets/{uploadAttachment-C2I6mBBB-BB5ap_aT.js → uploadAttachment-BQCLr45m-C_KMpfLC.js} +9 -9
  221. package/dist/assets/{uploadReceipts-dxsKhm9I-f6XSvbix.js → uploadReceipts-dxsKhm9I-kOCmsgfk.js} +1 -1
  222. package/dist/index.html +1 -1
  223. package/package.json +3 -3
  224. package/dist/assets/BillPayApprovalRuleDetailPage-DyH2jp6G-DBnZXx-2.js +0 -27
  225. package/dist/assets/BillPayPromoPage-DGyWwW1t-BAGJEnpn.js +0 -84
  226. package/dist/assets/CardNumberSubText-B8CivrXd-Bv0oLYl_.js +0 -21
  227. package/dist/assets/ChargeCardPromoPage-BRkny-dl-D9_i54WA.js +0 -222
  228. package/dist/assets/ChargeCardUtils-D4KmVUMt-CZbHQ6K3.js +0 -1
  229. package/dist/assets/CheckDepositDrawerPage-BCIvt4pQ-Ds9p--_E.js +0 -206
  230. package/dist/assets/CustomerOnboardingContainerPage-BZzvupuA-KOUquQmH.js +0 -1
  231. package/dist/assets/DepositAccTransactionListPage-D4QcTw4n-8VgPk6Ib.js +0 -66
  232. package/dist/assets/ExpenseAutomationOverviewPage-Cg0sM_PI-94AIzN51.js +0 -222
  233. package/dist/assets/InsightsSection-DsO5tfQL-BFXwjc-s.js +0 -27
  234. package/dist/assets/LabeledDocumentField-By7zV2VD-DNFqIRCg.js +0 -41
  235. package/dist/assets/MagicLinkTitleSection-BZ9PbTY5-CljXn46a.js +0 -17
  236. package/dist/assets/NotificationsListConfig-BSBZHM3y--H3hUPl8.js +0 -1
  237. package/dist/assets/ReimbursementApprovalRuleDetailPage-DsTMXav9-CvbEeovQ.js +0 -26
  238. package/dist/assets/StatementsPage-cCluGN33-BaiT4gPd.js +0 -58
  239. package/dist/assets/TimeframeSwitcherWithToggle-B1bMIGal-BfV_webc.js +0 -31
  240. package/dist/assets/TransactionDetailPage-BUP-dxVE-BaqindUV.js +0 -912
  241. package/dist/assets/ZeniAccountNavBarPieces-C6MQhfnU-DOLMr0pF.js +0 -14
  242. package/dist/assets/ZeniTransferAmountSlider-Bh5zkWst-BY8RrzMr.js +0 -63
@@ -1,4 +1,4 @@
1
- import{a2 as G,m as me,hJ as ee,g9 as fe,ex as Je,hK as we,a as Me,hL as Ve,ca as _e,cb as Pe,j as a,M as be,F as Fe,bV as $e,bX as Ne,bY as qe,a4 as Re,hM as We,hN as Be,b as he,hO as Se,hP as Ue,cn as ze,e as Ye,i1 as Ge,ge as re,s as R,g as De,C as Ce,cd as He,hQ as Ke,hR as Qe,hS as Xe,o as _}from"./index-Dg4A8nvL.js";import{b as m,n as B}from"./vendor-rkTZJa59.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-CvqXlh31-CwVMjXUG.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const W={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=B.div`
1
+ import{a2 as G,l as me,hJ as ee,g9 as fe,ex as Je,hK as we,a as Me,hL as Ve,ca as _e,cb as Pe,j as a,B as be,F as Fe,bV as Ne,bX as qe,bY as Be,a4 as Re,hM as We,hN as $e,b as he,hO as Se,hP as Ue,cn as ze,e as Ye,i1 as Ge,ge as re,q as R,g as De,C as Ce,cd as He,hQ as Ke,hR as Qe,hS as Xe,o as _}from"./index-B9FgmOrh.js";import{b as m,n as $}from"./vendor-rkTZJa59.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-TPeNlVLG-ChBzLHB_.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const W={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=$.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -9,29 +9,29 @@ import{a2 as G,m as me,hJ as ee,g9 as fe,ex as Je,hK as we,a as Me,hL as Ve,ca a
9
9
  border-top-right-radius: ${_.sp2};
10
10
  border-bottom-left-radius: ${_.sp0};
11
11
  border-bottom-right-radius: ${_.sp0};
12
- `,H=B.div`
12
+ `,H=$.div`
13
13
  display: flex;
14
14
  flex: 1;
15
15
  background-color: ${t=>t.theme.colors.grey3};
16
16
  min-height: 1px;
17
- `,st=B.div`
17
+ `,st=$.div`
18
18
  display: flex;
19
19
  flex-direction: column;
20
20
  margin: ${_.sp4} ${_.sp8} ${_.sp0} ${_.sp8};
21
- `,V=(t,d)=>`${t}.${d}`;function ot({sectionId:t,jeScheduledTransaction:d,updateStatus:g,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:y,allMonthOptions:v,uncategorizedAccounts:k,selectedAccount:A,selectedClass:P,selectedAccumulatedDepreciationCategory:F,assetId:L,selectedDate:J,selectedMonths:T,selectedPostingDay:j,lastDayOfMonth:E,isDisabled:h,allowCreateSchedule:w,onCreateSchedule:i,onDelete:ae,onMarkAsComplete:Q}){const{resetField:f}=ze(),se=V(t,"scheduleExpenseCategory"),oe=V(t,"scheduleClass"),ne=V(t,"accumulatedDepreciationCategory"),de=V(t,"assetId"),X=V(t,"startDate"),S=V(t,"postingDate"),r=V(t,"months"),e=be.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,b=o=>s.filter(N=>N.qboId===o)[0]?.qboId,x=o=>p.filter(N=>N.qboId===o)[0]?.qboId,ie=o=>u.filter(N=>N.classId===o)[0]?.accountingClassNumber,K={valueContainer:o=>({...o,overflow:"unset"})},I=Ye(),U=Ge({startDate:d.baseTransaction.date,endDate:d.baseTransaction.date.add(1,"year")}),z=()=>{f(S)},Y=j==null&&E==null?void 0:E===!0?"lastDayOfMonth":"day",$=o=>[k.expense?.qboId,k.income?.qboId].includes(o),Z=()=>{d.jeScheduleId!=null&&ae(d.jeScheduleId)},D=d.scheduledJournalEntry.flatMap(o=>o.error);return a.jsxs(st,{children:[a.jsx(tt,{status:d.status.code,jeScheduleId:d.jeScheduleId,allowCreateSchedule:w,onDelete:Z,isUpdating:g==="In-Progress",onMarkAsComplete:Q,onCreateSchedule:i}),a.jsx(he,{controller:w===!0,children:a.jsxs(at,{children:[a.jsx(re,{isDisabled:D.includes("debit_category_deleted")?void 0:h,isLoading:!1,label:{label:e.expenseCategory,width:W.labelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:D.includes("debit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:se,placeholder:e.expenseCategoryPlaceholder,valueToId:o=>b(o),defaultValue:{selectedOption:A,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:K},disableCurrentOption:$,style:{borderTopLeftRadius:R[2],borderTopRightRadius:R[2]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:h,isLoading:!1,label:{label:e.class,width:W.labelWidth.value(I)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:oe,placeholder:e.classPlaceholder,valueToId:o=>ie(o),defaultValue:{selectedOption:P,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:K},style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:D.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:e.accumulatedDepreciationCategory,width:W.depCategoryLabelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:D.includes("credit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:ne,placeholder:e.accumulatedDepreciationCategoryPlaceholder,valueToId:o=>x(o),defaultValue:{selectedOption:F,allOptions:y},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:K},disableCurrentOption:$,style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(He,{label:{label:e.assetId,width:W.labelWidth.value(I)},style:{width:"auto"},text:{type:"text",name:de,defaultValue:L,placeholder:e.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:R[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(H,{}),a.jsx(Ke,{label:{label:e.startMonth,width:W.labelWidth.value(I)},monthSelectorField:{name:X,placeholder:e.startMonthPlaceholder,defaultValue:J,showDownChevron:!1,isDisabled:h,monthsAndYears:U},isDisabled:h}),a.jsx(H,{}),a.jsx(lt,{label:{label:e.postingDate,width:W.labelWidth.value(I)},isDisabled:h,dayOfMonthField:{placeholder:e.postingDatePlaceholder,name:S,defaultValue:{type:Y,dayOfMonth:j},onSaveClick:()=>{},onCancelClick:z}}),a.jsx(H,{}),a.jsx(Qe,{label:{label:e.months,width:W.labelWidth.value(I)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:e.monthsPlaceholder,defaultValue:{selectedOption:T!=null?v[T-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(he,{controller:w===!1,children:a.jsx(Xe,{text:e.scheduleMarkedAsCompleted})})]})}const nt=B.div`
21
+ `,V=(t,d)=>`${t}.${d}`;function ot({sectionId:t,jeScheduledTransaction:d,updateStatus:g,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:y,allMonthOptions:v,uncategorizedAccounts:k,selectedAccount:A,selectedClass:P,selectedAccumulatedDepreciationCategory:F,assetId:L,selectedDate:J,selectedMonths:T,selectedPostingDay:j,lastDayOfMonth:E,isDisabled:h,allowCreateSchedule:w,onCreateSchedule:i,onDelete:ae,onMarkAsComplete:Q}){const{resetField:f}=ze(),se=V(t,"scheduleExpenseCategory"),oe=V(t,"scheduleClass"),ne=V(t,"accumulatedDepreciationCategory"),de=V(t,"assetId"),X=V(t,"startDate"),S=V(t,"postingDate"),r=V(t,"months"),e=be.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,b=o=>s.filter(q=>q.qboId===o)[0]?.qboId,x=o=>p.filter(q=>q.qboId===o)[0]?.qboId,ie=o=>u.filter(q=>q.classId===o)[0]?.accountingClassNumber,K={valueContainer:o=>({...o,overflow:"unset"})},I=Ye(),U=Ge({startDate:d.baseTransaction.date,endDate:d.baseTransaction.date.add(1,"year")}),z=()=>{f(S)},Y=j==null&&E==null?void 0:E===!0?"lastDayOfMonth":"day",N=o=>[k.expense?.qboId,k.income?.qboId].includes(o),Z=()=>{d.jeScheduleId!=null&&ae(d.jeScheduleId)},D=d.scheduledJournalEntry.flatMap(o=>o.error);return a.jsxs(st,{children:[a.jsx(tt,{status:d.status.code,jeScheduleId:d.jeScheduleId,allowCreateSchedule:w,onDelete:Z,isUpdating:g==="In-Progress",onMarkAsComplete:Q,onCreateSchedule:i}),a.jsx(he,{controller:w===!0,children:a.jsxs(at,{children:[a.jsx(re,{isDisabled:D.includes("debit_category_deleted")?void 0:h,isLoading:!1,label:{label:e.expenseCategory,width:W.labelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:D.includes("debit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:se,placeholder:e.expenseCategoryPlaceholder,valueToId:o=>b(o),defaultValue:{selectedOption:A,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:K},disableCurrentOption:N,style:{borderTopLeftRadius:R[2],borderTopRightRadius:R[2]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:h,isLoading:!1,label:{label:e.class,width:W.labelWidth.value(I)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:oe,placeholder:e.classPlaceholder,valueToId:o=>ie(o),defaultValue:{selectedOption:P,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:K},style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:D.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:e.accumulatedDepreciationCategory,width:W.depCategoryLabelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:D.includes("credit_category_deleted")?De.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:ne,placeholder:e.accumulatedDepreciationCategoryPlaceholder,valueToId:o=>x(o),defaultValue:{selectedOption:F,allOptions:y},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:K},disableCurrentOption:N,style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(He,{label:{label:e.assetId,width:W.labelWidth.value(I)},style:{width:"auto"},text:{type:"text",name:de,defaultValue:L,placeholder:e.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:R[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(H,{}),a.jsx(Ke,{label:{label:e.startMonth,width:W.labelWidth.value(I)},monthSelectorField:{name:X,placeholder:e.startMonthPlaceholder,defaultValue:J,showDownChevron:!1,isDisabled:h,monthsAndYears:U},isDisabled:h}),a.jsx(H,{}),a.jsx(lt,{label:{label:e.postingDate,width:W.labelWidth.value(I)},isDisabled:h,dayOfMonthField:{placeholder:e.postingDatePlaceholder,name:S,defaultValue:{type:Y,dayOfMonth:j},onSaveClick:()=>{},onCancelClick:z}}),a.jsx(H,{}),a.jsx(Qe,{label:{label:e.months,width:W.labelWidth.value(I)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:e.monthsPlaceholder,defaultValue:{selectedOption:T!=null?v[T-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(he,{controller:w===!1,children:a.jsx(Xe,{text:e.scheduleMarkedAsCompleted})})]})}const nt=$.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: ${t=>t.theme.colors.grey4};
28
- `,dt=B.div`
28
+ `,dt=$.div`
29
29
  display: flex;
30
30
  z-index: 2;
31
- `,it=B.div`
31
+ `,it=$.div`
32
32
  display: flex;
33
33
  flex-direction: column;
34
- `,ct=B.div`
34
+ `,ct=$.div`
35
35
  display: flex;
36
36
  justify-content: center;
37
- `,ge="scheduleDetailsPage",te="scheduleDetailsFixedAssetsSection",le="scheduleDetailsListSection",rt=be.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ut}}=rt;function jt({analytics:t,controllerUserDetails:d,expenseAutomationSelectedPeriod:g,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:y,onJELinkClick:v,onSave:k,onDelete:A,onDetailPageChange:P,onViewLinkedJE:F,onTransactionClick:L,onMarkAsComplete:J,removeJeScheduleTransactionKey:T}){const[j,E]=m.useState(!1),h=G(l.updateStatus.fetchState),w=G(l.selectedJEScheduleTransaction?.status.code),i=G(l.deleteStatus.fetchState),[ae,Q]=m.useState(!1),f=l.scheduleDetailsLocalData.fixed_assets,se=G(f.jeScheduleDetails.length),oe=G(f.selectedDate),ne=G(f.selectedDayOfMonth),[de,X]=m.useState(!0),S=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,e=l.selectedJEScheduleTransaction,b=me.getFirstControllerEmail(d.controllers),x=me.getFirstControllerId(d.controllerUserIds),ie={onOkClick:()=>{E(!1),p()},onCancelClick:()=>{E(!1)}},K=n=>{const C=e?.scheduledJournalEntry[n];r!=null&&C!=null&&e!=null&&t.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...Ue(r)},scheduleExpenseCategoryAndClass:{expenseCategory:e.jeDebit.account?.accountName??null,expenseClass:e.jeDebit.accountingClass?.className??null},journalEntryDetails:{...Se(C)},vendorName:S!=null?S.name:M.strings.hyphen,controllerEmails:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:e.jeCredit.account?.accountName??null,assetId:e.otherAttributes.assetId??null}}),v(n)},I=(n,C)=>{const O=e?.scheduledJournalEntry[C];r!=null&&O!=null&&e!=null&&t.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:e.jeDebit.account?.accountName??null,expenseClass:e.jeDebit.accountingClass?.className??null},journalEntryDetails:Se(O),controllerEmails:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:e.jeCredit.account?.accountName??null,assetId:e.otherAttributes.assetId??null}}),F(n)};m.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&e!=null&&t.trackScheduleDetailsSaved(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),c===!0&&e?.jeScheduleTransactionKey!=null&&w==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&T(e.jeScheduleTransactionKey,{month:g.month,year:g.year}),p())},[g,w,l.selectedJEScheduleTransaction?.status.code,t,p,h,T,c,l.updateStatus,e,r,S,b,x]),m.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const U=fe(l.accountListNestedAccountHierarchy),z=fe(l.allDepreciationAccountListNestedAccountHierarchy),Y=Je(l.classListNestedAccountHierarchy),$=we("fixed_assets"),Z=m.useRef(),D=Me({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,U,Y,z,$,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,U,Y,z,$,u.entityAutoCompleteView)}),o=D.watch("scheduleDetailsFixedAssetsSection.vendor");m.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&Z.current?.(Ve(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const N=(n,C)=>{s.onAutoCompleteInputChange?.(n,"vendor"),Z.current=C},xe=D.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),ve=async(n,C)=>{const O=C[te].vendor;if(n.includes("vendor")){const ce=O?.defaultOptions.map(q=>q.value);if(O?.selectedOption!=null&&ce?.includes(O.selectedOption)!==!0){const q=u.entityAutoCompleteView.vendor.find(Le=>Le.id===O.selectedOption);q!=null&&D.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:q.name??"",value:q.id}])}}const ke=n.includes("amount");if(P(C,ke),n.includes("amount")){const ce=n.split(".")[1],q=parseInt(ce);Q(!0),y(q,l.selectedJEScheduleTransaction?.jeScheduleId)}};m.useEffect(()=>{const n=D.watch((C,{name:O})=>{O!=null&&C!=null&&_e(()=>ve(O,C))});return()=>{n.unsubscribe()}}),m.useEffect(()=>{(se!==f.jeScheduleDetails.length||oe!==f.selectedDate||ne!==f.selectedDayOfMonth)&&ae===!0&&(D.resetField(le,{defaultValue:ue(l,U,Y,z,$,u.entityAutoCompleteView)[le],keepDirty:!1}),Q(!1))},[f.jeScheduleDetails.length,f.selectedDate,f.selectedDayOfMonth]),m.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&X(!1)},[l.selectedJEScheduleTransaction?.status.code]);const pe=(Pe(D.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&f.jeScheduleDetails.length>0,je=()=>{pe===!0?E(!0):(r!=null&&e!=null&&t.trackScheduleDetailsCanceled(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),p())},Ee=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Oe=m.useCallback(()=>{X(!0)},[]),Ae=m.useCallback(()=>{r!=null&&e!=null&&t.trackScheduleDetailsMarkedAsCompleted(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),J()},[t,b,x,e,J,r,S]),Te=m.useCallback(n=>{r!=null&&e!=null&&t.trackScheduleDetailsDeleted(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),A(n)},[t,b,x,e,A,r,S]),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;return a.jsxs(nt,{children:[a.jsx(ht,{title:Ie??M.strings.empty,onNavigateBack:je,onTransactionClick:Ee}),a.jsx(dt,{children:a.jsx(Fe,{...D,children:a.jsxs("form",{style:{width:"100%"},id:ye(ge),onSubmit:xe,children:[a.jsx(pt,{vendorLoadOptions:N,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:U,allClassOptions:Y,allMonthOptions:$,allDepAccountOptions:z,onEditAmount:y,onDelete:Te,onJELinkClick:K,onViewLinkedJE:I,onMarkAsComplete:Ae,allowCreateSchedule:de,onCreateSchedule:Oe}),j===!0?a.jsx($e,{titleComponent:a.jsx(qe,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Ne,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ie}):null,pe===!0?a.jsx(Re,{formId:ye(ge),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{E(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function ht({onNavigateBack:t,onTransactionClick:d,title:g}){return a.jsx(Be,{title:g,tooltipTextOnLaunch:ut.showTransactionTooltip,onBackClick:t,onLaunchClick:d,style:{zIndex:3}})}function pt({vendorField:t,vendorLoadOptions:d,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:y,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:A,onDelete:P,onJELinkClick:F,onViewLinkedJE:L,onMarkAsComplete:J}){const T=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(j=>j.error).filter(j=>!!j)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(it,{children:[a.jsx(ct,{children:a.jsx(Ze,{vendorLoadOptions:d,vendorField:t,vendorFieldName:V(te,"vendor"),vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:l,errors:T,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(ot,{sectionId:te,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:y,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:J,onCreateSchedule:k}),a.jsx(he,{controller:v===!0,children:a.jsx(et,{sectionId:le,totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:A,onJELinkClick:F,onViewLinkedJE:L,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ye=t=>`${t}_form`,ue=(t,d,g,l,s,u)=>{const c=t.scheduleDetailsLocalData.fixed_assets,p=c.selectedAccount,y=c.selectedVendor,v=y!=null?u.vendor.find(i=>i.zeniId===y.id):void 0,k=p!=null?t.allAccountList.find(i=>i.accountId===p):void 0,A=c.selectedAccumulatedDepreciationCategory,P=A!=null?t.allDepreciationAccountList.find(i=>i.accountId===A):void 0,F=c.assetId,L=c.selectedClass,J=L!=null?t.allClassList.find(i=>i.classId===L):void 0,T=c.selectedMonths,j=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,w=E==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:d},accumulatedDepreciationCategory:{selectedOption:P?.qboId,allOptions:l},assetId:F,scheduleClass:{selectedOption:J?.classId,allOptions:g},startDate:c.selectedDate,months:{selectedOption:T,allOptions:s},vendor:{selectedOption:v?.id??y?.id,defaultOptions:We(u,v??y)},postingDate:{type:w,dayOfMonth:E}},[le]:j}};export{jt as default};
37
+ `,ge="scheduleDetailsPage",te="scheduleDetailsFixedAssetsSection",le="scheduleDetailsListSection",rt=be.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ut}}=rt;function jt({analytics:t,controllerUserDetails:d,expenseAutomationSelectedPeriod:g,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:y,onJELinkClick:v,onSave:k,onDelete:A,onDetailPageChange:P,onViewLinkedJE:F,onTransactionClick:L,onMarkAsComplete:J,removeJeScheduleTransactionKey:T}){const[j,E]=m.useState(!1),h=G(l.updateStatus.fetchState),w=G(l.selectedJEScheduleTransaction?.status.code),i=G(l.deleteStatus.fetchState),[ae,Q]=m.useState(!1),f=l.scheduleDetailsLocalData.fixed_assets,se=G(f.jeScheduleDetails.length),oe=G(f.selectedDate),ne=G(f.selectedDayOfMonth),[de,X]=m.useState(!0),S=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,e=l.selectedJEScheduleTransaction,b=me.getFirstControllerEmail(d.controllers),x=me.getFirstControllerId(d.controllerUserIds),ie={onOkClick:()=>{E(!1),p()},onCancelClick:()=>{E(!1)}},K=n=>{const C=e?.scheduledJournalEntry[n];r!=null&&C!=null&&e!=null&&t.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...Ue(r)},scheduleExpenseCategoryAndClass:{expenseCategory:e.jeDebit.account?.accountName??null,expenseClass:e.jeDebit.accountingClass?.className??null},journalEntryDetails:{...Se(C)},vendorName:S!=null?S.name:M.strings.hyphen,controllerEmails:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:e.jeCredit.account?.accountName??null,assetId:e.otherAttributes.assetId??null}}),v(n)},I=(n,C)=>{const O=e?.scheduledJournalEntry[C];r!=null&&O!=null&&e!=null&&t.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:e.jeDebit.account?.accountName??null,expenseClass:e.jeDebit.accountingClass?.className??null},journalEntryDetails:Se(O),controllerEmails:b,controllerUserIds:x,fixedAssetsDetails:{accumulatedDepreciationCategory:e.jeCredit.account?.accountName??null,assetId:e.otherAttributes.assetId??null}}),F(n)};m.useEffect(()=>{h==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(r!=null&&e!=null&&t.trackScheduleDetailsSaved(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),c===!0&&e?.jeScheduleTransactionKey!=null&&w==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&T(e.jeScheduleTransactionKey,{month:g.month,year:g.year}),p())},[g,w,l.selectedJEScheduleTransaction?.status.code,t,p,h,T,c,l.updateStatus,e,r,S,b,x]),m.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const U=fe(l.accountListNestedAccountHierarchy),z=fe(l.allDepreciationAccountListNestedAccountHierarchy),Y=Je(l.classListNestedAccountHierarchy),N=we("fixed_assets"),Z=m.useRef(),D=Me({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,U,Y,z,N,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,U,Y,z,N,u.entityAutoCompleteView)}),o=D.watch("scheduleDetailsFixedAssetsSection.vendor");m.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&Z.current?.(Ve(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const q=(n,C)=>{s.onAutoCompleteInputChange?.(n,"vendor"),Z.current=C},xe=D.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),ve=async(n,C)=>{const O=C[te].vendor;if(n.includes("vendor")){const ce=O?.defaultOptions.map(B=>B.value);if(O?.selectedOption!=null&&ce?.includes(O.selectedOption)!==!0){const B=u.entityAutoCompleteView.vendor.find(Le=>Le.id===O.selectedOption);B!=null&&D.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:B.name??"",value:B.id}])}}const ke=n.includes("amount");if(P(C,ke),n.includes("amount")){const ce=n.split(".")[1],B=parseInt(ce);Q(!0),y(B,l.selectedJEScheduleTransaction?.jeScheduleId)}};m.useEffect(()=>{const n=D.watch((C,{name:O})=>{O!=null&&C!=null&&_e(()=>ve(O,C))});return()=>{n.unsubscribe()}}),m.useEffect(()=>{(se!==f.jeScheduleDetails.length||oe!==f.selectedDate||ne!==f.selectedDayOfMonth)&&ae===!0&&(D.resetField(le,{defaultValue:ue(l,U,Y,z,N,u.entityAutoCompleteView)[le],keepDirty:!1}),Q(!1))},[f.jeScheduleDetails.length,f.selectedDate,f.selectedDayOfMonth]),m.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&X(!1)},[l.selectedJEScheduleTransaction?.status.code]);const pe=(Pe(D.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&f.jeScheduleDetails.length>0,je=()=>{pe===!0?E(!0):(r!=null&&e!=null&&t.trackScheduleDetailsCanceled(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),p())},Ee=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Oe=m.useCallback(()=>{X(!0)},[]),Ae=m.useCallback(()=>{r!=null&&e!=null&&t.trackScheduleDetailsMarkedAsCompleted(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),J()},[t,b,x,e,J,r,S]),Te=m.useCallback(n=>{r!=null&&e!=null&&t.trackScheduleDetailsDeleted(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),A(n)},[t,b,x,e,A,r,S]),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;return a.jsxs(nt,{children:[a.jsx(ht,{title:Ie??M.strings.empty,onNavigateBack:je,onTransactionClick:Ee}),a.jsx(dt,{children:a.jsx(Fe,{...D,children:a.jsxs("form",{style:{width:"100%"},id:ye(ge),onSubmit:xe,children:[a.jsx(pt,{vendorLoadOptions:q,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:U,allClassOptions:Y,allMonthOptions:N,allDepAccountOptions:z,onEditAmount:y,onDelete:Te,onJELinkClick:K,onViewLinkedJE:I,onMarkAsComplete:Ae,allowCreateSchedule:de,onCreateSchedule:Oe}),j===!0?a.jsx(Ne,{titleComponent:a.jsx(Be,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(qe,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ie}):null,pe===!0?a.jsx(Re,{formId:ye(ge),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{E(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function ht({onNavigateBack:t,onTransactionClick:d,title:g}){return a.jsx($e,{title:g,tooltipTextOnLaunch:ut.showTransactionTooltip,onBackClick:t,onLaunchClick:d,style:{zIndex:3}})}function pt({vendorField:t,vendorLoadOptions:d,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:y,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:A,onDelete:P,onJELinkClick:F,onViewLinkedJE:L,onMarkAsComplete:J}){const T=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(j=>j.error).filter(j=>!!j)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(it,{children:[a.jsx(ct,{children:a.jsx(Ze,{vendorLoadOptions:d,vendorField:t,vendorFieldName:V(te,"vendor"),vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:l,errors:T,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(ot,{sectionId:te,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions:y,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:J,onCreateSchedule:k}),a.jsx(he,{controller:v===!0,children:a.jsx(et,{sectionId:le,totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:A,onJELinkClick:F,onViewLinkedJE:L,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ye=t=>`${t}_form`,ue=(t,d,g,l,s,u)=>{const c=t.scheduleDetailsLocalData.fixed_assets,p=c.selectedAccount,y=c.selectedVendor,v=y!=null?u.vendor.find(i=>i.zeniId===y.id):void 0,k=p!=null?t.allAccountList.find(i=>i.accountId===p):void 0,A=c.selectedAccumulatedDepreciationCategory,P=A!=null?t.allDepreciationAccountList.find(i=>i.accountId===A):void 0,F=c.assetId,L=c.selectedClass,J=L!=null?t.allClassList.find(i=>i.classId===L):void 0,T=c.selectedMonths,j=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,w=E==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:d},accumulatedDepreciationCategory:{selectedOption:P?.qboId,allOptions:l},assetId:F,scheduleClass:{selectedOption:J?.classId,allOptions:g},startDate:c.selectedDate,months:{selectedOption:T,allOptions:s},vendor:{selectedOption:v?.id??y?.id,defaultOptions:We(u,v??y)},postingDate:{type:w,dayOfMonth:E}},[le]:j}};export{jt as default};
@@ -1,4 +1,4 @@
1
- import{a2 as $,m as ie,hJ as Q,g9 as Ae,ex as Je,hK as Ie,a as Le,hL as we,ca as Me,cb as Ve,j as a,M as De,F as Pe,bV as Fe,bX as $e,bY as _e,a4 as Ne,hM as Be,hN as ze,b as re,hO as pe,hP as Ue,cn as qe,e as Re,ge as me,s as X,g as We,C as Ke,hQ as He,hR as Ye,hS as Ge,o as L}from"./index-Dg4A8nvL.js";import{b as D,n as P}from"./vendor-rkTZJa59.js";import{i as Qe,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-CvqXlh31-CwVMjXUG.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const z={labelWidth:new Ke(160,160,160)},tt=P.div`
1
+ import{a2 as $,l as ie,hJ as G,g9 as Ae,ex as Je,hK as Ie,a as Le,hL as we,ca as Me,cb as Ve,j as a,B as De,F as Pe,bV as Fe,bX as $e,bY as _e,a4 as Be,hM as Ne,hN as qe,b as re,hO as pe,hP as ze,cn as Ue,e as Re,ge as me,q as X,g as We,C as Ke,hQ as He,hR as Qe,hS as Ye,o as L}from"./index-B9FgmOrh.js";import{b as D,n as P}from"./vendor-rkTZJa59.js";import{i as Ge,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-TPeNlVLG-ChBzLHB_.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const q={labelWidth:new Ke(160,160,160)},tt=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -18,7 +18,7 @@ import{a2 as $,m as ie,hJ as Q,g9 as Ae,ex as Je,hK as Ie,a as Le,hL as we,ca as
18
18
  display: flex;
19
19
  flex-direction: column;
20
20
  margin: ${L.sp4} ${L.sp8} ${L.sp0} ${L.sp8};
21
- `,_=(e,o)=>`${e}.${o}`;function at({sectionId:e,jeScheduledTransaction:o,updateStatus:m,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:b,allMonthOptions:n,uncategorizedAccounts:p,selectedAccount:r,selectedClass:C,selectedDate:w,selectedMonths:J,selectedPostingDay:O,lastDayOfMonth:k,isDisabled:S,allowCreateSchedule:v,onCreateSchedule:u,onDelete:le,onMarkAsComplete:F}){const{resetField:U}=qe(),q=_(e,"scheduleExpenseCategory"),R=_(e,"scheduleClass"),ae=_(e,"startDate"),N=_(e,"postingDate"),y=_(e,"months"),f=De.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,se=d=>t.filter(B=>B.qboId===d)[0]?.qboId,ne=d=>i.filter(B=>B.classId===d)[0]?.accountingClassNumber,W={valueContainer:d=>({...d,overflow:"unset"})},I=Re(),x=st({startDate:o.baseTransaction.date,endDate:o.baseTransaction.date.add(1,"year")}),h=()=>{U(N)},s=O==null&&k==null?void 0:k===!0?"lastDayOfMonth":"day",E=d=>[p.expense?.qboId,p.income?.qboId].includes(d),j=()=>{o.jeScheduleId!=null&&le(o.jeScheduleId)},K=o.scheduledJournalEntry.flatMap(d=>d.error);return a.jsxs(lt,{children:[a.jsx(Ze,{isUpdating:m==="In-Progress",status:o.status.code,jeScheduleId:o.jeScheduleId,allowCreateSchedule:v,onDelete:j,onMarkAsComplete:F,onCreateSchedule:u}),a.jsx(re,{controller:v===!0,children:a.jsxs(tt,{children:[a.jsx(me,{isDisabled:K.includes("debit_category_deleted")?void 0:S,isLoading:!1,label:{label:f.expenseCategory,width:z.labelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:K.includes("debit_category_deleted")?We.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:q,placeholder:f.expenseCategoryPlaceholder,valueToId:d=>se(d),defaultValue:{selectedOption:r,allOptions:l},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:W},disableCurrentOption:E,style:{borderTopLeftRadius:X[2],borderTopRightRadius:X[2]}}),a.jsx(Z,{}),a.jsx(me,{isDisabled:S,isLoading:!1,label:{label:f.class,width:z.labelWidth.value(I)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:R,placeholder:f.classPlaceholder,valueToId:d=>ne(d),defaultValue:{selectedOption:C,allOptions:b},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:W},style:{borderTopLeftRadius:X[0],borderTopRightRadius:X[0]}}),a.jsx(Z,{}),a.jsx(He,{label:{label:f.startMonth,width:z.labelWidth.value(I)},monthSelectorField:{name:ae,placeholder:f.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:S,monthsAndYears:x},isDisabled:S}),a.jsx(Z,{}),a.jsx(et,{label:{label:f.postingDate,width:z.labelWidth.value(I)},isDisabled:S,dayOfMonthField:{placeholder:f.postingDatePlaceholder,name:N,defaultValue:{type:s,dayOfMonth:O},onSaveClick:()=>{},onCancelClick:h}}),a.jsx(Z,{}),a.jsx(Ye,{label:{label:f.months,width:z.labelWidth.value(I)},singleSelectNumericField:{name:y,isDisabled:S,placeholder:f.monthsPlaceholder,defaultValue:{selectedOption:J!=null?n[J-1]:void 0,allOptions:n},registerOptions:{required:!0,validate:d=>!!d.selectedOption}}})]})}),a.jsx(re,{controller:v===!1,children:a.jsx(Ge,{text:f.scheduleMarkedAsCompleted})})]})}const st=e=>{const o={},m=e.endDate.year()-e.startDate.year()+1,l=e.endDate.year(),t=e.startDate.year();return{years:Array(m).fill(l).map((i,b)=>{const n=i-b,p=n.toString();let r=[];if(n===t){const C=e.startDate.month();r=e.startDate.localeData().monthsShort(),C!==0&&r.splice(0,C)}else r=ie.zeniDate(`${n}-01-01`).localeData().monthsShort();return o[p]=r,p}).reverse(),months:o}},nt=P.div`
21
+ `,_=(e,o)=>`${e}.${o}`;function at({sectionId:e,jeScheduledTransaction:o,updateStatus:m,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:b,allMonthOptions:n,uncategorizedAccounts:p,selectedAccount:r,selectedClass:C,selectedDate:w,selectedMonths:J,selectedPostingDay:O,lastDayOfMonth:k,isDisabled:S,allowCreateSchedule:v,onCreateSchedule:u,onDelete:le,onMarkAsComplete:F}){const{resetField:z}=Ue(),U=_(e,"scheduleExpenseCategory"),R=_(e,"scheduleClass"),ae=_(e,"startDate"),B=_(e,"postingDate"),y=_(e,"months"),f=De.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,se=d=>t.filter(N=>N.qboId===d)[0]?.qboId,ne=d=>i.filter(N=>N.classId===d)[0]?.accountingClassNumber,W={valueContainer:d=>({...d,overflow:"unset"})},I=Re(),x=st({startDate:o.baseTransaction.date,endDate:o.baseTransaction.date.add(1,"year")}),h=()=>{z(B)},s=O==null&&k==null?void 0:k===!0?"lastDayOfMonth":"day",E=d=>[p.expense?.qboId,p.income?.qboId].includes(d),j=()=>{o.jeScheduleId!=null&&le(o.jeScheduleId)},K=o.scheduledJournalEntry.flatMap(d=>d.error);return a.jsxs(lt,{children:[a.jsx(Ze,{isUpdating:m==="In-Progress",status:o.status.code,jeScheduleId:o.jeScheduleId,allowCreateSchedule:v,onDelete:j,onMarkAsComplete:F,onCreateSchedule:u}),a.jsx(re,{controller:v===!0,children:a.jsxs(tt,{children:[a.jsx(me,{isDisabled:K.includes("debit_category_deleted")?void 0:S,isLoading:!1,label:{label:f.expenseCategory,width:q.labelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:K.includes("debit_category_deleted")?We.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:U,placeholder:f.expenseCategoryPlaceholder,valueToId:d=>se(d),defaultValue:{selectedOption:r,allOptions:l},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:W},disableCurrentOption:E,style:{borderTopLeftRadius:X[2],borderTopRightRadius:X[2]}}),a.jsx(Z,{}),a.jsx(me,{isDisabled:S,isLoading:!1,label:{label:f.class,width:q.labelWidth.value(I)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:R,placeholder:f.classPlaceholder,valueToId:d=>ne(d),defaultValue:{selectedOption:C,allOptions:b},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:W},style:{borderTopLeftRadius:X[0],borderTopRightRadius:X[0]}}),a.jsx(Z,{}),a.jsx(He,{label:{label:f.startMonth,width:q.labelWidth.value(I)},monthSelectorField:{name:ae,placeholder:f.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:S,monthsAndYears:x},isDisabled:S}),a.jsx(Z,{}),a.jsx(et,{label:{label:f.postingDate,width:q.labelWidth.value(I)},isDisabled:S,dayOfMonthField:{placeholder:f.postingDatePlaceholder,name:B,defaultValue:{type:s,dayOfMonth:O},onSaveClick:()=>{},onCancelClick:h}}),a.jsx(Z,{}),a.jsx(Qe,{label:{label:f.months,width:q.labelWidth.value(I)},singleSelectNumericField:{name:y,isDisabled:S,placeholder:f.monthsPlaceholder,defaultValue:{selectedOption:J!=null?n[J-1]:void 0,allOptions:n},registerOptions:{required:!0,validate:d=>!!d.selectedOption}}})]})}),a.jsx(re,{controller:v===!1,children:a.jsx(Ye,{text:f.scheduleMarkedAsCompleted})})]})}const st=e=>{const o={},m=e.endDate.year()-e.startDate.year()+1,l=e.endDate.year(),t=e.startDate.year();return{years:Array(m).fill(l).map((i,b)=>{const n=i-b,p=n.toString();let r=[];if(n===t){const C=e.startDate.month();r=e.startDate.localeData().monthsShort(),C!==0&&r.splice(0,C)}else r=ie.zeniDate(`${n}-01-01`).localeData().monthsShort();return o[p]=r,p}).reverse(),months:o}},nt=P.div`
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  width: 100%;
@@ -34,4 +34,4 @@ import{a2 as $,m as ie,hJ as Q,g9 as Ae,ex as Je,hK as Ie,a as Le,hL as we,ca as
34
34
  `,ct=P.div`
35
35
  display: flex;
36
36
  justify-content: center;
37
- `,Se="scheduleDetailsPage",ee="scheduleDetailsSection",te="scheduleDetailsListSection",it=De.getLocalizedStrings(),{common:A,jeSchedules:{scheduleDetails:rt}}=it;function xt({analytics:e,controllerUserDetails:o,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,scheduleTab:t,usedInExpenseAutomation:i,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:n,onMarkAsComplete:p,onNavigateBack:r,onEditAmount:C,onJELinkClick:w,onSave:J,onDelete:O,onDetailPageChange:k,onViewLinkedJE:S,onTransactionClick:v,removeJeScheduleTransactionKey:u}){const[le,F]=D.useState(!1),U=$(l.updateStatus.fetchState),q=$(l.selectedJEScheduleTransaction?.status.code),R=$(l.deleteStatus.fetchState),[ae,N]=D.useState(!1),y=l.scheduleDetailsLocalData.prepaid_expenses,f=$(y.jeScheduleDetails.length),se=$(y.selectedDate),ne=$(y.selectedDayOfMonth),[W,I]=D.useState(!0),x=l.selectedJEScheduleTransaction?.vendor,h=l.selectedJEScheduleTransaction?.baseTransaction,s=l.selectedJEScheduleTransaction,E=ie.getFirstControllerEmail(o.controllers),j=ie.getFirstControllerId(o.controllerUserIds),K={onOkClick:()=>{F(!1),r()},onCancelClick:()=>{F(!1)}},d=c=>{const g=s?.scheduledJournalEntry[c];h!=null&&g!=null&&s!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:t,transaction:{...Ue(h)},scheduleExpenseCategoryAndClass:{expenseCategory:s.jeDebit.account?.accountName??null,expenseClass:s.jeDebit.accountingClass?.className??null},journalEntryDetails:{...pe(g)},vendorName:x!=null?x.name:A.strings.hyphen,controllerEmails:E,controllerUserIds:j}),w(c)},B=(c,g)=>{const T=s?.scheduledJournalEntry[g];h!=null&&T!=null&&s!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:s.jeDebit.account?.accountName??null,expenseClass:s.jeDebit.accountingClass?.className??null},journalEntryDetails:pe(T),controllerEmails:E,controllerUserIds:j}),S(c)};D.useEffect(()=>{U==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(h!=null&&s!=null&&e.trackScheduleDetailsSaved(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),i===!0&&s?.jeScheduleTransactionKey!=null&&q==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(s.jeScheduleTransactionKey,{month:m.month,year:m.year}),r())},[q,l.selectedJEScheduleTransaction?.status.code,e,r,m,U,l.updateStatus,u,t,i,s,h,x,E,j]),D.useEffect(()=>{R==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[R,l.deleteStatus,r]);const H=Ae(l.accountListNestedAccountHierarchy),Y=Je(l.classListNestedAccountHierarchy),G=Ie(t),ue=D.useRef(),M=Le({mode:"all",reValidateMode:"onChange",defaultValues:ce(l,H,Y,G,n.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ce(l,H,Y,G,n.entityAutoCompleteView)}),oe=M.watch("scheduleDetailsSection.vendor");D.useEffect(()=>{n.entityAutoCompleteView.fetchState==="Completed"&&ue.current?.(we(n.entityAutoCompleteView))},[n.entityAutoCompleteView.fetchState]);const Ce=(c,g)=>{b.onAutoCompleteInputChange?.(c,"vendor"),ue.current=g},ye=M.handleSubmit(()=>{J(l.selectedJEScheduleTransaction?.jeScheduleId)}),ge=async(c,g)=>{const T=g[ee].vendor;if(c.includes("vendor")){const de=T?.defaultOptions.map(V=>V.value);if(T?.selectedOption!=null&&de?.includes(T.selectedOption)!==!0){const V=n.entityAutoCompleteView.vendor.find(ke=>ke.id===T.selectedOption);V!=null&&M.setValue("scheduleDetailsSection.vendor.defaultOptions",[{label:V.name??A.strings.empty,value:V.id}])}}const Oe=c.includes("amount");if(k(g,Oe),c.includes("amount")){const de=c.split(".")[1],V=parseInt(de);N(!0),C(V,l.selectedJEScheduleTransaction?.jeScheduleId)}};D.useEffect(()=>{const c=M.watch((g,{name:T})=>{T!=null&&g!=null&&Me(()=>ge(T,g))});return()=>{c.unsubscribe()}}),D.useEffect(()=>{(f!==y.jeScheduleDetails.length||se!==y.selectedDate||ne!==y.selectedDayOfMonth)&&ae===!0&&(M.resetField(te,{defaultValue:ce(l,H,Y,G,n.entityAutoCompleteView)[te],keepDirty:!1}),N(!1))},[y.jeScheduleDetails.length,y.selectedDate,y.selectedDayOfMonth]),D.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&I(!1)},[l.selectedJEScheduleTransaction?.status.code]);const he=(Ve(M.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&y.jeScheduleDetails.length>0,be=()=>{he===!0?F(!0):(h!=null&&s!=null&&e.trackScheduleDetailsCanceled(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),r())},ve=()=>{l.selectedJEScheduleTransaction!=null&&v({id:l.selectedJEScheduleTransaction?.baseTransaction.id,type:l.selectedJEScheduleTransaction?.baseTransaction.type})},xe=D.useCallback(()=>{I(!0)},[]),Ee=D.useCallback(()=>{h!=null&&s!=null&&e.trackScheduleDetailsMarkedAsCompleted(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),p()},[e,s,p,t,h,x,E,j]),je=D.useCallback(c=>{h!=null&&s!=null&&e.trackScheduleDetailsDeleted(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),O(c)},[e,s,O,t,h,x,E,j]),Te=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(c=>c.error??[]).filter(c=>!!c)??[])?.includes("vendor_deleted")===!0?oe?.defaultOptions.find(c=>c.value===oe?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name;return a.jsxs(nt,{children:[a.jsx(ut,{onNavigateBack:be,onTransactionClick:ve,title:Te??A.strings.empty}),a.jsx(ot,{children:a.jsx(Pe,{...M,children:a.jsxs("form",{style:{width:"100%"},id:fe(Se),onSubmit:ye,children:[a.jsx(ht,{vendorLoadOptions:Ce,vendorField:oe,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:n,scheduleDetailsView:l,allAccountOptions:H,allClassOptions:Y,allMonthOptions:G,allowCreateSchedule:W,onEditAmount:C,onDelete:je,onJELinkClick:d,onViewLinkedJE:B,onMarkAsComplete:Ee,onCreateSchedule:xe}),le===!0?a.jsx(Fe,{titleComponent:a.jsx(_e,{children:A.confirmationPopup.discardTitle}),descriptionComponent:a.jsx($e,{children:A.confirmationPopup.discardDescription}),primaryButtonText:A.confirmationPopup.discard,secondaryButtonText:A.confirmationPopup.cancel,proceedButtonVariant:"danger",action:K}):null,he===!0?a.jsx(Ne,{formId:fe(Se),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:()=>{F(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function ut({title:e,onNavigateBack:o,onTransactionClick:m}){return a.jsx(ze,{title:e,tooltipTextOnLaunch:rt.showTransactionTooltip,onBackClick:o,onLaunchClick:m,style:{zIndex:3}})}function ht({vendorField:e,vendorLoadOptions:o,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:t,allAccountOptions:i,allClassOptions:b,allMonthOptions:n,allowCreateSchedule:p,onCreateSchedule:r,onMarkAsComplete:C,onEditAmount:w,onDelete:J,onJELinkClick:O,onViewLinkedJE:k}){const S=t.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(v=>v.error??[]).filter(v=>!!v)??[];return t.selectedJEScheduleTransaction!=null?a.jsxs(dt,{children:[a.jsx(ct,{children:a.jsx(Qe,{errors:S,vendorLoadOptions:o,vendorField:e,vendorFieldName:_(ee,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,transaction:t.selectedJEScheduleTransaction.baseTransaction,vendor:t.selectedJEScheduleTransaction.vendor})}),a.jsx(at,{sectionId:ee,jeScheduledTransaction:t.selectedJEScheduleTransaction,allAccountOptions:i,allAccountList:t.allAccountList,allClassList:t.allClassList,allClassOptions:b,allMonthOptions:n,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:p,onCreateSchedule:r,onDelete:J,onMarkAsComplete:C,updateStatus:t.deleteStatus.fetchState}),a.jsx(re,{controller:p===!0,children:a.jsx(Xe,{sectionId:te,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:w,onJELinkClick:O,onViewLinkedJE:k,jeScheduleId:t.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const fe=e=>`${e}_form`,ce=(e,o,m,l,t)=>{const i=e.scheduleDetailsLocalData.prepaid_expenses,b=i.selectedAccount,n=i.selectedVendor,p=n!=null?t.vendor.find(u=>u.zeniId===n.id):void 0,r=b!=null?e.allAccountList.find(u=>u.accountId===b):void 0,C=i.selectedClass,w=C!=null?e.allClassList.find(u=>u.classId===C):void 0,J=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,S=i.lastDayOfMonth,v=k==null&&S==null?void 0:S===!0?"lastDayOfMonth":"day";return{[ee]:{scheduleExpenseCategory:{selectedOption:r?.qboId,allOptions:o},scheduleClass:{selectedOption:w?.classId,allOptions:m},startDate:i.selectedDate,months:{selectedOption:J,allOptions:l},vendor:{selectedOption:p?.id??n?.id,defaultOptions:Be(t,p??n)},postingDate:{type:v,dayOfMonth:k}},[te]:O}};export{xt as default};
37
+ `,Se="scheduleDetailsPage",ee="scheduleDetailsSection",te="scheduleDetailsListSection",it=De.getLocalizedStrings(),{common:A,jeSchedules:{scheduleDetails:rt}}=it;function xt({analytics:e,controllerUserDetails:o,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,scheduleTab:t,usedInExpenseAutomation:i,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:n,onMarkAsComplete:p,onNavigateBack:r,onEditAmount:C,onJELinkClick:w,onSave:J,onDelete:O,onDetailPageChange:k,onViewLinkedJE:S,onTransactionClick:v,removeJeScheduleTransactionKey:u}){const[le,F]=D.useState(!1),z=$(l.updateStatus.fetchState),U=$(l.selectedJEScheduleTransaction?.status.code),R=$(l.deleteStatus.fetchState),[ae,B]=D.useState(!1),y=l.scheduleDetailsLocalData.prepaid_expenses,f=$(y.jeScheduleDetails.length),se=$(y.selectedDate),ne=$(y.selectedDayOfMonth),[W,I]=D.useState(!0),x=l.selectedJEScheduleTransaction?.vendor,h=l.selectedJEScheduleTransaction?.baseTransaction,s=l.selectedJEScheduleTransaction,E=ie.getFirstControllerEmail(o.controllers),j=ie.getFirstControllerId(o.controllerUserIds),K={onOkClick:()=>{F(!1),r()},onCancelClick:()=>{F(!1)}},d=c=>{const g=s?.scheduledJournalEntry[c];h!=null&&g!=null&&s!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:t,transaction:{...ze(h)},scheduleExpenseCategoryAndClass:{expenseCategory:s.jeDebit.account?.accountName??null,expenseClass:s.jeDebit.accountingClass?.className??null},journalEntryDetails:{...pe(g)},vendorName:x!=null?x.name:A.strings.hyphen,controllerEmails:E,controllerUserIds:j}),w(c)},N=(c,g)=>{const T=s?.scheduledJournalEntry[g];h!=null&&T!=null&&s!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:s.jeDebit.account?.accountName??null,expenseClass:s.jeDebit.accountingClass?.className??null},journalEntryDetails:pe(T),controllerEmails:E,controllerUserIds:j}),S(c)};D.useEffect(()=>{z==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(h!=null&&s!=null&&e.trackScheduleDetailsSaved(G({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),i===!0&&s?.jeScheduleTransactionKey!=null&&U==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(s.jeScheduleTransactionKey,{month:m.month,year:m.year}),r())},[U,l.selectedJEScheduleTransaction?.status.code,e,r,m,z,l.updateStatus,u,t,i,s,h,x,E,j]),D.useEffect(()=>{R==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[R,l.deleteStatus,r]);const H=Ae(l.accountListNestedAccountHierarchy),Q=Je(l.classListNestedAccountHierarchy),Y=Ie(t),ue=D.useRef(),M=Le({mode:"all",reValidateMode:"onChange",defaultValues:ce(l,H,Q,Y,n.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ce(l,H,Q,Y,n.entityAutoCompleteView)}),oe=M.watch("scheduleDetailsSection.vendor");D.useEffect(()=>{n.entityAutoCompleteView.fetchState==="Completed"&&ue.current?.(we(n.entityAutoCompleteView))},[n.entityAutoCompleteView.fetchState]);const Ce=(c,g)=>{b.onAutoCompleteInputChange?.(c,"vendor"),ue.current=g},ye=M.handleSubmit(()=>{J(l.selectedJEScheduleTransaction?.jeScheduleId)}),ge=async(c,g)=>{const T=g[ee].vendor;if(c.includes("vendor")){const de=T?.defaultOptions.map(V=>V.value);if(T?.selectedOption!=null&&de?.includes(T.selectedOption)!==!0){const V=n.entityAutoCompleteView.vendor.find(ke=>ke.id===T.selectedOption);V!=null&&M.setValue("scheduleDetailsSection.vendor.defaultOptions",[{label:V.name??A.strings.empty,value:V.id}])}}const Oe=c.includes("amount");if(k(g,Oe),c.includes("amount")){const de=c.split(".")[1],V=parseInt(de);B(!0),C(V,l.selectedJEScheduleTransaction?.jeScheduleId)}};D.useEffect(()=>{const c=M.watch((g,{name:T})=>{T!=null&&g!=null&&Me(()=>ge(T,g))});return()=>{c.unsubscribe()}}),D.useEffect(()=>{(f!==y.jeScheduleDetails.length||se!==y.selectedDate||ne!==y.selectedDayOfMonth)&&ae===!0&&(M.resetField(te,{defaultValue:ce(l,H,Q,Y,n.entityAutoCompleteView)[te],keepDirty:!1}),B(!1))},[y.jeScheduleDetails.length,y.selectedDate,y.selectedDayOfMonth]),D.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&I(!1)},[l.selectedJEScheduleTransaction?.status.code]);const he=(Ve(M.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&y.jeScheduleDetails.length>0,be=()=>{he===!0?F(!0):(h!=null&&s!=null&&e.trackScheduleDetailsCanceled(G({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),r())},ve=()=>{l.selectedJEScheduleTransaction!=null&&v({id:l.selectedJEScheduleTransaction?.baseTransaction.id,type:l.selectedJEScheduleTransaction?.baseTransaction.type})},xe=D.useCallback(()=>{I(!0)},[]),Ee=D.useCallback(()=>{h!=null&&s!=null&&e.trackScheduleDetailsMarkedAsCompleted(G({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),p()},[e,s,p,t,h,x,E,j]),je=D.useCallback(c=>{h!=null&&s!=null&&e.trackScheduleDetailsDeleted(G({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),O(c)},[e,s,O,t,h,x,E,j]),Te=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(c=>c.error??[]).filter(c=>!!c)??[])?.includes("vendor_deleted")===!0?oe?.defaultOptions.find(c=>c.value===oe?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name;return a.jsxs(nt,{children:[a.jsx(ut,{onNavigateBack:be,onTransactionClick:ve,title:Te??A.strings.empty}),a.jsx(ot,{children:a.jsx(Pe,{...M,children:a.jsxs("form",{style:{width:"100%"},id:fe(Se),onSubmit:ye,children:[a.jsx(ht,{vendorLoadOptions:Ce,vendorField:oe,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:n,scheduleDetailsView:l,allAccountOptions:H,allClassOptions:Q,allMonthOptions:Y,allowCreateSchedule:W,onEditAmount:C,onDelete:je,onJELinkClick:d,onViewLinkedJE:N,onMarkAsComplete:Ee,onCreateSchedule:xe}),le===!0?a.jsx(Fe,{titleComponent:a.jsx(_e,{children:A.confirmationPopup.discardTitle}),descriptionComponent:a.jsx($e,{children:A.confirmationPopup.discardDescription}),primaryButtonText:A.confirmationPopup.discard,secondaryButtonText:A.confirmationPopup.cancel,proceedButtonVariant:"danger",action:K}):null,he===!0?a.jsx(Be,{formId:fe(Se),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:()=>{F(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function ut({title:e,onNavigateBack:o,onTransactionClick:m}){return a.jsx(qe,{title:e,tooltipTextOnLaunch:rt.showTransactionTooltip,onBackClick:o,onLaunchClick:m,style:{zIndex:3}})}function ht({vendorField:e,vendorLoadOptions:o,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:t,allAccountOptions:i,allClassOptions:b,allMonthOptions:n,allowCreateSchedule:p,onCreateSchedule:r,onMarkAsComplete:C,onEditAmount:w,onDelete:J,onJELinkClick:O,onViewLinkedJE:k}){const S=t.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(v=>v.error??[]).filter(v=>!!v)??[];return t.selectedJEScheduleTransaction!=null?a.jsxs(dt,{children:[a.jsx(ct,{children:a.jsx(Ge,{errors:S,vendorLoadOptions:o,vendorField:e,vendorFieldName:_(ee,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,transaction:t.selectedJEScheduleTransaction.baseTransaction,vendor:t.selectedJEScheduleTransaction.vendor})}),a.jsx(at,{sectionId:ee,jeScheduledTransaction:t.selectedJEScheduleTransaction,allAccountOptions:i,allAccountList:t.allAccountList,allClassList:t.allClassList,allClassOptions:b,allMonthOptions:n,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:p,onCreateSchedule:r,onDelete:J,onMarkAsComplete:C,updateStatus:t.deleteStatus.fetchState}),a.jsx(re,{controller:p===!0,children:a.jsx(Xe,{sectionId:te,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:w,onJELinkClick:O,onViewLinkedJE:k,jeScheduleId:t.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const fe=e=>`${e}_form`,ce=(e,o,m,l,t)=>{const i=e.scheduleDetailsLocalData.prepaid_expenses,b=i.selectedAccount,n=i.selectedVendor,p=n!=null?t.vendor.find(u=>u.zeniId===n.id):void 0,r=b!=null?e.allAccountList.find(u=>u.accountId===b):void 0,C=i.selectedClass,w=C!=null?e.allClassList.find(u=>u.classId===C):void 0,J=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,S=i.lastDayOfMonth,v=k==null&&S==null?void 0:S===!0?"lastDayOfMonth":"day";return{[ee]:{scheduleExpenseCategory:{selectedOption:r?.qboId,allOptions:o},scheduleClass:{selectedOption:w?.classId,allOptions:m},startDate:i.selectedDate,months:{selectedOption:J,allOptions:l},vendor:{selectedOption:p?.id??n?.id,defaultOptions:Ne(t,p??n)},postingDate:{type:v,dayOfMonth:k}},[te]:O}};export{xt as default};
@@ -1,14 +1,14 @@
1
- import{e as T,u as Z,j as t,hT as ie,M as N,hU as oe,X as le,hV as ge,dP as fe,cV as we,v as A,hW as ye,hS as be,o as i,C as b,g as j,L as $e,b as re,dL as je,bV as Se,bY as ke,cn as Q,cv as ee,ct as ve,hX as X,hY as Ce,aj as De,hZ as Me,b_ as ze,h_ as Le,s as u,p as L,ao as Ee,bX as Oe,q as pe,cw as Ae,ah as ne,cH as Te,a4 as Ie,m as _,h$ as I,fN as Ve,a0 as Fe,i0 as Je,a8 as G,cx as Be,aB as Pe}from"./index-Dg4A8nvL.js";import{b as D,n as l,j as B}from"./vendor-rkTZJa59.js";const R=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Ne({defaultValue:e,name:o,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,h]=D.useState(!1),{control:m,formState:{errors:g},setValue:S}=Q(),v=()=>{k||(c(),h(!1))},w=()=>{y(),h(!1)},k=ee(g,o),x=T(),a=Z();return t.jsx(pe,{onClickAway:()=>{h(!1)},children:t.jsx(Ue,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&h(!0)},children:t.jsx(Ae,{name:R(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(Re,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(qe,{alignLeft:r===!0,children:[t.jsx(Qe,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(o,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Te,{name:R(o,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Xe,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${o}.dayOfMonth`,$),S(`${o}.type`,"day")}})]}),t.jsx(et,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(o,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ie,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Re({placeholder:e,defaultValue:o,isDisabled:s}){return t.jsxs(_e,{isDisabled:s!=null,children:[o?.type==null?t.jsx(Ge,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${o.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function We({defaultValue:e,onClick:o}){return t.jsxs(Ke,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>o(_.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>o(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=l.div`
1
+ import{e as T,u as Z,j as t,hT as ie,B as N,hU as le,J as oe,hV as ge,dP as fe,cV as we,v as A,hW as ye,hS as be,o as i,C as b,g as j,T as $e,b as re,dL as je,bV as Se,bY as ke,cn as Q,cv as ee,ct as ve,hX as U,hY as Ce,aj as De,hZ as Me,b_ as ze,h_ as Le,q as u,s as L,ao as Ee,bX as Oe,p as pe,cw as Ae,ah as ne,cH as Te,a4 as Ie,l as _,h$ as I,fN as Ve,a0 as Fe,i0 as Je,a8 as G,cx as Be,aB as Pe}from"./index-B9FgmOrh.js";import{b as D,n as o,j as B}from"./vendor-rkTZJa59.js";const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,h]=D.useState(!1),{control:m,formState:{errors:g},setValue:S}=Q(),v=()=>{k||(c(),h(!1))},w=()=>{y(),h(!1)},k=ee(g,l),x=T(),a=Z();return t.jsx(pe,{onClickAway:()=>{h(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&h(!0)},children:t.jsx(Ae,{name:R(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(Re,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(qe,{alignLeft:r===!0,children:[t.jsx(Qe,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Te,{name:R(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(et,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ie,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Re({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(_e,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ge,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function We({defaultValue:e,onClick:l}){return t.jsxs(Ke,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(_.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
2
2
  position: relative;
3
- `,_e=l.div`
3
+ `,_e=o.div`
4
4
  display: flex;
5
5
  padding-right: ${i.sp3};
6
- `,ae=l.div`
6
+ `,ae=o.div`
7
7
  display: flex;
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
- `,qe=l.div`
11
+ `,qe=o.div`
12
12
  position: absolute;
13
13
  z-index: 9;
14
14
  cursor: pointer;
@@ -25,17 +25,17 @@ import{e as T,u as Z,j as t,hT as ie,M as N,hU as oe,X as le,hV as ge,dP as fe,c
25
25
  display: flex;
26
26
  flex-direction: column;
27
27
  width: 270px;
28
- `,Ge=l(L)`
28
+ `,Ge=o(L)`
29
29
  color: ${e=>e.theme.colors.grey1};
30
30
  margin-right: ${i.sp1};
31
- `,W=l(L)`
31
+ `,W=o(L)`
32
32
  color: ${e=>e.theme.colors.primary};
33
- `,Xe=l(L)`
33
+ `,Ue=o(L)`
34
34
  color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
35
- `,de=l.div`
35
+ `,de=o.div`
36
36
  display: flex;
37
37
  gap: ${i.sp1};
38
- `,Ue=l.div`
38
+ `,Xe=o.div`
39
39
  display: flex;
40
40
  align-items: center;
41
41
  justify-content: flex-end;
@@ -47,15 +47,15 @@ import{e as T,u as Z,j as t,hT as ie,M as N,hU as oe,X as le,hV as ge,dP as fe,c
47
47
  &:hover {
48
48
  background-color: ${e=>e.isDisabled?e.theme.colors.grey5:e.theme.colors.background};
49
49
  }
50
- `,Ke=l.div`
50
+ `,Ke=o.div`
51
51
  display: flex;
52
52
  flex-direction: column;
53
53
  width: fit-content;
54
54
  margin: ${i.sp0} ${i.sp3};
55
55
  color: ${e=>e.theme.colors.hero};
56
- `,Y=l.div`
56
+ `,Y=o.div`
57
57
  display: flex;
58
- `,H=l(L)`
58
+ `,H=o(L)`
59
59
  padding: ${i.sp1} ${i.sp2};
60
60
  max-width: ${i.sp5};
61
61
  min-width: 18px;
@@ -66,7 +66,7 @@ import{e as T,u as Z,j as t,hT as ie,M as N,hU as oe,X as le,hV as ge,dP as fe,c
66
66
  color: ${e.theme.colors.background};
67
67
  background-color: ${e.theme.colors.primary};
68
68
  `:null}
69
- `,Ze=l.div`
69
+ `,Ze=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{e as T,u as Z,j as t,hT as ie,M as N,hU as oe,X as le,hV as ge,dP as fe,c
81
81
  border-color: ${e=>e.isError?j.important:e.theme.colors.primary};
82
82
  }
83
83
  }
84
- `,Qe=l.div`
84
+ `,Qe=o.div`
85
85
  width: 100%;
86
86
  margin-top: ${i.sp1};
87
87
  height: 1px;
88
- `,et=l.div`
88
+ `,et=o.div`
89
89
  width: 100%;
90
90
  height: 1px;
91
91
  background-color: ${e=>e.theme.colors.grey3};
92
- `,z={height:new b(u[6],u[6]),controlHeight:new b(u[6],u[6]),paddingTopBottom:new b(u[2],u[2]),marginRight:new b(u[2],u[2]),labelMarginLeft:new b(u[3],u[4]),labelMarginRight:new b(u[3],u[4]),labelMarginTop:new b(u[2],u[2])};function Gt({label:e,dayOfMonthField:o,isDisabled:s,style:r}){const p=T(),{formState:{errors:n}}=Q(),d=ee(n,o.name);return t.jsxs(tt,{size:p,style:r,isDisabled:s!=null,isError:d,children:[t.jsx(ve,{isDisabled:s,label:e.label,htmlFor:o.name,style:{marginLeft:z.labelMarginLeft.value(p),marginRight:z.labelMarginRight.value(p),marginTop:z.labelMarginTop.value(p),width:e.width??"auto"}}),t.jsx(it,{labelWidth:e.width,children:t.jsx(Ne,{...o,isDisabled:s,style:{display:"flex",flexGrow:1,width:"100%",height:z.controlHeight.value(p)}})})]})}const tt=l.div`
92
+ `,z={height:new b(u[6],u[6]),controlHeight:new b(u[6],u[6]),paddingTopBottom:new b(u[2],u[2]),marginRight:new b(u[2],u[2]),labelMarginLeft:new b(u[3],u[4]),labelMarginRight:new b(u[3],u[4]),labelMarginTop:new b(u[2],u[2])};function Gt({label:e,dayOfMonthField:l,isDisabled:s,style:r}){const p=T(),{formState:{errors:n}}=Q(),d=ee(n,l.name);return t.jsxs(tt,{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(it,{labelWidth:e.width,children:t.jsx(Ne,{...l,isDisabled:s,style:{display:"flex",flexGrow:1,width:"100%",height:z.controlHeight.value(p)}})})]})}const tt=o.div`
93
93
  display: flex;
94
94
  flex-direction: row;
95
95
  align-items: flex-start;
@@ -128,48 +128,48 @@ import{e as T,u as Z,j as t,hT as ie,M as N,hU as oe,X as le,hV as ge,dP as fe,c
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
- `,it=l.div`
131
+ `,it=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
- `,ot=l.div`
137
+ `,lt=o.div`
138
138
  display: flex;
139
139
  width: 100%;
140
140
  justify-content: space-between;
141
- `,lt=l(Ee)`
141
+ `,ot=o(Ee)`
142
142
  color: ${e=>e.theme.colors.primary};
143
143
  margin: ${i.sp3} ${i.sp1};
144
- `,ce=l.div`
144
+ `,ce=o.div`
145
145
  margin-bottom: ${i.sp2};
146
- `,{common:V,jeSchedules:{scheduleDetails:C}}=N.getLocalizedStrings();function Xt({isUpdating:e,status:o,jeScheduleId:s,allowCreateSchedule:r,onDelete:p,onMarkAsComplete:n,onCreateSchedule:d}){const[c,y]=D.useState(!1),f={onOkClick:()=>{p()},onCancelClick:()=>{y(!1)}},h=()=>null,m=[];return(o==="new"||o=="draft")&&m.push({label:C.scheduleDetailsSection.markAsCompleted,value:C.scheduleDetailsSection.markAsCompleted}),s!=null&&o!=="draft"&&(o==="marked_as_completed"?r===!1&&m.push({label:C.scheduleDetailsSection.createSchedule,value:C.scheduleDetailsSection.createSchedule}):m.push({label:V.delete,value:V.delete})),t.jsxs(ot,{children:[t.jsx(lt,{children:C.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:g=>{g===V.delete&&y(!0),g===C.scheduleDetailsSection.markAsCompleted&&n(),g===C.scheduleDetailsSection.createSchedule&&d()},valueToIcon:h})}),t.jsx(re,{controller:c===!0,children:t.jsx(Se,{titleComponent:t.jsx(ke,{children:C.scheduleDetailsSection.confirmDeletionTitle}),descriptionComponent:t.jsx(rt,{}),action:f,primaryButtonText:V.yes,proceedButtonVariant:"danger",secondaryButtonText:V.no,isLoading:e})})]})}function rt(){return t.jsxs(Oe,{children:[t.jsx(ce,{children:C.scheduleDetailsSection.confirmDeletionDescription}),t.jsx(ce,{children:C.scheduleDetailsSection.confirmDeletionDescriptionNote})]})}const P={containerPadding:new b(u[3],u[8]),containerMarginTop:new b(u[3],u[4]),containerMarginBottom:new b(u[4],u[5]),transactionLabelMarginTop:new b(u[2],u[0]),transactionTitleContainerWidth:new b(187,480)},U={transactionLabel:new le("standardMedium","largeMedium"),transactionTitle:new le("h6SemiBold","h5SemiBold")},nt=l.div``,he=l.div`
146
+ `,{common:V,jeSchedules:{scheduleDetails:C}}=N.getLocalizedStrings();function Ut({isUpdating:e,status:l,jeScheduleId:s,allowCreateSchedule:r,onDelete:p,onMarkAsComplete:n,onCreateSchedule:d}){const[c,y]=D.useState(!1),f={onOkClick:()=>{p()},onCancelClick:()=>{y(!1)}},h=()=>null,m=[];return(l==="new"||l=="draft")&&m.push({label:C.scheduleDetailsSection.markAsCompleted,value:C.scheduleDetailsSection.markAsCompleted}),s!=null&&l!=="draft"&&(l==="marked_as_completed"?r===!1&&m.push({label:C.scheduleDetailsSection.createSchedule,value:C.scheduleDetailsSection.createSchedule}):m.push({label:V.delete,value:V.delete})),t.jsxs(lt,{children:[t.jsx(ot,{children:C.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:g=>{g===V.delete&&y(!0),g===C.scheduleDetailsSection.markAsCompleted&&n(),g===C.scheduleDetailsSection.createSchedule&&d()},valueToIcon:h})}),t.jsx(re,{controller:c===!0,children:t.jsx(Se,{titleComponent:t.jsx(ke,{children:C.scheduleDetailsSection.confirmDeletionTitle}),descriptionComponent:t.jsx(rt,{}),action:f,primaryButtonText:V.yes,proceedButtonVariant:"danger",secondaryButtonText:V.no,isLoading:e})})]})}function rt(){return t.jsxs(Oe,{children:[t.jsx(ce,{children:C.scheduleDetailsSection.confirmDeletionDescription}),t.jsx(ce,{children:C.scheduleDetailsSection.confirmDeletionDescriptionNote})]})}const P={containerPadding:new b(u[3],u[8]),containerMarginTop:new b(u[3],u[4]),containerMarginBottom:new b(u[4],u[5]),transactionLabelMarginTop:new b(u[2],u[0]),transactionTitleContainerWidth:new b(187,480)},X={transactionLabel:new oe("standardMedium","largeMedium"),transactionTitle:new oe("h6SemiBold","h5SemiBold")},nt=o.div``,he=o.div`
147
147
  margin: ${i.sp0} ${i.sp3} ${i.sp0} ${i.sp0};
148
148
  max-width: ${e=>P.transactionTitleContainerWidth.valuePx(e.windowSize)};
149
- `,st=l($e)`
149
+ `,st=o($e)`
150
150
  color: ${j.neutralGrey5Light};
151
151
  margin-top: ${e=>P.transactionLabelMarginTop.valuePx(e.windowSize)};
152
- ${e=>`${U.transactionLabel.style(e.windowSize)}`};
152
+ ${e=>`${X.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
- `,at=l.div`
156
+ `,at=o.div`
157
157
  display: flex;
158
158
  flex-direction: column;
159
- `,dt=l.div`
159
+ `,dt=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
- `,ct=l.div`
165
+ `,ct=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
- `,ht=l.div`
172
+ `,ht=o.div`
173
173
  display: flex;
174
174
  flex-direction: row;
175
175
  width: 100%;
@@ -179,33 +179,33 @@ import{e as T,u as Z,j as t,hT as ie,M as N,hU as oe,X as le,hV as ge,dP as fe,c
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
- `,ut=l(L)`
182
+ `,ut=o(L)`
183
183
  color: ${e=>e.theme.colors.hero};
184
184
  height: ${i.sp4};
185
- `,pt=l(L)`
185
+ `,pt=o(L)`
186
186
  color: ${e=>e.theme.colors.primary};
187
187
  word-break: break-all;
188
188
  text-align: right;
189
- `,mt=l.div`
189
+ `,mt=o.div`
190
190
  display: flex;
191
191
  flex-direction: row;
192
192
  justify-content: space-between;
193
193
  gap: ${i.sp3};
194
- `,xt=l.div`
194
+ `,xt=o.div`
195
195
  margin-top: ${i.sp3};
196
196
  width: 100%;
197
- `,gt=l.div`
197
+ `,gt=o.div`
198
198
  display: flex;
199
199
  flex-direction: column;
200
200
  margin: ${i.sp3} ${i.sp0} ${i.sp6} ${i.sp0};
201
- `,ft=l.div`
201
+ `,ft=o.div`
202
202
  display: flex;
203
203
  width: 100%;
204
204
  height: 1px;
205
205
  background-color: ${e=>e.theme.colors.grey3};
206
- `,wt=({title:e,value:o})=>t.jsxs(mt,{children:[t.jsx(ut,{children:e}),t.jsx(pt,{children:o||me})]}),{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:O},scheduleAccruedDetails:{placeholders:{selectVendor:yt}}},dateFormat:{visual:{MMMDCommaYYYYformat:bt}},common:{strings:{hyphen:me}}}=N.getLocalizedStrings();function Ut({transaction:e,vendorField:o,vendorLoadOptions:s,errors:r,vendorFieldName:p,vendor:n}){const d=T(),c=Z(),[y,f]=D.useState(!1),h=$t(e),m=r?.includes("vendor_deleted"),[g,S]=D.useState(r?.includes("vendor_deleted")),v=o?.defaultOptions.find(w=>w.value===o?.selectedOption);return t.jsxs(ct,{windowSize:d,children:[t.jsxs(ht,{windowSize:d,children:[t.jsxs(dt,{windowSize:d,children:[t.jsx(t.Fragment,{children:m===!0?t.jsx(t.Fragment,{children:g===!0?t.jsx(ie,{text:O.addVendor,handleClick:()=>{S(!1),f(!0)}}):t.jsx(t.Fragment,{children:y===!1?t.jsx(nt,{onClick:()=>f(!0),children:v!=null?t.jsx(he,{windowSize:d,children:t.jsx(oe,{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(ge,{autoFocus:!0,menuIsOpen:y,name:p??"",placeholder:yt,valueToId:w=>w,defaultValue:{selectedOption:o?.selectedOption,defaultOptions:o?.defaultOptions??[]},onMenuClose:()=>f(!1),customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"})},style:{width:250},registerOptions:{required:!0,validate:w=>!!w.selectedOption},loadOptions:s})})}):t.jsx(he,{windowSize:d,children:t.jsx(oe,{itemTextStyle:{...U.transactionTitle.styleObject(d),lineHeight:"unset",color:c.colors.primary},text:n.name})})}),t.jsx(st,{windowSize:d,labelColor:fe(e.type,c),children:e.typeName??e.type})]}),t.jsx(at,{children:t.jsx(we,{amount:e.amount,integerStyles:A.h6SemiBold.cssObject,decimalStyles:A.standardMedium.cssObject})})]}),t.jsx(ft,{}),t.jsx(gt,{children:h.map((w,k)=>t.jsx(xt,{children:t.jsx(wt,{title:w.title,value:w.value})},k))})]})}function $t(e){const o=[];return o.push({title:O.transactionDate,value:e.date.format(bt)}),o.push({title:O.category,value:e.account.accountName}),o.push({title:O.class,value:e.classBase?.className??me}),o.push({title:O.memo,value:e.memo}),o}const ue=(e,o)=>`${e}.${o}`,jt={webkitLineClamp:new b(2,2,1,1,1)},St=N.getLocalizedStrings(),{dateFormat:kt,jeSchedules:{scheduleDetails:K}}=St,vt=({sectionId:e,rowId:o,isDisabled:s,hideMemoField:r,minMaxValuesForAmount:p,isAmountEditable:n,scheduleJournalEntry:d,localData:c,onJELinkClick:y,onViewLinkedJE:f})=>{const h=T(),m=Z(),[g,S]=D.useState(!1),{formState:{errors:v}}=Q(),w=D.useCallback(()=>{y(o)},[y,o]),k=d?.jeScheduleId!=null&&d.status.code==="unknown",x=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,o)},q=ue(e,"amount"),E=ee(v,q);return t.jsxs(Mt,{windowSize:h,isRowEditable:n,isClickable:a||n,onClick:$,children:[r?null:t.jsx(F,{windowSize:h,widthSize:I[0].width,children:t.jsx(J,{windowSize:h,isClickable:a||n,title:c.memo,children:c.memo})}),t.jsx(F,{windowSize:h,widthSize:I[1].width,children:t.jsx(J,{windowSize:h,isClickable:a||n,children:c.postingDate.format(kt.visual.MMMDCommaYYYYformat)})}),t.jsx(F,{windowSize:h,widthSize:I[2].width,children:t.jsx(pe,{onClickAway:()=>S(!1),children:t.jsx(J,{windowSize:h,onClick:()=>{(a||n)&&S(!0)},isClickable:a||n,children:t.jsx(Ve,{style:{height:i.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:i.sp3,color:E===!0?j.important:g===!1?m.colors.hero:m.colors.primary},type:"number",autoFocus:!1,focus:g,name:ue(e,"amount"),placeholder:K.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:g===!1?m.colors.grey5:m.colors.background,prefix:c.amount.currencySymbol,decimalScale:2,allowNegative:!0,isNumericString:!1,isFieldError:E,registerOptions:{required:x==null,min:p.min,max:p.max},isDisabled:x,thousandsGroupStyle:"thousand",thousandSeparator:!0})})})}),t.jsx(F,{windowSize:h,widthSize:I[3].width,children:t.jsx(J,{windowSize:h,isClickable:a||n,children:Fe("0,0.00",c.runningBalance)})}),t.jsx(F,{windowSize:h,widthSize:I[4].width,children:t.jsx(J,{windowSize:h,isLastItem:!0,isClickable:a||n,children:t.jsxs(At,{children:[t.jsx(Je,{textColor:Dt(c.postingStatus,m),onClick:a||n?$:void 0,text:K.sequenceSchedule.postingStatus[c.postingStatus]}),k?t.jsx(Ot,{onClick:a?$:w,children:t.jsx(Ct,{jeLink:c.jeLink,isJElinkAllowed:k})}):null]})})})]})};function Ct({jeLink:e,isJElinkAllowed:o}){const[s,r]=D.useState(!1);return e.type==="linked"&&o?t.jsx(t.Fragment,{}):o&&(e.type==="unknown"||e.type==="recommended")?t.jsxs(zt,{onMouseOver:()=>r(!0),onMouseLeave:()=>r(!1),children:[t.jsx(Tt,{}),s?t.jsxs(Lt,{children:[e.type==="recommended"?t.jsx(It,{}):null,t.jsx(Et,{children:K.linkJE.linkJE})]}):null]}):null}const Dt=(e,o)=>{switch(e){case"pending":case"canceled":case"recorded":return new G(o.colors.grey1);case"posted":return new G(j.success);case"unknown":return new G(j.alert)}},Mt=l.div`
206
+ `,wt=({title:e,value:l})=>t.jsxs(mt,{children:[t.jsx(ut,{children:e}),t.jsx(pt,{children:l||me})]}),{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:O},scheduleAccruedDetails:{placeholders:{selectVendor:yt}}},dateFormat:{visual:{MMMDCommaYYYYformat:bt}},common:{strings:{hyphen:me}}}=N.getLocalizedStrings();function Xt({transaction:e,vendorField:l,vendorLoadOptions:s,errors:r,vendorFieldName:p,vendor:n}){const d=T(),c=Z(),[y,f]=D.useState(!1),h=$t(e),m=r?.includes("vendor_deleted"),[g,S]=D.useState(r?.includes("vendor_deleted")),v=l?.defaultOptions.find(w=>w.value===l?.selectedOption);return t.jsxs(ct,{windowSize:d,children:[t.jsxs(ht,{windowSize:d,children:[t.jsxs(dt,{windowSize:d,children:[t.jsx(t.Fragment,{children:m===!0?t.jsx(t.Fragment,{children:g===!0?t.jsx(ie,{text:O.addVendor,handleClick:()=>{S(!1),f(!0)}}):t.jsx(t.Fragment,{children:y===!1?t.jsx(nt,{onClick:()=>f(!0),children:v!=null?t.jsx(he,{windowSize:d,children:t.jsx(le,{itemTextStyle:{...X.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(ge,{autoFocus:!0,menuIsOpen:y,name:p??"",placeholder:yt,valueToId:w=>w,defaultValue:{selectedOption:l?.selectedOption,defaultOptions:l?.defaultOptions??[]},onMenuClose:()=>f(!1),customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"})},style:{width:250},registerOptions:{required:!0,validate:w=>!!w.selectedOption},loadOptions:s})})}):t.jsx(he,{windowSize:d,children:t.jsx(le,{itemTextStyle:{...X.transactionTitle.styleObject(d),lineHeight:"unset",color:c.colors.primary},text:n.name})})}),t.jsx(st,{windowSize:d,labelColor:fe(e.type,c),children:e.typeName??e.type})]}),t.jsx(at,{children:t.jsx(we,{amount:e.amount,integerStyles:A.h6SemiBold.cssObject,decimalStyles:A.standardMedium.cssObject})})]}),t.jsx(ft,{}),t.jsx(gt,{children:h.map((w,k)=>t.jsx(xt,{children:t.jsx(wt,{title:w.title,value:w.value})},k))})]})}function $t(e){const l=[];return l.push({title:O.transactionDate,value:e.date.format(bt)}),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 ue=(e,l)=>`${e}.${l}`,jt={webkitLineClamp:new b(2,2,1,1,1)},St=N.getLocalizedStrings(),{dateFormat:kt,jeSchedules:{scheduleDetails:K}}=St,vt=({sectionId:e,rowId:l,isDisabled:s,hideMemoField:r,minMaxValuesForAmount:p,isAmountEditable:n,scheduleJournalEntry:d,localData:c,onJELinkClick:y,onViewLinkedJE:f})=>{const h=T(),m=Z(),[g,S]=D.useState(!1),{formState:{errors:v}}=Q(),w=D.useCallback(()=>{y(l)},[y,l]),k=d?.jeScheduleId!=null&&d.status.code==="unknown",x=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)},q=ue(e,"amount"),E=ee(v,q);return t.jsxs(Mt,{windowSize:h,isRowEditable:n,isClickable:a||n,onClick:$,children:[r?null:t.jsx(F,{windowSize:h,widthSize:I[0].width,children:t.jsx(J,{windowSize:h,isClickable:a||n,title:c.memo,children:c.memo})}),t.jsx(F,{windowSize:h,widthSize:I[1].width,children:t.jsx(J,{windowSize:h,isClickable:a||n,children:c.postingDate.format(kt.visual.MMMDCommaYYYYformat)})}),t.jsx(F,{windowSize:h,widthSize:I[2].width,children:t.jsx(pe,{onClickAway:()=>S(!1),children:t.jsx(J,{windowSize:h,onClick:()=>{(a||n)&&S(!0)},isClickable:a||n,children:t.jsx(Ve,{style:{height:i.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:i.sp3,color:E===!0?j.important:g===!1?m.colors.hero:m.colors.primary},type:"number",autoFocus:!1,focus:g,name:ue(e,"amount"),placeholder:K.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:g===!1?m.colors.grey5:m.colors.background,prefix:c.amount.currencySymbol,decimalScale:2,allowNegative:!0,isNumericString:!1,isFieldError:E,registerOptions:{required:x==null,min:p.min,max:p.max},isDisabled:x,thousandsGroupStyle:"thousand",thousandSeparator:!0})})})}),t.jsx(F,{windowSize:h,widthSize:I[3].width,children:t.jsx(J,{windowSize:h,isClickable:a||n,children:Fe("0,0.00",c.runningBalance)})}),t.jsx(F,{windowSize:h,widthSize:I[4].width,children:t.jsx(J,{windowSize:h,isLastItem:!0,isClickable:a||n,children:t.jsxs(At,{children:[t.jsx(Je,{textColor:Dt(c.postingStatus,m),onClick:a||n?$:void 0,text:K.sequenceSchedule.postingStatus[c.postingStatus]}),k?t.jsx(Ot,{onClick:a?$:w,children:t.jsx(Ct,{jeLink:c.jeLink,isJElinkAllowed:k})}):null]})})})]})};function Ct({jeLink:e,isJElinkAllowed:l}){const[s,r]=D.useState(!1);return e.type==="linked"&&l?t.jsx(t.Fragment,{}):l&&(e.type==="unknown"||e.type==="recommended")?t.jsxs(zt,{onMouseOver:()=>r(!0),onMouseLeave:()=>r(!1),children:[t.jsx(Tt,{}),s?t.jsxs(Lt,{children:[e.type==="recommended"?t.jsx(It,{}):null,t.jsx(Et,{children:K.linkJE.linkJE})]}):null]}):null}const Dt=(e,l)=>{switch(e){case"pending":case"canceled":case"recorded":return new G(l.colors.grey1);case"posted":return new G(j.success);case"unknown":return new G(j.alert)}},Mt=o.div`
207
207
  display: flex;
208
- height: ${X}px;
208
+ height: ${U}px;
209
209
  justify-content: space-between;
210
210
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
211
211
  color: ${e=>e.theme.colors.hero};
@@ -230,7 +230,7 @@ import{e as T,u as Z,j as t,hT as ie,M as N,hU as oe,X as le,hV as ge,dP as fe,c
230
230
  align-items: center;
231
231
 
232
232
  cursor: ${e=>e.isClickable===!0?"pointer":"default"};
233
- `,F=l.div`
233
+ `,F=o.div`
234
234
  display: flex;
235
235
  align-items: center;
236
236
  width: ${e=>e.widthSize.valuePx(e.windowSize)};
@@ -238,7 +238,7 @@ import{e as T,u as Z,j as t,hT as ie,M as N,hU as oe,X as le,hV as ge,dP as fe,c
238
238
  :last-of-type {
239
239
  padding-right: 0;
240
240
  }
241
- `,zt=l.div`
241
+ `,zt=o.div`
242
242
  display: flex;
243
243
  align-items: center;
244
244
  gap: ${i.sp1};
@@ -247,21 +247,21 @@ import{e as T,u as Z,j as t,hT as ie,M as N,hU as oe,X as le,hV as ge,dP as fe,c
247
247
  &:hover {
248
248
  color: ${e=>e.theme.colors.primary};
249
249
  }
250
- `,Lt=l.div`
250
+ `,Lt=o.div`
251
251
  display: flex;
252
252
  align-items: center;
253
253
  gap: ${i.sp1};
254
- `,Et=l(L)``,Ot=l.div``,At=l.div`
254
+ `,Et=o(L)``,Ot=o.div``,At=o.div`
255
255
  display: flex;
256
256
  gap: ${i.sp3};
257
257
  align-items: center;
258
- `,Tt=l(Be)`
258
+ `,Tt=o(Be)`
259
259
  width: ${i.sp3};
260
260
  height: ${i.sp3};
261
- `,It=l(Pe)`
261
+ `,It=o(Pe)`
262
262
  width: ${i.sp3};
263
263
  height: ${i.sp3};
264
- `,J=l(L)`
264
+ `,J=o(L)`
265
265
  flex-grow: 1;
266
266
  word-break: break-word;
267
267
  white-space: nowrap;
@@ -277,23 +277,23 @@ import{e as T,u as Z,j as t,hT as ie,M as N,hU as oe,X as le,hV as ge,dP as fe,c
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
- `,xe={scheduleDetailsWrapperContainerMarginTop:new b(u[3],u[3]),paddingRight:new b(u[4],0)},Kt=({sectionId:e,totalAmount:o,isDisabled:s,hideMemoField:r,listFetchState:p,scheduleJournalEntries:n,localData:d,uiState:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:h,jeScheduleId:m})=>{const g=T(),S=p==="Not-Started"||p==="In-Progress"&&n.length===0,v=p==="Completed"&&d.length===0,w=N.getLocalizedStrings().jeSchedules.scheduleDetails.sequenceSchedule;return t.jsxs(Wt,{windowSize:g,children:[t.jsx(Ht,{windowSize:g,children:w.header}),S?t.jsx(ye,{}):v?t.jsx(Yt,{windowSize:g,children:t.jsx(be,{text:w.notCreated})}):t.jsx(Pt,{children:t.jsx(Vt,{isDisabled:s,sectionId:e,hideMemoField:r,totalAmount:o,uiState:c,scheduleJournalEntries:n,localData:d,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:h,jeScheduleId:m})})]})},Vt=({sectionId:e,totalAmount:o,isDisabled:s,hideMemoField:r,scheduleJournalEntries:p,localData:n,uiState:d,jeScheduleId:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:h})=>{const m=D.useRef(null),g=T(),S=x=>X,v=n.length*X+Ce;D.useEffect(()=>{m.current?.resetAfterIndex(0)},[p]);const w=(x,a,$)=>{if(x===a.length-1)return!1;if($?.jeScheduleId==null)return!0;const q=_.dateNow(),E=_.dateNow().startOf("month"),te=_.dateNow().endOf("month");if(a[x].postingDate!=null){if(a[x].postingDate.month()===q.month()&&a[x].postingDate.isBetween(E,te)===!0)return(a[x].postingStatus==="pending"||a[x].postingStatus==="canceled")&&n[x].runningBalance.amount!==0;if(a[x].postingDate.isBefore(E)===!0)return!1;if(a[x].postingDate.isAfter(te)===!0&&x!==0&&n[x-1].postingStatus==="posted"&&n[x-1].runningBalance.amount!==0)return!0}return!1},k=x=>{const a=o<0;if(x===0)return{min:a?o:0,max:a?0:o};{const $=n[x-1].runningBalance.amount;return{min:a?$:0,max:a?0:$}}};return t.jsx(Jt,{windowSize:g,containerHeight:v,children:t.jsx(De,{children:({height:x,width:a})=>t.jsxs(Rt,{style:{height:x,width:a},children:[t.jsx(Bt,{children:t.jsx(Me,{hideMemo:r})}),t.jsx(ze,{height:x,itemCount:n.length,itemSize:S,itemData:{sectionId:e,scheduleJournalEntries:p,localData:n,onEditAmount:y,onJELinkClick:f,uiState:d,windowSize:g,isDisabled:s,isAmountEditable:w,hideMemoField:r,getMinMaxValuesForAmount:k,onViewLinkedJE:h,jeScheduleId:c},width:a,ref:m,overscanCount:Le,initialScrollOffset:0,children:Ft})]})})})},Ft=({index:e,data:o})=>{const{sectionId:s,scheduleJournalEntries:r,localData:p,onJELinkClick:n,windowSize:d,isDisabled:c,hideMemoField:y,isAmountEditable:f,getMinMaxValuesForAmount:h,onViewLinkedJE:m,jeScheduleId:g}=o;return t.jsx(Nt,{windowSize:d,children:t.jsx(vt,{rowId:e,isDisabled:c,isAmountEditable:f(e,p,r[e]),hideMemoField:y,minMaxValuesForAmount:h(e),sectionId:`${s}.${e}`,scheduleJournalEntry:r[e],localData:p[e],onJELinkClick:n,onViewLinkedJE:m})},g+e)},Jt=l.div`
280
+ `,xe={scheduleDetailsWrapperContainerMarginTop:new b(u[3],u[3]),paddingRight:new b(u[4],0)},Kt=({sectionId:e,totalAmount:l,isDisabled:s,hideMemoField:r,listFetchState:p,scheduleJournalEntries:n,localData:d,uiState:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:h,jeScheduleId:m})=>{const g=T(),S=p==="Not-Started"||p==="In-Progress"&&n.length===0,v=p==="Completed"&&d.length===0,w=N.getLocalizedStrings().jeSchedules.scheduleDetails.sequenceSchedule;return t.jsxs(Wt,{windowSize:g,children:[t.jsx(Ht,{windowSize:g,children:w.header}),S?t.jsx(ye,{}):v?t.jsx(Yt,{windowSize:g,children:t.jsx(be,{text:w.notCreated})}):t.jsx(Pt,{children:t.jsx(Vt,{isDisabled:s,sectionId:e,hideMemoField:r,totalAmount:l,uiState:c,scheduleJournalEntries:n,localData:d,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:h,jeScheduleId:m})})]})},Vt=({sectionId:e,totalAmount:l,isDisabled:s,hideMemoField:r,scheduleJournalEntries:p,localData:n,uiState:d,jeScheduleId:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:h})=>{const m=D.useRef(null),g=T(),S=x=>U,v=n.length*U+Ce;D.useEffect(()=>{m.current?.resetAfterIndex(0)},[p]);const w=(x,a,$)=>{if(x===a.length-1)return!1;if($?.jeScheduleId==null)return!0;const q=_.dateNow(),E=_.dateNow().startOf("month"),te=_.dateNow().endOf("month");if(a[x].postingDate!=null){if(a[x].postingDate.month()===q.month()&&a[x].postingDate.isBetween(E,te)===!0)return(a[x].postingStatus==="pending"||a[x].postingStatus==="canceled")&&n[x].runningBalance.amount!==0;if(a[x].postingDate.isBefore(E)===!0)return!1;if(a[x].postingDate.isAfter(te)===!0&&x!==0&&n[x-1].postingStatus==="posted"&&n[x-1].runningBalance.amount!==0)return!0}return!1},k=x=>{const a=l<0;if(x===0)return{min:a?l:0,max:a?0:l};{const $=n[x-1].runningBalance.amount;return{min:a?$:0,max:a?0:$}}};return t.jsx(Jt,{windowSize:g,containerHeight:v,children:t.jsx(De,{children:({height:x,width:a})=>t.jsxs(Rt,{style:{height:x,width:a},children:[t.jsx(Bt,{children:t.jsx(Me,{hideMemo:r})}),t.jsx(ze,{height:x,itemCount:n.length,itemSize:S,itemData:{sectionId:e,scheduleJournalEntries:p,localData:n,onEditAmount:y,onJELinkClick:f,uiState:d,windowSize:g,isDisabled:s,isAmountEditable:w,hideMemoField:r,getMinMaxValuesForAmount:k,onViewLinkedJE:h,jeScheduleId:c},width:a,ref:m,overscanCount:Le,initialScrollOffset:0,children:Ft})]})})})},Ft=({index:e,data:l})=>{const{sectionId:s,scheduleJournalEntries:r,localData:p,onJELinkClick:n,windowSize:d,isDisabled:c,hideMemoField:y,isAmountEditable:f,getMinMaxValuesForAmount:h,onViewLinkedJE:m,jeScheduleId:g}=l;return t.jsx(Nt,{windowSize:d,children:t.jsx(vt,{rowId:e,isDisabled:c,isAmountEditable:f(e,p,r[e]),hideMemoField:y,minMaxValuesForAmount:h(e),sectionId:`${s}.${e}`,scheduleJournalEntry:r[e],localData:p[e],onJELinkClick:n,onViewLinkedJE:m})},g+e)},Jt=o.div`
281
281
  height: ${e=>e.containerHeight}px;
282
282
  width: 100%;
283
283
  margin-right: ${i.sp8};
284
- `,Bt=l.div`
284
+ `,Bt=o.div`
285
285
  width: auto;
286
- `,Pt=l.div`
286
+ `,Pt=o.div`
287
287
  display: flex;
288
288
  flex-direction: column;
289
- `,Nt=l.div`
289
+ `,Nt=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} ${xe.paddingRight.valuePx(e.windowSize)} ${i.sp0} ${i.sp0}`};
296
- `,Rt=l.div``,Wt=l.div`
296
+ `,Rt=o.div``,Wt=o.div`
297
297
  display: flex;
298
298
  min-height: 100%;
299
299
  flex-direction: column;
@@ -311,14 +311,14 @@ import{e as T,u as Z,j as t,hT as ie,M as N,hU as oe,X as le,hV as ge,dP as fe,c
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=l.div`
314
+ `,Yt=o.div`
315
315
  display: flex;
316
316
  height: 100%;
317
317
  flex-direction: column;
318
318
  width: 100%;
319
319
  margin-top: ${e=>xe.scheduleDetailsWrapperContainerMarginTop.valuePx(e.windowSize)};
320
- `,Ht=l.div`
320
+ `,Ht=o.div`
321
321
  color: ${e=>e.theme.colors.hero};
322
322
  margin: ${i.sp3} ${i.sp0};
323
323
  ${A.standardRegular.css};
324
- `;export{Ut as i,Xt as n,Gt as o,Kt as r};
324
+ `;export{Xt as i,Ut as n,Gt as o,Kt as r};
@@ -1,4 +1,4 @@
1
- import{u as Ut,e as en,m as Y,kb as Ke,kc as tt,C as dt,kd as ud,ke as cd,kf as tn,kg as fd,kh as Tt,M as ir,ki as Bt,kj as qt,n as rn,o as kt,kk as ld,kl as hd,aE as Ft,aF as Kl,jR as Lt,km as dd,kn as pd,s as yn,ko as md,kp as Yl,kq as gd,kr as Jl,bi as Xl,K as zo,ks as vd,kt as yd,ku as _d,kv as Ql,kw as bd,kx as wd,ky as Sd,kz as Ed,kA as Rd,kB as Od,kC as Td,kD as xd,kE as Cd,kF as Ad,kG as Id,kH as Pd,kI as kd,gq as Ld}from"./index-Dg4A8nvL.js";import{j as X,D as nn,S as Vt}from"./mui-C42whWwM.js";import{b as Se,n as ut,c as Ve,i as eh,g as qd}from"./vendor-rkTZJa59.js";import{f as jd}from"./analyticsHelper-DUPAuOy2.js";import{g as rt,u as Ie,f as Ye}from"./redux-2gfZRks6.js";import{a as Je,d as pt,e as Dd,N as er,R as wt,c as qe,u as Zo,b as Go}from"./routing-VwiwPky5.js";import{B as ze,a as Qe,b as Nd,c as Wo,d as $d,e as Ko,f as Yo,g as Md,h as Fd,i as zt,j as th,k as rr,l as an,m as Ud,n as Bd,o as Vd,p as zd,q as Gd,s as Hd,t as Zd,u as rh,v as on,w as ar}from"./crypto-BDNqpTKX.js";import{p as Oe}from"./sentry-osuhWjvS.js";import{r as Wd}from"./lodash-BWJmwMit.js";import"./analytics-B3n5JGPc.js";import"./liveblocks-CP09Cz-7.js";const Kd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Yd(e,n){return{headerActions:{onTabChange:a=>{const i=qt(a),o=Bt(a);Ke.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ke.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(o=>o.matchingOperator).join(vs.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(o=>o.field).join(vs.comma)}}),e(Y.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(Y.initializeCompanyHealthMetricViewLocalData(a))},onColumnSortConfigChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(Y.fetchCompanyHealthMetricView())},onFiltersChange:a=>{e(Y.updateCompanyHealthViewUIState({uiState:{filters:a}}))}}}}function Jd(e,n){return{headerData:{selectedTabOption:Tt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Xd=Ye(Jd,Yd)(fd);function _n({isDrawerOpen:e}){const n=Je(),a=rt(),i=Ut(),o=en(),{companyId:t}=pt(),[r,s]=Dd(),[d,h]=Se.useState(!1),c=Ie(w=>Y.getCompanyHealthMetricView(w)),f=Ie(w=>Y.getCompanyManagementView(w)),{additionalChurnFactors:l}=Ie(w=>Y.getCompanyHealthMetricConfig(w)),{selectedCompanyDetail:_,selectedCompanyId:m,localFormDataAndStatusByCompanyId:b}=c,p=Ie(w=>w.companyViewState.zeniUsers.fetchState),u=Ie(w=>w.companyHealthMetricConfigViewState);if(Se.useEffect(()=>{const w=v=>v==="Not-Started"||v==="Error";c.fetchState==="Completed"?a(Y.fetchAllCockpitViews(!1)):w(c.fetchState)&&(a(Y.fetchCompanyHealthMetricView()),w(p)&&a(Y.fetchZeniUsers()),w(u.fetchState)&&a(Y.fetchCompanyHealthMetricConfig()))},[c.fetchState,u.fetchState]),Se.useEffect(()=>{t!=null&&c.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Y.initializeCompanyHealthMetricViewLocalData(t)),_!=null&&(Ke.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:_.companyInfo.companyId,companyName:_.companyInfo.name,churnProbability:_.companyHealthMetric.churnProbabilityPercentage??null}),h(r.has("utm_source")),r.delete("utm_source"),s(r)))},[c.fetchState,_?.companyInfo.companyId,_?.companyInfo.name]),tt.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return X.jsxs(X.Fragment,{children:[e===!0||m!=null&&_!=null?X.jsx(nn,{anchor:"right",open:m!=null,PaperProps:{style:{width:Kd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Y.removeSelectedCompanyId()),children:X.jsx(ud,{roomId:`cockpit_${m}`,autoConnect:!0,children:X.jsx(cd,{onSaveClick:()=>{m!=null&&a(Y.saveCompanyHealthMetricById(m))},onSaveChangesToLocalStore:w=>{c.selectedCompanyId!=null&&a(Y.updateCompanyHealthMetricLocalStore({companyId:c.selectedCompanyId,updatedLocalData:w}))},localData:b?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>a(Y.removeSelectedCompanyId()),analytics:Ke,urlSource:d,additionalChurnFactorsOptions:l})})}):null,X.jsx(Xd,{healthView:c,managementView:f,navigate:n,mixpanelHMUrl:tn.mixpanelHMUrl})]})}const nh=(e,n)=>{const a=[...e??[]];return a.push(n),a},Qd=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ep=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},Fe=({state:e,element:n})=>tt.isSignedIn()===!0?X.jsx(X.Fragment,{children:n}):X.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function tp(){return X.jsxs(wt,{children:[X.jsx(qe,{path:"/companies/:companyId",element:X.jsx(Fe,{element:X.jsx(_n,{isDrawerOpen:!0})})}),X.jsx(qe,{path:"/",element:X.jsx(Fe,{element:X.jsx(_n,{})})}),X.jsx(qe,{path:"/*",element:X.jsx(Fe,{element:X.jsx(_n,{})})})]})}const rp={drawerLeftMargin:new dt(0,0,240)};function or(e){const{isOpen:n,drawerLeftMargin:a,children:i,onClose:o}=e,t=en(),r=a?.valuePx(t)??rp.drawerLeftMargin.valuePx(t),s=Ut();return X.jsx(nn,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:o,children:i})}const np=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?X.jsx(ip,{children:X.jsx(rn,{size:"ExtraLarge",start:!0})}):null,ip=ut.div`
1
+ import{u as Ut,e as en,l as Y,kb as Ke,kc as tt,C as dt,kd as ud,ke as cd,kf as tn,kg as fd,kh as Tt,B as ir,ki as Bt,kj as qt,m as rn,o as kt,kk as ld,kl as hd,aE as Ft,aF as Kl,jR as Lt,km as dd,kn as pd,q as yn,ko as md,kp as Yl,kq as gd,kr as Jl,bi as Xl,N as zo,ks as vd,kt as yd,ku as _d,kv as Ql,kw as bd,kx as wd,ky as Sd,kz as Ed,kA as Rd,kB as Od,kC as Td,kD as xd,kE as Cd,kF as Ad,kG as Id,kH as Pd,kI as kd,gq as Ld}from"./index-B9FgmOrh.js";import{j as X,D as nn,S as Vt}from"./mui-C42whWwM.js";import{b as Se,n as ut,c as Ve,i as eh,g as qd}from"./vendor-rkTZJa59.js";import{f as jd}from"./analyticsHelper-BxXohuM3.js";import{g as rt,u as Ie,f as Ye}from"./redux-2gfZRks6.js";import{a as Je,d as pt,e as Dd,N as er,R as wt,c as qe,u as Zo,b as Go}from"./routing-VwiwPky5.js";import{B as ze,a as Qe,b as Nd,c as Wo,d as $d,e as Ko,f as Yo,g as Md,h as Fd,i as zt,j as th,k as rr,l as an,m as Ud,n as Bd,o as Vd,p as zd,q as Gd,s as Hd,t as Zd,u as rh,v as on,w as ar}from"./crypto-BDNqpTKX.js";import{p as Oe}from"./sentry-osuhWjvS.js";import{r as Wd}from"./lodash-BWJmwMit.js";import"./analytics-B3n5JGPc.js";import"./liveblocks-CP09Cz-7.js";const Kd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Yd(e,n){return{headerActions:{onTabChange:a=>{const i=qt(a),o=Bt(a);Ke.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ke.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(o=>o.matchingOperator).join(vs.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(o=>o.field).join(vs.comma)}}),e(Y.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(Y.initializeCompanyHealthMetricViewLocalData(a))},onColumnSortConfigChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(Y.fetchCompanyHealthMetricView())},onFiltersChange:a=>{e(Y.updateCompanyHealthViewUIState({uiState:{filters:a}}))}}}}function Jd(e,n){return{headerData:{selectedTabOption:Tt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Xd=Ye(Jd,Yd)(fd);function _n({isDrawerOpen:e}){const n=Je(),a=rt(),i=Ut(),o=en(),{companyId:t}=pt(),[r,s]=Dd(),[d,h]=Se.useState(!1),c=Ie(w=>Y.getCompanyHealthMetricView(w)),f=Ie(w=>Y.getCompanyManagementView(w)),{additionalChurnFactors:l}=Ie(w=>Y.getCompanyHealthMetricConfig(w)),{selectedCompanyDetail:_,selectedCompanyId:m,localFormDataAndStatusByCompanyId:b}=c,p=Ie(w=>w.companyViewState.zeniUsers.fetchState),u=Ie(w=>w.companyHealthMetricConfigViewState);if(Se.useEffect(()=>{const w=v=>v==="Not-Started"||v==="Error";c.fetchState==="Completed"?a(Y.fetchAllCockpitViews(!1)):w(c.fetchState)&&(a(Y.fetchCompanyHealthMetricView()),w(p)&&a(Y.fetchZeniUsers()),w(u.fetchState)&&a(Y.fetchCompanyHealthMetricConfig()))},[c.fetchState,u.fetchState]),Se.useEffect(()=>{t!=null&&c.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Y.initializeCompanyHealthMetricViewLocalData(t)),_!=null&&(Ke.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:_.companyInfo.companyId,companyName:_.companyInfo.name,churnProbability:_.companyHealthMetric.churnProbabilityPercentage??null}),h(r.has("utm_source")),r.delete("utm_source"),s(r)))},[c.fetchState,_?.companyInfo.companyId,_?.companyInfo.name]),tt.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return X.jsxs(X.Fragment,{children:[e===!0||m!=null&&_!=null?X.jsx(nn,{anchor:"right",open:m!=null,PaperProps:{style:{width:Kd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Y.removeSelectedCompanyId()),children:X.jsx(ud,{roomId:`cockpit_${m}`,autoConnect:!0,children:X.jsx(cd,{onSaveClick:()=>{m!=null&&a(Y.saveCompanyHealthMetricById(m))},onSaveChangesToLocalStore:w=>{c.selectedCompanyId!=null&&a(Y.updateCompanyHealthMetricLocalStore({companyId:c.selectedCompanyId,updatedLocalData:w}))},localData:b?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>a(Y.removeSelectedCompanyId()),analytics:Ke,urlSource:d,additionalChurnFactorsOptions:l})})}):null,X.jsx(Xd,{healthView:c,managementView:f,navigate:n,mixpanelHMUrl:tn.mixpanelHMUrl})]})}const nh=(e,n)=>{const a=[...e??[]];return a.push(n),a},Qd=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ep=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},Fe=({state:e,element:n})=>tt.isSignedIn()===!0?X.jsx(X.Fragment,{children:n}):X.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function tp(){return X.jsxs(wt,{children:[X.jsx(qe,{path:"/companies/:companyId",element:X.jsx(Fe,{element:X.jsx(_n,{isDrawerOpen:!0})})}),X.jsx(qe,{path:"/",element:X.jsx(Fe,{element:X.jsx(_n,{})})}),X.jsx(qe,{path:"/*",element:X.jsx(Fe,{element:X.jsx(_n,{})})})]})}const rp={drawerLeftMargin:new dt(0,0,240)};function or(e){const{isOpen:n,drawerLeftMargin:a,children:i,onClose:o}=e,t=en(),r=a?.valuePx(t)??rp.drawerLeftMargin.valuePx(t),s=Ut();return X.jsx(nn,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:o,children:i})}const np=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?X.jsx(ip,{children:X.jsx(rn,{size:"ExtraLarge",start:!0})}):null,ip=ut.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;