@ckeditor/ckeditor5-export-word 41.3.0 → 41.3.1

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(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})();
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.1",
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.1"
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 _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)];}}
@@ -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 _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']();}}
@@ -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 _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;}}
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(_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';
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(_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;}