@ckeditor/ckeditor5-style 43.2.0-alpha.7 → 43.3.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 (246) hide show
  1. package/build/style.js +1 -1
  2. package/build/translations/af.js +1 -0
  3. package/build/translations/ast.js +1 -0
  4. package/build/translations/az.js +1 -0
  5. package/build/translations/bs.js +1 -0
  6. package/build/translations/de-ch.js +1 -0
  7. package/build/translations/en-gb.js +1 -0
  8. package/build/translations/eo.js +1 -0
  9. package/build/translations/es-co.js +1 -0
  10. package/build/translations/eu.js +1 -0
  11. package/build/translations/fa.js +1 -0
  12. package/build/translations/gu.js +1 -0
  13. package/build/translations/hy.js +1 -0
  14. package/build/translations/jv.js +1 -0
  15. package/build/translations/kk.js +1 -0
  16. package/build/translations/km.js +1 -0
  17. package/build/translations/kn.js +1 -0
  18. package/build/translations/ku.js +1 -0
  19. package/build/translations/nb.js +1 -0
  20. package/build/translations/ne.js +1 -0
  21. package/build/translations/oc.js +1 -0
  22. package/build/translations/si.js +1 -0
  23. package/build/translations/sl.js +1 -0
  24. package/build/translations/sq.js +1 -0
  25. package/build/translations/ti.js +1 -0
  26. package/build/translations/tk.js +1 -0
  27. package/build/translations/tt.js +1 -0
  28. package/build/translations/uz.js +1 -0
  29. package/dist/index.css.map +1 -1
  30. package/dist/index.js +35 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/integrations/link.d.ts +4 -0
  33. package/dist/integrations/list.d.ts +4 -0
  34. package/dist/integrations/table.d.ts +4 -0
  35. package/dist/style.d.ts +4 -0
  36. package/dist/styleediting.d.ts +4 -0
  37. package/dist/styleui.d.ts +4 -0
  38. package/dist/styleutils.d.ts +4 -0
  39. package/dist/translations/af.d.ts +8 -0
  40. package/dist/translations/af.js +5 -0
  41. package/dist/translations/af.umd.js +11 -0
  42. package/dist/translations/ar.js +1 -1
  43. package/dist/translations/ar.umd.js +1 -1
  44. package/dist/translations/ast.d.ts +8 -0
  45. package/dist/translations/ast.js +5 -0
  46. package/dist/translations/ast.umd.js +11 -0
  47. package/dist/translations/az.d.ts +8 -0
  48. package/dist/translations/az.js +5 -0
  49. package/dist/translations/az.umd.js +11 -0
  50. package/dist/translations/bs.d.ts +8 -0
  51. package/dist/translations/bs.js +5 -0
  52. package/dist/translations/bs.umd.js +11 -0
  53. package/dist/translations/cs.js +1 -1
  54. package/dist/translations/cs.umd.js +1 -1
  55. package/dist/translations/de-ch.d.ts +8 -0
  56. package/dist/translations/de-ch.js +5 -0
  57. package/dist/translations/de-ch.umd.js +11 -0
  58. package/dist/translations/en-gb.d.ts +8 -0
  59. package/dist/translations/en-gb.js +5 -0
  60. package/dist/translations/en-gb.umd.js +11 -0
  61. package/dist/translations/en.js +1 -1
  62. package/dist/translations/en.umd.js +1 -1
  63. package/dist/translations/eo.d.ts +8 -0
  64. package/dist/translations/eo.js +5 -0
  65. package/dist/translations/eo.umd.js +11 -0
  66. package/dist/translations/es-co.d.ts +8 -0
  67. package/dist/translations/es-co.js +5 -0
  68. package/dist/translations/es-co.umd.js +11 -0
  69. package/dist/translations/es.js +1 -1
  70. package/dist/translations/es.umd.js +1 -1
  71. package/dist/translations/eu.d.ts +8 -0
  72. package/dist/translations/eu.js +5 -0
  73. package/dist/translations/eu.umd.js +11 -0
  74. package/dist/translations/fa.d.ts +8 -0
  75. package/dist/translations/fa.js +5 -0
  76. package/dist/translations/fa.umd.js +11 -0
  77. package/dist/translations/fr.js +1 -1
  78. package/dist/translations/fr.umd.js +1 -1
  79. package/dist/translations/gu.d.ts +8 -0
  80. package/dist/translations/gu.js +5 -0
  81. package/dist/translations/gu.umd.js +11 -0
  82. package/dist/translations/he.js +1 -1
  83. package/dist/translations/he.umd.js +1 -1
  84. package/dist/translations/hr.js +1 -1
  85. package/dist/translations/hr.umd.js +1 -1
  86. package/dist/translations/hy.d.ts +8 -0
  87. package/dist/translations/hy.js +5 -0
  88. package/dist/translations/hy.umd.js +11 -0
  89. package/dist/translations/it.js +1 -1
  90. package/dist/translations/it.umd.js +1 -1
  91. package/dist/translations/jv.d.ts +8 -0
  92. package/dist/translations/jv.js +5 -0
  93. package/dist/translations/jv.umd.js +11 -0
  94. package/dist/translations/kk.d.ts +8 -0
  95. package/dist/translations/kk.js +5 -0
  96. package/dist/translations/kk.umd.js +11 -0
  97. package/dist/translations/km.d.ts +8 -0
  98. package/dist/translations/km.js +5 -0
  99. package/dist/translations/km.umd.js +11 -0
  100. package/dist/translations/kn.d.ts +8 -0
  101. package/dist/translations/kn.js +5 -0
  102. package/dist/translations/kn.umd.js +11 -0
  103. package/dist/translations/ku.d.ts +8 -0
  104. package/dist/translations/ku.js +5 -0
  105. package/dist/translations/ku.umd.js +11 -0
  106. package/dist/translations/lt.js +1 -1
  107. package/dist/translations/lt.umd.js +1 -1
  108. package/dist/translations/lv.js +1 -1
  109. package/dist/translations/lv.umd.js +1 -1
  110. package/dist/translations/nb.d.ts +8 -0
  111. package/dist/translations/nb.js +5 -0
  112. package/dist/translations/nb.umd.js +11 -0
  113. package/dist/translations/ne.d.ts +8 -0
  114. package/dist/translations/ne.js +5 -0
  115. package/dist/translations/ne.umd.js +11 -0
  116. package/dist/translations/oc.d.ts +8 -0
  117. package/dist/translations/oc.js +5 -0
  118. package/dist/translations/oc.umd.js +11 -0
  119. package/dist/translations/pl.js +1 -1
  120. package/dist/translations/pl.umd.js +1 -1
  121. package/dist/translations/pt-br.js +1 -1
  122. package/dist/translations/pt-br.umd.js +1 -1
  123. package/dist/translations/pt.js +1 -1
  124. package/dist/translations/pt.umd.js +1 -1
  125. package/dist/translations/ro.js +1 -1
  126. package/dist/translations/ro.umd.js +1 -1
  127. package/dist/translations/ru.js +1 -1
  128. package/dist/translations/ru.umd.js +1 -1
  129. package/dist/translations/si.d.ts +8 -0
  130. package/dist/translations/si.js +5 -0
  131. package/dist/translations/si.umd.js +11 -0
  132. package/dist/translations/sk.js +1 -1
  133. package/dist/translations/sk.umd.js +1 -1
  134. package/dist/translations/sl.d.ts +8 -0
  135. package/dist/translations/sl.js +5 -0
  136. package/dist/translations/sl.umd.js +11 -0
  137. package/dist/translations/sq.d.ts +8 -0
  138. package/dist/translations/sq.js +5 -0
  139. package/dist/translations/sq.umd.js +11 -0
  140. package/dist/translations/sr-latn.js +1 -1
  141. package/dist/translations/sr-latn.umd.js +1 -1
  142. package/dist/translations/sr.js +1 -1
  143. package/dist/translations/sr.umd.js +1 -1
  144. package/dist/translations/ti.d.ts +8 -0
  145. package/dist/translations/ti.js +5 -0
  146. package/dist/translations/ti.umd.js +11 -0
  147. package/dist/translations/tk.d.ts +8 -0
  148. package/dist/translations/tk.js +5 -0
  149. package/dist/translations/tk.umd.js +11 -0
  150. package/dist/translations/tt.d.ts +8 -0
  151. package/dist/translations/tt.js +5 -0
  152. package/dist/translations/tt.umd.js +11 -0
  153. package/dist/translations/ug.js +1 -1
  154. package/dist/translations/ug.umd.js +1 -1
  155. package/dist/translations/uk.js +1 -1
  156. package/dist/translations/uk.umd.js +1 -1
  157. package/dist/translations/uz.d.ts +8 -0
  158. package/dist/translations/uz.js +5 -0
  159. package/dist/translations/uz.umd.js +11 -0
  160. package/lang/translations/af.po +28 -0
  161. package/lang/translations/ar.po +4 -10
  162. package/lang/translations/ast.po +28 -0
  163. package/lang/translations/az.po +28 -0
  164. package/lang/translations/bg.po +3 -9
  165. package/lang/translations/bn.po +3 -9
  166. package/lang/translations/bs.po +28 -0
  167. package/lang/translations/ca.po +3 -9
  168. package/lang/translations/cs.po +4 -10
  169. package/lang/translations/da.po +3 -9
  170. package/lang/translations/de-ch.po +28 -0
  171. package/lang/translations/de.po +3 -9
  172. package/lang/translations/el.po +3 -9
  173. package/lang/translations/en-au.po +3 -9
  174. package/lang/translations/en-gb.po +28 -0
  175. package/lang/translations/en.po +5 -11
  176. package/lang/translations/eo.po +28 -0
  177. package/lang/translations/es-co.po +28 -0
  178. package/lang/translations/es.po +4 -10
  179. package/lang/translations/et.po +3 -9
  180. package/lang/translations/eu.po +28 -0
  181. package/lang/translations/fa.po +28 -0
  182. package/lang/translations/fi.po +3 -9
  183. package/lang/translations/fr.po +4 -10
  184. package/lang/translations/gl.po +3 -9
  185. package/lang/translations/gu.po +28 -0
  186. package/lang/translations/he.po +4 -10
  187. package/lang/translations/hi.po +3 -9
  188. package/lang/translations/hr.po +4 -10
  189. package/lang/translations/hu.po +3 -9
  190. package/lang/translations/hy.po +28 -0
  191. package/lang/translations/id.po +3 -9
  192. package/lang/translations/it.po +4 -10
  193. package/lang/translations/ja.po +3 -9
  194. package/lang/translations/jv.po +28 -0
  195. package/lang/translations/kk.po +28 -0
  196. package/lang/translations/km.po +28 -0
  197. package/lang/translations/kn.po +28 -0
  198. package/lang/translations/ko.po +3 -9
  199. package/lang/translations/ku.po +28 -0
  200. package/lang/translations/lt.po +4 -10
  201. package/lang/translations/lv.po +4 -10
  202. package/lang/translations/ms.po +3 -9
  203. package/lang/translations/nb.po +28 -0
  204. package/lang/translations/ne.po +28 -0
  205. package/lang/translations/nl.po +3 -9
  206. package/lang/translations/no.po +3 -9
  207. package/lang/translations/oc.po +28 -0
  208. package/lang/translations/pl.po +4 -10
  209. package/lang/translations/pt-br.po +4 -10
  210. package/lang/translations/pt.po +4 -10
  211. package/lang/translations/ro.po +4 -10
  212. package/lang/translations/ru.po +4 -10
  213. package/lang/translations/si.po +28 -0
  214. package/lang/translations/sk.po +4 -10
  215. package/lang/translations/sl.po +28 -0
  216. package/lang/translations/sq.po +28 -0
  217. package/lang/translations/sr-latn.po +4 -10
  218. package/lang/translations/sr.po +4 -10
  219. package/lang/translations/sv.po +3 -9
  220. package/lang/translations/th.po +3 -9
  221. package/lang/translations/ti.po +28 -0
  222. package/lang/translations/tk.po +28 -0
  223. package/lang/translations/tr.po +3 -9
  224. package/lang/translations/tt.po +28 -0
  225. package/lang/translations/ug.po +4 -10
  226. package/lang/translations/uk.po +4 -10
  227. package/lang/translations/ur.po +3 -9
  228. package/lang/translations/uz.po +28 -0
  229. package/lang/translations/vi.po +3 -9
  230. package/lang/translations/zh-cn.po +3 -9
  231. package/lang/translations/zh.po +3 -9
  232. package/package.json +6 -6
  233. package/src/integrations/link.d.ts +4 -0
  234. package/src/integrations/link.js +6 -0
  235. package/src/integrations/list.d.ts +4 -0
  236. package/src/integrations/list.js +6 -0
  237. package/src/integrations/table.d.ts +4 -0
  238. package/src/integrations/table.js +6 -0
  239. package/src/style.d.ts +4 -0
  240. package/src/style.js +6 -0
  241. package/src/styleediting.d.ts +4 -0
  242. package/src/styleediting.js +6 -0
  243. package/src/styleui.d.ts +4 -0
  244. package/src/styleui.js +6 -0
  245. package/src/styleutils.d.ts +4 -0
  246. package/src/styleutils.js +6 -0
package/build/style.js CHANGED
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var e={702:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var i=s(935),l=s.n(i)()((function(e){return e[1]}));l.push([e.id,".ck.ck-dropdown.ck-style-dropdown.ck-style-dropdown_multiple-active>.ck-button>.ck-button__label{font-style:italic}",""]);const n=l},930:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var i=s(935),l=s.n(i)()((function(e){return e[1]}));l.push([e.id,":root{--ck-style-panel-columns:3}.ck.ck-style-panel .ck-style-grid{display:grid;grid-template-columns:repeat(var(--ck-style-panel-columns),auto);justify-content:start}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button{display:flex;flex-direction:column;justify-content:space-between}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-style-grid__button__preview{align-content:center;align-items:center;display:flex;flex-basis:100%;flex-grow:1;justify-content:flex-start}:root{--ck-style-panel-button-width:120px;--ck-style-panel-button-height:80px;--ck-style-panel-button-label-background:#f0f0f0;--ck-style-panel-button-hover-label-background:#ebebeb;--ck-style-panel-button-hover-border-color:#b3b3b3}.ck.ck-style-panel .ck-style-grid{column-gap:var(--ck-spacing-large);row-gap:var(--ck-spacing-large)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button{--ck-color-button-default-hover-background:var(--ck-color-base-background);--ck-color-button-default-active-background:var(--ck-color-base-background);height:var(--ck-style-panel-button-height);padding:0;width:var(--ck-style-panel-button-width)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-button__label{flex-shrink:0;height:22px;line-height:22px;overflow:hidden;padding:0 var(--ck-spacing-medium);text-overflow:ellipsis;width:100%}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-style-grid__button__preview{background:var(--ck-color-base-background);border:2px solid var(--ck-color-base-background);opacity:.9;overflow:hidden;padding:var(--ck-spacing-medium);width:100%}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled{--ck-color-button-default-disabled-background:var(--ck-color-base-foreground)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled:not(:focus){border-color:var(--ck-style-panel-button-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled .ck-style-grid__button__preview{border-color:var(--ck-color-base-foreground);filter:saturate(.3);opacity:.4}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on{border-color:var(--ck-color-base-active)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on .ck-button__label{box-shadow:0 -1px 0 var(--ck-color-base-active);z-index:1}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on:hover{border-color:var(--ck-color-base-active-focus)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(.ck-on) .ck-button__label{background:var(--ck-style-panel-button-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(.ck-on):hover .ck-button__label{background:var(--ck-style-panel-button-hover-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:hover:not(.ck-disabled):not(.ck-on){border-color:var(--ck-style-panel-button-hover-border-color)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:hover:not(.ck-disabled):not(.ck-on) .ck-style-grid__button__preview{opacity:1}",""]);const n=l},881:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var i=s(935),l=s.n(i)()((function(e){return e[1]}));l.push([e.id,".ck.ck-style-panel .ck-style-panel__style-group>.ck-label{margin:var(--ck-spacing-large) 0}.ck.ck-style-panel .ck-style-panel__style-group:first-child>.ck-label{margin-top:0}",""]);const n=l},374:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var i=s(935),l=s.n(i)()((function(e){return e[1]}));l.push([e.id,":root{--ck-style-panel-max-height:470px}.ck.ck-style-panel{max-height:var(--ck-style-panel-max-height);overflow-y:auto;padding:var(--ck-spacing-large)}",""]);const n=l},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var s=e(t);return t[2]?"@media ".concat(t[2]," {").concat(s,"}"):s})).join("")},t.i=function(e,s,i){"string"==typeof e&&(e=[[null,e,""]]);var l={};if(i)for(var n=0;n<this.length;n++){var r=this[n][0];null!=r&&(l[r]=!0)}for(var o=0;o<e.length;o++){var c=[].concat(e[o]);i&&l[c[0]]||(s&&(c[2]?c[2]="".concat(s," and ").concat(c[2]):c[2]=s),t.push(c))}},t}},591:(e,t,s)=>{"use strict";var i,l=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},n=function(){var e={};return function(t){if(void 0===e[t]){var s=document.querySelector(t);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch(e){s=null}e[t]=s}return e[t]}}(),r=[];function o(e){for(var t=-1,s=0;s<r.length;s++)if(r[s].identifier===e){t=s;break}return t}function c(e,t){for(var s={},i=[],l=0;l<e.length;l++){var n=e[l],c=t.base?n[0]+t.base:n[0],a=s[c]||0,d="".concat(c," ").concat(a);s[c]=a+1;var u=o(d),h={css:n[1],media:n[2],sourceMap:n[3]};-1!==u?(r[u].references++,r[u].updater(h)):r.push({identifier:d,updater:f(h,t),references:1}),i.push(d)}return i}function a(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var l=s.nc;l&&(i.nonce=l)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var r=n(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}return t}var d,u=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function h(e,t,s,i){var l=s?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=u(t,l);else{var n=document.createTextNode(l),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(n,r[t]):e.appendChild(n)}}function g(e,t,s){var i=s.css,l=s.media,n=s.sourceMap;if(l?e.setAttribute("media",l):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var p=null,y=0;function f(e,t){var s,i,l;if(t.singleton){var n=y++;s=p||(p=a(t)),i=h.bind(null,s,n,!1),l=h.bind(null,s,n,!0)}else s=a(t),i=g.bind(null,s,t),l=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(s)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else l()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=l());var s=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<s.length;i++){var l=o(s[i]);r[l].references--}for(var n=c(e,t),a=0;a<s.length;a++){var d=o(s[a]);0===r[d].references&&(r[d].updater(),r.splice(d,1))}s=n}}}},782:(e,t,s)=>{e.exports=s(237)("./src/core.js")},834:(e,t,s)=>{e.exports=s(237)("./src/typing.js")},311:(e,t,s)=>{e.exports=s(237)("./src/ui.js")},584:(e,t,s)=>{e.exports=s(237)("./src/utils.js")},237:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function s(i){var l=t[i];if(void 0!==l)return l.exports;var n=t[i]={id:i,exports:{}};return e[i](n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0;var i={};(()=>{"use strict";s.r(i),s.d(i,{Style:()=>U,StyleEditing:()=>V,StyleUI:()=>w,StyleUtils:()=>m});var e=s(782),t=s(311),l=s(584);class n extends t.ButtonView{constructor(e,t){super(e),this.styleDefinition=t,this.previewView=this._createPreview(),this.set({label:t.name,class:"ck-style-grid__button",withText:!0}),this.extendTemplate({attributes:{role:"option"}}),this.children.add(this.previewView,0)}_createPreview(){const e=new t.View(this.locale);return e.setTemplate({tag:"div",attributes:{class:["ck","ck-reset_all-excluded","ck-style-grid__button__preview","ck-content"],"aria-hidden":"true"},children:[this.styleDefinition.previewTemplate]}),e}}var r=s(591),o=s.n(r),c=s(930),a={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};o()(c.A,a);c.A.locals;class d extends t.View{constructor(e,t){super(e),this.focusTracker=new l.FocusTracker,this.keystrokes=new l.KeystrokeHandler,this.set("activeStyles",[]),this.set("enabledStyles",[]),this.children=this.createCollection(),this.children.delegate("execute").to(this);for(const s of t){const t=new n(e,s);this.children.add(t)}this.on("change:activeStyles",(()=>{for(const e of this.children)e.isOn=this.activeStyles.includes(e.styleDefinition.name)})),this.on("change:enabledStyles",(()=>{for(const e of this.children)e.isEnabled=this.enabledStyles.includes(e.styleDefinition.name)})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-grid"],role:"listbox"},children:this.children})}render(){super.render();for(const e of this.children)this.focusTracker.add(e.element);(0,t.addKeyboardHandlingForGrid)({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.children,numberOfColumns:3,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection}),this.keystrokes.listenTo(this.element)}focus(){this.children.first.focus()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}var u=s(881),h={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};o()(u.A,h);u.A.locals;class g extends t.View{constructor(e,s,i){super(e),this.labelView=new t.LabelView(e),this.labelView.text=s,this.gridView=new d(e,i),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel__style-group"],role:"group","aria-labelledby":this.labelView.id},children:[this.labelView,this.gridView]})}}var p=s(374),y={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};o()(p.A,y);p.A.locals;class f extends t.View{constructor(e,s){super(e);const i=e.t;this.focusTracker=new l.FocusTracker,this.keystrokes=new l.KeystrokeHandler,this.children=this.createCollection(),this.blockStylesGroupView=new g(e,i("Block styles"),s.block),this.inlineStylesGroupView=new g(e,i("Text styles"),s.inline),this.set("activeStyles",[]),this.set("enabledStyles",[]),this._focusables=new t.ViewCollection,this._focusCycler=new t.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:["shift + tab"],focusNext:["tab"]}}),s.block.length&&this.children.add(this.blockStylesGroupView),s.inline.length&&this.children.add(this.inlineStylesGroupView),this.blockStylesGroupView.gridView.delegate("execute").to(this),this.inlineStylesGroupView.gridView.delegate("execute").to(this),this.blockStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this,"activeStyles","enabledStyles"),this.inlineStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this,"activeStyles","enabledStyles"),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel"]},children:this.children})}render(){super.render(),this._focusables.add(this.blockStylesGroupView.gridView),this._focusables.add(this.inlineStylesGroupView.gridView),this.focusTracker.add(this.blockStylesGroupView.gridView.element),this.focusTracker.add(this.inlineStylesGroupView.gridView.element),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}const k=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},b=["caption","colgroup","dd","dt","figcaption","legend","li","optgroup","option","rp","rt","summary","tbody","td","tfoot","th","thead","tr"];class m extends e.Plugin{static get pluginName(){return"StyleUtils"}constructor(e){super(e),this.decorate("isStyleEnabledForBlock"),this.decorate("isStyleActiveForBlock"),this.decorate("getAffectedBlocks"),this.decorate("isStyleEnabledForInlineSelection"),this.decorate("isStyleActiveForInlineSelection"),this.decorate("getAffectedInlineSelectable"),this.decorate("getStylePreview"),this.decorate("configureGHSDataFilter")}init(){this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport")}normalizeConfig(e,t=[]){const s={block:[],inline:[]};for(const i of t){const t=[],l=[];for(const s of e.getDefinitionsForView(i.element)){const e="appliesToBlock"in s&&s.appliesToBlock;if(s.isBlock||e){if("string"==typeof e)t.push(e);else if(s.isBlock){const e=s;t.push(s.model),e.paragraphLikeModel&&t.push(e.paragraphLikeModel)}}else l.push(s.model)}const n=this.getStylePreview(i,[{text:"AaBbCcDdEeFfGgHhIiJj"}]);t.length?s.block.push({...i,previewTemplate:n,modelElements:t,isBlock:!0}):s.inline.push({...i,previewTemplate:n,ghsAttributes:l})}return s}isStyleEnabledForBlock(e,t){const s=this.editor.model,i=this._htmlSupport.getGhsAttributeNameForElement(e.element);return!!s.schema.checkAttribute(t,i)&&e.modelElements.includes(t.name)}isStyleActiveForBlock(e,t){const s=this._htmlSupport.getGhsAttributeNameForElement(e.element),i=t.getAttribute(s);return this.hasAllClasses(i,e.classes)}getAffectedBlocks(e,t){return e.modelElements.includes(t.name)?[t]:null}isStyleEnabledForInlineSelection(e,t){const s=this.editor.model;for(const i of e.ghsAttributes)if(s.schema.checkAttributeInSelection(t,i))return!0;return!1}isStyleActiveForInlineSelection(e,t){for(const s of e.ghsAttributes){const i=this._getValueFromFirstAllowedNode(t,s);if(this.hasAllClasses(i,e.classes))return!0}return!1}getAffectedInlineSelectable(e,t){return t}getStylePreview(e,t){const{element:s,classes:i}=e;return{tag:(l=s,b.includes(l)?"div":s),attributes:{class:i},children:t};var l}hasAllClasses(e,t){return k(e)&&(s=e,Boolean(s.classes)&&Array.isArray(s.classes))&&t.every((t=>e.classes.includes(t)));var s}configureGHSDataFilter({block:e,inline:t}){const s=this.editor.plugins.get("DataFilter");s.loadAllowedConfig(e.map(v)),s.loadAllowedConfig(t.map(v))}_getValueFromFirstAllowedNode(e,t){const s=this.editor.model.schema;if(e.isCollapsed)return e.getAttribute(t);for(const i of e.getRanges())for(const e of i.getItems())if(s.checkAttribute(e,t))return e.getAttribute(t);return null}}function v({element:e,classes:t}){return{name:e,classes:t}}var _=s(702),S={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};o()(_.A,S);_.A.locals;class w extends e.Plugin{static get pluginName(){return"StyleUI"}static get requires(){return[m]}init(){const e=this.editor,s=e.plugins.get("DataSchema"),i=e.plugins.get("StyleUtils"),l=e.config.get("style.definitions"),n=i.normalizeConfig(s,l);e.ui.componentFactory.add("style",(s=>{const i=s.t,l=(0,t.createDropdown)(s),r=e.commands.get("style");return l.once("change:isOpen",(()=>{const e=new f(s,n);l.panelView.children.add(e),e.delegate("execute").to(l),e.bind("activeStyles").to(r,"value"),e.bind("enabledStyles").to(r,"enabledStyles")})),l.bind("isEnabled").to(r),l.buttonView.withText=!0,l.buttonView.bind("label").to(r,"value",(e=>e.length>1?i("Multiple styles"):1===e.length?e[0]:i("Styles"))),l.bind("class").to(r,"value",(e=>{const t=["ck-style-dropdown"];return e.length>1&&t.push("ck-style-dropdown_multiple-active"),t.join(" ")})),l.on("execute",(t=>{e.execute("style",{styleName:t.source.styleDefinition.name}),e.editing.view.focus()})),l}))}}class A extends e.Command{constructor(e,t){super(e),this.set("value",[]),this.set("enabledStyles",[]),this._styleDefinitions=t,this._styleUtils=this.editor.plugins.get(m)}refresh(){const e=this.editor.model,t=e.document.selection,s=new Set,i=new Set;for(const e of this._styleDefinitions.inline)this._styleUtils.isStyleEnabledForInlineSelection(e,t)&&i.add(e.name),this._styleUtils.isStyleActiveForInlineSelection(e,t)&&s.add(e.name);const n=(0,l.first)(t.getSelectedBlocks())||t.getFirstPosition().parent;if(n){const t=n.getAncestors({includeSelf:!0,parentFirst:!0});for(const l of t){if(l.is("rootElement"))break;for(const e of this._styleDefinitions.block)this._styleUtils.isStyleEnabledForBlock(e,l)&&(i.add(e.name),this._styleUtils.isStyleActiveForBlock(e,l)&&s.add(e.name));if(e.schema.isObject(l))break}}this.enabledStyles=Array.from(i).sort(),this.isEnabled=this.enabledStyles.length>0,this.value=this.isEnabled?Array.from(s).sort():[]}execute({styleName:e,forceValue:t}){if(!this.enabledStyles.includes(e))return void(0,l.logWarning)("style-command-executed-with-incorrect-style-name");const s=this.editor.model,i=s.document.selection,n=this.editor.plugins.get("GeneralHtmlSupport"),r=[...this._styleDefinitions.inline,...this._styleDefinitions.block],o=r.filter((({name:e})=>this.value.includes(e))),c=r.find((({name:t})=>t==e)),a=void 0===t?!this.value.includes(c.name):t;s.change((()=>{let e;e=function(e){return"isBlock"in e}(c)?this._findAffectedBlocks(function(e){const t=Array.from(e.getSelectedBlocks());if(t.length)return t;return[e.getFirstPosition().parent]}(i),c):[this._styleUtils.getAffectedInlineSelectable(c,i)];for(const t of e)a?n.addModelHtmlClass(c.element,c.classes,t):n.removeModelHtmlClass(c.element,x(o,c),t)}))}_findAffectedBlocks(e,t){const s=new Set;for(const i of e){const e=i.getAncestors({includeSelf:!0,parentFirst:!0});for(const i of e){if(i.is("rootElement"))break;const e=this._styleUtils.getAffectedBlocks(t,i);if(e){for(const t of e)s.add(t);break}}}return s}}function x(e,t){return e.reduce(((e,s)=>s.name===t.name?e:e.filter((e=>!s.classes.includes(e)))),t.classes)}class T extends e.Plugin{static get pluginName(){return"ListStyleSupport"}static get requires(){return[m,"GeneralHtmlSupport"]}init(){const e=this.editor;e.plugins.has("ListEditing")&&(this._styleUtils=e.plugins.get(m),this._listUtils=this.editor.plugins.get("ListUtils"),this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport"),this.listenTo(this._styleUtils,"isStyleEnabledForBlock",((e,[t,s])=>{this._isStyleEnabledForBlock(t,s)&&(e.return=!0,e.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"isStyleActiveForBlock",((e,[t,s])=>{this._isStyleActiveForBlock(t,s)&&(e.return=!0,e.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedBlocks",((e,[t,s])=>{const i=this._getAffectedBlocks(t,s);i&&(e.return=i,e.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"getStylePreview",((e,[t,s])=>{const i=this._getStylePreview(t,s);i&&(e.return=i,e.stop())}),{priority:"high"}))}_isStyleEnabledForBlock(e,t){const s=this.editor.model;if(!["ol","ul","li"].includes(e.element))return!1;if(!this._listUtils.isListItemBlock(t))return!1;const i=this._htmlSupport.getGhsAttributeNameForElement(e.element);if("ol"==e.element||"ul"==e.element){if(!s.schema.checkAttribute(t,i))return!1;const l=this._listUtils.isNumberedListType(t.getAttribute("listType"))?"ol":"ul";return e.element==l}return s.schema.checkAttribute(t,i)}_isStyleActiveForBlock(e,t){const s=this._htmlSupport.getGhsAttributeNameForElement(e.element),i=t.getAttribute(s);return this._styleUtils.hasAllClasses(i,e.classes)}_getAffectedBlocks(e,t){return this._isStyleEnabledForBlock(e,t)?"li"==e.element?this._listUtils.expandListBlocksToCompleteItems(t,{withNested:!1}):this._listUtils.expandListBlocksToCompleteList(t):null}_getStylePreview(e,t){const{element:s,classes:i}=e;return"ol"==s||"ul"==s?{tag:s,attributes:{class:i},children:[{tag:"li",children:t}]}:"li"==s?{tag:"ol",children:[{tag:s,attributes:{class:i},children:t}]}:null}}class F extends e.Plugin{static get pluginName(){return"TableStyleSupport"}static get requires(){return[m]}init(){const e=this.editor;e.plugins.has("TableEditing")&&(this._styleUtils=e.plugins.get(m),this._tableUtils=this.editor.plugins.get("TableUtils"),this.listenTo(this._styleUtils,"isStyleEnabledForBlock",((e,[t,s])=>{this._isApplicable(t,s)&&(e.return=this._isStyleEnabledForBlock(t,s),e.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedBlocks",((e,[t,s])=>{this._isApplicable(t,s)&&(e.return=this._getAffectedBlocks(t,s),e.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"configureGHSDataFilter",((e,[{block:t}])=>{this.editor.plugins.get("DataFilter").loadAllowedConfig(t.filter((e=>"figcaption"==e.element)).map((e=>({name:"caption",classes:e.classes}))))})))}_isApplicable(e,t){return["td","th"].includes(e.element)?"tableCell"==t.name:!!["thead","tbody"].includes(e.element)&&"table"==t.name}_isStyleEnabledForBlock(e,t){if(["td","th"].includes(e.element)){const s=this._tableUtils.getCellLocation(t),i=t.parent.parent,l=i.getAttribute("headingRows")||0,n=i.getAttribute("headingColumns")||0,r=s.row<l||s.column<n;return"th"==e.element?r:!r}if(["thead","tbody"].includes(e.element)){const s=t.getAttribute("headingRows")||0;return"thead"==e.element?s>0:s<this._tableUtils.getRows(t)}return!1}_getAffectedBlocks(e,t){return this._isStyleEnabledForBlock(e,t)?[t]:null}}var B=s(834);class C extends e.Plugin{static get pluginName(){return"LinkStyleSupport"}static get requires(){return[m,"GeneralHtmlSupport"]}init(){const e=this.editor;e.plugins.has("LinkEditing")&&(this._styleUtils=e.plugins.get(m),this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport"),this.listenTo(this._styleUtils,"isStyleEnabledForInlineSelection",((e,[t,s])=>{"a"==t.element&&(e.return=this._isStyleEnabled(t,s),e.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"isStyleActiveForInlineSelection",((e,[t,s])=>{"a"==t.element&&(e.return=this._isStyleActive(t,s),e.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedInlineSelectable",((e,[t,s])=>{if("a"!=t.element)return;const i=this._getAffectedSelectable(t,s);i&&(e.return=i,e.stop())}),{priority:"high"}))}_isStyleEnabled(e,t){const s=this.editor.model;if(t.isCollapsed)return t.hasAttribute("linkHref");for(const e of t.getRanges())for(const t of e.getItems())if((t.is("$textProxy")||s.schema.isInline(t))&&t.hasAttribute("linkHref"))return!0;return!1}_isStyleActive(e,t){const s=this.editor.model,i=this._htmlSupport.getGhsAttributeNameForElement(e.element);if(t.isCollapsed){if(t.hasAttribute("linkHref")){const s=t.getAttribute(i);if(this._styleUtils.hasAllClasses(s,e.classes))return!0}return!1}for(const l of t.getRanges())for(const t of l.getItems())if((t.is("$textProxy")||s.schema.isInline(t))&&t.hasAttribute("linkHref")){const s=t.getAttribute(i);return this._styleUtils.hasAllClasses(s,e.classes)}return!1}_getAffectedSelectable(e,t){const s=this.editor.model;if(t.isCollapsed){const e=t.getAttribute("linkHref");return(0,B.findAttributeRange)(t.getFirstPosition(),"linkHref",e,s)}const i=[];for(const e of t.getRanges()){const t=s.createRange(E(e.start,"linkHref",!0,s),E(e.end,"linkHref",!1,s));for(const e of t.getItems())(e.is("$textProxy")||s.schema.isInline(e))&&e.hasAttribute("linkHref")&&i.push(this.editor.model.createRangeOn(e))}return function(e){for(let t=1;t<e.length;t++){const s=e[t-1].getJoined(e[t]);s&&e.splice(--t,2,s)}return e}(i)}}function E(e,t,s,i){const l=e.textNode||(s?e.nodeAfter:e.nodeBefore);if(!l||!l.hasAttribute(t))return e;const n=l.getAttribute(t);return(0,B.findAttributeRangeBound)(e,t,n,s,i)}class V extends e.Plugin{static get pluginName(){return"StyleEditing"}static get requires(){return["GeneralHtmlSupport",m,T,F,C]}init(){const e=this.editor,t=e.plugins.get("DataSchema"),s=e.plugins.get("StyleUtils"),i=e.config.get("style.definitions"),l=s.normalizeConfig(t,i);e.commands.add("style",new A(e,l)),s.configureGHSDataFilter(l)}}class U extends e.Plugin{static get pluginName(){return"Style"}static get requires(){return[V,w]}}})(),(window.CKEditor5=window.CKEditor5||{}).style=i})();
5
+ */(()=>{var e={702:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var i=s(758),l=s.n(i),n=s(935),r=s.n(n)()(l());r.push([e.id,".ck.ck-dropdown.ck-style-dropdown.ck-style-dropdown_multiple-active>.ck-button>.ck-button__label{font-style:italic}",""]);const o=r},930:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var i=s(758),l=s.n(i),n=s(935),r=s.n(n)()(l());r.push([e.id,":root{--ck-style-panel-columns:3}.ck.ck-style-panel .ck-style-grid{display:grid;grid-template-columns:repeat(var(--ck-style-panel-columns),auto);justify-content:start}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button{display:flex;flex-direction:column;justify-content:space-between}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-style-grid__button__preview{align-content:center;align-items:center;display:flex;flex-basis:100%;flex-grow:1;justify-content:flex-start}:root{--ck-style-panel-button-width:120px;--ck-style-panel-button-height:80px;--ck-style-panel-button-label-background:#f0f0f0;--ck-style-panel-button-hover-label-background:#ebebeb;--ck-style-panel-button-hover-border-color:#b3b3b3}.ck.ck-style-panel .ck-style-grid{column-gap:var(--ck-spacing-large);row-gap:var(--ck-spacing-large)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button{--ck-color-button-default-hover-background:var(--ck-color-base-background);--ck-color-button-default-active-background:var(--ck-color-base-background);height:var(--ck-style-panel-button-height);padding:0;width:var(--ck-style-panel-button-width)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-button__label{flex-shrink:0;height:22px;line-height:22px;overflow:hidden;padding:0 var(--ck-spacing-medium);text-overflow:ellipsis;width:100%}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-style-grid__button__preview{background:var(--ck-color-base-background);border:2px solid var(--ck-color-base-background);opacity:.9;overflow:hidden;padding:var(--ck-spacing-medium);width:100%}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled{--ck-color-button-default-disabled-background:var(--ck-color-base-foreground)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled:not(:focus){border-color:var(--ck-style-panel-button-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled .ck-style-grid__button__preview{border-color:var(--ck-color-base-foreground);filter:saturate(.3);opacity:.4}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on{border-color:var(--ck-color-base-active)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on .ck-button__label{box-shadow:0 -1px 0 var(--ck-color-base-active);z-index:1}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on:hover{border-color:var(--ck-color-base-active-focus)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(.ck-on) .ck-button__label{background:var(--ck-style-panel-button-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(.ck-on):hover .ck-button__label{background:var(--ck-style-panel-button-hover-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:hover:not(.ck-disabled):not(.ck-on){border-color:var(--ck-style-panel-button-hover-border-color)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:hover:not(.ck-disabled):not(.ck-on) .ck-style-grid__button__preview{opacity:1}",""]);const o=r},881:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var i=s(758),l=s.n(i),n=s(935),r=s.n(n)()(l());r.push([e.id,".ck.ck-style-panel .ck-style-panel__style-group>.ck-label{margin:var(--ck-spacing-large) 0}.ck.ck-style-panel .ck-style-panel__style-group:first-child>.ck-label{margin-top:0}",""]);const o=r},374:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var i=s(758),l=s.n(i),n=s(935),r=s.n(n)()(l());r.push([e.id,":root{--ck-style-panel-max-height:470px}.ck.ck-style-panel{max-height:var(--ck-style-panel-max-height);overflow-y:auto;padding:var(--ck-spacing-large)}",""]);const o=r},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var s="",i=void 0!==t[5];return t[4]&&(s+="@supports (".concat(t[4],") {")),t[2]&&(s+="@media ".concat(t[2]," {")),i&&(s+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),s+=e(t),i&&(s+="}"),t[2]&&(s+="}"),t[4]&&(s+="}"),s})).join("")},t.i=function(e,s,i,l,n){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(i)for(var o=0;o<this.length;o++){var c=this[o][0];null!=c&&(r[c]=!0)}for(var a=0;a<e.length;a++){var u=[].concat(e[a]);i&&r[u[0]]||(void 0!==n&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=n),s&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=s):u[2]=s),l&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=l):u[4]="".concat(l)),t.push(u))}},t}},758:e=>{"use strict";e.exports=function(e){return e[1]}},591:e=>{"use strict";var t=[];function s(e){for(var s=-1,i=0;i<t.length;i++)if(t[i].identifier===e){s=i;break}return s}function i(e,i){for(var n={},r=[],o=0;o<e.length;o++){var c=e[o],a=i.base?c[0]+i.base:c[0],u=n[a]||0,d="".concat(a," ").concat(u);n[a]=u+1;var h=s(d),g={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==h)t[h].references++,t[h].updater(g);else{var p=l(g,i);i.byIndex=o,t.splice(o,0,{identifier:d,updater:p,references:1})}r.push(d)}return r}function l(e,t){var s=t.domAPI(t);s.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;s.update(e=t)}else s.remove()}}e.exports=function(e,l){var n=i(e=e||[],l=l||{});return function(e){e=e||[];for(var r=0;r<n.length;r++){var o=s(n[r]);t[o].references--}for(var c=i(e,l),a=0;a<n.length;a++){var u=s(n[a]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}n=c}}},128:e=>{"use strict";var t={};e.exports=function(e,s){var i=function(e){if(void 0===t[e]){var s=document.querySelector(e);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch(e){s=null}t[e]=s}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(s)}},51:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},21:e=>{"use strict";e.exports=function(e,t){Object.keys(t).forEach((function(s){e.setAttribute(s,t[s])}))}},639:e=>{"use strict";var t,s=(t=[],function(e,s){return t[e]=s,t.filter(Boolean).join("\n")});function i(e,t,i,l){var n;if(i)n="";else{n="",l.supports&&(n+="@supports (".concat(l.supports,") {")),l.media&&(n+="@media ".concat(l.media," {"));var r=void 0!==l.layer;r&&(n+="@layer".concat(l.layer.length>0?" ".concat(l.layer):""," {")),n+=l.css,r&&(n+="}"),l.media&&(n+="}"),l.supports&&(n+="}")}if(e.styleSheet)e.styleSheet.cssText=s(t,n);else{var o=document.createTextNode(n),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(o,c[t]):e.appendChild(o)}}var l={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=l.singletonCounter++,s=l.singleton||(l.singleton=e.insertStyleElement(e));return{update:function(e){i(s,t,!1,e)},remove:function(e){i(s,t,!0,e)}}}},782:(e,t,s)=>{e.exports=s(237)("./src/core.js")},834:(e,t,s)=>{e.exports=s(237)("./src/typing.js")},311:(e,t,s)=>{e.exports=s(237)("./src/ui.js")},584:(e,t,s)=>{e.exports=s(237)("./src/utils.js")},237:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function s(i){var l=t[i];if(void 0!==l)return l.exports;var n=t[i]={id:i,exports:{}};return e[i](n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{"use strict";s.r(i),s.d(i,{Style:()=>L,StyleEditing:()=>O,StyleUI:()=>V,StyleUtils:()=>F});var e=s(782),t=s(311),l=s(584);class n extends t.ButtonView{constructor(e,t){super(e),this.styleDefinition=t,this.previewView=this._createPreview(),this.set({label:t.name,class:"ck-style-grid__button",withText:!0}),this.extendTemplate({attributes:{role:"option"}}),this.children.add(this.previewView,0)}_createPreview(){const e=new t.View(this.locale);return e.setTemplate({tag:"div",attributes:{class:["ck","ck-reset_all-excluded","ck-style-grid__button__preview","ck-content"],"aria-hidden":"true"},children:[this.styleDefinition.previewTemplate]}),e}}var r=s(591),o=s.n(r),c=s(639),a=s.n(c),u=s(128),d=s.n(u),h=s(21),g=s.n(h),p=s(51),y=s.n(p),f=s(930),k={attributes:{"data-cke":!0}};k.setAttributes=g(),k.insert=d().bind(null,"head"),k.domAPI=a(),k.insertStyleElement=y();o()(f.A,k);f.A&&f.A.locals&&f.A.locals;class b extends t.View{constructor(e,t){super(e),this.focusTracker=new l.FocusTracker,this.keystrokes=new l.KeystrokeHandler,this.set("activeStyles",[]),this.set("enabledStyles",[]),this.children=this.createCollection(),this.children.delegate("execute").to(this);for(const s of t){const t=new n(e,s);this.children.add(t)}this.on("change:activeStyles",(()=>{for(const e of this.children)e.isOn=this.activeStyles.includes(e.styleDefinition.name)})),this.on("change:enabledStyles",(()=>{for(const e of this.children)e.isEnabled=this.enabledStyles.includes(e.styleDefinition.name)})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-grid"],role:"listbox"},children:this.children})}render(){super.render();for(const e of this.children)this.focusTracker.add(e.element);(0,t.addKeyboardHandlingForGrid)({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.children,numberOfColumns:3,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection}),this.keystrokes.listenTo(this.element)}focus(){this.children.first.focus()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}var m=s(881),v={attributes:{"data-cke":!0}};v.setAttributes=g(),v.insert=d().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=y();o()(m.A,v);m.A&&m.A.locals&&m.A.locals;class _ extends t.View{constructor(e,s,i){super(e),this.labelView=new t.LabelView(e),this.labelView.text=s,this.gridView=new b(e,i),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel__style-group"],role:"group","aria-labelledby":this.labelView.id},children:[this.labelView,this.gridView]})}}var S=s(374),w={attributes:{"data-cke":!0}};w.setAttributes=g(),w.insert=d().bind(null,"head"),w.domAPI=a(),w.insertStyleElement=y();o()(S.A,w);S.A&&S.A.locals&&S.A.locals;class A extends t.View{constructor(e,s){super(e);const i=e.t;this.focusTracker=new l.FocusTracker,this.keystrokes=new l.KeystrokeHandler,this.children=this.createCollection(),this.blockStylesGroupView=new _(e,i("Block styles"),s.block),this.inlineStylesGroupView=new _(e,i("Text styles"),s.inline),this.set("activeStyles",[]),this.set("enabledStyles",[]),this._focusables=new t.ViewCollection,this._focusCycler=new t.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:["shift + tab"],focusNext:["tab"]}}),s.block.length&&this.children.add(this.blockStylesGroupView),s.inline.length&&this.children.add(this.inlineStylesGroupView),this.blockStylesGroupView.gridView.delegate("execute").to(this),this.inlineStylesGroupView.gridView.delegate("execute").to(this),this.blockStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this,"activeStyles","enabledStyles"),this.inlineStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this,"activeStyles","enabledStyles"),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel"]},children:this.children})}render(){super.render(),this._focusables.add(this.blockStylesGroupView.gridView),this._focusables.add(this.inlineStylesGroupView.gridView),this.focusTracker.add(this.blockStylesGroupView.gridView.element),this.focusTracker.add(this.inlineStylesGroupView.gridView.element),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}const x=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},T=["caption","colgroup","dd","dt","figcaption","legend","li","optgroup","option","rp","rt","summary","tbody","td","tfoot","th","thead","tr"];class F extends e.Plugin{static get pluginName(){return"StyleUtils"}static get isOfficialPlugin(){return!0}constructor(e){super(e),this.decorate("isStyleEnabledForBlock"),this.decorate("isStyleActiveForBlock"),this.decorate("getAffectedBlocks"),this.decorate("isStyleEnabledForInlineSelection"),this.decorate("isStyleActiveForInlineSelection"),this.decorate("getAffectedInlineSelectable"),this.decorate("getStylePreview"),this.decorate("configureGHSDataFilter")}init(){this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport")}normalizeConfig(e,t=[]){const s={block:[],inline:[]};for(const i of t){const t=[],l=[];for(const s of e.getDefinitionsForView(i.element)){const e="appliesToBlock"in s&&s.appliesToBlock;if(s.isBlock||e){if("string"==typeof e)t.push(e);else if(s.isBlock){const e=s;t.push(s.model),e.paragraphLikeModel&&t.push(e.paragraphLikeModel)}}else l.push(s.model)}const n=this.getStylePreview(i,[{text:"AaBbCcDdEeFfGgHhIiJj"}]);t.length?s.block.push({...i,previewTemplate:n,modelElements:t,isBlock:!0}):s.inline.push({...i,previewTemplate:n,ghsAttributes:l})}return s}isStyleEnabledForBlock(e,t){const s=this.editor.model,i=this._htmlSupport.getGhsAttributeNameForElement(e.element);return!!s.schema.checkAttribute(t,i)&&e.modelElements.includes(t.name)}isStyleActiveForBlock(e,t){const s=this._htmlSupport.getGhsAttributeNameForElement(e.element),i=t.getAttribute(s);return this.hasAllClasses(i,e.classes)}getAffectedBlocks(e,t){return e.modelElements.includes(t.name)?[t]:null}isStyleEnabledForInlineSelection(e,t){const s=this.editor.model;for(const i of e.ghsAttributes)if(s.schema.checkAttributeInSelection(t,i))return!0;return!1}isStyleActiveForInlineSelection(e,t){for(const s of e.ghsAttributes){const i=this._getValueFromFirstAllowedNode(t,s);if(this.hasAllClasses(i,e.classes))return!0}return!1}getAffectedInlineSelectable(e,t){return t}getStylePreview(e,t){const{element:s,classes:i}=e;return{tag:(l=s,T.includes(l)?"div":s),attributes:{class:i},children:t};var l}hasAllClasses(e,t){return x(e)&&(s=e,Boolean(s.classes)&&Array.isArray(s.classes))&&t.every((t=>e.classes.includes(t)));var s}configureGHSDataFilter({block:e,inline:t}){const s=this.editor.plugins.get("DataFilter");s.loadAllowedConfig(e.map(E)),s.loadAllowedConfig(t.map(E))}_getValueFromFirstAllowedNode(e,t){const s=this.editor.model.schema;if(e.isCollapsed)return e.getAttribute(t);for(const i of e.getRanges())for(const e of i.getItems())if(s.checkAttribute(e,t))return e.getAttribute(t);return null}}function E({element:e,classes:t}){return{name:e,classes:t}}var B=s(702),C={attributes:{"data-cke":!0}};C.setAttributes=g(),C.insert=d().bind(null,"head"),C.domAPI=a(),C.insertStyleElement=y();o()(B.A,C);B.A&&B.A.locals&&B.A.locals;class V extends e.Plugin{static get pluginName(){return"StyleUI"}static get isOfficialPlugin(){return!0}static get requires(){return[F]}init(){const e=this.editor,s=e.plugins.get("DataSchema"),i=e.plugins.get("StyleUtils"),l=e.config.get("style.definitions"),n=i.normalizeConfig(s,l);e.ui.componentFactory.add("style",(s=>{const i=s.t,l=(0,t.createDropdown)(s),r=e.commands.get("style");return l.once("change:isOpen",(()=>{const e=new A(s,n);l.panelView.children.add(e),e.delegate("execute").to(l),e.bind("activeStyles").to(r,"value"),e.bind("enabledStyles").to(r,"enabledStyles")})),l.bind("isEnabled").to(r),l.buttonView.withText=!0,l.buttonView.bind("label").to(r,"value",(e=>e.length>1?i("Multiple styles"):1===e.length?e[0]:i("Styles"))),l.bind("class").to(r,"value",(e=>{const t=["ck-style-dropdown"];return e.length>1&&t.push("ck-style-dropdown_multiple-active"),t.join(" ")})),l.on("execute",(t=>{e.execute("style",{styleName:t.source.styleDefinition.name}),e.editing.view.focus()})),l}))}}class U extends e.Command{constructor(e,t){super(e),this.set("value",[]),this.set("enabledStyles",[]),this._styleDefinitions=t,this._styleUtils=this.editor.plugins.get(F)}refresh(){const e=this.editor.model,t=e.document.selection,s=new Set,i=new Set;for(const e of this._styleDefinitions.inline)this._styleUtils.isStyleEnabledForInlineSelection(e,t)&&i.add(e.name),this._styleUtils.isStyleActiveForInlineSelection(e,t)&&s.add(e.name);const n=(0,l.first)(t.getSelectedBlocks())||t.getFirstPosition().parent;if(n){const t=n.getAncestors({includeSelf:!0,parentFirst:!0});for(const l of t){if(l.is("rootElement"))break;for(const e of this._styleDefinitions.block)this._styleUtils.isStyleEnabledForBlock(e,l)&&(i.add(e.name),this._styleUtils.isStyleActiveForBlock(e,l)&&s.add(e.name));if(e.schema.isObject(l))break}}this.enabledStyles=Array.from(i).sort(),this.isEnabled=this.enabledStyles.length>0,this.value=this.isEnabled?Array.from(s).sort():[]}execute({styleName:e,forceValue:t}){if(!this.enabledStyles.includes(e))return void(0,l.logWarning)("style-command-executed-with-incorrect-style-name");const s=this.editor.model,i=s.document.selection,n=this.editor.plugins.get("GeneralHtmlSupport"),r=[...this._styleDefinitions.inline,...this._styleDefinitions.block],o=r.filter((({name:e})=>this.value.includes(e))),c=r.find((({name:t})=>t==e)),a=void 0===t?!this.value.includes(c.name):t;s.change((()=>{let e;e=function(e){return"isBlock"in e}(c)?this._findAffectedBlocks(function(e){const t=Array.from(e.getSelectedBlocks());if(t.length)return t;return[e.getFirstPosition().parent]}(i),c):[this._styleUtils.getAffectedInlineSelectable(c,i)];for(const t of e)a?n.addModelHtmlClass(c.element,c.classes,t):n.removeModelHtmlClass(c.element,I(o,c),t)}))}_findAffectedBlocks(e,t){const s=new Set;for(const i of e){const e=i.getAncestors({includeSelf:!0,parentFirst:!0});for(const i of e){if(i.is("rootElement"))break;const e=this._styleUtils.getAffectedBlocks(t,i);if(e){for(const t of e)s.add(t);break}}}return s}}function I(e,t){return e.reduce(((e,s)=>s.name===t.name?e:e.filter((e=>!s.classes.includes(e)))),t.classes)}class P extends e.Plugin{static get pluginName(){return"ListStyleSupport"}static get isOfficialPlugin(){return!0}static get requires(){return[F,"GeneralHtmlSupport"]}init(){const e=this.editor;e.plugins.has("ListEditing")&&(this._styleUtils=e.plugins.get(F),this._listUtils=this.editor.plugins.get("ListUtils"),this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport"),this.listenTo(this._styleUtils,"isStyleEnabledForBlock",((e,[t,s])=>{this._isStyleEnabledForBlock(t,s)&&(e.return=!0,e.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"isStyleActiveForBlock",((e,[t,s])=>{this._isStyleActiveForBlock(t,s)&&(e.return=!0,e.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedBlocks",((e,[t,s])=>{const i=this._getAffectedBlocks(t,s);i&&(e.return=i,e.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"getStylePreview",((e,[t,s])=>{const i=this._getStylePreview(t,s);i&&(e.return=i,e.stop())}),{priority:"high"}))}_isStyleEnabledForBlock(e,t){const s=this.editor.model;if(!["ol","ul","li"].includes(e.element))return!1;if(!this._listUtils.isListItemBlock(t))return!1;const i=this._htmlSupport.getGhsAttributeNameForElement(e.element);if("ol"==e.element||"ul"==e.element){if(!s.schema.checkAttribute(t,i))return!1;const l=this._listUtils.isNumberedListType(t.getAttribute("listType"))?"ol":"ul";return e.element==l}return s.schema.checkAttribute(t,i)}_isStyleActiveForBlock(e,t){const s=this._htmlSupport.getGhsAttributeNameForElement(e.element),i=t.getAttribute(s);return this._styleUtils.hasAllClasses(i,e.classes)}_getAffectedBlocks(e,t){return this._isStyleEnabledForBlock(e,t)?"li"==e.element?this._listUtils.expandListBlocksToCompleteItems(t,{withNested:!1}):this._listUtils.expandListBlocksToCompleteList(t):null}_getStylePreview(e,t){const{element:s,classes:i}=e;return"ol"==s||"ul"==s?{tag:s,attributes:{class:i},children:[{tag:"li",children:t}]}:"li"==s?{tag:"ol",children:[{tag:s,attributes:{class:i},children:t}]}:null}}class G extends e.Plugin{static get pluginName(){return"TableStyleSupport"}static get isOfficialPlugin(){return!0}static get requires(){return[F]}init(){const e=this.editor;e.plugins.has("TableEditing")&&(this._styleUtils=e.plugins.get(F),this._tableUtils=this.editor.plugins.get("TableUtils"),this.listenTo(this._styleUtils,"isStyleEnabledForBlock",((e,[t,s])=>{this._isApplicable(t,s)&&(e.return=this._isStyleEnabledForBlock(t,s),e.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedBlocks",((e,[t,s])=>{this._isApplicable(t,s)&&(e.return=this._getAffectedBlocks(t,s),e.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"configureGHSDataFilter",((e,[{block:t}])=>{this.editor.plugins.get("DataFilter").loadAllowedConfig(t.filter((e=>"figcaption"==e.element)).map((e=>({name:"caption",classes:e.classes}))))})))}_isApplicable(e,t){return["td","th"].includes(e.element)?"tableCell"==t.name:!!["thead","tbody"].includes(e.element)&&"table"==t.name}_isStyleEnabledForBlock(e,t){if(["td","th"].includes(e.element)){const s=this._tableUtils.getCellLocation(t),i=t.parent.parent,l=i.getAttribute("headingRows")||0,n=i.getAttribute("headingColumns")||0,r=s.row<l||s.column<n;return"th"==e.element?r:!r}if(["thead","tbody"].includes(e.element)){const s=t.getAttribute("headingRows")||0;return"thead"==e.element?s>0:s<this._tableUtils.getRows(t)}return!1}_getAffectedBlocks(e,t){return this._isStyleEnabledForBlock(e,t)?[t]:null}}var H=s(834);class D extends e.Plugin{static get pluginName(){return"LinkStyleSupport"}static get isOfficialPlugin(){return!0}static get requires(){return[F,"GeneralHtmlSupport"]}init(){const e=this.editor;e.plugins.has("LinkEditing")&&(this._styleUtils=e.plugins.get(F),this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport"),this.listenTo(this._styleUtils,"isStyleEnabledForInlineSelection",((e,[t,s])=>{"a"==t.element&&(e.return=this._isStyleEnabled(t,s),e.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"isStyleActiveForInlineSelection",((e,[t,s])=>{"a"==t.element&&(e.return=this._isStyleActive(t,s),e.stop())}),{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedInlineSelectable",((e,[t,s])=>{if("a"!=t.element)return;const i=this._getAffectedSelectable(t,s);i&&(e.return=i,e.stop())}),{priority:"high"}))}_isStyleEnabled(e,t){const s=this.editor.model;if(t.isCollapsed)return t.hasAttribute("linkHref");for(const e of t.getRanges())for(const t of e.getItems())if((t.is("$textProxy")||s.schema.isInline(t))&&t.hasAttribute("linkHref"))return!0;return!1}_isStyleActive(e,t){const s=this.editor.model,i=this._htmlSupport.getGhsAttributeNameForElement(e.element);if(t.isCollapsed){if(t.hasAttribute("linkHref")){const s=t.getAttribute(i);if(this._styleUtils.hasAllClasses(s,e.classes))return!0}return!1}for(const l of t.getRanges())for(const t of l.getItems())if((t.is("$textProxy")||s.schema.isInline(t))&&t.hasAttribute("linkHref")){const s=t.getAttribute(i);return this._styleUtils.hasAllClasses(s,e.classes)}return!1}_getAffectedSelectable(e,t){const s=this.editor.model;if(t.isCollapsed){const e=t.getAttribute("linkHref");return(0,H.findAttributeRange)(t.getFirstPosition(),"linkHref",e,s)}const i=[];for(const e of t.getRanges()){const t=s.createRange(N(e.start,"linkHref",!0,s),N(e.end,"linkHref",!1,s));for(const e of t.getItems())(e.is("$textProxy")||s.schema.isInline(e))&&e.hasAttribute("linkHref")&&i.push(this.editor.model.createRangeOn(e))}return function(e){for(let t=1;t<e.length;t++){const s=e[t-1].getJoined(e[t]);s&&e.splice(--t,2,s)}return e}(i)}}function N(e,t,s,i){const l=e.textNode||(s?e.nodeAfter:e.nodeBefore);if(!l||!l.hasAttribute(t))return e;const n=l.getAttribute(t);return(0,H.findAttributeRangeBound)(e,t,n,s,i)}class O extends e.Plugin{static get pluginName(){return"StyleEditing"}static get isOfficialPlugin(){return!0}static get requires(){return["GeneralHtmlSupport",F,P,G,D]}init(){const e=this.editor,t=e.plugins.get("DataSchema"),s=e.plugins.get("StyleUtils"),i=e.config.get("style.definitions"),l=s.normalizeConfig(t,i);e.commands.add("style",new U(e,l)),s.configureGHSDataFilter(l)}}class L extends e.Plugin{static get pluginName(){return"Style"}static get isOfficialPlugin(){return!0}static get requires(){return[O,V]}}})(),(window.CKEditor5=window.CKEditor5||{}).style=i})();
@@ -0,0 +1 @@
1
+ !function(t){const s=t.af=t.af||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.ast=t.ast||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.az=t.az||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(s){const t=s.bs=s.bs||{};t.dictionary=Object.assign(t.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t["de-ch"]=t["de-ch"]||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const n=t["en-gb"]=t["en-gb"]||{};n.dictionary=Object.assign(n.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.eo=t.eo||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(s){const t=s["es-co"]=s["es-co"]||{};t.dictionary=Object.assign(t.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.eu=t.eu||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.fa=t.fa||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.gu=t.gu||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.hy=t.hy||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.jv=t.jv||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.kk=t.kk||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.km=t.km||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const n=t.kn=t.kn||{};n.dictionary=Object.assign(n.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.ku=t.ku||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const n=t.nb=t.nb||{};n.dictionary=Object.assign(n.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const n=t.ne=t.ne||{};n.dictionary=Object.assign(n.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.oc=t.oc||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(s){const i=s.si=s.si||{};i.dictionary=Object.assign(i.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(s){const t=s.sl=s.sl||{};t.dictionary=Object.assign(t.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(s){const t=s.sq=s.sq||{};t.dictionary=Object.assign(t.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const i=t.ti=t.ti||{};i.dictionary=Object.assign(i.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.tk=t.tk||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.tt=t.tt||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const s=t.uz=t.uz||{};s.dictionary=Object.assign(s.dictionary||{},{"Block styles":"","Multiple styles":"",Styles:"","Text styles":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -1 +1 @@
1
- {"version":3,"sources":["../theme/stylegrid.css","index.css"],"names":[],"mappings":";;;;AAAA,CAAA,CAAA;ACCA,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC;AAC5E,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO;AACnF,CAAC,CDAC,CAAA;ACCF;ADCA,CAAA,IAAA,CAAA,CAAA;ACCA,CDAC,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,KAAA,CAAA,OAAA,CAAA,CAAA,CAA2B,CAAA;AAC5B,CAAA;ACCA;ADCA,CAAA,EAAA,CAAA,EAAA,CAAA,KAAA,CAAA,KAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,IAAA,CAAA,CAAA;ACCA,CDAC,OAAA,CAAA,CAAA,IAAa,CAAA;ACCd,CDAC,IAAA,CAAA,QAAA,CAAA,OAAA,CAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,KAAA,CAAA,OAAA,CAAA,CAAA,IAAA,CAAiE,CAAA;ACClE,CDAC,OAAA,CAAA,OAAA,CAAA,CAAA,KAAsB,CAAA;AAgBvB,CAAA;ACdA;ADAC,CAAA,EAAA,CAAA,EAAA,CAAA,KAAA,CAAA,KAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,IAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,YAAA,CAAA,CAAA;ACED,CAAC,CDDC,OAAA,CAAA,CAAA,IAAa,CAAA;ACEf,CAAC,CDDC,OAAA,CAAA,OAAA,CAAA,CAAA,KAAA,CAAA,OAA8B,CAAA;ACEhC,CAAC,CDDC,IAAA,CAAA,SAAA,CAAA,CAAA,MAAsB,CAAA;ACExB,CDQC,CAAA;ACPD;ADDE,CAAA,EAAA,CAAA,EAAA,CAAA,KAAA,CAAA,KAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,IAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,YAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,qBAAA,CAAA,CAAA;ACGF,CAAC,CAAC,CDFC,OAAA,CAAA,CAAA,IAAa,CAAA;ACGhB,CAAC,CAAC,CDFC,KAAA,CAAA,OAAA,CAAA,CAAA,MAAqB,CAAA;ACGxB,CAAC,CAAC,CDFC,OAAA,CAAA,OAAA,CAAA,CAAA,IAAA,CAAA,KAA2B,CAAA;ACG9B,CAAC,CAAC,CDFC,KAAA,CAAA,KAAA,CAAA,CAAA,MAAmB,CAAA;ACGtB,CAAC,CAAC,CDFC,IAAA,CAAA,IAAA,CAAA,CAAA,CAAY,CAAA;ACGf,CAAC,CAAC,CDFC,IAAA,CAAA,KAAA,CAAA,CAAA,GAAA,CAAgB,CAAA;ACGnB,CAAC,CDFC,CAAA;ACGF;AACA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-style-panel-columns: 3;\n}\n\n.ck.ck-style-panel .ck-style-grid {\n\tdisplay: grid;\n\tgrid-template-columns: repeat(var(--ck-style-panel-columns),auto);\n\tjustify-content: start;\n\n\t& .ck-style-grid__button {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tflex-direction: column;\n\n\t\t& .ck-style-grid__button__preview {\n\t\t\tdisplay: flex;\n\t\t\talign-content: center;\n\t\t\tjustify-content: flex-start;\n\t\t\talign-items: center;\n\t\t\tflex-grow: 1;\n\t\t\tflex-basis: 100%;\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-style-panel-columns: 3;\n}\n\n.ck.ck-style-panel .ck-style-grid {\n\tdisplay: grid;\n\tgrid-template-columns: repeat(var(--ck-style-panel-columns),auto);\n\tjustify-content: start;\n}\n\n.ck.ck-style-panel .ck-style-grid .ck-style-grid__button {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tflex-direction: column;\n\t}\n\n.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-style-grid__button__preview {\n\t\t\tdisplay: flex;\n\t\t\talign-content: center;\n\t\t\tjustify-content: flex-start;\n\t\t\talign-items: center;\n\t\t\tflex-grow: 1;\n\t\t\tflex-basis: 100%;\n\t\t}\n\n/*# sourceMappingURL=index.css.map */"]}
1
+ {"version":3,"sources":["../theme/stylegrid.css","index.css"],"names":[],"mappings":";;;;AAAA,CAAA;ACCA,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ;AAC3E,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;AAC5E,CAAC,CDAC;;AAEF,CAAA,IAAA,CAAA;ACCA,CDAC,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,KAAA,CAAA,OAAA,CAAA,CAAA,CAA2B;AAC5B;;AAEA,CAAA,EAAA,CAAA,EAAA,CAAA,KAAA,CAAA,KAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,IAAA,CAAA;ACCA,CDAC,OAAA,CAAA,CAAA,IAAa;ACCd,CDAC,IAAA,CAAA,QAAA,CAAA,OAAA,CAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,KAAA,CAAA,OAAA,CAAA,CAAA,IAAA,CAAiE;ACClE,CDAC,OAAA,CAAA,OAAA,CAAA,CAAA,KAAsB;AAgBvB;;AAdC,CAAA,EAAA,CAAA,EAAA,CAAA,KAAA,CAAA,KAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,IAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,YAAA,CAAA;ACED,CAAC,CDDC,OAAA,CAAA,CAAA,IAAa;ACEf,CAAC,CDDC,OAAA,CAAA,OAAA,CAAA,CAAA,KAAA,CAAA,OAA8B;ACEhC,CAAC,CDDC,IAAA,CAAA,SAAA,CAAA,CAAA,MAAsB;ACExB,CDQC;;AARC,CAAA,EAAA,CAAA,EAAA,CAAA,KAAA,CAAA,KAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,IAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,YAAA,CAAA,CAAA,EAAA,CAAA,KAAA,CAAA,qBAAA,CAAA;ACGF,CAAC,CAAC,CDFC,OAAA,CAAA,CAAA,IAAa;ACGhB,CAAC,CAAC,CDFC,KAAA,CAAA,OAAA,CAAA,CAAA,MAAqB;ACGxB,CAAC,CAAC,CDFC,OAAA,CAAA,OAAA,CAAA,CAAA,IAAA,CAAA,KAA2B;ACG9B,CAAC,CAAC,CDFC,KAAA,CAAA,KAAA,CAAA,CAAA,MAAmB;ACGtB,CAAC,CAAC,CDFC,IAAA,CAAA,IAAA,CAAA,CAAA,CAAY;ACGf,CAAC,CAAC,CDFC,IAAA,CAAA,KAAA,CAAA,CAAA,GAAA,CAAgB;ACGnB,CAAC,CDFC;;ACIF,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-style-panel-columns: 3;\n}\n\n.ck.ck-style-panel .ck-style-grid {\n\tdisplay: grid;\n\tgrid-template-columns: repeat(var(--ck-style-panel-columns),auto);\n\tjustify-content: start;\n\n\t& .ck-style-grid__button {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tflex-direction: column;\n\n\t\t& .ck-style-grid__button__preview {\n\t\t\tdisplay: flex;\n\t\t\talign-content: center;\n\t\t\tjustify-content: flex-start;\n\t\t\talign-items: center;\n\t\t\tflex-grow: 1;\n\t\t\tflex-basis: 100%;\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-style-panel-columns: 3;\n}\n\n.ck.ck-style-panel .ck-style-grid {\n\tdisplay: grid;\n\tgrid-template-columns: repeat(var(--ck-style-panel-columns),auto);\n\tjustify-content: start;\n}\n\n.ck.ck-style-panel .ck-style-grid .ck-style-grid__button {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tflex-direction: column;\n\t}\n\n.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-style-grid__button__preview {\n\t\t\tdisplay: flex;\n\t\t\talign-content: center;\n\t\t\tjustify-content: flex-start;\n\t\t\talign-items: center;\n\t\t\tflex-grow: 1;\n\t\t\tflex-basis: 100%;\n\t\t}\n\n/*# sourceMappingURL=index.css.map */"]}
package/dist/index.js CHANGED
@@ -314,6 +314,11 @@ class StyleUtils extends Plugin {
314
314
  */ static get pluginName() {
315
315
  return 'StyleUtils';
316
316
  }
317
+ /**
318
+ * @inheritDoc
319
+ */ static get isOfficialPlugin() {
320
+ return true;
321
+ }
317
322
  /**
318
323
  * @inheritDoc
319
324
  */ constructor(editor){
@@ -556,6 +561,11 @@ class StyleUtils extends Plugin {
556
561
  */ static get pluginName() {
557
562
  return 'StyleUI';
558
563
  }
564
+ /**
565
+ * @inheritDoc
566
+ */ static get isOfficialPlugin() {
567
+ return true;
568
+ }
559
569
  /**
560
570
  * @inheritDoc
561
571
  */ static get requires() {
@@ -834,6 +844,11 @@ class ListStyleSupport extends Plugin {
834
844
  */ static get pluginName() {
835
845
  return 'ListStyleSupport';
836
846
  }
847
+ /**
848
+ * @inheritDoc
849
+ */ static get isOfficialPlugin() {
850
+ return true;
851
+ }
837
852
  /**
838
853
  * @inheritDoc
839
854
  */ static get requires() {
@@ -977,6 +992,11 @@ class TableStyleSupport extends Plugin {
977
992
  */ static get pluginName() {
978
993
  return 'TableStyleSupport';
979
994
  }
995
+ /**
996
+ * @inheritDoc
997
+ */ static get isOfficialPlugin() {
998
+ return true;
999
+ }
980
1000
  /**
981
1001
  * @inheritDoc
982
1002
  */ static get requires() {
@@ -1098,6 +1118,11 @@ class LinkStyleSupport extends Plugin {
1098
1118
  */ static get pluginName() {
1099
1119
  return 'LinkStyleSupport';
1100
1120
  }
1121
+ /**
1122
+ * @inheritDoc
1123
+ */ static get isOfficialPlugin() {
1124
+ return true;
1125
+ }
1101
1126
  /**
1102
1127
  * @inheritDoc
1103
1128
  */ static get requires() {
@@ -1252,6 +1277,11 @@ class LinkStyleSupport extends Plugin {
1252
1277
  */ static get pluginName() {
1253
1278
  return 'StyleEditing';
1254
1279
  }
1280
+ /**
1281
+ * @inheritDoc
1282
+ */ static get isOfficialPlugin() {
1283
+ return true;
1284
+ }
1255
1285
  /**
1256
1286
  * @inheritDoc
1257
1287
  */ static get requires() {
@@ -1287,6 +1317,11 @@ class LinkStyleSupport extends Plugin {
1287
1317
  */ static get pluginName() {
1288
1318
  return 'Style';
1289
1319
  }
1320
+ /**
1321
+ * @inheritDoc
1322
+ */ static get isOfficialPlugin() {
1323
+ return true;
1324
+ }
1290
1325
  /**
1291
1326
  * @inheritDoc
1292
1327
  */ static get requires() {