@ckeditor/ckeditor5-uploadcare 48.8.1-alpha.2 → 48.8.1-alpha.4
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.
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1df327,Command as _0x14b54f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x436d2a,IconGooglePhotos as _0x3e758f,IconGoogleDrive as _0x3b8212,IconFacebook as _0x21b6e1,IconDropbox as _0x27dd33,IconUploadcareLink as _0x1d6840,IconUploadcareImageUpload as _0x419df8,IconError as _0x55bc6c,IconUploadcareImageEdit as _0x334787}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x575228,MenuBarMenuListItemButtonView as _0x4b9c2f,View as _0x16e914,FocusCycler as _0xd0e41b,Dialog as _0x55d859,DialogViewPosition as _0x3c657a,SpinnerView as _0x5de5a3,IconView as _0x3147fb,Notification as _0x6a0523}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4eee8d,DomEmitterMixin as _0x348b0a,global as _0x5298e2,getAncestors as _0x1237ee,ObservableMixin as _0x2960cc,uid as _0x12393e,createElement as _0x2a3759}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ImageUploadEditing as _0x24f3e2,ImageUploadProgress as _0x586f77,PictureEditing as _0x4d4eb9,ImageUtils as _0x4d8a6f,ImageEditing as _0xdb1c50}from'@ckeditor/ckeditor5-image/dist/index.js';import{FileRepository as _0x5c9f21}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x343236,info as _0x401b8f}from'@uploadcare/upload-client';import*as _0x35fc95 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x170489,_0x1c88ae,_0x5221f3){const t=_0x170489['t'],_0x1de578=_0x170489['t'];switch(_0x1c88ae){case'local':return{'text':_0x1de578('Insert'===_0x5221f3?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1de578('From\x20computer')};case'url':return{'text':'Insert'===_0x5221f3?_0x1de578('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1de578('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x5221f3?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x5221f3?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x5221f3?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x5221f3?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x5221f3?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1c88ae;}}class UploadcareUI extends _0x1df327{['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 _0x16f029=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x50bbd9;for(const _0x1f178c in _0x16f029){const _0x319399=_0x1f178c,_0x5b5619=_0x16f029[_0x319399];if('uploadcareLicenseKeyValid'==_0x5b5619||'uploadcareLicenseKeyInvalid'==_0x5b5619||'uploadcareLicenseKeyExpired'==_0x5b5619||'uploadcareLicenseKeyDomainLimit'==_0x5b5619||'uploadcareLicenseKeyNotAllowed'==_0x5b5619||'uploadcareLicenseKeyEvaluationLimit'==_0x5b5619||'uploadcareLicenseKeyUsageLimit'==_0x5b5619){delete _0x16f029[_0x319399],_0x50bbd9=_0x5b5619,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x50bbd9&&_0x16f029['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x50bbd9&&_0x16f029['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x50bbd9&&_0x16f029['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x50bbd9&&_0x16f029['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x50bbd9&&_0x16f029['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x50bbd9&&_0x16f029['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1144a2}=this,_0x420708=_0x1144a2['commands']['get']('uploadcare');if(!_0x420708)return;const _0xfeef2c=this['_normalizeConfigSourceList'](_0x1144a2['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2faa32,_0x14bc8f)=>{const _0x30d93e=this['_getIntegrationKey'](_0x14bc8f['type']);return _0x2faa32[_0x30d93e]||(_0x2faa32[_0x30d93e]=[]),_0x2faa32[_0x30d93e]['push'](_0x14bc8f),_0x2faa32;},{});_0x1144a2['plugins']['has']('ImageInsertUI')&&_0x1144a2['commands']['get']('uploadcare')&&Object['entries'](_0xfeef2c)['forEach'](([_0x2ad103,_0x4041ed])=>{_0x1144a2['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2ad103,'observable':()=>_0x420708,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4041ed),'formViewCreator':()=>this['_createDropdownButtons'](_0x4041ed),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4041ed),'override':'assetManager'!==_0x2ad103});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x12455d){const {locale:_0x353dea}=this['editor'];return _0x12455d['map'](_0x40f76a=>{const _0x3549c6=T(_0x353dea,_0x40f76a,'Insert');switch(_0x40f76a){case'local':return{'icon':_0x419df8,'type':'local',..._0x3549c6};case'url':return{'icon':_0x1d6840,'type':'url',..._0x3549c6};case'dropbox':return{'icon':_0x27dd33,'type':'dropbox',..._0x3549c6};case'facebook':return{'icon':_0x21b6e1,'type':'facebook',..._0x3549c6};case'gdrive':return{'icon':_0x3b8212,'type':'gdrive',..._0x3549c6};case'gphotos':return{'icon':_0x3e758f,'type':'gphotos',..._0x3549c6};case'onedrive':return{'icon':_0x436d2a,'type':'onedrive',..._0x3549c6};}});}['_getIntegrationKey'](_0x128ec9){switch(_0x128ec9){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x4130b2,_0x3161d5){const _0x15be5b=this['editor'],_0x302263=new _0x4130b2(_0x15be5b['locale']),_0x621131=_0x15be5b['commands']['get']('uploadcare');return _0x302263['bind']('isEnabled')['to'](_0x621131),_0x302263['on']('execute',()=>{_0x621131['execute'](_0x3161d5);}),_0x302263;}['_createToolbarButton'](_0x1c0e24){const {locale:_0x46254e}=this['editor'],_0x5afee3=this['editor']['plugins']['get']('ImageInsertUI'),_0x81e451=_0x1c0e24[0x0],_0x4293e2=this['_createButton'](_0x575228,_0x81e451['type']);return _0x4293e2['icon']=_0x81e451['icon'],_0x4293e2['bind']('label')['to'](_0x5afee3,'isImageSelected',_0x5ea27a=>T(_0x46254e,_0x81e451['type'],_0x5ea27a?'Replace':'Insert')['text']),_0x4293e2['tooltip']=!0x0,_0x4293e2;}['_createDropdownButtons'](_0x16d787){const {locale:_0x274955}=this['editor'],_0x27d524=this['editor']['plugins']['get']('ImageInsertUI');return _0x16d787['map'](_0x87c5f=>{const _0x563106=this['_createButton'](_0x575228,_0x87c5f['type']);return _0x563106['withText']=!0x0,_0x563106['icon']=_0x87c5f['icon'],_0x563106['bind']('label')['to'](_0x27d524,'isImageSelected',_0xf38d5d=>T(_0x274955,_0x87c5f['type'],_0xf38d5d?'Replace':'Insert')['text']),_0x563106;});}['_createMenuBarButtons'](_0xbe6f86){return _0xbe6f86['map'](_0x43ec21=>{const _0x1b16fc=this['_createButton'](_0x4b9c2f,_0x43ec21['type']);return _0x1b16fc['icon']=_0x43ec21['icon'],_0x1b16fc['label']=_0x43ec21['shortText'],_0x1b16fc;});}}class DialogFocusManagerView extends _0x16e914{['focusTracker'];['focusCycler'];constructor(_0x2f9c68){super(_0x2f9c68),this['focusTracker']=new _0x4eee8d(),this['focusCycler']=new _0xd0e41b({'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 UploadcareFormView extends DialogFocusManagerView{constructor(_0x34671a,_0x1daa00){super(_0x34671a),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-'+_0x1daa00}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function K(_0x26462d,_0x266a58){const _0x5d5cf8=_0x26462d['replace'](/\/$/,'');return{'imageFallbackUrl':_0x26462d,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xb3837=>_0xb3837<_0x266a58)['map'](_0x480033=>_0x5d5cf8+'/-/resize/'+_0x480033+'x/\x20'+_0x480033+'w'),_0x26462d+'\x20'+_0x266a58+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x266a58+'px)\x20100vw,\x20'+_0x266a58+'px','type':'image/webp'}]};}function O(_0x4ecbae,_0x5d14bd,_0x2c53e2){const _0x144ee4=_0x4ecbae['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x144ee4?parseInt(_0x144ee4[0x1],0xa):_0x5d14bd,'height':_0x144ee4?parseInt(_0x144ee4[0x2],0xa):_0x2c53e2};}function $(_0x5c037d,_0x4c5700){const _0x3de659=new(_0x348b0a())(),_0x4b5845=_0x5c037d['plugins']['get']('ImageUtils'),_0x3b21d0=_0x5c037d['editing']['mapper']['toViewElement'](_0x4c5700),_0x3748e5=_0x4b5845['findViewImgElement'](_0x3b21d0),_0x3fa6ef=_0x5c037d['editing']['view']['domConverter']['viewToDom'](_0x3748e5),_0x2b9fb2=_0x4c5700['getAttribute']('width'),_0x4223bf=_0x4c5700['getAttribute']('height'),_0x191bdb='image-processing';_0x5c037d['editing']['view']['change'](_0x316fd4=>{_0x316fd4['addClass'](_0x191bdb,_0x3b21d0),_0x316fd4['setStyle']('aspect-ratio',_0x2b9fb2+'/'+_0x4223bf,_0x3748e5);}),_0x3de659['listenTo'](_0x3fa6ef,'load',()=>{_0x3de659['stopListening'](_0x3fa6ef,'load'),_0x5c037d['editing']['view']['change'](_0x5e880e=>{_0x5e880e['removeClass'](_0x191bdb,_0x3b21d0),_0x5e880e['removeStyle']('aspect-ratio',_0x3748e5);});});}function B(_0x10092c){if(Array['isArray'](_0x10092c)){const _0x5a1274=_0x10092c['map'](B);return _0x1ed4d9=>_0x5a1274['some'](_0x598f59=>_0x598f59(_0x1ed4d9));}if('origin'==_0x10092c){const _0x3f4ee9=_0x5298e2['window']['location']['origin'];return _0xe33210=>new URL(_0xe33210,_0x5298e2['document']['baseURI'])['origin']==_0x3f4ee9;}return'function'==typeof _0x10092c?_0x10092c:_0x10092c instanceof RegExp?_0x36ea21=>!(!_0x36ea21['match'](_0x10092c)&&!_0x36ea21['replace'](/^https?:\/\//,'')['match'](_0x10092c)):()=>!0x1;}function M(_0x40b0c2,_0x5e3371){return _0x1237ee(_0x40b0c2['target'])['includes'](_0x5e3371);}class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2960cc(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x198417,_0x11aa19,_0x5d1faa){super(),this['_editor']=_0x198417,this['_editing']=_0x11aa19,this['_dialog']=_0x198417['plugins']['get'](_0x55d859),this['_api']=_0x11aa19['ctxElement']['getAPI'](),this['_type']=_0x5d1faa,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:_0x300808,model:_0xced8a2}=this['_editor'],_0x77c92c=_0xced8a2['document']['selection']['getSelectedElement'](),_0x4cc46a=_0x77c92c&&(_0x77c92c['is']('element','imageBlock')||_0x77c92c['is']('element','imageInline'));this['_formView']=new UploadcareFormView(_0x300808,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x419df8,'title':T(_0x300808,this['_type'],_0x4cc46a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3c657a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x49fcef=>!M(_0x49fcef,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x106910}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1790d4=>{const _0x2b7f60=_0x106910['length'];for(const _0x1fe1d3 of _0x106910){const _0x54b1a7=_0x1fe1d3===_0x106910[_0x2b7f60-0x1],{cdnUrl:_0x32c493,fileInfo:_0x5278a1}=_0x1fe1d3;if(!_0x32c493||!_0x5278a1)continue;const {width:_0x3752ee,height:_0x3f2203}=_0x5278a1['imageInfo'],_0x28c346=O(_0x32c493,_0x3752ee,_0x3f2203),_0x511f05=K(_0x32c493,_0x28c346['width']),_0x528c18={'id':_0x5278a1['uuid'],'type':'image','attributes':{'imageDimension':_0x28c346,..._0x511f05}};this['_insertAsset'](_0x528c18,_0x54b1a7,_0x1790d4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x46afda=>{'idle'===_0x46afda['detail']['status']&&!_0x46afda['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x3dc024,_0x25ae7d,_0x16c05a){const _0x21f194=this['_editor']['model']['document']['selection'],_0x4318f1=_0x21f194['getSelectedElement'](),_0x476ee6=!(!_0x4318f1||!_0x4318f1['is']('element','imageInline'));_0x16c05a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3dc024,_0x476ee6),_0x25ae7d||_0x16c05a['setSelection'](_0x21f194['getLastPosition']());}['_insertImage'](_0x16585b,_0x40a213){const _0x4d9b26=this['_editor'],{imageDimension:_0x919c3b,imageFallbackUrl:_0x21a38f,imageSources:_0x4c752c}=_0x16585b['attributes'];_0x4d9b26['execute']('insertImage',{'imageType':_0x40a213?'imageInline':null,'source':{'uploadcareImageId':_0x16585b['id'],'src':_0x21a38f,'sources':_0x4c752c,..._0x919c3b}});}}class UploadcareCommand extends _0x14b54f{['_editing'];['_controller']=null;static get['requires'](){return[_0x55d859,UploadcareEditing];}constructor(_0x56c494){super(_0x56c494),this['_editing']=_0x56c494['plugins']['get'](UploadcareEditing);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x130ca0){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new UploadcareController(this['editor'],this['_editing'],_0x130ca0);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class UploadUtils{static['upload']({file:_0x478a94,..._0x3ee518}){return _0x343236(_0x478a94,_0x3ee518);}static['getInfo'](_0x44dd27,_0x5a552a){return _0x401b8f(_0x44dd27,_0x5a552a);}}class UploadcareUploadAdapter extends _0x1df327{static get['requires'](){return[_0x24f3e2,_0x586f77,_0x5c9f21,UploadcareEditing];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x22d1ba=this['editor'];if(!!!_0x22d1ba['config']['get']('uploadcare'))return;_0x22d1ba['plugins']['get'](_0x5c9f21)['createUploadAdapter']=_0x360290=>new Adapter(_0x360290,_0x22d1ba),_0x22d1ba['plugins']['get'](_0x24f3e2)['on']('uploadComplete',(_0x14c11d,{imageElement:_0x24d184,data:_0x428981})=>{_0x22d1ba['model']['change'](_0x1d0a6b=>{_0x1d0a6b['setAttribute']('uploadcareImageId',_0x428981['uploadcareImageId'],_0x24d184);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x8c10d5,_0x2146a7){this['loader']=_0x8c10d5,this['editor']=_0x2146a7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5bac02=await this['loader']['file'];return UploadUtils['upload']({'file':_0x5bac02,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1572f7=>{_0x1572f7&&_0x1572f7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1572f7['value']);}})['then'](async _0x4e5054=>{const {imageFallbackUrl:_0x5708d6,imageSources:_0x19ef19}=K(_0x4e5054['cdnUrl'],_0x4e5054['imageInfo']['width']);return{'uploadcareImageId':_0x4e5054['uuid'],'default':_0x5708d6,'sources':_0x19ef19};})['catch'](()=>{const _0x4855c4=t('Cannot\x20upload\x20file:')+('\x20'+_0x5bac02['name']+'.');return Promise['reject'](_0x4855c4);});}['abort'](){this['controller']['abort']();}}class UploadcareEditing extends _0x1df327{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x4d4eb9,UploadcareUploadAdapter,_0x55d859];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x37558e){super(_0x37558e),this['ucContextId']=_0x12393e();}['init'](){const _0x35439a=this['editor'];_0x35439a['commands']['add']('uploadcare',new UploadcareCommand(_0x35439a));}['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 _0x4d60aa=_0x5298e2['document']['querySelector']('input[uploadcare-file-input]');_0x4d60aa&&_0x4d60aa['remove']();}),async function(_0x1ecd35){const _0x2cdd59=_0x21aafe([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x9b7de7=0x535f8c3a,_0x240039=0x5358066a^_0x9b7de7,_0x475f89=window[_0x21aafe([0x44,0x61,0x74,0x65])][_0x21aafe([0x6e,0x6f,0x77])](),_0x4d25d9=_0x1ecd35[_0x21aafe([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x414a2f=new window[(_0x21aafe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cfebe=>{_0x4d25d9[_0x21aafe([0x6f,0x6e,0x63,0x65])](_0x21aafe([0x72,0x65,0x61,0x64,0x79]),_0x3cfebe);}),_0x5a29a4={[_0x21aafe([0x6b,0x74,0x79])]:_0x21aafe([0x45,0x43]),[_0x21aafe([0x75,0x73,0x65])]:_0x21aafe([0x73,0x69,0x67]),[_0x21aafe([0x63,0x72,0x76])]:_0x21aafe([0x50,0x2d,0x32,0x35,0x36]),[_0x21aafe([0x78])]:_0x21aafe([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]),[_0x21aafe([0x79])]:_0x21aafe([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]),[_0x21aafe([0x61,0x6c,0x67])]:_0x21aafe([0x45,0x53,0x32,0x35,0x36])},_0x492262=_0x4d25d9[_0x21aafe([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21aafe([0x67,0x65,0x74])](_0x21aafe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ca129(){let _0x54791b,_0x12c90a=null,_0xde7bc7=null;try{if(_0x492262==_0x21aafe([0x47,0x50,0x4c]))return _0x21aafe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x54791b=_0x44bf30(),!_0x54791b)return _0x21aafe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x54791b[_0x21aafe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xde7bc7=_0x513d53(_0x54791b[_0x21aafe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x54791b[_0x21aafe([0x6a,0x74,0x69])])),await _0x31af6b()?_0x5532de()?_0x4b8dd2()?_0x21aafe([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c56eb()?(_0x54791b[_0x21aafe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21aafe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x12c90a=_0x405ec9(_0x21aafe([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3cc0e2()):_0x21aafe([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21aafe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21aafe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x21aafe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b8dd2(){const _0xc1b6fb=[_0x21aafe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21aafe([0x74,0x72,0x69,0x61,0x6c])][_0x21aafe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54791b[_0x21aafe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x475f89/0x3e8:0xe10*_0x240039;return _0x54791b[_0x21aafe([0x65,0x78,0x70])]<_0xc1b6fb;}function _0x5532de(){const _0x17e2d2=_0x54791b[_0x21aafe([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17e2d2&&(!!_0x17e2d2[_0x21aafe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21aafe([0x2a]))||!!_0x17e2d2[_0x21aafe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21aafe([0x55,0x50,0x4c,0x43])));}function _0x1c56eb(){const _0x2bf2aa=_0x54791b[_0x21aafe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2bf2aa||0x0==_0x2bf2aa[_0x21aafe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41cd50}=new URL(window[_0x21aafe([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2bf2aa[_0x21aafe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41cd50))return!0x0;const _0x13a1a3=_0x41cd50[_0x21aafe([0x73,0x70,0x6c,0x69,0x74])](_0x21aafe([0x2e]));return _0x2bf2aa[_0x21aafe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4187e0=>_0x4187e0[_0x21aafe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21aafe([0x2a])))[_0x21aafe([0x6d,0x61,0x70])](_0x60d3b5=>_0x60d3b5[_0x21aafe([0x73,0x70,0x6c,0x69,0x74])](_0x21aafe([0x2e])))[_0x21aafe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28dcec=>_0x28dcec[_0x21aafe([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x13a1a3[_0x21aafe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21aafe([0x6d,0x61,0x70])](_0x5a8074=>Array(_0x13a1a3[_0x21aafe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5a8074[_0x21aafe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21aafe([0x66,0x69,0x6c,0x6c])](_0x5a8074[0x0]===_0x21aafe([0x2a])?_0x21aafe([0x2a]):'')[_0x21aafe([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5a8074))[_0x21aafe([0x73,0x6f,0x6d,0x65])](_0x1ac536=>_0x13a1a3[_0x21aafe([0x65,0x76,0x65,0x72,0x79])]((_0x17cf9a,_0x29bceb)=>_0x1ac536[_0x29bceb]===_0x17cf9a||_0x1ac536[_0x29bceb]===_0x21aafe([0x2a])));}function _0x3cc0e2(){return _0x12c90a&&_0xde7bc7?new window[(_0x21aafe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27a50b,_0x42cd86)=>{_0x12c90a[_0x21aafe([0x74,0x68,0x65,0x6e])](_0x27a50b,_0x42cd86),_0xde7bc7[_0x21aafe([0x74,0x68,0x65,0x6e])](_0x8351bc=>{_0x8351bc!=_0x21aafe([0x56,0x61,0x6c,0x69,0x64])&&_0x27a50b(_0x8351bc);},_0x42cd86);}):_0x12c90a||_0xde7bc7||_0x21aafe([0x56,0x61,0x6c,0x69,0x64]);}}function _0x513d53(_0x11dd4d,_0x1e2214){return new window[(_0x21aafe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36026f=>{if(_0x540617())return _0x36026f(_0x21aafe([0x56,0x61,0x6c,0x69,0x64]));_0x17b96c(),_0x4d25d9[_0x21aafe([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21aafe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x84a590=!0x1;const _0x587ec0=_0x12393e();function _0x1037db(_0x4d1b40){return!!_0x4d1b40&&(typeof _0x4d1b40===_0x21aafe([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d1b40===_0x21aafe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d1b40[_0x21aafe([0x74,0x68,0x65,0x6e])]===_0x21aafe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d1b40[_0x21aafe([0x63,0x61,0x74,0x63,0x68])]===_0x21aafe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1fd9de(_0x372411){_0x151cf9(_0x372411)[_0x21aafe([0x74,0x68,0x65,0x6e])](_0xe4968f=>{if(!_0xe4968f||_0xe4968f[_0x21aafe([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21aafe([0x6f,0x6b]))return _0x21aafe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x519549(_0xdae20f(_0x587ec0+_0x1e2214))!=_0xe4968f[_0x21aafe([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21aafe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21aafe([0x56,0x61,0x6c,0x69,0x64]);})[_0x21aafe([0x74,0x68,0x65,0x6e])](_0x3a5c26=>(_0x4fa14a(),_0x3a5c26),()=>{const _0x5ac6db=_0x165279();return null==_0x5ac6db?(_0x4fa14a(),_0x21aafe([0x56,0x61,0x6c,0x69,0x64])):_0x21aafe(_0x475f89-_0x5ac6db>(0x7753083a^_0x9b7de7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21aafe([0x74,0x68,0x65,0x6e])](_0x36026f)[_0x21aafe([0x63,0x61,0x74,0x63,0x68])](()=>{_0x36026f(_0x21aafe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e7121=0x536962ba^_0x9b7de7;function _0x4fa14a(){const _0x2ad0ea=_0x21aafe([0x6c,0x6c,0x63,0x74,0x2d])+_0x519549(_0xdae20f(_0x11dd4d)),_0x5e9b28=_0x13501f(_0x519549(window[_0x21aafe([0x4d,0x61,0x74,0x68])][_0x21aafe([0x63,0x65,0x69,0x6c])](_0x475f89/_0x1e7121)));window[_0x21aafe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21aafe([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ad0ea,_0x5e9b28);}function _0x165279(){const _0x1b7170=_0x21aafe([0x6c,0x6c,0x63,0x74,0x2d])+_0x519549(_0xdae20f(_0x11dd4d)),_0x113fca=window[_0x21aafe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21aafe([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b7170);return _0x113fca?window[_0x21aafe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13501f(_0x113fca),0x10)*_0x1e7121:null;}function _0x151cf9(_0x76d7d8){return new window[(_0x21aafe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53ce2e,_0x1c653b)=>{_0x76d7d8[_0x21aafe([0x74,0x68,0x65,0x6e])](_0x53ce2e,_0x1c653b),window[_0x21aafe([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c653b,0x535e58fa^_0x9b7de7);});}}_0x4d25d9[_0x21aafe([0x6f,0x6e])](_0x21aafe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x455aa4,_0x3b9d59)=>{if(_0x3b9d59[0x0]!=_0x11dd4d)return _0x36026f(_0x21aafe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b9d59[0x1]={..._0x3b9d59[0x1],[_0x21aafe([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x587ec0};},{[_0x21aafe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21aafe([0x68,0x69,0x67,0x68])}),_0x4d25d9[_0x21aafe([0x6f,0x6e])](_0x21aafe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xaecc01=>{_0x1037db(_0xaecc01[_0x21aafe([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x84a590=!0x0,_0x1fd9de(_0xaecc01[_0x21aafe([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21aafe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21aafe([0x6c,0x6f,0x77])}),_0x414a2f[_0x21aafe([0x74,0x68,0x65,0x6e])](()=>{_0x84a590||_0x36026f(_0x21aafe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x540617(){return _0x4d25d9[_0x21aafe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21aafe([0x76,0x69,0x65,0x77])][_0x21aafe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21aafe([0x61,0x75,0x74,0x6f]);}function _0x17b96c(){_0x4d25d9[_0x21aafe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21aafe([0x76,0x69,0x65,0x77])][_0x21aafe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21aafe([0x61,0x75,0x74,0x6f]);}}function _0x405ec9(_0x3c7575){const _0x3601eb=[new window[(_0x21aafe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x357644=>setTimeout(_0x357644,0x5356b2f6^_0x9b7de7)),_0x414a2f[_0x21aafe([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21aafe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eac2f=>{let _0x2fe7ac=0x0;_0x4d25d9[_0x21aafe([0x6d,0x6f,0x64,0x65,0x6c])][_0x21aafe([0x6f,0x6e])](_0x21aafe([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x14a4c1,_0x4d135d)=>{_0x4d135d[0x0][_0x21aafe([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2fe7ac++,_0x2fe7ac==(0x535f89d2^_0x9b7de7)&&(_0x5eac2f(),_0x14a4c1[_0x21aafe([0x6f,0x66,0x66])]());});}))];return window[_0x21aafe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21aafe([0x72,0x61,0x63,0x65])](_0x3601eb)[_0x21aafe([0x74,0x68,0x65,0x6e])](()=>_0x3c7575);}async function _0x2168fb(){await _0x414a2f,_0x4d25d9[_0x21aafe([0x6d,0x6f,0x64,0x65,0x6c])][_0x21aafe([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d4892,_0x4d25d9[_0x21aafe([0x6d,0x6f,0x64,0x65,0x6c])][_0x21aafe([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d4892,_0x4d25d9[_0x21aafe([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21aafe([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xffba27(_0x1a63ed){const _0x216d55=_0x4cb183();_0x4d25d9[_0x216d55]=_0x21aafe([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a63ed,_0x1a63ed!=_0x21aafe([0x56,0x61,0x6c,0x69,0x64])&&_0x2168fb();}function _0x4cb183(){const _0x27191f=window[_0x21aafe([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21aafe([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21aafe([0x6e,0x6f,0x77])]())[_0x21aafe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21aafe([0x2e]),'');let _0x32b139=_0x21aafe([0x68]);for(let _0x478d53=0x0;_0x478d53<_0x27191f[_0x21aafe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x478d53+=0x2){let _0x165a40=window[_0x21aafe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27191f[_0x21aafe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x478d53,_0x478d53+0x2));_0x165a40>=_0x2cdd59[_0x21aafe([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x165a40-=_0x2cdd59[_0x21aafe([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32b139+=_0x2cdd59[_0x165a40];}return _0x32b139;}function _0x44bf30(){const _0x5952a3=_0x492262[_0x21aafe([0x73,0x70,0x6c,0x69,0x74])](_0x21aafe([0x2e]));if(0x3!=_0x5952a3[_0x21aafe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e23b2(_0x5952a3[0x1]);function _0x3e23b2(_0x2867f8){const _0x241722=_0xc814f2(_0x2867f8);return _0x241722&&_0x1bdca5()?_0x241722:null;function _0x1bdca5(){const _0x7a06b9=_0x241722[_0x21aafe([0x6a,0x74,0x69])],_0x2037fb=window[_0x21aafe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7a06b9[_0x21aafe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7a06b9[_0x21aafe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4fcd4a={..._0x241722,[_0x21aafe([0x6a,0x74,0x69])]:_0x7a06b9[_0x21aafe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x7a06b9[_0x21aafe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4fcd4a[_0x21aafe([0x76,0x63])],_0xdae20f(_0x4fcd4a)==_0x2037fb;}}}async function _0x31af6b(){let _0x4bce12=!0x0;try{const _0x1ce23b=_0x492262[_0x21aafe([0x73,0x70,0x6c,0x69,0x74])](_0x21aafe([0x2e])),[_0x41bc81,_0x3fc428,_0x27f597]=_0x1ce23b;return _0x103891(_0x41bc81),await _0x1806ef(_0x41bc81,_0x3fc428,_0x27f597),_0x4bce12;}catch{return!0x1;}function _0x103891(_0x37d992){const _0x30d300=_0xc814f2(_0x37d992);_0x30d300&&_0x30d300[_0x21aafe([0x61,0x6c,0x67])]==_0x21aafe([0x45,0x53,0x32,0x35,0x36])||(_0x4bce12=!0x1);}async function _0x1806ef(_0x36c6fb,_0x1e8678,_0x2f8542){const _0x8c8010=window[_0x21aafe([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21aafe([0x66,0x72,0x6f,0x6d])](_0x46e308(_0x2f8542),_0x18d1e4=>_0x18d1e4[_0x21aafe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x534851=new window[(_0x21aafe([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21aafe([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36c6fb+_0x21aafe([0x2e])+_0x1e8678),_0x370cf1=window[_0x21aafe([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21aafe([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x370cf1)return;const _0xe4f341=await _0x370cf1[_0x21aafe([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21aafe([0x6a,0x77,0x6b]),_0x5a29a4,{[_0x21aafe([0x6e,0x61,0x6d,0x65])]:_0x21aafe([0x45,0x43,0x44,0x53,0x41]),[_0x21aafe([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21aafe([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21aafe([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x370cf1[_0x21aafe([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21aafe([0x6e,0x61,0x6d,0x65])]:_0x21aafe([0x45,0x43,0x44,0x53,0x41]),[_0x21aafe([0x68,0x61,0x73,0x68])]:{[_0x21aafe([0x6e,0x61,0x6d,0x65])]:_0x21aafe([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe4f341,_0x8c8010,_0x534851)||(_0x4bce12=!0x1);}}function _0xc814f2(_0x4c6b52){return _0x4c6b52[_0x21aafe([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21aafe([0x65,0x79]))?JSON[_0x21aafe([0x70,0x61,0x72,0x73,0x65])](_0x46e308(_0x4c6b52)):null;}function _0x46e308(_0x5e56da){return window[_0x21aafe([0x61,0x74,0x6f,0x62])](_0x5e56da[_0x21aafe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21aafe([0x2b]))[_0x21aafe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21aafe([0x2f])));}function _0xdae20f(_0x59a8f8){let _0x36dbe3=0x1505;function _0x576cb5(_0x58c127){for(let _0x34c0e4=0x0;_0x34c0e4<_0x58c127[_0x21aafe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34c0e4++){const _0x32a717=_0x58c127[_0x21aafe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34c0e4);_0x36dbe3=(_0x36dbe3<<0x5)+_0x36dbe3+_0x32a717,_0x36dbe3&=_0x36dbe3;}}function _0xb2f832(_0x15ce09){Array[_0x21aafe([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x15ce09)?_0x15ce09[_0x21aafe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xb2f832):_0x15ce09&&typeof _0x15ce09==_0x21aafe([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21aafe([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x15ce09)[_0x21aafe([0x73,0x6f,0x72,0x74])]()[_0x21aafe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b65d6,_0xb49f9])=>{_0x576cb5(_0x5b65d6),_0xb2f832(_0xb49f9);}):_0x576cb5(window[_0x21aafe([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x15ce09));}return _0xb2f832(_0x59a8f8),_0x36dbe3>>>0x0;}function _0x519549(_0x14e388){return _0x14e388[_0x21aafe([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21aafe([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21aafe([0x30]));}function _0x13501f(_0x255500){return _0x255500[_0x21aafe([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21aafe([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21aafe([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d4892(){}function _0x21aafe(_0x2c1b87){return _0x2c1b87['map'](_0x108fb6=>String['fromCharCode'](_0x108fb6))['join']('');}_0xffba27(await _0x4ca129());}(this);}['_initSchema'](){const _0x46c0b5=this['editor']['model']['schema'];_0x46c0b5['isRegistered']('imageBlock')&&_0x46c0b5['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x46c0b5['isRegistered']('imageInline')&&_0x46c0b5['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5e498f=this['editor'];_0x5e498f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5e498f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x48ee0a=>_0x48ee0a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a158f=_0x5e498f['commands']['get']('replaceImageSource');_0x1a158f&&this['listenTo'](_0x1a158f,'cleanupImage',(_0x2683e7,[_0xb2c9ba,_0x1eed6e])=>{_0xb2c9ba['removeAttribute']('uploadcareImageId',_0x1eed6e);});}['_initConfig'](){const _0x259ae1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3ef19b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2a3759(_0x5298e2['document'],'uc-config',{..._0x259ae1,'pubkey':_0x3ef19b,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x35b1e3=>{if('closeMax'==_0x35b1e3)return'#uc-icon-arrow-down';},_0x5298e2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2a3759(_0x5298e2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5298e2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2a5478=this['editor']['commands']['get']('insertImage');_0x2a5478&&this['listenTo'](_0x2a5478,'execute',()=>{const _0x220468=this['editor']['model']['document']['selection']['getSelectedElement']();_0x220468&&_0x220468['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x220468);});});const _0x4282bb=this['editor']['commands']['get']('uploadcareImageReplace');_0x4282bb&&this['listenTo'](_0x4282bb,'execute',()=>{const _0x187517=this['editor']['model']['document']['selection']['getSelectedElement']();_0x187517&&_0x187517['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x187517);});});}}class Uploadcare extends _0x1df327{static get['requires'](){return[UploadcareEditing,UploadcareUI];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x580f08){super(_0x580f08),_0x580f08['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x35fc95['defineComponents'](_0x35fc95),this['_defineLocale']();}['_defineLocale'](){const _0x5a6426=this['editor']['config']['get']('uploadcare.locale'),_0x5d64e3=this['editor']['locale']['contentLanguage'];_0x5a6426&&_0x35fc95['defineLocale'](_0x5d64e3,_0x5a6426);}}class UploadcareImageEditFormLoadingView extends _0x16e914{constructor(_0x2cc83e){super(_0x2cc83e);const t=_0x2cc83e['t'],_0x426c65=this['bindTemplate'],_0x188b14=new _0x5de5a3();_0x188b14['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':[_0x188b14,{'text':_0x426c65['to']('imageUploadProgress',_0x234b10=>t('Loading\x20image...')+'\x20('+(_0x234b10||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 UploadcareImageEditFormErrorView extends _0x16e914{constructor(_0x2c7518){super(_0x2c7518);const t=_0x2c7518['t'];this['set']('errorType',null);const _0x15b889=new _0x575228(_0x2c7518);_0x15b889['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x15b889['withText']=!0x0,_0x15b889['class']='ck-button-action',_0x15b889['on']('execute',()=>{this['fire']('retry');}),_0x15b889['bind']('isVisible')['to'](this,'errorType',_0x4a5ff0=>'NotFound'!==_0x4a5ff0);const _0x4a3740=new _0x3147fb();_0x4a3740['content']=_0x55bc6c,_0x4a3740['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4ed974=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':[_0x4a3740,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4ed974['to']('errorType',_0x1b818f=>t('NotFound'!==_0x1b818f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x15b889]},{'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 UploadcareImageEditFormEditingView extends _0x16e914{constructor(_0x445b04,_0x245eb0){super(_0x445b04);const _0x307ba0=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x245eb0,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x307ba0['to']('imageSrc')}});}}class UploadcareImageEditFormView extends DialogFocusManagerView{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x41eb70,_0x43ce30,_0x52d627){super(_0x41eb70),this['_items']=this['createCollection'](),this['_loadingView']=new UploadcareImageEditFormLoadingView(_0x41eb70),this['_errorView']=new UploadcareImageEditFormErrorView(_0x41eb70),this['_editingView']=new UploadcareImageEditFormEditingView(_0x41eb70,_0x52d627),this['_focusableView']=new _0x16e914(_0x41eb70),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x43ce30),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'],_0x547cbf=>{this['_addUploadcareImageEditorListeners'](_0x547cbf);});}),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'](_0x3e4a5b,_0x12a447){const _0x1ed706='uc-cloud-image-editor',_0x3814e9=_0x3e4a5b['querySelector'](_0x1ed706);if(_0x3814e9)return _0x12a447(_0x3814e9);const _0x1f9443=new MutationObserver(_0x38b79a=>{const _0x3d478a=_0x38b79a['filter'](_0xc94d2e=>_0xc94d2e['target']===_0x3e4a5b&&_0xc94d2e['addedNodes']['length']>0x0&&_0xc94d2e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1ed706);_0x3d478a['length']&&(_0x1f9443['disconnect'](),_0x12a447(_0x3d478a[0x0]['addedNodes'][0x0]));});_0x1f9443['observe'](_0x3e4a5b,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3b8a2a){_0x3b8a2a['addEventListener']('apply',_0x977e78=>{this['fire']('apply',{'imageSrc':_0x977e78['detail']['cdnUrl']});}),_0x3b8a2a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2960cc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5bba76,_0x1ce0f1,_0x5ef8a4){super(),this['_editor']=_0x5bba76,this['_dialog']=_0x1ce0f1,this['_imageElement']=_0x5ef8a4,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 _0x3dc929=this['_imageElement'],_0x4b5b24=_0x3dc929['getAttribute']('uploadcareImageId'),_0x3dad31=_0x3dc929['getAttribute']('src');if(_0x4b5b24)await this['_loadImageInfo'](_0x4b5b24,_0x3dad31);else{if(this['_imageCache']['has'](_0x3dad31)){const _0x401ad8=this['_imageCache']['get'](_0x3dad31);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x401ad8['url'],this['imageDimension']=_0x401ad8['dimension'],this['imageId']=_0x401ad8['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3b5822}=this['_editor'],t=_0x3b5822['t'],_0x33853b=new UploadcareImageEditFormView(_0x3b5822,this['imageStatus'],this['_attributes']);_0x33853b['bind']('status')['to'](this,'imageStatus'),_0x33853b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x33853b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x33853b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x33853b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x334787,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x33853b,'position':_0x3c657a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x33853b['focus']();},'onHide':()=>{_0x33853b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3fca2c=>!M(_0x3fca2c,_0x33853b['element'])}});}['_loadImageInfo'](_0x3e4ecd,_0x42608c){return UploadUtils['getInfo'](_0x3e4ecd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x51d90e=>{const {width:_0x21f079,height:_0x4e98f6}=_0x51d90e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x42608c,this['imageDimension']={'width':_0x21f079,'height':_0x4e98f6},this['imageId']=_0x3e4ecd;})['catch'](_0x9f3e36=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x9f3e36['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1f7045,_0x50d2e4){return this['_getImageAsFile'](_0x1f7045)['then'](_0x42d60c=>UploadUtils['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x50d2e4['signal'],'file':_0x42d60c,'onProgress':_0x4fc43e=>{_0x4fc43e&&_0x4fc43e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4fc43e['value']));}}))['then'](_0xb59fa4=>{const {width:_0x241884,height:_0x2e835a}=_0xb59fa4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xb59fa4['cdnUrl'],this['imageDimension']={'width':_0x241884,'height':_0x2e835a},this['imageId']=_0xb59fa4['uuid'],this['imageUploadProgress']=null;const _0x6a5842=_0x1f7045['getAttribute']('src');this['_imageCache']['set'](_0x6a5842,{'id':_0xb59fa4['uuid'],'url':_0xb59fa4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x24c2ec=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x24c2ec['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x6396,_0x3052d3){_0x6396['on']('apply',(_0x4c1cf0,_0x5b04ba)=>{this['_replaceImage'](_0x3052d3,_0x5b04ba['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x6396['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x6396['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3d0ab0,_0x134538,_0x2d1833){const _0x2ad6ea=this['_editor'],{width:_0x115bfb,height:_0x2ca09b}=O(_0x134538,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xec6dba,imageSources:_0x413816}=K(_0x134538,_0x115bfb);_0x2ad6ea['model']['change'](_0x457745=>{if('$graveyard'===_0x3d0ab0['root']['rootName']){_0x2ad6ea['execute']('insertImage',{'imageType':_0x3d0ab0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3d0ab0['getAttributes']()),'uploadcareImageId':_0x2d1833,'src':_0xec6dba,'sources':_0x413816,'width':_0x115bfb,'height':_0x2ca09b}});const _0x156291=_0x3d0ab0['getChildren']();_0x3d0ab0=_0x2ad6ea['model']['document']['selection']['getSelectedElement']();for(const _0x4cb75d of _0x156291)_0x457745['append'](_0x457745['cloneElement'](_0x4cb75d),_0x3d0ab0);}else _0x457745['setSelection'](_0x3d0ab0,'on'),_0x2ad6ea['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3d0ab0['getAttributes']()),'uploadcareImageId':_0x2d1833,'src':_0xec6dba,'sources':_0x413816,'width':_0x115bfb,'height':_0x2ca09b},_0x3d0ab0);_0x457745['setSelection'](_0x3d0ab0,'on');});}async['_getImageAsFile'](_0x2e9aa9){const _0x44740d=_0x5298e2['window'],_0x51f05e=_0x5298e2['document']['location']['href'],_0x2c6937=new _0x44740d['URL'](_0x2e9aa9['getAttribute']('src'),_0x51f05e);if('data:'===_0x2c6937['protocol']){const _0x293354=_0x2c6937['href']['split'](','),_0x1202d4=_0x293354[0x0]['match'](/:(.*?);/)[0x1],_0x2ecc32=_0x1202d4['split']('/')[0x1],_0xd60e87=_0x44740d['atob'](_0x293354[_0x293354['length']-0x1]);let _0x1cb581=_0xd60e87['length'];const _0x470586=new _0x44740d['Uint8Array'](_0x1cb581);for(;_0x1cb581--;)_0x470586[_0x1cb581]=_0xd60e87['charCodeAt'](_0x1cb581);return new _0x44740d['File']([_0x470586],'image.'+_0x2ecc32,{'type':_0x1202d4});}const _0xc6fe8e=_0x2c6937['href']['split']('/'),_0x351832=_0xc6fe8e[_0xc6fe8e['length']-0x1],_0x4dbfb3=_0x351832['split']('.')[0x1];return _0x44740d['fetch'](_0x2c6937['href'])['then'](_0x309b04=>_0x309b04['clone']()['blob']())['then'](_0x28b694=>new _0x44740d['File']([_0x28b694],_0x351832,{'type':'image/'+_0x4dbfb3}));}}class UploadcareImageEditCommand extends _0x14b54f{['imageEditController'];static get['requires'](){return[_0x55d859];}['_isEditable'];constructor(_0x265bbf){super(_0x265bbf),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1af1e6){const _0xbdcb31=B(_0x1af1e6);return _0x1bed25=>!(!_0x1bed25||!_0x1bed25['is']('element','imageBlock')&&!_0x1bed25['is']('element','imageInline'))&&(!!_0x1bed25['hasAttribute']('uploadcareImageId')||!!_0x1bed25['hasAttribute']('src')&&_0xbdcb31(_0x1bed25['getAttribute']('src')));}(_0x265bbf['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x224531=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x224531);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x39ef36=this['editor']['model']['document']['selection']['getSelectedElement']();_0x39ef36&&(_0x39ef36['is']('element','imageBlock')||_0x39ef36['is']('element','imageInline'))&&(this['imageEditController']=new UploadcareImageEditController(this['editor'],this['editor']['plugins']['get'](_0x55d859),_0x39ef36),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class UploadcareImageReplaceCommand extends _0x14b54f{['refresh'](){const _0x226af0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x226af0&&(_0x226af0['is']('element','imageBlock')||_0x226af0['is']('element','imageInline')));}['execute'](_0x1243b6){const _0x1cc3c3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xf23e0f=>{_0xf23e0f['setAttributes'](_0x1243b6,_0x1cc3c3),_0xf23e0f['removeAttribute']('srcset',_0x1cc3c3),_0xf23e0f['removeAttribute']('sizes',_0x1cc3c3);});}}class UploadcareImageEditEditing extends _0x1df327{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[UploadcareEditing,_0x6a0523,_0x4d8a6f,_0xdb1c50];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1ba123}=this;_0x1ba123['commands']['add']('uploadcareImageEdit',new UploadcareImageEditCommand(_0x1ba123)),_0x1ba123['commands']['add']('uploadcareImageReplace',new UploadcareImageReplaceCommand(_0x1ba123));}}class UploadcareImageEditUI extends _0x1df327{['_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 _0x52c91c=this['editor'];_0x52c91c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4c13b4=>{const _0x3f8c0d=_0x52c91c['commands']['get']('uploadcareImageEdit'),_0x331fb6=new _0x575228(_0x4c13b4),t=_0x4c13b4['t'];return _0x331fb6['set']({'icon':_0x334787,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x331fb6['bind']('isEnabled')['to'](_0x3f8c0d),_0x331fb6['bind']('isOn')['to'](_0x3f8c0d,'isActive'),this['listenTo'](_0x331fb6,'execute',()=>{_0x52c91c['execute']('uploadcareImageEdit'),_0x52c91c['editing']['view']['focus']();}),_0x331fb6;}),this['_initConfig']();}['_initConfig'](){const _0x5d1ec1=_0x2a3759(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5d1ec1),this['listenTo'](this['editor'],'destroy',()=>{_0x5d1ec1['remove']();});}}class UploadcareImageEdit extends _0x1df327{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[UploadcareImageEditEditing,UploadcareImageEditUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Uploadcare,UploadcareCommand,UploadcareEditing,UploadcareImageEdit,UploadcareImageEditCommand,UploadcareImageEditEditing,UploadcareImageEditUI,UploadcareUI,UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x1c593a,Command as _0x39f225}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2c7a0e,IconGooglePhotos as _0x52bea5,IconGoogleDrive as _0x4d751a,IconFacebook as _0x5cffce,IconDropbox as _0x7a39e0,IconUploadcareLink as _0x1c745f,IconUploadcareImageUpload as _0x319284,IconError as _0x66838c,IconUploadcareImageEdit as _0x26f97b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4b83db,MenuBarMenuListItemButtonView as _0x1b39ed,View as _0x1bcdb1,FocusCycler as _0x57dfc1,Dialog as _0x2ea214,DialogViewPosition as _0x14e2d7,SpinnerView as _0x21c0e9,IconView as _0x5d97e3,Notification as _0x159104}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x36620c,DomEmitterMixin as _0x4382fd,global as _0x5588b0,getAncestors as _0x2671c2,ObservableMixin as _0x5c139c,uid as _0x1679f8,createElement as _0x364fee}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ImageUploadEditing as _0x42940b,ImageUploadProgress as _0x35ea5c,PictureEditing as _0x180a7c,ImageUtils as _0x379ed5,ImageEditing as _0x54db9e}from'@ckeditor/ckeditor5-image/dist/index.js';import{FileRepository as _0x24b660}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5cf747,info as _0x1c6c05}from'@uploadcare/upload-client';import*as _0x40c078 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x1ad003,_0x1d92d0,_0x210de2){const t=_0x1ad003['t'],_0x57ceab=_0x1ad003['t'];switch(_0x1d92d0){case'local':return{'text':_0x57ceab('Insert'===_0x210de2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x57ceab('From\x20computer')};case'url':return{'text':'Insert'===_0x210de2?_0x57ceab('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x57ceab('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x210de2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x210de2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x210de2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x210de2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x210de2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1d92d0;}}class UploadcareUI extends _0x1c593a{['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 _0x3fe48c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb21645;for(const _0x3dd0c0 in _0x3fe48c){const _0x47cdfe=_0x3dd0c0,_0x2daf28=_0x3fe48c[_0x47cdfe];if('uploadcareLicenseKeyValid'==_0x2daf28||'uploadcareLicenseKeyInvalid'==_0x2daf28||'uploadcareLicenseKeyExpired'==_0x2daf28||'uploadcareLicenseKeyDomainLimit'==_0x2daf28||'uploadcareLicenseKeyNotAllowed'==_0x2daf28||'uploadcareLicenseKeyEvaluationLimit'==_0x2daf28||'uploadcareLicenseKeyUsageLimit'==_0x2daf28){delete _0x3fe48c[_0x47cdfe],_0xb21645=_0x2daf28,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xb21645&&_0x3fe48c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xb21645&&_0x3fe48c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xb21645&&_0x3fe48c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xb21645&&_0x3fe48c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xb21645&&_0x3fe48c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0xb21645&&_0x3fe48c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4d52fa}=this,_0x1cf1a8=_0x4d52fa['commands']['get']('uploadcare');if(!_0x1cf1a8)return;const _0x22c141=this['_normalizeConfigSourceList'](_0x4d52fa['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x31bc49,_0x2d4f6f)=>{const _0x13f7e2=this['_getIntegrationKey'](_0x2d4f6f['type']);return _0x31bc49[_0x13f7e2]||(_0x31bc49[_0x13f7e2]=[]),_0x31bc49[_0x13f7e2]['push'](_0x2d4f6f),_0x31bc49;},{});_0x4d52fa['plugins']['has']('ImageInsertUI')&&_0x4d52fa['commands']['get']('uploadcare')&&Object['entries'](_0x22c141)['forEach'](([_0x251cf7,_0x5b1ddd])=>{_0x4d52fa['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x251cf7,'observable':()=>_0x1cf1a8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5b1ddd),'formViewCreator':()=>this['_createDropdownButtons'](_0x5b1ddd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5b1ddd),'override':'assetManager'!==_0x251cf7});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1d4b9e){const {locale:_0x288ff6}=this['editor'];return _0x1d4b9e['map'](_0x239b9a=>{const _0x340639=T(_0x288ff6,_0x239b9a,'Insert');switch(_0x239b9a){case'local':return{'icon':_0x319284,'type':'local',..._0x340639};case'url':return{'icon':_0x1c745f,'type':'url',..._0x340639};case'dropbox':return{'icon':_0x7a39e0,'type':'dropbox',..._0x340639};case'facebook':return{'icon':_0x5cffce,'type':'facebook',..._0x340639};case'gdrive':return{'icon':_0x4d751a,'type':'gdrive',..._0x340639};case'gphotos':return{'icon':_0x52bea5,'type':'gphotos',..._0x340639};case'onedrive':return{'icon':_0x2c7a0e,'type':'onedrive',..._0x340639};}});}['_getIntegrationKey'](_0x33390b){switch(_0x33390b){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x5e7f2c,_0x3400ec){const _0x4866c1=this['editor'],_0x584992=new _0x5e7f2c(_0x4866c1['locale']),_0x126dae=_0x4866c1['commands']['get']('uploadcare');return _0x584992['bind']('isEnabled')['to'](_0x126dae),_0x584992['on']('execute',()=>{_0x126dae['execute'](_0x3400ec);}),_0x584992;}['_createToolbarButton'](_0x4130a0){const {locale:_0x4b1eca}=this['editor'],_0xa6ca87=this['editor']['plugins']['get']('ImageInsertUI'),_0x5827e7=_0x4130a0[0x0],_0x1c260d=this['_createButton'](_0x4b83db,_0x5827e7['type']);return _0x1c260d['icon']=_0x5827e7['icon'],_0x1c260d['bind']('label')['to'](_0xa6ca87,'isImageSelected',_0x1f2e02=>T(_0x4b1eca,_0x5827e7['type'],_0x1f2e02?'Replace':'Insert')['text']),_0x1c260d['tooltip']=!0x0,_0x1c260d;}['_createDropdownButtons'](_0x18a311){const {locale:_0x46bbad}=this['editor'],_0x1fad1b=this['editor']['plugins']['get']('ImageInsertUI');return _0x18a311['map'](_0x2908b1=>{const _0x28fd66=this['_createButton'](_0x4b83db,_0x2908b1['type']);return _0x28fd66['withText']=!0x0,_0x28fd66['icon']=_0x2908b1['icon'],_0x28fd66['bind']('label')['to'](_0x1fad1b,'isImageSelected',_0xf316ce=>T(_0x46bbad,_0x2908b1['type'],_0xf316ce?'Replace':'Insert')['text']),_0x28fd66;});}['_createMenuBarButtons'](_0x311b92){return _0x311b92['map'](_0x38dae0=>{const _0xccc4bf=this['_createButton'](_0x1b39ed,_0x38dae0['type']);return _0xccc4bf['icon']=_0x38dae0['icon'],_0xccc4bf['label']=_0x38dae0['shortText'],_0xccc4bf;});}}class DialogFocusManagerView extends _0x1bcdb1{['focusTracker'];['focusCycler'];constructor(_0x4a5965){super(_0x4a5965),this['focusTracker']=new _0x36620c(),this['focusCycler']=new _0x57dfc1({'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 UploadcareFormView extends DialogFocusManagerView{constructor(_0x516394,_0x1e3b2c){super(_0x516394),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-'+_0x1e3b2c}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function K(_0x1491d5,_0x485039){const _0x2005c4=_0x1491d5['replace'](/\/$/,'');return{'imageFallbackUrl':_0x1491d5,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2b771a=>_0x2b771a<_0x485039)['map'](_0x45bb10=>_0x2005c4+'/-/resize/'+_0x45bb10+'x/\x20'+_0x45bb10+'w'),_0x1491d5+'\x20'+_0x485039+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x485039+'px)\x20100vw,\x20'+_0x485039+'px','type':'image/webp'}]};}function O(_0x176549,_0x5c9bb0,_0x5eaca2){const _0x209495=_0x176549['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x209495?parseInt(_0x209495[0x1],0xa):_0x5c9bb0,'height':_0x209495?parseInt(_0x209495[0x2],0xa):_0x5eaca2};}function $(_0x25a5a5,_0x1daae0){const _0x246fe6=new(_0x4382fd())(),_0x2c08cb=_0x25a5a5['plugins']['get']('ImageUtils'),_0x3a5706=_0x25a5a5['editing']['mapper']['toViewElement'](_0x1daae0),_0x3fc83b=_0x2c08cb['findViewImgElement'](_0x3a5706),_0x191f9c=_0x25a5a5['editing']['view']['domConverter']['viewToDom'](_0x3fc83b),_0x42c3a1=_0x1daae0['getAttribute']('width'),_0x2dc733=_0x1daae0['getAttribute']('height'),_0x4b7686='image-processing';_0x25a5a5['editing']['view']['change'](_0x3c01c8=>{_0x3c01c8['addClass'](_0x4b7686,_0x3a5706),_0x3c01c8['setStyle']('aspect-ratio',_0x42c3a1+'/'+_0x2dc733,_0x3fc83b);}),_0x246fe6['listenTo'](_0x191f9c,'load',()=>{_0x246fe6['stopListening'](_0x191f9c,'load'),_0x25a5a5['editing']['view']['change'](_0x372bc5=>{_0x372bc5['removeClass'](_0x4b7686,_0x3a5706),_0x372bc5['removeStyle']('aspect-ratio',_0x3fc83b);});});}function B(_0x176f4e){if(Array['isArray'](_0x176f4e)){const _0x5493d2=_0x176f4e['map'](B);return _0x1af074=>_0x5493d2['some'](_0x509170=>_0x509170(_0x1af074));}if('origin'==_0x176f4e){const _0x6c8262=_0x5588b0['window']['location']['origin'];return _0x4227a4=>new URL(_0x4227a4,_0x5588b0['document']['baseURI'])['origin']==_0x6c8262;}return'function'==typeof _0x176f4e?_0x176f4e:_0x176f4e instanceof RegExp?_0x1910dd=>!(!_0x1910dd['match'](_0x176f4e)&&!_0x1910dd['replace'](/^https?:\/\//,'')['match'](_0x176f4e)):()=>!0x1;}function M(_0xa3e70,_0x53eb52){return _0x2671c2(_0xa3e70['target'])['includes'](_0x53eb52);}class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5c139c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x16c571,_0x1c4157,_0xb46fb0){super(),this['_editor']=_0x16c571,this['_editing']=_0x1c4157,this['_dialog']=_0x16c571['plugins']['get'](_0x2ea214),this['_api']=_0x1c4157['ctxElement']['getAPI'](),this['_type']=_0xb46fb0,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:_0x32d3ac,model:_0xb14a46}=this['_editor'],_0x2fb3e7=_0xb14a46['document']['selection']['getSelectedElement'](),_0x46bfa8=_0x2fb3e7&&(_0x2fb3e7['is']('element','imageBlock')||_0x2fb3e7['is']('element','imageInline'));this['_formView']=new UploadcareFormView(_0x32d3ac,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x319284,'title':T(_0x32d3ac,this['_type'],_0x46bfa8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x14e2d7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a5139=>!M(_0x1a5139,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x36c39b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x155c48=>{const _0x45241e=_0x36c39b['length'];for(const _0x53f361 of _0x36c39b){const _0x208b1c=_0x53f361===_0x36c39b[_0x45241e-0x1],{cdnUrl:_0x52f06e,fileInfo:_0x3c1bf2}=_0x53f361;if(!_0x52f06e||!_0x3c1bf2)continue;const {width:_0xdd8f1f,height:_0x341f17}=_0x3c1bf2['imageInfo'],_0x215dc3=O(_0x52f06e,_0xdd8f1f,_0x341f17),_0x30e63c=K(_0x52f06e,_0x215dc3['width']),_0x3c892d={'id':_0x3c1bf2['uuid'],'type':'image','attributes':{'imageDimension':_0x215dc3,..._0x30e63c}};this['_insertAsset'](_0x3c892d,_0x208b1c,_0x155c48);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x110669=>{'idle'===_0x110669['detail']['status']&&!_0x110669['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x53d186,_0x4d68fe,_0x2c8ee3){const _0x367ca4=this['_editor']['model']['document']['selection'],_0x341f83=_0x367ca4['getSelectedElement'](),_0x56151f=!(!_0x341f83||!_0x341f83['is']('element','imageInline'));_0x2c8ee3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x53d186,_0x56151f),_0x4d68fe||_0x2c8ee3['setSelection'](_0x367ca4['getLastPosition']());}['_insertImage'](_0x2f86a6,_0xcbbdd4){const _0x1ff028=this['_editor'],{imageDimension:_0x371843,imageFallbackUrl:_0x16feff,imageSources:_0x50685f}=_0x2f86a6['attributes'];_0x1ff028['execute']('insertImage',{'imageType':_0xcbbdd4?'imageInline':null,'source':{'uploadcareImageId':_0x2f86a6['id'],'src':_0x16feff,'sources':_0x50685f,..._0x371843}});}}class UploadcareCommand extends _0x39f225{['_editing'];['_controller']=null;static get['requires'](){return[_0x2ea214,UploadcareEditing];}constructor(_0x2adab2){super(_0x2adab2),this['_editing']=_0x2adab2['plugins']['get'](UploadcareEditing);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x259837){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new UploadcareController(this['editor'],this['_editing'],_0x259837);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class UploadUtils{static['upload']({file:_0x138f05,..._0x146bd1}){return _0x5cf747(_0x138f05,_0x146bd1);}static['getInfo'](_0x5b1b30,_0x13c988){return _0x1c6c05(_0x5b1b30,_0x13c988);}}class UploadcareUploadAdapter extends _0x1c593a{static get['requires'](){return[_0x42940b,_0x35ea5c,_0x24b660,UploadcareEditing];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x7d39fb=this['editor'];if(!!!_0x7d39fb['config']['get']('uploadcare'))return;_0x7d39fb['plugins']['get'](_0x24b660)['createUploadAdapter']=_0x582f51=>new Adapter(_0x582f51,_0x7d39fb),_0x7d39fb['plugins']['get'](_0x42940b)['on']('uploadComplete',(_0x4b8d00,{imageElement:_0x4ccc36,data:_0x271b5d})=>{_0x7d39fb['model']['change'](_0x1ae1e3=>{_0x1ae1e3['setAttribute']('uploadcareImageId',_0x271b5d['uploadcareImageId'],_0x4ccc36);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x3b3b14,_0x11d81c){this['loader']=_0x3b3b14,this['editor']=_0x11d81c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4fe179=await this['loader']['file'];return UploadUtils['upload']({'file':_0x4fe179,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x388cd5=>{_0x388cd5&&_0x388cd5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x388cd5['value']);}})['then'](async _0x134ec0=>{const {imageFallbackUrl:_0x4f2484,imageSources:_0x38735c}=K(_0x134ec0['cdnUrl'],_0x134ec0['imageInfo']['width']);return{'uploadcareImageId':_0x134ec0['uuid'],'default':_0x4f2484,'sources':_0x38735c};})['catch'](()=>{const _0x48b65c=t('Cannot\x20upload\x20file:')+('\x20'+_0x4fe179['name']+'.');return Promise['reject'](_0x48b65c);});}['abort'](){this['controller']['abort']();}}class UploadcareEditing extends _0x1c593a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x180a7c,UploadcareUploadAdapter,_0x2ea214];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x317185){super(_0x317185),this['ucContextId']=_0x1679f8();}['init'](){const _0xa674d0=this['editor'];_0xa674d0['commands']['add']('uploadcare',new UploadcareCommand(_0xa674d0));}['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 _0x1c9670=_0x5588b0['document']['querySelector']('input[uploadcare-file-input]');_0x1c9670&&_0x1c9670['remove']();}),async function(_0x1310ee){const _0x1dae4d=_0x132cee([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4d7422=0x535f8c3a,_0x22e0db=0x535806ba^_0x4d7422,_0x5d5568=window[_0x132cee([0x44,0x61,0x74,0x65])][_0x132cee([0x6e,0x6f,0x77])](),_0x347761=_0x1310ee[_0x132cee([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x13a30f=new window[(_0x132cee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b8e6b=>{_0x347761[_0x132cee([0x6f,0x6e,0x63,0x65])](_0x132cee([0x72,0x65,0x61,0x64,0x79]),_0x5b8e6b);}),_0xb4d50e={[_0x132cee([0x6b,0x74,0x79])]:_0x132cee([0x45,0x43]),[_0x132cee([0x75,0x73,0x65])]:_0x132cee([0x73,0x69,0x67]),[_0x132cee([0x63,0x72,0x76])]:_0x132cee([0x50,0x2d,0x32,0x35,0x36]),[_0x132cee([0x78])]:_0x132cee([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]),[_0x132cee([0x79])]:_0x132cee([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]),[_0x132cee([0x61,0x6c,0x67])]:_0x132cee([0x45,0x53,0x32,0x35,0x36])},_0x479b46=_0x347761[_0x132cee([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x132cee([0x67,0x65,0x74])](_0x132cee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b5323(){let _0x47fe08,_0x5e9205=null,_0x30d0de=null;try{if(_0x479b46==_0x132cee([0x47,0x50,0x4c]))return _0x132cee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47fe08=_0x1ddd2f(),!_0x47fe08)return _0x132cee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47fe08[_0x132cee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x30d0de=_0x102e27(_0x47fe08[_0x132cee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47fe08[_0x132cee([0x6a,0x74,0x69])])),await _0x3a231f()?_0x2a939d()?_0x385bce()?_0x132cee([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x436a58()?(_0x47fe08[_0x132cee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x132cee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e9205=_0x4819f9(_0x132cee([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4af1af()):_0x132cee([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x132cee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x132cee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x132cee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x385bce(){const _0x484650=[_0x132cee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x132cee([0x74,0x72,0x69,0x61,0x6c])][_0x132cee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47fe08[_0x132cee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d5568/0x3e8:0xe10*_0x22e0db;return _0x47fe08[_0x132cee([0x65,0x78,0x70])]<_0x484650;}function _0x2a939d(){const _0x18b2a5=_0x47fe08[_0x132cee([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x18b2a5&&(!!_0x18b2a5[_0x132cee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x132cee([0x2a]))||!!_0x18b2a5[_0x132cee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x132cee([0x55,0x50,0x4c,0x43])));}function _0x436a58(){const _0x5b000c=_0x47fe08[_0x132cee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b000c||0x0==_0x5b000c[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59992c}=new URL(window[_0x132cee([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b000c[_0x132cee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59992c))return!0x0;const _0x2ea259=_0x59992c[_0x132cee([0x73,0x70,0x6c,0x69,0x74])](_0x132cee([0x2e]));return _0x5b000c[_0x132cee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14f60e=>_0x14f60e[_0x132cee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x132cee([0x2a])))[_0x132cee([0x6d,0x61,0x70])](_0x38f39f=>_0x38f39f[_0x132cee([0x73,0x70,0x6c,0x69,0x74])](_0x132cee([0x2e])))[_0x132cee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32dea1=>_0x32dea1[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ea259[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x132cee([0x6d,0x61,0x70])](_0x4d82b2=>Array(_0x2ea259[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4d82b2[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x132cee([0x66,0x69,0x6c,0x6c])](_0x4d82b2[0x0]===_0x132cee([0x2a])?_0x132cee([0x2a]):'')[_0x132cee([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4d82b2))[_0x132cee([0x73,0x6f,0x6d,0x65])](_0x2adf74=>_0x2ea259[_0x132cee([0x65,0x76,0x65,0x72,0x79])]((_0x80569e,_0x2a709a)=>_0x2adf74[_0x2a709a]===_0x80569e||_0x2adf74[_0x2a709a]===_0x132cee([0x2a])));}function _0x4af1af(){return _0x5e9205&&_0x30d0de?new window[(_0x132cee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x562e4f,_0x587bc2)=>{_0x5e9205[_0x132cee([0x74,0x68,0x65,0x6e])](_0x562e4f,_0x587bc2),_0x30d0de[_0x132cee([0x74,0x68,0x65,0x6e])](_0x1f7a61=>{_0x1f7a61!=_0x132cee([0x56,0x61,0x6c,0x69,0x64])&&_0x562e4f(_0x1f7a61);},_0x587bc2);}):_0x5e9205||_0x30d0de||_0x132cee([0x56,0x61,0x6c,0x69,0x64]);}}function _0x102e27(_0x366323,_0x42a8d7){return new window[(_0x132cee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e76bb=>{if(_0x21cbb1())return _0x5e76bb(_0x132cee([0x56,0x61,0x6c,0x69,0x64]));_0x2c33fb(),_0x347761[_0x132cee([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x132cee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x504440=!0x1;const _0x2f0be7=_0x1679f8();function _0xbe4f78(_0x231175){return!!_0x231175&&(typeof _0x231175===_0x132cee([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x231175===_0x132cee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x231175[_0x132cee([0x74,0x68,0x65,0x6e])]===_0x132cee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x231175[_0x132cee([0x63,0x61,0x74,0x63,0x68])]===_0x132cee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bbe3f(_0x4a220a){_0x16aa68(_0x4a220a)[_0x132cee([0x74,0x68,0x65,0x6e])](_0x31740e=>{if(!_0x31740e||_0x31740e[_0x132cee([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x132cee([0x6f,0x6b]))return _0x132cee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40ab68(_0x37c8c(_0x2f0be7+_0x42a8d7))!=_0x31740e[_0x132cee([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x132cee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x132cee([0x56,0x61,0x6c,0x69,0x64]);})[_0x132cee([0x74,0x68,0x65,0x6e])](_0x1a4bf2=>(_0x35ef80(),_0x1a4bf2),()=>{const _0x5a3b95=_0x52c5ec();return null==_0x5a3b95?(_0x35ef80(),_0x132cee([0x56,0x61,0x6c,0x69,0x64])):_0x132cee(_0x5d5568-_0x5a3b95>(0x7753083a^_0x4d7422)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x132cee([0x74,0x68,0x65,0x6e])](_0x5e76bb)[_0x132cee([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e76bb(_0x132cee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x414c62=0x536962ba^_0x4d7422;function _0x35ef80(){const _0x38b3e2=_0x132cee([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ab68(_0x37c8c(_0x366323)),_0x2617ba=_0x58011c(_0x40ab68(window[_0x132cee([0x4d,0x61,0x74,0x68])][_0x132cee([0x63,0x65,0x69,0x6c])](_0x5d5568/_0x414c62)));window[_0x132cee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x132cee([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38b3e2,_0x2617ba);}function _0x52c5ec(){const _0x53ef80=_0x132cee([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ab68(_0x37c8c(_0x366323)),_0x6e4de8=window[_0x132cee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x132cee([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53ef80);return _0x6e4de8?window[_0x132cee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58011c(_0x6e4de8),0x10)*_0x414c62:null;}function _0x16aa68(_0x586027){return new window[(_0x132cee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x284bb2,_0x29bf89)=>{_0x586027[_0x132cee([0x74,0x68,0x65,0x6e])](_0x284bb2,_0x29bf89),window[_0x132cee([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29bf89,0x535e58fa^_0x4d7422);});}}_0x347761[_0x132cee([0x6f,0x6e])](_0x132cee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc23fdb,_0x1c4096)=>{if(_0x1c4096[0x0]!=_0x366323)return _0x5e76bb(_0x132cee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c4096[0x1]={..._0x1c4096[0x1],[_0x132cee([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f0be7};},{[_0x132cee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x132cee([0x68,0x69,0x67,0x68])}),_0x347761[_0x132cee([0x6f,0x6e])](_0x132cee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4787c3=>{_0xbe4f78(_0x4787c3[_0x132cee([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x504440=!0x0,_0x3bbe3f(_0x4787c3[_0x132cee([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x132cee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x132cee([0x6c,0x6f,0x77])}),_0x13a30f[_0x132cee([0x74,0x68,0x65,0x6e])](()=>{_0x504440||_0x5e76bb(_0x132cee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21cbb1(){return _0x347761[_0x132cee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x132cee([0x76,0x69,0x65,0x77])][_0x132cee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x132cee([0x61,0x75,0x74,0x6f]);}function _0x2c33fb(){_0x347761[_0x132cee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x132cee([0x76,0x69,0x65,0x77])][_0x132cee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x132cee([0x61,0x75,0x74,0x6f]);}}function _0x4819f9(_0xef438c){const _0x2dc8f8=[new window[(_0x132cee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x451486=>setTimeout(_0x451486,0x5356b2f6^_0x4d7422)),_0x13a30f[_0x132cee([0x74,0x68,0x65,0x6e])](()=>new window[(_0x132cee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12903b=>{let _0x55c00d=0x0;_0x347761[_0x132cee([0x6d,0x6f,0x64,0x65,0x6c])][_0x132cee([0x6f,0x6e])](_0x132cee([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf99d15,_0x4b25a8)=>{_0x4b25a8[0x0][_0x132cee([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55c00d++,_0x55c00d==(0x535f89d2^_0x4d7422)&&(_0x12903b(),_0xf99d15[_0x132cee([0x6f,0x66,0x66])]());});}))];return window[_0x132cee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x132cee([0x72,0x61,0x63,0x65])](_0x2dc8f8)[_0x132cee([0x74,0x68,0x65,0x6e])](()=>_0xef438c);}async function _0x1445c8(){await _0x13a30f,_0x347761[_0x132cee([0x6d,0x6f,0x64,0x65,0x6c])][_0x132cee([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a892f,_0x347761[_0x132cee([0x6d,0x6f,0x64,0x65,0x6c])][_0x132cee([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a892f,_0x347761[_0x132cee([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x132cee([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x328aba(_0x54ad62){const _0x142411=_0x162eb4();_0x347761[_0x142411]=_0x132cee([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54ad62,_0x54ad62!=_0x132cee([0x56,0x61,0x6c,0x69,0x64])&&_0x1445c8();}function _0x162eb4(){const _0x57edcf=window[_0x132cee([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x132cee([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x132cee([0x6e,0x6f,0x77])]())[_0x132cee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x132cee([0x2e]),'');let _0x79e636=_0x132cee([0x68]);for(let _0x4a309e=0x0;_0x4a309e<_0x57edcf[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a309e+=0x2){let _0x52648c=window[_0x132cee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57edcf[_0x132cee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a309e,_0x4a309e+0x2));_0x52648c>=_0x1dae4d[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52648c-=_0x1dae4d[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x79e636+=_0x1dae4d[_0x52648c];}return _0x79e636;}function _0x1ddd2f(){const _0x37dedc=_0x479b46[_0x132cee([0x73,0x70,0x6c,0x69,0x74])](_0x132cee([0x2e]));if(0x3!=_0x37dedc[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd40c1d(_0x37dedc[0x1]);function _0xd40c1d(_0x30b56f){const _0x1d7327=_0x556c7f(_0x30b56f);return _0x1d7327&&_0x2b9d68()?_0x1d7327:null;function _0x2b9d68(){const _0x1899c2=_0x1d7327[_0x132cee([0x6a,0x74,0x69])],_0xa5524=window[_0x132cee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1899c2[_0x132cee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1899c2[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e4684={..._0x1d7327,[_0x132cee([0x6a,0x74,0x69])]:_0x1899c2[_0x132cee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1899c2[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e4684[_0x132cee([0x76,0x63])],_0x37c8c(_0x3e4684)==_0xa5524;}}}async function _0x3a231f(){let _0xa1d4e2=!0x0;try{const _0x45a27f=_0x479b46[_0x132cee([0x73,0x70,0x6c,0x69,0x74])](_0x132cee([0x2e])),[_0x25f211,_0x5b0d52,_0x1afe20]=_0x45a27f;return _0x1c890a(_0x25f211),await _0x1a9ba4(_0x25f211,_0x5b0d52,_0x1afe20),_0xa1d4e2;}catch{return!0x1;}function _0x1c890a(_0x4fad5d){const _0x44cee6=_0x556c7f(_0x4fad5d);_0x44cee6&&_0x44cee6[_0x132cee([0x61,0x6c,0x67])]==_0x132cee([0x45,0x53,0x32,0x35,0x36])||(_0xa1d4e2=!0x1);}async function _0x1a9ba4(_0x15dacc,_0x4cfbb6,_0x4ca4c1){const _0x22b404=window[_0x132cee([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x132cee([0x66,0x72,0x6f,0x6d])](_0xc34575(_0x4ca4c1),_0xd31944=>_0xd31944[_0x132cee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x350c63=new window[(_0x132cee([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x132cee([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15dacc+_0x132cee([0x2e])+_0x4cfbb6),_0x160927=window[_0x132cee([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x132cee([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x160927)return;const _0x35cb8d=await _0x160927[_0x132cee([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x132cee([0x6a,0x77,0x6b]),_0xb4d50e,{[_0x132cee([0x6e,0x61,0x6d,0x65])]:_0x132cee([0x45,0x43,0x44,0x53,0x41]),[_0x132cee([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x132cee([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x132cee([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x160927[_0x132cee([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x132cee([0x6e,0x61,0x6d,0x65])]:_0x132cee([0x45,0x43,0x44,0x53,0x41]),[_0x132cee([0x68,0x61,0x73,0x68])]:{[_0x132cee([0x6e,0x61,0x6d,0x65])]:_0x132cee([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35cb8d,_0x22b404,_0x350c63)||(_0xa1d4e2=!0x1);}}function _0x556c7f(_0x4177ee){return _0x4177ee[_0x132cee([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x132cee([0x65,0x79]))?JSON[_0x132cee([0x70,0x61,0x72,0x73,0x65])](_0xc34575(_0x4177ee)):null;}function _0xc34575(_0x404980){return window[_0x132cee([0x61,0x74,0x6f,0x62])](_0x404980[_0x132cee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x132cee([0x2b]))[_0x132cee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x132cee([0x2f])));}function _0x37c8c(_0x287446){let _0x367602=0x1505;function _0x533e56(_0x8380dc){for(let _0x3574ac=0x0;_0x3574ac<_0x8380dc[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3574ac++){const _0x32c035=_0x8380dc[_0x132cee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3574ac);_0x367602=(_0x367602<<0x5)+_0x367602+_0x32c035,_0x367602&=_0x367602;}}function _0x36d503(_0x43013a){Array[_0x132cee([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43013a)?_0x43013a[_0x132cee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36d503):_0x43013a&&typeof _0x43013a==_0x132cee([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x132cee([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43013a)[_0x132cee([0x73,0x6f,0x72,0x74])]()[_0x132cee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a85b1,_0x491b15])=>{_0x533e56(_0x4a85b1),_0x36d503(_0x491b15);}):_0x533e56(window[_0x132cee([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43013a));}return _0x36d503(_0x287446),_0x367602>>>0x0;}function _0x40ab68(_0x5f4413){return _0x5f4413[_0x132cee([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x132cee([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x132cee([0x30]));}function _0x58011c(_0x2f5bcd){return _0x2f5bcd[_0x132cee([0x73,0x70,0x6c,0x69,0x74])]('')[_0x132cee([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x132cee([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a892f(){}function _0x132cee(_0x264bea){return _0x264bea['map'](_0xf833c5=>String['fromCharCode'](_0xf833c5))['join']('');}_0x328aba(await _0x3b5323());}(this);}['_initSchema'](){const _0x47a6ad=this['editor']['model']['schema'];_0x47a6ad['isRegistered']('imageBlock')&&_0x47a6ad['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x47a6ad['isRegistered']('imageInline')&&_0x47a6ad['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x360956=this['editor'];_0x360956['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x360956['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3e8f7f=>_0x3e8f7f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4ce167=_0x360956['commands']['get']('replaceImageSource');_0x4ce167&&this['listenTo'](_0x4ce167,'cleanupImage',(_0x3672b7,[_0x32dd7d,_0x2d741e])=>{_0x32dd7d['removeAttribute']('uploadcareImageId',_0x2d741e);});}['_initConfig'](){const _0x15a7ea=this['editor']['config']['get']('uploadcare.uploader')||{},_0x326f0f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x364fee(_0x5588b0['document'],'uc-config',{..._0x15a7ea,'pubkey':_0x326f0f,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x4b38ed=>{if('closeMax'==_0x4b38ed)return'#uc-icon-arrow-down';},_0x5588b0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x364fee(_0x5588b0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5588b0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1f65e7=this['editor']['commands']['get']('insertImage');_0x1f65e7&&this['listenTo'](_0x1f65e7,'execute',()=>{const _0x3e3139=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3e3139&&_0x3e3139['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x3e3139);});});const _0x5e30ac=this['editor']['commands']['get']('uploadcareImageReplace');_0x5e30ac&&this['listenTo'](_0x5e30ac,'execute',()=>{const _0x2bceab=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2bceab&&_0x2bceab['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x2bceab);});});}}class Uploadcare extends _0x1c593a{static get['requires'](){return[UploadcareEditing,UploadcareUI];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ea21e){super(_0x4ea21e),_0x4ea21e['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x40c078['defineComponents'](_0x40c078),this['_defineLocale']();}['_defineLocale'](){const _0x57d30f=this['editor']['config']['get']('uploadcare.locale'),_0x3e9aca=this['editor']['locale']['contentLanguage'];_0x57d30f&&_0x40c078['defineLocale'](_0x3e9aca,_0x57d30f);}}class UploadcareImageEditFormLoadingView extends _0x1bcdb1{constructor(_0x5c6991){super(_0x5c6991);const t=_0x5c6991['t'],_0x29c6a5=this['bindTemplate'],_0x5e53ee=new _0x21c0e9();_0x5e53ee['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':[_0x5e53ee,{'text':_0x29c6a5['to']('imageUploadProgress',_0x42e069=>t('Loading\x20image...')+'\x20('+(_0x42e069||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 UploadcareImageEditFormErrorView extends _0x1bcdb1{constructor(_0x31c99e){super(_0x31c99e);const t=_0x31c99e['t'];this['set']('errorType',null);const _0x2b6721=new _0x4b83db(_0x31c99e);_0x2b6721['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2b6721['withText']=!0x0,_0x2b6721['class']='ck-button-action',_0x2b6721['on']('execute',()=>{this['fire']('retry');}),_0x2b6721['bind']('isVisible')['to'](this,'errorType',_0x12da37=>'NotFound'!==_0x12da37);const _0x237b56=new _0x5d97e3();_0x237b56['content']=_0x66838c,_0x237b56['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5d7982=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':[_0x237b56,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5d7982['to']('errorType',_0x4aede7=>t('NotFound'!==_0x4aede7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2b6721]},{'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 UploadcareImageEditFormEditingView extends _0x1bcdb1{constructor(_0x1e50b5,_0x48ae36){super(_0x1e50b5);const _0x330467=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x48ae36,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x330467['to']('imageSrc')}});}}class UploadcareImageEditFormView extends DialogFocusManagerView{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x11b060,_0x1b2085,_0x532971){super(_0x11b060),this['_items']=this['createCollection'](),this['_loadingView']=new UploadcareImageEditFormLoadingView(_0x11b060),this['_errorView']=new UploadcareImageEditFormErrorView(_0x11b060),this['_editingView']=new UploadcareImageEditFormEditingView(_0x11b060,_0x532971),this['_focusableView']=new _0x1bcdb1(_0x11b060),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1b2085),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'],_0x6a95da=>{this['_addUploadcareImageEditorListeners'](_0x6a95da);});}),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'](_0x2d5717,_0x9d0302){const _0x4a757e='uc-cloud-image-editor',_0x361f70=_0x2d5717['querySelector'](_0x4a757e);if(_0x361f70)return _0x9d0302(_0x361f70);const _0x5c7425=new MutationObserver(_0x58d5ff=>{const _0x426398=_0x58d5ff['filter'](_0x3cc48d=>_0x3cc48d['target']===_0x2d5717&&_0x3cc48d['addedNodes']['length']>0x0&&_0x3cc48d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4a757e);_0x426398['length']&&(_0x5c7425['disconnect'](),_0x9d0302(_0x426398[0x0]['addedNodes'][0x0]));});_0x5c7425['observe'](_0x2d5717,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x532342){_0x532342['addEventListener']('apply',_0x65f182=>{this['fire']('apply',{'imageSrc':_0x65f182['detail']['cdnUrl']});}),_0x532342['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5c139c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5ccd96,_0x3fc9cf,_0x453c14){super(),this['_editor']=_0x5ccd96,this['_dialog']=_0x3fc9cf,this['_imageElement']=_0x453c14,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 _0x40184b=this['_imageElement'],_0x2ae28f=_0x40184b['getAttribute']('uploadcareImageId'),_0x193737=_0x40184b['getAttribute']('src');if(_0x2ae28f)await this['_loadImageInfo'](_0x2ae28f,_0x193737);else{if(this['_imageCache']['has'](_0x193737)){const _0x30d831=this['_imageCache']['get'](_0x193737);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x30d831['url'],this['imageDimension']=_0x30d831['dimension'],this['imageId']=_0x30d831['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5a770a}=this['_editor'],t=_0x5a770a['t'],_0x117934=new UploadcareImageEditFormView(_0x5a770a,this['imageStatus'],this['_attributes']);_0x117934['bind']('status')['to'](this,'imageStatus'),_0x117934['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x117934['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x117934['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x117934,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x26f97b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x117934,'position':_0x14e2d7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x117934['focus']();},'onHide':()=>{_0x117934['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x52e5ee=>!M(_0x52e5ee,_0x117934['element'])}});}['_loadImageInfo'](_0x5e7d78,_0x1bbd91){return UploadUtils['getInfo'](_0x5e7d78,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2688c6=>{const {width:_0x512d34,height:_0x55a2ec}=_0x2688c6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1bbd91,this['imageDimension']={'width':_0x512d34,'height':_0x55a2ec},this['imageId']=_0x5e7d78;})['catch'](_0x1121cf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1121cf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xa7b891,_0x2e0259){return this['_getImageAsFile'](_0xa7b891)['then'](_0x418d07=>UploadUtils['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2e0259['signal'],'file':_0x418d07,'onProgress':_0x7a2614=>{_0x7a2614&&_0x7a2614['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x7a2614['value']));}}))['then'](_0x6c4c2e=>{const {width:_0x6e7b2a,height:_0x44683e}=_0x6c4c2e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x6c4c2e['cdnUrl'],this['imageDimension']={'width':_0x6e7b2a,'height':_0x44683e},this['imageId']=_0x6c4c2e['uuid'],this['imageUploadProgress']=null;const _0x1bd91a=_0xa7b891['getAttribute']('src');this['_imageCache']['set'](_0x1bd91a,{'id':_0x6c4c2e['uuid'],'url':_0x6c4c2e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x59b914=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x59b914['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1d969a,_0xcc956a){_0x1d969a['on']('apply',(_0x534c82,_0x3411f8)=>{this['_replaceImage'](_0xcc956a,_0x3411f8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1d969a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1d969a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x346fc8,_0x119566,_0x5a260c){const _0x5f20ab=this['_editor'],{width:_0x4f0dfb,height:_0x5924b6}=O(_0x119566,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2c67fd,imageSources:_0x6b92f0}=K(_0x119566,_0x4f0dfb);_0x5f20ab['model']['change'](_0x32cf89=>{if('$graveyard'===_0x346fc8['root']['rootName']){_0x5f20ab['execute']('insertImage',{'imageType':_0x346fc8['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x346fc8['getAttributes']()),'uploadcareImageId':_0x5a260c,'src':_0x2c67fd,'sources':_0x6b92f0,'width':_0x4f0dfb,'height':_0x5924b6}});const _0x403bca=_0x346fc8['getChildren']();_0x346fc8=_0x5f20ab['model']['document']['selection']['getSelectedElement']();for(const _0x51538 of _0x403bca)_0x32cf89['append'](_0x32cf89['cloneElement'](_0x51538),_0x346fc8);}else _0x32cf89['setSelection'](_0x346fc8,'on'),_0x5f20ab['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x346fc8['getAttributes']()),'uploadcareImageId':_0x5a260c,'src':_0x2c67fd,'sources':_0x6b92f0,'width':_0x4f0dfb,'height':_0x5924b6},_0x346fc8);_0x32cf89['setSelection'](_0x346fc8,'on');});}async['_getImageAsFile'](_0x1f4c62){const _0x461f97=_0x5588b0['window'],_0xdbccf9=_0x5588b0['document']['location']['href'],_0x3c1052=new _0x461f97['URL'](_0x1f4c62['getAttribute']('src'),_0xdbccf9);if('data:'===_0x3c1052['protocol']){const _0x46c6ee=_0x3c1052['href']['split'](','),_0x5882fc=_0x46c6ee[0x0]['match'](/:(.*?);/)[0x1],_0x4038be=_0x5882fc['split']('/')[0x1],_0x3d9024=_0x461f97['atob'](_0x46c6ee[_0x46c6ee['length']-0x1]);let _0x1f589a=_0x3d9024['length'];const _0x2d9c50=new _0x461f97['Uint8Array'](_0x1f589a);for(;_0x1f589a--;)_0x2d9c50[_0x1f589a]=_0x3d9024['charCodeAt'](_0x1f589a);return new _0x461f97['File']([_0x2d9c50],'image.'+_0x4038be,{'type':_0x5882fc});}const _0x36e0aa=_0x3c1052['href']['split']('/'),_0xc597b9=_0x36e0aa[_0x36e0aa['length']-0x1],_0x1942e0=_0xc597b9['split']('.')[0x1];return _0x461f97['fetch'](_0x3c1052['href'])['then'](_0x256b8c=>_0x256b8c['clone']()['blob']())['then'](_0x275c04=>new _0x461f97['File']([_0x275c04],_0xc597b9,{'type':'image/'+_0x1942e0}));}}class UploadcareImageEditCommand extends _0x39f225{['imageEditController'];static get['requires'](){return[_0x2ea214];}['_isEditable'];constructor(_0x4dac4b){super(_0x4dac4b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1a8bcd){const _0x28cf43=B(_0x1a8bcd);return _0x5cf434=>!(!_0x5cf434||!_0x5cf434['is']('element','imageBlock')&&!_0x5cf434['is']('element','imageInline'))&&(!!_0x5cf434['hasAttribute']('uploadcareImageId')||!!_0x5cf434['hasAttribute']('src')&&_0x28cf43(_0x5cf434['getAttribute']('src')));}(_0x4dac4b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x406c62=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x406c62);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x25ead7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25ead7&&(_0x25ead7['is']('element','imageBlock')||_0x25ead7['is']('element','imageInline'))&&(this['imageEditController']=new UploadcareImageEditController(this['editor'],this['editor']['plugins']['get'](_0x2ea214),_0x25ead7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class UploadcareImageReplaceCommand extends _0x39f225{['refresh'](){const _0x4ec4c4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4ec4c4&&(_0x4ec4c4['is']('element','imageBlock')||_0x4ec4c4['is']('element','imageInline')));}['execute'](_0x50bd99){const _0xe52b10=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x364b1b=>{_0x364b1b['setAttributes'](_0x50bd99,_0xe52b10),_0x364b1b['removeAttribute']('srcset',_0xe52b10),_0x364b1b['removeAttribute']('sizes',_0xe52b10);});}}class UploadcareImageEditEditing extends _0x1c593a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[UploadcareEditing,_0x159104,_0x379ed5,_0x54db9e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2d10b2}=this;_0x2d10b2['commands']['add']('uploadcareImageEdit',new UploadcareImageEditCommand(_0x2d10b2)),_0x2d10b2['commands']['add']('uploadcareImageReplace',new UploadcareImageReplaceCommand(_0x2d10b2));}}class UploadcareImageEditUI extends _0x1c593a{['_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 _0x31ff40=this['editor'];_0x31ff40['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1a6c29=>{const _0x4b0234=_0x31ff40['commands']['get']('uploadcareImageEdit'),_0x2b4bc5=new _0x4b83db(_0x1a6c29),t=_0x1a6c29['t'];return _0x2b4bc5['set']({'icon':_0x26f97b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2b4bc5['bind']('isEnabled')['to'](_0x4b0234),_0x2b4bc5['bind']('isOn')['to'](_0x4b0234,'isActive'),this['listenTo'](_0x2b4bc5,'execute',()=>{_0x31ff40['execute']('uploadcareImageEdit'),_0x31ff40['editing']['view']['focus']();}),_0x2b4bc5;}),this['_initConfig']();}['_initConfig'](){const _0x3c17c9=_0x364fee(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3c17c9),this['listenTo'](this['editor'],'destroy',()=>{_0x3c17c9['remove']();});}}class UploadcareImageEdit extends _0x1c593a{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[UploadcareImageEditEditing,UploadcareImageEditUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Uploadcare,UploadcareCommand,UploadcareEditing,UploadcareImageEdit,UploadcareImageEditCommand,UploadcareImageEditEditing,UploadcareImageEditUI,UploadcareUI,UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -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':
|
|
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':_0x2bb75d=>0x1!=_0x2bb75d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4efd84=>{const {af:{dictionary:_0x53c0c8,getPluralForm:_0xf90980}}={'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':_0x2848d1=>0x1!=_0x2848d1}};_0x4efd84['af']||={'dictionary':{},'getPluralForm':null},_0x4efd84['af']['dictionary']=Object['assign'](_0x4efd84['af']['dictionary'],_0x53c0c8),_0x4efd84['af']['getPluralForm']=_0xf90980;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -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':
|
|
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':_0x2b17d9=>0x0==_0x2b17d9?0x0:0x1==_0x2b17d9?0x1:0x2==_0x2b17d9?0x2:_0x2b17d9%0x64>=0x3&&_0x2b17d9%0x64<=0xa?0x3:_0x2b17d9%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4da650=>{const {ar:{dictionary:_0x4d9fcd,getPluralForm:_0x2e9894}}={'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':_0x19e4f4=>0x0==_0x19e4f4?0x0:0x1==_0x19e4f4?0x1:0x2==_0x19e4f4?0x2:_0x19e4f4%0x64>=0x3&&_0x19e4f4%0x64<=0xa?0x3:_0x19e4f4%0x64>=0xb?0x4:0x5}};_0x4da650['ar']||={'dictionary':{},'getPluralForm':null},_0x4da650['ar']['dictionary']=Object['assign'](_0x4da650['ar']['dictionary'],_0x4d9fcd),_0x4da650['ar']['getPluralForm']=_0x2e9894;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -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':
|
|
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':_0x4583db=>0x1!=_0x4583db}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x135380=>{const {ast:{dictionary:_0x434ba1,getPluralForm:_0x36ec4b}}={'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':_0x23373d=>0x1!=_0x23373d}};_0x135380['ast']||={'dictionary':{},'getPluralForm':null},_0x135380['ast']['dictionary']=Object['assign'](_0x135380['ast']['dictionary'],_0x434ba1),_0x135380['ast']['getPluralForm']=_0x36ec4b;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -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':
|
|
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':_0x1efbdb=>0x1!=_0x1efbdb}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2f62d6=>{const {az:{dictionary:_0x4a87b2,getPluralForm:_0x25dc44}}={'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':_0x149b73=>0x1!=_0x149b73}};_0x2f62d6['az']||={'dictionary':{},'getPluralForm':null},_0x2f62d6['az']['dictionary']=Object['assign'](_0x2f62d6['az']['dictionary'],_0x4a87b2),_0x2f62d6['az']['getPluralForm']=_0x25dc44;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
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':
|
|
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':_0x4e1c96=>_0x4e1c96%0xa==0x1&&_0x4e1c96%0x64!=0xb?0x0:_0x4e1c96%0xa>=0x2&&_0x4e1c96%0xa<=0x4&&(_0x4e1c96%0x64<0xa||_0x4e1c96%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x11d4e6=>{const {be:{dictionary:_0xc645ab,getPluralForm:_0x3d5029}}={'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':_0x3fdd99=>_0x3fdd99%0xa==0x1&&_0x3fdd99%0x64!=0xb?0x0:_0x3fdd99%0xa>=0x2&&_0x3fdd99%0xa<=0x4&&(_0x3fdd99%0x64<0xa||_0x3fdd99%0x64>=0x14)?0x1:0x2}};_0x11d4e6['be']||={'dictionary':{},'getPluralForm':null},_0x11d4e6['be']['dictionary']=Object['assign'](_0x11d4e6['be']['dictionary'],_0xc645ab),_0x11d4e6['be']['getPluralForm']=_0x3d5029;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -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':
|
|
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':_0x38f3f2=>0x1!=_0x38f3f2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x59a71c=>{const {bg:{dictionary:_0x16bf35,getPluralForm:_0x2abd1a}}={'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':_0x48133e=>0x1!=_0x48133e}};_0x59a71c['bg']||={'dictionary':{},'getPluralForm':null},_0x59a71c['bg']['dictionary']=Object['assign'](_0x59a71c['bg']['dictionary'],_0x16bf35),_0x59a71c['bg']['getPluralForm']=_0x2abd1a;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -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':
|
|
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':_0x3e7453=>0x1!=_0x3e7453}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5b7c5b=>{const {bn:{dictionary:_0x3b6454,getPluralForm:_0x30b8fc}}={'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':_0x3107b9=>0x1!=_0x3107b9}};_0x5b7c5b['bn']||={'dictionary':{},'getPluralForm':null},_0x5b7c5b['bn']['dictionary']=Object['assign'](_0x5b7c5b['bn']['dictionary'],_0x3b6454),_0x5b7c5b['bn']['getPluralForm']=_0x30b8fc;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bs.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bs':{'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':
|
|
23
|
+
export default{'bs':{'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':_0x5c0188=>_0x5c0188%0xa==0x1&&_0x5c0188%0x64!=0xb?0x0:_0x5c0188%0xa>=0x2&&_0x5c0188%0xa<=0x4&&(_0x5c0188%0x64<0xa||_0x5c0188%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a24c4=>{const {bs:{dictionary:_0x3854d4,getPluralForm:_0x43c6cf}}={'bs':{'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':_0x1b0874=>_0x1b0874%0xa==0x1&&_0x1b0874%0x64!=0xb?0x0:_0x1b0874%0xa>=0x2&&_0x1b0874%0xa<=0x4&&(_0x1b0874%0x64<0xa||_0x1b0874%0x64>=0x14)?0x1:0x2}};_0x4a24c4['bs']||={'dictionary':{},'getPluralForm':null},_0x4a24c4['bs']['dictionary']=Object['assign'](_0x4a24c4['bs']['dictionary'],_0x3854d4),_0x4a24c4['bs']['getPluralForm']=_0x43c6cf;})(window['CKEDITOR_TRANSLATIONS']||={});
|