@zeniai/web-components 4.4.70-beta0DI → 4.4.71-beta0AN

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 (259) hide show
  1. package/dist/Editor-CbBxvSmp.js +919 -0
  2. package/dist/{SessionTimeoutPopup-LC6wnjVS.js → SessionTimeoutPopup-BMerO3g4.js} +116442 -117259
  3. package/dist/TaskDescriptionEditor-DyTyMxvk.js +700 -0
  4. package/dist/appLocale.d.ts +45 -34
  5. package/dist/apple-wallet-DMr790ZM.js +19 -0
  6. package/dist/assets/interface/microphone.svg +5 -0
  7. package/dist/bank-verification-HpVi21UA.js +5 -0
  8. package/dist/cockpit.esm.js +5751 -5992
  9. package/dist/common/audio/wav.d.ts +35 -0
  10. package/dist/common/audio/wav.test.d.ts +1 -0
  11. package/dist/common/hooks/useVoiceDictation.d.ts +32 -0
  12. package/dist/common/hooks/useVoiceDictation.test.d.ts +1 -0
  13. package/dist/components/aiCfo/AiCfoPage.d.ts +5 -0
  14. package/dist/components/aiCfo/AiCfoSidePanel.d.ts +5 -0
  15. package/dist/components/aiCfo/components/AiCfoInput.d.ts +10 -0
  16. package/dist/components/aiCfo/components/VoiceWaveform.d.ts +10 -0
  17. package/dist/components/aiCfo/hooks/useSyncTranscriptIntoLocalInput.d.ts +16 -0
  18. package/dist/components/animations/{DashboardSidebarHalloweenBottomAnimation.d.ts → DashboardHalloweenBatsAnimation.d.ts} +1 -1
  19. package/dist/components/animations/DashboardSidebarBottomAnimation.d.ts +0 -1
  20. package/dist/components/cockpit/common/parentSubsidiaryTag/components/ParentSubsidiaryTag.d.ts +3 -1
  21. package/dist/components/cockpit/common/userMultiSelect/UserMultiSelect.d.ts +1 -2
  22. package/dist/components/cockpit/common/userMultiSelect/UserMultiSelectField.d.ts +1 -2
  23. package/dist/components/commentsAndNotes/utils/CollaborationHelpers.d.ts +8 -2
  24. package/dist/components/common/ButtonWithDropDown.d.ts +32 -1
  25. package/dist/components/common/downloadReport/types/downloadReportOptions.d.ts +8 -0
  26. package/dist/components/common/downloadReport/types/downloadReportOptionsPayload.d.ts +3 -0
  27. package/dist/components/common/lazyLottie.d.ts +8 -0
  28. package/dist/components/common/lazyReactPdf.d.ts +13 -0
  29. package/dist/components/common/lazySvg.d.ts +17 -0
  30. package/dist/components/common/listPageSearchInputBox/ListPageSearchInputBox.d.ts +4 -1
  31. package/dist/components/common/listPageSearchSection/ListPageSearchSection.d.ts +3 -0
  32. package/dist/components/common/searchDiscoveryCoachmark/SearchDiscoveryCoachmark.d.ts +12 -0
  33. package/dist/components/customers/common/CustomerHierarchyTag.d.ts +10 -0
  34. package/dist/components/customers/common/CustomerNameCell.d.ts +7 -0
  35. package/dist/components/customers/customerDetail/CustomerDetailPage.d.ts +5 -1
  36. package/dist/components/customers/customerDetail/CustomerFamilyTree.d.ts +16 -0
  37. package/dist/components/customers/customerList/CustomerListPage.d.ts +4 -1
  38. package/dist/components/dataListTable/DataListTable.d.ts +1 -1
  39. package/dist/components/dataListTable/DataListTableHeader.d.ts +3 -1
  40. package/dist/components/dataListTable/DataListTablePlaceholderRow.d.ts +3 -1
  41. package/dist/components/dataListTable/types.d.ts +4 -0
  42. package/dist/components/expenseAutomation/ExpenseAutomationPage.d.ts +3 -0
  43. package/dist/components/expenseAutomation/components/NavBarWithHeader.d.ts +2 -0
  44. package/dist/components/expenseAutomation/sections/actualMatching/actualMatchingHelpers.d.ts +8 -0
  45. package/dist/components/expenseAutomation/sections/jeSchedules/accrualDetail/JEAccrualBillingPatternCard.d.ts +6 -0
  46. package/dist/components/expenseAutomation/sections/jeSchedules/accrualDetail/JEOneTimeAccrualDetailPage.d.ts +2 -1
  47. package/dist/components/expenseAutomation/sections/jeSchedules/accrualDetail/JEOneTimeAccrualLinkedEntriesButton.d.ts +3 -3
  48. package/dist/components/expenseAutomation/sections/jeSchedules/common/JEJournalEntryBlock.d.ts +92 -0
  49. package/dist/components/formElements/autoCompleteSingleSelectField/AutoCompleteSingleSelectField.d.ts +3 -1
  50. package/dist/components/formElements/singleSelectPickerField/SingleSelectPickerField.d.ts +2 -1
  51. package/dist/components/formElements/timeSpentField/TimeSpentField.d.ts +1 -8
  52. package/dist/components/invoicing/common/InvoicingListScaffold.d.ts +3 -1
  53. package/dist/components/invoicing/createInvoice/InvoicingCreateInvoicePage.d.ts +3 -1
  54. package/dist/components/invoicing/subscriptionForm/InvoicingSubscriptionFormPage.d.ts +3 -1
  55. package/dist/components/invoicing/subscriptionForm/subscriptionForm.shared.d.ts +4 -0
  56. package/dist/components/reportTree/CustomDateRangeColumnContext.d.ts +11 -0
  57. package/dist/components/reports/ReportsPage.d.ts +19 -2
  58. package/dist/components/reports/common/isGroupedReportId.d.ts +7 -0
  59. package/dist/components/settingsPage/Integrations/components/integrationLogos.d.ts +2874 -12
  60. package/dist/components/spendManagement/common/filters/components/DateRangeFilterField.d.ts +4 -2
  61. package/dist/components/spendManagement/common/filters/spendManagementFiltersHelpers.d.ts +1 -1
  62. package/dist/components/taskManagement/TaskDetailPage.d.ts +3 -9
  63. package/dist/components/taskManagement/TaskDetailPage.styled.d.ts +0 -65
  64. package/dist/components/taskManagement/TaskListFlatRowRenderer.d.ts +0 -1
  65. package/dist/components/taskManagement/TaskListRow.d.ts +2 -5
  66. package/dist/components/taskManagement/TaskManagementPage.d.ts +1 -2
  67. package/dist/components/taskManagement/taskDetailLabels.d.ts +1 -1
  68. package/dist/components/taskManagement/taskManagementHeaderItemsData.d.ts +0 -20
  69. package/dist/components/transactionDetail/create/CreateTransactionButton.d.ts +3 -3
  70. package/dist/components/transactionDetail/create/CreateTransactionLinesTable.d.ts +3 -1
  71. package/dist/components/transactionDetail/create/createTransactionFieldSchema.d.ts +4 -1
  72. package/dist/components/transactionDetail/create/createTransactionFormNames.d.ts +0 -5
  73. package/dist/components/transactionDetail/items/journalEntryTable/header/JournalEntryTableHeader.d.ts +4 -1
  74. package/dist/components/transactionDetail/items/journalEntryTable/journalEntryTableTypes.d.ts +10 -1
  75. package/dist/components/transactionDetail/items/journalEntryTable/listRow/JournalEntryTableListRow.d.ts +1 -1
  76. package/dist/components/transactionDetail/items/journalEntryTable/totals/JournalEntryTotalsRow.d.ts +2 -2
  77. package/dist/components/transactionDetail/items/transactionLineTable/header/TransactionLineTableHeader.d.ts +4 -2
  78. package/dist/components/uncategorizedAccountsMapping/UncategorizedAccountsMappingPage.d.ts +6 -2
  79. package/dist/components/vendorDetail/PageHeader.d.ts +4 -1
  80. package/dist/context/featureProvider/FeatureGateNameConstants.d.ts +4 -0
  81. package/dist/index.d.ts +1 -0
  82. package/dist/index.esm.js +335 -334
  83. package/dist/mcdonalds-logo-BTFuGR4i.js +5 -0
  84. package/dist/mercury-logo-Xd1WsXHh.js +5 -0
  85. package/dist/mercury-logo-dark-WebeUx9w.js +5 -0
  86. package/dist/more-providers-avatars-Dt7HPmCt.js +5 -0
  87. package/dist/netsuite-logo-Dp53a_wk.js +5 -0
  88. package/dist/netsuite-logo-dark-C53BYo7C.js +5 -0
  89. package/dist/paypal-logo-RhbjaD58.js +5 -0
  90. package/dist/paypal-logo-dark-_jTZA_FH.js +5 -0
  91. package/dist/phone-otp-DI7iHM2C.js +7 -0
  92. package/dist/strings/strings.d.ts +45 -34
  93. package/dist/subway-logo-B-Kc0fke.js +5 -0
  94. package/dist/underline-BNKkE4Fr.js +223 -0
  95. package/dist/vendor-@stripe-stripe-js-BmvP0myE.js +108 -0
  96. package/dist/vendor-react-lottie-player-Qhg4gMF8.js +174 -0
  97. package/dist/zeni-card-trust-BpxZYDve.js +5 -0
  98. package/dist/zeni-thanksgiving-logo-full-BLmLHEXd.js +5 -0
  99. package/package.json +8 -10
  100. package/dist/SessionTimeoutPopup-LoxZXeK3.cjs +0 -92665
  101. package/dist/assets/illustrative/ai-cfo.svg +0 -13
  102. package/dist/assets/illustrative/rewardsEmailTemplate/business-banking-icon.svg +0 -21
  103. package/dist/assets/illustrative/rewardsEmailTemplate/cards-icon.svg +0 -11
  104. package/dist/assets/interface/ai-icon-color-selected-filled-small.svg +0 -27
  105. package/dist/assets/interface/ai-icon-color-selected-small.svg +0 -20
  106. package/dist/assets/interface/ai-icon-selected-filled-plain.svg +0 -5
  107. package/dist/assets/interface/arrow-2-left.svg +0 -4
  108. package/dist/assets/interface/autofill-3.svg +0 -3
  109. package/dist/assets/interface/graph-trend.svg +0 -11
  110. package/dist/assets/interface/growth-round.svg +0 -5
  111. package/dist/assets/interface/saving-money-egg.svg +0 -15
  112. package/dist/assets/interface/timer-play.svg +0 -4
  113. package/dist/assets/interface/treasury-thumbnail.png +0 -0
  114. package/dist/assets/logos/gmail-logo.svg +0 -20
  115. package/dist/assets/logos/microsoft365-logo.svg +0 -25
  116. package/dist/assets/oldicons/promoPages/usp-line.svg +0 -3
  117. package/dist/cockpit.cjs.js +0 -5882
  118. package/dist/components/expenseAutomation/sections/jeSchedules/accrualDetail/JEAccrualJournalEntryCard.d.ts +0 -21
  119. package/dist/components/expenseAutomation/sections/jeSchedules/common/JEJournalEntryPreview.d.ts +0 -28
  120. package/dist/components/formElements/timeSpentField/timeSpentDisplayFormat.d.ts +0 -10
  121. package/dist/components/taskManagement/TaskListFilterBar.d.ts +0 -10
  122. package/dist/components/taskManagement/TaskTimerButton.d.ts +0 -28
  123. package/dist/components/taskManagement/formatTimeSpent.d.ts +0 -22
  124. package/dist/components/taskManagement/taskListGrid.d.ts +0 -21
  125. package/dist/index.cjs.js +0 -1
  126. package/dist/vendor-@babel-runtime-_D8QudKm.cjs +0 -4
  127. package/dist/vendor-@floating-ui-core-Dyvby5gX.cjs +0 -1
  128. package/dist/vendor-@floating-ui-dom-CexqkosJ.cjs +0 -1
  129. package/dist/vendor-@floating-ui-utils-sUr78tUz.cjs +0 -1
  130. package/dist/vendor-@popperjs-core-Da5z8R8_.cjs +0 -1
  131. package/dist/vendor-@react-oauth-google-RY6l5Pdi.cjs +0 -1
  132. package/dist/vendor-@statsig-client-core-CcuuGlfw.cjs +0 -1
  133. package/dist/vendor-@statsig-js-client-C6n1oYZG.cjs +0 -1
  134. package/dist/vendor-@statsig-react-bindings-DVuaLZfm.cjs +0 -1
  135. package/dist/vendor-@ungap-structured-clone-BSqP9FP7.cjs +0 -1
  136. package/dist/vendor-@zeniai-client-epic-state-DWdyw6ma.cjs +0 -1
  137. package/dist/vendor-autosuggest-highlight-BrLUL75m.cjs +0 -1
  138. package/dist/vendor-bail-CPU4onRe.cjs +0 -1
  139. package/dist/vendor-big.js-BfsYTtpv.cjs +0 -1
  140. package/dist/vendor-browser-image-compression-BZPRtRQ2.cjs +0 -20
  141. package/dist/vendor-ccount-B3JMtXU-.cjs +0 -1
  142. package/dist/vendor-clsx-CAED27AB.cjs +0 -1
  143. package/dist/vendor-color-BlJDv7Qx.cjs +0 -1
  144. package/dist/vendor-color-convert-DNxf_t0v.cjs +0 -1
  145. package/dist/vendor-color-name-DMfyNIC_.cjs +0 -1
  146. package/dist/vendor-color-string-DlngRZWO.cjs +0 -1
  147. package/dist/vendor-comma-separated-tokens-CM2uar_0.cjs +0 -1
  148. package/dist/vendor-countries-list-DdDJCIea.cjs +0 -1
  149. package/dist/vendor-country-flag-icons-CaT9dyG0.cjs +0 -1
  150. package/dist/vendor-cross-fetch-BcrCP3uC.cjs +0 -2
  151. package/dist/vendor-decode-named-character-reference-CpsLJx05.cjs +0 -1
  152. package/dist/vendor-devlop-IYc_KfOj.cjs +0 -1
  153. package/dist/vendor-escape-string-regexp-CXe2COqk.cjs +0 -1
  154. package/dist/vendor-estree-util-is-identifier-name-DqXb06tQ.cjs +0 -1
  155. package/dist/vendor-extend-Xv02IcfV.cjs +0 -1
  156. package/dist/vendor-fast-deep-equal-xp5wgv1k.cjs +0 -1
  157. package/dist/vendor-hast-util-to-jsx-runtime-Cn0tASh-.cjs +0 -1
  158. package/dist/vendor-hast-util-whitespace-B7YrIln0.cjs +0 -1
  159. package/dist/vendor-html-url-attributes-B55Ir3vo.cjs +0 -1
  160. package/dist/vendor-inline-style-parser-BwLpyraz.cjs +0 -2
  161. package/dist/vendor-input-format-B4RKCxE4.cjs +0 -3
  162. package/dist/vendor-is-arrayish-DfXUb1DJ.cjs +0 -1
  163. package/dist/vendor-is-plain-obj-DH-Kh8FX.cjs +0 -1
  164. package/dist/vendor-js-file-download-Cbb6agEb.cjs +0 -1
  165. package/dist/vendor-libphonenumber-js-DkZ7WT-u.cjs +0 -13
  166. package/dist/vendor-lodash-CNz95YDD.cjs +0 -1
  167. package/dist/vendor-lodash.debounce-C9YP0rOk.cjs +0 -1
  168. package/dist/vendor-longest-streak-CpfJ7Pkv.cjs +0 -1
  169. package/dist/vendor-lottie-web-Cnpvoe-Q.cjs +0 -2
  170. package/dist/vendor-markdown-table-BIbVC1pY.cjs +0 -2
  171. package/dist/vendor-mdast-util-find-and-replace-BqOMYvvg.cjs +0 -1
  172. package/dist/vendor-mdast-util-from-markdown-DmcqmoHq.cjs +0 -1
  173. package/dist/vendor-mdast-util-gfm-DYVYZtQo.cjs +0 -1
  174. package/dist/vendor-mdast-util-gfm-autolink-literal-B7Jk_6Zc.cjs +0 -1
  175. package/dist/vendor-mdast-util-gfm-footnote-BqZr5GmF.cjs +0 -2
  176. package/dist/vendor-mdast-util-gfm-strikethrough-DkmBmVZz.cjs +0 -1
  177. package/dist/vendor-mdast-util-gfm-table-GRkZEL2K.cjs +0 -3
  178. package/dist/vendor-mdast-util-gfm-task-list-item-COkL7umh.cjs +0 -1
  179. package/dist/vendor-mdast-util-phrasing-B3pE6Gyd.cjs +0 -1
  180. package/dist/vendor-mdast-util-to-hast-DZGTy4jY.cjs +0 -11
  181. package/dist/vendor-mdast-util-to-markdown-CFDJSkr8.cjs +0 -12
  182. package/dist/vendor-mdast-util-to-string-epeputJu.cjs +0 -1
  183. package/dist/vendor-memoize-one-DetCWhre.cjs +0 -1
  184. package/dist/vendor-micromark-QT1lJ_9G.cjs +0 -3
  185. package/dist/vendor-micromark-core-commonmark-CHMYvCou.cjs +0 -1
  186. package/dist/vendor-micromark-extension-gfm-DOHEv_Ow.cjs +0 -1
  187. package/dist/vendor-micromark-extension-gfm-autolink-literal-BIi53Rt2.cjs +0 -1
  188. package/dist/vendor-micromark-extension-gfm-footnote-CuTbB2_e.cjs +0 -1
  189. package/dist/vendor-micromark-extension-gfm-strikethrough-CcuQ-v4I.cjs +0 -1
  190. package/dist/vendor-micromark-extension-gfm-table-CoYdjDBk.cjs +0 -1
  191. package/dist/vendor-micromark-extension-gfm-tagfilter-Dyvby5gX.cjs +0 -1
  192. package/dist/vendor-micromark-extension-gfm-task-list-item-eGtf7dwN.cjs +0 -1
  193. package/dist/vendor-micromark-factory-destination-DODxvNwQ.cjs +0 -1
  194. package/dist/vendor-micromark-factory-label-DRCYHbTp.cjs +0 -1
  195. package/dist/vendor-micromark-factory-space-BxE8R4nI.cjs +0 -1
  196. package/dist/vendor-micromark-factory-title-HTScd-95.cjs +0 -1
  197. package/dist/vendor-micromark-factory-whitespace-Cfovfawt.cjs +0 -1
  198. package/dist/vendor-micromark-util-character-ThpXZ0p5.cjs +0 -1
  199. package/dist/vendor-micromark-util-chunked-CCaF1jRh.cjs +0 -1
  200. package/dist/vendor-micromark-util-classify-character-BXzv_u9-.cjs +0 -1
  201. package/dist/vendor-micromark-util-combine-extensions-ymdtWEAr.cjs +0 -1
  202. package/dist/vendor-micromark-util-decode-numeric-character-reference-sKQehvtv.cjs +0 -1
  203. package/dist/vendor-micromark-util-decode-string-Coo2FPbM.cjs +0 -1
  204. package/dist/vendor-micromark-util-encode-Dyvby5gX.cjs +0 -1
  205. package/dist/vendor-micromark-util-html-tag-name-BqwwRvi2.cjs +0 -1
  206. package/dist/vendor-micromark-util-normalize-identifier-CZzRW9lF.cjs +0 -1
  207. package/dist/vendor-micromark-util-resolve-all-B1vkj8Lj.cjs +0 -1
  208. package/dist/vendor-micromark-util-sanitize-uri-fWsohj9C.cjs +0 -1
  209. package/dist/vendor-micromark-util-subtokenize-B5hanNMp.cjs +0 -1
  210. package/dist/vendor-object-assign-5rXDT7QN.cjs +0 -1
  211. package/dist/vendor-prop-types-D7ILSZ36.cjs +0 -2
  212. package/dist/vendor-property-information-B58jd_xz.cjs +0 -1
  213. package/dist/vendor-react-CzqSQR9J.cjs +0 -14
  214. package/dist/vendor-react-circular-progressbar-BnDuoTgW.cjs +0 -6
  215. package/dist/vendor-react-datepicker-GIiaQhgI.cjs +0 -2
  216. package/dist/vendor-react-draggable-rHHMjzs1.cjs +0 -3
  217. package/dist/vendor-react-error-boundary-DUjnAjoQ.cjs +0 -1
  218. package/dist/vendor-react-fast-compare-DjJCSAPj.cjs +0 -1
  219. package/dist/vendor-react-google-autocomplete-Du5iErAd.cjs +0 -2
  220. package/dist/vendor-react-hook-form-DowHtP8_.cjs +0 -1
  221. package/dist/vendor-react-is-DK4cIQ7j.cjs +0 -1
  222. package/dist/vendor-react-lottie-player-Cwb-Xhoz.cjs +0 -1
  223. package/dist/vendor-react-lottie-player-DcNoEdGF.js +0 -155
  224. package/dist/vendor-react-markdown-sVAdj9xV.cjs +0 -1
  225. package/dist/vendor-react-merge-refs-Daoz85kW.cjs +0 -1
  226. package/dist/vendor-react-number-format-QGmN0d2v.cjs +0 -7
  227. package/dist/vendor-react-onclickoutside-CjoT6SX4.cjs +0 -1
  228. package/dist/vendor-react-phone-number-input-BBnFN-wD.cjs +0 -4
  229. package/dist/vendor-react-popper-DEi6sOBD.cjs +0 -1
  230. package/dist/vendor-react-select-DufBhudz.cjs +0 -4
  231. package/dist/vendor-react-virtualized-auto-sizer-DS8s5Nqf.cjs +0 -1
  232. package/dist/vendor-react-vtree-CtDSz2Mv.cjs +0 -1
  233. package/dist/vendor-react-webcam-CPpkXthK.cjs +0 -1
  234. package/dist/vendor-react-window-CuU_qzaW.cjs +0 -1
  235. package/dist/vendor-react-window-infinite-loader-CdyCIjx6.cjs +0 -1
  236. package/dist/vendor-remark-gfm-Bou12kJi.cjs +0 -1
  237. package/dist/vendor-remark-parse-BYKtvo5n.cjs +0 -1
  238. package/dist/vendor-remark-rehype-CuqXXG-2.cjs +0 -1
  239. package/dist/vendor-rfdc-sZ2eP5eF.cjs +0 -1
  240. package/dist/vendor-simple-swizzle-BNELyqz6.cjs +0 -1
  241. package/dist/vendor-space-separated-tokens-0etuzMC1.cjs +0 -1
  242. package/dist/vendor-style-to-js-CUjGi3ge.cjs +0 -1
  243. package/dist/vendor-style-to-object--fzklQoy.cjs +0 -1
  244. package/dist/vendor-trim-lines-BO73c4j-.cjs +0 -1
  245. package/dist/vendor-trough-CZIkZM5d.cjs +0 -1
  246. package/dist/vendor-unified-hdBFtaBE.cjs +0 -1
  247. package/dist/vendor-unist-util-is-C5fG5pIe.cjs +0 -1
  248. package/dist/vendor-unist-util-position-DsgljCtl.cjs +0 -1
  249. package/dist/vendor-unist-util-stringify-position-DfmUoPWR.cjs +0 -1
  250. package/dist/vendor-unist-util-visit-Cyg51Aas.cjs +0 -1
  251. package/dist/vendor-unist-util-visit-parents-BFfGpcYZ.cjs +0 -1
  252. package/dist/vendor-us-bank-account-validator-DOz5Vc9n.cjs +0 -1
  253. package/dist/vendor-use-isomorphic-layout-effect-CkGv31zs.cjs +0 -1
  254. package/dist/vendor-use-resize-observer-FgrE0mfc.cjs +0 -1
  255. package/dist/vendor-utils-CN5UYrS0.cjs +0 -1
  256. package/dist/vendor-vfile-DagMcMZP.cjs +0 -1
  257. package/dist/vendor-vfile-message-DB4fwBOw.cjs +0 -1
  258. package/dist/vendor-warning-FOT2NNRo.cjs +0 -1
  259. package/dist/vendor-zwitch-Dyvby5gX.cjs +0 -1
@@ -0,0 +1,919 @@
1
+ import { j as t } from "./vendor-react-DRsGZW4u.js";
2
+ import c from "@emotion/styled";
3
+ import { registerCodeHighlighting as Me, CodeNode as _e, CodeHighlightNode as Ae } from "@lexical/code";
4
+ import { $isLinkNode as F, TOGGLE_LINK_COMMAND as Q, AutoLinkNode as Oe, LinkNode as Te } from "@lexical/link";
5
+ import { $createListNode as De, $createListItemNode as Re, ListNode as V, $isListNode as Ie, INSERT_UNORDERED_LIST_COMMAND as Pe, REMOVE_LIST_COMMAND as Be, ListItemNode as Fe } from "@lexical/list";
6
+ import { TRANSFORMERS as Ue } from "@lexical/markdown";
7
+ import { AutoFocusPlugin as ze } from "@lexical/react/LexicalAutoFocusPlugin";
8
+ import { LexicalComposer as Ke } from "@lexical/react/LexicalComposer";
9
+ import { ContentEditable as He } from "@lexical/react/LexicalContentEditable";
10
+ import Je from "@lexical/react/LexicalErrorBoundary";
11
+ import { HistoryPlugin as Xe } from "@lexical/react/LexicalHistoryPlugin";
12
+ import { LinkPlugin as Qe } from "@lexical/react/LexicalLinkPlugin";
13
+ import { ListPlugin as Ve } from "@lexical/react/LexicalListPlugin";
14
+ import { MarkdownShortcutPlugin as We } from "@lexical/react/LexicalMarkdownShortcutPlugin";
15
+ import { RichTextPlugin as Ye } from "@lexical/react/LexicalRichTextPlugin";
16
+ import { $isHeadingNode as Ge, HeadingNode as qe, QuoteNode as Ze } from "@lexical/rich-text";
17
+ import { TableNode as et, TableCellNode as tt, TableRowNode as ot } from "@lexical/table";
18
+ import { useTheme as pe } from "@mui/material/styles";
19
+ import { gF as b, fs as r, g6 as rt, gq as st, eu as Z, hz as ue, aP as A, g4 as lt, fh as at, m as it, bx as nt, i$ as ee, fB as dt, dC as ct } from "./SessionTimeoutPopup-BMerO3g4.js";
20
+ import { ParagraphNode as mt, $applyNodeReplacement as pt, $getRoot as te, BLUR_COMMAND as ut, $createTextNode as oe, $createParagraphNode as ht, $getSelection as he, $isRangeSelection as ge, SELECTION_CHANGE_COMMAND as be, CAN_UNDO_COMMAND as gt, CAN_REDO_COMMAND as bt, FORMAT_TEXT_COMMAND as H, FORMAT_ELEMENT_COMMAND as P, INDENT_CONTENT_COMMAND as ft, OUTDENT_CONTENT_COMMAND as xt, UNDO_COMMAND as yt, REDO_COMMAND as Ct } from "lexical";
21
+ import { S as Nt, d as jt, l as kt, g as $t, h as vt, f as Et, b as Lt, k as wt, e as St, c as Mt, i as _t, j as At, t as Ot, E as Tt, C as Dt, a as Rt, P as It, L as Pt } from "./underline-BNKkE4Fr.js";
22
+ import * as re from "react";
23
+ import { useEffect as k, useRef as B, useState as f, useCallback as D } from "react";
24
+ import { useLexicalComposerContext as fe } from "@lexical/react/LexicalComposerContext";
25
+ import { $generateNodesFromDOM as se, $generateHtmlFromNodes as le } from "@lexical/html";
26
+ import { $isParentElementRTL as Bt, $isAtNodeEnd as ae } from "@lexical/selection";
27
+ import { mergeRegister as W, $getNearestNodeOfType as Ft } from "@lexical/utils";
28
+ import { createPortal as Ut } from "react-dom";
29
+ class xe extends mt {
30
+ __customClass;
31
+ static getType() {
32
+ return "custom-paragraph";
33
+ }
34
+ constructor(a, s) {
35
+ super(s), this.__customClass = a;
36
+ }
37
+ createDOM(a) {
38
+ const s = super.createDOM(a);
39
+ return s.classList.add(this.__customClass), s;
40
+ }
41
+ updateDOM(a, s, n) {
42
+ const m = super.updateDOM(a, s, n);
43
+ return this.__customClass !== a.__customClass && (s.classList.remove(a.__customClass), s.classList.add(this.__customClass)), m;
44
+ }
45
+ exportJSON() {
46
+ return {
47
+ ...super.exportJSON(),
48
+ type: "custom-paragraph",
49
+ customClass: this.__customClass
50
+ };
51
+ }
52
+ }
53
+ function ie(e) {
54
+ return pt(new xe(e));
55
+ }
56
+ function zt() {
57
+ const [e] = fe();
58
+ return k(() => Me(e), [e]), null;
59
+ }
60
+ const Kt = (e) => /* @__PURE__ */ re.createElement("svg", { viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ re.createElement("path", { d: "M6.60533 4.32937L7.53159 1.82613C7.69249 1.39129 8.30751 1.39129 8.46841 1.82613L9.39467 4.32937C9.7849 5.38384 10.6162 6.2151 11.6706 6.60533L14.1739 7.53158C14.6087 7.69249 14.6087 8.30751 14.1739 8.46841L11.6706 9.39467C10.6162 9.7849 9.7849 10.6162 9.39467 11.6706L8.46841 14.1739C8.30751 14.6087 7.69248 14.6087 7.53158 14.1739L6.60533 11.6706C6.2151 10.6162 5.38384 9.7849 4.32937 9.39467L1.82613 8.46841C1.39129 8.30751 1.39129 7.69248 1.82613 7.53158L4.32937 6.60533C5.38384 6.2151 6.2151 5.38384 6.60533 4.32937Z", fill: "currentColor", stroke: "currentColor" })), {
61
+ cockpit: {
62
+ monthEndReport: { toolbarPluginTooltip: Ht, editorZeniGPTButton: ne }
63
+ },
64
+ common: {
65
+ documents: J,
66
+ strings: X,
67
+ texts: { bold: Jt, indent: Xt, italic: Qt, link: Vt, outdent: Wt, redo: Yt, underline: Gt, undo: qt }
68
+ }
69
+ } = ue.getLocalizedStrings(), R = 1;
70
+ function de() {
71
+ return /* @__PURE__ */ t.jsx("div", { className: "divider" });
72
+ }
73
+ function ce(e, a) {
74
+ a === null ? (e.style.opacity = "0", e.style.top = "-1000px", e.style.left = "-1000px") : (e.style.opacity = "1", e.style.top = `${a.top + a.height + window.pageYOffset + 10}px`, e.style.left = `${a.left + window.pageXOffset - e.offsetWidth / 2 + a.width / 2}px`);
75
+ }
76
+ function Zt({ editor: e }) {
77
+ const a = pe(), s = B(null), n = B(null), m = B(!1), [x, N] = f(""), [$, o] = f(!1), [U, I] = f(null), L = D(() => {
78
+ const i = he();
79
+ if (ge(i)) {
80
+ const y = ye(i), j = y.getParent();
81
+ F(j) ? N(j.getURL()) : F(y) ? N(y.getURL()) : N("");
82
+ }
83
+ const O = s.current, v = window.getSelection(), T = document.activeElement;
84
+ if (O === null)
85
+ return;
86
+ const S = e.getRootElement();
87
+ if (i !== null && v != null && !v.isCollapsed && S !== null && S.contains(v.anchorNode)) {
88
+ const y = v.getRangeAt(0);
89
+ let j;
90
+ if (v.anchorNode === S) {
91
+ let M = S;
92
+ for (; M.firstElementChild != null; )
93
+ M = M.firstElementChild;
94
+ j = M.getBoundingClientRect();
95
+ } else
96
+ j = y.getBoundingClientRect();
97
+ m.current || ce(O, j), I(i);
98
+ } else (!T || T.className !== "link-input") && (ce(O, null), I(null), o(!1), N(""));
99
+ return !0;
100
+ }, [e]);
101
+ return k(() => W(
102
+ e.registerUpdateListener(({ editorState: i }) => {
103
+ i.read(() => {
104
+ L();
105
+ });
106
+ }),
107
+ e.registerCommand(
108
+ be,
109
+ () => (L(), !0),
110
+ R
111
+ )
112
+ ), [e, L]), k(() => {
113
+ e.getEditorState().read(() => {
114
+ L();
115
+ });
116
+ }, [e, L]), k(() => {
117
+ $ && n.current != null && n.current?.focus();
118
+ }, [$]), /* @__PURE__ */ t.jsx(so, { ref: s, children: $ ? /* @__PURE__ */ t.jsx(
119
+ "input",
120
+ {
121
+ ref: n,
122
+ className: "link-input",
123
+ value: x,
124
+ onChange: (i) => {
125
+ N(i.target.value);
126
+ },
127
+ onKeyDown: (i) => {
128
+ i.key === "Enter" ? (i.preventDefault(), U !== null && (x !== "" && e.dispatchCommand(Q, x), o(!1))) : i.key === "Escape" && (i.preventDefault(), o(!1));
129
+ }
130
+ }
131
+ ) : /* @__PURE__ */ t.jsxs(lo, { className: "link-input", children: [
132
+ /* @__PURE__ */ t.jsx(ao, { href: x, target: "_blank", rel: "noopener noreferrer", children: x }),
133
+ /* @__PURE__ */ t.jsx(
134
+ d,
135
+ {
136
+ className: "link-edit",
137
+ type: "button",
138
+ tabIndex: 0,
139
+ onMouseDown: (i) => i.preventDefault(),
140
+ onClick: () => {
141
+ o(!0);
142
+ },
143
+ children: /* @__PURE__ */ t.jsx(
144
+ lt,
145
+ {
146
+ style: {
147
+ width: r.sp3,
148
+ height: r.sp3,
149
+ color: a.colors.primary
150
+ }
151
+ }
152
+ )
153
+ }
154
+ )
155
+ ] }) });
156
+ }
157
+ function ye(e) {
158
+ const a = e.anchor, s = e.focus, n = e.anchor.getNode(), m = e.focus.getNode();
159
+ return n === m ? n : e?.isBackward() ? ae(s) ? n : m : ae(a) ? m : n;
160
+ }
161
+ function eo({
162
+ fileAttached: e,
163
+ enableZeniGPTFeature: a,
164
+ isZeniGPTResponseLoading: s,
165
+ customerRequestData: n,
166
+ initialHtmlString: m,
167
+ handleFileInputClick: x,
168
+ improveUsingZeniGPTClick: N,
169
+ setZeniRequestsHtml: $
170
+ }) {
171
+ const [o] = fe(), U = B(null), [I, L] = f(!1), [i, O] = f(!1), [v, T] = f("paragraph"), [, S] = f(!1), [y, j] = f(!1), [M, Ce] = f(!1), [Ne, je] = f(!1), [ke, $e] = f(!1), Y = D(
172
+ (l) => {
173
+ const p = new DOMParser().parseFromString(l, "text/html"), E = p.getElementsByTagName("p");
174
+ for (let C = E.length - 1; C >= 0; C--) {
175
+ const g = E[C];
176
+ g.textContent?.trim() === "" && (g.innerHTML = "");
177
+ }
178
+ const _ = se(o, p), h = te();
179
+ h.clear(), h.append(..._);
180
+ },
181
+ [o]
182
+ );
183
+ k(() => {
184
+ o.update(() => {
185
+ m != null && m.length > 0 && Y(m);
186
+ });
187
+ }, [o, m, Y]), k(() => {
188
+ o.update(() => {
189
+ s === !0 ? o.setEditable(!1) : o.setEditable(!0);
190
+ });
191
+ }, [o, s]), k(() => W(
192
+ o.registerCommand(
193
+ ut,
194
+ () => {
195
+ const l = le(o, null);
196
+ return $?.(l), !0;
197
+ },
198
+ R
199
+ )
200
+ ), [o, $]);
201
+ const ve = () => {
202
+ o.update(() => {
203
+ const l = le(o, null);
204
+ N?.(l);
205
+ });
206
+ }, G = D(
207
+ (l) => {
208
+ o.update(() => {
209
+ const w = new DOMParser(), p = ie(Z), E = De("bullet");
210
+ l.forEach((g) => {
211
+ const K = w.parseFromString(g, "text/html"), we = se(o, K), q = Re();
212
+ we.forEach((Se) => {
213
+ q.append(Se);
214
+ }), E.append(q);
215
+ }), p.append(E);
216
+ const _ = ie(Z);
217
+ _.append(oe(""));
218
+ const h = te(), C = h.getFirstChild();
219
+ C ? C.insertBefore(p) : h.append(p), C ? C.insertBefore(_) : h.append(_), h.getFirstChild() === null && h.append(
220
+ ht().append(oe(X.empty))
221
+ ), setTimeout(() => {
222
+ o.update(() => {
223
+ const g = V.clone(E);
224
+ p.replace(g);
225
+ });
226
+ }, 1e3);
227
+ });
228
+ },
229
+ [o]
230
+ );
231
+ k(() => {
232
+ n.length > 0 && G(n);
233
+ }, [n, G]);
234
+ const z = D(() => {
235
+ const l = he();
236
+ if (ge(l)) {
237
+ const w = l.anchor.getNode(), p = w.getKey() === "root" ? w : w.getTopLevelElementOrThrow(), E = p.getKey();
238
+ if (o.getElementByKey(E) !== null)
239
+ if (Ie(p)) {
240
+ const g = Ft(w, V), K = g ? g.getTag() : p.getTag();
241
+ T(K);
242
+ } else {
243
+ const g = Ge(p) ? p.getTag() : p.getType();
244
+ T(g);
245
+ }
246
+ $e(l.hasFormat("bold")), Ce(l.hasFormat("italic")), je(l.hasFormat("underline")), S(Bt(l));
247
+ const h = ye(l), C = h.getParent();
248
+ F(C) || F(h) ? j(!0) : j(!1);
249
+ }
250
+ }, [o]);
251
+ k(() => W(
252
+ o.registerUpdateListener(({ editorState: l }) => {
253
+ l.read(() => {
254
+ z();
255
+ });
256
+ }),
257
+ o.registerCommand(
258
+ be,
259
+ (l) => (z(), !1),
260
+ R
261
+ ),
262
+ o.registerCommand(
263
+ gt,
264
+ (l) => (L(l), !1),
265
+ R
266
+ ),
267
+ o.registerCommand(
268
+ bt,
269
+ (l) => (O(l), !1),
270
+ R
271
+ )
272
+ ), [o, z]);
273
+ const Ee = D(() => {
274
+ y ? o.dispatchCommand(Q, null) : o.dispatchCommand(Q, "https://");
275
+ }, [o, y]), Le = () => {
276
+ v !== "ul" ? o.dispatchCommand(Pe, void 0) : o.dispatchCommand(Be, void 0);
277
+ };
278
+ return /* @__PURE__ */ t.jsxs("div", { className: "toolbar", ref: U, children: [
279
+ /* @__PURE__ */ t.jsxs(me, { children: [
280
+ /* @__PURE__ */ t.jsx(b, { placement: "bottom", title: /* @__PURE__ */ t.jsx(u, { children: Jt }), children: /* @__PURE__ */ t.jsx(
281
+ d,
282
+ {
283
+ type: "button",
284
+ onClick: () => {
285
+ o.dispatchCommand(H, "bold");
286
+ },
287
+ className: "toolbar-item spaced " + (ke ? "active" : ""),
288
+ style: { padding: r.sp1 },
289
+ disabled: s,
290
+ "aria-label": "Format Bold",
291
+ children: /* @__PURE__ */ t.jsx(Nt, { className: "format" })
292
+ }
293
+ ) }),
294
+ /* @__PURE__ */ t.jsx(
295
+ b,
296
+ {
297
+ placement: "bottom",
298
+ title: /* @__PURE__ */ t.jsx(u, { children: Qt }),
299
+ children: /* @__PURE__ */ t.jsx(
300
+ d,
301
+ {
302
+ type: "button",
303
+ onClick: () => {
304
+ o.dispatchCommand(H, "italic");
305
+ },
306
+ className: "toolbar-item spaced " + (M ? "active" : ""),
307
+ style: { padding: r.sp1 },
308
+ disabled: s,
309
+ "aria-label": "Format Italics",
310
+ children: /* @__PURE__ */ t.jsx(jt, { className: "format" })
311
+ }
312
+ )
313
+ }
314
+ ),
315
+ /* @__PURE__ */ t.jsx(
316
+ b,
317
+ {
318
+ placement: "bottom",
319
+ title: /* @__PURE__ */ t.jsx(u, { children: Gt }),
320
+ children: /* @__PURE__ */ t.jsx(
321
+ d,
322
+ {
323
+ type: "button",
324
+ onClick: () => {
325
+ o.dispatchCommand(H, "underline");
326
+ },
327
+ className: "toolbar-item spaced " + (Ne ? "active" : ""),
328
+ style: { padding: r.sp1 },
329
+ disabled: s,
330
+ "aria-label": "Format Underline",
331
+ children: /* @__PURE__ */ t.jsx(kt, { className: "format" })
332
+ }
333
+ )
334
+ }
335
+ ),
336
+ /* @__PURE__ */ t.jsx(b, { placement: "bottom", title: /* @__PURE__ */ t.jsx(u, { children: Vt }), children: /* @__PURE__ */ t.jsxs(
337
+ d,
338
+ {
339
+ type: "button",
340
+ onClick: Ee,
341
+ className: "toolbar-item spaced " + (y ? "active" : ""),
342
+ style: { padding: r.sp1 },
343
+ disabled: s,
344
+ "aria-label": "Insert Link",
345
+ children: [
346
+ /* @__PURE__ */ t.jsx(io, { className: "format link" }),
347
+ /* @__PURE__ */ t.jsx($t, { className: "format" })
348
+ ]
349
+ }
350
+ ) }),
351
+ y && Ut(/* @__PURE__ */ t.jsx(Zt, { editor: o }), document.body),
352
+ /* @__PURE__ */ t.jsx(de, {}),
353
+ /* @__PURE__ */ t.jsx(
354
+ b,
355
+ {
356
+ placement: "bottom",
357
+ title: /* @__PURE__ */ t.jsx(u, { children: Ht.list }),
358
+ children: /* @__PURE__ */ t.jsx(
359
+ d,
360
+ {
361
+ type: "button",
362
+ onClick: Le,
363
+ className: "toolbar-item spaced " + (v === "ul" ? "active" : ""),
364
+ style: { padding: r.sp1 },
365
+ disabled: s,
366
+ "aria-label": "Format Underline",
367
+ children: /* @__PURE__ */ t.jsx(vt, { className: "format" })
368
+ }
369
+ )
370
+ }
371
+ ),
372
+ /* @__PURE__ */ t.jsx(de, {}),
373
+ /* @__PURE__ */ t.jsx(
374
+ d,
375
+ {
376
+ type: "button",
377
+ onClick: () => {
378
+ o.dispatchCommand(P, "left");
379
+ },
380
+ className: "toolbar-item spaced",
381
+ style: { padding: r.sp1 },
382
+ disabled: s,
383
+ "aria-label": "Left Align",
384
+ children: /* @__PURE__ */ t.jsx(Et, { className: "format" })
385
+ }
386
+ ),
387
+ /* @__PURE__ */ t.jsx(
388
+ d,
389
+ {
390
+ type: "button",
391
+ onClick: () => {
392
+ o.dispatchCommand(P, "center");
393
+ },
394
+ className: "toolbar-item spaced",
395
+ style: { padding: r.sp1 },
396
+ disabled: s,
397
+ "aria-label": "Center Align",
398
+ children: /* @__PURE__ */ t.jsx(Lt, { className: "format" })
399
+ }
400
+ ),
401
+ /* @__PURE__ */ t.jsx(
402
+ d,
403
+ {
404
+ type: "button",
405
+ onClick: () => {
406
+ o.dispatchCommand(P, "right");
407
+ },
408
+ className: "toolbar-item spaced",
409
+ style: { padding: r.sp1 },
410
+ disabled: s,
411
+ "aria-label": "Right Align",
412
+ children: /* @__PURE__ */ t.jsx(wt, { className: "format" })
413
+ }
414
+ ),
415
+ /* @__PURE__ */ t.jsx(
416
+ d,
417
+ {
418
+ type: "button",
419
+ onClick: () => {
420
+ o.dispatchCommand(P, "justify");
421
+ },
422
+ className: "toolbar-item",
423
+ style: { padding: r.sp1 },
424
+ disabled: s,
425
+ "aria-label": "Justify Align",
426
+ children: /* @__PURE__ */ t.jsx(St, { className: "format" })
427
+ }
428
+ ),
429
+ /* @__PURE__ */ t.jsx(
430
+ b,
431
+ {
432
+ placement: "bottom",
433
+ title: /* @__PURE__ */ t.jsx(u, { children: Xt }),
434
+ children: /* @__PURE__ */ t.jsx(
435
+ d,
436
+ {
437
+ type: "button",
438
+ onClick: () => {
439
+ o.dispatchCommand(ft, void 0);
440
+ },
441
+ className: "toolbar-item",
442
+ style: { padding: r.sp1 },
443
+ disabled: s,
444
+ "aria-label": "Indent",
445
+ children: /* @__PURE__ */ t.jsx(Mt, { className: "format" })
446
+ }
447
+ )
448
+ }
449
+ ),
450
+ /* @__PURE__ */ t.jsx(
451
+ b,
452
+ {
453
+ placement: "bottom",
454
+ title: /* @__PURE__ */ t.jsx(u, { children: Wt }),
455
+ children: /* @__PURE__ */ t.jsx(
456
+ d,
457
+ {
458
+ type: "button",
459
+ onClick: () => {
460
+ o.dispatchCommand(xt, void 0);
461
+ },
462
+ className: "toolbar-item",
463
+ style: { padding: r.sp1 },
464
+ disabled: s,
465
+ "aria-label": "Outdent",
466
+ children: /* @__PURE__ */ t.jsx(_t, { className: "format" })
467
+ }
468
+ )
469
+ }
470
+ ),
471
+ /* @__PURE__ */ t.jsx(
472
+ b,
473
+ {
474
+ placement: "bottom",
475
+ style: { padding: `2px ${r.sp2}` },
476
+ title: /* @__PURE__ */ t.jsxs(no, { children: [
477
+ /* @__PURE__ */ t.jsxs(u, { children: [
478
+ J.attachFile,
479
+ X.space
480
+ ] }),
481
+ /* @__PURE__ */ t.jsx(u, { children: J.formatImageAndDocumentAttachments }),
482
+ /* @__PURE__ */ t.jsxs(u, { children: [
483
+ X.space,
484
+ J.attachmentFileSize700KB
485
+ ] })
486
+ ] }),
487
+ children: /* @__PURE__ */ t.jsx(
488
+ d,
489
+ {
490
+ type: "button",
491
+ onClick: x,
492
+ className: "toolbar-item",
493
+ style: { padding: r.sp1 },
494
+ disabled: s || e,
495
+ "aria-label": "Attachment",
496
+ children: /* @__PURE__ */ t.jsx(rt, { className: "format" })
497
+ }
498
+ )
499
+ }
500
+ )
501
+ ] }),
502
+ /* @__PURE__ */ t.jsxs(me, { children: [
503
+ a ? /* @__PURE__ */ t.jsx(
504
+ b,
505
+ {
506
+ placement: "top",
507
+ title: /* @__PURE__ */ t.jsx(u, { children: ne.tooltip }),
508
+ children: /* @__PURE__ */ t.jsxs(
509
+ oo,
510
+ {
511
+ isZeniGPTResponseLoading: s,
512
+ type: "button",
513
+ onClick: ve,
514
+ disabled: s,
515
+ children: [
516
+ /* @__PURE__ */ t.jsx(ro, {}),
517
+ /* @__PURE__ */ t.jsx(to, { children: ne.label })
518
+ ]
519
+ }
520
+ )
521
+ }
522
+ ) : null,
523
+ /* @__PURE__ */ t.jsx(b, { placement: "bottom", title: /* @__PURE__ */ t.jsx(u, { children: qt }), children: /* @__PURE__ */ t.jsx(
524
+ d,
525
+ {
526
+ type: "button",
527
+ disabled: !I || s,
528
+ onClick: () => {
529
+ o.dispatchCommand(yt, void 0);
530
+ },
531
+ className: "toolbar-item spaced",
532
+ style: { padding: r.sp1 },
533
+ "aria-label": "Undo",
534
+ children: /* @__PURE__ */ t.jsx(st, { className: "format" })
535
+ }
536
+ ) }),
537
+ /* @__PURE__ */ t.jsx(b, { placement: "bottom", title: /* @__PURE__ */ t.jsx(u, { children: Yt }), children: /* @__PURE__ */ t.jsx(
538
+ d,
539
+ {
540
+ type: "button",
541
+ disabled: !i || s,
542
+ onClick: () => {
543
+ o.dispatchCommand(Ct, void 0);
544
+ },
545
+ className: "toolbar-item",
546
+ style: { padding: r.sp1 },
547
+ "aria-label": "Redo",
548
+ children: /* @__PURE__ */ t.jsx(At, { className: "format" })
549
+ }
550
+ ) })
551
+ ] })
552
+ ] });
553
+ }
554
+ const d = c.button``, me = c.div`
555
+ display: flex;
556
+ align-items: center;
557
+ gap: ${r.sp1};
558
+ `, u = c.div`
559
+ padding: 2px ${r.sp2};
560
+ color: ${A.neutralGrey4Light};
561
+ `, to = c(at)`
562
+ color: ${A.neutralGrey5Light};
563
+ `, oo = c.button`
564
+ display: flex;
565
+ align-items: center;
566
+ justify-content: center;
567
+ min-width: 165px;
568
+ background-color: ${(e) => e.isZeniGPTResponseLoading ? e.theme.colors.brandColorSapphireLight : e.theme.colors.brandColorSapphire};
569
+ color: ${A.neutralGrey5Light};
570
+ border-radius: ${r.sp1};
571
+ border: none;
572
+ height: 26px;
573
+ &:hover {
574
+ background-color: ${A.brandColorSapphireDark};
575
+ }
576
+ `, ro = c(Kt)`
577
+ height: ${r.sp3};
578
+ width: ${r.sp3};
579
+ margin-right: ${r.sp1};
580
+ color: ${A.brandColorPearl};
581
+ `, so = c.div`
582
+ position: absolute;
583
+ z-index: 100;
584
+ top: -10000px;
585
+ left: -10000px;
586
+ margin-top: -6px;
587
+ max-width: 300px;
588
+ width: 100%;
589
+ opacity: 0;
590
+ border: 1px solid ${(e) => e.theme.colors.grey3};
591
+ background-color: ${(e) => e.theme.colors.grey5};
592
+ box-shadow: ${r.sp0} 5px 10px ${A.overlayLight};
593
+ border-radius: ${r.sp2};
594
+ transition: opacity 0.5s;
595
+ z-index: 10000;
596
+
597
+ .link-input {
598
+ display: block;
599
+ box-sizing: border-box;
600
+ padding: ${r.sp3};
601
+ border-radius: ${r.sp3};
602
+ background-color: ${(e) => e.theme.colors.grey5};
603
+ font-size: 15px;
604
+ color: ${(e) => e.theme.colors.primary};
605
+ border: 0;
606
+ outline: 0;
607
+ position: relative;
608
+ font-family: inherit;
609
+ }
610
+
611
+ button.link-edit {
612
+ display: flex;
613
+ align-items: center;
614
+ width: 35px;
615
+ position: absolute;
616
+ right: ${r.sp0};
617
+ top: ${r.sp0};
618
+ bottom: ${r.sp0};
619
+ cursor: pointer;
620
+ background: none;
621
+ border: none;
622
+ padding: 0;
623
+ margin: 0;
624
+
625
+ &:focus {
626
+ outline: none;
627
+ }
628
+ }
629
+
630
+ .link-input a {
631
+ color: ${(e) => e.theme.colors.link};
632
+ text-decoration: none;
633
+ display: block;
634
+ white-space: nowrap;
635
+ overflow: hidden;
636
+ margin-right: 30px;
637
+ text-overflow: ellipsis;
638
+ }
639
+
640
+ .link-input a:hover {
641
+ text-decoration: underline;
642
+ }
643
+
644
+ .button {
645
+ width: 20px;
646
+ height: 20px;
647
+ display: inline-block;
648
+ padding: 6px;
649
+ border-radius: ${r.sp2};
650
+ cursor: pointer;
651
+ margin: 0 2px;
652
+ }
653
+
654
+ .button.hovered {
655
+ width: 20px;
656
+ height: 20px;
657
+ display: inline-block;
658
+ background-color: ${(e) => e.theme.colors.background};
659
+ }
660
+
661
+ .button i,
662
+ .actions i {
663
+ background-size: contain;
664
+ display: inline-block;
665
+ height: 20px;
666
+ width: 20px;
667
+ vertical-align: -0.25em;
668
+ }
669
+ `, lo = c.div``, ao = c.a``, io = c.i``, no = c.div`
670
+ display: flex;
671
+ flex-direction: column; /* Align children vertically */
672
+ align-items: center; /* Center children horizontally */
673
+ justify-content: center; /* Center children vertically */
674
+ height: 100%; /* Adjust to your desired height */
675
+ width: 100%; /* Adjust to your desired width */
676
+ `, {
677
+ cockpit: {
678
+ monthEndReport: { editorPlaceholder: co }
679
+ }
680
+ } = ue.getLocalizedStrings(), mo = c(ct)`
681
+ color: ${(e) => e.theme.colors.grey2};
682
+ overflow: hidden;
683
+ position: absolute;
684
+ text-overflow: ellipsis;
685
+ top: ${r.sp3};
686
+ left: 12px;
687
+ user-select: none;
688
+ display: inline-block;
689
+ pointer-events: none;
690
+ `, po = c(dt)`
691
+ position: relative;
692
+ margin: ${r.sp0};
693
+ border-radius: ${r.sp2};
694
+ color: ${(e) => e.theme.colors.primary};
695
+ text-align: left;
696
+ border: 1px solid ${(e) => e.theme.colors.grey2};
697
+ overflow: hidden;
698
+
699
+ &:hover {
700
+ border: ${(e) => `1px solid ${e.isZeniGPTResponseLoading ? e.theme.colors.grey2 : e.theme.colors.primary}`};
701
+
702
+ .toolbar {
703
+ border-bottom: ${(e) => `1px solid ${e.isZeniGPTResponseLoading ? e.theme.colors.grey2 : e.theme.colors.primary}`};
704
+ }
705
+ }
706
+
707
+ &:focus-within {
708
+ border: ${(e) => `1px solid ${e.isZeniGPTResponseLoading ? e.theme.colors.grey2 : e.theme.colors.primary}`};
709
+
710
+ .toolbar {
711
+ border-bottom: ${(e) => `1px solid ${e.isZeniGPTResponseLoading ? e.theme.colors.grey2 : e.theme.colors.primary}`};
712
+ }
713
+ }
714
+
715
+ .editor-input {
716
+ min-height: 120px;
717
+ max-height: 360px;
718
+ overflow: auto;
719
+ resize: none;
720
+ ${ee.largeRegular.css};
721
+ color: ${(e) => e.isZeniGPTResponseLoading ? e.theme.colors.grey2 : e.theme.colors.primary};
722
+ position: relative;
723
+ tab-size: 1;
724
+ outline: 0;
725
+ padding: ${r.sp3} 12px;
726
+
727
+ .editor__link {
728
+ color: ${(e) => e.isZeniGPTResponseLoading ? e.theme.colors.grey2 : e.theme.colors.link};
729
+ text-decoration: none;
730
+ }
731
+ .editor__link:hover {
732
+ text-decoration: underline;
733
+ cursor: pointer;
734
+ }
735
+ }
736
+
737
+ .editor-input p {
738
+ margin: 0;
739
+ }
740
+
741
+ .toolbar {
742
+ display: flex;
743
+ margin-bottom: 1px;
744
+ background: ${(e) => e.theme.colors.grey5};
745
+ padding: ${r.sp1};
746
+ border-top-left-radius: 10px;
747
+ border-top-right-radius: 10px;
748
+ vertical-align: middle;
749
+ border-bottom: 1px solid ${(e) => e.theme.colors.grey2};
750
+ justify-content: space-between;
751
+ }
752
+
753
+ .toolbar button.toolbar-item {
754
+ border: 0;
755
+ display: flex;
756
+ background: none;
757
+ border-radius: ${r.sp2};
758
+ padding: ${r.sp2};
759
+ cursor: pointer;
760
+ vertical-align: middle;
761
+ }
762
+
763
+ .toolbar button.toolbar-item:disabled {
764
+ cursor: not-allowed;
765
+ }
766
+
767
+ .toolbar button.toolbar-item.spaced {
768
+ margin-right: 2px;
769
+ }
770
+
771
+ .toolbar button.toolbar-item svg.format {
772
+ background-size: contain;
773
+ display: inline-block;
774
+ height: ${r.sp3};
775
+ width: ${r.sp3};
776
+ vertical-align: -0.25em;
777
+ display: flex;
778
+ color: ${(e) => e.theme.colors.grey1};
779
+ }
780
+
781
+ .toolbar button.toolbar-item:disabled svg.format {
782
+ opacity: 0.2;
783
+ }
784
+
785
+ .toolbar button.toolbar-item.active {
786
+ svg.format {
787
+ color: ${(e) => e.theme.colors.primary};
788
+ }
789
+ }
790
+
791
+ .toolbar .toolbar-item:hover:not([disabled]) {
792
+ svg.format {
793
+ color: ${(e) => e.theme.colors.primary};
794
+ }
795
+ }
796
+
797
+ .toolbar .divider {
798
+ width: 1px;
799
+ background-color: ${(e) => e.theme.colors.background};
800
+ margin: ${r.sp0} ${r.sp1};
801
+ }
802
+
803
+ .toolbar .toolbar-item .text {
804
+ display: flex;
805
+ width: 200px;
806
+ vertical-align: middle;
807
+ ${ee.standardRegular.css};
808
+ color: ${(e) => e.theme.colors.primary};
809
+ text-overflow: ellipsis;
810
+ width: 70px;
811
+ overflow: hidden;
812
+ height: 20px;
813
+ text-align: left;
814
+ }
815
+ `, uo = c.div`
816
+ position: absolute;
817
+ display: flex;
818
+ justify-content: center;
819
+ align-items: center;
820
+ height: 100%;
821
+ width: 100%;
822
+ z-index: 1;
823
+ `, ho = c.div`
824
+ background-color: transparent;
825
+ position: relative;
826
+ `;
827
+ function go() {
828
+ return /* @__PURE__ */ t.jsx(mo, { children: co });
829
+ }
830
+ const bo = {
831
+ namespace: "",
832
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
833
+ onError(e) {
834
+ throw e;
835
+ },
836
+ nodes: [
837
+ qe,
838
+ V,
839
+ Fe,
840
+ Ze,
841
+ _e,
842
+ Ae,
843
+ et,
844
+ tt,
845
+ ot,
846
+ Oe,
847
+ Te,
848
+ xe
849
+ ],
850
+ theme: Ot
851
+ };
852
+ function Ho({
853
+ fileAttached: e,
854
+ enableZeniGPTFeature: a,
855
+ isZeniGPTResponseLoading: s,
856
+ initialHtmlString: n,
857
+ customerRequestData: m,
858
+ handleFileInputClick: x,
859
+ improveUsingZeniGPTClick: N,
860
+ setZeniRequestsHtml: $
861
+ }) {
862
+ const o = pe();
863
+ return /* @__PURE__ */ t.jsxs(Ke, { initialConfig: bo, children: [
864
+ /* @__PURE__ */ t.jsx(Tt, {}),
865
+ /* @__PURE__ */ t.jsxs(po, { isZeniGPTResponseLoading: s, children: [
866
+ s ? /* @__PURE__ */ t.jsx(uo, { children: /* @__PURE__ */ t.jsx(
867
+ it,
868
+ {
869
+ size: "Standard",
870
+ start: !0,
871
+ style: {
872
+ display: "flex",
873
+ padding: r.sp4,
874
+ borderRadius: "100%",
875
+ backgroundColor: o.colors.grey5,
876
+ border: `2px solid ${o.colors.grey3}`,
877
+ boxShadow: `${r.sp0} 2px ${r.sp1} ${o.colors.dropShadowNormal}`
878
+ }
879
+ }
880
+ ) }) : null,
881
+ /* @__PURE__ */ t.jsx(
882
+ eo,
883
+ {
884
+ handleFileInputClick: x,
885
+ fileAttached: e,
886
+ customerRequestData: m,
887
+ enableZeniGPTFeature: a,
888
+ isZeniGPTResponseLoading: s,
889
+ initialHtmlString: n,
890
+ improveUsingZeniGPTClick: N,
891
+ setZeniRequestsHtml: $
892
+ }
893
+ ),
894
+ /* @__PURE__ */ t.jsxs(ho, { children: [
895
+ /* @__PURE__ */ t.jsx(
896
+ Ye,
897
+ {
898
+ contentEditable: /* @__PURE__ */ t.jsx(He, { className: nt }),
899
+ placeholder: /* @__PURE__ */ t.jsx(go, {}),
900
+ ErrorBoundary: Je
901
+ }
902
+ ),
903
+ /* @__PURE__ */ t.jsx(Dt, {}),
904
+ /* @__PURE__ */ t.jsx(Rt, {}),
905
+ /* @__PURE__ */ t.jsx(Xe, {}),
906
+ /* @__PURE__ */ t.jsx(ze, {}),
907
+ /* @__PURE__ */ t.jsx(zt, {}),
908
+ /* @__PURE__ */ t.jsx(Ve, {}),
909
+ /* @__PURE__ */ t.jsx(Qe, {}),
910
+ /* @__PURE__ */ t.jsx(It, {}),
911
+ /* @__PURE__ */ t.jsx(Pt, { maxDepth: 7 }),
912
+ /* @__PURE__ */ t.jsx(We, { transformers: Ue })
913
+ ] })
914
+ ] })
915
+ ] });
916
+ }
917
+ export {
918
+ Ho as default
919
+ };