@ckeditor/ckeditor5-import-word 42.0.2 → 43.0.0-alpha.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.
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
+ (_0x70d7bb=>{const {tr:{dictionary:_0xd33f92,getPluralForm:_0x26d299}}={'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':_0x5b0494=>_0x5b0494>0x1}};_0x70d7bb['tr']||={'dictionary':{},'getPluralForm':null},_0x70d7bb['tr']['dictionary']=Object['assign'](_0x70d7bb['tr']['dictionary'],_0xd33f92),_0x70d7bb['tr']['getPluralForm']=_0x26d299;})(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':_0x405f8e=>0x1!=_0x405f8e}};
@@ -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
+ (_0x1b7dbf=>{const {ug:{dictionary:_0x4da85d,getPluralForm:_0x56f052}}={'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':_0x47eef2=>0x1!=_0x47eef2}};_0x1b7dbf['ug']||={'dictionary':{},'getPluralForm':null},_0x1b7dbf['ug']['dictionary']=Object['assign'](_0x1b7dbf['ug']['dictionary'],_0x4da85d),_0x1b7dbf['ug']['getPluralForm']=_0x56f052;})(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':_0x4d91ec=>_0x4d91ec%0x1==0x0&&_0x4d91ec%0xa==0x1&&_0x4d91ec%0x64!=0xb?0x0:_0x4d91ec%0x1==0x0&&_0x4d91ec%0xa>=0x2&&_0x4d91ec%0xa<=0x4&&(_0x4d91ec%0x64<0xc||_0x4d91ec%0x64>0xe)?0x1:_0x4d91ec%0x1==0x0&&(_0x4d91ec%0xa==0x0||_0x4d91ec%0xa>=0x5&&_0x4d91ec%0xa<=0x9||_0x4d91ec%0x64>=0xb&&_0x4d91ec%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
+ (_0x270f0a=>{const {uk:{dictionary:_0xa3a6cb,getPluralForm:_0x772078}}={'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':_0x3a6792=>_0x3a6792%0x1==0x0&&_0x3a6792%0xa==0x1&&_0x3a6792%0x64!=0xb?0x0:_0x3a6792%0x1==0x0&&_0x3a6792%0xa>=0x2&&_0x3a6792%0xa<=0x4&&(_0x3a6792%0x64<0xc||_0x3a6792%0x64>0xe)?0x1:_0x3a6792%0x1==0x0&&(_0x3a6792%0xa==0x0||_0x3a6792%0xa>=0x5&&_0x3a6792%0xa<=0x9||_0x3a6792%0x64>=0xb&&_0x3a6792%0x64<=0xe)?0x2:0x3}};_0x270f0a['uk']||={'dictionary':{},'getPluralForm':null},_0x270f0a['uk']['dictionary']=Object['assign'](_0x270f0a['uk']['dictionary'],_0xa3a6cb),_0x270f0a['uk']['getPluralForm']=_0x772078;})(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':_0x8458cd=>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
+ (_0x4640a9=>{const {vi:{dictionary:_0x5e488d,getPluralForm:_0x5c37ce}}={'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':_0x329f98=>0x0}};_0x4640a9['vi']||={'dictionary':{},'getPluralForm':null},_0x4640a9['vi']['dictionary']=Object['assign'](_0x4640a9['vi']['dictionary'],_0x5e488d),_0x4640a9['vi']['getPluralForm']=_0x5c37ce;})(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':_0x46fb22=>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
+ (_0x1aab2e=>{const {'zh-cn':{dictionary:_0x453467,getPluralForm:_0x35254d}}={'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。','Importing\x20Word\x20document':'正在导入\x20Word\x20文档'},'getPluralForm':_0x537844=>0x0}};_0x1aab2e['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x1aab2e['zh-cn']['dictionary']=Object['assign'](_0x1aab2e['zh-cn']['dictionary'],_0x453467),_0x1aab2e['zh-cn']['getPluralForm']=_0x35254d;})(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':_0x372abe=>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
+ (_0xc3550a=>{const {zh:{dictionary:_0xe0dda5,getPluralForm:_0x4b3e4b}}={'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。','Importing\x20Word\x20document':'匯入\x20Word\x20文件'},'getPluralForm':_0xd1c22a=>0x0}};_0xc3550a['zh']||={'dictionary':{},'getPluralForm':null},_0xc3550a['zh']['dictionary']=Object['assign'](_0xc3550a['zh']['dictionary'],_0xe0dda5),_0xc3550a['zh']['getPluralForm']=_0x4b3e4b;})(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.0",
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.0",
34
+ "@ckeditor/ckeditor5-core": "43.0.0-alpha.0",
35
+ "@ckeditor/ckeditor5-engine": "43.0.0-alpha.0",
36
+ "@ckeditor/ckeditor5-ui": "43.0.0-alpha.0",
37
+ "@ckeditor/ckeditor5-utils": "43.0.0-alpha.0",
38
+ "ckeditor5": "43.0.0-alpha.0"
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 _0xed7917=_0x1dc8;(function(_0xc4e7c2,_0x275c78){var _0x2bbb7b=_0x1dc8,_0x433bcf=_0xc4e7c2();while(!![]){try{var _0x2bfa12=-parseInt(_0x2bbb7b(0x165))/0x1*(-parseInt(_0x2bbb7b(0x16a))/0x2)+parseInt(_0x2bbb7b(0x164))/0x3*(-parseInt(_0x2bbb7b(0x16d))/0x4)+-parseInt(_0x2bbb7b(0x167))/0x5+-parseInt(_0x2bbb7b(0x16b))/0x6*(-parseInt(_0x2bbb7b(0x162))/0x7)+-parseInt(_0x2bbb7b(0x16c))/0x8*(-parseInt(_0x2bbb7b(0x169))/0x9)+parseInt(_0x2bbb7b(0x15f))/0xa*(parseInt(_0x2bbb7b(0x166))/0xb)+parseInt(_0x2bbb7b(0x163))/0xc;if(_0x2bfa12===_0x275c78)break;else _0x433bcf['push'](_0x433bcf['shift']());}catch(_0x236a1c){_0x433bcf['push'](_0x433bcf['shift']());}}}(_0x23ca,0xe3a13));import{Plugin as _0x17fd05}from'ckeditor5/src/core.js';import _0x57aa5a from'./importwordui.js';import _0x401521 from'./importwordediting.js';function _0x1dc8(_0x4b7a82,_0x449a48){var _0x23ca14=_0x23ca();return _0x1dc8=function(_0x1dc8e8,_0x5c1087){_0x1dc8e8=_0x1dc8e8-0x15f;var _0x54df4d=_0x23ca14[_0x1dc8e8];return _0x54df4d;},_0x1dc8(_0x4b7a82,_0x449a48);}export default class i extends _0x17fd05{static get[_0xed7917(0x168)](){var _0x1e2f92=_0xed7917;return _0x1e2f92(0x161);}static get[_0xed7917(0x160)](){return[_0x401521,_0x57aa5a];}}function _0x23ca(){var _0x34eda4=['1GiBrpN','869dPFVNY','2465050IQGccc','pluginName','10377FkZAop','51220NYxQjs','6KFXrre','976mGdImW','2092RqQXPq','83120DYgTna','requires','ImportWord','5412491bCPQyA','16163880anxgVm','8706vTKmQE'];_0x23ca=function(){return _0x34eda4;};return _0x23ca();}
@@ -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 _0x1dfe8d=_0xd2cf;function _0xd2cf(_0x2fa5b1,_0x1977fe){const _0x2c0e63=_0x2c0e();return _0xd2cf=function(_0xd2cff2,_0x187815){_0xd2cff2=_0xd2cff2-0xd9;let _0x1d7c20=_0x2c0e63[_0xd2cff2];return _0x1d7c20;},_0xd2cf(_0x2fa5b1,_0x1977fe);}(function(_0x111abc,_0x160d66){const _0x2c8d15=_0xd2cf,_0x3f392d=_0x111abc();while(!![]){try{const _0x1ff7cc=-parseInt(_0x2c8d15(0x110))/0x1+-parseInt(_0x2c8d15(0x13e))/0x2*(parseInt(_0x2c8d15(0x11b))/0x3)+parseInt(_0x2c8d15(0xf9))/0x4*(-parseInt(_0x2c8d15(0xe2))/0x5)+-parseInt(_0x2c8d15(0x138))/0x6*(-parseInt(_0x2c8d15(0xdf))/0x7)+-parseInt(_0x2c8d15(0xef))/0x8*(-parseInt(_0x2c8d15(0xdb))/0x9)+-parseInt(_0x2c8d15(0x128))/0xa+parseInt(_0x2c8d15(0xf7))/0xb*(parseInt(_0x2c8d15(0xe6))/0xc);if(_0x1ff7cc===_0x160d66)break;else _0x3f392d['push'](_0x3f392d['shift']());}catch(_0x3fff9b){_0x3f392d['push'](_0x3f392d['shift']());}}}(_0x2c0e,0x238f2));import{Command as _0x3de4d3}from'ckeditor5/src/core.js';import{Range as _0x5d75d1}from'ckeditor5/src/engine.js';import{logWarning as _0x5096de,logError as _0x2529fb,first as _0x311d2f,uid as _0x499492}from'ckeditor5/src/utils.js';function _0x2c0e(){const _0x1afbf0=['createBatch','resolvedOptions','isBusy','model','1049422sBxsbV','json','4MHNSIi','fire','root','isEnabled','isAtStart','deleteContent','stringify','catch','$graveyard','enqueueChange','html','finally','resolve','text/html','import-word-plugin-import-cancelled','removeMarker','refresh','has','editor','getFirstPosition','paragraph','timeZone','signal','153692ukYpeq','getToken','Authorization','file','document','merge_fields','plugins','dataInsert','config','isAtEnd','value','21ZoLhUl','checkChild','_abortController','_importMarker','_undoStepBatch','importWord:','mergeFields','aborted','clipboardInput','rootName','change:range','reject','parent','529140kZaOdt','Notification','DateTimeFormat','isEmpty','getRange','showWarning','_prepareForImport','import-word-plugin-conversion-failed','then','setSelection','ImportWordEditing','markers','isCollapsed','split','bind','importWord','313182zwzlNM','headers','locale','MergeFields','createPositionBefore','_sendImportRequest','71206StRbVd','_cleanUpAfterImport','selection','createPositionAfter','view','low','9XCeNjL','set','formatting','addMarker','7NiXMTo','converterUrl','editing','593995xGyGPf','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.','schema','setData','60FPpKMe','position','_handleImportFailure','abort','_handleImportResponse','execute','POST','stopListening','getSelectedBlocks','1528552qMpceP','get','element','_checkEnabled'];_0x2c0e=function(){return _0x1afbf0;};return _0x2c0e();}import{getTranslation as _0x10264a}from'./utils/common-translations.js';export default class d extends _0x3de4d3{constructor(_0x230fce){const _0x2edc7b=_0xd2cf;super(_0x230fce),this[_0x2edc7b(0xdc)](_0x2edc7b(0xf5),!0x1),this[_0x2edc7b(0x11e)]=null,this[_0x2edc7b(0x11f)]=null,this[_0x2edc7b(0x11d)]=null,this['on'](_0x2edc7b(0x117),(_0x36de4a,_0x4a62a1)=>{const _0x86f25f=_0x2edc7b,_0x91bf71=new DataTransfer();_0x91bf71[_0x86f25f(0xe5)](_0x86f25f(0x106),_0x4a62a1[_0x86f25f(0x103)]);const _0x3c3575=this[_0x86f25f(0x11e)][_0x86f25f(0x12c)]();this[_0x86f25f(0x10b)][_0x86f25f(0xf6)][_0x86f25f(0x102)](this[_0x86f25f(0x11f)],_0x5161b7=>{const _0x133023=_0x86f25f;this[_0x133023(0x11e)][_0x133023(0xed)](),_0x5161b7[_0x133023(0x131)](_0x3c3575),_0x230fce[_0x133023(0xe1)][_0x133023(0xd9)][_0x133023(0x114)][_0x133023(0xfa)](_0x133023(0x123),{'dataTransfer':_0x91bf71});});},{'priority':_0x2edc7b(0xda)});}[_0x1dfe8d(0x109)](){const _0x340796=_0x1dfe8d;this[_0x340796(0xfc)]=this[_0x340796(0xf2)]();}[_0x1dfe8d(0xeb)](_0x38ceef,_0x5abd14={}){const _0x3e4553=_0x1dfe8d;if(this[_0x3e4553(0xf5)])return Promise[_0x3e4553(0x105)]();const _0x1e49e3=this[_0x3e4553(0x10b)][_0x3e4553(0x118)][_0x3e4553(0xf0)](_0x3e4553(0x137));if(this[_0x3e4553(0x10b)][_0x3e4553(0x116)][_0x3e4553(0x10a)](_0x3e4553(0x13b))){const {prefix:_0x4aaef0,suffix:_0xc53102}=this[_0x3e4553(0x10b)][_0x3e4553(0x118)][_0x3e4553(0xf0)](_0x3e4553(0x121));_0x5abd14[_0x3e4553(0x115)]={'prefix':_0x4aaef0,'suffix':_0xc53102};}const _0x360601={'url':_0x1e49e3[_0x3e4553(0xe0)],'file':_0x38ceef,'serviceConfig':{..._0x5abd14,'formatting':_0x1e49e3[_0x3e4553(0xdd)],'timezone':new Intl[(_0x3e4553(0x12a))]()[_0x3e4553(0xf4)]()[_0x3e4553(0x10e)]}};return this[_0x3e4553(0x12e)](),this[_0x3e4553(0x13d)](_0x360601)[_0x3e4553(0x130)](this[_0x3e4553(0xea)][_0x3e4553(0x136)](this))[_0x3e4553(0x100)](this[_0x3e4553(0xe8)][_0x3e4553(0x136)](this))[_0x3e4553(0x104)](this[_0x3e4553(0x13f)][_0x3e4553(0x136)](this));}[_0x1dfe8d(0xf2)](){const _0x27b247=_0x1dfe8d;if(this[_0x27b247(0xf5)])return!0x1;const _0x26edcd=this[_0x27b247(0x10b)][_0x27b247(0xf6)],_0xd51bd5=_0x26edcd[_0x27b247(0xe4)],_0x5179cc=_0x26edcd[_0x27b247(0x114)][_0x27b247(0x140)],_0x5745fd=_0x311d2f(_0x5179cc[_0x27b247(0xee)]());return!!_0x5745fd&&_0xd51bd5[_0x27b247(0x11c)](_0x5745fd[_0x27b247(0x127)],_0x27b247(0x10d));}[_0x1dfe8d(0x12e)](){const _0x5c741c=_0x1dfe8d,_0x66c669=this[_0x5c741c(0x10b)],_0x3863f6=_0x66c669[_0x5c741c(0xf6)],_0x5dd49a=_0x3863f6[_0x5c741c(0x114)][_0x5c741c(0x140)];this[_0x5c741c(0x11d)]=new AbortController(),this[_0x5c741c(0x11f)]=_0x66c669[_0x5c741c(0xf6)][_0x5c741c(0xf3)]({'isUndoable':!0x0}),_0x3863f6[_0x5c741c(0x102)](this[_0x5c741c(0x11f)],_0x4e5c53=>{const _0x131f99=_0x5c741c;_0x5dd49a[_0x131f99(0x134)]||_0x3863f6[_0x131f99(0xfe)](_0x5dd49a,{'leaveUnmerged':!0x0});const _0x2f7d70=_0x5dd49a[_0x131f99(0x10c)](),_0x27f8d2=_0x311d2f(_0x5dd49a[_0x131f99(0xee)]());let _0x1253e9;_0x1253e9=_0x27f8d2['is'](_0x131f99(0xf1),_0x131f99(0x10d))&&_0x27f8d2[_0x131f99(0x12b)]?_0x2f7d70:_0x2f7d70[_0x131f99(0xfd)]?_0x3863f6[_0x131f99(0x13c)](_0x27f8d2):_0x2f7d70[_0x131f99(0x119)]?_0x3863f6[_0x131f99(0x141)](_0x27f8d2):_0x4e5c53[_0x131f99(0x135)](_0x2f7d70)[_0x131f99(0xe7)],this[_0x131f99(0x11e)]=_0x4e5c53[_0x131f99(0xde)](_0x131f99(0x120)+_0x499492(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new _0x5d75d1(_0x1253e9)}),this[_0x131f99(0x11e)]['on'](_0x131f99(0x125),()=>{const _0x1e9971=_0x131f99;_0x1e9971(0x101)===this[_0x1e9971(0x11e)][_0x1e9971(0x12c)]()[_0x1e9971(0xfb)][_0x1e9971(0x124)]&&this[_0x1e9971(0x11d)][_0x1e9971(0xe9)]();});}),this[_0x5c741c(0xf5)]=!0x0,this[_0x5c741c(0x109)]();}[_0x1dfe8d(0x13f)](){const _0x5a157e=_0x1dfe8d,_0x10a0a4=this[_0x5a157e(0x10b)][_0x5a157e(0xf6)];_0x10a0a4[_0x5a157e(0x133)][_0x5a157e(0x10a)](this[_0x5a157e(0x11e)])&&_0x10a0a4[_0x5a157e(0x102)](this[_0x5a157e(0x11f)],_0x18f608=>{const _0x35f850=_0x5a157e;_0x18f608[_0x35f850(0x108)](this[_0x35f850(0x11e)]);}),this[_0x5a157e(0x11e)]=null,this[_0x5a157e(0x11f)]=null,this[_0x5a157e(0x11d)]=null,this[_0x5a157e(0xf5)]=!0x1,this[_0x5a157e(0x109)]();}[_0x1dfe8d(0x13d)]({url:_0x195496,file:_0x2e6cae,serviceConfig:_0x4d7ca8}){const _0x2f52c0=_0x1dfe8d,_0x4a28a5=this[_0x2f52c0(0x10b)][_0x2f52c0(0x116)][_0x2f52c0(0xf0)](_0x2f52c0(0x132))[_0x2f52c0(0x111)](),_0x2636dc=new FormData();_0x2636dc[_0x2f52c0(0xdc)](_0x2f52c0(0x118),JSON[_0x2f52c0(0xff)](_0x4d7ca8)),_0x2636dc[_0x2f52c0(0xdc)](_0x2f52c0(0x113),_0x2e6cae);const _0x8bc4bc={'method':_0x2f52c0(0xec),'headers':{},'body':_0x2636dc,'signal':this[_0x2f52c0(0x11d)][_0x2f52c0(0x10f)]};return _0x4a28a5&&(_0x8bc4bc[_0x2f52c0(0x139)][_0x2f52c0(0x112)]=_0x4a28a5[_0x2f52c0(0x11a)]),fetch(_0x195496,_0x8bc4bc);}[_0x1dfe8d(0xea)](_0x371d22){const _0x815e66=_0x1dfe8d;return _0x371d22['ok']?_0x371d22[_0x815e66(0xf8)]()[_0x815e66(0x130)](_0x25fec7=>{const _0x398365=_0x815e66;if(!this[_0x398365(0x10b)][_0x398365(0xf6)][_0x398365(0x133)][_0x398365(0x10a)](this[_0x398365(0x11e)]))return;_0x398365(0x101)!==this[_0x398365(0x11e)][_0x398365(0x12c)]()[_0x398365(0xfb)][_0x398365(0x124)]&&this[_0x398365(0xfa)](_0x398365(0x117),_0x25fec7);}):Promise[_0x815e66(0x126)]();}[_0x1dfe8d(0xe8)](){const _0x2a7090=_0x1dfe8d;if(this[_0x2a7090(0x11d)][_0x2a7090(0x10f)][_0x2a7090(0x122)])return void _0x5096de(_0x2a7090(0x107));const _0xfbb70=this[_0x2a7090(0x10b)],_0x326c1b=_0x10264a(_0xfbb70[_0x2a7090(0x13a)],_0x2a7090(0xe3));_0xfbb70[_0x2a7090(0x116)][_0x2a7090(0xf0)](_0x2a7090(0x129))[_0x2a7090(0x12d)](_0x326c1b),_0x2529fb(_0x2a7090(0x12f));}}
@@ -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
+ function _0x595e(){const _0x146b40=['10mOPPgz','24567633upvMbL','ImportWordEditing','_token','8680528rOHGQJ','requires','config','9680083GUWbbf','tokenUrl','CloudServices','get','editor','commands','registerTokenUrl','2zUFfqN','4klHjVK','1923137tIkeVI','token','none','init','https://docx-converter.cke-cs.com/v2/convert/docx-html','getToken','2335195JdiVcY','define','add','importWord','2012157jgLdyx','1941276MVejdm','pluginName','cloudServices','inline','plugins'];_0x595e=function(){return _0x146b40;};return _0x595e();}const _0x53706a=_0x12cb;(function(_0x13a6e2,_0xf02160){const _0x943db9=_0x12cb,_0x7c286=_0x13a6e2();while(!![]){try{const _0x308d75=parseInt(_0x943db9(0x1fa))/0x1*(-parseInt(_0x943db9(0x1f8))/0x2)+parseInt(_0x943db9(0x1e4))/0x3+-parseInt(_0x943db9(0x1f9))/0x4*(parseInt(_0x943db9(0x200))/0x5)+-parseInt(_0x943db9(0x1e5))/0x6+parseInt(_0x943db9(0x1f1))/0x7+-parseInt(_0x943db9(0x1ee))/0x8+parseInt(_0x943db9(0x1eb))/0x9*(parseInt(_0x943db9(0x1ea))/0xa);if(_0x308d75===_0xf02160)break;else _0x7c286['push'](_0x7c286['shift']());}catch(_0x11f39d){_0x7c286['push'](_0x7c286['shift']());}}}(_0x595e,0xf05d9));import{Plugin as _0x1b73d7}from'ckeditor5/src/core.js';function _0x12cb(_0xbf0b7d,_0x6cfd85){const _0x595efa=_0x595e();return _0x12cb=function(_0x12cb2a,_0x1729c8){_0x12cb2a=_0x12cb2a-0x1e4;let _0x57d3ad=_0x595efa[_0x12cb2a];return _0x57d3ad;},_0x12cb(_0xbf0b7d,_0x6cfd85);}import{Notification as _0x441eaa}from'ckeditor5/src/ui.js';import{ClipboardPipeline as _0x1c61f3}from'ckeditor5/src/clipboard.js';import _0x4da73d from'./importwordcommand.js';export default class e extends _0x1b73d7{static get[_0x53706a(0x1e6)](){const _0x3c4221=_0x53706a;return _0x3c4221(0x1ec);}static get[_0x53706a(0x1ef)](){const _0x1a11a8=_0x53706a;return[_0x441eaa,_0x1c61f3,_0x1a11a8(0x1f3)];}constructor(_0x1b4232){const _0x3892b6=_0x53706a;super(_0x1b4232),this[_0x3892b6(0x1ed)]=null;}async[_0x53706a(0x1fd)](){const _0x27a025=_0x53706a,_0x1fe9ba=this[_0x27a025(0x1f5)];_0x1fe9ba[_0x27a025(0x1f0)][_0x27a025(0x201)](_0x27a025(0x203),{'converterUrl':_0x27a025(0x1fe),'tokenUrl':(_0x1fe9ba[_0x27a025(0x1f0)][_0x27a025(0x1f4)](_0x27a025(0x1e7))||{})[_0x27a025(0x1f2)],'formatting':{'resets':_0x27a025(0x1fc),'defaults':_0x27a025(0x1fc),'styles':_0x27a025(0x1e8)}}),_0x1fe9ba[_0x27a025(0x1f6)][_0x27a025(0x202)](_0x27a025(0x203),new _0x4da73d(_0x1fe9ba));const {tokenUrl:_0x4d694}=_0x1fe9ba[_0x27a025(0x1f0)][_0x27a025(0x1f4)](_0x27a025(0x203));if(_0x4d694){const {tokenUrl:_0x2d6c08}=_0x1fe9ba[_0x27a025(0x1f0)][_0x27a025(0x1f4)](_0x27a025(0x1e7))||{};this[_0x27a025(0x1ed)]=_0x4d694===_0x2d6c08?_0x1fe9ba[_0x27a025(0x1e9)][_0x27a025(0x1f4)](_0x27a025(0x1f3))[_0x27a025(0x1fb)]:await _0x1fe9ba[_0x27a025(0x1e9)][_0x27a025(0x1f4)](_0x27a025(0x1f3))[_0x27a025(0x1f7)](_0x4d694);}}[_0x53706a(0x1ff)](){const _0x35df2e=_0x53706a;return this[_0x35df2e(0x1ed)];}}
@@ -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 _0x532cfb=_0x5e3c;(function(_0x1292ba,_0x4385b6){const _0x32498d=_0x5e3c,_0xb18cd0=_0x1292ba();while(!![]){try{const _0x360c98=parseInt(_0x32498d(0xd3))/0x1+parseInt(_0x32498d(0xd7))/0x2*(-parseInt(_0x32498d(0xce))/0x3)+parseInt(_0x32498d(0xe4))/0x4*(parseInt(_0x32498d(0xd4))/0x5)+-parseInt(_0x32498d(0xdb))/0x6+parseInt(_0x32498d(0xc4))/0x7+-parseInt(_0x32498d(0xe5))/0x8+-parseInt(_0x32498d(0xe0))/0x9;if(_0x360c98===_0x4385b6)break;else _0xb18cd0['push'](_0xb18cd0['shift']());}catch(_0x260aef){_0xb18cd0['push'](_0xb18cd0['shift']());}}}(_0x5477,0x87e75));import{Plugin as _0x534b36}from'ckeditor5/src/core.js';import{MenuBarMenuListItemFileDialogButtonView as _0x1dfc33,SpinnerView as _0x38f539,FileDialogButtonView as _0x1d77ad}from'ckeditor5/src/ui.js';import _0x1afdcd from'../theme/icons/importword.svg';function _0x5e3c(_0x198ff5,_0x46b883){const _0x5477d3=_0x5477();return _0x5e3c=function(_0x5e3cfa,_0x448e45){_0x5e3cfa=_0x5e3cfa-0xc2;let _0x1ea776=_0x5477d3[_0x5e3cfa];return _0x1ea776;},_0x5e3c(_0x198ff5,_0x46b883);}import{getTranslation as _0x25a8b0}from'./utils/common-translations.js';export default class o extends _0x534b36{static get[_0x532cfb(0xe6)](){const _0x22537d=_0x532cfb;return _0x22537d(0xd8);}[_0x532cfb(0xc2)](){const _0x20f1a7=_0x532cfb,_0xcf10a1=this[_0x20f1a7(0xdc)];_0xcf10a1['ui'][_0x20f1a7(0xd0)][_0x20f1a7(0xcc)](_0x20f1a7(0xca),()=>{const _0x7debf3=_0x20f1a7,_0xd2abd5=this[_0x7debf3(0xd5)](_0x1d77ad),_0x24592c=_0xcf10a1[_0x7debf3(0xe3)][_0x7debf3(0xe2)](_0x7debf3(0xca));return _0xd2abd5[_0x7debf3(0xc8)](_0x7debf3(0xc9))['to'](_0x24592c,_0x7debf3(0xdd)),_0xd2abd5[_0x7debf3(0xc7)]=!0x0,_0xd2abd5;}),_0xcf10a1['ui'][_0x20f1a7(0xd0)][_0x20f1a7(0xcc)](_0x20f1a7(0xe8),()=>this[_0x20f1a7(0xd5)](_0x1dfc33));}[_0x532cfb(0xd5)](_0x34c61f){const _0xd1b743=_0x532cfb,_0x352db9=this[_0xd1b743(0xdc)],_0x37cfa2=_0x352db9[_0xd1b743(0xe3)][_0xd1b743(0xe2)](_0xd1b743(0xca)),_0x337af7=new _0x34c61f(_0x352db9[_0xd1b743(0xd6)]),_0x156102=new _0x38f539();return _0x337af7[_0xd1b743(0xdf)]({'acceptedType':_0xd1b743(0xd1)}),_0x337af7[_0xd1b743(0xdf)]({'icon':_0x1afdcd}),_0x337af7[_0xd1b743(0xc8)](_0xd1b743(0xc5))['to'](_0x37cfa2),_0x337af7[_0xd1b743(0xc8)](_0xd1b743(0xe7))['to'](_0x37cfa2,_0xd1b743(0xdd),_0x170aa1=>_0x25a8b0(_0x352db9[_0xd1b743(0xd6)],_0x170aa1?_0xd1b743(0xcd):_0xd1b743(0xcf))),_0x156102[_0xd1b743(0xc8)](_0xd1b743(0xda))['to'](_0x37cfa2,_0xd1b743(0xdd)),_0x337af7[_0xd1b743(0xe1)][_0xd1b743(0xc8)](_0xd1b743(0xda))['to'](_0x37cfa2,_0xd1b743(0xdd),_0x518a22=>!_0x518a22),_0x337af7[_0xd1b743(0xc3)][_0xd1b743(0xcc)](_0x156102),_0x337af7['on'](_0xd1b743(0xc6),(_0x4d8539,_0x384ca7)=>{const _0x517ee7=_0xd1b743;_0x352db9[_0x517ee7(0xcb)](_0x517ee7(0xca),_0x384ca7[0x0],{}),_0x352db9[_0x517ee7(0xde)][_0x517ee7(0xd9)][_0x517ee7(0xd2)]();}),_0x337af7;}}function _0x5477(){const _0x5a6fbe=['isOn','importWord','execute','add','Importing\x20Word\x20document','147fMVhTJ','Import\x20from\x20Word','componentFactory','application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template','focus','107407UGRfQm','4205XZizZs','_createButton','locale','2506gWntaX','ImportWordUI','view','isVisible','746508pJZUhq','editor','isBusy','editing','set','6518439fSqdZB','iconView','get','commands','4292RDypEz','1405280CNNtME','pluginName','label','menuBar:importWord','init','children','4428249GSbJJf','isEnabled','done','tooltip','bind'];_0x5477=function(){return _0x5a6fbe;};return _0x5477();}
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 _0x119b(_0x163198,_0x4950ef){var _0x3b83f7=_0x3b83();return _0x119b=function(_0x119b58,_0x98a1b8){_0x119b58=_0x119b58-0x71;var _0x248563=_0x3b83f7[_0x119b58];return _0x248563;},_0x119b(_0x163198,_0x4950ef);}(function(_0x4a98d8,_0x3adf68){var _0x485a48=_0x119b,_0x2b8265=_0x4a98d8();while(!![]){try{var _0x2631f2=-parseInt(_0x485a48(0x79))/0x1*(-parseInt(_0x485a48(0x78))/0x2)+-parseInt(_0x485a48(0x7a))/0x3+parseInt(_0x485a48(0x72))/0x4*(parseInt(_0x485a48(0x75))/0x5)+-parseInt(_0x485a48(0x74))/0x6+parseInt(_0x485a48(0x71))/0x7*(-parseInt(_0x485a48(0x77))/0x8)+parseInt(_0x485a48(0x7c))/0x9*(-parseInt(_0x485a48(0x73))/0xa)+parseInt(_0x485a48(0x7b))/0xb*(parseInt(_0x485a48(0x76))/0xc);if(_0x2631f2===_0x3adf68)break;else _0x2b8265['push'](_0x2b8265['shift']());}catch(_0x51e126){_0x2b8265['push'](_0x2b8265['shift']());}}}(_0x3b83,0x972e7));function _0x3b83(){var _0x15dcd9=['2048400IFaahG','15GvcUog','583512hPonDq','603336IvjuMV','46898GlmNSC','26zJfXui','3242289vfnctF','583eWxozE','6494301kEipxi','42wTghry','38188MpPlfX','10oRHSas'];_0x3b83=function(){return _0x15dcd9;};return _0x3b83();}export{default as ImportWord}from'./importword.js';export{default as ImportWordEditing}from'./importwordediting.js';export{default as ImportWordUI}from'./importwordui.js';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(_0x485201,_0x4f12bc){const t=_0x485201['t'];switch(_0x4f12bc){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 _0x4f12bc;}}