@ckeditor/ckeditor5-import-word 42.0.2 → 43.0.0-alpha.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.
Files changed (143) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/build/import-word.js +2 -2
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fi.js +1 -1
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -1
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -1
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -1
  24. package/build/translations/ko.js +1 -1
  25. package/build/translations/lt.js +1 -1
  26. package/build/translations/lv.js +1 -1
  27. package/build/translations/ms.js +1 -1
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -1
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -1
  33. package/build/translations/ro.js +1 -1
  34. package/build/translations/ru.js +1 -1
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sr-latn.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -1
  39. package/build/translations/th.js +1 -1
  40. package/build/translations/tr.js +1 -1
  41. package/build/translations/ug.js +1 -1
  42. package/build/translations/uk.js +1 -1
  43. package/build/translations/vi.js +1 -1
  44. package/build/translations/zh-cn.js +1 -1
  45. package/build/translations/zh.js +1 -1
  46. package/dist/index.js +1 -1
  47. package/dist/translations/ar.js +1 -1
  48. package/dist/translations/ar.umd.js +1 -1
  49. package/dist/translations/bg.js +1 -1
  50. package/dist/translations/bg.umd.js +1 -1
  51. package/dist/translations/bn.js +1 -1
  52. package/dist/translations/bn.umd.js +1 -1
  53. package/dist/translations/ca.js +1 -1
  54. package/dist/translations/ca.umd.js +1 -1
  55. package/dist/translations/cs.js +1 -1
  56. package/dist/translations/cs.umd.js +1 -1
  57. package/dist/translations/da.js +1 -1
  58. package/dist/translations/da.umd.js +1 -1
  59. package/dist/translations/de.js +1 -1
  60. package/dist/translations/de.umd.js +1 -1
  61. package/dist/translations/el.js +1 -1
  62. package/dist/translations/el.umd.js +1 -1
  63. package/dist/translations/en-au.js +1 -1
  64. package/dist/translations/en-au.umd.js +1 -1
  65. package/dist/translations/en.umd.js +1 -1
  66. package/dist/translations/es.js +1 -1
  67. package/dist/translations/es.umd.js +1 -1
  68. package/dist/translations/et.js +1 -1
  69. package/dist/translations/et.umd.js +1 -1
  70. package/dist/translations/fi.js +1 -1
  71. package/dist/translations/fi.umd.js +1 -1
  72. package/dist/translations/fr.js +1 -1
  73. package/dist/translations/fr.umd.js +1 -1
  74. package/dist/translations/gl.js +1 -1
  75. package/dist/translations/gl.umd.js +1 -1
  76. package/dist/translations/he.js +1 -1
  77. package/dist/translations/he.umd.js +1 -1
  78. package/dist/translations/hi.js +1 -1
  79. package/dist/translations/hi.umd.js +1 -1
  80. package/dist/translations/hr.js +1 -1
  81. package/dist/translations/hr.umd.js +1 -1
  82. package/dist/translations/hu.js +1 -1
  83. package/dist/translations/hu.umd.js +1 -1
  84. package/dist/translations/id.js +1 -1
  85. package/dist/translations/id.umd.js +1 -1
  86. package/dist/translations/it.js +1 -1
  87. package/dist/translations/it.umd.js +1 -1
  88. package/dist/translations/ja.js +1 -1
  89. package/dist/translations/ja.umd.js +1 -1
  90. package/dist/translations/ko.js +1 -1
  91. package/dist/translations/ko.umd.js +1 -1
  92. package/dist/translations/lt.js +1 -1
  93. package/dist/translations/lt.umd.js +1 -1
  94. package/dist/translations/lv.js +1 -1
  95. package/dist/translations/lv.umd.js +1 -1
  96. package/dist/translations/ms.js +1 -1
  97. package/dist/translations/ms.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/pl.js +1 -1
  103. package/dist/translations/pl.umd.js +1 -1
  104. package/dist/translations/pt-br.js +1 -1
  105. package/dist/translations/pt-br.umd.js +1 -1
  106. package/dist/translations/pt.js +1 -1
  107. package/dist/translations/pt.umd.js +1 -1
  108. package/dist/translations/ro.js +1 -1
  109. package/dist/translations/ro.umd.js +1 -1
  110. package/dist/translations/ru.js +1 -1
  111. package/dist/translations/ru.umd.js +1 -1
  112. package/dist/translations/sk.js +1 -1
  113. package/dist/translations/sk.umd.js +1 -1
  114. package/dist/translations/sr-latn.js +1 -1
  115. package/dist/translations/sr-latn.umd.js +1 -1
  116. package/dist/translations/sr.js +1 -1
  117. package/dist/translations/sr.umd.js +1 -1
  118. package/dist/translations/sv.js +1 -1
  119. package/dist/translations/sv.umd.js +1 -1
  120. package/dist/translations/th.js +1 -1
  121. package/dist/translations/th.umd.js +1 -1
  122. package/dist/translations/tr.js +1 -1
  123. package/dist/translations/tr.umd.js +1 -1
  124. package/dist/translations/ug.js +1 -1
  125. package/dist/translations/ug.umd.js +1 -1
  126. package/dist/translations/uk.js +1 -1
  127. package/dist/translations/uk.umd.js +1 -1
  128. package/dist/translations/vi.js +1 -1
  129. package/dist/translations/vi.umd.js +1 -1
  130. package/dist/translations/zh-cn.js +1 -1
  131. package/dist/translations/zh-cn.umd.js +1 -1
  132. package/dist/translations/zh.js +1 -1
  133. package/dist/translations/zh.umd.js +1 -1
  134. package/dist/utils/common-translations.d.ts +13 -0
  135. package/lang/translations/sr-latn.po +1 -1
  136. package/package.json +7 -7
  137. package/src/importword.js +1 -1
  138. package/src/importwordcommand.js +1 -1
  139. package/src/importwordediting.js +1 -1
  140. package/src/importwordui.js +1 -1
  141. package/src/index.js +1 -1
  142. package/src/utils/common-translations.d.ts +9 -0
  143. package/src/utils/common-translations.js +23 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x45035d=>{const {tr:{dictionary:_0x4d0b87,getPluralForm:_0x177d0b}}={'tr':{'dictionary':{'Import\x20from\x20Word':'Word\x27den\x20içe\x20aktar','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Word\x20dosyası\x20içe\x20aktarılırken\x20bir\x20hata\x20oluştu.','Importing\x20Word\x20document':'Word\x20belgesi\x20içe\x20aktarılıyor'},'getPluralForm':_0x566b55=>_0x566b55>0x1}};_0x45035d['tr']||={'dictionary':{},'getPluralForm':null},_0x45035d['tr']['dictionary']=Object['assign'](_0x45035d['tr']['dictionary'],_0x4d0b87),_0x45035d['tr']['getPluralForm']=_0x177d0b;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x51a2ac=>{const {tr:{dictionary:_0x32c4e6,getPluralForm:_0x1c2fdb}}={'tr':{'dictionary':{'Import\x20from\x20Word':'Word\x27den\x20içe\x20aktar','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Word\x20dosyası\x20içe\x20aktarılırken\x20bir\x20hata\x20oluştu.','Importing\x20Word\x20document':'Word\x20belgesi\x20içe\x20aktarılıyor'},'getPluralForm':_0x3bd37a=>_0x3bd37a>0x1}};_0x51a2ac['tr']||={'dictionary':{},'getPluralForm':null},_0x51a2ac['tr']['dictionary']=Object['assign'](_0x51a2ac['tr']['dictionary'],_0x32c4e6),_0x51a2ac['tr']['getPluralForm']=_0x1c2fdb;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'ug':{'dictionary':{'Import\x20from\x20Word':'Word\x20تىن\x20ئەكىر','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Word\x20ھۆججەتتىن\x20ئەكىرىۋاتقاندا\x20بىر\x20خاتالىق\x20كۆرۈلدى.','Importing\x20Word\x20document':''},'getPluralForm':_0x565b64=>0x1!=_0x565b64}};
23
+ export default{'ug':{'dictionary':{'Import\x20from\x20Word':'Word\x20تىن\x20ئەكىر','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Word\x20ھۆججەتتىن\x20ئەكىرىۋاتقاندا\x20بىر\x20خاتالىق\x20كۆرۈلدى.','Importing\x20Word\x20document':''},'getPluralForm':_0x3c27af=>0x1!=_0x3c27af}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x4db68e=>{const {ug:{dictionary:_0x4c0723,getPluralForm:_0x1bb155}}={'ug':{'dictionary':{'Import\x20from\x20Word':'Word\x20تىن\x20ئەكىر','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Word\x20ھۆججەتتىن\x20ئەكىرىۋاتقاندا\x20بىر\x20خاتالىق\x20كۆرۈلدى.','Importing\x20Word\x20document':''},'getPluralForm':_0xe182b5=>0x1!=_0xe182b5}};_0x4db68e['ug']||={'dictionary':{},'getPluralForm':null},_0x4db68e['ug']['dictionary']=Object['assign'](_0x4db68e['ug']['dictionary'],_0x4c0723),_0x4db68e['ug']['getPluralForm']=_0x1bb155;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x17d91b=>{const {ug:{dictionary:_0x3984b4,getPluralForm:_0x27b5b1}}={'ug':{'dictionary':{'Import\x20from\x20Word':'Word\x20تىن\x20ئەكىر','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Word\x20ھۆججەتتىن\x20ئەكىرىۋاتقاندا\x20بىر\x20خاتالىق\x20كۆرۈلدى.','Importing\x20Word\x20document':''},'getPluralForm':_0x3f2857=>0x1!=_0x3f2857}};_0x17d91b['ug']||={'dictionary':{},'getPluralForm':null},_0x17d91b['ug']['dictionary']=Object['assign'](_0x17d91b['ug']['dictionary'],_0x3984b4),_0x17d91b['ug']['getPluralForm']=_0x27b5b1;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'uk':{'dictionary':{'Import\x20from\x20Word':'Імпортувати\x20з\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Під\x20час\x20імпортування\x20файлу\x20Word\x20сталася\x20помилка.','Importing\x20Word\x20document':'Імпорт\x20документа\x20Word'},'getPluralForm':_0x11abb2=>_0x11abb2%0x1==0x0&&_0x11abb2%0xa==0x1&&_0x11abb2%0x64!=0xb?0x0:_0x11abb2%0x1==0x0&&_0x11abb2%0xa>=0x2&&_0x11abb2%0xa<=0x4&&(_0x11abb2%0x64<0xc||_0x11abb2%0x64>0xe)?0x1:_0x11abb2%0x1==0x0&&(_0x11abb2%0xa==0x0||_0x11abb2%0xa>=0x5&&_0x11abb2%0xa<=0x9||_0x11abb2%0x64>=0xb&&_0x11abb2%0x64<=0xe)?0x2:0x3}};
23
+ export default{'uk':{'dictionary':{'Import\x20from\x20Word':'Імпортувати\x20з\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Під\x20час\x20імпортування\x20файлу\x20Word\x20сталася\x20помилка.','Importing\x20Word\x20document':'Імпорт\x20документа\x20Word'},'getPluralForm':_0x140f7c=>_0x140f7c%0x1==0x0&&_0x140f7c%0xa==0x1&&_0x140f7c%0x64!=0xb?0x0:_0x140f7c%0x1==0x0&&_0x140f7c%0xa>=0x2&&_0x140f7c%0xa<=0x4&&(_0x140f7c%0x64<0xc||_0x140f7c%0x64>0xe)?0x1:_0x140f7c%0x1==0x0&&(_0x140f7c%0xa==0x0||_0x140f7c%0xa>=0x5&&_0x140f7c%0xa<=0x9||_0x140f7c%0x64>=0xb&&_0x140f7c%0x64<=0xe)?0x2:0x3}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x81abc6=>{const {uk:{dictionary:_0x1ae097,getPluralForm:_0x2a7464}}={'uk':{'dictionary':{'Import\x20from\x20Word':'Імпортувати\x20з\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Під\x20час\x20імпортування\x20файлу\x20Word\x20сталася\x20помилка.','Importing\x20Word\x20document':'Імпорт\x20документа\x20Word'},'getPluralForm':_0x5cf53c=>_0x5cf53c%0x1==0x0&&_0x5cf53c%0xa==0x1&&_0x5cf53c%0x64!=0xb?0x0:_0x5cf53c%0x1==0x0&&_0x5cf53c%0xa>=0x2&&_0x5cf53c%0xa<=0x4&&(_0x5cf53c%0x64<0xc||_0x5cf53c%0x64>0xe)?0x1:_0x5cf53c%0x1==0x0&&(_0x5cf53c%0xa==0x0||_0x5cf53c%0xa>=0x5&&_0x5cf53c%0xa<=0x9||_0x5cf53c%0x64>=0xb&&_0x5cf53c%0x64<=0xe)?0x2:0x3}};_0x81abc6['uk']||={'dictionary':{},'getPluralForm':null},_0x81abc6['uk']['dictionary']=Object['assign'](_0x81abc6['uk']['dictionary'],_0x1ae097),_0x81abc6['uk']['getPluralForm']=_0x2a7464;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x46602f=>{const {uk:{dictionary:_0x348490,getPluralForm:_0x3fc53b}}={'uk':{'dictionary':{'Import\x20from\x20Word':'Імпортувати\x20з\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Під\x20час\x20імпортування\x20файлу\x20Word\x20сталася\x20помилка.','Importing\x20Word\x20document':'Імпорт\x20документа\x20Word'},'getPluralForm':_0x3ff105=>_0x3ff105%0x1==0x0&&_0x3ff105%0xa==0x1&&_0x3ff105%0x64!=0xb?0x0:_0x3ff105%0x1==0x0&&_0x3ff105%0xa>=0x2&&_0x3ff105%0xa<=0x4&&(_0x3ff105%0x64<0xc||_0x3ff105%0x64>0xe)?0x1:_0x3ff105%0x1==0x0&&(_0x3ff105%0xa==0x0||_0x3ff105%0xa>=0x5&&_0x3ff105%0xa<=0x9||_0x3ff105%0x64>=0xb&&_0x3ff105%0x64<=0xe)?0x2:0x3}};_0x46602f['uk']||={'dictionary':{},'getPluralForm':null},_0x46602f['uk']['dictionary']=Object['assign'](_0x46602f['uk']['dictionary'],_0x348490),_0x46602f['uk']['getPluralForm']=_0x3fc53b;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'vi':{'dictionary':{'Import\x20from\x20Word':'Nhập\x20từ\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20nhập\x20tệp\x20Word.','Importing\x20Word\x20document':'Đang\x20nhập\x20tài\x20liệu\x20Word'},'getPluralForm':_0x55c1c8=>0x0}};
23
+ export default{'vi':{'dictionary':{'Import\x20from\x20Word':'Nhập\x20từ\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20nhập\x20tệp\x20Word.','Importing\x20Word\x20document':'Đang\x20nhập\x20tài\x20liệu\x20Word'},'getPluralForm':_0x14adc0=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x404369=>{const {vi:{dictionary:_0x48da71,getPluralForm:_0x1cf660}}={'vi':{'dictionary':{'Import\x20from\x20Word':'Nhập\x20từ\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20nhập\x20tệp\x20Word.','Importing\x20Word\x20document':'Đang\x20nhập\x20tài\x20liệu\x20Word'},'getPluralForm':_0x3d42d8=>0x0}};_0x404369['vi']||={'dictionary':{},'getPluralForm':null},_0x404369['vi']['dictionary']=Object['assign'](_0x404369['vi']['dictionary'],_0x48da71),_0x404369['vi']['getPluralForm']=_0x1cf660;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0xfd6c07=>{const {vi:{dictionary:_0x4e03b1,getPluralForm:_0xa0a026}}={'vi':{'dictionary':{'Import\x20from\x20Word':'Nhập\x20từ\x20Word','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20nhập\x20tệp\x20Word.','Importing\x20Word\x20document':'Đang\x20nhập\x20tài\x20liệu\x20Word'},'getPluralForm':_0x3651eb=>0x0}};_0xfd6c07['vi']||={'dictionary':{},'getPluralForm':null},_0xfd6c07['vi']['dictionary']=Object['assign'](_0xfd6c07['vi']['dictionary'],_0x4e03b1),_0xfd6c07['vi']['getPluralForm']=_0xa0a026;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。','Importing\x20Word\x20document':'正在导入\x20Word\x20文档'},'getPluralForm':_0x3e5d2d=>0x0}};
23
+ export default{'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。','Importing\x20Word\x20document':'正在导入\x20Word\x20文档'},'getPluralForm':_0x49a8ed=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x1242b2=>{const {'zh-cn':{dictionary:_0x972ceb,getPluralForm:_0x15cf4c}}={'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。','Importing\x20Word\x20document':'正在导入\x20Word\x20文档'},'getPluralForm':_0x5bb2b8=>0x0}};_0x1242b2['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x1242b2['zh-cn']['dictionary']=Object['assign'](_0x1242b2['zh-cn']['dictionary'],_0x972ceb),_0x1242b2['zh-cn']['getPluralForm']=_0x15cf4c;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x184053=>{const {'zh-cn':{dictionary:_0x264b62,getPluralForm:_0x3789d3}}={'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。','Importing\x20Word\x20document':'正在导入\x20Word\x20文档'},'getPluralForm':_0xe0582c=>0x0}};_0x184053['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x184053['zh-cn']['dictionary']=Object['assign'](_0x184053['zh-cn']['dictionary'],_0x264b62),_0x184053['zh-cn']['getPluralForm']=_0x3789d3;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。','Importing\x20Word\x20document':'匯入\x20Word\x20文件'},'getPluralForm':_0x579ee0=>0x0}};
23
+ export default{'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。','Importing\x20Word\x20document':'匯入\x20Word\x20文件'},'getPluralForm':_0x476c9e=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x28b4da=>{const {zh:{dictionary:_0x514e9d,getPluralForm:_0x16dcc4}}={'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。','Importing\x20Word\x20document':'匯入\x20Word\x20文件'},'getPluralForm':_0x46597c=>0x0}};_0x28b4da['zh']||={'dictionary':{},'getPluralForm':null},_0x28b4da['zh']['dictionary']=Object['assign'](_0x28b4da['zh']['dictionary'],_0x514e9d),_0x28b4da['zh']['getPluralForm']=_0x16dcc4;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x619c1c=>{const {zh:{dictionary:_0x3965ad,getPluralForm:_0x1c83ac}}={'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。','Importing\x20Word\x20document':'匯入\x20Word\x20文件'},'getPluralForm':_0x17e66e=>0x0}};_0x619c1c['zh']||={'dictionary':{},'getPluralForm':null},_0x619c1c['zh']['dictionary']=Object['assign'](_0x619c1c['zh']['dictionary'],_0x3965ad),_0x619c1c['zh']['getPluralForm']=_0x1c83ac;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module import-word/utils/common-translations
11
+ */
12
+ import type { Locale } from 'ckeditor5/src/utils.js';
13
+ export declare function getTranslation(locale: Locale, id: string): string;
@@ -27,4 +27,4 @@ msgstr "Došlo je do greške pri uvozu Word datoteke."
27
27
 
28
28
  msgctxt "Aria label set on Import from Word button while importing Word document."
29
29
  msgid "Importing Word document"
30
- msgstr ""
30
+ msgstr "Uvoz Vord dokumenta"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-import-word",
3
- "version": "42.0.2",
3
+ "version": "43.0.0-alpha.1",
4
4
  "description": "Import from Word feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -30,12 +30,12 @@
30
30
  "type": "module",
31
31
  "main": "src/index.js",
32
32
  "dependencies": {
33
- "@ckeditor/ckeditor5-clipboard": "42.0.2",
34
- "@ckeditor/ckeditor5-core": "42.0.2",
35
- "@ckeditor/ckeditor5-engine": "42.0.2",
36
- "@ckeditor/ckeditor5-ui": "42.0.2",
37
- "@ckeditor/ckeditor5-utils": "42.0.2",
38
- "ckeditor5": "42.0.2"
33
+ "@ckeditor/ckeditor5-clipboard": "43.0.0-alpha.1",
34
+ "@ckeditor/ckeditor5-core": "43.0.0-alpha.1",
35
+ "@ckeditor/ckeditor5-engine": "43.0.0-alpha.1",
36
+ "@ckeditor/ckeditor5-ui": "43.0.0-alpha.1",
37
+ "@ckeditor/ckeditor5-utils": "43.0.0-alpha.1",
38
+ "ckeditor5": "43.0.0-alpha.1"
39
39
  },
40
40
  "license": "SEE LICENSE IN LICENSE.md",
41
41
  "author": "CKSource (https://cksource.com/)",
package/src/importword.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x466532=_0x775d;function _0x1479(){var _0x1c2b1b=['90WRmZDU','4404vKvBRi','86840wmjBCP','21bHvhSM','4184115tAZiaD','32362CJXctF','requires','18GjcsiI','46078xBSQpE','1364676HfTyMq','pluginName','1274120ugOoGz','1160530PkopDO','3UFRrjv','ImportWord'];_0x1479=function(){return _0x1c2b1b;};return _0x1479();}(function(_0x634d77,_0x433250){var _0x548017=_0x775d,_0xa8392a=_0x634d77();while(!![]){try{var _0x2880e1=parseInt(_0x548017(0xd0))/0x1*(parseInt(_0x548017(0xd5))/0x2)+parseInt(_0x548017(0xcb))/0x3*(parseInt(_0x548017(0xd6))/0x4)+-parseInt(_0x548017(0xd1))/0x5+-parseInt(_0x548017(0xd4))/0x6*(parseInt(_0x548017(0xca))/0x7)+-parseInt(_0x548017(0xc9))/0x8+parseInt(_0x548017(0xcd))/0x9*(parseInt(_0x548017(0xcf))/0xa)+parseInt(_0x548017(0xd2))/0xb*(parseInt(_0x548017(0xce))/0xc);if(_0x2880e1===_0x433250)break;else _0xa8392a['push'](_0xa8392a['shift']());}catch(_0x54dbe1){_0xa8392a['push'](_0xa8392a['shift']());}}}(_0x1479,0x799a4));import{Plugin as _0x53a7b9}from'ckeditor5/src/core.js';import _0x430689 from'./importwordui.js';import _0x29476c from'./importwordediting.js';function _0x775d(_0xd5330c,_0x406957){var _0x1479cc=_0x1479();return _0x775d=function(_0x775dec,_0x3fb2e9){_0x775dec=_0x775dec-0xc9;var _0x21f8c7=_0x1479cc[_0x775dec];return _0x21f8c7;},_0x775d(_0xd5330c,_0x406957);}export default class i extends _0x53a7b9{static get[_0x466532(0xd7)](){var _0x5470b6=_0x466532;return _0x5470b6(0xcc);}static get[_0x466532(0xd3)](){return[_0x29476c,_0x430689];}}
23
+ var _0x57ec3e=_0x5b96;(function(_0x5e6f26,_0x5ec585){var _0xfdbbb7=_0x5b96,_0x1dacd8=_0x5e6f26();while(!![]){try{var _0x4546dd=parseInt(_0xfdbbb7(0x1d0))/0x1*(-parseInt(_0xfdbbb7(0x1d3))/0x2)+-parseInt(_0xfdbbb7(0x1dc))/0x3+-parseInt(_0xfdbbb7(0x1d5))/0x4*(parseInt(_0xfdbbb7(0x1d9))/0x5)+-parseInt(_0xfdbbb7(0x1db))/0x6*(parseInt(_0xfdbbb7(0x1d2))/0x7)+parseInt(_0xfdbbb7(0x1cf))/0x8+-parseInt(_0xfdbbb7(0x1d7))/0x9*(-parseInt(_0xfdbbb7(0x1d1))/0xa)+parseInt(_0xfdbbb7(0x1d4))/0xb*(parseInt(_0xfdbbb7(0x1d8))/0xc);if(_0x4546dd===_0x5ec585)break;else _0x1dacd8['push'](_0x1dacd8['shift']());}catch(_0x2c0a7c){_0x1dacd8['push'](_0x1dacd8['shift']());}}}(_0x3aba,0x77bc4));import{Plugin as _0x237401}from'ckeditor5/src/core.js';import _0x244631 from'./importwordui.js';function _0x5b96(_0x43685c,_0x4e7949){var _0x3aba82=_0x3aba();return _0x5b96=function(_0x5b9692,_0x3015c3){_0x5b9692=_0x5b9692-0x1ce;var _0x25ae57=_0x3aba82[_0x5b9692];return _0x25ae57;},_0x5b96(_0x43685c,_0x4e7949);}import _0x25495c from'./importwordediting.js';export default class i extends _0x237401{static get[_0x57ec3e(0x1d6)](){var _0x10a069=_0x57ec3e;return _0x10a069(0x1da);}static get[_0x57ec3e(0x1ce)](){return[_0x25495c,_0x244631];}}function _0x3aba(){var _0x4c2db8=['1214196xrnDBl','1940990OhMygI','ImportWord','4673346aHhYrs','2761596jItiHb','requires','5466128mwFjuL','19JTXEmy','72600xSQAlq','7LWaIdF','45662WOoSJp','220fCfmtA','4qHDDXZ','pluginName','378kkaloJ'];_0x3aba=function(){return _0x4c2db8;};return _0x3aba();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x2e7b8e}from'ckeditor5/src/core.js';import{Range as _0x4cecfe}from'ckeditor5/src/engine.js';import{logWarning as _0x55743c,logError as _0x52c820,first as _0x6e2b17,uid as _0x222072}from'ckeditor5/src/utils.js';export default class d extends _0x2e7b8e{constructor(_0x2d63d1){super(_0x2d63d1),this['set']('isBusy',!0x1),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['on']('dataInsert',(_0x27fee0,_0x3d3115)=>{const _0x25a60b=new DataTransfer();_0x25a60b['setData']('text/html',_0x3d3115['html']);const _0x59027c=this['_importMarker']['getRange']();this['editor']['model']['enqueueChange'](this['_undoStepBatch'],_0x25eea0=>{this['_importMarker']['stopListening'](),_0x25eea0['setSelection'](_0x59027c),_0x2d63d1['editing']['view']['document']['fire']('clipboardInput',{'dataTransfer':_0x25a60b});});},{'priority':'low'});}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x57d1ea,_0x4f57d2={}){if(this['isBusy'])return Promise['resolve']();const _0x4c4470=this['editor']['config']['get']('importWord'),_0x14076c={'url':_0x4c4470['converterUrl'],'file':_0x57d1ea,'serviceConfig':{..._0x4f57d2,'formatting':_0x4c4470['formatting']}};return this['_prepareForImport'](),this['_sendImportRequest'](_0x14076c)['then'](this['_handleImportResponse']['bind'](this))['catch'](this['_handleImportFailure']['bind'](this))['finally'](this['_cleanUpAfterImport']['bind'](this));}['_checkEnabled'](){if(this['isBusy'])return!0x1;const _0x3093a6=this['editor']['model'],_0x54bdee=_0x3093a6['schema'],_0x4e7247=_0x3093a6['document']['selection'],_0x4353a1=_0x6e2b17(_0x4e7247['getSelectedBlocks']());return!!_0x4353a1&&_0x54bdee['checkChild'](_0x4353a1['parent'],'paragraph');}['_prepareForImport'](){const _0x518357=this['editor'],_0x433a54=_0x518357['model'],_0x10c08a=_0x433a54['document']['selection'];this['_abortController']=new AbortController(),this['_undoStepBatch']=_0x518357['model']['createBatch']({'isUndoable':!0x0}),_0x433a54['enqueueChange'](this['_undoStepBatch'],_0x1cab23=>{_0x10c08a['isCollapsed']||_0x433a54['deleteContent'](_0x10c08a,{'leaveUnmerged':!0x0});const _0x182a69=_0x10c08a['getFirstPosition'](),_0x2f6465=_0x6e2b17(_0x10c08a['getSelectedBlocks']());let _0x2457ec;_0x2457ec=_0x2f6465['is']('element','paragraph')&&_0x2f6465['isEmpty']?_0x182a69:_0x182a69['isAtStart']?_0x433a54['createPositionBefore'](_0x2f6465):_0x182a69['isAtEnd']?_0x433a54['createPositionAfter'](_0x2f6465):_0x1cab23['split'](_0x182a69)['position'],this['_importMarker']=_0x1cab23['addMarker']('importWord:'+_0x222072(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new _0x4cecfe(_0x2457ec)}),this['_importMarker']['on']('change:range',()=>{'$graveyard'===this['_importMarker']['getRange']()['root']['rootName']&&this['_abortController']['abort']();});}),this['isBusy']=!0x0,this['refresh']();}['_cleanUpAfterImport'](){const _0x550454=this['editor']['model'];_0x550454['markers']['has'](this['_importMarker'])&&_0x550454['enqueueChange'](this['_undoStepBatch'],_0x1f4fee=>{_0x1f4fee['removeMarker'](this['_importMarker']);}),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['isBusy']=!0x1,this['refresh']();}['_sendImportRequest']({url:_0x4ba20e,file:_0x153bf3,serviceConfig:_0x4af2b0}){const _0x28247a=this['editor']['plugins']['get']('ImportWordEditing')['getToken'](),_0x256fc7=new FormData();_0x256fc7['set']('config',JSON['stringify'](_0x4af2b0)),_0x256fc7['set']('file',_0x153bf3);const _0x1d13b2={'method':'POST','headers':{},'body':_0x256fc7,'signal':this['_abortController']['signal']};return _0x28247a&&(_0x1d13b2['headers']['Authorization']=_0x28247a['value']),fetch(_0x4ba20e,_0x1d13b2);}['_handleImportResponse'](_0x39dd67){return _0x39dd67['ok']?_0x39dd67['json']()['then'](_0x3610aa=>{if(!this['editor']['model']['markers']['has'](this['_importMarker']))return;'$graveyard'!==this['_importMarker']['getRange']()['root']['rootName']&&this['fire']('dataInsert',_0x3610aa);}):Promise['reject']();}['_handleImportFailure'](){if(this['_abortController']['signal']['aborted'])return void _0x55743c('import-word-plugin-import-cancelled');const _0x44b10e=this['editor'],_0x53cee7=(0x0,_0x44b10e['t'])('An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');_0x44b10e['plugins']['get']('Notification')['showWarning'](_0x53cee7),_0x52c820('import-word-plugin-conversion-failed');}}
23
+ const _0x18810=_0xb0f0;function _0xb0f0(_0x40872d,_0x4c9647){const _0x2a3a8c=_0x2a3a();return _0xb0f0=function(_0xb0f02f,_0x3324db){_0xb0f02f=_0xb0f02f-0xbb;let _0x3ed401=_0x2a3a8c[_0xb0f02f];return _0x3ed401;},_0xb0f0(_0x40872d,_0x4c9647);}(function(_0x381912,_0x482c49){const _0x49d04d=_0xb0f0,_0x258f18=_0x381912();while(!![]){try{const _0x3fe981=-parseInt(_0x49d04d(0xc3))/0x1+parseInt(_0x49d04d(0xcb))/0x2+-parseInt(_0x49d04d(0x101))/0x3*(-parseInt(_0x49d04d(0xd2))/0x4)+parseInt(_0x49d04d(0x10c))/0x5+parseInt(_0x49d04d(0xe4))/0x6+parseInt(_0x49d04d(0xc0))/0x7*(parseInt(_0x49d04d(0xc7))/0x8)+parseInt(_0x49d04d(0xd3))/0x9*(-parseInt(_0x49d04d(0xec))/0xa);if(_0x3fe981===_0x482c49)break;else _0x258f18['push'](_0x258f18['shift']());}catch(_0x24601c){_0x258f18['push'](_0x258f18['shift']());}}}(_0x2a3a,0xd13d2));import{Command as _0x29abec}from'ckeditor5/src/core.js';import{Range as _0x147748}from'ckeditor5/src/engine.js';import{logWarning as _0x4f8fd1,logError as _0x2ed98d,first as _0x2e94bb,uid as _0x483bd8}from'ckeditor5/src/utils.js';import{getTranslation as _0x33a580}from'./utils/common-translations.js';function _0x2a3a(){const _0x3057ae=['timeZone','fire','getFirstPosition','showWarning','change:range','mergeFields','POST','import-word-plugin-import-cancelled','formatting','text/html','10716JJDnDR','createBatch','enqueueChange','plugins','importWord','split','_handleImportResponse','stopListening','removeMarker','getRange','import-word-plugin-conversion-failed','5279180bFoGan','isEmpty','stringify','_importMarker','createPositionBefore','set','html','resolvedOptions','low','ImportWordEditing','getSelectedBlocks','deleteContent','then','execute','finally','getToken','isAtStart','clipboardInput','isAtEnd','MergeFields','get','_sendImportRequest','model','addMarker','_cleanUpAfterImport','_handleImportFailure','reject','6397517klRkwR','has','isBusy','1007653sITPbm','isEnabled','_undoStepBatch','catch','8PmweUq','rootName','refresh','_abortController','3145660YgQyZk','headers','resolve','schema','_prepareForImport','element','selection','368tuXnWE','9MQEnOj','merge_fields','dataInsert','document','file','position','root','markers','createPositionAfter','editing','Notification','checkChild','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.','converterUrl','paragraph','abort','DateTimeFormat','7883958OHZVUK','bind','setSelection','view','value','_checkEnabled','importWord:','locale','33205190FXpoyC','$graveyard','config','json','parent','Authorization','isCollapsed','editor','aborted','setData','signal'];_0x2a3a=function(){return _0x3057ae;};return _0x2a3a();}export default class d extends _0x29abec{constructor(_0x789482){const _0x257e36=_0xb0f0;super(_0x789482),this[_0x257e36(0x111)](_0x257e36(0xc2),!0x1),this[_0x257e36(0x10f)]=null,this[_0x257e36(0xc5)]=null,this[_0x257e36(0xca)]=null,this['on'](_0x257e36(0xd5),(_0x322901,_0x31c2e2)=>{const _0xcd30dd=_0x257e36,_0x17e999=new DataTransfer();_0x17e999[_0xcd30dd(0xf5)](_0xcd30dd(0x100),_0x31c2e2[_0xcd30dd(0x112)]);const _0x3a10b8=this[_0xcd30dd(0x10f)][_0xcd30dd(0x10a)]();this[_0xcd30dd(0xf3)][_0xcd30dd(0xbb)][_0xcd30dd(0x103)](this[_0xcd30dd(0xc5)],_0x56ea73=>{const _0x156d26=_0xcd30dd;this[_0x156d26(0x10f)][_0x156d26(0x108)](),_0x56ea73[_0x156d26(0xe6)](_0x3a10b8),_0x789482[_0x156d26(0xdc)][_0x156d26(0xe7)][_0x156d26(0xd6)][_0x156d26(0xf8)](_0x156d26(0x11d),{'dataTransfer':_0x17e999});});},{'priority':_0x257e36(0x114)});}[_0x18810(0xc9)](){const _0x12b51c=_0x18810;this[_0x12b51c(0xc4)]=this[_0x12b51c(0xe9)]();}[_0x18810(0x119)](_0x43baac,_0x52a71f={}){const _0x529ae0=_0x18810;if(this[_0x529ae0(0xc2)])return Promise[_0x529ae0(0xcd)]();const _0x23ae3d=this[_0x529ae0(0xf3)][_0x529ae0(0xee)][_0x529ae0(0x120)](_0x529ae0(0x105));if(this[_0x529ae0(0xf3)][_0x529ae0(0x104)][_0x529ae0(0xc1)](_0x529ae0(0x11f))){const {prefix:_0x118f89,suffix:_0x59b357}=this[_0x529ae0(0xf3)][_0x529ae0(0xee)][_0x529ae0(0x120)](_0x529ae0(0xfc));_0x52a71f[_0x529ae0(0xd4)]={'prefix':_0x118f89,'suffix':_0x59b357};}const _0x3fc15c={'url':_0x23ae3d[_0x529ae0(0xe0)],'file':_0x43baac,'serviceConfig':{..._0x52a71f,'formatting':_0x23ae3d[_0x529ae0(0xff)],'timezone':new Intl[(_0x529ae0(0xe3))]()[_0x529ae0(0x113)]()[_0x529ae0(0xf7)]}};return this[_0x529ae0(0xcf)](),this[_0x529ae0(0x121)](_0x3fc15c)[_0x529ae0(0x118)](this[_0x529ae0(0x107)][_0x529ae0(0xe5)](this))[_0x529ae0(0xc6)](this[_0x529ae0(0xbe)][_0x529ae0(0xe5)](this))[_0x529ae0(0x11a)](this[_0x529ae0(0xbd)][_0x529ae0(0xe5)](this));}[_0x18810(0xe9)](){const _0x48a0e0=_0x18810;if(this[_0x48a0e0(0xc2)])return!0x1;const _0x52c89b=this[_0x48a0e0(0xf3)][_0x48a0e0(0xbb)],_0x30a20b=_0x52c89b[_0x48a0e0(0xce)],_0x3c6199=_0x52c89b[_0x48a0e0(0xd6)][_0x48a0e0(0xd1)],_0x20d9bc=_0x2e94bb(_0x3c6199[_0x48a0e0(0x116)]());return!!_0x20d9bc&&_0x30a20b[_0x48a0e0(0xde)](_0x20d9bc[_0x48a0e0(0xf0)],_0x48a0e0(0xe1));}[_0x18810(0xcf)](){const _0x344c6c=_0x18810,_0x272fd1=this[_0x344c6c(0xf3)],_0x2d5787=_0x272fd1[_0x344c6c(0xbb)],_0x586bce=_0x2d5787[_0x344c6c(0xd6)][_0x344c6c(0xd1)];this[_0x344c6c(0xca)]=new AbortController(),this[_0x344c6c(0xc5)]=_0x272fd1[_0x344c6c(0xbb)][_0x344c6c(0x102)]({'isUndoable':!0x0}),_0x2d5787[_0x344c6c(0x103)](this[_0x344c6c(0xc5)],_0x311216=>{const _0x5d124d=_0x344c6c;_0x586bce[_0x5d124d(0xf2)]||_0x2d5787[_0x5d124d(0x117)](_0x586bce,{'leaveUnmerged':!0x0});const _0x9c99c7=_0x586bce[_0x5d124d(0xf9)](),_0x31ea4b=_0x2e94bb(_0x586bce[_0x5d124d(0x116)]());let _0x583290;_0x583290=_0x31ea4b['is'](_0x5d124d(0xd0),_0x5d124d(0xe1))&&_0x31ea4b[_0x5d124d(0x10d)]?_0x9c99c7:_0x9c99c7[_0x5d124d(0x11c)]?_0x2d5787[_0x5d124d(0x110)](_0x31ea4b):_0x9c99c7[_0x5d124d(0x11e)]?_0x2d5787[_0x5d124d(0xdb)](_0x31ea4b):_0x311216[_0x5d124d(0x106)](_0x9c99c7)[_0x5d124d(0xd8)],this[_0x5d124d(0x10f)]=_0x311216[_0x5d124d(0xbc)](_0x5d124d(0xea)+_0x483bd8(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new _0x147748(_0x583290)}),this[_0x5d124d(0x10f)]['on'](_0x5d124d(0xfb),()=>{const _0x1503a5=_0x5d124d;_0x1503a5(0xed)===this[_0x1503a5(0x10f)][_0x1503a5(0x10a)]()[_0x1503a5(0xd9)][_0x1503a5(0xc8)]&&this[_0x1503a5(0xca)][_0x1503a5(0xe2)]();});}),this[_0x344c6c(0xc2)]=!0x0,this[_0x344c6c(0xc9)]();}[_0x18810(0xbd)](){const _0x5d6930=_0x18810,_0xe5d5cf=this[_0x5d6930(0xf3)][_0x5d6930(0xbb)];_0xe5d5cf[_0x5d6930(0xda)][_0x5d6930(0xc1)](this[_0x5d6930(0x10f)])&&_0xe5d5cf[_0x5d6930(0x103)](this[_0x5d6930(0xc5)],_0xa6495d=>{const _0xe17eb1=_0x5d6930;_0xa6495d[_0xe17eb1(0x109)](this[_0xe17eb1(0x10f)]);}),this[_0x5d6930(0x10f)]=null,this[_0x5d6930(0xc5)]=null,this[_0x5d6930(0xca)]=null,this[_0x5d6930(0xc2)]=!0x1,this[_0x5d6930(0xc9)]();}[_0x18810(0x121)]({url:_0xaa6621,file:_0xae759f,serviceConfig:_0x55c191}){const _0x341f2e=_0x18810,_0x36e45e=this[_0x341f2e(0xf3)][_0x341f2e(0x104)][_0x341f2e(0x120)](_0x341f2e(0x115))[_0x341f2e(0x11b)](),_0x1879e1=new FormData();_0x1879e1[_0x341f2e(0x111)](_0x341f2e(0xee),JSON[_0x341f2e(0x10e)](_0x55c191)),_0x1879e1[_0x341f2e(0x111)](_0x341f2e(0xd7),_0xae759f);const _0x383f78={'method':_0x341f2e(0xfd),'headers':{},'body':_0x1879e1,'signal':this[_0x341f2e(0xca)][_0x341f2e(0xf6)]};return _0x36e45e&&(_0x383f78[_0x341f2e(0xcc)][_0x341f2e(0xf1)]=_0x36e45e[_0x341f2e(0xe8)]),fetch(_0xaa6621,_0x383f78);}[_0x18810(0x107)](_0x1ca156){const _0x39f176=_0x18810;return _0x1ca156['ok']?_0x1ca156[_0x39f176(0xef)]()[_0x39f176(0x118)](_0x40a103=>{const _0x1131d8=_0x39f176;if(!this[_0x1131d8(0xf3)][_0x1131d8(0xbb)][_0x1131d8(0xda)][_0x1131d8(0xc1)](this[_0x1131d8(0x10f)]))return;_0x1131d8(0xed)!==this[_0x1131d8(0x10f)][_0x1131d8(0x10a)]()[_0x1131d8(0xd9)][_0x1131d8(0xc8)]&&this[_0x1131d8(0xf8)](_0x1131d8(0xd5),_0x40a103);}):Promise[_0x39f176(0xbf)]();}[_0x18810(0xbe)](){const _0x49178c=_0x18810;if(this[_0x49178c(0xca)][_0x49178c(0xf6)][_0x49178c(0xf4)])return void _0x4f8fd1(_0x49178c(0xfe));const _0x51ddcb=this[_0x49178c(0xf3)],_0x5aebf4=_0x33a580(_0x51ddcb[_0x49178c(0xeb)],_0x49178c(0xdf));_0x51ddcb[_0x49178c(0x104)][_0x49178c(0x120)](_0x49178c(0xdd))[_0x49178c(0xfa)](_0x5aebf4),_0x2ed98d(_0x49178c(0x10b));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5e23(){const _0x1a3a83=['55SrHAHp','pluginName','token','156959rBlbEA','config','editor','1232016ieSMLG','216sCdYSG','https://docx-converter.cke-cs.com/v2/convert/docx-html','ImportWordEditing','none','init','define','add','plugins','799299KUzFcn','2OYUatJ','registerTokenUrl','requires','get','4109337DpcMLL','_token','10iVbZXd','1133048QhdRmK','1787199YrvscA','289376PddSSJ','cloudServices','8HwJaaf','inline','getToken','CloudServices','tokenUrl','importWord','commands'];_0x5e23=function(){return _0x1a3a83;};return _0x5e23();}const _0x49832d=_0x11b9;(function(_0x3d1251,_0x324b72){const _0x392674=_0x11b9,_0x2887f4=_0x3d1251();while(!![]){try{const _0x38ca95=parseInt(_0x392674(0xc2))/0x1+-parseInt(_0x392674(0xc3))/0x2*(-parseInt(_0x392674(0xa9))/0x3)+-parseInt(_0x392674(0xaa))/0x4*(parseInt(_0x392674(0xb3))/0x5)+parseInt(_0x392674(0xb9))/0x6+parseInt(_0x392674(0xa8))/0x7*(-parseInt(_0x392674(0xac))/0x8)+-parseInt(_0x392674(0xa5))/0x9*(parseInt(_0x392674(0xa7))/0xa)+-parseInt(_0x392674(0xb6))/0xb*(-parseInt(_0x392674(0xba))/0xc);if(_0x38ca95===_0x324b72)break;else _0x2887f4['push'](_0x2887f4['shift']());}catch(_0x1cbeea){_0x2887f4['push'](_0x2887f4['shift']());}}}(_0x5e23,0x6c259));import{Plugin as _0x3f1a9a}from'ckeditor5/src/core.js';import{Notification as _0x32881f}from'ckeditor5/src/ui.js';import{ClipboardPipeline as _0x295f7e}from'ckeditor5/src/clipboard.js';import _0x3e007b from'./importwordcommand.js';function _0x11b9(_0x40412e,_0x15cfb6){const _0x5e2360=_0x5e23();return _0x11b9=function(_0x11b912,_0x422f01){_0x11b912=_0x11b912-0xa5;let _0x1a6921=_0x5e2360[_0x11b912];return _0x1a6921;},_0x11b9(_0x40412e,_0x15cfb6);}export default class e extends _0x3f1a9a{static get[_0x49832d(0xb4)](){const _0x5f1bed=_0x49832d;return _0x5f1bed(0xbc);}static get[_0x49832d(0xc5)](){const _0x1e701e=_0x49832d;return[_0x32881f,_0x295f7e,_0x1e701e(0xaf)];}constructor(_0x54b55e){const _0x1340cb=_0x49832d;super(_0x54b55e),this[_0x1340cb(0xa6)]=null;}async[_0x49832d(0xbe)](){const _0x3fd847=_0x49832d,_0x3ebecb=this[_0x3fd847(0xb8)];_0x3ebecb[_0x3fd847(0xb7)][_0x3fd847(0xbf)](_0x3fd847(0xb1),{'converterUrl':_0x3fd847(0xbb),'tokenUrl':(_0x3ebecb[_0x3fd847(0xb7)][_0x3fd847(0xc6)](_0x3fd847(0xab))||{})[_0x3fd847(0xb0)],'formatting':{'resets':_0x3fd847(0xbd),'defaults':_0x3fd847(0xbd),'styles':_0x3fd847(0xad)}}),_0x3ebecb[_0x3fd847(0xb2)][_0x3fd847(0xc0)](_0x3fd847(0xb1),new _0x3e007b(_0x3ebecb));const {tokenUrl:_0x2fba66}=_0x3ebecb[_0x3fd847(0xb7)][_0x3fd847(0xc6)](_0x3fd847(0xb1));if(_0x2fba66){const {tokenUrl:_0x246760}=_0x3ebecb[_0x3fd847(0xb7)][_0x3fd847(0xc6)](_0x3fd847(0xab))||{};this[_0x3fd847(0xa6)]=_0x2fba66===_0x246760?_0x3ebecb[_0x3fd847(0xc1)][_0x3fd847(0xc6)](_0x3fd847(0xaf))[_0x3fd847(0xb5)]:await _0x3ebecb[_0x3fd847(0xc1)][_0x3fd847(0xc6)](_0x3fd847(0xaf))[_0x3fd847(0xc4)](_0x2fba66);}}[_0x49832d(0xae)](){const _0xa69ecc=_0x49832d;return this[_0xa69ecc(0xa6)];}}
23
+ const _0x1c3ea1=_0x2a82;function _0x4040(){const _0x4ea66a=['commands','add','plugins','574960iPXezK','10nTTYqX','CloudServices','cloudServices','54wyLzSt','119iKpoIb','getToken','editor','3260524iCZPBb','4987499TBkwaR','ImportWordEditing','293272vnsvnH','define','5391960NJlIcA','inline','930525rWdJgI','token','tokenUrl','requires','config','init','get','registerTokenUrl','104395clFPUs','_token','importWord','3yGvYiQ','pluginName','none','https://docx-converter.cke-cs.com/v2/convert/docx-html'];_0x4040=function(){return _0x4ea66a;};return _0x4040();}(function(_0x34a356,_0x2eca0e){const _0x32011c=_0x2a82,_0x27a83e=_0x34a356();while(!![]){try{const _0x3909de=-parseInt(_0x32011c(0xa0))/0x1*(parseInt(_0x32011c(0xab))/0x2)+parseInt(_0x32011c(0xa3))/0x3*(parseInt(_0x32011c(0xb2))/0x4)+-parseInt(_0x32011c(0x98))/0x5+-parseInt(_0x32011c(0x96))/0x6+-parseInt(_0x32011c(0xaf))/0x7*(-parseInt(_0x32011c(0xb5))/0x8)+-parseInt(_0x32011c(0xae))/0x9*(-parseInt(_0x32011c(0xaa))/0xa)+parseInt(_0x32011c(0xb3))/0xb;if(_0x3909de===_0x2eca0e)break;else _0x27a83e['push'](_0x27a83e['shift']());}catch(_0x3fbf81){_0x27a83e['push'](_0x27a83e['shift']());}}}(_0x4040,0x99cdb));import{Plugin as _0x3fb69c}from'ckeditor5/src/core.js';import{Notification as _0x5e36aa}from'ckeditor5/src/ui.js';function _0x2a82(_0x290107,_0x33edde){const _0x404084=_0x4040();return _0x2a82=function(_0x2a82a9,_0x388762){_0x2a82a9=_0x2a82a9-0x96;let _0x5e6c88=_0x404084[_0x2a82a9];return _0x5e6c88;},_0x2a82(_0x290107,_0x33edde);}import{ClipboardPipeline as _0xbc5f61}from'ckeditor5/src/clipboard.js';import _0x4f0444 from'./importwordcommand.js';export default class e extends _0x3fb69c{static get[_0x1c3ea1(0xa4)](){const _0x5ebc3b=_0x1c3ea1;return _0x5ebc3b(0xb4);}static get[_0x1c3ea1(0x9b)](){const _0x1b75cd=_0x1c3ea1;return[_0x5e36aa,_0xbc5f61,_0x1b75cd(0xac)];}constructor(_0x1e8154){const _0x490908=_0x1c3ea1;super(_0x1e8154),this[_0x490908(0xa1)]=null;}async[_0x1c3ea1(0x9d)](){const _0x4a7559=_0x1c3ea1,_0x15a19b=this[_0x4a7559(0xb1)];_0x15a19b[_0x4a7559(0x9c)][_0x4a7559(0xb6)](_0x4a7559(0xa2),{'converterUrl':_0x4a7559(0xa6),'tokenUrl':(_0x15a19b[_0x4a7559(0x9c)][_0x4a7559(0x9e)](_0x4a7559(0xad))||{})[_0x4a7559(0x9a)],'formatting':{'resets':_0x4a7559(0xa5),'defaults':_0x4a7559(0xa5),'styles':_0x4a7559(0x97)}}),_0x15a19b[_0x4a7559(0xa7)][_0x4a7559(0xa8)](_0x4a7559(0xa2),new _0x4f0444(_0x15a19b));const {tokenUrl:_0x4be56e}=_0x15a19b[_0x4a7559(0x9c)][_0x4a7559(0x9e)](_0x4a7559(0xa2));if(_0x4be56e){const {tokenUrl:_0x1f874e}=_0x15a19b[_0x4a7559(0x9c)][_0x4a7559(0x9e)](_0x4a7559(0xad))||{};this[_0x4a7559(0xa1)]=_0x4be56e===_0x1f874e?_0x15a19b[_0x4a7559(0xa9)][_0x4a7559(0x9e)](_0x4a7559(0xac))[_0x4a7559(0x99)]:await _0x15a19b[_0x4a7559(0xa9)][_0x4a7559(0x9e)](_0x4a7559(0xac))[_0x4a7559(0x9f)](_0x4be56e);}}[_0x1c3ea1(0xb0)](){const _0x57cab7=_0x1c3ea1;return this[_0x57cab7(0xa1)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x290552}from'ckeditor5/src/core.js';import{SpinnerView as _0x3e3cd3,FileDialogButtonView as _0x9bfd1f,MenuBarMenuListItemFileDialogButtonView as _0x298c30}from'ckeditor5/src/ui.js';import _0x4ab1da from'../theme/icons/importword.svg';export default class o extends _0x290552{static get['pluginName'](){return'ImportWordUI';}['init'](){const _0x53f609=this['editor'];_0x53f609['ui']['componentFactory']['add']('importWord',()=>{const _0x42758c=this['_createButton'](_0x9bfd1f),_0x105a6c=_0x53f609['commands']['get']('importWord');return _0x42758c['bind']('isOn')['to'](_0x105a6c,'isBusy'),_0x42758c['tooltip']=!0x0,_0x42758c;}),_0x53f609['ui']['componentFactory']['add']('menuBar:importWord',()=>this['_createButton'](_0x298c30));}['_createButton'](_0xdbf2bd){const _0x36f39c=this['editor'],t=_0x36f39c['locale']['t'],_0x3b3d79=_0x36f39c['commands']['get']('importWord'),_0x134256=new _0xdbf2bd(_0x36f39c['locale']),_0x510592=new _0x3e3cd3();return _0x134256['set']({'acceptedType':'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template'}),_0x134256['set']({'icon':_0x4ab1da}),_0x134256['bind']('isEnabled')['to'](_0x3b3d79),_0x134256['bind']('label')['to'](_0x3b3d79,'isBusy',_0xc314ba=>t(_0xc314ba?'Importing\x20Word\x20document':'Import\x20from\x20Word')),_0x510592['bind']('isVisible')['to'](_0x3b3d79,'isBusy'),_0x134256['iconView']['bind']('isVisible')['to'](_0x3b3d79,'isBusy',_0x454cc8=>!_0x454cc8),_0x134256['children']['add'](_0x510592),_0x134256['on']('done',(_0x3b0179,_0x30a262)=>{_0x36f39c['execute']('importWord',_0x30a262[0x0],{}),_0x36f39c['editing']['view']['focus']();}),_0x134256;}}
23
+ const _0x1a9b14=_0x183d;(function(_0x292f40,_0x5baaf6){const _0x22552c=_0x183d,_0xf6b7aa=_0x292f40();while(!![]){try{const _0x545ff2=parseInt(_0x22552c(0xaa))/0x1*(parseInt(_0x22552c(0x8c))/0x2)+parseInt(_0x22552c(0xac))/0x3*(-parseInt(_0x22552c(0xa3))/0x4)+-parseInt(_0x22552c(0x92))/0x5*(-parseInt(_0x22552c(0x90))/0x6)+-parseInt(_0x22552c(0x87))/0x7+-parseInt(_0x22552c(0xa0))/0x8+parseInt(_0x22552c(0x99))/0x9+parseInt(_0x22552c(0x9a))/0xa;if(_0x545ff2===_0x5baaf6)break;else _0xf6b7aa['push'](_0xf6b7aa['shift']());}catch(_0xeb83ec){_0xf6b7aa['push'](_0xf6b7aa['shift']());}}}(_0x51df,0xecfe1));import{Plugin as _0x4f4267}from'ckeditor5/src/core.js';import{MenuBarMenuListItemFileDialogButtonView as _0xb2f4a4,SpinnerView as _0x391912,FileDialogButtonView as _0x409756}from'ckeditor5/src/ui.js';import _0x450a0e from'../theme/icons/importword.svg';function _0x183d(_0x55717e,_0x549f52){const _0x51df28=_0x51df();return _0x183d=function(_0x183d67,_0xe71f10){_0x183d67=_0x183d67-0x86;let _0x2cb81e=_0x51df28[_0x183d67];return _0x2cb81e;},_0x183d(_0x55717e,_0x549f52);}import{getTranslation as _0x17726d}from'./utils/common-translations.js';export default class o extends _0x4f4267{static get[_0x1a9b14(0xa9)](){const _0x3939ae=_0x1a9b14;return _0x3939ae(0x88);}[_0x1a9b14(0xa7)](){const _0x178cda=_0x1a9b14,_0x41bc44=this[_0x178cda(0x97)];_0x41bc44['ui'][_0x178cda(0xa2)][_0x178cda(0x95)](_0x178cda(0x9d),()=>{const _0x380005=_0x178cda,_0x502ff4=this[_0x380005(0xad)](_0x409756),_0xa77cb0=_0x41bc44[_0x380005(0x8a)][_0x380005(0x9b)](_0x380005(0x9d));return _0x502ff4[_0x380005(0x98)](_0x380005(0x96))['to'](_0xa77cb0,_0x380005(0xab)),_0x502ff4[_0x380005(0x9f)]=!0x0,_0x502ff4;}),_0x41bc44['ui'][_0x178cda(0xa2)][_0x178cda(0x95)](_0x178cda(0x93),()=>this[_0x178cda(0xad)](_0xb2f4a4));}[_0x1a9b14(0xad)](_0xc2ec51){const _0x2ab906=_0x1a9b14,_0x5275dd=this[_0x2ab906(0x97)],_0x3cdd6d=_0x5275dd[_0x2ab906(0x8a)][_0x2ab906(0x9b)](_0x2ab906(0x9d)),_0x4efbef=new _0xc2ec51(_0x5275dd[_0x2ab906(0x8d)]),_0x15f24c=new _0x391912();return _0x4efbef[_0x2ab906(0x86)]({'acceptedType':_0x2ab906(0xa6)}),_0x4efbef[_0x2ab906(0x86)]({'icon':_0x450a0e}),_0x4efbef[_0x2ab906(0x98)](_0x2ab906(0x8f))['to'](_0x3cdd6d),_0x4efbef[_0x2ab906(0x98)](_0x2ab906(0xa8))['to'](_0x3cdd6d,_0x2ab906(0xab),_0x1750a6=>_0x17726d(_0x5275dd[_0x2ab906(0x8d)],_0x1750a6?_0x2ab906(0xa5):_0x2ab906(0xa1))),_0x15f24c[_0x2ab906(0x98)](_0x2ab906(0x8b))['to'](_0x3cdd6d,_0x2ab906(0xab)),_0x4efbef[_0x2ab906(0x89)][_0x2ab906(0x98)](_0x2ab906(0x8b))['to'](_0x3cdd6d,_0x2ab906(0xab),_0x4cb214=>!_0x4cb214),_0x4efbef[_0x2ab906(0x94)][_0x2ab906(0x95)](_0x15f24c),_0x4efbef['on'](_0x2ab906(0xa4),(_0x19510c,_0x29e7d2)=>{const _0x46f020=_0x2ab906;_0x5275dd[_0x46f020(0x9e)](_0x46f020(0x9d),_0x29e7d2[0x0],{}),_0x5275dd[_0x46f020(0x9c)][_0x46f020(0x91)][_0x46f020(0x8e)]();}),_0x4efbef;}}function _0x51df(){const _0x47308c=['tooltip','8122576tWROxE','Import\x20from\x20Word','componentFactory','931412mOGCBb','done','Importing\x20Word\x20document','application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template','init','label','pluginName','250474lmejMn','isBusy','3EtRsLY','_createButton','set','6376195gZpYMj','ImportWordUI','iconView','commands','isVisible','4oTPONM','locale','focus','isEnabled','66qNeiNH','view','288775yMtYXE','menuBar:importWord','children','add','isOn','editor','bind','10244151eDCtZe','8552890pTTYIc','get','editing','importWord','execute'];_0x51df=function(){return _0x47308c;};return _0x51df();}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x4fc52b,_0x163b88){var _0x35e344=_0x46eb,_0x28da16=_0x4fc52b();while(!![]){try{var _0x520610=-parseInt(_0x35e344(0x1bc))/0x1+-parseInt(_0x35e344(0x1bd))/0x2+parseInt(_0x35e344(0x1c1))/0x3*(-parseInt(_0x35e344(0x1bf))/0x4)+-parseInt(_0x35e344(0x1c0))/0x5*(-parseInt(_0x35e344(0x1b9))/0x6)+-parseInt(_0x35e344(0x1ba))/0x7+-parseInt(_0x35e344(0x1be))/0x8+parseInt(_0x35e344(0x1c2))/0x9*(parseInt(_0x35e344(0x1bb))/0xa);if(_0x520610===_0x163b88)break;else _0x28da16['push'](_0x28da16['shift']());}catch(_0x35c49a){_0x28da16['push'](_0x28da16['shift']());}}}(_0x107a,0x71429));export{default as ImportWord}from'./importword.js';export{default as ImportWordEditing}from'./importwordediting.js';function _0x46eb(_0x2971b9,_0xecd110){var _0x107ad1=_0x107a();return _0x46eb=function(_0x46eb26,_0x435004){_0x46eb26=_0x46eb26-0x1b9;var _0x30e5cf=_0x107ad1[_0x46eb26];return _0x30e5cf;},_0x46eb(_0x2971b9,_0xecd110);}export{default as ImportWordUI}from'./importwordui.js';function _0x107a(){var _0x4b0bfe=['4608600YXHFxa','12rCQRlG','16865YWiPtw','736077omyETE','996903HMXQcd','174EFyfNA','308028KNyMew','190EGushh','246795lVpAhf','271052nOlzXS'];_0x107a=function(){return _0x4b0bfe;};return _0x107a();}import'./augmentation.js';
23
+ (function(_0x3d6683,_0x83c6cb){var _0x409b39=_0x3b74,_0x566a5e=_0x3d6683();while(!![]){try{var _0x54dc76=parseInt(_0x409b39(0xee))/0x1*(-parseInt(_0x409b39(0xed))/0x2)+parseInt(_0x409b39(0xe5))/0x3*(parseInt(_0x409b39(0xec))/0x4)+parseInt(_0x409b39(0xeb))/0x5+-parseInt(_0x409b39(0xe9))/0x6+parseInt(_0x409b39(0xe8))/0x7+-parseInt(_0x409b39(0xe4))/0x8*(-parseInt(_0x409b39(0xe7))/0x9)+parseInt(_0x409b39(0xe6))/0xa*(parseInt(_0x409b39(0xea))/0xb);if(_0x54dc76===_0x83c6cb)break;else _0x566a5e['push'](_0x566a5e['shift']());}catch(_0xab566c){_0x566a5e['push'](_0x566a5e['shift']());}}}(_0x45c5,0xc8dbb));export{default as ImportWord}from'./importword.js';export{default as ImportWordEditing}from'./importwordediting.js';function _0x3b74(_0x32141d,_0x1a6cb5){var _0x45c51d=_0x45c5();return _0x3b74=function(_0x3b74f4,_0x5a81d3){_0x3b74f4=_0x3b74f4-0xe4;var _0x280d9d=_0x45c51d[_0x3b74f4];return _0x280d9d;},_0x3b74(_0x32141d,_0x1a6cb5);}export{default as ImportWordUI}from'./importwordui.js';function _0x45c5(){var _0x24c588=['1326YMiERG','171cRrNRB','11792lsjkpT','6258sNPldH','7570MfftUu','2412gMbkxa','7886389dvLWmd','9793992DYfjzJ','9592QMfkbV','1390925vTFUQl','208ndhGdB'];_0x45c5=function(){return _0x24c588;};return _0x45c5();}import'./augmentation.js';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module import-word/utils/common-translations
7
+ */
8
+ import type { Locale } from 'ckeditor5/src/utils.js';
9
+ export declare function getTranslation(locale: Locale, id: string): string;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export function getTranslation(_0x40b527,_0x16b806){const t=_0x40b527['t'];switch(_0x16b806){case'Import\x20from\x20Word':return t('Import\x20from\x20Word');case'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':return t('An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');case'Importing\x20Word\x20document':return t('Importing\x20Word\x20document');default:return _0x16b806;}}