@zeniai/web-cockpit-ui 1.15.34-dev → 1.15.35-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 (283) hide show
  1. package/dist/assets/{ACHDetailsPage-DSufuSEI-BugcK5ko.js → ACHDetailsPage-CdyuCPU8-0VceC4Oh.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Df0tJkyd-C5l4T96t.js → AIPerformancePage-GW2UlhRu-Bfc988ot.js} +1 -1
  3. package/dist/assets/AccountInfoPage-BQksD-qN-CQrQ5LJ4.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-C7Xs6ju3-CvFu_KWB.js → AccountInfoPageContent-Dn6yodzf-C1aQIT5z.js} +7 -7
  5. package/dist/assets/{AccountLockedInfoModal-D5rAyYPe-cRoXMFrB.js → AccountLockedInfoModal-7MLTBsWb-kQqWsBqk.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BvnBJmol-BxGJXQpl.js → AccountReconDetailsDrawerPage-CUvBGVmt-CY2NmAYD.js} +1 -1
  7. package/dist/assets/{AccountRow-DtE1mQFq-sRlcgWT1.js → AccountRow-t-WESYF_-BZd9LxDz.js} +14 -14
  8. package/dist/assets/{AccountsPromoCardStack-D14FDzTY-CAlFlxNB.js → AccountsPromoCardStack-C0Ht_d_M-1zanAeyR.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-C9_gjvsQ-xMzrtCOD.js → AddAddressForCardDrawer-CpDfjROc-B4piq4St.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-B_7pqvLH-CAYlL9WC.js → AddToWalletPage-CPYp6JZP-Cgen85QG.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-CRFlM3H1-DhYuRisV.js → AgingReportsPage-BRChA3Xv-BV6vq-Aj.js} +3 -3
  12. package/dist/assets/{AllUserItems-LlhM8bBU-N-OwUUn2.js → AllUserItems-CUlWgl79-RT_0EGEc.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-CTxNOPhD-DrGk4MjA.js → ApAgingDetailPage-D7u_ghQp-CmtSt3LQ.js} +6 -6
  14. package/dist/assets/{AppBasePage-DRQ76rXe-BbmVnMJF.js → AppBasePage-bvoaHTtg-Bi873Eqq.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-CIXhnJBJ-DkcT-gQA.js → AppDrawerContent-DYDi-djG-Cr9HlceI.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DYrcZm5--Di4DgXFx.js → ApprovalRulesSettingsPage-CGO_GK8B-C3p-mE2c.js} +1 -1
  17. package/dist/assets/{ArAgingChart-BwEspm7G-DNjHaENA.js → ArAgingChart-DBuqIeaR-C9LO_snS.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-Dy9woFr0-Dwalts78.js → ArAgingDetailPage-ALGyVMJV-BsdNBEqd.js} +4 -4
  19. package/dist/assets/{AttachmentView-CF6Tiq1u-ScD4RZ91.js → AttachmentView-BIeDapyc-BG8BqDh9.js} +1 -1
  20. package/dist/assets/{BankAccountSection-DyPS4RZK-Bc2VKdEG.js → BankAccountSection-BQKaKFnm-DHGgFmbL.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-Dr8XVfsN-Bh1VpxWI.js → BankAccountWarningSection-DeUkht1G--scnEmUk.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-h7ZnZhy5-EKV1mb1Z.js → BankConnectionsSettingsPage-qldLiM1M-CPdyIAUt.js} +1 -1
  23. package/dist/assets/{BillDetailPage-KSkeLjtu-DDizjGfx.js → BillDetailPage-BPqPHZcD-BcX87XdC.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-C3VQacD2-ndVmYW9Y.js → BillPayApprovalRuleDetailPage-FW3E7XSE-Bj7z3Fiz.js} +5 -5
  25. package/dist/assets/{BillPayApprovalRulesPage-DMmnARE3-BHk6XaxH.js → BillPayApprovalRulesPage-BGotlrLK-C4wvOhcK.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-CZ34fQRr-h45OCD6V.js → BillPayPromoPage-DvoccD5_-9WUX2zRh.js} +5 -5
  27. package/dist/assets/{BillPaySetUpPage-DF-cMiJC-Ccb6fwyP.js → BillPaySetUpPage-DhjIDy8h-D7gIdBq_.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-DNmOo0mj-BgBv8nRa.js → BillingSettingsPage-CmO4DZ-a-TmRopedQ.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CM1RYrRS-7XSi35in.js → BillsBulkReviewDrawerPage-4vzF3bG9-C3VxBwnG.js} +1 -1
  30. package/dist/assets/{BoxItem-Dy41mKN9-CZiGGLPk.js → BoxItem-B6i9yx2h-8tTsCvCc.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-BSL5f5yW-Ccd_M7Ux.js → BusinessVerificationPage-DuEh8MkZ-CPUH1p9f.js} +1 -1
  32. package/dist/assets/{CardNumberSubText--wffxyL2-Dzc9wag1.js → CardNumberSubText-BEVRq2PI-CBvs6qd9.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-BuywSIvA-Dj0FTjqV.js → CashbackDetailPage--SHtNWGE-D0op8BJu.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-Fx1upN8E-BfETR_eB.js → ChargeCardDetailPage-EFRUpv7y-BxiQ-wFB.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-CkqWU4gN-CkHuHVFN.js → ChargeCardListPage-CFB5EHCZ-DwRWhMet.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-lwxY_gLZ-DZ2VoxeT.js → ChargeCardListTable-DM_h-dzr-CxMVtKFB.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-CvTW120H-ByJ1xGtA.js → ChargeCardPaymentHistoryPage-CPZj9te2-acCaXNd-.js} +1 -1
  38. package/dist/assets/ChargeCardPromoPage-BWwBfycu-CAS6um23.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-D_LWSQOa-BwUtTkP2.js → ChargeCardSetupPage-Epn4xe2x-CkUn76sD.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-B7qX0zl3-C66Fu0LS.js → ChargeCardStatementsPage-Bu7OdYhw-oLOXCaTu.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-oWf5X7rL-5KpdpyEY.js → CheckDepositDrawerPage-DQnqizMV-eQHX-470.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-Cfh-EfEQ-CKv-H0OC.js → CollapsableReportTable-CSVzLWq_-CmmDaO6f.js} +271 -271
  43. package/dist/assets/{CompanyOfficerDetailsSection-CFg0p5uA-CJ156x7J.js → CompanyOfficerDetailsSection-Pwtunf36-D6txAI6l.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-C5j_KoZL-CPJCD4ZW.js → CompanyPassportCard-DfPPft95-Clb_fVZP.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-DtEQ7a68-BZL6spEi.js → CompanyPassportPage-aNL_m3a2-r2mVOoQ8.js} +1 -1
  46. package/dist/assets/{CompleteProfile-DLNtc5N7-B7HW7ybq.js → CompleteProfile-DmeE0Xjt-BcBZ6wma.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-B4gz9uC9-BhJEyb5s.js → ConfettiBurst-s04ELXDS-BW01uxDM.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-C3jCz_Fx.js → ConstrainedInnerElement-BeIpAPjB-CaoYd0_P.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-Bd61yH0G-DpW83MJ2.js → CreateOrEditVendorPage-D3oCIz1P-DTzyUV9b.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-NtnEWUdG-DLELauiu.js → CreditCardPaymentDrawerPage-DPXaPj4B-1z2GwFLS.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-CaQgbP8P-Cqqb_KBc.js → CurrencySelectField-CtKQBmBI-q57973By.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-BnBFEWaX-Dn3wQumA.js → CustomerOnboardingActivationPage-DCQvUK8d-CVTcQu6u.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-Dm4ySQZZ-BvOTc4ng.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Deaz4PM6-BDZvJWDz.js → CustomerOnboardingDetailPageSkeleton-BVJ6jsqR-BsJw-Ope.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-C8cmsaOC-BJyq1bJL.js → CustomerOnboardingNoStepsPage-DQcf1Pyg-DdjDIchQ.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-CSSgj26J-N4cabpr0.js → CustomerOnboardingPage-CLNt38t0-D5-M1y80.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DU7qzP1f-2w9ZQcUU.js → CustomerOnboardingProductSuitePage-SyWJAHJ5-DCcbBC8z.js} +1 -1
  58. package/dist/assets/{Dashboard-DPXzM2TM-6t8lQHvd.js → Dashboard-DW6P3oLC-D1tHml1O.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-CWgH0Bn9-BvMXyb8g.js → DashboardReportPage-Cp04-QUV-B7AXOtvv.js} +1 -1
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-DL2Awq0k-CURcbn_K.js → DashboardSidebarBackgroundAnimation-CKoyjUHm-DewB5pFB.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-CuWxNHSp-Da2H1v88.js → DepositAccTransactionItem-kZL4La9A-C6fVz6NV.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionListPage-BHs8-LpV-C7V5-8Rf.js → DepositAccTransactionListPage-C_GPoFDS-Bnscj1hg.js} +3 -3
  63. package/dist/assets/{DomesticWireDetailsPage-CRfm0oqJ-C4r-lW_y.js → DomesticWireDetailsPage-CL-gGug5-Dmorx9NL.js} +1 -1
  64. package/dist/assets/{DownloadOverlay--ICWviQz-Q6tZiS37.js → DownloadOverlay-JdIA_Qvk-wAu7AAW1.js} +1 -1
  65. package/dist/assets/{DrawerPage-DoJkjp69-BGpDDN7R.js → DrawerPage-_F2zRGIo-CQDApgUJ.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-B-zEdQqt-BrFyNgmY.js → EditPeoplePage-Cqd73zkA-moU29OZ-.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-BdfJj8-u-BwPuRwof.js → EditReimbursementDetailPage--T5T_fJG-CaXN1fuc.js} +1 -1
  68. package/dist/assets/EntityDetailPage-CAu9l8_o-DQd9jfhM.js +18 -0
  69. package/dist/assets/{EntitySummarySection-BYP9LNlh-CHZV8J2r.js → EntitySummarySection-D1QM7cY6-BWMV3RUk.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-UKPGezFZ-ynbYpvOr.js → ExpenseAutomationOverviewPage-pciCiajG-DOlwLojR.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-5qqhqwjY-BNjM9KYY.js → ExpenseAutomationPage-CYKu1ufk-BgHRQ_o6.js} +21 -21
  72. package/dist/assets/{ExpressPayPage-BaLCnmxC-DyZ_NbAE.js → ExpressPayPage-BCMf-60G-DgcplXv5.js} +8 -8
  73. package/dist/assets/{FeaturePreviewPage-DJvcim4v-B-0y2hox.js → FeaturePreviewPage-Dj5OXPVN-2xodjQZz.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-DiAM2oU9-DVhX1hhq.js → FollowStepsSection-ZwhfJWnC-WC244m2S.js} +1 -1
  75. package/dist/assets/GlobalReviewListPage-AZtnVYVQ-HrXervPX.js +291 -0
  76. package/dist/assets/{InformationCardStack-bDJV8MEl-DKR8Zvn9.js → InformationCardStack-D8cmcS4k-ucNvTFnG.js} +1 -1
  77. package/dist/assets/{InsightsCardStack-Ba7C5_Ql-1E6nbw33.js → InsightsCardStack-CRbYGyti-BG-J4zTW.js} +2 -2
  78. package/dist/assets/{InsightsSection-BFviX80K-CRFJKeH_.js → InsightsSection-B7cEUOjq-CHOA81kF.js} +2 -2
  79. package/dist/assets/{IntegrationsSettingsPage--kXCS3f1-HcQyCW82.js → IntegrationsSettingsPage-Cu70a3gO-qesbn3EL.js} +2 -2
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DfKrYbaB-DwvyB1Uq.js → InternationalWireSwiftDetailsPage-D_RuMP2E-CqXJrwow.js} +1 -1
  81. package/dist/assets/{InternationalWireVerificationPage-DU6447M_-YLqWsFbY.js → InternationalWireVerificationPage-CqpE7nR5-BRwgb-BA.js} +1 -1
  82. package/dist/assets/{InviteFormPage-D3FNgm9B-BwvxtcvY.js → InviteFormPage-BU3bkjN3-DJZLZema.js} +1 -1
  83. package/dist/assets/{InvitePageListView-D4wRSwJW-DPbFsvfR.js → InvitePageListView-BfRPKPse-BUIcdEL2.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-DSFk8lEF-DpuHc0lh.js → InvitePeoplePage-DFfZPbsO-DIubZIn-.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-DaS4D1em-CK_Ayuq4.js → InvoiceUploadSection-BwqSfbYC-EOja7gNg.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-CrbIqdSx-Bp9X1BXe.js → IssueChargeCardPage-BB83Aeyd-D9TAck5s.js} +1 -1
  87. package/dist/assets/{LabeledAddressValue-CUr2BnHq-DfiyDPyB.js → LabeledAddressValue-CK-YJ1cO-BIV6IRFP.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-DL3wJoZC-CMggf1RU.js → LabeledAddressValueField-BppwMtJ1-Dgoqu5O4.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-DQUXZSFS-CPn0l33X.js → LabeledControlledCheckBoxField-zpbzob1x-DTorn_1A.js} +1 -1
  90. package/dist/assets/{LabeledCountryMultiSelectField-C6IWrKo4-CcQcxFW7.js → LabeledCountryMultiSelectField-DrZ69tWB--r4Tq0BJ.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-m_D3aJpG-DPOvsRA4.js → LabeledCreatableSingleSelectField-D-rSPg1Y-ak5nvuiq.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-B19zNNVZ-Du4OcR6Y.js → LabeledDocumentField-CBQeAeRc-D56y9oeO.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-D4cHrsba-DGjSp6HD.js → LabeledDropDownFormattedTextField-5t5k_pgq-CfuE84-6.js} +1 -1
  94. package/dist/assets/{LabeledText-H1pSTEtd-BHLnDTFr.js → LabeledText-tLPpd4Wp-Cw2ZTitB.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-C0bJoy6U-CBE1zspu.js → LabeledUserSingleSelectWithSubtitlesField-D5zZUAVV-DVMrLokL.js} +3 -3
  96. package/dist/assets/{LabeledZeniRolesDropDownField-D0KIAWFW-CQ1uXRKO.js → LabeledZeniRolesDropDownField-DZ9boJMt-KCvascmZ.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-LfkM9DYO-CSpsV_Z3.js → LinkJETransactionPage-C99UMrwp-9iiMpHD1.js} +1 -1
  98. package/dist/assets/{LockCardPage-lTzQY_pw-BYsKWV6j.js → LockCardPage-DE5Zw1p--CmfozmOj.js} +6 -6
  99. package/dist/assets/{LowBalancePopup-DXPPHYS1-CB0hADnS.js → LowBalancePopup-BD9saCcf-C9aiJowo.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-pyI_8fZk-CbyceRk3.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-leEpcwab-DAkBv8v1.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-CJRYlkvp-pCJgKy6F.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-BrQk5kYZ-Dws1_rIA.js → MagicLinkSuccessPage-BxXyF-Sp-BUdh8eIy.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-vHYX92L1-B1QKRjFr.js → MagicLinkTitleSection-DajyP-ys-Be4ZqDQL.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-vydT4UOr-DSxQiRSi.js → MailingDetailsSection-F1i0rBkv-CZo5kIPL.js} +1 -1
  106. package/dist/assets/{MyBankConnectionsSettingsPage-BtT9OQ_b-D1PjSf7q.js → MyBankConnectionsSettingsPage-BE1pUnaR-BPnyB1YE.js} +1 -1
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-5E28yAfQ-DZoHwB3h.js → MyPendingActivationChargeCardListPage-CviCM09N-BNRf9wnQ.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-DQBSh-S5-C_KLZ_rh.js → MyProfileSettingsPage-iREvm7LK-BHFViMqO.js} +1 -1
  109. package/dist/assets/{NavBarWithPicker-1UPJ_fiE-iY8P9Wot.js → NavBarWithPicker-r-K_Pjsb-CmAh3bpT.js} +1 -1
  110. package/dist/assets/{NavigationArrow-CeYvXgly-CXWFEDMQ.js → NavigationArrow-CKhWji3v-aZKiVTlV.js} +1 -1
  111. package/dist/assets/{NavigationDots-CXAszOHQ-HtQg6iz5.js → NavigationDots-OShASt5i-Bc5YcJG5.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-DXSlGPbc-DidlOClT.js → NewGlobalMerchantPage-2-kYqTDF-CV5JZ9Yl.js} +1 -1
  113. package/dist/assets/{NoDataChart-BQdJyfHh-BLmune73.js → NoDataChart-BN3zyJkX-DustlDSJ.js} +1 -1
  114. package/dist/assets/{NoDataTable-B__TVPte-CetA5lza.js → NoDataTable-D0cyK_1j-BWgbh49q.js} +1 -1
  115. package/dist/assets/{NotFoundPage-Cs25xsWz-DnZv-DIM.js → NotFoundPage-yrt6kuPH-CdqbIt8C.js} +6 -6
  116. package/dist/assets/{NotificationSettingsPage-Dm3zOscr-DKDyywX2.js → NotificationSettingsPage-CX3Hkg6o-D8A68okq.js} +1 -1
  117. package/dist/assets/{NotificationsListConfig-D0knaijJ-NyDzwfbC.js → NotificationsListConfig-Cyzhla-8-CBrC2O9h.js} +1 -1
  118. package/dist/assets/{NotificationsPage-czQmfW2r-DksNFGUv.js → NotificationsPage-O7M0pMnc-Bp7VY2al.js} +1 -1
  119. package/dist/assets/OpExByVendorPage-DpMGBmkQ-DaQIIDYq.js +100 -0
  120. package/dist/assets/{OverlayContainerPage-D4QU0p4o-li8hzYjf.js → OverlayContainerPage-D4QU0p4o-BcMNtftY.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-B7cwWwMK-BW6yjf-v.js → PandLWithForecastPage-Cbt0YlVL-B7KI2QNo.js} +2 -2
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CkYtTRY5-DMMQt9qf.js → PaymentAccountSetupBillingAddressSection-B2xEqKKc-DTCpk1kt.js} +1 -1
  123. package/dist/assets/{PeoplePage-DNTbzljs-Bfp0W5JF.js → PeoplePage-CUr5cz1w-B26v5CzR.js} +1 -1
  124. package/dist/assets/{Preview-BsIYoVSv.js → Preview-CEK51ZCO.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-CTiD9zA7-D7cEl2bl.js → ProductsCarousel-t8HIs4J6-6BwcwXGL.js} +1 -1
  126. package/dist/assets/{PromoBaseCards-BmtlcPBm-DdDmICph.js → PromoBaseCards-6Uh8eokP-Cj1KOyAw.js} +1 -1
  127. package/dist/assets/{QBOConnectionDialog-B1y3hDGT-B8UGOz7A.js → QBOConnectionDialog-BbmqcpYW-rlXtEwUQ.js} +1 -1
  128. package/dist/assets/{QBOSetupSection-DevcmmCv-C2NxYIUb.js → QBOSetupSection-u5dKqaH8-Cw9rFHWf.js} +1 -1
  129. package/dist/assets/ReimbursementApprovalRuleDetailPage-DxSrYBkv-sfO_zxiL.js +32 -0
  130. package/dist/assets/{ReimbursementApprovalRulesPage-CvFHaDmE-Bk4uKO7k.js → ReimbursementApprovalRulesPage-BL2GpJIG-ByiCWQ8P.js} +1 -1
  131. package/dist/assets/{ReimbursementDetailPage-CMplGhml--7oTvGch.js → ReimbursementDetailPage-D3qTbpPg-6N8BmeyZ.js} +1 -1
  132. package/dist/assets/{ReimbursementPromoPage-0d-lo-ve-BFl3c8SE.js → ReimbursementPromoPage-DuwxKGGm-DVNFf58G.js} +1 -1
  133. package/dist/assets/{ReimbursementSetUpPage-T3ErpIj4-BkNsUy2n.js → ReimbursementSetUpPage-Du4kRXbO-IZ-1Hd0h.js} +7 -7
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CnyiYR81-D8NoJfkg.js → ReimbursementsBulkReviewDrawerPage-BmlYoVy4-BYNrk6QR.js} +1 -1
  135. package/dist/assets/{ReloadCard-CI-iJa1w-CU7osnQb.js → ReloadCard-BSiXuJWg-S2NiaAjj.js} +1 -1
  136. package/dist/assets/{ReportTableViewSelector-CM11mXKF-DKJl505X.js → ReportTableViewSelector-KgvX6wt6-CFIrG4n5.js} +1 -1
  137. package/dist/assets/{ReportsPage-DzuQNoMA-ORn4o7l_.js → ReportsPage-Bt24BITW-DoLBuKPr.js} +5 -5
  138. package/dist/assets/{RevenueChart-iDdrXSzX-BD1q5u9E.js → RevenueChart-iH_Xl63n-Bobzdvk9.js} +14 -14
  139. package/dist/assets/{ReviewDetailsPage-DdS8Ssmq-CpId9CQp.js → ReviewDetailsPage-CwPsM3uL-DU9meW3Q.js} +53 -53
  140. package/dist/assets/{ReviewOverlay-D39FMx3p-DPQk54i4.js → ReviewOverlay-DOqgOSnM-DIJSsTrl.js} +1 -1
  141. package/dist/assets/{RoleWithToolTip-BMEgXHWf-CYv1exk7.js → RoleWithToolTip-D6q4Wd6X-D2UbaxXJ.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-YdBRhUc0-1nXwHDMr.js → ScheduleDetailsFixedAssetsPage-_bJob_HD-ZRo-OTit.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsPage-OCqSWMz4-Dg0s24kG.js → ScheduleDetailsPage-BDZm6We--BmYpydGa.js} +3 -3
  144. package/dist/assets/{ScheduleSequenceTable-OEJBqdqG-CB3cYmnz.js → ScheduleSequenceTable-DgG11IBi-DBLZmDeR.js} +1 -1
  145. package/dist/assets/{ScreenRoutes-Bkl-MWfY.js → ScreenRoutes-kiA8eL9x.js} +2 -2
  146. package/dist/assets/{SetUpAccountSection-o86ErvD_-Celwp-jA.js → SetUpAccountSection-n5OCUAL3-B-YthnQt.js} +1 -1
  147. package/dist/assets/{SignIn-BEJNYyp4-O46sF-k3.js → SignIn-uBHaDram-Pp2K_nnI.js} +6 -6
  148. package/dist/assets/{SignInScreen-Dm8Ez_qK.js → SignInScreen-DkxtF7d-.js} +1 -1
  149. package/dist/assets/{SpendManagementListViewPage-BTQU2jwO-CQyGDfX4.js → SpendManagementListViewPage-ErBiPjGh-DVBcFgz6.js} +3 -3
  150. package/dist/assets/{SpendManagementPerTabPage-BtUS4aqA-vNlgv2e5.js → SpendManagementPerTabPage-BIxGrbmz-CpTcg38p.js} +1 -1
  151. package/dist/assets/{SpendManagementSection-DiQ2QBwA-CGsThSZ0.js → SpendManagementSection-B01H6LCd-7KGohVSJ.js} +1 -1
  152. package/dist/assets/{StatementItem-DGRjrvUi-C8hx1_Sf.js → StatementItem-BJJHaw9s-DKXMQrB-.js} +5 -5
  153. package/dist/assets/{StatementsPage-QqtqM0qv-BBLWtN99.js → StatementsPage-rFpr0w_W-p2OTDAub.js} +1 -1
  154. package/dist/assets/{StatusSwitcher-CfZOeqZf-Bq7fUYSl.js → StatusSwitcher-DnuyzbQo-uFTkU_Rq.js} +1 -1
  155. package/dist/assets/{SubTabSwitcher-Be1lLunR-CsxeYIuC.js → SubTabSwitcher-Bk10VIFM-DuWTd5Gf.js} +1 -1
  156. package/dist/assets/{SummaryCard-DgBWIctW-CRmTCkt0.js → SummaryCard-CHqc9QHC-DLmlONgW.js} +1 -1
  157. package/dist/assets/{TaskManagementPage-CpjN2Ver-BJrGG5WR.js → TaskManagementPage-Cr_KAM2z-B-N5lqS1.js} +7 -7
  158. package/dist/assets/{TimeRangeSwitcher-B7KdhPH9-Djft8PYe.js → TimeRangeSwitcher-DkNMcmBm-BHsVOUJA.js} +11 -11
  159. package/dist/assets/TimeframeSwitcher-CULpyCRj-DpaezwVo.js +31 -0
  160. package/dist/assets/{TimeframeSwitcherWithToggle-DEjdiR9x-CpK-qiop.js → TimeframeSwitcherWithToggle-BSx_ynUp-DCoChT3Y.js} +9 -9
  161. package/dist/assets/{TopExCard-Do6O7snc-DLvwuAod.js → TopExCard-B29o-5e0-BWjMLd0Z.js} +10 -10
  162. package/dist/assets/{TopExDetailPage-DFil6Qwx-BWbjM88A.js → TopExDetailPage-TVxgKbn8-Dea8Ndm8.js} +6 -6
  163. package/dist/assets/{TransactionActivityLogPage-C49lAwDF-BGLm3dPj.js → TransactionActivityLogPage-0wmqwFMQ-CtP3S4Ck.js} +1 -1
  164. package/dist/assets/{TransactionDetailPage-CyTyj91G-B7vb07HE.js → TransactionDetailPage-B9pzvWO8-DN9EJI4L.js} +1 -1
  165. package/dist/assets/{TransactionList-BFDau1I7-BXGXYBFK.js → TransactionList-dUcT29oF-CA_JHn5F.js} +1 -1
  166. package/dist/assets/{TransactionListBig-CVBiekZl-DrGGpH9X.js → TransactionListBig-DMnQfRkS-D1Tzrdsg.js} +1 -1
  167. package/dist/assets/{TransactionListPage-LGgMtr7O-CsGWQiN-.js → TransactionListPage-BB452Nj4-Be3PUtFs.js} +2 -2
  168. package/dist/assets/{TransactionVendorDetailPage-3p4MoiV3-DA73bE6t.js → TransactionVendorDetailPage-BCkXd3P2-Dn9bmHZD.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-BCr2Qlvp-BIuuD9Kn.js → TransferDrawerPage-6Rt1ZlJA-J8WRDfD_.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-CEnHQlwT-Cp9jfBpw.js → TreasuryOverviewPage-CuSfgvcS-Cr1ZHZCL.js} +9 -9
  171. package/dist/assets/{TreasuryPromoPage-oQKxGxSx-CJpdFyVJ.js → TreasuryPromoPage-DUi2uBW8-DFXwMQFM.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-DKCFzvzb-D5fkSJdQ.js → TreasuryStatementsPage-DNhwcfdJ-DHWXKCq1.js} +1 -1
  173. package/dist/assets/{TreasuryTaxLetterPage-D3pc6Eyc-DWhE-bsu.js → TreasuryTaxLetterPage-BLIGs8oG-B-EAsmsV.js} +1 -1
  174. package/dist/assets/{TrendChart-JHlBVwXJ-p0u3PrEr.js → TrendChart-KoCvlYmC-ji_PFFB-.js} +1 -1
  175. package/dist/assets/{TrendWithTransactions-Bh619hxZ-B7JEOzSv.js → TrendWithTransactions-Vqr8x7E_-Ch_SpSv4.js} +1 -1
  176. package/dist/assets/{UncategorizedAccountsMappingPage-BuM9GG4e-DMx8_LFD.js → UncategorizedAccountsMappingPage-BKdvN3Lh-CF1FrkBZ.js} +1 -1
  177. package/dist/assets/{UnitIntegrationPage-D4BoW10T-IfJ4B9AI.js → UnitIntegrationPage-CQ7270p--BJrqtQBc.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-CMqblFXF-CGuab5Cf.js → UploadAdditionalDocumentOverlay-CcH5BomT-DAavyljg.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-ANEIs-J6-BItEW5IN.js → Vendor2FAPopup-DtT11B4h-DSs5WQFV.js} +1 -1
  180. package/dist/assets/VendorACHDetailsPage-Cvek1Tr4-vPAILiGh.js +1 -0
  181. package/dist/assets/{VendorDetailPage-BLZ1wOuB-t2P37a0b.js → VendorDetailPage-2rTQcqZl-BGHBoCgZ.js} +1 -1
  182. package/dist/assets/VendorDomesticWireDetailsPage-j-06hvAA-CbgEb_pw.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-BtU7EZH1-Cdwalb8n.js → VendorFiling1099EditablePage-Cgkipd6r-BOi4aIsg.js} +32 -32
  184. package/dist/assets/VendorFirstReviewPage-Va76j7QY-Ce_x6xNG.js +730 -0
  185. package/dist/assets/{VendorInternationalWireDetailsPage-BbCN0JV0-Wsg-mPRx.js → VendorInternationalWireDetailsPage-D0IeqYQZ-CBSHQbo0.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CDShInCp-CKPYmRJ2.js → VendorInternationalWireSwiftDetailsPage-DZusODVt-CB9jvgle.js} +1 -1
  187. package/dist/assets/{VendorsAccountsSection-lmuNbtLw-BehIg0cT.js → VendorsAccountsSection-CTmdfJi_-2OXKGXSP.js} +1 -1
  188. package/dist/assets/{VerifyDevice-vhZNITmO-B_CyFx_O.js → VerifyDevice-DFCNFtDD-BiKT2y-c.js} +1 -1
  189. package/dist/assets/{VideoPlayer-DIXs3y0r-C0i3s9oa.js → VideoPlayer-CIr6pCWx-BWEj8qhe.js} +2 -2
  190. package/dist/assets/{VideoPopup-CYL6r3Cb-B0pmnpWo.js → VideoPopup-CoeVMP5D-CZp7ggfX.js} +2 -2
  191. package/dist/assets/{WarningsDrawerPage-CJ9a931n-DAFMV5EF.js → WarningsDrawerPage-CNBphx6e-DgBF9BD1.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-P86nU628-RfL02yuR.js → ZeniAccountDetailPage-ysMCIpFe-BBrtmzdb.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-GYsnktmQ-DlegmFE9.js → ZeniAccountListViewPage-DUalD7AP-CyveDoV_.js} +15 -15
  194. package/dist/assets/{ZeniAccountNavBarPieces-Cz7DjDo7-avwd16fX.js → ZeniAccountNavBarPieces-B8jILUl8-De6cgOXp.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-iCmw1i20-lqXeJDxF.js → ZeniAccountPromoPage-CUJm-42a-CXuQd7VV.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-B42Dq1gO-oMRu-INk.js → ZeniAccountSetupPage-BTurLFPN-CK5iO6d7.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-Baiyxesc-CHFltgTl.js → ZeniCopyright-BTFZ48gh-CtnEsi71.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-9-2DcdrJ-q0SmjKL2.js → ZeniTransferAmountSlider-f0nRZPzG-dUb4Mhul.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-DdT9Rn3y.js → add-to-wallet-DgdBD8_G-D1teIsf6.js} +1 -1
  200. package/dist/assets/{analytics-Dm6Rdmk5.js → analytics-DvsRx7_o.js} +1 -1
  201. package/dist/assets/{analyticsHelper-DPMmqDhf.js → analyticsHelper-Bk8gqeLI.js} +1 -1
  202. package/dist/assets/{analyticsHelper-B32z3Cdy-Dk9sCdyO.js → analyticsHelper-lunHUd8g-D5OYaAmT.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-Cy4oQH64.js → arrow-south-east-round-PEovUgvH-CIyEcJYf.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-B6gY8maM.js → auto-transfer-rule-mbafm5D3-CtO92HdQ.js} +1 -1
  205. package/dist/assets/{chartTypes-DL1AC5R1-CSQ4LZOa.js → chartTypes-DESZubWD-Bq3-3C2k.js} +1 -1
  206. package/dist/assets/{commonDimensions-BNYeCJ44-DwWQhbOM.js → commonDimensions-Cpv8YIix-Dpl_2njg.js} +1 -1
  207. package/dist/assets/{commonTypes-DwuUdRAc-CVoF2D5n.js → commonTypes-B1gKMzJK-DEpai8h5.js} +1 -1
  208. package/dist/assets/{constants-MHF6sRcJ.js → constants-B-YZmhKw.js} +1 -1
  209. package/dist/assets/{core-XAP_yXKl.js → core-HDqpewC7.js} +1 -1
  210. package/dist/assets/{dash.all.min-DatMhMWc.js → dash.all.min-kOXiIFTN.js} +1 -1
  211. package/dist/assets/{detailCommon-CzjlHNNr-OLPVPNMD.js → detailCommon-DyrMcL2E-DbZbdMac.js} +2 -2
  212. package/dist/assets/{downloadPdf-CPfBtFli-C5o4QyFD.js → downloadPdf-D2sIdMDR-D6_l0NHH.js} +1 -1
  213. package/dist/assets/{empty-vcyFM9nz.js → empty-DfoIHPwJ.js} +1 -1
  214. package/dist/assets/{empty-Cs2gdmIo.js → empty-Dx0imdfu.js} +1 -1
  215. package/dist/assets/{epic-B8nKq-i6.js → epic-BE_WS1px.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-RzjSa1iy.js → gift-box-Cmt9OgIZ-xM5zrgW4.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CQ6Ol9_s.js → graphic-no-data-l-DU4J8fDt-B9Rqv9_n.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CI6u9HfU.js → graphic-no-data-net-burn-l-CzmycA0m-DYb8EeBA.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-FDeEnKd2.js → handshake-BPg58FML-B6X0918N.js} +1 -1
  220. package/dist/assets/{helper-T710NLca-BU35xGXS.js → helper-i78O9ew8-BuDifB0X.js} +1 -1
  221. package/dist/assets/{index-LuFlN8FP.js → index-B7uDjLxh.js} +1 -1
  222. package/dist/assets/{index-CrlTOcjY.js → index-Bdy6x472.js} +1 -1
  223. package/dist/assets/{index-DSJ6HKL8.js → index-BmIGxAWd.js} +1 -1
  224. package/dist/assets/{index-t-uTuAYw.js → index-D0CQgP0w.js} +1 -1
  225. package/dist/assets/{index-D9vmx-FC.js → index-DAitESaL.js} +1 -1
  226. package/dist/assets/{index-DIT7C2zP.js → index-Depa7Syu.js} +1 -1
  227. package/dist/assets/{index-C9hDAJ7o.js → index-Dw_MX6AZ.js} +11 -11
  228. package/dist/assets/{lexical-CgNStNGD.js → lexical-CWcQ8pGO.js} +1 -1
  229. package/dist/assets/{liveblocks-NP7ye8lf.js → liveblocks-Dv7Vdu8a.js} +1 -1
  230. package/dist/assets/{lottie-DhXcx4Hv.js → lottie-V1lTNkDB.js} +1 -1
  231. package/dist/assets/mapLoadingInProgressToTreeNode-COG82OfJ-0ZJxCNAO.js +1 -0
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Co9d6d-V-n_IPqL-W.js → mapSectionWithAcOnlyToTreeNode-CjVZw324-Cy37hN-j.js} +1 -1
  233. package/dist/assets/mapSpacerToTreeNode-DZFRqtKk-B07ADlac.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-Cm_MiRXt-C6UHQCJ6.js +1 -0
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-DnvhN4Go-CXn5QSNs.js +1 -0
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-40rewm2_-C-ELqPB7.js +1 -0
  237. package/dist/assets/{mui-BQR0Ruo4.js → mui-DdxImnN0.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-BBbQvoIw.js → page-detail-CWX5S47F-5PyHJMJh.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-Cddsb26L-V1yMMv-q.js → panelSelectedMixin-Cddsb26L-gr9HWaHB.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-OYLDx768.js → radio-default-CiSgisfh-LTUMKU8Y.js} +1 -1
  241. package/dist/assets/{react-BL2s-aF_.js → react-BNr0aXGm.js} +1 -1
  242. package/dist/assets/{react-CvT9aEmE.js → react-CUY5EDxC.js} +1 -1
  243. package/dist/assets/{react-Cp-6oWln.js → react-Cjks14mZ.js} +1 -1
  244. package/dist/assets/{react-DcMbwERn.js → react-DYqwvMeX.js} +2 -2
  245. package/dist/assets/{react-Du36QLI3.js → react-DbLm8gms.js} +1 -1
  246. package/dist/assets/{react-CUdUBRF6.js → react-OxQ1eBeR.js} +1 -1
  247. package/dist/assets/{react-72w_Kluy.js → react-omDkrKl-.js} +1 -1
  248. package/dist/assets/{react-CX9OzKa9.js → react-pyJg34N2.js} +1 -1
  249. package/dist/assets/{recharts-DkFolWRg.js → recharts-Djp9a38d.js} +1 -1
  250. package/dist/assets/{sentry-Ckvw8Zf1.js → sentry-DBSEoG3b.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-rM_NpNHL.js → shield-DOlUxcFf-BOPfGBnx.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-DxETcMNK-ChqFn7jZ.js +1 -0
  253. package/dist/assets/{toChartData-8r0AvOIP-Dhy8B0ZL.js → toChartData-BQYX2C7n-DbxCO4-E.js} +1 -1
  254. package/dist/assets/{uploadAttachment-CTXeI85v-BVATkq8k.js → uploadAttachment-C3cElL9m-QbAR0kQd.js} +1 -1
  255. package/dist/assets/{uploadReceipts-Dge0cNF1-nRZK_a0M.js → uploadReceipts-Dge0cNF1-BifC32F3.js} +1 -1
  256. package/dist/assets/{url-D8pFj_Ts.js → url-BmxmWAZl.js} +1 -1
  257. package/dist/assets/{url-DCwOBFCk.js → url-DITb-guK.js} +1 -1
  258. package/dist/assets/{useLongPress-GCK2COYQ-BkrNXw3e.js → useLongPress-GCK2COYQ-CaFh8omD.js} +1 -1
  259. package/dist/assets/{usp-line-BBd1wKwW-54Q8nh58.js → usp-line-BBd1wKwW-CpqqX4MO.js} +1 -1
  260. package/dist/assets/{utils-B4eJ0QQL.js → utils-rIQAYtge.js} +1 -1
  261. package/dist/assets/{zeni-epic-state-BnsQ52n7.js → zeni-epic-state-1oOVJQJ4.js} +3 -3
  262. package/dist/index.html +1 -1
  263. package/package.json +2 -2
  264. package/dist/assets/AccountInfoPage-CwOgUpjY-CG0ESFTT.js +0 -18
  265. package/dist/assets/ChargeCardPromoPage-CSx0tLTh-BsQndE31.js +0 -222
  266. package/dist/assets/CustomerOnboardingContainerPage-BRmWV-NF-CTVp5vU-.js +0 -1
  267. package/dist/assets/EntityDetailPage-C6UdR7oJ-COx1heor.js +0 -18
  268. package/dist/assets/GlobalReviewListPage-DFhcVK4y-DV_nZHys.js +0 -291
  269. package/dist/assets/MagicLinkACHDetailsPage-DhFoinUr-BKHQrprB.js +0 -1
  270. package/dist/assets/MagicLinkDomesticWireDetailsPage-BUX5Ve2X-CKqNdN5U.js +0 -1
  271. package/dist/assets/MagicLinkInternationalWireDetailsPage-BmtqDOUO-CMDMqnYA.js +0 -1
  272. package/dist/assets/OpExByVendorPage-D1ehVVFD-Dc7GFqIq.js +0 -100
  273. package/dist/assets/ReimbursementApprovalRuleDetailPage-BRUlJa_D-yH6i72Z5.js +0 -32
  274. package/dist/assets/TimeframeSwitcher-C26tc1sm-Eg22Wb7g.js +0 -31
  275. package/dist/assets/VendorACHDetailsPage-BNcSYRzd-Kp1xh3I0.js +0 -1
  276. package/dist/assets/VendorDomesticWireDetailsPage-KZSt69vF-CigCqUX0.js +0 -1
  277. package/dist/assets/VendorFirstReviewPage-DJap4HA2-DP0KML1b.js +0 -730
  278. package/dist/assets/mapLoadingInProgressToTreeNode-DWJx3AOd-DyMnZ_nG.js +0 -1
  279. package/dist/assets/mapSpacerToTreeNode-CKbbOrFj-B8jOHJ4H.js +0 -1
  280. package/dist/assets/mapTimeframeBalancesToTreeNode-BpaMuUED-DrbIaTMF.js +0 -1
  281. package/dist/assets/mapTimeframeBalancesToTreeNode-jq979PpH-D251JRiH.js +0 -1
  282. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-6A-QxQzl-WsH6ynl8.js +0 -1
  283. package/dist/assets/toCOABalancesWithID-CxmuqRLi-BeWRvmKl.js +0 -1
@@ -1,31 +1,31 @@
1
- import{J as Ct,ax as Tt,x as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as le,fd as At,fe as Mt,ff as Bt,fg as Ft,aP as A,fh as Lt,ab as j,fi as Rt,fj as Me,fk as Be,fl as Fe,w as K,fm as O,p as S,fn as zt,fo as E,fp as W,fq as Nt,fr as Ot,bU as Le,o as n,aS as Et,u as s,F as Wt,ah as _t,c3 as Zt,H as Ht,a as Vt,fs as Yt,cj as Gt,am as se,an as ce,ft as Kt,fu as Ut,bj as qt,c as Jt,ba as Xt,fv as Qt,ar as et,bL as en,aj as tt,bu as tn,fw as nn}from"./index-C9hDAJ7o.js";import{a as Z}from"./sentry-Ckvw8Zf1.js";import{n as i}from"./mui-BQR0Ruo4.js";import{bo as Re,bm as ze,bH as I,bN as an,FH as ln,bL as oe,bP as on}from"./zeni-epic-state-BnsQ52n7.js";import{t as rn,o as dn}from"./LowBalancePopup-DXPPHYS1-CB0hADnS.js";import{S as _}from"./LabeledText-H1pSTEtd-BHLnDTFr.js";import"./liveblocks-NP7ye8lf.js";import"./core-XAP_yXKl.js";import"./recharts-DkFolWRg.js";import"./lottie-DhXcx4Hv.js";import"./analytics-Dm6Rdmk5.js";import"./lexical-CgNStNGD.js";import"./utils-B4eJ0QQL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="bd501de3-677a-45c4-98e8-cd9b7627ef27",e._sentryDebugIdIdentifier="sentry-dbid-bd501de3-677a-45c4-98e8-cd9b7627ef27")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Ht("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[y,f]=Z.useState(!1),M=()=>{f(!1)},C=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Kt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:X,retryPayment:st})=>{const d=Ct(),c=Tt(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(d),z=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(C,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:d,children:t.jsx(Ln,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[z,Q,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&H?.code?H:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&H?.code?H:P,ne=()=>{me()},we=()=>{me()},V=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=Re(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,Y,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(T),endDate:oe(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Te=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Te,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Te,De,Ie,Pe,ke,Ae)}}},Se=()=>{Ce===!0&&G(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Lt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:V?.format(T)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ve,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ve,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Vn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Rt(l);return l!=null?t.jsx(Hn,{children:nt.includes(d)?t.jsxs(Ye,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(qe,{children:t.jsx(Je,{})}),t.jsx(q,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(q,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(T)]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ye,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(qe,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(q,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(q,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(T)]}),t.jsx(Xe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ge,{children:a.pay}),t.jsx(Ke,{children:t.jsx(Fe,{amount:gt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ge,{children:a.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(U,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!g&&V!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:V.format(T),additionalInfoLabel:`${a.estimatedArrival}${oe(on(V.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(T)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(U,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(He,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(He,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Re(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,Y,d)}},primaryBtn:{label:_e(b,Y,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?G(!0):Se()},style:{width:Ze(!0,k,b,Y,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Le,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Kn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ze=(e,y,f,M,C)=>f?128:y&&!e&&C==="small"?"auto":M?165:m.footerButtonWidth.value(C),pn=i(en)`
1
+ import{J as Ct,ax as Tt,x as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as le,fd as At,fe as Mt,ff as Bt,fg as Ft,aP as A,fh as Lt,ab as j,fi as Rt,fj as Me,fk as Be,fl as Fe,w as K,fm as O,p as S,fn as zt,fo as E,fp as W,fq as Nt,fr as Ot,bU as Le,o as n,aS as Et,u as d,F as Wt,ah as _t,c3 as Zt,H as Ht,a as Vt,fs as Yt,cj as Gt,am as de,an as ce,ft as Kt,fu as Ut,bj as qt,c as Jt,ba as Xt,fv as Qt,ar as et,bL as en,aj as tt,bu as tn,fw as nn}from"./index-Dw_MX6AZ.js";import{a as Z}from"./sentry-DBSEoG3b.js";import{n as a}from"./mui-DdxImnN0.js";import{bo as Re,bm as ze,bH as I,bN as an,FH as ln,bL as oe,bP as on}from"./zeni-epic-state-1oOVJQJ4.js";import{t as rn,o as sn}from"./LowBalancePopup-BD9saCcf-C9aiJowo.js";import{S as _}from"./LabeledText-tLPpd4Wp-Cw2ZTitB.js";import"./liveblocks-Dv7Vdu8a.js";import"./core-HDqpewC7.js";import"./recharts-Djp9a38d.js";import"./lottie-V1lTNkDB.js";import"./analytics-DvsRx7_o.js";import"./lexical-CWcQ8pGO.js";import"./utils-rIQAYtge.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="87a991cc-10ba-4b31-ba12-690c26bc2cdb",e._sentryDebugIdIdentifier="sentry-dbid-87a991cc-10ba-4b31-ba12-690c26bc2cdb")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Ht("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[y,f]=Z.useState(!1),M=()=>{f(!1)},C=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Kt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},da=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:X,retryPayment:dt})=>{const s=Ct(),c=Tt(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(s),z=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(C,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:s,children:t.jsx(Ln,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[z,Q,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&H?.code?H:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&H?.code?H:P,ne=()=>{me()},we=()=>{me()},V=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,Y=y.allApprovalRules.length>0,gt=Re(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{st(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,Y,e.isBillMarkedForRetry),wt=()=>g?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(T),endDate:oe(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ie!=null){const Te=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Te,De,Ie,Pe,ke,Ae):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Te,De,Ie,Pe,ke,Ae)}}},Se=()=>{Ce===!0&&G(!1),e.isBillMarkedForRetry===!0?(dt(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Lt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:V?.format(T)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:s,style:it,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ve,{windowSize:s,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ve,{windowSize:s,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Vn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Rt(l);return l!=null?t.jsx(Hn,{children:nt.includes(s)?t.jsxs(Ye,{windowSize:s,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(qe,{children:t.jsx(Je,{})}),t.jsx(q,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(q,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(T)]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ye,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(qe,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(q,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(q,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(T)]}),t.jsx(Xe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ge,{children:i.pay}),t.jsx(Ke,{children:t.jsx(Fe,{amount:gt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ge,{children:i.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:i.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(U,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:i.paymentMethod,width:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!g&&V!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:i.paymentDate,width:R},style:{width:"auto"},value:V.format(T),additionalInfoLabel:`${i.estimatedArrival}${oe(on(V.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(U,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:i.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:i.paymentType,width:R},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(He,{children:[t.jsx(se,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(He,{children:[t.jsx(se,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(se,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Re(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,Y,s)}},primaryBtn:{label:_e(b,Y,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?G(!0):Se()},style:{width:Ze(!0,k,b,Y,s)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:s,children:t.jsx(Le,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Kn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},_e=(e,y,f)=>e?i.paymentOutsideZeni.markAsPaid:f===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,Ze=(e,y,f,M,C)=>f?128:y&&!e&&C==="small"?"auto":M?165:m.footerButtonWidth.value(C),pn=a(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
5
5
  &:hover {
6
6
  color: ${e=>e.theme.colors.primary};
7
7
  }
8
- `,He=i(tt)`
8
+ `,He=a(tt)`
9
9
  display: flex;
10
10
  justify-content: space-between;
11
11
  padding-bottom: ${n.sp1};
12
- `,re=i.div`
12
+ `,re=a.div`
13
13
  color: ${e=>e.theme.colors.brandColorPearl};
14
- `,de=i.div`
14
+ `,se=a.div`
15
15
  color: ${e=>e.theme.colors.hero};
16
- `,un=i(tt)`
16
+ `,un=a(tt)`
17
17
  display: flex;
18
18
  justify-content: space-between;
19
19
  padding-top: ${n.sp1};
20
- `,yn=i.div``,hn=i.div`
20
+ `,yn=a.div``,hn=a.div`
21
21
  background-color: ${S.neutralGrey3Dark};
22
22
  height: 1px;
23
23
  width: 280px;
24
- `,fn=i.div``,gn=i.div`
24
+ `,fn=a.div``,gn=a.div`
25
25
  display: flex;
26
26
  width: 100%;
27
27
  box-sizing: border-box;
28
- `,xn=i.div`
28
+ `,xn=a.div`
29
29
  width: 100%;
30
30
  padding: ${n.sp3};
31
31
  display: flex;
@@ -36,30 +36,30 @@ import{J as Ct,ax as Tt,x as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as
36
36
  border-radius: ${n.sp2};
37
37
  color: ${e=>e.theme.colors.hero};
38
38
  margin-bottom: ${n.sp2};
39
- `,bn=i(et)`
39
+ `,bn=a(et)`
40
40
  gap: ${n.sp1};
41
41
  display: flex;
42
42
  width: 100%;
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  align-items: center;
45
- `,wn=i(et)`
45
+ `,wn=a(et)`
46
46
  display: flex;
47
47
  width: calc(100% - 176px);
48
48
  justify-content: flex-end;
49
49
  color: ${e=>e.theme.colors.primary};
50
- `,$n=i.div`
50
+ `,$n=a.div`
51
51
  display: flex;
52
52
  flex-direction: column;
53
53
  width: 100%;
54
54
  height: 100%;
55
- `,vn=i.div`
55
+ `,vn=a.div`
56
56
  display: flex;
57
57
  flex-grow: 1;
58
58
  flex-direction: column;
59
59
  margin-left: ${e=>m.reviewContainerMarginLeft.valuePx(e.windowSize)};
60
60
  margin-right: ${e=>m.reviewContainerMarginRight.valuePx(e.windowSize)};
61
61
  padding-top: ${n.sp3};
62
- `,jn=i.div`
62
+ `,jn=a.div`
63
63
  display: flex;
64
64
  flex-direction: column;
65
65
  background-color: ${e=>e.theme.colors.grey5};
@@ -68,21 +68,21 @@ import{J as Ct,ax as Tt,x as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as
68
68
  border-radius: ${n.sp2};
69
69
  margin-bottom: ${n.sp3};
70
70
  margin-top: ${n.sp3};
71
- `,U=i.div`
71
+ `,U=a.div`
72
72
  display: flex;
73
73
  flex: 1;
74
74
  background-color: ${e=>e.theme.colors.grey3};
75
75
  min-height: 1px;
76
76
  max-height: 1px;
77
- `,Ve=i(Vt)`
77
+ `,Ve=a(Vt)`
78
78
  color: ${e=>e.theme.colors.primary};
79
- ${e=>`${sn.sectionTitle.style(e.windowSize)}`};
79
+ ${e=>`${dn.sectionTitle.style(e.windowSize)}`};
80
80
  margin-left: ${e=>m.sectionTitleMarginLeft.valuePx(e.windowSize)};
81
- `,Sn=i.div`
81
+ `,Sn=a.div`
82
82
  display: flex;
83
83
  margin-bottom: ${n.sp3};
84
84
  margin-top: ${n.sp3};
85
- `,Cn=i.div`
85
+ `,Cn=a.div`
86
86
  display: flex;
87
87
  flex-direction: column;
88
88
  border-radius: ${n.sp2};
@@ -90,46 +90,46 @@ import{J as Ct,ax as Tt,x as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as
90
90
  background-color: ${e=>e.theme.colors.grey5};
91
91
  border: 1px solid ${e=>e.theme.colors.grey3};
92
92
  box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
93
- `,Tn=i.div`
93
+ `,Tn=a.div`
94
94
  background-color: ${S.alertLight};
95
95
  border-radius: ${n.sp2};
96
96
  width: 100%;
97
97
  display: flex;
98
- `,Dn=i.div`
98
+ `,Dn=a.div`
99
99
  display: flex;
100
100
  flex-direction: column;
101
101
  padding-left: ${n.sp2};
102
- `,In=i(se)`
102
+ `,In=a(de)`
103
103
  padding-bottom: ${n.sp3};
104
104
  color: ${S.brandColorGoldDark};
105
- `,Pn=i(Gt)`
105
+ `,Pn=a(Gt)`
106
106
  padding-top: ${n.sp3};
107
107
  color: ${S.brandColorGoldDark};
108
- `,Ye=i.div`
108
+ `,Ye=a.div`
109
109
  display: flex;
110
110
  flex-direction: ${e=>nt.includes(e.windowSize)?"column":"row"};
111
111
  width: 100%;
112
- `,kn=i.div`
112
+ `,kn=a.div`
113
113
  display: flex;
114
114
  justify-content: space-between;
115
115
  align-items: center;
116
116
  column-gap: ${n.sp1};
117
- `,An=i.div`
117
+ `,An=a.div`
118
118
  display: flex;
119
119
  column-gap: ${n.sp2};
120
120
  align-items: center;
121
- `,Mn=i.div`
121
+ `,Mn=a.div`
122
122
  display: flex;
123
123
  padding-top: ${n.sp3};
124
- `,Ge=i(Jt)`
124
+ `,Ge=a(Jt)`
125
125
  display: flex;
126
126
  color: ${e=>e.theme.colors.hero};
127
127
  margin-right: ${n.sp1};
128
- `,Ke=i(Xt)`
128
+ `,Ke=a(Xt)`
129
129
  display: flex;
130
130
  color: ${e=>e.theme.colors.primary};
131
131
  margin-right: ${n.sp1};
132
- `,Ue=i(Zt)`
132
+ `,Ue=a(Zt)`
133
133
  cursor: pointer;
134
134
  color: ${e=>e.theme.colors.hero};
135
135
  width: 20px;
@@ -137,9 +137,9 @@ import{J as Ct,ax as Tt,x as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as
137
137
  &:hover {
138
138
  color: ${e=>e.theme.colors.primary};
139
139
  }
140
- `,Bn=i.div`
140
+ `,Bn=a.div`
141
141
  margin-bottom: ${n.sp3};
142
- `,Fn=i.div`
142
+ `,Fn=a.div`
143
143
  display: flex;
144
144
  align-items: center;
145
145
  margin-right: ${e=>e.showAutofill===!0?n.sp8:"unset"};
@@ -152,23 +152,23 @@ import{J as Ct,ax as Tt,x as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as
152
152
  padding-left: ${n.sp0};
153
153
  z-index: 2;
154
154
  background-color: ${e=>e.theme.colors.grey4};
155
- `,Ln=i(_t)`
155
+ `,Ln=a(_t)`
156
156
  height: ${n.sp3};
157
157
  width: ${n.sp3};
158
158
  color: ${e=>e.theme.colors.hero};
159
- `,Rn=i.span`
159
+ `,Rn=a.span`
160
160
  display: flex;
161
161
  align-items: center;
162
162
  margin-left: ${n.sp2};
163
163
  margin-top: ${e=>m.iconContainerMarginTop.valuePx(e.size)};
164
164
  align-self: ${e=>e.size==="small"?"baseline":"center"};
165
- `,zn=i(ce)`
165
+ `,zn=a(ce)`
166
166
  color: ${e=>e.theme.colors.grey1};
167
167
  display: flex;
168
168
  flex-wrap: wrap;
169
169
  justify-content: center;
170
170
  align-items: center;
171
- `,Nn=i.a`
171
+ `,Nn=a.a`
172
172
  color: ${e=>e.theme.colors.grey1};
173
173
  text-decoration: underline;
174
174
  margin-right: ${n.sp1};
@@ -176,7 +176,7 @@ import{J as Ct,ax as Tt,x as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as
176
176
  &:hover {
177
177
  color: ${e=>e.theme.colors.primary};
178
178
  }
179
- `,On=i.div`
179
+ `,On=a.div`
180
180
  cursor: ${e=>e.isDisabled?"default":"pointer"};
181
181
  display: flex;
182
182
  flex-direction: row;
@@ -189,49 +189,49 @@ import{J as Ct,ax as Tt,x as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as
189
189
  color: ${e=>e.isDisabled?e.theme.colors.hero:e.theme.colors.primary};
190
190
  }
191
191
  }
192
- `,En=i.div`
192
+ `,En=a.div`
193
193
  width: ${n.sp4};
194
194
  height: ${n.sp4};
195
195
  display: flex;
196
- `,qe=i.div`
196
+ `,qe=a.div`
197
197
  cursor: default;
198
198
  display: flex;
199
199
  align-items: center;
200
200
  margin-right: ${n.sp1};
201
- `,Je=i(qt)`
201
+ `,Je=a(qt)`
202
202
  cursor: pointer;
203
203
  width: ${n.sp4};
204
204
  height: ${n.sp4};
205
205
  color: ${e=>e.theme.colors.hero};
206
- `,q=i(se)`
206
+ `,q=a(de)`
207
207
  display: flex;
208
208
  color: ${e=>e.theme.colors.hero};
209
209
  align-items: center;
210
210
  min-width: 142px;
211
211
  flex-grow: 1;
212
- `,Xe=i(se)`
212
+ `,Xe=a(de)`
213
213
  display: flex;
214
214
  color: ${e=>e.theme.colors.primary};
215
215
  align-items: center;
216
216
  margin-right: ${e=>m.infoMarginRight.valuePx(e.windowSize)};
217
217
  min-width: ${e=>m.infoMinWidth.valuePx(e.windowSize)};
218
218
  justify-content: flex-end;
219
- `,Wn=i.div`
219
+ `,Wn=a.div`
220
220
  display: flex;
221
221
  cursor: pointer;
222
222
  column-gap: ${n.sp1};
223
223
  margin-left: ${n.sp5};
224
- `,Qe=i.div`
224
+ `,Qe=a.div`
225
225
  width: 120px;
226
226
  display: flex;
227
227
  justify-content: flex-end;
228
228
  align-items: center;
229
- `,_n=i.div`
229
+ `,_n=a.div`
230
230
  display: flex;
231
231
  flex-grow: 1;
232
232
  cursor: pointer;
233
233
  width: 100%;
234
- `,J=i(ce)`
234
+ `,J=a(ce)`
235
235
  display: flex;
236
236
  color: ${e=>e.borderColor};
237
237
  height: 20px;
@@ -247,31 +247,31 @@ import{J as Ct,ax as Tt,x as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as
247
247
  padding: 1px 6px;
248
248
  border: ${e=>`1px solid ${e.borderColor}`};
249
249
  border-radius: ${n.sp1};
250
- `,Zn=i.div`
250
+ `,Zn=a.div`
251
251
  display: flex;
252
252
  flex-direction: column;
253
- `,Hn=i.div`
253
+ `,Hn=a.div`
254
254
  display: flex;
255
255
  width: 100%;
256
256
  flex-flow: column;
257
257
  padding-top: ${n.sp2};
258
258
  padding-bottom: ${n.sp2};
259
259
  border-bottom: ${e=>`1px solid ${e.theme.colors.grey3}`};
260
- `,Vn=i(ce)`
260
+ `,Vn=a(ce)`
261
261
  margin-top: ${n.sp3};
262
262
  color: ${S.alert};
263
- `,Yn=i(Yt)`
263
+ `,Yn=a(Yt)`
264
264
  min-width: ${n.sp4};
265
265
  height: ${n.sp4};
266
266
  width: ${n.sp4};
267
267
  margin-top: ${n.sp3};
268
268
  margin-left: ${n.sp4};
269
269
  color: ${S.brandColorGoldDark};
270
- `,Gn=i.div`
270
+ `,Gn=a.div`
271
271
  display: flex;
272
272
  justify-content: flex-end;
273
273
  margin-right: ${e=>m.footerRightIconMarginRight.valuePx(e.windowSize)};
274
- `,Kn=i(tn)`
274
+ `,Kn=a(tn)`
275
275
  cursor: pointer;
276
276
  color: ${e=>e.theme.colors.hero};
277
277
  width: ${n.sp4};
@@ -279,7 +279,7 @@ import{J as Ct,ax as Tt,x as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as
279
279
  &:hover {
280
280
  color: ${e=>e.theme.colors.primary};
281
281
  }
282
- `,Un=i.div`
282
+ `,Un=a.div`
283
283
  display: flex;
284
284
  cursor: pointer;
285
285
  color: ${e=>e.theme.colors.grey1};
@@ -287,4 +287,4 @@ import{J as Ct,ax as Tt,x as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as
287
287
  &:hover {
288
288
  color: ${e=>e.theme.colors.primary};
289
289
  }
290
- `;export{si as default};
290
+ `;export{da as default};
@@ -1,4 +1,4 @@
1
- import{J as P,V as i,ab as m,o as r,aS as L,x as d,b as M,H as I,a as C,p as s,am as b,cE as W,k as D,aj as j,bi as R,u as n,eo as G,h as H,i$ as _,kc as J}from"./index-C9hDAJ7o.js";import{n as t}from"./mui-BQR0Ruo4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="5931a5d6-f89b-43fd-9bc4-c82d28b11be4",e._sentryDebugIdIdentifier="sentry-dbid-5931a5d6-f89b-43fd-9bc4-c82d28b11be4")}catch{}})();const a={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},A={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const l=P();return i.jsxs(V,{children:[i.jsx(X,{windowSize:l,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(O,{windowSize:l,children:[i.jsxs(q,{windowSize:l,children:[i.jsx(K,{children:i.jsx(N,{windowSize:l,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(U,{windowSize:l,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>B(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:F(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?i.jsxs(u,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(u,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},F=e=>e.reviewStatus.isLoading?i.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),V=t.div`
1
+ import{J as P,V as i,ab as m,o as r,aS as L,x as d,b as M,H as I,a as C,p as s,am as b,cE as W,k as D,aj as j,bi as R,u as n,eo as G,h as H,i$ as _,kc as J}from"./index-Dw_MX6AZ.js";import{n as t}from"./mui-DdxImnN0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="5931a5d6-f89b-43fd-9bc4-c82d28b11be4",e._sentryDebugIdIdentifier="sentry-dbid-5931a5d6-f89b-43fd-9bc4-c82d28b11be4")}catch{}})();const a={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},A={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const l=P();return i.jsxs(V,{children:[i.jsx(X,{windowSize:l,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(O,{windowSize:l,children:[i.jsxs(q,{windowSize:l,children:[i.jsx(K,{children:i.jsx(N,{windowSize:l,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(U,{windowSize:l,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>B(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:F(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?i.jsxs(u,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(u,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},F=e=>e.reviewStatus.isLoading?i.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),V=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1,4 +1,4 @@
1
- import{eT as f,eU as h,V as s,bU as g,o,ab as l,F as b,ao as x,aj as c}from"./index-C9hDAJ7o.js";import{n as d}from"./mui-BQR0Ruo4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="82007ed3-1f11-4cbe-9dcf-6bceed265128",e._sentryDebugIdIdentifier="sentry-dbid-82007ed3-1f11-4cbe-9dcf-6bceed265128")}catch{}})();const{hyphen:i}=b.getLocalizedStrings().common.strings,y=d.div``,m=d.div`
1
+ import{eT as f,eU as h,V as s,bU as g,o,ab as l,F as b,ao as x,aj as c}from"./index-Dw_MX6AZ.js";import{n as d}from"./mui-DdxImnN0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="82007ed3-1f11-4cbe-9dcf-6bceed265128",e._sentryDebugIdIdentifier="sentry-dbid-82007ed3-1f11-4cbe-9dcf-6bceed265128")}catch{}})();const{hyphen:i}=b.getLocalizedStrings().common.strings,y=d.div``,m=d.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{aR as K,ir as te,gL as me,eF as Je,is as Me,a9 as _e,it as Ve,cH as Pe,cI as Fe,V as a,ad as Ne,cr as qe,cs as Re,ct as Be,aS as We,iu as ze,iv as Ue,F as be,aa as pe,iw as Se,ix as $e,cL as Ge,J as Ke,iL as He,gQ as ue,u as B,p as De,x as ye,cM as Xe,iy as Ye,iz as Ze,iA as Qe,o as V}from"./index-C9hDAJ7o.js";import{a as f}from"./sentry-Ckvw8Zf1.js";import{n as z}from"./mui-BQR0Ruo4.js";import{Ga as et,Gb as tt}from"./zeni-epic-state-BnsQ52n7.js";import{r as lt,s as at,i as st,n as ot}from"./ScheduleSequenceTable-OEJBqdqG-CB3cYmnz.js";import"./liveblocks-NP7ye8lf.js";import"./core-XAP_yXKl.js";import"./recharts-DkFolWRg.js";import"./lottie-DhXcx4Hv.js";import"./analytics-Dm6Rdmk5.js";import"./lexical-CgNStNGD.js";import"./utils-B4eJ0QQL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="9e12ca9a-893e-4735-b80c-c38b36c70798",e._sentryDebugIdIdentifier="sentry-dbid-9e12ca9a-893e-4735-b80c-c38b36c70798")}catch{}})();const W={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=z.div`
1
+ import{aR as K,ir as te,gL as me,eF as Je,is as Me,a9 as _e,it as Ve,cH as Pe,cI as Fe,V as a,ad as Ne,cr as qe,cs as Re,ct as Be,aS as We,iu as ze,iv as Ue,F as be,aa as pe,iw as Se,ix as $e,cL as Ge,J as Ke,iL as He,gQ as ue,u as B,p as De,x as ye,cM as Xe,iy as Ye,iz as Ze,iA as Qe,o as V}from"./index-Dw_MX6AZ.js";import{a as f}from"./sentry-DBSEoG3b.js";import{n as z}from"./mui-DdxImnN0.js";import{Ga as et,Gb as tt}from"./zeni-epic-state-1oOVJQJ4.js";import{r as lt,s as at,i as st,n as ot}from"./ScheduleSequenceTable-DgG11IBi-DBLZmDeR.js";import"./liveblocks-Dv7Vdu8a.js";import"./core-HDqpewC7.js";import"./recharts-Djp9a38d.js";import"./lottie-V1lTNkDB.js";import"./analytics-DvsRx7_o.js";import"./lexical-CWcQ8pGO.js";import"./utils-rIQAYtge.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="4eb1c41f-c801-4a01-b11a-d04a6521e0f1",e._sentryDebugIdIdentifier="sentry-dbid-4eb1c41f-c801-4a01-b11a-d04a6521e0f1")}catch{}})();const W={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=z.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{aR as F,ir as Q,gL as Ie,eF as Je,is as we,a9 as Le,it as Me,cH as Ve,cI as Pe,V as a,ad as _e,cr as Fe,cs as $e,ct as Be,aS as Ne,iu as ze,iv as Re,F as De,aa as re,iw as pe,ix as Ue,cL as We,J as qe,gQ as me,u as Z,p as Ke,x as Ge,iy as He,iz as Ye,iA as Xe,o as w}from"./index-C9hDAJ7o.js";import{a as D}from"./sentry-Ckvw8Zf1.js";import{n as P}from"./mui-BQR0Ruo4.js";import{Ga as Qe,Gb as Ze,bL as et}from"./zeni-epic-state-BnsQ52n7.js";import{r as tt,s as lt,i as at,n as st}from"./ScheduleSequenceTable-OEJBqdqG-CB3cYmnz.js";import"./liveblocks-NP7ye8lf.js";import"./core-XAP_yXKl.js";import"./recharts-DkFolWRg.js";import"./lottie-DhXcx4Hv.js";import"./analytics-Dm6Rdmk5.js";import"./lexical-CgNStNGD.js";import"./utils-B4eJ0QQL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="48811cda-80ee-4b3c-8373-5afccda02420",e._sentryDebugIdIdentifier="sentry-dbid-48811cda-80ee-4b3c-8373-5afccda02420")}catch{}})();const z={labelWidth:new Ge(160,160,160)},nt=P.div`
1
+ import{aR as F,ir as Q,gL as Ie,eF as Je,is as we,a9 as Le,it as Me,cH as Ve,cI as Pe,V as a,ad as _e,cr as Fe,cs as $e,ct as Be,aS as Ne,iu as ze,iv as Re,F as De,aa as re,iw as pe,ix as Ue,cL as We,J as qe,gQ as fe,u as Z,p as Ke,x as Ge,iy as He,iz as Ye,iA as Xe,o as w}from"./index-Dw_MX6AZ.js";import{a as D}from"./sentry-DBSEoG3b.js";import{n as P}from"./mui-DdxImnN0.js";import{Ga as Qe,Gb as Ze,bL as et}from"./zeni-epic-state-1oOVJQJ4.js";import{r as tt,s as lt,i as at,n as st}from"./ScheduleSequenceTable-DgG11IBi-DBLZmDeR.js";import"./liveblocks-Dv7Vdu8a.js";import"./core-HDqpewC7.js";import"./recharts-Djp9a38d.js";import"./lottie-V1lTNkDB.js";import"./analytics-DvsRx7_o.js";import"./lexical-CWcQ8pGO.js";import"./utils-rIQAYtge.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="509a255b-3862-4da3-816e-f2fbabe0d7d0",e._sentryDebugIdIdentifier="sentry-dbid-509a255b-3862-4da3-816e-f2fbabe0d7d0")}catch{}})();const z={labelWidth:new Ge(160,160,160)},nt=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -18,7 +18,7 @@ import{aR as F,ir as Q,gL as Ie,eF as Je,is as we,a9 as Le,it as Me,cH as Ve,cI
18
18
  display: flex;
19
19
  flex-direction: column;
20
20
  margin: ${w.sp4} ${w.sp8} ${w.sp0} ${w.sp8};
21
- `,$=(e,s)=>`${e}.${s}`;function dt({sectionId:e,jeScheduledTransaction:s,updateStatus:p,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:g,allMonthOptions:o,uncategorizedAccounts:m,selectedAccount:r,selectedClass:y,selectedDate:L,selectedMonths:I,selectedPostingDay:O,lastDayOfMonth:A,isDisabled:f,allowCreateSchedule:b,onCreateSchedule:u,onDelete:ae,onMarkAsComplete:_}){const{resetField:R}=We(),U=$(e,"scheduleExpenseCategory"),W=$(e,"scheduleClass"),se=$(e,"startDate"),B=$(e,"postingDate"),C=$(e,"months"),S=De.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,ne=c=>t.filter(N=>N.qboId===c)[0]?.qboId,oe=c=>i.filter(N=>N.classId===c)[0]?.accountingClassNumber,q={valueContainer:c=>({...c,overflow:"unset"})},J=qe(),v=ct({startDate:s.baseTransaction.date,endDate:s.baseTransaction.date.add(1,"year")}),h=()=>{R(B)},n=O==null&&A==null?void 0:A===!0?"lastDayOfMonth":"day",x=c=>[m.expense?.qboId,m.income?.qboId].includes(c),E=()=>{s.jeScheduleId!=null&&ae(s.jeScheduleId)},K=s.scheduledJournalEntry.flatMap(c=>c.error);return a.jsxs(ot,{children:[a.jsx(at,{isUpdating:p==="In-Progress",status:s.status.code,jeScheduleId:s.jeScheduleId,allowCreateSchedule:b,onDelete:E,onMarkAsComplete:_,onCreateSchedule:u}),a.jsx(re,{controller:b===!0,children:a.jsxs(nt,{children:[a.jsx(me,{isDisabled:K.includes("debit_category_deleted")?void 0:f,isLoading:!1,label:{label:S.expenseCategory,width:z.labelWidth.value(J)},groupedSingleSelectField:{customPlaceholderColor:K.includes("debit_category_deleted")?Ke.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:U,placeholder:S.expenseCategoryPlaceholder,valueToId:c=>ne(c),defaultValue:{selectedOption:r,allOptions:l},registerOptions:{required:!0,validate:c=>!!c.selectedOption},customStyleConfig:q},disableCurrentOption:x,style:{borderTopLeftRadius:Z[2],borderTopRightRadius:Z[2]}}),a.jsx(ee,{}),a.jsx(me,{isDisabled:f,isLoading:!1,label:{label:S.class,width:z.labelWidth.value(J)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:W,placeholder:S.classPlaceholder,valueToId:c=>oe(c),defaultValue:{selectedOption:y,allOptions:g},registerOptions:{required:!0,validate:c=>!!c.selectedOption},customStyleConfig:q},style:{borderTopLeftRadius:Z[0],borderTopRightRadius:Z[0]}}),a.jsx(ee,{}),a.jsx(He,{label:{label:S.startMonth,width:z.labelWidth.value(J)},monthSelectorField:{name:se,placeholder:S.startMonthPlaceholder,defaultValue:L,showDownChevron:!1,isDisabled:f,monthsAndYears:v},isDisabled:f}),a.jsx(ee,{}),a.jsx(st,{label:{label:S.postingDate,width:z.labelWidth.value(J)},isDisabled:f,dayOfMonthField:{placeholder:S.postingDatePlaceholder,name:B,defaultValue:{type:n,dayOfMonth:O},onSaveClick:()=>{},onCancelClick:h}}),a.jsx(ee,{}),a.jsx(Ye,{label:{label:S.months,width:z.labelWidth.value(J)},singleSelectNumericField:{name:C,isDisabled:f,placeholder:S.monthsPlaceholder,defaultValue:{selectedOption:I!=null?o[I-1]:void 0,allOptions:o},registerOptions:{required:!0,validate:c=>!!c.selectedOption}}})]})}),a.jsx(re,{controller:b===!1,children:a.jsx(Xe,{text:S.scheduleMarkedAsCompleted})})]})}const ct=e=>{const s={},p=e.endDate.year()-e.startDate.year()+1,l=e.endDate.year(),t=e.startDate.year();return{years:Array(p).fill(l).map((i,g)=>{const o=i-g,m=o.toString();let r=[];if(o===t){const y=e.startDate.month();r=e.startDate.localeData().monthsShort(),y!==0&&r.splice(0,y)}else r=et(`${o}-01-01`).localeData().monthsShort();return s[m]=r,m}).reverse(),months:s}},it=P.div`
21
+ `,$=(e,s)=>`${e}.${s}`;function dt({sectionId:e,jeScheduledTransaction:s,updateStatus:p,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:b,allMonthOptions:o,uncategorizedAccounts:f,selectedAccount:r,selectedClass:y,selectedDate:L,selectedMonths:I,selectedPostingDay:O,lastDayOfMonth:A,isDisabled:m,allowCreateSchedule:g,onCreateSchedule:u,onDelete:ae,onMarkAsComplete:_}){const{resetField:R}=We(),U=$(e,"scheduleExpenseCategory"),W=$(e,"scheduleClass"),se=$(e,"startDate"),B=$(e,"postingDate"),C=$(e,"months"),S=De.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,ne=c=>t.filter(N=>N.qboId===c)[0]?.qboId,oe=c=>i.filter(N=>N.classId===c)[0]?.accountingClassNumber,q={valueContainer:c=>({...c,overflow:"unset"})},J=qe(),v=ct({startDate:s.baseTransaction.date,endDate:s.baseTransaction.date.add(1,"year")}),h=()=>{R(B)},n=O==null&&A==null?void 0:A===!0?"lastDayOfMonth":"day",x=c=>[f.expense?.qboId,f.income?.qboId].includes(c),E=()=>{s.jeScheduleId!=null&&ae(s.jeScheduleId)},K=s.scheduledJournalEntry.flatMap(c=>c.error);return a.jsxs(ot,{children:[a.jsx(at,{isUpdating:p==="In-Progress",status:s.status.code,jeScheduleId:s.jeScheduleId,allowCreateSchedule:g,onDelete:E,onMarkAsComplete:_,onCreateSchedule:u}),a.jsx(re,{controller:g===!0,children:a.jsxs(nt,{children:[a.jsx(fe,{isDisabled:K.includes("debit_category_deleted")?void 0:m,isLoading:!1,label:{label:S.expenseCategory,width:z.labelWidth.value(J)},groupedSingleSelectField:{customPlaceholderColor:K.includes("debit_category_deleted")?Ke.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:U,placeholder:S.expenseCategoryPlaceholder,valueToId:c=>ne(c),defaultValue:{selectedOption:r,allOptions:l},registerOptions:{required:!0,validate:c=>!!c.selectedOption},customStyleConfig:q},disableCurrentOption:x,style:{borderTopLeftRadius:Z[2],borderTopRightRadius:Z[2]}}),a.jsx(ee,{}),a.jsx(fe,{isDisabled:m,isLoading:!1,label:{label:S.class,width:z.labelWidth.value(J)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:W,placeholder:S.classPlaceholder,valueToId:c=>oe(c),defaultValue:{selectedOption:y,allOptions:b},registerOptions:{required:!0,validate:c=>!!c.selectedOption},customStyleConfig:q},style:{borderTopLeftRadius:Z[0],borderTopRightRadius:Z[0]}}),a.jsx(ee,{}),a.jsx(He,{label:{label:S.startMonth,width:z.labelWidth.value(J)},monthSelectorField:{name:se,placeholder:S.startMonthPlaceholder,defaultValue:L,showDownChevron:!1,isDisabled:m,monthsAndYears:v},isDisabled:m}),a.jsx(ee,{}),a.jsx(st,{label:{label:S.postingDate,width:z.labelWidth.value(J)},isDisabled:m,dayOfMonthField:{placeholder:S.postingDatePlaceholder,name:B,defaultValue:{type:n,dayOfMonth:O},onSaveClick:()=>{},onCancelClick:h}}),a.jsx(ee,{}),a.jsx(Ye,{label:{label:S.months,width:z.labelWidth.value(J)},singleSelectNumericField:{name:C,isDisabled:m,placeholder:S.monthsPlaceholder,defaultValue:{selectedOption:I!=null?o[I-1]:void 0,allOptions:o},registerOptions:{required:!0,validate:c=>!!c.selectedOption}}})]})}),a.jsx(re,{controller:g===!1,children:a.jsx(Xe,{text:S.scheduleMarkedAsCompleted})})]})}const ct=e=>{const s={},p=e.endDate.year()-e.startDate.year()+1,l=e.endDate.year(),t=e.startDate.year();return{years:Array(p).fill(l).map((i,b)=>{const o=i-b,f=o.toString();let r=[];if(o===t){const y=e.startDate.month();r=e.startDate.localeData().monthsShort(),y!==0&&r.splice(0,y)}else r=et(`${o}-01-01`).localeData().monthsShort();return s[f]=r,f}).reverse(),months:s}},it=P.div`
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  width: 100%;
@@ -34,4 +34,4 @@ import{aR as F,ir as Q,gL as Ie,eF as Je,is as we,a9 as Le,it as Me,cH as Ve,cI
34
34
  `,ht=P.div`
35
35
  display: flex;
36
36
  justify-content: center;
37
- `,fe="scheduleDetailsPage",te="scheduleDetailsSection",le="scheduleDetailsListSection",pt=De.getLocalizedStrings(),{common:k,jeSchedules:{scheduleDetails:mt}}=pt;function kt({analytics:e,controllerUserDetails:s,expenseAutomationSelectedPeriod:p,scheduleDetailsView:l,scheduleTab:t,usedInExpenseAutomation:i,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:o,onMarkAsComplete:m,onNavigateBack:r,onEditAmount:y,onJELinkClick:L,onSave:I,onDelete:O,onDetailPageChange:A,onViewLinkedJE:f,onTransactionClick:b,removeJeScheduleTransactionKey:u}){const[ae,_]=D.useState(!1),R=F(l.updateStatus.fetchState),U=F(l.selectedJEScheduleTransaction?.status.code),W=F(l.deleteStatus.fetchState),[se,B]=D.useState(!1),C=l.scheduleDetailsLocalData.prepaid_expenses,S=F(C.jeScheduleDetails.length),ne=F(C.selectedDate),oe=F(C.selectedDayOfMonth),[q,J]=D.useState(!0),v=l.selectedJEScheduleTransaction?.vendor,h=l.selectedJEScheduleTransaction?.baseTransaction,n=l.selectedJEScheduleTransaction,x=Qe(s.controllers),E=Ze(s.controllerUserIds),K={onOkClick:()=>{_(!1),r()},onCancelClick:()=>{_(!1)}},c=d=>{const T=n?.scheduledJournalEntry[d];h!=null&&T!=null&&n!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:t,transaction:{...Ue(h)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...pe(T)},vendorName:v!=null?v.name:k.strings.hyphen,controllerEmails:x,controllerUserIds:E}),L(d)},N=(d,T)=>{const j=n?.scheduledJournalEntry[T];h!=null&&j!=null&&n!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:pe(j),controllerEmails:x,controllerUserIds:E}),f(d)};D.useEffect(()=>{R==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(h!=null&&n!=null&&e.trackScheduleDetailsSaved(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),i===!0&&n?.jeScheduleTransactionKey!=null&&U==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(n.jeScheduleTransactionKey,{month:p.month,year:p.year}),r())},[U,l.selectedJEScheduleTransaction?.status.code,e,r,p,R,l.updateStatus,u,t,i,n,h,v,x,E]),D.useEffect(()=>{W==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[W,l.deleteStatus,r]);const G=Ie(l.accountListNestedAccountHierarchy),H=Je(l.classListNestedAccountHierarchy),Y=we(t),ue=D.useRef(),M=Le({mode:"all",reValidateMode:"onChange",defaultValues:ie(l,G,H,Y,o.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ie(l,G,H,Y,o.entityAutoCompleteView)}),de=M.watch("scheduleDetailsSection.vendor");D.useEffect(()=>{o.entityAutoCompleteView.fetchState==="Completed"&&ue.current?.(Me(o.entityAutoCompleteView))},[o.entityAutoCompleteView.fetchState]);const ye=(d,T)=>{g.onAutoCompleteInputChange?.(d,"vendor"),ue.current=T},Ce=M.handleSubmit(()=>{I(l.selectedJEScheduleTransaction?.jeScheduleId)}),ge=async(d,T)=>{const j=T[te].vendor;if(d.includes("vendor")){const ce=j?.defaultOptions.map(V=>V.value);if(j?.selectedOption!=null&&ce?.includes(j.selectedOption)!==!0){const V=o.entityAutoCompleteView.vendor.find(ke=>ke.id===j.selectedOption);V!=null&&M.setValue("scheduleDetailsSection.vendor.defaultOptions",[{label:V.name??k.strings.empty,value:V.id}])}}const X=d.includes("amount");if(A(T,X),d.includes("amount")){const ce=d.split(".")[1],V=parseInt(ce);B(!0),y(V,l.selectedJEScheduleTransaction?.jeScheduleId)}};D.useEffect(()=>{let d=!0;const T=M.watch((j,{name:X})=>{X!=null&&j!=null&&Ve(()=>{d&&ge(X,j)})});return()=>{d=!1,T.unsubscribe()}}),D.useEffect(()=>{(S!==C.jeScheduleDetails.length||ne!==C.selectedDate||oe!==C.selectedDayOfMonth)&&se===!0&&(M.resetField(le,{defaultValue:ie(l,G,H,Y,o.entityAutoCompleteView)[le],keepDirty:!1}),B(!1))},[C.jeScheduleDetails.length,C.selectedDate,C.selectedDayOfMonth]),D.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&J(!1)},[l.selectedJEScheduleTransaction?.status.code]);const he=(Pe(M.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&C.jeScheduleDetails.length>0,be=()=>{he===!0?_(!0):(h!=null&&n!=null&&e.trackScheduleDetailsCanceled(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),r())},ve=()=>{l.selectedJEScheduleTransaction!=null&&b({id:l.selectedJEScheduleTransaction?.baseTransaction.id,type:l.selectedJEScheduleTransaction?.baseTransaction.type})},xe=D.useCallback(()=>{J(!0)},[]),Ee=D.useCallback(()=>{h!=null&&n!=null&&e.trackScheduleDetailsMarkedAsCompleted(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),m()},[e,n,m,t,h,v,x,E]),Te=D.useCallback(d=>{h!=null&&n!=null&&e.trackScheduleDetailsDeleted(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),O(d)},[e,n,O,t,h,v,x,E]),je=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(d=>d.error??[]).filter(d=>!!d)??[])?.includes("vendor_deleted")===!0?de?.defaultOptions.find(d=>d.value===de?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name,Oe=a.jsx(ft,{onNavigateBack:be,onTransactionClick:ve,title:je??k.strings.empty}),Ae=a.jsx(rt,{children:a.jsx(_e,{...M,children:a.jsxs("form",{style:{width:"100%"},id:Se(fe),onSubmit:Ce,children:[a.jsx(St,{vendorLoadOptions:ye,vendorField:de,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:o,scheduleDetailsView:l,allAccountOptions:G,allClassOptions:H,allMonthOptions:Y,allowCreateSchedule:q,onEditAmount:y,onDelete:Te,onJELinkClick:c,onViewLinkedJE:N,onMarkAsComplete:Ee,onCreateSchedule:xe}),ae===!0?a.jsx(Fe,{titleComponent:a.jsx(Be,{children:k.confirmationPopup.discardTitle}),descriptionComponent:a.jsx($e,{children:k.confirmationPopup.discardDescription}),primaryButtonText:k.confirmationPopup.discard,secondaryButtonText:k.confirmationPopup.cancel,proceedButtonVariant:"danger",action:K}):null,he===!0?a.jsx(Ne,{formId:Se(fe),primaryBtn:{label:k.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:k.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{_(!0)},style:{minWidth:"82px"}}}):null]})})});return a.jsxs(it,{children:[Oe,Ae]})}function ft({title:e,onNavigateBack:s,onTransactionClick:p}){return a.jsx(Re,{title:e,tooltipTextOnLaunch:mt.showTransactionTooltip,onBackClick:s,onLaunchClick:p,style:{zIndex:3}})}function St({vendorField:e,vendorLoadOptions:s,vendorSearchAutoCompleteActions:p,vendorSearchAutoCompleteData:l,scheduleDetailsView:t,allAccountOptions:i,allClassOptions:g,allMonthOptions:o,allowCreateSchedule:m,onCreateSchedule:r,onMarkAsComplete:y,onEditAmount:L,onDelete:I,onJELinkClick:O,onViewLinkedJE:A}){const f=t.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(b=>b.error??[]).filter(b=>!!b)??[];return t.selectedJEScheduleTransaction!=null?a.jsxs(ut,{children:[a.jsx(ht,{children:a.jsx(tt,{errors:f,vendorLoadOptions:s,vendorField:e,vendorFieldName:$(te,"vendor"),vendorSearchAutoCompleteActions:p,vendorSearchAutoCompleteData:l,transaction:t.selectedJEScheduleTransaction.baseTransaction,vendor:t.selectedJEScheduleTransaction.vendor})}),a.jsx(dt,{sectionId:te,jeScheduledTransaction:t.selectedJEScheduleTransaction,allAccountOptions:i,allAccountList:t.allAccountList,allClassList:t.allClassList,allClassOptions:g,allMonthOptions:o,uncategorizedAccounts:t.uncategorizedAccounts,lastDayOfMonth:t.scheduleDetailsLocalData.prepaid_expenses.lastDayOfMonth,selectedPostingDay:t.scheduleDetailsLocalData.prepaid_expenses.selectedDayOfMonth,selectedMonths:t.scheduleDetailsLocalData.prepaid_expenses.selectedMonths,isDisabled:t.selectedJEScheduleTransaction.jeScheduleId!=null&&t.selectedJEScheduleTransaction.status.code!=="marked_as_completed"&&t.selectedJEScheduleTransaction.status.code!=="draft"?"disabled":void 0,allowCreateSchedule:m,onCreateSchedule:r,onDelete:I,onMarkAsComplete:y,updateStatus:t.deleteStatus.fetchState}),a.jsx(re,{controller:m===!0,children:a.jsx(lt,{sectionId:le,totalAmount:t.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:t.fetchState,scheduleJournalEntries:t.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:t.selectedJEScheduleTransaction.jeScheduleId==null,localData:t.scheduleDetailsLocalData.prepaid_expenses.jeScheduleDetails,uiState:t.uiState,onEditAmount:L,onJELinkClick:O,onViewLinkedJE:A,jeScheduleId:t.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const Se=e=>`${e}_form`,ie=(e,s,p,l,t)=>{const i=e.scheduleDetailsLocalData.prepaid_expenses,g=i.selectedAccount,o=i.selectedVendor,m=o!=null?t.vendor.find(u=>u.zeniId===o.id):void 0,r=g!=null?e.allAccountList.find(u=>u.accountId===g):void 0,y=i.selectedClass,L=y!=null?e.allClassList.find(u=>u.classId===y):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})),A=i.selectedDayOfMonth,f=i.lastDayOfMonth,b=A==null&&f==null?void 0:f===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:r?.qboId,allOptions:s},scheduleClass:{selectedOption:L?.classId,allOptions:p},startDate:i.selectedDate,months:{selectedOption:I,allOptions:l},vendor:{selectedOption:m?.id??o?.id,defaultOptions:ze(t,m??o)},postingDate:{type:b,dayOfMonth:A}},[le]:O}};export{kt as default};
37
+ `,me="scheduleDetailsPage",te="scheduleDetailsSection",le="scheduleDetailsListSection",pt=De.getLocalizedStrings(),{common:k,jeSchedules:{scheduleDetails:ft}}=pt;function kt({analytics:e,controllerUserDetails:s,expenseAutomationSelectedPeriod:p,scheduleDetailsView:l,scheduleTab:t,usedInExpenseAutomation:i,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:o,onMarkAsComplete:f,onNavigateBack:r,onEditAmount:y,onJELinkClick:L,onSave:I,onDelete:O,onDetailPageChange:A,onViewLinkedJE:m,onTransactionClick:g,removeJeScheduleTransactionKey:u}){const[ae,_]=D.useState(!1),R=F(l.updateStatus.fetchState),U=F(l.selectedJEScheduleTransaction?.status.code),W=F(l.deleteStatus.fetchState),[se,B]=D.useState(!1),C=l.scheduleDetailsLocalData.prepaid_expenses,S=F(C.jeScheduleDetails.length),ne=F(C.selectedDate),oe=F(C.selectedDayOfMonth),[q,J]=D.useState(!0),v=l.selectedJEScheduleTransaction?.vendor,h=l.selectedJEScheduleTransaction?.baseTransaction,n=l.selectedJEScheduleTransaction,x=Qe(s.controllers),E=Ze(s.controllerUserIds),K={onOkClick:()=>{_(!1),r()},onCancelClick:()=>{_(!1)}},c=d=>{const T=n?.scheduledJournalEntry[d];h!=null&&T!=null&&n!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:t,transaction:{...Ue(h)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...pe(T)},vendorName:v!=null?v.name:k.strings.hyphen,controllerEmails:x,controllerUserIds:E}),L(d)},N=(d,T)=>{const j=n?.scheduledJournalEntry[T];h!=null&&j!=null&&n!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:pe(j),controllerEmails:x,controllerUserIds:E}),m(d)};D.useEffect(()=>{R==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(h!=null&&n!=null&&e.trackScheduleDetailsSaved(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),i===!0&&n?.jeScheduleTransactionKey!=null&&U==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(n.jeScheduleTransactionKey,{month:p.month,year:p.year}),r())},[U,l.selectedJEScheduleTransaction?.status.code,e,r,p,R,l.updateStatus,u,t,i,n,h,v,x,E]),D.useEffect(()=>{W==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[W,l.deleteStatus,r]);const G=Ie(l.accountListNestedAccountHierarchy),H=Je(l.classListNestedAccountHierarchy),Y=we(t),ue=D.useRef(),M=Le({mode:"all",reValidateMode:"onChange",defaultValues:ie(l,G,H,Y,o.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ie(l,G,H,Y,o.entityAutoCompleteView)}),de=M.watch("scheduleDetailsSection.vendor");D.useEffect(()=>{o.entityAutoCompleteView.fetchState==="Completed"&&ue.current?.(Me(o.entityAutoCompleteView))},[o.entityAutoCompleteView.fetchState]);const ye=(d,T)=>{b.onAutoCompleteInputChange?.(d,"vendor"),ue.current=T},Ce=M.handleSubmit(()=>{I(l.selectedJEScheduleTransaction?.jeScheduleId)}),be=async(d,T)=>{const j=T[te].vendor;if(d.includes("vendor")){const ce=j?.defaultOptions.map(V=>V.value);if(j?.selectedOption!=null&&ce?.includes(j.selectedOption)!==!0){const V=o.entityAutoCompleteView.vendor.find(ke=>ke.id===j.selectedOption);V!=null&&M.setValue("scheduleDetailsSection.vendor.defaultOptions",[{label:V.name??k.strings.empty,value:V.id}])}}const X=d.includes("amount");if(A(T,X),d.includes("amount")){const ce=d.split(".")[1],V=parseInt(ce);B(!0),y(V,l.selectedJEScheduleTransaction?.jeScheduleId)}};D.useEffect(()=>{let d=!0;const T=M.watch((j,{name:X})=>{X!=null&&j!=null&&Ve(()=>{d&&be(X,j)})});return()=>{d=!1,T.unsubscribe()}}),D.useEffect(()=>{(S!==C.jeScheduleDetails.length||ne!==C.selectedDate||oe!==C.selectedDayOfMonth)&&se===!0&&(M.resetField(le,{defaultValue:ie(l,G,H,Y,o.entityAutoCompleteView)[le],keepDirty:!1}),B(!1))},[C.jeScheduleDetails.length,C.selectedDate,C.selectedDayOfMonth]),D.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&J(!1)},[l.selectedJEScheduleTransaction?.status.code]);const he=(Pe(M.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&C.jeScheduleDetails.length>0,ge=()=>{he===!0?_(!0):(h!=null&&n!=null&&e.trackScheduleDetailsCanceled(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),r())},ve=()=>{l.selectedJEScheduleTransaction!=null&&g({id:l.selectedJEScheduleTransaction?.baseTransaction.id,type:l.selectedJEScheduleTransaction?.baseTransaction.type})},xe=D.useCallback(()=>{J(!0)},[]),Ee=D.useCallback(()=>{h!=null&&n!=null&&e.trackScheduleDetailsMarkedAsCompleted(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),f()},[e,n,f,t,h,v,x,E]),Te=D.useCallback(d=>{h!=null&&n!=null&&e.trackScheduleDetailsDeleted(Q({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:v,controllerEmails:x,controllerUserIds:E})),O(d)},[e,n,O,t,h,v,x,E]),je=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(d=>d.error??[]).filter(d=>!!d)??[])?.includes("vendor_deleted")===!0?de?.defaultOptions.find(d=>d.value===de?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name,Oe=a.jsx(mt,{onNavigateBack:ge,onTransactionClick:ve,title:je??k.strings.empty}),Ae=a.jsx(rt,{children:a.jsx(_e,{...M,children:a.jsxs("form",{style:{width:"100%"},id:Se(me),onSubmit:Ce,children:[a.jsx(St,{vendorLoadOptions:ye,vendorField:de,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:o,scheduleDetailsView:l,allAccountOptions:G,allClassOptions:H,allMonthOptions:Y,allowCreateSchedule:q,onEditAmount:y,onDelete:Te,onJELinkClick:c,onViewLinkedJE:N,onMarkAsComplete:Ee,onCreateSchedule:xe}),ae===!0?a.jsx(Fe,{titleComponent:a.jsx(Be,{children:k.confirmationPopup.discardTitle}),descriptionComponent:a.jsx($e,{children:k.confirmationPopup.discardDescription}),primaryButtonText:k.confirmationPopup.discard,secondaryButtonText:k.confirmationPopup.cancel,proceedButtonVariant:"danger",action:K}):null,he===!0?a.jsx(Ne,{formId:Se(me),primaryBtn:{label:k.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:k.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{_(!0)},style:{minWidth:"82px"}}}):null]})})});return a.jsxs(it,{children:[Oe,Ae]})}function mt({title:e,onNavigateBack:s,onTransactionClick:p}){return a.jsx(Re,{title:e,tooltipTextOnLaunch:ft.showTransactionTooltip,onBackClick:s,onLaunchClick:p,style:{zIndex:3}})}function St({vendorField:e,vendorLoadOptions:s,vendorSearchAutoCompleteActions:p,vendorSearchAutoCompleteData:l,scheduleDetailsView:t,allAccountOptions:i,allClassOptions:b,allMonthOptions:o,allowCreateSchedule:f,onCreateSchedule:r,onMarkAsComplete:y,onEditAmount:L,onDelete:I,onJELinkClick:O,onViewLinkedJE:A}){const m=t.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(g=>g.error??[]).filter(g=>!!g)??[];return t.selectedJEScheduleTransaction!=null?a.jsxs(ut,{children:[a.jsx(ht,{children:a.jsx(tt,{errors:m,vendorLoadOptions:s,vendorField:e,vendorFieldName:$(te,"vendor"),vendorSearchAutoCompleteActions:p,vendorSearchAutoCompleteData:l,transaction:t.selectedJEScheduleTransaction.baseTransaction,vendor:t.selectedJEScheduleTransaction.vendor})}),a.jsx(dt,{sectionId:te,jeScheduledTransaction:t.selectedJEScheduleTransaction,allAccountOptions:i,allAccountList:t.allAccountList,allClassList:t.allClassList,allClassOptions: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:f,onCreateSchedule:r,onDelete:I,onMarkAsComplete:y,updateStatus:t.deleteStatus.fetchState}),a.jsx(re,{controller:f===!0,children:a.jsx(lt,{sectionId:le,totalAmount:t.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:t.fetchState,scheduleJournalEntries:t.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:t.selectedJEScheduleTransaction.jeScheduleId==null,localData:t.scheduleDetailsLocalData.prepaid_expenses.jeScheduleDetails,uiState:t.uiState,onEditAmount:L,onJELinkClick:O,onViewLinkedJE:A,jeScheduleId:t.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const Se=e=>`${e}_form`,ie=(e,s,p,l,t)=>{const i=e.scheduleDetailsLocalData.prepaid_expenses,b=i.selectedAccount,o=i.selectedVendor,f=o!=null?t.vendor.find(u=>u.zeniId===o.id):void 0,r=b!=null?e.allAccountList.find(u=>u.accountId===b):void 0,y=i.selectedClass,L=y!=null?e.allClassList.find(u=>u.classId===y):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})),A=i.selectedDayOfMonth,m=i.lastDayOfMonth,g=A==null&&m==null?void 0:m===!0?"lastDayOfMonth":"day";return{[te]:{scheduleExpenseCategory:{selectedOption:r?.qboId,allOptions:s},scheduleClass:{selectedOption:L?.classId,allOptions:p},startDate:i.selectedDate,months:{selectedOption:I,allOptions:l},vendor:{selectedOption:f?.id??o?.id,defaultOptions:ze(t,f??o)},postingDate:{type:g,dayOfMonth:A}},[le]:O}};export{kt as default};
@@ -1,4 +1,4 @@
1
- import{J as A,y as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl as we,w as I,F as R,iE as ye,iA as be,o as i,x as b,p as j,c as $e,ab as je,aa as re,dO as Se,cr as ke,ct as ve,cL as X,ex as ee,cQ as De,iF as K,iG as Ce,b4 as Me,iH as ze,cv as Ee,iI as Le,u as h,am as E,ba as Oe,cs as Ie,ap as pe,eG as Ae,b2 as ne,es as Fe,aS as Te,iJ as F,gk as Ve,aP as Je,iK as Be,aW as q,d1 as Pe,bi as Re}from"./index-C9hDAJ7o.js";import{n as o,c as B}from"./mui-BQR0Ruo4.js";import{a as C}from"./sentry-Ckvw8Zf1.js";import{bh as G,Gc as Ne}from"./zeni-epic-state-BnsQ52n7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="577d321b-7467-4bd9-9cc5-3c01dbfb8de9",e._sentryDebugIdIdentifier="sentry-dbid-577d321b-7467-4bd9-9cc5-3c01dbfb8de9")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function We({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=X(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(x,l),g=A(),a=Q();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Qe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{children:[t.jsx(_e,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ke,{alignLeft:r===!0,children:[t.jsx(tt,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(et,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Fe,{name:N(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ze,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(He,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(it,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Te,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function _e({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(Ge,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ue,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function He({defaultValue:e,onClick:l}){return t.jsxs(Xe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(Ne(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=o.div`
1
+ import{J as A,y as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl as we,w as I,F as R,iE as ye,iA as be,o as i,x as b,p as j,c as $e,ab as je,aa as re,dO as Se,cr as ke,ct as ve,cL as X,ex as ee,cQ as De,iF as K,iG as Ce,b4 as Me,iH as ze,cv as Ee,iI as Le,u as h,am as E,ba as Oe,cs as Ie,ap as pe,eG as Ae,b2 as ne,es as Fe,aS as Te,iJ as F,gk as Ve,aP as Je,iK as Be,aW as q,d1 as Pe,bi as Re}from"./index-Dw_MX6AZ.js";import{n as o,c as B}from"./mui-DdxImnN0.js";import{a as C}from"./sentry-DBSEoG3b.js";import{bh as G,Gc as Ne}from"./zeni-epic-state-1oOVJQJ4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="577d321b-7467-4bd9-9cc5-3c01dbfb8de9",e._sentryDebugIdIdentifier="sentry-dbid-577d321b-7467-4bd9-9cc5-3c01dbfb8de9")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function We({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=X(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(x,l),g=A(),a=Q();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Qe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{children:[t.jsx(_e,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ke,{alignLeft:r===!0,children:[t.jsx(tt,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(et,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Fe,{name:N(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ze,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(He,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(it,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Te,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function _e({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(Ge,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ue,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function He({defaultValue:e,onClick:l}){return t.jsxs(Xe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(Ne(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=o.div`
2
2
  position: relative;
3
3
  `,Ge=o.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{D_ as Xf,D$ as Lt,E0 as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,E1 as Pa,hB as th,hC as rh,E2 as Gt,E3 as kt,h0 as nh,E4 as xr,E5 as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E6 as kl,E7 as Nl,hQ as ah,hN as sh,E8 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E9 as hh,dJ as dh,cU as ph,i$ as Dl,Ea as mh,bL as Tr,hF as xa,hK as gh,oO as Ml,iO as qr,Eb as Ne,ib as na,Ec as yh,j5 as vh,B as Re,Ed as ia,Ee as bh,gZ as wh,Ef as Eh,Eg as Fl,Eh as Sh,nm as qa,mT as _h,Ei as Rh,mZ as Zr,Ej as Oh,m$ as Th,Ek as Ze,mQ as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,El as Ph,np as jh,Em as xh,n6 as qh,nj as Lh,En as kh,na as Nh,Eo as Dh,Ep as _t,Eq as sa,Er as Mh,Es as Fh,lT as Uh,lZ as $l,Et as Vl,gu as Bh,D4 as Gl,Eu as $h,C_ as Vh,Ev as Gh,Ew as zh,m0 as Hh,Ex as Zh,D9 as Wh,CZ as Yh,qj as zl,Ey as Wr,Ez as Hl,A9 as ua,zX as Jh,Ac as Zl,z_ as Kh,EA as Xh,A3 as Qh,zR as ed,zU as td,EB as rd,Ag as nd,A6 as id,c4 as od,bd as ad,EC as sd,ED as ft,EE as ud,EF as cd,EG as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-BnsQ52n7.js";import{j as N}from"./liveblocks-NP7ye8lf.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-Ckvw8Zf1.js";import{T as dd,y as dt,J as Lr,d as pe,z as be,P as pd,W as md,x as Pe,e as kr,f as gd,E as Je,F as Nt,g as pt,j as at,k as Nr,o as tt,X as yd,m as vd,I as nt,n as ca,q as it,Z as bd,Y as wd,u as Yr,r as Ed,s as Jl,t as Sd,v as Kl,O as Xl,A as Xo,C as _d,D as Rd,G as Od,K as Ql,L as Td,M as Id,_ as Ad,Q as Cd,S as Pd,U as jd,$ as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md}from"./index-C9hDAJ7o.js";import{f as Fd}from"./analyticsHelper-DPMmqDhf.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core-XAP_yXKl.js";import{D as Dr,n as Te,S as mt}from"./mui-BQR0Ruo4.js";import{a as ve,b as Ud,c as Bd,d as $d,e as fa,f as Vd,g as Gd,h as zd,i as gt,j as Hd,k as xt,l as Mr,m as Zd,n as Dt,o as Wd}from"./utils-B4eJ0QQL.js";import{r as ha}from"./empty-vcyFM9nz.js";import{r as Yd,a as Jd,b as Kd,c as Xd}from"./constants-MHF6sRcJ.js";import{r as Mt,a as Qd}from"./index-LuFlN8FP.js";import{r as ep}from"./index-DIT7C2zP.js";import"./recharts-DkFolWRg.js";import"./lottie-DhXcx4Hv.js";import"./analytics-Dm6Rdmk5.js";import"./lexical-CgNStNGD.js";import"./url-DCwOBFCk.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a88dc773-af56-4c74-b59d-076890bc3bdd",e._sentryDebugIdIdentifier="sentry-dbid-a88dc773-af56-4c74-b59d-076890bc3bdd")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},tp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function rp(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function np(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const ip=ge(np,rp)(gd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pe.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:tp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(pd,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(md,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(ip,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},op=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ap=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function sp(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const up={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??up.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const cp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(lp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,lp=Te.div`
1
+ import{D_ as Xf,D$ as Lt,E0 as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,E1 as Pa,hB as th,hC as rh,E2 as Gt,E3 as kt,h0 as nh,E4 as xr,E5 as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E6 as kl,E7 as Nl,hQ as ah,hN as sh,E8 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E9 as hh,dJ as dh,cU as ph,i$ as Dl,Ea as mh,bL as Tr,hF as xa,hK as gh,oO as Ml,iO as qr,Eb as Ne,ib as na,Ec as yh,j5 as vh,B as Re,Ed as ia,Ee as bh,gZ as wh,Ef as Eh,Eg as Fl,Eh as Sh,nm as qa,mT as _h,Ei as Rh,mZ as Zr,Ej as Oh,m$ as Th,Ek as Ze,mQ as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,El as Ph,np as jh,Em as xh,n6 as qh,nj as Lh,En as kh,na as Nh,Eo as Dh,Ep as _t,Eq as sa,Er as Mh,Es as Fh,lT as Uh,lZ as $l,Et as Vl,gu as Bh,D4 as Gl,Eu as $h,C_ as Vh,Ev as Gh,Ew as zh,m0 as Hh,Ex as Zh,D9 as Wh,CZ as Yh,qj as zl,Ey as Wr,Ez as Hl,A9 as ua,zX as Jh,Ac as Zl,z_ as Kh,EA as Xh,A3 as Qh,zR as ed,zU as td,EB as rd,Ag as nd,A6 as id,c4 as od,bd as ad,EC as sd,ED as ft,EE as ud,EF as cd,EG as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-1oOVJQJ4.js";import{j as N}from"./liveblocks-Dv7Vdu8a.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-DBSEoG3b.js";import{T as dd,y as dt,J as Lr,d as pe,z as be,P as pd,W as md,x as Pe,e as kr,f as gd,E as Je,F as Nt,g as pt,j as at,k as Nr,o as tt,X as yd,m as vd,I as nt,n as ca,q as it,Z as bd,Y as wd,u as Yr,r as Ed,s as Jl,t as Sd,v as Kl,O as Xl,A as Xo,C as _d,D as Rd,G as Od,K as Ql,L as Td,M as Id,_ as Ad,Q as Cd,S as Pd,U as jd,$ as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md}from"./index-Dw_MX6AZ.js";import{f as Fd}from"./analyticsHelper-Bk8gqeLI.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core-HDqpewC7.js";import{D as Dr,n as Te,S as mt}from"./mui-DdxImnN0.js";import{a as ve,b as Ud,c as Bd,d as $d,e as fa,f as Vd,g as Gd,h as zd,i as gt,j as Hd,k as xt,l as Mr,m as Zd,n as Dt,o as Wd}from"./utils-rIQAYtge.js";import{r as ha}from"./empty-DfoIHPwJ.js";import{r as Yd,a as Jd,b as Kd,c as Xd}from"./constants-B-YZmhKw.js";import{r as Mt,a as Qd}from"./index-B7uDjLxh.js";import{r as ep}from"./index-Depa7Syu.js";import"./recharts-Djp9a38d.js";import"./lottie-V1lTNkDB.js";import"./analytics-DvsRx7_o.js";import"./lexical-CWcQ8pGO.js";import"./url-DITb-guK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="23980061-a59d-43a0-a7b1-0c533fb88b89",e._sentryDebugIdIdentifier="sentry-dbid-23980061-a59d-43a0-a7b1-0c533fb88b89")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},tp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function rp(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function np(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const ip=ge(np,rp)(gd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pe.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:tp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(pd,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(md,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(ip,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},op=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ap=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function sp(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const up={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??up.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const cp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(lp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,lp=Te.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;
@@ -15,7 +15,7 @@ import{D_ as Xf,D$ as Lt,E0 as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,E
15
15
  justify-content: center;
16
16
  align-items: center;
17
17
  background-color: ${e=>e.theme.colors.grey4};
18
- `;function mp({closeCustomerRequestDrawer:e,addCustomerRequest:n,resetCustomerRequest:a}){const{companyId:o}=je(),i=be.getSignedInUser();if(i==null)throw Error("Can't access Customer Request page without signing in...");const t=re(r=>Nl(r,o,i));return Y.useEffect(()=>{a()},[]),N.jsx(N.Fragment,{children:t.fetchState==="In-Progress"||t.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?N.jsx(pp,{children:N.jsx(Nr,{size:"Large",start:!0})}):N.jsx(vd,{onCloseClick:e,addCustomerRequest:n,snippets:t.companyMonthEndReportTemplatesData,bulletPoints:t.zeniRequestsData??[]})})}function gp({onClose:e}){const n=Ee(),{companyId:a}=je(),[o,i]=Y.useState(!1),{useFeatureGate:t,useDynamicConfig:r}=nt(),{isFeatureEnabled:s}=t(ca.enableZeniGPTFeatureForMonthEndEmail),{configValue:d}=r(it.monthEndPreviewEnablement);if(a==null)throw Error("Can't access Month End Email page without valid company details...");const[c,h]=Y.useState(!1),[f,l]=Y.useState(!1),[b,p]=Y.useState(!1),[y,g]=Y.useState([]),u=be.getSignedInUser();if(u==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const v=re(D=>Lt(D)),w=re(D=>kt(D)),m=re(D=>xr(D)),E=re(D=>ta(a,D,u)),R=re(D=>Nl(D,a,u)),O=Y.useCallback((D=!1)=>{n(kl(a)),h(!1),v.fetchState==="Completed"&&w.fetchState==="Completed"&&m.fetchState==="Completed"&&(m.auditRuleGroups.forEach(j=>{n(Ir(a,"generate",j.auditRuleGroupId))}),n(ah(D,a)),n(sh(a)))},[a,v.fetchState,w.fetchState,m.fetchState]);Y.useEffect(()=>{const D=E.auditReportGroups.filter(j=>j.fetchState==="Completed"||j.fetchState==="Error");c===!1&&D.length!==0&&D.length===m.auditRuleGroups.length&&(h(!0),n(rt(!0,!0)))},[E.auditReportGroups]);const T=Y.useCallback(()=>{n(uh({companyId:a})),h(!1),e()},[e]),q=Y.useCallback(()=>{O(!0)},[O]),G=Y.useCallback(D=>{n(ch(a,D))},[]),V=Y.useCallback((D,j,k,F)=>{n(ja(D,a,j,!0,k,F))},[]),S=Y.useCallback((D,j,k,F)=>{n(ja(D,a,j,!1,k,F))},[]),_=Y.useCallback(()=>{i(!1)},[]),P=Y.useCallback(D=>{n(lh(D,a))},[]),x=Y.useCallback(D=>{n(fh({files:D}))},[]),M=Y.useCallback(D=>{n(hh(D))},[]),C=Y.useCallback(()=>{n(dh({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},[]),I=Y.useCallback(()=>{n(ph())},[]),A=Y.useCallback(()=>{l(!0)},[]),L=Y.useCallback(()=>{p(!0)},[]),B=Y.useCallback(D=>{g(D),p(!1)},[]),U=Y.useCallback(()=>{g([])},[]);return Y.useEffect(()=>{R?.previewMonthEndReportStatus?.fetchState==="Completed"?i(!0):i(!1)},[R?.previewMonthEndReportStatus?.fetchState]),Y.useEffect(()=>{(R?.sendMonthEndReportStatus?.fetchState==="Completed"||R?.saveMonthEndReportStatus?.fetchState==="Completed")&&T()},[R?.sendMonthEndReportStatus?.fetchState,R?.saveMonthEndReportStatus?.fetchState,T]),Y.useEffect(()=>{n(Dl(!1)),n(Ye()),n(ra())},[]),Y.useEffect(()=>{O()},[O]),N.jsxs(N.Fragment,{children:[N.jsx(Ft,{isOpen:f||b,drawerLeftMargin:f?new Pe(0,0,0,0):b?new Pe(0,0,300,650):new Pe(0,0,300,650),onClose:()=>{f?(n(rt(!0,!0)),l(!1)):b&&p(!1)},children:N.jsx(yp,{onClick:D=>D.stopPropagation(),children:f?N.jsx(rf,{closeAuditScoreDrawer:()=>l(!1)}):b?N.jsx(mp,{closeCustomerRequestDrawer:()=>p(!1),addCustomerRequest:B,resetCustomerRequest:U}):null})}),N.jsx(bd,{companyId:a,enableZeniGPTFeature:s,enableSendingMonthEndEmail:d.companiesByPassPreviewMonthEndReport!=null&&Array.isArray(d.companiesByPassPreviewMonthEndReport)?d.companiesByPassPreviewMonthEndReport.includes(a):!1,monthEndReportView:R,previewMode:o,customerRequestData:y,onNavigateBack:T,onRefresh:q,sendMonthEndReport:G,previewMonthEndReport:V,saveMonthEndReport:S,onEditClick:_,improveUsingZeniGPTClick:P,onRemoveFileAttachment:M,onUpdateFileAttachment:x,onOpenFileAttachmentSnackBar:C,onCloseFileAttachmentSnackBar:I,onClickAuditScore:A,onClickCustomerRequest:L,isAuditScoreLoadingCompleted:c&&(w.fetchState==="Completed"||w.fetchState==="Error")})]})}const yp=Te(mt)`
18
+ `;function mp({closeCustomerRequestDrawer:e,addCustomerRequest:n,resetCustomerRequest:a}){const{companyId:o}=je(),i=be.getSignedInUser();if(i==null)throw Error("Can't access Customer Request page without signing in...");const t=re(r=>Nl(r,o,i));return Y.useEffect(()=>{a()},[]),N.jsx(N.Fragment,{children:t.fetchState==="In-Progress"||t.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?N.jsx(pp,{children:N.jsx(Nr,{size:"Large",start:!0})}):N.jsx(vd,{onCloseClick:e,addCustomerRequest:n,snippets:t.companyMonthEndReportTemplatesData,bulletPoints:t.zeniRequestsData??[]})})}function gp({onClose:e}){const n=Ee(),{companyId:a}=je(),[o,i]=Y.useState(!1),{useFeatureGate:t,useDynamicConfig:r}=nt(),{isFeatureEnabled:s}=t(ca.enableZeniGPTFeatureForMonthEndEmail),{configValue:d}=r(it.monthEndPreviewEnablement);if(a==null)throw Error("Can't access Month End Email page without valid company details...");const[c,h]=Y.useState(!1),[f,l]=Y.useState(!1),[b,p]=Y.useState(!1),[y,g]=Y.useState([]),u=be.getSignedInUser();if(u==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const v=re(D=>Lt(D)),w=re(D=>kt(D)),m=re(D=>xr(D)),E=re(D=>ta(a,D,u)),R=re(D=>Nl(D,a,u)),O=Y.useCallback((D=!1,j=!1)=>{n(kl(a)),h(!1),v.fetchState==="Completed"&&w.fetchState==="Completed"&&m.fetchState==="Completed"&&(m.auditRuleGroups.forEach(k=>{n(Ir(a,"generate",k.auditRuleGroupId))}),n(ah(D,a,void 0,void 0,j)),n(sh(a)))},[a,v.fetchState,w.fetchState,m.fetchState]);Y.useEffect(()=>{const D=E.auditReportGroups.filter(j=>j.fetchState==="Completed"||j.fetchState==="Error");c===!1&&D.length!==0&&D.length===m.auditRuleGroups.length&&(h(!0),n(rt(!0,!0)))},[E.auditReportGroups]);const T=Y.useCallback(()=>{n(uh({companyId:a})),h(!1),e()},[e]),q=Y.useCallback(()=>{O(!0,!0)},[O]),G=Y.useCallback(D=>{n(ch(a,D))},[]),V=Y.useCallback((D,j,k,F)=>{n(ja(D,a,j,!0,k,F))},[]),S=Y.useCallback((D,j,k,F)=>{n(ja(D,a,j,!1,k,F))},[]),_=Y.useCallback(()=>{i(!1)},[]),P=Y.useCallback(D=>{n(lh(D,a))},[]),x=Y.useCallback(D=>{n(fh({files:D}))},[]),M=Y.useCallback(D=>{n(hh(D))},[]),C=Y.useCallback(()=>{n(dh({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},[]),I=Y.useCallback(()=>{n(ph())},[]),A=Y.useCallback(()=>{l(!0)},[]),L=Y.useCallback(()=>{p(!0)},[]),B=Y.useCallback(D=>{g(D),p(!1)},[]),U=Y.useCallback(()=>{g([])},[]);return Y.useEffect(()=>{R?.previewMonthEndReportStatus?.fetchState==="Completed"?i(!0):i(!1)},[R?.previewMonthEndReportStatus?.fetchState]),Y.useEffect(()=>{(R?.sendMonthEndReportStatus?.fetchState==="Completed"||R?.saveMonthEndReportStatus?.fetchState==="Completed")&&T()},[R?.sendMonthEndReportStatus?.fetchState,R?.saveMonthEndReportStatus?.fetchState,T]),Y.useEffect(()=>{n(Dl(!1)),n(Ye()),n(ra())},[]),Y.useEffect(()=>{O()},[O]),N.jsxs(N.Fragment,{children:[N.jsx(Ft,{isOpen:f||b,drawerLeftMargin:f?new Pe(0,0,0,0):b?new Pe(0,0,300,650):new Pe(0,0,300,650),onClose:()=>{f?(n(rt(!0,!0)),l(!1)):b&&p(!1)},children:N.jsx(yp,{onClick:D=>D.stopPropagation(),children:f?N.jsx(rf,{closeAuditScoreDrawer:()=>l(!1)}):b?N.jsx(mp,{closeCustomerRequestDrawer:()=>p(!1),addCustomerRequest:B,resetCustomerRequest:U}):null})}),N.jsx(bd,{companyId:a,enableZeniGPTFeature:s,enableSendingMonthEndEmail:d.companiesByPassPreviewMonthEndReport!=null&&Array.isArray(d.companiesByPassPreviewMonthEndReport)?d.companiesByPassPreviewMonthEndReport.includes(a):!1,monthEndReportView:R,previewMode:o,customerRequestData:y,onNavigateBack:T,onRefresh:q,sendMonthEndReport:G,previewMonthEndReport:V,saveMonthEndReport:S,onEditClick:_,improveUsingZeniGPTClick:P,onRemoveFileAttachment:M,onUpdateFileAttachment:x,onOpenFileAttachmentSnackBar:C,onCloseFileAttachmentSnackBar:I,onClickAuditScore:A,onClickCustomerRequest:L,isAuditScoreLoadingCompleted:c&&(w.fetchState==="Completed"||w.fetchState==="Error")})]})}const yp=Te(mt)`
19
19
  display: flex;
20
20
  min-height: 100%;
21
21
  flex-direction: column;