@ckeditor/ckeditor5-import-word 0.0.0-nightly-20240416.0 → 0.0.0-nightly-20240418.0

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={331:(t,e,r)=>{t.exports=r(237)("./src/clipboard.js")},782:(t,e,r)=>{t.exports=r(237)("./src/core.js")},783:(t,e,r)=>{t.exports=r(237)("./src/engine.js")},311:(t,e,r)=>{t.exports=r(237)("./src/ui.js")},584:(t,e,r)=>{t.exports=r(237)("./src/utils.js")},237:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{ImportWord:()=>g,ImportWordEditing:()=>u,ImportWordUI:()=>o});var t=r(782),e=r(311);class o extends t.Plugin{static get pluginName(){return"ImportWordUI"}init(){const t=this.editor;t.ui.componentFactory.add("importWord",(()=>{const r=this._createButton(e.FileDialogButtonView),n=t.commands.get("importWord");return r.bind("isOn").to(n,"isBusy"),r.tooltip=!0,r})),t.ui.componentFactory.add("menuBar:importWord",(()=>this._createButton(e.MenuBarMenuListItemFileDialogButtonView)))}_createButton(t){const r=this.editor,n=r.locale.t,o=r.commands.get("importWord"),i=new t(r.locale),s=new e.SpinnerView;return i.set({acceptedType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template"}),i.set({label:n("Import from Word"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14 0 5 4.5v8.892l-1.5-1.8V6.5h-5v-5h-8v3H3V0h11Zm0 2v3h3.3L14 2Z"/><path d="M10.74 18a2.76 2.76 0 0 1-.469-.5H3V19h9.25v-.374A2.737 2.737 0 0 1 10.74 18Z"/><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.602.602 0 0 0 1.032 0l.043-.09 1.554-4 .028-.093a.6.6 0 0 0-1.104-.43v.001ZM11.674 15.407a.75.75 0 1 0 1.152.96L14 14.96V20h1.5v-5.04l1.174 1.408a.75.75 0 1 0 1.152-.96l-2.346-2.816a.95.95 0 0 0-1.46 0l-2.346 2.815Z"/></svg>\n'}),i.bind("isEnabled").to(o),s.bind("isVisible").to(o,"isBusy"),i.iconView.bind("isVisible").to(o,"isBusy",(t=>!t)),i.children.add(s),i.on("done",((t,e)=>{r.execute("importWord",e[0],{}),r.editing.view.focus()})),i}}var i=r(331),s=r(783),a=r(584);class c extends t.Command{constructor(t){super(t),this.set("isBusy",!1),this._importMarker=null,this._undoStepBatch=null,this._abortController=null,this.on("dataInsert",((e,r)=>{const n=new DataTransfer;n.setData("text/html",r.html);const o=this._importMarker.getRange();this.editor.model.enqueueChange(this._undoStepBatch,(e=>{this._importMarker.stopListening(),e.setSelection(o),t.editing.view.document.fire("clipboardInput",{dataTransfer:n})}))}),{priority:"low"})}refresh(){this.isEnabled=this._checkEnabled()}execute(t,e={}){if(this.isBusy)return Promise.resolve();const r=this.editor.config.get("importWord"),n={url:r.converterUrl,file:t,serviceConfig:{...e,formatting:r.formatting}};return this._prepareForImport(),this._sendImportRequest(n).then(this._handleImportResponse.bind(this)).catch(this._handleImportFailure.bind(this)).finally(this._cleanUpAfterImport.bind(this))}_checkEnabled(){if(this.isBusy)return!1;const t=this.editor.model,e=t.schema,r=t.document.selection,n=(0,a.first)(r.getSelectedBlocks());return!!n&&e.checkChild(n.parent,"paragraph")}_prepareForImport(){const t=this.editor,e=t.model,r=e.document.selection;this._abortController=new AbortController,this._undoStepBatch=t.model.createBatch({isUndoable:!0}),e.enqueueChange(this._undoStepBatch,(t=>{r.isCollapsed||e.deleteContent(r,{leaveUnmerged:!0});const n=r.getFirstPosition(),o=(0,a.first)(r.getSelectedBlocks());let i;i=o.is("element","paragraph")&&o.isEmpty?n:n.isAtStart?e.createPositionBefore(o):n.isAtEnd?e.createPositionAfter(o):t.split(n).position,this._importMarker=t.addMarker("importWord:"+(0,a.uid)(),{usingOperation:!1,affectsData:!1,range:new s.Range(i)}),this._importMarker.on("change:range",(()=>{"$graveyard"===this._importMarker.getRange().root.rootName&&this._abortController.abort()}))})),this.isBusy=!0,this.refresh()}_cleanUpAfterImport(){const t=this.editor.model;t.markers.has(this._importMarker)&&t.enqueueChange(this._undoStepBatch,(t=>{t.removeMarker(this._importMarker)})),this._importMarker=null,this._undoStepBatch=null,this._abortController=null,this.isBusy=!1,this.refresh()}_sendImportRequest({url:t,file:e,serviceConfig:r}){const n=this.editor.plugins.get("ImportWordEditing").getToken(),o=new FormData;o.set("config",JSON.stringify(r)),o.set("file",e);const i={method:"POST",headers:{},body:o,signal:this._abortController.signal};return n&&(i.headers.Authorization=n.value),fetch(t,i)}_handleImportResponse(t){return t.ok?t.json().then((t=>{this.editor.model.markers.has(this._importMarker)&&"$graveyard"!==this._importMarker.getRange().root.rootName&&this.fire("dataInsert",t)})):Promise.reject()}_handleImportFailure(){if(this._abortController.signal.aborted)return void(0,a.logWarning)("import-word-plugin-import-cancelled");const t=this.editor,e=(0,t.t)("An error occurred while importing the Word file.");t.plugins.get("Notification").showWarning(e),(0,a.logError)("import-word-plugin-conversion-failed")}}const p=d;function l(){const t=["https://docx-converter.cke-cs.com/v2/convert/docx-html","tokenUrl","CloudServices","getToken","3042tWznaY","importWord","1573mIHXAr","24116QzZWUL","33904fjkPkv","add","377JAxzvF","define","_token","requires","commands","5jSElyM","cloudServices","plugins","6360pfrCza","ImportWordEditing","pluginName","init","9849522JPLTvw","none","63GiBEpU","config","133428GuJdlL","4613590BpnplL","token","editor","11522623LbAWSA","inline","registerTokenUrl","get","22bYKGEQ"];return(l=function(){return t})()}function d(t,e){const r=l();return(d=function(t,e){return r[t-=315]})(t,e)}!function(t,e){const r=d,n=t();for(;;)try{if(952444===parseInt(r(348))/1*(-parseInt(r(321))/2)+parseInt(r(327))/3*(-parseInt(r(345))/4)+parseInt(r(318))/5*(parseInt(r(325))/6)+parseInt(r(333))/7+-parseInt(r(346))/8*(parseInt(r(342))/9)+-parseInt(r(330))/10*(parseInt(r(337))/11)+-parseInt(r(329))/12*(-parseInt(r(344))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(l);class u extends t.Plugin{static get[p(323)](){return p(322)}static get[p(316)](){const t=p;return[e.Notification,i.ClipboardPipeline,t(340)]}constructor(t){const e=p;super(t),this[e(315)]=null}async[p(324)](){const t=p,e=this[t(332)];e[t(328)][t(349)](t(343),{converterUrl:t(338),tokenUrl:(e[t(328)][t(336)](t(319))||{})[t(339)],formatting:{resets:t(326),defaults:t(326),styles:t(334)}}),e[t(317)][t(347)](t(343),new c(e));const{tokenUrl:r}=e[t(328)][t(336)](t(343));if(r){const{tokenUrl:n}=e[t(328)][t(336)](t(319))||{};this[t(315)]=r===n?e[t(320)][t(336)](t(340))[t(331)]:await e[t(320)][t(336)](t(340))[t(335)](r)}}[p(341)](){return this[p(315)]}}var h=f;function m(){var t=["9cxqWem","258Yglbqa","requires","2038888IvdKLG","ImportWord","37345unVJwO","5678868xISMAB","3117uDXKgu","2484wOGOAL","4005LGDCAK","42gLypBk","1588790Ddidqy","398985AkMeOD","pluginName"];return(m=function(){return t})()}function f(t,e){var r=m();return(f=function(t,e){return r[t-=349]})(t,e)}!function(t,e){for(var r=f,n=t();;)try{if(977429===-parseInt(r(352))/1+-parseInt(r(355))/2*(-parseInt(r(361))/3)+-parseInt(r(362))/4*(-parseInt(r(349))/5)+-parseInt(r(360))/6+-parseInt(r(350))/7*(-parseInt(r(357))/8)+parseInt(r(354))/9*(parseInt(r(351))/10)+parseInt(r(359))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(m);class g extends t.Plugin{static get[h(353)](){return h(358)}static get[h(356)](){return[u,o]}}function I(){var t=["1723752yIoDWX","48KnmDwr","1334081IuhEMW","660454rjFtlm","76170GRSVdN","1109361JGiSMv","290IVqtfS","48MawPdc","2595483buNxtt","128tVUCNB","1085599EwuoDT"];return(I=function(){return t})()}function v(t,e){var r=I();return(v=function(t,e){return r[t-=307]})(t,e)}!function(t,e){for(var r=v,n=t();;)try{if(787306===parseInt(r(316))/1+parseInt(r(309))/2+-parseInt(r(314))/3+parseInt(r(315))/4*(parseInt(r(310))/5)+-parseInt(r(313))/6*(-parseInt(r(308))/7)+-parseInt(r(307))/8*(-parseInt(r(317))/9)+parseInt(r(312))/10*(-parseInt(r(311))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(I)})(),(window.CKEditor5=window.CKEditor5||{}).importWord=n})();
5
+ */(()=>{var t={331:(t,e,r)=>{t.exports=r(237)("./src/clipboard.js")},782:(t,e,r)=>{t.exports=r(237)("./src/core.js")},783:(t,e,r)=>{t.exports=r(237)("./src/engine.js")},311:(t,e,r)=>{t.exports=r(237)("./src/ui.js")},584:(t,e,r)=>{t.exports=r(237)("./src/utils.js")},237:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,r),i.exports}r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";r.r(o),r.d(o,{ImportWord:()=>g,ImportWordEditing:()=>d,ImportWordUI:()=>n});var t=r(782),e=r(311);class n extends t.Plugin{static get pluginName(){return"ImportWordUI"}init(){const t=this.editor;t.ui.componentFactory.add("importWord",(()=>{const r=this._createButton(e.FileDialogButtonView),o=t.commands.get("importWord");return r.bind("isOn").to(o,"isBusy"),r.tooltip=!0,r})),t.ui.componentFactory.add("menuBar:importWord",(()=>this._createButton(e.MenuBarMenuListItemFileDialogButtonView)))}_createButton(t){const r=this.editor,o=r.locale.t,n=r.commands.get("importWord"),i=new t(r.locale),s=new e.SpinnerView;return i.set({acceptedType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template"}),i.set({label:o("Import from Word"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14 0 5 4.5v8.892l-1.5-1.8V6.5h-5v-5h-8v3H3V0h11Zm0 2v3h3.3L14 2Z"/><path d="M10.74 18a2.76 2.76 0 0 1-.469-.5H3V19h9.25v-.374A2.737 2.737 0 0 1 10.74 18Z"/><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.602.602 0 0 0 1.032 0l.043-.09 1.554-4 .028-.093a.6.6 0 0 0-1.104-.43v.001ZM11.674 15.407a.75.75 0 1 0 1.152.96L14 14.96V20h1.5v-5.04l1.174 1.408a.75.75 0 1 0 1.152-.96l-2.346-2.816a.95.95 0 0 0-1.46 0l-2.346 2.815Z"/></svg>\n'}),i.bind("isEnabled").to(n),s.bind("isVisible").to(n,"isBusy"),i.iconView.bind("isVisible").to(n,"isBusy",(t=>!t)),i.children.add(s),i.on("done",((t,e)=>{r.execute("importWord",e[0],{}),r.editing.view.focus()})),i}}var i=r(331),s=r(783),a=r(584);class c extends t.Command{constructor(t){super(t),this.set("isBusy",!1),this._importMarker=null,this._undoStepBatch=null,this._abortController=null,this.on("dataInsert",((e,r)=>{const o=new DataTransfer;o.setData("text/html",r.html);const n=this._importMarker.getRange();this.editor.model.enqueueChange(this._undoStepBatch,(e=>{this._importMarker.stopListening(),e.setSelection(n),t.editing.view.document.fire("clipboardInput",{dataTransfer:o})}))}),{priority:"low"})}refresh(){this.isEnabled=this._checkEnabled()}execute(t,e={}){if(this.isBusy)return Promise.resolve();const r=this.editor.config.get("importWord"),o={url:r.converterUrl,file:t,serviceConfig:{...e,formatting:r.formatting}};return this._prepareForImport(),this._sendImportRequest(o).then(this._handleImportResponse.bind(this)).catch(this._handleImportFailure.bind(this)).finally(this._cleanUpAfterImport.bind(this))}_checkEnabled(){if(this.isBusy)return!1;const t=this.editor.model,e=t.schema,r=t.document.selection,o=(0,a.first)(r.getSelectedBlocks());return!!o&&e.checkChild(o.parent,"paragraph")}_prepareForImport(){const t=this.editor,e=t.model,r=e.document.selection;this._abortController=new AbortController,this._undoStepBatch=t.model.createBatch({isUndoable:!0}),e.enqueueChange(this._undoStepBatch,(t=>{r.isCollapsed||e.deleteContent(r,{leaveUnmerged:!0});const o=r.getFirstPosition(),n=(0,a.first)(r.getSelectedBlocks());let i;i=n.is("element","paragraph")&&n.isEmpty?o:o.isAtStart?e.createPositionBefore(n):o.isAtEnd?e.createPositionAfter(n):t.split(o).position,this._importMarker=t.addMarker("importWord:"+(0,a.uid)(),{usingOperation:!1,affectsData:!1,range:new s.Range(i)}),this._importMarker.on("change:range",(()=>{"$graveyard"===this._importMarker.getRange().root.rootName&&this._abortController.abort()}))})),this.isBusy=!0,this.refresh()}_cleanUpAfterImport(){const t=this.editor.model;t.markers.has(this._importMarker)&&t.enqueueChange(this._undoStepBatch,(t=>{t.removeMarker(this._importMarker)})),this._importMarker=null,this._undoStepBatch=null,this._abortController=null,this.isBusy=!1,this.refresh()}_sendImportRequest({url:t,file:e,serviceConfig:r}){const o=this.editor.plugins.get("ImportWordEditing").getToken(),n=new FormData;n.set("config",JSON.stringify(r)),n.set("file",e);const i={method:"POST",headers:{},body:n,signal:this._abortController.signal};return o&&(i.headers.Authorization=o.value),fetch(t,i)}_handleImportResponse(t){return t.ok?t.json().then((t=>{this.editor.model.markers.has(this._importMarker)&&"$graveyard"!==this._importMarker.getRange().root.rootName&&this.fire("dataInsert",t)})):Promise.reject()}_handleImportFailure(){if(this._abortController.signal.aborted)return void(0,a.logWarning)("import-word-plugin-import-cancelled");const t=this.editor,e=(0,t.t)("An error occurred while importing the Word file.");t.plugins.get("Notification").showWarning(e),(0,a.logError)("import-word-plugin-conversion-failed")}}const l=p;function p(t,e){const r=u();return(p=function(t,e){return r[t-=334]})(t,e)}!function(t,e){const r=p,o=t();for(;;)try{if(136010===-parseInt(r(365))/1*(parseInt(r(342))/2)+parseInt(r(351))/3*(parseInt(r(360))/4)+-parseInt(r(353))/5*(parseInt(r(357))/6)+parseInt(r(345))/7*(-parseInt(r(334))/8)+-parseInt(r(368))/9+-parseInt(r(361))/10*(parseInt(r(364))/11)+parseInt(r(352))/12*(parseInt(r(367))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class d extends t.Plugin{static get[l(347)](){return l(363)}static get[l(343)](){const t=l;return[e.Notification,i.ClipboardPipeline,t(337)]}constructor(t){const e=l;super(t),this[e(341)]=null}async[l(366)](){const t=l,e=this[t(346)];e[t(348)][t(359)](t(350),{converterUrl:t(349),tokenUrl:(e[t(348)][t(339)](t(344))||{})[t(362)],formatting:{resets:t(338),defaults:t(338),styles:t(356)}}),e[t(358)][t(355)](t(350),new c(e));const{tokenUrl:r}=e[t(348)][t(339)](t(350));if(r){const{tokenUrl:o}=e[t(348)][t(339)](t(344))||{};this[t(341)]=r===o?e[t(354)][t(339)](t(337))[t(335)]:await e[t(354)][t(339)](t(337))[t(340)](r)}}[l(336)](){return this[l(341)]}}function u(){const t=["21956GlrUcr","918690UaKxwY","tokenUrl","ImportWordEditing","11gxPSxP","53nhyTvm","init","3003qvkmjX","984672ovITWs","2984SqcbWW","token","getToken","CloudServices","none","get","registerTokenUrl","_token","7862kTYakE","requires","cloudServices","791bytvvt","editor","pluginName","config","https://docx-converter.cke-cs.com/v2/convert/docx-html","importWord","87ILybOB","22716qRNeSQ","25vrWmTo","plugins","add","inline","10422qwLupL","commands","define"];return(u=function(){return t})()}var h=m;function m(t,e){var r=f();return(m=function(t,e){return r[t-=103]})(t,e)}!function(t,e){for(var r=m,o=t();;)try{if(701237===-parseInt(r(108))/1*(-parseInt(r(106))/2)+-parseInt(r(110))/3+-parseInt(r(105))/4*(-parseInt(r(113))/5)+parseInt(r(114))/6+parseInt(r(103))/7*(parseInt(r(111))/8)+-parseInt(r(115))/9+-parseInt(r(109))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class g extends t.Plugin{static get[h(104)](){return h(107)}static get[h(112)](){return[d,n]}}function f(){var t=["172hkeJwN","2154SHuEKs","ImportWord","1237LHTcFc","13367060ievnBf","2576208XGbXqN","5332696AyVXdE","requires","137035GERdua","1858410ySJYgm","11312820gISvLZ","14AABRmV","pluginName"];return(f=function(){return t})()}function I(){var t=["230875AcXMKv","6JplKiD","49458HtAVIX","2224728saUOiG","76048NbYZne","6031665LsAkUR","281423NYAxZf","16dNbvok","395360mDOobj"];return(I=function(){return t})()}function v(t,e){var r=I();return(v=function(t,e){return r[t-=149]})(t,e)}!function(t,e){for(var r=v,o=t();;)try{if(142884===parseInt(r(157))/1+-parseInt(r(149))/2*(-parseInt(r(153))/3)+parseInt(r(155))/4+parseInt(r(151))/5+-parseInt(r(152))/6*(-parseInt(r(150))/7)+parseInt(r(154))/8+-parseInt(r(156))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(I)})(),(window.CKEditor5=window.CKEditor5||{}).importWord=o})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-import-word",
3
- "version": "0.0.0-nightly-20240416.0",
3
+ "version": "0.0.0-nightly-20240418.0",
4
4
  "description": "Import from 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": "0.0.0-nightly-20240416.0"
33
+ "ckeditor5": "0.0.0-nightly-20240418.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (https://cksource.com/)",
package/src/importword.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1b7c0b=_0x58eb;(function(_0xc08308,_0x3cc867){var _0xbb423a=_0x58eb,_0x14e187=_0xc08308();while(!![]){try{var _0x1a102a=-parseInt(_0xbb423a(0x160))/0x1+-parseInt(_0xbb423a(0x163))/0x2*(-parseInt(_0xbb423a(0x169))/0x3)+-parseInt(_0xbb423a(0x16a))/0x4*(-parseInt(_0xbb423a(0x15d))/0x5)+-parseInt(_0xbb423a(0x168))/0x6+-parseInt(_0xbb423a(0x15e))/0x7*(-parseInt(_0xbb423a(0x165))/0x8)+parseInt(_0xbb423a(0x162))/0x9*(parseInt(_0xbb423a(0x15f))/0xa)+parseInt(_0xbb423a(0x167))/0xb;if(_0x1a102a===_0x3cc867)break;else _0x14e187['push'](_0x14e187['shift']());}catch(_0x255da5){_0x14e187['push'](_0x14e187['shift']());}}}(_0x4806,0xeea15));import{Plugin as _0x4d4f8e}from'ckeditor5/src/core.js';function _0x4806(){var _0x81bbec=['9cxqWem','258Yglbqa','requires','2038888IvdKLG','ImportWord','37345unVJwO','5678868xISMAB','3117uDXKgu','2484wOGOAL','4005LGDCAK','42gLypBk','1588790Ddidqy','398985AkMeOD','pluginName'];_0x4806=function(){return _0x81bbec;};return _0x4806();}import _0x9e3edf from'./importwordui.js';import _0xec4597 from'./importwordediting.js';function _0x58eb(_0x3c2b65,_0x9c8b46){var _0x480611=_0x4806();return _0x58eb=function(_0x58eb82,_0x57b22a){_0x58eb82=_0x58eb82-0x15d;var _0x131c67=_0x480611[_0x58eb82];return _0x131c67;},_0x58eb(_0x3c2b65,_0x9c8b46);}export default class i extends _0x4d4f8e{static get[_0x1b7c0b(0x161)](){var _0x280074=_0x1b7c0b;return _0x280074(0x166);}static get[_0x1b7c0b(0x164)](){return[_0xec4597,_0x9e3edf];}}
23
+ var _0x23b1b8=_0x22d3;(function(_0x5c02ff,_0x360b2b){var _0xfbf2b3=_0x22d3,_0x418463=_0x5c02ff();while(!![]){try{var _0x23511e=-parseInt(_0xfbf2b3(0x6c))/0x1*(-parseInt(_0xfbf2b3(0x6a))/0x2)+-parseInt(_0xfbf2b3(0x6e))/0x3+-parseInt(_0xfbf2b3(0x69))/0x4*(-parseInt(_0xfbf2b3(0x71))/0x5)+parseInt(_0xfbf2b3(0x72))/0x6+parseInt(_0xfbf2b3(0x67))/0x7*(parseInt(_0xfbf2b3(0x6f))/0x8)+-parseInt(_0xfbf2b3(0x73))/0x9+-parseInt(_0xfbf2b3(0x6d))/0xa;if(_0x23511e===_0x360b2b)break;else _0x418463['push'](_0x418463['shift']());}catch(_0x13357b){_0x418463['push'](_0x418463['shift']());}}}(_0x3442,0xab335));import{Plugin as _0xd68cee}from'ckeditor5/src/core.js';import _0x4b7b17 from'./importwordui.js';function _0x22d3(_0x1cfc7f,_0x3ce776){var _0x3442f1=_0x3442();return _0x22d3=function(_0x22d31b,_0x1be712){_0x22d31b=_0x22d31b-0x67;var _0x33ece6=_0x3442f1[_0x22d31b];return _0x33ece6;},_0x22d3(_0x1cfc7f,_0x3ce776);}import _0x5bc409 from'./importwordediting.js';export default class i extends _0xd68cee{static get[_0x23b1b8(0x68)](){var _0x5567e3=_0x23b1b8;return _0x5567e3(0x6b);}static get[_0x23b1b8(0x70)](){return[_0x5bc409,_0x4b7b17];}}function _0x3442(){var _0x86d2dc=['172hkeJwN','2154SHuEKs','ImportWord','1237LHTcFc','13367060ievnBf','2576208XGbXqN','5332696AyVXdE','requires','137035GERdua','1858410ySJYgm','11312820gISvLZ','14AABRmV','pluginName'];_0x3442=function(){return _0x86d2dc;};return _0x3442();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x4bac0a}from'ckeditor5/src/core.js';import{Range as _0x1fc064}from'ckeditor5/src/engine.js';import{logWarning as _0x208925,logError as _0x1212cc,first as _0x5b56ec,uid as _0x22c964}from'ckeditor5/src/utils.js';export default class d extends _0x4bac0a{constructor(_0x184d77){super(_0x184d77),this['set']('isBusy',!0x1),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['on']('dataInsert',(_0x4ca365,_0x3e936d)=>{const _0x56704f=new DataTransfer();_0x56704f['setData']('text/html',_0x3e936d['html']);const _0x484e5b=this['_importMarker']['getRange']();this['editor']['model']['enqueueChange'](this['_undoStepBatch'],_0x47825f=>{this['_importMarker']['stopListening'](),_0x47825f['setSelection'](_0x484e5b),_0x184d77['editing']['view']['document']['fire']('clipboardInput',{'dataTransfer':_0x56704f});});},{'priority':'low'});}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4c161a,_0x1420c7={}){if(this['isBusy'])return Promise['resolve']();const _0x822e0a=this['editor']['config']['get']('importWord'),_0x5c64e7={'url':_0x822e0a['converterUrl'],'file':_0x4c161a,'serviceConfig':{..._0x1420c7,'formatting':_0x822e0a['formatting']}};return this['_prepareForImport'](),this['_sendImportRequest'](_0x5c64e7)['then'](this['_handleImportResponse']['bind'](this))['catch'](this['_handleImportFailure']['bind'](this))['finally'](this['_cleanUpAfterImport']['bind'](this));}['_checkEnabled'](){if(this['isBusy'])return!0x1;const _0x1ebde3=this['editor']['model'],_0x4f23a3=_0x1ebde3['schema'],_0x4d9a5d=_0x1ebde3['document']['selection'],_0x3d1c10=_0x5b56ec(_0x4d9a5d['getSelectedBlocks']());return!!_0x3d1c10&&_0x4f23a3['checkChild'](_0x3d1c10['parent'],'paragraph');}['_prepareForImport'](){const _0x6acd91=this['editor'],_0x3566da=_0x6acd91['model'],_0x5e73b6=_0x3566da['document']['selection'];this['_abortController']=new AbortController(),this['_undoStepBatch']=_0x6acd91['model']['createBatch']({'isUndoable':!0x0}),_0x3566da['enqueueChange'](this['_undoStepBatch'],_0x457cf9=>{_0x5e73b6['isCollapsed']||_0x3566da['deleteContent'](_0x5e73b6,{'leaveUnmerged':!0x0});const _0x204cef=_0x5e73b6['getFirstPosition'](),_0x6369ac=_0x5b56ec(_0x5e73b6['getSelectedBlocks']());let _0x795612;_0x795612=_0x6369ac['is']('element','paragraph')&&_0x6369ac['isEmpty']?_0x204cef:_0x204cef['isAtStart']?_0x3566da['createPositionBefore'](_0x6369ac):_0x204cef['isAtEnd']?_0x3566da['createPositionAfter'](_0x6369ac):_0x457cf9['split'](_0x204cef)['position'],this['_importMarker']=_0x457cf9['addMarker']('importWord:'+_0x22c964(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new _0x1fc064(_0x795612)}),this['_importMarker']['on']('change:range',()=>{'$graveyard'===this['_importMarker']['getRange']()['root']['rootName']&&this['_abortController']['abort']();});}),this['isBusy']=!0x0,this['refresh']();}['_cleanUpAfterImport'](){const _0x1f9a3f=this['editor']['model'];_0x1f9a3f['markers']['has'](this['_importMarker'])&&_0x1f9a3f['enqueueChange'](this['_undoStepBatch'],_0x4c487b=>{_0x4c487b['removeMarker'](this['_importMarker']);}),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['isBusy']=!0x1,this['refresh']();}['_sendImportRequest']({url:_0x405d5f,file:_0x4774da,serviceConfig:_0x21c8a9}){const _0x485e1b=this['editor']['plugins']['get']('ImportWordEditing')['getToken'](),_0xbbc889=new FormData();_0xbbc889['set']('config',JSON['stringify'](_0x21c8a9)),_0xbbc889['set']('file',_0x4774da);const _0x1c74e7={'method':'POST','headers':{},'body':_0xbbc889,'signal':this['_abortController']['signal']};return _0x485e1b&&(_0x1c74e7['headers']['Authorization']=_0x485e1b['value']),fetch(_0x405d5f,_0x1c74e7);}['_handleImportResponse'](_0x43de18){return _0x43de18['ok']?_0x43de18['json']()['then'](_0x4bfdc5=>{if(!this['editor']['model']['markers']['has'](this['_importMarker']))return;'$graveyard'!==this['_importMarker']['getRange']()['root']['rootName']&&this['fire']('dataInsert',_0x4bfdc5);}):Promise['reject']();}['_handleImportFailure'](){if(this['_abortController']['signal']['aborted'])return void _0x208925('import-word-plugin-import-cancelled');const _0x361a25=this['editor'],_0x575711=(0x0,_0x361a25['t'])('An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');_0x361a25['plugins']['get']('Notification')['showWarning'](_0x575711),_0x1212cc('import-word-plugin-conversion-failed');}}
23
+ import{Command as _0x3ed4f0}from'ckeditor5/src/core.js';import{Range as _0x446d7e}from'ckeditor5/src/engine.js';import{logWarning as _0xcb108,logError as _0x27cc49,first as _0x4a7eee,uid as _0x9c39ad}from'ckeditor5/src/utils.js';export default class d extends _0x3ed4f0{constructor(_0x251c3f){super(_0x251c3f),this['set']('isBusy',!0x1),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['on']('dataInsert',(_0x3e777b,_0x406fe2)=>{const _0xcdc623=new DataTransfer();_0xcdc623['setData']('text/html',_0x406fe2['html']);const _0x5b1c5e=this['_importMarker']['getRange']();this['editor']['model']['enqueueChange'](this['_undoStepBatch'],_0x1cec36=>{this['_importMarker']['stopListening'](),_0x1cec36['setSelection'](_0x5b1c5e),_0x251c3f['editing']['view']['document']['fire']('clipboardInput',{'dataTransfer':_0xcdc623});});},{'priority':'low'});}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3824b9,_0x45ee2a={}){if(this['isBusy'])return Promise['resolve']();const _0x45dbdd=this['editor']['config']['get']('importWord'),_0x208e11={'url':_0x45dbdd['converterUrl'],'file':_0x3824b9,'serviceConfig':{..._0x45ee2a,'formatting':_0x45dbdd['formatting']}};return this['_prepareForImport'](),this['_sendImportRequest'](_0x208e11)['then'](this['_handleImportResponse']['bind'](this))['catch'](this['_handleImportFailure']['bind'](this))['finally'](this['_cleanUpAfterImport']['bind'](this));}['_checkEnabled'](){if(this['isBusy'])return!0x1;const _0x44d8e0=this['editor']['model'],_0x3ca53a=_0x44d8e0['schema'],_0x90bb32=_0x44d8e0['document']['selection'],_0x33fc67=_0x4a7eee(_0x90bb32['getSelectedBlocks']());return!!_0x33fc67&&_0x3ca53a['checkChild'](_0x33fc67['parent'],'paragraph');}['_prepareForImport'](){const _0x21149f=this['editor'],_0x5e3b4f=_0x21149f['model'],_0x28f768=_0x5e3b4f['document']['selection'];this['_abortController']=new AbortController(),this['_undoStepBatch']=_0x21149f['model']['createBatch']({'isUndoable':!0x0}),_0x5e3b4f['enqueueChange'](this['_undoStepBatch'],_0x4c2931=>{_0x28f768['isCollapsed']||_0x5e3b4f['deleteContent'](_0x28f768,{'leaveUnmerged':!0x0});const _0x168838=_0x28f768['getFirstPosition'](),_0x570c42=_0x4a7eee(_0x28f768['getSelectedBlocks']());let _0x414332;_0x414332=_0x570c42['is']('element','paragraph')&&_0x570c42['isEmpty']?_0x168838:_0x168838['isAtStart']?_0x5e3b4f['createPositionBefore'](_0x570c42):_0x168838['isAtEnd']?_0x5e3b4f['createPositionAfter'](_0x570c42):_0x4c2931['split'](_0x168838)['position'],this['_importMarker']=_0x4c2931['addMarker']('importWord:'+_0x9c39ad(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new _0x446d7e(_0x414332)}),this['_importMarker']['on']('change:range',()=>{'$graveyard'===this['_importMarker']['getRange']()['root']['rootName']&&this['_abortController']['abort']();});}),this['isBusy']=!0x0,this['refresh']();}['_cleanUpAfterImport'](){const _0x445530=this['editor']['model'];_0x445530['markers']['has'](this['_importMarker'])&&_0x445530['enqueueChange'](this['_undoStepBatch'],_0x2101f6=>{_0x2101f6['removeMarker'](this['_importMarker']);}),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['isBusy']=!0x1,this['refresh']();}['_sendImportRequest']({url:_0x211f37,file:_0x2b14e1,serviceConfig:_0x5335b2}){const _0x54b38c=this['editor']['plugins']['get']('ImportWordEditing')['getToken'](),_0x1c8b5e=new FormData();_0x1c8b5e['set']('config',JSON['stringify'](_0x5335b2)),_0x1c8b5e['set']('file',_0x2b14e1);const _0x41a62c={'method':'POST','headers':{},'body':_0x1c8b5e,'signal':this['_abortController']['signal']};return _0x54b38c&&(_0x41a62c['headers']['Authorization']=_0x54b38c['value']),fetch(_0x211f37,_0x41a62c);}['_handleImportResponse'](_0x54665c){return _0x54665c['ok']?_0x54665c['json']()['then'](_0x3fdc95=>{if(!this['editor']['model']['markers']['has'](this['_importMarker']))return;'$graveyard'!==this['_importMarker']['getRange']()['root']['rootName']&&this['fire']('dataInsert',_0x3fdc95);}):Promise['reject']();}['_handleImportFailure'](){if(this['_abortController']['signal']['aborted'])return void _0xcb108('import-word-plugin-import-cancelled');const _0x2ed7ec=this['editor'],_0x53f61e=(0x0,_0x2ed7ec['t'])('An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');_0x2ed7ec['plugins']['get']('Notification')['showWarning'](_0x53f61e),_0x27cc49('import-word-plugin-conversion-failed');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x474c47=_0x3e4e;(function(_0x408cae,_0x2b03ef){const _0x5efd0f=_0x3e4e,_0x5f5dcd=_0x408cae();while(!![]){try{const _0x4f9f6a=parseInt(_0x5efd0f(0x15c))/0x1*(-parseInt(_0x5efd0f(0x141))/0x2)+parseInt(_0x5efd0f(0x147))/0x3*(-parseInt(_0x5efd0f(0x159))/0x4)+parseInt(_0x5efd0f(0x13e))/0x5*(parseInt(_0x5efd0f(0x145))/0x6)+parseInt(_0x5efd0f(0x14d))/0x7+-parseInt(_0x5efd0f(0x15a))/0x8*(parseInt(_0x5efd0f(0x156))/0x9)+-parseInt(_0x5efd0f(0x14a))/0xa*(parseInt(_0x5efd0f(0x151))/0xb)+-parseInt(_0x5efd0f(0x149))/0xc*(-parseInt(_0x5efd0f(0x158))/0xd);if(_0x4f9f6a===_0x2b03ef)break;else _0x5f5dcd['push'](_0x5f5dcd['shift']());}catch(_0x328e68){_0x5f5dcd['push'](_0x5f5dcd['shift']());}}}(_0x1f64,0xe887c));function _0x1f64(){const _0x48526c=['https://docx-converter.cke-cs.com/v2/convert/docx-html','tokenUrl','CloudServices','getToken','3042tWznaY','importWord','1573mIHXAr','24116QzZWUL','33904fjkPkv','add','377JAxzvF','define','_token','requires','commands','5jSElyM','cloudServices','plugins','6360pfrCza','ImportWordEditing','pluginName','init','9849522JPLTvw','none','63GiBEpU','config','133428GuJdlL','4613590BpnplL','token','editor','11522623LbAWSA','inline','registerTokenUrl','get','22bYKGEQ'];_0x1f64=function(){return _0x48526c;};return _0x1f64();}import{Plugin as _0x303f3f}from'ckeditor5/src/core.js';import{Notification as _0x475249}from'ckeditor5/src/ui.js';import{ClipboardPipeline as _0x5adee2}from'ckeditor5/src/clipboard.js';function _0x3e4e(_0x323884,_0x5d6c99){const _0x1f64b4=_0x1f64();return _0x3e4e=function(_0x3e4e8b,_0x32074f){_0x3e4e8b=_0x3e4e8b-0x13b;let _0x238bf9=_0x1f64b4[_0x3e4e8b];return _0x238bf9;},_0x3e4e(_0x323884,_0x5d6c99);}import _0x502ada from'./importwordcommand.js';export default class e extends _0x303f3f{static get[_0x474c47(0x143)](){const _0x419bfb=_0x474c47;return _0x419bfb(0x142);}static get[_0x474c47(0x13c)](){const _0x2e598e=_0x474c47;return[_0x475249,_0x5adee2,_0x2e598e(0x154)];}constructor(_0x400ae3){const _0x3df5f6=_0x474c47;super(_0x400ae3),this[_0x3df5f6(0x13b)]=null;}async[_0x474c47(0x144)](){const _0x2023b8=_0x474c47,_0x4bf882=this[_0x2023b8(0x14c)];_0x4bf882[_0x2023b8(0x148)][_0x2023b8(0x15d)](_0x2023b8(0x157),{'converterUrl':_0x2023b8(0x152),'tokenUrl':(_0x4bf882[_0x2023b8(0x148)][_0x2023b8(0x150)](_0x2023b8(0x13f))||{})[_0x2023b8(0x153)],'formatting':{'resets':_0x2023b8(0x146),'defaults':_0x2023b8(0x146),'styles':_0x2023b8(0x14e)}}),_0x4bf882[_0x2023b8(0x13d)][_0x2023b8(0x15b)](_0x2023b8(0x157),new _0x502ada(_0x4bf882));const {tokenUrl:_0x5ad145}=_0x4bf882[_0x2023b8(0x148)][_0x2023b8(0x150)](_0x2023b8(0x157));if(_0x5ad145){const {tokenUrl:_0x3f2ec5}=_0x4bf882[_0x2023b8(0x148)][_0x2023b8(0x150)](_0x2023b8(0x13f))||{};this[_0x2023b8(0x13b)]=_0x5ad145===_0x3f2ec5?_0x4bf882[_0x2023b8(0x140)][_0x2023b8(0x150)](_0x2023b8(0x154))[_0x2023b8(0x14b)]:await _0x4bf882[_0x2023b8(0x140)][_0x2023b8(0x150)](_0x2023b8(0x154))[_0x2023b8(0x14f)](_0x5ad145);}}[_0x474c47(0x155)](){const _0x1193f7=_0x474c47;return this[_0x1193f7(0x13b)];}}
23
+ const _0x1e769c=_0x189f;function _0x189f(_0x14489f,_0x3142a6){const _0x1f5701=_0x1f57();return _0x189f=function(_0x189fdd,_0x56d01e){_0x189fdd=_0x189fdd-0x14e;let _0x504c4e=_0x1f5701[_0x189fdd];return _0x504c4e;},_0x189f(_0x14489f,_0x3142a6);}(function(_0x39ca49,_0x2ea03d){const _0xb4313c=_0x189f,_0xe9e991=_0x39ca49();while(!![]){try{const _0x1a8f6e=-parseInt(_0xb4313c(0x16d))/0x1*(parseInt(_0xb4313c(0x156))/0x2)+parseInt(_0xb4313c(0x15f))/0x3*(parseInt(_0xb4313c(0x168))/0x4)+-parseInt(_0xb4313c(0x161))/0x5*(parseInt(_0xb4313c(0x165))/0x6)+parseInt(_0xb4313c(0x159))/0x7*(-parseInt(_0xb4313c(0x14e))/0x8)+-parseInt(_0xb4313c(0x170))/0x9+-parseInt(_0xb4313c(0x169))/0xa*(parseInt(_0xb4313c(0x16c))/0xb)+parseInt(_0xb4313c(0x160))/0xc*(parseInt(_0xb4313c(0x16f))/0xd);if(_0x1a8f6e===_0x2ea03d)break;else _0xe9e991['push'](_0xe9e991['shift']());}catch(_0x187025){_0xe9e991['push'](_0xe9e991['shift']());}}}(_0x1f57,0x2134a));import{Plugin as _0x5e71fa}from'ckeditor5/src/core.js';import{Notification as _0x4d7600}from'ckeditor5/src/ui.js';import{ClipboardPipeline as _0x3705e1}from'ckeditor5/src/clipboard.js';import _0x4d4a5d from'./importwordcommand.js';export default class e extends _0x5e71fa{static get[_0x1e769c(0x15b)](){const _0x5870=_0x1e769c;return _0x5870(0x16b);}static get[_0x1e769c(0x157)](){const _0x316464=_0x1e769c;return[_0x4d7600,_0x3705e1,_0x316464(0x151)];}constructor(_0x2e0cc2){const _0x15315f=_0x1e769c;super(_0x2e0cc2),this[_0x15315f(0x155)]=null;}async[_0x1e769c(0x16e)](){const _0x6f128d=_0x1e769c,_0x40e1aa=this[_0x6f128d(0x15a)];_0x40e1aa[_0x6f128d(0x15c)][_0x6f128d(0x167)](_0x6f128d(0x15e),{'converterUrl':_0x6f128d(0x15d),'tokenUrl':(_0x40e1aa[_0x6f128d(0x15c)][_0x6f128d(0x153)](_0x6f128d(0x158))||{})[_0x6f128d(0x16a)],'formatting':{'resets':_0x6f128d(0x152),'defaults':_0x6f128d(0x152),'styles':_0x6f128d(0x164)}}),_0x40e1aa[_0x6f128d(0x166)][_0x6f128d(0x163)](_0x6f128d(0x15e),new _0x4d4a5d(_0x40e1aa));const {tokenUrl:_0x3af42e}=_0x40e1aa[_0x6f128d(0x15c)][_0x6f128d(0x153)](_0x6f128d(0x15e));if(_0x3af42e){const {tokenUrl:_0x3435c4}=_0x40e1aa[_0x6f128d(0x15c)][_0x6f128d(0x153)](_0x6f128d(0x158))||{};this[_0x6f128d(0x155)]=_0x3af42e===_0x3435c4?_0x40e1aa[_0x6f128d(0x162)][_0x6f128d(0x153)](_0x6f128d(0x151))[_0x6f128d(0x14f)]:await _0x40e1aa[_0x6f128d(0x162)][_0x6f128d(0x153)](_0x6f128d(0x151))[_0x6f128d(0x154)](_0x3af42e);}}[_0x1e769c(0x150)](){const _0x1062ce=_0x1e769c;return this[_0x1062ce(0x155)];}}function _0x1f57(){const _0x282aa7=['21956GlrUcr','918690UaKxwY','tokenUrl','ImportWordEditing','11gxPSxP','53nhyTvm','init','3003qvkmjX','984672ovITWs','2984SqcbWW','token','getToken','CloudServices','none','get','registerTokenUrl','_token','7862kTYakE','requires','cloudServices','791bytvvt','editor','pluginName','config','https://docx-converter.cke-cs.com/v2/convert/docx-html','importWord','87ILybOB','22716qRNeSQ','25vrWmTo','plugins','add','inline','10422qwLupL','commands','define'];_0x1f57=function(){return _0x282aa7;};return _0x1f57();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5c908b}from'ckeditor5/src/core.js';import{SpinnerView as _0x39ddac,FileDialogButtonView as _0x503e02,MenuBarMenuListItemFileDialogButtonView as _0xb21d01}from'ckeditor5/src/ui.js';import _0x130015 from'../theme/icons/importword.svg';export default class o extends _0x5c908b{static get['pluginName'](){return'ImportWordUI';}['init'](){const _0xf4f79c=this['editor'];_0xf4f79c['ui']['componentFactory']['add']('importWord',()=>{const _0x1873f1=this['_createButton'](_0x503e02),_0x5c40be=_0xf4f79c['commands']['get']('importWord');return _0x1873f1['bind']('isOn')['to'](_0x5c40be,'isBusy'),_0x1873f1['tooltip']=!0x0,_0x1873f1;}),_0xf4f79c['ui']['componentFactory']['add']('menuBar:importWord',()=>this['_createButton'](_0xb21d01));}['_createButton'](_0x10e3e0){const _0x8f02c8=this['editor'],t=_0x8f02c8['locale']['t'],_0x57cf57=_0x8f02c8['commands']['get']('importWord'),_0x95c5bb=new _0x10e3e0(_0x8f02c8['locale']),_0x129f90=new _0x39ddac();return _0x95c5bb['set']({'acceptedType':'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template'}),_0x95c5bb['set']({'label':t('Import\x20from\x20Word'),'icon':_0x130015}),_0x95c5bb['bind']('isEnabled')['to'](_0x57cf57),_0x129f90['bind']('isVisible')['to'](_0x57cf57,'isBusy'),_0x95c5bb['iconView']['bind']('isVisible')['to'](_0x57cf57,'isBusy',_0x2a0204=>!_0x2a0204),_0x95c5bb['children']['add'](_0x129f90),_0x95c5bb['on']('done',(_0x5005e2,_0x373726)=>{_0x8f02c8['execute']('importWord',_0x373726[0x0],{}),_0x8f02c8['editing']['view']['focus']();}),_0x95c5bb;}}
23
+ import{Plugin as _0x312da3}from'ckeditor5/src/core.js';import{SpinnerView as _0x1959bd,FileDialogButtonView as _0x31a78f,MenuBarMenuListItemFileDialogButtonView as _0x34c59e}from'ckeditor5/src/ui.js';import _0x5c2ee3 from'../theme/icons/importword.svg';export default class o extends _0x312da3{static get['pluginName'](){return'ImportWordUI';}['init'](){const _0xcd8a2b=this['editor'];_0xcd8a2b['ui']['componentFactory']['add']('importWord',()=>{const _0x32ca33=this['_createButton'](_0x31a78f),_0x30e05a=_0xcd8a2b['commands']['get']('importWord');return _0x32ca33['bind']('isOn')['to'](_0x30e05a,'isBusy'),_0x32ca33['tooltip']=!0x0,_0x32ca33;}),_0xcd8a2b['ui']['componentFactory']['add']('menuBar:importWord',()=>this['_createButton'](_0x34c59e));}['_createButton'](_0x39e85f){const _0x15be80=this['editor'],t=_0x15be80['locale']['t'],_0x29a7ef=_0x15be80['commands']['get']('importWord'),_0x15fe86=new _0x39e85f(_0x15be80['locale']),_0x1c8f2b=new _0x1959bd();return _0x15fe86['set']({'acceptedType':'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template'}),_0x15fe86['set']({'label':t('Import\x20from\x20Word'),'icon':_0x5c2ee3}),_0x15fe86['bind']('isEnabled')['to'](_0x29a7ef),_0x1c8f2b['bind']('isVisible')['to'](_0x29a7ef,'isBusy'),_0x15fe86['iconView']['bind']('isVisible')['to'](_0x29a7ef,'isBusy',_0x4905cb=>!_0x4905cb),_0x15fe86['children']['add'](_0x1c8f2b),_0x15fe86['on']('done',(_0x303401,_0x1c7e99)=>{_0x15be80['execute']('importWord',_0x1c7e99[0x0],{}),_0x15be80['editing']['view']['focus']();}),_0x15fe86;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x1449c8,_0x41d12d){var _0x3923f7=_0x22c6,_0x5f1a01=_0x1449c8();while(!![]){try{var _0xb6f0c0=parseInt(_0x3923f7(0x13c))/0x1+parseInt(_0x3923f7(0x135))/0x2+-parseInt(_0x3923f7(0x13a))/0x3+parseInt(_0x3923f7(0x13b))/0x4*(parseInt(_0x3923f7(0x136))/0x5)+-parseInt(_0x3923f7(0x139))/0x6*(-parseInt(_0x3923f7(0x134))/0x7)+-parseInt(_0x3923f7(0x133))/0x8*(-parseInt(_0x3923f7(0x13d))/0x9)+parseInt(_0x3923f7(0x138))/0xa*(-parseInt(_0x3923f7(0x137))/0xb);if(_0xb6f0c0===_0x41d12d)break;else _0x5f1a01['push'](_0x5f1a01['shift']());}catch(_0x202a14){_0x5f1a01['push'](_0x5f1a01['shift']());}}}(_0xb8aa,0xc036a));export{default as ImportWord}from'./importword.js';function _0xb8aa(){var _0x2090ef=['1723752yIoDWX','48KnmDwr','1334081IuhEMW','660454rjFtlm','76170GRSVdN','1109361JGiSMv','290IVqtfS','48MawPdc','2595483buNxtt','128tVUCNB','1085599EwuoDT'];_0xb8aa=function(){return _0x2090ef;};return _0xb8aa();}export{default as ImportWordEditing}from'./importwordediting.js';export{default as ImportWordUI}from'./importwordui.js';function _0x22c6(_0x4fde46,_0x35778e){var _0xb8aa2=_0xb8aa();return _0x22c6=function(_0x22c622,_0x1d897b){_0x22c622=_0x22c622-0x133;var _0x3a65b2=_0xb8aa2[_0x22c622];return _0x3a65b2;},_0x22c6(_0x4fde46,_0x35778e);}import'./augmentation.js';
23
+ (function(_0x48e541,_0x248a7e){var _0x4cb8f3=_0x1e71,_0x538bac=_0x48e541();while(!![]){try{var _0x2a81a2=parseInt(_0x4cb8f3(0x9d))/0x1+-parseInt(_0x4cb8f3(0x95))/0x2*(-parseInt(_0x4cb8f3(0x99))/0x3)+parseInt(_0x4cb8f3(0x9b))/0x4+parseInt(_0x4cb8f3(0x97))/0x5+-parseInt(_0x4cb8f3(0x98))/0x6*(-parseInt(_0x4cb8f3(0x96))/0x7)+parseInt(_0x4cb8f3(0x9a))/0x8+-parseInt(_0x4cb8f3(0x9c))/0x9;if(_0x2a81a2===_0x248a7e)break;else _0x538bac['push'](_0x538bac['shift']());}catch(_0x1bb036){_0x538bac['push'](_0x538bac['shift']());}}}(_0x4dad,0x22e24));function _0x4dad(){var _0x1bea9a=['230875AcXMKv','6JplKiD','49458HtAVIX','2224728saUOiG','76048NbYZne','6031665LsAkUR','281423NYAxZf','16dNbvok','395360mDOobj'];_0x4dad=function(){return _0x1bea9a;};return _0x4dad();}export{default as ImportWord}from'./importword.js';export{default as ImportWordEditing}from'./importwordediting.js';export{default as ImportWordUI}from'./importwordui.js';function _0x1e71(_0x5099df,_0x3c6575){var _0x4dad32=_0x4dad();return _0x1e71=function(_0x1e7159,_0x47f26c){_0x1e7159=_0x1e7159-0x95;var _0x14c5b0=_0x4dad32[_0x1e7159];return _0x14c5b0;},_0x1e71(_0x5099df,_0x3c6575);}import'./augmentation.js';