@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260116.0 → 0.0.0-nightly-20260117.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 _0x3b558d,Command as _0x4e36cd}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x29d5a4,IconGooglePhotos as _0x2ec960,IconGoogleDrive as _0x4a91f9,IconFacebook as _0x109f60,IconDropbox as _0x4beff6,IconUploadcareLink as _0x1fb08e,IconUploadcareImageUpload as _0x5d7aa9,IconError as _0x592f0e,IconUploadcareImageEdit as _0x21f322}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x443a5a,MenuBarMenuListItemButtonView as _0x454c35,View as _0x37d1c8,FocusCycler as _0x2f1956,Dialog as _0x1eb9d6,DialogViewPosition as _0xf246b9,SpinnerView as _0x7f2542,IconView as _0x196e5e,Notification as _0x3c3d11}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3f11d3,DomEmitterMixin as _0x1d35c9,global as _0x34d309,getAncestors as _0x59fa9b,ObservableMixin as _0x4d21ac,uid as _0x380e8c,createElement as _0x13d237}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xaa39ca}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x59a8bd,info as _0x2038a7}from'@uploadcare/upload-client';import*as _0x5f1043 from'@uploadcare/file-uploader';var i=function(_0x5b0f4a){return _0x5b0f4a['Local']='local',_0x5b0f4a['URL']='url',_0x5b0f4a['Dropbox']='dropbox',_0x5b0f4a['GDrive']='gdrive',_0x5b0f4a['Facebook']='facebook',_0x5b0f4a['GPhotos']='gphotos',_0x5b0f4a['OneDrive']='onedrive',_0x5b0f4a;}({});function _(_0x169762,_0x11c0b4,_0x525912){const t=_0x169762['t'],_0x37fd96=_0x169762['t'];switch(_0x11c0b4){case i['Local']:return{'text':_0x37fd96('Insert'===_0x525912?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x37fd96('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x525912?_0x37fd96('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x37fd96('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x525912?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x525912?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x525912?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x525912?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x525912?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x11c0b4;}}class e extends _0x3b558d{['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 _0x552ff8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x326878;for(const _0x355d91 in _0x552ff8){const _0x198212=_0x355d91,_0x6df0c3=_0x552ff8[_0x198212];if('uploadcareLicenseKeyValid'==_0x6df0c3||'uploadcareLicenseKeyInvalid'==_0x6df0c3||'uploadcareLicenseKeyExpired'==_0x6df0c3||'uploadcareLicenseKeyDomainLimit'==_0x6df0c3||'uploadcareLicenseKeyNotAllowed'==_0x6df0c3||'uploadcareLicenseKeyEvaluationLimit'==_0x6df0c3||'uploadcareLicenseKeyUsageLimit'==_0x6df0c3){delete _0x552ff8[_0x198212],_0x326878=_0x6df0c3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x326878&&_0x552ff8['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x326878&&_0x552ff8['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x326878&&_0x552ff8['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x326878&&_0x552ff8['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x326878&&_0x552ff8['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x326878&&_0x552ff8['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x11cc83}=this,_0x2d8a9e=_0x11cc83['commands']['get']('uploadcare');if(!_0x2d8a9e)return;const _0x3d7346=this['_normalizeConfigSourceList'](_0x11cc83['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1d1d17,_0x2a52eb)=>{const _0x17d1cf=this['_getIntegrationKey'](_0x2a52eb['type']);return _0x1d1d17[_0x17d1cf]||(_0x1d1d17[_0x17d1cf]=[]),_0x1d1d17[_0x17d1cf]['push'](_0x2a52eb),_0x1d1d17;},{});_0x11cc83['plugins']['has']('ImageInsertUI')&&_0x11cc83['commands']['get']('uploadcare')&&Object['entries'](_0x3d7346)['forEach'](([_0xcf67c1,_0x345cea])=>{_0x11cc83['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xcf67c1,'observable':()=>_0x2d8a9e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x345cea),'formViewCreator':()=>this['_createDropdownButtons'](_0x345cea),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x345cea),'override':'assetManager'!==_0xcf67c1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3bc2b8){const {locale:_0x2f81f3}=this['editor'];return _0x3bc2b8['map'](_0x13aa0a=>{const _0x4eac79=_(_0x2f81f3,_0x13aa0a,'Insert');switch(_0x13aa0a){case i['Local']:return{'icon':_0x5d7aa9,'type':i['Local'],..._0x4eac79};case i['URL']:return{'icon':_0x1fb08e,'type':i['URL'],..._0x4eac79};case i['Dropbox']:return{'icon':_0x4beff6,'type':i['Dropbox'],..._0x4eac79};case i['Facebook']:return{'icon':_0x109f60,'type':i['Facebook'],..._0x4eac79};case i['GDrive']:return{'icon':_0x4a91f9,'type':i['GDrive'],..._0x4eac79};case i['GPhotos']:return{'icon':_0x2ec960,'type':i['GPhotos'],..._0x4eac79};case i['OneDrive']:return{'icon':_0x29d5a4,'type':i['OneDrive'],..._0x4eac79};}});}['_getIntegrationKey'](_0x2405d4){switch(_0x2405d4){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x194c0e,_0x20d220){const _0x1b170c=this['editor'],_0x54a87e=new _0x194c0e(_0x1b170c['locale']),_0x176529=_0x1b170c['commands']['get']('uploadcare');return _0x54a87e['bind']('isEnabled')['to'](_0x176529),_0x54a87e['on']('execute',()=>{_0x176529['execute'](_0x20d220);}),_0x54a87e;}['_createToolbarButton'](_0x2e1119){const {locale:_0x43ce12}=this['editor'],_0x1d1551=this['editor']['plugins']['get']('ImageInsertUI'),_0x42a90e=_0x2e1119[0x0],_0x133485=this['_createButton'](_0x443a5a,_0x42a90e['type']);return _0x133485['icon']=_0x42a90e['icon'],_0x133485['bind']('label')['to'](_0x1d1551,'isImageSelected',_0x2fa664=>_(_0x43ce12,_0x42a90e['type'],_0x2fa664?'Replace':'Insert')['text']),_0x133485['tooltip']=!0x0,_0x133485;}['_createDropdownButtons'](_0x5a66d8){const {locale:_0x2ccd4a}=this['editor'],_0x293fc9=this['editor']['plugins']['get']('ImageInsertUI');return _0x5a66d8['map'](_0x16f6dc=>{const _0x1aa273=this['_createButton'](_0x443a5a,_0x16f6dc['type']);return _0x1aa273['withText']=!0x0,_0x1aa273['icon']=_0x16f6dc['icon'],_0x1aa273['bind']('label')['to'](_0x293fc9,'isImageSelected',_0x4aa27d=>_(_0x2ccd4a,_0x16f6dc['type'],_0x4aa27d?'Replace':'Insert')['text']),_0x1aa273;});}['_createMenuBarButtons'](_0x3006cd){return _0x3006cd['map'](_0x5797ba=>{const _0x593440=this['_createButton'](_0x454c35,_0x5797ba['type']);return _0x593440['icon']=_0x5797ba['icon'],_0x593440['label']=_0x5797ba['shortText'],_0x593440;});}}class F extends _0x37d1c8{['focusTracker'];['focusCycler'];constructor(_0x57fa82){super(_0x57fa82),this['focusTracker']=new _0x3f11d3(),this['focusCycler']=new _0x2f1956({'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(_0x5f3fc2,_0x4982c3){super(_0x5f3fc2),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-'+_0x4982c3}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x134845,_0x3ca8d7){const _0x255abf=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x555a02=>_0x555a02<=_0x3ca8d7)['map'](_0x451e50=>_0x134845['replace'](/\/$/,'')+'/-/resize/'+_0x451e50+'x/\x20'+_0x451e50+'w');return{'imageFallbackUrl':_0x134845,'imageSources':[{'srcset':_0x255abf['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3ca8d7+'px)\x20100vw,\x20'+_0x3ca8d7+'px','type':'image/webp'}]};}function S(_0x593268,_0x4a7efa,_0x586eb2){const _0x94e400=_0x593268['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x94e400?parseInt(_0x94e400[0x1],0xa):_0x4a7efa,'height':_0x94e400?parseInt(_0x94e400[0x2],0xa):_0x586eb2};}function p(_0x28760a,_0x29cde7){const _0x2dad28=new(_0x1d35c9())(),_0x149393=_0x28760a['plugins']['get']('ImageUtils'),_0x24c639=_0x28760a['editing']['mapper']['toViewElement'](_0x29cde7),_0x42438a=_0x149393['findViewImgElement'](_0x24c639),_0x5f4688=_0x28760a['editing']['view']['domConverter']['viewToDom'](_0x42438a),_0x58ee07=_0x29cde7['getAttribute']('width'),_0x4b2c0c=_0x29cde7['getAttribute']('height'),_0x32d30e='image-processing';_0x28760a['editing']['view']['change'](_0x2ac478=>{_0x2ac478['addClass'](_0x32d30e,_0x24c639),_0x2ac478['setStyle']('aspect-ratio',_0x58ee07+'/'+_0x4b2c0c,_0x42438a);}),_0x2dad28['listenTo'](_0x5f4688,'load',()=>{_0x2dad28['stopListening'](_0x5f4688,'load'),_0x28760a['editing']['view']['change'](_0x22ef6b=>{_0x22ef6b['removeClass'](_0x32d30e,_0x24c639),_0x22ef6b['removeStyle']('aspect-ratio',_0x42438a);});});}function G(_0x3c66eb){if(Array['isArray'](_0x3c66eb)){const _0x2cc754=_0x3c66eb['map'](G);return _0x52aa30=>_0x2cc754['some'](_0x1bdf1d=>_0x1bdf1d(_0x52aa30));}if('origin'==_0x3c66eb){const _0x593b6a=_0x34d309['window']['location']['origin'];return _0x2c3620=>new URL(_0x2c3620,_0x34d309['document']['baseURI'])['origin']==_0x593b6a;}return'function'==typeof _0x3c66eb?_0x3c66eb:_0x3c66eb instanceof RegExp?_0x5d30a0=>!(!_0x5d30a0['match'](_0x3c66eb)&&!_0x5d30a0['replace'](/^https?:\/\//,'')['match'](_0x3c66eb)):()=>!0x1;}function A(_0x447b1d,_0x254024){return _0x59fa9b(_0x447b1d['target'])['includes'](_0x254024);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4d21ac(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3db674,_0x5aa366,_0x39afec){super(),this['_editor']=_0x3db674,this['_editing']=_0x5aa366,this['_dialog']=_0x3db674['plugins']['get'](_0x1eb9d6),this['_api']=_0x5aa366['ctxElement']['getAPI'](),this['_type']=_0x39afec,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:_0x3c627c,model:_0x2bf0cd}=this['_editor'],_0x1349b0=_0x2bf0cd['document']['selection']['getSelectedElement'](),_0x28bcfc=_0x1349b0&&(_0x1349b0['is']('element','imageBlock')||_0x1349b0['is']('element','imageInline'));this['_formView']=new x(_0x3c627c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5d7aa9,'title':_(_0x3c627c,this['_type'],_0x28bcfc?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xf246b9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xbaa3cc=>!A(_0xbaa3cc,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x839241}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x382903=>{const _0x388f43=_0x839241['length'];for(const _0x37bed4 of _0x839241){const _0x3d7b46=_0x37bed4===_0x839241[_0x388f43-0x1],{cdnUrl:_0x565f88,fileInfo:_0x3b6199}=_0x37bed4;if(!_0x565f88||!_0x3b6199)continue;const {width:_0x1da7ae,height:_0x13e6ed}=_0x3b6199['imageInfo'],_0x5872ce=S(_0x565f88,_0x1da7ae,_0x13e6ed),_0x33e119=C(_0x565f88,_0x5872ce['width']),_0x18c12e={'id':_0x3b6199['uuid'],'type':'image','attributes':{'imageDimension':_0x5872ce,..._0x33e119}};this['_insertAsset'](_0x18c12e,_0x3d7b46,_0x382903);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x31494e=>{'idle'===_0x31494e['detail']['status']&&!_0x31494e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x6f879e,_0x4bcb6e,_0x10ee7b){const _0x510ddf=this['_editor']['model']['document']['selection'],_0x267bf9=_0x510ddf['getSelectedElement'](),_0x335a4b=!(!_0x267bf9||!_0x267bf9['is']('element','imageInline'));_0x10ee7b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x6f879e,_0x335a4b),_0x4bcb6e||_0x10ee7b['setSelection'](_0x510ddf['getLastPosition']());}['_insertImage'](_0x21c789,_0x5813c4){const _0x54c0f2=this['_editor'],{imageDimension:_0x5283ba,imageFallbackUrl:_0x3d2e02,imageSources:_0xaa3fb}=_0x21c789['attributes'];_0x54c0f2['execute']('insertImage',{'imageType':_0x5813c4?'imageInline':null,'source':{'uploadcareImageId':_0x21c789['id'],'src':_0x3d2e02,'sources':_0xaa3fb,..._0x5283ba}});}}class w extends _0x4e36cd{['_editing'];['_controller']=null;static get['requires'](){return[_0x1eb9d6,o];}constructor(_0x5551d1){super(_0x5551d1),this['_editing']=_0x5551d1['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2427d7){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2427d7);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5e4594,..._0x479422}){return _0x59a8bd(_0x5e4594,_0x479422);}static['getInfo'](_0x207947,_0x3f6a6){return _0x2038a7(_0x207947,_0x3f6a6);}}class f extends _0x3b558d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xaa39ca,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4018e3=this['editor'];if(!!!_0x4018e3['config']['get']('uploadcare'))return;_0x4018e3['plugins']['get'](_0xaa39ca)['createUploadAdapter']=_0x429528=>new k(_0x429528,_0x4018e3),_0x4018e3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1e4545,{imageElement:_0x37bf45,data:_0x1fb58d})=>{_0x4018e3['model']['change'](_0x18305c=>{_0x18305c['setAttribute']('uploadcareImageId',_0x1fb58d['uploadcareImageId'],_0x37bf45);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x9e8467,_0x1a30f8){this['loader']=_0x9e8467,this['editor']=_0x1a30f8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xfa77b6=await this['loader']['file'];return j['upload']({'file':_0xfa77b6,'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':_0xf289b2=>{_0xf289b2&&_0xf289b2['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xf289b2['value']);}})['then'](async _0x34ddf6=>{const {imageFallbackUrl:_0x2c5714,imageSources:_0x44c593}=C(_0x34ddf6['cdnUrl'],_0x34ddf6['imageInfo']['width']);return{'uploadcareImageId':_0x34ddf6['uuid'],'default':_0x2c5714,'sources':_0x44c593};})['catch'](()=>{const _0x36a53c=t('Cannot\x20upload\x20file:')+('\x20'+_0xfa77b6['name']+'.');return Promise['reject'](_0x36a53c);});}['abort'](){this['controller']['abort']();}}class o extends _0x3b558d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1eb9d6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1e86d7){super(_0x1e86d7),this['ucContextId']=_0x380e8c();}['init'](){const _0xca2b0c=this['editor'];_0xca2b0c['commands']['add']('uploadcare',new w(_0xca2b0c));}['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 _0x185262=_0x34d309['document']['querySelector']('input[uploadcare-file-input]');_0x185262&&_0x185262['remove']();}),async function(_0x30272c){const _0x13474b=_0x3062de([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]),_0x4dd755=0x535f8c3a,_0x5d2bed=0x5358f2c2^_0x4dd755,_0x492602=window[_0x3062de([0x44,0x61,0x74,0x65])][_0x3062de([0x6e,0x6f,0x77])](),_0x2bb538=_0x30272c[_0x3062de([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5212ec=new window[(_0x3062de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x182e4f=>{_0x2bb538[_0x3062de([0x6f,0x6e,0x63,0x65])](_0x3062de([0x72,0x65,0x61,0x64,0x79]),_0x182e4f);}),_0x207990={[_0x3062de([0x6b,0x74,0x79])]:_0x3062de([0x45,0x43]),[_0x3062de([0x75,0x73,0x65])]:_0x3062de([0x73,0x69,0x67]),[_0x3062de([0x63,0x72,0x76])]:_0x3062de([0x50,0x2d,0x32,0x35,0x36]),[_0x3062de([0x78])]:_0x3062de([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]),[_0x3062de([0x79])]:_0x3062de([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]),[_0x3062de([0x61,0x6c,0x67])]:_0x3062de([0x45,0x53,0x32,0x35,0x36])},_0x1e3c75=_0x2bb538[_0x3062de([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3062de([0x67,0x65,0x74])](_0x3062de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5121b6(){let _0x335f01,_0x211c3b=null,_0x2db773=null;try{if(_0x1e3c75==_0x3062de([0x47,0x50,0x4c]))return _0x3062de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x335f01=_0x5f3e29(),!_0x335f01)return _0x3062de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x335f01[_0x3062de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2db773=_0x7d5fdb(_0x335f01[_0x3062de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x335f01[_0x3062de([0x6a,0x74,0x69])])),await _0x55cbeb()?_0x47ffd1()?_0x59907f()?_0x3062de([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1327eb()?(_0x335f01[_0x3062de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3062de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x211c3b=_0xc5f295(_0x3062de([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x53b59f()):_0x3062de([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3062de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3062de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3062de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59907f(){const _0x342983=[_0x3062de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3062de([0x74,0x72,0x69,0x61,0x6c])][_0x3062de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x335f01[_0x3062de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x492602/0x3e8:0xe10*_0x5d2bed;return _0x335f01[_0x3062de([0x65,0x78,0x70])]<_0x342983;}function _0x47ffd1(){const _0x4805c9=_0x335f01[_0x3062de([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4805c9&&(!!_0x4805c9[_0x3062de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3062de([0x2a]))||!!_0x4805c9[_0x3062de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3062de([0x55,0x50,0x4c,0x43])));}function _0x1327eb(){const _0x45a8d5=_0x335f01[_0x3062de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x45a8d5||0x0==_0x45a8d5[_0x3062de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x534119}=new URL(window[_0x3062de([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x45a8d5[_0x3062de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x534119))return!0x0;const _0x55b044=_0x534119[_0x3062de([0x73,0x70,0x6c,0x69,0x74])](_0x3062de([0x2e]));return _0x45a8d5[_0x3062de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x322818=>_0x322818[_0x3062de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3062de([0x2a])))[_0x3062de([0x6d,0x61,0x70])](_0x2315df=>_0x2315df[_0x3062de([0x73,0x70,0x6c,0x69,0x74])](_0x3062de([0x2e])))[_0x3062de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x287bcf=>_0x287bcf[_0x3062de([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x55b044[_0x3062de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3062de([0x6d,0x61,0x70])](_0x173fde=>Array(_0x55b044[_0x3062de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x173fde[_0x3062de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3062de([0x66,0x69,0x6c,0x6c])](_0x173fde[0x0]===_0x3062de([0x2a])?_0x3062de([0x2a]):'')[_0x3062de([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x173fde))[_0x3062de([0x73,0x6f,0x6d,0x65])](_0x4dd410=>_0x55b044[_0x3062de([0x65,0x76,0x65,0x72,0x79])]((_0x15f140,_0x1c3b0e)=>_0x4dd410[_0x1c3b0e]===_0x15f140||_0x4dd410[_0x1c3b0e]===_0x3062de([0x2a])));}function _0x53b59f(){return _0x211c3b&&_0x2db773?new window[(_0x3062de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ec493,_0xf5a5d5)=>{_0x211c3b[_0x3062de([0x74,0x68,0x65,0x6e])](_0x5ec493,_0xf5a5d5),_0x2db773[_0x3062de([0x74,0x68,0x65,0x6e])](_0x1ab696=>{_0x1ab696!=_0x3062de([0x56,0x61,0x6c,0x69,0x64])&&_0x5ec493(_0x1ab696);},_0xf5a5d5);}):_0x211c3b||_0x2db773||_0x3062de([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7d5fdb(_0x56fe9e,_0x527d7a){return new window[(_0x3062de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x191db5=>{if(_0x399d01())return _0x191db5(_0x3062de([0x56,0x61,0x6c,0x69,0x64]));_0x5c949a(),_0x2bb538[_0x3062de([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3062de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x276677=!0x1;const _0x480861=_0x380e8c();function _0x14e9ca(_0xa2ddd3){return!!_0xa2ddd3&&(typeof _0xa2ddd3===_0x3062de([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa2ddd3===_0x3062de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa2ddd3[_0x3062de([0x74,0x68,0x65,0x6e])]===_0x3062de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa2ddd3[_0x3062de([0x63,0x61,0x74,0x63,0x68])]===_0x3062de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a9f37(_0x5b4447){_0x4e116b(_0x5b4447)[_0x3062de([0x74,0x68,0x65,0x6e])](_0x2323f6=>{if(!_0x2323f6||_0x2323f6[_0x3062de([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3062de([0x6f,0x6b]))return _0x3062de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x16ae82(_0x4072c6(_0x480861+_0x527d7a))!=_0x2323f6[_0x3062de([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3062de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3062de([0x56,0x61,0x6c,0x69,0x64]);})[_0x3062de([0x74,0x68,0x65,0x6e])](_0x331311=>(_0x32cafa(),_0x331311),()=>{const _0x130860=_0x34ad24();return null==_0x130860?(_0x32cafa(),_0x3062de([0x56,0x61,0x6c,0x69,0x64])):_0x3062de(_0x492602-_0x130860>(0x7753083a^_0x4dd755)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3062de([0x74,0x68,0x65,0x6e])](_0x191db5)[_0x3062de([0x63,0x61,0x74,0x63,0x68])](()=>{_0x191db5(_0x3062de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1429e0=0x536962ba^_0x4dd755;function _0x32cafa(){const _0x999db8=_0x3062de([0x6c,0x6c,0x63,0x74,0x2d])+_0x16ae82(_0x4072c6(_0x56fe9e)),_0x2b68d3=_0x324c13(_0x16ae82(window[_0x3062de([0x4d,0x61,0x74,0x68])][_0x3062de([0x63,0x65,0x69,0x6c])](_0x492602/_0x1429e0)));window[_0x3062de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3062de([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x999db8,_0x2b68d3);}function _0x34ad24(){const _0x4d681f=_0x3062de([0x6c,0x6c,0x63,0x74,0x2d])+_0x16ae82(_0x4072c6(_0x56fe9e)),_0x4ab74a=window[_0x3062de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3062de([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d681f);return _0x4ab74a?window[_0x3062de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x324c13(_0x4ab74a),0x10)*_0x1429e0:null;}function _0x4e116b(_0x5d3abb){return new window[(_0x3062de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1176bc,_0x12b701)=>{_0x5d3abb[_0x3062de([0x74,0x68,0x65,0x6e])](_0x1176bc,_0x12b701),window[_0x3062de([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12b701,0x535e58fa^_0x4dd755);});}}_0x2bb538[_0x3062de([0x6f,0x6e])](_0x3062de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54b47b,_0x253fa0)=>{if(_0x253fa0[0x0]!=_0x56fe9e)return _0x191db5(_0x3062de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x253fa0[0x1]={..._0x253fa0[0x1],[_0x3062de([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x480861};},{[_0x3062de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3062de([0x68,0x69,0x67,0x68])}),_0x2bb538[_0x3062de([0x6f,0x6e])](_0x3062de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37398e=>{_0x14e9ca(_0x37398e[_0x3062de([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x276677=!0x0,_0x1a9f37(_0x37398e[_0x3062de([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3062de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3062de([0x6c,0x6f,0x77])}),_0x5212ec[_0x3062de([0x74,0x68,0x65,0x6e])](()=>{_0x276677||_0x191db5(_0x3062de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x399d01(){return _0x2bb538[_0x3062de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3062de([0x76,0x69,0x65,0x77])][_0x3062de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3062de([0x61,0x75,0x74,0x6f]);}function _0x5c949a(){_0x2bb538[_0x3062de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3062de([0x76,0x69,0x65,0x77])][_0x3062de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3062de([0x61,0x75,0x74,0x6f]);}}function _0xc5f295(_0x3744b8){const _0x3310be=[new window[(_0x3062de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12a3c0=>setTimeout(_0x12a3c0,0x5356b2f6^_0x4dd755)),_0x5212ec[_0x3062de([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3062de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51c71c=>{let _0x22fdfd=0x0;_0x2bb538[_0x3062de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3062de([0x6f,0x6e])](_0x3062de([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa47829,_0xc1cd9a)=>{_0xc1cd9a[0x0][_0x3062de([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x22fdfd++,_0x22fdfd==(0x535f89d2^_0x4dd755)&&(_0x51c71c(),_0xa47829[_0x3062de([0x6f,0x66,0x66])]());});}))];return window[_0x3062de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3062de([0x72,0x61,0x63,0x65])](_0x3310be)[_0x3062de([0x74,0x68,0x65,0x6e])](()=>_0x3744b8);}async function _0x459a2d(){await _0x5212ec,_0x2bb538[_0x3062de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3062de([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e76d5,_0x2bb538[_0x3062de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3062de([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e76d5,_0x2bb538[_0x3062de([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3062de([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f72a6(_0x32a6da){const _0x3f539d=_0x2125b0();_0x2bb538[_0x3f539d]=_0x3062de([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x32a6da,_0x32a6da!=_0x3062de([0x56,0x61,0x6c,0x69,0x64])&&_0x459a2d();}function _0x2125b0(){const _0x59ce65=window[_0x3062de([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3062de([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3062de([0x6e,0x6f,0x77])]())[_0x3062de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3062de([0x2e]),'');let _0x39da49=_0x3062de([0x68]);for(let _0x6d8c3b=0x0;_0x6d8c3b<_0x59ce65[_0x3062de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6d8c3b+=0x2){let _0x185e21=window[_0x3062de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59ce65[_0x3062de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6d8c3b,_0x6d8c3b+0x2));_0x185e21>=_0x13474b[_0x3062de([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x185e21-=_0x13474b[_0x3062de([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39da49+=_0x13474b[_0x185e21];}return _0x39da49;}function _0x5f3e29(){const _0x8251f7=_0x1e3c75[_0x3062de([0x73,0x70,0x6c,0x69,0x74])](_0x3062de([0x2e]));if(0x3!=_0x8251f7[_0x3062de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d490d(_0x8251f7[0x1]);function _0x4d490d(_0x86de12){const _0x59eda1=_0x308f93(_0x86de12);return _0x59eda1&&_0x43d81f()?_0x59eda1:null;function _0x43d81f(){const _0x13c7bd=_0x59eda1[_0x3062de([0x6a,0x74,0x69])],_0x13ac8b=window[_0x3062de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13c7bd[_0x3062de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13c7bd[_0x3062de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f1ed7={..._0x59eda1,[_0x3062de([0x6a,0x74,0x69])]:_0x13c7bd[_0x3062de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13c7bd[_0x3062de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f1ed7[_0x3062de([0x76,0x63])],_0x4072c6(_0x2f1ed7)==_0x13ac8b;}}}async function _0x55cbeb(){let _0x16a494=!0x0;try{const _0x4cbbac=_0x1e3c75[_0x3062de([0x73,0x70,0x6c,0x69,0x74])](_0x3062de([0x2e])),[_0x25995f,_0x1c29dd,_0x16c376]=_0x4cbbac;return _0x20279d(_0x25995f),await _0x175049(_0x25995f,_0x1c29dd,_0x16c376),_0x16a494;}catch{return!0x1;}function _0x20279d(_0x5aaec9){const _0x5da956=_0x308f93(_0x5aaec9);_0x5da956&&_0x5da956[_0x3062de([0x61,0x6c,0x67])]==_0x3062de([0x45,0x53,0x32,0x35,0x36])||(_0x16a494=!0x1);}async function _0x175049(_0x385bd2,_0x261777,_0x59d350){const _0x5da040=window[_0x3062de([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3062de([0x66,0x72,0x6f,0x6d])](_0x55086e(_0x59d350),_0x10fad8=>_0x10fad8[_0x3062de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d5ef8=new window[(_0x3062de([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3062de([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x385bd2+_0x3062de([0x2e])+_0x261777),_0x36b301=window[_0x3062de([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3062de([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36b301)return;const _0x23db2d=await _0x36b301[_0x3062de([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3062de([0x6a,0x77,0x6b]),_0x207990,{[_0x3062de([0x6e,0x61,0x6d,0x65])]:_0x3062de([0x45,0x43,0x44,0x53,0x41]),[_0x3062de([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3062de([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3062de([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36b301[_0x3062de([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3062de([0x6e,0x61,0x6d,0x65])]:_0x3062de([0x45,0x43,0x44,0x53,0x41]),[_0x3062de([0x68,0x61,0x73,0x68])]:{[_0x3062de([0x6e,0x61,0x6d,0x65])]:_0x3062de([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23db2d,_0x5da040,_0x5d5ef8)||(_0x16a494=!0x1);}}function _0x308f93(_0x22a586){return _0x22a586[_0x3062de([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3062de([0x65,0x79]))?JSON[_0x3062de([0x70,0x61,0x72,0x73,0x65])](_0x55086e(_0x22a586)):null;}function _0x55086e(_0x4d5c6e){return window[_0x3062de([0x61,0x74,0x6f,0x62])](_0x4d5c6e[_0x3062de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3062de([0x2b]))[_0x3062de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3062de([0x2f])));}function _0x4072c6(_0x43acdc){let _0x3c72d4=0x1505;function _0x4f659f(_0x4aa78d){for(let _0x5b3a9b=0x0;_0x5b3a9b<_0x4aa78d[_0x3062de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b3a9b++){const _0x4b7b2e=_0x4aa78d[_0x3062de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b3a9b);_0x3c72d4=(_0x3c72d4<<0x5)+_0x3c72d4+_0x4b7b2e,_0x3c72d4&=_0x3c72d4;}}function _0x3f7250(_0x3109d4){Array[_0x3062de([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3109d4)?_0x3109d4[_0x3062de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f7250):_0x3109d4&&typeof _0x3109d4==_0x3062de([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3062de([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3109d4)[_0x3062de([0x73,0x6f,0x72,0x74])]()[_0x3062de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xfd6730,_0x441a2c])=>{_0x4f659f(_0xfd6730),_0x3f7250(_0x441a2c);}):_0x4f659f(window[_0x3062de([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3109d4));}return _0x3f7250(_0x43acdc),_0x3c72d4>>>0x0;}function _0x16ae82(_0x398474){return _0x398474[_0x3062de([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3062de([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3062de([0x30]));}function _0x324c13(_0x41fa6d){return _0x41fa6d[_0x3062de([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3062de([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3062de([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e76d5(){}function _0x3062de(_0x5e93f2){return _0x5e93f2['map'](_0x86a164=>String['fromCharCode'](_0x86a164))['join']('');}_0x1f72a6(await _0x5121b6());}(this);}['_initSchema'](){const _0xb88b84=this['editor']['model']['schema'];_0xb88b84['isRegistered']('imageBlock')&&_0xb88b84['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xb88b84['isRegistered']('imageInline')&&_0xb88b84['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x475f46=this['editor'];_0x475f46['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x475f46['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x39960c=>_0x39960c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x437b40=_0x475f46['commands']['get']('replaceImageSource');_0x437b40&&this['listenTo'](_0x437b40,'cleanupImage',(_0x352a3c,[_0x52fd91,_0x52fe07])=>{_0x52fd91['removeAttribute']('uploadcareImageId',_0x52fe07);});}['_initConfig'](){const _0x2fd973=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5a3a47=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x13d237(_0x34d309['document'],'uc-config',{..._0x2fd973,'pubkey':_0x5a3a47,'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']=_0x1c7d3c=>{if('closeMax'==_0x1c7d3c)return'#uc-icon-arrow-down';},_0x34d309['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x13d237(_0x34d309['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x34d309['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x284c57=this['editor']['commands']['get']('insertImage');_0x284c57&&this['listenTo'](_0x284c57,'execute',()=>{const _0x30a97e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x30a97e&&_0x30a97e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x30a97e);});});const _0x2dca23=this['editor']['commands']['get']('uploadcareImageReplace');_0x2dca23&&this['listenTo'](_0x2dca23,'execute',()=>{const _0xa07af9=this['editor']['model']['document']['selection']['getSelectedElement']();_0xa07af9&&_0xa07af9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xa07af9);});});}}class tt extends _0x3b558d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x132f4f){super(_0x132f4f),_0x132f4f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5f1043['defineComponents'](_0x5f1043),this['_defineLocale']();}['_defineLocale'](){const _0x4f6e28=this['editor']['config']['get']('uploadcare.locale'),_0x5448dd=this['editor']['locale']['contentLanguage'];_0x4f6e28&&_0x5f1043['defineLocale'](_0x5448dd,_0x4f6e28);}}class ii extends _0x37d1c8{constructor(_0x5b05e9){super(_0x5b05e9);const t=_0x5b05e9['t'],_0x565e3e=this['bindTemplate'],_0x3d9cc6=new _0x7f2542();_0x3d9cc6['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':[_0x3d9cc6,{'text':_0x565e3e['to']('imageUploadProgress',_0x4470bb=>t('Loading\x20image...')+'\x20('+(_0x4470bb||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 _0x37d1c8{constructor(_0x284d40){super(_0x284d40);const t=_0x284d40['t'];this['set']('errorType',null);const _0x59ee0b=new _0x443a5a(_0x284d40);_0x59ee0b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x59ee0b['withText']=!0x0,_0x59ee0b['class']='ck-button-action',_0x59ee0b['on']('execute',()=>{this['fire']('retry');}),_0x59ee0b['bind']('isVisible')['to'](this,'errorType',_0x5bdc80=>'NotFound'!==_0x5bdc80);const _0x395cf6=new _0x196e5e();_0x395cf6['content']=_0x592f0e,_0x395cf6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3c46b0=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':[_0x395cf6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3c46b0['to']('errorType',_0x15edad=>t('NotFound'!==_0x15edad?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x59ee0b]},{'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 _0x37d1c8{constructor(_0x41270d,_0x18b7fa){super(_0x41270d);const _0xc9d5e8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x18b7fa,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xc9d5e8['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4fde58,_0x3dcf5d,_0x26163b){super(_0x4fde58),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4fde58),this['_errorView']=new ti(_0x4fde58),this['_editingView']=new ei(_0x4fde58,_0x26163b),this['_focusableView']=new _0x37d1c8(_0x4fde58),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3dcf5d),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'],_0x35a492=>{this['_addUploadcareImageEditorListeners'](_0x35a492);});}),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'](_0x258799,_0x18f344){const _0x25a5e0='uc-cloud-image-editor',_0x535204=_0x258799['querySelector'](_0x25a5e0);if(_0x535204)return _0x18f344(_0x535204);const _0x4c2cd0=new MutationObserver(_0x3694fe=>{const _0x27c7cd=_0x3694fe['filter'](_0x48d5fc=>_0x48d5fc['target']===_0x258799&&_0x48d5fc['addedNodes']['length']>0x0&&_0x48d5fc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x25a5e0);_0x27c7cd['length']&&(_0x4c2cd0['disconnect'](),_0x18f344(_0x27c7cd[0x0]['addedNodes'][0x0]));});_0x4c2cd0['observe'](_0x258799,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3d5183){_0x3d5183['addEventListener']('apply',_0x38007e=>{this['fire']('apply',{'imageSrc':_0x38007e['detail']['cdnUrl']});}),_0x3d5183['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4d21ac(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x286754,_0x47f316,_0x442718){super(),this['_editor']=_0x286754,this['_dialog']=_0x47f316,this['_imageElement']=_0x442718,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 _0x511b8d=this['_imageElement'],_0x35fb6a=_0x511b8d['getAttribute']('uploadcareImageId'),_0x21d608=_0x511b8d['getAttribute']('src');if(_0x35fb6a)await this['_loadImageInfo'](_0x35fb6a,_0x21d608);else{if(this['_imageCache']['has'](_0x21d608)){const _0x431e58=this['_imageCache']['get'](_0x21d608);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x431e58['url'],this['imageDimension']=_0x431e58['dimension'],this['imageId']=_0x431e58['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1623c0}=this['_editor'],t=_0x1623c0['t'],_0x43216a=new X(_0x1623c0,this['imageStatus'],this['_attributes']);_0x43216a['bind']('status')['to'](this,'imageStatus'),_0x43216a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x43216a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x43216a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x43216a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x21f322,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x43216a,'position':_0xf246b9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x43216a['focus']();},'onHide':()=>{_0x43216a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x514939=>!A(_0x514939,_0x43216a['element'])}});}['_loadImageInfo'](_0x353dc1,_0x5e791a){return j['getInfo'](_0x353dc1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x35e7a1=>{const {width:_0x17a3c3,height:_0x1d504f}=_0x35e7a1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e791a,this['imageDimension']={'width':_0x17a3c3,'height':_0x1d504f},this['imageId']=_0x353dc1;})['catch'](_0x2cbe58=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2cbe58['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4b3d11,_0x19415a){return this['_getImageAsFile'](_0x4b3d11)['then'](_0x2bf807=>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':_0x19415a['signal'],'file':_0x2bf807,'onProgress':_0x4b1a69=>{_0x4b1a69&&_0x4b1a69['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4b1a69['value']));}}))['then'](_0xa19fdf=>{const {width:_0xea7895,height:_0x203012}=_0xa19fdf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa19fdf['cdnUrl'],this['imageDimension']={'width':_0xea7895,'height':_0x203012},this['imageId']=_0xa19fdf['uuid'],this['imageUploadProgress']=null;const _0x2ef212=_0x4b3d11['getAttribute']('src');this['_imageCache']['set'](_0x2ef212,{'id':_0xa19fdf['uuid'],'url':_0xa19fdf['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x29a915=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x29a915['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x106775,_0x2b0923){_0x106775['on']('apply',(_0x1f0b07,_0x29a2ec)=>{this['_replaceImage'](_0x2b0923,_0x29a2ec['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x106775['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x106775['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2fb4f6,_0x3bbb2d,_0x362728){const _0x30b2f3=this['_editor'],{width:_0x5986ef,height:_0x35e07e}=S(_0x3bbb2d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x54396e,imageSources:_0x459cb0}=C(_0x3bbb2d,_0x5986ef);_0x30b2f3['model']['change'](_0x47997f=>{if('$graveyard'===_0x2fb4f6['root']['rootName']){_0x30b2f3['execute']('insertImage',{'imageType':_0x2fb4f6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2fb4f6['getAttributes']()),'uploadcareImageId':_0x362728,'src':_0x54396e,'sources':_0x459cb0,'width':_0x5986ef,'height':_0x35e07e}});const _0x204d0e=_0x2fb4f6['getChildren']();_0x2fb4f6=_0x30b2f3['model']['document']['selection']['getSelectedElement']();for(const _0x503219 of _0x204d0e)_0x47997f['append'](_0x47997f['cloneElement'](_0x503219),_0x2fb4f6);}else _0x47997f['setSelection'](_0x2fb4f6,'on'),_0x30b2f3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2fb4f6['getAttributes']()),'uploadcareImageId':_0x362728,'src':_0x54396e,'sources':_0x459cb0,'width':_0x5986ef,'height':_0x35e07e},_0x2fb4f6);_0x47997f['setSelection'](_0x2fb4f6,'on');});}async['_getImageAsFile'](_0x267687){const _0x514206=_0x34d309['window'],_0x56565f=_0x34d309['document']['location']['href'],_0x211e3d=new _0x514206['URL'](_0x267687['getAttribute']('src'),_0x56565f);if('data:'===_0x211e3d['protocol']){const _0x21f879=_0x211e3d['href']['split'](','),_0x9cbfca=_0x21f879[0x0]['match'](/:(.*?);/)[0x1],_0x34a680=_0x9cbfca['split']('/')[0x1],_0x93b096=_0x514206['atob'](_0x21f879[_0x21f879['length']-0x1]);let _0x5df293=_0x93b096['length'];const _0x39a18f=new _0x514206['Uint8Array'](_0x5df293);for(;_0x5df293--;)_0x39a18f[_0x5df293]=_0x93b096['charCodeAt'](_0x5df293);return new _0x514206['File']([_0x39a18f],'image.'+_0x34a680,{'type':_0x9cbfca});}const _0x258eaa=_0x211e3d['href']['split']('/'),_0x584b8f=_0x258eaa[_0x258eaa['length']-0x1],_0x571056=_0x584b8f['split']('.')[0x1];return _0x514206['fetch'](_0x211e3d['href'])['then'](_0x415dfb=>_0x415dfb['clone']()['blob']())['then'](_0x230f75=>new _0x514206['File']([_0x230f75],_0x584b8f,{'type':'image/'+_0x571056}));}}class O extends _0x4e36cd{['imageEditController'];static get['requires'](){return[_0x1eb9d6];}['_isEditable'];constructor(_0x622617){super(_0x622617),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1d408e){const _0x5c5eae=G(_0x1d408e);return _0x15e1d0=>!(!_0x15e1d0||!_0x15e1d0['is']('element','imageBlock')&&!_0x15e1d0['is']('element','imageInline'))&&(!!_0x15e1d0['hasAttribute']('uploadcareImageId')||!!_0x15e1d0['hasAttribute']('src')&&_0x5c5eae(_0x15e1d0['getAttribute']('src')));}(_0x622617['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5d3332=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5d3332);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x59942d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59942d&&(_0x59942d['is']('element','imageBlock')||_0x59942d['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1eb9d6),_0x59942d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4e36cd{['refresh'](){const _0x2565ef=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2565ef&&(_0x2565ef['is']('element','imageBlock')||_0x2565ef['is']('element','imageInline')));}['execute'](_0x309a69){const _0x9aa028=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3a4459=>{_0x3a4459['setAttributes'](_0x309a69,_0x9aa028),_0x3a4459['removeAttribute']('srcset',_0x9aa028),_0x3a4459['removeAttribute']('sizes',_0x9aa028);});}}class m extends _0x3b558d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3c3d11,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x28d96a}=this;_0x28d96a['commands']['add']('uploadcareImageEdit',new O(_0x28d96a)),_0x28d96a['commands']['add']('uploadcareImageReplace',new R(_0x28d96a));}}class g extends _0x3b558d{['_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 _0x16bee0=this['editor'];_0x16bee0['ui']['componentFactory']['add']('uploadcareImageEdit',_0x37aa8f=>{const _0x4d6089=_0x16bee0['commands']['get']('uploadcareImageEdit'),_0x30b25c=new _0x443a5a(_0x37aa8f),t=_0x37aa8f['t'];return _0x30b25c['set']({'icon':_0x21f322,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x30b25c['bind']('isEnabled')['to'](_0x4d6089),_0x30b25c['bind']('isOn')['to'](_0x4d6089,'isActive'),this['listenTo'](_0x30b25c,'execute',()=>{_0x16bee0['execute']('uploadcareImageEdit'),_0x16bee0['editing']['view']['focus']();}),_0x30b25c;}),this['_initConfig']();}['_initConfig'](){const _0x56cce2=_0x13d237(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x56cce2),this['listenTo'](this['editor'],'destroy',()=>{_0x56cce2['remove']();});}}class et extends _0x3b558d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x3a52b7,Command as _0x28cb1d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2c8fb4,IconGooglePhotos as _0x199d3d,IconGoogleDrive as _0x1445c0,IconFacebook as _0x4cf4be,IconDropbox as _0x3bad18,IconUploadcareLink as _0x1723b3,IconUploadcareImageUpload as _0x264545,IconError as _0x47811e,IconUploadcareImageEdit as _0x86bb4f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x456d0e,MenuBarMenuListItemButtonView as _0x437285,View as _0x3bf02c,FocusCycler as _0x3689a7,Dialog as _0x1dba28,DialogViewPosition as _0x130795,SpinnerView as _0x19c730,IconView as _0x4197a2,Notification as _0x145159}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3363ad,DomEmitterMixin as _0x2b76dd,global as _0x8c5733,getAncestors as _0x436b72,ObservableMixin as _0x1094a9,uid as _0x56fd2d,createElement as _0xfb34db}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1fab26}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x39880e,info as _0x2c44db}from'@uploadcare/upload-client';import*as _0x1b3589 from'@uploadcare/file-uploader';var i=function(_0x3ae1cd){return _0x3ae1cd['Local']='local',_0x3ae1cd['URL']='url',_0x3ae1cd['Dropbox']='dropbox',_0x3ae1cd['GDrive']='gdrive',_0x3ae1cd['Facebook']='facebook',_0x3ae1cd['GPhotos']='gphotos',_0x3ae1cd['OneDrive']='onedrive',_0x3ae1cd;}({});function _(_0x511b5c,_0x1b291a,_0x20932b){const t=_0x511b5c['t'],_0x2de018=_0x511b5c['t'];switch(_0x1b291a){case i['Local']:return{'text':_0x2de018('Insert'===_0x20932b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2de018('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x20932b?_0x2de018('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2de018('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x20932b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x20932b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x20932b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x20932b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x20932b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1b291a;}}class e extends _0x3a52b7{['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 _0x4b2d19=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe0865d;for(const _0x1fbcb8 in _0x4b2d19){const _0x1bd6dd=_0x1fbcb8,_0x240442=_0x4b2d19[_0x1bd6dd];if('uploadcareLicenseKeyValid'==_0x240442||'uploadcareLicenseKeyInvalid'==_0x240442||'uploadcareLicenseKeyExpired'==_0x240442||'uploadcareLicenseKeyDomainLimit'==_0x240442||'uploadcareLicenseKeyNotAllowed'==_0x240442||'uploadcareLicenseKeyEvaluationLimit'==_0x240442||'uploadcareLicenseKeyUsageLimit'==_0x240442){delete _0x4b2d19[_0x1bd6dd],_0xe0865d=_0x240442,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xe0865d&&_0x4b2d19['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xe0865d&&_0x4b2d19['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xe0865d&&_0x4b2d19['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xe0865d&&_0x4b2d19['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xe0865d&&_0x4b2d19['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0xe0865d&&_0x4b2d19['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xff23eb}=this,_0x1f179d=_0xff23eb['commands']['get']('uploadcare');if(!_0x1f179d)return;const _0x1eb851=this['_normalizeConfigSourceList'](_0xff23eb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x17a32b,_0x2bb325)=>{const _0x5a5831=this['_getIntegrationKey'](_0x2bb325['type']);return _0x17a32b[_0x5a5831]||(_0x17a32b[_0x5a5831]=[]),_0x17a32b[_0x5a5831]['push'](_0x2bb325),_0x17a32b;},{});_0xff23eb['plugins']['has']('ImageInsertUI')&&_0xff23eb['commands']['get']('uploadcare')&&Object['entries'](_0x1eb851)['forEach'](([_0x41c69e,_0x4e9240])=>{_0xff23eb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x41c69e,'observable':()=>_0x1f179d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4e9240),'formViewCreator':()=>this['_createDropdownButtons'](_0x4e9240),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4e9240),'override':'assetManager'!==_0x41c69e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2f9334){const {locale:_0x4317e0}=this['editor'];return _0x2f9334['map'](_0x5b6d86=>{const _0x2fa759=_(_0x4317e0,_0x5b6d86,'Insert');switch(_0x5b6d86){case i['Local']:return{'icon':_0x264545,'type':i['Local'],..._0x2fa759};case i['URL']:return{'icon':_0x1723b3,'type':i['URL'],..._0x2fa759};case i['Dropbox']:return{'icon':_0x3bad18,'type':i['Dropbox'],..._0x2fa759};case i['Facebook']:return{'icon':_0x4cf4be,'type':i['Facebook'],..._0x2fa759};case i['GDrive']:return{'icon':_0x1445c0,'type':i['GDrive'],..._0x2fa759};case i['GPhotos']:return{'icon':_0x199d3d,'type':i['GPhotos'],..._0x2fa759};case i['OneDrive']:return{'icon':_0x2c8fb4,'type':i['OneDrive'],..._0x2fa759};}});}['_getIntegrationKey'](_0x8d9f72){switch(_0x8d9f72){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1ad71b,_0x7bb7f1){const _0x256711=this['editor'],_0x1cf4b8=new _0x1ad71b(_0x256711['locale']),_0x2d08c4=_0x256711['commands']['get']('uploadcare');return _0x1cf4b8['bind']('isEnabled')['to'](_0x2d08c4),_0x1cf4b8['on']('execute',()=>{_0x2d08c4['execute'](_0x7bb7f1);}),_0x1cf4b8;}['_createToolbarButton'](_0x121e7e){const {locale:_0x47f374}=this['editor'],_0x218761=this['editor']['plugins']['get']('ImageInsertUI'),_0x4eae29=_0x121e7e[0x0],_0x2a1ff3=this['_createButton'](_0x456d0e,_0x4eae29['type']);return _0x2a1ff3['icon']=_0x4eae29['icon'],_0x2a1ff3['bind']('label')['to'](_0x218761,'isImageSelected',_0x482f9c=>_(_0x47f374,_0x4eae29['type'],_0x482f9c?'Replace':'Insert')['text']),_0x2a1ff3['tooltip']=!0x0,_0x2a1ff3;}['_createDropdownButtons'](_0x1fa29e){const {locale:_0x2e61e6}=this['editor'],_0x4e8e7d=this['editor']['plugins']['get']('ImageInsertUI');return _0x1fa29e['map'](_0x106296=>{const _0x28d623=this['_createButton'](_0x456d0e,_0x106296['type']);return _0x28d623['withText']=!0x0,_0x28d623['icon']=_0x106296['icon'],_0x28d623['bind']('label')['to'](_0x4e8e7d,'isImageSelected',_0x3df844=>_(_0x2e61e6,_0x106296['type'],_0x3df844?'Replace':'Insert')['text']),_0x28d623;});}['_createMenuBarButtons'](_0x37d172){return _0x37d172['map'](_0x12f8c5=>{const _0x121261=this['_createButton'](_0x437285,_0x12f8c5['type']);return _0x121261['icon']=_0x12f8c5['icon'],_0x121261['label']=_0x12f8c5['shortText'],_0x121261;});}}class V extends _0x3bf02c{['focusTracker'];['focusCycler'];constructor(_0x46abaf){super(_0x46abaf),this['focusTracker']=new _0x3363ad(),this['focusCycler']=new _0x3689a7({'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 E extends V{constructor(_0x3a87dc,_0xf836cb){super(_0x3a87dc),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-'+_0xf836cb}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x35534f,_0x2cb732){const _0x248516=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x286ed1=>_0x286ed1<=_0x2cb732)['map'](_0x21cb01=>_0x35534f['replace'](/\/$/,'')+'/-/resize/'+_0x21cb01+'x/\x20'+_0x21cb01+'w');return{'imageFallbackUrl':_0x35534f,'imageSources':[{'srcset':_0x248516['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2cb732+'px)\x20100vw,\x20'+_0x2cb732+'px','type':'image/webp'}]};}function M(_0x50e17e,_0x32d736,_0xa75103){const _0x1e375a=_0x50e17e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1e375a?parseInt(_0x1e375a[0x1],0xa):_0x32d736,'height':_0x1e375a?parseInt(_0x1e375a[0x2],0xa):_0xa75103};}function p(_0x1e6c02,_0x3a6111){const _0x73ec35=new(_0x2b76dd())(),_0x3a1853=_0x1e6c02['plugins']['get']('ImageUtils'),_0x1c2543=_0x1e6c02['editing']['mapper']['toViewElement'](_0x3a6111),_0x54765d=_0x3a1853['findViewImgElement'](_0x1c2543),_0x58f0a8=_0x1e6c02['editing']['view']['domConverter']['viewToDom'](_0x54765d),_0x57dff1=_0x3a6111['getAttribute']('width'),_0x36e097=_0x3a6111['getAttribute']('height'),_0x493981='image-processing';_0x1e6c02['editing']['view']['change'](_0x33adac=>{_0x33adac['addClass'](_0x493981,_0x1c2543),_0x33adac['setStyle']('aspect-ratio',_0x57dff1+'/'+_0x36e097,_0x54765d);}),_0x73ec35['listenTo'](_0x58f0a8,'load',()=>{_0x73ec35['stopListening'](_0x58f0a8,'load'),_0x1e6c02['editing']['view']['change'](_0x1c2932=>{_0x1c2932['removeClass'](_0x493981,_0x1c2543),_0x1c2932['removeStyle']('aspect-ratio',_0x54765d);});});}function z(_0x4a95ea){if(Array['isArray'](_0x4a95ea)){const _0x4ea553=_0x4a95ea['map'](z);return _0x1ebd2b=>_0x4ea553['some'](_0x2418fd=>_0x2418fd(_0x1ebd2b));}if('origin'==_0x4a95ea){const _0x548f11=_0x8c5733['window']['location']['origin'];return _0x527e63=>new URL(_0x527e63,_0x8c5733['document']['baseURI'])['origin']==_0x548f11;}return'function'==typeof _0x4a95ea?_0x4a95ea:_0x4a95ea instanceof RegExp?_0x1800ea=>!(!_0x1800ea['match'](_0x4a95ea)&&!_0x1800ea['replace'](/^https?:\/\//,'')['match'](_0x4a95ea)):()=>!0x1;}function O(_0x3b7f81,_0x39f3a7){return _0x436b72(_0x3b7f81['target'])['includes'](_0x39f3a7);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1094a9(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2de401,_0x5f55c9,_0x3856d7){super(),this['_editor']=_0x2de401,this['_editing']=_0x5f55c9,this['_dialog']=_0x2de401['plugins']['get'](_0x1dba28),this['_api']=_0x5f55c9['ctxElement']['getAPI'](),this['_type']=_0x3856d7,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:_0x1cd8a5,model:_0x53bb30}=this['_editor'],_0x2b7d2d=_0x53bb30['document']['selection']['getSelectedElement'](),_0x4f1840=_0x2b7d2d&&(_0x2b7d2d['is']('element','imageBlock')||_0x2b7d2d['is']('element','imageInline'));this['_formView']=new E(_0x1cd8a5,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x264545,'title':_(_0x1cd8a5,this['_type'],_0x4f1840?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x130795['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2237e5=>!O(_0x2237e5,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x15955d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2a6cf2=>{const _0x1e5bfb=_0x15955d['length'];for(const _0x197bb7 of _0x15955d){const _0x50269a=_0x197bb7===_0x15955d[_0x1e5bfb-0x1],{cdnUrl:_0x4aa507,fileInfo:_0x3ca5d7}=_0x197bb7;if(!_0x4aa507||!_0x3ca5d7)continue;const {width:_0x502653,height:_0x42cf02}=_0x3ca5d7['imageInfo'],_0x27666e=M(_0x4aa507,_0x502653,_0x42cf02),_0x4e2ad7=C(_0x4aa507,_0x27666e['width']),_0xc132dc={'id':_0x3ca5d7['uuid'],'type':'image','attributes':{'imageDimension':_0x27666e,..._0x4e2ad7}};this['_insertAsset'](_0xc132dc,_0x50269a,_0x2a6cf2);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2a158b=>{'idle'===_0x2a158b['detail']['status']&&!_0x2a158b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x31025d,_0x3e3470,_0x532745){const _0x61a0e3=this['_editor']['model']['document']['selection'],_0x2bb55d=_0x61a0e3['getSelectedElement'](),_0x1b6c81=!(!_0x2bb55d||!_0x2bb55d['is']('element','imageInline'));_0x532745['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x31025d,_0x1b6c81),_0x3e3470||_0x532745['setSelection'](_0x61a0e3['getLastPosition']());}['_insertImage'](_0x515481,_0x24da95){const _0xb40d31=this['_editor'],{imageDimension:_0x155bb7,imageFallbackUrl:_0x33f747,imageSources:_0x57164e}=_0x515481['attributes'];_0xb40d31['execute']('insertImage',{'imageType':_0x24da95?'imageInline':null,'source':{'uploadcareImageId':_0x515481['id'],'src':_0x33f747,'sources':_0x57164e,..._0x155bb7}});}}class w extends _0x28cb1d{['_editing'];['_controller']=null;static get['requires'](){return[_0x1dba28,o];}constructor(_0x52fd79){super(_0x52fd79),this['_editing']=_0x52fd79['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x14eb75){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x14eb75);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x309dd3,..._0x410b2f}){return _0x39880e(_0x309dd3,_0x410b2f);}static['getInfo'](_0x15f233,_0x283e1d){return _0x2c44db(_0x15f233,_0x283e1d);}}class f extends _0x3a52b7{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1fab26,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3ff9f4=this['editor'];if(!!!_0x3ff9f4['config']['get']('uploadcare'))return;_0x3ff9f4['plugins']['get'](_0x1fab26)['createUploadAdapter']=_0x151fcc=>new k(_0x151fcc,_0x3ff9f4),_0x3ff9f4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x579a36,{imageElement:_0x3fd208,data:_0xc41fb6})=>{_0x3ff9f4['model']['change'](_0x1aa591=>{_0x1aa591['setAttribute']('uploadcareImageId',_0xc41fb6['uploadcareImageId'],_0x3fd208);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xbb54b7,_0x4fb164){this['loader']=_0xbb54b7,this['editor']=_0x4fb164,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x43b1d3=await this['loader']['file'];return j['upload']({'file':_0x43b1d3,'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':_0x1cd0c8=>{_0x1cd0c8&&_0x1cd0c8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1cd0c8['value']);}})['then'](async _0x34630e=>{const {imageFallbackUrl:_0x3347cf,imageSources:_0x477eaf}=C(_0x34630e['cdnUrl'],_0x34630e['imageInfo']['width']);return{'uploadcareImageId':_0x34630e['uuid'],'default':_0x3347cf,'sources':_0x477eaf};})['catch'](()=>{const _0x376787=t('Cannot\x20upload\x20file:')+('\x20'+_0x43b1d3['name']+'.');return Promise['reject'](_0x376787);});}['abort'](){this['controller']['abort']();}}class o extends _0x3a52b7{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1dba28];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x46935a){super(_0x46935a),this['ucContextId']=_0x56fd2d();}['init'](){const _0x6711b6=this['editor'];_0x6711b6['commands']['add']('uploadcare',new w(_0x6711b6));}['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 _0x5a0c07=_0x8c5733['document']['querySelector']('input[uploadcare-file-input]');_0x5a0c07&&_0x5a0c07['remove']();}),async function(_0x42cbb0){const _0x1f4631=_0x3cc6a5([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]),_0x4fea91=0x535f8c3a,_0x2f9eb5=0x5358f32a^_0x4fea91,_0x51e35b=window[_0x3cc6a5([0x44,0x61,0x74,0x65])][_0x3cc6a5([0x6e,0x6f,0x77])](),_0x175f3e=_0x42cbb0[_0x3cc6a5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d2af4=new window[(_0x3cc6a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f8b30=>{_0x175f3e[_0x3cc6a5([0x6f,0x6e,0x63,0x65])](_0x3cc6a5([0x72,0x65,0x61,0x64,0x79]),_0x3f8b30);}),_0x22361d={[_0x3cc6a5([0x6b,0x74,0x79])]:_0x3cc6a5([0x45,0x43]),[_0x3cc6a5([0x75,0x73,0x65])]:_0x3cc6a5([0x73,0x69,0x67]),[_0x3cc6a5([0x63,0x72,0x76])]:_0x3cc6a5([0x50,0x2d,0x32,0x35,0x36]),[_0x3cc6a5([0x78])]:_0x3cc6a5([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]),[_0x3cc6a5([0x79])]:_0x3cc6a5([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]),[_0x3cc6a5([0x61,0x6c,0x67])]:_0x3cc6a5([0x45,0x53,0x32,0x35,0x36])},_0x4d7aeb=_0x175f3e[_0x3cc6a5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3cc6a5([0x67,0x65,0x74])](_0x3cc6a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x51df5b(){let _0x45ef20,_0x3775c2=null,_0x583227=null;try{if(_0x4d7aeb==_0x3cc6a5([0x47,0x50,0x4c]))return _0x3cc6a5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45ef20=_0x17209b(),!_0x45ef20)return _0x3cc6a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45ef20[_0x3cc6a5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x583227=_0x3afdca(_0x45ef20[_0x3cc6a5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45ef20[_0x3cc6a5([0x6a,0x74,0x69])])),await _0x18b71b()?_0x119d00()?_0x268d4e()?_0x3cc6a5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf26828()?(_0x45ef20[_0x3cc6a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cc6a5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3775c2=_0x5bbe34(_0x3cc6a5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5acf35()):_0x3cc6a5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3cc6a5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3cc6a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3cc6a5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x268d4e(){const _0x1a525c=[_0x3cc6a5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3cc6a5([0x74,0x72,0x69,0x61,0x6c])][_0x3cc6a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45ef20[_0x3cc6a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51e35b/0x3e8:0xe10*_0x2f9eb5;return _0x45ef20[_0x3cc6a5([0x65,0x78,0x70])]<_0x1a525c;}function _0x119d00(){const _0x5b1a4a=_0x45ef20[_0x3cc6a5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b1a4a&&(!!_0x5b1a4a[_0x3cc6a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc6a5([0x2a]))||!!_0x5b1a4a[_0x3cc6a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc6a5([0x55,0x50,0x4c,0x43])));}function _0xf26828(){const _0x38302f=_0x45ef20[_0x3cc6a5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x38302f||0x0==_0x38302f[_0x3cc6a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b6f59}=new URL(window[_0x3cc6a5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x38302f[_0x3cc6a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b6f59))return!0x0;const _0x55fce1=_0x1b6f59[_0x3cc6a5([0x73,0x70,0x6c,0x69,0x74])](_0x3cc6a5([0x2e]));return _0x38302f[_0x3cc6a5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13d8fe=>_0x13d8fe[_0x3cc6a5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc6a5([0x2a])))[_0x3cc6a5([0x6d,0x61,0x70])](_0x16e98a=>_0x16e98a[_0x3cc6a5([0x73,0x70,0x6c,0x69,0x74])](_0x3cc6a5([0x2e])))[_0x3cc6a5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25e641=>_0x25e641[_0x3cc6a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x55fce1[_0x3cc6a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3cc6a5([0x6d,0x61,0x70])](_0x284862=>Array(_0x55fce1[_0x3cc6a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x284862[_0x3cc6a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3cc6a5([0x66,0x69,0x6c,0x6c])](_0x284862[0x0]===_0x3cc6a5([0x2a])?_0x3cc6a5([0x2a]):'')[_0x3cc6a5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x284862))[_0x3cc6a5([0x73,0x6f,0x6d,0x65])](_0xe7bd1c=>_0x55fce1[_0x3cc6a5([0x65,0x76,0x65,0x72,0x79])]((_0x417989,_0x5efa79)=>_0xe7bd1c[_0x5efa79]===_0x417989||_0xe7bd1c[_0x5efa79]===_0x3cc6a5([0x2a])));}function _0x5acf35(){return _0x3775c2&&_0x583227?new window[(_0x3cc6a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a22dc,_0xbbc08a)=>{_0x3775c2[_0x3cc6a5([0x74,0x68,0x65,0x6e])](_0x4a22dc,_0xbbc08a),_0x583227[_0x3cc6a5([0x74,0x68,0x65,0x6e])](_0x3e1d27=>{_0x3e1d27!=_0x3cc6a5([0x56,0x61,0x6c,0x69,0x64])&&_0x4a22dc(_0x3e1d27);},_0xbbc08a);}):_0x3775c2||_0x583227||_0x3cc6a5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3afdca(_0x2b28c5,_0x42a469){return new window[(_0x3cc6a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ad942=>{if(_0x49a140())return _0x1ad942(_0x3cc6a5([0x56,0x61,0x6c,0x69,0x64]));_0x3c4e0b(),_0x175f3e[_0x3cc6a5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3cc6a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd01bc4=!0x1;const _0x2d33aa=_0x56fd2d();function _0x4962dd(_0x5925ef){return!!_0x5925ef&&(typeof _0x5925ef===_0x3cc6a5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5925ef===_0x3cc6a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5925ef[_0x3cc6a5([0x74,0x68,0x65,0x6e])]===_0x3cc6a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5925ef[_0x3cc6a5([0x63,0x61,0x74,0x63,0x68])]===_0x3cc6a5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40616a(_0x12ec4f){_0x22fb56(_0x12ec4f)[_0x3cc6a5([0x74,0x68,0x65,0x6e])](_0x506177=>{if(!_0x506177||_0x506177[_0x3cc6a5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3cc6a5([0x6f,0x6b]))return _0x3cc6a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4029a4(_0x315ddf(_0x2d33aa+_0x42a469))!=_0x506177[_0x3cc6a5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3cc6a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3cc6a5([0x56,0x61,0x6c,0x69,0x64]);})[_0x3cc6a5([0x74,0x68,0x65,0x6e])](_0x40d843=>(_0x3f6a04(),_0x40d843),()=>{const _0x108574=_0x5cef33();return null==_0x108574?(_0x3f6a04(),_0x3cc6a5([0x56,0x61,0x6c,0x69,0x64])):_0x3cc6a5(_0x51e35b-_0x108574>(0x7753083a^_0x4fea91)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3cc6a5([0x74,0x68,0x65,0x6e])](_0x1ad942)[_0x3cc6a5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ad942(_0x3cc6a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4afc76=0x536962ba^_0x4fea91;function _0x3f6a04(){const _0x119906=_0x3cc6a5([0x6c,0x6c,0x63,0x74,0x2d])+_0x4029a4(_0x315ddf(_0x2b28c5)),_0x51a084=_0x4ce76e(_0x4029a4(window[_0x3cc6a5([0x4d,0x61,0x74,0x68])][_0x3cc6a5([0x63,0x65,0x69,0x6c])](_0x51e35b/_0x4afc76)));window[_0x3cc6a5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cc6a5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x119906,_0x51a084);}function _0x5cef33(){const _0x311bdc=_0x3cc6a5([0x6c,0x6c,0x63,0x74,0x2d])+_0x4029a4(_0x315ddf(_0x2b28c5)),_0x78c029=window[_0x3cc6a5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cc6a5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x311bdc);return _0x78c029?window[_0x3cc6a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ce76e(_0x78c029),0x10)*_0x4afc76:null;}function _0x22fb56(_0x2a6882){return new window[(_0x3cc6a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1141d1,_0x559485)=>{_0x2a6882[_0x3cc6a5([0x74,0x68,0x65,0x6e])](_0x1141d1,_0x559485),window[_0x3cc6a5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x559485,0x535e58fa^_0x4fea91);});}}_0x175f3e[_0x3cc6a5([0x6f,0x6e])](_0x3cc6a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3816f2,_0x1178ca)=>{if(_0x1178ca[0x0]!=_0x2b28c5)return _0x1ad942(_0x3cc6a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1178ca[0x1]={..._0x1178ca[0x1],[_0x3cc6a5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d33aa};},{[_0x3cc6a5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cc6a5([0x68,0x69,0x67,0x68])}),_0x175f3e[_0x3cc6a5([0x6f,0x6e])](_0x3cc6a5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4345a2=>{_0x4962dd(_0x4345a2[_0x3cc6a5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd01bc4=!0x0,_0x40616a(_0x4345a2[_0x3cc6a5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3cc6a5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cc6a5([0x6c,0x6f,0x77])}),_0x4d2af4[_0x3cc6a5([0x74,0x68,0x65,0x6e])](()=>{_0xd01bc4||_0x1ad942(_0x3cc6a5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49a140(){return _0x175f3e[_0x3cc6a5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cc6a5([0x76,0x69,0x65,0x77])][_0x3cc6a5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3cc6a5([0x61,0x75,0x74,0x6f]);}function _0x3c4e0b(){_0x175f3e[_0x3cc6a5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cc6a5([0x76,0x69,0x65,0x77])][_0x3cc6a5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3cc6a5([0x61,0x75,0x74,0x6f]);}}function _0x5bbe34(_0x22744c){const _0x520abe=[new window[(_0x3cc6a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ca251=>setTimeout(_0x1ca251,0x5356b2f6^_0x4fea91)),_0x4d2af4[_0x3cc6a5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3cc6a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eb4c2=>{let _0x1b69c4=0x0;_0x175f3e[_0x3cc6a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cc6a5([0x6f,0x6e])](_0x3cc6a5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5c3c28,_0x3089c3)=>{_0x3089c3[0x0][_0x3cc6a5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b69c4++,_0x1b69c4==(0x535f89d2^_0x4fea91)&&(_0x5eb4c2(),_0x5c3c28[_0x3cc6a5([0x6f,0x66,0x66])]());});}))];return window[_0x3cc6a5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3cc6a5([0x72,0x61,0x63,0x65])](_0x520abe)[_0x3cc6a5([0x74,0x68,0x65,0x6e])](()=>_0x22744c);}async function _0x269e9c(){await _0x4d2af4,_0x175f3e[_0x3cc6a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cc6a5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c964a,_0x175f3e[_0x3cc6a5([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cc6a5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c964a,_0x175f3e[_0x3cc6a5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3cc6a5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x22bff2(_0x19bfb2){const _0x215042=_0x196545();_0x175f3e[_0x215042]=_0x3cc6a5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x19bfb2,_0x19bfb2!=_0x3cc6a5([0x56,0x61,0x6c,0x69,0x64])&&_0x269e9c();}function _0x196545(){const _0x547706=window[_0x3cc6a5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3cc6a5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3cc6a5([0x6e,0x6f,0x77])]())[_0x3cc6a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3cc6a5([0x2e]),'');let _0x254105=_0x3cc6a5([0x68]);for(let _0x325188=0x0;_0x325188<_0x547706[_0x3cc6a5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x325188+=0x2){let _0x481c58=window[_0x3cc6a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x547706[_0x3cc6a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x325188,_0x325188+0x2));_0x481c58>=_0x1f4631[_0x3cc6a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x481c58-=_0x1f4631[_0x3cc6a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x254105+=_0x1f4631[_0x481c58];}return _0x254105;}function _0x17209b(){const _0x401a8a=_0x4d7aeb[_0x3cc6a5([0x73,0x70,0x6c,0x69,0x74])](_0x3cc6a5([0x2e]));if(0x3!=_0x401a8a[_0x3cc6a5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x250de9(_0x401a8a[0x1]);function _0x250de9(_0x16c518){const _0xea54f1=_0x1255ff(_0x16c518);return _0xea54f1&&_0x1620eb()?_0xea54f1:null;function _0x1620eb(){const _0x262e11=_0xea54f1[_0x3cc6a5([0x6a,0x74,0x69])],_0x2f7614=window[_0x3cc6a5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x262e11[_0x3cc6a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x262e11[_0x3cc6a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x411150={..._0xea54f1,[_0x3cc6a5([0x6a,0x74,0x69])]:_0x262e11[_0x3cc6a5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x262e11[_0x3cc6a5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x411150[_0x3cc6a5([0x76,0x63])],_0x315ddf(_0x411150)==_0x2f7614;}}}async function _0x18b71b(){let _0xb69bc1=!0x0;try{const _0xefa830=_0x4d7aeb[_0x3cc6a5([0x73,0x70,0x6c,0x69,0x74])](_0x3cc6a5([0x2e])),[_0x1532c9,_0x426315,_0x4b1de6]=_0xefa830;return _0x1b633b(_0x1532c9),await _0x567814(_0x1532c9,_0x426315,_0x4b1de6),_0xb69bc1;}catch{return!0x1;}function _0x1b633b(_0x1e3c18){const _0xb42036=_0x1255ff(_0x1e3c18);_0xb42036&&_0xb42036[_0x3cc6a5([0x61,0x6c,0x67])]==_0x3cc6a5([0x45,0x53,0x32,0x35,0x36])||(_0xb69bc1=!0x1);}async function _0x567814(_0x1eca3c,_0x4bea11,_0x3a7f91){const _0x1c12aa=window[_0x3cc6a5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3cc6a5([0x66,0x72,0x6f,0x6d])](_0xbd328f(_0x3a7f91),_0x72af05=>_0x72af05[_0x3cc6a5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x341d63=new window[(_0x3cc6a5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3cc6a5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1eca3c+_0x3cc6a5([0x2e])+_0x4bea11),_0x2fdfe3=window[_0x3cc6a5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3cc6a5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fdfe3)return;const _0xf91dd3=await _0x2fdfe3[_0x3cc6a5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3cc6a5([0x6a,0x77,0x6b]),_0x22361d,{[_0x3cc6a5([0x6e,0x61,0x6d,0x65])]:_0x3cc6a5([0x45,0x43,0x44,0x53,0x41]),[_0x3cc6a5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3cc6a5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3cc6a5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fdfe3[_0x3cc6a5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3cc6a5([0x6e,0x61,0x6d,0x65])]:_0x3cc6a5([0x45,0x43,0x44,0x53,0x41]),[_0x3cc6a5([0x68,0x61,0x73,0x68])]:{[_0x3cc6a5([0x6e,0x61,0x6d,0x65])]:_0x3cc6a5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf91dd3,_0x1c12aa,_0x341d63)||(_0xb69bc1=!0x1);}}function _0x1255ff(_0x12c0f3){return _0x12c0f3[_0x3cc6a5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3cc6a5([0x65,0x79]))?JSON[_0x3cc6a5([0x70,0x61,0x72,0x73,0x65])](_0xbd328f(_0x12c0f3)):null;}function _0xbd328f(_0x1c9f6a){return window[_0x3cc6a5([0x61,0x74,0x6f,0x62])](_0x1c9f6a[_0x3cc6a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3cc6a5([0x2b]))[_0x3cc6a5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3cc6a5([0x2f])));}function _0x315ddf(_0x2344ec){let _0x376ce6=0x1505;function _0xb55d5a(_0x1e4448){for(let _0x1a395e=0x0;_0x1a395e<_0x1e4448[_0x3cc6a5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a395e++){const _0x58aad6=_0x1e4448[_0x3cc6a5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a395e);_0x376ce6=(_0x376ce6<<0x5)+_0x376ce6+_0x58aad6,_0x376ce6&=_0x376ce6;}}function _0x47ab08(_0x586723){Array[_0x3cc6a5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x586723)?_0x586723[_0x3cc6a5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47ab08):_0x586723&&typeof _0x586723==_0x3cc6a5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3cc6a5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x586723)[_0x3cc6a5([0x73,0x6f,0x72,0x74])]()[_0x3cc6a5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55a9d9,_0xa3a79])=>{_0xb55d5a(_0x55a9d9),_0x47ab08(_0xa3a79);}):_0xb55d5a(window[_0x3cc6a5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x586723));}return _0x47ab08(_0x2344ec),_0x376ce6>>>0x0;}function _0x4029a4(_0x20cc9f){return _0x20cc9f[_0x3cc6a5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3cc6a5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3cc6a5([0x30]));}function _0x4ce76e(_0x2d442e){return _0x2d442e[_0x3cc6a5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3cc6a5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3cc6a5([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c964a(){}function _0x3cc6a5(_0x3b1f27){return _0x3b1f27['map'](_0x43712e=>String['fromCharCode'](_0x43712e))['join']('');}_0x22bff2(await _0x51df5b());}(this);}['_initSchema'](){const _0x3c475c=this['editor']['model']['schema'];_0x3c475c['isRegistered']('imageBlock')&&_0x3c475c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3c475c['isRegistered']('imageInline')&&_0x3c475c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xe3a3ba=this['editor'];_0xe3a3ba['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xe3a3ba['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3216fe=>_0x3216fe['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3505cb=_0xe3a3ba['commands']['get']('replaceImageSource');_0x3505cb&&this['listenTo'](_0x3505cb,'cleanupImage',(_0x3db319,[_0x2a69d6,_0x2453d1])=>{_0x2a69d6['removeAttribute']('uploadcareImageId',_0x2453d1);});}['_initConfig'](){const _0x15a4c9=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2dad26=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xfb34db(_0x8c5733['document'],'uc-config',{..._0x15a4c9,'pubkey':_0x2dad26,'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']=_0x3ab261=>{if('closeMax'==_0x3ab261)return'#uc-icon-arrow-down';},_0x8c5733['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xfb34db(_0x8c5733['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x8c5733['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1d9d4a=this['editor']['commands']['get']('insertImage');_0x1d9d4a&&this['listenTo'](_0x1d9d4a,'execute',()=>{const _0x449876=this['editor']['model']['document']['selection']['getSelectedElement']();_0x449876&&_0x449876['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x449876);});});const _0x513e6c=this['editor']['commands']['get']('uploadcareImageReplace');_0x513e6c&&this['listenTo'](_0x513e6c,'execute',()=>{const _0x1b173f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1b173f&&_0x1b173f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1b173f);});});}}class tt extends _0x3a52b7{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3dca7a){super(_0x3dca7a),_0x3dca7a['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1b3589['defineComponents'](_0x1b3589),this['_defineLocale']();}['_defineLocale'](){const _0x1a37a8=this['editor']['config']['get']('uploadcare.locale'),_0x150671=this['editor']['locale']['contentLanguage'];_0x1a37a8&&_0x1b3589['defineLocale'](_0x150671,_0x1a37a8);}}class ii extends _0x3bf02c{constructor(_0x163a5a){super(_0x163a5a);const t=_0x163a5a['t'],_0x3f8d6c=this['bindTemplate'],_0xb80184=new _0x19c730();_0xb80184['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':[_0xb80184,{'text':_0x3f8d6c['to']('imageUploadProgress',_0x9b8419=>t('Loading\x20image...')+'\x20('+(_0x9b8419||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 _0x3bf02c{constructor(_0xdc5f0f){super(_0xdc5f0f);const t=_0xdc5f0f['t'];this['set']('errorType',null);const _0x437d04=new _0x456d0e(_0xdc5f0f);_0x437d04['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x437d04['withText']=!0x0,_0x437d04['class']='ck-button-action',_0x437d04['on']('execute',()=>{this['fire']('retry');}),_0x437d04['bind']('isVisible')['to'](this,'errorType',_0x57996e=>'NotFound'!==_0x57996e);const _0x1143fe=new _0x4197a2();_0x1143fe['content']=_0x47811e,_0x1143fe['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x181d8d=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':[_0x1143fe,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x181d8d['to']('errorType',_0x17faa7=>t('NotFound'!==_0x17faa7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x437d04]},{'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 _0x3bf02c{constructor(_0x1ae5e5,_0x3363c9){super(_0x1ae5e5);const _0x503756=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3363c9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x503756['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4a18a8,_0x22ae7d,_0x59f6e6){super(_0x4a18a8),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4a18a8),this['_errorView']=new ti(_0x4a18a8),this['_editingView']=new ei(_0x4a18a8,_0x59f6e6),this['_focusableView']=new _0x3bf02c(_0x4a18a8),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x22ae7d),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'],_0x2f6acc=>{this['_addUploadcareImageEditorListeners'](_0x2f6acc);});}),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'](_0x51a6f6,_0x2ec789){const _0x4adae1='uc-cloud-image-editor',_0x5c81e7=_0x51a6f6['querySelector'](_0x4adae1);if(_0x5c81e7)return _0x2ec789(_0x5c81e7);const _0x438257=new MutationObserver(_0x454bab=>{const _0x27b6ab=_0x454bab['filter'](_0x8c2945=>_0x8c2945['target']===_0x51a6f6&&_0x8c2945['addedNodes']['length']>0x0&&_0x8c2945['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4adae1);_0x27b6ab['length']&&(_0x438257['disconnect'](),_0x2ec789(_0x27b6ab[0x0]['addedNodes'][0x0]));});_0x438257['observe'](_0x51a6f6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2c5302){_0x2c5302['addEventListener']('apply',_0x1f0320=>{this['fire']('apply',{'imageSrc':_0x1f0320['detail']['cdnUrl']});}),_0x2c5302['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class G extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1094a9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x18c025,_0x476107,_0x343391){super(),this['_editor']=_0x18c025,this['_dialog']=_0x476107,this['_imageElement']=_0x343391,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 _0x10ee0b=this['_imageElement'],_0x516612=_0x10ee0b['getAttribute']('uploadcareImageId'),_0x4c83c9=_0x10ee0b['getAttribute']('src');if(_0x516612)await this['_loadImageInfo'](_0x516612,_0x4c83c9);else{if(this['_imageCache']['has'](_0x4c83c9)){const _0x4d0fc8=this['_imageCache']['get'](_0x4c83c9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d0fc8['url'],this['imageDimension']=_0x4d0fc8['dimension'],this['imageId']=_0x4d0fc8['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5940a2}=this['_editor'],t=_0x5940a2['t'],_0x23f27f=new X(_0x5940a2,this['imageStatus'],this['_attributes']);_0x23f27f['bind']('status')['to'](this,'imageStatus'),_0x23f27f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x23f27f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x23f27f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x23f27f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x86bb4f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x23f27f,'position':_0x130795['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x23f27f['focus']();},'onHide':()=>{_0x23f27f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5344cc=>!O(_0x5344cc,_0x23f27f['element'])}});}['_loadImageInfo'](_0x495405,_0x18c096){return j['getInfo'](_0x495405,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5c5831=>{const {width:_0x4a9c2a,height:_0x1894f0}=_0x5c5831['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x18c096,this['imageDimension']={'width':_0x4a9c2a,'height':_0x1894f0},this['imageId']=_0x495405;})['catch'](_0x508e02=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x508e02['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1c6c74,_0x2c1f78){return this['_getImageAsFile'](_0x1c6c74)['then'](_0x57af02=>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':_0x2c1f78['signal'],'file':_0x57af02,'onProgress':_0x4288a2=>{_0x4288a2&&_0x4288a2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4288a2['value']));}}))['then'](_0xbbf3e9=>{const {width:_0x318aa2,height:_0x2f9480}=_0xbbf3e9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbbf3e9['cdnUrl'],this['imageDimension']={'width':_0x318aa2,'height':_0x2f9480},this['imageId']=_0xbbf3e9['uuid'],this['imageUploadProgress']=null;const _0x144d2=_0x1c6c74['getAttribute']('src');this['_imageCache']['set'](_0x144d2,{'id':_0xbbf3e9['uuid'],'url':_0xbbf3e9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5698b6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5698b6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3afb1d,_0x53a509){_0x3afb1d['on']('apply',(_0x4edf3c,_0x14670a)=>{this['_replaceImage'](_0x53a509,_0x14670a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3afb1d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3afb1d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2e8326,_0x431787,_0x309982){const _0x209ddf=this['_editor'],{width:_0x3c1ec1,height:_0x5db5fa}=M(_0x431787,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1839f7,imageSources:_0x2fd8fe}=C(_0x431787,_0x3c1ec1);_0x209ddf['model']['change'](_0x366502=>{if('$graveyard'===_0x2e8326['root']['rootName']){_0x209ddf['execute']('insertImage',{'imageType':_0x2e8326['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2e8326['getAttributes']()),'uploadcareImageId':_0x309982,'src':_0x1839f7,'sources':_0x2fd8fe,'width':_0x3c1ec1,'height':_0x5db5fa}});const _0x2b1f2a=_0x2e8326['getChildren']();_0x2e8326=_0x209ddf['model']['document']['selection']['getSelectedElement']();for(const _0x40db72 of _0x2b1f2a)_0x366502['append'](_0x366502['cloneElement'](_0x40db72),_0x2e8326);}else _0x366502['setSelection'](_0x2e8326,'on'),_0x209ddf['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2e8326['getAttributes']()),'uploadcareImageId':_0x309982,'src':_0x1839f7,'sources':_0x2fd8fe,'width':_0x3c1ec1,'height':_0x5db5fa},_0x2e8326);_0x366502['setSelection'](_0x2e8326,'on');});}async['_getImageAsFile'](_0x89f502){const _0x32f66e=_0x8c5733['window'],_0x9ecbba=_0x8c5733['document']['location']['href'],_0x4e6b08=new _0x32f66e['URL'](_0x89f502['getAttribute']('src'),_0x9ecbba);if('data:'===_0x4e6b08['protocol']){const _0x3292ac=_0x4e6b08['href']['split'](','),_0x4f4301=_0x3292ac[0x0]['match'](/:(.*?);/)[0x1],_0xd1cf55=_0x4f4301['split']('/')[0x1],_0x182202=_0x32f66e['atob'](_0x3292ac[_0x3292ac['length']-0x1]);let _0x29b0f1=_0x182202['length'];const _0x23d26f=new _0x32f66e['Uint8Array'](_0x29b0f1);for(;_0x29b0f1--;)_0x23d26f[_0x29b0f1]=_0x182202['charCodeAt'](_0x29b0f1);return new _0x32f66e['File']([_0x23d26f],'image.'+_0xd1cf55,{'type':_0x4f4301});}const _0x5470f8=_0x4e6b08['href']['split']('/'),_0x3764f5=_0x5470f8[_0x5470f8['length']-0x1],_0x20f0be=_0x3764f5['split']('.')[0x1];return _0x32f66e['fetch'](_0x4e6b08['href'])['then'](_0xf8ab17=>_0xf8ab17['clone']()['blob']())['then'](_0x4c5483=>new _0x32f66e['File']([_0x4c5483],_0x3764f5,{'type':'image/'+_0x20f0be}));}}class R extends _0x28cb1d{['imageEditController'];static get['requires'](){return[_0x1dba28];}['_isEditable'];constructor(_0x5619ec){super(_0x5619ec),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3e8140){const _0x55022d=z(_0x3e8140);return _0x404a6b=>!(!_0x404a6b||!_0x404a6b['is']('element','imageBlock')&&!_0x404a6b['is']('element','imageInline'))&&(!!_0x404a6b['hasAttribute']('uploadcareImageId')||!!_0x404a6b['hasAttribute']('src')&&_0x55022d(_0x404a6b['getAttribute']('src')));}(_0x5619ec['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4be56d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4be56d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x304ae6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x304ae6&&(_0x304ae6['is']('element','imageBlock')||_0x304ae6['is']('element','imageInline'))&&(this['imageEditController']=new G(this['editor'],this['editor']['plugins']['get'](_0x1dba28),_0x304ae6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class Q extends _0x28cb1d{['refresh'](){const _0x3b770e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3b770e&&(_0x3b770e['is']('element','imageBlock')||_0x3b770e['is']('element','imageInline')));}['execute'](_0x1a7fa6){const _0x14f23f=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4f9446=>{_0x4f9446['setAttributes'](_0x1a7fa6,_0x14f23f),_0x4f9446['removeAttribute']('srcset',_0x14f23f),_0x4f9446['removeAttribute']('sizes',_0x14f23f);});}}class m extends _0x3a52b7{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x145159,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x69188a}=this;_0x69188a['commands']['add']('uploadcareImageEdit',new R(_0x69188a)),_0x69188a['commands']['add']('uploadcareImageReplace',new Q(_0x69188a));}}class g extends _0x3a52b7{['_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 _0x64a5d1=this['editor'];_0x64a5d1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3b9603=>{const _0x451077=_0x64a5d1['commands']['get']('uploadcareImageEdit'),_0x4255ca=new _0x456d0e(_0x3b9603),t=_0x3b9603['t'];return _0x4255ca['set']({'icon':_0x86bb4f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4255ca['bind']('isEnabled')['to'](_0x451077),_0x4255ca['bind']('isOn')['to'](_0x451077,'isActive'),this['listenTo'](_0x4255ca,'execute',()=>{_0x64a5d1['execute']('uploadcareImageEdit'),_0x64a5d1['editing']['view']['focus']();}),_0x4255ca;}),this['_initConfig']();}['_initConfig'](){const _0x2e4464=_0xfb34db(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2e4464),this['listenTo'](this['editor'],'destroy',()=>{_0x2e4464['remove']();});}}class et extends _0x3a52b7{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,R 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':_0x4fa383=>0x1!=_0x4fa383}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xd4d8f4=>{const {af:{dictionary:_0x6db61e,getPluralForm:_0x58f1a1}}={'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':_0x2733fc=>0x1!=_0x2733fc}};_0xd4d8f4['af']||={'dictionary':{},'getPluralForm':null},_0xd4d8f4['af']['dictionary']=Object['assign'](_0xd4d8f4['af']['dictionary'],_0x6db61e),_0xd4d8f4['af']['getPluralForm']=_0x58f1a1;})(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':_0x4586a3=>0x0==_0x4586a3?0x0:0x1==_0x4586a3?0x1:0x2==_0x4586a3?0x2:_0x4586a3%0x64>=0x3&&_0x4586a3%0x64<=0xa?0x3:_0x4586a3%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x6a7d1c=>{const {ar:{dictionary:_0x3047b5,getPluralForm:_0x87c312}}={'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':_0x5fa81d=>0x0==_0x5fa81d?0x0:0x1==_0x5fa81d?0x1:0x2==_0x5fa81d?0x2:_0x5fa81d%0x64>=0x3&&_0x5fa81d%0x64<=0xa?0x3:_0x5fa81d%0x64>=0xb?0x4:0x5}};_0x6a7d1c['ar']||={'dictionary':{},'getPluralForm':null},_0x6a7d1c['ar']['dictionary']=Object['assign'](_0x6a7d1c['ar']['dictionary'],_0x3047b5),_0x6a7d1c['ar']['getPluralForm']=_0x87c312;})(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':_0x5f2c2f=>0x1!=_0x5f2c2f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x183734=>{const {ast:{dictionary:_0xcc575e,getPluralForm:_0x5053f8}}={'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':_0xc331dc=>0x1!=_0xc331dc}};_0x183734['ast']||={'dictionary':{},'getPluralForm':null},_0x183734['ast']['dictionary']=Object['assign'](_0x183734['ast']['dictionary'],_0xcc575e),_0x183734['ast']['getPluralForm']=_0x5053f8;})(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':_0x1ea701=>0x1!=_0x1ea701}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x49c699=>{const {az:{dictionary:_0x2005ca,getPluralForm:_0xdbcd2}}={'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':_0x44cf5a=>0x1!=_0x44cf5a}};_0x49c699['az']||={'dictionary':{},'getPluralForm':null},_0x49c699['az']['dictionary']=Object['assign'](_0x49c699['az']['dictionary'],_0x2005ca),_0x49c699['az']['getPluralForm']=_0xdbcd2;})(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':_0x3f9f90=>_0x3f9f90%0xa==0x1&&_0x3f9f90%0x64!=0xb?0x0:_0x3f9f90%0xa>=0x2&&_0x3f9f90%0xa<=0x4&&(_0x3f9f90%0x64<0xa||_0x3f9f90%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xfeb8be=>{const {be:{dictionary:_0xf38c2a,getPluralForm:_0x22980a}}={'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':_0x1c475c=>_0x1c475c%0xa==0x1&&_0x1c475c%0x64!=0xb?0x0:_0x1c475c%0xa>=0x2&&_0x1c475c%0xa<=0x4&&(_0x1c475c%0x64<0xa||_0x1c475c%0x64>=0x14)?0x1:0x2}};_0xfeb8be['be']||={'dictionary':{},'getPluralForm':null},_0xfeb8be['be']['dictionary']=Object['assign'](_0xfeb8be['be']['dictionary'],_0xf38c2a),_0xfeb8be['be']['getPluralForm']=_0x22980a;})(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':_0x14a14f=>0x1!=_0x14a14f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2ee2f5=>{const {bg:{dictionary:_0x2f43a7,getPluralForm:_0x1bfd59}}={'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':_0xb17ae7=>0x1!=_0xb17ae7}};_0x2ee2f5['bg']||={'dictionary':{},'getPluralForm':null},_0x2ee2f5['bg']['dictionary']=Object['assign'](_0x2ee2f5['bg']['dictionary'],_0x2f43a7),_0x2ee2f5['bg']['getPluralForm']=_0x1bfd59;})(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':_0x31f3d7=>0x1!=_0x31f3d7}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5bc188=>{const {bn:{dictionary:_0xd2b70c,getPluralForm:_0x1a6a59}}={'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':_0x49dced=>0x1!=_0x49dced}};_0x5bc188['bn']||={'dictionary':{},'getPluralForm':null},_0x5bc188['bn']['dictionary']=Object['assign'](_0x5bc188['bn']['dictionary'],_0xd2b70c),_0x5bc188['bn']['getPluralForm']=_0x1a6a59;})(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':_0x32810f=>_0x32810f%0xa==0x1&&_0x32810f%0x64!=0xb?0x0:_0x32810f%0xa>=0x2&&_0x32810f%0xa<=0x4&&(_0x32810f%0x64<0xa||_0x32810f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x48daef=>{const {bs:{dictionary:_0x56649c,getPluralForm:_0x47205b}}={'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':_0x454da2=>_0x454da2%0xa==0x1&&_0x454da2%0x64!=0xb?0x0:_0x454da2%0xa>=0x2&&_0x454da2%0xa<=0x4&&(_0x454da2%0x64<0xa||_0x454da2%0x64>=0x14)?0x1:0x2}};_0x48daef['bs']||={'dictionary':{},'getPluralForm':null},_0x48daef['bs']['dictionary']=Object['assign'](_0x48daef['bs']['dictionary'],_0x56649c),_0x48daef['bs']['getPluralForm']=_0x47205b;})(window['CKEDITOR_TRANSLATIONS']||={});
|