@ckeditor/ckeditor5-line-height 0.0.0-nightly-20250630.0 → 0.0.0-nightly-20250701.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.
- package/build/line-height.js +1 -1
- package/dist/index-editor.css +0 -6
- package/dist/index.css +0 -10
- package/dist/index.js +1 -1
- package/package.json +7 -7
- package/src/index.js +1 -1
- package/src/lineheight.js +1 -1
- package/src/lineheightcommand.js +1 -1
- package/src/lineheightconfig.d.ts +1 -9
- package/src/lineheightconfig.js +1 -1
- package/src/lineheightediting.js +1 -1
- package/src/lineheightui.js +1 -1
- package/src/utils.js +1 -1
- package/theme/lineheight.css +0 -10
package/build/line-height.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md.
|
|
4
|
-
*/(()=>{var e={168:e=>{"use strict";e.exports=function(e){return e[1]}},237:e=>{"use strict";e.exports=CKEditor5.dll},262:e=>{"use strict";var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}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(n)}},311:(e,t,n)=>{e.exports=n(237)("./src/ui.js")},355:(e,t,n)=>{e.exports=n(237)("./src/icons.js")},357:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},422:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(168),r=n.n(i),o=n(433),s=n.n(o)()(r());s.push([e.id,".ck.ck-line-height-dropdown .ck-dropdown__panel .ck-list{max-height:300px}.ck.ck-line-height-dropdown .ck-dropdown__panel .ck-button.ck-line-height-option{min-width:6em}.ck-content .line-height-single{line-height:1}.ck-content .line-height-double{line-height:2}",""]);const a=s},433:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,i,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(i)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);i&&s[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),t.push(l))}},t}},545:e=>{"use strict";var t,n=(t=[],function(e,n){return t[e]=n,t.filter(Boolean).join("\n")});function i(e,t,i,r){var o;if(i)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var s=void 0!==r.layer;s&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,s&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(e.styleSheet)e.styleSheet.cssText=n(t,o);else{var a=document.createTextNode(o),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(a,c[t]):e.appendChild(a)}}var r={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=r.singletonCounter++,n=r.singleton||(r.singleton=e.insertStyleElement(e));return{update:function(e){i(n,t,!1,e)},remove:function(e){i(n,t,!0,e)}}}},584:(e,t,n)=>{e.exports=n(237)("./src/utils.js")},667:e=>{"use strict";e.exports=function(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}},673:e=>{"use strict";var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var o={},s=[],a=0;a<e.length;a++){var c=e[a],u=i.base?c[0]+i.base:c[0],l=o[u]||0,d="".concat(u," ").concat(l);o[u]=l+1;var p=n(d),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var f=r(h,i);i.byIndex=a,t.splice(a,0,{identifier:d,updater:f,references:1})}s.push(d)}return s}function r(e,t){var n=t.domAPI(t);n.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;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var o=i(e=e||[],r=r||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var a=n(o[s]);t[a].references--}for(var c=i(e,r),u=0;u<o.length;u++){var l=n(o[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=c}}},782:(e,t,n)=>{e.exports=n(237)("./src/core.js")},783:(e,t,n)=>{e.exports=n(237)("./src/engine.js")}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={id:i,exports:{}};return e[i](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{"use strict";n.r(i),n.d(i,{LineHeight:()=>D,LineHeightCommand:()=>l,LineHeightEditing:()=>b,LineHeightUI:()=>N});var e=n(782);function t(){const e=["lineHeight","48YmTMFS","134448FTwBWy","17942Stxdwg","18iWoykg","24VogLiM","227580DxMdvZ","54873nyCmkO","174510xvQovA","581630xoZEWV","145455xUdYyh"];return(t=function(){return e})()}const r=o;function o(e,n){const i=t();return(o=function(e,t){return i[e-=130]})(e,n)}!function(e){const t=o,n=e();for(;;)try{if(147884===parseInt(t(139))/1+parseInt(t(138))/2+-parseInt(t(135))/3*(-parseInt(t(130))/4)+parseInt(t(133))/5+parseInt(t(140))/6*(-parseInt(t(134))/7)+parseInt(t(137))/8*(-parseInt(t(132))/9)+parseInt(t(131))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(t);const s=r(136);var a=n(584);const c=u;function u(e,t){const n=d();return(u=function(e,t){return n[e-=431]})(e,t)}!function(e){const t=u,n=e();for(;;)try{if(197165===parseInt(t(457))/1+parseInt(t(431))/2*(-parseInt(t(440))/3)+parseInt(t(458))/4+-parseInt(t(433))/5*(parseInt(t(445))/6)+-parseInt(t(434))/7+-parseInt(t(453))/8*(-parseInt(t(446))/9)+parseInt(t(454))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(d);class l extends e.Command{[c(436)](){const e=c,t=this[e(455)][e(438)][e(452)],n=(0,a.first)(t[e(450)][e(439)]());this[e(444)]=Boolean(n)&&this[e(441)](n),this[e(443)]=this[e(444)]&&n[e(432)](s)}[c(449)](e={}){const t=c,n=this[t(455)][t(438)],i=n[t(452)][t(450)],r=e[t(443)];n[t(435)](e=>{const n=t,o=Array[n(451)](i[n(439)]())[n(447)](e=>this[n(441)](e));for(const t of o)r?e[n(456)](s,r,t):e[n(437)](s,t)})}[c(441)](e){const t=c;return this[t(455)][t(438)][t(448)][t(442)](e,s)}}function d(){const e=["1236905kNLbyT","1907521AyVFSm","change","refresh","removeAttribute","model","getSelectedBlocks","6pMIIVQ","_canHaveLineHeight","checkAttribute","value","isEnabled","6iRxPCW","265653vsumNL","filter","schema","execute","selection","from","document","56IoufjQ","3972740FIPTYI","editor","setAttribute","316769GfZYCf","254420zmwZkt","267218VHwlGG","getAttribute"];return(d=function(){return e})()}var p=n(783);!function(e){const t=g,n=e();for(;;)try{if(771624===-parseInt(t(304))/1+-parseInt(t(298))/2+-parseInt(t(295))/3*(-parseInt(t(314))/4)+-parseInt(t(302))/5+parseInt(t(300))/6+parseInt(t(320))/7+parseInt(t(305))/8)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(v);const h={get single(){const e=g;return{title:e(296),model:e(325),view:{key:e(319),value:e(301)}}},get double(){const e=g;return{title:e(316),model:e(313),view:{key:e(319),value:e(321)}}}};function f(e){const t=g;return t(317)==typeof e&&t(310)===e[t(323)]()}function m(e){const t=g;return e[t(299)][t(315)](n=>f(n)?{title:String(e[t(309)]),model:t(310)}:(t(297)==typeof n&&(n=String(n)),t(317)!=typeof n?n:parseFloat(n)?{title:n,model:n,view:{name:t(306),styles:{"line-height":n}}}:function(e){const t=g;return t(317)==typeof e?h[e]:h[e[t(307)]]}(n)))[t(303)](e=>void 0!==e)}function g(e,t){const n=v();return(g=function(e,t){return n[e-=294]})(e,t)}function v(){const e=["span","model","push","defaultValue","default","view","value","double","776YMXgmQ","map","Double","string","values","class","4136790XECNtQ","line-height-double","key","toLowerCase","line-height:","single","style","18030pPZCSQ","Single","number","2056206EKjpUp","options","3035244XWlkfM","line-height-single","1259415oAgZze","filter","926376PYCpXv","5721616xReghb"];return(v=function(){return e})()}function w(){const e=["isPremiumPlugin","conversion","40MksXfv","354419VFDEJK","9eFZgvH","string","pluginName","lineHeight","lineHeight.options","editor","href","508630juJPJK","15280tUyYYo","line-height","$block","get","519273qeCmBi","downcast","408gdSymg","setAttributeProperties","slice","define","attributeToAttribute","schema","isOfficialPlugin","map","values","_prepareAnyValueConverters","getStyle","_preparePredefinedConverters","style","model","init","LineHeightEditing","lineHeight.supportAllValues","join","add","extend","line-height-invalid-use-of-named-presets","filter","commands","143XpEWgT","default","upcast","_validateConfig","config","fromCharCode","afterInit","8365zPFTyw","1955639kBkNwZ","length","for","199288sqpxNl","includes","lineHeight.defaultValue"];return(w=function(){return e})()}const y=I;function I(e,t){const n=w();return(I=function(e,t){return n[e-=467]})(e,t)}!function(e){const t=I,n=e();for(;;)try{if(341034===-parseInt(t(511))/1+parseInt(t(520))/2+-parseInt(t(512))/3*(-parseInt(t(505))/4)+-parseInt(t(501))/5*(parseInt(t(471))/6)+parseInt(t(502))/7+-parseInt(t(510))/8*(parseInt(t(469))/9)+-parseInt(t(519))/10*(-parseInt(t(494))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(w);class b extends e.Plugin{static get[y(514)](){return y(486)}static get[y(477)](){return!0}static get[y(508)](){return!0}constructor(e){const t=y;super(e),e[t(498)][t(474)](s,{defaultValue:1.5,supportAllValues:!1,options:[1,1.15,t(495),2,2.5,3]})}[y(485)](){const e=y,t=this[e(517)];this[e(497)](),t[e(484)][e(476)][e(490)](e(467),{allowAttributes:s}),t[e(484)][e(476)][e(472)](s,{isFormatting:!0}),t[e(493)][e(489)](s,new l(t)),this[e(517)][e(498)][e(468)](e(487))?this[e(480)]():this[e(482)]()}[y(500)](){!async function(e){const t=m([99,89,65,122,68,112,72,105,79,54,77,84,75,113,108,102,121,76,111,49,107,98,56,119,114,109,106,101,74,73,115,116,117,118,78,88,80,70,53,100,97,90,81,103,51,71,104,57,85,52,69,55,82,83,50,48,86,87,67,66,120,110]),n=window[m([68,97,116,101])][m([110,111,119])](),i=e[m([101,100,105,116,111,114])],r=new(window[m([80,114,111,109,105,115,101])])(e=>{i[m([111,110,99,101])](m([114,101,97,100,121]),e)}),o={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},s=i[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(e){const t=[new(window[m([80,114,111,109,105,115,101])])(e=>setTimeout(e,605900)),r[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(e=>{let t=0;i[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(n,i)=>{i[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504==t&&(e(),n[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](t)[m([116,104,101,110])](()=>e)}function u(e){return e[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](l(e)):null}function l(e){return window[m([97,116,111,98])](e[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function d(e){let t=5381;function n(e){for(let n=0;n<e[m([108,101,110,103,116,104])];n++){const i=e[m([99,104,97,114,67,111,100,101,65,116])](n);t=(t<<5)+t+i,t&=t}}return function e(t){Array[m([105,115,65,114,114,97,121])](t)?t[m([102,111,114,69,97,99,104])](e):t&&typeof t==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](t)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([t,i])=>{n(t),e(i)}):n(window[m([83,116,114,105,110,103])](t))}(e),t>>>0}function p(e){return e[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(e){return e[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function f(){}function m(e){const t=I;return e[t(478)](e=>String[t(499)](e))[t(488)]("")}!function(e){const n=function(){const e=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let n=m([99]);for(let i=0;i<e[m([108,101,110,103,116,104])];i+=2){let r=window[m([112,97,114,115,101,73,110,116])](e[m([115,117,98,115,116,114,105,110,103])](i,i+2));r>=t[m([108,101,110,103,116,104])]&&(r-=t[m([108,101,110,103,116,104])]),n+=t[r]}return n}();i[n]=m([108,105,110,101,72,101,105,103,104,116,76,105,99,101,110,115,101,75,101,121])+e,e!=m([86,97,108,105,100])&&async function(){await r,i[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=f,i[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=f,i[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let e,t=null,f=null;try{return s==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(e=function(){const e=s[m([115,112,108,105,116])](m([46]));return 3!=e[m([108,101,110,103,116,104])]?null:t(e[1]);function t(e){const t=u(e);return t&&n()?t:null;function n(){const e=t[m([106,116,105])],n=window[m([112,97,114,115,101,73,110,116])](e[m([115,117,98,115,116,114,105,110,103])](e[m([108,101,110,103,116,104])]-8),16),i={...t,[m([106,116,105])]:e[m([115,117,98,115,116,114,105,110,103])](0,e[m([108,101,110,103,116,104])]-8)};return delete i[m([118,99])],d(i)==n}}}(),e?(e[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(f=function(e,t){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(o())return c(m([86,97,108,105,100]));s(),i[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let u=!1;const l=(0,a.uid)();function f(e){return!!e&&(typeof e===m([111,98,106,101,99,116])||typeof e===m([102,117,110,99,116,105,111,110]))&&typeof e[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof e[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(i){a(i)[m([116,104,101,110])](e=>e&&e[m([115,116,97,116,117,115])]==m([111,107])?p(d(l+t))!=e[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](e=>(o(),e),()=>{const e=s();return null==e?(o(),m([86,97,108,105,100])):m(n-e>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const r=36e5;function o(){const t=m([108,108,99,116,45])+p(d(e)),i=h(p(window[m([77,97,116,104])][m([99,101,105,108])](n/r)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](t,i)}function s(){const t=m([108,108,99,116,45])+p(d(e)),n=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](t);return n?window[m([112,97,114,115,101,73,110,116])](h(n),16)*r:null}function a(e){return new(window[m([80,114,111,109,105,115,101])])((t,n)=>{e[m([116,104,101,110])](t,n),window[m([115,101,116,84,105,109,101,111,117,116])](n,12e4)})}}i[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(t,n)=>{if(n[0]!=e)return c(m([85,115,97,103,101,76,105,109,105,116]));n[1]={...n[1],[m([114,101,113,117,101,115,116,73,100])]:l}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),i[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),e=>{f(e[m([114,101,116,117,114,110])])&&(u=!0,g(e[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),r[m([116,104,101,110])](()=>{u||c(m([85,115,97,103,101,76,105,109,105,116]))})});function o(){return i[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function s(){i[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(e[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],e[m([106,116,105])])),await async function(){let e=!0;try{const i=s[m([115,112,108,105,116])](m([46])),[r,o,a]=i;return t(r),await n(r,o,a),e}catch{return!1}function t(t){const n=u(t);n&&n[m([97,108,103])]==m([69,83,50,53,54])||(e=!1)}async function n(t,n,i){const r=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](l(i),e=>e[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](t+m([46])+n),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),o,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,r,s)||(e=!1)}}()?function(){const t=e[m([102,101,97,116,117,114,101,115])];return!(!t||!t[m([105,110,99,108,117,100,101,115])](m([42]))&&!t[m([105,110,99,108,117,100,101,115])](m([76,72])))}()?function(){const t=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](e[m([108,105,99,101,110,115,101,84,121,112,101])])?n/1e3:1751241600;return e[m([101,120,112])]<t}()?m([69,120,112,105,114,101,100]):function(){const t=I,n=e[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!n||0==n[m([108,101,110,103,116,104])])return!0;const{hostname:i}=new URL(window[m([108,111,99,97,116,105,111,110])][t(518)]);if(n[m([105,110,99,108,117,100,101,115])](i))return!0;const r=i[m([115,112,108,105,116])](m([46]));return n[m([102,105,108,116,101,114])](e=>e[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](e=>e[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](e=>e[m([108,101,110,103,116,104])]<=r[m([108,101,110,103,116,104])])[m([109,97,112])](e=>Array(r[m([108,101,110,103,116,104])]-e[m([108,101,110,103,116,104])])[m([102,105,108,108])](e[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](e))[m([115,111,109,101])](e=>r[m([101,118,101,114,121])]((t,n)=>e[n]===t||e[n]===m([42])))}()?(e[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(t=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),e[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(t=c(m([84,114,105,97,108,76,105,109,105,116]))),await(t&&f?new(window[m([80,114,111,109,105,115,101])])((e,n)=>{t[m([116,104,101,110])](e,n),f[m([116,104,101,110])](t=>{t!=m([86,97,108,105,100])&&e(t)},n)}):t||f||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}[y(497)](){const e=y,t=this[e(517)];if(!t[e(498)][e(468)](e(487)))return;const n=t[e(498)][e(468)](e(516))[e(492)](t=>e(513)==typeof t&&!f(t)&&isNaN(Number(t)));if(n[e(503)])throw new a.CKEditorError(e(491),null,{namedPresets:n})}[y(480)](){const e=y,t=this[e(517)],n=this[e(517)][e(498)][e(468)](e(507));t[e(509)][e(504)](e(470))[e(475)]({model:{key:s},view:t=>String(t)===String(n)?null:{key:e(483),value:{"line-height":t}}}),t[e(509)][e(504)](e(496))[e(475)]({model:{key:s,value:t=>{const i=e;let r=t[i(481)](i(521));return(0,p.isPercentageStyleValue)(r)&&(r=String(Number(r[i(473)](0,-1))/100)),String(r)===String(n)?null:r}},view:{styles:{"line-height":/.*/}}})}[y(482)](){const e=y,t=this[e(517)],n=this[e(517)][e(498)][e(468)](e(507)),i=m(this[e(517)][e(498)][e(468)](e(515)))[e(492)](t=>t[e(484)]),r=function(e,t){const n=g,i={model:{key:e,values:[]},view:{}};for(const e of t)n(319)===e[n(311)]?.[n(322)]?(i[n(307)][n(318)][n(308)](e[n(307)]),i[n(311)][e[n(307)]]={key:n(319),value:e[n(311)][n(312)]}):(i[n(307)][n(318)][n(308)](e[n(307)]),i[n(311)][e[n(307)]]={key:n(294),value:n(324)+e[n(307)]+";"});return i}(s,i);t[e(509)][e(475)](r),t[e(509)][e(504)](e(496))[e(475)]({view:{styles:{"line-height":/[\s\S]+/}},model:{key:s,value:t=>{const i=e;let o=t[i(481)](i(521));return(0,p.isPercentageStyleValue)(o)&&(o=String(Number(o[i(473)](0,-1))/100)),o===String(n)?null:r[i(484)][i(479)][i(506)](o)?o:null}}})}}var L=n(311),H=n(355),_=n(673),k=n.n(_),x=n(545),C=n.n(x),E=n(262),O=n.n(E),S=n(667),P=n.n(S),A=n(357),V=n.n(A),K=n(422),T={attributes:{"data-cke":!0}};T.setAttributes=P(),T.insert=O().bind(null,"head"),T.domAPI=C(),T.insertStyleElement=V();k()(K.A,T);K.A&&K.A.locals&&K.A.locals;class N extends e.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"LineHeightUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const e={accessibleLabel:(0,this.editor.t)("Line height"),options:this._prepareListOptions()};this._registerToolbarComponent(e),this._registerMenuBarComponent(e),this.licenseKey=this.editor.config.get("licenseKey");const t=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let e;for(const n in t){const i=n,r=t[i];if("lineHeightLicenseKeyValid"==r||"lineHeightLicenseKeyInvalid"==r||"lineHeightLicenseKeyExpired"==r||"lineHeightLicenseKeyDomainLimit"==r||"lineHeightLicenseKeyNotAllowed"==r||"lineHeightLicenseKeyEvaluationLimit"==r||"lineHeightLicenseKeyTrialLimit"==r||"lineHeightLicenseKeyUsageLimit"==r){delete t[i],e=r,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"lineHeightLicenseKeyInvalid"==e&&t._showLicenseError("invalid"),"lineHeightLicenseKeyExpired"==e&&t._showLicenseError("expired"),"lineHeightLicenseKeyDomainLimit"==e&&t._showLicenseError("domainLimit"),"lineHeightLicenseKeyNotAllowed"==e&&t._showLicenseError("featureNotAllowed","LineHeight"),"lineHeightLicenseKeyEvaluationLimit"==e&&t._showLicenseError("evaluationLimit"),"lineHeightLicenseKeyTrialLimit"==e&&t._showLicenseError("trialLimit"),"lineHeightLicenseKeyUsageLimit"==e&&t._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}_shouldRenderCustomValueOption(){return this.editor.config.get("lineHeight.supportAllValues")}_getLocalizedLineHeightOptions(){const e=this.editor,t=e.t,n=e.config.get("lineHeight"),i={Single:t({string:"Single",id:"LINE_HEIGHT_SINGLE_OPTION_LABEL"}),Double:t({string:"Double",id:"LINE_HEIGHT_DOUBLE_OPTION_LABEL"})};return m(n).map(e=>{const t=i[e.title];return t&&t!=e.title&&(e=Object.assign({},e,{title:t})),e})}_prepareListOptions(){const e=this.editor.commands.get("lineHeight"),t=this._getLocalizedLineHeightOptions(),n=new a.Collection;for(const i of t){const t={type:"button",model:new L.UIModel({commandName:s,class:"ck-line-height-option",role:"menuitemradio",label:i.title,withText:!0})};"default"===i.model?(t.model.bind("isOn").to(e,"value",e=>!e),t.model.commandParam=void 0):(t.model.bind("isOn").to(e,"value",e=>e===i.model),t.model.commandParam=i.model),n.add(t)}if(this._shouldRenderCustomValueOption()){const e=this._getCustomValueOptionDefinition(t);n.add(e)}return n}_getCustomValueOptionDefinition(e){const t=this.editor,n=t.t,i=t.commands.get(s),r=e.map(e=>e.model),o={type:"button",model:new L.UIModel({commandName:s,class:"ck-line-height-option",role:"menuitemradio",withText:!0})};return o.model.bind("commandParam").to(i,"value"),o.model.bind("isOn").to(i,"value",e=>!r.includes(String(e))),o.model.bind("label").to(i,"value",e=>n({string:"Custom: %0",id:"LINE_HEIGHT_CUSTOM_OPTION_LABEL"},String(e))),o}_registerToolbarComponent({accessibleLabel:e,options:t}){const n=this.editor,i=n.commands.get("lineHeight");n.ui.componentFactory.add(s,r=>{const o=(0,L.createDropdown)(r);return(0,L.addListToDropdown)(o,t,{role:"menu",ariaLabel:e}),o.buttonView.set({label:e,tooltip:!0,icon:H.IconLineHeight}),o.extendTemplate({attributes:{class:["ck-line-height-dropdown"]}}),o.bind("isEnabled").to(i),this.listenTo(o,"execute",e=>{n.execute(e.source.commandName,{value:e.source.commandParam}),n.editing.view.focus()}),o.once("change:isOpen",()=>{const e=o.panelView.children.first;this._attachCustomOptionVisibilityHandler(o,t,e)}),o})}_registerMenuBarComponent({accessibleLabel:e,options:t}){const n=this.editor,i=n.commands.get("lineHeight");n.ui.componentFactory.add("menuBar:"+s,r=>{const o=new L.MenuBarMenuView(r);o.buttonView.set({label:e,icon:H.IconLineHeight}),o.bind("isEnabled").to(i);const s=new L.MenuBarMenuListView(r);for(const e of t){const t=new L.MenuBarMenuListItemView(r,o),i=new L.MenuBarMenuListItemButtonView(r);i.set({role:"menuitemradio",isToggleable:!0}),i.bind(...Object.keys(e.model)).to(e.model),i.delegate("execute").to(o),i.on("execute",()=>{n.execute(e.model.commandName,{value:e.model.commandParam}),n.editing.view.focus()}),t.children.add(i),s.items.add(t)}return o.panelView.children.add(s),this._attachCustomOptionVisibilityHandler(o,t,s),o})}_attachCustomOptionVisibilityHandler(e,t,n){if(!this._shouldRenderCustomValueOption())return;const i=()=>{e.isOpen&&(n.items.last.isVisible=Boolean(t.last.model.isOn))};i(),e.on("change:isOpen",()=>{i()})}}var M=j;function B(){var e=["requires","5327511oIOsxp","1oSAXjP","856656pWVbGZ","1415146SvLyCt","3585748IFYKCO","pluginName","isPremiumPlugin","4183180OpvKBN","369176mLIUof","isOfficialPlugin","LineHeight","657ZtQJJb","4952412nLTrtr"];return(B=function(){return e})()}function j(e,t){var n=B();return(j=function(e,t){return n[e-=187]})(e,t)}!function(e){for(var t=j,n=e();;)try{if(578204===parseInt(t(200))/1*(-parseInt(t(188))/2)+-parseInt(t(187))/3+-parseInt(t(189))/4+-parseInt(t(192))/5+-parseInt(t(197))/6+parseInt(t(199))/7+parseInt(t(193))/8*(parseInt(t(196))/9))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(B);class D extends e.Plugin{static get[M(198)](){return[b,N]}static get[M(190)](){return M(195)}static get[M(194)](){return!0}static get[M(191)](){return!0}}function F(e,t){var n=U();return(F=function(e,t){return n[e-=375]})(e,t)}function U(){var e=["379267XOQvAL","9LgLnLT","5XOzEmK","1691584xvvfwQ","13024iiBoVb","63838dExCGv","674922sscooo","18016GdLrHi","6crGlmi","425770tHeBDr","6oiWvMe"];return(U=function(){return e})()}!function(e){for(var t=F,n=e();;)try{if(131009===-parseInt(t(380))/1*(parseInt(t(383))/2)+parseInt(t(385))/3*(parseInt(t(382))/4)+parseInt(t(377))/5*(parseInt(t(381))/6)+-parseInt(t(375))/7+parseInt(t(378))/8+parseInt(t(376))/9*(parseInt(t(384))/10)+parseInt(t(379))/11)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(U)})(),(window.CKEditor5=window.CKEditor5||{}).lineHeight=i})();
|
|
4
|
+
*/(()=>{var e={168:e=>{"use strict";e.exports=function(e){return e[1]}},237:e=>{"use strict";e.exports=CKEditor5.dll},262:e=>{"use strict";var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}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(n)}},311:(e,t,n)=>{e.exports=n(237)("./src/ui.js")},355:(e,t,n)=>{e.exports=n(237)("./src/icons.js")},357:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},422:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(168),r=n.n(i),o=n(433),s=n.n(o)()(r());s.push([e.id,".ck-content .line-height-single{line-height:1}.ck-content .line-height-double{line-height:2}",""]);const a=s},433:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,i,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(i)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);i&&s[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},545:e=>{"use strict";var t,n=(t=[],function(e,n){return t[e]=n,t.filter(Boolean).join("\n")});function i(e,t,i,r){var o;if(i)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var s=void 0!==r.layer;s&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,s&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(e.styleSheet)e.styleSheet.cssText=n(t,o);else{var a=document.createTextNode(o),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(a,c[t]):e.appendChild(a)}}var r={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=r.singletonCounter++,n=r.singleton||(r.singleton=e.insertStyleElement(e));return{update:function(e){i(n,t,!1,e)},remove:function(e){i(n,t,!0,e)}}}},584:(e,t,n)=>{e.exports=n(237)("./src/utils.js")},667:e=>{"use strict";e.exports=function(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}},673:e=>{"use strict";var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var o={},s=[],a=0;a<e.length;a++){var c=e[a],l=i.base?c[0]+i.base:c[0],u=o[l]||0,d="".concat(l," ").concat(u);o[l]=u+1;var h=n(d),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==h)t[h].references++,t[h].updater(f);else{var p=r(f,i);i.byIndex=a,t.splice(a,0,{identifier:d,updater:p,references:1})}s.push(d)}return s}function r(e,t){var n=t.domAPI(t);n.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;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var o=i(e=e||[],r=r||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var a=n(o[s]);t[a].references--}for(var c=i(e,r),l=0;l<o.length;l++){var u=n(o[l]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=c}}},782:(e,t,n)=>{e.exports=n(237)("./src/core.js")},783:(e,t,n)=>{e.exports=n(237)("./src/engine.js")}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={id:i,exports:{}};return e[i](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{"use strict";n.r(i),n.d(i,{LineHeight:()=>N,LineHeightCommand:()=>a,LineHeightEditing:()=>w,LineHeightUI:()=>A});var e=n(782),t=n(584);function r(){const e=["getSelectedBlocks","refresh","4598073bKWTHI","value","model","document","1571452BsvTlg","schema","execute","2772Cxwgbm","setAttribute","126978Dpygoa","lineHeight","522255HdHRAS","2AemqMS","3325864vkUCvc","checkAttribute","selection","_canHaveLineHeight","1395wgAeql","from","1782935miUrAG","filter","isEnabled","editor","removeAttribute","change","getAttribute"];return(r=function(){return e})()}const o=s;function s(e,t){const n=r();return(s=function(e,t){return n[e-=375]})(e,t)}!function(e){const t=s,n=e();for(;;)try{if(218999===parseInt(t(382))/1*(-parseInt(t(385))/2)+parseInt(t(384))/3+parseInt(t(377))/4+-parseInt(t(390))/5*(-parseInt(t(380))/6)+-parseInt(t(392))/7+parseInt(t(386))/8+-parseInt(t(401))/9)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(r);class a extends e.Command{[o(400)](){const e=o,n=this[e(395)][e(375)][e(376)],i=(0,t.first)(n[e(388)][e(399)]());this[e(394)]=Boolean(i)&&this[e(389)](i),this[e(402)]=this[e(394)]&&i[e(398)](e(383))}[o(379)](e={}){const t=o,n=this[t(395)][t(375)],i=n[t(376)][t(388)],r=e[t(402)];n[t(397)](e=>{const n=t,o=Array[n(391)](i[n(399)]())[n(393)](e=>this[n(389)](e));for(const t of o)r?e[n(381)](n(383),r,t):e[n(396)](n(383),t)})}[o(389)](e){const t=o;return this[t(395)][t(375)][t(378)][t(387)](e,t(383))}}var c=n(783);!function(e){const t=d,n=e();for(;;)try{if(604063===-parseInt(t(492))/1+-parseInt(t(512))/2*(-parseInt(t(495))/3)+parseInt(t(511))/4*(parseInt(t(518))/5)+parseInt(t(519))/6*(parseInt(t(497))/7)+parseInt(t(513))/8+-parseInt(t(506))/9*(parseInt(t(509))/10)+-parseInt(t(508))/11*(parseInt(t(516))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(f);const l={get single(){const e=d;return{title:e(499),model:e(500),view:{key:e(498),value:e(490)}}},get double(){const e=d;return{title:e(517),model:e(491),view:{key:e(498),value:e(520)}}}};function u(e){const t=d;return t(515)==typeof e&&t(504)===e[t(505)]()}function d(e,t){const n=f();return(d=function(e,t){return n[e-=490]})(e,t)}function h(e){const t=d;return e[t(525)][t(523)](n=>u(n)?{title:String(e[t(503)]),model:t(504)}:(t(501)==typeof n&&(n=String(n)),t(515)!=typeof n?n:parseFloat(n)?{title:n,model:n,view:{name:t(507),styles:{"line-height":n}}}:function(e){const t=d;return t(515)==typeof e?l[e]:l[e[t(502)]]}(n)))[t(521)](e=>void 0!==e)}function f(){const e=["1963420lGTecO","39352XvPkle","7970392GmvcxE","push","string","5752344qrNzCK","Double","10EWWISb","6iQfKOt","line-height-double","filter","values","map","value","options","line-height-single","double","682425KCuZUd","view","line-height:","51txqRib","key","7822227FcLrii","class","Single","single","number","model","defaultValue","default","toLowerCase","1575JkJooR","span","22PypZCb","67700UsImeT","style"];return(f=function(){return e})()}const p=m;function g(){const e=["_validateConfig","attributeToAttribute","369975hOuOBV","model","includes","length","5ZIyyhX","values","278692qORUMf","36gqAOLz","schema","string","style","lineHeight.options","define","for","fromCharCode","pluginName","lineHeight.defaultValue","getStyle","map","commands","init","710982mjlqlB","isOfficialPlugin","1644357IbgKWF","$block","46570TspPvu","join","config","extend","setAttributeProperties","downcast","lineHeight","afterInit","upcast","lineHeight.supportAllValues","default","isPremiumPlugin","line-height","572920QGtCVU","slice","_prepareAnyValueConverters","LineHeightEditing","line-height-invalid-use-of-named-presets","add","conversion","80NTCrIh","_preparePredefinedConverters","get","186298Szbswf","2msfeCl","editor","filter","href"];return(g=function(){return e})()}function m(e,t){const n=g();return(m=function(e,t){return n[e-=187]})(e,t)}!function(e){const t=m,n=e();for(;;)try{if(152410===parseInt(t(214))/1*(-parseInt(t(238))/2)+parseInt(t(189))/3+parseInt(t(195))/4+-parseInt(t(193))/5*(-parseInt(t(210))/6)+parseInt(t(237))/7*(parseInt(t(234))/8)+parseInt(t(196))/9*(-parseInt(t(227))/10)+-parseInt(t(212))/11)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(g);class w extends e.Plugin{static get[p(204)](){return p(230)}static get[p(211)](){return!0}static get[p(225)](){return!0}constructor(e){const t=p;super(e),e[t(216)][t(201)](t(220),{defaultValue:1.5,supportAllValues:!1,options:[1,1.15,t(224),2,2.5,3]})}[p(209)](){const e=p,t=this[e(239)];this[e(187)](),t[e(190)][e(197)][e(217)](e(213),{allowAttributes:e(220)}),t[e(190)][e(197)][e(218)](e(220),{isFormatting:!0}),t[e(208)][e(232)](e(220),new a(t)),this[e(239)][e(216)][e(236)](e(223))?this[e(229)]():this[e(235)]()}[p(221)](){!async function(e){const n=g([106,69,113,48,109,68,101,112,118,86,52,88,103,51,53,97,83,90,98,79,57,66,99,65,114,107,77,70,67,100,80,105,102,78,120,82,50,84,117,119,108,56,71,54,72,75,55,85,76,73,116,121,89,81,74,111,104,49,122,87,115,110]),i=window[g([68,97,116,101])][g([110,111,119])](),r=e[g([101,100,105,116,111,114])],o=new(window[g([80,114,111,109,105,115,101])])(e=>{r[g([111,110,99,101])](g([114,101,97,100,121]),e)}),s={[g([107,116,121])]:g([69,67]),[g([117,115,101])]:g([115,105,103]),[g([99,114,118])]:g([80,45,50,53,54]),[g([120])]:g([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[g([121])]:g([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[g([97,108,103])]:g([69,83,50,53,54])},a=r[g([99,111,110,102,105,103])][g([103,101,116])](g([108,105,99,101,110,115,101,75,101,121]));function c(e){const t=[new(window[g([80,114,111,109,105,115,101])])(e=>setTimeout(e,605900)),o[g([116,104,101,110])](()=>new(window[g([80,114,111,109,105,115,101])])(e=>{let t=0;r[g([109,111,100,101,108])][g([111,110])](g([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(n,i)=>{i[0][g([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504==t&&(e(),n[g([111,102,102])]())})}))];return window[g([80,114,111,109,105,115,101])][g([114,97,99,101])](t)[g([116,104,101,110])](()=>e)}function l(e){return e[g([115,116,97,114,116,115,87,105,116,104])](g([101,121]))?JSON[g([112,97,114,115,101])](u(e)):null}function u(e){return window[g([97,116,111,98])](e[g([114,101,112,108,97,99,101])](/-/g,g([43]))[g([114,101,112,108,97,99,101])](/_/g,g([47])))}function d(e){let t=5381;function n(e){for(let n=0;n<e[g([108,101,110,103,116,104])];n++){const i=e[g([99,104,97,114,67,111,100,101,65,116])](n);t=(t<<5)+t+i,t&=t}}return function e(t){Array[g([105,115,65,114,114,97,121])](t)?t[g([102,111,114,69,97,99,104])](e):t&&typeof t==g([111,98,106,101,99,116])?Object[g([101,110,116,114,105,101,115])](t)[g([115,111,114,116])]()[g([102,111,114,69,97,99,104])](([t,i])=>{n(t),e(i)}):n(window[g([83,116,114,105,110,103])](t))}(e),t>>>0}function h(e){return e[g([116,111,83,116,114,105,110,103])](16)[g([112,97,100,83,116,97,114,116])](8,g([48]))}function f(e){return e[g([115,112,108,105,116])]("")[g([114,101,118,101,114,115,101])]()[g([106,111,105,110])]("")}function p(){}function g(e){const t=m;return e[t(207)](e=>String[t(203)](e))[t(215)]("")}!function(e){const t=function(){const e=window[g([83,116,114,105,110,103])](window[g([112,101,114,102,111,114,109,97,110,99,101])][g([110,111,119])]())[g([114,101,112,108,97,99,101])](g([46]),"");let t=g([106]);for(let i=0;i<e[g([108,101,110,103,116,104])];i+=2){let r=window[g([112,97,114,115,101,73,110,116])](e[g([115,117,98,115,116,114,105,110,103])](i,i+2));r>=n[g([108,101,110,103,116,104])]&&(r-=n[g([108,101,110,103,116,104])]),t+=n[r]}return t}();r[t]=g([108,105,110,101,72,101,105,103,104,116,76,105,99,101,110,115,101,75,101,121])+e,e!=g([86,97,108,105,100])&&async function(){await o,r[g([109,111,100,101,108])][g([99,104,97,110,103,101])]=p,r[g([109,111,100,101,108])][g([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,r[g([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](g([109,111,100,101,108]))}()}(await async function(){let e,n=null,p=null;try{return a==g([71,80,76])?g([78,111,116,65,108,108,111,119,101,100]):(e=function(){const e=a[g([115,112,108,105,116])](g([46]));return 3!=e[g([108,101,110,103,116,104])]?null:t(e[1]);function t(e){const t=l(e);return t&&n()?t:null;function n(){const e=t[g([106,116,105])],n=window[g([112,97,114,115,101,73,110,116])](e[g([115,117,98,115,116,114,105,110,103])](e[g([108,101,110,103,116,104])]-8),16),i={...t,[g([106,116,105])]:e[g([115,117,98,115,116,114,105,110,103])](0,e[g([108,101,110,103,116,104])]-8)};return delete i[g([118,99])],d(i)==n}}}(),e?(e[g([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(e,n){return new(window[g([80,114,111,109,105,115,101])])(c=>{if(s())return c(g([86,97,108,105,100]));a(),r[g([100,101,99,111,114,97,116,101])](g([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,t.uid)();function p(e){return!!e&&(typeof e===g([111,98,106,101,99,116])||typeof e===g([102,117,110,99,116,105,111,110]))&&typeof e[g([116,104,101,110])]===g([102,117,110,99,116,105,111,110])&&typeof e[g([99,97,116,99,104])]===g([102,117,110,99,116,105,111,110])}function m(t){a(t)[g([116,104,101,110])](e=>e&&e[g([115,116,97,116,117,115])]==g([111,107])?h(d(u+n))!=e[g([118,101,114,105,102,105,99,97,116,105,111,110])]?g([85,115,97,103,101,76,105,109,105,116]):g([86,97,108,105,100]):g([85,115,97,103,101,76,105,109,105,116]))[g([116,104,101,110])](e=>(o(),e),()=>{const e=s();return null==e?(o(),g([86,97,108,105,100])):g(i-e>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[g([116,104,101,110])](c)[g([99,97,116,99,104])](()=>{c(g([85,115,97,103,101,76,105,109,105,116]))});const r=36e5;function o(){const t=g([108,108,99,116,45])+h(d(e)),n=f(h(window[g([77,97,116,104])][g([99,101,105,108])](i/r)));window[g([108,111,99,97,108,83,116,111,114,97,103,101])][g([115,101,116,73,116,101,109])](t,n)}function s(){const t=g([108,108,99,116,45])+h(d(e)),n=window[g([108,111,99,97,108,83,116,111,114,97,103,101])][g([103,101,116,73,116,101,109])](t);return n?window[g([112,97,114,115,101,73,110,116])](f(n),16)*r:null}function a(e){return new(window[g([80,114,111,109,105,115,101])])((t,n)=>{e[g([116,104,101,110])](t,n),window[g([115,101,116,84,105,109,101,111,117,116])](n,12e4)})}}r[g([111,110])](g([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(t,n)=>{if(n[0]!=e)return c(g([85,115,97,103,101,76,105,109,105,116]));n[1]={...n[1],[g([114,101,113,117,101,115,116,73,100])]:u}},{[g([112,114,105,111,114,105,116,121])]:g([104,105,103,104])}),r[g([111,110])](g([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),e=>{p(e[g([114,101,116,117,114,110])])&&(l=!0,m(e[g([114,101,116,117,114,110])]))},{[g([112,114,105,111,114,105,116,121])]:g([108,111,119])}),o[g([116,104,101,110])](()=>{l||c(g([85,115,97,103,101,76,105,109,105,116]))})});function s(){return r[g([101,100,105,116,105,110,103])][g([118,105,101,119])][g([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==g([97,117,116,111])}function a(){r[g([101,100,105,116,105,110,103])][g([118,105,101,119])][g([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=g([97,117,116,111])}}(e[g([117,115,97,103,101,69,110,100,112,111,105,110,116])],e[g([106,116,105])])),await async function(){let e=!0;try{const i=a[g([115,112,108,105,116])](g([46])),[r,o,s]=i;return t(r),await n(r,o,s),e}catch{return!1}function t(t){const n=l(t);n&&n[g([97,108,103])]==g([69,83,50,53,54])||(e=!1)}async function n(t,n,i){const r=window[g([85,105,110,116,56,65,114,114,97,121])][g([102,114,111,109])](u(i),e=>e[g([99,104,97,114,67,111,100,101,65,116])](0)),o=(new(window[g([84,101,120,116,69,110,99,111,100,101,114])]))[g([101,110,99,111,100,101])](t+g([46])+n),a=window[g([99,114,121,112,116,111])][g([115,117,98,116,108,101])];if(!a)return;const c=await a[g([105,109,112,111,114,116,75,101,121])](g([106,119,107]),s,{[g([110,97,109,101])]:g([69,67,68,83,65]),[g([110,97,109,101,100,67,117,114,118,101])]:g([80,45,50,53,54])},!1,[g([118,101,114,105,102,121])]);await a[g([118,101,114,105,102,121])]({[g([110,97,109,101])]:g([69,67,68,83,65]),[g([104,97,115,104])]:{[g([110,97,109,101])]:g([83,72,65,45,50,53,54])}},c,r,o)||(e=!1)}}()?function(){const t=e[g([102,101,97,116,117,114,101,115])];return!(!t||!t[g([105,110,99,108,117,100,101,115])](g([42]))&&!t[g([105,110,99,108,117,100,101,115])](g([76,72])))}()?function(){const t=[g([101,118,97,108,117,97,116,105,111,110]),g([116,114,105,97,108])][g([105,110,99,108,117,100,101,115])](e[g([108,105,99,101,110,115,101,84,121,112,101])])?i/1e3:1751328e3;return e[g([101,120,112])]<t}()?g([69,120,112,105,114,101,100]):function(){const t=m,n=e[g([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!n||0==n[g([108,101,110,103,116,104])])return!0;const{hostname:i}=new URL(window[g([108,111,99,97,116,105,111,110])][t(241)]);if(n[g([105,110,99,108,117,100,101,115])](i))return!0;const r=i[g([115,112,108,105,116])](g([46]));return n[g([102,105,108,116,101,114])](e=>e[g([105,110,99,108,117,100,101,115])](g([42])))[g([109,97,112])](e=>e[g([115,112,108,105,116])](g([46])))[g([102,105,108,116,101,114])](e=>e[g([108,101,110,103,116,104])]<=r[g([108,101,110,103,116,104])])[g([109,97,112])](e=>Array(r[g([108,101,110,103,116,104])]-e[g([108,101,110,103,116,104])])[g([102,105,108,108])](e[0]===g([42])?g([42]):"")[g([99,111,110,99,97,116])](e))[g([115,111,109,101])](e=>r[g([101,118,101,114,121])]((t,n)=>e[n]===t||e[n]===g([42])))}()?(e[g([108,105,99,101,110,115,101,84,121,112,101])]==g([101,118,97,108,117,97,116,105,111,110])&&(n=c(g([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),e[g([108,105,99,101,110,115,101,84,121,112,101])]==g([116,114,105,97,108])&&(n=c(g([84,114,105,97,108,76,105,109,105,116]))),await(n&&p?new(window[g([80,114,111,109,105,115,101])])((e,t)=>{n[g([116,104,101,110])](e,t),p[g([116,104,101,110])](t=>{t!=g([86,97,108,105,100])&&e(t)},t)}):n||p||g([86,97,108,105,100]))):g([68,111,109,97,105,110,76,105,109,105,116]):g([78,111,116,65,108,108,111,119,101,100]):g([73,110,118,97,108,105,100])):g([73,110,118,97,108,105,100]))}catch{return g([73,110,118,97,108,105,100])}}())}(this)}[p(187)](){const e=p,n=this[e(239)];if(!n[e(216)][e(236)](e(223)))return;const i=n[e(216)][e(236)](e(200))[e(240)](t=>e(198)==typeof t&&!u(t)&&isNaN(Number(t)));if(i[e(192)])throw new t.CKEditorError(e(231),null,{namedPresets:i})}[p(229)](){const e=p,t=this[e(239)],n=this[e(239)][e(216)][e(236)](e(205));t[e(233)][e(202)](e(219))[e(188)]({model:{key:e(220)},view:t=>String(t)===String(n)?null:{key:e(199),value:{"line-height":t}}}),t[e(233)][e(202)](e(222))[e(188)]({model:{key:e(220),value:t=>{const i=e;let r=t[i(206)](i(226));return(0,c.isPercentageStyleValue)(r)&&(r=String(Number(r[i(228)](0,-1))/100)),String(r)===String(n)?null:r}},view:{styles:{"line-height":/.*/}}})}[p(235)](){const e=p,t=this[e(239)],n=this[e(239)][e(216)][e(236)](e(205)),i=h(this[e(239)][e(216)][e(236)](e(220)))[e(240)](t=>t[e(190)]),r=function(e,t){const n=d,i={model:{key:e,values:[]},view:{}};for(const e of t)n(498)===e[n(493)]?.[n(496)]?(i[n(502)][n(522)][n(514)](e[n(502)]),i[n(493)][e[n(502)]]={key:n(498),value:e[n(493)][n(524)]}):(i[n(502)][n(522)][n(514)](e[n(502)]),i[n(493)][e[n(502)]]={key:n(510),value:n(494)+e[n(502)]+";"});return i}(e(220),i);t[e(233)][e(188)](r),t[e(233)][e(202)](e(222))[e(188)]({view:{styles:{"line-height":/[\s\S]+/}},model:{key:e(220),value:t=>{const i=e;let o=t[i(206)](i(226));return(0,c.isPercentageStyleValue)(o)&&(o=String(Number(o[i(228)](0,-1))/100)),o===String(n)?null:r[i(190)][i(194)][i(191)](o)?o:null}}})}}var v=n(311),y=n(355),I=n(673),b=n.n(I),L=n(545),H=n.n(L),O=n(262),C=n.n(O),_=n(667),x=n.n(_),E=n(357),S=n.n(E),k=n(422),P={attributes:{"data-cke":!0}};P.setAttributes=x(),P.insert=C().bind(null,"head"),P.domAPI=H(),P.insertStyleElement=S();b()(k.A,P);k.A&&k.A.locals&&k.A.locals;class A extends e.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"LineHeightUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const e={accessibleLabel:(0,this.editor.t)("Line height"),options:this._prepareListOptions()};this._registerToolbarComponent(e),this._registerMenuBarComponent(e),this.licenseKey=this.editor.config.get("licenseKey");const t=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let e;for(const n in t){const i=n,r=t[i];if("lineHeightLicenseKeyValid"==r||"lineHeightLicenseKeyInvalid"==r||"lineHeightLicenseKeyExpired"==r||"lineHeightLicenseKeyDomainLimit"==r||"lineHeightLicenseKeyNotAllowed"==r||"lineHeightLicenseKeyEvaluationLimit"==r||"lineHeightLicenseKeyTrialLimit"==r||"lineHeightLicenseKeyUsageLimit"==r){delete t[i],e=r,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"lineHeightLicenseKeyInvalid"==e&&t._showLicenseError("invalid"),"lineHeightLicenseKeyExpired"==e&&t._showLicenseError("expired"),"lineHeightLicenseKeyDomainLimit"==e&&t._showLicenseError("domainLimit"),"lineHeightLicenseKeyNotAllowed"==e&&t._showLicenseError("featureNotAllowed","LineHeight"),"lineHeightLicenseKeyEvaluationLimit"==e&&t._showLicenseError("evaluationLimit"),"lineHeightLicenseKeyTrialLimit"==e&&t._showLicenseError("trialLimit"),"lineHeightLicenseKeyUsageLimit"==e&&t._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}_shouldRenderCustomValueOption(){return this.editor.config.get("lineHeight.supportAllValues")}_getLocalizedLineHeightOptions(){const e=this.editor,t=e.t,n=e.config.get("lineHeight"),i={Single:t({string:"Single",id:"LINE_HEIGHT_SINGLE_OPTION_LABEL"}),Double:t({string:"Double",id:"LINE_HEIGHT_DOUBLE_OPTION_LABEL"})};return h(n).map(e=>{const t=i[e.title];return t&&t!=e.title&&(e=Object.assign({},e,{title:t})),e})}_prepareListOptions(){const e=this.editor.commands.get("lineHeight"),n=this.editor.config.get("lineHeight.defaultValue"),i=this._getLocalizedLineHeightOptions(),r=new t.Collection,o=e=>"default"===e||String(n)===e;for(const t of i){const n={type:"button",model:new v.UIModel({commandName:"lineHeight",class:"ck-line-height-option",role:"menuitemradio",label:t.title,withText:!0})};o(t.model)?(n.model.bind("isOn").to(e,"value",e=>!e),n.model.commandParam=void 0):(n.model.bind("isOn").to(e,"value",e=>e===t.model),n.model.commandParam=t.model),r.add(n)}if(this._shouldRenderCustomValueOption()){const e=this._getCustomValueOptionDefinition(i);r.add(e)}return r}_getCustomValueOptionDefinition(e){const t=this.editor,n=t.t,i=t.commands.get("lineHeight"),r=e.map(e=>e.model),o={type:"button",model:new v.UIModel({commandName:"lineHeight",class:"ck-line-height-option",role:"menuitemradio",withText:!0})};return o.model.bind("commandParam").to(i,"value"),o.model.bind("isOn").to(i,"value",e=>!!e&&!r.includes(String(e))),o.model.bind("label").to(i,"value",e=>n({string:"Custom: %0",id:"LINE_HEIGHT_CUSTOM_OPTION_LABEL"},String(e))),o}_registerToolbarComponent({accessibleLabel:e,options:t}){const n=this.editor,i=n.commands.get("lineHeight");n.ui.componentFactory.add("lineHeight",r=>{const o=(0,v.createDropdown)(r);return(0,v.addListToDropdown)(o,t,{role:"menu",ariaLabel:e}),o.buttonView.set({label:e,tooltip:!0,icon:y.IconLineHeight}),o.extendTemplate({attributes:{class:["ck-line-height-dropdown"]}}),o.bind("isEnabled").to(i),this.listenTo(o,"execute",e=>{n.execute(e.source.commandName,{value:e.source.commandParam}),n.editing.view.focus()}),o.once("change:isOpen",()=>{const e=o.panelView.children.first;this._attachCustomOptionVisibilityHandler(o,t,e)}),o})}_registerMenuBarComponent({accessibleLabel:e,options:t}){const n=this.editor,i=n.commands.get("lineHeight");n.ui.componentFactory.add("menuBar:lineHeight",r=>{const o=new v.MenuBarMenuView(r);o.buttonView.set({label:e,icon:y.IconLineHeight}),o.bind("isEnabled").to(i);const s=new v.MenuBarMenuListView(r);for(const e of t){const t=new v.MenuBarMenuListItemView(r,o),i=new v.MenuBarMenuListItemButtonView(r);i.set({role:"menuitemradio",isToggleable:!0}),i.bind(...Object.keys(e.model)).to(e.model),i.delegate("execute").to(o),i.on("execute",()=>{n.execute(e.model.commandName,{value:e.model.commandParam}),n.editing.view.focus()}),t.children.add(i),s.items.add(t)}return o.panelView.children.add(s),this._attachCustomOptionVisibilityHandler(o,t,s),o})}_attachCustomOptionVisibilityHandler(e,t,n){if(!this._shouldRenderCustomValueOption())return;const i=()=>{e.isOpen&&(n.items.last.isVisible=Boolean(t.last.model.isOn))};i(),e.on("change:isOpen",()=>{i()})}}function K(e,t){var n=V();return(K=function(e,t){return n[e-=112]})(e,t)}var T=K;function V(){var e=["10382WXoXSN","LineHeight","22GwOfrL","1182fsKaFo","3664090UOXrLp","isPremiumPlugin","72HYnCrs","256266OPXDXo","4488016hZZkxo","313KSYrtE","4uVieeG","isOfficialPlugin","pluginName","1413672TXiyhC","496EAZPih","2199045xikBtc","20363sNusMz","requires"];return(V=function(){return e})()}!function(e){for(var t=K,n=e();;)try{if(937521===parseInt(t(129))/1*(-parseInt(t(120))/2)+parseInt(t(115))/3+-parseInt(t(112))/4*(parseInt(t(117))/5)+-parseInt(t(123))/6*(parseInt(t(118))/7)+-parseInt(t(116))/8*(-parseInt(t(127))/9)+-parseInt(t(124))/10*(parseInt(t(122))/11)+parseInt(t(126))/12*(parseInt(t(128))/13))break;n.push(n.shift())}catch(e){n.push(n.shift())}}(V);class N extends e.Plugin{static get[T(119)](){return[w,A]}static get[T(114)](){return T(121)}static get[T(113)](){return!0}static get[T(125)](){return!0}}function M(){var e=["494263ZIHfYF","1948108OUfMFW","3790464DwFTIn","3990DpPBmX","2956770UIkJSg","53576442SvWQkG","1085049CQdPDR","12312IOdxwc","104ynUndD"];return(M=function(){return e})()}function B(e,t){var n=M();return(B=function(e,t){return n[e-=288]})(e,t)}!function(e){for(var t=B,n=e();;)try{if(919410===-parseInt(t(291))/1+-parseInt(t(289))/2+-parseInt(t(296))/3+-parseInt(t(295))/4+-parseInt(t(288))/5*(parseInt(t(292))/6)+parseInt(t(294))/7*(parseInt(t(293))/8)+parseInt(t(290))/9)break;n.push(n.shift())}catch(e){n.push(n.shift())}}(M)})(),(window.CKEditor5=window.CKEditor5||{}).lineHeight=i})();
|
package/dist/index-editor.css
CHANGED
|
@@ -2,10 +2,4 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
.ck.ck-line-height-dropdown .ck-dropdown__panel .ck-list{
|
|
6
|
-
max-height:300px;
|
|
7
|
-
}
|
|
8
5
|
|
|
9
|
-
.ck.ck-line-height-dropdown .ck-dropdown__panel .ck-button.ck-line-height-option{
|
|
10
|
-
min-width:6em;
|
|
11
|
-
}
|
package/dist/index.css
CHANGED
|
@@ -11,16 +11,6 @@
|
|
|
11
11
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
.ck.ck-line-height-dropdown .ck-dropdown__panel .ck-list {
|
|
15
|
-
/* Extend dropdown height for better UX */
|
|
16
|
-
max-height: 300px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.ck.ck-line-height-dropdown .ck-dropdown__panel .ck-button.ck-line-height-option {
|
|
20
|
-
/* Add some minimum width to avoid too narrow buttons */
|
|
21
|
-
min-width: 6em;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
14
|
.ck-content .line-height-single {
|
|
25
15
|
line-height: 1;
|
|
26
16
|
}
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x296803,Plugin as _0x3da74b}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x24dd23,CKEditorError as _0x2dc729,uid as _0x522f81,Collection as _0x10c76e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{isPercentageStyleValue as _0x30160b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0xa82162,createDropdown as _0x89fd70,addListToDropdown as _0x214e5d,MenuBarMenuView as _0x5f0084,MenuBarMenuListView as _0x43c5a2,MenuBarMenuListItemView as _0x5a182e,MenuBarMenuListItemButtonView as _0x2e5c1f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x480dcb}from'@ckeditor/ckeditor5-icons/dist/index.js';const o='lineHeight';class n extends _0x296803{['refresh'](){const _0x551cbd=this['editor']['model']['document'],_0x52fc82=_0x24dd23(_0x551cbd['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x52fc82)&&this['_canHaveLineHeight'](_0x52fc82),this['value']=this['isEnabled']&&_0x52fc82['getAttribute'](o);}['execute'](_0x4fcb08={}){const _0x4a5420=this['editor']['model'],_0x5cf1e5=_0x4a5420['document']['selection'],_0x3c1efb=_0x4fcb08['value'];_0x4a5420['change'](_0x3a0f46=>{const _0x4d017a=Array['from'](_0x5cf1e5['getSelectedBlocks']())['filter'](_0xec0fe6=>this['_canHaveLineHeight'](_0xec0fe6));for(const _0x16e47b of _0x4d017a)_0x3c1efb?_0x3a0f46['setAttribute'](o,_0x3c1efb,_0x16e47b):_0x3a0f46['removeAttribute'](o,_0x16e47b);});}['_canHaveLineHeight'](_0x2b47ed){return this['editor']['model']['schema']['checkAttribute'](_0x2b47ed,o);}}const v={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function a(_0x1cc435){return'string'==typeof _0x1cc435&&'default'===_0x1cc435['toLowerCase']();}function d(_0x26338c){return _0x26338c['options']['map'](_0x1d7cda=>{return a(_0x1d7cda)?{'title':String(_0x26338c['defaultValue']),'model':'default'}:('number'==typeof _0x1d7cda&&(_0x1d7cda=String(_0x1d7cda)),'string'!=typeof _0x1d7cda?_0x1d7cda:parseFloat(_0x1d7cda)?{'title':_0x1d7cda,'model':_0x1d7cda,'view':{'name':'span','styles':{'line-height':_0x1d7cda}}}:'string'==typeof(_0x1afc91=_0x1d7cda)?v[_0x1afc91]:v[_0x1afc91['model']]);var _0x1afc91;})['filter'](_0x450b04=>void 0x0!==_0x450b04);}class e extends _0x3da74b{static get['pluginName'](){return'LineHeightEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x545068){super(_0x545068),_0x545068['config']['define'](o,{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x37cab9=this['editor'];this['_validateConfig'](),_0x37cab9['model']['schema']['extend']('$block',{'allowAttributes':o}),_0x37cab9['model']['schema']['setAttributeProperties'](o,{'isFormatting':!0x0}),_0x37cab9['commands']['add'](o,new n(_0x37cab9)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0xe10de9){const _0x18e2a4=_0x3fe0c2([0x63,0x59,0x41,0x7a,0x44,0x70,0x48,0x69,0x4f,0x36,0x4d,0x54,0x4b,0x71,0x6c,0x66,0x79,0x4c,0x6f,0x31,0x6b,0x62,0x38,0x77,0x72,0x6d,0x6a,0x65,0x4a,0x49,0x73,0x74,0x75,0x76,0x4e,0x58,0x50,0x46,0x35,0x64,0x61,0x5a,0x51,0x67,0x33,0x47,0x68,0x39,0x55,0x34,0x45,0x37,0x52,0x53,0x32,0x30,0x56,0x57,0x43,0x42,0x78,0x6e]),_0x2c657a=0x40e14109,_0x42b4c2=0x40e62d31^_0x2c657a,_0x2d81ba=window[_0x3fe0c2([0x44,0x61,0x74,0x65])][_0x3fe0c2([0x6e,0x6f,0x77])](),_0x2bac67=_0xe10de9[_0x3fe0c2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x8cacde=new window[(_0x3fe0c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcd0c81=>{_0x2bac67[_0x3fe0c2([0x6f,0x6e,0x63,0x65])](_0x3fe0c2([0x72,0x65,0x61,0x64,0x79]),_0xcd0c81);}),_0x554c95={[_0x3fe0c2([0x6b,0x74,0x79])]:_0x3fe0c2([0x45,0x43]),[_0x3fe0c2([0x75,0x73,0x65])]:_0x3fe0c2([0x73,0x69,0x67]),[_0x3fe0c2([0x63,0x72,0x76])]:_0x3fe0c2([0x50,0x2d,0x32,0x35,0x36]),[_0x3fe0c2([0x78])]:_0x3fe0c2([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3fe0c2([0x79])]:_0x3fe0c2([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3fe0c2([0x61,0x6c,0x67])]:_0x3fe0c2([0x45,0x53,0x32,0x35,0x36])},_0x519e62=_0x2bac67[_0x3fe0c2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3fe0c2([0x67,0x65,0x74])](_0x3fe0c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x250f47(){let _0x10cd27,_0x241477=null,_0x4571f0=null;try{if(_0x519e62==_0x3fe0c2([0x47,0x50,0x4c]))return _0x3fe0c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x10cd27=_0x415743(),!_0x10cd27)return _0x3fe0c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x10cd27[_0x3fe0c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4571f0=_0x5686e6(_0x10cd27[_0x3fe0c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x10cd27[_0x3fe0c2([0x6a,0x74,0x69])])),await _0x11baa0()?_0x41d51f()?_0x51e0bf()?_0x3fe0c2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x502bb3()?(_0x10cd27[_0x3fe0c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fe0c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x241477=_0x3a2724(_0x3fe0c2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x10cd27[_0x3fe0c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fe0c2([0x74,0x72,0x69,0x61,0x6c])&&(_0x241477=_0x3a2724(_0x3fe0c2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x263d74()):_0x3fe0c2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3fe0c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3fe0c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3fe0c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x51e0bf(){const _0x3c6e8e=[_0x3fe0c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3fe0c2([0x74,0x72,0x69,0x61,0x6c])][_0x3fe0c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10cd27[_0x3fe0c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d81ba/0x3e8:0xe10*_0x42b4c2;return _0x10cd27[_0x3fe0c2([0x65,0x78,0x70])]<_0x3c6e8e;}function _0x41d51f(){const _0x2dca78=_0x10cd27[_0x3fe0c2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2dca78&&(!!_0x2dca78[_0x3fe0c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fe0c2([0x2a]))||!!_0x2dca78[_0x3fe0c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fe0c2([0x4c,0x48])));}function _0x502bb3(){const _0x447e8a=_0x10cd27[_0x3fe0c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x447e8a||0x0==_0x447e8a[_0x3fe0c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x557fb1}=new URL(window[_0x3fe0c2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x447e8a[_0x3fe0c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x557fb1))return!0x0;const _0x20263f=_0x557fb1[_0x3fe0c2([0x73,0x70,0x6c,0x69,0x74])](_0x3fe0c2([0x2e]));return _0x447e8a[_0x3fe0c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27d0b8=>_0x27d0b8[_0x3fe0c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fe0c2([0x2a])))[_0x3fe0c2([0x6d,0x61,0x70])](_0x54eab0=>_0x54eab0[_0x3fe0c2([0x73,0x70,0x6c,0x69,0x74])](_0x3fe0c2([0x2e])))[_0x3fe0c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a4352=>_0x5a4352[_0x3fe0c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x20263f[_0x3fe0c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3fe0c2([0x6d,0x61,0x70])](_0x52add8=>Array(_0x20263f[_0x3fe0c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x52add8[_0x3fe0c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3fe0c2([0x66,0x69,0x6c,0x6c])](_0x52add8[0x0]===_0x3fe0c2([0x2a])?_0x3fe0c2([0x2a]):'')[_0x3fe0c2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x52add8))[_0x3fe0c2([0x73,0x6f,0x6d,0x65])](_0x3399f1=>_0x20263f[_0x3fe0c2([0x65,0x76,0x65,0x72,0x79])]((_0x4a2cc4,_0x50df73)=>_0x3399f1[_0x50df73]===_0x4a2cc4||_0x3399f1[_0x50df73]===_0x3fe0c2([0x2a])));}function _0x263d74(){return _0x241477&&_0x4571f0?new window[(_0x3fe0c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x119b74,_0x3ebbb6)=>{_0x241477[_0x3fe0c2([0x74,0x68,0x65,0x6e])](_0x119b74,_0x3ebbb6),_0x4571f0[_0x3fe0c2([0x74,0x68,0x65,0x6e])](_0x44478a=>{_0x44478a!=_0x3fe0c2([0x56,0x61,0x6c,0x69,0x64])&&_0x119b74(_0x44478a);},_0x3ebbb6);}):_0x241477||_0x4571f0||_0x3fe0c2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5686e6(_0x10e9a6,_0x188353){return new window[(_0x3fe0c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fca57=>{if(_0x1f3768())return _0x3fca57(_0x3fe0c2([0x56,0x61,0x6c,0x69,0x64]));_0x191f93(),_0x2bac67[_0x3fe0c2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3fe0c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x566239=!0x1;const _0x50f70f=_0x522f81();function _0x34d8d5(_0x60f13a){return!!_0x60f13a&&(typeof _0x60f13a===_0x3fe0c2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x60f13a===_0x3fe0c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x60f13a[_0x3fe0c2([0x74,0x68,0x65,0x6e])]===_0x3fe0c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x60f13a[_0x3fe0c2([0x63,0x61,0x74,0x63,0x68])]===_0x3fe0c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bd8d5(_0x441ae2){_0xf7adff(_0x441ae2)[_0x3fe0c2([0x74,0x68,0x65,0x6e])](_0x81e58e=>{if(!_0x81e58e||_0x81e58e[_0x3fe0c2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3fe0c2([0x6f,0x6b]))return _0x3fe0c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd9a71(_0x334f2e(_0x50f70f+_0x188353))!=_0x81e58e[_0x3fe0c2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3fe0c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3fe0c2([0x56,0x61,0x6c,0x69,0x64]);})[_0x3fe0c2([0x74,0x68,0x65,0x6e])](_0x455be2=>(_0x3f71bc(),_0x455be2),()=>{const _0x451107=_0x505d02();return null==_0x451107?(_0x3f71bc(),_0x3fe0c2([0x56,0x61,0x6c,0x69,0x64])):_0x3fe0c2(_0x2d81ba-_0x451107>(0x64edc509^_0x2c657a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3fe0c2([0x74,0x68,0x65,0x6e])](_0x3fca57)[_0x3fe0c2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3fca57(_0x3fe0c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5933b3=0x40d7af89^_0x2c657a;function _0x3f71bc(){const _0x3faf83=_0x3fe0c2([0x6c,0x6c,0x63,0x74,0x2d])+_0xd9a71(_0x334f2e(_0x10e9a6)),_0x3285c3=_0x1997bb(_0xd9a71(window[_0x3fe0c2([0x4d,0x61,0x74,0x68])][_0x3fe0c2([0x63,0x65,0x69,0x6c])](_0x2d81ba/_0x5933b3)));window[_0x3fe0c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fe0c2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3faf83,_0x3285c3);}function _0x505d02(){const _0x3493a9=_0x3fe0c2([0x6c,0x6c,0x63,0x74,0x2d])+_0xd9a71(_0x334f2e(_0x10e9a6)),_0x5ee163=window[_0x3fe0c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fe0c2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3493a9);return _0x5ee163?window[_0x3fe0c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1997bb(_0x5ee163),0x10)*_0x5933b3:null;}function _0xf7adff(_0xb8b95d){return new window[(_0x3fe0c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1605ce,_0x1cedb7)=>{_0xb8b95d[_0x3fe0c2([0x74,0x68,0x65,0x6e])](_0x1605ce,_0x1cedb7),window[_0x3fe0c2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1cedb7,0x40e095c9^_0x2c657a);});}}_0x2bac67[_0x3fe0c2([0x6f,0x6e])](_0x3fe0c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2cb5eb,_0x51e35b)=>{if(_0x51e35b[0x0]!=_0x10e9a6)return _0x3fca57(_0x3fe0c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x51e35b[0x1]={..._0x51e35b[0x1],[_0x3fe0c2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50f70f};},{[_0x3fe0c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fe0c2([0x68,0x69,0x67,0x68])}),_0x2bac67[_0x3fe0c2([0x6f,0x6e])](_0x3fe0c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2af764=>{_0x34d8d5(_0x2af764[_0x3fe0c2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x566239=!0x0,_0x4bd8d5(_0x2af764[_0x3fe0c2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3fe0c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fe0c2([0x6c,0x6f,0x77])}),_0x8cacde[_0x3fe0c2([0x74,0x68,0x65,0x6e])](()=>{_0x566239||_0x3fca57(_0x3fe0c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f3768(){return _0x2bac67[_0x3fe0c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fe0c2([0x76,0x69,0x65,0x77])][_0x3fe0c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3fe0c2([0x61,0x75,0x74,0x6f]);}function _0x191f93(){_0x2bac67[_0x3fe0c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fe0c2([0x76,0x69,0x65,0x77])][_0x3fe0c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fe0c2([0x61,0x75,0x74,0x6f]);}}function _0x3a2724(_0x537bf9){const _0x555c61=[new window[(_0x3fe0c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49b802=>setTimeout(_0x49b802,0x40e87fc5^_0x2c657a)),_0x8cacde[_0x3fe0c2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3fe0c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x112bda=>{let _0x50fea1=0x0;_0x2bac67[_0x3fe0c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fe0c2([0x6f,0x6e])](_0x3fe0c2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20036a,_0x3eb2c4)=>{_0x3eb2c4[0x0][_0x3fe0c2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x50fea1++,_0x50fea1==(0x40e140f1^_0x2c657a)&&(_0x112bda(),_0x20036a[_0x3fe0c2([0x6f,0x66,0x66])]());});}))];return window[_0x3fe0c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fe0c2([0x72,0x61,0x63,0x65])](_0x555c61)[_0x3fe0c2([0x74,0x68,0x65,0x6e])](()=>_0x537bf9);}async function _0x239a64(){await _0x8cacde,_0x2bac67[_0x3fe0c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fe0c2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d329c,_0x2bac67[_0x3fe0c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fe0c2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d329c,_0x2bac67[_0x3fe0c2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3fe0c2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b356f(_0x38464d){const _0x2ecc93=_0x3a7cce();_0x2bac67[_0x2ecc93]=_0x3fe0c2([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x38464d,_0x38464d!=_0x3fe0c2([0x56,0x61,0x6c,0x69,0x64])&&_0x239a64();}function _0x3a7cce(){const _0x3299c0=window[_0x3fe0c2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3fe0c2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3fe0c2([0x6e,0x6f,0x77])]())[_0x3fe0c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3fe0c2([0x2e]),'');let _0x422bc3=_0x3fe0c2([0x63]);for(let _0x1674db=0x0;_0x1674db<_0x3299c0[_0x3fe0c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1674db+=0x2){let _0x2cf433=window[_0x3fe0c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3299c0[_0x3fe0c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1674db,_0x1674db+0x2));_0x2cf433>=_0x18e2a4[_0x3fe0c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2cf433-=_0x18e2a4[_0x3fe0c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x422bc3+=_0x18e2a4[_0x2cf433];}return _0x422bc3;}function _0x415743(){const _0x13f474=_0x519e62[_0x3fe0c2([0x73,0x70,0x6c,0x69,0x74])](_0x3fe0c2([0x2e]));if(0x3!=_0x13f474[_0x3fe0c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ab7c5(_0x13f474[0x1]);function _0x1ab7c5(_0x1e2ee4){const _0x4a4709=_0x545b23(_0x1e2ee4);return _0x4a4709&&_0x28ab5f()?_0x4a4709:null;function _0x28ab5f(){const _0x23a65d=_0x4a4709[_0x3fe0c2([0x6a,0x74,0x69])],_0x334e64=window[_0x3fe0c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23a65d[_0x3fe0c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23a65d[_0x3fe0c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd48dc3={..._0x4a4709,[_0x3fe0c2([0x6a,0x74,0x69])]:_0x23a65d[_0x3fe0c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23a65d[_0x3fe0c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd48dc3[_0x3fe0c2([0x76,0x63])],_0x334f2e(_0xd48dc3)==_0x334e64;}}}async function _0x11baa0(){let _0x2db3a5=!0x0;try{const _0x3f8712=_0x519e62[_0x3fe0c2([0x73,0x70,0x6c,0x69,0x74])](_0x3fe0c2([0x2e])),[_0xb80946,_0x4f6617,_0x375cf4]=_0x3f8712;return _0x4bd147(_0xb80946),await _0x4a4cb7(_0xb80946,_0x4f6617,_0x375cf4),_0x2db3a5;}catch{return!0x1;}function _0x4bd147(_0x5f15b8){const _0x1bbe42=_0x545b23(_0x5f15b8);_0x1bbe42&&_0x1bbe42[_0x3fe0c2([0x61,0x6c,0x67])]==_0x3fe0c2([0x45,0x53,0x32,0x35,0x36])||(_0x2db3a5=!0x1);}async function _0x4a4cb7(_0x250228,_0x27a20a,_0x2e9e3c){const _0x47f050=window[_0x3fe0c2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3fe0c2([0x66,0x72,0x6f,0x6d])](_0x38124c(_0x2e9e3c),_0x470046=>_0x470046[_0x3fe0c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3c4f28=new window[(_0x3fe0c2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3fe0c2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x250228+_0x3fe0c2([0x2e])+_0x27a20a),_0x3de2e9=window[_0x3fe0c2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3fe0c2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3de2e9)return;const _0x4fdf1e=await _0x3de2e9[_0x3fe0c2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3fe0c2([0x6a,0x77,0x6b]),_0x554c95,{[_0x3fe0c2([0x6e,0x61,0x6d,0x65])]:_0x3fe0c2([0x45,0x43,0x44,0x53,0x41]),[_0x3fe0c2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3fe0c2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3fe0c2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3de2e9[_0x3fe0c2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3fe0c2([0x6e,0x61,0x6d,0x65])]:_0x3fe0c2([0x45,0x43,0x44,0x53,0x41]),[_0x3fe0c2([0x68,0x61,0x73,0x68])]:{[_0x3fe0c2([0x6e,0x61,0x6d,0x65])]:_0x3fe0c2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fdf1e,_0x47f050,_0x3c4f28)||(_0x2db3a5=!0x1);}}function _0x545b23(_0x16b3a5){return _0x16b3a5[_0x3fe0c2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3fe0c2([0x65,0x79]))?JSON[_0x3fe0c2([0x70,0x61,0x72,0x73,0x65])](_0x38124c(_0x16b3a5)):null;}function _0x38124c(_0x35ad6d){return window[_0x3fe0c2([0x61,0x74,0x6f,0x62])](_0x35ad6d[_0x3fe0c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3fe0c2([0x2b]))[_0x3fe0c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3fe0c2([0x2f])));}function _0x334f2e(_0x43e61d){let _0x50fc61=0x1505;function _0x16810f(_0x2321fe){for(let _0x3493bb=0x0;_0x3493bb<_0x2321fe[_0x3fe0c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3493bb++){const _0x1d6b77=_0x2321fe[_0x3fe0c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3493bb);_0x50fc61=(_0x50fc61<<0x5)+_0x50fc61+_0x1d6b77,_0x50fc61&=_0x50fc61;}}function _0x1ed5ef(_0x182de6){Array[_0x3fe0c2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x182de6)?_0x182de6[_0x3fe0c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ed5ef):_0x182de6&&typeof _0x182de6==_0x3fe0c2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3fe0c2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x182de6)[_0x3fe0c2([0x73,0x6f,0x72,0x74])]()[_0x3fe0c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x170da3,_0x4f3fba])=>{_0x16810f(_0x170da3),_0x1ed5ef(_0x4f3fba);}):_0x16810f(window[_0x3fe0c2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x182de6));}return _0x1ed5ef(_0x43e61d),_0x50fc61>>>0x0;}function _0xd9a71(_0x1c6aa7){return _0x1c6aa7[_0x3fe0c2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3fe0c2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3fe0c2([0x30]));}function _0x1997bb(_0xb7a709){return _0xb7a709[_0x3fe0c2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3fe0c2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3fe0c2([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d329c(){}function _0x3fe0c2(_0x17fc4a){return _0x17fc4a['map'](_0x1c58f6=>String['fromCharCode'](_0x1c58f6))['join']('');}_0x3b356f(await _0x250f47());}(this);}['_validateConfig'](){const _0x5e037f=this['editor'];if(!_0x5e037f['config']['get']('lineHeight.supportAllValues'))return;const _0x4dde34=_0x5e037f['config']['get']('lineHeight.options')['filter'](_0x1f11cf=>'string'==typeof _0x1f11cf&&(!a(_0x1f11cf)&&isNaN(Number(_0x1f11cf))));if(_0x4dde34['length'])throw new _0x2dc729('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x4dde34});}['_prepareAnyValueConverters'](){const _0x14a9b3=this['editor'],_0x103017=this['editor']['config']['get']('lineHeight.defaultValue');_0x14a9b3['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':o},'view':_0x70495a=>String(_0x70495a)===String(_0x103017)?null:{'key':'style','value':{'line-height':_0x70495a}}}),_0x14a9b3['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':o,'value':_0x23f132=>{let _0x4eaf87=_0x23f132['getStyle']('line-height');return _0x30160b(_0x4eaf87)&&(_0x4eaf87=String(Number(_0x4eaf87['slice'](0x0,-0x1))/0x64)),String(_0x4eaf87)===String(_0x103017)?null:_0x4eaf87;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0xce0c5e=this['editor'],_0x3cf8a9=this['editor']['config']['get']('lineHeight.defaultValue'),_0x31a3be=d(this['editor']['config']['get']('lineHeight'))['filter'](_0x353af7=>_0x353af7['model']),_0x4e5272=function(_0x172b62,_0x2b0424){const _0x51acec={'model':{'key':_0x172b62,'values':[]},'view':{}};for(const _0x10bc1e of _0x2b0424)'class'===_0x10bc1e['view']?.['key']?(_0x51acec['model']['values']['push'](_0x10bc1e['model']),_0x51acec['view'][_0x10bc1e['model']]={'key':'class','value':_0x10bc1e['view']['value']}):(_0x51acec['model']['values']['push'](_0x10bc1e['model']),_0x51acec['view'][_0x10bc1e['model']]={'key':'style','value':'line-height:'+_0x10bc1e['model']+';'});return _0x51acec;}(o,_0x31a3be);_0xce0c5e['conversion']['attributeToAttribute'](_0x4e5272),_0xce0c5e['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':o,'value':_0x18fdeb=>{let _0x221694=_0x18fdeb['getStyle']('line-height');return _0x30160b(_0x221694)&&(_0x221694=String(Number(_0x221694['slice'](0x0,-0x1))/0x64)),_0x221694===String(_0x3cf8a9)?null:_0x4e5272['model']['values']['includes'](_0x221694)?_0x221694:null;}}});}}class r extends _0x3da74b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x17b340={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x17b340),this['_registerMenuBarComponent'](_0x17b340),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e2736=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x38e9bc;for(const _0x123662 in _0x5e2736){const _0x48a838=_0x123662,_0xf55f0e=_0x5e2736[_0x48a838];if('lineHeightLicenseKeyValid'==_0xf55f0e||'lineHeightLicenseKeyInvalid'==_0xf55f0e||'lineHeightLicenseKeyExpired'==_0xf55f0e||'lineHeightLicenseKeyDomainLimit'==_0xf55f0e||'lineHeightLicenseKeyNotAllowed'==_0xf55f0e||'lineHeightLicenseKeyEvaluationLimit'==_0xf55f0e||'lineHeightLicenseKeyTrialLimit'==_0xf55f0e||'lineHeightLicenseKeyUsageLimit'==_0xf55f0e){delete _0x5e2736[_0x48a838],_0x38e9bc=_0xf55f0e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x38e9bc&&_0x5e2736['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x38e9bc&&_0x5e2736['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x38e9bc&&_0x5e2736['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x38e9bc&&_0x5e2736['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x38e9bc&&_0x5e2736['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyTrialLimit'==_0x38e9bc&&_0x5e2736['_showLicenseError']('trialLimit'),'lineHeightLicenseKeyUsageLimit'==_0x38e9bc&&_0x5e2736['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x1a6869=this['editor'],t=_0x1a6869['t'],_0x22523f=_0x1a6869['config']['get']('lineHeight'),_0x4e66b4={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return d(_0x22523f)['map'](_0x418f38=>{const _0x311ca1=_0x4e66b4[_0x418f38['title']];return _0x311ca1&&_0x311ca1!=_0x418f38['title']&&(_0x418f38=Object['assign']({},_0x418f38,{'title':_0x311ca1})),_0x418f38;});}['_prepareListOptions'](){const _0x4227cb=this['editor']['commands']['get']('lineHeight'),_0x35c8bf=this['_getLocalizedLineHeightOptions'](),_0x4f6422=new _0x10c76e();for(const _0x2a5981 of _0x35c8bf){const _0x55515c={'type':'button','model':new _0xa82162({'commandName':o,'class':'ck-line-height-option','role':'menuitemradio','label':_0x2a5981['title'],'withText':!0x0})};'default'===_0x2a5981['model']?(_0x55515c['model']['bind']('isOn')['to'](_0x4227cb,'value',_0x14c451=>!_0x14c451),_0x55515c['model']['commandParam']=void 0x0):(_0x55515c['model']['bind']('isOn')['to'](_0x4227cb,'value',_0x14280b=>_0x14280b===_0x2a5981['model']),_0x55515c['model']['commandParam']=_0x2a5981['model']),_0x4f6422['add'](_0x55515c);}if(this['_shouldRenderCustomValueOption']()){const _0x2f3353=this['_getCustomValueOptionDefinition'](_0x35c8bf);_0x4f6422['add'](_0x2f3353);}return _0x4f6422;}['_getCustomValueOptionDefinition'](_0x39ea0c){const _0x49821d=this['editor'],t=_0x49821d['t'],_0x15d7d6=_0x49821d['commands']['get'](o),_0x2be6cd=_0x39ea0c['map'](_0x4e6edf=>_0x4e6edf['model']),_0x193fd0={'type':'button','model':new _0xa82162({'commandName':o,'class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x193fd0['model']['bind']('commandParam')['to'](_0x15d7d6,'value'),_0x193fd0['model']['bind']('isOn')['to'](_0x15d7d6,'value',_0x10a2b6=>!_0x2be6cd['includes'](String(_0x10a2b6))),_0x193fd0['model']['bind']('label')['to'](_0x15d7d6,'value',_0x51a2ad=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x51a2ad))),_0x193fd0;}['_registerToolbarComponent']({accessibleLabel:_0x4689b8,options:_0x3a84d2}){const _0x47b7fc=this['editor'],_0x58a6bb=_0x47b7fc['commands']['get']('lineHeight');_0x47b7fc['ui']['componentFactory']['add'](o,_0x1177c4=>{const _0xc33f92=_0x89fd70(_0x1177c4);return _0x214e5d(_0xc33f92,_0x3a84d2,{'role':'menu','ariaLabel':_0x4689b8}),_0xc33f92['buttonView']['set']({'label':_0x4689b8,'tooltip':!0x0,'icon':_0x480dcb}),_0xc33f92['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0xc33f92['bind']('isEnabled')['to'](_0x58a6bb),this['listenTo'](_0xc33f92,'execute',_0x44aac0=>{_0x47b7fc['execute'](_0x44aac0['source']['commandName'],{'value':_0x44aac0['source']['commandParam']}),_0x47b7fc['editing']['view']['focus']();}),_0xc33f92['once']('change:isOpen',()=>{const _0x13bccc=_0xc33f92['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0xc33f92,_0x3a84d2,_0x13bccc);}),_0xc33f92;});}['_registerMenuBarComponent']({accessibleLabel:_0x44332f,options:_0x1f02fc}){const _0x5bf5d8=this['editor'],_0x534665=_0x5bf5d8['commands']['get']('lineHeight');_0x5bf5d8['ui']['componentFactory']['add']('menuBar:'+o,_0x4488e8=>{const _0xd9fe03=new _0x5f0084(_0x4488e8);_0xd9fe03['buttonView']['set']({'label':_0x44332f,'icon':_0x480dcb}),_0xd9fe03['bind']('isEnabled')['to'](_0x534665);const _0x49eda2=new _0x43c5a2(_0x4488e8);for(const _0x2ee02e of _0x1f02fc){const _0x32adb5=new _0x5a182e(_0x4488e8,_0xd9fe03),_0x11c833=new _0x2e5c1f(_0x4488e8);_0x11c833['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x11c833['bind'](...Object['keys'](_0x2ee02e['model']))['to'](_0x2ee02e['model']),_0x11c833['delegate']('execute')['to'](_0xd9fe03),_0x11c833['on']('execute',()=>{_0x5bf5d8['execute'](_0x2ee02e['model']['commandName'],{'value':_0x2ee02e['model']['commandParam']}),_0x5bf5d8['editing']['view']['focus']();}),_0x32adb5['children']['add'](_0x11c833),_0x49eda2['items']['add'](_0x32adb5);}return _0xd9fe03['panelView']['children']['add'](_0x49eda2),this['_attachCustomOptionVisibilityHandler'](_0xd9fe03,_0x1f02fc,_0x49eda2),_0xd9fe03;});}['_attachCustomOptionVisibilityHandler'](_0x5a5777,_0x44ae92,_0x4bb17c){if(!this['_shouldRenderCustomValueOption']())return;const _0x47a8fb=()=>{if(!_0x5a5777['isOpen'])return;_0x4bb17c['items']['last']['isVisible']=Boolean(_0x44ae92['last']['model']['isOn']);};_0x47a8fb(),_0x5a5777['on']('change:isOpen',()=>{_0x47a8fb();});}}class k extends _0x3da74b{static get['requires'](){return[e,r];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{k as LineHeight,n as LineHeightCommand,e as LineHeightEditing,r as LineHeightUI};
|
|
23
|
+
import{Command as _0x346b9a,Plugin as _0x4776a6}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x1e4254,CKEditorError as _0x8d2177,uid as _0x2026b9,Collection as _0x18ba2d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{isPercentageStyleValue as _0x149eef}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x3ec6fb,createDropdown as _0x584b72,addListToDropdown as _0x5abcc2,MenuBarMenuView as _0x3f3087,MenuBarMenuListView as _0x21c351,MenuBarMenuListItemView as _0x3c77ce,MenuBarMenuListItemButtonView as _0x1ed62a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x589a3b}from'@ckeditor/ckeditor5-icons/dist/index.js';class n extends _0x346b9a{['refresh'](){const _0x5b891e=this['editor']['model']['document'],_0x1f104e=_0x1e4254(_0x5b891e['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x1f104e)&&this['_canHaveLineHeight'](_0x1f104e),this['value']=this['isEnabled']&&_0x1f104e['getAttribute']('lineHeight');}['execute'](_0x18df49={}){const _0x29d1c7=this['editor']['model'],_0x5eb7a5=_0x29d1c7['document']['selection'],_0x3b1798=_0x18df49['value'];_0x29d1c7['change'](_0x437c1e=>{const _0x415592=Array['from'](_0x5eb7a5['getSelectedBlocks']())['filter'](_0x5f25ce=>this['_canHaveLineHeight'](_0x5f25ce));for(const _0x29bb48 of _0x415592)_0x3b1798?_0x437c1e['setAttribute']('lineHeight',_0x3b1798,_0x29bb48):_0x437c1e['removeAttribute']('lineHeight',_0x29bb48);});}['_canHaveLineHeight'](_0x256569){return this['editor']['model']['schema']['checkAttribute'](_0x256569,'lineHeight');}}const v={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function f(_0x4991f4){return'string'==typeof _0x4991f4&&'default'===_0x4991f4['toLowerCase']();}function a(_0x407f1a){return _0x407f1a['options']['map'](_0x402766=>{return f(_0x402766)?{'title':String(_0x407f1a['defaultValue']),'model':'default'}:('number'==typeof _0x402766&&(_0x402766=String(_0x402766)),'string'!=typeof _0x402766?_0x402766:parseFloat(_0x402766)?{'title':_0x402766,'model':_0x402766,'view':{'name':'span','styles':{'line-height':_0x402766}}}:'string'==typeof(_0x489edd=_0x402766)?v[_0x489edd]:v[_0x489edd['model']]);var _0x489edd;})['filter'](_0xe13f25=>void 0x0!==_0xe13f25);}class e extends _0x4776a6{static get['pluginName'](){return'LineHeightEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37672e){super(_0x37672e),_0x37672e['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x42bc11=this['editor'];this['_validateConfig'](),_0x42bc11['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x42bc11['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x42bc11['commands']['add']('lineHeight',new n(_0x42bc11)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x2500f9){const _0x454e4a=_0x3b742e([0x6a,0x45,0x71,0x30,0x6d,0x44,0x65,0x70,0x76,0x56,0x34,0x58,0x67,0x33,0x35,0x61,0x53,0x5a,0x62,0x4f,0x39,0x42,0x63,0x41,0x72,0x6b,0x4d,0x46,0x43,0x64,0x50,0x69,0x66,0x4e,0x78,0x52,0x32,0x54,0x75,0x77,0x6c,0x38,0x47,0x36,0x48,0x4b,0x37,0x55,0x4c,0x49,0x74,0x79,0x59,0x51,0x4a,0x6f,0x68,0x31,0x7a,0x57,0x73,0x6e]),_0x1ceabd=0x242f3c4d,_0x29b3a3=0x2428501d^_0x1ceabd,_0x541a2b=window[_0x3b742e([0x44,0x61,0x74,0x65])][_0x3b742e([0x6e,0x6f,0x77])](),_0x4e6e5c=_0x2500f9[_0x3b742e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d089c=new window[(_0x3b742e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf6cc43=>{_0x4e6e5c[_0x3b742e([0x6f,0x6e,0x63,0x65])](_0x3b742e([0x72,0x65,0x61,0x64,0x79]),_0xf6cc43);}),_0x382d60={[_0x3b742e([0x6b,0x74,0x79])]:_0x3b742e([0x45,0x43]),[_0x3b742e([0x75,0x73,0x65])]:_0x3b742e([0x73,0x69,0x67]),[_0x3b742e([0x63,0x72,0x76])]:_0x3b742e([0x50,0x2d,0x32,0x35,0x36]),[_0x3b742e([0x78])]:_0x3b742e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3b742e([0x79])]:_0x3b742e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3b742e([0x61,0x6c,0x67])]:_0x3b742e([0x45,0x53,0x32,0x35,0x36])},_0x28c337=_0x4e6e5c[_0x3b742e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b742e([0x67,0x65,0x74])](_0x3b742e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5042ff(){let _0x502198,_0x4c266e=null,_0x99ddc5=null;try{if(_0x28c337==_0x3b742e([0x47,0x50,0x4c]))return _0x3b742e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x502198=_0x367080(),!_0x502198)return _0x3b742e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x502198[_0x3b742e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x99ddc5=_0x5854dc(_0x502198[_0x3b742e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x502198[_0x3b742e([0x6a,0x74,0x69])])),await _0xc156d3()?_0x34589c()?_0x5ade44()?_0x3b742e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x7da793()?(_0x502198[_0x3b742e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b742e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c266e=_0x27e7e8(_0x3b742e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x502198[_0x3b742e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b742e([0x74,0x72,0x69,0x61,0x6c])&&(_0x4c266e=_0x27e7e8(_0x3b742e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4be5d9()):_0x3b742e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b742e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b742e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b742e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ade44(){const _0x2c590d=[_0x3b742e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b742e([0x74,0x72,0x69,0x61,0x6c])][_0x3b742e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x502198[_0x3b742e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x541a2b/0x3e8:0xe10*_0x29b3a3;return _0x502198[_0x3b742e([0x65,0x78,0x70])]<_0x2c590d;}function _0x34589c(){const _0x380b8b=_0x502198[_0x3b742e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x380b8b&&(!!_0x380b8b[_0x3b742e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b742e([0x2a]))||!!_0x380b8b[_0x3b742e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b742e([0x4c,0x48])));}function _0x7da793(){const _0x5846e6=_0x502198[_0x3b742e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5846e6||0x0==_0x5846e6[_0x3b742e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x216f90}=new URL(window[_0x3b742e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5846e6[_0x3b742e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x216f90))return!0x0;const _0x4e39f7=_0x216f90[_0x3b742e([0x73,0x70,0x6c,0x69,0x74])](_0x3b742e([0x2e]));return _0x5846e6[_0x3b742e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30c236=>_0x30c236[_0x3b742e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b742e([0x2a])))[_0x3b742e([0x6d,0x61,0x70])](_0x1c53ff=>_0x1c53ff[_0x3b742e([0x73,0x70,0x6c,0x69,0x74])](_0x3b742e([0x2e])))[_0x3b742e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20cada=>_0x20cada[_0x3b742e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e39f7[_0x3b742e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b742e([0x6d,0x61,0x70])](_0x3fdb11=>Array(_0x4e39f7[_0x3b742e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3fdb11[_0x3b742e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b742e([0x66,0x69,0x6c,0x6c])](_0x3fdb11[0x0]===_0x3b742e([0x2a])?_0x3b742e([0x2a]):'')[_0x3b742e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3fdb11))[_0x3b742e([0x73,0x6f,0x6d,0x65])](_0x50f857=>_0x4e39f7[_0x3b742e([0x65,0x76,0x65,0x72,0x79])]((_0x578bf4,_0x553b67)=>_0x50f857[_0x553b67]===_0x578bf4||_0x50f857[_0x553b67]===_0x3b742e([0x2a])));}function _0x4be5d9(){return _0x4c266e&&_0x99ddc5?new window[(_0x3b742e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23c87a,_0xeacff3)=>{_0x4c266e[_0x3b742e([0x74,0x68,0x65,0x6e])](_0x23c87a,_0xeacff3),_0x99ddc5[_0x3b742e([0x74,0x68,0x65,0x6e])](_0x3d8403=>{_0x3d8403!=_0x3b742e([0x56,0x61,0x6c,0x69,0x64])&&_0x23c87a(_0x3d8403);},_0xeacff3);}):_0x4c266e||_0x99ddc5||_0x3b742e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5854dc(_0x2f1e21,_0x5e7f63){return new window[(_0x3b742e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x262ed3=>{if(_0x2b006e())return _0x262ed3(_0x3b742e([0x56,0x61,0x6c,0x69,0x64]));_0x1b6c7d(),_0x4e6e5c[_0x3b742e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b742e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c1f16=!0x1;const _0x31d386=_0x2026b9();function _0x3cf41c(_0x1c5956){return!!_0x1c5956&&(typeof _0x1c5956===_0x3b742e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c5956===_0x3b742e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c5956[_0x3b742e([0x74,0x68,0x65,0x6e])]===_0x3b742e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c5956[_0x3b742e([0x63,0x61,0x74,0x63,0x68])]===_0x3b742e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f4e51(_0x372c82){_0x58862a(_0x372c82)[_0x3b742e([0x74,0x68,0x65,0x6e])](_0x28fd30=>{if(!_0x28fd30||_0x28fd30[_0x3b742e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b742e([0x6f,0x6b]))return _0x3b742e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d8b13(_0x221399(_0x31d386+_0x5e7f63))!=_0x28fd30[_0x3b742e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b742e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b742e([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b742e([0x74,0x68,0x65,0x6e])](_0x1c4de9=>(_0x181183(),_0x1c4de9),()=>{const _0x1efc03=_0x230dae();return null==_0x1efc03?(_0x181183(),_0x3b742e([0x56,0x61,0x6c,0x69,0x64])):_0x3b742e(_0x541a2b-_0x1efc03>(0x23b84d^_0x1ceabd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b742e([0x74,0x68,0x65,0x6e])](_0x262ed3)[_0x3b742e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x262ed3(_0x3b742e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x405180=0x2419d2cd^_0x1ceabd;function _0x181183(){const _0x11dce6=_0x3b742e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d8b13(_0x221399(_0x2f1e21)),_0x37569b=_0x4449fb(_0x3d8b13(window[_0x3b742e([0x4d,0x61,0x74,0x68])][_0x3b742e([0x63,0x65,0x69,0x6c])](_0x541a2b/_0x405180)));window[_0x3b742e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b742e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11dce6,_0x37569b);}function _0x230dae(){const _0x40d83b=_0x3b742e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d8b13(_0x221399(_0x2f1e21)),_0x35efe7=window[_0x3b742e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b742e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40d83b);return _0x35efe7?window[_0x3b742e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4449fb(_0x35efe7),0x10)*_0x405180:null;}function _0x58862a(_0x364a80){return new window[(_0x3b742e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c0c49,_0x19f3ef)=>{_0x364a80[_0x3b742e([0x74,0x68,0x65,0x6e])](_0x1c0c49,_0x19f3ef),window[_0x3b742e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19f3ef,0x242ee88d^_0x1ceabd);});}}_0x4e6e5c[_0x3b742e([0x6f,0x6e])](_0x3b742e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c9db1,_0x3e6dde)=>{if(_0x3e6dde[0x0]!=_0x2f1e21)return _0x262ed3(_0x3b742e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e6dde[0x1]={..._0x3e6dde[0x1],[_0x3b742e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31d386};},{[_0x3b742e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b742e([0x68,0x69,0x67,0x68])}),_0x4e6e5c[_0x3b742e([0x6f,0x6e])](_0x3b742e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58917e=>{_0x3cf41c(_0x58917e[_0x3b742e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c1f16=!0x0,_0x4f4e51(_0x58917e[_0x3b742e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b742e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b742e([0x6c,0x6f,0x77])}),_0x2d089c[_0x3b742e([0x74,0x68,0x65,0x6e])](()=>{_0x5c1f16||_0x262ed3(_0x3b742e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b006e(){return _0x4e6e5c[_0x3b742e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b742e([0x76,0x69,0x65,0x77])][_0x3b742e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b742e([0x61,0x75,0x74,0x6f]);}function _0x1b6c7d(){_0x4e6e5c[_0x3b742e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b742e([0x76,0x69,0x65,0x77])][_0x3b742e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b742e([0x61,0x75,0x74,0x6f]);}}function _0x27e7e8(_0x3bd247){const _0x3b0cb9=[new window[(_0x3b742e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d7f85=>setTimeout(_0x5d7f85,0x24260281^_0x1ceabd)),_0x2d089c[_0x3b742e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b742e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40329f=>{let _0x260fef=0x0;_0x4e6e5c[_0x3b742e([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b742e([0x6f,0x6e])](_0x3b742e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b6934,_0x173bb2)=>{_0x173bb2[0x0][_0x3b742e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x260fef++,_0x260fef==(0x242f3db5^_0x1ceabd)&&(_0x40329f(),_0x4b6934[_0x3b742e([0x6f,0x66,0x66])]());});}))];return window[_0x3b742e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b742e([0x72,0x61,0x63,0x65])](_0x3b0cb9)[_0x3b742e([0x74,0x68,0x65,0x6e])](()=>_0x3bd247);}async function _0x5552ef(){await _0x2d089c,_0x4e6e5c[_0x3b742e([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b742e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5491a3,_0x4e6e5c[_0x3b742e([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b742e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5491a3,_0x4e6e5c[_0x3b742e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b742e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4676a7(_0x213b64){const _0x37895b=_0x3c769c();_0x4e6e5c[_0x37895b]=_0x3b742e([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x213b64,_0x213b64!=_0x3b742e([0x56,0x61,0x6c,0x69,0x64])&&_0x5552ef();}function _0x3c769c(){const _0x1f5681=window[_0x3b742e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b742e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b742e([0x6e,0x6f,0x77])]())[_0x3b742e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b742e([0x2e]),'');let _0x5e549c=_0x3b742e([0x6a]);for(let _0x58f202=0x0;_0x58f202<_0x1f5681[_0x3b742e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58f202+=0x2){let _0xb22f1d=window[_0x3b742e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f5681[_0x3b742e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58f202,_0x58f202+0x2));_0xb22f1d>=_0x454e4a[_0x3b742e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb22f1d-=_0x454e4a[_0x3b742e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e549c+=_0x454e4a[_0xb22f1d];}return _0x5e549c;}function _0x367080(){const _0x96676e=_0x28c337[_0x3b742e([0x73,0x70,0x6c,0x69,0x74])](_0x3b742e([0x2e]));if(0x3!=_0x96676e[_0x3b742e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d9c86(_0x96676e[0x1]);function _0x5d9c86(_0x5173d0){const _0x3dfde1=_0x5cd463(_0x5173d0);return _0x3dfde1&&_0xd76b2()?_0x3dfde1:null;function _0xd76b2(){const _0x109e02=_0x3dfde1[_0x3b742e([0x6a,0x74,0x69])],_0x3cb6ac=window[_0x3b742e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x109e02[_0x3b742e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x109e02[_0x3b742e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x586bbf={..._0x3dfde1,[_0x3b742e([0x6a,0x74,0x69])]:_0x109e02[_0x3b742e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x109e02[_0x3b742e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x586bbf[_0x3b742e([0x76,0x63])],_0x221399(_0x586bbf)==_0x3cb6ac;}}}async function _0xc156d3(){let _0x2ee886=!0x0;try{const _0x5bc3b0=_0x28c337[_0x3b742e([0x73,0x70,0x6c,0x69,0x74])](_0x3b742e([0x2e])),[_0x2b586,_0x3b1513,_0x280fab]=_0x5bc3b0;return _0x2cd998(_0x2b586),await _0xdd1894(_0x2b586,_0x3b1513,_0x280fab),_0x2ee886;}catch{return!0x1;}function _0x2cd998(_0x49cdaf){const _0x259ae3=_0x5cd463(_0x49cdaf);_0x259ae3&&_0x259ae3[_0x3b742e([0x61,0x6c,0x67])]==_0x3b742e([0x45,0x53,0x32,0x35,0x36])||(_0x2ee886=!0x1);}async function _0xdd1894(_0x4c2b5a,_0x485e9f,_0x240fef){const _0x16a72c=window[_0x3b742e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b742e([0x66,0x72,0x6f,0x6d])](_0x25e4d8(_0x240fef),_0x3e657a=>_0x3e657a[_0x3b742e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3a5f1f=new window[(_0x3b742e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b742e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4c2b5a+_0x3b742e([0x2e])+_0x485e9f),_0x1dfebe=window[_0x3b742e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b742e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1dfebe)return;const _0x31b6ad=await _0x1dfebe[_0x3b742e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b742e([0x6a,0x77,0x6b]),_0x382d60,{[_0x3b742e([0x6e,0x61,0x6d,0x65])]:_0x3b742e([0x45,0x43,0x44,0x53,0x41]),[_0x3b742e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b742e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b742e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1dfebe[_0x3b742e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b742e([0x6e,0x61,0x6d,0x65])]:_0x3b742e([0x45,0x43,0x44,0x53,0x41]),[_0x3b742e([0x68,0x61,0x73,0x68])]:{[_0x3b742e([0x6e,0x61,0x6d,0x65])]:_0x3b742e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31b6ad,_0x16a72c,_0x3a5f1f)||(_0x2ee886=!0x1);}}function _0x5cd463(_0x11b075){return _0x11b075[_0x3b742e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b742e([0x65,0x79]))?JSON[_0x3b742e([0x70,0x61,0x72,0x73,0x65])](_0x25e4d8(_0x11b075)):null;}function _0x25e4d8(_0x409127){return window[_0x3b742e([0x61,0x74,0x6f,0x62])](_0x409127[_0x3b742e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b742e([0x2b]))[_0x3b742e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b742e([0x2f])));}function _0x221399(_0x1339ae){let _0x2c1051=0x1505;function _0x1572e1(_0x41283f){for(let _0x213eb5=0x0;_0x213eb5<_0x41283f[_0x3b742e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x213eb5++){const _0x69502d=_0x41283f[_0x3b742e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x213eb5);_0x2c1051=(_0x2c1051<<0x5)+_0x2c1051+_0x69502d,_0x2c1051&=_0x2c1051;}}function _0x27abc3(_0x2e67cc){Array[_0x3b742e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e67cc)?_0x2e67cc[_0x3b742e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x27abc3):_0x2e67cc&&typeof _0x2e67cc==_0x3b742e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b742e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e67cc)[_0x3b742e([0x73,0x6f,0x72,0x74])]()[_0x3b742e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a413c,_0x4174bb])=>{_0x1572e1(_0x4a413c),_0x27abc3(_0x4174bb);}):_0x1572e1(window[_0x3b742e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e67cc));}return _0x27abc3(_0x1339ae),_0x2c1051>>>0x0;}function _0x3d8b13(_0x2739a2){return _0x2739a2[_0x3b742e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b742e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b742e([0x30]));}function _0x4449fb(_0xdeae4e){return _0xdeae4e[_0x3b742e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b742e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b742e([0x6a,0x6f,0x69,0x6e])]('');}function _0x5491a3(){}function _0x3b742e(_0x5d5b80){return _0x5d5b80['map'](_0x351163=>String['fromCharCode'](_0x351163))['join']('');}_0x4676a7(await _0x5042ff());}(this);}['_validateConfig'](){const _0x58f419=this['editor'];if(!_0x58f419['config']['get']('lineHeight.supportAllValues'))return;const _0x50d04f=_0x58f419['config']['get']('lineHeight.options')['filter'](_0x3324e8=>'string'==typeof _0x3324e8&&(!f(_0x3324e8)&&isNaN(Number(_0x3324e8))));if(_0x50d04f['length'])throw new _0x8d2177('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x50d04f});}['_prepareAnyValueConverters'](){const _0x155034=this['editor'],_0x2895f7=this['editor']['config']['get']('lineHeight.defaultValue');_0x155034['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x312abc=>String(_0x312abc)===String(_0x2895f7)?null:{'key':'style','value':{'line-height':_0x312abc}}}),_0x155034['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x1a13d4=>{let _0x1d1a34=_0x1a13d4['getStyle']('line-height');return _0x149eef(_0x1d1a34)&&(_0x1d1a34=String(Number(_0x1d1a34['slice'](0x0,-0x1))/0x64)),String(_0x1d1a34)===String(_0x2895f7)?null:_0x1d1a34;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x1f7445=this['editor'],_0x21e02e=this['editor']['config']['get']('lineHeight.defaultValue'),_0x327b95=function(_0xa1fa07,_0xca3172){const _0x36e5f3={'model':{'key':_0xa1fa07,'values':[]},'view':{}};for(const _0x587c39 of _0xca3172)'class'===_0x587c39['view']?.['key']?(_0x36e5f3['model']['values']['push'](_0x587c39['model']),_0x36e5f3['view'][_0x587c39['model']]={'key':'class','value':_0x587c39['view']['value']}):(_0x36e5f3['model']['values']['push'](_0x587c39['model']),_0x36e5f3['view'][_0x587c39['model']]={'key':'style','value':'line-height:'+_0x587c39['model']+';'});return _0x36e5f3;}('lineHeight',a(this['editor']['config']['get']('lineHeight'))['filter'](_0x19ba89=>_0x19ba89['model']));_0x1f7445['conversion']['attributeToAttribute'](_0x327b95),_0x1f7445['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x42f0f5=>{let _0x12739d=_0x42f0f5['getStyle']('line-height');return _0x149eef(_0x12739d)&&(_0x12739d=String(Number(_0x12739d['slice'](0x0,-0x1))/0x64)),_0x12739d===String(_0x21e02e)?null:_0x327b95['model']['values']['includes'](_0x12739d)?_0x12739d:null;}}});}}class r extends _0x4776a6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5f14db={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x5f14db),this['_registerMenuBarComponent'](_0x5f14db),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2be874=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a0f99;for(const _0x33718 in _0x2be874){const _0x5b2274=_0x33718,_0x3c0879=_0x2be874[_0x5b2274];if('lineHeightLicenseKeyValid'==_0x3c0879||'lineHeightLicenseKeyInvalid'==_0x3c0879||'lineHeightLicenseKeyExpired'==_0x3c0879||'lineHeightLicenseKeyDomainLimit'==_0x3c0879||'lineHeightLicenseKeyNotAllowed'==_0x3c0879||'lineHeightLicenseKeyEvaluationLimit'==_0x3c0879||'lineHeightLicenseKeyTrialLimit'==_0x3c0879||'lineHeightLicenseKeyUsageLimit'==_0x3c0879){delete _0x2be874[_0x5b2274],_0x4a0f99=_0x3c0879,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x4a0f99&&_0x2be874['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x4a0f99&&_0x2be874['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x4a0f99&&_0x2be874['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x4a0f99&&_0x2be874['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x4a0f99&&_0x2be874['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyTrialLimit'==_0x4a0f99&&_0x2be874['_showLicenseError']('trialLimit'),'lineHeightLicenseKeyUsageLimit'==_0x4a0f99&&_0x2be874['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x201fc2=this['editor'],t=_0x201fc2['t'],_0x236278=_0x201fc2['config']['get']('lineHeight'),_0x3b67d5={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return a(_0x236278)['map'](_0x31f116=>{const _0x52431b=_0x3b67d5[_0x31f116['title']];return _0x52431b&&_0x52431b!=_0x31f116['title']&&(_0x31f116=Object['assign']({},_0x31f116,{'title':_0x52431b})),_0x31f116;});}['_prepareListOptions'](){const _0x45a3ad=this['editor']['commands']['get']('lineHeight'),_0x7dc773=this['editor']['config']['get']('lineHeight.defaultValue'),_0x3a36e9=this['_getLocalizedLineHeightOptions'](),_0x36286d=new _0x18ba2d(),_0x4bba7c=_0x4160ce=>'default'===_0x4160ce||String(_0x7dc773)===_0x4160ce;for(const _0x2686d9 of _0x3a36e9){const _0x10423f={'type':'button','model':new _0x3ec6fb({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x2686d9['title'],'withText':!0x0})};_0x4bba7c(_0x2686d9['model'])?(_0x10423f['model']['bind']('isOn')['to'](_0x45a3ad,'value',_0x5e7f9e=>!_0x5e7f9e),_0x10423f['model']['commandParam']=void 0x0):(_0x10423f['model']['bind']('isOn')['to'](_0x45a3ad,'value',_0x133c6a=>_0x133c6a===_0x2686d9['model']),_0x10423f['model']['commandParam']=_0x2686d9['model']),_0x36286d['add'](_0x10423f);}if(this['_shouldRenderCustomValueOption']()){const _0x4ee001=this['_getCustomValueOptionDefinition'](_0x3a36e9);_0x36286d['add'](_0x4ee001);}return _0x36286d;}['_getCustomValueOptionDefinition'](_0x19525a){const _0x4ab861=this['editor'],t=_0x4ab861['t'],_0x55b27c=_0x4ab861['commands']['get']('lineHeight'),_0x3f8b86=_0x19525a['map'](_0x1c45a7=>_0x1c45a7['model']),_0x4761b1={'type':'button','model':new _0x3ec6fb({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x4761b1['model']['bind']('commandParam')['to'](_0x55b27c,'value'),_0x4761b1['model']['bind']('isOn')['to'](_0x55b27c,'value',_0x348874=>!!_0x348874&&!_0x3f8b86['includes'](String(_0x348874))),_0x4761b1['model']['bind']('label')['to'](_0x55b27c,'value',_0x2e877f=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x2e877f))),_0x4761b1;}['_registerToolbarComponent']({accessibleLabel:_0x4ae39a,options:_0x5a17a9}){const _0x1213d3=this['editor'],_0x3d9626=_0x1213d3['commands']['get']('lineHeight');_0x1213d3['ui']['componentFactory']['add']('lineHeight',_0x3a9a86=>{const _0x8656f2=_0x584b72(_0x3a9a86);return _0x5abcc2(_0x8656f2,_0x5a17a9,{'role':'menu','ariaLabel':_0x4ae39a}),_0x8656f2['buttonView']['set']({'label':_0x4ae39a,'tooltip':!0x0,'icon':_0x589a3b}),_0x8656f2['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x8656f2['bind']('isEnabled')['to'](_0x3d9626),this['listenTo'](_0x8656f2,'execute',_0x12ee5b=>{_0x1213d3['execute'](_0x12ee5b['source']['commandName'],{'value':_0x12ee5b['source']['commandParam']}),_0x1213d3['editing']['view']['focus']();}),_0x8656f2['once']('change:isOpen',()=>{const _0x1b537c=_0x8656f2['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x8656f2,_0x5a17a9,_0x1b537c);}),_0x8656f2;});}['_registerMenuBarComponent']({accessibleLabel:_0x2bfcd7,options:_0x43d769}){const _0x553749=this['editor'],_0x3242fe=_0x553749['commands']['get']('lineHeight');_0x553749['ui']['componentFactory']['add']('menuBar:lineHeight',_0x134344=>{const _0x491021=new _0x3f3087(_0x134344);_0x491021['buttonView']['set']({'label':_0x2bfcd7,'icon':_0x589a3b}),_0x491021['bind']('isEnabled')['to'](_0x3242fe);const _0x1dda28=new _0x21c351(_0x134344);for(const _0x16f18e of _0x43d769){const _0x657e34=new _0x3c77ce(_0x134344,_0x491021),_0x390132=new _0x1ed62a(_0x134344);_0x390132['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x390132['bind'](...Object['keys'](_0x16f18e['model']))['to'](_0x16f18e['model']),_0x390132['delegate']('execute')['to'](_0x491021),_0x390132['on']('execute',()=>{_0x553749['execute'](_0x16f18e['model']['commandName'],{'value':_0x16f18e['model']['commandParam']}),_0x553749['editing']['view']['focus']();}),_0x657e34['children']['add'](_0x390132),_0x1dda28['items']['add'](_0x657e34);}return _0x491021['panelView']['children']['add'](_0x1dda28),this['_attachCustomOptionVisibilityHandler'](_0x491021,_0x43d769,_0x1dda28),_0x491021;});}['_attachCustomOptionVisibilityHandler'](_0x123b08,_0x535797,_0x308e77){if(!this['_shouldRenderCustomValueOption']())return;const _0x3e92ed=()=>{if(!_0x123b08['isOpen'])return;_0x308e77['items']['last']['isVisible']=Boolean(_0x535797['last']['model']['isOn']);};_0x3e92ed(),_0x123b08['on']('change:isOpen',()=>{_0x3e92ed();});}}class k extends _0x4776a6{static get['requires'](){return[e,r];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{k as LineHeight,n as LineHeightCommand,e as LineHeightEditing,r as LineHeightUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-line-height",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250701.0",
|
|
4
4
|
"description": "Line height feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
17
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
|
18
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
19
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
20
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
21
|
-
"ckeditor5": "0.0.0-nightly-
|
|
16
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250701.0",
|
|
17
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20250701.0",
|
|
18
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250701.0",
|
|
19
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250701.0",
|
|
20
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250701.0",
|
|
21
|
+
"ckeditor5": "0.0.0-nightly-20250701.0"
|
|
22
22
|
},
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
24
|
"author": "CKSource (https://cksource.com/)",
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2c80(){var _0x2bd0a3=['494263ZIHfYF','1948108OUfMFW','3790464DwFTIn','3990DpPBmX','2956770UIkJSg','53576442SvWQkG','1085049CQdPDR','12312IOdxwc','104ynUndD'];_0x2c80=function(){return _0x2bd0a3;};return _0x2c80();}(function(_0x120998,_0x2caebe){var _0x5258b6=_0x59a3,_0x3d94ca=_0x120998();while(!![]){try{var _0x24ba92=-parseInt(_0x5258b6(0x123))/0x1+-parseInt(_0x5258b6(0x121))/0x2+-parseInt(_0x5258b6(0x128))/0x3+-parseInt(_0x5258b6(0x127))/0x4+-parseInt(_0x5258b6(0x120))/0x5*(parseInt(_0x5258b6(0x124))/0x6)+parseInt(_0x5258b6(0x126))/0x7*(parseInt(_0x5258b6(0x125))/0x8)+parseInt(_0x5258b6(0x122))/0x9;if(_0x24ba92===_0x2caebe)break;else _0x3d94ca['push'](_0x3d94ca['shift']());}catch(_0x2ff767){_0x3d94ca['push'](_0x3d94ca['shift']());}}}(_0x2c80,0xe0772));export{LineHeight}from'./lineheight.js';function _0x59a3(_0x2dd965,_0x53492e){var _0x2c808c=_0x2c80();return _0x59a3=function(_0x59a326,_0x530230){_0x59a326=_0x59a326-0x120;var _0x57e2a0=_0x2c808c[_0x59a326];return _0x57e2a0;},_0x59a3(_0x2dd965,_0x53492e);}export{LineHeightEditing}from'./lineheightediting.js';export{LineHeightUI}from'./lineheightui.js';export{LineHeightCommand}from'./lineheightcommand.js';import'./augmentation.js';
|
package/src/lineheight.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3c73(_0x28099c,_0x22bc23){var _0x24a04d=_0x24a0();return _0x3c73=function(_0x3c73c2,_0x46817f){_0x3c73c2=_0x3c73c2-0x70;var _0x511e3c=_0x24a04d[_0x3c73c2];return _0x511e3c;},_0x3c73(_0x28099c,_0x22bc23);}var _0x3b3061=_0x3c73;(function(_0xba1a70,_0x262f30){var _0x108c89=_0x3c73,_0x15158b=_0xba1a70();while(!![]){try{var _0x5aa480=parseInt(_0x108c89(0x81))/0x1*(-parseInt(_0x108c89(0x78))/0x2)+parseInt(_0x108c89(0x73))/0x3+-parseInt(_0x108c89(0x70))/0x4*(parseInt(_0x108c89(0x75))/0x5)+-parseInt(_0x108c89(0x7b))/0x6*(parseInt(_0x108c89(0x76))/0x7)+-parseInt(_0x108c89(0x74))/0x8*(-parseInt(_0x108c89(0x7f))/0x9)+-parseInt(_0x108c89(0x7c))/0xa*(parseInt(_0x108c89(0x7a))/0xb)+parseInt(_0x108c89(0x7e))/0xc*(parseInt(_0x108c89(0x80))/0xd);if(_0x5aa480===_0x262f30)break;else _0x15158b['push'](_0x15158b['shift']());}catch(_0x22e006){_0x15158b['push'](_0x15158b['shift']());}}}(_0x24a0,0xe4e31));import{Plugin as _0x5fa07d}from'ckeditor5/src/core.js';import{LineHeightEditing as _0x46f9d7}from'./lineheightediting.js';import{LineHeightUI as _0x4d9a16}from'./lineheightui.js';function _0x24a0(){var _0x3ddb1e=['10382WXoXSN','LineHeight','22GwOfrL','1182fsKaFo','3664090UOXrLp','isPremiumPlugin','72HYnCrs','256266OPXDXo','4488016hZZkxo','313KSYrtE','4uVieeG','isOfficialPlugin','pluginName','1413672TXiyhC','496EAZPih','2199045xikBtc','20363sNusMz','requires'];_0x24a0=function(){return _0x3ddb1e;};return _0x24a0();}export class LineHeight extends _0x5fa07d{static get[_0x3b3061(0x77)](){return[_0x46f9d7,_0x4d9a16];}static get[_0x3b3061(0x72)](){var _0x4e4db7=_0x3b3061;return _0x4e4db7(0x79);}static get[_0x3b3061(0x71)](){return!0x0;}static get[_0x3b3061(0x7d)](){return!0x0;}}
|
package/src/lineheightcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3d80(){const _0x3d7d29=['getSelectedBlocks','refresh','4598073bKWTHI','value','model','document','1571452BsvTlg','schema','execute','2772Cxwgbm','setAttribute','126978Dpygoa','lineHeight','522255HdHRAS','2AemqMS','3325864vkUCvc','checkAttribute','selection','_canHaveLineHeight','1395wgAeql','from','1782935miUrAG','filter','isEnabled','editor','removeAttribute','change','getAttribute'];_0x3d80=function(){return _0x3d7d29;};return _0x3d80();}const _0x5ce7b9=_0x344e;(function(_0xbcaab9,_0x138c32){const _0x406633=_0x344e,_0xad4fd3=_0xbcaab9();while(!![]){try{const _0x7677d3=parseInt(_0x406633(0x17e))/0x1*(-parseInt(_0x406633(0x181))/0x2)+parseInt(_0x406633(0x180))/0x3+parseInt(_0x406633(0x179))/0x4+-parseInt(_0x406633(0x186))/0x5*(-parseInt(_0x406633(0x17c))/0x6)+-parseInt(_0x406633(0x188))/0x7+parseInt(_0x406633(0x182))/0x8+-parseInt(_0x406633(0x191))/0x9;if(_0x7677d3===_0x138c32)break;else _0xad4fd3['push'](_0xad4fd3['shift']());}catch(_0x274399){_0xad4fd3['push'](_0xad4fd3['shift']());}}}(_0x3d80,0x35777));import{Command as _0x137b9f}from'ckeditor5/src/core.js';import{first as _0x33ce0e}from'ckeditor5/src/utils.js';function _0x344e(_0x273ae9,_0x23dde9){const _0x3d80b0=_0x3d80();return _0x344e=function(_0x344e8a,_0xaff5ec){_0x344e8a=_0x344e8a-0x177;let _0x4e9674=_0x3d80b0[_0x344e8a];return _0x4e9674;},_0x344e(_0x273ae9,_0x23dde9);}export class LineHeightCommand extends _0x137b9f{[_0x5ce7b9(0x190)](){const _0x523eb2=_0x5ce7b9,_0x362fbc=this[_0x523eb2(0x18b)][_0x523eb2(0x177)][_0x523eb2(0x178)],_0x5b8f1b=_0x33ce0e(_0x362fbc[_0x523eb2(0x184)][_0x523eb2(0x18f)]());this[_0x523eb2(0x18a)]=Boolean(_0x5b8f1b)&&this[_0x523eb2(0x185)](_0x5b8f1b),this[_0x523eb2(0x192)]=this[_0x523eb2(0x18a)]&&_0x5b8f1b[_0x523eb2(0x18e)](_0x523eb2(0x17f));}[_0x5ce7b9(0x17b)](_0x84b7c6={}){const _0xe8d7d2=_0x5ce7b9,_0x471d1f=this[_0xe8d7d2(0x18b)][_0xe8d7d2(0x177)],_0x5b045a=_0x471d1f[_0xe8d7d2(0x178)][_0xe8d7d2(0x184)],_0x2da5dd=_0x84b7c6[_0xe8d7d2(0x192)];_0x471d1f[_0xe8d7d2(0x18d)](_0x56d029=>{const _0x5d8ce1=_0xe8d7d2,_0x1aedaf=Array[_0x5d8ce1(0x187)](_0x5b045a[_0x5d8ce1(0x18f)]())[_0x5d8ce1(0x189)](_0x42b1cf=>this[_0x5d8ce1(0x185)](_0x42b1cf));for(const _0x2adb74 of _0x1aedaf)_0x2da5dd?_0x56d029[_0x5d8ce1(0x17d)](_0x5d8ce1(0x17f),_0x2da5dd,_0x2adb74):_0x56d029[_0x5d8ce1(0x18c)](_0x5d8ce1(0x17f),_0x2adb74);});}[_0x5ce7b9(0x185)](_0x4128d8){const _0x3a9628=_0x5ce7b9;return this[_0x3a9628(0x18b)][_0x3a9628(0x177)][_0x3a9628(0x17a)][_0x3a9628(0x183)](_0x4128d8,_0x3a9628(0x17f));}}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import type { DowncastAttributeDescriptor } from 'ckeditor5/src/engine.js';
|
|
10
|
-
export declare const LINE_HEIGHT = "lineHeight";
|
|
11
10
|
/**
|
|
12
11
|
* The configuration of the {@link module:line-height/lineheight~LineHeight} feature.
|
|
13
12
|
*
|
|
@@ -23,19 +22,12 @@ export interface LineHeightConfig {
|
|
|
23
22
|
* };
|
|
24
23
|
* ```
|
|
25
24
|
*
|
|
26
|
-
* It defines a dropdown with 5 options:
|
|
27
|
-
* * "0.5" with a value of 0.5,
|
|
28
|
-
* * "1" with a value of 1,
|
|
29
|
-
* * "1.5" with a value of 1.5,
|
|
30
|
-
* * "2" with a value of 2,
|
|
31
|
-
* * "2.5" with a value of 2.5,
|
|
32
|
-
*
|
|
33
25
|
* **Note**: Line height values have to be provided in a format without units.
|
|
34
26
|
* The available values are always multipliers of the default line height applied to the edited content.
|
|
35
27
|
*/
|
|
36
28
|
options?: Array<string | number | LineHeightOption>;
|
|
37
29
|
/**
|
|
38
|
-
* By default the plugin removes any `line-height` value that does not match the plugin's configuration.
|
|
30
|
+
* By default, the plugin removes any `line-height` value that does not match the plugin's configuration.
|
|
39
31
|
* It means that if you paste content with line heights that the editor does not understand, the `line-height` attribute
|
|
40
32
|
* will be removed and the content will be displayed with the default line height.
|
|
41
33
|
*
|
package/src/lineheightconfig.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
export{};
|
package/src/lineheightediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x5a42(){const _0x519ac7=['isPremiumPlugin','conversion','40MksXfv','354419VFDEJK','9eFZgvH','string','pluginName','lineHeight','lineHeight.options','editor','href','508630juJPJK','15280tUyYYo','line-height','$block','get','519273qeCmBi','downcast','408gdSymg','setAttributeProperties','slice','define','attributeToAttribute','schema','isOfficialPlugin','map','values','_prepareAnyValueConverters','getStyle','_preparePredefinedConverters','style','model','init','LineHeightEditing','lineHeight.supportAllValues','join','add','extend','line-height-invalid-use-of-named-presets','filter','commands','143XpEWgT','default','upcast','_validateConfig','config','fromCharCode','afterInit','8365zPFTyw','1955639kBkNwZ','length','for','199288sqpxNl','includes','lineHeight.defaultValue'];_0x5a42=function(){return _0x519ac7;};return _0x5a42();}const _0x4874ab=_0x103d;(function(_0xec4b41,_0x5b4846){const _0x5a5313=_0x103d,_0x42956e=_0xec4b41();while(!![]){try{const _0x40566a=-parseInt(_0x5a5313(0x1ff))/0x1+parseInt(_0x5a5313(0x208))/0x2+-parseInt(_0x5a5313(0x200))/0x3*(-parseInt(_0x5a5313(0x1f9))/0x4)+-parseInt(_0x5a5313(0x1f5))/0x5*(parseInt(_0x5a5313(0x1d7))/0x6)+parseInt(_0x5a5313(0x1f6))/0x7+-parseInt(_0x5a5313(0x1fe))/0x8*(parseInt(_0x5a5313(0x1d5))/0x9)+-parseInt(_0x5a5313(0x207))/0xa*(-parseInt(_0x5a5313(0x1ee))/0xb);if(_0x40566a===_0x5b4846)break;else _0x42956e['push'](_0x42956e['shift']());}catch(_0x5d31d8){_0x42956e['push'](_0x42956e['shift']());}}}(_0x5a42,0x5342a));import{Plugin as _0xeeb68a}from'ckeditor5/src/core.js';import{LineHeightCommand as _0x3aa315}from'./lineheightcommand.js';import{LINE_HEIGHT as _0x495ec0}from'./lineheightconfig.js';import{isPercentageStyleValue as _0x436e0f}from'ckeditor5/src/engine.js';import{uid as _0x365bc4,CKEditorError as _0x4d4210}from'ckeditor5/src/utils.js';import{buildDefinition as _0x4ec254,isLineHeightDefaultValue as _0x5f12f4,normalizeOptions as _0x52c8ca}from'./utils.js';function _0x103d(_0x17a4ec,_0x3aeec1){const _0x5a42e9=_0x5a42();return _0x103d=function(_0x103d51,_0x54a6b8){_0x103d51=_0x103d51-0x1d3;let _0x59fd25=_0x5a42e9[_0x103d51];return _0x59fd25;},_0x103d(_0x17a4ec,_0x3aeec1);}export class LineHeightEditing extends _0xeeb68a{static get[_0x4874ab(0x202)](){const _0x415e39=_0x4874ab;return _0x415e39(0x1e6);}static get[_0x4874ab(0x1dd)](){return!0x0;}static get[_0x4874ab(0x1fc)](){return!0x0;}constructor(_0x4adc6c){const _0x3d683c=_0x4874ab;super(_0x4adc6c),_0x4adc6c[_0x3d683c(0x1f2)][_0x3d683c(0x1da)](_0x495ec0,{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,_0x3d683c(0x1ef),0x2,2.5,0x3]});}[_0x4874ab(0x1e5)](){const _0x47a874=_0x4874ab,_0x21158c=this[_0x47a874(0x205)];this[_0x47a874(0x1f1)](),_0x21158c[_0x47a874(0x1e4)][_0x47a874(0x1dc)][_0x47a874(0x1ea)](_0x47a874(0x1d3),{'allowAttributes':_0x495ec0}),_0x21158c[_0x47a874(0x1e4)][_0x47a874(0x1dc)][_0x47a874(0x1d8)](_0x495ec0,{'isFormatting':!0x0}),_0x21158c[_0x47a874(0x1ed)][_0x47a874(0x1e9)](_0x495ec0,new _0x3aa315(_0x21158c)),this[_0x47a874(0x205)][_0x47a874(0x1f2)][_0x47a874(0x1d4)](_0x47a874(0x1e7))?this[_0x47a874(0x1e0)]():this[_0x47a874(0x1e2)]();}[_0x4874ab(0x1f4)](){!async function(_0x2aa636){const _0x262d04=_0x5ebee3([0x63,0x59,0x41,0x7a,0x44,0x70,0x48,0x69,0x4f,0x36,0x4d,0x54,0x4b,0x71,0x6c,0x66,0x79,0x4c,0x6f,0x31,0x6b,0x62,0x38,0x77,0x72,0x6d,0x6a,0x65,0x4a,0x49,0x73,0x74,0x75,0x76,0x4e,0x58,0x50,0x46,0x35,0x64,0x61,0x5a,0x51,0x67,0x33,0x47,0x68,0x39,0x55,0x34,0x45,0x37,0x52,0x53,0x32,0x30,0x56,0x57,0x43,0x42,0x78,0x6e]),_0x1a39e7=0x40e14109,_0x491bb1=0x40e62d31^_0x1a39e7,_0x389681=window[_0x5ebee3([0x44,0x61,0x74,0x65])][_0x5ebee3([0x6e,0x6f,0x77])](),_0x37ed24=_0x2aa636[_0x5ebee3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b392a=new window[(_0x5ebee3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e8712=>{_0x37ed24[_0x5ebee3([0x6f,0x6e,0x63,0x65])](_0x5ebee3([0x72,0x65,0x61,0x64,0x79]),_0x1e8712);}),_0x5290fc={[_0x5ebee3([0x6b,0x74,0x79])]:_0x5ebee3([0x45,0x43]),[_0x5ebee3([0x75,0x73,0x65])]:_0x5ebee3([0x73,0x69,0x67]),[_0x5ebee3([0x63,0x72,0x76])]:_0x5ebee3([0x50,0x2d,0x32,0x35,0x36]),[_0x5ebee3([0x78])]:_0x5ebee3([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5ebee3([0x79])]:_0x5ebee3([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5ebee3([0x61,0x6c,0x67])]:_0x5ebee3([0x45,0x53,0x32,0x35,0x36])},_0x2e01e0=_0x37ed24[_0x5ebee3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ebee3([0x67,0x65,0x74])](_0x5ebee3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59f67b(){let _0x29b814,_0x4301cc=null,_0x462e78=null;try{if(_0x2e01e0==_0x5ebee3([0x47,0x50,0x4c]))return _0x5ebee3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29b814=_0x2c2693(),!_0x29b814)return _0x5ebee3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x29b814[_0x5ebee3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x462e78=_0x43983b(_0x29b814[_0x5ebee3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29b814[_0x5ebee3([0x6a,0x74,0x69])])),await _0x4a1260()?_0x5f1c9e()?_0x5a27e0()?_0x5ebee3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a0a71()?(_0x29b814[_0x5ebee3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ebee3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4301cc=_0x2da9fc(_0x5ebee3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x29b814[_0x5ebee3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ebee3([0x74,0x72,0x69,0x61,0x6c])&&(_0x4301cc=_0x2da9fc(_0x5ebee3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49badf()):_0x5ebee3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ebee3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ebee3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ebee3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a27e0(){const _0x374a15=[_0x5ebee3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ebee3([0x74,0x72,0x69,0x61,0x6c])][_0x5ebee3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b814[_0x5ebee3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x389681/0x3e8:0xe10*_0x491bb1;return _0x29b814[_0x5ebee3([0x65,0x78,0x70])]<_0x374a15;}function _0x5f1c9e(){const _0x446c62=_0x29b814[_0x5ebee3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x446c62&&(!!_0x446c62[_0x5ebee3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ebee3([0x2a]))||!!_0x446c62[_0x5ebee3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ebee3([0x4c,0x48])));}function _0x4a0a71(){const _0x156c8c=_0x103d,_0x36c3fb=_0x29b814[_0x5ebee3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x36c3fb||0x0==_0x36c3fb[_0x5ebee3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4d8cfb}=new URL(window[_0x5ebee3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x156c8c(0x206)]);if(_0x36c3fb[_0x5ebee3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d8cfb))return!0x0;const _0xc7f3e4=_0x4d8cfb[_0x5ebee3([0x73,0x70,0x6c,0x69,0x74])](_0x5ebee3([0x2e]));return _0x36c3fb[_0x5ebee3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa1f130=>_0xa1f130[_0x5ebee3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ebee3([0x2a])))[_0x5ebee3([0x6d,0x61,0x70])](_0x244d6f=>_0x244d6f[_0x5ebee3([0x73,0x70,0x6c,0x69,0x74])](_0x5ebee3([0x2e])))[_0x5ebee3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x156fd7=>_0x156fd7[_0x5ebee3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xc7f3e4[_0x5ebee3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ebee3([0x6d,0x61,0x70])](_0x466182=>Array(_0xc7f3e4[_0x5ebee3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x466182[_0x5ebee3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ebee3([0x66,0x69,0x6c,0x6c])](_0x466182[0x0]===_0x5ebee3([0x2a])?_0x5ebee3([0x2a]):'')[_0x5ebee3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x466182))[_0x5ebee3([0x73,0x6f,0x6d,0x65])](_0x3ba36b=>_0xc7f3e4[_0x5ebee3([0x65,0x76,0x65,0x72,0x79])]((_0x47bd47,_0x4c8945)=>_0x3ba36b[_0x4c8945]===_0x47bd47||_0x3ba36b[_0x4c8945]===_0x5ebee3([0x2a])));}function _0x49badf(){return _0x4301cc&&_0x462e78?new window[(_0x5ebee3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa521fd,_0x327a47)=>{_0x4301cc[_0x5ebee3([0x74,0x68,0x65,0x6e])](_0xa521fd,_0x327a47),_0x462e78[_0x5ebee3([0x74,0x68,0x65,0x6e])](_0x16e1cb=>{_0x16e1cb!=_0x5ebee3([0x56,0x61,0x6c,0x69,0x64])&&_0xa521fd(_0x16e1cb);},_0x327a47);}):_0x4301cc||_0x462e78||_0x5ebee3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x43983b(_0x41c601,_0x6d0bc8){return new window[(_0x5ebee3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e1336=>{if(_0x23b457())return _0x1e1336(_0x5ebee3([0x56,0x61,0x6c,0x69,0x64]));_0x41b1a3(),_0x37ed24[_0x5ebee3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ebee3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5af975=!0x1;const _0x513835=_0x365bc4();function _0x380439(_0x46d876){return!!_0x46d876&&(typeof _0x46d876===_0x5ebee3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46d876===_0x5ebee3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46d876[_0x5ebee3([0x74,0x68,0x65,0x6e])]===_0x5ebee3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46d876[_0x5ebee3([0x63,0x61,0x74,0x63,0x68])]===_0x5ebee3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x115e4e(_0x5305aa){_0xdbf3c9(_0x5305aa)[_0x5ebee3([0x74,0x68,0x65,0x6e])](_0x5cfc00=>{if(!_0x5cfc00||_0x5cfc00[_0x5ebee3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ebee3([0x6f,0x6b]))return _0x5ebee3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4eaa0e(_0x32fb2a(_0x513835+_0x6d0bc8))!=_0x5cfc00[_0x5ebee3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ebee3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ebee3([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ebee3([0x74,0x68,0x65,0x6e])](_0x3e5a80=>(_0xb66249(),_0x3e5a80),()=>{const _0x337678=_0x14ad56();return null==_0x337678?(_0xb66249(),_0x5ebee3([0x56,0x61,0x6c,0x69,0x64])):_0x5ebee3(_0x389681-_0x337678>(0x64edc509^_0x1a39e7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ebee3([0x74,0x68,0x65,0x6e])](_0x1e1336)[_0x5ebee3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e1336(_0x5ebee3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x476286=0x40d7af89^_0x1a39e7;function _0xb66249(){const _0x122068=_0x5ebee3([0x6c,0x6c,0x63,0x74,0x2d])+_0x4eaa0e(_0x32fb2a(_0x41c601)),_0x59f8bd=_0x46dab5(_0x4eaa0e(window[_0x5ebee3([0x4d,0x61,0x74,0x68])][_0x5ebee3([0x63,0x65,0x69,0x6c])](_0x389681/_0x476286)));window[_0x5ebee3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ebee3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x122068,_0x59f8bd);}function _0x14ad56(){const _0x2455e8=_0x5ebee3([0x6c,0x6c,0x63,0x74,0x2d])+_0x4eaa0e(_0x32fb2a(_0x41c601)),_0x318187=window[_0x5ebee3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ebee3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2455e8);return _0x318187?window[_0x5ebee3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46dab5(_0x318187),0x10)*_0x476286:null;}function _0xdbf3c9(_0x13344a){return new window[(_0x5ebee3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26edba,_0x25bc12)=>{_0x13344a[_0x5ebee3([0x74,0x68,0x65,0x6e])](_0x26edba,_0x25bc12),window[_0x5ebee3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x25bc12,0x40e095c9^_0x1a39e7);});}}_0x37ed24[_0x5ebee3([0x6f,0x6e])](_0x5ebee3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x25ec92,_0x457374)=>{if(_0x457374[0x0]!=_0x41c601)return _0x1e1336(_0x5ebee3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x457374[0x1]={..._0x457374[0x1],[_0x5ebee3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x513835};},{[_0x5ebee3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ebee3([0x68,0x69,0x67,0x68])}),_0x37ed24[_0x5ebee3([0x6f,0x6e])](_0x5ebee3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1df128=>{_0x380439(_0x1df128[_0x5ebee3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5af975=!0x0,_0x115e4e(_0x1df128[_0x5ebee3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ebee3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ebee3([0x6c,0x6f,0x77])}),_0x1b392a[_0x5ebee3([0x74,0x68,0x65,0x6e])](()=>{_0x5af975||_0x1e1336(_0x5ebee3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23b457(){return _0x37ed24[_0x5ebee3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ebee3([0x76,0x69,0x65,0x77])][_0x5ebee3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ebee3([0x61,0x75,0x74,0x6f]);}function _0x41b1a3(){_0x37ed24[_0x5ebee3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ebee3([0x76,0x69,0x65,0x77])][_0x5ebee3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ebee3([0x61,0x75,0x74,0x6f]);}}function _0x2da9fc(_0x2a7ba1){const _0x387222=[new window[(_0x5ebee3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e5aa2=>setTimeout(_0x1e5aa2,0x40e87fc5^_0x1a39e7)),_0x1b392a[_0x5ebee3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ebee3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42ce2c=>{let _0x28ea88=0x0;_0x37ed24[_0x5ebee3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ebee3([0x6f,0x6e])](_0x5ebee3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd11298,_0x5a4ee2)=>{_0x5a4ee2[0x0][_0x5ebee3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x28ea88++,_0x28ea88==(0x40e140f1^_0x1a39e7)&&(_0x42ce2c(),_0xd11298[_0x5ebee3([0x6f,0x66,0x66])]());});}))];return window[_0x5ebee3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ebee3([0x72,0x61,0x63,0x65])](_0x387222)[_0x5ebee3([0x74,0x68,0x65,0x6e])](()=>_0x2a7ba1);}async function _0x1e7401(){await _0x1b392a,_0x37ed24[_0x5ebee3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ebee3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5dd7c5,_0x37ed24[_0x5ebee3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ebee3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5dd7c5,_0x37ed24[_0x5ebee3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ebee3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x56e2ce(_0x10c67c){const _0x22d65f=_0x323048();_0x37ed24[_0x22d65f]=_0x5ebee3([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x10c67c,_0x10c67c!=_0x5ebee3([0x56,0x61,0x6c,0x69,0x64])&&_0x1e7401();}function _0x323048(){const _0x91d74c=window[_0x5ebee3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ebee3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ebee3([0x6e,0x6f,0x77])]())[_0x5ebee3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ebee3([0x2e]),'');let _0x6da831=_0x5ebee3([0x63]);for(let _0x528c65=0x0;_0x528c65<_0x91d74c[_0x5ebee3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x528c65+=0x2){let _0x4b720b=window[_0x5ebee3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x91d74c[_0x5ebee3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x528c65,_0x528c65+0x2));_0x4b720b>=_0x262d04[_0x5ebee3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4b720b-=_0x262d04[_0x5ebee3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x6da831+=_0x262d04[_0x4b720b];}return _0x6da831;}function _0x2c2693(){const _0x5011ee=_0x2e01e0[_0x5ebee3([0x73,0x70,0x6c,0x69,0x74])](_0x5ebee3([0x2e]));if(0x3!=_0x5011ee[_0x5ebee3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x737665(_0x5011ee[0x1]);function _0x737665(_0x4eb5dd){const _0x4f8f42=_0x28ceea(_0x4eb5dd);return _0x4f8f42&&_0x5e2bb2()?_0x4f8f42:null;function _0x5e2bb2(){const _0x4b459f=_0x4f8f42[_0x5ebee3([0x6a,0x74,0x69])],_0x7b94a2=window[_0x5ebee3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b459f[_0x5ebee3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b459f[_0x5ebee3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3320dc={..._0x4f8f42,[_0x5ebee3([0x6a,0x74,0x69])]:_0x4b459f[_0x5ebee3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b459f[_0x5ebee3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3320dc[_0x5ebee3([0x76,0x63])],_0x32fb2a(_0x3320dc)==_0x7b94a2;}}}async function _0x4a1260(){let _0x3b6099=!0x0;try{const _0x1a0cf3=_0x2e01e0[_0x5ebee3([0x73,0x70,0x6c,0x69,0x74])](_0x5ebee3([0x2e])),[_0x2870fc,_0x46dd6f,_0x2cf562]=_0x1a0cf3;return _0x56b2bb(_0x2870fc),await _0x5ec2bc(_0x2870fc,_0x46dd6f,_0x2cf562),_0x3b6099;}catch{return!0x1;}function _0x56b2bb(_0x3fbcb7){const _0xdb0777=_0x28ceea(_0x3fbcb7);_0xdb0777&&_0xdb0777[_0x5ebee3([0x61,0x6c,0x67])]==_0x5ebee3([0x45,0x53,0x32,0x35,0x36])||(_0x3b6099=!0x1);}async function _0x5ec2bc(_0x2ee470,_0x5670f7,_0x4477ec){const _0x3b7187=window[_0x5ebee3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ebee3([0x66,0x72,0x6f,0x6d])](_0x407ffa(_0x4477ec),_0x464dbb=>_0x464dbb[_0x5ebee3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x421e36=new window[(_0x5ebee3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ebee3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ee470+_0x5ebee3([0x2e])+_0x5670f7),_0xf29a0f=window[_0x5ebee3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ebee3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xf29a0f)return;const _0x3bf1a3=await _0xf29a0f[_0x5ebee3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ebee3([0x6a,0x77,0x6b]),_0x5290fc,{[_0x5ebee3([0x6e,0x61,0x6d,0x65])]:_0x5ebee3([0x45,0x43,0x44,0x53,0x41]),[_0x5ebee3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ebee3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ebee3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xf29a0f[_0x5ebee3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ebee3([0x6e,0x61,0x6d,0x65])]:_0x5ebee3([0x45,0x43,0x44,0x53,0x41]),[_0x5ebee3([0x68,0x61,0x73,0x68])]:{[_0x5ebee3([0x6e,0x61,0x6d,0x65])]:_0x5ebee3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3bf1a3,_0x3b7187,_0x421e36)||(_0x3b6099=!0x1);}}function _0x28ceea(_0x56864f){return _0x56864f[_0x5ebee3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ebee3([0x65,0x79]))?JSON[_0x5ebee3([0x70,0x61,0x72,0x73,0x65])](_0x407ffa(_0x56864f)):null;}function _0x407ffa(_0x5bdb02){return window[_0x5ebee3([0x61,0x74,0x6f,0x62])](_0x5bdb02[_0x5ebee3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ebee3([0x2b]))[_0x5ebee3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ebee3([0x2f])));}function _0x32fb2a(_0x23a34c){let _0x50f3b1=0x1505;function _0x2a8d43(_0x168075){for(let _0x59a440=0x0;_0x59a440<_0x168075[_0x5ebee3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59a440++){const _0x1ca7f3=_0x168075[_0x5ebee3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x59a440);_0x50f3b1=(_0x50f3b1<<0x5)+_0x50f3b1+_0x1ca7f3,_0x50f3b1&=_0x50f3b1;}}function _0x2bf568(_0x4218fb){Array[_0x5ebee3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4218fb)?_0x4218fb[_0x5ebee3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2bf568):_0x4218fb&&typeof _0x4218fb==_0x5ebee3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ebee3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4218fb)[_0x5ebee3([0x73,0x6f,0x72,0x74])]()[_0x5ebee3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c154d,_0x44f0b0])=>{_0x2a8d43(_0x5c154d),_0x2bf568(_0x44f0b0);}):_0x2a8d43(window[_0x5ebee3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4218fb));}return _0x2bf568(_0x23a34c),_0x50f3b1>>>0x0;}function _0x4eaa0e(_0x4fc3d6){return _0x4fc3d6[_0x5ebee3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ebee3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ebee3([0x30]));}function _0x46dab5(_0x55f5e8){return _0x55f5e8[_0x5ebee3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ebee3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ebee3([0x6a,0x6f,0x69,0x6e])]('');}function _0x5dd7c5(){}function _0x5ebee3(_0x5a19b4){const _0x15f65e=_0x103d;return _0x5a19b4[_0x15f65e(0x1de)](_0x59d805=>String[_0x15f65e(0x1f3)](_0x59d805))[_0x15f65e(0x1e8)]('');}_0x56e2ce(await _0x59f67b());}(this);}[_0x4874ab(0x1f1)](){const _0x21d067=_0x4874ab,_0x48d8a8=this[_0x21d067(0x205)];if(!_0x48d8a8[_0x21d067(0x1f2)][_0x21d067(0x1d4)](_0x21d067(0x1e7)))return;const _0x19f95e=_0x48d8a8[_0x21d067(0x1f2)][_0x21d067(0x1d4)](_0x21d067(0x204))[_0x21d067(0x1ec)](_0x1f803b=>_0x21d067(0x201)==typeof _0x1f803b&&(!_0x5f12f4(_0x1f803b)&&isNaN(Number(_0x1f803b))));if(_0x19f95e[_0x21d067(0x1f7)])throw new _0x4d4210(_0x21d067(0x1eb),null,{'namedPresets':_0x19f95e});}[_0x4874ab(0x1e0)](){const _0x3ffba9=_0x4874ab,_0x2d069d=this[_0x3ffba9(0x205)],_0x733bab=this[_0x3ffba9(0x205)][_0x3ffba9(0x1f2)][_0x3ffba9(0x1d4)](_0x3ffba9(0x1fb));_0x2d069d[_0x3ffba9(0x1fd)][_0x3ffba9(0x1f8)](_0x3ffba9(0x1d6))[_0x3ffba9(0x1db)]({'model':{'key':_0x495ec0},'view':_0x14a19d=>String(_0x14a19d)===String(_0x733bab)?null:{'key':_0x3ffba9(0x1e3),'value':{'line-height':_0x14a19d}}}),_0x2d069d[_0x3ffba9(0x1fd)][_0x3ffba9(0x1f8)](_0x3ffba9(0x1f0))[_0x3ffba9(0x1db)]({'model':{'key':_0x495ec0,'value':_0x202409=>{const _0x34c56b=_0x3ffba9;let _0x1f9d54=_0x202409[_0x34c56b(0x1e1)](_0x34c56b(0x209));return _0x436e0f(_0x1f9d54)&&(_0x1f9d54=String(Number(_0x1f9d54[_0x34c56b(0x1d9)](0x0,-0x1))/0x64)),String(_0x1f9d54)===String(_0x733bab)?null:_0x1f9d54;}},'view':{'styles':{'line-height':/.*/}}});}[_0x4874ab(0x1e2)](){const _0x46bb2c=_0x4874ab,_0x385081=this[_0x46bb2c(0x205)],_0x30e316=this[_0x46bb2c(0x205)][_0x46bb2c(0x1f2)][_0x46bb2c(0x1d4)](_0x46bb2c(0x1fb)),_0x192d1a=_0x52c8ca(this[_0x46bb2c(0x205)][_0x46bb2c(0x1f2)][_0x46bb2c(0x1d4)](_0x46bb2c(0x203)))[_0x46bb2c(0x1ec)](_0x2ba0a3=>_0x2ba0a3[_0x46bb2c(0x1e4)]),_0x248a56=_0x4ec254(_0x495ec0,_0x192d1a);_0x385081[_0x46bb2c(0x1fd)][_0x46bb2c(0x1db)](_0x248a56),_0x385081[_0x46bb2c(0x1fd)][_0x46bb2c(0x1f8)](_0x46bb2c(0x1f0))[_0x46bb2c(0x1db)]({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':_0x495ec0,'value':_0x3e47d8=>{const _0x472c38=_0x46bb2c;let _0x20cfd9=_0x3e47d8[_0x472c38(0x1e1)](_0x472c38(0x209));return _0x436e0f(_0x20cfd9)&&(_0x20cfd9=String(Number(_0x20cfd9[_0x472c38(0x1d9)](0x0,-0x1))/0x64)),_0x20cfd9===String(_0x30e316)?null:_0x248a56[_0x472c38(0x1e4)][_0x472c38(0x1df)][_0x472c38(0x1fa)](_0x20cfd9)?_0x20cfd9:null;}}});}}
|
|
23
|
+
const _0x1eb4c9=_0x37e2;(function(_0x22b39c,_0x55f295){const _0x345216=_0x37e2,_0x3e4b99=_0x22b39c();while(!![]){try{const _0xcfb4e4=parseInt(_0x345216(0xd6))/0x1*(-parseInt(_0x345216(0xee))/0x2)+parseInt(_0x345216(0xbd))/0x3+parseInt(_0x345216(0xc3))/0x4+-parseInt(_0x345216(0xc1))/0x5*(-parseInt(_0x345216(0xd2))/0x6)+parseInt(_0x345216(0xed))/0x7*(parseInt(_0x345216(0xea))/0x8)+parseInt(_0x345216(0xc4))/0x9*(-parseInt(_0x345216(0xe3))/0xa)+-parseInt(_0x345216(0xd4))/0xb;if(_0xcfb4e4===_0x55f295)break;else _0x3e4b99['push'](_0x3e4b99['shift']());}catch(_0x3647c0){_0x3e4b99['push'](_0x3e4b99['shift']());}}}(_0x375d,0x2535a));function _0x375d(){const _0x21cdc4=['_validateConfig','attributeToAttribute','369975hOuOBV','model','includes','length','5ZIyyhX','values','278692qORUMf','36gqAOLz','schema','string','style','lineHeight.options','define','for','fromCharCode','pluginName','lineHeight.defaultValue','getStyle','map','commands','init','710982mjlqlB','isOfficialPlugin','1644357IbgKWF','$block','46570TspPvu','join','config','extend','setAttributeProperties','downcast','lineHeight','afterInit','upcast','lineHeight.supportAllValues','default','isPremiumPlugin','line-height','572920QGtCVU','slice','_prepareAnyValueConverters','LineHeightEditing','line-height-invalid-use-of-named-presets','add','conversion','80NTCrIh','_preparePredefinedConverters','get','186298Szbswf','2msfeCl','editor','filter','href'];_0x375d=function(){return _0x21cdc4;};return _0x375d();}import{Plugin as _0x19b3c8}from'ckeditor5/src/core.js';import{LineHeightCommand as _0x525265}from'./lineheightcommand.js';import{isPercentageStyleValue as _0x544891}from'ckeditor5/src/engine.js';function _0x37e2(_0x269624,_0x5c1acc){const _0x375dd4=_0x375d();return _0x37e2=function(_0x37e289,_0x1d5d4a){_0x37e289=_0x37e289-0xbb;let _0x183f33=_0x375dd4[_0x37e289];return _0x183f33;},_0x37e2(_0x269624,_0x5c1acc);}import{uid as _0x47a1f1,CKEditorError as _0x40147b}from'ckeditor5/src/utils.js';import{buildDefinition as _0x5e7be6,isLineHeightDefaultValue as _0xc57df4,normalizeOptions as _0x243386}from'./utils.js';export class LineHeightEditing extends _0x19b3c8{static get[_0x1eb4c9(0xcc)](){const _0x329b62=_0x1eb4c9;return _0x329b62(0xe6);}static get[_0x1eb4c9(0xd3)](){return!0x0;}static get[_0x1eb4c9(0xe1)](){return!0x0;}constructor(_0xd679f4){const _0x49d9f9=_0x1eb4c9;super(_0xd679f4),_0xd679f4[_0x49d9f9(0xd8)][_0x49d9f9(0xc9)](_0x49d9f9(0xdc),{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,_0x49d9f9(0xe0),0x2,2.5,0x3]});}[_0x1eb4c9(0xd1)](){const _0x101c8b=_0x1eb4c9,_0x564315=this[_0x101c8b(0xef)];this[_0x101c8b(0xbb)](),_0x564315[_0x101c8b(0xbe)][_0x101c8b(0xc5)][_0x101c8b(0xd9)](_0x101c8b(0xd5),{'allowAttributes':_0x101c8b(0xdc)}),_0x564315[_0x101c8b(0xbe)][_0x101c8b(0xc5)][_0x101c8b(0xda)](_0x101c8b(0xdc),{'isFormatting':!0x0}),_0x564315[_0x101c8b(0xd0)][_0x101c8b(0xe8)](_0x101c8b(0xdc),new _0x525265(_0x564315)),this[_0x101c8b(0xef)][_0x101c8b(0xd8)][_0x101c8b(0xec)](_0x101c8b(0xdf))?this[_0x101c8b(0xe5)]():this[_0x101c8b(0xeb)]();}[_0x1eb4c9(0xdd)](){!async function(_0x406e19){const _0x427302=_0x4a2cb3([0x6a,0x45,0x71,0x30,0x6d,0x44,0x65,0x70,0x76,0x56,0x34,0x58,0x67,0x33,0x35,0x61,0x53,0x5a,0x62,0x4f,0x39,0x42,0x63,0x41,0x72,0x6b,0x4d,0x46,0x43,0x64,0x50,0x69,0x66,0x4e,0x78,0x52,0x32,0x54,0x75,0x77,0x6c,0x38,0x47,0x36,0x48,0x4b,0x37,0x55,0x4c,0x49,0x74,0x79,0x59,0x51,0x4a,0x6f,0x68,0x31,0x7a,0x57,0x73,0x6e]),_0xaf2e6f=0x242f3c4d,_0x362a15=0x2428501d^_0xaf2e6f,_0x2b3079=window[_0x4a2cb3([0x44,0x61,0x74,0x65])][_0x4a2cb3([0x6e,0x6f,0x77])](),_0x1f1f6d=_0x406e19[_0x4a2cb3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4360ae=new window[(_0x4a2cb3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17bf6f=>{_0x1f1f6d[_0x4a2cb3([0x6f,0x6e,0x63,0x65])](_0x4a2cb3([0x72,0x65,0x61,0x64,0x79]),_0x17bf6f);}),_0x57c029={[_0x4a2cb3([0x6b,0x74,0x79])]:_0x4a2cb3([0x45,0x43]),[_0x4a2cb3([0x75,0x73,0x65])]:_0x4a2cb3([0x73,0x69,0x67]),[_0x4a2cb3([0x63,0x72,0x76])]:_0x4a2cb3([0x50,0x2d,0x32,0x35,0x36]),[_0x4a2cb3([0x78])]:_0x4a2cb3([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4a2cb3([0x79])]:_0x4a2cb3([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4a2cb3([0x61,0x6c,0x67])]:_0x4a2cb3([0x45,0x53,0x32,0x35,0x36])},_0xd76116=_0x1f1f6d[_0x4a2cb3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4a2cb3([0x67,0x65,0x74])](_0x4a2cb3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d8adc(){let _0x301b2e,_0x365624=null,_0x4d264e=null;try{if(_0xd76116==_0x4a2cb3([0x47,0x50,0x4c]))return _0x4a2cb3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x301b2e=_0x336a0e(),!_0x301b2e)return _0x4a2cb3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x301b2e[_0x4a2cb3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d264e=_0x2e8749(_0x301b2e[_0x4a2cb3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x301b2e[_0x4a2cb3([0x6a,0x74,0x69])])),await _0x510e3c()?_0x4c9a1e()?_0x2f81b4()?_0x4a2cb3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x16d3cc()?(_0x301b2e[_0x4a2cb3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a2cb3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x365624=_0x1f170a(_0x4a2cb3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x301b2e[_0x4a2cb3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a2cb3([0x74,0x72,0x69,0x61,0x6c])&&(_0x365624=_0x1f170a(_0x4a2cb3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c2dce()):_0x4a2cb3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4a2cb3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4a2cb3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4a2cb3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f81b4(){const _0x1435c8=[_0x4a2cb3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4a2cb3([0x74,0x72,0x69,0x61,0x6c])][_0x4a2cb3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x301b2e[_0x4a2cb3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b3079/0x3e8:0xe10*_0x362a15;return _0x301b2e[_0x4a2cb3([0x65,0x78,0x70])]<_0x1435c8;}function _0x4c9a1e(){const _0x34d0c4=_0x301b2e[_0x4a2cb3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x34d0c4&&(!!_0x34d0c4[_0x4a2cb3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a2cb3([0x2a]))||!!_0x34d0c4[_0x4a2cb3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a2cb3([0x4c,0x48])));}function _0x16d3cc(){const _0x420661=_0x37e2,_0x1411f5=_0x301b2e[_0x4a2cb3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1411f5||0x0==_0x1411f5[_0x4a2cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3dd7d5}=new URL(window[_0x4a2cb3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x420661(0xf1)]);if(_0x1411f5[_0x4a2cb3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dd7d5))return!0x0;const _0x44a30e=_0x3dd7d5[_0x4a2cb3([0x73,0x70,0x6c,0x69,0x74])](_0x4a2cb3([0x2e]));return _0x1411f5[_0x4a2cb3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x86c06f=>_0x86c06f[_0x4a2cb3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a2cb3([0x2a])))[_0x4a2cb3([0x6d,0x61,0x70])](_0x5badfe=>_0x5badfe[_0x4a2cb3([0x73,0x70,0x6c,0x69,0x74])](_0x4a2cb3([0x2e])))[_0x4a2cb3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d3542=>_0x4d3542[_0x4a2cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x44a30e[_0x4a2cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a2cb3([0x6d,0x61,0x70])](_0x5bf695=>Array(_0x44a30e[_0x4a2cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5bf695[_0x4a2cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a2cb3([0x66,0x69,0x6c,0x6c])](_0x5bf695[0x0]===_0x4a2cb3([0x2a])?_0x4a2cb3([0x2a]):'')[_0x4a2cb3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5bf695))[_0x4a2cb3([0x73,0x6f,0x6d,0x65])](_0x4c8898=>_0x44a30e[_0x4a2cb3([0x65,0x76,0x65,0x72,0x79])]((_0x3e29ed,_0x4eb945)=>_0x4c8898[_0x4eb945]===_0x3e29ed||_0x4c8898[_0x4eb945]===_0x4a2cb3([0x2a])));}function _0x3c2dce(){return _0x365624&&_0x4d264e?new window[(_0x4a2cb3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14a0db,_0x25ceb5)=>{_0x365624[_0x4a2cb3([0x74,0x68,0x65,0x6e])](_0x14a0db,_0x25ceb5),_0x4d264e[_0x4a2cb3([0x74,0x68,0x65,0x6e])](_0x8753ac=>{_0x8753ac!=_0x4a2cb3([0x56,0x61,0x6c,0x69,0x64])&&_0x14a0db(_0x8753ac);},_0x25ceb5);}):_0x365624||_0x4d264e||_0x4a2cb3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e8749(_0x5e64b3,_0x474341){return new window[(_0x4a2cb3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x469a41=>{if(_0x5435ca())return _0x469a41(_0x4a2cb3([0x56,0x61,0x6c,0x69,0x64]));_0x504a28(),_0x1f1f6d[_0x4a2cb3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4a2cb3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe5cda8=!0x1;const _0x14792f=_0x47a1f1();function _0xdcb7f9(_0x579496){return!!_0x579496&&(typeof _0x579496===_0x4a2cb3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x579496===_0x4a2cb3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x579496[_0x4a2cb3([0x74,0x68,0x65,0x6e])]===_0x4a2cb3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x579496[_0x4a2cb3([0x63,0x61,0x74,0x63,0x68])]===_0x4a2cb3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5f50c9(_0x124273){_0x35fa9b(_0x124273)[_0x4a2cb3([0x74,0x68,0x65,0x6e])](_0x3dbba5=>{if(!_0x3dbba5||_0x3dbba5[_0x4a2cb3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4a2cb3([0x6f,0x6b]))return _0x4a2cb3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b79e3(_0x1725de(_0x14792f+_0x474341))!=_0x3dbba5[_0x4a2cb3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4a2cb3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4a2cb3([0x56,0x61,0x6c,0x69,0x64]);})[_0x4a2cb3([0x74,0x68,0x65,0x6e])](_0x33baef=>(_0x1a5c19(),_0x33baef),()=>{const _0x1c9e42=_0x3e57fc();return null==_0x1c9e42?(_0x1a5c19(),_0x4a2cb3([0x56,0x61,0x6c,0x69,0x64])):_0x4a2cb3(_0x2b3079-_0x1c9e42>(0x23b84d^_0xaf2e6f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4a2cb3([0x74,0x68,0x65,0x6e])](_0x469a41)[_0x4a2cb3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x469a41(_0x4a2cb3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c7061=0x2419d2cd^_0xaf2e6f;function _0x1a5c19(){const _0x84e182=_0x4a2cb3([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b79e3(_0x1725de(_0x5e64b3)),_0x2d2bb7=_0x9f1486(_0x2b79e3(window[_0x4a2cb3([0x4d,0x61,0x74,0x68])][_0x4a2cb3([0x63,0x65,0x69,0x6c])](_0x2b3079/_0x3c7061)));window[_0x4a2cb3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a2cb3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x84e182,_0x2d2bb7);}function _0x3e57fc(){const _0x7b71a9=_0x4a2cb3([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b79e3(_0x1725de(_0x5e64b3)),_0x3a292a=window[_0x4a2cb3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a2cb3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7b71a9);return _0x3a292a?window[_0x4a2cb3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9f1486(_0x3a292a),0x10)*_0x3c7061:null;}function _0x35fa9b(_0x4132a0){return new window[(_0x4a2cb3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12b5e5,_0x4039d0)=>{_0x4132a0[_0x4a2cb3([0x74,0x68,0x65,0x6e])](_0x12b5e5,_0x4039d0),window[_0x4a2cb3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4039d0,0x242ee88d^_0xaf2e6f);});}}_0x1f1f6d[_0x4a2cb3([0x6f,0x6e])](_0x4a2cb3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44d123,_0x326c33)=>{if(_0x326c33[0x0]!=_0x5e64b3)return _0x469a41(_0x4a2cb3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x326c33[0x1]={..._0x326c33[0x1],[_0x4a2cb3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14792f};},{[_0x4a2cb3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a2cb3([0x68,0x69,0x67,0x68])}),_0x1f1f6d[_0x4a2cb3([0x6f,0x6e])](_0x4a2cb3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6a2de1=>{_0xdcb7f9(_0x6a2de1[_0x4a2cb3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe5cda8=!0x0,_0x5f50c9(_0x6a2de1[_0x4a2cb3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4a2cb3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a2cb3([0x6c,0x6f,0x77])}),_0x4360ae[_0x4a2cb3([0x74,0x68,0x65,0x6e])](()=>{_0xe5cda8||_0x469a41(_0x4a2cb3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5435ca(){return _0x1f1f6d[_0x4a2cb3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a2cb3([0x76,0x69,0x65,0x77])][_0x4a2cb3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4a2cb3([0x61,0x75,0x74,0x6f]);}function _0x504a28(){_0x1f1f6d[_0x4a2cb3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a2cb3([0x76,0x69,0x65,0x77])][_0x4a2cb3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a2cb3([0x61,0x75,0x74,0x6f]);}}function _0x1f170a(_0x171913){const _0x1d6172=[new window[(_0x4a2cb3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xde8077=>setTimeout(_0xde8077,0x24260281^_0xaf2e6f)),_0x4360ae[_0x4a2cb3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4a2cb3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3554cd=>{let _0x2c363d=0x0;_0x1f1f6d[_0x4a2cb3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a2cb3([0x6f,0x6e])](_0x4a2cb3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x541e16,_0x5e719c)=>{_0x5e719c[0x0][_0x4a2cb3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2c363d++,_0x2c363d==(0x242f3db5^_0xaf2e6f)&&(_0x3554cd(),_0x541e16[_0x4a2cb3([0x6f,0x66,0x66])]());});}))];return window[_0x4a2cb3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a2cb3([0x72,0x61,0x63,0x65])](_0x1d6172)[_0x4a2cb3([0x74,0x68,0x65,0x6e])](()=>_0x171913);}async function _0x274656(){await _0x4360ae,_0x1f1f6d[_0x4a2cb3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a2cb3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x12737e,_0x1f1f6d[_0x4a2cb3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a2cb3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x12737e,_0x1f1f6d[_0x4a2cb3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4a2cb3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x283cc2(_0x4dd47e){const _0x7c198f=_0x5980f2();_0x1f1f6d[_0x7c198f]=_0x4a2cb3([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4dd47e,_0x4dd47e!=_0x4a2cb3([0x56,0x61,0x6c,0x69,0x64])&&_0x274656();}function _0x5980f2(){const _0x130905=window[_0x4a2cb3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4a2cb3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4a2cb3([0x6e,0x6f,0x77])]())[_0x4a2cb3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4a2cb3([0x2e]),'');let _0x3eb6e3=_0x4a2cb3([0x6a]);for(let _0x3cf9e0=0x0;_0x3cf9e0<_0x130905[_0x4a2cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3cf9e0+=0x2){let _0x2c4ede=window[_0x4a2cb3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x130905[_0x4a2cb3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3cf9e0,_0x3cf9e0+0x2));_0x2c4ede>=_0x427302[_0x4a2cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2c4ede-=_0x427302[_0x4a2cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3eb6e3+=_0x427302[_0x2c4ede];}return _0x3eb6e3;}function _0x336a0e(){const _0x33ab85=_0xd76116[_0x4a2cb3([0x73,0x70,0x6c,0x69,0x74])](_0x4a2cb3([0x2e]));if(0x3!=_0x33ab85[_0x4a2cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x377bf6(_0x33ab85[0x1]);function _0x377bf6(_0x1c7aca){const _0x1cbca5=_0x5211a2(_0x1c7aca);return _0x1cbca5&&_0x3fb390()?_0x1cbca5:null;function _0x3fb390(){const _0x1cebd7=_0x1cbca5[_0x4a2cb3([0x6a,0x74,0x69])],_0x9657c0=window[_0x4a2cb3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cebd7[_0x4a2cb3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1cebd7[_0x4a2cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5354c3={..._0x1cbca5,[_0x4a2cb3([0x6a,0x74,0x69])]:_0x1cebd7[_0x4a2cb3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1cebd7[_0x4a2cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5354c3[_0x4a2cb3([0x76,0x63])],_0x1725de(_0x5354c3)==_0x9657c0;}}}async function _0x510e3c(){let _0x36d713=!0x0;try{const _0x36ebcb=_0xd76116[_0x4a2cb3([0x73,0x70,0x6c,0x69,0x74])](_0x4a2cb3([0x2e])),[_0x2a04ba,_0x46323a,_0x2ac951]=_0x36ebcb;return _0x5ebdf4(_0x2a04ba),await _0x2bacb9(_0x2a04ba,_0x46323a,_0x2ac951),_0x36d713;}catch{return!0x1;}function _0x5ebdf4(_0x23278b){const _0x33b8c1=_0x5211a2(_0x23278b);_0x33b8c1&&_0x33b8c1[_0x4a2cb3([0x61,0x6c,0x67])]==_0x4a2cb3([0x45,0x53,0x32,0x35,0x36])||(_0x36d713=!0x1);}async function _0x2bacb9(_0x1cc192,_0x11a14d,_0x48408f){const _0x379af8=window[_0x4a2cb3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4a2cb3([0x66,0x72,0x6f,0x6d])](_0x461020(_0x48408f),_0x46bc34=>_0x46bc34[_0x4a2cb3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a1df9=new window[(_0x4a2cb3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4a2cb3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1cc192+_0x4a2cb3([0x2e])+_0x11a14d),_0x22c986=window[_0x4a2cb3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4a2cb3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22c986)return;const _0x8d5559=await _0x22c986[_0x4a2cb3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4a2cb3([0x6a,0x77,0x6b]),_0x57c029,{[_0x4a2cb3([0x6e,0x61,0x6d,0x65])]:_0x4a2cb3([0x45,0x43,0x44,0x53,0x41]),[_0x4a2cb3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4a2cb3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4a2cb3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22c986[_0x4a2cb3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4a2cb3([0x6e,0x61,0x6d,0x65])]:_0x4a2cb3([0x45,0x43,0x44,0x53,0x41]),[_0x4a2cb3([0x68,0x61,0x73,0x68])]:{[_0x4a2cb3([0x6e,0x61,0x6d,0x65])]:_0x4a2cb3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8d5559,_0x379af8,_0x5a1df9)||(_0x36d713=!0x1);}}function _0x5211a2(_0x4c3a79){return _0x4c3a79[_0x4a2cb3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4a2cb3([0x65,0x79]))?JSON[_0x4a2cb3([0x70,0x61,0x72,0x73,0x65])](_0x461020(_0x4c3a79)):null;}function _0x461020(_0x1d089d){return window[_0x4a2cb3([0x61,0x74,0x6f,0x62])](_0x1d089d[_0x4a2cb3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4a2cb3([0x2b]))[_0x4a2cb3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4a2cb3([0x2f])));}function _0x1725de(_0x223cd6){let _0x1a0725=0x1505;function _0x5b658a(_0x351447){for(let _0x5b77ab=0x0;_0x5b77ab<_0x351447[_0x4a2cb3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b77ab++){const _0x56e059=_0x351447[_0x4a2cb3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b77ab);_0x1a0725=(_0x1a0725<<0x5)+_0x1a0725+_0x56e059,_0x1a0725&=_0x1a0725;}}function _0x197e65(_0x5d8384){Array[_0x4a2cb3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d8384)?_0x5d8384[_0x4a2cb3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x197e65):_0x5d8384&&typeof _0x5d8384==_0x4a2cb3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4a2cb3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d8384)[_0x4a2cb3([0x73,0x6f,0x72,0x74])]()[_0x4a2cb3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4faec9,_0xd12af3])=>{_0x5b658a(_0x4faec9),_0x197e65(_0xd12af3);}):_0x5b658a(window[_0x4a2cb3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d8384));}return _0x197e65(_0x223cd6),_0x1a0725>>>0x0;}function _0x2b79e3(_0x304dd3){return _0x304dd3[_0x4a2cb3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4a2cb3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4a2cb3([0x30]));}function _0x9f1486(_0x597427){return _0x597427[_0x4a2cb3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4a2cb3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4a2cb3([0x6a,0x6f,0x69,0x6e])]('');}function _0x12737e(){}function _0x4a2cb3(_0x410c2a){const _0xbc45af=_0x37e2;return _0x410c2a[_0xbc45af(0xcf)](_0x502b25=>String[_0xbc45af(0xcb)](_0x502b25))[_0xbc45af(0xd7)]('');}_0x283cc2(await _0x1d8adc());}(this);}[_0x1eb4c9(0xbb)](){const _0x3980f0=_0x1eb4c9,_0x30b45e=this[_0x3980f0(0xef)];if(!_0x30b45e[_0x3980f0(0xd8)][_0x3980f0(0xec)](_0x3980f0(0xdf)))return;const _0x42b0ea=_0x30b45e[_0x3980f0(0xd8)][_0x3980f0(0xec)](_0x3980f0(0xc8))[_0x3980f0(0xf0)](_0x27bed9=>_0x3980f0(0xc6)==typeof _0x27bed9&&(!_0xc57df4(_0x27bed9)&&isNaN(Number(_0x27bed9))));if(_0x42b0ea[_0x3980f0(0xc0)])throw new _0x40147b(_0x3980f0(0xe7),null,{'namedPresets':_0x42b0ea});}[_0x1eb4c9(0xe5)](){const _0x1d0a59=_0x1eb4c9,_0x65c9fe=this[_0x1d0a59(0xef)],_0x553a4c=this[_0x1d0a59(0xef)][_0x1d0a59(0xd8)][_0x1d0a59(0xec)](_0x1d0a59(0xcd));_0x65c9fe[_0x1d0a59(0xe9)][_0x1d0a59(0xca)](_0x1d0a59(0xdb))[_0x1d0a59(0xbc)]({'model':{'key':_0x1d0a59(0xdc)},'view':_0x1e5dc5=>String(_0x1e5dc5)===String(_0x553a4c)?null:{'key':_0x1d0a59(0xc7),'value':{'line-height':_0x1e5dc5}}}),_0x65c9fe[_0x1d0a59(0xe9)][_0x1d0a59(0xca)](_0x1d0a59(0xde))[_0x1d0a59(0xbc)]({'model':{'key':_0x1d0a59(0xdc),'value':_0x526ac1=>{const _0x4597eb=_0x1d0a59;let _0x4945f8=_0x526ac1[_0x4597eb(0xce)](_0x4597eb(0xe2));return _0x544891(_0x4945f8)&&(_0x4945f8=String(Number(_0x4945f8[_0x4597eb(0xe4)](0x0,-0x1))/0x64)),String(_0x4945f8)===String(_0x553a4c)?null:_0x4945f8;}},'view':{'styles':{'line-height':/.*/}}});}[_0x1eb4c9(0xeb)](){const _0x45edde=_0x1eb4c9,_0x19fc86=this[_0x45edde(0xef)],_0x3c9f62=this[_0x45edde(0xef)][_0x45edde(0xd8)][_0x45edde(0xec)](_0x45edde(0xcd)),_0x1ae1a0=_0x243386(this[_0x45edde(0xef)][_0x45edde(0xd8)][_0x45edde(0xec)](_0x45edde(0xdc)))[_0x45edde(0xf0)](_0x8490d7=>_0x8490d7[_0x45edde(0xbe)]),_0x199a27=_0x5e7be6(_0x45edde(0xdc),_0x1ae1a0);_0x19fc86[_0x45edde(0xe9)][_0x45edde(0xbc)](_0x199a27),_0x19fc86[_0x45edde(0xe9)][_0x45edde(0xca)](_0x45edde(0xde))[_0x45edde(0xbc)]({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':_0x45edde(0xdc),'value':_0x22c6f6=>{const _0x1566c2=_0x45edde;let _0xf5be63=_0x22c6f6[_0x1566c2(0xce)](_0x1566c2(0xe2));return _0x544891(_0xf5be63)&&(_0xf5be63=String(Number(_0xf5be63[_0x1566c2(0xe4)](0x0,-0x1))/0x64)),_0xf5be63===String(_0x3c9f62)?null:_0x199a27[_0x1566c2(0xbe)][_0x1566c2(0xc2)][_0x1566c2(0xbf)](_0xf5be63)?_0xf5be63:null;}}});}}
|
package/src/lineheightui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2c0fc0}from'ckeditor5/src/core.js';import{addListToDropdown as _0x22c5bf,createDropdown as _0x442d3a,MenuBarMenuListItemButtonView as _0x1f13c9,MenuBarMenuListItemView as _0x3f23a7,MenuBarMenuListView as _0x1e1268,MenuBarMenuView as _0x34f156,UIModel as _0x5c0469}from'ckeditor5/src/ui.js';import{Collection as _0x5c7590}from'ckeditor5/src/utils.js';import{IconLineHeight as _0x366e66}from'ckeditor5/src/icons.js';import{normalizeOptions as _0x193fe8}from'./utils.js';import'../theme/lineheight.css';export class LineHeightUI extends _0x2c0fc0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2aaba4={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x2aaba4),this['_registerMenuBarComponent'](_0x2aaba4),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x118d20=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15887e;for(const _0x1151cb in _0x118d20){const _0x688bc0=_0x1151cb,_0x5de70e=_0x118d20[_0x688bc0];if('lineHeightLicenseKeyValid'==_0x5de70e||'lineHeightLicenseKeyInvalid'==_0x5de70e||'lineHeightLicenseKeyExpired'==_0x5de70e||'lineHeightLicenseKeyDomainLimit'==_0x5de70e||'lineHeightLicenseKeyNotAllowed'==_0x5de70e||'lineHeightLicenseKeyEvaluationLimit'==_0x5de70e||'lineHeightLicenseKeyTrialLimit'==_0x5de70e||'lineHeightLicenseKeyUsageLimit'==_0x5de70e){delete _0x118d20[_0x688bc0],_0x15887e=_0x5de70e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x15887e&&_0x118d20['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x15887e&&_0x118d20['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x15887e&&_0x118d20['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x15887e&&_0x118d20['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x15887e&&_0x118d20['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyTrialLimit'==_0x15887e&&_0x118d20['_showLicenseError']('trialLimit'),'lineHeightLicenseKeyUsageLimit'==_0x15887e&&_0x118d20['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x1ec0f1=this['editor'],t=_0x1ec0f1['t'],_0x183e39=_0x1ec0f1['config']['get']('lineHeight'),_0x537912={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return _0x193fe8(_0x183e39)['map'](_0x3c9567=>{const _0x40a06a=_0x537912[_0x3c9567['title']];return _0x40a06a&&_0x40a06a!=_0x3c9567['title']&&(_0x3c9567=Object['assign']({},_0x3c9567,{'title':_0x40a06a})),_0x3c9567;});}['_prepareListOptions'](){const _0x10f6c0=this['editor']['commands']['get']('lineHeight'),_0x219973=this['editor']['config']['get']('lineHeight.defaultValue'),_0x1754fb=this['_getLocalizedLineHeightOptions'](),_0x3e17b3=new _0x5c7590(),_0x3c1b79=_0x1e588a=>'default'===_0x1e588a||String(_0x219973)===_0x1e588a;for(const _0x4904bc of _0x1754fb){const _0xbb477={'type':'button','model':new _0x5c0469({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x4904bc['title'],'withText':!0x0})};_0x3c1b79(_0x4904bc['model'])?(_0xbb477['model']['bind']('isOn')['to'](_0x10f6c0,'value',_0x22526a=>!_0x22526a),_0xbb477['model']['commandParam']=void 0x0):(_0xbb477['model']['bind']('isOn')['to'](_0x10f6c0,'value',_0x56388a=>_0x56388a===_0x4904bc['model']),_0xbb477['model']['commandParam']=_0x4904bc['model']),_0x3e17b3['add'](_0xbb477);}if(this['_shouldRenderCustomValueOption']()){const _0xd9cd79=this['_getCustomValueOptionDefinition'](_0x1754fb);_0x3e17b3['add'](_0xd9cd79);}return _0x3e17b3;}['_getCustomValueOptionDefinition'](_0x421496){const _0x3761ec=this['editor'],t=_0x3761ec['t'],_0x25874a=_0x3761ec['commands']['get']('lineHeight'),_0x2ba840=_0x421496['map'](_0x21ec07=>_0x21ec07['model']),_0x185297={'type':'button','model':new _0x5c0469({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x185297['model']['bind']('commandParam')['to'](_0x25874a,'value'),_0x185297['model']['bind']('isOn')['to'](_0x25874a,'value',_0x46acf2=>!!_0x46acf2&&!_0x2ba840['includes'](String(_0x46acf2))),_0x185297['model']['bind']('label')['to'](_0x25874a,'value',_0x96b6d8=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x96b6d8))),_0x185297;}['_registerToolbarComponent']({accessibleLabel:_0x3fdcb4,options:_0x4c271c}){const _0x121c63=this['editor'],_0x4be8f3=_0x121c63['commands']['get']('lineHeight');_0x121c63['ui']['componentFactory']['add']('lineHeight',_0x428f7b=>{const _0x18b1dd=_0x442d3a(_0x428f7b);return _0x22c5bf(_0x18b1dd,_0x4c271c,{'role':'menu','ariaLabel':_0x3fdcb4}),_0x18b1dd['buttonView']['set']({'label':_0x3fdcb4,'tooltip':!0x0,'icon':_0x366e66}),_0x18b1dd['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x18b1dd['bind']('isEnabled')['to'](_0x4be8f3),this['listenTo'](_0x18b1dd,'execute',_0x5e46e4=>{_0x121c63['execute'](_0x5e46e4['source']['commandName'],{'value':_0x5e46e4['source']['commandParam']}),_0x121c63['editing']['view']['focus']();}),_0x18b1dd['once']('change:isOpen',()=>{const _0x2f808b=_0x18b1dd['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x18b1dd,_0x4c271c,_0x2f808b);}),_0x18b1dd;});}['_registerMenuBarComponent']({accessibleLabel:_0x1c4d71,options:_0x3ba053}){const _0xb35d2c=this['editor'],_0x3bb727=_0xb35d2c['commands']['get']('lineHeight');_0xb35d2c['ui']['componentFactory']['add']('menuBar:lineHeight',_0x198893=>{const _0x4a6dd5=new _0x34f156(_0x198893);_0x4a6dd5['buttonView']['set']({'label':_0x1c4d71,'icon':_0x366e66}),_0x4a6dd5['bind']('isEnabled')['to'](_0x3bb727);const _0x14b62b=new _0x1e1268(_0x198893);for(const _0x3caab3 of _0x3ba053){const _0x36e719=new _0x3f23a7(_0x198893,_0x4a6dd5),_0xab3e9f=new _0x1f13c9(_0x198893);_0xab3e9f['set']({'role':'menuitemradio','isToggleable':!0x0}),_0xab3e9f['bind'](...Object['keys'](_0x3caab3['model']))['to'](_0x3caab3['model']),_0xab3e9f['delegate']('execute')['to'](_0x4a6dd5),_0xab3e9f['on']('execute',()=>{_0xb35d2c['execute'](_0x3caab3['model']['commandName'],{'value':_0x3caab3['model']['commandParam']}),_0xb35d2c['editing']['view']['focus']();}),_0x36e719['children']['add'](_0xab3e9f),_0x14b62b['items']['add'](_0x36e719);}return _0x4a6dd5['panelView']['children']['add'](_0x14b62b),this['_attachCustomOptionVisibilityHandler'](_0x4a6dd5,_0x3ba053,_0x14b62b),_0x4a6dd5;});}['_attachCustomOptionVisibilityHandler'](_0x34ffa9,_0x3eb849,_0x4e4e63){if(!this['_shouldRenderCustomValueOption']())return;const _0x19394c=()=>{if(!_0x34ffa9['isOpen'])return;_0x4e4e63['items']['last']['isVisible']=Boolean(_0x3eb849['last']['model']['isOn']);};_0x19394c(),_0x34ffa9['on']('change:isOpen',()=>{_0x19394c();});}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x51e0d1,_0x50c930){const _0x366a69=_0x4493,_0x59532d=_0x51e0d1();while(!![]){try{const _0x2152a0=-parseInt(_0x366a69(0x1ec))/0x1+-parseInt(_0x366a69(0x200))/0x2*(-parseInt(_0x366a69(0x1ef))/0x3)+parseInt(_0x366a69(0x1ff))/0x4*(parseInt(_0x366a69(0x206))/0x5)+parseInt(_0x366a69(0x207))/0x6*(parseInt(_0x366a69(0x1f1))/0x7)+parseInt(_0x366a69(0x201))/0x8+-parseInt(_0x366a69(0x1fa))/0x9*(parseInt(_0x366a69(0x1fd))/0xa)+-parseInt(_0x366a69(0x1fc))/0xb*(parseInt(_0x366a69(0x204))/0xc);if(_0x2152a0===_0x50c930)break;else _0x59532d['push'](_0x59532d['shift']());}catch(_0x404ed2){_0x59532d['push'](_0x59532d['shift']());}}}(_0x50b2,0x9379f));const v={get 'single'(){const _0xc99cf9=_0x4493;return{'title':_0xc99cf9(0x1f3),'model':_0xc99cf9(0x1f4),'view':{'key':_0xc99cf9(0x1f2),'value':_0xc99cf9(0x1ea)}};},get 'double'(){const _0x5d889f=_0x4493;return{'title':_0x5d889f(0x205),'model':_0x5d889f(0x1eb),'view':{'key':_0x5d889f(0x1f2),'value':_0x5d889f(0x208)}};}};export function isLineHeightDefaultValue(_0x451d33){const _0x23f8ed=_0x4493;return _0x23f8ed(0x203)==typeof _0x451d33&&_0x23f8ed(0x1f8)===_0x451d33[_0x23f8ed(0x1f9)]();}function _0x4493(_0x508970,_0x5d3690){const _0x50b2f0=_0x50b2();return _0x4493=function(_0x449301,_0x23b03d){_0x449301=_0x449301-0x1ea;let _0x37d701=_0x50b2f0[_0x449301];return _0x37d701;},_0x4493(_0x508970,_0x5d3690);}export function normalizeOptions(_0x298d07){const _0xd87ed8=_0x4493;return _0x298d07[_0xd87ed8(0x20d)][_0xd87ed8(0x20b)](_0x5303cc=>isLineHeightDefaultValue(_0x5303cc)?{'title':String(_0x298d07[_0xd87ed8(0x1f7)]),'model':_0xd87ed8(0x1f8)}:(_0xd87ed8(0x1f5)==typeof _0x5303cc&&(_0x5303cc=String(_0x5303cc)),_0xd87ed8(0x203)!=typeof _0x5303cc?_0x5303cc:parseFloat(_0x5303cc)?{'title':_0x5303cc,'model':_0x5303cc,'view':{'name':_0xd87ed8(0x1fb),'styles':{'line-height':_0x5303cc}}}:findPreset(_0x5303cc)))[_0xd87ed8(0x209)](_0x156fa3=>void 0x0!==_0x156fa3);}export function findPreset(_0x5b429e){const _0x10baa0=_0x4493;return _0x10baa0(0x203)==typeof _0x5b429e?v[_0x5b429e]:v[_0x5b429e[_0x10baa0(0x1f6)]];}function _0x50b2(){const _0x67e4a1=['1963420lGTecO','39352XvPkle','7970392GmvcxE','push','string','5752344qrNzCK','Double','10EWWISb','6iQfKOt','line-height-double','filter','values','map','value','options','line-height-single','double','682425KCuZUd','view','line-height:','51txqRib','key','7822227FcLrii','class','Single','single','number','model','defaultValue','default','toLowerCase','1575JkJooR','span','22PypZCb','67700UsImeT','style'];_0x50b2=function(){return _0x67e4a1;};return _0x50b2();}export function buildDefinition(_0x5e4898,_0x9f6e6){const _0xd7362c=_0x4493,_0x15ebcf={'model':{'key':_0x5e4898,'values':[]},'view':{}};for(const _0x29421e of _0x9f6e6)_0xd7362c(0x1f2)===_0x29421e[_0xd7362c(0x1ed)]?.[_0xd7362c(0x1f0)]?(_0x15ebcf[_0xd7362c(0x1f6)][_0xd7362c(0x20a)][_0xd7362c(0x202)](_0x29421e[_0xd7362c(0x1f6)]),_0x15ebcf[_0xd7362c(0x1ed)][_0x29421e[_0xd7362c(0x1f6)]]={'key':_0xd7362c(0x1f2),'value':_0x29421e[_0xd7362c(0x1ed)][_0xd7362c(0x20c)]}):(_0x15ebcf[_0xd7362c(0x1f6)][_0xd7362c(0x20a)][_0xd7362c(0x202)](_0x29421e[_0xd7362c(0x1f6)]),_0x15ebcf[_0xd7362c(0x1ed)][_0x29421e[_0xd7362c(0x1f6)]]={'key':_0xd7362c(0x1fe),'value':_0xd7362c(0x1ee)+_0x29421e[_0xd7362c(0x1f6)]+';'});return _0x15ebcf;}
|
package/theme/lineheight.css
CHANGED
|
@@ -7,16 +7,6 @@
|
|
|
7
7
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
.ck.ck-line-height-dropdown .ck-dropdown__panel .ck-list {
|
|
11
|
-
/* Extend dropdown height for better UX */
|
|
12
|
-
max-height: 300px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.ck.ck-line-height-dropdown .ck-dropdown__panel .ck-button.ck-line-height-option {
|
|
16
|
-
/* Add some minimum width to avoid too narrow buttons */
|
|
17
|
-
min-width: 6em;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
10
|
.ck-content .line-height-single {
|
|
21
11
|
line-height: 1;
|
|
22
12
|
}
|