@zeniai/web-cockpit-ui 1.14.94-qa → 1.14.95-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 (273) hide show
  1. package/dist/assets/{ACHDetailsPage--3bIj7tB-DrDErnNL.js → ACHDetailsPage-OhfwzmDP-BxTDVOh1.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DBCeKLy6-By9DMVXx.js → AIPerformancePage-9OxanlvK-CgJqovaF.js} +1 -1
  3. package/dist/assets/AccountInfoPage-CDn5K_o2-Jz8ASTF3.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-Zb49sPy6-BxbI1uqA.js → AccountInfoPageContent-Bu-ZFVKf-Bzjfgq-w.js} +10 -10
  5. package/dist/assets/{AccountLockedInfoModal-BcokXO2D-Co3qEZOv.js → AccountLockedInfoModal-BqLkGmTA-BNXIZ-_c.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BWydimgX-CHT8CRlz.js → AccountReconDetailsDrawerPage-CyQ13mJl-FHiDm0XX.js} +1 -1
  7. package/dist/assets/{AccountRow-XnGMYfcj-DObYPAJJ.js → AccountRow-pJ59k4-J-byrgsZ5o.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-BQeRFxKs-sxU_SQN3.js → AccountsPromoCardStack-Ukdm1VDj-LXzQVhgG.js} +8 -8
  9. package/dist/assets/{AddAddressForCardDrawer-DOXNDswm-CcCKCIGE.js → AddAddressForCardDrawer-CZ9kZK-_-BorvwiUS.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-D4yEGRLZ-BkCaswnJ.js → AddToWalletPage-Bc0GY8mw-Bzy3APVO.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Bos6Ptg1-DFUrEqFA.js → AgingReportsPage-Cam_Ox67-esv0vh5e.js} +3 -3
  12. package/dist/assets/{AllUserItems-JjQPLLSr-DTpPvg0u.js → AllUserItems-CEBWfFac-DTqOorYc.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-Y4VWhY78-BVAmz3xM.js → ApAgingDetailPage-uy2AK45a-DNUi-nEy.js} +2 -2
  14. package/dist/assets/{AppBasePage-CaAadL3t-C3XqVSW3.js → AppBasePage-BBolfeYB-DNhslGFP.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-BKsLlcGq-CZQ6749H.js → AppDrawerContent-Df0b3OK2-B2ahGZLO.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-sHR8nTbf-B4GmnvCX.js → ApprovalRulesSettingsPage-ChI1Wnf--Dl3-g6oX.js} +1 -1
  17. package/dist/assets/{ArAgingChart-Cn2M7EaL-rahkvPhe.js → ArAgingChart-PIQ_BFy4-BnDMbQVn.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-vdpIT5_o-4DnPrw53.js → ArAgingDetailPage-DpdUPb6--z8BZ4n5F.js} +1 -1
  19. package/dist/assets/{AttachmentView-QyMOK54a-yHfOa1ag.js → AttachmentView-mC246Bpw-BHWqGVkj.js} +1 -1
  20. package/dist/assets/{BankAccountSection-BexfgJ02-BdNur9UM.js → BankAccountSection-DehqZ04x-DO-HA5ys.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-MLEqvFgR-DBOH6zDo.js → BankAccountWarningSection-WkczfI75-CuH7tIxu.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-DP9KRNaJ-CNEOfPUf.js → BankConnectionsSettingsPage-CCEKqkfW-BfqVttB9.js} +1 -1
  23. package/dist/assets/{BillDetailPage-jNE4rg05-BBmr6_46.js → BillDetailPage-DA1djKtd-DyCGsfw-.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-C8hROA4_-C1c28UPR.js → BillPayApprovalRuleDetailPage-CLkMLaIk-C1v-sTgA.js} +4 -4
  25. package/dist/assets/{BillPayApprovalRulesPage-BQywFC8e-o7uF7NjZ.js → BillPayApprovalRulesPage-CZnYZ8cn-CAMKGQJy.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-D2OmNki0-C0AfkR54.js → BillPayPromoPage-M3bRYehy-SjsaKPSV.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-C81gx8-a-DDlMbDXO.js → BillPaySetUpPage-CJyPhrld-C0AU7hvY.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-CIUisdZK-w3vJ1And.js → BillingSettingsPage-CQngU3lq-Dyxs7zHK.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DqjW9AqP-CmB_LcND.js → BillsBulkReviewDrawerPage-DlAOz-SY-3nnvXFIK.js} +1 -1
  30. package/dist/assets/{BoxItem-YBSbdQ7d-BwMDCITL.js → BoxItem-Cb4_ZBkK-Bkgg0u3k.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DeJbdegJ-CUYYGIL9.js → BusinessVerificationPage-D7btikKT-CvsI0MLJ.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-Bq9G3f38-DLJhJoLi.js → CardNumberSubText-DQ6T2OKm-DvKU5ajv.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-C-0eaJVF-Cx6j_Uk4.js → CashbackDetailPage-ToN5ueBt-C9SvI1bn.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-CBB5up99-KXJuUvRz.js → ChargeCardDetailPage-BYNjlLQX-CdtS9CW8.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-52TDMfjH-DXcbVN4v.js → ChargeCardListPage-CTG6bNbA-CEyn9Rpg.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-BdHKiQtr-gDqLA-sS.js → ChargeCardListTable-BRAAvmWW-D-sN9KpZ.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-D43dBHNx-sLgU5ULy.js → ChargeCardPromoPage-xhEvT_sU-BkSGNTuR.js} +10 -10
  38. package/dist/assets/{ChargeCardSetupPage-CgzI8qMq-CPQUeaXF.js → ChargeCardSetupPage-Be89R3A7-DtcPTkPM.js} +3 -3
  39. package/dist/assets/{ChargeCardStatementsPage-C1PYOcuH-DBVxGbQ9.js → ChargeCardStatementsPage-CFNCOiLr-iPk9fUPX.js} +1 -1
  40. package/dist/assets/{CheckDepositDrawerPage-CrYCkxKl-BeZkTazq.js → CheckDepositDrawerPage-Cy0NVgKc-D5Z7NEXx.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-CvXUxopt-f_pwfY1A.js → CollapsableReportTable-CrR91Kpi-5o5TUvM_.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-DYAECWJz-HKtVrqo7.js → CompanyOfficerDetailsSection-4FjXy6T9-BeFKaxwk.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-CLoIl-hE-wllBt2bZ.js → CompanyPassportCard-Bv6Aws7i-BHrtuPF7.js} +2 -2
  44. package/dist/assets/{CompanyPassportPage-B3opPlfY-CDzkB8k9.js → CompanyPassportPage-DRhnOgdd-CAYATeHw.js} +1 -1
  45. package/dist/assets/{CompleteProfile-DKCP0ZOq-DzVwkLls.js → CompleteProfile-CdVQdaB0-B5_lHcue.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-Ccs36Y8q-DP6hv2Ja.js → ConfettiBurst-Cygb8bhF-BkIJka8y.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-CC5jroI_-BZmnNHLX.js → CreateOrEditVendorPage-_jZBL7C2-LSCYEMsl.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-BNSfaY2k-DZ94bqli.js → CreditCardPaymentDrawerPage-CWF47Q9G-DhX1QGtb.js} +101 -101
  49. package/dist/assets/{CurrencySelectField-CfFOlEnM-D66cwJ1s.js → CurrencySelectField-ppkSKTpN-C5rfRVft.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-Cac_xdpd-BqkKylRA.js → CustomerOnboardingActivationPage-DbaC9Uy1-BFo_8GS3.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-qmrLtjkH-BBYdYWUC.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Cktian-X-CQ7_PG1e.js → CustomerOnboardingDetailPageSkeleton-5PeyznvM-CWHXVqDg.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-BVW1Hd-G-D1PQRFKa.js → CustomerOnboardingNoStepsPage-CWvaI2vY-BMWDOChj.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-CSTODxiL-CnN2kXF1.js → CustomerOnboardingPage-DWmMR5Ke-DrHmimlq.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-dcjDfxm3-9tyO47vS.js → CustomerOnboardingProductSuitePage-CEOJEMdY-BJwF7tHC.js} +7 -7
  56. package/dist/assets/{Dashboard-DHwjF8AD-DMQt4Oy0.js → Dashboard-CJSMYKO7-DtTMv2YE.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-BbFqvGcc-DoOcHGWw.js → DashboardReportPage-CcY-7-W_-B9Xu9Dc7.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-Aepv0x8n-xzde-NIZ.js → DashboardSidebarBackgroundAnimation-D3qI_q0a-zE-tHYqy.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-B6bYU73--B_rVssO-.js → DepositAccTransactionItem-BpbS0SRE-4G4pZt9E.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-DdCwnDuw-D17ygMOK.js → DepositAccTransactionListPage-C1EuUbFg-CipCQ4gA.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-DXlw9Ok--DcCgS8G_.js → DomesticWireDetailsPage-DTrY_uHQ-Bx_xjnPA.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-KKP34aVT-D21U0JpA.js → DownloadOverlay-gRH0FIa6-DKDTdwBo.js} +1 -1
  63. package/dist/assets/{DrawerPage-DXGL0DM7-Dnq1XdM2.js → DrawerPage-gsfboWa--BG-IsntA.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-DWmJ1PpR-CqqlGsSI.js → EditPeoplePage-D3GenIke-fFVPNEu-.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-B_5V1IzS-CqQtKcYG.js → EditReimbursementDetailPage-CC4JbXua-BHQf6Tq_.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-BUzV8V9O-DvXYUK9r.js → EntityDetailPage-dZ-H_-kO-B7ZtrjJi.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-CdjupOWB-CL42t66x.js → EntitySummarySection-BaSzuw3T-LStVjn5r.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-Bx47Uuzu-BN_R5YdO.js → ExpenseAutomationOverviewPage-CtBVIXza-jj81QXv0.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-aVCW740N-BDOWuVmm.js → ExpenseAutomationPage-BByZfMUo-5XiRqMlX.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-xIDJP3---Fhlkf5xA.js → ExpressPayPage-Dx4Cc9w2-BPUrRRqb.js} +1 -1
  71. package/dist/assets/{FeaturePreviewPage-BeGkbhpj-Ci6nIkqK.js → FeaturePreviewPage-Us5W5Wo9-B9QYuRIC.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-9Bp032CO-BwvbM2x2.js → FollowStepsSection-DDXRZdXi-SO_ZPpiI.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-BKgbn5KU-BhKDlhzQ.js → GlobalReviewListPage-Ou4B6O28-BDWqy7nZ.js} +1 -1
  74. package/dist/assets/{InformationCardStack-DR09Frl5-BrWPXMqI.js → InformationCardStack-DEj81xCg-Co1eZBNX.js} +3 -3
  75. package/dist/assets/{InsightsCardStack-Bs9n7ddB-Bdea0gBC.js → InsightsCardStack-BSigEuRs-DTXlX0eo.js} +1 -1
  76. package/dist/assets/{InsightsSection-Bt4Z2mKl-CZhPVZdj.js → InsightsSection-BrjpMz4X-CQnyuoM5.js} +2 -2
  77. package/dist/assets/{IntegrationsSettingsPage-Ce3RYvgj-DkQkGcVD.js → IntegrationsSettingsPage-BEBtsJ8z-CpdXXLPE.js} +2 -2
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-Dl6FL0Lc-CeTGQl65.js → InternationalWireSwiftDetailsPage-DqTA5UPe-Dh2m_ClR.js} +1 -1
  79. package/dist/assets/{InternationalWireVerificationPage-MYSltOya-ChmzW4fF.js → InternationalWireVerificationPage-CGLyTJOX-CgqcwWhe.js} +1 -1
  80. package/dist/assets/{InviteFormPage-C0ezbQfC-zaOHUuBq.js → InviteFormPage-CHZVhrof-C1BLULVh.js} +1 -1
  81. package/dist/assets/{InvitePageListView-SMhlCNKA-pNiCbfR5.js → InvitePageListView-B0aN2fz0-CXq89Ggq.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-Dna0gg0J-alegwu6Z.js → InvitePeoplePage-DLPupvdi-QL22x-_S.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-QGU5U32X-B3PQnhTF.js → InvoiceUploadSection-COIpUGEB-BbbQUA3q.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-jai5Nd4c-BfIWPw2C.js → IssueChargeCardPage-6LWMwuaq-9nL_K9SN.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-cvWoRExB-u9I1yfA6.js → LabeledAddressValue-BOPQCQtK-6Ctaq2uZ.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-BewnvHGP-DjW6JnAq.js → LabeledAddressValueField-DxybAWPO-C8g5Q5Mh.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-DFKeD5HK-CdGhkX3l.js → LabeledControlledCheckBoxField-BSciMX7_-DE5GxjWa.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-nc8iZ1C1-MhnCqODk.js → LabeledCreatableSingleSelectField-q23ARfG8-CHK3wFhd.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-DmRNRSkb-CXjo-H6x.js → LabeledDocumentField-Icg5_obX-Dhu5oRPx.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-BP1jmZf7-C9V3iWtU.js → LabeledDropDownFormattedTextField-BiJOzT5B-mztVwrkZ.js} +1 -1
  91. package/dist/assets/{LabeledText-CIupsEGL-CntLICmG.js → LabeledText-Tn7u-Ek3-kHR2OkPB.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CeZEGuNW-PKKEd4h3.js → LabeledUserSingleSelectWithSubtitlesField-B_MWazM_-C56dsjd7.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-CDmiz3py-BKOa8CSX.js → LabeledZeniRolesDropDownField-DyCxNVQD-BPCdN2r2.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-BtUXXguK-CkI7dWOM.js → LinkJETransactionPage-NXVaaeQn-BpSun53t.js} +2 -2
  95. package/dist/assets/{LockCardPage-TzEwLGD1-BMDbMEzr.js → LockCardPage-DFFQF_XE-BFlJ9UKK.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-BWD6Kz-D-Dt8WY0Kf.js → LowBalancePopup-T5Ms2v-E-BQ4WCPPF.js} +1 -1
  97. package/dist/assets/MagicLinkACHDetailsPage-DtxKOlmX-0863GAuu.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-C7DsI3GD-D5Dxo8vU.js +1 -0
  99. package/dist/assets/MagicLinkInternationalWireDetailsPage-BQtq93Cv-mQxkDvCy.js +1 -0
  100. package/dist/assets/{MagicLinkSuccessPage-DQAUDzEV-DlTJx_bf.js → MagicLinkSuccessPage-BU8oXuny-B0XijyZh.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-JcGSlbn4-Dj4t5Fz6.js → MagicLinkTitleSection-kbY8yTTa-Dn-LABVB.js} +1 -1
  102. package/dist/assets/MailingDetailsSection-CMekdUCQ-D6VV7KFJ.js +21 -0
  103. package/dist/assets/{Menu-B05IRjpP-BhJtN8lL.js → Menu-DTdVYIrC-BgV_8qov.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-D2a7LgLg-j2LsZ1Ah.js → MyBankConnectionsSettingsPage-B67G0-7Z-BU9I3M_U.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-pDexjhqy-tCtgPjWb.js → MyPendingActivationChargeCardListPage-Cbap6Vpr-CMtgu-Ia.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-CRkrD2Bn-CcTXJl9y.js → MyProfileSettingsPage-TqtGXk0G-C5zioJrw.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-9HjZDzt5-DEXh3IFe.js → NavBarWithPicker-C4_SW0nA-C0GnDmGd.js} +1 -1
  108. package/dist/assets/{NavigationArrow-CgBj8o4H-D5s9b1YB.js → NavigationArrow-6jp6I9fp-CnBvKiHR.js} +1 -1
  109. package/dist/assets/{NavigationDots-BcSXYcwF-Cczng_71.js → NavigationDots-BSjG6OlY-BrwTxyv0.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-Dv9JrWDT-Bt8bwJ69.js → NewGlobalMerchantPage-BXM36kwh-CpDwRLSC.js} +1 -1
  111. package/dist/assets/{NoDataChart-tkUQHi-b-DZbAkxZ7.js → NoDataChart-CRhOisS1-COtAQCUj.js} +1 -1
  112. package/dist/assets/{NoDataTable-DHZ1gQeV-BbFx8lrK.js → NoDataTable-bIZY56VS-CN217muV.js} +1 -1
  113. package/dist/assets/{NotFoundPage-D59UVi8i-B4bV_ayL.js → NotFoundPage-Y4UqiUrL-B4YsYETt.js} +7 -7
  114. package/dist/assets/{NotificationSettingsPage-xVOogGxf-DJDQL-Sy.js → NotificationSettingsPage-Ct1wYM98-B_bcsz6g.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-CkDLXlK_-BPCzXUat.js → NotificationsListConfig-tD8IFVDs-ULU_nTGm.js} +1 -1
  116. package/dist/assets/{NotificationsPage-C8zx5kJx-CHZfhnLZ.js → NotificationsPage-C8PlG40Q-5AviDmKP.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-BaUEnLMo-CDWdSOLP.js → OpExByVendorPage-B5dz3g_I-D-sfcCoC.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-Daz3A7cI-BvpaBCAg.js → OverlayContainerPage-Daz3A7cI-BbvZjeSQ.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-BKWEOfwP-BP5W9RRw.js → PandLWithForecastPage-BzeV5E9J-DYpR0NHu.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Ddm0Q_3J-lFZuZpft.js → PaymentAccountSetupBillingAddressSection-C7ucXP-C-jaxMZozI.js} +1 -1
  121. package/dist/assets/{PeoplePage-ChBsx1YC-CMrxjBM5.js → PeoplePage-Di9LbUPG-gazTpQwX.js} +1 -1
  122. package/dist/assets/{Preview-BJlkYk4_.js → Preview-Blj_5IQY.js} +1 -1
  123. package/dist/assets/{ProductsCarousel-CaOQupY4-Cu3DJwCX.js → ProductsCarousel-IX34mwaP-K798zKfC.js} +1 -1
  124. package/dist/assets/{PromoBaseCards-DeJ4J5Lp-e7atVcj5.js → PromoBaseCards-DKl5hmY7-DFLcHPib.js} +1 -1
  125. package/dist/assets/{QBOConnectionDialog--nz5v12t-Chf_IKXr.js → QBOConnectionDialog-CFgV4ltt-CYpBxArF.js} +1 -1
  126. package/dist/assets/{QBOSetupSection-DQTH1dAT-BJAvF6ln.js → QBOSetupSection-3Igwysxj-sm9A6uU9.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BottOscg-Bt4k5jhg.js → ReimbursementApprovalRuleDetailPage-gUzCi41q-CGYjTbGQ.js} +3 -3
  128. package/dist/assets/{ReimbursementApprovalRulesPage-B46nrYDg-DzFdIkG-.js → ReimbursementApprovalRulesPage-CUQt2z6s-m3DmX-q3.js} +1 -1
  129. package/dist/assets/{ReimbursementDetailPage-DvSn2LUG-CB3VUQyQ.js → ReimbursementDetailPage-CgwRpLnh-BKKRl5XL.js} +1 -1
  130. package/dist/assets/{ReimbursementPromoPage-DRItpn0n-Cak4ocKY.js → ReimbursementPromoPage-BxBAhFM1-CCmdLSng.js} +1 -1
  131. package/dist/assets/{ReimbursementSetUpPage-CRnE1XYI-BqgLXo1n.js → ReimbursementSetUpPage-CP8WtKvQ-BzwYqD-v.js} +4 -4
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C6Cn3AOg-CihJ6l3b.js → ReimbursementsBulkReviewDrawerPage-Ir7LV3Qg-FmB-IcoK.js} +1 -1
  133. package/dist/assets/{ReloadCard-CRQf0INS-gD-f0T0E.js → ReloadCard-DLKVg3Sx-CJGjLDvX.js} +1 -1
  134. package/dist/assets/{ReportTableViewSelector-Dj9qmDS0-DoYBZUZ6.js → ReportTableViewSelector-BlpUjTMl-BDDVFcAy.js} +1 -1
  135. package/dist/assets/{ReportsPage-BJmkDtu3-B3jITcDv.js → ReportsPage-D-4SKTVF-1DspK86K.js} +5 -5
  136. package/dist/assets/{RevenueChart-LvTct9qg-D8P6KpT1.js → RevenueChart-C3cckydL-g0yPIBMk.js} +1 -1
  137. package/dist/assets/{ReviewDetailsPage-CDWKsdgl-5TmUOBd_.js → ReviewDetailsPage-Df882foz-CxLlFw3j.js} +2 -2
  138. package/dist/assets/{ReviewOverlay-Bh8LAnRM-CijIHXs6.js → ReviewOverlay-n3lZIztC-BaYE0CrF.js} +1 -1
  139. package/dist/assets/{RoleWithToolTip-BHHwWcYs-CKCMMtSI.js → RoleWithToolTip-jGxjGCFo-BZAgNS7O.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-C_nki9xG-DYaDxqOc.js → ScheduleDetailsFixedAssetsPage-cVGyXDC1-4W97BSmP.js} +3 -3
  141. package/dist/assets/{ScheduleDetailsPage-BXmAqbuh-Ds1ow-b7.js → ScheduleDetailsPage-Dcl5GREY-CSgH86CC.js} +1 -1
  142. package/dist/assets/{ScheduleSequenceTable-BePVgFIB-BFq2oleG.js → ScheduleSequenceTable-CkqvmnzR-BkWT4A03.js} +1 -1
  143. package/dist/assets/{ScreenRoutes-GYx8ZR27.js → ScreenRoutes--Xu4aTei.js} +1 -1
  144. package/dist/assets/{SetUpAccountSection-B1mXaFmw-Bqwkop-y.js → SetUpAccountSection-bKk_0Pau-WnVMpA_D.js} +1 -1
  145. package/dist/assets/SignIn-BZXzRb1K-BrEU8WAx.js +448 -0
  146. package/dist/assets/{SignInScreen-DMwMCG9P.js → SignInScreen-DgTeNXoF.js} +1 -1
  147. package/dist/assets/{SpendManagementListViewPage-D-XwxN9o-Cnh30Orw.js → SpendManagementListViewPage-jdvSYQ4J-DsXAHxjb.js} +3 -3
  148. package/dist/assets/{SpendManagementPerTabPage-CF7D2umh-BDSqJ_qs.js → SpendManagementPerTabPage-BlyFIn6o-DJWoY1io.js} +1 -1
  149. package/dist/assets/{SpendManagementSection-CIqYxYxX-C_Ft2uxq.js → SpendManagementSection-Dzlokoym-2kDboE_-.js} +1 -1
  150. package/dist/assets/StatementItem-BMV39A0D-CK6a43sV.js +31 -0
  151. package/dist/assets/{StatementsPage-CB8LocUZ-D__0esHw.js → StatementsPage-Cw6GRd81-DnrYrFIX.js} +1 -1
  152. package/dist/assets/{StatusSwitcher-DetjWSRH-ClE_X_wX.js → StatusSwitcher-CcLiXtx4-Bk8L4YH5.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-DNqrmpKa-BobpQ5zG.js → SubTabSwitcher-zpnLoSBy-Dt5pYptL.js} +1 -1
  154. package/dist/assets/{SummaryCard-CxlxmBvk-Cg9XbfeP.js → SummaryCard-C2KHXXwg-B46OJl_E.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-zHTW1LJ--zNfzy78X.js → TaskManagementPage-C3M_HCXR-Dmk36h9D.js} +1 -1
  156. package/dist/assets/{TimeRangeSwitcher-8D64-X4u-BuyINl3m.js → TimeRangeSwitcher-COHAPH9b-Duk9Ni0x.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcher-YicRGCkf-DdRTJ8ZO.js → TimeframeSwitcher-5ql0bSzz-PyYhkmzr.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcherWithToggle-mP6ezXyM-DyP-pynp.js → TimeframeSwitcherWithToggle-BXSkHN5Y-CXXTcEDU.js} +3 -3
  159. package/dist/assets/{TopExCard-BDEoKFUO-BVpgu9GN.js → TopExCard-BrodwfJq-Cb6RgMjA.js} +10 -10
  160. package/dist/assets/{TopExDetailPage-CLUf9sHg-qa7tyQqC.js → TopExDetailPage-B8-Zzr1B-uipHxmei.js} +8 -8
  161. package/dist/assets/{TransactionDetailPage-C-GKDIp2-BdGgljwI.js → TransactionDetailPage-D8v3KPrb-DUtpwjHc.js} +1 -1
  162. package/dist/assets/{TransactionList-BqQVYWs_-DNijPXIq.js → TransactionList-DMb2xYOV-B2oFoO-E.js} +1 -1
  163. package/dist/assets/{TransactionListBig-CDgdq8hU-Bskrx-MI.js → TransactionListBig-dUBjAacV-Bmm-sJh2.js} +5 -5
  164. package/dist/assets/{TransactionListPage-CyGTX1pW-DvPgD5Sm.js → TransactionListPage-x0r04hx4-CX-3Zldl.js} +2 -2
  165. package/dist/assets/{TransactionVendorDetailPage-NKocfHyN-DNhYCQWS.js → TransactionVendorDetailPage-BqjeDf6Q-CKKZt-sE.js} +1 -1
  166. package/dist/assets/{TransferDrawerPage-qNh4Fww2-DIXnm2LT.js → TransferDrawerPage-LppLtT6A-UVTq-XXy.js} +1 -1
  167. package/dist/assets/{TreasuryOverviewPage-D1RQYkoX-DM6UEUbi.js → TreasuryOverviewPage-DNoQLXPn-I3GX0kn0.js} +9 -9
  168. package/dist/assets/{TreasuryPromoPage-najiDjYG-D2mn7FJp.js → TreasuryPromoPage--MgysW-J-C4qW5Hjb.js} +1 -1
  169. package/dist/assets/{TreasuryStatementsPage-CRR-Df5x-B3YvHLgx.js → TreasuryStatementsPage-DRPB8HzF-Us1El1nE.js} +1 -1
  170. package/dist/assets/{TreasuryTaxLetterPage-vKXs7eCx-DUpsYipw.js → TreasuryTaxLetterPage-BeeNFRtm-BNRt42uj.js} +1 -1
  171. package/dist/assets/{TrendChart-DtubLSsW-qE4-f7Bj.js → TrendChart-C7DgNHh6-DWSLEK7h.js} +1 -1
  172. package/dist/assets/{TrendWithTransactions-DB5hmoGk-DSVigW2k.js → TrendWithTransactions-CpQPkCN4-CjThbvYV.js} +1 -1
  173. package/dist/assets/{UncategorizedAccountsMappingPage-ldBfy4n9-CvpMxcT7.js → UncategorizedAccountsMappingPage-f9xrtur3-wJ4bdRvL.js} +5 -5
  174. package/dist/assets/{UnitIntegrationPage-DPHlAm3E-D0_EYePL.js → UnitIntegrationPage-SiS8CA0g-LkCGZb5A.js} +1 -1
  175. package/dist/assets/{UploadAdditionalDocumentOverlay-C2kqDNTp-BQNyaPQp.js → UploadAdditionalDocumentOverlay-Djnl6dYH-Cb6cznud.js} +1 -1
  176. package/dist/assets/{Vendor2FAPopup-_DrX-sZ2-Byp_MVd3.js → Vendor2FAPopup-CYwD3yQ8-DteE76iF.js} +1 -1
  177. package/dist/assets/VendorACHDetailsPage-ChZp1Db0-m74ooXZH.js +1 -0
  178. package/dist/assets/{VendorDetailPage-dh7UBGAL-CoEBMyw2.js → VendorDetailPage-CG0SxxIa-CErJAoDL.js} +86 -86
  179. package/dist/assets/VendorDomesticWireDetailsPage-Dfawpwuo-XWP9GiBd.js +1 -0
  180. package/dist/assets/{VendorFiling1099EditablePage-CGEA0mkh-_Cjo4ySS.js → VendorFiling1099EditablePage-DQs8RP_2-Buxj_PiL.js} +1 -1
  181. package/dist/assets/{VendorFirstReviewPage-BGktoc9W-BgcPM6Uo.js → VendorFirstReviewPage-XaE6ddOQ-BWMGU3Tl.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireDetailsPage-DidLa6Yx-BCgl9-MR.js → VendorInternationalWireDetailsPage-CT75sZ0O-DqLwSNE1.js} +1 -1
  183. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CBKqnkvK-D4x_F8qG.js +1 -0
  184. package/dist/assets/{VendorsAccountsSection-BtjrsclQ-C0gCUVyM.js → VendorsAccountsSection-C9NkRN0p-CxSkczTx.js} +1 -1
  185. package/dist/assets/{VerifyDevice-DkibYc6v-CXmOAARZ.js → VerifyDevice-c6uTgDIl-DXrax5KK.js} +1 -1
  186. package/dist/assets/{VideoPlayer-C8VeeJIx-CCPJnDsQ.js → VideoPlayer-BgTXP1p7-DSVVGcbk.js} +2 -2
  187. package/dist/assets/{VideoPopup-aA7dkXbZ-vpwP4W2W.js → VideoPopup-BD0vmbkL-B1pshKUR.js} +4 -4
  188. package/dist/assets/{WarningsDrawerPage-CA0EogPY-BBcekFqB.js → WarningsDrawerPage-BS-TFvBs-CxQBdq8b.js} +1 -1
  189. package/dist/assets/{ZeniAccountDetailPage-Z7ZXcJ98-CFSyuPte.js → ZeniAccountDetailPage-CSVQF6vO-BPYfZJgl.js} +1 -1
  190. package/dist/assets/{ZeniAccountListViewPage-CllLl65J-glKaM01N.js → ZeniAccountListViewPage-BVGsjSB2-1PFcObmH.js} +1 -1
  191. package/dist/assets/{ZeniAccountNavBarPieces-CHXbVcQE-CiczUJNV.js → ZeniAccountNavBarPieces-B1l8Hjdg-DxwPdu4w.js} +1 -1
  192. package/dist/assets/{ZeniAccountPromoPage-DAtyHUfj-C_xB6viA.js → ZeniAccountPromoPage-s-QGT-pZ-DicXAF4k.js} +1 -1
  193. package/dist/assets/{ZeniAccountSetupPage-Cy6_fMVK-ousECeIh.js → ZeniAccountSetupPage-CqXokSq4-ZNS-0xul.js} +1 -1
  194. package/dist/assets/{ZeniCopyright-D5JfDH77-94Q62ubQ.js → ZeniCopyright-_f5jw1U0-D4XdQ2SF.js} +1 -1
  195. package/dist/assets/{ZeniTransferAmountSlider-Bk2gg7DY-B7GGO8c9.js → ZeniTransferAmountSlider-yvd98l69-BEYj6C-O.js} +1 -1
  196. package/dist/assets/{add-to-wallet-DgdBD8_G-DgOR9SZD.js → add-to-wallet-DgdBD8_G-BUzE53FC.js} +1 -1
  197. package/dist/assets/{analytics-BBQGK0ON.js → analytics-CudETrrD.js} +1 -1
  198. package/dist/assets/{analyticsHelper-Cnk2OUU2-ibgkPVjO.js → analyticsHelper-BvohFLdK-Dy4GAyAC.js} +1 -1
  199. package/dist/assets/{analyticsHelper-BaekG9Nx.js → analyticsHelper-DO-eHSEi.js} +1 -1
  200. package/dist/assets/{arrow-south-east-round-PEovUgvH-UA9PyeH_.js → arrow-south-east-round-PEovUgvH-QknSTNl-.js} +1 -1
  201. package/dist/assets/{auto-transfer-rule-mbafm5D3-B82gnpmQ.js → auto-transfer-rule-mbafm5D3-Bj4AnUyI.js} +1 -1
  202. package/dist/assets/{chartTypes-CMIndIax-DT8rBK_x.js → chartTypes-h1GkAvwh-DeXrp29h.js} +1 -1
  203. package/dist/assets/{commonDimensions-DSS8XDHZ-CYH5L85f.js → commonDimensions-7B20r1RL-BsLeN16e.js} +1 -1
  204. package/dist/assets/{constants-BACNgsOZ.js → constants-qsYvqsp_.js} +1 -1
  205. package/dist/assets/{core-CeETxMam.js → core-CSvDBKbK.js} +1 -1
  206. package/dist/assets/{dash.all.min-0VJS93lH.js → dash.all.min-CXX6UwCX.js} +1 -1
  207. package/dist/assets/{detailCommon-DWd4agOz-Cbc42OXo.js → detailCommon-C28aeDGm-DXaZUKe3.js} +5 -5
  208. package/dist/assets/{downloadPdf-BCoq8NLc-BHyplGhh.js → downloadPdf-D1MhyCE3-Bl_kVnuy.js} +1 -1
  209. package/dist/assets/{empty-BZ_oISQJ.js → empty-BdJ2ubLR.js} +1 -1
  210. package/dist/assets/{empty-BfYLVmMJ.js → empty-BlN3pbr0.js} +1 -1
  211. package/dist/assets/{epic-DjSfInN0.js → epic-DoNCnWgY.js} +1 -1
  212. package/dist/assets/{gift-box-Cmt9OgIZ-CGKB1jme.js → gift-box-Cmt9OgIZ-CMjOsL5s.js} +1 -1
  213. package/dist/assets/{graphic-no-data-l-DU4J8fDt-DK0zdKjX.js → graphic-no-data-l-DU4J8fDt-P_uJxgqv.js} +1 -1
  214. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CI28iX2P.js → graphic-no-data-net-burn-l-CzmycA0m-DX8wy8i8.js} +1 -1
  215. package/dist/assets/{handshake-BPg58FML-BNAvf_Ce.js → handshake-BPg58FML-Cvq-V9c-.js} +1 -1
  216. package/dist/assets/{index-BFH76pPn.js → index-B3_vBBYe.js} +1 -1
  217. package/dist/assets/{index-1VfEZ1Gz.js → index-BRDgVxUL.js} +561 -561
  218. package/dist/assets/{index-DwywdP6e.js → index-B_ST3N1m.js} +1 -1
  219. package/dist/assets/{index-Dqzx8hMk.js → index-BmlsHaIe.js} +1 -1
  220. package/dist/assets/{index-CwSI7eqB.js → index-Bmog4VKy.js} +1 -1
  221. package/dist/assets/{index-CBJAVt7a.js → index-C_7vQmrg.js} +1 -1
  222. package/dist/assets/{index-B4B93LK6.js → index-DTPFP43Z.js} +1 -1
  223. package/dist/assets/{lexical-B3ldBehs.js → lexical-BmM_-J9_.js} +1 -1
  224. package/dist/assets/{liveblocks-C14gIpGs.js → liveblocks-B7l6-lVT.js} +1 -1
  225. package/dist/assets/{lottie-D8T-stDd.js → lottie-Cx9dNUMI.js} +1 -1
  226. package/dist/assets/{mapLoadingInProgressToTreeNode-Dgkep7PZ-I9xziQoM.js → mapLoadingInProgressToTreeNode-B5fs_QGb-1RRRqxAS.js} +1 -1
  227. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DF-WWO6U-Dp5WLs5r.js → mapSectionWithAcOnlyToTreeNode-DtwKYRnC-BG8zzg0l.js} +1 -1
  228. package/dist/assets/mapSpacerToTreeNode-BufNagSk-BerYj-N8.js +1 -0
  229. package/dist/assets/{mapTimeframeBalancesToTreeNode-CBfPdKyR-C3tNzgVY.js → mapTimeframeBalancesToTreeNode-BHbBvkxK-Sg9H38Nv.js} +1 -1
  230. package/dist/assets/mapTimeframeBalancesToTreeNode-BOahnk__-Bv8a8zZk.js +1 -0
  231. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Dscp66eK-Ca65g1u9.js +1 -0
  232. package/dist/assets/{mui-XgHtLv9t.js → mui-Cm3rVrD-.js} +1 -1
  233. package/dist/assets/{page-detail-CWX5S47F-DsrWzhgT.js → page-detail-CWX5S47F-kxZACSVt.js} +1 -1
  234. package/dist/assets/{radio-default-CiSgisfh-Bsr2gTRV.js → radio-default-CiSgisfh-rhwWstOk.js} +1 -1
  235. package/dist/assets/{react-C7sphqM3.js → react-Byv2U7h7.js} +1 -1
  236. package/dist/assets/{react-CZlRv3QX.js → react-BzJpcjr6.js} +1 -1
  237. package/dist/assets/{react-CeFScvvD.js → react-CPFSKMtT.js} +1 -1
  238. package/dist/assets/{react-2b1NYDOf.js → react-CgC6TIq9.js} +2 -2
  239. package/dist/assets/{react-jJQTuZbN.js → react-CkyQ_f7y.js} +1 -1
  240. package/dist/assets/{react-Dm40MgCX.js → react-DIbjB6T0.js} +1 -1
  241. package/dist/assets/{react-CB7OYEMc.js → react-h0mTaAoM.js} +1 -1
  242. package/dist/assets/{react-BmQlaNt9.js → react-yAx4DBuZ.js} +1 -1
  243. package/dist/assets/{recharts-DBix2kBp.js → recharts-CJP-6HgW.js} +1 -1
  244. package/dist/assets/{sentry-VCAzTDmi.js → sentry-BFGzyFr-.js} +1 -1
  245. package/dist/assets/{shield-DOlUxcFf-D0v76Uk3.js → shield-DOlUxcFf-DHIE85xb.js} +1 -1
  246. package/dist/assets/toCOABalancesWithID-DScSc4rG-B7GkAgAH.js +1 -0
  247. package/dist/assets/{toChartData-DuH-6FTe-CWKDasR_.js → toChartData-BYQCR1Q4-DQjt-eqe.js} +1 -1
  248. package/dist/assets/{transaction-placeholder-CpOwZAMG-CDqBJeP5.js → transaction-placeholder-CpOwZAMG-CRJ-hgUa.js} +1 -1
  249. package/dist/assets/{uploadAttachment-BkoEZkOd-BiFyh28x.js → uploadAttachment-Cs2BAs2F-B7REmQX6.js} +1 -1
  250. package/dist/assets/{uploadReceipts-CPw64UYa-CWKWHJjU.js → uploadReceipts-CPw64UYa-MigMlgVj.js} +1 -1
  251. package/dist/assets/{url-C8zoIoT4.js → url-CN0vl3oZ.js} +1 -1
  252. package/dist/assets/{url-Bi-s7Ipz.js → url-Ql81cO0i.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-CRSIFNOy.js → useLongPress-GCK2COYQ-CLIsgKqx.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-DB-RQmMs.js → usp-line-BBd1wKwW-BMJkTVjT.js} +1 -1
  255. package/dist/assets/{utils-C6Cd8yMa.js → utils-DG7RBBiT.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-CQJq5Qi5.js → zeni-epic-state-C--9cPPx.js} +3 -3
  257. package/dist/index.html +1 -1
  258. package/package.json +2 -2
  259. package/dist/assets/AccountInfoPage-CITo61GF-CS2OsQNl.js +0 -18
  260. package/dist/assets/CustomerOnboardingContainerPage-DOZu4r0V-BVwImPN3.js +0 -1
  261. package/dist/assets/MagicLinkACHDetailsPage-CZQ8tUTD-Bx-FJDSd.js +0 -1
  262. package/dist/assets/MagicLinkDomesticWireDetailsPage-DHZY9sKi-Ch68uRBG.js +0 -1
  263. package/dist/assets/MagicLinkInternationalWireDetailsPage-BJtMjz1M-C1R90UdM.js +0 -1
  264. package/dist/assets/MailingDetailsSection-Ch5XvR8o-DY-bODbC.js +0 -21
  265. package/dist/assets/SignIn-B8qL3jmy-rG5LC_5F.js +0 -463
  266. package/dist/assets/StatementItem-Cj9_LMwP-BhabUnoX.js +0 -31
  267. package/dist/assets/VendorACHDetailsPage-ims8AKLH-BH1g_TY7.js +0 -1
  268. package/dist/assets/VendorDomesticWireDetailsPage-C_28sDKW-nhppTuB2.js +0 -1
  269. package/dist/assets/VendorInternationalWireSwiftDetailsPage-YqE835gy-BEp-3Yms.js +0 -1
  270. package/dist/assets/mapSpacerToTreeNode-CumKhTYV-Ce9e4hW2.js +0 -1
  271. package/dist/assets/mapTimeframeBalancesToTreeNode-BttFKWAb-Ll-SiCTs.js +0 -1
  272. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BREIWW8N-BE3WT0kC.js +0 -1
  273. package/dist/assets/toCOABalancesWithID-v28KjzUb-C7PU3g60.js +0 -1
@@ -1,4 +1,4 @@
1
- import{V as o,C as M,d as T,q as v,bz as ne,F as c,n as re,aM as A,m as ie,b as ae,y as W,o as s,aA as ce,aS as le,D as de,cz as ge,bw as me,c as $,cA as pe,aQ as he,aR as fe,b8 as ue,bI as xe}from"./index-1VfEZ1Gz.js";import{a as F}from"./sentry-VCAzTDmi.js";import{n as r}from"./mui-XgHtLv9t.js";import{R as we}from"./NavBarWithPicker-9HjZDzt5-DEXh3IFe.js";import{m as Se}from"./analyticsHelper-Cnk2OUU2-ibgkPVjO.js";import{M as je}from"./TimeframeSwitcherWithToggle-mP6ezXyM-DyP-pynp.js";import{I as be,a as ye}from"./CollapsableReportTable-CvXUxopt-f_pwfY1A.js";import{M as E}from"./usp-line-BBd1wKwW-DB-RQmMs.js";import{EX as $e,EY as Ce}from"./zeni-epic-state-CQJq5Qi5.js";import{D as Pe,T as ke,C as ze}from"./mapSectionWithAcOnlyToTreeNode-DF-WWO6U-Dp5WLs5r.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-CBfPdKyR-C3tNzgVY.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";import"./TimeframeSwitcher-YicRGCkf-DdRTJ8ZO.js";import"./AccountRow-XnGMYfcj-DObYPAJJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="80f854bc-0206-467c-a7ba-6044fa25d2cc",e._sentryDebugIdIdentifier="sentry-dbid-80f854bc-0206-467c-a7ba-6044fa25d2cc")}catch{}})();const q="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",H="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ve=r.div`
1
+ import{V as o,C as M,d as T,q as v,bz as ne,F as c,n as re,aM as A,m as ie,b as ae,y as W,o as s,aA as ce,aS as le,D as de,cz as ge,bw as me,c as $,cA as pe,aQ as he,aR as fe,b8 as ue,bI as xe}from"./index-BRDgVxUL.js";import{a as F}from"./sentry-BFGzyFr-.js";import{n as r}from"./mui-Cm3rVrD-.js";import{R as we}from"./NavBarWithPicker-C4_SW0nA-C0GnDmGd.js";import{m as Se}from"./analyticsHelper-BvohFLdK-Dy4GAyAC.js";import{M as je}from"./TimeframeSwitcherWithToggle-BXSkHN5Y-CXXTcEDU.js";import{I as be,a as ye}from"./CollapsableReportTable-CrR91Kpi-5o5TUvM_.js";import{M as E}from"./usp-line-BBd1wKwW-BMJkTVjT.js";import{EX as $e,EY as Ce}from"./zeni-epic-state-C--9cPPx.js";import{D as Pe,T as ke,C as ze}from"./mapSectionWithAcOnlyToTreeNode-DtwKYRnC-BG8zzg0l.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BHbBvkxK-Sg9H38Nv.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";import"./TimeframeSwitcher-5ql0bSzz-PyYhkmzr.js";import"./AccountRow-pJ59k4-J-byrgsZ5o.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c4a33e7f-b05c-4ecf-a7c9-eb08400454ac",e._sentryDebugIdIdentifier="sentry-dbid-c4a33e7f-b05c-4ecf-a7c9-eb08400454ac")}catch{}})();const q="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",H="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{M as pe,aN as Ne,b as te,o as u,p as H,q as le,V as i,bP as Be,d as ke,cO as Fe,aS as ae,F as ue,y as oe,bu as Ve,bS as qe,ak as Re,aO as He,ad as me,c as Ke,gO as Ge,al as Je,a as Ze}from"./index-1VfEZ1Gz.js";import{w as l,a as O}from"./sentry-VCAzTDmi.js";import{n as v}from"./mui-XgHtLv9t.js";import{P as p}from"./core-CeETxMam.js";import{F as Ye}from"./SetUpAccountSection-B1mXaFmw-Bqwkop-y.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f0739093-b5bb-4857-8e99-0f19e3272e87",t._sentryDebugIdIdentifier="sentry-dbid-f0739093-b5bb-4857-8e99-0f19e3272e87")}catch{}})();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{M as pe,aN as Ne,b as te,o as u,p as H,q as le,V as i,bP as Be,d as ke,cO as Fe,aS as ae,F as ue,y as oe,bu as Ve,bS as qe,ak as Re,aO as He,ad as me,c as Ke,gO as Ge,al as Je,a as Ze}from"./index-BRDgVxUL.js";import{w as l,a as O}from"./sentry-BFGzyFr-.js";import{n as v}from"./mui-Cm3rVrD-.js";import{P as p}from"./core-CSvDBKbK.js";import{F as Ye}from"./SetUpAccountSection-bKk_0Pau-WnVMpA_D.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="24e76e2c-5a29-4569-9620-820aec64e326",t._sentryDebugIdIdentifier="sentry-dbid-24e76e2c-5a29-4569-9620-820aec64e326")}catch{}})();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"},ye="[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)===ye,c=Object.prototype.toString.call(r)===ye;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 P=e,w=r,S=function(A){return t(P[A],w[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.",ve=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 ve(a,r)})};var n=ve(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,P=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(w){w&&g&&P(w)}):s.tag==="sync"&&!o.stripe&&P(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,P=o.onBlur,w=o.onFocus,S=o.onReady,j=o.onChange,A=o.onEscape,B=o.onClick,F=o.onLoadError,V=o.onLoaderStart,D=o.onNetworksChange,$=o.onConfirm,G=o.onCancel,M=o.onShippingAddressChange,N=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),y=T[0],W=T[1],L=l.useRef(null),q=l.useRef(null);k(y,"blur",P),k(y,"focus",w),k(y,"escape",A),k(y,"click",B),k(y,"loaderror",F),k(y,"loaderstart",V),k(y,"networkschange",D),k(y,"confirm",$),k(y,"cancel",G),k(y,"shippingaddresschange",M),k(y,"shippingratechange",N),k(y,"change",j);var J;S&&(e==="expressCheckout"?J=S:J=function(){S(y)}),k(y,"ready",J),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})},Z=null,Q=null,ee=null,yt=function(e){return function(){e(new Error("Failed to load Stripe.js"))}},vt=function(e,r){return function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))}},St=function(e){return Z!==null?Z:(Z=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=vt(r,n),Q=yt(n),a.addEventListener("load",ee),a.addEventListener("error",Q)}catch(c){n(c);return}}),Z.catch(function(r){return Z=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},Y,We=!1,De=function(){return Y||(Y=St(null).catch(function(e){return Y=null,Promise.reject(e)}),Y)};Promise.resolve().then(function(){return De()}).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 De().then(function(s){return Ct(s,r,a)})};const xt={containerHeight:new oe(656,720)},wt=v.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,bz as le,aM as a,bL as De,o as s,ci as Oe,cj as _e,m as U,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 Be,b1 as Ue,aA as H,cp as Ee,y as $,cq as Ke,cr as je,c as b,cs as ee,cb as N,a8 as Fe,ab as Ze,ct as qe,cu as Ge,aG as Je,ag as D,cv as Qe,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-1VfEZ1Gz.js";import{w as ce,a as v}from"./sentry-VCAzTDmi.js";import{n as i}from"./mui-XgHtLv9t.js";import{oV as Ie,bg as Q}from"./zeni-epic-state-CQJq5Qi5.js";import{P as Ce}from"./Menu-B05IRjpP-BhJtN8lL.js";import{T as Re}from"./RoleWithToolTip-BHHwWcYs-CKCMMtSI.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="444a3584-eb35-4116-a860-f82df8e46ff3",e._sentryDebugIdIdentifier="sentry-dbid-444a3584-eb35-4116-a860-f82df8e46ff3")}catch{}})();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)}],B=[{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:o,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Je(d==="off"?S:B));v.useEffect(()=>{const n=[...p];for(const r of n)r.key===o.sortKey?r.sortOrder=o.sortOrder:r.sortOrder="ascending";x(n)},[o.sortKey,o.sortOrder]);const h=(n,r)=>{let u=r;o.sortKey===n&&(u=r==="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:o.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:o.sortKey,headerdata:n,children:t.jsx(Qe,{width:12,height:12})})]}),t.jsx(at,{isVisible:o.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,bz as le,aM as a,bL as De,o as s,ci as Oe,cj as _e,m as U,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 Be,b1 as Ue,aA as H,cp as Ee,y as $,cq as Ke,cr as je,c as b,cs as ee,cb as N,a8 as Fe,ab as Ze,ct as qe,cu as Ge,aG as Je,ag as D,cv as Qe,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-BRDgVxUL.js";import{w as ce,a as v}from"./sentry-BFGzyFr-.js";import{n as i}from"./mui-Cm3rVrD-.js";import{oV as Ie,bg as Q}from"./zeni-epic-state-C--9cPPx.js";import{P as Ce}from"./Menu-DTdVYIrC-BgV_8qov.js";import{T as Re}from"./RoleWithToolTip-jGxjGCFo-BZAgNS7O.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="a85ba473-424c-4fff-a5a1-745257bd0f66",e._sentryDebugIdIdentifier="sentry-dbid-a85ba473-424c-4fff-a5a1-745257bd0f66")}catch{}})();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)}],B=[{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:o,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Je(d==="off"?S:B));v.useEffect(()=>{const n=[...p];for(const r of n)r.key===o.sortKey?r.sortOrder=o.sortOrder:r.sortOrder="ascending";x(n)},[o.sortKey,o.sortOrder]);const h=(n,r)=>{let u=r;o.sortKey===n&&(u=r==="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:o.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:o.sortKey,headerdata:n,children:t.jsx(Qe,{width:12,height:12})})]}),t.jsx(at,{isVisible:o.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 +1 @@
1
- import{a as h,w as n}from"./sentry-VCAzTDmi.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="1d26f613-20fc-4163-af3a-dc31a705189d",t._sentryDebugIdIdentifier="sentry-dbid-1d26f613-20fc-4163-af3a-dc31a705189d")}catch{}})();const c="64px",f={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:w,previewAriaLabel:u})=>{const[p,o]=h.useState(null);h.useEffect(()=>{!t||!a||!r||I({src:t,light:a,oEmbedUrl:r})},[t,a,r]);const I=async({src:e,light:i,oEmbedUrl:E})=>{if(n.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(f[e]){o(f[e]);return}o(null);const b=await(await fetch(E.replace("{url}",e))).json();if(b.thumbnail_url){const g=b.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),f[e]=g}},_=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},d=n.isValidElement(a),y={display:"flex",alignItems:"center",justifyContent:"center"},l={preview:{width:"100%",height:"100%",backgroundImage:p&&!d?`url(${p})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...y},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:c,width:c,height:c,position:d?"absolute":void 0,...y},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=n.createElement("div",{style:l.shadow,className:"react-player__shadow"},n.createElement("div",{style:l.playIcon,className:"react-player__play-icon"}));return n.createElement("div",{style:l.preview,className:"react-player__preview",tabIndex:w,onClick:v,onKeyDown:_,...u?{"aria-label":u}:{}},d?a:null,m||x)};var S=k;export{S as default};
1
+ import{a as h,w as n}from"./sentry-BFGzyFr-.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="1d26f613-20fc-4163-af3a-dc31a705189d",t._sentryDebugIdIdentifier="sentry-dbid-1d26f613-20fc-4163-af3a-dc31a705189d")}catch{}})();const c="64px",f={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:w,previewAriaLabel:u})=>{const[p,o]=h.useState(null);h.useEffect(()=>{!t||!a||!r||I({src:t,light:a,oEmbedUrl:r})},[t,a,r]);const I=async({src:e,light:i,oEmbedUrl:E})=>{if(n.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(f[e]){o(f[e]);return}o(null);const b=await(await fetch(E.replace("{url}",e))).json();if(b.thumbnail_url){const g=b.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),f[e]=g}},_=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},d=n.isValidElement(a),y={display:"flex",alignItems:"center",justifyContent:"center"},l={preview:{width:"100%",height:"100%",backgroundImage:p&&!d?`url(${p})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...y},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:c,width:c,height:c,position:d?"absolute":void 0,...y},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=n.createElement("div",{style:l.shadow,className:"react-player__shadow"},n.createElement("div",{style:l.playIcon,className:"react-player__play-icon"}));return n.createElement("div",{style:l.preview,className:"react-player__preview",tabIndex:w,onClick:v,onKeyDown:_,...u?{"aria-label":u}:{}},d?a:null,m||x)};var S=k;export{S as default};
@@ -1,4 +1,4 @@
1
- import{F as I,V as t,a7 as B,o as c,b$ as H,aZ as N,c as U,d4 as Y,ap as G,ak as T,d5 as J,p as v}from"./index-1VfEZ1Gz.js";import{a as $}from"./sentry-VCAzTDmi.js";import{n as i}from"./mui-XgHtLv9t.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4e98b996-382c-4239-8cda-9e07b20cce96",e._sentryDebugIdIdentifier="sentry-dbid-4e98b996-382c-4239-8cda-9e07b20cce96")}catch{}})();const u=I.getLocalizedStrings(),w={large:{labelComp:Y,title:G,subtitle:T,seeMoreLink:T}},V={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},r=V.large,Z=i.div`
1
+ import{F as I,V as t,a7 as B,o as c,b$ as H,aZ as N,c as U,d4 as Y,ap as G,ak as T,d5 as J,p as v}from"./index-BRDgVxUL.js";import{a as $}from"./sentry-BFGzyFr-.js";import{n as i}from"./mui-Cm3rVrD-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4e98b996-382c-4239-8cda-9e07b20cce96",e._sentryDebugIdIdentifier="sentry-dbid-4e98b996-382c-4239-8cda-9e07b20cce96")}catch{}})();const u=I.getLocalizedStrings(),w={large:{labelComp:Y,title:G,subtitle:T,seeMoreLink:T}},V={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},r=V.large,Z=i.div`
2
2
  width: ${e=>e.scale*r.width}px;
3
3
  height: ${e=>e.scale*r.height}px;
4
4
  overflow: hidden;
@@ -1,4 +1,4 @@
1
- import{q as m,V as r,d9 as b,da as v,db as y,bv as z,o as e,p as d,y as a,a as c,c as p}from"./index-1VfEZ1Gz.js";import{c as i,n as g,k as f}from"./mui-XgHtLv9t.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new o.Error().stack;h&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[h]="085a904d-3aff-4193-885a-93640eaa7dc0",o._sentryDebugIdIdentifier="sentry-dbid-085a904d-3aff-4193-885a-93640eaa7dc0")}catch{}})();const t={plasticCardMarginLeft:new a(p[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(p[2],13),businessTextBottom:new a(p[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(p[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(p[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(p[2],13),visaLogoBottom:new a(p[2],13)},u={businessText:new c("extraSmallRegular","largeRegular"),promoBusinessText:new c("tinyLight","tinyLight")},R=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(k,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(j,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(z,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},A=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(v,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},C=f`
1
+ import{q as m,V as r,d9 as b,da as v,db as y,bv as z,o as e,p as d,y as a,a as c,c as p}from"./index-BRDgVxUL.js";import{c as i,n as g,k as f}from"./mui-Cm3rVrD-.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new o.Error().stack;h&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[h]="085a904d-3aff-4193-885a-93640eaa7dc0",o._sentryDebugIdIdentifier="sentry-dbid-085a904d-3aff-4193-885a-93640eaa7dc0")}catch{}})();const t={plasticCardMarginLeft:new a(p[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(p[2],13),businessTextBottom:new a(p[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(p[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(p[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(p[2],13),visaLogoBottom:new a(p[2],13)},u={businessText:new c("extraSmallRegular","largeRegular"),promoBusinessText:new c("tinyLight","tinyLight")},R=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(k,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(j,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(z,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},A=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(v,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},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 b,F as r,V as n,bP as y,n as l,y as c,o as i,ap as w,ak as $,ae as P,bt as j,eI as v,c as t}from"./index-1VfEZ1Gz.js";import{n as o}from"./mui-XgHtLv9t.js";import"./sentry-VCAzTDmi.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./zeni-epic-state-CQJq5Qi5.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="63ba6a24-9c66-4302-8bf1-d5ff542e4293",e._sentryDebugIdIdentifier="sentry-dbid-63ba6a24-9c66-4302-8bf1-d5ff542e4293")}catch{}})();const s={containerPaddingTop:new c(t[5],t[7]),containerPaddingBottom:new c(t[5],t[5]),containerPaddingLeftRight:new c(t[6],t[11])},_=o.div`
1
+ import{q as b,F as r,V as n,bP as y,n as l,y as c,o as i,ap as w,ak as $,ae as P,bt as j,eI as v,c as t}from"./index-BRDgVxUL.js";import{n as o}from"./mui-Cm3rVrD-.js";import"./sentry-BFGzyFr-.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./zeni-epic-state-C--9cPPx.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="63ba6a24-9c66-4302-8bf1-d5ff542e4293",e._sentryDebugIdIdentifier="sentry-dbid-63ba6a24-9c66-4302-8bf1-d5ff542e4293")}catch{}})();const s={containerPaddingTop:new c(t[5],t[7]),containerPaddingBottom:new c(t[5],t[5]),containerPaddingLeftRight:new c(t[6],t[11])},_=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 I,F as u,V as i,n as O,o,y as a,p as c,fK as k,a as T,ae as _,bt as B,eI as D,fB as E,aS as h,ag as f,c as r}from"./index-1VfEZ1Gz.js";import{n}from"./mui-XgHtLv9t.js";import W from"./QBOConnectionDialog--nz5v12t-Chf_IKXr.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="201dc712-c6a2-43f6-82e8-ec3a249c304d",e._sentryDebugIdIdentifier="sentry-dbid-201dc712-c6a2-43f6-82e8-ec3a249c304d")}catch{}})();const l={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},q={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:y,companyName:$,updateQBOPopupState:w,handleOnConnectClick:b})=>{const s=I(),{qbo_connection:j}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:C}=j;return i.jsxs(G,{windowSize:s,children:[i.jsxs(A,{windowSize:s,children:[s==="small"?i.jsx(R,{children:d?i.jsx(J,{}):i.jsx(U,{})}):null,i.jsx(F,{windowSize:s,children:S})]}),i.jsxs(H,{windowSize:s,children:[i.jsxs(M,{windowSize:s,children:[i.jsxs(Q,{children:[i.jsx(V,{}),i.jsx(K,{windowSize:s}),i.jsx(L,{})]}),d?s!=="small"?i.jsx(m,{}):null:i.jsx(O,{variant:"primary",size:s!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>w(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(N,{children:v}),s==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:C})}):null]}),i.jsx(W,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:$,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>w(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(E,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new h(c.successDark),borderColor:new h(c.successDark)}})},G=n.div`
1
+ import{q as I,F as u,V as i,n as O,o,y as a,p as c,fK as k,a as T,ae as _,bt as B,eI as D,fB as E,aS as h,ag as f,c as r}from"./index-BRDgVxUL.js";import{n}from"./mui-Cm3rVrD-.js";import W from"./QBOConnectionDialog-CFgV4ltt-CYpBxArF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e780b5b0-19b0-4814-91c1-65353a8b9219",e._sentryDebugIdIdentifier="sentry-dbid-e780b5b0-19b0-4814-91c1-65353a8b9219")}catch{}})();const l={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},q={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:y,companyName:$,updateQBOPopupState:w,handleOnConnectClick:b})=>{const s=I(),{qbo_connection:j}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:C}=j;return i.jsxs(G,{windowSize:s,children:[i.jsxs(A,{windowSize:s,children:[s==="small"?i.jsx(R,{children:d?i.jsx(J,{}):i.jsx(U,{})}):null,i.jsx(F,{windowSize:s,children:S})]}),i.jsxs(H,{windowSize:s,children:[i.jsxs(M,{windowSize:s,children:[i.jsxs(Q,{children:[i.jsx(V,{}),i.jsx(K,{windowSize:s}),i.jsx(L,{})]}),d?s!=="small"?i.jsx(m,{}):null:i.jsx(O,{variant:"primary",size:s!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>w(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(N,{children:v}),s==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:C})}):null]}),i.jsx(W,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:$,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>w(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(E,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new h(c.successDark),borderColor:new h(c.successDark)}})},G=n.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{y as O,c as R,d as G,q as M,F as U,a8 as W,aN as X,aG as H,cB as J,V as s,bz as K,ab as Q,aO as Y,o as f}from"./index-1VfEZ1Gz.js";import{a as B}from"./sentry-VCAzTDmi.js";import{n as b}from"./mui-XgHtLv9t.js";import{b as Z,f as ee,o as L,l as $}from"./FollowStepsSection-9Bp032CO-BwvbM2x2.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./zeni-epic-state-CQJq5Qi5.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a42d300a-cfcb-42ce-aa56-8d5c3c83d7d5",e._sentryDebugIdIdentifier="sentry-dbid-a42d300a-cfcb-42ce-aa56-8d5c3c83d7d5")}catch{}})();const T="reimbursementApprovalRuleDetailPage",k="lowerBound",C="upperBound",v="steps",ae={footerPadding:new O(R[2],R[3])};function Ie({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:r=!0,hideUpperBoundField:o=!1,onBackClick:p,onApprovalRuleDataUpdated:h,onResetClick:N,onSaveRuleClick:j,onSaveRuleSuccess:A}){const E=G(),I=M(),l=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,g=te(e,t==="approval_create"&&!a),x=W({mode:"all",reValidateMode:"onChange",defaultValues:g}),c=e.remiSetupApproverViewUpdateData?.updateStatus,w=X(c?.fetchState),{upperBound:P}=g,{allApprovalRules:n,allAccountingClasses:F,remiSetupApproverViewUpdateData:u}=e;let m=n.length>1?n.length-1:0,y=n.length>0?n[m].criteria[0].range.min.amount:0;if(u!=null&&u.type==="approval_update"&&u.data!=null){const{approvalRuleId:i}=u.data;m=n.findIndex(d=>d.approvalRuleId===i),y=m>0?n[m-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{j()}),q=async(i,d)=>{h(d)};return B.useEffect(()=>{const i=x.watch((d,{name:D})=>{if(D!=null&&d!=null){const z=H(d);J(()=>q(D,z))}});return()=>{i.unsubscribe()}}),B.useEffect(()=>{w==="In-Progress"&&c?.fetchState==="Completed"&&A()},[w,c?.fetchState,A]),s.jsxs(se,{children:[s.jsx(K,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:E.colors.grey4,style:{zIndex:4},onBackClick:()=>{p()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ie,{children:s.jsx(Q,{...x,children:s.jsx("form",{id:_(T),onSubmit:V,children:s.jsxs(ne,{children:[s.jsx(Z,{label:{label:o?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:y,validate:i=>a?!0:i!=null&&i>y},isDisabled:a,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:C,placeholder:"Infinity",isDisabled:r,hideField:o,additionalInfoLabel:l.upperBoundInfoLabel}}),s.jsx(de,{}),s.jsx(ee,{sectionId:v,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:g[v],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:_(T),primaryBtn:{label:l.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:N},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(I)},separatorStyle:{marginRight:f.sp4}})]})}const te=(e,t)=>{const{criteria:a,steps:r}=e.remiSetupApproverViewUpdateData?.data??{};return{[v]:le(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),L(e.allAttributes),L(e.filteredAttributes),r??[])??[],[k]:t?void 0:a!=null?a.range.min.amount??0:0,[C]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},le=(e,t,a,r,o)=>o&&o.length>0?o.map((p,h)=>({stepIndex:h,stepType:{selectedOption:p.action,allOptions:$},actors:{allUsers:t,selectedUsers:re(e,p.actors),allNonUsers:r,selectedNonUsers:oe(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:$},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],re=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(r=>r.userId===a.userId)>-1),oe=(e,t)=>e.filter(a=>t.findIndex(r=>r.subType===a.value)>-1),_=e=>`${e}_form`,Se=e=>`${e}`,se=b.div`
1
+ import{y as O,c as R,d as G,q as M,F as U,a8 as W,aN as X,aG as H,cB as J,V as s,bz as K,ab as Q,aO as Y,o as m}from"./index-BRDgVxUL.js";import{a as B}from"./sentry-BFGzyFr-.js";import{n as b}from"./mui-Cm3rVrD-.js";import{b as Z,f as ee,o as L,l as $}from"./FollowStepsSection-DDXRZdXi-SO_ZPpiI.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./zeni-epic-state-C--9cPPx.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="299cfbf1-62c0-458f-bba1-9245af2115bc",e._sentryDebugIdIdentifier="sentry-dbid-299cfbf1-62c0-458f-bba1-9245af2115bc")}catch{}})();const T="reimbursementApprovalRuleDetailPage",k="lowerBound",C="upperBound",v="steps",ae={footerPadding:new O(R[2],R[3])};function Ie({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:r=!0,hideUpperBoundField:o=!1,onBackClick:p,onApprovalRuleDataUpdated:h,onResetClick:N,onSaveRuleClick:j,onSaveRuleSuccess:A}){const E=G(),I=M(),l=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,g=te(e,t==="approval_create"&&!a),x=W({mode:"all",reValidateMode:"onChange",defaultValues:g}),u=e.remiSetupApproverViewUpdateData?.updateStatus,w=X(u?.fetchState),{upperBound:P}=g,{allApprovalRules:n,allAccountingClasses:F,remiSetupApproverViewUpdateData:c}=e;let f=n.length>1?n.length-1:0,y=n.length>0?n[f].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;f=n.findIndex(d=>d.approvalRuleId===i),y=f>0?n[f-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{j()}),q=async(i,d)=>{h(d)};return B.useEffect(()=>{const i=x.watch((d,{name:D})=>{if(D!=null&&d!=null){const z=H(d);J(()=>q(D,z))}});return()=>{i.unsubscribe()}}),B.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),s.jsxs(se,{children:[s.jsx(K,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:E.colors.grey4,style:{zIndex:4},onBackClick:()=>{p()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ie,{children:s.jsx(Q,{...x,children:s.jsx("form",{id:_(T),onSubmit:V,children:s.jsxs(ne,{children:[s.jsx(Z,{label:{label:o?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:y,validate:i=>a?!0:i!=null&&i>y},isDisabled:a,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:C,placeholder:"Infinity",isDisabled:r,hideField:o,additionalInfoLabel:l.upperBoundInfoLabel}}),s.jsx(de,{}),s.jsx(ee,{sectionId:v,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:g[v],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:_(T),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:N},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(I)},separatorStyle:{marginRight:m.sp4}})]})}const te=(e,t)=>{const{criteria:a,steps:r}=e.remiSetupApproverViewUpdateData?.data??{};return{[v]:le(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),L(e.allAttributes),L(e.filteredAttributes),r??[])??[],[k]:t?void 0:a!=null?a.range.min.amount??0:0,[C]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},le=(e,t,a,r,o)=>o&&o.length>0?o.map((p,h)=>({stepIndex:h,stepType:{selectedOption:p.action,allOptions:$},actors:{allUsers:t,selectedUsers:re(e,p.actors),allNonUsers:r,selectedNonUsers:oe(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:$},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],re=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(r=>r.userId===a.userId)>-1),oe=(e,t)=>e.filter(a=>t.findIndex(r=>r.subType===a.value)>-1),_=e=>`${e}_form`,Se=e=>`${e}`,se=b.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -13,8 +13,8 @@ import{y as O,c as R,d as G,q as M,F as U,a8 as W,aN as X,aG as H,cB as J,V as s
13
13
  display: flex;
14
14
  flex-direction: column;
15
15
  border: 1px solid ${e=>e.theme.colors.grey3};
16
- box-shadow: ${e=>`${f.sp0} 2px ${f.sp1} ${e.theme.colors.dropShadowNormal}`};
17
- border-radius: ${f.sp2};
16
+ box-shadow: ${e=>`${m.sp0} 2px ${m.sp1} ${e.theme.colors.dropShadowNormal}`};
17
+ border-radius: ${m.sp2};
18
18
  `,de=b.div`
19
19
  display: flex;
20
20
  flex: 1;
@@ -1,4 +1,4 @@
1
- import{d as N,q as L,F as v,V as o,bz as E,m as H,aM as S,o as t,y as r,ak as B,aK as z,cm as V,cn as _,co as G,cY as U,c as l,b7 as q,a as P,b6 as F,p as j,cV as J,br as Y,b as K}from"./index-1VfEZ1Gz.js";import{n as i}from"./mui-XgHtLv9t.js";import{a as O}from"./sentry-VCAzTDmi.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./zeni-epic-state-CQJq5Qi5.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="c6ff3c1d-3c97-4245-b171-b5e51d69e4bc",e._sentryDebugIdIdentifier="sentry-dbid-c6ff3c1d-3c97-4245-b171-b5e51d69e4bc")}catch{}})();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)},D={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},Q=({showDeleteBtn:e=!1,isLastSection:m=!1,approvalRule:w,onEditRuleClick:b,onDeleteRuleClick:y})=>{const[$,d]=O.useState(!1),a=L(),{range:c}=w.criteria[0],{steps:x,approvalRuleId:u}=w,n=v.getLocalizedStrings().commonSetUp.approval,f=()=>{d(!0)},W={onOkClick:()=>{d(!1),y?.(u)},onCancelClick:()=>{d(!1)}};return o.jsxs(X,{windowSize:a,isLastSection:m,"data-testid":S("approval-rule-section",u),children:[o.jsxs(Z,{windowSize:a,children:[o.jsxs(ne,{children:[o.jsxs(R,{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(R,{windowSize:a,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ae,{className:"icons",children:[e?o.jsx(pe,{onClick:f}):null,o.jsx(de,{onClick:()=>{b(u)},"data-testid":S("edit-approval-rule",u)})]})]}),o.jsx(te,{windowSize:a,children:o.jsx(ie,{isSingleStep:x.length===1,windowSize:a,children:x.map((h,A)=>o.jsxs(re,{isSingleStep:x.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,M)=>o.jsxs(C,{children:[o.jsx(T,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(I,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>o.jsxs(C,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(I,{className:"operator",children:h.operator}):null]},p.userId))]},A))})}),$?o.jsx(V,{titleComponent:o.jsx(G,{children:n.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(_,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:W}):null]})},X=i.div`
1
+ import{d as N,q as L,F as v,V as o,bz as E,m as H,aM as S,o as t,y as r,ak as B,aK as z,cm as V,cn as _,co as G,cY as U,c as l,b7 as q,a as P,b6 as F,p as j,cV as J,br as Y,b as K}from"./index-BRDgVxUL.js";import{n as i}from"./mui-Cm3rVrD-.js";import{a as O}from"./sentry-BFGzyFr-.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./zeni-epic-state-C--9cPPx.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="c6ff3c1d-3c97-4245-b171-b5e51d69e4bc",e._sentryDebugIdIdentifier="sentry-dbid-c6ff3c1d-3c97-4245-b171-b5e51d69e4bc")}catch{}})();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)},D={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},Q=({showDeleteBtn:e=!1,isLastSection:m=!1,approvalRule:w,onEditRuleClick:b,onDeleteRuleClick:y})=>{const[$,d]=O.useState(!1),a=L(),{range:c}=w.criteria[0],{steps:x,approvalRuleId:u}=w,n=v.getLocalizedStrings().commonSetUp.approval,f=()=>{d(!0)},W={onOkClick:()=>{d(!1),y?.(u)},onCancelClick:()=>{d(!1)}};return o.jsxs(X,{windowSize:a,isLastSection:m,"data-testid":S("approval-rule-section",u),children:[o.jsxs(Z,{windowSize:a,children:[o.jsxs(ne,{children:[o.jsxs(R,{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(R,{windowSize:a,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ae,{className:"icons",children:[e?o.jsx(pe,{onClick:f}):null,o.jsx(de,{onClick:()=>{b(u)},"data-testid":S("edit-approval-rule",u)})]})]}),o.jsx(te,{windowSize:a,children:o.jsx(ie,{isSingleStep:x.length===1,windowSize:a,children:x.map((h,A)=>o.jsxs(re,{isSingleStep:x.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,M)=>o.jsxs(C,{children:[o.jsx(T,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(I,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>o.jsxs(C,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(I,{className:"operator",children:h.operator}):null]},p.userId))]},A))})}),$?o.jsx(V,{titleComponent:o.jsx(G,{children:n.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(_,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:W}):null]})},X=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 Pt,ca as Bt,y as m,F as Xe,gc as Nt,ge as Lt,gf as _t,V as t,cm as ze,cn as Ae,co as Me,bz as Re,aM as y,bm as Ot,dr as Wt,gg as Et,gr as Pe,o as a,gh as Be,fd as b,gk as w,fg as x,aK as Ne,fc as Le,b as K,gm as _e,aO as Ft,an as Kt,gn as Ut,go as ie,bv as Vt,gp as Gt,L as Yt,a as Ht,B as Jt,ak as et,b7 as tt,p as U,al as qt,bS as Zt,ag as Qt,gI as Xt,gE as ei,c,cf as ti,cT as ii}from"./index-1VfEZ1Gz.js";import{a as p}from"./sentry-VCAzTDmi.js";import{n as r}from"./mui-XgHtLv9t.js";import{a as ai}from"./liveblocks-C14gIpGs.js";import{bL as ri,bP as oi,FB as ni}from"./zeni-epic-state-CQJq5Qi5.js";import li from"./InvoiceUploadSection-QGU5U32X-B3PQnhTF.js";import{r as si,h as f,u as di}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-CeETxMam.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./recharts-DBix2kBp.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";import"./AttachmentView-QyMOK54a-yHfOa1ag.js";import"./uploadReceipts-CPw64UYa-CWKWHJjU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="7cf4a66c-81c3-45bf-bd33-e817fd549a7f",e._sentryDebugIdIdentifier="sentry-dbid-7cf4a66c-81c3-45bf-bd33-e817fd549a7f")}catch{}})();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:C,authParams:re,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:it,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:at,onDuplicateLineClick:rt,approveOrRejectRemi:pe,deleteReimbursement:ot,cancelAndDeleteReport:ue,handleZeniLogoClick:nt,onAddNewRule:he})=>{const d=At(),lt=Mt().analytics,o=Rt(),ye=Pt(),[st,z]=p.useState(!1),[G,Y]=p.useState(!1),[dt,H]=p.useState(!1),[J,q]=p.useState("approved"),B=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ct]=p.useState(null),[mt,N]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.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);be(n)}},[]);const pt=()=>{V()};Bt({componentName:"reimbursement.details"});const ut={onOkClick:()=>{z(!1),j.primaryButtonText===i.buttons.delete?ot?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=s.labelWidth.value(o),A=s.largeLabelWidth.value(o),we=Xe.getLocalizedStrings(),{common:{texts:{comments:ht},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:yt,replyAComment:gt},tooltip:{resolveComment:bt,unResolveComment:wt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:L}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],_=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,W=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=_?.code==="paid",xt=$e?_:O?.code=="approved"&&W?.code?W:O,$=mi(e.remiDetails),M=O?.code=="approved"&&W?.code?W:O,E=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},ft=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},$t=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},je=()=>{at()},vt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},Tt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("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,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&it&&!It,Dt=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:Ce,setOpenThread:F}=p.useContext(Nt),{threads:R,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>R.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[R]).length,zt=p.useCallback((l,n)=>{F(n),N(!1)},[F,N]);p.useEffect(()=>{te?.threadId!=null&&R.length>0&&!D&&(F(te.threadId),Ce(null))},[te,R,D,F,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},P=ni(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(_i,{windowSize:o,ref:B,children:[st?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ut}):null,dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{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(Re,{"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:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Ci,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Pi,{children:[u?t.jsxs(Bi,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ct({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),N(!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(Ot,{count:D?void 0:kt,isLoading:D,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(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Q})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,M?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E}),P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{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:C,authParams:re,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(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Q}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,M?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null,P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(bi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${l.lineId}`]=ke)},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 be(`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:x({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(w,{label:{label:i.reimbursementType,width:A},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:x({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(w,{label:{label:i.transactionDate,width:A},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.distanceInMiles,width:A},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.department,width:I},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:x({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(w,{label:{label:i.merchant,width:A},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.transactionDate,width:A},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.department,width:I},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(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(pi,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ui,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ui,{})]}),$e||E===!0?null:t.jsxs(zi,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx($i,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),G===!0&&Y(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,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:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="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:J==="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:[!P&&G?t.jsx(Kt,{onClickAway:()=>Y(!1),children:t.jsxs(Di,{windowSize:o,children:[ee!=="processing"?t.jsx(ae,{onClick:Se,"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(Ii,{windowSize:o,children:[!P&&Ie?t.jsx(ji,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!P&&Dt===!0?t.jsx(Ti,{windowSize:o,showEditIcon:Ie,children:t.jsx(vi,{onClick:()=>Y(!G),"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:R,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.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:()=>N(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},mi=e=>{const C=Xe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.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 Pt,ca as Bt,y as m,F as Xe,gc as Nt,ge as Lt,gf as _t,V as t,cm as ze,cn as Ae,co as Me,bz as Re,aM as y,bm as Ot,dr as Wt,gg as Et,gr as Pe,o as a,gh as Be,fd as b,gk as w,fg as x,aK as Ne,fc as Le,b as K,gm as _e,aO as Ft,an as Kt,gn as Ut,go as ie,bv as Vt,gp as Gt,L as Yt,a as Ht,B as Jt,ak as et,b7 as tt,p as U,al as qt,bS as Zt,ag as Qt,gI as Xt,gE as ei,c,cf as ti,cT as ii}from"./index-BRDgVxUL.js";import{a as p}from"./sentry-BFGzyFr-.js";import{n as r}from"./mui-Cm3rVrD-.js";import{a as ai}from"./liveblocks-B7l6-lVT.js";import{bL as ri,bP as oi,FB as ni}from"./zeni-epic-state-C--9cPPx.js";import li from"./InvoiceUploadSection-COIpUGEB-BbbQUA3q.js";import{r as si,h as f,u as di}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-CSvDBKbK.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./recharts-CJP-6HgW.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";import"./AttachmentView-mC246Bpw-BHWqGVkj.js";import"./uploadReceipts-CPw64UYa-MigMlgVj.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="01f65e54-94d9-49fd-b466-c040fcae2f50",e._sentryDebugIdIdentifier="sentry-dbid-01f65e54-94d9-49fd-b466-c040fcae2f50")}catch{}})();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:C,authParams:re,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:it,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:at,onDuplicateLineClick:rt,approveOrRejectRemi:pe,deleteReimbursement:ot,cancelAndDeleteReport:ue,handleZeniLogoClick:nt,onAddNewRule:he})=>{const d=At(),lt=Mt().analytics,o=Rt(),ye=Pt(),[st,z]=p.useState(!1),[G,Y]=p.useState(!1),[dt,H]=p.useState(!1),[J,q]=p.useState("approved"),B=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ct]=p.useState(null),[mt,N]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.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);be(n)}},[]);const pt=()=>{V()};Bt({componentName:"reimbursement.details"});const ut={onOkClick:()=>{z(!1),j.primaryButtonText===i.buttons.delete?ot?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=s.labelWidth.value(o),A=s.largeLabelWidth.value(o),we=Xe.getLocalizedStrings(),{common:{texts:{comments:ht},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:yt,replyAComment:gt},tooltip:{resolveComment:bt,unResolveComment:wt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:L}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],_=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,W=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=_?.code==="paid",xt=$e?_:O?.code=="approved"&&W?.code?W:O,$=mi(e.remiDetails),M=O?.code=="approved"&&W?.code?W:O,E=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},ft=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},$t=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},je=()=>{at()},vt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},Tt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("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,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&it&&!It,Dt=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:Ce,setOpenThread:F}=p.useContext(Nt),{threads:R,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>R.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[R]).length,zt=p.useCallback((l,n)=>{F(n),N(!1)},[F,N]);p.useEffect(()=>{te?.threadId!=null&&R.length>0&&!D&&(F(te.threadId),Ce(null))},[te,R,D,F,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},P=ni(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(_i,{windowSize:o,ref:B,children:[st?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ut}):null,dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{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(Re,{"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:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Ci,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Pi,{children:[u?t.jsxs(Bi,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ct({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),N(!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(Ot,{count:D?void 0:kt,isLoading:D,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(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Q})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,M?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E}),P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{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:C,authParams:re,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(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Q}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,M?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null,P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(bi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${l.lineId}`]=ke)},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 be(`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:x({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(w,{label:{label:i.reimbursementType,width:A},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:x({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(w,{label:{label:i.transactionDate,width:A},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.distanceInMiles,width:A},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.department,width:I},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:x({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(w,{label:{label:i.merchant,width:A},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.transactionDate,width:A},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.department,width:I},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(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(pi,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ui,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ui,{})]}),$e||E===!0?null:t.jsxs(zi,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx($i,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),G===!0&&Y(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,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:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="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:J==="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:[!P&&G?t.jsx(Kt,{onClickAway:()=>Y(!1),children:t.jsxs(Di,{windowSize:o,children:[ee!=="processing"?t.jsx(ae,{onClick:Se,"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(Ii,{windowSize:o,children:[!P&&Ie?t.jsx(ji,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!P&&Dt===!0?t.jsx(Ti,{windowSize:o,showEditIcon:Ie,children:t.jsx(vi,{onClick:()=>Y(!G),"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:R,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.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:()=>N(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},mi=e=>{const C=Xe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.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,V as e,aM as a,fo as ae,bz as de,n as u,ad as d,F,o as s,ap as ce,D as me,aQ as N,al as pe,y as xe,p as z,cA as he,aR as ue,b8 as ge,c as we}from"./index-1VfEZ1Gz.js";import{a as j}from"./sentry-VCAzTDmi.js";import{n as r}from"./mui-XgHtLv9t.js";import{FA as je,bT as be}from"./zeni-epic-state-CQJq5Qi5.js";import{f as fe}from"./VideoPopup-aA7dkXbZ-vpwP4W2W.js";import{M as v}from"./usp-line-BBd1wKwW-DB-RQmMs.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";import"./VideoPlayer-C8VeeJIx-CCPJnDsQ.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="55e50090-f5d3-4722-96d6-b7ec1d8bcd65",i._sentryDebugIdIdentifier="sentry-dbid-55e50090-f5d3-4722-96d6-b7ec1d8bcd65")}catch{}})();const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",E="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
1
+ import{av as ne,d as S,q as k,aN as le,V as e,aM as a,fo as ae,bz as de,n as u,ad as d,F,o as s,ap as ce,D as me,aQ as N,al as pe,y as xe,p as z,cA as he,aR as ue,b8 as ge,c as we}from"./index-BRDgVxUL.js";import{a as j}from"./sentry-BFGzyFr-.js";import{n as r}from"./mui-Cm3rVrD-.js";import{FA as je,bT as be}from"./zeni-epic-state-C--9cPPx.js";import{f as fe}from"./VideoPopup-BD0vmbkL-B1pshKUR.js";import{M as v}from"./usp-line-BBd1wKwW-BMJkTVjT.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";import"./VideoPlayer-BgTXP1p7-DSVVGcbk.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="1adced5d-55ee-4f2c-b26e-c88b5d7fc1bf",i._sentryDebugIdIdentifier="sentry-dbid-1adced5d-55ee-4f2c-b26e-c88b5d7fc1bf")}catch{}})();const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",E="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.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 Ie,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,m as Ye,ab as Ke,fp as ve,dM as Xe,fq as Qe,bu as et,dC as tt,aO as it,o as a,fs as nt,c as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aM as Pe,a as Ae,bJ as dt,ag as ct,br as ut}from"./index-1VfEZ1Gz.js";import{a as o}from"./sentry-VCAzTDmi.js";import{n as i}from"./mui-XgHtLv9t.js";import{bJ as mt}from"./zeni-epic-state-CQJq5Qi5.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-C2kqDNTp-BQNyaPQp.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="39009426-4731-46e9-90a3-0af9ef891d3f",e._sentryDebugIdIdentifier="sentry-dbid-39009426-4731-46e9-90a3-0af9ef891d3f")}catch{}})();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"})),h={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:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Y},trigger:K}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:d,updateStatus:F,mileageStatus:b}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[S,I]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{x||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!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:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(It,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),I(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
1
+ import{d as Ee,q as Ie,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,m as Ye,ab as Ke,fp as ve,dM as Xe,fq as Qe,bu as et,dC as tt,aO as it,o as a,fs as nt,c as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aM as Pe,a as Ae,bJ as dt,ag as ct,br as ut}from"./index-BRDgVxUL.js";import{a as o}from"./sentry-BFGzyFr-.js";import{n as i}from"./mui-Cm3rVrD-.js";import{bJ as mt}from"./zeni-epic-state-C--9cPPx.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-Djnl6dYH-Cb6cznud.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="cd89d792-d0be-4486-9264-a05cd1342321",e._sentryDebugIdIdentifier="sentry-dbid-cd89d792-d0be-4486-9264-a05cd1342321")}catch{}})();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"})),h={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:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Y},trigger:K}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:d,updateStatus:F,mileageStatus:w}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[S,I]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{x||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!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:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(It,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),I(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,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"};
@@ -9,9 +9,9 @@ import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as J
9
9
  width: 100%;
10
10
  flex-direction: column;
11
11
  justify-content: flex-start;
12
- `,wt=i.div`
13
- display: flex;
14
12
  `,bt=i.div`
13
+ display: flex;
14
+ `,wt=i.div`
15
15
  ${e=>`${ge.title.style(e.windowSize)}`};
16
16
  color: ${e=>e.isError===!0?J.important:e.theme.colors.primary};
17
17
  `,St=i(ct)`
@@ -103,7 +103,7 @@ import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as J
103
103
  &:hover {
104
104
  color: ${e=>e.theme.colors.primary};
105
105
  }
106
- `,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",q="remiAccount",G="remiMileage",Xt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:c,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Y,onBusinessVerificationSectionClick:K,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:d,onEstablishConnectionSuccess:F,updateMileageDetails:b,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:I,onSaveMileageClick:te,onClickMenuIcon:W,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const H=Ee(),u=Ie(),[B,V]=o.useState(!1),{fetchState:v,primaryFundingAccount:C,allFundingAccounts:fe,updateStatus:L,accountUpdateStatus:Ve,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:Me,companyBillPayInfo:he,mileageRateConfig:ze,isRefreshingViewInBackground:Re,selectedCompanyOfficer:f}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=$,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(L.fetchState),we=N(se.fetchState),be=N(re.fetchState),M=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"&&V(!0),B&&_==="In-Progress"&&v==="Completed"&&V(!1)},[f,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||we==="In-Progress"&&se.fetchState==="Completed"||be==="In-Progress"&&re.fetchState==="Completed")&&M.reset(pe(e))},[_,v,M,e,we,se.fetchState,be,re.fetchState]);const Ue=M.handleSubmit(A=>{l.trackEnableReimbursement(),S()}),We=async(A,R)=>{const m=R[q];if(A.includes(q)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&C?.id!=m.fundingAccount.selectedOption){const w=fe.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&X(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&C?.id!=null&&C?.zeniAccountId!=m.account.selectedOption){const w=m.account.allOptions.find(me=>me.value===m.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),U(m.account.selectedOption,C.id,C.accType)}}else if(A.includes(G)){const w=R[G];b(w)}};o.useEffect(()=>{const A=M.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>We(m,R))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&I()},[I,ye,L.fetchState]);const{commonSetUp:Se,spendManagement:He}=Te.getLocalizedStrings(),{reimbursement:Be}=He,{reimbursementSetup:z}=Be,{setUp:k}=Se,de=he?.isBusinessVerified===!0&&(C?.accType==="depositAccount"||mt(C?.providerVerificationStatus?.code??""))&&ze?.denominationConversions.amount!=null,ce=Me?.isReimbursementEnabled===!0,Oe=de?Se.setUp.setupVerifiedSubTitle:z.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=H.mode==="light"?new Ce(H.colors.brandColorJadeLight):new Ce(H.colors.brandColorJadeDark),Ne=()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?V(!0):K?.()};return t.jsxs(Mt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>V(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:c,updateStatus:L,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:f,onClose:()=>V(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:z.setupTitle,backgroundColor:H.colors.grey4,style:{zIndex:3},onBackClick:Y,showMenuIcon:!ce&&(u==="medium-compact"||u==="small"),onClickMenuIcon:W,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(zt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Ye,{size:"ExtraLarge",start:!0})}):t.jsx(Ke,{...M,children:t.jsx("form",{id:De(je),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Xe,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Qe,{connectedAccountProvider:j,primaryFundingAccount:C,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:fe,sectionId:q,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:d,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ft,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:z.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),de&&!ce&&O.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:z.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ve.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:z.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:de&&!ce,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},Mt=i.div`
106
+ `,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",q="remiAccount",G="remiMileage",Xt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:c,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Y,onBusinessVerificationSectionClick:K,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:d,onEstablishConnectionSuccess:F,updateMileageDetails:w,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:I,onSaveMileageClick:te,onClickMenuIcon:W,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const H=Ee(),u=Ie(),[B,V]=o.useState(!1),{fetchState:v,primaryFundingAccount:C,allFundingAccounts:fe,updateStatus:L,accountUpdateStatus:Ve,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:Me,companyBillPayInfo:he,mileageRateConfig:ze,isRefreshingViewInBackground:Re,selectedCompanyOfficer:f}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=$,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(L.fetchState),be=N(se.fetchState),we=N(re.fetchState),M=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"&&V(!0),B&&_==="In-Progress"&&v==="Completed"&&V(!1)},[f,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||be==="In-Progress"&&se.fetchState==="Completed"||we==="In-Progress"&&re.fetchState==="Completed")&&M.reset(pe(e))},[_,v,M,e,be,se.fetchState,we,re.fetchState]);const Ue=M.handleSubmit(A=>{l.trackEnableReimbursement(),S()}),We=async(A,R)=>{const m=R[q];if(A.includes(q)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&C?.id!=m.fundingAccount.selectedOption){const b=fe.find(me=>me.id===m.fundingAccount.selectedOption);b!=null&&X(m.fundingAccount.selectedOption,b.accType)}}else if(m.account.selectedOption!=null&&C?.id!=null&&C?.zeniAccountId!=m.account.selectedOption){const b=m.account.allOptions.find(me=>me.value===m.account.selectedOption);b!=null&&typeof b.label=="string"&&l.trackConnectBankLink(b.value,b.label,"reimbursement"),U(m.account.selectedOption,C.id,C.accType)}}else if(A.includes(G)){const b=R[G];w(b)}};o.useEffect(()=>{const A=M.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>We(m,R))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&I()},[I,ye,L.fetchState]);const{commonSetUp:Se,spendManagement:He}=Te.getLocalizedStrings(),{reimbursement:Be}=He,{reimbursementSetup:z}=Be,{setUp:k}=Se,de=he?.isBusinessVerified===!0&&(C?.accType==="depositAccount"||mt(C?.providerVerificationStatus?.code??""))&&ze?.denominationConversions.amount!=null,ce=Me?.isReimbursementEnabled===!0,Oe=de?Se.setUp.setupVerifiedSubTitle:z.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=H.mode==="light"?new Ce(H.colors.brandColorJadeLight):new Ce(H.colors.brandColorJadeDark),Ne=()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?V(!0):K?.()};return t.jsxs(Mt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>V(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:c,updateStatus:L,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:f,onClose:()=>V(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:z.setupTitle,backgroundColor:H.colors.grey4,style:{zIndex:3},onBackClick:Y,showMenuIcon:!ce&&(u==="medium-compact"||u==="small"),onClickMenuIcon:W,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(zt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Ye,{size:"ExtraLarge",start:!0})}):t.jsx(Ke,{...M,children:t.jsx("form",{id:De(je),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Xe,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Qe,{connectedAccountProvider:j,primaryFundingAccount:C,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:fe,sectionId:q,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:d,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ft,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:z.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),de&&!ce&&O.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:z.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ve.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:z.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:de&&!ce,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},Mt=i.div`
107
107
  display: flex;
108
108
  min-height: 100%;
109
109
  flex-direction: column;
@@ -1 +1 @@
1
- import{V as f,cm as O,cn as M,co as q,k1 as W,aV as z,F as G}from"./index-1VfEZ1Gz.js";import{a as b}from"./sentry-VCAzTDmi.js";import{G5 as K}from"./zeni-epic-state-CQJq5Qi5.js";import{u as Q}from"./ReviewOverlay-Bh8LAnRM-CijIHXs6.js";import"./liveblocks-C14gIpGs.js";import"./core-CeETxMam.js";import"./recharts-DBix2kBp.js";import"./mui-XgHtLv9t.js";import"./lottie-D8T-stDd.js";import"./analytics-BBQGK0ON.js";import"./lexical-B3ldBehs.js";import"./utils-C6Cd8yMa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="325f220d-e6bf-416d-9794-b169934bd99d",e._sentryDebugIdIdentifier="sentry-dbid-325f220d-e6bf-416d-9794-b169934bd99d")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:g,currentSubTab:y}=e,v=!1,[x,l]=b.useState(!1),[d,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,S=d.filter(m=>m.reviewStatus.code!=="error").length,E=()=>{const{title:m,description:C}=Y(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},F={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},V=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:E,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(O,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:V(),cancelButton:N,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,x=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:g)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
1
+ import{V as f,cm as O,cn as M,co as q,k1 as W,aV as z,F as G}from"./index-BRDgVxUL.js";import{a as b}from"./sentry-BFGzyFr-.js";import{G5 as K}from"./zeni-epic-state-C--9cPPx.js";import{u as Q}from"./ReviewOverlay-n3lZIztC-BaYE0CrF.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./mui-Cm3rVrD-.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4eda3aa5-9d94-41e1-b1a1-0ff87fea1fda",e._sentryDebugIdIdentifier="sentry-dbid-4eda3aa5-9d94-41e1-b1a1-0ff87fea1fda")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:g,currentSubTab:y}=e,v=!1,[x,l]=b.useState(!1),[d,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,S=d.filter(m=>m.reviewStatus.code!=="error").length,E=()=>{const{title:m,description:C}=Y(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},F={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},V=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:E,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(O,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:V(),cancelButton:N,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,x=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:g)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
@@ -1,4 +1,4 @@
1
- import{d as l,V as r,aJ as a,b0 as f,F as y,aM as m,aP as h,bB as g,ag as u,o as c,b1 as w}from"./index-1VfEZ1Gz.js";import{n as d}from"./mui-XgHtLv9t.js";import{a as s}from"./sentry-VCAzTDmi.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="1e034b64-978b-4e67-a75e-11f25cdc6871",e._sentryDebugIdIdentifier="sentry-dbid-1e034b64-978b-4e67-a75e-11f25cdc6871")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{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 x=d(h)`
1
+ import{d as l,V as r,aJ as a,b0 as f,F as y,aM as m,aP as h,bB as g,ag as u,o as c,b1 as w}from"./index-BRDgVxUL.js";import{n as d}from"./mui-Cm3rVrD-.js";import{a as s}from"./sentry-BFGzyFr-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="1e034b64-978b-4e67-a75e-11f25cdc6871",e._sentryDebugIdIdentifier="sentry-dbid-1e034b64-978b-4e67-a75e-11f25cdc6871")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{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 x=d(h)`
2
2
  justify-content: flex-start;
3
3
  `;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(b,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>s.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),s.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.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"})),C=d(h)`
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{d as ee,q as de,ca as xe,a8 as ye,V as o,an as we,cb as te,ab as _e,y as D,aO as $e,o as n,F as oe,cc as ke,cd as ve,ce as Ce,cf as je,cg as Ie,al as he,ch as Se,ag as Ne,aA as X,bB as De,c as f,aS as Oe,ak as Pe,at as Fe}from"./index-1VfEZ1Gz.js";import{a as u,w as ue}from"./sentry-VCAzTDmi.js";import{n as d}from"./mui-XgHtLv9t.js";import{R as O,I as Be}from"./CollapsableReportTable-CvXUxopt-f_pwfY1A.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="cdaec0ba-d39e-4269-a327-efdaec7adf15",e._sentryDebugIdIdentifier="sentry-dbid-cdaec0ba-d39e-4269-a327-efdaec7adf15")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ae=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Te=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(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(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ae(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Te(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ve(h.headers,t.defaultFileName),w=await h.arrayBuffer();Ce(w,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
1
+ import{d as ee,q as de,ca as xe,a8 as ye,V as o,an as we,cb as te,ab as _e,y as D,aO as $e,o as n,F as oe,cc as ke,cd as ve,ce as Ce,cf as je,cg as Ie,al as he,ch as Se,ag as Ne,aA as X,bB as De,c as f,aS as Oe,ak as Pe,at as Fe}from"./index-BRDgVxUL.js";import{a as u,w as ue}from"./sentry-BFGzyFr-.js";import{n as d}from"./mui-Cm3rVrD-.js";import{R as O,I as Be}from"./CollapsableReportTable-CrR91Kpi-5o5TUvM_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="4e393ee3-ccff-4f96-973c-ad5cfa9bd0ef",e._sentryDebugIdIdentifier="sentry-dbid-4e393ee3-ccff-4f96-973c-ad5cfa9bd0ef")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ae=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Te=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(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(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ae(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Te(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ve(h.headers,t.defaultFileName),w=await h.arrayBuffer();Ce(w,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=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};