@zeniai/web-cockpit-ui 1.14.86-dev → 1.14.87-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 (232) hide show
  1. package/dist/assets/{ACHDetailsPage-D19fvbL2-VL8NJ-kq.js → ACHDetailsPage-D19fvbL2-Nw4N_V4a.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DW0vgs3w-C6_Vooze.js → AIPerformancePage-DW0vgs3w-Cvbkmctn.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-B0HnACVZ-BYAvhrGX.js → AccountInfoPage-B0HnACVZ-BdReVK8p.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-B9DHX_ra-CAQ0-0rF.js → AccountInfoPageContent-B9DHX_ra-BD9WGFMy.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-CM1F6VNU-uV9YAvP-.js → AccountLockedInfoModal-CM1F6VNU-CXgrsuj9.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BbtaXRQT-1akSazct.js → AccountReconDetailsDrawerPage-BbtaXRQT-B0yoE2FM.js} +1 -1
  7. package/dist/assets/{AccountRow-DqB8rPL2-DMH55Auf.js → AccountRow-DqB8rPL2-DSdMIZil.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-G9g_ND9B-Dez_UUBg.js → AccountsPromoCardStack-G9g_ND9B-nArHxnW3.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-UCJdFwxu-eWHSyVQO.js → AddAddressForCardDrawer-UCJdFwxu-BxAkwbp-.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-B-mvkRWQ-Bjrc9a7q.js → AddToWalletPage-B-mvkRWQ-wdcGJtvr.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-dKUkHiCt-MJrPMLqB.js → AgingReportsPage-dKUkHiCt-Drwm6gZ0.js} +1 -1
  12. package/dist/assets/{AllUserItems-CQki1qcr-3QgEUFAR.js → AllUserItems-CQki1qcr-C9ZF7dsP.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-nMjsbSmM-sMJduNX0.js → ApAgingDetailPage-nMjsbSmM-4mZQ-QH4.js} +1 -1
  14. package/dist/assets/{AppBasePage-BYj0h9gw-DH3gxAi6.js → AppBasePage-BYj0h9gw-RBODTxYN.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-C21qZewJ-DTIYgSer.js → AppDrawerContent-C21qZewJ-CJE82F-H.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-B84m25GW-BJTY9z1f.js → ApprovalRulesSettingsPage-B84m25GW-dmvjc61i.js} +1 -1
  17. package/dist/assets/{ArAgingChart-CLxB28eR-BnMhdr3Y.js → ArAgingChart-CLxB28eR-B3OzPEVf.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-C5yzbIB3-Bp9yrmKW.js → ArAgingDetailPage-C5yzbIB3-CxbaLt0G.js} +1 -1
  19. package/dist/assets/{AttachmentView-_qAuq3Am-BnxUEqyT.js → AttachmentView-_qAuq3Am-B8SsX2_q.js} +1 -1
  20. package/dist/assets/{BankAccountSection-B0pfiSf6-O4kzmOgz.js → BankAccountSection-B0pfiSf6-pyGhdVOc.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-Xo-Jy-73-T0cW8wCf.js → BankAccountWarningSection-Xo-Jy-73-BKVAY9Gy.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-o5oe0ctd-TAnMk9ub.js → BankConnectionsSettingsPage-o5oe0ctd-zwjkokjN.js} +1 -1
  23. package/dist/assets/{BillDetailPage-CtThP7Y9-BH87PynZ.js → BillDetailPage-CtThP7Y9-CzT4w13j.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BQjmqKng-BWOGnJdV.js → BillPayApprovalRuleDetailPage-BQjmqKng-DUCtaIAL.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-BxCNEom7-DfFQvu-E.js → BillPayApprovalRulesPage-BxCNEom7-LrIL375-.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-BElTLopb-CAmSiy-a.js → BillPayPromoPage-BElTLopb-wcKRK3D7.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-BG8feTVd-B3AfPKbT.js → BillPaySetUpPage-BG8feTVd-BxKp0jFH.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-07P7VjDH-Bis-h9qV.js → BillingSettingsPage-07P7VjDH-CTh_SdBx.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D7EPuth4-BF7T7k1A.js → BillsBulkReviewDrawerPage-D7EPuth4-Di0BtoyW.js} +1 -1
  30. package/dist/assets/{BoxItem-CzX5kr9f-DmbC9ChW.js → BoxItem-CzX5kr9f-CBeyb6bQ.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-WSJeMnHc-Ch5Q9ZfO.js → BusinessVerificationPage-WSJeMnHc-B8D63TPA.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-D76dl24E-DsXfCbtD.js → CardNumberSubText-D76dl24E-Cl4Fre0m.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-CNxA7NQY-BORja6Sy.js → CashbackDetailPage-CNxA7NQY-BdpWUgh1.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-K4gUpiwZ-oVIalvp6.js → ChargeCardDetailPage-K4gUpiwZ-CVpR_c-9.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-CyTEY_8V-D5xc0H9_.js → ChargeCardListPage-CyTEY_8V-C7UQ45e6.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-BFyvNTeY-CrvrIm4A.js → ChargeCardListTable-BFyvNTeY-BI7o5RKE.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-C9z3yHL2-Cv7CLbK8.js → ChargeCardPromoPage-C9z3yHL2-5_msiZpN.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-DO8JYrZP-Be5rOG2G.js → ChargeCardSetupPage-DO8JYrZP-CKNFtmqm.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-BOikTcKC-Ci4t0A-V.js → ChargeCardStatementsPage-BOikTcKC-DgMYDr1k.js} +1 -1
  40. package/dist/assets/{CheckDepositDrawerPage-DH3MI8HN-Byook4Qr.js → CheckDepositDrawerPage-DH3MI8HN-CAeh06wL.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-B2M1S7L1-GNwZ9Yr0.js → CollapsableReportTable-B2M1S7L1-CWsF8pJQ.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-BqY-k8Ic-8Eb1Nitm.js → CompanyOfficerDetailsSection-BqY-k8Ic-DDKovYNL.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-BR60dER0-Be42E5vE.js → CompanyPassportCard-BR60dER0-CdbMk43t.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-Bmd04hik-w4MNYTWb.js → CompanyPassportPage-Bmd04hik-Fd7LGxH9.js} +1 -1
  45. package/dist/assets/{CompleteProfile-UULN8u-c-Nz3OPAez.js → CompleteProfile-UULN8u-c-DafD8LGR.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-CozTW5Rn-DUmnW6Fi.js → ConfettiBurst-CozTW5Rn-C6lgbNW4.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-D78xf5_Y-3D_82WJ6.js → CreateOrEditVendorPage-D78xf5_Y-CZrUuutJ.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-CuqD_nKw-g7BqmzM_.js → CreditCardPaymentDrawerPage-CuqD_nKw-Bj3gMO6p.js} +1 -1
  49. package/dist/assets/{CurrencySelectField-DWAO-FaV-BQ_smuTJ.js → CurrencySelectField-DWAO-FaV-BzEL-P2E.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-Cib3Mx_T-3TdNMDtd.js → CustomerOnboardingActivationPage-Cib3Mx_T-DHCGstkQ.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-J1gLDhpW-tYNehuBS.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-XJtMtsSn-G5iSRNCP.js → CustomerOnboardingDetailPageSkeleton-XJtMtsSn-moBZCDPy.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-B_0Hrx2F-De_1mXnl.js → CustomerOnboardingNoStepsPage-B_0Hrx2F-B_4ufL2R.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-aBkvsh1l-a_pe8FXy.js → CustomerOnboardingPage-aBkvsh1l-DvQnX9Yt.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-BpF-YMGr-JescUxrV.js → CustomerOnboardingProductSuitePage-BpF-YMGr-C8Y5m3sW.js} +1 -1
  56. package/dist/assets/{Dashboard-PoZO9l3--BkoCWSoN.js → Dashboard-PoZO9l3--CY8U34o8.js} +1 -1
  57. package/dist/assets/{DashboardReportPage--m1KiT3x-BjIDve_e.js → DashboardReportPage--m1KiT3x-8YRE1Ztt.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-bBmcRJEU-px5rpiHu.js → DashboardSidebarBackgroundAnimation-bBmcRJEU-BS2D7Ajw.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-tRzKuflq-C-iuFnHA.js → DepositAccTransactionItem-tRzKuflq-BOyBlY2D.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-AwxQHNLD-D7z2ldjE.js → DepositAccTransactionListPage-AwxQHNLD-DT4vx3VD.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-CuE-QHLh-D9iyNNyJ.js → DomesticWireDetailsPage-CuE-QHLh-DhovX18v.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-ebdpHSki-CAJMStLG.js → DownloadOverlay-ebdpHSki-CdxuJ1ov.js} +1 -1
  63. package/dist/assets/{DrawerPage-DHT0UTT4-BKWp_-5X.js → DrawerPage-DHT0UTT4-DP0MEZql.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-Ds7odnkL-DQ_yMItj.js → EditPeoplePage-Ds7odnkL-BZO1lzZV.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-B6EHHEhj-CgRC_7_f.js → EditReimbursementDetailPage-B6EHHEhj-F6nlK139.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-sR_MHnxH-B_60XVgg.js → EntityDetailPage-sR_MHnxH-CZIqN1zk.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-BLwfMK6_-BUmiKyK6.js → EntitySummarySection-BLwfMK6_-pLiyg_OO.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-BqFR2yic-D3h9oKID.js → ExpenseAutomationOverviewPage-BqFR2yic-CXYJbyzt.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-C7IKGki--C5JsAebS.js → ExpenseAutomationPage-C7IKGki--CUaLySH4.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-C6UtAiIN-B0dyZC98.js → ExpressPayPage-C6UtAiIN-DOnqT-eK.js} +1 -1
  71. package/dist/assets/{FeaturePreviewPage-C_b5hdtk-CZWyI6y7.js → FeaturePreviewPage-C_b5hdtk-Bejn7JUy.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-dgWK-_PA-svnQ0XjA.js → FollowStepsSection-dgWK-_PA-B5HqzRFh.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-Bs7BRxg_-Djvi_sGb.js → GlobalReviewListPage-Bs7BRxg_-D4VtJ-E6.js} +1 -1
  74. package/dist/assets/{InformationCardStack-Def3TczI-CtsF9-Af.js → InformationCardStack-Def3TczI-Bmyvq2WV.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-CDejyDrL-DdaZf1PW.js → InsightsCardStack-CDejyDrL-fUJ7P-Z2.js} +1 -1
  76. package/dist/assets/{InsightsSection-DeLBGRXz-D7U82zkc.js → InsightsSection-DeLBGRXz-pKozJhA9.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-Vd7CM5dW-BoMhl7AH.js → IntegrationsSettingsPage-Vd7CM5dW-DsvJ78rZ.js} +1 -1
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-CPIzRzqS-CYAovypm.js → InternationalWireSwiftDetailsPage-CPIzRzqS-DNVQTBV5.js} +1 -1
  79. package/dist/assets/{InternationalWireVerificationPage-Cc3OKrpr-Ltx5z6FE.js → InternationalWireVerificationPage-Cc3OKrpr-DJuPlryB.js} +1 -1
  80. package/dist/assets/{InviteFormPage-hXbvSboB-DFFPTBo7.js → InviteFormPage-hXbvSboB-CQtbKPIo.js} +1 -1
  81. package/dist/assets/{InvitePageListView-xv6f7OYE-CR8JCyaU.js → InvitePageListView-xv6f7OYE-CD197FBj.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-Bns8mbbj-CkqSudgd.js → InvitePeoplePage-Bns8mbbj-C9KsD3lb.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-wKWbAAeR-jqYSJVVo.js → InvoiceUploadSection-wKWbAAeR-BJp8u9pj.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-BbCULpNx-DK86WyIA.js → IssueChargeCardPage-BbCULpNx-DhrcaXLX.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-CYPuDjMF-C1O2b_Nw.js → LabeledAddressValue-CYPuDjMF-Dd27uqQ5.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-C4ft1l-K-7MDSOtQe.js → LabeledAddressValueField-C4ft1l-K-DNHZaLGB.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-DHrJB0QL-9tQ_56XZ.js → LabeledControlledCheckBoxField-DHrJB0QL-B0YD48MC.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-BeelRB2Y-BOJ6jVYt.js → LabeledCreatableSingleSelectField-BeelRB2Y-D4M6iZeW.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-CgMzc8wC-CqZpxSl3.js → LabeledDocumentField-CgMzc8wC-YFPbjVX8.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-DcO2nEfi-CXdSabKs.js → LabeledDropDownFormattedTextField-DcO2nEfi-DM5myIka.js} +1 -1
  91. package/dist/assets/{LabeledText-BNDM-899-06P8MShM.js → LabeledText-BNDM-899-daU3GCMx.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-TSpiqQUi-DMkK1ZiA.js → LabeledUserSingleSelectWithSubtitlesField-TSpiqQUi-DSsHMeHJ.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-C5I9rtgW-CfSrTjkf.js → LabeledZeniRolesDropDownField-C5I9rtgW-BhY76mIM.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-BWrpuWUo-DjNgjNiu.js → LinkJETransactionPage-BWrpuWUo-X4BCOyYT.js} +1 -1
  95. package/dist/assets/{LockCardPage-Ddf8_2ti-BAZKWkzC.js → LockCardPage-Ddf8_2ti-CvnRTLQJ.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-BMSJwe7h-DMWskG_J.js → LowBalancePopup-BMSJwe7h-7plN5AfY.js} +1 -1
  97. package/dist/assets/MagicLinkACHDetailsPage-CRYqb_qO-Cd15sHqn.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-CE12GLds-CuqaunIs.js +1 -0
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DO4DIUrG-CyLC4QH5.js → MagicLinkInternationalWireDetailsPage-DO4DIUrG-Bq55ctHD.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-fsnKXDBD-BI-yrZDm.js → MagicLinkSuccessPage-fsnKXDBD-3jkAj9R_.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-DQw4cqq_-CJjXRAcR.js → MagicLinkTitleSection-DQw4cqq_-DWQssSET.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-CAV69_Sr-6m02PjwU.js → MailingDetailsSection-CAV69_Sr-CoQQ8Miy.js} +1 -1
  103. package/dist/assets/{Menu-B_DpiT_k-BMeDRM7Z.js → Menu-B_DpiT_k-v_1bzHTG.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-CM2Faxmi-lumvcw7O.js → MyBankConnectionsSettingsPage-CM2Faxmi-Dlc9feeS.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-BV2N6fOb-Dexi8pC1.js → MyPendingActivationChargeCardListPage-BV2N6fOb-BYE6JKi2.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-BjGB1P4t-3z2NkQ-z.js → MyProfileSettingsPage-BjGB1P4t-DWc0LROj.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-CrDC7aPk-hy6Ta87y.js → NavBarWithPicker-CrDC7aPk-CvlWieMX.js} +1 -1
  108. package/dist/assets/{NavigationArrow-AIYiZbYj-BSdYWMyZ.js → NavigationArrow-AIYiZbYj-CU7-UATo.js} +1 -1
  109. package/dist/assets/{NavigationDots-CVjs5Sdt-DMRFcVAa.js → NavigationDots-CVjs5Sdt-CzB8BvJ3.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-Bx1M-Dpk-BzZ5CoAZ.js → NewGlobalMerchantPage-Bx1M-Dpk-Eoea5WTt.js} +1 -1
  111. package/dist/assets/{NoDataChart-B_yk9del-aAXFhE-W.js → NoDataChart-B_yk9del-Df_dYNrK.js} +1 -1
  112. package/dist/assets/{NoDataTable-DRJW6ofl-CrLqSM4Y.js → NoDataTable-DRJW6ofl-CqR6Xtik.js} +1 -1
  113. package/dist/assets/{NotFoundPage-C6X8pmKB-BcL_ll7R.js → NotFoundPage-C6X8pmKB-BUqC5n1D.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-CsaIk9hI-Csi-Ty8T.js → NotificationSettingsPage-CsaIk9hI-BDUbU-ad.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-B8ldcs-T-CNK_cS8g.js → NotificationsListConfig-B8ldcs-T-CGHm0a9I.js} +1 -1
  116. package/dist/assets/{NotificationsPage-Cv2LlPX0-CmUTnAF-.js → NotificationsPage-Cv2LlPX0-CadIDhjX.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-cVCb-lRK-RYTt83vZ.js → OpExByVendorPage-cVCb-lRK-PniEV8rm.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-CrZuT2Jj-C5x5xRTB.js → OverlayContainerPage-CrZuT2Jj-CmnZhEXs.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-CG5AGAFM-CGhF4vnJ.js → PandLWithForecastPage-CG5AGAFM-BSuPOI06.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DFeVoMTQ-D8Ukqs-R.js → PaymentAccountSetupBillingAddressSection-DFeVoMTQ-B9vYXUOO.js} +1 -1
  121. package/dist/assets/{PeoplePage-vwcbvzlP-BQDq8Jw1.js → PeoplePage-vwcbvzlP-tCPgdCEP.js} +1 -1
  122. package/dist/assets/{ProductsCarousel-C2h9pwDb-BpWEeT8d.js → ProductsCarousel-C2h9pwDb-CILUAj-9.js} +1 -1
  123. package/dist/assets/{PromoBaseCards-nxua6geT-CBPEj2Gj.js → PromoBaseCards-nxua6geT-DhAwe8nA.js} +1 -1
  124. package/dist/assets/{QBOConnectionDialog-BRU6xjQi-BroPp__0.js → QBOConnectionDialog-BRU6xjQi-B28W5kbl.js} +1 -1
  125. package/dist/assets/{QBOSetupSection-CvWw_-bE-K3hTN7GD.js → QBOSetupSection-CvWw_-bE-BIUwJeyC.js} +1 -1
  126. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CDAPt76T-Ofm0uQSq.js → ReimbursementApprovalRuleDetailPage-CDAPt76T-KwAUYxyS.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRulesPage-CT8KUn9L-djHWb-BD.js → ReimbursementApprovalRulesPage-CT8KUn9L-CAmVTE3P.js} +1 -1
  128. package/dist/assets/{ReimbursementDetailPage-BlWqdoKk-gscL22YP.js → ReimbursementDetailPage-BlWqdoKk-Cl54Z7I1.js} +1 -1
  129. package/dist/assets/{ReimbursementPromoPage-C12vL_aT-DOELTnax.js → ReimbursementPromoPage-C12vL_aT-BS-lUPoU.js} +1 -1
  130. package/dist/assets/{ReimbursementSetUpPage-aeXyHOzw-BBXoRN7W.js → ReimbursementSetUpPage-aeXyHOzw-BGdljrmI.js} +1 -1
  131. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BZn17ZAb-CSzjLPpM.js → ReimbursementsBulkReviewDrawerPage-BZn17ZAb-LlhOrvSC.js} +1 -1
  132. package/dist/assets/{ReloadCard-BVcEjrcM-DkDyCZdX.js → ReloadCard-BVcEjrcM-r8QzZudO.js} +1 -1
  133. package/dist/assets/{ReportTableViewSelector-DlD_ISoP-DYJZDLbh.js → ReportTableViewSelector-DlD_ISoP-D9TWtYOs.js} +1 -1
  134. package/dist/assets/{ReportsPage-CqXr-QZi-GDB_EeKY.js → ReportsPage-CqXr-QZi-CBL8grQK.js} +1 -1
  135. package/dist/assets/{RevenueChart-B1KEseXB-iHNdhoBa.js → RevenueChart-B1KEseXB-nTK5jwUf.js} +1 -1
  136. package/dist/assets/{ReviewDetailsPage-CYhNq-J0-Cy2NshNy.js → ReviewDetailsPage-CYhNq-J0-lRUNkeh5.js} +1 -1
  137. package/dist/assets/{ReviewOverlay-DkL6mTyl-BFHL0-xi.js → ReviewOverlay-DkL6mTyl-BWp95RsJ.js} +1 -1
  138. package/dist/assets/{RoleWithToolTip-DRSravXg-BxOW9LcQ.js → RoleWithToolTip-DRSravXg-BbhZ166y.js} +1 -1
  139. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BsigTjZM-DhqM4jX3.js → ScheduleDetailsFixedAssetsPage-BsigTjZM-PI0Osbk8.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsPage-C-lGzBL_-2eCogOrM.js → ScheduleDetailsPage-C-lGzBL_-BaT8y3Uj.js} +1 -1
  141. package/dist/assets/{ScheduleSequenceTable-BCmdqAXy-DeHIoKHW.js → ScheduleSequenceTable-BCmdqAXy-DvImaTPG.js} +1 -1
  142. package/dist/assets/{ScreenRoutes-DoPPzVjz.js → ScreenRoutes-DhuEbIUK.js} +1 -1
  143. package/dist/assets/{SetUpAccountSection-BKOCyUH3-DH5o_JLE.js → SetUpAccountSection-BKOCyUH3-BoSivHRl.js} +1 -1
  144. package/dist/assets/{SignIn-CS-J3pfV-CgtijYY2.js → SignIn-CS-J3pfV-DVAfXSck.js} +1 -1
  145. package/dist/assets/{SignInScreen-DAvW9bur.js → SignInScreen-e9SGBZ3P.js} +1 -1
  146. package/dist/assets/{SpendManagementListViewPage-Df2_A3Ff-BxUbsbil.js → SpendManagementListViewPage-Df2_A3Ff-DV6Td_AO.js} +3 -3
  147. package/dist/assets/{SpendManagementPerTabPage-CMowSBFq-BrS8wTbG.js → SpendManagementPerTabPage-CMowSBFq-yMD-NPuG.js} +1 -1
  148. package/dist/assets/{SpendManagementSection-CMV7noyB-UYSYZMHP.js → SpendManagementSection-CMV7noyB-CowIOlkA.js} +1 -1
  149. package/dist/assets/{StatementItem-DJ39tw7i-Bj4A1Qdq.js → StatementItem-DJ39tw7i-CL4e1Q3R.js} +1 -1
  150. package/dist/assets/{StatementsPage-bQ7Ni723-DHmZyEvF.js → StatementsPage-bQ7Ni723-DoV-KdHu.js} +1 -1
  151. package/dist/assets/{StatusSwitcher-dxck0-_D-DRYxrfo9.js → StatusSwitcher-dxck0-_D-CWtyAgzh.js} +1 -1
  152. package/dist/assets/{SubTabSwitcher-iw3pF9RG-Dy8Bw-rJ.js → SubTabSwitcher-iw3pF9RG-BgOy-ZbA.js} +1 -1
  153. package/dist/assets/{SummaryCard-BhSCeFtW-CSdCPVeK.js → SummaryCard-BhSCeFtW-4wE8ASwK.js} +1 -1
  154. package/dist/assets/{TaskManagementPage-g-ZeUacD-BOKvIQzo.js → TaskManagementPage-g-ZeUacD-Qid5n_Ut.js} +1 -1
  155. package/dist/assets/{TimeRangeSwitcher-DV7Vkxir-CS7Y16la.js → TimeRangeSwitcher-DV7Vkxir-9Uaz_Lju.js} +1 -1
  156. package/dist/assets/{TimeframeSwitcher-n-e2hXsK-B_34BEd7.js → TimeframeSwitcher-n-e2hXsK-BI2vKKV8.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcherWithToggle-DLiPwXnZ-Dg1G7031.js → TimeframeSwitcherWithToggle-DLiPwXnZ-BiDdtHrp.js} +1 -1
  158. package/dist/assets/{TopExCard-CUCtGWMG-DA80G2Tw.js → TopExCard-CUCtGWMG-Dzwiri8K.js} +1 -1
  159. package/dist/assets/{TopExDetailPage-Du_E_YKe-CKxYJ9kT.js → TopExDetailPage-Du_E_YKe-DwZNd04N.js} +1 -1
  160. package/dist/assets/{TransactionDetailPage-CgT445to-C64Qr5HI.js → TransactionDetailPage-CgT445to-sLDF9SMY.js} +1 -1
  161. package/dist/assets/{TransactionList-we_zUYsL-Dijr1BC3.js → TransactionList-we_zUYsL-D1NTC3aO.js} +1 -1
  162. package/dist/assets/{TransactionListBig-nH1Qjoil-BNQ9Yrfn.js → TransactionListBig-nH1Qjoil-RaaExxWr.js} +1 -1
  163. package/dist/assets/{TransactionListPage-38GpLjpf-CtUGOhxg.js → TransactionListPage-38GpLjpf-BtcDMxPR.js} +1 -1
  164. package/dist/assets/{TransactionVendorDetailPage-D9Xiyh8f-C7FSVGLd.js → TransactionVendorDetailPage-D9Xiyh8f-BaaMZHsf.js} +1 -1
  165. package/dist/assets/{TransferDrawerPage-lmX46zkj-iJHTGU9g.js → TransferDrawerPage-lmX46zkj-BK6ZiDfe.js} +1 -1
  166. package/dist/assets/{TreasuryOverviewPage-C4AZO1qa-fO0_YydA.js → TreasuryOverviewPage-C4AZO1qa-DDdB-jaK.js} +1 -1
  167. package/dist/assets/{TreasuryPromoPage-D2UpPIMJ-Vs6LDADD.js → TreasuryPromoPage-D2UpPIMJ-CQRyeJy9.js} +1 -1
  168. package/dist/assets/{TreasuryStatementsPage-DJZjPYxF-DQoU89N8.js → TreasuryStatementsPage-DJZjPYxF-0UoUUeRZ.js} +1 -1
  169. package/dist/assets/{TreasuryTaxLetterPage-CRhVrCVC-CUht6Xx6.js → TreasuryTaxLetterPage-CRhVrCVC-BNkXbzq9.js} +1 -1
  170. package/dist/assets/{TrendChart-C6eEpBKz-BYGni-dr.js → TrendChart-C6eEpBKz-CdaSKzjU.js} +1 -1
  171. package/dist/assets/{TrendWithTransactions-CesVaJPk-CvaouDs7.js → TrendWithTransactions-CesVaJPk-C1jl0LPR.js} +1 -1
  172. package/dist/assets/{UncategorizedAccountsMappingPage-wFi1shv1-BGNVX7QF.js → UncategorizedAccountsMappingPage-wFi1shv1-B6N-1mPc.js} +1 -1
  173. package/dist/assets/{UnitIntegrationPage-Dc1U07vV-CO1z0_28.js → UnitIntegrationPage-Dc1U07vV-BfvSaEpi.js} +1 -1
  174. package/dist/assets/{UploadAdditionalDocumentOverlay-E73Idplv-CWs5X5k0.js → UploadAdditionalDocumentOverlay-E73Idplv-RRW5i6SD.js} +1 -1
  175. package/dist/assets/{Vendor2FAPopup-BvdRkNkS-Bx2K17Se.js → Vendor2FAPopup-BvdRkNkS-DNcJdEZF.js} +1 -1
  176. package/dist/assets/{VendorACHDetailsPage-DSwUAV1v-CbrK94ta.js → VendorACHDetailsPage-DSwUAV1v-TkOITWe7.js} +1 -1
  177. package/dist/assets/{VendorDetailPage-DNoyNRTj-C-IERg2G.js → VendorDetailPage-DNoyNRTj-0purniYK.js} +1 -1
  178. package/dist/assets/{VendorDomesticWireDetailsPage-Bc8qjWTX-DDZJAFPN.js → VendorDomesticWireDetailsPage-Bc8qjWTX-Nkr7HPnZ.js} +1 -1
  179. package/dist/assets/{VendorFiling1099EditablePage-B1B5iG9x-IH4qWXQP.js → VendorFiling1099EditablePage-B1B5iG9x-D78V4RdP.js} +1 -1
  180. package/dist/assets/{VendorFirstReviewPage-B4yTlldy-c7VfwBSL.js → VendorFirstReviewPage-B4yTlldy-CCl9e2Uz.js} +1 -1
  181. package/dist/assets/{VendorInternationalWireDetailsPage-CJFUOmlk-Dd28v-fb.js → VendorInternationalWireDetailsPage-CJFUOmlk-Cdtbp0NH.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CegBbxXf-CzheMiD_.js → VendorInternationalWireSwiftDetailsPage-CegBbxXf-BA5WXDAD.js} +1 -1
  183. package/dist/assets/{VendorsAccountsSection-WAKW9Ve9-CYEkLKyS.js → VendorsAccountsSection-WAKW9Ve9-C4tgVFpe.js} +1 -1
  184. package/dist/assets/{VerifyDevice-CcZqv2Lp-BtsM-4Q_.js → VerifyDevice-CcZqv2Lp-C6TS_W9y.js} +1 -1
  185. package/dist/assets/{VideoPlayer-UPe1R-1g-BKErNhSD.js → VideoPlayer-UPe1R-1g-Dcfc-D3z.js} +2 -2
  186. package/dist/assets/{VideoPopup-CUd3F8wz-B_M6bvaF.js → VideoPopup-CUd3F8wz-tWB_z85N.js} +1 -1
  187. package/dist/assets/{WarningsDrawerPage-CDKJe82X-BN7YIchI.js → WarningsDrawerPage-CDKJe82X-B55ew4uu.js} +1 -1
  188. package/dist/assets/{ZeniAccountDetailPage-Bm-Zan6l-DMTyK70d.js → ZeniAccountDetailPage-Bm-Zan6l-ClbJL7Zi.js} +1 -1
  189. package/dist/assets/{ZeniAccountListViewPage-CCB38vGw-DXjIa160.js → ZeniAccountListViewPage-CCB38vGw-BYbjN2-q.js} +1 -1
  190. package/dist/assets/{ZeniAccountNavBarPieces-Cxtt22Vg-BWEZi8Wz.js → ZeniAccountNavBarPieces-Cxtt22Vg-BaVNiYVg.js} +1 -1
  191. package/dist/assets/{ZeniAccountPromoPage-CPLBUFop-BzqG3LSb.js → ZeniAccountPromoPage-CPLBUFop-Brl5usTR.js} +1 -1
  192. package/dist/assets/{ZeniAccountSetupPage-jOZVnJMr-BLHd4fYC.js → ZeniAccountSetupPage-jOZVnJMr-T7AInOR4.js} +1 -1
  193. package/dist/assets/{ZeniCopyright-BX77ah4B-D_yAd7Va.js → ZeniCopyright-BX77ah4B-DW-Vss0l.js} +1 -1
  194. package/dist/assets/{ZeniTransferAmountSlider-DwZiry1v-GEKPKIiC.js → ZeniTransferAmountSlider-DwZiry1v-BpXhUFXT.js} +1 -1
  195. package/dist/assets/{analytics-zoE7Zcxt.js → analytics-CThNEnNw.js} +1 -1
  196. package/dist/assets/{analyticsHelper-BwEP58wt.js → analyticsHelper-BDju9Ap5.js} +1 -1
  197. package/dist/assets/{analyticsHelper-tTHd6Unu-CYLEPAPI.js → analyticsHelper-tTHd6Unu-CmaLfK2i.js} +1 -1
  198. package/dist/assets/{chartTypes-BFYRQ3Cv-DXLSHrzv.js → chartTypes-BFYRQ3Cv-B8SvSK2u.js} +1 -1
  199. package/dist/assets/{commonDimensions-C2kzP_me-DlNLSq1Y.js → commonDimensions-C2kzP_me-Bhhd657x.js} +1 -1
  200. package/dist/assets/{dash.all.min-Ba2vGpbn.js → dash.all.min-BUPngCw6.js} +1 -1
  201. package/dist/assets/{detailCommon-BAtNx7ca-DaS89rQv.js → detailCommon-BAtNx7ca-C_kCQZMg.js} +1 -1
  202. package/dist/assets/{downloadPdf-Sdq-1kVQ-DVyuLdQW.js → downloadPdf-Sdq-1kVQ-CuojZ9OD.js} +1 -1
  203. package/dist/assets/{epic-vmWV05sm.js → epic-Bko4IStj.js} +1 -1
  204. package/dist/assets/{index-CHOIEdDW.js → index-BV-YAw0P.js} +1 -1
  205. package/dist/assets/{index-B6FLCqRf.js → index-Bc9FAOZe.js} +5 -5
  206. package/dist/assets/{index-jNlf8Zjb.js → index-BxXAQ-Kq.js} +1 -1
  207. package/dist/assets/{index-BQbbCzKZ.js → index-CwsnnJzI.js} +1 -1
  208. package/dist/assets/{index-A3ojUHL_.js → index-KtBRorGi.js} +1 -1
  209. package/dist/assets/{liveblocks-DIep7fJd.js → liveblocks-B3KbWbMM.js} +1 -1
  210. package/dist/assets/{lottie-DEE24l2z.js → lottie-CaGAfnTY.js} +1 -1
  211. package/dist/assets/{mapLoadingInProgressToTreeNode-8AkwjRg3-m9352Ilv.js → mapLoadingInProgressToTreeNode-8AkwjRg3-Dki0yA_F.js} +1 -1
  212. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BZ6gG9Ko-DV4ta1Hw.js → mapSectionWithAcOnlyToTreeNode-BZ6gG9Ko-DBGh1pPu.js} +1 -1
  213. package/dist/assets/{mapSpacerToTreeNode-CfM4s6Ab-CKCx6_2V.js → mapSpacerToTreeNode-CfM4s6Ab-Df9wcpWo.js} +1 -1
  214. package/dist/assets/{mapTimeframeBalancesToTreeNode-B0gWnt3S-SH7tUKnq.js → mapTimeframeBalancesToTreeNode-B0gWnt3S-BKfpG-Y5.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-Ckh-PZp0-BSwjfYWq.js → mapTimeframeBalancesToTreeNode-Ckh-PZp0-5gDsP3Ao.js} +1 -1
  216. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-B6ynSFN--caRyYD8h.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B6ynSFN--Dopsv8ep.js} +1 -1
  217. package/dist/assets/{react-B5y9n_ef.js → react-C2wGlvWj.js} +2 -2
  218. package/dist/assets/{recharts-BHhx6CLo.js → recharts-CXSQ4XPK.js} +1 -1
  219. package/dist/assets/{sentry-o6h_D-9x.js → sentry-DxvQlcJu.js} +1 -1
  220. package/dist/assets/{toCOABalancesWithID-CHuRV6Cy-XAwo936L.js → toCOABalancesWithID-CHuRV6Cy-aUtCm-wJ.js} +1 -1
  221. package/dist/assets/{toChartData-DjeEqlPj-BJYwHkjk.js → toChartData-DjeEqlPj-2ozfjpmW.js} +1 -1
  222. package/dist/assets/{uploadAttachment-l_PHn7FL-_orBdxbm.js → uploadAttachment-l_PHn7FL-XZamg0mt.js} +1 -1
  223. package/dist/assets/{uploadReceipts-Bkf_PaOH-Vf7-L7FN.js → uploadReceipts-Bkf_PaOH-B56PESzm.js} +1 -1
  224. package/dist/assets/{url-BdYIjepo.js → url-DuX7Wo4B.js} +1 -1
  225. package/dist/assets/{url-BxQKeS2R.js → url-y5lCWhwX.js} +1 -1
  226. package/dist/assets/{utils-uDUqNRFY.js → utils-C70QTjQC.js} +1 -1
  227. package/dist/assets/{zeni-epic-state-LPACxnXP.js → zeni-epic-state-xFtF3OLs.js} +2 -2
  228. package/dist/index.html +1 -1
  229. package/package.json +3 -3
  230. package/dist/assets/CustomerOnboardingContainerPage-J1gLDhpW-CRG1w3EM.js +0 -1
  231. package/dist/assets/MagicLinkACHDetailsPage-CRYqb_qO-BhHVGLJ8.js +0 -1
  232. package/dist/assets/MagicLinkDomesticWireDetailsPage-CE12GLds-D-96bibR.js +0 -1
@@ -1,4 +1,4 @@
1
- import{Q as ie,fO as te,d as ge,av as be,fP as ye,a8 as xe,aA as we,cC as Pe,cB as $e,F as re,V as l,fQ as ve,bz as De,ab as Se,aO as Oe,o as s,fR as ne,fS as de,fT as ce,cx as ue,y as L,al as me,b as Re,B as je,aH as ee,cN as Ce,cE as Le,fU as G,cK as Te,cI as Ve,fV as Ie,aZ as Be,u as Z}from"./index-B6FLCqRf.js";import{a as $}from"./core-3dlyNYRL.js";import{n as m}from"./mui-bYXq4XMS.js";import{bi as le,bh as pe,bO as Fe,bj as ze}from"./zeni-epic-state-LPACxnXP.js";import{W as Ae}from"./LabeledAddressValueField-C4ft1l-K-7MDSOtQe.js";import{Y as Ne}from"./LabeledUserSingleSelectWithSubtitlesField-TSpiqQUi-DMkK1ZiA.js";import{C as ke,j as Me}from"./LabeledZeniRolesDropDownField-C5I9rtgW-CfSrTjkf.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"./RoleWithToolTip-DRSravXg-BxOW9LcQ.js";const b=(e,t)=>`${e}.${t}`,z={largeLabelWidth:new L(120,120,160),textFieldPaddingHorizontal:new L(Z[2],Z[3]),toolTipWidth:new L(215,237),notePadding:new L(Z[3],Z[4]),noteGap:new L(Z[0],6)},{peoplePage:a,common:{settings:se,labels:E,placeholder:F,errorMessage:We},dateFormat:Ze}=re.getLocalizedStrings(),Ue=({myProfileView:e,isZeniFinopsRolesUser:t,sectionId:i,isDisabled:u,isReimbursementDisabled:y,isZeniAccountsDisabled:p,isChargeCardDisabled:o,isBankingOnlyTenant:f,isCardsOnlyTenant:v,isLiteRoleDisabled:T,isTreasuryDisabled:h,onAddressClick:x})=>{const n=ie(),{person:r,managersList:A,classList:N,manager:Q,department:g,controllersList:k,myProfileLocalData:M,addressData:H}=e,q=e.person.user?.birthday!=null?"readonly":void 0,D=z.largeLabelWidth.value(n),V=z.largeLabelWidth.value(n),K=$.useMemo(()=>te(y,p,o,f,v,T,h),[y,p,o,f,v,T,h]),{firstController:w,restControllerEmailsStr:S}=$.useMemo(()=>{const c=ee(k),O=c.splice(0,1),R=c.reduce((I,B)=>I.concat(`${B.email},`),"");return{firstController:O,restControllerEmailsStr:R}},[k]),Y=$.useMemo(()=>ee(ue.roles),[]),d=pe(r.userRole!=null?r.userRole.userRoles:[]),U=$.useMemo(()=>N.map(c=>({label:c.fullyQualifiedAccountingClassName,value:c.classId,hoverText:c.accountingClassNumber})),[N]);return l.jsxs(Ge,{windowSize:n,children:[l.jsx(Ce,{isDisabled:u,label:{label:E.name,width:V},nameField:{name:b(i,"name"),placeHolder:{firstName:F.firstNamePlaceholder,lastName:F.lastNamePlaceholder,name:F.namePlaceholder},showFullNameError:!0},errorInfoLabel:We.nameError.replace("_product_type_",se.common.productTypeString)}),l.jsx(C,{}),l.jsx(Le,{isDisabled:u,showAdditionalInfoLabel:!1,label:{label:a.invitePage.email,width:D},text:{type:"text",name:b(i,"email"),placeholder:G(a.addPlaceholderPrefix,a.invitePage.email),style:{padding:`${s.sp0} ${z.textFieldPaddingHorizontal.valuePx(n)}`}}}),l.jsx(C,{}),l.jsx(Te,{label:{label:E.dateOfBirth,width:V},style:{width:"auto"},isDisabled:q,dateField:{name:b(i,"dateOfBirth"),placeholder:F.datePlaceholder,defaultValue:M.dateOfBirth,dateFormat:Ze.visual.defaultInput,autoComplete:"off",maxDate:ze().subtract(18,"year")}}),l.jsx(C,{}),l.jsx(Ae,{label:{label:E.mailingAddress,width:V},addressValueField:{name:b(i,"mailingAddress"),placeholder:F.addressPlaceholder,defaultValue:H?.addressToCreate,onClick:()=>{x("user_address")}},showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${s.sp2} ${s.sp2} ${s.sp2} ${s.sp0}`}}),l.jsx(C,{}),l.jsx(Ve,{label:{label:E.phone,width:V},text:{name:b(i,"phone"),placeholder:F.phonePlaceholder,defaultValue:M.phone,autoComplete:"off"},showVerified:M.isPhoneVerified,style:{width:"auto"}}),l.jsx(C,{}),t?l.jsx(ke,{label:{label:a.invitePage.role,width:D},zeniRolesDropDownField:{name:b(i,"role"),defaultValue:{selectedOptions:r.userRole!=null?r.userRole.userRoles:[],allOptions:Y},registerOptions:{required:!0},placeholderLabel:G(a.selectPlaceholderPrefix,a.invitePage.role),isMulti:!0,forZeniUser:!0},isDisabled:"readonly"}):l.jsxs(l.Fragment,{children:[l.jsx(Me,{label:{label:a.invitePage.role,width:D},rolesDropDownField:{name:b(i,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(r.userRole?.userRoles??[]),allRootRole:de(f,v)},productsByUserRole:ne(r.userRole?.userRoles??[],K)},registerOptions:{required:!0}},isDisabled:u}),l.jsx(C,{}),l.jsx(Ne,{label:{label:a.invitePage.manager,width:D},showTooltip:!0,toolTipWidth:z.toolTipWidth.valuePx(n),tooltipTitle:l.jsx(_e,{}),userSingleSelectWithSubTitlesField:{name:b(i,"manager"),value:{allUsers:d?[]:A,selectedUser:d?void 0:Q?.userId},valueToSubtitle:c=>{const O=A.findIndex(R=>R.userId===c);if(O!==-1){const R=A[O],I=N.find(J=>J.classId===R.userRole.accountingClassIDs[0]),B=[];return I!=null&&B.push(I.className),B}else return[]},placeholderLabel:d?a.notApplicable:G(a.selectPlaceholderPrefix,a.invitePage.manager),registerOptions:{required:!d},showOneOffLabel:{label:se.label.noManager,value:"no_manager",position:"top",subtitles:[]}},isDisabled:"readonly",opacity:d?.32:1}),l.jsx(C,{}),l.jsx(Ie,{label:{label:a.invitePage.department,width:D},singleSelectWithoutClearableField:{name:b(i,"department"),defaultValue:{allOptions:d?[]:U,selectedOption:d?void 0:U.find(c=>c.value===g?.classId)},placeholder:d?a.notApplicable:G(a.selectPlaceholderPrefix,a.invitePage.department),registerOptions:{required:!d},isDisabled:u,showOptionOnHover:!0},isDisabled:u,opacity:d?.32:1}),t?null:l.jsxs(Ee,{windowSize:n,children:[a.invitePage.controllerText,w[0]?l.jsxs(Qe,{href:`mailto:${w[0].email}?cc=${S}&subject=${encodeURIComponent(a.invitePage.emailSubject)}`,children:[l.jsx(He,{children:`${w[0].firstName} ${w[0].lastName}`}),l.jsx(Be,{className:"arrowIcon"})]}):null]})]})]})},_e=()=>a.invitePage.managerTooltipText,Ge=m.div`
1
+ import{Q as ie,fO as te,d as ge,av as be,fP as ye,a8 as xe,aA as we,cC as Pe,cB as $e,F as re,V as l,fQ as ve,bz as De,ab as Se,aO as Oe,o as s,fR as ne,fS as de,fT as ce,cx as ue,y as L,al as me,b as Re,B as je,aH as ee,cN as Ce,cE as Le,fU as G,cK as Te,cI as Ve,fV as Ie,aZ as Be,u as Z}from"./index-Bc9FAOZe.js";import{a as $}from"./core-3dlyNYRL.js";import{n as m}from"./mui-bYXq4XMS.js";import{bi as le,bh as pe,bO as Fe,bj as ze}from"./zeni-epic-state-xFtF3OLs.js";import{W as Ae}from"./LabeledAddressValueField-C4ft1l-K-DNHZaLGB.js";import{Y as Ne}from"./LabeledUserSingleSelectWithSubtitlesField-TSpiqQUi-DSsHMeHJ.js";import{C as ke,j as Me}from"./LabeledZeniRolesDropDownField-C5I9rtgW-BhY76mIM.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./RoleWithToolTip-DRSravXg-BbhZ166y.js";const b=(e,t)=>`${e}.${t}`,z={largeLabelWidth:new L(120,120,160),textFieldPaddingHorizontal:new L(Z[2],Z[3]),toolTipWidth:new L(215,237),notePadding:new L(Z[3],Z[4]),noteGap:new L(Z[0],6)},{peoplePage:a,common:{settings:se,labels:E,placeholder:F,errorMessage:We},dateFormat:Ze}=re.getLocalizedStrings(),Ue=({myProfileView:e,isZeniFinopsRolesUser:t,sectionId:i,isDisabled:u,isReimbursementDisabled:y,isZeniAccountsDisabled:p,isChargeCardDisabled:o,isBankingOnlyTenant:f,isCardsOnlyTenant:v,isLiteRoleDisabled:T,isTreasuryDisabled:h,onAddressClick:x})=>{const n=ie(),{person:r,managersList:A,classList:N,manager:Q,department:g,controllersList:k,myProfileLocalData:M,addressData:H}=e,q=e.person.user?.birthday!=null?"readonly":void 0,D=z.largeLabelWidth.value(n),V=z.largeLabelWidth.value(n),K=$.useMemo(()=>te(y,p,o,f,v,T,h),[y,p,o,f,v,T,h]),{firstController:w,restControllerEmailsStr:S}=$.useMemo(()=>{const c=ee(k),O=c.splice(0,1),R=c.reduce((I,B)=>I.concat(`${B.email},`),"");return{firstController:O,restControllerEmailsStr:R}},[k]),Y=$.useMemo(()=>ee(ue.roles),[]),d=pe(r.userRole!=null?r.userRole.userRoles:[]),U=$.useMemo(()=>N.map(c=>({label:c.fullyQualifiedAccountingClassName,value:c.classId,hoverText:c.accountingClassNumber})),[N]);return l.jsxs(Ge,{windowSize:n,children:[l.jsx(Ce,{isDisabled:u,label:{label:E.name,width:V},nameField:{name:b(i,"name"),placeHolder:{firstName:F.firstNamePlaceholder,lastName:F.lastNamePlaceholder,name:F.namePlaceholder},showFullNameError:!0},errorInfoLabel:We.nameError.replace("_product_type_",se.common.productTypeString)}),l.jsx(C,{}),l.jsx(Le,{isDisabled:u,showAdditionalInfoLabel:!1,label:{label:a.invitePage.email,width:D},text:{type:"text",name:b(i,"email"),placeholder:G(a.addPlaceholderPrefix,a.invitePage.email),style:{padding:`${s.sp0} ${z.textFieldPaddingHorizontal.valuePx(n)}`}}}),l.jsx(C,{}),l.jsx(Te,{label:{label:E.dateOfBirth,width:V},style:{width:"auto"},isDisabled:q,dateField:{name:b(i,"dateOfBirth"),placeholder:F.datePlaceholder,defaultValue:M.dateOfBirth,dateFormat:Ze.visual.defaultInput,autoComplete:"off",maxDate:ze().subtract(18,"year")}}),l.jsx(C,{}),l.jsx(Ae,{label:{label:E.mailingAddress,width:V},addressValueField:{name:b(i,"mailingAddress"),placeholder:F.addressPlaceholder,defaultValue:H?.addressToCreate,onClick:()=>{x("user_address")}},showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${s.sp2} ${s.sp2} ${s.sp2} ${s.sp0}`}}),l.jsx(C,{}),l.jsx(Ve,{label:{label:E.phone,width:V},text:{name:b(i,"phone"),placeholder:F.phonePlaceholder,defaultValue:M.phone,autoComplete:"off"},showVerified:M.isPhoneVerified,style:{width:"auto"}}),l.jsx(C,{}),t?l.jsx(ke,{label:{label:a.invitePage.role,width:D},zeniRolesDropDownField:{name:b(i,"role"),defaultValue:{selectedOptions:r.userRole!=null?r.userRole.userRoles:[],allOptions:Y},registerOptions:{required:!0},placeholderLabel:G(a.selectPlaceholderPrefix,a.invitePage.role),isMulti:!0,forZeniUser:!0},isDisabled:"readonly"}):l.jsxs(l.Fragment,{children:[l.jsx(Me,{label:{label:a.invitePage.role,width:D},rolesDropDownField:{name:b(i,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(r.userRole?.userRoles??[]),allRootRole:de(f,v)},productsByUserRole:ne(r.userRole?.userRoles??[],K)},registerOptions:{required:!0}},isDisabled:u}),l.jsx(C,{}),l.jsx(Ne,{label:{label:a.invitePage.manager,width:D},showTooltip:!0,toolTipWidth:z.toolTipWidth.valuePx(n),tooltipTitle:l.jsx(_e,{}),userSingleSelectWithSubTitlesField:{name:b(i,"manager"),value:{allUsers:d?[]:A,selectedUser:d?void 0:Q?.userId},valueToSubtitle:c=>{const O=A.findIndex(R=>R.userId===c);if(O!==-1){const R=A[O],I=N.find(J=>J.classId===R.userRole.accountingClassIDs[0]),B=[];return I!=null&&B.push(I.className),B}else return[]},placeholderLabel:d?a.notApplicable:G(a.selectPlaceholderPrefix,a.invitePage.manager),registerOptions:{required:!d},showOneOffLabel:{label:se.label.noManager,value:"no_manager",position:"top",subtitles:[]}},isDisabled:"readonly",opacity:d?.32:1}),l.jsx(C,{}),l.jsx(Ie,{label:{label:a.invitePage.department,width:D},singleSelectWithoutClearableField:{name:b(i,"department"),defaultValue:{allOptions:d?[]:U,selectedOption:d?void 0:U.find(c=>c.value===g?.classId)},placeholder:d?a.notApplicable:G(a.selectPlaceholderPrefix,a.invitePage.department),registerOptions:{required:!d},isDisabled:u,showOptionOnHover:!0},isDisabled:u,opacity:d?.32:1}),t?null:l.jsxs(Ee,{windowSize:n,children:[a.invitePage.controllerText,w[0]?l.jsxs(Qe,{href:`mailto:${w[0].email}?cc=${S}&subject=${encodeURIComponent(a.invitePage.emailSubject)}`,children:[l.jsx(He,{children:`${w[0].firstName} ${w[0].lastName}`}),l.jsx(Be,{className:"arrowIcon"})]}):null]})]})]})},_e=()=>a.invitePage.managerTooltipText,Ge=m.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{d as u,Q as g,V as o,aK as p,bQ as m,F as b,o as t,bC as x,eR as k,b$ as y,bO as C,b as v}from"./index-B6FLCqRf.js";import{n as l}from"./mui-bYXq4XMS.js";const w=l.div`
1
+ import{d as u,Q as g,V as o,aK as p,bQ as m,F as b,o as t,bC as x,eR as k,b$ as y,bO as C,b as v}from"./index-Bc9FAOZe.js";import{n as l}from"./mui-bYXq4XMS.js";const w=l.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  flex: 1 1 auto;
@@ -1,4 +1,4 @@
1
- import{V as e,o as r,aZ as g,b$ as c}from"./index-B6FLCqRf.js";import{b as l,n as t}from"./mui-bYXq4XMS.js";const $=l`
1
+ import{V as e,o as r,aZ as g,b$ as c}from"./index-Bc9FAOZe.js";import{b as l,n as t}from"./mui-bYXq4XMS.js";const $=l`
2
2
  border-left-style: none;
3
3
  margin-left: -${r.sp3};
4
4
  border-top-right-radius: ${r.sp2};
@@ -1,4 +1,4 @@
1
- import{V as e,aK as v,o as t}from"./index-B6FLCqRf.js";import{n as a}from"./mui-bYXq4XMS.js";const C=a.div`
1
+ import{V as e,aK as v,o as t}from"./index-Bc9FAOZe.js";import{n as a}from"./mui-bYXq4XMS.js";const C=a.div`
2
2
  text-align: center;
3
3
  cursor: pointer;
4
4
  `,y=a.div`
@@ -1,4 +1,4 @@
1
- import{Q as z,a8 as K,cB as Q,aN as Z,V as t,F as T,ab as X,aO as Y,y as i,o as l,_ as ee,B as q,M as te,gP as le,ak as ae,cO as O,i6 as ne,cG as C,cE as oe,u as a,b7 as re,cW as ie,cU as de,d7 as se,A as ce,ew as me,dm as he,bf as be,p as V}from"./index-B6FLCqRf.js";import{a as j}from"./core-3dlyNYRL.js";import{n as o,b as ge}from"./mui-bYXq4XMS.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.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={width:new i(343,580,726),height:new i(a[6],a[6]),controlHeight:new i(a[6],a[6]),paddingTopBottom:new i(a[2],a[2]),marginRight:new i(a[2],a[2]),labelMarginLeft:new i(a[3],a[4]),labelMarginRight:new i(a[3],a[4]),labelMarginTop:new i(a[2],a[2])},ue={infoLabel:new q("smallRegular","standardRegular")},pe=T.getLocalizedStrings();function we({label:e,textField:n,additionalInfo:h,checkBoxFields:m,fetchState:g,style:v,toolTip:M,isOptionalLabel:y}){const s=z(),{formState:{errors:d}}=O(),$=ie(d,n.name);return t.jsxs(fe,{windowSize:s,style:v,isDisabled:n.isDisabled!=null,isError:$,children:[t.jsx(de,{isDisabled:n.isDisabled,label:e.label,style:{marginLeft:w.labelMarginLeft.value(s),marginRight:w.labelMarginRight.value(s),marginTop:w.labelMarginTop.value(s),width:e.width??"auto"},showTooltip:M!=null,tooltipTitle:M?.title,toolTipWidth:M?.width,isOptional:y}),t.jsxs(xe,{labelWidth:e.width,children:[t.jsx(se,{...n,style:{...n.style,display:"flex",flexGrow:1,width:"-webkit-fill-available",height:w.controlHeight.value(s),cursor:"inherit"}}),g?.fetchState==="In-Progress"?t.jsx($e,{children:t.jsx(ce,{size:"Standard",start:!0})}):t.jsxs(Se,{children:[t.jsxs(Me,{windowSize:s,isRecommendationVisible:m.length>0,isError:$,children:[h.icon,h.label]}),m.length>0?m.map((u,p)=>t.jsxs(t.Fragment,{children:[t.jsx(me,{isHighlighted:!0,label:{label:u.label},checkBoxField:u.field,defaultChecked:u.field.defaultChecked,isDisabled:u.field.isDisabled!=null},he()),p<m.length-1?t.jsx(ve,{children:pe.common.texts.or}):null]})):null]})]})]})}const fe=o.div`
1
+ import{Q as z,a8 as K,cB as Q,aN as Z,V as t,F as T,ab as X,aO as Y,y as i,o as l,_ as ee,B as q,M as te,gP as le,ak as ae,cO as O,i6 as ne,cG as C,cE as oe,u as a,b7 as re,cW as ie,cU as de,d7 as se,A as ce,ew as me,dm as he,bf as be,p as V}from"./index-Bc9FAOZe.js";import{a as j}from"./core-3dlyNYRL.js";import{n as o,b as ge}from"./mui-bYXq4XMS.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const w={width:new i(343,580,726),height:new i(a[6],a[6]),controlHeight:new i(a[6],a[6]),paddingTopBottom:new i(a[2],a[2]),marginRight:new i(a[2],a[2]),labelMarginLeft:new i(a[3],a[4]),labelMarginRight:new i(a[3],a[4]),labelMarginTop:new i(a[2],a[2])},ue={infoLabel:new q("smallRegular","standardRegular")},pe=T.getLocalizedStrings();function we({label:e,textField:n,additionalInfo:h,checkBoxFields:m,fetchState:g,style:v,toolTip:M,isOptionalLabel:y}){const s=z(),{formState:{errors:d}}=O(),$=ie(d,n.name);return t.jsxs(fe,{windowSize:s,style:v,isDisabled:n.isDisabled!=null,isError:$,children:[t.jsx(de,{isDisabled:n.isDisabled,label:e.label,style:{marginLeft:w.labelMarginLeft.value(s),marginRight:w.labelMarginRight.value(s),marginTop:w.labelMarginTop.value(s),width:e.width??"auto"},showTooltip:M!=null,tooltipTitle:M?.title,toolTipWidth:M?.width,isOptional:y}),t.jsxs(xe,{labelWidth:e.width,children:[t.jsx(se,{...n,style:{...n.style,display:"flex",flexGrow:1,width:"-webkit-fill-available",height:w.controlHeight.value(s),cursor:"inherit"}}),g?.fetchState==="In-Progress"?t.jsx($e,{children:t.jsx(ce,{size:"Standard",start:!0})}):t.jsxs(Se,{children:[t.jsxs(Me,{windowSize:s,isRecommendationVisible:m.length>0,isError:$,children:[h.icon,h.label]}),m.length>0?m.map((u,p)=>t.jsxs(t.Fragment,{children:[t.jsx(me,{isHighlighted:!0,label:{label:u.label},checkBoxField:u.field,defaultChecked:u.field.defaultChecked,isDisabled:u.field.isDisabled!=null},he()),p<m.length-1?t.jsx(ve,{children:pe.common.texts.or}):null]})):null]})]})]})}const fe=o.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{Q as l,V as t,p as r,o as h,ak as m,y as s,d as o}from"./index-B6FLCqRf.js";import{n as i}from"./mui-bYXq4XMS.js";import{a}from"./core-3dlyNYRL.js";const v=e=>a.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fill:"#3E4043",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),a.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#3E4043"})),c=e=>a.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fill:"#E9ECF0",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),a.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#E9ECF0"})),d={chartMinHeight:new s(288,360)},z=i.div`
1
+ import{Q as l,V as t,p as r,o as h,ak as m,y as s,d as o}from"./index-Bc9FAOZe.js";import{n as i}from"./mui-bYXq4XMS.js";import{a}from"./core-3dlyNYRL.js";const v=e=>a.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fill:"#3E4043",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),a.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#3E4043"})),c=e=>a.createElement("svg",{viewBox:"0 0 1088 393",role:"img",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fill:"#E9ECF0",d:"M0 10h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0zm0 115h1088v1H0z"}),a.createElement("path",{d:"M68 235a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121H68V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zm128 116a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v80h-56v-80zm128-41a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160zM708 50a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v306h-56V50zm128 185a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v121h-56V235zm128-75a4 4 0 0 1 4-4h48a4 4 0 0 1 4 4v196h-56V160z",fill:"#E9ECF0"})),d={chartMinHeight:new s(288,360)},z=i.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{V as e,o as t,d as i}from"./index-B6FLCqRf.js";import{n}from"./mui-bYXq4XMS.js";import{r as o,o as s}from"./graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js";const r=n.div`
1
+ import{V as e,o as t,d as i}from"./index-Bc9FAOZe.js";import{n}from"./mui-bYXq4XMS.js";import{r as o,o as s}from"./graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js";const r=n.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  padding: ${t.sp8} ${t.sp0} ${t.sp8} ${t.sp0};
@@ -1,4 +1,4 @@
1
- import{V as o,F as i,bY as s,E as l,ak as c,p as a,al as d}from"./index-B6FLCqRf.js";import{n as t}from"./mui-bYXq4XMS.js";import{i as h}from"./ZeniCopyright-BX77ah4B-D_yAd7Va.js";import"./core-3dlyNYRL.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.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 p=t.div`
1
+ import{V as o,F as i,bY as s,E as l,ak as c,p as a,al as d}from"./index-Bc9FAOZe.js";import{n as t}from"./mui-bYXq4XMS.js";import{i as h}from"./ZeniCopyright-BX77ah4B-DW-Vss0l.js";import"./core-3dlyNYRL.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const p=t.div`
2
2
  width: 100%;
3
3
  height: 100vh;
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{V as t,g1 as oe,o as i,bL as ne,F as v,aQ as se,d as Q,Q as W,a8 as re,cB as le,bz as ae,ab as ce,a9 as w,aO as de,y as B,fy as pe,g2 as me,eI as ue,g3 as he,g4 as ge,aZ as fe,u as S,b7 as Y,ag as Z,ak as J,al as xe}from"./index-B6FLCqRf.js";import{a as E}from"./core-3dlyNYRL.js";import{n as o}from"./mui-bYXq4XMS.js";import{fD as $e,fE as be,fF as ye,fG as je}from"./zeni-epic-state-LPACxnXP.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{common:we}=v.getLocalizedStrings(),U={notePadding:new B(S[3],S[4]),noteGap:new B(S[0],6)},R=(e,n)=>`${e}.${n}`,Se=o.div`
1
+ import{V as t,g1 as oe,o as i,bL as ne,F as v,aQ as se,d as Q,Q as W,a8 as re,cB as le,bz as ae,ab as ce,a9 as w,aO as de,y as B,fy as pe,g2 as me,eI as ue,g3 as he,g4 as ge,aZ as fe,u as S,b7 as Y,ag as Z,ak as J,al as xe}from"./index-Bc9FAOZe.js";import{a as E}from"./core-3dlyNYRL.js";import{n as o}from"./mui-bYXq4XMS.js";import{fD as $e,fE as be,fF as ye,fG as je}from"./zeni-epic-state-xFtF3OLs.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const{common:we}=v.getLocalizedStrings(),U={notePadding:new B(S[3],S[4]),noteGap:new B(S[0],6)},R=(e,n)=>`${e}.${n}`,Se=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${i.sp3};
@@ -1 +1 @@
1
- import{b as t,u as e}from"./index-B6FLCqRf.js";const r=e[5],o=59,i=e[5],l=t.standardRegular.lineHeightValue,n=1,u=1e3;export{l as A,i as E,n as I,u as L,o as a,r as t};
1
+ import{b as t,u as e}from"./index-Bc9FAOZe.js";const r=e[5],o=59,i=e[5],l=t.standardRegular.lineHeightValue,n=1,u=1e3;export{l as A,i as E,n as I,u as L,o as a,r as t};
@@ -1,4 +1,4 @@
1
- import{d as Q,Q as v,a8 as qt,F as B,cB as Kt,V as t,bz as Xt,ab as Qt,aO as ei,o as i,a9 as ye,gW as ti,y as R,h_ as ii,b as Ne,A as oi,ax as tt,cj as it,b1 as ot,dp as st,cq as at,jV as rt,u as w,n as si,jW as ai,dm as he,aY as ri,B as ni,M as nt,p as S,ag as li,bM as z,cO as ue,g2 as pe,jX as fe,av as lt,a7 as dt,dw as E,fn as ct,gc as di,ak as ee,ic as ci,al as H,fB as hi,aS as $e,b8 as me,jY as ui,bJ as ht,jZ as Re,bt as pi}from"./index-B6FLCqRf.js";import{a as g}from"./core-3dlyNYRL.js";import{n as r,b as A}from"./mui-bYXq4XMS.js";import{g9 as fi,ga as mi,bO as X,bj as $,dE as ut}from"./zeni-epic-state-LPACxnXP.js";import{k as gi}from"./SubTabSwitcher-iw3pF9RG-Dy8Bw-rJ.js";import{d as pt}from"./useLongPress-GCK2COYQ-8uipnze8.js";import{A as ft,t as mt,a as gt,E as xt,L as bt,I as wt}from"./NotificationsListConfig-B8ldcs-T-CNK_cS8g.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";function xi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:h}){const u=v(),p=Q(),m=g.useCallback(x=>{d(x.id)},[d]),f=g.useCallback(x=>{h(x.id)},[h]);return e.length===0?null:t.jsxs(bi,{windowSize:u,children:[t.jsx(ii,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${p.colors.grey3}`},onTabChange:m}),t.jsx(gi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:f})]})}const bi=r.div`
1
+ import{d as Q,Q as v,a8 as qt,F as B,cB as Kt,V as t,bz as Xt,ab as Qt,aO as ei,o as i,a9 as ye,gW as ti,y as R,h_ as ii,b as Ne,A as oi,ax as tt,cj as it,b1 as ot,dp as st,cq as at,jV as rt,u as w,n as si,jW as ai,dm as he,aY as ri,B as ni,M as nt,p as S,ag as li,bM as z,cO as ue,g2 as pe,jX as fe,av as lt,a7 as dt,dw as E,fn as ct,gc as di,ak as ee,ic as ci,al as H,fB as hi,aS as $e,b8 as me,jY as ui,bJ as ht,jZ as Re,bt as pi}from"./index-Bc9FAOZe.js";import{a as g}from"./core-3dlyNYRL.js";import{n as r,b as A}from"./mui-bYXq4XMS.js";import{g9 as fi,ga as mi,bO as X,bj as $,dE as ut}from"./zeni-epic-state-xFtF3OLs.js";import{k as gi}from"./SubTabSwitcher-iw3pF9RG-BgOy-ZbA.js";import{d as pt}from"./useLongPress-GCK2COYQ-8uipnze8.js";import{A as ft,t as mt,a as gt,E as xt,L as bt,I as wt}from"./NotificationsListConfig-B8ldcs-T-CGHm0a9I.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";function xi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:h}){const u=v(),p=Q(),m=g.useCallback(x=>{d(x.id)},[d]),f=g.useCallback(x=>{h(x.id)},[h]);return e.length===0?null:t.jsxs(bi,{windowSize:u,children:[t.jsx(ii,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${p.colors.grey3}`},onTabChange:m}),t.jsx(gi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:f})]})}const bi=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{Q as H,hZ as be,F as B,d as q,ca as xe,ax as _e,V as t,aK as Se,bL as ke,hY as we,bA as ve,bz as Be,h_ as Oe,h$ as $e,o as u,aQ as Pe,A as je,y as V,b1 as le,aA as ie,aS as Te,u as O,bD as De,cc as Ne,cd as Ae,ce as Ie,p as a,ak as ce,b as U,aV as Ee}from"./index-B6FLCqRf.js";import{a as b,w as Me}from"./core-3dlyNYRL.js";import{n as m}from"./mui-bYXq4XMS.js";import{fX as Le}from"./zeni-epic-state-LPACxnXP.js";import{p as Ve,d as Fe,y as G,b as de,u as ee}from"./chartTypes-BFYRQ3Cv-DXLSHrzv.js";import{V as ze}from"./toChartData-DjeEqlPj-BJYwHkjk.js";import{m as F}from"./analyticsHelper-tTHd6Unu-CYLEPAPI.js";import{p as Re}from"./TimeRangeSwitcher-DV7Vkxir-CS7Y16la.js";import{M as We}from"./TimeframeSwitcherWithToggle-DLiPwXnZ-Dg1G7031.js";import{C as Ke}from"./NoDataChart-B_yk9del-aAXFhE-W.js";import{d as Ye}from"./NoDataTable-DRJW6ofl-CrLqSM4Y.js";import{H as Ge,k as oe}from"./detailCommon-BAtNx7ca-DaS89rQv.js";import{n as z}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{I as He,R as Q}from"./CollapsableReportTable-B2M1S7L1-GNwZ9Yr0.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-B0gWnt3S-SH7tUKnq.js";import{d as re}from"./mapLoadingInProgressToTreeNode-8AkwjRg3-m9352Ilv.js";import{l as qe}from"./mapSpacerToTreeNode-CfM4s6Ab-CKCx6_2V.js";import{d as Qe,C as Xe,X as Ze,Y as Je,T as Ue,b as eo}from"./recharts-BHhx6CLo.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./lexical-DPEnH3HH.js";import"./TimeframeSwitcher-n-e2hXsK-B_34BEd7.js";import"./graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js";import"./AccountRow-DqB8rPL2-DMH55Auf.js";const oo=m.div`
1
+ import{Q as H,hZ as be,F as B,d as q,ca as xe,ax as _e,V as t,aK as Se,bL as ke,hY as we,bA as ve,bz as Be,h_ as Oe,h$ as $e,o as u,aQ as Pe,A as je,y as V,b1 as le,aA as ie,aS as Te,u as O,bD as De,cc as Ne,cd as Ae,ce as Ie,p as a,ak as ce,b as U,aV as Ee}from"./index-Bc9FAOZe.js";import{a as b,w as Me}from"./core-3dlyNYRL.js";import{n as m}from"./mui-bYXq4XMS.js";import{fX as Le}from"./zeni-epic-state-xFtF3OLs.js";import{p as Ve,d as Fe,y as G,b as de,u as ee}from"./chartTypes-BFYRQ3Cv-B8SvSK2u.js";import{V as ze}from"./toChartData-DjeEqlPj-2ozfjpmW.js";import{m as F}from"./analyticsHelper-tTHd6Unu-CmaLfK2i.js";import{p as Re}from"./TimeRangeSwitcher-DV7Vkxir-9Uaz_Lju.js";import{M as We}from"./TimeframeSwitcherWithToggle-DLiPwXnZ-BiDdtHrp.js";import{C as Ke}from"./NoDataChart-B_yk9del-Df_dYNrK.js";import{d as Ye}from"./NoDataTable-DRJW6ofl-CqR6Xtik.js";import{H as Ge,k as oe}from"./detailCommon-BAtNx7ca-C_kCQZMg.js";import{n as z}from"./getReferrerType-DjPOy76W-Cm31g4vJ.js";import{I as He,R as Q}from"./CollapsableReportTable-B2M1S7L1-CWsF8pJQ.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-B0gWnt3S-BKfpG-Y5.js";import{d as re}from"./mapLoadingInProgressToTreeNode-8AkwjRg3-Dki0yA_F.js";import{l as qe}from"./mapSpacerToTreeNode-CfM4s6Ab-Df9wcpWo.js";import{d as Qe,C as Xe,X as Ze,Y as Je,T as Ue,b as eo}from"./recharts-CXSQ4XPK.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./lexical-DPEnH3HH.js";import"./TimeframeSwitcher-n-e2hXsK-BI2vKKV8.js";import"./graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js";import"./AccountRow-DqB8rPL2-DSdMIZil.js";const oo=m.div`
2
2
  display: flex;
3
3
  `,ro=m.div`
4
4
  flex: display;
@@ -1,4 +1,4 @@
1
- import{d as r,V as e}from"./index-B6FLCqRf.js";import{n as p}from"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.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 n=p.div`
1
+ import{d as r,V as e}from"./index-Bc9FAOZe.js";import{n as p}from"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const n=p.div`
2
2
  display: ${({isOpen:o})=>o?"block":"none"};
3
3
  position: fixed;
4
4
  top: 0;
@@ -1,4 +1,4 @@
1
- import{V as o,x as A,d as T,Q as v,aK as M,bz as ne,F as c,n as re,A as ie,y as W,b as ae,o as s,aA as ce,aS as le,E as de,cz as ge,bw as me,u as P,bD as pe,cA as he,aQ as ue,aR as fe,b8 as xe}from"./index-B6FLCqRf.js";import{a as F}from"./core-3dlyNYRL.js";import{n as r}from"./mui-bYXq4XMS.js";import{R as we}from"./NavBarWithPicker-CrDC7aPk-hy6Ta87y.js";import{m as Se}from"./analyticsHelper-tTHd6Unu-CYLEPAPI.js";import{M as je}from"./TimeframeSwitcherWithToggle-DLiPwXnZ-Dg1G7031.js";import{I as $e,a as be}from"./CollapsableReportTable-B2M1S7L1-GNwZ9Yr0.js";import{M as E}from"./usp-line-BBd1wKwW-ClwDS-nj.js";import{e_ as Pe,e$ as ye}from"./zeni-epic-state-LPACxnXP.js";import{D as ke,T as Ce,C as ze}from"./mapSectionWithAcOnlyToTreeNode-BZ6gG9Ko-DV4ta1Hw.js";import{s as Q}from"./mapTimeframeBalancesToTreeNode-Ckh-PZp0-BSwjfYWq.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"./AccountRow-DqB8rPL2-DMH55Auf.js";const H="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",K="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ve=r.div`
1
+ import{V as o,x as A,d as T,Q as v,aK as M,bz as ne,F as c,n as re,A as ie,y as W,b as ae,o as s,aA as ce,aS as le,E as de,cz as ge,bw as me,u as P,bD as pe,cA as he,aQ as ue,aR as fe,b8 as xe}from"./index-Bc9FAOZe.js";import{a as F}from"./core-3dlyNYRL.js";import{n as r}from"./mui-bYXq4XMS.js";import{R as we}from"./NavBarWithPicker-CrDC7aPk-CvlWieMX.js";import{m as Se}from"./analyticsHelper-tTHd6Unu-CmaLfK2i.js";import{M as je}from"./TimeframeSwitcherWithToggle-DLiPwXnZ-BiDdtHrp.js";import{I as $e,a as be}from"./CollapsableReportTable-B2M1S7L1-CWsF8pJQ.js";import{M as E}from"./usp-line-BBd1wKwW-ClwDS-nj.js";import{e_ as Pe,e$ as ye}from"./zeni-epic-state-xFtF3OLs.js";import{D as ke,T as Ce,C as ze}from"./mapSectionWithAcOnlyToTreeNode-BZ6gG9Ko-DBGh1pPu.js";import{s as Q}from"./mapTimeframeBalancesToTreeNode-Ckh-PZp0-5gDsP3Ao.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./TimeframeSwitcher-n-e2hXsK-BI2vKKV8.js";import"./AccountRow-DqB8rPL2-DSdMIZil.js";const H="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",K="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ve=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{P as pe,F as le,aN as De,b as te,o as u,p as H,Q as ue,V as i,bP as Me,d as ke,cO as Ve,aS as ae,y as oe,bu as Fe,bS as qe,ak as Re,aO as He,ad as me,u as Ke,gN as Je,al as Ge,B as Ye}from"./index-B6FLCqRf.js";import{w as l,P as p,a as O}from"./core-3dlyNYRL.js";import{n as y}from"./mui-bYXq4XMS.js";import{F as Ze}from"./SetUpAccountSection-BKOCyUH3-DH5o_JLE.js";function fe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(r),!0).forEach(function(n){Ae(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function re(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(e){return typeof e}:re=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(t)}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $e(t,e){return Xe(t)||Qe(t,e)||et(t,e)||tt()}function Xe(t){if(Array.isArray(t))return t}function Qe(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var n=[],a=!0,s=!1,c,m;try{for(r=r.call(t);!(a=(c=r.next()).done)&&(n.push(c.value),!(e&&n.length===e));a=!0);}catch(o){s=!0,m=o}finally{try{!a&&r.return!=null&&r.return()}finally{if(s)throw m}}return n}}function et(t,e){if(t){if(typeof t=="string")return he(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(t,e)}}function he(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{P as pe,F as le,aN as De,b as te,o as u,p as H,Q as ue,V as i,bP as Me,d as ke,cO as Ve,aS as ae,y as oe,bu as Fe,bS as qe,ak as Re,aO as He,ad as me,u as Ke,gN as Je,al as Ge,B as Ye}from"./index-Bc9FAOZe.js";import{w as l,P as p,a as O}from"./core-3dlyNYRL.js";import{n as y}from"./mui-bYXq4XMS.js";import{F as Ze}from"./SetUpAccountSection-BKOCyUH3-BoSivHRl.js";function fe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(r),!0).forEach(function(n){Ae(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function re(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(e){return typeof e}:re=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(t)}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $e(t,e){return Xe(t)||Qe(t,e)||et(t,e)||tt()}function Xe(t){if(Array.isArray(t))return t}function Qe(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var n=[],a=!0,s=!1,c,m;try{for(r=r.call(t);!(a=(c=r.next()).done)&&(n.push(c.value),!(e&&n.length===e));a=!0);}catch(o){s=!0,m=o}finally{try{!a&&r.return!=null&&r.return()}finally{if(s)throw m}}return n}}function et(t,e){if(t){if(typeof t=="string")return he(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(t,e)}}function he(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k=function(e,r,n){var a=!!n,s=l.useRef(n);l.useEffect(function(){s.current=n},[n]),l.useEffect(function(){if(!a||!e)return function(){};var c=function(){s.current&&s.current.apply(s,arguments)};return e.on(r,c),function(){e.off(r,c)}},[a,r,e,s])},se=function(e){var r=l.useRef(e);return l.useEffect(function(){r.current=e},[e]),r.current},K=function(e){return e!==null&&re(e)==="object"},rt=function(e){return K(e)&&typeof e.then=="function"},nt=function(e){return K(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},ve="[object Object]",at=function t(e,r){if(!K(e)||!K(r))return e===r;var n=Array.isArray(e),a=Array.isArray(r);if(n!==a)return!1;var s=Object.prototype.toString.call(e)===ve,c=Object.prototype.toString.call(r)===ve;if(s!==c)return!1;if(!s&&!n)return e===r;var m=Object.keys(e),o=Object.keys(r);if(m.length!==o.length)return!1;for(var h={},f=0;f<m.length;f+=1)h[m[f]]=!0;for(var x=0;x<o.length;x+=1)h[o[x]]=!0;var g=Object.keys(h);if(g.length!==m.length)return!1;var w=e,P=r,S=function(A){return t(w[A],P[A])};return g.every(S)},Ie=function(e,r,n){return K(e)?Object.keys(e).reduce(function(a,s){var c=!K(r)||!at(e[s],r[s]);return n.includes(s)?(c&&console.warn("Unsupported prop change: options.".concat(s," is not a mutable property.")),a):c?ge(ge({},a||{}),{},Ae({},s,e[s])):a},null):null},Oe="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",ye=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oe;if(e===null||nt(e))return e;throw new Error(r)},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oe;if(rt(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(a){return ye(a,r)})};var n=ye(e,r);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},st=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"2.7.3"}),e.registerAppInfo({name:"react-stripe-js",version:"2.7.3",url:"https://stripe.com/docs/stripe-js/react"}))},ne=l.createContext(null);ne.displayName="ElementsContext";var Ue=function(e,r){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an <Elements> provider."));return e},ze=function(e){var r=e.stripe,n=e.options,a=e.children,s=l.useMemo(function(){return ot(r)},[r]),c=l.useState(function(){return{stripe:s.tag==="sync"?s.stripe:null,elements:s.tag==="sync"?s.stripe.elements(n):null}}),m=$e(c,2),o=m[0],h=m[1];l.useEffect(function(){var g=!0,w=function(S){h(function(j){return j.stripe?j:{stripe:S,elements:S.elements(n)}})};return s.tag==="async"&&!o.stripe?s.stripePromise.then(function(P){P&&g&&w(P)}):s.tag==="sync"&&!o.stripe&&w(s.stripe),function(){g=!1}},[s,o,n]);var f=se(r);l.useEffect(function(){f!==null&&f!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[f,r]);var x=se(n);return l.useEffect(function(){if(o.elements){var g=Ie(n,x,["clientSecret","fonts"]);g&&o.elements.update(g)}},[n,x,o.elements]),l.useEffect(function(){st(o.stripe)},[o.stripe]),l.createElement(ne.Provider,{value:o},a)};ze.propTypes={stripe:p.any,options:p.object};var it=function(e){var r=l.useContext(ne);return Ue(r,e)},ct=function(){var e=it("calls useElements()"),r=e.elements;return r};p.func.isRequired;var _e=l.createContext(null);_e.displayName="CustomCheckoutSdkContext";var lt=function(e,r){if(!e)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(r," in an <CustomCheckoutProvider> provider."));return e},ut=l.createContext(null);ut.displayName="CustomCheckoutContext";p.any,p.shape({clientSecret:p.string.isRequired,elementsOptions:p.object}).isRequired;var ie=function(e){var r=l.useContext(_e),n=l.useContext(ne);if(r&&n)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CustomCheckoutProvider> and <Elements> providers."));return r?lt(r,e):Ue(n,e)},dt=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},C=function(e,r){var n="".concat(dt(e),"Element"),a=function(o){var h=o.id,f=o.className,x=o.options,g=x===void 0?{}:x,w=o.onBlur,P=o.onFocus,S=o.onReady,j=o.onChange,A=o.onEscape,M=o.onClick,V=o.onLoadError,F=o.onLoaderStart,N=o.onNetworksChange,$=o.onConfirm,J=o.onCancel,B=o.onShippingAddressChange,D=o.onShippingRateChange,U=ie("mounts <".concat(n,">")),_="elements"in U?U.elements:null,E="customCheckoutSdk"in U?U.customCheckoutSdk:null,z=l.useState(null),T=$e(z,2),v=T[0],W=T[1],L=l.useRef(null),q=l.useRef(null);k(v,"blur",w),k(v,"focus",P),k(v,"escape",A),k(v,"click",M),k(v,"loaderror",V),k(v,"loaderstart",F),k(v,"networkschange",N),k(v,"confirm",$),k(v,"cancel",J),k(v,"shippingaddresschange",B),k(v,"shippingratechange",D),k(v,"change",j);var G;S&&(e==="expressCheckout"?G=S:G=function(){S(v)}),k(v,"ready",G),l.useLayoutEffect(function(){if(L.current===null&&q.current!==null&&(_||E)){var I=null;E?I=E.createElement(e,g):_&&(I=_.create(e,g)),L.current=I,W(I),I&&I.mount(q.current)}},[_,E,g]);var de=se(g);return l.useEffect(function(){if(L.current){var I=Ie(g,de,["paymentRequest"]);I&&L.current.update(I)}},[g,de]),l.useLayoutEffect(function(){return function(){if(L.current&&typeof L.current.destroy=="function")try{L.current.destroy(),L.current=null}catch{}}},[]),l.createElement("div",{id:h,className:f,ref:q})},s=function(o){ie("mounts <".concat(n,">"));var h=o.id,f=o.className;return l.createElement("div",{id:h,className:f})},c=r?s:a;return c.propTypes={id:p.string,className:p.string,onChange:p.func,onBlur:p.func,onFocus:p.func,onReady:p.func,onEscape:p.func,onClick:p.func,onLoadError:p.func,onLoaderStart:p.func,onNetworksChange:p.func,onConfirm:p.func,onCancel:p.func,onShippingAddressChange:p.func,onShippingRateChange:p.func,options:p.object},c.displayName=n,c.__elementType=e,c},b=typeof window>"u",pt=l.createContext(null);pt.displayName="EmbeddedCheckoutProviderContext";var mt=function(){var e=ie("calls useStripe()"),r=e.stripe;return r};C("auBankAccount",b);C("card",b);var Se=C("cardNumber",b),Ce=C("cardExpiry",b),be=C("cardCvc",b);C("fpxBank",b);C("iban",b);C("idealBank",b);C("p24Bank",b);C("epsBank",b);C("payment",b);C("expressCheckout",b);C("paymentRequestButton",b);C("linkAuthentication",b);C("address",b);C("shippingAddress",b);C("paymentMethodMessaging",b);C("affirmMessage",b);C("afterpayClearpayMessage",b);var Te="https://js.stripe.com/v3",ft=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;var gt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(Te,'"]')),r=0;r<e.length;r++){var n=e[r];if(ft.test(n.src))return n}return null},xe=function(e){var r="",n=document.createElement("script");n.src="".concat(Te).concat(r);var a=document.head||document.body;if(!a)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return a.appendChild(n),n},ht=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"4.3.0",startTime:r})},Y=null,Q=null,ee=null,vt=function(e){return function(){e(new Error("Failed to load Stripe.js"))}},yt=function(e,r){return function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))}},St=function(e){return Y!==null?Y:(Y=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe){r(window.Stripe);return}try{var a=gt();if(!(a&&e)){if(!a)a=xe(e);else if(a&&ee!==null&&Q!==null){var s;a.removeEventListener("load",ee),a.removeEventListener("error",Q),(s=a.parentNode)===null||s===void 0||s.removeChild(a),a=xe(e)}}ee=yt(r,n),Q=vt(n),a.addEventListener("load",ee),a.addEventListener("error",Q)}catch(c){n(c);return}}),Y.catch(function(r){return Y=null,Promise.reject(r)}))},Ct=function(e,r,n){if(e===null)return null;var a=e.apply(void 0,r);return ht(a,n),a},Z,We=!1,Ne=function(){return Z||(Z=St(null).catch(function(e){return Z=null,Promise.reject(e)}),Z)};Promise.resolve().then(function(){return Ne()}).catch(function(t){We||console.warn(t)});var bt=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];We=!0;var a=Date.now();return Ne().then(function(s){return Ct(s,r,a)})};const xt={containerHeight:new oe(656,720)},Pt=y.div`
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{d as $e,Q as I,F as y,V as t,aK as a,bz as le,bL as De,o as s,ci as Oe,cj as _e,A as B,aQ as Y,ck as we,n as Le,b as be,cl as Ae,aN as Ve,cm as Me,ao as We,cn as He,co as Ue,b1 as Be,aA as H,cp as Ke,y as $,cq as Fe,cr as je,u as b,cs as ee,cb as N,a8 as Ee,ab as Ze,ct as Qe,cu as qe,aH as Ge,ag as D,cv as Je,ak as O,al as te,p as A,cw as Xe,cf as Se,b8 as ie,cx as ke,bJ as Ye,cy as et}from"./index-B6FLCqRf.js";import{w as ce,a as v}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{fd as Ie,bh as J}from"./zeni-epic-state-LPACxnXP.js";import{P as Ce}from"./Menu-B_DpiT_k-BMeDRM7Z.js";import{T as Re}from"./RoleWithToolTip-DRSravXg-BxOW9LcQ.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 P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],U=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],tt=58;function it({userNameSticky:e,sortConfig:r,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Ge(d==="off"?S:U));v.useEffect(()=>{const n=[...p];for(const o of n)o.key===r.sortKey?o.sortOrder=r.sortOrder:o.sortOrder="ascending";x(n)},[r.sortKey,r.sortOrder]);const h=(n,o)=>{let u=o;r.sortKey===n&&(u=o==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(rt,{height:tt,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(lt,{userNameSticky:!!e&&n.key==="name",sortDataValue:r.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(dt,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(ot,{sortDataValue:r.sortKey,headerdata:n,children:t.jsx(Je,{width:12,height:12})})]}),t.jsx(at,{isVisible:r.sortKey===n.key&&n.key!=="name",children:t.jsx(nt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const st=ce.memo(it),ot=i.div`
1
+ import{d as $e,Q as I,F as y,V as t,aK as a,bz as le,bL as De,o as s,ci as Oe,cj as _e,A as B,aQ as Y,ck as we,n as Le,b as be,cl as Ae,aN as Ve,cm as Me,ao as We,cn as He,co as Ue,b1 as Be,aA as H,cp as Ke,y as $,cq as Fe,cr as je,u as b,cs as ee,cb as N,a8 as Ee,ab as Ze,ct as Qe,cu as qe,aH as Ge,ag as D,cv as Je,ak as O,al as te,p as A,cw as Xe,cf as Se,b8 as ie,cx as ke,bJ as Ye,cy as et}from"./index-Bc9FAOZe.js";import{w as ce,a as v}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{fd as Ie,bh as J}from"./zeni-epic-state-xFtF3OLs.js";import{P as Ce}from"./Menu-B_DpiT_k-v_1bzHTG.js";import{T as Re}from"./RoleWithToolTip-DRSravXg-BbhZ166y.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],U=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],tt=58;function it({userNameSticky:e,sortConfig:r,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Ge(d==="off"?S:U));v.useEffect(()=>{const n=[...p];for(const o of n)o.key===r.sortKey?o.sortOrder=r.sortOrder:o.sortOrder="ascending";x(n)},[r.sortKey,r.sortOrder]);const h=(n,o)=>{let u=o;r.sortKey===n&&(u=o==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(rt,{height:tt,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(lt,{userNameSticky:!!e&&n.key==="name",sortDataValue:r.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(dt,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(ot,{sortDataValue:r.sortKey,headerdata:n,children:t.jsx(Je,{width:12,height:12})})]}),t.jsx(at,{isVisible:r.sortKey===n.key&&n.key!=="name",children:t.jsx(nt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const st=ce.memo(it),ot=i.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
@@ -1,4 +1,4 @@
1
- import{F as O,V as t,a7 as B,o as l,b$ as N,aZ as U,u as G,d9 as H,ap as J,ak as _,da as V,p as y}from"./index-B6FLCqRf.js";import{a as $}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";const u=O.getLocalizedStrings(),w={large:{labelComp:H,title:J,subtitle:_,seeMoreLink:_}},Y={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=Y.large,Z=i.div`
1
+ import{F as O,V as t,a7 as B,o as l,b$ as N,aZ as U,u as G,d9 as H,ap as J,ak as _,da as V,p as y}from"./index-Bc9FAOZe.js";import{a as $}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";const u=O.getLocalizedStrings(),w={large:{labelComp:H,title:J,subtitle:_,seeMoreLink:_}},Y={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=Y.large,Z=i.div`
2
2
  width: ${e=>e.scale*o.width}px;
3
3
  height: ${e=>e.scale*o.height}px;
4
4
  overflow: hidden;
@@ -1,4 +1,4 @@
1
- import{Q as c,V as r,de as b,df as v,dg as L,bv as z,y as a,o as e,p as d,B as m,u as l}from"./index-B6FLCqRf.js";import{b as i,n as p,k as f}from"./mui-bYXq4XMS.js";const t={plasticCardMarginLeft:new a(l[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(l[2],13),businessTextBottom:new a(l[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(l[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(l[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(l[2],13),visaLogoBottom:new a(l[2],13)},u={businessText:new m("extraSmallRegular","largeRegular"),promoBusinessText:new m("tinyLight","tinyLight")},R=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:$,style:x})=>{const n=c();return r.jsxs(k,{cardPromoType:$,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:x,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(j,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(z,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:$,style:x})=>{const n=c();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:x,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(v,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},C=f`
1
+ import{Q as c,V as r,de as b,df as v,dg as L,bv as z,y as a,o as e,p as d,B as m,u as l}from"./index-Bc9FAOZe.js";import{b as i,n as p,k as f}from"./mui-bYXq4XMS.js";const t={plasticCardMarginLeft:new a(l[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(l[2],13),businessTextBottom:new a(l[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(l[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(l[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(l[2],13),visaLogoBottom:new a(l[2],13)},u={businessText:new m("extraSmallRegular","largeRegular"),promoBusinessText:new m("tinyLight","tinyLight")},R=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:$,style:x})=>{const n=c();return r.jsxs(k,{cardPromoType:$,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:x,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(j,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(z,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:$,style:x})=>{const n=c();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:x,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(v,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},C=f`
2
2
  0%{
3
3
  transform: rotate(12.4deg);
4
4
  translate: ${e.sp0} ${e.sp0};
@@ -1,4 +1,4 @@
1
- import{Q as w,F as t,V as n,bP as P,n as l,y as s,o as i,ap as j,ak as y,ae as b,bt as f,eM as v,u as a}from"./index-B6FLCqRf.js";import{n as o}from"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.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 r={containerPaddingTop:new s(a[5],a[7]),containerPaddingBottom:new s(a[5],a[5]),containerPaddingLeftRight:new s(a[6],a[11])},S=o.div`
1
+ import{Q as w,F as t,V as n,bP as P,n as l,y as s,o as i,ap as j,ak as y,ae as b,bt as f,eM as v,u as a}from"./index-Bc9FAOZe.js";import{n as o}from"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const r={containerPaddingTop:new s(a[5],a[7]),containerPaddingBottom:new s(a[5],a[5]),containerPaddingLeftRight:new s(a[6],a[11])},S=o.div`
2
2
  border-radius: inherit;
3
3
  max-width: 520px;
4
4
  text-align: center;
@@ -1,4 +1,4 @@
1
- import{Q as O,F as u,V as i,n as k,o,y as a,p as d,fK as B,B as Q,ae as T,bt as W,eM as E,fB as G,aS as w,ag as $,u as t}from"./index-B6FLCqRf.js";import{n as s}from"./mui-bYXq4XMS.js";import A from"./QBOConnectionDialog-BRU6xjQi-BroPp__0.js";const r={containerPadding:new a(t[3],t[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(t[3],t[0]),arrowIconWidthHeight:new a(t[3],t[4])},F={title:new Q("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:y,companyName:f,updateQBOPopupState:h,handleOnConnectClick:j})=>{const n=O(),{qbo_connection:S}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:b,sucessText:z,button:v,errorText:P,requiredText:C}=S;return i.jsxs(H,{windowSize:n,children:[i.jsxs(I,{windowSize:n,children:[n==="small"?i.jsx(R,{children:l?i.jsx(_,{}):i.jsx(U,{})}):null,i.jsx(M,{windowSize:n,children:b})]}),i.jsxs(N,{windowSize:n,children:[i.jsxs(V,{windowSize:n,children:[i.jsxs(D,{children:[i.jsx(J,{}),i.jsx(K,{windowSize:n}),i.jsx(L,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:v.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(q,{children:z}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:C})}):null]}),i.jsx(A,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:f,saveConnectionState:p,handleOnConnectClick:j,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(G,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},H=s.div`
1
+ import{Q as O,F as u,V as i,n as k,o,y as a,p as d,fK as B,B as Q,ae as T,bt as W,eM as E,fB as G,aS as w,ag as $,u as t}from"./index-Bc9FAOZe.js";import{n as s}from"./mui-bYXq4XMS.js";import A from"./QBOConnectionDialog-BRU6xjQi-B28W5kbl.js";const r={containerPadding:new a(t[3],t[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(t[3],t[0]),arrowIconWidthHeight:new a(t[3],t[4])},F={title:new Q("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:y,companyName:f,updateQBOPopupState:h,handleOnConnectClick:j})=>{const n=O(),{qbo_connection:S}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:b,sucessText:z,button:v,errorText:P,requiredText:C}=S;return i.jsxs(H,{windowSize:n,children:[i.jsxs(I,{windowSize:n,children:[n==="small"?i.jsx(R,{children:l?i.jsx(_,{}):i.jsx(U,{})}):null,i.jsx(M,{windowSize:n,children:b})]}),i.jsxs(N,{windowSize:n,children:[i.jsxs(V,{windowSize:n,children:[i.jsxs(D,{children:[i.jsx(J,{}),i.jsx(K,{windowSize:n}),i.jsx(L,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:v.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(q,{children:z}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:C})}):null]}),i.jsx(A,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:f,saveConnectionState:p,handleOnConnectClick:j,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(G,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},H=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{y as O,u as U,d as M,Q as W,F as B,a8 as G,aN as H,V as s,aH as Q,cB as X,bz as J,ab as K,aO as Y,o as f}from"./index-B6FLCqRf.js";import{a as $}from"./core-3dlyNYRL.js";import{n as b}from"./mui-bYXq4XMS.js";import{b as Z,f as ee,l as D,o as L}from"./FollowStepsSection-dgWK-_PA-svnQ0XjA.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.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 j="reimbursementApprovalRuleDetailPage",C="lowerBound",N="upperBound",y="steps",te={footerPadding:new O(U[2],U[3])};function Se({localData:e,approvalUpdateActionType:l,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:r=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:h,onResetClick:T,onSaveRuleClick:_,onSaveRuleSuccess:A}){const E=M(),S=W(),a=B.getLocalizedStrings().commonSetUp.approval,I=B.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,l==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,w=H(u?.fetchState),{upperBound:P}=x,{allApprovalRules:n,allAccountingClasses:F,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const V=g.handleSubmit(()=>{_()}),z=async(i,p)=>{h(p)};return $.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const q=Q(p);X(()=>z(R,q))}});return()=>{i.unsubscribe()}}),$.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),s.jsxs(se,{children:[s.jsx(J,{title:l==="approval_create"?a.newApproval:a.editApproval,backgroundColor:E.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(K,{...g,children:s.jsx("form",{id:k(j),onSubmit:V,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:N,placeholder:"Infinity",isDisabled:r,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:k(j),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:T},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(S)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,l)=>{const{criteria:t,steps:r}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),L(e.allAttributes),L(e.filteredAttributes),r??[])??[],[C]:l?void 0:t!=null?t.range.min.amount??0:0,[N]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},le=(e,l,t,r,o)=>o&&o.length>0?o.map((d,h)=>({stepIndex:h,stepType:{selectedOption:d.action,allOptions:D},actors:{allUsers:l,selectedUsers:re(e,d.actors),allNonUsers:r,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:D},actors:{allUsers:l,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],re=(e,l)=>e.filter(t=>t.userId!=null&&l.findIndex(r=>r.userId===t.userId)>-1),oe=(e,l)=>e.filter(t=>l.findIndex(r=>r.subType===t.value)>-1),k=e=>`${e}_form`,Ie=e=>`${e}`,se=b.div`
1
+ import{y as O,u as U,d as M,Q as W,F as B,a8 as G,aN as H,V as s,aH as Q,cB as X,bz as J,ab as K,aO as Y,o as f}from"./index-Bc9FAOZe.js";import{a as $}from"./core-3dlyNYRL.js";import{n as b}from"./mui-bYXq4XMS.js";import{b as Z,f as ee,l as D,o as L}from"./FollowStepsSection-dgWK-_PA-B5HqzRFh.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const j="reimbursementApprovalRuleDetailPage",C="lowerBound",N="upperBound",y="steps",te={footerPadding:new O(U[2],U[3])};function Se({localData:e,approvalUpdateActionType:l,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:r=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:h,onResetClick:T,onSaveRuleClick:_,onSaveRuleSuccess:A}){const E=M(),S=W(),a=B.getLocalizedStrings().commonSetUp.approval,I=B.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,l==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,w=H(u?.fetchState),{upperBound:P}=x,{allApprovalRules:n,allAccountingClasses:F,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const V=g.handleSubmit(()=>{_()}),z=async(i,p)=>{h(p)};return $.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const q=Q(p);X(()=>z(R,q))}});return()=>{i.unsubscribe()}}),$.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),s.jsxs(se,{children:[s.jsx(J,{title:l==="approval_create"?a.newApproval:a.editApproval,backgroundColor:E.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(K,{...g,children:s.jsx("form",{id:k(j),onSubmit:V,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:N,placeholder:"Infinity",isDisabled:r,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:k(j),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:T},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(S)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,l)=>{const{criteria:t,steps:r}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),L(e.allAttributes),L(e.filteredAttributes),r??[])??[],[C]:l?void 0:t!=null?t.range.min.amount??0:0,[N]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},le=(e,l,t,r,o)=>o&&o.length>0?o.map((d,h)=>({stepIndex:h,stepType:{selectedOption:d.action,allOptions:D},actors:{allUsers:l,selectedUsers:re(e,d.actors),allNonUsers:r,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:D},actors:{allUsers:l,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],re=(e,l)=>e.filter(t=>t.userId!=null&&l.findIndex(r=>r.userId===t.userId)>-1),oe=(e,l)=>e.filter(t=>l.findIndex(r=>r.subType===t.value)>-1),k=e=>`${e}_form`,Ie=e=>`${e}`,se=b.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{d as M,Q as I,F as b,V as o,bz as H,A as V,aK as S,o as t,y as r,ak as L,aL as z,cm as E,cn as G,co as U,cY as Y,u as l,b7 as q,B as P,b6 as F,p as j,cV as J,br as _,b as K}from"./index-B6FLCqRf.js";import{n as i}from"./mui-bYXq4XMS.js";import{a as O}from"./core-3dlyNYRL.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.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 s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},A={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},Q=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:y,onDeleteRuleClick:v})=>{const[g,d]=O.useState(!1),a=I(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,n=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},W={onOkClick:()=>{d(!1),v?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(Z,{windowSize:a,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(X,{windowSize:a,children:[o.jsxs(ne,{children:[o.jsxs(B,{windowSize:a,children:[n.from," ",z("0,0",c.min)]}),o.jsxs(ee,{children:[o.jsx(k,{}),o.jsx(oe,{}),o.jsx(k,{})]}),c.max==null?o.jsx(ce,{}):o.jsx(B,{windowSize:a,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ae,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{y(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:a,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:a,children:w.map((h,N)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?o.jsx(le,{children:n.requireText}):o.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,D)=>o.jsxs(R,{children:[o.jsx(T,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${D}`)),h.actors.map(p=>o.jsxs(R,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},N))})}),g?o.jsx(E,{titleComponent:o.jsx(U,{children:n.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(G,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:W}):null]})},Z=i.div`
1
+ import{d as M,Q as I,F as b,V as o,bz as H,A as V,aK as S,o as t,y as r,ak as L,aL as z,cm as E,cn as G,co as U,cY as Y,u as l,b7 as q,B as P,b6 as F,p as j,cV as J,br as _,b as K}from"./index-Bc9FAOZe.js";import{n as i}from"./mui-bYXq4XMS.js";import{a as O}from"./core-3dlyNYRL.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},A={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},Q=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:y,onDeleteRuleClick:v})=>{const[g,d]=O.useState(!1),a=I(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,n=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},W={onOkClick:()=>{d(!1),v?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(Z,{windowSize:a,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(X,{windowSize:a,children:[o.jsxs(ne,{children:[o.jsxs(B,{windowSize:a,children:[n.from," ",z("0,0",c.min)]}),o.jsxs(ee,{children:[o.jsx(k,{}),o.jsx(oe,{}),o.jsx(k,{})]}),c.max==null?o.jsx(ce,{}):o.jsx(B,{windowSize:a,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ae,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{y(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:a,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:a,children:w.map((h,N)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?o.jsx(le,{children:n.requireText}):o.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,D)=>o.jsxs(R,{children:[o.jsx(T,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${D}`)),h.actors.map(p=>o.jsxs(R,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},N))})}),g?o.jsx(E,{titleComponent:o.jsx(U,{children:n.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(G,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:W}):null]})},Z=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{av as At,a7 as Mt,Q as Rt,d as Bt,ca as Pt,y as m,F as Qe,gc as Nt,ge as Lt,gf as Ot,V as t,cm as ke,cn as ze,co as Ae,aK as y,bz as Me,bm as _t,dw as Wt,gg as Et,gr as Re,o as a,gh as Be,fd as b,ff as w,gk as x,aL as Pe,fc as Ne,b as F,gm as Le,aO as Ft,an as Kt,gn as Ut,go as ie,bv as Vt,gp as Yt,_ as Gt,B as Ht,M as qt,ak as Xe,b7 as et,p as K,al as Jt,bS as Zt,ag as Qt,gH as Xt,gD as ei,u as c,cf as ti,cT as ii}from"./index-B6FLCqRf.js";import{a as p}from"./core-3dlyNYRL.js";import{n as r}from"./mui-bYXq4XMS.js";import{a as ai}from"./liveblocks-DIep7fJd.js";import{bO as ri,bS as oi,fI as ni}from"./zeni-epic-state-LPACxnXP.js";import li from"./InvoiceUploadSection-wKWbAAeR-jqYSJVVo.js";import{r as si,h as f,u as di}from"./types-DyvtCprH-BcZYcgaq.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./utils-uDUqNRFY.js";import"./lexical-DPEnH3HH.js";import"./AttachmentView-_qAuq3Am-BnxUEqyT.js";import"./uploadReceipts-Bkf_PaOH-Vf7-L7FN.js";const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},ci={formTitle:new Ht("h6Regular","h5Regular")},la=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:tt,isAdmin:re,signedInUser:oe,showApproveRejectBtns:ne,isRealTimeApprovalEnabled:le,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:se,isSignedInUserReimbursementCreator:it,updateEditRealTimeApproverClicked:de,onSaveRealTimeApprovals:ce,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:at,onDuplicateLineClick:rt,approveOrRejectRemi:me,deleteReimbursement:ot,cancelAndDeleteReport:pe,handleZeniLogoClick:nt,onAddNewRule:ue})=>{const d=At(),lt=Mt().analytics,o=Rt(),he=Bt(),[st,k]=p.useState(!1),[Y,G]=p.useState(!1),[dt,H]=p.useState(!1),[q,J]=p.useState("approved"),B=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,ct]=p.useState(null),[mt,P]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ye=p.useRef({}),ge=l=>{const n=ye.current[l];n!=null&&setTimeout(()=>di(n,B.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);ge(n)}},[]);const pt=()=>{V()};Pt({componentName:"reimbursement.details"});const ut={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?ot?.():j.title===i.cancelReportTitle?pe?.():j.title===i.cancelAndDeleteReportTitle&&pe?.(!0)},onCancelClick:()=>{k(!1)}},D=s.labelWidth.value(o),z=s.largeLabelWidth.value(o),be=Qe.getLocalizedStrings(),{common:{texts:{comments:ht},strings:{empty:we}},collaboration:{threads:{placeholder:{addANewComment:yt,replyAComment:gt},tooltip:{resolveComment:bt,unResolveComment:wt}}},dateFormat:xe}=be,{reimbursementDetail:i,bulkActions:N}=be.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,fe=L?.code==="paid",xt=fe?L:O?.code=="approved"&&_?.code?_:O,$=mi(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,$e=e.remiDetails?.amount,ve=e.remiDetails?.amount.amount??0,Te=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},ft=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},$t=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},Se=()=>{at()},vt={onOkClick:l=>{H(!1),me({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},Tt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?Se():(J("approved"),me({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),Te()):(J("rejected"),H(!0))},jt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ri(oi(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,X=e.remiDetails?.reimbursementInfo.expectedDepositDate??jt,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,je=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&it&&!Dt,It=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=xt?.code,Ct=si(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ie,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:I}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[M]).length,zt=p.useCallback((l,n)=>{E(n),P(!1)},[E,P]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!I&&(E(te.threadId),Ie(null))},[te,M,I,E,Ie]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ni(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:B,children:[st?t.jsx(ke,{titleComponent:t.jsx(Ae,{children:j.title}),descriptionComponent:t.jsx(ze,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ut}):null,dt?t.jsx(ke,{titleComponent:t.jsx(Ae,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(ze,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:vt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ai,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Me,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Mi,{onClick:()=>nt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:he.colors.background,keepBackgroundOnScroll:!0,scrollableContent:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Ci,{}):null,t.jsx(Me,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??we,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Pi,{isDisabled:I,onClick:I?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ct({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),P(!0),lt.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:I?void 0:kt,isLoading:I,style:{left:"12px"}}),t.jsx(Ni,{})]}):null,t.jsx(Li,{size:o,onClick:()=>pt(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ri,{})})]}),scrollableContent:B,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Vi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ge,{windowSize:o,children:t.jsx(He,{windowsSize:o,children:Q})}),e.createdBy?.userId!=null?t.jsx(Ke,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,se&&$!=null?t.jsx(Ue,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Re,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Fe,{}),t.jsxs(We,{children:[t.jsx(_e,{children:i.thereSeems}),t.jsx(Ee,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Ze,{windowSize:o,children:[t.jsx(Fi,{windowSize:o,children:t.jsx(Ki,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(li,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:tt,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Ei,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Ge,{windowSize:o,children:[t.jsx(He,{windowsSize:o,children:Q}),se&&$!=null?t.jsx(Ue,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ke,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Re,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Fe,{}),t.jsxs(We,{children:[t.jsx(_e,{children:i.thereSeems}),t.jsx(Ee,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(bi,{windowSize:o,ref:Ce=>{Ce!=null&&(ye.current[`L${l.lineId}`]=Ce)},children:[o!=="small"?t.jsx(gi,{children:t.jsx(wi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(xi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(hi,{children:[i.thisExpenseReview," ",t.jsx(yi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return ge(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&rt(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:z},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:l.transactionDate?.format(xe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:z},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:D},text:l.homeCurrencyConversions!=null?Pe("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:D},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:D},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:z},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:l.transactionDate?.format(xe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:D},text:l.homeCurrencyConversions!=null?Pe("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:D},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:D},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:D},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Wi,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Je,{children:i.total}),t.jsx(Ne,{amount:$e,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Le,{amount:ve,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:ue,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:re,signedInUserId:oe?.userId,showRealTimeApproval:le,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:de,onSaveRealTimeApprovals:ce},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Ze,{windowSize:o,children:[t.jsx(Ve,{}),t.jsxs(pi,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Je,{children:i.total}),t.jsx(Ne,{amount:$e,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ui,{windowSize:o,children:t.jsx(Le,{amount:ve,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:ue,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:re,signedInUserId:oe?.userId,showRealTimeApproval:le,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:de,onSaveRealTimeApprovals:ce}})})]})]}),t.jsx(Ui,{})]}),fe||W===!0?null:t.jsxs(zi,{children:[o!=="small"?t.jsx(Ve,{}):null,t.jsx($i,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||ne,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||ne,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Tt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(fi,{children:t.jsxs(ki,{windowSize:o,children:[!R&&Y?t.jsx(Kt,{onClickAway:()=>G(!1),children:t.jsxs(Ii,{windowSize:o,children:[ee!=="processing"?t.jsx(ae,{onClick:Te,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(ae,{onClick:ft,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(ae,{onClick:$t,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!R&&je?t.jsx(ji,{onClick:Se,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!R&&It===!0?t.jsx(Ti,{windowSize:o,showEditIcon:je,children:t.jsx(vi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:mt,allowComposer:!0,drawerTitle:ht,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??we,isGlobalComment:!1,tab:"reimbursement"},isLoading:I,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:yt,replyComposerPlaceholder:gt,threadResolve:bt,threadUnResolve:wt},onThreadClick:(l,n)=>zt(l,n),onCloseAllThreadsDrawer:()=>P(!1),drawerSectionStyle:{width:"400px",backgroundColor:he.colors.background}})}):null]})},mi=e=>{const U=Qe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ie.deleted.color,bgColor:ie.deleted.bgColor,borderColor:ie.deleted.borderColor,code:"deleted"}},pi=r.div`
1
+ import{av as At,a7 as Mt,Q as Rt,d as Bt,ca as Pt,y as m,F as Qe,gc as Nt,ge as Lt,gf as Ot,V as t,cm as ke,cn as ze,co as Ae,aK as y,bz as Me,bm as _t,dw as Wt,gg as Et,gr as Re,o as a,gh as Be,fd as b,ff as w,gk as x,aL as Pe,fc as Ne,b as F,gm as Le,aO as Ft,an as Kt,gn as Ut,go as ie,bv as Vt,gp as Yt,_ as Gt,B as Ht,M as qt,ak as Xe,b7 as et,p as K,al as Jt,bS as Zt,ag as Qt,gH as Xt,gD as ei,u as c,cf as ti,cT as ii}from"./index-Bc9FAOZe.js";import{a as p}from"./core-3dlyNYRL.js";import{n as r}from"./mui-bYXq4XMS.js";import{a as ai}from"./liveblocks-B3KbWbMM.js";import{bO as ri,bS as oi,fI as ni}from"./zeni-epic-state-xFtF3OLs.js";import li from"./InvoiceUploadSection-wKWbAAeR-BJp8u9pj.js";import{r as si,h as f,u as di}from"./types-DyvtCprH-BcZYcgaq.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./utils-C70QTjQC.js";import"./lexical-DPEnH3HH.js";import"./AttachmentView-_qAuq3Am-B8SsX2_q.js";import"./uploadReceipts-Bkf_PaOH-B56PESzm.js";const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},ci={formTitle:new Ht("h6Regular","h5Regular")},la=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:tt,isAdmin:re,signedInUser:oe,showApproveRejectBtns:ne,isRealTimeApprovalEnabled:le,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:se,isSignedInUserReimbursementCreator:it,updateEditRealTimeApproverClicked:de,onSaveRealTimeApprovals:ce,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:at,onDuplicateLineClick:rt,approveOrRejectRemi:me,deleteReimbursement:ot,cancelAndDeleteReport:pe,handleZeniLogoClick:nt,onAddNewRule:ue})=>{const d=At(),lt=Mt().analytics,o=Rt(),he=Bt(),[st,k]=p.useState(!1),[Y,G]=p.useState(!1),[dt,H]=p.useState(!1),[q,J]=p.useState("approved"),B=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,ct]=p.useState(null),[mt,P]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ye=p.useRef({}),ge=l=>{const n=ye.current[l];n!=null&&setTimeout(()=>di(n,B.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);ge(n)}},[]);const pt=()=>{V()};Pt({componentName:"reimbursement.details"});const ut={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?ot?.():j.title===i.cancelReportTitle?pe?.():j.title===i.cancelAndDeleteReportTitle&&pe?.(!0)},onCancelClick:()=>{k(!1)}},D=s.labelWidth.value(o),z=s.largeLabelWidth.value(o),be=Qe.getLocalizedStrings(),{common:{texts:{comments:ht},strings:{empty:we}},collaboration:{threads:{placeholder:{addANewComment:yt,replyAComment:gt},tooltip:{resolveComment:bt,unResolveComment:wt}}},dateFormat:xe}=be,{reimbursementDetail:i,bulkActions:N}=be.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,fe=L?.code==="paid",xt=fe?L:O?.code=="approved"&&_?.code?_:O,$=mi(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,$e=e.remiDetails?.amount,ve=e.remiDetails?.amount.amount??0,Te=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},ft=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},$t=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},Se=()=>{at()},vt={onOkClick:l=>{H(!1),me({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},Tt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?Se():(J("approved"),me({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),Te()):(J("rejected"),H(!0))},jt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ri(oi(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,X=e.remiDetails?.reimbursementInfo.expectedDepositDate??jt,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,je=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&it&&!Dt,It=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=xt?.code,Ct=si(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ie,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:I}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[M]).length,zt=p.useCallback((l,n)=>{E(n),P(!1)},[E,P]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!I&&(E(te.threadId),Ie(null))},[te,M,I,E,Ie]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ni(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:B,children:[st?t.jsx(ke,{titleComponent:t.jsx(Ae,{children:j.title}),descriptionComponent:t.jsx(ze,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ut}):null,dt?t.jsx(ke,{titleComponent:t.jsx(Ae,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(ze,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:vt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ai,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Me,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Mi,{onClick:()=>nt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:he.colors.background,keepBackgroundOnScroll:!0,scrollableContent:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Ci,{}):null,t.jsx(Me,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??we,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Pi,{isDisabled:I,onClick:I?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ct({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),P(!0),lt.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:I?void 0:kt,isLoading:I,style:{left:"12px"}}),t.jsx(Ni,{})]}):null,t.jsx(Li,{size:o,onClick:()=>pt(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ri,{})})]}),scrollableContent:B,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Vi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ge,{windowSize:o,children:t.jsx(He,{windowsSize:o,children:Q})}),e.createdBy?.userId!=null?t.jsx(Ke,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,se&&$!=null?t.jsx(Ue,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Re,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Fe,{}),t.jsxs(We,{children:[t.jsx(_e,{children:i.thereSeems}),t.jsx(Ee,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Ze,{windowSize:o,children:[t.jsx(Fi,{windowSize:o,children:t.jsx(Ki,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(li,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:tt,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Ei,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Ge,{windowSize:o,children:[t.jsx(He,{windowsSize:o,children:Q}),se&&$!=null?t.jsx(Ue,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ke,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Re,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Fe,{}),t.jsxs(We,{children:[t.jsx(_e,{children:i.thereSeems}),t.jsx(Ee,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(bi,{windowSize:o,ref:Ce=>{Ce!=null&&(ye.current[`L${l.lineId}`]=Ce)},children:[o!=="small"?t.jsx(gi,{children:t.jsx(wi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(xi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(hi,{children:[i.thisExpenseReview," ",t.jsx(yi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return ge(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&rt(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:z},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:l.transactionDate?.format(xe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:z},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:D},text:l.homeCurrencyConversions!=null?Pe("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:D},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:D},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:z},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:l.transactionDate?.format(xe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:D},text:l.homeCurrencyConversions!=null?Pe("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:D},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:D},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:D},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Wi,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Je,{children:i.total}),t.jsx(Ne,{amount:$e,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Le,{amount:ve,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:ue,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:re,signedInUserId:oe?.userId,showRealTimeApproval:le,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:de,onSaveRealTimeApprovals:ce},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Ze,{windowSize:o,children:[t.jsx(Ve,{}),t.jsxs(pi,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Je,{children:i.total}),t.jsx(Ne,{amount:$e,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ui,{windowSize:o,children:t.jsx(Le,{amount:ve,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:ue,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:re,signedInUserId:oe?.userId,showRealTimeApproval:le,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:de,onSaveRealTimeApprovals:ce}})})]})]}),t.jsx(Ui,{})]}),fe||W===!0?null:t.jsxs(zi,{children:[o!=="small"?t.jsx(Ve,{}):null,t.jsx($i,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||ne,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||ne,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Tt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(fi,{children:t.jsxs(ki,{windowSize:o,children:[!R&&Y?t.jsx(Kt,{onClickAway:()=>G(!1),children:t.jsxs(Ii,{windowSize:o,children:[ee!=="processing"?t.jsx(ae,{onClick:Te,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(ae,{onClick:ft,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(ae,{onClick:$t,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!R&&je?t.jsx(ji,{onClick:Se,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!R&&It===!0?t.jsx(Ti,{windowSize:o,showEditIcon:je,children:t.jsx(vi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:mt,allowComposer:!0,drawerTitle:ht,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??we,isGlobalComment:!1,tab:"reimbursement"},isLoading:I,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:yt,replyComposerPlaceholder:gt,threadResolve:bt,threadUnResolve:wt},onThreadClick:(l,n)=>zt(l,n),onCloseAllThreadsDrawer:()=>P(!1),drawerSectionStyle:{width:"400px",backgroundColor:he.colors.background}})}):null]})},mi=e=>{const U=Qe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ie.deleted.color,bgColor:ie.deleted.bgColor,borderColor:ie.deleted.borderColor,code:"deleted"}},pi=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{av as ne,d as S,Q as k,aN as le,F as D,V as e,aK as a,fo as ae,bz as me,n as u,ad as m,o as t,ap as ce,E as de,aQ as E,al as pe,y as xe,p as z,cA as he,aR as ue,b8 as ge,u as we}from"./index-B6FLCqRf.js";import{a as j}from"./core-3dlyNYRL.js";import{n as s}from"./mui-bYXq4XMS.js";import{fH as je,bW as be}from"./zeni-epic-state-LPACxnXP.js";import{f as fe}from"./VideoPopup-CUd3F8wz-B_M6bvaF.js";import{M as v}from"./usp-line-BBd1wKwW-ClwDS-nj.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"./VideoPlayer-UPe1R-1g-BKErNhSD.js";const F="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
1
+ import{av as ne,d as S,Q as k,aN as le,F as D,V as e,aK as a,fo as ae,bz as me,n as u,ad as m,o as t,ap as ce,E as de,aQ as E,al as pe,y as xe,p as z,cA as he,aR as ue,b8 as ge,u as we}from"./index-Bc9FAOZe.js";import{a as j}from"./core-3dlyNYRL.js";import{n as s}from"./mui-bYXq4XMS.js";import{fH as je,bW as be}from"./zeni-epic-state-xFtF3OLs.js";import{f as fe}from"./VideoPopup-CUd3F8wz-tWB_z85N.js";import{M as v}from"./usp-line-BBd1wKwW-ClwDS-nj.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./VideoPlayer-UPe1R-1g-Dcfc-D3z.js";const F="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{d as Ee,Q as Ve,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as Je,p as J,y as s,bz as Ze,A as Ke,ab as Ye,fp as ve,dR as Qe,fq as Xe,bu as et,dH as tt,aO as it,o as a,fs as nt,u as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aK as Pe,B as Ae,bJ as ct,ag as dt,br as ut}from"./index-B6FLCqRf.js";import{a as o}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{bM as mt}from"./zeni-epic-state-LPACxnXP.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-E73Idplv-CWs5X5k0.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 gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),f={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:w,analytics:A,style:j,sectionId:$,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:K},trigger:Y}=at(),E=ht($,"mileageAmountInDenomination"),h=lt(K,E),{localData:c,updateStatus:F,mileageStatus:S}=w,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Q,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[b,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{h||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{b||H(b)},[b]);const{reimbursementSetup:x}=ee,{setUp:ie}=Q,ne=b===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:f.iconWidthHeight.valuePx(l),height:f.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(bt,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:$e(S.code)}):null]}),t.jsxs(wt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:S.name,textColor:$e(S.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:h?void 0:D.colors.background,color:b||h?void 0:D.colors.grey1},isFieldError:h,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Lt,{children:b?t.jsx(rt,{label:x.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!h&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(zt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),H(!0),A.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:h,children:h&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,w)=>`${e}.${w}`,xt=i.div`
1
+ import{d as Ee,Q as Ve,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as Je,p as J,y as s,bz as Ze,A as Ke,ab as Ye,fp as ve,dR as Qe,fq as Xe,bu as et,dH as tt,aO as it,o as a,fs as nt,u as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aK as Pe,B as Ae,bJ as ct,ag as dt,br as ut}from"./index-Bc9FAOZe.js";import{a as o}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{bM as mt}from"./zeni-epic-state-xFtF3OLs.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-E73Idplv-RRW5i6SD.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),f={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:w,analytics:A,style:j,sectionId:$,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:K},trigger:Y}=at(),E=ht($,"mileageAmountInDenomination"),h=lt(K,E),{localData:c,updateStatus:F,mileageStatus:S}=w,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Q,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[b,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{h||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{b||H(b)},[b]);const{reimbursementSetup:x}=ee,{setUp:ie}=Q,ne=b===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:f.iconWidthHeight.valuePx(l),height:f.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(bt,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:$e(S.code)}):null]}),t.jsxs(wt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:S.name,textColor:$e(S.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:h?void 0:D.colors.background,color:b||h?void 0:D.colors.grey1},isFieldError:h,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Lt,{children:b?t.jsx(rt,{label:x.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!h&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(zt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),H(!0),A.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:h,children:h&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,w)=>`${e}.${w}`,xt=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -1 +1 @@
1
- import{F as O,V as f,cm as M,cn as W,co as Y,k0 as q,aV as z}from"./index-B6FLCqRf.js";import{a as b}from"./core-3dlyNYRL.js";import{gc as G}from"./zeni-epic-state-LPACxnXP.js";import{u as X}from"./ReviewOverlay-DkL6mTyl-BFHL0-xi.js";import"./mui-bYXq4XMS.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{common:n,spendManagement:{reimbursement:B}}=O.getLocalizedStrings(),o=B.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=b.useState(!1),[m,_]=b.useState(P(e,h,a)),[y,R]=b.useState(h),[I,J]=b.useState(0),[S,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(I===m.length&&y&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(j)}),[m.length,I,y,e.fetchState,h,e,a]);const F=m.length,x=m.filter(u=>u.reviewStatus.code!=="error").length,L=()=>{const{title:u,description:T}=Z(x);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},$={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,G(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:E,description:U}=H(p,x,F,y),C=e.fetchState==="Completed"&&x===0,V=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:V,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:L,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[w?f.jsx(M,{titleComponent:f.jsx(Y,{children:S.title}),descriptionComponent:f.jsx(W,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(X,{title:E,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!y,footerProps:{primaryButton:D(),cancelButton:N,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Z=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},H=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
1
+ import{F as O,V as f,cm as M,cn as W,co as Y,k0 as q,aV as z}from"./index-Bc9FAOZe.js";import{a as b}from"./core-3dlyNYRL.js";import{gc as G}from"./zeni-epic-state-xFtF3OLs.js";import{u as X}from"./ReviewOverlay-DkL6mTyl-BWp95RsJ.js";import"./mui-bYXq4XMS.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";const{common:n,spendManagement:{reimbursement:B}}=O.getLocalizedStrings(),o=B.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=b.useState(!1),[m,_]=b.useState(P(e,h,a)),[y,R]=b.useState(h),[I,J]=b.useState(0),[S,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(I===m.length&&y&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(j)}),[m.length,I,y,e.fetchState,h,e,a]);const F=m.length,x=m.filter(u=>u.reviewStatus.code!=="error").length,L=()=>{const{title:u,description:T}=Z(x);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},$={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,G(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:E,description:U}=H(p,x,F,y),C=e.fetchState==="Completed"&&x===0,V=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:V,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:L,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[w?f.jsx(M,{titleComponent:f.jsx(Y,{children:S.title}),descriptionComponent:f.jsx(W,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(X,{title:E,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!y,footerProps:{primaryButton:D(),cancelButton:N,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Z=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},H=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
@@ -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-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)`
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-Bc9FAOZe.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-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`
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-Bc9FAOZe.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-CWsF8pJQ.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};