@ckeditor/ckeditor5-uploadcare 47.6.1-alpha.1 → 47.6.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 _0x4f1a6a,Command as _0x1cb1a2}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x57a3ad,IconGooglePhotos as _0x4fa165,IconGoogleDrive as _0x5c3837,IconFacebook as _0x240bae,IconDropbox as _0xfa4f6b,IconUploadcareLink as _0x2295ec,IconUploadcareImageUpload as _0x36cb66,IconError as _0x336bb5,IconUploadcareImageEdit as _0x3c0aa3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xf03747,MenuBarMenuListItemButtonView as _0x21ca07,View as _0x3913b3,FocusCycler as _0xc0c7ff,Dialog as _0xa7f385,DialogViewPosition as _0x3b0daf,SpinnerView as _0x4ff9e7,IconView as _0x379f97,Notification as _0x2d171e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x21ef37,DomEmitterMixin as _0x1e7440,global as _0x36efa3,getAncestors as _0x40e4e9,ObservableMixin as _0x3fa845,uid as _0x1c21c3,createElement as _0x390ae4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1dfed0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2a9603,info as _0x3cdd70}from'@uploadcare/upload-client';import*as _0x1cd729 from'@uploadcare/file-uploader';var i=function(_0x331bc4){return _0x331bc4['Local']='local',_0x331bc4['URL']='url',_0x331bc4['Dropbox']='dropbox',_0x331bc4['GDrive']='gdrive',_0x331bc4['Facebook']='facebook',_0x331bc4['GPhotos']='gphotos',_0x331bc4['OneDrive']='onedrive',_0x331bc4;}({});function _(_0x5d7afb,_0x5bd9ac,_0x4398da){const t=_0x5d7afb['t'],_0xab34ac=_0x5d7afb['t'];switch(_0x5bd9ac){case i['Local']:return{'text':_0xab34ac('Insert'===_0x4398da?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xab34ac('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4398da?_0xab34ac('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xab34ac('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4398da?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4398da?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4398da?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4398da?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4398da?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5bd9ac;}}class e extends _0x4f1a6a{['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 _0x382d5e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3ca831;for(const _0x1d5085 in _0x382d5e){const _0x32dcf9=_0x1d5085,_0x449f74=_0x382d5e[_0x32dcf9];if('uploadcareLicenseKeyValid'==_0x449f74||'uploadcareLicenseKeyInvalid'==_0x449f74||'uploadcareLicenseKeyExpired'==_0x449f74||'uploadcareLicenseKeyDomainLimit'==_0x449f74||'uploadcareLicenseKeyNotAllowed'==_0x449f74||'uploadcareLicenseKeyEvaluationLimit'==_0x449f74||'uploadcareLicenseKeyUsageLimit'==_0x449f74){delete _0x382d5e[_0x32dcf9],_0x3ca831=_0x449f74,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3ca831&&_0x382d5e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3ca831&&_0x382d5e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3ca831&&_0x382d5e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3ca831&&_0x382d5e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3ca831&&_0x382d5e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3ca831&&_0x382d5e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4a46b1}=this,_0xd0ab9a=_0x4a46b1['commands']['get']('uploadcare');if(!_0xd0ab9a)return;const _0x1f4ffa=this['_normalizeConfigSourceList'](_0x4a46b1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2c311a,_0x434896)=>{const _0x180822=this['_getIntegrationKey'](_0x434896['type']);return _0x2c311a[_0x180822]||(_0x2c311a[_0x180822]=[]),_0x2c311a[_0x180822]['push'](_0x434896),_0x2c311a;},{});_0x4a46b1['plugins']['has']('ImageInsertUI')&&_0x4a46b1['commands']['get']('uploadcare')&&Object['entries'](_0x1f4ffa)['forEach'](([_0x39fe43,_0x5a1745])=>{_0x4a46b1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x39fe43,'observable':()=>_0xd0ab9a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5a1745),'formViewCreator':()=>this['_createDropdownButtons'](_0x5a1745),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5a1745),'override':'assetManager'!==_0x39fe43});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x49af99){const {locale:_0x568fb9}=this['editor'];return _0x49af99['map'](_0x1b1726=>{const _0x3c7b7f=_(_0x568fb9,_0x1b1726,'Insert');switch(_0x1b1726){case i['Local']:return{'icon':_0x36cb66,'type':i['Local'],..._0x3c7b7f};case i['URL']:return{'icon':_0x2295ec,'type':i['URL'],..._0x3c7b7f};case i['Dropbox']:return{'icon':_0xfa4f6b,'type':i['Dropbox'],..._0x3c7b7f};case i['Facebook']:return{'icon':_0x240bae,'type':i['Facebook'],..._0x3c7b7f};case i['GDrive']:return{'icon':_0x5c3837,'type':i['GDrive'],..._0x3c7b7f};case i['GPhotos']:return{'icon':_0x4fa165,'type':i['GPhotos'],..._0x3c7b7f};case i['OneDrive']:return{'icon':_0x57a3ad,'type':i['OneDrive'],..._0x3c7b7f};}});}['_getIntegrationKey'](_0x4af945){switch(_0x4af945){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4cb7de,_0x4f6c5c){const _0x3d0699=this['editor'],_0x28390e=new _0x4cb7de(_0x3d0699['locale']),_0x1a4b35=_0x3d0699['commands']['get']('uploadcare');return _0x28390e['bind']('isEnabled')['to'](_0x1a4b35),_0x28390e['on']('execute',()=>{_0x1a4b35['execute'](_0x4f6c5c);}),_0x28390e;}['_createToolbarButton'](_0x2a76d2){const {locale:_0x44ac60}=this['editor'],_0x3f04a0=this['editor']['plugins']['get']('ImageInsertUI'),_0x2ab29e=_0x2a76d2[0x0],_0x4ed9c0=this['_createButton'](_0xf03747,_0x2ab29e['type']);return _0x4ed9c0['icon']=_0x2ab29e['icon'],_0x4ed9c0['bind']('label')['to'](_0x3f04a0,'isImageSelected',_0x339e11=>_(_0x44ac60,_0x2ab29e['type'],_0x339e11?'Replace':'Insert')['text']),_0x4ed9c0['tooltip']=!0x0,_0x4ed9c0;}['_createDropdownButtons'](_0x11fd8f){const {locale:_0x85b446}=this['editor'],_0x1f2a5f=this['editor']['plugins']['get']('ImageInsertUI');return _0x11fd8f['map'](_0x421a61=>{const _0x1bde73=this['_createButton'](_0xf03747,_0x421a61['type']);return _0x1bde73['withText']=!0x0,_0x1bde73['icon']=_0x421a61['icon'],_0x1bde73['bind']('label')['to'](_0x1f2a5f,'isImageSelected',_0x1ecfc2=>_(_0x85b446,_0x421a61['type'],_0x1ecfc2?'Replace':'Insert')['text']),_0x1bde73;});}['_createMenuBarButtons'](_0xb10d89){return _0xb10d89['map'](_0x405794=>{const _0x349e37=this['_createButton'](_0x21ca07,_0x405794['type']);return _0x349e37['icon']=_0x405794['icon'],_0x349e37['label']=_0x405794['shortText'],_0x349e37;});}}class V extends _0x3913b3{['focusTracker'];['focusCycler'];constructor(_0x5e6eed){super(_0x5e6eed),this['focusTracker']=new _0x21ef37(),this['focusCycler']=new _0xc0c7ff({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x5e69b4,_0x7ed64d){super(_0x5e69b4),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-'+_0x7ed64d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x14e156,_0x301b36){const _0x26cf41=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x26c6e8=>_0x26c6e8<=_0x301b36)['map'](_0x5191bf=>_0x14e156['replace'](/\/$/,'')+'/-/resize/'+_0x5191bf+'x/\x20'+_0x5191bf+'w');return{'imageFallbackUrl':_0x14e156,'imageSources':[{'srcset':_0x26cf41['join'](',\x20'),'sizes':'(max-width:\x20'+_0x301b36+'px)\x20100vw,\x20'+_0x301b36+'px','type':'image/webp'}]};}function F(_0x2b70f3,_0x59ca71,_0x526199){const _0x419207=_0x2b70f3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x419207?parseInt(_0x419207[0x1],0xa):_0x59ca71,'height':_0x419207?parseInt(_0x419207[0x2],0xa):_0x526199};}function p(_0x5ea2e0,_0x36ee3d){const _0x48156b=new(_0x1e7440())(),_0x11627e=_0x5ea2e0['plugins']['get']('ImageUtils'),_0x17e9fe=_0x5ea2e0['editing']['mapper']['toViewElement'](_0x36ee3d),_0x24ea1c=_0x11627e['findViewImgElement'](_0x17e9fe),_0x4bf356=_0x5ea2e0['editing']['view']['domConverter']['viewToDom'](_0x24ea1c),_0x13a08d=_0x36ee3d['getAttribute']('width'),_0x235aa3=_0x36ee3d['getAttribute']('height'),_0x50851e='image-processing';_0x5ea2e0['editing']['view']['change'](_0x45e710=>{_0x45e710['addClass'](_0x50851e,_0x17e9fe),_0x45e710['setStyle']('aspect-ratio',_0x13a08d+'/'+_0x235aa3,_0x24ea1c);}),_0x48156b['listenTo'](_0x4bf356,'load',()=>{_0x48156b['stopListening'](_0x4bf356,'load'),_0x5ea2e0['editing']['view']['change'](_0x5aabb1=>{_0x5aabb1['removeClass'](_0x50851e,_0x17e9fe),_0x5aabb1['removeStyle']('aspect-ratio',_0x24ea1c);});});}function R(_0x412517){if(Array['isArray'](_0x412517)){const _0x1e5906=_0x412517['map'](R);return _0x32e12f=>_0x1e5906['some'](_0x5ccfe5=>_0x5ccfe5(_0x32e12f));}if('origin'==_0x412517){const _0x52764a=_0x36efa3['window']['location']['origin'];return _0x32a787=>new URL(_0x32a787,_0x36efa3['document']['baseURI'])['origin']==_0x52764a;}return'function'==typeof _0x412517?_0x412517:_0x412517 instanceof RegExp?_0x1cd381=>!(!_0x1cd381['match'](_0x412517)&&!_0x1cd381['replace'](/^https?:\/\//,'')['match'](_0x412517)):()=>!0x1;}function M(_0x122ae6,_0x50efc4){return _0x40e4e9(_0x122ae6['target'])['includes'](_0x50efc4);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3fa845(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x509114,_0x3f7228,_0x5b5d91){super(),this['_editor']=_0x509114,this['_editing']=_0x3f7228,this['_dialog']=_0x509114['plugins']['get'](_0xa7f385),this['_api']=_0x3f7228['ctxElement']['getAPI'](),this['_type']=_0x5b5d91,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:_0x971811,model:_0x352735}=this['_editor'],_0x25f3a8=_0x352735['document']['selection']['getSelectedElement'](),_0x5c792a=_0x25f3a8&&(_0x25f3a8['is']('element','imageBlock')||_0x25f3a8['is']('element','imageInline'));this['_formView']=new S(_0x971811,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x36cb66,'title':_(_0x971811,this['_type'],_0x5c792a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3b0daf['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5a83bc=>!M(_0x5a83bc,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4fdffd}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4b9cca=>{const _0x4d12d9=_0x4fdffd['length'];for(const _0x9b7a27 of _0x4fdffd){const _0x53ce3b=_0x9b7a27===_0x4fdffd[_0x4d12d9-0x1],{cdnUrl:_0x4f8610,fileInfo:_0x57169e}=_0x9b7a27;if(!_0x4f8610||!_0x57169e)continue;const {width:_0x2dcaa5,height:_0x717892}=_0x57169e['imageInfo'],_0x1c1072=F(_0x4f8610,_0x2dcaa5,_0x717892),_0x20ad77=C(_0x4f8610,_0x1c1072['width']),_0x39e7b1={'id':_0x57169e['uuid'],'type':'image','attributes':{'imageDimension':_0x1c1072,..._0x20ad77}};this['_insertAsset'](_0x39e7b1,_0x53ce3b,_0x4b9cca);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x493313=>{'idle'===_0x493313['detail']['status']&&!_0x493313['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x491202,_0x1df88b,_0x181638){const _0x54dbd8=this['_editor']['model']['document']['selection'],_0x2aa9e7=_0x54dbd8['getSelectedElement'](),_0x14f817=!(!_0x2aa9e7||!_0x2aa9e7['is']('element','imageInline'));_0x181638['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x491202,_0x14f817),_0x1df88b||_0x181638['setSelection'](_0x54dbd8['getLastPosition']());}['_insertImage'](_0x4f3724,_0x1dfb36){const _0x14de27=this['_editor'],{imageDimension:_0x138a43,imageFallbackUrl:_0x14d740,imageSources:_0xbaaac}=_0x4f3724['attributes'];_0x14de27['execute']('insertImage',{'imageType':_0x1dfb36?'imageInline':null,'source':{'uploadcareImageId':_0x4f3724['id'],'src':_0x14d740,'sources':_0xbaaac,..._0x138a43}});}}class w extends _0x1cb1a2{['_editing'];['_controller']=null;static get['requires'](){return[_0xa7f385,o];}constructor(_0x32d400){super(_0x32d400),this['_editing']=_0x32d400['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4c6bf0){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4c6bf0);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x21aa95,..._0x476404}){return _0x2a9603(_0x21aa95,_0x476404);}static['getInfo'](_0x15a0d8,_0x394489){return _0x3cdd70(_0x15a0d8,_0x394489);}}class f extends _0x4f1a6a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1dfed0,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x11f5d3=this['editor'];if(!!!_0x11f5d3['config']['get']('uploadcare'))return;_0x11f5d3['plugins']['get'](_0x1dfed0)['createUploadAdapter']=_0x6dab7c=>new k(_0x6dab7c,_0x11f5d3),_0x11f5d3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5916b9,{imageElement:_0x2f41a4,data:_0x5e0627})=>{_0x11f5d3['model']['change'](_0x99999=>{_0x99999['setAttribute']('uploadcareImageId',_0x5e0627['uploadcareImageId'],_0x2f41a4);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x7be448,_0x3d56a1){this['loader']=_0x7be448,this['editor']=_0x3d56a1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3bbf79=await this['loader']['file'];return j['upload']({'file':_0x3bbf79,'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':_0x5b4045=>{_0x5b4045&&_0x5b4045['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5b4045['value']);}})['then'](async _0x437f76=>{const {imageFallbackUrl:_0x34e7f6,imageSources:_0x448f81}=C(_0x437f76['cdnUrl'],_0x437f76['imageInfo']['width']);return{'uploadcareImageId':_0x437f76['uuid'],'default':_0x34e7f6,'sources':_0x448f81};})['catch'](()=>{const _0x5c8dfc=t('Cannot\x20upload\x20file:')+('\x20'+_0x3bbf79['name']+'.');return Promise['reject'](_0x5c8dfc);});}['abort'](){this['controller']['abort']();}}class o extends _0x4f1a6a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xa7f385];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3fb253){super(_0x3fb253),this['ucContextId']=_0x1c21c3();}['init'](){const _0x227f87=this['editor'];_0x227f87['commands']['add']('uploadcare',new w(_0x227f87));}['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 _0x399b62=_0x36efa3['document']['querySelector']('input[uploadcare-file-input]');_0x399b62&&_0x399b62['remove']();}),async function(_0x49c0ba){const _0x524747=_0x3c7649([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]),_0x315c41=0x535f8c3a,_0x2127bc=0x53580832^_0x315c41,_0x5e6256=window[_0x3c7649([0x44,0x61,0x74,0x65])][_0x3c7649([0x6e,0x6f,0x77])](),_0x2eb20d=_0x49c0ba[_0x3c7649([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4bbda2=new window[(_0x3c7649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21b576=>{_0x2eb20d[_0x3c7649([0x6f,0x6e,0x63,0x65])](_0x3c7649([0x72,0x65,0x61,0x64,0x79]),_0x21b576);}),_0x3ede2d={[_0x3c7649([0x6b,0x74,0x79])]:_0x3c7649([0x45,0x43]),[_0x3c7649([0x75,0x73,0x65])]:_0x3c7649([0x73,0x69,0x67]),[_0x3c7649([0x63,0x72,0x76])]:_0x3c7649([0x50,0x2d,0x32,0x35,0x36]),[_0x3c7649([0x78])]:_0x3c7649([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]),[_0x3c7649([0x79])]:_0x3c7649([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]),[_0x3c7649([0x61,0x6c,0x67])]:_0x3c7649([0x45,0x53,0x32,0x35,0x36])},_0x20bea5=_0x2eb20d[_0x3c7649([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c7649([0x67,0x65,0x74])](_0x3c7649([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e56bc(){let _0x1c7126,_0x471a14=null,_0x142ec3=null;try{if(_0x20bea5==_0x3c7649([0x47,0x50,0x4c]))return _0x3c7649([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c7126=_0x58de9d(),!_0x1c7126)return _0x3c7649([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c7126[_0x3c7649([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x142ec3=_0x1bc5f3(_0x1c7126[_0x3c7649([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c7126[_0x3c7649([0x6a,0x74,0x69])])),await _0x174030()?_0xb5b372()?_0x4f803d()?_0x3c7649([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x512f33()?(_0x1c7126[_0x3c7649([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c7649([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x471a14=_0x20671a(_0x3c7649([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x55950f()):_0x3c7649([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c7649([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c7649([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3c7649([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4f803d(){const _0x81ca44=[_0x3c7649([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c7649([0x74,0x72,0x69,0x61,0x6c])][_0x3c7649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c7126[_0x3c7649([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5e6256/0x3e8:0xe10*_0x2127bc;return _0x1c7126[_0x3c7649([0x65,0x78,0x70])]<_0x81ca44;}function _0xb5b372(){const _0x547ed1=_0x1c7126[_0x3c7649([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x547ed1&&(!!_0x547ed1[_0x3c7649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c7649([0x2a]))||!!_0x547ed1[_0x3c7649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c7649([0x55,0x50,0x4c,0x43])));}function _0x512f33(){const _0x42dc1c=_0x1c7126[_0x3c7649([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x42dc1c||0x0==_0x42dc1c[_0x3c7649([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b9f98}=new URL(window[_0x3c7649([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x42dc1c[_0x3c7649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b9f98))return!0x0;const _0x26165a=_0x1b9f98[_0x3c7649([0x73,0x70,0x6c,0x69,0x74])](_0x3c7649([0x2e]));return _0x42dc1c[_0x3c7649([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x217016=>_0x217016[_0x3c7649([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c7649([0x2a])))[_0x3c7649([0x6d,0x61,0x70])](_0x12c3b4=>_0x12c3b4[_0x3c7649([0x73,0x70,0x6c,0x69,0x74])](_0x3c7649([0x2e])))[_0x3c7649([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5595af=>_0x5595af[_0x3c7649([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x26165a[_0x3c7649([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c7649([0x6d,0x61,0x70])](_0x2a7e0f=>Array(_0x26165a[_0x3c7649([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a7e0f[_0x3c7649([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c7649([0x66,0x69,0x6c,0x6c])](_0x2a7e0f[0x0]===_0x3c7649([0x2a])?_0x3c7649([0x2a]):'')[_0x3c7649([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a7e0f))[_0x3c7649([0x73,0x6f,0x6d,0x65])](_0x461664=>_0x26165a[_0x3c7649([0x65,0x76,0x65,0x72,0x79])]((_0x4cc9b6,_0x31d0b8)=>_0x461664[_0x31d0b8]===_0x4cc9b6||_0x461664[_0x31d0b8]===_0x3c7649([0x2a])));}function _0x55950f(){return _0x471a14&&_0x142ec3?new window[(_0x3c7649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x320415,_0x4c6499)=>{_0x471a14[_0x3c7649([0x74,0x68,0x65,0x6e])](_0x320415,_0x4c6499),_0x142ec3[_0x3c7649([0x74,0x68,0x65,0x6e])](_0x404e0f=>{_0x404e0f!=_0x3c7649([0x56,0x61,0x6c,0x69,0x64])&&_0x320415(_0x404e0f);},_0x4c6499);}):_0x471a14||_0x142ec3||_0x3c7649([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1bc5f3(_0x535f7f,_0x4e8105){return new window[(_0x3c7649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e27ab=>{if(_0x3c63af())return _0x5e27ab(_0x3c7649([0x56,0x61,0x6c,0x69,0x64]));_0x15a1e5(),_0x2eb20d[_0x3c7649([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c7649([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x26d254=!0x1;const _0x1269da=_0x1c21c3();function _0x56adf0(_0x1859a2){return!!_0x1859a2&&(typeof _0x1859a2===_0x3c7649([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1859a2===_0x3c7649([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1859a2[_0x3c7649([0x74,0x68,0x65,0x6e])]===_0x3c7649([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1859a2[_0x3c7649([0x63,0x61,0x74,0x63,0x68])]===_0x3c7649([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2cc4a3(_0x302b6e){_0x5ba905(_0x302b6e)[_0x3c7649([0x74,0x68,0x65,0x6e])](_0x24d4b5=>{if(!_0x24d4b5||_0x24d4b5[_0x3c7649([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c7649([0x6f,0x6b]))return _0x3c7649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x47ee2b(_0x1ee3cd(_0x1269da+_0x4e8105))!=_0x24d4b5[_0x3c7649([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c7649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c7649([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c7649([0x74,0x68,0x65,0x6e])](_0x1461c6=>(_0x3c209f(),_0x1461c6),()=>{const _0x24b29d=_0xb3f7db();return null==_0x24b29d?(_0x3c209f(),_0x3c7649([0x56,0x61,0x6c,0x69,0x64])):_0x3c7649(_0x5e6256-_0x24b29d>(0x7753083a^_0x315c41)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c7649([0x74,0x68,0x65,0x6e])](_0x5e27ab)[_0x3c7649([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e27ab(_0x3c7649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e6179=0x536962ba^_0x315c41;function _0x3c209f(){const _0x186be6=_0x3c7649([0x6c,0x6c,0x63,0x74,0x2d])+_0x47ee2b(_0x1ee3cd(_0x535f7f)),_0x1725bf=_0x20c9a7(_0x47ee2b(window[_0x3c7649([0x4d,0x61,0x74,0x68])][_0x3c7649([0x63,0x65,0x69,0x6c])](_0x5e6256/_0x3e6179)));window[_0x3c7649([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c7649([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x186be6,_0x1725bf);}function _0xb3f7db(){const _0x5248dc=_0x3c7649([0x6c,0x6c,0x63,0x74,0x2d])+_0x47ee2b(_0x1ee3cd(_0x535f7f)),_0x45d3a0=window[_0x3c7649([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c7649([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5248dc);return _0x45d3a0?window[_0x3c7649([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20c9a7(_0x45d3a0),0x10)*_0x3e6179:null;}function _0x5ba905(_0x3630df){return new window[(_0x3c7649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54a849,_0x4dfc8e)=>{_0x3630df[_0x3c7649([0x74,0x68,0x65,0x6e])](_0x54a849,_0x4dfc8e),window[_0x3c7649([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4dfc8e,0x535e58fa^_0x315c41);});}}_0x2eb20d[_0x3c7649([0x6f,0x6e])](_0x3c7649([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59c58c,_0x312206)=>{if(_0x312206[0x0]!=_0x535f7f)return _0x5e27ab(_0x3c7649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x312206[0x1]={..._0x312206[0x1],[_0x3c7649([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1269da};},{[_0x3c7649([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c7649([0x68,0x69,0x67,0x68])}),_0x2eb20d[_0x3c7649([0x6f,0x6e])](_0x3c7649([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f524f=>{_0x56adf0(_0x4f524f[_0x3c7649([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x26d254=!0x0,_0x2cc4a3(_0x4f524f[_0x3c7649([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c7649([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c7649([0x6c,0x6f,0x77])}),_0x4bbda2[_0x3c7649([0x74,0x68,0x65,0x6e])](()=>{_0x26d254||_0x5e27ab(_0x3c7649([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c63af(){return _0x2eb20d[_0x3c7649([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c7649([0x76,0x69,0x65,0x77])][_0x3c7649([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c7649([0x61,0x75,0x74,0x6f]);}function _0x15a1e5(){_0x2eb20d[_0x3c7649([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c7649([0x76,0x69,0x65,0x77])][_0x3c7649([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c7649([0x61,0x75,0x74,0x6f]);}}function _0x20671a(_0x3d7350){const _0x5b076d=[new window[(_0x3c7649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d4e12=>setTimeout(_0x2d4e12,0x5356b2f6^_0x315c41)),_0x4bbda2[_0x3c7649([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c7649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a043b=>{let _0x52a4e7=0x0;_0x2eb20d[_0x3c7649([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c7649([0x6f,0x6e])](_0x3c7649([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d96da,_0x56a97a)=>{_0x56a97a[0x0][_0x3c7649([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x52a4e7++,_0x52a4e7==(0x535f89d2^_0x315c41)&&(_0x5a043b(),_0x2d96da[_0x3c7649([0x6f,0x66,0x66])]());});}))];return window[_0x3c7649([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c7649([0x72,0x61,0x63,0x65])](_0x5b076d)[_0x3c7649([0x74,0x68,0x65,0x6e])](()=>_0x3d7350);}async function _0x578214(){await _0x4bbda2,_0x2eb20d[_0x3c7649([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c7649([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x69eaad,_0x2eb20d[_0x3c7649([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c7649([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x69eaad,_0x2eb20d[_0x3c7649([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c7649([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x114d73(_0x344ebd){const _0x445aed=_0x5e9747();_0x2eb20d[_0x445aed]=_0x3c7649([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x344ebd,_0x344ebd!=_0x3c7649([0x56,0x61,0x6c,0x69,0x64])&&_0x578214();}function _0x5e9747(){const _0x469967=window[_0x3c7649([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c7649([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c7649([0x6e,0x6f,0x77])]())[_0x3c7649([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c7649([0x2e]),'');let _0x2ff5bb=_0x3c7649([0x68]);for(let _0x4d7176=0x0;_0x4d7176<_0x469967[_0x3c7649([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d7176+=0x2){let _0x5a9c08=window[_0x3c7649([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x469967[_0x3c7649([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d7176,_0x4d7176+0x2));_0x5a9c08>=_0x524747[_0x3c7649([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a9c08-=_0x524747[_0x3c7649([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ff5bb+=_0x524747[_0x5a9c08];}return _0x2ff5bb;}function _0x58de9d(){const _0x177b35=_0x20bea5[_0x3c7649([0x73,0x70,0x6c,0x69,0x74])](_0x3c7649([0x2e]));if(0x3!=_0x177b35[_0x3c7649([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x229bcc(_0x177b35[0x1]);function _0x229bcc(_0x361093){const _0x533805=_0x329cd1(_0x361093);return _0x533805&&_0x481520()?_0x533805:null;function _0x481520(){const _0x5e7a4a=_0x533805[_0x3c7649([0x6a,0x74,0x69])],_0x1f7ca6=window[_0x3c7649([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e7a4a[_0x3c7649([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e7a4a[_0x3c7649([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5bae4d={..._0x533805,[_0x3c7649([0x6a,0x74,0x69])]:_0x5e7a4a[_0x3c7649([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e7a4a[_0x3c7649([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5bae4d[_0x3c7649([0x76,0x63])],_0x1ee3cd(_0x5bae4d)==_0x1f7ca6;}}}async function _0x174030(){let _0x15450a=!0x0;try{const _0x396f23=_0x20bea5[_0x3c7649([0x73,0x70,0x6c,0x69,0x74])](_0x3c7649([0x2e])),[_0xc27ce6,_0x3f371c,_0x6c170e]=_0x396f23;return _0x3f074a(_0xc27ce6),await _0x4a4d0e(_0xc27ce6,_0x3f371c,_0x6c170e),_0x15450a;}catch{return!0x1;}function _0x3f074a(_0xb6cd63){const _0x260d19=_0x329cd1(_0xb6cd63);_0x260d19&&_0x260d19[_0x3c7649([0x61,0x6c,0x67])]==_0x3c7649([0x45,0x53,0x32,0x35,0x36])||(_0x15450a=!0x1);}async function _0x4a4d0e(_0x5415b1,_0x1410d9,_0x4cc084){const _0x1ab533=window[_0x3c7649([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c7649([0x66,0x72,0x6f,0x6d])](_0x4f9b62(_0x4cc084),_0x2e873e=>_0x2e873e[_0x3c7649([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x269d4f=new window[(_0x3c7649([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c7649([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5415b1+_0x3c7649([0x2e])+_0x1410d9),_0x5524f1=window[_0x3c7649([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c7649([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5524f1)return;const _0x38408d=await _0x5524f1[_0x3c7649([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c7649([0x6a,0x77,0x6b]),_0x3ede2d,{[_0x3c7649([0x6e,0x61,0x6d,0x65])]:_0x3c7649([0x45,0x43,0x44,0x53,0x41]),[_0x3c7649([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c7649([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c7649([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5524f1[_0x3c7649([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c7649([0x6e,0x61,0x6d,0x65])]:_0x3c7649([0x45,0x43,0x44,0x53,0x41]),[_0x3c7649([0x68,0x61,0x73,0x68])]:{[_0x3c7649([0x6e,0x61,0x6d,0x65])]:_0x3c7649([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38408d,_0x1ab533,_0x269d4f)||(_0x15450a=!0x1);}}function _0x329cd1(_0x116add){return _0x116add[_0x3c7649([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c7649([0x65,0x79]))?JSON[_0x3c7649([0x70,0x61,0x72,0x73,0x65])](_0x4f9b62(_0x116add)):null;}function _0x4f9b62(_0x3c3fc7){return window[_0x3c7649([0x61,0x74,0x6f,0x62])](_0x3c3fc7[_0x3c7649([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c7649([0x2b]))[_0x3c7649([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c7649([0x2f])));}function _0x1ee3cd(_0x38bad2){let _0x3282b0=0x1505;function _0x43eac1(_0x4bb09f){for(let _0x21fc75=0x0;_0x21fc75<_0x4bb09f[_0x3c7649([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21fc75++){const _0x241f31=_0x4bb09f[_0x3c7649([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x21fc75);_0x3282b0=(_0x3282b0<<0x5)+_0x3282b0+_0x241f31,_0x3282b0&=_0x3282b0;}}function _0x369c33(_0x1a9f77){Array[_0x3c7649([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1a9f77)?_0x1a9f77[_0x3c7649([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x369c33):_0x1a9f77&&typeof _0x1a9f77==_0x3c7649([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c7649([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1a9f77)[_0x3c7649([0x73,0x6f,0x72,0x74])]()[_0x3c7649([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x259928,_0x39c8fa])=>{_0x43eac1(_0x259928),_0x369c33(_0x39c8fa);}):_0x43eac1(window[_0x3c7649([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1a9f77));}return _0x369c33(_0x38bad2),_0x3282b0>>>0x0;}function _0x47ee2b(_0x189b4d){return _0x189b4d[_0x3c7649([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c7649([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c7649([0x30]));}function _0x20c9a7(_0x366f02){return _0x366f02[_0x3c7649([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c7649([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c7649([0x6a,0x6f,0x69,0x6e])]('');}function _0x69eaad(){}function _0x3c7649(_0x47b8e3){return _0x47b8e3['map'](_0x13c028=>String['fromCharCode'](_0x13c028))['join']('');}_0x114d73(await _0x2e56bc());}(this);}['_initSchema'](){const _0x5222e5=this['editor']['model']['schema'];_0x5222e5['isRegistered']('imageBlock')&&_0x5222e5['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5222e5['isRegistered']('imageInline')&&_0x5222e5['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2c776c=this['editor'];_0x2c776c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2c776c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x188482=>_0x188482['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x19c475=_0x2c776c['commands']['get']('replaceImageSource');_0x19c475&&this['listenTo'](_0x19c475,'cleanupImage',(_0x5d0e70,[_0xf3422a,_0x5361fc])=>{_0xf3422a['removeAttribute']('uploadcareImageId',_0x5361fc);});}['_initConfig'](){const _0x360e47=this['editor']['config']['get']('uploadcare.uploader')||{},_0xe30580=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x390ae4(_0x36efa3['document'],'uc-config',{..._0x360e47,'pubkey':_0xe30580,'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']=_0x16ab53=>{if('closeMax'==_0x16ab53)return'#uc-icon-arrow-down';},_0x36efa3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x390ae4(_0x36efa3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x36efa3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5b77dc=this['editor']['commands']['get']('insertImage');_0x5b77dc&&this['listenTo'](_0x5b77dc,'execute',()=>{const _0x49244b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49244b&&_0x49244b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x49244b);});});const _0x113553=this['editor']['commands']['get']('uploadcareImageReplace');_0x113553&&this['listenTo'](_0x113553,'execute',()=>{const _0x48a281=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48a281&&_0x48a281['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x48a281);});});}}class tt extends _0x4f1a6a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18af15){super(_0x18af15),_0x18af15['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1cd729['defineComponents'](_0x1cd729),this['_defineLocale']();}['_defineLocale'](){const _0x43f843=this['editor']['config']['get']('uploadcare.locale'),_0x381fe8=this['editor']['locale']['contentLanguage'];_0x43f843&&_0x1cd729['defineLocale'](_0x381fe8,_0x43f843);}}class ii extends _0x3913b3{constructor(_0x4cd83b){super(_0x4cd83b);const t=_0x4cd83b['t'],_0x31d115=this['bindTemplate'],_0x4da88f=new _0x4ff9e7();_0x4da88f['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':[_0x4da88f,{'text':_0x31d115['to']('imageUploadProgress',_0xfb9bc9=>t('Loading\x20image...')+'\x20('+(_0xfb9bc9||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 _0x3913b3{constructor(_0x1ba4d9){super(_0x1ba4d9);const t=_0x1ba4d9['t'];this['set']('errorType',null);const _0x40f94a=new _0xf03747(_0x1ba4d9);_0x40f94a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x40f94a['withText']=!0x0,_0x40f94a['class']='ck-button-action',_0x40f94a['on']('execute',()=>{this['fire']('retry');}),_0x40f94a['bind']('isVisible')['to'](this,'errorType',_0x3ab0b9=>'NotFound'!==_0x3ab0b9);const _0x15f3ee=new _0x379f97();_0x15f3ee['content']=_0x336bb5,_0x15f3ee['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x305d4d=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':[_0x15f3ee,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x305d4d['to']('errorType',_0x25dc1a=>t('NotFound'!==_0x25dc1a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x40f94a]},{'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 _0x3913b3{constructor(_0x5ed20e,_0x39c9f0){super(_0x5ed20e);const _0x3860a8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x39c9f0,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3860a8['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3d3bc1,_0x901d6d,_0x1aa752){super(_0x3d3bc1),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3d3bc1),this['_errorView']=new ti(_0x3d3bc1),this['_editingView']=new ei(_0x3d3bc1,_0x1aa752),this['_focusableView']=new _0x3913b3(_0x3d3bc1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x901d6d),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'],_0x820e09=>{this['_addUploadcareImageEditorListeners'](_0x820e09);});}),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'](_0x33d7bf,_0xec3d7b){const _0x1f5839='uc-cloud-image-editor',_0x464f3a=_0x33d7bf['querySelector'](_0x1f5839);if(_0x464f3a)return _0xec3d7b(_0x464f3a);const _0x2984c5=new MutationObserver(_0x547921=>{const _0x316a6c=_0x547921['filter'](_0xedadba=>_0xedadba['target']===_0x33d7bf&&_0xedadba['addedNodes']['length']>0x0&&_0xedadba['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1f5839);_0x316a6c['length']&&(_0x2984c5['disconnect'](),_0xec3d7b(_0x316a6c[0x0]['addedNodes'][0x0]));});_0x2984c5['observe'](_0x33d7bf,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x220615){_0x220615['addEventListener']('apply',_0x3bd744=>{this['fire']('apply',{'imageSrc':_0x3bd744['detail']['cdnUrl']});}),_0x220615['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3fa845(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x58247a,_0x1f928c,_0x49b64b){super(),this['_editor']=_0x58247a,this['_dialog']=_0x1f928c,this['_imageElement']=_0x49b64b,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 _0x5c977c=this['_imageElement'],_0x7f316=_0x5c977c['getAttribute']('uploadcareImageId'),_0x2cbf21=_0x5c977c['getAttribute']('src');if(_0x7f316)await this['_loadImageInfo'](_0x7f316,_0x2cbf21);else{if(this['_imageCache']['has'](_0x2cbf21)){const _0x1c8df3=this['_imageCache']['get'](_0x2cbf21);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c8df3['url'],this['imageDimension']=_0x1c8df3['dimension'],this['imageId']=_0x1c8df3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x445380}=this['_editor'],t=_0x445380['t'],_0xe9995a=new X(_0x445380,this['imageStatus'],this['_attributes']);_0xe9995a['bind']('status')['to'](this,'imageStatus'),_0xe9995a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xe9995a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xe9995a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xe9995a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3c0aa3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xe9995a,'position':_0x3b0daf['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xe9995a['focus']();},'onHide':()=>{_0xe9995a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2e5b20=>!M(_0x2e5b20,_0xe9995a['element'])}});}['_loadImageInfo'](_0x23c347,_0x4c14a1){return j['getInfo'](_0x23c347,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x90e431=>{const {width:_0x1814cd,height:_0x939fa1}=_0x90e431['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c14a1,this['imageDimension']={'width':_0x1814cd,'height':_0x939fa1},this['imageId']=_0x23c347;})['catch'](_0x283882=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x283882['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4c1457,_0xbc53f1){return this['_getImageAsFile'](_0x4c1457)['then'](_0x14b527=>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':_0xbc53f1['signal'],'file':_0x14b527,'onProgress':_0x44ab3e=>{_0x44ab3e&&_0x44ab3e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x44ab3e['value']));}}))['then'](_0x4c9d96=>{const {width:_0x25eb90,height:_0xed662e}=_0x4c9d96['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c9d96['cdnUrl'],this['imageDimension']={'width':_0x25eb90,'height':_0xed662e},this['imageId']=_0x4c9d96['uuid'],this['imageUploadProgress']=null;const _0x31764c=_0x4c1457['getAttribute']('src');this['_imageCache']['set'](_0x31764c,{'id':_0x4c9d96['uuid'],'url':_0x4c9d96['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xd98bf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd98bf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x109187,_0x2f49f3){_0x109187['on']('apply',(_0x3135fd,_0x5e17a0)=>{this['_replaceImage'](_0x2f49f3,_0x5e17a0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x109187['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x109187['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1f11d2,_0x5c4bf2,_0x3260dc){const _0x53fe5a=this['_editor'],{width:_0x112db6,height:_0x2c7a29}=F(_0x5c4bf2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2a5b17,imageSources:_0x124a2c}=C(_0x5c4bf2,_0x112db6);_0x53fe5a['model']['change'](_0x36f609=>{if('$graveyard'===_0x1f11d2['root']['rootName']){_0x53fe5a['execute']('insertImage',{'imageType':_0x1f11d2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1f11d2['getAttributes']()),'uploadcareImageId':_0x3260dc,'src':_0x2a5b17,'sources':_0x124a2c,'width':_0x112db6,'height':_0x2c7a29}});const _0x3e6a5a=_0x1f11d2['getChildren']();_0x1f11d2=_0x53fe5a['model']['document']['selection']['getSelectedElement']();for(const _0x3c4e30 of _0x3e6a5a)_0x36f609['append'](_0x36f609['cloneElement'](_0x3c4e30),_0x1f11d2);}else _0x36f609['setSelection'](_0x1f11d2,'on'),_0x53fe5a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1f11d2['getAttributes']()),'uploadcareImageId':_0x3260dc,'src':_0x2a5b17,'sources':_0x124a2c,'width':_0x112db6,'height':_0x2c7a29},_0x1f11d2);_0x36f609['setSelection'](_0x1f11d2,'on');});}async['_getImageAsFile'](_0x5a5a0a){const _0x5712fa=_0x36efa3['window'],_0x4f33c0=_0x36efa3['document']['location']['href'],_0x10579b=new _0x5712fa['URL'](_0x5a5a0a['getAttribute']('src'),_0x4f33c0);if('data:'===_0x10579b['protocol']){const _0xe754fc=_0x10579b['href']['split'](','),_0x35ee4f=_0xe754fc[0x0]['match'](/:(.*?);/)[0x1],_0x1232d7=_0x35ee4f['split']('/')[0x1],_0x42cc84=_0x5712fa['atob'](_0xe754fc[_0xe754fc['length']-0x1]);let _0xafd809=_0x42cc84['length'];const _0x58d2be=new _0x5712fa['Uint8Array'](_0xafd809);for(;_0xafd809--;)_0x58d2be[_0xafd809]=_0x42cc84['charCodeAt'](_0xafd809);return new _0x5712fa['File']([_0x58d2be],'image.'+_0x1232d7,{'type':_0x35ee4f});}const _0x2b0ae6=_0x10579b['href']['split']('/'),_0x985d45=_0x2b0ae6[_0x2b0ae6['length']-0x1],_0x5833f1=_0x985d45['split']('.')[0x1];return _0x5712fa['fetch'](_0x10579b['href'])['then'](_0x35e16b=>_0x35e16b['clone']()['blob']())['then'](_0x246e51=>new _0x5712fa['File']([_0x246e51],_0x985d45,{'type':'image/'+_0x5833f1}));}}class N extends _0x1cb1a2{['imageEditController'];static get['requires'](){return[_0xa7f385];}['_isEditable'];constructor(_0x241535){super(_0x241535),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x208da8){const _0x48d7a6=R(_0x208da8);return _0xb5c5a6=>!(!_0xb5c5a6||!_0xb5c5a6['is']('element','imageBlock')&&!_0xb5c5a6['is']('element','imageInline'))&&(!!_0xb5c5a6['hasAttribute']('uploadcareImageId')||!!_0xb5c5a6['hasAttribute']('src')&&_0x48d7a6(_0xb5c5a6['getAttribute']('src')));}(_0x241535['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x10a7cd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x10a7cd);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x9cf9c7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x9cf9c7&&(_0x9cf9c7['is']('element','imageBlock')||_0x9cf9c7['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0xa7f385),_0x9cf9c7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1cb1a2{['refresh'](){const _0x4b06c3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4b06c3&&(_0x4b06c3['is']('element','imageBlock')||_0x4b06c3['is']('element','imageInline')));}['execute'](_0x31cb83){const _0x1f741b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x45ec32=>{_0x45ec32['setAttributes'](_0x31cb83,_0x1f741b),_0x45ec32['removeAttribute']('srcset',_0x1f741b),_0x45ec32['removeAttribute']('sizes',_0x1f741b);});}}class m extends _0x4f1a6a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2d171e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3e20d7}=this;_0x3e20d7['commands']['add']('uploadcareImageEdit',new N(_0x3e20d7)),_0x3e20d7['commands']['add']('uploadcareImageReplace',new O(_0x3e20d7));}}class g extends _0x4f1a6a{['_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 _0x2473ce=this['editor'];_0x2473ce['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5197bc=>{const _0x40698c=_0x2473ce['commands']['get']('uploadcareImageEdit'),_0x102c78=new _0xf03747(_0x5197bc),t=_0x5197bc['t'];return _0x102c78['set']({'icon':_0x3c0aa3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x102c78['bind']('isEnabled')['to'](_0x40698c),_0x102c78['bind']('isOn')['to'](_0x40698c,'isActive'),this['listenTo'](_0x102c78,'execute',()=>{_0x2473ce['execute']('uploadcareImageEdit'),_0x2473ce['editing']['view']['focus']();}),_0x102c78;}),this['_initConfig']();}['_initConfig'](){const _0xc83cfe=_0x390ae4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xc83cfe),this['listenTo'](this['editor'],'destroy',()=>{_0xc83cfe['remove']();});}}class et extends _0x4f1a6a{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,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x2558bc,Command as _0x46dcca}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1ab41f,IconGooglePhotos as _0x4af8dc,IconGoogleDrive as _0x3e6cc0,IconFacebook as _0x31e7b4,IconDropbox as _0x4a19a4,IconUploadcareLink as _0x1baa51,IconUploadcareImageUpload as _0x32ead2,IconError as _0x208e3e,IconUploadcareImageEdit as _0x354414}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x542201,MenuBarMenuListItemButtonView as _0x54249e,View as _0x2dde75,FocusCycler as _0x5a1206,Dialog as _0x30b164,DialogViewPosition as _0x49e8b0,SpinnerView as _0x34473e,IconView as _0x5158d8,Notification as _0x46da16}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5e308f,DomEmitterMixin as _0x18df65,global as _0xf3981c,getAncestors as _0xa4b4ea,ObservableMixin as _0x3d3749,uid as _0xcc405e,createElement as _0x513ad3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x164b6e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4253f3,info as _0x108359}from'@uploadcare/upload-client';import*as _0x15ba95 from'@uploadcare/file-uploader';var i=function(_0x23d868){return _0x23d868['Local']='local',_0x23d868['URL']='url',_0x23d868['Dropbox']='dropbox',_0x23d868['GDrive']='gdrive',_0x23d868['Facebook']='facebook',_0x23d868['GPhotos']='gphotos',_0x23d868['OneDrive']='onedrive',_0x23d868;}({});function _(_0x4b7780,_0x15ae4c,_0x2ed800){const t=_0x4b7780['t'],_0x1ec081=_0x4b7780['t'];switch(_0x15ae4c){case i['Local']:return{'text':_0x1ec081('Insert'===_0x2ed800?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1ec081('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2ed800?_0x1ec081('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1ec081('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2ed800?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2ed800?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2ed800?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2ed800?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2ed800?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x15ae4c;}}class e extends _0x2558bc{['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 _0x31d9bb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x338c8a;for(const _0x3d43a3 in _0x31d9bb){const _0x1f55bb=_0x3d43a3,_0x480f15=_0x31d9bb[_0x1f55bb];if('uploadcareLicenseKeyValid'==_0x480f15||'uploadcareLicenseKeyInvalid'==_0x480f15||'uploadcareLicenseKeyExpired'==_0x480f15||'uploadcareLicenseKeyDomainLimit'==_0x480f15||'uploadcareLicenseKeyNotAllowed'==_0x480f15||'uploadcareLicenseKeyEvaluationLimit'==_0x480f15||'uploadcareLicenseKeyUsageLimit'==_0x480f15){delete _0x31d9bb[_0x1f55bb],_0x338c8a=_0x480f15,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x338c8a&&_0x31d9bb['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x338c8a&&_0x31d9bb['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x338c8a&&_0x31d9bb['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x338c8a&&_0x31d9bb['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x338c8a&&_0x31d9bb['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x338c8a&&_0x31d9bb['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x33bf33}=this,_0x7bea9a=_0x33bf33['commands']['get']('uploadcare');if(!_0x7bea9a)return;const _0xe90138=this['_normalizeConfigSourceList'](_0x33bf33['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x22b118,_0x52b6f3)=>{const _0x1d572d=this['_getIntegrationKey'](_0x52b6f3['type']);return _0x22b118[_0x1d572d]||(_0x22b118[_0x1d572d]=[]),_0x22b118[_0x1d572d]['push'](_0x52b6f3),_0x22b118;},{});_0x33bf33['plugins']['has']('ImageInsertUI')&&_0x33bf33['commands']['get']('uploadcare')&&Object['entries'](_0xe90138)['forEach'](([_0x3a4d8b,_0x463297])=>{_0x33bf33['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3a4d8b,'observable':()=>_0x7bea9a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x463297),'formViewCreator':()=>this['_createDropdownButtons'](_0x463297),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x463297),'override':'assetManager'!==_0x3a4d8b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5791d0){const {locale:_0x27a03c}=this['editor'];return _0x5791d0['map'](_0x109288=>{const _0x256707=_(_0x27a03c,_0x109288,'Insert');switch(_0x109288){case i['Local']:return{'icon':_0x32ead2,'type':i['Local'],..._0x256707};case i['URL']:return{'icon':_0x1baa51,'type':i['URL'],..._0x256707};case i['Dropbox']:return{'icon':_0x4a19a4,'type':i['Dropbox'],..._0x256707};case i['Facebook']:return{'icon':_0x31e7b4,'type':i['Facebook'],..._0x256707};case i['GDrive']:return{'icon':_0x3e6cc0,'type':i['GDrive'],..._0x256707};case i['GPhotos']:return{'icon':_0x4af8dc,'type':i['GPhotos'],..._0x256707};case i['OneDrive']:return{'icon':_0x1ab41f,'type':i['OneDrive'],..._0x256707};}});}['_getIntegrationKey'](_0x10f1ff){switch(_0x10f1ff){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x39afc4,_0x3e5f02){const _0x26ec1d=this['editor'],_0x220c0e=new _0x39afc4(_0x26ec1d['locale']),_0x5c1ad1=_0x26ec1d['commands']['get']('uploadcare');return _0x220c0e['bind']('isEnabled')['to'](_0x5c1ad1),_0x220c0e['on']('execute',()=>{_0x5c1ad1['execute'](_0x3e5f02);}),_0x220c0e;}['_createToolbarButton'](_0xa3287e){const {locale:_0x38ae43}=this['editor'],_0x248ca5=this['editor']['plugins']['get']('ImageInsertUI'),_0x40f001=_0xa3287e[0x0],_0x23f156=this['_createButton'](_0x542201,_0x40f001['type']);return _0x23f156['icon']=_0x40f001['icon'],_0x23f156['bind']('label')['to'](_0x248ca5,'isImageSelected',_0x1203df=>_(_0x38ae43,_0x40f001['type'],_0x1203df?'Replace':'Insert')['text']),_0x23f156['tooltip']=!0x0,_0x23f156;}['_createDropdownButtons'](_0x42d6b1){const {locale:_0x2ead8c}=this['editor'],_0x1c0b07=this['editor']['plugins']['get']('ImageInsertUI');return _0x42d6b1['map'](_0x59234a=>{const _0x1c4e21=this['_createButton'](_0x542201,_0x59234a['type']);return _0x1c4e21['withText']=!0x0,_0x1c4e21['icon']=_0x59234a['icon'],_0x1c4e21['bind']('label')['to'](_0x1c0b07,'isImageSelected',_0x326984=>_(_0x2ead8c,_0x59234a['type'],_0x326984?'Replace':'Insert')['text']),_0x1c4e21;});}['_createMenuBarButtons'](_0x314d28){return _0x314d28['map'](_0x1b5279=>{const _0x34f2f3=this['_createButton'](_0x54249e,_0x1b5279['type']);return _0x34f2f3['icon']=_0x1b5279['icon'],_0x34f2f3['label']=_0x1b5279['shortText'],_0x34f2f3;});}}class F extends _0x2dde75{['focusTracker'];['focusCycler'];constructor(_0x35d343){super(_0x35d343),this['focusTracker']=new _0x5e308f(),this['focusCycler']=new _0x5a1206({'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(_0x55427c,_0xadf78e){super(_0x55427c),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-'+_0xadf78e}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3951b9,_0x50e2d1){const _0x1a08f1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1c28aa=>_0x1c28aa<=_0x50e2d1)['map'](_0x442529=>_0x3951b9['replace'](/\/$/,'')+'/-/resize/'+_0x442529+'x/\x20'+_0x442529+'w');return{'imageFallbackUrl':_0x3951b9,'imageSources':[{'srcset':_0x1a08f1['join'](',\x20'),'sizes':'(max-width:\x20'+_0x50e2d1+'px)\x20100vw,\x20'+_0x50e2d1+'px','type':'image/webp'}]};}function S(_0x2906dd,_0x102569,_0x147915){const _0x1de607=_0x2906dd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1de607?parseInt(_0x1de607[0x1],0xa):_0x102569,'height':_0x1de607?parseInt(_0x1de607[0x2],0xa):_0x147915};}function p(_0x5520e2,_0x1df635){const _0x591aae=new(_0x18df65())(),_0x57dc58=_0x5520e2['plugins']['get']('ImageUtils'),_0x20894a=_0x5520e2['editing']['mapper']['toViewElement'](_0x1df635),_0x34c165=_0x57dc58['findViewImgElement'](_0x20894a),_0x5ecb0f=_0x5520e2['editing']['view']['domConverter']['viewToDom'](_0x34c165),_0x3a2ab9=_0x1df635['getAttribute']('width'),_0x299ac2=_0x1df635['getAttribute']('height'),_0x262e4d='image-processing';_0x5520e2['editing']['view']['change'](_0x1c0fd8=>{_0x1c0fd8['addClass'](_0x262e4d,_0x20894a),_0x1c0fd8['setStyle']('aspect-ratio',_0x3a2ab9+'/'+_0x299ac2,_0x34c165);}),_0x591aae['listenTo'](_0x5ecb0f,'load',()=>{_0x591aae['stopListening'](_0x5ecb0f,'load'),_0x5520e2['editing']['view']['change'](_0xff0cc=>{_0xff0cc['removeClass'](_0x262e4d,_0x20894a),_0xff0cc['removeStyle']('aspect-ratio',_0x34c165);});});}function G(_0x4dcafb){if(Array['isArray'](_0x4dcafb)){const _0x540824=_0x4dcafb['map'](G);return _0x3b6d88=>_0x540824['some'](_0x53b171=>_0x53b171(_0x3b6d88));}if('origin'==_0x4dcafb){const _0x33d43c=_0xf3981c['window']['location']['origin'];return _0x37d6c8=>new URL(_0x37d6c8,_0xf3981c['document']['baseURI'])['origin']==_0x33d43c;}return'function'==typeof _0x4dcafb?_0x4dcafb:_0x4dcafb instanceof RegExp?_0x32508c=>!(!_0x32508c['match'](_0x4dcafb)&&!_0x32508c['replace'](/^https?:\/\//,'')['match'](_0x4dcafb)):()=>!0x1;}function A(_0x380afd,_0x3ac491){return _0xa4b4ea(_0x380afd['target'])['includes'](_0x3ac491);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3d3749(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x514a8c,_0x22318d,_0x5167d9){super(),this['_editor']=_0x514a8c,this['_editing']=_0x22318d,this['_dialog']=_0x514a8c['plugins']['get'](_0x30b164),this['_api']=_0x22318d['ctxElement']['getAPI'](),this['_type']=_0x5167d9,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:_0x7be905,model:_0x29295a}=this['_editor'],_0x29455c=_0x29295a['document']['selection']['getSelectedElement'](),_0x2ac849=_0x29455c&&(_0x29455c['is']('element','imageBlock')||_0x29455c['is']('element','imageInline'));this['_formView']=new x(_0x7be905,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x32ead2,'title':_(_0x7be905,this['_type'],_0x2ac849?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x49e8b0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x512fe0=>!A(_0x512fe0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x17c9ea}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x41fde5=>{const _0x5b6e05=_0x17c9ea['length'];for(const _0x47c6fc of _0x17c9ea){const _0x41709d=_0x47c6fc===_0x17c9ea[_0x5b6e05-0x1],{cdnUrl:_0x372f02,fileInfo:_0x503bad}=_0x47c6fc;if(!_0x372f02||!_0x503bad)continue;const {width:_0x1dbd8e,height:_0xd5c53d}=_0x503bad['imageInfo'],_0x12f9b2=S(_0x372f02,_0x1dbd8e,_0xd5c53d),_0x7299be=C(_0x372f02,_0x12f9b2['width']),_0x5b6e7f={'id':_0x503bad['uuid'],'type':'image','attributes':{'imageDimension':_0x12f9b2,..._0x7299be}};this['_insertAsset'](_0x5b6e7f,_0x41709d,_0x41fde5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3ed548=>{'idle'===_0x3ed548['detail']['status']&&!_0x3ed548['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3ea121,_0x2bda19,_0x2630f2){const _0x3ccbe8=this['_editor']['model']['document']['selection'],_0x2b6092=_0x3ccbe8['getSelectedElement'](),_0x4ed88e=!(!_0x2b6092||!_0x2b6092['is']('element','imageInline'));_0x2630f2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3ea121,_0x4ed88e),_0x2bda19||_0x2630f2['setSelection'](_0x3ccbe8['getLastPosition']());}['_insertImage'](_0x38aebe,_0x4d08de){const _0x4fbf20=this['_editor'],{imageDimension:_0x541337,imageFallbackUrl:_0x2dff0a,imageSources:_0xba8319}=_0x38aebe['attributes'];_0x4fbf20['execute']('insertImage',{'imageType':_0x4d08de?'imageInline':null,'source':{'uploadcareImageId':_0x38aebe['id'],'src':_0x2dff0a,'sources':_0xba8319,..._0x541337}});}}class w extends _0x46dcca{['_editing'];['_controller']=null;static get['requires'](){return[_0x30b164,o];}constructor(_0x14bc18){super(_0x14bc18),this['_editing']=_0x14bc18['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1beea3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1beea3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x43bc4f,..._0x44aa2e}){return _0x4253f3(_0x43bc4f,_0x44aa2e);}static['getInfo'](_0x4f38a2,_0x1764d0){return _0x108359(_0x4f38a2,_0x1764d0);}}class f extends _0x2558bc{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x164b6e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x47e147=this['editor'];if(!!!_0x47e147['config']['get']('uploadcare'))return;_0x47e147['plugins']['get'](_0x164b6e)['createUploadAdapter']=_0x592ae5=>new k(_0x592ae5,_0x47e147),_0x47e147['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x26c247,{imageElement:_0x698ed6,data:_0x3e97f1})=>{_0x47e147['model']['change'](_0x4ac588=>{_0x4ac588['setAttribute']('uploadcareImageId',_0x3e97f1['uploadcareImageId'],_0x698ed6);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1c825e,_0x144c1d){this['loader']=_0x1c825e,this['editor']=_0x144c1d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xda9e0=await this['loader']['file'];return j['upload']({'file':_0xda9e0,'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':_0x1ccc65=>{_0x1ccc65&&_0x1ccc65['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1ccc65['value']);}})['then'](async _0x411c1f=>{const {imageFallbackUrl:_0x245e03,imageSources:_0x33b1c7}=C(_0x411c1f['cdnUrl'],_0x411c1f['imageInfo']['width']);return{'uploadcareImageId':_0x411c1f['uuid'],'default':_0x245e03,'sources':_0x33b1c7};})['catch'](()=>{const _0x41adf4=t('Cannot\x20upload\x20file:')+('\x20'+_0xda9e0['name']+'.');return Promise['reject'](_0x41adf4);});}['abort'](){this['controller']['abort']();}}class o extends _0x2558bc{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x30b164];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x9af332){super(_0x9af332),this['ucContextId']=_0xcc405e();}['init'](){const _0x520bbd=this['editor'];_0x520bbd['commands']['add']('uploadcare',new w(_0x520bbd));}['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 _0x4d03c3=_0xf3981c['document']['querySelector']('input[uploadcare-file-input]');_0x4d03c3&&_0x4d03c3['remove']();}),async function(_0x3a1179){const _0x25836e=_0x2ca9f8([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]),_0x2c564f=0x535f8c3a,_0x1e8dca=0x53580aaa^_0x2c564f,_0x396fa7=window[_0x2ca9f8([0x44,0x61,0x74,0x65])][_0x2ca9f8([0x6e,0x6f,0x77])](),_0xf12c46=_0x3a1179[_0x2ca9f8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x527bd9=new window[(_0x2ca9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe8400b=>{_0xf12c46[_0x2ca9f8([0x6f,0x6e,0x63,0x65])](_0x2ca9f8([0x72,0x65,0x61,0x64,0x79]),_0xe8400b);}),_0xc89862={[_0x2ca9f8([0x6b,0x74,0x79])]:_0x2ca9f8([0x45,0x43]),[_0x2ca9f8([0x75,0x73,0x65])]:_0x2ca9f8([0x73,0x69,0x67]),[_0x2ca9f8([0x63,0x72,0x76])]:_0x2ca9f8([0x50,0x2d,0x32,0x35,0x36]),[_0x2ca9f8([0x78])]:_0x2ca9f8([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]),[_0x2ca9f8([0x79])]:_0x2ca9f8([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]),[_0x2ca9f8([0x61,0x6c,0x67])]:_0x2ca9f8([0x45,0x53,0x32,0x35,0x36])},_0x36189f=_0xf12c46[_0x2ca9f8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ca9f8([0x67,0x65,0x74])](_0x2ca9f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x20e6b5(){let _0x2a9de8,_0x468898=null,_0x1e3cfc=null;try{if(_0x36189f==_0x2ca9f8([0x47,0x50,0x4c]))return _0x2ca9f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a9de8=_0x396d15(),!_0x2a9de8)return _0x2ca9f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a9de8[_0x2ca9f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e3cfc=_0x2351e9(_0x2a9de8[_0x2ca9f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a9de8[_0x2ca9f8([0x6a,0x74,0x69])])),await _0x116be4()?_0x5a1446()?_0x31ded9()?_0x2ca9f8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3148d4()?(_0x2a9de8[_0x2ca9f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ca9f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x468898=_0x68324d(_0x2ca9f8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x19dc7a()):_0x2ca9f8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ca9f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ca9f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2ca9f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31ded9(){const _0x573ae4=[_0x2ca9f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ca9f8([0x74,0x72,0x69,0x61,0x6c])][_0x2ca9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a9de8[_0x2ca9f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x396fa7/0x3e8:0xe10*_0x1e8dca;return _0x2a9de8[_0x2ca9f8([0x65,0x78,0x70])]<_0x573ae4;}function _0x5a1446(){const _0x488728=_0x2a9de8[_0x2ca9f8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x488728&&(!!_0x488728[_0x2ca9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ca9f8([0x2a]))||!!_0x488728[_0x2ca9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ca9f8([0x55,0x50,0x4c,0x43])));}function _0x3148d4(){const _0x1b3564=_0x2a9de8[_0x2ca9f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b3564||0x0==_0x1b3564[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b9b22}=new URL(window[_0x2ca9f8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b3564[_0x2ca9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9b22))return!0x0;const _0x4e241a=_0x2b9b22[_0x2ca9f8([0x73,0x70,0x6c,0x69,0x74])](_0x2ca9f8([0x2e]));return _0x1b3564[_0x2ca9f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x277292=>_0x277292[_0x2ca9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ca9f8([0x2a])))[_0x2ca9f8([0x6d,0x61,0x70])](_0x417a12=>_0x417a12[_0x2ca9f8([0x73,0x70,0x6c,0x69,0x74])](_0x2ca9f8([0x2e])))[_0x2ca9f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x347475=>_0x347475[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e241a[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ca9f8([0x6d,0x61,0x70])](_0x3554c2=>Array(_0x4e241a[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3554c2[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ca9f8([0x66,0x69,0x6c,0x6c])](_0x3554c2[0x0]===_0x2ca9f8([0x2a])?_0x2ca9f8([0x2a]):'')[_0x2ca9f8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3554c2))[_0x2ca9f8([0x73,0x6f,0x6d,0x65])](_0x1f7ffb=>_0x4e241a[_0x2ca9f8([0x65,0x76,0x65,0x72,0x79])]((_0x5d88cd,_0x56d4ac)=>_0x1f7ffb[_0x56d4ac]===_0x5d88cd||_0x1f7ffb[_0x56d4ac]===_0x2ca9f8([0x2a])));}function _0x19dc7a(){return _0x468898&&_0x1e3cfc?new window[(_0x2ca9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4197e1,_0x286990)=>{_0x468898[_0x2ca9f8([0x74,0x68,0x65,0x6e])](_0x4197e1,_0x286990),_0x1e3cfc[_0x2ca9f8([0x74,0x68,0x65,0x6e])](_0x3124fb=>{_0x3124fb!=_0x2ca9f8([0x56,0x61,0x6c,0x69,0x64])&&_0x4197e1(_0x3124fb);},_0x286990);}):_0x468898||_0x1e3cfc||_0x2ca9f8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2351e9(_0x45de4a,_0x581896){return new window[(_0x2ca9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c9c1a=>{if(_0x27d3db())return _0x2c9c1a(_0x2ca9f8([0x56,0x61,0x6c,0x69,0x64]));_0x5e3776(),_0xf12c46[_0x2ca9f8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ca9f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x21474b=!0x1;const _0x28bfbf=_0xcc405e();function _0x1edc53(_0x20dfd7){return!!_0x20dfd7&&(typeof _0x20dfd7===_0x2ca9f8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x20dfd7===_0x2ca9f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x20dfd7[_0x2ca9f8([0x74,0x68,0x65,0x6e])]===_0x2ca9f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x20dfd7[_0x2ca9f8([0x63,0x61,0x74,0x63,0x68])]===_0x2ca9f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4290b0(_0x2dcdff){_0x1d624c(_0x2dcdff)[_0x2ca9f8([0x74,0x68,0x65,0x6e])](_0x344535=>{if(!_0x344535||_0x344535[_0x2ca9f8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ca9f8([0x6f,0x6b]))return _0x2ca9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d1719(_0x1c18f3(_0x28bfbf+_0x581896))!=_0x344535[_0x2ca9f8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ca9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ca9f8([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ca9f8([0x74,0x68,0x65,0x6e])](_0x275fae=>(_0x5b318d(),_0x275fae),()=>{const _0x584a1e=_0x14f556();return null==_0x584a1e?(_0x5b318d(),_0x2ca9f8([0x56,0x61,0x6c,0x69,0x64])):_0x2ca9f8(_0x396fa7-_0x584a1e>(0x7753083a^_0x2c564f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ca9f8([0x74,0x68,0x65,0x6e])](_0x2c9c1a)[_0x2ca9f8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c9c1a(_0x2ca9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31e3ab=0x536962ba^_0x2c564f;function _0x5b318d(){const _0x285186=_0x2ca9f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d1719(_0x1c18f3(_0x45de4a)),_0x1e31a9=_0x11e01f(_0x4d1719(window[_0x2ca9f8([0x4d,0x61,0x74,0x68])][_0x2ca9f8([0x63,0x65,0x69,0x6c])](_0x396fa7/_0x31e3ab)));window[_0x2ca9f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ca9f8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x285186,_0x1e31a9);}function _0x14f556(){const _0x1f9dbb=_0x2ca9f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d1719(_0x1c18f3(_0x45de4a)),_0x336a32=window[_0x2ca9f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ca9f8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f9dbb);return _0x336a32?window[_0x2ca9f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11e01f(_0x336a32),0x10)*_0x31e3ab:null;}function _0x1d624c(_0x4f04e0){return new window[(_0x2ca9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41dc49,_0x534b27)=>{_0x4f04e0[_0x2ca9f8([0x74,0x68,0x65,0x6e])](_0x41dc49,_0x534b27),window[_0x2ca9f8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x534b27,0x535e58fa^_0x2c564f);});}}_0xf12c46[_0x2ca9f8([0x6f,0x6e])](_0x2ca9f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e5ab7,_0x352e99)=>{if(_0x352e99[0x0]!=_0x45de4a)return _0x2c9c1a(_0x2ca9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x352e99[0x1]={..._0x352e99[0x1],[_0x2ca9f8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28bfbf};},{[_0x2ca9f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ca9f8([0x68,0x69,0x67,0x68])}),_0xf12c46[_0x2ca9f8([0x6f,0x6e])](_0x2ca9f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f1d37=>{_0x1edc53(_0x2f1d37[_0x2ca9f8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x21474b=!0x0,_0x4290b0(_0x2f1d37[_0x2ca9f8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ca9f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ca9f8([0x6c,0x6f,0x77])}),_0x527bd9[_0x2ca9f8([0x74,0x68,0x65,0x6e])](()=>{_0x21474b||_0x2c9c1a(_0x2ca9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27d3db(){return _0xf12c46[_0x2ca9f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ca9f8([0x76,0x69,0x65,0x77])][_0x2ca9f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ca9f8([0x61,0x75,0x74,0x6f]);}function _0x5e3776(){_0xf12c46[_0x2ca9f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ca9f8([0x76,0x69,0x65,0x77])][_0x2ca9f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ca9f8([0x61,0x75,0x74,0x6f]);}}function _0x68324d(_0x279f8b){const _0x59bb01=[new window[(_0x2ca9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43d5ef=>setTimeout(_0x43d5ef,0x5356b2f6^_0x2c564f)),_0x527bd9[_0x2ca9f8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ca9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d7a84=>{let _0x33f0e7=0x0;_0xf12c46[_0x2ca9f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ca9f8([0x6f,0x6e])](_0x2ca9f8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2e3a3d,_0x756d7c)=>{_0x756d7c[0x0][_0x2ca9f8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33f0e7++,_0x33f0e7==(0x535f89d2^_0x2c564f)&&(_0x5d7a84(),_0x2e3a3d[_0x2ca9f8([0x6f,0x66,0x66])]());});}))];return window[_0x2ca9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ca9f8([0x72,0x61,0x63,0x65])](_0x59bb01)[_0x2ca9f8([0x74,0x68,0x65,0x6e])](()=>_0x279f8b);}async function _0x777305(){await _0x527bd9,_0xf12c46[_0x2ca9f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ca9f8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe1e696,_0xf12c46[_0x2ca9f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ca9f8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe1e696,_0xf12c46[_0x2ca9f8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ca9f8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x562e1a(_0x59d19a){const _0x474a12=_0x181dd0();_0xf12c46[_0x474a12]=_0x2ca9f8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59d19a,_0x59d19a!=_0x2ca9f8([0x56,0x61,0x6c,0x69,0x64])&&_0x777305();}function _0x181dd0(){const _0x48f0c5=window[_0x2ca9f8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ca9f8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ca9f8([0x6e,0x6f,0x77])]())[_0x2ca9f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ca9f8([0x2e]),'');let _0x12c109=_0x2ca9f8([0x68]);for(let _0x352b03=0x0;_0x352b03<_0x48f0c5[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x352b03+=0x2){let _0x556928=window[_0x2ca9f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48f0c5[_0x2ca9f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x352b03,_0x352b03+0x2));_0x556928>=_0x25836e[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x556928-=_0x25836e[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12c109+=_0x25836e[_0x556928];}return _0x12c109;}function _0x396d15(){const _0x49f066=_0x36189f[_0x2ca9f8([0x73,0x70,0x6c,0x69,0x74])](_0x2ca9f8([0x2e]));if(0x3!=_0x49f066[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b6f12(_0x49f066[0x1]);function _0x4b6f12(_0x3f21ec){const _0x1c50aa=_0x3b81dd(_0x3f21ec);return _0x1c50aa&&_0xdc7f31()?_0x1c50aa:null;function _0xdc7f31(){const _0x19584f=_0x1c50aa[_0x2ca9f8([0x6a,0x74,0x69])],_0x3533eb=window[_0x2ca9f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19584f[_0x2ca9f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19584f[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x217ff9={..._0x1c50aa,[_0x2ca9f8([0x6a,0x74,0x69])]:_0x19584f[_0x2ca9f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19584f[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x217ff9[_0x2ca9f8([0x76,0x63])],_0x1c18f3(_0x217ff9)==_0x3533eb;}}}async function _0x116be4(){let _0x41865b=!0x0;try{const _0x54f326=_0x36189f[_0x2ca9f8([0x73,0x70,0x6c,0x69,0x74])](_0x2ca9f8([0x2e])),[_0x5949dd,_0x1f05d7,_0x83457e]=_0x54f326;return _0x451e62(_0x5949dd),await _0x34401a(_0x5949dd,_0x1f05d7,_0x83457e),_0x41865b;}catch{return!0x1;}function _0x451e62(_0x4dca6f){const _0x11f91e=_0x3b81dd(_0x4dca6f);_0x11f91e&&_0x11f91e[_0x2ca9f8([0x61,0x6c,0x67])]==_0x2ca9f8([0x45,0x53,0x32,0x35,0x36])||(_0x41865b=!0x1);}async function _0x34401a(_0x42b934,_0x208995,_0x78e13a){const _0x430752=window[_0x2ca9f8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ca9f8([0x66,0x72,0x6f,0x6d])](_0x4481d9(_0x78e13a),_0x5e37e7=>_0x5e37e7[_0x2ca9f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x38c241=new window[(_0x2ca9f8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ca9f8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x42b934+_0x2ca9f8([0x2e])+_0x208995),_0xbe7a5c=window[_0x2ca9f8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ca9f8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xbe7a5c)return;const _0x34dfa8=await _0xbe7a5c[_0x2ca9f8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ca9f8([0x6a,0x77,0x6b]),_0xc89862,{[_0x2ca9f8([0x6e,0x61,0x6d,0x65])]:_0x2ca9f8([0x45,0x43,0x44,0x53,0x41]),[_0x2ca9f8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ca9f8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ca9f8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xbe7a5c[_0x2ca9f8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ca9f8([0x6e,0x61,0x6d,0x65])]:_0x2ca9f8([0x45,0x43,0x44,0x53,0x41]),[_0x2ca9f8([0x68,0x61,0x73,0x68])]:{[_0x2ca9f8([0x6e,0x61,0x6d,0x65])]:_0x2ca9f8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34dfa8,_0x430752,_0x38c241)||(_0x41865b=!0x1);}}function _0x3b81dd(_0x8dc5d6){return _0x8dc5d6[_0x2ca9f8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ca9f8([0x65,0x79]))?JSON[_0x2ca9f8([0x70,0x61,0x72,0x73,0x65])](_0x4481d9(_0x8dc5d6)):null;}function _0x4481d9(_0x1ec857){return window[_0x2ca9f8([0x61,0x74,0x6f,0x62])](_0x1ec857[_0x2ca9f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ca9f8([0x2b]))[_0x2ca9f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ca9f8([0x2f])));}function _0x1c18f3(_0xfaaa04){let _0x7b6e1a=0x1505;function _0x13c390(_0x151444){for(let _0x2419d7=0x0;_0x2419d7<_0x151444[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2419d7++){const _0x4c06d2=_0x151444[_0x2ca9f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2419d7);_0x7b6e1a=(_0x7b6e1a<<0x5)+_0x7b6e1a+_0x4c06d2,_0x7b6e1a&=_0x7b6e1a;}}function _0x2c56ee(_0x55ce97){Array[_0x2ca9f8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x55ce97)?_0x55ce97[_0x2ca9f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c56ee):_0x55ce97&&typeof _0x55ce97==_0x2ca9f8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ca9f8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x55ce97)[_0x2ca9f8([0x73,0x6f,0x72,0x74])]()[_0x2ca9f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x99e64c,_0x348092])=>{_0x13c390(_0x99e64c),_0x2c56ee(_0x348092);}):_0x13c390(window[_0x2ca9f8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x55ce97));}return _0x2c56ee(_0xfaaa04),_0x7b6e1a>>>0x0;}function _0x4d1719(_0x455c8d){return _0x455c8d[_0x2ca9f8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ca9f8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ca9f8([0x30]));}function _0x11e01f(_0x535271){return _0x535271[_0x2ca9f8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ca9f8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ca9f8([0x6a,0x6f,0x69,0x6e])]('');}function _0xe1e696(){}function _0x2ca9f8(_0x3fbcf1){return _0x3fbcf1['map'](_0x20e514=>String['fromCharCode'](_0x20e514))['join']('');}_0x562e1a(await _0x20e6b5());}(this);}['_initSchema'](){const _0x3c0cce=this['editor']['model']['schema'];_0x3c0cce['isRegistered']('imageBlock')&&_0x3c0cce['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3c0cce['isRegistered']('imageInline')&&_0x3c0cce['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x400e6b=this['editor'];_0x400e6b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x400e6b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3e1381=>_0x3e1381['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x572899=_0x400e6b['commands']['get']('replaceImageSource');_0x572899&&this['listenTo'](_0x572899,'cleanupImage',(_0x3fb5c7,[_0x4d9d59,_0x32d427])=>{_0x4d9d59['removeAttribute']('uploadcareImageId',_0x32d427);});}['_initConfig'](){const _0x5ea36d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x100b59=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x513ad3(_0xf3981c['document'],'uc-config',{..._0x5ea36d,'pubkey':_0x100b59,'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']=_0x57e12b=>{if('closeMax'==_0x57e12b)return'#uc-icon-arrow-down';},_0xf3981c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x513ad3(_0xf3981c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xf3981c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1e0b90=this['editor']['commands']['get']('insertImage');_0x1e0b90&&this['listenTo'](_0x1e0b90,'execute',()=>{const _0x1fb1b4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1fb1b4&&_0x1fb1b4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1fb1b4);});});const _0x2b50fc=this['editor']['commands']['get']('uploadcareImageReplace');_0x2b50fc&&this['listenTo'](_0x2b50fc,'execute',()=>{const _0x581a15=this['editor']['model']['document']['selection']['getSelectedElement']();_0x581a15&&_0x581a15['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x581a15);});});}}class tt extends _0x2558bc{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e9869){super(_0x1e9869),_0x1e9869['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x15ba95['defineComponents'](_0x15ba95),this['_defineLocale']();}['_defineLocale'](){const _0x465556=this['editor']['config']['get']('uploadcare.locale'),_0x15b3d=this['editor']['locale']['contentLanguage'];_0x465556&&_0x15ba95['defineLocale'](_0x15b3d,_0x465556);}}class ii extends _0x2dde75{constructor(_0x2bec7e){super(_0x2bec7e);const t=_0x2bec7e['t'],_0x45c7d4=this['bindTemplate'],_0x25cdff=new _0x34473e();_0x25cdff['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':[_0x25cdff,{'text':_0x45c7d4['to']('imageUploadProgress',_0x45432b=>t('Loading\x20image...')+'\x20('+(_0x45432b||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 _0x2dde75{constructor(_0x4f143b){super(_0x4f143b);const t=_0x4f143b['t'];this['set']('errorType',null);const _0x4eb772=new _0x542201(_0x4f143b);_0x4eb772['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4eb772['withText']=!0x0,_0x4eb772['class']='ck-button-action',_0x4eb772['on']('execute',()=>{this['fire']('retry');}),_0x4eb772['bind']('isVisible')['to'](this,'errorType',_0x1a2418=>'NotFound'!==_0x1a2418);const _0x3a97be=new _0x5158d8();_0x3a97be['content']=_0x208e3e,_0x3a97be['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2ee42b=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':[_0x3a97be,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2ee42b['to']('errorType',_0x17307c=>t('NotFound'!==_0x17307c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4eb772]},{'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 _0x2dde75{constructor(_0x4bd180,_0x1d30a6){super(_0x4bd180);const _0x1c2bda=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1d30a6,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1c2bda['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x126958,_0x5d3df4,_0x48c7f7){super(_0x126958),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x126958),this['_errorView']=new ti(_0x126958),this['_editingView']=new ei(_0x126958,_0x48c7f7),this['_focusableView']=new _0x2dde75(_0x126958),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5d3df4),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'],_0x48e057=>{this['_addUploadcareImageEditorListeners'](_0x48e057);});}),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'](_0x21a7ed,_0x1b50ad){const _0x9267d6='uc-cloud-image-editor',_0x467686=_0x21a7ed['querySelector'](_0x9267d6);if(_0x467686)return _0x1b50ad(_0x467686);const _0x5d9aa9=new MutationObserver(_0x2b2c71=>{const _0x3a8c95=_0x2b2c71['filter'](_0x361a95=>_0x361a95['target']===_0x21a7ed&&_0x361a95['addedNodes']['length']>0x0&&_0x361a95['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x9267d6);_0x3a8c95['length']&&(_0x5d9aa9['disconnect'](),_0x1b50ad(_0x3a8c95[0x0]['addedNodes'][0x0]));});_0x5d9aa9['observe'](_0x21a7ed,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xc1e537){_0xc1e537['addEventListener']('apply',_0x826404=>{this['fire']('apply',{'imageSrc':_0x826404['detail']['cdnUrl']});}),_0xc1e537['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3d3749(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1aceb7,_0x132e8d,_0x5788f1){super(),this['_editor']=_0x1aceb7,this['_dialog']=_0x132e8d,this['_imageElement']=_0x5788f1,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 _0xe1efc0=this['_imageElement'],_0x1bb849=_0xe1efc0['getAttribute']('uploadcareImageId'),_0x15ba90=_0xe1efc0['getAttribute']('src');if(_0x1bb849)await this['_loadImageInfo'](_0x1bb849,_0x15ba90);else{if(this['_imageCache']['has'](_0x15ba90)){const _0x1e2748=this['_imageCache']['get'](_0x15ba90);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e2748['url'],this['imageDimension']=_0x1e2748['dimension'],this['imageId']=_0x1e2748['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3ebdda}=this['_editor'],t=_0x3ebdda['t'],_0x16f268=new X(_0x3ebdda,this['imageStatus'],this['_attributes']);_0x16f268['bind']('status')['to'](this,'imageStatus'),_0x16f268['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x16f268['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x16f268['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x16f268,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x354414,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x16f268,'position':_0x49e8b0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x16f268['focus']();},'onHide':()=>{_0x16f268['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x26fce2=>!A(_0x26fce2,_0x16f268['element'])}});}['_loadImageInfo'](_0x41f075,_0x201fd8){return j['getInfo'](_0x41f075,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1fa420=>{const {width:_0x1f0386,height:_0xcd0fbd}=_0x1fa420['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x201fd8,this['imageDimension']={'width':_0x1f0386,'height':_0xcd0fbd},this['imageId']=_0x41f075;})['catch'](_0x1b26dd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1b26dd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x46038a,_0x2235f0){return this['_getImageAsFile'](_0x46038a)['then'](_0x1f807d=>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':_0x2235f0['signal'],'file':_0x1f807d,'onProgress':_0x90e3ca=>{_0x90e3ca&&_0x90e3ca['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x90e3ca['value']));}}))['then'](_0x17e2ae=>{const {width:_0x3abf80,height:_0x5a507a}=_0x17e2ae['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17e2ae['cdnUrl'],this['imageDimension']={'width':_0x3abf80,'height':_0x5a507a},this['imageId']=_0x17e2ae['uuid'],this['imageUploadProgress']=null;const _0x18f851=_0x46038a['getAttribute']('src');this['_imageCache']['set'](_0x18f851,{'id':_0x17e2ae['uuid'],'url':_0x17e2ae['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x35c3d7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x35c3d7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x26a28f,_0x2ede39){_0x26a28f['on']('apply',(_0x513fac,_0x4d6588)=>{this['_replaceImage'](_0x2ede39,_0x4d6588['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x26a28f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x26a28f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5d84ea,_0x5f06ea,_0x32ae3b){const _0x561ee1=this['_editor'],{width:_0x1e9f4e,height:_0x3f6ee5}=S(_0x5f06ea,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5c28ba,imageSources:_0x4de111}=C(_0x5f06ea,_0x1e9f4e);_0x561ee1['model']['change'](_0x2f73be=>{if('$graveyard'===_0x5d84ea['root']['rootName']){_0x561ee1['execute']('insertImage',{'imageType':_0x5d84ea['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5d84ea['getAttributes']()),'uploadcareImageId':_0x32ae3b,'src':_0x5c28ba,'sources':_0x4de111,'width':_0x1e9f4e,'height':_0x3f6ee5}});const _0x36ace7=_0x5d84ea['getChildren']();_0x5d84ea=_0x561ee1['model']['document']['selection']['getSelectedElement']();for(const _0x18a842 of _0x36ace7)_0x2f73be['append'](_0x2f73be['cloneElement'](_0x18a842),_0x5d84ea);}else _0x2f73be['setSelection'](_0x5d84ea,'on'),_0x561ee1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5d84ea['getAttributes']()),'uploadcareImageId':_0x32ae3b,'src':_0x5c28ba,'sources':_0x4de111,'width':_0x1e9f4e,'height':_0x3f6ee5},_0x5d84ea);_0x2f73be['setSelection'](_0x5d84ea,'on');});}async['_getImageAsFile'](_0x3b1c66){const _0x2aad02=_0xf3981c['window'],_0x57d00f=_0xf3981c['document']['location']['href'],_0x21cca9=new _0x2aad02['URL'](_0x3b1c66['getAttribute']('src'),_0x57d00f);if('data:'===_0x21cca9['protocol']){const _0x164e14=_0x21cca9['href']['split'](','),_0xf90c87=_0x164e14[0x0]['match'](/:(.*?);/)[0x1],_0x7531b8=_0xf90c87['split']('/')[0x1],_0x11e04b=_0x2aad02['atob'](_0x164e14[_0x164e14['length']-0x1]);let _0x78df55=_0x11e04b['length'];const _0x48a04c=new _0x2aad02['Uint8Array'](_0x78df55);for(;_0x78df55--;)_0x48a04c[_0x78df55]=_0x11e04b['charCodeAt'](_0x78df55);return new _0x2aad02['File']([_0x48a04c],'image.'+_0x7531b8,{'type':_0xf90c87});}const _0x2f8ed1=_0x21cca9['href']['split']('/'),_0x5008a9=_0x2f8ed1[_0x2f8ed1['length']-0x1],_0x1c3db0=_0x5008a9['split']('.')[0x1];return _0x2aad02['fetch'](_0x21cca9['href'])['then'](_0x5475fd=>_0x5475fd['clone']()['blob']())['then'](_0x3ff761=>new _0x2aad02['File']([_0x3ff761],_0x5008a9,{'type':'image/'+_0x1c3db0}));}}class O extends _0x46dcca{['imageEditController'];static get['requires'](){return[_0x30b164];}['_isEditable'];constructor(_0x4a5dd2){super(_0x4a5dd2),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xa0a220){const _0x5e0242=G(_0xa0a220);return _0x31dfa5=>!(!_0x31dfa5||!_0x31dfa5['is']('element','imageBlock')&&!_0x31dfa5['is']('element','imageInline'))&&(!!_0x31dfa5['hasAttribute']('uploadcareImageId')||!!_0x31dfa5['hasAttribute']('src')&&_0x5e0242(_0x31dfa5['getAttribute']('src')));}(_0x4a5dd2['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1b3c07=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1b3c07);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4deaf9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4deaf9&&(_0x4deaf9['is']('element','imageBlock')||_0x4deaf9['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x30b164),_0x4deaf9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x46dcca{['refresh'](){const _0x2ff39b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2ff39b&&(_0x2ff39b['is']('element','imageBlock')||_0x2ff39b['is']('element','imageInline')));}['execute'](_0xd2fecf){const _0x5b8757=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x553d7f=>{_0x553d7f['setAttributes'](_0xd2fecf,_0x5b8757),_0x553d7f['removeAttribute']('srcset',_0x5b8757),_0x553d7f['removeAttribute']('sizes',_0x5b8757);});}}class m extends _0x2558bc{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x46da16,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x421cfc}=this;_0x421cfc['commands']['add']('uploadcareImageEdit',new O(_0x421cfc)),_0x421cfc['commands']['add']('uploadcareImageReplace',new R(_0x421cfc));}}class g extends _0x2558bc{['_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 _0x28ada7=this['editor'];_0x28ada7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x24cad6=>{const _0x1fd235=_0x28ada7['commands']['get']('uploadcareImageEdit'),_0x2eaa38=new _0x542201(_0x24cad6),t=_0x24cad6['t'];return _0x2eaa38['set']({'icon':_0x354414,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2eaa38['bind']('isEnabled')['to'](_0x1fd235),_0x2eaa38['bind']('isOn')['to'](_0x1fd235,'isActive'),this['listenTo'](_0x2eaa38,'execute',()=>{_0x28ada7['execute']('uploadcareImageEdit'),_0x28ada7['editing']['view']['focus']();}),_0x2eaa38;}),this['_initConfig']();}['_initConfig'](){const _0xae77cc=_0x513ad3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xae77cc),this['listenTo'](this['editor'],'destroy',()=>{_0xae77cc['remove']();});}}class et extends _0x2558bc{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':_0x5b1418=>0x1!=_0x5b1418}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2244db=>{const {af:{dictionary:_0x9b8126,getPluralForm:_0x145331}}={'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':_0x148496=>0x1!=_0x148496}};_0x2244db['af']||={'dictionary':{},'getPluralForm':null},_0x2244db['af']['dictionary']=Object['assign'](_0x2244db['af']['dictionary'],_0x9b8126),_0x2244db['af']['getPluralForm']=_0x145331;})(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':_0x3072f4=>0x0==_0x3072f4?0x0:0x1==_0x3072f4?0x1:0x2==_0x3072f4?0x2:_0x3072f4%0x64>=0x3&&_0x3072f4%0x64<=0xa?0x3:_0x3072f4%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x57c552=>{const {ar:{dictionary:_0x9ea997,getPluralForm:_0x3af187}}={'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':_0x5c6efe=>0x0==_0x5c6efe?0x0:0x1==_0x5c6efe?0x1:0x2==_0x5c6efe?0x2:_0x5c6efe%0x64>=0x3&&_0x5c6efe%0x64<=0xa?0x3:_0x5c6efe%0x64>=0xb?0x4:0x5}};_0x57c552['ar']||={'dictionary':{},'getPluralForm':null},_0x57c552['ar']['dictionary']=Object['assign'](_0x57c552['ar']['dictionary'],_0x9ea997),_0x57c552['ar']['getPluralForm']=_0x3af187;})(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':_0x585ee1=>0x1!=_0x585ee1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1b4fff=>{const {ast:{dictionary:_0x42a500,getPluralForm:_0x458045}}={'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':_0x21a472=>0x1!=_0x21a472}};_0x1b4fff['ast']||={'dictionary':{},'getPluralForm':null},_0x1b4fff['ast']['dictionary']=Object['assign'](_0x1b4fff['ast']['dictionary'],_0x42a500),_0x1b4fff['ast']['getPluralForm']=_0x458045;})(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':_0x4e700e=>0x1!=_0x4e700e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4106b0=>{const {az:{dictionary:_0x5d1f5b,getPluralForm:_0x3a826d}}={'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':_0x854649=>0x1!=_0x854649}};_0x4106b0['az']||={'dictionary':{},'getPluralForm':null},_0x4106b0['az']['dictionary']=Object['assign'](_0x4106b0['az']['dictionary'],_0x5d1f5b),_0x4106b0['az']['getPluralForm']=_0x3a826d;})(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':_0x328299=>_0x328299%0xa==0x1&&_0x328299%0x64!=0xb?0x0:_0x328299%0xa>=0x2&&_0x328299%0xa<=0x4&&(_0x328299%0x64<0xa||_0x328299%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x180e54=>{const {be:{dictionary:_0x23396c,getPluralForm:_0x97a589}}={'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':_0x5dfe3c=>_0x5dfe3c%0xa==0x1&&_0x5dfe3c%0x64!=0xb?0x0:_0x5dfe3c%0xa>=0x2&&_0x5dfe3c%0xa<=0x4&&(_0x5dfe3c%0x64<0xa||_0x5dfe3c%0x64>=0x14)?0x1:0x2}};_0x180e54['be']||={'dictionary':{},'getPluralForm':null},_0x180e54['be']['dictionary']=Object['assign'](_0x180e54['be']['dictionary'],_0x23396c),_0x180e54['be']['getPluralForm']=_0x97a589;})(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':_0x5bd076=>0x1!=_0x5bd076}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x16fb1d=>{const {bg:{dictionary:_0x2b8598,getPluralForm:_0x212b23}}={'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':_0xb8806=>0x1!=_0xb8806}};_0x16fb1d['bg']||={'dictionary':{},'getPluralForm':null},_0x16fb1d['bg']['dictionary']=Object['assign'](_0x16fb1d['bg']['dictionary'],_0x2b8598),_0x16fb1d['bg']['getPluralForm']=_0x212b23;})(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':_0x153487=>0x1!=_0x153487}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5d556d=>{const {bn:{dictionary:_0x4e63f6,getPluralForm:_0x34e9ba}}={'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':_0x3124c0=>0x1!=_0x3124c0}};_0x5d556d['bn']||={'dictionary':{},'getPluralForm':null},_0x5d556d['bn']['dictionary']=Object['assign'](_0x5d556d['bn']['dictionary'],_0x4e63f6),_0x5d556d['bn']['getPluralForm']=_0x34e9ba;})(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':_0x525c39=>_0x525c39%0xa==0x1&&_0x525c39%0x64!=0xb?0x0:_0x525c39%0xa>=0x2&&_0x525c39%0xa<=0x4&&(_0x525c39%0x64<0xa||_0x525c39%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x16f194=>{const {bs:{dictionary:_0x571406,getPluralForm:_0x489d03}}={'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':_0x35114b=>_0x35114b%0xa==0x1&&_0x35114b%0x64!=0xb?0x0:_0x35114b%0xa>=0x2&&_0x35114b%0xa<=0x4&&(_0x35114b%0x64<0xa||_0x35114b%0x64>=0x14)?0x1:0x2}};_0x16f194['bs']||={'dictionary':{},'getPluralForm':null},_0x16f194['bs']['dictionary']=Object['assign'](_0x16f194['bs']['dictionary'],_0x571406),_0x16f194['bs']['getPluralForm']=_0x489d03;})(window['CKEDITOR_TRANSLATIONS']||={});
|