@ckeditor/ckeditor5-export-word 41.3.0 → 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(){const t=["1014765HMnLWn","data-cke","2360192jdTtNC","users","author","comments","content","1637977yXmhWa","text","plugins",".ck-content","12zvfAGU",":root","9witnma","getCommentThreads","from","has","1JpIIty","all","160744TKaRhT","DateTimeFormat","name","391946PBwuPp","push","hasAttribute","ownerNode","cssRules","authorId","join","fetch","2658621SoWoXw","map","67005QsUvCI","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.","EDITOR_STYLES","then","keys","Users","get","6XXcZwW","createdAt","CommentsRepository","timezone","cssText","getSuggestions","TrackChanges","resolvedOptions","styleSheets","length","suggestions","indexOf","isResolved","warn","510uNkniX","trim","timeZone"];return(r=function(){return t})()}function s(){const t=i,e=[],n=[];for(const o of Array[t(364)](document[t(396)]))if(o[t(374)][t(373)](t(350)))for(const r of Array[t(364)](o[t(375)]))-1!==r[t(392)][t(399)](t(359))?e[t(372)](r[t(392)]):-1!==r[t(392)][t(399)](t(361))&&n[t(372)](r[t(392)]);return e[t(397)]||console[t(401)](t(382)),[...n,...e][t(377)](" ")[t(403)]()}function i(t,e){const n=r();return(i=function(t,e){return n[t-=350]})(t,e)}function a(t){const e=i,n=t[e(358)][e(365)](e(386)),o=t[e(358)][e(365)](e(390)),r=t[e(358)][e(365)](e(394)),s={};if(n&&o){const n=function(t){const e=i,n={};if(!t[e(397)])return n;for(const o of t)o[e(354)][e(380)]((t=>{const r=e;void 0===n[o.id]&&(n[o.id]=[]),n[o.id][r(372)]({author:t[r(353)][r(370)],content:t[r(355)],created:t[r(389)],is_resolved:o[r(400)]})}));return n}(t[e(358)][e(387)](e(390))[e(363)]({skipNotAttached:!0,skipEmpty:!0}));Object[e(385)](n)[e(397)]&&(s[e(354)]=n)}if(n&&r){const n=t[e(358)][e(387)](e(394)),o=t[e(358)][e(387)](e(386)),r=function(t,e){const n=i,o={};if(!t[n(397)]||!e[n(397)])return o;for(const r of t)o[r.id]={author:e[n(387)](r[n(376)])[n(370)],created:r[n(389)]};return o}(n[e(393)]({toJSON:!0}),o[e(352)]);Object[e(385)](r)[e(397)]&&(s[e(398)]=r)}return(s[e(398)]||s[e(354)])&&(s[e(391)]=(new(Intl[e(369)]))[e(395)]()[e(404)]),s}!function(t,e){const n=i,o=t();for(;;)try{if(335013===parseInt(n(366))/1*(-parseInt(n(371))/2)+parseInt(n(362))/3*(parseInt(n(368))/4)+-parseInt(n(405))/5+parseInt(n(388))/6*(parseInt(n(379))/7)+-parseInt(n(351))/8+parseInt(n(381))/9*(parseInt(n(402))/10)+parseInt(n(356))/11*(parseInt(n(360))/12))break;o.push(o.shift())}catch(t){o.push(o.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=i;if(!t)return new Promise((t=>t("")));const n=[];for(const o of t)e(383)!==o?n[e(372)](window[e(378)](o)[e(384)]((t=>t[e(357)]()))):n[e(372)](s());return Promise[e(367)](n)[e(384)]((t=>t[e(377)](" ")[e(403)]()))}(t.stylesheets||["EDITOR_STYLES"]).then((async n=>{const s=await p(e),i={html:'<div class="ck-content" dir="'+e.locale.contentLanguageDirection+'">'+s+"</div>",css:n,options:{...r,...a(e)}},c={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/docx",...u?{Authorization:u.value}:null},body:JSON.stringify(i)};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}}function d(t,e){const n=l();return(d=function(t,e){return n[t-=199]})(t,e)}const p=d;function l(){const t=["requires","registerTokenUrl","1080605NtoQXu","CloudServices","plugins","config","1601633wrQOUy","429SvFKSR","109608oHVosd","add","tokenUrl","get","6GoUprh","24DUGjoU","pluginName","10xFGADe","token","init","then","ExportWord","exportWord","640423VOXvbP","3270249cStrUz","_token","editor","2704RWTCCG","2194650KzOyYE","commands"];return(l=function(){return t})()}!function(t,e){const n=d,o=t();for(;;)try{if(213113===-parseInt(n(208))/1*(parseInt(n(204))/2)+-parseInt(n(203))/3*(parseInt(n(221))/4)+parseInt(n(226))/5+parseInt(n(222))/6+parseInt(n(217))/7*(parseInt(n(209))/8)+parseInt(n(218))/9*(-parseInt(n(211))/10)+parseInt(n(202))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class h extends t.Plugin{static get[p(210)](){return p(215)}static get[p(224)](){return[p(199),e.Notification,u]}[p(213)](){const t=p,e=this[t(220)],n=e[t(201)][t(207)](t(216))||{};e[t(223)][t(205)](t(216),new c(e));const o=e[t(200)][t(207)](t(199));!1===n[t(206)]?this[t(219)]=null:n[t(206)]?o[t(225)](n[t(206)])[t(214)]((e=>{this[t(219)]=e})):this[t(219)]=o[t(212)]}}function f(t,e){var n=g();return(f=function(t,e){return n[t-=260]})(t,e)}function g(){var t=["3199150yMENMY","81450tnzSNk","495464xWkpYY","55QesRYE","4546615vvAZTx","287slghTd","828796nsdZGi","3294736xZhyKr","153FyorqS","6pKmusN","785538VUouET"];return(g=function(){return t})()}!function(t,e){for(var n=f,o=t();;)try{if(567166===-parseInt(n(267))/1+-parseInt(n(270))/2*(parseInt(n(260))/3)+-parseInt(n(268))/4+parseInt(n(265))/5+parseInt(n(262))/6*(-parseInt(n(266))/7)+parseInt(n(263))/8*(parseInt(n(269))/9)+-parseInt(n(261))/10*(-parseInt(n(264))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(g)})(),(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.0",
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.0"
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
- function _0xc3e1(_0xc3ceb5,_0x350d25){const _0x14986b=_0x1498();return _0xc3e1=function(_0xc3e1f7,_0x25c69d){_0xc3e1f7=_0xc3e1f7-0xc7;let _0x1fc40a=_0x14986b[_0xc3e1f7];return _0x1fc40a;},_0xc3e1(_0xc3ceb5,_0x350d25);}const _0x54e269=_0xc3e1;function _0x1498(){const _0x2d2dbd=['requires','registerTokenUrl','1080605NtoQXu','CloudServices','plugins','config','1601633wrQOUy','429SvFKSR','109608oHVosd','add','tokenUrl','get','6GoUprh','24DUGjoU','pluginName','10xFGADe','token','init','then','ExportWord','exportWord','640423VOXvbP','3270249cStrUz','_token','editor','2704RWTCCG','2194650KzOyYE','commands'];_0x1498=function(){return _0x2d2dbd;};return _0x1498();}(function(_0x86e73e,_0x598f4c){const _0xbe4c98=_0xc3e1,_0x39c34d=_0x86e73e();while(!![]){try{const _0x52d27b=-parseInt(_0xbe4c98(0xd0))/0x1*(parseInt(_0xbe4c98(0xcc))/0x2)+-parseInt(_0xbe4c98(0xcb))/0x3*(parseInt(_0xbe4c98(0xdd))/0x4)+parseInt(_0xbe4c98(0xe2))/0x5+parseInt(_0xbe4c98(0xde))/0x6+parseInt(_0xbe4c98(0xd9))/0x7*(parseInt(_0xbe4c98(0xd1))/0x8)+parseInt(_0xbe4c98(0xda))/0x9*(-parseInt(_0xbe4c98(0xd3))/0xa)+parseInt(_0xbe4c98(0xca))/0xb;if(_0x52d27b===_0x598f4c)break;else _0x39c34d['push'](_0x39c34d['shift']());}catch(_0x4cd2e3){_0x39c34d['push'](_0x39c34d['shift']());}}}(_0x1498,0x34079));import{Plugin as _0x3bd120}from'ckeditor5/src/core.js';import{Notification as _0x13ed4b}from'ckeditor5/src/ui.js';import _0x26ea76 from'./exportwordcommand.js';import _0xf6160b from'./exportwordui.js';export default class s extends _0x3bd120{static get[_0x54e269(0xd2)](){const _0x12fb02=_0x54e269;return _0x12fb02(0xd7);}static get[_0x54e269(0xe0)](){const _0x3fb57c=_0x54e269;return[_0x3fb57c(0xc7),_0x13ed4b,_0xf6160b];}[_0x54e269(0xd5)](){const _0x466a9c=_0x54e269,_0x538b4f=this[_0x466a9c(0xdc)],_0x28d9fa=_0x538b4f[_0x466a9c(0xc9)][_0x466a9c(0xcf)](_0x466a9c(0xd8))||{};_0x538b4f[_0x466a9c(0xdf)][_0x466a9c(0xcd)](_0x466a9c(0xd8),new _0x26ea76(_0x538b4f));const _0x28cef8=_0x538b4f[_0x466a9c(0xc8)][_0x466a9c(0xcf)](_0x466a9c(0xc7));!0x1===_0x28d9fa[_0x466a9c(0xce)]?this[_0x466a9c(0xdb)]=null:_0x28d9fa[_0x466a9c(0xce)]?_0x28cef8[_0x466a9c(0xe1)](_0x28d9fa[_0x466a9c(0xce)])[_0x466a9c(0xd6)](_0xa348e=>{const _0x1da8ad=_0x466a9c;this[_0x1da8ad(0xdb)]=_0xa348e;}):this[_0x466a9c(0xdb)]=_0x28cef8[_0x466a9c(0xd4)];}}
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 _0x2618c1}from'ckeditor5/src/core.js';import{getStyles as _0x45fe63,getConverterOptions as _0x4dc8a7}from'./utils.js';export default class e extends _0x2618c1{constructor(_0x10c5ed){super(_0x10c5ed),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x599af7={}){const _0x102a46=this['editor'],t=_0x102a46['t'],_0x3dcd9b=_0x599af7['converterUrl']||'https://docx-converter.cke-cs.com/v1/convert',_0x16559d=_0x599af7['converterOptions']||{},_0x28d18e=_0x102a46['plugins']['get']('ExportWord'),_0x435eda=_0x599af7['token']||_0x28d18e['_token'],_0x5c500f=!0x1!==_0x16559d['auto_pagination'],_0x5dfe7f=_0x599af7['dataCallback']||(_0x4d509c=>_0x4d509c['data']['get']({'pagination':_0x5c500f}));return this['isBusy']=!0x0,this['refresh'](),_0x45fe63(_0x599af7['stylesheets']||['EDITOR_STYLES'])['then'](async _0xbb67a5=>{const _0x5c7d4a=await _0x5dfe7f(_0x102a46),_0x2b1327={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x102a46['locale']['contentLanguageDirection']+'\x22>'+_0x5c7d4a+'</div>','css':_0xbb67a5,'options':{..._0x16559d,..._0x4dc8a7(_0x102a46)}},_0x51ee3f={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x435eda?{'Authorization':_0x435eda['value']}:null},'body':JSON['stringify'](_0x2b1327)};return window['fetch'](_0x3dcd9b,_0x51ee3f)['then'](_0x9a3b28=>{if(0xc8!==_0x9a3b28['status'])throw _0x9a3b28;return _0x9a3b28['blob']();})['then'](_0x5a7ac6=>{const _0xc675e0='function'==typeof _0x599af7['fileName']?_0x599af7['fileName']():_0x599af7['fileName'];this['_downloadFile'](_0x5a7ac6,_0xc675e0||'document.docx');});})['catch'](_0xaf12b4=>{throw _0x102a46['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0xaf12b4;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x5cdf90,_0x32177a){const _0x3b8c21=document['createElement']('a');_0x3b8c21['href']=window['URL']['createObjectURL'](_0x5cdf90),_0x3b8c21['download']=_0x32177a,_0x3b8c21['click'](),_0x3b8c21['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 _0x7036af}from'ckeditor5/src/core.js';import{ButtonView as _0x9796b8,MenuBarMenuListItemButtonView as _0x52668c,SpinnerView as _0x11a5af}from'ckeditor5/src/ui.js';import _0x5983bf from'../theme/icons/exportword.svg';export default class i extends _0x7036af{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x3f7c05=this['editor'];_0x3f7c05['ui']['componentFactory']['add']('exportWord',()=>{const _0x3ff933=_0x3f7c05['commands']['get']('exportWord'),_0x3cea88=this['_createButton'](_0x9796b8);return _0x3cea88['set']({'tooltip':!0x0}),_0x3cea88['bind']('isOn')['to'](_0x3ff933,'isBusy'),_0x3cea88;}),_0x3f7c05['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x52668c));}['_createButton'](_0x406359){const _0x31be74=this['editor'],_0x2694ef=_0x31be74['config']['get']('exportWord')||{},t=_0x31be74['locale']['t'],_0x5cc7d4=_0x31be74['commands']['get']('exportWord'),_0x4338f8=new _0x406359(_0x31be74['locale']),_0x4c1177=new _0x11a5af();return _0x4338f8['children']['add'](_0x4c1177),_0x4c1177['bind']('isVisible')['to'](_0x5cc7d4,'isBusy'),_0x4338f8['iconView']['bind']('isVisible')['to'](_0x5cc7d4,'isBusy',_0x50e177=>!_0x50e177),_0x4338f8['set']({'label':t('Export\x20to\x20Word'),'icon':_0x5983bf}),_0x4338f8['bind']('isEnabled')['to'](_0x5cc7d4,'isEnabled'),this['listenTo'](_0x4338f8,'execute',()=>{_0x31be74['execute']('exportWord',_0x2694ef),_0x31be74['editing']['view']['focus']();}),_0x4338f8;}}
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(_0x556741,_0x3f3e05){var _0x500b92=_0x3024,_0x2e7f8a=_0x556741();while(!![]){try{var _0x5cee83=-parseInt(_0x500b92(0x10b))/0x1+-parseInt(_0x500b92(0x10e))/0x2*(parseInt(_0x500b92(0x104))/0x3)+-parseInt(_0x500b92(0x10c))/0x4+parseInt(_0x500b92(0x109))/0x5+parseInt(_0x500b92(0x106))/0x6*(-parseInt(_0x500b92(0x10a))/0x7)+parseInt(_0x500b92(0x107))/0x8*(parseInt(_0x500b92(0x10d))/0x9)+-parseInt(_0x500b92(0x105))/0xa*(-parseInt(_0x500b92(0x108))/0xb);if(_0x5cee83===_0x3f3e05)break;else _0x2e7f8a['push'](_0x2e7f8a['shift']());}catch(_0x418771){_0x2e7f8a['push'](_0x2e7f8a['shift']());}}}(_0x3c96,0x8a77e));export{default as ExportWord}from'./exportword.js';function _0x3024(_0x1d3478,_0x5323d8){var _0x3c969f=_0x3c96();return _0x3024=function(_0x302417,_0x236fcf){_0x302417=_0x302417-0x104;var _0x250a79=_0x3c969f[_0x302417];return _0x250a79;},_0x3024(_0x1d3478,_0x5323d8);}function _0x3c96(){var _0x1dc76c=['3199150yMENMY','81450tnzSNk','495464xWkpYY','55QesRYE','4546615vvAZTx','287slghTd','828796nsdZGi','3294736xZhyKr','153FyorqS','6pKmusN','785538VUouET'];_0x3c96=function(){return _0x1dc76c;};return _0x3c96();}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 _0x6f46(){const _0x23189c=['1014765HMnLWn','data-cke','2360192jdTtNC','users','author','comments','content','1637977yXmhWa','text','plugins','.ck-content','12zvfAGU',':root','9witnma','getCommentThreads','from','has','1JpIIty','all','160744TKaRhT','DateTimeFormat','name','391946PBwuPp','push','hasAttribute','ownerNode','cssRules','authorId','join','fetch','2658621SoWoXw','map','67005QsUvCI','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.','EDITOR_STYLES','then','keys','Users','get','6XXcZwW','createdAt','CommentsRepository','timezone','cssText','getSuggestions','TrackChanges','resolvedOptions','styleSheets','length','suggestions','indexOf','isResolved','warn','510uNkniX','trim','timeZone'];_0x6f46=function(){return _0x23189c;};return _0x6f46();}(function(_0x49ea1a,_0x532144){const _0x34d460=_0xc196,_0x2ed028=_0x49ea1a();while(!![]){try{const _0x1ef593=parseInt(_0x34d460(0x16e))/0x1*(-parseInt(_0x34d460(0x173))/0x2)+parseInt(_0x34d460(0x16a))/0x3*(parseInt(_0x34d460(0x170))/0x4)+-parseInt(_0x34d460(0x195))/0x5+parseInt(_0x34d460(0x184))/0x6*(parseInt(_0x34d460(0x17b))/0x7)+-parseInt(_0x34d460(0x15f))/0x8+parseInt(_0x34d460(0x17d))/0x9*(parseInt(_0x34d460(0x192))/0xa)+parseInt(_0x34d460(0x164))/0xb*(parseInt(_0x34d460(0x168))/0xc);if(_0x1ef593===_0x532144)break;else _0x2ed028['push'](_0x2ed028['shift']());}catch(_0xbd0855){_0x2ed028['push'](_0x2ed028['shift']());}}}(_0x6f46,0x51ca5));export function getStyles(_0x3e6fa9){const _0x3d6a21=_0xc196;if(!_0x3e6fa9)return new Promise(_0x2dd4e6=>_0x2dd4e6(''));const _0x2a0475=[];for(const _0x235166 of _0x3e6fa9)_0x3d6a21(0x17f)!==_0x235166?_0x2a0475[_0x3d6a21(0x174)](window[_0x3d6a21(0x17a)](_0x235166)[_0x3d6a21(0x180)](_0x51f486=>_0x51f486[_0x3d6a21(0x165)]())):_0x2a0475[_0x3d6a21(0x174)](f());return Promise[_0x3d6a21(0x16f)](_0x2a0475)[_0x3d6a21(0x180)](_0x4c62d3=>_0x4c62d3[_0x3d6a21(0x179)]('\x20')[_0x3d6a21(0x193)]());}function f(){const _0xc1f4d2=_0xc196,_0x6a61ea=[],_0x683909=[];for(const _0x4b276f of Array[_0xc1f4d2(0x16c)](document[_0xc1f4d2(0x18c)])){if(_0x4b276f[_0xc1f4d2(0x176)][_0xc1f4d2(0x175)](_0xc1f4d2(0x15e))){for(const _0x1ec4e6 of Array[_0xc1f4d2(0x16c)](_0x4b276f[_0xc1f4d2(0x177)]))-0x1!==_0x1ec4e6[_0xc1f4d2(0x188)][_0xc1f4d2(0x18f)](_0xc1f4d2(0x167))?_0x6a61ea[_0xc1f4d2(0x174)](_0x1ec4e6[_0xc1f4d2(0x188)]):-0x1!==_0x1ec4e6[_0xc1f4d2(0x188)][_0xc1f4d2(0x18f)](_0xc1f4d2(0x169))&&_0x683909[_0xc1f4d2(0x174)](_0x1ec4e6[_0xc1f4d2(0x188)]);}}return _0x6a61ea[_0xc1f4d2(0x18d)]||console[_0xc1f4d2(0x191)](_0xc1f4d2(0x17e)),[..._0x683909,..._0x6a61ea][_0xc1f4d2(0x179)]('\x20')[_0xc1f4d2(0x193)]();}function _0xc196(_0x2979b7,_0x12b5c2){const _0x6f4690=_0x6f46();return _0xc196=function(_0xc19696,_0x26d764){_0xc19696=_0xc19696-0x15e;let _0x471962=_0x6f4690[_0xc19696];return _0x471962;},_0xc196(_0x2979b7,_0x12b5c2);}export function getConverterOptions(_0x496d3b){const _0xea0567=_0xc196,_0x4c1cea=_0x496d3b[_0xea0567(0x166)][_0xea0567(0x16d)](_0xea0567(0x182)),_0x46d561=_0x496d3b[_0xea0567(0x166)][_0xea0567(0x16d)](_0xea0567(0x186)),_0x57b081=_0x496d3b[_0xea0567(0x166)][_0xea0567(0x16d)](_0xea0567(0x18a)),_0xb920ff={};if(_0x4c1cea&&_0x46d561){const _0x4ed0f9=getComments(_0x496d3b[_0xea0567(0x166)][_0xea0567(0x183)](_0xea0567(0x186))[_0xea0567(0x16b)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0xea0567(0x181)](_0x4ed0f9)[_0xea0567(0x18d)]&&(_0xb920ff[_0xea0567(0x162)]=_0x4ed0f9);}if(_0x4c1cea&&_0x57b081){const _0xb546ce=_0x496d3b[_0xea0567(0x166)][_0xea0567(0x183)](_0xea0567(0x18a)),_0x4c6741=_0x496d3b[_0xea0567(0x166)][_0xea0567(0x183)](_0xea0567(0x182)),_0x1bbba6=getSuggestions(_0xb546ce[_0xea0567(0x189)]({'toJSON':!0x0}),_0x4c6741[_0xea0567(0x160)]);Object[_0xea0567(0x181)](_0x1bbba6)[_0xea0567(0x18d)]&&(_0xb920ff[_0xea0567(0x18e)]=_0x1bbba6);}return(_0xb920ff[_0xea0567(0x18e)]||_0xb920ff[_0xea0567(0x162)])&&(_0xb920ff[_0xea0567(0x187)]=new Intl[(_0xea0567(0x171))]()[_0xea0567(0x18b)]()[_0xea0567(0x194)]),_0xb920ff;}export function getComments(_0x520a80){const _0x257ebc=_0xc196,_0x433a67={};if(!_0x520a80[_0x257ebc(0x18d)])return _0x433a67;for(const _0x1e527b of _0x520a80)_0x1e527b[_0x257ebc(0x162)][_0x257ebc(0x17c)](_0x4ff871=>{const _0x4bfefa=_0x257ebc;void 0x0===_0x433a67[_0x1e527b['id']]&&(_0x433a67[_0x1e527b['id']]=[]),_0x433a67[_0x1e527b['id']][_0x4bfefa(0x174)]({'author':_0x4ff871[_0x4bfefa(0x161)][_0x4bfefa(0x172)],'content':_0x4ff871[_0x4bfefa(0x163)],'created':_0x4ff871[_0x4bfefa(0x185)],'is_resolved':_0x1e527b[_0x4bfefa(0x190)]});});return _0x433a67;}export function getSuggestions(_0x4dc39d,_0x355176){const _0x17c1d4=_0xc196,_0x4ed13b={};if(!_0x4dc39d[_0x17c1d4(0x18d)]||!_0x355176[_0x17c1d4(0x18d)])return _0x4ed13b;for(const _0x459e7e of _0x4dc39d)_0x4ed13b[_0x459e7e['id']]={'author':_0x355176[_0x17c1d4(0x183)](_0x459e7e[_0x17c1d4(0x178)])[_0x17c1d4(0x172)],'created':_0x459e7e[_0x17c1d4(0x185)]};return _0x4ed13b;}
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;}