@zeniai/web-cockpit-ui 1.13.90-dev → 1.13.91-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 (244) hide show
  1. package/dist/assets/{ACHDetailsPage-ppaaVv4t-BnOUfoFz.js → ACHDetailsPage---jqahtW-HkPM6iNK.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-brocrTLA-C9EDr2D4.js → AIPerformancePage-CqtdCyg8-Dj0j3-W5.js} +36 -36
  3. package/dist/assets/{AccountInfoPage-BkqXbGUJ-DXuI8tNZ.js → AccountInfoPage-Bj1CYa-r-6hrIafHf.js} +2 -2
  4. package/dist/assets/{AccountInfoPageContent-DOrQxiUF-2yx_ZhMt.js → AccountInfoPageContent-qqbfRfuR-DLDodhYL.js} +20 -20
  5. package/dist/assets/{AccountReconDetailsDrawerPage-i6rVi1gY-DVchfPsP.js → AccountReconDetailsDrawerPage-B4UwcNN9-Crki_oBL.js} +18 -18
  6. package/dist/assets/AccountRow-CPX-627p-B4ZaO0oz.js +298 -0
  7. package/dist/assets/{AccountsPromoCardStack-BvFE5A3N-C__nnIqn.js → AccountsPromoCardStack-DJRAw09x-KYhdIp34.js} +26 -26
  8. package/dist/assets/{AddAddressForCardDrawer-BV2BSzaD-CBI5bfsC.js → AddAddressForCardDrawer-C16ksTIf-_DtEs9T5.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-DTEIuDRq-CzKzLxkn.js → AddToWalletPage-CDP1oPrv-D581H1KG.js} +18 -18
  10. package/dist/assets/{AgingReportsPage-B8iVxaQX-z0eVPQ8X.js → AgingReportsPage-BE4plS7V-BI8-4bNE.js} +7 -7
  11. package/dist/assets/{AllUserItems-BepRyHp7-6smxMTUs.js → AllUserItems-hoI2_gnV-BVf131yZ.js} +8 -8
  12. package/dist/assets/{ApAgingDetailPage-DOObMUqB-DRL-pTDS.js → ApAgingDetailPage-Lxprtz8c-v17bsYA_.js} +3 -3
  13. package/dist/assets/{AppBasePage-Ob8EkU54-B4IzJNVZ.js → AppBasePage-DNOkJf4q-CMKV9Zw9.js} +1 -1
  14. package/dist/assets/{AppDrawerContent-CNsKktFP-oEQQGdma.js → AppDrawerContent-DG2Jr298-DulxRmba.js} +10 -10
  15. package/dist/assets/{ApprovalRulesSettingsPage-Bn7LOelK-C_JBTy7y.js → ApprovalRulesSettingsPage-DnKXln0A-Dwcdgf1j.js} +6 -6
  16. package/dist/assets/{ArAgingChart-C0hTtEmV-Cp3DCSeq.js → ArAgingChart-BRcy3--o-CqONheoM.js} +7 -7
  17. package/dist/assets/{ArAgingDetailPage-C_E_xPwf-CoqFi7sc.js → ArAgingDetailPage-Djsocm6M-DY45zDqC.js} +3 -3
  18. package/dist/assets/{AttachmentView-CATl3tNf-DCa2zXLn.js → AttachmentView-C3AzH7cN-Csi7tXqw.js} +8 -8
  19. package/dist/assets/{BankAccountSection-VSbZyxoY-BkprL32R.js → BankAccountSection-6zosSfPV-CL3CT6a1.js} +4 -4
  20. package/dist/assets/{BankAccountWarningSection-a39s142r-4WcZfRoK.js → BankAccountWarningSection-CWeN3me0-QfeSw0RL.js} +6 -6
  21. package/dist/assets/{BankConnectionsSettingsPage-CBavGNdc-DWKqHO49.js → BankConnectionsSettingsPage-C6e0pgD4-B1leagLf.js} +22 -22
  22. package/dist/assets/{BillDetailPage-uMG3JJPb-ClGgqpml.js → BillDetailPage-DyIokQbf-BaKgZbi4.js} +9 -9
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-Bmrg1Wxh-CFroqaxM.js → BillPayApprovalRuleDetailPage-BOhQfwEj-CAExLIKt.js} +2 -2
  24. package/dist/assets/{BillPayApprovalRulesPage-BN21qPTb-BwOgIMfY.js → BillPayApprovalRulesPage-CSua3b4v-Cw1EavO3.js} +7 -7
  25. package/dist/assets/{BillPayPromoPage-DoP2oC8W-D-cHzeZ4.js → BillPayPromoPage-CtenNypw-CjfButz0.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-o-V-9aI5-DuW6yWFa.js → BillPaySetUpPage-CAnvQ_-Q-DJBEmdYy.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-CX-rbxzB-D5hgrymw.js → BillingSettingsPage-CjSAhEFl-tgXS9QLV.js} +4 -4
  28. package/dist/assets/{BillsBulkReviewDrawerPage-_qgURJjv-CemkDBxg.js → BillsBulkReviewDrawerPage-B62rj2kN-BUJLVUNP.js} +1 -1
  29. package/dist/assets/{BoxItem-CHPfWPEF-lXs1y6iB.js → BoxItem-Cqmd_7h4-S5g5H_Jr.js} +1 -1
  30. package/dist/assets/BusinessVerificationPage-DT24fycp-CWdqg83h.js +140 -0
  31. package/dist/assets/{CardNumberSubText-dxYfM6ph-B1OZ5t3N.js → CardNumberSubText-DszoXtgg-ySKglJLN.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-BfTC3IBm-BcRVF9pL.js → CashbackDetailPage-DAwARNZD-3Wx6cNnB.js} +13 -13
  33. package/dist/assets/{ChargeCardDetailPage-npqfreRG-D_PNn6ZE.js → ChargeCardDetailPage-BzbR-Z63-7lzvBesN.js} +40 -40
  34. package/dist/assets/{ChargeCardListPage-Dbx1ymB9-DiXO1BWI.js → ChargeCardListPage-DSOp7sFg-CW3N5mrs.js} +10 -10
  35. package/dist/assets/{ChargeCardListTable-qk9tQ6Kb-DR0FaH4k.js → ChargeCardListTable-BE4it4le-6GBRyFGt.js} +10 -10
  36. package/dist/assets/{ChargeCardPromoPage-CsItH2IC-BEXKS9-8.js → ChargeCardPromoPage-DOibcN9n-8P5nzLqn.js} +4 -4
  37. package/dist/assets/{ChargeCardSetupPage-D5LWY3-P-BB2kARlQ.js → ChargeCardSetupPage-Dm_N5oDM-BxIAhVV2.js} +2 -2
  38. package/dist/assets/{ChargeCardStatementsPage-vYbnt2WJ-CDBr97Hk.js → ChargeCardStatementsPage-Dhqs5CF4-Be58aAaq.js} +2 -2
  39. package/dist/assets/{ChargeCardUtils-k5Cmi_bM-xJoIL5jf.js → ChargeCardUtils-oF0M6Gmc-CWcylJdd.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-DQz9r9Pp-Bwx2nGMD.js → ChaseOverlay-DPgGIuyV-JigHbzQk.js} +7 -7
  41. package/dist/assets/CheckDepositDrawerPage-DaaWfNin-BVXQpqWr.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-Dp1985is-CgJ_JGJs.js → CollapsableReportTable-DMr2UDgH-cuAz2CYU.js} +29 -29
  43. package/dist/assets/{CompanyOfficerDetailsSection-CGewbsKm-DBM7Hns2.js → CompanyOfficerDetailsSection-B_cIues7-BNMnvkxE.js} +19 -19
  44. package/dist/assets/{CompanyPassportCard-Dp3a8GH8-qRGWLoZI.js → CompanyPassportCard-CHF83hfN-BGYNkzga.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-CS1LPj5f-CxHtTINk.js → CompanyPassportPage-C5W3KcDY-Bzodetvj.js} +29 -29
  46. package/dist/assets/CompleteProfile-MP9AF8Iu-CvhmGgEz.js +36 -0
  47. package/dist/assets/{ConfettiBurst-DX1P5VT_-C7tIIZfu.js → ConfettiBurst-DVT9EpwF-DHA9TDKH.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-BL1BXGvy-Vx1XM-1z.js → CreateOrEditVendorPage-DVbYQaWM-DGXxCdMQ.js} +13 -13
  49. package/dist/assets/{CreditCardPaymentDrawerPage-D6-R3DiA-ByQ_c4QS.js → CreditCardPaymentDrawerPage-D2qT7vsE-Bf1M1_AV.js} +10 -10
  50. package/dist/assets/{CreditCardPaymentPlgSection-YcsIIUkG-C-zCY8ZF.js → CreditCardPaymentPlgSection-7cmMRTQm-CcPhomOR.js} +6 -6
  51. package/dist/assets/{CurrencySelectField-CH65s5Fc-DGotu77i.js → CurrencySelectField-ClhIJFVw-Cum1rEqk.js} +4 -4
  52. package/dist/assets/{CustomerOnboardingActivationPage-DCHbvIb1-4vnrfrOn.js → CustomerOnboardingActivationPage-D-Ihd-H0-BECSi6lI.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-C9jXmYuH-DO8DpQlg.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Cz40bZgg-6UjJ2BJ9.js → CustomerOnboardingDetailPageSkeleton-CUxNOK4z-Ch73W5CD.js} +11 -11
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-DrbkKOBx-C5bbYFj1.js → CustomerOnboardingNoStepsPage-B9ts3Tla-CfVcbZOI.js} +4 -4
  56. package/dist/assets/CustomerOnboardingPage-DJbFeXms-BffeJFQv.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DyGs61vw-DLcQ1dQj.js → CustomerOnboardingProductSuitePage-iSJtAhvu-CITklSrx.js} +5 -5
  58. package/dist/assets/{Dashboard-beLswUHx-XoTiAJKU.js → Dashboard-SKeHZ5QY-pKKhGZuT.js} +38 -38
  59. package/dist/assets/DashboardReportPage-3X6wpJL2-lEFYnnKZ.js +349 -0
  60. package/dist/assets/{DepositAccTransactionItem-CfAjG3HH-COwwc_MG.js → DepositAccTransactionItem-DJNio75H-BszNXL3v.js} +2 -2
  61. package/dist/assets/{DepositAccTransactionListPage-Cj1smNoP-CkdRHZge.js → DepositAccTransactionListPage-DTIjlF2l-BqgMCmPb.js} +3 -3
  62. package/dist/assets/{DocumentSecurityBanner-BRFFDueV-stK3q2uU.js → DocumentSecurityBanner-CVNWDvAg-ZZDqDElp.js} +1 -1
  63. package/dist/assets/DomesticWireDetailsPage-D-qwPVDs--Pww9UWD.js +21 -0
  64. package/dist/assets/{DownloadOverlay-Ly2ZesqA-D_S8bx9G.js → DownloadOverlay-BLj0xso_-BlktwxlM.js} +1 -1
  65. package/dist/assets/{DrawerPage-BFIdjtOJ-BFnTHlQb.js → DrawerPage-CEetzMMx-BQrlKpot.js} +3 -3
  66. package/dist/assets/{EditPeoplePage-BPHt33f5-DjZUh9aC.js → EditPeoplePage-DDUuO0Nh-opJ_tpA8.js} +8 -8
  67. package/dist/assets/{EditReimbursementDetailPage-DJ_qNQbh-D_aBh5FK.js → EditReimbursementDetailPage-CT8mqYr5-RAkBtvUB.js} +24 -24
  68. package/dist/assets/{EntityDetailPage-DZ9vXZci-DUGgDVnf.js → EntityDetailPage-DMh6o0bo-D9tSJvlK.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-kCA6OJs0-CuvI5nJX.js → EntitySummarySection-tK_X4uAf-DnZqgJgW.js} +9 -9
  70. package/dist/assets/{ExpenseAutomationOverviewPage-B9K2qPQi-BcMuOXVi.js → ExpenseAutomationOverviewPage-CLUiYjKg-Cnf2er5n.js} +18 -18
  71. package/dist/assets/{ExpenseAutomationPage-LoGHiJzr-BnTXz0Ci.js → ExpenseAutomationPage-C9biTgak-CwmQJIGr.js} +82 -82
  72. package/dist/assets/{ExpressPayPage-B12NaLXN-CGW5-zDn.js → ExpressPayPage-DpAixmcQ-DHNO4VFc.js} +8 -8
  73. package/dist/assets/{FeaturePreviewPage-D9_aRmPj-CvnK2Uy2.js → FeaturePreviewPage-BohUqOFz-CnIenXNU.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-BL8sM4vS-D6HNdi5Y.js → FollowStepsSection-BAUXUzTr-DcO_IUEM.js} +10 -10
  75. package/dist/assets/{GlobalReviewListPage-DONc_BXP-jngzyZ2P.js → GlobalReviewListPage-BxYHNkut-De1zroLC.js} +8 -8
  76. package/dist/assets/{HelpButton-khTPylkl-CEL7Boo7.js → HelpButton-8AQIbLQM-Dxn71Y7_.js} +2 -2
  77. package/dist/assets/{InformationCardStack-BtIMGsaQ-BRj2ZNHm.js → InformationCardStack-76GlZ-Bq-CtLoCld8.js} +4 -4
  78. package/dist/assets/{InsightsCardStack-lzduh7aO-Crnd4D-1.js → InsightsCardStack-CvOFi2Uu-JAhaDMUB.js} +9 -9
  79. package/dist/assets/{InsightsSection-q1QuO6Z4-1k_aUqAr.js → InsightsSection-DyF8JZIR-yy37hbXV.js} +3 -3
  80. package/dist/assets/{IntegrationsSettingsPage-CpnXcxlz-ANVTxCp5.js → IntegrationsSettingsPage-mys0-i40-D_Td3Eck.js} +4 -4
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-BXBsK560-i2JR8sEk.js → InternationalWireSwiftDetailsPage-km4qEcXH-BDq6b8VU.js} +7 -7
  82. package/dist/assets/{InternationalWireVerificationPage-BrnMNFx7-CivrskR8.js → InternationalWireVerificationPage-DauhGM3c-CQuc_5ZL.js} +5 -5
  83. package/dist/assets/{InviteFormPage-DQTEQazA-CYIvBKP9.js → InviteFormPage-FSL8fEXT-Dygrs-_-.js} +16 -16
  84. package/dist/assets/{InvitePageListView-C7CaDCYN-kxX6EM5-.js → InvitePageListView-zaQ1xEHJ-BmXz06Jr.js} +27 -27
  85. package/dist/assets/{InvitePeoplePage-Ca0ZnNhV-4UVRRlzN.js → InvitePeoplePage-BNB36i8Y-COHEYzwz.js} +2 -2
  86. package/dist/assets/{InvoiceUploadSection-Cm7WlMIS-Ds7UwHT_.js → InvoiceUploadSection-FXrB92T6-JqJ7zAlH.js} +6 -6
  87. package/dist/assets/{IssueChargeCardPage-B7w3Xky1-CF1rLLIM.js → IssueChargeCardPage-D3cUp2DE-DFSG2B0F.js} +21 -21
  88. package/dist/assets/{LabeledAddressValue-B5Yv4nig-BmG4gsPH.js → LabeledAddressValue-BF6r800B-CeESX1Hz.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-BODlYe8J-C_77UpWi.js → LabeledAddressValueField-DYelJL4d-Dl7kIpOx.js} +3 -3
  90. package/dist/assets/{LabeledControlledCheckBoxField-BBrHodlx-ajZwZw2T.js → LabeledControlledCheckBoxField-B2ATKJBH-CXyWx4Ub.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-DBovHkMc-D9D-7hZt.js → LabeledCreatableSingleSelectField-B9zUAA6L-1j60EBJE.js} +6 -6
  92. package/dist/assets/LabeledDocumentField-DORRl3DI-WSVu_B_9.js +41 -0
  93. package/dist/assets/LabeledDropDownFormattedTextField-FpRJ9tiX-Tiw-2EM1.js +59 -0
  94. package/dist/assets/{LabeledText-D0aPaE6r-DJ33Sqqy.js → LabeledText-C34I_iEo-DpYgVuJS.js} +2 -2
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CO-Owx5--C5GcoA_6.js → LabeledUserSingleSelectWithSubtitlesField-B6aVL-fb-D9zCwLzE.js} +10 -10
  96. package/dist/assets/{LabeledZeniRolesDropDownField-CcfvYWTB-FOsQ-M0q.js → LabeledZeniRolesDropDownField-Caj0_1zM-DksZdels.js} +13 -13
  97. package/dist/assets/{LinkJETransactionPage-w2poqqTD-CRc8L88u.js → LinkJETransactionPage-DLmZGscZ-DAJUM85q.js} +12 -12
  98. package/dist/assets/{LowBalancePopup-BpFvPcb8-CmbXf1Gb.js → LowBalancePopup-ll1SesgY-BWe295aL.js} +7 -7
  99. package/dist/assets/{MagicLinkACHDetailsPage-DUyr5VX8-FvxaU41w.js → MagicLinkACHDetailsPage-DXzjYrdU-DXTf7zdI.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CTA58UoF-CRGjJqP9.js → MagicLinkDomesticWireDetailsPage-CUwp46Wf-CEU-wofA.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DDQqyw69-MTxSeQ4l.js → MagicLinkInternationalWireDetailsPage-B_h0EHoZ-5KHyZ3zZ.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-CKKAWryZ-Cm8AQCr_.js → MagicLinkSuccessPage-BX4E-l5M-DUEIbM10.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-CvW_f4xF-BDkWHabu.js → MagicLinkTitleSection-DHe9TfVe-xOZGBQNN.js} +2 -2
  104. package/dist/assets/{MailingDetailsSection-Di5KwEqu-Di8UL6YK.js → MailingDetailsSection-D8CZart4-D1oBjzV1.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js → MeetingCalenderPopup-D4tz-H5i-CGIgOa91.js} +3 -3
  106. package/dist/assets/{Menu-BOh_KLZu-BrkD9kYL.js → Menu-C9u3eDJk-Dna4rH8W.js} +2 -2
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BBQ0YN9M-BBihRuQw.js → MyBankConnectionsSettingsPage-DVp3h4c0-Cn5_bOe_.js} +11 -11
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-DcXCxGj2-BY3uKh9u.js → MyPendingActivationChargeCardListPage-BTk8mY7B-BbdmJXam.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-D-lTTFuP-D9kDcE-6.js → MyProfileSettingsPage-BdcDAwKZ-DhDLZRJB.js} +9 -9
  110. package/dist/assets/{NavBarWithPicker-CNBOk06R-D8yiRwFQ.js → NavBarWithPicker-DbSWvh0o-1EJ8HziX.js} +4 -4
  111. package/dist/assets/{NavigationArrow-B15b66TT-B9hYIhnI.js → NavigationArrow-BP8cU19I-DuPgzuQR.js} +1 -1
  112. package/dist/assets/{NavigationDots-5fxvl-4e-BzJdpllk.js → NavigationDots-nvOimTil-Do5DUslv.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-BeP4W8rj-Dwyu3Pw7.js → NewGlobalMerchantPage-D-imjD0M-pXdB0gKF.js} +6 -6
  114. package/dist/assets/{NoDataChart-edFKx0zh-DIp9-BoP.js → NoDataChart-VE4W-RUu-BjJTQpdm.js} +1 -1
  115. package/dist/assets/{NoDataTable-41nH5trW-Brapb7lv.js → NoDataTable-d0_62BR0-vyxhk2_b.js} +1 -1
  116. package/dist/assets/{NotFoundPage-CRVGi6Xn-BHvH8jL8.js → NotFoundPage-BydQGX11-BGoiJNRP.js} +4 -4
  117. package/dist/assets/{NotificationSettingsPage-CiVAtoGY-B9kZWOsO.js → NotificationSettingsPage-BIzaZFzy-BGkCXx1m.js} +6 -6
  118. package/dist/assets/NotificationsListConfig-DVBOQJZq-BcXyCFD3.js +1 -0
  119. package/dist/assets/{NotificationsPage-DuHUL5V8-CgYzIXTj.js → NotificationsPage-BdI4E6uL-DkzIMoYu.js} +29 -29
  120. package/dist/assets/{OpExByVendorPage-D611nXIC-CqyYyP4C.js → OpExByVendorPage-Dm90CRYi-fVB-9LNX.js} +5 -5
  121. package/dist/assets/{OverlayContainerPage-C0rUb6-5-DPaQcYgi.js → OverlayContainerPage-nhe7xtoR-BxI5uHKy.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-Cqab0euB-dzseIlDa.js → PandLWithForecastPage-DhbFHH25-DsvGD_Sy.js} +7 -7
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Cvn1adQb-kbzfxjFm.js → PaymentAccountSetupBillingAddressSection-Debi_lWf-LBl6kVXa.js} +6 -6
  124. package/dist/assets/{PeoplePage-MCCZAx4z-BnV0pX_P.js → PeoplePage-BACu55RO-BN0ZZ-UI.js} +24 -24
  125. package/dist/assets/{PortfolioAllocationFormPage-Coa0Y4wN-CVL7-3BP.js → PortfolioAllocationFormPage-Cjz_E3BK-BKc2XOmG.js} +3 -3
  126. package/dist/assets/{PortfolioDetails-C9a0p99e-d06R_ouh.js → PortfolioDetails-CS2st-Mx-B7UFy1Ls.js} +8 -8
  127. package/dist/assets/{ProductsCarousel-B0fHKTa_-Bne7N-_V.js → ProductsCarousel-TB4uKZbg-BDTdHFcB.js} +9 -9
  128. package/dist/assets/{PromoBaseCards-BuCQJuXH-BcjVOmSJ.js → PromoBaseCards-BMPp9RNQ-B5wN89Pm.js} +5 -5
  129. package/dist/assets/{QBOConnectionDialog-D-vB9dbo--0kkpUah.js → QBOConnectionDialog-B1b1wGeq-OoIQ8fFk.js} +9 -9
  130. package/dist/assets/{QBOSetupSection-CfficE5p-nLwRVoqN.js → QBOSetupSection-Bj_y0Lo2-D2Jh1k_B.js} +7 -7
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cg_pVsAh-Baq7EYkc.js → ReimbursementApprovalRuleDetailPage-Cz4RtqYb-BX1qPBal.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-Dg1b0lJP-YhAdGh62.js → ReimbursementApprovalRulesPage-DJlNT4Ov-DKT5YJKy.js} +20 -20
  133. package/dist/assets/ReimbursementDetailPage-BQiu7Gts-DqYEtmnq.js +314 -0
  134. package/dist/assets/{ReimbursementPromoPage-MQpz5nNE-CLg8Hqif.js → ReimbursementPromoPage-ppaPJby5-CiDmuDvG.js} +16 -16
  135. package/dist/assets/{ReimbursementSetUpPage-BRjWHns_-BSdXzytm.js → ReimbursementSetUpPage-B6mZrzQB-38calwmF.js} +8 -8
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-wPNRkXt8-DoNrAJRB.js → ReimbursementsBulkReviewDrawerPage-DS55QesG-DWNEdEIB.js} +1 -1
  137. package/dist/assets/{ReloadCard-D5woGDxx-DS9HJ3wy.js → ReloadCard-DDDYlCsI-BiE6_qfW.js} +5 -5
  138. package/dist/assets/ReportTableViewSelector-Bss4AtF1-D_wRO_1z.js +133 -0
  139. package/dist/assets/ReportsPage-C-g9588h-XLIvq5EO.js +120 -0
  140. package/dist/assets/{RevenueChart-CS0JmijO-BqFQGtoh.js → RevenueChart-DPkxzWaE-ClY8SeJE.js} +25 -25
  141. package/dist/assets/{ReviewDetailsPage-C7RbpKwU-C9iDaLL8.js → ReviewDetailsPage-CyF2YP3t-B_CfpE0G.js} +14 -14
  142. package/dist/assets/{ReviewOverlay-BwgzcM9d-CSY6hmMy.js → ReviewOverlay-AoSgYufX-BCA64ah8.js} +6 -6
  143. package/dist/assets/{RoleWithToolTip-DkeT6zjW-DmUDvRC_.js → RoleWithToolTip-aoWU03so-Bag-xDLs.js} +6 -6
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BzZkVg7T-c2tjnpKQ.js → ScheduleDetailsFixedAssetsPage-Bfj3vclV-biUqkJSS.js} +4 -4
  145. package/dist/assets/{ScheduleDetailsPage-DiXwmlk8-t0I7MASB.js → ScheduleDetailsPage-B30aUjKr-VuYOr4oZ.js} +3 -3
  146. package/dist/assets/{ScheduleSequenceTable-CSxFNhoR-D9UFT3Zm.js → ScheduleSequenceTable-CStdRSyQ-YS2LkHDs.js} +22 -22
  147. package/dist/assets/{ScreenRoutes-xLzXCTox.js → ScreenRoutes-DUx3gCGl.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-CdUpAzlt-4B1rLcGQ.js → SetUpAccountSection-nul4pyeP-CLCXvV9l.js} +103 -103
  149. package/dist/assets/{SetUpDefaultSection-D4FafmO5-CcuY4gpp.js → SetUpDefaultSection-ByW3h9zl-9i3uOw78.js} +8 -8
  150. package/dist/assets/{SignIn-CAmRcuqx-CXf8JU8h.js → SignIn-R1Rsh38G-8L0Hp_zM.js} +18 -18
  151. package/dist/assets/{SignInScreen-CEfXit7t.js → SignInScreen-BE18aJB0.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-DdpJprAd-BHEK7wRP.js → SpendManagementListViewPage-BqOQ7NY_-DhnClYVW.js} +4 -4
  153. package/dist/assets/{SpendManagementPerTabPage-D2Ri2q6S-BZOgnmqs.js → SpendManagementPerTabPage--2EC1Oz4-DclxNVvC.js} +36 -36
  154. package/dist/assets/{SpendManagementSection-CisJALAC-zKC9aL_a.js → SpendManagementSection-COMVry1E-CYzctw4v.js} +11 -11
  155. package/dist/assets/{SpendMgmtSetupAccountSection-DcJhhfdt-CSj4RU9Q.js → SpendMgmtSetupAccountSection-fV4qxxEy-ExRAZ_sL.js} +8 -8
  156. package/dist/assets/{StatementItem-BOq_DDMZ-VgE7gIr3.js → StatementItem-BksIBztP-GeqTXxSG.js} +5 -5
  157. package/dist/assets/{StatementsPage-C9WOCLSj-lgfYmMKh.js → StatementsPage-DnAoeqze-BOeXA5KM.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-CofdCR_K-DYsfjilX.js → StatusSwitcher-b1A9RnRP-B052EzJ9.js} +4 -4
  159. package/dist/assets/{SubTabSwitcher-BPVG5BHS-C6Ng45Yx.js → SubTabSwitcher-CgJW4ZXd-DlWjeTn_.js} +1 -1
  160. package/dist/assets/{SummaryCard-D-me4TrL-C69v2luu.js → SummaryCard-sEKhcIH5-DRp31G9t.js} +1 -1
  161. package/dist/assets/TaskManagementPage-z5uvcy81-CPykjrgv.js +508 -0
  162. package/dist/assets/{TimeRangeSwitcher-BK7gGqaa-li6QV9p5.js → TimeRangeSwitcher-DQ-u6pKk-DC1xB5lv.js} +5 -5
  163. package/dist/assets/{TimeframeSwitcher-SD5_8TCp-DcEUsFuS.js → TimeframeSwitcher-B0yxn0SJ-CwNpTd2S.js} +5 -5
  164. package/dist/assets/TimeframeSwitcherWithToggle-BlbY3qcY-CLuOSbn2.js +31 -0
  165. package/dist/assets/{TopExCard-CDgcQKGp-G2-ryp7z.js → TopExCard-CTjfWfCk-CAtjOAda.js} +5 -5
  166. package/dist/assets/{TopExDetailPage-CXiEe14r-DrI7SLfC.js → TopExDetailPage-CdpvcVME-J1pxGIiS.js} +6 -6
  167. package/dist/assets/{TransactionDetailPage-IJyZF-Z_-ssTdABCq.js → TransactionDetailPage-DdF9FS4b-aUNjP2MS.js} +46 -46
  168. package/dist/assets/{TransactionList-C34ivmk5-BL7wpE6F.js → TransactionList-CHq3WONc-CDMTLkl_.js} +13 -13
  169. package/dist/assets/{TransactionListBig-qruiU0xy-4hBLzp6P.js → TransactionListBig-D-Gxd5n0-BYXDLjRx.js} +18 -18
  170. package/dist/assets/{TransactionListPage-C31U97xd-B7MDVBJ8.js → TransactionListPage-DK9-YK_1-jSebPnQW.js} +5 -5
  171. package/dist/assets/{TransactionVendorDetailPage-DZsvH-GM-CHoVBuA8.js → TransactionVendorDetailPage-Cc9pTpTw-dOPSJTMD.js} +6 -6
  172. package/dist/assets/{TransferDrawerPage-DC5q2Zpv-Bbx0ZiKK.js → TransferDrawerPage-DoDTECI8-BFP-sFPo.js} +33 -33
  173. package/dist/assets/{TreasuryOverviewPage-DSBqawrH--EJITXP0.js → TreasuryOverviewPage-wlfReqPJ-Dd6DjTk6.js} +14 -14
  174. package/dist/assets/{TreasuryPromoPage-D6WSBxgD-BYq_YoGm.js → TreasuryPromoPage-C9WNRb2_-Bv2i8EfH.js} +8 -8
  175. package/dist/assets/{TreasurySetupPage-BgSq4D0a-BeLJ_DJT.js → TreasurySetupPage-CjV0cOq9-BmP_R4PT.js} +2 -2
  176. package/dist/assets/{TreasuryStatementsPage-Dj9RAujO-BX1C5lYD.js → TreasuryStatementsPage-DqOWNGB_-hAvO09t_.js} +5 -5
  177. package/dist/assets/{TreasuryTaxLetterPage-Dw6tL_j9-BVOoGBCD.js → TreasuryTaxLetterPage-BWGHcQ-i-DCm4xllr.js} +4 -4
  178. package/dist/assets/{TreasuryTransferOrReviewPage-cBHznYnK-1UcbcZaf.js → TreasuryTransferOrReviewPage-CgL8K7N9-BrTZBU_c.js} +19 -19
  179. package/dist/assets/TrendChart-76tuu9Dr-DKqkCwBC.js +16 -0
  180. package/dist/assets/{TrendWithTransactions-BOGQK2Zt-itTZBsuV.js → TrendWithTransactions-B_fJTS4m-B4jhKCz-.js} +1 -1
  181. package/dist/assets/{UncategorizedAccountsMappingPage-Ci4VHOLB-CZTpXCGM.js → UncategorizedAccountsMappingPage-DpY1kK_K-CX5FrYpM.js} +7 -7
  182. package/dist/assets/{UnitIntegrationPage-DSMTzyKA-DnkdzVNG.js → UnitIntegrationPage-BTJI7fx3-B4TaSpvh.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-CBpLz-gk-DUe20w1p.js → UploadAdditionalDocumentOverlay-BH3bRKoG-Cxr-sGAj.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-Be7OBE4e-Cos9XGLx.js → Vendor2FAPopup-4-XtZDNS-BuVX3Yle.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-LvWgxsF7-BpMJ6WbJ.js → VendorACHDetailsPage-B2knDl4H-czLYWWIH.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-C-qpa1GC-C0r4HDge.js → VendorDetailPage-w-tghGpI-CfkAuWGF.js} +17 -17
  187. package/dist/assets/{VendorDomesticWireDetailsPage-Ckoq2I8V-BwkAhyAi.js → VendorDomesticWireDetailsPage-BXCCdTjh-Di1QWV1S.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-WZMwLILQ-BqoTTIiC.js → VendorFiling1099EditablePage-DGQO9Qqj-CEOM5YEV.js} +7 -7
  189. package/dist/assets/{VendorFirstReviewPage-DNhp59d9-D_f9l4B9.js → VendorFirstReviewPage-Lblb6X1V-39fudz_L.js} +40 -40
  190. package/dist/assets/{VendorInternationalWireDetailsPage-DuP916gU-COYahX1d.js → VendorInternationalWireDetailsPage-Bi5RBKxI-CtyyMelR.js} +9 -9
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BCIC6mrJ-BI-zVOHZ.js → VendorInternationalWireSwiftDetailsPage-CBZmsXnL-B-d0u1XS.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-C4q6FPlB-C6cNo2_u.js → VendorsAccountsSection-JI0e3gKo-BI5thaS_.js} +4 -4
  193. package/dist/assets/{WarningsDrawerPage-C162biV8-pPVOEtpH.js → WarningsDrawerPage-BQzUQ5-l-D1cPDLUy.js} +5 -5
  194. package/dist/assets/{ZeniAccountDetailPage-C3NnXuFp-CXwXsDQ1.js → ZeniAccountDetailPage-DPJ4mWoO-D2fzjkqw.js} +29 -29
  195. package/dist/assets/{ZeniAccountListViewPage-Cn7rYnlu-DTOPnL32.js → ZeniAccountListViewPage-iHMJ7FU7-UZUihbgS.js} +23 -23
  196. package/dist/assets/ZeniAccountNavBarPieces-D1g1REsS-D07e9d9s.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-BGyyQP4l-B98KmCaD.js → ZeniAccountPromoPage-OxQ03DtJ-X6atYnaZ.js} +8 -8
  198. package/dist/assets/{ZeniAccountSetupPage-CIh0isMw-lFqJMWg0.js → ZeniAccountSetupPage-BahzDcmm-B-umC_Qa.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-B83zWEf0-19q3_mPy.js → ZeniCopyright-Dpqdxu7f-CHOK6b2K.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-CPg3o4xG-BlMvJPot.js → ZeniTransferAmountSlider-DwC6pXnb-BgJArm45.js} +1 -1
  201. package/dist/assets/analytics-BSSiLa6f.js +7 -0
  202. package/dist/assets/{analyticsHelper-CD5PHV67.js → analyticsHelper-CPNSDy4Z.js} +1 -1
  203. package/dist/assets/{analyticsHelper-DlYWxxhD-DdeYfQh2.js → analyticsHelper-CZ8c8du5-Ber0nUBK.js} +1 -1
  204. package/dist/assets/{chartTypes-DueLK3Wl-B3lGAHMU.js → chartTypes-CWLOazD0-BCrBxX2L.js} +1 -1
  205. package/dist/assets/{commonDimensions-D4uH020E-szItJUN9.js → commonDimensions-Cg7EWgSP-ztBpKI_h.js} +1 -1
  206. package/dist/assets/{detailCommon-D5qKBZdS-CPasfcVD.js → detailCommon-Cp4eknjq-ClKRuZos.js} +7 -7
  207. package/dist/assets/{downloadPdf-s4pLtuS_-CF3EQD3j.js → downloadPdf-f3F0OqWf-DUwLrQQm.js} +1 -1
  208. package/dist/assets/{index-DoFw58Mw.js → index-Dq4DW5h0.js} +3324 -3326
  209. package/dist/assets/{liveblocks-sSQ9JElv.js → liveblocks-BUGn2yQ6.js} +1 -1
  210. package/dist/assets/{mapLoadingInProgressToTreeNode-M0QN8LkC-3yQrrz5g.js → mapLoadingInProgressToTreeNode-DCLD3rcY-_6B85me3.js} +1 -1
  211. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CrtVdHui-CnnfThO_.js → mapSectionWithAcOnlyToTreeNode-C-VOXE5I-ChyvQWp0.js} +1 -1
  212. package/dist/assets/{mapSpacerToTreeNode-yPPIJHBw-D3Gjllyb.js → mapSpacerToTreeNode-DlDwFA_F-CYv3KN_2.js} +1 -1
  213. package/dist/assets/{mapTimeframeBalancesToTreeNode-px916zpo-rIOc1Hnu.js → mapTimeframeBalancesToTreeNode-EEyJwCnX-HEZ0R9-O.js} +1 -1
  214. package/dist/assets/mui-BgvZYSo0.js +22 -0
  215. package/dist/assets/{play-icon-Bih37F_s-C73Mu05H.js → play-icon-CFa9Uibr-CaxUs2iQ.js} +3 -3
  216. package/dist/assets/{redux-ByjIRbhZ.js → redux-DmDqXYej.js} +1 -1
  217. package/dist/assets/{routing-Cpaypegg.js → routing-BNz5gZgX.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-CAhfOfUa-CUvT0aen.js → toCOABalancesWithID-DT8-C5u1-CE-3jMAY.js} +1 -1
  219. package/dist/assets/{toChartData-BicnbT0F-BAKhPkjP.js → toChartData-63e3B91H-DoSBXci0.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-A_YlwvaQ-YLNVEYZe.js → treasuryColorHelper-BGGfolJy-B6Wl_Wly.js} +1 -1
  221. package/dist/assets/{uploadAttachment-DVoWdoWD-RtUqrYnb.js → uploadAttachment-YcPIDoZ--DIC1ZEM7.js} +19 -19
  222. package/dist/assets/{uploadReceipts-Buvz7DfG-XWftDYl6.js → uploadReceipts-BH9fi3Vt-CnyK0TMw.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +5 -5
  225. package/dist/assets/AccountRow-D9vDRsjv-uSOuzaD9.js +0 -298
  226. package/dist/assets/BusinessVerificationPage-YKJ-CZfb-BgJNO5ZA.js +0 -140
  227. package/dist/assets/CheckDepositDrawerPage-B1Qp-xbY-f-dhYQ0q.js +0 -206
  228. package/dist/assets/CompleteProfile-CJOsHnBa-DdCWBRuB.js +0 -36
  229. package/dist/assets/CustomerOnboardingContainerPage-X6X9Yc-9-D6pVLXm5.js +0 -1
  230. package/dist/assets/CustomerOnboardingPage-CIbBaMcO-Dqym0Rf2.js +0 -107
  231. package/dist/assets/DashboardReportPage-BM6TqjrJ-DQu7SOT2.js +0 -349
  232. package/dist/assets/DomesticWireDetailsPage-BZ8jSo8r-Dcvy9KUR.js +0 -21
  233. package/dist/assets/LabeledDocumentField-CIlbLPtO-DSLjsPoT.js +0 -41
  234. package/dist/assets/LabeledDropDownFormattedTextField-Dpt7UG-o-BPi_XfUF.js +0 -59
  235. package/dist/assets/NotificationsListConfig-BjItJJe9-l0BCgaPP.js +0 -1
  236. package/dist/assets/ReimbursementDetailPage-CE_jx7cM-DEw3OdDA.js +0 -314
  237. package/dist/assets/ReportTableViewSelector-Bc5xUtnG-pW3txVQ2.js +0 -150
  238. package/dist/assets/ReportsPage-J8DrZz78-Bf6sj4--.js +0 -120
  239. package/dist/assets/TaskManagementPage-BSmG6YR2-BRBZRYl9.js +0 -508
  240. package/dist/assets/TimeframeSwitcherWithToggle-BwvVsB_p-CoKIqOrx.js +0 -31
  241. package/dist/assets/TrendChart-dARoUu-T-CjrTnbAe.js +0 -16
  242. package/dist/assets/ZeniAccountNavBarPieces-DHYLxQKr-DoTCX7_F.js +0 -14
  243. package/dist/assets/analytics-DThoELaW.js +0 -7
  244. package/dist/assets/mui-C5LQ0bMa.js +0 -25
@@ -1,4 +1,4 @@
1
- import{a5 as K,l as me,hN as ee,g5 as fe,eu as we,hO as Je,a as Me,hP as Ve,c3 as _e,c4 as Pe,j as a,M as be,F as Fe,bO as Ne,bQ as qe,bR as Re,a7 as $e,hQ as Be,hR as Ue,T as he,hS as Se,hT as We,cg as ze,X as He,i5 as Ke,ga as re,p as $,g as De,C as Ce,c6 as Xe,hU as Ge,hV as Qe,hW as Ye,o as _}from"./index-DoFw58Mw.js";import{b as m,n as U}from"./vendor-CnQcJ2Lu.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-CSxFNhoR-D9UFT3Zm.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const B={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=U.div`
1
+ import{a5 as H,l as me,hO as ee,g6 as fe,ev as we,hP as Je,a as Me,hQ as Ve,c3 as _e,c4 as Pe,j as a,M as be,F as Fe,bN as Ne,bP as qe,bQ as Re,a7 as $e,hR as Be,hS as Ue,T as he,hT as Se,hU as We,cg as ze,X as Xe,i6 as He,gb as re,p as $,g as De,C as Ce,c6 as Ge,hV as Ke,hW as Ye,hX as Qe,o as _}from"./index-Dq4DW5h0.js";import{b as m,n as U}from"./vendor-CnQcJ2Lu.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-CStdRSyQ-YS2LkHDs.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";const B={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=U.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -9,7 +9,7 @@ import{a5 as K,l as me,hN as ee,g5 as fe,eu as we,hO as Je,a as Me,hP as Ve,c3 a
9
9
  border-top-right-radius: ${_.sp2};
10
10
  border-bottom-left-radius: ${_.sp0};
11
11
  border-bottom-right-radius: ${_.sp0};
12
- `,X=U.div`
12
+ `,G=U.div`
13
13
  display: flex;
14
14
  flex: 1;
15
15
  background-color: ${t=>t.theme.colors.grey3};
@@ -18,7 +18,7 @@ import{a5 as K,l as me,hN as ee,g5 as fe,eu as we,hO as Je,a as Me,hP as Ve,c3 a
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:T,selectedClass:P,selectedAccumulatedDepreciationCategory:F,assetId:L,selectedDate:w,selectedMonths:A,selectedPostingDay:E,lastDayOfMonth:j,isDisabled:h,allowCreateSchedule:J,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"),Y=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,G={valueContainer:o=>({...o,overflow:"unset"})},I=He(),W=Ke({startDate:d.baseTransaction.date,endDate:d.baseTransaction.date.add(1,"year")}),z=()=>{f(S)},H=E==null&&j==null?void 0:j===!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:J,onDelete:Z,isUpdating:g==="In-Progress",onMarkAsComplete:Q,onCreateSchedule:i}),a.jsx(he,{controller:J===!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:B.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:T,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:G},disableCurrentOption:N,style:{borderTopLeftRadius:$[2],borderTopRightRadius:$[2]}}),a.jsx(X,{}),a.jsx(re,{isDisabled:h,isLoading:!1,label:{label:e.class,width:B.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:G},style:{borderTopLeftRadius:$[0],borderTopRightRadius:$[0]}}),a.jsx(X,{}),a.jsx(re,{isDisabled:D.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:e.accumulatedDepreciationCategory,width:B.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:G},disableCurrentOption:N,style:{borderTopLeftRadius:$[0],borderTopRightRadius:$[0]}}),a.jsx(X,{}),a.jsx(Xe,{label:{label:e.assetId,width:B.labelWidth.value(I)},style:{width:"auto"},text:{type:"text",name:de,defaultValue:L,placeholder:e.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:$[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(X,{}),a.jsx(Ge,{label:{label:e.startMonth,width:B.labelWidth.value(I)},monthSelectorField:{name:Y,placeholder:e.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:h,monthsAndYears:W},isDisabled:h}),a.jsx(X,{}),a.jsx(lt,{label:{label:e.postingDate,width:B.labelWidth.value(I)},isDisabled:h,dayOfMonthField:{placeholder:e.postingDatePlaceholder,name:S,defaultValue:{type:H,dayOfMonth:E},onSaveClick:()=>{},onCancelClick:z}}),a.jsx(X,{}),a.jsx(Qe,{label:{label:e.months,width:B.labelWidth.value(I)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:e.monthsPlaceholder,defaultValue:{selectedOption:A!=null?v[A-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(he,{controller:J===!1,children:a.jsx(Ye,{text:e.scheduleMarkedAsCompleted})})]})}const nt=U.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:w,selectedMonths:O,selectedPostingDay:E,lastDayOfMonth:j,isDisabled:h,allowCreateSchedule:J,onCreateSchedule:i,onDelete:ae,onMarkAsComplete:Y}){const{resetField:f}=ze(),se=V(t,"scheduleExpenseCategory"),oe=V(t,"scheduleClass"),ne=V(t,"accumulatedDepreciationCategory"),de=V(t,"assetId"),Q=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=Xe(),W=He({startDate:d.baseTransaction.date,endDate:d.baseTransaction.date.add(1,"year")}),z=()=>{f(S)},X=E==null&&j==null?void 0:j===!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:J,onDelete:Z,isUpdating:g==="In-Progress",onMarkAsComplete:Y,onCreateSchedule:i}),a.jsx(he,{controller:J===!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:B.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:$[2],borderTopRightRadius:$[2]}}),a.jsx(G,{}),a.jsx(re,{isDisabled:h,isLoading:!1,label:{label:e.class,width:B.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:$[0],borderTopRightRadius:$[0]}}),a.jsx(G,{}),a.jsx(re,{isDisabled:D.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:e.accumulatedDepreciationCategory,width:B.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:$[0],borderTopRightRadius:$[0]}}),a.jsx(G,{}),a.jsx(Ge,{label:{label:e.assetId,width:B.labelWidth.value(I)},style:{width:"auto"},text:{type:"text",name:de,defaultValue:L,placeholder:e.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:$[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(G,{}),a.jsx(Ke,{label:{label:e.startMonth,width:B.labelWidth.value(I)},monthSelectorField:{name:Q,placeholder:e.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:h,monthsAndYears:W},isDisabled:h}),a.jsx(G,{}),a.jsx(lt,{label:{label:e.postingDate,width:B.labelWidth.value(I)},isDisabled:h,dayOfMonthField:{placeholder:e.postingDatePlaceholder,name:S,defaultValue:{type:X,dayOfMonth:E},onSaveClick:()=>{},onCancelClick:z}}),a.jsx(G,{}),a.jsx(Ye,{label:{label:e.months,width:B.labelWidth.value(I)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:e.monthsPlaceholder,defaultValue:{selectedOption:O!=null?v[O-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(he,{controller:J===!1,children:a.jsx(Qe,{text:e.scheduleMarkedAsCompleted})})]})}const nt=U.div`
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  width: 100%;
@@ -34,4 +34,4 @@ import{a5 as K,l as me,hN as ee,g5 as fe,eu as we,hO as Je,a as Me,hP as Ve,c3 a
34
34
  `,ct=U.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 Et({analytics:t,controllerUserDetails:d,expenseAutomationSelectedPeriod:g,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:y,onJELinkClick:v,onSave:k,onDelete:T,onDetailPageChange:P,onViewLinkedJE:F,onTransactionClick:L,onMarkAsComplete:w,removeJeScheduleTransactionKey:A}){const[E,j]=m.useState(!1),h=K(l.updateStatus.fetchState),J=K(l.selectedJEScheduleTransaction?.status.code),i=K(l.deleteStatus.fetchState),[ae,Q]=m.useState(!1),f=l.scheduleDetailsLocalData.fixed_assets,se=K(f.jeScheduleDetails.length),oe=K(f.selectedDate),ne=K(f.selectedDayOfMonth),[de,Y]=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:()=>{j(!1),p()},onCancelClick:()=>{j(!1)}},G=n=>{const C=e?.scheduledJournalEntry[n];r!=null&&C!=null&&e!=null&&t.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...We(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&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&A(e.jeScheduleTransactionKey,{month:g.month,year:g.year}),p())},[g,J,l.selectedJEScheduleTransaction?.status.code,t,p,h,A,c,l.updateStatus,e,r,S,b,x]),m.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const W=fe(l.accountListNestedAccountHierarchy),z=fe(l.allDepreciationAccountListNestedAccountHierarchy),H=we(l.classListNestedAccountHierarchy),N=Je("fixed_assets"),Z=m.useRef(),D=Me({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,W,H,z,N,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,W,H,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(R=>R.value);if(O?.selectedOption!=null&&ce?.includes(O.selectedOption)!==!0){const R=u.entityAutoCompleteView.vendor.find(Le=>Le.id===O.selectedOption);R!=null&&D.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:R.name??"",value:R.id}])}}const ke=n.includes("amount");if(P(C,ke),n.includes("amount")){const ce=n.split(".")[1],R=parseInt(ce);Q(!0),y(R,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,W,H,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"&&Y(!1)},[l.selectedJEScheduleTransaction?.status.code]);const pe=(Pe(D.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&f.jeScheduleDetails.length>0,Ee=()=>{pe===!0?j(!0):(r!=null&&e!=null&&t.trackScheduleDetailsCanceled(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),p())},je=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Oe=m.useCallback(()=>{Y(!0)},[]),Te=m.useCallback(()=>{r!=null&&e!=null&&t.trackScheduleDetailsMarkedAsCompleted(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),w()},[t,b,x,e,w,r,S]),Ae=m.useCallback(n=>{r!=null&&e!=null&&t.trackScheduleDetailsDeleted(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),T(n)},[t,b,x,e,T,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:Ee,onTransactionClick:je}),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:W,allClassOptions:H,allMonthOptions:N,allDepAccountOptions:z,onEditAmount:y,onDelete:Ae,onJELinkClick:G,onViewLinkedJE:I,onMarkAsComplete:Te,allowCreateSchedule:de,onCreateSchedule:Oe}),E===!0?a.jsx(Ne,{titleComponent:a.jsx(Re,{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($e,{formId:ye(ge),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{j(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function ht({onNavigateBack:t,onTransactionClick:d,title:g}){return a.jsx(Ue,{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:T,onDelete:P,onJELinkClick:F,onViewLinkedJE:L,onMarkAsComplete:w}){const A=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(E=>E.error).filter(E=>!!E)??[];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:A,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:w,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:T,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,T=c.selectedAccumulatedDepreciationCategory,P=T!=null?t.allDepreciationAccountList.find(i=>i.accountId===T):void 0,F=c.assetId,L=c.selectedClass,w=L!=null?t.allClassList.find(i=>i.classId===L):void 0,A=c.selectedMonths,E=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),j=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=j==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:w?.classId,allOptions:g},startDate:c.selectedDate,months:{selectedOption:A,allOptions:s},vendor:{selectedOption:v?.id??y?.id,defaultOptions:Be(u,v??y)},postingDate:{type:J,dayOfMonth:j}},[le]:E}};export{Et as default};
37
+ `,ge="scheduleDetailsPage",te="scheduleDetailsFixedAssetsSection",le="scheduleDetailsListSection",rt=be.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ut}}=rt;function Et({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:w,removeJeScheduleTransactionKey:O}){const[E,j]=m.useState(!1),h=H(l.updateStatus.fetchState),J=H(l.selectedJEScheduleTransaction?.status.code),i=H(l.deleteStatus.fetchState),[ae,Y]=m.useState(!1),f=l.scheduleDetailsLocalData.fixed_assets,se=H(f.jeScheduleDetails.length),oe=H(f.selectedDate),ne=H(f.selectedDayOfMonth),[de,Q]=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:()=>{j(!1),p()},onCancelClick:()=>{j(!1)}},K=n=>{const C=e?.scheduledJournalEntry[n];r!=null&&C!=null&&e!=null&&t.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...We(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 T=e?.scheduledJournalEntry[C];r!=null&&T!=null&&e!=null&&t.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:e.jeDebit.account?.accountName??null,expenseClass:e.jeDebit.accountingClass?.className??null},journalEntryDetails:Se(T),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&&J==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&O(e.jeScheduleTransactionKey,{month:g.month,year:g.year}),p())},[g,J,l.selectedJEScheduleTransaction?.status.code,t,p,h,O,c,l.updateStatus,e,r,S,b,x]),m.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const W=fe(l.accountListNestedAccountHierarchy),z=fe(l.allDepreciationAccountListNestedAccountHierarchy),X=we(l.classListNestedAccountHierarchy),N=Je("fixed_assets"),Z=m.useRef(),D=Me({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,W,X,z,N,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,W,X,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 T=C[te].vendor;if(n.includes("vendor")){const ce=T?.defaultOptions.map(R=>R.value);if(T?.selectedOption!=null&&ce?.includes(T.selectedOption)!==!0){const R=u.entityAutoCompleteView.vendor.find(Le=>Le.id===T.selectedOption);R!=null&&D.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:R.name??"",value:R.id}])}}const ke=n.includes("amount");if(P(C,ke),n.includes("amount")){const ce=n.split(".")[1],R=parseInt(ce);Y(!0),y(R,l.selectedJEScheduleTransaction?.jeScheduleId)}};m.useEffect(()=>{const n=D.watch((C,{name:T})=>{T!=null&&C!=null&&_e(()=>ve(T,C))});return()=>{n.unsubscribe()}}),m.useEffect(()=>{(se!==f.jeScheduleDetails.length||oe!==f.selectedDate||ne!==f.selectedDayOfMonth)&&ae===!0&&(D.resetField(le,{defaultValue:ue(l,W,X,z,N,u.entityAutoCompleteView)[le],keepDirty:!1}),Y(!1))},[f.jeScheduleDetails.length,f.selectedDate,f.selectedDayOfMonth]),m.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&Q(!1)},[l.selectedJEScheduleTransaction?.status.code]);const pe=(Pe(D.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&f.jeScheduleDetails.length>0,Ee=()=>{pe===!0?j(!0):(r!=null&&e!=null&&t.trackScheduleDetailsCanceled(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),p())},je=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Te=m.useCallback(()=>{Q(!0)},[]),Ae=m.useCallback(()=>{r!=null&&e!=null&&t.trackScheduleDetailsMarkedAsCompleted(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),w()},[t,b,x,e,w,r,S]),Oe=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:Ee,onTransactionClick:je}),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:W,allClassOptions:X,allMonthOptions:N,allDepAccountOptions:z,onEditAmount:y,onDelete:Oe,onJELinkClick:K,onViewLinkedJE:I,onMarkAsComplete:Ae,allowCreateSchedule:de,onCreateSchedule:Te}),E===!0?a.jsx(Ne,{titleComponent:a.jsx(Re,{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($e,{formId:ye(ge),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{j(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function ht({onNavigateBack:t,onTransactionClick:d,title:g}){return a.jsx(Ue,{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:w}){const O=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(E=>E.error).filter(E=>!!E)??[];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:O,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:w,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,w=L!=null?t.allClassList.find(i=>i.classId===L):void 0,O=c.selectedMonths,E=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),j=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=j==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:d},accumulatedDepreciationCategory:{selectedOption:P?.qboId,allOptions:l},assetId:F,scheduleClass:{selectedOption:w?.classId,allOptions:g},startDate:c.selectedDate,months:{selectedOption:O,allOptions:s},vendor:{selectedOption:v?.id??y?.id,defaultOptions:Be(u,v??y)},postingDate:{type:J,dayOfMonth:j}},[le]:E}};export{Et as default};
@@ -1,4 +1,4 @@
1
- import{a5 as _,l as ie,hN as Y,g5 as Ae,eu as Ie,hO as Je,a as Le,hP as we,c3 as Me,c4 as Ve,j as a,M as De,F as Pe,bO as Fe,bQ as _e,bR as $e,a7 as Ne,hQ as ze,hR as Be,T as re,hS as pe,hT as Ue,cg as Re,X as We,ga as me,p as X,g as qe,C as He,hU as Ke,hV as Ge,hW as Qe,o as L}from"./index-DoFw58Mw.js";import{b as D,n as P}from"./vendor-CnQcJ2Lu.js";import{i as Ye,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-CSxFNhoR-D9UFT3Zm.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const B={labelWidth:new He(160,160,160)},tt=P.div`
1
+ import{a5 as _,l as ie,hO as Q,g6 as Ae,ev as Je,hP as Ie,a as Le,hQ as we,c3 as Me,c4 as Ve,j as a,M as De,F as Pe,bN as Fe,bP as _e,bQ as $e,a7 as Ne,hR as ze,hS as Be,T as re,hT as pe,hU as Ue,cg as Re,X as We,gb as me,p as Y,g as qe,C as He,hV as Ke,hW as Xe,hX as Ge,o as L}from"./index-Dq4DW5h0.js";import{b as D,n as P}from"./vendor-CnQcJ2Lu.js";import{i as Qe,r as Ye,n as Ze,o as et}from"./ScheduleSequenceTable-CStdRSyQ-YS2LkHDs.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";const B={labelWidth:new He(160,160,160)},tt=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -18,7 +18,7 @@ import{a5 as _,l as ie,hN as Y,g5 as Ae,eu as Ie,hO as Je,a as Le,hP as we,c3 as
18
18
  display: flex;
19
19
  flex-direction: column;
20
20
  margin: ${L.sp4} ${L.sp8} ${L.sp0} ${L.sp8};
21
- `,$=(e,n)=>`${e}.${n}`;function at({sectionId:e,jeScheduledTransaction:n,updateStatus:m,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:b,allMonthOptions:o,uncategorizedAccounts:p,selectedAccount:r,selectedClass:C,selectedDate:w,selectedMonths:I,selectedPostingDay:O,lastDayOfMonth:k,isDisabled:S,allowCreateSchedule:v,onCreateSchedule:u,onDelete:le,onMarkAsComplete:F}){const{resetField:U}=Re(),R=$(e,"scheduleExpenseCategory"),W=$(e,"scheduleClass"),ae=$(e,"startDate"),N=$(e,"postingDate"),y=$(e,"months"),f=De.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,se=d=>t.filter(z=>z.qboId===d)[0]?.qboId,oe=d=>i.filter(z=>z.classId===d)[0]?.accountingClassNumber,q={valueContainer:d=>({...d,overflow:"unset"})},J=We(),x=st({startDate:n.baseTransaction.date,endDate:n.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),T=()=>{n.jeScheduleId!=null&&le(n.jeScheduleId)},H=n.scheduledJournalEntry.flatMap(d=>d.error);return a.jsxs(lt,{children:[a.jsx(Ze,{isUpdating:m==="In-Progress",status:n.status.code,jeScheduleId:n.jeScheduleId,allowCreateSchedule:v,onDelete:T,onMarkAsComplete:F,onCreateSchedule:u}),a.jsx(re,{controller:v===!0,children:a.jsxs(tt,{children:[a.jsx(me,{isDisabled:H.includes("debit_category_deleted")?void 0:S,isLoading:!1,label:{label:f.expenseCategory,width:B.labelWidth.value(J)},groupedSingleSelectField:{customPlaceholderColor:H.includes("debit_category_deleted")?qe.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:R,placeholder:f.expenseCategoryPlaceholder,valueToId:d=>se(d),defaultValue:{selectedOption:r,allOptions:l},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:q},disableCurrentOption:E,style:{borderTopLeftRadius:X[2],borderTopRightRadius:X[2]}}),a.jsx(Z,{}),a.jsx(me,{isDisabled:S,isLoading:!1,label:{label:f.class,width:B.labelWidth.value(J)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:W,placeholder:f.classPlaceholder,valueToId:d=>oe(d),defaultValue:{selectedOption:C,allOptions:b},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:q},style:{borderTopLeftRadius:X[0],borderTopRightRadius:X[0]}}),a.jsx(Z,{}),a.jsx(Ke,{label:{label:f.startMonth,width:B.labelWidth.value(J)},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:B.labelWidth.value(J)},isDisabled:S,dayOfMonthField:{placeholder:f.postingDatePlaceholder,name:N,defaultValue:{type:s,dayOfMonth:O},onSaveClick:()=>{},onCancelClick:h}}),a.jsx(Z,{}),a.jsx(Ge,{label:{label:f.months,width:B.labelWidth.value(J)},singleSelectNumericField:{name:y,isDisabled:S,placeholder:f.monthsPlaceholder,defaultValue:{selectedOption:I!=null?o[I-1]:void 0,allOptions:o},registerOptions:{required:!0,validate:d=>!!d.selectedOption}}})]})}),a.jsx(re,{controller:v===!1,children:a.jsx(Qe,{text:f.scheduleMarkedAsCompleted})})]})}const st=e=>{const n={},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 o=i-b,p=o.toString();let r=[];if(o===t){const C=e.startDate.month();r=e.startDate.localeData().monthsShort(),C!==0&&r.splice(0,C)}else r=ie.zeniDate(`${o}-01-01`).localeData().monthsShort();return n[p]=r,p}).reverse(),months:n}},ot=P.div`
21
+ `,$=(e,n)=>`${e}.${n}`;function at({sectionId:e,jeScheduledTransaction:n,updateStatus:m,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:b,allMonthOptions:o,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}=Re(),R=$(e,"scheduleExpenseCategory"),W=$(e,"scheduleClass"),ae=$(e,"startDate"),N=$(e,"postingDate"),y=$(e,"months"),f=De.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,se=d=>t.filter(z=>z.qboId===d)[0]?.qboId,oe=d=>i.filter(z=>z.classId===d)[0]?.accountingClassNumber,q={valueContainer:d=>({...d,overflow:"unset"})},I=We(),x=st({startDate:n.baseTransaction.date,endDate:n.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),T=()=>{n.jeScheduleId!=null&&le(n.jeScheduleId)},H=n.scheduledJournalEntry.flatMap(d=>d.error);return a.jsxs(lt,{children:[a.jsx(Ze,{isUpdating:m==="In-Progress",status:n.status.code,jeScheduleId:n.jeScheduleId,allowCreateSchedule:v,onDelete:T,onMarkAsComplete:F,onCreateSchedule:u}),a.jsx(re,{controller:v===!0,children:a.jsxs(tt,{children:[a.jsx(me,{isDisabled:H.includes("debit_category_deleted")?void 0:S,isLoading:!1,label:{label:f.expenseCategory,width:B.labelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:H.includes("debit_category_deleted")?qe.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:R,placeholder:f.expenseCategoryPlaceholder,valueToId:d=>se(d),defaultValue:{selectedOption:r,allOptions:l},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:q},disableCurrentOption:E,style:{borderTopLeftRadius:Y[2],borderTopRightRadius:Y[2]}}),a.jsx(Z,{}),a.jsx(me,{isDisabled:S,isLoading:!1,label:{label:f.class,width:B.labelWidth.value(I)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:W,placeholder:f.classPlaceholder,valueToId:d=>oe(d),defaultValue:{selectedOption:C,allOptions:b},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:q},style:{borderTopLeftRadius:Y[0],borderTopRightRadius:Y[0]}}),a.jsx(Z,{}),a.jsx(Ke,{label:{label:f.startMonth,width:B.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:B.labelWidth.value(I)},isDisabled:S,dayOfMonthField:{placeholder:f.postingDatePlaceholder,name:N,defaultValue:{type:s,dayOfMonth:O},onSaveClick:()=>{},onCancelClick:h}}),a.jsx(Z,{}),a.jsx(Xe,{label:{label:f.months,width:B.labelWidth.value(I)},singleSelectNumericField:{name:y,isDisabled:S,placeholder:f.monthsPlaceholder,defaultValue:{selectedOption:J!=null?o[J-1]:void 0,allOptions:o},registerOptions:{required:!0,validate:d=>!!d.selectedOption}}})]})}),a.jsx(re,{controller:v===!1,children:a.jsx(Ge,{text:f.scheduleMarkedAsCompleted})})]})}const st=e=>{const n={},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 o=i-b,p=o.toString();let r=[];if(o===t){const C=e.startDate.month();r=e.startDate.localeData().monthsShort(),C!==0&&r.splice(0,C)}else r=ie.zeniDate(`${o}-01-01`).localeData().monthsShort();return n[p]=r,p}).reverse(),months:n}},ot=P.div`
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  width: 100%;
@@ -34,4 +34,4 @@ import{a5 as _,l as ie,hN as Y,g5 as Ae,eu as Ie,hO as Je,a as Le,hP as we,c3 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:n,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,scheduleTab:t,usedInExpenseAutomation:i,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:o,onMarkAsComplete:p,onNavigateBack:r,onEditAmount:C,onJELinkClick:w,onSave:I,onDelete:O,onDetailPageChange:k,onViewLinkedJE:S,onTransactionClick:v,removeJeScheduleTransactionKey:u}){const[le,F]=D.useState(!1),U=_(l.updateStatus.fetchState),R=_(l.selectedJEScheduleTransaction?.status.code),W=_(l.deleteStatus.fetchState),[ae,N]=D.useState(!1),y=l.scheduleDetailsLocalData.prepaid_expenses,f=_(y.jeScheduleDetails.length),se=_(y.selectedDate),oe=_(y.selectedDayOfMonth),[q,J]=D.useState(!0),x=l.selectedJEScheduleTransaction?.vendor,h=l.selectedJEScheduleTransaction?.baseTransaction,s=l.selectedJEScheduleTransaction,E=ie.getFirstControllerEmail(n.controllers),T=ie.getFirstControllerId(n.controllerUserIds),H={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:T}),w(c)},z=(c,g)=>{const j=s?.scheduledJournalEntry[g];h!=null&&j!=null&&s!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:s.jeDebit.account?.accountName??null,expenseClass:s.jeDebit.accountingClass?.className??null},journalEntryDetails:pe(j),controllerEmails:E,controllerUserIds:T}),S(c)};D.useEffect(()=>{U==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(h!=null&&s!=null&&e.trackScheduleDetailsSaved(Y({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:T})),i===!0&&s?.jeScheduleTransactionKey!=null&&R==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(s.jeScheduleTransactionKey,{month:m.month,year:m.year}),r())},[R,l.selectedJEScheduleTransaction?.status.code,e,r,m,U,l.updateStatus,u,t,i,s,h,x,E,T]),D.useEffect(()=>{W==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[W,l.deleteStatus,r]);const K=Ae(l.accountListNestedAccountHierarchy),G=Ie(l.classListNestedAccountHierarchy),Q=Je(t),ue=D.useRef(),M=Le({mode:"all",reValidateMode:"onChange",defaultValues:ce(l,K,G,Q,o.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ce(l,K,G,Q,o.entityAutoCompleteView)}),ne=M.watch("scheduleDetailsSection.vendor");D.useEffect(()=>{o.entityAutoCompleteView.fetchState==="Completed"&&ue.current?.(we(o.entityAutoCompleteView))},[o.entityAutoCompleteView.fetchState]);const Ce=(c,g)=>{b.onAutoCompleteInputChange?.(c,"vendor"),ue.current=g},ye=M.handleSubmit(()=>{I(l.selectedJEScheduleTransaction?.jeScheduleId)}),ge=async(c,g)=>{const j=g[ee].vendor;if(c.includes("vendor")){const de=j?.defaultOptions.map(V=>V.value);if(j?.selectedOption!=null&&de?.includes(j.selectedOption)!==!0){const V=o.entityAutoCompleteView.vendor.find(ke=>ke.id===j.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:j})=>{j!=null&&g!=null&&Me(()=>ge(j,g))});return()=>{c.unsubscribe()}}),D.useEffect(()=>{(f!==y.jeScheduleDetails.length||se!==y.selectedDate||oe!==y.selectedDayOfMonth)&&ae===!0&&(M.resetField(te,{defaultValue:ce(l,K,G,Q,o.entityAutoCompleteView)[te],keepDirty:!1}),N(!1))},[y.jeScheduleDetails.length,y.selectedDate,y.selectedDayOfMonth]),D.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&J(!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(Y({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:T})),r())},ve=()=>{l.selectedJEScheduleTransaction!=null&&v({id:l.selectedJEScheduleTransaction?.baseTransaction.id,type:l.selectedJEScheduleTransaction?.baseTransaction.type})},xe=D.useCallback(()=>{J(!0)},[]),Ee=D.useCallback(()=>{h!=null&&s!=null&&e.trackScheduleDetailsMarkedAsCompleted(Y({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:T})),p()},[e,s,p,t,h,x,E,T]),Te=D.useCallback(c=>{h!=null&&s!=null&&e.trackScheduleDetailsDeleted(Y({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:T})),O(c)},[e,s,O,t,h,x,E,T]),je=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(c=>c.error??[]).filter(c=>!!c)??[])?.includes("vendor_deleted")===!0?ne?.defaultOptions.find(c=>c.value===ne?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name;return a.jsxs(ot,{children:[a.jsx(ut,{onNavigateBack:be,onTransactionClick:ve,title:je??A.strings.empty}),a.jsx(nt,{children:a.jsx(Pe,{...M,children:a.jsxs("form",{style:{width:"100%"},id:fe(Se),onSubmit:ye,children:[a.jsx(ht,{vendorLoadOptions:Ce,vendorField:ne,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:o,scheduleDetailsView:l,allAccountOptions:K,allClassOptions:G,allMonthOptions:Q,allowCreateSchedule:q,onEditAmount:C,onDelete:Te,onJELinkClick:d,onViewLinkedJE:z,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:H}):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:n,onTransactionClick:m}){return a.jsx(Be,{title:e,tooltipTextOnLaunch:rt.showTransactionTooltip,onBackClick:n,onLaunchClick:m,style:{zIndex:3}})}function ht({vendorField:e,vendorLoadOptions:n,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:t,allAccountOptions:i,allClassOptions:b,allMonthOptions:o,allowCreateSchedule:p,onCreateSchedule:r,onMarkAsComplete:C,onEditAmount:w,onDelete:I,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(Ye,{errors:S,vendorLoadOptions:n,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:o,uncategorizedAccounts:t.uncategorizedAccounts,lastDayOfMonth:t.scheduleDetailsLocalData.prepaid_expenses.lastDayOfMonth,selectedPostingDay:t.scheduleDetailsLocalData.prepaid_expenses.selectedDayOfMonth,selectedMonths:t.scheduleDetailsLocalData.prepaid_expenses.selectedMonths,isDisabled:t.selectedJEScheduleTransaction.jeScheduleId!=null&&t.selectedJEScheduleTransaction.status.code!=="marked_as_completed"&&t.selectedJEScheduleTransaction.status.code!=="draft"?"disabled":void 0,allowCreateSchedule:p,onCreateSchedule:r,onDelete:I,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,n,m,l,t)=>{const i=e.scheduleDetailsLocalData.prepaid_expenses,b=i.selectedAccount,o=i.selectedVendor,p=o!=null?t.vendor.find(u=>u.zeniId===o.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,I=i.selectedMonths,O=i.jeScheduleDetails.map(u=>({postingDate:u.postingDate,amount:u.amount.amount,runningBalance:u.runningBalance.amount,postingStatus:u.postingStatus,jeLink:u.jeLink.thirdPartyTransactionId})),k=i.selectedDayOfMonth,S=i.lastDayOfMonth,v=k==null&&S==null?void 0:S===!0?"lastDayOfMonth":"day";return{[ee]:{scheduleExpenseCategory:{selectedOption:r?.qboId,allOptions:n},scheduleClass:{selectedOption:w?.classId,allOptions:m},startDate:i.selectedDate,months:{selectedOption:I,allOptions:l},vendor:{selectedOption:p?.id??o?.id,defaultOptions:ze(t,p??o)},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:n,expenseAutomationSelectedPeriod:m,scheduleDetailsView:l,scheduleTab:t,usedInExpenseAutomation:i,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:o,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),R=_(l.selectedJEScheduleTransaction?.status.code),W=_(l.deleteStatus.fetchState),[ae,N]=D.useState(!1),y=l.scheduleDetailsLocalData.prepaid_expenses,f=_(y.jeScheduleDetails.length),se=_(y.selectedDate),oe=_(y.selectedDayOfMonth),[q,I]=D.useState(!0),x=l.selectedJEScheduleTransaction?.vendor,h=l.selectedJEScheduleTransaction?.baseTransaction,s=l.selectedJEScheduleTransaction,E=ie.getFirstControllerEmail(n.controllers),T=ie.getFirstControllerId(n.controllerUserIds),H={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:T}),w(c)},z=(c,g)=>{const j=s?.scheduledJournalEntry[g];h!=null&&j!=null&&s!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:s.jeDebit.account?.accountName??null,expenseClass:s.jeDebit.accountingClass?.className??null},journalEntryDetails:pe(j),controllerEmails:E,controllerUserIds:T}),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:T})),i===!0&&s?.jeScheduleTransactionKey!=null&&R==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(s.jeScheduleTransactionKey,{month:m.month,year:m.year}),r())},[R,l.selectedJEScheduleTransaction?.status.code,e,r,m,U,l.updateStatus,u,t,i,s,h,x,E,T]),D.useEffect(()=>{W==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[W,l.deleteStatus,r]);const K=Ae(l.accountListNestedAccountHierarchy),X=Je(l.classListNestedAccountHierarchy),G=Ie(t),ue=D.useRef(),M=Le({mode:"all",reValidateMode:"onChange",defaultValues:ce(l,K,X,G,o.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ce(l,K,X,G,o.entityAutoCompleteView)}),ne=M.watch("scheduleDetailsSection.vendor");D.useEffect(()=>{o.entityAutoCompleteView.fetchState==="Completed"&&ue.current?.(we(o.entityAutoCompleteView))},[o.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 j=g[ee].vendor;if(c.includes("vendor")){const de=j?.defaultOptions.map(V=>V.value);if(j?.selectedOption!=null&&de?.includes(j.selectedOption)!==!0){const V=o.entityAutoCompleteView.vendor.find(ke=>ke.id===j.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:j})=>{j!=null&&g!=null&&Me(()=>ge(j,g))});return()=>{c.unsubscribe()}}),D.useEffect(()=>{(f!==y.jeScheduleDetails.length||se!==y.selectedDate||oe!==y.selectedDayOfMonth)&&ae===!0&&(M.resetField(te,{defaultValue:ce(l,K,X,G,o.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:T})),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:T})),p()},[e,s,p,t,h,x,E,T]),Te=D.useCallback(c=>{h!=null&&s!=null&&e.trackScheduleDetailsDeleted(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:T})),O(c)},[e,s,O,t,h,x,E,T]),je=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(c=>c.error??[]).filter(c=>!!c)??[])?.includes("vendor_deleted")===!0?ne?.defaultOptions.find(c=>c.value===ne?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name;return a.jsxs(ot,{children:[a.jsx(ut,{onNavigateBack:be,onTransactionClick:ve,title:je??A.strings.empty}),a.jsx(nt,{children:a.jsx(Pe,{...M,children:a.jsxs("form",{style:{width:"100%"},id:fe(Se),onSubmit:ye,children:[a.jsx(ht,{vendorLoadOptions:Ce,vendorField:ne,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:o,scheduleDetailsView:l,allAccountOptions:K,allClassOptions:X,allMonthOptions:G,allowCreateSchedule:q,onEditAmount:C,onDelete:Te,onJELinkClick:d,onViewLinkedJE:z,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:H}):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:n,onTransactionClick:m}){return a.jsx(Be,{title:e,tooltipTextOnLaunch:rt.showTransactionTooltip,onBackClick:n,onLaunchClick:m,style:{zIndex:3}})}function ht({vendorField:e,vendorLoadOptions:n,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,scheduleDetailsView:t,allAccountOptions:i,allClassOptions:b,allMonthOptions:o,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:n,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:o,uncategorizedAccounts:t.uncategorizedAccounts,lastDayOfMonth:t.scheduleDetailsLocalData.prepaid_expenses.lastDayOfMonth,selectedPostingDay:t.scheduleDetailsLocalData.prepaid_expenses.selectedDayOfMonth,selectedMonths:t.scheduleDetailsLocalData.prepaid_expenses.selectedMonths,isDisabled:t.selectedJEScheduleTransaction.jeScheduleId!=null&&t.selectedJEScheduleTransaction.status.code!=="marked_as_completed"&&t.selectedJEScheduleTransaction.status.code!=="draft"?"disabled":void 0,allowCreateSchedule:p,onCreateSchedule:r,onDelete:J,onMarkAsComplete:C,updateStatus:t.deleteStatus.fetchState}),a.jsx(re,{controller:p===!0,children:a.jsx(Ye,{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,n,m,l,t)=>{const i=e.scheduleDetailsLocalData.prepaid_expenses,b=i.selectedAccount,o=i.selectedVendor,p=o!=null?t.vendor.find(u=>u.zeniId===o.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:n},scheduleClass:{selectedOption:w?.classId,allOptions:m},startDate:i.selectedDate,months:{selectedOption:J,allOptions:l},vendor:{selectedOption:p?.id??o?.id,defaultOptions:ze(t,p??o)},postingDate:{type:v,dayOfMonth:k}},[te]:O}};export{xt as default};
@@ -1,6 +1,6 @@
1
- import{X as T,u as U,j as t,hX as ie,M as R,hY as oe,Q as le,hZ as ge,dL as fe,cO as we,v as A,h_ as ye,hW as be,o as i,C as b,g as j,k as $e,T as re,dI as je,bO as Se,bR as ke,cg as Z,co as ee,cm as ve,h$ as Q,i0 as Ce,ao as De,i1 as Me,bT as ze,i2 as Le,p as h,s as L,as as Ee,bQ as Oe,n as pe,cp as Ae,am as ne,cA as Te,a7 as Ie,l as q,i3 as I,fJ as Je,_ as Fe,i4 as Ve,ab as G,cq as Be,hE as Pe}from"./index-DoFw58Mw.js";import{b as D,n as l,j as B}from"./vendor-CnQcJ2Lu.js";const N=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Re({defaultValue:e,name:o,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=D.useState(!1),{control:m,formState:{errors:g},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(g,o),x=T(),a=U();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(Ne,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(_e,{alignLeft:r===!0,children:[t.jsx(Ze,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ue,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(o,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...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:N(o,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Qe,{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:N(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 Ne({placeholder:e,defaultValue:o,isDisabled:s}){return t.jsxs(qe,{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(q.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{X as T,u as X,j as t,hY as ie,M as N,hZ as oe,Q as le,h_ as ge,dL as fe,cO as we,q as A,h$ as ye,hX as be,o as i,C as b,g as j,k as $e,T as re,dI as je,bN as Se,bQ as ke,cg as Z,co as ee,cm as ve,i0 as G,i1 as Ce,ao as De,i2 as Me,bS as ze,i3 as Le,p as h,s as L,as as Ee,bP as Oe,m as pe,cp as Ae,am as ne,cA as Te,a7 as Ie,l as H,i4 as I,fK as Fe,_ as Je,i5 as Ve,ab as Q,cq as Be,hF as Pe}from"./index-Dq4DW5h0.js";import{b as D,n as l,j as B}from"./vendor-CnQcJ2Lu.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,u]=D.useState(!1),{control:m,formState:{errors:g},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(g,o),x=T(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ke,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:R(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{children:[t.jsx(Re,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(_e,{alignLeft:r===!0,children:[t.jsx(Ze,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Xe,{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(Ge,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(Ye,{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:We(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(He,{isDisabled:s!=null,children:[o?.type==null?t.jsx(Qe,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(Y,{children:M.daysOfMonth[`${o.dayOfMonth}`]}),t.jsx(Y,{children:M.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(Y,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(Y,{children:M.ofEveryMonth})]}):null]})}function Ye({defaultValue:e,onClick:o}){return t.jsxs(Ue,{children:[t.jsx(W,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(q,{isSelected:r===e,onClick:()=>o(H.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(W,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(q,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(W,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(q,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(W,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(q,{isSelected:r===e,onClick:()=>o(r),children:r},r)})})]})}const We=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=l.div`
2
2
  position: relative;
3
- `,qe=l.div`
3
+ `,He=l.div`
4
4
  display: flex;
5
5
  padding-right: ${i.sp3};
6
6
  `,ae=l.div`
@@ -25,17 +25,17 @@ import{X as T,u as U,j as t,hX as ie,M as R,hY as oe,Q as le,hZ as ge,dL as fe,c
25
25
  display: flex;
26
26
  flex-direction: column;
27
27
  width: 270px;
28
- `,Ge=l(L)`
28
+ `,Qe=l(L)`
29
29
  color: ${e=>e.theme.colors.grey1};
30
30
  margin-right: ${i.sp1};
31
- `,W=l(L)`
31
+ `,Y=l(L)`
32
32
  color: ${e=>e.theme.colors.primary};
33
- `,Qe=l(L)`
33
+ `,Ge=l(L)`
34
34
  color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
35
35
  `,de=l.div`
36
36
  display: flex;
37
37
  gap: ${i.sp1};
38
- `,Xe=l.div`
38
+ `,Ke=l.div`
39
39
  display: flex;
40
40
  align-items: center;
41
41
  justify-content: flex-end;
@@ -47,15 +47,15 @@ import{X as T,u as U,j as t,hX as ie,M as R,hY as oe,Q as le,hZ as ge,dL 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
+ `,Ue=l.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
+ `,W=l.div`
57
57
  display: flex;
58
- `,H=l(L)`
58
+ `,q=l(L)`
59
59
  padding: ${i.sp1} ${i.sp2};
60
60
  max-width: ${i.sp5};
61
61
  min-width: 18px;
@@ -66,7 +66,7 @@ import{X as T,u as U,j as t,hX as ie,M as R,hY as oe,Q as le,hZ as ge,dL as fe,c
66
66
  color: ${e.theme.colors.background};
67
67
  background-color: ${e.theme.colors.primary};
68
68
  `:null}
69
- `,Ue=l.div`
69
+ `,Xe=l.div`
70
70
  display: flex;
71
71
  align-items: center;
72
72
  background-color: ${e=>e.isError?j.importantLight:"transparent"};
@@ -89,7 +89,7 @@ import{X as T,u as U,j as t,hX as ie,M as R,hY as oe,Q as le,hZ as ge,dL as fe,c
89
89
  width: 100%;
90
90
  height: 1px;
91
91
  background-color: ${e=>e.theme.colors.grey3};
92
- `,z={height:new b(h[6],h[6]),controlHeight:new b(h[6],h[6]),paddingTopBottom:new b(h[2],h[2]),marginRight:new b(h[2],h[2]),labelMarginLeft:new b(h[3],h[4]),labelMarginRight:new b(h[3],h[4]),labelMarginTop:new b(h[2],h[2])};function Gt({label:e,dayOfMonthField:o,isDisabled:s,style:r}){const p=T(),{formState:{errors:n}}=Z(),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(Re,{...o,isDisabled:s,style:{display:"flex",flexGrow:1,width:"100%",height:z.controlHeight.value(p)}})})]})}const tt=l.div`
92
+ `,z={height:new b(h[6],h[6]),controlHeight:new b(h[6],h[6]),paddingTopBottom:new b(h[2],h[2]),marginRight:new b(h[2],h[2]),labelMarginLeft:new b(h[3],h[4]),labelMarginRight:new b(h[3],h[4]),labelMarginTop:new b(h[2],h[2])};function Qt({label:e,dayOfMonthField:o,isDisabled:s,style:r}){const p=T(),{formState:{errors:n}}=Z(),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`
93
93
  display: flex;
94
94
  flex-direction: row;
95
95
  align-items: flex-start;
@@ -143,13 +143,13 @@ import{X as T,u as U,j as t,hX as ie,M as R,hY as oe,Q as le,hZ as ge,dL as fe,c
143
143
  margin: ${i.sp3} ${i.sp1};
144
144
  `,ce=l.div`
145
145
  margin-bottom: ${i.sp2};
146
- `,{common:J,jeSchedules:{scheduleDetails:C}}=R.getLocalizedStrings();function Qt({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)}},u=()=>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:J.delete,value:J.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===J.delete&&y(!0),g===C.scheduleDetailsSection.markAsCompleted&&n(),g===C.scheduleDetailsSection.createSchedule&&d()},valueToIcon:u})}),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:J.yes,proceedButtonVariant:"danger",secondaryButtonText:J.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(h[3],h[8]),containerMarginTop:new b(h[3],h[4]),containerMarginBottom:new b(h[4],h[5]),transactionLabelMarginTop:new b(h[2],h[0]),transactionTitleContainerWidth:new b(187,480)},X={transactionLabel:new le("standardMedium","largeMedium"),transactionTitle:new le("h6SemiBold","h5SemiBold")},nt=l.div``,ue=l.div`
146
+ `,{common:F,jeSchedules:{scheduleDetails:C}}=N.getLocalizedStrings();function Gt({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)}},u=()=>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:F.delete,value:F.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===F.delete&&y(!0),g===C.scheduleDetailsSection.markAsCompleted&&n(),g===C.scheduleDetailsSection.createSchedule&&d()},valueToIcon:u})}),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:F.yes,proceedButtonVariant:"danger",secondaryButtonText:F.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(h[3],h[8]),containerMarginTop:new b(h[3],h[4]),containerMarginBottom:new b(h[4],h[5]),transactionLabelMarginTop:new b(h[2],h[0]),transactionTitleContainerWidth:new b(187,480)},K={transactionLabel:new le("standardMedium","largeMedium"),transactionTitle:new le("h6SemiBold","h5SemiBold")},nt=l.div``,ue=l.div`
147
147
  margin: ${i.sp0} ${i.sp3} ${i.sp0} ${i.sp0};
148
148
  max-width: ${e=>P.transactionTitleContainerWidth.valuePx(e.windowSize)};
149
149
  `,st=l($e)`
150
150
  color: ${j.neutralGrey5Light};
151
151
  margin-top: ${e=>P.transactionLabelMarginTop.valuePx(e.windowSize)};
152
- ${e=>`${X.transactionLabel.style(e.windowSize)}`};
152
+ ${e=>`${K.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};
@@ -203,9 +203,9 @@ import{X as T,u as U,j as t,hX as ie,M as R,hY as oe,Q as le,hZ as ge,dL as fe,c
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(ht,{children:e}),t.jsx(pt,{children:o||me})]}),{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:O},scheduleAccruedDetails:{placeholders:{selectVendor:yt}}},dateFormat:{visual:{MMMDCommaYYYYformat:bt}},common:{strings:{hyphen:me}}}=R.getLocalizedStrings();function Xt({transaction:e,vendorField:o,vendorLoadOptions:s,errors:r,vendorFieldName:p,vendor:n}){const d=T(),c=U(),[y,f]=D.useState(!1),u=$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(ut,{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(ue,{windowSize:d,children:t.jsx(oe,{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: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(ue,{windowSize:d,children:t.jsx(oe,{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:u.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 he=(e,o)=>`${e}.${o}`,jt={webkitLineClamp:new b(2,2,1,1,1)},St=R.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 u=T(),m=U(),[g,S]=D.useState(!1),{formState:{errors:v}}=Z(),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)},_=he(e,"amount"),E=ee(v,_);return t.jsxs(Mt,{windowSize:u,isRowEditable:n,isClickable:a||n,onClick:$,children:[r?null:t.jsx(F,{windowSize:u,widthSize:I[0].width,children:t.jsx(V,{windowSize:u,isClickable:a||n,title:c.memo,children:c.memo})}),t.jsx(F,{windowSize:u,widthSize:I[1].width,children:t.jsx(V,{windowSize:u,isClickable:a||n,children:c.postingDate.format(kt.visual.MMMDCommaYYYYformat)})}),t.jsx(F,{windowSize:u,widthSize:I[2].width,children:t.jsx(pe,{onClickAway:()=>S(!1),children:t.jsx(V,{windowSize:u,onClick:()=>{(a||n)&&S(!0)},isClickable:a||n,children:t.jsx(Je,{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:he(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:u,widthSize:I[3].width,children:t.jsx(V,{windowSize:u,isClickable:a||n,children:Fe("0,0.00",c.runningBalance)})}),t.jsx(F,{windowSize:u,widthSize:I[4].width,children:t.jsx(V,{windowSize:u,isLastItem:!0,isClickable:a||n,children:t.jsxs(At,{children:[t.jsx(Ve,{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:o})=>t.jsxs(mt,{children:[t.jsx(ht,{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 Kt({transaction:e,vendorField:o,vendorLoadOptions:s,errors:r,vendorFieldName:p,vendor:n}){const d=T(),c=X(),[y,f]=D.useState(!1),u=$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(ut,{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(ue,{windowSize:d,children:t.jsx(oe,{itemTextStyle:{...K.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(ue,{windowSize:d,children:t.jsx(oe,{itemTextStyle:{...K.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:u.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 he=(e,o)=>`${e}.${o}`,jt={webkitLineClamp:new b(2,2,1,1,1)},St=N.getLocalizedStrings(),{dateFormat:kt,jeSchedules:{scheduleDetails:U}}=St,vt=({sectionId:e,rowId:o,isDisabled:s,hideMemoField:r,minMaxValuesForAmount:p,isAmountEditable:n,scheduleJournalEntry:d,localData:c,onJELinkClick:y,onViewLinkedJE:f})=>{const u=T(),m=X(),[g,S]=D.useState(!1),{formState:{errors:v}}=Z(),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)},_=he(e,"amount"),E=ee(v,_);return t.jsxs(Mt,{windowSize:u,isRowEditable:n,isClickable:a||n,onClick:$,children:[r?null:t.jsx(J,{windowSize:u,widthSize:I[0].width,children:t.jsx(V,{windowSize:u,isClickable:a||n,title:c.memo,children:c.memo})}),t.jsx(J,{windowSize:u,widthSize:I[1].width,children:t.jsx(V,{windowSize:u,isClickable:a||n,children:c.postingDate.format(kt.visual.MMMDCommaYYYYformat)})}),t.jsx(J,{windowSize:u,widthSize:I[2].width,children:t.jsx(pe,{onClickAway:()=>S(!1),children:t.jsx(V,{windowSize:u,onClick:()=>{(a||n)&&S(!0)},isClickable:a||n,children:t.jsx(Fe,{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:he(e,"amount"),placeholder:U.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(J,{windowSize:u,widthSize:I[3].width,children:t.jsx(V,{windowSize:u,isClickable:a||n,children:Je("0,0.00",c.runningBalance)})}),t.jsx(J,{windowSize:u,widthSize:I[4].width,children:t.jsx(V,{windowSize:u,isLastItem:!0,isClickable:a||n,children:t.jsxs(At,{children:[t.jsx(Ve,{textColor:Dt(c.postingStatus,m),onClick:a||n?$:void 0,text:U.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:U.linkJE.linkJE})]}):null]}):null}const Dt=(e,o)=>{switch(e){case"pending":case"canceled":case"recorded":return new Q(o.colors.grey1);case"posted":return new Q(j.success);case"unknown":return new Q(j.alert)}},Mt=l.div`
207
207
  display: flex;
208
- height: ${Q}px;
208
+ height: ${G}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{X as T,u as U,j as t,hX as ie,M as R,hY as oe,Q as le,hZ as ge,dL as fe,c
230
230
  align-items: center;
231
231
 
232
232
  cursor: ${e=>e.isClickable===!0?"pointer":"default"};
233
- `,F=l.div`
233
+ `,J=l.div`
234
234
  display: flex;
235
235
  align-items: center;
236
236
  width: ${e=>e.widthSize.valuePx(e.windowSize)};
@@ -277,7 +277,7 @@ import{X as T,u as U,j as t,hX as ie,M as R,hY as oe,Q as le,hZ as ge,dL 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(h[3],h[3]),paddingRight:new b(h[4],0)},Kt=({sectionId:e,totalAmount:o,isDisabled:s,hideMemoField:r,listFetchState:p,scheduleJournalEntries:n,localData:d,uiState:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u,jeScheduleId:m})=>{const g=T(),S=p==="Not-Started"||p==="In-Progress"&&n.length===0,v=p==="Completed"&&d.length===0,w=R.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(Jt,{isDisabled:s,sectionId:e,hideMemoField:r,totalAmount:o,uiState:c,scheduleJournalEntries:n,localData:d,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u,jeScheduleId:m})})]})},Jt=({sectionId:e,totalAmount:o,isDisabled:s,hideMemoField:r,scheduleJournalEntries:p,localData:n,uiState:d,jeScheduleId:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u})=>{const m=D.useRef(null),g=T(),S=x=>Q,v=n.length*Q+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=q.dateNow().startOf("month"),te=q.dateNow().endOf("month");if(a[x].postingDate!=null){if(a[x].postingDate.month()===_.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(Vt,{windowSize:g,containerHeight:v,children:t.jsx(De,{children:({height:x,width:a})=>t.jsxs(Nt,{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:u,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:u,onViewLinkedJE:m,jeScheduleId:g}=o;return t.jsx(Rt,{windowSize:d,children:t.jsx(vt,{rowId:e,isDisabled:c,isAmountEditable:f(e,p,r[e]),hideMemoField:y,minMaxValuesForAmount:u(e),sectionId:`${s}.${e}`,scheduleJournalEntry:r[e],localData:p[e],onJELinkClick:n,onViewLinkedJE:m})},g+e)},Vt=l.div`
280
+ `,xe={scheduleDetailsWrapperContainerMarginTop:new b(h[3],h[3]),paddingRight:new b(h[4],0)},Ut=({sectionId:e,totalAmount:o,isDisabled:s,hideMemoField:r,listFetchState:p,scheduleJournalEntries:n,localData:d,uiState:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u,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(Yt,{windowSize:g,children:[t.jsx(qt,{windowSize:g,children:w.header}),S?t.jsx(ye,{}):v?t.jsx(Wt,{windowSize:g,children:t.jsx(be,{text:w.notCreated})}):t.jsx(Pt,{children:t.jsx(Ft,{isDisabled:s,sectionId:e,hideMemoField:r,totalAmount:o,uiState:c,scheduleJournalEntries:n,localData:d,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u,jeScheduleId:m})})]})},Ft=({sectionId:e,totalAmount:o,isDisabled:s,hideMemoField:r,scheduleJournalEntries:p,localData:n,uiState:d,jeScheduleId:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u})=>{const m=D.useRef(null),g=T(),S=x=>G,v=n.length*G+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 _=H.dateNow(),E=H.dateNow().startOf("month"),te=H.dateNow().endOf("month");if(a[x].postingDate!=null){if(a[x].postingDate.month()===_.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(Vt,{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:u,jeScheduleId:c},width:a,ref:m,overscanCount:Le,initialScrollOffset:0,children:Jt})]})})})},Jt=({index:e,data:o})=>{const{sectionId:s,scheduleJournalEntries:r,localData:p,onJELinkClick:n,windowSize:d,isDisabled:c,hideMemoField:y,isAmountEditable:f,getMinMaxValuesForAmount:u,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:u(e),sectionId:`${s}.${e}`,scheduleJournalEntry:r[e],localData:p[e],onJELinkClick:n,onViewLinkedJE:m})},g+e)},Vt=l.div`
281
281
  height: ${e=>e.containerHeight}px;
282
282
  width: 100%;
283
283
  margin-right: ${i.sp8};
@@ -286,14 +286,14 @@ import{X as T,u as U,j as t,hX as ie,M as R,hY as oe,Q as le,hZ as ge,dL as fe,c
286
286
  `,Pt=l.div`
287
287
  display: flex;
288
288
  flex-direction: column;
289
- `,Rt=l.div`
289
+ `,Nt=l.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
- `,Nt=l.div``,Wt=l.div`
296
+ `,Rt=l.div``,Yt=l.div`
297
297
  display: flex;
298
298
  min-height: 100%;
299
299
  flex-direction: column;
@@ -311,14 +311,14 @@ import{X as T,u as U,j as t,hX as ie,M as R,hY as oe,Q as le,hZ as ge,dL 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
+ `,Wt=l.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
+ `,qt=l.div`
321
321
  color: ${e=>e.theme.colors.hero};
322
322
  margin: ${i.sp3} ${i.sp0};
323
323
  ${A.standardRegular.css};
324
- `;export{Xt as i,Qt as n,Gt as o,Kt as r};
324
+ `;export{Kt as i,Gt as n,Qt as o,Ut as r};
@@ -1,4 +1,4 @@
1
- import{u as Ut,X as en,l as Y,kg as Ke,kh as tt,C as dt,ki as ud,kj as cd,kk as tn,kl as fd,km as Tt,M as ir,kn as Bt,ko as qt,e as rn,o as kt,kp as ld,kq as hd,a1 as Ft,a2 as Kl,a3 as Lt,kr as dd,ks as pd,p as yn,kt as md,ku as Yl,kv as gd,kw as Jl,bh as Xl,D as zo,kx as vd,ky as yd,kz as _d,kA as Ql,kB as bd,kC as wd,kD as Sd,kE as Ed,kF as Rd,kG as Od,kH as Td,kI as xd,kJ as Cd,kK as Ad,kL as Id,kM as Pd,kN as kd,gl as Ld}from"./index-DoFw58Mw.js";import{j as X,D as nn,S as Vt}from"./mui-C5LQ0bMa.js";import{b as Se,n as ut,c as Ve,i as eh,g as qd}from"./vendor-CnQcJ2Lu.js";import{f as jd}from"./analyticsHelper-CD5PHV67.js";import{g as rt,u as Ie,f as Ye}from"./redux-ByjIRbhZ.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-Cpaypegg.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-BURQLTgV.js";import{p as Oe}from"./sentry-HDxG13yk.js";import{r as Wd}from"./lodash-Dq_mKlGB.js";import"./analytics-DThoELaW.js";import"./liveblocks-sSQ9JElv.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,l]=Se.useState(!1),c=Ie(w=>Y.getCompanyHealthMetricView(w)),f=Ie(w=>Y.getCompanyManagementView(w)),{additionalChurnFactors:h}=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}),l(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:h})})}):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,X as en,l as Y,kh as Ke,ki as tt,C as dt,kj as ud,kk as cd,kl as tn,km as fd,kn as Tt,M as ir,ko as Bt,kp as qt,d as rn,o as kt,kq as ld,kr as hd,a1 as Ft,a2 as Kl,a3 as Lt,ks as dd,kt as pd,p as yn,ku as md,kv as Yl,kw as gd,kx as Jl,bi as Xl,I as zo,ky as vd,kz as yd,kA as _d,kB as Ql,kC as bd,kD as wd,kE as Sd,kF as Ed,kG as Rd,kH as Od,kI as Td,kJ as xd,kK as Cd,kL as Ad,kM as Id,kN as Pd,kO as kd,gm as Ld}from"./index-Dq4DW5h0.js";import{j as X,D as nn,S as Vt}from"./mui-BgvZYSo0.js";import{b as Se,n as ut,c as Ve,i as eh,g as qd}from"./vendor-CnQcJ2Lu.js";import{f as jd}from"./analyticsHelper-CPNSDy4Z.js";import{g as rt,u as Ie,f as Ye}from"./redux-DmDqXYej.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-BNz5gZgX.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-BURQLTgV.js";import{p as Oe}from"./sentry-HDxG13yk.js";import{r as Wd}from"./lodash-Dq_mKlGB.js";import"./analytics-BSSiLa6f.js";import"./liveblocks-BUGn2yQ6.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,l]=Se.useState(!1),c=Ie(w=>Y.getCompanyHealthMetricView(w)),f=Ie(w=>Y.getCompanyManagementView(w)),{additionalChurnFactors:h}=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}),l(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:h})})}):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%;