@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250407.0 → 0.0.0-nightly-20250409.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 (176) hide show
  1. package/build/translations/be.js +1 -0
  2. package/build/uploadcare.js +1 -1
  3. package/dist/index.js +3 -3
  4. package/dist/translations/af.js +1 -1
  5. package/dist/translations/af.umd.js +1 -1
  6. package/dist/translations/ar.js +1 -1
  7. package/dist/translations/ar.umd.js +1 -1
  8. package/dist/translations/ast.js +1 -1
  9. package/dist/translations/ast.umd.js +1 -1
  10. package/dist/translations/az.js +1 -1
  11. package/dist/translations/az.umd.js +1 -1
  12. package/dist/translations/be.d.ts +8 -0
  13. package/dist/translations/be.js +23 -0
  14. package/dist/translations/be.umd.js +23 -0
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/lang/translations/be.po +100 -0
  152. package/package.json +9 -9
  153. package/src/index.js +1 -1
  154. package/src/ui/uploadcarecontroller.js +2 -2
  155. package/src/ui/uploadcareformview.js +1 -1
  156. package/src/uploadcare.js +1 -1
  157. package/src/uploadcarecommand.js +1 -1
  158. package/src/uploadcareconfig.js +1 -1
  159. package/src/uploadcareediting.js +1 -1
  160. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
  161. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
  162. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
  163. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
  164. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
  165. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
  166. package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
  167. package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
  168. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
  169. package/src/uploadcareimageedit.js +1 -1
  170. package/src/uploadcareui.js +1 -1
  171. package/src/uploadcareuploadadapter.js +1 -1
  172. package/src/utils/common-translations.js +1 -1
  173. package/src/utils/dialogfocusmanagerview.js +1 -1
  174. package/src/utils/editingutils.js +1 -1
  175. package/src/utils/isancestor.js +1 -1
  176. package/src/utils/uploadutils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x158ad0,Command as _0x23c797}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1da223,IconGooglePhotos as _0x4821ea,IconGoogleDrive as _0x5e1d23,IconFacebook as _0x73a3a,IconDropbox as _0xa3caa9,IconUploadcareLink as _0x4fd177,IconUploadcareImageUpload as _0x48ad3c,IconError as et,IconUploadcareImageEdit as _0x2448e4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x580994,MenuBarMenuListItemButtonView as _0x2bfa1a,View as _0x3d46de,FocusCycler as _0x9c206a,Dialog as _0x3c3d76,DialogViewPosition as _0x56eec3,SpinnerView as _0x562916,IconView as at,Notification as _0x32da36}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x49f1ee,DomEmitterMixin as _0x238a1f,global as _0x5e7795,getAncestors as _0x5ef214,ObservableMixin as _0x39dab1,createElement as _0xaa7494,uid as _0x23a027}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x35d6dc}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3847fb,info as _0x3e0be5}from'@uploadcare/upload-client';import*as _0x401f88 from'@uploadcare/file-uploader';var o=function(_0x123af3){return _0x123af3['Local']='local',_0x123af3['URL']='url',_0x123af3['Dropbox']='dropbox',_0x123af3['GDrive']='gdrive',_0x123af3['Facebook']='facebook',_0x123af3['GPhotos']='gphotos',_0x123af3['OneDrive']='onedrive',_0x123af3;}({});function _(_0x320840,_0x51fd44,_0x4e4e8a){const t=_0x320840['t'],_0x17bfb7=_0x320840['t'];switch(_0x51fd44){case o['Local']:return{'text':_0x17bfb7('Insert'===_0x4e4e8a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x17bfb7('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x4e4e8a?_0x17bfb7('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x17bfb7('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x4e4e8a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x51fd44;}}class e extends _0x158ad0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2c2532=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x242847;for(const _0x265bfb in _0x2c2532){const _0x12b86d=_0x265bfb,_0x2a04cb=_0x2c2532[_0x12b86d];if('uploadcareLicenseKeyValid'==_0x2a04cb||'uploadcareLicenseKeyInvalid'==_0x2a04cb||'uploadcareLicenseKeyExpired'==_0x2a04cb||'uploadcareLicenseKeyDomainLimit'==_0x2a04cb||'uploadcareLicenseKeyNotAllowed'==_0x2a04cb||'uploadcareLicenseKeyEvaluationLimit'==_0x2a04cb||'uploadcareLicenseKeyTrialLimit'==_0x2a04cb||'uploadcareLicenseKeyUsageLimit'==_0x2a04cb){delete _0x2c2532[_0x12b86d],_0x242847=_0x2a04cb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x242847&&_0x2c2532['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x242847&&_0x2c2532['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x242847&&_0x2c2532['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x242847&&_0x2c2532['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x242847&&_0x2c2532['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x242847&&_0x2c2532['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x242847&&_0x2c2532['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x149db7}=this,_0x1194ca=_0x149db7['commands']['get']('uploadcare');if(!_0x1194ca)return;const _0x5e1ca5=this['_normalizeConfigSourceList'](_0x149db7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4caaeb,_0x2c3236)=>{const _0x482dd4=this['_getIntegrationKey'](_0x2c3236['type']);return _0x4caaeb[_0x482dd4]||(_0x4caaeb[_0x482dd4]=[]),_0x4caaeb[_0x482dd4]['push'](_0x2c3236),_0x4caaeb;},{});_0x149db7['plugins']['has']('ImageInsertUI')&&_0x149db7['commands']['get']('uploadcare')&&Object['entries'](_0x5e1ca5)['forEach'](([_0x15e8a1,_0x2d50a9])=>{_0x149db7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x15e8a1,'observable':()=>_0x1194ca,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2d50a9),'formViewCreator':()=>this['_createDropdownButtons'](_0x2d50a9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2d50a9),'override':'assetManager'!==_0x15e8a1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4f4771){const {locale:_0x4fb67a}=this['editor'];return _0x4f4771['map'](_0x14c5cb=>{const _0x45e415=_(_0x4fb67a,_0x14c5cb,'Insert');switch(_0x14c5cb){case o['Local']:return{'icon':_0x48ad3c,'type':o['Local'],..._0x45e415};case o['URL']:return{'icon':_0x4fd177,'type':o['URL'],..._0x45e415};case o['Dropbox']:return{'icon':_0xa3caa9,'type':o['Dropbox'],..._0x45e415};case o['Facebook']:return{'icon':_0x73a3a,'type':o['Facebook'],..._0x45e415};case o['GDrive']:return{'icon':_0x5e1d23,'type':o['GDrive'],..._0x45e415};case o['GPhotos']:return{'icon':_0x4821ea,'type':o['GPhotos'],..._0x45e415};case o['OneDrive']:return{'icon':_0x1da223,'type':o['OneDrive'],..._0x45e415};}});}['_getIntegrationKey'](_0x5be23d){switch(_0x5be23d){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4301a1,_0x49cd4f){const _0x4452b8=this['editor'],_0x227f7b=new _0x4301a1(_0x4452b8['locale']),_0x4795a0=_0x4452b8['commands']['get']('uploadcare');return _0x227f7b['bind']('isEnabled')['to'](_0x4795a0),_0x227f7b['on']('execute',()=>{_0x4795a0['execute'](_0x49cd4f);}),_0x227f7b;}['_createToolbarButton'](_0x49ac0c){const {locale:_0x31c6e5}=this['editor'],_0x1b84a5=this['editor']['plugins']['get']('ImageInsertUI'),_0x44aaa4=_0x49ac0c[0x0],_0x1abae3=this['_createButton'](_0x580994,_0x44aaa4['type']);return _0x1abae3['icon']=_0x44aaa4['icon'],_0x1abae3['bind']('label')['to'](_0x1b84a5,'isImageSelected',_0x1cc71a=>_(_0x31c6e5,_0x44aaa4['type'],_0x1cc71a?'Replace':'Insert')['text']),_0x1abae3['tooltip']=!0x0,_0x1abae3;}['_createDropdownButtons'](_0x1d55ee){const {locale:_0x459486}=this['editor'],_0x394236=this['editor']['plugins']['get']('ImageInsertUI');return _0x1d55ee['map'](_0x2ecbb4=>{const _0x47b31c=this['_createButton'](_0x580994,_0x2ecbb4['type']);return _0x47b31c['withText']=!0x0,_0x47b31c['icon']=_0x2ecbb4['icon'],_0x47b31c['bind']('label')['to'](_0x394236,'isImageSelected',_0x9d3389=>_(_0x459486,_0x2ecbb4['type'],_0x9d3389?'Replace':'Insert')['text']),_0x47b31c;});}['_createMenuBarButtons'](_0x5dfc7c){return _0x5dfc7c['map'](_0x17da5f=>{const _0x284760=this['_createButton'](_0x2bfa1a,_0x17da5f['type']);return _0x284760['icon']=_0x17da5f['icon'],_0x284760['label']=_0x17da5f['shortText'],_0x284760;});}}class q extends _0x3d46de{['focusTracker'];['focusCycler'];constructor(_0x575fa2){super(_0x575fa2),this['focusTracker']=new _0x49f1ee(),this['focusCycler']=new _0x9c206a({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0xb590a3){super(_0xb590a3),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x568fe6,_0x3e9c17){const _0x2ae62e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x54a5f7=>_0x54a5f7<=_0x3e9c17)['map'](_0x462560=>_0x568fe6['replace'](/\/$/,'')+'/-/resize/'+_0x462560+'x/\x20'+_0x462560+'w');return{'imageFallbackUrl':_0x568fe6,'imageSources':[{'srcset':_0x2ae62e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3e9c17+'px)\x20100vw,\x20'+_0x3e9c17+'px','type':'image/webp'}]};}function A(_0x3efb1a,_0x50b3b6,_0x1fd71e){const _0x2a9572=_0x3efb1a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2a9572?parseInt(_0x2a9572[0x1],0xa):_0x50b3b6,'height':_0x2a9572?parseInt(_0x2a9572[0x2],0xa):_0x1fd71e};}function m(_0x151ee6,_0x52db30){const _0x1cae09=Object['create'](_0x238a1f),_0x271cf0=_0x151ee6['plugins']['get']('ImageUtils'),_0x2196cc=_0x151ee6['editing']['mapper']['toViewElement'](_0x52db30),_0x148603=_0x271cf0['findViewImgElement'](_0x2196cc),_0x48a518=_0x151ee6['editing']['view']['domConverter']['viewToDom'](_0x148603),_0x30a394=_0x52db30['getAttribute']('width'),_0x3c78d1=_0x52db30['getAttribute']('height'),_0x2517c7='image-processing';_0x151ee6['editing']['view']['change'](_0x2d155f=>{_0x2d155f['addClass'](_0x2517c7,_0x2196cc),_0x2d155f['setStyle']('aspect-ratio',_0x30a394+'/'+_0x3c78d1,_0x148603);}),_0x1cae09['listenTo'](_0x48a518,'load',()=>{_0x1cae09['stopListening'](_0x48a518,'load'),_0x151ee6['editing']['view']['change'](_0x43a528=>{_0x43a528['removeClass'](_0x2517c7,_0x2196cc),_0x43a528['removeStyle']('aspect-ratio',_0x148603);});});}function V(_0x5d2e2f){if(Array['isArray'](_0x5d2e2f)){const _0x39cf8e=_0x5d2e2f['map'](V);return _0x46051c=>_0x39cf8e['some'](_0x5d316f=>_0x5d316f(_0x46051c));}if('origin'==_0x5d2e2f){const _0x1de048=_0x5e7795['window']['location']['origin'];return _0x2a53de=>new URL(_0x2a53de,_0x5e7795['document']['baseURI'])['origin']==_0x1de048;}return'function'==typeof _0x5d2e2f?_0x5d2e2f:_0x5d2e2f instanceof RegExp?_0x32b21f=>!(!_0x32b21f['match'](_0x5d2e2f)&&!_0x32b21f['replace'](/^https?:\/\//,'')['match'](_0x5d2e2f)):()=>!0x1;}function F(_0x2b7d99,_0x285401){return _0x5ef214(_0x2b7d99['target'])['includes'](_0x285401);}class l extends/* #__PURE__ -- @preserve */
24
- _0x39dab1(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5dac95,_0x27c141,_0x592397){super(),this['_editor']=_0x5dac95,this['_editing']=_0x27c141,this['_dialog']=_0x5dac95['plugins']['get'](_0x3c3d76),this['_api']=_0x27c141['ctxElement']['getAPI'](),this['_type']=_0x592397,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x16995b,model:_0x1f7895}=this['_editor'],_0x4488ca=_0x1f7895['document']['selection']['getSelectedElement'](),_0x2acf0f=_0x4488ca&&(_0x4488ca['is']('element','imageBlock')||_0x4488ca['is']('element','imageInline'));this['_formView']=new S(_0x16995b),this['_dialog']['show']({'id':'uploadCare','icon':_0x48ad3c,'title':_(_0x16995b,this['_type'],_0x2acf0f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x56eec3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d08c0=>!F(_0x3d08c0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x129ffa}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1bf19f=>{const _0x595031=_0x129ffa['length'];for(const _0x4f949d of _0x129ffa){const _0x52463f=_0x4f949d===_0x129ffa[_0x595031-0x1],{cdnUrl:_0x3d1171,fileInfo:_0x34fd15}=_0x4f949d;if(!_0x3d1171||!_0x34fd15)continue;const {width:_0x40de05,height:_0x33dbb3}=_0x34fd15['imageInfo'],_0x24e82c=A(_0x3d1171,_0x40de05,_0x33dbb3),_0x5e0599=E(_0x3d1171,_0x24e82c['width']),_0x37fa64={'id':_0x34fd15['uuid'],'type':'image','attributes':{'imageDimension':_0x24e82c,..._0x5e0599}};this['_insertAsset'](_0x37fa64,_0x52463f,_0x1bf19f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x443d37=>{'idle'===_0x443d37['detail']['status']&&!_0x443d37['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2beea3,_0x47e9e9,_0x5579f2){const _0x516920=this['_editor']['model']['document']['selection'],_0x2fc47f=_0x516920['getSelectedElement'](),_0x555876=!(!_0x2fc47f||!_0x2fc47f['is']('element','imageInline'));_0x5579f2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2beea3,_0x555876),_0x47e9e9||_0x5579f2['setSelection'](_0x516920['getLastPosition']());}['_insertImage'](_0x14de3e,_0x3400d5){const _0x2f8e16=this['_editor'],{imageDimension:_0x3598fc,imageFallbackUrl:_0x4f2403,imageSources:_0x5c0598}=_0x14de3e['attributes'];_0x2f8e16['execute']('insertImage',{'imageType':_0x3400d5?'imageInline':null,'source':{'uploadcareImageId':_0x14de3e['id'],'src':_0x4f2403,'sources':_0x5c0598,..._0x3598fc}});}}class n extends _0x23c797{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c3d76,i];}constructor(_0x4bb064){super(_0x4bb064),this['_editing']=_0x4bb064['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x274b8c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x274b8c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x13a298,publicKey:_0x1236f3,signal:_0x63908d,onProgress:_0x5b59ec}){return _0x3847fb(_0x13a298,{'publicKey':_0x1236f3,'store':'auto','signal':_0x63908d,'onProgress':_0x5b59ec});}static['getInfo'](_0x1cd5a1,_0xeadc3e){return _0x3e0be5(_0x1cd5a1,_0xeadc3e);}}class p extends _0x158ad0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x35d6dc,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x447a36=this['editor'];if(!!!_0x447a36['config']['get']('uploadcare'))return;_0x447a36['plugins']['get'](_0x35d6dc)['createUploadAdapter']=_0x478ae3=>new x(_0x478ae3,_0x447a36),_0x447a36['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x7a27dc,{imageElement:_0x504ba6,data:_0x585bd5})=>{_0x447a36['model']['change'](_0x5a6cc4=>{_0x5a6cc4['setAttribute']('uploadcareImageId',_0x585bd5['uploadcareImageId'],_0x504ba6);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4cea23,_0xc60d85){this['loader']=_0x4cea23,this['editor']=_0xc60d85,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2802b9=this['editor']['config']['get']('uploadcare.pubkey'),_0x37a0d4=await this['loader']['file'];return C['upload']({'file':_0x37a0d4,'publicKey':_0x2802b9,'signal':this['controller']['signal'],'onProgress':_0x2bd916=>{_0x2bd916&&_0x2bd916['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2bd916['value']);}})['then'](async _0x289121=>{const {imageFallbackUrl:_0x694856,imageSources:_0x27fd70}=E(_0x289121['cdnUrl'],_0x289121['imageInfo']['width']);return{'uploadcareImageId':_0x289121['uuid'],'default':_0x694856,'sources':_0x27fd70};})['catch'](()=>{const _0x3e6ffc=t('Cannot\x20upload\x20file:')+('\x20'+_0x37a0d4['name']+'.');return Promise['reject'](_0x3e6ffc);});}['abort'](){this['controller']['abort']();}}class i extends _0x158ad0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3c3d76];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3dfbc2=this['editor'];_0x3dfbc2['commands']['add']('uploadcare',new n(_0x3dfbc2));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x266654=_0x5e7795['document']['querySelector']('input[uploadcare-file-input]');_0x266654&&_0x266654['remove']();}),async function(_0x5a21fb){const _0x3709a6=_0x8296a9([0x47,0x38,0x55,0x49,0x43,0x52,0x4b,0x33,0x65,0x4c,0x53,0x32,0x6c,0x66,0x69,0x50,0x57,0x74,0x56,0x68,0x4a,0x36,0x44,0x76,0x59,0x48,0x63,0x31,0x6a,0x77,0x54,0x37,0x45,0x78,0x79,0x64,0x30,0x61,0x75,0x4d,0x6f,0x35,0x6d,0x41,0x6b,0x46,0x4e,0x51,0x4f,0x34,0x7a,0x58,0x39,0x42,0x67,0x70,0x5a,0x62,0x71,0x6e,0x72,0x73]),_0x10161a=0x1c670cf0,_0xfccc0a=0x1c6068a8^_0x10161a,_0x33372b=window[_0x8296a9([0x44,0x61,0x74,0x65])][_0x8296a9([0x6e,0x6f,0x77])](),_0x4a49e9=_0x5a21fb[_0x8296a9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a71df=new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x311c14=>{_0x4a49e9[_0x8296a9([0x6f,0x6e,0x63,0x65])](_0x8296a9([0x72,0x65,0x61,0x64,0x79]),_0x311c14);}),_0x127107={[_0x8296a9([0x6b,0x74,0x79])]:_0x8296a9([0x45,0x43]),[_0x8296a9([0x75,0x73,0x65])]:_0x8296a9([0x73,0x69,0x67]),[_0x8296a9([0x63,0x72,0x76])]:_0x8296a9([0x50,0x2d,0x32,0x35,0x36]),[_0x8296a9([0x78])]:_0x8296a9([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x8296a9([0x79])]:_0x8296a9([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x8296a9([0x61,0x6c,0x67])]:_0x8296a9([0x45,0x53,0x32,0x35,0x36])},_0x8bd996=_0x4a49e9[_0x8296a9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8296a9([0x67,0x65,0x74])](_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x502415(){let _0x2053f7,_0x172fe5=null,_0x4baf37=null;try{if(_0x8bd996==_0x8296a9([0x47,0x50,0x4c]))return _0x8296a9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2053f7=_0x24da03(),!_0x2053f7)return _0x8296a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2053f7[_0x8296a9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4baf37=_0x582ea1(_0x2053f7[_0x8296a9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2053f7[_0x8296a9([0x6a,0x74,0x69])])),await _0x382149()?_0x3cf047()?_0x8a20e3()?_0x8296a9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3852ea()?(_0x2053f7[_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8296a9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x172fe5=_0x355fdc(_0x8296a9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2053f7[_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8296a9([0x74,0x72,0x69,0x61,0x6c])&&(_0x172fe5=_0x355fdc(_0x8296a9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c0673()):_0x8296a9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8296a9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8296a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x59d1d3){return _0x8296a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8a20e3(){const _0x5f31cb=[_0x8296a9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8296a9([0x74,0x72,0x69,0x61,0x6c])][_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2053f7[_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33372b/0x3e8:0xe10*_0xfccc0a;return _0x2053f7[_0x8296a9([0x65,0x78,0x70])]<_0x5f31cb;}function _0x3cf047(){const _0x365289=_0x2053f7[_0x8296a9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x365289&&(!!_0x365289[_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8296a9([0x2a]))||!!_0x365289[_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8296a9([0x55,0x50,0x4c,0x43])));}function _0x3852ea(){const _0x3e6017=_0x2053f7[_0x8296a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e6017||0x0==_0x3e6017[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4baa22}=new URL(window[_0x8296a9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3e6017[_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4baa22))return!0x0;const _0x42eaec=_0x4baa22[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])](_0x8296a9([0x2e]));return _0x3e6017[_0x8296a9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x390e21=>_0x390e21[_0x8296a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8296a9([0x2a])))[_0x8296a9([0x6d,0x61,0x70])](_0x4bee48=>_0x4bee48[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])](_0x8296a9([0x2e])))[_0x8296a9([0x73,0x6f,0x6d,0x65])](_0x1baf1e=>_0x42eaec[_0x8296a9([0x65,0x76,0x65,0x72,0x79])]((_0x14af9c,_0x47284d)=>_0x1baf1e[_0x47284d]===_0x14af9c||_0x1baf1e[_0x47284d]===_0x8296a9([0x2a])));}function _0x4c0673(){return _0x172fe5&&_0x4baf37?new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22f853,_0x5af66f)=>{_0x172fe5[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x22f853,_0x5af66f),_0x4baf37[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x140ca9=>{_0x140ca9!=_0x8296a9([0x56,0x61,0x6c,0x69,0x64])&&_0x22f853(_0x140ca9);},_0x5af66f);}):_0x172fe5||_0x4baf37||_0x8296a9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x582ea1(_0x3ff182,_0x463e63){return new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x314201=>{if(_0x3ad6c7())return _0x314201(_0x8296a9([0x56,0x61,0x6c,0x69,0x64]));_0xdd5cfc(),_0x4a49e9[_0x8296a9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8296a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x469661=!0x1;const _0x343ffb=_0x23a027();function _0x47cac0(_0x2211c7){return!!_0x2211c7&&(typeof _0x2211c7===_0x8296a9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2211c7===_0x8296a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2211c7[_0x8296a9([0x74,0x68,0x65,0x6e])]===_0x8296a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2211c7[_0x8296a9([0x63,0x61,0x74,0x63,0x68])]===_0x8296a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2bccc7(_0x30d912){_0x2fc30e(_0x30d912)[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x130669=>{if(!_0x130669||_0x130669[_0x8296a9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8296a9([0x6f,0x6b]))return _0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbbd9aa(_0x174cdd(_0x343ffb+_0x463e63))!=_0x130669[_0x8296a9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8296a9([0x56,0x61,0x6c,0x69,0x64]);})[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x5c5563=>(_0x18d0e7(),_0x5c5563),()=>{const _0x31b690=_0x50badc();return null==_0x31b690?(_0x18d0e7(),_0x8296a9([0x56,0x61,0x6c,0x69,0x64])):_0x8296a9(_0x33372b-_0x31b690>(0x386b88f0^_0x10161a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x314201)[_0x8296a9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x314201(_0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3548c5=0x1c51e270^_0x10161a;function _0x18d0e7(){const _0x78812c=_0x8296a9([0x6c,0x6c,0x63,0x74,0x2d])+_0xbbd9aa(_0x174cdd(_0x3ff182)),_0x22bcab=_0x3dd361(_0xbbd9aa(window[_0x8296a9([0x4d,0x61,0x74,0x68])][_0x8296a9([0x63,0x65,0x69,0x6c])](_0x33372b/_0x3548c5)));window[_0x8296a9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8296a9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x78812c,_0x22bcab);}function _0x50badc(){const _0x654de=_0x8296a9([0x6c,0x6c,0x63,0x74,0x2d])+_0xbbd9aa(_0x174cdd(_0x3ff182)),_0x596381=window[_0x8296a9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8296a9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x654de);return _0x596381?window[_0x8296a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dd361(_0x596381),0x10)*_0x3548c5:null;}function _0x2fc30e(_0x234b76){return new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bded9,_0x36e4a0)=>{_0x234b76[_0x8296a9([0x74,0x68,0x65,0x6e])](_0x4bded9,_0x36e4a0),window[_0x8296a9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36e4a0,0x1c66d830^_0x10161a);});}}_0x4a49e9[_0x8296a9([0x6f,0x6e])](_0x8296a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35d309,_0x37ed84)=>{if(_0x37ed84[0x0]!=_0x3ff182)return _0x314201(_0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37ed84[0x1]={..._0x37ed84[0x1],[_0x8296a9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x343ffb};},{[_0x8296a9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8296a9([0x68,0x69,0x67,0x68])}),_0x4a49e9[_0x8296a9([0x6f,0x6e])](_0x8296a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57e56e=>{_0x47cac0(_0x57e56e[_0x8296a9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x469661=!0x0,_0x2bccc7(_0x57e56e[_0x8296a9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8296a9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8296a9([0x6c,0x6f,0x77])}),_0x4a71df[_0x8296a9([0x74,0x68,0x65,0x6e])](()=>{_0x469661||_0x314201(_0x8296a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ad6c7(){return _0x4a49e9[_0x8296a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8296a9([0x76,0x69,0x65,0x77])][_0x8296a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8296a9([0x61,0x75,0x74,0x6f]);}function _0xdd5cfc(){_0x4a49e9[_0x8296a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8296a9([0x76,0x69,0x65,0x77])][_0x8296a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8296a9([0x61,0x75,0x74,0x6f]);}}function _0x355fdc(_0x28d36f){const _0x482c73=[new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b7956=>setTimeout(_0x1b7956,0x1c6e323c^_0x10161a)),_0x4a71df[_0x8296a9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x221728=>{let _0x4a829a=0x0;_0x4a49e9[_0x8296a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x8296a9([0x6f,0x6e])](_0x8296a9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a898a,_0x3c9696)=>{_0x3c9696[0x0][_0x8296a9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a829a++,_0x4a829a==(0x1c670d08^_0x10161a)&&(_0x221728(),_0x4a898a[_0x8296a9([0x6f,0x66,0x66])]());});}))];return window[_0x8296a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8296a9([0x72,0x61,0x63,0x65])](_0x482c73)[_0x8296a9([0x74,0x68,0x65,0x6e])](()=>_0x28d36f);}async function _0x3b8336(){await _0x4a71df,_0x4a49e9[_0x8296a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x8296a9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x197e60,_0x4a49e9[_0x8296a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x8296a9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x197e60,_0x4a49e9[_0x8296a9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8296a9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d9114(_0x2fa3b0){const _0x49860b=_0x44c22a();_0x4a49e9[_0x49860b]=_0x8296a9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fa3b0,_0x2fa3b0!=_0x8296a9([0x56,0x61,0x6c,0x69,0x64])&&_0x3b8336();}function _0x44c22a(){const _0x56186a=window[_0x8296a9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8296a9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8296a9([0x6e,0x6f,0x77])]())[_0x8296a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8296a9([0x2e]),'');let _0x36ecf9=_0x8296a9([0x47]);for(let _0x180fc8=0x0;_0x180fc8<_0x56186a[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x180fc8+=0x2){let _0x2f10cb=window[_0x8296a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56186a[_0x8296a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x180fc8,_0x180fc8+0x2));_0x2f10cb>=_0x3709a6[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f10cb-=_0x3709a6[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x36ecf9+=_0x3709a6[_0x2f10cb];}return _0x36ecf9;}function _0x24da03(){const _0x572f70=_0x8bd996[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])](_0x8296a9([0x2e]));if(0x3!=_0x572f70[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d309d(_0x572f70[0x1]);function _0x3d309d(_0x20aa3e){const _0x1698c6=_0x3340ad(_0x20aa3e);return _0x1698c6&&_0x47b2df()?_0x1698c6:null;function _0x47b2df(){const _0x2262de=_0x1698c6[_0x8296a9([0x6a,0x74,0x69])],_0x5b32eb=window[_0x8296a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2262de[_0x8296a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2262de[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xda5f6d={..._0x1698c6,[_0x8296a9([0x6a,0x74,0x69])]:_0x2262de[_0x8296a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2262de[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xda5f6d[_0x8296a9([0x76,0x63])],_0x174cdd(_0xda5f6d)==_0x5b32eb;}}}async function _0x382149(){let _0xd3c05c=!0x0;try{const _0x2627dd=_0x8bd996[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])](_0x8296a9([0x2e])),[_0xd9417f,_0x229c58,_0x401e21]=_0x2627dd;return _0x46edc9(_0xd9417f),await _0x32e203(_0xd9417f,_0x229c58,_0x401e21),_0xd3c05c;}catch(_0x443259){return!0x1;}function _0x46edc9(_0x33bc11){const _0x2fde79=_0x3340ad(_0x33bc11);_0x2fde79&&_0x2fde79[_0x8296a9([0x61,0x6c,0x67])]==_0x8296a9([0x45,0x53,0x32,0x35,0x36])||(_0xd3c05c=!0x1);}async function _0x32e203(_0x12b128,_0x36759e,_0x5605e1){const _0x55c241=window[_0x8296a9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8296a9([0x66,0x72,0x6f,0x6d])](_0x12d2ef(_0x5605e1),_0x302635=>_0x302635[_0x8296a9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11d423=new window[(_0x8296a9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8296a9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12b128+_0x8296a9([0x2e])+_0x36759e),_0x286c7d=window[_0x8296a9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8296a9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x286c7d)return;const _0x11ccaf=await _0x286c7d[_0x8296a9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8296a9([0x6a,0x77,0x6b]),_0x127107,{[_0x8296a9([0x6e,0x61,0x6d,0x65])]:_0x8296a9([0x45,0x43,0x44,0x53,0x41]),[_0x8296a9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8296a9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8296a9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x286c7d[_0x8296a9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8296a9([0x6e,0x61,0x6d,0x65])]:_0x8296a9([0x45,0x43,0x44,0x53,0x41]),[_0x8296a9([0x68,0x61,0x73,0x68])]:{[_0x8296a9([0x6e,0x61,0x6d,0x65])]:_0x8296a9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11ccaf,_0x55c241,_0x11d423)||(_0xd3c05c=!0x1);}}function _0x3340ad(_0x4004d4){return _0x4004d4[_0x8296a9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8296a9([0x65,0x79]))?JSON[_0x8296a9([0x70,0x61,0x72,0x73,0x65])](_0x12d2ef(_0x4004d4)):null;}function _0x12d2ef(_0x40af2c){return window[_0x8296a9([0x61,0x74,0x6f,0x62])](_0x40af2c[_0x8296a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8296a9([0x2b]))[_0x8296a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8296a9([0x2f])));}function _0x174cdd(_0x3a6e05){let _0x279025=0x1505;function _0x490e6e(_0x47b73d){for(let _0x476af7=0x0;_0x476af7<_0x47b73d[_0x8296a9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x476af7++){const _0x294515=_0x47b73d[_0x8296a9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x476af7);_0x279025=(_0x279025<<0x5)+_0x279025+_0x294515,_0x279025&=_0x279025;}}function _0x299c44(_0x31337b){Array[_0x8296a9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31337b)?_0x31337b[_0x8296a9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x299c44):_0x31337b&&typeof _0x31337b==_0x8296a9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8296a9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31337b)[_0x8296a9([0x73,0x6f,0x72,0x74])]()[_0x8296a9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x302297,_0x3218dd])=>{_0x490e6e(_0x302297),_0x299c44(_0x3218dd);}):_0x490e6e(window[_0x8296a9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31337b));}return _0x299c44(_0x3a6e05),_0x279025>>>0x0;}function _0xbbd9aa(_0x37719b){return _0x37719b[_0x8296a9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8296a9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8296a9([0x30]));}function _0x3dd361(_0x43a973){return _0x43a973[_0x8296a9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8296a9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8296a9([0x6a,0x6f,0x69,0x6e])]('');}function _0x197e60(){}function _0x8296a9(_0x5aa047){return _0x5aa047['map'](_0x5db3c4=>String['fromCharCode'](_0x5db3c4))['join']('');}_0x1d9114(await _0x502415());}(this);}['_initSchema'](){const _0x2e6e7e=this['editor']['model']['schema'];_0x2e6e7e['isRegistered']('imageBlock')&&_0x2e6e7e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2e6e7e['isRegistered']('imageInline')&&_0x2e6e7e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5561ae=this['editor'];_0x5561ae['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5561ae['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x576d6a=>_0x576d6a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4be603=_0x5561ae['commands']['get']('replaceImageSource');_0x4be603&&this['listenTo'](_0x4be603,'cleanupImage',(_0x3f1f2f,[_0x44d766,_0xa486c])=>{_0x44d766['removeAttribute']('uploadcareImageId',_0xa486c);});}['_initConfig'](){const _0x23e14f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x40ac56=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xaa7494(_0x5e7795['document'],'uc-config',{..._0x23e14f,'pubkey':_0x40ac56,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x257aec=>{if('closeMax'==_0x257aec)return'#uc-icon-arrow-down';},_0x5e7795['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xaa7494(_0x5e7795['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5e7795['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4cb1e9=this['editor']['commands']['get']('insertImage');_0x4cb1e9&&this['listenTo'](_0x4cb1e9,'execute',()=>{const _0x3396b9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3396b9&&_0x3396b9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3396b9);});});const _0x218e37=this['editor']['commands']['get']('uploadcareImageReplace');_0x218e37&&this['listenTo'](_0x218e37,'execute',()=>{const _0x1038a3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1038a3&&_0x1038a3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1038a3);});});}}class u extends _0x158ad0{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25c198){super(_0x25c198),_0x25c198['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x401f88['defineComponents'](_0x401f88);}}class ta extends _0x3d46de{constructor(_0xce959f){super(_0xce959f);const t=_0xce959f['t'],_0x292022=this['bindTemplate'],_0x3174b2=new _0x562916();_0x3174b2['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x3174b2,{'text':_0x292022['to']('imageUploadProgress',_0x32d1ea=>t('Loading\x20image...')+'\x20('+(_0x32d1ea||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x3d46de{constructor(_0x3ca337){super(_0x3ca337);const t=_0x3ca337['t'];this['set']('errorType',null);const _0x34a5b7=new _0x580994(_0x3ca337);_0x34a5b7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x34a5b7['withText']=!0x0,_0x34a5b7['class']='ck-button-action',_0x34a5b7['on']('execute',()=>{this['fire']('retry');}),_0x34a5b7['bind']('isVisible')['to'](this,'errorType',_0x15d4b0=>'NotFound'!==_0x15d4b0);const _0x245eba=new at();_0x245eba['content']=et,_0x245eba['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4ecd84=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x245eba,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4ecd84['to']('errorType',_0x13f161=>t('NotFound'!==_0x13f161?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x34a5b7]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x3d46de{constructor(_0x296f64,_0x473018){super(_0x296f64);const _0x5842ab=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x473018,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5842ab['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x431bbc,_0x592470,_0x54a76d){super(_0x431bbc),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x431bbc),this['_errorView']=new rt(_0x431bbc),this['_editingView']=new tt(_0x431bbc,_0x54a76d),this['_focusableView']=new _0x3d46de(_0x431bbc),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x592470),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x58f25b=>{this['_addUploadcareImageEditorListeners'](_0x58f25b);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x57b417,_0x25d5d8){const _0x43dbe0='uc-cloud-image-editor',_0x10ec43=_0x57b417['querySelector'](_0x43dbe0);if(_0x10ec43)return _0x25d5d8(_0x10ec43);const _0x89b62d=new MutationObserver(_0x356276=>{const _0x2baa28=_0x356276['filter'](_0x8c6fb0=>_0x8c6fb0['target']===_0x57b417&&_0x8c6fb0['addedNodes']['length']>0x0&&_0x8c6fb0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43dbe0);_0x2baa28['length']&&(_0x89b62d['disconnect'](),_0x25d5d8(_0x2baa28[0x0]['addedNodes'][0x0]));});_0x89b62d['observe'](_0x57b417,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x19d8de){_0x19d8de['addEventListener']('apply',_0x5b12ce=>{this['fire']('apply',{'imageSrc':_0x5b12ce['detail']['cdnUrl']});}),_0x19d8de['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x39dab1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xb798d3,_0x3c2783,_0x54e637){super(),this['_editor']=_0xb798d3,this['_dialog']=_0x3c2783,this['_imageElement']=_0x54e637,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x16de84=this['_imageElement'],_0x172aba=_0x16de84['getAttribute']('uploadcareImageId'),_0x5062d4=_0x16de84['getAttribute']('src');if(_0x172aba)await this['_loadImageInfo'](_0x172aba,_0x5062d4);else{if(this['_imageCache']['has'](_0x5062d4)){const _0x3c360d=this['_imageCache']['get'](_0x5062d4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c360d['url'],this['imageDimension']=_0x3c360d['dimension'],this['imageId']=_0x3c360d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e8a69}=this['_editor'],t=_0x4e8a69['t'],_0x2fbdca=new Z(_0x4e8a69,this['imageStatus'],this['_attributes']);_0x2fbdca['bind']('status')['to'](this,'imageStatus'),_0x2fbdca['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2fbdca['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2fbdca['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2fbdca,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2448e4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2fbdca,'position':_0x56eec3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2fbdca['focus']();},'onHide':()=>{_0x2fbdca['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x591d0c=>!F(_0x591d0c,_0x2fbdca['element'])}});}['_loadImageInfo'](_0x5538c1,_0x53ebc6){return C['getInfo'](_0x5538c1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x566bf4=>{const {width:_0x14ef2f,height:_0x4b004a}=_0x566bf4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x53ebc6,this['imageDimension']={'width':_0x14ef2f,'height':_0x4b004a},this['imageId']=_0x5538c1;})['catch'](_0x5bd194=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5bd194['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x199561,_0x4ccbcd){return this['_getImageAsFile'](_0x199561)['then'](_0x5e6f77=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4ccbcd['signal'],'file':_0x5e6f77,'onProgress':_0x38315d=>{_0x38315d&&_0x38315d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x38315d['value']));}}))['then'](_0x5f3c67=>{const {width:_0x2d56e7,height:_0x805e82}=_0x5f3c67['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5f3c67['cdnUrl'],this['imageDimension']={'width':_0x2d56e7,'height':_0x805e82},this['imageId']=_0x5f3c67['uuid'],this['imageUploadProgress']=null;const _0xb08af6=_0x199561['getAttribute']('src');this['_imageCache']['set'](_0xb08af6,{'id':_0x5f3c67['uuid'],'url':_0x5f3c67['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1338b6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1338b6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xa8ad5f,_0x5daff6){_0xa8ad5f['on']('apply',(_0x1cdb49,_0x377ea4)=>{this['_replaceImage'](_0x5daff6,_0x377ea4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xa8ad5f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xa8ad5f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2d80e3,_0x26f22e,_0x1c6697){const _0x339a4a=this['_editor'],{width:_0x29309f,height:_0x3e8653}=A(_0x26f22e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x11b093,imageSources:_0x5bb91f}=E(_0x26f22e,_0x29309f);_0x339a4a['model']['change'](_0x10978d=>{if('$graveyard'===_0x2d80e3['root']['rootName']){_0x339a4a['execute']('insertImage',{'imageType':_0x2d80e3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2d80e3['getAttributes']()),'uploadcareImageId':_0x1c6697,'src':_0x11b093,'sources':_0x5bb91f,'width':_0x29309f,'height':_0x3e8653}});const _0x468a6d=_0x2d80e3['getChildren']();_0x2d80e3=_0x339a4a['model']['document']['selection']['getSelectedElement']();for(const _0x38b27f of _0x468a6d)_0x10978d['append'](_0x10978d['cloneElement'](_0x38b27f),_0x2d80e3);}else _0x10978d['setSelection'](_0x2d80e3,'on'),_0x339a4a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2d80e3['getAttributes']()),'uploadcareImageId':_0x1c6697,'src':_0x11b093,'sources':_0x5bb91f,'width':_0x29309f,'height':_0x3e8653},_0x2d80e3);_0x10978d['setSelection'](_0x2d80e3,'on');});}async['_getImageAsFile'](_0x9f7bf1){const _0x5abfeb=_0x5e7795['window'],_0x435214=_0x5e7795['document']['location']['href'],_0x2edfb4=new _0x5abfeb['URL'](_0x9f7bf1['getAttribute']('src'),_0x435214);if('data:'===_0x2edfb4['protocol']){const _0x505c72=_0x2edfb4['href']['split'](','),_0x53c658=_0x505c72[0x0]['match'](/:(.*?);/)[0x1],_0x1be401=_0x53c658['split']('/')[0x1],_0x4bdeff=_0x5abfeb['atob'](_0x505c72[_0x505c72['length']-0x1]);let _0x2322ed=_0x4bdeff['length'];const _0x2b9cfd=new _0x5abfeb['Uint8Array'](_0x2322ed);for(;_0x2322ed--;)_0x2b9cfd[_0x2322ed]=_0x4bdeff['charCodeAt'](_0x2322ed);return new _0x5abfeb['File']([_0x2b9cfd],'image.'+_0x1be401,{'type':_0x53c658});}const _0x4c1d36=_0x2edfb4['href']['split']('/'),_0x14628b=_0x4c1d36[_0x4c1d36['length']-0x1],_0x22e42a=_0x14628b['split']('.')[0x1];return _0x5abfeb['fetch'](_0x2edfb4['href'])['then'](_0x36311d=>_0x36311d['clone']()['blob']())['then'](_0x46fbae=>new _0x5abfeb['File']([_0x46fbae],_0x14628b,{'type':'image/'+_0x22e42a}));}}class J extends _0x23c797{['imageEditController'];static get['requires'](){return[_0x3c3d76];}['_isEditable'];constructor(_0xe4dbd9){super(_0xe4dbd9),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4af184){const _0x4e8d32=V(_0x4af184);return _0x2f4e0c=>!(!_0x2f4e0c||!_0x2f4e0c['is']('element','imageBlock')&&!_0x2f4e0c['is']('element','imageInline'))&&(!!_0x2f4e0c['hasAttribute']('uploadcareImageId')||!!_0x2f4e0c['hasAttribute']('src')&&_0x4e8d32(_0x2f4e0c['getAttribute']('src')));}(_0xe4dbd9['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1fd292=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1fd292);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5a2418=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5a2418&&(_0x5a2418['is']('element','imageBlock')||_0x5a2418['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3c3d76),_0x5a2418),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x23c797{['refresh'](){const _0x326184=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x326184&&(_0x326184['is']('element','imageBlock')||_0x326184['is']('element','imageInline')));}['execute'](_0x204d5b){const _0x340e49=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x14f9b5=>{_0x14f9b5['setAttributes'](_0x204d5b,_0x340e49),_0x14f9b5['removeAttribute']('srcset',_0x340e49),_0x14f9b5['removeAttribute']('sizes',_0x340e49);});}}class g extends _0x158ad0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x32da36,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x257c75}=this;_0x257c75['commands']['add']('uploadcareImageEdit',new J(_0x257c75)),_0x257c75['commands']['add']('uploadcareImageReplace',new O(_0x257c75));}}class j extends _0x158ad0{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x481128=this['editor'];_0x481128['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2596e8=>{const _0x46e4b8=_0x481128['commands']['get']('uploadcareImageEdit'),_0x5ee97d=new _0x580994(_0x2596e8),t=_0x2596e8['t'];return _0x5ee97d['set']({'icon':_0x2448e4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5ee97d['bind']('isEnabled')['to'](_0x46e4b8),_0x5ee97d['bind']('isOn')['to'](_0x46e4b8,'isActive'),this['listenTo'](_0x5ee97d,'execute',()=>{_0x481128['execute']('uploadcareImageEdit'),_0x481128['editing']['view']['focus']();}),_0x5ee97d;}),this['_initConfig']();}['_initConfig'](){const _0x259c9e=_0xaa7494(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x259c9e),this['listenTo'](this['editor'],'destroy',()=>{_0x259c9e['remove']();});}}class P extends _0x158ad0{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x6b75c1,Command as _0x2a4c82}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x344b9f,IconGooglePhotos as _0x43e332,IconGoogleDrive as _0x11263f,IconFacebook as _0x3c19b5,IconDropbox as _0x28586a,IconUploadcareLink as _0x26be81,IconUploadcareImageUpload as _0x4b19e3,IconError as et,IconUploadcareImageEdit as _0x231e1b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x30c337,MenuBarMenuListItemButtonView as _0x1ce339,View as _0x36239a,FocusCycler as _0x3c5e07,Dialog as _0x3a0af3,DialogViewPosition as _0x5c2d31,SpinnerView as _0x2d273c,IconView as at,Notification as _0x1bda93}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x100cba,DomEmitterMixin as _0x55642f,global as _0x930b71,getAncestors as _0x205ebf,ObservableMixin as _0xe01b1b,createElement as _0x509f24,uid as _0x3c9d05}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4ec546}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2a5269,info as _0x547ceb}from'@uploadcare/upload-client';import*as _0x3ccb2c from'@uploadcare/file-uploader';var o=function(_0x1ece44){return _0x1ece44['Local']='local',_0x1ece44['URL']='url',_0x1ece44['Dropbox']='dropbox',_0x1ece44['GDrive']='gdrive',_0x1ece44['Facebook']='facebook',_0x1ece44['GPhotos']='gphotos',_0x1ece44['OneDrive']='onedrive',_0x1ece44;}({});function _(_0x4aef97,_0x3d4a0b,_0x39434e){const t=_0x4aef97['t'],_0x4e6ee8=_0x4aef97['t'];switch(_0x3d4a0b){case o['Local']:return{'text':_0x4e6ee8('Insert'===_0x39434e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4e6ee8('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x39434e?_0x4e6ee8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4e6ee8('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x39434e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x39434e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x39434e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x39434e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x39434e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3d4a0b;}}class e extends _0x6b75c1{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x56fda3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24f78e;for(const _0x58a5b4 in _0x56fda3){const _0x133c90=_0x58a5b4,_0x521086=_0x56fda3[_0x133c90];if('uploadcareLicenseKeyValid'==_0x521086||'uploadcareLicenseKeyInvalid'==_0x521086||'uploadcareLicenseKeyExpired'==_0x521086||'uploadcareLicenseKeyDomainLimit'==_0x521086||'uploadcareLicenseKeyNotAllowed'==_0x521086||'uploadcareLicenseKeyEvaluationLimit'==_0x521086||'uploadcareLicenseKeyTrialLimit'==_0x521086||'uploadcareLicenseKeyUsageLimit'==_0x521086){delete _0x56fda3[_0x133c90],_0x24f78e=_0x521086,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x24f78e&&_0x56fda3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x24f78e&&_0x56fda3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x24f78e&&_0x56fda3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x24f78e&&_0x56fda3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x24f78e&&_0x56fda3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x24f78e&&_0x56fda3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x24f78e&&_0x56fda3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1cc945}=this,_0x2bb840=_0x1cc945['commands']['get']('uploadcare');if(!_0x2bb840)return;const _0x2e0ff8=this['_normalizeConfigSourceList'](_0x1cc945['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x97166d,_0x1fb6dc)=>{const _0x16f5a7=this['_getIntegrationKey'](_0x1fb6dc['type']);return _0x97166d[_0x16f5a7]||(_0x97166d[_0x16f5a7]=[]),_0x97166d[_0x16f5a7]['push'](_0x1fb6dc),_0x97166d;},{});_0x1cc945['plugins']['has']('ImageInsertUI')&&_0x1cc945['commands']['get']('uploadcare')&&Object['entries'](_0x2e0ff8)['forEach'](([_0x69eb11,_0x18deb3])=>{_0x1cc945['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x69eb11,'observable':()=>_0x2bb840,'buttonViewCreator':()=>this['_createToolbarButton'](_0x18deb3),'formViewCreator':()=>this['_createDropdownButtons'](_0x18deb3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x18deb3),'override':'assetManager'!==_0x69eb11});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x40a779){const {locale:_0x797d2f}=this['editor'];return _0x40a779['map'](_0x46d8e1=>{const _0x575280=_(_0x797d2f,_0x46d8e1,'Insert');switch(_0x46d8e1){case o['Local']:return{'icon':_0x4b19e3,'type':o['Local'],..._0x575280};case o['URL']:return{'icon':_0x26be81,'type':o['URL'],..._0x575280};case o['Dropbox']:return{'icon':_0x28586a,'type':o['Dropbox'],..._0x575280};case o['Facebook']:return{'icon':_0x3c19b5,'type':o['Facebook'],..._0x575280};case o['GDrive']:return{'icon':_0x11263f,'type':o['GDrive'],..._0x575280};case o['GPhotos']:return{'icon':_0x43e332,'type':o['GPhotos'],..._0x575280};case o['OneDrive']:return{'icon':_0x344b9f,'type':o['OneDrive'],..._0x575280};}});}['_getIntegrationKey'](_0x12ba67){switch(_0x12ba67){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4c93b9,_0x53a145){const _0x32a1a0=this['editor'],_0x59828d=new _0x4c93b9(_0x32a1a0['locale']),_0x76925c=_0x32a1a0['commands']['get']('uploadcare');return _0x59828d['bind']('isEnabled')['to'](_0x76925c),_0x59828d['on']('execute',()=>{_0x76925c['execute'](_0x53a145);}),_0x59828d;}['_createToolbarButton'](_0x37c657){const {locale:_0x5d0f61}=this['editor'],_0x54490f=this['editor']['plugins']['get']('ImageInsertUI'),_0x1cf60b=_0x37c657[0x0],_0x4a9ce3=this['_createButton'](_0x30c337,_0x1cf60b['type']);return _0x4a9ce3['icon']=_0x1cf60b['icon'],_0x4a9ce3['bind']('label')['to'](_0x54490f,'isImageSelected',_0x1ecb0b=>_(_0x5d0f61,_0x1cf60b['type'],_0x1ecb0b?'Replace':'Insert')['text']),_0x4a9ce3['tooltip']=!0x0,_0x4a9ce3;}['_createDropdownButtons'](_0x2e55a7){const {locale:_0xa154e3}=this['editor'],_0x53cbc8=this['editor']['plugins']['get']('ImageInsertUI');return _0x2e55a7['map'](_0x99c2aa=>{const _0x3dfe8a=this['_createButton'](_0x30c337,_0x99c2aa['type']);return _0x3dfe8a['withText']=!0x0,_0x3dfe8a['icon']=_0x99c2aa['icon'],_0x3dfe8a['bind']('label')['to'](_0x53cbc8,'isImageSelected',_0x150a67=>_(_0xa154e3,_0x99c2aa['type'],_0x150a67?'Replace':'Insert')['text']),_0x3dfe8a;});}['_createMenuBarButtons'](_0x3f88f7){return _0x3f88f7['map'](_0x43d457=>{const _0x112b8c=this['_createButton'](_0x1ce339,_0x43d457['type']);return _0x112b8c['icon']=_0x43d457['icon'],_0x112b8c['label']=_0x43d457['shortText'],_0x112b8c;});}}class q extends _0x36239a{['focusTracker'];['focusCycler'];constructor(_0x5adc8b){super(_0x5adc8b),this['focusTracker']=new _0x100cba(),this['focusCycler']=new _0x3c5e07({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x5b0b70){super(_0x5b0b70),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x251d0f,_0x3aed01){const _0x8c9ac0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3b86fa=>_0x3b86fa<=_0x3aed01)['map'](_0x40b413=>_0x251d0f['replace'](/\/$/,'')+'/-/resize/'+_0x40b413+'x/\x20'+_0x40b413+'w');return{'imageFallbackUrl':_0x251d0f,'imageSources':[{'srcset':_0x8c9ac0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3aed01+'px)\x20100vw,\x20'+_0x3aed01+'px','type':'image/webp'}]};}function A(_0x281f58,_0x10108a,_0x62f6cc){const _0x2646b3=_0x281f58['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2646b3?parseInt(_0x2646b3[0x1],0xa):_0x10108a,'height':_0x2646b3?parseInt(_0x2646b3[0x2],0xa):_0x62f6cc};}function m(_0x100817,_0x34b7e0){const _0x4e4aa6=Object['create'](_0x55642f),_0x3e5152=_0x100817['plugins']['get']('ImageUtils'),_0x44a02c=_0x100817['editing']['mapper']['toViewElement'](_0x34b7e0),_0x1612b4=_0x3e5152['findViewImgElement'](_0x44a02c),_0x523c9d=_0x100817['editing']['view']['domConverter']['viewToDom'](_0x1612b4),_0x24ca45=_0x34b7e0['getAttribute']('width'),_0x20aa92=_0x34b7e0['getAttribute']('height'),_0x32b83f='image-processing';_0x100817['editing']['view']['change'](_0x12d631=>{_0x12d631['addClass'](_0x32b83f,_0x44a02c),_0x12d631['setStyle']('aspect-ratio',_0x24ca45+'/'+_0x20aa92,_0x1612b4);}),_0x4e4aa6['listenTo'](_0x523c9d,'load',()=>{_0x4e4aa6['stopListening'](_0x523c9d,'load'),_0x100817['editing']['view']['change'](_0x5b8864=>{_0x5b8864['removeClass'](_0x32b83f,_0x44a02c),_0x5b8864['removeStyle']('aspect-ratio',_0x1612b4);});});}function V(_0x4cd7b3){if(Array['isArray'](_0x4cd7b3)){const _0x119459=_0x4cd7b3['map'](V);return _0xdea9e9=>_0x119459['some'](_0x4b1c76=>_0x4b1c76(_0xdea9e9));}if('origin'==_0x4cd7b3){const _0x48aa47=_0x930b71['window']['location']['origin'];return _0x41131e=>new URL(_0x41131e,_0x930b71['document']['baseURI'])['origin']==_0x48aa47;}return'function'==typeof _0x4cd7b3?_0x4cd7b3:_0x4cd7b3 instanceof RegExp?_0x2f9b85=>!(!_0x2f9b85['match'](_0x4cd7b3)&&!_0x2f9b85['replace'](/^https?:\/\//,'')['match'](_0x4cd7b3)):()=>!0x1;}function F(_0x5ea2e3,_0x4bd226){return _0x205ebf(_0x5ea2e3['target'])['includes'](_0x4bd226);}class l extends/* #__PURE__ -- @preserve */
24
+ _0xe01b1b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x32edeb,_0x2f5495,_0x5b178b){super(),this['_editor']=_0x32edeb,this['_editing']=_0x2f5495,this['_dialog']=_0x32edeb['plugins']['get'](_0x3a0af3),this['_api']=_0x2f5495['ctxElement']['getAPI'](),this['_type']=_0x5b178b,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x27e8ab,model:_0x1322e1}=this['_editor'],_0x1a799d=_0x1322e1['document']['selection']['getSelectedElement'](),_0x37ed63=_0x1a799d&&(_0x1a799d['is']('element','imageBlock')||_0x1a799d['is']('element','imageInline'));this['_formView']=new S(_0x27e8ab),this['_dialog']['show']({'id':'uploadCare','icon':_0x4b19e3,'title':_(_0x27e8ab,this['_type'],_0x37ed63?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5c2d31['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x24c623=>!F(_0x24c623,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2b4b1a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1054c8=>{const _0x4a4cbf=_0x2b4b1a['length'];for(const _0x519a9f of _0x2b4b1a){const _0xdc1d40=_0x519a9f===_0x2b4b1a[_0x4a4cbf-0x1],{cdnUrl:_0x3bf5f8,fileInfo:_0x36737c}=_0x519a9f;if(!_0x3bf5f8||!_0x36737c)continue;const {width:_0x304dc8,height:_0x359084}=_0x36737c['imageInfo'],_0x1c02b1=A(_0x3bf5f8,_0x304dc8,_0x359084),_0x2d9707=E(_0x3bf5f8,_0x1c02b1['width']),_0x136dcb={'id':_0x36737c['uuid'],'type':'image','attributes':{'imageDimension':_0x1c02b1,..._0x2d9707}};this['_insertAsset'](_0x136dcb,_0xdc1d40,_0x1054c8);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3ed62d=>{'idle'===_0x3ed62d['detail']['status']&&!_0x3ed62d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3b495f,_0x1031d5,_0xbdc883){const _0x3bb0bb=this['_editor']['model']['document']['selection'],_0x38d13b=_0x3bb0bb['getSelectedElement'](),_0x4c7a34=!(!_0x38d13b||!_0x38d13b['is']('element','imageInline'));_0xbdc883['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3b495f,_0x4c7a34),_0x1031d5||_0xbdc883['setSelection'](_0x3bb0bb['getLastPosition']());}['_insertImage'](_0x254aeb,_0x856e45){const _0x8c4291=this['_editor'],{imageDimension:_0x23d57b,imageFallbackUrl:_0x54c69e,imageSources:_0x1a877a}=_0x254aeb['attributes'];_0x8c4291['execute']('insertImage',{'imageType':_0x856e45?'imageInline':null,'source':{'uploadcareImageId':_0x254aeb['id'],'src':_0x54c69e,'sources':_0x1a877a,..._0x23d57b}});}}class n extends _0x2a4c82{['_editing'];['_controller']=null;static get['requires'](){return[_0x3a0af3,i];}constructor(_0x2b7111){super(_0x2b7111),this['_editing']=_0x2b7111['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4515c9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4515c9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x17fc70,publicKey:_0x4d2a68,signal:_0x4001b1,onProgress:_0x1a1126}){return _0x2a5269(_0x17fc70,{'publicKey':_0x4d2a68,'store':'auto','signal':_0x4001b1,'onProgress':_0x1a1126});}static['getInfo'](_0xa3a384,_0x185642){return _0x547ceb(_0xa3a384,_0x185642);}}class p extends _0x6b75c1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4ec546,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x263bc3=this['editor'];if(!!!_0x263bc3['config']['get']('uploadcare'))return;_0x263bc3['plugins']['get'](_0x4ec546)['createUploadAdapter']=_0x358fc2=>new x(_0x358fc2,_0x263bc3),_0x263bc3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1c416f,{imageElement:_0x60ddc0,data:_0x1176b7})=>{_0x263bc3['model']['change'](_0x745b1b=>{_0x745b1b['setAttribute']('uploadcareImageId',_0x1176b7['uploadcareImageId'],_0x60ddc0);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5d105c,_0x389702){this['loader']=_0x5d105c,this['editor']=_0x389702,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x20f538=this['editor']['config']['get']('uploadcare.pubkey'),_0x5b827a=await this['loader']['file'];return C['upload']({'file':_0x5b827a,'publicKey':_0x20f538,'signal':this['controller']['signal'],'onProgress':_0xf94431=>{_0xf94431&&_0xf94431['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xf94431['value']);}})['then'](async _0x56e1f2=>{const {imageFallbackUrl:_0x231768,imageSources:_0x479cf3}=E(_0x56e1f2['cdnUrl'],_0x56e1f2['imageInfo']['width']);return{'uploadcareImageId':_0x56e1f2['uuid'],'default':_0x231768,'sources':_0x479cf3};})['catch'](()=>{const _0x2f7e69=t('Cannot\x20upload\x20file:')+('\x20'+_0x5b827a['name']+'.');return Promise['reject'](_0x2f7e69);});}['abort'](){this['controller']['abort']();}}class i extends _0x6b75c1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3a0af3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x36be0f=this['editor'];_0x36be0f['commands']['add']('uploadcare',new n(_0x36be0f));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x4f5be5=_0x930b71['document']['querySelector']('input[uploadcare-file-input]');_0x4f5be5&&_0x4f5be5['remove']();}),async function(_0x55b6ba){const _0x8973cb=_0x494c06([0x39,0x4b,0x66,0x44,0x76,0x75,0x42,0x77,0x73,0x6d,0x70,0x4e,0x6b,0x36,0x78,0x61,0x52,0x49,0x37,0x68,0x30,0x54,0x6f,0x72,0x6e,0x4d,0x7a,0x33,0x34,0x62,0x6c,0x38,0x71,0x31,0x58,0x5a,0x79,0x56,0x64,0x69,0x57,0x47,0x43,0x48,0x50,0x63,0x4c,0x53,0x67,0x32,0x4a,0x45,0x65,0x41,0x55,0x59,0x74,0x4f,0x6a,0x51,0x35,0x46]),_0x514ace=0x59c41b4d,_0x4e9c82=0x59c37fc5^_0x514ace,_0x20bfdc=window[_0x494c06([0x44,0x61,0x74,0x65])][_0x494c06([0x6e,0x6f,0x77])](),_0xc4ab55=_0x55b6ba[_0x494c06([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c74ba=new window[(_0x494c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e828c=>{_0xc4ab55[_0x494c06([0x6f,0x6e,0x63,0x65])](_0x494c06([0x72,0x65,0x61,0x64,0x79]),_0x1e828c);}),_0x54b129={[_0x494c06([0x6b,0x74,0x79])]:_0x494c06([0x45,0x43]),[_0x494c06([0x75,0x73,0x65])]:_0x494c06([0x73,0x69,0x67]),[_0x494c06([0x63,0x72,0x76])]:_0x494c06([0x50,0x2d,0x32,0x35,0x36]),[_0x494c06([0x78])]:_0x494c06([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x494c06([0x79])]:_0x494c06([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x494c06([0x61,0x6c,0x67])]:_0x494c06([0x45,0x53,0x32,0x35,0x36])},_0x1f0550=_0xc4ab55[_0x494c06([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x494c06([0x67,0x65,0x74])](_0x494c06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1cf3e0(){let _0x43197a,_0x45a966=null,_0x28fcd4=null;try{if(_0x1f0550==_0x494c06([0x47,0x50,0x4c]))return _0x494c06([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43197a=_0x4058(),!_0x43197a)return _0x494c06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43197a[_0x494c06([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28fcd4=_0x22aed4(_0x43197a[_0x494c06([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43197a[_0x494c06([0x6a,0x74,0x69])])),await _0x3dbe2d()?_0x45821a()?_0x5aa34f()?_0x494c06([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3fbb25()?(_0x43197a[_0x494c06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x494c06([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x45a966=_0x1961a9(_0x494c06([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43197a[_0x494c06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x494c06([0x74,0x72,0x69,0x61,0x6c])&&(_0x45a966=_0x1961a9(_0x494c06([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2ece52()):_0x494c06([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x494c06([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x494c06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2349b8){return _0x494c06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5aa34f(){const _0x5c2595=[_0x494c06([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x494c06([0x74,0x72,0x69,0x61,0x6c])][_0x494c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43197a[_0x494c06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20bfdc/0x3e8:0xe10*_0x4e9c82;return _0x43197a[_0x494c06([0x65,0x78,0x70])]<_0x5c2595;}function _0x45821a(){const _0x30da83=_0x43197a[_0x494c06([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x30da83&&(!!_0x30da83[_0x494c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x494c06([0x2a]))||!!_0x30da83[_0x494c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x494c06([0x55,0x50,0x4c,0x43])));}function _0x3fbb25(){const _0x53b3fb=_0x43197a[_0x494c06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53b3fb||0x0==_0x53b3fb[_0x494c06([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10be7d}=new URL(window[_0x494c06([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53b3fb[_0x494c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10be7d))return!0x0;const _0x1e8a75=_0x10be7d[_0x494c06([0x73,0x70,0x6c,0x69,0x74])](_0x494c06([0x2e]));return _0x53b3fb[_0x494c06([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53c391=>_0x53c391[_0x494c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x494c06([0x2a])))[_0x494c06([0x6d,0x61,0x70])](_0x4d83c7=>_0x4d83c7[_0x494c06([0x73,0x70,0x6c,0x69,0x74])](_0x494c06([0x2e])))[_0x494c06([0x73,0x6f,0x6d,0x65])](_0x1140ee=>_0x1e8a75[_0x494c06([0x65,0x76,0x65,0x72,0x79])]((_0x12a7e7,_0x2b8c98)=>_0x1140ee[_0x2b8c98]===_0x12a7e7||_0x1140ee[_0x2b8c98]===_0x494c06([0x2a])));}function _0x2ece52(){return _0x45a966&&_0x28fcd4?new window[(_0x494c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x409c3d,_0x37d5de)=>{_0x45a966[_0x494c06([0x74,0x68,0x65,0x6e])](_0x409c3d,_0x37d5de),_0x28fcd4[_0x494c06([0x74,0x68,0x65,0x6e])](_0x153fb8=>{_0x153fb8!=_0x494c06([0x56,0x61,0x6c,0x69,0x64])&&_0x409c3d(_0x153fb8);},_0x37d5de);}):_0x45a966||_0x28fcd4||_0x494c06([0x56,0x61,0x6c,0x69,0x64]);}}function _0x22aed4(_0x303c25,_0x2f7fe4){return new window[(_0x494c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x539dbb=>{if(_0x5dbd3())return _0x539dbb(_0x494c06([0x56,0x61,0x6c,0x69,0x64]));_0xaf4133(),_0xc4ab55[_0x494c06([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x494c06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1230d8=!0x1;const _0xa1609e=_0x3c9d05();function _0x13b8ff(_0x329449){return!!_0x329449&&(typeof _0x329449===_0x494c06([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x329449===_0x494c06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x329449[_0x494c06([0x74,0x68,0x65,0x6e])]===_0x494c06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x329449[_0x494c06([0x63,0x61,0x74,0x63,0x68])]===_0x494c06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b4bdc(_0x17e308){_0x4dc415(_0x17e308)[_0x494c06([0x74,0x68,0x65,0x6e])](_0x2e4064=>{if(!_0x2e4064||_0x2e4064[_0x494c06([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x494c06([0x6f,0x6b]))return _0x494c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6ecb26(_0x48ec38(_0xa1609e+_0x2f7fe4))!=_0x2e4064[_0x494c06([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x494c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x494c06([0x56,0x61,0x6c,0x69,0x64]);})[_0x494c06([0x74,0x68,0x65,0x6e])](_0x26232d=>(_0x28ef3e(),_0x26232d),()=>{const _0x5ee2f7=_0x44046c();return null==_0x5ee2f7?(_0x28ef3e(),_0x494c06([0x56,0x61,0x6c,0x69,0x64])):_0x494c06(_0x20bfdc-_0x5ee2f7>(0x7dc89f4d^_0x514ace)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x494c06([0x74,0x68,0x65,0x6e])](_0x539dbb)[_0x494c06([0x63,0x61,0x74,0x63,0x68])](()=>{_0x539dbb(_0x494c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3107ef=0x59f2f5cd^_0x514ace;function _0x28ef3e(){const _0x55485f=_0x494c06([0x6c,0x6c,0x63,0x74,0x2d])+_0x6ecb26(_0x48ec38(_0x303c25)),_0x503436=_0x410a1e(_0x6ecb26(window[_0x494c06([0x4d,0x61,0x74,0x68])][_0x494c06([0x63,0x65,0x69,0x6c])](_0x20bfdc/_0x3107ef)));window[_0x494c06([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x494c06([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55485f,_0x503436);}function _0x44046c(){const _0x3d655c=_0x494c06([0x6c,0x6c,0x63,0x74,0x2d])+_0x6ecb26(_0x48ec38(_0x303c25)),_0x337032=window[_0x494c06([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x494c06([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d655c);return _0x337032?window[_0x494c06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x410a1e(_0x337032),0x10)*_0x3107ef:null;}function _0x4dc415(_0x5b3ba1){return new window[(_0x494c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38a4bb,_0x1421b3)=>{_0x5b3ba1[_0x494c06([0x74,0x68,0x65,0x6e])](_0x38a4bb,_0x1421b3),window[_0x494c06([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1421b3,0x59c5cf8d^_0x514ace);});}}_0xc4ab55[_0x494c06([0x6f,0x6e])](_0x494c06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55a225,_0x3bd367)=>{if(_0x3bd367[0x0]!=_0x303c25)return _0x539dbb(_0x494c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3bd367[0x1]={..._0x3bd367[0x1],[_0x494c06([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa1609e};},{[_0x494c06([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x494c06([0x68,0x69,0x67,0x68])}),_0xc4ab55[_0x494c06([0x6f,0x6e])](_0x494c06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a1a5b=>{_0x13b8ff(_0x3a1a5b[_0x494c06([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1230d8=!0x0,_0x5b4bdc(_0x3a1a5b[_0x494c06([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x494c06([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x494c06([0x6c,0x6f,0x77])}),_0x5c74ba[_0x494c06([0x74,0x68,0x65,0x6e])](()=>{_0x1230d8||_0x539dbb(_0x494c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5dbd3(){return _0xc4ab55[_0x494c06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x494c06([0x76,0x69,0x65,0x77])][_0x494c06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x494c06([0x61,0x75,0x74,0x6f]);}function _0xaf4133(){_0xc4ab55[_0x494c06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x494c06([0x76,0x69,0x65,0x77])][_0x494c06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x494c06([0x61,0x75,0x74,0x6f]);}}function _0x1961a9(_0x2213f1){const _0x5819bc=[new window[(_0x494c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bbe91=>setTimeout(_0x3bbe91,0x59cd2581^_0x514ace)),_0x5c74ba[_0x494c06([0x74,0x68,0x65,0x6e])](()=>new window[(_0x494c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11e267=>{let _0x57879b=0x0;_0xc4ab55[_0x494c06([0x6d,0x6f,0x64,0x65,0x6c])][_0x494c06([0x6f,0x6e])](_0x494c06([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4695b8,_0x4d4217)=>{_0x4d4217[0x0][_0x494c06([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x57879b++,_0x57879b==(0x59c41ab5^_0x514ace)&&(_0x11e267(),_0x4695b8[_0x494c06([0x6f,0x66,0x66])]());});}))];return window[_0x494c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x494c06([0x72,0x61,0x63,0x65])](_0x5819bc)[_0x494c06([0x74,0x68,0x65,0x6e])](()=>_0x2213f1);}async function _0x1cd20e(){await _0x5c74ba,_0xc4ab55[_0x494c06([0x6d,0x6f,0x64,0x65,0x6c])][_0x494c06([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f702d,_0xc4ab55[_0x494c06([0x6d,0x6f,0x64,0x65,0x6c])][_0x494c06([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f702d,_0xc4ab55[_0x494c06([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x494c06([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1dbb45(_0x819a50){const _0x1b6541=_0x351509();_0xc4ab55[_0x1b6541]=_0x494c06([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x819a50,_0x819a50!=_0x494c06([0x56,0x61,0x6c,0x69,0x64])&&_0x1cd20e();}function _0x351509(){const _0x1af192=window[_0x494c06([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x494c06([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x494c06([0x6e,0x6f,0x77])]())[_0x494c06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x494c06([0x2e]),'');let _0x3172a0=_0x494c06([0x4b]);for(let _0x2538be=0x0;_0x2538be<_0x1af192[_0x494c06([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2538be+=0x2){let _0x2db14b=window[_0x494c06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1af192[_0x494c06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2538be,_0x2538be+0x2));_0x2db14b>=_0x8973cb[_0x494c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2db14b-=_0x8973cb[_0x494c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3172a0+=_0x8973cb[_0x2db14b];}return _0x3172a0;}function _0x4058(){const _0x46d4ce=_0x1f0550[_0x494c06([0x73,0x70,0x6c,0x69,0x74])](_0x494c06([0x2e]));if(0x3!=_0x46d4ce[_0x494c06([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e7faf(_0x46d4ce[0x1]);function _0x3e7faf(_0x13b10f){const _0x8f5d78=_0x3bc2e1(_0x13b10f);return _0x8f5d78&&_0x29d22c()?_0x8f5d78:null;function _0x29d22c(){const _0x9519f6=_0x8f5d78[_0x494c06([0x6a,0x74,0x69])],_0x181a77=window[_0x494c06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9519f6[_0x494c06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9519f6[_0x494c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b11bc={..._0x8f5d78,[_0x494c06([0x6a,0x74,0x69])]:_0x9519f6[_0x494c06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x9519f6[_0x494c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b11bc[_0x494c06([0x76,0x63])],_0x48ec38(_0x2b11bc)==_0x181a77;}}}async function _0x3dbe2d(){let _0x462c4b=!0x0;try{const _0x7e240e=_0x1f0550[_0x494c06([0x73,0x70,0x6c,0x69,0x74])](_0x494c06([0x2e])),[_0x271724,_0x21dc82,_0x4dd3b9]=_0x7e240e;return _0xad6bee(_0x271724),await _0x1d738(_0x271724,_0x21dc82,_0x4dd3b9),_0x462c4b;}catch(_0xb6c639){return!0x1;}function _0xad6bee(_0x3b9e06){const _0x2bb95f=_0x3bc2e1(_0x3b9e06);_0x2bb95f&&_0x2bb95f[_0x494c06([0x61,0x6c,0x67])]==_0x494c06([0x45,0x53,0x32,0x35,0x36])||(_0x462c4b=!0x1);}async function _0x1d738(_0x2fbab3,_0x4adce6,_0x33b39d){const _0x53a4b0=window[_0x494c06([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x494c06([0x66,0x72,0x6f,0x6d])](_0x5b9b30(_0x33b39d),_0x9e45b7=>_0x9e45b7[_0x494c06([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd814ec=new window[(_0x494c06([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x494c06([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2fbab3+_0x494c06([0x2e])+_0x4adce6),_0x3612ad=window[_0x494c06([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x494c06([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3612ad)return;const _0x4519ad=await _0x3612ad[_0x494c06([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x494c06([0x6a,0x77,0x6b]),_0x54b129,{[_0x494c06([0x6e,0x61,0x6d,0x65])]:_0x494c06([0x45,0x43,0x44,0x53,0x41]),[_0x494c06([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x494c06([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x494c06([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3612ad[_0x494c06([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x494c06([0x6e,0x61,0x6d,0x65])]:_0x494c06([0x45,0x43,0x44,0x53,0x41]),[_0x494c06([0x68,0x61,0x73,0x68])]:{[_0x494c06([0x6e,0x61,0x6d,0x65])]:_0x494c06([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4519ad,_0x53a4b0,_0xd814ec)||(_0x462c4b=!0x1);}}function _0x3bc2e1(_0x496928){return _0x496928[_0x494c06([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x494c06([0x65,0x79]))?JSON[_0x494c06([0x70,0x61,0x72,0x73,0x65])](_0x5b9b30(_0x496928)):null;}function _0x5b9b30(_0x54826e){return window[_0x494c06([0x61,0x74,0x6f,0x62])](_0x54826e[_0x494c06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x494c06([0x2b]))[_0x494c06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x494c06([0x2f])));}function _0x48ec38(_0x400bdc){let _0x140004=0x1505;function _0x1b8e5b(_0x36a8c1){for(let _0x44ce08=0x0;_0x44ce08<_0x36a8c1[_0x494c06([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44ce08++){const _0x339244=_0x36a8c1[_0x494c06([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44ce08);_0x140004=(_0x140004<<0x5)+_0x140004+_0x339244,_0x140004&=_0x140004;}}function _0x1226b0(_0x3869eb){Array[_0x494c06([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3869eb)?_0x3869eb[_0x494c06([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1226b0):_0x3869eb&&typeof _0x3869eb==_0x494c06([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x494c06([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3869eb)[_0x494c06([0x73,0x6f,0x72,0x74])]()[_0x494c06([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43889e,_0x23e046])=>{_0x1b8e5b(_0x43889e),_0x1226b0(_0x23e046);}):_0x1b8e5b(window[_0x494c06([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3869eb));}return _0x1226b0(_0x400bdc),_0x140004>>>0x0;}function _0x6ecb26(_0x37fdab){return _0x37fdab[_0x494c06([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x494c06([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x494c06([0x30]));}function _0x410a1e(_0x4e473a){return _0x4e473a[_0x494c06([0x73,0x70,0x6c,0x69,0x74])]('')[_0x494c06([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x494c06([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f702d(){}function _0x494c06(_0x4c4bc6){return _0x4c4bc6['map'](_0x148cd2=>String['fromCharCode'](_0x148cd2))['join']('');}_0x1dbb45(await _0x1cf3e0());}(this);}['_initSchema'](){const _0x9af0eb=this['editor']['model']['schema'];_0x9af0eb['isRegistered']('imageBlock')&&_0x9af0eb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x9af0eb['isRegistered']('imageInline')&&_0x9af0eb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2488d7=this['editor'];_0x2488d7['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2488d7['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3b0a4e=>_0x3b0a4e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f2370=_0x2488d7['commands']['get']('replaceImageSource');_0x2f2370&&this['listenTo'](_0x2f2370,'cleanupImage',(_0xd59c0f,[_0x59f2ab,_0x4bba32])=>{_0x59f2ab['removeAttribute']('uploadcareImageId',_0x4bba32);});}['_initConfig'](){const _0x4e5bb0=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4d5715=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x509f24(_0x930b71['document'],'uc-config',{..._0x4e5bb0,'pubkey':_0x4d5715,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x91af36=>{if('closeMax'==_0x91af36)return'#uc-icon-arrow-down';},_0x930b71['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x509f24(_0x930b71['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x930b71['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x34535a=this['editor']['commands']['get']('insertImage');_0x34535a&&this['listenTo'](_0x34535a,'execute',()=>{const _0x74a646=this['editor']['model']['document']['selection']['getSelectedElement']();_0x74a646&&_0x74a646['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x74a646);});});const _0x37c60d=this['editor']['commands']['get']('uploadcareImageReplace');_0x37c60d&&this['listenTo'](_0x37c60d,'execute',()=>{const _0x2fecc7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2fecc7&&_0x2fecc7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2fecc7);});});}}class u extends _0x6b75c1{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2fca95){super(_0x2fca95),_0x2fca95['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3ccb2c['defineComponents'](_0x3ccb2c);}}class ta extends _0x36239a{constructor(_0x2b0999){super(_0x2b0999);const t=_0x2b0999['t'],_0x1ab4be=this['bindTemplate'],_0x3de8af=new _0x2d273c();_0x3de8af['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x3de8af,{'text':_0x1ab4be['to']('imageUploadProgress',_0x2a82d9=>t('Loading\x20image...')+'\x20('+(_0x2a82d9||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x36239a{constructor(_0x106fbc){super(_0x106fbc);const t=_0x106fbc['t'];this['set']('errorType',null);const _0x8ea485=new _0x30c337(_0x106fbc);_0x8ea485['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x8ea485['withText']=!0x0,_0x8ea485['class']='ck-button-action',_0x8ea485['on']('execute',()=>{this['fire']('retry');}),_0x8ea485['bind']('isVisible')['to'](this,'errorType',_0x33fe84=>'NotFound'!==_0x33fe84);const _0x33ac11=new at();_0x33ac11['content']=et,_0x33ac11['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4e7948=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x33ac11,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4e7948['to']('errorType',_0xed3237=>t('NotFound'!==_0xed3237?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x8ea485]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x36239a{constructor(_0xbc2806,_0x3a1dbb){super(_0xbc2806);const _0x32ce79=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3a1dbb,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x32ce79['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x48b818,_0xa93b74,_0x4ef9b3){super(_0x48b818),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x48b818),this['_errorView']=new rt(_0x48b818),this['_editingView']=new tt(_0x48b818,_0x4ef9b3),this['_focusableView']=new _0x36239a(_0x48b818),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xa93b74),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x4234a0=>{this['_addUploadcareImageEditorListeners'](_0x4234a0);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x51b38e,_0x209114){const _0x43828b='uc-cloud-image-editor',_0x54a5d3=_0x51b38e['querySelector'](_0x43828b);if(_0x54a5d3)return _0x209114(_0x54a5d3);const _0x6e100d=new MutationObserver(_0x1201a8=>{const _0x94b791=_0x1201a8['filter'](_0xbfed6a=>_0xbfed6a['target']===_0x51b38e&&_0xbfed6a['addedNodes']['length']>0x0&&_0xbfed6a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43828b);_0x94b791['length']&&(_0x6e100d['disconnect'](),_0x209114(_0x94b791[0x0]['addedNodes'][0x0]));});_0x6e100d['observe'](_0x51b38e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2bcd34){_0x2bcd34['addEventListener']('apply',_0x25e311=>{this['fire']('apply',{'imageSrc':_0x25e311['detail']['cdnUrl']});}),_0x2bcd34['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0xe01b1b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4aeadf,_0x2f120b,_0xbbfb88){super(),this['_editor']=_0x4aeadf,this['_dialog']=_0x2f120b,this['_imageElement']=_0xbbfb88,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x14ef50=this['_imageElement'],_0x76b322=_0x14ef50['getAttribute']('uploadcareImageId'),_0x198c4b=_0x14ef50['getAttribute']('src');if(_0x76b322)await this['_loadImageInfo'](_0x76b322,_0x198c4b);else{if(this['_imageCache']['has'](_0x198c4b)){const _0x206aaa=this['_imageCache']['get'](_0x198c4b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x206aaa['url'],this['imageDimension']=_0x206aaa['dimension'],this['imageId']=_0x206aaa['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3d428c}=this['_editor'],t=_0x3d428c['t'],_0x193c49=new Z(_0x3d428c,this['imageStatus'],this['_attributes']);_0x193c49['bind']('status')['to'](this,'imageStatus'),_0x193c49['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x193c49['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x193c49['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x193c49,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x231e1b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x193c49,'position':_0x5c2d31['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x193c49['focus']();},'onHide':()=>{_0x193c49['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x486c60=>!F(_0x486c60,_0x193c49['element'])}});}['_loadImageInfo'](_0x53c4bc,_0x2eeca4){return C['getInfo'](_0x53c4bc,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x8abb93=>{const {width:_0x38b469,height:_0x2c4711}=_0x8abb93['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2eeca4,this['imageDimension']={'width':_0x38b469,'height':_0x2c4711},this['imageId']=_0x53c4bc;})['catch'](_0x322fd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x322fd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5de4f6,_0x57af1f){return this['_getImageAsFile'](_0x5de4f6)['then'](_0x2b9419=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x57af1f['signal'],'file':_0x2b9419,'onProgress':_0x2de991=>{_0x2de991&&_0x2de991['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2de991['value']));}}))['then'](_0x15845e=>{const {width:_0x410f35,height:_0x4ffbb1}=_0x15845e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15845e['cdnUrl'],this['imageDimension']={'width':_0x410f35,'height':_0x4ffbb1},this['imageId']=_0x15845e['uuid'],this['imageUploadProgress']=null;const _0x452013=_0x5de4f6['getAttribute']('src');this['_imageCache']['set'](_0x452013,{'id':_0x15845e['uuid'],'url':_0x15845e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x430ed5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x430ed5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x38443e,_0x18214d){_0x38443e['on']('apply',(_0x54c33c,_0x9e3486)=>{this['_replaceImage'](_0x18214d,_0x9e3486['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x38443e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x38443e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x157707,_0x37d3e9,_0x276c15){const _0x52c38a=this['_editor'],{width:_0x41db65,height:_0x40b098}=A(_0x37d3e9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3044d0,imageSources:_0x56e63d}=E(_0x37d3e9,_0x41db65);_0x52c38a['model']['change'](_0x45f281=>{if('$graveyard'===_0x157707['root']['rootName']){_0x52c38a['execute']('insertImage',{'imageType':_0x157707['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x157707['getAttributes']()),'uploadcareImageId':_0x276c15,'src':_0x3044d0,'sources':_0x56e63d,'width':_0x41db65,'height':_0x40b098}});const _0x4bc827=_0x157707['getChildren']();_0x157707=_0x52c38a['model']['document']['selection']['getSelectedElement']();for(const _0x5c8056 of _0x4bc827)_0x45f281['append'](_0x45f281['cloneElement'](_0x5c8056),_0x157707);}else _0x45f281['setSelection'](_0x157707,'on'),_0x52c38a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x157707['getAttributes']()),'uploadcareImageId':_0x276c15,'src':_0x3044d0,'sources':_0x56e63d,'width':_0x41db65,'height':_0x40b098},_0x157707);_0x45f281['setSelection'](_0x157707,'on');});}async['_getImageAsFile'](_0x5ad147){const _0x61d62=_0x930b71['window'],_0x2208c7=_0x930b71['document']['location']['href'],_0x20817f=new _0x61d62['URL'](_0x5ad147['getAttribute']('src'),_0x2208c7);if('data:'===_0x20817f['protocol']){const _0x693ddd=_0x20817f['href']['split'](','),_0x1c69da=_0x693ddd[0x0]['match'](/:(.*?);/)[0x1],_0x436f0a=_0x1c69da['split']('/')[0x1],_0x5196f6=_0x61d62['atob'](_0x693ddd[_0x693ddd['length']-0x1]);let _0x111e36=_0x5196f6['length'];const _0x5ab6ad=new _0x61d62['Uint8Array'](_0x111e36);for(;_0x111e36--;)_0x5ab6ad[_0x111e36]=_0x5196f6['charCodeAt'](_0x111e36);return new _0x61d62['File']([_0x5ab6ad],'image.'+_0x436f0a,{'type':_0x1c69da});}const _0x3606da=_0x20817f['href']['split']('/'),_0x12353b=_0x3606da[_0x3606da['length']-0x1],_0x2c5fb0=_0x12353b['split']('.')[0x1];return _0x61d62['fetch'](_0x20817f['href'])['then'](_0x22fc65=>_0x22fc65['clone']()['blob']())['then'](_0x3e3274=>new _0x61d62['File']([_0x3e3274],_0x12353b,{'type':'image/'+_0x2c5fb0}));}}class J extends _0x2a4c82{['imageEditController'];static get['requires'](){return[_0x3a0af3];}['_isEditable'];constructor(_0x2d4eff){super(_0x2d4eff),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4c6535){const _0x1097cf=V(_0x4c6535);return _0x2c21be=>!(!_0x2c21be||!_0x2c21be['is']('element','imageBlock')&&!_0x2c21be['is']('element','imageInline'))&&(!!_0x2c21be['hasAttribute']('uploadcareImageId')||!!_0x2c21be['hasAttribute']('src')&&_0x1097cf(_0x2c21be['getAttribute']('src')));}(_0x2d4eff['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3fff86=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3fff86);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x34c3ef=this['editor']['model']['document']['selection']['getSelectedElement']();_0x34c3ef&&(_0x34c3ef['is']('element','imageBlock')||_0x34c3ef['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3a0af3),_0x34c3ef),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2a4c82{['refresh'](){const _0x14ccc8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x14ccc8&&(_0x14ccc8['is']('element','imageBlock')||_0x14ccc8['is']('element','imageInline')));}['execute'](_0x11a494){const _0x13003e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x45c0f2=>{_0x45c0f2['setAttributes'](_0x11a494,_0x13003e),_0x45c0f2['removeAttribute']('srcset',_0x13003e),_0x45c0f2['removeAttribute']('sizes',_0x13003e);});}}class g extends _0x6b75c1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x1bda93,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4e7853}=this;_0x4e7853['commands']['add']('uploadcareImageEdit',new J(_0x4e7853)),_0x4e7853['commands']['add']('uploadcareImageReplace',new O(_0x4e7853));}}class j extends _0x6b75c1{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x4721f2=this['editor'];_0x4721f2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x518d53=>{const _0x56160f=_0x4721f2['commands']['get']('uploadcareImageEdit'),_0x5b722f=new _0x30c337(_0x518d53),t=_0x518d53['t'];return _0x5b722f['set']({'icon':_0x231e1b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5b722f['bind']('isEnabled')['to'](_0x56160f),_0x5b722f['bind']('isOn')['to'](_0x56160f,'isActive'),this['listenTo'](_0x5b722f,'execute',()=>{_0x4721f2['execute']('uploadcareImageEdit'),_0x4721f2['editing']['view']['focus']();}),_0x5b722f;}),this['_initConfig']();}['_initConfig'](){const _0x3aeb75=_0x509f24(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3aeb75),this['listenTo'](this['editor'],'destroy',()=>{_0x3aeb75['remove']();});}}class P extends _0x6b75c1{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x42a69d=>0x1!=_0x42a69d}};
23
+ export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2dfcd1=>0x1!=_0x2dfcd1}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x1b5574=>{const {af:{dictionary:_0x596940,getPluralForm:_0x1ef16f}}={'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x1dcb32=>0x1!=_0x1dcb32}};_0x1b5574['af']||={'dictionary':{},'getPluralForm':null},_0x1b5574['af']['dictionary']=Object['assign'](_0x1b5574['af']['dictionary'],_0x596940),_0x1b5574['af']['getPluralForm']=_0x1ef16f;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x558701=>{const {af:{dictionary:_0x532394,getPluralForm:_0x2cde5c}}={'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x5d936a=>0x1!=_0x5d936a}};_0x558701['af']||={'dictionary':{},'getPluralForm':null},_0x558701['af']['dictionary']=Object['assign'](_0x558701['af']['dictionary'],_0x532394),_0x558701['af']['getPluralForm']=_0x2cde5c;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x265f71=>0x0==_0x265f71?0x0:0x1==_0x265f71?0x1:0x2==_0x265f71?0x2:_0x265f71%0x64>=0x3&&_0x265f71%0x64<=0xa?0x3:_0x265f71%0x64>=0xb?0x4:0x5}};
23
+ export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x2233e2=>0x0==_0x2233e2?0x0:0x1==_0x2233e2?0x1:0x2==_0x2233e2?0x2:_0x2233e2%0x64>=0x3&&_0x2233e2%0x64<=0xa?0x3:_0x2233e2%0x64>=0xb?0x4:0x5}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x34f301=>{const {ar:{dictionary:_0x4a091f,getPluralForm:_0x394487}}={'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x343ce7=>0x0==_0x343ce7?0x0:0x1==_0x343ce7?0x1:0x2==_0x343ce7?0x2:_0x343ce7%0x64>=0x3&&_0x343ce7%0x64<=0xa?0x3:_0x343ce7%0x64>=0xb?0x4:0x5}};_0x34f301['ar']||={'dictionary':{},'getPluralForm':null},_0x34f301['ar']['dictionary']=Object['assign'](_0x34f301['ar']['dictionary'],_0x4a091f),_0x34f301['ar']['getPluralForm']=_0x394487;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x2a333b=>{const {ar:{dictionary:_0x33df85,getPluralForm:_0x12c514}}={'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x433236=>0x0==_0x433236?0x0:0x1==_0x433236?0x1:0x2==_0x433236?0x2:_0x433236%0x64>=0x3&&_0x433236%0x64<=0xa?0x3:_0x433236%0x64>=0xb?0x4:0x5}};_0x2a333b['ar']||={'dictionary':{},'getPluralForm':null},_0x2a333b['ar']['dictionary']=Object['assign'](_0x2a333b['ar']['dictionary'],_0x33df85),_0x2a333b['ar']['getPluralForm']=_0x12c514;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x133627=>0x1!=_0x133627}};
23
+ export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0xf17b36=>0x1!=_0xf17b36}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x2b5f38=>{const {ast:{dictionary:_0x5523e2,getPluralForm:_0x3d966f}}={'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0xc5853a=>0x1!=_0xc5853a}};_0x2b5f38['ast']||={'dictionary':{},'getPluralForm':null},_0x2b5f38['ast']['dictionary']=Object['assign'](_0x2b5f38['ast']['dictionary'],_0x5523e2),_0x2b5f38['ast']['getPluralForm']=_0x3d966f;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x49edbe=>{const {ast:{dictionary:_0x43d901,getPluralForm:_0x1c6f16}}={'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4104ce=>0x1!=_0x4104ce}};_0x49edbe['ast']||={'dictionary':{},'getPluralForm':null},_0x49edbe['ast']['dictionary']=Object['assign'](_0x49edbe['ast']['dictionary'],_0x43d901),_0x49edbe['ast']['getPluralForm']=_0x1c6f16;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x518413=>0x1!=_0x518413}};
23
+ export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x37871a=>0x1!=_0x37871a}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x4a0e82=>{const {az:{dictionary:_0x5bbf24,getPluralForm:_0x12425d}}={'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x13cb51=>0x1!=_0x13cb51}};_0x4a0e82['az']||={'dictionary':{},'getPluralForm':null},_0x4a0e82['az']['dictionary']=Object['assign'](_0x4a0e82['az']['dictionary'],_0x5bbf24),_0x4a0e82['az']['getPluralForm']=_0x12425d;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0xf2ed3c=>{const {az:{dictionary:_0x5ce23e,getPluralForm:_0x4fa6b0}}={'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x500b95=>0x1!=_0x500b95}};_0xf2ed3c['az']||={'dictionary':{},'getPluralForm':null},_0xf2ed3c['az']['dictionary']=Object['assign'](_0xf2ed3c['az']['dictionary'],_0x5ce23e),_0xf2ed3c['az']['getPluralForm']=_0x4fa6b0;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+
6
+ import type { Translations } from '@ckeditor/ckeditor5-utils';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, 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 default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x7d5c54=>_0x7d5c54%0xa==0x1&&_0x7d5c54%0x64!=0xb?0x0:_0x7d5c54%0xa>=0x2&&_0x7d5c54%0xa<=0x4&&(_0x7d5c54%0x64<0xa||_0x7d5c54%0x64>=0x14)?0x1:0x2}};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, 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
+ (_0x147426=>{const {be:{dictionary:_0x3b5671,getPluralForm:_0x3afaad}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4c542c=>_0x4c542c%0xa==0x1&&_0x4c542c%0x64!=0xb?0x0:_0x4c542c%0xa>=0x2&&_0x4c542c%0xa<=0x4&&(_0x4c542c%0x64<0xa||_0x4c542c%0x64>=0x14)?0x1:0x2}};_0x147426['be']||={'dictionary':{},'getPluralForm':null},_0x147426['be']['dictionary']=Object['assign'](_0x147426['be']['dictionary'],_0x3b5671),_0x147426['be']['getPluralForm']=_0x3afaad;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x8bb437=>0x1!=_0x8bb437}};
23
+ export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x5b1dd5=>0x1!=_0x5b1dd5}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x482f48=>{const {bg:{dictionary:_0x56d1ab,getPluralForm:_0x472546}}={'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x3f4dc8=>0x1!=_0x3f4dc8}};_0x482f48['bg']||={'dictionary':{},'getPluralForm':null},_0x482f48['bg']['dictionary']=Object['assign'](_0x482f48['bg']['dictionary'],_0x56d1ab),_0x482f48['bg']['getPluralForm']=_0x472546;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x44d11a=>{const {bg:{dictionary:_0x3665e3,getPluralForm:_0x1d6b89}}={'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0xd5f85c=>0x1!=_0xd5f85c}};_0x44d11a['bg']||={'dictionary':{},'getPluralForm':null},_0x44d11a['bg']['dictionary']=Object['assign'](_0x44d11a['bg']['dictionary'],_0x3665e3),_0x44d11a['bg']['getPluralForm']=_0x1d6b89;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0xe2600e=>0x1!=_0xe2600e}};
23
+ export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x47bb25=>0x1!=_0x47bb25}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x27338f=>{const {bn:{dictionary:_0x22c3cc,getPluralForm:_0x5773b3}}={'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x55ac16=>0x1!=_0x55ac16}};_0x27338f['bn']||={'dictionary':{},'getPluralForm':null},_0x27338f['bn']['dictionary']=Object['assign'](_0x27338f['bn']['dictionary'],_0x22c3cc),_0x27338f['bn']['getPluralForm']=_0x5773b3;})(window['CKEDITOR_TRANSLATIONS']||={});
23
+ (_0x4e2f3c=>{const {bn:{dictionary:_0x265f0b,getPluralForm:_0x184e2d}}={'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x5538a2=>0x1!=_0x5538a2}};_0x4e2f3c['bn']||={'dictionary':{},'getPluralForm':null},_0x4e2f3c['bn']['dictionary']=Object['assign'](_0x4e2f3c['bn']['dictionary'],_0x265f0b),_0x4e2f3c['bn']['getPluralForm']=_0x184e2d;})(window['CKEDITOR_TRANSLATIONS']||={});