@zeniai/web-cockpit-ui 1.14.84-dev → 1.14.85-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 (221) hide show
  1. package/dist/assets/{ACHDetailsPage-BXgsd50c-BuCiUEId.js → ACHDetailsPage-Dzk7YdoJ-Cuct0t6u.js} +2 -2
  2. package/dist/assets/{AIPerformancePage-BdDTidCL-D-IQ6p36.js → AIPerformancePage-DBCH9dJi-CYibQjrX.js} +19 -19
  3. package/dist/assets/{AccountInfoPage-w0STaK9a-BfMIBiEJ.js → AccountInfoPage-Mzw-22d_-Df5O2T5Z.js} +2 -2
  4. package/dist/assets/{AccountInfoPageContent-CsuUhHXU-DgiU-I5H.js → AccountInfoPageContent-Bjp81drF-Cqcv4hk8.js} +15 -15
  5. package/dist/assets/{AccountLockedInfoModal-iYb31wv7-CEyp2zKM.js → AccountLockedInfoModal-Zg2PAu1o-svgY2-MJ.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DmkLTIkW-DxChexc_.js → AccountReconDetailsDrawerPage-BTkrwp4Q-CWHV1qM1.js} +9 -9
  7. package/dist/assets/{AccountRow-BObEIy6l-CsCw-i7a.js → AccountRow-CIsbwvGp-J3oMxL3b.js} +10 -10
  8. package/dist/assets/{AccountsPromoCardStack-B8gJFsYh-DpzT8FNB.js → AccountsPromoCardStack-DrElZh-K-CUoBlW42.js} +13 -13
  9. package/dist/assets/{AddAddressForCardDrawer-vOgzMYWA-Bo72mQ01.js → AddAddressForCardDrawer-D5Kqxx0c-CDAVfdUf.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BhphXgem-DR4-yAJW.js → AddToWalletPage-B68eBsAU-Dnsjp7Oq.js} +5 -5
  11. package/dist/assets/{AgingReportsPage-DEgupWct-SJsZmYxE.js → AgingReportsPage-BlQHxYjL-Cr6yxtF3.js} +4 -4
  12. package/dist/assets/{AllUserItems-S2DAZpO6-Zcx2jN6k.js → AllUserItems-DsECKAGD-PW2UBBng.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-CvDD8-s7-k2W-N5me.js → ApAgingDetailPage-Bg0ZrGXm-CfXEq_5-.js} +2 -2
  14. package/dist/assets/{AppBasePage-C4z5I-xG-vGdvNBYI.js → AppBasePage-tPaBc2ei-WGoBSx1D.js} +7 -7
  15. package/dist/assets/{AppDrawerContent-Dka5HlPs-BfBKKeHh.js → AppDrawerContent-Cx4zDKi_-DO8upp4U.js} +2 -2
  16. package/dist/assets/ApprovalRulesSettingsPage-BcRZvSQH-BuukHz1z.js +47 -0
  17. package/dist/assets/{ArAgingChart-CJ7XKU9h-BSixtgVA.js → ArAgingChart-RdGwOP5k-DaN2WJzI.js} +1 -1
  18. package/dist/assets/ArAgingDetailPage-Bh7NAVZf-DauNApby.js +46 -0
  19. package/dist/assets/{AttachmentView-Dg6PizI7-BzoqKbZ4.js → AttachmentView-ClnTjRCg-CXQ9ySez.js} +6 -6
  20. package/dist/assets/{BankAccountSection-Chay7X-G-vPiVizDl.js → BankAccountSection-D3sQOQ-c-t8HGw1J0.js} +4 -4
  21. package/dist/assets/{BankAccountWarningSection-CSChi1lw-BVD5BCv3.js → BankAccountWarningSection-CxLBPI_P-CQJWoDnI.js} +9 -9
  22. package/dist/assets/{BankConnectionsSettingsPage-DJV7q1Kp-DcUIdQZo.js → BankConnectionsSettingsPage-Bsix2nzV-BvUIdsy8.js} +6 -6
  23. package/dist/assets/{BillDetailPage-DM06uZnD-BOk9lw2_.js → BillDetailPage-B52FZrvM-BFE_NGrS.js} +10 -10
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-MsPIxgUt-r4h6U7BK.js → BillPayApprovalRuleDetailPage-CswUbxdi-Cprf5Nyo.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-BhDdco2x-B1oZ9jjD.js → BillPayApprovalRulesPage-B-8sIYjs-D2BSNMf9.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-Dy-opG76-CZ2iWLB7.js → BillPayPromoPage-B6jW_8rf-YW9uzBg5.js} +5 -5
  27. package/dist/assets/{BillPaySetUpPage-DUvwWlaD-Bg_qNGFx.js → BillPaySetUpPage-Rqxy02BM-CEkcaNcr.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-wj_sIJgc-Dy0iglvP.js → BillingSettingsPage-CPs5zrIc-DODFNfJu.js} +4 -4
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DbC84oxR-CV4aNHIq.js → BillsBulkReviewDrawerPage-DLQsxJi8-DtW4kiE9.js} +1 -1
  30. package/dist/assets/{BoxItem-CdqDzfZN-BxmSstzM.js → BoxItem-CP9cPZQd-BW2Fv6YZ.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-BMtHNNcG-CKxF3KMp.js → BusinessVerificationPage-Cayj-kYe-DIQRuHb0.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-lh7fQJis-CKFkz1Hy.js → CardNumberSubText-FdCtSIHd-Cer2LzOo.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-KRbsYA09-DzsJTodf.js → CashbackDetailPage-CZICE37r-CchxXOB0.js} +11 -11
  34. package/dist/assets/{ChargeCardDetailPage--WP6KTfb-BgNGsK6v.js → ChargeCardDetailPage-Be2X4Rx8-DkQXGv5E.js} +27 -27
  35. package/dist/assets/{ChargeCardListPage-knAPmob6-CgVyQmJQ.js → ChargeCardListPage-DzfBzM8o-BpS6GwxX.js} +13 -13
  36. package/dist/assets/{ChargeCardListTable-DsfnKX3P-D0-TBhcC.js → ChargeCardListTable-Bc-4mcCz-DGGclb69.js} +44 -44
  37. package/dist/assets/{ChargeCardPromoPage-C9610LtW-GRwSeJ82.js → ChargeCardPromoPage-D_C7hXGy-jKodLkTT.js} +7 -7
  38. package/dist/assets/{ChargeCardSetupPage-Cy4JhjJW-BnQWcnli.js → ChargeCardSetupPage-BwNi9-pq-C4dK5zJO.js} +3 -3
  39. package/dist/assets/{ChargeCardStatementsPage-C7uS1jEO-7cO1LhgS.js → ChargeCardStatementsPage-Bf04MOoK-k-sWDpeT.js} +8 -8
  40. package/dist/assets/{CheckDepositDrawerPage-TfiJwtqN-CwfCisTT.js → CheckDepositDrawerPage-B-A9fkGZ-DZFZ2JbI.js} +7 -7
  41. package/dist/assets/{CollapsableReportTable-NYu8Bq-g-CCeLwwka.js → CollapsableReportTable-DdMyzUD0-BAoVL7wM.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-CiVliExW-DzmWuQm0.js → CompanyOfficerDetailsSection-kRtuUd2c-Cm23V4kL.js} +18 -18
  43. package/dist/assets/{CompanyPassportCard-8zvCdmxt-CxjPiS1u.js → CompanyPassportCard-KhSJJMcy-Cll554T1.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-AS4N7oT2-Bv10VeId.js → CompanyPassportPage--ckOuqML-CPrNkQDu.js} +10 -10
  45. package/dist/assets/{CompleteProfile-Dj080UdJ-B2qMa6vk.js → CompleteProfile-D8egRg8d-QRh3PECw.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-DcCUSSaX-yciACYT1.js → ConfettiBurst-CvRhNEAY-OaJ4gLIH.js} +1 -1
  47. package/dist/assets/CreateOrEditVendorPage-DrZh60Xs-DORgL7Gm.js +281 -0
  48. package/dist/assets/{CreditCardPaymentDrawerPage-BKvqMwnt-BuHB8ode.js → CreditCardPaymentDrawerPage-B7ssB1GM-DOObGC22.js} +8 -8
  49. package/dist/assets/{CurrencySelectField-ksMvik33-CjY_Sqhm.js → CurrencySelectField-BXp2mtZ7-BZ1r7qNY.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-DfT_gkE4-Dk7tFjjw.js → CustomerOnboardingActivationPage-BX7STQsk-ClpFwMrN.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-BkPTeV9_-YlZ2rpks.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DfOtXgss-1gud75px.js → CustomerOnboardingDetailPageSkeleton-C5tSpmSB-5KFMWV1l.js} +5 -5
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-61UorFvn-DF0b8zE7.js → CustomerOnboardingNoStepsPage-CQUQlLbj-llUCphSN.js} +4 -4
  54. package/dist/assets/CustomerOnboardingPage-D0p8khnC-C1IdwvBx.js +107 -0
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-CTowHB2X-DUFAd8wB.js → CustomerOnboardingProductSuitePage-BRk3TA9f-n37UhYFK.js} +1 -1
  56. package/dist/assets/{Dashboard-2RpETnqH-Dgva4ZAW.js → Dashboard-CBOma7mv-B9j8ewTM.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-DRRWpGiJ-Z6RP-3ZH.js → DashboardReportPage-DRYx3AOy-D6rkizKp.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-0cCKM3E9-DV5Ukn4W.js → DashboardSidebarBackgroundAnimation-DYsp7Imm-CsY2ImuX.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-DjbheijR-B7o468tr.js → DepositAccTransactionItem-BQU7vZKr-BOGssvEh.js} +1 -1
  60. package/dist/assets/DepositAccTransactionListPage-DQDt_2kb-D0tTF08R.js +66 -0
  61. package/dist/assets/{DomesticWireDetailsPage-DuKrVIAL-BzRIhYO3.js → DomesticWireDetailsPage-B0KbC9m8-DSgkPJjx.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-f6SOW8iK-DORigjXi.js → DownloadOverlay-D2vm9EYI-1UU-2gMF.js} +18 -18
  63. package/dist/assets/{DrawerPage-BkIQ6mLJ-DU9u6eQ0.js → DrawerPage-DHIaNEwf-DBdDE0YZ.js} +7 -7
  64. package/dist/assets/{EditPeoplePage-lZcM4Zfw-CzhpHcfF.js → EditPeoplePage-B4OaKX89-CxOdlVup.js} +2 -2
  65. package/dist/assets/{EditReimbursementDetailPage-WO3U-vVY-CTjbkhIP.js → EditReimbursementDetailPage-C_JOnUnR-BaFHONcZ.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-AP27Niqu-DwUEbyHL.js → EntityDetailPage-DGq_Sr4I-DbAOqf4w.js} +2 -2
  67. package/dist/assets/{EntitySummarySection-B6khdAJg-7W3j7WRI.js → EntitySummarySection-CAKPRhm9-DT4p2FkX.js} +10 -10
  68. package/dist/assets/{ExpenseAutomationOverviewPage-CcTGou9x-D6xWlI6r.js → ExpenseAutomationOverviewPage-c4H81maP-DA77wvgo.js} +9 -9
  69. package/dist/assets/{ExpenseAutomationPage-DEleaYKs-SFko_-SO.js → ExpenseAutomationPage-DoI_XKeY-6CiggPiF.js} +160 -160
  70. package/dist/assets/{ExpressPayPage-CLYzefaM-CHfIN-TO.js → ExpressPayPage-CjhXfVeX-BOKCYwCy.js} +12 -12
  71. package/dist/assets/{FeaturePreviewPage-T78A34---Cfgg_jhN.js → FeaturePreviewPage-CwrW_5lN-DmGMYSsi.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-B_mTbqHf-CcoWV2SW.js → FollowStepsSection-DwVibYwI-v9hEOCV9.js} +6 -6
  73. package/dist/assets/{GlobalReviewListPage-XfxDC9vP-Bi-7QMiL.js → GlobalReviewListPage-JUSXRKq4-DVN5r0h7.js} +45 -45
  74. package/dist/assets/{InformationCardStack-Buibt8cT-DzjFUhjp.js → InformationCardStack-CK1Ztw1n-C4th25N4.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-Cj5iIm_T-CnLFxYVI.js → InsightsCardStack-BKAezFjz-Dc6HzMco.js} +2 -2
  76. package/dist/assets/{InsightsSection-DuPqQb5Z-C8m7clcN.js → InsightsSection-Bauri5yR-CKFEflqf.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-VZDSLMHK--2kEd_Ab.js → IntegrationsSettingsPage-CnRe_xH3-UkqXGmer.js} +9 -9
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-BUa1svL--BjPRjytS.js → InternationalWireSwiftDetailsPage-BJkaLuNw-77-AaJID.js} +10 -10
  79. package/dist/assets/{InternationalWireVerificationPage-C1qKNhqJ-D8-rYzvp.js → InternationalWireVerificationPage-pPH2bNM7-BKQZ3C2I.js} +1 -1
  80. package/dist/assets/{InviteFormPage-GPXu2hLn-Dlxczoo1.js → InviteFormPage-CsL2egNG-DnYkx7hA.js} +1 -1
  81. package/dist/assets/{InvitePageListView-FEFeEFZJ-fGYpyL6r.js → InvitePageListView-rt3KC_c5-JZPrjnvG.js} +33 -33
  82. package/dist/assets/{InvitePeoplePage-C6E594rf-DZBpEScz.js → InvitePeoplePage-Cdr0dhtJ-QaKpYzAx.js} +4 -4
  83. package/dist/assets/{InvoiceUploadSection-uvB-_dyl-BnrUYuvf.js → InvoiceUploadSection-NVvtQvoL-B8iP_R_q.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-DSPlu840-3aXsgWJG.js → IssueChargeCardPage-D5KenKnm-I0qHogFn.js} +13 -13
  85. package/dist/assets/{LabeledAddressValue-CzDn9ZY4-bnEz1Jxt.js → LabeledAddressValue-Bwkw-Ez_-QZs1bcqC.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-C_8kPzjy-5OUHMeqd.js → LabeledAddressValueField-BgkRIdwJ-D68tBsFt.js} +2 -2
  87. package/dist/assets/{LabeledControlledCheckBoxField-LwfkGeF--D4JaYe7v.js → LabeledControlledCheckBoxField-RzyuT5ZX-BsFbzCeg.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-sEf-9BOE-pPbJFdXC.js → LabeledCreatableSingleSelectField-BP_p62Nk-BGV5p2pd.js} +2 -2
  89. package/dist/assets/{LabeledDocumentField-rGzXpShn-Cfh7MC5-.js → LabeledDocumentField-DGncRe-Q-BM_MF9Yy.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-CIQk7Jhu-BODJHkfO.js → LabeledDropDownFormattedTextField-DWUVcIR8-DmvGwPXC.js} +7 -7
  91. package/dist/assets/{LabeledText-Dc-697nR-dyJ4TshB.js → LabeledText-BzD_-lgI-Br_7nwt2.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B0D7IWfA-CLizobZu.js → LabeledUserSingleSelectWithSubtitlesField-D3kjxF9V-C7cFlAui.js} +10 -10
  93. package/dist/assets/{LabeledZeniRolesDropDownField-BO8f1yqV-POb2k_D_.js → LabeledZeniRolesDropDownField-BlmybTGB-C8vefnXI.js} +25 -25
  94. package/dist/assets/{LinkJETransactionPage-DDSo8zJn-CupLOAYQ.js → LinkJETransactionPage-CUnfHHeT-BQ0Gfxk0.js} +9 -9
  95. package/dist/assets/{LockCardPage-CvZcUUc8-B6VLJ-gr.js → LockCardPage-2jOFCVkW-Cd-7Cld7.js} +19 -19
  96. package/dist/assets/{LowBalancePopup-DJQCz0Ed-B8IDUNee.js → LowBalancePopup-Du0kX_mJ-B-0Hf7BW.js} +2 -2
  97. package/dist/assets/{MagicLinkACHDetailsPage-CEtaoWk8-CST49L9m.js → MagicLinkACHDetailsPage-CkbNMu7Z-B4drRgdG.js} +1 -1
  98. package/dist/assets/{MagicLinkDomesticWireDetailsPage-qdgMQR3_-DWvT9O1j.js → MagicLinkDomesticWireDetailsPage-D0XBf5_X-D4YEFAaf.js} +1 -1
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DNwtPZ-u-Bk0G3IwE.js → MagicLinkInternationalWireDetailsPage-Bl93T-SF-DbfMD1IO.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-60TBVrSw-CKgQ4p6j.js → MagicLinkSuccessPage-C26glp7T-BbSy9weN.js} +2 -2
  101. package/dist/assets/{MagicLinkTitleSection-D2fXbnDV-CA6SEdmn.js → MagicLinkTitleSection-B4nxLzap-CM0lHGYk.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-C6cVooC3-CCSD5vtq.js → MailingDetailsSection-Cou_W8JF-D0QplON-.js} +1 -1
  103. package/dist/assets/Menu-CdF7UWPF-DT1TTbqS.js +17 -0
  104. package/dist/assets/{MyBankConnectionsSettingsPage-D2EPH9WZ-DhQP4OT2.js → MyBankConnectionsSettingsPage-BAjjxA98-P3jZBDkg.js} +5 -5
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-Bidsd2bk-DJBBvD6g.js → MyPendingActivationChargeCardListPage-DsRGcA8F-BiAy3gfH.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-BH2ZVQTk-DMG3qFrn.js → MyProfileSettingsPage-y-iZgUqL-Cmq9Fbc9.js} +6 -6
  107. package/dist/assets/{NavBarWithPicker-Cg2TZjBi-DZVc5NBz.js → NavBarWithPicker-ph4heJns-CH6-ZGCk.js} +4 -4
  108. package/dist/assets/{NavigationArrow-CYserS2B-DdYPXfvg.js → NavigationArrow-BojAUI53-DuIW3OB3.js} +1 -1
  109. package/dist/assets/{NavigationDots-CT_oO_7z-Bt9KzB5Z.js → NavigationDots-Bf66leAL-DWvE0Tr9.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-D3MQU5Sh-BUpZMSnV.js → NewGlobalMerchantPage-D43XJhIa-CGBQEE1e.js} +5 -5
  111. package/dist/assets/{NoDataChart-BItQZAQ9-a5HKjWqu.js → NoDataChart-6R5pxJVo-CWkI_hu9.js} +1 -1
  112. package/dist/assets/{NoDataTable-R8OCdB2c-cDhvp6Rg.js → NoDataTable-CNx0KCKn-Yxxqzyz6.js} +1 -1
  113. package/dist/assets/{NotFoundPage-DLHYdRdN-xXzpa00n.js → NotFoundPage-CE9BW_aV-BJq9qwHQ.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-CIwxb6c9-FsYdgXX7.js → NotificationSettingsPage-etN6HEwO-CPu8hoID.js} +12 -12
  115. package/dist/assets/{NotificationsListConfig-DSgUS0hE-mwmsOI0p.js → NotificationsListConfig-15ae4nik-CPKCivw4.js} +1 -1
  116. package/dist/assets/{NotificationsPage-W5ZhprRe-DZn-eWsJ.js → NotificationsPage-BwbxqKxd-CJ_w7jhJ.js} +23 -23
  117. package/dist/assets/{OpExByVendorPage-DIi58wXa-nKCVWs3g.js → OpExByVendorPage-FR3oloXp-BIjz5fFP.js} +24 -24
  118. package/dist/assets/{OverlayContainerPage-BsY9_22w-CFGZ7LWs.js → OverlayContainerPage-CrZuT2Jj-BFQOGYGF.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-BvMxFrqo-D4f9n7Zm.js → PandLWithForecastPage-Bx3ZyA3l-DeFHP0VX.js} +7 -7
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-kUAm-v-A-BSna9XIu.js → PaymentAccountSetupBillingAddressSection-R1O20DhA-C65ZHllw.js} +6 -6
  121. package/dist/assets/{PeoplePage-CtnWc0LE-B3_lhERY.js → PeoplePage-B3HRaJWz-DZIUGp3j.js} +15 -15
  122. package/dist/assets/{ProductsCarousel-n0ZNrr7--DQIbkMZp.js → ProductsCarousel-Dn4vuZwM-XZC4Gi6v.js} +4 -4
  123. package/dist/assets/{PromoBaseCards-CeS0HoCZ-CICve0tH.js → PromoBaseCards-BKo4wO-U-UIjavA07.js} +1 -1
  124. package/dist/assets/{QBOConnectionDialog-BxSTc99Z-DVq4lO-s.js → QBOConnectionDialog-CPq0aUew-DHwaU-lE.js} +5 -5
  125. package/dist/assets/{QBOSetupSection-FrO9rgct-B0n-bnvz.js → QBOSetupSection-BjImTh7O-Cf73veGI.js} +11 -11
  126. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BjtdatXs-DvpYlYpI.js → ReimbursementApprovalRuleDetailPage-DD1HwLO0-DBTNMi4-.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRulesPage-B0_FgpJf-BSGUtiNs.js → ReimbursementApprovalRulesPage-DHQHS0eD-l5f43j6l.js} +1 -1
  128. package/dist/assets/{ReimbursementDetailPage-BWhPxHY--DgkbtFUt.js → ReimbursementDetailPage-DiMXs0_o-C-Gngkni.js} +7 -7
  129. package/dist/assets/{ReimbursementPromoPage-CFG0yxOE-CNHt16Bv.js → ReimbursementPromoPage-BinqJ3lR-Dkzvoe2N.js} +5 -5
  130. package/dist/assets/{ReimbursementSetUpPage-BmUdLEa9-uEaDyTyL.js → ReimbursementSetUpPage-BD6B-0CO-Dhg43o5f.js} +17 -17
  131. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CkJqhXEf-B4qPeVNR.js → ReimbursementsBulkReviewDrawerPage-DK-nCoay-BC-GO3CD.js} +1 -1
  132. package/dist/assets/{ReloadCard-CNKwqjPJ-C6w7GHJG.js → ReloadCard-Bt8qxAUx-C0FiLSzB.js} +1 -1
  133. package/dist/assets/{ReportTableViewSelector-B0DXgLgJ-B3X9gS-3.js → ReportTableViewSelector-Dv7BwM1q-DZ-FOl5q.js} +6 -6
  134. package/dist/assets/{ReportsPage-C5iOQU55-DamkEztw.js → ReportsPage-BOY8oCAr-BwR5MVzD.js} +5 -5
  135. package/dist/assets/{RevenueChart-C2CMFAQ--BirLMW85.js → RevenueChart-D_yexiAR-D3rVopXP.js} +16 -16
  136. package/dist/assets/{ReviewDetailsPage-5vOZ0rd7-B41AzmWH.js → ReviewDetailsPage-Czrlb8BL-DTI9py46.js} +14 -14
  137. package/dist/assets/{ReviewOverlay-BAG_6iyV-B2w-MEIV.js → ReviewOverlay-BHUy3fWf-DhycJa32.js} +10 -10
  138. package/dist/assets/{RoleWithToolTip-GUYLjJwW-DVSFtUus.js → RoleWithToolTip-BxI2nAro-CHrHR5C8.js} +4 -4
  139. package/dist/assets/{ScheduleDetailsFixedAssetsPage-sPjMfOtt-m5JvZNFh.js → ScheduleDetailsFixedAssetsPage-DsNhFGrc-C7120rgv.js} +8 -8
  140. package/dist/assets/{ScheduleDetailsPage-DI4C0o6b-B7Dooc-N.js → ScheduleDetailsPage-Dy2poGsp-B72mEOku.js} +4 -4
  141. package/dist/assets/{ScheduleSequenceTable-DhXwtG-x-C20E6-vV.js → ScheduleSequenceTable-Bv1feMZc-DEmwzIZ-.js} +47 -47
  142. package/dist/assets/{ScreenRoutes-B_yySVlk.js → ScreenRoutes-aw0OxNGj.js} +1 -1
  143. package/dist/assets/{SetUpAccountSection-DOavnCkG-CmcaONdQ.js → SetUpAccountSection-SSkLhU2W-Bdvkba2v.js} +14 -14
  144. package/dist/assets/{SignIn-DqrG5nEJ-8MVRrbiA.js → SignIn-Chuf9_2E-Dg9U6pWl.js} +10 -10
  145. package/dist/assets/{SignInScreen-CSh4OzXN.js → SignInScreen-heeiIDQc.js} +1 -1
  146. package/dist/assets/{SpendManagementListViewPage-DHY_hZQm-C3jihmoK.js → SpendManagementListViewPage-BpCZzQ7I-CeMMhyUX.js} +8 -8
  147. package/dist/assets/{SpendManagementPerTabPage-CoKTIQ2b-D2j2J6zW.js → SpendManagementPerTabPage-DbXTM50B-DF3kTGNr.js} +32 -32
  148. package/dist/assets/{SpendManagementSection-UkTY6qX0-CST6kY6m.js → SpendManagementSection-BMU1BTEo-BBFzWPwD.js} +12 -12
  149. package/dist/assets/{StatementItem-Bx6mxa3U-C42zKfqY.js → StatementItem-qLZEMVrM-C5sUBNaG.js} +5 -5
  150. package/dist/assets/{StatementsPage-ULjFE30P-BGU6QX6B.js → StatementsPage-B3qY1D4K-C1V6A2Qk.js} +1 -1
  151. package/dist/assets/{StatusSwitcher-DlBY_FC1-C1Bsm00T.js → StatusSwitcher-xQ_AW7ze-DWj9eTCE.js} +1 -1
  152. package/dist/assets/{SubTabSwitcher-DjEElTWE-5Wo1Obau.js → SubTabSwitcher-w8vLc-35-BeFKfmS8.js} +1 -1
  153. package/dist/assets/{SummaryCard-BNESDUnN-ChwTCNZM.js → SummaryCard-CTq_yqTg-Bw75z4He.js} +1 -1
  154. package/dist/assets/{TaskManagementPage-BFF3ATPV-BYvPz4hv.js → TaskManagementPage-keXFNmIv-BEMVU9l6.js} +33 -33
  155. package/dist/assets/{TimeRangeSwitcher-xILz-EO6-DqqNb5IN.js → TimeRangeSwitcher-C4Tph63B-D9xSXRlF.js} +2 -2
  156. package/dist/assets/{TimeframeSwitcher-CZhQm7rH-D5h04PEF.js → TimeframeSwitcher-LLgotbh8-X4qFRStD.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcherWithToggle-CduB3ZjN-PiqhKHhY.js → TimeframeSwitcherWithToggle-Cw3a9d0I-BlbsDDpn.js} +1 -1
  158. package/dist/assets/{TopExCard-C_HWsAL1-DphCzqA5.js → TopExCard-Dj0wtF6g-CdD53hxs.js} +3 -3
  159. package/dist/assets/{TopExDetailPage-BEKo6juU-CUrrRqCk.js → TopExDetailPage-JutaMmtR-koGwO2ev.js} +5 -5
  160. package/dist/assets/{TransactionDetailPage-Bzgtmi3U-DCXvClem.js → TransactionDetailPage-BdFHqSCv-Bc3ggi0n.js} +30 -30
  161. package/dist/assets/{TransactionList-Dw78Q0Sx-BHAN7axA.js → TransactionList-C85wyFeI-C41EirGp.js} +4 -4
  162. package/dist/assets/{TransactionListBig-BofakL17-k36ZTqo_.js → TransactionListBig-DPev2-Mm-BpW_w096.js} +6 -6
  163. package/dist/assets/{TransactionListPage-tpOg0ax5-aeL9weeE.js → TransactionListPage-D127NU4T-BPyAfJzu.js} +4 -4
  164. package/dist/assets/{TransactionVendorDetailPage-BqIcXz6b-tGgvKqD0.js → TransactionVendorDetailPage-BJ1YnPif-SJ1gb7FN.js} +5 -5
  165. package/dist/assets/{TransferDrawerPage-DnnZBOyK-y1PDtTFY.js → TransferDrawerPage-DcrfmXH1-DiL_C6V9.js} +21 -21
  166. package/dist/assets/{TreasuryOverviewPage-C9ROzNHl-Cn6eazlN.js → TreasuryOverviewPage-D-Zw4Npq-K2RbtXZZ.js} +22 -22
  167. package/dist/assets/{TreasuryPromoPage--j_2YjQn-DHIwXCO0.js → TreasuryPromoPage-BhBPhhbb-DM-0mrYZ.js} +131 -131
  168. package/dist/assets/{TreasuryStatementsPage-BLrceDQm-vMicHzmk.js → TreasuryStatementsPage-Dxjg_QN7-C_fsR-Na.js} +1 -1
  169. package/dist/assets/{TreasuryTaxLetterPage-BoqkgdLm-DAQeQUTC.js → TreasuryTaxLetterPage-Dm552RDZ-BLLWDMsm.js} +7 -7
  170. package/dist/assets/{TrendChart-KnFi8NXQ-DHzaDtQY.js → TrendChart-_c8z5Kxm-DarAZz3o.js} +1 -1
  171. package/dist/assets/{TrendWithTransactions-C_T0I9xe-DqS7m8LH.js → TrendWithTransactions-B2rde1MW-D1twJg_e.js} +4 -4
  172. package/dist/assets/{UncategorizedAccountsMappingPage-DOuzy2aS-DnfCgWVE.js → UncategorizedAccountsMappingPage-77nkQFar-Bn3Ibb9A.js} +1 -1
  173. package/dist/assets/{UnitIntegrationPage-DxhlNHvt-CHN5Qw88.js → UnitIntegrationPage-3_YMV_f4-yfDaiCvi.js} +4 -4
  174. package/dist/assets/{UploadAdditionalDocumentOverlay-BAvSyhDW-D4KE1Kke.js → UploadAdditionalDocumentOverlay-D72fkcgM-BkIuCEEz.js} +1 -1
  175. package/dist/assets/{Vendor2FAPopup-BFjVFON8-Dl6jzAdP.js → Vendor2FAPopup-DLbGF5_q-DmCvA6XI.js} +1 -1
  176. package/dist/assets/{VendorACHDetailsPage-8BG5DD-0-p3vm6zDD.js → VendorACHDetailsPage-CaNQylEA-CMyzxyGW.js} +1 -1
  177. package/dist/assets/{VendorDetailPage-C16CrNJo-D86vTvj2.js → VendorDetailPage-DqdH4UMj-tM-8a-UX.js} +18 -18
  178. package/dist/assets/{VendorDomesticWireDetailsPage-DXhugXZa-DeVAnksE.js → VendorDomesticWireDetailsPage-9pyV_r_g-CREdXXXG.js} +1 -1
  179. package/dist/assets/{VendorFiling1099EditablePage-2QPpdbuN-ozpxZwEp.js → VendorFiling1099EditablePage-nb9_V73Z-CwrDCXoq.js} +32 -32
  180. package/dist/assets/{VendorFirstReviewPage-DLshEh_s-DbpLTolM.js → VendorFirstReviewPage-C2RjaA8x-C3EURG-_.js} +58 -58
  181. package/dist/assets/{VendorInternationalWireDetailsPage-_WoNgw66-DANrlPFU.js → VendorInternationalWireDetailsPage-VOAgofls-DxNfQmbI.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dyt1ZPOh-DoVwF0sT.js → VendorInternationalWireSwiftDetailsPage-CcRuLO-_-CRRJCsCk.js} +1 -1
  183. package/dist/assets/{VendorsAccountsSection-Dxq0YSgP-Bt8xoh_f.js → VendorsAccountsSection-RzVUJ8IV-CIdzas-R.js} +14 -14
  184. package/dist/assets/{VerifyDevice-DEwEqoHA-CylVN9FP.js → VerifyDevice-DUxQHfLf-DyoufOtx.js} +1 -1
  185. package/dist/assets/{VideoPlayer-_1Msrww9-DaiS1R42.js → VideoPlayer-BxuhQQfM-CSaCo4fi.js} +1 -1
  186. package/dist/assets/{VideoPopup-BzQ_Dl9b-mwrODjDA.js → VideoPopup-DdtmLcPB-9kSPQrRF.js} +1 -1
  187. package/dist/assets/{WarningsDrawerPage-CMBST3p1-ujIyTaCb.js → WarningsDrawerPage-DC5ophK0-B9MWpL_5.js} +5 -5
  188. package/dist/assets/{ZeniAccountDetailPage-DVLYYC-q-DeZb5ud9.js → ZeniAccountDetailPage-C1KKeyYC-AmZ_-UbH.js} +14 -14
  189. package/dist/assets/{ZeniAccountListViewPage-BHkoMOx5-CtDb7Bzx.js → ZeniAccountListViewPage-Bw5_2Q-c-Zl0NVbWL.js} +1 -1
  190. package/dist/assets/{ZeniAccountNavBarPieces-CCFzNOcx-CuAvs6Mv.js → ZeniAccountNavBarPieces-DlfwFtOB-BhG7WDho.js} +3 -3
  191. package/dist/assets/{ZeniAccountPromoPage-C3Rl-hWL-DwIvVxTo.js → ZeniAccountPromoPage-B8cXf7Ni-BGYao9Jv.js} +13 -13
  192. package/dist/assets/{ZeniAccountSetupPage-Bf1OOF0Q-DBu-8Ie5.js → ZeniAccountSetupPage-Cae0pB-b-Blr8FOsP.js} +3 -3
  193. package/dist/assets/{ZeniCopyright-CdqD8vO4-DYRLQn9Q.js → ZeniCopyright-gTS4uZlF-BTYFdkhV.js} +1 -1
  194. package/dist/assets/{ZeniTransferAmountSlider-BTudpQjV-CvoGRB0t.js → ZeniTransferAmountSlider-17kY7kNO-DEs9IrPm.js} +1 -1
  195. package/dist/assets/{analyticsHelper-_u1yj9ge-DxpjUhrt.js → analyticsHelper-DXVBA0aW-q_4bVB8v.js} +1 -1
  196. package/dist/assets/analyticsHelper-kRUwHHg6.js +1 -0
  197. package/dist/assets/{chartTypes-vQ8GTDEq-DTt3gea6.js → chartTypes-BXBHlosV-DY5SgOjH.js} +1 -1
  198. package/dist/assets/{commonDimensions-znFHURNY-BydE4i8M.js → commonDimensions-Bm2CSHrw-S9XM9nhL.js} +1 -1
  199. package/dist/assets/{detailCommon-DmLhlrjU-ShYTQ7m2.js → detailCommon-VW4xegQy-1DhxNuRe.js} +3 -3
  200. package/dist/assets/{downloadPdf-CCUPfpyu-Cq1M0ik1.js → downloadPdf-DUAAPKqC-BN9D0Y0M.js} +1 -1
  201. package/dist/assets/{index-XNBiWrYj.js → index-BS0RW8dr.js} +3698 -3698
  202. package/dist/assets/{mapLoadingInProgressToTreeNode-Cw74bTou-BDMlWcL7.js → mapLoadingInProgressToTreeNode-D5WZ1WGx-B7azUcXb.js} +1 -1
  203. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CWFxnMpB-BCzyYlDf.js → mapSectionWithAcOnlyToTreeNode-BxzLwMCb-DSGmyD1M.js} +1 -1
  204. package/dist/assets/{mapSpacerToTreeNode-JUrBuZAz-wZclqNi-.js → mapSpacerToTreeNode-CScyNZ9s-wlC4VP1v.js} +1 -1
  205. package/dist/assets/{mapTimeframeBalancesToTreeNode-B2iYfeF3-B53qunPl.js → mapTimeframeBalancesToTreeNode-Caj8eqsL-Kzqcpw75.js} +1 -1
  206. package/dist/assets/{mapTimeframeBalancesToTreeNode-BbQHYZk7-DpCyCcLg.js → mapTimeframeBalancesToTreeNode-CdVqeC27-Dxhi6BEZ.js} +1 -1
  207. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BeqGSN9x-CoS9pLIE.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CUFXYz6j-YXXdz_Ql.js} +1 -1
  208. package/dist/assets/{toCOABalancesWithID-DeZfEmbT-vM-pgltN.js → toCOABalancesWithID-CqzWoD-C-D32cGljj.js} +1 -1
  209. package/dist/assets/{toChartData-KibzV7pa-DRJVLoY0.js → toChartData-X878W8tN-DZEeyq4i.js} +1 -1
  210. package/dist/assets/{uploadAttachment-U9nX0Ka9-1qW3wdO3.js → uploadAttachment-DNKgJox4-CH4FqFzC.js} +13 -13
  211. package/dist/assets/{uploadReceipts-CDPM7zcb-DEOGBGdq.js → uploadReceipts-Bkf_PaOH-DrwBt5Yx.js} +1 -1
  212. package/dist/index.html +1 -1
  213. package/package.json +3 -3
  214. package/dist/assets/ApprovalRulesSettingsPage-BOJE5Fb_-DykJvECT.js +0 -47
  215. package/dist/assets/ArAgingDetailPage-ZjaiAH-C-DY8qSTjK.js +0 -46
  216. package/dist/assets/CreateOrEditVendorPage-flCFtC2N-Dsf2hlMT.js +0 -281
  217. package/dist/assets/CustomerOnboardingContainerPage-DZ9vkiEO-ah6dg727.js +0 -1
  218. package/dist/assets/CustomerOnboardingPage-C12XXjv0-mi5gJ6u3.js +0 -107
  219. package/dist/assets/DepositAccTransactionListPage-keSFBKDU-qnysSla9.js +0 -66
  220. package/dist/assets/Menu-D_6Dje0H-Ar5SwcnV.js +0 -17
  221. package/dist/assets/analyticsHelper-D23HZgYu.js +0 -1
@@ -1,4 +1,4 @@
1
- import{aN as H,id as ee,gz as me,ez as Le,ie as we,a8 as Je,ig as Me,cB as Ve,cC as _e,V as a,F as ye,ab as Pe,cm as Fe,cn as Ne,co as qe,aO as Be,ih as Re,ii as We,a9 as he,ij as fe,ik as ze,cO as $e,Q as Ue,iz as Ge,gE as re,u as R,p as Se,y as De,cE as He,il as Ke,im as Qe,io as Ye,o as _}from"./index-XNBiWrYj.js";import{a as m}from"./core-3dlyNYRL.js";import{n as z}from"./mui-bYXq4XMS.js";import{f_ as Ze,f$ as Xe}from"./zeni-epic-state-LPACxnXP.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-DhXwtG-x-C20E6-vV.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=z.div`
1
+ import{aN as K,ie as ee,gA as me,eA as Le,ig as we,a8 as Je,ih as Me,cB as Ve,cC as _e,V as a,F as ye,ab as Pe,cm as Fe,cn as Ne,co as qe,aO as Be,ii as Re,ij as We,a9 as he,ik as fe,il as Ue,cO as ze,Q as $e,iA as Ge,gF as re,u as R,p as Se,y as De,cE as Ke,im as He,io as Ye,ip as Ze,o as _}from"./index-BS0RW8dr.js";import{a as m}from"./core-3dlyNYRL.js";import{n as U}from"./mui-bYXq4XMS.js";import{f_ as Qe,f$ as Xe}from"./zeni-epic-state-LPACxnXP.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-Bv1feMZc-DEmwzIZ-.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=U.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -9,29 +9,29 @@ import{aN as H,id as ee,gz as me,ez as Le,ie as we,a8 as Je,ig as Me,cB as Ve,cC
9
9
  border-top-right-radius: ${_.sp2};
10
10
  border-bottom-left-radius: ${_.sp0};
11
11
  border-bottom-right-radius: ${_.sp0};
12
- `,K=z.div`
12
+ `,H=U.div`
13
13
  display: flex;
14
14
  flex: 1;
15
15
  background-color: ${t=>t.theme.colors.grey3};
16
16
  min-height: 1px;
17
- `,ot=z.div`
17
+ `,ot=U.div`
18
18
  display: flex;
19
19
  flex-direction: column;
20
20
  margin: ${_.sp4} ${_.sp8} ${_.sp0} ${_.sp8};
21
- `,V=(t,d)=>`${t}.${d}`;function nt({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:T,selectedPostingDay:E,lastDayOfMonth:O,isDisabled:h,allowCreateSchedule:J,onCreateSchedule:i,onDelete:ae,onMarkAsComplete:Y}){const{resetField:f}=$e(),se=V(t,"scheduleExpenseCategory"),oe=V(t,"scheduleClass"),ne=V(t,"accumulatedDepreciationCategory"),de=V(t,"assetId"),Z=V(t,"startDate"),S=V(t,"postingDate"),r=V(t,"months"),e=ye.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,Q={valueContainer:o=>({...o,overflow:"unset"})},I=Ue(),$=Ge({startDate:d.baseTransaction.date,endDate:d.baseTransaction.date.add(1,"year")}),U=()=>{f(S)},G=E==null&&O==null?void 0:O===!0?"lastDayOfMonth":"day",N=o=>[k.expense?.qboId,k.income?.qboId].includes(o),X=()=>{d.jeScheduleId!=null&&ae(d.jeScheduleId)},D=d.scheduledJournalEntry.flatMap(o=>o.error);return a.jsxs(ot,{children:[a.jsx(lt,{status:d.status.code,jeScheduleId:d.jeScheduleId,allowCreateSchedule:J,onDelete:X,isUpdating:g==="In-Progress",onMarkAsComplete:Y,onCreateSchedule:i}),a.jsx(he,{controller:J===!0,children:a.jsxs(st,{children:[a.jsx(re,{isDisabled:D.includes("debit_category_deleted")?void 0:h,isLoading:!1,label:{label:e.expenseCategory,width:W.labelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:D.includes("debit_category_deleted")?Se.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:Q},disableCurrentOption:N,style:{borderTopLeftRadius:R[2],borderTopRightRadius:R[2]}}),a.jsx(K,{}),a.jsx(re,{isDisabled:h,isLoading:!1,label:{label:e.class,width:W.labelWidth.value(I)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:oe,placeholder:e.classPlaceholder,valueToId:o=>ie(o),defaultValue:{selectedOption:P,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Q},style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(K,{}),a.jsx(re,{isDisabled:D.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:e.accumulatedDepreciationCategory,width:W.depCategoryLabelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:D.includes("credit_category_deleted")?Se.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:Q},disableCurrentOption:N,style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(K,{}),a.jsx(He,{label:{label:e.assetId,width:W.labelWidth.value(I)},style:{width:"auto"},text:{type:"text",name:de,defaultValue:L,placeholder:e.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:R[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(K,{}),a.jsx(Ke,{label:{label:e.startMonth,width:W.labelWidth.value(I)},monthSelectorField:{name:Z,placeholder:e.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:h,monthsAndYears:$},isDisabled:h}),a.jsx(K,{}),a.jsx(at,{label:{label:e.postingDate,width:W.labelWidth.value(I)},isDisabled:h,dayOfMonthField:{placeholder:e.postingDatePlaceholder,name:S,defaultValue:{type:G,dayOfMonth:E},onSaveClick:()=>{},onCancelClick:U}}),a.jsx(K,{}),a.jsx(Qe,{label:{label:e.months,width:W.labelWidth.value(I)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:e.monthsPlaceholder,defaultValue:{selectedOption:T!=null?v[T-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(he,{controller:J===!1,children:a.jsx(Ye,{text:e.scheduleMarkedAsCompleted})})]})}const dt=z.div`
21
+ `,V=(t,i)=>`${t}.${i}`;function nt({sectionId:t,jeScheduledTransaction:i,updateStatus:g,allAccountOptions:l,allAccountList:s,allClassList:u,allClassOptions:c,allDepreciationAccountList:p,allDepreciationAccountOptions:y,allMonthOptions:v,uncategorizedAccounts:k,selectedAccount:E,selectedClass:P,selectedAccumulatedDepreciationCategory:F,assetId:L,selectedDate:w,selectedMonths:T,selectedPostingDay:A,lastDayOfMonth:O,isDisabled:h,allowCreateSchedule:J,onCreateSchedule:d,onDelete:ae,onMarkAsComplete:Z}){const{resetField:f}=ze(),se=V(t,"scheduleExpenseCategory"),oe=V(t,"scheduleClass"),ne=V(t,"accumulatedDepreciationCategory"),ie=V(t,"assetId"),Q=V(t,"startDate"),S=V(t,"postingDate"),r=V(t,"months"),e=ye.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,b=o=>s.filter(q=>q.qboId===o)[0]?.qboId,x=o=>p.filter(q=>q.qboId===o)[0]?.qboId,de=o=>u.filter(q=>q.classId===o)[0]?.accountingClassNumber,Y={valueContainer:o=>({...o,overflow:"unset"})},I=$e(),z=Ge({startDate:i.baseTransaction.date,endDate:i.baseTransaction.date.add(1,"year")}),$=()=>{f(S)},G=A==null&&O==null?void 0:O===!0?"lastDayOfMonth":"day",N=o=>[k.expense?.qboId,k.income?.qboId].includes(o),X=()=>{i.jeScheduleId!=null&&ae(i.jeScheduleId)},D=i.scheduledJournalEntry.flatMap(o=>o.error);return a.jsxs(ot,{children:[a.jsx(lt,{status:i.status.code,jeScheduleId:i.jeScheduleId,allowCreateSchedule:J,onDelete:X,isUpdating:g==="In-Progress",onMarkAsComplete:Z,onCreateSchedule:d}),a.jsx(he,{controller:J===!0,children:a.jsxs(st,{children:[a.jsx(re,{isDisabled:D.includes("debit_category_deleted")?void 0:h,isLoading:!1,label:{label:e.expenseCategory,width:W.labelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:D.includes("debit_category_deleted")?Se.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:se,placeholder:e.expenseCategoryPlaceholder,valueToId:o=>b(o),defaultValue:{selectedOption:E,allOptions:l},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Y},disableCurrentOption:N,style:{borderTopLeftRadius:R[2],borderTopRightRadius:R[2]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:h,isLoading:!1,label:{label:e.class,width:W.labelWidth.value(I)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:oe,placeholder:e.classPlaceholder,valueToId:o=>de(o),defaultValue:{selectedOption:P,allOptions:c},registerOptions:{required:!0,validate:o=>!!o.selectedOption},customStyleConfig:Y},style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(re,{isDisabled:D.includes("credit_category_deleted")?void 0:h,isLoading:!1,label:{label:e.accumulatedDepreciationCategory,width:W.depCategoryLabelWidth.value(I)},groupedSingleSelectField:{customPlaceholderColor:D.includes("credit_category_deleted")?Se.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:Y},disableCurrentOption:N,style:{borderTopLeftRadius:R[0],borderTopRightRadius:R[0]}}),a.jsx(H,{}),a.jsx(Ke,{label:{label:e.assetId,width:W.labelWidth.value(I)},style:{width:"auto"},text:{type:"text",name:ie,defaultValue:L,placeholder:e.assetIdPlaceholder,autoComplete:"new-password",options:{maxLength:R[3],required:!0,validate:o=>!!o}},isDisabled:h}),a.jsx(H,{}),a.jsx(He,{label:{label:e.startMonth,width:W.labelWidth.value(I)},monthSelectorField:{name:Q,placeholder:e.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:h,monthsAndYears:z},isDisabled:h}),a.jsx(H,{}),a.jsx(at,{label:{label:e.postingDate,width:W.labelWidth.value(I)},isDisabled:h,dayOfMonthField:{placeholder:e.postingDatePlaceholder,name:S,defaultValue:{type:G,dayOfMonth:A},onSaveClick:()=>{},onCancelClick:$}}),a.jsx(H,{}),a.jsx(Ye,{label:{label:e.months,width:W.labelWidth.value(I)},singleSelectNumericField:{name:r,isDisabled:h,placeholder:e.monthsPlaceholder,defaultValue:{selectedOption:T!=null?v[T-1]:void 0,allOptions:v},registerOptions:{required:!0,validate:o=>!!o.selectedOption}}})]})}),a.jsx(he,{controller:J===!1,children:a.jsx(Ze,{text:e.scheduleMarkedAsCompleted})})]})}const it=U.div`
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  width: 100%;
25
25
  height: 100%;
26
26
  min-height: 100vh;
27
27
  background-color: ${t=>t.theme.colors.grey4};
28
- `,it=z.div`
28
+ `,dt=U.div`
29
29
  display: flex;
30
30
  z-index: 2;
31
- `,ct=z.div`
31
+ `,ct=U.div`
32
32
  display: flex;
33
33
  flex-direction: column;
34
- `,rt=z.div`
34
+ `,rt=U.div`
35
35
  display: flex;
36
36
  justify-content: center;
37
- `,Ce="scheduleDetailsPage",te="scheduleDetailsFixedAssetsSection",le="scheduleDetailsListSection",ut=ye.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ht}}=ut;function At({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:T}){const[E,O]=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,Z]=m.useState(!0),S=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,e=l.selectedJEScheduleTransaction,b=Ze(d.controllers),x=Xe(d.controllerUserIds),ie={onOkClick:()=>{O(!1),p()},onCancelClick:()=>{O(!1)}},Q=n=>{const C=e?.scheduledJournalEntry[n];r!=null&&C!=null&&e!=null&&t.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...ze(r)},scheduleExpenseCategoryAndClass:{expenseCategory:e.jeDebit.account?.accountName??null,expenseClass:e.jeDebit.accountingClass?.className??null},journalEntryDetails:{...fe(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 j=e?.scheduledJournalEntry[C];r!=null&&j!=null&&e!=null&&t.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:e.jeDebit.account?.accountName??null,expenseClass:e.jeDebit.accountingClass?.className??null},journalEntryDetails:fe(j),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"&&T(e.jeScheduleTransactionKey,{month:g.month,year:g.year}),p())},[g,J,l.selectedJEScheduleTransaction?.status.code,t,p,h,T,c,l.updateStatus,e,r,S,b,x]),m.useEffect(()=>{i==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[i,l.deleteStatus,p]);const $=me(l.accountListNestedAccountHierarchy),U=me(l.allDepreciationAccountListNestedAccountHierarchy),G=Le(l.classListNestedAccountHierarchy),N=we("fixed_assets"),X=m.useRef(),D=Je({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,$,G,U,N,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,$,G,U,N,u.entityAutoCompleteView)}),o=D.watch("scheduleDetailsFixedAssetsSection.vendor");m.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&X.current?.(Me(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const q=(n,C)=>{s.onAutoCompleteInputChange?.(n,"vendor"),X.current=C},be=D.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),xe=async(n,C)=>{const j=C[te].vendor;if(n.includes("vendor")){const ce=j?.defaultOptions.map(B=>B.value);if(j?.selectedOption!=null&&ce?.includes(j.selectedOption)!==!0){const B=u.entityAutoCompleteView.vendor.find(ke=>ke.id===j.selectedOption);B!=null&&D.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:B.name??"",value:B.id}])}}const Ie=n.includes("amount");if(P(C,Ie),n.includes("amount")){const ce=n.split(".")[1],B=parseInt(ce);Y(!0),y(B,l.selectedJEScheduleTransaction?.jeScheduleId)}};m.useEffect(()=>{const n=D.watch((C,{name:j})=>{j!=null&&C!=null&&Ve(()=>xe(j,C))});return()=>{n.unsubscribe()}}),m.useEffect(()=>{(se!==f.jeScheduleDetails.length||oe!==f.selectedDate||ne!==f.selectedDayOfMonth)&&ae===!0&&(D.resetField(le,{defaultValue:ue(l,$,G,U,N,u.entityAutoCompleteView)[le],keepDirty:!1}),Y(!1))},[f.jeScheduleDetails.length,f.selectedDate,f.selectedDayOfMonth]),m.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&Z(!1)},[l.selectedJEScheduleTransaction?.status.code]);const pe=(_e(D.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&f.jeScheduleDetails.length>0,ve=()=>{pe===!0?O(!0):(r!=null&&e!=null&&t.trackScheduleDetailsCanceled(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),p())},Ee=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Oe=m.useCallback(()=>{Z(!0)},[]),je=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})),A(n)},[t,b,x,e,A,r,S]),Te=(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(dt,{children:[a.jsx(pt,{title:Te??M.strings.empty,onNavigateBack:ve,onTransactionClick:Ee}),a.jsx(it,{children:a.jsx(Pe,{...D,children:a.jsxs("form",{style:{width:"100%"},id:ge(Ce),onSubmit:be,children:[a.jsx(mt,{vendorLoadOptions:q,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:$,allClassOptions:G,allMonthOptions:N,allDepAccountOptions:U,onEditAmount:y,onDelete:Ae,onJELinkClick:Q,onViewLinkedJE:I,onMarkAsComplete:je,allowCreateSchedule:de,onCreateSchedule:Oe}),E===!0?a.jsx(Fe,{titleComponent:a.jsx(qe,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Ne,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:ie}):null,pe===!0?a.jsx(Be,{formId:ge(Ce),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{O(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function pt({onNavigateBack:t,onTransactionClick:d,title:g}){return a.jsx(We,{title:g,tooltipTextOnLaunch:ht.showTransactionTooltip,onBackClick:t,onLaunchClick:d,style:{zIndex:3}})}function mt({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 T=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(E=>E.error).filter(E=>!!E)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(ct,{children:[a.jsx(rt,{children:a.jsx(et,{vendorLoadOptions:d,vendorField:t,vendorFieldName:V(te,"vendor"),vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:l,errors:T,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(nt,{sectionId:te,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions: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(tt,{sectionId:le,totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:A,onJELinkClick:F,onViewLinkedJE:L,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ge=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,T=c.selectedMonths,E=c.jeScheduleDetails.map(i=>({postingDate:i.postingDate,amount:i.amount.amount,runningBalance:i.runningBalance.amount,postingStatus:i.postingStatus,jeLink:i.jeLink.thirdPartyTransactionId})),O=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=O==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[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:T,allOptions:s},vendor:{selectedOption:v?.id??y?.id,defaultOptions:Re(u,v??y)},postingDate:{type:J,dayOfMonth:O}},[le]:E}};export{At as default};
37
+ `,Ce="scheduleDetailsPage",te="scheduleDetailsFixedAssetsSection",le="scheduleDetailsListSection",ut=ye.getLocalizedStrings(),{common:M,jeSchedules:{scheduleDetails:ht}}=ut;function Et({analytics:t,controllerUserDetails:i,expenseAutomationSelectedPeriod:g,scheduleDetailsView:l,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,usedInExpenseAutomation:c,onNavigateBack:p,onEditAmount:y,onJELinkClick:v,onSave:k,onDelete:E,onDetailPageChange:P,onViewLinkedJE:F,onTransactionClick:L,onMarkAsComplete:w,removeJeScheduleTransactionKey:T}){const[A,O]=m.useState(!1),h=K(l.updateStatus.fetchState),J=K(l.selectedJEScheduleTransaction?.status.code),d=K(l.deleteStatus.fetchState),[ae,Z]=m.useState(!1),f=l.scheduleDetailsLocalData.fixed_assets,se=K(f.jeScheduleDetails.length),oe=K(f.selectedDate),ne=K(f.selectedDayOfMonth),[ie,Q]=m.useState(!0),S=l.selectedJEScheduleTransaction?.vendor,r=l.selectedJEScheduleTransaction?.baseTransaction,e=l.selectedJEScheduleTransaction,b=Qe(i.controllers),x=Xe(i.controllerUserIds),de={onOkClick:()=>{O(!1),p()},onCancelClick:()=>{O(!1)}},Y=n=>{const C=e?.scheduledJournalEntry[n];r!=null&&C!=null&&e!=null&&t.trackScheduleDetailsLinkJournalEntry({scheduleType:"fixed_assets",transaction:{...Ue(r)},scheduleExpenseCategoryAndClass:{expenseCategory:e.jeDebit.account?.accountName??null,expenseClass:e.jeDebit.accountingClass?.className??null},journalEntryDetails:{...fe(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 j=e?.scheduledJournalEntry[C];r!=null&&j!=null&&e!=null&&t.trackScheduleDetailsViewJournalEntry({scheduleType:"fixed_assets",scheduleExpenseCategoryAndClass:{expenseCategory:e.jeDebit.account?.accountName??null,expenseClass:e.jeDebit.accountingClass?.className??null},journalEntryDetails:fe(j),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"&&T(e.jeScheduleTransactionKey,{month:g.month,year:g.year}),p())},[g,J,l.selectedJEScheduleTransaction?.status.code,t,p,h,T,c,l.updateStatus,e,r,S,b,x]),m.useEffect(()=>{d==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&p()},[d,l.deleteStatus,p]);const z=me(l.accountListNestedAccountHierarchy),$=me(l.allDepreciationAccountListNestedAccountHierarchy),G=Le(l.classListNestedAccountHierarchy),N=we("fixed_assets"),X=m.useRef(),D=Je({mode:"all",reValidateMode:"onChange",defaultValues:ue(l,z,G,$,N,u.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ue(l,z,G,$,N,u.entityAutoCompleteView)}),o=D.watch("scheduleDetailsFixedAssetsSection.vendor");m.useEffect(()=>{u.entityAutoCompleteView.fetchState==="Completed"&&X.current?.(Me(u.entityAutoCompleteView))},[u.entityAutoCompleteView.fetchState]);const q=(n,C)=>{s.onAutoCompleteInputChange?.(n,"vendor"),X.current=C},be=D.handleSubmit(()=>{k(l.selectedJEScheduleTransaction?.jeScheduleId)}),xe=async(n,C)=>{const j=C[te].vendor;if(n.includes("vendor")){const ce=j?.defaultOptions.map(B=>B.value);if(j?.selectedOption!=null&&ce?.includes(j.selectedOption)!==!0){const B=u.entityAutoCompleteView.vendor.find(ke=>ke.id===j.selectedOption);B!=null&&D.setValue("scheduleDetailsFixedAssetsSection.vendor.defaultOptions",[{label:B.name??"",value:B.id}])}}const Ie=n.includes("amount");if(P(C,Ie),n.includes("amount")){const ce=n.split(".")[1],B=parseInt(ce);Z(!0),y(B,l.selectedJEScheduleTransaction?.jeScheduleId)}};m.useEffect(()=>{const n=D.watch((C,{name:j})=>{j!=null&&C!=null&&Ve(()=>xe(j,C))});return()=>{n.unsubscribe()}}),m.useEffect(()=>{(se!==f.jeScheduleDetails.length||oe!==f.selectedDate||ne!==f.selectedDayOfMonth)&&ae===!0&&(D.resetField(le,{defaultValue:ue(l,z,G,$,N,u.entityAutoCompleteView)[le],keepDirty:!1}),Z(!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=(_e(D.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&f.jeScheduleDetails.length>0,ve=()=>{pe===!0?O(!0):(r!=null&&e!=null&&t.trackScheduleDetailsCanceled(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),p())},Ae=()=>{l.selectedJEScheduleTransaction!=null&&L({id:l.selectedJEScheduleTransaction.baseTransaction.id,type:l.selectedJEScheduleTransaction.baseTransaction.type})},Oe=m.useCallback(()=>{Q(!0)},[]),je=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]),Ee=m.useCallback(n=>{r!=null&&e!=null&&t.trackScheduleDetailsDeleted(ee({jeScheduleTransaction:e,scheduleTab:"fixed_assets",transaction:r,vendor:S,controllerEmails:b,controllerUserIds:x})),E(n)},[t,b,x,e,E,r,S]),Te=(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(it,{children:[a.jsx(pt,{title:Te??M.strings.empty,onNavigateBack:ve,onTransactionClick:Ae}),a.jsx(dt,{children:a.jsx(Pe,{...D,children:a.jsxs("form",{style:{width:"100%"},id:ge(Ce),onSubmit:be,children:[a.jsx(mt,{vendorLoadOptions:q,vendorField:o,vendorSearchAutoCompleteActions:s,vendorSearchAutoCompleteData:u,scheduleDetailsView:l,allAccountOptions:z,allClassOptions:G,allMonthOptions:N,allDepAccountOptions:$,onEditAmount:y,onDelete:Ee,onJELinkClick:Y,onViewLinkedJE:I,onMarkAsComplete:je,allowCreateSchedule:ie,onCreateSchedule:Oe}),A===!0?a.jsx(Fe,{titleComponent:a.jsx(qe,{children:M.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Ne,{children:M.confirmationPopup.discardDescription}),primaryButtonText:M.confirmationPopup.discard,secondaryButtonText:M.confirmationPopup.cancel,proceedButtonVariant:"danger",action:de}):null,pe===!0?a.jsx(Be,{formId:ge(Ce),primaryBtn:{label:M.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:M.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{O(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function pt({onNavigateBack:t,onTransactionClick:i,title:g}){return a.jsx(We,{title:g,tooltipTextOnLaunch:ht.showTransactionTooltip,onBackClick:t,onLaunchClick:i,style:{zIndex:3}})}function mt({vendorField:t,vendorLoadOptions:i,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:l,scheduleDetailsView:s,allAccountOptions:u,allClassOptions:c,allDepAccountOptions:p,allMonthOptions:y,allowCreateSchedule:v,onCreateSchedule:k,onEditAmount:E,onDelete:P,onJELinkClick:F,onViewLinkedJE:L,onMarkAsComplete:w}){const T=s.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(A=>A.error).filter(A=>!!A)??[];return s.selectedJEScheduleTransaction!=null?a.jsxs(ct,{children:[a.jsx(rt,{children:a.jsx(et,{vendorLoadOptions:i,vendorField:t,vendorFieldName:V(te,"vendor"),vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:l,errors:T,transaction:s.selectedJEScheduleTransaction.baseTransaction,vendor:s.selectedJEScheduleTransaction.vendor})}),a.jsx(nt,{sectionId:te,jeScheduledTransaction:s.selectedJEScheduleTransaction,allAccountOptions:u,allAccountList:s.allAccountList,allClassList:s.allClassList,allClassOptions:c,allDepreciationAccountOptions:p,allDepreciationAccountList:s.allDepreciationAccountList,allMonthOptions: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(tt,{sectionId:le,totalAmount:s.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:s.fetchState,scheduleJournalEntries:s.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:s.selectedJEScheduleTransaction.jeScheduleId==null,localData:s.scheduleDetailsLocalData.fixed_assets.jeScheduleDetails,uiState:s.uiState,onEditAmount:E,onJELinkClick:F,onViewLinkedJE:L,jeScheduleId:s.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const ge=t=>`${t}_form`,ue=(t,i,g,l,s,u)=>{const c=t.scheduleDetailsLocalData.fixed_assets,p=c.selectedAccount,y=c.selectedVendor,v=y!=null?u.vendor.find(d=>d.zeniId===y.id):void 0,k=p!=null?t.allAccountList.find(d=>d.accountId===p):void 0,E=c.selectedAccumulatedDepreciationCategory,P=E!=null?t.allDepreciationAccountList.find(d=>d.accountId===E):void 0,F=c.assetId,L=c.selectedClass,w=L!=null?t.allClassList.find(d=>d.classId===L):void 0,T=c.selectedMonths,A=c.jeScheduleDetails.map(d=>({postingDate:d.postingDate,amount:d.amount.amount,runningBalance:d.runningBalance.amount,postingStatus:d.postingStatus,jeLink:d.jeLink.thirdPartyTransactionId})),O=c.selectedDayOfMonth,h=c.lastDayOfMonth,J=O==null&&h==null?void 0:h===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:k?.qboId,allOptions:i},accumulatedDepreciationCategory:{selectedOption:P?.qboId,allOptions:l},assetId:F,scheduleClass:{selectedOption:w?.classId,allOptions:g},startDate:c.selectedDate,months:{selectedOption:T,allOptions:s},vendor:{selectedOption:v?.id??y?.id,defaultOptions:Re(u,v??y)},postingDate:{type:J,dayOfMonth:O}},[le]:A}};export{Et as default};
@@ -1,4 +1,4 @@
1
- import{aN as F,id as Q,gz as ke,ez as Ae,ie as Ie,a8 as Je,ig as Le,cB as we,cC as Me,V as a,F as fe,ab as Ve,cm as Pe,cn as $e,co as Fe,aO as _e,ih as Ne,ii as Be,a9 as ie,ij as he,ik as ze,cO as qe,Q as Ue,gE as pe,u as X,p as We,y as Re,il as Ge,im as He,io as Ke,o as L}from"./index-XNBiWrYj.js";import{a as D}from"./core-3dlyNYRL.js";import{n as P}from"./mui-bYXq4XMS.js";import{f_ as Ye,f$ as Qe,bO as Xe}from"./zeni-epic-state-LPACxnXP.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-DhXwtG-x-C20E6-vV.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const z={labelWidth:new Re(160,160,160)},at=P.div`
1
+ import{aN as _,ie as Q,gA as ke,eA as Ae,ig as Ie,a8 as Je,ih as Le,cB as we,cC as Me,V as a,F as fe,ab as Ve,cm as Pe,cn as Fe,co as _e,aO as $e,ii as Be,ij as Ne,a9 as ie,ik as he,il as qe,cO as Ue,Q as ze,gF as pe,u as X,p as We,y as Re,im as Ke,io as Ge,ip as He,o as L}from"./index-BS0RW8dr.js";import{a as D}from"./core-3dlyNYRL.js";import{n as P}from"./mui-bYXq4XMS.js";import{f_ as Ye,f$ as Qe,bO as Xe}from"./zeni-epic-state-LPACxnXP.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-Bv1feMZc-DEmwzIZ-.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const q={labelWidth:new Re(160,160,160)},at=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -18,14 +18,14 @@ import{aN as F,id as Q,gz as ke,ez as Ae,ie as Ie,a8 as Je,ig as Le,cB as we,cC
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 ot({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:$}){const{resetField:q}=qe(),U=_(e,"scheduleExpenseCategory"),W=_(e,"scheduleClass"),ae=_(e,"startDate"),N=_(e,"postingDate"),y=_(e,"months"),f=fe.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,se=d=>t.filter(B=>B.qboId===d)[0]?.qboId,oe=d=>i.filter(B=>B.classId===d)[0]?.accountingClassNumber,R={valueContainer:d=>({...d,overflow:"unset"})},J=Ue(),x=nt({startDate:n.baseTransaction.date,endDate:n.baseTransaction.date.add(1,"year")}),h=()=>{q(N)},s=O==null&&k==null?void 0:k===!0?"lastDayOfMonth":"day",E=d=>[p.expense?.qboId,p.income?.qboId].includes(d),j=()=>{n.jeScheduleId!=null&&le(n.jeScheduleId)},G=n.scheduledJournalEntry.flatMap(d=>d.error);return a.jsxs(st,{children:[a.jsx(tt,{isUpdating:m==="In-Progress",status:n.status.code,jeScheduleId:n.jeScheduleId,allowCreateSchedule:v,onDelete:j,onMarkAsComplete:$,onCreateSchedule:u}),a.jsx(ie,{controller:v===!0,children:a.jsxs(at,{children:[a.jsx(pe,{isDisabled:G.includes("debit_category_deleted")?void 0:S,isLoading:!1,label:{label:f.expenseCategory,width:z.labelWidth.value(J)},groupedSingleSelectField:{customPlaceholderColor:G.includes("debit_category_deleted")?We.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:U,placeholder:f.expenseCategoryPlaceholder,valueToId:d=>se(d),defaultValue:{selectedOption:r,allOptions:l},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:R},disableCurrentOption:E,style:{borderTopLeftRadius:X[2],borderTopRightRadius:X[2]}}),a.jsx(Z,{}),a.jsx(pe,{isDisabled:S,isLoading:!1,label:{label:f.class,width:z.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:R},style:{borderTopLeftRadius:X[0],borderTopRightRadius:X[0]}}),a.jsx(Z,{}),a.jsx(Ge,{label:{label:f.startMonth,width:z.labelWidth.value(J)},monthSelectorField:{name:ae,placeholder:f.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:S,monthsAndYears:x},isDisabled:S}),a.jsx(Z,{}),a.jsx(lt,{label:{label:f.postingDate,width:z.labelWidth.value(J)},isDisabled:S,dayOfMonthField:{placeholder:f.postingDatePlaceholder,name:N,defaultValue:{type:s,dayOfMonth:O},onSaveClick:()=>{},onCancelClick:h}}),a.jsx(Z,{}),a.jsx(He,{label:{label:f.months,width:z.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(ie,{controller:v===!1,children:a.jsx(Ke,{text:f.scheduleMarkedAsCompleted})})]})}const nt=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=Xe(`${o}-01-01`).localeData().monthsShort();return n[p]=r,p}).reverse(),months:n}},dt=P.div`
21
+ `,$=(e,n)=>`${e}.${n}`;function ot({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}=Ue(),z=$(e,"scheduleExpenseCategory"),W=$(e,"scheduleClass"),ae=$(e,"startDate"),B=$(e,"postingDate"),y=$(e,"months"),f=fe.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,se=c=>t.filter(N=>N.qboId===c)[0]?.qboId,oe=c=>i.filter(N=>N.classId===c)[0]?.accountingClassNumber,R={valueContainer:c=>({...c,overflow:"unset"})},J=ze(),x=nt({startDate:n.baseTransaction.date,endDate:n.baseTransaction.date.add(1,"year")}),h=()=>{U(B)},s=O==null&&k==null?void 0:k===!0?"lastDayOfMonth":"day",E=c=>[p.expense?.qboId,p.income?.qboId].includes(c),j=()=>{n.jeScheduleId!=null&&le(n.jeScheduleId)},K=n.scheduledJournalEntry.flatMap(c=>c.error);return a.jsxs(st,{children:[a.jsx(tt,{isUpdating:m==="In-Progress",status:n.status.code,jeScheduleId:n.jeScheduleId,allowCreateSchedule:v,onDelete:j,onMarkAsComplete:F,onCreateSchedule:u}),a.jsx(ie,{controller:v===!0,children:a.jsxs(at,{children:[a.jsx(pe,{isDisabled:K.includes("debit_category_deleted")?void 0:S,isLoading:!1,label:{label:f.expenseCategory,width:q.labelWidth.value(J)},groupedSingleSelectField:{customPlaceholderColor:K.includes("debit_category_deleted")?We.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:z,placeholder:f.expenseCategoryPlaceholder,valueToId:c=>se(c),defaultValue:{selectedOption:r,allOptions:l},registerOptions:{required:!0,validate:c=>!!c.selectedOption},customStyleConfig:R},disableCurrentOption:E,style:{borderTopLeftRadius:X[2],borderTopRightRadius:X[2]}}),a.jsx(Z,{}),a.jsx(pe,{isDisabled:S,isLoading:!1,label:{label:f.class,width:q.labelWidth.value(J)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:W,placeholder:f.classPlaceholder,valueToId:c=>oe(c),defaultValue:{selectedOption:C,allOptions:b},registerOptions:{required:!0,validate:c=>!!c.selectedOption},customStyleConfig:R},style:{borderTopLeftRadius:X[0],borderTopRightRadius:X[0]}}),a.jsx(Z,{}),a.jsx(Ke,{label:{label:f.startMonth,width:q.labelWidth.value(J)},monthSelectorField:{name:ae,placeholder:f.startMonthPlaceholder,defaultValue:w,showDownChevron:!1,isDisabled:S,monthsAndYears:x},isDisabled:S}),a.jsx(Z,{}),a.jsx(lt,{label:{label:f.postingDate,width:q.labelWidth.value(J)},isDisabled:S,dayOfMonthField:{placeholder:f.postingDatePlaceholder,name:B,defaultValue:{type:s,dayOfMonth:O},onSaveClick:()=>{},onCancelClick:h}}),a.jsx(Z,{}),a.jsx(Ge,{label:{label:f.months,width:q.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:c=>!!c.selectedOption}}})]})}),a.jsx(ie,{controller:v===!1,children:a.jsx(He,{text:f.scheduleMarkedAsCompleted})})]})}const nt=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=Xe(`${o}-01-01`).localeData().monthsShort();return n[p]=r,p}).reverse(),months:n}},ct=P.div`
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  width: 100%;
25
25
  height: 100%;
26
26
  min-height: 100vh;
27
27
  background-color: ${e=>e.theme.colors.grey4};
28
- `,ct=P.div`
28
+ `,dt=P.div`
29
29
  display: flex;
30
30
  z-index: 2;
31
31
  `,it=P.div`
@@ -34,4 +34,4 @@ import{aN as F,id as Q,gz as ke,ez as Ae,ie as Ie,a8 as Je,ig as Le,cB as we,cC
34
34
  `,rt=P.div`
35
35
  display: flex;
36
36
  justify-content: center;
37
- `,me="scheduleDetailsPage",ee="scheduleDetailsSection",te="scheduleDetailsListSection",ut=fe.getLocalizedStrings(),{common:A,jeSchedules:{scheduleDetails:ht}}=ut;function Ot({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,$]=D.useState(!1),q=F(l.updateStatus.fetchState),U=F(l.selectedJEScheduleTransaction?.status.code),W=F(l.deleteStatus.fetchState),[ae,N]=D.useState(!1),y=l.scheduleDetailsLocalData.prepaid_expenses,f=F(y.jeScheduleDetails.length),se=F(y.selectedDate),oe=F(y.selectedDayOfMonth),[R,J]=D.useState(!0),x=l.selectedJEScheduleTransaction?.vendor,h=l.selectedJEScheduleTransaction?.baseTransaction,s=l.selectedJEScheduleTransaction,E=Ye(n.controllers),j=Qe(n.controllerUserIds),G={onOkClick:()=>{$(!1),r()},onCancelClick:()=>{$(!1)}},d=c=>{const g=s?.scheduledJournalEntry[c];h!=null&&g!=null&&s!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:t,transaction:{...ze(h)},scheduleExpenseCategoryAndClass:{expenseCategory:s.jeDebit.account?.accountName??null,expenseClass:s.jeDebit.accountingClass?.className??null},journalEntryDetails:{...he(g)},vendorName:x!=null?x.name:A.strings.hyphen,controllerEmails:E,controllerUserIds:j}),w(c)},B=(c,g)=>{const T=s?.scheduledJournalEntry[g];h!=null&&T!=null&&s!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:s.jeDebit.account?.accountName??null,expenseClass:s.jeDebit.accountingClass?.className??null},journalEntryDetails:he(T),controllerEmails:E,controllerUserIds:j}),S(c)};D.useEffect(()=>{q==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(h!=null&&s!=null&&e.trackScheduleDetailsSaved(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),i===!0&&s?.jeScheduleTransactionKey!=null&&U==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(s.jeScheduleTransactionKey,{month:m.month,year:m.year}),r())},[U,l.selectedJEScheduleTransaction?.status.code,e,r,m,q,l.updateStatus,u,t,i,s,h,x,E,j]),D.useEffect(()=>{W==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[W,l.deleteStatus,r]);const H=ke(l.accountListNestedAccountHierarchy),K=Ae(l.classListNestedAccountHierarchy),Y=Ie(t),re=D.useRef(),M=Je({mode:"all",reValidateMode:"onChange",defaultValues:ce(l,H,K,Y,o.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ce(l,H,K,Y,o.entityAutoCompleteView)}),ne=M.watch("scheduleDetailsSection.vendor");D.useEffect(()=>{o.entityAutoCompleteView.fetchState==="Completed"&&re.current?.(Le(o.entityAutoCompleteView))},[o.entityAutoCompleteView.fetchState]);const De=(c,g)=>{b.onAutoCompleteInputChange?.(c,"vendor"),re.current=g},Ce=M.handleSubmit(()=>{I(l.selectedJEScheduleTransaction?.jeScheduleId)}),ye=async(c,g)=>{const T=g[ee].vendor;if(c.includes("vendor")){const de=T?.defaultOptions.map(V=>V.value);if(T?.selectedOption!=null&&de?.includes(T.selectedOption)!==!0){const V=o.entityAutoCompleteView.vendor.find(Oe=>Oe.id===T.selectedOption);V!=null&&M.setValue("scheduleDetailsSection.vendor.defaultOptions",[{label:V.name??A.strings.empty,value:V.id}])}}const Te=c.includes("amount");if(k(g,Te),c.includes("amount")){const de=c.split(".")[1],V=parseInt(de);N(!0),C(V,l.selectedJEScheduleTransaction?.jeScheduleId)}};D.useEffect(()=>{const c=M.watch((g,{name:T})=>{T!=null&&g!=null&&we(()=>ye(T,g))});return()=>{c.unsubscribe()}}),D.useEffect(()=>{(f!==y.jeScheduleDetails.length||se!==y.selectedDate||oe!==y.selectedDayOfMonth)&&ae===!0&&(M.resetField(te,{defaultValue:ce(l,H,K,Y,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 ue=(Me(M.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&y.jeScheduleDetails.length>0,ge=()=>{ue===!0?$(!0):(h!=null&&s!=null&&e.trackScheduleDetailsCanceled(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),r())},be=()=>{l.selectedJEScheduleTransaction!=null&&v({id:l.selectedJEScheduleTransaction?.baseTransaction.id,type:l.selectedJEScheduleTransaction?.baseTransaction.type})},ve=D.useCallback(()=>{J(!0)},[]),xe=D.useCallback(()=>{h!=null&&s!=null&&e.trackScheduleDetailsMarkedAsCompleted(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),p()},[e,s,p,t,h,x,E,j]),Ee=D.useCallback(c=>{h!=null&&s!=null&&e.trackScheduleDetailsDeleted(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),O(c)},[e,s,O,t,h,x,E,j]),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(dt,{children:[a.jsx(pt,{onNavigateBack:ge,onTransactionClick:be,title:je??A.strings.empty}),a.jsx(ct,{children:a.jsx(Ve,{...M,children:a.jsxs("form",{style:{width:"100%"},id:Se(me),onSubmit:Ce,children:[a.jsx(mt,{vendorLoadOptions:De,vendorField:ne,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:o,scheduleDetailsView:l,allAccountOptions:H,allClassOptions:K,allMonthOptions:Y,allowCreateSchedule:R,onEditAmount:C,onDelete:Ee,onJELinkClick:d,onViewLinkedJE:B,onMarkAsComplete:xe,onCreateSchedule:ve}),le===!0?a.jsx(Pe,{titleComponent:a.jsx(Fe,{children:A.confirmationPopup.discardTitle}),descriptionComponent:a.jsx($e,{children:A.confirmationPopup.discardDescription}),primaryButtonText:A.confirmationPopup.discard,secondaryButtonText:A.confirmationPopup.cancel,proceedButtonVariant:"danger",action:G}):null,ue===!0?a.jsx(_e,{formId:Se(me),primaryBtn:{label:A.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:A.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{$(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function pt({title:e,onNavigateBack:n,onTransactionClick:m}){return a.jsx(Be,{title:e,tooltipTextOnLaunch:ht.showTransactionTooltip,onBackClick:n,onLaunchClick:m,style:{zIndex:3}})}function mt({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(it,{children:[a.jsx(rt,{children:a.jsx(Ze,{errors:S,vendorLoadOptions:n,vendorField:e,vendorFieldName:_(ee,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,transaction:t.selectedJEScheduleTransaction.baseTransaction,vendor:t.selectedJEScheduleTransaction.vendor})}),a.jsx(ot,{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(ie,{controller:p===!0,children:a.jsx(et,{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 Se=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:Ne(t,p??o)},postingDate:{type:v,dayOfMonth:k}},[te]:O}};export{Ot as default};
37
+ `,me="scheduleDetailsPage",ee="scheduleDetailsSection",te="scheduleDetailsListSection",ut=fe.getLocalizedStrings(),{common:A,jeSchedules:{scheduleDetails:ht}}=ut;function Ot({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),z=_(l.selectedJEScheduleTransaction?.status.code),W=_(l.deleteStatus.fetchState),[ae,B]=D.useState(!1),y=l.scheduleDetailsLocalData.prepaid_expenses,f=_(y.jeScheduleDetails.length),se=_(y.selectedDate),oe=_(y.selectedDayOfMonth),[R,J]=D.useState(!0),x=l.selectedJEScheduleTransaction?.vendor,h=l.selectedJEScheduleTransaction?.baseTransaction,s=l.selectedJEScheduleTransaction,E=Ye(n.controllers),j=Qe(n.controllerUserIds),K={onOkClick:()=>{F(!1),r()},onCancelClick:()=>{F(!1)}},c=d=>{const g=s?.scheduledJournalEntry[d];h!=null&&g!=null&&s!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:t,transaction:{...qe(h)},scheduleExpenseCategoryAndClass:{expenseCategory:s.jeDebit.account?.accountName??null,expenseClass:s.jeDebit.accountingClass?.className??null},journalEntryDetails:{...he(g)},vendorName:x!=null?x.name:A.strings.hyphen,controllerEmails:E,controllerUserIds:j}),w(d)},N=(d,g)=>{const T=s?.scheduledJournalEntry[g];h!=null&&T!=null&&s!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:s.jeDebit.account?.accountName??null,expenseClass:s.jeDebit.accountingClass?.className??null},journalEntryDetails:he(T),controllerEmails:E,controllerUserIds:j}),S(d)};D.useEffect(()=>{U==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(h!=null&&s!=null&&e.trackScheduleDetailsSaved(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),i===!0&&s?.jeScheduleTransactionKey!=null&&z==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(s.jeScheduleTransactionKey,{month:m.month,year:m.year}),r())},[z,l.selectedJEScheduleTransaction?.status.code,e,r,m,U,l.updateStatus,u,t,i,s,h,x,E,j]),D.useEffect(()=>{W==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[W,l.deleteStatus,r]);const G=ke(l.accountListNestedAccountHierarchy),H=Ae(l.classListNestedAccountHierarchy),Y=Ie(t),re=D.useRef(),M=Je({mode:"all",reValidateMode:"onChange",defaultValues:de(l,G,H,Y,o.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:de(l,G,H,Y,o.entityAutoCompleteView)}),ne=M.watch("scheduleDetailsSection.vendor");D.useEffect(()=>{o.entityAutoCompleteView.fetchState==="Completed"&&re.current?.(Le(o.entityAutoCompleteView))},[o.entityAutoCompleteView.fetchState]);const De=(d,g)=>{b.onAutoCompleteInputChange?.(d,"vendor"),re.current=g},Ce=M.handleSubmit(()=>{I(l.selectedJEScheduleTransaction?.jeScheduleId)}),ye=async(d,g)=>{const T=g[ee].vendor;if(d.includes("vendor")){const ce=T?.defaultOptions.map(V=>V.value);if(T?.selectedOption!=null&&ce?.includes(T.selectedOption)!==!0){const V=o.entityAutoCompleteView.vendor.find(Oe=>Oe.id===T.selectedOption);V!=null&&M.setValue("scheduleDetailsSection.vendor.defaultOptions",[{label:V.name??A.strings.empty,value:V.id}])}}const Te=d.includes("amount");if(k(g,Te),d.includes("amount")){const ce=d.split(".")[1],V=parseInt(ce);B(!0),C(V,l.selectedJEScheduleTransaction?.jeScheduleId)}};D.useEffect(()=>{const d=M.watch((g,{name:T})=>{T!=null&&g!=null&&we(()=>ye(T,g))});return()=>{d.unsubscribe()}}),D.useEffect(()=>{(f!==y.jeScheduleDetails.length||se!==y.selectedDate||oe!==y.selectedDayOfMonth)&&ae===!0&&(M.resetField(te,{defaultValue:de(l,G,H,Y,o.entityAutoCompleteView)[te],keepDirty:!1}),B(!1))},[y.jeScheduleDetails.length,y.selectedDate,y.selectedDayOfMonth]),D.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&J(!1)},[l.selectedJEScheduleTransaction?.status.code]);const ue=(Me(M.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&y.jeScheduleDetails.length>0,ge=()=>{ue===!0?F(!0):(h!=null&&s!=null&&e.trackScheduleDetailsCanceled(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),r())},be=()=>{l.selectedJEScheduleTransaction!=null&&v({id:l.selectedJEScheduleTransaction?.baseTransaction.id,type:l.selectedJEScheduleTransaction?.baseTransaction.type})},ve=D.useCallback(()=>{J(!0)},[]),xe=D.useCallback(()=>{h!=null&&s!=null&&e.trackScheduleDetailsMarkedAsCompleted(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),p()},[e,s,p,t,h,x,E,j]),Ee=D.useCallback(d=>{h!=null&&s!=null&&e.trackScheduleDetailsDeleted(Q({jeScheduleTransaction:s,scheduleTab:t,transaction:h,vendor:x,controllerEmails:E,controllerUserIds:j})),O(d)},[e,s,O,t,h,x,E,j]),je=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(d=>d.error??[]).filter(d=>!!d)??[])?.includes("vendor_deleted")===!0?ne?.defaultOptions.find(d=>d.value===ne?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name;return a.jsxs(ct,{children:[a.jsx(pt,{onNavigateBack:ge,onTransactionClick:be,title:je??A.strings.empty}),a.jsx(dt,{children:a.jsx(Ve,{...M,children:a.jsxs("form",{style:{width:"100%"},id:Se(me),onSubmit:Ce,children:[a.jsx(mt,{vendorLoadOptions:De,vendorField:ne,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:o,scheduleDetailsView:l,allAccountOptions:G,allClassOptions:H,allMonthOptions:Y,allowCreateSchedule:R,onEditAmount:C,onDelete:Ee,onJELinkClick:c,onViewLinkedJE:N,onMarkAsComplete:xe,onCreateSchedule:ve}),le===!0?a.jsx(Pe,{titleComponent:a.jsx(_e,{children:A.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(Fe,{children:A.confirmationPopup.discardDescription}),primaryButtonText:A.confirmationPopup.discard,secondaryButtonText:A.confirmationPopup.cancel,proceedButtonVariant:"danger",action:K}):null,ue===!0?a.jsx($e,{formId:Se(me),primaryBtn:{label:A.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:A.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{F(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function pt({title:e,onNavigateBack:n,onTransactionClick:m}){return a.jsx(Ne,{title:e,tooltipTextOnLaunch:ht.showTransactionTooltip,onBackClick:n,onLaunchClick:m,style:{zIndex:3}})}function mt({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(it,{children:[a.jsx(rt,{children:a.jsx(Ze,{errors:S,vendorLoadOptions:n,vendorField:e,vendorFieldName:$(ee,"vendor"),vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:l,transaction:t.selectedJEScheduleTransaction.baseTransaction,vendor:t.selectedJEScheduleTransaction.vendor})}),a.jsx(ot,{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(ie,{controller:p===!0,children:a.jsx(et,{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 Se=e=>`${e}_form`,de=(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:Be(t,p??o)},postingDate:{type:v,dayOfMonth:k}},[te]:O}};export{Ot as default};
@@ -1,14 +1,14 @@
1
- import{Q as F,e as K,V as t,ip as ie,F as R,iq as oe,B as le,ir as xe,dR as fe,fb as we,b as A,is as ye,io as be,o as i,y as b,p as j,d as $e,a9 as re,dN as je,cm as Se,co as ke,cO as Z,cW as ee,cU as ve,it as Q,iu as De,b1 as Ce,iv as Me,cq as ze,iw as Le,u as h,ak as L,b7 as Oe,cn as Ee,an as pe,cX as Ae,a$ as ne,d6 as Fe,aO as Ie,ix as I,ga as Ve,aL as Te,iy as Be,aS as _,cY as Je,bf as Pe}from"./index-XNBiWrYj.js";import{n as l,b as J}from"./mui-bYXq4XMS.js";import{a as C}from"./core-3dlyNYRL.js";import{bj as G,g0 as Re}from"./zeni-epic-state-LPACxnXP.js";const N=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:ae}=R.getLocalizedStrings();function Ne({defaultValue:e,name:o,placeholder:a,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(x,o),g=F(),s=K();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(We,{placeholder:a,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(se,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(o,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...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(Fe,{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:s.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(Ye,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${o}.dayOfMonth`,$),S(`${o}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(se,{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:ae.footer.save,onClick:v,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:ae.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:o,isDisabled:a}){return t.jsxs(_e,{isDisabled:a!=null,children:[o?.type==null?t.jsx(Qe,{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 Ye({defaultValue:e,onClick:o}){return t.jsxs(Ke,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(a=>{const r=a+1;return t.jsx(q,{isSelected:r===e,onClick:()=>o(Re(r)),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(a=>{const r=a+8;return t.jsx(q,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(a=>{const r=a+15;return t.jsx(q,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(a=>{const r=a+22;return t.jsx(q,{isSelected:r===e,onClick:()=>o(r),children:r},r)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=l.div`
1
+ import{Q as I,d as K,V as t,iq as ie,F as R,ir as le,B as oe,is as xe,dS as fe,fc as we,b as A,it as ye,ip as be,o as i,y as b,p as j,c as $e,a9 as re,dO as je,cm as Se,co as ke,cO as Z,cW as ee,cU as ve,iu as Q,iv as De,b1 as Ce,iw as Me,cq as ze,ix as Le,u as h,ak as L,b7 as Oe,cn as Ee,an as pe,cX as Ae,a$ as ne,d7 as Ie,aO as Ve,iy as V,gb as Fe,aL as Te,iz as Be,aS as _,cY as Je,bf as Pe}from"./index-BS0RW8dr.js";import{n as o,b as J}from"./mui-bYXq4XMS.js";import{a as C}from"./core-3dlyNYRL.js";import{bj as G,g0 as Re}from"./zeni-epic-state-LPACxnXP.js";const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(x,l),g=I(),a=K();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...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(Ie,{name:N(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(Ye,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...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(Ve,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(_e,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Qe,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function Ye({defaultValue:e,onClick:l}){return t.jsxs(Ke,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(q,{isSelected:r===e,onClick:()=>l(Re(r)),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
2
2
  position: relative;
3
- `,_e=l.div`
3
+ `,_e=o.div`
4
4
  display: flex;
5
5
  padding-right: ${i.sp3};
6
- `,se=l.div`
6
+ `,ae=o.div`
7
7
  display: flex;
8
8
  flex-direction: column;
9
9
  background-color: ${e=>e.isSelected===!0?e.theme.colors.background:e.theme.colors.grey5};
10
10
  color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
11
- `,Ge=l.div`
11
+ `,Ge=o.div`
12
12
  position: absolute;
13
13
  z-index: 9;
14
14
  cursor: pointer;
@@ -25,17 +25,17 @@ import{Q as F,e as K,V as t,ip as ie,F as R,iq as oe,B as le,ir as xe,dR as fe,f
25
25
  display: flex;
26
26
  flex-direction: column;
27
27
  width: 270px;
28
- `,Qe=l(L)`
28
+ `,Qe=o(L)`
29
29
  color: ${e=>e.theme.colors.grey1};
30
30
  margin-right: ${i.sp1};
31
- `,W=l(L)`
31
+ `,W=o(L)`
32
32
  color: ${e=>e.theme.colors.primary};
33
- `,Ue=l(L)`
33
+ `,Ue=o(L)`
34
34
  color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
35
- `,de=l.div`
35
+ `,de=o.div`
36
36
  display: flex;
37
37
  gap: ${i.sp1};
38
- `,Xe=l.div`
38
+ `,Xe=o.div`
39
39
  display: flex;
40
40
  align-items: center;
41
41
  justify-content: flex-end;
@@ -47,15 +47,15 @@ import{Q as F,e as K,V as t,ip as ie,F as R,iq as oe,B as le,ir as xe,dR as fe,f
47
47
  &:hover {
48
48
  background-color: ${e=>e.isDisabled?e.theme.colors.grey5:e.theme.colors.background};
49
49
  }
50
- `,Ke=l.div`
50
+ `,Ke=o.div`
51
51
  display: flex;
52
52
  flex-direction: column;
53
53
  width: fit-content;
54
54
  margin: ${i.sp0} ${i.sp3};
55
55
  color: ${e=>e.theme.colors.hero};
56
- `,Y=l.div`
56
+ `,Y=o.div`
57
57
  display: flex;
58
- `,q=l(L)`
58
+ `,q=o(L)`
59
59
  padding: ${i.sp1} ${i.sp2};
60
60
  max-width: ${i.sp5};
61
61
  min-width: 18px;
@@ -66,7 +66,7 @@ import{Q as F,e as K,V as t,ip as ie,F as R,iq as oe,B as le,ir as xe,dR as fe,f
66
66
  color: ${e.theme.colors.background};
67
67
  background-color: ${e.theme.colors.primary};
68
68
  `:null}
69
- `,Ze=l.div`
69
+ `,Ze=o.div`
70
70
  display: flex;
71
71
  align-items: center;
72
72
  background-color: ${e=>e.isError?j.importantLight:"transparent"};
@@ -81,15 +81,15 @@ import{Q as F,e as K,V as t,ip as ie,F as R,iq as oe,B as le,ir as xe,dR as fe,f
81
81
  border-color: ${e=>e.isError?j.important:e.theme.colors.primary};
82
82
  }
83
83
  }
84
- `,et=l.div`
84
+ `,et=o.div`
85
85
  width: 100%;
86
86
  margin-top: ${i.sp1};
87
87
  height: 1px;
88
- `,tt=l.div`
88
+ `,tt=o.div`
89
89
  width: 100%;
90
90
  height: 1px;
91
91
  background-color: ${e=>e.theme.colors.grey3};
92
- `,z={height:new b(h[6],h[6]),controlHeight:new b(h[6],h[6]),paddingTopBottom:new b(h[2],h[2]),marginRight:new b(h[2],h[2]),labelMarginLeft:new b(h[3],h[4]),labelMarginRight:new b(h[3],h[4]),labelMarginTop:new b(h[2],h[2])};function Xt({label:e,dayOfMonthField:o,isDisabled:a,style:r}){const p=F(),{formState:{errors:n}}=Z(),d=ee(n,o.name);return t.jsxs(it,{size:p,style:r,isDisabled:a!=null,isError:d,children:[t.jsx(ve,{isDisabled:a,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(ot,{labelWidth:e.width,children:t.jsx(Ne,{...o,isDisabled:a,style:{display:"flex",flexGrow:1,width:"100%",height:z.controlHeight.value(p)}})})]})}const it=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 Xt({label:e,dayOfMonthField:l,isDisabled:s,style:r}){const p=I(),{formState:{errors:n}}=Z(),d=ee(n,l.name);return t.jsxs(it,{size:p,style:r,isDisabled:s!=null,isError:d,children:[t.jsx(ve,{isDisabled:s,label:e.label,htmlFor:l.name,style:{marginLeft:z.labelMarginLeft.value(p),marginRight:z.labelMarginRight.value(p),marginTop:z.labelMarginTop.value(p),width:e.width??"auto"}}),t.jsx(lt,{labelWidth:e.width,children:t.jsx(Ne,{...l,isDisabled:s,style:{display:"flex",flexGrow:1,width:"100%",height:z.controlHeight.value(p)}})})]})}const it=o.div`
93
93
  display: flex;
94
94
  flex-direction: row;
95
95
  align-items: flex-start;
@@ -128,48 +128,48 @@ import{Q as F,e as K,V as t,ip as ie,F as R,iq as oe,B as le,ir as xe,dR as fe,f
128
128
  background-color: ${e=>e.isDisabled===!0?e.theme.colors.grey5:e.isError?j.importantLight:e.theme.colors.background};
129
129
  }
130
130
  }
131
- `,ot=l.div`
131
+ `,lt=o.div`
132
132
  display: flex;
133
133
  flex-direction: column;
134
134
  width: ${e=>e.labelWidth!=null?`calc(100% - ${e.labelWidth}px)`:"auto"};
135
135
  align-items: flex-end;
136
136
  flex-grow: 1;
137
- `,lt=l.div`
137
+ `,ot=o.div`
138
138
  display: flex;
139
139
  width: 100%;
140
140
  justify-content: space-between;
141
- `,rt=l(Oe)`
141
+ `,rt=o(Oe)`
142
142
  color: ${e=>e.theme.colors.primary};
143
143
  margin: ${i.sp3} ${i.sp1};
144
- `,ce=l.div`
144
+ `,ce=o.div`
145
145
  margin-bottom: ${i.sp2};
146
- `,{common:V,jeSchedules:{scheduleDetails:D}}=R.getLocalizedStrings();function Kt({isUpdating:e,status:o,jeScheduleId:a,allowCreateSchedule:r,onDelete:p,onMarkAsComplete:n,onCreateSchedule:d}){const[c,y]=C.useState(!1),f={onOkClick:()=>{p()},onCancelClick:()=>{y(!1)}},u=()=>null,m=[];return(o==="new"||o=="draft")&&m.push({label:D.scheduleDetailsSection.markAsCompleted,value:D.scheduleDetailsSection.markAsCompleted}),a!=null&&o!=="draft"&&(o==="marked_as_completed"?r===!1&&m.push({label:D.scheduleDetailsSection.createSchedule,value:D.scheduleDetailsSection.createSchedule}):m.push({label:V.delete,value:V.delete})),t.jsxs(lt,{children:[t.jsx(rt,{children:D.scheduleDetailsSection.header}),t.jsx(re,{controller:m.length>0,children:t.jsx(je,{moreIconType:"plain",options:m,customStyleConfig:{valueContainer:()=>({".more-icon":{width:i.sp3,height:i.sp3}})},menuPlacement:"top",onOptionSelection:x=>{x===V.delete&&y(!0),x===D.scheduleDetailsSection.markAsCompleted&&n(),x===D.scheduleDetailsSection.createSchedule&&d()},valueToIcon:u})}),t.jsx(re,{controller:c===!0,children:t.jsx(Se,{titleComponent:t.jsx(ke,{children:D.scheduleDetailsSection.confirmDeletionTitle}),descriptionComponent:t.jsx(nt,{}),action:f,primaryButtonText:V.yes,proceedButtonVariant:"danger",secondaryButtonText:V.no,isLoading:e})})]})}function nt(){return t.jsxs(Ee,{children:[t.jsx(ce,{children:D.scheduleDetailsSection.confirmDeletionDescription}),t.jsx(ce,{children:D.scheduleDetailsSection.confirmDeletionDescriptionNote})]})}const P={containerPadding:new b(h[3],h[8]),containerMarginTop:new b(h[3],h[4]),containerMarginBottom:new b(h[4],h[5]),transactionLabelMarginTop:new b(h[2],h[0]),transactionTitleContainerWidth:new b(187,480)},U={transactionLabel:new le("standardMedium","largeMedium"),transactionTitle:new le("h6SemiBold","h5SemiBold")},at=l.div``,ue=l.div`
146
+ `,{common:F,jeSchedules:{scheduleDetails:D}}=R.getLocalizedStrings();function Kt({isUpdating:e,status:l,jeScheduleId:s,allowCreateSchedule:r,onDelete:p,onMarkAsComplete:n,onCreateSchedule:d}){const[c,y]=C.useState(!1),f={onOkClick:()=>{p()},onCancelClick:()=>{y(!1)}},u=()=>null,m=[];return(l==="new"||l=="draft")&&m.push({label:D.scheduleDetailsSection.markAsCompleted,value:D.scheduleDetailsSection.markAsCompleted}),s!=null&&l!=="draft"&&(l==="marked_as_completed"?r===!1&&m.push({label:D.scheduleDetailsSection.createSchedule,value:D.scheduleDetailsSection.createSchedule}):m.push({label:F.delete,value:F.delete})),t.jsxs(ot,{children:[t.jsx(rt,{children:D.scheduleDetailsSection.header}),t.jsx(re,{controller:m.length>0,children:t.jsx(je,{moreIconType:"plain",options:m,customStyleConfig:{valueContainer:()=>({".more-icon":{width:i.sp3,height:i.sp3}})},menuPlacement:"top",onOptionSelection:x=>{x===F.delete&&y(!0),x===D.scheduleDetailsSection.markAsCompleted&&n(),x===D.scheduleDetailsSection.createSchedule&&d()},valueToIcon:u})}),t.jsx(re,{controller:c===!0,children:t.jsx(Se,{titleComponent:t.jsx(ke,{children:D.scheduleDetailsSection.confirmDeletionTitle}),descriptionComponent:t.jsx(nt,{}),action:f,primaryButtonText:F.yes,proceedButtonVariant:"danger",secondaryButtonText:F.no,isLoading:e})})]})}function nt(){return t.jsxs(Ee,{children:[t.jsx(ce,{children:D.scheduleDetailsSection.confirmDeletionDescription}),t.jsx(ce,{children:D.scheduleDetailsSection.confirmDeletionDescriptionNote})]})}const P={containerPadding:new b(h[3],h[8]),containerMarginTop:new b(h[3],h[4]),containerMarginBottom:new b(h[4],h[5]),transactionLabelMarginTop:new b(h[2],h[0]),transactionTitleContainerWidth:new b(187,480)},U={transactionLabel:new oe("standardMedium","largeMedium"),transactionTitle:new oe("h6SemiBold","h5SemiBold")},st=o.div``,ue=o.div`
147
147
  margin: ${i.sp0} ${i.sp3} ${i.sp0} ${i.sp0};
148
148
  max-width: ${e=>P.transactionTitleContainerWidth.valuePx(e.windowSize)};
149
- `,st=l($e)`
149
+ `,at=o($e)`
150
150
  color: ${j.neutralGrey5Light};
151
151
  margin-top: ${e=>P.transactionLabelMarginTop.valuePx(e.windowSize)};
152
152
  ${e=>`${U.transactionLabel.style(e.windowSize)}`};
153
153
  background-color: ${e=>e.labelColor.toString()};
154
154
  border-radius: ${i.sp1};
155
155
  padding: ${i.sp0} ${i.sp2} ${i.sp0} ${i.sp2};
156
- `,dt=l.div`
156
+ `,dt=o.div`
157
157
  display: flex;
158
158
  flex-direction: column;
159
- `,ct=l.div`
159
+ `,ct=o.div`
160
160
  display: flex;
161
161
  flex: 0 0 auto;
162
162
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
163
163
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
164
164
  gap: ${i.sp3};
165
- `,ut=l.div`
165
+ `,ut=o.div`
166
166
  display: flex;
167
167
  width: 100%;
168
168
  flex-direction: column;
169
169
  background-color: ${e=>e.theme.colors.grey5};
170
170
  box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
171
171
  padding: ${e=>`${i.sp0} ${P.containerPadding.valuePx(e.windowSize)}`};
172
- `,ht=l.div`
172
+ `,ht=o.div`
173
173
  display: flex;
174
174
  flex-direction: row;
175
175
  width: 100%;
@@ -179,31 +179,31 @@ import{Q as F,e as K,V as t,ip as ie,F as R,iq as oe,B as le,ir as xe,dR as fe,f
179
179
  justify-content: space-between;
180
180
  margin-top: ${e=>P.containerMarginTop.valuePx(e.windowSize)};
181
181
  margin-bottom: ${e=>P.containerMarginBottom.valuePx(e.windowSize)};
182
- `,pt=l(L)`
182
+ `,pt=o(L)`
183
183
  color: ${e=>e.theme.colors.hero};
184
184
  height: ${i.sp4};
185
- `,mt=l(L)`
185
+ `,mt=o(L)`
186
186
  color: ${e=>e.theme.colors.primary};
187
187
  word-break: break-all;
188
188
  text-align: right;
189
- `,gt=l.div`
189
+ `,gt=o.div`
190
190
  display: flex;
191
191
  flex-direction: row;
192
192
  justify-content: space-between;
193
193
  gap: ${i.sp3};
194
- `,xt=l.div`
194
+ `,xt=o.div`
195
195
  margin-top: ${i.sp3};
196
196
  width: 100%;
197
- `,ft=l.div`
197
+ `,ft=o.div`
198
198
  display: flex;
199
199
  flex-direction: column;
200
200
  margin: ${i.sp3} ${i.sp0} ${i.sp6} ${i.sp0};
201
- `,wt=l.div`
201
+ `,wt=o.div`
202
202
  display: flex;
203
203
  width: 100%;
204
204
  height: 1px;
205
205
  background-color: ${e=>e.theme.colors.grey3};
206
- `,yt=({title:e,value:o})=>t.jsxs(gt,{children:[t.jsx(pt,{children:e}),t.jsx(mt,{children:o||me})]}),{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:E},scheduleAccruedDetails:{placeholders:{selectVendor:bt}}},dateFormat:{visual:{MMMDCommaYYYYformat:$t}},common:{strings:{hyphen:me}}}=R.getLocalizedStrings();function Zt({transaction:e,vendorField:o,vendorLoadOptions:a,errors:r,vendorFieldName:p,vendor:n}){const d=F(),c=K(),[y,f]=C.useState(!1),u=jt(e),m=r?.includes("vendor_deleted"),[x,S]=C.useState(r?.includes("vendor_deleted")),v=o?.defaultOptions.find(w=>w.value===o?.selectedOption);return t.jsxs(ut,{windowSize:d,children:[t.jsxs(ht,{windowSize:d,children:[t.jsxs(ct,{windowSize:d,children:[t.jsx(t.Fragment,{children:m===!0?t.jsx(t.Fragment,{children:x===!0?t.jsx(ie,{text:E.addVendor,handleClick:()=>{S(!1),f(!0)}}):t.jsx(t.Fragment,{children:y===!1?t.jsx(at,{onClick:()=>f(!0),children:v!=null?t.jsx(ue,{windowSize:d,children:t.jsx(oe,{itemTextStyle:{...U.transactionTitle.styleObject(d),lineHeight:"unset",color:c.colors.primary,cursor:"default"},text:v.label})}):t.jsx(ie,{text:E.addVendor,handleClick:()=>{S(!1),f(!0)}})}):t.jsx(xe,{autoFocus:!0,menuIsOpen:y,name:p??"",placeholder:bt,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:a})})}):t.jsx(ue,{windowSize:d,children:t.jsx(oe,{itemTextStyle:{...U.transactionTitle.styleObject(d),lineHeight:"unset",color:c.colors.primary},text:n.name})})}),t.jsx(st,{windowSize:d,labelColor:fe(e.type,c),children:e.typeName??e.type})]}),t.jsx(dt,{children:t.jsx(we,{amount:e.amount,integerStyles:A.h6SemiBold.cssObject,decimalStyles:A.standardMedium.cssObject})})]}),t.jsx(wt,{}),t.jsx(ft,{children:u.map((w,k)=>t.jsx(xt,{children:t.jsx(yt,{title:w.title,value:w.value})},k))})]})}function jt(e){const o=[];return o.push({title:E.transactionDate,value:e.date.format($t)}),o.push({title:E.category,value:e.account.accountName}),o.push({title:E.class,value:e.classBase?.className??me}),o.push({title:E.memo,value:e.memo}),o}const he=(e,o)=>`${e}.${o}`,St={webkitLineClamp:new b(2,2,1,1,1)},kt=R.getLocalizedStrings(),{dateFormat:vt,jeSchedules:{scheduleDetails:X}}=kt,Dt=({sectionId:e,rowId:o,isDisabled:a,hideMemoField:r,minMaxValuesForAmount:p,isAmountEditable:n,scheduleJournalEntry:d,localData:c,onJELinkClick:y,onViewLinkedJE:f})=>{const u=F(),m=K(),[x,S]=C.useState(!1),{formState:{errors:v}}=Z(),w=C.useCallback(()=>{y(o)},[y,o]),k=d?.jeScheduleId!=null&&d.status.code==="unknown",g=n===!1?"disabled":a,s=d?.jeScheduleId!=null&&d.status.code==="posted"&&c.jeLink.transactionDetailID!=null,$=()=>{s&&c.jeLink.transactionDetailID!=null&&f(c.jeLink.transactionDetailID,o)},H=he(e,"amount"),O=ee(v,H);return t.jsxs(zt,{windowSize:u,isRowEditable:n,isClickable:s||n,onClick:$,children:[r?null:t.jsx(T,{windowSize:u,widthSize:I[0].width,children:t.jsx(B,{windowSize:u,isClickable:s||n,title:c.memo,children:c.memo})}),t.jsx(T,{windowSize:u,widthSize:I[1].width,children:t.jsx(B,{windowSize:u,isClickable:s||n,children:c.postingDate.format(vt.visual.MMMDCommaYYYYformat)})}),t.jsx(T,{windowSize:u,widthSize:I[2].width,children:t.jsx(pe,{onClickAway:()=>S(!1),children:t.jsx(B,{windowSize:u,onClick:()=>{(s||n)&&S(!0)},isClickable:s||n,children:t.jsx(Ve,{style:{height:i.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:i.sp3,color:O===!0?j.important:x===!1?m.colors.hero:m.colors.primary},type:"number",autoFocus:!1,focus:x,name:he(e,"amount"),placeholder:X.sequenceSchedule.sequenceData.amountPlaceholder,autoComplete:"new-password",defaultValue:c.amount.amount,returnValueType:"floatValue",allowEmptyFormatting:!0,hoverBgColor:a==null?m.colors.background:m.colors.grey5,bgColor:O===!0?j.importantLight:x===!1?m.colors.grey5:m.colors.background,prefix:c.amount.currencySymbol,decimalScale:2,allowNegative:!0,isNumericString:!1,isFieldError:O,registerOptions:{required:g==null,min:p.min,max:p.max},isDisabled:g,thousandsGroupStyle:"thousand",thousandSeparator:!0})})})}),t.jsx(T,{windowSize:u,widthSize:I[3].width,children:t.jsx(B,{windowSize:u,isClickable:s||n,children:Te("0,0.00",c.runningBalance)})}),t.jsx(T,{windowSize:u,widthSize:I[4].width,children:t.jsx(B,{windowSize:u,isLastItem:!0,isClickable:s||n,children:t.jsxs(Ft,{children:[t.jsx(Be,{textColor:Mt(c.postingStatus,m),onClick:s||n?$:void 0,text:X.sequenceSchedule.postingStatus[c.postingStatus]}),k?t.jsx(At,{onClick:s?$:w,children:t.jsx(Ct,{jeLink:c.jeLink,isJElinkAllowed:k})}):null]})})})]})};function Ct({jeLink:e,isJElinkAllowed:o}){const[a,r]=C.useState(!1);return e.type==="linked"&&o?t.jsx(t.Fragment,{}):o&&(e.type==="unknown"||e.type==="recommended")?t.jsxs(Lt,{onMouseOver:()=>r(!0),onMouseLeave:()=>r(!1),children:[t.jsx(It,{}),a?t.jsxs(Ot,{children:[e.type==="recommended"?t.jsx(Vt,{}):null,t.jsx(Et,{children:X.linkJE.linkJE})]}):null]}):null}const Mt=(e,o)=>{switch(e){case"pending":case"canceled":case"recorded":return new _(o.colors.grey1);case"posted":return new _(j.success);case"unknown":return new _(j.alert)}},zt=l.div`
206
+ `,yt=({title:e,value:l})=>t.jsxs(gt,{children:[t.jsx(pt,{children:e}),t.jsx(mt,{children:l||me})]}),{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:E},scheduleAccruedDetails:{placeholders:{selectVendor:bt}}},dateFormat:{visual:{MMMDCommaYYYYformat:$t}},common:{strings:{hyphen:me}}}=R.getLocalizedStrings();function Zt({transaction:e,vendorField:l,vendorLoadOptions:s,errors:r,vendorFieldName:p,vendor:n}){const d=I(),c=K(),[y,f]=C.useState(!1),u=jt(e),m=r?.includes("vendor_deleted"),[x,S]=C.useState(r?.includes("vendor_deleted")),v=l?.defaultOptions.find(w=>w.value===l?.selectedOption);return t.jsxs(ut,{windowSize:d,children:[t.jsxs(ht,{windowSize:d,children:[t.jsxs(ct,{windowSize:d,children:[t.jsx(t.Fragment,{children:m===!0?t.jsx(t.Fragment,{children:x===!0?t.jsx(ie,{text:E.addVendor,handleClick:()=>{S(!1),f(!0)}}):t.jsx(t.Fragment,{children:y===!1?t.jsx(st,{onClick:()=>f(!0),children:v!=null?t.jsx(ue,{windowSize:d,children:t.jsx(le,{itemTextStyle:{...U.transactionTitle.styleObject(d),lineHeight:"unset",color:c.colors.primary,cursor:"default"},text:v.label})}):t.jsx(ie,{text:E.addVendor,handleClick:()=>{S(!1),f(!0)}})}):t.jsx(xe,{autoFocus:!0,menuIsOpen:y,name:p??"",placeholder:bt,valueToId:w=>w,defaultValue:{selectedOption:l?.selectedOption,defaultOptions:l?.defaultOptions??[]},onMenuClose:()=>f(!1),customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"})},style:{width:250},registerOptions:{required:!0,validate:w=>!!w.selectedOption},loadOptions:s})})}):t.jsx(ue,{windowSize:d,children:t.jsx(le,{itemTextStyle:{...U.transactionTitle.styleObject(d),lineHeight:"unset",color:c.colors.primary},text:n.name})})}),t.jsx(at,{windowSize:d,labelColor:fe(e.type,c),children:e.typeName??e.type})]}),t.jsx(dt,{children:t.jsx(we,{amount:e.amount,integerStyles:A.h6SemiBold.cssObject,decimalStyles:A.standardMedium.cssObject})})]}),t.jsx(wt,{}),t.jsx(ft,{children:u.map((w,k)=>t.jsx(xt,{children:t.jsx(yt,{title:w.title,value:w.value})},k))})]})}function jt(e){const l=[];return l.push({title:E.transactionDate,value:e.date.format($t)}),l.push({title:E.category,value:e.account.accountName}),l.push({title:E.class,value:e.classBase?.className??me}),l.push({title:E.memo,value:e.memo}),l}const he=(e,l)=>`${e}.${l}`,St={webkitLineClamp:new b(2,2,1,1,1)},kt=R.getLocalizedStrings(),{dateFormat:vt,jeSchedules:{scheduleDetails:X}}=kt,Dt=({sectionId:e,rowId:l,isDisabled:s,hideMemoField:r,minMaxValuesForAmount:p,isAmountEditable:n,scheduleJournalEntry:d,localData:c,onJELinkClick:y,onViewLinkedJE:f})=>{const u=I(),m=K(),[x,S]=C.useState(!1),{formState:{errors:v}}=Z(),w=C.useCallback(()=>{y(l)},[y,l]),k=d?.jeScheduleId!=null&&d.status.code==="unknown",g=n===!1?"disabled":s,a=d?.jeScheduleId!=null&&d.status.code==="posted"&&c.jeLink.transactionDetailID!=null,$=()=>{a&&c.jeLink.transactionDetailID!=null&&f(c.jeLink.transactionDetailID,l)},H=he(e,"amount"),O=ee(v,H);return t.jsxs(zt,{windowSize:u,isRowEditable:n,isClickable:a||n,onClick:$,children:[r?null:t.jsx(T,{windowSize:u,widthSize:V[0].width,children:t.jsx(B,{windowSize:u,isClickable:a||n,title:c.memo,children:c.memo})}),t.jsx(T,{windowSize:u,widthSize:V[1].width,children:t.jsx(B,{windowSize:u,isClickable:a||n,children:c.postingDate.format(vt.visual.MMMDCommaYYYYformat)})}),t.jsx(T,{windowSize:u,widthSize:V[2].width,children:t.jsx(pe,{onClickAway:()=>S(!1),children:t.jsx(B,{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:O===!0?j.important:x===!1?m.colors.hero:m.colors.primary},type:"number",autoFocus:!1,focus:x,name:he(e,"amount"),placeholder:X.sequenceSchedule.sequenceData.amountPlaceholder,autoComplete:"new-password",defaultValue:c.amount.amount,returnValueType:"floatValue",allowEmptyFormatting:!0,hoverBgColor:s==null?m.colors.background:m.colors.grey5,bgColor:O===!0?j.importantLight:x===!1?m.colors.grey5:m.colors.background,prefix:c.amount.currencySymbol,decimalScale:2,allowNegative:!0,isNumericString:!1,isFieldError:O,registerOptions:{required:g==null,min:p.min,max:p.max},isDisabled:g,thousandsGroupStyle:"thousand",thousandSeparator:!0})})})}),t.jsx(T,{windowSize:u,widthSize:V[3].width,children:t.jsx(B,{windowSize:u,isClickable:a||n,children:Te("0,0.00",c.runningBalance)})}),t.jsx(T,{windowSize:u,widthSize:V[4].width,children:t.jsx(B,{windowSize:u,isLastItem:!0,isClickable:a||n,children:t.jsxs(It,{children:[t.jsx(Be,{textColor:Mt(c.postingStatus,m),onClick:a||n?$:void 0,text:X.sequenceSchedule.postingStatus[c.postingStatus]}),k?t.jsx(At,{onClick:a?$:w,children:t.jsx(Ct,{jeLink:c.jeLink,isJElinkAllowed:k})}):null]})})})]})};function Ct({jeLink:e,isJElinkAllowed:l}){const[s,r]=C.useState(!1);return e.type==="linked"&&l?t.jsx(t.Fragment,{}):l&&(e.type==="unknown"||e.type==="recommended")?t.jsxs(Lt,{onMouseOver:()=>r(!0),onMouseLeave:()=>r(!1),children:[t.jsx(Vt,{}),s?t.jsxs(Ot,{children:[e.type==="recommended"?t.jsx(Ft,{}):null,t.jsx(Et,{children:X.linkJE.linkJE})]}):null]}):null}const Mt=(e,l)=>{switch(e){case"pending":case"canceled":case"recorded":return new _(l.colors.grey1);case"posted":return new _(j.success);case"unknown":return new _(j.alert)}},zt=o.div`
207
207
  display: flex;
208
208
  height: ${Q}px;
209
209
  justify-content: space-between;
@@ -230,7 +230,7 @@ import{Q as F,e as K,V as t,ip as ie,F as R,iq as oe,B as le,ir as xe,dR as fe,f
230
230
  align-items: center;
231
231
 
232
232
  cursor: ${e=>e.isClickable===!0?"pointer":"default"};
233
- `,T=l.div`
233
+ `,T=o.div`
234
234
  display: flex;
235
235
  align-items: center;
236
236
  width: ${e=>e.widthSize.valuePx(e.windowSize)};
@@ -238,7 +238,7 @@ import{Q as F,e as K,V as t,ip as ie,F as R,iq as oe,B as le,ir as xe,dR as fe,f
238
238
  :last-of-type {
239
239
  padding-right: 0;
240
240
  }
241
- `,Lt=l.div`
241
+ `,Lt=o.div`
242
242
  display: flex;
243
243
  align-items: center;
244
244
  gap: ${i.sp1};
@@ -247,21 +247,21 @@ import{Q as F,e as K,V as t,ip as ie,F as R,iq as oe,B as le,ir as xe,dR as fe,f
247
247
  &:hover {
248
248
  color: ${e=>e.theme.colors.primary};
249
249
  }
250
- `,Ot=l.div`
250
+ `,Ot=o.div`
251
251
  display: flex;
252
252
  align-items: center;
253
253
  gap: ${i.sp1};
254
- `,Et=l(L)``,At=l.div``,Ft=l.div`
254
+ `,Et=o(L)``,At=o.div``,It=o.div`
255
255
  display: flex;
256
256
  gap: ${i.sp3};
257
257
  align-items: center;
258
- `,It=l(Je)`
258
+ `,Vt=o(Je)`
259
259
  width: ${i.sp3};
260
260
  height: ${i.sp3};
261
- `,Vt=l(Pe)`
261
+ `,Ft=o(Pe)`
262
262
  width: ${i.sp3};
263
263
  height: ${i.sp3};
264
- `,B=l(L)`
264
+ `,B=o(L)`
265
265
  flex-grow: 1;
266
266
  word-break: break-word;
267
267
  white-space: nowrap;
@@ -277,23 +277,23 @@ import{Q as F,e as K,V as t,ip as ie,F as R,iq as oe,B as le,ir as xe,dR as fe,f
277
277
  display: ${e=>e.isLastItem===!0?"flex":"inline-block"};
278
278
  margin-right: ${e=>e.isLastItem===!0?0:i.sp4};
279
279
  padding-right: ${i.sp0};
280
- `,ge={scheduleDetailsWrapperContainerMarginTop:new b(h[3],h[3]),paddingRight:new b(h[4],0)},ei=({sectionId:e,totalAmount:o,isDisabled:a,hideMemoField:r,listFetchState:p,scheduleJournalEntries:n,localData:d,uiState:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u,jeScheduleId:m})=>{const x=F(),S=p==="Not-Started"||p==="In-Progress"&&n.length===0,v=p==="Completed"&&d.length===0,w=R.getLocalizedStrings().jeSchedules.scheduleDetails.sequenceSchedule;return t.jsxs(Yt,{windowSize:x,children:[t.jsx(Ht,{windowSize:x,children:w.header}),S?t.jsx(ye,{}):v?t.jsx(qt,{windowSize:x,children:t.jsx(be,{text:w.notCreated})}):t.jsx(Rt,{children:t.jsx(Tt,{isDisabled:a,sectionId:e,hideMemoField:r,totalAmount:o,uiState:c,scheduleJournalEntries:n,localData:d,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u,jeScheduleId:m})})]})},Tt=({sectionId:e,totalAmount:o,isDisabled:a,hideMemoField:r,scheduleJournalEntries:p,localData:n,uiState:d,jeScheduleId:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u})=>{const m=C.useRef(null),x=F(),S=g=>Q,v=n.length*Q+De;C.useEffect(()=>{m.current?.resetAfterIndex(0)},[p]);const w=(g,s,$)=>{if(g===s.length-1)return!1;if($?.jeScheduleId==null)return!0;const H=G(),O=G().startOf("month"),te=G().endOf("month");if(s[g].postingDate!=null){if(s[g].postingDate.month()===H.month()&&s[g].postingDate.isBetween(O,te)===!0)return(s[g].postingStatus==="pending"||s[g].postingStatus==="canceled")&&n[g].runningBalance.amount!==0;if(s[g].postingDate.isBefore(O)===!0)return!1;if(s[g].postingDate.isAfter(te)===!0&&g!==0&&n[g-1].postingStatus==="posted"&&n[g-1].runningBalance.amount!==0)return!0}return!1},k=g=>{const s=o<0;if(g===0)return{min:s?o:0,max:s?0:o};{const $=n[g-1].runningBalance.amount;return{min:s?$:0,max:s?0:$}}};return t.jsx(Jt,{windowSize:x,containerHeight:v,children:t.jsx(Ce,{children:({height:g,width:s})=>t.jsxs(Wt,{style:{height:g,width:s},children:[t.jsx(Pt,{children:t.jsx(Me,{hideMemo:r})}),t.jsx(ze,{height:g,itemCount:n.length,itemSize:S,itemData:{sectionId:e,scheduleJournalEntries:p,localData:n,onEditAmount:y,onJELinkClick:f,uiState:d,windowSize:x,isDisabled:a,isAmountEditable:w,hideMemoField:r,getMinMaxValuesForAmount:k,onViewLinkedJE:u,jeScheduleId:c},width:s,ref:m,overscanCount:Le,initialScrollOffset:0,children:Bt})]})})})},Bt=({index:e,data:o})=>{const{sectionId:a,scheduleJournalEntries:r,localData:p,onJELinkClick:n,windowSize:d,isDisabled:c,hideMemoField:y,isAmountEditable:f,getMinMaxValuesForAmount:u,onViewLinkedJE:m,jeScheduleId:x}=o;return t.jsx(Nt,{windowSize:d,children:t.jsx(Dt,{rowId:e,isDisabled:c,isAmountEditable:f(e,p,r[e]),hideMemoField:y,minMaxValuesForAmount:u(e),sectionId:`${a}.${e}`,scheduleJournalEntry:r[e],localData:p[e],onJELinkClick:n,onViewLinkedJE:m})},x+e)},Jt=l.div`
280
+ `,ge={scheduleDetailsWrapperContainerMarginTop:new b(h[3],h[3]),paddingRight:new b(h[4],0)},ei=({sectionId:e,totalAmount:l,isDisabled:s,hideMemoField:r,listFetchState:p,scheduleJournalEntries:n,localData:d,uiState:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u,jeScheduleId:m})=>{const x=I(),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(Yt,{windowSize:x,children:[t.jsx(Ht,{windowSize:x,children:w.header}),S?t.jsx(ye,{}):v?t.jsx(qt,{windowSize:x,children:t.jsx(be,{text:w.notCreated})}):t.jsx(Rt,{children:t.jsx(Tt,{isDisabled:s,sectionId:e,hideMemoField:r,totalAmount:l,uiState:c,scheduleJournalEntries:n,localData:d,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u,jeScheduleId:m})})]})},Tt=({sectionId:e,totalAmount:l,isDisabled:s,hideMemoField:r,scheduleJournalEntries:p,localData:n,uiState:d,jeScheduleId:c,onEditAmount:y,onJELinkClick:f,onViewLinkedJE:u})=>{const m=C.useRef(null),x=I(),S=g=>Q,v=n.length*Q+De;C.useEffect(()=>{m.current?.resetAfterIndex(0)},[p]);const w=(g,a,$)=>{if(g===a.length-1)return!1;if($?.jeScheduleId==null)return!0;const H=G(),O=G().startOf("month"),te=G().endOf("month");if(a[g].postingDate!=null){if(a[g].postingDate.month()===H.month()&&a[g].postingDate.isBetween(O,te)===!0)return(a[g].postingStatus==="pending"||a[g].postingStatus==="canceled")&&n[g].runningBalance.amount!==0;if(a[g].postingDate.isBefore(O)===!0)return!1;if(a[g].postingDate.isAfter(te)===!0&&g!==0&&n[g-1].postingStatus==="posted"&&n[g-1].runningBalance.amount!==0)return!0}return!1},k=g=>{const a=l<0;if(g===0)return{min:a?l:0,max:a?0:l};{const $=n[g-1].runningBalance.amount;return{min:a?$:0,max:a?0:$}}};return t.jsx(Jt,{windowSize:x,containerHeight:v,children:t.jsx(Ce,{children:({height:g,width:a})=>t.jsxs(Wt,{style:{height:g,width:a},children:[t.jsx(Pt,{children:t.jsx(Me,{hideMemo:r})}),t.jsx(ze,{height:g,itemCount:n.length,itemSize:S,itemData:{sectionId:e,scheduleJournalEntries:p,localData:n,onEditAmount:y,onJELinkClick:f,uiState:d,windowSize:x,isDisabled:s,isAmountEditable:w,hideMemoField:r,getMinMaxValuesForAmount:k,onViewLinkedJE:u,jeScheduleId:c},width:a,ref:m,overscanCount:Le,initialScrollOffset:0,children:Bt})]})})})},Bt=({index:e,data:l})=>{const{sectionId:s,scheduleJournalEntries:r,localData:p,onJELinkClick:n,windowSize:d,isDisabled:c,hideMemoField:y,isAmountEditable:f,getMinMaxValuesForAmount:u,onViewLinkedJE:m,jeScheduleId:x}=l;return t.jsx(Nt,{windowSize:d,children:t.jsx(Dt,{rowId:e,isDisabled:c,isAmountEditable:f(e,p,r[e]),hideMemoField:y,minMaxValuesForAmount:u(e),sectionId:`${s}.${e}`,scheduleJournalEntry:r[e],localData:p[e],onJELinkClick:n,onViewLinkedJE:m})},x+e)},Jt=o.div`
281
281
  height: ${e=>e.containerHeight}px;
282
282
  width: 100%;
283
283
  margin-right: ${i.sp8};
284
- `,Pt=l.div`
284
+ `,Pt=o.div`
285
285
  width: auto;
286
- `,Rt=l.div`
286
+ `,Rt=o.div`
287
287
  display: flex;
288
288
  flex-direction: column;
289
- `,Nt=l.div`
289
+ `,Nt=o.div`
290
290
  top: ${i.sp0};
291
291
  left: ${i.sp0};
292
292
  padding-bottom: ${i.sp3};
293
293
  box-sizing: border-box;
294
294
  width: 100%;
295
295
  padding: ${e=>`${i.sp0} ${ge.paddingRight.valuePx(e.windowSize)} ${i.sp0} ${i.sp0}`};
296
- `,Wt=l.div``,Yt=l.div`
296
+ `,Wt=o.div``,Yt=o.div`
297
297
  display: flex;
298
298
  min-height: 100%;
299
299
  flex-direction: column;
@@ -311,13 +311,13 @@ import{Q as F,e as K,V as t,ip as ie,F as R,iq as oe,B as le,ir as xe,dR as fe,f
311
311
  margin-bottom: ${i.sp8};
312
312
  padding: ${i.sp0} ${i.sp4} ${i.sp4} ${i.sp4};
313
313
  background-color: ${e=>e.theme.colors.grey5};
314
- `,qt=l.div`
314
+ `,qt=o.div`
315
315
  display: flex;
316
316
  height: 100%;
317
317
  flex-direction: column;
318
318
  width: 100%;
319
319
  margin-top: ${e=>ge.scheduleDetailsWrapperContainerMarginTop.valuePx(e.windowSize)};
320
- `,Ht=l.div`
320
+ `,Ht=o.div`
321
321
  color: ${e=>e.theme.colors.hero};
322
322
  margin: ${i.sp3} ${i.sp0};
323
323
  ${A.standardRegular.css};
@@ -1,4 +1,4 @@
1
- import{c_ as Gh,c$ as ir,d0 as Hh,d1 as qt,d2 as xl,d3 as Ot,d4 as Zh,d5 as Tl,d6 as ls,d7 as Yh,d8 as Wh,d9 as mr,da as ar,db as Kh,dc as nn,dd as qo,cP as Jh,de as No,df as Xr,dg as kt,dh as Xh,di as Il,dj as Al,dk as Qh,dl as ed,dm as td,dn as rd,dp as hs,dq as nd,dr as id,ds as ad,dt as od,cV as sd,du as Cl,dv as ud,bO as Jr,dw as ds,dx as cd,dy as Pl,dz as an,dA as pt,dB as Do,dC as fd,dD as ld,B as et,A as ye,dE as $o,dF as hd,dG as dd,dH as pd,dI as kl,dJ as md,dK as ps,dL as gd,dM as vd,dN as bn,dO as yd,dP as _d,dQ as St,dR as bd,cC as wd,dS as jl,dT as Ll,dU as Mo,dV as Fo,dW as Ed,dX as Sd,dY as Rd,dZ as Od,d_ as xd,d$ as Td,e0 as Id,e1 as Ad,e2 as Cd,e3 as Zt,e4 as Bo,e5 as Pd,e6 as kd,e7 as jd,e8 as ql,e9 as Nl,ea as Ld,eb as Dl,ec as qd,ed as Nd,ee as Dd,ef as $d,eg as Md,eh as Fd,ei as Bd,ej as Ud,ek as $l,el as wn,em as Ml,en as Uo,eo as Vd,ep as Fl,eq as zd,er as Gd,es as Hd,et as Zd,eu as Yd,ev as Wd,ew as Kd,ex as Jd,c3 as Xd,bd as Qd,ey as ep,ez as Mt,eA as tp,eB as rp,eC as np,eD as Po,bb as ip}from"./zeni-epic-state-LPACxnXP.js";import{j as U,D as on,n as tt,S as Bt}from"./mui-bYXq4XMS.js";import{p as Ve,x as Ke,y as ct,z as ap,a as le,n as Oe,o as ze,N as er,s as bt,t as xe,e as Bl,d as Ul,g as op,u as Vo,q as ko}from"./core-3dlyNYRL.js";import{e as Ut,Q as sn,f as Ue,z as We,y as ut,g as sp,W as up,h as un,i as cp,N as xt,F as or,j as Vt,k as Nt,A as cn,o as Pt,q as fp,v as lp,l as jt,m as zo,O as Lt,Z as hp,Y as dp,u as En,X as pp,r as Vl,w as mp,t as zl,x as Gl,C as jo,D as gp,G as vp,H as yp,R as Hl,I as _p,K as bp,J as wp,L as Ep,S as Sp,T as Rp,U as Op,$ as xp,a0 as Tp,a1 as Ip,a2 as Ap,a3 as Cp,a4 as Pp}from"./index-XNBiWrYj.js";import{f as kp}from"./analyticsHelper-D23HZgYu.js";import{q as He,v as jp,w as Lp,x as qp,y as Go,z as Np,A as Dp,B as $p,C as zt,D as Mp,E as rr,F as fn,G as Fp,H as sr,I as Bp}from"./utils-uDUqNRFY.js";import{r as Ho}from"./empty-CnIz-OQ7.js";import{r as ur,a as Up}from"./index-BQbbCzKZ.js";import{r as Vp}from"./index-jNlf8Zjb.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./url-BxQKeS2R.js";const zp={overlayWidth:new ut(100,100,50)},{common:{strings:ms}}=or.getLocalizedStrings();function Gp(e,n){return{headerActions:{onTabChange:o=>{const i=Nt(o),a=Vt(o);Ue.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(mr({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ue.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(ms.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(ms.comma)}}),e(mr({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Tl(o))},onColumnSortConfigChanged:(o,i)=>{e(mr({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(xl())},onFiltersChange:o=>{e(mr({uiState:{filters:o}}))}}}}function Hp(e,n){return{headerData:{selectedTabOption:xt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Zp=ze(Hp,Gp)(cp);function Sn({isDrawerOpen:e}){const n=Ve(),o=Ke(),i=Ut(),a=sn(),{companyId:t}=ct(),[r,s]=ap(),[d,l]=le.useState(!1),f=Oe(b=>Gh(b)),h=Oe(b=>ir(b)),{additionalChurnFactors:c}=Oe(b=>Hh(b)),{selectedCompanyDetail:w,selectedCompanyId:m,localFormDataAndStatusByCompanyId:y}=f,g=Oe(b=>b.companyViewState.zeniUsers.fetchState),u=Oe(b=>b.companyHealthMetricConfigViewState);if(le.useEffect(()=>{const b=v=>v==="Not-Started"||v==="Error";f.fetchState==="Completed"?o(qt(!1)):b(f.fetchState)&&(o(xl()),b(g)&&o(Ot()),b(u.fetchState)&&o(Zh()))},[f.fetchState,u.fetchState]),le.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Tl(t)),w!=null&&(Ue.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),We.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||m!=null&&w!=null?U.jsx(on,{anchor:"right",open:m!=null,PaperProps:{style:{width:zp.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(ls()),children:U.jsx(sp,{roomId:`cockpit_${m}`,autoConnect:!0,children:U.jsx(up,{onSaveClick:()=>{m!=null&&o(Wh(m))},onSaveChangesToLocalStore:b=>{f.selectedCompanyId!=null&&o(Yh({companyId:f.selectedCompanyId,updatedLocalData:b}))},localData:y?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>o(ls()),analytics:Ue,urlSource:d,additionalChurnFactorsOptions:c})})}):null,U.jsx(Zp,{healthView:f,managementView:h,navigate:n,mixpanelHMUrl:un.mixpanelHMUrl})]})}const Zl=(e,n)=>{const o=[...e??[]];return o.push(n),o},Yp=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Wp=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>We.isSignedIn()===!0?U.jsx(U.Fragment,{children:n}):U.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Kp(){return U.jsxs(bt,{children:[U.jsx(xe,{path:"/companies/:companyId",element:U.jsx(Pe,{element:U.jsx(Sn,{isDrawerOpen:!0})})}),U.jsx(xe,{path:"/",element:U.jsx(Pe,{element:U.jsx(Sn,{})})}),U.jsx(xe,{path:"/*",element:U.jsx(Pe,{element:U.jsx(Sn,{})})})]})}const Jp={drawerLeftMargin:new ut(0,0,240)};function cr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=sn(),r=o?.valuePx(t)??Jp.drawerLeftMargin.valuePx(t),s=Ut();return U.jsx(on,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Xp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(Qp,{children:U.jsx(cn,{size:"ExtraLarge",start:!0})}):null,Qp=tt.div`
1
+ import{c_ as Gh,c$ as ir,d0 as Hh,d1 as qt,d2 as xl,d3 as Ot,d4 as Zh,d5 as Tl,d6 as ls,d7 as Yh,d8 as Wh,d9 as mr,da as ar,db as Kh,dc as nn,dd as qo,cP as Jh,de as No,df as Xr,dg as kt,dh as Xh,di as Il,dj as Al,dk as Qh,dl as ed,dm as td,dn as rd,dp as hs,dq as nd,dr as id,ds as ad,dt as od,cV as sd,du as Cl,dv as ud,bO as Jr,dw as ds,dx as cd,dy as Pl,dz as an,dA as pt,dB as Do,dC as fd,dD as ld,B as et,A as ye,dE as $o,dF as hd,dG as dd,dH as pd,dI as kl,dJ as md,dK as ps,dL as gd,dM as vd,dN as bn,dO as yd,dP as _d,dQ as St,dR as bd,cC as wd,dS as jl,dT as Ll,dU as Mo,dV as Fo,dW as Ed,dX as Sd,dY as Rd,dZ as Od,d_ as xd,d$ as Td,e0 as Id,e1 as Ad,e2 as Cd,e3 as Zt,e4 as Bo,e5 as Pd,e6 as kd,e7 as jd,e8 as ql,e9 as Nl,ea as Ld,eb as Dl,ec as qd,ed as Nd,ee as Dd,ef as $d,eg as Md,eh as Fd,ei as Bd,ej as Ud,ek as $l,el as wn,em as Ml,en as Uo,eo as Vd,ep as Fl,eq as zd,er as Gd,es as Hd,et as Zd,eu as Yd,ev as Wd,ew as Kd,ex as Jd,c3 as Xd,bd as Qd,ey as ep,ez as Mt,eA as tp,eB as rp,eC as np,eD as Po,bb as ip}from"./zeni-epic-state-LPACxnXP.js";import{j as U,D as on,n as tt,S as Bt}from"./mui-bYXq4XMS.js";import{p as Ve,x as Ke,y as ct,z as ap,a as le,n as Oe,o as ze,N as er,s as bt,t as xe,e as Bl,d as Ul,g as op,u as Vo,q as ko}from"./core-3dlyNYRL.js";import{d as Ut,Q as sn,e as Ue,z as We,y as ut,f as sp,W as up,g as un,h as cp,N as xt,F as or,i as Vt,j as Nt,A as cn,o as Pt,q as fp,v as lp,k as jt,l as zo,D as Lt,Z as hp,Y as dp,u as En,X as pp,m as Vl,w as mp,r as zl,t as Gl,x as jo,C as gp,G as vp,H as yp,I as Hl,J as _p,K as bp,L as wp,O as Ep,R as Sp,S as Rp,T as Op,$ as xp,a0 as Tp,a1 as Ip,a2 as Ap,a3 as Cp,a4 as Pp}from"./index-BS0RW8dr.js";import{f as kp}from"./analyticsHelper-kRUwHHg6.js";import{q as He,v as jp,w as Lp,x as qp,y as Go,z as Np,A as Dp,B as $p,C as zt,D as Mp,E as rr,F as fn,G as Fp,H as sr,I as Bp}from"./utils-uDUqNRFY.js";import{r as Ho}from"./empty-CnIz-OQ7.js";import{r as ur,a as Up}from"./index-BQbbCzKZ.js";import{r as Vp}from"./index-jNlf8Zjb.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./url-BxQKeS2R.js";const zp={overlayWidth:new ut(100,100,50)},{common:{strings:ms}}=or.getLocalizedStrings();function Gp(e,n){return{headerActions:{onTabChange:o=>{const i=Nt(o),a=Vt(o);Ue.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(mr({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ue.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(ms.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(ms.comma)}}),e(mr({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Tl(o))},onColumnSortConfigChanged:(o,i)=>{e(mr({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(xl())},onFiltersChange:o=>{e(mr({uiState:{filters:o}}))}}}}function Hp(e,n){return{headerData:{selectedTabOption:xt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Zp=ze(Hp,Gp)(cp);function Sn({isDrawerOpen:e}){const n=Ve(),o=Ke(),i=Ut(),a=sn(),{companyId:t}=ct(),[r,s]=ap(),[d,l]=le.useState(!1),f=Oe(b=>Gh(b)),h=Oe(b=>ir(b)),{additionalChurnFactors:c}=Oe(b=>Hh(b)),{selectedCompanyDetail:w,selectedCompanyId:m,localFormDataAndStatusByCompanyId:y}=f,g=Oe(b=>b.companyViewState.zeniUsers.fetchState),u=Oe(b=>b.companyHealthMetricConfigViewState);if(le.useEffect(()=>{const b=v=>v==="Not-Started"||v==="Error";f.fetchState==="Completed"?o(qt(!1)):b(f.fetchState)&&(o(xl()),b(g)&&o(Ot()),b(u.fetchState)&&o(Zh()))},[f.fetchState,u.fetchState]),le.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Tl(t)),w!=null&&(Ue.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),We.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||m!=null&&w!=null?U.jsx(on,{anchor:"right",open:m!=null,PaperProps:{style:{width:zp.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(ls()),children:U.jsx(sp,{roomId:`cockpit_${m}`,autoConnect:!0,children:U.jsx(up,{onSaveClick:()=>{m!=null&&o(Wh(m))},onSaveChangesToLocalStore:b=>{f.selectedCompanyId!=null&&o(Yh({companyId:f.selectedCompanyId,updatedLocalData:b}))},localData:y?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>o(ls()),analytics:Ue,urlSource:d,additionalChurnFactorsOptions:c})})}):null,U.jsx(Zp,{healthView:f,managementView:h,navigate:n,mixpanelHMUrl:un.mixpanelHMUrl})]})}const Zl=(e,n)=>{const o=[...e??[]];return o.push(n),o},Yp=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Wp=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>We.isSignedIn()===!0?U.jsx(U.Fragment,{children:n}):U.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Kp(){return U.jsxs(bt,{children:[U.jsx(xe,{path:"/companies/:companyId",element:U.jsx(Pe,{element:U.jsx(Sn,{isDrawerOpen:!0})})}),U.jsx(xe,{path:"/",element:U.jsx(Pe,{element:U.jsx(Sn,{})})}),U.jsx(xe,{path:"/*",element:U.jsx(Pe,{element:U.jsx(Sn,{})})})]})}const Jp={drawerLeftMargin:new ut(0,0,240)};function cr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=sn(),r=o?.valuePx(t)??Jp.drawerLeftMargin.valuePx(t),s=Ut();return U.jsx(on,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Xp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(Qp,{children:U.jsx(cn,{size:"ExtraLarge",start:!0})}):null,Qp=tt.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;