@zeniai/web-cockpit-ui 1.14.74-dev → 1.14.74-next

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/dist/assets/{ACHDetailsPage-C4mW_6ah-BJ7pn6vk.js → ACHDetailsPage-C4mW_6ah-B99ZmB8s.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-D340k3cD-BAOQqy7F.js → AIPerformancePage-D340k3cD-DK3Rnmlc.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-CxHOmu8J-Du2y-SkT.js → AccountInfoPage-CxHOmu8J-D7ZuPDOg.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-piyQPGxR-VvJnc1kS.js → AccountInfoPageContent-piyQPGxR-DVYSf-rc.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-B-RdObr_-DL3Ol_Vk.js → AccountLockedInfoModal-B-RdObr_-B5y19IOa.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DSTRaH9L-BXT5r9BA.js → AccountReconDetailsDrawerPage-DSTRaH9L-DmplgqAU.js} +1 -1
  7. package/dist/assets/{AccountRow-0aCtZvU4-BVljyIs7.js → AccountRow-0aCtZvU4-AspyYs3a.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DnWb-9rH-Cnhv-tiT.js → AccountsPromoCardStack-DnWb-9rH-Dr419mMX.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-CXACYbPO-CQcJpWQx.js → AddAddressForCardDrawer-CXACYbPO-B_t786ZT.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-C4sRJBul-BE93DCw4.js → AddToWalletPage-C4sRJBul-CeQopXQe.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BKBrbEp6-CdiDDDGU.js → AgingReportsPage-BKBrbEp6-BA9nRnFY.js} +1 -1
  12. package/dist/assets/{AllUserItems-YQA0TTW5-CziFRv_L.js → AllUserItems-YQA0TTW5-Izzg9jkE.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-BVFOkU1c-Dh8aOVlT.js → ApAgingDetailPage-BVFOkU1c-CRr1gid1.js} +1 -1
  14. package/dist/assets/{AppBasePage-D7bLHqQ3-BIqewKfO.js → AppBasePage-D7bLHqQ3-BwYpc44Y.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-BL0Ov_41-hUiOSUMJ.js → AppDrawerContent-BL0Ov_41-CQUPxF3u.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DWuIZMvM-BhzLafty.js → ApprovalRulesSettingsPage-DWuIZMvM-B1JX2msJ.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DhNRyKZ4-CEGKbwQp.js → ArAgingChart-DhNRyKZ4-zjnKlG3k.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-DAXNd3Un-Ci3ec1Qq.js → ArAgingDetailPage-DAXNd3Un-D9Zsy-XV.js} +1 -1
  19. package/dist/assets/{AttachmentView-B6_HWM-N-K28jxAws.js → AttachmentView-B6_HWM-N-BkquYgKH.js} +1 -1
  20. package/dist/assets/{BankAccountSection-CXwFMtqi-Cz8mdjRm.js → BankAccountSection-CXwFMtqi-DBcK5C6B.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-BdC0joXN-CerfOmkN.js → BankAccountWarningSection-BdC0joXN-DSYHjMs8.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-D_TyZMym-Be-_WeVr.js → BankConnectionsSettingsPage-D_TyZMym-B8Pqgf2V.js} +1 -1
  23. package/dist/assets/{BillDetailPage-BK2oSoHp-BFeSsGgs.js → BillDetailPage-BK2oSoHp-DJeXkc1z.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DnhfBkGF-BTgajpli.js → BillPayApprovalRuleDetailPage-DnhfBkGF-B4v3_h6M.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-BNGn2rWa-Bx6XgguU.js → BillPayApprovalRulesPage-BNGn2rWa-DZGQNO8O.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-BR2HUX9q-_kssIuSS.js → BillPayPromoPage-BR2HUX9q-B68iHTuK.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-CF1wBGUG-Cgzc2x0O.js → BillPaySetUpPage-CF1wBGUG-O6uep3DJ.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-BwS4mUax-DmkifiOd.js → BillingSettingsPage-BwS4mUax-DrL8qefL.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D1MBWo1c-C9aUdpW7.js → BillsBulkReviewDrawerPage-D1MBWo1c-CCagQoif.js} +1 -1
  30. package/dist/assets/{BoxItem-BPwFzk70-fZUDwlZ6.js → BoxItem-BPwFzk70-BXqfIpjn.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DBK52xwc-BIIdHV5Y.js → BusinessVerificationPage-DBK52xwc-DpMkl2Vg.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-dZ1irCW_-34bn8CAs.js → CardNumberSubText-dZ1irCW_-BRwsGKQL.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-C_JqzxlJ-BWMW68f2.js → CashbackDetailPage-C_JqzxlJ-B5Fc15qV.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-zLGKbNXp-D4adnc1g.js → ChargeCardDetailPage-zLGKbNXp-D6lpVg7i.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-BOiovXcX-BFNJvaAn.js → ChargeCardListPage-BOiovXcX-CgMfqhLM.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-B4rMq1dZ-GL0k6cYr.js → ChargeCardListTable-B4rMq1dZ-By10wzqi.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-BJINiZYC-BMqina4g.js → ChargeCardPromoPage-BJINiZYC-CDFItICy.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-CClkuaEC-CF4jS8Gp.js → ChargeCardSetupPage-CClkuaEC-Dk0aFNpw.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DnnVjc0s-Bc4ZuXTj.js → ChargeCardStatementsPage-DnnVjc0s-DQ22z6RE.js} +1 -1
  40. package/dist/assets/{CheckDepositDrawerPage-v_SCMxCz-Ddd2mxqR.js → CheckDepositDrawerPage-v_SCMxCz-M0zd4nkZ.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-CcJXUhk5-BB5w0-d0.js → CollapsableReportTable-CcJXUhk5-BjXRRYRA.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-CZ2_Bxab-DRzkD-Ct.js → CompanyOfficerDetailsSection-CZ2_Bxab-CUa4MwvE.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-DZkuDI3D-DCb8SQV0.js → CompanyPassportCard-DZkuDI3D-CJqRpgWk.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-BdP_gm7U-By2oFjNM.js → CompanyPassportPage-BdP_gm7U-CZJKwKe6.js} +1 -1
  45. package/dist/assets/{CompleteProfile-DRK_kLAe-DmO5KniL.js → CompleteProfile-DRK_kLAe-Bijzy5fs.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-BrCmqpgN-Dt_N8EQ6.js → ConfettiBurst-BrCmqpgN-BynbfJq1.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-BwLI03T8-DGP7qAou.js → CreateOrEditVendorPage-BwLI03T8-CwVpHqwE.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-BSYOs8-l-BrMNcMif.js → CreditCardPaymentDrawerPage-BSYOs8-l-C66s4fxk.js} +1 -1
  49. package/dist/assets/{CurrencySelectField-B_4B_9aF-CLVcRWIZ.js → CurrencySelectField-B_4B_9aF-qL4S0hSN.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-BZFkFSTw-C4cyZzQe.js → CustomerOnboardingActivationPage-BZFkFSTw-Br1Y1RFt.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-BXJQUW7p-DbQ9nUz4.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYvcKHG6-BvlJD_VQ.js → CustomerOnboardingDetailPageSkeleton-DYvcKHG6-DH0aoWxA.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-KYTPP6tX-C9suazFu.js → CustomerOnboardingNoStepsPage-KYTPP6tX-BdCuNlH1.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-C1o855J_-xrI-tley.js → CustomerOnboardingPage-C1o855J_-7Z7RuUHZ.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-B6_XfRee-QyfEUsdL.js → CustomerOnboardingProductSuitePage-B6_XfRee-CSU3-gqD.js} +1 -1
  56. package/dist/assets/{Dashboard-FTTHWU9i-BHVWRcnC.js → Dashboard-FTTHWU9i-DblTk1Bn.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-bJB_ZM-P-BrRP2awy.js → DashboardReportPage-bJB_ZM-P-CFYJRXm1.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-Bd0zh-Pv-qug8l3m7.js → DashboardSidebarBackgroundAnimation-Bd0zh-Pv-DkCl2vz2.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-a9hm23uZ-DaOlOJLL.js → DepositAccTransactionItem-a9hm23uZ-Dy1T6PbE.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-BHoIdlzJ-BOK4iB36.js → DepositAccTransactionListPage-BHoIdlzJ-Cm3x9pAk.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-CR2NWUDZ-D4jNxpNj.js → DomesticWireDetailsPage-CR2NWUDZ-CNfDn-vn.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-CGIlEzcv-BKgmgiW2.js → DownloadOverlay-CGIlEzcv-kLcG2xXY.js} +1 -1
  63. package/dist/assets/{DrawerPage-C4L7rhLd-wRX0O-og.js → DrawerPage-C4L7rhLd-JhMrexM1.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-W_bqhMGG-BER3hwuK.js → EditPeoplePage-W_bqhMGG-RuYxE0Ie.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-MYiSJ04b-BboulfkK.js → EditReimbursementDetailPage-MYiSJ04b-Cd1B0Nt9.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-0fAk2iLE-BArJn59d.js → EntityDetailPage-0fAk2iLE-ChzBwlTt.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-Cl-xJolg-CdEjdMce.js → EntitySummarySection-Cl-xJolg-BUVy6FHQ.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-BzVUSpUz-CqslmsqE.js → ExpenseAutomationOverviewPage-BzVUSpUz-CH3J1F2V.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-CzuKvnw8-CMwBxBjD.js → ExpenseAutomationPage-CzuKvnw8-B3XUuWnZ.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-CXpbDpcG-D9QRFwz1.js → ExpressPayPage-CXpbDpcG-BAQXc0xj.js} +1 -1
  71. package/dist/assets/{FeaturePreviewPage-BdWRpRXX-DWnIyNzh.js → FeaturePreviewPage-BdWRpRXX-ChyjOSfh.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-Ck49QYUi-CdBWmonJ.js → FollowStepsSection-Ck49QYUi-CE8EsX5C.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-tl64OC_D-CWOBwYuR.js → GlobalReviewListPage-tl64OC_D-BuBWIxZv.js} +1 -1
  74. package/dist/assets/{InformationCardStack-BSLnJhVh-Dzfh7Zng.js → InformationCardStack-BSLnJhVh-BJF3c_HO.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-upFCkt0d-Db8oCBQ4.js → InsightsCardStack-upFCkt0d-DhHbvz78.js} +1 -1
  76. package/dist/assets/{InsightsSection-B2f8NB4o-BwwnBAwA.js → InsightsSection-B2f8NB4o-DAnfZVmO.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-ApEA3NDk-B4UYPUJn.js → IntegrationsSettingsPage-ApEA3NDk-BnsEe8QA.js} +1 -1
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-pRXnBX8--CQwUQsvM.js → InternationalWireSwiftDetailsPage-pRXnBX8--Cl7O16Ub.js} +1 -1
  79. package/dist/assets/{InternationalWireVerificationPage-C-SQJS8P-MZQ5BmXK.js → InternationalWireVerificationPage-C-SQJS8P-Cq1OuhBO.js} +1 -1
  80. package/dist/assets/{InviteFormPage-D0DAXYlY-B8rA0kr_.js → InviteFormPage-D0DAXYlY-CWz8NKNJ.js} +1 -1
  81. package/dist/assets/{InvitePageListView-BFVisGwy-DTsoLtCS.js → InvitePageListView-BFVisGwy-BJL_jYmE.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-BEzryxFQ-DkpF-V_f.js → InvitePeoplePage-BEzryxFQ-B5CrcNHA.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-DKXMH9_f-DrAynWSL.js → InvoiceUploadSection-DKXMH9_f-Cjt46uoB.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-BARWK3sa-CinijfuK.js → IssueChargeCardPage-BARWK3sa-Chkr_mda.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-eVBoTtqn-Dr5zAWXP.js → LabeledAddressValue-eVBoTtqn-qdpey4K5.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-DF2XP6wZ-BkNk4sE9.js → LabeledAddressValueField-DF2XP6wZ-QG5V2Jpf.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-DEYSYf-J-D1Vmxi6J.js → LabeledControlledCheckBoxField-DEYSYf-J-CGJGV3ZM.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-CSfLkVof-BQMxKyOT.js → LabeledCreatableSingleSelectField-CSfLkVof-3ejxeY5w.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-DdVw-K0--DsqVXCTa.js → LabeledDocumentField-DdVw-K0--BTnSeJmK.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-6_OAT7xy-Dm7dpfGF.js → LabeledDropDownFormattedTextField-6_OAT7xy-BnV6AlPk.js} +1 -1
  91. package/dist/assets/{LabeledText-R8i6QoET-B3nfKnFZ.js → LabeledText-R8i6QoET-D2nT-MAs.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BMJT6dfe-Jsee4jIv.js → LabeledUserSingleSelectWithSubtitlesField-BMJT6dfe-_KrlTupf.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-BNytFxUn-CVSAv1ZC.js → LabeledZeniRolesDropDownField-BNytFxUn-BP1v4jh0.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-DNhlMdQ7-lq0pwlUM.js → LinkJETransactionPage-DNhlMdQ7-Db-I9ft0.js} +1 -1
  95. package/dist/assets/{LockCardPage-CxKPs84u-DWkoAf-t.js → LockCardPage-CxKPs84u-Duj3THK9.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-pumriZyO-Draylozm.js → LowBalancePopup-pumriZyO-DMrl7bFF.js} +1 -1
  97. package/dist/assets/{MagicLinkACHDetailsPage-DmnrTJMS-CmLTFAhG.js → MagicLinkACHDetailsPage-DmnrTJMS-CJD8fyXG.js} +1 -1
  98. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CLBWijcR-D0vaRP-J.js → MagicLinkDomesticWireDetailsPage-CLBWijcR-tIB3f4vf.js} +1 -1
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DnZ1xXH_-Cpks1XdT.js → MagicLinkInternationalWireDetailsPage-DnZ1xXH_-Dj-VB3kn.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-CzWtXlBo-sL1L9Hc7.js → MagicLinkSuccessPage-CzWtXlBo-EYVQtaAj.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-B7L3P3Ac-Bv2YTSel.js → MagicLinkTitleSection-B7L3P3Ac-C4Z40JeB.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-XEIU22Nu-BTqT0cuE.js → MailingDetailsSection-XEIU22Nu-CxCV7JmV.js} +1 -1
  103. package/dist/assets/{Menu-6F194E28-BRLJH1zc.js → Menu-6F194E28-2iv61K6i.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-ClYTuULD-nhyRKlOG.js → MyBankConnectionsSettingsPage-ClYTuULD-CPonH-nn.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-CGdernIl-Dlo0Ve0L.js → MyPendingActivationChargeCardListPage-CGdernIl-CSsDws0T.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-BiUcDLvo-pMNgWuSF.js → MyProfileSettingsPage-BiUcDLvo-Bl0gQrn9.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-_-ZjAFN_-tfQt1OKn.js → NavBarWithPicker-_-ZjAFN_-BPpWfito.js} +1 -1
  108. package/dist/assets/{NavigationArrow-_y8iIetO-DSMr6St_.js → NavigationArrow-_y8iIetO-CSMUZsUt.js} +1 -1
  109. package/dist/assets/{NavigationDots-CLIto8Du-vkiM_7C5.js → NavigationDots-CLIto8Du-DjKV6gOD.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-Dw82QzKG-cPbb75E6.js → NewGlobalMerchantPage-Dw82QzKG-DvBqpIdS.js} +1 -1
  111. package/dist/assets/{NoDataChart-CGJiBbL5-B2qOpeqX.js → NoDataChart-CGJiBbL5-BsDdYQo3.js} +1 -1
  112. package/dist/assets/{NoDataTable-DXI7pAwU-DZV1VEwp.js → NoDataTable-DXI7pAwU-CM5sQI2l.js} +1 -1
  113. package/dist/assets/{NotFoundPage-aQvWSBB4-DRYeezlv.js → NotFoundPage-aQvWSBB4-BRj98ddZ.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-UWPLoqAx-_GoDULyD.js → NotificationSettingsPage-UWPLoqAx-DlZgWM4V.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-CcVmJLd9-BRk8_PBR.js → NotificationsListConfig-CcVmJLd9-CmRQfelJ.js} +1 -1
  116. package/dist/assets/{NotificationsPage-WOiZ6P2a-DOBn-zrY.js → NotificationsPage-WOiZ6P2a-D2lHf45_.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-Czuf3hUD-BHWP9zXC.js → OpExByVendorPage-Czuf3hUD-25IkYF7O.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-BKHs_4eI-BPD9ZvHX.js → OverlayContainerPage-BKHs_4eI-BkyImQ99.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-u3LxSAUm-O2NJ8JN9.js → PandLWithForecastPage-u3LxSAUm-DJjg2a8s.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-KH90MNZj-4fOLZHZH.js → PaymentAccountSetupBillingAddressSection-KH90MNZj-D-I2Y301.js} +1 -1
  121. package/dist/assets/{PeoplePage-QTZMkkM6-QSMSleF3.js → PeoplePage-QTZMkkM6-CMQJ_038.js} +1 -1
  122. package/dist/assets/{ProductsCarousel-B41eMd74-sWAxoq6p.js → ProductsCarousel-B41eMd74-DrV4ZNL5.js} +1 -1
  123. package/dist/assets/{PromoBaseCards-y3l9Sc__-tEF5P3OO.js → PromoBaseCards-y3l9Sc__-C6fYBMfM.js} +1 -1
  124. package/dist/assets/{QBOConnectionDialog-CRHlDQYb-BIOuoX89.js → QBOConnectionDialog-CRHlDQYb-oBA5W_xR.js} +1 -1
  125. package/dist/assets/{QBOSetupSection-CpGkp1OV-BdhNKnyA.js → QBOSetupSection-CpGkp1OV-_VngXxWB.js} +1 -1
  126. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DZqbsPgv-D4HiTItQ.js → ReimbursementApprovalRuleDetailPage-DZqbsPgv-BiINACsW.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRulesPage-BbMRRChu-C--j8PD_.js → ReimbursementApprovalRulesPage-BbMRRChu-BVPjCECM.js} +1 -1
  128. package/dist/assets/{ReimbursementDetailPage-QdocM_vT-Bsa3GCHg.js → ReimbursementDetailPage-QdocM_vT-CZK3oDDM.js} +1 -1
  129. package/dist/assets/{ReimbursementPromoPage-D9WxVDF--DOHRa5Fw.js → ReimbursementPromoPage-D9WxVDF--Bdu8Dki-.js} +1 -1
  130. package/dist/assets/{ReimbursementSetUpPage-BkjvoOYH-B3wVLz1K.js → ReimbursementSetUpPage-BkjvoOYH-0x9G683Z.js} +1 -1
  131. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DSSj0aF8-85iq6oXv.js → ReimbursementsBulkReviewDrawerPage-DSSj0aF8-CKzpnAZR.js} +1 -1
  132. package/dist/assets/{ReloadCard-Dg3vfc18-BKK4fX1H.js → ReloadCard-Dg3vfc18-CgsH0jaT.js} +1 -1
  133. package/dist/assets/{ReportTableViewSelector-7fjnfeAW-DpeIRyfh.js → ReportTableViewSelector-7fjnfeAW-g0xF37QY.js} +1 -1
  134. package/dist/assets/{ReportsPage-BNN-qVnT-Bd5p3ZN6.js → ReportsPage-BNN-qVnT-Dya6aFdh.js} +1 -1
  135. package/dist/assets/{RevenueChart-CMaNRfRM-6jpea8-a.js → RevenueChart-CMaNRfRM-yZfsOdVw.js} +1 -1
  136. package/dist/assets/{ReviewDetailsPage-CGs0NDrV-CQy4mt2a.js → ReviewDetailsPage-CGs0NDrV-BYszd--j.js} +1 -1
  137. package/dist/assets/{ReviewOverlay-CwU0ZK5O-D-68VTJY.js → ReviewOverlay-CwU0ZK5O-CHbyKLID.js} +1 -1
  138. package/dist/assets/{RoleWithToolTip-DmAYuJGo-AK6hcMvZ.js → RoleWithToolTip-DmAYuJGo-CX4UbYVw.js} +1 -1
  139. package/dist/assets/{ScheduleDetailsFixedAssetsPage-TI2uKcec-B5w8zYGw.js → ScheduleDetailsFixedAssetsPage-TI2uKcec-BPXdsPqU.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsPage-BZwoFX7Q-B9YAyb7E.js → ScheduleDetailsPage-BZwoFX7Q-Ci9x6uNM.js} +1 -1
  141. package/dist/assets/{ScheduleSequenceTable-Bjc3OMeM-BsRWulQF.js → ScheduleSequenceTable-Bjc3OMeM-vr1nPwGg.js} +1 -1
  142. package/dist/assets/{ScreenRoutes-f9SE5Iy1.js → ScreenRoutes-DsbAkEqK.js} +1 -1
  143. package/dist/assets/{SetUpAccountSection-MjL7GjKE-B2NEEcPr.js → SetUpAccountSection-MjL7GjKE-CHxPqvT3.js} +1 -1
  144. package/dist/assets/{SignIn-BAh_EEoN-Cb0Cnng-.js → SignIn-BAh_EEoN-Cw5OeZFq.js} +1 -1
  145. package/dist/assets/{SignInScreen-BI3jBBJT.js → SignInScreen-C5yY1Dem.js} +1 -1
  146. package/dist/assets/{SpendManagementListViewPage-Bjvv_rMV-Bxlcxmnb.js → SpendManagementListViewPage-Bjvv_rMV-CV6l7mMW.js} +3 -3
  147. package/dist/assets/{SpendManagementPerTabPage-Bg_bB06V-xOwqVULS.js → SpendManagementPerTabPage-Bg_bB06V-DkrQXUpv.js} +1 -1
  148. package/dist/assets/{SpendManagementSection-BR8QYszb-DtQ8Wcj2.js → SpendManagementSection-BR8QYszb-CbMz6Nsb.js} +1 -1
  149. package/dist/assets/{StatementItem-u8ZKTmXX-C5IiWurQ.js → StatementItem-u8ZKTmXX-DLVEauMD.js} +1 -1
  150. package/dist/assets/{StatementsPage-6Fba2JtL-DNkO0Pab.js → StatementsPage-6Fba2JtL-8ABommoU.js} +1 -1
  151. package/dist/assets/{StatusSwitcher-Dv2SgIW0-eXTsGEHd.js → StatusSwitcher-Dv2SgIW0-CRvw7ZQl.js} +1 -1
  152. package/dist/assets/{SubTabSwitcher-BOphKmVH-_i6fG3t0.js → SubTabSwitcher-BOphKmVH-B6MCowie.js} +1 -1
  153. package/dist/assets/{SummaryCard-Cu63Ml3e-DMjN2JiK.js → SummaryCard-Cu63Ml3e-D4VaaZYy.js} +1 -1
  154. package/dist/assets/{TaskManagementPage-BsVKOwvY-BHSo74mT.js → TaskManagementPage-BsVKOwvY-CSsJmIME.js} +1 -1
  155. package/dist/assets/{TimeRangeSwitcher-Bp1_pTol-BmRZJs6N.js → TimeRangeSwitcher-Bp1_pTol-DV-l7qx7.js} +1 -1
  156. package/dist/assets/{TimeframeSwitcher-rTLFqHH2-DztT92o8.js → TimeframeSwitcher-rTLFqHH2-CpjSLG-m.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcherWithToggle-D-S1ltHl-BhBf7d8W.js → TimeframeSwitcherWithToggle-D-S1ltHl-V_UCOcrn.js} +1 -1
  158. package/dist/assets/{TopExCard-BHc2xYbP-BDSI3q-8.js → TopExCard-BHc2xYbP-DETRqd6Y.js} +1 -1
  159. package/dist/assets/{TopExDetailPage-CHl6A0K6-B3MTesWP.js → TopExDetailPage-CHl6A0K6-C17iddD4.js} +1 -1
  160. package/dist/assets/{TransactionDetailPage-BCd0982f-DmsrgF67.js → TransactionDetailPage-BCd0982f-DV3mW4Cj.js} +1 -1
  161. package/dist/assets/{TransactionList-0867BAwL-BbN0GY86.js → TransactionList-0867BAwL-Bsh07y3Y.js} +1 -1
  162. package/dist/assets/{TransactionListBig-BFvk5By8-CyDZmiFB.js → TransactionListBig-BFvk5By8-DZz2DNAU.js} +1 -1
  163. package/dist/assets/{TransactionListPage-CVso3-Sq-BUp5wVoR.js → TransactionListPage-CVso3-Sq-Berg9rXE.js} +1 -1
  164. package/dist/assets/{TransactionVendorDetailPage-CFBouGmI-sgKopRbu.js → TransactionVendorDetailPage-CFBouGmI-D_BEl8MU.js} +1 -1
  165. package/dist/assets/{TransferDrawerPage-Bwy8yQcL-Bxek4sVY.js → TransferDrawerPage-Bwy8yQcL-CeMCTwrL.js} +1 -1
  166. package/dist/assets/{TreasuryOverviewPage-CrBGDHGH-D2QukEcJ.js → TreasuryOverviewPage-CrBGDHGH-DV2GF9NG.js} +1 -1
  167. package/dist/assets/{TreasuryPromoPage-BJNoMR_d-xK5Lb0L0.js → TreasuryPromoPage-BJNoMR_d-DRZ0zwX0.js} +1 -1
  168. package/dist/assets/{TreasuryStatementsPage-BzhOeW1p-BJbzl0TE.js → TreasuryStatementsPage-BzhOeW1p-CLIGXYhI.js} +1 -1
  169. package/dist/assets/{TreasuryTaxLetterPage-CRx4YBxQ-ChfSV2ew.js → TreasuryTaxLetterPage-CRx4YBxQ-DrTWHtdG.js} +1 -1
  170. package/dist/assets/{TrendChart-_yBtvLU9-COE0_A0D.js → TrendChart-_yBtvLU9-BojfAzs1.js} +1 -1
  171. package/dist/assets/{TrendWithTransactions-CGfGoz_E-D6M9VAg2.js → TrendWithTransactions-CGfGoz_E-CE-BNUEu.js} +1 -1
  172. package/dist/assets/{UncategorizedAccountsMappingPage-BmRsiyhx-BvxkHUtm.js → UncategorizedAccountsMappingPage-BmRsiyhx-uunrUW36.js} +1 -1
  173. package/dist/assets/{UnitIntegrationPage-DXwy0NZm-xZJFT2BB.js → UnitIntegrationPage-DXwy0NZm-kp3ByBzr.js} +1 -1
  174. package/dist/assets/{UploadAdditionalDocumentOverlay-DsDLbaGz-BstUgJ1X.js → UploadAdditionalDocumentOverlay-DsDLbaGz-R7ROuJyL.js} +1 -1
  175. package/dist/assets/{Vendor2FAPopup-CPEAYcom-8bxUbWrh.js → Vendor2FAPopup-CPEAYcom-DQ5eXTQV.js} +1 -1
  176. package/dist/assets/{VendorACHDetailsPage-Cz7BK4T9-DqFkAiiK.js → VendorACHDetailsPage-Cz7BK4T9-Bo8VpL79.js} +1 -1
  177. package/dist/assets/{VendorDetailPage-BJZuKt4M-JheoiaaN.js → VendorDetailPage-BJZuKt4M-jTWH9RWV.js} +1 -1
  178. package/dist/assets/{VendorDomesticWireDetailsPage-CTkPAcfP-BEsZa-dF.js → VendorDomesticWireDetailsPage-CTkPAcfP-DX36JdYt.js} +1 -1
  179. package/dist/assets/{VendorFiling1099EditablePage-B3mRsD_0-Da9rIP24.js → VendorFiling1099EditablePage-B3mRsD_0-DukHL1IY.js} +1 -1
  180. package/dist/assets/{VendorFirstReviewPage-CxzqIMuY-Ce9bSwew.js → VendorFirstReviewPage-CxzqIMuY-B_txWPe3.js} +1 -1
  181. package/dist/assets/{VendorInternationalWireDetailsPage-DX-yi7u1-HtcW_Lch.js → VendorInternationalWireDetailsPage-DX-yi7u1-D3cnWGkU.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CLdDD8_B--E6K0pgb.js → VendorInternationalWireSwiftDetailsPage-CLdDD8_B-BUJlV7G-.js} +1 -1
  183. package/dist/assets/{VendorsAccountsSection-Di1ktFd--D6smdzr9.js → VendorsAccountsSection-Di1ktFd--B4GnQHxp.js} +1 -1
  184. package/dist/assets/{VerifyDevice-BVaWBX-g-C3K0ruRB.js → VerifyDevice-BVaWBX-g-DrQtsmsr.js} +1 -1
  185. package/dist/assets/{VideoPlayer-BVktA9zm-T4uPTDWi.js → VideoPlayer-BVktA9zm-0NoN4_H0.js} +1 -1
  186. package/dist/assets/{VideoPopup-Dd2qSy6d-CgHmsSYY.js → VideoPopup-Dd2qSy6d-DQA-fBwr.js} +1 -1
  187. package/dist/assets/{WarningsDrawerPage-C3Uqokew-Bft2m727.js → WarningsDrawerPage-C3Uqokew-DtUzzuF2.js} +1 -1
  188. package/dist/assets/{ZeniAccountDetailPage-I8HXJKWC-UUUHNqrK.js → ZeniAccountDetailPage-I8HXJKWC-3xy3JXIT.js} +1 -1
  189. package/dist/assets/{ZeniAccountListViewPage-DOEc0490-DSCWGXJj.js → ZeniAccountListViewPage-DOEc0490-Cl63dsc-.js} +1 -1
  190. package/dist/assets/{ZeniAccountNavBarPieces-CpFq6HPl-BVpelMwF.js → ZeniAccountNavBarPieces-CpFq6HPl-B6g2LNE6.js} +1 -1
  191. package/dist/assets/{ZeniAccountPromoPage-BZyIcGdq-BkpxdM6m.js → ZeniAccountPromoPage-BZyIcGdq-oKp4YXpG.js} +1 -1
  192. package/dist/assets/{ZeniAccountSetupPage-DfWkFoYj-D2RuslCT.js → ZeniAccountSetupPage-DfWkFoYj--3MDoe9z.js} +1 -1
  193. package/dist/assets/{ZeniCopyright-BXrMFMW9-CvjHxDSe.js → ZeniCopyright-BXrMFMW9-usCv-Izz.js} +1 -1
  194. package/dist/assets/{ZeniTransferAmountSlider-CnQJYowS-DKyYdjRA.js → ZeniTransferAmountSlider-CnQJYowS-_jUBOPTu.js} +1 -1
  195. package/dist/assets/{analyticsHelper-DjKX8Y9I.js → analyticsHelper-B2hf7bze.js} +1 -1
  196. package/dist/assets/{analyticsHelper-B4DXRki4-Wpr8cJ1y.js → analyticsHelper-B4DXRki4-D2JAu39g.js} +1 -1
  197. package/dist/assets/{chartTypes-COSgAHt0-C0C66Tz8.js → chartTypes-COSgAHt0-DumxjDI3.js} +1 -1
  198. package/dist/assets/{commonDimensions-BKhS6mTi-BJCGH-wc.js → commonDimensions-BKhS6mTi-OeOQzWes.js} +1 -1
  199. package/dist/assets/{detailCommon-CJQExMa7-DVrCUwsk.js → detailCommon-CJQExMa7-jQWgPHkg.js} +1 -1
  200. package/dist/assets/{downloadPdf-Bru9fczY-C4Synbir.js → downloadPdf-Bru9fczY-Cy0zTKG6.js} +1 -1
  201. package/dist/assets/{index-BhnojtD5.js → index-DRuWBnqK.js} +4 -4
  202. package/dist/assets/{mapLoadingInProgressToTreeNode-DV8vIRaP-Bqnpe3QW.js → mapLoadingInProgressToTreeNode-DV8vIRaP-BhwpA0M5.js} +1 -1
  203. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DCJ__ek0-CUZntkpb.js → mapSectionWithAcOnlyToTreeNode-DCJ__ek0-DXcoeNJU.js} +1 -1
  204. package/dist/assets/{mapSpacerToTreeNode-CA9dSVnx-VXXHlg9U.js → mapSpacerToTreeNode-CA9dSVnx-BI69_8HR.js} +1 -1
  205. package/dist/assets/{mapTimeframeBalancesToTreeNode-BO_g8R5Q-CJ2EVrlN.js → mapTimeframeBalancesToTreeNode-BO_g8R5Q-hcThP2BC.js} +1 -1
  206. package/dist/assets/{mapTimeframeBalancesToTreeNode-Be9Kacde-BNZaDq3u.js → mapTimeframeBalancesToTreeNode-Be9Kacde-CnxHW9i6.js} +1 -1
  207. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Dn7xO_6A-B7iraVel.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Dn7xO_6A-Ds2JhE0U.js} +1 -1
  208. package/dist/assets/{toCOABalancesWithID-DTZGQ336-CiSdq2JW.js → toCOABalancesWithID-DTZGQ336-C5g89Gde.js} +1 -1
  209. package/dist/assets/{toChartData-Dqwt7ax6-BHUA0e4y.js → toChartData-Dqwt7ax6-RJLJhrRW.js} +1 -1
  210. package/dist/assets/{uploadAttachment-6mcNX-M3-C72jRix6.js → uploadAttachment-6mcNX-M3-B0tTVHZs.js} +1 -1
  211. package/dist/assets/{uploadReceipts-Dp1dvCjf-DgePMo9X.js → uploadReceipts-Dp1dvCjf-CVmz8CMd.js} +1 -1
  212. package/dist/index.html +1 -1
  213. package/package.json +1 -1
  214. package/dist/assets/CustomerOnboardingContainerPage-BXJQUW7p-CPpxWiwM.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as W,d as G,z as y,ax as he,l as _,j as r,aM as k,b_ as fe,bI as me,bG as ge,y as v,o as C,aS as _e,_ as be,b$ as Se,u as w,C as B,aC as Q,x as we,aU as Ce,au as ye,bL as xe}from"./index-BhnojtD5.js";import{b as P,w as J,n as b}from"./vendor-Bs1fkIUX.js";import{m as z,l as Z}from"./analyticsHelper-B4DXRki4-Wpr8cJ1y.js";import{u as Oe}from"./ReportTableViewSelector-7fjnfeAW-DpeIRyfh.js";import{a as X,p as Re}from"./TimeRangeSwitcher-Bp1_pTol-BmRZJs6N.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-D-S1ltHl-BhBf7d8W.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-CGIlEzcv-BKgmgiW2.js";import{I as ve,R as F,x as ee}from"./CollapsableReportTable-CcJXUhk5-BB5w0-d0.js";import{T as te,I as se,L as j,D as Le,g as ne}from"./mapSectionWithAcOnlyToTreeNode-DCJ__ek0-CUZntkpb.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BO_g8R5Q-CJ2EVrlN.js";import{d as Te,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Dn7xO_6A-B7iraVel.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-DV8vIRaP-Bqnpe3QW.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./TimeframeSwitcher-rTLFqHH2-DztT92o8.js";import"./page-detail-CWX5S47F-lMo0MYzU.js";import"./AccountRow-0aCtZvU4-BVljyIs7.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Te({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Le({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
1
+ import{q as W,d as G,z as y,ax as he,l as _,j as r,aM as k,b_ as fe,bI as me,bG as ge,y as v,o as C,aS as _e,_ as be,b$ as Se,u as w,C as B,aC as Q,x as we,aU as Ce,au as ye,bL as xe}from"./index-DRuWBnqK.js";import{b as P,w as J,n as b}from"./vendor-Bs1fkIUX.js";import{m as z,l as Z}from"./analyticsHelper-B4DXRki4-D2JAu39g.js";import{u as Oe}from"./ReportTableViewSelector-7fjnfeAW-g0xF37QY.js";import{a as X,p as Re}from"./TimeRangeSwitcher-Bp1_pTol-DV-l7qx7.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-D-S1ltHl-V_UCOcrn.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-CGIlEzcv-kLcG2xXY.js";import{I as ve,R as F,x as ee}from"./CollapsableReportTable-CcJXUhk5-BjXRRYRA.js";import{T as te,I as se,L as j,D as Le,g as ne}from"./mapSectionWithAcOnlyToTreeNode-DCJ__ek0-DXcoeNJU.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BO_g8R5Q-hcThP2BC.js";import{d as Te,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Dn7xO_6A-Ds2JhE0U.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-DV8vIRaP-BhwpA0M5.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./TimeframeSwitcher-rTLFqHH2-CpjSLG-m.js";import"./page-detail-CWX5S47F-lMo0MYzU.js";import"./AccountRow-0aCtZvU4-AspyYs3a.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Te({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Le({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
2
2
  height: ${e=>e.height}px;
3
3
  width: 99.9%;
4
4
  margin-top: ${C.sp2};
@@ -1,4 +1,4 @@
1
- import{d as A,j as a,z as S,q as de,aM as Ae,b3 as Q,bR as Te,u as E,bS as J,bi as ee,b as M,bh as ae,aX as re,bT as oe,bU as ge,o as m,bV as te,p as g,aC as Ve,bW as pe,bX as me,y as xe,bY as fe,am as P,bZ as V,ba as F}from"./index-BhnojtD5.js";import{b as R,w as le,n as x}from"./vendor-Bs1fkIUX.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-COSgAHt0-C0C66Tz8.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-DTZGQ336-CiSdq2JW.js";import{V as Z}from"./toChartData-Dqwt7ax6-BHUA0e4y.js";const q={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Fe=x.div`
1
+ import{d as A,j as a,z as S,q as de,aM as Ae,b3 as Q,bR as Te,u as E,bS as J,bi as ee,b as M,bh as ae,aX as re,bT as oe,bU as ge,o as m,bV as te,p as g,aC as Ve,bW as pe,bX as me,y as xe,bY as fe,am as P,bZ as V,ba as F}from"./index-DRuWBnqK.js";import{b as R,w as le,n as x}from"./vendor-Bs1fkIUX.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-COSgAHt0-DumxjDI3.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-DTZGQ336-C5g89Gde.js";import{V as Z}from"./toChartData-Dqwt7ax6-RJLJhrRW.js";const q={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Fe=x.div`
2
2
  display: flex;
3
3
  `,He=x.div`
4
4
  margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
@@ -1,4 +1,4 @@
1
- import{q as Tt,ax as jt,y,fh as vt,z as St,fi as Ct,fj as Dt,j as t,fk as It,fl as le,fm as kt,l as d,fn as At,fo as Pt,aM as v,fp as Mt,aN as P,fq as Bt,fr as Nt,fs as Pe,ft as Me,fu as Be,b as G,fv as O,fw as z,fx as _,p as S,fy as Ft,fz as Rt,fA as Et,fB as Lt,c6 as Ne,o as n,aQ as Ot,u as c,aj as zt,ch as _t,B as Wt,M as Ut,fC as Ht,cx as Zt,am as se,an as de,fD as Yt,fE as qt,bn as Gt,c as Vt,b9 as Kt,ar as Xe,bQ as Xt,ai as Qe,by as Qt,fF as Jt}from"./index-BhnojtD5.js";import{b as U,n as i}from"./vendor-Bs1fkIUX.js";import{t as en,o as tn}from"./LowBalancePopup-pumriZyO-Draylozm.js";import{S as W}from"./LabeledText-R8i6QoET-B3nfKnFZ.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Fe,common:{currency:j,labels:Re,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=ln,Le=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Yt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(qt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=Tt(),m=jt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,F=`dashboard_${m.currentTenant?.companyId}`,R=p.largeLabelWidth.value(s),E=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=vt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Fe.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(An,{size:s,children:t.jsx(kn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(E?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[E,J,ye,me,ue]);const T=e.billPayInfo?.stage,k=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:k?.code=="approved"&&H?.code?H:k,pt=e.billPayInfo?.isRefundInitiated===!0?mt:k?.code=="approved"&&H?.code?H:k,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(kt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,Y=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},A=g&&(T?.code!=null?T.code==="draft"||k?.code==="approved":!0),b=A&&!it,Te=Oe(b,Y,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===j.currencyCode?Rt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?At(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Fe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=T?.code??"draft",Ce=k?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",ke=Jt(m.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,ke,Ae):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,ke,Ae)}}},je=()=>{ve===!0&&q(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[ve,q]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:E?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,ve?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:je,onCancelClick:()=>{q(!1),ne()},onClickAway:()=>{q(!1)}}):null,t.jsx(Pt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(D)??"",paymentType:we,amount:P("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(Ye,{onClick:be,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ye,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(jn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(En,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(vn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(qe,{children:t.jsx(Ge,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ve,{windowSize:s,children:P("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Fn,{"data-testid":v("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{children:r!=null?Pe.includes(r.code)?t.jsx(Me,{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(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(qe,{children:t.jsx(Ge,{})}),t.jsxs(Rn,{"data-testid":v("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ve,{style:{width:"25%"},windowSize:s,children:P("0,0[.]00",l.amount)})]}),t.jsx(Ke,{children:r!=null?Pe.includes(r.code)?t.jsx(Me,{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})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(He,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:G.largeMedium.cssObject,decimalStyles:G.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ze,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Ft(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(V,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(V,{}),!g&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(V,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(V,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==j.currencyCode?Ee.conversionAmountColon:Re.invoiceAmount}),t.jsx(oe,{children:P("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Ee.transactionFee}),t.jsx(oe,{children:P("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Re.total}),t.jsx(oe,{children:P("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:G.h6Medium.cssObject,decimalStyles:G.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:A&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:A&&!b?$e:ne,style:{width:ze(!1,A,b,Y,s)}},primaryBtn:{label:Oe(b,Y,e.isBillMarkedForRetry),isLoading:E?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?q(!0):je()},style:{width:ze(!0,A,b,Y,s)}},rightSideComponent:A&&!b&&E.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(Pn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
1
+ import{q as Tt,ax as jt,y,fh as vt,z as St,fi as Ct,fj as Dt,j as t,fk as It,fl as le,fm as kt,l as d,fn as At,fo as Pt,aM as v,fp as Mt,aN as P,fq as Bt,fr as Nt,fs as Pe,ft as Me,fu as Be,b as G,fv as O,fw as z,fx as _,p as S,fy as Ft,fz as Rt,fA as Et,fB as Lt,c6 as Ne,o as n,aQ as Ot,u as c,aj as zt,ch as _t,B as Wt,M as Ut,fC as Ht,cx as Zt,am as se,an as de,fD as Yt,fE as qt,bn as Gt,c as Vt,b9 as Kt,ar as Xe,bQ as Xt,ai as Qe,by as Qt,fF as Jt}from"./index-DRuWBnqK.js";import{b as U,n as i}from"./vendor-Bs1fkIUX.js";import{t as en,o as tn}from"./LowBalancePopup-pumriZyO-DMrl7bFF.js";import{S as W}from"./LabeledText-R8i6QoET-D2nT-MAs.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Fe,common:{currency:j,labels:Re,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=ln,Le=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Yt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(qt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=Tt(),m=jt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,F=`dashboard_${m.currentTenant?.companyId}`,R=p.largeLabelWidth.value(s),E=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=vt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Fe.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(An,{size:s,children:t.jsx(kn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(E?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[E,J,ye,me,ue]);const T=e.billPayInfo?.stage,k=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:k?.code=="approved"&&H?.code?H:k,pt=e.billPayInfo?.isRefundInitiated===!0?mt:k?.code=="approved"&&H?.code?H:k,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(kt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,Y=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},A=g&&(T?.code!=null?T.code==="draft"||k?.code==="approved":!0),b=A&&!it,Te=Oe(b,Y,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===j.currencyCode?Rt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?At(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Fe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=T?.code??"draft",Ce=k?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",ke=Jt(m.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,ke,Ae):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,ke,Ae)}}},je=()=>{ve===!0&&q(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[ve,q]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:E?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,ve?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:je,onCancelClick:()=>{q(!1),ne()},onClickAway:()=>{q(!1)}}):null,t.jsx(Pt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(D)??"",paymentType:we,amount:P("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(Ye,{onClick:be,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ye,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(jn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(En,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(vn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(qe,{children:t.jsx(Ge,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ve,{windowSize:s,children:P("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Fn,{"data-testid":v("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{children:r!=null?Pe.includes(r.code)?t.jsx(Me,{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(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(qe,{children:t.jsx(Ge,{})}),t.jsxs(Rn,{"data-testid":v("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ve,{style:{width:"25%"},windowSize:s,children:P("0,0[.]00",l.amount)})]}),t.jsx(Ke,{children:r!=null?Pe.includes(r.code)?t.jsx(Me,{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})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(He,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:G.largeMedium.cssObject,decimalStyles:G.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ze,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Ft(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(V,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(V,{}),!g&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(V,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(V,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==j.currencyCode?Ee.conversionAmountColon:Re.invoiceAmount}),t.jsx(oe,{children:P("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Ee.transactionFee}),t.jsx(oe,{children:P("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Re.total}),t.jsx(oe,{children:P("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:G.h6Medium.cssObject,decimalStyles:G.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:A&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:A&&!b?$e:ne,style:{width:ze(!1,A,b,Y,s)}},primaryBtn:{label:Oe(b,Y,e.isBillMarkedForRetry),isLoading:E?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?q(!0):je()},style:{width:ze(!0,A,b,Y,s)}},rightSideComponent:A&&!b&&E.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(Pn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{q as M,j as e,aM as m,o as r,aQ as P,y as d,T as L,B as C,M as W,p as s,am as $,cQ as R,_ as D,ai as j,bm as I,u as n,eD as G,r as q,j6 as A,kj as F}from"./index-BhnojtD5.js";import{n as t}from"./vendor-Bs1fkIUX.js";const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},O={title:new C("h6Regular","h5Regular")},mi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const a=M();return e.jsxs(_,{children:[e.jsx(X,{windowSize:a,children:e.jsx(Y,{children:e.jsx(Z,{windowSize:a,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":m("review-overlay-close",i)})})})})}),e.jsxs(H,{windowSize:a,children:[e.jsxs(J,{windowSize:a,children:[e.jsx(U,{children:e.jsx(K,{windowSize:a,children:i})}),e.jsx(N,{isError:p.isError,windowSize:a,children:p.content})]}),e.jsx(V,{windowSize:a,children:S.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return e.jsxs(ri,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?e.jsx(ci,{onClick:()=>B(o.id),"data-testid":m("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:Q(o)}),e.jsxs(oi,{children:[e.jsxs(x,{children:[e.jsx(u,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),e.jsx(u,{isWarning:c,isError:h,children:o.rightSideText.title})]}),e.jsxs(x,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?e.jsxs(w,{windowSize:a,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx(y,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?e.jsxs(w,{windowSize:a,children:[e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx(y,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),b?e.jsx(P,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},Q=i=>i.reviewStatus.isLoading?e.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(v,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(v,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(ai,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(li,{}),_=t.div`
1
+ import{q as M,j as e,aM as m,o as r,aQ as P,y as d,T as L,B as C,M as W,p as s,am as $,cQ as R,_ as D,ai as j,bm as I,u as n,eD as G,r as q,j6 as A,kj as F}from"./index-DRuWBnqK.js";import{n as t}from"./vendor-Bs1fkIUX.js";const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},O={title:new C("h6Regular","h5Regular")},mi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const a=M();return e.jsxs(_,{children:[e.jsx(X,{windowSize:a,children:e.jsx(Y,{children:e.jsx(Z,{windowSize:a,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":m("review-overlay-close",i)})})})})}),e.jsxs(H,{windowSize:a,children:[e.jsxs(J,{windowSize:a,children:[e.jsx(U,{children:e.jsx(K,{windowSize:a,children:i})}),e.jsx(N,{isError:p.isError,windowSize:a,children:p.content})]}),e.jsx(V,{windowSize:a,children:S.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return e.jsxs(ri,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?e.jsx(ci,{onClick:()=>B(o.id),"data-testid":m("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:Q(o)}),e.jsxs(oi,{children:[e.jsxs(x,{children:[e.jsx(u,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),e.jsx(u,{isWarning:c,isError:h,children:o.rightSideText.title})]}),e.jsxs(x,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?e.jsxs(w,{windowSize:a,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx(y,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?e.jsxs(w,{windowSize:a,children:[e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx(y,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),b?e.jsx(P,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},Q=i=>i.reviewStatus.isLoading?e.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(v,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(v,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(ai,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(li,{}),_=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${i=>i.theme.colors.grey4};
@@ -1,4 +1,4 @@
1
- import{f5 as h,f6 as x,j as s,c6 as m,o as n,aM as o,z as g,ao as j,ai as p}from"./index-BhnojtD5.js";import{n as r}from"./vendor-Bs1fkIUX.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,f=r.div``,y=r.div`
1
+ import{f5 as h,f6 as x,j as s,c6 as m,o as n,aM as o,z as g,ao as j,ai as p}from"./index-DRuWBnqK.js";import{n as r}from"./vendor-Bs1fkIUX.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,f=r.div``,y=r.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{aP as H,l as me,iy as ee,gR as fe,eS as we,iz as Je,aa as Me,iA as Ve,cT as _e,cU as Pe,j as a,z as be,ad as Fe,cE as qe,cF as Ne,cG as Re,aQ as Be,iB as We,iC as ze,ab as he,iD as Se,iE as Ue,d4 as $e,q as Ge,iS as He,gW as re,u as B,p as De,y as Ce,cW as Ke,iF as Qe,iG as Ye,iH as Ze,o as _}from"./index-BhnojtD5.js";import{b as m,n as z}from"./vendor-Bs1fkIUX.js";import{i as Xe,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-Bjc3OMeM-BsRWulQF.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const W={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=z.div`
1
+ import{aP as H,l as me,iy as ee,gR as fe,eS as we,iz as Je,aa as Me,iA as Ve,cT as _e,cU as Pe,j as a,z as be,ad as Fe,cE as qe,cF as Ne,cG as Re,aQ as Be,iB as We,iC as ze,ab as he,iD as Se,iE as Ue,d4 as $e,q as Ge,iS as He,gW as re,u as B,p as De,y as Ce,cW as Ke,iF as Qe,iG as Ye,iH as Ze,o as _}from"./index-DRuWBnqK.js";import{b as m,n as z}from"./vendor-Bs1fkIUX.js";import{i as Xe,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-Bjc3OMeM-vr1nPwGg.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const W={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=z.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{aP as _,l as ie,iy as Q,gR as ke,eS as Ie,iz as Je,aa as Le,iA as we,cT as Me,cU as Pe,j as a,z as De,ad as Ve,cE as Fe,cF as _e,cG as $e,aQ as qe,iB as ze,iC as Be,ab as re,iD as pe,iE as Ne,d4 as Ue,q as We,gW as me,u as X,p as Re,y as Ge,iF as Ke,iG as He,iH as Ye,o as L}from"./index-BhnojtD5.js";import{b as D,n as V}from"./vendor-Bs1fkIUX.js";import{i as Qe,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-Bjc3OMeM-BsRWulQF.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const B={labelWidth:new Ge(160,160,160)},tt=V.div`
1
+ import{aP as _,l as ie,iy as Q,gR as ke,eS as Ie,iz as Je,aa as Le,iA as we,cT as Me,cU as Pe,j as a,z as De,ad as Ve,cE as Fe,cF as _e,cG as $e,aQ as qe,iB as ze,iC as Be,ab as re,iD as pe,iE as Ne,d4 as Ue,q as We,gW as me,u as X,p as Re,y as Ge,iF as Ke,iG as He,iH as Ye,o as L}from"./index-DRuWBnqK.js";import{b as D,n as V}from"./vendor-Bs1fkIUX.js";import{i as Qe,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-Bjc3OMeM-vr1nPwGg.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const B={labelWidth:new Ge(160,160,160)},tt=V.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{q as I,d as Z,j as t,iI as ie,z as N,iJ as le,B as oe,iK as ge,e8 as fe,fu as we,b as A,iL as ye,iH as be,o as i,y as b,p as j,c as $e,ab as re,e4 as je,cE as Se,cG as ke,d4 as X,dc as ee,da as ve,iM as K,iN as De,b3 as Ce,iO as Me,cI as ze,iP as Le,u as h,am as L,b9 as Oe,cF as Ee,ap as pe,dd as Ae,b1 as ne,dp as Ie,aQ as Fe,l as Y,iQ as F,gt as Te,aN as Ve,iR as Je,aU as G,de as Be,bm as Pe}from"./index-BhnojtD5.js";import{b as C,n as o,i as B}from"./vendor-Bs1fkIUX.js";const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=C.useState(!1),{control:m,formState:{errors:g},setValue:S}=X(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(g,l),x=I(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ue,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:R(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(Re,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(_e,{alignLeft:r===!0,children:[t.jsx(Xe,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Ie,{name:R(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ke,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(et,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Fe,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Re({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(Ye,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ge,{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 We({defaultValue:e,onClick:l}){return t.jsxs(Qe,{children:[t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(Y.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
1
+ import{q as I,d as Z,j as t,iI as ie,z as N,iJ as le,B as oe,iK as ge,e8 as fe,fu as we,b as A,iL as ye,iH as be,o as i,y as b,p as j,c as $e,ab as re,e4 as je,cE as Se,cG as ke,d4 as X,dc as ee,da as ve,iM as K,iN as De,b3 as Ce,iO as Me,cI as ze,iP as Le,u as h,am as L,b9 as Oe,cF as Ee,ap as pe,dd as Ae,b1 as ne,dp as Ie,aQ as Fe,l as Y,iQ as F,gt as Te,aN as Ve,iR as Je,aU as G,de as Be,bm as Pe}from"./index-DRuWBnqK.js";import{b as C,n as o,i as B}from"./vendor-Bs1fkIUX.js";const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=C.useState(!1),{control:m,formState:{errors:g},setValue:S}=X(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(g,l),x=I(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ue,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:R(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(Re,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(_e,{alignLeft:r===!0,children:[t.jsx(Xe,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Ie,{name:R(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ke,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(et,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Fe,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Re({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(Ye,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ge,{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 We({defaultValue:e,onClick:l}){return t.jsxs(Qe,{children:[t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(Y.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
2
2
  position: relative;
3
3
  `,Ye=o.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{d as Ut,q as en,l as K,e as Ye,f as tt,y as dt,E as cd,g as fd,h as tn,F as ld,N as Tt,z as ir,i as Bt,k as qt,_ as rn,o as kt,Y as hd,m as dd,s as Ft,O as Yl,Q as Lt,G as pd,H as md,u as yn,R as gd,D as Kl,v as vd,w as Jl,x as Xl,C as zo,I as yd,J as _d,K as bd,L as Ql,U as wd,P as Sd,S as Ed,W as Rd,X as Od,Z as Td,$ as xd,a0 as Cd,a1 as Id,a2 as Ad,a3 as Pd,a4 as kd,a5 as Ld,a6 as qd}from"./index-BhnojtD5.js";import{j as X,D as nn,S as Vt}from"./mui-Ty75qFQF.js";import{b as Se,n as ut,c as Ve,f as eh,g as jd}from"./vendor-Bs1fkIUX.js";import{f as Dd}from"./analyticsHelper-DjKX8Y9I.js";import{g as rt,u as Ae,f as Ke}from"./redux-CEhZD0hA.js";import{a as Je,d as pt,e as Nd,N as er,R as wt,c as qe,u as Zo,b as Go}from"./routing-Dk1A2KYI.js";import{B as ze}from"./analytics-BbBRZ6cw.js";import{p as Oe}from"./sentry-BE5FTzpq.js";import{a as Qe,b as $d,c as Wo,d as Md,e as Yo,f as Ko,g as Fd,h as Ud,i as zt,j as th,k as rr,l as an,m as Bd,n as Vd,o as zd,p as Gd,q as Hd,s as Zd,t as Wd,u as rh,v as on,w as ar}from"./crypto-CK1x27Ua.js";import{r as Yd}from"./lodash-B66NTFTY.js";import"./liveblocks-8ht9CoL5.js";const Kd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Jd(e,n){return{headerActions:{onTabChange:a=>{const i=qt(a),o=Bt(a);Ye.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(K.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ye.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(o=>o.matchingOperator).join(vs.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(o=>o.field).join(vs.comma)}}),e(K.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(K.initializeCompanyHealthMetricViewLocalData(a))},onColumnSortConfigChanged:(a,i)=>{e(K.updateCompanyHealthViewUIState({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(K.fetchCompanyHealthMetricView())},onFiltersChange:a=>{e(K.updateCompanyHealthViewUIState({uiState:{filters:a}}))}}}}function Xd(e,n){return{headerData:{selectedTabOption:Tt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Qd=Ke(Xd,Jd)(ld);function _n({isDrawerOpen:e}){const n=Je(),a=rt(),i=Ut(),o=en(),{companyId:t}=pt(),[r,s]=Nd(),[p,l]=Se.useState(!1),u=Ae(b=>K.getCompanyHealthMetricView(b)),f=Ae(b=>K.getCompanyManagementView(b)),{additionalChurnFactors:d}=Ae(b=>K.getCompanyHealthMetricConfig(b)),{selectedCompanyDetail:w,selectedCompanyId:h,localFormDataAndStatusByCompanyId:v}=u,m=Ae(b=>b.companyViewState.zeniUsers.fetchState),c=Ae(b=>b.companyHealthMetricConfigViewState);if(Se.useEffect(()=>{const b=y=>y==="Not-Started"||y==="Error";u.fetchState==="Completed"?a(K.fetchAllCockpitViews(!1)):b(u.fetchState)&&(a(K.fetchCompanyHealthMetricView()),b(m)&&a(K.fetchZeniUsers()),b(c.fetchState)&&a(K.fetchCompanyHealthMetricConfig()))},[u.fetchState,c.fetchState]),Se.useEffect(()=>{t!=null&&u.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(K.initializeCompanyHealthMetricViewLocalData(t)),w!=null&&(Ye.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[u.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),tt.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return X.jsxs(X.Fragment,{children:[e===!0||h!=null&&w!=null?X.jsx(nn,{anchor:"right",open:h!=null,PaperProps:{style:{width:Kd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(K.removeSelectedCompanyId()),children:X.jsx(cd,{roomId:`cockpit_${h}`,autoConnect:!0,children:X.jsx(fd,{onSaveClick:()=>{h!=null&&a(K.saveCompanyHealthMetricById(h))},onSaveChangesToLocalStore:b=>{u.selectedCompanyId!=null&&a(K.updateCompanyHealthMetricLocalStore({companyId:u.selectedCompanyId,updatedLocalData:b}))},localData:v?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:u,onCloseDrawer:()=>a(K.removeSelectedCompanyId()),analytics:Ye,urlSource:p,additionalChurnFactorsOptions:d})})}):null,X.jsx(Qd,{healthView:u,managementView:f,navigate:n,mixpanelHMUrl:tn.mixpanelHMUrl})]})}const nh=(e,n)=>{const a=[...e??[]];return a.push(n),a},ep=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},tp=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},Fe=({state:e,element:n})=>tt.isSignedIn()===!0?X.jsx(X.Fragment,{children:n}):X.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function rp(){return X.jsxs(wt,{children:[X.jsx(qe,{path:"/companies/:companyId",element:X.jsx(Fe,{element:X.jsx(_n,{isDrawerOpen:!0})})}),X.jsx(qe,{path:"/",element:X.jsx(Fe,{element:X.jsx(_n,{})})}),X.jsx(qe,{path:"/*",element:X.jsx(Fe,{element:X.jsx(_n,{})})})]})}const np={drawerLeftMargin:new dt(0,0,240)};function or(e){const{isOpen:n,drawerLeftMargin:a,children:i,onClose:o}=e,t=en(),r=a?.valuePx(t)??np.drawerLeftMargin.valuePx(t),s=Ut();return X.jsx(nn,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:o,children:i})}const ip=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?X.jsx(ap,{children:X.jsx(rn,{size:"ExtraLarge",start:!0})}):null,ap=ut.div`
1
+ import{d as Ut,q as en,l as K,e as Ye,f as tt,y as dt,E as cd,g as fd,h as tn,F as ld,N as Tt,z as ir,i as Bt,k as qt,_ as rn,o as kt,Y as hd,m as dd,s as Ft,O as Yl,Q as Lt,G as pd,H as md,u as yn,R as gd,D as Kl,v as vd,w as Jl,x as Xl,C as zo,I as yd,J as _d,K as bd,L as Ql,U as wd,P as Sd,S as Ed,W as Rd,X as Od,Z as Td,$ as xd,a0 as Cd,a1 as Id,a2 as Ad,a3 as Pd,a4 as kd,a5 as Ld,a6 as qd}from"./index-DRuWBnqK.js";import{j as X,D as nn,S as Vt}from"./mui-Ty75qFQF.js";import{b as Se,n as ut,c as Ve,f as eh,g as jd}from"./vendor-Bs1fkIUX.js";import{f as Dd}from"./analyticsHelper-B2hf7bze.js";import{g as rt,u as Ae,f as Ke}from"./redux-CEhZD0hA.js";import{a as Je,d as pt,e as Nd,N as er,R as wt,c as qe,u as Zo,b as Go}from"./routing-Dk1A2KYI.js";import{B as ze}from"./analytics-BbBRZ6cw.js";import{p as Oe}from"./sentry-BE5FTzpq.js";import{a as Qe,b as $d,c as Wo,d as Md,e as Yo,f as Ko,g as Fd,h as Ud,i as zt,j as th,k as rr,l as an,m as Bd,n as Vd,o as zd,p as Gd,q as Hd,s as Zd,t as Wd,u as rh,v as on,w as ar}from"./crypto-CK1x27Ua.js";import{r as Yd}from"./lodash-B66NTFTY.js";import"./liveblocks-8ht9CoL5.js";const Kd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Jd(e,n){return{headerActions:{onTabChange:a=>{const i=qt(a),o=Bt(a);Ye.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(K.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ye.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(o=>o.matchingOperator).join(vs.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(o=>o.field).join(vs.comma)}}),e(K.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(K.initializeCompanyHealthMetricViewLocalData(a))},onColumnSortConfigChanged:(a,i)=>{e(K.updateCompanyHealthViewUIState({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(K.fetchCompanyHealthMetricView())},onFiltersChange:a=>{e(K.updateCompanyHealthViewUIState({uiState:{filters:a}}))}}}}function Xd(e,n){return{headerData:{selectedTabOption:Tt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Qd=Ke(Xd,Jd)(ld);function _n({isDrawerOpen:e}){const n=Je(),a=rt(),i=Ut(),o=en(),{companyId:t}=pt(),[r,s]=Nd(),[p,l]=Se.useState(!1),u=Ae(b=>K.getCompanyHealthMetricView(b)),f=Ae(b=>K.getCompanyManagementView(b)),{additionalChurnFactors:d}=Ae(b=>K.getCompanyHealthMetricConfig(b)),{selectedCompanyDetail:w,selectedCompanyId:h,localFormDataAndStatusByCompanyId:v}=u,m=Ae(b=>b.companyViewState.zeniUsers.fetchState),c=Ae(b=>b.companyHealthMetricConfigViewState);if(Se.useEffect(()=>{const b=y=>y==="Not-Started"||y==="Error";u.fetchState==="Completed"?a(K.fetchAllCockpitViews(!1)):b(u.fetchState)&&(a(K.fetchCompanyHealthMetricView()),b(m)&&a(K.fetchZeniUsers()),b(c.fetchState)&&a(K.fetchCompanyHealthMetricConfig()))},[u.fetchState,c.fetchState]),Se.useEffect(()=>{t!=null&&u.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(K.initializeCompanyHealthMetricViewLocalData(t)),w!=null&&(Ye.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[u.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),tt.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return X.jsxs(X.Fragment,{children:[e===!0||h!=null&&w!=null?X.jsx(nn,{anchor:"right",open:h!=null,PaperProps:{style:{width:Kd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(K.removeSelectedCompanyId()),children:X.jsx(cd,{roomId:`cockpit_${h}`,autoConnect:!0,children:X.jsx(fd,{onSaveClick:()=>{h!=null&&a(K.saveCompanyHealthMetricById(h))},onSaveChangesToLocalStore:b=>{u.selectedCompanyId!=null&&a(K.updateCompanyHealthMetricLocalStore({companyId:u.selectedCompanyId,updatedLocalData:b}))},localData:v?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:u,onCloseDrawer:()=>a(K.removeSelectedCompanyId()),analytics:Ye,urlSource:p,additionalChurnFactorsOptions:d})})}):null,X.jsx(Qd,{healthView:u,managementView:f,navigate:n,mixpanelHMUrl:tn.mixpanelHMUrl})]})}const nh=(e,n)=>{const a=[...e??[]];return a.push(n),a},ep=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},tp=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},Fe=({state:e,element:n})=>tt.isSignedIn()===!0?X.jsx(X.Fragment,{children:n}):X.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function rp(){return X.jsxs(wt,{children:[X.jsx(qe,{path:"/companies/:companyId",element:X.jsx(Fe,{element:X.jsx(_n,{isDrawerOpen:!0})})}),X.jsx(qe,{path:"/",element:X.jsx(Fe,{element:X.jsx(_n,{})})}),X.jsx(qe,{path:"/*",element:X.jsx(Fe,{element:X.jsx(_n,{})})})]})}const np={drawerLeftMargin:new dt(0,0,240)};function or(e){const{isOpen:n,drawerLeftMargin:a,children:i,onClose:o}=e,t=en(),r=a?.valuePx(t)??np.drawerLeftMargin.valuePx(t),s=Ut();return X.jsx(nn,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:o,children:i})}const ip=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?X.jsx(ap,{children:X.jsx(rn,{size:"ExtraLarge",start:!0})}):null,ap=ut.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;