@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.
- package/build/export-word.js +1 -1
- package/package.json +2 -2
- package/src/exportword.js +1 -1
- package/src/exportwordcommand.js +1 -1
- package/src/exportwordui.js +1 -1
- package/src/index.js +1 -1
- package/src/utils.js +1 -1
package/build/export-word.js
CHANGED
|
@@ -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(
|
|
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.
|
|
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.
|
|
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
|
|
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)];}}
|
package/src/exportwordcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
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']();}}
|
package/src/exportwordui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
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(
|
|
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(
|
|
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;}
|