@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251125.0 → 0.0.0-nightly-20251125.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x50d93f,Command as _0x2950ea}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2ce77a,IconGooglePhotos as _0x3d5996,IconGoogleDrive as _0xbf9145,IconFacebook as _0xef237a,IconDropbox as _0x38769f,IconUploadcareLink as _0x3a1b87,IconUploadcareImageUpload as _0x1a612b,IconError as _0x5368f9,IconUploadcareImageEdit as _0x42d718}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3bda9b,MenuBarMenuListItemButtonView as _0x5d9c4c,View as _0x307b01,FocusCycler as _0x22234b,Dialog as _0x16cd90,DialogViewPosition as _0x2cd43a,SpinnerView as _0x30ccdc,IconView as _0x3b3b25,Notification as _0x3e2f7c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x309b1f,DomEmitterMixin as _0x474d6d,global as _0x2af7a5,getAncestors as _0x48c1f3,ObservableMixin as _0x2fa053,uid as _0x557d61,createElement as _0x50ab71}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x36a1ea}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5a9775,info as _0x3c892d}from'@uploadcare/upload-client';import*as _0x4619a7 from'@uploadcare/file-uploader';var i=function(_0x5fbb85){return _0x5fbb85['Local']='local',_0x5fbb85['URL']='url',_0x5fbb85['Dropbox']='dropbox',_0x5fbb85['GDrive']='gdrive',_0x5fbb85['Facebook']='facebook',_0x5fbb85['GPhotos']='gphotos',_0x5fbb85['OneDrive']='onedrive',_0x5fbb85;}({});function _(_0x293173,_0x35ce50,_0x3ec8a6){const t=_0x293173['t'],_0x57227e=_0x293173['t'];switch(_0x35ce50){case i['Local']:return{'text':_0x57227e('Insert'===_0x3ec8a6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x57227e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3ec8a6?_0x57227e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x57227e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3ec8a6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3ec8a6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3ec8a6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3ec8a6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3ec8a6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x35ce50;}}class e extends _0x50d93f{['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 _0x5ef642=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e2073;for(const _0x1c3331 in _0x5ef642){const _0x214e5c=_0x1c3331,_0x55c615=_0x5ef642[_0x214e5c];if('uploadcareLicenseKeyValid'==_0x55c615||'uploadcareLicenseKeyInvalid'==_0x55c615||'uploadcareLicenseKeyExpired'==_0x55c615||'uploadcareLicenseKeyDomainLimit'==_0x55c615||'uploadcareLicenseKeyNotAllowed'==_0x55c615||'uploadcareLicenseKeyEvaluationLimit'==_0x55c615||'uploadcareLicenseKeyTrialLimit'==_0x55c615||'uploadcareLicenseKeyUsageLimit'==_0x55c615){delete _0x5ef642[_0x214e5c],_0x5e2073=_0x55c615,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5e2073&&_0x5ef642['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5e2073&&_0x5ef642['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5e2073&&_0x5ef642['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5e2073&&_0x5ef642['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5e2073&&_0x5ef642['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5e2073&&_0x5ef642['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5e2073&&_0x5ef642['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x432c0d}=this,_0x37e21e=_0x432c0d['commands']['get']('uploadcare');if(!_0x37e21e)return;const _0x44e431=this['_normalizeConfigSourceList'](_0x432c0d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3d4fb2,_0xc8455)=>{const _0x5c8f7a=this['_getIntegrationKey'](_0xc8455['type']);return _0x3d4fb2[_0x5c8f7a]||(_0x3d4fb2[_0x5c8f7a]=[]),_0x3d4fb2[_0x5c8f7a]['push'](_0xc8455),_0x3d4fb2;},{});_0x432c0d['plugins']['has']('ImageInsertUI')&&_0x432c0d['commands']['get']('uploadcare')&&Object['entries'](_0x44e431)['forEach'](([_0x24ebad,_0x81c8e4])=>{_0x432c0d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x24ebad,'observable':()=>_0x37e21e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x81c8e4),'formViewCreator':()=>this['_createDropdownButtons'](_0x81c8e4),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x81c8e4),'override':'assetManager'!==_0x24ebad});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x21cc8c){const {locale:_0x29a31b}=this['editor'];return _0x21cc8c['map'](_0x28ab9c=>{const _0x1a125e=_(_0x29a31b,_0x28ab9c,'Insert');switch(_0x28ab9c){case i['Local']:return{'icon':_0x1a612b,'type':i['Local'],..._0x1a125e};case i['URL']:return{'icon':_0x3a1b87,'type':i['URL'],..._0x1a125e};case i['Dropbox']:return{'icon':_0x38769f,'type':i['Dropbox'],..._0x1a125e};case i['Facebook']:return{'icon':_0xef237a,'type':i['Facebook'],..._0x1a125e};case i['GDrive']:return{'icon':_0xbf9145,'type':i['GDrive'],..._0x1a125e};case i['GPhotos']:return{'icon':_0x3d5996,'type':i['GPhotos'],..._0x1a125e};case i['OneDrive']:return{'icon':_0x2ce77a,'type':i['OneDrive'],..._0x1a125e};}});}['_getIntegrationKey'](_0x21155f){switch(_0x21155f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3c8585,_0x284d39){const _0x1e063b=this['editor'],_0x4db24f=new _0x3c8585(_0x1e063b['locale']),_0x4d8d7d=_0x1e063b['commands']['get']('uploadcare');return _0x4db24f['bind']('isEnabled')['to'](_0x4d8d7d),_0x4db24f['on']('execute',()=>{_0x4d8d7d['execute'](_0x284d39);}),_0x4db24f;}['_createToolbarButton'](_0x29be31){const {locale:_0x58abb7}=this['editor'],_0x41dcd0=this['editor']['plugins']['get']('ImageInsertUI'),_0xe263a5=_0x29be31[0x0],_0x158f4b=this['_createButton'](_0x3bda9b,_0xe263a5['type']);return _0x158f4b['icon']=_0xe263a5['icon'],_0x158f4b['bind']('label')['to'](_0x41dcd0,'isImageSelected',_0x1cbd27=>_(_0x58abb7,_0xe263a5['type'],_0x1cbd27?'Replace':'Insert')['text']),_0x158f4b['tooltip']=!0x0,_0x158f4b;}['_createDropdownButtons'](_0x88d161){const {locale:_0x51fedc}=this['editor'],_0x11ac85=this['editor']['plugins']['get']('ImageInsertUI');return _0x88d161['map'](_0x814cb4=>{const _0x1faf30=this['_createButton'](_0x3bda9b,_0x814cb4['type']);return _0x1faf30['withText']=!0x0,_0x1faf30['icon']=_0x814cb4['icon'],_0x1faf30['bind']('label')['to'](_0x11ac85,'isImageSelected',_0x4c5ab8=>_(_0x51fedc,_0x814cb4['type'],_0x4c5ab8?'Replace':'Insert')['text']),_0x1faf30;});}['_createMenuBarButtons'](_0x44b62b){return _0x44b62b['map'](_0x6db479=>{const _0x111784=this['_createButton'](_0x5d9c4c,_0x6db479['type']);return _0x111784['icon']=_0x6db479['icon'],_0x111784['label']=_0x6db479['shortText'],_0x111784;});}}class F extends _0x307b01{['focusTracker'];['focusCycler'];constructor(_0x2fdc97){super(_0x2fdc97),this['focusTracker']=new _0x309b1f(),this['focusCycler']=new _0x22234b({'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(_0xf1e70e,_0x5a272d){super(_0xf1e70e),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-'+_0x5a272d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1ac80f,_0x20eb04){const _0x55f1f6=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4d6fc4=>_0x4d6fc4<=_0x20eb04)['map'](_0x2b4983=>_0x1ac80f['replace'](/\/$/,'')+'/-/resize/'+_0x2b4983+'x/\x20'+_0x2b4983+'w');return{'imageFallbackUrl':_0x1ac80f,'imageSources':[{'srcset':_0x55f1f6['join'](',\x20'),'sizes':'(max-width:\x20'+_0x20eb04+'px)\x20100vw,\x20'+_0x20eb04+'px','type':'image/webp'}]};}function S(_0x41ff76,_0x2733b5,_0x51637e){const _0x1be7b3=_0x41ff76['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1be7b3?parseInt(_0x1be7b3[0x1],0xa):_0x2733b5,'height':_0x1be7b3?parseInt(_0x1be7b3[0x2],0xa):_0x51637e};}function p(_0x7cb483,_0xf197ae){const _0x549312=new(_0x474d6d())(),_0x3dc143=_0x7cb483['plugins']['get']('ImageUtils'),_0x5131da=_0x7cb483['editing']['mapper']['toViewElement'](_0xf197ae),_0x52f552=_0x3dc143['findViewImgElement'](_0x5131da),_0x1ecd0d=_0x7cb483['editing']['view']['domConverter']['viewToDom'](_0x52f552),_0x456f01=_0xf197ae['getAttribute']('width'),_0x39b9db=_0xf197ae['getAttribute']('height'),_0x19493d='image-processing';_0x7cb483['editing']['view']['change'](_0x23a210=>{_0x23a210['addClass'](_0x19493d,_0x5131da),_0x23a210['setStyle']('aspect-ratio',_0x456f01+'/'+_0x39b9db,_0x52f552);}),_0x549312['listenTo'](_0x1ecd0d,'load',()=>{_0x549312['stopListening'](_0x1ecd0d,'load'),_0x7cb483['editing']['view']['change'](_0x2abd45=>{_0x2abd45['removeClass'](_0x19493d,_0x5131da),_0x2abd45['removeStyle']('aspect-ratio',_0x52f552);});});}function G(_0xc467e){if(Array['isArray'](_0xc467e)){const _0xf4b487=_0xc467e['map'](G);return _0x560a08=>_0xf4b487['some'](_0x254996=>_0x254996(_0x560a08));}if('origin'==_0xc467e){const _0x4e91c8=_0x2af7a5['window']['location']['origin'];return _0x193af1=>new URL(_0x193af1,_0x2af7a5['document']['baseURI'])['origin']==_0x4e91c8;}return'function'==typeof _0xc467e?_0xc467e:_0xc467e instanceof RegExp?_0x1b919e=>!(!_0x1b919e['match'](_0xc467e)&&!_0x1b919e['replace'](/^https?:\/\//,'')['match'](_0xc467e)):()=>!0x1;}function A(_0x4ba909,_0x3342c1){return _0x48c1f3(_0x4ba909['target'])['includes'](_0x3342c1);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2fa053(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x512beb,_0x40aa83,_0x249421){super(),this['_editor']=_0x512beb,this['_editing']=_0x40aa83,this['_dialog']=_0x512beb['plugins']['get'](_0x16cd90),this['_api']=_0x40aa83['ctxElement']['getAPI'](),this['_type']=_0x249421,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:_0x3ca240,model:_0x2bc95e}=this['_editor'],_0x30fe9a=_0x2bc95e['document']['selection']['getSelectedElement'](),_0x31030e=_0x30fe9a&&(_0x30fe9a['is']('element','imageBlock')||_0x30fe9a['is']('element','imageInline'));this['_formView']=new x(_0x3ca240,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1a612b,'title':_(_0x3ca240,this['_type'],_0x31030e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2cd43a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xfb1ec3=>!A(_0xfb1ec3,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x47dff8}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2d6aef=>{const _0x302ee9=_0x47dff8['length'];for(const _0x4bb75e of _0x47dff8){const _0x5a408a=_0x4bb75e===_0x47dff8[_0x302ee9-0x1],{cdnUrl:_0x399726,fileInfo:_0x465084}=_0x4bb75e;if(!_0x399726||!_0x465084)continue;const {width:_0xad9b71,height:_0x323044}=_0x465084['imageInfo'],_0x47eed8=S(_0x399726,_0xad9b71,_0x323044),_0x59f543=C(_0x399726,_0x47eed8['width']),_0x3a7939={'id':_0x465084['uuid'],'type':'image','attributes':{'imageDimension':_0x47eed8,..._0x59f543}};this['_insertAsset'](_0x3a7939,_0x5a408a,_0x2d6aef);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2a8355=>{'idle'===_0x2a8355['detail']['status']&&!_0x2a8355['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x243063,_0x59ce69,_0x335f9a){const _0xbf1fd0=this['_editor']['model']['document']['selection'],_0x514f01=_0xbf1fd0['getSelectedElement'](),_0xab07cc=!(!_0x514f01||!_0x514f01['is']('element','imageInline'));_0x335f9a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x243063,_0xab07cc),_0x59ce69||_0x335f9a['setSelection'](_0xbf1fd0['getLastPosition']());}['_insertImage'](_0xa81391,_0x166fad){const _0x412a2e=this['_editor'],{imageDimension:_0x18475b,imageFallbackUrl:_0x527507,imageSources:_0x13ca35}=_0xa81391['attributes'];_0x412a2e['execute']('insertImage',{'imageType':_0x166fad?'imageInline':null,'source':{'uploadcareImageId':_0xa81391['id'],'src':_0x527507,'sources':_0x13ca35,..._0x18475b}});}}class w extends _0x2950ea{['_editing'];['_controller']=null;static get['requires'](){return[_0x16cd90,o];}constructor(_0x128df3){super(_0x128df3),this['_editing']=_0x128df3['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4cd128){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4cd128);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x2b08d1,..._0x43a76e}){return _0x5a9775(_0x2b08d1,_0x43a76e);}static['getInfo'](_0x1092c8,_0x52b38b){return _0x3c892d(_0x1092c8,_0x52b38b);}}class f extends _0x50d93f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x36a1ea,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x38298e=this['editor'];if(!!!_0x38298e['config']['get']('uploadcare'))return;_0x38298e['plugins']['get'](_0x36a1ea)['createUploadAdapter']=_0x564ae7=>new k(_0x564ae7,_0x38298e),_0x38298e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x599c4f,{imageElement:_0xec0316,data:_0x5671de})=>{_0x38298e['model']['change'](_0x382cc8=>{_0x382cc8['setAttribute']('uploadcareImageId',_0x5671de['uploadcareImageId'],_0xec0316);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4897c8,_0xc5cbbc){this['loader']=_0x4897c8,this['editor']=_0xc5cbbc,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x166c23=await this['loader']['file'];return j['upload']({'file':_0x166c23,'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':_0x1448bb=>{_0x1448bb&&_0x1448bb['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1448bb['value']);}})['then'](async _0x53b15e=>{const {imageFallbackUrl:_0x1b00e7,imageSources:_0x315b57}=C(_0x53b15e['cdnUrl'],_0x53b15e['imageInfo']['width']);return{'uploadcareImageId':_0x53b15e['uuid'],'default':_0x1b00e7,'sources':_0x315b57};})['catch'](()=>{const _0x2faf9a=t('Cannot\x20upload\x20file:')+('\x20'+_0x166c23['name']+'.');return Promise['reject'](_0x2faf9a);});}['abort'](){this['controller']['abort']();}}class o extends _0x50d93f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x16cd90];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4a8877){super(_0x4a8877),this['ucContextId']=_0x557d61();}['init'](){const _0x35ae52=this['editor'];_0x35ae52['commands']['add']('uploadcare',new w(_0x35ae52));}['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 _0x862ab1=_0x2af7a5['document']['querySelector']('input[uploadcare-file-input]');_0x862ab1&&_0x862ab1['remove']();}),async function(_0x43f0f8){const _0x364a12=_0x3fc4af([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]),_0x46e2d6=0x535f8c3a,_0x80ed48=0x5358f622^_0x46e2d6,_0x151bc6=window[_0x3fc4af([0x44,0x61,0x74,0x65])][_0x3fc4af([0x6e,0x6f,0x77])](),_0x1fa5a6=_0x43f0f8[_0x3fc4af([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17695d=new window[(_0x3fc4af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f20c7=>{_0x1fa5a6[_0x3fc4af([0x6f,0x6e,0x63,0x65])](_0x3fc4af([0x72,0x65,0x61,0x64,0x79]),_0x4f20c7);}),_0x3f0c15={[_0x3fc4af([0x6b,0x74,0x79])]:_0x3fc4af([0x45,0x43]),[_0x3fc4af([0x75,0x73,0x65])]:_0x3fc4af([0x73,0x69,0x67]),[_0x3fc4af([0x63,0x72,0x76])]:_0x3fc4af([0x50,0x2d,0x32,0x35,0x36]),[_0x3fc4af([0x78])]:_0x3fc4af([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]),[_0x3fc4af([0x79])]:_0x3fc4af([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]),[_0x3fc4af([0x61,0x6c,0x67])]:_0x3fc4af([0x45,0x53,0x32,0x35,0x36])},_0x197228=_0x1fa5a6[_0x3fc4af([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3fc4af([0x67,0x65,0x74])](_0x3fc4af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x379f16(){let _0x52a92f,_0x32fcbc=null,_0x36c0d6=null;try{if(_0x197228==_0x3fc4af([0x47,0x50,0x4c]))return _0x3fc4af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52a92f=_0x51672d(),!_0x52a92f)return _0x3fc4af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52a92f[_0x3fc4af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36c0d6=_0x5c86cf(_0x52a92f[_0x3fc4af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52a92f[_0x3fc4af([0x6a,0x74,0x69])])),await _0x2224ac()?_0x580903()?_0x3331e9()?_0x3fc4af([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x163818()?(_0x52a92f[_0x3fc4af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fc4af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32fcbc=_0x5899bc(_0x3fc4af([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x52a92f[_0x3fc4af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fc4af([0x74,0x72,0x69,0x61,0x6c])&&(_0x32fcbc=_0x5899bc(_0x3fc4af([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x947e3f()):_0x3fc4af([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3fc4af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3fc4af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3fc4af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3331e9(){const _0x55149f=[_0x3fc4af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3fc4af([0x74,0x72,0x69,0x61,0x6c])][_0x3fc4af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52a92f[_0x3fc4af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x151bc6/0x3e8:0xe10*_0x80ed48;return _0x52a92f[_0x3fc4af([0x65,0x78,0x70])]<_0x55149f;}function _0x580903(){const _0x3843a4=_0x52a92f[_0x3fc4af([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3843a4&&(!!_0x3843a4[_0x3fc4af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fc4af([0x2a]))||!!_0x3843a4[_0x3fc4af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fc4af([0x55,0x50,0x4c,0x43])));}function _0x163818(){const _0x56ffe8=_0x52a92f[_0x3fc4af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56ffe8||0x0==_0x56ffe8[_0x3fc4af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x11528d}=new URL(window[_0x3fc4af([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x56ffe8[_0x3fc4af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11528d))return!0x0;const _0x40355a=_0x11528d[_0x3fc4af([0x73,0x70,0x6c,0x69,0x74])](_0x3fc4af([0x2e]));return _0x56ffe8[_0x3fc4af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57beea=>_0x57beea[_0x3fc4af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fc4af([0x2a])))[_0x3fc4af([0x6d,0x61,0x70])](_0x5e95a4=>_0x5e95a4[_0x3fc4af([0x73,0x70,0x6c,0x69,0x74])](_0x3fc4af([0x2e])))[_0x3fc4af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1db942=>_0x1db942[_0x3fc4af([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40355a[_0x3fc4af([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3fc4af([0x6d,0x61,0x70])](_0x294573=>Array(_0x40355a[_0x3fc4af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x294573[_0x3fc4af([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3fc4af([0x66,0x69,0x6c,0x6c])](_0x294573[0x0]===_0x3fc4af([0x2a])?_0x3fc4af([0x2a]):'')[_0x3fc4af([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x294573))[_0x3fc4af([0x73,0x6f,0x6d,0x65])](_0x15471f=>_0x40355a[_0x3fc4af([0x65,0x76,0x65,0x72,0x79])]((_0x1a71f0,_0xb7ec22)=>_0x15471f[_0xb7ec22]===_0x1a71f0||_0x15471f[_0xb7ec22]===_0x3fc4af([0x2a])));}function _0x947e3f(){return _0x32fcbc&&_0x36c0d6?new window[(_0x3fc4af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f253b,_0x1df2b5)=>{_0x32fcbc[_0x3fc4af([0x74,0x68,0x65,0x6e])](_0x3f253b,_0x1df2b5),_0x36c0d6[_0x3fc4af([0x74,0x68,0x65,0x6e])](_0x47facb=>{_0x47facb!=_0x3fc4af([0x56,0x61,0x6c,0x69,0x64])&&_0x3f253b(_0x47facb);},_0x1df2b5);}):_0x32fcbc||_0x36c0d6||_0x3fc4af([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c86cf(_0x562f38,_0x13931){return new window[(_0x3fc4af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45d32a=>{if(_0x224db9())return _0x45d32a(_0x3fc4af([0x56,0x61,0x6c,0x69,0x64]));_0x5b207a(),_0x1fa5a6[_0x3fc4af([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3fc4af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x30da5c=!0x1;const _0x5dbabe=_0x557d61();function _0x4f612c(_0x281f1e){return!!_0x281f1e&&(typeof _0x281f1e===_0x3fc4af([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x281f1e===_0x3fc4af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x281f1e[_0x3fc4af([0x74,0x68,0x65,0x6e])]===_0x3fc4af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x281f1e[_0x3fc4af([0x63,0x61,0x74,0x63,0x68])]===_0x3fc4af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3834df(_0x11ae7a){_0x194e5a(_0x11ae7a)[_0x3fc4af([0x74,0x68,0x65,0x6e])](_0x5040e7=>{if(!_0x5040e7||_0x5040e7[_0x3fc4af([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3fc4af([0x6f,0x6b]))return _0x3fc4af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19d39c(_0x2ceb51(_0x5dbabe+_0x13931))!=_0x5040e7[_0x3fc4af([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3fc4af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3fc4af([0x56,0x61,0x6c,0x69,0x64]);})[_0x3fc4af([0x74,0x68,0x65,0x6e])](_0x54c435=>(_0x37f34b(),_0x54c435),()=>{const _0x1806f0=_0x26a450();return null==_0x1806f0?(_0x37f34b(),_0x3fc4af([0x56,0x61,0x6c,0x69,0x64])):_0x3fc4af(_0x151bc6-_0x1806f0>(0x7753083a^_0x46e2d6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3fc4af([0x74,0x68,0x65,0x6e])](_0x45d32a)[_0x3fc4af([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45d32a(_0x3fc4af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c6dc1=0x536962ba^_0x46e2d6;function _0x37f34b(){const _0xab2584=_0x3fc4af([0x6c,0x6c,0x63,0x74,0x2d])+_0x19d39c(_0x2ceb51(_0x562f38)),_0x31a597=_0x21faf1(_0x19d39c(window[_0x3fc4af([0x4d,0x61,0x74,0x68])][_0x3fc4af([0x63,0x65,0x69,0x6c])](_0x151bc6/_0x2c6dc1)));window[_0x3fc4af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fc4af([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xab2584,_0x31a597);}function _0x26a450(){const _0x38c311=_0x3fc4af([0x6c,0x6c,0x63,0x74,0x2d])+_0x19d39c(_0x2ceb51(_0x562f38)),_0x44d306=window[_0x3fc4af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fc4af([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38c311);return _0x44d306?window[_0x3fc4af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21faf1(_0x44d306),0x10)*_0x2c6dc1:null;}function _0x194e5a(_0x11459d){return new window[(_0x3fc4af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58283c,_0x5a610f)=>{_0x11459d[_0x3fc4af([0x74,0x68,0x65,0x6e])](_0x58283c,_0x5a610f),window[_0x3fc4af([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a610f,0x535e58fa^_0x46e2d6);});}}_0x1fa5a6[_0x3fc4af([0x6f,0x6e])](_0x3fc4af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x208174,_0x2da919)=>{if(_0x2da919[0x0]!=_0x562f38)return _0x45d32a(_0x3fc4af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2da919[0x1]={..._0x2da919[0x1],[_0x3fc4af([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5dbabe};},{[_0x3fc4af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fc4af([0x68,0x69,0x67,0x68])}),_0x1fa5a6[_0x3fc4af([0x6f,0x6e])](_0x3fc4af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x471543=>{_0x4f612c(_0x471543[_0x3fc4af([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x30da5c=!0x0,_0x3834df(_0x471543[_0x3fc4af([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3fc4af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fc4af([0x6c,0x6f,0x77])}),_0x17695d[_0x3fc4af([0x74,0x68,0x65,0x6e])](()=>{_0x30da5c||_0x45d32a(_0x3fc4af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x224db9(){return _0x1fa5a6[_0x3fc4af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fc4af([0x76,0x69,0x65,0x77])][_0x3fc4af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3fc4af([0x61,0x75,0x74,0x6f]);}function _0x5b207a(){_0x1fa5a6[_0x3fc4af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fc4af([0x76,0x69,0x65,0x77])][_0x3fc4af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fc4af([0x61,0x75,0x74,0x6f]);}}function _0x5899bc(_0x589209){const _0x4e3eb0=[new window[(_0x3fc4af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x486b29=>setTimeout(_0x486b29,0x5356b2f6^_0x46e2d6)),_0x17695d[_0x3fc4af([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3fc4af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cc874=>{let _0x389601=0x0;_0x1fa5a6[_0x3fc4af([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fc4af([0x6f,0x6e])](_0x3fc4af([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe36c52,_0x474f1d)=>{_0x474f1d[0x0][_0x3fc4af([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x389601++,_0x389601==(0x535f8dc2^_0x46e2d6)&&(_0x3cc874(),_0xe36c52[_0x3fc4af([0x6f,0x66,0x66])]());});}))];return window[_0x3fc4af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fc4af([0x72,0x61,0x63,0x65])](_0x4e3eb0)[_0x3fc4af([0x74,0x68,0x65,0x6e])](()=>_0x589209);}async function _0x7c39d6(){await _0x17695d,_0x1fa5a6[_0x3fc4af([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fc4af([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x486bea,_0x1fa5a6[_0x3fc4af([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fc4af([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x486bea,_0x1fa5a6[_0x3fc4af([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3fc4af([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51f8bf(_0x13c86b){const _0x513ac1=_0x7d6c79();_0x1fa5a6[_0x513ac1]=_0x3fc4af([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x13c86b,_0x13c86b!=_0x3fc4af([0x56,0x61,0x6c,0x69,0x64])&&_0x7c39d6();}function _0x7d6c79(){const _0x43f75a=window[_0x3fc4af([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3fc4af([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3fc4af([0x6e,0x6f,0x77])]())[_0x3fc4af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3fc4af([0x2e]),'');let _0xa3333=_0x3fc4af([0x68]);for(let _0x3585ca=0x0;_0x3585ca<_0x43f75a[_0x3fc4af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3585ca+=0x2){let _0x36c0fb=window[_0x3fc4af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43f75a[_0x3fc4af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3585ca,_0x3585ca+0x2));_0x36c0fb>=_0x364a12[_0x3fc4af([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36c0fb-=_0x364a12[_0x3fc4af([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa3333+=_0x364a12[_0x36c0fb];}return _0xa3333;}function _0x51672d(){const _0xeb0baa=_0x197228[_0x3fc4af([0x73,0x70,0x6c,0x69,0x74])](_0x3fc4af([0x2e]));if(0x3!=_0xeb0baa[_0x3fc4af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x220acf(_0xeb0baa[0x1]);function _0x220acf(_0x42e573){const _0x41a4dd=_0x2c6eaa(_0x42e573);return _0x41a4dd&&_0x414bea()?_0x41a4dd:null;function _0x414bea(){const _0x4e1381=_0x41a4dd[_0x3fc4af([0x6a,0x74,0x69])],_0x4b5ec3=window[_0x3fc4af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e1381[_0x3fc4af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e1381[_0x3fc4af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16c893={..._0x41a4dd,[_0x3fc4af([0x6a,0x74,0x69])]:_0x4e1381[_0x3fc4af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e1381[_0x3fc4af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16c893[_0x3fc4af([0x76,0x63])],_0x2ceb51(_0x16c893)==_0x4b5ec3;}}}async function _0x2224ac(){let _0x4b1d07=!0x0;try{const _0x288a5d=_0x197228[_0x3fc4af([0x73,0x70,0x6c,0x69,0x74])](_0x3fc4af([0x2e])),[_0x45c57d,_0x55087a,_0x2b345e]=_0x288a5d;return _0x41c39b(_0x45c57d),await _0xc21a6c(_0x45c57d,_0x55087a,_0x2b345e),_0x4b1d07;}catch{return!0x1;}function _0x41c39b(_0x13476a){const _0x5d034a=_0x2c6eaa(_0x13476a);_0x5d034a&&_0x5d034a[_0x3fc4af([0x61,0x6c,0x67])]==_0x3fc4af([0x45,0x53,0x32,0x35,0x36])||(_0x4b1d07=!0x1);}async function _0xc21a6c(_0x459012,_0x541c43,_0x41b0a9){const _0xa504e6=window[_0x3fc4af([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3fc4af([0x66,0x72,0x6f,0x6d])](_0x4e5bde(_0x41b0a9),_0x245182=>_0x245182[_0x3fc4af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1fc8e8=new window[(_0x3fc4af([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3fc4af([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x459012+_0x3fc4af([0x2e])+_0x541c43),_0x3b6a7b=window[_0x3fc4af([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3fc4af([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b6a7b)return;const _0x45fab6=await _0x3b6a7b[_0x3fc4af([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3fc4af([0x6a,0x77,0x6b]),_0x3f0c15,{[_0x3fc4af([0x6e,0x61,0x6d,0x65])]:_0x3fc4af([0x45,0x43,0x44,0x53,0x41]),[_0x3fc4af([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3fc4af([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3fc4af([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b6a7b[_0x3fc4af([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3fc4af([0x6e,0x61,0x6d,0x65])]:_0x3fc4af([0x45,0x43,0x44,0x53,0x41]),[_0x3fc4af([0x68,0x61,0x73,0x68])]:{[_0x3fc4af([0x6e,0x61,0x6d,0x65])]:_0x3fc4af([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x45fab6,_0xa504e6,_0x1fc8e8)||(_0x4b1d07=!0x1);}}function _0x2c6eaa(_0x545260){return _0x545260[_0x3fc4af([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3fc4af([0x65,0x79]))?JSON[_0x3fc4af([0x70,0x61,0x72,0x73,0x65])](_0x4e5bde(_0x545260)):null;}function _0x4e5bde(_0x178ffc){return window[_0x3fc4af([0x61,0x74,0x6f,0x62])](_0x178ffc[_0x3fc4af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3fc4af([0x2b]))[_0x3fc4af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3fc4af([0x2f])));}function _0x2ceb51(_0x27836f){let _0x26a2c1=0x1505;function _0x5bcf22(_0x478c05){for(let _0x84c76f=0x0;_0x84c76f<_0x478c05[_0x3fc4af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x84c76f++){const _0x46fc87=_0x478c05[_0x3fc4af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x84c76f);_0x26a2c1=(_0x26a2c1<<0x5)+_0x26a2c1+_0x46fc87,_0x26a2c1&=_0x26a2c1;}}function _0x25970c(_0x130d3e){Array[_0x3fc4af([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x130d3e)?_0x130d3e[_0x3fc4af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25970c):_0x130d3e&&typeof _0x130d3e==_0x3fc4af([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3fc4af([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x130d3e)[_0x3fc4af([0x73,0x6f,0x72,0x74])]()[_0x3fc4af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32bc22,_0x3448b5])=>{_0x5bcf22(_0x32bc22),_0x25970c(_0x3448b5);}):_0x5bcf22(window[_0x3fc4af([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x130d3e));}return _0x25970c(_0x27836f),_0x26a2c1>>>0x0;}function _0x19d39c(_0x3cd2ae){return _0x3cd2ae[_0x3fc4af([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3fc4af([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3fc4af([0x30]));}function _0x21faf1(_0x199447){return _0x199447[_0x3fc4af([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3fc4af([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3fc4af([0x6a,0x6f,0x69,0x6e])]('');}function _0x486bea(){}function _0x3fc4af(_0x2bfca1){return _0x2bfca1['map'](_0x42ef95=>String['fromCharCode'](_0x42ef95))['join']('');}_0x51f8bf(await _0x379f16());}(this);}['_initSchema'](){const _0x21fdd0=this['editor']['model']['schema'];_0x21fdd0['isRegistered']('imageBlock')&&_0x21fdd0['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x21fdd0['isRegistered']('imageInline')&&_0x21fdd0['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xb91b2e=this['editor'];_0xb91b2e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xb91b2e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x398105=>_0x398105['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x39be66=_0xb91b2e['commands']['get']('replaceImageSource');_0x39be66&&this['listenTo'](_0x39be66,'cleanupImage',(_0x5a5ce4,[_0x248a92,_0x53a0e2])=>{_0x248a92['removeAttribute']('uploadcareImageId',_0x53a0e2);});}['_initConfig'](){const _0x4308f0=this['editor']['config']['get']('uploadcare.uploader')||{},_0x39df18=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x50ab71(_0x2af7a5['document'],'uc-config',{..._0x4308f0,'pubkey':_0x39df18,'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']=_0x2e52ab=>{if('closeMax'==_0x2e52ab)return'#uc-icon-arrow-down';},_0x2af7a5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x50ab71(_0x2af7a5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2af7a5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xc7e99c=this['editor']['commands']['get']('insertImage');_0xc7e99c&&this['listenTo'](_0xc7e99c,'execute',()=>{const _0x62865b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x62865b&&_0x62865b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x62865b);});});const _0x4750ce=this['editor']['commands']['get']('uploadcareImageReplace');_0x4750ce&&this['listenTo'](_0x4750ce,'execute',()=>{const _0x1d7689=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1d7689&&_0x1d7689['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1d7689);});});}}class tt extends _0x50d93f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29e18e){super(_0x29e18e),_0x29e18e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4619a7['defineComponents'](_0x4619a7),this['_defineLocale']();}['_defineLocale'](){const _0x5bc365=this['editor']['config']['get']('uploadcare.locale'),_0x39c437=this['editor']['locale']['contentLanguage'];_0x5bc365&&_0x4619a7['defineLocale'](_0x39c437,_0x5bc365);}}class ii extends _0x307b01{constructor(_0xa73ad2){super(_0xa73ad2);const t=_0xa73ad2['t'],_0x5047ce=this['bindTemplate'],_0x9eec77=new _0x30ccdc();_0x9eec77['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':[_0x9eec77,{'text':_0x5047ce['to']('imageUploadProgress',_0x235ad8=>t('Loading\x20image...')+'\x20('+(_0x235ad8||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 _0x307b01{constructor(_0x2dcdfc){super(_0x2dcdfc);const t=_0x2dcdfc['t'];this['set']('errorType',null);const _0xca19e=new _0x3bda9b(_0x2dcdfc);_0xca19e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xca19e['withText']=!0x0,_0xca19e['class']='ck-button-action',_0xca19e['on']('execute',()=>{this['fire']('retry');}),_0xca19e['bind']('isVisible')['to'](this,'errorType',_0x24f77e=>'NotFound'!==_0x24f77e);const _0x20c816=new _0x3b3b25();_0x20c816['content']=_0x5368f9,_0x20c816['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x399b10=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':[_0x20c816,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x399b10['to']('errorType',_0x245795=>t('NotFound'!==_0x245795?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xca19e]},{'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 _0x307b01{constructor(_0x102a5c,_0x2e1f30){super(_0x102a5c);const _0x21dc5b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2e1f30,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x21dc5b['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3c19bf,_0x2d6f28,_0x5f5af0){super(_0x3c19bf),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3c19bf),this['_errorView']=new ti(_0x3c19bf),this['_editingView']=new ei(_0x3c19bf,_0x5f5af0),this['_focusableView']=new _0x307b01(_0x3c19bf),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2d6f28),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'],_0x58197e=>{this['_addUploadcareImageEditorListeners'](_0x58197e);});}),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'](_0x255284,_0x57a712){const _0x117d15='uc-cloud-image-editor',_0x3f7d6d=_0x255284['querySelector'](_0x117d15);if(_0x3f7d6d)return _0x57a712(_0x3f7d6d);const _0x55d1bb=new MutationObserver(_0xd0aedf=>{const _0x908c99=_0xd0aedf['filter'](_0x3ab826=>_0x3ab826['target']===_0x255284&&_0x3ab826['addedNodes']['length']>0x0&&_0x3ab826['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x117d15);_0x908c99['length']&&(_0x55d1bb['disconnect'](),_0x57a712(_0x908c99[0x0]['addedNodes'][0x0]));});_0x55d1bb['observe'](_0x255284,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x55a8af){_0x55a8af['addEventListener']('apply',_0x98b5f8=>{this['fire']('apply',{'imageSrc':_0x98b5f8['detail']['cdnUrl']});}),_0x55a8af['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2fa053(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2d4415,_0x420b45,_0x5e7da0){super(),this['_editor']=_0x2d4415,this['_dialog']=_0x420b45,this['_imageElement']=_0x5e7da0,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 _0x32acbb=this['_imageElement'],_0x5e8a55=_0x32acbb['getAttribute']('uploadcareImageId'),_0x3dd729=_0x32acbb['getAttribute']('src');if(_0x5e8a55)await this['_loadImageInfo'](_0x5e8a55,_0x3dd729);else{if(this['_imageCache']['has'](_0x3dd729)){const _0x32bf0=this['_imageCache']['get'](_0x3dd729);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32bf0['url'],this['imageDimension']=_0x32bf0['dimension'],this['imageId']=_0x32bf0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1ee96e}=this['_editor'],t=_0x1ee96e['t'],_0x5d37bf=new X(_0x1ee96e,this['imageStatus'],this['_attributes']);_0x5d37bf['bind']('status')['to'](this,'imageStatus'),_0x5d37bf['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5d37bf['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5d37bf['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5d37bf,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x42d718,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5d37bf,'position':_0x2cd43a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5d37bf['focus']();},'onHide':()=>{_0x5d37bf['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x59e26a=>!A(_0x59e26a,_0x5d37bf['element'])}});}['_loadImageInfo'](_0x398c08,_0x13f590){return j['getInfo'](_0x398c08,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2f7fdc=>{const {width:_0x5160b5,height:_0x523b3a}=_0x2f7fdc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13f590,this['imageDimension']={'width':_0x5160b5,'height':_0x523b3a},this['imageId']=_0x398c08;})['catch'](_0x302d3f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x302d3f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x25f0f1,_0x2ad47d){return this['_getImageAsFile'](_0x25f0f1)['then'](_0x503993=>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':_0x2ad47d['signal'],'file':_0x503993,'onProgress':_0x173d5a=>{_0x173d5a&&_0x173d5a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x173d5a['value']));}}))['then'](_0x1aa3be=>{const {width:_0x1c1ab1,height:_0x3286f2}=_0x1aa3be['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1aa3be['cdnUrl'],this['imageDimension']={'width':_0x1c1ab1,'height':_0x3286f2},this['imageId']=_0x1aa3be['uuid'],this['imageUploadProgress']=null;const _0x543c1a=_0x25f0f1['getAttribute']('src');this['_imageCache']['set'](_0x543c1a,{'id':_0x1aa3be['uuid'],'url':_0x1aa3be['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x27236c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x27236c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x348c65,_0x5009d0){_0x348c65['on']('apply',(_0x508213,_0x13962d)=>{this['_replaceImage'](_0x5009d0,_0x13962d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x348c65['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x348c65['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x30878e,_0x414405,_0x4ec0f4){const _0x55312a=this['_editor'],{width:_0x61f706,height:_0x1505c}=S(_0x414405,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2c6a2c,imageSources:_0x5b596c}=C(_0x414405,_0x61f706);_0x55312a['model']['change'](_0x4988bf=>{if('$graveyard'===_0x30878e['root']['rootName']){_0x55312a['execute']('insertImage',{'imageType':_0x30878e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x30878e['getAttributes']()),'uploadcareImageId':_0x4ec0f4,'src':_0x2c6a2c,'sources':_0x5b596c,'width':_0x61f706,'height':_0x1505c}});const _0x588f0d=_0x30878e['getChildren']();_0x30878e=_0x55312a['model']['document']['selection']['getSelectedElement']();for(const _0x2d13c9 of _0x588f0d)_0x4988bf['append'](_0x4988bf['cloneElement'](_0x2d13c9),_0x30878e);}else _0x4988bf['setSelection'](_0x30878e,'on'),_0x55312a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x30878e['getAttributes']()),'uploadcareImageId':_0x4ec0f4,'src':_0x2c6a2c,'sources':_0x5b596c,'width':_0x61f706,'height':_0x1505c},_0x30878e);_0x4988bf['setSelection'](_0x30878e,'on');});}async['_getImageAsFile'](_0x5307fc){const _0x207d7b=_0x2af7a5['window'],_0x16cf94=_0x2af7a5['document']['location']['href'],_0x2ec2fb=new _0x207d7b['URL'](_0x5307fc['getAttribute']('src'),_0x16cf94);if('data:'===_0x2ec2fb['protocol']){const _0x1d7de0=_0x2ec2fb['href']['split'](','),_0x7ad304=_0x1d7de0[0x0]['match'](/:(.*?);/)[0x1],_0x48d665=_0x7ad304['split']('/')[0x1],_0x1d3329=_0x207d7b['atob'](_0x1d7de0[_0x1d7de0['length']-0x1]);let _0x1f3226=_0x1d3329['length'];const _0x1ab830=new _0x207d7b['Uint8Array'](_0x1f3226);for(;_0x1f3226--;)_0x1ab830[_0x1f3226]=_0x1d3329['charCodeAt'](_0x1f3226);return new _0x207d7b['File']([_0x1ab830],'image.'+_0x48d665,{'type':_0x7ad304});}const _0x5a1ff=_0x2ec2fb['href']['split']('/'),_0x30d2f7=_0x5a1ff[_0x5a1ff['length']-0x1],_0x115e72=_0x30d2f7['split']('.')[0x1];return _0x207d7b['fetch'](_0x2ec2fb['href'])['then'](_0x5e00c4=>_0x5e00c4['clone']()['blob']())['then'](_0x55edc9=>new _0x207d7b['File']([_0x55edc9],_0x30d2f7,{'type':'image/'+_0x115e72}));}}class O extends _0x2950ea{['imageEditController'];static get['requires'](){return[_0x16cd90];}['_isEditable'];constructor(_0x2d83fa){super(_0x2d83fa),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x12a50d){const _0x814bd6=G(_0x12a50d);return _0x57be87=>!(!_0x57be87||!_0x57be87['is']('element','imageBlock')&&!_0x57be87['is']('element','imageInline'))&&(!!_0x57be87['hasAttribute']('uploadcareImageId')||!!_0x57be87['hasAttribute']('src')&&_0x814bd6(_0x57be87['getAttribute']('src')));}(_0x2d83fa['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x14b179=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x14b179);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x53a66d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x53a66d&&(_0x53a66d['is']('element','imageBlock')||_0x53a66d['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x16cd90),_0x53a66d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x2950ea{['refresh'](){const _0x5250cd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5250cd&&(_0x5250cd['is']('element','imageBlock')||_0x5250cd['is']('element','imageInline')));}['execute'](_0x53aba1){const _0x74e4f3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x55bfd7=>{_0x55bfd7['setAttributes'](_0x53aba1,_0x74e4f3),_0x55bfd7['removeAttribute']('srcset',_0x74e4f3),_0x55bfd7['removeAttribute']('sizes',_0x74e4f3);});}}class m extends _0x50d93f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3e2f7c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1d9cec}=this;_0x1d9cec['commands']['add']('uploadcareImageEdit',new O(_0x1d9cec)),_0x1d9cec['commands']['add']('uploadcareImageReplace',new R(_0x1d9cec));}}class g extends _0x50d93f{['_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 _0x51c2db=this['editor'];_0x51c2db['ui']['componentFactory']['add']('uploadcareImageEdit',_0x333c85=>{const _0x37d0de=_0x51c2db['commands']['get']('uploadcareImageEdit'),_0x55f890=new _0x3bda9b(_0x333c85),t=_0x333c85['t'];return _0x55f890['set']({'icon':_0x42d718,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x55f890['bind']('isEnabled')['to'](_0x37d0de),_0x55f890['bind']('isOn')['to'](_0x37d0de,'isActive'),this['listenTo'](_0x55f890,'execute',()=>{_0x51c2db['execute']('uploadcareImageEdit'),_0x51c2db['editing']['view']['focus']();}),_0x55f890;}),this['_initConfig']();}['_initConfig'](){const _0x9fe196=_0x50ab71(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x9fe196),this['listenTo'](this['editor'],'destroy',()=>{_0x9fe196['remove']();});}}class et extends _0x50d93f{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 _0x40a027,Command as _0x1805a0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3f17cc,IconGooglePhotos as _0x320109,IconGoogleDrive as _0x1a6fa3,IconFacebook as _0x29c687,IconDropbox as _0x539a71,IconUploadcareLink as _0x349338,IconUploadcareImageUpload as _0x2a2a2e,IconError as _0x3f8c3e,IconUploadcareImageEdit as _0x21b4d9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x23d61e,MenuBarMenuListItemButtonView as _0x48c943,View as _0x255f97,FocusCycler as _0x3bb36c,Dialog as _0x54518c,DialogViewPosition as _0x2a21c1,SpinnerView as _0xae7dea,IconView as _0x15cd82,Notification as _0x450039}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x11b6cc,DomEmitterMixin as _0x9b0dcd,global as _0x49a30f,getAncestors as _0x587559,ObservableMixin as _0x2308c3,uid as _0x5c4a34,createElement as _0x43e691}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x179ffb}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x70a705,info as _0x5a4252}from'@uploadcare/upload-client';import*as _0x2a9564 from'@uploadcare/file-uploader';var i=function(_0x2bfd19){return _0x2bfd19['Local']='local',_0x2bfd19['URL']='url',_0x2bfd19['Dropbox']='dropbox',_0x2bfd19['GDrive']='gdrive',_0x2bfd19['Facebook']='facebook',_0x2bfd19['GPhotos']='gphotos',_0x2bfd19['OneDrive']='onedrive',_0x2bfd19;}({});function _(_0x38b4b5,_0x175bfc,_0x581fab){const t=_0x38b4b5['t'],_0x34b641=_0x38b4b5['t'];switch(_0x175bfc){case i['Local']:return{'text':_0x34b641('Insert'===_0x581fab?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x34b641('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x581fab?_0x34b641('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x34b641('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x581fab?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x581fab?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x581fab?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x581fab?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x581fab?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x175bfc;}}class e extends _0x40a027{['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 _0x6af407=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ce458;for(const _0x317c4 in _0x6af407){const _0x413166=_0x317c4,_0x299ca8=_0x6af407[_0x413166];if('uploadcareLicenseKeyValid'==_0x299ca8||'uploadcareLicenseKeyInvalid'==_0x299ca8||'uploadcareLicenseKeyExpired'==_0x299ca8||'uploadcareLicenseKeyDomainLimit'==_0x299ca8||'uploadcareLicenseKeyNotAllowed'==_0x299ca8||'uploadcareLicenseKeyEvaluationLimit'==_0x299ca8||'uploadcareLicenseKeyTrialLimit'==_0x299ca8||'uploadcareLicenseKeyUsageLimit'==_0x299ca8){delete _0x6af407[_0x413166],_0x1ce458=_0x299ca8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1ce458&&_0x6af407['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1ce458&&_0x6af407['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1ce458&&_0x6af407['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1ce458&&_0x6af407['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1ce458&&_0x6af407['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1ce458&&_0x6af407['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1ce458&&_0x6af407['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x213868}=this,_0x2d341c=_0x213868['commands']['get']('uploadcare');if(!_0x2d341c)return;const _0x594a34=this['_normalizeConfigSourceList'](_0x213868['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4cfccd,_0x29712f)=>{const _0x697a54=this['_getIntegrationKey'](_0x29712f['type']);return _0x4cfccd[_0x697a54]||(_0x4cfccd[_0x697a54]=[]),_0x4cfccd[_0x697a54]['push'](_0x29712f),_0x4cfccd;},{});_0x213868['plugins']['has']('ImageInsertUI')&&_0x213868['commands']['get']('uploadcare')&&Object['entries'](_0x594a34)['forEach'](([_0x55ea18,_0x1d7f30])=>{_0x213868['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x55ea18,'observable':()=>_0x2d341c,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1d7f30),'formViewCreator':()=>this['_createDropdownButtons'](_0x1d7f30),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1d7f30),'override':'assetManager'!==_0x55ea18});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x493d6f){const {locale:_0x5e9a41}=this['editor'];return _0x493d6f['map'](_0x9bafb3=>{const _0x5e187c=_(_0x5e9a41,_0x9bafb3,'Insert');switch(_0x9bafb3){case i['Local']:return{'icon':_0x2a2a2e,'type':i['Local'],..._0x5e187c};case i['URL']:return{'icon':_0x349338,'type':i['URL'],..._0x5e187c};case i['Dropbox']:return{'icon':_0x539a71,'type':i['Dropbox'],..._0x5e187c};case i['Facebook']:return{'icon':_0x29c687,'type':i['Facebook'],..._0x5e187c};case i['GDrive']:return{'icon':_0x1a6fa3,'type':i['GDrive'],..._0x5e187c};case i['GPhotos']:return{'icon':_0x320109,'type':i['GPhotos'],..._0x5e187c};case i['OneDrive']:return{'icon':_0x3f17cc,'type':i['OneDrive'],..._0x5e187c};}});}['_getIntegrationKey'](_0xe70d4a){switch(_0xe70d4a){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x54377d,_0x3454d3){const _0x5814f3=this['editor'],_0x3da80a=new _0x54377d(_0x5814f3['locale']),_0x2b93cf=_0x5814f3['commands']['get']('uploadcare');return _0x3da80a['bind']('isEnabled')['to'](_0x2b93cf),_0x3da80a['on']('execute',()=>{_0x2b93cf['execute'](_0x3454d3);}),_0x3da80a;}['_createToolbarButton'](_0x302380){const {locale:_0x3de68c}=this['editor'],_0x10d09e=this['editor']['plugins']['get']('ImageInsertUI'),_0x405b29=_0x302380[0x0],_0x600cfb=this['_createButton'](_0x23d61e,_0x405b29['type']);return _0x600cfb['icon']=_0x405b29['icon'],_0x600cfb['bind']('label')['to'](_0x10d09e,'isImageSelected',_0x1b6f23=>_(_0x3de68c,_0x405b29['type'],_0x1b6f23?'Replace':'Insert')['text']),_0x600cfb['tooltip']=!0x0,_0x600cfb;}['_createDropdownButtons'](_0xdcb275){const {locale:_0x166e23}=this['editor'],_0x24447a=this['editor']['plugins']['get']('ImageInsertUI');return _0xdcb275['map'](_0x50e789=>{const _0x19aa45=this['_createButton'](_0x23d61e,_0x50e789['type']);return _0x19aa45['withText']=!0x0,_0x19aa45['icon']=_0x50e789['icon'],_0x19aa45['bind']('label')['to'](_0x24447a,'isImageSelected',_0x560af4=>_(_0x166e23,_0x50e789['type'],_0x560af4?'Replace':'Insert')['text']),_0x19aa45;});}['_createMenuBarButtons'](_0x5b5df7){return _0x5b5df7['map'](_0x2880c5=>{const _0xb00ce=this['_createButton'](_0x48c943,_0x2880c5['type']);return _0xb00ce['icon']=_0x2880c5['icon'],_0xb00ce['label']=_0x2880c5['shortText'],_0xb00ce;});}}class F extends _0x255f97{['focusTracker'];['focusCycler'];constructor(_0x153632){super(_0x153632),this['focusTracker']=new _0x11b6cc(),this['focusCycler']=new _0x3bb36c({'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(_0x54dfdf,_0x1281f6){super(_0x54dfdf),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-'+_0x1281f6}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x40d633,_0x4ec438){const _0x471441=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4db9e8=>_0x4db9e8<=_0x4ec438)['map'](_0xc34d08=>_0x40d633['replace'](/\/$/,'')+'/-/resize/'+_0xc34d08+'x/\x20'+_0xc34d08+'w');return{'imageFallbackUrl':_0x40d633,'imageSources':[{'srcset':_0x471441['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4ec438+'px)\x20100vw,\x20'+_0x4ec438+'px','type':'image/webp'}]};}function S(_0x29aa05,_0x46b405,_0x50418a){const _0xb3a26=_0x29aa05['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xb3a26?parseInt(_0xb3a26[0x1],0xa):_0x46b405,'height':_0xb3a26?parseInt(_0xb3a26[0x2],0xa):_0x50418a};}function p(_0x442d44,_0x258412){const _0x46ad31=new(_0x9b0dcd())(),_0x433a8e=_0x442d44['plugins']['get']('ImageUtils'),_0x32c4b6=_0x442d44['editing']['mapper']['toViewElement'](_0x258412),_0x5dd69a=_0x433a8e['findViewImgElement'](_0x32c4b6),_0x2b5dc1=_0x442d44['editing']['view']['domConverter']['viewToDom'](_0x5dd69a),_0x148765=_0x258412['getAttribute']('width'),_0x3b1e09=_0x258412['getAttribute']('height'),_0x4609ae='image-processing';_0x442d44['editing']['view']['change'](_0x477bfc=>{_0x477bfc['addClass'](_0x4609ae,_0x32c4b6),_0x477bfc['setStyle']('aspect-ratio',_0x148765+'/'+_0x3b1e09,_0x5dd69a);}),_0x46ad31['listenTo'](_0x2b5dc1,'load',()=>{_0x46ad31['stopListening'](_0x2b5dc1,'load'),_0x442d44['editing']['view']['change'](_0x164058=>{_0x164058['removeClass'](_0x4609ae,_0x32c4b6),_0x164058['removeStyle']('aspect-ratio',_0x5dd69a);});});}function z(_0xa87afd){if(Array['isArray'](_0xa87afd)){const _0x258767=_0xa87afd['map'](z);return _0x335b48=>_0x258767['some'](_0x345886=>_0x345886(_0x335b48));}if('origin'==_0xa87afd){const _0x31ae9c=_0x49a30f['window']['location']['origin'];return _0x36e818=>new URL(_0x36e818,_0x49a30f['document']['baseURI'])['origin']==_0x31ae9c;}return'function'==typeof _0xa87afd?_0xa87afd:_0xa87afd instanceof RegExp?_0x42ca92=>!(!_0x42ca92['match'](_0xa87afd)&&!_0x42ca92['replace'](/^https?:\/\//,'')['match'](_0xa87afd)):()=>!0x1;}function A(_0x511c77,_0x1dca99){return _0x587559(_0x511c77['target'])['includes'](_0x1dca99);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2308c3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x569821,_0x2e283b,_0x3fc729){super(),this['_editor']=_0x569821,this['_editing']=_0x2e283b,this['_dialog']=_0x569821['plugins']['get'](_0x54518c),this['_api']=_0x2e283b['ctxElement']['getAPI'](),this['_type']=_0x3fc729,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:_0x1e8c1a,model:_0x43e4de}=this['_editor'],_0x3189a0=_0x43e4de['document']['selection']['getSelectedElement'](),_0x477803=_0x3189a0&&(_0x3189a0['is']('element','imageBlock')||_0x3189a0['is']('element','imageInline'));this['_formView']=new x(_0x1e8c1a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2a2a2e,'title':_(_0x1e8c1a,this['_type'],_0x477803?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2a21c1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58ec81=>!A(_0x58ec81,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x46ecfb}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3066bf=>{const _0x26ff8d=_0x46ecfb['length'];for(const _0x4b8a7a of _0x46ecfb){const _0x53b5e2=_0x4b8a7a===_0x46ecfb[_0x26ff8d-0x1],{cdnUrl:_0x3932b6,fileInfo:_0x4baa1a}=_0x4b8a7a;if(!_0x3932b6||!_0x4baa1a)continue;const {width:_0x4a3a31,height:_0x2c46f9}=_0x4baa1a['imageInfo'],_0x567dbc=S(_0x3932b6,_0x4a3a31,_0x2c46f9),_0x311614=C(_0x3932b6,_0x567dbc['width']),_0x1a6311={'id':_0x4baa1a['uuid'],'type':'image','attributes':{'imageDimension':_0x567dbc,..._0x311614}};this['_insertAsset'](_0x1a6311,_0x53b5e2,_0x3066bf);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x6ad723=>{'idle'===_0x6ad723['detail']['status']&&!_0x6ad723['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x368e1d,_0x5d6159,_0x26bd3e){const _0x44fea1=this['_editor']['model']['document']['selection'],_0x2264c5=_0x44fea1['getSelectedElement'](),_0x163e08=!(!_0x2264c5||!_0x2264c5['is']('element','imageInline'));_0x26bd3e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x368e1d,_0x163e08),_0x5d6159||_0x26bd3e['setSelection'](_0x44fea1['getLastPosition']());}['_insertImage'](_0x4a29ff,_0x3ceae7){const _0x34b85b=this['_editor'],{imageDimension:_0x59ad02,imageFallbackUrl:_0x28f6be,imageSources:_0x1d7d92}=_0x4a29ff['attributes'];_0x34b85b['execute']('insertImage',{'imageType':_0x3ceae7?'imageInline':null,'source':{'uploadcareImageId':_0x4a29ff['id'],'src':_0x28f6be,'sources':_0x1d7d92,..._0x59ad02}});}}class w extends _0x1805a0{['_editing'];['_controller']=null;static get['requires'](){return[_0x54518c,o];}constructor(_0x3134c7){super(_0x3134c7),this['_editing']=_0x3134c7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2d1e41){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2d1e41);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4e6aa6,..._0x41f03d}){return _0x70a705(_0x4e6aa6,_0x41f03d);}static['getInfo'](_0x280456,_0x466858){return _0x5a4252(_0x280456,_0x466858);}}class f extends _0x40a027{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x179ffb,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x28fbfb=this['editor'];if(!!!_0x28fbfb['config']['get']('uploadcare'))return;_0x28fbfb['plugins']['get'](_0x179ffb)['createUploadAdapter']=_0x32887a=>new k(_0x32887a,_0x28fbfb),_0x28fbfb['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2083ea,{imageElement:_0x4e27e7,data:_0x27d5c3})=>{_0x28fbfb['model']['change'](_0x125d64=>{_0x125d64['setAttribute']('uploadcareImageId',_0x27d5c3['uploadcareImageId'],_0x4e27e7);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1c66d2,_0x10d063){this['loader']=_0x1c66d2,this['editor']=_0x10d063,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x126376=await this['loader']['file'];return j['upload']({'file':_0x126376,'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':_0x29af01=>{_0x29af01&&_0x29af01['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x29af01['value']);}})['then'](async _0x48c9eb=>{const {imageFallbackUrl:_0x1f5c0b,imageSources:_0x30046c}=C(_0x48c9eb['cdnUrl'],_0x48c9eb['imageInfo']['width']);return{'uploadcareImageId':_0x48c9eb['uuid'],'default':_0x1f5c0b,'sources':_0x30046c};})['catch'](()=>{const _0x29c68b=t('Cannot\x20upload\x20file:')+('\x20'+_0x126376['name']+'.');return Promise['reject'](_0x29c68b);});}['abort'](){this['controller']['abort']();}}class o extends _0x40a027{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x54518c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3715ce){super(_0x3715ce),this['ucContextId']=_0x5c4a34();}['init'](){const _0x777cd5=this['editor'];_0x777cd5['commands']['add']('uploadcare',new w(_0x777cd5));}['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 _0x261e4f=_0x49a30f['document']['querySelector']('input[uploadcare-file-input]');_0x261e4f&&_0x261e4f['remove']();}),async function(_0x4fc68f){const _0x44bcae=_0x34b41b([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]),_0x4202e6=0x535f8c3a,_0x1bda0a=0x5358f622^_0x4202e6,_0x38d7f4=window[_0x34b41b([0x44,0x61,0x74,0x65])][_0x34b41b([0x6e,0x6f,0x77])](),_0x220238=_0x4fc68f[_0x34b41b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x9c344e=new window[(_0x34b41b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ae91e=>{_0x220238[_0x34b41b([0x6f,0x6e,0x63,0x65])](_0x34b41b([0x72,0x65,0x61,0x64,0x79]),_0x1ae91e);}),_0x3cc361={[_0x34b41b([0x6b,0x74,0x79])]:_0x34b41b([0x45,0x43]),[_0x34b41b([0x75,0x73,0x65])]:_0x34b41b([0x73,0x69,0x67]),[_0x34b41b([0x63,0x72,0x76])]:_0x34b41b([0x50,0x2d,0x32,0x35,0x36]),[_0x34b41b([0x78])]:_0x34b41b([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]),[_0x34b41b([0x79])]:_0x34b41b([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]),[_0x34b41b([0x61,0x6c,0x67])]:_0x34b41b([0x45,0x53,0x32,0x35,0x36])},_0x25ac24=_0x220238[_0x34b41b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34b41b([0x67,0x65,0x74])](_0x34b41b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xfd71b7(){let _0xcbb465,_0x1597f9=null,_0x412054=null;try{if(_0x25ac24==_0x34b41b([0x47,0x50,0x4c]))return _0x34b41b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xcbb465=_0x18321a(),!_0xcbb465)return _0x34b41b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xcbb465[_0x34b41b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x412054=_0x2a1505(_0xcbb465[_0x34b41b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xcbb465[_0x34b41b([0x6a,0x74,0x69])])),await _0x11ea5f()?_0x32f2e0()?_0x51c01f()?_0x34b41b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x253a5d()?(_0xcbb465[_0x34b41b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34b41b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1597f9=_0x4d4af2(_0x34b41b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xcbb465[_0x34b41b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34b41b([0x74,0x72,0x69,0x61,0x6c])&&(_0x1597f9=_0x4d4af2(_0x34b41b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x11d836()):_0x34b41b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34b41b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34b41b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x34b41b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x51c01f(){const _0x532b6b=[_0x34b41b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34b41b([0x74,0x72,0x69,0x61,0x6c])][_0x34b41b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcbb465[_0x34b41b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38d7f4/0x3e8:0xe10*_0x1bda0a;return _0xcbb465[_0x34b41b([0x65,0x78,0x70])]<_0x532b6b;}function _0x32f2e0(){const _0x5ad681=_0xcbb465[_0x34b41b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ad681&&(!!_0x5ad681[_0x34b41b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34b41b([0x2a]))||!!_0x5ad681[_0x34b41b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34b41b([0x55,0x50,0x4c,0x43])));}function _0x253a5d(){const _0x4f78c3=_0xcbb465[_0x34b41b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f78c3||0x0==_0x4f78c3[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ef81c}=new URL(window[_0x34b41b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4f78c3[_0x34b41b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ef81c))return!0x0;const _0xe50568=_0x1ef81c[_0x34b41b([0x73,0x70,0x6c,0x69,0x74])](_0x34b41b([0x2e]));return _0x4f78c3[_0x34b41b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x554c09=>_0x554c09[_0x34b41b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34b41b([0x2a])))[_0x34b41b([0x6d,0x61,0x70])](_0x485f1e=>_0x485f1e[_0x34b41b([0x73,0x70,0x6c,0x69,0x74])](_0x34b41b([0x2e])))[_0x34b41b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x736821=>_0x736821[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe50568[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34b41b([0x6d,0x61,0x70])](_0x478461=>Array(_0xe50568[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x478461[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34b41b([0x66,0x69,0x6c,0x6c])](_0x478461[0x0]===_0x34b41b([0x2a])?_0x34b41b([0x2a]):'')[_0x34b41b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x478461))[_0x34b41b([0x73,0x6f,0x6d,0x65])](_0x251045=>_0xe50568[_0x34b41b([0x65,0x76,0x65,0x72,0x79])]((_0x1e2f6c,_0x3c5af1)=>_0x251045[_0x3c5af1]===_0x1e2f6c||_0x251045[_0x3c5af1]===_0x34b41b([0x2a])));}function _0x11d836(){return _0x1597f9&&_0x412054?new window[(_0x34b41b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46b0e8,_0x454d97)=>{_0x1597f9[_0x34b41b([0x74,0x68,0x65,0x6e])](_0x46b0e8,_0x454d97),_0x412054[_0x34b41b([0x74,0x68,0x65,0x6e])](_0x3650f3=>{_0x3650f3!=_0x34b41b([0x56,0x61,0x6c,0x69,0x64])&&_0x46b0e8(_0x3650f3);},_0x454d97);}):_0x1597f9||_0x412054||_0x34b41b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a1505(_0x33ae4a,_0x34f157){return new window[(_0x34b41b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f0194=>{if(_0xb55bb3())return _0x4f0194(_0x34b41b([0x56,0x61,0x6c,0x69,0x64]));_0x1e14d6(),_0x220238[_0x34b41b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34b41b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3fbda8=!0x1;const _0x3c0429=_0x5c4a34();function _0x173bcc(_0x112a17){return!!_0x112a17&&(typeof _0x112a17===_0x34b41b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x112a17===_0x34b41b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x112a17[_0x34b41b([0x74,0x68,0x65,0x6e])]===_0x34b41b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x112a17[_0x34b41b([0x63,0x61,0x74,0x63,0x68])]===_0x34b41b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x348112(_0x504058){_0x511522(_0x504058)[_0x34b41b([0x74,0x68,0x65,0x6e])](_0x547fb5=>{if(!_0x547fb5||_0x547fb5[_0x34b41b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34b41b([0x6f,0x6b]))return _0x34b41b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe1e4f2(_0x2cf64d(_0x3c0429+_0x34f157))!=_0x547fb5[_0x34b41b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34b41b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34b41b([0x56,0x61,0x6c,0x69,0x64]);})[_0x34b41b([0x74,0x68,0x65,0x6e])](_0x4281ac=>(_0x525a0f(),_0x4281ac),()=>{const _0x51c773=_0x189d9f();return null==_0x51c773?(_0x525a0f(),_0x34b41b([0x56,0x61,0x6c,0x69,0x64])):_0x34b41b(_0x38d7f4-_0x51c773>(0x7753083a^_0x4202e6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34b41b([0x74,0x68,0x65,0x6e])](_0x4f0194)[_0x34b41b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f0194(_0x34b41b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5dfd2b=0x536962ba^_0x4202e6;function _0x525a0f(){const _0x8a829d=_0x34b41b([0x6c,0x6c,0x63,0x74,0x2d])+_0xe1e4f2(_0x2cf64d(_0x33ae4a)),_0x479916=_0x38590c(_0xe1e4f2(window[_0x34b41b([0x4d,0x61,0x74,0x68])][_0x34b41b([0x63,0x65,0x69,0x6c])](_0x38d7f4/_0x5dfd2b)));window[_0x34b41b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34b41b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8a829d,_0x479916);}function _0x189d9f(){const _0x3a5f27=_0x34b41b([0x6c,0x6c,0x63,0x74,0x2d])+_0xe1e4f2(_0x2cf64d(_0x33ae4a)),_0x37aca6=window[_0x34b41b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34b41b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a5f27);return _0x37aca6?window[_0x34b41b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38590c(_0x37aca6),0x10)*_0x5dfd2b:null;}function _0x511522(_0xb6b7ca){return new window[(_0x34b41b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36bb15,_0x2f1058)=>{_0xb6b7ca[_0x34b41b([0x74,0x68,0x65,0x6e])](_0x36bb15,_0x2f1058),window[_0x34b41b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f1058,0x535e58fa^_0x4202e6);});}}_0x220238[_0x34b41b([0x6f,0x6e])](_0x34b41b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5ea978,_0x4b678e)=>{if(_0x4b678e[0x0]!=_0x33ae4a)return _0x4f0194(_0x34b41b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b678e[0x1]={..._0x4b678e[0x1],[_0x34b41b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c0429};},{[_0x34b41b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34b41b([0x68,0x69,0x67,0x68])}),_0x220238[_0x34b41b([0x6f,0x6e])](_0x34b41b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14da7d=>{_0x173bcc(_0x14da7d[_0x34b41b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3fbda8=!0x0,_0x348112(_0x14da7d[_0x34b41b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34b41b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34b41b([0x6c,0x6f,0x77])}),_0x9c344e[_0x34b41b([0x74,0x68,0x65,0x6e])](()=>{_0x3fbda8||_0x4f0194(_0x34b41b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb55bb3(){return _0x220238[_0x34b41b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34b41b([0x76,0x69,0x65,0x77])][_0x34b41b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34b41b([0x61,0x75,0x74,0x6f]);}function _0x1e14d6(){_0x220238[_0x34b41b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34b41b([0x76,0x69,0x65,0x77])][_0x34b41b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34b41b([0x61,0x75,0x74,0x6f]);}}function _0x4d4af2(_0x2ce693){const _0x11b800=[new window[(_0x34b41b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31c005=>setTimeout(_0x31c005,0x5356b2f6^_0x4202e6)),_0x9c344e[_0x34b41b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34b41b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36c469=>{let _0x58ebdb=0x0;_0x220238[_0x34b41b([0x6d,0x6f,0x64,0x65,0x6c])][_0x34b41b([0x6f,0x6e])](_0x34b41b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x121df4,_0x15e43e)=>{_0x15e43e[0x0][_0x34b41b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x58ebdb++,_0x58ebdb==(0x535f8dc2^_0x4202e6)&&(_0x36c469(),_0x121df4[_0x34b41b([0x6f,0x66,0x66])]());});}))];return window[_0x34b41b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34b41b([0x72,0x61,0x63,0x65])](_0x11b800)[_0x34b41b([0x74,0x68,0x65,0x6e])](()=>_0x2ce693);}async function _0x5c8016(){await _0x9c344e,_0x220238[_0x34b41b([0x6d,0x6f,0x64,0x65,0x6c])][_0x34b41b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a48a2,_0x220238[_0x34b41b([0x6d,0x6f,0x64,0x65,0x6c])][_0x34b41b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a48a2,_0x220238[_0x34b41b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34b41b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16a1e1(_0x4aebd7){const _0x186d41=_0x35e391();_0x220238[_0x186d41]=_0x34b41b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4aebd7,_0x4aebd7!=_0x34b41b([0x56,0x61,0x6c,0x69,0x64])&&_0x5c8016();}function _0x35e391(){const _0x444c17=window[_0x34b41b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34b41b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34b41b([0x6e,0x6f,0x77])]())[_0x34b41b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34b41b([0x2e]),'');let _0x37ae85=_0x34b41b([0x68]);for(let _0x4c8e2b=0x0;_0x4c8e2b<_0x444c17[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c8e2b+=0x2){let _0x48b596=window[_0x34b41b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x444c17[_0x34b41b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c8e2b,_0x4c8e2b+0x2));_0x48b596>=_0x44bcae[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x48b596-=_0x44bcae[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37ae85+=_0x44bcae[_0x48b596];}return _0x37ae85;}function _0x18321a(){const _0xb78a45=_0x25ac24[_0x34b41b([0x73,0x70,0x6c,0x69,0x74])](_0x34b41b([0x2e]));if(0x3!=_0xb78a45[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2826e5(_0xb78a45[0x1]);function _0x2826e5(_0x318c5a){const _0x5294f2=_0x2fd42f(_0x318c5a);return _0x5294f2&&_0x2e7527()?_0x5294f2:null;function _0x2e7527(){const _0x3ae6c1=_0x5294f2[_0x34b41b([0x6a,0x74,0x69])],_0x339581=window[_0x34b41b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ae6c1[_0x34b41b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ae6c1[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4040f0={..._0x5294f2,[_0x34b41b([0x6a,0x74,0x69])]:_0x3ae6c1[_0x34b41b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ae6c1[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4040f0[_0x34b41b([0x76,0x63])],_0x2cf64d(_0x4040f0)==_0x339581;}}}async function _0x11ea5f(){let _0xbb7447=!0x0;try{const _0x3a329f=_0x25ac24[_0x34b41b([0x73,0x70,0x6c,0x69,0x74])](_0x34b41b([0x2e])),[_0x26003c,_0x395b44,_0x4d2b96]=_0x3a329f;return _0x2eb8fa(_0x26003c),await _0x4f2da8(_0x26003c,_0x395b44,_0x4d2b96),_0xbb7447;}catch{return!0x1;}function _0x2eb8fa(_0xcdcef){const _0x56b44d=_0x2fd42f(_0xcdcef);_0x56b44d&&_0x56b44d[_0x34b41b([0x61,0x6c,0x67])]==_0x34b41b([0x45,0x53,0x32,0x35,0x36])||(_0xbb7447=!0x1);}async function _0x4f2da8(_0x45789b,_0x24effd,_0x59caa9){const _0x9848c4=window[_0x34b41b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34b41b([0x66,0x72,0x6f,0x6d])](_0x326c1a(_0x59caa9),_0x1427c5=>_0x1427c5[_0x34b41b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc723a9=new window[(_0x34b41b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34b41b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45789b+_0x34b41b([0x2e])+_0x24effd),_0x43b806=window[_0x34b41b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34b41b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43b806)return;const _0x37800a=await _0x43b806[_0x34b41b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34b41b([0x6a,0x77,0x6b]),_0x3cc361,{[_0x34b41b([0x6e,0x61,0x6d,0x65])]:_0x34b41b([0x45,0x43,0x44,0x53,0x41]),[_0x34b41b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34b41b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34b41b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43b806[_0x34b41b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34b41b([0x6e,0x61,0x6d,0x65])]:_0x34b41b([0x45,0x43,0x44,0x53,0x41]),[_0x34b41b([0x68,0x61,0x73,0x68])]:{[_0x34b41b([0x6e,0x61,0x6d,0x65])]:_0x34b41b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37800a,_0x9848c4,_0xc723a9)||(_0xbb7447=!0x1);}}function _0x2fd42f(_0xc329cf){return _0xc329cf[_0x34b41b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34b41b([0x65,0x79]))?JSON[_0x34b41b([0x70,0x61,0x72,0x73,0x65])](_0x326c1a(_0xc329cf)):null;}function _0x326c1a(_0x1d1bb5){return window[_0x34b41b([0x61,0x74,0x6f,0x62])](_0x1d1bb5[_0x34b41b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34b41b([0x2b]))[_0x34b41b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34b41b([0x2f])));}function _0x2cf64d(_0x2fcf33){let _0x5b476a=0x1505;function _0x31f2e8(_0x449c6f){for(let _0xffd35d=0x0;_0xffd35d<_0x449c6f[_0x34b41b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xffd35d++){const _0x2c916e=_0x449c6f[_0x34b41b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xffd35d);_0x5b476a=(_0x5b476a<<0x5)+_0x5b476a+_0x2c916e,_0x5b476a&=_0x5b476a;}}function _0x2fdd7a(_0x4a77f6){Array[_0x34b41b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a77f6)?_0x4a77f6[_0x34b41b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fdd7a):_0x4a77f6&&typeof _0x4a77f6==_0x34b41b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34b41b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a77f6)[_0x34b41b([0x73,0x6f,0x72,0x74])]()[_0x34b41b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x544100,_0x2b54d4])=>{_0x31f2e8(_0x544100),_0x2fdd7a(_0x2b54d4);}):_0x31f2e8(window[_0x34b41b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a77f6));}return _0x2fdd7a(_0x2fcf33),_0x5b476a>>>0x0;}function _0xe1e4f2(_0x12bf85){return _0x12bf85[_0x34b41b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34b41b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34b41b([0x30]));}function _0x38590c(_0x4d9703){return _0x4d9703[_0x34b41b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34b41b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34b41b([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a48a2(){}function _0x34b41b(_0x28c83e){return _0x28c83e['map'](_0x1cb36b=>String['fromCharCode'](_0x1cb36b))['join']('');}_0x16a1e1(await _0xfd71b7());}(this);}['_initSchema'](){const _0x25988c=this['editor']['model']['schema'];_0x25988c['isRegistered']('imageBlock')&&_0x25988c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x25988c['isRegistered']('imageInline')&&_0x25988c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xa844d1=this['editor'];_0xa844d1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xa844d1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3d80ee=>_0x3d80ee['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a88a6=_0xa844d1['commands']['get']('replaceImageSource');_0x1a88a6&&this['listenTo'](_0x1a88a6,'cleanupImage',(_0x3c65e1,[_0x30a79c,_0x59cc3d])=>{_0x30a79c['removeAttribute']('uploadcareImageId',_0x59cc3d);});}['_initConfig'](){const _0x5713be=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5797c3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x43e691(_0x49a30f['document'],'uc-config',{..._0x5713be,'pubkey':_0x5797c3,'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']=_0x37204a=>{if('closeMax'==_0x37204a)return'#uc-icon-arrow-down';},_0x49a30f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x43e691(_0x49a30f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x49a30f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x14a9b=this['editor']['commands']['get']('insertImage');_0x14a9b&&this['listenTo'](_0x14a9b,'execute',()=>{const _0x440757=this['editor']['model']['document']['selection']['getSelectedElement']();_0x440757&&_0x440757['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x440757);});});const _0x507e50=this['editor']['commands']['get']('uploadcareImageReplace');_0x507e50&&this['listenTo'](_0x507e50,'execute',()=>{const _0x5f5358=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5f5358&&_0x5f5358['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5f5358);});});}}class tt extends _0x40a027{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31013b){super(_0x31013b),_0x31013b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2a9564['defineComponents'](_0x2a9564),this['_defineLocale']();}['_defineLocale'](){const _0x382a5e=this['editor']['config']['get']('uploadcare.locale'),_0x571e22=this['editor']['locale']['contentLanguage'];_0x382a5e&&_0x2a9564['defineLocale'](_0x571e22,_0x382a5e);}}class ii extends _0x255f97{constructor(_0x402c56){super(_0x402c56);const t=_0x402c56['t'],_0x42dc3c=this['bindTemplate'],_0x183635=new _0xae7dea();_0x183635['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':[_0x183635,{'text':_0x42dc3c['to']('imageUploadProgress',_0xad8e77=>t('Loading\x20image...')+'\x20('+(_0xad8e77||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 _0x255f97{constructor(_0xe2274e){super(_0xe2274e);const t=_0xe2274e['t'];this['set']('errorType',null);const _0x11abcc=new _0x23d61e(_0xe2274e);_0x11abcc['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x11abcc['withText']=!0x0,_0x11abcc['class']='ck-button-action',_0x11abcc['on']('execute',()=>{this['fire']('retry');}),_0x11abcc['bind']('isVisible')['to'](this,'errorType',_0x346e51=>'NotFound'!==_0x346e51);const _0x276de9=new _0x15cd82();_0x276de9['content']=_0x3f8c3e,_0x276de9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xd1c3bf=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':[_0x276de9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xd1c3bf['to']('errorType',_0x305db1=>t('NotFound'!==_0x305db1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x11abcc]},{'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 _0x255f97{constructor(_0x41b62f,_0x2f35d8){super(_0x41b62f);const _0xe0a618=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2f35d8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xe0a618['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x512145,_0x26afae,_0x5b2dd6){super(_0x512145),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x512145),this['_errorView']=new ti(_0x512145),this['_editingView']=new ei(_0x512145,_0x5b2dd6),this['_focusableView']=new _0x255f97(_0x512145),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x26afae),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'],_0x35b364=>{this['_addUploadcareImageEditorListeners'](_0x35b364);});}),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'](_0x13e32d,_0xde4208){const _0x576c31='uc-cloud-image-editor',_0x587bcf=_0x13e32d['querySelector'](_0x576c31);if(_0x587bcf)return _0xde4208(_0x587bcf);const _0x552998=new MutationObserver(_0x1006b6=>{const _0x1e62ce=_0x1006b6['filter'](_0x2d1875=>_0x2d1875['target']===_0x13e32d&&_0x2d1875['addedNodes']['length']>0x0&&_0x2d1875['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x576c31);_0x1e62ce['length']&&(_0x552998['disconnect'](),_0xde4208(_0x1e62ce[0x0]['addedNodes'][0x0]));});_0x552998['observe'](_0x13e32d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4b4d7e){_0x4b4d7e['addEventListener']('apply',_0x5d2d77=>{this['fire']('apply',{'imageSrc':_0x5d2d77['detail']['cdnUrl']});}),_0x4b4d7e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2308c3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2fa64e,_0x5dd14e,_0xec7a41){super(),this['_editor']=_0x2fa64e,this['_dialog']=_0x5dd14e,this['_imageElement']=_0xec7a41,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 _0x5910f8=this['_imageElement'],_0x3b6fcf=_0x5910f8['getAttribute']('uploadcareImageId'),_0xd27f22=_0x5910f8['getAttribute']('src');if(_0x3b6fcf)await this['_loadImageInfo'](_0x3b6fcf,_0xd27f22);else{if(this['_imageCache']['has'](_0xd27f22)){const _0x1b4a9f=this['_imageCache']['get'](_0xd27f22);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b4a9f['url'],this['imageDimension']=_0x1b4a9f['dimension'],this['imageId']=_0x1b4a9f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x48894e}=this['_editor'],t=_0x48894e['t'],_0x35dc20=new X(_0x48894e,this['imageStatus'],this['_attributes']);_0x35dc20['bind']('status')['to'](this,'imageStatus'),_0x35dc20['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x35dc20['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x35dc20['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x35dc20,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x21b4d9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x35dc20,'position':_0x2a21c1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x35dc20['focus']();},'onHide':()=>{_0x35dc20['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5a3354=>!A(_0x5a3354,_0x35dc20['element'])}});}['_loadImageInfo'](_0x2b34a5,_0x1957da){return j['getInfo'](_0x2b34a5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2e1918=>{const {width:_0x58ab0a,height:_0x383bac}=_0x2e1918['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1957da,this['imageDimension']={'width':_0x58ab0a,'height':_0x383bac},this['imageId']=_0x2b34a5;})['catch'](_0x22ba58=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22ba58['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2fd7c5,_0x15d3c5){return this['_getImageAsFile'](_0x2fd7c5)['then'](_0x130a24=>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':_0x15d3c5['signal'],'file':_0x130a24,'onProgress':_0x5c1fa5=>{_0x5c1fa5&&_0x5c1fa5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5c1fa5['value']));}}))['then'](_0x4774cd=>{const {width:_0x3bd90a,height:_0x162343}=_0x4774cd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4774cd['cdnUrl'],this['imageDimension']={'width':_0x3bd90a,'height':_0x162343},this['imageId']=_0x4774cd['uuid'],this['imageUploadProgress']=null;const _0x54f70f=_0x2fd7c5['getAttribute']('src');this['_imageCache']['set'](_0x54f70f,{'id':_0x4774cd['uuid'],'url':_0x4774cd['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xdcbf41=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xdcbf41['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x28555c,_0x4957f4){_0x28555c['on']('apply',(_0x37f528,_0x40dbd9)=>{this['_replaceImage'](_0x4957f4,_0x40dbd9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x28555c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x28555c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x153a4c,_0xf8081e,_0x5c01e9){const _0x5ae3b8=this['_editor'],{width:_0x763fc1,height:_0x2feeed}=S(_0xf8081e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x431dae,imageSources:_0x3fa4ee}=C(_0xf8081e,_0x763fc1);_0x5ae3b8['model']['change'](_0x160622=>{if('$graveyard'===_0x153a4c['root']['rootName']){_0x5ae3b8['execute']('insertImage',{'imageType':_0x153a4c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x153a4c['getAttributes']()),'uploadcareImageId':_0x5c01e9,'src':_0x431dae,'sources':_0x3fa4ee,'width':_0x763fc1,'height':_0x2feeed}});const _0xdc6e80=_0x153a4c['getChildren']();_0x153a4c=_0x5ae3b8['model']['document']['selection']['getSelectedElement']();for(const _0x563b4e of _0xdc6e80)_0x160622['append'](_0x160622['cloneElement'](_0x563b4e),_0x153a4c);}else _0x160622['setSelection'](_0x153a4c,'on'),_0x5ae3b8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x153a4c['getAttributes']()),'uploadcareImageId':_0x5c01e9,'src':_0x431dae,'sources':_0x3fa4ee,'width':_0x763fc1,'height':_0x2feeed},_0x153a4c);_0x160622['setSelection'](_0x153a4c,'on');});}async['_getImageAsFile'](_0x1182ad){const _0x4c2c74=_0x49a30f['window'],_0x4446cb=_0x49a30f['document']['location']['href'],_0x405bd9=new _0x4c2c74['URL'](_0x1182ad['getAttribute']('src'),_0x4446cb);if('data:'===_0x405bd9['protocol']){const _0x47dbd1=_0x405bd9['href']['split'](','),_0x31b86b=_0x47dbd1[0x0]['match'](/:(.*?);/)[0x1],_0x31de62=_0x31b86b['split']('/')[0x1],_0x4281ef=_0x4c2c74['atob'](_0x47dbd1[_0x47dbd1['length']-0x1]);let _0x16e237=_0x4281ef['length'];const _0x3db92b=new _0x4c2c74['Uint8Array'](_0x16e237);for(;_0x16e237--;)_0x3db92b[_0x16e237]=_0x4281ef['charCodeAt'](_0x16e237);return new _0x4c2c74['File']([_0x3db92b],'image.'+_0x31de62,{'type':_0x31b86b});}const _0x3294be=_0x405bd9['href']['split']('/'),_0x310894=_0x3294be[_0x3294be['length']-0x1],_0x44ef4c=_0x310894['split']('.')[0x1];return _0x4c2c74['fetch'](_0x405bd9['href'])['then'](_0x3df063=>_0x3df063['clone']()['blob']())['then'](_0x4f76a2=>new _0x4c2c74['File']([_0x4f76a2],_0x310894,{'type':'image/'+_0x44ef4c}));}}class Q extends _0x1805a0{['imageEditController'];static get['requires'](){return[_0x54518c];}['_isEditable'];constructor(_0xec1ec){super(_0xec1ec),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x549e5a){const _0x14a8ea=z(_0x549e5a);return _0x3f98dc=>!(!_0x3f98dc||!_0x3f98dc['is']('element','imageBlock')&&!_0x3f98dc['is']('element','imageInline'))&&(!!_0x3f98dc['hasAttribute']('uploadcareImageId')||!!_0x3f98dc['hasAttribute']('src')&&_0x14a8ea(_0x3f98dc['getAttribute']('src')));}(_0xec1ec['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4a0143=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4a0143);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2553b1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2553b1&&(_0x2553b1['is']('element','imageBlock')||_0x2553b1['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x54518c),_0x2553b1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x1805a0{['refresh'](){const _0x1b4f78=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1b4f78&&(_0x1b4f78['is']('element','imageBlock')||_0x1b4f78['is']('element','imageInline')));}['execute'](_0x16527a){const _0x475726=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x32e061=>{_0x32e061['setAttributes'](_0x16527a,_0x475726),_0x32e061['removeAttribute']('srcset',_0x475726),_0x32e061['removeAttribute']('sizes',_0x475726);});}}class m extends _0x40a027{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x450039,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a0af5}=this;_0x1a0af5['commands']['add']('uploadcareImageEdit',new Q(_0x1a0af5)),_0x1a0af5['commands']['add']('uploadcareImageReplace',new V(_0x1a0af5));}}class g extends _0x40a027{['_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 _0x5a23ee=this['editor'];_0x5a23ee['ui']['componentFactory']['add']('uploadcareImageEdit',_0x166975=>{const _0x240bfd=_0x5a23ee['commands']['get']('uploadcareImageEdit'),_0x45c452=new _0x23d61e(_0x166975),t=_0x166975['t'];return _0x45c452['set']({'icon':_0x21b4d9,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x45c452['bind']('isEnabled')['to'](_0x240bfd),_0x45c452['bind']('isOn')['to'](_0x240bfd,'isActive'),this['listenTo'](_0x45c452,'execute',()=>{_0x5a23ee['execute']('uploadcareImageEdit'),_0x5a23ee['editing']['view']['focus']();}),_0x45c452;}),this['_initConfig']();}['_initConfig'](){const _0x541995=_0x43e691(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x541995),this['listenTo'](this['editor'],'destroy',()=>{_0x541995['remove']();});}}class et extends _0x40a027{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,Q 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':_0x20cc15=>0x1!=_0x20cc15}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x35d61b=>{const {af:{dictionary:_0x1114a2,getPluralForm:_0x317aa8}}={'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':_0x3dc498=>0x1!=_0x3dc498}};_0x35d61b['af']||={'dictionary':{},'getPluralForm':null},_0x35d61b['af']['dictionary']=Object['assign'](_0x35d61b['af']['dictionary'],_0x1114a2),_0x35d61b['af']['getPluralForm']=_0x317aa8;})(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':_0x57c3ba=>0x0==_0x57c3ba?0x0:0x1==_0x57c3ba?0x1:0x2==_0x57c3ba?0x2:_0x57c3ba%0x64>=0x3&&_0x57c3ba%0x64<=0xa?0x3:_0x57c3ba%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1a7962=>{const {ar:{dictionary:_0x2ca0f6,getPluralForm:_0x2c96f8}}={'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':_0x6d39af=>0x0==_0x6d39af?0x0:0x1==_0x6d39af?0x1:0x2==_0x6d39af?0x2:_0x6d39af%0x64>=0x3&&_0x6d39af%0x64<=0xa?0x3:_0x6d39af%0x64>=0xb?0x4:0x5}};_0x1a7962['ar']||={'dictionary':{},'getPluralForm':null},_0x1a7962['ar']['dictionary']=Object['assign'](_0x1a7962['ar']['dictionary'],_0x2ca0f6),_0x1a7962['ar']['getPluralForm']=_0x2c96f8;})(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':_0x1505dc=>0x1!=_0x1505dc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3f98e7=>{const {ast:{dictionary:_0x51ebb8,getPluralForm:_0x42ec30}}={'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':_0x1672db=>0x1!=_0x1672db}};_0x3f98e7['ast']||={'dictionary':{},'getPluralForm':null},_0x3f98e7['ast']['dictionary']=Object['assign'](_0x3f98e7['ast']['dictionary'],_0x51ebb8),_0x3f98e7['ast']['getPluralForm']=_0x42ec30;})(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':_0x38adc9=>0x1!=_0x38adc9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x486b26=>{const {az:{dictionary:_0x5c6a8d,getPluralForm:_0x3b4bd3}}={'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':_0x4fe031=>0x1!=_0x4fe031}};_0x486b26['az']||={'dictionary':{},'getPluralForm':null},_0x486b26['az']['dictionary']=Object['assign'](_0x486b26['az']['dictionary'],_0x5c6a8d),_0x486b26['az']['getPluralForm']=_0x3b4bd3;})(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':_0x4aa804=>_0x4aa804%0xa==0x1&&_0x4aa804%0x64!=0xb?0x0:_0x4aa804%0xa>=0x2&&_0x4aa804%0xa<=0x4&&(_0x4aa804%0x64<0xa||_0x4aa804%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x11b08a=>{const {be:{dictionary:_0xfc5c09,getPluralForm:_0x559cc8}}={'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':_0x565fea=>_0x565fea%0xa==0x1&&_0x565fea%0x64!=0xb?0x0:_0x565fea%0xa>=0x2&&_0x565fea%0xa<=0x4&&(_0x565fea%0x64<0xa||_0x565fea%0x64>=0x14)?0x1:0x2}};_0x11b08a['be']||={'dictionary':{},'getPluralForm':null},_0x11b08a['be']['dictionary']=Object['assign'](_0x11b08a['be']['dictionary'],_0xfc5c09),_0x11b08a['be']['getPluralForm']=_0x559cc8;})(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':_0x4d4160=>0x1!=_0x4d4160}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x9f469a=>{const {bg:{dictionary:_0x18434b,getPluralForm:_0x3c4373}}={'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':_0x6db478=>0x1!=_0x6db478}};_0x9f469a['bg']||={'dictionary':{},'getPluralForm':null},_0x9f469a['bg']['dictionary']=Object['assign'](_0x9f469a['bg']['dictionary'],_0x18434b),_0x9f469a['bg']['getPluralForm']=_0x3c4373;})(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':_0x3722b0=>0x1!=_0x3722b0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x454cd7=>{const {bn:{dictionary:_0x2d7be6,getPluralForm:_0xd0eb70}}={'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':_0x41f05e=>0x1!=_0x41f05e}};_0x454cd7['bn']||={'dictionary':{},'getPluralForm':null},_0x454cd7['bn']['dictionary']=Object['assign'](_0x454cd7['bn']['dictionary'],_0x2d7be6),_0x454cd7['bn']['getPluralForm']=_0xd0eb70;})(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':_0x578e14=>_0x578e14%0xa==0x1&&_0x578e14%0x64!=0xb?0x0:_0x578e14%0xa>=0x2&&_0x578e14%0xa<=0x4&&(_0x578e14%0x64<0xa||_0x578e14%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x10b43d=>{const {bs:{dictionary:_0x5807ae,getPluralForm:_0x2cd25d}}={'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':_0x261493=>_0x261493%0xa==0x1&&_0x261493%0x64!=0xb?0x0:_0x261493%0xa>=0x2&&_0x261493%0xa<=0x4&&(_0x261493%0x64<0xa||_0x261493%0x64>=0x14)?0x1:0x2}};_0x10b43d['bs']||={'dictionary':{},'getPluralForm':null},_0x10b43d['bs']['dictionary']=Object['assign'](_0x10b43d['bs']['dictionary'],_0x5807ae),_0x10b43d['bs']['getPluralForm']=_0x2cd25d;})(window['CKEDITOR_TRANSLATIONS']||={});
|