jodit-pro 1.3.34 → 1.3.35

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 (53) hide show
  1. package/build/config.js +1 -0
  2. package/build/jodit.es5.css +1 -1
  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/mobile-view/mobile-view.es5.js +1 -1
  36. package/build/plugins/mobile-view/mobile-view.js +1 -1
  37. package/build/plugins/page-break/page-break.es5.js +1 -1
  38. package/build/plugins/page-break/page-break.js +1 -1
  39. package/build/plugins/paste-code/paste-code.es5.js +1 -1
  40. package/build/plugins/paste-code/paste-code.js +1 -1
  41. package/build/plugins/paste-from-word/paste-from-word.es5.js +1 -1
  42. package/build/plugins/paste-from-word/paste-from-word.js +1 -1
  43. package/build/plugins/show-blocks/show-blocks.es5.js +1 -1
  44. package/build/plugins/show-blocks/show-blocks.js +1 -1
  45. package/build/plugins/todo-list/todo-list.css +1 -0
  46. package/build/plugins/todo-list/todo-list.es5.css +1 -0
  47. package/build/plugins/todo-list/todo-list.es5.js +1 -0
  48. package/build/plugins/todo-list/todo-list.js +1 -0
  49. package/build/plugins/translate/translate.es5.js +1 -1
  50. package/build/plugins/translate/translate.js +1 -1
  51. package/build/plugins/tune-block/tune-block.es5.js +1 -1
  52. package/build/plugins/tune-block/tune-block.js +1 -1
  53. package/package.json +1 -1
@@ -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],{98378:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=e(733);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"}},23337: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(96551);o.ar=n;var s=e(26464);o.cs_cz=s;var r=e(7896);o.de=r;var i=e(44660);o.es=i;var l=e(12990);o.fa=l;var a=e(10187);o.fr=a;var c=e(7834);o.he=c;var u=e(46788);o.hu=u;var h=e(79955);o.id=h;var p=e(48343);o.it=p;var d=e(8449);o.ja=d;var f=e(36777);o.ko=f;var k=e(27705);o.nl=k;var b=e(7450);o.pl=b;var w=e(17454);o.pt_br=w;var g=e(48013);o.ru=g;var v=e(47766);o.tr=v;var B=e(70198);o.zh_cn=B;var x=e(50756);o.zh_tw=x},34256:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.showBlocks=void 0;var n=e(70655);e(98378);var s=e(43464),r=e(71910),i=e(98440),l=e(58706),a=e(51923),c=e(97029),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(23337)),i.Icon.set("showBlocks",e(48374)),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)},96551:function(t){t.exports={"Show Blocks":"تظهر كتل"}},26464:function(t){t.exports={"Show Blocks":"Ukázat Bloky"}},7896:function(t){t.exports={"Show Blocks":"Zeigen Blöcke"}},44660:function(t){t.exports={"Show Blocks":"Mostrar Bloques"}},12990:function(t){t.exports={"Show Blocks":"نشان می دهد بلوک"}},10187:function(t){t.exports={"Show Blocks":"Afficher Les Blocs"}},7834:function(t){t.exports={"Show Blocks":"תראה רחובות"}},46788:function(t){t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},79955:function(t){t.exports={"Show Blocks":"Menunjukkan Blok"}},48343:function(t){t.exports={"Show Blocks":"Visualizza Blocchi"}},8449:function(t){t.exports={"Show Blocks":"ショーのブロック"}},36777:function(t){t.exports={"Show Blocks":"쇼 블록"}},27705:function(t){t.exports={"Show Blocks":"Toon Blokken"}},7450:function(t){t.exports={"Show Blocks":"Pokaż Bloki"}},17454:function(t){t.exports={"Show Blocks":"Mostrar Blocos"}},48013:function(t){t.exports={"Show Blocks":"Показать Блоки"}},47766:function(t){t.exports={"Show Blocks":"Haritayı Blokları"}},70198:function(t){t.exports={"Show Blocks":"显示块"}},50756:function(t){t.exports={"Show Blocks":"แสดงช่วงตึก"}},48374: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=34256)}])}));
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],{98378:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=e(43854);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"}},23337: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(96551);o.ar=n;var s=e(26464);o.cs_cz=s;var r=e(7896);o.de=r;var i=e(44660);o.es=i;var l=e(12990);o.fa=l;var a=e(10187);o.fr=a;var c=e(7834);o.he=c;var u=e(46788);o.hu=u;var p=e(79955);o.id=p;var h=e(48343);o.it=h;var d=e(97452);o.ja=d;var f=e(36777);o.ko=f;var k=e(27705);o.nl=k;var b=e(7450);o.pl=b;var g=e(17454);o.pt_br=g;var w=e(48013);o.ru=w;var v=e(47766);o.tr=v;var B=e(70198);o.zh_cn=B;var x=e(50756);o.zh_tw=x},34256:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.showBlocks=void 0;var n=e(70655);e(98378);var s=e(10818),r=e(38886),i=e(34759),l=e(78855),a=e(11975),c=e(97029),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(23337)),i.Icon.set("showBlocks",e(48374)),n}return n.__extends(o,t),Object.defineProperty(o.prototype,"style",{get:function(){return(0,l.getContainer)(this.jodit,o,"style",!0)},enumerable:!1,configurable:!0}),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 o=this;t.e.on("showBlocksEnabled",(function(){return o.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.cache],o.prototype,"style",null),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)},96551:function(t){t.exports={"Show Blocks":"تظهر كتل"}},26464:function(t){t.exports={"Show Blocks":"Ukázat Bloky"}},7896:function(t){t.exports={"Show Blocks":"Zeigen Blöcke"}},44660:function(t){t.exports={"Show Blocks":"Mostrar Bloques"}},12990:function(t){t.exports={"Show Blocks":"نشان می دهد بلوک"}},10187:function(t){t.exports={"Show Blocks":"Afficher Les Blocs"}},7834:function(t){t.exports={"Show Blocks":"תראה רחובות"}},46788:function(t){t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},79955:function(t){t.exports={"Show Blocks":"Menunjukkan Blok"}},48343:function(t){t.exports={"Show Blocks":"Visualizza Blocchi"}},97452:function(t){t.exports={"Show Blocks":"ショーのブロック"}},36777:function(t){t.exports={"Show Blocks":"쇼 블록"}},27705:function(t){t.exports={"Show Blocks":"Toon Blokken"}},7450:function(t){t.exports={"Show Blocks":"Pokaż Bloki"}},17454:function(t){t.exports={"Show Blocks":"Mostrar Blocos"}},48013:function(t){t.exports={"Show Blocks":"Показать Блоки"}},47766:function(t){t.exports={"Show Blocks":"Haritayı Blokları"}},70198:function(t){t.exports={"Show Blocks":"显示块"}},50756:function(t){t.exports={"Show Blocks":"แสดงช่วงตึก"}},48374: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=34256)}])}));
@@ -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],{23337(t,e,o){"use strict";o.r(e),o.d(e,{ar(){return s},cs_cz(){return r},de(){return l},es(){return n},fa(){return i},fr(){return a},he(){return c},hu(){return h},id(){return p},it(){return d},ja(){return u},ko(){return k},nl(){return b},pl(){return g},pt_br(){return w},ru(){return f},tr(){return B},zh_cn(){return x},zh_tw(){return m}});const s=o(96551),r=o(26464),l=o(7896),n=o(44660),i=o(12990),a=o(10187),c=o(7834),h=o(46788),p=o(79955),d=o(48343),u=o(8449),k=o(36777),b=o(27705),g=o(7450),w=o(17454),f=o(48013),B=o(47766),x=o(70198),m=o(50756)},54778(t,e,o){"use strict";o.r(e),o.d(e,{showBlocks(){return p}});var s=o(70655),r=o(733);r.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"]},r.D.prototype.controls.showBlocks={isActive:t=>!!t.e.fire("showBlocksEnabled"),tooltip:"Show Blocks",command:"toggleShowBlocks"};var l=o(43464),n=o(47611),i=o(33993),a=o(58706),c=o(98422),h=o(62195);class p extends l.S{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")}constructor(t){super(t),this.requires=["license"],this.buttons=[{name:"showBlocks",group:"state"}],this.isEnabled=!1,(0,a.xl)(o(23337)),i.JO.set("showBlocks",o(48374))}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(),n.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)},70655(t,e,o){"use strict";function s(t,e,o,s){var r,l=arguments.length,n=3>l?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,s);else for(var i=t.length-1;i>=0;i--)(r=t[i])&&(n=(3>l?r(n):l>3?r(e,o,n):r(e,o))||n);return l>3&&n&&Object.defineProperty(e,o,n),n}o.d(e,{gn(){return s}})},96551(t){t.exports={"Show Blocks":"تظهر كتل"}},26464(t){t.exports={"Show Blocks":"Ukázat Bloky"}},7896(t){t.exports={"Show Blocks":"Zeigen Blöcke"}},44660(t){t.exports={"Show Blocks":"Mostrar Bloques"}},12990(t){t.exports={"Show Blocks":"نشان می دهد بلوک"}},10187(t){t.exports={"Show Blocks":"Afficher Les Blocs"}},7834(t){t.exports={"Show Blocks":"תראה רחובות"}},46788(t){t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},79955(t){t.exports={"Show Blocks":"Menunjukkan Blok"}},48343(t){t.exports={"Show Blocks":"Visualizza Blocchi"}},8449(t){t.exports={"Show Blocks":"ショーのブロック"}},36777(t){t.exports={"Show Blocks":"쇼 블록"}},27705(t){t.exports={"Show Blocks":"Toon Blokken"}},7450(t){t.exports={"Show Blocks":"Pokaż Bloki"}},17454(t){t.exports={"Show Blocks":"Mostrar Blocos"}},48013(t){t.exports={"Show Blocks":"Показать Блоки"}},47766(t){t.exports={"Show Blocks":"Haritayı Blokları"}},70198(t){t.exports={"Show Blocks":"显示块"}},50756(t){t.exports={"Show Blocks":"แสดงช่วงตึก"}},48374(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=54778)])}));
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],{23337(t,e,o){"use strict";o.r(e),o.d(e,{ar(){return s},cs_cz(){return r},de(){return l},es(){return n},fa(){return i},fr(){return a},he(){return c},hu(){return h},id(){return p},it(){return d},ja(){return u},ko(){return k},nl(){return g},pl(){return b},pt_br(){return w},ru(){return f},tr(){return B},zh_cn(){return x},zh_tw(){return m}});const s=o(96551),r=o(26464),l=o(7896),n=o(44660),i=o(12990),a=o(10187),c=o(7834),h=o(46788),p=o(79955),d=o(48343),u=o(97452),k=o(36777),g=o(27705),b=o(7450),w=o(17454),f=o(48013),B=o(47766),x=o(70198),m=o(50756)},54778(t,e,o){"use strict";o.r(e),o.d(e,{showBlocks(){return p}});var s=o(70655),r=o(43854);r.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"]},r.D.prototype.controls.showBlocks={isActive:t=>!!t.e.fire("showBlocksEnabled"),tooltip:"Show Blocks",command:"toggleShowBlocks"};var l=o(10818),n=o(38886),i=o(34759),a=o(78855),c=o(51663),h=o(1120);class p extends l.S{get style(){return(0,a.ZO)(this.jodit,p,"style",!0)}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")}constructor(t){super(t),this.requires=["license"],this.buttons=[{name:"showBlocks",group:"state"}],this.isEnabled=!1,(0,a.xl)(o(23337)),i.J.set("showBlocks",o(48374))}afterInit(t){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(),n.i.safeRemove(this.style)}}(0,s.gn)([c.cache],p.prototype,"style",null),(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)},70655(t,e,o){"use strict";function s(t,e,o,s){var r,l=arguments.length,n=3>l?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,s);else for(var i=t.length-1;i>=0;i--)(r=t[i])&&(n=(3>l?r(n):l>3?r(e,o,n):r(e,o))||n);return l>3&&n&&Object.defineProperty(e,o,n),n}o.d(e,{gn(){return s}})},96551(t){t.exports={"Show Blocks":"تظهر كتل"}},26464(t){t.exports={"Show Blocks":"Ukázat Bloky"}},7896(t){t.exports={"Show Blocks":"Zeigen Blöcke"}},44660(t){t.exports={"Show Blocks":"Mostrar Bloques"}},12990(t){t.exports={"Show Blocks":"نشان می دهد بلوک"}},10187(t){t.exports={"Show Blocks":"Afficher Les Blocs"}},7834(t){t.exports={"Show Blocks":"תראה רחובות"}},46788(t){t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},79955(t){t.exports={"Show Blocks":"Menunjukkan Blok"}},48343(t){t.exports={"Show Blocks":"Visualizza Blocchi"}},97452(t){t.exports={"Show Blocks":"ショーのブロック"}},36777(t){t.exports={"Show Blocks":"쇼 블록"}},27705(t){t.exports={"Show Blocks":"Toon Blokken"}},7450(t){t.exports={"Show Blocks":"Pokaż Bloki"}},17454(t){t.exports={"Show Blocks":"Mostrar Blocos"}},48013(t){t.exports={"Show Blocks":"Показать Блоки"}},47766(t){t.exports={"Show Blocks":"Haritayı Blokları"}},70198(t){t.exports={"Show Blocks":"显示块"}},50756(t){t.exports={"Show Blocks":"แสดงช่วงตึก"}},48374(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=54778)])}));
@@ -0,0 +1 @@
1
+ :root{--jd-todo-color-checkbox-border:#333;--jd-todo-color-checkbox-border-checked:#25ab33;--jd-todo-color-checkbox-bg-checked:#25ab33;--jd-todo-color-checkbox-mark-checked:#fff;--jd-todo-size-checkbox:var(--jd-width_element_default)}.jodit-wysiwyg .todo-list{list-style:none;margin-bottom:var(--jd-padding-default)}.jodit-wysiwyg .todo-list li{margin-bottom:var(--jd-padding-default);max-width:unset}.jodit-wysiwyg .todo-list li .todo-list__label{user-select:none}.jodit-wysiwyg .todo-list li .todo-list__label>input{-webkit-appearance:none;border:0;cursor:pointer;display:inline-block;height:var(--jd-todo-size-checkbox);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--jd-todo-size-checkbox)}.jodit-wysiwyg .todo-list li .todo-list__label>input:before{border:1px solid var(--jd-todo-color-checkbox-border);border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .24s ease-in-out,background .24s ease-in-out,border .24s ease-in-out;width:100%}.jodit-wysiwyg .todo-list li .todo-list__label>input[checked]:before{background:var(--jd-todo-color-checkbox-bg-checked);border-color:var(--jd-todo-color-checkbox-border-checked)}.jodit-wysiwyg .todo-list li .todo-list__label>input:hover:before{box-shadow:0 0 0 6px rgba(0,0,0,.1)}.jodit-wysiwyg .todo-list li .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--jd-todo-size-checkbox)/8) calc(var(--jd-todo-size-checkbox)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--jd-todo-size-checkbox)/2.6);left:calc(var(--jd-todo-size-checkbox)/3);pointer-events:none;position:absolute;top:calc(var(--jd-todo-size-checkbox)/5.3);transform:rotate(45deg);width:calc(var(--jd-todo-size-checkbox)/5.3)}.jodit-wysiwyg .todo-list li .todo-list__label>input[checked]:after{border-color:var(--jd-todo-color-checkbox-mark-checked)}
@@ -0,0 +1 @@
1
+ :root{--jd-todo-color-checkbox-border:#333;--jd-todo-color-checkbox-border-checked:#25ab33;--jd-todo-color-checkbox-bg-checked:#25ab33;--jd-todo-color-checkbox-mark-checked:#fff;--jd-todo-size-checkbox:var(--jd-width_element_default)}.jodit-wysiwyg .todo-list{list-style:none;margin-bottom:var(--jd-padding-default)}.jodit-wysiwyg .todo-list li{margin-bottom:var(--jd-padding-default);max-width:unset}.jodit-wysiwyg .todo-list li .todo-list__label{user-select:none}.jodit-wysiwyg .todo-list li .todo-list__label>input{-webkit-appearance:none;border:0;cursor:pointer;display:inline-block;height:var(--jd-todo-size-checkbox);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--jd-todo-size-checkbox)}.jodit-wysiwyg .todo-list li .todo-list__label>input:before{border:1px solid var(--jd-todo-color-checkbox-border);border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .24s ease-in-out,background .24s ease-in-out,border .24s ease-in-out;width:100%}.jodit-wysiwyg .todo-list li .todo-list__label>input[checked]:before{background:var(--jd-todo-color-checkbox-bg-checked);border-color:var(--jd-todo-color-checkbox-border-checked)}.jodit-wysiwyg .todo-list li .todo-list__label>input:hover:before{box-shadow:0 0 0 6px rgba(0,0,0,.1)}.jodit-wysiwyg .todo-list li .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--jd-todo-size-checkbox)/8) calc(var(--jd-todo-size-checkbox)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--jd-todo-size-checkbox)/2.6);left:calc(var(--jd-todo-size-checkbox)/3);pointer-events:none;position:absolute;top:calc(var(--jd-todo-size-checkbox)/5.3);transform:rotate(45deg);width:calc(var(--jd-todo-size-checkbox)/5.3)}.jodit-wysiwyg .todo-list li .todo-list__label>input[checked]:after{border-color:var(--jd-todo-color-checkbox-mark-checked)}
@@ -0,0 +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 i in o)("object"==typeof exports?exports:t)[i]=o[i]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[588],{58506:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(43854),n=o(34759),s=o(38886);i.Config.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:function(t){return t.createInside.element("input",{type:"checkbox",tabindex:-1})}},i.Config.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive:function(t){var e=t.s.current();return Boolean(e&&s.Dom.closest(e,(function(t){return s.Dom.isElement(t)&&s.Dom.isTag(t,"ul")&&t.classList.contains("todo-list")}),t.editor))}},n.Icon.set("todo-list",o(11176))},98062:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TodoList=void 0;var i=o(70655);o(93007);var n=o(10818),s=o(11975),r=o(25916),a=o(38886),l=o(36257),p=o(70280),c=o(97029);o(58506);var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.requires=["license"],e.buttons=[{name:"todoList",group:"list"}],e.__isOwnCommand=!1,e}return i.__extends(e,t),e.prototype.afterInit=function(t){t.registerCommand("todoList",this.onCommand)},e.prototype.onCommand=function(){try{this.__isOwnCommand=!0,this.jodit.s.commitStyle({element:"ul",attributes:{class:this.j.o.todoList.className},hooks:{afterWrapList:this.__afterWrapList,afterToggleAttribute:this.__afterWrapList}})}finally{this.__isOwnCommand=!1}return!1},e.prototype.__prependInputLabel=function(t){var e=this.jodit,o=this.j.o.todoList,i=o.labelClassName,n=o.inputFactory;if(!t.querySelector("label."+i)){var s=e.createInside.element("label",{contenteditable:"false",class:i}),r=n(e);s.appendChild(r),a.Dom.prepend(t,s)}},e.prototype.__afterToggleList=function(t,e){return t!==p.CHANGE&&t!==p.REPLACE||!this.__isOwnCommand?t===p.UNWRAP||t===p.REPLACE||t===p.CHANGE?this.__removeInputs(e):void 0:this.__appendInputs(e)},e.prototype.__appendInputs=function(t){t.querySelectorAll("li").forEach(this.__prependInputLabel)},e.prototype.__removeInputs=function(t){t.querySelectorAll("label."+this.j.o.todoList.labelClassName).forEach(a.Dom.safeRemove)},e.prototype.__beforeToggleOrderedList=function(t,e,o){var i,n="__beforeToggleOrderedList";if(t!==p.REPLACE&&(e.classList.contains(this.j.o.todoList.className)||o.isApplied(e,n))&&("ul"===o.element||"ol"===o.element)&&(null===(i=o.options.attributes)||void 0===i?void 0:i.class)!==this.j.o.todoList.className){var s=a.Dom.replace(e,o.element,this.jodit.createInside);return o.setApplied(s,n),this.__removeInputs(s),s}},e.prototype.__afterEnter=function(){(0,r.$$)("ul."+this.j.o.todoList.className+" li",this.jodit.editor).forEach(this.__prependInputLabel)},e.prototype.__afterTab=function(){(0,r.$$)("ul:not(."+this.j.o.todoList.className+") > li > label",this.jodit.editor).filter(this.isTodoLeafLabel).forEach(a.Dom.safeRemove)},e.prototype.__changeSelection=function(t){var e=this.j.s.current();this.isTodoLeafLabel(e)&&(t.preventDefault(),t.stopPropagation(),this.j.s.setCursorAfter(e))},e.prototype.__isEmptyListLeaf=function(t){var e=this;return a.Dom.isEmpty(t,(function(t){return("input"!==t.nodeName.toLowerCase()||!e.isTodoLeafLabel(t.parentElement))&&l.NO_EMPTY_TAGS.has(t.tagName.toLowerCase())}))},e.prototype.__backSpaceBeforeCases=function(t,e){if(t){var o=a.Dom.findNotEmptySibling(e,!0);this.isTodoLeafLabel(o)&&a.Dom.safeRemove(o)}},e.prototype.__isInvisibleForCursor=function(t){if(this.isTodoLeafLabel(t))return!0},e.prototype.__backSpaceAfterDelete=function(){var t=this;(0,r.$$)("label."+this.j.o.todoList.labelClassName,this.jodit.editor).forEach((function(e){e.closest("ul."+t.j.o.todoList.className)?e.previousSibling&&a.Dom.prepend(e.parentElement,e):a.Dom.safeRemove(e)}))},e.prototype.__afterWrapList=function(t,e){t===p.WRAP&&this.__appendInputs(e)},e.prototype.__onClickInput=function(t){var e=t.target;e&&a.Dom.isTag(e,"input")&&"checkbox"===e.type&&this.isTodoLeafLabel(e.parentElement)&&(0,r.attr)(e,"checked",e.checked?"checked":null)},e.prototype.isTodoLeafLabel=function(t){var e=this.j.o.todoList.labelClassName;return a.Dom.isHTMLElement(t)&&t.classList.contains(e)},e.prototype.beforeDestruct=function(t){},i.__decorate([s.autobind],e.prototype,"onCommand",null),i.__decorate([s.autobind],e.prototype,"__prependInputLabel",null),i.__decorate([(0,s.watch)(":commitStyleAfterToggleList")],e.prototype,"__afterToggleList",null),i.__decorate([(0,s.watch)(":commitStyleBeforeUnwrapList")],e.prototype,"__beforeToggleOrderedList",null),i.__decorate([(0,s.watch)(":afterEnter")],e.prototype,"__afterEnter",null),i.__decorate([(0,s.watch)(":afterTab")],e.prototype,"__afterTab",null),i.__decorate([(0,s.watch)("j.ed:selectionchange"),(0,s.watch)(":afterEnter")],e.prototype,"__changeSelection",null),i.__decorate([(0,s.watch)(":enterIsEmptyListLeaf")],e.prototype,"__isEmptyListLeaf",null),i.__decorate([(0,s.watch)(":backSpaceBeforeCases")],e.prototype,"__backSpaceBeforeCases",null),i.__decorate([(0,s.watch)(":backSpaceIsMovedIgnore"),(0,s.watch)(":isInvisibleForCursor")],e.prototype,"__isInvisibleForCursor",null),i.__decorate([(0,s.watch)(":backSpaceAfterDelete")],e.prototype,"__backSpaceAfterDelete",null),i.__decorate([s.autobind],e.prototype,"__afterWrapList",null),i.__decorate([(0,s.watch)(":click")],e.prototype,"__onClickInput",null),i.__decorate([s.autobind],e.prototype,"isTodoLeafLabel",null),e}(n.Plugin);e.TodoList=u,c.Jodit.plugins.add("todo-list",u)},11176:function(t){t.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'},93007:function(t,e,o){"use strict";o.r(e)}},function(t){return t(t.s=98062)}])}));
@@ -0,0 +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 o=t();for(var s in o)("object"==typeof exports?exports:e)[s]=o[s]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[588],{91697(e,t,o){"use strict";o.r(t),o.d(t,{TodoList(){return f}});var s=o(70655),i=o(10818),n=o(51663),l=o(25916),a=o(38886),r=o(36257),p=o(61833),c=o(1120),d=o(43854),u=o(34759);d.D.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory(e){return e.createInside.element("input",{type:"checkbox",tabindex:-1})}},d.D.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive(e){const t=e.s.current();return!(!t||!a.i.closest(t,(e=>a.i.isElement(e)&&a.i.isTag(e,"ul")&&e.classList.contains("todo-list")),e.editor))}},u.J.set("todo-list",o(11176));class f extends i.S{constructor(){super(...arguments),this.requires=["license"],this.buttons=[{name:"todoList",group:"list"}],this.__isOwnCommand=!1}afterInit(e){e.registerCommand("todoList",this.onCommand)}onCommand(){try{this.__isOwnCommand=!0,this.jodit.s.commitStyle({element:"ul",attributes:{class:this.j.o.todoList.className},hooks:{afterWrapList:this.__afterWrapList,afterToggleAttribute:this.__afterWrapList}})}finally{this.__isOwnCommand=!1}return!1}__prependInputLabel(e){const{jodit:t}=this,{labelClassName:o,inputFactory:s}=this.j.o.todoList;if(e.querySelector("label."+o))return;const i=t.createInside.element("label",{contenteditable:"false",class:o}),n=s(t);i.appendChild(n),a.i.prepend(e,i)}__afterToggleList(e,t){return e!==p.Ve&&e!==p.J5||!this.__isOwnCommand?e===p.Nc||e===p.J5||e===p.Ve?this.__removeInputs(t):void 0:this.__appendInputs(t)}__appendInputs(e){e.querySelectorAll("li").forEach(this.__prependInputLabel)}__removeInputs(e){const{labelClassName:t}=this.j.o.todoList;e.querySelectorAll("label."+t).forEach(a.i.safeRemove)}__beforeToggleOrderedList(e,t,o){var s;const i="__beforeToggleOrderedList";if(e!==p.J5&&(t.classList.contains(this.j.o.todoList.className)||o.isApplied(t,i))&&("ul"===o.element||"ol"===o.element)&&(null===(s=o.options.attributes)||void 0===s?void 0:s.class)!==this.j.o.todoList.className){const e=a.i.replace(t,o.element,this.jodit.createInside);return o.setApplied(e,i),this.__removeInputs(e),e}}__afterEnter(){(0,l.$$)("ul."+this.j.o.todoList.className+" li",this.jodit.editor).forEach(this.__prependInputLabel)}__afterTab(){(0,l.$$)("ul:not(."+this.j.o.todoList.className+") > li > label",this.jodit.editor).filter(this.isTodoLeafLabel).forEach(a.i.safeRemove)}__changeSelection(e){const t=this.j.s.current();this.isTodoLeafLabel(t)&&(e.preventDefault(),e.stopPropagation(),this.j.s.setCursorAfter(t))}__isEmptyListLeaf(e){return a.i.isEmpty(e,(e=>("input"!==e.nodeName.toLowerCase()||!this.isTodoLeafLabel(e.parentElement))&&r.NO_EMPTY_TAGS.has(e.tagName.toLowerCase())))}__backSpaceBeforeCases(e,t){if(e){const e=a.i.findNotEmptySibling(t,!0);this.isTodoLeafLabel(e)&&a.i.safeRemove(e)}}__isInvisibleForCursor(e){if(this.isTodoLeafLabel(e))return!0}__backSpaceAfterDelete(){const{labelClassName:e}=this.j.o.todoList;(0,l.$$)("label."+e,this.jodit.editor).forEach((e=>{e.closest("ul."+this.j.o.todoList.className)?e.previousSibling&&a.i.prepend(e.parentElement,e):a.i.safeRemove(e)}))}__afterWrapList(e,t){e===p.Qu&&this.__appendInputs(t)}__onClickInput(e){const t=e.target;t&&a.i.isTag(t,"input")&&"checkbox"===t.type&&this.isTodoLeafLabel(t.parentElement)&&(0,l.attr)(t,"checked",t.checked?"checked":null)}isTodoLeafLabel(e){const{labelClassName:t}=this.j.o.todoList;return a.i.isHTMLElement(e)&&e.classList.contains(t)}beforeDestruct(e){}}(0,s.gn)([n.autobind],f.prototype,"onCommand",null),(0,s.gn)([n.autobind],f.prototype,"__prependInputLabel",null),(0,s.gn)([(0,n.watch)(":commitStyleAfterToggleList")],f.prototype,"__afterToggleList",null),(0,s.gn)([(0,n.watch)(":commitStyleBeforeUnwrapList")],f.prototype,"__beforeToggleOrderedList",null),(0,s.gn)([(0,n.watch)(":afterEnter")],f.prototype,"__afterEnter",null),(0,s.gn)([(0,n.watch)(":afterTab")],f.prototype,"__afterTab",null),(0,s.gn)([(0,n.watch)("j.ed:selectionchange"),(0,n.watch)(":afterEnter")],f.prototype,"__changeSelection",null),(0,s.gn)([(0,n.watch)(":enterIsEmptyListLeaf")],f.prototype,"__isEmptyListLeaf",null),(0,s.gn)([(0,n.watch)(":backSpaceBeforeCases")],f.prototype,"__backSpaceBeforeCases",null),(0,s.gn)([(0,n.watch)(":backSpaceIsMovedIgnore"),(0,n.watch)(":isInvisibleForCursor")],f.prototype,"__isInvisibleForCursor",null),(0,s.gn)([(0,n.watch)(":backSpaceAfterDelete")],f.prototype,"__backSpaceAfterDelete",null),(0,s.gn)([n.autobind],f.prototype,"__afterWrapList",null),(0,s.gn)([(0,n.watch)(":click")],f.prototype,"__onClickInput",null),(0,s.gn)([n.autobind],f.prototype,"isTodoLeafLabel",null),c.Jodit.plugins.add("todo-list",f)},70655(e,t,o){"use strict";function s(e,t,o,s){var i,n=arguments.length,l=3>n?t:null===s?s=Object.getOwnPropertyDescriptor(t,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,s);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(l=(3>n?i(l):n>3?i(t,o,l):i(t,o))||l);return n>3&&l&&Object.defineProperty(t,o,l),l}o.d(t,{gn(){return s}})},11176(e){e.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'}},e=>e(e.s=91697)])}));
@@ -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 a=e();for(var n in a)("object"==typeof exports?exports:t)[n]=a[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[81],{15877:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(733),i=a(74259);n.Config.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},defaultSourceLang:"",defaultTargetLang:"de"},n.Config.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec:function(t){t.execCommand("translate")},list:["Options"],childExec:function(t,e,a){t.execCommand("translate"+a.control.name)},mods:{stroke:!1}}},i.Icon.set("translate",a(43939)).set("translate-swap",a(26305))},85223:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GoogleTranslateProvider=void 0;var n=a(70655),i=a(93772),o=a(73034),s=function(){function t(t){this.jodit=t}return t.prototype.__fetch=function(t,e){var a=this;void 0===e&&(e={});var o=this.jodit.o.translate.googleProviderOptions;return(0,i.assert)(o,"Set googleProviderOptions"),this.jodit.fetch(o.url+"?key="+o.key,{method:"POST",data:n.__assign(n.__assign({},e),{ui:this.jodit.o.language}),contentType:"application/json; charset=utf-8",withCredentials:!1}).then((function(t){return t.json()})).catch((function(t){try{a.jodit.message.error(t.json().message)}catch(t){}}))},t.prototype.translate=function(t,e,a){return this.__fetch("translate",{q:t,source:e,target:a,format:"html"}).then((function(t){return{text:t.data.translations[0].translatedText}}))},t.prototype.supportedLanguages=function(){return Promise.resolve({langs:o.languages})},t}();e.GoogleTranslateProvider=s},73034:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.languages=void 0,e.languages={Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"}},58592:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Translate=void 0;var n=a(70655);a(22338);var i=a(43464),o=a(97029),s=a(52378),r=a(6244),l=a(57348),c=a(16617),u=a(51923),g=a(85223);a(15877);var d=a(59398),h=a(70305),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.requires=["license"],e.buttons=[{name:"translate.translate",group:"insert"}],e.state={sourceLang:e.jodit.o.translate.defaultSourceLang||"en",targetLang:e.jodit.o.translate.defaultTargetLang},e}return n.__extends(e,t),e.prototype.__getProvider=function(){var t=this.jodit.options.translate.provider;if((0,l.isString)(t)){if("google"===t)return new g.GoogleTranslateProvider(this.j);throw new Error("Unknown provider")}return(0,s.assert)((0,r.isFunction)(t),"Provider must be a function"),t(this.jodit)},e.prototype.afterInit=function(t){var e=this,a=(0,c.defaultLanguage)(t.o.language,o.Jodit.defaultOptions.language),i=(0,c.defaultLanguage)(t.o.language,a),s=this.__getProvider();t.registerCommand("translateOptions",{exec:function(){return n.__awaiter(e,void 0,void 0,(function(){var e,a,i,o,r=this;return n.__generator(this,(function(n){switch(n.label){case 0:return e=this.state,(a=t.dlg()).setHeader("Translate options"),[4,s.supportedLanguages()];case 1:return i=n.sent(),o=new d.UITranslateSettings(a,this.state,{sourceList:i.langs,targetList:i.langs,onChange:function(t){e=t}}),a.setContent(o),a.setFooter([(0,h.Button)(t,"cancel","Cancel").onAction((function(){return a.close()})),(0,h.Button)(t,"ok","Save","primary").onAction((function(){r.state=e,a.close()}))]),o.bindDestruct(a),a.setSize(500,400).open(!0),[2]}}))}))},hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:function(){var a=t.s.html;if(a)return s.translate(a,e.state.sourceLang&&"auto"!==e.state.sourceLang?e.state.sourceLang:i,e.state.targetLang).then((function(e){t.s.range.deleteContents(),t.s.insertNode(t.createInside.text(e.text))})).catch((function(e){t.message.error((0,l.isString)(e)?e:e.message)}));t.message.error("Select text for translate")},hotkeys:t.o.translate.hotkeys.translateSelection})},e.prototype.beforeDestruct=function(t){},n.__decorate([u.persistent],e.prototype,"state",void 0),e}(i.Plugin);e.Translate=p,o.Jodit.plugins.add("translate",p)},16675:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UITranslateList=void 0;var n=a(70655);a(65023);var i=a(13717),o=a(51923),s=a(12815),r=a(89437),l=a(86431),c=a(16892),u=a(49940),g=function(t){function e(e,a){var n=t.call(this,e,a)||this;n.options=a,n.state={active:""},n.state.active=a.active;var i=new l.UIInput(e,{placeholder:e.i18n("Filter"),icon:"search",onChange:n.__onChangeFilter,clearButton:!0});return n.getElm("input").appendChild(i.container),n.__onActiveChange(),n}return n.__extends(e,t),e.prototype.className=function(){return"UITranslateList"},Object.defineProperty(e.prototype,"items",{get:function(){return this.getElms("item")},enumerable:!1,configurable:!0}),e.prototype.render=function(t){var e=this,a=[];return Object.keys(t.list).sort().forEach((function(n){var i=t.list[n];a.push("<a role='button' tabindex='0' class='&__item' data-lang='".concat(i,"'>\n\t\t\t\t\t\t<span class='&__item-key'>").concat(i,"</span>\n\t\t\t\t\t\t<span class='&__item-title'>").concat(e.j.i18n(n),"</span>\n\t\t\t\t\t</a>"))})),"<div class='&'>\n\t\t\t<div class='&__input'></div>\n\t\t\t<div class='&__list'>".concat(a.join(""),"</div>\n\t\t</div>")},e.prototype.__onChangeFilter=function(t){this.items.forEach((function(e){var a,n,i=null!==(n=null===(a=e.textContent)||void 0===a?void 0:a.toLowerCase())&&void 0!==n?n:"";(0,r.attr)(e,"data-hidden","true"!==(0,r.attr)(e,"data-active")&&!i.includes(t.toLowerCase()))}))},e.prototype.__scrollToActive=function(){var t=this.container.querySelector('[data-active="true"]');t&&(0,c.scrollIntoViewIfNeeded)(t,this.getElm("list"),this.j.od)},e.prototype.onClickItem=function(t){if("keydown"!==t.type||!("key"in t)||t.key===u.KEY_ENTER){var e=t.target;if(s.Dom.isHTMLElement(e)&&e.getAttribute("data-lang")){var a=(0,r.attr)(e,"data-lang");this.options.onChange(a),this.state.active=a}}},e.prototype.__onActiveChange=function(){var t=this;this.items.forEach((function(e){return(0,r.attr)(e,"data-active",(0,r.attr)(e,"data-lang")===t.state.active)})),this.__scrollToActive()},n.__decorate([(0,o.debounce)()],e.prototype,"__onChangeFilter",null),n.__decorate([(0,o.watch)(":afterOpen")],e.prototype,"__scrollToActive",null),n.__decorate([(0,o.watch)(["container:click","container:keydown"])],e.prototype,"onClickItem",null),n.__decorate([(0,o.watch)("state.active"),(0,o.debounce)()],e.prototype,"__onActiveChange",null),n.__decorate([o.component],e)}(i.UIElement);e.UITranslateList=g},59398:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UITranslateSettings=void 0;var n=a(70655);a(89803);var i=a(98440),o=a(51923),s=a(16675),r=function(t){function e(e,a,i){var o=t.call(this,e)||this;return o.state=a,o.options=i,o.__sourceList=new s.UITranslateList(e,{list:i.sourceList,active:a.sourceLang,onChange:function(t){o.state.sourceLang=t,o.options.onChange(n.__assign({},o.state))}}),o.getElm("source-list").appendChild(o.__sourceList.container),o.__targetList=new s.UITranslateList(e,{list:i.targetList,active:a.targetLang,onChange:function(t){o.state.targetLang=t,o.options.onChange(n.__assign({},o.state))}}),o.getElm("target-list").appendChild(o.__targetList.container),o}return n.__extends(e,t),e.prototype.className=function(){return"UITranslateSettings"},e.prototype.render=function(){return"<div>\n\t\t\t<div class='&__list &__source-list'></div>\n\t\t\t<div class='&__arrow'>\n\t\t\t\t<a class='&__arrow-swap'>*translate-swap*</a>\n\t\t\t</div>\n\t\t\t<div class='&__list &__target-list'></div>\n\t\t</div>"},e.prototype.__onSwap=function(){var t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange(n.__assign({},this.state))},n.__decorate([(0,o.watch)("arrow-swap:click")],e.prototype,"__onSwap",null),n.__decorate([o.component],e)}(i.UIElement);e.UITranslateSettings=r},26305:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},43939:function(t){t.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'},22338:function(t,e,a){"use strict";a.r(e)},65023:function(t,e,a){"use strict";a.r(e)},89803:function(t,e,a){"use strict";a.r(e)}},function(t){return t(t.s=58592)}])}));
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 a=e();for(var n in a)("object"==typeof exports?exports:t)[n]=a[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[81],{15877:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(43854),i=a(34759);n.Config.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},defaultSourceLang:"",defaultTargetLang:"de"},n.Config.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec:function(t){t.execCommand("translate")},list:["Options"],childExec:function(t,e,a){t.execCommand("translate"+a.control.name)},mods:{stroke:!1}}},i.Icon.set("translate",a(43939)).set("translate-swap",a(26305))},85223:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GoogleTranslateProvider=void 0;var n=a(70655),i=a(25916),o=a(73034),s=function(){function t(t){this.jodit=t}return t.prototype.__fetch=function(t,e){var a=this;void 0===e&&(e={});var o=this.jodit.o.translate.googleProviderOptions;return(0,i.assert)(o,"Set googleProviderOptions"),this.jodit.fetch(o.url+"?key="+o.key,{method:"POST",data:n.__assign(n.__assign({},e),{ui:this.jodit.o.language}),contentType:"application/json; charset=utf-8",withCredentials:!1}).then((function(t){return t.json()})).catch((function(t){try{a.jodit.message.error(t.json().message)}catch(t){}}))},t.prototype.translate=function(t,e,a){return this.__fetch("translate",{q:t,source:e,target:a,format:"html"}).then((function(t){return{text:t.data.translations[0].translatedText}}))},t.prototype.supportedLanguages=function(){return Promise.resolve({langs:o.languages})},t}();e.GoogleTranslateProvider=s},73034:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.languages=void 0,e.languages={Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"}},58592:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Translate=void 0;var n=a(70655);a(22338);var i=a(10818),o=a(97029),s=a(52378),r=a(27177),l=a(20405),c=a(37056),u=a(11975),g=a(85223);a(15877);var d=a(59398),h=a(4846),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.requires=["license"],e.buttons=[{name:"translate.translate",group:"insert"}],e.state={sourceLang:e.jodit.o.translate.defaultSourceLang||"en",targetLang:e.jodit.o.translate.defaultTargetLang},e}return n.__extends(e,t),e.prototype.__getProvider=function(){var t=this.jodit.options.translate.provider;if((0,l.isString)(t)){if("google"===t)return new g.GoogleTranslateProvider(this.j);throw new Error("Unknown provider")}return(0,s.assert)((0,r.isFunction)(t),"Provider must be a function"),t(this.jodit)},e.prototype.afterInit=function(t){var e=this,a=(0,c.defaultLanguage)(t.o.language,o.Jodit.defaultOptions.language),i=(0,c.defaultLanguage)(t.o.language,a),s=this.__getProvider();t.registerCommand("translateOptions",{exec:function(){return n.__awaiter(e,void 0,void 0,(function(){var e,a,i,o,r=this;return n.__generator(this,(function(n){switch(n.label){case 0:return e=this.state,(a=t.dlg()).setHeader("Translate options"),[4,s.supportedLanguages()];case 1:return i=n.sent(),o=new d.UITranslateSettings(a,this.state,{sourceList:i.langs,targetList:i.langs,onChange:function(t){e=t}}),a.setContent(o),a.setFooter([(0,h.Button)(t,"cancel","Cancel").onAction((function(){return a.close()})),(0,h.Button)(t,"ok","Save","primary").onAction((function(){r.state=e,a.close()}))]),o.bindDestruct(a),a.setSize(500,400).open(!0),[2]}}))}))},hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:function(){var a=t.s.html;if(a)return s.translate(a,e.state.sourceLang&&"auto"!==e.state.sourceLang?e.state.sourceLang:i,e.state.targetLang).then((function(e){t.s.range.deleteContents(),t.s.insertNode(t.createInside.text(e.text))})).catch((function(e){t.message.error((0,l.isString)(e)?e:e.message)}));t.message.error("Select text for translate")},hotkeys:t.o.translate.hotkeys.translateSelection})},e.prototype.beforeDestruct=function(t){},n.__decorate([u.persistent],e.prototype,"state",void 0),e}(i.Plugin);e.Translate=p,o.Jodit.plugins.add("translate",p)},16675:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UITranslateList=void 0;var n=a(70655);a(65023);var i=a(10783),o=a(11975),s=a(38886),r=a(69403),l=a(62353),c=a(47643),u=a(36257),g=function(t){function e(e,a){var n=t.call(this,e,a)||this;n.options=a,n.state={active:""},n.state.active=a.active;var i=new l.UIInput(e,{placeholder:e.i18n("Filter"),icon:"search",onChange:n.__onChangeFilter,clearButton:!0});return n.getElm("input").appendChild(i.container),n.__onActiveChange(),n}return n.__extends(e,t),e.prototype.className=function(){return"UITranslateList"},Object.defineProperty(e.prototype,"items",{get:function(){return this.getElms("item")},enumerable:!1,configurable:!0}),e.prototype.render=function(t){var e=this,a=[];return Object.keys(t.list).sort().forEach((function(n){var i=t.list[n];a.push("<a role='button' tabindex='0' class='&__item' data-lang='".concat(i,"'>\n\t\t\t\t\t\t<span class='&__item-key'>").concat(i,"</span>\n\t\t\t\t\t\t<span class='&__item-title'>").concat(e.j.i18n(n),"</span>\n\t\t\t\t\t</a>"))})),"<div class='&'>\n\t\t\t<div class='&__input'></div>\n\t\t\t<div class='&__list'>".concat(a.join(""),"</div>\n\t\t</div>")},e.prototype.__onChangeFilter=function(t){this.items.forEach((function(e){var a,n,i=null!==(n=null===(a=e.textContent)||void 0===a?void 0:a.toLowerCase())&&void 0!==n?n:"";(0,r.attr)(e,"data-hidden","true"!==(0,r.attr)(e,"data-active")&&!i.includes(t.toLowerCase()))}))},e.prototype.__scrollToActive=function(){var t=this.container.querySelector('[data-active="true"]');t&&(0,c.scrollIntoViewIfNeeded)(t,this.getElm("list"),this.j.od)},e.prototype.onClickItem=function(t){if("keydown"!==t.type||!("key"in t)||t.key===u.KEY_ENTER){var e=t.target;if(s.Dom.isHTMLElement(e)&&e.getAttribute("data-lang")){var a=(0,r.attr)(e,"data-lang");this.options.onChange(a),this.state.active=a}}},e.prototype.__onActiveChange=function(){var t=this;this.items.forEach((function(e){return(0,r.attr)(e,"data-active",(0,r.attr)(e,"data-lang")===t.state.active)})),this.__scrollToActive()},n.__decorate([(0,o.debounce)()],e.prototype,"__onChangeFilter",null),n.__decorate([(0,o.watch)(":afterOpen")],e.prototype,"__scrollToActive",null),n.__decorate([(0,o.watch)(["container:click","container:keydown"])],e.prototype,"onClickItem",null),n.__decorate([(0,o.watch)("state.active"),(0,o.debounce)()],e.prototype,"__onActiveChange",null),n.__decorate([o.component],e)}(i.UIElement);e.UITranslateList=g},59398:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UITranslateSettings=void 0;var n=a(70655);a(89803);var i=a(98813),o=a(11975),s=a(16675),r=function(t){function e(e,a,i){var o=t.call(this,e)||this;return o.state=a,o.options=i,o.__sourceList=new s.UITranslateList(e,{list:i.sourceList,active:a.sourceLang,onChange:function(t){o.state.sourceLang=t,o.options.onChange(n.__assign({},o.state))}}),o.getElm("source-list").appendChild(o.__sourceList.container),o.__targetList=new s.UITranslateList(e,{list:i.targetList,active:a.targetLang,onChange:function(t){o.state.targetLang=t,o.options.onChange(n.__assign({},o.state))}}),o.getElm("target-list").appendChild(o.__targetList.container),o}return n.__extends(e,t),e.prototype.className=function(){return"UITranslateSettings"},e.prototype.render=function(){return"<div>\n\t\t\t<div class='&__list &__source-list'></div>\n\t\t\t<div class='&__arrow'>\n\t\t\t\t<a class='&__arrow-swap'>*translate-swap*</a>\n\t\t\t</div>\n\t\t\t<div class='&__list &__target-list'></div>\n\t\t</div>"},e.prototype.__onSwap=function(){var t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange(n.__assign({},this.state))},n.__decorate([(0,o.watch)("arrow-swap:click")],e.prototype,"__onSwap",null),n.__decorate([o.component],e)}(i.UIElement);e.UITranslateSettings=r},26305:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},43939:function(t){t.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'},22338:function(t,e,a){"use strict";a.r(e)},65023:function(t,e,a){"use strict";a.r(e)},89803:function(t,e,a){"use strict";a.r(e)}},function(t){return t(t.s=58592)}])}));
@@ -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 a=e();for(var s in a)("object"==typeof exports?exports:t)[s]=a[s]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[81],{90676(t,e,a){"use strict";a.r(e),a.d(e,{Translate(){return S}});var s=a(70655),n=a(43464),i=a(62195),o=a(52378),r=a(6244),l=a(57348),c=a(16617),h=a(98422),g=a(93772);const u={Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"};class d{constructor(t){this.jodit=t}__fetch(t,e={}){const a=this.jodit.o.translate.googleProviderOptions;return(0,g.assert)(a,"Set googleProviderOptions"),this.jodit.fetch(a.url+"?key="+a.key,{method:"POST",data:{...e,ui:this.jodit.o.language},contentType:"application/json; charset=utf-8",withCredentials:!1}).then((t=>t.json())).catch((t=>{try{this.jodit.message.error(t.json().message)}catch(t){}}))}translate(t,e,a){return this.__fetch("translate",{q:t,source:e,target:a,format:"html"}).then((t=>({text:t.data.translations[0].translatedText})))}supportedLanguages(){return Promise.resolve({langs:u})}}var p=a(733),m=a(74259);p.D.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},defaultSourceLang:"",defaultTargetLang:"de"},p.D.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec(t){t.execCommand("translate")},list:["Options"],childExec(t,e,{control:a}){t.execCommand("translate"+a.name)},mods:{stroke:!1}}},m.J.set("translate",a(43939)).set("translate-swap",a(26305));var v=a(33993),_=a(13717),f=a(12815),y=a(89437),k=a(86431),w=a(16892),L=a(49940);let C=class t extends _.u{className(){return"UITranslateList"}get items(){return this.getElms("item")}render(t){const e=[];return Object.keys(t.list).sort().forEach((a=>{const s=t.list[a];e.push(`<a role='button' tabindex='0' class='&__item' data-lang='${s}'>\n\t\t\t\t\t\t<span class='&__item-key'>${s}</span>\n\t\t\t\t\t\t<span class='&__item-title'>${this.j.i18n(a)}</span>\n\t\t\t\t\t</a>`)})),`<div class='&'>\n\t\t\t<div class='&__input'></div>\n\t\t\t<div class='&__list'>${e.join("")}</div>\n\t\t</div>`}constructor(t,e){super(t,e),this.options=e,this.state={active:""},this.state.active=e.active;const a=new k.u(t,{placeholder:t.i18n("Filter"),icon:"search",onChange:this.__onChangeFilter,clearButton:!0});this.getElm("input").appendChild(a.container),this.__onActiveChange()}__onChangeFilter(t){this.items.forEach((e=>{var a,s;const n=null!==(s=null===(a=e.textContent)||void 0===a?void 0:a.toLowerCase())&&void 0!==s?s:"";(0,y.Lj)(e,"data-hidden","true"!==(0,y.Lj)(e,"data-active")&&!n.includes(t.toLowerCase()))}))}__scrollToActive(){const t=this.container.querySelector('[data-active="true"]');t&&(0,w.scrollIntoViewIfNeeded)(t,this.getElm("list"),this.j.od)}onClickItem(t){if("keydown"===t.type&&"key"in t&&t.key!==L.KEY_ENTER)return;const e=t.target;if(f.i.isHTMLElement(e)&&e.getAttribute("data-lang")){const t=(0,y.Lj)(e,"data-lang");this.options.onChange(t),this.state.active=t}}__onActiveChange(){this.items.forEach((t=>(0,y.Lj)(t,"data-active",(0,y.Lj)(t,"data-lang")===this.state.active))),this.__scrollToActive()}};(0,s.gn)([(0,h.debounce)()],C.prototype,"__onChangeFilter",null),(0,s.gn)([(0,h.watch)(":afterOpen")],C.prototype,"__scrollToActive",null),(0,s.gn)([(0,h.watch)(["container:click","container:keydown"])],C.prototype,"onClickItem",null),(0,s.gn)([(0,h.watch)("state.active"),(0,h.debounce)()],C.prototype,"__onActiveChange",null),C=(0,s.gn)([h.component],C);let b=class t extends v.u1{className(){return"UITranslateSettings"}render(){return"<div>\n\t\t\t<div class='&__list &__source-list'></div>\n\t\t\t<div class='&__arrow'>\n\t\t\t\t<a class='&__arrow-swap'>*translate-swap*</a>\n\t\t\t</div>\n\t\t\t<div class='&__list &__target-list'></div>\n\t\t</div>"}constructor(t,e,a){super(t),this.state=e,this.options=a,this.__sourceList=new C(t,{list:a.sourceList,active:e.sourceLang,onChange:t=>{this.state.sourceLang=t,this.options.onChange({...this.state})}}),this.getElm("source-list").appendChild(this.__sourceList.container),this.__targetList=new C(t,{list:a.targetList,active:e.targetLang,onChange:t=>{this.state.targetLang=t,this.options.onChange({...this.state})}}),this.getElm("target-list").appendChild(this.__targetList.container)}__onSwap(){const t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange({...this.state})}};(0,s.gn)([(0,h.watch)("arrow-swap:click")],b.prototype,"__onSwap",null),b=(0,s.gn)([h.component],b);var j=a(70305);class S extends n.S{constructor(){super(...arguments),this.requires=["license"],this.buttons=[{name:"translate.translate",group:"insert"}],this.state={sourceLang:this.jodit.o.translate.defaultSourceLang||"en",targetLang:this.jodit.o.translate.defaultTargetLang}}__getProvider(){const{provider:t}=this.jodit.options.translate;if((0,l.H)(t)){if("google"===t)return new d(this.j);throw Error("Unknown provider")}return(0,o.assert)((0,r.m)(t),"Provider must be a function"),t(this.jodit)}afterInit(t){const e=(0,c.X)(t.o.language,i.Jodit.defaultOptions.language),a=(0,c.X)(t.o.language,e),s=this.__getProvider();t.registerCommand("translateOptions",{exec:async()=>{let e=this.state;const a=t.dlg();a.setHeader("Translate options");const n=await s.supportedLanguages(),i=new b(a,this.state,{sourceList:n.langs,targetList:n.langs,onChange(t){e=t}});a.setContent(i),a.setFooter([(0,j.zx)(t,"cancel","Cancel").onAction((()=>a.close())),(0,j.zx)(t,"ok","Save","primary").onAction((()=>{this.state=e,a.close()}))]),i.bindDestruct(a),a.setSize(500,400).open(!0)},hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:()=>{const e=t.s.html;if(e)return s.translate(e,this.state.sourceLang&&"auto"!==this.state.sourceLang?this.state.sourceLang:a,this.state.targetLang).then((e=>{t.s.range.deleteContents(),t.s.insertNode(t.createInside.text(e.text))})).catch((e=>{t.message.error((0,l.H)(e)?e:e.message)}));t.message.error("Select text for translate")},hotkeys:t.o.translate.hotkeys.translateSelection})}beforeDestruct(t){}}(0,s.gn)([h.persistent],S.prototype,"state",void 0),i.Jodit.plugins.add("translate",S)},70655(t,e,a){"use strict";function s(t,e,a,s){var n,i=arguments.length,o=3>i?e:null===s?s=Object.getOwnPropertyDescriptor(e,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(o=(3>i?n(o):i>3?n(e,a,o):n(e,a))||o);return i>3&&o&&Object.defineProperty(e,a,o),o}a.d(e,{gn(){return s}})},26305(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},43939(t){t.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'}},t=>t(t.s=90676)])}));
1
+ ((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var a=e();for(var s in a)("object"==typeof exports?exports:t)[s]=a[s]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[81],{90676(t,e,a){"use strict";a.r(e),a.d(e,{Translate(){return S}});var s=a(70655),n=a(10818),i=a(1120),o=a(52378),r=a(27177),l=a(20405),c=a(37056),h=a(51663),g=a(25916);const u={Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"};class d{constructor(t){this.jodit=t}__fetch(t,e={}){const a=this.jodit.o.translate.googleProviderOptions;return(0,g.assert)(a,"Set googleProviderOptions"),this.jodit.fetch(a.url+"?key="+a.key,{method:"POST",data:{...e,ui:this.jodit.o.language},contentType:"application/json; charset=utf-8",withCredentials:!1}).then((t=>t.json())).catch((t=>{try{this.jodit.message.error(t.json().message)}catch(t){}}))}translate(t,e,a){return this.__fetch("translate",{q:t,source:e,target:a,format:"html"}).then((t=>({text:t.data.translations[0].translatedText})))}supportedLanguages(){return Promise.resolve({langs:u})}}var p=a(43854),m=a(34759);p.D.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},defaultSourceLang:"",defaultTargetLang:"de"},p.D.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec(t){t.execCommand("translate")},list:["Options"],childExec(t,e,{control:a}){t.execCommand("translate"+a.name)},mods:{stroke:!1}}},m.J.set("translate",a(43939)).set("translate-swap",a(26305));var v=a(86673),_=a(10783),f=a(38886),y=a(69403),k=a(62353),w=a(47643),L=a(36257);let C=class t extends _.u{className(){return"UITranslateList"}get items(){return this.getElms("item")}render(t){const e=[];return Object.keys(t.list).sort().forEach((a=>{const s=t.list[a];e.push(`<a role='button' tabindex='0' class='&__item' data-lang='${s}'>\n\t\t\t\t\t\t<span class='&__item-key'>${s}</span>\n\t\t\t\t\t\t<span class='&__item-title'>${this.j.i18n(a)}</span>\n\t\t\t\t\t</a>`)})),`<div class='&'>\n\t\t\t<div class='&__input'></div>\n\t\t\t<div class='&__list'>${e.join("")}</div>\n\t\t</div>`}constructor(t,e){super(t,e),this.options=e,this.state={active:""},this.state.active=e.active;const a=new k.u(t,{placeholder:t.i18n("Filter"),icon:"search",onChange:this.__onChangeFilter,clearButton:!0});this.getElm("input").appendChild(a.container),this.__onActiveChange()}__onChangeFilter(t){this.items.forEach((e=>{var a,s;const n=null!==(s=null===(a=e.textContent)||void 0===a?void 0:a.toLowerCase())&&void 0!==s?s:"";(0,y.Lj)(e,"data-hidden","true"!==(0,y.Lj)(e,"data-active")&&!n.includes(t.toLowerCase()))}))}__scrollToActive(){const t=this.container.querySelector('[data-active="true"]');t&&(0,w.scrollIntoViewIfNeeded)(t,this.getElm("list"),this.j.od)}onClickItem(t){if("keydown"===t.type&&"key"in t&&t.key!==L.KEY_ENTER)return;const e=t.target;if(f.i.isHTMLElement(e)&&e.getAttribute("data-lang")){const t=(0,y.Lj)(e,"data-lang");this.options.onChange(t),this.state.active=t}}__onActiveChange(){this.items.forEach((t=>(0,y.Lj)(t,"data-active",(0,y.Lj)(t,"data-lang")===this.state.active))),this.__scrollToActive()}};(0,s.gn)([(0,h.debounce)()],C.prototype,"__onChangeFilter",null),(0,s.gn)([(0,h.watch)(":afterOpen")],C.prototype,"__scrollToActive",null),(0,s.gn)([(0,h.watch)(["container:click","container:keydown"])],C.prototype,"onClickItem",null),(0,s.gn)([(0,h.watch)("state.active"),(0,h.debounce)()],C.prototype,"__onActiveChange",null),C=(0,s.gn)([h.component],C);let b=class t extends v.u1{className(){return"UITranslateSettings"}render(){return"<div>\n\t\t\t<div class='&__list &__source-list'></div>\n\t\t\t<div class='&__arrow'>\n\t\t\t\t<a class='&__arrow-swap'>*translate-swap*</a>\n\t\t\t</div>\n\t\t\t<div class='&__list &__target-list'></div>\n\t\t</div>"}constructor(t,e,a){super(t),this.state=e,this.options=a,this.__sourceList=new C(t,{list:a.sourceList,active:e.sourceLang,onChange:t=>{this.state.sourceLang=t,this.options.onChange({...this.state})}}),this.getElm("source-list").appendChild(this.__sourceList.container),this.__targetList=new C(t,{list:a.targetList,active:e.targetLang,onChange:t=>{this.state.targetLang=t,this.options.onChange({...this.state})}}),this.getElm("target-list").appendChild(this.__targetList.container)}__onSwap(){const t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange({...this.state})}};(0,s.gn)([(0,h.watch)("arrow-swap:click")],b.prototype,"__onSwap",null),b=(0,s.gn)([h.component],b);var j=a(4846);class S extends n.S{constructor(){super(...arguments),this.requires=["license"],this.buttons=[{name:"translate.translate",group:"insert"}],this.state={sourceLang:this.jodit.o.translate.defaultSourceLang||"en",targetLang:this.jodit.o.translate.defaultTargetLang}}__getProvider(){const{provider:t}=this.jodit.options.translate;if((0,l.H)(t)){if("google"===t)return new d(this.j);throw Error("Unknown provider")}return(0,o.assert)((0,r.m)(t),"Provider must be a function"),t(this.jodit)}afterInit(t){const e=(0,c.X)(t.o.language,i.Jodit.defaultOptions.language),a=(0,c.X)(t.o.language,e),s=this.__getProvider();t.registerCommand("translateOptions",{exec:async()=>{let e=this.state;const a=t.dlg();a.setHeader("Translate options");const n=await s.supportedLanguages(),i=new b(a,this.state,{sourceList:n.langs,targetList:n.langs,onChange(t){e=t}});a.setContent(i),a.setFooter([(0,j.zx)(t,"cancel","Cancel").onAction((()=>a.close())),(0,j.zx)(t,"ok","Save","primary").onAction((()=>{this.state=e,a.close()}))]),i.bindDestruct(a),a.setSize(500,400).open(!0)},hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:()=>{const e=t.s.html;if(e)return s.translate(e,this.state.sourceLang&&"auto"!==this.state.sourceLang?this.state.sourceLang:a,this.state.targetLang).then((e=>{t.s.range.deleteContents(),t.s.insertNode(t.createInside.text(e.text))})).catch((e=>{t.message.error((0,l.H)(e)?e:e.message)}));t.message.error("Select text for translate")},hotkeys:t.o.translate.hotkeys.translateSelection})}beforeDestruct(t){}}(0,s.gn)([h.persistent],S.prototype,"state",void 0),i.Jodit.plugins.add("translate",S)},70655(t,e,a){"use strict";function s(t,e,a,s){var n,i=arguments.length,o=3>i?e:null===s?s=Object.getOwnPropertyDescriptor(e,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(o=(3>i?n(o):i>3?n(e,a,o):n(e,a))||o);return i>3&&o&&Object.defineProperty(e,a,o),o}a.d(e,{gn(){return s}})},26305(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},43939(t){t.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'}},t=>t(t.s=90676)])}));
@@ -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 o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[288],{80147:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0});var n=o(70655),i=o(733),r=o(96582),c=o(16892),s=["tune.up","tune.remove","tune.down"],u=n.__spreadArray(["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n"],n.__read(s),!1);function l(e){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+e.toUpperCase()+"</text></svg>",isActive:function(t,o,n){var i;return(null===(i=null==n?void 0:n.target)||void 0===i?void 0:i.tagName.toLowerCase())===e},exec:function(t,o){if(o){t.selection.save();var n=r.Dom.replace(o,e,t.createInside);t.selection.restore(),t.e.fire("synchro"),t.e.fire("afterExecTune.tune",n)}return!0}}}function p(e){var t=e?"previousSibling":"nextSibling";return{icon:e?"angle-up":"angle-down",isDisabled:function(e,o,n){var i;return!(null===(i=null==n?void 0:n.target)||void 0===i?void 0:i[t])},exec:function(o,n){var i=null==n?void 0:n[t];return n&&i&&(o.selection.save(),(0,c.call)(e?r.Dom.before:r.Dom.after,i,n),o.selection.restore()),o.e.fire("synchro"),o.e.fire("afterExecTune.tune"),!0}}}i.Config.prototype.tuneBlock={popup:{p:s,table:s,img:s,blockquote:s,div:s,pre:n.__spreadArray(["tune.editPre"],n.__read(s),!1),h1:u,h2:u,h3:u,h4:u,h5:u,h6:u}},i.Config.prototype.controls.tune={h1:l("h1"),h2:l("h2"),h3:l("h3"),h4:l("h4"),h5:l("h5"),h6:l("h6"),up:p(!0),down:p(!1),editPre:{icon:"pencil",exec:function(e,t){e.e.fire("editPreInPasteCode",t)}},remove:{icon:"bin",exec:function(e,t){r.Dom.safeRemove(t),e.e.fire("synchro"),e.e.fire("closeTuner.tune"),e.e.fire("hideTuner.tune")}}}},79053:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.tuneBlock=void 0;var n=o(70655),i=o(43464),r=o(51923),c=o(97029),s=o(16430);o(80147);var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.requires=["license"],t}return n.__extends(t,e),t.prototype.afterInit=function(e){this.tuner=new s.UITuner(e)},t.prototype.hideTuner=function(){this.tuner.hide()},t.prototype.onChangeSelection=function(){this.j.s.isCollapsed()||this.hideTuner()},t.prototype.onClickInBlock=function(e){this.j.s.isCollapsed()&&this.tuner.show()},t.prototype.beforeDestruct=function(e){this.tuner.destruct()},n.__decorate([(0,r.watch)(":outsideClick :keydown")],t.prototype,"hideTuner",null),n.__decorate([(0,r.watch)("j.ed:selectionchange"),(0,r.debounce)()],t.prototype,"onChangeSelection",null),n.__decorate([(0,r.watch)(":click")],t.prototype,"onClickInBlock",null),t}(i.Plugin);t.tuneBlock=u,c.Jodit.plugins.add("tune-block",u)},16430:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.UITuner=void 0;var n=o(70655);o(33511);var i=o(98440),r=o(96582),c=o(16892),s=o(51923),u=o(75901),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isShown=!1,t.toolbar=(0,u.makeCollection)(t.j,t),t.popup=new i.Popup(t.j,!1),t}return n.__extends(t,e),t.prototype.className=function(){return"UITuner"},t.prototype.render=function(){return"<div>\n\t\t\t<div class='&__handle' title='~Click to tune~'/>\n\t\t</div>"},t.prototype.show=function(){var e=this,t=this.j.s.current();if(!t)return this.hide();var o=r.Dom.isBlock(t)?t:r.Dom.closest(t,(function(t){return Boolean(t&&e.j.o.tuneBlock.popup[t.nodeName.toLowerCase()])}),this.j.editor);if(!o||o===this.j.editor||!this.j.o.tuneBlock.popup[o.tagName.toLowerCase()])return this.hide();this.currentBlock=o,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)},t.prototype.hide=function(){this.isShown&&(this.isShown=!1,r.Dom.safeRemove(this.container),this.closeToolbar())},t.prototype.onEditorScroll=function(){this.isShown&&this.calcPosition()},t.prototype.calcPosition=function(){var e=(0,c.css)(this.j.editor,"marginLeft"),t=(0,c.css)(this.j.editor,"paddingLeft"),o=(0,c.css)(this.j.editor,"marginTop"),n=this.currentBlock.offsetTop-this.j.editor.scrollTop+o;(0,c.css)(this.container,{transform:"translate3d(".concat(this.currentBlock.offsetWidth-15+e+t,"px, ").concat(n,"px, 0)")}),this.popup.isOpened&&this.popup.updatePosition()},t.prototype.onAfterExecTune=function(e){e&&(this.currentBlock=e),this.calcPosition(),this.openToolbar()},t.prototype.onClickPrevent=function(e){e.preventDefault(),e.stopPropagation()},t.prototype.onTargetClick=function(){this.toggleToolbar()},t.prototype.openToolbar=function(){if(this.setMod("opened",!0),this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()],this.currentBlock),this.popup.setContent(this.toolbar.container),!this.popup.isOpened){var e=this.getElm("handle");(0,c.assert)(null!=e,"Handle element does not exist"),this.popup.open((function(){return(0,c.position)(e)}))}},t.prototype.closeToolbar=function(){this.setMod("opened",!1),this.popup.close()},t.prototype.toggleToolbar=function(){this.getMod("opened")?this.closeToolbar():this.openToolbar()},n.__decorate([(0,s.watch)(":hideTuner.tune")],t.prototype,"hide",null),n.__decorate([(0,s.watch)("j.editor:scroll"),(0,s.throttle)(10)],t.prototype,"onEditorScroll",null),n.__decorate([(0,s.watch)(":afterExecTune.tune"),(0,s.idle)()],t.prototype,"onAfterExecTune",null),n.__decorate([(0,s.watch)("container:click container:mousedown")],t.prototype,"onClickPrevent",null),n.__decorate([(0,s.watch)("handle:click")],t.prototype,"onTargetClick",null),n.__decorate([(0,s.watch)(":closeTuner.tune")],t.prototype,"closeToolbar",null),n.__decorate([s.component],t)}(i.UIElement);t.UITuner=l},33511:function(e,t,o){o.r(t)}},function(e){return e(e.s=79053)}])}));
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 o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[288],{80147:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0});var n=o(70655),i=o(43854),r=o(97039),c=o(47643),s=["tune.up","tune.remove","tune.down"],u=n.__spreadArray(["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n"],n.__read(s),!1);function l(e){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+e.toUpperCase()+"</text></svg>",isActive:function(t,o,n){var i;return(null===(i=null==n?void 0:n.target)||void 0===i?void 0:i.tagName.toLowerCase())===e},exec:function(t,o){if(o){t.selection.save();var n=r.Dom.replace(o,e,t.createInside);t.selection.restore(),t.e.fire("synchro"),t.e.fire("afterExecTune.tune",n)}return!0}}}function p(e){var t=e?"previousSibling":"nextSibling";return{icon:e?"angle-up":"angle-down",isDisabled:function(e,o,n){var i;return!(null===(i=null==n?void 0:n.target)||void 0===i?void 0:i[t])},exec:function(o,n){var i=null==n?void 0:n[t];return n&&i&&(o.selection.save(),(0,c.call)(e?r.Dom.before:r.Dom.after,i,n),o.selection.restore()),o.e.fire("synchro"),o.e.fire("afterExecTune.tune"),!0}}}i.Config.prototype.tuneBlock={popup:{p:s,table:s,img:s,blockquote:s,div:s,pre:n.__spreadArray(["tune.editPre"],n.__read(s),!1),h1:u,h2:u,h3:u,h4:u,h5:u,h6:u}},i.Config.prototype.controls.tune={h1:l("h1"),h2:l("h2"),h3:l("h3"),h4:l("h4"),h5:l("h5"),h6:l("h6"),up:p(!0),down:p(!1),editPre:{icon:"pencil",exec:function(e,t){e.e.fire("editPreInPasteCode",t)}},remove:{icon:"bin",exec:function(e,t){r.Dom.safeRemove(t),e.e.fire("synchro"),e.e.fire("closeTuner.tune"),e.e.fire("hideTuner.tune")}}}},79053:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.tuneBlock=void 0;var n=o(70655),i=o(10818),r=o(11975),c=o(97029),s=o(16430);o(80147);var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.requires=["license"],t}return n.__extends(t,e),t.prototype.afterInit=function(e){this.tuner=new s.UITuner(e)},t.prototype.hideTuner=function(){this.tuner.hide()},t.prototype.onChangeSelection=function(){this.j.s.isCollapsed()||this.hideTuner()},t.prototype.onClickInBlock=function(e){this.j.s.isCollapsed()&&this.tuner.show()},t.prototype.beforeDestruct=function(e){this.tuner.destruct()},n.__decorate([(0,r.watch)(":outsideClick :keydown")],t.prototype,"hideTuner",null),n.__decorate([(0,r.watch)("j.ed:selectionchange"),(0,r.debounce)()],t.prototype,"onChangeSelection",null),n.__decorate([(0,r.watch)(":click")],t.prototype,"onClickInBlock",null),t}(i.Plugin);t.tuneBlock=u,c.Jodit.plugins.add("tune-block",u)},16430:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.UITuner=void 0;var n=o(70655);o(33511);var i=o(98813),r=o(97039),c=o(47643),s=o(11975),u=o(30446),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isShown=!1,t.toolbar=(0,u.makeCollection)(t.j,t),t.popup=new i.Popup(t.j,!1),t}return n.__extends(t,e),t.prototype.className=function(){return"UITuner"},t.prototype.render=function(){return"<div>\n\t\t\t<div class='&__handle' title='~Click to tune~'/>\n\t\t</div>"},t.prototype.show=function(){var e=this,t=this.j.s.current();if(!t)return this.hide();var o=r.Dom.isBlock(t)?t:r.Dom.closest(t,(function(t){return Boolean(t&&e.j.o.tuneBlock.popup[t.nodeName.toLowerCase()])}),this.j.editor);if(!o||o===this.j.editor||!this.j.o.tuneBlock.popup[o.tagName.toLowerCase()])return this.hide();this.currentBlock=o,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)},t.prototype.hide=function(){this.isShown&&(this.isShown=!1,r.Dom.safeRemove(this.container),this.closeToolbar())},t.prototype.onEditorScroll=function(){this.isShown&&this.calcPosition()},t.prototype.calcPosition=function(){var e=(0,c.css)(this.j.editor,"marginLeft"),t=(0,c.css)(this.j.editor,"paddingLeft"),o=(0,c.css)(this.j.editor,"marginTop"),n=this.currentBlock.offsetTop-this.j.editor.scrollTop+o;(0,c.css)(this.container,{transform:"translate3d(".concat(this.currentBlock.offsetWidth-15+e+t,"px, ").concat(n,"px, 0)")}),this.popup.isOpened&&this.popup.updatePosition()},t.prototype.onAfterExecTune=function(e){e&&(this.currentBlock=e),this.calcPosition(),this.openToolbar()},t.prototype.onClickPrevent=function(e){e.preventDefault(),e.stopPropagation()},t.prototype.onTargetClick=function(){this.toggleToolbar()},t.prototype.openToolbar=function(){if(this.setMod("opened",!0),this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()],this.currentBlock),this.popup.setContent(this.toolbar.container),!this.popup.isOpened){var e=this.getElm("handle");(0,c.assert)(null!=e,"Handle element does not exist"),this.popup.open((function(){return(0,c.position)(e)}))}},t.prototype.closeToolbar=function(){this.setMod("opened",!1),this.popup.close()},t.prototype.toggleToolbar=function(){this.getMod("opened")?this.closeToolbar():this.openToolbar()},n.__decorate([(0,s.watch)(":hideTuner.tune")],t.prototype,"hide",null),n.__decorate([(0,s.watch)("j.editor:scroll"),(0,s.throttle)(10)],t.prototype,"onEditorScroll",null),n.__decorate([(0,s.watch)(":afterExecTune.tune"),(0,s.idle)()],t.prototype,"onAfterExecTune",null),n.__decorate([(0,s.watch)("container:click container:mousedown")],t.prototype,"onClickPrevent",null),n.__decorate([(0,s.watch)("handle:click")],t.prototype,"onTargetClick",null),n.__decorate([(0,s.watch)(":closeTuner.tune")],t.prototype,"closeToolbar",null),n.__decorate([s.component],t)}(i.UIElement);t.UITuner=l},33511:function(e,t,o){o.r(t)}},function(e){return e(e.s=79053)}])}));
@@ -1 +1 @@
1
- "use strict";((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[288],{78838(e,t,o){o.r(t),o.d(t,{tuneBlock(){return b}});var n=o(70655),i=o(43464),s=o(98422),r=o(62195),l=o(33993),c=o(96582),h=o(16892),u=o(75901);let p=class e extends l.u1{constructor(){super(...arguments),this.isShown=!1,this.toolbar=(0,u.R)(this.j,this),this.popup=new l.GI(this.j,!1)}className(){return"UITuner"}render(){return"<div>\n\t\t\t<div class='&__handle' title='~Click to tune~'/>\n\t\t</div>"}show(){const e=this.j.s.current();if(!e)return this.hide();const t=c.i.isBlock(e)?e:c.i.closest(e,(e=>!(!e||!this.j.o.tuneBlock.popup[e.nodeName.toLowerCase()])),this.j.editor);if(!t||t===this.j.editor||!this.j.o.tuneBlock.popup[t.tagName.toLowerCase()])return this.hide();this.currentBlock=t,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)}hide(){this.isShown&&(this.isShown=!1,c.i.safeRemove(this.container),this.closeToolbar())}onEditorScroll(){this.isShown&&this.calcPosition()}calcPosition(){const e=(0,h.css)(this.j.editor,"marginLeft"),t=(0,h.css)(this.j.editor,"paddingLeft"),o=(0,h.css)(this.j.editor,"marginTop");(0,h.css)(this.container,{transform:`translate3d(${this.currentBlock.offsetWidth-15+e+t}px, ${this.currentBlock.offsetTop-this.j.editor.scrollTop+o}px, 0)`}),this.popup.isOpened&&this.popup.updatePosition()}onAfterExecTune(e){e&&(this.currentBlock=e),this.calcPosition(),this.openToolbar()}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onTargetClick(){this.toggleToolbar()}openToolbar(){if(this.setMod("opened",!0),this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()],this.currentBlock),this.popup.setContent(this.toolbar.container),!this.popup.isOpened){const e=this.getElm("handle");(0,h.assert)(null!=e,"Handle element does not exist"),this.popup.open((()=>(0,h.position)(e)))}}closeToolbar(){this.setMod("opened",!1),this.popup.close()}toggleToolbar(){this.getMod("opened")?this.closeToolbar():this.openToolbar()}};(0,n.gn)([(0,s.watch)(":hideTuner.tune")],p.prototype,"hide",null),(0,n.gn)([(0,s.watch)("j.editor:scroll"),(0,s.throttle)(10)],p.prototype,"onEditorScroll",null),(0,n.gn)([(0,s.watch)(":afterExecTune.tune"),(0,s.idle)()],p.prototype,"onAfterExecTune",null),(0,n.gn)([(0,s.watch)("container:click container:mousedown")],p.prototype,"onClickPrevent",null),(0,n.gn)([(0,s.watch)("handle:click")],p.prototype,"onTargetClick",null),(0,n.gn)([(0,s.watch)(":closeTuner.tune")],p.prototype,"closeToolbar",null),p=(0,n.gn)([s.component],p);var a=o(733);const d=["tune.up","tune.remove","tune.down"],f=["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n",...d];function g(e){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+e.toUpperCase()+"</text></svg>",isActive(t,o,n){var i;return(null===(i=null==n?void 0:n.target)||void 0===i?void 0:i.tagName.toLowerCase())===e},exec(t,o){if(o){t.selection.save();const n=c.i.replace(o,e,t.createInside);t.selection.restore(),t.e.fire("synchro"),t.e.fire("afterExecTune.tune",n)}return!0}}}function w(e){const t=e?"previousSibling":"nextSibling";return{icon:e?"angle-up":"angle-down",isDisabled(e,o,n){var i;return!(null===(i=null==n?void 0:n.target)||void 0===i?void 0:i[t])},exec(o,n){const i=null==n?void 0:n[t];return n&&i&&(o.selection.save(),(0,h.call)(e?c.i.before:c.i.after,i,n),o.selection.restore()),o.e.fire("synchro"),o.e.fire("afterExecTune.tune"),!0}}}a.D.prototype.tuneBlock={popup:{p:d,table:d,img:d,blockquote:d,div:d,pre:["tune.editPre",...d],h1:f,h2:f,h3:f,h4:f,h5:f,h6:f}},a.D.prototype.controls.tune={h1:g("h1"),h2:g("h2"),h3:g("h3"),h4:g("h4"),h5:g("h5"),h6:g("h6"),up:w(!0),down:w(!1),editPre:{icon:"pencil",exec(e,t){e.e.fire("editPreInPasteCode",t)}},remove:{icon:"bin",exec(e,t){c.i.safeRemove(t),e.e.fire("synchro"),e.e.fire("closeTuner.tune"),e.e.fire("hideTuner.tune")}}};class b extends i.S{constructor(){super(...arguments),this.requires=["license"]}afterInit(e){this.tuner=new p(e)}hideTuner(){this.tuner.hide()}onChangeSelection(){this.j.s.isCollapsed()||this.hideTuner()}onClickInBlock(e){this.j.s.isCollapsed()&&this.tuner.show()}beforeDestruct(e){this.tuner.destruct()}}(0,n.gn)([(0,s.watch)(":outsideClick :keydown")],b.prototype,"hideTuner",null),(0,n.gn)([(0,s.watch)("j.ed:selectionchange"),(0,s.debounce)()],b.prototype,"onChangeSelection",null),(0,n.gn)([(0,s.watch)(":click")],b.prototype,"onClickInBlock",null),r.Jodit.plugins.add("tune-block",b)},70655(e,t,o){function n(e,t,o,n){var i,s=arguments.length,r=3>s?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(r=(3>s?i(r):s>3?i(t,o,r):i(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r}o.d(t,{gn(){return n}})}},e=>e(e.s=78838)])}));
1
+ "use strict";((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[288],{78838(e,t,o){o.r(t),o.d(t,{tuneBlock(){return b}});var n=o(70655),i=o(10818),s=o(51663),r=o(1120),l=o(86673),c=o(97039),h=o(47643),u=o(30446);let p=class e extends l.u1{constructor(){super(...arguments),this.isShown=!1,this.toolbar=(0,u.R)(this.j,this),this.popup=new l.GI(this.j,!1)}className(){return"UITuner"}render(){return"<div>\n\t\t\t<div class='&__handle' title='~Click to tune~'/>\n\t\t</div>"}show(){const e=this.j.s.current();if(!e)return this.hide();const t=c.i.isBlock(e)?e:c.i.closest(e,(e=>!(!e||!this.j.o.tuneBlock.popup[e.nodeName.toLowerCase()])),this.j.editor);if(!t||t===this.j.editor||!this.j.o.tuneBlock.popup[t.tagName.toLowerCase()])return this.hide();this.currentBlock=t,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)}hide(){this.isShown&&(this.isShown=!1,c.i.safeRemove(this.container),this.closeToolbar())}onEditorScroll(){this.isShown&&this.calcPosition()}calcPosition(){const e=(0,h.css)(this.j.editor,"marginLeft"),t=(0,h.css)(this.j.editor,"paddingLeft"),o=(0,h.css)(this.j.editor,"marginTop");(0,h.css)(this.container,{transform:`translate3d(${this.currentBlock.offsetWidth-15+e+t}px, ${this.currentBlock.offsetTop-this.j.editor.scrollTop+o}px, 0)`}),this.popup.isOpened&&this.popup.updatePosition()}onAfterExecTune(e){e&&(this.currentBlock=e),this.calcPosition(),this.openToolbar()}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onTargetClick(){this.toggleToolbar()}openToolbar(){if(this.setMod("opened",!0),this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()],this.currentBlock),this.popup.setContent(this.toolbar.container),!this.popup.isOpened){const e=this.getElm("handle");(0,h.assert)(null!=e,"Handle element does not exist"),this.popup.open((()=>(0,h.position)(e)))}}closeToolbar(){this.setMod("opened",!1),this.popup.close()}toggleToolbar(){this.getMod("opened")?this.closeToolbar():this.openToolbar()}};(0,n.gn)([(0,s.watch)(":hideTuner.tune")],p.prototype,"hide",null),(0,n.gn)([(0,s.watch)("j.editor:scroll"),(0,s.throttle)(10)],p.prototype,"onEditorScroll",null),(0,n.gn)([(0,s.watch)(":afterExecTune.tune"),(0,s.idle)()],p.prototype,"onAfterExecTune",null),(0,n.gn)([(0,s.watch)("container:click container:mousedown")],p.prototype,"onClickPrevent",null),(0,n.gn)([(0,s.watch)("handle:click")],p.prototype,"onTargetClick",null),(0,n.gn)([(0,s.watch)(":closeTuner.tune")],p.prototype,"closeToolbar",null),p=(0,n.gn)([s.component],p);var a=o(43854);const d=["tune.up","tune.remove","tune.down"],f=["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n",...d];function g(e){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+e.toUpperCase()+"</text></svg>",isActive(t,o,n){var i;return(null===(i=null==n?void 0:n.target)||void 0===i?void 0:i.tagName.toLowerCase())===e},exec(t,o){if(o){t.selection.save();const n=c.i.replace(o,e,t.createInside);t.selection.restore(),t.e.fire("synchro"),t.e.fire("afterExecTune.tune",n)}return!0}}}function w(e){const t=e?"previousSibling":"nextSibling";return{icon:e?"angle-up":"angle-down",isDisabled(e,o,n){var i;return!(null===(i=null==n?void 0:n.target)||void 0===i?void 0:i[t])},exec(o,n){const i=null==n?void 0:n[t];return n&&i&&(o.selection.save(),(0,h.call)(e?c.i.before:c.i.after,i,n),o.selection.restore()),o.e.fire("synchro"),o.e.fire("afterExecTune.tune"),!0}}}a.D.prototype.tuneBlock={popup:{p:d,table:d,img:d,blockquote:d,div:d,pre:["tune.editPre",...d],h1:f,h2:f,h3:f,h4:f,h5:f,h6:f}},a.D.prototype.controls.tune={h1:g("h1"),h2:g("h2"),h3:g("h3"),h4:g("h4"),h5:g("h5"),h6:g("h6"),up:w(!0),down:w(!1),editPre:{icon:"pencil",exec(e,t){e.e.fire("editPreInPasteCode",t)}},remove:{icon:"bin",exec(e,t){c.i.safeRemove(t),e.e.fire("synchro"),e.e.fire("closeTuner.tune"),e.e.fire("hideTuner.tune")}}};class b extends i.S{constructor(){super(...arguments),this.requires=["license"]}afterInit(e){this.tuner=new p(e)}hideTuner(){this.tuner.hide()}onChangeSelection(){this.j.s.isCollapsed()||this.hideTuner()}onClickInBlock(e){this.j.s.isCollapsed()&&this.tuner.show()}beforeDestruct(e){this.tuner.destruct()}}(0,n.gn)([(0,s.watch)(":outsideClick :keydown")],b.prototype,"hideTuner",null),(0,n.gn)([(0,s.watch)("j.ed:selectionchange"),(0,s.debounce)()],b.prototype,"onChangeSelection",null),(0,n.gn)([(0,s.watch)(":click")],b.prototype,"onClickInBlock",null),r.Jodit.plugins.add("tune-block",b)},70655(e,t,o){function n(e,t,o,n){var i,s=arguments.length,r=3>s?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(r=(3>s?i(r):s>3?i(t,o,r):i(t,o))||r);return s>3&&r&&Object.defineProperty(t,o,r),r}o.d(t,{gn(){return n}})}},e=>e(e.s=78838)])}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jodit-pro",
3
- "version": "1.3.34",
3
+ "version": "1.3.35",
4
4
  "author": "Chupurnov Valeriy <chupurnov@gmail.com>",
5
5
  "homepage": "https://xdsoft.net/jodit/pro/",
6
6
  "bugs": {