@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250915.0 → 0.0.0-nightly-20250916.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 _0x55beb0,Command as _0x47fb62}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x384060,IconGooglePhotos as _0x28f6b8,IconGoogleDrive as _0x15817d,IconFacebook as _0x35492e,IconDropbox as _0x3667d3,IconUploadcareLink as _0x2d1f1b,IconUploadcareImageUpload as _0x5117c3,IconError as _0x15cce8,IconUploadcareImageEdit as _0x55f924}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1fa306,MenuBarMenuListItemButtonView as _0x3382fc,View as _0x16e777,FocusCycler as _0x317c7a,Dialog as _0x344a4e,DialogViewPosition as _0x2a6099,SpinnerView as _0x47ee8c,IconView as _0x217b19,Notification as _0x202a62}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4c7910,DomEmitterMixin as _0x59811b,global as _0x550573,getAncestors as _0x2bdeeb,ObservableMixin as _0x482c1e,uid as _0x328789,createElement as _0xae4d41}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x49022b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x39625c,info as _0x2b98d5}from'@uploadcare/upload-client';import*as _0x1f91f4 from'@uploadcare/file-uploader';var i=function(_0x36ffad){return _0x36ffad['Local']='local',_0x36ffad['URL']='url',_0x36ffad['Dropbox']='dropbox',_0x36ffad['GDrive']='gdrive',_0x36ffad['Facebook']='facebook',_0x36ffad['GPhotos']='gphotos',_0x36ffad['OneDrive']='onedrive',_0x36ffad;}({});function _(_0x2ec078,_0x563c67,_0x253b40){const t=_0x2ec078['t'],_0x3d8823=_0x2ec078['t'];switch(_0x563c67){case i['Local']:return{'text':_0x3d8823('Insert'===_0x253b40?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3d8823('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x253b40?_0x3d8823('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3d8823('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x253b40?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x253b40?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x253b40?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x253b40?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x253b40?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x563c67;}}class e extends _0x55beb0{['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 _0x1b05ad=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34eb2d;for(const _0x4c4b72 in _0x1b05ad){const _0x22fc53=_0x4c4b72,_0x5be70d=_0x1b05ad[_0x22fc53];if('uploadcareLicenseKeyValid'==_0x5be70d||'uploadcareLicenseKeyInvalid'==_0x5be70d||'uploadcareLicenseKeyExpired'==_0x5be70d||'uploadcareLicenseKeyDomainLimit'==_0x5be70d||'uploadcareLicenseKeyNotAllowed'==_0x5be70d||'uploadcareLicenseKeyEvaluationLimit'==_0x5be70d||'uploadcareLicenseKeyTrialLimit'==_0x5be70d||'uploadcareLicenseKeyUsageLimit'==_0x5be70d){delete _0x1b05ad[_0x22fc53],_0x34eb2d=_0x5be70d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x34eb2d&&_0x1b05ad['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x34eb2d&&_0x1b05ad['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x34eb2d&&_0x1b05ad['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x34eb2d&&_0x1b05ad['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x34eb2d&&_0x1b05ad['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x34eb2d&&_0x1b05ad['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x34eb2d&&_0x1b05ad['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x239731}=this,_0x2b4186=_0x239731['commands']['get']('uploadcare');if(!_0x2b4186)return;const _0xff9bab=this['_normalizeConfigSourceList'](_0x239731['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x25b2af,_0x398a38)=>{const _0x56d6f5=this['_getIntegrationKey'](_0x398a38['type']);return _0x25b2af[_0x56d6f5]||(_0x25b2af[_0x56d6f5]=[]),_0x25b2af[_0x56d6f5]['push'](_0x398a38),_0x25b2af;},{});_0x239731['plugins']['has']('ImageInsertUI')&&_0x239731['commands']['get']('uploadcare')&&Object['entries'](_0xff9bab)['forEach'](([_0x51d26b,_0x1c52d8])=>{_0x239731['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x51d26b,'observable':()=>_0x2b4186,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1c52d8),'formViewCreator':()=>this['_createDropdownButtons'](_0x1c52d8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1c52d8),'override':'assetManager'!==_0x51d26b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1929f2){const {locale:_0x370197}=this['editor'];return _0x1929f2['map'](_0x18e7ae=>{const _0x5b3f05=_(_0x370197,_0x18e7ae,'Insert');switch(_0x18e7ae){case i['Local']:return{'icon':_0x5117c3,'type':i['Local'],..._0x5b3f05};case i['URL']:return{'icon':_0x2d1f1b,'type':i['URL'],..._0x5b3f05};case i['Dropbox']:return{'icon':_0x3667d3,'type':i['Dropbox'],..._0x5b3f05};case i['Facebook']:return{'icon':_0x35492e,'type':i['Facebook'],..._0x5b3f05};case i['GDrive']:return{'icon':_0x15817d,'type':i['GDrive'],..._0x5b3f05};case i['GPhotos']:return{'icon':_0x28f6b8,'type':i['GPhotos'],..._0x5b3f05};case i['OneDrive']:return{'icon':_0x384060,'type':i['OneDrive'],..._0x5b3f05};}});}['_getIntegrationKey'](_0x33e520){switch(_0x33e520){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3169ce,_0x5bb6d5){const _0x2491ca=this['editor'],_0x3259a7=new _0x3169ce(_0x2491ca['locale']),_0x36c572=_0x2491ca['commands']['get']('uploadcare');return _0x3259a7['bind']('isEnabled')['to'](_0x36c572),_0x3259a7['on']('execute',()=>{_0x36c572['execute'](_0x5bb6d5);}),_0x3259a7;}['_createToolbarButton'](_0x922d14){const {locale:_0x2d86c3}=this['editor'],_0x439a73=this['editor']['plugins']['get']('ImageInsertUI'),_0x3f74b0=_0x922d14[0x0],_0x463a45=this['_createButton'](_0x1fa306,_0x3f74b0['type']);return _0x463a45['icon']=_0x3f74b0['icon'],_0x463a45['bind']('label')['to'](_0x439a73,'isImageSelected',_0x143460=>_(_0x2d86c3,_0x3f74b0['type'],_0x143460?'Replace':'Insert')['text']),_0x463a45['tooltip']=!0x0,_0x463a45;}['_createDropdownButtons'](_0x3294dc){const {locale:_0x313432}=this['editor'],_0x6505e3=this['editor']['plugins']['get']('ImageInsertUI');return _0x3294dc['map'](_0x3f8a40=>{const _0x2b4991=this['_createButton'](_0x1fa306,_0x3f8a40['type']);return _0x2b4991['withText']=!0x0,_0x2b4991['icon']=_0x3f8a40['icon'],_0x2b4991['bind']('label')['to'](_0x6505e3,'isImageSelected',_0xf539b7=>_(_0x313432,_0x3f8a40['type'],_0xf539b7?'Replace':'Insert')['text']),_0x2b4991;});}['_createMenuBarButtons'](_0x34bd14){return _0x34bd14['map'](_0x38eb27=>{const _0x5c88ef=this['_createButton'](_0x3382fc,_0x38eb27['type']);return _0x5c88ef['icon']=_0x38eb27['icon'],_0x5c88ef['label']=_0x38eb27['shortText'],_0x5c88ef;});}}class F extends _0x16e777{['focusTracker'];['focusCycler'];constructor(_0x331870){super(_0x331870),this['focusTracker']=new _0x4c7910(),this['focusCycler']=new _0x317c7a({'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(_0x428482,_0x40649f){super(_0x428482),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-'+_0x40649f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1784cd,_0x35ee09){const _0x3eb9c1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x26a04e=>_0x26a04e<=_0x35ee09)['map'](_0x237320=>_0x1784cd['replace'](/\/$/,'')+'/-/resize/'+_0x237320+'x/\x20'+_0x237320+'w');return{'imageFallbackUrl':_0x1784cd,'imageSources':[{'srcset':_0x3eb9c1['join'](',\x20'),'sizes':'(max-width:\x20'+_0x35ee09+'px)\x20100vw,\x20'+_0x35ee09+'px','type':'image/webp'}]};}function S(_0x5f0ffc,_0x154f72,_0x2b28aa){const _0x150eb0=_0x5f0ffc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x150eb0?parseInt(_0x150eb0[0x1],0xa):_0x154f72,'height':_0x150eb0?parseInt(_0x150eb0[0x2],0xa):_0x2b28aa};}function p(_0x5346c9,_0x2d00ec){const _0x3fd025=new(_0x59811b())(),_0x486921=_0x5346c9['plugins']['get']('ImageUtils'),_0x56d60c=_0x5346c9['editing']['mapper']['toViewElement'](_0x2d00ec),_0x5f1ce3=_0x486921['findViewImgElement'](_0x56d60c),_0x5ae342=_0x5346c9['editing']['view']['domConverter']['viewToDom'](_0x5f1ce3),_0x395972=_0x2d00ec['getAttribute']('width'),_0x334e46=_0x2d00ec['getAttribute']('height'),_0x399769='image-processing';_0x5346c9['editing']['view']['change'](_0x9819e=>{_0x9819e['addClass'](_0x399769,_0x56d60c),_0x9819e['setStyle']('aspect-ratio',_0x395972+'/'+_0x334e46,_0x5f1ce3);}),_0x3fd025['listenTo'](_0x5ae342,'load',()=>{_0x3fd025['stopListening'](_0x5ae342,'load'),_0x5346c9['editing']['view']['change'](_0x5bec93=>{_0x5bec93['removeClass'](_0x399769,_0x56d60c),_0x5bec93['removeStyle']('aspect-ratio',_0x5f1ce3);});});}function G(_0x51ea36){if(Array['isArray'](_0x51ea36)){const _0x3ca2a4=_0x51ea36['map'](G);return _0x3b94ae=>_0x3ca2a4['some'](_0x183419=>_0x183419(_0x3b94ae));}if('origin'==_0x51ea36){const _0x45fe07=_0x550573['window']['location']['origin'];return _0x5a4b25=>new URL(_0x5a4b25,_0x550573['document']['baseURI'])['origin']==_0x45fe07;}return'function'==typeof _0x51ea36?_0x51ea36:_0x51ea36 instanceof RegExp?_0x20745d=>!(!_0x20745d['match'](_0x51ea36)&&!_0x20745d['replace'](/^https?:\/\//,'')['match'](_0x51ea36)):()=>!0x1;}function A(_0x18475e,_0x1c00ec){return _0x2bdeeb(_0x18475e['target'])['includes'](_0x1c00ec);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x482c1e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1b7c6e,_0x311452,_0x296c2a){super(),this['_editor']=_0x1b7c6e,this['_editing']=_0x311452,this['_dialog']=_0x1b7c6e['plugins']['get'](_0x344a4e),this['_api']=_0x311452['ctxElement']['getAPI'](),this['_type']=_0x296c2a,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:_0xda629e,model:_0x5485e7}=this['_editor'],_0x3394ed=_0x5485e7['document']['selection']['getSelectedElement'](),_0x272cc5=_0x3394ed&&(_0x3394ed['is']('element','imageBlock')||_0x3394ed['is']('element','imageInline'));this['_formView']=new x(_0xda629e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5117c3,'title':_(_0xda629e,this['_type'],_0x272cc5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2a6099['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e8e31=>!A(_0x5e8e31,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1d1f46}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x9877e9=>{const _0xb809d3=_0x1d1f46['length'];for(const _0x48a73c of _0x1d1f46){const _0x2b74fd=_0x48a73c===_0x1d1f46[_0xb809d3-0x1],{cdnUrl:_0x729456,fileInfo:_0x5f12ea}=_0x48a73c;if(!_0x729456||!_0x5f12ea)continue;const {width:_0x2ab8ee,height:_0x424913}=_0x5f12ea['imageInfo'],_0x59e76f=S(_0x729456,_0x2ab8ee,_0x424913),_0x31f2fc=C(_0x729456,_0x59e76f['width']),_0x43348e={'id':_0x5f12ea['uuid'],'type':'image','attributes':{'imageDimension':_0x59e76f,..._0x31f2fc}};this['_insertAsset'](_0x43348e,_0x2b74fd,_0x9877e9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2725bd=>{'idle'===_0x2725bd['detail']['status']&&!_0x2725bd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3b3b09,_0x2946bd,_0x29ccbe){const _0x3e3a63=this['_editor']['model']['document']['selection'],_0x6ed403=_0x3e3a63['getSelectedElement'](),_0x3ccfa9=!(!_0x6ed403||!_0x6ed403['is']('element','imageInline'));_0x29ccbe['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3b3b09,_0x3ccfa9),_0x2946bd||_0x29ccbe['setSelection'](_0x3e3a63['getLastPosition']());}['_insertImage'](_0x4ce227,_0x40704f){const _0xe42f03=this['_editor'],{imageDimension:_0x46a75d,imageFallbackUrl:_0x3dc7a2,imageSources:_0x3f9c59}=_0x4ce227['attributes'];_0xe42f03['execute']('insertImage',{'imageType':_0x40704f?'imageInline':null,'source':{'uploadcareImageId':_0x4ce227['id'],'src':_0x3dc7a2,'sources':_0x3f9c59,..._0x46a75d}});}}class w extends _0x47fb62{['_editing'];['_controller']=null;static get['requires'](){return[_0x344a4e,o];}constructor(_0x3531ee){super(_0x3531ee),this['_editing']=_0x3531ee['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x10b478){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x10b478);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3add9e,..._0x507bae}){return _0x39625c(_0x3add9e,_0x507bae);}static['getInfo'](_0x2a0057,_0x140e6d){return _0x2b98d5(_0x2a0057,_0x140e6d);}}class f extends _0x55beb0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x49022b,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x556318=this['editor'];if(!!!_0x556318['config']['get']('uploadcare'))return;_0x556318['plugins']['get'](_0x49022b)['createUploadAdapter']=_0x3b5331=>new k(_0x3b5331,_0x556318),_0x556318['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x9d1634,{imageElement:_0x1a7fdb,data:_0x17f9f0})=>{_0x556318['model']['change'](_0x3e59e2=>{_0x3e59e2['setAttribute']('uploadcareImageId',_0x17f9f0['uploadcareImageId'],_0x1a7fdb);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x31e4b5,_0x499950){this['loader']=_0x31e4b5,this['editor']=_0x499950,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x56cc63=await this['loader']['file'];return j['upload']({'file':_0x56cc63,'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':_0x1a1f94=>{_0x1a1f94&&_0x1a1f94['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1a1f94['value']);}})['then'](async _0x5aeb63=>{const {imageFallbackUrl:_0x4a7b95,imageSources:_0x2681c2}=C(_0x5aeb63['cdnUrl'],_0x5aeb63['imageInfo']['width']);return{'uploadcareImageId':_0x5aeb63['uuid'],'default':_0x4a7b95,'sources':_0x2681c2};})['catch'](()=>{const _0x25a46e=t('Cannot\x20upload\x20file:')+('\x20'+_0x56cc63['name']+'.');return Promise['reject'](_0x25a46e);});}['abort'](){this['controller']['abort']();}}class o extends _0x55beb0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x344a4e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x285fe2){super(_0x285fe2),this['ucContextId']=_0x328789();}['init'](){const _0x21716c=this['editor'];_0x21716c['commands']['add']('uploadcare',new w(_0x21716c));}['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 _0x1ab8d8=_0x550573['document']['querySelector']('input[uploadcare-file-input]');_0x1ab8d8&&_0x1ab8d8['remove']();}),async function(_0x1d724a){const _0x5c1adf=_0x14b7b7([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x55228a=0x3d8d0df,_0x43102c=0x3dfa3af^_0x55228a,_0x4173e1=window[_0x14b7b7([0x44,0x61,0x74,0x65])][_0x14b7b7([0x6e,0x6f,0x77])](),_0x15b93a=_0x1d724a[_0x14b7b7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c6156=new window[(_0x14b7b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x561672=>{_0x15b93a[_0x14b7b7([0x6f,0x6e,0x63,0x65])](_0x14b7b7([0x72,0x65,0x61,0x64,0x79]),_0x561672);}),_0x51bc66={[_0x14b7b7([0x6b,0x74,0x79])]:_0x14b7b7([0x45,0x43]),[_0x14b7b7([0x75,0x73,0x65])]:_0x14b7b7([0x73,0x69,0x67]),[_0x14b7b7([0x63,0x72,0x76])]:_0x14b7b7([0x50,0x2d,0x32,0x35,0x36]),[_0x14b7b7([0x78])]:_0x14b7b7([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]),[_0x14b7b7([0x79])]:_0x14b7b7([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]),[_0x14b7b7([0x61,0x6c,0x67])]:_0x14b7b7([0x45,0x53,0x32,0x35,0x36])},_0x419794=_0x15b93a[_0x14b7b7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14b7b7([0x67,0x65,0x74])](_0x14b7b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x866736(){let _0x5a8318,_0x2cc234=null,_0x3eac7f=null;try{if(_0x419794==_0x14b7b7([0x47,0x50,0x4c]))return _0x14b7b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a8318=_0x297663(),!_0x5a8318)return _0x14b7b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a8318[_0x14b7b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3eac7f=_0x3fd64d(_0x5a8318[_0x14b7b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a8318[_0x14b7b7([0x6a,0x74,0x69])])),await _0x1eafc6()?_0x35bf88()?_0x2bbf38()?_0x14b7b7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x14a821()?(_0x5a8318[_0x14b7b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b7b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2cc234=_0x5df910(_0x14b7b7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a8318[_0x14b7b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14b7b7([0x74,0x72,0x69,0x61,0x6c])&&(_0x2cc234=_0x5df910(_0x14b7b7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f9499()):_0x14b7b7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14b7b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14b7b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x14b7b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2bbf38(){const _0x1fd90e=[_0x14b7b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14b7b7([0x74,0x72,0x69,0x61,0x6c])][_0x14b7b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8318[_0x14b7b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4173e1/0x3e8:0xe10*_0x43102c;return _0x5a8318[_0x14b7b7([0x65,0x78,0x70])]<_0x1fd90e;}function _0x35bf88(){const _0x1a7bfb=_0x5a8318[_0x14b7b7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1a7bfb&&(!!_0x1a7bfb[_0x14b7b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b7b7([0x2a]))||!!_0x1a7bfb[_0x14b7b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b7b7([0x55,0x50,0x4c,0x43])));}function _0x14a821(){const _0x49ec11=_0x5a8318[_0x14b7b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x49ec11||0x0==_0x49ec11[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42f06f}=new URL(window[_0x14b7b7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x49ec11[_0x14b7b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42f06f))return!0x0;const _0x3d0dc2=_0x42f06f[_0x14b7b7([0x73,0x70,0x6c,0x69,0x74])](_0x14b7b7([0x2e]));return _0x49ec11[_0x14b7b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37d17e=>_0x37d17e[_0x14b7b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b7b7([0x2a])))[_0x14b7b7([0x6d,0x61,0x70])](_0x257b6a=>_0x257b6a[_0x14b7b7([0x73,0x70,0x6c,0x69,0x74])](_0x14b7b7([0x2e])))[_0x14b7b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11587d=>_0x11587d[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3d0dc2[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14b7b7([0x6d,0x61,0x70])](_0x452b64=>Array(_0x3d0dc2[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x452b64[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14b7b7([0x66,0x69,0x6c,0x6c])](_0x452b64[0x0]===_0x14b7b7([0x2a])?_0x14b7b7([0x2a]):'')[_0x14b7b7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x452b64))[_0x14b7b7([0x73,0x6f,0x6d,0x65])](_0x44ba26=>_0x3d0dc2[_0x14b7b7([0x65,0x76,0x65,0x72,0x79])]((_0x2bbbf0,_0x3f57cb)=>_0x44ba26[_0x3f57cb]===_0x2bbbf0||_0x44ba26[_0x3f57cb]===_0x14b7b7([0x2a])));}function _0x2f9499(){return _0x2cc234&&_0x3eac7f?new window[(_0x14b7b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d6605,_0x50cc87)=>{_0x2cc234[_0x14b7b7([0x74,0x68,0x65,0x6e])](_0x1d6605,_0x50cc87),_0x3eac7f[_0x14b7b7([0x74,0x68,0x65,0x6e])](_0x45d863=>{_0x45d863!=_0x14b7b7([0x56,0x61,0x6c,0x69,0x64])&&_0x1d6605(_0x45d863);},_0x50cc87);}):_0x2cc234||_0x3eac7f||_0x14b7b7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3fd64d(_0xbc1da2,_0x156cb8){return new window[(_0x14b7b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24c56b=>{if(_0x329e75())return _0x24c56b(_0x14b7b7([0x56,0x61,0x6c,0x69,0x64]));_0x59f81f(),_0x15b93a[_0x14b7b7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14b7b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15f239=!0x1;const _0x517cdf=_0x328789();function _0x818630(_0x4d7254){return!!_0x4d7254&&(typeof _0x4d7254===_0x14b7b7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d7254===_0x14b7b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d7254[_0x14b7b7([0x74,0x68,0x65,0x6e])]===_0x14b7b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d7254[_0x14b7b7([0x63,0x61,0x74,0x63,0x68])]===_0x14b7b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57c581(_0x38035d){_0x53e1ec(_0x38035d)[_0x14b7b7([0x74,0x68,0x65,0x6e])](_0xf77372=>{if(!_0xf77372||_0xf77372[_0x14b7b7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14b7b7([0x6f,0x6b]))return _0x14b7b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x459780(_0xc8aac(_0x517cdf+_0x156cb8))!=_0xf77372[_0x14b7b7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14b7b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14b7b7([0x56,0x61,0x6c,0x69,0x64]);})[_0x14b7b7([0x74,0x68,0x65,0x6e])](_0x5d435d=>(_0x3e5633(),_0x5d435d),()=>{const _0x1a5a1f=_0x19f84d();return null==_0x1a5a1f?(_0x3e5633(),_0x14b7b7([0x56,0x61,0x6c,0x69,0x64])):_0x14b7b7(_0x4173e1-_0x1a5a1f>(0x27d454df^_0x55228a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14b7b7([0x74,0x68,0x65,0x6e])](_0x24c56b)[_0x14b7b7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24c56b(_0x14b7b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4df476=0x3ee3e5f^_0x55228a;function _0x3e5633(){const _0x3fc696=_0x14b7b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x459780(_0xc8aac(_0xbc1da2)),_0x5d7e62=_0x15e57a(_0x459780(window[_0x14b7b7([0x4d,0x61,0x74,0x68])][_0x14b7b7([0x63,0x65,0x69,0x6c])](_0x4173e1/_0x4df476)));window[_0x14b7b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b7b7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fc696,_0x5d7e62);}function _0x19f84d(){const _0xc11b11=_0x14b7b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x459780(_0xc8aac(_0xbc1da2)),_0x1476a6=window[_0x14b7b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14b7b7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc11b11);return _0x1476a6?window[_0x14b7b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15e57a(_0x1476a6),0x10)*_0x4df476:null;}function _0x53e1ec(_0x1993df){return new window[(_0x14b7b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ac184,_0x3a269e)=>{_0x1993df[_0x14b7b7([0x74,0x68,0x65,0x6e])](_0x2ac184,_0x3a269e),window[_0x14b7b7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a269e,0x3d9041f^_0x55228a);});}}_0x15b93a[_0x14b7b7([0x6f,0x6e])](_0x14b7b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59bdff,_0x5d4fc2)=>{if(_0x5d4fc2[0x0]!=_0xbc1da2)return _0x24c56b(_0x14b7b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d4fc2[0x1]={..._0x5d4fc2[0x1],[_0x14b7b7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x517cdf};},{[_0x14b7b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b7b7([0x68,0x69,0x67,0x68])}),_0x15b93a[_0x14b7b7([0x6f,0x6e])](_0x14b7b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4be736=>{_0x818630(_0x4be736[_0x14b7b7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15f239=!0x0,_0x57c581(_0x4be736[_0x14b7b7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14b7b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14b7b7([0x6c,0x6f,0x77])}),_0x3c6156[_0x14b7b7([0x74,0x68,0x65,0x6e])](()=>{_0x15f239||_0x24c56b(_0x14b7b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x329e75(){return _0x15b93a[_0x14b7b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b7b7([0x76,0x69,0x65,0x77])][_0x14b7b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14b7b7([0x61,0x75,0x74,0x6f]);}function _0x59f81f(){_0x15b93a[_0x14b7b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14b7b7([0x76,0x69,0x65,0x77])][_0x14b7b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14b7b7([0x61,0x75,0x74,0x6f]);}}function _0x5df910(_0x26e933){const _0x28d7ff=[new window[(_0x14b7b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ccab4=>setTimeout(_0x4ccab4,0x3d1ee13^_0x55228a)),_0x3c6156[_0x14b7b7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14b7b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cf6ee=>{let _0x191e50=0x0;_0x15b93a[_0x14b7b7([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b7b7([0x6f,0x6e])](_0x14b7b7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b3b55,_0x59bf16)=>{_0x59bf16[0x0][_0x14b7b7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x191e50++,_0x191e50==(0x3d8d127^_0x55228a)&&(_0x2cf6ee(),_0x2b3b55[_0x14b7b7([0x6f,0x66,0x66])]());});}))];return window[_0x14b7b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14b7b7([0x72,0x61,0x63,0x65])](_0x28d7ff)[_0x14b7b7([0x74,0x68,0x65,0x6e])](()=>_0x26e933);}async function _0x1bfe40(){await _0x3c6156,_0x15b93a[_0x14b7b7([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b7b7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18b6bf,_0x15b93a[_0x14b7b7([0x6d,0x6f,0x64,0x65,0x6c])][_0x14b7b7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18b6bf,_0x15b93a[_0x14b7b7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14b7b7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x423fa1(_0x262d75){const _0x25cd91=_0x69e32f();_0x15b93a[_0x25cd91]=_0x14b7b7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x262d75,_0x262d75!=_0x14b7b7([0x56,0x61,0x6c,0x69,0x64])&&_0x1bfe40();}function _0x69e32f(){const _0x11cd15=window[_0x14b7b7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14b7b7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14b7b7([0x6e,0x6f,0x77])]())[_0x14b7b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14b7b7([0x2e]),'');let _0x788de9=_0x14b7b7([0x52]);for(let _0xcfe97f=0x0;_0xcfe97f<_0x11cd15[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcfe97f+=0x2){let _0x1a4f52=window[_0x14b7b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11cd15[_0x14b7b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcfe97f,_0xcfe97f+0x2));_0x1a4f52>=_0x5c1adf[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a4f52-=_0x5c1adf[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x788de9+=_0x5c1adf[_0x1a4f52];}return _0x788de9;}function _0x297663(){const _0x2aa95e=_0x419794[_0x14b7b7([0x73,0x70,0x6c,0x69,0x74])](_0x14b7b7([0x2e]));if(0x3!=_0x2aa95e[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41b8c0(_0x2aa95e[0x1]);function _0x41b8c0(_0x24fba6){const _0x10c48f=_0x429659(_0x24fba6);return _0x10c48f&&_0xa74a37()?_0x10c48f:null;function _0xa74a37(){const _0x18a9ee=_0x10c48f[_0x14b7b7([0x6a,0x74,0x69])],_0x3c5538=window[_0x14b7b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18a9ee[_0x14b7b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18a9ee[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1157a1={..._0x10c48f,[_0x14b7b7([0x6a,0x74,0x69])]:_0x18a9ee[_0x14b7b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18a9ee[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1157a1[_0x14b7b7([0x76,0x63])],_0xc8aac(_0x1157a1)==_0x3c5538;}}}async function _0x1eafc6(){let _0x1383a2=!0x0;try{const _0x37c6f=_0x419794[_0x14b7b7([0x73,0x70,0x6c,0x69,0x74])](_0x14b7b7([0x2e])),[_0x1634dd,_0x40bd97,_0x34ea64]=_0x37c6f;return _0x1d7d77(_0x1634dd),await _0xc53daa(_0x1634dd,_0x40bd97,_0x34ea64),_0x1383a2;}catch{return!0x1;}function _0x1d7d77(_0x261421){const _0x2f48be=_0x429659(_0x261421);_0x2f48be&&_0x2f48be[_0x14b7b7([0x61,0x6c,0x67])]==_0x14b7b7([0x45,0x53,0x32,0x35,0x36])||(_0x1383a2=!0x1);}async function _0xc53daa(_0x487e26,_0x24fb6e,_0x10876a){const _0x2e3854=window[_0x14b7b7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14b7b7([0x66,0x72,0x6f,0x6d])](_0x5023fc(_0x10876a),_0x32efcf=>_0x32efcf[_0x14b7b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x428bb5=new window[(_0x14b7b7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14b7b7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x487e26+_0x14b7b7([0x2e])+_0x24fb6e),_0x292c50=window[_0x14b7b7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14b7b7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x292c50)return;const _0x5cc853=await _0x292c50[_0x14b7b7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14b7b7([0x6a,0x77,0x6b]),_0x51bc66,{[_0x14b7b7([0x6e,0x61,0x6d,0x65])]:_0x14b7b7([0x45,0x43,0x44,0x53,0x41]),[_0x14b7b7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14b7b7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14b7b7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x292c50[_0x14b7b7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14b7b7([0x6e,0x61,0x6d,0x65])]:_0x14b7b7([0x45,0x43,0x44,0x53,0x41]),[_0x14b7b7([0x68,0x61,0x73,0x68])]:{[_0x14b7b7([0x6e,0x61,0x6d,0x65])]:_0x14b7b7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5cc853,_0x2e3854,_0x428bb5)||(_0x1383a2=!0x1);}}function _0x429659(_0xe0e846){return _0xe0e846[_0x14b7b7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14b7b7([0x65,0x79]))?JSON[_0x14b7b7([0x70,0x61,0x72,0x73,0x65])](_0x5023fc(_0xe0e846)):null;}function _0x5023fc(_0x894dbf){return window[_0x14b7b7([0x61,0x74,0x6f,0x62])](_0x894dbf[_0x14b7b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14b7b7([0x2b]))[_0x14b7b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14b7b7([0x2f])));}function _0xc8aac(_0x488d06){let _0x48dee8=0x1505;function _0x343464(_0x119031){for(let _0x1f24ff=0x0;_0x1f24ff<_0x119031[_0x14b7b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f24ff++){const _0x3f9142=_0x119031[_0x14b7b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f24ff);_0x48dee8=(_0x48dee8<<0x5)+_0x48dee8+_0x3f9142,_0x48dee8&=_0x48dee8;}}function _0x2ea391(_0x262a50){Array[_0x14b7b7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x262a50)?_0x262a50[_0x14b7b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ea391):_0x262a50&&typeof _0x262a50==_0x14b7b7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14b7b7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x262a50)[_0x14b7b7([0x73,0x6f,0x72,0x74])]()[_0x14b7b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17a210,_0x4d84de])=>{_0x343464(_0x17a210),_0x2ea391(_0x4d84de);}):_0x343464(window[_0x14b7b7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x262a50));}return _0x2ea391(_0x488d06),_0x48dee8>>>0x0;}function _0x459780(_0x473f54){return _0x473f54[_0x14b7b7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14b7b7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14b7b7([0x30]));}function _0x15e57a(_0x2968ca){return _0x2968ca[_0x14b7b7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14b7b7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14b7b7([0x6a,0x6f,0x69,0x6e])]('');}function _0x18b6bf(){}function _0x14b7b7(_0x2a5463){return _0x2a5463['map'](_0x2098cb=>String['fromCharCode'](_0x2098cb))['join']('');}_0x423fa1(await _0x866736());}(this);}['_initSchema'](){const _0x13cf15=this['editor']['model']['schema'];_0x13cf15['isRegistered']('imageBlock')&&_0x13cf15['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x13cf15['isRegistered']('imageInline')&&_0x13cf15['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3763e5=this['editor'];_0x3763e5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3763e5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x315c44=>_0x315c44['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x53418=_0x3763e5['commands']['get']('replaceImageSource');_0x53418&&this['listenTo'](_0x53418,'cleanupImage',(_0x434c1e,[_0x111880,_0x1653e0])=>{_0x111880['removeAttribute']('uploadcareImageId',_0x1653e0);});}['_initConfig'](){const _0x2009a6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3d3b6e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xae4d41(_0x550573['document'],'uc-config',{..._0x2009a6,'pubkey':_0x3d3b6e,'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']=_0x540b20=>{if('closeMax'==_0x540b20)return'#uc-icon-arrow-down';},_0x550573['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xae4d41(_0x550573['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x550573['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x207e80=this['editor']['commands']['get']('insertImage');_0x207e80&&this['listenTo'](_0x207e80,'execute',()=>{const _0x46fac7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x46fac7&&_0x46fac7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x46fac7);});});const _0x29efe7=this['editor']['commands']['get']('uploadcareImageReplace');_0x29efe7&&this['listenTo'](_0x29efe7,'execute',()=>{const _0x2c9155=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2c9155&&_0x2c9155['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2c9155);});});}}class tt extends _0x55beb0{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x341116){super(_0x341116),_0x341116['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1f91f4['defineComponents'](_0x1f91f4);}}class ii extends _0x16e777{constructor(_0x11cc2a){super(_0x11cc2a);const t=_0x11cc2a['t'],_0x3013c1=this['bindTemplate'],_0x5893b8=new _0x47ee8c();_0x5893b8['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':[_0x5893b8,{'text':_0x3013c1['to']('imageUploadProgress',_0x2a44fb=>t('Loading\x20image...')+'\x20('+(_0x2a44fb||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 _0x16e777{constructor(_0x3eb5d7){super(_0x3eb5d7);const t=_0x3eb5d7['t'];this['set']('errorType',null);const _0x5f1f35=new _0x1fa306(_0x3eb5d7);_0x5f1f35['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5f1f35['withText']=!0x0,_0x5f1f35['class']='ck-button-action',_0x5f1f35['on']('execute',()=>{this['fire']('retry');}),_0x5f1f35['bind']('isVisible')['to'](this,'errorType',_0x1c11eb=>'NotFound'!==_0x1c11eb);const _0x873e43=new _0x217b19();_0x873e43['content']=_0x15cce8,_0x873e43['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4761e2=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':[_0x873e43,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4761e2['to']('errorType',_0x4a201b=>t('NotFound'!==_0x4a201b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5f1f35]},{'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 _0x16e777{constructor(_0x4a53d1,_0x4cc81f){super(_0x4a53d1);const _0x54d278=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4cc81f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x54d278['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2f5ea6,_0x108412,_0xf8f621){super(_0x2f5ea6),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2f5ea6),this['_errorView']=new ti(_0x2f5ea6),this['_editingView']=new ei(_0x2f5ea6,_0xf8f621),this['_focusableView']=new _0x16e777(_0x2f5ea6),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x108412),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'],_0x323fdb=>{this['_addUploadcareImageEditorListeners'](_0x323fdb);});}),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'](_0x344745,_0x36555a){const _0x5bdba3='uc-cloud-image-editor',_0x5b64c0=_0x344745['querySelector'](_0x5bdba3);if(_0x5b64c0)return _0x36555a(_0x5b64c0);const _0x52f6a5=new MutationObserver(_0x20083b=>{const _0x5dabc2=_0x20083b['filter'](_0x56eb28=>_0x56eb28['target']===_0x344745&&_0x56eb28['addedNodes']['length']>0x0&&_0x56eb28['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5bdba3);_0x5dabc2['length']&&(_0x52f6a5['disconnect'](),_0x36555a(_0x5dabc2[0x0]['addedNodes'][0x0]));});_0x52f6a5['observe'](_0x344745,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x575506){_0x575506['addEventListener']('apply',_0x57f1d2=>{this['fire']('apply',{'imageSrc':_0x57f1d2['detail']['cdnUrl']});}),_0x575506['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x482c1e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4d21b8,_0x4f3d8e,_0x3bdd4f){super(),this['_editor']=_0x4d21b8,this['_dialog']=_0x4f3d8e,this['_imageElement']=_0x3bdd4f,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 _0x3b07ef=this['_imageElement'],_0x2ba98f=_0x3b07ef['getAttribute']('uploadcareImageId'),_0xa8a625=_0x3b07ef['getAttribute']('src');if(_0x2ba98f)await this['_loadImageInfo'](_0x2ba98f,_0xa8a625);else{if(this['_imageCache']['has'](_0xa8a625)){const _0x4ecb43=this['_imageCache']['get'](_0xa8a625);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ecb43['url'],this['imageDimension']=_0x4ecb43['dimension'],this['imageId']=_0x4ecb43['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4ea4ad}=this['_editor'],t=_0x4ea4ad['t'],_0x596985=new X(_0x4ea4ad,this['imageStatus'],this['_attributes']);_0x596985['bind']('status')['to'](this,'imageStatus'),_0x596985['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x596985['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x596985['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x596985,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x55f924,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x596985,'position':_0x2a6099['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x596985['focus']();},'onHide':()=>{_0x596985['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x352d9e=>!A(_0x352d9e,_0x596985['element'])}});}['_loadImageInfo'](_0x2701e3,_0x2db6d4){return j['getInfo'](_0x2701e3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x33cceb=>{const {width:_0x31af0a,height:_0x55060c}=_0x33cceb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2db6d4,this['imageDimension']={'width':_0x31af0a,'height':_0x55060c},this['imageId']=_0x2701e3;})['catch'](_0x527a7b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x527a7b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x51c389,_0x28868d){return this['_getImageAsFile'](_0x51c389)['then'](_0x434868=>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':_0x28868d['signal'],'file':_0x434868,'onProgress':_0x1e18d9=>{_0x1e18d9&&_0x1e18d9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1e18d9['value']));}}))['then'](_0x4df9c7=>{const {width:_0x435408,height:_0x1ec28e}=_0x4df9c7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4df9c7['cdnUrl'],this['imageDimension']={'width':_0x435408,'height':_0x1ec28e},this['imageId']=_0x4df9c7['uuid'],this['imageUploadProgress']=null;const _0x49b1ea=_0x51c389['getAttribute']('src');this['_imageCache']['set'](_0x49b1ea,{'id':_0x4df9c7['uuid'],'url':_0x4df9c7['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4c9231=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c9231['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x512141,_0x4b7701){_0x512141['on']('apply',(_0x173bc9,_0x1b147f)=>{this['_replaceImage'](_0x4b7701,_0x1b147f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x512141['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x512141['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x19e5d5,_0x48a13f,_0x1652d2){const _0x442bc0=this['_editor'],{width:_0x2efe9e,height:_0x448703}=S(_0x48a13f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4e9565,imageSources:_0x38514e}=C(_0x48a13f,_0x2efe9e);_0x442bc0['model']['change'](_0x260314=>{if('$graveyard'===_0x19e5d5['root']['rootName']){_0x442bc0['execute']('insertImage',{'imageType':_0x19e5d5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x19e5d5['getAttributes']()),'uploadcareImageId':_0x1652d2,'src':_0x4e9565,'sources':_0x38514e,'width':_0x2efe9e,'height':_0x448703}});const _0x1c8479=_0x19e5d5['getChildren']();_0x19e5d5=_0x442bc0['model']['document']['selection']['getSelectedElement']();for(const _0x3f0ed5 of _0x1c8479)_0x260314['append'](_0x260314['cloneElement'](_0x3f0ed5),_0x19e5d5);}else _0x260314['setSelection'](_0x19e5d5,'on'),_0x442bc0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x19e5d5['getAttributes']()),'uploadcareImageId':_0x1652d2,'src':_0x4e9565,'sources':_0x38514e,'width':_0x2efe9e,'height':_0x448703},_0x19e5d5);_0x260314['setSelection'](_0x19e5d5,'on');});}async['_getImageAsFile'](_0x15599e){const _0x30525a=_0x550573['window'],_0x5c40b9=_0x550573['document']['location']['href'],_0x61d0ce=new _0x30525a['URL'](_0x15599e['getAttribute']('src'),_0x5c40b9);if('data:'===_0x61d0ce['protocol']){const _0x154773=_0x61d0ce['href']['split'](','),_0x4ec98f=_0x154773[0x0]['match'](/:(.*?);/)[0x1],_0x3973ed=_0x4ec98f['split']('/')[0x1],_0x8ca096=_0x30525a['atob'](_0x154773[_0x154773['length']-0x1]);let _0x1c57a9=_0x8ca096['length'];const _0x130676=new _0x30525a['Uint8Array'](_0x1c57a9);for(;_0x1c57a9--;)_0x130676[_0x1c57a9]=_0x8ca096['charCodeAt'](_0x1c57a9);return new _0x30525a['File']([_0x130676],'image.'+_0x3973ed,{'type':_0x4ec98f});}const _0x36e7d4=_0x61d0ce['href']['split']('/'),_0x51f751=_0x36e7d4[_0x36e7d4['length']-0x1],_0x38875a=_0x51f751['split']('.')[0x1];return _0x30525a['fetch'](_0x61d0ce['href'])['then'](_0x154166=>_0x154166['clone']()['blob']())['then'](_0x213f04=>new _0x30525a['File']([_0x213f04],_0x51f751,{'type':'image/'+_0x38875a}));}}class O extends _0x47fb62{['imageEditController'];static get['requires'](){return[_0x344a4e];}['_isEditable'];constructor(_0x4eb6b8){super(_0x4eb6b8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3ea366){const _0x1658cb=G(_0x3ea366);return _0x161484=>!(!_0x161484||!_0x161484['is']('element','imageBlock')&&!_0x161484['is']('element','imageInline'))&&(!!_0x161484['hasAttribute']('uploadcareImageId')||!!_0x161484['hasAttribute']('src')&&_0x1658cb(_0x161484['getAttribute']('src')));}(_0x4eb6b8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x28eb24=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x28eb24);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xfe8706=this['editor']['model']['document']['selection']['getSelectedElement']();_0xfe8706&&(_0xfe8706['is']('element','imageBlock')||_0xfe8706['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x344a4e),_0xfe8706),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x47fb62{['refresh'](){const _0x1cb908=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1cb908&&(_0x1cb908['is']('element','imageBlock')||_0x1cb908['is']('element','imageInline')));}['execute'](_0x1eb753){const _0x1b1750=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3701ab=>{_0x3701ab['setAttributes'](_0x1eb753,_0x1b1750),_0x3701ab['removeAttribute']('srcset',_0x1b1750),_0x3701ab['removeAttribute']('sizes',_0x1b1750);});}}class m extends _0x55beb0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x202a62,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x41cfba}=this;_0x41cfba['commands']['add']('uploadcareImageEdit',new O(_0x41cfba)),_0x41cfba['commands']['add']('uploadcareImageReplace',new R(_0x41cfba));}}class g extends _0x55beb0{['_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 _0x1ddd4e=this['editor'];_0x1ddd4e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3c5104=>{const _0x1abc83=_0x1ddd4e['commands']['get']('uploadcareImageEdit'),_0x5d900a=new _0x1fa306(_0x3c5104),t=_0x3c5104['t'];return _0x5d900a['set']({'icon':_0x55f924,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5d900a['bind']('isEnabled')['to'](_0x1abc83),_0x5d900a['bind']('isOn')['to'](_0x1abc83,'isActive'),this['listenTo'](_0x5d900a,'execute',()=>{_0x1ddd4e['execute']('uploadcareImageEdit'),_0x1ddd4e['editing']['view']['focus']();}),_0x5d900a;}),this['_initConfig']();}['_initConfig'](){const _0x1f3fea=_0xae4d41(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1f3fea),this['listenTo'](this['editor'],'destroy',()=>{_0x1f3fea['remove']();});}}class et extends _0x55beb0{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x2ce1c8,Command as _0x19c28f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x7298e6,IconGooglePhotos as _0x9e0d6,IconGoogleDrive as _0xce970e,IconFacebook as _0x242bb2,IconDropbox as _0x324174,IconUploadcareLink as _0x5d5df1,IconUploadcareImageUpload as _0x362dfd,IconError as _0x4871b7,IconUploadcareImageEdit as _0x3645e4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x57c7e1,MenuBarMenuListItemButtonView as _0x57b1c6,View as _0x4e7409,FocusCycler as _0x492c22,Dialog as _0x4bb7db,DialogViewPosition as _0x1451b0,SpinnerView as _0x4a926f,IconView as _0x31018d,Notification as _0x53acc6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x59d366,DomEmitterMixin as _0x444a57,global as _0x36eab0,getAncestors as _0x130d87,ObservableMixin as _0x24717f,uid as _0x545345,createElement as _0x337f41}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x592ce6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xc2e29a,info as _0x56b6b6}from'@uploadcare/upload-client';import*as _0x24743f from'@uploadcare/file-uploader';var i=function(_0x441da8){return _0x441da8['Local']='local',_0x441da8['URL']='url',_0x441da8['Dropbox']='dropbox',_0x441da8['GDrive']='gdrive',_0x441da8['Facebook']='facebook',_0x441da8['GPhotos']='gphotos',_0x441da8['OneDrive']='onedrive',_0x441da8;}({});function _(_0x8f4408,_0x3be174,_0x380001){const t=_0x8f4408['t'],_0x455a71=_0x8f4408['t'];switch(_0x3be174){case i['Local']:return{'text':_0x455a71('Insert'===_0x380001?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x455a71('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x380001?_0x455a71('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x455a71('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x380001?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x380001?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x380001?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x380001?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x380001?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3be174;}}class e extends _0x2ce1c8{['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 _0x2c9cc4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x9e6e0d;for(const _0xf33f56 in _0x2c9cc4){const _0x28999c=_0xf33f56,_0x400a61=_0x2c9cc4[_0x28999c];if('uploadcareLicenseKeyValid'==_0x400a61||'uploadcareLicenseKeyInvalid'==_0x400a61||'uploadcareLicenseKeyExpired'==_0x400a61||'uploadcareLicenseKeyDomainLimit'==_0x400a61||'uploadcareLicenseKeyNotAllowed'==_0x400a61||'uploadcareLicenseKeyEvaluationLimit'==_0x400a61||'uploadcareLicenseKeyTrialLimit'==_0x400a61||'uploadcareLicenseKeyUsageLimit'==_0x400a61){delete _0x2c9cc4[_0x28999c],_0x9e6e0d=_0x400a61,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x9e6e0d&&_0x2c9cc4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x9e6e0d&&_0x2c9cc4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x9e6e0d&&_0x2c9cc4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x9e6e0d&&_0x2c9cc4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x9e6e0d&&_0x2c9cc4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x9e6e0d&&_0x2c9cc4['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x9e6e0d&&_0x2c9cc4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x57d1b7}=this,_0x1398e3=_0x57d1b7['commands']['get']('uploadcare');if(!_0x1398e3)return;const _0x334294=this['_normalizeConfigSourceList'](_0x57d1b7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x50ea89,_0x5b7df2)=>{const _0x213d5a=this['_getIntegrationKey'](_0x5b7df2['type']);return _0x50ea89[_0x213d5a]||(_0x50ea89[_0x213d5a]=[]),_0x50ea89[_0x213d5a]['push'](_0x5b7df2),_0x50ea89;},{});_0x57d1b7['plugins']['has']('ImageInsertUI')&&_0x57d1b7['commands']['get']('uploadcare')&&Object['entries'](_0x334294)['forEach'](([_0x4381e2,_0x3fcf21])=>{_0x57d1b7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4381e2,'observable':()=>_0x1398e3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3fcf21),'formViewCreator':()=>this['_createDropdownButtons'](_0x3fcf21),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3fcf21),'override':'assetManager'!==_0x4381e2});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x59d6ae){const {locale:_0x22293c}=this['editor'];return _0x59d6ae['map'](_0xab8035=>{const _0x1a55d1=_(_0x22293c,_0xab8035,'Insert');switch(_0xab8035){case i['Local']:return{'icon':_0x362dfd,'type':i['Local'],..._0x1a55d1};case i['URL']:return{'icon':_0x5d5df1,'type':i['URL'],..._0x1a55d1};case i['Dropbox']:return{'icon':_0x324174,'type':i['Dropbox'],..._0x1a55d1};case i['Facebook']:return{'icon':_0x242bb2,'type':i['Facebook'],..._0x1a55d1};case i['GDrive']:return{'icon':_0xce970e,'type':i['GDrive'],..._0x1a55d1};case i['GPhotos']:return{'icon':_0x9e0d6,'type':i['GPhotos'],..._0x1a55d1};case i['OneDrive']:return{'icon':_0x7298e6,'type':i['OneDrive'],..._0x1a55d1};}});}['_getIntegrationKey'](_0x5cffe6){switch(_0x5cffe6){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x232446,_0x2234f0){const _0x1f31be=this['editor'],_0xe6204e=new _0x232446(_0x1f31be['locale']),_0x402299=_0x1f31be['commands']['get']('uploadcare');return _0xe6204e['bind']('isEnabled')['to'](_0x402299),_0xe6204e['on']('execute',()=>{_0x402299['execute'](_0x2234f0);}),_0xe6204e;}['_createToolbarButton'](_0x469da2){const {locale:_0x37bf61}=this['editor'],_0x592097=this['editor']['plugins']['get']('ImageInsertUI'),_0x29814b=_0x469da2[0x0],_0x24ff99=this['_createButton'](_0x57c7e1,_0x29814b['type']);return _0x24ff99['icon']=_0x29814b['icon'],_0x24ff99['bind']('label')['to'](_0x592097,'isImageSelected',_0x38597d=>_(_0x37bf61,_0x29814b['type'],_0x38597d?'Replace':'Insert')['text']),_0x24ff99['tooltip']=!0x0,_0x24ff99;}['_createDropdownButtons'](_0x3232bd){const {locale:_0x27d521}=this['editor'],_0x26ae05=this['editor']['plugins']['get']('ImageInsertUI');return _0x3232bd['map'](_0xdefa32=>{const _0x3a9091=this['_createButton'](_0x57c7e1,_0xdefa32['type']);return _0x3a9091['withText']=!0x0,_0x3a9091['icon']=_0xdefa32['icon'],_0x3a9091['bind']('label')['to'](_0x26ae05,'isImageSelected',_0x5343e2=>_(_0x27d521,_0xdefa32['type'],_0x5343e2?'Replace':'Insert')['text']),_0x3a9091;});}['_createMenuBarButtons'](_0x227eb6){return _0x227eb6['map'](_0x6f0090=>{const _0x5793de=this['_createButton'](_0x57b1c6,_0x6f0090['type']);return _0x5793de['icon']=_0x6f0090['icon'],_0x5793de['label']=_0x6f0090['shortText'],_0x5793de;});}}class F extends _0x4e7409{['focusTracker'];['focusCycler'];constructor(_0x47c789){super(_0x47c789),this['focusTracker']=new _0x59d366(),this['focusCycler']=new _0x492c22({'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(_0x5c66c2,_0x29b3d2){super(_0x5c66c2),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-'+_0x29b3d2}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x6e8646,_0x515c1e){const _0x7e1389=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xadc01e=>_0xadc01e<=_0x515c1e)['map'](_0x12f46a=>_0x6e8646['replace'](/\/$/,'')+'/-/resize/'+_0x12f46a+'x/\x20'+_0x12f46a+'w');return{'imageFallbackUrl':_0x6e8646,'imageSources':[{'srcset':_0x7e1389['join'](',\x20'),'sizes':'(max-width:\x20'+_0x515c1e+'px)\x20100vw,\x20'+_0x515c1e+'px','type':'image/webp'}]};}function S(_0x1dfa9b,_0x2668b,_0x339102){const _0x28243e=_0x1dfa9b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x28243e?parseInt(_0x28243e[0x1],0xa):_0x2668b,'height':_0x28243e?parseInt(_0x28243e[0x2],0xa):_0x339102};}function p(_0x154c66,_0x49b83c){const _0x2415c2=new(_0x444a57())(),_0x451e41=_0x154c66['plugins']['get']('ImageUtils'),_0xbe868=_0x154c66['editing']['mapper']['toViewElement'](_0x49b83c),_0x5da6dd=_0x451e41['findViewImgElement'](_0xbe868),_0x505de4=_0x154c66['editing']['view']['domConverter']['viewToDom'](_0x5da6dd),_0xaad7de=_0x49b83c['getAttribute']('width'),_0x2d1bf6=_0x49b83c['getAttribute']('height'),_0x419239='image-processing';_0x154c66['editing']['view']['change'](_0x23d112=>{_0x23d112['addClass'](_0x419239,_0xbe868),_0x23d112['setStyle']('aspect-ratio',_0xaad7de+'/'+_0x2d1bf6,_0x5da6dd);}),_0x2415c2['listenTo'](_0x505de4,'load',()=>{_0x2415c2['stopListening'](_0x505de4,'load'),_0x154c66['editing']['view']['change'](_0x72669=>{_0x72669['removeClass'](_0x419239,_0xbe868),_0x72669['removeStyle']('aspect-ratio',_0x5da6dd);});});}function G(_0x465d32){if(Array['isArray'](_0x465d32)){const _0x5f088f=_0x465d32['map'](G);return _0x34a655=>_0x5f088f['some'](_0x3302f6=>_0x3302f6(_0x34a655));}if('origin'==_0x465d32){const _0x483aa1=_0x36eab0['window']['location']['origin'];return _0x4d98be=>new URL(_0x4d98be,_0x36eab0['document']['baseURI'])['origin']==_0x483aa1;}return'function'==typeof _0x465d32?_0x465d32:_0x465d32 instanceof RegExp?_0x2ac781=>!(!_0x2ac781['match'](_0x465d32)&&!_0x2ac781['replace'](/^https?:\/\//,'')['match'](_0x465d32)):()=>!0x1;}function A(_0x70eb18,_0x146f31){return _0x130d87(_0x70eb18['target'])['includes'](_0x146f31);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x24717f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5eee16,_0xd353c9,_0x3f321e){super(),this['_editor']=_0x5eee16,this['_editing']=_0xd353c9,this['_dialog']=_0x5eee16['plugins']['get'](_0x4bb7db),this['_api']=_0xd353c9['ctxElement']['getAPI'](),this['_type']=_0x3f321e,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:_0x3f1d0e,model:_0x5efeec}=this['_editor'],_0x2a505e=_0x5efeec['document']['selection']['getSelectedElement'](),_0x75da7a=_0x2a505e&&(_0x2a505e['is']('element','imageBlock')||_0x2a505e['is']('element','imageInline'));this['_formView']=new x(_0x3f1d0e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x362dfd,'title':_(_0x3f1d0e,this['_type'],_0x75da7a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1451b0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2d11a1=>!A(_0x2d11a1,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x58473d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1a1f31=>{const _0x436dff=_0x58473d['length'];for(const _0x3beb7d of _0x58473d){const _0x30859a=_0x3beb7d===_0x58473d[_0x436dff-0x1],{cdnUrl:_0x391c76,fileInfo:_0x27a103}=_0x3beb7d;if(!_0x391c76||!_0x27a103)continue;const {width:_0x2eda3e,height:_0x30a228}=_0x27a103['imageInfo'],_0x5dfc97=S(_0x391c76,_0x2eda3e,_0x30a228),_0x5dfbf2=C(_0x391c76,_0x5dfc97['width']),_0x209ce6={'id':_0x27a103['uuid'],'type':'image','attributes':{'imageDimension':_0x5dfc97,..._0x5dfbf2}};this['_insertAsset'](_0x209ce6,_0x30859a,_0x1a1f31);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5a1dd8=>{'idle'===_0x5a1dd8['detail']['status']&&!_0x5a1dd8['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x28d306,_0x4b3b2d,_0x389879){const _0x3db4bf=this['_editor']['model']['document']['selection'],_0x4eda95=_0x3db4bf['getSelectedElement'](),_0x467ddb=!(!_0x4eda95||!_0x4eda95['is']('element','imageInline'));_0x389879['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x28d306,_0x467ddb),_0x4b3b2d||_0x389879['setSelection'](_0x3db4bf['getLastPosition']());}['_insertImage'](_0x382dad,_0x53fb27){const _0x687058=this['_editor'],{imageDimension:_0x255294,imageFallbackUrl:_0x139b81,imageSources:_0xf430b}=_0x382dad['attributes'];_0x687058['execute']('insertImage',{'imageType':_0x53fb27?'imageInline':null,'source':{'uploadcareImageId':_0x382dad['id'],'src':_0x139b81,'sources':_0xf430b,..._0x255294}});}}class w extends _0x19c28f{['_editing'];['_controller']=null;static get['requires'](){return[_0x4bb7db,o];}constructor(_0x2a0c6e){super(_0x2a0c6e),this['_editing']=_0x2a0c6e['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x27f2bc){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x27f2bc);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5ab69f,..._0x1b9604}){return _0xc2e29a(_0x5ab69f,_0x1b9604);}static['getInfo'](_0x36b9ce,_0x591885){return _0x56b6b6(_0x36b9ce,_0x591885);}}class f extends _0x2ce1c8{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x592ce6,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4b152c=this['editor'];if(!!!_0x4b152c['config']['get']('uploadcare'))return;_0x4b152c['plugins']['get'](_0x592ce6)['createUploadAdapter']=_0x3cbf50=>new k(_0x3cbf50,_0x4b152c),_0x4b152c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x18051c,{imageElement:_0x1341f8,data:_0x448ebe})=>{_0x4b152c['model']['change'](_0x338760=>{_0x338760['setAttribute']('uploadcareImageId',_0x448ebe['uploadcareImageId'],_0x1341f8);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x930831,_0x531ae4){this['loader']=_0x930831,this['editor']=_0x531ae4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4faf94=await this['loader']['file'];return j['upload']({'file':_0x4faf94,'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':_0x47e5cd=>{_0x47e5cd&&_0x47e5cd['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x47e5cd['value']);}})['then'](async _0x24ebeb=>{const {imageFallbackUrl:_0x25aaa7,imageSources:_0x420ef3}=C(_0x24ebeb['cdnUrl'],_0x24ebeb['imageInfo']['width']);return{'uploadcareImageId':_0x24ebeb['uuid'],'default':_0x25aaa7,'sources':_0x420ef3};})['catch'](()=>{const _0x582773=t('Cannot\x20upload\x20file:')+('\x20'+_0x4faf94['name']+'.');return Promise['reject'](_0x582773);});}['abort'](){this['controller']['abort']();}}class o extends _0x2ce1c8{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4bb7db];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x280214){super(_0x280214),this['ucContextId']=_0x545345();}['init'](){const _0x22a89e=this['editor'];_0x22a89e['commands']['add']('uploadcare',new w(_0x22a89e));}['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 _0x5c164a=_0x36eab0['document']['querySelector']('input[uploadcare-file-input]');_0x5c164a&&_0x5c164a['remove']();}),async function(_0x11a4f0){const _0x5177c5=_0x214add([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x49f497=0x3d8d0df,_0x1bd9f5=0x3dfa357^_0x49f497,_0x3cdac3=window[_0x214add([0x44,0x61,0x74,0x65])][_0x214add([0x6e,0x6f,0x77])](),_0xf5ceaa=_0x11a4f0[_0x214add([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf4f4ce=new window[(_0x214add([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x274931=>{_0xf5ceaa[_0x214add([0x6f,0x6e,0x63,0x65])](_0x214add([0x72,0x65,0x61,0x64,0x79]),_0x274931);}),_0x4a3656={[_0x214add([0x6b,0x74,0x79])]:_0x214add([0x45,0x43]),[_0x214add([0x75,0x73,0x65])]:_0x214add([0x73,0x69,0x67]),[_0x214add([0x63,0x72,0x76])]:_0x214add([0x50,0x2d,0x32,0x35,0x36]),[_0x214add([0x78])]:_0x214add([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]),[_0x214add([0x79])]:_0x214add([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]),[_0x214add([0x61,0x6c,0x67])]:_0x214add([0x45,0x53,0x32,0x35,0x36])},_0x45f631=_0xf5ceaa[_0x214add([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x214add([0x67,0x65,0x74])](_0x214add([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5de2fb(){let _0x248ccb,_0x32b7f8=null,_0x551af6=null;try{if(_0x45f631==_0x214add([0x47,0x50,0x4c]))return _0x214add([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x248ccb=_0x35045e(),!_0x248ccb)return _0x214add([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x248ccb[_0x214add([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x551af6=_0x21b59d(_0x248ccb[_0x214add([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x248ccb[_0x214add([0x6a,0x74,0x69])])),await _0xcc9dcd()?_0x3fd847()?_0x38fda0()?_0x214add([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf31326()?(_0x248ccb[_0x214add([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x214add([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32b7f8=_0x13326e(_0x214add([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x248ccb[_0x214add([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x214add([0x74,0x72,0x69,0x61,0x6c])&&(_0x32b7f8=_0x13326e(_0x214add([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2dc855()):_0x214add([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x214add([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x214add([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x214add([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38fda0(){const _0x337cbc=[_0x214add([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x214add([0x74,0x72,0x69,0x61,0x6c])][_0x214add([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248ccb[_0x214add([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3cdac3/0x3e8:0xe10*_0x1bd9f5;return _0x248ccb[_0x214add([0x65,0x78,0x70])]<_0x337cbc;}function _0x3fd847(){const _0x37792c=_0x248ccb[_0x214add([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x37792c&&(!!_0x37792c[_0x214add([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x214add([0x2a]))||!!_0x37792c[_0x214add([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x214add([0x55,0x50,0x4c,0x43])));}function _0xf31326(){const _0xaeb1cd=_0x248ccb[_0x214add([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xaeb1cd||0x0==_0xaeb1cd[_0x214add([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f0ec6}=new URL(window[_0x214add([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xaeb1cd[_0x214add([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f0ec6))return!0x0;const _0x1f9cab=_0x4f0ec6[_0x214add([0x73,0x70,0x6c,0x69,0x74])](_0x214add([0x2e]));return _0xaeb1cd[_0x214add([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x78484c=>_0x78484c[_0x214add([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x214add([0x2a])))[_0x214add([0x6d,0x61,0x70])](_0x3a5e43=>_0x3a5e43[_0x214add([0x73,0x70,0x6c,0x69,0x74])](_0x214add([0x2e])))[_0x214add([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x463a02=>_0x463a02[_0x214add([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f9cab[_0x214add([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x214add([0x6d,0x61,0x70])](_0x299961=>Array(_0x1f9cab[_0x214add([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x299961[_0x214add([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x214add([0x66,0x69,0x6c,0x6c])](_0x299961[0x0]===_0x214add([0x2a])?_0x214add([0x2a]):'')[_0x214add([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x299961))[_0x214add([0x73,0x6f,0x6d,0x65])](_0x56d6ce=>_0x1f9cab[_0x214add([0x65,0x76,0x65,0x72,0x79])]((_0x17f626,_0x26daba)=>_0x56d6ce[_0x26daba]===_0x17f626||_0x56d6ce[_0x26daba]===_0x214add([0x2a])));}function _0x2dc855(){return _0x32b7f8&&_0x551af6?new window[(_0x214add([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbce686,_0x4e125b)=>{_0x32b7f8[_0x214add([0x74,0x68,0x65,0x6e])](_0xbce686,_0x4e125b),_0x551af6[_0x214add([0x74,0x68,0x65,0x6e])](_0x1ca4de=>{_0x1ca4de!=_0x214add([0x56,0x61,0x6c,0x69,0x64])&&_0xbce686(_0x1ca4de);},_0x4e125b);}):_0x32b7f8||_0x551af6||_0x214add([0x56,0x61,0x6c,0x69,0x64]);}}function _0x21b59d(_0x30402a,_0x4b2bbc){return new window[(_0x214add([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1903eb=>{if(_0x5c3ed8())return _0x1903eb(_0x214add([0x56,0x61,0x6c,0x69,0x64]));_0xf2bc72(),_0xf5ceaa[_0x214add([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x214add([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x44f505=!0x1;const _0x301ce5=_0x545345();function _0x2c9b05(_0x35f057){return!!_0x35f057&&(typeof _0x35f057===_0x214add([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35f057===_0x214add([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35f057[_0x214add([0x74,0x68,0x65,0x6e])]===_0x214add([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35f057[_0x214add([0x63,0x61,0x74,0x63,0x68])]===_0x214add([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5afd28(_0x460101){_0x44a310(_0x460101)[_0x214add([0x74,0x68,0x65,0x6e])](_0x440d4a=>{if(!_0x440d4a||_0x440d4a[_0x214add([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x214add([0x6f,0x6b]))return _0x214add([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43ce59(_0x46f1d5(_0x301ce5+_0x4b2bbc))!=_0x440d4a[_0x214add([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x214add([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x214add([0x56,0x61,0x6c,0x69,0x64]);})[_0x214add([0x74,0x68,0x65,0x6e])](_0x196ee9=>(_0x38a7f(),_0x196ee9),()=>{const _0x7c4261=_0x37f1e2();return null==_0x7c4261?(_0x38a7f(),_0x214add([0x56,0x61,0x6c,0x69,0x64])):_0x214add(_0x3cdac3-_0x7c4261>(0x27d454df^_0x49f497)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x214add([0x74,0x68,0x65,0x6e])](_0x1903eb)[_0x214add([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1903eb(_0x214add([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54fdf0=0x3ee3e5f^_0x49f497;function _0x38a7f(){const _0x3fa7ab=_0x214add([0x6c,0x6c,0x63,0x74,0x2d])+_0x43ce59(_0x46f1d5(_0x30402a)),_0x561a28=_0x21cea4(_0x43ce59(window[_0x214add([0x4d,0x61,0x74,0x68])][_0x214add([0x63,0x65,0x69,0x6c])](_0x3cdac3/_0x54fdf0)));window[_0x214add([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x214add([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fa7ab,_0x561a28);}function _0x37f1e2(){const _0x4d0ff8=_0x214add([0x6c,0x6c,0x63,0x74,0x2d])+_0x43ce59(_0x46f1d5(_0x30402a)),_0x3d11fa=window[_0x214add([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x214add([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d0ff8);return _0x3d11fa?window[_0x214add([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21cea4(_0x3d11fa),0x10)*_0x54fdf0:null;}function _0x44a310(_0x43405f){return new window[(_0x214add([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a258b,_0x6119a4)=>{_0x43405f[_0x214add([0x74,0x68,0x65,0x6e])](_0x2a258b,_0x6119a4),window[_0x214add([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6119a4,0x3d9041f^_0x49f497);});}}_0xf5ceaa[_0x214add([0x6f,0x6e])](_0x214add([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5ca444,_0x4934c0)=>{if(_0x4934c0[0x0]!=_0x30402a)return _0x1903eb(_0x214add([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4934c0[0x1]={..._0x4934c0[0x1],[_0x214add([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x301ce5};},{[_0x214add([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x214add([0x68,0x69,0x67,0x68])}),_0xf5ceaa[_0x214add([0x6f,0x6e])](_0x214add([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17b12d=>{_0x2c9b05(_0x17b12d[_0x214add([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x44f505=!0x0,_0x5afd28(_0x17b12d[_0x214add([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x214add([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x214add([0x6c,0x6f,0x77])}),_0xf4f4ce[_0x214add([0x74,0x68,0x65,0x6e])](()=>{_0x44f505||_0x1903eb(_0x214add([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c3ed8(){return _0xf5ceaa[_0x214add([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x214add([0x76,0x69,0x65,0x77])][_0x214add([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x214add([0x61,0x75,0x74,0x6f]);}function _0xf2bc72(){_0xf5ceaa[_0x214add([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x214add([0x76,0x69,0x65,0x77])][_0x214add([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x214add([0x61,0x75,0x74,0x6f]);}}function _0x13326e(_0x4279f3){const _0x2e0a27=[new window[(_0x214add([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18cd17=>setTimeout(_0x18cd17,0x3d1ee13^_0x49f497)),_0xf4f4ce[_0x214add([0x74,0x68,0x65,0x6e])](()=>new window[(_0x214add([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11185a=>{let _0xc0ec9f=0x0;_0xf5ceaa[_0x214add([0x6d,0x6f,0x64,0x65,0x6c])][_0x214add([0x6f,0x6e])](_0x214add([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x881c5e,_0x5390a7)=>{_0x5390a7[0x0][_0x214add([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc0ec9f++,_0xc0ec9f==(0x3d8d127^_0x49f497)&&(_0x11185a(),_0x881c5e[_0x214add([0x6f,0x66,0x66])]());});}))];return window[_0x214add([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x214add([0x72,0x61,0x63,0x65])](_0x2e0a27)[_0x214add([0x74,0x68,0x65,0x6e])](()=>_0x4279f3);}async function _0x35db59(){await _0xf4f4ce,_0xf5ceaa[_0x214add([0x6d,0x6f,0x64,0x65,0x6c])][_0x214add([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2cd66d,_0xf5ceaa[_0x214add([0x6d,0x6f,0x64,0x65,0x6c])][_0x214add([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2cd66d,_0xf5ceaa[_0x214add([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x214add([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c1f20(_0x9adb2c){const _0x2af8df=_0x3eb040();_0xf5ceaa[_0x2af8df]=_0x214add([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x9adb2c,_0x9adb2c!=_0x214add([0x56,0x61,0x6c,0x69,0x64])&&_0x35db59();}function _0x3eb040(){const _0x346307=window[_0x214add([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x214add([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x214add([0x6e,0x6f,0x77])]())[_0x214add([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x214add([0x2e]),'');let _0x561b47=_0x214add([0x52]);for(let _0x4b27bb=0x0;_0x4b27bb<_0x346307[_0x214add([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b27bb+=0x2){let _0x12e27f=window[_0x214add([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x346307[_0x214add([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b27bb,_0x4b27bb+0x2));_0x12e27f>=_0x5177c5[_0x214add([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12e27f-=_0x5177c5[_0x214add([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x561b47+=_0x5177c5[_0x12e27f];}return _0x561b47;}function _0x35045e(){const _0x4948e8=_0x45f631[_0x214add([0x73,0x70,0x6c,0x69,0x74])](_0x214add([0x2e]));if(0x3!=_0x4948e8[_0x214add([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x21e68e(_0x4948e8[0x1]);function _0x21e68e(_0x498709){const _0x328ddc=_0x5db257(_0x498709);return _0x328ddc&&_0x163724()?_0x328ddc:null;function _0x163724(){const _0x6279b0=_0x328ddc[_0x214add([0x6a,0x74,0x69])],_0x4bbcc7=window[_0x214add([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6279b0[_0x214add([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6279b0[_0x214add([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e43d7={..._0x328ddc,[_0x214add([0x6a,0x74,0x69])]:_0x6279b0[_0x214add([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6279b0[_0x214add([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e43d7[_0x214add([0x76,0x63])],_0x46f1d5(_0x3e43d7)==_0x4bbcc7;}}}async function _0xcc9dcd(){let _0x405278=!0x0;try{const _0x170024=_0x45f631[_0x214add([0x73,0x70,0x6c,0x69,0x74])](_0x214add([0x2e])),[_0x281b19,_0x22720c,_0xfe8fba]=_0x170024;return _0x545838(_0x281b19),await _0x225647(_0x281b19,_0x22720c,_0xfe8fba),_0x405278;}catch{return!0x1;}function _0x545838(_0x2b074a){const _0x51dbac=_0x5db257(_0x2b074a);_0x51dbac&&_0x51dbac[_0x214add([0x61,0x6c,0x67])]==_0x214add([0x45,0x53,0x32,0x35,0x36])||(_0x405278=!0x1);}async function _0x225647(_0x7a3b2f,_0x491f6a,_0x1de7a7){const _0x55f95c=window[_0x214add([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x214add([0x66,0x72,0x6f,0x6d])](_0x558694(_0x1de7a7),_0xd8c02f=>_0xd8c02f[_0x214add([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30bda9=new window[(_0x214add([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x214add([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7a3b2f+_0x214add([0x2e])+_0x491f6a),_0x195435=window[_0x214add([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x214add([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x195435)return;const _0x3c1447=await _0x195435[_0x214add([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x214add([0x6a,0x77,0x6b]),_0x4a3656,{[_0x214add([0x6e,0x61,0x6d,0x65])]:_0x214add([0x45,0x43,0x44,0x53,0x41]),[_0x214add([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x214add([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x214add([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x195435[_0x214add([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x214add([0x6e,0x61,0x6d,0x65])]:_0x214add([0x45,0x43,0x44,0x53,0x41]),[_0x214add([0x68,0x61,0x73,0x68])]:{[_0x214add([0x6e,0x61,0x6d,0x65])]:_0x214add([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3c1447,_0x55f95c,_0x30bda9)||(_0x405278=!0x1);}}function _0x5db257(_0x5e4556){return _0x5e4556[_0x214add([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x214add([0x65,0x79]))?JSON[_0x214add([0x70,0x61,0x72,0x73,0x65])](_0x558694(_0x5e4556)):null;}function _0x558694(_0x384b7a){return window[_0x214add([0x61,0x74,0x6f,0x62])](_0x384b7a[_0x214add([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x214add([0x2b]))[_0x214add([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x214add([0x2f])));}function _0x46f1d5(_0x2f50f8){let _0x547107=0x1505;function _0xdc6388(_0x49579a){for(let _0x1a3ae7=0x0;_0x1a3ae7<_0x49579a[_0x214add([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a3ae7++){const _0x4ffa10=_0x49579a[_0x214add([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a3ae7);_0x547107=(_0x547107<<0x5)+_0x547107+_0x4ffa10,_0x547107&=_0x547107;}}function _0x3cd42e(_0x3ca9da){Array[_0x214add([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ca9da)?_0x3ca9da[_0x214add([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3cd42e):_0x3ca9da&&typeof _0x3ca9da==_0x214add([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x214add([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ca9da)[_0x214add([0x73,0x6f,0x72,0x74])]()[_0x214add([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x33cfa8,_0x28ef3b])=>{_0xdc6388(_0x33cfa8),_0x3cd42e(_0x28ef3b);}):_0xdc6388(window[_0x214add([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ca9da));}return _0x3cd42e(_0x2f50f8),_0x547107>>>0x0;}function _0x43ce59(_0x1ec18f){return _0x1ec18f[_0x214add([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x214add([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x214add([0x30]));}function _0x21cea4(_0x3aa6ba){return _0x3aa6ba[_0x214add([0x73,0x70,0x6c,0x69,0x74])]('')[_0x214add([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x214add([0x6a,0x6f,0x69,0x6e])]('');}function _0x2cd66d(){}function _0x214add(_0x1216ff){return _0x1216ff['map'](_0x19cf8e=>String['fromCharCode'](_0x19cf8e))['join']('');}_0x2c1f20(await _0x5de2fb());}(this);}['_initSchema'](){const _0x58cf56=this['editor']['model']['schema'];_0x58cf56['isRegistered']('imageBlock')&&_0x58cf56['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x58cf56['isRegistered']('imageInline')&&_0x58cf56['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5140cf=this['editor'];_0x5140cf['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5140cf['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1f2c37=>_0x1f2c37['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5c4253=_0x5140cf['commands']['get']('replaceImageSource');_0x5c4253&&this['listenTo'](_0x5c4253,'cleanupImage',(_0x5c0dbd,[_0x326111,_0x28a226])=>{_0x326111['removeAttribute']('uploadcareImageId',_0x28a226);});}['_initConfig'](){const _0xbf6ebb=this['editor']['config']['get']('uploadcare.uploader')||{},_0x312fd0=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x337f41(_0x36eab0['document'],'uc-config',{..._0xbf6ebb,'pubkey':_0x312fd0,'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']=_0x9b13ab=>{if('closeMax'==_0x9b13ab)return'#uc-icon-arrow-down';},_0x36eab0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x337f41(_0x36eab0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x36eab0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3a7a88=this['editor']['commands']['get']('insertImage');_0x3a7a88&&this['listenTo'](_0x3a7a88,'execute',()=>{const _0x4db9f9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4db9f9&&_0x4db9f9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4db9f9);});});const _0x1c960f=this['editor']['commands']['get']('uploadcareImageReplace');_0x1c960f&&this['listenTo'](_0x1c960f,'execute',()=>{const _0x515216=this['editor']['model']['document']['selection']['getSelectedElement']();_0x515216&&_0x515216['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x515216);});});}}class tt extends _0x2ce1c8{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x469088){super(_0x469088),_0x469088['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x24743f['defineComponents'](_0x24743f);}}class ii extends _0x4e7409{constructor(_0x78fa4b){super(_0x78fa4b);const t=_0x78fa4b['t'],_0x1d4e14=this['bindTemplate'],_0x20bb7e=new _0x4a926f();_0x20bb7e['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':[_0x20bb7e,{'text':_0x1d4e14['to']('imageUploadProgress',_0x4c8d61=>t('Loading\x20image...')+'\x20('+(_0x4c8d61||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 _0x4e7409{constructor(_0x217fde){super(_0x217fde);const t=_0x217fde['t'];this['set']('errorType',null);const _0x5a4da1=new _0x57c7e1(_0x217fde);_0x5a4da1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5a4da1['withText']=!0x0,_0x5a4da1['class']='ck-button-action',_0x5a4da1['on']('execute',()=>{this['fire']('retry');}),_0x5a4da1['bind']('isVisible')['to'](this,'errorType',_0x295064=>'NotFound'!==_0x295064);const _0xa2a8be=new _0x31018d();_0xa2a8be['content']=_0x4871b7,_0xa2a8be['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1b40fc=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':[_0xa2a8be,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1b40fc['to']('errorType',_0x5b53b9=>t('NotFound'!==_0x5b53b9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5a4da1]},{'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 _0x4e7409{constructor(_0x423aee,_0x28ab31){super(_0x423aee);const _0x4115d6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x28ab31,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4115d6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x39bd8c,_0x52e0f3,_0x5c652e){super(_0x39bd8c),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x39bd8c),this['_errorView']=new ti(_0x39bd8c),this['_editingView']=new ei(_0x39bd8c,_0x5c652e),this['_focusableView']=new _0x4e7409(_0x39bd8c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x52e0f3),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'],_0x1ca8aa=>{this['_addUploadcareImageEditorListeners'](_0x1ca8aa);});}),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'](_0x26eae9,_0x3fcc36){const _0x59bca0='uc-cloud-image-editor',_0x918a19=_0x26eae9['querySelector'](_0x59bca0);if(_0x918a19)return _0x3fcc36(_0x918a19);const _0x53ac44=new MutationObserver(_0x1c842d=>{const _0x535ee8=_0x1c842d['filter'](_0x43eb5b=>_0x43eb5b['target']===_0x26eae9&&_0x43eb5b['addedNodes']['length']>0x0&&_0x43eb5b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x59bca0);_0x535ee8['length']&&(_0x53ac44['disconnect'](),_0x3fcc36(_0x535ee8[0x0]['addedNodes'][0x0]));});_0x53ac44['observe'](_0x26eae9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3702bd){_0x3702bd['addEventListener']('apply',_0x4434fe=>{this['fire']('apply',{'imageSrc':_0x4434fe['detail']['cdnUrl']});}),_0x3702bd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x24717f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x16328d,_0x4d6d0b,_0x11b817){super(),this['_editor']=_0x16328d,this['_dialog']=_0x4d6d0b,this['_imageElement']=_0x11b817,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 _0x5f0fc2=this['_imageElement'],_0x2ff640=_0x5f0fc2['getAttribute']('uploadcareImageId'),_0x5d5e51=_0x5f0fc2['getAttribute']('src');if(_0x2ff640)await this['_loadImageInfo'](_0x2ff640,_0x5d5e51);else{if(this['_imageCache']['has'](_0x5d5e51)){const _0x5000c5=this['_imageCache']['get'](_0x5d5e51);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5000c5['url'],this['imageDimension']=_0x5000c5['dimension'],this['imageId']=_0x5000c5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2b80d9}=this['_editor'],t=_0x2b80d9['t'],_0x3bb151=new X(_0x2b80d9,this['imageStatus'],this['_attributes']);_0x3bb151['bind']('status')['to'](this,'imageStatus'),_0x3bb151['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3bb151['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3bb151['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3bb151,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3645e4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3bb151,'position':_0x1451b0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3bb151['focus']();},'onHide':()=>{_0x3bb151['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2d87c2=>!A(_0x2d87c2,_0x3bb151['element'])}});}['_loadImageInfo'](_0x39e14a,_0x8140d0){return j['getInfo'](_0x39e14a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4a0106=>{const {width:_0x8661b8,height:_0x2fe052}=_0x4a0106['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8140d0,this['imageDimension']={'width':_0x8661b8,'height':_0x2fe052},this['imageId']=_0x39e14a;})['catch'](_0x34b107=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x34b107['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1f90bf,_0x553b96){return this['_getImageAsFile'](_0x1f90bf)['then'](_0x5885ee=>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':_0x553b96['signal'],'file':_0x5885ee,'onProgress':_0x37e7c8=>{_0x37e7c8&&_0x37e7c8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x37e7c8['value']));}}))['then'](_0x6893ff=>{const {width:_0x442b6c,height:_0x58aeb7}=_0x6893ff['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x6893ff['cdnUrl'],this['imageDimension']={'width':_0x442b6c,'height':_0x58aeb7},this['imageId']=_0x6893ff['uuid'],this['imageUploadProgress']=null;const _0x28d818=_0x1f90bf['getAttribute']('src');this['_imageCache']['set'](_0x28d818,{'id':_0x6893ff['uuid'],'url':_0x6893ff['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5a8778=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a8778['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xaf6b15,_0x5026f0){_0xaf6b15['on']('apply',(_0x36ac6f,_0x4f1384)=>{this['_replaceImage'](_0x5026f0,_0x4f1384['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xaf6b15['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xaf6b15['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x35147c,_0x1189b5,_0x34854a){const _0x28f205=this['_editor'],{width:_0x1422f8,height:_0x487f2c}=S(_0x1189b5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4a5da0,imageSources:_0x44e764}=C(_0x1189b5,_0x1422f8);_0x28f205['model']['change'](_0x3eaf67=>{if('$graveyard'===_0x35147c['root']['rootName']){_0x28f205['execute']('insertImage',{'imageType':_0x35147c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x35147c['getAttributes']()),'uploadcareImageId':_0x34854a,'src':_0x4a5da0,'sources':_0x44e764,'width':_0x1422f8,'height':_0x487f2c}});const _0x2cc748=_0x35147c['getChildren']();_0x35147c=_0x28f205['model']['document']['selection']['getSelectedElement']();for(const _0xd06d6f of _0x2cc748)_0x3eaf67['append'](_0x3eaf67['cloneElement'](_0xd06d6f),_0x35147c);}else _0x3eaf67['setSelection'](_0x35147c,'on'),_0x28f205['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x35147c['getAttributes']()),'uploadcareImageId':_0x34854a,'src':_0x4a5da0,'sources':_0x44e764,'width':_0x1422f8,'height':_0x487f2c},_0x35147c);_0x3eaf67['setSelection'](_0x35147c,'on');});}async['_getImageAsFile'](_0x1a7303){const _0x1735fc=_0x36eab0['window'],_0x399262=_0x36eab0['document']['location']['href'],_0x3d998d=new _0x1735fc['URL'](_0x1a7303['getAttribute']('src'),_0x399262);if('data:'===_0x3d998d['protocol']){const _0x304e69=_0x3d998d['href']['split'](','),_0x3569ef=_0x304e69[0x0]['match'](/:(.*?);/)[0x1],_0x23120b=_0x3569ef['split']('/')[0x1],_0x4cfcc7=_0x1735fc['atob'](_0x304e69[_0x304e69['length']-0x1]);let _0x49f9d4=_0x4cfcc7['length'];const _0x22feec=new _0x1735fc['Uint8Array'](_0x49f9d4);for(;_0x49f9d4--;)_0x22feec[_0x49f9d4]=_0x4cfcc7['charCodeAt'](_0x49f9d4);return new _0x1735fc['File']([_0x22feec],'image.'+_0x23120b,{'type':_0x3569ef});}const _0x4345f5=_0x3d998d['href']['split']('/'),_0x4c1feb=_0x4345f5[_0x4345f5['length']-0x1],_0x1116f1=_0x4c1feb['split']('.')[0x1];return _0x1735fc['fetch'](_0x3d998d['href'])['then'](_0x28227e=>_0x28227e['clone']()['blob']())['then'](_0x4ecf7f=>new _0x1735fc['File']([_0x4ecf7f],_0x4c1feb,{'type':'image/'+_0x1116f1}));}}class O extends _0x19c28f{['imageEditController'];static get['requires'](){return[_0x4bb7db];}['_isEditable'];constructor(_0x45a7f5){super(_0x45a7f5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x54c9f6){const _0x3ceb61=G(_0x54c9f6);return _0x45c4f1=>!(!_0x45c4f1||!_0x45c4f1['is']('element','imageBlock')&&!_0x45c4f1['is']('element','imageInline'))&&(!!_0x45c4f1['hasAttribute']('uploadcareImageId')||!!_0x45c4f1['hasAttribute']('src')&&_0x3ceb61(_0x45c4f1['getAttribute']('src')));}(_0x45a7f5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xa83c1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xa83c1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x18aa43=this['editor']['model']['document']['selection']['getSelectedElement']();_0x18aa43&&(_0x18aa43['is']('element','imageBlock')||_0x18aa43['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4bb7db),_0x18aa43),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x19c28f{['refresh'](){const _0x4b7691=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4b7691&&(_0x4b7691['is']('element','imageBlock')||_0x4b7691['is']('element','imageInline')));}['execute'](_0x524bd0){const _0x1bdfb2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xf3d587=>{_0xf3d587['setAttributes'](_0x524bd0,_0x1bdfb2),_0xf3d587['removeAttribute']('srcset',_0x1bdfb2),_0xf3d587['removeAttribute']('sizes',_0x1bdfb2);});}}class m extends _0x2ce1c8{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x53acc6,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x204d82}=this;_0x204d82['commands']['add']('uploadcareImageEdit',new O(_0x204d82)),_0x204d82['commands']['add']('uploadcareImageReplace',new R(_0x204d82));}}class g extends _0x2ce1c8{['_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 _0x36fe0b=this['editor'];_0x36fe0b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x25bb9f=>{const _0x6cf993=_0x36fe0b['commands']['get']('uploadcareImageEdit'),_0x30e4ab=new _0x57c7e1(_0x25bb9f),t=_0x25bb9f['t'];return _0x30e4ab['set']({'icon':_0x3645e4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x30e4ab['bind']('isEnabled')['to'](_0x6cf993),_0x30e4ab['bind']('isOn')['to'](_0x6cf993,'isActive'),this['listenTo'](_0x30e4ab,'execute',()=>{_0x36fe0b['execute']('uploadcareImageEdit'),_0x36fe0b['editing']['view']['focus']();}),_0x30e4ab;}),this['_initConfig']();}['_initConfig'](){const _0x34fe0e=_0x337f41(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x34fe0e),this['listenTo'](this['editor'],'destroy',()=>{_0x34fe0e['remove']();});}}class et extends _0x2ce1c8{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':_0x12c218=>0x1!=_0x12c218}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x11cd81=>{const {af:{dictionary:_0x42ba2d,getPluralForm:_0x452e81}}={'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':_0x57dddd=>0x1!=_0x57dddd}};_0x11cd81['af']||={'dictionary':{},'getPluralForm':null},_0x11cd81['af']['dictionary']=Object['assign'](_0x11cd81['af']['dictionary'],_0x42ba2d),_0x11cd81['af']['getPluralForm']=_0x452e81;})(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':_0x544df0=>0x0==_0x544df0?0x0:0x1==_0x544df0?0x1:0x2==_0x544df0?0x2:_0x544df0%0x64>=0x3&&_0x544df0%0x64<=0xa?0x3:_0x544df0%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2d5db7=>{const {ar:{dictionary:_0x26da17,getPluralForm:_0x535db8}}={'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':_0x31a575=>0x0==_0x31a575?0x0:0x1==_0x31a575?0x1:0x2==_0x31a575?0x2:_0x31a575%0x64>=0x3&&_0x31a575%0x64<=0xa?0x3:_0x31a575%0x64>=0xb?0x4:0x5}};_0x2d5db7['ar']||={'dictionary':{},'getPluralForm':null},_0x2d5db7['ar']['dictionary']=Object['assign'](_0x2d5db7['ar']['dictionary'],_0x26da17),_0x2d5db7['ar']['getPluralForm']=_0x535db8;})(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':_0x35a19b=>0x1!=_0x35a19b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x49bbc9=>{const {ast:{dictionary:_0x56f9e3,getPluralForm:_0x456181}}={'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':_0x3b68a4=>0x1!=_0x3b68a4}};_0x49bbc9['ast']||={'dictionary':{},'getPluralForm':null},_0x49bbc9['ast']['dictionary']=Object['assign'](_0x49bbc9['ast']['dictionary'],_0x56f9e3),_0x49bbc9['ast']['getPluralForm']=_0x456181;})(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':_0x260284=>0x1!=_0x260284}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x57f798=>{const {az:{dictionary:_0x5c0e0b,getPluralForm:_0x4bb22a}}={'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':_0x2cb4dc=>0x1!=_0x2cb4dc}};_0x57f798['az']||={'dictionary':{},'getPluralForm':null},_0x57f798['az']['dictionary']=Object['assign'](_0x57f798['az']['dictionary'],_0x5c0e0b),_0x57f798['az']['getPluralForm']=_0x4bb22a;})(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':_0x474b49=>_0x474b49%0xa==0x1&&_0x474b49%0x64!=0xb?0x0:_0x474b49%0xa>=0x2&&_0x474b49%0xa<=0x4&&(_0x474b49%0x64<0xa||_0x474b49%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x10127d=>{const {be:{dictionary:_0x526ed1,getPluralForm:_0x4a8e09}}={'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':_0x34d565=>_0x34d565%0xa==0x1&&_0x34d565%0x64!=0xb?0x0:_0x34d565%0xa>=0x2&&_0x34d565%0xa<=0x4&&(_0x34d565%0x64<0xa||_0x34d565%0x64>=0x14)?0x1:0x2}};_0x10127d['be']||={'dictionary':{},'getPluralForm':null},_0x10127d['be']['dictionary']=Object['assign'](_0x10127d['be']['dictionary'],_0x526ed1),_0x10127d['be']['getPluralForm']=_0x4a8e09;})(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':_0x539641=>0x1!=_0x539641}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x48f653=>{const {bg:{dictionary:_0x1e7bfe,getPluralForm:_0x2d36cc}}={'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':_0x225152=>0x1!=_0x225152}};_0x48f653['bg']||={'dictionary':{},'getPluralForm':null},_0x48f653['bg']['dictionary']=Object['assign'](_0x48f653['bg']['dictionary'],_0x1e7bfe),_0x48f653['bg']['getPluralForm']=_0x2d36cc;})(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':_0x2d2843=>0x1!=_0x2d2843}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4f3569=>{const {bn:{dictionary:_0x424f83,getPluralForm:_0x2cc754}}={'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':_0x20913a=>0x1!=_0x20913a}};_0x4f3569['bn']||={'dictionary':{},'getPluralForm':null},_0x4f3569['bn']['dictionary']=Object['assign'](_0x4f3569['bn']['dictionary'],_0x424f83),_0x4f3569['bn']['getPluralForm']=_0x2cc754;})(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':_0x9a55b2=>_0x9a55b2%0xa==0x1&&_0x9a55b2%0x64!=0xb?0x0:_0x9a55b2%0xa>=0x2&&_0x9a55b2%0xa<=0x4&&(_0x9a55b2%0x64<0xa||_0x9a55b2%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x48b4af=>{const {bs:{dictionary:_0x253501,getPluralForm:_0x45fed5}}={'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':_0x5f23c0=>_0x5f23c0%0xa==0x1&&_0x5f23c0%0x64!=0xb?0x0:_0x5f23c0%0xa>=0x2&&_0x5f23c0%0xa<=0x4&&(_0x5f23c0%0x64<0xa||_0x5f23c0%0x64>=0x14)?0x1:0x2}};_0x48b4af['bs']||={'dictionary':{},'getPluralForm':null},_0x48b4af['bs']['dictionary']=Object['assign'](_0x48b4af['bs']['dictionary'],_0x253501),_0x48b4af['bs']['getPluralForm']=_0x45fed5;})(window['CKEDITOR_TRANSLATIONS']||={});
|