@ckeditor/ckeditor5-export-word 41.3.1 → 41.3.2

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.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={782:(t,e,n)=>{t.exports=n(237)("./src/core.js")},311:(t,e,n)=>{t.exports=n(237)("./src/ui.js")},237:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{ExportWord:()=>h});var t=n(782),e=n(311);function r(t,e){const n=i();return(r=function(t,e){return n[t-=298]})(t,e)}function s(){const t=r,e=[],n=[];for(const o of Array[t(311)](document[t(336)]))if(o[t(317)][t(340)](t(313)))for(const r of Array[t(311)](o[t(335)]))-1!==r[t(347)][t(332)](t(331))?e[t(309)](r[t(347)]):-1!==r[t(347)][t(332)](t(304))&&n[t(309)](r[t(347)]);return e[t(322)]||console[t(330)](t(341)),[...n,...e][t(338)](" ")[t(303)]()}function i(){const t=["name","trim",":root","EDITOR_STYLES","all","createdAt","getCommentThreads","push","timeZone","from","timezone","data-cke","comments","fetch","keys","ownerNode","1FdRYlC","5904hdKgYb","text","311568zJMutb","length","resolvedOptions","TrackChanges","plugins","161574taZQtH","get","Users","authorId","warn",".ck-content","indexOf","209ITvOYz","CommentsRepository","cssRules","styleSheets","128RvcTQp","join","118675KlNSgq","hasAttribute","The editor stylesheet could not be found in the document. Check your webpack config – style-loader should use data-cke=true attribute for the editor stylesheet.","DateTimeFormat","11810RfUwgg","users","isResolved","content","cssText","813144yXjlHm","map","then","243dCniys","24WtmRPk","getSuggestions","528619csBtlj","has","author","suggestions"];return(i=function(){return t})()}function a(t){const e=r,n=t[e(325)][e(299)](e(328)),o=t[e(325)][e(299)](e(334)),s=t[e(325)][e(299)](e(324)),i={};if(n&&o){const n=function(t){const e=r,n={};if(!t[e(322)])return n;for(const o of t)o[e(314)][e(349)]((t=>{const r=e;void 0===n[o.id]&&(n[o.id]=[]),n[o.id][r(309)]({author:t[r(300)][r(302)],content:t[r(346)],created:t[r(307)],is_resolved:o[r(345)]})}));return n}(t[e(325)][e(327)](e(334))[e(308)]({skipNotAttached:!0,skipEmpty:!0}));Object[e(316)](n)[e(322)]&&(i[e(314)]=n)}if(n&&s){const n=t[e(325)][e(327)](e(324)),o=t[e(325)][e(327)](e(328)),s=function(t,e){const n=r,o={};if(!t[n(322)]||!e[n(322)])return o;for(const r of t)o[r.id]={author:e[n(327)](r[n(329)])[n(302)],created:r[n(307)]};return o}(n[e(353)]({toJSON:!0}),o[e(344)]);Object[e(316)](s)[e(322)]&&(i[e(301)]=s)}return(i[e(301)]||i[e(314)])&&(i[e(312)]=(new(Intl[e(342)]))[e(323)]()[e(310)]),i}!function(t,e){const n=r,o=t();for(;;)try{if(109340===parseInt(n(318))/1*(-parseInt(n(326))/2)+parseInt(n(319))/3*(-parseInt(n(337))/4)+parseInt(n(339))/5*(-parseInt(n(352))/6)+-parseInt(n(298))/7+-parseInt(n(348))/8+parseInt(n(351))/9*(parseInt(n(343))/10)+parseInt(n(333))/11*(parseInt(n(321))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(i);class c extends t.Command{constructor(t){super(t),this.set("isBusy",!1),this.affectsData=!1}refresh(){this.isEnabled=!this.isBusy,this.value=this.isBusy?"pending":void 0}execute(t={}){const e=this.editor,n=e.t,o=t.converterUrl||"https://docx-converter.cke-cs.com/v1/convert",i=t.converterOptions||{},c=e.plugins.get("ExportWord"),u=t.token||c._token,d=!1!==i.auto_pagination,l=t.dataCallback||(t=>t.data.get({pagination:d}));return this.isBusy=!0,this.refresh(),function(t){const e=r;if(!t)return new Promise((t=>t("")));const n=[];for(const o of t)e(305)!==o?n[e(309)](window[e(315)](o)[e(350)]((t=>t[e(320)]()))):n[e(309)](s());return Promise[e(306)](n)[e(350)]((t=>t[e(338)](" ")[e(303)]()))}(t.stylesheets||["EDITOR_STYLES"]).then((async n=>{const r=await l(e),s={html:'<div class="ck-content" dir="'+e.locale.contentLanguageDirection+'">'+r+"</div>",css:n,options:{...i,...a(e)}},c={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/docx",...u?{Authorization:u.value}:null},body:JSON.stringify(s)};return window.fetch(o,c).then((t=>{if(200!==t.status)throw t;return t.blob()})).then((e=>{const n="function"==typeof t.fileName?t.fileName():t.fileName;this._downloadFile(e,n||"document.docx")}))})).catch((t=>{throw e.plugins.get("Notification").showWarning(n("An error occurred while generating the Word file.")),t})).finally((()=>{this.isBusy=!1,this.refresh()}))}_downloadFile(t,e){const n=document.createElement("a");n.href=window.URL.createObjectURL(t),n.download=e,n.click(),n.remove()}}class u extends t.Plugin{static get pluginName(){return"ExportWordUI"}init(){const t=this.editor;t.ui.componentFactory.add("exportWord",(()=>{const n=t.commands.get("exportWord"),o=this._createButton(e.ButtonView);return o.set({tooltip:!0}),o.bind("isOn").to(n,"isBusy"),o})),t.ui.componentFactory.add("menuBar:exportWord",(()=>this._createButton(e.MenuBarMenuListItemButtonView)))}_createButton(t){const n=this.editor,o=n.config.get("exportWord")||{},r=n.locale.t,s=n.commands.get("exportWord"),i=new t(n.locale),a=new e.SpinnerView;return i.children.add(a),a.bind("isVisible").to(s,"isBusy"),i.iconView.bind("isVisible").to(s,"isBusy",(t=>!t)),i.set({label:r("Export to Word"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M17.826 16.843a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Z"/><path d="m14 0 5 4.5v9.741a2.737 2.737 0 0 0-1.5-.617V6.5h-5v-5h-8v3H3V0h11Zm0 2v3h3.3L14 2Z"/><path d="M3 17.5h6.746c.1.22.23.429.391.623l.731.877H3v-1.5Z"/><path d="M8.5 6a1.5 1.5 0 0 1 1.493 1.356L10 7.5v7a1.5 1.5 0 0 1-1.356 1.493L8.5 16h-7a1.5 1.5 0 0 1-1.493-1.356L0 14.5v-7a1.5 1.5 0 0 1 1.356-1.493L1.5 6h7ZM7.483 8.795l-.042.088-.986 2.534-.947-2.528-.043-.092a.601.601 0 0 0-1.042.008l-.042.093-.883 2.465-.937-2.475-.042-.089a.6.6 0 0 0-1.107.42l.027.093 1.514 4 .044.092a.6.6 0 0 0 1.041-.01l.041-.092.88-2.458.925 2.467.046.096a.6.6 0 0 0 1.032 0l.043-.09 1.554-4 .028-.093a.6.6 0 0 0-1.104-.43v.001Z"/></svg>\n'}),i.bind("isEnabled").to(s,"isEnabled"),this.listenTo(i,"execute",(()=>{n.execute("exportWord",o),n.editing.view.focus()})),i}}const d=l;function l(t,e){const n=p();return(l=function(t,e){return n[t-=496]})(t,e)}function p(){const t=["config","tokenUrl","CloudServices","add","plugins","408642BTvFnU","ExportWord","pluginName","380UTpBju","init","editor","get","_token","commands","3596048jihLDl","registerTokenUrl","then","exportWord","11435PCZEwU","token","1664789vOyTxW","401496pUJEyP","826017NCdOgW","159986PUOnCw","requires"];return(p=function(){return t})()}!function(t,e){const n=l,o=t();for(;;)try{if(236494===parseInt(n(514))/1+parseInt(n(496))/2+parseInt(n(513))/3+-parseInt(n(499))/4*(-parseInt(n(509))/5)+parseInt(n(512))/6+-parseInt(n(511))/7+-parseInt(n(505))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(p);class h extends t.Plugin{static get[d(498)](){return d(497)}static get[d(515)](){return[d(518),e.Notification,u]}[d(500)](){const t=d,e=this[t(501)],n=e[t(516)][t(502)](t(508))||{};e[t(504)][t(519)](t(508),new c(e));const o=e[t(520)][t(502)](t(518));!1===n[t(517)]?this[t(503)]=null:n[t(517)]?o[t(506)](n[t(517)])[t(507)]((e=>{this[t(503)]=e})):this[t(503)]=o[t(510)]}}function f(){var t=["144DRlADH","197414OVojUb","3906396feYMvC","8679616rWWgAW","37910aWyAzP","935380ehBFik","99EXGSNX","78946fdxksj","5770457VQhCqI","30kbngye"];return(f=function(){return t})()}function g(t,e){var n=f();return(g=function(t,e){return n[t-=412]})(t,e)}!function(t,e){for(var n=g,o=t();;)try{if(905983===parseInt(n(412))/1+parseInt(n(418))/2*(-parseInt(n(417))/3)+parseInt(n(413))/4+parseInt(n(416))/5*(-parseInt(n(420))/6)+parseInt(n(419))/7+parseInt(n(414))/8+parseInt(n(421))/9*(parseInt(n(415))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f)})(),(window.CKEditor5=window.CKEditor5||{}).exportWord=o})();
5
+ */(()=>{var t={782:(t,e,n)=>{t.exports=n(237)("./src/core.js")},311:(t,e,n)=>{t.exports=n(237)("./src/ui.js")},237:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{ExportWord:()=>h});var t=n(782),e=n(311);function r(){const t=["content","join","499CEAXgi","4323776sZTCjI","3EKSHJV","author","map","users","warn","resolvedOptions","388mkViLE","getCommentThreads","comments","Users","get","18bXZgKH","plugins","authorId","indexOf","name","3197870KDTpaE","ownerNode","39aMJqob","7iUalQf","has","2140358voLXbM","CommentsRepository","631128QpPOyt","timeZone","hasAttribute","push","keys",".ck-content","suggestions","DateTimeFormat","styleSheets","from","all","timezone","cssText","cssRules","TrackChanges","then","20VmCnPz","data-cke",":root","getSuggestions","EDITOR_STYLES","createdAt","1027376QWegdo","The editor stylesheet could not be found in the document. Check your webpack config – style-loader should use data-cke=true attribute for the editor stylesheet.","isResolved","trim","text","fetch","2184090DVoCsv","length"];return(r=function(){return t})()}function s(){const t=a,e=[],n=[];for(const o of Array[t(348)](document[t(347)]))if(o[t(390)][t(398)](t(356)))for(const r of Array[t(348)](o[t(352)]))-1!==r[t(351)][t(387)](t(401))?e[t(399)](r[t(351)]):-1!==r[t(351)][t(387)](t(357))&&n[t(399)](r[t(351)]);return e[t(368)]||console[t(377)](t(362)),[...n,...e][t(370)](" ")[t(364)]()}function i(t){const e=a,n=t[e(385)][e(393)](e(382)),o=t[e(385)][e(393)](e(395)),r=t[e(385)][e(393)](e(353)),s={};if(n&&o){const n=function(t){const e=a,n={};if(!t[e(368)])return n;for(const o of t)o[e(381)][e(375)]((t=>{const r=e;void 0===n[o.id]&&(n[o.id]=[]),n[o.id][r(399)]({author:t[r(374)][r(388)],content:t[r(369)],created:t[r(360)],is_resolved:o[r(363)]})}));return n}(t[e(385)][e(383)](e(395))[e(380)]({skipNotAttached:!0,skipEmpty:!0}));Object[e(400)](n)[e(368)]&&(s[e(381)]=n)}if(n&&r){const n=t[e(385)][e(383)](e(353)),o=t[e(385)][e(383)](e(382)),r=function(t,e){const n=a,o={};if(!t[n(368)]||!e[n(368)])return o;for(const r of t)o[r.id]={author:e[n(383)](r[n(386)])[n(388)],created:r[n(360)]};return o}(n[e(358)]({toJSON:!0}),o[e(376)]);Object[e(400)](r)[e(368)]&&(s[e(402)]=r)}return(s[e(402)]||s[e(381)])&&(s[e(350)]=(new(Intl[e(346)]))[e(378)]()[e(397)]),s}function a(t,e){const n=r();return(a=function(t,e){return n[t-=346]})(t,e)}!function(t){const e=a,n=t();for(;;)try{if(683109===-parseInt(e(371))/1*(parseInt(e(379))/2)+-parseInt(e(373))/3*(-parseInt(e(372))/4)+-parseInt(e(389))/5+-parseInt(e(367))/6*(-parseInt(e(392))/7)+-parseInt(e(361))/8*(parseInt(e(384))/9)+parseInt(e(355))/10*(parseInt(e(394))/11)+parseInt(e(396))/12*(-parseInt(e(391))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(r);class c extends t.Command{constructor(t){super(t),this.set("isBusy",!1),this.affectsData=!1}refresh(){this.isEnabled=!this.isBusy,this.value=this.isBusy?"pending":void 0}execute(t={}){const e=this.editor,n=e.t,o=t.converterUrl||"https://docx-converter.cke-cs.com/v1/convert",r=t.converterOptions||{},c=e.plugins.get("ExportWord"),u=t.token||c._token,d=!1!==r.auto_pagination,p=t.dataCallback||(t=>t.data.get({pagination:d}));return this.isBusy=!0,this.refresh(),function(t){const e=a;if(!t)return new Promise((t=>t("")));const n=[];for(const o of t)e(359)!==o?n[e(399)](window[e(366)](o)[e(354)]((t=>t[e(365)]()))):n[e(399)](s());return Promise[e(349)](n)[e(354)]((t=>t[e(370)](" ")[e(364)]()))}(t.stylesheets||["EDITOR_STYLES"]).then((async n=>{const s=await p(e),a={html:'<div class="ck-content" dir="'+e.locale.contentLanguageDirection+'">'+s+"</div>",css:n,options:{...r,...i(e)}},c={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/docx",...u?{Authorization:u.value}:null},body:JSON.stringify(a)};return window.fetch(o,c).then((t=>{if(200!==t.status)throw t;return t.blob()})).then((e=>{const n="function"==typeof t.fileName?t.fileName():t.fileName;this._downloadFile(e,n||"document.docx")}))})).catch((t=>{throw e.plugins.get("Notification").showWarning(n("An error occurred while generating the Word file.")),t})).finally((()=>{this.isBusy=!1,this.refresh()}))}_downloadFile(t,e){const n=document.createElement("a");n.href=window.URL.createObjectURL(t),n.download=e,n.click(),n.remove()}}class u extends t.Plugin{static get pluginName(){return"ExportWordUI"}init(){const t=this.editor;t.ui.componentFactory.add("exportWord",(()=>{const n=t.commands.get("exportWord"),o=this._createButton(e.ButtonView);return o.set({tooltip:!0}),o.bind("isOn").to(n,"isBusy"),o})),t.ui.componentFactory.add("menuBar:exportWord",(()=>this._createButton(e.MenuBarMenuListItemButtonView)))}_createButton(t){const n=this.editor,o=n.config.get("exportWord")||{},r=n.locale.t,s=n.commands.get("exportWord"),i=new t(n.locale),a=new e.SpinnerView;return i.children.add(a),a.bind("isVisible").to(s,"isBusy"),i.iconView.bind("isVisible").to(s,"isBusy",(t=>!t)),i.set({label:r("Export to Word"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M17.826 16.843a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Z"/><path d="m14 0 5 4.5v9.741a2.737 2.737 0 0 0-1.5-.617V6.5h-5v-5h-8v3H3V0h11Zm0 2v3h3.3L14 2Z"/><path d="M3 17.5h6.746c.1.22.23.429.391.623l.731.877H3v-1.5Z"/><path d="M8.5 6a1.5 1.5 0 0 1 1.493 1.356L10 7.5v7a1.5 1.5 0 0 1-1.356 1.493L8.5 16h-7a1.5 1.5 0 0 1-1.493-1.356L0 14.5v-7a1.5 1.5 0 0 1 1.356-1.493L1.5 6h7ZM7.483 8.795l-.042.088-.986 2.534-.947-2.528-.043-.092a.601.601 0 0 0-1.042.008l-.042.093-.883 2.465-.937-2.475-.042-.089a.6.6 0 0 0-1.107.42l.027.093 1.514 4 .044.092a.6.6 0 0 0 1.041-.01l.041-.092.88-2.458.925 2.467.046.096a.6.6 0 0 0 1.032 0l.043-.09 1.554-4 .028-.093a.6.6 0 0 0-1.104-.43v.001Z"/></svg>\n'}),i.bind("isEnabled").to(s,"isEnabled"),this.listenTo(i,"execute",(()=>{n.execute("exportWord",o),n.editing.view.focus()})),i}}const d=p;function p(t,e){const n=l();return(p=function(t,e){return n[t-=478]})(t,e)}function l(){const t=["4118229vxjCuh","exportWord","4038952CaDGli","get","requires","303707NWmKxo","120VmVfrc","init","config","36075nQxiuN","plugins","editor","CloudServices","commands","pluginName","511746tszYTg","then","tokenUrl","381552KBqOlf","20ikNdYE","ExportWord","1215592KMqjDo","registerTokenUrl","_token","add","token"];return(l=function(){return t})()}!function(t){const e=p,n=t();for(;;)try{if(428375===-parseInt(e(486))/1+-parseInt(e(499))/2+-parseInt(e(490))/3*(-parseInt(e(487))/4)+-parseInt(e(500))/5*(-parseInt(e(496))/6)+parseInt(e(502))/7+parseInt(e(483))/8+-parseInt(e(481))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(l);class h extends t.Plugin{static get[d(495)](){return d(501)}static get[d(485)](){return[d(493),e.Notification,u]}[d(488)](){const t=d,e=this[t(492)],n=e[t(489)][t(484)](t(482))||{};e[t(494)][t(479)](t(482),new c(e));const o=e[t(491)][t(484)](t(493));!1===n[t(498)]?this[t(478)]=null:n[t(498)]?o[t(503)](n[t(498)])[t(497)]((e=>{this[t(478)]=e})):this[t(478)]=o[t(480)]}}function f(t,e){var n=g();return(f=function(t,e){return n[t-=254]})(t,e)}function g(){var t=["959172BYcYgg","1364904QcLmmb","629564YNpoCZ","21mXSpkt","4734865suNwzQ","36POcnTx","1143tKGGlQ","234426pSbljr","35230lJvlth","8747704gyDkro"];return(g=function(){return t})()}!function(t){for(var e=f,n=t();;)try{if(577511===-parseInt(e(258))/1+parseInt(e(257))/2+parseInt(e(263))/3*(parseInt(e(261))/4)+parseInt(e(260))/5+parseInt(e(256))/6*(-parseInt(e(259))/7)+-parseInt(e(255))/8+parseInt(e(262))/9*(parseInt(e(254))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(g)})(),(window.CKEditor5=window.CKEditor5||{}).exportWord=o})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-word",
3
- "version": "41.3.1",
3
+ "version": "41.3.2",
4
4
  "description": "Export to Word feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -30,7 +30,7 @@
30
30
  "type": "module",
31
31
  "main": "src/index.js",
32
32
  "dependencies": {
33
- "ckeditor5": "41.3.1"
33
+ "ckeditor5": "41.3.2"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (https://cksource.com/)",
package/src/exportword.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22cf17=_0x4ed7;(function(_0x3b5d78,_0x2013a9){const _0x3ad2d5=_0x4ed7,_0x2c0a69=_0x3b5d78();while(!![]){try{const _0x516576=parseInt(_0x3ad2d5(0x202))/0x1+parseInt(_0x3ad2d5(0x1f0))/0x2+parseInt(_0x3ad2d5(0x201))/0x3+-parseInt(_0x3ad2d5(0x1f3))/0x4*(-parseInt(_0x3ad2d5(0x1fd))/0x5)+parseInt(_0x3ad2d5(0x200))/0x6+-parseInt(_0x3ad2d5(0x1ff))/0x7+-parseInt(_0x3ad2d5(0x1f9))/0x8;if(_0x516576===_0x2013a9)break;else _0x2c0a69['push'](_0x2c0a69['shift']());}catch(_0x35826f){_0x2c0a69['push'](_0x2c0a69['shift']());}}}(_0x60a7,0x39bce));import{Plugin as _0x1f39ef}from'ckeditor5/src/core.js';import{Notification as _0x5bba46}from'ckeditor5/src/ui.js';import _0x89c501 from'./exportwordcommand.js';function _0x4ed7(_0x30f9e,_0x4ebdba){const _0x60a7a6=_0x60a7();return _0x4ed7=function(_0x4ed7f4,_0xebeb0){_0x4ed7f4=_0x4ed7f4-0x1f0;let _0x3afed6=_0x60a7a6[_0x4ed7f4];return _0x3afed6;},_0x4ed7(_0x30f9e,_0x4ebdba);}import _0x449ddd from'./exportwordui.js';function _0x60a7(){const _0x1604c0=['config','tokenUrl','CloudServices','add','plugins','408642BTvFnU','ExportWord','pluginName','380UTpBju','init','editor','get','_token','commands','3596048jihLDl','registerTokenUrl','then','exportWord','11435PCZEwU','token','1664789vOyTxW','401496pUJEyP','826017NCdOgW','159986PUOnCw','requires'];_0x60a7=function(){return _0x1604c0;};return _0x60a7();}export default class s extends _0x1f39ef{static get[_0x22cf17(0x1f2)](){const _0x3098e5=_0x22cf17;return _0x3098e5(0x1f1);}static get[_0x22cf17(0x203)](){const _0x360208=_0x22cf17;return[_0x360208(0x206),_0x5bba46,_0x449ddd];}[_0x22cf17(0x1f4)](){const _0x3ad68f=_0x22cf17,_0x4f9c6a=this[_0x3ad68f(0x1f5)],_0x10df37=_0x4f9c6a[_0x3ad68f(0x204)][_0x3ad68f(0x1f6)](_0x3ad68f(0x1fc))||{};_0x4f9c6a[_0x3ad68f(0x1f8)][_0x3ad68f(0x207)](_0x3ad68f(0x1fc),new _0x89c501(_0x4f9c6a));const _0x1d46df=_0x4f9c6a[_0x3ad68f(0x208)][_0x3ad68f(0x1f6)](_0x3ad68f(0x206));!0x1===_0x10df37[_0x3ad68f(0x205)]?this[_0x3ad68f(0x1f7)]=null:_0x10df37[_0x3ad68f(0x205)]?_0x1d46df[_0x3ad68f(0x1fa)](_0x10df37[_0x3ad68f(0x205)])[_0x3ad68f(0x1fb)](_0x218acd=>{const _0x112d18=_0x3ad68f;this[_0x112d18(0x1f7)]=_0x218acd;}):this[_0x3ad68f(0x1f7)]=_0x1d46df[_0x3ad68f(0x1fe)];}}
23
+ const _0x5af943=_0x3e19;function _0x3e19(_0x1f7ec7,_0x114187){const _0x5ddeac=_0x5dde();return _0x3e19=function(_0x3e1964,_0x4becb8){_0x3e1964=_0x3e1964-0x1de;let _0x2fa417=_0x5ddeac[_0x3e1964];return _0x2fa417;},_0x3e19(_0x1f7ec7,_0x114187);}(function(_0x1b29be,_0x5cf636){const _0x3b8487=_0x3e19,_0x4b4691=_0x1b29be();while(!![]){try{const _0x4f9a5a=-parseInt(_0x3b8487(0x1e6))/0x1+-parseInt(_0x3b8487(0x1f3))/0x2+-parseInt(_0x3b8487(0x1ea))/0x3*(-parseInt(_0x3b8487(0x1e7))/0x4)+-parseInt(_0x3b8487(0x1f4))/0x5*(-parseInt(_0x3b8487(0x1f0))/0x6)+parseInt(_0x3b8487(0x1f6))/0x7+parseInt(_0x3b8487(0x1e3))/0x8+-parseInt(_0x3b8487(0x1e1))/0x9;if(_0x4f9a5a===_0x5cf636)break;else _0x4b4691['push'](_0x4b4691['shift']());}catch(_0xf2a713){_0x4b4691['push'](_0x4b4691['shift']());}}}(_0x5dde,0x68957));import{Plugin as _0x18921d}from'ckeditor5/src/core.js';import{Notification as _0x1ed11e}from'ckeditor5/src/ui.js';function _0x5dde(){const _0x13df91=['4118229vxjCuh','exportWord','4038952CaDGli','get','requires','303707NWmKxo','120VmVfrc','init','config','36075nQxiuN','plugins','editor','CloudServices','commands','pluginName','511746tszYTg','then','tokenUrl','381552KBqOlf','20ikNdYE','ExportWord','1215592KMqjDo','registerTokenUrl','_token','add','token'];_0x5dde=function(){return _0x13df91;};return _0x5dde();}import _0x5c164b from'./exportwordcommand.js';import _0x54751a from'./exportwordui.js';export default class s extends _0x18921d{static get[_0x5af943(0x1ef)](){const _0x552328=_0x5af943;return _0x552328(0x1f5);}static get[_0x5af943(0x1e5)](){const _0x2f1501=_0x5af943;return[_0x2f1501(0x1ed),_0x1ed11e,_0x54751a];}[_0x5af943(0x1e8)](){const _0x2dc8c8=_0x5af943,_0x3e4d86=this[_0x2dc8c8(0x1ec)],_0x359172=_0x3e4d86[_0x2dc8c8(0x1e9)][_0x2dc8c8(0x1e4)](_0x2dc8c8(0x1e2))||{};_0x3e4d86[_0x2dc8c8(0x1ee)][_0x2dc8c8(0x1df)](_0x2dc8c8(0x1e2),new _0x5c164b(_0x3e4d86));const _0x32308c=_0x3e4d86[_0x2dc8c8(0x1eb)][_0x2dc8c8(0x1e4)](_0x2dc8c8(0x1ed));!0x1===_0x359172[_0x2dc8c8(0x1f2)]?this[_0x2dc8c8(0x1de)]=null:_0x359172[_0x2dc8c8(0x1f2)]?_0x32308c[_0x2dc8c8(0x1f7)](_0x359172[_0x2dc8c8(0x1f2)])[_0x2dc8c8(0x1f1)](_0x6b2281=>{const _0x1400c4=_0x2dc8c8;this[_0x1400c4(0x1de)]=_0x6b2281;}):this[_0x2dc8c8(0x1de)]=_0x32308c[_0x2dc8c8(0x1e0)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x4cc011}from'ckeditor5/src/core.js';import{getStyles as _0x52577f,getConverterOptions as _0x4ad57f}from'./utils.js';export default class e extends _0x4cc011{constructor(_0x435fe1){super(_0x435fe1),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x4c0c12={}){const _0x5082ad=this['editor'],t=_0x5082ad['t'],_0x253c9e=_0x4c0c12['converterUrl']||'https://docx-converter.cke-cs.com/v1/convert',_0x5b4634=_0x4c0c12['converterOptions']||{},_0x1ebb5d=_0x5082ad['plugins']['get']('ExportWord'),_0x24ae98=_0x4c0c12['token']||_0x1ebb5d['_token'],_0x3eee0c=!0x1!==_0x5b4634['auto_pagination'],_0x46cb58=_0x4c0c12['dataCallback']||(_0x490b54=>_0x490b54['data']['get']({'pagination':_0x3eee0c}));return this['isBusy']=!0x0,this['refresh'](),_0x52577f(_0x4c0c12['stylesheets']||['EDITOR_STYLES'])['then'](async _0x188c2c=>{const _0x1fbc91=await _0x46cb58(_0x5082ad),_0x55594c={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x5082ad['locale']['contentLanguageDirection']+'\x22>'+_0x1fbc91+'</div>','css':_0x188c2c,'options':{..._0x5b4634,..._0x4ad57f(_0x5082ad)}},_0x5d97c2={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x24ae98?{'Authorization':_0x24ae98['value']}:null},'body':JSON['stringify'](_0x55594c)};return window['fetch'](_0x253c9e,_0x5d97c2)['then'](_0x5e6c40=>{if(0xc8!==_0x5e6c40['status'])throw _0x5e6c40;return _0x5e6c40['blob']();})['then'](_0x31cf56=>{const _0x59f268='function'==typeof _0x4c0c12['fileName']?_0x4c0c12['fileName']():_0x4c0c12['fileName'];this['_downloadFile'](_0x31cf56,_0x59f268||'document.docx');});})['catch'](_0x452569=>{throw _0x5082ad['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x452569;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x53dcc9,_0x11a11a){const _0x1d5db9=document['createElement']('a');_0x1d5db9['href']=window['URL']['createObjectURL'](_0x53dcc9),_0x1d5db9['download']=_0x11a11a,_0x1d5db9['click'](),_0x1d5db9['remove']();}}
23
+ import{Command as _0x189299}from'ckeditor5/src/core.js';import{getStyles as _0x5aab4c,getConverterOptions as _0x53e21b}from'./utils.js';export default class e extends _0x189299{constructor(_0x1ff7ac){super(_0x1ff7ac),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x4a4a5a={}){const _0x611ae8=this['editor'],t=_0x611ae8['t'],_0x362d1a=_0x4a4a5a['converterUrl']||'https://docx-converter.cke-cs.com/v1/convert',_0x4ab901=_0x4a4a5a['converterOptions']||{},_0x2e8e54=_0x611ae8['plugins']['get']('ExportWord'),_0x29bc27=_0x4a4a5a['token']||_0x2e8e54['_token'],_0x2a6a41=!0x1!==_0x4ab901['auto_pagination'],_0x50ffdb=_0x4a4a5a['dataCallback']||(_0x42cf41=>_0x42cf41['data']['get']({'pagination':_0x2a6a41}));return this['isBusy']=!0x0,this['refresh'](),_0x5aab4c(_0x4a4a5a['stylesheets']||['EDITOR_STYLES'])['then'](async _0x5625fd=>{const _0x5cedbc=await _0x50ffdb(_0x611ae8),_0x188eb5={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x611ae8['locale']['contentLanguageDirection']+'\x22>'+_0x5cedbc+'</div>','css':_0x5625fd,'options':{..._0x4ab901,..._0x53e21b(_0x611ae8)}},_0x5ae7de={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x29bc27?{'Authorization':_0x29bc27['value']}:null},'body':JSON['stringify'](_0x188eb5)};return window['fetch'](_0x362d1a,_0x5ae7de)['then'](_0x418d51=>{if(0xc8!==_0x418d51['status'])throw _0x418d51;return _0x418d51['blob']();})['then'](_0x1877f9=>{const _0x1a628b='function'==typeof _0x4a4a5a['fileName']?_0x4a4a5a['fileName']():_0x4a4a5a['fileName'];this['_downloadFile'](_0x1877f9,_0x1a628b||'document.docx');});})['catch'](_0x54fc6c=>{throw _0x611ae8['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x54fc6c;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0xc46bb3,_0x3ad737){const _0x264e4f=document['createElement']('a');_0x264e4f['href']=window['URL']['createObjectURL'](_0xc46bb3),_0x264e4f['download']=_0x3ad737,_0x264e4f['click'](),_0x264e4f['remove']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xf8c2e7}from'ckeditor5/src/core.js';import{ButtonView as _0x6241b8,MenuBarMenuListItemButtonView as _0x1f2945,SpinnerView as _0x2bbba4}from'ckeditor5/src/ui.js';import _0x1832d1 from'../theme/icons/exportword.svg';export default class i extends _0xf8c2e7{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x19a361=this['editor'];_0x19a361['ui']['componentFactory']['add']('exportWord',()=>{const _0x2cedd5=_0x19a361['commands']['get']('exportWord'),_0xe3c259=this['_createButton'](_0x6241b8);return _0xe3c259['set']({'tooltip':!0x0}),_0xe3c259['bind']('isOn')['to'](_0x2cedd5,'isBusy'),_0xe3c259;}),_0x19a361['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x1f2945));}['_createButton'](_0x213c4b){const _0x39e9dc=this['editor'],_0x4ecfd4=_0x39e9dc['config']['get']('exportWord')||{},t=_0x39e9dc['locale']['t'],_0x16afbd=_0x39e9dc['commands']['get']('exportWord'),_0x1e97f3=new _0x213c4b(_0x39e9dc['locale']),_0x498597=new _0x2bbba4();return _0x1e97f3['children']['add'](_0x498597),_0x498597['bind']('isVisible')['to'](_0x16afbd,'isBusy'),_0x1e97f3['iconView']['bind']('isVisible')['to'](_0x16afbd,'isBusy',_0x4663b7=>!_0x4663b7),_0x1e97f3['set']({'label':t('Export\x20to\x20Word'),'icon':_0x1832d1}),_0x1e97f3['bind']('isEnabled')['to'](_0x16afbd,'isEnabled'),this['listenTo'](_0x1e97f3,'execute',()=>{_0x39e9dc['execute']('exportWord',_0x4ecfd4),_0x39e9dc['editing']['view']['focus']();}),_0x1e97f3;}}
23
+ import{Plugin as _0x300146}from'ckeditor5/src/core.js';import{ButtonView as _0x462d1,MenuBarMenuListItemButtonView as _0x58fdd5,SpinnerView as _0x344277}from'ckeditor5/src/ui.js';import _0x565fa1 from'../theme/icons/exportword.svg';export default class i extends _0x300146{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x5d2bdc=this['editor'];_0x5d2bdc['ui']['componentFactory']['add']('exportWord',()=>{const _0x7bdf6=_0x5d2bdc['commands']['get']('exportWord'),_0x3a71ae=this['_createButton'](_0x462d1);return _0x3a71ae['set']({'tooltip':!0x0}),_0x3a71ae['bind']('isOn')['to'](_0x7bdf6,'isBusy'),_0x3a71ae;}),_0x5d2bdc['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x58fdd5));}['_createButton'](_0x228f8f){const _0x32aaaf=this['editor'],_0x214991=_0x32aaaf['config']['get']('exportWord')||{},t=_0x32aaaf['locale']['t'],_0x57652a=_0x32aaaf['commands']['get']('exportWord'),_0x33f67a=new _0x228f8f(_0x32aaaf['locale']),_0x3ab4d3=new _0x344277();return _0x33f67a['children']['add'](_0x3ab4d3),_0x3ab4d3['bind']('isVisible')['to'](_0x57652a,'isBusy'),_0x33f67a['iconView']['bind']('isVisible')['to'](_0x57652a,'isBusy',_0x29f40d=>!_0x29f40d),_0x33f67a['set']({'label':t('Export\x20to\x20Word'),'icon':_0x565fa1}),_0x33f67a['bind']('isEnabled')['to'](_0x57652a,'isEnabled'),this['listenTo'](_0x33f67a,'execute',()=>{_0x32aaaf['execute']('exportWord',_0x214991),_0x32aaaf['editing']['view']['focus']();}),_0x33f67a;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x3fce1d,_0x480514){var _0x1b3807=_0xf792,_0x41a841=_0x3fce1d();while(!![]){try{var _0x1109ee=parseInt(_0x1b3807(0x19c))/0x1+parseInt(_0x1b3807(0x1a2))/0x2*(-parseInt(_0x1b3807(0x1a1))/0x3)+parseInt(_0x1b3807(0x19d))/0x4+parseInt(_0x1b3807(0x1a0))/0x5*(-parseInt(_0x1b3807(0x1a4))/0x6)+parseInt(_0x1b3807(0x1a3))/0x7+parseInt(_0x1b3807(0x19e))/0x8+parseInt(_0x1b3807(0x1a5))/0x9*(parseInt(_0x1b3807(0x19f))/0xa);if(_0x1109ee===_0x480514)break;else _0x41a841['push'](_0x41a841['shift']());}catch(_0x1b56df){_0x41a841['push'](_0x41a841['shift']());}}}(_0xad49,0xdd2ff));export{default as ExportWord}from'./exportword.js';function _0xad49(){var _0x175c98=['144DRlADH','197414OVojUb','3906396feYMvC','8679616rWWgAW','37910aWyAzP','935380ehBFik','99EXGSNX','78946fdxksj','5770457VQhCqI','30kbngye'];_0xad49=function(){return _0x175c98;};return _0xad49();}function _0xf792(_0x5636f6,_0x40c908){var _0xad49f8=_0xad49();return _0xf792=function(_0xf7923b,_0x503913){_0xf7923b=_0xf7923b-0x19c;var _0x3728bf=_0xad49f8[_0xf7923b];return _0x3728bf;},_0xf792(_0x5636f6,_0x40c908);}import'./augmentation.js';
23
+ function _0x27e9(_0x5c5d53,_0x1eb805){var _0x409142=_0x4091();return _0x27e9=function(_0x27e978,_0x5c1dff){_0x27e978=_0x27e978-0xfe;var _0x100108=_0x409142[_0x27e978];return _0x100108;},_0x27e9(_0x5c5d53,_0x1eb805);}(function(_0x5adb68,_0xfede63){var _0x42c2a3=_0x27e9,_0x4ace13=_0x5adb68();while(!![]){try{var _0x4acb8a=-parseInt(_0x42c2a3(0x102))/0x1+parseInt(_0x42c2a3(0x101))/0x2+parseInt(_0x42c2a3(0x107))/0x3*(parseInt(_0x42c2a3(0x105))/0x4)+parseInt(_0x42c2a3(0x104))/0x5+parseInt(_0x42c2a3(0x100))/0x6*(-parseInt(_0x42c2a3(0x103))/0x7)+-parseInt(_0x42c2a3(0xff))/0x8+parseInt(_0x42c2a3(0x106))/0x9*(parseInt(_0x42c2a3(0xfe))/0xa);if(_0x4acb8a===_0xfede63)break;else _0x4ace13['push'](_0x4ace13['shift']());}catch(_0xe1b14a){_0x4ace13['push'](_0x4ace13['shift']());}}}(_0x4091,0x8cfe7));function _0x4091(){var _0x3842ec=['959172BYcYgg','1364904QcLmmb','629564YNpoCZ','21mXSpkt','4734865suNwzQ','36POcnTx','1143tKGGlQ','234426pSbljr','35230lJvlth','8747704gyDkro'];_0x4091=function(){return _0x3842ec;};return _0x4091();}export{default as ExportWord}from'./exportword.js';import'./augmentation.js';
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2435de,_0x3dbf51){const _0x3c5a03=_0x21b8,_0x542216=_0x2435de();while(!![]){try{const _0x5c06e2=parseInt(_0x3c5a03(0x13e))/0x1*(-parseInt(_0x3c5a03(0x146))/0x2)+parseInt(_0x3c5a03(0x13f))/0x3*(-parseInt(_0x3c5a03(0x151))/0x4)+parseInt(_0x3c5a03(0x153))/0x5*(-parseInt(_0x3c5a03(0x160))/0x6)+-parseInt(_0x3c5a03(0x12a))/0x7+-parseInt(_0x3c5a03(0x15c))/0x8+parseInt(_0x3c5a03(0x15f))/0x9*(parseInt(_0x3c5a03(0x157))/0xa)+parseInt(_0x3c5a03(0x14d))/0xb*(parseInt(_0x3c5a03(0x141))/0xc);if(_0x5c06e2===_0x3dbf51)break;else _0x542216['push'](_0x542216['shift']());}catch(_0x5a42c0){_0x542216['push'](_0x542216['shift']());}}}(_0x50ec,0x1ab1c));function _0x21b8(_0x3cb6f6,_0x10f310){const _0x50ec3a=_0x50ec();return _0x21b8=function(_0x21b855,_0x2ab53f){_0x21b855=_0x21b855-0x12a;let _0x1c170f=_0x50ec3a[_0x21b855];return _0x1c170f;},_0x21b8(_0x3cb6f6,_0x10f310);}export function getStyles(_0x35779f){const _0x1aae73=_0x21b8;if(!_0x35779f)return new Promise(_0x3f83c6=>_0x3f83c6(''));const _0x5b72d5=[];for(const _0x5e6bd9 of _0x35779f)_0x1aae73(0x131)!==_0x5e6bd9?_0x5b72d5[_0x1aae73(0x135)](window[_0x1aae73(0x13b)](_0x5e6bd9)[_0x1aae73(0x15e)](_0x115a28=>_0x115a28[_0x1aae73(0x140)]())):_0x5b72d5[_0x1aae73(0x135)](f());return Promise[_0x1aae73(0x132)](_0x5b72d5)[_0x1aae73(0x15e)](_0x4a73bb=>_0x4a73bb[_0x1aae73(0x152)]('\x20')[_0x1aae73(0x12f)]());}function f(){const _0x5d4545=_0x21b8,_0x220a71=[],_0x64623c=[];for(const _0x55b127 of Array[_0x5d4545(0x137)](document[_0x5d4545(0x150)])){if(_0x55b127[_0x5d4545(0x13d)][_0x5d4545(0x154)](_0x5d4545(0x139))){for(const _0x240305 of Array[_0x5d4545(0x137)](_0x55b127[_0x5d4545(0x14f)]))-0x1!==_0x240305[_0x5d4545(0x15b)][_0x5d4545(0x14c)](_0x5d4545(0x14b))?_0x220a71[_0x5d4545(0x135)](_0x240305[_0x5d4545(0x15b)]):-0x1!==_0x240305[_0x5d4545(0x15b)][_0x5d4545(0x14c)](_0x5d4545(0x130))&&_0x64623c[_0x5d4545(0x135)](_0x240305[_0x5d4545(0x15b)]);}}return _0x220a71[_0x5d4545(0x142)]||console[_0x5d4545(0x14a)](_0x5d4545(0x155)),[..._0x64623c,..._0x220a71][_0x5d4545(0x152)]('\x20')[_0x5d4545(0x12f)]();}function _0x50ec(){const _0x251fbf=['name','trim',':root','EDITOR_STYLES','all','createdAt','getCommentThreads','push','timeZone','from','timezone','data-cke','comments','fetch','keys','ownerNode','1FdRYlC','5904hdKgYb','text','311568zJMutb','length','resolvedOptions','TrackChanges','plugins','161574taZQtH','get','Users','authorId','warn','.ck-content','indexOf','209ITvOYz','CommentsRepository','cssRules','styleSheets','128RvcTQp','join','118675KlNSgq','hasAttribute','The\x20editor\x20stylesheet\x20could\x20not\x20be\x20found\x20in\x20the\x20document.\x20Check\x20your\x20webpack\x20config\x20–\x20style-loader\x20should\x20use\x20data-cke=true\x20attribute\x20for\x20the\x20editor\x20stylesheet.','DateTimeFormat','11810RfUwgg','users','isResolved','content','cssText','813144yXjlHm','map','then','243dCniys','24WtmRPk','getSuggestions','528619csBtlj','has','author','suggestions'];_0x50ec=function(){return _0x251fbf;};return _0x50ec();}export function getConverterOptions(_0x34305b){const _0x186196=_0x21b8,_0x7eedff=_0x34305b[_0x186196(0x145)][_0x186196(0x12b)](_0x186196(0x148)),_0x41ae29=_0x34305b[_0x186196(0x145)][_0x186196(0x12b)](_0x186196(0x14e)),_0x1154ec=_0x34305b[_0x186196(0x145)][_0x186196(0x12b)](_0x186196(0x144)),_0x110bc3={};if(_0x7eedff&&_0x41ae29){const _0x1b2aee=getComments(_0x34305b[_0x186196(0x145)][_0x186196(0x147)](_0x186196(0x14e))[_0x186196(0x134)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x186196(0x13c)](_0x1b2aee)[_0x186196(0x142)]&&(_0x110bc3[_0x186196(0x13a)]=_0x1b2aee);}if(_0x7eedff&&_0x1154ec){const _0x2758fd=_0x34305b[_0x186196(0x145)][_0x186196(0x147)](_0x186196(0x144)),_0x5ac0cb=_0x34305b[_0x186196(0x145)][_0x186196(0x147)](_0x186196(0x148)),_0x54df6e=getSuggestions(_0x2758fd[_0x186196(0x161)]({'toJSON':!0x0}),_0x5ac0cb[_0x186196(0x158)]);Object[_0x186196(0x13c)](_0x54df6e)[_0x186196(0x142)]&&(_0x110bc3[_0x186196(0x12d)]=_0x54df6e);}return(_0x110bc3[_0x186196(0x12d)]||_0x110bc3[_0x186196(0x13a)])&&(_0x110bc3[_0x186196(0x138)]=new Intl[(_0x186196(0x156))]()[_0x186196(0x143)]()[_0x186196(0x136)]),_0x110bc3;}export function getComments(_0x40519d){const _0x3e2f57=_0x21b8,_0x3d37d2={};if(!_0x40519d[_0x3e2f57(0x142)])return _0x3d37d2;for(const _0x483477 of _0x40519d)_0x483477[_0x3e2f57(0x13a)][_0x3e2f57(0x15d)](_0x154ad4=>{const _0x4ff1e1=_0x3e2f57;void 0x0===_0x3d37d2[_0x483477['id']]&&(_0x3d37d2[_0x483477['id']]=[]),_0x3d37d2[_0x483477['id']][_0x4ff1e1(0x135)]({'author':_0x154ad4[_0x4ff1e1(0x12c)][_0x4ff1e1(0x12e)],'content':_0x154ad4[_0x4ff1e1(0x15a)],'created':_0x154ad4[_0x4ff1e1(0x133)],'is_resolved':_0x483477[_0x4ff1e1(0x159)]});});return _0x3d37d2;}export function getSuggestions(_0x1c5ba4,_0x2973fd){const _0x69ca60=_0x21b8,_0x38a061={};if(!_0x1c5ba4[_0x69ca60(0x142)]||!_0x2973fd[_0x69ca60(0x142)])return _0x38a061;for(const _0x5f2fbb of _0x1c5ba4)_0x38a061[_0x5f2fbb['id']]={'author':_0x2973fd[_0x69ca60(0x147)](_0x5f2fbb[_0x69ca60(0x149)])[_0x69ca60(0x12e)],'created':_0x5f2fbb[_0x69ca60(0x133)]};return _0x38a061;}
23
+ (function(_0x1e9253,_0x44a21e){const _0x4a2d3a=_0x58ea,_0x4980ba=_0x1e9253();while(!![]){try{const _0x576fcd=-parseInt(_0x4a2d3a(0x173))/0x1*(parseInt(_0x4a2d3a(0x17b))/0x2)+-parseInt(_0x4a2d3a(0x175))/0x3*(-parseInt(_0x4a2d3a(0x174))/0x4)+-parseInt(_0x4a2d3a(0x185))/0x5+-parseInt(_0x4a2d3a(0x16f))/0x6*(-parseInt(_0x4a2d3a(0x188))/0x7)+-parseInt(_0x4a2d3a(0x169))/0x8*(parseInt(_0x4a2d3a(0x180))/0x9)+parseInt(_0x4a2d3a(0x163))/0xa*(parseInt(_0x4a2d3a(0x18a))/0xb)+parseInt(_0x4a2d3a(0x18c))/0xc*(-parseInt(_0x4a2d3a(0x187))/0xd);if(_0x576fcd===_0x44a21e)break;else _0x4980ba['push'](_0x4980ba['shift']());}catch(_0x2e72ff){_0x4980ba['push'](_0x4980ba['shift']());}}}(_0x410f,0xa6c65));function _0x410f(){const _0x2c5152=['content','join','499CEAXgi','4323776sZTCjI','3EKSHJV','author','map','users','warn','resolvedOptions','388mkViLE','getCommentThreads','comments','Users','get','18bXZgKH','plugins','authorId','indexOf','name','3197870KDTpaE','ownerNode','39aMJqob','7iUalQf','has','2140358voLXbM','CommentsRepository','631128QpPOyt','timeZone','hasAttribute','push','keys','.ck-content','suggestions','DateTimeFormat','styleSheets','from','all','timezone','cssText','cssRules','TrackChanges','then','20VmCnPz','data-cke',':root','getSuggestions','EDITOR_STYLES','createdAt','1027376QWegdo','The\x20editor\x20stylesheet\x20could\x20not\x20be\x20found\x20in\x20the\x20document.\x20Check\x20your\x20webpack\x20config\x20–\x20style-loader\x20should\x20use\x20data-cke=true\x20attribute\x20for\x20the\x20editor\x20stylesheet.','isResolved','trim','text','fetch','2184090DVoCsv','length'];_0x410f=function(){return _0x2c5152;};return _0x410f();}export function getStyles(_0x29d520){const _0x29ed1a=_0x58ea;if(!_0x29d520)return new Promise(_0x3a96ac=>_0x3a96ac(''));const _0x3b1612=[];for(const _0x200065 of _0x29d520)_0x29ed1a(0x167)!==_0x200065?_0x3b1612[_0x29ed1a(0x18f)](window[_0x29ed1a(0x16e)](_0x200065)[_0x29ed1a(0x162)](_0x5ec7f0=>_0x5ec7f0[_0x29ed1a(0x16d)]())):_0x3b1612[_0x29ed1a(0x18f)](f());return Promise[_0x29ed1a(0x15d)](_0x3b1612)[_0x29ed1a(0x162)](_0x31c427=>_0x31c427[_0x29ed1a(0x172)]('\x20')[_0x29ed1a(0x16c)]());}function f(){const _0x23f556=_0x58ea,_0x4ef287=[],_0x42bc79=[];for(const _0x43170a of Array[_0x23f556(0x15c)](document[_0x23f556(0x15b)])){if(_0x43170a[_0x23f556(0x186)][_0x23f556(0x18e)](_0x23f556(0x164))){for(const _0x5656df of Array[_0x23f556(0x15c)](_0x43170a[_0x23f556(0x160)]))-0x1!==_0x5656df[_0x23f556(0x15f)][_0x23f556(0x183)](_0x23f556(0x191))?_0x4ef287[_0x23f556(0x18f)](_0x5656df[_0x23f556(0x15f)]):-0x1!==_0x5656df[_0x23f556(0x15f)][_0x23f556(0x183)](_0x23f556(0x165))&&_0x42bc79[_0x23f556(0x18f)](_0x5656df[_0x23f556(0x15f)]);}}return _0x4ef287[_0x23f556(0x170)]||console[_0x23f556(0x179)](_0x23f556(0x16a)),[..._0x42bc79,..._0x4ef287][_0x23f556(0x172)]('\x20')[_0x23f556(0x16c)]();}export function getConverterOptions(_0xd68d4e){const _0x17c676=_0x58ea,_0x5be9f3=_0xd68d4e[_0x17c676(0x181)][_0x17c676(0x189)](_0x17c676(0x17e)),_0x1c5179=_0xd68d4e[_0x17c676(0x181)][_0x17c676(0x189)](_0x17c676(0x18b)),_0x1ef042=_0xd68d4e[_0x17c676(0x181)][_0x17c676(0x189)](_0x17c676(0x161)),_0x10cc95={};if(_0x5be9f3&&_0x1c5179){const _0x4d66b3=getComments(_0xd68d4e[_0x17c676(0x181)][_0x17c676(0x17f)](_0x17c676(0x18b))[_0x17c676(0x17c)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x17c676(0x190)](_0x4d66b3)[_0x17c676(0x170)]&&(_0x10cc95[_0x17c676(0x17d)]=_0x4d66b3);}if(_0x5be9f3&&_0x1ef042){const _0x140fc7=_0xd68d4e[_0x17c676(0x181)][_0x17c676(0x17f)](_0x17c676(0x161)),_0x49e2d3=_0xd68d4e[_0x17c676(0x181)][_0x17c676(0x17f)](_0x17c676(0x17e)),_0x1e1a5d=getSuggestions(_0x140fc7[_0x17c676(0x166)]({'toJSON':!0x0}),_0x49e2d3[_0x17c676(0x178)]);Object[_0x17c676(0x190)](_0x1e1a5d)[_0x17c676(0x170)]&&(_0x10cc95[_0x17c676(0x192)]=_0x1e1a5d);}return(_0x10cc95[_0x17c676(0x192)]||_0x10cc95[_0x17c676(0x17d)])&&(_0x10cc95[_0x17c676(0x15e)]=new Intl[(_0x17c676(0x15a))]()[_0x17c676(0x17a)]()[_0x17c676(0x18d)]),_0x10cc95;}function _0x58ea(_0x1f3a48,_0x4d67f4){const _0x410f70=_0x410f();return _0x58ea=function(_0x58ea58,_0x1879f8){_0x58ea58=_0x58ea58-0x15a;let _0x5dcee3=_0x410f70[_0x58ea58];return _0x5dcee3;},_0x58ea(_0x1f3a48,_0x4d67f4);}export function getComments(_0x342b3f){const _0x437f1c=_0x58ea,_0x1a2dba={};if(!_0x342b3f[_0x437f1c(0x170)])return _0x1a2dba;for(const _0x560509 of _0x342b3f)_0x560509[_0x437f1c(0x17d)][_0x437f1c(0x177)](_0x58d0c1=>{const _0x74bdcb=_0x437f1c;void 0x0===_0x1a2dba[_0x560509['id']]&&(_0x1a2dba[_0x560509['id']]=[]),_0x1a2dba[_0x560509['id']][_0x74bdcb(0x18f)]({'author':_0x58d0c1[_0x74bdcb(0x176)][_0x74bdcb(0x184)],'content':_0x58d0c1[_0x74bdcb(0x171)],'created':_0x58d0c1[_0x74bdcb(0x168)],'is_resolved':_0x560509[_0x74bdcb(0x16b)]});});return _0x1a2dba;}export function getSuggestions(_0x11db98,_0x4c9cb8){const _0x510428=_0x58ea,_0x15f2b7={};if(!_0x11db98[_0x510428(0x170)]||!_0x4c9cb8[_0x510428(0x170)])return _0x15f2b7;for(const _0x2cae66 of _0x11db98)_0x15f2b7[_0x2cae66['id']]={'author':_0x4c9cb8[_0x510428(0x17f)](_0x2cae66[_0x510428(0x182)])[_0x510428(0x184)],'created':_0x2cae66[_0x510428(0x168)]};return _0x15f2b7;}