jodit-pro 1.2.49 → 1.2.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/build/jodit.css +1 -1
  2. package/build/jodit.es5.css +2 -2
  3. package/build/jodit.es5.js +1 -1
  4. package/build/jodit.fat.css +1 -1
  5. package/build/jodit.fat.es5.css +1 -1
  6. package/build/jodit.fat.es5.js +1 -1
  7. package/build/jodit.fat.js +1 -1
  8. package/build/jodit.js +1 -1
  9. package/build/plugins/autocomplete/autocomplete.es5.js +1 -1
  10. package/build/plugins/autocomplete/autocomplete.js +1 -1
  11. package/build/plugins/backup/backup.es5.js +1 -1
  12. package/build/plugins/backup/backup.js +1 -1
  13. package/build/plugins/button-generator/button-generator.es5.js +1 -1
  14. package/build/plugins/button-generator/button-generator.js +1 -1
  15. package/build/plugins/change-case/change-case.es5.js +1 -1
  16. package/build/plugins/change-case/change-case.js +1 -1
  17. package/build/plugins/color-picker/color-picker.es5.js +1 -1
  18. package/build/plugins/color-picker/color-picker.js +1 -1
  19. package/build/plugins/emoji/emoji.es5.js +1 -1
  20. package/build/plugins/emoji/emoji.js +1 -1
  21. package/build/plugins/export-docs/export-docs.es5.js +1 -1
  22. package/build/plugins/export-docs/export-docs.js +1 -1
  23. package/build/plugins/finder/finder.es5.js +1 -1
  24. package/build/plugins/finder/finder.js +1 -1
  25. package/build/plugins/google-maps/google-maps.es5.js +1 -1
  26. package/build/plugins/google-maps/google-maps.js +1 -1
  27. package/build/plugins/google-search/google-search.es5.js +1 -1
  28. package/build/plugins/google-search/google-search.js +1 -1
  29. package/build/plugins/highlight-signature/highlight-signature.es5.js +1 -1
  30. package/build/plugins/highlight-signature/highlight-signature.js +1 -1
  31. package/build/plugins/iframe-editor/iframe-editor.es5.js +1 -1
  32. package/build/plugins/iframe-editor/iframe-editor.js +1 -1
  33. package/build/plugins/keyboard/keyboard.es5.js +1 -1
  34. package/build/plugins/keyboard/keyboard.js +1 -1
  35. package/build/plugins/page-break/page-break.es5.js +1 -1
  36. package/build/plugins/page-break/page-break.js +1 -1
  37. package/build/plugins/paste-code/paste-code.es5.js +1 -1
  38. package/build/plugins/paste-code/paste-code.js +1 -1
  39. package/build/plugins/paste-from-word/paste-from-word.es5.js +1 -1
  40. package/build/plugins/paste-from-word/paste-from-word.js +1 -1
  41. package/build/plugins/show-blocks/show-blocks.es5.js +1 -1
  42. package/build/plugins/show-blocks/show-blocks.js +1 -1
  43. package/build/plugins/tune-block/tune-block.es5.js +1 -1
  44. package/build/plugins/tune-block/tune-block.js +1 -1
  45. package/examples/arabic.lang.html +2 -2
  46. package/examples/color-picker.html +2 -2
  47. package/examples/custom-icons.html +2 -2
  48. package/examples/custom-toolbar.html +2 -2
  49. package/examples/example.default.html +2 -2
  50. package/examples/fullsize.html +2 -2
  51. package/examples/index.html +3 -3
  52. package/examples/inline-mode.html +2 -2
  53. package/examples/oneinstance.html +2 -2
  54. package/package.json +1 -1
@@ -1 +1 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var r in o)("object"==typeof exports?exports:t)[r]=o[r]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[283],{735:function(t,e,o){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e,o){var n=o.value;if("function"!=typeof n)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(r(n)));var s=!1;return{configurable:!0,get:function(){if(s||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof n)return n;var o=n.bind(this);return s=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return o},set:function(t){n=t,delete this[e]}}),s=!1,o},set:function(t){n=t}}}function s(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((function(e){if("constructor"!==e){var o=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof o.value&&Object.defineProperty(t.prototype,e,n(t,e,o))}})),t}function i(){return 1===arguments.length?s.apply(void 0,arguments):n.apply(void 0,arguments)}o.r(e),o.d(e,{boundClass:function(){return s},boundMethod:function(){return n},default:function(){return i}})},741:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(120);r.Config.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},r.Config.prototype.controls.keyboard={tooltip:"Keyboard",icon:o(742),isActive:function(t){return Boolean(t.e.fire("isKeyboardOpened"))},command:"toggleKeyboard"},r.Config.prototype.controls.extraKeyboardButtons={}},732:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keyboard=void 0;var r=o(1),n=o(328),s=o(2),i=o(733),a=o(155);o(741);var c=o(122),p=o(239),u=o(159),y=o(120),h=function(t){function e(e){var o=t.call(this,e)||this;o.hasStyle=!s.Jodit.fatMode,o.requires=["license"],o.buttons=[{group:"insert",name:"keyboard"}];var r=e.o.keyboard,n=r.extraKeyButtons,i=r.extraKeyGroup;return n.length&&n.forEach((function(t,o){var r=(0,u.isString)(t)?t:t.key,n=(0,u.isString)(t)||!t.hotkeys?["ctrl+".concat(o+1)]:t.hotkeys;e.registerButton({name:"extraKeyboardButtons.".concat(r),group:i}),y.Config.defaultOptions.controls.extraKeyboardButtons[r]={name:r,tooltip:r,args:[r],hotkeys:n,command:"insertChar"}})),o}return r.__extends(e,t),e.prototype.afterInit=function(t){var e=this;t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",(function(){var t;return null===(t=e.__keyboard)||void 0===t?void 0:t.isOpened}))},e.prototype.insertChar=function(t,e,o){this.j.s.insertNode(this.j.createInside.text(o))},e.prototype.toggleKeyboard=function(){if(!this.__keyboard){this.__keyboard=new c.Dialog({toolbarButtonSize:"tiny"});var t=new i.UIKeyboard(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(t);var e=this.j.o.keyboard,o=e.layoutList;if(e.showLayoutSwitcher){var r=new p.UISelect(this.__keyboard,{value:t.state.currentLayout,options:e.layoutSwitchList.map((function(t){var e,r;return{text:null!==(r=null===(e=o[t])||void 0===e?void 0:e.title)&&void 0!==r?r:t,value:t}})),onChange:function(e){t.state.currentLayout=e}});r.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(r)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()},e.prototype.beforeDestruct=function(t){var e;null===(e=this.__keyboard)||void 0===e||e.destruct()},r.__decorate([a.autobind],e.prototype,"insertChar",null),r.__decorate([a.autobind],e.prototype,"toggleKeyboard",null),e}(n.Plugin);e.keyboard=h,s.Jodit.plugins.add("keyboard",h)},733:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIKeyboard=void 0;var r=o(1);o(734);var n=o(239),s=o(155),i=o(132),a=o(121),c=o(735),p=function(t){function e(e){var o=t.call(this,e)||this;return o.state={caps:!1,shift:!1,options:!1,currentLayout:o.j.o.keyboard.defaultLayoutSet},o._keys=o.getElms("key"),o.pressed=!1,o.reKeyDownTimeout=0,o.onStateChange(),o}var p;return r.__extends(e,t),p=e,e.prototype.className=function(){return"UIKeyboard"},e.prototype.render=function(){var t=this.j.options.keyboard,e=t.layout,o=t.keySize,r=e.length;return"<div>".concat(function(){for(var t=[],n=0;r>n;n+=1){for(var s=[],i=0;e[n].length>i;i+=1)s.push('<div style="width:'.concat(o*e[n][i],"px;height:").concat(o,'px;" class="&__key"></div>'));t.push("<div class='&__row'>".concat(s.join("\n"),"</div>"))}return t.join("\n")}(),"</div>")},e.prototype.onStateChange=function(){for(var t=this.state,e=t.options,o=t.shift,r=t.caps,n=this.j.o.keyboard.layoutList[t.currentLayout].keys,s=0,i=0;n.length>i;i+=1)for(var a=0;n[i].length>a;a+=1){var c=n[i][a].split(" "),u=c[0];o&&(u=c[1]),!o&&r&&c[1]&&p.isLetter(c[0])&&(u=c[1]),e&&(u=c[2]),this.setKeyValue(s,null!=u?u:c[0]),s+=1}},e.isLetter=function(t){return t.toLowerCase()!==t.toUpperCase()},e.prototype.setKeyValue=function(t,e){var o=this._keys[t];if(o){var r=!1,n=this.state,s=n.options,a=n.shift,c=n.caps;switch(e){case"Caps":r=c;break;case"Options":r=s;break;case"Shift":r=a}o.innerHTML=p.decorate(e),o.classList.toggle(this.getFullElName("key","active",!0),r),(0,i.attr)(o,"-key",e)}},e.prototype.onKeyUp=function(){this.pressed&&this.stopPress()},e.prototype.onReady=function(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)},e.prototype.stopPress=function(){var t=this;this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach((function(e){e.classList.remove(t.getFullElName("key","pressed",!0))})))},e.prototype.onKeyDown=function(t,e){var o=this;void 0===e&&(e=0);var r=t.target;if(!r||!r.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,r.classList.add(this.getFullElName("key","pressed",!0));var n=(0,i.attr)(r,"-key");switch(n){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:n,preventDefault:function(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(a.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),n&&this.j.s.insertNode(this.j.createInside.text(n))}var s=this.j.o.keyboard,c=s.periodKeyRepeat;return this.reKeyDownTimeout=this.j.async.setTimeout((function(){return o.onKeyDown(t,c)}),e||s.delayKeyRepeat),!1},e.decorate=function(t){switch(t){case"Space":return"";case"Enter":return n.Icon.get("enter");case"Backspace":return o(736);case"Shift":return o(737);case"Caps":return o(738);case"Options":return o(739);case"Tab":return o(740);default:return t}},r.__decorate([(0,s.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],e.prototype,"onStateChange",null),r.__decorate([(0,s.watch)(["ow:mouseup"])],e.prototype,"onKeyUp",null),r.__decorate([(0,s.hook)("ready")],e.prototype,"onReady",null),r.__decorate([c.default],e.prototype,"stopPress",null),r.__decorate([(0,s.watch)(["container:mousedown"],["container:touchstart"])],e.prototype,"onKeyDown",null),p=r.__decorate([s.component],e)}(n.UIElement);e.UIKeyboard=p},742:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg>'},736:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},738:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},739:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg>'},737:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},740:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg>'},734:function(t,e,o){"use strict";o.r(e)}},function(t){return t(t.s=732)}])}));
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var r in o)("object"==typeof exports?exports:t)[r]=o[r]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[283],{754:function(t,e,o){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e,o){var n=o.value;if("function"!=typeof n)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(r(n)));var s=!1;return{configurable:!0,get:function(){if(s||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof n)return n;var o=n.bind(this);return s=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return o},set:function(t){n=t,delete this[e]}}),s=!1,o},set:function(t){n=t}}}function s(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((function(e){if("constructor"!==e){var o=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof o.value&&Object.defineProperty(t.prototype,e,n(t,e,o))}})),t}function i(){return 1===arguments.length?s.apply(void 0,arguments):n.apply(void 0,arguments)}o.r(e),o.d(e,{boundClass:function(){return s},boundMethod:function(){return n},default:function(){return i}})},760:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(124);r.Config.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},r.Config.prototype.controls.keyboard={tooltip:"Keyboard",icon:o(761),isActive:function(t){return Boolean(t.e.fire("isKeyboardOpened"))},command:"toggleKeyboard"},r.Config.prototype.controls.extraKeyboardButtons={}},751:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keyboard=void 0;var r=o(1),n=o(335),s=o(2),i=o(752),a=o(160);o(760);var c=o(126),p=o(246),u=o(164),y=o(124),h=function(t){function e(e){var o=t.call(this,e)||this;o.hasStyle=!s.Jodit.fatMode,o.requires=["license"],o.buttons=[{group:"insert",name:"keyboard"}];var r=e.o.keyboard,n=r.extraKeyButtons,i=r.extraKeyGroup;return n.length&&n.forEach((function(t,o){var r=(0,u.isString)(t)?t:t.key,n=(0,u.isString)(t)||!t.hotkeys?["ctrl+".concat(o+1)]:t.hotkeys;e.registerButton({name:"extraKeyboardButtons.".concat(r),group:i}),y.Config.defaultOptions.controls.extraKeyboardButtons[r]={name:r,tooltip:r,args:[r],hotkeys:n,command:"insertChar"}})),o}return r.__extends(e,t),e.prototype.afterInit=function(t){var e=this;t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",(function(){var t;return null===(t=e.__keyboard)||void 0===t?void 0:t.isOpened}))},e.prototype.insertChar=function(t,e,o){this.j.s.insertNode(this.j.createInside.text(o))},e.prototype.toggleKeyboard=function(){if(!this.__keyboard){this.__keyboard=new c.Dialog({toolbarButtonSize:"tiny"});var t=new i.UIKeyboard(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(t);var e=this.j.o.keyboard,o=e.layoutList;if(e.showLayoutSwitcher){var r=new p.UISelect(this.__keyboard,{value:t.state.currentLayout,options:e.layoutSwitchList.map((function(t){var e,r;return{text:null!==(r=null===(e=o[t])||void 0===e?void 0:e.title)&&void 0!==r?r:t,value:t}})),onChange:function(e){t.state.currentLayout=e}});r.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(r)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()},e.prototype.beforeDestruct=function(t){var e;null===(e=this.__keyboard)||void 0===e||e.destruct()},r.__decorate([a.autobind],e.prototype,"insertChar",null),r.__decorate([a.autobind],e.prototype,"toggleKeyboard",null),e}(n.Plugin);e.keyboard=h,s.Jodit.plugins.add("keyboard",h)},752:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIKeyboard=void 0;var r=o(1);o(753);var n=o(246),s=o(160),i=o(137),a=o(125),c=o(754),p=function(t){function e(e){var o=t.call(this,e)||this;return o.state={caps:!1,shift:!1,options:!1,currentLayout:o.j.o.keyboard.defaultLayoutSet},o._keys=o.getElms("key"),o.pressed=!1,o.reKeyDownTimeout=0,o.onStateChange(),o}var p;return r.__extends(e,t),p=e,e.prototype.className=function(){return"UIKeyboard"},e.prototype.render=function(){var t=this.j.options.keyboard,e=t.layout,o=t.keySize,r=e.length;return"<div>".concat(function(){for(var t=[],n=0;r>n;n+=1){for(var s=[],i=0;e[n].length>i;i+=1)s.push('<div style="width:'.concat(o*e[n][i],"px;height:").concat(o,'px;" class="&__key"></div>'));t.push("<div class='&__row'>".concat(s.join("\n"),"</div>"))}return t.join("\n")}(),"</div>")},e.prototype.onStateChange=function(){for(var t=this.state,e=t.options,o=t.shift,r=t.caps,n=this.j.o.keyboard.layoutList[t.currentLayout].keys,s=0,i=0;n.length>i;i+=1)for(var a=0;n[i].length>a;a+=1){var c=n[i][a].split(" "),u=c[0];o&&(u=c[1]),!o&&r&&c[1]&&p.isLetter(c[0])&&(u=c[1]),e&&(u=c[2]),this.setKeyValue(s,null!=u?u:c[0]),s+=1}},e.isLetter=function(t){return t.toLowerCase()!==t.toUpperCase()},e.prototype.setKeyValue=function(t,e){var o=this._keys[t];if(o){var r=!1,n=this.state,s=n.options,a=n.shift,c=n.caps;switch(e){case"Caps":r=c;break;case"Options":r=s;break;case"Shift":r=a}o.innerHTML=p.decorate(e),o.classList.toggle(this.getFullElName("key","active",!0),r),(0,i.attr)(o,"-key",e)}},e.prototype.onKeyUp=function(){this.pressed&&this.stopPress()},e.prototype.onReady=function(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)},e.prototype.stopPress=function(){var t=this;this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach((function(e){e.classList.remove(t.getFullElName("key","pressed",!0))})))},e.prototype.onKeyDown=function(t,e){var o=this;void 0===e&&(e=0);var r=t.target;if(!r||!r.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,r.classList.add(this.getFullElName("key","pressed",!0));var n=(0,i.attr)(r,"-key");switch(n){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:n,preventDefault:function(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(a.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),n&&this.j.s.insertNode(this.j.createInside.text(n))}var s=this.j.o.keyboard,c=s.periodKeyRepeat;return this.reKeyDownTimeout=this.j.async.setTimeout((function(){return o.onKeyDown(t,c)}),e||s.delayKeyRepeat),!1},e.decorate=function(t){switch(t){case"Space":return"";case"Enter":return n.Icon.get("enter");case"Backspace":return o(755);case"Shift":return o(756);case"Caps":return o(757);case"Options":return o(758);case"Tab":return o(759);default:return t}},r.__decorate([(0,s.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],e.prototype,"onStateChange",null),r.__decorate([(0,s.watch)(["ow:mouseup"])],e.prototype,"onKeyUp",null),r.__decorate([(0,s.hook)("ready")],e.prototype,"onReady",null),r.__decorate([c.default],e.prototype,"stopPress",null),r.__decorate([(0,s.watch)(["container:mousedown"],["container:touchstart"])],e.prototype,"onKeyDown",null),p=r.__decorate([s.component],e)}(n.UIElement);e.UIKeyboard=p},761:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg>'},755:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},757:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},758:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg>'},756:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},759:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg>'},753:function(t,e,o){"use strict";o.r(e)}},function(t){return t(t.s=751)}])}));
@@ -1 +1 @@
1
- ((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var s=e();for(var o in s)("object"==typeof exports?exports:t)[o]=s[o]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[283],{244(t,e,s){"use strict";function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t=>typeof t:t=>t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t,o(t)}function r(t,e,s){var r=s.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(o(r)));var a=!1;return{configurable:!0,get(){if(a||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof r)return r;var s=r.bind(this);return a=!0,Object.defineProperty(this,e,{configurable:!0,get:()=>s,set(t){r=t,delete this[e]}}),a=!1,s},set(t){r=t}}}function a(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((e=>{if("constructor"!==e){var s=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof s.value&&Object.defineProperty(t.prototype,e,r(t,e,s))}})),t}function i(){return 1===arguments.length?a.apply(void 0,arguments):r.apply(void 0,arguments)}s.d(e,{ZP:()=>i})},238(t,e,s){"use strict";s.r(e),s.d(e,{keyboard:()=>g});var o,r=s(197),a=s(70),i=s(1),n=s(42),p=s(19),c=s(11),h=s(3),y=s(244);let l=o=class extends n.u1{constructor(t){super(t),this.state={caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet},this._keys=this.getElms("key"),this.pressed=!1,this.reKeyDownTimeout=0,this.onStateChange()}className(){return"UIKeyboard"}render(){const{layout:t,keySize:e}=this.j.options.keyboard,s=t.length;return`<div>${(()=>{const o=[];for(let r=0;s>r;r+=1){const s=[];for(let o=0;t[r].length>o;o+=1)s.push(`<div style="width:${e*t[r][o]}px;height:${e}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${s.join("\n")}</div>`)}return o.join("\n")})()}</div>`}onStateChange(){const{currentLayout:t,options:e,shift:s,caps:r}=this.state,{keys:a}=this.j.o.keyboard.layoutList[t];let i=0;for(let t=0;a.length>t;t+=1)for(let n=0;a[t].length>n;n+=1){const p=a[t][n].split(" ");let c=p[0];s&&(c=p[1]),!s&&r&&p[1]&&o.isLetter(p[0])&&(c=p[1]),e&&(c=p[2]),this.setKeyValue(i,null!=c?c:p[0]),i+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(t,e){const s=this._keys[t];if(!s)return;let r=!1;const{options:a,shift:i,caps:n}=this.state;switch(e){case"Caps":r=n;break;case"Options":r=a;break;case"Shift":r=i}s.innerHTML=o.decorate(e),s.classList.toggle(this.getFullElName("key","active",!0),r),(0,c.Lj)(s,"-key",e)}onKeyUp(){this.pressed&&this.stopPress()}onReady(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}stopPress(){this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach((t=>{t.classList.remove(this.getFullElName("key","pressed",!0))})))}onKeyDown(t,e=0){const s=t.target;if(!s||!s.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,s.classList.add(this.getFullElName("key","pressed",!0));const o=(0,c.Lj)(s,"-key");switch(o){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:o,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(h.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),o&&this.j.s.insertNode(this.j.createInside.text(o))}const{periodKeyRepeat:r,delayKeyRepeat:a}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout((()=>this.onKeyDown(t,r)),e||a),!1}static decorate(t){switch(t){case"Space":return"";case"Enter":return n.JO.get("enter");case"Backspace":return s(239);case"Shift":return s(240);case"Caps":return s(241);case"Options":return s(242);case"Tab":return s(243);default:return t}}};(0,r.gn)([(0,p.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],l.prototype,"onStateChange",null),(0,r.gn)([(0,p.watch)(["ow:mouseup"])],l.prototype,"onKeyUp",null),(0,r.gn)([(0,p.hook)("ready")],l.prototype,"onReady",null),(0,r.gn)([y.ZP],l.prototype,"stopPress",null),(0,r.gn)([(0,p.watch)(["container:mousedown"],["container:touchstart"])],l.prototype,"onKeyDown",null),l=o=(0,r.gn)([p.component],l);var u=s(2);u.D.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},u.D.prototype.controls.keyboard={tooltip:"Keyboard",icon:s(245),isActive(t){return!!t.e.fire("isKeyboardOpened")},command:"toggleKeyboard"},u.D.prototype.controls.extraKeyboardButtons={};var d=s(4),f=s(20);class g extends a.S{constructor(t){super(t),this.hasStyle=!i.Jodit.fatMode,this.requires=["license"],this.buttons=[{group:"insert",name:"keyboard"}];const{extraKeyButtons:e,extraKeyGroup:s}=t.o.keyboard;e.length&&e.forEach(((e,o)=>{const r=(0,f.HD)(e)?e:e.key,a=(0,f.HD)(e)||!e.hotkeys?["ctrl+"+(o+1)]:e.hotkeys;t.registerButton({name:"extraKeyboardButtons."+r,group:s});const{extraKeyboardButtons:i}=u.D.defaultOptions.controls;i[r]={name:r,tooltip:r,args:[r],hotkeys:a,command:"insertChar"}}))}afterInit(t){t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",(()=>{var t;return null===(t=this.__keyboard)||void 0===t?void 0:t.isOpened}))}insertChar(t,e,s){this.j.s.insertNode(this.j.createInside.text(s))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new d.Dialog({toolbarButtonSize:"tiny"});const t=new l(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(t);const{showLayoutSwitcher:e,layoutSwitchList:s,layoutList:o}=this.j.o.keyboard;if(e){const e=new n.Cj(this.__keyboard,{value:t.state.currentLayout,options:s.map((t=>{var e,s;return{text:null!==(s=null===(e=o[t])||void 0===e?void 0:e.title)&&void 0!==s?s:t,value:t}})),onChange(e){t.state.currentLayout=e}});e.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(e)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(t){var e;null===(e=this.__keyboard)||void 0===e||e.destruct()}}(0,r.gn)([p.autobind],g.prototype,"insertChar",null),(0,r.gn)([p.autobind],g.prototype,"toggleKeyboard",null),i.Jodit.plugins.add("keyboard",g)},197(t,e,s){"use strict";function o(t,e,s,o){var r,a=arguments.length,i=3>a?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(i=(3>a?r(i):a>3?r(e,s,i):r(e,s))||i);return a>3&&i&&Object.defineProperty(e,s,i),i}s.d(e,{gn:()=>o})},245(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg>'},239(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},241(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},242(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg>'},240(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},243(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg>'}},t=>t(t.s=238)])}));
1
+ ((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var s=e();for(var o in s)("object"==typeof exports?exports:t)[o]=s[o]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[283],{250(t,e,s){"use strict";function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t=>typeof t:t=>t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t,o(t)}function r(t,e,s){var r=s.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(o(r)));var a=!1;return{configurable:!0,get(){if(a||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof r)return r;var s=r.bind(this);return a=!0,Object.defineProperty(this,e,{configurable:!0,get:()=>s,set(t){r=t,delete this[e]}}),a=!1,s},set(t){r=t}}}function a(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((e=>{if("constructor"!==e){var s=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof s.value&&Object.defineProperty(t.prototype,e,r(t,e,s))}})),t}function i(){return 1===arguments.length?a.apply(void 0,arguments):r.apply(void 0,arguments)}s.d(e,{ZP:()=>i})},244(t,e,s){"use strict";s.r(e),s.d(e,{keyboard:()=>g});var o,r=s(203),a=s(75),i=s(1),n=s(47),p=s(21),c=s(12),h=s(3),y=s(250);let l=o=class extends n.u1{constructor(t){super(t),this.state={caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet},this._keys=this.getElms("key"),this.pressed=!1,this.reKeyDownTimeout=0,this.onStateChange()}className(){return"UIKeyboard"}render(){const{layout:t,keySize:e}=this.j.options.keyboard,s=t.length;return`<div>${(()=>{const o=[];for(let r=0;s>r;r+=1){const s=[];for(let o=0;t[r].length>o;o+=1)s.push(`<div style="width:${e*t[r][o]}px;height:${e}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${s.join("\n")}</div>`)}return o.join("\n")})()}</div>`}onStateChange(){const{currentLayout:t,options:e,shift:s,caps:r}=this.state,{keys:a}=this.j.o.keyboard.layoutList[t];let i=0;for(let t=0;a.length>t;t+=1)for(let n=0;a[t].length>n;n+=1){const p=a[t][n].split(" ");let c=p[0];s&&(c=p[1]),!s&&r&&p[1]&&o.isLetter(p[0])&&(c=p[1]),e&&(c=p[2]),this.setKeyValue(i,null!=c?c:p[0]),i+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(t,e){const s=this._keys[t];if(!s)return;let r=!1;const{options:a,shift:i,caps:n}=this.state;switch(e){case"Caps":r=n;break;case"Options":r=a;break;case"Shift":r=i}s.innerHTML=o.decorate(e),s.classList.toggle(this.getFullElName("key","active",!0),r),(0,c.Lj)(s,"-key",e)}onKeyUp(){this.pressed&&this.stopPress()}onReady(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}stopPress(){this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach((t=>{t.classList.remove(this.getFullElName("key","pressed",!0))})))}onKeyDown(t,e=0){const s=t.target;if(!s||!s.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,s.classList.add(this.getFullElName("key","pressed",!0));const o=(0,c.Lj)(s,"-key");switch(o){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:o,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(h.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),o&&this.j.s.insertNode(this.j.createInside.text(o))}const{periodKeyRepeat:r,delayKeyRepeat:a}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout((()=>this.onKeyDown(t,r)),e||a),!1}static decorate(t){switch(t){case"Space":return"";case"Enter":return n.JO.get("enter");case"Backspace":return s(245);case"Shift":return s(246);case"Caps":return s(247);case"Options":return s(248);case"Tab":return s(249);default:return t}}};(0,r.gn)([(0,p.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],l.prototype,"onStateChange",null),(0,r.gn)([(0,p.watch)(["ow:mouseup"])],l.prototype,"onKeyUp",null),(0,r.gn)([(0,p.hook)("ready")],l.prototype,"onReady",null),(0,r.gn)([y.ZP],l.prototype,"stopPress",null),(0,r.gn)([(0,p.watch)(["container:mousedown"],["container:touchstart"])],l.prototype,"onKeyDown",null),l=o=(0,r.gn)([p.component],l);var u=s(2);u.D.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},u.D.prototype.controls.keyboard={tooltip:"Keyboard",icon:s(251),isActive(t){return!!t.e.fire("isKeyboardOpened")},command:"toggleKeyboard"},u.D.prototype.controls.extraKeyboardButtons={};var d=s(4),f=s(22);class g extends a.S{constructor(t){super(t),this.hasStyle=!i.Jodit.fatMode,this.requires=["license"],this.buttons=[{group:"insert",name:"keyboard"}];const{extraKeyButtons:e,extraKeyGroup:s}=t.o.keyboard;e.length&&e.forEach(((e,o)=>{const r=(0,f.HD)(e)?e:e.key,a=(0,f.HD)(e)||!e.hotkeys?["ctrl+"+(o+1)]:e.hotkeys;t.registerButton({name:"extraKeyboardButtons."+r,group:s});const{extraKeyboardButtons:i}=u.D.defaultOptions.controls;i[r]={name:r,tooltip:r,args:[r],hotkeys:a,command:"insertChar"}}))}afterInit(t){t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",(()=>{var t;return null===(t=this.__keyboard)||void 0===t?void 0:t.isOpened}))}insertChar(t,e,s){this.j.s.insertNode(this.j.createInside.text(s))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new d.Dialog({toolbarButtonSize:"tiny"});const t=new l(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(t);const{showLayoutSwitcher:e,layoutSwitchList:s,layoutList:o}=this.j.o.keyboard;if(e){const e=new n.Cj(this.__keyboard,{value:t.state.currentLayout,options:s.map((t=>{var e,s;return{text:null!==(s=null===(e=o[t])||void 0===e?void 0:e.title)&&void 0!==s?s:t,value:t}})),onChange(e){t.state.currentLayout=e}});e.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(e)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(t){var e;null===(e=this.__keyboard)||void 0===e||e.destruct()}}(0,r.gn)([p.autobind],g.prototype,"insertChar",null),(0,r.gn)([p.autobind],g.prototype,"toggleKeyboard",null),i.Jodit.plugins.add("keyboard",g)},203(t,e,s){"use strict";function o(t,e,s,o){var r,a=arguments.length,i=3>a?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(i=(3>a?r(i):a>3?r(e,s,i):r(e,s))||i);return a>3&&i&&Object.defineProperty(e,s,i),i}s.d(e,{gn:()=>o})},251(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg>'},245(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},247(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},248(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg>'},246(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},249(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg>'}},t=>t(t.s=244)])}));
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[790],{804:function(e,t){"use strict";t.Z="[data-jodit-page-break] {\n\tdisplay: flex;\n\theight: 24px;\n\tbox-sizing: border-box;\n\n\talign-items: center;\n\tjustify-content: center;\n\n\tborder: 1px dashed #ccc;\n\n\tfont-size: 12px;\n\tpage-break-before: always;\n\ttext-transform: uppercase;\n}\n\n[data-jodit-page-break]:active {\n\tborder-color: #818181;\n}\n"},803:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(120),a=r(804).Z;o.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},o.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:r(805),command:"insertPageBreak"},o.Config.prototype.iframeStyle=String(o.Config.prototype.iframeStyle)+a},801:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageBreak=void 0;var o=r(1);r(802);var a=r(328),n=r(2);r(803);var i=r(145),p=r(155),s=r(131),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.requires=["license"],t.buttons=[{name:"pageBreak",group:"insert"}],t}return o.__extends(t,e),t.prototype.afterInit=function(e){var t=this;e.registerCommand("insertPageBreak",(function(){var r=e.createInside.div("",{});t.decoratePageBreak(r),e.s.insertNode(r,!1,!1);for(var o=r.parentNode;o&&o!==e.editor&&(i.Dom.after(o,r),!i.Dom.isBlock(o));)o=r.parentNode;e.s.setCursorAfter(r),e.setEditorValue()}))},t.prototype.decoratePageBreak=function(e){(0,s.attr)(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")},t.prototype.beforeDestruct=function(){},t.prototype.onChange=function(){var e=this;(0,s.$$)('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach((function(t){i.Dom.isEmpty(t)&&!(0,s.attr)(t,"data-jodit-page-break")&&e.decoratePageBreak(t)}))},t.prototype.onAfterGetValueFromEditor=function(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)},o.__decorate([(0,p.watch)([":change",":afterSetMode"]),(0,p.debounce)()],t.prototype,"onChange",null),o.__decorate([(0,p.watch)(":afterGetValueFromEditor")],t.prototype,"onAfterGetValueFromEditor",null),t}(a.Plugin);t.PageBreak=d,n.Jodit.plugins.add("pageBreak",d)},805:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'},802:function(e,t,r){"use strict";r.r(t)}},function(e){return e(e.s=801)}])}));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[790],{823:function(e,t){"use strict";t.Z="[data-jodit-page-break] {\n\tdisplay: flex;\n\theight: 24px;\n\tbox-sizing: border-box;\n\n\talign-items: center;\n\tjustify-content: center;\n\n\tborder: 1px dashed #ccc;\n\n\tfont-size: 12px;\n\tpage-break-before: always;\n\ttext-transform: uppercase;\n}\n\n[data-jodit-page-break]:active {\n\tborder-color: #818181;\n}\n"},822:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(124),a=r(823).Z;o.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},o.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:r(824),command:"insertPageBreak"},o.Config.prototype.iframeStyle=String(o.Config.prototype.iframeStyle)+a},820:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageBreak=void 0;var o=r(1);r(821);var a=r(335),n=r(2);r(822);var i=r(150),p=r(160),s=r(136),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.requires=["license"],t.buttons=[{name:"pageBreak",group:"insert"}],t}return o.__extends(t,e),t.prototype.afterInit=function(e){var t=this;e.registerCommand("insertPageBreak",(function(){var r=e.createInside.div("",{});t.decoratePageBreak(r),e.s.insertNode(r,!1,!1);for(var o=r.parentNode;o&&o!==e.editor&&(i.Dom.after(o,r),!i.Dom.isBlock(o));)o=r.parentNode;e.s.setCursorAfter(r),e.setEditorValue()}))},t.prototype.decoratePageBreak=function(e){(0,s.attr)(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")},t.prototype.beforeDestruct=function(){},t.prototype.onChange=function(){var e=this;(0,s.$$)('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach((function(t){i.Dom.isEmpty(t)&&!(0,s.attr)(t,"data-jodit-page-break")&&e.decoratePageBreak(t)}))},t.prototype.onAfterGetValueFromEditor=function(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)},o.__decorate([(0,p.watch)([":change",":afterSetMode"]),(0,p.debounce)()],t.prototype,"onChange",null),o.__decorate([(0,p.watch)(":afterGetValueFromEditor")],t.prototype,"onAfterGetValueFromEditor",null),t}(a.Plugin);t.PageBreak=d,n.Jodit.plugins.add("pageBreak",d)},824:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'},821:function(e,t,r){"use strict";r.r(t)}},function(e){return e(e.s=820)}])}));
@@ -1 +1 @@
1
- ((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var a in r)("object"==typeof exports?exports:e)[a]=r[a]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[790],{261(e,t){"use strict";t.Z="[data-jodit-page-break] {\n\tdisplay: flex;\n\theight: 24px;\n\tbox-sizing: border-box;\n\n\talign-items: center;\n\tjustify-content: center;\n\n\tborder: 1px dashed #ccc;\n\n\tfont-size: 12px;\n\tpage-break-before: always;\n\ttext-transform: uppercase;\n}\n\n[data-jodit-page-break]:active {\n\tborder-color: #818181;\n}\n"},260(e,t,r){"use strict";r.r(t),r.d(t,{PageBreak:()=>l});var a=r(197),o=r(70),n=r(1),i=r(2);const s=r(261).Z;i.D.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},i.D.prototype.controls.pageBreak={tooltip:"Insert page break",icon:r(262),command:"insertPageBreak"},i.D.prototype.iframeStyle=i.D.prototype.iframeStyle+""+s;var p=r(17),d=r(19),c=r(10);class l extends o.S{constructor(){super(...arguments),this.requires=["license"],this.buttons=[{name:"pageBreak",group:"insert"}]}afterInit(e){e.registerCommand("insertPageBreak",(()=>{const t=e.createInside.div("",{});this.decoratePageBreak(t),e.s.insertNode(t,!1,!1);let r=t.parentNode;for(;r&&r!==e.editor&&(p.i.after(r,t),!p.i.isBlock(r));)r=t.parentNode;e.s.setCursorAfter(t),e.setEditorValue()}))}decoratePageBreak(e){(0,c.attr)(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")}beforeDestruct(){}onChange(){(0,c.$$)('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach((e=>{p.i.isEmpty(e)&&!(0,c.attr)(e,"data-jodit-page-break")&&this.decoratePageBreak(e)}))}onAfterGetValueFromEditor(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}}(0,a.gn)([(0,d.watch)([":change",":afterSetMode"]),(0,d.debounce)()],l.prototype,"onChange",null),(0,a.gn)([(0,d.watch)(":afterGetValueFromEditor")],l.prototype,"onAfterGetValueFromEditor",null),n.Jodit.plugins.add("pageBreak",l)},197(e,t,r){"use strict";function a(e,t,r,a){var o,n=arguments.length,i=3>n?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,a);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(3>n?o(i):n>3?o(t,r,i):o(t,r))||i);return n>3&&i&&Object.defineProperty(t,r,i),i}r.d(t,{gn:()=>a})},262(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'}},e=>e(e.s=260)])}));
1
+ ((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var a in r)("object"==typeof exports?exports:e)[a]=r[a]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[790],{267(e,t){"use strict";t.Z="[data-jodit-page-break] {\n\tdisplay: flex;\n\theight: 24px;\n\tbox-sizing: border-box;\n\n\talign-items: center;\n\tjustify-content: center;\n\n\tborder: 1px dashed #ccc;\n\n\tfont-size: 12px;\n\tpage-break-before: always;\n\ttext-transform: uppercase;\n}\n\n[data-jodit-page-break]:active {\n\tborder-color: #818181;\n}\n"},266(e,t,r){"use strict";r.r(t),r.d(t,{PageBreak:()=>l});var a=r(203),o=r(75),n=r(1),i=r(2);const s=r(267).Z;i.D.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},i.D.prototype.controls.pageBreak={tooltip:"Insert page break",icon:r(268),command:"insertPageBreak"},i.D.prototype.iframeStyle=i.D.prototype.iframeStyle+""+s;var p=r(18),d=r(21),c=r(11);class l extends o.S{constructor(){super(...arguments),this.requires=["license"],this.buttons=[{name:"pageBreak",group:"insert"}]}afterInit(e){e.registerCommand("insertPageBreak",(()=>{const t=e.createInside.div("",{});this.decoratePageBreak(t),e.s.insertNode(t,!1,!1);let r=t.parentNode;for(;r&&r!==e.editor&&(p.i.after(r,t),!p.i.isBlock(r));)r=t.parentNode;e.s.setCursorAfter(t),e.setEditorValue()}))}decoratePageBreak(e){(0,c.attr)(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")}beforeDestruct(){}onChange(){(0,c.$$)('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach((e=>{p.i.isEmpty(e)&&!(0,c.attr)(e,"data-jodit-page-break")&&this.decoratePageBreak(e)}))}onAfterGetValueFromEditor(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}}(0,a.gn)([(0,d.watch)([":change",":afterSetMode"]),(0,d.debounce)()],l.prototype,"onChange",null),(0,a.gn)([(0,d.watch)(":afterGetValueFromEditor")],l.prototype,"onAfterGetValueFromEditor",null),n.Jodit.plugins.add("pageBreak",l)},203(e,t,r){"use strict";function a(e,t,r,a){var o,n=arguments.length,i=3>n?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,a);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(3>n?o(i):n>3?o(t,r,i):o(t,r))||i);return n>3&&i&&Object.defineProperty(t,r,i),i}r.d(t,{gn:()=>a})},268(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'}},e=>e(e.s=266)])}));
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var o in a)("object"==typeof exports?exports:e)[o]=a[o]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[535],{730:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(120),n=a(131);o.Config.prototype.controls.pasteCode={icon:a(731),tooltip:"Paste code",command:"pasteCode"},o.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode:function(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{highlight:function(e,t){return Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t)},isLangLoaded:function(e){return Boolean(Prism.languages[e])},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"],langUrl:function(e){return"https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/components/prism-".concat(e,".min.js")},css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:function(e,t,a){return'<pre class="language-'.concat(t,'">').concat((0,n.htmlspecialchars)(a),"</pre>")},languages:[{value:"html",text:"HTML/XML"},{value:"plaintext",text:"Plain"},{value:"bash",text:"Bash"},{value:"javascript",text:"JavaScript"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"}],dialog:{width:700,height:600}}},728:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pasteCode=void 0;var o=a(1);a(729),a(730);var n=a(328),i=a(239),r=a(155),s=a(131),l=a(2),c=a(122),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.requires=["license"],t.buttons=[{name:"pasteCode",group:"clipboard"}],t.prismJSIsLoaded=!1,t}return o.__extends(t,e),t.prototype.afterInit=function(e){var t=this;e.registerCommand("pasteCode",(function(){return t.openCodeEditDialog()}))},t.prototype.openCodeEditDialog=function(e,t,a){var o=this,n=this.j,i=this.createForm(),r=(0,s.refs)(i),l=r.code,u=r.language;e&&(u.value=e),t&&(l.value=t),n.async.requestIdleCallback((function(){l.focus()})),n.s.save(),this.createDialog((function(){if(!i.validate())return!1;n.s.restore();var e=n.createInside.fromHTML(n.o.pasteCode.insertTemplate(n,u.value,l.value));if(a)c.Dom.replace(a,e,n.createInside,!1,!0);else{var t=n.s.current(),r=c.Dom.up(t,c.Dom.isBlock,n.editor);r?c.Dom.after(r,e):n.s.insertNode(e)}o.onChange()}),(function(){n.s.restore()})).setContent(i.container).open(!0)},t.prototype.beforeDestruct=function(e){},t.prototype.createForm=function(){var e=this.jodit;return new i.UIForm(e,[new i.UISelect(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new i.UITextArea(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})},t.prototype.createDialog=function(e,t){var a=new c.Dialog({language:this.j.o.language});return a.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,i.Button)(a,"","Cancel","default").onAction((function(){a.close(),t()})),(0,i.Button)(a,"save","Save","primary").onAction((function(){a.close(),e()}))]),a},t.prototype.onChange=function(){var e=this;(0,s.$$)("pre",this.j.editor).forEach((function(t){(0,s.attr)(t,"contenteditable")||((0,s.attr)(t,"contenteditable",!1),e.highlightCode(t))}))},t.prototype.highlightCode=function(e){return o.__awaiter(this,void 0,Promise,(function(){var t,a,n,i,r,l,u,p,d,h;return o.__generator(this,(function(o){switch(o.label){case 0:return a=(t=this.j.o.pasteCode).globalHighlightLib,i=(n=t.highlightLib).css,r=n.js,l=n.langUrl,u=n.highlight,p=n.isLangLoaded,this.prismJSIsLoaded||a?[3,2]:[4,Promise.all([(0,s.loadNextStyle)(this.jodit,i),(0,s.loadNext)(this.jodit,r)])];case 1:o.sent(),this.prismJSIsLoaded=!0,o.label=2;case 2:return d=this.parseLanguage(e),p(d)||a?[3,4]:[4,(0,s.appendScriptAsync)(this.jodit,l(d)).catch((function(){return null}))];case 3:o.sent(),o.label=4;case 4:return h=e,e.firstElementChild===e.lastElementChild&&c.Dom.isTag(e.firstElementChild,"code")&&(h=e.firstElementChild),h.innerHTML=u(h.innerText,d),[2]}}))}))},t.prototype.onPreEdit=function(e){var t=c.Dom.isNode(e)&&c.Dom.isTag(e,"pre")?e:c.Dom.closest(e.target,"pre",this.j.editor);if(t){var a=this.parseLanguage(t);this.openCodeEditDialog(a,t.innerText,t)}},t.prototype.parseLanguage=function(e){var t=null,a=function(e){return e.classList.forEach((function(e){if(/language-/.test(e)){var a=/language-(.*)/.exec(e);a&&a[1]&&(t=a[1])}}))};return a(e),null==t&&e.firstElementChild===e.lastElementChild&&c.Dom.isTag(e.firstElementChild,"code")&&a(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")},t.prototype.onAfterGetValueFromEditor=function(e){e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,(function(e,t,a,o,n,i){return"".concat(t).concat(o).concat((0,s.htmlspecialchars)((0,s.stripTags)(n))).concat(i)})).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,(function(e,t,a,o,n,i){return"".concat(t).concat(o).concat((0,s.htmlspecialchars)((0,s.stripTags)(n))).concat(i)}))},o.__decorate([r.autobind],t.prototype,"openCodeEditDialog",null),o.__decorate([(0,r.watch)("?:change"),(0,r.debounce)()],t.prototype,"onChange",null),o.__decorate([(0,r.watch)(["?:dblclick","?:editPreInPasteCode"])],t.prototype,"onPreEdit",null),o.__decorate([(0,r.watch)("?:afterGetValueFromEditor")],t.prototype,"onAfterGetValueFromEditor",null),o.__decorate([r.component],t)}(n.Plugin);t.pasteCode=u,l.Jodit.plugins.add("paste-code",u)},731:function(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},729:function(e,t,a){"use strict";a.r(t)}},function(e){return e(e.s=728)}])}));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var o in a)("object"==typeof exports?exports:e)[o]=a[o]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[535],{749:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(124),n=a(136);o.Config.prototype.controls.pasteCode={icon:a(750),tooltip:"Paste code",command:"pasteCode"},o.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode:function(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{highlight:function(e,t){return Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t)},isLangLoaded:function(e){return Boolean(Prism.languages[e])},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"],langUrl:function(e){return"https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/components/prism-".concat(e,".min.js")},css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:function(e,t,a){return'<pre class="language-'.concat(t,'">').concat((0,n.htmlspecialchars)(a),"</pre>")},languages:[{value:"html",text:"HTML/XML"},{value:"plaintext",text:"Plain"},{value:"bash",text:"Bash"},{value:"javascript",text:"JavaScript"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"}],dialog:{width:700,height:600}}},747:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pasteCode=void 0;var o=a(1);a(748),a(749);var n=a(335),i=a(246),r=a(160),s=a(136),l=a(2),c=a(126),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.requires=["license"],t.buttons=[{name:"pasteCode",group:"clipboard"}],t.prismJSIsLoaded=!1,t}return o.__extends(t,e),t.prototype.afterInit=function(e){var t=this;e.registerCommand("pasteCode",(function(){return t.openCodeEditDialog()}))},t.prototype.openCodeEditDialog=function(e,t,a){var o=this,n=this.j,i=this.createForm(),r=(0,s.refs)(i),l=r.code,u=r.language;e&&(u.value=e),t&&(l.value=t),n.async.requestIdleCallback((function(){l.focus()})),n.s.save(),this.createDialog((function(){if(!i.validate())return!1;n.s.restore();var e=n.createInside.fromHTML(n.o.pasteCode.insertTemplate(n,u.value,l.value));if(a)c.Dom.replace(a,e,n.createInside,!1,!0);else{var t=n.s.current(),r=c.Dom.up(t,c.Dom.isBlock,n.editor);r?c.Dom.after(r,e):n.s.insertNode(e)}o.onChange()}),(function(){n.s.restore()})).setContent(i.container).open(!0)},t.prototype.beforeDestruct=function(e){},t.prototype.createForm=function(){var e=this.jodit;return new i.UIForm(e,[new i.UISelect(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new i.UITextArea(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})},t.prototype.createDialog=function(e,t){var a=new c.Dialog({language:this.j.o.language});return a.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,i.Button)(a,"","Cancel","default").onAction((function(){a.close(),t()})),(0,i.Button)(a,"save","Save","primary").onAction((function(){a.close(),e()}))]),a},t.prototype.onChange=function(){var e=this;(0,s.$$)("pre",this.j.editor).forEach((function(t){(0,s.attr)(t,"contenteditable")||((0,s.attr)(t,"contenteditable",!1),e.highlightCode(t))}))},t.prototype.highlightCode=function(e){return o.__awaiter(this,void 0,Promise,(function(){var t,a,n,i,r,l,u,p,d,h;return o.__generator(this,(function(o){switch(o.label){case 0:return a=(t=this.j.o.pasteCode).globalHighlightLib,i=(n=t.highlightLib).css,r=n.js,l=n.langUrl,u=n.highlight,p=n.isLangLoaded,this.prismJSIsLoaded||a?[3,2]:[4,Promise.all([(0,s.loadNextStyle)(this.jodit,i),(0,s.loadNext)(this.jodit,r)])];case 1:o.sent(),this.prismJSIsLoaded=!0,o.label=2;case 2:return d=this.parseLanguage(e),p(d)||a?[3,4]:[4,(0,s.appendScriptAsync)(this.jodit,l(d)).catch((function(){return null}))];case 3:o.sent(),o.label=4;case 4:return h=e,e.firstElementChild===e.lastElementChild&&c.Dom.isTag(e.firstElementChild,"code")&&(h=e.firstElementChild),h.innerHTML=u(h.innerText,d),[2]}}))}))},t.prototype.onPreEdit=function(e){var t=c.Dom.isNode(e)&&c.Dom.isTag(e,"pre")?e:c.Dom.closest(e.target,"pre",this.j.editor);if(t){var a=this.parseLanguage(t);this.openCodeEditDialog(a,t.innerText,t)}},t.prototype.parseLanguage=function(e){var t=null,a=function(e){return e.classList.forEach((function(e){if(/language-/.test(e)){var a=/language-(.*)/.exec(e);a&&a[1]&&(t=a[1])}}))};return a(e),null==t&&e.firstElementChild===e.lastElementChild&&c.Dom.isTag(e.firstElementChild,"code")&&a(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")},t.prototype.onAfterGetValueFromEditor=function(e){e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,(function(e,t,a,o,n,i){return"".concat(t).concat(o).concat((0,s.htmlspecialchars)((0,s.stripTags)(n))).concat(i)})).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,(function(e,t,a,o,n,i){return"".concat(t).concat(o).concat((0,s.htmlspecialchars)((0,s.stripTags)(n))).concat(i)}))},o.__decorate([r.autobind],t.prototype,"openCodeEditDialog",null),o.__decorate([(0,r.watch)("?:change"),(0,r.debounce)()],t.prototype,"onChange",null),o.__decorate([(0,r.watch)(["?:dblclick","?:editPreInPasteCode"])],t.prototype,"onPreEdit",null),o.__decorate([(0,r.watch)("?:afterGetValueFromEditor")],t.prototype,"onAfterGetValueFromEditor",null),o.__decorate([r.component],t)}(n.Plugin);t.pasteCode=u,l.Jodit.plugins.add("paste-code",u)},750:function(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},748:function(e,t,a){"use strict";a.r(t)}},function(e){return e(e.s=747)}])}));
@@ -1 +1 @@
1
- ((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var s in a)("object"==typeof exports?exports:e)[s]=a[s]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[535],{236(e,t,a){"use strict";a.r(t),a.d(t,{pasteCode:()=>p});var s=a(197),o=a(2),i=a(10);o.D.prototype.controls.pasteCode={icon:a(237),tooltip:"Paste code",command:"pasteCode"},o.D.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{highlight(e,t){return Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t)},isLangLoaded(e){return!!Prism.languages[e]},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"],langUrl:e=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/components/prism-${e}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(e,t,a)=>`<pre class="language-${t}">${(0,i.htmlspecialchars)(a)}</pre>`,languages:[{value:"html",text:"HTML/XML"},{value:"plaintext",text:"Plain"},{value:"bash",text:"Bash"},{value:"javascript",text:"JavaScript"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"}],dialog:{width:700,height:600}};var l=a(70),r=a(42),n=a(19),c=a(1),d=a(4);let p=class extends l.S{constructor(){super(...arguments),this.requires=["license"],this.buttons=[{name:"pasteCode",group:"clipboard"}],this.prismJSIsLoaded=!1}afterInit(e){e.registerCommand("pasteCode",(()=>this.openCodeEditDialog()))}openCodeEditDialog(e,t,a){const s=this.j,o=this.createForm(),{code:l,language:r}=(0,i.refs)(o);e&&(r.value=e),t&&(l.value=t),s.async.requestIdleCallback((()=>{l.focus()})),s.s.save(),this.createDialog((()=>{if(!o.validate())return!1;{s.s.restore();const e=s.createInside.fromHTML(s.o.pasteCode.insertTemplate(s,r.value,l.value));if(a)d.Dom.replace(a,e,s.createInside,!1,!0);else{const t=s.s.current(),a=d.Dom.up(t,d.Dom.isBlock,s.editor);a?d.Dom.after(a,e):s.s.insertNode(e)}this.onChange()}}),(()=>{s.s.restore()})).setContent(o.container).open(!0)}beforeDestruct(e){}createForm(){const{jodit:e}=this;return new r.x4(e,[new r.Cj(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new r.GJ(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}createDialog(e,t){const a=new d.Dialog({language:this.j.o.language});return a.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,r.zx)(a,"","Cancel","default").onAction((()=>{a.close(),t()})),(0,r.zx)(a,"save","Save","primary").onAction((()=>{a.close(),e()}))]),a}onChange(){(0,i.$$)("pre",this.j.editor).forEach((e=>{(0,i.attr)(e,"contenteditable")||((0,i.attr)(e,"contenteditable",!1),this.highlightCode(e))}))}async highlightCode(e){const{globalHighlightLib:t,highlightLib:{css:a,js:s,langUrl:o,highlight:l,isLangLoaded:r}}=this.j.o.pasteCode;this.prismJSIsLoaded||t||(await Promise.all([(0,i.loadNextStyle)(this.jodit,a),(0,i.loadNext)(this.jodit,s)]),this.prismJSIsLoaded=!0);const n=this.parseLanguage(e);r(n)||t||await(0,i.appendScriptAsync)(this.jodit,o(n)).catch((()=>null));let c=e;e.firstElementChild===e.lastElementChild&&d.Dom.isTag(e.firstElementChild,"code")&&(c=e.firstElementChild),c.innerHTML=l(c.innerText,n)}onPreEdit(e){const t=d.Dom.isNode(e)&&d.Dom.isTag(e,"pre")?e:d.Dom.closest(e.target,"pre",this.j.editor);if(t){const e=this.parseLanguage(t);this.openCodeEditDialog(e,t.innerText,t)}}parseLanguage(e){let t=null;const a=e=>e.classList.forEach((e=>{if(/language-/.test(e)){const a=/language-(.*)/.exec(e);a&&a[1]&&(t=a[1])}}));return a(e),null==t&&e.firstElementChild===e.lastElementChild&&d.Dom.isTag(e.firstElementChild,"code")&&a(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")}onAfterGetValueFromEditor(e){e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,((e,t,a,s,o,l)=>`${t}${s}${(0,i.htmlspecialchars)((0,i.stripTags)(o))}${l}`)).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,((e,t,a,s,o,l)=>`${t}${s}${(0,i.htmlspecialchars)((0,i.stripTags)(o))}${l}`))}};(0,s.gn)([n.autobind],p.prototype,"openCodeEditDialog",null),(0,s.gn)([(0,n.watch)("?:change"),(0,n.debounce)()],p.prototype,"onChange",null),(0,s.gn)([(0,n.watch)(["?:dblclick","?:editPreInPasteCode"])],p.prototype,"onPreEdit",null),(0,s.gn)([(0,n.watch)("?:afterGetValueFromEditor")],p.prototype,"onAfterGetValueFromEditor",null),p=(0,s.gn)([n.component],p),c.Jodit.plugins.add("paste-code",p)},197(e,t,a){"use strict";function s(e,t,a,s){var o,i=arguments.length,l=3>i?t:null===s?s=Object.getOwnPropertyDescriptor(t,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,a,s);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(l=(3>i?o(l):i>3?o(t,a,l):o(t,a))||l);return i>3&&l&&Object.defineProperty(t,a,l),l}a.d(t,{gn:()=>s})},237(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'}},e=>e(e.s=236)])}));
1
+ ((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var s in a)("object"==typeof exports?exports:e)[s]=a[s]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[535],{242(e,t,a){"use strict";a.r(t),a.d(t,{pasteCode:()=>p});var s=a(203),o=a(2),i=a(11);o.D.prototype.controls.pasteCode={icon:a(243),tooltip:"Paste code",command:"pasteCode"},o.D.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{highlight(e,t){return Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t)},isLangLoaded(e){return!!Prism.languages[e]},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"],langUrl:e=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/components/prism-${e}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(e,t,a)=>`<pre class="language-${t}">${(0,i.htmlspecialchars)(a)}</pre>`,languages:[{value:"html",text:"HTML/XML"},{value:"plaintext",text:"Plain"},{value:"bash",text:"Bash"},{value:"javascript",text:"JavaScript"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"}],dialog:{width:700,height:600}};var l=a(75),r=a(47),n=a(21),c=a(1),d=a(4);let p=class extends l.S{constructor(){super(...arguments),this.requires=["license"],this.buttons=[{name:"pasteCode",group:"clipboard"}],this.prismJSIsLoaded=!1}afterInit(e){e.registerCommand("pasteCode",(()=>this.openCodeEditDialog()))}openCodeEditDialog(e,t,a){const s=this.j,o=this.createForm(),{code:l,language:r}=(0,i.refs)(o);e&&(r.value=e),t&&(l.value=t),s.async.requestIdleCallback((()=>{l.focus()})),s.s.save(),this.createDialog((()=>{if(!o.validate())return!1;{s.s.restore();const e=s.createInside.fromHTML(s.o.pasteCode.insertTemplate(s,r.value,l.value));if(a)d.Dom.replace(a,e,s.createInside,!1,!0);else{const t=s.s.current(),a=d.Dom.up(t,d.Dom.isBlock,s.editor);a?d.Dom.after(a,e):s.s.insertNode(e)}this.onChange()}}),(()=>{s.s.restore()})).setContent(o.container).open(!0)}beforeDestruct(e){}createForm(){const{jodit:e}=this;return new r.x4(e,[new r.Cj(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new r.GJ(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}createDialog(e,t){const a=new d.Dialog({language:this.j.o.language});return a.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,r.zx)(a,"","Cancel","default").onAction((()=>{a.close(),t()})),(0,r.zx)(a,"save","Save","primary").onAction((()=>{a.close(),e()}))]),a}onChange(){(0,i.$$)("pre",this.j.editor).forEach((e=>{(0,i.attr)(e,"contenteditable")||((0,i.attr)(e,"contenteditable",!1),this.highlightCode(e))}))}async highlightCode(e){const{globalHighlightLib:t,highlightLib:{css:a,js:s,langUrl:o,highlight:l,isLangLoaded:r}}=this.j.o.pasteCode;this.prismJSIsLoaded||t||(await Promise.all([(0,i.loadNextStyle)(this.jodit,a),(0,i.loadNext)(this.jodit,s)]),this.prismJSIsLoaded=!0);const n=this.parseLanguage(e);r(n)||t||await(0,i.appendScriptAsync)(this.jodit,o(n)).catch((()=>null));let c=e;e.firstElementChild===e.lastElementChild&&d.Dom.isTag(e.firstElementChild,"code")&&(c=e.firstElementChild),c.innerHTML=l(c.innerText,n)}onPreEdit(e){const t=d.Dom.isNode(e)&&d.Dom.isTag(e,"pre")?e:d.Dom.closest(e.target,"pre",this.j.editor);if(t){const e=this.parseLanguage(t);this.openCodeEditDialog(e,t.innerText,t)}}parseLanguage(e){let t=null;const a=e=>e.classList.forEach((e=>{if(/language-/.test(e)){const a=/language-(.*)/.exec(e);a&&a[1]&&(t=a[1])}}));return a(e),null==t&&e.firstElementChild===e.lastElementChild&&d.Dom.isTag(e.firstElementChild,"code")&&a(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")}onAfterGetValueFromEditor(e){e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,((e,t,a,s,o,l)=>`${t}${s}${(0,i.htmlspecialchars)((0,i.stripTags)(o))}${l}`)).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,((e,t,a,s,o,l)=>`${t}${s}${(0,i.htmlspecialchars)((0,i.stripTags)(o))}${l}`))}};(0,s.gn)([n.autobind],p.prototype,"openCodeEditDialog",null),(0,s.gn)([(0,n.watch)("?:change"),(0,n.debounce)()],p.prototype,"onChange",null),(0,s.gn)([(0,n.watch)(["?:dblclick","?:editPreInPasteCode"])],p.prototype,"onPreEdit",null),(0,s.gn)([(0,n.watch)("?:afterGetValueFromEditor")],p.prototype,"onAfterGetValueFromEditor",null),p=(0,s.gn)([n.component],p),c.Jodit.plugins.add("paste-code",p)},203(e,t,a){"use strict";function s(e,t,a,s){var o,i=arguments.length,l=3>i?t:null===s?s=Object.getOwnPropertyDescriptor(t,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,a,s);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(l=(3>i?o(l):i>3?o(t,a,l):o(t,a))||l);return i>3&&l&&Object.defineProperty(t,a,l),l}a.d(t,{gn:()=>s})},243(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'}},e=>e(e.s=242)])}));
@@ -1 +1 @@
1
- "use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[92],{828:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.clearAttributes=void 0;var n=r(1),i=["cellspacing","cellpadding","border","v:shapes","o:spid"];t.clearAttributes=function(e){var t,r;if(/^OLE_LINK\d+$/.test(e.attributes.name)&&(e.attributes.name=null,0===e.length))return e.remove(),null;"_GoBack"===e.attributes.name&&(e.attributes.name=null);try{for(var o=n.__values(i),a=o.next();!a.done;a=o.next()){var l=a.value;e.attributes[l]&&(e.attributes[l]=null)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return e}},833:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.clearClassName=void 0;var n=r(204);t.clearClassName=function(e){return e.attributes.class&&(e.attributes.class=e.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),(0,n.trim)(e.attributes.class)||(e.attributes.class=null)),e}},832:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.convertStyleUnitToPixels=void 0;var n=r(816);t.convertStyleUnitToPixels=function(e,t){if(!t.jodit.o.pasteFromWord.convertUnitsToPixel)return e;var r=e.style;return r.forEach((function(e){var t=r.get(e);t&&r.set(e,t.toString().replace(/\d+(\.\d+)?(pt|cm)/g,(function(e){return(0,n.convertUnitToPx)(e)+"px"})))})),e}},821:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.convertToList=void 0;var n=r(816),i=r(822),o=r(121),a=r(825);t.convertToList=function(e){var t;if((0,i.isPseudoLeaf)(e)){e.name="li",e.style.set("text-indent",null);var r=l(e),o=/[\da-np-zA-NP-Z].?/.test(r)?"ol":"ul",u=function(e){for(var t in a.listStyleMap)if(RegExp(t).test(e))return a.listStyleMap[t];return null}(r);e.attributes[a.TYPE_KEY]=o,e.attributes[a.STYLE_KEY]=u,(0,n.calcListLevels)(e),function(e){for(;e;){var t=e.previousElement;if(!(0,i.isLeaf)(t)&&!(0,i.isList)(t))break;if((0,i.isLeaf)(t)){if(t.attributes[a.LEVEL_KEY]>e.attributes[a.LEVEL_KEY])break;if(e.attributes[a.LEVEL_KEY]===t.attributes[a.LEVEL_KEY]&&e.parent&&(0,i.isSameType)(e,e.parent))break;t.append(e)}else{var r=t;if(r.attributes[a.LEVEL_KEY]>e.attributes[a.LEVEL_KEY])break;if(e.attributes[a.LEVEL_KEY]===r.attributes[a.LEVEL_KEY]&&!(0,i.isSameType)(e,r))break;r.append(e)}}}(e);var s=e.parent;if(!(0,i.isList)(s)||!(0,i.isSameType)(e,s)){var c=function(e,t,r,o){var l=e.wrap(t);return l.attributes.start=(0,n.calcStartBySymbol)(r),l.attributes[a.LEVEL_KEY]=e.attributes[a.LEVEL_KEY],l.attributes[a.STYLE_KEY]=e.attributes[a.STYLE_KEY],l.style.set(a.STYLE_CSS_KEY,o),function(e){var t;!(0,i.isList)(e)||"li"===(null===(t=e.parent)||void 0===t?void 0:t.name)||"disc"!==e.style.get(a.STYLE_CSS_KEY)&&"decimal"!==e.style.get(a.STYLE_CSS_KEY)||e.style.set(a.STYLE_CSS_KEY,null)}(l),l}(e,o,r,u);return(0,i.isList)(s)&&(c.remove(),null===(t=s.lastElement)||void 0===t||t.append(c)),e}}return e};var l=function(e){return e.textBetween((function(e){return e.isComment&&/\[if.*supportLists.*]/.test((0,i.html)(e))}),(function(e){return e.isComment&&/\[endif]/.test((0,i.html)(e))})).replace(/&nbsp;/g,"").replace((0,o.SPACE_REG_EXP)(),"")}},820:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.cases=void 0;var n=r(821),i=r(828),o=r(829),a=r(830),l=r(831),u=r(832),s=r(833),c=r(834),f=r(835),d=r(836),p=r(837);t.cases=[p.markPageBreakElements,o.removeExtraTags,a.replaceOldTags,i.clearAttributes,n.convertToList,c.processLinks,l.removeInsideComment,u.convertStyleUnitToPixels,s.clearClassName,f.normalizeImageProps,d.removeWidthFromTableCell]},837:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.markPageBreakElements=void 0,t.markPageBreakElements=function(e){return(e.isElement&&"always"===e.style.get("page-break-before")||"page"===e.style.get("break-before"))&&(e.attributes["jd-safe"]=!0,e.style.add("page-break-before","always"),e.isSingle&&(e.name="div")),e}},835:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeImageProps=void 0,t.normalizeImageProps=function(e){return e.isElement?("img"===e.name&&(e.attributes.align&&(e.style.add("float",e.attributes.align),e.attributes.align=null),e.attributes.hspace&&(e.style.add("marginLeft",e.attributes.hspace+"px"),e.style.add("marginRight",e.attributes.hspace+"px"),e.attributes.hspace=null)),e):e}},834:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.processLinks=void 0,t.processLinks=function(e,t){var r,n=null!==(r=t.links)&&void 0!==r?r:{};if(e.attributes.href&&e.attributes.href.match(/#.+$/)&&(n[e.attributes.href.match(/#(.+)$/)[1]]=e),e.attributes.name&&n[e.attributes.name]){var i=n[e.attributes.name];i.attributes.href=i.attributes.href.replace(/.*#(.*)$/,"#$1")}return t.links=n,e}},829:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.removeExtraTags=void 0;var r=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);t.removeExtraTags=function(e){return"none"===e.style.get("display")||0===e.length&&"span"===e.name||r.has(e.name)?(e.remove(),null):e}},831:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.removeInsideComment=void 0;var n=r(822),i=0;t.removeInsideComment=function(e){return e.isComment&&/\[if.*(supportLists|gte vml).*]/.test((0,n.html)(e))&&(i++,e.remove()),e.isComment&&i>0&&(0,n.html)(e).includes("[endif]")&&(i=i>0?i-1:0,e.remove()),e.isText&&i?(e.remove(),null):e}},830:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.replaceOldTags=void 0;var r={i:"em",b:"strong"};t.replaceOldTags=function(e){var t=e.name;return t in r&&(e.name=r[t]),e}},836:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.removeWidthFromTableCell=void 0,t.removeWidthFromTableCell=function(e){return!e.attributes.width||"th"!==e.name&&"td"!==e.name||(e.attributes.width=null),e}},839:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),r(120).Config.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1}},825:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.listStyleMap=t.STYLE_CSS_KEY=t.STYLE_KEY=t.TYPE_KEY=t.LEVEL_KEY=void 0,t.LEVEL_KEY="jd-list-level",t.TYPE_KEY="jd-list-type",t.STYLE_KEY="jd-list-style-type",t.STYLE_CSS_KEY="list-style-type",t.listStyleMap={"·":"disc",o:"circle","§":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"}},823:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.isSameType=t.isPseudoLeaf=t.isLeaf=t.isList=void 0;var n=r(824),i=r(825);t.isList=function(e){return Boolean(e&&("ol"===e.name||"ul"===e.name))},t.isLeaf=function(e){return Boolean(e&&"li"===e.name)},t.isPseudoLeaf=function(e){return/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(e.attributes.style)||/msolistparagraph/i.test(e.attributes.class)&&Boolean(e.find((function(e){return e.isComment&&(0,n.html)(e).includes("supportLists")})).length)},t.isSameType=function(e,t){return!(t.name!==e.attributes[i.TYPE_KEY]||t.attributes[i.STYLE_KEY]!==e.attributes[i.STYLE_KEY]||e.attributes[i.LEVEL_KEY]!==t.attributes[i.LEVEL_KEY])}},826:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.JElement=void 0;var n=r(1),i=r(145),o=r(121),a=r(131),l=r(824),u=r(827),s=new Set(o.INSEPARABLE_TAGS),c=function(){function e(t,r){var n=this;this.parent=r,this.name=t.nodeName.toLowerCase(),this.type=t.nodeType,this.attributes=function(e){var t={};if(i.Dom.isElement(e))for(var r=0,n=e.attributes;n.length>r;r+=1)t[n[r].name]=n[r].value;else t.nodeValue=e.nodeValue;return t}(t),this.style=new u.Style(this.attributes.style),this.children=[],t.childNodes.forEach((function(t){return n.children.push(e.make(t,n))}))}return Object.defineProperty(e.prototype,"isText",{get:function(){return this.type===Node.TEXT_NODE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return(0,l.html)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isElement",{get:function(){return this.type===Node.ELEMENT_NODE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isComment",{get:function(){return this.type===Node.COMMENT_NODE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSingle",{get:function(){return s.has(this.name)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.children.length},enumerable:!1,configurable:!0}),e.make=function(t,r){return void 0===r&&(r=null),new e(t,r)},e.prototype.wrap=function(t){var r;(0,a.assert)(null!=this.parent,"You can't wrap the root element");var n=e.make(document.createElement(t),this.parent),i=null!==(r=this.parent.children.indexOf(this))&&void 0!==r?r:-1;return-1===i?this.parent.append(n):this.parent.children[i]=n,n.append(this),n},e.prototype.append=function(e){return(0,a.assert)(e!==this,"Forbidden to add to yourself"),e.remove(),this.children.push(e),e.parent=this,this},Object.defineProperty(e.prototype,"previousElement",{get:function(){if(!this.parent)return null;var e=this.parent.children,t=e.indexOf(this);if(-1!==t)for(var r=t-1;r>=0;r-=1)if(e[r].isElement)return e[r];return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElement",{get:function(){for(var e=this.children,t=e.length-1;t>=0;t-=1)if(e[t].isElement)return e[t];return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previous",{get:function(){var e,t,r;return null!==(r=null!==(e=this.sibling(!1))&&void 0!==e?e:null===(t=this.parent)||void 0===t?void 0:t.previous)&&void 0!==r?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"next",{get:function(){var e,t,r;return null!==(r=null!==(e=this.sibling(!0))&&void 0!==e?e:null===(t=this.parent)||void 0===t?void 0:t.next)&&void 0!==r?r:null},enumerable:!1,configurable:!0}),e.prototype.sibling=function(e){if(!this.parent)return null;var t=this.parent.children,r=t.indexOf(this);return-1!==r&&t[r+(e?1:-1)]?t[r+(e?1:-1)]:null},e.prototype.forEach=function(e,t){var r,i;void 0===t&&(t=!1);var o=n.__spreadArray([],n.__read(this.children),!1);try{for(var a=n.__values(o),l=a.next();!l.done;l=a.next()){var u=l.value;if(!1===e(u))return!1;if(t&&!1===u.forEach(e,!0))return!1}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},e.prototype.find=function(e,t){void 0===t&&(t=!0);var r=[];return this.forEach((function(t){e(t)&&r.push(t)}),t),r},e.prototype.map=function(e){return this.children.map(e)},e.prototype.remove=function(){var e,t,r=null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this);return null!=r&&-1!==r&&(null===(t=this.parent)||void 0===t||t.children.splice(r,1)),this},e.prototype.textBetween=function(e,t){var r=!1,n=[];return this.forEach((function(i){if(!r&&e(i)&&(r=!0),r&&i.isText&&n.push((0,l.html)(i)),r&&t(i))return!1}),!0),n.join("")},e}();t.JElement=c},822:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);n.__exportStar(r(823),t),n.__exportStar(r(826),t),n.__exportStar(r(824),t)},824:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.innerHTML=t.html=void 0;var n=r(131);function i(e,t,r){switch(void 0===t&&(t=function(){return!0}),void 0===r&&(r=!0),!0){case e.isComment:case e.isText:if(!t(e))return"";var n=e.attributes.nodeValue;return e.isComment?"\x3c!--".concat(n,"--\x3e"):n;case e.isElement:var i=e.attributes,l=o(e,t,r);if(!e.attributes["jd-safe"]&&r&&0===l.length&&!e.isSingle)return"";var u=Object.keys(i).map((function(e){return"style"===e||null==i[e]||/^jd-/.test(e)?"":"".concat(e,'="').concat(a(i[e]),'"')})).filter(Boolean),s=e.style.str;if(s&&u.push('style="'.concat(a(s),'"')),r&&0===u.length&&["span","a"].includes(e.name))return l;var c=u.length?" "+u.join(" "):"";return t(e)?e.isSingle?"<".concat(e.name).concat(c,"/>"):"<".concat(e.name).concat(c,">").concat(l,"</").concat(e.name,">"):l}return""}function o(e,t,r){void 0===t&&(t=function(){return!0}),void 0===r&&(r=!0);var o=e.map((function(e){return i(e,t,r)})).join("");return"p"===e.name&&0===(0,n.trim)(o).length&&(o="&nbsp;"),o}function a(e){return e.toString().replace(/"/g,"&quot;")}t.html=i,t.innerHTML=o},827:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Style=void 0;var n=r(1),i=r(131),o=function(){function e(e){this._data=a(e)}return Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this._data)},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){this.keys.forEach((function(t){return e(t)}))},e.prototype.clear=function(){this._data={}},e.prototype.set=function(e,t){this._data[e]=t},e.prototype.get=function(e){var t;return null!==(t=this._data[e])&&void 0!==t?t:null},e.prototype.add=function(e,t){return this._data=a(this.str+";"+"".concat(e,":").concat(t)),this},Object.defineProperty(e.prototype,"str",{get:function(){var e=this,t=Object.keys(this._data).filter((function(t){return t&&!/^mso-/.test(t)&&null!=e.get(t)}));return t.length?t.map((function(t){return"".concat((0,i.kebabCase)(t),":").concat(e.get(t))})).join(";"):""},enumerable:!1,configurable:!0}),e}();function a(e){return function(e){for(var t={},r=[],n=e.length-1;n>=0;n-=1){var i=e[n][0];t[i]||(t[i]=!0,r.unshift(e[n]))}return r}((null!=e?e:"").replace(/&quot;/g,'"').split(";").filter(Boolean).map((function(e){return(0,i.trim)(e).split(":").map(i.trim)}))).reduce((function(e,t){var r=n.__read(t,2),i=r[0],o=r[1];return i&&o&&(e[i]=o),e}),{})}t.Style=o},818:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.applyStylesPro=void 0;var n=r(131),i=r(145),o=r(819),a=r(822);t.applyStylesPro=function(e,t,r){var l,u,s=document.createElement("iframe");s.style.display="none",document.body.appendChild(s);try{var c=null!==(l=s.contentDocument)&&void 0!==l?l:null===(u=s.contentWindow)||void 0===u?void 0:u.document;if(!c)return t;c.open(),c.write(t),c.close();for(var f="jd-style",d=function(e){try{for(var t=c.styleSheets[e].cssRules,r=function(e){if(!t[e].selectorText)return"continue";(0,n.$$)(t[e].selectorText,c.body).forEach((function(r){(0,n.attr)(r,f)||((0,n.attr)(r,f,(0,n.attr)(r,"style")||""),(0,n.attr)(r,"style","")),(0,n.attr)(r,"style","".concat((0,n.attr)(r,"style"),";").concat(t[e].style.cssText))}))},i=0;t.length>i;i+=1)r(i)}catch(e){}},p=0;c.styleSheets.length>p;p+=1)d(p);return(0,n.$$)("[".concat(f,"]"),c.body).forEach((function(e){(0,n.attr)(e,"style","".concat((0,n.attr)(e,"style"),";").concat((0,n.attr)(e,f)))})),(0,o.transformWordToHtml)(e,a.JElement.make(c.body),r)}finally{i.Dom.safeRemove(s)}return t}},838:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.calcListLevels=void 0;var n=r(1),i=r(822),o=r(825),a=r(817);t.calcListLevels=function(e){if(void 0===e.attributes[o.LEVEL_KEY]){for(var t=[(0,a.realPixelIndent)(e)],r=[e],l=e.next;l;){if(l.isElement&&!l.attributes[o.LEVEL_KEY]&&(0,i.isPseudoLeaf)(l)){var u=(0,a.realPixelIndent)(l);u&&(t.push(u),r.push(l))}l=l.next}var s=Math.min.apply(Math,n.__spreadArray([],n.__read(t.filter((function(e){return e>0}))),!1)),c=t.map((function(e){return Math.ceil(e/10)}));-1!==c.indexOf(0)&&(c=c.map((function(e){return e+1}))),r.forEach((function(e,t){e.attributes[o.LEVEL_KEY]=c[t],e.style.add("margin-left","".concat(Math.max((0,a.realPixelIndent)(e)-10*c[t]/s*40,0),"px"))}))}}},817:function(e,t){function r(e){if(!e)return[0,0,0,0];var t=e.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(t.length){case 2:return[0,1,0,1].map((function(e){return t[e]}));case 3:return[0,1,2,1].map((function(e){return t[e]}));case 4:return[0,1,2,3].map((function(e){return t[e]}));default:return[0,0,0,0].map((function(e){return t[e]}))}}var n;function i(e){if("number"==typeof e)return e;if(/%$/.test(e))return 0;n||(n=document.createElement("div"),Object.assign(n.style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(n),setTimeout((function(){null==n||n.remove(),n=null})));var t=0>parseFloat(e);t&&(e=e.replace("-","")),n.style.width=e;var r=n.clientWidth;return t?-r:r}Object.defineProperty(t,"__esModule",{value:!0}),t.calcStartBySymbol=t.realPixelIndent=t.convertUnitToPx=t.calcMarginParts=void 0,t.calcMarginParts=r,t.convertUnitToPx=i,t.realPixelIndent=function(e){var t=e.style,n=t.keys.filter((function(e){return/margin/.test(e)})),o=Math.max(n.indexOf("margin-left"),n.indexOf("margin")),a=o>0?n[o]:"margin-left";return i("margin"===a?r(t.get("margin"))[3]||0:t.get(a)||0)},t.calcStartBySymbol=function(e){return/\d.\d/.test(e)?e.split(".").pop()||null:/^\d/.test(e)?(parseInt(e,10)||1).toString():null}},816:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);n.__exportStar(r(817),t),n.__exportStar(r(818),t),n.__exportStar(r(819),t),n.__exportStar(r(838),t)},819:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.transformWordToHtml=void 0;var n=r(1),i=r(820),o=r(204),a=r(822);t.transformWordToHtml=function(e,t,r){var l={jodit:e};return t.forEach((function e(t){var r,o;if(t){try{for(var a=n.__values(i.cases),u=a.next();!u.done&&null!=(t=(0,u.value)(t,l));u=a.next());}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}null==t||t.forEach(e)}})),r&&t.forEach((function(e){e.style.clear()}),!0),(0,o.trim)((0,a.innerHTML)(t,(function(e){return!e.isComment})))}},815:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.PasteFromWordPro=void 0;var n=r(1),i=r(2),o=r(424),a=r(121),l=r(126),u=r(421),s=r(816);r(839);var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.insertFromWordByType=function(t,r,n){var i;if(!this.j.o.pasteFromWord.enable||n!==a.INSERT_AS_HTML&&n!==a.INSERT_AS_TEXT)return e.prototype.insertFromWordByType.call(this,t,r,n);if(r=(0,s.applyStylesPro)(this.j,r,n===a.INSERT_AS_TEXT),this.j.o.beautifyHTML){var o=null===(i=this.j.events)||void 0===i?void 0:i.fire("beautifyHTML",r);(0,l.isString)(o)&&(r=o)}(0,u.pasteInsertHtml)(t,this.j,r)},t}(o.PasteFromWord);t.PasteFromWordPro=c,i.Jodit.plugins.remove("pasteFromWord"),i.Jodit.plugins.add("pasteFromWordPro",c)}},function(e){return e(e.s=815)}])}));
1
+ "use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[92],{847:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.clearAttributes=void 0;var n=r(1),i=["cellspacing","cellpadding","border","v:shapes","o:spid"];t.clearAttributes=function(e){var t,r;if(/^OLE_LINK\d+$/.test(e.attributes.name)&&(e.attributes.name=null,0===e.length))return e.remove(),null;"_GoBack"===e.attributes.name&&(e.attributes.name=null);try{for(var o=n.__values(i),a=o.next();!a.done;a=o.next()){var l=a.value;e.attributes[l]&&(e.attributes[l]=null)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return e}},852:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.clearClassName=void 0;var n=r(212);t.clearClassName=function(e){return e.attributes.class&&(e.attributes.class=e.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),(0,n.trim)(e.attributes.class)||(e.attributes.class=null)),e}},851:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.convertStyleUnitToPixels=void 0;var n=r(835);t.convertStyleUnitToPixels=function(e,t){if(!t.jodit.o.pasteFromWord.convertUnitsToPixel)return e;var r=e.style;return r.forEach((function(e){var t=r.get(e);t&&r.set(e,t.toString().replace(/\d+(\.\d+)?(pt|cm)/g,(function(e){return(0,n.convertUnitToPx)(e)+"px"})))})),e}},840:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.convertToList=void 0;var n=r(835),i=r(841),o=r(125),a=r(844);t.convertToList=function(e){var t;if((0,i.isPseudoLeaf)(e)){e.name="li",e.style.set("text-indent",null);var r=l(e),o=/[\da-np-zA-NP-Z].?/.test(r)?"ol":"ul",u=function(e){for(var t in a.listStyleMap)if(RegExp(t).test(e))return a.listStyleMap[t];return null}(r);e.attributes[a.TYPE_KEY]=o,e.attributes[a.STYLE_KEY]=u,(0,n.calcListLevels)(e),function(e){for(;e;){var t=e.previousElement;if(!(0,i.isLeaf)(t)&&!(0,i.isList)(t))break;if((0,i.isLeaf)(t)){if(t.attributes[a.LEVEL_KEY]>e.attributes[a.LEVEL_KEY])break;if(e.attributes[a.LEVEL_KEY]===t.attributes[a.LEVEL_KEY]&&e.parent&&(0,i.isSameType)(e,e.parent))break;t.append(e)}else{var r=t;if(r.attributes[a.LEVEL_KEY]>e.attributes[a.LEVEL_KEY])break;if(e.attributes[a.LEVEL_KEY]===r.attributes[a.LEVEL_KEY]&&!(0,i.isSameType)(e,r))break;r.append(e)}}}(e);var s=e.parent;if(!(0,i.isList)(s)||!(0,i.isSameType)(e,s)){var c=function(e,t,r,o){var l=e.wrap(t);return l.attributes.start=(0,n.calcStartBySymbol)(r),l.attributes[a.LEVEL_KEY]=e.attributes[a.LEVEL_KEY],l.attributes[a.STYLE_KEY]=e.attributes[a.STYLE_KEY],l.style.set(a.STYLE_CSS_KEY,o),function(e){var t;!(0,i.isList)(e)||"li"===(null===(t=e.parent)||void 0===t?void 0:t.name)||"disc"!==e.style.get(a.STYLE_CSS_KEY)&&"decimal"!==e.style.get(a.STYLE_CSS_KEY)||e.style.set(a.STYLE_CSS_KEY,null)}(l),l}(e,o,r,u);return(0,i.isList)(s)&&(c.remove(),null===(t=s.lastElement)||void 0===t||t.append(c)),e}}return e};var l=function(e){return e.textBetween((function(e){return e.isComment&&/\[if.*supportLists.*]/.test((0,i.html)(e))}),(function(e){return e.isComment&&/\[endif]/.test((0,i.html)(e))})).replace(/&nbsp;/g,"").replace((0,o.SPACE_REG_EXP)(),"")}},839:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.cases=void 0;var n=r(840),i=r(847),o=r(848),a=r(849),l=r(850),u=r(851),s=r(852),c=r(853),f=r(854),d=r(855),p=r(856);t.cases=[p.markPageBreakElements,o.removeExtraTags,a.replaceOldTags,i.clearAttributes,n.convertToList,c.processLinks,l.removeInsideComment,u.convertStyleUnitToPixels,s.clearClassName,f.normalizeImageProps,d.removeWidthFromTableCell]},856:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.markPageBreakElements=void 0,t.markPageBreakElements=function(e){return(e.isElement&&"always"===e.style.get("page-break-before")||"page"===e.style.get("break-before"))&&(e.attributes["jd-safe"]=!0,e.style.add("page-break-before","always"),e.isSingle&&(e.name="div")),e}},854:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeImageProps=void 0,t.normalizeImageProps=function(e){return e.isElement?("img"===e.name&&(e.attributes.align&&(e.style.add("float",e.attributes.align),e.attributes.align=null),e.attributes.hspace&&(e.style.add("marginLeft",e.attributes.hspace+"px"),e.style.add("marginRight",e.attributes.hspace+"px"),e.attributes.hspace=null)),e):e}},853:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.processLinks=void 0,t.processLinks=function(e,t){var r,n=null!==(r=t.links)&&void 0!==r?r:{};if(e.attributes.href&&e.attributes.href.match(/#.+$/)&&(n[e.attributes.href.match(/#(.+)$/)[1]]=e),e.attributes.name&&n[e.attributes.name]){var i=n[e.attributes.name];i.attributes.href=i.attributes.href.replace(/.*#(.*)$/,"#$1")}return t.links=n,e}},848:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.removeExtraTags=void 0;var r=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);t.removeExtraTags=function(e){return"none"===e.style.get("display")||0===e.length&&"span"===e.name||r.has(e.name)?(e.remove(),null):e}},850:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.removeInsideComment=void 0;var n=r(841),i=0;t.removeInsideComment=function(e){return e.isComment&&/\[if.*(supportLists|gte vml).*]/.test((0,n.html)(e))&&(i++,e.remove()),e.isComment&&i>0&&(0,n.html)(e).includes("[endif]")&&(i=i>0?i-1:0,e.remove()),e.isText&&i?(e.remove(),null):e}},849:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.replaceOldTags=void 0;var r={i:"em",b:"strong"};t.replaceOldTags=function(e){var t=e.name;return t in r&&(e.name=r[t]),e}},855:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.removeWidthFromTableCell=void 0,t.removeWidthFromTableCell=function(e){return!e.attributes.width||"th"!==e.name&&"td"!==e.name||(e.attributes.width=null),e}},858:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),r(124).Config.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1}},844:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.listStyleMap=t.STYLE_CSS_KEY=t.STYLE_KEY=t.TYPE_KEY=t.LEVEL_KEY=void 0,t.LEVEL_KEY="jd-list-level",t.TYPE_KEY="jd-list-type",t.STYLE_KEY="jd-list-style-type",t.STYLE_CSS_KEY="list-style-type",t.listStyleMap={"·":"disc",o:"circle","§":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"}},842:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.isSameType=t.isPseudoLeaf=t.isLeaf=t.isList=void 0;var n=r(843),i=r(844);t.isList=function(e){return Boolean(e&&("ol"===e.name||"ul"===e.name))},t.isLeaf=function(e){return Boolean(e&&"li"===e.name)},t.isPseudoLeaf=function(e){return/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(e.attributes.style)||/msolistparagraph/i.test(e.attributes.class)&&Boolean(e.find((function(e){return e.isComment&&(0,n.html)(e).includes("supportLists")})).length)},t.isSameType=function(e,t){return!(t.name!==e.attributes[i.TYPE_KEY]||t.attributes[i.STYLE_KEY]!==e.attributes[i.STYLE_KEY]||e.attributes[i.LEVEL_KEY]!==t.attributes[i.LEVEL_KEY])}},845:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.JElement=void 0;var n=r(1),i=r(150),o=r(125),a=r(136),l=r(843),u=r(846),s=new Set(o.INSEPARABLE_TAGS),c=function(){function e(t,r){var n=this;this.parent=r,this.name=t.nodeName.toLowerCase(),this.type=t.nodeType,this.attributes=function(e){var t={};if(i.Dom.isElement(e))for(var r=0,n=e.attributes;n.length>r;r+=1)t[n[r].name]=n[r].value;else t.nodeValue=e.nodeValue;return t}(t),this.style=new u.Style(this.attributes.style),this.children=[],t.childNodes.forEach((function(t){return n.children.push(e.make(t,n))}))}return Object.defineProperty(e.prototype,"isText",{get:function(){return this.type===Node.TEXT_NODE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return(0,l.html)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isElement",{get:function(){return this.type===Node.ELEMENT_NODE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isComment",{get:function(){return this.type===Node.COMMENT_NODE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSingle",{get:function(){return s.has(this.name)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.children.length},enumerable:!1,configurable:!0}),e.make=function(t,r){return void 0===r&&(r=null),new e(t,r)},e.prototype.wrap=function(t){var r;(0,a.assert)(null!=this.parent,"You can't wrap the root element");var n=e.make(document.createElement(t),this.parent),i=null!==(r=this.parent.children.indexOf(this))&&void 0!==r?r:-1;return-1===i?this.parent.append(n):this.parent.children[i]=n,n.append(this),n},e.prototype.append=function(e){return(0,a.assert)(e!==this,"Forbidden to add to yourself"),e.remove(),this.children.push(e),e.parent=this,this},Object.defineProperty(e.prototype,"previousElement",{get:function(){if(!this.parent)return null;var e=this.parent.children,t=e.indexOf(this);if(-1!==t)for(var r=t-1;r>=0;r-=1)if(e[r].isElement)return e[r];return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElement",{get:function(){for(var e=this.children,t=e.length-1;t>=0;t-=1)if(e[t].isElement)return e[t];return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previous",{get:function(){var e,t,r;return null!==(r=null!==(e=this.sibling(!1))&&void 0!==e?e:null===(t=this.parent)||void 0===t?void 0:t.previous)&&void 0!==r?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"next",{get:function(){var e,t,r;return null!==(r=null!==(e=this.sibling(!0))&&void 0!==e?e:null===(t=this.parent)||void 0===t?void 0:t.next)&&void 0!==r?r:null},enumerable:!1,configurable:!0}),e.prototype.sibling=function(e){if(!this.parent)return null;var t=this.parent.children,r=t.indexOf(this);return-1!==r&&t[r+(e?1:-1)]?t[r+(e?1:-1)]:null},e.prototype.forEach=function(e,t){var r,i;void 0===t&&(t=!1);var o=n.__spreadArray([],n.__read(this.children),!1);try{for(var a=n.__values(o),l=a.next();!l.done;l=a.next()){var u=l.value;if(!1===e(u))return!1;if(t&&!1===u.forEach(e,!0))return!1}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},e.prototype.find=function(e,t){void 0===t&&(t=!0);var r=[];return this.forEach((function(t){e(t)&&r.push(t)}),t),r},e.prototype.map=function(e){return this.children.map(e)},e.prototype.remove=function(){var e,t,r=null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this);return null!=r&&-1!==r&&(null===(t=this.parent)||void 0===t||t.children.splice(r,1)),this},e.prototype.textBetween=function(e,t){var r=!1,n=[];return this.forEach((function(i){if(!r&&e(i)&&(r=!0),r&&i.isText&&n.push((0,l.html)(i)),r&&t(i))return!1}),!0),n.join("")},e}();t.JElement=c},841:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);n.__exportStar(r(842),t),n.__exportStar(r(845),t),n.__exportStar(r(843),t)},843:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.innerHTML=t.html=void 0;var n=r(136);function i(e,t,r){switch(void 0===t&&(t=function(){return!0}),void 0===r&&(r=!0),!0){case e.isComment:case e.isText:if(!t(e))return"";var n=e.attributes.nodeValue;return e.isComment?"\x3c!--".concat(n,"--\x3e"):n;case e.isElement:var i=e.attributes,l=o(e,t,r);if(!e.attributes["jd-safe"]&&r&&0===l.replace(/[\n\t]/g,"").length&&!e.isSingle)return"";var u=Object.keys(i).map((function(e){return"style"===e||null==i[e]||/^jd-/.test(e)?"":"".concat(e,'="').concat(a(i[e]),'"')})).filter(Boolean),s=e.style.str;if(s&&u.push('style="'.concat(a(s),'"')),r&&0===u.length&&["span","a"].includes(e.name))return l;var c=u.length?" "+u.join(" "):"";return t(e)?e.isSingle?"<".concat(e.name).concat(c,"/>"):"<".concat(e.name).concat(c,">").concat(l,"</").concat(e.name,">"):l}return""}function o(e,t,r){void 0===t&&(t=function(){return!0}),void 0===r&&(r=!0);var o=e.map((function(e){return i(e,t,r)})).join("");return"p"===e.name&&0===(0,n.trim)(o).length&&(o="&nbsp;"),o}function a(e){return e.toString().replace(/"/g,"&quot;")}t.html=i,t.innerHTML=o},846:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Style=void 0;var n=r(1),i=r(136),o=function(){function e(e){this._data=a(e)}return Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this._data)},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){this.keys.forEach((function(t){return e(t)}))},e.prototype.clear=function(){this._data={}},e.prototype.set=function(e,t){this._data[e]=t},e.prototype.get=function(e){var t;return null!==(t=this._data[e])&&void 0!==t?t:null},e.prototype.add=function(e,t){return this._data=a(this.str+";"+"".concat(e,":").concat(t)),this},Object.defineProperty(e.prototype,"str",{get:function(){var e=this,t=Object.keys(this._data).filter((function(t){return t&&!/^mso-/.test(t)&&null!=e.get(t)}));return t.length?t.map((function(t){return"".concat((0,i.kebabCase)(t),":").concat(e.get(t))})).join(";"):""},enumerable:!1,configurable:!0}),e}();function a(e){return function(e){for(var t={},r=[],n=e.length-1;n>=0;n-=1){var i=e[n][0];t[i]||(t[i]=!0,r.unshift(e[n]))}return r}((null!=e?e:"").replace(/&quot;/g,'"').split(";").filter(Boolean).map((function(e){return(0,i.trim)(e).split(":").map(i.trim)}))).reduce((function(e,t){var r=n.__read(t,2),i=r[0],o=r[1];return i&&o&&(e[i]=o),e}),{})}t.Style=o},837:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.applyStylesPro=void 0;var n=r(136),i=r(150),o=r(838),a=r(841);t.applyStylesPro=function(e,t,r){var l,u,s=document.createElement("iframe");s.style.display="none",document.body.appendChild(s);try{var c=null!==(l=s.contentDocument)&&void 0!==l?l:null===(u=s.contentWindow)||void 0===u?void 0:u.document;if(!c)return t;c.open(),c.write(t),c.close();for(var f="jd-style",d=function(e){try{for(var t=c.styleSheets[e].cssRules,r=function(e){if(!t[e].selectorText)return"continue";(0,n.$$)(t[e].selectorText,c.body).forEach((function(r){(0,n.attr)(r,f)||((0,n.attr)(r,f,(0,n.attr)(r,"style")||""),(0,n.attr)(r,"style","")),(0,n.attr)(r,"style","".concat((0,n.attr)(r,"style"),";").concat(t[e].style.cssText))}))},i=0;t.length>i;i+=1)r(i)}catch(e){}},p=0;c.styleSheets.length>p;p+=1)d(p);return(0,n.$$)("[".concat(f,"]"),c.body).forEach((function(e){(0,n.attr)(e,"style","".concat((0,n.attr)(e,"style"),";").concat((0,n.attr)(e,f)))})),(0,o.transformWordToHtml)(e,a.JElement.make(c.body),r)}finally{i.Dom.safeRemove(s)}return t}},857:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.calcListLevels=void 0;var n=r(1),i=r(841),o=r(844),a=r(836);t.calcListLevels=function(e){if(void 0===e.attributes[o.LEVEL_KEY]){for(var t=[(0,a.realPixelIndent)(e)],r=[e],l=e.next;l;){if(l.isElement&&!l.attributes[o.LEVEL_KEY]&&(0,i.isPseudoLeaf)(l)){var u=(0,a.realPixelIndent)(l);u&&(t.push(u),r.push(l))}l=l.next}var s=Math.min.apply(Math,n.__spreadArray([],n.__read(t.filter((function(e){return e>0}))),!1)),c=t.map((function(e){return Math.ceil(e/10)}));-1!==c.indexOf(0)&&(c=c.map((function(e){return e+1}))),r.forEach((function(e,t){e.attributes[o.LEVEL_KEY]=c[t],e.style.add("margin-left","".concat(Math.max((0,a.realPixelIndent)(e)-10*c[t]/s*40,0),"px"))}))}}},836:function(e,t){function r(e){if(!e)return[0,0,0,0];var t=e.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(t.length){case 2:return[0,1,0,1].map((function(e){return t[e]}));case 3:return[0,1,2,1].map((function(e){return t[e]}));case 4:return[0,1,2,3].map((function(e){return t[e]}));default:return[0,0,0,0].map((function(e){return t[e]}))}}var n;function i(e){if("number"==typeof e)return e;if(/%$/.test(e))return 0;n||(n=document.createElement("div"),Object.assign(n.style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(n),setTimeout((function(){null==n||n.remove(),n=null})));var t=0>parseFloat(e);t&&(e=e.replace("-","")),n.style.width=e;var r=n.clientWidth;return t?-r:r}Object.defineProperty(t,"__esModule",{value:!0}),t.calcStartBySymbol=t.realPixelIndent=t.convertUnitToPx=t.calcMarginParts=void 0,t.calcMarginParts=r,t.convertUnitToPx=i,t.realPixelIndent=function(e){var t=e.style,n=t.keys.filter((function(e){return/margin/.test(e)})),o=Math.max(n.indexOf("margin-left"),n.indexOf("margin")),a=o>0?n[o]:"margin-left";return i("margin"===a?r(t.get("margin"))[3]||0:t.get(a)||0)},t.calcStartBySymbol=function(e){return/\d.\d/.test(e)?e.split(".").pop()||null:/^\d/.test(e)?(parseInt(e,10)||1).toString():null}},835:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);n.__exportStar(r(836),t),n.__exportStar(r(837),t),n.__exportStar(r(838),t),n.__exportStar(r(857),t)},838:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.transformWordToHtml=void 0;var n=r(1),i=r(839),o=r(212),a=r(841);t.transformWordToHtml=function(e,t,r){var l={jodit:e};return t.forEach((function e(t){var r,o;if(t){try{for(var a=n.__values(i.cases),u=a.next();!u.done&&null!=(t=(0,u.value)(t,l));u=a.next());}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}null==t||t.forEach(e)}})),r&&t.forEach((function(e){e.style.clear()}),!0),(0,o.trim)((0,a.innerHTML)(t,(function(e){return!e.isComment})))}},834:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.PasteFromWordPro=void 0;var n=r(1),i=r(2),o=r(434),a=r(125),l=r(130),u=r(431),s=r(835);r(858);var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.insertFromWordByType=function(t,r,n){var i;if(!this.j.o.pasteFromWord.enable||n!==a.INSERT_AS_HTML&&n!==a.INSERT_AS_TEXT)return e.prototype.insertFromWordByType.call(this,t,r,n);if(r=(0,s.applyStylesPro)(this.j,r,n===a.INSERT_AS_TEXT),this.j.o.beautifyHTML){var o=null===(i=this.j.events)||void 0===i?void 0:i.fire("beautifyHTML",r);(0,l.isString)(o)&&(r=o)}(0,u.pasteInsertHtml)(t,this.j,r)},t}(o.PasteFromWord);t.PasteFromWordPro=c,i.Jodit.plugins.remove("pasteFromWord"),i.Jodit.plugins.add("pasteFromWordPro",c)}},function(e){return e(e.s=834)}])}));
@@ -1 +1 @@
1
- "use strict";((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[92],{267(t,e,n){n.r(e),n.d(e,{PasteFromWordPro:()=>W});var r=n(1),s=n(98),i=n(3),a=n(7),l=n(97);let o;function u(t){if("number"==typeof t)return t;if(/%$/.test(t))return 0;o||(o=document.createElement("div"),Object.assign(o.style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(o),setTimeout((()=>{null==o||o.remove(),o=null})));const e=0>parseFloat(t);e&&(t=t.replace("-","")),o.style.width=t;const n=o.clientWidth;return e?-n:n}function c(t){const{style:e}=t;let n=[0,0,0,0];const r=e.keys.filter((t=>/margin/.test(t))),s=Math.max(r.indexOf("margin-left"),r.indexOf("margin")),i=s>0?r[s]:"margin-left";let a;return"margin"===i?(n=(t=>{if(!t)return[0,0,0,0];const e=t.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(e.length){case 2:return[0,1,0,1].map((t=>e[t]));case 3:return[0,1,2,1].map((t=>e[t]));case 4:return[0,1,2,3].map((t=>e[t]));default:return[0,0,0,0].map((t=>e[t]))}})(e.get("margin")),a=n[3]||0):a=e.get(i)||0,u(a)}var d=n(10),p=n(17);function h(t,e=(()=>!0),n=!0){switch(!0){case t.isComment:case t.isText:{if(!e(t))return"";const{nodeValue:n}=t.attributes;return t.isComment?`\x3c!--${n}--\x3e`:n}case t.isElement:{const{attributes:r}=t,s=m(t,e,n);if(!t.attributes["jd-safe"]&&n&&0===s.length&&!t.isSingle)return"";const i=Object.keys(r).map((t=>"style"===t||null==r[t]||/^jd-/.test(t)?"":`${t}="${f(r[t])}"`)).filter(Boolean),{str:a}=t.style;if(a&&i.push(`style="${f(a)}"`),n&&0===i.length&&["span","a"].includes(t.name))return s;const l=i.length?" "+i.join(" "):"";return e(t)?t.isSingle?`<${t.name}${l}/>`:`<${t.name}${l}>${s}</${t.name}>`:s}}return""}function m(t,e=(()=>!0),n=!0){let r=t.map((t=>h(t,e,n))).join("");return"p"===t.name&&0===(0,d.trim)(r).length&&(r="&nbsp;"),r}function f(t){return(""+t).replace(/"/g,"&quot;")}const b="jd-list-level",g="jd-list-type",y="jd-list-style-type",v="list-style-type",E={"·":"disc",o:"circle","§":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"};function x(t){return!(!t||"ol"!==t.name&&"ul"!==t.name)}function k(t){return!(!t||"li"!==t.name)}function $(t){return/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(t.attributes.style)||/msolistparagraph/i.test(t.attributes.class)&&!!t.find((t=>t.isComment&&h(t).includes("supportLists"))).length}function T(t,e){return!(e.name!==t.attributes[g]||e.attributes[y]!==t.attributes[y]||t.attributes[b]!==e.attributes[b])}class j{constructor(t){this._data=w(t)}get keys(){return Object.keys(this._data)}forEach(t){this.keys.forEach((e=>t(e)))}clear(){this._data={}}set(t,e){this._data[t]=e}get(t){var e;return null!==(e=this._data[t])&&void 0!==e?e:null}add(t,e){return this._data=w(this.str+";"+`${t}:${e}`),this}get str(){const t=Object.keys(this._data).filter((t=>t&&!/^mso-/.test(t)&&null!=this.get(t)));return t.length?t.map((t=>`${(0,d.kebabCase)(t)}:${this.get(t)}`)).join(";"):""}}function w(t){return(t=>{const e={},n=[];for(let r=t.length-1;r>=0;r-=1){const s=t[r][0];e[s]||(e[s]=!0,n.unshift(t[r]))}return n})((null!=t?t:"").replace(/&quot;/g,'"').split(";").filter(Boolean).map((t=>(0,d.trim)(t).split(":").map(d.trim)))).reduce(((t,[e,n])=>(e&&n&&(t[e]=n),t)),{})}const _=new Set(i.INSEPARABLE_TAGS);class S{constructor(t,e){this.parent=e,this.name=t.nodeName.toLowerCase(),this.type=t.nodeType,this.attributes=(t=>{const e={};if(p.i.isElement(t))for(let n=0,r=t.attributes;r.length>n;n+=1)e[r[n].name]=r[n].value;else e.nodeValue=t.nodeValue;return e})(t),this.style=new j(this.attributes.style),this.children=[],t.childNodes.forEach((t=>this.children.push(S.make(t,this))))}get isText(){return this.type===Node.TEXT_NODE}get html(){return h(this)}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return _.has(this.name)}get length(){return this.children.length}static make(t,e=null){return new S(t,e)}wrap(t){var e;(0,d.assert)(null!=this.parent,"You can't wrap the root element");const n=S.make(document.createElement(t),this.parent),r=null!==(e=this.parent.children.indexOf(this))&&void 0!==e?e:-1;return-1===r?this.parent.append(n):this.parent.children[r]=n,n.append(this),n}append(t){return(0,d.assert)(t!==this,"Forbidden to add to yourself"),t.remove(),this.children.push(t),t.parent=this,this}get previousElement(){if(!this.parent)return null;const{children:t}=this.parent,e=t.indexOf(this);if(-1!==e)for(let n=e-1;n>=0;n-=1)if(t[n].isElement)return t[n];return null}get lastElement(){const{children:t}=this;for(let e=t.length-1;e>=0;e-=1)if(t[e].isElement)return t[e];return null}get previous(){var t,e,n;return null!==(n=null!==(t=this.sibling(!1))&&void 0!==t?t:null===(e=this.parent)||void 0===e?void 0:e.previous)&&void 0!==n?n:null}get next(){var t,e,n;return null!==(n=null!==(t=this.sibling(!0))&&void 0!==t?t:null===(e=this.parent)||void 0===e?void 0:e.next)&&void 0!==n?n:null}sibling(t){if(!this.parent)return null;const{children:e}=this.parent,n=e.indexOf(this);return-1!==n&&e[n+(t?1:-1)]?e[n+(t?1:-1)]:null}forEach(t,e=!1){const n=[...this.children];for(const r of n){if(!1===t(r))return!1;if(e&&!1===r.forEach(t,!0))return!1}}find(t,e=!0){const n=[];return this.forEach((e=>{t(e)&&n.push(e)}),e),n}map(t){return this.children.map(t)}remove(){var t,e;const n=null===(t=this.parent)||void 0===t?void 0:t.children.indexOf(this);return null!=n&&-1!==n&&(null===(e=this.parent)||void 0===e||e.children.splice(n,1)),this}textBetween(t,e){let n=!1;const r=[];return this.forEach((s=>{if(!n&&t(s)&&(n=!0),n&&s.isText&&r.push(h(s)),n&&e(s))return!1}),!0),r.join("")}}const C=["cellspacing","cellpadding","border","v:shapes","o:spid"],N=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]),O={i:"em",b:"strong"};let L=0;var F=n(35);const M=[t=>((t.isElement&&"always"===t.style.get("page-break-before")||"page"===t.style.get("break-before"))&&(t.attributes["jd-safe"]=!0,t.style.add("page-break-before","always"),t.isSingle&&(t.name="div")),t),t=>"none"===t.style.get("display")||0===t.length&&"span"===t.name||N.has(t.name)?(t.remove(),null):t,t=>{const{name:e}=t;return e in O&&(t.name=O[e]),t},t=>{if(/^OLE_LINK\d+$/.test(t.attributes.name)&&(t.attributes.name=null,0===t.length))return t.remove(),null;"_GoBack"===t.attributes.name&&(t.attributes.name=null);for(const e of C)t.attributes[e]&&(t.attributes[e]=null);return t},t=>{var e;if($(t)){t.name="li",t.style.set("text-indent",null);const n=(t=>t.textBetween((t=>t.isComment&&/\[if.*supportLists.*]/.test(h(t))),(t=>t.isComment&&/\[endif]/.test(h(t)))).replace(/&nbsp;/g,"").replace((0,i.SPACE_REG_EXP)(),""))(t),r=/[\da-np-zA-NP-Z].?/.test(n)?"ol":"ul",s=(t=>{for(const e in E)if(RegExp(e).test(t))return E[e];return null})(n);t.attributes[g]=r,t.attributes[y]=s,(t=>{if(void 0!==t.attributes[b])return;const e=[c(t)],n=[t];let r=t.next;for(;r;){if(r.isElement&&!r.attributes[b]&&$(r)){const t=c(r);t&&(e.push(t),n.push(r))}r=r.next}const s=Math.min(...e.filter((t=>t>0)));let i=e.map((t=>Math.ceil(t/10)));-1!==i.indexOf(0)&&(i=i.map((t=>t+1))),n.forEach(((t,e)=>{t.attributes[b]=i[e],t.style.add("margin-left",Math.max(c(t)-10*i[e]/s*40,0)+"px")}))})(t),(t=>{for(;t;){const e=t.previousElement;if(!k(e)&&!x(e))break;if(k(e)){if(e.attributes[b]>t.attributes[b])break;if(t.attributes[b]===e.attributes[b]&&t.parent&&T(t,t.parent))break;e.append(t);continue}const n=e;if(n.attributes[b]>t.attributes[b])break;if(t.attributes[b]===n.attributes[b]&&!T(t,n))break;n.append(t)}})(t);const{parent:a}=t;if(!x(a)||!T(t,a)){const i=((t,e,n,r)=>{const s=t.wrap(e);return s.attributes.start=(t=>/\d.\d/.test(t)?t.split(".").pop()||null:/^\d/.test(t)?""+(parseInt(t,10)||1):null)(n),s.attributes[b]=t.attributes[b],s.attributes[y]=t.attributes[y],s.style.set(v,r),(t=>{var e;!x(t)||"li"===(null===(e=t.parent)||void 0===e?void 0:e.name)||"disc"!==t.style.get(v)&&"decimal"!==t.style.get(v)||t.style.set(v,null)})(s),s})(t,r,n,s);return x(a)&&(i.remove(),null===(e=a.lastElement)||void 0===e||e.append(i)),t}}return t},(t,e)=>{var n;const r=null!==(n=e.links)&&void 0!==n?n:{};if(t.attributes.href&&t.attributes.href.match(/#.+$/)&&(r[t.attributes.href.match(/#(.+)$/)[1]]=t),t.attributes.name&&r[t.attributes.name]){const e=r[t.attributes.name];e.attributes.href=e.attributes.href.replace(/.*#(.*)$/,"#$1")}return e.links=r,t},t=>(t.isComment&&/\[if.*(supportLists|gte vml).*]/.test(h(t))&&(L++,t.remove()),t.isComment&&L>0&&h(t).includes("[endif]")&&(L=L>0?L-1:0,t.remove()),t.isText&&L?(t.remove(),null):t),(t,{jodit:e})=>{if(!e.o.pasteFromWord.convertUnitsToPixel)return t;const{style:n}=t;return n.forEach((t=>{const e=n.get(t);e&&n.set(t,(""+e).replace(/\d+(\.\d+)?(pt|cm)/g,(t=>u(t)+"px")))})),t},t=>(t.attributes.class&&(t.attributes.class=t.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),(0,F.f)(t.attributes.class)||(t.attributes.class=null)),t),t=>t.isElement?("img"===t.name&&(t.attributes.align&&(t.style.add("float",t.attributes.align),t.attributes.align=null),t.attributes.hspace&&(t.style.add("marginLeft",t.attributes.hspace+"px"),t.style.add("marginRight",t.attributes.hspace+"px"),t.attributes.hspace=null)),t):t,t=>(!t.attributes.width||"th"!==t.name&&"td"!==t.name||(t.attributes.width=null),t)];n(2).D.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1};class W extends s.B{insertFromWordByType(t,e,n){var r;if(!this.j.o.pasteFromWord.enable||n!==i.INSERT_AS_HTML&&n!==i.INSERT_AS_TEXT)return super.insertFromWordByType(t,e,n);if(e=((t,e,n)=>{var r,s;const i=document.createElement("iframe");i.style.display="none",document.body.appendChild(i);try{const a=null!==(r=i.contentDocument)&&void 0!==r?r:null===(s=i.contentWindow)||void 0===s?void 0:s.document;if(!a)return e;a.open(),a.write(e),a.close();const l="jd-style";for(let t=0;a.styleSheets.length>t;t+=1)try{const e=a.styleSheets[t].cssRules;for(let t=0;e.length>t;t+=1)e[t].selectorText&&(0,d.$$)(e[t].selectorText,a.body).forEach((n=>{(0,d.attr)(n,l)||((0,d.attr)(n,l,(0,d.attr)(n,"style")||""),(0,d.attr)(n,"style","")),(0,d.attr)(n,"style",`${(0,d.attr)(n,"style")};${e[t].style.cssText}`)}))}catch(t){}return(0,d.$$)(`[${l}]`,a.body).forEach((t=>{(0,d.attr)(t,"style",`${(0,d.attr)(t,"style")};${(0,d.attr)(t,l)}`)})),((t,e,n)=>{const r={jodit:t};return e.forEach((function t(e){if(e){for(const t of M)if(null==(e=t(e,r)))break;null==e||e.forEach(t)}})),n&&e.forEach((t=>{t.style.clear()}),!0),(0,F.f)(m(e,(t=>!t.isComment)))})(t,S.make(a.body),n)}finally{p.i.safeRemove(i)}return e})(this.j,e,n===i.INSERT_AS_TEXT),this.j.o.beautifyHTML){const t=null===(r=this.j.events)||void 0===r?void 0:r.fire("beautifyHTML",e);(0,a.H)(t)&&(e=t)}(0,l.kU)(t,this.j,e)}}r.Jodit.plugins.remove("pasteFromWord"),r.Jodit.plugins.add("pasteFromWordPro",W)}},t=>t(t.s=267)])}));
1
+ "use strict";((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[92],{273(t,e,n){n.r(e),n.d(e,{PasteFromWordPro:()=>W});var r=n(1),s=n(103),i=n(3),a=n(7),l=n(102);let o;function u(t){if("number"==typeof t)return t;if(/%$/.test(t))return 0;o||(o=document.createElement("div"),Object.assign(o.style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(o),setTimeout((()=>{null==o||o.remove(),o=null})));const e=0>parseFloat(t);e&&(t=t.replace("-","")),o.style.width=t;const n=o.clientWidth;return e?-n:n}function c(t){const{style:e}=t;let n=[0,0,0,0];const r=e.keys.filter((t=>/margin/.test(t))),s=Math.max(r.indexOf("margin-left"),r.indexOf("margin")),i=s>0?r[s]:"margin-left";let a;return"margin"===i?(n=(t=>{if(!t)return[0,0,0,0];const e=t.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(e.length){case 2:return[0,1,0,1].map((t=>e[t]));case 3:return[0,1,2,1].map((t=>e[t]));case 4:return[0,1,2,3].map((t=>e[t]));default:return[0,0,0,0].map((t=>e[t]))}})(e.get("margin")),a=n[3]||0):a=e.get(i)||0,u(a)}var d=n(11),p=n(18);function h(t,e=(()=>!0),n=!0){switch(!0){case t.isComment:case t.isText:{if(!e(t))return"";const{nodeValue:n}=t.attributes;return t.isComment?`\x3c!--${n}--\x3e`:n}case t.isElement:{const{attributes:r}=t,s=m(t,e,n);if(!t.attributes["jd-safe"]&&n&&0===s.replace(/[\n\t]/g,"").length&&!t.isSingle)return"";const i=Object.keys(r).map((t=>"style"===t||null==r[t]||/^jd-/.test(t)?"":`${t}="${f(r[t])}"`)).filter(Boolean),{str:a}=t.style;if(a&&i.push(`style="${f(a)}"`),n&&0===i.length&&["span","a"].includes(t.name))return s;const l=i.length?" "+i.join(" "):"";return e(t)?t.isSingle?`<${t.name}${l}/>`:`<${t.name}${l}>${s}</${t.name}>`:s}}return""}function m(t,e=(()=>!0),n=!0){let r=t.map((t=>h(t,e,n))).join("");return"p"===t.name&&0===(0,d.trim)(r).length&&(r="&nbsp;"),r}function f(t){return(""+t).replace(/"/g,"&quot;")}const b="jd-list-level",g="jd-list-type",y="jd-list-style-type",v="list-style-type",E={"·":"disc",o:"circle","§":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"};function x(t){return!(!t||"ol"!==t.name&&"ul"!==t.name)}function k(t){return!(!t||"li"!==t.name)}function $(t){return/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(t.attributes.style)||/msolistparagraph/i.test(t.attributes.class)&&!!t.find((t=>t.isComment&&h(t).includes("supportLists"))).length}function T(t,e){return!(e.name!==t.attributes[g]||e.attributes[y]!==t.attributes[y]||t.attributes[b]!==e.attributes[b])}class j{constructor(t){this._data=w(t)}get keys(){return Object.keys(this._data)}forEach(t){this.keys.forEach((e=>t(e)))}clear(){this._data={}}set(t,e){this._data[t]=e}get(t){var e;return null!==(e=this._data[t])&&void 0!==e?e:null}add(t,e){return this._data=w(this.str+";"+`${t}:${e}`),this}get str(){const t=Object.keys(this._data).filter((t=>t&&!/^mso-/.test(t)&&null!=this.get(t)));return t.length?t.map((t=>`${(0,d.kebabCase)(t)}:${this.get(t)}`)).join(";"):""}}function w(t){return(t=>{const e={},n=[];for(let r=t.length-1;r>=0;r-=1){const s=t[r][0];e[s]||(e[s]=!0,n.unshift(t[r]))}return n})((null!=t?t:"").replace(/&quot;/g,'"').split(";").filter(Boolean).map((t=>(0,d.trim)(t).split(":").map(d.trim)))).reduce(((t,[e,n])=>(e&&n&&(t[e]=n),t)),{})}const _=new Set(i.INSEPARABLE_TAGS);class S{constructor(t,e){this.parent=e,this.name=t.nodeName.toLowerCase(),this.type=t.nodeType,this.attributes=(t=>{const e={};if(p.i.isElement(t))for(let n=0,r=t.attributes;r.length>n;n+=1)e[r[n].name]=r[n].value;else e.nodeValue=t.nodeValue;return e})(t),this.style=new j(this.attributes.style),this.children=[],t.childNodes.forEach((t=>this.children.push(S.make(t,this))))}get isText(){return this.type===Node.TEXT_NODE}get html(){return h(this)}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return _.has(this.name)}get length(){return this.children.length}static make(t,e=null){return new S(t,e)}wrap(t){var e;(0,d.assert)(null!=this.parent,"You can't wrap the root element");const n=S.make(document.createElement(t),this.parent),r=null!==(e=this.parent.children.indexOf(this))&&void 0!==e?e:-1;return-1===r?this.parent.append(n):this.parent.children[r]=n,n.append(this),n}append(t){return(0,d.assert)(t!==this,"Forbidden to add to yourself"),t.remove(),this.children.push(t),t.parent=this,this}get previousElement(){if(!this.parent)return null;const{children:t}=this.parent,e=t.indexOf(this);if(-1!==e)for(let n=e-1;n>=0;n-=1)if(t[n].isElement)return t[n];return null}get lastElement(){const{children:t}=this;for(let e=t.length-1;e>=0;e-=1)if(t[e].isElement)return t[e];return null}get previous(){var t,e,n;return null!==(n=null!==(t=this.sibling(!1))&&void 0!==t?t:null===(e=this.parent)||void 0===e?void 0:e.previous)&&void 0!==n?n:null}get next(){var t,e,n;return null!==(n=null!==(t=this.sibling(!0))&&void 0!==t?t:null===(e=this.parent)||void 0===e?void 0:e.next)&&void 0!==n?n:null}sibling(t){if(!this.parent)return null;const{children:e}=this.parent,n=e.indexOf(this);return-1!==n&&e[n+(t?1:-1)]?e[n+(t?1:-1)]:null}forEach(t,e=!1){const n=[...this.children];for(const r of n){if(!1===t(r))return!1;if(e&&!1===r.forEach(t,!0))return!1}}find(t,e=!0){const n=[];return this.forEach((e=>{t(e)&&n.push(e)}),e),n}map(t){return this.children.map(t)}remove(){var t,e;const n=null===(t=this.parent)||void 0===t?void 0:t.children.indexOf(this);return null!=n&&-1!==n&&(null===(e=this.parent)||void 0===e||e.children.splice(n,1)),this}textBetween(t,e){let n=!1;const r=[];return this.forEach((s=>{if(!n&&t(s)&&(n=!0),n&&s.isText&&r.push(h(s)),n&&e(s))return!1}),!0),r.join("")}}const C=["cellspacing","cellpadding","border","v:shapes","o:spid"],N=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]),O={i:"em",b:"strong"};let L=0;var F=n(39);const M=[t=>((t.isElement&&"always"===t.style.get("page-break-before")||"page"===t.style.get("break-before"))&&(t.attributes["jd-safe"]=!0,t.style.add("page-break-before","always"),t.isSingle&&(t.name="div")),t),t=>"none"===t.style.get("display")||0===t.length&&"span"===t.name||N.has(t.name)?(t.remove(),null):t,t=>{const{name:e}=t;return e in O&&(t.name=O[e]),t},t=>{if(/^OLE_LINK\d+$/.test(t.attributes.name)&&(t.attributes.name=null,0===t.length))return t.remove(),null;"_GoBack"===t.attributes.name&&(t.attributes.name=null);for(const e of C)t.attributes[e]&&(t.attributes[e]=null);return t},t=>{var e;if($(t)){t.name="li",t.style.set("text-indent",null);const n=(t=>t.textBetween((t=>t.isComment&&/\[if.*supportLists.*]/.test(h(t))),(t=>t.isComment&&/\[endif]/.test(h(t)))).replace(/&nbsp;/g,"").replace((0,i.SPACE_REG_EXP)(),""))(t),r=/[\da-np-zA-NP-Z].?/.test(n)?"ol":"ul",s=(t=>{for(const e in E)if(RegExp(e).test(t))return E[e];return null})(n);t.attributes[g]=r,t.attributes[y]=s,(t=>{if(void 0!==t.attributes[b])return;const e=[c(t)],n=[t];let r=t.next;for(;r;){if(r.isElement&&!r.attributes[b]&&$(r)){const t=c(r);t&&(e.push(t),n.push(r))}r=r.next}const s=Math.min(...e.filter((t=>t>0)));let i=e.map((t=>Math.ceil(t/10)));-1!==i.indexOf(0)&&(i=i.map((t=>t+1))),n.forEach(((t,e)=>{t.attributes[b]=i[e],t.style.add("margin-left",Math.max(c(t)-10*i[e]/s*40,0)+"px")}))})(t),(t=>{for(;t;){const e=t.previousElement;if(!k(e)&&!x(e))break;if(k(e)){if(e.attributes[b]>t.attributes[b])break;if(t.attributes[b]===e.attributes[b]&&t.parent&&T(t,t.parent))break;e.append(t);continue}const n=e;if(n.attributes[b]>t.attributes[b])break;if(t.attributes[b]===n.attributes[b]&&!T(t,n))break;n.append(t)}})(t);const{parent:a}=t;if(!x(a)||!T(t,a)){const i=((t,e,n,r)=>{const s=t.wrap(e);return s.attributes.start=(t=>/\d.\d/.test(t)?t.split(".").pop()||null:/^\d/.test(t)?""+(parseInt(t,10)||1):null)(n),s.attributes[b]=t.attributes[b],s.attributes[y]=t.attributes[y],s.style.set(v,r),(t=>{var e;!x(t)||"li"===(null===(e=t.parent)||void 0===e?void 0:e.name)||"disc"!==t.style.get(v)&&"decimal"!==t.style.get(v)||t.style.set(v,null)})(s),s})(t,r,n,s);return x(a)&&(i.remove(),null===(e=a.lastElement)||void 0===e||e.append(i)),t}}return t},(t,e)=>{var n;const r=null!==(n=e.links)&&void 0!==n?n:{};if(t.attributes.href&&t.attributes.href.match(/#.+$/)&&(r[t.attributes.href.match(/#(.+)$/)[1]]=t),t.attributes.name&&r[t.attributes.name]){const e=r[t.attributes.name];e.attributes.href=e.attributes.href.replace(/.*#(.*)$/,"#$1")}return e.links=r,t},t=>(t.isComment&&/\[if.*(supportLists|gte vml).*]/.test(h(t))&&(L++,t.remove()),t.isComment&&L>0&&h(t).includes("[endif]")&&(L=L>0?L-1:0,t.remove()),t.isText&&L?(t.remove(),null):t),(t,{jodit:e})=>{if(!e.o.pasteFromWord.convertUnitsToPixel)return t;const{style:n}=t;return n.forEach((t=>{const e=n.get(t);e&&n.set(t,(""+e).replace(/\d+(\.\d+)?(pt|cm)/g,(t=>u(t)+"px")))})),t},t=>(t.attributes.class&&(t.attributes.class=t.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),(0,F.f)(t.attributes.class)||(t.attributes.class=null)),t),t=>t.isElement?("img"===t.name&&(t.attributes.align&&(t.style.add("float",t.attributes.align),t.attributes.align=null),t.attributes.hspace&&(t.style.add("marginLeft",t.attributes.hspace+"px"),t.style.add("marginRight",t.attributes.hspace+"px"),t.attributes.hspace=null)),t):t,t=>(!t.attributes.width||"th"!==t.name&&"td"!==t.name||(t.attributes.width=null),t)];n(2).D.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1};class W extends s.B{insertFromWordByType(t,e,n){var r;if(!this.j.o.pasteFromWord.enable||n!==i.INSERT_AS_HTML&&n!==i.INSERT_AS_TEXT)return super.insertFromWordByType(t,e,n);if(e=((t,e,n)=>{var r,s;const i=document.createElement("iframe");i.style.display="none",document.body.appendChild(i);try{const a=null!==(r=i.contentDocument)&&void 0!==r?r:null===(s=i.contentWindow)||void 0===s?void 0:s.document;if(!a)return e;a.open(),a.write(e),a.close();const l="jd-style";for(let t=0;a.styleSheets.length>t;t+=1)try{const e=a.styleSheets[t].cssRules;for(let t=0;e.length>t;t+=1)e[t].selectorText&&(0,d.$$)(e[t].selectorText,a.body).forEach((n=>{(0,d.attr)(n,l)||((0,d.attr)(n,l,(0,d.attr)(n,"style")||""),(0,d.attr)(n,"style","")),(0,d.attr)(n,"style",`${(0,d.attr)(n,"style")};${e[t].style.cssText}`)}))}catch(t){}return(0,d.$$)(`[${l}]`,a.body).forEach((t=>{(0,d.attr)(t,"style",`${(0,d.attr)(t,"style")};${(0,d.attr)(t,l)}`)})),((t,e,n)=>{const r={jodit:t};return e.forEach((function t(e){if(e){for(const t of M)if(null==(e=t(e,r)))break;null==e||e.forEach(t)}})),n&&e.forEach((t=>{t.style.clear()}),!0),(0,F.f)(m(e,(t=>!t.isComment)))})(t,S.make(a.body),n)}finally{p.i.safeRemove(i)}return e})(this.j,e,n===i.INSERT_AS_TEXT),this.j.o.beautifyHTML){const t=null===(r=this.j.events)||void 0===r?void 0:r.fire("beautifyHTML",e);(0,a.H)(t)&&(e=t)}(0,l.kU)(t,this.j,e)}}r.Jodit.plugins.remove("pasteFromWord"),r.Jodit.plugins.add("pasteFromWordPro",W)}},t=>t(t.s=273)])}));
@@ -1 +1 @@
1
- !function(t,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var e=o();for(var n in e)("object"==typeof exports?exports:t)[n]=e[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[876],{677:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=e(120);n.Config.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},n.Config.prototype.controls.showBlocks={isActive:function(t){return Boolean(t.e.fire("showBlocksEnabled"))},tooltip:"Show Blocks",command:"toggleShowBlocks"}},678:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.zh_tw=o.zh_cn=o.tr=o.ru=o.pt_br=o.pl=o.nl=o.ko=o.ja=o.it=o.id=o.hu=o.he=o.fr=o.fa=o.es=o.de=o.cs_cz=o.ar=void 0;var n=e(679);o.ar=n;var s=e(680);o.cs_cz=s;var r=e(681);o.de=r;var i=e(682);o.es=i;var l=e(683);o.fa=l;var a=e(684);o.fr=a;var c=e(685);o.he=c;var u=e(686);o.hu=u;var h=e(687);o.id=h;var p=e(688);o.it=p;var d=e(689);o.ja=d;var f=e(690);o.ko=f;var k=e(691);o.nl=k;var b=e(692);o.pl=b;var w=e(693);o.pt_br=w;var g=e(694);o.ru=g;var v=e(695);o.tr=v;var B=e(696);o.zh_cn=B;var x=e(697);o.zh_tw=x},676:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.showBlocks=void 0;var n=e(1);e(677);var s=e(328),r=e(122),i=e(239),l=e(143),a=e(155),c=e(2),u=function(t){function o(o){var n=t.call(this,o)||this;return n.requires=["license"],n.buttons=[{name:"showBlocks",group:"state"}],n.isEnabled=!1,(0,l.extendLang)(e(678)),i.Icon.set("showBlocks",e(698)),n}return n.__extends(o,t),o.prototype.enable=function(){var t=this;this.isEnabled=!0;var o=this.j.o.iframe?"body":".jodit-wysiwyg",e=this.j.o.showBlocks,n=e.color;this.style.innerHTML=e.tagList.map((function(e){return"".concat(o," ").concat(e,"{\n\t\t\t\t\toutline: 1px dashed ").concat(n,';\n\t\t\t\t\tbackground-image: url("').concat((s='<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+n+';font: 10px sans-serif" x="50px" y="0">'+e+"</text></svg>","data:image/svg+xml;utf8,".concat(escape(s))),'");\n\t\t\t\t\tbackground-position: top 2px ').concat("rtl"===t.j.o.direction?"left":"right"," 4px;\n\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\tposition: relative;\n\t\t\t\t}");var s})).join("")},o.prototype.disable=function(){this.isEnabled=!1,this.style.innerHTML=""},o.prototype.toggle=function(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")},o.prototype.afterInit=function(t){var e=this;this.style=(0,l.getContainer)(t,o,"style",!0),t.e.on("showBlocksEnabled",(function(){return e.isEnabled})),t.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()},o.prototype.beforeDestruct=function(t){this.disable(),r.Dom.safeRemove(this.style)},n.__decorate([a.autobind],o.prototype,"enable",null),n.__decorate([a.autobind],o.prototype,"disable",null),n.__decorate([a.autobind],o.prototype,"toggle",null),o}(s.Plugin);o.showBlocks=u,c.Jodit.plugins.add("show-blocks",u)},679:function(t){t.exports={"Show Blocks":"تظهر كتل"}},680:function(t){t.exports={"Show Blocks":"Ukázat Bloky"}},681:function(t){t.exports={"Show Blocks":"Zeigen Blöcke"}},682:function(t){t.exports={"Show Blocks":"Mostrar Bloques"}},683:function(t){t.exports={"Show Blocks":"نشان می دهد بلوک"}},684:function(t){t.exports={"Show Blocks":"Afficher Les Blocs"}},685:function(t){t.exports={"Show Blocks":"תראה רחובות"}},686:function(t){t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},687:function(t){t.exports={"Show Blocks":"Menunjukkan Blok"}},688:function(t){t.exports={"Show Blocks":"Visualizza Blocchi"}},689:function(t){t.exports={"Show Blocks":"ショーのブロック"}},690:function(t){t.exports={"Show Blocks":"쇼 블록"}},691:function(t){t.exports={"Show Blocks":"Toon Blokken"}},692:function(t){t.exports={"Show Blocks":"Pokaż Bloki"}},693:function(t){t.exports={"Show Blocks":"Mostrar Blocos"}},694:function(t){t.exports={"Show Blocks":"Показать Блоки"}},695:function(t){t.exports={"Show Blocks":"Haritayı Blokları"}},696:function(t){t.exports={"Show Blocks":"显示块"}},697:function(t){t.exports={"Show Blocks":"แสดงช่วงตึก"}},698:function(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'}},function(t){return t(t.s=676)}])}));
1
+ !function(t,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var e=o();for(var n in e)("object"==typeof exports?exports:t)[n]=e[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[876],{696:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=e(124);n.Config.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},n.Config.prototype.controls.showBlocks={isActive:function(t){return Boolean(t.e.fire("showBlocksEnabled"))},tooltip:"Show Blocks",command:"toggleShowBlocks"}},697:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.zh_tw=o.zh_cn=o.tr=o.ru=o.pt_br=o.pl=o.nl=o.ko=o.ja=o.it=o.id=o.hu=o.he=o.fr=o.fa=o.es=o.de=o.cs_cz=o.ar=void 0;var n=e(698);o.ar=n;var s=e(699);o.cs_cz=s;var r=e(700);o.de=r;var i=e(701);o.es=i;var l=e(702);o.fa=l;var a=e(703);o.fr=a;var c=e(704);o.he=c;var u=e(705);o.hu=u;var h=e(706);o.id=h;var p=e(707);o.it=p;var d=e(708);o.ja=d;var f=e(709);o.ko=f;var k=e(710);o.nl=k;var b=e(711);o.pl=b;var w=e(712);o.pt_br=w;var g=e(713);o.ru=g;var v=e(714);o.tr=v;var B=e(715);o.zh_cn=B;var x=e(716);o.zh_tw=x},695:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.showBlocks=void 0;var n=e(1);e(696);var s=e(335),r=e(126),i=e(246),l=e(148),a=e(160),c=e(2),u=function(t){function o(o){var n=t.call(this,o)||this;return n.requires=["license"],n.buttons=[{name:"showBlocks",group:"state"}],n.isEnabled=!1,(0,l.extendLang)(e(697)),i.Icon.set("showBlocks",e(717)),n}return n.__extends(o,t),o.prototype.enable=function(){var t=this;this.isEnabled=!0;var o=this.j.o.iframe?"body":".jodit-wysiwyg",e=this.j.o.showBlocks,n=e.color;this.style.innerHTML=e.tagList.map((function(e){return"".concat(o," ").concat(e,"{\n\t\t\t\t\toutline: 1px dashed ").concat(n,';\n\t\t\t\t\tbackground-image: url("').concat((s='<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+n+';font: 10px sans-serif" x="50px" y="0">'+e+"</text></svg>","data:image/svg+xml;utf8,".concat(escape(s))),'");\n\t\t\t\t\tbackground-position: top 2px ').concat("rtl"===t.j.o.direction?"left":"right"," 4px;\n\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\tposition: relative;\n\t\t\t\t}");var s})).join("")},o.prototype.disable=function(){this.isEnabled=!1,this.style.innerHTML=""},o.prototype.toggle=function(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")},o.prototype.afterInit=function(t){var e=this;this.style=(0,l.getContainer)(t,o,"style",!0),t.e.on("showBlocksEnabled",(function(){return e.isEnabled})),t.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()},o.prototype.beforeDestruct=function(t){this.disable(),r.Dom.safeRemove(this.style)},n.__decorate([a.autobind],o.prototype,"enable",null),n.__decorate([a.autobind],o.prototype,"disable",null),n.__decorate([a.autobind],o.prototype,"toggle",null),o}(s.Plugin);o.showBlocks=u,c.Jodit.plugins.add("show-blocks",u)},698:function(t){t.exports={"Show Blocks":"تظهر كتل"}},699:function(t){t.exports={"Show Blocks":"Ukázat Bloky"}},700:function(t){t.exports={"Show Blocks":"Zeigen Blöcke"}},701:function(t){t.exports={"Show Blocks":"Mostrar Bloques"}},702:function(t){t.exports={"Show Blocks":"نشان می دهد بلوک"}},703:function(t){t.exports={"Show Blocks":"Afficher Les Blocs"}},704:function(t){t.exports={"Show Blocks":"תראה רחובות"}},705:function(t){t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},706:function(t){t.exports={"Show Blocks":"Menunjukkan Blok"}},707:function(t){t.exports={"Show Blocks":"Visualizza Blocchi"}},708:function(t){t.exports={"Show Blocks":"ショーのブロック"}},709:function(t){t.exports={"Show Blocks":"쇼 블록"}},710:function(t){t.exports={"Show Blocks":"Toon Blokken"}},711:function(t){t.exports={"Show Blocks":"Pokaż Bloki"}},712:function(t){t.exports={"Show Blocks":"Mostrar Blocos"}},713:function(t){t.exports={"Show Blocks":"Показать Блоки"}},714:function(t){t.exports={"Show Blocks":"Haritayı Blokları"}},715:function(t){t.exports={"Show Blocks":"显示块"}},716:function(t){t.exports={"Show Blocks":"แสดงช่วงตึก"}},717:function(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'}},function(t){return t(t.s=695)}])}));
@@ -1 +1 @@
1
- ((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var s in o)("object"==typeof exports?exports:t)[s]=o[s]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[876],{201(t,e,o){"use strict";o.r(e),o.d(e,{ar:()=>s,cs_cz:()=>l,de:()=>r,es:()=>i,fa:()=>n,fr:()=>a,he:()=>c,hu:()=>h,id:()=>p,it:()=>d,ja:()=>k,ko:()=>u,nl:()=>b,pl:()=>g,pt_br:()=>w,ru:()=>f,tr:()=>B,zh_cn:()=>x,zh_tw:()=>m});const s=o(202),l=o(203),r=o(204),i=o(205),n=o(206),a=o(207),c=o(208),h=o(209),p=o(210),d=o(211),k=o(212),u=o(213),b=o(214),g=o(215),w=o(216),f=o(217),B=o(218),x=o(219),m=o(220)},200(t,e,o){"use strict";o.r(e),o.d(e,{showBlocks:()=>p});var s=o(197),l=o(2);l.D.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},l.D.prototype.controls.showBlocks={isActive(t){return!!t.e.fire("showBlocksEnabled")},tooltip:"Show Blocks",command:"toggleShowBlocks"};var r=o(70),i=o(4),n=o(42),a=o(15),c=o(19),h=o(1);class p extends r.S{constructor(t){super(t),this.requires=["license"],this.buttons=[{name:"showBlocks",group:"state"}],this.isEnabled=!1,(0,a.xl)(o(201)),n.JO.set("showBlocks",o(221))}enable(){this.isEnabled=!0;const t=this.j.o.iframe?"body":".jodit-wysiwyg",{tagList:e,color:o}=this.j.o.showBlocks;this.style.innerHTML=e.map((e=>{return`${t} ${e}{\n\t\t\t\t\toutline: 1px dashed ${o};\n\t\t\t\t\tbackground-image: url("${s='<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+o+';font: 10px sans-serif" x="50px" y="0">'+e+"</text></svg>","data:image/svg+xml;utf8,"+escape(s)}");\n\t\t\t\t\tbackground-position: top 2px ${"rtl"===this.j.o.direction?"left":"right"} 4px;\n\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\tposition: relative;\n\t\t\t\t}`;var s})).join("")}disable(){this.isEnabled=!1,this.style.innerHTML=""}toggle(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")}afterInit(t){this.style=(0,a.ZO)(t,p,"style",!0),t.e.on("showBlocksEnabled",(()=>this.isEnabled)),t.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()}beforeDestruct(t){this.disable(),i.Dom.safeRemove(this.style)}}(0,s.gn)([c.autobind],p.prototype,"enable",null),(0,s.gn)([c.autobind],p.prototype,"disable",null),(0,s.gn)([c.autobind],p.prototype,"toggle",null),h.Jodit.plugins.add("show-blocks",p)},197(t,e,o){"use strict";function s(t,e,o,s){var l,r=arguments.length,i=3>r?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,s);else for(var n=t.length-1;n>=0;n--)(l=t[n])&&(i=(3>r?l(i):r>3?l(e,o,i):l(e,o))||i);return r>3&&i&&Object.defineProperty(e,o,i),i}o.d(e,{gn:()=>s})},202(t){t.exports={"Show Blocks":"تظهر كتل"}},203(t){t.exports={"Show Blocks":"Ukázat Bloky"}},204(t){t.exports={"Show Blocks":"Zeigen Blöcke"}},205(t){t.exports={"Show Blocks":"Mostrar Bloques"}},206(t){t.exports={"Show Blocks":"نشان می دهد بلوک"}},207(t){t.exports={"Show Blocks":"Afficher Les Blocs"}},208(t){t.exports={"Show Blocks":"תראה רחובות"}},209(t){t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},210(t){t.exports={"Show Blocks":"Menunjukkan Blok"}},211(t){t.exports={"Show Blocks":"Visualizza Blocchi"}},212(t){t.exports={"Show Blocks":"ショーのブロック"}},213(t){t.exports={"Show Blocks":"쇼 블록"}},214(t){t.exports={"Show Blocks":"Toon Blokken"}},215(t){t.exports={"Show Blocks":"Pokaż Bloki"}},216(t){t.exports={"Show Blocks":"Mostrar Blocos"}},217(t){t.exports={"Show Blocks":"Показать Блоки"}},218(t){t.exports={"Show Blocks":"Haritayı Blokları"}},219(t){t.exports={"Show Blocks":"显示块"}},220(t){t.exports={"Show Blocks":"แสดงช่วงตึก"}},221(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'}},t=>t(t.s=200)])}));
1
+ ((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var s in o)("object"==typeof exports?exports:t)[s]=o[s]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[876],{207(t,e,o){"use strict";o.r(e),o.d(e,{ar:()=>s,cs_cz:()=>l,de:()=>r,es:()=>i,fa:()=>n,fr:()=>a,he:()=>c,hu:()=>h,id:()=>p,it:()=>d,ja:()=>k,ko:()=>u,nl:()=>b,pl:()=>g,pt_br:()=>w,ru:()=>f,tr:()=>B,zh_cn:()=>x,zh_tw:()=>m});const s=o(208),l=o(209),r=o(210),i=o(211),n=o(212),a=o(213),c=o(214),h=o(215),p=o(216),d=o(217),k=o(218),u=o(219),b=o(220),g=o(221),w=o(222),f=o(223),B=o(224),x=o(225),m=o(226)},206(t,e,o){"use strict";o.r(e),o.d(e,{showBlocks:()=>p});var s=o(203),l=o(2);l.D.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},l.D.prototype.controls.showBlocks={isActive(t){return!!t.e.fire("showBlocksEnabled")},tooltip:"Show Blocks",command:"toggleShowBlocks"};var r=o(75),i=o(4),n=o(47),a=o(16),c=o(21),h=o(1);class p extends r.S{constructor(t){super(t),this.requires=["license"],this.buttons=[{name:"showBlocks",group:"state"}],this.isEnabled=!1,(0,a.xl)(o(207)),n.JO.set("showBlocks",o(227))}enable(){this.isEnabled=!0;const t=this.j.o.iframe?"body":".jodit-wysiwyg",{tagList:e,color:o}=this.j.o.showBlocks;this.style.innerHTML=e.map((e=>{return`${t} ${e}{\n\t\t\t\t\toutline: 1px dashed ${o};\n\t\t\t\t\tbackground-image: url("${s='<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+o+';font: 10px sans-serif" x="50px" y="0">'+e+"</text></svg>","data:image/svg+xml;utf8,"+escape(s)}");\n\t\t\t\t\tbackground-position: top 2px ${"rtl"===this.j.o.direction?"left":"right"} 4px;\n\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\tposition: relative;\n\t\t\t\t}`;var s})).join("")}disable(){this.isEnabled=!1,this.style.innerHTML=""}toggle(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")}afterInit(t){this.style=(0,a.ZO)(t,p,"style",!0),t.e.on("showBlocksEnabled",(()=>this.isEnabled)),t.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()}beforeDestruct(t){this.disable(),i.Dom.safeRemove(this.style)}}(0,s.gn)([c.autobind],p.prototype,"enable",null),(0,s.gn)([c.autobind],p.prototype,"disable",null),(0,s.gn)([c.autobind],p.prototype,"toggle",null),h.Jodit.plugins.add("show-blocks",p)},203(t,e,o){"use strict";function s(t,e,o,s){var l,r=arguments.length,i=3>r?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,s);else for(var n=t.length-1;n>=0;n--)(l=t[n])&&(i=(3>r?l(i):r>3?l(e,o,i):l(e,o))||i);return r>3&&i&&Object.defineProperty(e,o,i),i}o.d(e,{gn:()=>s})},208(t){t.exports={"Show Blocks":"تظهر كتل"}},209(t){t.exports={"Show Blocks":"Ukázat Bloky"}},210(t){t.exports={"Show Blocks":"Zeigen Blöcke"}},211(t){t.exports={"Show Blocks":"Mostrar Bloques"}},212(t){t.exports={"Show Blocks":"نشان می دهد بلوک"}},213(t){t.exports={"Show Blocks":"Afficher Les Blocs"}},214(t){t.exports={"Show Blocks":"תראה רחובות"}},215(t){t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},216(t){t.exports={"Show Blocks":"Menunjukkan Blok"}},217(t){t.exports={"Show Blocks":"Visualizza Blocchi"}},218(t){t.exports={"Show Blocks":"ショーのブロック"}},219(t){t.exports={"Show Blocks":"쇼 블록"}},220(t){t.exports={"Show Blocks":"Toon Blokken"}},221(t){t.exports={"Show Blocks":"Pokaż Bloki"}},222(t){t.exports={"Show Blocks":"Mostrar Blocos"}},223(t){t.exports={"Show Blocks":"Показать Блоки"}},224(t){t.exports={"Show Blocks":"Haritayı Blokları"}},225(t){t.exports={"Show Blocks":"显示块"}},226(t){t.exports={"Show Blocks":"แสดงช่วงตึก"}},227(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'}},t=>t(t.s=206)])}));