@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251024.0 → 0.0.0-nightly-20251025.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.d.ts +1 -1
- 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.d.ts +54 -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 _0x23c6bd,Command as _0x5b7d58}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3e235f,IconGooglePhotos as _0xbd1acc,IconGoogleDrive as _0x15369f,IconFacebook as _0x1debb0,IconDropbox as _0x37f806,IconUploadcareLink as _0x2234e5,IconUploadcareImageUpload as _0x486b01,IconError as _0x5be35b,IconUploadcareImageEdit as _0x861744}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4fc422,MenuBarMenuListItemButtonView as _0x450170,View as _0x2a84ca,FocusCycler as _0x50ab80,Dialog as _0x1ce961,DialogViewPosition as _0x188eae,SpinnerView as _0x5efd71,IconView as _0x81a55f,Notification as _0xa9c4f2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x498422,DomEmitterMixin as _0xc7a66,global as _0xd8b1b9,getAncestors as _0xee87b3,ObservableMixin as _0x161fc5,uid as _0x132d62,createElement as _0x28166f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x50df8d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x12b49d,info as _0x4d5a01}from'@uploadcare/upload-client';import*as _0x4960a6 from'@uploadcare/file-uploader';var i=function(_0x3ae7a5){return _0x3ae7a5['Local']='local',_0x3ae7a5['URL']='url',_0x3ae7a5['Dropbox']='dropbox',_0x3ae7a5['GDrive']='gdrive',_0x3ae7a5['Facebook']='facebook',_0x3ae7a5['GPhotos']='gphotos',_0x3ae7a5['OneDrive']='onedrive',_0x3ae7a5;}({});function _(_0x1c2961,_0xd6141c,_0x4b6547){const t=_0x1c2961['t'],_0x2fe15e=_0x1c2961['t'];switch(_0xd6141c){case i['Local']:return{'text':_0x2fe15e('Insert'===_0x4b6547?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2fe15e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4b6547?_0x2fe15e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2fe15e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4b6547?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4b6547?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4b6547?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4b6547?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4b6547?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xd6141c;}}class e extends _0x23c6bd{['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 _0x4a45c8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53cfc9;for(const _0x5d90fb in _0x4a45c8){const _0x3349cd=_0x5d90fb,_0x559be8=_0x4a45c8[_0x3349cd];if('uploadcareLicenseKeyValid'==_0x559be8||'uploadcareLicenseKeyInvalid'==_0x559be8||'uploadcareLicenseKeyExpired'==_0x559be8||'uploadcareLicenseKeyDomainLimit'==_0x559be8||'uploadcareLicenseKeyNotAllowed'==_0x559be8||'uploadcareLicenseKeyEvaluationLimit'==_0x559be8||'uploadcareLicenseKeyTrialLimit'==_0x559be8||'uploadcareLicenseKeyUsageLimit'==_0x559be8){delete _0x4a45c8[_0x3349cd],_0x53cfc9=_0x559be8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x53cfc9&&_0x4a45c8['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x53cfc9&&_0x4a45c8['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x53cfc9&&_0x4a45c8['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x53cfc9&&_0x4a45c8['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x53cfc9&&_0x4a45c8['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x53cfc9&&_0x4a45c8['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x53cfc9&&_0x4a45c8['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2ad057}=this,_0x404033=_0x2ad057['commands']['get']('uploadcare');if(!_0x404033)return;const _0x5bb3ff=this['_normalizeConfigSourceList'](_0x2ad057['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3954d7,_0x25bc8d)=>{const _0x3f58fc=this['_getIntegrationKey'](_0x25bc8d['type']);return _0x3954d7[_0x3f58fc]||(_0x3954d7[_0x3f58fc]=[]),_0x3954d7[_0x3f58fc]['push'](_0x25bc8d),_0x3954d7;},{});_0x2ad057['plugins']['has']('ImageInsertUI')&&_0x2ad057['commands']['get']('uploadcare')&&Object['entries'](_0x5bb3ff)['forEach'](([_0x179498,_0x1c469f])=>{_0x2ad057['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x179498,'observable':()=>_0x404033,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1c469f),'formViewCreator':()=>this['_createDropdownButtons'](_0x1c469f),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1c469f),'override':'assetManager'!==_0x179498});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5c2ce7){const {locale:_0x5c5ba3}=this['editor'];return _0x5c2ce7['map'](_0x37f172=>{const _0x4b180d=_(_0x5c5ba3,_0x37f172,'Insert');switch(_0x37f172){case i['Local']:return{'icon':_0x486b01,'type':i['Local'],..._0x4b180d};case i['URL']:return{'icon':_0x2234e5,'type':i['URL'],..._0x4b180d};case i['Dropbox']:return{'icon':_0x37f806,'type':i['Dropbox'],..._0x4b180d};case i['Facebook']:return{'icon':_0x1debb0,'type':i['Facebook'],..._0x4b180d};case i['GDrive']:return{'icon':_0x15369f,'type':i['GDrive'],..._0x4b180d};case i['GPhotos']:return{'icon':_0xbd1acc,'type':i['GPhotos'],..._0x4b180d};case i['OneDrive']:return{'icon':_0x3e235f,'type':i['OneDrive'],..._0x4b180d};}});}['_getIntegrationKey'](_0x280b7b){switch(_0x280b7b){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x6fbb2d,_0x276ee5){const _0x3330e1=this['editor'],_0x3a9ef6=new _0x6fbb2d(_0x3330e1['locale']),_0x23c1cf=_0x3330e1['commands']['get']('uploadcare');return _0x3a9ef6['bind']('isEnabled')['to'](_0x23c1cf),_0x3a9ef6['on']('execute',()=>{_0x23c1cf['execute'](_0x276ee5);}),_0x3a9ef6;}['_createToolbarButton'](_0x200ce1){const {locale:_0xee52c5}=this['editor'],_0x44b3dd=this['editor']['plugins']['get']('ImageInsertUI'),_0x4bc689=_0x200ce1[0x0],_0x902710=this['_createButton'](_0x4fc422,_0x4bc689['type']);return _0x902710['icon']=_0x4bc689['icon'],_0x902710['bind']('label')['to'](_0x44b3dd,'isImageSelected',_0x656130=>_(_0xee52c5,_0x4bc689['type'],_0x656130?'Replace':'Insert')['text']),_0x902710['tooltip']=!0x0,_0x902710;}['_createDropdownButtons'](_0x4391b5){const {locale:_0x3efd18}=this['editor'],_0x24ccd0=this['editor']['plugins']['get']('ImageInsertUI');return _0x4391b5['map'](_0x5700a6=>{const _0x376636=this['_createButton'](_0x4fc422,_0x5700a6['type']);return _0x376636['withText']=!0x0,_0x376636['icon']=_0x5700a6['icon'],_0x376636['bind']('label')['to'](_0x24ccd0,'isImageSelected',_0x4d8c38=>_(_0x3efd18,_0x5700a6['type'],_0x4d8c38?'Replace':'Insert')['text']),_0x376636;});}['_createMenuBarButtons'](_0x41d616){return _0x41d616['map'](_0x1ac616=>{const _0x18c572=this['_createButton'](_0x450170,_0x1ac616['type']);return _0x18c572['icon']=_0x1ac616['icon'],_0x18c572['label']=_0x1ac616['shortText'],_0x18c572;});}}class F extends _0x2a84ca{['focusTracker'];['focusCycler'];constructor(_0x46b28c){super(_0x46b28c),this['focusTracker']=new _0x498422(),this['focusCycler']=new _0x50ab80({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x27264f,_0x365e70){super(_0x27264f),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-'+_0x365e70}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x489155,_0x51822f){const _0x4b2996=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x270038=>_0x270038<=_0x51822f)['map'](_0x96897a=>_0x489155['replace'](/\/$/,'')+'/-/resize/'+_0x96897a+'x/\x20'+_0x96897a+'w');return{'imageFallbackUrl':_0x489155,'imageSources':[{'srcset':_0x4b2996['join'](',\x20'),'sizes':'(max-width:\x20'+_0x51822f+'px)\x20100vw,\x20'+_0x51822f+'px','type':'image/webp'}]};}function S(_0x2d2155,_0x5bbd0d,_0x7ba62d){const _0x324bd8=_0x2d2155['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x324bd8?parseInt(_0x324bd8[0x1],0xa):_0x5bbd0d,'height':_0x324bd8?parseInt(_0x324bd8[0x2],0xa):_0x7ba62d};}function p(_0x937ad5,_0x3ab9a2){const _0x5d3719=new(_0xc7a66())(),_0x238cda=_0x937ad5['plugins']['get']('ImageUtils'),_0x219332=_0x937ad5['editing']['mapper']['toViewElement'](_0x3ab9a2),_0x59518b=_0x238cda['findViewImgElement'](_0x219332),_0x4e3721=_0x937ad5['editing']['view']['domConverter']['viewToDom'](_0x59518b),_0x15d256=_0x3ab9a2['getAttribute']('width'),_0xaafd5d=_0x3ab9a2['getAttribute']('height'),_0xdcceec='image-processing';_0x937ad5['editing']['view']['change'](_0x53b202=>{_0x53b202['addClass'](_0xdcceec,_0x219332),_0x53b202['setStyle']('aspect-ratio',_0x15d256+'/'+_0xaafd5d,_0x59518b);}),_0x5d3719['listenTo'](_0x4e3721,'load',()=>{_0x5d3719['stopListening'](_0x4e3721,'load'),_0x937ad5['editing']['view']['change'](_0x4a0444=>{_0x4a0444['removeClass'](_0xdcceec,_0x219332),_0x4a0444['removeStyle']('aspect-ratio',_0x59518b);});});}function G(_0x1587cd){if(Array['isArray'](_0x1587cd)){const _0x248806=_0x1587cd['map'](G);return _0x10918b=>_0x248806['some'](_0x51f294=>_0x51f294(_0x10918b));}if('origin'==_0x1587cd){const _0x3ab32a=_0xd8b1b9['window']['location']['origin'];return _0x4d86ec=>new URL(_0x4d86ec,_0xd8b1b9['document']['baseURI'])['origin']==_0x3ab32a;}return'function'==typeof _0x1587cd?_0x1587cd:_0x1587cd instanceof RegExp?_0x2c0b23=>!(!_0x2c0b23['match'](_0x1587cd)&&!_0x2c0b23['replace'](/^https?:\/\//,'')['match'](_0x1587cd)):()=>!0x1;}function A(_0x474204,_0x2b2414){return _0xee87b3(_0x474204['target'])['includes'](_0x2b2414);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x161fc5(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x513964,_0x4b0979,_0x33fc51){super(),this['_editor']=_0x513964,this['_editing']=_0x4b0979,this['_dialog']=_0x513964['plugins']['get'](_0x1ce961),this['_api']=_0x4b0979['ctxElement']['getAPI'](),this['_type']=_0x33fc51,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:_0x23dfeb,model:_0x28a00f}=this['_editor'],_0x1ba7dc=_0x28a00f['document']['selection']['getSelectedElement'](),_0x379758=_0x1ba7dc&&(_0x1ba7dc['is']('element','imageBlock')||_0x1ba7dc['is']('element','imageInline'));this['_formView']=new x(_0x23dfeb,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x486b01,'title':_(_0x23dfeb,this['_type'],_0x379758?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x188eae['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x18f1a7=>!A(_0x18f1a7,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2b4149}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x36dcad=>{const _0x113560=_0x2b4149['length'];for(const _0x3f2505 of _0x2b4149){const _0x2859fa=_0x3f2505===_0x2b4149[_0x113560-0x1],{cdnUrl:_0x46059b,fileInfo:_0x52df69}=_0x3f2505;if(!_0x46059b||!_0x52df69)continue;const {width:_0x25eadc,height:_0x5ab89b}=_0x52df69['imageInfo'],_0x53d6b5=S(_0x46059b,_0x25eadc,_0x5ab89b),_0x29e667=C(_0x46059b,_0x53d6b5['width']),_0x369db8={'id':_0x52df69['uuid'],'type':'image','attributes':{'imageDimension':_0x53d6b5,..._0x29e667}};this['_insertAsset'](_0x369db8,_0x2859fa,_0x36dcad);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2d1983=>{'idle'===_0x2d1983['detail']['status']&&!_0x2d1983['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2cbde3,_0x3e3f3a,_0x33ec14){const _0x1cdae2=this['_editor']['model']['document']['selection'],_0x5b607d=_0x1cdae2['getSelectedElement'](),_0x40c8e9=!(!_0x5b607d||!_0x5b607d['is']('element','imageInline'));_0x33ec14['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2cbde3,_0x40c8e9),_0x3e3f3a||_0x33ec14['setSelection'](_0x1cdae2['getLastPosition']());}['_insertImage'](_0xae7759,_0x8ab15c){const _0x405ffc=this['_editor'],{imageDimension:_0x47d380,imageFallbackUrl:_0x13bf2a,imageSources:_0x2e6fe8}=_0xae7759['attributes'];_0x405ffc['execute']('insertImage',{'imageType':_0x8ab15c?'imageInline':null,'source':{'uploadcareImageId':_0xae7759['id'],'src':_0x13bf2a,'sources':_0x2e6fe8,..._0x47d380}});}}class w extends _0x5b7d58{['_editing'];['_controller']=null;static get['requires'](){return[_0x1ce961,o];}constructor(_0x382dc9){super(_0x382dc9),this['_editing']=_0x382dc9['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x348604){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x348604);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x590a6c,..._0x1d3fe1}){return _0x12b49d(_0x590a6c,_0x1d3fe1);}static['getInfo'](_0x3b9a58,_0x17a833){return _0x4d5a01(_0x3b9a58,_0x17a833);}}class f extends _0x23c6bd{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x50df8d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x34c49a=this['editor'];if(!!!_0x34c49a['config']['get']('uploadcare'))return;_0x34c49a['plugins']['get'](_0x50df8d)['createUploadAdapter']=_0x5f382d=>new k(_0x5f382d,_0x34c49a),_0x34c49a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xd5f3d0,{imageElement:_0x398a50,data:_0x3efcd7})=>{_0x34c49a['model']['change'](_0x40280b=>{_0x40280b['setAttribute']('uploadcareImageId',_0x3efcd7['uploadcareImageId'],_0x398a50);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x12d530,_0x30b760){this['loader']=_0x12d530,this['editor']=_0x30b760,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x581f94=await this['loader']['file'];return j['upload']({'file':_0x581f94,'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':_0x50be5f=>{_0x50be5f&&_0x50be5f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x50be5f['value']);}})['then'](async _0x70653c=>{const {imageFallbackUrl:_0x5d34be,imageSources:_0x7f5e6a}=C(_0x70653c['cdnUrl'],_0x70653c['imageInfo']['width']);return{'uploadcareImageId':_0x70653c['uuid'],'default':_0x5d34be,'sources':_0x7f5e6a};})['catch'](()=>{const _0x51897c=t('Cannot\x20upload\x20file:')+('\x20'+_0x581f94['name']+'.');return Promise['reject'](_0x51897c);});}['abort'](){this['controller']['abort']();}}class o extends _0x23c6bd{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1ce961];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x53cb36){super(_0x53cb36),this['ucContextId']=_0x132d62();}['init'](){const _0x5629c1=this['editor'];_0x5629c1['commands']['add']('uploadcare',new w(_0x5629c1));}['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 _0x54c91d=_0xd8b1b9['document']['querySelector']('input[uploadcare-file-input]');_0x54c91d&&_0x54c91d['remove']();}),async function(_0x3b7780){const _0x19220c=_0x67a106([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]),_0x715faf=0x535f8c3a,_0x5c7b0e=0x5358fb22^_0x715faf,_0x5f4fb8=window[_0x67a106([0x44,0x61,0x74,0x65])][_0x67a106([0x6e,0x6f,0x77])](),_0x457dc9=_0x3b7780[_0x67a106([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd256ad=new window[(_0x67a106([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13aab0=>{_0x457dc9[_0x67a106([0x6f,0x6e,0x63,0x65])](_0x67a106([0x72,0x65,0x61,0x64,0x79]),_0x13aab0);}),_0x26df83={[_0x67a106([0x6b,0x74,0x79])]:_0x67a106([0x45,0x43]),[_0x67a106([0x75,0x73,0x65])]:_0x67a106([0x73,0x69,0x67]),[_0x67a106([0x63,0x72,0x76])]:_0x67a106([0x50,0x2d,0x32,0x35,0x36]),[_0x67a106([0x78])]:_0x67a106([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]),[_0x67a106([0x79])]:_0x67a106([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]),[_0x67a106([0x61,0x6c,0x67])]:_0x67a106([0x45,0x53,0x32,0x35,0x36])},_0x4036e6=_0x457dc9[_0x67a106([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x67a106([0x67,0x65,0x74])](_0x67a106([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e807a(){let _0x651ec,_0x4eb200=null,_0x1fcfb1=null;try{if(_0x4036e6==_0x67a106([0x47,0x50,0x4c]))return _0x67a106([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x651ec=_0x13ce23(),!_0x651ec)return _0x67a106([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x651ec[_0x67a106([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1fcfb1=_0x2e848a(_0x651ec[_0x67a106([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x651ec[_0x67a106([0x6a,0x74,0x69])])),await _0x582987()?_0x329cd8()?_0x3ca55f()?_0x67a106([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45341e()?(_0x651ec[_0x67a106([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x67a106([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4eb200=_0x902a3a(_0x67a106([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x651ec[_0x67a106([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x67a106([0x74,0x72,0x69,0x61,0x6c])&&(_0x4eb200=_0x902a3a(_0x67a106([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x41663e()):_0x67a106([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x67a106([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x67a106([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x67a106([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ca55f(){const _0x405984=[_0x67a106([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x67a106([0x74,0x72,0x69,0x61,0x6c])][_0x67a106([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x651ec[_0x67a106([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f4fb8/0x3e8:0xe10*_0x5c7b0e;return _0x651ec[_0x67a106([0x65,0x78,0x70])]<_0x405984;}function _0x329cd8(){const _0x341ce4=_0x651ec[_0x67a106([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x341ce4&&(!!_0x341ce4[_0x67a106([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x67a106([0x2a]))||!!_0x341ce4[_0x67a106([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x67a106([0x55,0x50,0x4c,0x43])));}function _0x45341e(){const _0x480cc2=_0x651ec[_0x67a106([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x480cc2||0x0==_0x480cc2[_0x67a106([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x251298}=new URL(window[_0x67a106([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x480cc2[_0x67a106([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x251298))return!0x0;const _0x24da96=_0x251298[_0x67a106([0x73,0x70,0x6c,0x69,0x74])](_0x67a106([0x2e]));return _0x480cc2[_0x67a106([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc3c5d7=>_0xc3c5d7[_0x67a106([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x67a106([0x2a])))[_0x67a106([0x6d,0x61,0x70])](_0x43456d=>_0x43456d[_0x67a106([0x73,0x70,0x6c,0x69,0x74])](_0x67a106([0x2e])))[_0x67a106([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4094de=>_0x4094de[_0x67a106([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x24da96[_0x67a106([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x67a106([0x6d,0x61,0x70])](_0x40da91=>Array(_0x24da96[_0x67a106([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x40da91[_0x67a106([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x67a106([0x66,0x69,0x6c,0x6c])](_0x40da91[0x0]===_0x67a106([0x2a])?_0x67a106([0x2a]):'')[_0x67a106([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x40da91))[_0x67a106([0x73,0x6f,0x6d,0x65])](_0x1303cd=>_0x24da96[_0x67a106([0x65,0x76,0x65,0x72,0x79])]((_0x3aca12,_0x1a561d)=>_0x1303cd[_0x1a561d]===_0x3aca12||_0x1303cd[_0x1a561d]===_0x67a106([0x2a])));}function _0x41663e(){return _0x4eb200&&_0x1fcfb1?new window[(_0x67a106([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x480089,_0x4aa650)=>{_0x4eb200[_0x67a106([0x74,0x68,0x65,0x6e])](_0x480089,_0x4aa650),_0x1fcfb1[_0x67a106([0x74,0x68,0x65,0x6e])](_0x527b1b=>{_0x527b1b!=_0x67a106([0x56,0x61,0x6c,0x69,0x64])&&_0x480089(_0x527b1b);},_0x4aa650);}):_0x4eb200||_0x1fcfb1||_0x67a106([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e848a(_0x582380,_0x4887ce){return new window[(_0x67a106([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x549bac=>{if(_0x457755())return _0x549bac(_0x67a106([0x56,0x61,0x6c,0x69,0x64]));_0x2cc48b(),_0x457dc9[_0x67a106([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x67a106([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c3ec7=!0x1;const _0x52496c=_0x132d62();function _0x5d5850(_0x2c5d75){return!!_0x2c5d75&&(typeof _0x2c5d75===_0x67a106([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2c5d75===_0x67a106([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2c5d75[_0x67a106([0x74,0x68,0x65,0x6e])]===_0x67a106([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2c5d75[_0x67a106([0x63,0x61,0x74,0x63,0x68])]===_0x67a106([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f9129(_0x4b5f13){_0x22e677(_0x4b5f13)[_0x67a106([0x74,0x68,0x65,0x6e])](_0x3b2c55=>{if(!_0x3b2c55||_0x3b2c55[_0x67a106([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x67a106([0x6f,0x6b]))return _0x67a106([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x166e07(_0x9372b2(_0x52496c+_0x4887ce))!=_0x3b2c55[_0x67a106([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x67a106([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x67a106([0x56,0x61,0x6c,0x69,0x64]);})[_0x67a106([0x74,0x68,0x65,0x6e])](_0x44170f=>(_0x16c83f(),_0x44170f),()=>{const _0x398344=_0x2b65e9();return null==_0x398344?(_0x16c83f(),_0x67a106([0x56,0x61,0x6c,0x69,0x64])):_0x67a106(_0x5f4fb8-_0x398344>(0x7753083a^_0x715faf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x67a106([0x74,0x68,0x65,0x6e])](_0x549bac)[_0x67a106([0x63,0x61,0x74,0x63,0x68])](()=>{_0x549bac(_0x67a106([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4974ab=0x536962ba^_0x715faf;function _0x16c83f(){const _0x5780e8=_0x67a106([0x6c,0x6c,0x63,0x74,0x2d])+_0x166e07(_0x9372b2(_0x582380)),_0x46df88=_0x277b64(_0x166e07(window[_0x67a106([0x4d,0x61,0x74,0x68])][_0x67a106([0x63,0x65,0x69,0x6c])](_0x5f4fb8/_0x4974ab)));window[_0x67a106([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x67a106([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5780e8,_0x46df88);}function _0x2b65e9(){const _0x5e7c8a=_0x67a106([0x6c,0x6c,0x63,0x74,0x2d])+_0x166e07(_0x9372b2(_0x582380)),_0x2ecdf0=window[_0x67a106([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x67a106([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e7c8a);return _0x2ecdf0?window[_0x67a106([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x277b64(_0x2ecdf0),0x10)*_0x4974ab:null;}function _0x22e677(_0x3b9860){return new window[(_0x67a106([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa78134,_0x506949)=>{_0x3b9860[_0x67a106([0x74,0x68,0x65,0x6e])](_0xa78134,_0x506949),window[_0x67a106([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x506949,0x535e58fa^_0x715faf);});}}_0x457dc9[_0x67a106([0x6f,0x6e])](_0x67a106([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f399d,_0xe871ba)=>{if(_0xe871ba[0x0]!=_0x582380)return _0x549bac(_0x67a106([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe871ba[0x1]={..._0xe871ba[0x1],[_0x67a106([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x52496c};},{[_0x67a106([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x67a106([0x68,0x69,0x67,0x68])}),_0x457dc9[_0x67a106([0x6f,0x6e])](_0x67a106([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55c0e0=>{_0x5d5850(_0x55c0e0[_0x67a106([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c3ec7=!0x0,_0x1f9129(_0x55c0e0[_0x67a106([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x67a106([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x67a106([0x6c,0x6f,0x77])}),_0xd256ad[_0x67a106([0x74,0x68,0x65,0x6e])](()=>{_0x2c3ec7||_0x549bac(_0x67a106([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x457755(){return _0x457dc9[_0x67a106([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x67a106([0x76,0x69,0x65,0x77])][_0x67a106([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x67a106([0x61,0x75,0x74,0x6f]);}function _0x2cc48b(){_0x457dc9[_0x67a106([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x67a106([0x76,0x69,0x65,0x77])][_0x67a106([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x67a106([0x61,0x75,0x74,0x6f]);}}function _0x902a3a(_0x4f0ede){const _0x202026=[new window[(_0x67a106([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ea882=>setTimeout(_0x5ea882,0x5356b2f6^_0x715faf)),_0xd256ad[_0x67a106([0x74,0x68,0x65,0x6e])](()=>new window[(_0x67a106([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c41ef=>{let _0x22aefc=0x0;_0x457dc9[_0x67a106([0x6d,0x6f,0x64,0x65,0x6c])][_0x67a106([0x6f,0x6e])](_0x67a106([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5f54ea,_0x2f9a33)=>{_0x2f9a33[0x0][_0x67a106([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x22aefc++,_0x22aefc==(0x535f8dc2^_0x715faf)&&(_0x2c41ef(),_0x5f54ea[_0x67a106([0x6f,0x66,0x66])]());});}))];return window[_0x67a106([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x67a106([0x72,0x61,0x63,0x65])](_0x202026)[_0x67a106([0x74,0x68,0x65,0x6e])](()=>_0x4f0ede);}async function _0x5f1809(){await _0xd256ad,_0x457dc9[_0x67a106([0x6d,0x6f,0x64,0x65,0x6c])][_0x67a106([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x101579,_0x457dc9[_0x67a106([0x6d,0x6f,0x64,0x65,0x6c])][_0x67a106([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x101579,_0x457dc9[_0x67a106([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x67a106([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x37c0a6(_0x567dde){const _0x34774d=_0x33514d();_0x457dc9[_0x34774d]=_0x67a106([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x567dde,_0x567dde!=_0x67a106([0x56,0x61,0x6c,0x69,0x64])&&_0x5f1809();}function _0x33514d(){const _0x1ee2db=window[_0x67a106([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x67a106([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x67a106([0x6e,0x6f,0x77])]())[_0x67a106([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x67a106([0x2e]),'');let _0x14cba3=_0x67a106([0x68]);for(let _0x3b7c79=0x0;_0x3b7c79<_0x1ee2db[_0x67a106([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b7c79+=0x2){let _0x40769c=window[_0x67a106([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ee2db[_0x67a106([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b7c79,_0x3b7c79+0x2));_0x40769c>=_0x19220c[_0x67a106([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40769c-=_0x19220c[_0x67a106([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14cba3+=_0x19220c[_0x40769c];}return _0x14cba3;}function _0x13ce23(){const _0x6586ff=_0x4036e6[_0x67a106([0x73,0x70,0x6c,0x69,0x74])](_0x67a106([0x2e]));if(0x3!=_0x6586ff[_0x67a106([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f6c90(_0x6586ff[0x1]);function _0x3f6c90(_0x2a2ae5){const _0x394f68=_0x3f500a(_0x2a2ae5);return _0x394f68&&_0x1cc1f4()?_0x394f68:null;function _0x1cc1f4(){const _0x5e391a=_0x394f68[_0x67a106([0x6a,0x74,0x69])],_0x4e54e4=window[_0x67a106([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e391a[_0x67a106([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e391a[_0x67a106([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48a351={..._0x394f68,[_0x67a106([0x6a,0x74,0x69])]:_0x5e391a[_0x67a106([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e391a[_0x67a106([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48a351[_0x67a106([0x76,0x63])],_0x9372b2(_0x48a351)==_0x4e54e4;}}}async function _0x582987(){let _0x5c252c=!0x0;try{const _0x1b5b7e=_0x4036e6[_0x67a106([0x73,0x70,0x6c,0x69,0x74])](_0x67a106([0x2e])),[_0x47ba47,_0x521ea5,_0x36e585]=_0x1b5b7e;return _0x5699f8(_0x47ba47),await _0x27ce58(_0x47ba47,_0x521ea5,_0x36e585),_0x5c252c;}catch{return!0x1;}function _0x5699f8(_0x4462d7){const _0x15372f=_0x3f500a(_0x4462d7);_0x15372f&&_0x15372f[_0x67a106([0x61,0x6c,0x67])]==_0x67a106([0x45,0x53,0x32,0x35,0x36])||(_0x5c252c=!0x1);}async function _0x27ce58(_0x99f227,_0x4b73de,_0x40d310){const _0xa39b81=window[_0x67a106([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x67a106([0x66,0x72,0x6f,0x6d])](_0x5c6fef(_0x40d310),_0x2a7491=>_0x2a7491[_0x67a106([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c5c0d=new window[(_0x67a106([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x67a106([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x99f227+_0x67a106([0x2e])+_0x4b73de),_0x192fc6=window[_0x67a106([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x67a106([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x192fc6)return;const _0x48e300=await _0x192fc6[_0x67a106([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x67a106([0x6a,0x77,0x6b]),_0x26df83,{[_0x67a106([0x6e,0x61,0x6d,0x65])]:_0x67a106([0x45,0x43,0x44,0x53,0x41]),[_0x67a106([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x67a106([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x67a106([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x192fc6[_0x67a106([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x67a106([0x6e,0x61,0x6d,0x65])]:_0x67a106([0x45,0x43,0x44,0x53,0x41]),[_0x67a106([0x68,0x61,0x73,0x68])]:{[_0x67a106([0x6e,0x61,0x6d,0x65])]:_0x67a106([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48e300,_0xa39b81,_0x5c5c0d)||(_0x5c252c=!0x1);}}function _0x3f500a(_0x485c3a){return _0x485c3a[_0x67a106([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x67a106([0x65,0x79]))?JSON[_0x67a106([0x70,0x61,0x72,0x73,0x65])](_0x5c6fef(_0x485c3a)):null;}function _0x5c6fef(_0x47c2c5){return window[_0x67a106([0x61,0x74,0x6f,0x62])](_0x47c2c5[_0x67a106([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x67a106([0x2b]))[_0x67a106([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x67a106([0x2f])));}function _0x9372b2(_0x1caa68){let _0x3d1070=0x1505;function _0x4f414b(_0x44dc13){for(let _0x14a3fd=0x0;_0x14a3fd<_0x44dc13[_0x67a106([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14a3fd++){const _0x667979=_0x44dc13[_0x67a106([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14a3fd);_0x3d1070=(_0x3d1070<<0x5)+_0x3d1070+_0x667979,_0x3d1070&=_0x3d1070;}}function _0xd02965(_0x397a7d){Array[_0x67a106([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x397a7d)?_0x397a7d[_0x67a106([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd02965):_0x397a7d&&typeof _0x397a7d==_0x67a106([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x67a106([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x397a7d)[_0x67a106([0x73,0x6f,0x72,0x74])]()[_0x67a106([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c70c1,_0x5d9742])=>{_0x4f414b(_0x4c70c1),_0xd02965(_0x5d9742);}):_0x4f414b(window[_0x67a106([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x397a7d));}return _0xd02965(_0x1caa68),_0x3d1070>>>0x0;}function _0x166e07(_0x24ea74){return _0x24ea74[_0x67a106([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x67a106([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x67a106([0x30]));}function _0x277b64(_0xb2964b){return _0xb2964b[_0x67a106([0x73,0x70,0x6c,0x69,0x74])]('')[_0x67a106([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x67a106([0x6a,0x6f,0x69,0x6e])]('');}function _0x101579(){}function _0x67a106(_0x708d99){return _0x708d99['map'](_0x49054e=>String['fromCharCode'](_0x49054e))['join']('');}_0x37c0a6(await _0x4e807a());}(this);}['_initSchema'](){const _0x305f39=this['editor']['model']['schema'];_0x305f39['isRegistered']('imageBlock')&&_0x305f39['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x305f39['isRegistered']('imageInline')&&_0x305f39['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x19dce4=this['editor'];_0x19dce4['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x19dce4['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x23a0dd=>_0x23a0dd['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x9afa06=_0x19dce4['commands']['get']('replaceImageSource');_0x9afa06&&this['listenTo'](_0x9afa06,'cleanupImage',(_0x4e826e,[_0x20f9f1,_0x177823])=>{_0x20f9f1['removeAttribute']('uploadcareImageId',_0x177823);});}['_initConfig'](){const _0x5132ee=this['editor']['config']['get']('uploadcare.uploader')||{},_0x11922a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x28166f(_0xd8b1b9['document'],'uc-config',{..._0x5132ee,'pubkey':_0x11922a,'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']=_0x5ecd80=>{if('closeMax'==_0x5ecd80)return'#uc-icon-arrow-down';},_0xd8b1b9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x28166f(_0xd8b1b9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xd8b1b9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x96dd3e=this['editor']['commands']['get']('insertImage');_0x96dd3e&&this['listenTo'](_0x96dd3e,'execute',()=>{const _0x45cd0b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x45cd0b&&_0x45cd0b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x45cd0b);});});const _0x4f7ac2=this['editor']['commands']['get']('uploadcareImageReplace');_0x4f7ac2&&this['listenTo'](_0x4f7ac2,'execute',()=>{const _0x13620e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x13620e&&_0x13620e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x13620e);});});}}class tt extends _0x23c6bd{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19b32e){super(_0x19b32e),_0x19b32e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4960a6['defineComponents'](_0x4960a6);}}class ii extends _0x2a84ca{constructor(_0x3294c0){super(_0x3294c0);const t=_0x3294c0['t'],_0xbba753=this['bindTemplate'],_0xa0de2f=new _0x5efd71();_0xa0de2f['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':[_0xa0de2f,{'text':_0xbba753['to']('imageUploadProgress',_0x33211f=>t('Loading\x20image...')+'\x20('+(_0x33211f||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 _0x2a84ca{constructor(_0x27f673){super(_0x27f673);const t=_0x27f673['t'];this['set']('errorType',null);const _0x4deab9=new _0x4fc422(_0x27f673);_0x4deab9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4deab9['withText']=!0x0,_0x4deab9['class']='ck-button-action',_0x4deab9['on']('execute',()=>{this['fire']('retry');}),_0x4deab9['bind']('isVisible')['to'](this,'errorType',_0x148ff0=>'NotFound'!==_0x148ff0);const _0x2ebe06=new _0x81a55f();_0x2ebe06['content']=_0x5be35b,_0x2ebe06['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x21624f=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':[_0x2ebe06,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x21624f['to']('errorType',_0x476002=>t('NotFound'!==_0x476002?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4deab9]},{'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 _0x2a84ca{constructor(_0x5ebe89,_0x2f6a41){super(_0x5ebe89);const _0x556d65=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2f6a41,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x556d65['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5d6630,_0x53ecca,_0xebd8c8){super(_0x5d6630),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5d6630),this['_errorView']=new ti(_0x5d6630),this['_editingView']=new ei(_0x5d6630,_0xebd8c8),this['_focusableView']=new _0x2a84ca(_0x5d6630),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x53ecca),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'],_0x1b30af=>{this['_addUploadcareImageEditorListeners'](_0x1b30af);});}),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'](_0xd63202,_0x138c84){const _0x5bdc7e='uc-cloud-image-editor',_0x2575c8=_0xd63202['querySelector'](_0x5bdc7e);if(_0x2575c8)return _0x138c84(_0x2575c8);const _0x1250d2=new MutationObserver(_0x27574c=>{const _0x45de74=_0x27574c['filter'](_0x165bfd=>_0x165bfd['target']===_0xd63202&&_0x165bfd['addedNodes']['length']>0x0&&_0x165bfd['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5bdc7e);_0x45de74['length']&&(_0x1250d2['disconnect'](),_0x138c84(_0x45de74[0x0]['addedNodes'][0x0]));});_0x1250d2['observe'](_0xd63202,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x17a289){_0x17a289['addEventListener']('apply',_0x54e8e9=>{this['fire']('apply',{'imageSrc':_0x54e8e9['detail']['cdnUrl']});}),_0x17a289['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x161fc5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x36cd03,_0x43287c,_0x55fc35){super(),this['_editor']=_0x36cd03,this['_dialog']=_0x43287c,this['_imageElement']=_0x55fc35,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 _0x5b6674=this['_imageElement'],_0x6995c4=_0x5b6674['getAttribute']('uploadcareImageId'),_0x105513=_0x5b6674['getAttribute']('src');if(_0x6995c4)await this['_loadImageInfo'](_0x6995c4,_0x105513);else{if(this['_imageCache']['has'](_0x105513)){const _0x41da4b=this['_imageCache']['get'](_0x105513);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x41da4b['url'],this['imageDimension']=_0x41da4b['dimension'],this['imageId']=_0x41da4b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5e9bec}=this['_editor'],t=_0x5e9bec['t'],_0x25a232=new X(_0x5e9bec,this['imageStatus'],this['_attributes']);_0x25a232['bind']('status')['to'](this,'imageStatus'),_0x25a232['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x25a232['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x25a232['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x25a232,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x861744,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x25a232,'position':_0x188eae['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x25a232['focus']();},'onHide':()=>{_0x25a232['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4b41de=>!A(_0x4b41de,_0x25a232['element'])}});}['_loadImageInfo'](_0x341dba,_0x50832f){return j['getInfo'](_0x341dba,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x363d39=>{const {width:_0x55e7d3,height:_0x1edd16}=_0x363d39['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50832f,this['imageDimension']={'width':_0x55e7d3,'height':_0x1edd16},this['imageId']=_0x341dba;})['catch'](_0x4b549d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4b549d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2c7767,_0x5c5a18){return this['_getImageAsFile'](_0x2c7767)['then'](_0x40161e=>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':_0x5c5a18['signal'],'file':_0x40161e,'onProgress':_0x10802d=>{_0x10802d&&_0x10802d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x10802d['value']));}}))['then'](_0x18df7f=>{const {width:_0x47ed7a,height:_0x160c36}=_0x18df7f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x18df7f['cdnUrl'],this['imageDimension']={'width':_0x47ed7a,'height':_0x160c36},this['imageId']=_0x18df7f['uuid'],this['imageUploadProgress']=null;const _0x1bb79c=_0x2c7767['getAttribute']('src');this['_imageCache']['set'](_0x1bb79c,{'id':_0x18df7f['uuid'],'url':_0x18df7f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3fbad7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3fbad7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x24ea35,_0x49553d){_0x24ea35['on']('apply',(_0x132ed6,_0x354103)=>{this['_replaceImage'](_0x49553d,_0x354103['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x24ea35['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x24ea35['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4d7893,_0x29b827,_0x26cc77){const _0xdbc7a8=this['_editor'],{width:_0x1c0ad4,height:_0x1b2684}=S(_0x29b827,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x57767e,imageSources:_0x405f23}=C(_0x29b827,_0x1c0ad4);_0xdbc7a8['model']['change'](_0x3c0381=>{if('$graveyard'===_0x4d7893['root']['rootName']){_0xdbc7a8['execute']('insertImage',{'imageType':_0x4d7893['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4d7893['getAttributes']()),'uploadcareImageId':_0x26cc77,'src':_0x57767e,'sources':_0x405f23,'width':_0x1c0ad4,'height':_0x1b2684}});const _0x2ae09f=_0x4d7893['getChildren']();_0x4d7893=_0xdbc7a8['model']['document']['selection']['getSelectedElement']();for(const _0x133ac8 of _0x2ae09f)_0x3c0381['append'](_0x3c0381['cloneElement'](_0x133ac8),_0x4d7893);}else _0x3c0381['setSelection'](_0x4d7893,'on'),_0xdbc7a8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4d7893['getAttributes']()),'uploadcareImageId':_0x26cc77,'src':_0x57767e,'sources':_0x405f23,'width':_0x1c0ad4,'height':_0x1b2684},_0x4d7893);_0x3c0381['setSelection'](_0x4d7893,'on');});}async['_getImageAsFile'](_0x5582b1){const _0x41e36d=_0xd8b1b9['window'],_0x4528d0=_0xd8b1b9['document']['location']['href'],_0x3cc990=new _0x41e36d['URL'](_0x5582b1['getAttribute']('src'),_0x4528d0);if('data:'===_0x3cc990['protocol']){const _0x39dbe9=_0x3cc990['href']['split'](','),_0xc819de=_0x39dbe9[0x0]['match'](/:(.*?);/)[0x1],_0x3e982f=_0xc819de['split']('/')[0x1],_0x5abab6=_0x41e36d['atob'](_0x39dbe9[_0x39dbe9['length']-0x1]);let _0x4b01cc=_0x5abab6['length'];const _0x4fce2d=new _0x41e36d['Uint8Array'](_0x4b01cc);for(;_0x4b01cc--;)_0x4fce2d[_0x4b01cc]=_0x5abab6['charCodeAt'](_0x4b01cc);return new _0x41e36d['File']([_0x4fce2d],'image.'+_0x3e982f,{'type':_0xc819de});}const _0x29351f=_0x3cc990['href']['split']('/'),_0x297639=_0x29351f[_0x29351f['length']-0x1],_0x1f3831=_0x297639['split']('.')[0x1];return _0x41e36d['fetch'](_0x3cc990['href'])['then'](_0x542d3a=>_0x542d3a['clone']()['blob']())['then'](_0x56e59e=>new _0x41e36d['File']([_0x56e59e],_0x297639,{'type':'image/'+_0x1f3831}));}}class O extends _0x5b7d58{['imageEditController'];static get['requires'](){return[_0x1ce961];}['_isEditable'];constructor(_0x126f9d){super(_0x126f9d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x15e01f){const _0x3885a8=G(_0x15e01f);return _0x5f1625=>!(!_0x5f1625||!_0x5f1625['is']('element','imageBlock')&&!_0x5f1625['is']('element','imageInline'))&&(!!_0x5f1625['hasAttribute']('uploadcareImageId')||!!_0x5f1625['hasAttribute']('src')&&_0x3885a8(_0x5f1625['getAttribute']('src')));}(_0x126f9d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x9fda5b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x9fda5b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4a58d3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a58d3&&(_0x4a58d3['is']('element','imageBlock')||_0x4a58d3['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1ce961),_0x4a58d3),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x5b7d58{['refresh'](){const _0x33684f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x33684f&&(_0x33684f['is']('element','imageBlock')||_0x33684f['is']('element','imageInline')));}['execute'](_0x5be129){const _0x4f954f=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x8125ac=>{_0x8125ac['setAttributes'](_0x5be129,_0x4f954f),_0x8125ac['removeAttribute']('srcset',_0x4f954f),_0x8125ac['removeAttribute']('sizes',_0x4f954f);});}}class m extends _0x23c6bd{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xa9c4f2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2aff9c}=this;_0x2aff9c['commands']['add']('uploadcareImageEdit',new O(_0x2aff9c)),_0x2aff9c['commands']['add']('uploadcareImageReplace',new R(_0x2aff9c));}}class g extends _0x23c6bd{['_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 _0x3f61ca=this['editor'];_0x3f61ca['ui']['componentFactory']['add']('uploadcareImageEdit',_0xa11818=>{const _0x495edd=_0x3f61ca['commands']['get']('uploadcareImageEdit'),_0x31dc2f=new _0x4fc422(_0xa11818),t=_0xa11818['t'];return _0x31dc2f['set']({'icon':_0x861744,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x31dc2f['bind']('isEnabled')['to'](_0x495edd),_0x31dc2f['bind']('isOn')['to'](_0x495edd,'isActive'),this['listenTo'](_0x31dc2f,'execute',()=>{_0x3f61ca['execute']('uploadcareImageEdit'),_0x3f61ca['editing']['view']['focus']();}),_0x31dc2f;}),this['_initConfig']();}['_initConfig'](){const _0x3d8707=_0x28166f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3d8707),this['listenTo'](this['editor'],'destroy',()=>{_0x3d8707['remove']();});}}class et extends _0x23c6bd{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x4d8427,Command as _0x6a843d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x45d677,IconGooglePhotos as _0x340251,IconGoogleDrive as _0x5a5d3c,IconFacebook as _0x27eeb9,IconDropbox as _0x1dde77,IconUploadcareLink as _0x472620,IconUploadcareImageUpload as _0x369661,IconError as _0x3fab5e,IconUploadcareImageEdit as _0x332183}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5cfca0,MenuBarMenuListItemButtonView as _0xaaf612,View as _0x19801c,FocusCycler as _0x50b77f,Dialog as _0x342722,DialogViewPosition as _0xb1b3c7,SpinnerView as _0x3710cd,IconView as _0x5f0d0f,Notification as _0x310d11}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x386933,DomEmitterMixin as _0x167f49,global as _0x385085,getAncestors as _0x2f40b4,ObservableMixin as _0xd73486,uid as _0xa4a148,createElement as _0x27340f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3de31c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x36cdda,info as _0x5f3446}from'@uploadcare/upload-client';import*as _0x168c9e from'@uploadcare/file-uploader';var i=function(_0x177103){return _0x177103['Local']='local',_0x177103['URL']='url',_0x177103['Dropbox']='dropbox',_0x177103['GDrive']='gdrive',_0x177103['Facebook']='facebook',_0x177103['GPhotos']='gphotos',_0x177103['OneDrive']='onedrive',_0x177103;}({});function _(_0x4dd947,_0x24e506,_0x2686ca){const t=_0x4dd947['t'],_0x274181=_0x4dd947['t'];switch(_0x24e506){case i['Local']:return{'text':_0x274181('Insert'===_0x2686ca?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x274181('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2686ca?_0x274181('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x274181('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2686ca?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2686ca?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2686ca?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2686ca?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2686ca?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x24e506;}}class e extends _0x4d8427{['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 _0x104218=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5504a8;for(const _0x1c7241 in _0x104218){const _0x194695=_0x1c7241,_0x5e88b6=_0x104218[_0x194695];if('uploadcareLicenseKeyValid'==_0x5e88b6||'uploadcareLicenseKeyInvalid'==_0x5e88b6||'uploadcareLicenseKeyExpired'==_0x5e88b6||'uploadcareLicenseKeyDomainLimit'==_0x5e88b6||'uploadcareLicenseKeyNotAllowed'==_0x5e88b6||'uploadcareLicenseKeyEvaluationLimit'==_0x5e88b6||'uploadcareLicenseKeyTrialLimit'==_0x5e88b6||'uploadcareLicenseKeyUsageLimit'==_0x5e88b6){delete _0x104218[_0x194695],_0x5504a8=_0x5e88b6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5504a8&&_0x104218['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5504a8&&_0x104218['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5504a8&&_0x104218['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5504a8&&_0x104218['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5504a8&&_0x104218['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5504a8&&_0x104218['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5504a8&&_0x104218['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2a2030}=this,_0x1181d8=_0x2a2030['commands']['get']('uploadcare');if(!_0x1181d8)return;const _0x1ce43a=this['_normalizeConfigSourceList'](_0x2a2030['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x42c4a7,_0x28417c)=>{const _0x26ef56=this['_getIntegrationKey'](_0x28417c['type']);return _0x42c4a7[_0x26ef56]||(_0x42c4a7[_0x26ef56]=[]),_0x42c4a7[_0x26ef56]['push'](_0x28417c),_0x42c4a7;},{});_0x2a2030['plugins']['has']('ImageInsertUI')&&_0x2a2030['commands']['get']('uploadcare')&&Object['entries'](_0x1ce43a)['forEach'](([_0x3be169,_0x2e173c])=>{_0x2a2030['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3be169,'observable':()=>_0x1181d8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2e173c),'formViewCreator':()=>this['_createDropdownButtons'](_0x2e173c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2e173c),'override':'assetManager'!==_0x3be169});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xe3f4cf){const {locale:_0xe52e08}=this['editor'];return _0xe3f4cf['map'](_0x3ca6a2=>{const _0x2f09d7=_(_0xe52e08,_0x3ca6a2,'Insert');switch(_0x3ca6a2){case i['Local']:return{'icon':_0x369661,'type':i['Local'],..._0x2f09d7};case i['URL']:return{'icon':_0x472620,'type':i['URL'],..._0x2f09d7};case i['Dropbox']:return{'icon':_0x1dde77,'type':i['Dropbox'],..._0x2f09d7};case i['Facebook']:return{'icon':_0x27eeb9,'type':i['Facebook'],..._0x2f09d7};case i['GDrive']:return{'icon':_0x5a5d3c,'type':i['GDrive'],..._0x2f09d7};case i['GPhotos']:return{'icon':_0x340251,'type':i['GPhotos'],..._0x2f09d7};case i['OneDrive']:return{'icon':_0x45d677,'type':i['OneDrive'],..._0x2f09d7};}});}['_getIntegrationKey'](_0x4855fb){switch(_0x4855fb){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x485586,_0x175d90){const _0x380cdd=this['editor'],_0x4bb0db=new _0x485586(_0x380cdd['locale']),_0x3c7114=_0x380cdd['commands']['get']('uploadcare');return _0x4bb0db['bind']('isEnabled')['to'](_0x3c7114),_0x4bb0db['on']('execute',()=>{_0x3c7114['execute'](_0x175d90);}),_0x4bb0db;}['_createToolbarButton'](_0x4d1163){const {locale:_0x3e66c0}=this['editor'],_0x3311ba=this['editor']['plugins']['get']('ImageInsertUI'),_0x1cfc7d=_0x4d1163[0x0],_0x27c55d=this['_createButton'](_0x5cfca0,_0x1cfc7d['type']);return _0x27c55d['icon']=_0x1cfc7d['icon'],_0x27c55d['bind']('label')['to'](_0x3311ba,'isImageSelected',_0x2a9230=>_(_0x3e66c0,_0x1cfc7d['type'],_0x2a9230?'Replace':'Insert')['text']),_0x27c55d['tooltip']=!0x0,_0x27c55d;}['_createDropdownButtons'](_0x1d0620){const {locale:_0x5a9548}=this['editor'],_0x58782c=this['editor']['plugins']['get']('ImageInsertUI');return _0x1d0620['map'](_0x8ada5a=>{const _0x31a680=this['_createButton'](_0x5cfca0,_0x8ada5a['type']);return _0x31a680['withText']=!0x0,_0x31a680['icon']=_0x8ada5a['icon'],_0x31a680['bind']('label')['to'](_0x58782c,'isImageSelected',_0x2d8224=>_(_0x5a9548,_0x8ada5a['type'],_0x2d8224?'Replace':'Insert')['text']),_0x31a680;});}['_createMenuBarButtons'](_0xed5a45){return _0xed5a45['map'](_0x925e01=>{const _0x3b3db7=this['_createButton'](_0xaaf612,_0x925e01['type']);return _0x3b3db7['icon']=_0x925e01['icon'],_0x3b3db7['label']=_0x925e01['shortText'],_0x3b3db7;});}}class F extends _0x19801c{['focusTracker'];['focusCycler'];constructor(_0x191f5e){super(_0x191f5e),this['focusTracker']=new _0x386933(),this['focusCycler']=new _0x50b77f({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x2743a7,_0x369893){super(_0x2743a7),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-'+_0x369893}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xcda659,_0x515dfa){const _0x7f2acd=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x381715=>_0x381715<=_0x515dfa)['map'](_0x4bfd17=>_0xcda659['replace'](/\/$/,'')+'/-/resize/'+_0x4bfd17+'x/\x20'+_0x4bfd17+'w');return{'imageFallbackUrl':_0xcda659,'imageSources':[{'srcset':_0x7f2acd['join'](',\x20'),'sizes':'(max-width:\x20'+_0x515dfa+'px)\x20100vw,\x20'+_0x515dfa+'px','type':'image/webp'}]};}function S(_0xdfd591,_0x10a067,_0x7307ef){const _0x53742d=_0xdfd591['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x53742d?parseInt(_0x53742d[0x1],0xa):_0x10a067,'height':_0x53742d?parseInt(_0x53742d[0x2],0xa):_0x7307ef};}function p(_0x453261,_0xa1fa04){const _0x7bf21c=new(_0x167f49())(),_0x3ae78c=_0x453261['plugins']['get']('ImageUtils'),_0xafad34=_0x453261['editing']['mapper']['toViewElement'](_0xa1fa04),_0x54aa6c=_0x3ae78c['findViewImgElement'](_0xafad34),_0x914b6f=_0x453261['editing']['view']['domConverter']['viewToDom'](_0x54aa6c),_0x3e2b4a=_0xa1fa04['getAttribute']('width'),_0x502c1e=_0xa1fa04['getAttribute']('height'),_0x441050='image-processing';_0x453261['editing']['view']['change'](_0x1dbb16=>{_0x1dbb16['addClass'](_0x441050,_0xafad34),_0x1dbb16['setStyle']('aspect-ratio',_0x3e2b4a+'/'+_0x502c1e,_0x54aa6c);}),_0x7bf21c['listenTo'](_0x914b6f,'load',()=>{_0x7bf21c['stopListening'](_0x914b6f,'load'),_0x453261['editing']['view']['change'](_0x1994b3=>{_0x1994b3['removeClass'](_0x441050,_0xafad34),_0x1994b3['removeStyle']('aspect-ratio',_0x54aa6c);});});}function G(_0x1c7c26){if(Array['isArray'](_0x1c7c26)){const _0x5acd39=_0x1c7c26['map'](G);return _0x39c4f9=>_0x5acd39['some'](_0x22a777=>_0x22a777(_0x39c4f9));}if('origin'==_0x1c7c26){const _0x44f0d7=_0x385085['window']['location']['origin'];return _0x3142ad=>new URL(_0x3142ad,_0x385085['document']['baseURI'])['origin']==_0x44f0d7;}return'function'==typeof _0x1c7c26?_0x1c7c26:_0x1c7c26 instanceof RegExp?_0x2f0ed7=>!(!_0x2f0ed7['match'](_0x1c7c26)&&!_0x2f0ed7['replace'](/^https?:\/\//,'')['match'](_0x1c7c26)):()=>!0x1;}function A(_0x555b15,_0x4e25f0){return _0x2f40b4(_0x555b15['target'])['includes'](_0x4e25f0);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xd73486(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4e04ef,_0x3fa32c,_0x12d0f5){super(),this['_editor']=_0x4e04ef,this['_editing']=_0x3fa32c,this['_dialog']=_0x4e04ef['plugins']['get'](_0x342722),this['_api']=_0x3fa32c['ctxElement']['getAPI'](),this['_type']=_0x12d0f5,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:_0x9414de,model:_0x164f15}=this['_editor'],_0x1ab1fc=_0x164f15['document']['selection']['getSelectedElement'](),_0x461ae2=_0x1ab1fc&&(_0x1ab1fc['is']('element','imageBlock')||_0x1ab1fc['is']('element','imageInline'));this['_formView']=new x(_0x9414de,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x369661,'title':_(_0x9414de,this['_type'],_0x461ae2?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xb1b3c7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x473074=>!A(_0x473074,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x650590}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2a9fe9=>{const _0x1fc0ce=_0x650590['length'];for(const _0x576902 of _0x650590){const _0x2df9e9=_0x576902===_0x650590[_0x1fc0ce-0x1],{cdnUrl:_0x379ba9,fileInfo:_0x107916}=_0x576902;if(!_0x379ba9||!_0x107916)continue;const {width:_0x3ee342,height:_0x1a62fa}=_0x107916['imageInfo'],_0x2d7c40=S(_0x379ba9,_0x3ee342,_0x1a62fa),_0x5441ed=C(_0x379ba9,_0x2d7c40['width']),_0x1e7cd2={'id':_0x107916['uuid'],'type':'image','attributes':{'imageDimension':_0x2d7c40,..._0x5441ed}};this['_insertAsset'](_0x1e7cd2,_0x2df9e9,_0x2a9fe9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5ce829=>{'idle'===_0x5ce829['detail']['status']&&!_0x5ce829['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4bcf8a,_0x24d313,_0xbc5897){const _0x458572=this['_editor']['model']['document']['selection'],_0x4ea6cb=_0x458572['getSelectedElement'](),_0x1a7e98=!(!_0x4ea6cb||!_0x4ea6cb['is']('element','imageInline'));_0xbc5897['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4bcf8a,_0x1a7e98),_0x24d313||_0xbc5897['setSelection'](_0x458572['getLastPosition']());}['_insertImage'](_0x1c228b,_0x2add44){const _0x45e7ed=this['_editor'],{imageDimension:_0x191924,imageFallbackUrl:_0x52a391,imageSources:_0x5b2ff4}=_0x1c228b['attributes'];_0x45e7ed['execute']('insertImage',{'imageType':_0x2add44?'imageInline':null,'source':{'uploadcareImageId':_0x1c228b['id'],'src':_0x52a391,'sources':_0x5b2ff4,..._0x191924}});}}class w extends _0x6a843d{['_editing'];['_controller']=null;static get['requires'](){return[_0x342722,o];}constructor(_0x347541){super(_0x347541),this['_editing']=_0x347541['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x26aa2d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x26aa2d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5e7600,..._0x25e054}){return _0x36cdda(_0x5e7600,_0x25e054);}static['getInfo'](_0x804a80,_0x40c2ac){return _0x5f3446(_0x804a80,_0x40c2ac);}}class f extends _0x4d8427{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3de31c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2cb215=this['editor'];if(!!!_0x2cb215['config']['get']('uploadcare'))return;_0x2cb215['plugins']['get'](_0x3de31c)['createUploadAdapter']=_0x416a05=>new k(_0x416a05,_0x2cb215),_0x2cb215['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x488a1b,{imageElement:_0x1b25a5,data:_0x2146ed})=>{_0x2cb215['model']['change'](_0x5b4bf2=>{_0x5b4bf2['setAttribute']('uploadcareImageId',_0x2146ed['uploadcareImageId'],_0x1b25a5);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x467ad7,_0x240864){this['loader']=_0x467ad7,this['editor']=_0x240864,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1de245=await this['loader']['file'];return j['upload']({'file':_0x1de245,'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':_0x4be932=>{_0x4be932&&_0x4be932['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4be932['value']);}})['then'](async _0x4905d6=>{const {imageFallbackUrl:_0x3fb83c,imageSources:_0x14fe7b}=C(_0x4905d6['cdnUrl'],_0x4905d6['imageInfo']['width']);return{'uploadcareImageId':_0x4905d6['uuid'],'default':_0x3fb83c,'sources':_0x14fe7b};})['catch'](()=>{const _0x2c46fc=t('Cannot\x20upload\x20file:')+('\x20'+_0x1de245['name']+'.');return Promise['reject'](_0x2c46fc);});}['abort'](){this['controller']['abort']();}}class o extends _0x4d8427{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x342722];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1e1d3c){super(_0x1e1d3c),this['ucContextId']=_0xa4a148();}['init'](){const _0x5a5cab=this['editor'];_0x5a5cab['commands']['add']('uploadcare',new w(_0x5a5cab));}['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 _0x5abd8d=_0x385085['document']['querySelector']('input[uploadcare-file-input]');_0x5abd8d&&_0x5abd8d['remove']();}),async function(_0x5bda66){const _0x18a71a=_0x3d1dad([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]),_0x46b6cf=0x535f8c3a,_0x5b5ffc=0x5358fb0a^_0x46b6cf,_0x1a4655=window[_0x3d1dad([0x44,0x61,0x74,0x65])][_0x3d1dad([0x6e,0x6f,0x77])](),_0x1e2f86=_0x5bda66[_0x3d1dad([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x561285=new window[(_0x3d1dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dbea1=>{_0x1e2f86[_0x3d1dad([0x6f,0x6e,0x63,0x65])](_0x3d1dad([0x72,0x65,0x61,0x64,0x79]),_0x1dbea1);}),_0x211976={[_0x3d1dad([0x6b,0x74,0x79])]:_0x3d1dad([0x45,0x43]),[_0x3d1dad([0x75,0x73,0x65])]:_0x3d1dad([0x73,0x69,0x67]),[_0x3d1dad([0x63,0x72,0x76])]:_0x3d1dad([0x50,0x2d,0x32,0x35,0x36]),[_0x3d1dad([0x78])]:_0x3d1dad([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]),[_0x3d1dad([0x79])]:_0x3d1dad([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]),[_0x3d1dad([0x61,0x6c,0x67])]:_0x3d1dad([0x45,0x53,0x32,0x35,0x36])},_0x1b106a=_0x1e2f86[_0x3d1dad([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d1dad([0x67,0x65,0x74])](_0x3d1dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x549f07(){let _0x3f0637,_0x3f5467=null,_0x38386b=null;try{if(_0x1b106a==_0x3d1dad([0x47,0x50,0x4c]))return _0x3d1dad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f0637=_0x4b2026(),!_0x3f0637)return _0x3d1dad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3f0637[_0x3d1dad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38386b=_0x2a0ff2(_0x3f0637[_0x3d1dad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f0637[_0x3d1dad([0x6a,0x74,0x69])])),await _0x28bcb4()?_0x20253c()?_0x9f5461()?_0x3d1dad([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x364c91()?(_0x3f0637[_0x3d1dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d1dad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f5467=_0x3a8ff9(_0x3d1dad([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3f0637[_0x3d1dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d1dad([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f5467=_0x3a8ff9(_0x3d1dad([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28a494()):_0x3d1dad([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d1dad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d1dad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d1dad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x9f5461(){const _0x9cfb31=[_0x3d1dad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d1dad([0x74,0x72,0x69,0x61,0x6c])][_0x3d1dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f0637[_0x3d1dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a4655/0x3e8:0xe10*_0x5b5ffc;return _0x3f0637[_0x3d1dad([0x65,0x78,0x70])]<_0x9cfb31;}function _0x20253c(){const _0x1e7887=_0x3f0637[_0x3d1dad([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1e7887&&(!!_0x1e7887[_0x3d1dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d1dad([0x2a]))||!!_0x1e7887[_0x3d1dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d1dad([0x55,0x50,0x4c,0x43])));}function _0x364c91(){const _0x4eb9c2=_0x3f0637[_0x3d1dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4eb9c2||0x0==_0x4eb9c2[_0x3d1dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x49608}=new URL(window[_0x3d1dad([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4eb9c2[_0x3d1dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49608))return!0x0;const _0x4e498e=_0x49608[_0x3d1dad([0x73,0x70,0x6c,0x69,0x74])](_0x3d1dad([0x2e]));return _0x4eb9c2[_0x3d1dad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d2f80=>_0x4d2f80[_0x3d1dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d1dad([0x2a])))[_0x3d1dad([0x6d,0x61,0x70])](_0xfd7d3c=>_0xfd7d3c[_0x3d1dad([0x73,0x70,0x6c,0x69,0x74])](_0x3d1dad([0x2e])))[_0x3d1dad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e17d1=>_0x1e17d1[_0x3d1dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e498e[_0x3d1dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d1dad([0x6d,0x61,0x70])](_0x30ab5f=>Array(_0x4e498e[_0x3d1dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30ab5f[_0x3d1dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d1dad([0x66,0x69,0x6c,0x6c])](_0x30ab5f[0x0]===_0x3d1dad([0x2a])?_0x3d1dad([0x2a]):'')[_0x3d1dad([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30ab5f))[_0x3d1dad([0x73,0x6f,0x6d,0x65])](_0x46bd3a=>_0x4e498e[_0x3d1dad([0x65,0x76,0x65,0x72,0x79])]((_0x322968,_0x29c535)=>_0x46bd3a[_0x29c535]===_0x322968||_0x46bd3a[_0x29c535]===_0x3d1dad([0x2a])));}function _0x28a494(){return _0x3f5467&&_0x38386b?new window[(_0x3d1dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2faca9,_0x1c2cbf)=>{_0x3f5467[_0x3d1dad([0x74,0x68,0x65,0x6e])](_0x2faca9,_0x1c2cbf),_0x38386b[_0x3d1dad([0x74,0x68,0x65,0x6e])](_0x2d8ddd=>{_0x2d8ddd!=_0x3d1dad([0x56,0x61,0x6c,0x69,0x64])&&_0x2faca9(_0x2d8ddd);},_0x1c2cbf);}):_0x3f5467||_0x38386b||_0x3d1dad([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a0ff2(_0x30de3f,_0x374486){return new window[(_0x3d1dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8b36=>{if(_0x452820())return _0x3b8b36(_0x3d1dad([0x56,0x61,0x6c,0x69,0x64]));_0x3891d7(),_0x1e2f86[_0x3d1dad([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d1dad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x44583d=!0x1;const _0x2a25fe=_0xa4a148();function _0x318978(_0x16e45e){return!!_0x16e45e&&(typeof _0x16e45e===_0x3d1dad([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x16e45e===_0x3d1dad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x16e45e[_0x3d1dad([0x74,0x68,0x65,0x6e])]===_0x3d1dad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x16e45e[_0x3d1dad([0x63,0x61,0x74,0x63,0x68])]===_0x3d1dad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x26af22(_0x3aaa30){_0x365248(_0x3aaa30)[_0x3d1dad([0x74,0x68,0x65,0x6e])](_0x36d669=>{if(!_0x36d669||_0x36d669[_0x3d1dad([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d1dad([0x6f,0x6b]))return _0x3d1dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe2b23(_0x204e9d(_0x2a25fe+_0x374486))!=_0x36d669[_0x3d1dad([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d1dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d1dad([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d1dad([0x74,0x68,0x65,0x6e])](_0x3e3477=>(_0x448a46(),_0x3e3477),()=>{const _0x46cbbd=_0x50c888();return null==_0x46cbbd?(_0x448a46(),_0x3d1dad([0x56,0x61,0x6c,0x69,0x64])):_0x3d1dad(_0x1a4655-_0x46cbbd>(0x7753083a^_0x46b6cf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d1dad([0x74,0x68,0x65,0x6e])](_0x3b8b36)[_0x3d1dad([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b8b36(_0x3d1dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c520c=0x536962ba^_0x46b6cf;function _0x448a46(){const _0x5ccb1d=_0x3d1dad([0x6c,0x6c,0x63,0x74,0x2d])+_0xe2b23(_0x204e9d(_0x30de3f)),_0x26df97=_0x5dcbe3(_0xe2b23(window[_0x3d1dad([0x4d,0x61,0x74,0x68])][_0x3d1dad([0x63,0x65,0x69,0x6c])](_0x1a4655/_0x2c520c)));window[_0x3d1dad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d1dad([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ccb1d,_0x26df97);}function _0x50c888(){const _0x4d0991=_0x3d1dad([0x6c,0x6c,0x63,0x74,0x2d])+_0xe2b23(_0x204e9d(_0x30de3f)),_0xc65be5=window[_0x3d1dad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d1dad([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d0991);return _0xc65be5?window[_0x3d1dad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dcbe3(_0xc65be5),0x10)*_0x2c520c:null;}function _0x365248(_0x290d4c){return new window[(_0x3d1dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ac664,_0x4cf7ac)=>{_0x290d4c[_0x3d1dad([0x74,0x68,0x65,0x6e])](_0x5ac664,_0x4cf7ac),window[_0x3d1dad([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4cf7ac,0x535e58fa^_0x46b6cf);});}}_0x1e2f86[_0x3d1dad([0x6f,0x6e])](_0x3d1dad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d4794,_0x3fa49b)=>{if(_0x3fa49b[0x0]!=_0x30de3f)return _0x3b8b36(_0x3d1dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fa49b[0x1]={..._0x3fa49b[0x1],[_0x3d1dad([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a25fe};},{[_0x3d1dad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d1dad([0x68,0x69,0x67,0x68])}),_0x1e2f86[_0x3d1dad([0x6f,0x6e])](_0x3d1dad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53c191=>{_0x318978(_0x53c191[_0x3d1dad([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x44583d=!0x0,_0x26af22(_0x53c191[_0x3d1dad([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d1dad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d1dad([0x6c,0x6f,0x77])}),_0x561285[_0x3d1dad([0x74,0x68,0x65,0x6e])](()=>{_0x44583d||_0x3b8b36(_0x3d1dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x452820(){return _0x1e2f86[_0x3d1dad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d1dad([0x76,0x69,0x65,0x77])][_0x3d1dad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d1dad([0x61,0x75,0x74,0x6f]);}function _0x3891d7(){_0x1e2f86[_0x3d1dad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d1dad([0x76,0x69,0x65,0x77])][_0x3d1dad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d1dad([0x61,0x75,0x74,0x6f]);}}function _0x3a8ff9(_0x34baf7){const _0x3f7273=[new window[(_0x3d1dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16f079=>setTimeout(_0x16f079,0x5356b2f6^_0x46b6cf)),_0x561285[_0x3d1dad([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d1dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15e2b0=>{let _0x944e7c=0x0;_0x1e2f86[_0x3d1dad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d1dad([0x6f,0x6e])](_0x3d1dad([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4fb1ef,_0xdccdf6)=>{_0xdccdf6[0x0][_0x3d1dad([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x944e7c++,_0x944e7c==(0x535f8dc2^_0x46b6cf)&&(_0x15e2b0(),_0x4fb1ef[_0x3d1dad([0x6f,0x66,0x66])]());});}))];return window[_0x3d1dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d1dad([0x72,0x61,0x63,0x65])](_0x3f7273)[_0x3d1dad([0x74,0x68,0x65,0x6e])](()=>_0x34baf7);}async function _0x137f4d(){await _0x561285,_0x1e2f86[_0x3d1dad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d1dad([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d6f01,_0x1e2f86[_0x3d1dad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d1dad([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d6f01,_0x1e2f86[_0x3d1dad([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d1dad([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x23a823(_0x2e7383){const _0x518fae=_0x4220f6();_0x1e2f86[_0x518fae]=_0x3d1dad([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e7383,_0x2e7383!=_0x3d1dad([0x56,0x61,0x6c,0x69,0x64])&&_0x137f4d();}function _0x4220f6(){const _0x3f3271=window[_0x3d1dad([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d1dad([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d1dad([0x6e,0x6f,0x77])]())[_0x3d1dad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d1dad([0x2e]),'');let _0x4f7614=_0x3d1dad([0x68]);for(let _0x4e84f2=0x0;_0x4e84f2<_0x3f3271[_0x3d1dad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e84f2+=0x2){let _0x15b8e4=window[_0x3d1dad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f3271[_0x3d1dad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e84f2,_0x4e84f2+0x2));_0x15b8e4>=_0x18a71a[_0x3d1dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x15b8e4-=_0x18a71a[_0x3d1dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f7614+=_0x18a71a[_0x15b8e4];}return _0x4f7614;}function _0x4b2026(){const _0x19d119=_0x1b106a[_0x3d1dad([0x73,0x70,0x6c,0x69,0x74])](_0x3d1dad([0x2e]));if(0x3!=_0x19d119[_0x3d1dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x167cca(_0x19d119[0x1]);function _0x167cca(_0x112c4c){const _0x748d37=_0x15a894(_0x112c4c);return _0x748d37&&_0x408488()?_0x748d37:null;function _0x408488(){const _0x4de4a7=_0x748d37[_0x3d1dad([0x6a,0x74,0x69])],_0x4e5958=window[_0x3d1dad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4de4a7[_0x3d1dad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4de4a7[_0x3d1dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11fdd3={..._0x748d37,[_0x3d1dad([0x6a,0x74,0x69])]:_0x4de4a7[_0x3d1dad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4de4a7[_0x3d1dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11fdd3[_0x3d1dad([0x76,0x63])],_0x204e9d(_0x11fdd3)==_0x4e5958;}}}async function _0x28bcb4(){let _0x25815d=!0x0;try{const _0x2e5bf6=_0x1b106a[_0x3d1dad([0x73,0x70,0x6c,0x69,0x74])](_0x3d1dad([0x2e])),[_0x3ab493,_0x622592,_0x4d9eb7]=_0x2e5bf6;return _0x9de7e1(_0x3ab493),await _0x39087b(_0x3ab493,_0x622592,_0x4d9eb7),_0x25815d;}catch{return!0x1;}function _0x9de7e1(_0x591001){const _0x12b35a=_0x15a894(_0x591001);_0x12b35a&&_0x12b35a[_0x3d1dad([0x61,0x6c,0x67])]==_0x3d1dad([0x45,0x53,0x32,0x35,0x36])||(_0x25815d=!0x1);}async function _0x39087b(_0x4b0c56,_0x25b7fa,_0x128372){const _0x183aed=window[_0x3d1dad([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d1dad([0x66,0x72,0x6f,0x6d])](_0x33c673(_0x128372),_0x1e2be1=>_0x1e2be1[_0x3d1dad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x38bf18=new window[(_0x3d1dad([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d1dad([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b0c56+_0x3d1dad([0x2e])+_0x25b7fa),_0x28aac1=window[_0x3d1dad([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d1dad([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x28aac1)return;const _0x50fc8c=await _0x28aac1[_0x3d1dad([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d1dad([0x6a,0x77,0x6b]),_0x211976,{[_0x3d1dad([0x6e,0x61,0x6d,0x65])]:_0x3d1dad([0x45,0x43,0x44,0x53,0x41]),[_0x3d1dad([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d1dad([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d1dad([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x28aac1[_0x3d1dad([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d1dad([0x6e,0x61,0x6d,0x65])]:_0x3d1dad([0x45,0x43,0x44,0x53,0x41]),[_0x3d1dad([0x68,0x61,0x73,0x68])]:{[_0x3d1dad([0x6e,0x61,0x6d,0x65])]:_0x3d1dad([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50fc8c,_0x183aed,_0x38bf18)||(_0x25815d=!0x1);}}function _0x15a894(_0x13baa6){return _0x13baa6[_0x3d1dad([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d1dad([0x65,0x79]))?JSON[_0x3d1dad([0x70,0x61,0x72,0x73,0x65])](_0x33c673(_0x13baa6)):null;}function _0x33c673(_0x285eac){return window[_0x3d1dad([0x61,0x74,0x6f,0x62])](_0x285eac[_0x3d1dad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d1dad([0x2b]))[_0x3d1dad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d1dad([0x2f])));}function _0x204e9d(_0x32af72){let _0xae2b0=0x1505;function _0x673af5(_0x1ea140){for(let _0x3cce38=0x0;_0x3cce38<_0x1ea140[_0x3d1dad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3cce38++){const _0x3d1ee6=_0x1ea140[_0x3d1dad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3cce38);_0xae2b0=(_0xae2b0<<0x5)+_0xae2b0+_0x3d1ee6,_0xae2b0&=_0xae2b0;}}function _0x2a3d38(_0x418a6b){Array[_0x3d1dad([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x418a6b)?_0x418a6b[_0x3d1dad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a3d38):_0x418a6b&&typeof _0x418a6b==_0x3d1dad([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d1dad([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x418a6b)[_0x3d1dad([0x73,0x6f,0x72,0x74])]()[_0x3d1dad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a01b9,_0x4d69d3])=>{_0x673af5(_0x1a01b9),_0x2a3d38(_0x4d69d3);}):_0x673af5(window[_0x3d1dad([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x418a6b));}return _0x2a3d38(_0x32af72),_0xae2b0>>>0x0;}function _0xe2b23(_0xeaf5c0){return _0xeaf5c0[_0x3d1dad([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d1dad([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d1dad([0x30]));}function _0x5dcbe3(_0x2fe4b6){return _0x2fe4b6[_0x3d1dad([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d1dad([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d1dad([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d6f01(){}function _0x3d1dad(_0x5b576f){return _0x5b576f['map'](_0x3c0f1a=>String['fromCharCode'](_0x3c0f1a))['join']('');}_0x23a823(await _0x549f07());}(this);}['_initSchema'](){const _0x1607f3=this['editor']['model']['schema'];_0x1607f3['isRegistered']('imageBlock')&&_0x1607f3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1607f3['isRegistered']('imageInline')&&_0x1607f3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5c67bc=this['editor'];_0x5c67bc['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5c67bc['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x53785e=>_0x53785e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5496d4=_0x5c67bc['commands']['get']('replaceImageSource');_0x5496d4&&this['listenTo'](_0x5496d4,'cleanupImage',(_0x107db6,[_0x475cff,_0x361d8b])=>{_0x475cff['removeAttribute']('uploadcareImageId',_0x361d8b);});}['_initConfig'](){const _0x5114e3=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3e35db=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x27340f(_0x385085['document'],'uc-config',{..._0x5114e3,'pubkey':_0x3e35db,'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']=_0x554892=>{if('closeMax'==_0x554892)return'#uc-icon-arrow-down';},_0x385085['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x27340f(_0x385085['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x385085['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5302df=this['editor']['commands']['get']('insertImage');_0x5302df&&this['listenTo'](_0x5302df,'execute',()=>{const _0x474aa8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x474aa8&&_0x474aa8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x474aa8);});});const _0x750ad2=this['editor']['commands']['get']('uploadcareImageReplace');_0x750ad2&&this['listenTo'](_0x750ad2,'execute',()=>{const _0x1a1962=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a1962&&_0x1a1962['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1a1962);});});}}class tt extends _0x4d8427{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3887d6){super(_0x3887d6),_0x3887d6['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x168c9e['defineComponents'](_0x168c9e),this['_defineLocale']();}['_defineLocale'](){const _0x4d6da4=this['editor']['config']['get']('uploadcare.locale'),_0x26b076=this['editor']['locale']['contentLanguage'];_0x4d6da4&&_0x168c9e['defineLocale'](_0x26b076,_0x4d6da4);}}class ii extends _0x19801c{constructor(_0x20989b){super(_0x20989b);const t=_0x20989b['t'],_0x141a7c=this['bindTemplate'],_0x46279a=new _0x3710cd();_0x46279a['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':[_0x46279a,{'text':_0x141a7c['to']('imageUploadProgress',_0x655284=>t('Loading\x20image...')+'\x20('+(_0x655284||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 _0x19801c{constructor(_0x496ed6){super(_0x496ed6);const t=_0x496ed6['t'];this['set']('errorType',null);const _0x487447=new _0x5cfca0(_0x496ed6);_0x487447['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x487447['withText']=!0x0,_0x487447['class']='ck-button-action',_0x487447['on']('execute',()=>{this['fire']('retry');}),_0x487447['bind']('isVisible')['to'](this,'errorType',_0x50da83=>'NotFound'!==_0x50da83);const _0x5a4ea2=new _0x5f0d0f();_0x5a4ea2['content']=_0x3fab5e,_0x5a4ea2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4da52a=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':[_0x5a4ea2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4da52a['to']('errorType',_0x5ae1c9=>t('NotFound'!==_0x5ae1c9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x487447]},{'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 _0x19801c{constructor(_0x4a2821,_0x4d8172){super(_0x4a2821);const _0xd0e03a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4d8172,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xd0e03a['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xdbaf3,_0x51eec9,_0x16614d){super(_0xdbaf3),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xdbaf3),this['_errorView']=new ti(_0xdbaf3),this['_editingView']=new ei(_0xdbaf3,_0x16614d),this['_focusableView']=new _0x19801c(_0xdbaf3),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x51eec9),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'],_0x3281a5=>{this['_addUploadcareImageEditorListeners'](_0x3281a5);});}),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'](_0x33bf91,_0x2dcd60){const _0xf62f9d='uc-cloud-image-editor',_0x228a3c=_0x33bf91['querySelector'](_0xf62f9d);if(_0x228a3c)return _0x2dcd60(_0x228a3c);const _0x444894=new MutationObserver(_0x423c54=>{const _0x542a2f=_0x423c54['filter'](_0x226e55=>_0x226e55['target']===_0x33bf91&&_0x226e55['addedNodes']['length']>0x0&&_0x226e55['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xf62f9d);_0x542a2f['length']&&(_0x444894['disconnect'](),_0x2dcd60(_0x542a2f[0x0]['addedNodes'][0x0]));});_0x444894['observe'](_0x33bf91,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x561fec){_0x561fec['addEventListener']('apply',_0x4c9111=>{this['fire']('apply',{'imageSrc':_0x4c9111['detail']['cdnUrl']});}),_0x561fec['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xd73486(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x377679,_0x6b6c7e,_0x1c33e2){super(),this['_editor']=_0x377679,this['_dialog']=_0x6b6c7e,this['_imageElement']=_0x1c33e2,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 _0x5c71d1=this['_imageElement'],_0x4cf13c=_0x5c71d1['getAttribute']('uploadcareImageId'),_0x589790=_0x5c71d1['getAttribute']('src');if(_0x4cf13c)await this['_loadImageInfo'](_0x4cf13c,_0x589790);else{if(this['_imageCache']['has'](_0x589790)){const _0x8b6754=this['_imageCache']['get'](_0x589790);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8b6754['url'],this['imageDimension']=_0x8b6754['dimension'],this['imageId']=_0x8b6754['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x39c4e5}=this['_editor'],t=_0x39c4e5['t'],_0x2ed4f7=new X(_0x39c4e5,this['imageStatus'],this['_attributes']);_0x2ed4f7['bind']('status')['to'](this,'imageStatus'),_0x2ed4f7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2ed4f7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2ed4f7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2ed4f7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x332183,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2ed4f7,'position':_0xb1b3c7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2ed4f7['focus']();},'onHide':()=>{_0x2ed4f7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4bea00=>!A(_0x4bea00,_0x2ed4f7['element'])}});}['_loadImageInfo'](_0x2511d1,_0x4ffcbd){return j['getInfo'](_0x2511d1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2fe321=>{const {width:_0x3b41b1,height:_0x21219a}=_0x2fe321['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ffcbd,this['imageDimension']={'width':_0x3b41b1,'height':_0x21219a},this['imageId']=_0x2511d1;})['catch'](_0x32d14b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x32d14b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3be454,_0x1c68e3){return this['_getImageAsFile'](_0x3be454)['then'](_0xbf9981=>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':_0x1c68e3['signal'],'file':_0xbf9981,'onProgress':_0x5110e9=>{_0x5110e9&&_0x5110e9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5110e9['value']));}}))['then'](_0x2c609c=>{const {width:_0x693c8f,height:_0x3e73e8}=_0x2c609c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2c609c['cdnUrl'],this['imageDimension']={'width':_0x693c8f,'height':_0x3e73e8},this['imageId']=_0x2c609c['uuid'],this['imageUploadProgress']=null;const _0x2db831=_0x3be454['getAttribute']('src');this['_imageCache']['set'](_0x2db831,{'id':_0x2c609c['uuid'],'url':_0x2c609c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2d90c5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2d90c5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x171d50,_0x2fcdc8){_0x171d50['on']('apply',(_0xb10573,_0x1fcab9)=>{this['_replaceImage'](_0x2fcdc8,_0x1fcab9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x171d50['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x171d50['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5a368d,_0x2d04f9,_0x5b3c78){const _0x29b113=this['_editor'],{width:_0x2655c0,height:_0x47d32a}=S(_0x2d04f9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x52f69d,imageSources:_0x2fb90f}=C(_0x2d04f9,_0x2655c0);_0x29b113['model']['change'](_0x4ceb10=>{if('$graveyard'===_0x5a368d['root']['rootName']){_0x29b113['execute']('insertImage',{'imageType':_0x5a368d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5a368d['getAttributes']()),'uploadcareImageId':_0x5b3c78,'src':_0x52f69d,'sources':_0x2fb90f,'width':_0x2655c0,'height':_0x47d32a}});const _0x50fba1=_0x5a368d['getChildren']();_0x5a368d=_0x29b113['model']['document']['selection']['getSelectedElement']();for(const _0x430c3e of _0x50fba1)_0x4ceb10['append'](_0x4ceb10['cloneElement'](_0x430c3e),_0x5a368d);}else _0x4ceb10['setSelection'](_0x5a368d,'on'),_0x29b113['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5a368d['getAttributes']()),'uploadcareImageId':_0x5b3c78,'src':_0x52f69d,'sources':_0x2fb90f,'width':_0x2655c0,'height':_0x47d32a},_0x5a368d);_0x4ceb10['setSelection'](_0x5a368d,'on');});}async['_getImageAsFile'](_0x498d5c){const _0x3dc3e5=_0x385085['window'],_0x13e77d=_0x385085['document']['location']['href'],_0x1fffb6=new _0x3dc3e5['URL'](_0x498d5c['getAttribute']('src'),_0x13e77d);if('data:'===_0x1fffb6['protocol']){const _0x1e78f9=_0x1fffb6['href']['split'](','),_0xc1d164=_0x1e78f9[0x0]['match'](/:(.*?);/)[0x1],_0x4331d8=_0xc1d164['split']('/')[0x1],_0x2485ae=_0x3dc3e5['atob'](_0x1e78f9[_0x1e78f9['length']-0x1]);let _0x27923f=_0x2485ae['length'];const _0xc5131c=new _0x3dc3e5['Uint8Array'](_0x27923f);for(;_0x27923f--;)_0xc5131c[_0x27923f]=_0x2485ae['charCodeAt'](_0x27923f);return new _0x3dc3e5['File']([_0xc5131c],'image.'+_0x4331d8,{'type':_0xc1d164});}const _0x2494cb=_0x1fffb6['href']['split']('/'),_0x39b64c=_0x2494cb[_0x2494cb['length']-0x1],_0x2baf60=_0x39b64c['split']('.')[0x1];return _0x3dc3e5['fetch'](_0x1fffb6['href'])['then'](_0x3b5e77=>_0x3b5e77['clone']()['blob']())['then'](_0x457a9f=>new _0x3dc3e5['File']([_0x457a9f],_0x39b64c,{'type':'image/'+_0x2baf60}));}}class O extends _0x6a843d{['imageEditController'];static get['requires'](){return[_0x342722];}['_isEditable'];constructor(_0x232914){super(_0x232914),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1e912c){const _0x3bf91d=G(_0x1e912c);return _0x36dc61=>!(!_0x36dc61||!_0x36dc61['is']('element','imageBlock')&&!_0x36dc61['is']('element','imageInline'))&&(!!_0x36dc61['hasAttribute']('uploadcareImageId')||!!_0x36dc61['hasAttribute']('src')&&_0x3bf91d(_0x36dc61['getAttribute']('src')));}(_0x232914['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x12dfcc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x12dfcc);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4eaa82=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4eaa82&&(_0x4eaa82['is']('element','imageBlock')||_0x4eaa82['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x342722),_0x4eaa82),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x6a843d{['refresh'](){const _0xd07c9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xd07c9&&(_0xd07c9['is']('element','imageBlock')||_0xd07c9['is']('element','imageInline')));}['execute'](_0x5f3022){const _0x2f1fab=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x446a58=>{_0x446a58['setAttributes'](_0x5f3022,_0x2f1fab),_0x446a58['removeAttribute']('srcset',_0x2f1fab),_0x446a58['removeAttribute']('sizes',_0x2f1fab);});}}class m extends _0x4d8427{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x310d11,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x239872}=this;_0x239872['commands']['add']('uploadcareImageEdit',new O(_0x239872)),_0x239872['commands']['add']('uploadcareImageReplace',new R(_0x239872));}}class g extends _0x4d8427{['_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 _0x3d10d1=this['editor'];_0x3d10d1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x47a096=>{const _0x1389ea=_0x3d10d1['commands']['get']('uploadcareImageEdit'),_0x53ab8e=new _0x5cfca0(_0x47a096),t=_0x47a096['t'];return _0x53ab8e['set']({'icon':_0x332183,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x53ab8e['bind']('isEnabled')['to'](_0x1389ea),_0x53ab8e['bind']('isOn')['to'](_0x1389ea,'isActive'),this['listenTo'](_0x53ab8e,'execute',()=>{_0x3d10d1['execute']('uploadcareImageEdit'),_0x3d10d1['editing']['view']['focus']();}),_0x53ab8e;}),this['_initConfig']();}['_initConfig'](){const _0x37d094=_0x27340f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x37d094),this['listenTo'](this['editor'],'destroy',()=>{_0x37d094['remove']();});}}class et extends _0x4d8427{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x475178=>0x1!=_0x475178}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1bc995=>{const {af:{dictionary:_0x347b79,getPluralForm:_0x11eea1}}={'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':_0x5cef05=>0x1!=_0x5cef05}};_0x1bc995['af']||={'dictionary':{},'getPluralForm':null},_0x1bc995['af']['dictionary']=Object['assign'](_0x1bc995['af']['dictionary'],_0x347b79),_0x1bc995['af']['getPluralForm']=_0x11eea1;})(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':_0x36ae71=>0x0==_0x36ae71?0x0:0x1==_0x36ae71?0x1:0x2==_0x36ae71?0x2:_0x36ae71%0x64>=0x3&&_0x36ae71%0x64<=0xa?0x3:_0x36ae71%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5db88c=>{const {ar:{dictionary:_0xa26d37,getPluralForm:_0x529c98}}={'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':_0x202876=>0x0==_0x202876?0x0:0x1==_0x202876?0x1:0x2==_0x202876?0x2:_0x202876%0x64>=0x3&&_0x202876%0x64<=0xa?0x3:_0x202876%0x64>=0xb?0x4:0x5}};_0x5db88c['ar']||={'dictionary':{},'getPluralForm':null},_0x5db88c['ar']['dictionary']=Object['assign'](_0x5db88c['ar']['dictionary'],_0xa26d37),_0x5db88c['ar']['getPluralForm']=_0x529c98;})(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':_0x41e318=>0x1!=_0x41e318}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5f4616=>{const {ast:{dictionary:_0xa7f34f,getPluralForm:_0x1e800d}}={'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':_0x3fcff4=>0x1!=_0x3fcff4}};_0x5f4616['ast']||={'dictionary':{},'getPluralForm':null},_0x5f4616['ast']['dictionary']=Object['assign'](_0x5f4616['ast']['dictionary'],_0xa7f34f),_0x5f4616['ast']['getPluralForm']=_0x1e800d;})(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':_0x5f33ac=>0x1!=_0x5f33ac}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x59ba95=>{const {az:{dictionary:_0x442799,getPluralForm:_0x2b430d}}={'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':_0x25b146=>0x1!=_0x25b146}};_0x59ba95['az']||={'dictionary':{},'getPluralForm':null},_0x59ba95['az']['dictionary']=Object['assign'](_0x59ba95['az']['dictionary'],_0x442799),_0x59ba95['az']['getPluralForm']=_0x2b430d;})(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':_0x52fd39=>_0x52fd39%0xa==0x1&&_0x52fd39%0x64!=0xb?0x0:_0x52fd39%0xa>=0x2&&_0x52fd39%0xa<=0x4&&(_0x52fd39%0x64<0xa||_0x52fd39%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3df602=>{const {be:{dictionary:_0x255075,getPluralForm:_0x27f619}}={'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':_0x371c80=>_0x371c80%0xa==0x1&&_0x371c80%0x64!=0xb?0x0:_0x371c80%0xa>=0x2&&_0x371c80%0xa<=0x4&&(_0x371c80%0x64<0xa||_0x371c80%0x64>=0x14)?0x1:0x2}};_0x3df602['be']||={'dictionary':{},'getPluralForm':null},_0x3df602['be']['dictionary']=Object['assign'](_0x3df602['be']['dictionary'],_0x255075),_0x3df602['be']['getPluralForm']=_0x27f619;})(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':_0x4d43d7=>0x1!=_0x4d43d7}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4cddc2=>{const {bg:{dictionary:_0x5da6f3,getPluralForm:_0x1da46b}}={'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':_0xb1e002=>0x1!=_0xb1e002}};_0x4cddc2['bg']||={'dictionary':{},'getPluralForm':null},_0x4cddc2['bg']['dictionary']=Object['assign'](_0x4cddc2['bg']['dictionary'],_0x5da6f3),_0x4cddc2['bg']['getPluralForm']=_0x1da46b;})(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':_0x4bc448=>0x1!=_0x4bc448}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5645ce=>{const {bn:{dictionary:_0x26a1a6,getPluralForm:_0x24822d}}={'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':_0x2bf79f=>0x1!=_0x2bf79f}};_0x5645ce['bn']||={'dictionary':{},'getPluralForm':null},_0x5645ce['bn']['dictionary']=Object['assign'](_0x5645ce['bn']['dictionary'],_0x26a1a6),_0x5645ce['bn']['getPluralForm']=_0x24822d;})(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':_0x4962d6=>_0x4962d6%0xa==0x1&&_0x4962d6%0x64!=0xb?0x0:_0x4962d6%0xa>=0x2&&_0x4962d6%0xa<=0x4&&(_0x4962d6%0x64<0xa||_0x4962d6%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2998eb=>{const {bs:{dictionary:_0x14b48d,getPluralForm:_0x3dcbe3}}={'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':_0x2f0d48=>_0x2f0d48%0xa==0x1&&_0x2f0d48%0x64!=0xb?0x0:_0x2f0d48%0xa>=0x2&&_0x2f0d48%0xa<=0x4&&(_0x2f0d48%0x64<0xa||_0x2f0d48%0x64>=0x14)?0x1:0x2}};_0x2998eb['bs']||={'dictionary':{},'getPluralForm':null},_0x2998eb['bs']['dictionary']=Object['assign'](_0x2998eb['bs']['dictionary'],_0x14b48d),_0x2998eb['bs']['getPluralForm']=_0x3dcbe3;})(window['CKEDITOR_TRANSLATIONS']||={});
|