@ckeditor/ckeditor5-import-word 42.0.2-alpha.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
- 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':_0x27b0e9=>0x1!=_0x27b0e9}};
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
- (_0x1eaf2e=>{const {ug:{dictionary:_0x2adc81,getPluralForm:_0x5af863}}={'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':_0x693046=>0x1!=_0x693046}};_0x1eaf2e['ug']||={'dictionary':{},'getPluralForm':null},_0x1eaf2e['ug']['dictionary']=Object['assign'](_0x1eaf2e['ug']['dictionary'],_0x2adc81),_0x1eaf2e['ug']['getPluralForm']=_0x5af863;})(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':_0x3f2086=>_0x3f2086%0x1==0x0&&_0x3f2086%0xa==0x1&&_0x3f2086%0x64!=0xb?0x0:_0x3f2086%0x1==0x0&&_0x3f2086%0xa>=0x2&&_0x3f2086%0xa<=0x4&&(_0x3f2086%0x64<0xc||_0x3f2086%0x64>0xe)?0x1:_0x3f2086%0x1==0x0&&(_0x3f2086%0xa==0x0||_0x3f2086%0xa>=0x5&&_0x3f2086%0xa<=0x9||_0x3f2086%0x64>=0xb&&_0x3f2086%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
- (_0x4a2d45=>{const {uk:{dictionary:_0x2ab261,getPluralForm:_0x5bbca4}}={'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':_0x39e38c=>_0x39e38c%0x1==0x0&&_0x39e38c%0xa==0x1&&_0x39e38c%0x64!=0xb?0x0:_0x39e38c%0x1==0x0&&_0x39e38c%0xa>=0x2&&_0x39e38c%0xa<=0x4&&(_0x39e38c%0x64<0xc||_0x39e38c%0x64>0xe)?0x1:_0x39e38c%0x1==0x0&&(_0x39e38c%0xa==0x0||_0x39e38c%0xa>=0x5&&_0x39e38c%0xa<=0x9||_0x39e38c%0x64>=0xb&&_0x39e38c%0x64<=0xe)?0x2:0x3}};_0x4a2d45['uk']||={'dictionary':{},'getPluralForm':null},_0x4a2d45['uk']['dictionary']=Object['assign'](_0x4a2d45['uk']['dictionary'],_0x2ab261),_0x4a2d45['uk']['getPluralForm']=_0x5bbca4;})(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':_0x12bcaa=>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
- (_0x1bb7ea=>{const {vi:{dictionary:_0x506c01,getPluralForm:_0x6745ef}}={'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':_0x2333f3=>0x0}};_0x1bb7ea['vi']||={'dictionary':{},'getPluralForm':null},_0x1bb7ea['vi']['dictionary']=Object['assign'](_0x1bb7ea['vi']['dictionary'],_0x506c01),_0x1bb7ea['vi']['getPluralForm']=_0x6745ef;})(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':_0x55db6d=>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
- (_0x490c9c=>{const {'zh-cn':{dictionary:_0x1ac3a0,getPluralForm:_0x4f9c83}}={'zh-cn':{'dictionary':{'Import\x20from\x20Word':'从\x20Word\x20导入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'导入\x20Word\x20文件时出错了。','Importing\x20Word\x20document':'正在导入\x20Word\x20文档'},'getPluralForm':_0x4ae236=>0x0}};_0x490c9c['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x490c9c['zh-cn']['dictionary']=Object['assign'](_0x490c9c['zh-cn']['dictionary'],_0x1ac3a0),_0x490c9c['zh-cn']['getPluralForm']=_0x4f9c83;})(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':_0x1eaeff=>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
- (_0x324bac=>{const {zh:{dictionary:_0xeb402c,getPluralForm:_0x1734d7}}={'zh':{'dictionary':{'Import\x20from\x20Word':'從\x20Word\x20匯入','An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':'匯入\x20Word\x20檔時發生錯誤。','Importing\x20Word\x20document':'匯入\x20Word\x20文件'},'getPluralForm':_0x231354=>0x0}};_0x324bac['zh']||={'dictionary':{},'getPluralForm':null},_0x324bac['zh']['dictionary']=Object['assign'](_0x324bac['zh']['dictionary'],_0xeb402c),_0x324bac['zh']['getPluralForm']=_0x1734d7;})(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-alpha.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-alpha.2",
34
- "@ckeditor/ckeditor5-core": "42.0.2-alpha.2",
35
- "@ckeditor/ckeditor5-engine": "42.0.2-alpha.2",
36
- "@ckeditor/ckeditor5-ui": "42.0.2-alpha.2",
37
- "@ckeditor/ckeditor5-utils": "42.0.2-alpha.2",
38
- "ckeditor5": "42.0.2-alpha.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 _0x179c8e=_0x26a9;function _0x6f68(){var _0x35e315=['requires','563088LHvycW','124458oXpQDS','904dagqXF','42gxkIjA','517296mSEhfm','ImportWord','9237mlHgdV','29034126rfqbuN','8fzJbrX','16218jnYAhh','7440TWGKYI','6213190CMsJTC','pluginName'];_0x6f68=function(){return _0x35e315;};return _0x6f68();}(function(_0x27017f,_0x5ec4d5){var _0x536373=_0x26a9,_0x190825=_0x27017f();while(!![]){try{var _0x535ee9=parseInt(_0x536373(0xf5))/0x1*(-parseInt(_0x536373(0xee))/0x2)+parseInt(_0x536373(0xec))/0x3*(parseInt(_0x536373(0xf6))/0x4)+-parseInt(_0x536373(0xf1))/0x5+-parseInt(_0x536373(0xf4))/0x6*(-parseInt(_0x536373(0xf7))/0x7)+-parseInt(_0x536373(0xf8))/0x8+parseInt(_0x536373(0xef))/0x9*(-parseInt(_0x536373(0xf0))/0xa)+parseInt(_0x536373(0xed))/0xb;if(_0x535ee9===_0x5ec4d5)break;else _0x190825['push'](_0x190825['shift']());}catch(_0x1ae1a5){_0x190825['push'](_0x190825['shift']());}}}(_0x6f68,0xb7bcc));import{Plugin as _0x582ace}from'ckeditor5/src/core.js';import _0x3529d4 from'./importwordui.js';function _0x26a9(_0x3cab52,_0x4cdaa5){var _0x6f687c=_0x6f68();return _0x26a9=function(_0x26a90b,_0x38bbf2){_0x26a90b=_0x26a90b-0xeb;var _0x20abbc=_0x6f687c[_0x26a90b];return _0x20abbc;},_0x26a9(_0x3cab52,_0x4cdaa5);}import _0x2cef4d from'./importwordediting.js';export default class i extends _0x582ace{static get[_0x179c8e(0xf2)](){var _0x2b2259=_0x179c8e;return _0x2b2259(0xeb);}static get[_0x179c8e(0xf3)](){return[_0x2cef4d,_0x3529d4];}}
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 _0x450cf8}from'ckeditor5/src/core.js';import{Range as _0xc8f455}from'ckeditor5/src/engine.js';import{logWarning as _0x2e975f,logError as _0x31100e,first as _0x2ca7ed,uid as _0x22b827}from'ckeditor5/src/utils.js';export default class d extends _0x450cf8{constructor(_0x3e7d7f){super(_0x3e7d7f),this['set']('isBusy',!0x1),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['on']('dataInsert',(_0x2a82da,_0x3be00e)=>{const _0x44d6cb=new DataTransfer();_0x44d6cb['setData']('text/html',_0x3be00e['html']);const _0x289474=this['_importMarker']['getRange']();this['editor']['model']['enqueueChange'](this['_undoStepBatch'],_0x430a44=>{this['_importMarker']['stopListening'](),_0x430a44['setSelection'](_0x289474),_0x3e7d7f['editing']['view']['document']['fire']('clipboardInput',{'dataTransfer':_0x44d6cb});});},{'priority':'low'});}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4c1b9a,_0xaa5d30={}){if(this['isBusy'])return Promise['resolve']();const _0x3002b3=this['editor']['config']['get']('importWord'),_0xf4a5cd={'url':_0x3002b3['converterUrl'],'file':_0x4c1b9a,'serviceConfig':{..._0xaa5d30,'formatting':_0x3002b3['formatting']}};return this['_prepareForImport'](),this['_sendImportRequest'](_0xf4a5cd)['then'](this['_handleImportResponse']['bind'](this))['catch'](this['_handleImportFailure']['bind'](this))['finally'](this['_cleanUpAfterImport']['bind'](this));}['_checkEnabled'](){if(this['isBusy'])return!0x1;const _0x3ea61f=this['editor']['model'],_0x328c9a=_0x3ea61f['schema'],_0x259267=_0x3ea61f['document']['selection'],_0x3f3381=_0x2ca7ed(_0x259267['getSelectedBlocks']());return!!_0x3f3381&&_0x328c9a['checkChild'](_0x3f3381['parent'],'paragraph');}['_prepareForImport'](){const _0x1eefa4=this['editor'],_0x45d5b6=_0x1eefa4['model'],_0x2e9b73=_0x45d5b6['document']['selection'];this['_abortController']=new AbortController(),this['_undoStepBatch']=_0x1eefa4['model']['createBatch']({'isUndoable':!0x0}),_0x45d5b6['enqueueChange'](this['_undoStepBatch'],_0x19d5bf=>{_0x2e9b73['isCollapsed']||_0x45d5b6['deleteContent'](_0x2e9b73,{'leaveUnmerged':!0x0});const _0x4fbf3a=_0x2e9b73['getFirstPosition'](),_0x5ee283=_0x2ca7ed(_0x2e9b73['getSelectedBlocks']());let _0x3f99b0;_0x3f99b0=_0x5ee283['is']('element','paragraph')&&_0x5ee283['isEmpty']?_0x4fbf3a:_0x4fbf3a['isAtStart']?_0x45d5b6['createPositionBefore'](_0x5ee283):_0x4fbf3a['isAtEnd']?_0x45d5b6['createPositionAfter'](_0x5ee283):_0x19d5bf['split'](_0x4fbf3a)['position'],this['_importMarker']=_0x19d5bf['addMarker']('importWord:'+_0x22b827(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new _0xc8f455(_0x3f99b0)}),this['_importMarker']['on']('change:range',()=>{'$graveyard'===this['_importMarker']['getRange']()['root']['rootName']&&this['_abortController']['abort']();});}),this['isBusy']=!0x0,this['refresh']();}['_cleanUpAfterImport'](){const _0x40c062=this['editor']['model'];_0x40c062['markers']['has'](this['_importMarker'])&&_0x40c062['enqueueChange'](this['_undoStepBatch'],_0x5ceb95=>{_0x5ceb95['removeMarker'](this['_importMarker']);}),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['isBusy']=!0x1,this['refresh']();}['_sendImportRequest']({url:_0x140213,file:_0x4169de,serviceConfig:_0x4b6a2b}){const _0x32e396=this['editor']['plugins']['get']('ImportWordEditing')['getToken'](),_0xb327f1=new FormData();_0xb327f1['set']('config',JSON['stringify'](_0x4b6a2b)),_0xb327f1['set']('file',_0x4169de);const _0x30263e={'method':'POST','headers':{},'body':_0xb327f1,'signal':this['_abortController']['signal']};return _0x32e396&&(_0x30263e['headers']['Authorization']=_0x32e396['value']),fetch(_0x140213,_0x30263e);}['_handleImportResponse'](_0x5ddb2a){return _0x5ddb2a['ok']?_0x5ddb2a['json']()['then'](_0x2a0ea5=>{if(!this['editor']['model']['markers']['has'](this['_importMarker']))return;'$graveyard'!==this['_importMarker']['getRange']()['root']['rootName']&&this['fire']('dataInsert',_0x2a0ea5);}):Promise['reject']();}['_handleImportFailure'](){if(this['_abortController']['signal']['aborted'])return void _0x2e975f('import-word-plugin-import-cancelled');const _0x422321=this['editor'],_0x1749f2=(0x0,_0x422321['t'])('An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');_0x422321['plugins']['get']('Notification')['showWarning'](_0x1749f2),_0x31100e('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
- const _0x3d6243=_0x52d7;function _0x52d7(_0xc0083c,_0x13419a){const _0x41fe5a=_0x41fe();return _0x52d7=function(_0x52d7e8,_0x3cd0ad){_0x52d7e8=_0x52d7e8-0xd3;let _0x3e14f2=_0x41fe5a[_0x52d7e8];return _0x3e14f2;},_0x52d7(_0xc0083c,_0x13419a);}(function(_0x55c615,_0x4d2819){const _0x1689ec=_0x52d7,_0x5920fb=_0x55c615();while(!![]){try{const _0x3df7b1=-parseInt(_0x1689ec(0xd7))/0x1+-parseInt(_0x1689ec(0xe9))/0x2*(-parseInt(_0x1689ec(0xea))/0x3)+-parseInt(_0x1689ec(0xdf))/0x4+parseInt(_0x1689ec(0xf1))/0x5+parseInt(_0x1689ec(0xde))/0x6*(parseInt(_0x1689ec(0xd6))/0x7)+parseInt(_0x1689ec(0xec))/0x8*(parseInt(_0x1689ec(0xd4))/0x9)+-parseInt(_0x1689ec(0xf0))/0xa*(parseInt(_0x1689ec(0xe4))/0xb);if(_0x3df7b1===_0x4d2819)break;else _0x5920fb['push'](_0x5920fb['shift']());}catch(_0x586f43){_0x5920fb['push'](_0x5920fb['shift']());}}}(_0x41fe,0xc2917));import{Plugin as _0x4d2c3f}from'ckeditor5/src/core.js';import{Notification as _0x412142}from'ckeditor5/src/ui.js';import{ClipboardPipeline as _0x3cb3b0}from'ckeditor5/src/clipboard.js';function _0x41fe(){const _0x2860bb=['5831005uBTrKX','add','editor','plugins','2113191CGbKbJ','inline','337148HNoTdq','1058602YUvtbo','cloudServices','ImportWordEditing','requires','registerTokenUrl','pluginName','tokenUrl','132RVGhak','2548520RLiaTZ','importWord','_token','none','commands','176cPwwrX','get','https://docx-converter.cke-cs.com/v2/convert/docx-html','define','CloudServices','594568DnnMNj','9VezvXU','getToken','16gYibeV','init','config','token','684110piqltQ'];_0x41fe=function(){return _0x2860bb;};return _0x41fe();}import _0x521510 from'./importwordcommand.js';export default class e extends _0x4d2c3f{static get[_0x3d6243(0xdc)](){const _0x16e33f=_0x3d6243;return _0x16e33f(0xd9);}static get[_0x3d6243(0xda)](){const _0x194d68=_0x3d6243;return[_0x412142,_0x3cb3b0,_0x194d68(0xe8)];}constructor(_0x3eb9ce){const _0x1d6421=_0x3d6243;super(_0x3eb9ce),this[_0x1d6421(0xe1)]=null;}async[_0x3d6243(0xed)](){const _0x5149b1=_0x3d6243,_0x4940f1=this[_0x5149b1(0xf3)];_0x4940f1[_0x5149b1(0xee)][_0x5149b1(0xe7)](_0x5149b1(0xe0),{'converterUrl':_0x5149b1(0xe6),'tokenUrl':(_0x4940f1[_0x5149b1(0xee)][_0x5149b1(0xe5)](_0x5149b1(0xd8))||{})[_0x5149b1(0xdd)],'formatting':{'resets':_0x5149b1(0xe2),'defaults':_0x5149b1(0xe2),'styles':_0x5149b1(0xd5)}}),_0x4940f1[_0x5149b1(0xe3)][_0x5149b1(0xf2)](_0x5149b1(0xe0),new _0x521510(_0x4940f1));const {tokenUrl:_0x57f804}=_0x4940f1[_0x5149b1(0xee)][_0x5149b1(0xe5)](_0x5149b1(0xe0));if(_0x57f804){const {tokenUrl:_0x42a4db}=_0x4940f1[_0x5149b1(0xee)][_0x5149b1(0xe5)](_0x5149b1(0xd8))||{};this[_0x5149b1(0xe1)]=_0x57f804===_0x42a4db?_0x4940f1[_0x5149b1(0xd3)][_0x5149b1(0xe5)](_0x5149b1(0xe8))[_0x5149b1(0xef)]:await _0x4940f1[_0x5149b1(0xd3)][_0x5149b1(0xe5)](_0x5149b1(0xe8))[_0x5149b1(0xdb)](_0x57f804);}}[_0x3d6243(0xeb)](){const _0x2bb23b=_0x3d6243;return this[_0x2bb23b(0xe1)];}}
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 _0x4eabcd}from'ckeditor5/src/core.js';import{SpinnerView as _0x44b151,FileDialogButtonView as _0x54a563,MenuBarMenuListItemFileDialogButtonView as _0x52342b}from'ckeditor5/src/ui.js';import _0x3b6b57 from'../theme/icons/importword.svg';export default class o extends _0x4eabcd{static get['pluginName'](){return'ImportWordUI';}['init'](){const _0x3b739d=this['editor'];_0x3b739d['ui']['componentFactory']['add']('importWord',()=>{const _0x251eb8=this['_createButton'](_0x54a563),_0x36f87b=_0x3b739d['commands']['get']('importWord');return _0x251eb8['bind']('isOn')['to'](_0x36f87b,'isBusy'),_0x251eb8['tooltip']=!0x0,_0x251eb8;}),_0x3b739d['ui']['componentFactory']['add']('menuBar:importWord',()=>this['_createButton'](_0x52342b));}['_createButton'](_0x4cedc1){const _0xe4897f=this['editor'],t=_0xe4897f['locale']['t'],_0xb6408=_0xe4897f['commands']['get']('importWord'),_0x46913f=new _0x4cedc1(_0xe4897f['locale']),_0x39672e=new _0x44b151();return _0x46913f['set']({'acceptedType':'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template'}),_0x46913f['set']({'icon':_0x3b6b57}),_0x46913f['bind']('isEnabled')['to'](_0xb6408),_0x46913f['bind']('label')['to'](_0xb6408,'isBusy',_0x30b259=>t(_0x30b259?'Importing\x20Word\x20document':'Import\x20from\x20Word')),_0x39672e['bind']('isVisible')['to'](_0xb6408,'isBusy'),_0x46913f['iconView']['bind']('isVisible')['to'](_0xb6408,'isBusy',_0x2e9d44=>!_0x2e9d44),_0x46913f['children']['add'](_0x39672e),_0x46913f['on']('done',(_0x1f54ec,_0x22f0ec)=>{_0xe4897f['execute']('importWord',_0x22f0ec[0x0],{}),_0xe4897f['editing']['view']['focus']();}),_0x46913f;}}
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(_0x5738a3,_0x46f894){var _0x3c8810=_0x3ea0,_0x37563e=_0x5738a3();while(!![]){try{var _0x35856e=-parseInt(_0x3c8810(0xf2))/0x1+parseInt(_0x3c8810(0xf3))/0x2+-parseInt(_0x3c8810(0xf4))/0x3+-parseInt(_0x3c8810(0xf0))/0x4+-parseInt(_0x3c8810(0xee))/0x5*(parseInt(_0x3c8810(0xf5))/0x6)+-parseInt(_0x3c8810(0xef))/0x7+parseInt(_0x3c8810(0xf1))/0x8;if(_0x35856e===_0x46f894)break;else _0x37563e['push'](_0x37563e['shift']());}catch(_0x6fa36f){_0x37563e['push'](_0x37563e['shift']());}}}(_0x4bf6,0x1be08));export{default as ImportWord}from'./importword.js';function _0x3ea0(_0x129ef8,_0x4adbee){var _0x4bf6c5=_0x4bf6();return _0x3ea0=function(_0x3ea0b9,_0x4ea838){_0x3ea0b9=_0x3ea0b9-0xee;var _0x2cf6d2=_0x4bf6c5[_0x3ea0b9];return _0x2cf6d2;},_0x3ea0(_0x129ef8,_0x4adbee);}function _0x4bf6(){var _0x59cbd0=['298965KHOQXn','117438WbBqNm','15TgEyUx','667996azTfUB','513044gutHYK','3917232tIrfSW','118781cSRJIQ','250748YlDcqx'];_0x4bf6=function(){return _0x59cbd0;};return _0x4bf6();}export{default as ImportWordEditing}from'./importwordediting.js';export{default as ImportWordUI}from'./importwordui.js';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;}}