@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251210.0 → 0.0.0-nightly-next-20251211.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- 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 +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x496d66,Command as _0x49bbc0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xb8d94e,IconGooglePhotos as _0x1e6ef5,IconGoogleDrive as _0x26a3b7,IconFacebook as _0x53fa87,IconDropbox as _0x166c68,IconUploadcareLink as _0x3201d7,IconUploadcareImageUpload as _0x7e39e0,IconError as _0x20e545,IconUploadcareImageEdit as _0x3db1e7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5b6d1b,MenuBarMenuListItemButtonView as _0x5282c4,View as _0x136462,FocusCycler as _0x372140,Dialog as _0x574d96,DialogViewPosition as _0x35c226,SpinnerView as _0xb51fca,IconView as _0x892fb9,Notification as _0x40a795}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1fa7f2,DomEmitterMixin as _0x5759e2,global as _0x7007fb,getAncestors as _0x34b239,ObservableMixin as _0x3c7c96,uid as _0x3f73f2,createElement as _0x2c3410}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x26ee08}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x57f6ce,info as _0x2961de}from'@uploadcare/upload-client';import*as _0x316cec from'@uploadcare/file-uploader';var i=function(_0x16d326){return _0x16d326['Local']='local',_0x16d326['URL']='url',_0x16d326['Dropbox']='dropbox',_0x16d326['GDrive']='gdrive',_0x16d326['Facebook']='facebook',_0x16d326['GPhotos']='gphotos',_0x16d326['OneDrive']='onedrive',_0x16d326;}({});function _(_0x1b04a9,_0x5dec86,_0x3b41c5){const t=_0x1b04a9['t'],_0x131d9b=_0x1b04a9['t'];switch(_0x5dec86){case i['Local']:return{'text':_0x131d9b('Insert'===_0x3b41c5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x131d9b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3b41c5?_0x131d9b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x131d9b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5dec86;}}class e extends _0x496d66{['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 _0x5962a3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d4ebe;for(const _0x1b81e3 in _0x5962a3){const _0x5bb87e=_0x1b81e3,_0x37ece7=_0x5962a3[_0x5bb87e];if('uploadcareLicenseKeyValid'==_0x37ece7||'uploadcareLicenseKeyInvalid'==_0x37ece7||'uploadcareLicenseKeyExpired'==_0x37ece7||'uploadcareLicenseKeyDomainLimit'==_0x37ece7||'uploadcareLicenseKeyNotAllowed'==_0x37ece7||'uploadcareLicenseKeyEvaluationLimit'==_0x37ece7||'uploadcareLicenseKeyTrialLimit'==_0x37ece7||'uploadcareLicenseKeyUsageLimit'==_0x37ece7){delete _0x5962a3[_0x5bb87e],_0x4d4ebe=_0x37ece7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xfd1634}=this,_0x7867ef=_0xfd1634['commands']['get']('uploadcare');if(!_0x7867ef)return;const _0x5598d5=this['_normalizeConfigSourceList'](_0xfd1634['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3861ea,_0x11e44c)=>{const _0x264f68=this['_getIntegrationKey'](_0x11e44c['type']);return _0x3861ea[_0x264f68]||(_0x3861ea[_0x264f68]=[]),_0x3861ea[_0x264f68]['push'](_0x11e44c),_0x3861ea;},{});_0xfd1634['plugins']['has']('ImageInsertUI')&&_0xfd1634['commands']['get']('uploadcare')&&Object['entries'](_0x5598d5)['forEach'](([_0x407c95,_0x42a63c])=>{_0xfd1634['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x407c95,'observable':()=>_0x7867ef,'buttonViewCreator':()=>this['_createToolbarButton'](_0x42a63c),'formViewCreator':()=>this['_createDropdownButtons'](_0x42a63c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x42a63c),'override':'assetManager'!==_0x407c95});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4e6598){const {locale:_0x5e2c80}=this['editor'];return _0x4e6598['map'](_0x4095e3=>{const _0xa3632a=_(_0x5e2c80,_0x4095e3,'Insert');switch(_0x4095e3){case i['Local']:return{'icon':_0x7e39e0,'type':i['Local'],..._0xa3632a};case i['URL']:return{'icon':_0x3201d7,'type':i['URL'],..._0xa3632a};case i['Dropbox']:return{'icon':_0x166c68,'type':i['Dropbox'],..._0xa3632a};case i['Facebook']:return{'icon':_0x53fa87,'type':i['Facebook'],..._0xa3632a};case i['GDrive']:return{'icon':_0x26a3b7,'type':i['GDrive'],..._0xa3632a};case i['GPhotos']:return{'icon':_0x1e6ef5,'type':i['GPhotos'],..._0xa3632a};case i['OneDrive']:return{'icon':_0xb8d94e,'type':i['OneDrive'],..._0xa3632a};}});}['_getIntegrationKey'](_0x1e30a3){switch(_0x1e30a3){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x16b3e5,_0x3eacb9){const _0xc77048=this['editor'],_0x2fbcda=new _0x16b3e5(_0xc77048['locale']),_0xaf883b=_0xc77048['commands']['get']('uploadcare');return _0x2fbcda['bind']('isEnabled')['to'](_0xaf883b),_0x2fbcda['on']('execute',()=>{_0xaf883b['execute'](_0x3eacb9);}),_0x2fbcda;}['_createToolbarButton'](_0x21f100){const {locale:_0x3916df}=this['editor'],_0x133716=this['editor']['plugins']['get']('ImageInsertUI'),_0x249932=_0x21f100[0x0],_0x42904a=this['_createButton'](_0x5b6d1b,_0x249932['type']);return _0x42904a['icon']=_0x249932['icon'],_0x42904a['bind']('label')['to'](_0x133716,'isImageSelected',_0x42155d=>_(_0x3916df,_0x249932['type'],_0x42155d?'Replace':'Insert')['text']),_0x42904a['tooltip']=!0x0,_0x42904a;}['_createDropdownButtons'](_0x1f1d10){const {locale:_0x465fed}=this['editor'],_0xa2d46=this['editor']['plugins']['get']('ImageInsertUI');return _0x1f1d10['map'](_0x4e3c14=>{const _0x184695=this['_createButton'](_0x5b6d1b,_0x4e3c14['type']);return _0x184695['withText']=!0x0,_0x184695['icon']=_0x4e3c14['icon'],_0x184695['bind']('label')['to'](_0xa2d46,'isImageSelected',_0x2f4546=>_(_0x465fed,_0x4e3c14['type'],_0x2f4546?'Replace':'Insert')['text']),_0x184695;});}['_createMenuBarButtons'](_0x30ab71){return _0x30ab71['map'](_0x5ed883=>{const _0x21bb2f=this['_createButton'](_0x5282c4,_0x5ed883['type']);return _0x21bb2f['icon']=_0x5ed883['icon'],_0x21bb2f['label']=_0x5ed883['shortText'],_0x21bb2f;});}}class F extends _0x136462{['focusTracker'];['focusCycler'];constructor(_0x87ce93){super(_0x87ce93),this['focusTracker']=new _0x1fa7f2(),this['focusCycler']=new _0x372140({'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 x extends F{constructor(_0x58680e,_0x215c32){super(_0x58680e),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-'+_0x215c32}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x20b61d,_0x179d1c){const _0x114140=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x368aec=>_0x368aec<=_0x179d1c)['map'](_0x4f3f1f=>_0x20b61d['replace'](/\/$/,'')+'/-/resize/'+_0x4f3f1f+'x/\x20'+_0x4f3f1f+'w');return{'imageFallbackUrl':_0x20b61d,'imageSources':[{'srcset':_0x114140['join'](',\x20'),'sizes':'(max-width:\x20'+_0x179d1c+'px)\x20100vw,\x20'+_0x179d1c+'px','type':'image/webp'}]};}function S(_0x21ecf5,_0x11371f,_0x20cfdb){const _0x49ed99=_0x21ecf5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x49ed99?parseInt(_0x49ed99[0x1],0xa):_0x11371f,'height':_0x49ed99?parseInt(_0x49ed99[0x2],0xa):_0x20cfdb};}function p(_0x57407b,_0x372322){const _0x583293=new(_0x5759e2())(),_0x399386=_0x57407b['plugins']['get']('ImageUtils'),_0x4e0613=_0x57407b['editing']['mapper']['toViewElement'](_0x372322),_0x29f161=_0x399386['findViewImgElement'](_0x4e0613),_0x6c14af=_0x57407b['editing']['view']['domConverter']['viewToDom'](_0x29f161),_0x407ffe=_0x372322['getAttribute']('width'),_0x1b6fb4=_0x372322['getAttribute']('height'),_0x386a14='image-processing';_0x57407b['editing']['view']['change'](_0x147743=>{_0x147743['addClass'](_0x386a14,_0x4e0613),_0x147743['setStyle']('aspect-ratio',_0x407ffe+'/'+_0x1b6fb4,_0x29f161);}),_0x583293['listenTo'](_0x6c14af,'load',()=>{_0x583293['stopListening'](_0x6c14af,'load'),_0x57407b['editing']['view']['change'](_0x1fbea9=>{_0x1fbea9['removeClass'](_0x386a14,_0x4e0613),_0x1fbea9['removeStyle']('aspect-ratio',_0x29f161);});});}function G(_0x4ca9d7){if(Array['isArray'](_0x4ca9d7)){const _0x2ab085=_0x4ca9d7['map'](G);return _0x563af4=>_0x2ab085['some'](_0x3714f8=>_0x3714f8(_0x563af4));}if('origin'==_0x4ca9d7){const _0x1924f7=_0x7007fb['window']['location']['origin'];return _0x4e60b6=>new URL(_0x4e60b6,_0x7007fb['document']['baseURI'])['origin']==_0x1924f7;}return'function'==typeof _0x4ca9d7?_0x4ca9d7:_0x4ca9d7 instanceof RegExp?_0x490e09=>!(!_0x490e09['match'](_0x4ca9d7)&&!_0x490e09['replace'](/^https?:\/\//,'')['match'](_0x4ca9d7)):()=>!0x1;}function A(_0x3853bc,_0x34d2b9){return _0x34b239(_0x3853bc['target'])['includes'](_0x34d2b9);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3c7c96(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x26cc50,_0x30f3b2,_0x26f549){super(),this['_editor']=_0x26cc50,this['_editing']=_0x30f3b2,this['_dialog']=_0x26cc50['plugins']['get'](_0x574d96),this['_api']=_0x30f3b2['ctxElement']['getAPI'](),this['_type']=_0x26f549,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:_0x2091d0,model:_0x77f6ab}=this['_editor'],_0x29a483=_0x77f6ab['document']['selection']['getSelectedElement'](),_0x5cadde=_0x29a483&&(_0x29a483['is']('element','imageBlock')||_0x29a483['is']('element','imageInline'));this['_formView']=new x(_0x2091d0,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x7e39e0,'title':_(_0x2091d0,this['_type'],_0x5cadde?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x35c226['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x478d18=>!A(_0x478d18,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x20877c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4ba977=>{const _0x1af424=_0x20877c['length'];for(const _0xef02a4 of _0x20877c){const _0x1074b1=_0xef02a4===_0x20877c[_0x1af424-0x1],{cdnUrl:_0x1d88bb,fileInfo:_0x4d01cb}=_0xef02a4;if(!_0x1d88bb||!_0x4d01cb)continue;const {width:_0x4bfeed,height:_0x339a88}=_0x4d01cb['imageInfo'],_0x2acaea=S(_0x1d88bb,_0x4bfeed,_0x339a88),_0x501b83=C(_0x1d88bb,_0x2acaea['width']),_0x590c8c={'id':_0x4d01cb['uuid'],'type':'image','attributes':{'imageDimension':_0x2acaea,..._0x501b83}};this['_insertAsset'](_0x590c8c,_0x1074b1,_0x4ba977);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x18d934=>{'idle'===_0x18d934['detail']['status']&&!_0x18d934['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5178b2,_0x55e9ef,_0x35315a){const _0x1f5625=this['_editor']['model']['document']['selection'],_0x165918=_0x1f5625['getSelectedElement'](),_0x29cec2=!(!_0x165918||!_0x165918['is']('element','imageInline'));_0x35315a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5178b2,_0x29cec2),_0x55e9ef||_0x35315a['setSelection'](_0x1f5625['getLastPosition']());}['_insertImage'](_0x23b600,_0x5891d0){const _0x14f0b3=this['_editor'],{imageDimension:_0x1d6961,imageFallbackUrl:_0x2a5fc1,imageSources:_0x2ab9e1}=_0x23b600['attributes'];_0x14f0b3['execute']('insertImage',{'imageType':_0x5891d0?'imageInline':null,'source':{'uploadcareImageId':_0x23b600['id'],'src':_0x2a5fc1,'sources':_0x2ab9e1,..._0x1d6961}});}}class w extends _0x49bbc0{['_editing'];['_controller']=null;static get['requires'](){return[_0x574d96,o];}constructor(_0x46803e){super(_0x46803e),this['_editing']=_0x46803e['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x16fe89){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x16fe89);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x52416d,..._0x7b213e}){return _0x57f6ce(_0x52416d,_0x7b213e);}static['getInfo'](_0x102f0d,_0x2f8bc6){return _0x2961de(_0x102f0d,_0x2f8bc6);}}class f extends _0x496d66{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x26ee08,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1c5034=this['editor'];if(!!!_0x1c5034['config']['get']('uploadcare'))return;_0x1c5034['plugins']['get'](_0x26ee08)['createUploadAdapter']=_0x2f085d=>new k(_0x2f085d,_0x1c5034),_0x1c5034['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x241dd3,{imageElement:_0x1a827a,data:_0x813aae})=>{_0x1c5034['model']['change'](_0x376bef=>{_0x376bef['setAttribute']('uploadcareImageId',_0x813aae['uploadcareImageId'],_0x1a827a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xb28a58,_0x344657){this['loader']=_0xb28a58,this['editor']=_0x344657,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1618e2=await this['loader']['file'];return j['upload']({'file':_0x1618e2,'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':_0x4962c8=>{_0x4962c8&&_0x4962c8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4962c8['value']);}})['then'](async _0x464d9c=>{const {imageFallbackUrl:_0x2967e1,imageSources:_0x4331c6}=C(_0x464d9c['cdnUrl'],_0x464d9c['imageInfo']['width']);return{'uploadcareImageId':_0x464d9c['uuid'],'default':_0x2967e1,'sources':_0x4331c6};})['catch'](()=>{const _0x139913=t('Cannot\x20upload\x20file:')+('\x20'+_0x1618e2['name']+'.');return Promise['reject'](_0x139913);});}['abort'](){this['controller']['abort']();}}class o extends _0x496d66{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x574d96];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2a2378){super(_0x2a2378),this['ucContextId']=_0x3f73f2();}['init'](){const _0x4b1115=this['editor'];_0x4b1115['commands']['add']('uploadcare',new w(_0x4b1115));}['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 _0x4cb49c=_0x7007fb['document']['querySelector']('input[uploadcare-file-input]');_0x4cb49c&&_0x4cb49c['remove']();}),async function(_0x2ef6f4){const _0x528ad7=_0x5909b6([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]),_0x143c18=0x535f8c3a,_0x86abea=0x5358f7ba^_0x143c18,_0x188359=window[_0x5909b6([0x44,0x61,0x74,0x65])][_0x5909b6([0x6e,0x6f,0x77])](),_0x199a9c=_0x2ef6f4[_0x5909b6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1961b1=new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f0135=>{_0x199a9c[_0x5909b6([0x6f,0x6e,0x63,0x65])](_0x5909b6([0x72,0x65,0x61,0x64,0x79]),_0x5f0135);}),_0x4c9122={[_0x5909b6([0x6b,0x74,0x79])]:_0x5909b6([0x45,0x43]),[_0x5909b6([0x75,0x73,0x65])]:_0x5909b6([0x73,0x69,0x67]),[_0x5909b6([0x63,0x72,0x76])]:_0x5909b6([0x50,0x2d,0x32,0x35,0x36]),[_0x5909b6([0x78])]:_0x5909b6([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]),[_0x5909b6([0x79])]:_0x5909b6([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]),[_0x5909b6([0x61,0x6c,0x67])]:_0x5909b6([0x45,0x53,0x32,0x35,0x36])},_0x1498a1=_0x199a9c[_0x5909b6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5909b6([0x67,0x65,0x74])](_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x20149d(){let _0x2686d2,_0x49a89f=null,_0xafa16b=null;try{if(_0x1498a1==_0x5909b6([0x47,0x50,0x4c]))return _0x5909b6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2686d2=_0x37a859(),!_0x2686d2)return _0x5909b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2686d2[_0x5909b6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xafa16b=_0x34114e(_0x2686d2[_0x5909b6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2686d2[_0x5909b6([0x6a,0x74,0x69])])),await _0x42f772()?_0x5c952a()?_0x86f8e2()?_0x5909b6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x317654()?(_0x2686d2[_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5909b6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x49a89f=_0x512a02(_0x5909b6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2686d2[_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5909b6([0x74,0x72,0x69,0x61,0x6c])&&(_0x49a89f=_0x512a02(_0x5909b6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e946a()):_0x5909b6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5909b6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5909b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5909b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x86f8e2(){const _0x2c0c4c=[_0x5909b6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5909b6([0x74,0x72,0x69,0x61,0x6c])][_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2686d2[_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x188359/0x3e8:0xe10*_0x86abea;return _0x2686d2[_0x5909b6([0x65,0x78,0x70])]<_0x2c0c4c;}function _0x5c952a(){const _0x42bf70=_0x2686d2[_0x5909b6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42bf70&&(!!_0x42bf70[_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5909b6([0x2a]))||!!_0x42bf70[_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5909b6([0x55,0x50,0x4c,0x43])));}function _0x317654(){const _0x33ca22=_0x2686d2[_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33ca22||0x0==_0x33ca22[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36e861}=new URL(window[_0x5909b6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33ca22[_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e861))return!0x0;const _0x113e16=_0x36e861[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])](_0x5909b6([0x2e]));return _0x33ca22[_0x5909b6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x401af1=>_0x401af1[_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5909b6([0x2a])))[_0x5909b6([0x6d,0x61,0x70])](_0x403ddd=>_0x403ddd[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])](_0x5909b6([0x2e])))[_0x5909b6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e1768=>_0x2e1768[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x113e16[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5909b6([0x6d,0x61,0x70])](_0x16a55e=>Array(_0x113e16[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x16a55e[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5909b6([0x66,0x69,0x6c,0x6c])](_0x16a55e[0x0]===_0x5909b6([0x2a])?_0x5909b6([0x2a]):'')[_0x5909b6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x16a55e))[_0x5909b6([0x73,0x6f,0x6d,0x65])](_0x279436=>_0x113e16[_0x5909b6([0x65,0x76,0x65,0x72,0x79])]((_0x1d2594,_0x48c543)=>_0x279436[_0x48c543]===_0x1d2594||_0x279436[_0x48c543]===_0x5909b6([0x2a])));}function _0x4e946a(){return _0x49a89f&&_0xafa16b?new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x202c28,_0x42cbaf)=>{_0x49a89f[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x202c28,_0x42cbaf),_0xafa16b[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x2edd16=>{_0x2edd16!=_0x5909b6([0x56,0x61,0x6c,0x69,0x64])&&_0x202c28(_0x2edd16);},_0x42cbaf);}):_0x49a89f||_0xafa16b||_0x5909b6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34114e(_0x3ba739,_0xa0e964){return new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x204928=>{if(_0x5e3177())return _0x204928(_0x5909b6([0x56,0x61,0x6c,0x69,0x64]));_0x95eb6e(),_0x199a9c[_0x5909b6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5909b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9e1dd4=!0x1;const _0x5b9956=_0x3f73f2();function _0x63c9b2(_0x4a1883){return!!_0x4a1883&&(typeof _0x4a1883===_0x5909b6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a1883===_0x5909b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a1883[_0x5909b6([0x74,0x68,0x65,0x6e])]===_0x5909b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a1883[_0x5909b6([0x63,0x61,0x74,0x63,0x68])]===_0x5909b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f0d24(_0x4c70bb){_0x3357ec(_0x4c70bb)[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x3ef099=>{if(!_0x3ef099||_0x3ef099[_0x5909b6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5909b6([0x6f,0x6b]))return _0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x55ebb7(_0x5d95d7(_0x5b9956+_0xa0e964))!=_0x3ef099[_0x5909b6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5909b6([0x56,0x61,0x6c,0x69,0x64]);})[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x126006=>(_0x43d0ac(),_0x126006),()=>{const _0x33d8fd=_0x596a25();return null==_0x33d8fd?(_0x43d0ac(),_0x5909b6([0x56,0x61,0x6c,0x69,0x64])):_0x5909b6(_0x188359-_0x33d8fd>(0x7753083a^_0x143c18)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x204928)[_0x5909b6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x204928(_0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1b1221=0x536962ba^_0x143c18;function _0x43d0ac(){const _0x25002f=_0x5909b6([0x6c,0x6c,0x63,0x74,0x2d])+_0x55ebb7(_0x5d95d7(_0x3ba739)),_0x254814=_0x148159(_0x55ebb7(window[_0x5909b6([0x4d,0x61,0x74,0x68])][_0x5909b6([0x63,0x65,0x69,0x6c])](_0x188359/_0x1b1221)));window[_0x5909b6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5909b6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25002f,_0x254814);}function _0x596a25(){const _0x11fdde=_0x5909b6([0x6c,0x6c,0x63,0x74,0x2d])+_0x55ebb7(_0x5d95d7(_0x3ba739)),_0x1ad3be=window[_0x5909b6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5909b6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11fdde);return _0x1ad3be?window[_0x5909b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x148159(_0x1ad3be),0x10)*_0x1b1221:null;}function _0x3357ec(_0x2f3d0e){return new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8d4775,_0x22357f)=>{_0x2f3d0e[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x8d4775,_0x22357f),window[_0x5909b6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22357f,0x535e58fa^_0x143c18);});}}_0x199a9c[_0x5909b6([0x6f,0x6e])](_0x5909b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ed353,_0x52e077)=>{if(_0x52e077[0x0]!=_0x3ba739)return _0x204928(_0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52e077[0x1]={..._0x52e077[0x1],[_0x5909b6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b9956};},{[_0x5909b6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5909b6([0x68,0x69,0x67,0x68])}),_0x199a9c[_0x5909b6([0x6f,0x6e])](_0x5909b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb0e806=>{_0x63c9b2(_0xb0e806[_0x5909b6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9e1dd4=!0x0,_0x1f0d24(_0xb0e806[_0x5909b6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5909b6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5909b6([0x6c,0x6f,0x77])}),_0x1961b1[_0x5909b6([0x74,0x68,0x65,0x6e])](()=>{_0x9e1dd4||_0x204928(_0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e3177(){return _0x199a9c[_0x5909b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5909b6([0x76,0x69,0x65,0x77])][_0x5909b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5909b6([0x61,0x75,0x74,0x6f]);}function _0x95eb6e(){_0x199a9c[_0x5909b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5909b6([0x76,0x69,0x65,0x77])][_0x5909b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5909b6([0x61,0x75,0x74,0x6f]);}}function _0x512a02(_0x3d9a29){const _0x2ce4b1=[new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26cc05=>setTimeout(_0x26cc05,0x5356b2f6^_0x143c18)),_0x1961b1[_0x5909b6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a6946=>{let _0x200bcb=0x0;_0x199a9c[_0x5909b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5909b6([0x6f,0x6e])](_0x5909b6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e8618,_0xc31720)=>{_0xc31720[0x0][_0x5909b6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x200bcb++,_0x200bcb==(0x535f8dc2^_0x143c18)&&(_0x3a6946(),_0x1e8618[_0x5909b6([0x6f,0x66,0x66])]());});}))];return window[_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5909b6([0x72,0x61,0x63,0x65])](_0x2ce4b1)[_0x5909b6([0x74,0x68,0x65,0x6e])](()=>_0x3d9a29);}async function _0x234395(){await _0x1961b1,_0x199a9c[_0x5909b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5909b6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x379ab9,_0x199a9c[_0x5909b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5909b6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x379ab9,_0x199a9c[_0x5909b6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5909b6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e8a25(_0x46f5f1){const _0x3a0ea1=_0x4016cb();_0x199a9c[_0x3a0ea1]=_0x5909b6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x46f5f1,_0x46f5f1!=_0x5909b6([0x56,0x61,0x6c,0x69,0x64])&&_0x234395();}function _0x4016cb(){const _0x438987=window[_0x5909b6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5909b6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5909b6([0x6e,0x6f,0x77])]())[_0x5909b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5909b6([0x2e]),'');let _0x380828=_0x5909b6([0x68]);for(let _0x1f9999=0x0;_0x1f9999<_0x438987[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f9999+=0x2){let _0x11cd4a=window[_0x5909b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x438987[_0x5909b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f9999,_0x1f9999+0x2));_0x11cd4a>=_0x528ad7[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11cd4a-=_0x528ad7[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x380828+=_0x528ad7[_0x11cd4a];}return _0x380828;}function _0x37a859(){const _0x1c3f76=_0x1498a1[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])](_0x5909b6([0x2e]));if(0x3!=_0x1c3f76[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x494994(_0x1c3f76[0x1]);function _0x494994(_0xf111aa){const _0x4a4d8e=_0x540ca8(_0xf111aa);return _0x4a4d8e&&_0xc73055()?_0x4a4d8e:null;function _0xc73055(){const _0x3ae8d1=_0x4a4d8e[_0x5909b6([0x6a,0x74,0x69])],_0x37ccc9=window[_0x5909b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ae8d1[_0x5909b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ae8d1[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31da7f={..._0x4a4d8e,[_0x5909b6([0x6a,0x74,0x69])]:_0x3ae8d1[_0x5909b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ae8d1[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31da7f[_0x5909b6([0x76,0x63])],_0x5d95d7(_0x31da7f)==_0x37ccc9;}}}async function _0x42f772(){let _0x459652=!0x0;try{const _0x1252ad=_0x1498a1[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])](_0x5909b6([0x2e])),[_0x187018,_0x287a51,_0x364572]=_0x1252ad;return _0x2d22e8(_0x187018),await _0x190968(_0x187018,_0x287a51,_0x364572),_0x459652;}catch{return!0x1;}function _0x2d22e8(_0x279bd9){const _0x33644c=_0x540ca8(_0x279bd9);_0x33644c&&_0x33644c[_0x5909b6([0x61,0x6c,0x67])]==_0x5909b6([0x45,0x53,0x32,0x35,0x36])||(_0x459652=!0x1);}async function _0x190968(_0x13b375,_0x3ab659,_0xfaf0b5){const _0xc3a513=window[_0x5909b6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5909b6([0x66,0x72,0x6f,0x6d])](_0x2aa753(_0xfaf0b5),_0x39e3a3=>_0x39e3a3[_0x5909b6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf1bedf=new window[(_0x5909b6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5909b6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13b375+_0x5909b6([0x2e])+_0x3ab659),_0x41ebe3=window[_0x5909b6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5909b6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41ebe3)return;const _0xf6b14f=await _0x41ebe3[_0x5909b6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5909b6([0x6a,0x77,0x6b]),_0x4c9122,{[_0x5909b6([0x6e,0x61,0x6d,0x65])]:_0x5909b6([0x45,0x43,0x44,0x53,0x41]),[_0x5909b6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5909b6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5909b6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41ebe3[_0x5909b6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5909b6([0x6e,0x61,0x6d,0x65])]:_0x5909b6([0x45,0x43,0x44,0x53,0x41]),[_0x5909b6([0x68,0x61,0x73,0x68])]:{[_0x5909b6([0x6e,0x61,0x6d,0x65])]:_0x5909b6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf6b14f,_0xc3a513,_0xf1bedf)||(_0x459652=!0x1);}}function _0x540ca8(_0x4bf010){return _0x4bf010[_0x5909b6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5909b6([0x65,0x79]))?JSON[_0x5909b6([0x70,0x61,0x72,0x73,0x65])](_0x2aa753(_0x4bf010)):null;}function _0x2aa753(_0x302207){return window[_0x5909b6([0x61,0x74,0x6f,0x62])](_0x302207[_0x5909b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5909b6([0x2b]))[_0x5909b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5909b6([0x2f])));}function _0x5d95d7(_0x52fe3e){let _0x1e6080=0x1505;function _0x134b93(_0x56bf0a){for(let _0x4a3493=0x0;_0x4a3493<_0x56bf0a[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a3493++){const _0x574cc0=_0x56bf0a[_0x5909b6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a3493);_0x1e6080=(_0x1e6080<<0x5)+_0x1e6080+_0x574cc0,_0x1e6080&=_0x1e6080;}}function _0x4440eb(_0x3f01e7){Array[_0x5909b6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f01e7)?_0x3f01e7[_0x5909b6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4440eb):_0x3f01e7&&typeof _0x3f01e7==_0x5909b6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5909b6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f01e7)[_0x5909b6([0x73,0x6f,0x72,0x74])]()[_0x5909b6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1435e2,_0x397051])=>{_0x134b93(_0x1435e2),_0x4440eb(_0x397051);}):_0x134b93(window[_0x5909b6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f01e7));}return _0x4440eb(_0x52fe3e),_0x1e6080>>>0x0;}function _0x55ebb7(_0x3db309){return _0x3db309[_0x5909b6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5909b6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5909b6([0x30]));}function _0x148159(_0x8f4fde){return _0x8f4fde[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5909b6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5909b6([0x6a,0x6f,0x69,0x6e])]('');}function _0x379ab9(){}function _0x5909b6(_0x5152b1){return _0x5152b1['map'](_0x12a2a5=>String['fromCharCode'](_0x12a2a5))['join']('');}_0x5e8a25(await _0x20149d());}(this);}['_initSchema'](){const _0x9ad844=this['editor']['model']['schema'];_0x9ad844['isRegistered']('imageBlock')&&_0x9ad844['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x9ad844['isRegistered']('imageInline')&&_0x9ad844['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3f2a8b=this['editor'];_0x3f2a8b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3f2a8b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x153f94=>_0x153f94['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x32efa5=_0x3f2a8b['commands']['get']('replaceImageSource');_0x32efa5&&this['listenTo'](_0x32efa5,'cleanupImage',(_0x92ebea,[_0x53fbe5,_0x3ae0f5])=>{_0x53fbe5['removeAttribute']('uploadcareImageId',_0x3ae0f5);});}['_initConfig'](){const _0x35f9d7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5a1433=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2c3410(_0x7007fb['document'],'uc-config',{..._0x35f9d7,'pubkey':_0x5a1433,'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']=_0x4ed1cc=>{if('closeMax'==_0x4ed1cc)return'#uc-icon-arrow-down';},_0x7007fb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2c3410(_0x7007fb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x7007fb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x33d9e3=this['editor']['commands']['get']('insertImage');_0x33d9e3&&this['listenTo'](_0x33d9e3,'execute',()=>{const _0x387bd2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x387bd2&&_0x387bd2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x387bd2);});});const _0x5a68ee=this['editor']['commands']['get']('uploadcareImageReplace');_0x5a68ee&&this['listenTo'](_0x5a68ee,'execute',()=>{const _0x1395c4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1395c4&&_0x1395c4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1395c4);});});}}class tt extends _0x496d66{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d4d29){super(_0x3d4d29),_0x3d4d29['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x316cec['defineComponents'](_0x316cec),this['_defineLocale']();}['_defineLocale'](){const _0x2e5917=this['editor']['config']['get']('uploadcare.locale'),_0x5bc76a=this['editor']['locale']['contentLanguage'];_0x2e5917&&_0x316cec['defineLocale'](_0x5bc76a,_0x2e5917);}}class ii extends _0x136462{constructor(_0x1ecfe5){super(_0x1ecfe5);const t=_0x1ecfe5['t'],_0x2cc556=this['bindTemplate'],_0x567ae8=new _0xb51fca();_0x567ae8['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':[_0x567ae8,{'text':_0x2cc556['to']('imageUploadProgress',_0x5363d2=>t('Loading\x20image...')+'\x20('+(_0x5363d2||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 ti extends _0x136462{constructor(_0xfb6900){super(_0xfb6900);const t=_0xfb6900['t'];this['set']('errorType',null);const _0x38b58c=new _0x5b6d1b(_0xfb6900);_0x38b58c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x38b58c['withText']=!0x0,_0x38b58c['class']='ck-button-action',_0x38b58c['on']('execute',()=>{this['fire']('retry');}),_0x38b58c['bind']('isVisible')['to'](this,'errorType',_0x552cca=>'NotFound'!==_0x552cca);const _0x2e1706=new _0x892fb9();_0x2e1706['content']=_0x20e545,_0x2e1706['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xce04fc=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':[_0x2e1706,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xce04fc['to']('errorType',_0xc8f8e4=>t('NotFound'!==_0xc8f8e4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x38b58c]},{'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 ei extends _0x136462{constructor(_0x405d1f,_0x47b0c2){super(_0x405d1f);const _0x4809a7=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x47b0c2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4809a7['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x23573f,_0x4ac9fa,_0x38b2d6){super(_0x23573f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x23573f),this['_errorView']=new ti(_0x23573f),this['_editingView']=new ei(_0x23573f,_0x38b2d6),this['_focusableView']=new _0x136462(_0x23573f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4ac9fa),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'],_0x237058=>{this['_addUploadcareImageEditorListeners'](_0x237058);});}),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'](_0x4c9cc7,_0x331638){const _0x223a0a='uc-cloud-image-editor',_0x154ace=_0x4c9cc7['querySelector'](_0x223a0a);if(_0x154ace)return _0x331638(_0x154ace);const _0x893022=new MutationObserver(_0x2250b1=>{const _0x327090=_0x2250b1['filter'](_0x759ab5=>_0x759ab5['target']===_0x4c9cc7&&_0x759ab5['addedNodes']['length']>0x0&&_0x759ab5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x223a0a);_0x327090['length']&&(_0x893022['disconnect'](),_0x331638(_0x327090[0x0]['addedNodes'][0x0]));});_0x893022['observe'](_0x4c9cc7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2571b9){_0x2571b9['addEventListener']('apply',_0x5bb761=>{this['fire']('apply',{'imageSrc':_0x5bb761['detail']['cdnUrl']});}),_0x2571b9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3c7c96(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3745d4,_0x4dbf89,_0xedc149){super(),this['_editor']=_0x3745d4,this['_dialog']=_0x4dbf89,this['_imageElement']=_0xedc149,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 _0x19a708=this['_imageElement'],_0x1134ca=_0x19a708['getAttribute']('uploadcareImageId'),_0x541222=_0x19a708['getAttribute']('src');if(_0x1134ca)await this['_loadImageInfo'](_0x1134ca,_0x541222);else{if(this['_imageCache']['has'](_0x541222)){const _0x49bce0=this['_imageCache']['get'](_0x541222);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49bce0['url'],this['imageDimension']=_0x49bce0['dimension'],this['imageId']=_0x49bce0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3389c8}=this['_editor'],t=_0x3389c8['t'],_0x3c78b9=new X(_0x3389c8,this['imageStatus'],this['_attributes']);_0x3c78b9['bind']('status')['to'](this,'imageStatus'),_0x3c78b9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3c78b9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3c78b9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3c78b9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3db1e7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3c78b9,'position':_0x35c226['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3c78b9['focus']();},'onHide':()=>{_0x3c78b9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4beb44=>!A(_0x4beb44,_0x3c78b9['element'])}});}['_loadImageInfo'](_0x1f5245,_0x960414){return j['getInfo'](_0x1f5245,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xe0add4=>{const {width:_0x3589e7,height:_0x7c9559}=_0xe0add4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x960414,this['imageDimension']={'width':_0x3589e7,'height':_0x7c9559},this['imageId']=_0x1f5245;})['catch'](_0x2bfbc5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2bfbc5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x35985b,_0x125e1d){return this['_getImageAsFile'](_0x35985b)['then'](_0xcad21c=>j['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':_0x125e1d['signal'],'file':_0xcad21c,'onProgress':_0x56435f=>{_0x56435f&&_0x56435f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x56435f['value']));}}))['then'](_0xbd7846=>{const {width:_0x20376f,height:_0x1f64bd}=_0xbd7846['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbd7846['cdnUrl'],this['imageDimension']={'width':_0x20376f,'height':_0x1f64bd},this['imageId']=_0xbd7846['uuid'],this['imageUploadProgress']=null;const _0x4dba44=_0x35985b['getAttribute']('src');this['_imageCache']['set'](_0x4dba44,{'id':_0xbd7846['uuid'],'url':_0xbd7846['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2da041=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2da041['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x540b92,_0x5008ec){_0x540b92['on']('apply',(_0x16f005,_0x503d27)=>{this['_replaceImage'](_0x5008ec,_0x503d27['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x540b92['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x540b92['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x277fe9,_0x3d9273,_0xef5c58){const _0x319d29=this['_editor'],{width:_0x56352a,height:_0xc40b1a}=S(_0x3d9273,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3a6db6,imageSources:_0x26a448}=C(_0x3d9273,_0x56352a);_0x319d29['model']['change'](_0x4168ec=>{if('$graveyard'===_0x277fe9['root']['rootName']){_0x319d29['execute']('insertImage',{'imageType':_0x277fe9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x277fe9['getAttributes']()),'uploadcareImageId':_0xef5c58,'src':_0x3a6db6,'sources':_0x26a448,'width':_0x56352a,'height':_0xc40b1a}});const _0x5096c0=_0x277fe9['getChildren']();_0x277fe9=_0x319d29['model']['document']['selection']['getSelectedElement']();for(const _0x187abf of _0x5096c0)_0x4168ec['append'](_0x4168ec['cloneElement'](_0x187abf),_0x277fe9);}else _0x4168ec['setSelection'](_0x277fe9,'on'),_0x319d29['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x277fe9['getAttributes']()),'uploadcareImageId':_0xef5c58,'src':_0x3a6db6,'sources':_0x26a448,'width':_0x56352a,'height':_0xc40b1a},_0x277fe9);_0x4168ec['setSelection'](_0x277fe9,'on');});}async['_getImageAsFile'](_0x1b993f){const _0x2e8e39=_0x7007fb['window'],_0x39ff97=_0x7007fb['document']['location']['href'],_0x1c8a0f=new _0x2e8e39['URL'](_0x1b993f['getAttribute']('src'),_0x39ff97);if('data:'===_0x1c8a0f['protocol']){const _0x4f88d5=_0x1c8a0f['href']['split'](','),_0x43ebc6=_0x4f88d5[0x0]['match'](/:(.*?);/)[0x1],_0x50f232=_0x43ebc6['split']('/')[0x1],_0x2ffd23=_0x2e8e39['atob'](_0x4f88d5[_0x4f88d5['length']-0x1]);let _0x6028d6=_0x2ffd23['length'];const _0x5c2d86=new _0x2e8e39['Uint8Array'](_0x6028d6);for(;_0x6028d6--;)_0x5c2d86[_0x6028d6]=_0x2ffd23['charCodeAt'](_0x6028d6);return new _0x2e8e39['File']([_0x5c2d86],'image.'+_0x50f232,{'type':_0x43ebc6});}const _0x53a53c=_0x1c8a0f['href']['split']('/'),_0x51ff31=_0x53a53c[_0x53a53c['length']-0x1],_0x3bcd76=_0x51ff31['split']('.')[0x1];return _0x2e8e39['fetch'](_0x1c8a0f['href'])['then'](_0x58e79b=>_0x58e79b['clone']()['blob']())['then'](_0x1156df=>new _0x2e8e39['File']([_0x1156df],_0x51ff31,{'type':'image/'+_0x3bcd76}));}}class O extends _0x49bbc0{['imageEditController'];static get['requires'](){return[_0x574d96];}['_isEditable'];constructor(_0x4da471){super(_0x4da471),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x47709e){const _0x1d3ee3=G(_0x47709e);return _0x4045c4=>!(!_0x4045c4||!_0x4045c4['is']('element','imageBlock')&&!_0x4045c4['is']('element','imageInline'))&&(!!_0x4045c4['hasAttribute']('uploadcareImageId')||!!_0x4045c4['hasAttribute']('src')&&_0x1d3ee3(_0x4045c4['getAttribute']('src')));}(_0x4da471['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16d860=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16d860);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x211f83=this['editor']['model']['document']['selection']['getSelectedElement']();_0x211f83&&(_0x211f83['is']('element','imageBlock')||_0x211f83['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x574d96),_0x211f83),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x49bbc0{['refresh'](){const _0x20940c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x20940c&&(_0x20940c['is']('element','imageBlock')||_0x20940c['is']('element','imageInline')));}['execute'](_0xa7797d){const _0x36b339=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x39036d=>{_0x39036d['setAttributes'](_0xa7797d,_0x36b339),_0x39036d['removeAttribute']('srcset',_0x36b339),_0x39036d['removeAttribute']('sizes',_0x36b339);});}}class m extends _0x496d66{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x40a795,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4b053d}=this;_0x4b053d['commands']['add']('uploadcareImageEdit',new O(_0x4b053d)),_0x4b053d['commands']['add']('uploadcareImageReplace',new R(_0x4b053d));}}class g extends _0x496d66{['_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 _0x54ecf7=this['editor'];_0x54ecf7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4a975d=>{const _0x513755=_0x54ecf7['commands']['get']('uploadcareImageEdit'),_0x2bfdfd=new _0x5b6d1b(_0x4a975d),t=_0x4a975d['t'];return _0x2bfdfd['set']({'icon':_0x3db1e7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2bfdfd['bind']('isEnabled')['to'](_0x513755),_0x2bfdfd['bind']('isOn')['to'](_0x513755,'isActive'),this['listenTo'](_0x2bfdfd,'execute',()=>{_0x54ecf7['execute']('uploadcareImageEdit'),_0x54ecf7['editing']['view']['focus']();}),_0x2bfdfd;}),this['_initConfig']();}['_initConfig'](){const _0xd1c7d5=_0x2c3410(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xd1c7d5),this['listenTo'](this['editor'],'destroy',()=>{_0xd1c7d5['remove']();});}}class et extends _0x496d66{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x2c89f1,Command as _0x517cee}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x116dea,IconGooglePhotos as _0x37c349,IconGoogleDrive as _0x29cb4f,IconFacebook as _0x9ab18,IconDropbox as _0x395715,IconUploadcareLink as _0x38d3a2,IconUploadcareImageUpload as _0x298606,IconError as _0x495b38,IconUploadcareImageEdit as _0x4bf427}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x37fe92,MenuBarMenuListItemButtonView as _0x267e56,View as _0x36d27c,FocusCycler as _0x286b3a,Dialog as _0x45c0c7,DialogViewPosition as _0x522b3a,SpinnerView as _0x5687fd,IconView as _0x44c58c,Notification as _0x25f61f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4618d6,DomEmitterMixin as _0x10a786,global as _0x132dfa,getAncestors as _0x1a1397,ObservableMixin as _0x4b9ecb,uid as _0x5a4516,createElement as _0x5782e8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1b929a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5c84e0,info as _0x3c3b34}from'@uploadcare/upload-client';import*as _0x17d064 from'@uploadcare/file-uploader';var i=function(_0x139851){return _0x139851['Local']='local',_0x139851['URL']='url',_0x139851['Dropbox']='dropbox',_0x139851['GDrive']='gdrive',_0x139851['Facebook']='facebook',_0x139851['GPhotos']='gphotos',_0x139851['OneDrive']='onedrive',_0x139851;}({});function _(_0x3b0ca3,_0x1fb414,_0x438c6e){const t=_0x3b0ca3['t'],_0x324b4f=_0x3b0ca3['t'];switch(_0x1fb414){case i['Local']:return{'text':_0x324b4f('Insert'===_0x438c6e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x324b4f('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x438c6e?_0x324b4f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x324b4f('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x438c6e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x438c6e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x438c6e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x438c6e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x438c6e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1fb414;}}class e extends _0x2c89f1{['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 _0x1de4d9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf9efab;for(const _0xbac612 in _0x1de4d9){const _0x5f4ef4=_0xbac612,_0x1eb6ff=_0x1de4d9[_0x5f4ef4];if('uploadcareLicenseKeyValid'==_0x1eb6ff||'uploadcareLicenseKeyInvalid'==_0x1eb6ff||'uploadcareLicenseKeyExpired'==_0x1eb6ff||'uploadcareLicenseKeyDomainLimit'==_0x1eb6ff||'uploadcareLicenseKeyNotAllowed'==_0x1eb6ff||'uploadcareLicenseKeyEvaluationLimit'==_0x1eb6ff||'uploadcareLicenseKeyTrialLimit'==_0x1eb6ff||'uploadcareLicenseKeyUsageLimit'==_0x1eb6ff){delete _0x1de4d9[_0x5f4ef4],_0xf9efab=_0x1eb6ff,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xf9efab&&_0x1de4d9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xf9efab&&_0x1de4d9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xf9efab&&_0x1de4d9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xf9efab&&_0x1de4d9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xf9efab&&_0x1de4d9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xf9efab&&_0x1de4d9['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xf9efab&&_0x1de4d9['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3cf3f9}=this,_0x242e71=_0x3cf3f9['commands']['get']('uploadcare');if(!_0x242e71)return;const _0x1ed8d8=this['_normalizeConfigSourceList'](_0x3cf3f9['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xa5ac34,_0x559fc6)=>{const _0xadfcdd=this['_getIntegrationKey'](_0x559fc6['type']);return _0xa5ac34[_0xadfcdd]||(_0xa5ac34[_0xadfcdd]=[]),_0xa5ac34[_0xadfcdd]['push'](_0x559fc6),_0xa5ac34;},{});_0x3cf3f9['plugins']['has']('ImageInsertUI')&&_0x3cf3f9['commands']['get']('uploadcare')&&Object['entries'](_0x1ed8d8)['forEach'](([_0x212456,_0x47f6ee])=>{_0x3cf3f9['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x212456,'observable':()=>_0x242e71,'buttonViewCreator':()=>this['_createToolbarButton'](_0x47f6ee),'formViewCreator':()=>this['_createDropdownButtons'](_0x47f6ee),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x47f6ee),'override':'assetManager'!==_0x212456});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xc59586){const {locale:_0x10c2cd}=this['editor'];return _0xc59586['map'](_0xf41be5=>{const _0xb2aff9=_(_0x10c2cd,_0xf41be5,'Insert');switch(_0xf41be5){case i['Local']:return{'icon':_0x298606,'type':i['Local'],..._0xb2aff9};case i['URL']:return{'icon':_0x38d3a2,'type':i['URL'],..._0xb2aff9};case i['Dropbox']:return{'icon':_0x395715,'type':i['Dropbox'],..._0xb2aff9};case i['Facebook']:return{'icon':_0x9ab18,'type':i['Facebook'],..._0xb2aff9};case i['GDrive']:return{'icon':_0x29cb4f,'type':i['GDrive'],..._0xb2aff9};case i['GPhotos']:return{'icon':_0x37c349,'type':i['GPhotos'],..._0xb2aff9};case i['OneDrive']:return{'icon':_0x116dea,'type':i['OneDrive'],..._0xb2aff9};}});}['_getIntegrationKey'](_0x1b168c){switch(_0x1b168c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2ccab5,_0x173c16){const _0x5d1d9d=this['editor'],_0x3bd4a5=new _0x2ccab5(_0x5d1d9d['locale']),_0x47eff9=_0x5d1d9d['commands']['get']('uploadcare');return _0x3bd4a5['bind']('isEnabled')['to'](_0x47eff9),_0x3bd4a5['on']('execute',()=>{_0x47eff9['execute'](_0x173c16);}),_0x3bd4a5;}['_createToolbarButton'](_0xac1cce){const {locale:_0x237aaf}=this['editor'],_0x126076=this['editor']['plugins']['get']('ImageInsertUI'),_0xc09fbd=_0xac1cce[0x0],_0x48763f=this['_createButton'](_0x37fe92,_0xc09fbd['type']);return _0x48763f['icon']=_0xc09fbd['icon'],_0x48763f['bind']('label')['to'](_0x126076,'isImageSelected',_0x4d43ef=>_(_0x237aaf,_0xc09fbd['type'],_0x4d43ef?'Replace':'Insert')['text']),_0x48763f['tooltip']=!0x0,_0x48763f;}['_createDropdownButtons'](_0x340eb0){const {locale:_0x5dd5a5}=this['editor'],_0x23bc0d=this['editor']['plugins']['get']('ImageInsertUI');return _0x340eb0['map'](_0x3a1b14=>{const _0xf354a=this['_createButton'](_0x37fe92,_0x3a1b14['type']);return _0xf354a['withText']=!0x0,_0xf354a['icon']=_0x3a1b14['icon'],_0xf354a['bind']('label')['to'](_0x23bc0d,'isImageSelected',_0x3db1e1=>_(_0x5dd5a5,_0x3a1b14['type'],_0x3db1e1?'Replace':'Insert')['text']),_0xf354a;});}['_createMenuBarButtons'](_0x3c0089){return _0x3c0089['map'](_0x2b9dd0=>{const _0x4f8301=this['_createButton'](_0x267e56,_0x2b9dd0['type']);return _0x4f8301['icon']=_0x2b9dd0['icon'],_0x4f8301['label']=_0x2b9dd0['shortText'],_0x4f8301;});}}class F extends _0x36d27c{['focusTracker'];['focusCycler'];constructor(_0x10118a){super(_0x10118a),this['focusTracker']=new _0x4618d6(),this['focusCycler']=new _0x286b3a({'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 x extends F{constructor(_0x424e62,_0x317230){super(_0x424e62),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-'+_0x317230}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4de07b,_0x3b64f2){const _0x548c68=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x20800e=>_0x20800e<=_0x3b64f2)['map'](_0x324fd4=>_0x4de07b['replace'](/\/$/,'')+'/-/resize/'+_0x324fd4+'x/\x20'+_0x324fd4+'w');return{'imageFallbackUrl':_0x4de07b,'imageSources':[{'srcset':_0x548c68['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3b64f2+'px)\x20100vw,\x20'+_0x3b64f2+'px','type':'image/webp'}]};}function S(_0x1cc5bf,_0x7a5806,_0x5a43dd){const _0xaec0e=_0x1cc5bf['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xaec0e?parseInt(_0xaec0e[0x1],0xa):_0x7a5806,'height':_0xaec0e?parseInt(_0xaec0e[0x2],0xa):_0x5a43dd};}function p(_0x370e8b,_0x6f6647){const _0x107a17=new(_0x10a786())(),_0x1afc23=_0x370e8b['plugins']['get']('ImageUtils'),_0x2c43d9=_0x370e8b['editing']['mapper']['toViewElement'](_0x6f6647),_0x267934=_0x1afc23['findViewImgElement'](_0x2c43d9),_0x21969d=_0x370e8b['editing']['view']['domConverter']['viewToDom'](_0x267934),_0x594885=_0x6f6647['getAttribute']('width'),_0x21ed28=_0x6f6647['getAttribute']('height'),_0x35d147='image-processing';_0x370e8b['editing']['view']['change'](_0x2ee995=>{_0x2ee995['addClass'](_0x35d147,_0x2c43d9),_0x2ee995['setStyle']('aspect-ratio',_0x594885+'/'+_0x21ed28,_0x267934);}),_0x107a17['listenTo'](_0x21969d,'load',()=>{_0x107a17['stopListening'](_0x21969d,'load'),_0x370e8b['editing']['view']['change'](_0x4129c4=>{_0x4129c4['removeClass'](_0x35d147,_0x2c43d9),_0x4129c4['removeStyle']('aspect-ratio',_0x267934);});});}function G(_0x5a7ea2){if(Array['isArray'](_0x5a7ea2)){const _0x429d97=_0x5a7ea2['map'](G);return _0x3d0ae1=>_0x429d97['some'](_0x42abd1=>_0x42abd1(_0x3d0ae1));}if('origin'==_0x5a7ea2){const _0x244b5a=_0x132dfa['window']['location']['origin'];return _0x5ed050=>new URL(_0x5ed050,_0x132dfa['document']['baseURI'])['origin']==_0x244b5a;}return'function'==typeof _0x5a7ea2?_0x5a7ea2:_0x5a7ea2 instanceof RegExp?_0xfe515=>!(!_0xfe515['match'](_0x5a7ea2)&&!_0xfe515['replace'](/^https?:\/\//,'')['match'](_0x5a7ea2)):()=>!0x1;}function A(_0x28572b,_0x9432c5){return _0x1a1397(_0x28572b['target'])['includes'](_0x9432c5);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4b9ecb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x550260,_0x5e6a6e,_0x35842d){super(),this['_editor']=_0x550260,this['_editing']=_0x5e6a6e,this['_dialog']=_0x550260['plugins']['get'](_0x45c0c7),this['_api']=_0x5e6a6e['ctxElement']['getAPI'](),this['_type']=_0x35842d,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:_0x2e273c,model:_0x5ad0d9}=this['_editor'],_0x4f3288=_0x5ad0d9['document']['selection']['getSelectedElement'](),_0x3b28f7=_0x4f3288&&(_0x4f3288['is']('element','imageBlock')||_0x4f3288['is']('element','imageInline'));this['_formView']=new x(_0x2e273c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x298606,'title':_(_0x2e273c,this['_type'],_0x3b28f7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x522b3a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x62530f=>!A(_0x62530f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3ca452}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5ac3e0=>{const _0x111c03=_0x3ca452['length'];for(const _0x1a7a89 of _0x3ca452){const _0xc2e0ac=_0x1a7a89===_0x3ca452[_0x111c03-0x1],{cdnUrl:_0x4130e4,fileInfo:_0x323685}=_0x1a7a89;if(!_0x4130e4||!_0x323685)continue;const {width:_0x20fc2b,height:_0x381bbc}=_0x323685['imageInfo'],_0x98bd63=S(_0x4130e4,_0x20fc2b,_0x381bbc),_0x4d517d=C(_0x4130e4,_0x98bd63['width']),_0x235084={'id':_0x323685['uuid'],'type':'image','attributes':{'imageDimension':_0x98bd63,..._0x4d517d}};this['_insertAsset'](_0x235084,_0xc2e0ac,_0x5ac3e0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x306765=>{'idle'===_0x306765['detail']['status']&&!_0x306765['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xb8f5c3,_0x11f814,_0x542d81){const _0x411e00=this['_editor']['model']['document']['selection'],_0x364ee6=_0x411e00['getSelectedElement'](),_0x289e6d=!(!_0x364ee6||!_0x364ee6['is']('element','imageInline'));_0x542d81['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xb8f5c3,_0x289e6d),_0x11f814||_0x542d81['setSelection'](_0x411e00['getLastPosition']());}['_insertImage'](_0x5e9cf9,_0xa0562e){const _0x4283f6=this['_editor'],{imageDimension:_0x145756,imageFallbackUrl:_0x353e74,imageSources:_0x2a1714}=_0x5e9cf9['attributes'];_0x4283f6['execute']('insertImage',{'imageType':_0xa0562e?'imageInline':null,'source':{'uploadcareImageId':_0x5e9cf9['id'],'src':_0x353e74,'sources':_0x2a1714,..._0x145756}});}}class w extends _0x517cee{['_editing'];['_controller']=null;static get['requires'](){return[_0x45c0c7,o];}constructor(_0x140767){super(_0x140767),this['_editing']=_0x140767['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x41e15f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x41e15f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3f23d8,..._0x479822}){return _0x5c84e0(_0x3f23d8,_0x479822);}static['getInfo'](_0x372434,_0x2827fd){return _0x3c3b34(_0x372434,_0x2827fd);}}class f extends _0x2c89f1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1b929a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x8c815e=this['editor'];if(!!!_0x8c815e['config']['get']('uploadcare'))return;_0x8c815e['plugins']['get'](_0x1b929a)['createUploadAdapter']=_0x4185d8=>new k(_0x4185d8,_0x8c815e),_0x8c815e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1ccb0a,{imageElement:_0x2348f6,data:_0x357e1d})=>{_0x8c815e['model']['change'](_0x24a8b7=>{_0x24a8b7['setAttribute']('uploadcareImageId',_0x357e1d['uploadcareImageId'],_0x2348f6);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2db73a,_0x1b0a50){this['loader']=_0x2db73a,this['editor']=_0x1b0a50,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x27ecb3=await this['loader']['file'];return j['upload']({'file':_0x27ecb3,'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':_0x55e2cd=>{_0x55e2cd&&_0x55e2cd['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x55e2cd['value']);}})['then'](async _0x64532c=>{const {imageFallbackUrl:_0x51054f,imageSources:_0x5b062b}=C(_0x64532c['cdnUrl'],_0x64532c['imageInfo']['width']);return{'uploadcareImageId':_0x64532c['uuid'],'default':_0x51054f,'sources':_0x5b062b};})['catch'](()=>{const _0x32ff12=t('Cannot\x20upload\x20file:')+('\x20'+_0x27ecb3['name']+'.');return Promise['reject'](_0x32ff12);});}['abort'](){this['controller']['abort']();}}class o extends _0x2c89f1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x45c0c7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x50aed3){super(_0x50aed3),this['ucContextId']=_0x5a4516();}['init'](){const _0x1dc59e=this['editor'];_0x1dc59e['commands']['add']('uploadcare',new w(_0x1dc59e));}['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 _0x527923=_0x132dfa['document']['querySelector']('input[uploadcare-file-input]');_0x527923&&_0x527923['remove']();}),async function(_0x11a015){const _0x23df09=_0x2c0855([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]),_0x44e0d2=0x535f8c3a,_0x2984b2=0x5358f7a2^_0x44e0d2,_0x2da6fd=window[_0x2c0855([0x44,0x61,0x74,0x65])][_0x2c0855([0x6e,0x6f,0x77])](),_0x85cabf=_0x11a015[_0x2c0855([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x169953=new window[(_0x2c0855([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb6d5b1=>{_0x85cabf[_0x2c0855([0x6f,0x6e,0x63,0x65])](_0x2c0855([0x72,0x65,0x61,0x64,0x79]),_0xb6d5b1);}),_0x72b05d={[_0x2c0855([0x6b,0x74,0x79])]:_0x2c0855([0x45,0x43]),[_0x2c0855([0x75,0x73,0x65])]:_0x2c0855([0x73,0x69,0x67]),[_0x2c0855([0x63,0x72,0x76])]:_0x2c0855([0x50,0x2d,0x32,0x35,0x36]),[_0x2c0855([0x78])]:_0x2c0855([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]),[_0x2c0855([0x79])]:_0x2c0855([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]),[_0x2c0855([0x61,0x6c,0x67])]:_0x2c0855([0x45,0x53,0x32,0x35,0x36])},_0x56b1b8=_0x85cabf[_0x2c0855([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c0855([0x67,0x65,0x74])](_0x2c0855([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d5d69(){let _0x8bb910,_0x26d809=null,_0x396d05=null;try{if(_0x56b1b8==_0x2c0855([0x47,0x50,0x4c]))return _0x2c0855([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8bb910=_0x3db827(),!_0x8bb910)return _0x2c0855([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8bb910[_0x2c0855([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x396d05=_0x397397(_0x8bb910[_0x2c0855([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8bb910[_0x2c0855([0x6a,0x74,0x69])])),await _0x13c3cc()?_0x5b7492()?_0x1ab54e()?_0x2c0855([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e1dc4()?(_0x8bb910[_0x2c0855([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c0855([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26d809=_0x2b3107(_0x2c0855([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8bb910[_0x2c0855([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c0855([0x74,0x72,0x69,0x61,0x6c])&&(_0x26d809=_0x2b3107(_0x2c0855([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f1247()):_0x2c0855([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c0855([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c0855([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2c0855([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ab54e(){const _0x3b105b=[_0x2c0855([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c0855([0x74,0x72,0x69,0x61,0x6c])][_0x2c0855([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8bb910[_0x2c0855([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2da6fd/0x3e8:0xe10*_0x2984b2;return _0x8bb910[_0x2c0855([0x65,0x78,0x70])]<_0x3b105b;}function _0x5b7492(){const _0x4d22fb=_0x8bb910[_0x2c0855([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4d22fb&&(!!_0x4d22fb[_0x2c0855([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0855([0x2a]))||!!_0x4d22fb[_0x2c0855([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0855([0x55,0x50,0x4c,0x43])));}function _0x5e1dc4(){const _0x367bb8=_0x8bb910[_0x2c0855([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x367bb8||0x0==_0x367bb8[_0x2c0855([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a6fb6}=new URL(window[_0x2c0855([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x367bb8[_0x2c0855([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a6fb6))return!0x0;const _0x22d0d3=_0x2a6fb6[_0x2c0855([0x73,0x70,0x6c,0x69,0x74])](_0x2c0855([0x2e]));return _0x367bb8[_0x2c0855([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cf9fa=>_0x1cf9fa[_0x2c0855([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0855([0x2a])))[_0x2c0855([0x6d,0x61,0x70])](_0x515c6d=>_0x515c6d[_0x2c0855([0x73,0x70,0x6c,0x69,0x74])](_0x2c0855([0x2e])))[_0x2c0855([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54b362=>_0x54b362[_0x2c0855([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x22d0d3[_0x2c0855([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c0855([0x6d,0x61,0x70])](_0x29ca95=>Array(_0x22d0d3[_0x2c0855([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29ca95[_0x2c0855([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c0855([0x66,0x69,0x6c,0x6c])](_0x29ca95[0x0]===_0x2c0855([0x2a])?_0x2c0855([0x2a]):'')[_0x2c0855([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29ca95))[_0x2c0855([0x73,0x6f,0x6d,0x65])](_0x5c5c49=>_0x22d0d3[_0x2c0855([0x65,0x76,0x65,0x72,0x79])]((_0x4457d0,_0x32546b)=>_0x5c5c49[_0x32546b]===_0x4457d0||_0x5c5c49[_0x32546b]===_0x2c0855([0x2a])));}function _0x4f1247(){return _0x26d809&&_0x396d05?new window[(_0x2c0855([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f803f,_0x405317)=>{_0x26d809[_0x2c0855([0x74,0x68,0x65,0x6e])](_0x1f803f,_0x405317),_0x396d05[_0x2c0855([0x74,0x68,0x65,0x6e])](_0x5dd5f3=>{_0x5dd5f3!=_0x2c0855([0x56,0x61,0x6c,0x69,0x64])&&_0x1f803f(_0x5dd5f3);},_0x405317);}):_0x26d809||_0x396d05||_0x2c0855([0x56,0x61,0x6c,0x69,0x64]);}}function _0x397397(_0x117163,_0x4a1e4c){return new window[(_0x2c0855([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d8b33=>{if(_0x39b101())return _0x3d8b33(_0x2c0855([0x56,0x61,0x6c,0x69,0x64]));_0x5783ba(),_0x85cabf[_0x2c0855([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c0855([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7a274f=!0x1;const _0x286171=_0x5a4516();function _0x49b162(_0xf446d2){return!!_0xf446d2&&(typeof _0xf446d2===_0x2c0855([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf446d2===_0x2c0855([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf446d2[_0x2c0855([0x74,0x68,0x65,0x6e])]===_0x2c0855([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf446d2[_0x2c0855([0x63,0x61,0x74,0x63,0x68])]===_0x2c0855([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f2846(_0x4bd984){_0x5a5435(_0x4bd984)[_0x2c0855([0x74,0x68,0x65,0x6e])](_0x1649a3=>{if(!_0x1649a3||_0x1649a3[_0x2c0855([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c0855([0x6f,0x6b]))return _0x2c0855([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b8ca8(_0xbc5cc2(_0x286171+_0x4a1e4c))!=_0x1649a3[_0x2c0855([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c0855([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c0855([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c0855([0x74,0x68,0x65,0x6e])](_0x3467b0=>(_0x28282d(),_0x3467b0),()=>{const _0x244022=_0x40e9d8();return null==_0x244022?(_0x28282d(),_0x2c0855([0x56,0x61,0x6c,0x69,0x64])):_0x2c0855(_0x2da6fd-_0x244022>(0x7753083a^_0x44e0d2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c0855([0x74,0x68,0x65,0x6e])](_0x3d8b33)[_0x2c0855([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d8b33(_0x2c0855([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x305684=0x536962ba^_0x44e0d2;function _0x28282d(){const _0x2f0100=_0x2c0855([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b8ca8(_0xbc5cc2(_0x117163)),_0x4d8917=_0x404cd8(_0x5b8ca8(window[_0x2c0855([0x4d,0x61,0x74,0x68])][_0x2c0855([0x63,0x65,0x69,0x6c])](_0x2da6fd/_0x305684)));window[_0x2c0855([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c0855([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f0100,_0x4d8917);}function _0x40e9d8(){const _0x55ddaa=_0x2c0855([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b8ca8(_0xbc5cc2(_0x117163)),_0x133d58=window[_0x2c0855([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c0855([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55ddaa);return _0x133d58?window[_0x2c0855([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x404cd8(_0x133d58),0x10)*_0x305684:null;}function _0x5a5435(_0x2a71dd){return new window[(_0x2c0855([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5114c1,_0x3a92c1)=>{_0x2a71dd[_0x2c0855([0x74,0x68,0x65,0x6e])](_0x5114c1,_0x3a92c1),window[_0x2c0855([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a92c1,0x535e58fa^_0x44e0d2);});}}_0x85cabf[_0x2c0855([0x6f,0x6e])](_0x2c0855([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5cf86c,_0x197c20)=>{if(_0x197c20[0x0]!=_0x117163)return _0x3d8b33(_0x2c0855([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x197c20[0x1]={..._0x197c20[0x1],[_0x2c0855([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x286171};},{[_0x2c0855([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c0855([0x68,0x69,0x67,0x68])}),_0x85cabf[_0x2c0855([0x6f,0x6e])](_0x2c0855([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x645399=>{_0x49b162(_0x645399[_0x2c0855([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7a274f=!0x0,_0x2f2846(_0x645399[_0x2c0855([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c0855([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c0855([0x6c,0x6f,0x77])}),_0x169953[_0x2c0855([0x74,0x68,0x65,0x6e])](()=>{_0x7a274f||_0x3d8b33(_0x2c0855([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x39b101(){return _0x85cabf[_0x2c0855([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c0855([0x76,0x69,0x65,0x77])][_0x2c0855([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c0855([0x61,0x75,0x74,0x6f]);}function _0x5783ba(){_0x85cabf[_0x2c0855([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c0855([0x76,0x69,0x65,0x77])][_0x2c0855([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c0855([0x61,0x75,0x74,0x6f]);}}function _0x2b3107(_0x584c50){const _0x4c7b64=[new window[(_0x2c0855([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38d197=>setTimeout(_0x38d197,0x5356b2f6^_0x44e0d2)),_0x169953[_0x2c0855([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c0855([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x229934=>{let _0x4373c8=0x0;_0x85cabf[_0x2c0855([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c0855([0x6f,0x6e])](_0x2c0855([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xbc6853,_0x228bfc)=>{_0x228bfc[0x0][_0x2c0855([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4373c8++,_0x4373c8==(0x535f8dc2^_0x44e0d2)&&(_0x229934(),_0xbc6853[_0x2c0855([0x6f,0x66,0x66])]());});}))];return window[_0x2c0855([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c0855([0x72,0x61,0x63,0x65])](_0x4c7b64)[_0x2c0855([0x74,0x68,0x65,0x6e])](()=>_0x584c50);}async function _0x1f1622(){await _0x169953,_0x85cabf[_0x2c0855([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c0855([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ab317,_0x85cabf[_0x2c0855([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c0855([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ab317,_0x85cabf[_0x2c0855([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c0855([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ff0a5(_0x2aec0f){const _0x16799c=_0xa524fb();_0x85cabf[_0x16799c]=_0x2c0855([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2aec0f,_0x2aec0f!=_0x2c0855([0x56,0x61,0x6c,0x69,0x64])&&_0x1f1622();}function _0xa524fb(){const _0x275c50=window[_0x2c0855([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c0855([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c0855([0x6e,0x6f,0x77])]())[_0x2c0855([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c0855([0x2e]),'');let _0xbe7835=_0x2c0855([0x68]);for(let _0x388786=0x0;_0x388786<_0x275c50[_0x2c0855([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x388786+=0x2){let _0x5807d5=window[_0x2c0855([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x275c50[_0x2c0855([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x388786,_0x388786+0x2));_0x5807d5>=_0x23df09[_0x2c0855([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5807d5-=_0x23df09[_0x2c0855([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xbe7835+=_0x23df09[_0x5807d5];}return _0xbe7835;}function _0x3db827(){const _0x3d5183=_0x56b1b8[_0x2c0855([0x73,0x70,0x6c,0x69,0x74])](_0x2c0855([0x2e]));if(0x3!=_0x3d5183[_0x2c0855([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x480a6c(_0x3d5183[0x1]);function _0x480a6c(_0x59c347){const _0x1e0142=_0x33184d(_0x59c347);return _0x1e0142&&_0x8464ba()?_0x1e0142:null;function _0x8464ba(){const _0x19030b=_0x1e0142[_0x2c0855([0x6a,0x74,0x69])],_0x241b56=window[_0x2c0855([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19030b[_0x2c0855([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19030b[_0x2c0855([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x43da11={..._0x1e0142,[_0x2c0855([0x6a,0x74,0x69])]:_0x19030b[_0x2c0855([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19030b[_0x2c0855([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x43da11[_0x2c0855([0x76,0x63])],_0xbc5cc2(_0x43da11)==_0x241b56;}}}async function _0x13c3cc(){let _0x298d04=!0x0;try{const _0x554e17=_0x56b1b8[_0x2c0855([0x73,0x70,0x6c,0x69,0x74])](_0x2c0855([0x2e])),[_0x15cd1e,_0x4d458a,_0x26e71d]=_0x554e17;return _0x37476a(_0x15cd1e),await _0x4a7847(_0x15cd1e,_0x4d458a,_0x26e71d),_0x298d04;}catch{return!0x1;}function _0x37476a(_0x3ddfd6){const _0x18f0cd=_0x33184d(_0x3ddfd6);_0x18f0cd&&_0x18f0cd[_0x2c0855([0x61,0x6c,0x67])]==_0x2c0855([0x45,0x53,0x32,0x35,0x36])||(_0x298d04=!0x1);}async function _0x4a7847(_0x131532,_0x1fd475,_0x3739db){const _0x206f2e=window[_0x2c0855([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c0855([0x66,0x72,0x6f,0x6d])](_0x3a744a(_0x3739db),_0x319c6d=>_0x319c6d[_0x2c0855([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa4d71=new window[(_0x2c0855([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c0855([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x131532+_0x2c0855([0x2e])+_0x1fd475),_0x1a1ad3=window[_0x2c0855([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c0855([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a1ad3)return;const _0x41ac7f=await _0x1a1ad3[_0x2c0855([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c0855([0x6a,0x77,0x6b]),_0x72b05d,{[_0x2c0855([0x6e,0x61,0x6d,0x65])]:_0x2c0855([0x45,0x43,0x44,0x53,0x41]),[_0x2c0855([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c0855([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c0855([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a1ad3[_0x2c0855([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c0855([0x6e,0x61,0x6d,0x65])]:_0x2c0855([0x45,0x43,0x44,0x53,0x41]),[_0x2c0855([0x68,0x61,0x73,0x68])]:{[_0x2c0855([0x6e,0x61,0x6d,0x65])]:_0x2c0855([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x41ac7f,_0x206f2e,_0xa4d71)||(_0x298d04=!0x1);}}function _0x33184d(_0x5b0c03){return _0x5b0c03[_0x2c0855([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c0855([0x65,0x79]))?JSON[_0x2c0855([0x70,0x61,0x72,0x73,0x65])](_0x3a744a(_0x5b0c03)):null;}function _0x3a744a(_0x4774e3){return window[_0x2c0855([0x61,0x74,0x6f,0x62])](_0x4774e3[_0x2c0855([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c0855([0x2b]))[_0x2c0855([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c0855([0x2f])));}function _0xbc5cc2(_0x1dadc0){let _0x3f48b5=0x1505;function _0x7b47ed(_0x1a518e){for(let _0x109fa6=0x0;_0x109fa6<_0x1a518e[_0x2c0855([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x109fa6++){const _0x27537d=_0x1a518e[_0x2c0855([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x109fa6);_0x3f48b5=(_0x3f48b5<<0x5)+_0x3f48b5+_0x27537d,_0x3f48b5&=_0x3f48b5;}}function _0x18f3cc(_0x480106){Array[_0x2c0855([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x480106)?_0x480106[_0x2c0855([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18f3cc):_0x480106&&typeof _0x480106==_0x2c0855([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c0855([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x480106)[_0x2c0855([0x73,0x6f,0x72,0x74])]()[_0x2c0855([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4dd571,_0x3d197f])=>{_0x7b47ed(_0x4dd571),_0x18f3cc(_0x3d197f);}):_0x7b47ed(window[_0x2c0855([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x480106));}return _0x18f3cc(_0x1dadc0),_0x3f48b5>>>0x0;}function _0x5b8ca8(_0x28d987){return _0x28d987[_0x2c0855([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c0855([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c0855([0x30]));}function _0x404cd8(_0x70fb45){return _0x70fb45[_0x2c0855([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c0855([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c0855([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ab317(){}function _0x2c0855(_0x4bc262){return _0x4bc262['map'](_0x2b18db=>String['fromCharCode'](_0x2b18db))['join']('');}_0x4ff0a5(await _0x5d5d69());}(this);}['_initSchema'](){const _0x451976=this['editor']['model']['schema'];_0x451976['isRegistered']('imageBlock')&&_0x451976['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x451976['isRegistered']('imageInline')&&_0x451976['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x519e87=this['editor'];_0x519e87['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x519e87['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x507ce2=>_0x507ce2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x10d019=_0x519e87['commands']['get']('replaceImageSource');_0x10d019&&this['listenTo'](_0x10d019,'cleanupImage',(_0xb3fcc7,[_0x3da965,_0x4834e5])=>{_0x3da965['removeAttribute']('uploadcareImageId',_0x4834e5);});}['_initConfig'](){const _0x36a838=this['editor']['config']['get']('uploadcare.uploader')||{},_0x56457d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5782e8(_0x132dfa['document'],'uc-config',{..._0x36a838,'pubkey':_0x56457d,'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']=_0x250d04=>{if('closeMax'==_0x250d04)return'#uc-icon-arrow-down';},_0x132dfa['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5782e8(_0x132dfa['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x132dfa['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5b58a3=this['editor']['commands']['get']('insertImage');_0x5b58a3&&this['listenTo'](_0x5b58a3,'execute',()=>{const _0x24a333=this['editor']['model']['document']['selection']['getSelectedElement']();_0x24a333&&_0x24a333['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x24a333);});});const _0x58ba34=this['editor']['commands']['get']('uploadcareImageReplace');_0x58ba34&&this['listenTo'](_0x58ba34,'execute',()=>{const _0x48d94b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48d94b&&_0x48d94b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x48d94b);});});}}class tt extends _0x2c89f1{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1457d5){super(_0x1457d5),_0x1457d5['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x17d064['defineComponents'](_0x17d064),this['_defineLocale']();}['_defineLocale'](){const _0x583e9a=this['editor']['config']['get']('uploadcare.locale'),_0x562b46=this['editor']['locale']['contentLanguage'];_0x583e9a&&_0x17d064['defineLocale'](_0x562b46,_0x583e9a);}}class ii extends _0x36d27c{constructor(_0x1a1cb6){super(_0x1a1cb6);const t=_0x1a1cb6['t'],_0x53c249=this['bindTemplate'],_0x2c4aba=new _0x5687fd();_0x2c4aba['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':[_0x2c4aba,{'text':_0x53c249['to']('imageUploadProgress',_0x2ec08f=>t('Loading\x20image...')+'\x20('+(_0x2ec08f||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 ti extends _0x36d27c{constructor(_0x21d9a5){super(_0x21d9a5);const t=_0x21d9a5['t'];this['set']('errorType',null);const _0x1b2641=new _0x37fe92(_0x21d9a5);_0x1b2641['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1b2641['withText']=!0x0,_0x1b2641['class']='ck-button-action',_0x1b2641['on']('execute',()=>{this['fire']('retry');}),_0x1b2641['bind']('isVisible')['to'](this,'errorType',_0x184b71=>'NotFound'!==_0x184b71);const _0xda6c5a=new _0x44c58c();_0xda6c5a['content']=_0x495b38,_0xda6c5a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x40ae3d=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':[_0xda6c5a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x40ae3d['to']('errorType',_0x39c92c=>t('NotFound'!==_0x39c92c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1b2641]},{'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 ei extends _0x36d27c{constructor(_0x4b7cfd,_0x425606){super(_0x4b7cfd);const _0x25ed81=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x425606,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x25ed81['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x573544,_0x5c440d,_0x1f889d){super(_0x573544),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x573544),this['_errorView']=new ti(_0x573544),this['_editingView']=new ei(_0x573544,_0x1f889d),this['_focusableView']=new _0x36d27c(_0x573544),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5c440d),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'],_0x50d6af=>{this['_addUploadcareImageEditorListeners'](_0x50d6af);});}),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'](_0x26cd06,_0xf2cda3){const _0x49de12='uc-cloud-image-editor',_0x249687=_0x26cd06['querySelector'](_0x49de12);if(_0x249687)return _0xf2cda3(_0x249687);const _0x3d40db=new MutationObserver(_0x4afd16=>{const _0x20bbb3=_0x4afd16['filter'](_0x2d3504=>_0x2d3504['target']===_0x26cd06&&_0x2d3504['addedNodes']['length']>0x0&&_0x2d3504['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x49de12);_0x20bbb3['length']&&(_0x3d40db['disconnect'](),_0xf2cda3(_0x20bbb3[0x0]['addedNodes'][0x0]));});_0x3d40db['observe'](_0x26cd06,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x24c16f){_0x24c16f['addEventListener']('apply',_0x23f05e=>{this['fire']('apply',{'imageSrc':_0x23f05e['detail']['cdnUrl']});}),_0x24c16f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4b9ecb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x54014f,_0x10dff2,_0x31878e){super(),this['_editor']=_0x54014f,this['_dialog']=_0x10dff2,this['_imageElement']=_0x31878e,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 _0x319d40=this['_imageElement'],_0x3fbfb8=_0x319d40['getAttribute']('uploadcareImageId'),_0x119ce1=_0x319d40['getAttribute']('src');if(_0x3fbfb8)await this['_loadImageInfo'](_0x3fbfb8,_0x119ce1);else{if(this['_imageCache']['has'](_0x119ce1)){const _0x56c4f8=this['_imageCache']['get'](_0x119ce1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56c4f8['url'],this['imageDimension']=_0x56c4f8['dimension'],this['imageId']=_0x56c4f8['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xb5e700}=this['_editor'],t=_0xb5e700['t'],_0x3b31e0=new X(_0xb5e700,this['imageStatus'],this['_attributes']);_0x3b31e0['bind']('status')['to'](this,'imageStatus'),_0x3b31e0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3b31e0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3b31e0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3b31e0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4bf427,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3b31e0,'position':_0x522b3a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3b31e0['focus']();},'onHide':()=>{_0x3b31e0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1dc69c=>!A(_0x1dc69c,_0x3b31e0['element'])}});}['_loadImageInfo'](_0x161788,_0x149618){return j['getInfo'](_0x161788,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2b1050=>{const {width:_0x4a849a,height:_0xff5465}=_0x2b1050['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x149618,this['imageDimension']={'width':_0x4a849a,'height':_0xff5465},this['imageId']=_0x161788;})['catch'](_0x464cae=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x464cae['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5dfbde,_0x1ed8cb){return this['_getImageAsFile'](_0x5dfbde)['then'](_0x100a81=>j['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':_0x1ed8cb['signal'],'file':_0x100a81,'onProgress':_0x469edc=>{_0x469edc&&_0x469edc['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x469edc['value']));}}))['then'](_0x423e68=>{const {width:_0x55d7e3,height:_0x2a02dd}=_0x423e68['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x423e68['cdnUrl'],this['imageDimension']={'width':_0x55d7e3,'height':_0x2a02dd},this['imageId']=_0x423e68['uuid'],this['imageUploadProgress']=null;const _0x1c2bc1=_0x5dfbde['getAttribute']('src');this['_imageCache']['set'](_0x1c2bc1,{'id':_0x423e68['uuid'],'url':_0x423e68['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x512776=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x512776['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4d065c,_0x492996){_0x4d065c['on']('apply',(_0x4ad524,_0x4752d6)=>{this['_replaceImage'](_0x492996,_0x4752d6['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4d065c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4d065c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xf3f1b7,_0x2a530d,_0x40d111){const _0x1d6a33=this['_editor'],{width:_0x726c43,height:_0x2685b5}=S(_0x2a530d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x25323a,imageSources:_0x9221b5}=C(_0x2a530d,_0x726c43);_0x1d6a33['model']['change'](_0x3b1931=>{if('$graveyard'===_0xf3f1b7['root']['rootName']){_0x1d6a33['execute']('insertImage',{'imageType':_0xf3f1b7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xf3f1b7['getAttributes']()),'uploadcareImageId':_0x40d111,'src':_0x25323a,'sources':_0x9221b5,'width':_0x726c43,'height':_0x2685b5}});const _0x514acd=_0xf3f1b7['getChildren']();_0xf3f1b7=_0x1d6a33['model']['document']['selection']['getSelectedElement']();for(const _0x574953 of _0x514acd)_0x3b1931['append'](_0x3b1931['cloneElement'](_0x574953),_0xf3f1b7);}else _0x3b1931['setSelection'](_0xf3f1b7,'on'),_0x1d6a33['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xf3f1b7['getAttributes']()),'uploadcareImageId':_0x40d111,'src':_0x25323a,'sources':_0x9221b5,'width':_0x726c43,'height':_0x2685b5},_0xf3f1b7);_0x3b1931['setSelection'](_0xf3f1b7,'on');});}async['_getImageAsFile'](_0x45fa35){const _0x4cdf49=_0x132dfa['window'],_0x263f0=_0x132dfa['document']['location']['href'],_0x19c37a=new _0x4cdf49['URL'](_0x45fa35['getAttribute']('src'),_0x263f0);if('data:'===_0x19c37a['protocol']){const _0x38fec5=_0x19c37a['href']['split'](','),_0x1f11f0=_0x38fec5[0x0]['match'](/:(.*?);/)[0x1],_0x1bd4ce=_0x1f11f0['split']('/')[0x1],_0x374f97=_0x4cdf49['atob'](_0x38fec5[_0x38fec5['length']-0x1]);let _0x4f1c0c=_0x374f97['length'];const _0x17c934=new _0x4cdf49['Uint8Array'](_0x4f1c0c);for(;_0x4f1c0c--;)_0x17c934[_0x4f1c0c]=_0x374f97['charCodeAt'](_0x4f1c0c);return new _0x4cdf49['File']([_0x17c934],'image.'+_0x1bd4ce,{'type':_0x1f11f0});}const _0x5b7c6d=_0x19c37a['href']['split']('/'),_0x22f935=_0x5b7c6d[_0x5b7c6d['length']-0x1],_0x3b1db1=_0x22f935['split']('.')[0x1];return _0x4cdf49['fetch'](_0x19c37a['href'])['then'](_0x599da7=>_0x599da7['clone']()['blob']())['then'](_0x2b8671=>new _0x4cdf49['File']([_0x2b8671],_0x22f935,{'type':'image/'+_0x3b1db1}));}}class O extends _0x517cee{['imageEditController'];static get['requires'](){return[_0x45c0c7];}['_isEditable'];constructor(_0x3004fa){super(_0x3004fa),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4d625e){const _0x3b2396=G(_0x4d625e);return _0x1ef89f=>!(!_0x1ef89f||!_0x1ef89f['is']('element','imageBlock')&&!_0x1ef89f['is']('element','imageInline'))&&(!!_0x1ef89f['hasAttribute']('uploadcareImageId')||!!_0x1ef89f['hasAttribute']('src')&&_0x3b2396(_0x1ef89f['getAttribute']('src')));}(_0x3004fa['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x208ade=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x208ade);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5cb57f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5cb57f&&(_0x5cb57f['is']('element','imageBlock')||_0x5cb57f['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x45c0c7),_0x5cb57f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x517cee{['refresh'](){const _0x7fdeee=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x7fdeee&&(_0x7fdeee['is']('element','imageBlock')||_0x7fdeee['is']('element','imageInline')));}['execute'](_0x30bc6a){const _0x366c03=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x29a8fd=>{_0x29a8fd['setAttributes'](_0x30bc6a,_0x366c03),_0x29a8fd['removeAttribute']('srcset',_0x366c03),_0x29a8fd['removeAttribute']('sizes',_0x366c03);});}}class m extends _0x2c89f1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x25f61f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b0386}=this;_0x1b0386['commands']['add']('uploadcareImageEdit',new O(_0x1b0386)),_0x1b0386['commands']['add']('uploadcareImageReplace',new R(_0x1b0386));}}class g extends _0x2c89f1{['_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 _0x327d26=this['editor'];_0x327d26['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5dc712=>{const _0x155d8a=_0x327d26['commands']['get']('uploadcareImageEdit'),_0x235591=new _0x37fe92(_0x5dc712),t=_0x5dc712['t'];return _0x235591['set']({'icon':_0x4bf427,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x235591['bind']('isEnabled')['to'](_0x155d8a),_0x235591['bind']('isOn')['to'](_0x155d8a,'isActive'),this['listenTo'](_0x235591,'execute',()=>{_0x327d26['execute']('uploadcareImageEdit'),_0x327d26['editing']['view']['focus']();}),_0x235591;}),this['_initConfig']();}['_initConfig'](){const _0x12bf02=_0x5782e8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x12bf02),this['listenTo'](this['editor'],'destroy',()=>{_0x12bf02['remove']();});}}class et extends _0x2c89f1{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as 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':_0x34e569=>0x1!=_0x34e569}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x52774b=>{const {af:{dictionary:_0xbbda00,getPluralForm:_0x46f1e0}}={'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':_0x170494=>0x1!=_0x170494}};_0x52774b['af']||={'dictionary':{},'getPluralForm':null},_0x52774b['af']['dictionary']=Object['assign'](_0x52774b['af']['dictionary'],_0xbbda00),_0x52774b['af']['getPluralForm']=_0x46f1e0;})(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':_0xb13cf2=>0x0==_0xb13cf2?0x0:0x1==_0xb13cf2?0x1:0x2==_0xb13cf2?0x2:_0xb13cf2%0x64>=0x3&&_0xb13cf2%0x64<=0xa?0x3:_0xb13cf2%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x24d5af=>{const {ar:{dictionary:_0x7e4bab,getPluralForm:_0x4b48b6}}={'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':_0x3333c6=>0x0==_0x3333c6?0x0:0x1==_0x3333c6?0x1:0x2==_0x3333c6?0x2:_0x3333c6%0x64>=0x3&&_0x3333c6%0x64<=0xa?0x3:_0x3333c6%0x64>=0xb?0x4:0x5}};_0x24d5af['ar']||={'dictionary':{},'getPluralForm':null},_0x24d5af['ar']['dictionary']=Object['assign'](_0x24d5af['ar']['dictionary'],_0x7e4bab),_0x24d5af['ar']['getPluralForm']=_0x4b48b6;})(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':_0x4402a6=>0x1!=_0x4402a6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e23c2=>{const {ast:{dictionary:_0x3d7311,getPluralForm:_0x5f209f}}={'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':_0x19be68=>0x1!=_0x19be68}};_0x1e23c2['ast']||={'dictionary':{},'getPluralForm':null},_0x1e23c2['ast']['dictionary']=Object['assign'](_0x1e23c2['ast']['dictionary'],_0x3d7311),_0x1e23c2['ast']['getPluralForm']=_0x5f209f;})(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':_0x21e655=>0x1!=_0x21e655}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x16d8f4=>{const {az:{dictionary:_0x30d00f,getPluralForm:_0x19936b}}={'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':_0x2252e7=>0x1!=_0x2252e7}};_0x16d8f4['az']||={'dictionary':{},'getPluralForm':null},_0x16d8f4['az']['dictionary']=Object['assign'](_0x16d8f4['az']['dictionary'],_0x30d00f),_0x16d8f4['az']['getPluralForm']=_0x19936b;})(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':_0x2ee238=>_0x2ee238%0xa==0x1&&_0x2ee238%0x64!=0xb?0x0:_0x2ee238%0xa>=0x2&&_0x2ee238%0xa<=0x4&&(_0x2ee238%0x64<0xa||_0x2ee238%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x55786a=>{const {be:{dictionary:_0x340b21,getPluralForm:_0x39146d}}={'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':_0x3f3e58=>_0x3f3e58%0xa==0x1&&_0x3f3e58%0x64!=0xb?0x0:_0x3f3e58%0xa>=0x2&&_0x3f3e58%0xa<=0x4&&(_0x3f3e58%0x64<0xa||_0x3f3e58%0x64>=0x14)?0x1:0x2}};_0x55786a['be']||={'dictionary':{},'getPluralForm':null},_0x55786a['be']['dictionary']=Object['assign'](_0x55786a['be']['dictionary'],_0x340b21),_0x55786a['be']['getPluralForm']=_0x39146d;})(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':_0x491e0c=>0x1!=_0x491e0c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x18df9b=>{const {bg:{dictionary:_0x4eea0a,getPluralForm:_0x331459}}={'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':_0x36ad9f=>0x1!=_0x36ad9f}};_0x18df9b['bg']||={'dictionary':{},'getPluralForm':null},_0x18df9b['bg']['dictionary']=Object['assign'](_0x18df9b['bg']['dictionary'],_0x4eea0a),_0x18df9b['bg']['getPluralForm']=_0x331459;})(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':_0x81cf4e=>0x1!=_0x81cf4e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x21d8eb=>{const {bn:{dictionary:_0x527d7f,getPluralForm:_0x385a15}}={'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':_0x1d7ceb=>0x1!=_0x1d7ceb}};_0x21d8eb['bn']||={'dictionary':{},'getPluralForm':null},_0x21d8eb['bn']['dictionary']=Object['assign'](_0x21d8eb['bn']['dictionary'],_0x527d7f),_0x21d8eb['bn']['getPluralForm']=_0x385a15;})(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':_0x175690=>_0x175690%0xa==0x1&&_0x175690%0x64!=0xb?0x0:_0x175690%0xa>=0x2&&_0x175690%0xa<=0x4&&(_0x175690%0x64<0xa||_0x175690%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x8c322a=>{const {bs:{dictionary:_0x5d2849,getPluralForm:_0x5a87d7}}={'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':_0xd9453f=>_0xd9453f%0xa==0x1&&_0xd9453f%0x64!=0xb?0x0:_0xd9453f%0xa>=0x2&&_0xd9453f%0xa<=0x4&&(_0xd9453f%0x64<0xa||_0xd9453f%0x64>=0x14)?0x1:0x2}};_0x8c322a['bs']||={'dictionary':{},'getPluralForm':null},_0x8c322a['bs']['dictionary']=Object['assign'](_0x8c322a['bs']['dictionary'],_0x5d2849),_0x8c322a['bs']['getPluralForm']=_0x5a87d7;})(window['CKEDITOR_TRANSLATIONS']||={});
|