@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250221.0 → 0.0.0-nightly-next-20250222.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/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 _0x4cfb30,Command as _0x5e9925}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3b85d3,IconGooglePhotos as _0x1ebae7,IconGoogleDrive as _0x53765,IconFacebook as _0x19e88a,IconDropbox as _0x363375,IconUploadcareLink as _0xef41d0,IconUploadcareImageUpload as _0x5f265e,IconError as et,IconUploadcareImageEdit as _0x10f3f7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2d4be6,MenuBarMenuListItemButtonView as _0x252944,View as _0x1e89e6,FocusCycler as _0xcb77d1,Dialog as _0x511073,DialogViewPosition as _0x39b119,SpinnerView as _0x3c5a9e,IconView as at,Notification as _0xd66bec}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x123b1a,DomEmitterMixin as _0x184f6f,global as _0x3e8a54,getAncestors as _0x2e5b74,ObservableMixin as _0x2b5c1a,createElement as _0x3134cc,uid as _0x549092}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x47d4d6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5bcbf7,info as _0x12bfdd}from'@uploadcare/upload-client';import*as _0x20b8e9 from'@uploadcare/file-uploader';var o=function(_0x2f2dfa){return _0x2f2dfa['Local']='local',_0x2f2dfa['URL']='url',_0x2f2dfa['Dropbox']='dropbox',_0x2f2dfa['GDrive']='gdrive',_0x2f2dfa['Facebook']='facebook',_0x2f2dfa['GPhotos']='gphotos',_0x2f2dfa['OneDrive']='onedrive',_0x2f2dfa;}({});function _(_0x4d91e3,_0x519f4d,_0x2f85ff){const t=_0x4d91e3['t'],_0x4eecb6=_0x4d91e3['t'];switch(_0x519f4d){case o['Local']:return{'text':_0x4eecb6('Insert'===_0x2f85ff?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4eecb6('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2f85ff?_0x4eecb6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4eecb6('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2f85ff?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2f85ff?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2f85ff?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2f85ff?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2f85ff?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x519f4d;}}class e extends _0x4cfb30{['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 _0x512c14=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44507a;for(const _0x223f5f in _0x512c14){const _0xe625f1=_0x223f5f,_0x48c77e=_0x512c14[_0xe625f1];if('uploadcareLicenseKeyValid'==_0x48c77e||'uploadcareLicenseKeyInvalid'==_0x48c77e||'uploadcareLicenseKeyExpired'==_0x48c77e||'uploadcareLicenseKeyDomainLimit'==_0x48c77e||'uploadcareLicenseKeyNotAllowed'==_0x48c77e||'uploadcareLicenseKeyEvaluationLimit'==_0x48c77e||'uploadcareLicenseKeyTrialLimit'==_0x48c77e||'uploadcareLicenseKeyUsageLimit'==_0x48c77e){delete _0x512c14[_0xe625f1],_0x44507a=_0x48c77e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x44507a&&_0x512c14['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x44507a&&_0x512c14['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x44507a&&_0x512c14['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x44507a&&_0x512c14['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x44507a&&_0x512c14['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x44507a&&_0x512c14['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x44507a&&_0x512c14['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x11798c}=this,_0x10d447=_0x11798c['commands']['get']('uploadcare');if(!_0x10d447)return;const _0xea7d2c=this['_normalizeConfigSourceList'](_0x11798c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3086b0,_0x5e6c4e)=>{const _0x486322=this['_getIntegrationKey'](_0x5e6c4e['type']);return _0x3086b0[_0x486322]||(_0x3086b0[_0x486322]=[]),_0x3086b0[_0x486322]['push'](_0x5e6c4e),_0x3086b0;},{});_0x11798c['plugins']['has']('ImageInsertUI')&&_0x11798c['commands']['get']('uploadcare')&&Object['entries'](_0xea7d2c)['forEach'](([_0x40e99b,_0x271f94])=>{_0x11798c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x40e99b,'observable':()=>_0x10d447,'buttonViewCreator':()=>this['_createToolbarButton'](_0x271f94),'formViewCreator':()=>this['_createDropdownButtons'](_0x271f94),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x271f94),'override':'assetManager'!==_0x40e99b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1ccc2b){const {locale:_0x46ed0c}=this['editor'];return _0x1ccc2b['map'](_0x41ecba=>{const _0x43255d=_(_0x46ed0c,_0x41ecba,'Insert');switch(_0x41ecba){case o['Local']:return{'icon':_0x5f265e,'type':o['Local'],..._0x43255d};case o['URL']:return{'icon':_0xef41d0,'type':o['URL'],..._0x43255d};case o['Dropbox']:return{'icon':_0x363375,'type':o['Dropbox'],..._0x43255d};case o['Facebook']:return{'icon':_0x19e88a,'type':o['Facebook'],..._0x43255d};case o['GDrive']:return{'icon':_0x53765,'type':o['GDrive'],..._0x43255d};case o['GPhotos']:return{'icon':_0x1ebae7,'type':o['GPhotos'],..._0x43255d};case o['OneDrive']:return{'icon':_0x3b85d3,'type':o['OneDrive'],..._0x43255d};}});}['_getIntegrationKey'](_0x142fe0){switch(_0x142fe0){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x157ec5,_0x4dea15){const _0x184bf7=this['editor'],_0x453cc9=new _0x157ec5(_0x184bf7['locale']),_0x2666e6=_0x184bf7['commands']['get']('uploadcare');return _0x453cc9['bind']('isEnabled')['to'](_0x2666e6),_0x453cc9['on']('execute',()=>{_0x2666e6['execute'](_0x4dea15);}),_0x453cc9;}['_createToolbarButton'](_0x510e47){const {locale:_0x18ca60}=this['editor'],_0x44fc7e=this['editor']['plugins']['get']('ImageInsertUI'),_0xd317c2=_0x510e47[0x0],_0xeae348=this['_createButton'](_0x2d4be6,_0xd317c2['type']);return _0xeae348['icon']=_0xd317c2['icon'],_0xeae348['bind']('label')['to'](_0x44fc7e,'isImageSelected',_0x19054a=>_(_0x18ca60,_0xd317c2['type'],_0x19054a?'Replace':'Insert')['text']),_0xeae348['tooltip']=!0x0,_0xeae348;}['_createDropdownButtons'](_0x2295c5){const {locale:_0x14876f}=this['editor'],_0x464bba=this['editor']['plugins']['get']('ImageInsertUI');return _0x2295c5['map'](_0x5aa507=>{const _0x11b003=this['_createButton'](_0x2d4be6,_0x5aa507['type']);return _0x11b003['withText']=!0x0,_0x11b003['icon']=_0x5aa507['icon'],_0x11b003['bind']('label')['to'](_0x464bba,'isImageSelected',_0x49519a=>_(_0x14876f,_0x5aa507['type'],_0x49519a?'Replace':'Insert')['text']),_0x11b003;});}['_createMenuBarButtons'](_0x41f848){return _0x41f848['map'](_0x350dda=>{const _0x2410c6=this['_createButton'](_0x252944,_0x350dda['type']);return _0x2410c6['icon']=_0x350dda['icon'],_0x2410c6['label']=_0x350dda['shortText'],_0x2410c6;});}}class q extends _0x1e89e6{['focusTracker'];['focusCycler'];constructor(_0x19e84f){super(_0x19e84f),this['focusTracker']=new _0x123b1a(),this['focusCycler']=new _0xcb77d1({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x34bdda){super(_0x34bdda),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x37c1f4,_0x585856){const _0x1e7177=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1e6a7e=>_0x1e6a7e<=_0x585856)['map'](_0x48a89d=>_0x37c1f4['replace'](/\/$/,'')+'/-/resize/'+_0x48a89d+'x/\x20'+_0x48a89d+'w');return{'imageFallbackUrl':_0x37c1f4,'imageSources':[{'srcset':_0x1e7177['join'](',\x20'),'sizes':'(max-width:\x20'+_0x585856+'px)\x20100vw,\x20'+_0x585856+'px','type':'image/webp'}]};}function A(_0x4db959,_0x40821d,_0x1ea676){const _0x27d477=_0x4db959['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x27d477?parseInt(_0x27d477[0x1],0xa):_0x40821d,'height':_0x27d477?parseInt(_0x27d477[0x2],0xa):_0x1ea676};}function m(_0x4b1a28,_0x2da379){const _0x3f52b0=Object['create'](_0x184f6f),_0x40bd09=_0x4b1a28['plugins']['get']('ImageUtils'),_0x35d6eb=_0x4b1a28['editing']['mapper']['toViewElement'](_0x2da379),_0x554101=_0x40bd09['findViewImgElement'](_0x35d6eb),_0x54cbe2=_0x4b1a28['editing']['view']['domConverter']['viewToDom'](_0x554101),_0x505152=_0x2da379['getAttribute']('width'),_0x2f69b2=_0x2da379['getAttribute']('height'),_0x143668='image-processing';_0x4b1a28['editing']['view']['change'](_0x3c1a8f=>{_0x3c1a8f['addClass'](_0x143668,_0x35d6eb),_0x3c1a8f['setStyle']('aspect-ratio',_0x505152+'/'+_0x2f69b2,_0x554101);}),_0x3f52b0['listenTo'](_0x54cbe2,'load',()=>{_0x3f52b0['stopListening'](_0x54cbe2,'load'),_0x4b1a28['editing']['view']['change'](_0x43caa3=>{_0x43caa3['removeClass'](_0x143668,_0x35d6eb),_0x43caa3['removeStyle']('aspect-ratio',_0x554101);});});}function V(_0x5b6a85){if(Array['isArray'](_0x5b6a85)){const _0x4c1a2f=_0x5b6a85['map'](V);return _0x4d899d=>_0x4c1a2f['some'](_0x5c69dc=>_0x5c69dc(_0x4d899d));}if('origin'==_0x5b6a85){const _0x4ac65b=_0x3e8a54['window']['location']['origin'];return _0x135b34=>new URL(_0x135b34,_0x3e8a54['document']['baseURI'])['origin']==_0x4ac65b;}return'function'==typeof _0x5b6a85?_0x5b6a85:_0x5b6a85 instanceof RegExp?_0xa7a437=>!(!_0xa7a437['match'](_0x5b6a85)&&!_0xa7a437['replace'](/^https?:\/\//,'')['match'](_0x5b6a85)):()=>!0x1;}function F(_0x3a31a4,_0x1bc9c7){return _0x2e5b74(_0x3a31a4['target'])['includes'](_0x1bc9c7);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2b5c1a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x48439d,_0x2db562,_0x1deaa5){super(),this['_editor']=_0x48439d,this['_editing']=_0x2db562,this['_dialog']=_0x48439d['plugins']['get'](_0x511073),this['_api']=_0x2db562['ctxElement']['getAPI'](),this['_type']=_0x1deaa5,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:_0x2fb7dd,model:_0x1619f6}=this['_editor'],_0x18da9f=_0x1619f6['document']['selection']['getSelectedElement'](),_0x481ca9=_0x18da9f&&(_0x18da9f['is']('element','imageBlock')||_0x18da9f['is']('element','imageInline'));this['_formView']=new S(_0x2fb7dd),this['_dialog']['show']({'id':'uploadCare','icon':_0x5f265e,'title':_(_0x2fb7dd,this['_type'],_0x481ca9?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x39b119['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28fe80=>!F(_0x28fe80,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x110eb5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x15b6f1=>{const _0x3677d9=_0x110eb5['length'];for(const _0x326946 of _0x110eb5){const _0x59d4ea=_0x326946===_0x110eb5[_0x3677d9-0x1],{cdnUrl:_0x329597,fileInfo:_0xfb6157}=_0x326946;if(!_0x329597||!_0xfb6157)continue;const {width:_0x35d213,height:_0xd0a191}=_0xfb6157['imageInfo'],_0x1caf7e=A(_0x329597,_0x35d213,_0xd0a191),_0x255ef1=E(_0x329597,_0x1caf7e['width']),_0x1916db={'id':_0xfb6157['uuid'],'type':'image','attributes':{'imageDimension':_0x1caf7e,..._0x255ef1}};this['_insertAsset'](_0x1916db,_0x59d4ea,_0x15b6f1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xcb2efd=>{'idle'===_0xcb2efd['detail']['status']&&!_0xcb2efd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x45e041,_0x119a85,_0x2a39eb){const _0x5ceec2=this['_editor']['model']['document']['selection'],_0x1a25e4=_0x5ceec2['getSelectedElement'](),_0x4d4f1f=!(!_0x1a25e4||!_0x1a25e4['is']('element','imageInline'));_0x2a39eb['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x45e041,_0x4d4f1f),_0x119a85||_0x2a39eb['setSelection'](_0x5ceec2['getLastPosition']());}['_insertImage'](_0x2747ce,_0x2f9791){const _0xdf10f9=this['_editor'],{imageDimension:_0x5b8486,imageFallbackUrl:_0x51b5b8,imageSources:_0x3bc7a1}=_0x2747ce['attributes'];_0xdf10f9['execute']('insertImage',{'imageType':_0x2f9791?'imageInline':null,'source':{'uploadcareImageId':_0x2747ce['id'],'src':_0x51b5b8,'sources':_0x3bc7a1,..._0x5b8486}});}}class n extends _0x5e9925{['_editing'];['_controller']=null;static get['requires'](){return[_0x511073,i];}constructor(_0x7e4509){super(_0x7e4509),this['_editing']=_0x7e4509['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x29c70f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x29c70f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x571bf9,publicKey:_0x5f2b33,signal:_0x21f81b,onProgress:_0x584022}){return _0x5bcbf7(_0x571bf9,{'publicKey':_0x5f2b33,'store':'auto','signal':_0x21f81b,'onProgress':_0x584022});}static['getInfo'](_0xdb7839,_0x3b4dfd){return _0x12bfdd(_0xdb7839,_0x3b4dfd);}}class p extends _0x4cfb30{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x47d4d6,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x57502a=this['editor'];if(!!!_0x57502a['config']['get']('uploadcare'))return;_0x57502a['plugins']['get'](_0x47d4d6)['createUploadAdapter']=_0x193aaa=>new x(_0x193aaa,_0x57502a),_0x57502a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5643da,{imageElement:_0x1cb2af,data:_0x2163f0})=>{_0x57502a['model']['change'](_0x4cdb82=>{_0x4cdb82['setAttribute']('uploadcareImageId',_0x2163f0['uploadcareImageId'],_0x1cb2af);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x215fbc,_0x824e92){this['loader']=_0x215fbc,this['editor']=_0x824e92,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4dab5a=this['editor']['config']['get']('uploadcare.pubkey'),_0xdf4eeb=await this['loader']['file'];return C['upload']({'file':_0xdf4eeb,'publicKey':_0x4dab5a,'signal':this['controller']['signal'],'onProgress':_0x697ced=>{_0x697ced&&_0x697ced['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x697ced['value']);}})['then'](async _0x52bf60=>{const {imageFallbackUrl:_0x5b83cc,imageSources:_0x26786b}=E(_0x52bf60['cdnUrl'],_0x52bf60['imageInfo']['width']);return{'uploadcareImageId':_0x52bf60['uuid'],'default':_0x5b83cc,'sources':_0x26786b};})['catch'](()=>{const _0x1f8e0d=t('Cannot\x20upload\x20file:')+('\x20'+_0xdf4eeb['name']+'.');return Promise['reject'](_0x1f8e0d);});}['abort'](){this['controller']['abort']();}}class i extends _0x4cfb30{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x511073];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x7f2823=this['editor'];_0x7f2823['commands']['add']('uploadcare',new n(_0x7f2823));}['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 _0x2ea5e1=_0x3e8a54['document']['querySelector']('input[uploadcare-file-input]');_0x2ea5e1&&_0x2ea5e1['remove']();}),async function(_0x33b883){const _0x3f7a65=_0x1853a4([0x37,0x70,0x41,0x4a,0x66,0x43,0x71,0x69,0x77,0x42,0x46,0x78,0x73,0x59,0x64,0x62,0x53,0x55,0x33,0x35,0x67,0x56,0x39,0x61,0x65,0x36,0x52,0x79,0x5a,0x7a,0x6e,0x38,0x4b,0x75,0x57,0x4d,0x48,0x72,0x50,0x49,0x76,0x47,0x31,0x63,0x4c,0x6f,0x45,0x68,0x4e,0x74,0x6b,0x34,0x6a,0x6d,0x51,0x6c,0x44,0x32,0x4f,0x30,0x58,0x54]),_0x5183ee=0x15557fc9,_0x1e0f28=0x15521fe9^_0x5183ee,_0x3d5dfe=window[_0x1853a4([0x44,0x61,0x74,0x65])][_0x1853a4([0x6e,0x6f,0x77])](),_0x180eda=_0x33b883[_0x1853a4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xadaca9=new window[(_0x1853a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x550ab3=>{_0x180eda[_0x1853a4([0x6f,0x6e,0x63,0x65])](_0x1853a4([0x72,0x65,0x61,0x64,0x79]),_0x550ab3);}),_0x23a053={[_0x1853a4([0x6b,0x74,0x79])]:_0x1853a4([0x45,0x43]),[_0x1853a4([0x75,0x73,0x65])]:_0x1853a4([0x73,0x69,0x67]),[_0x1853a4([0x63,0x72,0x76])]:_0x1853a4([0x50,0x2d,0x32,0x35,0x36]),[_0x1853a4([0x78])]:_0x1853a4([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]),[_0x1853a4([0x79])]:_0x1853a4([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]),[_0x1853a4([0x61,0x6c,0x67])]:_0x1853a4([0x45,0x53,0x32,0x35,0x36])},_0x3fe244=_0x180eda[_0x1853a4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1853a4([0x67,0x65,0x74])](_0x1853a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5268b3(){let _0x369623,_0x3e65c8=null,_0x1feb8d=null;try{if(_0x3fe244==_0x1853a4([0x47,0x50,0x4c]))return _0x1853a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x369623=_0x1e8388(),!_0x369623)return _0x1853a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x369623[_0x1853a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1feb8d=_0x5281f5(_0x369623[_0x1853a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x369623[_0x1853a4([0x6a,0x74,0x69])])),await _0x1b13da()?_0xdab2c7()?_0xaca9ff()?_0x1853a4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x530172()?(_0x369623[_0x1853a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1853a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e65c8=_0x5046fd(_0x1853a4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x369623[_0x1853a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1853a4([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e65c8=_0x5046fd(_0x1853a4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13f81a()):_0x1853a4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1853a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1853a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x43b954){return _0x1853a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xaca9ff(){const _0x233e45=[_0x1853a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1853a4([0x74,0x72,0x69,0x61,0x6c])][_0x1853a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x369623[_0x1853a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d5dfe/0x3e8:0xe10*_0x1e0f28;return _0x369623[_0x1853a4([0x65,0x78,0x70])]<_0x233e45;}function _0xdab2c7(){const _0x2b5bc3=_0x369623[_0x1853a4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2b5bc3&&(!!_0x2b5bc3[_0x1853a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1853a4([0x2a]))||!!_0x2b5bc3[_0x1853a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1853a4([0x55,0x50,0x4c,0x43])));}function _0x530172(){const _0xb2d9ac=_0x369623[_0x1853a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb2d9ac||0x0==_0xb2d9ac[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x491c86}=new URL(window[_0x1853a4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb2d9ac[_0x1853a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x491c86))return!0x0;const _0x303330=_0x491c86[_0x1853a4([0x73,0x70,0x6c,0x69,0x74])](_0x1853a4([0x2e]));return _0xb2d9ac[_0x1853a4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x184ac9=>_0x184ac9[_0x1853a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1853a4([0x2a])))[_0x1853a4([0x6d,0x61,0x70])](_0xb9c9e6=>_0xb9c9e6[_0x1853a4([0x73,0x70,0x6c,0x69,0x74])](_0x1853a4([0x2e])))[_0x1853a4([0x73,0x6f,0x6d,0x65])](_0x2ec4bc=>_0x303330[_0x1853a4([0x65,0x76,0x65,0x72,0x79])]((_0x466d9e,_0x1124b2)=>_0x2ec4bc[_0x1124b2]===_0x466d9e||_0x2ec4bc[_0x1124b2]===_0x1853a4([0x2a])));}function _0x13f81a(){return _0x3e65c8&&_0x1feb8d?new window[(_0x1853a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x527cd0,_0x2b53ce)=>{_0x3e65c8[_0x1853a4([0x74,0x68,0x65,0x6e])](_0x527cd0,_0x2b53ce),_0x1feb8d[_0x1853a4([0x74,0x68,0x65,0x6e])](_0x4cfd2c=>{_0x4cfd2c!=_0x1853a4([0x56,0x61,0x6c,0x69,0x64])&&_0x527cd0(_0x4cfd2c);},_0x2b53ce);}):_0x3e65c8||_0x1feb8d||_0x1853a4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5281f5(_0x45242a,_0x424d52){return new window[(_0x1853a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e3588=>{if(_0x50fd5a())return _0x4e3588(_0x1853a4([0x56,0x61,0x6c,0x69,0x64]));_0x6b3265(),_0x180eda[_0x1853a4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1853a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c086b=!0x1;const _0x104461=_0x549092();function _0x1d37ec(_0x176e50){return!!_0x176e50&&(typeof _0x176e50===_0x1853a4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x176e50===_0x1853a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x176e50[_0x1853a4([0x74,0x68,0x65,0x6e])]===_0x1853a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x176e50[_0x1853a4([0x63,0x61,0x74,0x63,0x68])]===_0x1853a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29cc35(_0x389029){_0x87cd4c(_0x389029)[_0x1853a4([0x74,0x68,0x65,0x6e])](_0x541bc6=>{if(!_0x541bc6||_0x541bc6[_0x1853a4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1853a4([0x6f,0x6b]))return _0x1853a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x358a4f(_0x10915c(_0x104461+_0x424d52))!=_0x541bc6[_0x1853a4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1853a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1853a4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1853a4([0x74,0x68,0x65,0x6e])](_0x2f9389=>(_0x3c159b(),_0x2f9389),()=>{const _0x443fac=_0x4a2ca6();return null==_0x443fac?(_0x3c159b(),_0x1853a4([0x56,0x61,0x6c,0x69,0x64])):_0x1853a4(_0x3d5dfe-_0x443fac>(0x3159fbc9^_0x5183ee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1853a4([0x74,0x68,0x65,0x6e])](_0x4e3588)[_0x1853a4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e3588(_0x1853a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x168949=0x15639149^_0x5183ee;function _0x3c159b(){const _0x2040e7=_0x1853a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x358a4f(_0x10915c(_0x45242a)),_0x1c3642=_0x11157d(_0x358a4f(window[_0x1853a4([0x4d,0x61,0x74,0x68])][_0x1853a4([0x63,0x65,0x69,0x6c])](_0x3d5dfe/_0x168949)));window[_0x1853a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1853a4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2040e7,_0x1c3642);}function _0x4a2ca6(){const _0x5a2518=_0x1853a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x358a4f(_0x10915c(_0x45242a)),_0x4d8bbd=window[_0x1853a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1853a4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a2518);return _0x4d8bbd?window[_0x1853a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11157d(_0x4d8bbd),0x10)*_0x168949:null;}function _0x87cd4c(_0x4aac45){return new window[(_0x1853a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ce4a6,_0x3be8df)=>{_0x4aac45[_0x1853a4([0x74,0x68,0x65,0x6e])](_0x1ce4a6,_0x3be8df),window[_0x1853a4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3be8df,0x1554ab09^_0x5183ee);});}}_0x180eda[_0x1853a4([0x6f,0x6e])](_0x1853a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x383bec,_0x438886)=>{if(_0x438886[0x0]!=_0x45242a)return _0x4e3588(_0x1853a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x438886[0x1]={..._0x438886[0x1],[_0x1853a4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x104461};},{[_0x1853a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1853a4([0x68,0x69,0x67,0x68])}),_0x180eda[_0x1853a4([0x6f,0x6e])](_0x1853a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ea5d2=>{_0x1d37ec(_0x2ea5d2[_0x1853a4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c086b=!0x0,_0x29cc35(_0x2ea5d2[_0x1853a4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1853a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1853a4([0x6c,0x6f,0x77])}),_0xadaca9[_0x1853a4([0x74,0x68,0x65,0x6e])](()=>{_0x2c086b||_0x4e3588(_0x1853a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50fd5a(){return _0x180eda[_0x1853a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1853a4([0x76,0x69,0x65,0x77])][_0x1853a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1853a4([0x61,0x75,0x74,0x6f]);}function _0x6b3265(){_0x180eda[_0x1853a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1853a4([0x76,0x69,0x65,0x77])][_0x1853a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1853a4([0x61,0x75,0x74,0x6f]);}}function _0x5046fd(_0xb64ae6){const _0x4bd4b5=[new window[(_0x1853a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x78c7ed=>setTimeout(_0x78c7ed,0x155c4105^_0x5183ee)),_0xadaca9[_0x1853a4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1853a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fcc3b=>{let _0xe2f2ba=0x0;_0x180eda[_0x1853a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1853a4([0x6f,0x6e])](_0x1853a4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x245815,_0x3dc491)=>{_0x3dc491[0x0][_0x1853a4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe2f2ba++,_0xe2f2ba==(0x15557e31^_0x5183ee)&&(_0x2fcc3b(),_0x245815[_0x1853a4([0x6f,0x66,0x66])]());});}))];return window[_0x1853a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1853a4([0x72,0x61,0x63,0x65])](_0x4bd4b5)[_0x1853a4([0x74,0x68,0x65,0x6e])](()=>_0xb64ae6);}async function _0x2c283d(){await _0xadaca9,_0x180eda[_0x1853a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1853a4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ef3f8,_0x180eda[_0x1853a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1853a4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ef3f8,_0x180eda[_0x1853a4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1853a4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x55b8eb(_0x110ac5){const _0x2a7bfe=_0x5e1cd7();_0x180eda[_0x2a7bfe]=_0x1853a4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x110ac5,_0x110ac5!=_0x1853a4([0x56,0x61,0x6c,0x69,0x64])&&_0x2c283d();}function _0x5e1cd7(){const _0x405f37=window[_0x1853a4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1853a4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1853a4([0x6e,0x6f,0x77])]())[_0x1853a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1853a4([0x2e]),'');let _0x4d3194=_0x1853a4([0x70]);for(let _0x3bb177=0x0;_0x3bb177<_0x405f37[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bb177+=0x2){let _0x20f4cc=window[_0x1853a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x405f37[_0x1853a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bb177,_0x3bb177+0x2));_0x20f4cc>=_0x3f7a65[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x20f4cc-=_0x3f7a65[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d3194+=_0x3f7a65[_0x20f4cc];}return _0x4d3194;}function _0x1e8388(){const _0x42e50e=_0x3fe244[_0x1853a4([0x73,0x70,0x6c,0x69,0x74])](_0x1853a4([0x2e]));if(0x3!=_0x42e50e[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41fb3c(_0x42e50e[0x1]);function _0x41fb3c(_0x2c9b23){const _0x49f7da=_0x4025a9(_0x2c9b23);return _0x49f7da&&_0x437b74()?_0x49f7da:null;function _0x437b74(){const _0x5c2899=_0x49f7da[_0x1853a4([0x6a,0x74,0x69])],_0x54710d=window[_0x1853a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c2899[_0x1853a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c2899[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x38ffa9={..._0x49f7da,[_0x1853a4([0x6a,0x74,0x69])]:_0x5c2899[_0x1853a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c2899[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x38ffa9[_0x1853a4([0x76,0x63])],_0x10915c(_0x38ffa9)==_0x54710d;}}}async function _0x1b13da(){let _0x5be97c=!0x0;try{const _0x4463ac=_0x3fe244[_0x1853a4([0x73,0x70,0x6c,0x69,0x74])](_0x1853a4([0x2e])),[_0x547ac1,_0x46e6f6,_0x5371f4]=_0x4463ac;return _0x38ea31(_0x547ac1),await _0x570575(_0x547ac1,_0x46e6f6,_0x5371f4),_0x5be97c;}catch(_0x441c6c){return!0x1;}function _0x38ea31(_0x2e2de5){const _0x322d97=_0x4025a9(_0x2e2de5);_0x322d97&&_0x322d97[_0x1853a4([0x61,0x6c,0x67])]==_0x1853a4([0x45,0x53,0x32,0x35,0x36])||(_0x5be97c=!0x1);}async function _0x570575(_0x23bdc5,_0xc34cfc,_0x46e7b0){const _0x3f3fea=window[_0x1853a4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1853a4([0x66,0x72,0x6f,0x6d])](_0x38e858(_0x46e7b0),_0x4d4e3e=>_0x4d4e3e[_0x1853a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18b0d9=new window[(_0x1853a4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1853a4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23bdc5+_0x1853a4([0x2e])+_0xc34cfc),_0x2d923c=window[_0x1853a4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1853a4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d923c)return;const _0x49e1a5=await _0x2d923c[_0x1853a4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1853a4([0x6a,0x77,0x6b]),_0x23a053,{[_0x1853a4([0x6e,0x61,0x6d,0x65])]:_0x1853a4([0x45,0x43,0x44,0x53,0x41]),[_0x1853a4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1853a4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1853a4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d923c[_0x1853a4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1853a4([0x6e,0x61,0x6d,0x65])]:_0x1853a4([0x45,0x43,0x44,0x53,0x41]),[_0x1853a4([0x68,0x61,0x73,0x68])]:{[_0x1853a4([0x6e,0x61,0x6d,0x65])]:_0x1853a4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49e1a5,_0x3f3fea,_0x18b0d9)||(_0x5be97c=!0x1);}}function _0x4025a9(_0x452ba1){return _0x452ba1[_0x1853a4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1853a4([0x65,0x79]))?JSON[_0x1853a4([0x70,0x61,0x72,0x73,0x65])](_0x38e858(_0x452ba1)):null;}function _0x38e858(_0x2453dc){return window[_0x1853a4([0x61,0x74,0x6f,0x62])](_0x2453dc[_0x1853a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1853a4([0x2b]))[_0x1853a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1853a4([0x2f])));}function _0x10915c(_0x363ac3){let _0x5348ce=0x1505;function _0x3a1c19(_0x246029){for(let _0x5755c3=0x0;_0x5755c3<_0x246029[_0x1853a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5755c3++){const _0x32e1cd=_0x246029[_0x1853a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5755c3);_0x5348ce=(_0x5348ce<<0x5)+_0x5348ce+_0x32e1cd,_0x5348ce&=_0x5348ce;}}function _0x5a6107(_0x222306){Array[_0x1853a4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x222306)?_0x222306[_0x1853a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a6107):_0x222306&&typeof _0x222306==_0x1853a4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1853a4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x222306)[_0x1853a4([0x73,0x6f,0x72,0x74])]()[_0x1853a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53406b,_0x22c50b])=>{_0x3a1c19(_0x53406b),_0x5a6107(_0x22c50b);}):_0x3a1c19(window[_0x1853a4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x222306));}return _0x5a6107(_0x363ac3),_0x5348ce>>>0x0;}function _0x358a4f(_0x3fe8e4){return _0x3fe8e4[_0x1853a4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1853a4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1853a4([0x30]));}function _0x11157d(_0x54145d){return _0x54145d[_0x1853a4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1853a4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1853a4([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ef3f8(){}function _0x1853a4(_0x345ca8){return _0x345ca8['map'](_0x42e206=>String['fromCharCode'](_0x42e206))['join']('');}_0x55b8eb(await _0x5268b3());}(this);}['_initSchema'](){const _0x22ffcb=this['editor']['model']['schema'];_0x22ffcb['isRegistered']('imageBlock')&&_0x22ffcb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x22ffcb['isRegistered']('imageInline')&&_0x22ffcb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x536508=this['editor'];_0x536508['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x536508['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x49a6f2=>_0x49a6f2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x289320=_0x536508['commands']['get']('replaceImageSource');_0x289320&&this['listenTo'](_0x289320,'cleanupImage',(_0x254287,[_0x2a9abf,_0x452fd1])=>{_0x2a9abf['removeAttribute']('uploadcareImageId',_0x452fd1);});}['_initConfig'](){const _0x337d44=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1ecef4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3134cc(_0x3e8a54['document'],'uc-config',{..._0x337d44,'pubkey':_0x1ecef4,'ctx-name':'uploader','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']=_0x1c8377=>{if('closeMax'==_0x1c8377)return'#uc-icon-arrow-down';},_0x3e8a54['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3134cc(_0x3e8a54['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3e8a54['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4791f2=this['editor']['commands']['get']('insertImage');_0x4791f2&&this['listenTo'](_0x4791f2,'execute',()=>{const _0x5aa86a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5aa86a&&_0x5aa86a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5aa86a);});});const _0x3e444e=this['editor']['commands']['get']('uploadcareImageReplace');_0x3e444e&&this['listenTo'](_0x3e444e,'execute',()=>{const _0x289c89=this['editor']['model']['document']['selection']['getSelectedElement']();_0x289c89&&_0x289c89['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x289c89);});});}}class u extends _0x4cfb30{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58c5b8){super(_0x58c5b8),_0x58c5b8['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x20b8e9['defineComponents'](_0x20b8e9);}}class ta extends _0x1e89e6{constructor(_0x223a61){super(_0x223a61);const t=_0x223a61['t'],_0x203744=this['bindTemplate'],_0xb77e58=new _0x3c5a9e();_0xb77e58['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':[_0xb77e58,{'text':_0x203744['to']('imageUploadProgress',_0x39869=>t('Loading\x20image...')+'\x20('+(_0x39869||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 rt extends _0x1e89e6{constructor(_0x2b23a){super(_0x2b23a);const t=_0x2b23a['t'];this['set']('errorType',null);const _0x58bbea=new _0x2d4be6(_0x2b23a);_0x58bbea['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x58bbea['withText']=!0x0,_0x58bbea['class']='ck-button-action',_0x58bbea['on']('execute',()=>{this['fire']('retry');}),_0x58bbea['bind']('isVisible')['to'](this,'errorType',_0x16cf05=>'NotFound'!==_0x16cf05);const _0x32ceb0=new at();_0x32ceb0['content']=et,_0x32ceb0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1eddd2=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':[_0x32ceb0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1eddd2['to']('errorType',_0x550d99=>t('NotFound'!==_0x550d99?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x58bbea]},{'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 tt extends _0x1e89e6{constructor(_0x2d66f0,_0x470b99){super(_0x2d66f0);const _0x440792=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x470b99,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x440792['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x567f6c,_0x5c5e70,_0x403b96){super(_0x567f6c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x567f6c),this['_errorView']=new rt(_0x567f6c),this['_editingView']=new tt(_0x567f6c,_0x403b96),this['_focusableView']=new _0x1e89e6(_0x567f6c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5c5e70),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'],_0x2bfcef=>{this['_addUploadcareImageEditorListeners'](_0x2bfcef);});}),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'](_0x5833ad,_0x912084){const _0x1a6467='uc-cloud-image-editor',_0x496b45=_0x5833ad['querySelector'](_0x1a6467);if(_0x496b45)return _0x912084(_0x496b45);const _0x446426=new MutationObserver(_0x253d5e=>{const _0x2946d4=_0x253d5e['filter'](_0x4314fb=>_0x4314fb['target']===_0x5833ad&&_0x4314fb['addedNodes']['length']>0x0&&_0x4314fb['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1a6467);_0x2946d4['length']&&(_0x446426['disconnect'](),_0x912084(_0x2946d4[0x0]['addedNodes'][0x0]));});_0x446426['observe'](_0x5833ad,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5f4238){_0x5f4238['addEventListener']('apply',_0x2a271b=>{this['fire']('apply',{'imageSrc':_0x2a271b['detail']['cdnUrl']});}),_0x5f4238['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2b5c1a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x322fd9,_0x1422a4,_0x494cf4){super(),this['_editor']=_0x322fd9,this['_dialog']=_0x1422a4,this['_imageElement']=_0x494cf4,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 _0x4ce29d=this['_imageElement'],_0x5c10fd=_0x4ce29d['getAttribute']('uploadcareImageId'),_0x4490ca=_0x4ce29d['getAttribute']('src');if(_0x5c10fd)await this['_loadImageInfo'](_0x5c10fd,_0x4490ca);else{if(this['_imageCache']['has'](_0x4490ca)){const _0x198919=this['_imageCache']['get'](_0x4490ca);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x198919['url'],this['imageDimension']=_0x198919['dimension'],this['imageId']=_0x198919['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5781cf}=this['_editor'],t=_0x5781cf['t'],_0x4c2140=new Z(_0x5781cf,this['imageStatus'],this['_attributes']);_0x4c2140['bind']('status')['to'](this,'imageStatus'),_0x4c2140['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4c2140['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4c2140['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4c2140,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x10f3f7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4c2140,'position':_0x39b119['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4c2140['focus']();},'onHide':()=>{_0x4c2140['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x49c39a=>!F(_0x49c39a,_0x4c2140['element'])}});}['_loadImageInfo'](_0x2b923f,_0x4f8e21){return C['getInfo'](_0x2b923f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5605e2=>{const {width:_0x4331f2,height:_0x35c87e}=_0x5605e2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f8e21,this['imageDimension']={'width':_0x4331f2,'height':_0x35c87e},this['imageId']=_0x2b923f;})['catch'](_0x2a01e3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a01e3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x25fed3,_0x4d6b02){return this['_getImageAsFile'](_0x25fed3)['then'](_0x485fef=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4d6b02['signal'],'file':_0x485fef,'onProgress':_0x1848cc=>{_0x1848cc&&_0x1848cc['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1848cc['value']));}}))['then'](_0x1f90ad=>{const {width:_0x132b10,height:_0x16d011}=_0x1f90ad['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1f90ad['cdnUrl'],this['imageDimension']={'width':_0x132b10,'height':_0x16d011},this['imageId']=_0x1f90ad['uuid'],this['imageUploadProgress']=null;const _0x2cc300=_0x25fed3['getAttribute']('src');this['_imageCache']['set'](_0x2cc300,{'id':_0x1f90ad['uuid'],'url':_0x1f90ad['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5396ae=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5396ae['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x524a93,_0x1283bb){_0x524a93['on']('apply',(_0x5796d7,_0x40cc9c)=>{this['_replaceImage'](_0x1283bb,_0x40cc9c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x524a93['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x524a93['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xaa1f02,_0x3f83cc,_0x4914bd){const _0x1f4476=this['_editor'],{width:_0xaee779,height:_0x476845}=A(_0x3f83cc,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1268ac,imageSources:_0x38a75b}=E(_0x3f83cc,_0xaee779);_0x1f4476['model']['change'](_0x50dccf=>{if('$graveyard'===_0xaa1f02['root']['rootName']){_0x1f4476['execute']('insertImage',{'imageType':_0xaa1f02['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xaa1f02['getAttributes']()),'uploadcareImageId':_0x4914bd,'src':_0x1268ac,'sources':_0x38a75b,'width':_0xaee779,'height':_0x476845}});const _0x173041=_0xaa1f02['getChildren']();_0xaa1f02=_0x1f4476['model']['document']['selection']['getSelectedElement']();for(const _0x401313 of _0x173041)_0x50dccf['append'](_0x50dccf['cloneElement'](_0x401313),_0xaa1f02);}else _0x50dccf['setSelection'](_0xaa1f02,'on'),_0x1f4476['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xaa1f02['getAttributes']()),'uploadcareImageId':_0x4914bd,'src':_0x1268ac,'sources':_0x38a75b,'width':_0xaee779,'height':_0x476845},_0xaa1f02);_0x50dccf['setSelection'](_0xaa1f02,'on');});}async['_getImageAsFile'](_0x17f200){const _0x52ce05=_0x3e8a54['window'],_0xd5bc03=_0x3e8a54['document']['location']['href'],_0x145f6e=new _0x52ce05['URL'](_0x17f200['getAttribute']('src'),_0xd5bc03);if('data:'===_0x145f6e['protocol']){const _0x3bed56=_0x145f6e['href']['split'](','),_0x5ebb49=_0x3bed56[0x0]['match'](/:(.*?);/)[0x1],_0x3e108f=_0x5ebb49['split']('/')[0x1],_0x220db1=_0x52ce05['atob'](_0x3bed56[_0x3bed56['length']-0x1]);let _0x49058a=_0x220db1['length'];const _0x16bc7a=new _0x52ce05['Uint8Array'](_0x49058a);for(;_0x49058a--;)_0x16bc7a[_0x49058a]=_0x220db1['charCodeAt'](_0x49058a);return new _0x52ce05['File']([_0x16bc7a],'image.'+_0x3e108f,{'type':_0x5ebb49});}const _0x4ef196=_0x145f6e['href']['split']('/'),_0x250516=_0x4ef196[_0x4ef196['length']-0x1],_0x2fd8c7=_0x250516['split']('.')[0x1];return _0x52ce05['fetch'](_0x145f6e['href'])['then'](_0x2f5d33=>_0x2f5d33['clone']()['blob']())['then'](_0x49f5ee=>new _0x52ce05['File']([_0x49f5ee],_0x250516,{'type':'image/'+_0x2fd8c7}));}}class J extends _0x5e9925{['imageEditController'];static get['requires'](){return[_0x511073];}['_isEditable'];constructor(_0xe1a15a){super(_0xe1a15a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2e00c9){const _0xff1f92=V(_0x2e00c9);return _0x3cfad5=>!(!_0x3cfad5||!_0x3cfad5['is']('element','imageBlock')&&!_0x3cfad5['is']('element','imageInline'))&&(!!_0x3cfad5['hasAttribute']('uploadcareImageId')||!!_0x3cfad5['hasAttribute']('src')&&_0xff1f92(_0x3cfad5['getAttribute']('src')));}(_0xe1a15a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x525a19=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x525a19);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4a0b68=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a0b68&&(_0x4a0b68['is']('element','imageBlock')||_0x4a0b68['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x511073),_0x4a0b68),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x5e9925{['refresh'](){const _0xbe0a67=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xbe0a67&&(_0xbe0a67['is']('element','imageBlock')||_0xbe0a67['is']('element','imageInline')));}['execute'](_0x51bf27){const _0x25e6b3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3cc91e=>{_0x3cc91e['setAttributes'](_0x51bf27,_0x25e6b3),_0x3cc91e['removeAttribute']('srcset',_0x25e6b3),_0x3cc91e['removeAttribute']('sizes',_0x25e6b3);});}}class g extends _0x4cfb30{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xd66bec,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x16d6c1}=this;_0x16d6c1['commands']['add']('uploadcareImageEdit',new J(_0x16d6c1)),_0x16d6c1['commands']['add']('uploadcareImageReplace',new O(_0x16d6c1));}}class j extends _0x4cfb30{['_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 _0x84c07c=this['editor'];_0x84c07c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4f4631=>{const _0x36b5e5=_0x84c07c['commands']['get']('uploadcareImageEdit'),_0x4a5f19=new _0x2d4be6(_0x4f4631),t=_0x4f4631['t'];return _0x4a5f19['set']({'icon':_0x10f3f7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4a5f19['bind']('isEnabled')['to'](_0x36b5e5),_0x4a5f19['bind']('isOn')['to'](_0x36b5e5,'isActive'),this['listenTo'](_0x4a5f19,'execute',()=>{_0x84c07c['execute']('uploadcareImageEdit'),_0x84c07c['editing']['view']['focus']();}),_0x4a5f19;}),this['_initConfig']();}['_initConfig'](){const _0x2552b6=_0x3134cc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2552b6),this['listenTo'](this['editor'],'destroy',()=>{_0x2552b6['remove']();});}}class P extends _0x4cfb30{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x514922,Command as _0x527fb4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5f15e1,IconGooglePhotos as _0x5d6390,IconGoogleDrive as _0xe0ada4,IconFacebook as _0x4974a5,IconDropbox as _0x2900c2,IconUploadcareLink as _0x4765e8,IconUploadcareImageUpload as _0x4cd194,IconError as et,IconUploadcareImageEdit as _0x175ee0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2a5895,MenuBarMenuListItemButtonView as _0x58615b,View as _0x1879ce,FocusCycler as _0x3d8541,Dialog as _0x4dc6b6,DialogViewPosition as _0x2be3f7,SpinnerView as _0x491a1d,IconView as at,Notification as _0xa21640}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1a8bb4,DomEmitterMixin as _0x36c50a,global as _0xc23f57,getAncestors as _0x20eec0,ObservableMixin as _0x572d70,createElement as _0x39ebde,uid as _0x1ddf71}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x46f370}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x756533,info as _0x461c5c}from'@uploadcare/upload-client';import*as _0x56331e from'@uploadcare/file-uploader';var o=function(_0x2250bf){return _0x2250bf['Local']='local',_0x2250bf['URL']='url',_0x2250bf['Dropbox']='dropbox',_0x2250bf['GDrive']='gdrive',_0x2250bf['Facebook']='facebook',_0x2250bf['GPhotos']='gphotos',_0x2250bf['OneDrive']='onedrive',_0x2250bf;}({});function _(_0x3831b0,_0x2b7836,_0x51bbcc){const t=_0x3831b0['t'],_0x593361=_0x3831b0['t'];switch(_0x2b7836){case o['Local']:return{'text':_0x593361('Insert'===_0x51bbcc?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x593361('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x51bbcc?_0x593361('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x593361('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x51bbcc?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x51bbcc?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x51bbcc?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x51bbcc?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x51bbcc?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2b7836;}}class e extends _0x514922{['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 _0x3ca068=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5c65fd;for(const _0x503b81 in _0x3ca068){const _0x2c59d3=_0x503b81,_0x263bbd=_0x3ca068[_0x2c59d3];if('uploadcareLicenseKeyValid'==_0x263bbd||'uploadcareLicenseKeyInvalid'==_0x263bbd||'uploadcareLicenseKeyExpired'==_0x263bbd||'uploadcareLicenseKeyDomainLimit'==_0x263bbd||'uploadcareLicenseKeyNotAllowed'==_0x263bbd||'uploadcareLicenseKeyEvaluationLimit'==_0x263bbd||'uploadcareLicenseKeyTrialLimit'==_0x263bbd||'uploadcareLicenseKeyUsageLimit'==_0x263bbd){delete _0x3ca068[_0x2c59d3],_0x5c65fd=_0x263bbd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5c65fd&&_0x3ca068['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5c65fd&&_0x3ca068['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5c65fd&&_0x3ca068['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5c65fd&&_0x3ca068['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5c65fd&&_0x3ca068['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5c65fd&&_0x3ca068['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5c65fd&&_0x3ca068['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x34568f}=this,_0x585fcf=_0x34568f['commands']['get']('uploadcare');if(!_0x585fcf)return;const _0x3ceb1b=this['_normalizeConfigSourceList'](_0x34568f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x45a819,_0xad36cb)=>{const _0x35aff7=this['_getIntegrationKey'](_0xad36cb['type']);return _0x45a819[_0x35aff7]||(_0x45a819[_0x35aff7]=[]),_0x45a819[_0x35aff7]['push'](_0xad36cb),_0x45a819;},{});_0x34568f['plugins']['has']('ImageInsertUI')&&_0x34568f['commands']['get']('uploadcare')&&Object['entries'](_0x3ceb1b)['forEach'](([_0x1f94b7,_0x224f60])=>{_0x34568f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1f94b7,'observable':()=>_0x585fcf,'buttonViewCreator':()=>this['_createToolbarButton'](_0x224f60),'formViewCreator':()=>this['_createDropdownButtons'](_0x224f60),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x224f60),'override':'assetManager'!==_0x1f94b7});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x16f109){const {locale:_0xb84b5a}=this['editor'];return _0x16f109['map'](_0x4627ad=>{const _0x2c42d2=_(_0xb84b5a,_0x4627ad,'Insert');switch(_0x4627ad){case o['Local']:return{'icon':_0x4cd194,'type':o['Local'],..._0x2c42d2};case o['URL']:return{'icon':_0x4765e8,'type':o['URL'],..._0x2c42d2};case o['Dropbox']:return{'icon':_0x2900c2,'type':o['Dropbox'],..._0x2c42d2};case o['Facebook']:return{'icon':_0x4974a5,'type':o['Facebook'],..._0x2c42d2};case o['GDrive']:return{'icon':_0xe0ada4,'type':o['GDrive'],..._0x2c42d2};case o['GPhotos']:return{'icon':_0x5d6390,'type':o['GPhotos'],..._0x2c42d2};case o['OneDrive']:return{'icon':_0x5f15e1,'type':o['OneDrive'],..._0x2c42d2};}});}['_getIntegrationKey'](_0x523596){switch(_0x523596){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x44edda,_0x5cc239){const _0x31cd9b=this['editor'],_0x38caf2=new _0x44edda(_0x31cd9b['locale']),_0x1beadd=_0x31cd9b['commands']['get']('uploadcare');return _0x38caf2['bind']('isEnabled')['to'](_0x1beadd),_0x38caf2['on']('execute',()=>{_0x1beadd['execute'](_0x5cc239);}),_0x38caf2;}['_createToolbarButton'](_0x4aeb20){const {locale:_0x4f4169}=this['editor'],_0x5abaf3=this['editor']['plugins']['get']('ImageInsertUI'),_0x35ea2a=_0x4aeb20[0x0],_0x50a856=this['_createButton'](_0x2a5895,_0x35ea2a['type']);return _0x50a856['icon']=_0x35ea2a['icon'],_0x50a856['bind']('label')['to'](_0x5abaf3,'isImageSelected',_0x1fed3e=>_(_0x4f4169,_0x35ea2a['type'],_0x1fed3e?'Replace':'Insert')['text']),_0x50a856['tooltip']=!0x0,_0x50a856;}['_createDropdownButtons'](_0xeecc36){const {locale:_0x3b5d2b}=this['editor'],_0x4d1b6a=this['editor']['plugins']['get']('ImageInsertUI');return _0xeecc36['map'](_0x4eed59=>{const _0x18319d=this['_createButton'](_0x2a5895,_0x4eed59['type']);return _0x18319d['withText']=!0x0,_0x18319d['icon']=_0x4eed59['icon'],_0x18319d['bind']('label')['to'](_0x4d1b6a,'isImageSelected',_0x58b08a=>_(_0x3b5d2b,_0x4eed59['type'],_0x58b08a?'Replace':'Insert')['text']),_0x18319d;});}['_createMenuBarButtons'](_0x152ebf){return _0x152ebf['map'](_0x4e3f63=>{const _0x2f3e0a=this['_createButton'](_0x58615b,_0x4e3f63['type']);return _0x2f3e0a['icon']=_0x4e3f63['icon'],_0x2f3e0a['label']=_0x4e3f63['shortText'],_0x2f3e0a;});}}class q extends _0x1879ce{['focusTracker'];['focusCycler'];constructor(_0x47c968){super(_0x47c968),this['focusTracker']=new _0x1a8bb4(),this['focusCycler']=new _0x3d8541({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x5ac4fc){super(_0x5ac4fc),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x32994f,_0x111cd8){const _0x26729a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3d980d=>_0x3d980d<=_0x111cd8)['map'](_0xd31850=>_0x32994f['replace'](/\/$/,'')+'/-/resize/'+_0xd31850+'x/\x20'+_0xd31850+'w');return{'imageFallbackUrl':_0x32994f,'imageSources':[{'srcset':_0x26729a['join'](',\x20'),'sizes':'(max-width:\x20'+_0x111cd8+'px)\x20100vw,\x20'+_0x111cd8+'px','type':'image/webp'}]};}function A(_0x1bbcb0,_0x297722,_0x470d3e){const _0x42ae11=_0x1bbcb0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x42ae11?parseInt(_0x42ae11[0x1],0xa):_0x297722,'height':_0x42ae11?parseInt(_0x42ae11[0x2],0xa):_0x470d3e};}function m(_0x24dfa9,_0x46bd7c){const _0x5cd002=Object['create'](_0x36c50a),_0xe37bd5=_0x24dfa9['plugins']['get']('ImageUtils'),_0x3b7cf2=_0x24dfa9['editing']['mapper']['toViewElement'](_0x46bd7c),_0x49cd6a=_0xe37bd5['findViewImgElement'](_0x3b7cf2),_0x443050=_0x24dfa9['editing']['view']['domConverter']['viewToDom'](_0x49cd6a),_0x5a9323=_0x46bd7c['getAttribute']('width'),_0x504d6e=_0x46bd7c['getAttribute']('height'),_0xf0d49e='image-processing';_0x24dfa9['editing']['view']['change'](_0x99c960=>{_0x99c960['addClass'](_0xf0d49e,_0x3b7cf2),_0x99c960['setStyle']('aspect-ratio',_0x5a9323+'/'+_0x504d6e,_0x49cd6a);}),_0x5cd002['listenTo'](_0x443050,'load',()=>{_0x5cd002['stopListening'](_0x443050,'load'),_0x24dfa9['editing']['view']['change'](_0x19a9f9=>{_0x19a9f9['removeClass'](_0xf0d49e,_0x3b7cf2),_0x19a9f9['removeStyle']('aspect-ratio',_0x49cd6a);});});}function V(_0xb7578c){if(Array['isArray'](_0xb7578c)){const _0x4f42f0=_0xb7578c['map'](V);return _0x1770af=>_0x4f42f0['some'](_0x5268ec=>_0x5268ec(_0x1770af));}if('origin'==_0xb7578c){const _0x24578c=_0xc23f57['window']['location']['origin'];return _0x753f4a=>new URL(_0x753f4a,_0xc23f57['document']['baseURI'])['origin']==_0x24578c;}return'function'==typeof _0xb7578c?_0xb7578c:_0xb7578c instanceof RegExp?_0x37c440=>!(!_0x37c440['match'](_0xb7578c)&&!_0x37c440['replace'](/^https?:\/\//,'')['match'](_0xb7578c)):()=>!0x1;}function F(_0x576f0b,_0x26bdf3){return _0x20eec0(_0x576f0b['target'])['includes'](_0x26bdf3);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x572d70(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4ec5b5,_0x5e861a,_0x4d5fcc){super(),this['_editor']=_0x4ec5b5,this['_editing']=_0x5e861a,this['_dialog']=_0x4ec5b5['plugins']['get'](_0x4dc6b6),this['_api']=_0x5e861a['ctxElement']['getAPI'](),this['_type']=_0x4d5fcc,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:_0x3aff40,model:_0x2aa731}=this['_editor'],_0x268719=_0x2aa731['document']['selection']['getSelectedElement'](),_0x35a027=_0x268719&&(_0x268719['is']('element','imageBlock')||_0x268719['is']('element','imageInline'));this['_formView']=new S(_0x3aff40),this['_dialog']['show']({'id':'uploadCare','icon':_0x4cd194,'title':_(_0x3aff40,this['_type'],_0x35a027?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2be3f7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x40b5bb=>!F(_0x40b5bb,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x477a53}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3109e5=>{const _0x4a03e6=_0x477a53['length'];for(const _0x2f70a2 of _0x477a53){const _0x275113=_0x2f70a2===_0x477a53[_0x4a03e6-0x1],{cdnUrl:_0x2bbfed,fileInfo:_0x1519fe}=_0x2f70a2;if(!_0x2bbfed||!_0x1519fe)continue;const {width:_0x87a32,height:_0x7836c4}=_0x1519fe['imageInfo'],_0x326f80=A(_0x2bbfed,_0x87a32,_0x7836c4),_0x39e88a=E(_0x2bbfed,_0x326f80['width']),_0xa44c80={'id':_0x1519fe['uuid'],'type':'image','attributes':{'imageDimension':_0x326f80,..._0x39e88a}};this['_insertAsset'](_0xa44c80,_0x275113,_0x3109e5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x33c281=>{'idle'===_0x33c281['detail']['status']&&!_0x33c281['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5b7521,_0x5936ad,_0x36ba6d){const _0x3fbeb5=this['_editor']['model']['document']['selection'],_0x12a803=_0x3fbeb5['getSelectedElement'](),_0x5561fa=!(!_0x12a803||!_0x12a803['is']('element','imageInline'));_0x36ba6d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5b7521,_0x5561fa),_0x5936ad||_0x36ba6d['setSelection'](_0x3fbeb5['getLastPosition']());}['_insertImage'](_0x734fd,_0x21b285){const _0x195f21=this['_editor'],{imageDimension:_0x449690,imageFallbackUrl:_0x34b58d,imageSources:_0x1ff8ce}=_0x734fd['attributes'];_0x195f21['execute']('insertImage',{'imageType':_0x21b285?'imageInline':null,'source':{'uploadcareImageId':_0x734fd['id'],'src':_0x34b58d,'sources':_0x1ff8ce,..._0x449690}});}}class n extends _0x527fb4{['_editing'];['_controller']=null;static get['requires'](){return[_0x4dc6b6,i];}constructor(_0x59e3bc){super(_0x59e3bc),this['_editing']=_0x59e3bc['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5e5388){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5e5388);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x23da45,publicKey:_0x35910c,signal:_0x45622b,onProgress:_0x2ff2d2}){return _0x756533(_0x23da45,{'publicKey':_0x35910c,'store':'auto','signal':_0x45622b,'onProgress':_0x2ff2d2});}static['getInfo'](_0x3c70f3,_0x56cbc1){return _0x461c5c(_0x3c70f3,_0x56cbc1);}}class p extends _0x514922{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x46f370,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5bde31=this['editor'];if(!!!_0x5bde31['config']['get']('uploadcare'))return;_0x5bde31['plugins']['get'](_0x46f370)['createUploadAdapter']=_0x2b9b40=>new x(_0x2b9b40,_0x5bde31),_0x5bde31['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4d7773,{imageElement:_0x2bd34d,data:_0x1d1d8c})=>{_0x5bde31['model']['change'](_0x39c7db=>{_0x39c7db['setAttribute']('uploadcareImageId',_0x1d1d8c['uploadcareImageId'],_0x2bd34d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x55e9e9,_0x22c726){this['loader']=_0x55e9e9,this['editor']=_0x22c726,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2516bc=this['editor']['config']['get']('uploadcare.pubkey'),_0x4a3ad7=await this['loader']['file'];return C['upload']({'file':_0x4a3ad7,'publicKey':_0x2516bc,'signal':this['controller']['signal'],'onProgress':_0x6236ac=>{_0x6236ac&&_0x6236ac['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x6236ac['value']);}})['then'](async _0x4e9130=>{const {imageFallbackUrl:_0x3d1cc8,imageSources:_0x364350}=E(_0x4e9130['cdnUrl'],_0x4e9130['imageInfo']['width']);return{'uploadcareImageId':_0x4e9130['uuid'],'default':_0x3d1cc8,'sources':_0x364350};})['catch'](()=>{const _0x56ce74=t('Cannot\x20upload\x20file:')+('\x20'+_0x4a3ad7['name']+'.');return Promise['reject'](_0x56ce74);});}['abort'](){this['controller']['abort']();}}class i extends _0x514922{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4dc6b6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1340d6=this['editor'];_0x1340d6['commands']['add']('uploadcare',new n(_0x1340d6));}['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 _0x254933=_0xc23f57['document']['querySelector']('input[uploadcare-file-input]');_0x254933&&_0x254933['remove']();}),async function(_0x41db70){const _0x366134=_0x52d07b([0x50,0x62,0x39,0x34,0x6d,0x4f,0x61,0x77,0x73,0x78,0x67,0x36,0x42,0x56,0x6f,0x63,0x55,0x66,0x44,0x58,0x76,0x35,0x4c,0x65,0x59,0x32,0x31,0x49,0x43,0x4b,0x72,0x30,0x48,0x33,0x46,0x64,0x74,0x37,0x5a,0x57,0x6e,0x79,0x6a,0x41,0x70,0x6c,0x54,0x75,0x47,0x69,0x52,0x68,0x4a,0x53,0x4d,0x51,0x6b,0x38,0x7a,0x45,0x4e,0x71]),_0x84e8ae=0x71e27282,_0xa83f7f=0x71e512ba^_0x84e8ae,_0x2c8842=window[_0x52d07b([0x44,0x61,0x74,0x65])][_0x52d07b([0x6e,0x6f,0x77])](),_0x567932=_0x41db70[_0x52d07b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d80ba=new window[(_0x52d07b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e17ef=>{_0x567932[_0x52d07b([0x6f,0x6e,0x63,0x65])](_0x52d07b([0x72,0x65,0x61,0x64,0x79]),_0x1e17ef);}),_0x46b1a5={[_0x52d07b([0x6b,0x74,0x79])]:_0x52d07b([0x45,0x43]),[_0x52d07b([0x75,0x73,0x65])]:_0x52d07b([0x73,0x69,0x67]),[_0x52d07b([0x63,0x72,0x76])]:_0x52d07b([0x50,0x2d,0x32,0x35,0x36]),[_0x52d07b([0x78])]:_0x52d07b([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]),[_0x52d07b([0x79])]:_0x52d07b([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]),[_0x52d07b([0x61,0x6c,0x67])]:_0x52d07b([0x45,0x53,0x32,0x35,0x36])},_0x455b09=_0x567932[_0x52d07b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52d07b([0x67,0x65,0x74])](_0x52d07b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x243562(){let _0x579afb,_0x4409cf=null,_0xc59e39=null;try{if(_0x455b09==_0x52d07b([0x47,0x50,0x4c]))return _0x52d07b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x579afb=_0x36b221(),!_0x579afb)return _0x52d07b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x579afb[_0x52d07b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc59e39=_0x4cb247(_0x579afb[_0x52d07b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x579afb[_0x52d07b([0x6a,0x74,0x69])])),await _0x1f6e7a()?_0x3f119e()?_0x5e6f6d()?_0x52d07b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x517658()?(_0x579afb[_0x52d07b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52d07b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4409cf=_0x524b7c(_0x52d07b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x579afb[_0x52d07b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52d07b([0x74,0x72,0x69,0x61,0x6c])&&(_0x4409cf=_0x524b7c(_0x52d07b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x55ba54()):_0x52d07b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52d07b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52d07b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x24fc95){return _0x52d07b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e6f6d(){const _0x3656ee=[_0x52d07b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52d07b([0x74,0x72,0x69,0x61,0x6c])][_0x52d07b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579afb[_0x52d07b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c8842/0x3e8:0xe10*_0xa83f7f;return _0x579afb[_0x52d07b([0x65,0x78,0x70])]<_0x3656ee;}function _0x3f119e(){const _0x2e81e7=_0x579afb[_0x52d07b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e81e7&&(!!_0x2e81e7[_0x52d07b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d07b([0x2a]))||!!_0x2e81e7[_0x52d07b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d07b([0x55,0x50,0x4c,0x43])));}function _0x517658(){const _0x4edcf5=_0x579afb[_0x52d07b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4edcf5||0x0==_0x4edcf5[_0x52d07b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa7998d}=new URL(window[_0x52d07b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4edcf5[_0x52d07b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa7998d))return!0x0;const _0x36c367=_0xa7998d[_0x52d07b([0x73,0x70,0x6c,0x69,0x74])](_0x52d07b([0x2e]));return _0x4edcf5[_0x52d07b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x373f05=>_0x373f05[_0x52d07b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d07b([0x2a])))[_0x52d07b([0x6d,0x61,0x70])](_0x120c25=>_0x120c25[_0x52d07b([0x73,0x70,0x6c,0x69,0x74])](_0x52d07b([0x2e])))[_0x52d07b([0x73,0x6f,0x6d,0x65])](_0x35a660=>_0x36c367[_0x52d07b([0x65,0x76,0x65,0x72,0x79])]((_0x575ca9,_0x4483ba)=>_0x35a660[_0x4483ba]===_0x575ca9||_0x35a660[_0x4483ba]===_0x52d07b([0x2a])));}function _0x55ba54(){return _0x4409cf&&_0xc59e39?new window[(_0x52d07b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b7fbc,_0x35122d)=>{_0x4409cf[_0x52d07b([0x74,0x68,0x65,0x6e])](_0x2b7fbc,_0x35122d),_0xc59e39[_0x52d07b([0x74,0x68,0x65,0x6e])](_0x1b12e8=>{_0x1b12e8!=_0x52d07b([0x56,0x61,0x6c,0x69,0x64])&&_0x2b7fbc(_0x1b12e8);},_0x35122d);}):_0x4409cf||_0xc59e39||_0x52d07b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4cb247(_0x16b1b9,_0x52d5d4){return new window[(_0x52d07b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dbc8a=>{if(_0x14ab32())return _0x2dbc8a(_0x52d07b([0x56,0x61,0x6c,0x69,0x64]));_0x4a631b(),_0x567932[_0x52d07b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52d07b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x243345=!0x1;const _0x309d07=_0x1ddf71();function _0x25c04f(_0x5900b3){return!!_0x5900b3&&(typeof _0x5900b3===_0x52d07b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5900b3===_0x52d07b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5900b3[_0x52d07b([0x74,0x68,0x65,0x6e])]===_0x52d07b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5900b3[_0x52d07b([0x63,0x61,0x74,0x63,0x68])]===_0x52d07b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34aec1(_0x1acbe4){_0xf21e40(_0x1acbe4)[_0x52d07b([0x74,0x68,0x65,0x6e])](_0x39fe86=>{if(!_0x39fe86||_0x39fe86[_0x52d07b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52d07b([0x6f,0x6b]))return _0x52d07b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x44036b(_0x4aca44(_0x309d07+_0x52d5d4))!=_0x39fe86[_0x52d07b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52d07b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52d07b([0x56,0x61,0x6c,0x69,0x64]);})[_0x52d07b([0x74,0x68,0x65,0x6e])](_0x2f6006=>(_0x53faf5(),_0x2f6006),()=>{const _0x269de4=_0x4bf6c8();return null==_0x269de4?(_0x53faf5(),_0x52d07b([0x56,0x61,0x6c,0x69,0x64])):_0x52d07b(_0x2c8842-_0x269de4>(0x55eef682^_0x84e8ae)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52d07b([0x74,0x68,0x65,0x6e])](_0x2dbc8a)[_0x52d07b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dbc8a(_0x52d07b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27e388=0x71d49c02^_0x84e8ae;function _0x53faf5(){const _0x3e91bf=_0x52d07b([0x6c,0x6c,0x63,0x74,0x2d])+_0x44036b(_0x4aca44(_0x16b1b9)),_0x1de6fc=_0xa21906(_0x44036b(window[_0x52d07b([0x4d,0x61,0x74,0x68])][_0x52d07b([0x63,0x65,0x69,0x6c])](_0x2c8842/_0x27e388)));window[_0x52d07b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52d07b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e91bf,_0x1de6fc);}function _0x4bf6c8(){const _0x5bc1dc=_0x52d07b([0x6c,0x6c,0x63,0x74,0x2d])+_0x44036b(_0x4aca44(_0x16b1b9)),_0x2ca43f=window[_0x52d07b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52d07b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bc1dc);return _0x2ca43f?window[_0x52d07b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa21906(_0x2ca43f),0x10)*_0x27e388:null;}function _0xf21e40(_0xe7d513){return new window[(_0x52d07b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ae380,_0x2f4959)=>{_0xe7d513[_0x52d07b([0x74,0x68,0x65,0x6e])](_0x5ae380,_0x2f4959),window[_0x52d07b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f4959,0x71e3a642^_0x84e8ae);});}}_0x567932[_0x52d07b([0x6f,0x6e])](_0x52d07b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x244a8b,_0x474149)=>{if(_0x474149[0x0]!=_0x16b1b9)return _0x2dbc8a(_0x52d07b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x474149[0x1]={..._0x474149[0x1],[_0x52d07b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x309d07};},{[_0x52d07b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52d07b([0x68,0x69,0x67,0x68])}),_0x567932[_0x52d07b([0x6f,0x6e])](_0x52d07b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4df506=>{_0x25c04f(_0x4df506[_0x52d07b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x243345=!0x0,_0x34aec1(_0x4df506[_0x52d07b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52d07b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52d07b([0x6c,0x6f,0x77])}),_0x1d80ba[_0x52d07b([0x74,0x68,0x65,0x6e])](()=>{_0x243345||_0x2dbc8a(_0x52d07b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14ab32(){return _0x567932[_0x52d07b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52d07b([0x76,0x69,0x65,0x77])][_0x52d07b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52d07b([0x61,0x75,0x74,0x6f]);}function _0x4a631b(){_0x567932[_0x52d07b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52d07b([0x76,0x69,0x65,0x77])][_0x52d07b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52d07b([0x61,0x75,0x74,0x6f]);}}function _0x524b7c(_0x28ad4d){const _0x526b4c=[new window[(_0x52d07b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcbe801=>setTimeout(_0xcbe801,0x71eb4c4e^_0x84e8ae)),_0x1d80ba[_0x52d07b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52d07b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e25ad=>{let _0x3cd50c=0x0;_0x567932[_0x52d07b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52d07b([0x6f,0x6e])](_0x52d07b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d0753,_0x19606a)=>{_0x19606a[0x0][_0x52d07b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3cd50c++,_0x3cd50c==(0x71e2737a^_0x84e8ae)&&(_0x2e25ad(),_0x5d0753[_0x52d07b([0x6f,0x66,0x66])]());});}))];return window[_0x52d07b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52d07b([0x72,0x61,0x63,0x65])](_0x526b4c)[_0x52d07b([0x74,0x68,0x65,0x6e])](()=>_0x28ad4d);}async function _0x19630e(){await _0x1d80ba,_0x567932[_0x52d07b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52d07b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x142102,_0x567932[_0x52d07b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52d07b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x142102,_0x567932[_0x52d07b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52d07b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3089bb(_0xfb321e){const _0x5e73b2=_0x2abc30();_0x567932[_0x5e73b2]=_0x52d07b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xfb321e,_0xfb321e!=_0x52d07b([0x56,0x61,0x6c,0x69,0x64])&&_0x19630e();}function _0x2abc30(){const _0xd1f6a0=window[_0x52d07b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52d07b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52d07b([0x6e,0x6f,0x77])]())[_0x52d07b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52d07b([0x2e]),'');let _0x2e9627=_0x52d07b([0x50]);for(let _0x503fcc=0x0;_0x503fcc<_0xd1f6a0[_0x52d07b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x503fcc+=0x2){let _0x524447=window[_0x52d07b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd1f6a0[_0x52d07b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x503fcc,_0x503fcc+0x2));_0x524447>=_0x366134[_0x52d07b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x524447-=_0x366134[_0x52d07b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e9627+=_0x366134[_0x524447];}return _0x2e9627;}function _0x36b221(){const _0x2b623a=_0x455b09[_0x52d07b([0x73,0x70,0x6c,0x69,0x74])](_0x52d07b([0x2e]));if(0x3!=_0x2b623a[_0x52d07b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4ba8c9(_0x2b623a[0x1]);function _0x4ba8c9(_0x110e34){const _0x2b4f4f=_0x3859b6(_0x110e34);return _0x2b4f4f&&_0x4b42da()?_0x2b4f4f:null;function _0x4b42da(){const _0x44b25a=_0x2b4f4f[_0x52d07b([0x6a,0x74,0x69])],_0x3bb886=window[_0x52d07b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44b25a[_0x52d07b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44b25a[_0x52d07b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f8707={..._0x2b4f4f,[_0x52d07b([0x6a,0x74,0x69])]:_0x44b25a[_0x52d07b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44b25a[_0x52d07b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f8707[_0x52d07b([0x76,0x63])],_0x4aca44(_0x4f8707)==_0x3bb886;}}}async function _0x1f6e7a(){let _0x52ce2a=!0x0;try{const _0x4d2230=_0x455b09[_0x52d07b([0x73,0x70,0x6c,0x69,0x74])](_0x52d07b([0x2e])),[_0x47669c,_0x36e0ca,_0x174392]=_0x4d2230;return _0x8e3bac(_0x47669c),await _0x2c8de4(_0x47669c,_0x36e0ca,_0x174392),_0x52ce2a;}catch(_0x30a7be){return!0x1;}function _0x8e3bac(_0x34afb0){const _0x4a3552=_0x3859b6(_0x34afb0);_0x4a3552&&_0x4a3552[_0x52d07b([0x61,0x6c,0x67])]==_0x52d07b([0x45,0x53,0x32,0x35,0x36])||(_0x52ce2a=!0x1);}async function _0x2c8de4(_0x55d49c,_0x6cff6a,_0x1deaa3){const _0x2e0d03=window[_0x52d07b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52d07b([0x66,0x72,0x6f,0x6d])](_0x3a2dcc(_0x1deaa3),_0x234ea6=>_0x234ea6[_0x52d07b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31dc26=new window[(_0x52d07b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52d07b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55d49c+_0x52d07b([0x2e])+_0x6cff6a),_0x190f22=window[_0x52d07b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52d07b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x190f22)return;const _0x152f53=await _0x190f22[_0x52d07b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52d07b([0x6a,0x77,0x6b]),_0x46b1a5,{[_0x52d07b([0x6e,0x61,0x6d,0x65])]:_0x52d07b([0x45,0x43,0x44,0x53,0x41]),[_0x52d07b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52d07b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52d07b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x190f22[_0x52d07b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52d07b([0x6e,0x61,0x6d,0x65])]:_0x52d07b([0x45,0x43,0x44,0x53,0x41]),[_0x52d07b([0x68,0x61,0x73,0x68])]:{[_0x52d07b([0x6e,0x61,0x6d,0x65])]:_0x52d07b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x152f53,_0x2e0d03,_0x31dc26)||(_0x52ce2a=!0x1);}}function _0x3859b6(_0xb108b3){return _0xb108b3[_0x52d07b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52d07b([0x65,0x79]))?JSON[_0x52d07b([0x70,0x61,0x72,0x73,0x65])](_0x3a2dcc(_0xb108b3)):null;}function _0x3a2dcc(_0x12ce07){return window[_0x52d07b([0x61,0x74,0x6f,0x62])](_0x12ce07[_0x52d07b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52d07b([0x2b]))[_0x52d07b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52d07b([0x2f])));}function _0x4aca44(_0x26177d){let _0x1fa0c6=0x1505;function _0x199b82(_0x4fb186){for(let _0x198fb5=0x0;_0x198fb5<_0x4fb186[_0x52d07b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x198fb5++){const _0x146088=_0x4fb186[_0x52d07b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x198fb5);_0x1fa0c6=(_0x1fa0c6<<0x5)+_0x1fa0c6+_0x146088,_0x1fa0c6&=_0x1fa0c6;}}function _0xc5f3bf(_0x385247){Array[_0x52d07b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x385247)?_0x385247[_0x52d07b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xc5f3bf):_0x385247&&typeof _0x385247==_0x52d07b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52d07b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x385247)[_0x52d07b([0x73,0x6f,0x72,0x74])]()[_0x52d07b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x429552,_0x32cfc8])=>{_0x199b82(_0x429552),_0xc5f3bf(_0x32cfc8);}):_0x199b82(window[_0x52d07b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x385247));}return _0xc5f3bf(_0x26177d),_0x1fa0c6>>>0x0;}function _0x44036b(_0x4697dc){return _0x4697dc[_0x52d07b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52d07b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52d07b([0x30]));}function _0xa21906(_0x3ebf78){return _0x3ebf78[_0x52d07b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52d07b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52d07b([0x6a,0x6f,0x69,0x6e])]('');}function _0x142102(){}function _0x52d07b(_0x2cefa6){return _0x2cefa6['map'](_0x1c3d63=>String['fromCharCode'](_0x1c3d63))['join']('');}_0x3089bb(await _0x243562());}(this);}['_initSchema'](){const _0xb89fd2=this['editor']['model']['schema'];_0xb89fd2['isRegistered']('imageBlock')&&_0xb89fd2['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xb89fd2['isRegistered']('imageInline')&&_0xb89fd2['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x428a9e=this['editor'];_0x428a9e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x428a9e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3245fa=>_0x3245fa['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x12ac74=_0x428a9e['commands']['get']('replaceImageSource');_0x12ac74&&this['listenTo'](_0x12ac74,'cleanupImage',(_0x55b0d6,[_0x77cd19,_0x1857c3])=>{_0x77cd19['removeAttribute']('uploadcareImageId',_0x1857c3);});}['_initConfig'](){const _0x580ca1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x387007=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x39ebde(_0xc23f57['document'],'uc-config',{..._0x580ca1,'pubkey':_0x387007,'ctx-name':'uploader','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']=_0x4ddba8=>{if('closeMax'==_0x4ddba8)return'#uc-icon-arrow-down';},_0xc23f57['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x39ebde(_0xc23f57['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xc23f57['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4bacde=this['editor']['commands']['get']('insertImage');_0x4bacde&&this['listenTo'](_0x4bacde,'execute',()=>{const _0x3edd74=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3edd74&&_0x3edd74['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3edd74);});});const _0x53897a=this['editor']['commands']['get']('uploadcareImageReplace');_0x53897a&&this['listenTo'](_0x53897a,'execute',()=>{const _0x182b25=this['editor']['model']['document']['selection']['getSelectedElement']();_0x182b25&&_0x182b25['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x182b25);});});}}class u extends _0x514922{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x562d33){super(_0x562d33),_0x562d33['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x56331e['defineComponents'](_0x56331e);}}class ta extends _0x1879ce{constructor(_0x33ef62){super(_0x33ef62);const t=_0x33ef62['t'],_0x4c405f=this['bindTemplate'],_0xb3f3c=new _0x491a1d();_0xb3f3c['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':[_0xb3f3c,{'text':_0x4c405f['to']('imageUploadProgress',_0x23ec1d=>t('Loading\x20image...')+'\x20('+(_0x23ec1d||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 rt extends _0x1879ce{constructor(_0x8fbe9d){super(_0x8fbe9d);const t=_0x8fbe9d['t'];this['set']('errorType',null);const _0x448725=new _0x2a5895(_0x8fbe9d);_0x448725['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x448725['withText']=!0x0,_0x448725['class']='ck-button-action',_0x448725['on']('execute',()=>{this['fire']('retry');}),_0x448725['bind']('isVisible')['to'](this,'errorType',_0x596846=>'NotFound'!==_0x596846);const _0x6d7557=new at();_0x6d7557['content']=et,_0x6d7557['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x54be80=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':[_0x6d7557,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x54be80['to']('errorType',_0x340afe=>t('NotFound'!==_0x340afe?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x448725]},{'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 tt extends _0x1879ce{constructor(_0x8c4b74,_0x479adb){super(_0x8c4b74);const _0x54896f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x479adb,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x54896f['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2dce98,_0x39bed0,_0x1f0590){super(_0x2dce98),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2dce98),this['_errorView']=new rt(_0x2dce98),this['_editingView']=new tt(_0x2dce98,_0x1f0590),this['_focusableView']=new _0x1879ce(_0x2dce98),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x39bed0),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'],_0x4f2072=>{this['_addUploadcareImageEditorListeners'](_0x4f2072);});}),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'](_0x427b86,_0x24e1e2){const _0x33ef17='uc-cloud-image-editor',_0x5baa33=_0x427b86['querySelector'](_0x33ef17);if(_0x5baa33)return _0x24e1e2(_0x5baa33);const _0x36b979=new MutationObserver(_0xde5234=>{const _0x42f233=_0xde5234['filter'](_0x416833=>_0x416833['target']===_0x427b86&&_0x416833['addedNodes']['length']>0x0&&_0x416833['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x33ef17);_0x42f233['length']&&(_0x36b979['disconnect'](),_0x24e1e2(_0x42f233[0x0]['addedNodes'][0x0]));});_0x36b979['observe'](_0x427b86,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x8b748e){_0x8b748e['addEventListener']('apply',_0x2e5a49=>{this['fire']('apply',{'imageSrc':_0x2e5a49['detail']['cdnUrl']});}),_0x8b748e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x572d70(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x6dcb13,_0x3f1c6e,_0x35fcbb){super(),this['_editor']=_0x6dcb13,this['_dialog']=_0x3f1c6e,this['_imageElement']=_0x35fcbb,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 _0x1582d6=this['_imageElement'],_0x5ad41c=_0x1582d6['getAttribute']('uploadcareImageId'),_0x5685a0=_0x1582d6['getAttribute']('src');if(_0x5ad41c)await this['_loadImageInfo'](_0x5ad41c,_0x5685a0);else{if(this['_imageCache']['has'](_0x5685a0)){const _0x342153=this['_imageCache']['get'](_0x5685a0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x342153['url'],this['imageDimension']=_0x342153['dimension'],this['imageId']=_0x342153['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x217b61}=this['_editor'],t=_0x217b61['t'],_0xcfca9f=new Z(_0x217b61,this['imageStatus'],this['_attributes']);_0xcfca9f['bind']('status')['to'](this,'imageStatus'),_0xcfca9f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xcfca9f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xcfca9f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xcfca9f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x175ee0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xcfca9f,'position':_0x2be3f7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xcfca9f['focus']();},'onHide':()=>{_0xcfca9f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3fe7f2=>!F(_0x3fe7f2,_0xcfca9f['element'])}});}['_loadImageInfo'](_0x346edc,_0x401fec){return C['getInfo'](_0x346edc,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1fb1dd=>{const {width:_0x2f8486,height:_0x493b43}=_0x1fb1dd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x401fec,this['imageDimension']={'width':_0x2f8486,'height':_0x493b43},this['imageId']=_0x346edc;})['catch'](_0x24913e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x24913e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x596e0f,_0x5b4eb6){return this['_getImageAsFile'](_0x596e0f)['then'](_0x584626=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5b4eb6['signal'],'file':_0x584626,'onProgress':_0xbc79d6=>{_0xbc79d6&&_0xbc79d6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xbc79d6['value']));}}))['then'](_0x4c9611=>{const {width:_0x885dec,height:_0x26c7fd}=_0x4c9611['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c9611['cdnUrl'],this['imageDimension']={'width':_0x885dec,'height':_0x26c7fd},this['imageId']=_0x4c9611['uuid'],this['imageUploadProgress']=null;const _0x55a676=_0x596e0f['getAttribute']('src');this['_imageCache']['set'](_0x55a676,{'id':_0x4c9611['uuid'],'url':_0x4c9611['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1a899a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1a899a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x559856,_0x7ea2c2){_0x559856['on']('apply',(_0x5359b6,_0x4ab515)=>{this['_replaceImage'](_0x7ea2c2,_0x4ab515['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x559856['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x559856['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4a04e1,_0x4f475f,_0x14be24){const _0x12c1cf=this['_editor'],{width:_0x567279,height:_0x30aeab}=A(_0x4f475f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x539f4a,imageSources:_0x26bbc8}=E(_0x4f475f,_0x567279);_0x12c1cf['model']['change'](_0x45220e=>{if('$graveyard'===_0x4a04e1['root']['rootName']){_0x12c1cf['execute']('insertImage',{'imageType':_0x4a04e1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4a04e1['getAttributes']()),'uploadcareImageId':_0x14be24,'src':_0x539f4a,'sources':_0x26bbc8,'width':_0x567279,'height':_0x30aeab}});const _0x3bdf1b=_0x4a04e1['getChildren']();_0x4a04e1=_0x12c1cf['model']['document']['selection']['getSelectedElement']();for(const _0x4282f0 of _0x3bdf1b)_0x45220e['append'](_0x45220e['cloneElement'](_0x4282f0),_0x4a04e1);}else _0x45220e['setSelection'](_0x4a04e1,'on'),_0x12c1cf['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4a04e1['getAttributes']()),'uploadcareImageId':_0x14be24,'src':_0x539f4a,'sources':_0x26bbc8,'width':_0x567279,'height':_0x30aeab},_0x4a04e1);_0x45220e['setSelection'](_0x4a04e1,'on');});}async['_getImageAsFile'](_0x489e87){const _0x34d1d6=_0xc23f57['window'],_0x4aa800=_0xc23f57['document']['location']['href'],_0x2bfdce=new _0x34d1d6['URL'](_0x489e87['getAttribute']('src'),_0x4aa800);if('data:'===_0x2bfdce['protocol']){const _0x4c2482=_0x2bfdce['href']['split'](','),_0x2e1cc7=_0x4c2482[0x0]['match'](/:(.*?);/)[0x1],_0x168251=_0x2e1cc7['split']('/')[0x1],_0x324a2e=_0x34d1d6['atob'](_0x4c2482[_0x4c2482['length']-0x1]);let _0x2c6a68=_0x324a2e['length'];const _0x2f1de0=new _0x34d1d6['Uint8Array'](_0x2c6a68);for(;_0x2c6a68--;)_0x2f1de0[_0x2c6a68]=_0x324a2e['charCodeAt'](_0x2c6a68);return new _0x34d1d6['File']([_0x2f1de0],'image.'+_0x168251,{'type':_0x2e1cc7});}const _0x1cb826=_0x2bfdce['href']['split']('/'),_0xed87f2=_0x1cb826[_0x1cb826['length']-0x1],_0xea97b0=_0xed87f2['split']('.')[0x1];return _0x34d1d6['fetch'](_0x2bfdce['href'])['then'](_0x1d2378=>_0x1d2378['clone']()['blob']())['then'](_0x15e6df=>new _0x34d1d6['File']([_0x15e6df],_0xed87f2,{'type':'image/'+_0xea97b0}));}}class J extends _0x527fb4{['imageEditController'];static get['requires'](){return[_0x4dc6b6];}['_isEditable'];constructor(_0x1ab4a5){super(_0x1ab4a5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xb7715d){const _0x5f03c5=V(_0xb7715d);return _0x343391=>!(!_0x343391||!_0x343391['is']('element','imageBlock')&&!_0x343391['is']('element','imageInline'))&&(!!_0x343391['hasAttribute']('uploadcareImageId')||!!_0x343391['hasAttribute']('src')&&_0x5f03c5(_0x343391['getAttribute']('src')));}(_0x1ab4a5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x89e57b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x89e57b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1a9ecc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a9ecc&&(_0x1a9ecc['is']('element','imageBlock')||_0x1a9ecc['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4dc6b6),_0x1a9ecc),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x527fb4{['refresh'](){const _0x231e92=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x231e92&&(_0x231e92['is']('element','imageBlock')||_0x231e92['is']('element','imageInline')));}['execute'](_0x327f12){const _0x207c16=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5631b5=>{_0x5631b5['setAttributes'](_0x327f12,_0x207c16),_0x5631b5['removeAttribute']('srcset',_0x207c16),_0x5631b5['removeAttribute']('sizes',_0x207c16);});}}class g extends _0x514922{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xa21640,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x39c448}=this;_0x39c448['commands']['add']('uploadcareImageEdit',new J(_0x39c448)),_0x39c448['commands']['add']('uploadcareImageReplace',new O(_0x39c448));}}class j extends _0x514922{['_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 _0x2b3e85=this['editor'];_0x2b3e85['ui']['componentFactory']['add']('uploadcareImageEdit',_0x8ba274=>{const _0x35c570=_0x2b3e85['commands']['get']('uploadcareImageEdit'),_0x26ddc7=new _0x2a5895(_0x8ba274),t=_0x8ba274['t'];return _0x26ddc7['set']({'icon':_0x175ee0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26ddc7['bind']('isEnabled')['to'](_0x35c570),_0x26ddc7['bind']('isOn')['to'](_0x35c570,'isActive'),this['listenTo'](_0x26ddc7,'execute',()=>{_0x2b3e85['execute']('uploadcareImageEdit'),_0x2b3e85['editing']['view']['focus']();}),_0x26ddc7;}),this['_initConfig']();}['_initConfig'](){const _0x1a26ad=_0x39ebde(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1a26ad),this['listenTo'](this['editor'],'destroy',()=>{_0x1a26ad['remove']();});}}class P extends _0x514922{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
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':_0x55457b=>0x1!=_0x55457b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1963b3=>{const {af:{dictionary:_0x24e86b,getPluralForm:_0x4287af}}={'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':_0xf97860=>0x1!=_0xf97860}};_0x1963b3['af']||={'dictionary':{},'getPluralForm':null},_0x1963b3['af']['dictionary']=Object['assign'](_0x1963b3['af']['dictionary'],_0x24e86b),_0x1963b3['af']['getPluralForm']=_0x4287af;})(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':_0x428bd1=>0x0==_0x428bd1?0x0:0x1==_0x428bd1?0x1:0x2==_0x428bd1?0x2:_0x428bd1%0x64>=0x3&&_0x428bd1%0x64<=0xa?0x3:_0x428bd1%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x26c79f=>{const {ar:{dictionary:_0x5ea5ad,getPluralForm:_0xd7eecb}}={'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':_0x273971=>0x0==_0x273971?0x0:0x1==_0x273971?0x1:0x2==_0x273971?0x2:_0x273971%0x64>=0x3&&_0x273971%0x64<=0xa?0x3:_0x273971%0x64>=0xb?0x4:0x5}};_0x26c79f['ar']||={'dictionary':{},'getPluralForm':null},_0x26c79f['ar']['dictionary']=Object['assign'](_0x26c79f['ar']['dictionary'],_0x5ea5ad),_0x26c79f['ar']['getPluralForm']=_0xd7eecb;})(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':_0x5e3610=>0x1!=_0x5e3610}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3c4ffb=>{const {ast:{dictionary:_0x43431d,getPluralForm:_0x5c9d96}}={'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':_0xd7aa5b=>0x1!=_0xd7aa5b}};_0x3c4ffb['ast']||={'dictionary':{},'getPluralForm':null},_0x3c4ffb['ast']['dictionary']=Object['assign'](_0x3c4ffb['ast']['dictionary'],_0x43431d),_0x3c4ffb['ast']['getPluralForm']=_0x5c9d96;})(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':_0x546d5b=>0x1!=_0x546d5b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x9aa8d7=>{const {az:{dictionary:_0x5899d9,getPluralForm:_0x444f19}}={'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':_0x8930f5=>0x1!=_0x8930f5}};_0x9aa8d7['az']||={'dictionary':{},'getPluralForm':null},_0x9aa8d7['az']['dictionary']=Object['assign'](_0x9aa8d7['az']['dictionary'],_0x5899d9),_0x9aa8d7['az']['getPluralForm']=_0x444f19;})(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':_0x442db0=>0x1!=_0x442db0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x385e4f=>{const {bg:{dictionary:_0x378ff4,getPluralForm:_0x32b95c}}={'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':_0x4b6be5=>0x1!=_0x4b6be5}};_0x385e4f['bg']||={'dictionary':{},'getPluralForm':null},_0x385e4f['bg']['dictionary']=Object['assign'](_0x385e4f['bg']['dictionary'],_0x378ff4),_0x385e4f['bg']['getPluralForm']=_0x32b95c;})(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':_0x5b90ec=>0x1!=_0x5b90ec}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5b303c=>{const {bn:{dictionary:_0x94972d,getPluralForm:_0x4052cf}}={'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':_0x54c11f=>0x1!=_0x54c11f}};_0x5b303c['bn']||={'dictionary':{},'getPluralForm':null},_0x5b303c['bn']['dictionary']=Object['assign'](_0x5b303c['bn']['dictionary'],_0x94972d),_0x5b303c['bn']['getPluralForm']=_0x4052cf;})(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':_0x162e23=>_0x162e23%0xa==0x1&&_0x162e23%0x64!=0xb?0x0:_0x162e23%0xa>=0x2&&_0x162e23%0xa<=0x4&&(_0x162e23%0x64<0xa||_0x162e23%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x20ad54=>{const {bs:{dictionary:_0x54638b,getPluralForm:_0x28312a}}={'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':_0x2a7723=>_0x2a7723%0xa==0x1&&_0x2a7723%0x64!=0xb?0x0:_0x2a7723%0xa>=0x2&&_0x2a7723%0xa<=0x4&&(_0x2a7723%0x64<0xa||_0x2a7723%0x64>=0x14)?0x1:0x2}};_0x20ad54['bs']||={'dictionary':{},'getPluralForm':null},_0x20ad54['bs']['dictionary']=Object['assign'](_0x20ad54['bs']['dictionary'],_0x54638b),_0x20ad54['bs']['getPluralForm']=_0x28312a;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ca.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':
|
|
23
|
+
export default{'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0x302e4f=>0x1!=_0x302e4f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1b6c0b=>{const {ca:{dictionary:_0xeb0bd4,getPluralForm:_0x48a148}}={'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'},'getPluralForm':_0x305052=>0x1!=_0x305052}};_0x1b6c0b['ca']||={'dictionary':{},'getPluralForm':null},_0x1b6c0b['ca']['dictionary']=Object['assign'](_0x1b6c0b['ca']['dictionary'],_0xeb0bd4),_0x1b6c0b['ca']['getPluralForm']=_0x48a148;})(window['CKEDITOR_TRANSLATIONS']||={});
|