@ckeditor/ckeditor5-ai 44.0.0-alpha.9 → 44.1.0-alpha.0

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 (218) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/adapters/aiadapter.d.ts +1 -1
  3. package/dist/adapters/aitextadapter.d.ts +1 -1
  4. package/dist/adapters/awstextadapter.d.ts +1 -1
  5. package/dist/adapters/openaitextadapter.d.ts +1 -1
  6. package/dist/aiassistant.d.ts +1 -1
  7. package/dist/aiassistantediting.d.ts +1 -1
  8. package/dist/aiassistantui.d.ts +1 -1
  9. package/dist/aiconfig.d.ts +1 -1
  10. package/dist/augmentation.d.ts +1 -1
  11. package/dist/index.css +7 -7
  12. package/dist/index.d.ts +1 -1
  13. package/dist/index.js +2 -2
  14. package/dist/legacyerrors.d.ts +1 -1
  15. package/dist/translations/af.js +1 -1
  16. package/dist/translations/af.umd.js +1 -1
  17. package/dist/translations/ar.js +1 -1
  18. package/dist/translations/ar.umd.js +1 -1
  19. package/dist/translations/ast.js +1 -1
  20. package/dist/translations/ast.umd.js +1 -1
  21. package/dist/translations/az.js +1 -1
  22. package/dist/translations/az.umd.js +1 -1
  23. package/dist/translations/bg.js +1 -1
  24. package/dist/translations/bg.umd.js +1 -1
  25. package/dist/translations/bn.js +1 -1
  26. package/dist/translations/bn.umd.js +1 -1
  27. package/dist/translations/bs.js +1 -1
  28. package/dist/translations/bs.umd.js +1 -1
  29. package/dist/translations/ca.js +1 -1
  30. package/dist/translations/ca.umd.js +1 -1
  31. package/dist/translations/cs.js +1 -1
  32. package/dist/translations/cs.umd.js +1 -1
  33. package/dist/translations/da.js +1 -1
  34. package/dist/translations/da.umd.js +1 -1
  35. package/dist/translations/de-ch.js +1 -1
  36. package/dist/translations/de-ch.umd.js +1 -1
  37. package/dist/translations/de.js +1 -1
  38. package/dist/translations/de.umd.js +1 -1
  39. package/dist/translations/el.js +1 -1
  40. package/dist/translations/el.umd.js +1 -1
  41. package/dist/translations/en-au.js +1 -1
  42. package/dist/translations/en-au.umd.js +1 -1
  43. package/dist/translations/en-gb.js +1 -1
  44. package/dist/translations/en-gb.umd.js +1 -1
  45. package/dist/translations/en.js +1 -1
  46. package/dist/translations/en.umd.js +1 -1
  47. package/dist/translations/eo.js +1 -1
  48. package/dist/translations/eo.umd.js +1 -1
  49. package/dist/translations/es-co.js +1 -1
  50. package/dist/translations/es-co.umd.js +1 -1
  51. package/dist/translations/es.js +1 -1
  52. package/dist/translations/es.umd.js +1 -1
  53. package/dist/translations/et.js +1 -1
  54. package/dist/translations/et.umd.js +1 -1
  55. package/dist/translations/eu.js +1 -1
  56. package/dist/translations/eu.umd.js +1 -1
  57. package/dist/translations/fa.js +1 -1
  58. package/dist/translations/fa.umd.js +1 -1
  59. package/dist/translations/fi.js +1 -1
  60. package/dist/translations/fi.umd.js +1 -1
  61. package/dist/translations/fr.js +1 -1
  62. package/dist/translations/fr.umd.js +1 -1
  63. package/dist/translations/gl.js +1 -1
  64. package/dist/translations/gl.umd.js +1 -1
  65. package/dist/translations/gu.js +1 -1
  66. package/dist/translations/gu.umd.js +1 -1
  67. package/dist/translations/he.js +1 -1
  68. package/dist/translations/he.umd.js +1 -1
  69. package/dist/translations/hi.js +1 -1
  70. package/dist/translations/hi.umd.js +1 -1
  71. package/dist/translations/hr.js +1 -1
  72. package/dist/translations/hr.umd.js +1 -1
  73. package/dist/translations/hu.js +1 -1
  74. package/dist/translations/hu.umd.js +1 -1
  75. package/dist/translations/hy.js +1 -1
  76. package/dist/translations/hy.umd.js +1 -1
  77. package/dist/translations/id.js +1 -1
  78. package/dist/translations/id.umd.js +1 -1
  79. package/dist/translations/it.js +1 -1
  80. package/dist/translations/it.umd.js +1 -1
  81. package/dist/translations/ja.js +1 -1
  82. package/dist/translations/ja.umd.js +1 -1
  83. package/dist/translations/jv.js +1 -1
  84. package/dist/translations/jv.umd.js +1 -1
  85. package/dist/translations/kk.js +1 -1
  86. package/dist/translations/kk.umd.js +1 -1
  87. package/dist/translations/km.js +1 -1
  88. package/dist/translations/km.umd.js +1 -1
  89. package/dist/translations/kn.js +1 -1
  90. package/dist/translations/kn.umd.js +1 -1
  91. package/dist/translations/ko.js +1 -1
  92. package/dist/translations/ko.umd.js +1 -1
  93. package/dist/translations/ku.js +1 -1
  94. package/dist/translations/ku.umd.js +1 -1
  95. package/dist/translations/lt.js +1 -1
  96. package/dist/translations/lt.umd.js +1 -1
  97. package/dist/translations/lv.js +1 -1
  98. package/dist/translations/lv.umd.js +1 -1
  99. package/dist/translations/ms.js +1 -1
  100. package/dist/translations/ms.umd.js +1 -1
  101. package/dist/translations/nb.js +1 -1
  102. package/dist/translations/nb.umd.js +1 -1
  103. package/dist/translations/ne.js +1 -1
  104. package/dist/translations/ne.umd.js +1 -1
  105. package/dist/translations/nl.js +1 -1
  106. package/dist/translations/nl.umd.js +1 -1
  107. package/dist/translations/no.js +1 -1
  108. package/dist/translations/no.umd.js +1 -1
  109. package/dist/translations/oc.js +1 -1
  110. package/dist/translations/oc.umd.js +1 -1
  111. package/dist/translations/pl.js +1 -1
  112. package/dist/translations/pl.umd.js +1 -1
  113. package/dist/translations/pt-br.js +1 -1
  114. package/dist/translations/pt-br.umd.js +1 -1
  115. package/dist/translations/pt.js +1 -1
  116. package/dist/translations/pt.umd.js +1 -1
  117. package/dist/translations/ro.js +1 -1
  118. package/dist/translations/ro.umd.js +1 -1
  119. package/dist/translations/ru.js +1 -1
  120. package/dist/translations/ru.umd.js +1 -1
  121. package/dist/translations/si.js +1 -1
  122. package/dist/translations/si.umd.js +1 -1
  123. package/dist/translations/sk.js +1 -1
  124. package/dist/translations/sk.umd.js +1 -1
  125. package/dist/translations/sl.js +1 -1
  126. package/dist/translations/sl.umd.js +1 -1
  127. package/dist/translations/sq.js +1 -1
  128. package/dist/translations/sq.umd.js +1 -1
  129. package/dist/translations/sr-latn.js +1 -1
  130. package/dist/translations/sr-latn.umd.js +1 -1
  131. package/dist/translations/sr.js +1 -1
  132. package/dist/translations/sr.umd.js +1 -1
  133. package/dist/translations/sv.js +1 -1
  134. package/dist/translations/sv.umd.js +1 -1
  135. package/dist/translations/th.js +1 -1
  136. package/dist/translations/th.umd.js +1 -1
  137. package/dist/translations/ti.js +1 -1
  138. package/dist/translations/ti.umd.js +1 -1
  139. package/dist/translations/tk.js +1 -1
  140. package/dist/translations/tk.umd.js +1 -1
  141. package/dist/translations/tr.js +1 -1
  142. package/dist/translations/tr.umd.js +1 -1
  143. package/dist/translations/tt.js +1 -1
  144. package/dist/translations/tt.umd.js +1 -1
  145. package/dist/translations/ug.js +1 -1
  146. package/dist/translations/ug.umd.js +1 -1
  147. package/dist/translations/uk.js +1 -1
  148. package/dist/translations/uk.umd.js +1 -1
  149. package/dist/translations/ur.js +1 -1
  150. package/dist/translations/ur.umd.js +1 -1
  151. package/dist/translations/uz.js +1 -1
  152. package/dist/translations/uz.umd.js +1 -1
  153. package/dist/translations/vi.js +1 -1
  154. package/dist/translations/vi.umd.js +1 -1
  155. package/dist/translations/zh-cn.js +1 -1
  156. package/dist/translations/zh-cn.umd.js +1 -1
  157. package/dist/translations/zh.js +1 -1
  158. package/dist/translations/zh.umd.js +1 -1
  159. package/dist/ui/aiassistantcontroller.d.ts +1 -1
  160. package/dist/ui/form/aiformcontentarea.d.ts +1 -1
  161. package/dist/ui/form/aiformerrorview.d.ts +1 -1
  162. package/dist/ui/form/aiformpromptview.d.ts +1 -1
  163. package/dist/ui/form/aiformtoolbarview.d.ts +1 -1
  164. package/dist/ui/form/aiformview.d.ts +1 -1
  165. package/dist/ui/form/aihistorylistitemview.d.ts +1 -1
  166. package/dist/ui/form/aihistorylistview.d.ts +1 -1
  167. package/dist/ui/form/prompthistory.d.ts +1 -1
  168. package/dist/ui/showaiassistantcommand.d.ts +1 -1
  169. package/dist/utils/common-translations.d.ts +1 -1
  170. package/dist/utils/normalizecommandsconfig.d.ts +1 -1
  171. package/package.json +8 -8
  172. package/src/adapters/aiadapter.d.ts +1 -1
  173. package/src/adapters/aiadapter.js +1 -1
  174. package/src/adapters/aitextadapter.d.ts +1 -1
  175. package/src/adapters/aitextadapter.js +1 -1
  176. package/src/adapters/awstextadapter.d.ts +1 -1
  177. package/src/adapters/awstextadapter.js +1 -1
  178. package/src/adapters/openaitextadapter.d.ts +1 -1
  179. package/src/adapters/openaitextadapter.js +1 -1
  180. package/src/aiassistant.d.ts +1 -1
  181. package/src/aiassistant.js +1 -1
  182. package/src/aiassistantediting.d.ts +1 -1
  183. package/src/aiassistantediting.js +1 -1
  184. package/src/aiassistantui.d.ts +1 -1
  185. package/src/aiassistantui.js +1 -1
  186. package/src/aiconfig.d.ts +1 -1
  187. package/src/augmentation.d.ts +1 -1
  188. package/src/index.d.ts +1 -1
  189. package/src/index.js +1 -1
  190. package/src/legacyerrors.d.ts +1 -1
  191. package/src/legacyerrors.js +1 -1
  192. package/src/ui/aiassistantcontroller.d.ts +1 -1
  193. package/src/ui/aiassistantcontroller.js +2 -2
  194. package/src/ui/form/aiformcontentarea.d.ts +1 -1
  195. package/src/ui/form/aiformcontentarea.js +1 -1
  196. package/src/ui/form/aiformerrorview.d.ts +1 -1
  197. package/src/ui/form/aiformerrorview.js +1 -1
  198. package/src/ui/form/aiformpromptview.d.ts +1 -1
  199. package/src/ui/form/aiformpromptview.js +1 -1
  200. package/src/ui/form/aiformtoolbarview.d.ts +1 -1
  201. package/src/ui/form/aiformtoolbarview.js +1 -1
  202. package/src/ui/form/aiformview.d.ts +1 -1
  203. package/src/ui/form/aiformview.js +1 -1
  204. package/src/ui/form/aihistorylistitemview.d.ts +1 -1
  205. package/src/ui/form/aihistorylistitemview.js +1 -1
  206. package/src/ui/form/aihistorylistview.d.ts +1 -1
  207. package/src/ui/form/aihistorylistview.js +1 -1
  208. package/src/ui/form/prompthistory.d.ts +1 -1
  209. package/src/ui/form/prompthistory.js +1 -1
  210. package/src/ui/showaiassistantcommand.d.ts +1 -1
  211. package/src/ui/showaiassistantcommand.js +1 -1
  212. package/src/utils/common-translations.d.ts +1 -1
  213. package/src/utils/common-translations.js +1 -1
  214. package/src/utils/normalizecommandsconfig.d.ts +1 -1
  215. package/src/utils/normalizecommandsconfig.js +1 -1
  216. package/theme/ai-dropdown.css +1 -1
  217. package/theme/ai-form.css +1 -1
  218. package/theme/ai.css +1 -1
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3028e2=_0x45cf;(function(_0x2a9302,_0x43f649){const _0x352457=_0x45cf,_0x3bf262=_0x2a9302();while(!![]){try{const _0x566417=parseInt(_0x352457(0xb5))/0x1*(parseInt(_0x352457(0xbf))/0x2)+parseInt(_0x352457(0x9c))/0x3+parseInt(_0x352457(0x8a))/0x4+-parseInt(_0x352457(0x71))/0x5*(parseInt(_0x352457(0xb0))/0x6)+-parseInt(_0x352457(0x7c))/0x7*(-parseInt(_0x352457(0x90))/0x8)+-parseInt(_0x352457(0x97))/0x9+parseInt(_0x352457(0x81))/0xa*(-parseInt(_0x352457(0x70))/0xb);if(_0x566417===_0x43f649)break;else _0x3bf262['push'](_0x3bf262['shift']());}catch(_0x108b57){_0x3bf262['push'](_0x3bf262['shift']());}}}(_0x33e2,0x6cb85));function _0x33e2(){const _0x3a3a0d=['name','handleError','childNodes','body','processor','reset','_handleQuery','element','currentContext','setContentOf','viewToDom','listenTo','186cnChSB','_stripMarkdownSyntax','set:currentContext','endsWith','_xmlSerializer','5zCocwW','_normalizeResponseHeadings','previousLabel','view','set','div','prompt','render','mainAction','currentResponse','35708wLEDgT','toView','querySelector','textAdapter','length','_parseAndNormalizeContent','rename','isProcessing','value','```','domConverter','innerHTML','remove','reverse','substring','finishProcessing','abort','11NtXVpl','85795elcIwM','tryAgainEvent','destroy','serializeToString','from','_isH1TagSupportEnabled','_sanitizeHTML','custom','catch','```html','makeRequest','572593VpXdsb','parseFromString','stopListening','exec','nodeType','4630250ADyrui','finally','editor','trim','then','stopProcessing','data','previousContext','toModel','3472440BBxHvl','_domParser','stringify','createElement','previousActionId','ELEMENT_NODE','56SArtNb','match','isRendered','once','message','initialContext','updateView','6153228LWgvTo','submitPrompt','document','_sanitizationContainer','text/html','1781970jKCGML','<h1></h1>','push','startProcessing','htmlProcessor','previousQuery','editing','startsWith'];_0x33e2=function(){return _0x3a3a0d;};return _0x33e2();}import{ObservableMixin as _0x253571}from'ckeditor5/src/utils.js';import{AIRequestError as _0x491f96}from'../adapters/aiadapter.js';import{Matcher as _0xf3ea2,UpcastWriter as _0x2e8c86}from'ckeditor5/src/engine.js';const Z=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');function _0x45cf(_0x3cbb5c,_0xb47e73){const _0x33e251=_0x33e2();return _0x45cf=function(_0x45cf77,_0x188661){_0x45cf77=_0x45cf77-0x6f;let _0x1ad30b=_0x33e251[_0x45cf77];return _0x1ad30b;},_0x45cf(_0x3cbb5c,_0xb47e73);}export default class C extends/* #__PURE__ -- @preserve */
24
- _0x253571(){constructor(_0x1fb510,_0xdde853,_0x3c479e){const _0x3f23d3=_0x45cf;super(),this[_0x3f23d3(0x83)]=_0x1fb510,this[_0x3f23d3(0xc2)]=_0xdde853,this[_0x3f23d3(0x9a)]=document[_0x3f23d3(0x8d)](_0x3f23d3(0xba)),this[_0x3f23d3(0x8b)]=new DOMParser(),this[_0x3f23d3(0xb4)]=new XMLSerializer(),this[_0x3f23d3(0xb8)]=_0x3c479e,this[_0x3f23d3(0xb9)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x3f23d3(0xb2),(_0x4eb7bd,_0x30ce57,_0x5a67f1)=>{const _0x3788ca=_0x3f23d3;this[_0x3788ca(0xb8)][_0x3788ca(0xc7)]=this[_0x3788ca(0x77)](_0x5a67f1);}),this[_0x3f23d3(0xaf)](this[_0x3f23d3(0xb8)],_0x3f23d3(0x98),(_0x2ccccc,_0x506adc)=>{const _0x545dc2=_0x3f23d3,_0x481778=this[_0x545dc2(0xac)]||this[_0x545dc2(0x95)];this[_0x545dc2(0xaa)](_0x506adc,_0x481778,_0x545dc2(0x78));}),this[_0x3f23d3(0xaf)](this[_0x3f23d3(0xb8)],_0x3f23d3(0x72),()=>{const _0x1908a4=_0x3f23d3;this[_0x1908a4(0xb8)][_0x1908a4(0xbb)]=this[_0x1908a4(0xb7)],this[_0x1908a4(0xaa)](this[_0x1908a4(0xa1)],this[_0x1908a4(0x88)],this[_0x1908a4(0x8e)],this[_0x1908a4(0xb7)]);}),this[_0x3f23d3(0xaf)](this[_0x3f23d3(0xb8)],_0x3f23d3(0x86),()=>{const _0x4b9c36=_0x3f23d3;this[_0x4b9c36(0x86)]();});}[_0x3028e2(0x73)](){const _0x11dc72=_0x3028e2;this[_0x11dc72(0x7e)]();}async[_0x3028e2(0x96)]({actionId:_0x5a5f0a,query:_0x1e942e,htmlContent:_0x26a57e,label:_0x1dab19,mainActionLabel:_0x1db10f}){const _0x2024cc=_0x3028e2;this[_0x2024cc(0xb8)][_0x2024cc(0xbb)]=_0x1dab19,this[_0x2024cc(0xb8)][_0x2024cc(0xbd)]=_0x1db10f,this[_0x2024cc(0x95)]=_0x26a57e,_0x1e942e&&(this[_0x2024cc(0xb8)][_0x2024cc(0x92)]?this[_0x2024cc(0xaa)](_0x1e942e,_0x26a57e,_0x5a5f0a,_0x1dab19):this[_0x2024cc(0xb8)][_0x2024cc(0x93)](_0x2024cc(0xbc),()=>{const _0x1a1870=_0x2024cc;this[_0x1a1870(0xaa)](_0x1e942e,_0x26a57e,_0x5a5f0a,_0x1dab19);}));}[_0x3028e2(0x86)](){const _0x3c5037=_0x3028e2;this[_0x3c5037(0xc6)]&&(this[_0x3c5037(0xc6)]=!0x1,this[_0x3c5037(0xb8)][_0x3c5037(0xce)](),this[_0x3c5037(0xc2)][_0x3c5037(0x6f)]());}[_0x3028e2(0xa9)](){const _0x10340d=_0x3028e2;this[_0x10340d(0x95)]='',this[_0x10340d(0xac)]='',this[_0x10340d(0xbe)]='',this[_0x10340d(0x88)]='',this[_0x10340d(0xa1)]='',this[_0x10340d(0xb7)]='',this[_0x10340d(0x8e)]=void 0x0,this[_0x10340d(0xb8)][_0x10340d(0xa9)](),this[_0x10340d(0x86)]();}async[_0x3028e2(0xaa)](_0x398c7e,_0x293107,_0x1c7d3e,_0x369494){const _0x1100a0=_0x3028e2;return this[_0x1100a0(0xc6)]=!0x0,this[_0x1100a0(0xb8)][_0x1100a0(0x9f)](),this[_0x1100a0(0x88)]=_0x293107,this[_0x1100a0(0xa1)]=_0x398c7e,this[_0x1100a0(0xb7)]=_0x369494||_0x398c7e,this[_0x1100a0(0x8e)]=_0x1c7d3e,new Promise(_0x108efd=>{const _0x3ca688=_0x1100a0;this[_0x3ca688(0xc2)][_0x3ca688(0x7b)]({'query':_0x398c7e,'context':_0x293107,'onData':_0x55a39f=>{const _0x41edf8=_0x3ca688;this[_0x41edf8(0xbe)]=_0x55a39f,this[_0x41edf8(0xac)]=this[_0x41edf8(0xc4)](this[_0x41edf8(0xbe)]);},'actionId':_0x1c7d3e})[_0x3ca688(0x85)](()=>{const _0x11ebd7=_0x3ca688;!this[_0x11ebd7(0xac)]&&this[_0x11ebd7(0xbe)]&&(this[_0x11ebd7(0xac)]=this[_0x11ebd7(0xc4)](this[_0x11ebd7(0xbe)],!0x0));})[_0x3ca688(0x79)](_0x217277=>{const _0x5edb23=_0x3ca688;_0x217277 instanceof _0x491f96?this[_0x5edb23(0xb8)][_0x5edb23(0xa5)](_0x217277[_0x5edb23(0x94)]):this[_0x5edb23(0xb8)][_0x5edb23(0xa5)](),_0x108efd();})[_0x3ca688(0x82)](()=>{const _0x1ef2ea=_0x3ca688;this[_0x1ef2ea(0x86)](),_0x108efd();});});}[_0x3028e2(0xc4)](_0x20385d,_0x29c09f=!0x1){const _0x3fd565=_0x3028e2,_0x352cc8=Z[_0x3fd565(0x7f)](_0x20385d);_0x20385d=_0x352cc8?_0x20385d[_0x3fd565(0xcd)](_0x352cc8[0x1][_0x3fd565(0xc3)]):_0x20385d[_0x3fd565(0xc3)]<0x64&&!_0x29c09f?'':this[_0x3fd565(0xb1)](_0x20385d);const _0x173600=this[_0x3fd565(0x8b)][_0x3fd565(0x7d)](_0x20385d,_0x3fd565(0x9b));if(_0x352cc8){const _0x182105=Array[_0x3fd565(0x75)](_0x173600[_0x3fd565(0xa7)][_0x3fd565(0xa6)]);_0x182105[_0x3fd565(0xcc)]();for(const _0x33a4bd of _0x182105){if(_0x33a4bd[_0x3fd565(0x80)]==Node[_0x3fd565(0x8f)])break;_0x33a4bd[_0x3fd565(0xcb)]();}}const _0x4decca=this[_0x3fd565(0x83)][_0x3fd565(0x87)][_0x3fd565(0xa8)][_0x3fd565(0xc0)](this[_0x3fd565(0xb4)][_0x3fd565(0x74)](_0x173600[_0x3fd565(0xa7)]));return this[_0x3fd565(0x76)]()||this[_0x3fd565(0xb6)](_0x4decca),this[_0x3fd565(0x83)][_0x3fd565(0x87)][_0x3fd565(0x8c)](this[_0x3fd565(0x83)][_0x3fd565(0x87)][_0x3fd565(0x89)](_0x4decca));}[_0x3028e2(0xb6)](_0x42f384){const _0x387304=_0x3028e2,_0x3d692f=new _0x2e8c86(this[_0x387304(0x83)][_0x387304(0xa2)][_0x387304(0xb8)][_0x387304(0x99)]),_0x3f53a0=new _0xf3ea2({'name':/^h[1-5]$/}),_0x2ea287=[];let _0x1982cf=!0x1;for(const _0x35baa7 of _0x42f384)_0x35baa7['is'](_0x387304(0xab))&&_0x3f53a0[_0x387304(0x91)](_0x35baa7)&&(_0x2ea287[_0x387304(0x9e)](_0x35baa7),'h1'==_0x35baa7[_0x387304(0xa4)]&&(_0x1982cf=!0x0));if(_0x1982cf){for(const _0x414563 of _0x2ea287)_0x3d692f[_0x387304(0xc5)]('h'+(parseInt(_0x414563[_0x387304(0xa4)][0x1])+0x1),_0x414563);}}[_0x3028e2(0x76)](){const _0x317823=_0x3028e2,{data:_0x3c549a,editing:_0x17fa94}=this[_0x317823(0x83)],_0x3f1f0c=_0x3c549a[_0x317823(0xa0)][_0x317823(0xc0)](_0x317823(0x9d)),_0x2a50b1=_0x3c549a[_0x317823(0xc0)](_0x3c549a[_0x317823(0x89)](_0x3f1f0c));return!!_0x17fa94[_0x317823(0xb8)][_0x317823(0xc9)][_0x317823(0xae)](_0x2a50b1)[_0x317823(0xc1)]('h1');}[_0x3028e2(0x77)](_0x57b099){const _0x875caa=_0x3028e2;return this[_0x875caa(0x83)][_0x875caa(0xa2)][_0x875caa(0xb8)][_0x875caa(0xc9)][_0x875caa(0xad)](this[_0x875caa(0x9a)],_0x57b099),this[_0x875caa(0x9a)][_0x875caa(0xca)];}[_0x3028e2(0xb1)](_0x1dea70){const _0x1849a7=_0x3028e2,_0x4ff76b=_0x1dea70[_0x1849a7(0x84)]();return _0x4ff76b[_0x1849a7(0xa3)](_0x1849a7(0x7a))?_0x4ff76b[_0x1849a7(0xb3)](_0x1849a7(0xc8))?_0x4ff76b[_0x1849a7(0xcd)](0x7,_0x4ff76b[_0x1849a7(0xc3)]-0x3):_0x4ff76b[_0x1849a7(0xcd)](0x7):_0x1dea70;}}
23
+ const _0x1808aa=_0x4bc4;(function(_0x1b08fa,_0x28c0d8){const _0x49dac0=_0x4bc4,_0x127f80=_0x1b08fa();while(!![]){try{const _0x2afb5a=parseInt(_0x49dac0(0x1df))/0x1+parseInt(_0x49dac0(0x1b9))/0x2*(parseInt(_0x49dac0(0x1d1))/0x3)+-parseInt(_0x49dac0(0x1ef))/0x4+-parseInt(_0x49dac0(0x1e7))/0x5*(-parseInt(_0x49dac0(0x1b5))/0x6)+-parseInt(_0x49dac0(0x1c4))/0x7*(parseInt(_0x49dac0(0x1e8))/0x8)+parseInt(_0x49dac0(0x1e6))/0x9+parseInt(_0x49dac0(0x1d6))/0xa*(parseInt(_0x49dac0(0x1c9))/0xb);if(_0x2afb5a===_0x28c0d8)break;else _0x127f80['push'](_0x127f80['shift']());}catch(_0x4e2792){_0x127f80['push'](_0x127f80['shift']());}}}(_0x5b5e,0x5f1d5));function _0x5b5e(){const _0x266768=['setContentOf','stringify','element','handleError','previousLabel','listenTo','endsWith','viewToDom','21qcEBFv','_sanitizationContainer','_stripMarkdownSyntax','editor','initialContext','11hPdPEP','_domParser','reverse','trim','then','mainAction','custom','view','105783BAOIni','processor','ELEMENT_NODE','domConverter','childNodes','213530VDHUZG','message','remove','toModel','submitPrompt','value','substring','abort','push','369840kwVzJl','_isH1TagSupportEnabled','serializeToString','previousActionId','div','destroy','startProcessing','6248439znYGPk','15oayVes','1315400TzHnld','makeRequest','```','```html','<h1></h1>','rename','innerHTML','2484720pBDFEQ','stopListening','currentResponse','previousQuery','set:currentContext','render','toView','startsWith','nodeType','_normalizeResponseHeadings','previousContext','length','document','tryAgainEvent','editing','htmlProcessor','finishProcessing','data','_sanitizeHTML','match','createElement','stopProcessing','parseFromString','prompt','name','textAdapter','finally','text/html','updateView','catch','_parseAndNormalizeContent','isRendered','from','_xmlSerializer','querySelector','currentContext','body','once','766638zpdqJd','reset','isProcessing','exec','2Adthxs','_handleQuery','set'];_0x5b5e=function(){return _0x266768;};return _0x5b5e();}function _0x4bc4(_0x5936b3,_0x4462ac){const _0x5b5e37=_0x5b5e();return _0x4bc4=function(_0x4bc4d9,_0x50c99e){_0x4bc4d9=_0x4bc4d9-0x1b3;let _0x228b82=_0x5b5e37[_0x4bc4d9];return _0x228b82;},_0x4bc4(_0x5936b3,_0x4462ac);}import{ObservableMixin as _0x1b795c}from'ckeditor5/src/utils.js';import{AIRequestError as _0x3ddeb7}from'../adapters/aiadapter.js';import{Matcher as _0x5a6abd,UpcastWriter as _0x321944}from'ckeditor5/src/engine.js';const Z=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class C extends/* #__PURE__ -- @preserve */
24
+ _0x1b795c(){constructor(_0x6f6708,_0x21cb9f,_0x2dca67){const _0x41acbf=_0x4bc4;super(),this[_0x41acbf(0x1c7)]=_0x6f6708,this[_0x41acbf(0x208)]=_0x21cb9f,this[_0x41acbf(0x1c5)]=document[_0x41acbf(0x203)](_0x41acbf(0x1e3)),this[_0x41acbf(0x1ca)]=new DOMParser(),this[_0x41acbf(0x210)]=new XMLSerializer(),this[_0x41acbf(0x1d0)]=_0x2dca67,this[_0x41acbf(0x1bb)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x41acbf(0x1f3),(_0x3cff5d,_0x4d86fd,_0x26640c)=>{const _0x1fb685=_0x41acbf;this[_0x1fb685(0x1d0)][_0x1fb685(0x1db)]=this[_0x1fb685(0x201)](_0x26640c);}),this[_0x41acbf(0x1c1)](this[_0x41acbf(0x1d0)],_0x41acbf(0x1da),(_0x221dc3,_0x417a9f)=>{const _0x134f11=_0x41acbf,_0x801b00=this[_0x134f11(0x212)]||this[_0x134f11(0x1c8)];this[_0x134f11(0x1ba)](_0x417a9f,_0x801b00,_0x134f11(0x1cf));}),this[_0x41acbf(0x1c1)](this[_0x41acbf(0x1d0)],_0x41acbf(0x1fc),()=>{const _0x3979a1=_0x41acbf;this[_0x3979a1(0x1d0)][_0x3979a1(0x206)]=this[_0x3979a1(0x1c0)],this[_0x3979a1(0x1ba)](this[_0x3979a1(0x1f2)],this[_0x3979a1(0x1f9)],this[_0x3979a1(0x1e2)],this[_0x3979a1(0x1c0)]);}),this[_0x41acbf(0x1c1)](this[_0x41acbf(0x1d0)],_0x41acbf(0x204),()=>{const _0x2927d0=_0x41acbf;this[_0x2927d0(0x204)]();});}[_0x1808aa(0x1e4)](){const _0x2cee2b=_0x1808aa;this[_0x2cee2b(0x1f0)]();}async[_0x1808aa(0x20b)]({actionId:_0xbc2c1c,query:_0x6bf29a,htmlContent:_0x402386,label:_0x26fb89,mainActionLabel:_0x249e35}){const _0x3cef2f=_0x1808aa;this[_0x3cef2f(0x1d0)][_0x3cef2f(0x206)]=_0x26fb89,this[_0x3cef2f(0x1d0)][_0x3cef2f(0x1ce)]=_0x249e35,this[_0x3cef2f(0x1c8)]=_0x402386,_0x6bf29a&&(this[_0x3cef2f(0x1d0)][_0x3cef2f(0x20e)]?this[_0x3cef2f(0x1ba)](_0x6bf29a,_0x402386,_0xbc2c1c,_0x26fb89):this[_0x3cef2f(0x1d0)][_0x3cef2f(0x1b4)](_0x3cef2f(0x1f4),()=>{const _0x3220fa=_0x3cef2f;this[_0x3220fa(0x1ba)](_0x6bf29a,_0x402386,_0xbc2c1c,_0x26fb89);}));}[_0x1808aa(0x204)](){const _0x25335b=_0x1808aa;this[_0x25335b(0x1b7)]&&(this[_0x25335b(0x1b7)]=!0x1,this[_0x25335b(0x1d0)][_0x25335b(0x1ff)](),this[_0x25335b(0x208)][_0x25335b(0x1dd)]());}[_0x1808aa(0x1b6)](){const _0x2fbb4b=_0x1808aa;this[_0x2fbb4b(0x1c8)]='',this[_0x2fbb4b(0x212)]='',this[_0x2fbb4b(0x1f1)]='',this[_0x2fbb4b(0x1f9)]='',this[_0x2fbb4b(0x1f2)]='',this[_0x2fbb4b(0x1c0)]='',this[_0x2fbb4b(0x1e2)]=void 0x0,this[_0x2fbb4b(0x1d0)][_0x2fbb4b(0x1b6)](),this[_0x2fbb4b(0x204)]();}async[_0x1808aa(0x1ba)](_0x56f120,_0x2fc277,_0x5ba13b,_0x461450){const _0xbb93d4=_0x1808aa;return this[_0xbb93d4(0x1b7)]=!0x0,this[_0xbb93d4(0x1d0)][_0xbb93d4(0x1e5)](),this[_0xbb93d4(0x1f9)]=_0x2fc277,this[_0xbb93d4(0x1f2)]=_0x56f120,this[_0xbb93d4(0x1c0)]=_0x461450||_0x56f120,this[_0xbb93d4(0x1e2)]=_0x5ba13b,new Promise(_0x48b1a3=>{const _0x558d77=_0xbb93d4;this[_0x558d77(0x208)][_0x558d77(0x1e9)]({'query':_0x56f120,'context':_0x2fc277,'onData':_0x38ca9f=>{const _0x18c7e7=_0x558d77;this[_0x18c7e7(0x1f1)]=_0x38ca9f,this[_0x18c7e7(0x212)]=this[_0x18c7e7(0x20d)](this[_0x18c7e7(0x1f1)]);},'actionId':_0x5ba13b})[_0x558d77(0x1cd)](()=>{const _0x4d0299=_0x558d77;!this[_0x4d0299(0x212)]&&this[_0x4d0299(0x1f1)]&&(this[_0x4d0299(0x212)]=this[_0x4d0299(0x20d)](this[_0x4d0299(0x1f1)],!0x0));})[_0x558d77(0x20c)](_0x4e8194=>{const _0x434265=_0x558d77;_0x4e8194 instanceof _0x3ddeb7?this[_0x434265(0x1d0)][_0x434265(0x1bf)](_0x4e8194[_0x434265(0x1d7)]):this[_0x434265(0x1d0)][_0x434265(0x1bf)](),_0x48b1a3();})[_0x558d77(0x209)](()=>{const _0x43b2c3=_0x558d77;this[_0x43b2c3(0x204)](),_0x48b1a3();});});}[_0x1808aa(0x20d)](_0x38c1dd,_0x55e946=!0x1){const _0x37c710=_0x1808aa,_0x37ef6c=Z[_0x37c710(0x1b8)](_0x38c1dd);_0x38c1dd=_0x37ef6c?_0x38c1dd[_0x37c710(0x1dc)](_0x37ef6c[0x1][_0x37c710(0x1fa)]):_0x38c1dd[_0x37c710(0x1fa)]<0x64&&!_0x55e946?'':this[_0x37c710(0x1c6)](_0x38c1dd);const _0x6c205c=this[_0x37c710(0x1ca)][_0x37c710(0x205)](_0x38c1dd,_0x37c710(0x20a));if(_0x37ef6c){const _0x29d8ae=Array[_0x37c710(0x20f)](_0x6c205c[_0x37c710(0x1b3)][_0x37c710(0x1d5)]);_0x29d8ae[_0x37c710(0x1cb)]();for(const _0xd26ae9 of _0x29d8ae){if(_0xd26ae9[_0x37c710(0x1f7)]==Node[_0x37c710(0x1d3)])break;_0xd26ae9[_0x37c710(0x1d8)]();}}const _0x25946b=this[_0x37c710(0x1c7)][_0x37c710(0x200)][_0x37c710(0x1d2)][_0x37c710(0x1f5)](this[_0x37c710(0x210)][_0x37c710(0x1e1)](_0x6c205c[_0x37c710(0x1b3)]));return this[_0x37c710(0x1e0)]()||this[_0x37c710(0x1f8)](_0x25946b),this[_0x37c710(0x1c7)][_0x37c710(0x200)][_0x37c710(0x1bd)](this[_0x37c710(0x1c7)][_0x37c710(0x200)][_0x37c710(0x1d9)](_0x25946b));}[_0x1808aa(0x1f8)](_0x5c500a){const _0xac0b4b=_0x1808aa,_0x2b762c=new _0x321944(this[_0xac0b4b(0x1c7)][_0xac0b4b(0x1fd)][_0xac0b4b(0x1d0)][_0xac0b4b(0x1fb)]),_0x3208c4=new _0x5a6abd({'name':/^h[1-5]$/}),_0x1d3a94=[];let _0x341ea4=!0x1;for(const _0x1b39ba of _0x5c500a)_0x1b39ba['is'](_0xac0b4b(0x1be))&&_0x3208c4[_0xac0b4b(0x202)](_0x1b39ba)&&(_0x1d3a94[_0xac0b4b(0x1de)](_0x1b39ba),'h1'==_0x1b39ba[_0xac0b4b(0x207)]&&(_0x341ea4=!0x0));if(_0x341ea4){for(const _0x1a45e8 of _0x1d3a94)_0x2b762c[_0xac0b4b(0x1ed)]('h'+(parseInt(_0x1a45e8[_0xac0b4b(0x207)][0x1])+0x1),_0x1a45e8);}}[_0x1808aa(0x1e0)](){const _0x59ee21=_0x1808aa,{data:_0x24cfe2,editing:_0x52149b}=this[_0x59ee21(0x1c7)],_0x2e23c0=_0x24cfe2[_0x59ee21(0x1fe)][_0x59ee21(0x1f5)](_0x59ee21(0x1ec)),_0x3160fc=_0x24cfe2[_0x59ee21(0x1f5)](_0x24cfe2[_0x59ee21(0x1d9)](_0x2e23c0));return!!_0x52149b[_0x59ee21(0x1d0)][_0x59ee21(0x1d4)][_0x59ee21(0x1c3)](_0x3160fc)[_0x59ee21(0x211)]('h1');}[_0x1808aa(0x201)](_0x2ef940){const _0x26b962=_0x1808aa;return this[_0x26b962(0x1c7)][_0x26b962(0x1fd)][_0x26b962(0x1d0)][_0x26b962(0x1d4)][_0x26b962(0x1bc)](this[_0x26b962(0x1c5)],_0x2ef940),this[_0x26b962(0x1c5)][_0x26b962(0x1ee)];}[_0x1808aa(0x1c6)](_0x30acff){const _0x51f084=_0x1808aa,_0x11432c=_0x30acff[_0x51f084(0x1cc)]();return _0x11432c[_0x51f084(0x1f6)](_0x51f084(0x1eb))?_0x11432c[_0x51f084(0x1c2)](_0x51f084(0x1ea))?_0x11432c[_0x51f084(0x1dc)](0x7,_0x11432c[_0x51f084(0x1fa)]-0x3):_0x11432c[_0x51f084(0x1dc)](0x7):_0x30acff;}}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/ui/aiformcontentarea
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1494a1=_0x55ac;(function(_0x207768,_0x4a37a1){const _0x471d6c=_0x55ac,_0x19ddb5=_0x207768();while(!![]){try{const _0x14dcfe=parseInt(_0x471d6c(0x16a))/0x1*(-parseInt(_0x471d6c(0x14c))/0x2)+-parseInt(_0x471d6c(0x12e))/0x3+-parseInt(_0x471d6c(0x162))/0x4+-parseInt(_0x471d6c(0x17c))/0x5+-parseInt(_0x471d6c(0x131))/0x6+parseInt(_0x471d6c(0x14b))/0x7+parseInt(_0x471d6c(0x16d))/0x8;if(_0x14dcfe===_0x4a37a1)break;else _0x19ddb5['push'](_0x19ddb5['shift']());}catch(_0x40ffe6){_0x19ddb5['push'](_0x19ddb5['shift']());}}}(_0x1452,0xdb596));import{global as _0x15bebc}from'ckeditor5/src/utils.js';function _0x55ac(_0x345abc,_0x4acf6a){const _0x1452b8=_0x1452();return _0x55ac=function(_0x55ac1c,_0x581441){_0x55ac1c=_0x55ac1c-0x129;let _0x3937ae=_0x1452b8[_0x55ac1c];return _0x3937ae;},_0x55ac(_0x345abc,_0x4acf6a);}import{View as _0x2b3bcf,ButtonView as _0xe63b4a,SpinnerView as _0x193518}from'ckeditor5/src/ui.js';import _0x29c088 from'../../../theme/icons/copy.svg';import{getTranslation as _0x477bc7}from'../../utils/common-translations.js';import{icons as _0x3dce51}from'ckeditor5/src/core.js';export default class W extends _0x2b3bcf{constructor(_0x3e9a85,_0x248a52=''){const _0x195155=_0x55ac;super(_0x3e9a85),this[_0x195155(0x17b)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0xea17ba=this[_0x195155(0x155)];this[_0x195155(0x13a)]=new ContentFieldView(_0x3e9a85,_0x248a52),this[_0x195155(0x169)]=this[_0x195155(0x16e)](),this[_0x195155(0x145)]({'tag':_0x195155(0x164),'attributes':{'class':['ck',_0x195155(0x15f),_0xea17ba['if'](_0x195155(0x14f),_0x195155(0x149),_0x1ce37c=>!_0x1ce37c)],'tabindex':'-1'},'children':[{'tag':_0x195155(0x164),'attributes':{'class':['ck',_0x195155(0x165),_0xea17ba['if'](_0x195155(0x138),_0x195155(0x173))]},'children':[this[_0x195155(0x13a)],{'tag':_0x195155(0x164),'attributes':{'class':['ck',_0x195155(0x15e)]},'children':[this[_0x195155(0x169)]]}]}]});}[_0x1494a1(0x160)](){const _0x4e25ff=_0x1494a1;super[_0x4e25ff(0x160)](),this[_0x4e25ff(0x129)]&&this[_0x4e25ff(0x13a)][_0x4e25ff(0x12d)](this[_0x4e25ff(0x129)]);let _0x4f7da6=!0x1;this['on'](_0x4e25ff(0x171),(_0x8264b7,_0x33a2bd,_0x410878)=>{const _0x2f5c59=_0x4e25ff,_0x2dc4e6=!this[_0x2f5c59(0x13a)][_0x2f5c59(0x140)][_0x2f5c59(0x12a)](_0x2f5c59(0x135));this[_0x2f5c59(0x13a)][_0x2f5c59(0x12d)](_0x410878),this[_0x2f5c59(0x138)]&&_0x2dc4e6&&!_0x4f7da6&&this[_0x2f5c59(0x140)][_0x2f5c59(0x146)]({'top':this[_0x2f5c59(0x140)][_0x2f5c59(0x139)],'behavior':_0x2f5c59(0x166)});}),this['on'](_0x4e25ff(0x13f),(_0x12887b,_0x58f3bd,_0x10a49e)=>{const _0x501323=_0x4e25ff;_0x4f7da6=!0x1,_0x10a49e?(this[_0x501323(0x129)]=null,this[_0x501323(0x13a)][_0x501323(0x14d)]()):this[_0x501323(0x129)]||this[_0x501323(0x13a)][_0x501323(0x12d)]('');}),this[_0x4e25ff(0x159)](this[_0x4e25ff(0x140)],_0x4e25ff(0x137),()=>{_0x4f7da6=!0x0;}),this[_0x4e25ff(0x159)](this[_0x4e25ff(0x140)],_0x4e25ff(0x175),()=>{_0x4f7da6=!0x0;});}[_0x1494a1(0x177)](){const _0xac9a44=_0x1494a1;this[_0xac9a44(0x140)][_0xac9a44(0x177)]();}[_0x1494a1(0x16e)](){const _0x1c9b13=_0x1494a1,_0x115292=this[_0x1c9b13(0x179)],_0xf3b5ef=new _0xe63b4a(this[_0x1c9b13(0x179)]),_0x6b3da6=_0x1c9b13(0x143);return _0xf3b5ef[_0x1c9b13(0x17b)]({'label':_0x477bc7(_0x115292,_0x1c9b13(0x172)),'icon':_0x29c088,'class':_0x6b3da6,'tooltip':!0x0}),_0xf3b5ef[_0x1c9b13(0x141)](_0x1c9b13(0x14f))['to'](this,_0x1c9b13(0x129),_0x59cc87=>!!_0x59cc87),_0xf3b5ef[_0x1c9b13(0x141)](_0x1c9b13(0x163))['to'](this,_0x1c9b13(0x138),_0x3cc60a=>!_0x3cc60a),_0xf3b5ef['on'](_0x1c9b13(0x134),()=>{const _0x1cd106=_0x1c9b13;this[_0x1cd106(0x144)](this[_0x1cd106(0x13a)][_0x1cd106(0x140)]),_0xf3b5ef[_0x1cd106(0x13d)]=_0x3dce51[_0x1cd106(0x12f)],_0xf3b5ef[_0x1cd106(0x178)]=_0x6b3da6+_0x1cd106(0x15d),this[_0x1cd106(0x177)](),setTimeout(()=>{const _0x3adc00=_0x1cd106;_0xf3b5ef[_0x3adc00(0x13d)]=_0x29c088,_0xf3b5ef[_0x3adc00(0x178)]=_0x6b3da6;},0x3e8);}),_0xf3b5ef;}[_0x1494a1(0x144)](_0x4a10e1){const _0xb3dad4=_0x1494a1,{window:_0x2f9024,document:_0x205839}=_0x15bebc;if(_0x2f9024[_0xb3dad4(0x15b)]){const {Blob:_0x3cc691,ClipboardItem:_0x29fae6}=_0x2f9024,_0x3bae70=[new _0x29fae6({'text/html':new _0x3cc691([_0x4a10e1[_0xb3dad4(0x132)]],{'type':_0xb3dad4(0x17a)}),'text/plain':new _0x3cc691([_0x4a10e1[_0xb3dad4(0x167)]||''],{'type':_0xb3dad4(0x16c)})})];navigator[_0xb3dad4(0x168)][_0xb3dad4(0x153)](_0x3bae70);}else{const _0x42b803=_0x205839[_0xb3dad4(0x12c)](_0xb3dad4(0x164));_0x42b803[_0xb3dad4(0x142)][_0xb3dad4(0x133)]=_0xb3dad4(0x12b),_0x42b803[_0xb3dad4(0x142)][_0xb3dad4(0x130)]=_0xb3dad4(0x148),_0x42b803[_0xb3dad4(0x132)]=_0xb3dad4(0x157)+_0x4a10e1[_0xb3dad4(0x132)]+_0xb3dad4(0x156),_0x205839[_0xb3dad4(0x15a)][_0xb3dad4(0x15c)](_0x42b803);const _0x4f3669=_0x205839[_0xb3dad4(0x174)]();_0x4f3669[_0xb3dad4(0x16f)](_0x42b803[_0xb3dad4(0x13e)]),_0x4f3669[_0xb3dad4(0x136)](_0x42b803[_0xb3dad4(0x13c)]);const _0x20b5bd=_0x2f9024[_0xb3dad4(0x151)]();_0x20b5bd[_0xb3dad4(0x170)](),_0x20b5bd[_0xb3dad4(0x147)](_0x4f3669),_0x205839[_0xb3dad4(0x150)](_0xb3dad4(0x152)),_0x42b803[_0xb3dad4(0x161)]();}}}export class ContentFieldView extends _0x2b3bcf{constructor(_0x163a7b,_0xec00d=''){const _0x2b0b8d=_0x1494a1;super(_0x163a7b),this[_0x2b0b8d(0x14e)]=this[_0x2b0b8d(0x14a)](),this[_0x2b0b8d(0x145)]({'tag':_0x2b0b8d(0x164),'attributes':{'class':['ck',_0x2b0b8d(0x16b),_0xec00d,_0x2b0b8d(0x13b),_0x2b0b8d(0x158)]}});}[_0x1494a1(0x12d)](_0x1410b9){const _0x55e329=_0x1494a1;this[_0x55e329(0x140)][_0x55e329(0x132)]=_0x1410b9;}[_0x1494a1(0x14d)](){const _0x49c551=_0x1494a1;this[_0x49c551(0x140)][_0x49c551(0x15c)](this[_0x49c551(0x14e)][_0x49c551(0x140)]);}[_0x1494a1(0x14a)](){const _0x5cdd6d=_0x1494a1,_0x5ac1d5=new _0x2b3bcf(),_0xfcc15d=this[_0x5cdd6d(0x179)],_0x543e2b=new _0x193518();return _0x543e2b[_0x5cdd6d(0x14f)]=!0x0,_0x5ac1d5[_0x5cdd6d(0x145)]({'tag':_0x5cdd6d(0x164),'attributes':{'class':['ck',_0x5cdd6d(0x154)]},'children':[_0x543e2b,{'text':_0x477bc7(_0xfcc15d,_0x5cdd6d(0x176))}]}),_0x5ac1d5[_0x5cdd6d(0x160)](),_0x5ac1d5;}}function _0x1452(){const _0x7f52a=['6703557PKAjoe','919822xKPXQb','appendLoader','loaderView','isVisible','execCommand','getSelection','copy','write','ck-ai-form__loader','bindTemplate','<span>]</span>','<span>[</span>','ck-ai-form__content-field','listenTo','body','ClipboardItem','appendChild','\x20ck-ai-form__copy-button--copied','ck-ai-form__copy-button-wrapper','ck-ai-form__content-area-wrapper','render','remove','1660540uqkXBm','isEnabled','div','ck-ai-form__content-area','smooth','textContent','clipboard','copyButtonView','1gMaibx','ck-content','text/plain','23936280tkQutr','_createCopyButton','setStartAfter','removeAllRanges','change:value','Copy','ck-ai-form__content-area--processing','createRange','mousedown','AI\x20is\x20writing...','focus','class','locale','text/html','set','4489935NZweFv','value','querySelector','absolute','createElement','setContent','773793HswvBy','check','left','6121608NAMiNl','innerHTML','position','execute','.ck-ai-form__loader','setEndBefore','wheel','isProcessing','scrollHeight','contentFieldView','ck-reset_all-excluded','lastElementChild','icon','firstElementChild','change:isProcessing','element','bind','style','ck-ai-form__copy-button','_copyHTMLToClipboard','setTemplate','scrollTo','addRange','-9999px','ck-hidden','_createLoader'];_0x1452=function(){return _0x7f52a;};return _0x1452();}
23
+ const _0x323e59=_0x4b77;function _0x4b77(_0x3d23dd,_0x4dddef){const _0x5e0802=_0x5e08();return _0x4b77=function(_0x4b779b,_0x27b991){_0x4b779b=_0x4b779b-0x6c;let _0x4ce942=_0x5e0802[_0x4b779b];return _0x4ce942;},_0x4b77(_0x3d23dd,_0x4dddef);}function _0x5e08(){const _0x5ef036=['isEnabled','locale','wheel','<span>[</span>','class','removeAllRanges','innerHTML','execute','ClipboardItem','ck-ai-form__content-area','746901RwUfiU','ck-hidden','copyButtonView','setEndBefore','getSelection','bindTemplate','651546tdFFXh','\x20ck-ai-form__copy-button--copied','-9999px','<span>]</span>','absolute','_createCopyButton','position','write','164778OPfmzj','setStartAfter','632xjkaEz','left','text/plain','change:isProcessing','check','ck-ai-form__copy-button','ck-ai-form__loader','ck-reset_all-excluded','appendLoader','Copy','ck-content','set','4dwMmBv','contentFieldView','mousedown','render','copy','7050645JTSvwV','createElement','textContent','firstElementChild','bind','smooth','loaderView','icon','isVisible','createRange','lastElementChild','ck-ai-form__content-field','AI\x20is\x20writing...','element','value','.ck-ai-form__loader','ck-ai-form__content-area--processing','appendChild','querySelector','div','listenTo','isProcessing','execCommand','focus','style','_copyHTMLToClipboard','_createLoader','clipboard','setContent','text/html','1461865JmAQDu','1246aCyJBC','remove','ck-ai-form__content-area-wrapper','body','setTemplate','addRange','change:value','1753566gbdbIo','ck-ai-form__copy-button-wrapper','scrollHeight','scrollTo'];_0x5e08=function(){return _0x5ef036;};return _0x5e08();}(function(_0x21457d,_0x1d28f6){const _0x164a39=_0x4b77,_0x1f4d08=_0x21457d();while(!![]){try{const _0x16314f=-parseInt(_0x164a39(0xa9))/0x1+parseInt(_0x164a39(0xa1))/0x2+parseInt(_0x164a39(0x9b))/0x3*(parseInt(_0x164a39(0xb7))/0x4)+parseInt(_0x164a39(0x85))/0x5+parseInt(_0x164a39(0x8d))/0x6+-parseInt(_0x164a39(0x86))/0x7*(-parseInt(_0x164a39(0xab))/0x8)+-parseInt(_0x164a39(0xbc))/0x9;if(_0x16314f===_0x1d28f6)break;else _0x1f4d08['push'](_0x1f4d08['shift']());}catch(_0x384fff){_0x1f4d08['push'](_0x1f4d08['shift']());}}}(_0x5e08,0x36fe5));import{global as _0x49535d}from'ckeditor5/src/utils.js';import{View as _0x22254a,ButtonView as _0x1a7cf2,SpinnerView as _0x40dd1d}from'ckeditor5/src/ui.js';import _0x2c0533 from'../../../theme/icons/copy.svg';import{getTranslation as _0x11795f}from'../../utils/common-translations.js';import{icons as _0xb826c5}from'ckeditor5/src/core.js';export default class W extends _0x22254a{constructor(_0x37fb25,_0x2edff3=''){const _0x5a4022=_0x4b77;super(_0x37fb25),this[_0x5a4022(0xb6)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x220c3b=this[_0x5a4022(0xa0)];this[_0x5a4022(0xb8)]=new ContentFieldView(_0x37fb25,_0x2edff3),this[_0x5a4022(0x9d)]=this[_0x5a4022(0xa6)](),this[_0x5a4022(0x8a)]({'tag':_0x5a4022(0x7a),'attributes':{'class':['ck',_0x5a4022(0x88),_0x220c3b['if'](_0x5a4022(0x6f),_0x5a4022(0x9c),_0xbc92b5=>!_0xbc92b5)],'tabindex':'-1'},'children':[{'tag':_0x5a4022(0x7a),'attributes':{'class':['ck',_0x5a4022(0x9a),_0x220c3b['if'](_0x5a4022(0x7c),_0x5a4022(0x77))]},'children':[this[_0x5a4022(0xb8)],{'tag':_0x5a4022(0x7a),'attributes':{'class':['ck',_0x5a4022(0x8e)]},'children':[this[_0x5a4022(0x9d)]]}]}]});}[_0x323e59(0xba)](){const _0x3d12be=_0x323e59;super[_0x3d12be(0xba)](),this[_0x3d12be(0x75)]&&this[_0x3d12be(0xb8)][_0x3d12be(0x83)](this[_0x3d12be(0x75)]);let _0x1e5b1c=!0x1;this['on'](_0x3d12be(0x8c),(_0x5ac3ed,_0x457361,_0x3189a3)=>{const _0x5a4815=_0x3d12be,_0xf41c2b=!this[_0x5a4815(0xb8)][_0x5a4815(0x74)][_0x5a4815(0x79)](_0x5a4815(0x76));this[_0x5a4815(0xb8)][_0x5a4815(0x83)](_0x3189a3),this[_0x5a4815(0x7c)]&&_0xf41c2b&&!_0x1e5b1c&&this[_0x5a4815(0x74)][_0x5a4815(0x90)]({'top':this[_0x5a4815(0x74)][_0x5a4815(0x8f)],'behavior':_0x5a4815(0x6c)});}),this['on'](_0x3d12be(0xae),(_0x49002f,_0x76c302,_0x1ae226)=>{const _0x3df3c9=_0x3d12be;_0x1e5b1c=!0x1,_0x1ae226?(this[_0x3df3c9(0x75)]=null,this[_0x3df3c9(0xb8)][_0x3df3c9(0xb3)]()):this[_0x3df3c9(0x75)]||this[_0x3df3c9(0xb8)][_0x3df3c9(0x83)]('');}),this[_0x3d12be(0x7b)](this[_0x3d12be(0x74)],_0x3d12be(0x93),()=>{_0x1e5b1c=!0x0;}),this[_0x3d12be(0x7b)](this[_0x3d12be(0x74)],_0x3d12be(0xb9),()=>{_0x1e5b1c=!0x0;});}[_0x323e59(0x7e)](){const _0x5a8bb0=_0x323e59;this[_0x5a8bb0(0x74)][_0x5a8bb0(0x7e)]();}[_0x323e59(0xa6)](){const _0x4edd65=_0x323e59,_0x417579=this[_0x4edd65(0x92)],_0xfeda3e=new _0x1a7cf2(this[_0x4edd65(0x92)]),_0x33fdeb=_0x4edd65(0xb0);return _0xfeda3e[_0x4edd65(0xb6)]({'label':_0x11795f(_0x417579,_0x4edd65(0xb4)),'icon':_0x2c0533,'class':_0x33fdeb,'tooltip':!0x0}),_0xfeda3e[_0x4edd65(0xc0)](_0x4edd65(0x6f))['to'](this,_0x4edd65(0x75),_0x3666eb=>!!_0x3666eb),_0xfeda3e[_0x4edd65(0xc0)](_0x4edd65(0x91))['to'](this,_0x4edd65(0x7c),_0x218a4a=>!_0x218a4a),_0xfeda3e['on'](_0x4edd65(0x98),()=>{const _0x53dcfb=_0x4edd65;this[_0x53dcfb(0x80)](this[_0x53dcfb(0xb8)][_0x53dcfb(0x74)]),_0xfeda3e[_0x53dcfb(0x6e)]=_0xb826c5[_0x53dcfb(0xaf)],_0xfeda3e[_0x53dcfb(0x95)]=_0x33fdeb+_0x53dcfb(0xa2),this[_0x53dcfb(0x7e)](),setTimeout(()=>{const _0x4ec90a=_0x53dcfb;_0xfeda3e[_0x4ec90a(0x6e)]=_0x2c0533,_0xfeda3e[_0x4ec90a(0x95)]=_0x33fdeb;},0x3e8);}),_0xfeda3e;}[_0x323e59(0x80)](_0x3181bd){const _0x27639e=_0x323e59,{window:_0x2f3fa7,document:_0x1ad2f2}=_0x49535d;if(_0x2f3fa7[_0x27639e(0x99)]){const {Blob:_0x1a557f,ClipboardItem:_0x34ca9c}=_0x2f3fa7,_0x513f29=[new _0x34ca9c({'text/html':new _0x1a557f([_0x3181bd[_0x27639e(0x97)]],{'type':_0x27639e(0x84)}),'text/plain':new _0x1a557f([_0x3181bd[_0x27639e(0xbe)]||''],{'type':_0x27639e(0xad)})})];navigator[_0x27639e(0x82)][_0x27639e(0xa8)](_0x513f29);}else{const _0x56bc56=_0x1ad2f2[_0x27639e(0xbd)](_0x27639e(0x7a));_0x56bc56[_0x27639e(0x7f)][_0x27639e(0xa7)]=_0x27639e(0xa5),_0x56bc56[_0x27639e(0x7f)][_0x27639e(0xac)]=_0x27639e(0xa3),_0x56bc56[_0x27639e(0x97)]=_0x27639e(0x94)+_0x3181bd[_0x27639e(0x97)]+_0x27639e(0xa4),_0x1ad2f2[_0x27639e(0x89)][_0x27639e(0x78)](_0x56bc56);const _0x3f1a3c=_0x1ad2f2[_0x27639e(0x70)]();_0x3f1a3c[_0x27639e(0xaa)](_0x56bc56[_0x27639e(0xbf)]),_0x3f1a3c[_0x27639e(0x9e)](_0x56bc56[_0x27639e(0x71)]);const _0x184524=_0x2f3fa7[_0x27639e(0x9f)]();_0x184524[_0x27639e(0x96)](),_0x184524[_0x27639e(0x8b)](_0x3f1a3c),_0x1ad2f2[_0x27639e(0x7d)](_0x27639e(0xbb)),_0x56bc56[_0x27639e(0x87)]();}}}export class ContentFieldView extends _0x22254a{constructor(_0xe909bc,_0x4a4296=''){const _0x399983=_0x323e59;super(_0xe909bc),this[_0x399983(0x6d)]=this[_0x399983(0x81)](),this[_0x399983(0x8a)]({'tag':_0x399983(0x7a),'attributes':{'class':['ck',_0x399983(0xb5),_0x4a4296,_0x399983(0xb2),_0x399983(0x72)]}});}[_0x323e59(0x83)](_0x36d9f6){const _0x54a9f9=_0x323e59;this[_0x54a9f9(0x74)][_0x54a9f9(0x97)]=_0x36d9f6;}[_0x323e59(0xb3)](){const _0x20eebb=_0x323e59;this[_0x20eebb(0x74)][_0x20eebb(0x78)](this[_0x20eebb(0x6d)][_0x20eebb(0x74)]);}[_0x323e59(0x81)](){const _0x491d38=_0x323e59,_0x466eea=new _0x22254a(),_0x52a10d=this[_0x491d38(0x92)],_0x9bb301=new _0x40dd1d();return _0x9bb301[_0x491d38(0x6f)]=!0x0,_0x466eea[_0x491d38(0x8a)]({'tag':_0x491d38(0x7a),'attributes':{'class':['ck',_0x491d38(0xb1)]},'children':[_0x9bb301,{'text':_0x11795f(_0x52a10d,_0x491d38(0x73))}]}),_0x466eea[_0x491d38(0xba)](),_0x466eea;}}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/ui/aiformerrorview
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x55e206,_0x5c12a7){const _0x5b5ee9=_0x5567,_0x5cc4f5=_0x55e206();while(!![]){try{const _0x1235e8=-parseInt(_0x5b5ee9(0x1cf))/0x1+-parseInt(_0x5b5ee9(0x1ce))/0x2*(parseInt(_0x5b5ee9(0x1cb))/0x3)+-parseInt(_0x5b5ee9(0x1cc))/0x4*(-parseInt(_0x5b5ee9(0x1d8))/0x5)+-parseInt(_0x5b5ee9(0x1d3))/0x6+parseInt(_0x5b5ee9(0x1cd))/0x7*(-parseInt(_0x5b5ee9(0x1d1))/0x8)+parseInt(_0x5b5ee9(0x1d5))/0x9+parseInt(_0x5b5ee9(0x1d9))/0xa;if(_0x1235e8===_0x5c12a7)break;else _0x5cc4f5['push'](_0x5cc4f5['shift']());}catch(_0x587c40){_0x5cc4f5['push'](_0x5cc4f5['shift']());}}}(_0x72df,0xc1316));function _0x72df(){const _0x2add90=['8826768ezsRGD','text','10549395WvKNfI','set','content','25rmuQIU','29669070WVVcLt','bindTemplate','ck-ai-form__error','668757qEKmTX','274612lITSUY','3899721PSakIF','14aDTgmD','102345DVpXus','setTemplate','8EBUwfh','div'];_0x72df=function(){return _0x2add90;};return _0x72df();}import{View as _0x3a3839,IconView as _0x351bef}from'ckeditor5/src/ui.js';function _0x5567(_0xc6e3c2,_0xa7809c){const _0x72df04=_0x72df();return _0x5567=function(_0x5567ba,_0x4d62db){_0x5567ba=_0x5567ba-0x1cb;let _0x1b3aab=_0x72df04[_0x5567ba];return _0x1b3aab;},_0x5567(_0xc6e3c2,_0xa7809c);}import _0x4c0ca5 from'../../../theme/icons/error.svg';export default class tt extends _0x3a3839{constructor(_0x4b022e,_0x2a0787=''){const _0x3bf0ef=_0x5567;super(_0x4b022e);const _0x52f64c=new _0x351bef(),_0x441831=this[_0x3bf0ef(0x1da)];this[_0x3bf0ef(0x1d6)](_0x3bf0ef(0x1d4),_0x2a0787),_0x52f64c[_0x3bf0ef(0x1d7)]=_0x4c0ca5,this[_0x3bf0ef(0x1d0)]({'tag':_0x3bf0ef(0x1d2),'attributes':{'class':['ck',_0x3bf0ef(0x1db)]},'children':[_0x52f64c,{'text':_0x441831['to'](_0x3bf0ef(0x1d4))}]});}}
23
+ (function(_0x3ee84c,_0x195274){const _0x31b770=_0x25d4,_0x3c78e7=_0x3ee84c();while(!![]){try{const _0x183af9=parseInt(_0x31b770(0x85))/0x1*(parseInt(_0x31b770(0x8d))/0x2)+-parseInt(_0x31b770(0x8f))/0x3+-parseInt(_0x31b770(0x89))/0x4+parseInt(_0x31b770(0x87))/0x5+parseInt(_0x31b770(0x8c))/0x6+-parseInt(_0x31b770(0x95))/0x7*(parseInt(_0x31b770(0x8b))/0x8)+parseInt(_0x31b770(0x86))/0x9*(-parseInt(_0x31b770(0x91))/0xa);if(_0x183af9===_0x195274)break;else _0x3c78e7['push'](_0x3c78e7['shift']());}catch(_0x1e6aea){_0x3c78e7['push'](_0x3c78e7['shift']());}}}(_0x3aa3,0x1d6cb));function _0x25d4(_0x27c74e,_0x707c02){const _0x3aa3b8=_0x3aa3();return _0x25d4=function(_0x25d4f7,_0x34e224){_0x25d4f7=_0x25d4f7-0x85;let _0x21c833=_0x3aa3b8[_0x25d4f7];return _0x21c833;},_0x25d4(_0x27c74e,_0x707c02);}import{View as _0x1b2625,IconView as _0x1710b5}from'ckeditor5/src/ui.js';import _0x425f5a from'../../../theme/icons/error.svg';export default class tt extends _0x1b2625{constructor(_0x392d1b,_0x542fb7=''){const _0x411398=_0x25d4;super(_0x392d1b);const _0x116af1=new _0x1710b5(),_0x16d547=this[_0x411398(0x90)];this[_0x411398(0x88)](_0x411398(0x92),_0x542fb7),_0x116af1[_0x411398(0x8a)]=_0x425f5a,this[_0x411398(0x8e)]({'tag':_0x411398(0x94),'attributes':{'class':['ck',_0x411398(0x93)]},'children':[_0x116af1,{'text':_0x16d547['to'](_0x411398(0x92))}]});}}function _0x3aa3(){const _0x398296=['bindTemplate','411490phAzZW','text','ck-ai-form__error','div','196wNlgTc','1GheZRb','9otfCoR','806935sWdcUH','set','255388JghwPH','content','43592LHFdZt','1126158WQJXav','225016HgWIpd','setTemplate','250491QOBRGL'];_0x3aa3=function(){return _0x398296;};return _0x3aa3();}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/ui/aiformpromptview
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x469857=_0x1ef2;(function(_0x75314d,_0x1b8636){const _0x495d11=_0x1ef2,_0x5bb37f=_0x75314d();while(!![]){try{const _0x32a075=parseInt(_0x495d11(0xec))/0x1+parseInt(_0x495d11(0xf8))/0x2*(-parseInt(_0x495d11(0x10b))/0x3)+parseInt(_0x495d11(0xf6))/0x4+parseInt(_0x495d11(0xe2))/0x5+parseInt(_0x495d11(0x105))/0x6*(parseInt(_0x495d11(0xf9))/0x7)+-parseInt(_0x495d11(0x117))/0x8+-parseInt(_0x495d11(0xf7))/0x9;if(_0x32a075===_0x1b8636)break;else _0x5bb37f['push'](_0x5bb37f['shift']());}catch(_0x2f0026){_0x5bb37f['push'](_0x5bb37f['shift']());}}}(_0x501d,0xe352f));import{Rect as _0x4d0e31,global as _0xd74b92,isVisible as _0x3de73d}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x21a7e0,ButtonView as _0x16fcfd}from'ckeditor5/src/ui.js';function _0x1ef2(_0xc4df09,_0x524dcd){const _0x501d0d=_0x501d();return _0x1ef2=function(_0x1ef23e,_0x4501f7){_0x1ef23e=_0x1ef23e-0xe0;let _0x2aa693=_0x501d0d[_0x1ef23e];return _0x2aa693;},_0x1ef2(_0xc4df09,_0x524dcd);}import{icons as _0x401568}from'ckeditor5/src/core.js';import{getTranslation as _0xe102b5}from'../../utils/common-translations.js';import _0x1f818e from'../../../theme/icons/submit.svg';function _0x501d(){const _0x526937=['_createSubmitButton','1580280YhivYv','11013345xXnubw','441266yquizt','1240169dwnfZl','focusFirst','minRows','right','Submit','focusCycler','ck-ai-form__toggle-history','isEnabled','element','rtl','history','locale','12TBKwRC','width','bind','value','render','_createShowHistoryButton','3Ubjaec','History','submitButtonView','isVisible','queryView','isEmpty','update','fieldView','filteredView','fieldWrapperChildren','add','requestAnimationFrame','683832EPoJQj','ck-ai-form__submit','enter','submit','excludeScrollbarsAndBorders','4016485DvTiCj','set','children','resultsView','isOn','keystrokes','showHistoryButtonView','window','target','fire','908235xfdAbl','execute','style','left','uiLanguageDirection','maxRows','focus','focusLast','focusableChildren'];_0x501d=function(){return _0x526937;};return _0x501d();}export default class ht extends _0x21a7e0{constructor(_0x518e12,_0x27d800){const _0x90aa5b=_0x1ef2;super(_0x518e12,_0x27d800),this[_0x90aa5b(0x10f)][_0x90aa5b(0x112)][_0x90aa5b(0xfb)]=0x1,this[_0x90aa5b(0x10f)][_0x90aa5b(0x112)][_0x90aa5b(0xf1)]=0x3,this[_0x90aa5b(0x10d)]=this[_0x90aa5b(0xf5)](),this[_0x90aa5b(0xe8)]=this[_0x90aa5b(0x10a)](),this[_0x90aa5b(0xf4)][_0x90aa5b(0x115)](this[_0x90aa5b(0xe8)],0x1),this[_0x90aa5b(0xf4)][_0x90aa5b(0x115)](this[_0x90aa5b(0x10d)]);}[_0x469857(0x109)](){const _0x38e71c=_0x469857;super[_0x38e71c(0x109)](),this[_0x38e71c(0x10f)][_0x38e71c(0x114)][_0x38e71c(0x115)](this[_0x38e71c(0xe8)]),this[_0x38e71c(0xe4)][_0x38e71c(0x115)](this[_0x38e71c(0x10d)]),this[_0x38e71c(0xe7)][_0x38e71c(0xe3)](_0x38e71c(0x119),(_0x351bb8,_0x7dfa94)=>{const _0x294b1a=_0x38e71c;_0x351bb8[_0x294b1a(0xea)]==this[_0x294b1a(0x10f)][_0x294b1a(0x112)][_0x294b1a(0x101)]&&(this[_0x294b1a(0xe0)](),_0x7dfa94());});}[_0x469857(0xf5)](){const _0x1a77bb=_0x469857,_0x50e18b=new _0x16fcfd(this[_0x1a77bb(0x104)]),_0x572705=this[_0x1a77bb(0x104)];return _0x50e18b[_0x1a77bb(0xe3)]({'icon':_0x1f818e,'label':_0xe102b5(_0x572705,_0x1a77bb(0xfd)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x1a77bb(0x118)}),_0x50e18b['on'](_0x1a77bb(0xed),()=>{const _0x38a948=_0x1a77bb;this[_0x38a948(0xe0)]();}),_0x50e18b[_0x1a77bb(0x107)](_0x1a77bb(0x100))['to'](this[_0x1a77bb(0x10f)][_0x1a77bb(0x112)],_0x1a77bb(0x110),this,_0x1a77bb(0x100),(_0x50a2d9,_0x4063a6)=>!_0x50a2d9&&_0x4063a6),_0x50e18b;}[_0x469857(0x10a)](){const _0x403d6c=_0x469857,_0x17a823=new _0x16fcfd(this[_0x403d6c(0x104)]),_0x4326f8=this[_0x403d6c(0xe5)],_0x46bb86=this[_0x403d6c(0x104)];_0x17a823[_0x403d6c(0xe3)]({'label':_0xe102b5(_0x46bb86,_0x403d6c(0x10c)),'withText':!0x1,'icon':_0x401568[_0x403d6c(0x103)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x403d6c(0xff)}),_0x17a823[_0x403d6c(0x107)](_0x403d6c(0xe6))['to'](_0x4326f8,_0x403d6c(0x10e)),_0x17a823[_0x403d6c(0x107)](_0x403d6c(0x100))['to'](this,_0x403d6c(0x100)),_0x17a823['on'](_0x403d6c(0xed),()=>{const _0x53e54c=_0x403d6c;_0x4326f8[_0x53e54c(0x10e)]=!_0x4326f8[_0x53e54c(0x10e)],_0x4326f8[_0x53e54c(0x10e)]?this[_0x53e54c(0x113)][_0x53e54c(0xf2)]():this[_0x53e54c(0xf2)]();});const _0x4c3ffd=()=>{const _0x59074e=_0x403d6c;_0xd74b92[_0x59074e(0xe9)][_0x59074e(0x116)](()=>{const _0x4b7b87=_0x59074e;if(_0x3de73d(this[_0x4b7b87(0x101)])){const _0x924bc1=new _0x4d0e31(this[_0x4b7b87(0x10f)][_0x4b7b87(0x112)][_0x4b7b87(0x101)]),_0x50dac6=_0x924bc1[_0x4b7b87(0x106)],_0x1f7534=_0x4b7b87(0x102)===_0x46bb86[_0x4b7b87(0xf0)]?_0x4b7b87(0xef):_0x4b7b87(0xfc);_0x924bc1[_0x4b7b87(0xe1)](),_0x17a823[_0x4b7b87(0x101)][_0x4b7b87(0xee)][_0x1f7534]=_0x50dac6-_0x924bc1[_0x4b7b87(0x106)]+0x1+'px';}});};return this[_0x403d6c(0x10f)][_0x403d6c(0x112)]['on'](_0x403d6c(0x111),_0x4c3ffd),this['on'](_0x403d6c(0x109),_0x4c3ffd),_0x17a823;}[_0x469857(0xe0)](){const _0x2aca20=_0x469857,_0x565142=this[_0x2aca20(0x10f)][_0x2aca20(0x112)][_0x2aca20(0x101)][_0x2aca20(0x108)];this[_0x2aca20(0xeb)](_0x2aca20(0xe0),_0x565142);}[_0x469857(0xf2)](_0x14fb20){const _0x4a1c92=_0x469857;-0x1===_0x14fb20?this[_0x4a1c92(0xfe)][_0x4a1c92(0xf3)]():this[_0x4a1c92(0xfe)][_0x4a1c92(0xfa)]();}}
23
+ function _0xf681(){const _0x450171=['focusFirst','element','8032668efAitj','2744424MevrYE','_createShowHistoryButton','12959230luuzYm','width','6umhFIE','isVisible','focusableChildren','requestAnimationFrame','2612223ulcNfz','699498bQwEMb','focusLast','target','update','excludeScrollbarsAndBorders','isEnabled','uiLanguageDirection','_createSubmitButton','isOn','queryView','279022FgqpEM','History','history','minRows','submit','keystrokes','fire','add','style','showHistoryButtonView','focus','locale','rtl','enter','ck-ai-form__toggle-history','focusCycler','1295450dmnufC','execute','ck-ai-form__submit','filteredView','Submit','fieldView','children','11PSyzjY','fieldWrapperChildren','isEmpty','render','bind','window','maxRows','resultsView','3gclINM','left','set','12sXqNsD','right','submitButtonView','value'];_0xf681=function(){return _0x450171;};return _0xf681();}const _0xe9c0f2=_0x2c24;(function(_0x412633,_0x58b938){const _0x3210f8=_0x2c24,_0xa3e2d9=_0x412633();while(!![]){try{const _0x5ca5cd=parseInt(_0x3210f8(0x21e))/0x1*(parseInt(_0x3210f8(0x1ff))/0x2)+parseInt(_0x3210f8(0x1f5))/0x3*(parseInt(_0x3210f8(0x221))/0x4)+parseInt(_0x3210f8(0x20f))/0x5*(parseInt(_0x3210f8(0x1f0))/0x6)+parseInt(_0x3210f8(0x227))/0x7+-parseInt(_0x3210f8(0x228))/0x8+-parseInt(_0x3210f8(0x1f4))/0x9+parseInt(_0x3210f8(0x1ee))/0xa*(-parseInt(_0x3210f8(0x216))/0xb);if(_0x5ca5cd===_0x58b938)break;else _0xa3e2d9['push'](_0xa3e2d9['shift']());}catch(_0xab53d8){_0xa3e2d9['push'](_0xa3e2d9['shift']());}}}(_0xf681,0x915de));function _0x2c24(_0x57da95,_0x452a74){const _0xf681fd=_0xf681();return _0x2c24=function(_0x2c2467,_0x11c1a4){_0x2c2467=_0x2c2467-0x1ee;let _0x1941f3=_0xf681fd[_0x2c2467];return _0x1941f3;},_0x2c24(_0x57da95,_0x452a74);}import{Rect as _0x22d267,global as _0x1fb69c,isVisible as _0x46f14d}from'ckeditor5/src/utils.js';import{AutocompleteView as _0x354c8d,ButtonView as _0x1a4a23}from'ckeditor5/src/ui.js';import{icons as _0x3cd714}from'ckeditor5/src/core.js';import{getTranslation as _0xe8269c}from'../../utils/common-translations.js';import _0x5a938a from'../../../theme/icons/submit.svg';export default class ht extends _0x354c8d{constructor(_0x2694e0,_0x3f5d00){const _0xbec1af=_0x2c24;super(_0x2694e0,_0x3f5d00),this[_0xbec1af(0x1fe)][_0xbec1af(0x214)][_0xbec1af(0x202)]=0x1,this[_0xbec1af(0x1fe)][_0xbec1af(0x214)][_0xbec1af(0x21c)]=0x3,this[_0xbec1af(0x223)]=this[_0xbec1af(0x1fc)](),this[_0xbec1af(0x208)]=this[_0xbec1af(0x229)](),this[_0xbec1af(0x1f2)][_0xbec1af(0x206)](this[_0xbec1af(0x208)],0x1),this[_0xbec1af(0x1f2)][_0xbec1af(0x206)](this[_0xbec1af(0x223)]);}[_0xe9c0f2(0x219)](){const _0x3dfab0=_0xe9c0f2;super[_0x3dfab0(0x219)](),this[_0x3dfab0(0x1fe)][_0x3dfab0(0x217)][_0x3dfab0(0x206)](this[_0x3dfab0(0x208)]),this[_0x3dfab0(0x215)][_0x3dfab0(0x206)](this[_0x3dfab0(0x223)]),this[_0x3dfab0(0x204)][_0x3dfab0(0x220)](_0x3dfab0(0x20c),(_0xc324de,_0x57df57)=>{const _0x363aa7=_0x3dfab0;_0xc324de[_0x363aa7(0x1f7)]==this[_0x363aa7(0x1fe)][_0x363aa7(0x214)][_0x363aa7(0x226)]&&(this[_0x363aa7(0x203)](),_0x57df57());});}[_0xe9c0f2(0x1fc)](){const _0x3fb8d4=_0xe9c0f2,_0x2cb0d1=new _0x1a4a23(this[_0x3fb8d4(0x20a)]),_0x46b6ee=this[_0x3fb8d4(0x20a)];return _0x2cb0d1[_0x3fb8d4(0x220)]({'icon':_0x5a938a,'label':_0xe8269c(_0x46b6ee,_0x3fb8d4(0x213)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3fb8d4(0x211)}),_0x2cb0d1['on'](_0x3fb8d4(0x210),()=>{const _0x7c346e=_0x3fb8d4;this[_0x7c346e(0x203)]();}),_0x2cb0d1[_0x3fb8d4(0x21a)](_0x3fb8d4(0x1fa))['to'](this[_0x3fb8d4(0x1fe)][_0x3fb8d4(0x214)],_0x3fb8d4(0x218),this,_0x3fb8d4(0x1fa),(_0x20245e,_0x262f6a)=>!_0x20245e&&_0x262f6a),_0x2cb0d1;}[_0xe9c0f2(0x229)](){const _0x46efd7=_0xe9c0f2,_0x53e2e6=new _0x1a4a23(this[_0x46efd7(0x20a)]),_0x1d483b=this[_0x46efd7(0x21d)],_0x38cc01=this[_0x46efd7(0x20a)];_0x53e2e6[_0x46efd7(0x220)]({'label':_0xe8269c(_0x38cc01,_0x46efd7(0x200)),'withText':!0x1,'icon':_0x3cd714[_0x46efd7(0x201)],'tooltip':!0x0,'tooltipPosition':'sw','class':_0x46efd7(0x20d)}),_0x53e2e6[_0x46efd7(0x21a)](_0x46efd7(0x1fd))['to'](_0x1d483b,_0x46efd7(0x1f1)),_0x53e2e6[_0x46efd7(0x21a)](_0x46efd7(0x1fa))['to'](this,_0x46efd7(0x1fa)),_0x53e2e6['on'](_0x46efd7(0x210),()=>{const _0x2ac650=_0x46efd7;_0x1d483b[_0x2ac650(0x1f1)]=!_0x1d483b[_0x2ac650(0x1f1)],_0x1d483b[_0x2ac650(0x1f1)]?this[_0x2ac650(0x212)][_0x2ac650(0x209)]():this[_0x2ac650(0x209)]();});const _0x244a34=()=>{const _0x2673d7=_0x46efd7;_0x1fb69c[_0x2673d7(0x21b)][_0x2673d7(0x1f3)](()=>{const _0x455104=_0x2673d7;if(_0x46f14d(this[_0x455104(0x226)])){const _0x5b7c55=new _0x22d267(this[_0x455104(0x1fe)][_0x455104(0x214)][_0x455104(0x226)]),_0x509ab1=_0x5b7c55[_0x455104(0x1ef)],_0x572e3a=_0x455104(0x20b)===_0x38cc01[_0x455104(0x1fb)]?_0x455104(0x21f):_0x455104(0x222);_0x5b7c55[_0x455104(0x1f9)](),_0x53e2e6[_0x455104(0x226)][_0x455104(0x207)][_0x572e3a]=_0x509ab1-_0x5b7c55[_0x455104(0x1ef)]+0x1+'px';}});};return this[_0x46efd7(0x1fe)][_0x46efd7(0x214)]['on'](_0x46efd7(0x1f8),_0x244a34),this['on'](_0x46efd7(0x219),_0x244a34),_0x53e2e6;}[_0xe9c0f2(0x203)](){const _0x29f18c=_0xe9c0f2,_0x2cf3de=this[_0x29f18c(0x1fe)][_0x29f18c(0x214)][_0x29f18c(0x226)][_0x29f18c(0x224)];this[_0x29f18c(0x205)](_0x29f18c(0x203),_0x2cf3de);}[_0xe9c0f2(0x209)](_0x42ac34){const _0x3840a2=_0xe9c0f2;-0x1===_0x42ac34?this[_0x3840a2(0x20e)][_0x3840a2(0x1f6)]():this[_0x3840a2(0x20e)][_0x3840a2(0x225)]();}}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/ui/aiformtoolbarview
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1369(){const _0xe27241=['5611240kDeVJD','insert','extendTemplate','replaceButton','ck-button-action','set','5052550gvbuAf','bindTemplate','label','_CONTENT','tryAgainButton','toUpperCase','3667644gVsRJD','Try\x20again','isVisible','REPLACE','_createButton','1454645nkQDuz','addMany','stopButton','Insert\x20below','AI_','replace','112vagxzr','9FZLRIZ','items','locale','Stop','insertButton','ck-hidden','758991DSAYQD','ck-ai-form__toolbar','1281609PGVQRl','10956dtyoNH','mainAction','bind','4tGSGFB'];_0x1369=function(){return _0xe27241;};return _0x1369();}const _0x5dbc10=_0x2fd4;(function(_0x14fe91,_0x169f7c){const _0x30cb13=_0x2fd4,_0x4fe7bb=_0x14fe91();while(!![]){try{const _0x375f31=-parseInt(_0x30cb13(0x163))/0x1*(-parseInt(_0x30cb13(0x159))/0x2)+-parseInt(_0x30cb13(0x160))/0x3+-parseInt(_0x30cb13(0x166))/0x4*(-parseInt(_0x30cb13(0x153))/0x5)+-parseInt(_0x30cb13(0x173))/0x6+parseInt(_0x30cb13(0x162))/0x7+-parseInt(_0x30cb13(0x167))/0x8*(-parseInt(_0x30cb13(0x15a))/0x9)+-parseInt(_0x30cb13(0x16d))/0xa;if(_0x375f31===_0x169f7c)break;else _0x4fe7bb['push'](_0x4fe7bb['shift']());}catch(_0x53fc82){_0x4fe7bb['push'](_0x4fe7bb['shift']());}}}(_0x1369,0x66667));import{ToolbarView as _0x5c1941,ButtonView as _0x2bce9a}from'ckeditor5/src/ui.js';import{getTranslation as _0x131a62}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x5dbc10(0x158),'INSERT':_0x5dbc10(0x168)};function _0x2fd4(_0x268fd3,_0x186d53){const _0x1369af=_0x1369();return _0x2fd4=function(_0x2fd4fa,_0x937a94){_0x2fd4fa=_0x2fd4fa-0x150;let _0x3eb81c=_0x1369af[_0x2fd4fa];return _0x3eb81c;},_0x2fd4(_0x268fd3,_0x186d53);}export default class nt extends _0x5c1941{constructor(_0x286834){const _0x3be708=_0x5dbc10;super(_0x286834),this[_0x3be708(0x16c)](_0x3be708(0x150),!0x1),this[_0x3be708(0x16c)](_0x3be708(0x164),AIFormToolbarViewMainActionLabel[_0x3be708(0x151)]),this[_0x3be708(0x16a)]=this[_0x3be708(0x152)]('',_0x3be708(0x16b)),this[_0x3be708(0x16a)][_0x3be708(0x165)](_0x3be708(0x16f))['to'](this,_0x3be708(0x164),_0x22d10b=>_0x131a62(_0x286834,_0x3be708(0x157)+_0x22d10b[_0x3be708(0x172)]()+_0x3be708(0x170))),this[_0x3be708(0x15e)]=this[_0x3be708(0x152)](_0x131a62(_0x286834,_0x3be708(0x156))),this[_0x3be708(0x171)]=this[_0x3be708(0x152)](_0x131a62(_0x286834,_0x3be708(0x174))),this[_0x3be708(0x155)]=this[_0x3be708(0x152)](_0x131a62(_0x286834,_0x3be708(0x15d)));const _0x3b0c20=this[_0x3be708(0x16e)];this[_0x3be708(0x169)]({'attributes':{'class':[_0x3be708(0x161),_0x3b0c20['if'](_0x3be708(0x150),_0x3be708(0x15f),_0x4111e1=>!_0x4111e1)]}}),this[_0x3be708(0x15b)][_0x3be708(0x154)]([this[_0x3be708(0x16a)],this[_0x3be708(0x15e)],this[_0x3be708(0x171)],this[_0x3be708(0x155)]]);}[_0x5dbc10(0x152)](_0x491951,_0x137ccc){const _0x18ae2d=_0x5dbc10,_0xa64116=new _0x2bce9a(this[_0x18ae2d(0x15c)]);return _0xa64116[_0x18ae2d(0x16c)]({'label':_0x491951,'class':_0x137ccc||'','isVisible':!0x0,'withText':!0x0}),_0xa64116;}}
23
+ const _0x37dd1a=_0xc9e9;(function(_0x4c7af2,_0x5ecea6){const _0x51c68a=_0xc9e9,_0x5dbfe9=_0x4c7af2();while(!![]){try{const _0x5bdfc1=-parseInt(_0x51c68a(0x1e3))/0x1+-parseInt(_0x51c68a(0x1f4))/0x2+-parseInt(_0x51c68a(0x1d8))/0x3*(parseInt(_0x51c68a(0x1e5))/0x4)+parseInt(_0x51c68a(0x1e0))/0x5+parseInt(_0x51c68a(0x1e9))/0x6+parseInt(_0x51c68a(0x1ea))/0x7+-parseInt(_0x51c68a(0x1e8))/0x8;if(_0x5bdfc1===_0x5ecea6)break;else _0x5dbfe9['push'](_0x5dbfe9['shift']());}catch(_0x48133c){_0x5dbfe9['push'](_0x5dbfe9['shift']());}}}(_0x4937,0x57f30));function _0xc9e9(_0x6013c2,_0xcc6071){const _0x493706=_0x4937();return _0xc9e9=function(_0xc9e987,_0x37548d){_0xc9e987=_0xc9e987-0x1d7;let _0x1c40f7=_0x493706[_0xc9e987];return _0x1c40f7;},_0xc9e9(_0x6013c2,_0xcc6071);}import{ToolbarView as _0x23fa8b,ButtonView as _0x4499b8}from'ckeditor5/src/ui.js';function _0x4937(){const _0x25cdb2=['set','insert','190268ZjuTQI','bindTemplate','32NpIsfh','ck-ai-form__toolbar','addMany','768552xsuraE','3562584OeIFQH','4296761xIyyxc','label','toUpperCase','locale','stopButton','extendTemplate','replace','Stop','bind','ck-hidden','817240meTaGK','isVisible','insertButton','_createButton','ck-button-action','replaceButton','mainAction','125691kgdeTp','_CONTENT','Try\x20again','REPLACE','AI_','tryAgainButton','Insert\x20below','items','913930iwUmQb'];_0x4937=function(){return _0x25cdb2;};return _0x4937();}import{getTranslation as _0x2dfc89}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x37dd1a(0x1f0),'INSERT':_0x37dd1a(0x1e2)};export default class nt extends _0x23fa8b{constructor(_0x55c618){const _0x3bf9d3=_0x37dd1a;super(_0x55c618),this[_0x3bf9d3(0x1e1)](_0x3bf9d3(0x1f5),!0x1),this[_0x3bf9d3(0x1e1)](_0x3bf9d3(0x1d7),AIFormToolbarViewMainActionLabel[_0x3bf9d3(0x1db)]),this[_0x3bf9d3(0x1f9)]=this[_0x3bf9d3(0x1f7)]('',_0x3bf9d3(0x1f8)),this[_0x3bf9d3(0x1f9)][_0x3bf9d3(0x1f2)](_0x3bf9d3(0x1eb))['to'](this,_0x3bf9d3(0x1d7),_0x43f8f7=>_0x2dfc89(_0x55c618,_0x3bf9d3(0x1dc)+_0x43f8f7[_0x3bf9d3(0x1ec)]()+_0x3bf9d3(0x1d9))),this[_0x3bf9d3(0x1f6)]=this[_0x3bf9d3(0x1f7)](_0x2dfc89(_0x55c618,_0x3bf9d3(0x1de))),this[_0x3bf9d3(0x1dd)]=this[_0x3bf9d3(0x1f7)](_0x2dfc89(_0x55c618,_0x3bf9d3(0x1da))),this[_0x3bf9d3(0x1ee)]=this[_0x3bf9d3(0x1f7)](_0x2dfc89(_0x55c618,_0x3bf9d3(0x1f1)));const _0x533be0=this[_0x3bf9d3(0x1e4)];this[_0x3bf9d3(0x1ef)]({'attributes':{'class':[_0x3bf9d3(0x1e6),_0x533be0['if'](_0x3bf9d3(0x1f5),_0x3bf9d3(0x1f3),_0x46e549=>!_0x46e549)]}}),this[_0x3bf9d3(0x1df)][_0x3bf9d3(0x1e7)]([this[_0x3bf9d3(0x1f9)],this[_0x3bf9d3(0x1f6)],this[_0x3bf9d3(0x1dd)],this[_0x3bf9d3(0x1ee)]]);}[_0x37dd1a(0x1f7)](_0x26b287,_0x3ac503){const _0x3e0319=_0x37dd1a,_0x45be60=new _0x4499b8(this[_0x3e0319(0x1ed)]);return _0x45be60[_0x3e0319(0x1e1)]({'label':_0x26b287,'class':_0x3ac503||'','isVisible':!0x0,'withText':!0x0}),_0x45be60;}}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/ui/aiformview
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a8f89=_0x80aa;(function(_0x8a443b,_0x269708){const _0x56a138=_0x80aa,_0x750a3f=_0x8a443b();while(!![]){try{const _0x48b532=-parseInt(_0x56a138(0x1c9))/0x1+parseInt(_0x56a138(0x18a))/0x2*(parseInt(_0x56a138(0x1d2))/0x3)+parseInt(_0x56a138(0x19b))/0x4+parseInt(_0x56a138(0x190))/0x5*(-parseInt(_0x56a138(0x1bb))/0x6)+-parseInt(_0x56a138(0x18d))/0x7+-parseInt(_0x56a138(0x1c4))/0x8*(parseInt(_0x56a138(0x1d4))/0x9)+parseInt(_0x56a138(0x192))/0xa*(parseInt(_0x56a138(0x1b5))/0xb);if(_0x48b532===_0x269708)break;else _0x750a3f['push'](_0x750a3f['shift']());}catch(_0x16137f){_0x750a3f['push'](_0x750a3f['shift']());}}}(_0x33c6,0xf0bfe));import{FocusTracker as _0x3a2891,KeystrokeHandler as _0xadb5e}from'ckeditor5/src/utils.js';function _0x80aa(_0x4a788d,_0x8f1395){const _0x33c6e7=_0x33c6();return _0x80aa=function(_0x80aa4f,_0x52ba23){_0x80aa4f=_0x80aa4f-0x189;let _0x47bd0b=_0x33c6e7[_0x80aa4f];return _0x47bd0b;},_0x80aa(_0x4a788d,_0x8f1395);}import{View as _0x5984e1,FocusCycler as _0x27627b,createLabeledTextarea as _0x1cce32}from'ckeditor5/src/ui.js';import _0x5a75cb,{AIFormToolbarViewMainActionLabel as _0x56da28}from'./aiformtoolbarview.js';import _0xca33bf from'./aiformcontentarea.js';import _0x30ee44 from'./aiformerrorview.js';import _0x53ae46 from'./aiformpromptview.js';function _0x33c6(){const _0x220130=['delegate','replaceButton','3256JFmDhd','isProcessing','shift\x20+\x20tab','errorView','trim','1635168QUCJRZ','Ask\x20AI\x20to\x20improve\x20generated\x20text','bindTemplate','render','_createHistoryView','createCollection','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','setTemplate','_createToolbar','28437Sdczwb','div','24174rFqnSC','element','locale','isEnabled','fire','Empty\x20history','_focusables','ck-hidden','execute','reset','submit','isError','36qjRETe','add','insertContentBelow','10320926JDIKLf','listenTo','_createPromptView','66785YDhvnt','keystrokes','4610QoAkpi','clear','bindTo','prompt','toolbar','copyButtonView','Ask\x20AI\x20to\x20edit\x20or\x20generate','bind','focusFirst','1597828WQEQxu','ck-ai-form','focusLast','startProcessing','mainAction','contentArea','label','tryAgainButton','focusCycler','AI_ERROR_FAILED','focusTracker','tryAgainEvent','REPLACE','_promptHistory','finishProcessing','ck-ai-form-content','clearHistory','insertButton','set','replaceContent','high','promptView','focus','chain','stopProcessing','queryView','111804cENSSr','items','stopButton','text','fieldView','search','30olgeNR','submitPrompt','value','historyGroupView','handleError','isVisible','tab'];_0x33c6=function(){return _0x220130;};return _0x33c6();}import _0x5c212c from'./aihistorylistview.js';import _0x35a2f0 from'./aihistorylistitemview.js';import _0x37fb19 from'./prompthistory.js';import{getTranslation as _0xa38b2}from'../../utils/common-translations.js';import{escape as _0x30ae77}from'lodash-es';export default class K extends _0x5984e1{constructor(_0x3f5a2b,_0x566904,_0x1ae2d1=''){const _0x414378=_0x80aa;super(_0x3f5a2b),this[_0x414378(0x1ad)](_0x414378(0x1d7),!0x0),this[_0x414378(0x1ad)](_0x414378(0x1c5),!0x1),this[_0x414378(0x1ad)](_0x414378(0x195),''),this[_0x414378(0x1ad)](_0x414378(0x1bd),''),this[_0x414378(0x1ad)](_0x414378(0x189),!0x1),this[_0x414378(0x1ad)](_0x414378(0x19f),_0x56da28[_0x414378(0x1a7)]),this[_0x414378(0x1a8)]=new _0x37fb19(),this[_0x414378(0x1c7)]=new _0x30ee44(_0x3f5a2b),this[_0x414378(0x1a0)]=new _0xca33bf(_0x3f5a2b,_0x1ae2d1),this[_0x414378(0x1a0)][_0x414378(0x199)](_0x414378(0x1c5))['to'](this),this[_0x414378(0x1a0)][_0x414378(0x199)](_0x414378(0x1bd))['to'](this),this[_0x414378(0x196)]=this[_0x414378(0x1d1)](),this[_0x414378(0x196)][_0x414378(0x199)](_0x414378(0x19f))['to'](this),this[_0x414378(0x1b0)]=this[_0x414378(0x18f)](),this[_0x414378(0x1a5)]=new _0x3a2891(),this[_0x414378(0x191)]=new _0xadb5e(),this[_0x414378(0x1da)]=this[_0x414378(0x1ce)]([this[_0x414378(0x1a0)],this[_0x414378(0x1a0)][_0x414378(0x197)],this[_0x414378(0x196)],this[_0x414378(0x1b0)]]),this[_0x414378(0x1a3)]=new _0x27627b({'focusables':this[_0x414378(0x1da)],'focusTracker':this[_0x414378(0x1a5)],'keystrokeHandler':this[_0x414378(0x191)],'actions':{'focusPrevious':_0x414378(0x1c6),'focusNext':_0x414378(0x1c1)}}),this[_0x414378(0x1a3)][_0x414378(0x1b2)](this[_0x414378(0x1b0)][_0x414378(0x1a3)]),this[_0x414378(0x1b0)][_0x414378(0x1b4)][_0x414378(0x1b9)][_0x414378(0x199)](_0x414378(0x1bd))['to'](this,_0x414378(0x195));const _0x2edffd=this[_0x414378(0x1cb)];this[_0x414378(0x1d0)]({'tag':_0x414378(0x1d3),'attributes':{'class':['ck',_0x414378(0x19c),_0x566904],'tabindex':'-1'},'children':[{'tag':_0x414378(0x1d3),'attributes':{'class':['ck',_0x414378(0x1aa)]},'children':[{'tag':_0x414378(0x1d3),'attributes':{'class':[_0x2edffd['if'](_0x414378(0x189),_0x414378(0x1db),_0x38e867=>!_0x38e867)]},'children':[this[_0x414378(0x1c7)]]},this[_0x414378(0x1a0)],this[_0x414378(0x196)],this[_0x414378(0x1b0)]]}]});}[_0x2a8f89(0x1cc)](){const _0x15f513=_0x2a8f89;super[_0x15f513(0x1cc)](),this[_0x15f513(0x1a5)][_0x15f513(0x18b)](this[_0x15f513(0x1a0)][_0x15f513(0x1d5)]),this[_0x15f513(0x1a5)][_0x15f513(0x18b)](this[_0x15f513(0x1a0)][_0x15f513(0x197)][_0x15f513(0x1d5)]),this[_0x15f513(0x1a5)][_0x15f513(0x18b)](this[_0x15f513(0x196)][_0x15f513(0x1d5)]),this[_0x15f513(0x1a5)][_0x15f513(0x18b)](this[_0x15f513(0x1b0)][_0x15f513(0x1d5)]),this[_0x15f513(0x191)][_0x15f513(0x18e)](this[_0x15f513(0x1d5)]);}[_0x2a8f89(0x1b1)](_0x37ee5d=0x1){const _0x3104db=_0x2a8f89;-0x1===_0x37ee5d?this[_0x3104db(0x1a3)][_0x3104db(0x19d)]():this[_0x3104db(0x1a3)][_0x3104db(0x19a)]();}[_0x2a8f89(0x1dd)](){const _0x274c2d=_0x2a8f89;this[_0x274c2d(0x195)]='',this[_0x274c2d(0x1bd)]='',this[_0x274c2d(0x189)]=!0x1,this[_0x274c2d(0x1b0)][_0x274c2d(0x1dd)](),this[_0x274c2d(0x1a0)][_0x274c2d(0x1c0)]=!0x1,this[_0x274c2d(0x196)][_0x274c2d(0x1c0)]=!0x1;}[_0x2a8f89(0x18f)](){const _0x3df808=_0x2a8f89,_0x393443=this[_0x3df808(0x1d6)],_0x47d5ea=new _0x53ae46(_0x393443,{'queryView':{'label':_0xa38b2(_0x393443,_0x3df808(0x198)),'creator':_0x1cce32,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0xa38b2(_0x393443,_0x3df808(0x1d9)),'secondary':_0xa38b2(_0x393443,_0x3df808(0x1cf))}}},'filteredView':this[_0x3df808(0x1cd)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x47d5ea[_0x3df808(0x199)](_0x3df808(0x1d7))['to'](this,_0x3df808(0x1d7),this,_0x3df808(0x1c5),(_0x42ad68,_0x1ea56a)=>_0x42ad68&&!_0x1ea56a),this[_0x3df808(0x18e)](_0x47d5ea,_0x3df808(0x1de),(_0x441153,_0x2a4ee9)=>{const _0x3b7cde=_0x3df808;this[_0x3b7cde(0x195)]=_0x2a4ee9;const _0x5bca0d=_0x30ae77(_0x2a4ee9);this[_0x3b7cde(0x1d8)](_0x3b7cde(0x1bc),_0x5bca0d),_0x2a4ee9[_0x3b7cde(0x1c8)]()&&this[_0x3b7cde(0x1a8)][_0x3b7cde(0x18b)]({'prompt':_0x5bca0d},0x0);},{'priority':_0x3df808(0x1af)}),_0x47d5ea;}[_0x2a8f89(0x1cd)](){const _0x1ad987=_0x2a8f89,_0x4171c4=new _0x5c212c(this[_0x1ad987(0x1d6)]);return _0x4171c4[_0x1ad987(0x1be)][_0x1ad987(0x1b6)][_0x1ad987(0x194)](this[_0x1ad987(0x1a8)])['as'](_0x35a2f0),_0x4171c4['on'](_0x1ad987(0x1ab),()=>{const _0x654f20=_0x1ad987;this[_0x654f20(0x1a8)][_0x654f20(0x193)](),this[_0x654f20(0x1b0)][_0x654f20(0x1ba)](''),this[_0x654f20(0x1b0)][_0x654f20(0x1b1)]();}),_0x4171c4;}[_0x2a8f89(0x1d1)](){const _0x5bc4f4=_0x2a8f89,_0x3ea7c1=new _0x5a75cb(this[_0x5bc4f4(0x1d6)]);return _0x3ea7c1[_0x5bc4f4(0x1c3)][_0x5bc4f4(0x199)](_0x5bc4f4(0x1d7))['to'](this,_0x5bc4f4(0x1d7),this,_0x5bc4f4(0x1c5),this,_0x5bc4f4(0x1bd),(_0x2ca04f,_0x513533,_0x48a2ec)=>_0x2ca04f&&!_0x513533&&!!_0x48a2ec),_0x3ea7c1[_0x5bc4f4(0x1c3)][_0x5bc4f4(0x1c2)](_0x5bc4f4(0x1dc))['to'](this,_0x5bc4f4(0x1ae)),_0x3ea7c1[_0x5bc4f4(0x1ac)][_0x5bc4f4(0x199)](_0x5bc4f4(0x1d7))['to'](this,_0x5bc4f4(0x1d7),this,_0x5bc4f4(0x1c5),this,_0x5bc4f4(0x1bd),(_0x3f3ccf,_0x563a04,_0x565233)=>_0x3f3ccf&&!_0x563a04&&!!_0x565233),_0x3ea7c1[_0x5bc4f4(0x1ac)][_0x5bc4f4(0x1c2)](_0x5bc4f4(0x1dc))['to'](this,_0x5bc4f4(0x18c)),_0x3ea7c1[_0x5bc4f4(0x1a2)][_0x5bc4f4(0x199)](_0x5bc4f4(0x1d7))['to'](this,_0x5bc4f4(0x1d7),this,_0x5bc4f4(0x1c5),(_0x49691d,_0x4967ea)=>_0x49691d&&!_0x4967ea),_0x3ea7c1[_0x5bc4f4(0x1a2)][_0x5bc4f4(0x1c2)](_0x5bc4f4(0x1dc))['to'](this,_0x5bc4f4(0x1a6)),_0x3ea7c1[_0x5bc4f4(0x1b7)][_0x5bc4f4(0x199)](_0x5bc4f4(0x1d7))['to'](this,_0x5bc4f4(0x1c5)),_0x3ea7c1[_0x5bc4f4(0x1b7)][_0x5bc4f4(0x1c2)](_0x5bc4f4(0x1dc))['to'](this,_0x5bc4f4(0x1b3)),_0x3ea7c1;}[_0x2a8f89(0x19e)](){const _0x548c74=_0x2a8f89;this[_0x548c74(0x1bd)]='',this[_0x548c74(0x189)]=!0x1,this[_0x548c74(0x1c5)]=!0x0,this[_0x548c74(0x1a0)][_0x548c74(0x1c0)]=!0x0,this[_0x548c74(0x196)][_0x548c74(0x1c0)]=!0x0,this[_0x548c74(0x1a0)][_0x548c74(0x1b1)]();}[_0x2a8f89(0x1a9)](){const _0x428f39=_0x2a8f89,_0x401ea3=this[_0x428f39(0x1d6)];this[_0x428f39(0x1c5)]=!0x1,this[_0x428f39(0x195)]='',this[_0x428f39(0x1b0)][_0x428f39(0x1dd)](),this[_0x428f39(0x1bd)]&&(this[_0x428f39(0x1b0)][_0x428f39(0x1b4)][_0x428f39(0x1a1)]=_0xa38b2(_0x401ea3,_0x428f39(0x1ca)));}[_0x2a8f89(0x1bf)](_0x3420dd){const _0x5a5f48=_0x2a8f89,_0x479c44=this[_0x5a5f48(0x1d6)];this[_0x5a5f48(0x1a9)](),this[_0x5a5f48(0x189)]=!0x0,this[_0x5a5f48(0x1c7)][_0x5a5f48(0x1b8)]=_0x3420dd||_0xa38b2(_0x479c44,_0x5a5f48(0x1a4)),this[_0x5a5f48(0x1bd)]||(this[_0x5a5f48(0x1a0)][_0x5a5f48(0x1c0)]=!0x1);}}
23
+ const _0x4f5468=_0x2be5;(function(_0x3b9561,_0x3ee40e){const _0x286411=_0x2be5,_0x41f553=_0x3b9561();while(!![]){try{const _0x203c1c=parseInt(_0x286411(0x203))/0x1*(parseInt(_0x286411(0x231))/0x2)+-parseInt(_0x286411(0x210))/0x3*(parseInt(_0x286411(0x214))/0x4)+parseInt(_0x286411(0x1e9))/0x5+parseInt(_0x286411(0x218))/0x6*(parseInt(_0x286411(0x228))/0x7)+-parseInt(_0x286411(0x22c))/0x8*(-parseInt(_0x286411(0x237))/0x9)+-parseInt(_0x286411(0x1f4))/0xa*(-parseInt(_0x286411(0x1fc))/0xb)+-parseInt(_0x286411(0x204))/0xc;if(_0x203c1c===_0x3ee40e)break;else _0x41f553['push'](_0x41f553['shift']());}catch(_0x1ab2c){_0x41f553['push'](_0x41f553['shift']());}}}(_0x2fd1,0x5a581));import{FocusTracker as _0x46ef73,KeystrokeHandler as _0xc319d5}from'ckeditor5/src/utils.js';import{View as _0x194caf,FocusCycler as _0x1512fe,createLabeledTextarea as _0x4ee9a4}from'ckeditor5/src/ui.js';import _0xe7a25e,{AIFormToolbarViewMainActionLabel as _0x405837}from'./aiformtoolbarview.js';import _0x501a4b from'./aiformcontentarea.js';import _0x190a14 from'./aiformerrorview.js';import _0xa1e850 from'./aiformpromptview.js';import _0x50f7b2 from'./aihistorylistview.js';import _0x3f2848 from'./aihistorylistitemview.js';import _0x44658a from'./prompthistory.js';function _0x2be5(_0x15a44b,_0x4780aa){const _0x2fd178=_0x2fd1();return _0x2be5=function(_0x2be5f2,_0x2a9a7d){_0x2be5f2=_0x2be5f2-0x1e8;let _0x38270d=_0x2fd178[_0x2be5f2];return _0x38270d;},_0x2be5(_0x15a44b,_0x4780aa);}function _0x2fd1(){const _0x2fcd8c=['delegate','insertButton','handleError','keystrokes','ck-hidden','execute','2786695EjWylL','focusLast','focusCycler','promptView','finishProcessing','clearHistory','Ask\x20AI\x20to\x20improve\x20generated\x20text','trim','clear','focusTracker','render','3010tsmgDg','bindTemplate','insertContentBelow','setTemplate','text','add','_createHistoryView','high','21362xSJfyy','bindTo','startProcessing','_createToolbar','Ask\x20AI\x20to\x20edit\x20or\x20generate','shift\x20+\x20tab','label','2tbeTcB','24037860EluhBR','errorView','fire','bind','copyButtonView','isEnabled','fieldView','ck-ai-form','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','replaceButton','stopButton','items','3JzUJHm','focusFirst','toolbar','chain','703540ANdDdz','stopProcessing','tab','_focusables','18DpWASi','value','createCollection','_promptHistory','focus','prompt','search','mainAction','AI_ERROR_FAILED','ck-ai-form-content','isVisible','queryView','replaceContent','isError','isProcessing','_createPromptView','1358644oXHmhZ','submitPrompt','historyGroupView','element','487624rCBRwF','div','tryAgainEvent','listenTo','submit','581120wXUawH','reset','REPLACE','contentArea','locale','Empty\x20history','36zBCjTs','tryAgainButton','set'];_0x2fd1=function(){return _0x2fcd8c;};return _0x2fd1();}import{getTranslation as _0x48ebb6}from'../../utils/common-translations.js';import{escape as _0x4eb046}from'lodash-es';export default class K extends _0x194caf{constructor(_0x581d7d,_0x48faed,_0x4258d3=''){const _0x21c336=_0x2be5;super(_0x581d7d),this[_0x21c336(0x239)](_0x21c336(0x209),!0x0),this[_0x21c336(0x239)](_0x21c336(0x226),!0x1),this[_0x21c336(0x239)](_0x21c336(0x21d),''),this[_0x21c336(0x239)](_0x21c336(0x219),''),this[_0x21c336(0x239)](_0x21c336(0x225),!0x1),this[_0x21c336(0x239)](_0x21c336(0x21f),_0x405837[_0x21c336(0x233)]),this[_0x21c336(0x21b)]=new _0x44658a(),this[_0x21c336(0x205)]=new _0x190a14(_0x581d7d),this[_0x21c336(0x234)]=new _0x501a4b(_0x581d7d,_0x4258d3),this[_0x21c336(0x234)][_0x21c336(0x207)](_0x21c336(0x226))['to'](this),this[_0x21c336(0x234)][_0x21c336(0x207)](_0x21c336(0x219))['to'](this),this[_0x21c336(0x212)]=this[_0x21c336(0x1ff)](),this[_0x21c336(0x212)][_0x21c336(0x207)](_0x21c336(0x21f))['to'](this),this[_0x21c336(0x1ec)]=this[_0x21c336(0x227)](),this[_0x21c336(0x1f2)]=new _0x46ef73(),this[_0x21c336(0x23d)]=new _0xc319d5(),this[_0x21c336(0x217)]=this[_0x21c336(0x21a)]([this[_0x21c336(0x234)],this[_0x21c336(0x234)][_0x21c336(0x208)],this[_0x21c336(0x212)],this[_0x21c336(0x1ec)]]),this[_0x21c336(0x1eb)]=new _0x1512fe({'focusables':this[_0x21c336(0x217)],'focusTracker':this[_0x21c336(0x1f2)],'keystrokeHandler':this[_0x21c336(0x23d)],'actions':{'focusPrevious':_0x21c336(0x201),'focusNext':_0x21c336(0x216)}}),this[_0x21c336(0x1eb)][_0x21c336(0x213)](this[_0x21c336(0x1ec)][_0x21c336(0x1eb)]),this[_0x21c336(0x1ec)][_0x21c336(0x223)][_0x21c336(0x20a)][_0x21c336(0x207)](_0x21c336(0x219))['to'](this,_0x21c336(0x21d));const _0x2415aa=this[_0x21c336(0x1f5)];this[_0x21c336(0x1f7)]({'tag':_0x21c336(0x22d),'attributes':{'class':['ck',_0x21c336(0x20b),_0x48faed],'tabindex':'-1'},'children':[{'tag':_0x21c336(0x22d),'attributes':{'class':['ck',_0x21c336(0x221)]},'children':[{'tag':_0x21c336(0x22d),'attributes':{'class':[_0x2415aa['if'](_0x21c336(0x225),_0x21c336(0x23e),_0xbe5062=>!_0xbe5062)]},'children':[this[_0x21c336(0x205)]]},this[_0x21c336(0x234)],this[_0x21c336(0x212)],this[_0x21c336(0x1ec)]]}]});}[_0x4f5468(0x1f3)](){const _0x513854=_0x4f5468;super[_0x513854(0x1f3)](),this[_0x513854(0x1f2)][_0x513854(0x1f9)](this[_0x513854(0x234)][_0x513854(0x22b)]),this[_0x513854(0x1f2)][_0x513854(0x1f9)](this[_0x513854(0x234)][_0x513854(0x208)][_0x513854(0x22b)]),this[_0x513854(0x1f2)][_0x513854(0x1f9)](this[_0x513854(0x212)][_0x513854(0x22b)]),this[_0x513854(0x1f2)][_0x513854(0x1f9)](this[_0x513854(0x1ec)][_0x513854(0x22b)]),this[_0x513854(0x23d)][_0x513854(0x22f)](this[_0x513854(0x22b)]);}[_0x4f5468(0x21c)](_0x33261a=0x1){const _0x493b54=_0x4f5468;-0x1===_0x33261a?this[_0x493b54(0x1eb)][_0x493b54(0x1ea)]():this[_0x493b54(0x1eb)][_0x493b54(0x211)]();}[_0x4f5468(0x232)](){const _0x1a5b8d=_0x4f5468;this[_0x1a5b8d(0x21d)]='',this[_0x1a5b8d(0x219)]='',this[_0x1a5b8d(0x225)]=!0x1,this[_0x1a5b8d(0x1ec)][_0x1a5b8d(0x232)](),this[_0x1a5b8d(0x234)][_0x1a5b8d(0x222)]=!0x1,this[_0x1a5b8d(0x212)][_0x1a5b8d(0x222)]=!0x1;}[_0x4f5468(0x227)](){const _0x533ad4=_0x4f5468,_0x19b673=this[_0x533ad4(0x235)],_0x1c1c1d=new _0xa1e850(_0x19b673,{'queryView':{'label':_0x48ebb6(_0x19b673,_0x533ad4(0x200)),'creator':_0x4ee9a4,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x48ebb6(_0x19b673,_0x533ad4(0x236)),'secondary':_0x48ebb6(_0x19b673,_0x533ad4(0x20c))}}},'filteredView':this[_0x533ad4(0x1fa)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x1c1c1d[_0x533ad4(0x207)](_0x533ad4(0x209))['to'](this,_0x533ad4(0x209),this,_0x533ad4(0x226),(_0xa5ddcc,_0x789922)=>_0xa5ddcc&&!_0x789922),this[_0x533ad4(0x22f)](_0x1c1c1d,_0x533ad4(0x230),(_0x46ba04,_0x4b5a47)=>{const _0x34fe12=_0x533ad4;this[_0x34fe12(0x21d)]=_0x4b5a47;const _0x516b41=_0x4eb046(_0x4b5a47);this[_0x34fe12(0x206)](_0x34fe12(0x229),_0x516b41),_0x4b5a47[_0x34fe12(0x1f0)]()&&this[_0x34fe12(0x21b)][_0x34fe12(0x1f9)]({'prompt':_0x516b41},0x0);},{'priority':_0x533ad4(0x1fb)}),_0x1c1c1d;}[_0x4f5468(0x1fa)](){const _0x3c30d0=_0x4f5468,_0x2d90a6=new _0x50f7b2(this[_0x3c30d0(0x235)]);return _0x2d90a6[_0x3c30d0(0x22a)][_0x3c30d0(0x20f)][_0x3c30d0(0x1fd)](this[_0x3c30d0(0x21b)])['as'](_0x3f2848),_0x2d90a6['on'](_0x3c30d0(0x1ee),()=>{const _0xe6f5f3=_0x3c30d0;this[_0xe6f5f3(0x21b)][_0xe6f5f3(0x1f1)](),this[_0xe6f5f3(0x1ec)][_0xe6f5f3(0x21e)](''),this[_0xe6f5f3(0x1ec)][_0xe6f5f3(0x21c)]();}),_0x2d90a6;}[_0x4f5468(0x1ff)](){const _0x198ecc=_0x4f5468,_0x2767f9=new _0xe7a25e(this[_0x198ecc(0x235)]);return _0x2767f9[_0x198ecc(0x20d)][_0x198ecc(0x207)](_0x198ecc(0x209))['to'](this,_0x198ecc(0x209),this,_0x198ecc(0x226),this,_0x198ecc(0x219),(_0x4ed597,_0x1a4b2b,_0x2be9f1)=>_0x4ed597&&!_0x1a4b2b&&!!_0x2be9f1),_0x2767f9[_0x198ecc(0x20d)][_0x198ecc(0x23a)](_0x198ecc(0x1e8))['to'](this,_0x198ecc(0x224)),_0x2767f9[_0x198ecc(0x23b)][_0x198ecc(0x207)](_0x198ecc(0x209))['to'](this,_0x198ecc(0x209),this,_0x198ecc(0x226),this,_0x198ecc(0x219),(_0x31cc12,_0x4297e3,_0x3cc6d5)=>_0x31cc12&&!_0x4297e3&&!!_0x3cc6d5),_0x2767f9[_0x198ecc(0x23b)][_0x198ecc(0x23a)](_0x198ecc(0x1e8))['to'](this,_0x198ecc(0x1f6)),_0x2767f9[_0x198ecc(0x238)][_0x198ecc(0x207)](_0x198ecc(0x209))['to'](this,_0x198ecc(0x209),this,_0x198ecc(0x226),(_0x53806b,_0x542993)=>_0x53806b&&!_0x542993),_0x2767f9[_0x198ecc(0x238)][_0x198ecc(0x23a)](_0x198ecc(0x1e8))['to'](this,_0x198ecc(0x22e)),_0x2767f9[_0x198ecc(0x20e)][_0x198ecc(0x207)](_0x198ecc(0x209))['to'](this,_0x198ecc(0x226)),_0x2767f9[_0x198ecc(0x20e)][_0x198ecc(0x23a)](_0x198ecc(0x1e8))['to'](this,_0x198ecc(0x215)),_0x2767f9;}[_0x4f5468(0x1fe)](){const _0xa5b045=_0x4f5468;this[_0xa5b045(0x219)]='',this[_0xa5b045(0x225)]=!0x1,this[_0xa5b045(0x226)]=!0x0,this[_0xa5b045(0x234)][_0xa5b045(0x222)]=!0x0,this[_0xa5b045(0x212)][_0xa5b045(0x222)]=!0x0,this[_0xa5b045(0x234)][_0xa5b045(0x21c)]();}[_0x4f5468(0x1ed)](){const _0x4f531c=_0x4f5468,_0x1ea323=this[_0x4f531c(0x235)];this[_0x4f531c(0x226)]=!0x1,this[_0x4f531c(0x21d)]='',this[_0x4f531c(0x1ec)][_0x4f531c(0x232)](),this[_0x4f531c(0x219)]&&(this[_0x4f531c(0x1ec)][_0x4f531c(0x223)][_0x4f531c(0x202)]=_0x48ebb6(_0x1ea323,_0x4f531c(0x1ef)));}[_0x4f5468(0x23c)](_0x27073e){const _0xcf2357=_0x4f5468,_0x3f5238=this[_0xcf2357(0x235)];this[_0xcf2357(0x1ed)](),this[_0xcf2357(0x225)]=!0x0,this[_0xcf2357(0x205)][_0xcf2357(0x1f8)]=_0x27073e||_0x48ebb6(_0x3f5238,_0xcf2357(0x220)),this[_0xcf2357(0x219)]||(this[_0xcf2357(0x234)][_0xcf2357(0x222)]=!0x1);}}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/ui/aihistorylistitemview
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x50583d,_0x5e2e7c){const _0x1192b9=_0x52c3,_0x112fc1=_0x50583d();while(!![]){try{const _0x2e65cf=-parseInt(_0x1192b9(0x141))/0x1+parseInt(_0x1192b9(0x13f))/0x2+-parseInt(_0x1192b9(0x13e))/0x3*(parseInt(_0x1192b9(0x13d))/0x4)+-parseInt(_0x1192b9(0x147))/0x5*(parseInt(_0x1192b9(0x139))/0x6)+parseInt(_0x1192b9(0x140))/0x7*(parseInt(_0x1192b9(0x138))/0x8)+-parseInt(_0x1192b9(0x137))/0x9*(parseInt(_0x1192b9(0x136))/0xa)+parseInt(_0x1192b9(0x145))/0xb;if(_0x2e65cf===_0x5e2e7c)break;else _0x112fc1['push'](_0x112fc1['shift']());}catch(_0xf8effe){_0x112fc1['push'](_0x112fc1['shift']());}}}(_0x23a3,0x707a0));import{ListItemView as _0xb143e4,ButtonView as _0x27654e,ButtonLabelView as _0x7285ea}from'ckeditor5/src/ui.js';import{unescape as _0x440982}from'lodash-es';function _0x23a3(){const _0x61e5a1=['150324ghWLeY','set','prompt','fire','1545724rvHtky','3JtDwjb','1165008zSlZya','7qxiGaU','463775HdxsSw','add','children','locale','8485917rSTyev','execute','15SfwAXr','160rQRQHt','371367VANdbf','5538632eMRCIl'];_0x23a3=function(){return _0x61e5a1;};return _0x23a3();}function _0x52c3(_0x826358,_0x595427){const _0x23a32f=_0x23a3();return _0x52c3=function(_0x52c333,_0xa70f2){_0x52c333=_0x52c333-0x136;let _0x5b9589=_0x23a32f[_0x52c333];return _0x5b9589;},_0x52c3(_0x826358,_0x595427);}export default class hs extends _0xb143e4{constructor(_0x12841b){const _0x269b14=_0x52c3;super();const _0x575f87=new _0x7285ea(),_0x412259=new _0x27654e(this[_0x269b14(0x144)],_0x575f87);this[_0x269b14(0x143)][_0x269b14(0x142)](_0x412259),_0x412259[_0x269b14(0x13a)]({'label':_0x12841b[_0x269b14(0x13b)],'withText':!0x0}),_0x412259['on'](_0x269b14(0x146),()=>{const _0x206463=_0x269b14;this[_0x206463(0x13c)](_0x206463(0x146),{'value':_0x440982(_0x12841b[_0x206463(0x13b)])});});}}
23
+ (function(_0x2f57b5,_0x34a828){const _0x1c6e92=_0x553c,_0x54ec30=_0x2f57b5();while(!![]){try{const _0x33b44d=-parseInt(_0x1c6e92(0x117))/0x1+-parseInt(_0x1c6e92(0x114))/0x2+parseInt(_0x1c6e92(0x11d))/0x3*(-parseInt(_0x1c6e92(0x11c))/0x4)+parseInt(_0x1c6e92(0x111))/0x5+-parseInt(_0x1c6e92(0x118))/0x6*(-parseInt(_0x1c6e92(0x113))/0x7)+parseInt(_0x1c6e92(0x11e))/0x8*(parseInt(_0x1c6e92(0x11b))/0x9)+-parseInt(_0x1c6e92(0x11a))/0xa;if(_0x33b44d===_0x34a828)break;else _0x54ec30['push'](_0x54ec30['shift']());}catch(_0x456664){_0x54ec30['push'](_0x54ec30['shift']());}}}(_0x1e26,0x363fb));import{ListItemView as _0x65065b,ButtonView as _0xad43e8,ButtonLabelView as _0x2ec9e5}from'ckeditor5/src/ui.js';import{unescape as _0x806cd9}from'lodash-es';function _0x553c(_0x246174,_0x1b090c){const _0x1e2681=_0x1e26();return _0x553c=function(_0x553c7b,_0x1060d7){_0x553c7b=_0x553c7b-0x10e;let _0x4ade0d=_0x1e2681[_0x553c7b];return _0x4ade0d;},_0x553c(_0x246174,_0x1b090c);}function _0x1e26(){const _0x30c263=['18OyuvcG','add','2276570xKmAZi','501948lhckgR','12660olhfsj','69mnWODR','40oaKOYH','execute','locale','prompt','786385QhpvVn','set','438487eRCrfd','190554NCIHlF','children','fire','6128bTfSEA'];_0x1e26=function(){return _0x30c263;};return _0x1e26();}export default class hs extends _0x65065b{constructor(_0x24f3e3){const _0x5bb2da=_0x553c;super();const _0x21b1f9=new _0x2ec9e5(),_0x308988=new _0xad43e8(this[_0x5bb2da(0x10f)],_0x21b1f9);this[_0x5bb2da(0x115)][_0x5bb2da(0x119)](_0x308988),_0x308988[_0x5bb2da(0x112)]({'label':_0x24f3e3[_0x5bb2da(0x110)],'withText':!0x0}),_0x308988['on'](_0x5bb2da(0x10e),()=>{const _0x1b21e8=_0x5bb2da;this[_0x1b21e8(0x116)](_0x1b21e8(0x10e),{'value':_0x806cd9(_0x24f3e3[_0x1b21e8(0x110)])});});}}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/ui/aihistorylistview
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x21a7(_0x1ad4a3,_0x5a22fd){const _0x56a54f=_0x56a5();return _0x21a7=function(_0x21a7fd,_0x43e331){_0x21a7fd=_0x21a7fd-0xd1;let _0x4ec797=_0x56a54f[_0x21a7fd];return _0x4ec797;},_0x21a7(_0x1ad4a3,_0x5a22fd);}function _0x56a5(){const _0x26b679=['5zKAeHX','21544SwYvSt','clearHistoryButton','add','historyGroupView','Prompt\x20history','label','Clear','1239lcNnYF','filter','549IMTOXp','12708GPQifP','_createClearHistoryButton','2xcgXFs','2541030yzelVX','54vrLelX','locale','clearHistory','items','fire','9875690ucHqKU','87924Jictbb','1580538EADFmE','3523MqzeBn','set','delegate','length','execute','children','1808882DCcZtj'];_0x56a5=function(){return _0x26b679;};return _0x56a5();}const _0x502b74=_0x21a7;(function(_0x1f521a,_0x279196){const _0xd0ec22=_0x21a7,_0x53e921=_0x1f521a();while(!![]){try{const _0x4b2f64=-parseInt(_0xd0ec22(0xd4))/0x1*(-parseInt(_0xd0ec22(0xe2))/0x2)+-parseInt(_0xd0ec22(0xdf))/0x3*(parseInt(_0xd0ec22(0xe0))/0x4)+parseInt(_0xd0ec22(0xd5))/0x5*(-parseInt(_0xd0ec22(0xeb))/0x6)+-parseInt(_0xd0ec22(0xdd))/0x7*(parseInt(_0xd0ec22(0xd6))/0x8)+parseInt(_0xd0ec22(0xe4))/0x9*(parseInt(_0xd0ec22(0xe3))/0xa)+parseInt(_0xd0ec22(0xe9))/0xb+parseInt(_0xd0ec22(0xea))/0xc*(-parseInt(_0xd0ec22(0xec))/0xd);if(_0x4b2f64===_0x279196)break;else _0x53e921['push'](_0x53e921['shift']());}catch(_0x42154b){_0x53e921['push'](_0x53e921['shift']());}}}(_0x56a5,0xe1a26));import{ListView as _0x428171,ListItemGroupView as _0x515dcc,ButtonView as _0x108a5f}from'ckeditor5/src/ui.js';import{getTranslation as _0x26fc77}from'../../utils/common-translations.js';export default class rs extends _0x428171{constructor(_0x3ce480){const _0x53ef01=_0x21a7;super(_0x3ce480),this[_0x53ef01(0xd7)]=this[_0x53ef01(0xe1)](),this[_0x53ef01(0xd9)]=new _0x515dcc(),this[_0x53ef01(0xd9)][_0x53ef01(0xd3)][_0x53ef01(0xd8)](this[_0x53ef01(0xd7)],0x1),this[_0x53ef01(0xd9)][_0x53ef01(0xdb)]=_0x26fc77(_0x3ce480,_0x53ef01(0xda)),this[_0x53ef01(0xd9)][_0x53ef01(0xe7)][_0x53ef01(0xee)](_0x53ef01(0xd2))['to'](this),this[_0x53ef01(0xe7)][_0x53ef01(0xd8)](this[_0x53ef01(0xd9)]);}[_0x502b74(0xde)](){const _0x1c95d0=_0x502b74;let _0x18bb14=0x0;for(const _0x547da9 of this[_0x1c95d0(0xe7)])_0x18bb14+=_0x547da9[_0x1c95d0(0xe7)][_0x1c95d0(0xd1)];return{'resultsCount':_0x18bb14,'totalItemsCount':_0x18bb14};}[_0x502b74(0xe1)](){const _0x103d98=_0x502b74,_0x4a52d7=this[_0x103d98(0xe5)],_0x36e703=new _0x108a5f(this[_0x103d98(0xe5)]);return _0x36e703[_0x103d98(0xed)]({'label':'('+_0x26fc77(_0x4a52d7,_0x103d98(0xdc))+')','withText':!0x0}),_0x36e703['on'](_0x103d98(0xd2),()=>this[_0x103d98(0xe8)](_0x103d98(0xe6))),_0x36e703;}}
23
+ const _0xd2765d=_0x1e1d;(function(_0x4f8b89,_0x21a8b3){const _0x23d692=_0x1e1d,_0x394d15=_0x4f8b89();while(!![]){try{const _0x32821f=-parseInt(_0x23d692(0xfa))/0x1+parseInt(_0x23d692(0xf8))/0x2+-parseInt(_0x23d692(0xe9))/0x3+parseInt(_0x23d692(0xea))/0x4+parseInt(_0x23d692(0xf3))/0x5*(parseInt(_0x23d692(0xfc))/0x6)+-parseInt(_0x23d692(0x101))/0x7*(-parseInt(_0x23d692(0xf4))/0x8)+-parseInt(_0x23d692(0xfb))/0x9*(parseInt(_0x23d692(0xf1))/0xa);if(_0x32821f===_0x21a8b3)break;else _0x394d15['push'](_0x394d15['shift']());}catch(_0x1d0cde){_0x394d15['push'](_0x394d15['shift']());}}}(_0x326e,0xbd852));function _0x326e(){const _0x11e67d=['1843194jLNqeg','children','Prompt\x20history','locale','filter','105308LDbASR','clearHistoryButton','fire','3183714vyWHvE','2808776nHcZRJ','historyGroupView','delegate','label','items','add','length','12170OTYuly','_createClearHistoryButton','15aJTmfh','8KcBTZB','execute','Clear','set','2920198nSLSTM','clearHistory','1043579oBMIzG','1611pzPWCF'];_0x326e=function(){return _0x11e67d;};return _0x326e();}function _0x1e1d(_0x111891,_0x42c4f7){const _0x326eca=_0x326e();return _0x1e1d=function(_0x1e1dbe,_0x4bde34){_0x1e1dbe=_0x1e1dbe-0xe7;let _0x59e397=_0x326eca[_0x1e1dbe];return _0x59e397;},_0x1e1d(_0x111891,_0x42c4f7);}import{ListView as _0x45c426,ListItemGroupView as _0x2fdf37,ButtonView as _0x3438b2}from'ckeditor5/src/ui.js';import{getTranslation as _0x1c2b7c}from'../../utils/common-translations.js';export default class rs extends _0x45c426{constructor(_0xfdab9f){const _0x442c2d=_0x1e1d;super(_0xfdab9f),this[_0x442c2d(0xe7)]=this[_0x442c2d(0xf2)](),this[_0x442c2d(0xeb)]=new _0x2fdf37(),this[_0x442c2d(0xeb)][_0x442c2d(0xfd)][_0x442c2d(0xef)](this[_0x442c2d(0xe7)],0x1),this[_0x442c2d(0xeb)][_0x442c2d(0xed)]=_0x1c2b7c(_0xfdab9f,_0x442c2d(0xfe)),this[_0x442c2d(0xeb)][_0x442c2d(0xee)][_0x442c2d(0xec)](_0x442c2d(0xf5))['to'](this),this[_0x442c2d(0xee)][_0x442c2d(0xef)](this[_0x442c2d(0xeb)]);}[_0xd2765d(0x100)](){const _0x58f0c5=_0xd2765d;let _0x515c1f=0x0;for(const _0x24d184 of this[_0x58f0c5(0xee)])_0x515c1f+=_0x24d184[_0x58f0c5(0xee)][_0x58f0c5(0xf0)];return{'resultsCount':_0x515c1f,'totalItemsCount':_0x515c1f};}[_0xd2765d(0xf2)](){const _0x165d2e=_0xd2765d,_0x4068fc=this[_0x165d2e(0xff)],_0x35c22f=new _0x3438b2(this[_0x165d2e(0xff)]);return _0x35c22f[_0x165d2e(0xf7)]({'label':'('+_0x1c2b7c(_0x4068fc,_0x165d2e(0xf6))+')','withText':!0x0}),_0x35c22f['on'](_0x165d2e(0xf5),()=>this[_0x165d2e(0xe8)](_0x165d2e(0xf9))),_0x35c22f;}}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import { Collection } from 'ckeditor5/src/utils.js';
6
6
  /**
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1729b1=_0x22a2;(function(_0x31232f,_0x42bcdc){const _0x4d422f=_0x22a2,_0x93f3cf=_0x31232f();while(!![]){try{const _0x5ec84b=-parseInt(_0x4d422f(0x100))/0x1*(parseInt(_0x4d422f(0x10a))/0x2)+parseInt(_0x4d422f(0x108))/0x3*(-parseInt(_0x4d422f(0xf5))/0x4)+-parseInt(_0x4d422f(0x101))/0x5*(parseInt(_0x4d422f(0xfe))/0x6)+parseInt(_0x4d422f(0xfb))/0x7+parseInt(_0x4d422f(0xf4))/0x8*(parseInt(_0x4d422f(0x10e))/0x9)+parseInt(_0x4d422f(0x105))/0xa*(-parseInt(_0x4d422f(0x107))/0xb)+-parseInt(_0x4d422f(0x104))/0xc;if(_0x5ec84b===_0x42bcdc)break;else _0x93f3cf['push'](_0x93f3cf['shift']());}catch(_0x1d2dad){_0x93f3cf['push'](_0x93f3cf['shift']());}}}(_0x1c12,0x754c0));function _0x22a2(_0x21b3a9,_0x3f9dd8){const _0x1c120b=_0x1c12();return _0x22a2=function(_0x22a218,_0x2c8d4e){_0x22a218=_0x22a218-0xf4;let _0x1e0c5a=_0x1c120b[_0x22a218];return _0x1e0c5a;},_0x22a2(_0x21b3a9,_0x3f9dd8);}import{Collection as _0x5a828c}from'ckeditor5/src/utils.js';const cs=_0x1729b1(0x10b);export default class os extends _0x5a828c{constructor(){const _0x1f3892=_0x1729b1;super(),this[_0x1f3892(0xfd)](),this['on'](_0x1f3892(0x103),(_0x2c0fc8,_0x21bcc4)=>{const _0x16c97d=_0x1f3892,_0x3b96a9=Ss(_0x21bcc4[_0x16c97d(0xf8)]);for(const _0x281dd1 of this)if(_0x281dd1!=_0x21bcc4&&Ss(_0x281dd1[_0x16c97d(0xf8)])===_0x3b96a9){this[_0x16c97d(0x109)](_0x281dd1);break;}this[_0x16c97d(0x10f)]>0x14&&this[_0x16c97d(0x109)](this[_0x16c97d(0xff)]),this[_0x16c97d(0x10c)]();}),this['on'](_0x1f3892(0x109),()=>{const _0x45c7ed=_0x1f3892;this[_0x45c7ed(0x10c)]();});}[_0x1729b1(0xfd)](){const _0x364ece=_0x1729b1,_0x4b3324=sessionStorage[_0x364ece(0x106)](cs)||'[]';this[_0x364ece(0x102)](JSON[_0x364ece(0xf9)](_0x4b3324));}[_0x1729b1(0x10c)](){const _0x432d3a=_0x1729b1;sessionStorage[_0x432d3a(0xf6)](cs,JSON[_0x432d3a(0xfa)](this[_0x432d3a(0xf7)](_0x40efa1=>_0x40efa1)));}}function Ss(_0x409fef){const _0x43f07e=_0x1729b1;return _0x409fef[_0x43f07e(0x10d)]()[_0x43f07e(0xfc)]();}function _0x1c12(){const _0x17a3e6=['32RPkKns','86100dIdBnj','setItem','map','prompt','parse','stringify','5663098kJEGEf','trim','_loadFromSessionStorage','76404tkzBut','last','1ULfUDR','95MRETnP','addMany','add','2223408LdkQPn','3108790YBRLuY','getItem','11kxprlD','15vMnFpl','remove','725600hGRjSH','CKEditor/AIFormView/PromptHistory','_saveToSessionStorage','toLowerCase','1979928GsLYPr','length'];_0x1c12=function(){return _0x17a3e6;};return _0x1c12();}
23
+ const _0x4f5e0b=_0x5bfb;(function(_0x1cb687,_0x2985dd){const _0x481935=_0x5bfb,_0x5338d1=_0x1cb687();while(!![]){try{const _0x3b9ba2=-parseInt(_0x481935(0x7c))/0x1+-parseInt(_0x481935(0x8d))/0x2+parseInt(_0x481935(0x87))/0x3+parseInt(_0x481935(0x82))/0x4+parseInt(_0x481935(0x80))/0x5+parseInt(_0x481935(0x8a))/0x6*(parseInt(_0x481935(0x83))/0x7)+-parseInt(_0x481935(0x7d))/0x8*(-parseInt(_0x481935(0x88))/0x9);if(_0x3b9ba2===_0x2985dd)break;else _0x5338d1['push'](_0x5338d1['shift']());}catch(_0x4b0c6a){_0x5338d1['push'](_0x5338d1['shift']());}}}(_0x2f96,0x44588));import{Collection as _0x48da2d}from'ckeditor5/src/utils.js';const cs=_0x4f5e0b(0x7a);function _0x5bfb(_0x4ca688,_0x58abe2){const _0x2f968e=_0x2f96();return _0x5bfb=function(_0x5bfb2d,_0x19ef8b){_0x5bfb2d=_0x5bfb2d-0x78;let _0x3104d7=_0x2f968e[_0x5bfb2d];return _0x3104d7;},_0x5bfb(_0x4ca688,_0x58abe2);}export default class os extends _0x48da2d{constructor(){const _0x55c81f=_0x4f5e0b;super(),this[_0x55c81f(0x81)](),this['on'](_0x55c81f(0x8c),(_0x12a05,_0xdc9c92)=>{const _0x1f83f4=_0x55c81f,_0xe20b9b=Ss(_0xdc9c92[_0x1f83f4(0x86)]);for(const _0x6bda2b of this)if(_0x6bda2b!=_0xdc9c92&&Ss(_0x6bda2b[_0x1f83f4(0x86)])===_0xe20b9b){this[_0x1f83f4(0x8e)](_0x6bda2b);break;}this[_0x1f83f4(0x79)]>0x14&&this[_0x1f83f4(0x8e)](this[_0x1f83f4(0x7e)]),this[_0x1f83f4(0x78)]();}),this['on'](_0x55c81f(0x8e),()=>{const _0x2ae9df=_0x55c81f;this[_0x2ae9df(0x78)]();});}[_0x4f5e0b(0x81)](){const _0x3f1ddf=_0x4f5e0b,_0x246782=sessionStorage[_0x3f1ddf(0x7f)](cs)||'[]';this[_0x3f1ddf(0x89)](JSON[_0x3f1ddf(0x85)](_0x246782));}[_0x4f5e0b(0x78)](){const _0x36483d=_0x4f5e0b;sessionStorage[_0x36483d(0x8f)](cs,JSON[_0x36483d(0x7b)](this[_0x36483d(0x8b)](_0x5c0a6a=>_0x5c0a6a)));}}function _0x2f96(){const _0x11e8a8=['777594MgsqFT','12375ByThQC','addMany','233250nwxnFH','map','add','654316PRtyVg','remove','setItem','toLowerCase','_saveToSessionStorage','length','CKEditor/AIFormView/PromptHistory','stringify','543084JfqUhe','1864iQHzCB','last','getItem','749690TvdpYS','_loadFromSessionStorage','1060700FjffAJ','28cYkANf','trim','parse','prompt'];_0x2f96=function(){return _0x11e8a8;};return _0x2f96();}function Ss(_0x18d8e3){const _0x3bf472=_0x4f5e0b;return _0x18d8e3[_0x3bf472(0x90)]()[_0x3bf472(0x84)]();}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/ui/showaiassistantcommand
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x311a(){const _0x2a7cad=['2020iefTbB','4756167qTQvlr','7612mxpEzQ','isCollapsed','document','plugins','10260XbrfmW','name','isEmpty','isEnabled','enabledCommandsIds','selection','getRanges','4223865MJTVDE','element','change:_hasContext','8007168KWAeos','hasContent','values','execute','7vdkQMn','model','custom','set','requiresContent','2850rwzyPZ','155410pjaAAB','includes','config','getFirstRange','from','get','10bcDmuL','1409586htvhRR','_hasContext','change:isEnabled','refresh','showUI','ai.aiAssistant.disabledElements','length','_commandDefinitions','getItems','editor','getSelectedBlocks','add'];_0x311a=function(){return _0x2a7cad;};return _0x311a();}const _0x458b76=_0x3ddc;(function(_0x12d624,_0x47c0bd){const _0x244fe3=_0x3ddc,_0x2be477=_0x12d624();while(!![]){try{const _0x43e362=parseInt(_0x244fe3(0x134))/0x1*(-parseInt(_0x244fe3(0x15b))/0x2)+parseInt(_0x244fe3(0x15a))/0x3*(-parseInt(_0x244fe3(0x141))/0x4)+parseInt(_0x244fe3(0x14e))/0x5+-parseInt(_0x244fe3(0x135))/0x6*(parseInt(_0x244fe3(0x155))/0x7)+parseInt(_0x244fe3(0x151))/0x8+-parseInt(_0x244fe3(0x142))/0x9+-parseInt(_0x244fe3(0x147))/0xa*(-parseInt(_0x244fe3(0x143))/0xb);if(_0x43e362===_0x47c0bd)break;else _0x2be477['push'](_0x2be477['shift']());}catch(_0x264a49){_0x2be477['push'](_0x2be477['shift']());}}}(_0x311a,0x82bab));import{Command as _0x29753}from'ckeditor5/src/core.js';import _0x13a81d from'../aiassistantui.js';export default class y extends _0x29753{constructor(_0x62ac5a,_0x2d0142){const _0x3058d3=_0x3ddc;super(_0x62ac5a),this[_0x3058d3(0x13c)]=_0x2d0142,this[_0x3058d3(0x158)](_0x3058d3(0x14b),[]),this['on'](_0x3058d3(0x150),(_0x56a973,_0x568453,_0x2c0ebe)=>{const _0x40f20e=_0x3058d3;this[_0x40f20e(0x14a)]&&(this[_0x40f20e(0x14b)]=G(this[_0x40f20e(0x13c)],_0x2c0ebe));}),this[_0x3058d3(0x158)](_0x3058d3(0x136),!0x1),this['on'](_0x3058d3(0x137),(_0x52939a,_0x45a3ae,_0x4eb11f)=>{const _0x2c3c0e=_0x3058d3;this[_0x2c3c0e(0x14b)]=_0x4eb11f?G(this[_0x2c3c0e(0x13c)],this[_0x2c3c0e(0x136)]):[];});}[_0x458b76(0x138)](){const _0xa539b0=_0x458b76,_0x3f414d=this[_0xa539b0(0x13e)][_0xa539b0(0x156)];this[_0xa539b0(0x136)]=function(_0x4b51c2){const _0x1770d1=_0xa539b0,_0x10a17a=_0x4b51c2[_0x1770d1(0x145)][_0x1770d1(0x14c)];return _0x10a17a[_0x1770d1(0x144)]?0x0!==[..._0x10a17a[_0x1770d1(0x13f)]()][_0x1770d1(0x13b)]&&![..._0x10a17a[_0x1770d1(0x13f)]()][0x0][_0x1770d1(0x149)]:!!_0x4b51c2[_0x1770d1(0x152)](_0x10a17a[_0x1770d1(0x131)]());}(_0x3f414d);const _0x5399ee=_0x3f414d[_0xa539b0(0x145)][_0xa539b0(0x14c)],_0x144178=this[_0xa539b0(0x13e)][_0xa539b0(0x130)][_0xa539b0(0x133)](_0xa539b0(0x13a));for(const _0xd5e028 of _0x5399ee[_0xa539b0(0x14d)]())for(const _0x4a94f0 of _0xd5e028[_0xa539b0(0x13d)]())if(_0x4a94f0['is'](_0xa539b0(0x14f))&&_0x144178[_0xa539b0(0x15c)](_0x4a94f0[_0xa539b0(0x148)]))return void(this[_0xa539b0(0x14a)]=!0x1);this[_0xa539b0(0x14a)]=!0x0;}[_0x458b76(0x154)](_0xdb3687='',_0x3f339e='',_0x5e49cf=_0x458b76(0x157)){const _0x483313=_0x458b76;this[_0x483313(0x13e)][_0x483313(0x146)][_0x483313(0x133)](_0x13a81d)[_0x483313(0x139)](_0xdb3687,_0x3f339e,_0x5e49cf);}}function _0x3ddc(_0x127f4e,_0x42a2d4){const _0x311a83=_0x311a();return _0x3ddc=function(_0x3ddc64,_0x12dd56){_0x3ddc64=_0x3ddc64-0x130;let _0x3fd49e=_0x311a83[_0x3ddc64];return _0x3fd49e;},_0x3ddc(_0x127f4e,_0x42a2d4);}function G(_0x184d9e,_0x4ed7dc){const _0x2eca95=_0x458b76,_0x28d799=new Set();for(const _0x35e07c of _0x184d9e[_0x2eca95(0x153)]())(_0x4ed7dc||!0x1===_0x35e07c[_0x2eca95(0x159)])&&_0x28d799[_0x2eca95(0x140)](_0x35e07c['id']);return Array[_0x2eca95(0x132)](_0x28d799);}
23
+ function _0x6a3f(){const _0x592235=['180lFToEC','_hasContext','name','document','getRanges','length','includes','custom','set','enabledCommandsIds','values','execute','change:_hasContext','showUI','getItems','9thllGp','2542818UrRRsg','model','config','plugins','getSelectedBlocks','250996JUvaGN','isEnabled','refresh','447862mIkALR','isEmpty','from','requiresContent','add','7273090CgcKPL','ai.aiAssistant.disabledElements','8408TCCHSE','_commandDefinitions','get','hasContent','4591573CKzWfy','8yOKHgh','change:isEnabled','2016759KKimGj','isCollapsed','getFirstRange','element','selection','editor'];_0x6a3f=function(){return _0x592235;};return _0x6a3f();}const _0x55a405=_0x49e9;function _0x49e9(_0x56d205,_0x17c0c7){const _0x6a3f7f=_0x6a3f();return _0x49e9=function(_0x49e9c1,_0x3e99ac){_0x49e9c1=_0x49e9c1-0x17e;let _0x623daa=_0x6a3f7f[_0x49e9c1];return _0x623daa;},_0x49e9(_0x56d205,_0x17c0c7);}(function(_0x5bc975,_0x2e3cbf){const _0x43e601=_0x49e9,_0x382d8c=_0x5bc975();while(!![]){try{const _0x47665a=parseInt(_0x43e601(0x184))/0x1+parseInt(_0x43e601(0x181))/0x2+parseInt(_0x43e601(0x192))/0x3+parseInt(_0x43e601(0x18b))/0x4*(parseInt(_0x43e601(0x198))/0x5)+-parseInt(_0x43e601(0x1a8))/0x6+-parseInt(_0x43e601(0x18f))/0x7*(-parseInt(_0x43e601(0x190))/0x8)+-parseInt(_0x43e601(0x1a7))/0x9*(parseInt(_0x43e601(0x189))/0xa);if(_0x47665a===_0x2e3cbf)break;else _0x382d8c['push'](_0x382d8c['shift']());}catch(_0x3b93d2){_0x382d8c['push'](_0x382d8c['shift']());}}}(_0x6a3f,0xc9b00));import{Command as _0x12487b}from'ckeditor5/src/core.js';import _0x525420 from'../aiassistantui.js';export default class y extends _0x12487b{constructor(_0x55bda6,_0x1653e7){const _0x54c8e9=_0x49e9;super(_0x55bda6),this[_0x54c8e9(0x18c)]=_0x1653e7,this[_0x54c8e9(0x1a0)](_0x54c8e9(0x1a1),[]),this['on'](_0x54c8e9(0x1a4),(_0xb239bb,_0x7410a,_0x4ab420)=>{const _0x3d9833=_0x54c8e9;this[_0x3d9833(0x182)]&&(this[_0x3d9833(0x1a1)]=G(this[_0x3d9833(0x18c)],_0x4ab420));}),this[_0x54c8e9(0x1a0)](_0x54c8e9(0x199),!0x1),this['on'](_0x54c8e9(0x191),(_0x535cd1,_0xa7102c,_0x10cf48)=>{const _0x230ebd=_0x54c8e9;this[_0x230ebd(0x1a1)]=_0x10cf48?G(this[_0x230ebd(0x18c)],this[_0x230ebd(0x199)]):[];});}[_0x55a405(0x183)](){const _0x56143d=_0x55a405,_0x5a66b4=this[_0x56143d(0x197)][_0x56143d(0x1a9)];this[_0x56143d(0x199)]=function(_0x4b4b1a){const _0x518bf5=_0x56143d,_0x16e7f6=_0x4b4b1a[_0x518bf5(0x19b)][_0x518bf5(0x196)];return _0x16e7f6[_0x518bf5(0x193)]?0x0!==[..._0x16e7f6[_0x518bf5(0x180)]()][_0x518bf5(0x19d)]&&![..._0x16e7f6[_0x518bf5(0x180)]()][0x0][_0x518bf5(0x185)]:!!_0x4b4b1a[_0x518bf5(0x18e)](_0x16e7f6[_0x518bf5(0x194)]());}(_0x5a66b4);const _0xf9de85=_0x5a66b4[_0x56143d(0x19b)][_0x56143d(0x196)],_0x27e0e9=this[_0x56143d(0x197)][_0x56143d(0x17e)][_0x56143d(0x18d)](_0x56143d(0x18a));for(const _0x5cbc34 of _0xf9de85[_0x56143d(0x19c)]())for(const _0x27aece of _0x5cbc34[_0x56143d(0x1a6)]())if(_0x27aece['is'](_0x56143d(0x195))&&_0x27e0e9[_0x56143d(0x19e)](_0x27aece[_0x56143d(0x19a)]))return void(this[_0x56143d(0x182)]=!0x1);this[_0x56143d(0x182)]=!0x0;}[_0x55a405(0x1a3)](_0x5c43e6='',_0x1606a7='',_0x559b11=_0x55a405(0x19f)){const _0x191e11=_0x55a405;this[_0x191e11(0x197)][_0x191e11(0x17f)][_0x191e11(0x18d)](_0x525420)[_0x191e11(0x1a5)](_0x5c43e6,_0x1606a7,_0x559b11);}}function G(_0x3a0ce5,_0x4d16e9){const _0x45428a=_0x55a405,_0x2de3fd=new Set();for(const _0x11f33c of _0x3a0ce5[_0x45428a(0x1a2)]())(_0x4d16e9||!0x1===_0x11f33c[_0x45428a(0x187)])&&_0x2de3fd[_0x45428a(0x188)](_0x11f33c['id']);return Array[_0x45428a(0x186)](_0x2de3fd);}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/utils/common-translations
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x57f10d,_0xf180e3,_0x3e8f5a){const t=_0x57f10d['t'];switch(_0xf180e3){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x3e8f5a);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x3e8f5a);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x3e8f5a);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0xf180e3;}}
23
+ export function getTranslation(_0x3ce17f,_0x12f306,_0x24ec0d){const t=_0x3ce17f['t'];switch(_0x12f306){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x24ec0d);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x24ec0d);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x24ec0d);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x12f306;}}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/utils/normalizecommandsconfig