@zeniai/web-cockpit-ui 1.15.57-dev → 1.15.57-qa

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 (219) hide show
  1. package/dist/assets/{ACHDetailsPage-CUEH8rCg-CIX9LCVV.js → ACHDetailsPage-CUEH8rCg-l0OzJegC.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-C-7kZpzd-DnU-CnU0.js → AIPerformancePage-C-7kZpzd-DW-iAJ0J.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-D6R4uR87-CauYgBnD.js → AccountInfoPage-D6R4uR87-DIdQ2EOf.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CaAlcViW-DD8DzME3.js → AccountInfoPageContent-CaAlcViW-BVhJmHHe.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-DQXLZ2LO-C0aOsoiG.js → AccountLockedInfoModal-DQXLZ2LO--rpxDhFu.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BeVU7eNW-DnvK_eyt.js → AccountReconDetailsDrawerPage-BeVU7eNW-B8i6IC6X.js} +1 -1
  7. package/dist/assets/{AccountRow-CGg3Gvpj-2LubTGsx.js → AccountRow-CGg3Gvpj-DlBEjYzj.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-W21wtjzz-BzBECEOs.js → AccountsPromoCardStack-W21wtjzz-DkyPiSHg.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-BEt3wVEb-DjZ-MTg6.js → AddAddressForCardDrawer-BEt3wVEb-CeocQ-hp.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CNqNAmD1-BAMChQys.js → AddToWalletPage-CNqNAmD1-CXm0AiP7.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-tl0jPK38-BjO71f63.js → AgingReportsPage-tl0jPK38-0RazXg4X.js} +1 -1
  12. package/dist/assets/{AllUserItems-Q1lO4Ln3-CuR2BE-L.js → AllUserItems-Q1lO4Ln3-CJrET1RJ.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-D2Z4kxTX-DwVh7bmZ.js → ApAgingDetailPage-D2Z4kxTX-Ddc49nWy.js} +1 -1
  14. package/dist/assets/{AppBasePage-X40fGmvM-B3sSuk1o.js → AppBasePage-X40fGmvM-CQByHlHb.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-CvJTJq58-BGDMCBjA.js → AppDrawerContent-CvJTJq58-yu6NuTZB.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-C4lEfWTu-yCUuOf0u.js → ApprovalRulesSettingsPage-C4lEfWTu-BtlZrPIB.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DVt6kJYF-BIJAb2VF.js → ArAgingChart-DVt6kJYF-CaFP350a.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-IHDBT7mF-wxBgjehQ.js → ArAgingDetailPage-IHDBT7mF-Z_6z-w4y.js} +1 -1
  19. package/dist/assets/{AttachmentView-CwRBUVxC-B-A8o2yf.js → AttachmentView-CwRBUVxC-lkozvmAY.js} +1 -1
  20. package/dist/assets/{BalancesInsightWithToolTip-XPRUqEEA-Kn1TsaRI.js → BalancesInsightWithToolTip-XPRUqEEA-D6J_b-jp.js} +1 -1
  21. package/dist/assets/{BankAccountSection-W3gEhXh6-DFHw2sKM.js → BankAccountSection-W3gEhXh6-Cs8Vzzia.js} +1 -1
  22. package/dist/assets/{BankAccountWarningSection-9u-04CXU-aDzsUImF.js → BankAccountWarningSection-9u-04CXU-B_YQI92Q.js} +1 -1
  23. package/dist/assets/{BankConnectionsSettingsPage-DV_X9ctb-CDyQw7u-.js → BankConnectionsSettingsPage-DV_X9ctb-BnyBbDYu.js} +1 -1
  24. package/dist/assets/{BillDetailPage-C0r7XIcc-BFWDSS_J.js → BillDetailPage-C0r7XIcc-C6l0hJBd.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRuleDetailPage-DJID_-tr-BTp82A3G.js → BillPayApprovalRuleDetailPage-DJID_-tr-Dps8Qi2m.js} +1 -1
  26. package/dist/assets/{BillPayApprovalRulesPage-73C2kwjc-DV2esjtr.js → BillPayApprovalRulesPage-73C2kwjc-BLrTnQa4.js} +1 -1
  27. package/dist/assets/{BillPayPromoPage-FW3B8U-w-n5VnpHD-.js → BillPayPromoPage-FW3B8U-w-D6TdMAQQ.js} +1 -1
  28. package/dist/assets/{BillPaySetUpPage-rgzWSOQM-C-ZdDZzJ.js → BillPaySetUpPage-rgzWSOQM-CSk1snb-.js} +1 -1
  29. package/dist/assets/{BillingSettingsPage-AcYS3TSu--RATyZn_.js → BillingSettingsPage-AcYS3TSu-DOtfRRJH.js} +1 -1
  30. package/dist/assets/{BillsBulkReviewDrawerPage-CM8-szf_-D9duXPwz.js → BillsBulkReviewDrawerPage-CM8-szf_-CooS6JK_.js} +1 -1
  31. package/dist/assets/{BoxItem-u890NmTk-GdZH4g2N.js → BoxItem-u890NmTk-C6O9lzFu.js} +1 -1
  32. package/dist/assets/{BusinessVerificationPage-CzrVGb5K-CmS-O7sQ.js → BusinessVerificationPage-CzrVGb5K-C6A6AsNq.js} +1 -1
  33. package/dist/assets/{CardNumberSubText-CxypsknQ-C5MjjYIg.js → CardNumberSubText-CxypsknQ-DyokBLAK.js} +1 -1
  34. package/dist/assets/{CashbackDetailPage-fBR9M8sC-Dh5E8gW1.js → CashbackDetailPage-fBR9M8sC-CXEkG3VI.js} +1 -1
  35. package/dist/assets/{ChargeCardDetailPage-CYv8doUs-CC359HTm.js → ChargeCardDetailPage-CYv8doUs-DxwfQBS2.js} +1 -1
  36. package/dist/assets/{ChargeCardListPage-CrwBff5O-BIYKDbQO.js → ChargeCardListPage-CrwBff5O-rz7tWGmM.js} +1 -1
  37. package/dist/assets/{ChargeCardListTable-B9P82JB2-DT4hRxIU.js → ChargeCardListTable-B9P82JB2-DZ28Ed6n.js} +1 -1
  38. package/dist/assets/{ChargeCardPaymentHistoryPage-BzsNSIp4-CyZrJgN7.js → ChargeCardPaymentHistoryPage-BzsNSIp4-oDf9qgEy.js} +1 -1
  39. package/dist/assets/{ChargeCardPromoPage-D40YUEIh-CzX92eqi.js → ChargeCardPromoPage-D40YUEIh-3G8EBSQS.js} +1 -1
  40. package/dist/assets/{ChargeCardSetupPage-BJ0ruCk3-BaTLJK3K.js → ChargeCardSetupPage-BJ0ruCk3-DnDMF3Zp.js} +1 -1
  41. package/dist/assets/{ChargeCardStatementsPage-CCn6jmK3-B65SJzNg.js → ChargeCardStatementsPage-CCn6jmK3-ZnJLU5C1.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-COW-uu-_-B15TUyNY.js → CheckDepositDrawerPage-COW-uu-_-337z_whG.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-oX8IRAxt-DmgpCuxO.js → CollapsableReportTable-oX8IRAxt-CFTrqTTE.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-IqJVtLZK-C3OYrk_8.js → CompanyOfficerDetailsSection-IqJVtLZK-BuPbbrhN.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-BiGjFwZ5-DaDkL0aZ.js → CompanyPassportCard-BiGjFwZ5-8PwuPLem.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-Dg-Q0eMl-B0lK1QQa.js → CompanyPassportPage-Dg-Q0eMl-BvQgD8pY.js} +1 -1
  47. package/dist/assets/{CompleteProfile-Ccg2CHq4-rKD1q2iz.js → CompleteProfile-Ccg2CHq4-DDjrOEMY.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-yXo14QzY-AOku3ebT.js → ConfettiBurst-yXo14QzY-DxzCVc83.js} +1 -1
  49. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-DBQlMIjc.js → ConstrainedInnerElement-CgdnMeoA-Dkpx1SXo.js} +1 -1
  50. package/dist/assets/{CreateOrEditVendorPage-DQYLvgGA-xCTJk5Wj.js → CreateOrEditVendorPage-DQYLvgGA-rEnPle1-.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentDrawerPage-izuZXkqy-ofdy6ysD.js → CreditCardPaymentDrawerPage-izuZXkqy-BOTS1yLy.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-CneumAPd-B7hTgri2.js → CurrencySelectField-CneumAPd-DmSW3aSL.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-C4y0EhXQ-Bs3PD2DS.js → CustomerOnboardingActivationPage-C4y0EhXQ-DYM61SDA.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-DbMXDaX1-DYy1GR-8.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D8UmruuK-BIBD0SgP.js → CustomerOnboardingDetailPageSkeleton-D8UmruuK-CTJQI1MX.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-hN3TzkAz-Cl3v7kHV.js → CustomerOnboardingNoStepsPage-hN3TzkAz-C8kVHtgr.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-C-lYffqT-BHmAdBeO.js → CustomerOnboardingPage-C-lYffqT-BH8iyjt-.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-_UgeXE48-BukwqaM7.js → CustomerOnboardingProductSuitePage-_UgeXE48-D8asrzBl.js} +1 -1
  59. package/dist/assets/{Dashboard-BqIm-EyG-DjEf_UGj.js → Dashboard-BqIm-EyG-VQdGQxsV.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-Dnwy7uOD-B5yKdlc5.js → DashboardReportPage-Dnwy7uOD-BhmNdImW.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-D0fh4PIm-DM5qHrdk.js → DashboardSidebarBackgroundAnimation-D0fh4PIm-C1t6BNmM.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-C6yQhPjj-l11w2Y5D.js → DepositAccTransactionItem-C6yQhPjj-CUrmqJPz.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-BtncOXZP-BnXQt5-Q.js → DepositAccTransactionListPage-BtncOXZP-C_xtPpjl.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-DmtO34lv-CxwBDMGE.js → DomesticWireDetailsPage-DmtO34lv-DO8kMbVS.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-CWHxxKW_-UDgVlxY5.js → DownloadOverlay-CWHxxKW_-DApj93j0.js} +1 -1
  66. package/dist/assets/{DrawerPage-DSU5oir8-DRsRlHno.js → DrawerPage-DSU5oir8-DwZaxEp6.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-D2n0Hqby-DTz2-JYI.js → EditPeoplePage-D2n0Hqby-B6IGBkKn.js} +1 -1
  68. package/dist/assets/{EditReimbursementDetailPage-CFLBOcFT-DS-9_HAs.js → EditReimbursementDetailPage-CFLBOcFT-Cw2zvCDn.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-Mmx3DFuG-MVIaVfxx.js → EntityDetailPage-Mmx3DFuG-CL2YN9pN.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-HHASyTi6-mpUEq7ck.js → EntitySummarySection-HHASyTi6-nYIBv9-K.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-DJlmx9Oe-B6myEsyW.js → ExpenseAutomationOverviewPage-DJlmx9Oe-DGBry9wX.js} +1 -1
  72. package/dist/assets/{ExpenseAutomationPage-Djk1vwnA-DbEUK9XH.js → ExpenseAutomationPage-Djk1vwnA-CYVxpcWZ.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-BeCtQ7TL-Ds7KSKVG.js → ExpressPayPage-BeCtQ7TL-B8LT6KHN.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-Dr96evH6-D1kxI8yP.js → FeaturePreviewPage-Dr96evH6-DeAOL-lt.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-CH5j9Kb4-BJ9-zsQc.js → FollowStepsSection-CH5j9Kb4-CQajbN2U.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-C32MoCYm-BNlLd0Dn.js → GlobalReviewListPage-C32MoCYm-BPrEHIYx.js} +1 -1
  77. package/dist/assets/{InformationCardStack-OBOt0eaS-CKdLlnik.js → InformationCardStack-OBOt0eaS-CaqVS1sD.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-BaaSbxvA-DSePDCyn.js → InsightsCardStack-BaaSbxvA-BTLx9ym-.js} +1 -1
  79. package/dist/assets/{InsightsSection-H8voYHTz-DN8-jvkA.js → InsightsSection-H8voYHTz-2prpSEtF.js} +1 -1
  80. package/dist/assets/{IntegrationsSettingsPage-B_2KNKJF-BtmEIfKI.js → IntegrationsSettingsPage-B_2KNKJF-CerFm2sT.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-DvZU7o6p-BObKTwl6.js → InternationalWireSwiftDetailsPage-DvZU7o6p-B0DONZ9c.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-D_jydE0q-DqIfVs5O.js → InternationalWireVerificationPage-D_jydE0q-64MvvZt3.js} +1 -1
  83. package/dist/assets/{InviteFormPage-Dr6gx_W_-B4h2mADz.js → InviteFormPage-Dr6gx_W_-CW52LnjT.js} +1 -1
  84. package/dist/assets/{InvitePageListView-Dva8LR_u-gmKNm5Jm.js → InvitePageListView-Dva8LR_u--Q10UnAt.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-bg-XFo6D-C4ZVJYSx.js → InvitePeoplePage-bg-XFo6D-BtbUDFSW.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-CnYvPpZv-Gp4_i4AV.js → InvoiceUploadSection-CnYvPpZv-DI5O-CEY.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-Z5WdMvKc-BWkEUK7g.js → IssueChargeCardPage-Z5WdMvKc-GCXhyMD6.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-DGXMQaW1-Fv-4gy9z.js → LabeledAddressValue-DGXMQaW1-lSbb2pXW.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-DR8V5Kty-DLCCRDRb.js → LabeledAddressValueField-DR8V5Kty-C6FmfsB-.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-CWjC7vEV-9UTpUa1T.js → LabeledControlledCheckBoxField-CWjC7vEV-CpanSBUo.js} +1 -1
  91. package/dist/assets/{LabeledCountryMultiSelectField-CvCgQPY6-BWmECH3i.js → LabeledCountryMultiSelectField-CvCgQPY6-B7rs-G4g.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-BZ8L7RY0-DX5NmRdy.js → LabeledCreatableSingleSelectField-BZ8L7RY0-C93R75nU.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-B44mt0a7-C0VfTm18.js → LabeledDocumentField-B44mt0a7-Dp6vyLWF.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-6YP1FaQA-BrHR3rfW.js → LabeledDropDownFormattedTextField-6YP1FaQA-_JFhJDVE.js} +1 -1
  95. package/dist/assets/{LabeledText-Q6xdsHJ6-CFwsR7ll.js → LabeledText-Q6xdsHJ6-jEFXQqpw.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-ClUfUqjp-BZp8hOi3.js → LabeledUserSingleSelectWithSubtitlesField-ClUfUqjp-BY2cQORi.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-hbA4Pwlf-D_cCYzYL.js → LabeledZeniRolesDropDownField-hbA4Pwlf-G5_D5Gtw.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-CH7I7Hke-Bsatheht.js → LinkJETransactionPage-CH7I7Hke-q1B7Dx9N.js} +1 -1
  99. package/dist/assets/{LockCardPage-DLFjGMIe-CJwxHBTx.js → LockCardPage-DLFjGMIe-TydFOYMi.js} +1 -1
  100. package/dist/assets/{LowBalancePopup-DPe7elRO-Bgii0mzY.js → LowBalancePopup-DPe7elRO-eP5jxXRl.js} +1 -1
  101. package/dist/assets/{MagicLinkACHDetailsPage-DQc3pum0-C2Dyu42Z.js → MagicLinkACHDetailsPage-DQc3pum0-D1Gmh6nq.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-DtD1wZUs-CVU818YE.js → MagicLinkDomesticWireDetailsPage-DtD1wZUs-Gvw9Apv6.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-p1K2cYou-BMU75zJW.js → MagicLinkInternationalWireDetailsPage-p1K2cYou-8PmQXZzZ.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-uTUHm3oK-BGx1QWS3.js → MagicLinkSuccessPage-uTUHm3oK-B2xJnBjB.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-CrGigZw5-BF_Mel0J.js → MagicLinkTitleSection-CrGigZw5-Bjo78ZVr.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-BEpTd3QP-CtqpR-Gb.js → MailingDetailsSection-BEpTd3QP-BfrLbhzF.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-CPHG_qZj-Cv2vkFlb.js → MyBankConnectionsSettingsPage-CPHG_qZj-BOYITfqv.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-CvMl9E2P-C40qfFQ1.js → MyPendingActivationChargeCardListPage-CvMl9E2P-Dy5lJs80.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-CDUxWW5P-BV8AekOH.js → MyProfileSettingsPage-CDUxWW5P-Dkex7xXv.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-ukJ-8SxD-DzuBOs4j.js → NavBarWithPicker-ukJ-8SxD-CBAQTCnS.js} +1 -1
  111. package/dist/assets/{NavigationArrow-DLfHmE8t-CJQw-tog.js → NavigationArrow-DLfHmE8t-CuY-xdoZ.js} +1 -1
  112. package/dist/assets/{NavigationDots-TTIuTGav-Dpl3-lZ_.js → NavigationDots-TTIuTGav-CvAJzKYK.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-qrkVsl71-Gy1heqbr.js → NewGlobalMerchantPage-qrkVsl71-CU6QFm5V.js} +1 -1
  114. package/dist/assets/{NoDataChart-CHLcGmJY-o60E8S1E.js → NoDataChart-CHLcGmJY-DgdF4M0C.js} +1 -1
  115. package/dist/assets/{NoDataTable-Bv2f24Dy-BxdDK0Sh.js → NoDataTable-Bv2f24Dy-_7rUjX8u.js} +1 -1
  116. package/dist/assets/{NotFoundPage-De1VvWXR-CTgXCngp.js → NotFoundPage-De1VvWXR-ZDYmF6EK.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-BA6OA31--CBfWO-I3.js → NotificationSettingsPage-BA6OA31--D1T_HW6H.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-e5U6zFaL-CLHC4HiN.js → NotificationsListConfig-e5U6zFaL-Vy6t5CyS.js} +1 -1
  119. package/dist/assets/{NotificationsPage-B7xvgP8z-DCZ8FuvH.js → NotificationsPage-B7xvgP8z-CjkKaG8w.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-C5DN3Ujz-CwGzpZxP.js → OpExByVendorPage-C5DN3Ujz-CoITpHOi.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-BG9y5C0t-BmISyMhw.js → OverlayContainerPage-BG9y5C0t-d043dWYO.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-BBINfNiw-BOBMU-KK.js → PandLWithForecastPage-BBINfNiw-DEKXPK8S.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-D0U3JmOv-vufqhDlQ.js → PaymentAccountSetupBillingAddressSection-D0U3JmOv-G3JnibEt.js} +1 -1
  124. package/dist/assets/{PeoplePage-5vcxUe01-C3vcjFOm.js → PeoplePage-5vcxUe01-DOGlLQYB.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-CdRGFDrq-BqWqsGo2.js → ProductsCarousel-CdRGFDrq-B_PSv1yG.js} +1 -1
  126. package/dist/assets/{PromoBaseCards-CnRAEsCq-Bliwh9DN.js → PromoBaseCards-CnRAEsCq-mz_scZjs.js} +1 -1
  127. package/dist/assets/{QBOConnectionDialog-DVZWEDpK-Bc0_cD5P.js → QBOConnectionDialog-DVZWEDpK-8W_kaUAj.js} +1 -1
  128. package/dist/assets/{QBOSetupSection-qpeMgFEQ-C_--S51D.js → QBOSetupSection-qpeMgFEQ-D2NTJIoH.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BxdIzE6u-CQKnW4o9.js → ReimbursementApprovalRuleDetailPage-BxdIzE6u-BEGz27Kn.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRulesPage-DTWRo5Ie-DjHMSjnE.js → ReimbursementApprovalRulesPage-DTWRo5Ie-BRohF0yg.js} +1 -1
  131. package/dist/assets/{ReimbursementDetailPage-E6DAkd-i-BjsPRzGO.js → ReimbursementDetailPage-E6DAkd-i-BPCIlfBt.js} +1 -1
  132. package/dist/assets/{ReimbursementPromoPage-DIb3qZ6_-SpJeCRSI.js → ReimbursementPromoPage-DIb3qZ6_-x_GY1MkS.js} +1 -1
  133. package/dist/assets/{ReimbursementSetUpPage-BB1W8YH--B00Vhwv5.js → ReimbursementSetUpPage-BB1W8YH--BGG_KPn8.js} +1 -1
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-LVIfhug4-BO74jBI4.js → ReimbursementsBulkReviewDrawerPage-LVIfhug4-NCp09l_v.js} +1 -1
  135. package/dist/assets/{ReloadCard-D84Lsd_5-BzO2KGeI.js → ReloadCard-D84Lsd_5-MXambdF5.js} +1 -1
  136. package/dist/assets/{ReportTableViewSelector-Db3_WDLJ-DUTYFa_F.js → ReportTableViewSelector-Db3_WDLJ-DbMdOwe9.js} +1 -1
  137. package/dist/assets/{ReportsPage-Blkv8tLt-UF7wvIxP.js → ReportsPage-Blkv8tLt-K6sWvWLg.js} +1 -1
  138. package/dist/assets/{RevenueChart-Dfh_D_Vp-00E7CM78.js → RevenueChart-Dfh_D_Vp-D7bRXYVD.js} +1 -1
  139. package/dist/assets/{ReviewDetailsPage-DvFKpxt5-x-cocqaX.js → ReviewDetailsPage-DvFKpxt5-BODCMuua.js} +1 -1
  140. package/dist/assets/{ReviewOverlay-B22mWGHc-CSe4tQzR.js → ReviewOverlay-B22mWGHc-CYTbwd5A.js} +1 -1
  141. package/dist/assets/{RoleWithToolTip-Z-Qz5ghD-BF3ViIqp.js → RoleWithToolTip-Z-Qz5ghD-34XBNGuo.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-B1Tu4OmB-BoWzKj3F.js → ScheduleDetailsFixedAssetsPage-B1Tu4OmB-D4XW23fe.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsPage-hMZQawbc-B5K8qyv9.js → ScheduleDetailsPage-hMZQawbc-Br-Aas5C.js} +1 -1
  144. package/dist/assets/{ScheduleSequenceTable-EKOr-6FS-CIMOW3Lv.js → ScheduleSequenceTable-EKOr-6FS-Dli2rxtC.js} +1 -1
  145. package/dist/assets/{ScreenRoutes-Bsr7kGfq.js → ScreenRoutes-DRknkA7z.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-Bc1EdtKp-0yaISOWV.js → SetUpAccountSection-Bc1EdtKp-B80GMrJO.js} +1 -1
  147. package/dist/assets/{SignIn-DYdZJ_1z-gBNUWjHV.js → SignIn-DYdZJ_1z-UsnQLULP.js} +1 -1
  148. package/dist/assets/{SignInScreen-BUAoHqsZ.js → SignInScreen-1o1BRgto.js} +1 -1
  149. package/dist/assets/{SpendManagementListViewPage-C3b_1mS_-DDW1AA6H.js → SpendManagementListViewPage-C3b_1mS_-ChhGoP3n.js} +3 -3
  150. package/dist/assets/{SpendManagementPerTabPage-BctgHJjH-BYX0TtFW.js → SpendManagementPerTabPage-BctgHJjH-Dj_QWsKu.js} +1 -1
  151. package/dist/assets/{SpendManagementSection-DjGyXgmL-Cmes-08v.js → SpendManagementSection-DjGyXgmL-CXqu1lrG.js} +1 -1
  152. package/dist/assets/{StatementItem-DkYczigh-CSnHMTYV.js → StatementItem-DkYczigh-Vz45qgkU.js} +1 -1
  153. package/dist/assets/{StatementsPage-CgNLCUZ1-C1Zt1XYf.js → StatementsPage-CgNLCUZ1-DVRCO9nF.js} +1 -1
  154. package/dist/assets/{StatusSwitcher-CU6EtKkZ-C1BL7O8L.js → StatusSwitcher-CU6EtKkZ-CQnZTR-3.js} +1 -1
  155. package/dist/assets/{SubTabSwitcher-BKn38ZMT-B9w-rcp8.js → SubTabSwitcher-BKn38ZMT-LjXonTcT.js} +1 -1
  156. package/dist/assets/{SummaryCard-ROGEOK04-BgGopNGq.js → SummaryCard-ROGEOK04-1nRVaw9L.js} +1 -1
  157. package/dist/assets/{TaskManagementPage-B5otKSZb-BFE0mAT-.js → TaskManagementPage-B5otKSZb-BAc4UZ94.js} +1 -1
  158. package/dist/assets/{TimeRangeSwitcher-JnO2pOTw-N9yivG4V.js → TimeRangeSwitcher-JnO2pOTw-NQgb4Py3.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcher-DfDRlQ7n-CpbdT0B7.js → TimeframeSwitcher-DfDRlQ7n-C-4OcGGg.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcherWithToggle-CaxIUKDr-DQWeAlGt.js → TimeframeSwitcherWithToggle-CaxIUKDr-CMy9xEZ_.js} +1 -1
  161. package/dist/assets/{TopExCard-BdqEYR_a-Px7omjuw.js → TopExCard-BdqEYR_a-CQCJhl1f.js} +1 -1
  162. package/dist/assets/{TopExDetailPage-CsnKTK9E-RTm78wxT.js → TopExDetailPage-CsnKTK9E-CSC7i5p2.js} +1 -1
  163. package/dist/assets/{TransactionActivityLogPage-D9gPySqM-BB8d-BVV.js → TransactionActivityLogPage-D9gPySqM-0NC7j8Lk.js} +1 -1
  164. package/dist/assets/{TransactionDetailPage-m6wkPmbZ-BkoyM4F5.js → TransactionDetailPage-m6wkPmbZ-Bx-RWZm-.js} +1 -1
  165. package/dist/assets/{TransactionList-fHfxF4uV-LtxJekW-.js → TransactionList-fHfxF4uV-0x4qWvCB.js} +1 -1
  166. package/dist/assets/{TransactionListBig-8tRV7xaa-Jk-ZnUXx.js → TransactionListBig-8tRV7xaa-B1edNXwy.js} +1 -1
  167. package/dist/assets/{TransactionListPage-C6ZUsD4l-B2cnsaR4.js → TransactionListPage-C6ZUsD4l-CXNM7FKv.js} +1 -1
  168. package/dist/assets/{TransactionVendorDetailPage-Di-VFMud-BTshDO7x.js → TransactionVendorDetailPage-Di-VFMud-1RqHF832.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-BYVv35xE-Da_CHRTD.js → TransferDrawerPage-BYVv35xE-DDw1ijzF.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-CXOmwW6t-BcQs0RHi.js → TreasuryOverviewPage-CXOmwW6t-DKnKsk2O.js} +1 -1
  171. package/dist/assets/{TreasuryPromoPage-B-PDUb2u-B-T-cvTP.js → TreasuryPromoPage-B-PDUb2u-gmvgl3tp.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-hjW6l23C-C-DgyZev.js → TreasuryStatementsPage-hjW6l23C-CSgYTP5s.js} +1 -1
  173. package/dist/assets/{TreasuryTaxLetterPage-DYwjPZ9c-DOWoHFiR.js → TreasuryTaxLetterPage-DYwjPZ9c-ri_9NHEK.js} +1 -1
  174. package/dist/assets/{TrendChart-wH6MSice-DJRpqJPt.js → TrendChart-wH6MSice-CN-byzC1.js} +1 -1
  175. package/dist/assets/{TrendWithTransactions-C4RoOFet-B4g09uS7.js → TrendWithTransactions-C4RoOFet-Cx1m7YON.js} +1 -1
  176. package/dist/assets/{UncategorizedAccountsMappingPage-Blk80xZv-CW9X7gIW.js → UncategorizedAccountsMappingPage-Blk80xZv-7aIv7F0O.js} +1 -1
  177. package/dist/assets/{UnitIntegrationPage-B8yOgT6I-DGHJCnWv.js → UnitIntegrationPage-B8yOgT6I-6wgGnRtq.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-CSfIPVfJ-BDLDUOxO.js → UploadAdditionalDocumentOverlay-CSfIPVfJ-DWVRVDhW.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-pOBQ1C8g-B_aiKxPv.js → Vendor2FAPopup-pOBQ1C8g-rK9Qc45F.js} +1 -1
  180. package/dist/assets/{VendorACHDetailsPage-vLOpvill-CqCIfcoF.js → VendorACHDetailsPage-vLOpvill-CXshhXMA.js} +1 -1
  181. package/dist/assets/{VendorDetailPage-D_6A3zAl-tXWG3blq.js → VendorDetailPage-D_6A3zAl-BZoUToPV.js} +1 -1
  182. package/dist/assets/{VendorDomesticWireDetailsPage-CibBnVcZ-BoJ0ATIU.js → VendorDomesticWireDetailsPage-CibBnVcZ-DyOQwbxM.js} +1 -1
  183. package/dist/assets/{VendorFiling1099EditablePage-ORFpUADS-rHSTxH-v.js → VendorFiling1099EditablePage-ORFpUADS-Bswa5OOk.js} +1 -1
  184. package/dist/assets/{VendorFirstReviewPage-B2GFRqrs-DYmryaKj.js → VendorFirstReviewPage-B2GFRqrs-zl8OlSDa.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-DCI8Yjx2-DMlPUggt.js → VendorInternationalWireDetailsPage-DCI8Yjx2-CctDja4o.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C2TqWbKk-CfEJ4hqR.js → VendorInternationalWireSwiftDetailsPage-C2TqWbKk-DzwTuu4T.js} +1 -1
  187. package/dist/assets/{VendorsAccountsSection-CpHLUjT0-DtbgyO3N.js → VendorsAccountsSection-CpHLUjT0-dhRP0lwq.js} +1 -1
  188. package/dist/assets/{VerifyDevice-B7mUvk_I-DOI_nJJs.js → VerifyDevice-B7mUvk_I-CzuH6s3l.js} +1 -1
  189. package/dist/assets/{VideoPlayer-uODifSjz-C5_6EW14.js → VideoPlayer-uODifSjz-D4XK8eqz.js} +1 -1
  190. package/dist/assets/{VideoPopup-vRgVcJFh-DUXScMWN.js → VideoPopup-vRgVcJFh-CWeBW27o.js} +1 -1
  191. package/dist/assets/{WarningsDrawerPage-GqThVUqO-BliCg9jp.js → WarningsDrawerPage-GqThVUqO-B6WujMJX.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-Dplz1Jte-CmvovpKF.js → ZeniAccountDetailPage-Dplz1Jte-CbAEppCh.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-CXVzZ4jo-OfYDDT9h.js → ZeniAccountListViewPage-CXVzZ4jo-YHwdYwOd.js} +1 -1
  194. package/dist/assets/{ZeniAccountNavBarPieces-DymlaQkB-raQlgOHA.js → ZeniAccountNavBarPieces-DymlaQkB-BmZwl5X7.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-BBNUZmma-BaNIxJaE.js → ZeniAccountPromoPage-BBNUZmma-CivZJ93S.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-CHHGMoCM-Bpe-HUos.js → ZeniAccountSetupPage-CHHGMoCM-CBQdomjd.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-BgmdPASs-DelYiDhm.js → ZeniCopyright-BgmdPASs-Do4L5EDE.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-DMsck2bu-DCLTW9RT.js → ZeniTransferAmountSlider-DMsck2bu-BgpZa9kM.js} +1 -1
  199. package/dist/assets/{analyticsHelper-B7l4_BHB.js → analyticsHelper-Ce8UOTIh.js} +1 -1
  200. package/dist/assets/{analyticsHelper-DmrBYvLC-BYxc55FI.js → analyticsHelper-DmrBYvLC-D2h-ujvV.js} +1 -1
  201. package/dist/assets/{chartTypes-xMrDPcl9-DKVI72OS.js → chartTypes-xMrDPcl9-DMPo2m6X.js} +1 -1
  202. package/dist/assets/{commonDimensions-BeMzLvmC-DeA_97Hu.js → commonDimensions-BeMzLvmC-Of6gSXfk.js} +1 -1
  203. package/dist/assets/{commonTypes-DYUaD7k3-CaDbaWCj.js → commonTypes-DYUaD7k3-BYBNckLB.js} +1 -1
  204. package/dist/assets/{downloadPdf-vnuUU3X8-B7Q2l1ET.js → downloadPdf-vnuUU3X8-C1foHh87.js} +1 -1
  205. package/dist/assets/{helper-BabSYuW2-DU5KaXId.js → helper-BabSYuW2-DDSvGaBt.js} +1 -1
  206. package/dist/assets/{index-CQD_nutl.js → index-Ds72Hgse.js} +5 -5
  207. package/dist/assets/{mapLoadingInProgressToTreeNode-Bs8-HXsR-byZZ2UVu.js → mapLoadingInProgressToTreeNode-Bs8-HXsR-_wPBA97G.js} +1 -1
  208. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-O-hSpwLG-CBm5dWL6.js → mapSectionWithAcOnlyToTreeNode-O-hSpwLG-BS81V7lg.js} +1 -1
  209. package/dist/assets/{mapSpacerToTreeNode-BhgPzzom-CExmYnCM.js → mapSpacerToTreeNode-BhgPzzom-tW4DdKWr.js} +1 -1
  210. package/dist/assets/{mapTimeframeBalancesToTreeNode-Ldd39Ct5-CMF3q4cV.js → mapTimeframeBalancesToTreeNode-Ldd39Ct5-CkI8sl4c.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-nYrRWCim-DX2Ouhk3.js → mapTimeframeBalancesToTreeNode-nYrRWCim-LQ3QQrs7.js} +1 -1
  212. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D8UYLJpF-CA2QnDit.js → mapTimeframeHeaderLoadingInProgressToTreeNode-D8UYLJpF-CEuI_Nwp.js} +1 -1
  213. package/dist/assets/{toCOABalancesWithID-BghIFr09-Cj1ZDevr.js → toCOABalancesWithID-BghIFr09-JfzGl_BI.js} +1 -1
  214. package/dist/assets/{toChartData-DRKQ5lEf-o8RM5Syw.js → toChartData-DRKQ5lEf-Db95Ptzd.js} +1 -1
  215. package/dist/assets/{uploadAttachment-DrIqsgBH-KXnF0yC8.js → uploadAttachment-DrIqsgBH-DSZgn47-.js} +1 -1
  216. package/dist/assets/{uploadReceipts-CIgkuVpu-DVqh43Th.js → uploadReceipts-CIgkuVpu-7-KnwPkr.js} +1 -1
  217. package/dist/index.html +1 -1
  218. package/package.json +1 -1
  219. package/dist/assets/CustomerOnboardingContainerPage-DbMXDaX1-Bt7wIkF_.js +0 -1
@@ -1,4 +1,4 @@
1
- import{ay as tt,V as t,gn as Bt,a9 as Pt,J as Nt,y as _t,cg as Lt,x as m,O as it,go as Ot,gq as Et,gr as Wt,ct as Ae,cu as Me,cv as Re,bE as Be,ac as f,bq as Kt,dx as Vt,gs as Ft,gD as Pe,o as a,gt as Ne,fo as b,gw as g,fr as w,aQ as _e,fn as Le,w as Y,gy as Oe,aT as Ut,aq as Gt,gz as Yt,gA as ne,bz as qt,gB as Ht,c as Zt,b as Jt,M as Xt,an as at,bb as rt,p as q,ao as Qt,bZ as ei,ak as ti,gY as ii,gS as ai,u as c,cl as ri,d1 as oi}from"./index-CQD_nutl.js";import{a as u}from"./sentry-B9mdFwQp.js";import{n as r}from"./mui-Dk05P7Hv.js";import{bL as ni,bZ as li,GC as si}from"./zeni-epic-state-ksdE_TIc.js";import di from"./InvoiceUploadSection-CnYvPpZv-Gp4_i4AV.js";import{r as ci,h as x,u as mi}from"./types-DyvtCprH-NFPm5TaG.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";import"./AttachmentView-CwRBUVxC-B-A8o2yf.js";import"./uploadReceipts-CIgkuVpu-DVqh43Th.js";import"./upload-reimbursement-receipt-O2N8vcO7-DZz1sA_Y.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},v=new e.Error().stack;v&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[v]="97ba5dbc-ba3e-4588-b99f-dd1b3fcc24f6",e._sentryDebugIdIdentifier="sentry-dbid-97ba5dbc-ba3e-4588-b99f-dd1b3fcc24f6")}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])},pi={formTitle:new Jt("h6Regular","h5Regular")},Ee=({remiDetails:e,uploadInvoiceEndPoint:v,authParams:z,isAdmin:_,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:p,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:ot,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:H,redirectToEditableReimbursementScreen:nt,onDuplicateLineClick:lt,approveOrRejectRemi:he,deleteReimbursement:st,cancelAndDeleteReport:ye,handleZeniLogoClick:dt,onAddNewRule:be,initialOpenThreadRequest:A})=>{const d=tt(),ct=Pt().analytics,n=Nt(),ge=_t(),[mt,M]=u.useState(!1),[Z,J]=u.useState(!1),[pt,X]=u.useState(!1),[Q,ee]=u.useState("approved"),L=u.useRef(null),[D,te]=u.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,ut]=u.useState(null),[ht,O]=u.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=u.useRef({}),xe=l=>{const o=we.current[l];o!=null&&setTimeout(()=>mi(o,L.current),100)};u.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&H()},[e,H]),u.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const o=l.substring(1);xe(o)}},[]);const yt=()=>{H()};Lt({componentName:"reimbursement.details"});const bt={onOkClick:()=>{M(!1),D.primaryButtonText===i.buttons.delete?st?.():D.title===i.cancelReportTitle?ye?.():D.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{M(!1)}},S=s.labelWidth.value(n),R=s.largeLabelWidth.value(n),fe=it.getLocalizedStrings(),{common:{texts:{comments:gt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:wt,replyAComment:xt},tooltip:{resolveComment:ft,unResolveComment:$t}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:E}=fe.spendManagement.reimbursement,ie=e.remiDetails?.reportTitle,I=e.remiDetails?.lines??[],W=e.remiDetails?.reimbursementInfo.stage,K=e.remiDetails?.reimbursementInfo.billStatus,V=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=W?.code==="paid",vt=Te?W:K?.code=="approved"&&V?.code?V:K,T=ui(e.remiDetails),B=K?.code=="approved"&&V?.code?V:K,F=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{te({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),M(!0)},Tt=()=>{te({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},jt=()=>{te({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},De=()=>{nt()},St={onOkClick:l=>{X(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{X(!1)}},It=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(ee("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},Dt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(ee("delete"),Ie()):(ee("rejected"),X(!0))},kt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ni(li(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,ae=e.remiDetails?.reimbursementInfo.expectedDepositDate??kt,Ct=e.remiDetails?.lines?.some(l=>{const o=l.lineDetail;return o?.account?.isDeleted===!0&&o?.account?.isBillEditableCoaAccountType===!1})??!1,ke=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&ot&&!Ct,zt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",re=vt?.code,At=ci(e.duplicateLineByLineId),Ce=e.duplicateReimbursementStatus.fetchState==="Completed"&&At>0,{requestToOpenThread:oe,setRequestToOpenThread:U,setOpenThread:G}=u.useContext(Ot);u.useEffect(()=>{A?.threadId!=null&&A?.companyId!=null&&A?.entityType!=null&&U(A)},[A,U]);const{threads:P,isLoading:k}=Et(),Mt=u.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Wt)),[P]).length,Rt=u.useCallback((l,o)=>{G(o),O(!1)},[G,O]);u.useEffect(()=>{oe?.threadId!=null&&P.length>0&&!k&&(G(oe.threadId),U(null))},[oe,P,k,G,U]);const y={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},N=si(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Ei,{windowSize:n,ref:L,children:[mt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:D.title}),descriptionComponent:t.jsx(Me,{children:D.description}),primaryButtonText:D.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:D.secondaryButtonText,action:bt}):null,pt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:St,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ri,{windowSize:n,"data-testid":f("reimbursement-detail-page-nav-bar-container"),children:[n!=="small"?t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Bi,{onClick:()=>dt?.(),"data-testid":f("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ge.colors.background,keepBackgroundOnScroll:!0,scrollableContent:L,source:"ReimbursementDetailPage"}):null,n!=="small"?t.jsx(zi,{}):null,t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-right"),title:ie??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:n!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ni,{children:[p?t.jsxs(_i,{isDisabled:k,onClick:k?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ut({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),O(!0),ct.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(o=>Vt(o)),void 0,void 0,"page icon")},"data-testid":f("remi-comments-section"),children:[t.jsx(Kt,{count:k?void 0:Mt,isLoading:k,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(Oi,{size:n,onClick:()=>yt(),"data-testid":f("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:L,enableTitleOnScroll:n!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Yi,{children:[n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{windowSize:n,children:t.jsx(Je,{windowsSize:n,children:ie})}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&T!=null?t.jsx(Ye,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null,B?.code!=null?n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):Ce?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Ve,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(He,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,I.map((l,o)=>{const j=e.duplicateLineByLineId[l.lineId];return t.jsxs(et,{windowSize:n,children:[t.jsx(Fi,{windowSize:n,children:t.jsx(Ui,{bottomSeperator:I.length!==1,windowSize:n,children:t.jsx(di,{showAutofill:!1,uploadInvoiceEndPoint:v,authParams:z,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:I.length>1?`#${o+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:I.length-1===o||o===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Vi,{windowSize:n,children:[o===0&&n!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Ze,{windowSize:n,children:[t.jsx(Je,{windowsSize:n,children:ie}),me&&T!=null?t.jsx(Ye,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,B?.code!=null?t.jsx(He,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):Ce?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Ve,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(xi,{windowSize:n,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[n!=="small"?t.jsx(wi,{children:t.jsx(fi,{children:I.length>1?`#${o+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs($i,{windowSize:n,children:[j?.duplicateLineId!=null?t.jsxs(bi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(j.isDuplicateWithinTransaction&&j.duplicateLineId!=null)return xe(`L${j.duplicateLineId}`);j.duplicateTransactionId!=null&&j.duplicateLineId!=null&&lt(j.duplicateTransactionId,j.duplicateLineId)},"data-testid":f("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${o}.mileage.reimbursementType`:`${o}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("reimbursementType",o,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(g,{label:{label:i.reimbursementType,width:R},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx($,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"mileage")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("distanceInMiles",o,"mileage")}`},children:t.jsx(g,{label:{label:i.distanceInMiles,width:R},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"mileage")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"mileage")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"mileage")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("merchant",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.merchant,width:R},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("account",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.category,width:S},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),I.length!==1&&I.length===o+1&&t.jsxs(Ki,{windowSize:n,children:[t.jsxs(Xe,{windowSize:n,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:Y.h6Regular.cssObject,decimalStyles:Y.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,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:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),I.length===1&&t.jsxs(et,{windowSize:n,children:[t.jsx(qe,{}),t.jsxs(hi,{windowSize:n,children:[t.jsx(Wi,{windowSize:n,children:t.jsxs(Xe,{windowSize:n,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:Y.h6Regular.cssObject,decimalStyles:Y.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(yi,{windowSize:n,children:t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,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:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Gi,{})]}),Te||F===!0?null:t.jsxs(Mi,{children:[n!=="small"?t.jsx(qe,{}):null,t.jsx(Ti,{windowSize:n,"data-testid":f("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Z===!0&&J(!1)},children:t.jsx(Ut,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.delete:i.buttons.deleteReport:n==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:Dt,style:{width:s.footerButtonWidth.value(n)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.edit:i.buttons.editAndResubmit:n==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:It,style:{width:s.footerButtonWidth.value(n)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(vi,{children:t.jsxs(Ai,{windowSize:n,children:[!N&&Z?t.jsx(Gt,{onClickAway:()=>J(!1),children:t.jsxs(Ci,{windowSize:n,children:[re!=="processing"?t.jsx(le,{onClick:Ie,"data-testid":f("remi-delete-action"),children:i.buttons.deleteReport}):null,re==="processing"?t.jsx(le,{onClick:Tt,"data-testid":f("remi-cancel-action"),children:i.buttons.cancel}):null,re==="processing"?t.jsx(le,{onClick:jt,"data-testid":f("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(ki,{windowSize:n,children:[!N&&ke?t.jsx(Di,{onClick:De,"data-testid":f("remi-edit-button"),children:t.jsx(Ii,{})}):null,!N&&zt===!0?t.jsx(Si,{windowSize:n,showEditIcon:ke,children:t.jsx(ji,{onClick:()=>J(!Z),"data-testid":f("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),p?t.jsx(Yt,{isDrawerOpen:ht,allowComposer:!0,drawerTitle:gt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:k,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:wt,replyComposerPlaceholder:xt,threadResolve:ft,threadUnResolve:$t},onThreadClick:(l,o)=>Rt(l,o),onCloseAllThreadsDrawer:()=>O(!1),drawerSectionStyle:{width:"400px",backgroundColor:ge.colors.background}}):null]})},ca=e=>{const v=tt().currentTenant?.companyId,z=e.remiDetails.remiDetails?.id;if(!(e.isReimbursementCommentingEnabled&&z!=null&&v!=null))return t.jsx(Ee,{...e});const _=`dashboard_${v}`;return t.jsx(Bt,{roomId:_,filter:{application:"dashboard",companyId:v,entityId:z,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(Ee,{...e})})},ui=e=>{const v=it.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:v.tabsById.deleted,color:ne.deleted.color,bgColor:ne.deleted.bgColor,borderColor:ne.deleted.borderColor,code:"deleted"}},hi=r.div`
1
+ import{ay as tt,V as t,gn as Bt,a9 as Pt,J as Nt,y as _t,cg as Lt,x as m,O as it,go as Ot,gq as Et,gr as Wt,ct as Ae,cu as Me,cv as Re,bE as Be,ac as f,bq as Kt,dx as Vt,gs as Ft,gD as Pe,o as a,gt as Ne,fo as b,gw as g,fr as w,aQ as _e,fn as Le,w as Y,gy as Oe,aT as Ut,aq as Gt,gz as Yt,gA as ne,bz as qt,gB as Ht,c as Zt,b as Jt,M as Xt,an as at,bb as rt,p as q,ao as Qt,bZ as ei,ak as ti,gY as ii,gS as ai,u as c,cl as ri,d1 as oi}from"./index-Ds72Hgse.js";import{a as u}from"./sentry-B9mdFwQp.js";import{n as r}from"./mui-Dk05P7Hv.js";import{bL as ni,bZ as li,GC as si}from"./zeni-epic-state-ksdE_TIc.js";import di from"./InvoiceUploadSection-CnYvPpZv-DI5O-CEY.js";import{r as ci,h as x,u as mi}from"./types-DyvtCprH-NFPm5TaG.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";import"./AttachmentView-CwRBUVxC-lkozvmAY.js";import"./uploadReceipts-CIgkuVpu-7-KnwPkr.js";import"./upload-reimbursement-receipt-O2N8vcO7-DZz1sA_Y.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},v=new e.Error().stack;v&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[v]="97ba5dbc-ba3e-4588-b99f-dd1b3fcc24f6",e._sentryDebugIdIdentifier="sentry-dbid-97ba5dbc-ba3e-4588-b99f-dd1b3fcc24f6")}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])},pi={formTitle:new Jt("h6Regular","h5Regular")},Ee=({remiDetails:e,uploadInvoiceEndPoint:v,authParams:z,isAdmin:_,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:p,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:ot,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:H,redirectToEditableReimbursementScreen:nt,onDuplicateLineClick:lt,approveOrRejectRemi:he,deleteReimbursement:st,cancelAndDeleteReport:ye,handleZeniLogoClick:dt,onAddNewRule:be,initialOpenThreadRequest:A})=>{const d=tt(),ct=Pt().analytics,n=Nt(),ge=_t(),[mt,M]=u.useState(!1),[Z,J]=u.useState(!1),[pt,X]=u.useState(!1),[Q,ee]=u.useState("approved"),L=u.useRef(null),[D,te]=u.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,ut]=u.useState(null),[ht,O]=u.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=u.useRef({}),xe=l=>{const o=we.current[l];o!=null&&setTimeout(()=>mi(o,L.current),100)};u.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&H()},[e,H]),u.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const o=l.substring(1);xe(o)}},[]);const yt=()=>{H()};Lt({componentName:"reimbursement.details"});const bt={onOkClick:()=>{M(!1),D.primaryButtonText===i.buttons.delete?st?.():D.title===i.cancelReportTitle?ye?.():D.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{M(!1)}},S=s.labelWidth.value(n),R=s.largeLabelWidth.value(n),fe=it.getLocalizedStrings(),{common:{texts:{comments:gt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:wt,replyAComment:xt},tooltip:{resolveComment:ft,unResolveComment:$t}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:E}=fe.spendManagement.reimbursement,ie=e.remiDetails?.reportTitle,I=e.remiDetails?.lines??[],W=e.remiDetails?.reimbursementInfo.stage,K=e.remiDetails?.reimbursementInfo.billStatus,V=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=W?.code==="paid",vt=Te?W:K?.code=="approved"&&V?.code?V:K,T=ui(e.remiDetails),B=K?.code=="approved"&&V?.code?V:K,F=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{te({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),M(!0)},Tt=()=>{te({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},jt=()=>{te({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},De=()=>{nt()},St={onOkClick:l=>{X(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{X(!1)}},It=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(ee("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},Dt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(ee("delete"),Ie()):(ee("rejected"),X(!0))},kt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ni(li(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,ae=e.remiDetails?.reimbursementInfo.expectedDepositDate??kt,Ct=e.remiDetails?.lines?.some(l=>{const o=l.lineDetail;return o?.account?.isDeleted===!0&&o?.account?.isBillEditableCoaAccountType===!1})??!1,ke=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&ot&&!Ct,zt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",re=vt?.code,At=ci(e.duplicateLineByLineId),Ce=e.duplicateReimbursementStatus.fetchState==="Completed"&&At>0,{requestToOpenThread:oe,setRequestToOpenThread:U,setOpenThread:G}=u.useContext(Ot);u.useEffect(()=>{A?.threadId!=null&&A?.companyId!=null&&A?.entityType!=null&&U(A)},[A,U]);const{threads:P,isLoading:k}=Et(),Mt=u.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Wt)),[P]).length,Rt=u.useCallback((l,o)=>{G(o),O(!1)},[G,O]);u.useEffect(()=>{oe?.threadId!=null&&P.length>0&&!k&&(G(oe.threadId),U(null))},[oe,P,k,G,U]);const y={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},N=si(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Ei,{windowSize:n,ref:L,children:[mt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:D.title}),descriptionComponent:t.jsx(Me,{children:D.description}),primaryButtonText:D.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:D.secondaryButtonText,action:bt}):null,pt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:St,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ri,{windowSize:n,"data-testid":f("reimbursement-detail-page-nav-bar-container"),children:[n!=="small"?t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Bi,{onClick:()=>dt?.(),"data-testid":f("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ge.colors.background,keepBackgroundOnScroll:!0,scrollableContent:L,source:"ReimbursementDetailPage"}):null,n!=="small"?t.jsx(zi,{}):null,t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-right"),title:ie??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:n!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ni,{children:[p?t.jsxs(_i,{isDisabled:k,onClick:k?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ut({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),O(!0),ct.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(o=>Vt(o)),void 0,void 0,"page icon")},"data-testid":f("remi-comments-section"),children:[t.jsx(Kt,{count:k?void 0:Mt,isLoading:k,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(Oi,{size:n,onClick:()=>yt(),"data-testid":f("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:L,enableTitleOnScroll:n!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Yi,{children:[n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{windowSize:n,children:t.jsx(Je,{windowsSize:n,children:ie})}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&T!=null?t.jsx(Ye,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null,B?.code!=null?n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):Ce?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Ve,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(He,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,I.map((l,o)=>{const j=e.duplicateLineByLineId[l.lineId];return t.jsxs(et,{windowSize:n,children:[t.jsx(Fi,{windowSize:n,children:t.jsx(Ui,{bottomSeperator:I.length!==1,windowSize:n,children:t.jsx(di,{showAutofill:!1,uploadInvoiceEndPoint:v,authParams:z,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:I.length>1?`#${o+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:I.length-1===o||o===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Vi,{windowSize:n,children:[o===0&&n!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Ze,{windowSize:n,children:[t.jsx(Je,{windowsSize:n,children:ie}),me&&T!=null?t.jsx(Ye,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,B?.code!=null?t.jsx(He,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):Ce?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Ve,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(xi,{windowSize:n,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[n!=="small"?t.jsx(wi,{children:t.jsx(fi,{children:I.length>1?`#${o+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs($i,{windowSize:n,children:[j?.duplicateLineId!=null?t.jsxs(bi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(j.isDuplicateWithinTransaction&&j.duplicateLineId!=null)return xe(`L${j.duplicateLineId}`);j.duplicateTransactionId!=null&&j.duplicateLineId!=null&&lt(j.duplicateTransactionId,j.duplicateLineId)},"data-testid":f("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${o}.mileage.reimbursementType`:`${o}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("reimbursementType",o,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(g,{label:{label:i.reimbursementType,width:R},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx($,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"mileage")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("distanceInMiles",o,"mileage")}`},children:t.jsx(g,{label:{label:i.distanceInMiles,width:R},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"mileage")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"mileage")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"mileage")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("merchant",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.merchant,width:R},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("account",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.category,width:S},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),I.length!==1&&I.length===o+1&&t.jsxs(Ki,{windowSize:n,children:[t.jsxs(Xe,{windowSize:n,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:Y.h6Regular.cssObject,decimalStyles:Y.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,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:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),I.length===1&&t.jsxs(et,{windowSize:n,children:[t.jsx(qe,{}),t.jsxs(hi,{windowSize:n,children:[t.jsx(Wi,{windowSize:n,children:t.jsxs(Xe,{windowSize:n,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:Y.h6Regular.cssObject,decimalStyles:Y.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(yi,{windowSize:n,children:t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,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:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Gi,{})]}),Te||F===!0?null:t.jsxs(Mi,{children:[n!=="small"?t.jsx(qe,{}):null,t.jsx(Ti,{windowSize:n,"data-testid":f("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Z===!0&&J(!1)},children:t.jsx(Ut,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.delete:i.buttons.deleteReport:n==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:Dt,style:{width:s.footerButtonWidth.value(n)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.edit:i.buttons.editAndResubmit:n==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:It,style:{width:s.footerButtonWidth.value(n)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(vi,{children:t.jsxs(Ai,{windowSize:n,children:[!N&&Z?t.jsx(Gt,{onClickAway:()=>J(!1),children:t.jsxs(Ci,{windowSize:n,children:[re!=="processing"?t.jsx(le,{onClick:Ie,"data-testid":f("remi-delete-action"),children:i.buttons.deleteReport}):null,re==="processing"?t.jsx(le,{onClick:Tt,"data-testid":f("remi-cancel-action"),children:i.buttons.cancel}):null,re==="processing"?t.jsx(le,{onClick:jt,"data-testid":f("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(ki,{windowSize:n,children:[!N&&ke?t.jsx(Di,{onClick:De,"data-testid":f("remi-edit-button"),children:t.jsx(Ii,{})}):null,!N&&zt===!0?t.jsx(Si,{windowSize:n,showEditIcon:ke,children:t.jsx(ji,{onClick:()=>J(!Z),"data-testid":f("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),p?t.jsx(Yt,{isDrawerOpen:ht,allowComposer:!0,drawerTitle:gt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:k,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:wt,replyComposerPlaceholder:xt,threadResolve:ft,threadUnResolve:$t},onThreadClick:(l,o)=>Rt(l,o),onCloseAllThreadsDrawer:()=>O(!1),drawerSectionStyle:{width:"400px",backgroundColor:ge.colors.background}}):null]})},ca=e=>{const v=tt().currentTenant?.companyId,z=e.remiDetails.remiDetails?.id;if(!(e.isReimbursementCommentingEnabled&&z!=null&&v!=null))return t.jsx(Ee,{...e});const _=`dashboard_${v}`;return t.jsx(Bt,{roomId:_,filter:{application:"dashboard",companyId:v,entityId:z,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(Ee,{...e})})},ui=e=>{const v=it.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:v.tabsById.deleted,color:ne.deleted.color,bgColor:ne.deleted.bgColor,borderColor:ne.deleted.borderColor,code:"deleted"}},hi=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{ay as ne,y as S,J as k,aS as le,V as e,ac as a,fz as ae,bE as de,a as u,ag as d,O as E,o as s,as as ce,e as me,aV as V,ao as pe,x as xe,p as z,cI as he,aW as ue,bc as ge,u as we}from"./index-CQD_nutl.js";import{a as j}from"./sentry-B9mdFwQp.js";import{n as r}from"./mui-Dk05P7Hv.js";import{GB as je,bQ as be}from"./zeni-epic-state-ksdE_TIc.js";import{C as fe}from"./VideoPopup-vRgVcJFh-DUXScMWN.js";import{M as v}from"./usp-line-BBd1wKwW-BUoEX_Hw.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";import"./VideoPlayer-uODifSjz-C5_6EW14.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]="20048394-0b5b-4c05-9022-45b096397c3a",i._sentryDebugIdIdentifier="sentry-dbid-20048394-0b5b-4c05-9022-45b096397c3a")}catch{}})();const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",_="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{ay as ne,y as S,J as k,aS as le,V as e,ac as a,fz as ae,bE as de,a as u,ag as d,O as E,o as s,as as ce,e as me,aV as V,ao as pe,x as xe,p as z,cI as he,aW as ue,bc as ge,u as we}from"./index-Ds72Hgse.js";import{a as j}from"./sentry-B9mdFwQp.js";import{n as r}from"./mui-Dk05P7Hv.js";import{GB as je,bQ as be}from"./zeni-epic-state-ksdE_TIc.js";import{C as fe}from"./VideoPopup-vRgVcJFh-CWeBW27o.js";import{M as v}from"./usp-line-BBd1wKwW-BUoEX_Hw.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";import"./VideoPlayer-uODifSjz-D4XK8eqz.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]="20048394-0b5b-4c05-9022-45b096397c3a",i._sentryDebugIdIdentifier="sentry-dbid-20048394-0b5b-4c05-9022-45b096397c3a")}catch{}})();const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",_="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{y as Ee,J as Te,aS as N,aa as Je,cJ as qe,O as Ve,aX as Ce,V as t,fh as Ge,p as G,x as s,bE as Ze,L as Qe,ae as Xe,fA as ve,dT as Ye,fB as Ke,by as et,dJ as tt,aT as it,o as a,fD as nt,u as n,cl as ot,cN as at,ez as lt,fM as ke,fN as $e,gm as st,a as rt,ac as Pe,b as Ae,bO as dt,ak as ct,bv as ut}from"./index-CQD_nutl.js";import{a as o}from"./sentry-B9mdFwQp.js";import{n as i}from"./mui-Dk05P7Hv.js";import{bJ as mt}from"./zeni-epic-state-ksdE_TIc.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-CSfIPVfJ-BDLDUOxO.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.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]="331de0c2-e3ee-4e62-8f70-8d36d47f17dd",e._sentryDebugIdIdentifier="sentry-dbid-331de0c2-e3ee-4e62-8f70-8d36d47f17dd")}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=Te(),D=Ee(),{formState:{errors:Q},trigger:X}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:d,updateStatus:U,mileageStatus:b}=p,F=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:K}=Ve.getLocalizedStrings(),{reimbursement:ee}=K,[S,T]=o.useState(F),[te,W]=o.useState(!1);o.useEffect(()=>{x||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=Y,ne=S===!1||U.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(Tt,{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:V=>V!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&F&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:U.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(Vt,{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{y as Ee,J as Te,aS as N,aa as Je,cJ as qe,O as Ve,aX as Ce,V as t,fh as Ge,p as G,x as s,bE as Ze,L as Qe,ae as Xe,fA as ve,dT as Ye,fB as Ke,by as et,dJ as tt,aT as it,o as a,fD as nt,u as n,cl as ot,cN as at,ez as lt,fM as ke,fN as $e,gm as st,a as rt,ac as Pe,b as Ae,bO as dt,ak as ct,bv as ut}from"./index-Ds72Hgse.js";import{a as o}from"./sentry-B9mdFwQp.js";import{n as i}from"./mui-Dk05P7Hv.js";import{bJ as mt}from"./zeni-epic-state-ksdE_TIc.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-CSfIPVfJ-DWVRVDhW.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.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]="331de0c2-e3ee-4e62-8f70-8d36d47f17dd",e._sentryDebugIdIdentifier="sentry-dbid-331de0c2-e3ee-4e62-8f70-8d36d47f17dd")}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=Te(),D=Ee(),{formState:{errors:Q},trigger:X}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:d,updateStatus:U,mileageStatus:b}=p,F=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:K}=Ve.getLocalizedStrings(),{reimbursement:ee}=K,[S,T]=o.useState(F),[te,W]=o.useState(!1);o.useEffect(()=>{x||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=Y,ne=S===!1||U.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(Tt,{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:V=>V!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&F&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:U.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(Vt,{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"};
@@ -1 +1 @@
1
- import{ay as W,f_ as K,V as _,ct as q,cu as z,cv as H,km as J,a_ as Q,O as G}from"./index-CQD_nutl.js";import{a as f}from"./sentry-B9mdFwQp.js";import{H9 as X}from"./zeni-epic-state-ksdE_TIc.js";import{u as Y}from"./ReviewOverlay-B22mWGHc-CSe4tQzR.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./mui-Dk05P7Hv.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.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]="894af68f-d03c-4214-bbf0-04ff93b618ad",e._sentryDebugIdIdentifier="sentry-dbid-894af68f-d03c-4214-bbf0-04ff93b618ad")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=G.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:s,onProceedForBulkActionClick:d,onCloseReviewItem:u,onCloseOverlay:t})=>{const{fetchState:i,bulkSubmissionFetchState:p,bulkOperationTypeSelected:r,currentTab:b,currentSubTab:y}=e,g=!1,T=W(),l=K(T),[v,m]=f.useState(!1),[h,A]=f.useState(j(e,g,o,l)),[w,D]=f.useState(g),[P,te]=f.useState(0),[S,$]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(P===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(j(e,!1,o,l)),()=>{clearInterval(R)}),[h.length,P,w,e.fetchState,g,e,o,l]);const E=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,F=()=>{const{title:c,description:k}=Z(x);$({type:"reject",title:c,description:k,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),s.trackReimbursementBulkSubmit(r,b,y),m(!0)},L={onOkClick:c=>{m(!1);const k=e.remisForReview.map(I=>I.reimbursement);s.trackReimbursementBulkPopupConfirm(r,b,y,X(k.map(I=>I?.reimbursementTypesIncluded??[]))),d("reject",c)},onCancelClick:()=>{m(!1)}},{title:O,description:U}=ee(i,x,E,w),C=e.fetchState==="Completed"&&x===0,N=()=>{s.trackReimbursementBulkSubmit(r,b,y),d(r)},V=()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:i!=="Completed"||r==="reject"&&p==="In-Progress",isLoading:p==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:N,style:r==="send_for_approval"?{minWidth:"92px"}:{}}},M={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&p==="In-Progress",isLoading:r==="reject"&&p==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:F,style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[v?_.jsx(q,{titleComponent:_.jsx(H,{children:S.title}),descriptionComponent:_.jsx(z,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:L,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Y,{title:O,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:u,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:V(),cancelButton:M,hideCancel:C}})]})},j=(e,o,s,d)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const i=J(s,t.submittedBy,d);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:i!=null?`${a.by} ${i?.firstName} ${i?.lastName}`:a.strings.empty},rightSideText:{title:Q("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:t.reviewStatus??""}}})},Z=e=>{const{this_:o,these:s,report:d,reports:u,payment:t,payments:i}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",s).replaceAll("<_payment_>",i).replaceAll("__report__",u)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",d)}},ee=(e,o,s,d)=>{const{has:u,have:t,report:i,reports:p,are:r,is:b,do_:y,does:g}=a.texts,T=o>1,l=s>1;let v="",m="";return e==="Completed"&&!d?(v=n.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:n.report).replace("<_has_>",l?t:u),o===0?m=n.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?p:i).replace("<_do_>",l?y:g):m=`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?p:i).replace("<_is_>",T?r:b)}`):(v=n.reviewPage.reportsReviewing.title.replace("__report__",l?p:i),m=n.reviewPage.reportsReviewing.description.replace("__report__",l?p:i)),{title:v,description:m}};export{_e as default};
1
+ import{ay as W,f_ as K,V as _,ct as q,cu as z,cv as H,km as J,a_ as Q,O as G}from"./index-Ds72Hgse.js";import{a as f}from"./sentry-B9mdFwQp.js";import{H9 as X}from"./zeni-epic-state-ksdE_TIc.js";import{u as Y}from"./ReviewOverlay-B22mWGHc-CYTbwd5A.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./mui-Dk05P7Hv.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.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]="894af68f-d03c-4214-bbf0-04ff93b618ad",e._sentryDebugIdIdentifier="sentry-dbid-894af68f-d03c-4214-bbf0-04ff93b618ad")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=G.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:s,onProceedForBulkActionClick:d,onCloseReviewItem:u,onCloseOverlay:t})=>{const{fetchState:i,bulkSubmissionFetchState:p,bulkOperationTypeSelected:r,currentTab:b,currentSubTab:y}=e,g=!1,T=W(),l=K(T),[v,m]=f.useState(!1),[h,A]=f.useState(j(e,g,o,l)),[w,D]=f.useState(g),[P,te]=f.useState(0),[S,$]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(P===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(j(e,!1,o,l)),()=>{clearInterval(R)}),[h.length,P,w,e.fetchState,g,e,o,l]);const E=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,F=()=>{const{title:c,description:k}=Z(x);$({type:"reject",title:c,description:k,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),s.trackReimbursementBulkSubmit(r,b,y),m(!0)},L={onOkClick:c=>{m(!1);const k=e.remisForReview.map(I=>I.reimbursement);s.trackReimbursementBulkPopupConfirm(r,b,y,X(k.map(I=>I?.reimbursementTypesIncluded??[]))),d("reject",c)},onCancelClick:()=>{m(!1)}},{title:O,description:U}=ee(i,x,E,w),C=e.fetchState==="Completed"&&x===0,N=()=>{s.trackReimbursementBulkSubmit(r,b,y),d(r)},V=()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:i!=="Completed"||r==="reject"&&p==="In-Progress",isLoading:p==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:N,style:r==="send_for_approval"?{minWidth:"92px"}:{}}},M={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&p==="In-Progress",isLoading:r==="reject"&&p==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:F,style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[v?_.jsx(q,{titleComponent:_.jsx(H,{children:S.title}),descriptionComponent:_.jsx(z,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:L,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Y,{title:O,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:u,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:V(),cancelButton:M,hideCancel:C}})]})},j=(e,o,s,d)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const i=J(s,t.submittedBy,d);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:i!=null?`${a.by} ${i?.firstName} ${i?.lastName}`:a.strings.empty},rightSideText:{title:Q("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:t.reviewStatus??""}}})},Z=e=>{const{this_:o,these:s,report:d,reports:u,payment:t,payments:i}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",s).replaceAll("<_payment_>",i).replaceAll("__report__",u)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",d)}},ee=(e,o,s,d)=>{const{has:u,have:t,report:i,reports:p,are:r,is:b,do_:y,does:g}=a.texts,T=o>1,l=s>1;let v="",m="";return e==="Completed"&&!d?(v=n.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:n.report).replace("<_has_>",l?t:u),o===0?m=n.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?p:i).replace("<_do_>",l?y:g):m=`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?p:i).replace("<_is_>",T?r:b)}`):(v=n.reviewPage.reportsReviewing.title.replace("__report__",l?p:i),m=n.reviewPage.reportsReviewing.description.replace("__report__",l?p:i)),{title:v,description:m}};export{_e as default};
@@ -1,4 +1,4 @@
1
- import{y as l,V as r,aP as a,b4 as f,O as y,ac as m,aU as h,bG as g,ak as u,o as c,b5 as w}from"./index-CQD_nutl.js";import{n as d}from"./mui-Dk05P7Hv.js";import{a as s}from"./sentry-B9mdFwQp.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]="6d5dc920-789e-426a-8a4f-7d4c37c55d9e",e._sentryDebugIdIdentifier="sentry-dbid-6d5dc920-789e-426a-8a4f-7d4c37c55d9e")}catch{}})();function p({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 j({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{y as l,V as r,aP as a,b4 as f,O as y,ac as m,aU as h,bG as g,ak as u,o as c,b5 as w}from"./index-Ds72Hgse.js";import{n as d}from"./mui-Dk05P7Hv.js";import{a as s}from"./sentry-B9mdFwQp.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]="6d5dc920-789e-426a-8a4f-7d4c37c55d9e",e._sentryDebugIdIdentifier="sentry-dbid-6d5dc920-789e-426a-8a4f-7d4c37c55d9e")}catch{}})();function p({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 j({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(j,{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(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const C=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"})),b=d(h)`
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{y as oe,J as he,cg as ye,aa as _e,V as o,aq as we,ch as se,ae as $e,x as S,aT as ve,o as r,O as te,ci as ke,cj as Ce,ck as je,cl as Ne,cm as Ie,ao as ue,cn as Se,ak as Pe,aG as ee,bG as Oe,u as f,aX as De,an as Fe,av as Te}from"./index-CQD_nutl.js";import{a as u,P as pe}from"./sentry-B9mdFwQp.js";import{n as d}from"./mui-Dk05P7Hv.js";import{J as P,X as Ae}from"./CollapsableReportTable-oX8IRAxt-DmgpCuxO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="ad6218d2-f205-4254-97e3-a54e6db8d8ec",e._sentryDebugIdIdentifier="sentry-dbid-ad6218d2-f205-4254-97e3-a54e6db8d8ec")}catch{}})();const R=te.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ee=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Le=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Be(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ee(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Le(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed,class_view_layout:e.accountViewMode==="classes"?e.classViewLayout:void 0}}async function uo(e,i,a){const t=te.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Be(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:i,fileType:a.statementFileType});if(h.ok){const y=Ce(h.headers,t.defaultFileName),_=await h.arrayBuffer();je(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Me=d.div`
1
+ import{y as oe,J as he,cg as ye,aa as _e,V as o,aq as we,ch as se,ae as $e,x as S,aT as ve,o as r,O as te,ci as ke,cj as Ce,ck as je,cl as Ne,cm as Ie,ao as ue,cn as Se,ak as Pe,aG as ee,bG as Oe,u as f,aX as De,an as Fe,av as Te}from"./index-Ds72Hgse.js";import{a as u,P as pe}from"./sentry-B9mdFwQp.js";import{n as d}from"./mui-Dk05P7Hv.js";import{J as P,X as Ae}from"./CollapsableReportTable-oX8IRAxt-CFTrqTTE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="ad6218d2-f205-4254-97e3-a54e6db8d8ec",e._sentryDebugIdIdentifier="sentry-dbid-ad6218d2-f205-4254-97e3-a54e6db8d8ec")}catch{}})();const R=te.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ee=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Le=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Be(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ee(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Le(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed,class_view_layout:e.accountViewMode==="classes"?e.classViewLayout:void 0}}async function uo(e,i,a){const t=te.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Be(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:i,fileType:a.statementFileType});if(h.ok){const y=Ce(h.headers,t.defaultFileName),_=await h.arrayBuffer();je(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Me=d.div`
2
2
  padding: 0 ${r.sp3} 0 ${r.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{J as Q,y as ee,O as v,ay as $e,V as a,bQ as Fe,ac as $,bF as Me,bE as Pe,o as y,aV as je,L as Ie,x as V,bR as Ve,u as k,aq as ae,K as P,bS as ie,ak as te,bT as me,aG as ge,I as De,aX as Ee,an as be,au as ze,bN as Ye}from"./index-CQD_nutl.js";import{a as N,P as _e}from"./sentry-B9mdFwQp.js";import{n as m}from"./mui-Dk05P7Hv.js";import{bg as re,FC as Ue,FL as We,FM as Ge,FN as W,FO as He,FP as Ze,FQ as Je,FR as Xe,FS as qe,FT as se,FU as oe}from"./zeni-epic-state-ksdE_TIc.js";import{m as G,l as X}from"./analyticsHelper-DmrBYvLC-BYxc55FI.js";import{b as Ke}from"./ReportTableViewSelector-Db3_WDLJ-DUTYFa_F.js";import{S as Z,y as Qe,M as et,$ as tt,v as st}from"./TimeRangeSwitcher-JnO2pOTw-N9yivG4V.js";import{X as ot}from"./TimeframeSwitcherWithToggle-CaxIUKDr-DQWeAlGt.js";import{DownloadOverlayButton as nt}from"./DownloadOverlay-CWHxxKW_-UDgVlxY5.js";import{F as at,X as it,J as F,y as ye}from"./CollapsableReportTable-oX8IRAxt-DmgpCuxO.js";import{D as we,T as xe,C as J,L as rt,g as Se}from"./mapSectionWithAcOnlyToTreeNode-O-hSpwLG-CBm5dWL6.js";import{s as ne}from"./mapTimeframeBalancesToTreeNode-Ldd39Ct5-CMF3q4cV.js";import{d as ct,l as lt}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D8UYLJpF-CA2QnDit.js";import{d as dt}from"./mapLoadingInProgressToTreeNode-Bs8-HXsR-byZZ2UVu.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";import"./TimeframeSwitcher-DfDRlQ7n-CpbdT0B7.js";import"./page-detail-CWX5S47F-DkWNpJ9N.js";import"./AccountRow-CGg3Gvpj-2LubTGsx.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]="1e20a3b9-4506-4426-b911-942de02eac07",e._sentryDebugIdIdentifier="sentry-dbid-1e20a3b9-4506-4426-b911-942de02eac07")}catch{}})();const pt=m.div`
1
+ import{J as Q,y as ee,O as v,ay as $e,V as a,bQ as Fe,ac as $,bF as Me,bE as Pe,o as y,aV as je,L as Ie,x as V,bR as Ve,u as k,aq as ae,K as P,bS as ie,ak as te,bT as me,aG as ge,I as De,aX as Ee,an as be,au as ze,bN as Ye}from"./index-Ds72Hgse.js";import{a as N,P as _e}from"./sentry-B9mdFwQp.js";import{n as m}from"./mui-Dk05P7Hv.js";import{bg as re,FC as Ue,FL as We,FM as Ge,FN as W,FO as He,FP as Ze,FQ as Je,FR as Xe,FS as qe,FT as se,FU as oe}from"./zeni-epic-state-ksdE_TIc.js";import{m as G,l as X}from"./analyticsHelper-DmrBYvLC-D2h-ujvV.js";import{b as Ke}from"./ReportTableViewSelector-Db3_WDLJ-DbMdOwe9.js";import{S as Z,y as Qe,M as et,$ as tt,v as st}from"./TimeRangeSwitcher-JnO2pOTw-NQgb4Py3.js";import{X as ot}from"./TimeframeSwitcherWithToggle-CaxIUKDr-CMy9xEZ_.js";import{DownloadOverlayButton as nt}from"./DownloadOverlay-CWHxxKW_-DApj93j0.js";import{F as at,X as it,J as F,y as ye}from"./CollapsableReportTable-oX8IRAxt-CFTrqTTE.js";import{D as we,T as xe,C as J,L as rt,g as Se}from"./mapSectionWithAcOnlyToTreeNode-O-hSpwLG-BS81V7lg.js";import{s as ne}from"./mapTimeframeBalancesToTreeNode-Ldd39Ct5-CkI8sl4c.js";import{d as ct,l as lt}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D8UYLJpF-CEuI_Nwp.js";import{d as dt}from"./mapLoadingInProgressToTreeNode-Bs8-HXsR-_wPBA97G.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";import"./TimeframeSwitcher-DfDRlQ7n-C-4OcGGg.js";import"./page-detail-CWX5S47F-DkWNpJ9N.js";import"./AccountRow-CGg3Gvpj-DlBEjYzj.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]="1e20a3b9-4506-4426-b911-942de02eac07",e._sentryDebugIdIdentifier="sentry-dbid-1e20a3b9-4506-4426-b911-942de02eac07")}catch{}})();const pt=m.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
  `,ut=m.div`
@@ -1,4 +1,4 @@
1
- import{y as A,V as a,O as D,J as de,b5 as Q,u as I,w as M,a_ as J,o as m,ac as Ae,p as g,aG as Ve,x as xe,bO as ge,an as R,bP as V,bc as F}from"./index-CQD_nutl.js";import{a as P,P as ee}from"./sentry-B9mdFwQp.js";import{n as x}from"./mui-Dk05P7Hv.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-xMrDPcl9-DKVI72OS.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-BghIFr09-Cj1ZDevr.js";import{V as Z}from"./toChartData-DRKQ5lEf-o8RM5Syw.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-CgI_z3-h.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]="af07c2d5-458e-4a90-b9e5-e49aef7f45ce",e._sentryDebugIdIdentifier="sentry-dbid-af07c2d5-458e-4a90-b9e5-e49aef7f45ce")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
1
+ import{y as A,V as a,O as D,J as de,b5 as Q,u as I,w as M,a_ as J,o as m,ac as Ae,p as g,aG as Ve,x as xe,bO as ge,an as R,bP as V,bc as F}from"./index-Ds72Hgse.js";import{a as P,P as ee}from"./sentry-B9mdFwQp.js";import{n as x}from"./mui-Dk05P7Hv.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-xMrDPcl9-DMPo2m6X.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-BghIFr09-JfzGl_BI.js";import{V as Z}from"./toChartData-DRKQ5lEf-Db95Ptzd.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-CgI_z3-h.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]="af07c2d5-458e-4a90-b9e5-e49aef7f45ce",e._sentryDebugIdIdentifier="sentry-dbid-af07c2d5-458e-4a90-b9e5-e49aef7f45ce")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
2
2
  display: flex;
3
3
  `,He=x.div`
4
4
  margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
@@ -1,4 +1,4 @@
1
- import{J as Tt,ay as Ct,x as u,fa as Dt,fb as It,fc as Pt,V as t,fd as kt,fe as le,ff as Mt,fg as At,fh as Bt,fi as Ft,aQ as M,fj as Rt,ac as v,fk as Lt,fl as Be,fm as Fe,fn as Re,w as U,fo as O,p as j,fp as zt,fq as E,fr as W,fs as Nt,ft as Ot,bX as Le,o as n,aT as Et,u as d,O as Wt,ai as _t,c6 as Zt,b as Vt,M as Gt,fu as Yt,cl as qt,an as ce,ao as me,fv as Ut,fw as Kt,bk as Ht,n as Xt,bb as Jt,fx as Qt,as as tt,bM as en,ak as nt,bv as tn,fy as nn}from"./index-CQD_nutl.js";import{a as Z}from"./sentry-B9mdFwQp.js";import{n as i}from"./mui-Dk05P7Hv.js";import{bo as ze,bm as Ne,bH as I,bX as an,Gq as on,bL as re,bZ as ln}from"./zeni-epic-state-ksdE_TIc.js";import{t as rn,o as sn}from"./LowBalancePopup-DPe7elRO-Bgii0mzY.js";import{S as _}from"./LabeledText-Q6xdsHJ6-CFwsR7ll.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="d7f69b3f-3e7d-4c8b-9c2a-d7fdf8c5497e",e._sentryDebugIdIdentifier="sentry-dbid-d7f69b3f-3e7d-4c8b-9c2a-d7fdf8c5497e")}catch{}})();const it=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:We}=mn,_e=({attachment:e})=>{const[y,g]=Z.useState(!1),A=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ut,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:A,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:J,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),P=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?Pt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=Z.useState(!1),[te,be]=Z.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:s,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(P?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),fe())},[P,Q,fe,ue,he]);const k=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=k?.code==="paid"?k:N?.code=="approved"&&V?.code?V:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&V?.code?V:N,ie=()=>{pe()},$e=()=>{pe()},G=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",k?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(k?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=Ze(h,Y,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),oe!=null){const De=k?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Me,Ae):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Me,Ae)}}},Te=()=>{Ce===!0&&q(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",k?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,q]=Z.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:P?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{q(!1),ie()},onClickAway:()=>{q(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(T)??"",paymentType:ve,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(He,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(He,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Gn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Lt(o);return o!=null?t.jsx(Vn,{children:it.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[o.attachments&&o.attachments.length>0?t.jsx(_e,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsx(H,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:M("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":v("review-detail-mobile-info"),onClick:()=>J(o.id,o.billPayInfo.stage.code),children:[t.jsxs(H,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:s,children:[o.attachments&&o.attachments.length>0?t.jsx(_e,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":v("review-detail-info"),onClick:()=>J(o.id,o.billPayInfo.stage.code),children:[t.jsx(H,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(H,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:M("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},o.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ue,{children:a.pay}),t.jsx(Ke,{children:t.jsx(Re,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:a.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!x&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:G.format(T),additionalInfoLabel:`${a.estimatedArrival}${re(ln(G.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ge,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?We.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ge,{children:[t.jsx(de,{children:We.transactionFee}),t.jsx(se,{children:M("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&P?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ve(!1,C,h,Y,s)}},primaryBtn:{label:Ze(h,Y,e.isBillMarkedForRetry),isLoading:P?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?q(!0):Te()},style:{width:Ve(!0,C,h,Y,s)}},rightSideComponent:C&&!h&&P.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Ze=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ve=(e,y,g,A,S)=>g?128:y&&!e&&S==="small"?"auto":A?165:m.footerButtonWidth.value(S),pn=i(en)`
1
+ import{J as Tt,ay as Ct,x as u,fa as Dt,fb as It,fc as Pt,V as t,fd as kt,fe as le,ff as Mt,fg as At,fh as Bt,fi as Ft,aQ as M,fj as Rt,ac as v,fk as Lt,fl as Be,fm as Fe,fn as Re,w as U,fo as O,p as j,fp as zt,fq as E,fr as W,fs as Nt,ft as Ot,bX as Le,o as n,aT as Et,u as d,O as Wt,ai as _t,c6 as Zt,b as Vt,M as Gt,fu as Yt,cl as qt,an as ce,ao as me,fv as Ut,fw as Kt,bk as Ht,n as Xt,bb as Jt,fx as Qt,as as tt,bM as en,ak as nt,bv as tn,fy as nn}from"./index-Ds72Hgse.js";import{a as Z}from"./sentry-B9mdFwQp.js";import{n as i}from"./mui-Dk05P7Hv.js";import{bo as ze,bm as Ne,bH as I,bX as an,Gq as on,bL as re,bZ as ln}from"./zeni-epic-state-ksdE_TIc.js";import{t as rn,o as sn}from"./LowBalancePopup-DPe7elRO-eP5jxXRl.js";import{S as _}from"./LabeledText-Q6xdsHJ6-jEFXQqpw.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="d7f69b3f-3e7d-4c8b-9c2a-d7fdf8c5497e",e._sentryDebugIdIdentifier="sentry-dbid-d7f69b3f-3e7d-4c8b-9c2a-d7fdf8c5497e")}catch{}})();const it=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:We}=mn,_e=({attachment:e})=>{const[y,g]=Z.useState(!1),A=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ut,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:A,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:J,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),P=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?Pt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=Z.useState(!1),[te,be]=Z.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:s,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(P?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),fe())},[P,Q,fe,ue,he]);const k=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=k?.code==="paid"?k:N?.code=="approved"&&V?.code?V:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&V?.code?V:N,ie=()=>{pe()},$e=()=>{pe()},G=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",k?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(k?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=Ze(h,Y,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),oe!=null){const De=k?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Me,Ae):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Me,Ae)}}},Te=()=>{Ce===!0&&q(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",k?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,q]=Z.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:P?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{q(!1),ie()},onClickAway:()=>{q(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(T)??"",paymentType:ve,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(He,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(He,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Gn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Lt(o);return o!=null?t.jsx(Vn,{children:it.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[o.attachments&&o.attachments.length>0?t.jsx(_e,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsx(H,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:M("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":v("review-detail-mobile-info"),onClick:()=>J(o.id,o.billPayInfo.stage.code),children:[t.jsxs(H,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:s,children:[o.attachments&&o.attachments.length>0?t.jsx(_e,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":v("review-detail-info"),onClick:()=>J(o.id,o.billPayInfo.stage.code),children:[t.jsx(H,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(H,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:M("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},o.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ue,{children:a.pay}),t.jsx(Ke,{children:t.jsx(Re,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:a.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!x&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:G.format(T),additionalInfoLabel:`${a.estimatedArrival}${re(ln(G.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ge,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?We.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ge,{children:[t.jsx(de,{children:We.transactionFee}),t.jsx(se,{children:M("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&P?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ve(!1,C,h,Y,s)}},primaryBtn:{label:Ze(h,Y,e.isBillMarkedForRetry),isLoading:P?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?q(!0):Te()},style:{width:Ve(!0,C,h,Y,s)}},rightSideComponent:C&&!h&&P.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Ze=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ve=(e,y,g,A,S)=>g?128:y&&!e&&S==="small"?"auto":A?165:m.footerButtonWidth.value(S),pn=i(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{J as P,V as i,ac as m,o as r,aT as L,x as d,c as B,b as C,M as I,p as s,an as j,cG as W,L as D,ak as b,bj as R,u as n,eq as G,g as _,j8 as J,kl as A}from"./index-CQD_nutl.js";import{n as t}from"./mui-Dk05P7Hv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="62f2779d-1c06-4940-ad1b-2204d1e93ece",e._sentryDebugIdIdentifier="sentry-dbid-62f2779d-1c06-4940-ad1b-2204d1e93ece")}catch{}})();const a={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:M})=>{const l=P();return i.jsxs(V,{children:[i.jsx(X,{windowSize:l,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(q,{windowSize:l,children:[i.jsxs(H,{windowSize:l,children:[i.jsx(K,{children:i.jsx(N,{windowSize:l,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(U,{windowSize:l,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:O(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?i.jsxs(u,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(u,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),V=t.div`
1
+ import{J as P,V as i,ac as m,o as r,aT as L,x as d,c as B,b as C,M as I,p as s,an as j,cG as W,L as D,ak as b,bj as R,u as n,eq as G,g as _,j8 as J,kl as A}from"./index-Ds72Hgse.js";import{n as t}from"./mui-Dk05P7Hv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="62f2779d-1c06-4940-ad1b-2204d1e93ece",e._sentryDebugIdIdentifier="sentry-dbid-62f2779d-1c06-4940-ad1b-2204d1e93ece")}catch{}})();const a={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:M})=>{const l=P();return i.jsxs(V,{children:[i.jsx(X,{windowSize:l,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(q,{windowSize:l,children:[i.jsxs(H,{windowSize:l,children:[i.jsx(K,{children:i.jsx(N,{windowSize:l,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(U,{windowSize:l,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:O(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?i.jsxs(u,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(u,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),V=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1,4 +1,4 @@
1
- import{eV as h,eW as f,V as s,bX as g,o,ac as n,O as x,ap as y,ak as c}from"./index-CQD_nutl.js";import{n as l}from"./mui-Dk05P7Hv.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]="19dec78c-dfc1-4234-a1cc-5652d402268a",e._sentryDebugIdIdentifier="sentry-dbid-19dec78c-dfc1-4234-a1cc-5652d402268a")}catch{}})();const{hyphen:i}=x.getLocalizedStrings().common.strings,m=l.div``,u=l.div`
1
+ import{eV as h,eW as f,V as s,bX as g,o,ac as n,O as x,ap as y,ak as c}from"./index-Ds72Hgse.js";import{n as l}from"./mui-Dk05P7Hv.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]="19dec78c-dfc1-4234-a1cc-5652d402268a",e._sentryDebugIdIdentifier="sentry-dbid-19dec78c-dfc1-4234-a1cc-5652d402268a")}catch{}})();const{hyphen:i}=x.getLocalizedStrings().common.strings,m=l.div``,u=l.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{aS as H,iB as te,gP as me,eH as we,iC as Me,aa as Ve,iD as _e,cJ as Pe,cK as Fe,V as a,ae as Ne,ct as Re,cu as qe,cv as We,aT as Be,iE as Ue,iF as $e,O as be,ab as pe,iG as Se,iH as ze,cN as Ge,J as He,iU as Ke,gV as ue,u as W,p as De,x as ye,cO as Ye,iI as Xe,iJ as Ze,iK as Qe,o as _}from"./index-CQD_nutl.js";import{a as f}from"./sentry-B9mdFwQp.js";import{n as U}from"./mui-Dk05P7Hv.js";import{GV as et,GW as tt}from"./zeni-epic-state-ksdE_TIc.js";import{r as lt,s as at,i as st,n as ot}from"./ScheduleSequenceTable-EKOr-6FS-CIMOW3Lv.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="945c1c92-5781-4d81-9d1f-03e8ba82f6f4",e._sentryDebugIdIdentifier="sentry-dbid-945c1c92-5781-4d81-9d1f-03e8ba82f6f4")}catch{}})();const B={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=U.div`
1
+ import{aS as H,iB as te,gP as me,eH as we,iC as Me,aa as Ve,iD as _e,cJ as Pe,cK as Fe,V as a,ae as Ne,ct as Re,cu as qe,cv as We,aT as Be,iE as Ue,iF as $e,O as be,ab as pe,iG as Se,iH as ze,cN as Ge,J as He,iU as Ke,gV as ue,u as W,p as De,x as ye,cO as Ye,iI as Xe,iJ as Ze,iK as Qe,o as _}from"./index-Ds72Hgse.js";import{a as f}from"./sentry-B9mdFwQp.js";import{n as U}from"./mui-Dk05P7Hv.js";import{GV as et,GW as tt}from"./zeni-epic-state-ksdE_TIc.js";import{r as lt,s as at,i as st,n as ot}from"./ScheduleSequenceTable-EKOr-6FS-Dli2rxtC.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="945c1c92-5781-4d81-9d1f-03e8ba82f6f4",e._sentryDebugIdIdentifier="sentry-dbid-945c1c92-5781-4d81-9d1f-03e8ba82f6f4")}catch{}})();const B={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=U.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{aS as F,iB as Q,gP as Ie,eH as Je,iC as Le,aa as we,iD as Me,cJ as Ve,cK as Pe,V as a,ae as _e,ct as Fe,cu as $e,cv as Ne,aT as Be,iE as Re,iF as Ue,O as De,ab as re,iG as pe,iH as We,cN as ze,J as qe,gV as fe,u as Z,p as Ke,x as Ge,iI as He,iJ as Ye,iK as Xe,o as L}from"./index-CQD_nutl.js";import{a as D}from"./sentry-B9mdFwQp.js";import{n as P}from"./mui-Dk05P7Hv.js";import{GV as Qe,GW as Ze,bL as et}from"./zeni-epic-state-ksdE_TIc.js";import{r as tt,s as lt,i as at,n as st}from"./ScheduleSequenceTable-EKOr-6FS-CIMOW3Lv.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="63f1bec3-f0a2-4186-bb12-538871956aff",e._sentryDebugIdIdentifier="sentry-dbid-63f1bec3-f0a2-4186-bb12-538871956aff")}catch{}})();const R={labelWidth:new Ge(160,160,160)},nt=P.div`
1
+ import{aS as F,iB as Q,gP as Ie,eH as Je,iC as Le,aa as we,iD as Me,cJ as Ve,cK as Pe,V as a,ae as _e,ct as Fe,cu as $e,cv as Ne,aT as Be,iE as Re,iF as Ue,O as De,ab as re,iG as pe,iH as We,cN as ze,J as qe,gV as fe,u as Z,p as Ke,x as Ge,iI as He,iJ as Ye,iK as Xe,o as L}from"./index-Ds72Hgse.js";import{a as D}from"./sentry-B9mdFwQp.js";import{n as P}from"./mui-Dk05P7Hv.js";import{GV as Qe,GW as Ze,bL as et}from"./zeni-epic-state-ksdE_TIc.js";import{r as tt,s as lt,i as at,n as st}from"./ScheduleSequenceTable-EKOr-6FS-Dli2rxtC.js";import"./liveblocks-CtZCL_Pz.js";import"./core-D_TfeHIh.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./utils-DZ3Subia.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="63f1bec3-f0a2-4186-bb12-538871956aff",e._sentryDebugIdIdentifier="sentry-dbid-63f1bec3-f0a2-4186-bb12-538871956aff")}catch{}})();const R={labelWidth:new Ge(160,160,160)},nt=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{J as T,y as X,V as t,iL as ie,dI as le,b as oe,iM as xe,dW as fe,fn as ye,w as I,O as R,iN as we,iK as be,o as i,x as b,p as j,n as $e,ac as je,ab as ne,dQ as Se,ct as ke,cv as ve,cN as Z,ez as ee,cS as De,iO as K,iP as Ce,b5 as Me,iQ as ze,cx as Oe,iR as Le,u as h,an as O,bb as Ee,cu as Ie,aq as pe,eI as Te,b3 as re,eu as Ae,aT as Fe,iS as A,gm as Ve,aQ as Je,iT as Be,aX as H,d3 as Pe,bj as Re}from"./index-CQD_nutl.js";import{n as o,c as B}from"./mui-Dk05P7Hv.js";import{a as C}from"./sentry-B9mdFwQp.js";import{bh as G,GX as Ne}from"./zeni-epic-state-ksdE_TIc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="845f09f6-72f0-425d-b1bc-eedebac0e19e",e._sentryDebugIdIdentifier="sentry-dbid-845f09f6-72f0-425d-b1bc-eedebac0e19e")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function We({defaultValue:e,name:l,placeholder:s,alignLeft:n=!1,style:p,isDisabled:r,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=T(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:r!=null,windowSize:g,onClick:()=>{!f&&r==null&&u(!0)},children:t.jsx(Te,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(_e,{placeholder:s,defaultValue:e,isDisabled:r}),f?t.jsxs(Ke,{alignLeft:n===!0,children:[t.jsx(tt,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(et,{isError:e.type==="day"&&k,children:[t.jsx(re,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Ae,{name:N(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(Ye,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(it,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(re,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Fe,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function _e({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(Ge,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Qe,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function Ye({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+1;return t.jsx(Y,{isSelected:n===e,onClick:()=>l(Ne(n)),children:n},n)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+8;return t.jsx(Y,{isSelected:n===e,onClick:()=>l(n),children:n},n)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+15;return t.jsx(Y,{isSelected:n===e,onClick:()=>l(n),children:n},n)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+22;return t.jsx(Y,{isSelected:n===e,onClick:()=>l(n),children:n},n)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
1
+ import{J as T,y as X,V as t,iL as ie,dI as le,b as oe,iM as xe,dW as fe,fn as ye,w as I,O as R,iN as we,iK as be,o as i,x as b,p as j,n as $e,ac as je,ab as ne,dQ as Se,ct as ke,cv as ve,cN as Z,ez as ee,cS as De,iO as K,iP as Ce,b5 as Me,iQ as ze,cx as Oe,iR as Le,u as h,an as O,bb as Ee,cu as Ie,aq as pe,eI as Te,b3 as re,eu as Ae,aT as Fe,iS as A,gm as Ve,aQ as Je,iT as Be,aX as H,d3 as Pe,bj as Re}from"./index-Ds72Hgse.js";import{n as o,c as B}from"./mui-Dk05P7Hv.js";import{a as C}from"./sentry-B9mdFwQp.js";import{bh as G,GX as Ne}from"./zeni-epic-state-ksdE_TIc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="845f09f6-72f0-425d-b1bc-eedebac0e19e",e._sentryDebugIdIdentifier="sentry-dbid-845f09f6-72f0-425d-b1bc-eedebac0e19e")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function We({defaultValue:e,name:l,placeholder:s,alignLeft:n=!1,style:p,isDisabled:r,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=T(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:r!=null,windowSize:g,onClick:()=>{!f&&r==null&&u(!0)},children:t.jsx(Te,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(_e,{placeholder:s,defaultValue:e,isDisabled:r}),f?t.jsxs(Ke,{alignLeft:n===!0,children:[t.jsx(tt,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(et,{isError:e.type==="day"&&k,children:[t.jsx(re,{label:{label:M.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Ae,{name:N(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(Ye,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(it,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(re,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Fe,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function _e({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(Ge,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Qe,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function Ye({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+1;return t.jsx(Y,{isSelected:n===e,onClick:()=>l(Ne(n)),children:n},n)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+8;return t.jsx(Y,{isSelected:n===e,onClick:()=>l(n),children:n},n)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+15;return t.jsx(Y,{isSelected:n===e,onClick:()=>l(n),children:n},n)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const n=s+22;return t.jsx(Y,{isSelected:n===e,onClick:()=>l(n),children:n},n)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
2
2
  position: relative;
3
3
  `,Ge=o.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{EJ as Xf,EK as Lt,EL as Qf,iO as ot,hw as ql,iQ as Ye,ht as eh,hA as Ll,EM as Pa,hC as th,hD as rh,EN as Gt,EO as kt,h0 as nh,EP as xr,EQ as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,ER as kl,ES as Nl,hR as ah,hO as sh,ET as uh,i0 as ch,hX as ja,hU as lh,hJ as fh,EU as hh,dJ as dh,cU as ph,j0 as Dl,EV as mh,bL as Tr,hG as xa,hL as gh,pv as Ml,iP as qr,EW as Ne,ic as na,EX as yh,j6 as vh,B as Re,EY as ia,EZ as bh,gZ as wh,E_ as Eh,E$ as Fl,F0 as Sh,o3 as qa,nA as _h,F1 as Rh,nG as Zr,F2 as Oh,nI as Th,F3 as Ze,nx as Ih,cB as Ah,iT as Ul,iU as Bl,iS as oa,iR as aa,iV as Ch,F4 as Ph,o6 as jh,F5 as xh,nP as qh,o0 as Lh,F6 as kh,nT as Nh,F7 as Dh,F8 as _t,F9 as sa,Fa as Mh,Fb as Fh,mA as Uh,mG as $l,Fc as Vl,gu as Bh,DP as Gl,Fd as $h,DJ as Vh,Fe as Gh,Ff as Hh,mJ as zh,Fg as Zh,DU as Wh,DI as Yh,r0 as Hl,Fh as Wr,Fi as zl,AS as ua,AE as Jh,AV as Zl,AH as Kh,Fj as Xh,AM as Qh,Ay as ed,AB as td,Fk as rd,AZ as nd,AP as id,c4 as od,bd as ad,Fl as sd,Fm as ft,Fn as ud,Fo as cd,Fp as ld,i4 as Ko,ba as fd}from"./zeni-epic-state-ksdE_TIc.js";import{j as N}from"./liveblocks-CtZCL_Pz.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-B9mdFwQp.js";import{_ as dd,y as dt,J as Lr,h as pd,i as pe,j as be,k as md,l as gd,x as Pe,m as kr,q as yd,R as Je,O as Nt,r as pt,s as at,L as Nr,o as tt,C as vd,t as bd,P as nt,H as ca,E as it,v as wd,A as Ed,u as Yr,B as Sd,D as Jl,F as _d,G as Kl,I as Xl,K as Xo,N as Rd,Q as Od,S as Td,T as Ql,U as Id,W as Ad,X as Cd,$ as Pd,Y as jd,Z as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md,a6 as Fd}from"./index-CQD_nutl.js";import{f as Ud}from"./analyticsHelper-B7l4_BHB.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core-D_TfeHIh.js";import{D as Dr,n as Te,S as mt}from"./mui-Dk05P7Hv.js";import{a as ve,b as Bd,c as $d,d as Vd,e as fa,f as Gd,g as Hd,h as zd,i as gt,j as Zd,k as xt,l as Mr,m as Wd,n as Dt,o as Yd}from"./utils-DZ3Subia.js";import{r as ha}from"./empty-DNhRmYaU.js";import{r as Jd,a as Kd,b as Xd,c as Qd}from"./constants-9sygGEgN.js";import{r as Mt,a as ep}from"./index-Bv_arhgP.js";import{r as tp}from"./index-B69DilQP.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./url-1RDcEwn0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="da5c1ab8-1147-41d1-b20b-719c85d42b7c",e._sentryDebugIdIdentifier="sentry-dbid-da5c1ab8-1147-41d1-b20b-719c85d42b7c")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},rp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function np(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function ip(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const op=ge(ip,np)(yd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pd(),pe.trackCockpitHealthMonitorNotificationAlertClicked({companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(!0),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:rp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(md,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(gd,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(op,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},ap=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},sp=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function up(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const cp={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??cp.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const lp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(fp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,fp=Te.div`
1
+ import{EJ as Xf,EK as Lt,EL as Qf,iO as ot,hw as ql,iQ as Ye,ht as eh,hA as Ll,EM as Pa,hC as th,hD as rh,EN as Gt,EO as kt,h0 as nh,EP as xr,EQ as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,ER as kl,ES as Nl,hR as ah,hO as sh,ET as uh,i0 as ch,hX as ja,hU as lh,hJ as fh,EU as hh,dJ as dh,cU as ph,j0 as Dl,EV as mh,bL as Tr,hG as xa,hL as gh,pv as Ml,iP as qr,EW as Ne,ic as na,EX as yh,j6 as vh,B as Re,EY as ia,EZ as bh,gZ as wh,E_ as Eh,E$ as Fl,F0 as Sh,o3 as qa,nA as _h,F1 as Rh,nG as Zr,F2 as Oh,nI as Th,F3 as Ze,nx as Ih,cB as Ah,iT as Ul,iU as Bl,iS as oa,iR as aa,iV as Ch,F4 as Ph,o6 as jh,F5 as xh,nP as qh,o0 as Lh,F6 as kh,nT as Nh,F7 as Dh,F8 as _t,F9 as sa,Fa as Mh,Fb as Fh,mA as Uh,mG as $l,Fc as Vl,gu as Bh,DP as Gl,Fd as $h,DJ as Vh,Fe as Gh,Ff as Hh,mJ as zh,Fg as Zh,DU as Wh,DI as Yh,r0 as Hl,Fh as Wr,Fi as zl,AS as ua,AE as Jh,AV as Zl,AH as Kh,Fj as Xh,AM as Qh,Ay as ed,AB as td,Fk as rd,AZ as nd,AP as id,c4 as od,bd as ad,Fl as sd,Fm as ft,Fn as ud,Fo as cd,Fp as ld,i4 as Ko,ba as fd}from"./zeni-epic-state-ksdE_TIc.js";import{j as N}from"./liveblocks-CtZCL_Pz.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-B9mdFwQp.js";import{_ as dd,y as dt,J as Lr,h as pd,i as pe,j as be,k as md,l as gd,x as Pe,m as kr,q as yd,R as Je,O as Nt,r as pt,s as at,L as Nr,o as tt,C as vd,t as bd,P as nt,H as ca,E as it,v as wd,A as Ed,u as Yr,B as Sd,D as Jl,F as _d,G as Kl,I as Xl,K as Xo,N as Rd,Q as Od,S as Td,T as Ql,U as Id,W as Ad,X as Cd,$ as Pd,Y as jd,Z as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md,a6 as Fd}from"./index-Ds72Hgse.js";import{f as Ud}from"./analyticsHelper-Ce8UOTIh.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core-D_TfeHIh.js";import{D as Dr,n as Te,S as mt}from"./mui-Dk05P7Hv.js";import{a as ve,b as Bd,c as $d,d as Vd,e as fa,f as Gd,g as Hd,h as zd,i as gt,j as Zd,k as xt,l as Mr,m as Wd,n as Dt,o as Yd}from"./utils-DZ3Subia.js";import{r as ha}from"./empty-DNhRmYaU.js";import{r as Jd,a as Kd,b as Xd,c as Qd}from"./constants-9sygGEgN.js";import{r as Mt,a as ep}from"./index-Bv_arhgP.js";import{r as tp}from"./index-B69DilQP.js";import"./recharts-CgI_z3-h.js";import"./lottie-CVJxkEeH.js";import"./analytics-C31yhYYa.js";import"./lexical-CBxUxgf7.js";import"./url-1RDcEwn0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="da5c1ab8-1147-41d1-b20b-719c85d42b7c",e._sentryDebugIdIdentifier="sentry-dbid-da5c1ab8-1147-41d1-b20b-719c85d42b7c")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},rp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function np(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function ip(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const op=ge(ip,np)(yd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pd(),pe.trackCockpitHealthMonitorNotificationAlertClicked({companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(!0),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:rp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(md,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(gd,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(op,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},ap=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},sp=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function up(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const cp={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??cp.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const lp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(fp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,fp=Te.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;