@zeniai/web-cockpit-ui 1.14.85-dev → 1.14.86-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 (214) hide show
  1. package/dist/assets/{ACHDetailsPage-Dzk7YdoJ-Cuct0t6u.js → ACHDetailsPage-D19fvbL2-VL8NJ-kq.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DBCH9dJi-CYibQjrX.js → AIPerformancePage-DW0vgs3w-C6_Vooze.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-Mzw-22d_-Df5O2T5Z.js → AccountInfoPage-B0HnACVZ-BYAvhrGX.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-Bjp81drF-Cqcv4hk8.js → AccountInfoPageContent-B9DHX_ra-CAQ0-0rF.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-Zg2PAu1o-svgY2-MJ.js → AccountLockedInfoModal-CM1F6VNU-uV9YAvP-.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BTkrwp4Q-CWHV1qM1.js → AccountReconDetailsDrawerPage-BbtaXRQT-1akSazct.js} +1 -1
  7. package/dist/assets/{AccountRow-CIsbwvGp-J3oMxL3b.js → AccountRow-DqB8rPL2-DMH55Auf.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DrElZh-K-CUoBlW42.js → AccountsPromoCardStack-G9g_ND9B-Dez_UUBg.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-D5Kqxx0c-CDAVfdUf.js → AddAddressForCardDrawer-UCJdFwxu-eWHSyVQO.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-B68eBsAU-Dnsjp7Oq.js → AddToWalletPage-B-mvkRWQ-Bjrc9a7q.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BlQHxYjL-Cr6yxtF3.js → AgingReportsPage-dKUkHiCt-MJrPMLqB.js} +1 -1
  12. package/dist/assets/{AllUserItems-DsECKAGD-PW2UBBng.js → AllUserItems-CQki1qcr-3QgEUFAR.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-Bg0ZrGXm-CfXEq_5-.js → ApAgingDetailPage-nMjsbSmM-sMJduNX0.js} +1 -1
  14. package/dist/assets/{AppBasePage-tPaBc2ei-WGoBSx1D.js → AppBasePage-BYj0h9gw-DH3gxAi6.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-Cx4zDKi_-DO8upp4U.js → AppDrawerContent-C21qZewJ-DTIYgSer.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-BcRZvSQH-BuukHz1z.js → ApprovalRulesSettingsPage-B84m25GW-BJTY9z1f.js} +1 -1
  17. package/dist/assets/{ArAgingChart-RdGwOP5k-DaN2WJzI.js → ArAgingChart-CLxB28eR-BnMhdr3Y.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-Bh7NAVZf-DauNApby.js → ArAgingDetailPage-C5yzbIB3-Bp9yrmKW.js} +1 -1
  19. package/dist/assets/{AttachmentView-ClnTjRCg-CXQ9ySez.js → AttachmentView-_qAuq3Am-BnxUEqyT.js} +1 -1
  20. package/dist/assets/{BankAccountSection-D3sQOQ-c-t8HGw1J0.js → BankAccountSection-B0pfiSf6-O4kzmOgz.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-CxLBPI_P-CQJWoDnI.js → BankAccountWarningSection-Xo-Jy-73-T0cW8wCf.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-Bsix2nzV-BvUIdsy8.js → BankConnectionsSettingsPage-o5oe0ctd-TAnMk9ub.js} +1 -1
  23. package/dist/assets/{BillDetailPage-B52FZrvM-BFE_NGrS.js → BillDetailPage-CtThP7Y9-BH87PynZ.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-CswUbxdi-Cprf5Nyo.js → BillPayApprovalRuleDetailPage-BQjmqKng-BWOGnJdV.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-B-8sIYjs-D2BSNMf9.js → BillPayApprovalRulesPage-BxCNEom7-DfFQvu-E.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-B6jW_8rf-YW9uzBg5.js → BillPayPromoPage-BElTLopb-CAmSiy-a.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-Rqxy02BM-CEkcaNcr.js → BillPaySetUpPage-BG8feTVd-B3AfPKbT.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-CPs5zrIc-DODFNfJu.js → BillingSettingsPage-07P7VjDH-Bis-h9qV.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DLQsxJi8-DtW4kiE9.js → BillsBulkReviewDrawerPage-D7EPuth4-BF7T7k1A.js} +1 -1
  30. package/dist/assets/{BoxItem-CP9cPZQd-BW2Fv6YZ.js → BoxItem-CzX5kr9f-DmbC9ChW.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Cayj-kYe-DIQRuHb0.js → BusinessVerificationPage-WSJeMnHc-Ch5Q9ZfO.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-FdCtSIHd-Cer2LzOo.js → CardNumberSubText-D76dl24E-DsXfCbtD.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-CZICE37r-CchxXOB0.js → CashbackDetailPage-CNxA7NQY-BORja6Sy.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-Be2X4Rx8-DkQXGv5E.js → ChargeCardDetailPage-K4gUpiwZ-oVIalvp6.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-DzfBzM8o-BpS6GwxX.js → ChargeCardListPage-CyTEY_8V-D5xc0H9_.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-Bc-4mcCz-DGGclb69.js → ChargeCardListTable-BFyvNTeY-CrvrIm4A.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-D_C7hXGy-jKodLkTT.js → ChargeCardPromoPage-C9z3yHL2-Cv7CLbK8.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-BwNi9-pq-C4dK5zJO.js → ChargeCardSetupPage-DO8JYrZP-Be5rOG2G.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-Bf04MOoK-k-sWDpeT.js → ChargeCardStatementsPage-BOikTcKC-Ci4t0A-V.js} +1 -1
  40. package/dist/assets/{CheckDepositDrawerPage-B-A9fkGZ-DZFZ2JbI.js → CheckDepositDrawerPage-DH3MI8HN-Byook4Qr.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-DdMyzUD0-BAoVL7wM.js → CollapsableReportTable-B2M1S7L1-GNwZ9Yr0.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-kRtuUd2c-Cm23V4kL.js → CompanyOfficerDetailsSection-BqY-k8Ic-8Eb1Nitm.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-KhSJJMcy-Cll554T1.js → CompanyPassportCard-BR60dER0-Be42E5vE.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage--ckOuqML-CPrNkQDu.js → CompanyPassportPage-Bmd04hik-w4MNYTWb.js} +1 -1
  45. package/dist/assets/{CompleteProfile-D8egRg8d-QRh3PECw.js → CompleteProfile-UULN8u-c-Nz3OPAez.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-CvRhNEAY-OaJ4gLIH.js → ConfettiBurst-CozTW5Rn-DUmnW6Fi.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-DrZh60Xs-DORgL7Gm.js → CreateOrEditVendorPage-D78xf5_Y-3D_82WJ6.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-B7ssB1GM-DOObGC22.js → CreditCardPaymentDrawerPage-CuqD_nKw-g7BqmzM_.js} +1 -1
  49. package/dist/assets/{CurrencySelectField-BXp2mtZ7-BZ1r7qNY.js → CurrencySelectField-DWAO-FaV-BQ_smuTJ.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-BX7STQsk-ClpFwMrN.js → CustomerOnboardingActivationPage-Cib3Mx_T-3TdNMDtd.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-J1gLDhpW-CRG1w3EM.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-C5tSpmSB-5KFMWV1l.js → CustomerOnboardingDetailPageSkeleton-XJtMtsSn-G5iSRNCP.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-CQUQlLbj-llUCphSN.js → CustomerOnboardingNoStepsPage-B_0Hrx2F-De_1mXnl.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-D0p8khnC-C1IdwvBx.js → CustomerOnboardingPage-aBkvsh1l-a_pe8FXy.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-BRk3TA9f-n37UhYFK.js → CustomerOnboardingProductSuitePage-BpF-YMGr-JescUxrV.js} +1 -1
  56. package/dist/assets/{Dashboard-CBOma7mv-B9j8ewTM.js → Dashboard-PoZO9l3--BkoCWSoN.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-DRYx3AOy-D6rkizKp.js → DashboardReportPage--m1KiT3x-BjIDve_e.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-DYsp7Imm-CsY2ImuX.js → DashboardSidebarBackgroundAnimation-bBmcRJEU-px5rpiHu.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-BQU7vZKr-BOGssvEh.js → DepositAccTransactionItem-tRzKuflq-C-iuFnHA.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-DQDt_2kb-D0tTF08R.js → DepositAccTransactionListPage-AwxQHNLD-D7z2ldjE.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-B0KbC9m8-DSgkPJjx.js → DomesticWireDetailsPage-CuE-QHLh-D9iyNNyJ.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-D2vm9EYI-1UU-2gMF.js → DownloadOverlay-ebdpHSki-CAJMStLG.js} +1 -1
  63. package/dist/assets/{DrawerPage-DHIaNEwf-DBdDE0YZ.js → DrawerPage-DHT0UTT4-BKWp_-5X.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-B4OaKX89-CxOdlVup.js → EditPeoplePage-Ds7odnkL-DQ_yMItj.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-C_JOnUnR-BaFHONcZ.js → EditReimbursementDetailPage-B6EHHEhj-CgRC_7_f.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-DGq_Sr4I-DbAOqf4w.js → EntityDetailPage-sR_MHnxH-B_60XVgg.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-CAKPRhm9-DT4p2FkX.js → EntitySummarySection-BLwfMK6_-BUmiKyK6.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-c4H81maP-DA77wvgo.js → ExpenseAutomationOverviewPage-BqFR2yic-D3h9oKID.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-DoI_XKeY-6CiggPiF.js → ExpenseAutomationPage-C7IKGki--C5JsAebS.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-CjhXfVeX-BOKCYwCy.js → ExpressPayPage-C6UtAiIN-B0dyZC98.js} +1 -1
  71. package/dist/assets/{FeaturePreviewPage-CwrW_5lN-DmGMYSsi.js → FeaturePreviewPage-C_b5hdtk-CZWyI6y7.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-DwVibYwI-v9hEOCV9.js → FollowStepsSection-dgWK-_PA-svnQ0XjA.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-JUSXRKq4-DVN5r0h7.js → GlobalReviewListPage-Bs7BRxg_-Djvi_sGb.js} +1 -1
  74. package/dist/assets/{InformationCardStack-CK1Ztw1n-C4th25N4.js → InformationCardStack-Def3TczI-CtsF9-Af.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-BKAezFjz-Dc6HzMco.js → InsightsCardStack-CDejyDrL-DdaZf1PW.js} +1 -1
  76. package/dist/assets/{InsightsSection-Bauri5yR-CKFEflqf.js → InsightsSection-DeLBGRXz-D7U82zkc.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-CnRe_xH3-UkqXGmer.js → IntegrationsSettingsPage-Vd7CM5dW-BoMhl7AH.js} +1 -1
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-BJkaLuNw-77-AaJID.js → InternationalWireSwiftDetailsPage-CPIzRzqS-CYAovypm.js} +1 -1
  79. package/dist/assets/{InternationalWireVerificationPage-pPH2bNM7-BKQZ3C2I.js → InternationalWireVerificationPage-Cc3OKrpr-Ltx5z6FE.js} +1 -1
  80. package/dist/assets/{InviteFormPage-CsL2egNG-DnYkx7hA.js → InviteFormPage-hXbvSboB-DFFPTBo7.js} +1 -1
  81. package/dist/assets/{InvitePageListView-rt3KC_c5-JZPrjnvG.js → InvitePageListView-xv6f7OYE-CR8JCyaU.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-Cdr0dhtJ-QaKpYzAx.js → InvitePeoplePage-Bns8mbbj-CkqSudgd.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-NVvtQvoL-B8iP_R_q.js → InvoiceUploadSection-wKWbAAeR-jqYSJVVo.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-D5KenKnm-I0qHogFn.js → IssueChargeCardPage-BbCULpNx-DK86WyIA.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-Bwkw-Ez_-QZs1bcqC.js → LabeledAddressValue-CYPuDjMF-C1O2b_Nw.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-BgkRIdwJ-D68tBsFt.js → LabeledAddressValueField-C4ft1l-K-7MDSOtQe.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-RzyuT5ZX-BsFbzCeg.js → LabeledControlledCheckBoxField-DHrJB0QL-9tQ_56XZ.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-BP_p62Nk-BGV5p2pd.js → LabeledCreatableSingleSelectField-BeelRB2Y-BOJ6jVYt.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-DGncRe-Q-BM_MF9Yy.js → LabeledDocumentField-CgMzc8wC-CqZpxSl3.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-DWUVcIR8-DmvGwPXC.js → LabeledDropDownFormattedTextField-DcO2nEfi-CXdSabKs.js} +1 -1
  91. package/dist/assets/{LabeledText-BzD_-lgI-Br_7nwt2.js → LabeledText-BNDM-899-06P8MShM.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D3kjxF9V-C7cFlAui.js → LabeledUserSingleSelectWithSubtitlesField-TSpiqQUi-DMkK1ZiA.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-BlmybTGB-C8vefnXI.js → LabeledZeniRolesDropDownField-C5I9rtgW-CfSrTjkf.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-CUnfHHeT-BQ0Gfxk0.js → LinkJETransactionPage-BWrpuWUo-DjNgjNiu.js} +1 -1
  95. package/dist/assets/{LockCardPage-2jOFCVkW-Cd-7Cld7.js → LockCardPage-Ddf8_2ti-BAZKWkzC.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-Du0kX_mJ-B-0Hf7BW.js → LowBalancePopup-BMSJwe7h-DMWskG_J.js} +1 -1
  97. package/dist/assets/{MagicLinkACHDetailsPage-CkbNMu7Z-B4drRgdG.js → MagicLinkACHDetailsPage-CRYqb_qO-BhHVGLJ8.js} +1 -1
  98. package/dist/assets/{MagicLinkDomesticWireDetailsPage-D0XBf5_X-D4YEFAaf.js → MagicLinkDomesticWireDetailsPage-CE12GLds-D-96bibR.js} +1 -1
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-Bl93T-SF-DbfMD1IO.js → MagicLinkInternationalWireDetailsPage-DO4DIUrG-CyLC4QH5.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-C26glp7T-BbSy9weN.js → MagicLinkSuccessPage-fsnKXDBD-BI-yrZDm.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-B4nxLzap-CM0lHGYk.js → MagicLinkTitleSection-DQw4cqq_-CJjXRAcR.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-Cou_W8JF-D0QplON-.js → MailingDetailsSection-CAV69_Sr-6m02PjwU.js} +1 -1
  103. package/dist/assets/{Menu-CdF7UWPF-DT1TTbqS.js → Menu-B_DpiT_k-BMeDRM7Z.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-BAjjxA98-P3jZBDkg.js → MyBankConnectionsSettingsPage-CM2Faxmi-lumvcw7O.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-DsRGcA8F-BiAy3gfH.js → MyPendingActivationChargeCardListPage-BV2N6fOb-Dexi8pC1.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-y-iZgUqL-Cmq9Fbc9.js → MyProfileSettingsPage-BjGB1P4t-3z2NkQ-z.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-ph4heJns-CH6-ZGCk.js → NavBarWithPicker-CrDC7aPk-hy6Ta87y.js} +1 -1
  108. package/dist/assets/{NavigationArrow-BojAUI53-DuIW3OB3.js → NavigationArrow-AIYiZbYj-BSdYWMyZ.js} +1 -1
  109. package/dist/assets/{NavigationDots-Bf66leAL-DWvE0Tr9.js → NavigationDots-CVjs5Sdt-DMRFcVAa.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-D43XJhIa-CGBQEE1e.js → NewGlobalMerchantPage-Bx1M-Dpk-BzZ5CoAZ.js} +1 -1
  111. package/dist/assets/{NoDataChart-6R5pxJVo-CWkI_hu9.js → NoDataChart-B_yk9del-aAXFhE-W.js} +1 -1
  112. package/dist/assets/{NoDataTable-CNx0KCKn-Yxxqzyz6.js → NoDataTable-DRJW6ofl-CrLqSM4Y.js} +1 -1
  113. package/dist/assets/{NotFoundPage-CE9BW_aV-BJq9qwHQ.js → NotFoundPage-C6X8pmKB-BcL_ll7R.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-etN6HEwO-CPu8hoID.js → NotificationSettingsPage-CsaIk9hI-Csi-Ty8T.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-15ae4nik-CPKCivw4.js → NotificationsListConfig-B8ldcs-T-CNK_cS8g.js} +1 -1
  116. package/dist/assets/{NotificationsPage-BwbxqKxd-CJ_w7jhJ.js → NotificationsPage-Cv2LlPX0-CmUTnAF-.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-FR3oloXp-BIjz5fFP.js → OpExByVendorPage-cVCb-lRK-RYTt83vZ.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-CrZuT2Jj-BFQOGYGF.js → OverlayContainerPage-CrZuT2Jj-C5x5xRTB.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-Bx3ZyA3l-DeFHP0VX.js → PandLWithForecastPage-CG5AGAFM-CGhF4vnJ.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-R1O20DhA-C65ZHllw.js → PaymentAccountSetupBillingAddressSection-DFeVoMTQ-D8Ukqs-R.js} +1 -1
  121. package/dist/assets/{PeoplePage-B3HRaJWz-DZIUGp3j.js → PeoplePage-vwcbvzlP-BQDq8Jw1.js} +1 -1
  122. package/dist/assets/{ProductsCarousel-Dn4vuZwM-XZC4Gi6v.js → ProductsCarousel-C2h9pwDb-BpWEeT8d.js} +1 -1
  123. package/dist/assets/{PromoBaseCards-BKo4wO-U-UIjavA07.js → PromoBaseCards-nxua6geT-CBPEj2Gj.js} +1 -1
  124. package/dist/assets/{QBOConnectionDialog-CPq0aUew-DHwaU-lE.js → QBOConnectionDialog-BRU6xjQi-BroPp__0.js} +1 -1
  125. package/dist/assets/{QBOSetupSection-BjImTh7O-Cf73veGI.js → QBOSetupSection-CvWw_-bE-K3hTN7GD.js} +1 -1
  126. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DD1HwLO0-DBTNMi4-.js → ReimbursementApprovalRuleDetailPage-CDAPt76T-Ofm0uQSq.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRulesPage-DHQHS0eD-l5f43j6l.js → ReimbursementApprovalRulesPage-CT8KUn9L-djHWb-BD.js} +1 -1
  128. package/dist/assets/{ReimbursementDetailPage-DiMXs0_o-C-Gngkni.js → ReimbursementDetailPage-BlWqdoKk-gscL22YP.js} +1 -1
  129. package/dist/assets/{ReimbursementPromoPage-BinqJ3lR-Dkzvoe2N.js → ReimbursementPromoPage-C12vL_aT-DOELTnax.js} +1 -1
  130. package/dist/assets/{ReimbursementSetUpPage-BD6B-0CO-Dhg43o5f.js → ReimbursementSetUpPage-aeXyHOzw-BBXoRN7W.js} +1 -1
  131. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DK-nCoay-BC-GO3CD.js → ReimbursementsBulkReviewDrawerPage-BZn17ZAb-CSzjLPpM.js} +1 -1
  132. package/dist/assets/{ReloadCard-Bt8qxAUx-C0FiLSzB.js → ReloadCard-BVcEjrcM-DkDyCZdX.js} +1 -1
  133. package/dist/assets/{ReportTableViewSelector-Dv7BwM1q-DZ-FOl5q.js → ReportTableViewSelector-DlD_ISoP-DYJZDLbh.js} +1 -1
  134. package/dist/assets/{ReportsPage-BOY8oCAr-BwR5MVzD.js → ReportsPage-CqXr-QZi-GDB_EeKY.js} +1 -1
  135. package/dist/assets/{RevenueChart-D_yexiAR-D3rVopXP.js → RevenueChart-B1KEseXB-iHNdhoBa.js} +1 -1
  136. package/dist/assets/{ReviewDetailsPage-Czrlb8BL-DTI9py46.js → ReviewDetailsPage-CYhNq-J0-Cy2NshNy.js} +1 -1
  137. package/dist/assets/{ReviewOverlay-BHUy3fWf-DhycJa32.js → ReviewOverlay-DkL6mTyl-BFHL0-xi.js} +1 -1
  138. package/dist/assets/{RoleWithToolTip-BxI2nAro-CHrHR5C8.js → RoleWithToolTip-DRSravXg-BxOW9LcQ.js} +1 -1
  139. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DsNhFGrc-C7120rgv.js → ScheduleDetailsFixedAssetsPage-BsigTjZM-DhqM4jX3.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsPage-Dy2poGsp-B72mEOku.js → ScheduleDetailsPage-C-lGzBL_-2eCogOrM.js} +1 -1
  141. package/dist/assets/{ScheduleSequenceTable-Bv1feMZc-DEmwzIZ-.js → ScheduleSequenceTable-BCmdqAXy-DeHIoKHW.js} +1 -1
  142. package/dist/assets/{ScreenRoutes-aw0OxNGj.js → ScreenRoutes-DoPPzVjz.js} +1 -1
  143. package/dist/assets/{SetUpAccountSection-SSkLhU2W-Bdvkba2v.js → SetUpAccountSection-BKOCyUH3-DH5o_JLE.js} +1 -1
  144. package/dist/assets/{SignIn-Chuf9_2E-Dg9U6pWl.js → SignIn-CS-J3pfV-CgtijYY2.js} +1 -1
  145. package/dist/assets/{SignInScreen-heeiIDQc.js → SignInScreen-DAvW9bur.js} +1 -1
  146. package/dist/assets/{SpendManagementListViewPage-BpCZzQ7I-CeMMhyUX.js → SpendManagementListViewPage-Df2_A3Ff-BxUbsbil.js} +3 -3
  147. package/dist/assets/{SpendManagementPerTabPage-DbXTM50B-DF3kTGNr.js → SpendManagementPerTabPage-CMowSBFq-BrS8wTbG.js} +1 -1
  148. package/dist/assets/{SpendManagementSection-BMU1BTEo-BBFzWPwD.js → SpendManagementSection-CMV7noyB-UYSYZMHP.js} +1 -1
  149. package/dist/assets/{StatementItem-qLZEMVrM-C5sUBNaG.js → StatementItem-DJ39tw7i-Bj4A1Qdq.js} +1 -1
  150. package/dist/assets/{StatementsPage-B3qY1D4K-C1V6A2Qk.js → StatementsPage-bQ7Ni723-DHmZyEvF.js} +1 -1
  151. package/dist/assets/{StatusSwitcher-xQ_AW7ze-DWj9eTCE.js → StatusSwitcher-dxck0-_D-DRYxrfo9.js} +1 -1
  152. package/dist/assets/{SubTabSwitcher-w8vLc-35-BeFKfmS8.js → SubTabSwitcher-iw3pF9RG-Dy8Bw-rJ.js} +1 -1
  153. package/dist/assets/{SummaryCard-CTq_yqTg-Bw75z4He.js → SummaryCard-BhSCeFtW-CSdCPVeK.js} +1 -1
  154. package/dist/assets/{TaskManagementPage-keXFNmIv-BEMVU9l6.js → TaskManagementPage-g-ZeUacD-BOKvIQzo.js} +1 -1
  155. package/dist/assets/{TimeRangeSwitcher-C4Tph63B-D9xSXRlF.js → TimeRangeSwitcher-DV7Vkxir-CS7Y16la.js} +1 -1
  156. package/dist/assets/{TimeframeSwitcher-LLgotbh8-X4qFRStD.js → TimeframeSwitcher-n-e2hXsK-B_34BEd7.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcherWithToggle-Cw3a9d0I-BlbsDDpn.js → TimeframeSwitcherWithToggle-DLiPwXnZ-Dg1G7031.js} +1 -1
  158. package/dist/assets/{TopExCard-Dj0wtF6g-CdD53hxs.js → TopExCard-CUCtGWMG-DA80G2Tw.js} +1 -1
  159. package/dist/assets/{TopExDetailPage-JutaMmtR-koGwO2ev.js → TopExDetailPage-Du_E_YKe-CKxYJ9kT.js} +1 -1
  160. package/dist/assets/{TransactionDetailPage-BdFHqSCv-Bc3ggi0n.js → TransactionDetailPage-CgT445to-C64Qr5HI.js} +1 -1
  161. package/dist/assets/{TransactionList-C85wyFeI-C41EirGp.js → TransactionList-we_zUYsL-Dijr1BC3.js} +1 -1
  162. package/dist/assets/{TransactionListBig-DPev2-Mm-BpW_w096.js → TransactionListBig-nH1Qjoil-BNQ9Yrfn.js} +1 -1
  163. package/dist/assets/{TransactionListPage-D127NU4T-BPyAfJzu.js → TransactionListPage-38GpLjpf-CtUGOhxg.js} +1 -1
  164. package/dist/assets/{TransactionVendorDetailPage-BJ1YnPif-SJ1gb7FN.js → TransactionVendorDetailPage-D9Xiyh8f-C7FSVGLd.js} +1 -1
  165. package/dist/assets/{TransferDrawerPage-DcrfmXH1-DiL_C6V9.js → TransferDrawerPage-lmX46zkj-iJHTGU9g.js} +1 -1
  166. package/dist/assets/{TreasuryOverviewPage-D-Zw4Npq-K2RbtXZZ.js → TreasuryOverviewPage-C4AZO1qa-fO0_YydA.js} +1 -1
  167. package/dist/assets/{TreasuryPromoPage-BhBPhhbb-DM-0mrYZ.js → TreasuryPromoPage-D2UpPIMJ-Vs6LDADD.js} +1 -1
  168. package/dist/assets/{TreasuryStatementsPage-Dxjg_QN7-C_fsR-Na.js → TreasuryStatementsPage-DJZjPYxF-DQoU89N8.js} +1 -1
  169. package/dist/assets/{TreasuryTaxLetterPage-Dm552RDZ-BLLWDMsm.js → TreasuryTaxLetterPage-CRhVrCVC-CUht6Xx6.js} +1 -1
  170. package/dist/assets/{TrendChart-_c8z5Kxm-DarAZz3o.js → TrendChart-C6eEpBKz-BYGni-dr.js} +1 -1
  171. package/dist/assets/{TrendWithTransactions-B2rde1MW-D1twJg_e.js → TrendWithTransactions-CesVaJPk-CvaouDs7.js} +1 -1
  172. package/dist/assets/{UncategorizedAccountsMappingPage-77nkQFar-Bn3Ibb9A.js → UncategorizedAccountsMappingPage-wFi1shv1-BGNVX7QF.js} +1 -1
  173. package/dist/assets/{UnitIntegrationPage-3_YMV_f4-yfDaiCvi.js → UnitIntegrationPage-Dc1U07vV-CO1z0_28.js} +1 -1
  174. package/dist/assets/{UploadAdditionalDocumentOverlay-D72fkcgM-BkIuCEEz.js → UploadAdditionalDocumentOverlay-E73Idplv-CWs5X5k0.js} +1 -1
  175. package/dist/assets/{Vendor2FAPopup-DLbGF5_q-DmCvA6XI.js → Vendor2FAPopup-BvdRkNkS-Bx2K17Se.js} +1 -1
  176. package/dist/assets/{VendorACHDetailsPage-CaNQylEA-CMyzxyGW.js → VendorACHDetailsPage-DSwUAV1v-CbrK94ta.js} +1 -1
  177. package/dist/assets/{VendorDetailPage-DqdH4UMj-tM-8a-UX.js → VendorDetailPage-DNoyNRTj-C-IERg2G.js} +1 -1
  178. package/dist/assets/{VendorDomesticWireDetailsPage-9pyV_r_g-CREdXXXG.js → VendorDomesticWireDetailsPage-Bc8qjWTX-DDZJAFPN.js} +1 -1
  179. package/dist/assets/{VendorFiling1099EditablePage-nb9_V73Z-CwrDCXoq.js → VendorFiling1099EditablePage-B1B5iG9x-IH4qWXQP.js} +1 -1
  180. package/dist/assets/{VendorFirstReviewPage-C2RjaA8x-C3EURG-_.js → VendorFirstReviewPage-B4yTlldy-c7VfwBSL.js} +1 -1
  181. package/dist/assets/{VendorInternationalWireDetailsPage-VOAgofls-DxNfQmbI.js → VendorInternationalWireDetailsPage-CJFUOmlk-Dd28v-fb.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CcRuLO-_-CRRJCsCk.js → VendorInternationalWireSwiftDetailsPage-CegBbxXf-CzheMiD_.js} +1 -1
  183. package/dist/assets/{VendorsAccountsSection-RzVUJ8IV-CIdzas-R.js → VendorsAccountsSection-WAKW9Ve9-CYEkLKyS.js} +1 -1
  184. package/dist/assets/{VerifyDevice-DUxQHfLf-DyoufOtx.js → VerifyDevice-CcZqv2Lp-BtsM-4Q_.js} +1 -1
  185. package/dist/assets/{VideoPlayer-BxuhQQfM-CSaCo4fi.js → VideoPlayer-UPe1R-1g-BKErNhSD.js} +1 -1
  186. package/dist/assets/{VideoPopup-DdtmLcPB-9kSPQrRF.js → VideoPopup-CUd3F8wz-B_M6bvaF.js} +1 -1
  187. package/dist/assets/{WarningsDrawerPage-DC5ophK0-B9MWpL_5.js → WarningsDrawerPage-CDKJe82X-BN7YIchI.js} +1 -1
  188. package/dist/assets/{ZeniAccountDetailPage-C1KKeyYC-AmZ_-UbH.js → ZeniAccountDetailPage-Bm-Zan6l-DMTyK70d.js} +1 -1
  189. package/dist/assets/{ZeniAccountListViewPage-Bw5_2Q-c-Zl0NVbWL.js → ZeniAccountListViewPage-CCB38vGw-DXjIa160.js} +1 -1
  190. package/dist/assets/{ZeniAccountNavBarPieces-DlfwFtOB-BhG7WDho.js → ZeniAccountNavBarPieces-Cxtt22Vg-BWEZi8Wz.js} +1 -1
  191. package/dist/assets/{ZeniAccountPromoPage-B8cXf7Ni-BGYao9Jv.js → ZeniAccountPromoPage-CPLBUFop-BzqG3LSb.js} +1 -1
  192. package/dist/assets/{ZeniAccountSetupPage-Cae0pB-b-Blr8FOsP.js → ZeniAccountSetupPage-jOZVnJMr-BLHd4fYC.js} +1 -1
  193. package/dist/assets/{ZeniCopyright-gTS4uZlF-BTYFdkhV.js → ZeniCopyright-BX77ah4B-D_yAd7Va.js} +1 -1
  194. package/dist/assets/{ZeniTransferAmountSlider-17kY7kNO-DEs9IrPm.js → ZeniTransferAmountSlider-DwZiry1v-GEKPKIiC.js} +1 -1
  195. package/dist/assets/{analyticsHelper-kRUwHHg6.js → analyticsHelper-BwEP58wt.js} +1 -1
  196. package/dist/assets/{analyticsHelper-DXVBA0aW-q_4bVB8v.js → analyticsHelper-tTHd6Unu-CYLEPAPI.js} +1 -1
  197. package/dist/assets/{chartTypes-BXBHlosV-DY5SgOjH.js → chartTypes-BFYRQ3Cv-DXLSHrzv.js} +1 -1
  198. package/dist/assets/{commonDimensions-Bm2CSHrw-S9XM9nhL.js → commonDimensions-C2kzP_me-DlNLSq1Y.js} +1 -1
  199. package/dist/assets/{detailCommon-VW4xegQy-1DhxNuRe.js → detailCommon-BAtNx7ca-DaS89rQv.js} +1 -1
  200. package/dist/assets/{downloadPdf-DUAAPKqC-BN9D0Y0M.js → downloadPdf-Sdq-1kVQ-DVyuLdQW.js} +1 -1
  201. package/dist/assets/{index-BS0RW8dr.js → index-B6FLCqRf.js} +5 -5
  202. package/dist/assets/{mapLoadingInProgressToTreeNode-D5WZ1WGx-B7azUcXb.js → mapLoadingInProgressToTreeNode-8AkwjRg3-m9352Ilv.js} +1 -1
  203. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BxzLwMCb-DSGmyD1M.js → mapSectionWithAcOnlyToTreeNode-BZ6gG9Ko-DV4ta1Hw.js} +1 -1
  204. package/dist/assets/{mapSpacerToTreeNode-CScyNZ9s-wlC4VP1v.js → mapSpacerToTreeNode-CfM4s6Ab-CKCx6_2V.js} +1 -1
  205. package/dist/assets/{mapTimeframeBalancesToTreeNode-Caj8eqsL-Kzqcpw75.js → mapTimeframeBalancesToTreeNode-B0gWnt3S-SH7tUKnq.js} +1 -1
  206. package/dist/assets/{mapTimeframeBalancesToTreeNode-CdVqeC27-Dxhi6BEZ.js → mapTimeframeBalancesToTreeNode-Ckh-PZp0-BSwjfYWq.js} +1 -1
  207. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CUFXYz6j-YXXdz_Ql.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B6ynSFN--caRyYD8h.js} +1 -1
  208. package/dist/assets/{toCOABalancesWithID-CqzWoD-C-D32cGljj.js → toCOABalancesWithID-CHuRV6Cy-XAwo936L.js} +1 -1
  209. package/dist/assets/{toChartData-X878W8tN-DZEeyq4i.js → toChartData-DjeEqlPj-BJYwHkjk.js} +1 -1
  210. package/dist/assets/{uploadAttachment-DNKgJox4-CH4FqFzC.js → uploadAttachment-l_PHn7FL-_orBdxbm.js} +1 -1
  211. package/dist/assets/{uploadReceipts-Bkf_PaOH-DrwBt5Yx.js → uploadReceipts-Bkf_PaOH-Vf7-L7FN.js} +1 -1
  212. package/dist/index.html +1 -1
  213. package/package.json +4 -4
  214. package/dist/assets/CustomerOnboardingContainerPage-BkPTeV9_-YlZ2rpks.js +0 -1
@@ -1,4 +1,4 @@
1
- import{d as h,V as r,aJ as a,aK as m,b0 as f,F as j,aP as l,bB as x,ag as g,o as c,b1 as p}from"./index-BS0RW8dr.js";import{n as s}from"./mui-bYXq4XMS.js";import{a as d}from"./core-3dlyNYRL.js";function y({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function C({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
1
+ import{d as h,V as r,aJ as a,aK as m,b0 as f,F as j,aP as l,bB as x,ag as g,o as c,b1 as p}from"./index-B6FLCqRf.js";import{n as s}from"./mui-bYXq4XMS.js";import{a as d}from"./core-3dlyNYRL.js";function y({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function C({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
2
2
  justify-content: flex-start;
3
3
  `;function V({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(C,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function q({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(p,{children:({height:i,width:n})=>r.jsx(y,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const w=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{d as K,Q as ie,ca as me,a8 as fe,V as o,an as ge,F as X,cb as ee,ab as xe,y as O,aO as be,o as n,cc as ye,cd as we,ce as _e,cf as $e,cg as ve,al as ce,ch as ke,u as p,ag as Ce,aA as Q,bB as je,aS as Se,ak as Ne,at as Ie}from"./index-BS0RW8dr.js";import{a as f,w as de}from"./core-3dlyNYRL.js";import{n as d}from"./mui-bYXq4XMS.js";import{R as P,I as Oe}from"./CollapsableReportTable-DdMyzUD0-BAoVL7wM.js";const R=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Fe(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ro(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Fe(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
1
+ import{d as K,Q as ie,ca as me,a8 as fe,V as o,an as ge,F as X,cb as ee,ab as xe,y as O,aO as be,o as n,cc as ye,cd as we,ce as _e,cf as $e,cg as ve,al as ce,ch as ke,u as p,ag as Ce,aA as Q,bB as je,aS as Se,ak as Ne,at as Ie}from"./index-B6FLCqRf.js";import{a as f,w as de}from"./core-3dlyNYRL.js";import{n as d}from"./mui-bYXq4XMS.js";import{R as P,I as Oe}from"./CollapsableReportTable-B2M1S7L1-GNwZ9Yr0.js";const R=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Fe(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ro(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Fe(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
2
2
  padding: 0 ${n.sp3} 0 ${n.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{Q as W,d as G,F as y,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y as B,o as w,aQ as we,A as ye,bM as Ce,u as S,x as R,aA as J,t as xe,aS as Oe,as as Ae,bD as Re}from"./index-BS0RW8dr.js";import{a as T,w as X}from"./core-3dlyNYRL.js";import{n as _}from"./mui-bYXq4XMS.js";import{bh as H,eK as Be,eT as ve,eU as $,eV as Le,eW as Te,eX as Pe,eY as ke,eZ as Ne,e_ as ee,e$ as te}from"./zeni-epic-state-LPACxnXP.js";import{m as z,l as q}from"./analyticsHelper-DXVBA0aW-q_4bVB8v.js";import{u as Ie}from"./ReportTableViewSelector-Dv7BwM1q-DZ-FOl5q.js";import{a as se,p as Me}from"./TimeRangeSwitcher-C4Tph63B-D9xSXRlF.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-Cw3a9d0I-BlbsDDpn.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-D2vm9EYI-1UU-2gMF.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-DdMyzUD0-BAoVL7wM.js";import{D as oe,T as ae,C as j,L as Ee,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BxzLwMCb-DSGmyD1M.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-CdVqeC27-Dxhi6BEZ.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CUFXYz6j-YXXdz_Ql.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-D5WZ1WGx-B7azUcXb.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./TimeframeSwitcher-LLgotbh8-X4qFRStD.js";import"./page-detail-CWX5S47F-Bc8Xpsuq.js";import"./AccountRow-CIsbwvGp-J3oMxL3b.js";function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function Ze(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else ke(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ne(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function He(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(Ee({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
1
+ import{Q as W,d as G,F as y,av as ge,V as r,aK as P,bL as _e,bA as be,bz as Se,y as B,o as w,aQ as we,A as ye,bM as Ce,u as S,x as R,aA as J,t as xe,aS as Oe,as as Ae,bD as Re}from"./index-B6FLCqRf.js";import{a as T,w as X}from"./core-3dlyNYRL.js";import{n as _}from"./mui-bYXq4XMS.js";import{bh as H,eK as Be,eT as ve,eU as $,eV as Le,eW as Te,eX as Pe,eY as ke,eZ as Ne,e_ as ee,e$ as te}from"./zeni-epic-state-LPACxnXP.js";import{m as z,l as q}from"./analyticsHelper-tTHd6Unu-CYLEPAPI.js";import{u as Ie}from"./ReportTableViewSelector-DlD_ISoP-DYJZDLbh.js";import{a as se,p as Me}from"./TimeRangeSwitcher-DV7Vkxir-CS7Y16la.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-DLiPwXnZ-Dg1G7031.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-ebdpHSki-CAJMStLG.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-B2M1S7L1-GNwZ9Yr0.js";import{D as oe,T as ae,C as j,L as Ee,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BZ6gG9Ko-DV4ta1Hw.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-Ckh-PZp0-BSwjfYWq.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-B6ynSFN--caRyYD8h.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-8AkwjRg3-m9352Ilv.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./TimeframeSwitcher-n-e2hXsK-B_34BEd7.js";import"./page-detail-CWX5S47F-Bc8Xpsuq.js";import"./AccountRow-DqB8rPL2-DMH55Auf.js";function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function Ze(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else ke(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ne(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function He(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(Ee({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
2
2
  height: ${e=>e.height}px;
3
3
  width: 99.9%;
4
4
  margin-top: ${w.sp2};
@@ -1,4 +1,4 @@
1
- import{d as A,V as a,F as S,Q as de,aK as Ae,b1 as Z,u as I,b as M,aV as J,o as m,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-BS0RW8dr.js";import{a as P,w as ee}from"./core-3dlyNYRL.js";import{n as x}from"./mui-bYXq4XMS.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-BXBHlosV-DY5SgOjH.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-CqzWoD-C-D32cGljj.js";import{V as Q}from"./toChartData-X878W8tN-DZEeyq4i.js";import{B as Te,C as te,X as le,Y as ne,T as ce,L as pe,b as se,c as me,d as fe}from"./recharts-BHhx6CLo.js";const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
1
+ import{d as A,V as a,F as S,Q as de,aK as Ae,b1 as Z,u as I,b as M,aV as J,o as m,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-B6FLCqRf.js";import{a as P,w as ee}from"./core-3dlyNYRL.js";import{n as x}from"./mui-bYXq4XMS.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-BFYRQ3Cv-DXLSHrzv.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-CHuRV6Cy-XAwo936L.js";import{V as Q}from"./toChartData-DjeEqlPj-BJYwHkjk.js";import{B as Te,C as te,X as le,Y as ne,T as ce,L as pe,b as se,c as me,d as fe}from"./recharts-BHhx6CLo.js";const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
2
2
  display: flex;
3
3
  `,He=x.div`
4
4
  margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
@@ -1,4 +1,4 @@
1
- import{Q as Tt,av as Ct,y as u,e$ as Dt,F as It,f0 as Pt,f1 as kt,V as t,f2 as At,f3 as le,f4 as Mt,f5 as Bt,f6 as Ft,aK as j,f7 as Lt,aL as A,f8 as Rt,f9 as zt,fa as Me,fb as Be,fc as Fe,b as U,fd as O,fe as E,ff as W,p as S,fg as Nt,fh as Ot,fi as Et,fj as Wt,bQ as Le,o as n,aO as Zt,u as d,ah as Gt,b$ as Vt,B as Yt,M as Kt,fk as _t,cf as Ut,ak as de,al as ce,fl as qt,fm as Ht,bg as Qt,c as Jt,b7 as Xt,ap as et,bI as en,ag as tt,br as tn,fn as nn}from"./index-BS0RW8dr.js";import{a as G}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{bp as Re,bn as ze,bK as I,bQ as an,fv as ln,bO as oe,bS as on}from"./zeni-epic-state-LPACxnXP.js";import{t as rn,o as sn}from"./LowBalancePopup-Du0kX_mJ-B-0Hf7BW.js";import{S as Z}from"./LabeledText-BzD_-lgI-Br_7nwt2.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const 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 Yt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:y}},spendManagement:{billPay:mn}}=It.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[b,g]=G.useState(!1),M=()=>{g(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?g(!0):null,children:[b&&e?.fileDownloadUrl!=null?t.jsx(qt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Ht,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:b,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:f,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:dt})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:f},F=g&&f!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(s),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?Pt(ge,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?kt(ge,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,fe]=G.useState(!1),[mt,xe]=G.useState(!1),be=()=>fe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:s,children:t.jsx(Ln,{})})]}):At(e.paymentDetailsSection?.paymentTo);G.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),gt=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,K=b.allApprovalRules.length>0,ft=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),h=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=h&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),x=k&&!ot,je=Ze(x,K,e.isBillMarkedForRetry),wt=()=>h?x?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Ot(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Bt(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(f??"new_bill"),o?.method!=null&&l!=null){const St=h?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),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 Ce=$?.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(Ce,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&_(!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,b.allApprovalRules,c.loggedInUser),[Te,_]=G.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{_(!1),ne()},onClickAway:()=>{_(!1)}}):null,t.jsx(Ft,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Lt,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:s,style:at,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(qe,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(qe,{onClick:we})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Kn,{}),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:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Gn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=zt(l);return l!=null?t.jsx(Vn,{children:nt.includes(s)?t.jsxs(Ke,{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(He,{children:t.jsx(Qe,{})}),t.jsx(H,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(H,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ke,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(He,{children:t.jsx(Qe,{})}),t.jsxs(Zn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(H,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(H,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(_e,{children:a.pay}),t.jsx(Ue,{children:t.jsx(Fe,{amount:ft,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(_e,{children:a.to}),t.jsx(Ue,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[h?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(Z,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Nt(e.paymentDetailsSection.withdrawFrom,s):y,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(Z,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(q,{}),!h&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(Z,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(q,{})]}):null,h?null:t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(Z,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:gt})}),h||lt?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(Z,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Wt(e.isRecurring,h,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,h,e.recurringConfig)})})]}):null]}),!h&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(fn,{children:t.jsxs(xn,{windowSize:s,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(gn,{children:[t.jsxs(Ve,{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(Ve,{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:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Zt,{cancelBtn:{label:k&&!x?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!x?ve:ne,style:{width:Ge(!1,k,x,K,s)}},primaryBtn:{label:Ze(x,K,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:x?ve:()=>{vt&&ae!=null?_(!0):Se()},style:{width:Ge(!0,k,x,K,s)}},rightSideComponent:k&&!x&&z.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Le,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(qn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):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})]})},Ze=(e,b,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:b?a.sendForApproval:a.scheduleBill,Ge=(e,b,g,M,T)=>g?128:b&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
1
+ import{Q as Tt,av as Ct,y as u,e$ as Dt,F as It,f0 as Pt,f1 as kt,V as t,f2 as At,f3 as le,f4 as Mt,f5 as Bt,f6 as Ft,aK as j,f7 as Lt,aL as A,f8 as Rt,f9 as zt,fa as Me,fb as Be,fc as Fe,b as U,fd as O,fe as E,ff as W,p as S,fg as Nt,fh as Ot,fi as Et,fj as Wt,bQ as Le,o as n,aO as Zt,u as d,ah as Gt,b$ as Vt,B as Yt,M as Kt,fk as _t,cf as Ut,ak as de,al as ce,fl as qt,fm as Ht,bg as Qt,c as Jt,b7 as Xt,ap as et,bI as en,ag as tt,br as tn,fn as nn}from"./index-B6FLCqRf.js";import{a as G}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{bp as Re,bn as ze,bK as I,bQ as an,fv as ln,bO as oe,bS as on}from"./zeni-epic-state-LPACxnXP.js";import{t as rn,o as sn}from"./LowBalancePopup-BMSJwe7h-DMWskG_J.js";import{S as Z}from"./LabeledText-BNDM-899-06P8MShM.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const 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 Yt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:y}},spendManagement:{billPay:mn}}=It.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[b,g]=G.useState(!1),M=()=>{g(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?g(!0):null,children:[b&&e?.fileDownloadUrl!=null?t.jsx(qt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Ht,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:b,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:f,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:dt})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:f},F=g&&f!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(s),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?Pt(ge,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?kt(ge,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,fe]=G.useState(!1),[mt,xe]=G.useState(!1),be=()=>fe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:s,children:t.jsx(Ln,{})})]}):At(e.paymentDetailsSection?.paymentTo);G.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),gt=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,K=b.allApprovalRules.length>0,ft=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),h=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=h&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),x=k&&!ot,je=Ze(x,K,e.isBillMarkedForRetry),wt=()=>h?x?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Ot(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Bt(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(f??"new_bill"),o?.method!=null&&l!=null){const St=h?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),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 Ce=$?.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(Ce,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&_(!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,b.allApprovalRules,c.loggedInUser),[Te,_]=G.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{_(!1),ne()},onClickAway:()=>{_(!1)}}):null,t.jsx(Ft,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Lt,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:s,style:at,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(qe,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(qe,{onClick:we})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Kn,{}),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:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Gn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=zt(l);return l!=null?t.jsx(Vn,{children:nt.includes(s)?t.jsxs(Ke,{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(He,{children:t.jsx(Qe,{})}),t.jsx(H,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(H,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ke,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(He,{children:t.jsx(Qe,{})}),t.jsxs(Zn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(H,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(H,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(_e,{children:a.pay}),t.jsx(Ue,{children:t.jsx(Fe,{amount:ft,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(_e,{children:a.to}),t.jsx(Ue,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[h?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(Z,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Nt(e.paymentDetailsSection.withdrawFrom,s):y,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(Z,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(q,{}),!h&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(Z,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(q,{})]}):null,h?null:t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(Z,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:gt})}),h||lt?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:f,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??y,companyName:c.currentTenant?.companyName??y,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(Z,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Wt(e.isRecurring,h,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,h,e.recurringConfig)})})]}):null]}),!h&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(fn,{children:t.jsxs(xn,{windowSize:s,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(gn,{children:[t.jsxs(Ve,{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(Ve,{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:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Zt,{cancelBtn:{label:k&&!x?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!x?ve:ne,style:{width:Ge(!1,k,x,K,s)}},primaryBtn:{label:Ze(x,K,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:x?ve:()=>{vt&&ae!=null?_(!0):Se()},style:{width:Ge(!0,k,x,K,s)}},rightSideComponent:k&&!x&&z.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Le,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(qn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):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})]})},Ze=(e,b,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:b?a.sendForApproval:a.scheduleBill,Ge=(e,b,g,M,T)=>g?128:b&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{Q as M,V as e,aK as x,o as r,aO as P,y as d,_ as L,B as C,M as W,p as s,ak as $,cy as R,A as D,ag as j,bf as I,u as n,el as G,s as A,iQ as Q,j$ as F}from"./index-BS0RW8dr.js";import{n as t}from"./mui-bYXq4XMS.js";const l={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])},O={title:new C("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:E,hideCancel:T},onCloseOverlay:k,onCloseReviewItem:B})=>{const a=M();return e.jsxs(_,{children:[e.jsx(N,{windowSize:a,children:e.jsx(X,{children:e.jsx(Z,{windowSize:a,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(H,{windowSize:a,children:[e.jsxs(J,{windowSize:a,children:[e.jsx(K,{children:e.jsx(U,{windowSize:a,children:i})}),e.jsx(Y,{isError:p.isError,windowSize:a,children:p.content})]}),e.jsx(q,{windowSize:a,children:S.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return e.jsxs(ri,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?e.jsx(ci,{onClick:()=>B(o.id),"data-testid":x("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:V(o)}),e.jsxs(oi,{children:[e.jsxs(m,{children:[e.jsx(u,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),e.jsx(u,{isWarning:c,isError:h,children:o.rightSideText.title})]}),e.jsxs(m,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?e.jsxs(w,{windowSize:a,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(v,{children:e.jsx(y,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?e.jsxs(w,{windowSize:a,children:[e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(v,{children:e.jsx(y,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),b?e.jsx(P,{primaryBtn:z,cancelBtn:E,showCancel:!T}):null]})},V=i=>i.reviewStatus.isLoading?e.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(f,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(f,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(ai,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(li,{}),_=t.div`
1
+ import{Q as M,V as e,aK as x,o as r,aO as P,y as d,_ as L,B as C,M as W,p as s,ak as $,cy as R,A as D,ag as j,bf as I,u as n,el as G,s as A,iQ as Q,j$ as F}from"./index-B6FLCqRf.js";import{n as t}from"./mui-bYXq4XMS.js";const l={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])},O={title:new C("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:E,hideCancel:T},onCloseOverlay:k,onCloseReviewItem:B})=>{const a=M();return e.jsxs(_,{children:[e.jsx(N,{windowSize:a,children:e.jsx(X,{children:e.jsx(Z,{windowSize:a,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(H,{windowSize:a,children:[e.jsxs(J,{windowSize:a,children:[e.jsx(K,{children:e.jsx(U,{windowSize:a,children:i})}),e.jsx(Y,{isError:p.isError,windowSize:a,children:p.content})]}),e.jsx(q,{windowSize:a,children:S.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return e.jsxs(ri,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?e.jsx(ci,{onClick:()=>B(o.id),"data-testid":x("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:V(o)}),e.jsxs(oi,{children:[e.jsxs(m,{children:[e.jsx(u,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),e.jsx(u,{isWarning:c,isError:h,children:o.rightSideText.title})]}),e.jsxs(m,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?e.jsxs(w,{windowSize:a,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(v,{children:e.jsx(y,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?e.jsxs(w,{windowSize:a,children:[e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(v,{children:e.jsx(y,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),b?e.jsx(P,{primaryBtn:z,cancelBtn:E,showCancel:!T}):null]})},V=i=>i.reviewStatus.isLoading?e.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(f,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(f,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(ai,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(li,{}),_=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${i=>i.theme.colors.grey4};
@@ -1,4 +1,4 @@
1
- import{eP as h,eQ as x,V as s,bQ as m,o as n,aK as o,F as g,am as j,ag as p}from"./index-BS0RW8dr.js";import{n as r}from"./mui-bYXq4XMS.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=r.div``,f=r.div`
1
+ import{eP as h,eQ as x,V as s,bQ as m,o as n,aK as o,F as g,am as j,ag as p}from"./index-B6FLCqRf.js";import{n as r}from"./mui-bYXq4XMS.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=r.div``,f=r.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{aN as K,ie as ee,gA as me,eA as Le,ig as we,a8 as Je,ih as Me,cB as Ve,cC as _e,V as a,F as ye,ab as Pe,cm as Fe,cn as Ne,co as qe,aO as Be,ii as Re,ij as We,a9 as he,ik as fe,il as Ue,cO as ze,Q as $e,iA as Ge,gF as re,u as R,p as Se,y as De,cE as Ke,im as He,io as Ye,ip as Ze,o as _}from"./index-BS0RW8dr.js";import{a as m}from"./core-3dlyNYRL.js";import{n as U}from"./mui-bYXq4XMS.js";import{f_ as Qe,f$ as Xe}from"./zeni-epic-state-LPACxnXP.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-Bv1feMZc-DEmwzIZ-.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=U.div`
1
+ import{aN as K,ie as ee,gA as me,eA as Le,ig as we,a8 as Je,ih as Me,cB as Ve,cC as _e,V as a,F as ye,ab as Pe,cm as Fe,cn as Ne,co as qe,aO as Be,ii as Re,ij as We,a9 as he,ik as fe,il as Ue,cO as ze,Q as $e,iA as Ge,gF as re,u as R,p as Se,y as De,cE as Ke,im as He,io as Ye,ip as Ze,o as _}from"./index-B6FLCqRf.js";import{a as m}from"./core-3dlyNYRL.js";import{n as U}from"./mui-bYXq4XMS.js";import{f_ as Qe,f$ as Xe}from"./zeni-epic-state-LPACxnXP.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-BCmdqAXy-DeHIoKHW.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=U.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{aN as _,ie as Q,gA as ke,eA as Ae,ig as Ie,a8 as Je,ih as Le,cB as we,cC as Me,V as a,F as fe,ab as Ve,cm as Pe,cn as Fe,co as _e,aO as $e,ii as Be,ij as Ne,a9 as ie,ik as he,il as qe,cO as Ue,Q as ze,gF as pe,u as X,p as We,y as Re,im as Ke,io as Ge,ip as He,o as L}from"./index-BS0RW8dr.js";import{a as D}from"./core-3dlyNYRL.js";import{n as P}from"./mui-bYXq4XMS.js";import{f_ as Ye,f$ as Qe,bO as Xe}from"./zeni-epic-state-LPACxnXP.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-Bv1feMZc-DEmwzIZ-.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const q={labelWidth:new Re(160,160,160)},at=P.div`
1
+ import{aN as _,ie as Q,gA as ke,eA as Ae,ig as Ie,a8 as Je,ih as Le,cB as we,cC as Me,V as a,F as fe,ab as Ve,cm as Pe,cn as Fe,co as _e,aO as $e,ii as Be,ij as Ne,a9 as ie,ik as he,il as qe,cO as Ue,Q as ze,gF as pe,u as X,p as We,y as Re,im as Ke,io as Ge,ip as He,o as L}from"./index-B6FLCqRf.js";import{a as D}from"./core-3dlyNYRL.js";import{n as P}from"./mui-bYXq4XMS.js";import{f_ as Ye,f$ as Qe,bO as Xe}from"./zeni-epic-state-LPACxnXP.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-BCmdqAXy-DeHIoKHW.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const q={labelWidth:new Re(160,160,160)},at=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{Q as I,d as K,V as t,iq as ie,F as R,ir as le,B as oe,is as xe,dS as fe,fc as we,b as A,it as ye,ip as be,o as i,y as b,p as j,c as $e,a9 as re,dO as je,cm as Se,co as ke,cO as Z,cW as ee,cU as ve,iu as Q,iv as De,b1 as Ce,iw as Me,cq as ze,ix as Le,u as h,ak as L,b7 as Oe,cn as Ee,an as pe,cX as Ae,a$ as ne,d7 as Ie,aO as Ve,iy as V,gb as Fe,aL as Te,iz as Be,aS as _,cY as Je,bf as Pe}from"./index-BS0RW8dr.js";import{n as o,b as J}from"./mui-bYXq4XMS.js";import{a as C}from"./core-3dlyNYRL.js";import{bj as G,g0 as Re}from"./zeni-epic-state-LPACxnXP.js";const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(x,l),g=I(),a=K();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Ie,{name:N(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(Ye,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ve,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(_e,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Qe,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function Ye({defaultValue:e,onClick:l}){return t.jsxs(Ke,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(q,{isSelected:r===e,onClick:()=>l(Re(r)),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
1
+ import{Q as I,d as K,V as t,iq as ie,F as R,ir as le,B as oe,is as xe,dS as fe,fc as we,b as A,it as ye,ip as be,o as i,y as b,p as j,c as $e,a9 as re,dO as je,cm as Se,co as ke,cO as Z,cW as ee,cU as ve,iu as Q,iv as De,b1 as Ce,iw as Me,cq as ze,ix as Le,u as h,ak as L,b7 as Oe,cn as Ee,an as pe,cX as Ae,a$ as ne,d7 as Ie,aO as Ve,iy as V,gb as Fe,aL as Te,iz as Be,aS as _,cY as Je,bf as Pe}from"./index-B6FLCqRf.js";import{n as o,b as J}from"./mui-bYXq4XMS.js";import{a as C}from"./core-3dlyNYRL.js";import{bj as G,g0 as Re}from"./zeni-epic-state-LPACxnXP.js";const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(x,l),g=I(),a=K();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Ie,{name:N(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(Ye,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ve,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(_e,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Qe,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function Ye({defaultValue:e,onClick:l}){return t.jsxs(Ke,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(q,{isSelected:r===e,onClick:()=>l(Re(r)),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(Y,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(q,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
2
2
  position: relative;
3
3
  `,_e=o.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{c_ as Gh,c$ as ir,d0 as Hh,d1 as qt,d2 as xl,d3 as Ot,d4 as Zh,d5 as Tl,d6 as ls,d7 as Yh,d8 as Wh,d9 as mr,da as ar,db as Kh,dc as nn,dd as qo,cP as Jh,de as No,df as Xr,dg as kt,dh as Xh,di as Il,dj as Al,dk as Qh,dl as ed,dm as td,dn as rd,dp as hs,dq as nd,dr as id,ds as ad,dt as od,cV as sd,du as Cl,dv as ud,bO as Jr,dw as ds,dx as cd,dy as Pl,dz as an,dA as pt,dB as Do,dC as fd,dD as ld,B as et,A as ye,dE as $o,dF as hd,dG as dd,dH as pd,dI as kl,dJ as md,dK as ps,dL as gd,dM as vd,dN as bn,dO as yd,dP as _d,dQ as St,dR as bd,cC as wd,dS as jl,dT as Ll,dU as Mo,dV as Fo,dW as Ed,dX as Sd,dY as Rd,dZ as Od,d_ as xd,d$ as Td,e0 as Id,e1 as Ad,e2 as Cd,e3 as Zt,e4 as Bo,e5 as Pd,e6 as kd,e7 as jd,e8 as ql,e9 as Nl,ea as Ld,eb as Dl,ec as qd,ed as Nd,ee as Dd,ef as $d,eg as Md,eh as Fd,ei as Bd,ej as Ud,ek as $l,el as wn,em as Ml,en as Uo,eo as Vd,ep as Fl,eq as zd,er as Gd,es as Hd,et as Zd,eu as Yd,ev as Wd,ew as Kd,ex as Jd,c3 as Xd,bd as Qd,ey as ep,ez as Mt,eA as tp,eB as rp,eC as np,eD as Po,bb as ip}from"./zeni-epic-state-LPACxnXP.js";import{j as U,D as on,n as tt,S as Bt}from"./mui-bYXq4XMS.js";import{p as Ve,x as Ke,y as ct,z as ap,a as le,n as Oe,o as ze,N as er,s as bt,t as xe,e as Bl,d as Ul,g as op,u as Vo,q as ko}from"./core-3dlyNYRL.js";import{d as Ut,Q as sn,e as Ue,z as We,y as ut,f as sp,W as up,g as un,h as cp,N as xt,F as or,i as Vt,j as Nt,A as cn,o as Pt,q as fp,v as lp,k as jt,l as zo,D as Lt,Z as hp,Y as dp,u as En,X as pp,m as Vl,w as mp,r as zl,t as Gl,x as jo,C as gp,G as vp,H as yp,I as Hl,J as _p,K as bp,L as wp,O as Ep,R as Sp,S as Rp,T as Op,$ as xp,a0 as Tp,a1 as Ip,a2 as Ap,a3 as Cp,a4 as Pp}from"./index-BS0RW8dr.js";import{f as kp}from"./analyticsHelper-kRUwHHg6.js";import{q as He,v as jp,w as Lp,x as qp,y as Go,z as Np,A as Dp,B as $p,C as zt,D as Mp,E as rr,F as fn,G as Fp,H as sr,I as Bp}from"./utils-uDUqNRFY.js";import{r as Ho}from"./empty-CnIz-OQ7.js";import{r as ur,a as Up}from"./index-BQbbCzKZ.js";import{r as Vp}from"./index-jNlf8Zjb.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./url-BxQKeS2R.js";const zp={overlayWidth:new ut(100,100,50)},{common:{strings:ms}}=or.getLocalizedStrings();function Gp(e,n){return{headerActions:{onTabChange:o=>{const i=Nt(o),a=Vt(o);Ue.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(mr({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ue.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(ms.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(ms.comma)}}),e(mr({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Tl(o))},onColumnSortConfigChanged:(o,i)=>{e(mr({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(xl())},onFiltersChange:o=>{e(mr({uiState:{filters:o}}))}}}}function Hp(e,n){return{headerData:{selectedTabOption:xt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Zp=ze(Hp,Gp)(cp);function Sn({isDrawerOpen:e}){const n=Ve(),o=Ke(),i=Ut(),a=sn(),{companyId:t}=ct(),[r,s]=ap(),[d,l]=le.useState(!1),f=Oe(b=>Gh(b)),h=Oe(b=>ir(b)),{additionalChurnFactors:c}=Oe(b=>Hh(b)),{selectedCompanyDetail:w,selectedCompanyId:m,localFormDataAndStatusByCompanyId:y}=f,g=Oe(b=>b.companyViewState.zeniUsers.fetchState),u=Oe(b=>b.companyHealthMetricConfigViewState);if(le.useEffect(()=>{const b=v=>v==="Not-Started"||v==="Error";f.fetchState==="Completed"?o(qt(!1)):b(f.fetchState)&&(o(xl()),b(g)&&o(Ot()),b(u.fetchState)&&o(Zh()))},[f.fetchState,u.fetchState]),le.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Tl(t)),w!=null&&(Ue.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),We.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||m!=null&&w!=null?U.jsx(on,{anchor:"right",open:m!=null,PaperProps:{style:{width:zp.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(ls()),children:U.jsx(sp,{roomId:`cockpit_${m}`,autoConnect:!0,children:U.jsx(up,{onSaveClick:()=>{m!=null&&o(Wh(m))},onSaveChangesToLocalStore:b=>{f.selectedCompanyId!=null&&o(Yh({companyId:f.selectedCompanyId,updatedLocalData:b}))},localData:y?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>o(ls()),analytics:Ue,urlSource:d,additionalChurnFactorsOptions:c})})}):null,U.jsx(Zp,{healthView:f,managementView:h,navigate:n,mixpanelHMUrl:un.mixpanelHMUrl})]})}const Zl=(e,n)=>{const o=[...e??[]];return o.push(n),o},Yp=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Wp=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>We.isSignedIn()===!0?U.jsx(U.Fragment,{children:n}):U.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Kp(){return U.jsxs(bt,{children:[U.jsx(xe,{path:"/companies/:companyId",element:U.jsx(Pe,{element:U.jsx(Sn,{isDrawerOpen:!0})})}),U.jsx(xe,{path:"/",element:U.jsx(Pe,{element:U.jsx(Sn,{})})}),U.jsx(xe,{path:"/*",element:U.jsx(Pe,{element:U.jsx(Sn,{})})})]})}const Jp={drawerLeftMargin:new ut(0,0,240)};function cr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=sn(),r=o?.valuePx(t)??Jp.drawerLeftMargin.valuePx(t),s=Ut();return U.jsx(on,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Xp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(Qp,{children:U.jsx(cn,{size:"ExtraLarge",start:!0})}):null,Qp=tt.div`
1
+ import{c_ as Gh,c$ as ir,d0 as Hh,d1 as qt,d2 as xl,d3 as Ot,d4 as Zh,d5 as Tl,d6 as ls,d7 as Yh,d8 as Wh,d9 as mr,da as ar,db as Kh,dc as nn,dd as qo,cP as Jh,de as No,df as Xr,dg as kt,dh as Xh,di as Il,dj as Al,dk as Qh,dl as ed,dm as td,dn as rd,dp as hs,dq as nd,dr as id,ds as ad,dt as od,cV as sd,du as Cl,dv as ud,bO as Jr,dw as ds,dx as cd,dy as Pl,dz as an,dA as pt,dB as Do,dC as fd,dD as ld,B as et,A as ye,dE as $o,dF as hd,dG as dd,dH as pd,dI as kl,dJ as md,dK as ps,dL as gd,dM as vd,dN as bn,dO as yd,dP as _d,dQ as St,dR as bd,cC as wd,dS as jl,dT as Ll,dU as Mo,dV as Fo,dW as Ed,dX as Sd,dY as Rd,dZ as Od,d_ as xd,d$ as Td,e0 as Id,e1 as Ad,e2 as Cd,e3 as Zt,e4 as Bo,e5 as Pd,e6 as kd,e7 as jd,e8 as ql,e9 as Nl,ea as Ld,eb as Dl,ec as qd,ed as Nd,ee as Dd,ef as $d,eg as Md,eh as Fd,ei as Bd,ej as Ud,ek as $l,el as wn,em as Ml,en as Uo,eo as Vd,ep as Fl,eq as zd,er as Gd,es as Hd,et as Zd,eu as Yd,ev as Wd,ew as Kd,ex as Jd,c3 as Xd,bd as Qd,ey as ep,ez as Mt,eA as tp,eB as rp,eC as np,eD as Po,bb as ip}from"./zeni-epic-state-LPACxnXP.js";import{j as U,D as on,n as tt,S as Bt}from"./mui-bYXq4XMS.js";import{p as Ve,x as Ke,y as ct,z as ap,a as le,n as Oe,o as ze,N as er,s as bt,t as xe,e as Bl,d as Ul,g as op,u as Vo,q as ko}from"./core-3dlyNYRL.js";import{d as Ut,Q as sn,e as Ue,z as We,y as ut,f as sp,W as up,g as un,h as cp,N as xt,F as or,i as Vt,j as Nt,A as cn,o as Pt,q as fp,v as lp,k as jt,l as zo,D as Lt,Z as hp,Y as dp,u as En,X as pp,m as Vl,w as mp,r as zl,t as Gl,x as jo,C as gp,G as vp,H as yp,I as Hl,J as _p,K as bp,L as wp,O as Ep,R as Sp,S as Rp,T as Op,$ as xp,a0 as Tp,a1 as Ip,a2 as Ap,a3 as Cp,a4 as Pp}from"./index-B6FLCqRf.js";import{f as kp}from"./analyticsHelper-BwEP58wt.js";import{q as He,v as jp,w as Lp,x as qp,y as Go,z as Np,A as Dp,B as $p,C as zt,D as Mp,E as rr,F as fn,G as Fp,H as sr,I as Bp}from"./utils-uDUqNRFY.js";import{r as Ho}from"./empty-CnIz-OQ7.js";import{r as ur,a as Up}from"./index-BQbbCzKZ.js";import{r as Vp}from"./index-jNlf8Zjb.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./url-BxQKeS2R.js";const zp={overlayWidth:new ut(100,100,50)},{common:{strings:ms}}=or.getLocalizedStrings();function Gp(e,n){return{headerActions:{onTabChange:o=>{const i=Nt(o),a=Vt(o);Ue.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(mr({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ue.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(ms.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(ms.comma)}}),e(mr({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Tl(o))},onColumnSortConfigChanged:(o,i)=>{e(mr({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(xl())},onFiltersChange:o=>{e(mr({uiState:{filters:o}}))}}}}function Hp(e,n){return{headerData:{selectedTabOption:xt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Zp=ze(Hp,Gp)(cp);function Sn({isDrawerOpen:e}){const n=Ve(),o=Ke(),i=Ut(),a=sn(),{companyId:t}=ct(),[r,s]=ap(),[d,l]=le.useState(!1),f=Oe(b=>Gh(b)),h=Oe(b=>ir(b)),{additionalChurnFactors:c}=Oe(b=>Hh(b)),{selectedCompanyDetail:w,selectedCompanyId:m,localFormDataAndStatusByCompanyId:y}=f,g=Oe(b=>b.companyViewState.zeniUsers.fetchState),u=Oe(b=>b.companyHealthMetricConfigViewState);if(le.useEffect(()=>{const b=v=>v==="Not-Started"||v==="Error";f.fetchState==="Completed"?o(qt(!1)):b(f.fetchState)&&(o(xl()),b(g)&&o(Ot()),b(u.fetchState)&&o(Zh()))},[f.fetchState,u.fetchState]),le.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Tl(t)),w!=null&&(Ue.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),We.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||m!=null&&w!=null?U.jsx(on,{anchor:"right",open:m!=null,PaperProps:{style:{width:zp.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(ls()),children:U.jsx(sp,{roomId:`cockpit_${m}`,autoConnect:!0,children:U.jsx(up,{onSaveClick:()=>{m!=null&&o(Wh(m))},onSaveChangesToLocalStore:b=>{f.selectedCompanyId!=null&&o(Yh({companyId:f.selectedCompanyId,updatedLocalData:b}))},localData:y?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>o(ls()),analytics:Ue,urlSource:d,additionalChurnFactorsOptions:c})})}):null,U.jsx(Zp,{healthView:f,managementView:h,navigate:n,mixpanelHMUrl:un.mixpanelHMUrl})]})}const Zl=(e,n)=>{const o=[...e??[]];return o.push(n),o},Yp=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Wp=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>We.isSignedIn()===!0?U.jsx(U.Fragment,{children:n}):U.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Kp(){return U.jsxs(bt,{children:[U.jsx(xe,{path:"/companies/:companyId",element:U.jsx(Pe,{element:U.jsx(Sn,{isDrawerOpen:!0})})}),U.jsx(xe,{path:"/",element:U.jsx(Pe,{element:U.jsx(Sn,{})})}),U.jsx(xe,{path:"/*",element:U.jsx(Pe,{element:U.jsx(Sn,{})})})]})}const Jp={drawerLeftMargin:new ut(0,0,240)};function cr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=sn(),r=o?.valuePx(t)??Jp.drawerLeftMargin.valuePx(t),s=Ut();return U.jsx(on,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Xp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(Qp,{children:U.jsx(cn,{size:"ExtraLarge",start:!0})}):null,Qp=tt.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;