@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251120.0 → 0.0.0-nightly-20251122.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 _0x3d4abf,Command as _0x2307bf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5c8b50,IconGooglePhotos as _0x1c88d3,IconGoogleDrive as _0x521879,IconFacebook as _0x1f0b5c,IconDropbox as _0x10538d,IconUploadcareLink as _0x17d1cd,IconUploadcareImageUpload as _0x4e6cda,IconError as _0x25a9e4,IconUploadcareImageEdit as _0x3ede7e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5f2f1f,MenuBarMenuListItemButtonView as _0x560d9a,View as _0x5b5546,FocusCycler as _0x36650b,Dialog as _0x104049,DialogViewPosition as _0x465881,SpinnerView as _0x2f651f,IconView as _0x116c44,Notification as _0x13e8c3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4d29d3,DomEmitterMixin as _0x5955c5,global as _0xe13366,getAncestors as _0x38e807,ObservableMixin as _0x14ae8a,uid as _0x452582,createElement as _0x19c19e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x461db3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x16779f,info as _0x505e1c}from'@uploadcare/upload-client';import*as _0x4994bb from'@uploadcare/file-uploader';var i=function(_0x17cdbf){return _0x17cdbf['Local']='local',_0x17cdbf['URL']='url',_0x17cdbf['Dropbox']='dropbox',_0x17cdbf['GDrive']='gdrive',_0x17cdbf['Facebook']='facebook',_0x17cdbf['GPhotos']='gphotos',_0x17cdbf['OneDrive']='onedrive',_0x17cdbf;}({});function _(_0x4fa641,_0x10f2c0,_0x217b84){const t=_0x4fa641['t'],_0x89cbcc=_0x4fa641['t'];switch(_0x10f2c0){case i['Local']:return{'text':_0x89cbcc('Insert'===_0x217b84?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x89cbcc('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x217b84?_0x89cbcc('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x89cbcc('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x217b84?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x217b84?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x217b84?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x217b84?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x217b84?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x10f2c0;}}class e extends _0x3d4abf{['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 _0xd83f6e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb865da;for(const _0x239d98 in _0xd83f6e){const _0x368555=_0x239d98,_0x53ed8e=_0xd83f6e[_0x368555];if('uploadcareLicenseKeyValid'==_0x53ed8e||'uploadcareLicenseKeyInvalid'==_0x53ed8e||'uploadcareLicenseKeyExpired'==_0x53ed8e||'uploadcareLicenseKeyDomainLimit'==_0x53ed8e||'uploadcareLicenseKeyNotAllowed'==_0x53ed8e||'uploadcareLicenseKeyEvaluationLimit'==_0x53ed8e||'uploadcareLicenseKeyTrialLimit'==_0x53ed8e||'uploadcareLicenseKeyUsageLimit'==_0x53ed8e){delete _0xd83f6e[_0x368555],_0xb865da=_0x53ed8e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xb865da&&_0xd83f6e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xb865da&&_0xd83f6e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xb865da&&_0xd83f6e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xb865da&&_0xd83f6e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xb865da&&_0xd83f6e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xb865da&&_0xd83f6e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xb865da&&_0xd83f6e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x36452b}=this,_0x3e6f65=_0x36452b['commands']['get']('uploadcare');if(!_0x3e6f65)return;const _0x41e998=this['_normalizeConfigSourceList'](_0x36452b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2f4b4e,_0x295eb8)=>{const _0x2aacfe=this['_getIntegrationKey'](_0x295eb8['type']);return _0x2f4b4e[_0x2aacfe]||(_0x2f4b4e[_0x2aacfe]=[]),_0x2f4b4e[_0x2aacfe]['push'](_0x295eb8),_0x2f4b4e;},{});_0x36452b['plugins']['has']('ImageInsertUI')&&_0x36452b['commands']['get']('uploadcare')&&Object['entries'](_0x41e998)['forEach'](([_0x114c62,_0x4c0e88])=>{_0x36452b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x114c62,'observable':()=>_0x3e6f65,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4c0e88),'formViewCreator':()=>this['_createDropdownButtons'](_0x4c0e88),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4c0e88),'override':'assetManager'!==_0x114c62});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x36fda1){const {locale:_0x5f46ca}=this['editor'];return _0x36fda1['map'](_0xcac66=>{const _0x3d63e3=_(_0x5f46ca,_0xcac66,'Insert');switch(_0xcac66){case i['Local']:return{'icon':_0x4e6cda,'type':i['Local'],..._0x3d63e3};case i['URL']:return{'icon':_0x17d1cd,'type':i['URL'],..._0x3d63e3};case i['Dropbox']:return{'icon':_0x10538d,'type':i['Dropbox'],..._0x3d63e3};case i['Facebook']:return{'icon':_0x1f0b5c,'type':i['Facebook'],..._0x3d63e3};case i['GDrive']:return{'icon':_0x521879,'type':i['GDrive'],..._0x3d63e3};case i['GPhotos']:return{'icon':_0x1c88d3,'type':i['GPhotos'],..._0x3d63e3};case i['OneDrive']:return{'icon':_0x5c8b50,'type':i['OneDrive'],..._0x3d63e3};}});}['_getIntegrationKey'](_0xe27eb8){switch(_0xe27eb8){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x27fe09,_0x59afc4){const _0x532d1=this['editor'],_0x45c92e=new _0x27fe09(_0x532d1['locale']),_0x46b7d2=_0x532d1['commands']['get']('uploadcare');return _0x45c92e['bind']('isEnabled')['to'](_0x46b7d2),_0x45c92e['on']('execute',()=>{_0x46b7d2['execute'](_0x59afc4);}),_0x45c92e;}['_createToolbarButton'](_0x45e6bd){const {locale:_0x2c30cb}=this['editor'],_0x7f9e98=this['editor']['plugins']['get']('ImageInsertUI'),_0x2d760d=_0x45e6bd[0x0],_0x2b487f=this['_createButton'](_0x5f2f1f,_0x2d760d['type']);return _0x2b487f['icon']=_0x2d760d['icon'],_0x2b487f['bind']('label')['to'](_0x7f9e98,'isImageSelected',_0x2b7b43=>_(_0x2c30cb,_0x2d760d['type'],_0x2b7b43?'Replace':'Insert')['text']),_0x2b487f['tooltip']=!0x0,_0x2b487f;}['_createDropdownButtons'](_0x22e6a2){const {locale:_0x7f6bf0}=this['editor'],_0x1a91a9=this['editor']['plugins']['get']('ImageInsertUI');return _0x22e6a2['map'](_0x38e4ed=>{const _0x24db59=this['_createButton'](_0x5f2f1f,_0x38e4ed['type']);return _0x24db59['withText']=!0x0,_0x24db59['icon']=_0x38e4ed['icon'],_0x24db59['bind']('label')['to'](_0x1a91a9,'isImageSelected',_0x28ae2b=>_(_0x7f6bf0,_0x38e4ed['type'],_0x28ae2b?'Replace':'Insert')['text']),_0x24db59;});}['_createMenuBarButtons'](_0x5a4ae0){return _0x5a4ae0['map'](_0x9a6642=>{const _0x1562a7=this['_createButton'](_0x560d9a,_0x9a6642['type']);return _0x1562a7['icon']=_0x9a6642['icon'],_0x1562a7['label']=_0x9a6642['shortText'],_0x1562a7;});}}class V extends _0x5b5546{['focusTracker'];['focusCycler'];constructor(_0x2fd41e){super(_0x2fd41e),this['focusTracker']=new _0x4d29d3(),this['focusCycler']=new _0x36650b({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x84b4b1,_0x1a745e){super(_0x84b4b1),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-'+_0x1a745e}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x20cc20,_0x526950){const _0x23abf6=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4aaba1=>_0x4aaba1<=_0x526950)['map'](_0xf97fdf=>_0x20cc20['replace'](/\/$/,'')+'/-/resize/'+_0xf97fdf+'x/\x20'+_0xf97fdf+'w');return{'imageFallbackUrl':_0x20cc20,'imageSources':[{'srcset':_0x23abf6['join'](',\x20'),'sizes':'(max-width:\x20'+_0x526950+'px)\x20100vw,\x20'+_0x526950+'px','type':'image/webp'}]};}function F(_0x4d1087,_0x4ac5e7,_0x2de903){const _0x3a3927=_0x4d1087['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3a3927?parseInt(_0x3a3927[0x1],0xa):_0x4ac5e7,'height':_0x3a3927?parseInt(_0x3a3927[0x2],0xa):_0x2de903};}function p(_0x3c6add,_0x30bec1){const _0xaa97aa=new(_0x5955c5())(),_0x5b4ae2=_0x3c6add['plugins']['get']('ImageUtils'),_0x1186ea=_0x3c6add['editing']['mapper']['toViewElement'](_0x30bec1),_0x5a6601=_0x5b4ae2['findViewImgElement'](_0x1186ea),_0x21505a=_0x3c6add['editing']['view']['domConverter']['viewToDom'](_0x5a6601),_0x2c4258=_0x30bec1['getAttribute']('width'),_0x7fe43=_0x30bec1['getAttribute']('height'),_0x518b11='image-processing';_0x3c6add['editing']['view']['change'](_0x352a5b=>{_0x352a5b['addClass'](_0x518b11,_0x1186ea),_0x352a5b['setStyle']('aspect-ratio',_0x2c4258+'/'+_0x7fe43,_0x5a6601);}),_0xaa97aa['listenTo'](_0x21505a,'load',()=>{_0xaa97aa['stopListening'](_0x21505a,'load'),_0x3c6add['editing']['view']['change'](_0x401c59=>{_0x401c59['removeClass'](_0x518b11,_0x1186ea),_0x401c59['removeStyle']('aspect-ratio',_0x5a6601);});});}function R(_0x4fcc86){if(Array['isArray'](_0x4fcc86)){const _0x496c23=_0x4fcc86['map'](R);return _0x35e481=>_0x496c23['some'](_0x3714cb=>_0x3714cb(_0x35e481));}if('origin'==_0x4fcc86){const _0x54782f=_0xe13366['window']['location']['origin'];return _0x171c71=>new URL(_0x171c71,_0xe13366['document']['baseURI'])['origin']==_0x54782f;}return'function'==typeof _0x4fcc86?_0x4fcc86:_0x4fcc86 instanceof RegExp?_0x52363d=>!(!_0x52363d['match'](_0x4fcc86)&&!_0x52363d['replace'](/^https?:\/\//,'')['match'](_0x4fcc86)):()=>!0x1;}function M(_0x20f549,_0x1435b4){return _0x38e807(_0x20f549['target'])['includes'](_0x1435b4);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x14ae8a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x15f293,_0x38728d,_0x5a68a1){super(),this['_editor']=_0x15f293,this['_editing']=_0x38728d,this['_dialog']=_0x15f293['plugins']['get'](_0x104049),this['_api']=_0x38728d['ctxElement']['getAPI'](),this['_type']=_0x5a68a1,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:_0x55e661,model:_0x21828f}=this['_editor'],_0xda0a9=_0x21828f['document']['selection']['getSelectedElement'](),_0x505b48=_0xda0a9&&(_0xda0a9['is']('element','imageBlock')||_0xda0a9['is']('element','imageInline'));this['_formView']=new S(_0x55e661,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4e6cda,'title':_(_0x55e661,this['_type'],_0x505b48?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x465881['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x75705=>!M(_0x75705,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xcce594}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x153161=>{const _0xd267c1=_0xcce594['length'];for(const _0x134cf0 of _0xcce594){const _0x30b0b9=_0x134cf0===_0xcce594[_0xd267c1-0x1],{cdnUrl:_0x1f3801,fileInfo:_0x2e994d}=_0x134cf0;if(!_0x1f3801||!_0x2e994d)continue;const {width:_0x186189,height:_0x4024de}=_0x2e994d['imageInfo'],_0x1d7652=F(_0x1f3801,_0x186189,_0x4024de),_0x381082=C(_0x1f3801,_0x1d7652['width']),_0x15e27c={'id':_0x2e994d['uuid'],'type':'image','attributes':{'imageDimension':_0x1d7652,..._0x381082}};this['_insertAsset'](_0x15e27c,_0x30b0b9,_0x153161);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4c61fc=>{'idle'===_0x4c61fc['detail']['status']&&!_0x4c61fc['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5ba82e,_0x231ba4,_0x5eb3fd){const _0x345a54=this['_editor']['model']['document']['selection'],_0x2b9fde=_0x345a54['getSelectedElement'](),_0x2200bf=!(!_0x2b9fde||!_0x2b9fde['is']('element','imageInline'));_0x5eb3fd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5ba82e,_0x2200bf),_0x231ba4||_0x5eb3fd['setSelection'](_0x345a54['getLastPosition']());}['_insertImage'](_0x2dc6c9,_0xd0aafa){const _0x50d9be=this['_editor'],{imageDimension:_0x5cc858,imageFallbackUrl:_0x3b3248,imageSources:_0x3b22d8}=_0x2dc6c9['attributes'];_0x50d9be['execute']('insertImage',{'imageType':_0xd0aafa?'imageInline':null,'source':{'uploadcareImageId':_0x2dc6c9['id'],'src':_0x3b3248,'sources':_0x3b22d8,..._0x5cc858}});}}class w extends _0x2307bf{['_editing'];['_controller']=null;static get['requires'](){return[_0x104049,o];}constructor(_0x110d46){super(_0x110d46),this['_editing']=_0x110d46['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x167dad){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x167dad);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x263b92,..._0x32e812}){return _0x16779f(_0x263b92,_0x32e812);}static['getInfo'](_0x1c2a3d,_0x5378ea){return _0x505e1c(_0x1c2a3d,_0x5378ea);}}class f extends _0x3d4abf{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x461db3,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x32ee21=this['editor'];if(!!!_0x32ee21['config']['get']('uploadcare'))return;_0x32ee21['plugins']['get'](_0x461db3)['createUploadAdapter']=_0x498eb6=>new k(_0x498eb6,_0x32ee21),_0x32ee21['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x141dc0,{imageElement:_0x6b81d0,data:_0x533c09})=>{_0x32ee21['model']['change'](_0xd404f=>{_0xd404f['setAttribute']('uploadcareImageId',_0x533c09['uploadcareImageId'],_0x6b81d0);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x466a67,_0x4102db){this['loader']=_0x466a67,this['editor']=_0x4102db,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4d9380=await this['loader']['file'];return j['upload']({'file':_0x4d9380,'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':_0x281bc4=>{_0x281bc4&&_0x281bc4['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x281bc4['value']);}})['then'](async _0x243628=>{const {imageFallbackUrl:_0x579853,imageSources:_0x564458}=C(_0x243628['cdnUrl'],_0x243628['imageInfo']['width']);return{'uploadcareImageId':_0x243628['uuid'],'default':_0x579853,'sources':_0x564458};})['catch'](()=>{const _0x20b8f6=t('Cannot\x20upload\x20file:')+('\x20'+_0x4d9380['name']+'.');return Promise['reject'](_0x20b8f6);});}['abort'](){this['controller']['abort']();}}class o extends _0x3d4abf{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x104049];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5a23bd){super(_0x5a23bd),this['ucContextId']=_0x452582();}['init'](){const _0x1d929a=this['editor'];_0x1d929a['commands']['add']('uploadcare',new w(_0x1d929a));}['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 _0x1bdc65=_0xe13366['document']['querySelector']('input[uploadcare-file-input]');_0x1bdc65&&_0x1bdc65['remove']();}),async function(_0x218f5d){const _0x59685b=_0x2eac55([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]),_0x56d4c3=0x535f8c3a,_0x2e1156=0x5358f59a^_0x56d4c3,_0x264de0=window[_0x2eac55([0x44,0x61,0x74,0x65])][_0x2eac55([0x6e,0x6f,0x77])](),_0x5e6c3f=_0x218f5d[_0x2eac55([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x561490=new window[(_0x2eac55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36d8c9=>{_0x5e6c3f[_0x2eac55([0x6f,0x6e,0x63,0x65])](_0x2eac55([0x72,0x65,0x61,0x64,0x79]),_0x36d8c9);}),_0x3fd1be={[_0x2eac55([0x6b,0x74,0x79])]:_0x2eac55([0x45,0x43]),[_0x2eac55([0x75,0x73,0x65])]:_0x2eac55([0x73,0x69,0x67]),[_0x2eac55([0x63,0x72,0x76])]:_0x2eac55([0x50,0x2d,0x32,0x35,0x36]),[_0x2eac55([0x78])]:_0x2eac55([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]),[_0x2eac55([0x79])]:_0x2eac55([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]),[_0x2eac55([0x61,0x6c,0x67])]:_0x2eac55([0x45,0x53,0x32,0x35,0x36])},_0x33e9b2=_0x5e6c3f[_0x2eac55([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2eac55([0x67,0x65,0x74])](_0x2eac55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x525887(){let _0x412f6d,_0x5691e9=null,_0x416b08=null;try{if(_0x33e9b2==_0x2eac55([0x47,0x50,0x4c]))return _0x2eac55([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x412f6d=_0x195869(),!_0x412f6d)return _0x2eac55([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x412f6d[_0x2eac55([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x416b08=_0x230eb1(_0x412f6d[_0x2eac55([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x412f6d[_0x2eac55([0x6a,0x74,0x69])])),await _0x3f4b86()?_0x54644a()?_0x4011ec()?_0x2eac55([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52d79a()?(_0x412f6d[_0x2eac55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2eac55([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5691e9=_0x1dd96a(_0x2eac55([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x412f6d[_0x2eac55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2eac55([0x74,0x72,0x69,0x61,0x6c])&&(_0x5691e9=_0x1dd96a(_0x2eac55([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x48a6fd()):_0x2eac55([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2eac55([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2eac55([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2eac55([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4011ec(){const _0x414d3b=[_0x2eac55([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2eac55([0x74,0x72,0x69,0x61,0x6c])][_0x2eac55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x412f6d[_0x2eac55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x264de0/0x3e8:0xe10*_0x2e1156;return _0x412f6d[_0x2eac55([0x65,0x78,0x70])]<_0x414d3b;}function _0x54644a(){const _0x338168=_0x412f6d[_0x2eac55([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x338168&&(!!_0x338168[_0x2eac55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eac55([0x2a]))||!!_0x338168[_0x2eac55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eac55([0x55,0x50,0x4c,0x43])));}function _0x52d79a(){const _0x3b54d9=_0x412f6d[_0x2eac55([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b54d9||0x0==_0x3b54d9[_0x2eac55([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e5266}=new URL(window[_0x2eac55([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b54d9[_0x2eac55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e5266))return!0x0;const _0x2f48be=_0x3e5266[_0x2eac55([0x73,0x70,0x6c,0x69,0x74])](_0x2eac55([0x2e]));return _0x3b54d9[_0x2eac55([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10635f=>_0x10635f[_0x2eac55([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eac55([0x2a])))[_0x2eac55([0x6d,0x61,0x70])](_0x42f262=>_0x42f262[_0x2eac55([0x73,0x70,0x6c,0x69,0x74])](_0x2eac55([0x2e])))[_0x2eac55([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1fd380=>_0x1fd380[_0x2eac55([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2f48be[_0x2eac55([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2eac55([0x6d,0x61,0x70])](_0x5817cf=>Array(_0x2f48be[_0x2eac55([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5817cf[_0x2eac55([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2eac55([0x66,0x69,0x6c,0x6c])](_0x5817cf[0x0]===_0x2eac55([0x2a])?_0x2eac55([0x2a]):'')[_0x2eac55([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5817cf))[_0x2eac55([0x73,0x6f,0x6d,0x65])](_0x1871d9=>_0x2f48be[_0x2eac55([0x65,0x76,0x65,0x72,0x79])]((_0x343bbe,_0x19308a)=>_0x1871d9[_0x19308a]===_0x343bbe||_0x1871d9[_0x19308a]===_0x2eac55([0x2a])));}function _0x48a6fd(){return _0x5691e9&&_0x416b08?new window[(_0x2eac55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1793d2,_0x5a1814)=>{_0x5691e9[_0x2eac55([0x74,0x68,0x65,0x6e])](_0x1793d2,_0x5a1814),_0x416b08[_0x2eac55([0x74,0x68,0x65,0x6e])](_0x3339e8=>{_0x3339e8!=_0x2eac55([0x56,0x61,0x6c,0x69,0x64])&&_0x1793d2(_0x3339e8);},_0x5a1814);}):_0x5691e9||_0x416b08||_0x2eac55([0x56,0x61,0x6c,0x69,0x64]);}}function _0x230eb1(_0x48d612,_0x331f0c){return new window[(_0x2eac55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2902d3=>{if(_0x55dbf2())return _0x2902d3(_0x2eac55([0x56,0x61,0x6c,0x69,0x64]));_0x2c76b6(),_0x5e6c3f[_0x2eac55([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2eac55([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c83f3=!0x1;const _0x436925=_0x452582();function _0x34f274(_0xa9b64d){return!!_0xa9b64d&&(typeof _0xa9b64d===_0x2eac55([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa9b64d===_0x2eac55([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa9b64d[_0x2eac55([0x74,0x68,0x65,0x6e])]===_0x2eac55([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa9b64d[_0x2eac55([0x63,0x61,0x74,0x63,0x68])]===_0x2eac55([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5aeeb4(_0x2688a6){_0x6e7122(_0x2688a6)[_0x2eac55([0x74,0x68,0x65,0x6e])](_0x12a275=>{if(!_0x12a275||_0x12a275[_0x2eac55([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2eac55([0x6f,0x6b]))return _0x2eac55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12c2cd(_0x508c9f(_0x436925+_0x331f0c))!=_0x12a275[_0x2eac55([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2eac55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2eac55([0x56,0x61,0x6c,0x69,0x64]);})[_0x2eac55([0x74,0x68,0x65,0x6e])](_0x97f57a=>(_0x36fddc(),_0x97f57a),()=>{const _0x2f412c=_0xca0853();return null==_0x2f412c?(_0x36fddc(),_0x2eac55([0x56,0x61,0x6c,0x69,0x64])):_0x2eac55(_0x264de0-_0x2f412c>(0x7753083a^_0x56d4c3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2eac55([0x74,0x68,0x65,0x6e])](_0x2902d3)[_0x2eac55([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2902d3(_0x2eac55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d71e1=0x536962ba^_0x56d4c3;function _0x36fddc(){const _0x4a22b1=_0x2eac55([0x6c,0x6c,0x63,0x74,0x2d])+_0x12c2cd(_0x508c9f(_0x48d612)),_0x549cd8=_0x1fae8c(_0x12c2cd(window[_0x2eac55([0x4d,0x61,0x74,0x68])][_0x2eac55([0x63,0x65,0x69,0x6c])](_0x264de0/_0x5d71e1)));window[_0x2eac55([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2eac55([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a22b1,_0x549cd8);}function _0xca0853(){const _0x12eebf=_0x2eac55([0x6c,0x6c,0x63,0x74,0x2d])+_0x12c2cd(_0x508c9f(_0x48d612)),_0x5dd54f=window[_0x2eac55([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2eac55([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12eebf);return _0x5dd54f?window[_0x2eac55([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fae8c(_0x5dd54f),0x10)*_0x5d71e1:null;}function _0x6e7122(_0x36fb6b){return new window[(_0x2eac55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50493e,_0x181c0b)=>{_0x36fb6b[_0x2eac55([0x74,0x68,0x65,0x6e])](_0x50493e,_0x181c0b),window[_0x2eac55([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x181c0b,0x535e58fa^_0x56d4c3);});}}_0x5e6c3f[_0x2eac55([0x6f,0x6e])](_0x2eac55([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1baf9e,_0x3ed3f1)=>{if(_0x3ed3f1[0x0]!=_0x48d612)return _0x2902d3(_0x2eac55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ed3f1[0x1]={..._0x3ed3f1[0x1],[_0x2eac55([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x436925};},{[_0x2eac55([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2eac55([0x68,0x69,0x67,0x68])}),_0x5e6c3f[_0x2eac55([0x6f,0x6e])](_0x2eac55([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1712b1=>{_0x34f274(_0x1712b1[_0x2eac55([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c83f3=!0x0,_0x5aeeb4(_0x1712b1[_0x2eac55([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2eac55([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2eac55([0x6c,0x6f,0x77])}),_0x561490[_0x2eac55([0x74,0x68,0x65,0x6e])](()=>{_0x4c83f3||_0x2902d3(_0x2eac55([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55dbf2(){return _0x5e6c3f[_0x2eac55([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2eac55([0x76,0x69,0x65,0x77])][_0x2eac55([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2eac55([0x61,0x75,0x74,0x6f]);}function _0x2c76b6(){_0x5e6c3f[_0x2eac55([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2eac55([0x76,0x69,0x65,0x77])][_0x2eac55([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2eac55([0x61,0x75,0x74,0x6f]);}}function _0x1dd96a(_0x28b6f0){const _0x4706e0=[new window[(_0x2eac55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c4d29=>setTimeout(_0x4c4d29,0x5356b2f6^_0x56d4c3)),_0x561490[_0x2eac55([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2eac55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xec83f5=>{let _0x38ecd3=0x0;_0x5e6c3f[_0x2eac55([0x6d,0x6f,0x64,0x65,0x6c])][_0x2eac55([0x6f,0x6e])](_0x2eac55([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57da63,_0x69ce3)=>{_0x69ce3[0x0][_0x2eac55([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38ecd3++,_0x38ecd3==(0x535f8dc2^_0x56d4c3)&&(_0xec83f5(),_0x57da63[_0x2eac55([0x6f,0x66,0x66])]());});}))];return window[_0x2eac55([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2eac55([0x72,0x61,0x63,0x65])](_0x4706e0)[_0x2eac55([0x74,0x68,0x65,0x6e])](()=>_0x28b6f0);}async function _0x7dc5a8(){await _0x561490,_0x5e6c3f[_0x2eac55([0x6d,0x6f,0x64,0x65,0x6c])][_0x2eac55([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10454c,_0x5e6c3f[_0x2eac55([0x6d,0x6f,0x64,0x65,0x6c])][_0x2eac55([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10454c,_0x5e6c3f[_0x2eac55([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2eac55([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2fe372(_0x27235e){const _0x3292da=_0x40bd92();_0x5e6c3f[_0x3292da]=_0x2eac55([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x27235e,_0x27235e!=_0x2eac55([0x56,0x61,0x6c,0x69,0x64])&&_0x7dc5a8();}function _0x40bd92(){const _0x5047a7=window[_0x2eac55([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2eac55([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2eac55([0x6e,0x6f,0x77])]())[_0x2eac55([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2eac55([0x2e]),'');let _0x26a724=_0x2eac55([0x68]);for(let _0x2f80eb=0x0;_0x2f80eb<_0x5047a7[_0x2eac55([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f80eb+=0x2){let _0x32199a=window[_0x2eac55([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5047a7[_0x2eac55([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f80eb,_0x2f80eb+0x2));_0x32199a>=_0x59685b[_0x2eac55([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32199a-=_0x59685b[_0x2eac55([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26a724+=_0x59685b[_0x32199a];}return _0x26a724;}function _0x195869(){const _0x1b5bc8=_0x33e9b2[_0x2eac55([0x73,0x70,0x6c,0x69,0x74])](_0x2eac55([0x2e]));if(0x3!=_0x1b5bc8[_0x2eac55([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d841a(_0x1b5bc8[0x1]);function _0x3d841a(_0x52df37){const _0x4f0dcf=_0x2628d2(_0x52df37);return _0x4f0dcf&&_0x13dab7()?_0x4f0dcf:null;function _0x13dab7(){const _0x5e050f=_0x4f0dcf[_0x2eac55([0x6a,0x74,0x69])],_0x41b2b0=window[_0x2eac55([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e050f[_0x2eac55([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e050f[_0x2eac55([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x49eb18={..._0x4f0dcf,[_0x2eac55([0x6a,0x74,0x69])]:_0x5e050f[_0x2eac55([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e050f[_0x2eac55([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x49eb18[_0x2eac55([0x76,0x63])],_0x508c9f(_0x49eb18)==_0x41b2b0;}}}async function _0x3f4b86(){let _0x177626=!0x0;try{const _0x86c0e5=_0x33e9b2[_0x2eac55([0x73,0x70,0x6c,0x69,0x74])](_0x2eac55([0x2e])),[_0x1de532,_0x468ad4,_0x45a1e0]=_0x86c0e5;return _0x207785(_0x1de532),await _0x45f7ab(_0x1de532,_0x468ad4,_0x45a1e0),_0x177626;}catch{return!0x1;}function _0x207785(_0x553ee9){const _0x50f848=_0x2628d2(_0x553ee9);_0x50f848&&_0x50f848[_0x2eac55([0x61,0x6c,0x67])]==_0x2eac55([0x45,0x53,0x32,0x35,0x36])||(_0x177626=!0x1);}async function _0x45f7ab(_0x3d284c,_0x662cd7,_0x2c4e88){const _0x17046b=window[_0x2eac55([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2eac55([0x66,0x72,0x6f,0x6d])](_0x3108fa(_0x2c4e88),_0x3430c0=>_0x3430c0[_0x2eac55([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x401d6a=new window[(_0x2eac55([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2eac55([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d284c+_0x2eac55([0x2e])+_0x662cd7),_0x9f9956=window[_0x2eac55([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2eac55([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9f9956)return;const _0x3cdfb6=await _0x9f9956[_0x2eac55([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2eac55([0x6a,0x77,0x6b]),_0x3fd1be,{[_0x2eac55([0x6e,0x61,0x6d,0x65])]:_0x2eac55([0x45,0x43,0x44,0x53,0x41]),[_0x2eac55([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2eac55([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2eac55([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9f9956[_0x2eac55([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2eac55([0x6e,0x61,0x6d,0x65])]:_0x2eac55([0x45,0x43,0x44,0x53,0x41]),[_0x2eac55([0x68,0x61,0x73,0x68])]:{[_0x2eac55([0x6e,0x61,0x6d,0x65])]:_0x2eac55([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3cdfb6,_0x17046b,_0x401d6a)||(_0x177626=!0x1);}}function _0x2628d2(_0x4c392){return _0x4c392[_0x2eac55([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2eac55([0x65,0x79]))?JSON[_0x2eac55([0x70,0x61,0x72,0x73,0x65])](_0x3108fa(_0x4c392)):null;}function _0x3108fa(_0x250b2f){return window[_0x2eac55([0x61,0x74,0x6f,0x62])](_0x250b2f[_0x2eac55([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2eac55([0x2b]))[_0x2eac55([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2eac55([0x2f])));}function _0x508c9f(_0x56d3a9){let _0x14906c=0x1505;function _0x1c81d8(_0x16a496){for(let _0x27713a=0x0;_0x27713a<_0x16a496[_0x2eac55([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27713a++){const _0x5f56b0=_0x16a496[_0x2eac55([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x27713a);_0x14906c=(_0x14906c<<0x5)+_0x14906c+_0x5f56b0,_0x14906c&=_0x14906c;}}function _0x3352cb(_0x2387f6){Array[_0x2eac55([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2387f6)?_0x2387f6[_0x2eac55([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3352cb):_0x2387f6&&typeof _0x2387f6==_0x2eac55([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2eac55([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2387f6)[_0x2eac55([0x73,0x6f,0x72,0x74])]()[_0x2eac55([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41bed6,_0x158622])=>{_0x1c81d8(_0x41bed6),_0x3352cb(_0x158622);}):_0x1c81d8(window[_0x2eac55([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2387f6));}return _0x3352cb(_0x56d3a9),_0x14906c>>>0x0;}function _0x12c2cd(_0x4cc9a3){return _0x4cc9a3[_0x2eac55([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2eac55([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2eac55([0x30]));}function _0x1fae8c(_0x4183f5){return _0x4183f5[_0x2eac55([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2eac55([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2eac55([0x6a,0x6f,0x69,0x6e])]('');}function _0x10454c(){}function _0x2eac55(_0x3181dc){return _0x3181dc['map'](_0x4bdc4a=>String['fromCharCode'](_0x4bdc4a))['join']('');}_0x2fe372(await _0x525887());}(this);}['_initSchema'](){const _0xa8e6c=this['editor']['model']['schema'];_0xa8e6c['isRegistered']('imageBlock')&&_0xa8e6c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xa8e6c['isRegistered']('imageInline')&&_0xa8e6c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x545d95=this['editor'];_0x545d95['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x545d95['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xaaacf9=>_0xaaacf9['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1bc3dd=_0x545d95['commands']['get']('replaceImageSource');_0x1bc3dd&&this['listenTo'](_0x1bc3dd,'cleanupImage',(_0x3bc9da,[_0x3b4d79,_0x3cc15c])=>{_0x3b4d79['removeAttribute']('uploadcareImageId',_0x3cc15c);});}['_initConfig'](){const _0x282fe7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x211e1b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x19c19e(_0xe13366['document'],'uc-config',{..._0x282fe7,'pubkey':_0x211e1b,'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']=_0x57d7ae=>{if('closeMax'==_0x57d7ae)return'#uc-icon-arrow-down';},_0xe13366['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x19c19e(_0xe13366['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xe13366['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x156b46=this['editor']['commands']['get']('insertImage');_0x156b46&&this['listenTo'](_0x156b46,'execute',()=>{const _0x291ce3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x291ce3&&_0x291ce3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x291ce3);});});const _0x3372d8=this['editor']['commands']['get']('uploadcareImageReplace');_0x3372d8&&this['listenTo'](_0x3372d8,'execute',()=>{const _0x4b66db=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b66db&&_0x4b66db['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4b66db);});});}}class tt extends _0x3d4abf{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c91cc){super(_0x2c91cc),_0x2c91cc['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4994bb['defineComponents'](_0x4994bb),this['_defineLocale']();}['_defineLocale'](){const _0x44c8bd=this['editor']['config']['get']('uploadcare.locale'),_0x561fe0=this['editor']['locale']['contentLanguage'];_0x44c8bd&&_0x4994bb['defineLocale'](_0x561fe0,_0x44c8bd);}}class ii extends _0x5b5546{constructor(_0x449b95){super(_0x449b95);const t=_0x449b95['t'],_0x345a74=this['bindTemplate'],_0x2f4934=new _0x2f651f();_0x2f4934['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':[_0x2f4934,{'text':_0x345a74['to']('imageUploadProgress',_0x422477=>t('Loading\x20image...')+'\x20('+(_0x422477||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 _0x5b5546{constructor(_0x52fdf5){super(_0x52fdf5);const t=_0x52fdf5['t'];this['set']('errorType',null);const _0x4aba4d=new _0x5f2f1f(_0x52fdf5);_0x4aba4d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4aba4d['withText']=!0x0,_0x4aba4d['class']='ck-button-action',_0x4aba4d['on']('execute',()=>{this['fire']('retry');}),_0x4aba4d['bind']('isVisible')['to'](this,'errorType',_0x71ee04=>'NotFound'!==_0x71ee04);const _0x399e6f=new _0x116c44();_0x399e6f['content']=_0x25a9e4,_0x399e6f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1d0fad=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':[_0x399e6f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1d0fad['to']('errorType',_0x291d8b=>t('NotFound'!==_0x291d8b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4aba4d]},{'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 _0x5b5546{constructor(_0x3cc196,_0x4fe1e4){super(_0x3cc196);const _0x1c380e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4fe1e4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1c380e['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4dcce1,_0x4ea59c,_0x28afdd){super(_0x4dcce1),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4dcce1),this['_errorView']=new ti(_0x4dcce1),this['_editingView']=new ei(_0x4dcce1,_0x28afdd),this['_focusableView']=new _0x5b5546(_0x4dcce1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4ea59c),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'],_0x5d173c=>{this['_addUploadcareImageEditorListeners'](_0x5d173c);});}),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'](_0x2cb9f4,_0x330613){const _0x2eda3d='uc-cloud-image-editor',_0x1eb244=_0x2cb9f4['querySelector'](_0x2eda3d);if(_0x1eb244)return _0x330613(_0x1eb244);const _0x412569=new MutationObserver(_0x5597cb=>{const _0x2a38ac=_0x5597cb['filter'](_0x1b0f24=>_0x1b0f24['target']===_0x2cb9f4&&_0x1b0f24['addedNodes']['length']>0x0&&_0x1b0f24['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2eda3d);_0x2a38ac['length']&&(_0x412569['disconnect'](),_0x330613(_0x2a38ac[0x0]['addedNodes'][0x0]));});_0x412569['observe'](_0x2cb9f4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x92f5b6){_0x92f5b6['addEventListener']('apply',_0x35d3ef=>{this['fire']('apply',{'imageSrc':_0x35d3ef['detail']['cdnUrl']});}),_0x92f5b6['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x14ae8a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3da885,_0x1c9a55,_0x3952b6){super(),this['_editor']=_0x3da885,this['_dialog']=_0x1c9a55,this['_imageElement']=_0x3952b6,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 _0x38fd7f=this['_imageElement'],_0xb8ec84=_0x38fd7f['getAttribute']('uploadcareImageId'),_0x278f29=_0x38fd7f['getAttribute']('src');if(_0xb8ec84)await this['_loadImageInfo'](_0xb8ec84,_0x278f29);else{if(this['_imageCache']['has'](_0x278f29)){const _0x3f7966=this['_imageCache']['get'](_0x278f29);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f7966['url'],this['imageDimension']=_0x3f7966['dimension'],this['imageId']=_0x3f7966['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x81a28e}=this['_editor'],t=_0x81a28e['t'],_0x5bfdbd=new X(_0x81a28e,this['imageStatus'],this['_attributes']);_0x5bfdbd['bind']('status')['to'](this,'imageStatus'),_0x5bfdbd['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5bfdbd['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5bfdbd['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5bfdbd,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3ede7e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5bfdbd,'position':_0x465881['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5bfdbd['focus']();},'onHide':()=>{_0x5bfdbd['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x44ae7a=>!M(_0x44ae7a,_0x5bfdbd['element'])}});}['_loadImageInfo'](_0x27d0c3,_0x3a5951){return j['getInfo'](_0x27d0c3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x24656f=>{const {width:_0x5e5070,height:_0x1dc293}=_0x24656f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a5951,this['imageDimension']={'width':_0x5e5070,'height':_0x1dc293},this['imageId']=_0x27d0c3;})['catch'](_0x11a682=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x11a682['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4b85e7,_0x139a93){return this['_getImageAsFile'](_0x4b85e7)['then'](_0x1ba5c3=>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':_0x139a93['signal'],'file':_0x1ba5c3,'onProgress':_0x568862=>{_0x568862&&_0x568862['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x568862['value']));}}))['then'](_0x2870e5=>{const {width:_0x269a83,height:_0x4f8ee2}=_0x2870e5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2870e5['cdnUrl'],this['imageDimension']={'width':_0x269a83,'height':_0x4f8ee2},this['imageId']=_0x2870e5['uuid'],this['imageUploadProgress']=null;const _0x3e8206=_0x4b85e7['getAttribute']('src');this['_imageCache']['set'](_0x3e8206,{'id':_0x2870e5['uuid'],'url':_0x2870e5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3293e7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3293e7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x37a3cc,_0x1ce15c){_0x37a3cc['on']('apply',(_0x4e255b,_0x1daaee)=>{this['_replaceImage'](_0x1ce15c,_0x1daaee['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x37a3cc['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x37a3cc['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x312ff5,_0x4aac0d,_0x59663d){const _0x34038b=this['_editor'],{width:_0x71a1e9,height:_0x33f2b8}=F(_0x4aac0d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x9be806,imageSources:_0x333518}=C(_0x4aac0d,_0x71a1e9);_0x34038b['model']['change'](_0x1fed82=>{if('$graveyard'===_0x312ff5['root']['rootName']){_0x34038b['execute']('insertImage',{'imageType':_0x312ff5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x312ff5['getAttributes']()),'uploadcareImageId':_0x59663d,'src':_0x9be806,'sources':_0x333518,'width':_0x71a1e9,'height':_0x33f2b8}});const _0x25a915=_0x312ff5['getChildren']();_0x312ff5=_0x34038b['model']['document']['selection']['getSelectedElement']();for(const _0x268b29 of _0x25a915)_0x1fed82['append'](_0x1fed82['cloneElement'](_0x268b29),_0x312ff5);}else _0x1fed82['setSelection'](_0x312ff5,'on'),_0x34038b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x312ff5['getAttributes']()),'uploadcareImageId':_0x59663d,'src':_0x9be806,'sources':_0x333518,'width':_0x71a1e9,'height':_0x33f2b8},_0x312ff5);_0x1fed82['setSelection'](_0x312ff5,'on');});}async['_getImageAsFile'](_0x4e8f45){const _0x5c59da=_0xe13366['window'],_0x2efab5=_0xe13366['document']['location']['href'],_0x36b995=new _0x5c59da['URL'](_0x4e8f45['getAttribute']('src'),_0x2efab5);if('data:'===_0x36b995['protocol']){const _0x46d08d=_0x36b995['href']['split'](','),_0x26f514=_0x46d08d[0x0]['match'](/:(.*?);/)[0x1],_0x27c597=_0x26f514['split']('/')[0x1],_0x2ca060=_0x5c59da['atob'](_0x46d08d[_0x46d08d['length']-0x1]);let _0x1e8c65=_0x2ca060['length'];const _0x3e9dcc=new _0x5c59da['Uint8Array'](_0x1e8c65);for(;_0x1e8c65--;)_0x3e9dcc[_0x1e8c65]=_0x2ca060['charCodeAt'](_0x1e8c65);return new _0x5c59da['File']([_0x3e9dcc],'image.'+_0x27c597,{'type':_0x26f514});}const _0x52c0b1=_0x36b995['href']['split']('/'),_0x20f2df=_0x52c0b1[_0x52c0b1['length']-0x1],_0x480606=_0x20f2df['split']('.')[0x1];return _0x5c59da['fetch'](_0x36b995['href'])['then'](_0x44702d=>_0x44702d['clone']()['blob']())['then'](_0x2e135f=>new _0x5c59da['File']([_0x2e135f],_0x20f2df,{'type':'image/'+_0x480606}));}}class N extends _0x2307bf{['imageEditController'];static get['requires'](){return[_0x104049];}['_isEditable'];constructor(_0x21961d){super(_0x21961d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x29a363){const _0x51c4c7=R(_0x29a363);return _0x49dc90=>!(!_0x49dc90||!_0x49dc90['is']('element','imageBlock')&&!_0x49dc90['is']('element','imageInline'))&&(!!_0x49dc90['hasAttribute']('uploadcareImageId')||!!_0x49dc90['hasAttribute']('src')&&_0x51c4c7(_0x49dc90['getAttribute']('src')));}(_0x21961d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5f4c92=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5f4c92);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x56a664=this['editor']['model']['document']['selection']['getSelectedElement']();_0x56a664&&(_0x56a664['is']('element','imageBlock')||_0x56a664['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x104049),_0x56a664),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2307bf{['refresh'](){const _0x214229=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x214229&&(_0x214229['is']('element','imageBlock')||_0x214229['is']('element','imageInline')));}['execute'](_0x167298){const _0x369ca3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4959b2=>{_0x4959b2['setAttributes'](_0x167298,_0x369ca3),_0x4959b2['removeAttribute']('srcset',_0x369ca3),_0x4959b2['removeAttribute']('sizes',_0x369ca3);});}}class m extends _0x3d4abf{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x13e8c3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x224e93}=this;_0x224e93['commands']['add']('uploadcareImageEdit',new N(_0x224e93)),_0x224e93['commands']['add']('uploadcareImageReplace',new O(_0x224e93));}}class g extends _0x3d4abf{['_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 _0x23d440=this['editor'];_0x23d440['ui']['componentFactory']['add']('uploadcareImageEdit',_0x32a800=>{const _0x471238=_0x23d440['commands']['get']('uploadcareImageEdit'),_0x2ea825=new _0x5f2f1f(_0x32a800),t=_0x32a800['t'];return _0x2ea825['set']({'icon':_0x3ede7e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2ea825['bind']('isEnabled')['to'](_0x471238),_0x2ea825['bind']('isOn')['to'](_0x471238,'isActive'),this['listenTo'](_0x2ea825,'execute',()=>{_0x23d440['execute']('uploadcareImageEdit'),_0x23d440['editing']['view']['focus']();}),_0x2ea825;}),this['_initConfig']();}['_initConfig'](){const _0x2f6406=_0x19c19e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2f6406),this['listenTo'](this['editor'],'destroy',()=>{_0x2f6406['remove']();});}}class et extends _0x3d4abf{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x591147,Command as _0x130986}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xc2ad5b,IconGooglePhotos as _0x24de46,IconGoogleDrive as _0x202a7e,IconFacebook as _0x2e91ea,IconDropbox as _0x202267,IconUploadcareLink as _0x1a139f,IconUploadcareImageUpload as _0x32fcb2,IconError as _0x4d5ce6,IconUploadcareImageEdit as _0x166e76}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2ad41a,MenuBarMenuListItemButtonView as _0x58f1f5,View as _0xe784cc,FocusCycler as _0x1a93fb,Dialog as _0x166b41,DialogViewPosition as _0x54da96,SpinnerView as _0xe5c68a,IconView as _0x3c2139,Notification as _0x5c25f5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1c20bf,DomEmitterMixin as _0x653c37,global as _0x5d7562,getAncestors as _0x3e791f,ObservableMixin as _0x46efc5,uid as _0x59d2ba,createElement as _0x426134}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5b6e2f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x29d312,info as _0x37f536}from'@uploadcare/upload-client';import*as _0x4d39d4 from'@uploadcare/file-uploader';var i=function(_0x32fb98){return _0x32fb98['Local']='local',_0x32fb98['URL']='url',_0x32fb98['Dropbox']='dropbox',_0x32fb98['GDrive']='gdrive',_0x32fb98['Facebook']='facebook',_0x32fb98['GPhotos']='gphotos',_0x32fb98['OneDrive']='onedrive',_0x32fb98;}({});function _(_0x1c6386,_0x5aa299,_0x180872){const t=_0x1c6386['t'],_0x4c0721=_0x1c6386['t'];switch(_0x5aa299){case i['Local']:return{'text':_0x4c0721('Insert'===_0x180872?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4c0721('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x180872?_0x4c0721('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4c0721('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x180872?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5aa299;}}class e extends _0x591147{['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 _0x5e868c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e5a5f;for(const _0xc6dfd9 in _0x5e868c){const _0x5a6cc0=_0xc6dfd9,_0x2a0b24=_0x5e868c[_0x5a6cc0];if('uploadcareLicenseKeyValid'==_0x2a0b24||'uploadcareLicenseKeyInvalid'==_0x2a0b24||'uploadcareLicenseKeyExpired'==_0x2a0b24||'uploadcareLicenseKeyDomainLimit'==_0x2a0b24||'uploadcareLicenseKeyNotAllowed'==_0x2a0b24||'uploadcareLicenseKeyEvaluationLimit'==_0x2a0b24||'uploadcareLicenseKeyTrialLimit'==_0x2a0b24||'uploadcareLicenseKeyUsageLimit'==_0x2a0b24){delete _0x5e868c[_0x5a6cc0],_0x5e5a5f=_0x2a0b24,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5e5a5f&&_0x5e868c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x264268}=this,_0x20676e=_0x264268['commands']['get']('uploadcare');if(!_0x20676e)return;const _0x211e74=this['_normalizeConfigSourceList'](_0x264268['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x40d8c8,_0x16de78)=>{const _0x11f949=this['_getIntegrationKey'](_0x16de78['type']);return _0x40d8c8[_0x11f949]||(_0x40d8c8[_0x11f949]=[]),_0x40d8c8[_0x11f949]['push'](_0x16de78),_0x40d8c8;},{});_0x264268['plugins']['has']('ImageInsertUI')&&_0x264268['commands']['get']('uploadcare')&&Object['entries'](_0x211e74)['forEach'](([_0x195c41,_0x4b94fd])=>{_0x264268['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x195c41,'observable':()=>_0x20676e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4b94fd),'formViewCreator':()=>this['_createDropdownButtons'](_0x4b94fd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4b94fd),'override':'assetManager'!==_0x195c41});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x43586a){const {locale:_0xa10a43}=this['editor'];return _0x43586a['map'](_0x1f23b5=>{const _0x41faa4=_(_0xa10a43,_0x1f23b5,'Insert');switch(_0x1f23b5){case i['Local']:return{'icon':_0x32fcb2,'type':i['Local'],..._0x41faa4};case i['URL']:return{'icon':_0x1a139f,'type':i['URL'],..._0x41faa4};case i['Dropbox']:return{'icon':_0x202267,'type':i['Dropbox'],..._0x41faa4};case i['Facebook']:return{'icon':_0x2e91ea,'type':i['Facebook'],..._0x41faa4};case i['GDrive']:return{'icon':_0x202a7e,'type':i['GDrive'],..._0x41faa4};case i['GPhotos']:return{'icon':_0x24de46,'type':i['GPhotos'],..._0x41faa4};case i['OneDrive']:return{'icon':_0xc2ad5b,'type':i['OneDrive'],..._0x41faa4};}});}['_getIntegrationKey'](_0x442f1c){switch(_0x442f1c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4e78ee,_0x37827a){const _0x5acaac=this['editor'],_0x1899ed=new _0x4e78ee(_0x5acaac['locale']),_0x516132=_0x5acaac['commands']['get']('uploadcare');return _0x1899ed['bind']('isEnabled')['to'](_0x516132),_0x1899ed['on']('execute',()=>{_0x516132['execute'](_0x37827a);}),_0x1899ed;}['_createToolbarButton'](_0x270431){const {locale:_0x3ffcd3}=this['editor'],_0x398641=this['editor']['plugins']['get']('ImageInsertUI'),_0x7dc80=_0x270431[0x0],_0x529de7=this['_createButton'](_0x2ad41a,_0x7dc80['type']);return _0x529de7['icon']=_0x7dc80['icon'],_0x529de7['bind']('label')['to'](_0x398641,'isImageSelected',_0x167e97=>_(_0x3ffcd3,_0x7dc80['type'],_0x167e97?'Replace':'Insert')['text']),_0x529de7['tooltip']=!0x0,_0x529de7;}['_createDropdownButtons'](_0x444373){const {locale:_0x1a56eb}=this['editor'],_0x207903=this['editor']['plugins']['get']('ImageInsertUI');return _0x444373['map'](_0x34375a=>{const _0x562c16=this['_createButton'](_0x2ad41a,_0x34375a['type']);return _0x562c16['withText']=!0x0,_0x562c16['icon']=_0x34375a['icon'],_0x562c16['bind']('label')['to'](_0x207903,'isImageSelected',_0x189b85=>_(_0x1a56eb,_0x34375a['type'],_0x189b85?'Replace':'Insert')['text']),_0x562c16;});}['_createMenuBarButtons'](_0x45e5e2){return _0x45e5e2['map'](_0x534da6=>{const _0x3d7e1f=this['_createButton'](_0x58f1f5,_0x534da6['type']);return _0x3d7e1f['icon']=_0x534da6['icon'],_0x3d7e1f['label']=_0x534da6['shortText'],_0x3d7e1f;});}}class V extends _0xe784cc{['focusTracker'];['focusCycler'];constructor(_0x48bea2){super(_0x48bea2),this['focusTracker']=new _0x1c20bf(),this['focusCycler']=new _0x1a93fb({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x12f1d2,_0x57805a){super(_0x12f1d2),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-'+_0x57805a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x52903a,_0x116178){const _0x1a89a2=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x694cbd=>_0x694cbd<=_0x116178)['map'](_0x1073ef=>_0x52903a['replace'](/\/$/,'')+'/-/resize/'+_0x1073ef+'x/\x20'+_0x1073ef+'w');return{'imageFallbackUrl':_0x52903a,'imageSources':[{'srcset':_0x1a89a2['join'](',\x20'),'sizes':'(max-width:\x20'+_0x116178+'px)\x20100vw,\x20'+_0x116178+'px','type':'image/webp'}]};}function F(_0x2ba9ac,_0xaaeb23,_0x1d7b62){const _0x2edfd1=_0x2ba9ac['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2edfd1?parseInt(_0x2edfd1[0x1],0xa):_0xaaeb23,'height':_0x2edfd1?parseInt(_0x2edfd1[0x2],0xa):_0x1d7b62};}function p(_0x156e3c,_0x1bdb1f){const _0x81a55d=new(_0x653c37())(),_0x114b35=_0x156e3c['plugins']['get']('ImageUtils'),_0x46613e=_0x156e3c['editing']['mapper']['toViewElement'](_0x1bdb1f),_0x3364c0=_0x114b35['findViewImgElement'](_0x46613e),_0x1e7852=_0x156e3c['editing']['view']['domConverter']['viewToDom'](_0x3364c0),_0x3ee342=_0x1bdb1f['getAttribute']('width'),_0x115fe7=_0x1bdb1f['getAttribute']('height'),_0x1ce951='image-processing';_0x156e3c['editing']['view']['change'](_0x1c84fb=>{_0x1c84fb['addClass'](_0x1ce951,_0x46613e),_0x1c84fb['setStyle']('aspect-ratio',_0x3ee342+'/'+_0x115fe7,_0x3364c0);}),_0x81a55d['listenTo'](_0x1e7852,'load',()=>{_0x81a55d['stopListening'](_0x1e7852,'load'),_0x156e3c['editing']['view']['change'](_0x3e73c2=>{_0x3e73c2['removeClass'](_0x1ce951,_0x46613e),_0x3e73c2['removeStyle']('aspect-ratio',_0x3364c0);});});}function R(_0x40f09e){if(Array['isArray'](_0x40f09e)){const _0x26ff7f=_0x40f09e['map'](R);return _0x59c9c1=>_0x26ff7f['some'](_0x71d565=>_0x71d565(_0x59c9c1));}if('origin'==_0x40f09e){const _0x52bab3=_0x5d7562['window']['location']['origin'];return _0x5455e9=>new URL(_0x5455e9,_0x5d7562['document']['baseURI'])['origin']==_0x52bab3;}return'function'==typeof _0x40f09e?_0x40f09e:_0x40f09e instanceof RegExp?_0x39a810=>!(!_0x39a810['match'](_0x40f09e)&&!_0x39a810['replace'](/^https?:\/\//,'')['match'](_0x40f09e)):()=>!0x1;}function M(_0x73db7d,_0x3e4e05){return _0x3e791f(_0x73db7d['target'])['includes'](_0x3e4e05);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x46efc5(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3be863,_0x2c2ed8,_0x12ce72){super(),this['_editor']=_0x3be863,this['_editing']=_0x2c2ed8,this['_dialog']=_0x3be863['plugins']['get'](_0x166b41),this['_api']=_0x2c2ed8['ctxElement']['getAPI'](),this['_type']=_0x12ce72,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:_0xf17426,model:_0x1a6145}=this['_editor'],_0x518343=_0x1a6145['document']['selection']['getSelectedElement'](),_0x176fc5=_0x518343&&(_0x518343['is']('element','imageBlock')||_0x518343['is']('element','imageInline'));this['_formView']=new S(_0xf17426,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x32fcb2,'title':_(_0xf17426,this['_type'],_0x176fc5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x54da96['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x14b0df=>!M(_0x14b0df,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xa39dcd}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x263406=>{const _0x190993=_0xa39dcd['length'];for(const _0x9cb0a8 of _0xa39dcd){const _0x583e11=_0x9cb0a8===_0xa39dcd[_0x190993-0x1],{cdnUrl:_0x387d53,fileInfo:_0x123363}=_0x9cb0a8;if(!_0x387d53||!_0x123363)continue;const {width:_0x58a8f6,height:_0x2d890c}=_0x123363['imageInfo'],_0x1e6261=F(_0x387d53,_0x58a8f6,_0x2d890c),_0x15d99b=C(_0x387d53,_0x1e6261['width']),_0x566dcb={'id':_0x123363['uuid'],'type':'image','attributes':{'imageDimension':_0x1e6261,..._0x15d99b}};this['_insertAsset'](_0x566dcb,_0x583e11,_0x263406);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3a399d=>{'idle'===_0x3a399d['detail']['status']&&!_0x3a399d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3e9a4b,_0x1f958c,_0x348ce6){const _0x727e38=this['_editor']['model']['document']['selection'],_0x4ff890=_0x727e38['getSelectedElement'](),_0x2e8779=!(!_0x4ff890||!_0x4ff890['is']('element','imageInline'));_0x348ce6['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3e9a4b,_0x2e8779),_0x1f958c||_0x348ce6['setSelection'](_0x727e38['getLastPosition']());}['_insertImage'](_0x13bf10,_0x1edb52){const _0x5869ff=this['_editor'],{imageDimension:_0x4e1bc2,imageFallbackUrl:_0x15b397,imageSources:_0x3e14b5}=_0x13bf10['attributes'];_0x5869ff['execute']('insertImage',{'imageType':_0x1edb52?'imageInline':null,'source':{'uploadcareImageId':_0x13bf10['id'],'src':_0x15b397,'sources':_0x3e14b5,..._0x4e1bc2}});}}class w extends _0x130986{['_editing'];['_controller']=null;static get['requires'](){return[_0x166b41,o];}constructor(_0xea1660){super(_0xea1660),this['_editing']=_0xea1660['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2bf0a2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2bf0a2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xcde0f9,..._0x3507e7}){return _0x29d312(_0xcde0f9,_0x3507e7);}static['getInfo'](_0x21402e,_0x239a09){return _0x37f536(_0x21402e,_0x239a09);}}class f extends _0x591147{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5b6e2f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x531a9d=this['editor'];if(!!!_0x531a9d['config']['get']('uploadcare'))return;_0x531a9d['plugins']['get'](_0x5b6e2f)['createUploadAdapter']=_0x12474c=>new k(_0x12474c,_0x531a9d),_0x531a9d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2c93b0,{imageElement:_0x4749c1,data:_0x699bca})=>{_0x531a9d['model']['change'](_0x2b8293=>{_0x2b8293['setAttribute']('uploadcareImageId',_0x699bca['uploadcareImageId'],_0x4749c1);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5d548f,_0x339a81){this['loader']=_0x5d548f,this['editor']=_0x339a81,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x47b100=await this['loader']['file'];return j['upload']({'file':_0x47b100,'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':_0x75ece0=>{_0x75ece0&&_0x75ece0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x75ece0['value']);}})['then'](async _0x28966b=>{const {imageFallbackUrl:_0x15f724,imageSources:_0x2beb66}=C(_0x28966b['cdnUrl'],_0x28966b['imageInfo']['width']);return{'uploadcareImageId':_0x28966b['uuid'],'default':_0x15f724,'sources':_0x2beb66};})['catch'](()=>{const _0x44b769=t('Cannot\x20upload\x20file:')+('\x20'+_0x47b100['name']+'.');return Promise['reject'](_0x44b769);});}['abort'](){this['controller']['abort']();}}class o extends _0x591147{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x166b41];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x20ab0b){super(_0x20ab0b),this['ucContextId']=_0x59d2ba();}['init'](){const _0x4f38e1=this['editor'];_0x4f38e1['commands']['add']('uploadcare',new w(_0x4f38e1));}['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 _0x577554=_0x5d7562['document']['querySelector']('input[uploadcare-file-input]');_0x577554&&_0x577554['remove']();}),async function(_0x32b2a0){const _0xe781d4=_0x4700a4([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]),_0x1deeec=0x535f8c3a,_0x1fbf9a=0x5358f5ea^_0x1deeec,_0x11c276=window[_0x4700a4([0x44,0x61,0x74,0x65])][_0x4700a4([0x6e,0x6f,0x77])](),_0x6b5b0=_0x32b2a0[_0x4700a4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6d8f01=new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x568d1f=>{_0x6b5b0[_0x4700a4([0x6f,0x6e,0x63,0x65])](_0x4700a4([0x72,0x65,0x61,0x64,0x79]),_0x568d1f);}),_0x2b0a4f={[_0x4700a4([0x6b,0x74,0x79])]:_0x4700a4([0x45,0x43]),[_0x4700a4([0x75,0x73,0x65])]:_0x4700a4([0x73,0x69,0x67]),[_0x4700a4([0x63,0x72,0x76])]:_0x4700a4([0x50,0x2d,0x32,0x35,0x36]),[_0x4700a4([0x78])]:_0x4700a4([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]),[_0x4700a4([0x79])]:_0x4700a4([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]),[_0x4700a4([0x61,0x6c,0x67])]:_0x4700a4([0x45,0x53,0x32,0x35,0x36])},_0xb640de=_0x6b5b0[_0x4700a4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4700a4([0x67,0x65,0x74])](_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x272d28(){let _0x508e80,_0x97d78f=null,_0x177997=null;try{if(_0xb640de==_0x4700a4([0x47,0x50,0x4c]))return _0x4700a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x508e80=_0x2fa670(),!_0x508e80)return _0x4700a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x508e80[_0x4700a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x177997=_0x587770(_0x508e80[_0x4700a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x508e80[_0x4700a4([0x6a,0x74,0x69])])),await _0x2dd2ff()?_0x3841cf()?_0x596700()?_0x4700a4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2de82d()?(_0x508e80[_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4700a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x97d78f=_0x4a873d(_0x4700a4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x508e80[_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4700a4([0x74,0x72,0x69,0x61,0x6c])&&(_0x97d78f=_0x4a873d(_0x4700a4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35c7f7()):_0x4700a4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4700a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4700a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4700a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x596700(){const _0x5b8a39=[_0x4700a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4700a4([0x74,0x72,0x69,0x61,0x6c])][_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x508e80[_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11c276/0x3e8:0xe10*_0x1fbf9a;return _0x508e80[_0x4700a4([0x65,0x78,0x70])]<_0x5b8a39;}function _0x3841cf(){const _0x41ae14=_0x508e80[_0x4700a4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x41ae14&&(!!_0x41ae14[_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4700a4([0x2a]))||!!_0x41ae14[_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4700a4([0x55,0x50,0x4c,0x43])));}function _0x2de82d(){const _0x2b4b00=_0x508e80[_0x4700a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b4b00||0x0==_0x2b4b00[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46c92c}=new URL(window[_0x4700a4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b4b00[_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46c92c))return!0x0;const _0x4f89fd=_0x46c92c[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])](_0x4700a4([0x2e]));return _0x2b4b00[_0x4700a4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4849ca=>_0x4849ca[_0x4700a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4700a4([0x2a])))[_0x4700a4([0x6d,0x61,0x70])](_0x19875d=>_0x19875d[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])](_0x4700a4([0x2e])))[_0x4700a4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43ead1=>_0x43ead1[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4f89fd[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4700a4([0x6d,0x61,0x70])](_0x1cc99a=>Array(_0x4f89fd[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cc99a[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4700a4([0x66,0x69,0x6c,0x6c])](_0x1cc99a[0x0]===_0x4700a4([0x2a])?_0x4700a4([0x2a]):'')[_0x4700a4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cc99a))[_0x4700a4([0x73,0x6f,0x6d,0x65])](_0x5af592=>_0x4f89fd[_0x4700a4([0x65,0x76,0x65,0x72,0x79])]((_0x3ca6e4,_0x5c457c)=>_0x5af592[_0x5c457c]===_0x3ca6e4||_0x5af592[_0x5c457c]===_0x4700a4([0x2a])));}function _0x35c7f7(){return _0x97d78f&&_0x177997?new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bd6f7,_0x3410f0)=>{_0x97d78f[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x5bd6f7,_0x3410f0),_0x177997[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x658865=>{_0x658865!=_0x4700a4([0x56,0x61,0x6c,0x69,0x64])&&_0x5bd6f7(_0x658865);},_0x3410f0);}):_0x97d78f||_0x177997||_0x4700a4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x587770(_0x33cc28,_0x2b522b){return new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a075b=>{if(_0x6ef1a2())return _0x3a075b(_0x4700a4([0x56,0x61,0x6c,0x69,0x64]));_0x589a63(),_0x6b5b0[_0x4700a4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4700a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32e8e7=!0x1;const _0x4a287f=_0x59d2ba();function _0x2bcb7d(_0x444a9f){return!!_0x444a9f&&(typeof _0x444a9f===_0x4700a4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x444a9f===_0x4700a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x444a9f[_0x4700a4([0x74,0x68,0x65,0x6e])]===_0x4700a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x444a9f[_0x4700a4([0x63,0x61,0x74,0x63,0x68])]===_0x4700a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x316244(_0x29fa4e){_0x32c0c5(_0x29fa4e)[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x2dddac=>{if(!_0x2dddac||_0x2dddac[_0x4700a4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4700a4([0x6f,0x6b]))return _0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b1a67(_0x2c0079(_0x4a287f+_0x2b522b))!=_0x2dddac[_0x4700a4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4700a4([0x56,0x61,0x6c,0x69,0x64]);})[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x5406b4=>(_0x8156d8(),_0x5406b4),()=>{const _0x5e1c45=_0x388b10();return null==_0x5e1c45?(_0x8156d8(),_0x4700a4([0x56,0x61,0x6c,0x69,0x64])):_0x4700a4(_0x11c276-_0x5e1c45>(0x7753083a^_0x1deeec)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x3a075b)[_0x4700a4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3a075b(_0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xdf2ed0=0x536962ba^_0x1deeec;function _0x8156d8(){const _0x21330=_0x4700a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b1a67(_0x2c0079(_0x33cc28)),_0x5e51d7=_0x4304af(_0x1b1a67(window[_0x4700a4([0x4d,0x61,0x74,0x68])][_0x4700a4([0x63,0x65,0x69,0x6c])](_0x11c276/_0xdf2ed0)));window[_0x4700a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4700a4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21330,_0x5e51d7);}function _0x388b10(){const _0x5627b2=_0x4700a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b1a67(_0x2c0079(_0x33cc28)),_0x35fdae=window[_0x4700a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4700a4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5627b2);return _0x35fdae?window[_0x4700a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4304af(_0x35fdae),0x10)*_0xdf2ed0:null;}function _0x32c0c5(_0x30d109){return new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14f76e,_0x2747eb)=>{_0x30d109[_0x4700a4([0x74,0x68,0x65,0x6e])](_0x14f76e,_0x2747eb),window[_0x4700a4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2747eb,0x535e58fa^_0x1deeec);});}}_0x6b5b0[_0x4700a4([0x6f,0x6e])](_0x4700a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e98a4,_0x35d354)=>{if(_0x35d354[0x0]!=_0x33cc28)return _0x3a075b(_0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35d354[0x1]={..._0x35d354[0x1],[_0x4700a4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a287f};},{[_0x4700a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4700a4([0x68,0x69,0x67,0x68])}),_0x6b5b0[_0x4700a4([0x6f,0x6e])](_0x4700a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3602c5=>{_0x2bcb7d(_0x3602c5[_0x4700a4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32e8e7=!0x0,_0x316244(_0x3602c5[_0x4700a4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4700a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4700a4([0x6c,0x6f,0x77])}),_0x6d8f01[_0x4700a4([0x74,0x68,0x65,0x6e])](()=>{_0x32e8e7||_0x3a075b(_0x4700a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6ef1a2(){return _0x6b5b0[_0x4700a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4700a4([0x76,0x69,0x65,0x77])][_0x4700a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4700a4([0x61,0x75,0x74,0x6f]);}function _0x589a63(){_0x6b5b0[_0x4700a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4700a4([0x76,0x69,0x65,0x77])][_0x4700a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4700a4([0x61,0x75,0x74,0x6f]);}}function _0x4a873d(_0x243e99){const _0x158d94=[new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x215d5d=>setTimeout(_0x215d5d,0x5356b2f6^_0x1deeec)),_0x6d8f01[_0x4700a4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8ea423=>{let _0xa57bec=0x0;_0x6b5b0[_0x4700a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4700a4([0x6f,0x6e])](_0x4700a4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xce1291,_0x213f60)=>{_0x213f60[0x0][_0x4700a4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa57bec++,_0xa57bec==(0x535f8dc2^_0x1deeec)&&(_0x8ea423(),_0xce1291[_0x4700a4([0x6f,0x66,0x66])]());});}))];return window[_0x4700a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4700a4([0x72,0x61,0x63,0x65])](_0x158d94)[_0x4700a4([0x74,0x68,0x65,0x6e])](()=>_0x243e99);}async function _0xe781bd(){await _0x6d8f01,_0x6b5b0[_0x4700a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4700a4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x205284,_0x6b5b0[_0x4700a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4700a4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x205284,_0x6b5b0[_0x4700a4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4700a4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x320d00(_0x58e628){const _0x38b5ff=_0x30f25d();_0x6b5b0[_0x38b5ff]=_0x4700a4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58e628,_0x58e628!=_0x4700a4([0x56,0x61,0x6c,0x69,0x64])&&_0xe781bd();}function _0x30f25d(){const _0x51b622=window[_0x4700a4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4700a4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4700a4([0x6e,0x6f,0x77])]())[_0x4700a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4700a4([0x2e]),'');let _0x18f64b=_0x4700a4([0x68]);for(let _0xf4bf98=0x0;_0xf4bf98<_0x51b622[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf4bf98+=0x2){let _0x114566=window[_0x4700a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51b622[_0x4700a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf4bf98,_0xf4bf98+0x2));_0x114566>=_0xe781d4[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x114566-=_0xe781d4[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18f64b+=_0xe781d4[_0x114566];}return _0x18f64b;}function _0x2fa670(){const _0x3dc47d=_0xb640de[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])](_0x4700a4([0x2e]));if(0x3!=_0x3dc47d[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b2bf0(_0x3dc47d[0x1]);function _0x4b2bf0(_0x38def7){const _0x669aee=_0x3b66e7(_0x38def7);return _0x669aee&&_0x4e89d1()?_0x669aee:null;function _0x4e89d1(){const _0xfeedf8=_0x669aee[_0x4700a4([0x6a,0x74,0x69])],_0x108007=window[_0x4700a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfeedf8[_0x4700a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfeedf8[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ce822={..._0x669aee,[_0x4700a4([0x6a,0x74,0x69])]:_0xfeedf8[_0x4700a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xfeedf8[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ce822[_0x4700a4([0x76,0x63])],_0x2c0079(_0x5ce822)==_0x108007;}}}async function _0x2dd2ff(){let _0x532fd5=!0x0;try{const _0x27bfeb=_0xb640de[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])](_0x4700a4([0x2e])),[_0x2bdf7e,_0x5616b5,_0x195714]=_0x27bfeb;return _0x20b2cb(_0x2bdf7e),await _0x13d133(_0x2bdf7e,_0x5616b5,_0x195714),_0x532fd5;}catch{return!0x1;}function _0x20b2cb(_0x192710){const _0x3c031b=_0x3b66e7(_0x192710);_0x3c031b&&_0x3c031b[_0x4700a4([0x61,0x6c,0x67])]==_0x4700a4([0x45,0x53,0x32,0x35,0x36])||(_0x532fd5=!0x1);}async function _0x13d133(_0x1b08b9,_0x1d66e6,_0x42a414){const _0x18f842=window[_0x4700a4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4700a4([0x66,0x72,0x6f,0x6d])](_0x52a4ad(_0x42a414),_0x2a584e=>_0x2a584e[_0x4700a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28f433=new window[(_0x4700a4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4700a4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b08b9+_0x4700a4([0x2e])+_0x1d66e6),_0x169436=window[_0x4700a4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4700a4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x169436)return;const _0x29e80e=await _0x169436[_0x4700a4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4700a4([0x6a,0x77,0x6b]),_0x2b0a4f,{[_0x4700a4([0x6e,0x61,0x6d,0x65])]:_0x4700a4([0x45,0x43,0x44,0x53,0x41]),[_0x4700a4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4700a4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4700a4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x169436[_0x4700a4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4700a4([0x6e,0x61,0x6d,0x65])]:_0x4700a4([0x45,0x43,0x44,0x53,0x41]),[_0x4700a4([0x68,0x61,0x73,0x68])]:{[_0x4700a4([0x6e,0x61,0x6d,0x65])]:_0x4700a4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29e80e,_0x18f842,_0x28f433)||(_0x532fd5=!0x1);}}function _0x3b66e7(_0x28cdee){return _0x28cdee[_0x4700a4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4700a4([0x65,0x79]))?JSON[_0x4700a4([0x70,0x61,0x72,0x73,0x65])](_0x52a4ad(_0x28cdee)):null;}function _0x52a4ad(_0x44bfc3){return window[_0x4700a4([0x61,0x74,0x6f,0x62])](_0x44bfc3[_0x4700a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4700a4([0x2b]))[_0x4700a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4700a4([0x2f])));}function _0x2c0079(_0x3223d0){let _0x1d2668=0x1505;function _0xf17cf(_0x5d9a3f){for(let _0x55e4a1=0x0;_0x55e4a1<_0x5d9a3f[_0x4700a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55e4a1++){const _0x541d98=_0x5d9a3f[_0x4700a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55e4a1);_0x1d2668=(_0x1d2668<<0x5)+_0x1d2668+_0x541d98,_0x1d2668&=_0x1d2668;}}function _0x248f0e(_0x3c9f12){Array[_0x4700a4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c9f12)?_0x3c9f12[_0x4700a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x248f0e):_0x3c9f12&&typeof _0x3c9f12==_0x4700a4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4700a4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c9f12)[_0x4700a4([0x73,0x6f,0x72,0x74])]()[_0x4700a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5f2d70,_0x5dbe19])=>{_0xf17cf(_0x5f2d70),_0x248f0e(_0x5dbe19);}):_0xf17cf(window[_0x4700a4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c9f12));}return _0x248f0e(_0x3223d0),_0x1d2668>>>0x0;}function _0x1b1a67(_0x1851e7){return _0x1851e7[_0x4700a4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4700a4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4700a4([0x30]));}function _0x4304af(_0x180333){return _0x180333[_0x4700a4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4700a4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4700a4([0x6a,0x6f,0x69,0x6e])]('');}function _0x205284(){}function _0x4700a4(_0x1685a3){return _0x1685a3['map'](_0x17777b=>String['fromCharCode'](_0x17777b))['join']('');}_0x320d00(await _0x272d28());}(this);}['_initSchema'](){const _0x14afd1=this['editor']['model']['schema'];_0x14afd1['isRegistered']('imageBlock')&&_0x14afd1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x14afd1['isRegistered']('imageInline')&&_0x14afd1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3b9b3d=this['editor'];_0x3b9b3d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3b9b3d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x17183e=>_0x17183e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x178cfc=_0x3b9b3d['commands']['get']('replaceImageSource');_0x178cfc&&this['listenTo'](_0x178cfc,'cleanupImage',(_0x383d84,[_0x418825,_0x55f724])=>{_0x418825['removeAttribute']('uploadcareImageId',_0x55f724);});}['_initConfig'](){const _0x1b7e0e=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2f7701=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x426134(_0x5d7562['document'],'uc-config',{..._0x1b7e0e,'pubkey':_0x2f7701,'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']=_0x4c4649=>{if('closeMax'==_0x4c4649)return'#uc-icon-arrow-down';},_0x5d7562['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x426134(_0x5d7562['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5d7562['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x45902a=this['editor']['commands']['get']('insertImage');_0x45902a&&this['listenTo'](_0x45902a,'execute',()=>{const _0x556205=this['editor']['model']['document']['selection']['getSelectedElement']();_0x556205&&_0x556205['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x556205);});});const _0x387e3d=this['editor']['commands']['get']('uploadcareImageReplace');_0x387e3d&&this['listenTo'](_0x387e3d,'execute',()=>{const _0x37cd6b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x37cd6b&&_0x37cd6b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x37cd6b);});});}}class tt extends _0x591147{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x374149){super(_0x374149),_0x374149['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4d39d4['defineComponents'](_0x4d39d4),this['_defineLocale']();}['_defineLocale'](){const _0x15cd18=this['editor']['config']['get']('uploadcare.locale'),_0x3aca5d=this['editor']['locale']['contentLanguage'];_0x15cd18&&_0x4d39d4['defineLocale'](_0x3aca5d,_0x15cd18);}}class ii extends _0xe784cc{constructor(_0x5b0537){super(_0x5b0537);const t=_0x5b0537['t'],_0x4ee64a=this['bindTemplate'],_0x57c33f=new _0xe5c68a();_0x57c33f['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':[_0x57c33f,{'text':_0x4ee64a['to']('imageUploadProgress',_0x1bfacc=>t('Loading\x20image...')+'\x20('+(_0x1bfacc||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 _0xe784cc{constructor(_0x189773){super(_0x189773);const t=_0x189773['t'];this['set']('errorType',null);const _0x419d11=new _0x2ad41a(_0x189773);_0x419d11['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x419d11['withText']=!0x0,_0x419d11['class']='ck-button-action',_0x419d11['on']('execute',()=>{this['fire']('retry');}),_0x419d11['bind']('isVisible')['to'](this,'errorType',_0x51c15c=>'NotFound'!==_0x51c15c);const _0x2987b6=new _0x3c2139();_0x2987b6['content']=_0x4d5ce6,_0x2987b6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4da778=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':[_0x2987b6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4da778['to']('errorType',_0x31ebc9=>t('NotFound'!==_0x31ebc9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x419d11]},{'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 _0xe784cc{constructor(_0x1ce7d4,_0x475d6b){super(_0x1ce7d4);const _0x4c45a4=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x475d6b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4c45a4['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2ee425,_0x2bf158,_0x239fb1){super(_0x2ee425),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2ee425),this['_errorView']=new ti(_0x2ee425),this['_editingView']=new ei(_0x2ee425,_0x239fb1),this['_focusableView']=new _0xe784cc(_0x2ee425),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2bf158),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'],_0x55913f=>{this['_addUploadcareImageEditorListeners'](_0x55913f);});}),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'](_0x59b51f,_0xb3d12e){const _0x607670='uc-cloud-image-editor',_0x31d240=_0x59b51f['querySelector'](_0x607670);if(_0x31d240)return _0xb3d12e(_0x31d240);const _0x486081=new MutationObserver(_0x1f43ad=>{const _0x346342=_0x1f43ad['filter'](_0x26996a=>_0x26996a['target']===_0x59b51f&&_0x26996a['addedNodes']['length']>0x0&&_0x26996a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x607670);_0x346342['length']&&(_0x486081['disconnect'](),_0xb3d12e(_0x346342[0x0]['addedNodes'][0x0]));});_0x486081['observe'](_0x59b51f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1284f7){_0x1284f7['addEventListener']('apply',_0xa1f0ec=>{this['fire']('apply',{'imageSrc':_0xa1f0ec['detail']['cdnUrl']});}),_0x1284f7['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x46efc5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x291468,_0xbfe40d,_0x491ba0){super(),this['_editor']=_0x291468,this['_dialog']=_0xbfe40d,this['_imageElement']=_0x491ba0,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 _0xadd773=this['_imageElement'],_0x5db9e0=_0xadd773['getAttribute']('uploadcareImageId'),_0xa437f6=_0xadd773['getAttribute']('src');if(_0x5db9e0)await this['_loadImageInfo'](_0x5db9e0,_0xa437f6);else{if(this['_imageCache']['has'](_0xa437f6)){const _0x5d6102=this['_imageCache']['get'](_0xa437f6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d6102['url'],this['imageDimension']=_0x5d6102['dimension'],this['imageId']=_0x5d6102['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x159500}=this['_editor'],t=_0x159500['t'],_0x461b84=new X(_0x159500,this['imageStatus'],this['_attributes']);_0x461b84['bind']('status')['to'](this,'imageStatus'),_0x461b84['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x461b84['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x461b84['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x461b84,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x166e76,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x461b84,'position':_0x54da96['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x461b84['focus']();},'onHide':()=>{_0x461b84['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x56c518=>!M(_0x56c518,_0x461b84['element'])}});}['_loadImageInfo'](_0x51e7e7,_0x4d2298){return j['getInfo'](_0x51e7e7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4484ac=>{const {width:_0x18f13a,height:_0x1ba01b}=_0x4484ac['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d2298,this['imageDimension']={'width':_0x18f13a,'height':_0x1ba01b},this['imageId']=_0x51e7e7;})['catch'](_0x1143c6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1143c6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x258cde,_0x1336cf){return this['_getImageAsFile'](_0x258cde)['then'](_0x3980bb=>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':_0x1336cf['signal'],'file':_0x3980bb,'onProgress':_0x21caec=>{_0x21caec&&_0x21caec['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x21caec['value']));}}))['then'](_0x5985c4=>{const {width:_0x2cd10f,height:_0x139ab3}=_0x5985c4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5985c4['cdnUrl'],this['imageDimension']={'width':_0x2cd10f,'height':_0x139ab3},this['imageId']=_0x5985c4['uuid'],this['imageUploadProgress']=null;const _0x10b404=_0x258cde['getAttribute']('src');this['_imageCache']['set'](_0x10b404,{'id':_0x5985c4['uuid'],'url':_0x5985c4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1bffae=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1bffae['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x341e2f,_0x34d964){_0x341e2f['on']('apply',(_0x36c525,_0x21241a)=>{this['_replaceImage'](_0x34d964,_0x21241a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x341e2f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x341e2f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4ea477,_0x43afea,_0x3f97fc){const _0x5601c2=this['_editor'],{width:_0x257ed7,height:_0xdf9b5b}=F(_0x43afea,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x888c91,imageSources:_0x4bc266}=C(_0x43afea,_0x257ed7);_0x5601c2['model']['change'](_0x261540=>{if('$graveyard'===_0x4ea477['root']['rootName']){_0x5601c2['execute']('insertImage',{'imageType':_0x4ea477['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4ea477['getAttributes']()),'uploadcareImageId':_0x3f97fc,'src':_0x888c91,'sources':_0x4bc266,'width':_0x257ed7,'height':_0xdf9b5b}});const _0x312a05=_0x4ea477['getChildren']();_0x4ea477=_0x5601c2['model']['document']['selection']['getSelectedElement']();for(const _0x3ed745 of _0x312a05)_0x261540['append'](_0x261540['cloneElement'](_0x3ed745),_0x4ea477);}else _0x261540['setSelection'](_0x4ea477,'on'),_0x5601c2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4ea477['getAttributes']()),'uploadcareImageId':_0x3f97fc,'src':_0x888c91,'sources':_0x4bc266,'width':_0x257ed7,'height':_0xdf9b5b},_0x4ea477);_0x261540['setSelection'](_0x4ea477,'on');});}async['_getImageAsFile'](_0x257b47){const _0x576dc9=_0x5d7562['window'],_0xe1ebde=_0x5d7562['document']['location']['href'],_0x273887=new _0x576dc9['URL'](_0x257b47['getAttribute']('src'),_0xe1ebde);if('data:'===_0x273887['protocol']){const _0xbc7309=_0x273887['href']['split'](','),_0x13b1d4=_0xbc7309[0x0]['match'](/:(.*?);/)[0x1],_0x20d45b=_0x13b1d4['split']('/')[0x1],_0x9f9d0c=_0x576dc9['atob'](_0xbc7309[_0xbc7309['length']-0x1]);let _0x3290ec=_0x9f9d0c['length'];const _0x1b577e=new _0x576dc9['Uint8Array'](_0x3290ec);for(;_0x3290ec--;)_0x1b577e[_0x3290ec]=_0x9f9d0c['charCodeAt'](_0x3290ec);return new _0x576dc9['File']([_0x1b577e],'image.'+_0x20d45b,{'type':_0x13b1d4});}const _0x397a5e=_0x273887['href']['split']('/'),_0x5d27a2=_0x397a5e[_0x397a5e['length']-0x1],_0x44bf57=_0x5d27a2['split']('.')[0x1];return _0x576dc9['fetch'](_0x273887['href'])['then'](_0x8406b7=>_0x8406b7['clone']()['blob']())['then'](_0x27bb67=>new _0x576dc9['File']([_0x27bb67],_0x5d27a2,{'type':'image/'+_0x44bf57}));}}class N extends _0x130986{['imageEditController'];static get['requires'](){return[_0x166b41];}['_isEditable'];constructor(_0x4010de){super(_0x4010de),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x34c5e9){const _0x52c9d7=R(_0x34c5e9);return _0x147a18=>!(!_0x147a18||!_0x147a18['is']('element','imageBlock')&&!_0x147a18['is']('element','imageInline'))&&(!!_0x147a18['hasAttribute']('uploadcareImageId')||!!_0x147a18['hasAttribute']('src')&&_0x52c9d7(_0x147a18['getAttribute']('src')));}(_0x4010de['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x9cc1a0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x9cc1a0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2752f5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2752f5&&(_0x2752f5['is']('element','imageBlock')||_0x2752f5['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x166b41),_0x2752f5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x130986{['refresh'](){const _0x2efd9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2efd9&&(_0x2efd9['is']('element','imageBlock')||_0x2efd9['is']('element','imageInline')));}['execute'](_0x5b6f9e){const _0x3cd409=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x472350=>{_0x472350['setAttributes'](_0x5b6f9e,_0x3cd409),_0x472350['removeAttribute']('srcset',_0x3cd409),_0x472350['removeAttribute']('sizes',_0x3cd409);});}}class m extends _0x591147{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5c25f5,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3d93de}=this;_0x3d93de['commands']['add']('uploadcareImageEdit',new N(_0x3d93de)),_0x3d93de['commands']['add']('uploadcareImageReplace',new O(_0x3d93de));}}class g extends _0x591147{['_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 _0x168cbb=this['editor'];_0x168cbb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x542c36=>{const _0x28e5d6=_0x168cbb['commands']['get']('uploadcareImageEdit'),_0x359092=new _0x2ad41a(_0x542c36),t=_0x542c36['t'];return _0x359092['set']({'icon':_0x166e76,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x359092['bind']('isEnabled')['to'](_0x28e5d6),_0x359092['bind']('isOn')['to'](_0x28e5d6,'isActive'),this['listenTo'](_0x359092,'execute',()=>{_0x168cbb['execute']('uploadcareImageEdit'),_0x168cbb['editing']['view']['focus']();}),_0x359092;}),this['_initConfig']();}['_initConfig'](){const _0x2bc8c5=_0x426134(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2bc8c5),this['listenTo'](this['editor'],'destroy',()=>{_0x2bc8c5['remove']();});}}class et extends _0x591147{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
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':_0x4775b4=>0x1!=_0x4775b4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x21d4cd=>{const {af:{dictionary:_0x123ac7,getPluralForm:_0x2787da}}={'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':_0x54151e=>0x1!=_0x54151e}};_0x21d4cd['af']||={'dictionary':{},'getPluralForm':null},_0x21d4cd['af']['dictionary']=Object['assign'](_0x21d4cd['af']['dictionary'],_0x123ac7),_0x21d4cd['af']['getPluralForm']=_0x2787da;})(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':_0xec2c12=>0x0==_0xec2c12?0x0:0x1==_0xec2c12?0x1:0x2==_0xec2c12?0x2:_0xec2c12%0x64>=0x3&&_0xec2c12%0x64<=0xa?0x3:_0xec2c12%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x22a0bb=>{const {ar:{dictionary:_0x3bfec3,getPluralForm:_0x13919b}}={'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':_0x1733be=>0x0==_0x1733be?0x0:0x1==_0x1733be?0x1:0x2==_0x1733be?0x2:_0x1733be%0x64>=0x3&&_0x1733be%0x64<=0xa?0x3:_0x1733be%0x64>=0xb?0x4:0x5}};_0x22a0bb['ar']||={'dictionary':{},'getPluralForm':null},_0x22a0bb['ar']['dictionary']=Object['assign'](_0x22a0bb['ar']['dictionary'],_0x3bfec3),_0x22a0bb['ar']['getPluralForm']=_0x13919b;})(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':_0x12e7a3=>0x1!=_0x12e7a3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x39c445=>{const {ast:{dictionary:_0x249138,getPluralForm:_0x1e667a}}={'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':_0x59761d=>0x1!=_0x59761d}};_0x39c445['ast']||={'dictionary':{},'getPluralForm':null},_0x39c445['ast']['dictionary']=Object['assign'](_0x39c445['ast']['dictionary'],_0x249138),_0x39c445['ast']['getPluralForm']=_0x1e667a;})(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':_0x47c1af=>0x1!=_0x47c1af}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x450f5d=>{const {az:{dictionary:_0x52ce82,getPluralForm:_0x542c0e}}={'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':_0x49a4d=>0x1!=_0x49a4d}};_0x450f5d['az']||={'dictionary':{},'getPluralForm':null},_0x450f5d['az']['dictionary']=Object['assign'](_0x450f5d['az']['dictionary'],_0x52ce82),_0x450f5d['az']['getPluralForm']=_0x542c0e;})(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':_0x36c3db=>_0x36c3db%0xa==0x1&&_0x36c3db%0x64!=0xb?0x0:_0x36c3db%0xa>=0x2&&_0x36c3db%0xa<=0x4&&(_0x36c3db%0x64<0xa||_0x36c3db%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x30053d=>{const {be:{dictionary:_0x387534,getPluralForm:_0x5a6c25}}={'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':_0x50b044=>_0x50b044%0xa==0x1&&_0x50b044%0x64!=0xb?0x0:_0x50b044%0xa>=0x2&&_0x50b044%0xa<=0x4&&(_0x50b044%0x64<0xa||_0x50b044%0x64>=0x14)?0x1:0x2}};_0x30053d['be']||={'dictionary':{},'getPluralForm':null},_0x30053d['be']['dictionary']=Object['assign'](_0x30053d['be']['dictionary'],_0x387534),_0x30053d['be']['getPluralForm']=_0x5a6c25;})(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':_0x203e74=>0x1!=_0x203e74}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xc7abb7=>{const {bg:{dictionary:_0x5caf72,getPluralForm:_0x24776f}}={'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':_0x595dab=>0x1!=_0x595dab}};_0xc7abb7['bg']||={'dictionary':{},'getPluralForm':null},_0xc7abb7['bg']['dictionary']=Object['assign'](_0xc7abb7['bg']['dictionary'],_0x5caf72),_0xc7abb7['bg']['getPluralForm']=_0x24776f;})(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':_0x3c68ee=>0x1!=_0x3c68ee}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3c6a51=>{const {bn:{dictionary:_0x5e561b,getPluralForm:_0x307480}}={'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':_0x540ff0=>0x1!=_0x540ff0}};_0x3c6a51['bn']||={'dictionary':{},'getPluralForm':null},_0x3c6a51['bn']['dictionary']=Object['assign'](_0x3c6a51['bn']['dictionary'],_0x5e561b),_0x3c6a51['bn']['getPluralForm']=_0x307480;})(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':_0x52fe63=>_0x52fe63%0xa==0x1&&_0x52fe63%0x64!=0xb?0x0:_0x52fe63%0xa>=0x2&&_0x52fe63%0xa<=0x4&&(_0x52fe63%0x64<0xa||_0x52fe63%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x28ca12=>{const {bs:{dictionary:_0x1630a8,getPluralForm:_0x2865eb}}={'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':_0xd7d4a6=>_0xd7d4a6%0xa==0x1&&_0xd7d4a6%0x64!=0xb?0x0:_0xd7d4a6%0xa>=0x2&&_0xd7d4a6%0xa<=0x4&&(_0xd7d4a6%0x64<0xa||_0xd7d4a6%0x64>=0x14)?0x1:0x2}};_0x28ca12['bs']||={'dictionary':{},'getPluralForm':null},_0x28ca12['bs']['dictionary']=Object['assign'](_0x28ca12['bs']['dictionary'],_0x1630a8),_0x28ca12['bs']['getPluralForm']=_0x2865eb;})(window['CKEDITOR_TRANSLATIONS']||={});
|