@ckeditor/ckeditor5-uploadcare 47.5.0 → 47.6.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x290a13,Command as _0x363393}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1ab90f,IconGooglePhotos as _0x221734,IconGoogleDrive as _0x8680f8,IconFacebook as _0xf08c8b,IconDropbox as _0x1ace9a,IconUploadcareLink as _0x2a5a50,IconUploadcareImageUpload as _0x97b9fb,IconError as _0x282d90,IconUploadcareImageEdit as _0x4734ee}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x32a0e5,MenuBarMenuListItemButtonView as _0x65d622,View as _0x2d9fc0,FocusCycler as _0x1c3554,Dialog as _0x12553a,DialogViewPosition as _0x170076,SpinnerView as _0x1f177b,IconView as _0x25c422,Notification as _0x533009}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3819d4,DomEmitterMixin as _0x17c636,global as _0x4bd362,getAncestors as _0x55c5bf,ObservableMixin as _0x3dae52,uid as _0x48f027,createElement as _0x171505}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x48694d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x238baa,info as _0x2f187}from'@uploadcare/upload-client';import*as _0x5b5b58 from'@uploadcare/file-uploader';var i=function(_0x40e216){return _0x40e216['Local']='local',_0x40e216['URL']='url',_0x40e216['Dropbox']='dropbox',_0x40e216['GDrive']='gdrive',_0x40e216['Facebook']='facebook',_0x40e216['GPhotos']='gphotos',_0x40e216['OneDrive']='onedrive',_0x40e216;}({});function _(_0x555849,_0x5edd72,_0x16cdcf){const t=_0x555849['t'],_0xdf1aa6=_0x555849['t'];switch(_0x5edd72){case i['Local']:return{'text':_0xdf1aa6('Insert'===_0x16cdcf?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xdf1aa6('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x16cdcf?_0xdf1aa6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xdf1aa6('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x16cdcf?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x16cdcf?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x16cdcf?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x16cdcf?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x16cdcf?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5edd72;}}class e extends _0x290a13{['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 _0x2cd56a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x28565b;for(const _0x10b245 in _0x2cd56a){const _0x2d8ef1=_0x10b245,_0x446472=_0x2cd56a[_0x2d8ef1];if('uploadcareLicenseKeyValid'==_0x446472||'uploadcareLicenseKeyInvalid'==_0x446472||'uploadcareLicenseKeyExpired'==_0x446472||'uploadcareLicenseKeyDomainLimit'==_0x446472||'uploadcareLicenseKeyNotAllowed'==_0x446472||'uploadcareLicenseKeyEvaluationLimit'==_0x446472||'uploadcareLicenseKeyUsageLimit'==_0x446472){delete _0x2cd56a[_0x2d8ef1],_0x28565b=_0x446472,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x28565b&&_0x2cd56a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x28565b&&_0x2cd56a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x28565b&&_0x2cd56a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x28565b&&_0x2cd56a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x28565b&&_0x2cd56a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x28565b&&_0x2cd56a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1ca530}=this,_0x583671=_0x1ca530['commands']['get']('uploadcare');if(!_0x583671)return;const _0xf8d128=this['_normalizeConfigSourceList'](_0x1ca530['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x12ab32,_0x3708fd)=>{const _0x1a5d5e=this['_getIntegrationKey'](_0x3708fd['type']);return _0x12ab32[_0x1a5d5e]||(_0x12ab32[_0x1a5d5e]=[]),_0x12ab32[_0x1a5d5e]['push'](_0x3708fd),_0x12ab32;},{});_0x1ca530['plugins']['has']('ImageInsertUI')&&_0x1ca530['commands']['get']('uploadcare')&&Object['entries'](_0xf8d128)['forEach'](([_0x1c4aa1,_0x51ebcf])=>{_0x1ca530['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1c4aa1,'observable':()=>_0x583671,'buttonViewCreator':()=>this['_createToolbarButton'](_0x51ebcf),'formViewCreator':()=>this['_createDropdownButtons'](_0x51ebcf),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x51ebcf),'override':'assetManager'!==_0x1c4aa1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x362a9a){const {locale:_0x1dbf04}=this['editor'];return _0x362a9a['map'](_0xbefb7a=>{const _0x516c4d=_(_0x1dbf04,_0xbefb7a,'Insert');switch(_0xbefb7a){case i['Local']:return{'icon':_0x97b9fb,'type':i['Local'],..._0x516c4d};case i['URL']:return{'icon':_0x2a5a50,'type':i['URL'],..._0x516c4d};case i['Dropbox']:return{'icon':_0x1ace9a,'type':i['Dropbox'],..._0x516c4d};case i['Facebook']:return{'icon':_0xf08c8b,'type':i['Facebook'],..._0x516c4d};case i['GDrive']:return{'icon':_0x8680f8,'type':i['GDrive'],..._0x516c4d};case i['GPhotos']:return{'icon':_0x221734,'type':i['GPhotos'],..._0x516c4d};case i['OneDrive']:return{'icon':_0x1ab90f,'type':i['OneDrive'],..._0x516c4d};}});}['_getIntegrationKey'](_0x7751dd){switch(_0x7751dd){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5b14bc,_0xb56ab5){const _0x4120cf=this['editor'],_0x573044=new _0x5b14bc(_0x4120cf['locale']),_0x289983=_0x4120cf['commands']['get']('uploadcare');return _0x573044['bind']('isEnabled')['to'](_0x289983),_0x573044['on']('execute',()=>{_0x289983['execute'](_0xb56ab5);}),_0x573044;}['_createToolbarButton'](_0x4ab8c8){const {locale:_0x1666da}=this['editor'],_0x29d21d=this['editor']['plugins']['get']('ImageInsertUI'),_0x3fd89d=_0x4ab8c8[0x0],_0x570487=this['_createButton'](_0x32a0e5,_0x3fd89d['type']);return _0x570487['icon']=_0x3fd89d['icon'],_0x570487['bind']('label')['to'](_0x29d21d,'isImageSelected',_0x173ef7=>_(_0x1666da,_0x3fd89d['type'],_0x173ef7?'Replace':'Insert')['text']),_0x570487['tooltip']=!0x0,_0x570487;}['_createDropdownButtons'](_0x28584c){const {locale:_0x4a7261}=this['editor'],_0x4db377=this['editor']['plugins']['get']('ImageInsertUI');return _0x28584c['map'](_0x58a709=>{const _0x1e72ec=this['_createButton'](_0x32a0e5,_0x58a709['type']);return _0x1e72ec['withText']=!0x0,_0x1e72ec['icon']=_0x58a709['icon'],_0x1e72ec['bind']('label')['to'](_0x4db377,'isImageSelected',_0xd4bc3e=>_(_0x4a7261,_0x58a709['type'],_0xd4bc3e?'Replace':'Insert')['text']),_0x1e72ec;});}['_createMenuBarButtons'](_0x76a515){return _0x76a515['map'](_0x1a347d=>{const _0x21fee2=this['_createButton'](_0x65d622,_0x1a347d['type']);return _0x21fee2['icon']=_0x1a347d['icon'],_0x21fee2['label']=_0x1a347d['shortText'],_0x21fee2;});}}class V extends _0x2d9fc0{['focusTracker'];['focusCycler'];constructor(_0x220401){super(_0x220401),this['focusTracker']=new _0x3819d4(),this['focusCycler']=new _0x1c3554({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x12e055,_0x2e2c04){super(_0x12e055),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-'+_0x2e2c04}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xac2da3,_0x436751){const _0xe13635=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3c8168=>_0x3c8168<=_0x436751)['map'](_0x425b3e=>_0xac2da3['replace'](/\/$/,'')+'/-/resize/'+_0x425b3e+'x/\x20'+_0x425b3e+'w');return{'imageFallbackUrl':_0xac2da3,'imageSources':[{'srcset':_0xe13635['join'](',\x20'),'sizes':'(max-width:\x20'+_0x436751+'px)\x20100vw,\x20'+_0x436751+'px','type':'image/webp'}]};}function F(_0x3ecd14,_0x53f9dd,_0x1d3442){const _0x3d5228=_0x3ecd14['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3d5228?parseInt(_0x3d5228[0x1],0xa):_0x53f9dd,'height':_0x3d5228?parseInt(_0x3d5228[0x2],0xa):_0x1d3442};}function p(_0x3a3a10,_0x390ba8){const _0x46490b=new(_0x17c636())(),_0x4a056c=_0x3a3a10['plugins']['get']('ImageUtils'),_0x26151f=_0x3a3a10['editing']['mapper']['toViewElement'](_0x390ba8),_0x45359e=_0x4a056c['findViewImgElement'](_0x26151f),_0x59e79e=_0x3a3a10['editing']['view']['domConverter']['viewToDom'](_0x45359e),_0x3c5871=_0x390ba8['getAttribute']('width'),_0x4dfb61=_0x390ba8['getAttribute']('height'),_0x41686e='image-processing';_0x3a3a10['editing']['view']['change'](_0x442ed6=>{_0x442ed6['addClass'](_0x41686e,_0x26151f),_0x442ed6['setStyle']('aspect-ratio',_0x3c5871+'/'+_0x4dfb61,_0x45359e);}),_0x46490b['listenTo'](_0x59e79e,'load',()=>{_0x46490b['stopListening'](_0x59e79e,'load'),_0x3a3a10['editing']['view']['change'](_0x51ec76=>{_0x51ec76['removeClass'](_0x41686e,_0x26151f),_0x51ec76['removeStyle']('aspect-ratio',_0x45359e);});});}function R(_0x1fe42b){if(Array['isArray'](_0x1fe42b)){const _0x3a98ab=_0x1fe42b['map'](R);return _0x56c94f=>_0x3a98ab['some'](_0x192545=>_0x192545(_0x56c94f));}if('origin'==_0x1fe42b){const _0x1113cd=_0x4bd362['window']['location']['origin'];return _0x718749=>new URL(_0x718749,_0x4bd362['document']['baseURI'])['origin']==_0x1113cd;}return'function'==typeof _0x1fe42b?_0x1fe42b:_0x1fe42b instanceof RegExp?_0x22f718=>!(!_0x22f718['match'](_0x1fe42b)&&!_0x22f718['replace'](/^https?:\/\//,'')['match'](_0x1fe42b)):()=>!0x1;}function M(_0x44039c,_0x1132b0){return _0x55c5bf(_0x44039c['target'])['includes'](_0x1132b0);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3dae52(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x11b667,_0x35ffd4,_0xf7adb3){super(),this['_editor']=_0x11b667,this['_editing']=_0x35ffd4,this['_dialog']=_0x11b667['plugins']['get'](_0x12553a),this['_api']=_0x35ffd4['ctxElement']['getAPI'](),this['_type']=_0xf7adb3,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:_0x2c3d76,model:_0x66538b}=this['_editor'],_0x572400=_0x66538b['document']['selection']['getSelectedElement'](),_0xddc67b=_0x572400&&(_0x572400['is']('element','imageBlock')||_0x572400['is']('element','imageInline'));this['_formView']=new S(_0x2c3d76,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x97b9fb,'title':_(_0x2c3d76,this['_type'],_0xddc67b?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x170076['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x29e994=>!M(_0x29e994,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x535f31}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x32cd5f=>{const _0xfd2acd=_0x535f31['length'];for(const _0x496536 of _0x535f31){const _0x466afd=_0x496536===_0x535f31[_0xfd2acd-0x1],{cdnUrl:_0x114778,fileInfo:_0x53e5ec}=_0x496536;if(!_0x114778||!_0x53e5ec)continue;const {width:_0x45b425,height:_0x1450c4}=_0x53e5ec['imageInfo'],_0x56c59a=F(_0x114778,_0x45b425,_0x1450c4),_0x46ad07=C(_0x114778,_0x56c59a['width']),_0x3a3021={'id':_0x53e5ec['uuid'],'type':'image','attributes':{'imageDimension':_0x56c59a,..._0x46ad07}};this['_insertAsset'](_0x3a3021,_0x466afd,_0x32cd5f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x17ba4e=>{'idle'===_0x17ba4e['detail']['status']&&!_0x17ba4e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x351b53,_0x47c6e0,_0x334546){const _0x206fc1=this['_editor']['model']['document']['selection'],_0x187484=_0x206fc1['getSelectedElement'](),_0x52283e=!(!_0x187484||!_0x187484['is']('element','imageInline'));_0x334546['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x351b53,_0x52283e),_0x47c6e0||_0x334546['setSelection'](_0x206fc1['getLastPosition']());}['_insertImage'](_0x14360d,_0x226ba1){const _0xbc78b8=this['_editor'],{imageDimension:_0x2645b9,imageFallbackUrl:_0x8a16d,imageSources:_0x368254}=_0x14360d['attributes'];_0xbc78b8['execute']('insertImage',{'imageType':_0x226ba1?'imageInline':null,'source':{'uploadcareImageId':_0x14360d['id'],'src':_0x8a16d,'sources':_0x368254,..._0x2645b9}});}}class w extends _0x363393{['_editing'];['_controller']=null;static get['requires'](){return[_0x12553a,o];}constructor(_0x68962){super(_0x68962),this['_editing']=_0x68962['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x29ed06){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x29ed06);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x45adca,..._0x50f9b1}){return _0x238baa(_0x45adca,_0x50f9b1);}static['getInfo'](_0x30463f,_0x36470e){return _0x2f187(_0x30463f,_0x36470e);}}class f extends _0x290a13{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x48694d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x159c9a=this['editor'];if(!!!_0x159c9a['config']['get']('uploadcare'))return;_0x159c9a['plugins']['get'](_0x48694d)['createUploadAdapter']=_0x5e1bd9=>new k(_0x5e1bd9,_0x159c9a),_0x159c9a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x372471,{imageElement:_0x354f0a,data:_0x2536a8})=>{_0x159c9a['model']['change'](_0x3705b2=>{_0x3705b2['setAttribute']('uploadcareImageId',_0x2536a8['uploadcareImageId'],_0x354f0a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2ffd1f,_0x5f0a98){this['loader']=_0x2ffd1f,this['editor']=_0x5f0a98,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x217020=await this['loader']['file'];return j['upload']({'file':_0x217020,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x5e3080=>{_0x5e3080&&_0x5e3080['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5e3080['value']);}})['then'](async _0x3d5457=>{const {imageFallbackUrl:_0xbdbce2,imageSources:_0x5a4b26}=C(_0x3d5457['cdnUrl'],_0x3d5457['imageInfo']['width']);return{'uploadcareImageId':_0x3d5457['uuid'],'default':_0xbdbce2,'sources':_0x5a4b26};})['catch'](()=>{const _0x32e637=t('Cannot\x20upload\x20file:')+('\x20'+_0x217020['name']+'.');return Promise['reject'](_0x32e637);});}['abort'](){this['controller']['abort']();}}class o extends _0x290a13{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x12553a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x242557){super(_0x242557),this['ucContextId']=_0x48f027();}['init'](){const _0x68a93f=this['editor'];_0x68a93f['commands']['add']('uploadcare',new w(_0x68a93f));}['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 _0x3ef9cc=_0x4bd362['document']['querySelector']('input[uploadcare-file-input]');_0x3ef9cc&&_0x3ef9cc['remove']();}),async function(_0x1e65eb){const _0x35117c=_0x52c214([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x195922=0x535f8c3a,_0xebc906=0x53580d52^_0x195922,_0xec7660=window[_0x52c214([0x44,0x61,0x74,0x65])][_0x52c214([0x6e,0x6f,0x77])](),_0x2893f2=_0x1e65eb[_0x52c214([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x335f5c=new window[(_0x52c214([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5520e0=>{_0x2893f2[_0x52c214([0x6f,0x6e,0x63,0x65])](_0x52c214([0x72,0x65,0x61,0x64,0x79]),_0x5520e0);}),_0x115967={[_0x52c214([0x6b,0x74,0x79])]:_0x52c214([0x45,0x43]),[_0x52c214([0x75,0x73,0x65])]:_0x52c214([0x73,0x69,0x67]),[_0x52c214([0x63,0x72,0x76])]:_0x52c214([0x50,0x2d,0x32,0x35,0x36]),[_0x52c214([0x78])]:_0x52c214([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]),[_0x52c214([0x79])]:_0x52c214([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]),[_0x52c214([0x61,0x6c,0x67])]:_0x52c214([0x45,0x53,0x32,0x35,0x36])},_0x75923e=_0x2893f2[_0x52c214([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52c214([0x67,0x65,0x74])](_0x52c214([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5eb471(){let _0x1e6107,_0x5b4867=null,_0x30e0c4=null;try{if(_0x75923e==_0x52c214([0x47,0x50,0x4c]))return _0x52c214([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e6107=_0x3634cf(),!_0x1e6107)return _0x52c214([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e6107[_0x52c214([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x30e0c4=_0x54e203(_0x1e6107[_0x52c214([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e6107[_0x52c214([0x6a,0x74,0x69])])),await _0x46bdca()?_0x2ada76()?_0x2ab800()?_0x52c214([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4be13a()?(_0x1e6107[_0x52c214([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52c214([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b4867=_0x2e53f6(_0x52c214([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c61f9()):_0x52c214([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52c214([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52c214([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x52c214([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ab800(){const _0x4a3fbb=[_0x52c214([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52c214([0x74,0x72,0x69,0x61,0x6c])][_0x52c214([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e6107[_0x52c214([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xec7660/0x3e8:0xe10*_0xebc906;return _0x1e6107[_0x52c214([0x65,0x78,0x70])]<_0x4a3fbb;}function _0x2ada76(){const _0x15109b=_0x1e6107[_0x52c214([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15109b&&(!!_0x15109b[_0x52c214([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c214([0x2a]))||!!_0x15109b[_0x52c214([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c214([0x55,0x50,0x4c,0x43])));}function _0x4be13a(){const _0x20a129=_0x1e6107[_0x52c214([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20a129||0x0==_0x20a129[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x446759}=new URL(window[_0x52c214([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20a129[_0x52c214([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x446759))return!0x0;const _0x5e1f84=_0x446759[_0x52c214([0x73,0x70,0x6c,0x69,0x74])](_0x52c214([0x2e]));return _0x20a129[_0x52c214([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56a42c=>_0x56a42c[_0x52c214([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c214([0x2a])))[_0x52c214([0x6d,0x61,0x70])](_0x10ad83=>_0x10ad83[_0x52c214([0x73,0x70,0x6c,0x69,0x74])](_0x52c214([0x2e])))[_0x52c214([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55c8ff=>_0x55c8ff[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e1f84[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52c214([0x6d,0x61,0x70])](_0x7a8112=>Array(_0x5e1f84[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x7a8112[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52c214([0x66,0x69,0x6c,0x6c])](_0x7a8112[0x0]===_0x52c214([0x2a])?_0x52c214([0x2a]):'')[_0x52c214([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x7a8112))[_0x52c214([0x73,0x6f,0x6d,0x65])](_0x49deb0=>_0x5e1f84[_0x52c214([0x65,0x76,0x65,0x72,0x79])]((_0x5b24d7,_0x93bfca)=>_0x49deb0[_0x93bfca]===_0x5b24d7||_0x49deb0[_0x93bfca]===_0x52c214([0x2a])));}function _0x3c61f9(){return _0x5b4867&&_0x30e0c4?new window[(_0x52c214([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a6801,_0x5c5241)=>{_0x5b4867[_0x52c214([0x74,0x68,0x65,0x6e])](_0x5a6801,_0x5c5241),_0x30e0c4[_0x52c214([0x74,0x68,0x65,0x6e])](_0x17d350=>{_0x17d350!=_0x52c214([0x56,0x61,0x6c,0x69,0x64])&&_0x5a6801(_0x17d350);},_0x5c5241);}):_0x5b4867||_0x30e0c4||_0x52c214([0x56,0x61,0x6c,0x69,0x64]);}}function _0x54e203(_0x307d06,_0x9fb671){return new window[(_0x52c214([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d2203=>{if(_0x50dfeb())return _0x4d2203(_0x52c214([0x56,0x61,0x6c,0x69,0x64]));_0x310860(),_0x2893f2[_0x52c214([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52c214([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9cf17=!0x1;const _0x529946=_0x48f027();function _0x37f0ce(_0x25a87a){return!!_0x25a87a&&(typeof _0x25a87a===_0x52c214([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25a87a===_0x52c214([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25a87a[_0x52c214([0x74,0x68,0x65,0x6e])]===_0x52c214([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25a87a[_0x52c214([0x63,0x61,0x74,0x63,0x68])]===_0x52c214([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ab416(_0x3f449f){_0x265d43(_0x3f449f)[_0x52c214([0x74,0x68,0x65,0x6e])](_0x58635c=>{if(!_0x58635c||_0x58635c[_0x52c214([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52c214([0x6f,0x6b]))return _0x52c214([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x370eaf(_0x4ff008(_0x529946+_0x9fb671))!=_0x58635c[_0x52c214([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52c214([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52c214([0x56,0x61,0x6c,0x69,0x64]);})[_0x52c214([0x74,0x68,0x65,0x6e])](_0x32af10=>(_0x44adf1(),_0x32af10),()=>{const _0x546329=_0x275d6d();return null==_0x546329?(_0x44adf1(),_0x52c214([0x56,0x61,0x6c,0x69,0x64])):_0x52c214(_0xec7660-_0x546329>(0x7753083a^_0x195922)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52c214([0x74,0x68,0x65,0x6e])](_0x4d2203)[_0x52c214([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d2203(_0x52c214([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x137058=0x536962ba^_0x195922;function _0x44adf1(){const _0x4242be=_0x52c214([0x6c,0x6c,0x63,0x74,0x2d])+_0x370eaf(_0x4ff008(_0x307d06)),_0xe9bda=_0x185ecf(_0x370eaf(window[_0x52c214([0x4d,0x61,0x74,0x68])][_0x52c214([0x63,0x65,0x69,0x6c])](_0xec7660/_0x137058)));window[_0x52c214([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52c214([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4242be,_0xe9bda);}function _0x275d6d(){const _0x3df680=_0x52c214([0x6c,0x6c,0x63,0x74,0x2d])+_0x370eaf(_0x4ff008(_0x307d06)),_0x13f068=window[_0x52c214([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52c214([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3df680);return _0x13f068?window[_0x52c214([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x185ecf(_0x13f068),0x10)*_0x137058:null;}function _0x265d43(_0x1e4083){return new window[(_0x52c214([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51a2a5,_0x1c5e1b)=>{_0x1e4083[_0x52c214([0x74,0x68,0x65,0x6e])](_0x51a2a5,_0x1c5e1b),window[_0x52c214([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c5e1b,0x535e58fa^_0x195922);});}}_0x2893f2[_0x52c214([0x6f,0x6e])](_0x52c214([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2429a6,_0x3e31dd)=>{if(_0x3e31dd[0x0]!=_0x307d06)return _0x4d2203(_0x52c214([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e31dd[0x1]={..._0x3e31dd[0x1],[_0x52c214([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x529946};},{[_0x52c214([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52c214([0x68,0x69,0x67,0x68])}),_0x2893f2[_0x52c214([0x6f,0x6e])](_0x52c214([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3163ba=>{_0x37f0ce(_0x3163ba[_0x52c214([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9cf17=!0x0,_0x2ab416(_0x3163ba[_0x52c214([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52c214([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52c214([0x6c,0x6f,0x77])}),_0x335f5c[_0x52c214([0x74,0x68,0x65,0x6e])](()=>{_0x9cf17||_0x4d2203(_0x52c214([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50dfeb(){return _0x2893f2[_0x52c214([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52c214([0x76,0x69,0x65,0x77])][_0x52c214([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52c214([0x61,0x75,0x74,0x6f]);}function _0x310860(){_0x2893f2[_0x52c214([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52c214([0x76,0x69,0x65,0x77])][_0x52c214([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52c214([0x61,0x75,0x74,0x6f]);}}function _0x2e53f6(_0x58fe10){const _0xf4762=[new window[(_0x52c214([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41f585=>setTimeout(_0x41f585,0x5356b2f6^_0x195922)),_0x335f5c[_0x52c214([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52c214([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2af330=>{let _0x586d00=0x0;_0x2893f2[_0x52c214([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c214([0x6f,0x6e])](_0x52c214([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20f74a,_0x22fbac)=>{_0x22fbac[0x0][_0x52c214([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x586d00++,_0x586d00==(0x535f89d2^_0x195922)&&(_0x2af330(),_0x20f74a[_0x52c214([0x6f,0x66,0x66])]());});}))];return window[_0x52c214([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52c214([0x72,0x61,0x63,0x65])](_0xf4762)[_0x52c214([0x74,0x68,0x65,0x6e])](()=>_0x58fe10);}async function _0xe9321(){await _0x335f5c,_0x2893f2[_0x52c214([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c214([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49b211,_0x2893f2[_0x52c214([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c214([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49b211,_0x2893f2[_0x52c214([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52c214([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17163e(_0x3cc20c){const _0x39ea33=_0x218bc4();_0x2893f2[_0x39ea33]=_0x52c214([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3cc20c,_0x3cc20c!=_0x52c214([0x56,0x61,0x6c,0x69,0x64])&&_0xe9321();}function _0x218bc4(){const _0xd628c1=window[_0x52c214([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52c214([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52c214([0x6e,0x6f,0x77])]())[_0x52c214([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52c214([0x2e]),'');let _0xf20f6c=_0x52c214([0x68]);for(let _0x3c9394=0x0;_0x3c9394<_0xd628c1[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c9394+=0x2){let _0x24468c=window[_0x52c214([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd628c1[_0x52c214([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c9394,_0x3c9394+0x2));_0x24468c>=_0x35117c[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24468c-=_0x35117c[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf20f6c+=_0x35117c[_0x24468c];}return _0xf20f6c;}function _0x3634cf(){const _0x2df24d=_0x75923e[_0x52c214([0x73,0x70,0x6c,0x69,0x74])](_0x52c214([0x2e]));if(0x3!=_0x2df24d[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x307143(_0x2df24d[0x1]);function _0x307143(_0x34f3e1){const _0xd342b2=_0x265025(_0x34f3e1);return _0xd342b2&&_0xf47440()?_0xd342b2:null;function _0xf47440(){const _0xbc6a92=_0xd342b2[_0x52c214([0x6a,0x74,0x69])],_0xafc524=window[_0x52c214([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbc6a92[_0x52c214([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbc6a92[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5157cc={..._0xd342b2,[_0x52c214([0x6a,0x74,0x69])]:_0xbc6a92[_0x52c214([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xbc6a92[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5157cc[_0x52c214([0x76,0x63])],_0x4ff008(_0x5157cc)==_0xafc524;}}}async function _0x46bdca(){let _0x4a2374=!0x0;try{const _0x164765=_0x75923e[_0x52c214([0x73,0x70,0x6c,0x69,0x74])](_0x52c214([0x2e])),[_0x45ff8e,_0x66d5a8,_0x14d018]=_0x164765;return _0x3d8246(_0x45ff8e),await _0x318b04(_0x45ff8e,_0x66d5a8,_0x14d018),_0x4a2374;}catch{return!0x1;}function _0x3d8246(_0x58b209){const _0x1cdcd9=_0x265025(_0x58b209);_0x1cdcd9&&_0x1cdcd9[_0x52c214([0x61,0x6c,0x67])]==_0x52c214([0x45,0x53,0x32,0x35,0x36])||(_0x4a2374=!0x1);}async function _0x318b04(_0x4a0927,_0x3fdedf,_0x50ed48){const _0x3b8d62=window[_0x52c214([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52c214([0x66,0x72,0x6f,0x6d])](_0x34a758(_0x50ed48),_0x12f520=>_0x12f520[_0x52c214([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16baed=new window[(_0x52c214([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52c214([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a0927+_0x52c214([0x2e])+_0x3fdedf),_0x574b6f=window[_0x52c214([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52c214([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x574b6f)return;const _0x30b415=await _0x574b6f[_0x52c214([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52c214([0x6a,0x77,0x6b]),_0x115967,{[_0x52c214([0x6e,0x61,0x6d,0x65])]:_0x52c214([0x45,0x43,0x44,0x53,0x41]),[_0x52c214([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52c214([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52c214([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x574b6f[_0x52c214([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52c214([0x6e,0x61,0x6d,0x65])]:_0x52c214([0x45,0x43,0x44,0x53,0x41]),[_0x52c214([0x68,0x61,0x73,0x68])]:{[_0x52c214([0x6e,0x61,0x6d,0x65])]:_0x52c214([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30b415,_0x3b8d62,_0x16baed)||(_0x4a2374=!0x1);}}function _0x265025(_0x10c797){return _0x10c797[_0x52c214([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52c214([0x65,0x79]))?JSON[_0x52c214([0x70,0x61,0x72,0x73,0x65])](_0x34a758(_0x10c797)):null;}function _0x34a758(_0x3c110c){return window[_0x52c214([0x61,0x74,0x6f,0x62])](_0x3c110c[_0x52c214([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52c214([0x2b]))[_0x52c214([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52c214([0x2f])));}function _0x4ff008(_0x119a60){let _0x43d253=0x1505;function _0x50e2ac(_0x4b59a9){for(let _0x46ac3f=0x0;_0x46ac3f<_0x4b59a9[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46ac3f++){const _0x2d2e6b=_0x4b59a9[_0x52c214([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46ac3f);_0x43d253=(_0x43d253<<0x5)+_0x43d253+_0x2d2e6b,_0x43d253&=_0x43d253;}}function _0x36fc8f(_0x1e9f47){Array[_0x52c214([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e9f47)?_0x1e9f47[_0x52c214([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36fc8f):_0x1e9f47&&typeof _0x1e9f47==_0x52c214([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52c214([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e9f47)[_0x52c214([0x73,0x6f,0x72,0x74])]()[_0x52c214([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ee191,_0x4411c6])=>{_0x50e2ac(_0x1ee191),_0x36fc8f(_0x4411c6);}):_0x50e2ac(window[_0x52c214([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e9f47));}return _0x36fc8f(_0x119a60),_0x43d253>>>0x0;}function _0x370eaf(_0x5971e8){return _0x5971e8[_0x52c214([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52c214([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52c214([0x30]));}function _0x185ecf(_0x4e0500){return _0x4e0500[_0x52c214([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52c214([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52c214([0x6a,0x6f,0x69,0x6e])]('');}function _0x49b211(){}function _0x52c214(_0x4b04f8){return _0x4b04f8['map'](_0x511262=>String['fromCharCode'](_0x511262))['join']('');}_0x17163e(await _0x5eb471());}(this);}['_initSchema'](){const _0xdb03d=this['editor']['model']['schema'];_0xdb03d['isRegistered']('imageBlock')&&_0xdb03d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xdb03d['isRegistered']('imageInline')&&_0xdb03d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5b2cb3=this['editor'];_0x5b2cb3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5b2cb3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x9ebfac=>_0x9ebfac['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3b7bf7=_0x5b2cb3['commands']['get']('replaceImageSource');_0x3b7bf7&&this['listenTo'](_0x3b7bf7,'cleanupImage',(_0x43c37c,[_0x39f09d,_0x2d4ffd])=>{_0x39f09d['removeAttribute']('uploadcareImageId',_0x2d4ffd);});}['_initConfig'](){const _0x18e4f7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x23ca11=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x171505(_0x4bd362['document'],'uc-config',{..._0x18e4f7,'pubkey':_0x23ca11,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4e8e0e=>{if('closeMax'==_0x4e8e0e)return'#uc-icon-arrow-down';},_0x4bd362['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x171505(_0x4bd362['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4bd362['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4a5b0f=this['editor']['commands']['get']('insertImage');_0x4a5b0f&&this['listenTo'](_0x4a5b0f,'execute',()=>{const _0x297c9a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x297c9a&&_0x297c9a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x297c9a);});});const _0x569d07=this['editor']['commands']['get']('uploadcareImageReplace');_0x569d07&&this['listenTo'](_0x569d07,'execute',()=>{const _0x5e750e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e750e&&_0x5e750e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5e750e);});});}}class tt extends _0x290a13{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53bd72){super(_0x53bd72),_0x53bd72['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5b5b58['defineComponents'](_0x5b5b58),this['_defineLocale']();}['_defineLocale'](){const _0x2fdfeb=this['editor']['config']['get']('uploadcare.locale'),_0x2c88a6=this['editor']['locale']['contentLanguage'];_0x2fdfeb&&_0x5b5b58['defineLocale'](_0x2c88a6,_0x2fdfeb);}}class ii extends _0x2d9fc0{constructor(_0x51cc2a){super(_0x51cc2a);const t=_0x51cc2a['t'],_0x4e9dab=this['bindTemplate'],_0x239d5a=new _0x1f177b();_0x239d5a['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':[_0x239d5a,{'text':_0x4e9dab['to']('imageUploadProgress',_0x1ed658=>t('Loading\x20image...')+'\x20('+(_0x1ed658||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x2d9fc0{constructor(_0x107485){super(_0x107485);const t=_0x107485['t'];this['set']('errorType',null);const _0x1c59a0=new _0x32a0e5(_0x107485);_0x1c59a0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1c59a0['withText']=!0x0,_0x1c59a0['class']='ck-button-action',_0x1c59a0['on']('execute',()=>{this['fire']('retry');}),_0x1c59a0['bind']('isVisible')['to'](this,'errorType',_0x360c64=>'NotFound'!==_0x360c64);const _0x5434b7=new _0x25c422();_0x5434b7['content']=_0x282d90,_0x5434b7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1649a0=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':[_0x5434b7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1649a0['to']('errorType',_0x5cb024=>t('NotFound'!==_0x5cb024?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1c59a0]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x2d9fc0{constructor(_0x41811b,_0x1eda13){super(_0x41811b);const _0x4f1f93=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1eda13,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4f1f93['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x494c2f,_0x1352aa,_0xbcddb3){super(_0x494c2f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x494c2f),this['_errorView']=new ti(_0x494c2f),this['_editingView']=new ei(_0x494c2f,_0xbcddb3),this['_focusableView']=new _0x2d9fc0(_0x494c2f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1352aa),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'],_0x55837e=>{this['_addUploadcareImageEditorListeners'](_0x55837e);});}),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'](_0x43e6e6,_0x36efd0){const _0x2f59ce='uc-cloud-image-editor',_0x5eee66=_0x43e6e6['querySelector'](_0x2f59ce);if(_0x5eee66)return _0x36efd0(_0x5eee66);const _0x167766=new MutationObserver(_0x1bf087=>{const _0x1d70a2=_0x1bf087['filter'](_0x7616dc=>_0x7616dc['target']===_0x43e6e6&&_0x7616dc['addedNodes']['length']>0x0&&_0x7616dc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2f59ce);_0x1d70a2['length']&&(_0x167766['disconnect'](),_0x36efd0(_0x1d70a2[0x0]['addedNodes'][0x0]));});_0x167766['observe'](_0x43e6e6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4cd592){_0x4cd592['addEventListener']('apply',_0x2cd298=>{this['fire']('apply',{'imageSrc':_0x2cd298['detail']['cdnUrl']});}),_0x4cd592['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3dae52(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4bb00d,_0x4e74d6,_0xae9ec5){super(),this['_editor']=_0x4bb00d,this['_dialog']=_0x4e74d6,this['_imageElement']=_0xae9ec5,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 _0x4ac157=this['_imageElement'],_0x36a203=_0x4ac157['getAttribute']('uploadcareImageId'),_0x2f03d6=_0x4ac157['getAttribute']('src');if(_0x36a203)await this['_loadImageInfo'](_0x36a203,_0x2f03d6);else{if(this['_imageCache']['has'](_0x2f03d6)){const _0x5dcf2d=this['_imageCache']['get'](_0x2f03d6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5dcf2d['url'],this['imageDimension']=_0x5dcf2d['dimension'],this['imageId']=_0x5dcf2d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29546}=this['_editor'],t=_0x29546['t'],_0x5454e5=new X(_0x29546,this['imageStatus'],this['_attributes']);_0x5454e5['bind']('status')['to'](this,'imageStatus'),_0x5454e5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5454e5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5454e5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5454e5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4734ee,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5454e5,'position':_0x170076['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5454e5['focus']();},'onHide':()=>{_0x5454e5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4cedfc=>!M(_0x4cedfc,_0x5454e5['element'])}});}['_loadImageInfo'](_0x47975e,_0x245cc3){return j['getInfo'](_0x47975e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x512f38=>{const {width:_0x44870a,height:_0x54855d}=_0x512f38['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x245cc3,this['imageDimension']={'width':_0x44870a,'height':_0x54855d},this['imageId']=_0x47975e;})['catch'](_0x1e4a02=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e4a02['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x42652a,_0x301b5e){return this['_getImageAsFile'](_0x42652a)['then'](_0x4b3339=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x301b5e['signal'],'file':_0x4b3339,'onProgress':_0x159b20=>{_0x159b20&&_0x159b20['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x159b20['value']));}}))['then'](_0xbfdb50=>{const {width:_0x155e7a,height:_0x50b7f7}=_0xbfdb50['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbfdb50['cdnUrl'],this['imageDimension']={'width':_0x155e7a,'height':_0x50b7f7},this['imageId']=_0xbfdb50['uuid'],this['imageUploadProgress']=null;const _0x2b26f9=_0x42652a['getAttribute']('src');this['_imageCache']['set'](_0x2b26f9,{'id':_0xbfdb50['uuid'],'url':_0xbfdb50['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x6118b1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x6118b1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x14d71f,_0x55e5a4){_0x14d71f['on']('apply',(_0x41f0b1,_0xf4916e)=>{this['_replaceImage'](_0x55e5a4,_0xf4916e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x14d71f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x14d71f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5e93a7,_0x41983e,_0x2e9ea1){const _0x340f92=this['_editor'],{width:_0x24e656,height:_0x4df284}=F(_0x41983e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5296ec,imageSources:_0x3de05a}=C(_0x41983e,_0x24e656);_0x340f92['model']['change'](_0x32503d=>{if('$graveyard'===_0x5e93a7['root']['rootName']){_0x340f92['execute']('insertImage',{'imageType':_0x5e93a7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5e93a7['getAttributes']()),'uploadcareImageId':_0x2e9ea1,'src':_0x5296ec,'sources':_0x3de05a,'width':_0x24e656,'height':_0x4df284}});const _0x2e799e=_0x5e93a7['getChildren']();_0x5e93a7=_0x340f92['model']['document']['selection']['getSelectedElement']();for(const _0x2a6383 of _0x2e799e)_0x32503d['append'](_0x32503d['cloneElement'](_0x2a6383),_0x5e93a7);}else _0x32503d['setSelection'](_0x5e93a7,'on'),_0x340f92['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5e93a7['getAttributes']()),'uploadcareImageId':_0x2e9ea1,'src':_0x5296ec,'sources':_0x3de05a,'width':_0x24e656,'height':_0x4df284},_0x5e93a7);_0x32503d['setSelection'](_0x5e93a7,'on');});}async['_getImageAsFile'](_0x57cc7d){const _0x4fdba6=_0x4bd362['window'],_0x4e243b=_0x4bd362['document']['location']['href'],_0x29f149=new _0x4fdba6['URL'](_0x57cc7d['getAttribute']('src'),_0x4e243b);if('data:'===_0x29f149['protocol']){const _0x416cd9=_0x29f149['href']['split'](','),_0x4162ee=_0x416cd9[0x0]['match'](/:(.*?);/)[0x1],_0x321f01=_0x4162ee['split']('/')[0x1],_0xe4a1ff=_0x4fdba6['atob'](_0x416cd9[_0x416cd9['length']-0x1]);let _0x5f17b4=_0xe4a1ff['length'];const _0x5b8dce=new _0x4fdba6['Uint8Array'](_0x5f17b4);for(;_0x5f17b4--;)_0x5b8dce[_0x5f17b4]=_0xe4a1ff['charCodeAt'](_0x5f17b4);return new _0x4fdba6['File']([_0x5b8dce],'image.'+_0x321f01,{'type':_0x4162ee});}const _0x25a162=_0x29f149['href']['split']('/'),_0x2b890e=_0x25a162[_0x25a162['length']-0x1],_0x4f7566=_0x2b890e['split']('.')[0x1];return _0x4fdba6['fetch'](_0x29f149['href'])['then'](_0xb1f164=>_0xb1f164['clone']()['blob']())['then'](_0x3ac71d=>new _0x4fdba6['File']([_0x3ac71d],_0x2b890e,{'type':'image/'+_0x4f7566}));}}class N extends _0x363393{['imageEditController'];static get['requires'](){return[_0x12553a];}['_isEditable'];constructor(_0x884d4a){super(_0x884d4a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4bf0b1){const _0x14bb1a=R(_0x4bf0b1);return _0x4d4764=>!(!_0x4d4764||!_0x4d4764['is']('element','imageBlock')&&!_0x4d4764['is']('element','imageInline'))&&(!!_0x4d4764['hasAttribute']('uploadcareImageId')||!!_0x4d4764['hasAttribute']('src')&&_0x14bb1a(_0x4d4764['getAttribute']('src')));}(_0x884d4a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x56f640=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x56f640);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x554b81=this['editor']['model']['document']['selection']['getSelectedElement']();_0x554b81&&(_0x554b81['is']('element','imageBlock')||_0x554b81['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x12553a),_0x554b81),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x363393{['refresh'](){const _0x20e00e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x20e00e&&(_0x20e00e['is']('element','imageBlock')||_0x20e00e['is']('element','imageInline')));}['execute'](_0x11f946){const _0x5aa670=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x56c727=>{_0x56c727['setAttributes'](_0x11f946,_0x5aa670),_0x56c727['removeAttribute']('srcset',_0x5aa670),_0x56c727['removeAttribute']('sizes',_0x5aa670);});}}class m extends _0x290a13{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x533009,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ffdcc}=this;_0x4ffdcc['commands']['add']('uploadcareImageEdit',new N(_0x4ffdcc)),_0x4ffdcc['commands']['add']('uploadcareImageReplace',new O(_0x4ffdcc));}}class g extends _0x290a13{['_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 _0x172daf=this['editor'];_0x172daf['ui']['componentFactory']['add']('uploadcareImageEdit',_0x504b78=>{const _0x56950c=_0x172daf['commands']['get']('uploadcareImageEdit'),_0x5258f4=new _0x32a0e5(_0x504b78),t=_0x504b78['t'];return _0x5258f4['set']({'icon':_0x4734ee,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5258f4['bind']('isEnabled')['to'](_0x56950c),_0x5258f4['bind']('isOn')['to'](_0x56950c,'isActive'),this['listenTo'](_0x5258f4,'execute',()=>{_0x172daf['execute']('uploadcareImageEdit'),_0x172daf['editing']['view']['focus']();}),_0x5258f4;}),this['_initConfig']();}['_initConfig'](){const _0x4409f9=_0x171505(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4409f9),this['listenTo'](this['editor'],'destroy',()=>{_0x4409f9['remove']();});}}class et extends _0x290a13{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0xf622e5,Command as _0x11bbe0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x6a6d04,IconGooglePhotos as _0x4974c5,IconGoogleDrive as _0x157754,IconFacebook as _0x5ca282,IconDropbox as _0x202133,IconUploadcareLink as _0x4a0480,IconUploadcareImageUpload as _0x3b8b9e,IconError as _0x1c73fb,IconUploadcareImageEdit as _0x1a862b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5b1edf,MenuBarMenuListItemButtonView as _0x3aea68,View as _0x10a5ac,FocusCycler as _0x9f7566,Dialog as _0x50005f,DialogViewPosition as _0x1daabe,SpinnerView as _0x82a9cf,IconView as _0x1399f7,Notification as _0x3eba5a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x55b474,DomEmitterMixin as _0x58f48a,global as _0x16b32c,getAncestors as _0x5929ad,ObservableMixin as _0x18a7ea,uid as _0x47b2c4,createElement as _0x2b49b8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x283ace}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3ff628,info as _0xa391de}from'@uploadcare/upload-client';import*as _0x8542d4 from'@uploadcare/file-uploader';var i=function(_0x373aa7){return _0x373aa7['Local']='local',_0x373aa7['URL']='url',_0x373aa7['Dropbox']='dropbox',_0x373aa7['GDrive']='gdrive',_0x373aa7['Facebook']='facebook',_0x373aa7['GPhotos']='gphotos',_0x373aa7['OneDrive']='onedrive',_0x373aa7;}({});function _(_0x2ca22d,_0x28cc57,_0x42851d){const t=_0x2ca22d['t'],_0xee8c1=_0x2ca22d['t'];switch(_0x28cc57){case i['Local']:return{'text':_0xee8c1('Insert'===_0x42851d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xee8c1('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x42851d?_0xee8c1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xee8c1('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x42851d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x42851d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x42851d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x42851d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x42851d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x28cc57;}}class e extends _0xf622e5{['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 _0x13a222=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b765e;for(const _0x121895 in _0x13a222){const _0x4b117a=_0x121895,_0x3389b7=_0x13a222[_0x4b117a];if('uploadcareLicenseKeyValid'==_0x3389b7||'uploadcareLicenseKeyInvalid'==_0x3389b7||'uploadcareLicenseKeyExpired'==_0x3389b7||'uploadcareLicenseKeyDomainLimit'==_0x3389b7||'uploadcareLicenseKeyNotAllowed'==_0x3389b7||'uploadcareLicenseKeyEvaluationLimit'==_0x3389b7||'uploadcareLicenseKeyUsageLimit'==_0x3389b7){delete _0x13a222[_0x4b117a],_0x3b765e=_0x3389b7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3b765e&&_0x13a222['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3b765e&&_0x13a222['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3b765e&&_0x13a222['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3b765e&&_0x13a222['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3b765e&&_0x13a222['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3b765e&&_0x13a222['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x58b3e3}=this,_0x441055=_0x58b3e3['commands']['get']('uploadcare');if(!_0x441055)return;const _0x106e01=this['_normalizeConfigSourceList'](_0x58b3e3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1f9a0a,_0x5eea70)=>{const _0x25c5a4=this['_getIntegrationKey'](_0x5eea70['type']);return _0x1f9a0a[_0x25c5a4]||(_0x1f9a0a[_0x25c5a4]=[]),_0x1f9a0a[_0x25c5a4]['push'](_0x5eea70),_0x1f9a0a;},{});_0x58b3e3['plugins']['has']('ImageInsertUI')&&_0x58b3e3['commands']['get']('uploadcare')&&Object['entries'](_0x106e01)['forEach'](([_0x5f263f,_0x4f7f19])=>{_0x58b3e3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5f263f,'observable':()=>_0x441055,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4f7f19),'formViewCreator':()=>this['_createDropdownButtons'](_0x4f7f19),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4f7f19),'override':'assetManager'!==_0x5f263f});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3c4521){const {locale:_0x719bf5}=this['editor'];return _0x3c4521['map'](_0x1dcdf3=>{const _0x5d6e2b=_(_0x719bf5,_0x1dcdf3,'Insert');switch(_0x1dcdf3){case i['Local']:return{'icon':_0x3b8b9e,'type':i['Local'],..._0x5d6e2b};case i['URL']:return{'icon':_0x4a0480,'type':i['URL'],..._0x5d6e2b};case i['Dropbox']:return{'icon':_0x202133,'type':i['Dropbox'],..._0x5d6e2b};case i['Facebook']:return{'icon':_0x5ca282,'type':i['Facebook'],..._0x5d6e2b};case i['GDrive']:return{'icon':_0x157754,'type':i['GDrive'],..._0x5d6e2b};case i['GPhotos']:return{'icon':_0x4974c5,'type':i['GPhotos'],..._0x5d6e2b};case i['OneDrive']:return{'icon':_0x6a6d04,'type':i['OneDrive'],..._0x5d6e2b};}});}['_getIntegrationKey'](_0x47c669){switch(_0x47c669){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4f4da1,_0xa17295){const _0x392b31=this['editor'],_0x39e20d=new _0x4f4da1(_0x392b31['locale']),_0x3fdc13=_0x392b31['commands']['get']('uploadcare');return _0x39e20d['bind']('isEnabled')['to'](_0x3fdc13),_0x39e20d['on']('execute',()=>{_0x3fdc13['execute'](_0xa17295);}),_0x39e20d;}['_createToolbarButton'](_0x329f7f){const {locale:_0x43e817}=this['editor'],_0x1fde36=this['editor']['plugins']['get']('ImageInsertUI'),_0x52cbb4=_0x329f7f[0x0],_0x3f6fed=this['_createButton'](_0x5b1edf,_0x52cbb4['type']);return _0x3f6fed['icon']=_0x52cbb4['icon'],_0x3f6fed['bind']('label')['to'](_0x1fde36,'isImageSelected',_0x43e1a0=>_(_0x43e817,_0x52cbb4['type'],_0x43e1a0?'Replace':'Insert')['text']),_0x3f6fed['tooltip']=!0x0,_0x3f6fed;}['_createDropdownButtons'](_0x2f7137){const {locale:_0x530c53}=this['editor'],_0x8256de=this['editor']['plugins']['get']('ImageInsertUI');return _0x2f7137['map'](_0x31c7ee=>{const _0x397768=this['_createButton'](_0x5b1edf,_0x31c7ee['type']);return _0x397768['withText']=!0x0,_0x397768['icon']=_0x31c7ee['icon'],_0x397768['bind']('label')['to'](_0x8256de,'isImageSelected',_0x47c003=>_(_0x530c53,_0x31c7ee['type'],_0x47c003?'Replace':'Insert')['text']),_0x397768;});}['_createMenuBarButtons'](_0x2c6170){return _0x2c6170['map'](_0x272566=>{const _0x29254d=this['_createButton'](_0x3aea68,_0x272566['type']);return _0x29254d['icon']=_0x272566['icon'],_0x29254d['label']=_0x272566['shortText'],_0x29254d;});}}class F extends _0x10a5ac{['focusTracker'];['focusCycler'];constructor(_0x4f0c37){super(_0x4f0c37),this['focusTracker']=new _0x55b474(),this['focusCycler']=new _0x9f7566({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x416e05,_0x546ebc){super(_0x416e05),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-'+_0x546ebc}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4f0730,_0x373742){const _0x249306=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x57196f=>_0x57196f<=_0x373742)['map'](_0x131da1=>_0x4f0730['replace'](/\/$/,'')+'/-/resize/'+_0x131da1+'x/\x20'+_0x131da1+'w');return{'imageFallbackUrl':_0x4f0730,'imageSources':[{'srcset':_0x249306['join'](',\x20'),'sizes':'(max-width:\x20'+_0x373742+'px)\x20100vw,\x20'+_0x373742+'px','type':'image/webp'}]};}function S(_0x460266,_0x2da426,_0x445b20){const _0xf28cea=_0x460266['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xf28cea?parseInt(_0xf28cea[0x1],0xa):_0x2da426,'height':_0xf28cea?parseInt(_0xf28cea[0x2],0xa):_0x445b20};}function p(_0x3fe8b9,_0x22e864){const _0x1a6a3a=new(_0x58f48a())(),_0x12420c=_0x3fe8b9['plugins']['get']('ImageUtils'),_0x1ddb1b=_0x3fe8b9['editing']['mapper']['toViewElement'](_0x22e864),_0x4f0995=_0x12420c['findViewImgElement'](_0x1ddb1b),_0x40d3ca=_0x3fe8b9['editing']['view']['domConverter']['viewToDom'](_0x4f0995),_0x1e3fa7=_0x22e864['getAttribute']('width'),_0x48583e=_0x22e864['getAttribute']('height'),_0x578201='image-processing';_0x3fe8b9['editing']['view']['change'](_0x43bd0d=>{_0x43bd0d['addClass'](_0x578201,_0x1ddb1b),_0x43bd0d['setStyle']('aspect-ratio',_0x1e3fa7+'/'+_0x48583e,_0x4f0995);}),_0x1a6a3a['listenTo'](_0x40d3ca,'load',()=>{_0x1a6a3a['stopListening'](_0x40d3ca,'load'),_0x3fe8b9['editing']['view']['change'](_0x3cb8a0=>{_0x3cb8a0['removeClass'](_0x578201,_0x1ddb1b),_0x3cb8a0['removeStyle']('aspect-ratio',_0x4f0995);});});}function G(_0xaad5a){if(Array['isArray'](_0xaad5a)){const _0x483921=_0xaad5a['map'](G);return _0x3b21cb=>_0x483921['some'](_0x5adee4=>_0x5adee4(_0x3b21cb));}if('origin'==_0xaad5a){const _0x44d9dd=_0x16b32c['window']['location']['origin'];return _0x1105f5=>new URL(_0x1105f5,_0x16b32c['document']['baseURI'])['origin']==_0x44d9dd;}return'function'==typeof _0xaad5a?_0xaad5a:_0xaad5a instanceof RegExp?_0x4029c1=>!(!_0x4029c1['match'](_0xaad5a)&&!_0x4029c1['replace'](/^https?:\/\//,'')['match'](_0xaad5a)):()=>!0x1;}function A(_0x1b0817,_0x5ac648){return _0x5929ad(_0x1b0817['target'])['includes'](_0x5ac648);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x18a7ea(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xf8ea58,_0x3e2584,_0x2fb453){super(),this['_editor']=_0xf8ea58,this['_editing']=_0x3e2584,this['_dialog']=_0xf8ea58['plugins']['get'](_0x50005f),this['_api']=_0x3e2584['ctxElement']['getAPI'](),this['_type']=_0x2fb453,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:_0x31fd94,model:_0x31ef07}=this['_editor'],_0x1c7fca=_0x31ef07['document']['selection']['getSelectedElement'](),_0x3603ab=_0x1c7fca&&(_0x1c7fca['is']('element','imageBlock')||_0x1c7fca['is']('element','imageInline'));this['_formView']=new x(_0x31fd94,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3b8b9e,'title':_(_0x31fd94,this['_type'],_0x3603ab?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1daabe['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4cf8e0=>!A(_0x4cf8e0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1fbd10}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x24586c=>{const _0xd0b184=_0x1fbd10['length'];for(const _0x5d4ea4 of _0x1fbd10){const _0x48d277=_0x5d4ea4===_0x1fbd10[_0xd0b184-0x1],{cdnUrl:_0x1077e6,fileInfo:_0x470c5a}=_0x5d4ea4;if(!_0x1077e6||!_0x470c5a)continue;const {width:_0x39d15d,height:_0x107ef6}=_0x470c5a['imageInfo'],_0x584046=S(_0x1077e6,_0x39d15d,_0x107ef6),_0x1fa841=C(_0x1077e6,_0x584046['width']),_0x437b0d={'id':_0x470c5a['uuid'],'type':'image','attributes':{'imageDimension':_0x584046,..._0x1fa841}};this['_insertAsset'](_0x437b0d,_0x48d277,_0x24586c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x27f034=>{'idle'===_0x27f034['detail']['status']&&!_0x27f034['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xf3bf5f,_0x6219b1,_0x276bb9){const _0x4ccc45=this['_editor']['model']['document']['selection'],_0x5cb5b5=_0x4ccc45['getSelectedElement'](),_0x3111ed=!(!_0x5cb5b5||!_0x5cb5b5['is']('element','imageInline'));_0x276bb9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xf3bf5f,_0x3111ed),_0x6219b1||_0x276bb9['setSelection'](_0x4ccc45['getLastPosition']());}['_insertImage'](_0x4de2bb,_0x3378b4){const _0x2131de=this['_editor'],{imageDimension:_0x318227,imageFallbackUrl:_0xf900ab,imageSources:_0x387a6e}=_0x4de2bb['attributes'];_0x2131de['execute']('insertImage',{'imageType':_0x3378b4?'imageInline':null,'source':{'uploadcareImageId':_0x4de2bb['id'],'src':_0xf900ab,'sources':_0x387a6e,..._0x318227}});}}class w extends _0x11bbe0{['_editing'];['_controller']=null;static get['requires'](){return[_0x50005f,o];}constructor(_0x37b900){super(_0x37b900),this['_editing']=_0x37b900['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x27cfda){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x27cfda);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1f6848,..._0x334caf}){return _0x3ff628(_0x1f6848,_0x334caf);}static['getInfo'](_0x3de01b,_0x187d91){return _0xa391de(_0x3de01b,_0x187d91);}}class f extends _0xf622e5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x283ace,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1c6ab5=this['editor'];if(!!!_0x1c6ab5['config']['get']('uploadcare'))return;_0x1c6ab5['plugins']['get'](_0x283ace)['createUploadAdapter']=_0x16c5b2=>new k(_0x16c5b2,_0x1c6ab5),_0x1c6ab5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2ceeaf,{imageElement:_0x6395cd,data:_0x5b2940})=>{_0x1c6ab5['model']['change'](_0x349822=>{_0x349822['setAttribute']('uploadcareImageId',_0x5b2940['uploadcareImageId'],_0x6395cd);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x358abd,_0x3763ce){this['loader']=_0x358abd,this['editor']=_0x3763ce,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x30e5bc=await this['loader']['file'];return j['upload']({'file':_0x30e5bc,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x51ff18=>{_0x51ff18&&_0x51ff18['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x51ff18['value']);}})['then'](async _0x560187=>{const {imageFallbackUrl:_0xb05786,imageSources:_0x25de7a}=C(_0x560187['cdnUrl'],_0x560187['imageInfo']['width']);return{'uploadcareImageId':_0x560187['uuid'],'default':_0xb05786,'sources':_0x25de7a};})['catch'](()=>{const _0x23a4c9=t('Cannot\x20upload\x20file:')+('\x20'+_0x30e5bc['name']+'.');return Promise['reject'](_0x23a4c9);});}['abort'](){this['controller']['abort']();}}class o extends _0xf622e5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x50005f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2e6d7e){super(_0x2e6d7e),this['ucContextId']=_0x47b2c4();}['init'](){const _0x6c0295=this['editor'];_0x6c0295['commands']['add']('uploadcare',new w(_0x6c0295));}['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 _0xdf0edf=_0x16b32c['document']['querySelector']('input[uploadcare-file-input]');_0xdf0edf&&_0xdf0edf['remove']();}),async function(_0x22e29b){const _0x235fbf=_0x17e092([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5aec08=0x535f8c3a,_0x2b2fb1=0x53580e82^_0x5aec08,_0x1e87dd=window[_0x17e092([0x44,0x61,0x74,0x65])][_0x17e092([0x6e,0x6f,0x77])](),_0x2a7e44=_0x22e29b[_0x17e092([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f3312=new window[(_0x17e092([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49e8fe=>{_0x2a7e44[_0x17e092([0x6f,0x6e,0x63,0x65])](_0x17e092([0x72,0x65,0x61,0x64,0x79]),_0x49e8fe);}),_0x38bf6f={[_0x17e092([0x6b,0x74,0x79])]:_0x17e092([0x45,0x43]),[_0x17e092([0x75,0x73,0x65])]:_0x17e092([0x73,0x69,0x67]),[_0x17e092([0x63,0x72,0x76])]:_0x17e092([0x50,0x2d,0x32,0x35,0x36]),[_0x17e092([0x78])]:_0x17e092([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]),[_0x17e092([0x79])]:_0x17e092([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]),[_0x17e092([0x61,0x6c,0x67])]:_0x17e092([0x45,0x53,0x32,0x35,0x36])},_0x140d73=_0x2a7e44[_0x17e092([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17e092([0x67,0x65,0x74])](_0x17e092([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x208f66(){let _0x1b816b,_0x19fa5a=null,_0x3c5e3a=null;try{if(_0x140d73==_0x17e092([0x47,0x50,0x4c]))return _0x17e092([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b816b=_0x411194(),!_0x1b816b)return _0x17e092([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b816b[_0x17e092([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c5e3a=_0x13134c(_0x1b816b[_0x17e092([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b816b[_0x17e092([0x6a,0x74,0x69])])),await _0x508026()?_0x4a8b05()?_0xae1fb4()?_0x17e092([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ea3e3()?(_0x1b816b[_0x17e092([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17e092([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19fa5a=_0x725fea(_0x17e092([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8d34c8()):_0x17e092([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17e092([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17e092([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17e092([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xae1fb4(){const _0x47c70f=[_0x17e092([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17e092([0x74,0x72,0x69,0x61,0x6c])][_0x17e092([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b816b[_0x17e092([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e87dd/0x3e8:0xe10*_0x2b2fb1;return _0x1b816b[_0x17e092([0x65,0x78,0x70])]<_0x47c70f;}function _0x4a8b05(){const _0x2ef2f8=_0x1b816b[_0x17e092([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2ef2f8&&(!!_0x2ef2f8[_0x17e092([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17e092([0x2a]))||!!_0x2ef2f8[_0x17e092([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17e092([0x55,0x50,0x4c,0x43])));}function _0x1ea3e3(){const _0xa47523=_0x1b816b[_0x17e092([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa47523||0x0==_0xa47523[_0x17e092([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x26e7d5}=new URL(window[_0x17e092([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xa47523[_0x17e092([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26e7d5))return!0x0;const _0x2288f9=_0x26e7d5[_0x17e092([0x73,0x70,0x6c,0x69,0x74])](_0x17e092([0x2e]));return _0xa47523[_0x17e092([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d050c=>_0x1d050c[_0x17e092([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17e092([0x2a])))[_0x17e092([0x6d,0x61,0x70])](_0x1317c8=>_0x1317c8[_0x17e092([0x73,0x70,0x6c,0x69,0x74])](_0x17e092([0x2e])))[_0x17e092([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52bd80=>_0x52bd80[_0x17e092([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2288f9[_0x17e092([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17e092([0x6d,0x61,0x70])](_0x2ab5a9=>Array(_0x2288f9[_0x17e092([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ab5a9[_0x17e092([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17e092([0x66,0x69,0x6c,0x6c])](_0x2ab5a9[0x0]===_0x17e092([0x2a])?_0x17e092([0x2a]):'')[_0x17e092([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ab5a9))[_0x17e092([0x73,0x6f,0x6d,0x65])](_0x46645d=>_0x2288f9[_0x17e092([0x65,0x76,0x65,0x72,0x79])]((_0x479099,_0x4041d5)=>_0x46645d[_0x4041d5]===_0x479099||_0x46645d[_0x4041d5]===_0x17e092([0x2a])));}function _0x8d34c8(){return _0x19fa5a&&_0x3c5e3a?new window[(_0x17e092([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13d777,_0x14ccd5)=>{_0x19fa5a[_0x17e092([0x74,0x68,0x65,0x6e])](_0x13d777,_0x14ccd5),_0x3c5e3a[_0x17e092([0x74,0x68,0x65,0x6e])](_0x540924=>{_0x540924!=_0x17e092([0x56,0x61,0x6c,0x69,0x64])&&_0x13d777(_0x540924);},_0x14ccd5);}):_0x19fa5a||_0x3c5e3a||_0x17e092([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13134c(_0x1bbc11,_0x7ce05a){return new window[(_0x17e092([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x411e41=>{if(_0x4a1592())return _0x411e41(_0x17e092([0x56,0x61,0x6c,0x69,0x64]));_0x563311(),_0x2a7e44[_0x17e092([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17e092([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x59b258=!0x1;const _0x278dbe=_0x47b2c4();function _0x61019f(_0x166ec3){return!!_0x166ec3&&(typeof _0x166ec3===_0x17e092([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x166ec3===_0x17e092([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x166ec3[_0x17e092([0x74,0x68,0x65,0x6e])]===_0x17e092([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x166ec3[_0x17e092([0x63,0x61,0x74,0x63,0x68])]===_0x17e092([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2000a4(_0x252dfd){_0x358d33(_0x252dfd)[_0x17e092([0x74,0x68,0x65,0x6e])](_0x1471d7=>{if(!_0x1471d7||_0x1471d7[_0x17e092([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17e092([0x6f,0x6b]))return _0x17e092([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x337422(_0x2533e8(_0x278dbe+_0x7ce05a))!=_0x1471d7[_0x17e092([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17e092([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17e092([0x56,0x61,0x6c,0x69,0x64]);})[_0x17e092([0x74,0x68,0x65,0x6e])](_0x12f095=>(_0x885d80(),_0x12f095),()=>{const _0x505f7c=_0x17f349();return null==_0x505f7c?(_0x885d80(),_0x17e092([0x56,0x61,0x6c,0x69,0x64])):_0x17e092(_0x1e87dd-_0x505f7c>(0x7753083a^_0x5aec08)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17e092([0x74,0x68,0x65,0x6e])](_0x411e41)[_0x17e092([0x63,0x61,0x74,0x63,0x68])](()=>{_0x411e41(_0x17e092([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xecc156=0x536962ba^_0x5aec08;function _0x885d80(){const _0x56a558=_0x17e092([0x6c,0x6c,0x63,0x74,0x2d])+_0x337422(_0x2533e8(_0x1bbc11)),_0x82d998=_0x1f55b0(_0x337422(window[_0x17e092([0x4d,0x61,0x74,0x68])][_0x17e092([0x63,0x65,0x69,0x6c])](_0x1e87dd/_0xecc156)));window[_0x17e092([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17e092([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56a558,_0x82d998);}function _0x17f349(){const _0x8b7855=_0x17e092([0x6c,0x6c,0x63,0x74,0x2d])+_0x337422(_0x2533e8(_0x1bbc11)),_0x16c384=window[_0x17e092([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17e092([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8b7855);return _0x16c384?window[_0x17e092([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f55b0(_0x16c384),0x10)*_0xecc156:null;}function _0x358d33(_0x483012){return new window[(_0x17e092([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50425c,_0xb5022e)=>{_0x483012[_0x17e092([0x74,0x68,0x65,0x6e])](_0x50425c,_0xb5022e),window[_0x17e092([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb5022e,0x535e58fa^_0x5aec08);});}}_0x2a7e44[_0x17e092([0x6f,0x6e])](_0x17e092([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12b51b,_0x32d971)=>{if(_0x32d971[0x0]!=_0x1bbc11)return _0x411e41(_0x17e092([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x32d971[0x1]={..._0x32d971[0x1],[_0x17e092([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x278dbe};},{[_0x17e092([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17e092([0x68,0x69,0x67,0x68])}),_0x2a7e44[_0x17e092([0x6f,0x6e])](_0x17e092([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3283b9=>{_0x61019f(_0x3283b9[_0x17e092([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x59b258=!0x0,_0x2000a4(_0x3283b9[_0x17e092([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17e092([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17e092([0x6c,0x6f,0x77])}),_0x2f3312[_0x17e092([0x74,0x68,0x65,0x6e])](()=>{_0x59b258||_0x411e41(_0x17e092([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a1592(){return _0x2a7e44[_0x17e092([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17e092([0x76,0x69,0x65,0x77])][_0x17e092([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17e092([0x61,0x75,0x74,0x6f]);}function _0x563311(){_0x2a7e44[_0x17e092([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17e092([0x76,0x69,0x65,0x77])][_0x17e092([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17e092([0x61,0x75,0x74,0x6f]);}}function _0x725fea(_0x1a7818){const _0x1178a6=[new window[(_0x17e092([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x591128=>setTimeout(_0x591128,0x5356b2f6^_0x5aec08)),_0x2f3312[_0x17e092([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17e092([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ac534=>{let _0x4a41e5=0x0;_0x2a7e44[_0x17e092([0x6d,0x6f,0x64,0x65,0x6c])][_0x17e092([0x6f,0x6e])](_0x17e092([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x9c6b6f,_0x5718fd)=>{_0x5718fd[0x0][_0x17e092([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a41e5++,_0x4a41e5==(0x535f89d2^_0x5aec08)&&(_0x5ac534(),_0x9c6b6f[_0x17e092([0x6f,0x66,0x66])]());});}))];return window[_0x17e092([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17e092([0x72,0x61,0x63,0x65])](_0x1178a6)[_0x17e092([0x74,0x68,0x65,0x6e])](()=>_0x1a7818);}async function _0x11a4cd(){await _0x2f3312,_0x2a7e44[_0x17e092([0x6d,0x6f,0x64,0x65,0x6c])][_0x17e092([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5dfc7e,_0x2a7e44[_0x17e092([0x6d,0x6f,0x64,0x65,0x6c])][_0x17e092([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5dfc7e,_0x2a7e44[_0x17e092([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17e092([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e6830(_0xa9ff90){const _0x543821=_0x6080d7();_0x2a7e44[_0x543821]=_0x17e092([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa9ff90,_0xa9ff90!=_0x17e092([0x56,0x61,0x6c,0x69,0x64])&&_0x11a4cd();}function _0x6080d7(){const _0x2f3edb=window[_0x17e092([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17e092([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17e092([0x6e,0x6f,0x77])]())[_0x17e092([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17e092([0x2e]),'');let _0x50206b=_0x17e092([0x68]);for(let _0x48f069=0x0;_0x48f069<_0x2f3edb[_0x17e092([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x48f069+=0x2){let _0x25db0f=window[_0x17e092([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f3edb[_0x17e092([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48f069,_0x48f069+0x2));_0x25db0f>=_0x235fbf[_0x17e092([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x25db0f-=_0x235fbf[_0x17e092([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50206b+=_0x235fbf[_0x25db0f];}return _0x50206b;}function _0x411194(){const _0x14e8c6=_0x140d73[_0x17e092([0x73,0x70,0x6c,0x69,0x74])](_0x17e092([0x2e]));if(0x3!=_0x14e8c6[_0x17e092([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x514f8e(_0x14e8c6[0x1]);function _0x514f8e(_0x24259c){const _0x505f63=_0x41ff23(_0x24259c);return _0x505f63&&_0x59cb69()?_0x505f63:null;function _0x59cb69(){const _0x11baf=_0x505f63[_0x17e092([0x6a,0x74,0x69])],_0x1f8bfc=window[_0x17e092([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11baf[_0x17e092([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11baf[_0x17e092([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c52d4={..._0x505f63,[_0x17e092([0x6a,0x74,0x69])]:_0x11baf[_0x17e092([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x11baf[_0x17e092([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c52d4[_0x17e092([0x76,0x63])],_0x2533e8(_0x2c52d4)==_0x1f8bfc;}}}async function _0x508026(){let _0x146f00=!0x0;try{const _0xf1e036=_0x140d73[_0x17e092([0x73,0x70,0x6c,0x69,0x74])](_0x17e092([0x2e])),[_0x3e61a6,_0xdab5a5,_0x23813d]=_0xf1e036;return _0x13d5cd(_0x3e61a6),await _0xee3945(_0x3e61a6,_0xdab5a5,_0x23813d),_0x146f00;}catch{return!0x1;}function _0x13d5cd(_0x5c690b){const _0x27edcd=_0x41ff23(_0x5c690b);_0x27edcd&&_0x27edcd[_0x17e092([0x61,0x6c,0x67])]==_0x17e092([0x45,0x53,0x32,0x35,0x36])||(_0x146f00=!0x1);}async function _0xee3945(_0x4aa17d,_0x4c3e23,_0x105706){const _0x1ce162=window[_0x17e092([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17e092([0x66,0x72,0x6f,0x6d])](_0x41b3aa(_0x105706),_0x4e0beb=>_0x4e0beb[_0x17e092([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x372768=new window[(_0x17e092([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17e092([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4aa17d+_0x17e092([0x2e])+_0x4c3e23),_0x112ed1=window[_0x17e092([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17e092([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x112ed1)return;const _0x4fec48=await _0x112ed1[_0x17e092([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17e092([0x6a,0x77,0x6b]),_0x38bf6f,{[_0x17e092([0x6e,0x61,0x6d,0x65])]:_0x17e092([0x45,0x43,0x44,0x53,0x41]),[_0x17e092([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17e092([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17e092([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x112ed1[_0x17e092([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17e092([0x6e,0x61,0x6d,0x65])]:_0x17e092([0x45,0x43,0x44,0x53,0x41]),[_0x17e092([0x68,0x61,0x73,0x68])]:{[_0x17e092([0x6e,0x61,0x6d,0x65])]:_0x17e092([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fec48,_0x1ce162,_0x372768)||(_0x146f00=!0x1);}}function _0x41ff23(_0x1faff8){return _0x1faff8[_0x17e092([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17e092([0x65,0x79]))?JSON[_0x17e092([0x70,0x61,0x72,0x73,0x65])](_0x41b3aa(_0x1faff8)):null;}function _0x41b3aa(_0x1d6f19){return window[_0x17e092([0x61,0x74,0x6f,0x62])](_0x1d6f19[_0x17e092([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17e092([0x2b]))[_0x17e092([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17e092([0x2f])));}function _0x2533e8(_0x46d549){let _0xccee7d=0x1505;function _0x1e6214(_0xacb546){for(let _0x27fd4e=0x0;_0x27fd4e<_0xacb546[_0x17e092([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27fd4e++){const _0x558f26=_0xacb546[_0x17e092([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x27fd4e);_0xccee7d=(_0xccee7d<<0x5)+_0xccee7d+_0x558f26,_0xccee7d&=_0xccee7d;}}function _0x5616fc(_0x1fde7b){Array[_0x17e092([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1fde7b)?_0x1fde7b[_0x17e092([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5616fc):_0x1fde7b&&typeof _0x1fde7b==_0x17e092([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17e092([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1fde7b)[_0x17e092([0x73,0x6f,0x72,0x74])]()[_0x17e092([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c09e1,_0x58d903])=>{_0x1e6214(_0x3c09e1),_0x5616fc(_0x58d903);}):_0x1e6214(window[_0x17e092([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1fde7b));}return _0x5616fc(_0x46d549),_0xccee7d>>>0x0;}function _0x337422(_0x212281){return _0x212281[_0x17e092([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17e092([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17e092([0x30]));}function _0x1f55b0(_0x72c65b){return _0x72c65b[_0x17e092([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17e092([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17e092([0x6a,0x6f,0x69,0x6e])]('');}function _0x5dfc7e(){}function _0x17e092(_0x200165){return _0x200165['map'](_0x35115a=>String['fromCharCode'](_0x35115a))['join']('');}_0x3e6830(await _0x208f66());}(this);}['_initSchema'](){const _0x5332c1=this['editor']['model']['schema'];_0x5332c1['isRegistered']('imageBlock')&&_0x5332c1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5332c1['isRegistered']('imageInline')&&_0x5332c1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x41d0de=this['editor'];_0x41d0de['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x41d0de['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2b59ea=>_0x2b59ea['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2908d7=_0x41d0de['commands']['get']('replaceImageSource');_0x2908d7&&this['listenTo'](_0x2908d7,'cleanupImage',(_0x4cabc9,[_0x95c6ec,_0x5af12e])=>{_0x95c6ec['removeAttribute']('uploadcareImageId',_0x5af12e);});}['_initConfig'](){const _0x57f763=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2faacc=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2b49b8(_0x16b32c['document'],'uc-config',{..._0x57f763,'pubkey':_0x2faacc,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x5815c8=>{if('closeMax'==_0x5815c8)return'#uc-icon-arrow-down';},_0x16b32c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2b49b8(_0x16b32c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x16b32c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x76b4df=this['editor']['commands']['get']('insertImage');_0x76b4df&&this['listenTo'](_0x76b4df,'execute',()=>{const _0x75e995=this['editor']['model']['document']['selection']['getSelectedElement']();_0x75e995&&_0x75e995['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x75e995);});});const _0x5919b9=this['editor']['commands']['get']('uploadcareImageReplace');_0x5919b9&&this['listenTo'](_0x5919b9,'execute',()=>{const _0x17862c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x17862c&&_0x17862c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x17862c);});});}}class tt extends _0xf622e5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36c779){super(_0x36c779),_0x36c779['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x8542d4['defineComponents'](_0x8542d4),this['_defineLocale']();}['_defineLocale'](){const _0x295a59=this['editor']['config']['get']('uploadcare.locale'),_0x32bb71=this['editor']['locale']['contentLanguage'];_0x295a59&&_0x8542d4['defineLocale'](_0x32bb71,_0x295a59);}}class ii extends _0x10a5ac{constructor(_0x25f876){super(_0x25f876);const t=_0x25f876['t'],_0x8d7a14=this['bindTemplate'],_0x2cb0e9=new _0x82a9cf();_0x2cb0e9['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':[_0x2cb0e9,{'text':_0x8d7a14['to']('imageUploadProgress',_0x18c65b=>t('Loading\x20image...')+'\x20('+(_0x18c65b||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x10a5ac{constructor(_0x559417){super(_0x559417);const t=_0x559417['t'];this['set']('errorType',null);const _0x27b23e=new _0x5b1edf(_0x559417);_0x27b23e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x27b23e['withText']=!0x0,_0x27b23e['class']='ck-button-action',_0x27b23e['on']('execute',()=>{this['fire']('retry');}),_0x27b23e['bind']('isVisible')['to'](this,'errorType',_0x4e3928=>'NotFound'!==_0x4e3928);const _0x34727b=new _0x1399f7();_0x34727b['content']=_0x1c73fb,_0x34727b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x574bd9=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':[_0x34727b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x574bd9['to']('errorType',_0x9e89a8=>t('NotFound'!==_0x9e89a8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x27b23e]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x10a5ac{constructor(_0x5aca2e,_0x4f690c){super(_0x5aca2e);const _0x29972a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4f690c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x29972a['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1d7e14,_0x35d7c4,_0x4e57f6){super(_0x1d7e14),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1d7e14),this['_errorView']=new ti(_0x1d7e14),this['_editingView']=new ei(_0x1d7e14,_0x4e57f6),this['_focusableView']=new _0x10a5ac(_0x1d7e14),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x35d7c4),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'],_0x5ddf50=>{this['_addUploadcareImageEditorListeners'](_0x5ddf50);});}),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'](_0x1ce536,_0x359286){const _0x8e8572='uc-cloud-image-editor',_0x54a90f=_0x1ce536['querySelector'](_0x8e8572);if(_0x54a90f)return _0x359286(_0x54a90f);const _0x2cfa5c=new MutationObserver(_0x487334=>{const _0x245a6c=_0x487334['filter'](_0x474115=>_0x474115['target']===_0x1ce536&&_0x474115['addedNodes']['length']>0x0&&_0x474115['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x8e8572);_0x245a6c['length']&&(_0x2cfa5c['disconnect'](),_0x359286(_0x245a6c[0x0]['addedNodes'][0x0]));});_0x2cfa5c['observe'](_0x1ce536,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1c45b3){_0x1c45b3['addEventListener']('apply',_0x250c63=>{this['fire']('apply',{'imageSrc':_0x250c63['detail']['cdnUrl']});}),_0x1c45b3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x18a7ea(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3717f6,_0x1caf2f,_0x121a4d){super(),this['_editor']=_0x3717f6,this['_dialog']=_0x1caf2f,this['_imageElement']=_0x121a4d,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 _0x412cbd=this['_imageElement'],_0x9cea0=_0x412cbd['getAttribute']('uploadcareImageId'),_0x485cb1=_0x412cbd['getAttribute']('src');if(_0x9cea0)await this['_loadImageInfo'](_0x9cea0,_0x485cb1);else{if(this['_imageCache']['has'](_0x485cb1)){const _0x262ad4=this['_imageCache']['get'](_0x485cb1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x262ad4['url'],this['imageDimension']=_0x262ad4['dimension'],this['imageId']=_0x262ad4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3b1d43}=this['_editor'],t=_0x3b1d43['t'],_0x2a4abf=new X(_0x3b1d43,this['imageStatus'],this['_attributes']);_0x2a4abf['bind']('status')['to'](this,'imageStatus'),_0x2a4abf['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2a4abf['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2a4abf['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2a4abf,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1a862b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2a4abf,'position':_0x1daabe['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2a4abf['focus']();},'onHide':()=>{_0x2a4abf['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4ce20e=>!A(_0x4ce20e,_0x2a4abf['element'])}});}['_loadImageInfo'](_0x2cbcd6,_0x388536){return j['getInfo'](_0x2cbcd6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x13aef8=>{const {width:_0x48ef82,height:_0x244386}=_0x13aef8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x388536,this['imageDimension']={'width':_0x48ef82,'height':_0x244386},this['imageId']=_0x2cbcd6;})['catch'](_0x561c6d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x561c6d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x26c2ec,_0x465472){return this['_getImageAsFile'](_0x26c2ec)['then'](_0xdc046d=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x465472['signal'],'file':_0xdc046d,'onProgress':_0x8b8782=>{_0x8b8782&&_0x8b8782['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x8b8782['value']));}}))['then'](_0x25c63a=>{const {width:_0x5461bd,height:_0x1aa0b5}=_0x25c63a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25c63a['cdnUrl'],this['imageDimension']={'width':_0x5461bd,'height':_0x1aa0b5},this['imageId']=_0x25c63a['uuid'],this['imageUploadProgress']=null;const _0x18a7c0=_0x26c2ec['getAttribute']('src');this['_imageCache']['set'](_0x18a7c0,{'id':_0x25c63a['uuid'],'url':_0x25c63a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xd0d777=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd0d777['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x264043,_0x2b9f67){_0x264043['on']('apply',(_0x32bc1c,_0x4ed003)=>{this['_replaceImage'](_0x2b9f67,_0x4ed003['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x264043['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x264043['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2a4231,_0x4c3ba7,_0x57119a){const _0x397cca=this['_editor'],{width:_0x4098a3,height:_0x5e36a9}=S(_0x4c3ba7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x396a85,imageSources:_0x22f8e8}=C(_0x4c3ba7,_0x4098a3);_0x397cca['model']['change'](_0xb3f1c3=>{if('$graveyard'===_0x2a4231['root']['rootName']){_0x397cca['execute']('insertImage',{'imageType':_0x2a4231['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2a4231['getAttributes']()),'uploadcareImageId':_0x57119a,'src':_0x396a85,'sources':_0x22f8e8,'width':_0x4098a3,'height':_0x5e36a9}});const _0x7f5d77=_0x2a4231['getChildren']();_0x2a4231=_0x397cca['model']['document']['selection']['getSelectedElement']();for(const _0x1d4564 of _0x7f5d77)_0xb3f1c3['append'](_0xb3f1c3['cloneElement'](_0x1d4564),_0x2a4231);}else _0xb3f1c3['setSelection'](_0x2a4231,'on'),_0x397cca['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2a4231['getAttributes']()),'uploadcareImageId':_0x57119a,'src':_0x396a85,'sources':_0x22f8e8,'width':_0x4098a3,'height':_0x5e36a9},_0x2a4231);_0xb3f1c3['setSelection'](_0x2a4231,'on');});}async['_getImageAsFile'](_0x5f3e31){const _0x4b863c=_0x16b32c['window'],_0x123c37=_0x16b32c['document']['location']['href'],_0x316466=new _0x4b863c['URL'](_0x5f3e31['getAttribute']('src'),_0x123c37);if('data:'===_0x316466['protocol']){const _0x3043ff=_0x316466['href']['split'](','),_0x12daeb=_0x3043ff[0x0]['match'](/:(.*?);/)[0x1],_0x44ffd1=_0x12daeb['split']('/')[0x1],_0x51ce46=_0x4b863c['atob'](_0x3043ff[_0x3043ff['length']-0x1]);let _0x1702f2=_0x51ce46['length'];const _0x4cfe27=new _0x4b863c['Uint8Array'](_0x1702f2);for(;_0x1702f2--;)_0x4cfe27[_0x1702f2]=_0x51ce46['charCodeAt'](_0x1702f2);return new _0x4b863c['File']([_0x4cfe27],'image.'+_0x44ffd1,{'type':_0x12daeb});}const _0x29a0eb=_0x316466['href']['split']('/'),_0x36ecea=_0x29a0eb[_0x29a0eb['length']-0x1],_0x37bef5=_0x36ecea['split']('.')[0x1];return _0x4b863c['fetch'](_0x316466['href'])['then'](_0x43f698=>_0x43f698['clone']()['blob']())['then'](_0x56be03=>new _0x4b863c['File']([_0x56be03],_0x36ecea,{'type':'image/'+_0x37bef5}));}}class O extends _0x11bbe0{['imageEditController'];static get['requires'](){return[_0x50005f];}['_isEditable'];constructor(_0x2d2a94){super(_0x2d2a94),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x10c651){const _0x840af1=G(_0x10c651);return _0x999827=>!(!_0x999827||!_0x999827['is']('element','imageBlock')&&!_0x999827['is']('element','imageInline'))&&(!!_0x999827['hasAttribute']('uploadcareImageId')||!!_0x999827['hasAttribute']('src')&&_0x840af1(_0x999827['getAttribute']('src')));}(_0x2d2a94['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5b76e7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5b76e7);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x36d56f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x36d56f&&(_0x36d56f['is']('element','imageBlock')||_0x36d56f['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x50005f),_0x36d56f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x11bbe0{['refresh'](){const _0x497491=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x497491&&(_0x497491['is']('element','imageBlock')||_0x497491['is']('element','imageInline')));}['execute'](_0x5d55da){const _0x4beab6=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1f22f3=>{_0x1f22f3['setAttributes'](_0x5d55da,_0x4beab6),_0x1f22f3['removeAttribute']('srcset',_0x4beab6),_0x1f22f3['removeAttribute']('sizes',_0x4beab6);});}}class m extends _0xf622e5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3eba5a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x47c29}=this;_0x47c29['commands']['add']('uploadcareImageEdit',new O(_0x47c29)),_0x47c29['commands']['add']('uploadcareImageReplace',new R(_0x47c29));}}class g extends _0xf622e5{['_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 _0x22930b=this['editor'];_0x22930b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2cdc5c=>{const _0x2711a0=_0x22930b['commands']['get']('uploadcareImageEdit'),_0x4a232c=new _0x5b1edf(_0x2cdc5c),t=_0x2cdc5c['t'];return _0x4a232c['set']({'icon':_0x1a862b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4a232c['bind']('isEnabled')['to'](_0x2711a0),_0x4a232c['bind']('isOn')['to'](_0x2711a0,'isActive'),this['listenTo'](_0x4a232c,'execute',()=>{_0x22930b['execute']('uploadcareImageEdit'),_0x22930b['editing']['view']['focus']();}),_0x4a232c;}),this['_initConfig']();}['_initConfig'](){const _0x5229b2=_0x2b49b8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5229b2),this['listenTo'](this['editor'],'destroy',()=>{_0x5229b2['remove']();});}}class et extends _0xf622e5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0xe48769=>0x1!=_0xe48769}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a39ea=>{const {af:{dictionary:_0x44f36a,getPluralForm:_0x40d30a}}={'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':_0x54913a=>0x1!=_0x54913a}};_0x4a39ea['af']||={'dictionary':{},'getPluralForm':null},_0x4a39ea['af']['dictionary']=Object['assign'](_0x4a39ea['af']['dictionary'],_0x44f36a),_0x4a39ea['af']['getPluralForm']=_0x40d30a;})(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':_0x1d8a72=>0x0==_0x1d8a72?0x0:0x1==_0x1d8a72?0x1:0x2==_0x1d8a72?0x2:_0x1d8a72%0x64>=0x3&&_0x1d8a72%0x64<=0xa?0x3:_0x1d8a72%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1bd271=>{const {ar:{dictionary:_0x196fcb,getPluralForm:_0x5ea763}}={'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':_0x57c2c5=>0x0==_0x57c2c5?0x0:0x1==_0x57c2c5?0x1:0x2==_0x57c2c5?0x2:_0x57c2c5%0x64>=0x3&&_0x57c2c5%0x64<=0xa?0x3:_0x57c2c5%0x64>=0xb?0x4:0x5}};_0x1bd271['ar']||={'dictionary':{},'getPluralForm':null},_0x1bd271['ar']['dictionary']=Object['assign'](_0x1bd271['ar']['dictionary'],_0x196fcb),_0x1bd271['ar']['getPluralForm']=_0x5ea763;})(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':_0x5e8978=>0x1!=_0x5e8978}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x290d54=>{const {ast:{dictionary:_0x129a73,getPluralForm:_0x5e4c57}}={'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':_0x52a696=>0x1!=_0x52a696}};_0x290d54['ast']||={'dictionary':{},'getPluralForm':null},_0x290d54['ast']['dictionary']=Object['assign'](_0x290d54['ast']['dictionary'],_0x129a73),_0x290d54['ast']['getPluralForm']=_0x5e4c57;})(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':_0x5524b9=>0x1!=_0x5524b9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x24f883=>{const {az:{dictionary:_0x7078a4,getPluralForm:_0x151c44}}={'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':_0xef13d9=>0x1!=_0xef13d9}};_0x24f883['az']||={'dictionary':{},'getPluralForm':null},_0x24f883['az']['dictionary']=Object['assign'](_0x24f883['az']['dictionary'],_0x7078a4),_0x24f883['az']['getPluralForm']=_0x151c44;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3142d2=>_0x3142d2%0xa==0x1&&_0x3142d2%0x64!=0xb?0x0:_0x3142d2%0xa>=0x2&&_0x3142d2%0xa<=0x4&&(_0x3142d2%0x64<0xa||_0x3142d2%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x126843=>{const {be:{dictionary:_0x59db7e,getPluralForm:_0x1a318a}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x5aeffa=>_0x5aeffa%0xa==0x1&&_0x5aeffa%0x64!=0xb?0x0:_0x5aeffa%0xa>=0x2&&_0x5aeffa%0xa<=0x4&&(_0x5aeffa%0x64<0xa||_0x5aeffa%0x64>=0x14)?0x1:0x2}};_0x126843['be']||={'dictionary':{},'getPluralForm':null},_0x126843['be']['dictionary']=Object['assign'](_0x126843['be']['dictionary'],_0x59db7e),_0x126843['be']['getPluralForm']=_0x1a318a;})(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':_0x4e06d=>0x1!=_0x4e06d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x306fa1=>{const {bg:{dictionary:_0x34e2ca,getPluralForm:_0x162930}}={'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':_0x42abfc=>0x1!=_0x42abfc}};_0x306fa1['bg']||={'dictionary':{},'getPluralForm':null},_0x306fa1['bg']['dictionary']=Object['assign'](_0x306fa1['bg']['dictionary'],_0x34e2ca),_0x306fa1['bg']['getPluralForm']=_0x162930;})(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':_0x1fa17a=>0x1!=_0x1fa17a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x142e72=>{const {bn:{dictionary:_0x5cefce,getPluralForm:_0x1c2775}}={'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':_0x40006d=>0x1!=_0x40006d}};_0x142e72['bn']||={'dictionary':{},'getPluralForm':null},_0x142e72['bn']['dictionary']=Object['assign'](_0x142e72['bn']['dictionary'],_0x5cefce),_0x142e72['bn']['getPluralForm']=_0x1c2775;})(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':_0x412904=>_0x412904%0xa==0x1&&_0x412904%0x64!=0xb?0x0:_0x412904%0xa>=0x2&&_0x412904%0xa<=0x4&&(_0x412904%0x64<0xa||_0x412904%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3d7872=>{const {bs:{dictionary:_0x2c11e9,getPluralForm:_0x5e11c4}}={'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':_0x53f787=>_0x53f787%0xa==0x1&&_0x53f787%0x64!=0xb?0x0:_0x53f787%0xa>=0x2&&_0x53f787%0xa<=0x4&&(_0x53f787%0x64<0xa||_0x53f787%0x64>=0x14)?0x1:0x2}};_0x3d7872['bs']||={'dictionary':{},'getPluralForm':null},_0x3d7872['bs']['dictionary']=Object['assign'](_0x3d7872['bs']['dictionary'],_0x2c11e9),_0x3d7872['bs']['getPluralForm']=_0x5e11c4;})(window['CKEDITOR_TRANSLATIONS']||={});
|