@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251201.0 → 0.0.0-nightly-20251203.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 +10 -10
- 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 _0x2f77e5,Command as _0x331d01}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x18cb1f,IconGooglePhotos as _0x17c309,IconGoogleDrive as _0x58c5b5,IconFacebook as _0x52fb6f,IconDropbox as _0x5cad13,IconUploadcareLink as _0xfcb526,IconUploadcareImageUpload as _0x7c2c5f,IconError as _0x475554,IconUploadcareImageEdit as _0x5a249f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x51a914,MenuBarMenuListItemButtonView as _0xbf69df,View as _0x178ac9,FocusCycler as _0x406826,Dialog as _0x51643a,DialogViewPosition as _0x136fe8,SpinnerView as _0x7b70d3,IconView as _0x5cf7bc,Notification as _0xb0e3c9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x41bca7,DomEmitterMixin as _0x3c6164,global as _0x49f1eb,getAncestors as _0x4a7880,ObservableMixin as _0x40249e,uid as _0x2a311a,createElement as _0xdce142}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4c4e66}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5c8d28,info as _0x4caba5}from'@uploadcare/upload-client';import*as _0x3225ce from'@uploadcare/file-uploader';var i=function(_0x38feb2){return _0x38feb2['Local']='local',_0x38feb2['URL']='url',_0x38feb2['Dropbox']='dropbox',_0x38feb2['GDrive']='gdrive',_0x38feb2['Facebook']='facebook',_0x38feb2['GPhotos']='gphotos',_0x38feb2['OneDrive']='onedrive',_0x38feb2;}({});function _(_0x2206b9,_0x5305dc,_0x1e3dc8){const t=_0x2206b9['t'],_0x26dccb=_0x2206b9['t'];switch(_0x5305dc){case i['Local']:return{'text':_0x26dccb('Insert'===_0x1e3dc8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x26dccb('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1e3dc8?_0x26dccb('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x26dccb('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1e3dc8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1e3dc8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1e3dc8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1e3dc8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1e3dc8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5305dc;}}class e extends _0x2f77e5{['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 _0x41f67e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1988de;for(const _0x22f8f4 in _0x41f67e){const _0x172da5=_0x22f8f4,_0xcc001b=_0x41f67e[_0x172da5];if('uploadcareLicenseKeyValid'==_0xcc001b||'uploadcareLicenseKeyInvalid'==_0xcc001b||'uploadcareLicenseKeyExpired'==_0xcc001b||'uploadcareLicenseKeyDomainLimit'==_0xcc001b||'uploadcareLicenseKeyNotAllowed'==_0xcc001b||'uploadcareLicenseKeyEvaluationLimit'==_0xcc001b||'uploadcareLicenseKeyTrialLimit'==_0xcc001b||'uploadcareLicenseKeyUsageLimit'==_0xcc001b){delete _0x41f67e[_0x172da5],_0x1988de=_0xcc001b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1988de&&_0x41f67e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1988de&&_0x41f67e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1988de&&_0x41f67e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1988de&&_0x41f67e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1988de&&_0x41f67e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1988de&&_0x41f67e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1988de&&_0x41f67e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x586d68}=this,_0x231f87=_0x586d68['commands']['get']('uploadcare');if(!_0x231f87)return;const _0x36538c=this['_normalizeConfigSourceList'](_0x586d68['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x52cd2d,_0x4930ae)=>{const _0x2730af=this['_getIntegrationKey'](_0x4930ae['type']);return _0x52cd2d[_0x2730af]||(_0x52cd2d[_0x2730af]=[]),_0x52cd2d[_0x2730af]['push'](_0x4930ae),_0x52cd2d;},{});_0x586d68['plugins']['has']('ImageInsertUI')&&_0x586d68['commands']['get']('uploadcare')&&Object['entries'](_0x36538c)['forEach'](([_0x40deb6,_0x2aa5dd])=>{_0x586d68['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x40deb6,'observable':()=>_0x231f87,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2aa5dd),'formViewCreator':()=>this['_createDropdownButtons'](_0x2aa5dd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2aa5dd),'override':'assetManager'!==_0x40deb6});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x312e0c){const {locale:_0x1040b9}=this['editor'];return _0x312e0c['map'](_0x494bfe=>{const _0x5800dd=_(_0x1040b9,_0x494bfe,'Insert');switch(_0x494bfe){case i['Local']:return{'icon':_0x7c2c5f,'type':i['Local'],..._0x5800dd};case i['URL']:return{'icon':_0xfcb526,'type':i['URL'],..._0x5800dd};case i['Dropbox']:return{'icon':_0x5cad13,'type':i['Dropbox'],..._0x5800dd};case i['Facebook']:return{'icon':_0x52fb6f,'type':i['Facebook'],..._0x5800dd};case i['GDrive']:return{'icon':_0x58c5b5,'type':i['GDrive'],..._0x5800dd};case i['GPhotos']:return{'icon':_0x17c309,'type':i['GPhotos'],..._0x5800dd};case i['OneDrive']:return{'icon':_0x18cb1f,'type':i['OneDrive'],..._0x5800dd};}});}['_getIntegrationKey'](_0x4319f9){switch(_0x4319f9){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x56435f,_0x5bb91e){const _0x199f41=this['editor'],_0x55a9d5=new _0x56435f(_0x199f41['locale']),_0x397523=_0x199f41['commands']['get']('uploadcare');return _0x55a9d5['bind']('isEnabled')['to'](_0x397523),_0x55a9d5['on']('execute',()=>{_0x397523['execute'](_0x5bb91e);}),_0x55a9d5;}['_createToolbarButton'](_0xdb5798){const {locale:_0x329cf7}=this['editor'],_0x2572a7=this['editor']['plugins']['get']('ImageInsertUI'),_0x3273d3=_0xdb5798[0x0],_0xb57ab2=this['_createButton'](_0x51a914,_0x3273d3['type']);return _0xb57ab2['icon']=_0x3273d3['icon'],_0xb57ab2['bind']('label')['to'](_0x2572a7,'isImageSelected',_0x8d2bfd=>_(_0x329cf7,_0x3273d3['type'],_0x8d2bfd?'Replace':'Insert')['text']),_0xb57ab2['tooltip']=!0x0,_0xb57ab2;}['_createDropdownButtons'](_0x5ea72d){const {locale:_0x28a1e1}=this['editor'],_0x45243f=this['editor']['plugins']['get']('ImageInsertUI');return _0x5ea72d['map'](_0x2e6ef6=>{const _0x4fde38=this['_createButton'](_0x51a914,_0x2e6ef6['type']);return _0x4fde38['withText']=!0x0,_0x4fde38['icon']=_0x2e6ef6['icon'],_0x4fde38['bind']('label')['to'](_0x45243f,'isImageSelected',_0x528154=>_(_0x28a1e1,_0x2e6ef6['type'],_0x528154?'Replace':'Insert')['text']),_0x4fde38;});}['_createMenuBarButtons'](_0x2780b7){return _0x2780b7['map'](_0xe3aa74=>{const _0x269791=this['_createButton'](_0xbf69df,_0xe3aa74['type']);return _0x269791['icon']=_0xe3aa74['icon'],_0x269791['label']=_0xe3aa74['shortText'],_0x269791;});}}class F extends _0x178ac9{['focusTracker'];['focusCycler'];constructor(_0x594852){super(_0x594852),this['focusTracker']=new _0x41bca7(),this['focusCycler']=new _0x406826({'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(_0x436ec6,_0xf7b62d){super(_0x436ec6),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-'+_0xf7b62d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xb2ad8,_0x3d9a8e){const _0x5351e0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x559fd9=>_0x559fd9<=_0x3d9a8e)['map'](_0x58971c=>_0xb2ad8['replace'](/\/$/,'')+'/-/resize/'+_0x58971c+'x/\x20'+_0x58971c+'w');return{'imageFallbackUrl':_0xb2ad8,'imageSources':[{'srcset':_0x5351e0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3d9a8e+'px)\x20100vw,\x20'+_0x3d9a8e+'px','type':'image/webp'}]};}function S(_0x46cfc1,_0xe13dc3,_0x2907a9){const _0x347f72=_0x46cfc1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x347f72?parseInt(_0x347f72[0x1],0xa):_0xe13dc3,'height':_0x347f72?parseInt(_0x347f72[0x2],0xa):_0x2907a9};}function p(_0x1dc4ed,_0xcb9c1e){const _0x5d0234=new(_0x3c6164())(),_0x360aa3=_0x1dc4ed['plugins']['get']('ImageUtils'),_0x170796=_0x1dc4ed['editing']['mapper']['toViewElement'](_0xcb9c1e),_0x52121c=_0x360aa3['findViewImgElement'](_0x170796),_0x1e8dde=_0x1dc4ed['editing']['view']['domConverter']['viewToDom'](_0x52121c),_0x229f02=_0xcb9c1e['getAttribute']('width'),_0x2c42a2=_0xcb9c1e['getAttribute']('height'),_0x59d430='image-processing';_0x1dc4ed['editing']['view']['change'](_0x2b3fe2=>{_0x2b3fe2['addClass'](_0x59d430,_0x170796),_0x2b3fe2['setStyle']('aspect-ratio',_0x229f02+'/'+_0x2c42a2,_0x52121c);}),_0x5d0234['listenTo'](_0x1e8dde,'load',()=>{_0x5d0234['stopListening'](_0x1e8dde,'load'),_0x1dc4ed['editing']['view']['change'](_0x4353fd=>{_0x4353fd['removeClass'](_0x59d430,_0x170796),_0x4353fd['removeStyle']('aspect-ratio',_0x52121c);});});}function G(_0x15b2ef){if(Array['isArray'](_0x15b2ef)){const _0x10caf3=_0x15b2ef['map'](G);return _0x2ee219=>_0x10caf3['some'](_0x5aa224=>_0x5aa224(_0x2ee219));}if('origin'==_0x15b2ef){const _0x12c2a2=_0x49f1eb['window']['location']['origin'];return _0x338363=>new URL(_0x338363,_0x49f1eb['document']['baseURI'])['origin']==_0x12c2a2;}return'function'==typeof _0x15b2ef?_0x15b2ef:_0x15b2ef instanceof RegExp?_0x5a3fae=>!(!_0x5a3fae['match'](_0x15b2ef)&&!_0x5a3fae['replace'](/^https?:\/\//,'')['match'](_0x15b2ef)):()=>!0x1;}function A(_0x342da2,_0x3387c6){return _0x4a7880(_0x342da2['target'])['includes'](_0x3387c6);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x40249e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x20a318,_0x45e4c9,_0x5bd77f){super(),this['_editor']=_0x20a318,this['_editing']=_0x45e4c9,this['_dialog']=_0x20a318['plugins']['get'](_0x51643a),this['_api']=_0x45e4c9['ctxElement']['getAPI'](),this['_type']=_0x5bd77f,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:_0xd2ca47,model:_0x518405}=this['_editor'],_0x3c1129=_0x518405['document']['selection']['getSelectedElement'](),_0x570778=_0x3c1129&&(_0x3c1129['is']('element','imageBlock')||_0x3c1129['is']('element','imageInline'));this['_formView']=new x(_0xd2ca47,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x7c2c5f,'title':_(_0xd2ca47,this['_type'],_0x570778?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x136fe8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1c5d7d=>!A(_0x1c5d7d,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3dff93}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x213c62=>{const _0xfb8833=_0x3dff93['length'];for(const _0x19aea2 of _0x3dff93){const _0x42e89e=_0x19aea2===_0x3dff93[_0xfb8833-0x1],{cdnUrl:_0x4bc774,fileInfo:_0x1575b9}=_0x19aea2;if(!_0x4bc774||!_0x1575b9)continue;const {width:_0x1ce0c6,height:_0x599acc}=_0x1575b9['imageInfo'],_0x2cd559=S(_0x4bc774,_0x1ce0c6,_0x599acc),_0x1c01ea=C(_0x4bc774,_0x2cd559['width']),_0x685ee0={'id':_0x1575b9['uuid'],'type':'image','attributes':{'imageDimension':_0x2cd559,..._0x1c01ea}};this['_insertAsset'](_0x685ee0,_0x42e89e,_0x213c62);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1c3f9e=>{'idle'===_0x1c3f9e['detail']['status']&&!_0x1c3f9e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x20a6f2,_0x2b1aab,_0x5dc7b5){const _0x276f8b=this['_editor']['model']['document']['selection'],_0x261ece=_0x276f8b['getSelectedElement'](),_0x20ff37=!(!_0x261ece||!_0x261ece['is']('element','imageInline'));_0x5dc7b5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x20a6f2,_0x20ff37),_0x2b1aab||_0x5dc7b5['setSelection'](_0x276f8b['getLastPosition']());}['_insertImage'](_0x39a02b,_0x400bb1){const _0xb02c66=this['_editor'],{imageDimension:_0x280174,imageFallbackUrl:_0x5cc824,imageSources:_0xf888ca}=_0x39a02b['attributes'];_0xb02c66['execute']('insertImage',{'imageType':_0x400bb1?'imageInline':null,'source':{'uploadcareImageId':_0x39a02b['id'],'src':_0x5cc824,'sources':_0xf888ca,..._0x280174}});}}class w extends _0x331d01{['_editing'];['_controller']=null;static get['requires'](){return[_0x51643a,o];}constructor(_0x117a9a){super(_0x117a9a),this['_editing']=_0x117a9a['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2bc67c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2bc67c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5bc8ea,..._0x150875}){return _0x5c8d28(_0x5bc8ea,_0x150875);}static['getInfo'](_0x22523b,_0x13bcd5){return _0x4caba5(_0x22523b,_0x13bcd5);}}class f extends _0x2f77e5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4c4e66,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x287c96=this['editor'];if(!!!_0x287c96['config']['get']('uploadcare'))return;_0x287c96['plugins']['get'](_0x4c4e66)['createUploadAdapter']=_0x2f217b=>new k(_0x2f217b,_0x287c96),_0x287c96['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3d4b8b,{imageElement:_0x513752,data:_0x2a667e})=>{_0x287c96['model']['change'](_0x4597c7=>{_0x4597c7['setAttribute']('uploadcareImageId',_0x2a667e['uploadcareImageId'],_0x513752);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x533f31,_0x524f55){this['loader']=_0x533f31,this['editor']=_0x524f55,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2a9f30=await this['loader']['file'];return j['upload']({'file':_0x2a9f30,'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':_0x4bdc51=>{_0x4bdc51&&_0x4bdc51['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4bdc51['value']);}})['then'](async _0x43cd82=>{const {imageFallbackUrl:_0x51ca29,imageSources:_0x333817}=C(_0x43cd82['cdnUrl'],_0x43cd82['imageInfo']['width']);return{'uploadcareImageId':_0x43cd82['uuid'],'default':_0x51ca29,'sources':_0x333817};})['catch'](()=>{const _0x5aaed3=t('Cannot\x20upload\x20file:')+('\x20'+_0x2a9f30['name']+'.');return Promise['reject'](_0x5aaed3);});}['abort'](){this['controller']['abort']();}}class o extends _0x2f77e5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x51643a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x580fc3){super(_0x580fc3),this['ucContextId']=_0x2a311a();}['init'](){const _0x25c0d0=this['editor'];_0x25c0d0['commands']['add']('uploadcare',new w(_0x25c0d0));}['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 _0x433aa4=_0x49f1eb['document']['querySelector']('input[uploadcare-file-input]');_0x433aa4&&_0x433aa4['remove']();}),async function(_0x1e5c2a){const _0x47d75e=_0x56acbf([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x485465=0x535f8c3a,_0x5aa92a=0x5358f692^_0x485465,_0x13294c=window[_0x56acbf([0x44,0x61,0x74,0x65])][_0x56acbf([0x6e,0x6f,0x77])](),_0x4b5956=_0x1e5c2a[_0x56acbf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b2720=new window[(_0x56acbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cf2d0=>{_0x4b5956[_0x56acbf([0x6f,0x6e,0x63,0x65])](_0x56acbf([0x72,0x65,0x61,0x64,0x79]),_0x5cf2d0);}),_0x174419={[_0x56acbf([0x6b,0x74,0x79])]:_0x56acbf([0x45,0x43]),[_0x56acbf([0x75,0x73,0x65])]:_0x56acbf([0x73,0x69,0x67]),[_0x56acbf([0x63,0x72,0x76])]:_0x56acbf([0x50,0x2d,0x32,0x35,0x36]),[_0x56acbf([0x78])]:_0x56acbf([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]),[_0x56acbf([0x79])]:_0x56acbf([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]),[_0x56acbf([0x61,0x6c,0x67])]:_0x56acbf([0x45,0x53,0x32,0x35,0x36])},_0x50cf0c=_0x4b5956[_0x56acbf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x56acbf([0x67,0x65,0x74])](_0x56acbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30639f(){let _0x1812a6,_0x2221fb=null,_0x535257=null;try{if(_0x50cf0c==_0x56acbf([0x47,0x50,0x4c]))return _0x56acbf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1812a6=_0x364f72(),!_0x1812a6)return _0x56acbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1812a6[_0x56acbf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x535257=_0xc0942c(_0x1812a6[_0x56acbf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1812a6[_0x56acbf([0x6a,0x74,0x69])])),await _0xe8c9f3()?_0x4bff9b()?_0x3ceacc()?_0x56acbf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35b91e()?(_0x1812a6[_0x56acbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56acbf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2221fb=_0x239187(_0x56acbf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1812a6[_0x56acbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56acbf([0x74,0x72,0x69,0x61,0x6c])&&(_0x2221fb=_0x239187(_0x56acbf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46648f()):_0x56acbf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x56acbf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x56acbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x56acbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ceacc(){const _0x12d5dc=[_0x56acbf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x56acbf([0x74,0x72,0x69,0x61,0x6c])][_0x56acbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1812a6[_0x56acbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13294c/0x3e8:0xe10*_0x5aa92a;return _0x1812a6[_0x56acbf([0x65,0x78,0x70])]<_0x12d5dc;}function _0x4bff9b(){const _0x47086d=_0x1812a6[_0x56acbf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x47086d&&(!!_0x47086d[_0x56acbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56acbf([0x2a]))||!!_0x47086d[_0x56acbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56acbf([0x55,0x50,0x4c,0x43])));}function _0x35b91e(){const _0x47ac8a=_0x1812a6[_0x56acbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47ac8a||0x0==_0x47ac8a[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3077c3}=new URL(window[_0x56acbf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47ac8a[_0x56acbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3077c3))return!0x0;const _0x2270b0=_0x3077c3[_0x56acbf([0x73,0x70,0x6c,0x69,0x74])](_0x56acbf([0x2e]));return _0x47ac8a[_0x56acbf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20f2af=>_0x20f2af[_0x56acbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56acbf([0x2a])))[_0x56acbf([0x6d,0x61,0x70])](_0x40566b=>_0x40566b[_0x56acbf([0x73,0x70,0x6c,0x69,0x74])](_0x56acbf([0x2e])))[_0x56acbf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ea67e=>_0x3ea67e[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2270b0[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56acbf([0x6d,0x61,0x70])](_0x2ead7d=>Array(_0x2270b0[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ead7d[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56acbf([0x66,0x69,0x6c,0x6c])](_0x2ead7d[0x0]===_0x56acbf([0x2a])?_0x56acbf([0x2a]):'')[_0x56acbf([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ead7d))[_0x56acbf([0x73,0x6f,0x6d,0x65])](_0x5ce995=>_0x2270b0[_0x56acbf([0x65,0x76,0x65,0x72,0x79])]((_0x551ab8,_0x54faee)=>_0x5ce995[_0x54faee]===_0x551ab8||_0x5ce995[_0x54faee]===_0x56acbf([0x2a])));}function _0x46648f(){return _0x2221fb&&_0x535257?new window[(_0x56acbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x383bb2,_0x278b4f)=>{_0x2221fb[_0x56acbf([0x74,0x68,0x65,0x6e])](_0x383bb2,_0x278b4f),_0x535257[_0x56acbf([0x74,0x68,0x65,0x6e])](_0x47e4ee=>{_0x47e4ee!=_0x56acbf([0x56,0x61,0x6c,0x69,0x64])&&_0x383bb2(_0x47e4ee);},_0x278b4f);}):_0x2221fb||_0x535257||_0x56acbf([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc0942c(_0x5966e3,_0xa7d627){return new window[(_0x56acbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14d793=>{if(_0x5b50de())return _0x14d793(_0x56acbf([0x56,0x61,0x6c,0x69,0x64]));_0x598be2(),_0x4b5956[_0x56acbf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x56acbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x568f39=!0x1;const _0x6795ca=_0x2a311a();function _0x2a2402(_0x381ca6){return!!_0x381ca6&&(typeof _0x381ca6===_0x56acbf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x381ca6===_0x56acbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x381ca6[_0x56acbf([0x74,0x68,0x65,0x6e])]===_0x56acbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x381ca6[_0x56acbf([0x63,0x61,0x74,0x63,0x68])]===_0x56acbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x30e722(_0xb851b6){_0x5894e5(_0xb851b6)[_0x56acbf([0x74,0x68,0x65,0x6e])](_0xdbce7c=>{if(!_0xdbce7c||_0xdbce7c[_0x56acbf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x56acbf([0x6f,0x6b]))return _0x56acbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x299120(_0x5cba20(_0x6795ca+_0xa7d627))!=_0xdbce7c[_0x56acbf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x56acbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x56acbf([0x56,0x61,0x6c,0x69,0x64]);})[_0x56acbf([0x74,0x68,0x65,0x6e])](_0x5d9a25=>(_0x494abb(),_0x5d9a25),()=>{const _0x4cda49=_0x5a30a2();return null==_0x4cda49?(_0x494abb(),_0x56acbf([0x56,0x61,0x6c,0x69,0x64])):_0x56acbf(_0x13294c-_0x4cda49>(0x7753083a^_0x485465)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x56acbf([0x74,0x68,0x65,0x6e])](_0x14d793)[_0x56acbf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x14d793(_0x56acbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a194f=0x536962ba^_0x485465;function _0x494abb(){const _0x4a6f31=_0x56acbf([0x6c,0x6c,0x63,0x74,0x2d])+_0x299120(_0x5cba20(_0x5966e3)),_0x4439e1=_0x9acf3d(_0x299120(window[_0x56acbf([0x4d,0x61,0x74,0x68])][_0x56acbf([0x63,0x65,0x69,0x6c])](_0x13294c/_0x5a194f)));window[_0x56acbf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56acbf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a6f31,_0x4439e1);}function _0x5a30a2(){const _0x3c8438=_0x56acbf([0x6c,0x6c,0x63,0x74,0x2d])+_0x299120(_0x5cba20(_0x5966e3)),_0x1b2b12=window[_0x56acbf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56acbf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c8438);return _0x1b2b12?window[_0x56acbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9acf3d(_0x1b2b12),0x10)*_0x5a194f:null;}function _0x5894e5(_0x4986c1){return new window[(_0x56acbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b24b2,_0x437062)=>{_0x4986c1[_0x56acbf([0x74,0x68,0x65,0x6e])](_0x4b24b2,_0x437062),window[_0x56acbf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x437062,0x535e58fa^_0x485465);});}}_0x4b5956[_0x56acbf([0x6f,0x6e])](_0x56acbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3564aa,_0x10d517)=>{if(_0x10d517[0x0]!=_0x5966e3)return _0x14d793(_0x56acbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10d517[0x1]={..._0x10d517[0x1],[_0x56acbf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6795ca};},{[_0x56acbf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56acbf([0x68,0x69,0x67,0x68])}),_0x4b5956[_0x56acbf([0x6f,0x6e])](_0x56acbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b5aac=>{_0x2a2402(_0x4b5aac[_0x56acbf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x568f39=!0x0,_0x30e722(_0x4b5aac[_0x56acbf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x56acbf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56acbf([0x6c,0x6f,0x77])}),_0x2b2720[_0x56acbf([0x74,0x68,0x65,0x6e])](()=>{_0x568f39||_0x14d793(_0x56acbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b50de(){return _0x4b5956[_0x56acbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56acbf([0x76,0x69,0x65,0x77])][_0x56acbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x56acbf([0x61,0x75,0x74,0x6f]);}function _0x598be2(){_0x4b5956[_0x56acbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56acbf([0x76,0x69,0x65,0x77])][_0x56acbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56acbf([0x61,0x75,0x74,0x6f]);}}function _0x239187(_0x47d674){const _0x57f007=[new window[(_0x56acbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x386cd1=>setTimeout(_0x386cd1,0x5356b2f6^_0x485465)),_0x2b2720[_0x56acbf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x56acbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a4d3d=>{let _0x4ee7bc=0x0;_0x4b5956[_0x56acbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x56acbf([0x6f,0x6e])](_0x56acbf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e5188,_0x5de5a0)=>{_0x5de5a0[0x0][_0x56acbf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4ee7bc++,_0x4ee7bc==(0x535f8dc2^_0x485465)&&(_0x4a4d3d(),_0x5e5188[_0x56acbf([0x6f,0x66,0x66])]());});}))];return window[_0x56acbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56acbf([0x72,0x61,0x63,0x65])](_0x57f007)[_0x56acbf([0x74,0x68,0x65,0x6e])](()=>_0x47d674);}async function _0xec79f4(){await _0x2b2720,_0x4b5956[_0x56acbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x56acbf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x476c76,_0x4b5956[_0x56acbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x56acbf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x476c76,_0x4b5956[_0x56acbf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x56acbf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x910c13(_0x213319){const _0x2e8077=_0x14b7b4();_0x4b5956[_0x2e8077]=_0x56acbf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x213319,_0x213319!=_0x56acbf([0x56,0x61,0x6c,0x69,0x64])&&_0xec79f4();}function _0x14b7b4(){const _0x2a8629=window[_0x56acbf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x56acbf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x56acbf([0x6e,0x6f,0x77])]())[_0x56acbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x56acbf([0x2e]),'');let _0x869643=_0x56acbf([0x68]);for(let _0x36b3d0=0x0;_0x36b3d0<_0x2a8629[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36b3d0+=0x2){let _0x383183=window[_0x56acbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a8629[_0x56acbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36b3d0,_0x36b3d0+0x2));_0x383183>=_0x47d75e[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x383183-=_0x47d75e[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x869643+=_0x47d75e[_0x383183];}return _0x869643;}function _0x364f72(){const _0x55f180=_0x50cf0c[_0x56acbf([0x73,0x70,0x6c,0x69,0x74])](_0x56acbf([0x2e]));if(0x3!=_0x55f180[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa136e8(_0x55f180[0x1]);function _0xa136e8(_0xf53983){const _0x29cb9f=_0x1f2ee3(_0xf53983);return _0x29cb9f&&_0x17c487()?_0x29cb9f:null;function _0x17c487(){const _0x35f251=_0x29cb9f[_0x56acbf([0x6a,0x74,0x69])],_0x42764b=window[_0x56acbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35f251[_0x56acbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35f251[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x19da14={..._0x29cb9f,[_0x56acbf([0x6a,0x74,0x69])]:_0x35f251[_0x56acbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x35f251[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x19da14[_0x56acbf([0x76,0x63])],_0x5cba20(_0x19da14)==_0x42764b;}}}async function _0xe8c9f3(){let _0x82f783=!0x0;try{const _0x18519a=_0x50cf0c[_0x56acbf([0x73,0x70,0x6c,0x69,0x74])](_0x56acbf([0x2e])),[_0x3a99ca,_0x412215,_0x3d2a94]=_0x18519a;return _0x5b9a9c(_0x3a99ca),await _0x118e87(_0x3a99ca,_0x412215,_0x3d2a94),_0x82f783;}catch{return!0x1;}function _0x5b9a9c(_0x3991c2){const _0x9c72f1=_0x1f2ee3(_0x3991c2);_0x9c72f1&&_0x9c72f1[_0x56acbf([0x61,0x6c,0x67])]==_0x56acbf([0x45,0x53,0x32,0x35,0x36])||(_0x82f783=!0x1);}async function _0x118e87(_0xabbe48,_0x18fb07,_0x630d9b){const _0x4a5124=window[_0x56acbf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x56acbf([0x66,0x72,0x6f,0x6d])](_0x34eea5(_0x630d9b),_0x32c19c=>_0x32c19c[_0x56acbf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x270eef=new window[(_0x56acbf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x56acbf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xabbe48+_0x56acbf([0x2e])+_0x18fb07),_0x4a3edb=window[_0x56acbf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x56acbf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a3edb)return;const _0x55faae=await _0x4a3edb[_0x56acbf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x56acbf([0x6a,0x77,0x6b]),_0x174419,{[_0x56acbf([0x6e,0x61,0x6d,0x65])]:_0x56acbf([0x45,0x43,0x44,0x53,0x41]),[_0x56acbf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x56acbf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x56acbf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a3edb[_0x56acbf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x56acbf([0x6e,0x61,0x6d,0x65])]:_0x56acbf([0x45,0x43,0x44,0x53,0x41]),[_0x56acbf([0x68,0x61,0x73,0x68])]:{[_0x56acbf([0x6e,0x61,0x6d,0x65])]:_0x56acbf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x55faae,_0x4a5124,_0x270eef)||(_0x82f783=!0x1);}}function _0x1f2ee3(_0x1ce7a2){return _0x1ce7a2[_0x56acbf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x56acbf([0x65,0x79]))?JSON[_0x56acbf([0x70,0x61,0x72,0x73,0x65])](_0x34eea5(_0x1ce7a2)):null;}function _0x34eea5(_0x3bffc1){return window[_0x56acbf([0x61,0x74,0x6f,0x62])](_0x3bffc1[_0x56acbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x56acbf([0x2b]))[_0x56acbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x56acbf([0x2f])));}function _0x5cba20(_0x1c7e87){let _0x437dab=0x1505;function _0x4ffa0d(_0x45a3fa){for(let _0x4ff49c=0x0;_0x4ff49c<_0x45a3fa[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ff49c++){const _0x7417cd=_0x45a3fa[_0x56acbf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ff49c);_0x437dab=(_0x437dab<<0x5)+_0x437dab+_0x7417cd,_0x437dab&=_0x437dab;}}function _0x5a8851(_0x5d935c){Array[_0x56acbf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d935c)?_0x5d935c[_0x56acbf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a8851):_0x5d935c&&typeof _0x5d935c==_0x56acbf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x56acbf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d935c)[_0x56acbf([0x73,0x6f,0x72,0x74])]()[_0x56acbf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c2c90,_0xae17fa])=>{_0x4ffa0d(_0x2c2c90),_0x5a8851(_0xae17fa);}):_0x4ffa0d(window[_0x56acbf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d935c));}return _0x5a8851(_0x1c7e87),_0x437dab>>>0x0;}function _0x299120(_0x5703ba){return _0x5703ba[_0x56acbf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x56acbf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x56acbf([0x30]));}function _0x9acf3d(_0x5338ad){return _0x5338ad[_0x56acbf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x56acbf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x56acbf([0x6a,0x6f,0x69,0x6e])]('');}function _0x476c76(){}function _0x56acbf(_0x5b1b44){return _0x5b1b44['map'](_0x4bcef0=>String['fromCharCode'](_0x4bcef0))['join']('');}_0x910c13(await _0x30639f());}(this);}['_initSchema'](){const _0x4a00f3=this['editor']['model']['schema'];_0x4a00f3['isRegistered']('imageBlock')&&_0x4a00f3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4a00f3['isRegistered']('imageInline')&&_0x4a00f3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xfbdaf6=this['editor'];_0xfbdaf6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xfbdaf6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xb37e4a=>_0xb37e4a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x15ce10=_0xfbdaf6['commands']['get']('replaceImageSource');_0x15ce10&&this['listenTo'](_0x15ce10,'cleanupImage',(_0x1ac75a,[_0x4cd310,_0x7d555d])=>{_0x4cd310['removeAttribute']('uploadcareImageId',_0x7d555d);});}['_initConfig'](){const _0xcdf1bc=this['editor']['config']['get']('uploadcare.uploader')||{},_0x28f7cc=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xdce142(_0x49f1eb['document'],'uc-config',{..._0xcdf1bc,'pubkey':_0x28f7cc,'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']=_0xbcdea=>{if('closeMax'==_0xbcdea)return'#uc-icon-arrow-down';},_0x49f1eb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xdce142(_0x49f1eb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x49f1eb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4e4460=this['editor']['commands']['get']('insertImage');_0x4e4460&&this['listenTo'](_0x4e4460,'execute',()=>{const _0x38ecbd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x38ecbd&&_0x38ecbd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x38ecbd);});});const _0x1a9557=this['editor']['commands']['get']('uploadcareImageReplace');_0x1a9557&&this['listenTo'](_0x1a9557,'execute',()=>{const _0x36b4eb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x36b4eb&&_0x36b4eb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x36b4eb);});});}}class tt extends _0x2f77e5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x634679){super(_0x634679),_0x634679['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3225ce['defineComponents'](_0x3225ce),this['_defineLocale']();}['_defineLocale'](){const _0x3d2127=this['editor']['config']['get']('uploadcare.locale'),_0x249980=this['editor']['locale']['contentLanguage'];_0x3d2127&&_0x3225ce['defineLocale'](_0x249980,_0x3d2127);}}class ii extends _0x178ac9{constructor(_0x2b94de){super(_0x2b94de);const t=_0x2b94de['t'],_0x557af4=this['bindTemplate'],_0x47e9da=new _0x7b70d3();_0x47e9da['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':[_0x47e9da,{'text':_0x557af4['to']('imageUploadProgress',_0x2af2f8=>t('Loading\x20image...')+'\x20('+(_0x2af2f8||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 _0x178ac9{constructor(_0x30cf9f){super(_0x30cf9f);const t=_0x30cf9f['t'];this['set']('errorType',null);const _0x3023dc=new _0x51a914(_0x30cf9f);_0x3023dc['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3023dc['withText']=!0x0,_0x3023dc['class']='ck-button-action',_0x3023dc['on']('execute',()=>{this['fire']('retry');}),_0x3023dc['bind']('isVisible')['to'](this,'errorType',_0x40302f=>'NotFound'!==_0x40302f);const _0x1c7e25=new _0x5cf7bc();_0x1c7e25['content']=_0x475554,_0x1c7e25['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3d15e5=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':[_0x1c7e25,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3d15e5['to']('errorType',_0x3a7001=>t('NotFound'!==_0x3a7001?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3023dc]},{'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 _0x178ac9{constructor(_0x45fcd3,_0x20947e){super(_0x45fcd3);const _0x20cbc0=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x20947e,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x20cbc0['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4a03b8,_0x1781ea,_0xea4c2c){super(_0x4a03b8),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4a03b8),this['_errorView']=new ti(_0x4a03b8),this['_editingView']=new ei(_0x4a03b8,_0xea4c2c),this['_focusableView']=new _0x178ac9(_0x4a03b8),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1781ea),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'],_0x2c0299=>{this['_addUploadcareImageEditorListeners'](_0x2c0299);});}),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'](_0x23c912,_0x121851){const _0x99873b='uc-cloud-image-editor',_0x22f64f=_0x23c912['querySelector'](_0x99873b);if(_0x22f64f)return _0x121851(_0x22f64f);const _0x428bb5=new MutationObserver(_0x4526e8=>{const _0x5c1b5f=_0x4526e8['filter'](_0x4b7d8a=>_0x4b7d8a['target']===_0x23c912&&_0x4b7d8a['addedNodes']['length']>0x0&&_0x4b7d8a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x99873b);_0x5c1b5f['length']&&(_0x428bb5['disconnect'](),_0x121851(_0x5c1b5f[0x0]['addedNodes'][0x0]));});_0x428bb5['observe'](_0x23c912,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x13c37f){_0x13c37f['addEventListener']('apply',_0x1787a4=>{this['fire']('apply',{'imageSrc':_0x1787a4['detail']['cdnUrl']});}),_0x13c37f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x40249e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x32742d,_0x7aaddb,_0x45a164){super(),this['_editor']=_0x32742d,this['_dialog']=_0x7aaddb,this['_imageElement']=_0x45a164,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 _0x59e16c=this['_imageElement'],_0x428e82=_0x59e16c['getAttribute']('uploadcareImageId'),_0x207ab0=_0x59e16c['getAttribute']('src');if(_0x428e82)await this['_loadImageInfo'](_0x428e82,_0x207ab0);else{if(this['_imageCache']['has'](_0x207ab0)){const _0x4f8f68=this['_imageCache']['get'](_0x207ab0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f8f68['url'],this['imageDimension']=_0x4f8f68['dimension'],this['imageId']=_0x4f8f68['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x20efbf}=this['_editor'],t=_0x20efbf['t'],_0x538216=new X(_0x20efbf,this['imageStatus'],this['_attributes']);_0x538216['bind']('status')['to'](this,'imageStatus'),_0x538216['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x538216['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x538216['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x538216,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5a249f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x538216,'position':_0x136fe8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x538216['focus']();},'onHide':()=>{_0x538216['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4c6310=>!A(_0x4c6310,_0x538216['element'])}});}['_loadImageInfo'](_0x2e8dff,_0x3bd8bc){return j['getInfo'](_0x2e8dff,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x275988=>{const {width:_0x275f33,height:_0x58188d}=_0x275988['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3bd8bc,this['imageDimension']={'width':_0x275f33,'height':_0x58188d},this['imageId']=_0x2e8dff;})['catch'](_0x5a2982=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a2982['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x131cb3,_0x2261d9){return this['_getImageAsFile'](_0x131cb3)['then'](_0x223492=>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':_0x2261d9['signal'],'file':_0x223492,'onProgress':_0x7a3a6d=>{_0x7a3a6d&&_0x7a3a6d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x7a3a6d['value']));}}))['then'](_0x4c176b=>{const {width:_0x38a2f1,height:_0x5de7ad}=_0x4c176b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c176b['cdnUrl'],this['imageDimension']={'width':_0x38a2f1,'height':_0x5de7ad},this['imageId']=_0x4c176b['uuid'],this['imageUploadProgress']=null;const _0x53bc9b=_0x131cb3['getAttribute']('src');this['_imageCache']['set'](_0x53bc9b,{'id':_0x4c176b['uuid'],'url':_0x4c176b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3e2b47=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e2b47['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x10e5cf,_0x136726){_0x10e5cf['on']('apply',(_0x2b2517,_0x268c28)=>{this['_replaceImage'](_0x136726,_0x268c28['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x10e5cf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x10e5cf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2406d2,_0x430fd8,_0x146e12){const _0x2b3bfb=this['_editor'],{width:_0x118843,height:_0x283133}=S(_0x430fd8,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x402a69,imageSources:_0x5228df}=C(_0x430fd8,_0x118843);_0x2b3bfb['model']['change'](_0x41b2bc=>{if('$graveyard'===_0x2406d2['root']['rootName']){_0x2b3bfb['execute']('insertImage',{'imageType':_0x2406d2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2406d2['getAttributes']()),'uploadcareImageId':_0x146e12,'src':_0x402a69,'sources':_0x5228df,'width':_0x118843,'height':_0x283133}});const _0x3876e1=_0x2406d2['getChildren']();_0x2406d2=_0x2b3bfb['model']['document']['selection']['getSelectedElement']();for(const _0x3bca53 of _0x3876e1)_0x41b2bc['append'](_0x41b2bc['cloneElement'](_0x3bca53),_0x2406d2);}else _0x41b2bc['setSelection'](_0x2406d2,'on'),_0x2b3bfb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2406d2['getAttributes']()),'uploadcareImageId':_0x146e12,'src':_0x402a69,'sources':_0x5228df,'width':_0x118843,'height':_0x283133},_0x2406d2);_0x41b2bc['setSelection'](_0x2406d2,'on');});}async['_getImageAsFile'](_0xbd51ac){const _0x35c633=_0x49f1eb['window'],_0x20f253=_0x49f1eb['document']['location']['href'],_0x7a3fca=new _0x35c633['URL'](_0xbd51ac['getAttribute']('src'),_0x20f253);if('data:'===_0x7a3fca['protocol']){const _0xcacf10=_0x7a3fca['href']['split'](','),_0x1e5bbc=_0xcacf10[0x0]['match'](/:(.*?);/)[0x1],_0x52259e=_0x1e5bbc['split']('/')[0x1],_0x4a7cae=_0x35c633['atob'](_0xcacf10[_0xcacf10['length']-0x1]);let _0x2199f0=_0x4a7cae['length'];const _0xc970d8=new _0x35c633['Uint8Array'](_0x2199f0);for(;_0x2199f0--;)_0xc970d8[_0x2199f0]=_0x4a7cae['charCodeAt'](_0x2199f0);return new _0x35c633['File']([_0xc970d8],'image.'+_0x52259e,{'type':_0x1e5bbc});}const _0x4b1d31=_0x7a3fca['href']['split']('/'),_0x3548e5=_0x4b1d31[_0x4b1d31['length']-0x1],_0x9b90de=_0x3548e5['split']('.')[0x1];return _0x35c633['fetch'](_0x7a3fca['href'])['then'](_0x53edb0=>_0x53edb0['clone']()['blob']())['then'](_0x941748=>new _0x35c633['File']([_0x941748],_0x3548e5,{'type':'image/'+_0x9b90de}));}}class O extends _0x331d01{['imageEditController'];static get['requires'](){return[_0x51643a];}['_isEditable'];constructor(_0x4f2096){super(_0x4f2096),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xe3442){const _0x10bbff=G(_0xe3442);return _0x1bf6a1=>!(!_0x1bf6a1||!_0x1bf6a1['is']('element','imageBlock')&&!_0x1bf6a1['is']('element','imageInline'))&&(!!_0x1bf6a1['hasAttribute']('uploadcareImageId')||!!_0x1bf6a1['hasAttribute']('src')&&_0x10bbff(_0x1bf6a1['getAttribute']('src')));}(_0x4f2096['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xc18893=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xc18893);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3f423e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3f423e&&(_0x3f423e['is']('element','imageBlock')||_0x3f423e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x51643a),_0x3f423e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x331d01{['refresh'](){const _0x161008=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x161008&&(_0x161008['is']('element','imageBlock')||_0x161008['is']('element','imageInline')));}['execute'](_0x141578){const _0x31c5af=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5c3a9e=>{_0x5c3a9e['setAttributes'](_0x141578,_0x31c5af),_0x5c3a9e['removeAttribute']('srcset',_0x31c5af),_0x5c3a9e['removeAttribute']('sizes',_0x31c5af);});}}class m extends _0x2f77e5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xb0e3c9,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xf28d2}=this;_0xf28d2['commands']['add']('uploadcareImageEdit',new O(_0xf28d2)),_0xf28d2['commands']['add']('uploadcareImageReplace',new R(_0xf28d2));}}class g extends _0x2f77e5{['_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 _0x259148=this['editor'];_0x259148['ui']['componentFactory']['add']('uploadcareImageEdit',_0x163583=>{const _0x3ded03=_0x259148['commands']['get']('uploadcareImageEdit'),_0x14c7cd=new _0x51a914(_0x163583),t=_0x163583['t'];return _0x14c7cd['set']({'icon':_0x5a249f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x14c7cd['bind']('isEnabled')['to'](_0x3ded03),_0x14c7cd['bind']('isOn')['to'](_0x3ded03,'isActive'),this['listenTo'](_0x14c7cd,'execute',()=>{_0x259148['execute']('uploadcareImageEdit'),_0x259148['editing']['view']['focus']();}),_0x14c7cd;}),this['_initConfig']();}['_initConfig'](){const _0xef7938=_0xdce142(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xef7938),this['listenTo'](this['editor'],'destroy',()=>{_0xef7938['remove']();});}}class et extends _0x2f77e5{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 _0x5529e1,Command as _0xdcaedd}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x316436,IconGooglePhotos as _0x4fe954,IconGoogleDrive as _0x4c5d44,IconFacebook as _0x18b380,IconDropbox as _0x22fa9b,IconUploadcareLink as _0x434de6,IconUploadcareImageUpload as _0xa8bd31,IconError as _0x4699c2,IconUploadcareImageEdit as _0x3a33ff}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5ca8b5,MenuBarMenuListItemButtonView as _0x3b8fa2,View as _0x3cc980,FocusCycler as _0x3276ce,Dialog as _0x2f6f99,DialogViewPosition as _0x266679,SpinnerView as _0x42c23f,IconView as _0x2d903e,Notification as _0x1dd87f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x49dccd,DomEmitterMixin as _0x5921bb,global as _0x5881a7,getAncestors as _0x5d53ff,ObservableMixin as _0x1859a3,uid as _0x14e9d0,createElement as _0x402594}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2d24d3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1319c5,info as _0x113197}from'@uploadcare/upload-client';import*as _0x2ff8f6 from'@uploadcare/file-uploader';var i=function(_0x2eef4c){return _0x2eef4c['Local']='local',_0x2eef4c['URL']='url',_0x2eef4c['Dropbox']='dropbox',_0x2eef4c['GDrive']='gdrive',_0x2eef4c['Facebook']='facebook',_0x2eef4c['GPhotos']='gphotos',_0x2eef4c['OneDrive']='onedrive',_0x2eef4c;}({});function _(_0x16676b,_0x229345,_0x2bba11){const t=_0x16676b['t'],_0x53ceb9=_0x16676b['t'];switch(_0x229345){case i['Local']:return{'text':_0x53ceb9('Insert'===_0x2bba11?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x53ceb9('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2bba11?_0x53ceb9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x53ceb9('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2bba11?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2bba11?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2bba11?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2bba11?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2bba11?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x229345;}}class e extends _0x5529e1{['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 _0x65a859=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x364c09;for(const _0x14f53b in _0x65a859){const _0x2d6a11=_0x14f53b,_0x200b09=_0x65a859[_0x2d6a11];if('uploadcareLicenseKeyValid'==_0x200b09||'uploadcareLicenseKeyInvalid'==_0x200b09||'uploadcareLicenseKeyExpired'==_0x200b09||'uploadcareLicenseKeyDomainLimit'==_0x200b09||'uploadcareLicenseKeyNotAllowed'==_0x200b09||'uploadcareLicenseKeyEvaluationLimit'==_0x200b09||'uploadcareLicenseKeyTrialLimit'==_0x200b09||'uploadcareLicenseKeyUsageLimit'==_0x200b09){delete _0x65a859[_0x2d6a11],_0x364c09=_0x200b09,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x364c09&&_0x65a859['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x364c09&&_0x65a859['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x364c09&&_0x65a859['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x364c09&&_0x65a859['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x364c09&&_0x65a859['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x364c09&&_0x65a859['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x364c09&&_0x65a859['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3f93e0}=this,_0x27ed9c=_0x3f93e0['commands']['get']('uploadcare');if(!_0x27ed9c)return;const _0x1fa79b=this['_normalizeConfigSourceList'](_0x3f93e0['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1b611a,_0x3f6ae7)=>{const _0x31b397=this['_getIntegrationKey'](_0x3f6ae7['type']);return _0x1b611a[_0x31b397]||(_0x1b611a[_0x31b397]=[]),_0x1b611a[_0x31b397]['push'](_0x3f6ae7),_0x1b611a;},{});_0x3f93e0['plugins']['has']('ImageInsertUI')&&_0x3f93e0['commands']['get']('uploadcare')&&Object['entries'](_0x1fa79b)['forEach'](([_0xe51bc1,_0x411d55])=>{_0x3f93e0['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xe51bc1,'observable':()=>_0x27ed9c,'buttonViewCreator':()=>this['_createToolbarButton'](_0x411d55),'formViewCreator':()=>this['_createDropdownButtons'](_0x411d55),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x411d55),'override':'assetManager'!==_0xe51bc1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3d0d35){const {locale:_0x476520}=this['editor'];return _0x3d0d35['map'](_0x8959c9=>{const _0x4d271e=_(_0x476520,_0x8959c9,'Insert');switch(_0x8959c9){case i['Local']:return{'icon':_0xa8bd31,'type':i['Local'],..._0x4d271e};case i['URL']:return{'icon':_0x434de6,'type':i['URL'],..._0x4d271e};case i['Dropbox']:return{'icon':_0x22fa9b,'type':i['Dropbox'],..._0x4d271e};case i['Facebook']:return{'icon':_0x18b380,'type':i['Facebook'],..._0x4d271e};case i['GDrive']:return{'icon':_0x4c5d44,'type':i['GDrive'],..._0x4d271e};case i['GPhotos']:return{'icon':_0x4fe954,'type':i['GPhotos'],..._0x4d271e};case i['OneDrive']:return{'icon':_0x316436,'type':i['OneDrive'],..._0x4d271e};}});}['_getIntegrationKey'](_0x2895dd){switch(_0x2895dd){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x560a23,_0x40b591){const _0x121656=this['editor'],_0x54509c=new _0x560a23(_0x121656['locale']),_0x37e2eb=_0x121656['commands']['get']('uploadcare');return _0x54509c['bind']('isEnabled')['to'](_0x37e2eb),_0x54509c['on']('execute',()=>{_0x37e2eb['execute'](_0x40b591);}),_0x54509c;}['_createToolbarButton'](_0x166d9e){const {locale:_0x1a2492}=this['editor'],_0x4b1bb4=this['editor']['plugins']['get']('ImageInsertUI'),_0xc441bf=_0x166d9e[0x0],_0x5433d0=this['_createButton'](_0x5ca8b5,_0xc441bf['type']);return _0x5433d0['icon']=_0xc441bf['icon'],_0x5433d0['bind']('label')['to'](_0x4b1bb4,'isImageSelected',_0x370ad0=>_(_0x1a2492,_0xc441bf['type'],_0x370ad0?'Replace':'Insert')['text']),_0x5433d0['tooltip']=!0x0,_0x5433d0;}['_createDropdownButtons'](_0x59de79){const {locale:_0x4a71f4}=this['editor'],_0x5eb89d=this['editor']['plugins']['get']('ImageInsertUI');return _0x59de79['map'](_0x15805c=>{const _0x4bccbe=this['_createButton'](_0x5ca8b5,_0x15805c['type']);return _0x4bccbe['withText']=!0x0,_0x4bccbe['icon']=_0x15805c['icon'],_0x4bccbe['bind']('label')['to'](_0x5eb89d,'isImageSelected',_0x255ab2=>_(_0x4a71f4,_0x15805c['type'],_0x255ab2?'Replace':'Insert')['text']),_0x4bccbe;});}['_createMenuBarButtons'](_0x202664){return _0x202664['map'](_0x5d8140=>{const _0x1b5d2f=this['_createButton'](_0x3b8fa2,_0x5d8140['type']);return _0x1b5d2f['icon']=_0x5d8140['icon'],_0x1b5d2f['label']=_0x5d8140['shortText'],_0x1b5d2f;});}}class F extends _0x3cc980{['focusTracker'];['focusCycler'];constructor(_0x5c0b99){super(_0x5c0b99),this['focusTracker']=new _0x49dccd(),this['focusCycler']=new _0x3276ce({'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(_0x13d0f6,_0x264c9f){super(_0x13d0f6),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-'+_0x264c9f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1a237b,_0x64d93d){const _0x95a9de=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x384a24=>_0x384a24<=_0x64d93d)['map'](_0x3fc707=>_0x1a237b['replace'](/\/$/,'')+'/-/resize/'+_0x3fc707+'x/\x20'+_0x3fc707+'w');return{'imageFallbackUrl':_0x1a237b,'imageSources':[{'srcset':_0x95a9de['join'](',\x20'),'sizes':'(max-width:\x20'+_0x64d93d+'px)\x20100vw,\x20'+_0x64d93d+'px','type':'image/webp'}]};}function S(_0x14e0d0,_0x19f104,_0x589b8f){const _0x3d069b=_0x14e0d0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3d069b?parseInt(_0x3d069b[0x1],0xa):_0x19f104,'height':_0x3d069b?parseInt(_0x3d069b[0x2],0xa):_0x589b8f};}function p(_0x32b512,_0x42a010){const _0x242d47=new(_0x5921bb())(),_0x2bf9d1=_0x32b512['plugins']['get']('ImageUtils'),_0x23cf0d=_0x32b512['editing']['mapper']['toViewElement'](_0x42a010),_0xaf774b=_0x2bf9d1['findViewImgElement'](_0x23cf0d),_0x3a1fb5=_0x32b512['editing']['view']['domConverter']['viewToDom'](_0xaf774b),_0x28f00a=_0x42a010['getAttribute']('width'),_0x332849=_0x42a010['getAttribute']('height'),_0x19d398='image-processing';_0x32b512['editing']['view']['change'](_0x26527c=>{_0x26527c['addClass'](_0x19d398,_0x23cf0d),_0x26527c['setStyle']('aspect-ratio',_0x28f00a+'/'+_0x332849,_0xaf774b);}),_0x242d47['listenTo'](_0x3a1fb5,'load',()=>{_0x242d47['stopListening'](_0x3a1fb5,'load'),_0x32b512['editing']['view']['change'](_0x20939b=>{_0x20939b['removeClass'](_0x19d398,_0x23cf0d),_0x20939b['removeStyle']('aspect-ratio',_0xaf774b);});});}function G(_0x28e814){if(Array['isArray'](_0x28e814)){const _0x3f9ec3=_0x28e814['map'](G);return _0x1b1d32=>_0x3f9ec3['some'](_0x6195c8=>_0x6195c8(_0x1b1d32));}if('origin'==_0x28e814){const _0x1f0598=_0x5881a7['window']['location']['origin'];return _0x351cd8=>new URL(_0x351cd8,_0x5881a7['document']['baseURI'])['origin']==_0x1f0598;}return'function'==typeof _0x28e814?_0x28e814:_0x28e814 instanceof RegExp?_0xc0a448=>!(!_0xc0a448['match'](_0x28e814)&&!_0xc0a448['replace'](/^https?:\/\//,'')['match'](_0x28e814)):()=>!0x1;}function A(_0x44b03f,_0x57f5f6){return _0x5d53ff(_0x44b03f['target'])['includes'](_0x57f5f6);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1859a3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x31bd5f,_0x1ad588,_0x18aaa4){super(),this['_editor']=_0x31bd5f,this['_editing']=_0x1ad588,this['_dialog']=_0x31bd5f['plugins']['get'](_0x2f6f99),this['_api']=_0x1ad588['ctxElement']['getAPI'](),this['_type']=_0x18aaa4,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:_0x13cbae,model:_0x29bb07}=this['_editor'],_0x1f1e4f=_0x29bb07['document']['selection']['getSelectedElement'](),_0x93094=_0x1f1e4f&&(_0x1f1e4f['is']('element','imageBlock')||_0x1f1e4f['is']('element','imageInline'));this['_formView']=new x(_0x13cbae,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xa8bd31,'title':_(_0x13cbae,this['_type'],_0x93094?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x266679['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5ef481=>!A(_0x5ef481,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x50844a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3e2142=>{const _0x18b6d9=_0x50844a['length'];for(const _0x25ebe3 of _0x50844a){const _0x111b84=_0x25ebe3===_0x50844a[_0x18b6d9-0x1],{cdnUrl:_0x94e152,fileInfo:_0x2188ac}=_0x25ebe3;if(!_0x94e152||!_0x2188ac)continue;const {width:_0x57b5ca,height:_0x4ad398}=_0x2188ac['imageInfo'],_0x292487=S(_0x94e152,_0x57b5ca,_0x4ad398),_0x5042cb=C(_0x94e152,_0x292487['width']),_0x5740bb={'id':_0x2188ac['uuid'],'type':'image','attributes':{'imageDimension':_0x292487,..._0x5042cb}};this['_insertAsset'](_0x5740bb,_0x111b84,_0x3e2142);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x32eaf9=>{'idle'===_0x32eaf9['detail']['status']&&!_0x32eaf9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4cd19b,_0xfddc2a,_0x4a7b6f){const _0x2934db=this['_editor']['model']['document']['selection'],_0x1fb108=_0x2934db['getSelectedElement'](),_0x2e3252=!(!_0x1fb108||!_0x1fb108['is']('element','imageInline'));_0x4a7b6f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4cd19b,_0x2e3252),_0xfddc2a||_0x4a7b6f['setSelection'](_0x2934db['getLastPosition']());}['_insertImage'](_0x56dfac,_0x55d55f){const _0x42c4b2=this['_editor'],{imageDimension:_0x560ab8,imageFallbackUrl:_0x3118d2,imageSources:_0x1e6e74}=_0x56dfac['attributes'];_0x42c4b2['execute']('insertImage',{'imageType':_0x55d55f?'imageInline':null,'source':{'uploadcareImageId':_0x56dfac['id'],'src':_0x3118d2,'sources':_0x1e6e74,..._0x560ab8}});}}class w extends _0xdcaedd{['_editing'];['_controller']=null;static get['requires'](){return[_0x2f6f99,o];}constructor(_0xba4bac){super(_0xba4bac),this['_editing']=_0xba4bac['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x16fde2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x16fde2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x53bde3,..._0x47b149}){return _0x1319c5(_0x53bde3,_0x47b149);}static['getInfo'](_0x55fe66,_0x38cf5e){return _0x113197(_0x55fe66,_0x38cf5e);}}class f extends _0x5529e1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2d24d3,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x573b9f=this['editor'];if(!!!_0x573b9f['config']['get']('uploadcare'))return;_0x573b9f['plugins']['get'](_0x2d24d3)['createUploadAdapter']=_0x414c22=>new k(_0x414c22,_0x573b9f),_0x573b9f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3074ca,{imageElement:_0x161c2b,data:_0x4f921d})=>{_0x573b9f['model']['change'](_0x254056=>{_0x254056['setAttribute']('uploadcareImageId',_0x4f921d['uploadcareImageId'],_0x161c2b);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x54eb3c,_0x2ba5ae){this['loader']=_0x54eb3c,this['editor']=_0x2ba5ae,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x171918=await this['loader']['file'];return j['upload']({'file':_0x171918,'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':_0x3ba967=>{_0x3ba967&&_0x3ba967['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3ba967['value']);}})['then'](async _0x202387=>{const {imageFallbackUrl:_0x762db8,imageSources:_0x441f39}=C(_0x202387['cdnUrl'],_0x202387['imageInfo']['width']);return{'uploadcareImageId':_0x202387['uuid'],'default':_0x762db8,'sources':_0x441f39};})['catch'](()=>{const _0x28f374=t('Cannot\x20upload\x20file:')+('\x20'+_0x171918['name']+'.');return Promise['reject'](_0x28f374);});}['abort'](){this['controller']['abort']();}}class o extends _0x5529e1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2f6f99];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1fac1a){super(_0x1fac1a),this['ucContextId']=_0x14e9d0();}['init'](){const _0x17fc66=this['editor'];_0x17fc66['commands']['add']('uploadcare',new w(_0x17fc66));}['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 _0x25a344=_0x5881a7['document']['querySelector']('input[uploadcare-file-input]');_0x25a344&&_0x25a344['remove']();}),async function(_0x1600a9){const _0x5417f9=_0x46545e([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xe6f766=0x535f8c3a,_0x536afe=0x5358f6e2^_0xe6f766,_0x59555b=window[_0x46545e([0x44,0x61,0x74,0x65])][_0x46545e([0x6e,0x6f,0x77])](),_0x22a348=_0x1600a9[_0x46545e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa13b8b=new window[(_0x46545e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d6319=>{_0x22a348[_0x46545e([0x6f,0x6e,0x63,0x65])](_0x46545e([0x72,0x65,0x61,0x64,0x79]),_0x1d6319);}),_0x2b6755={[_0x46545e([0x6b,0x74,0x79])]:_0x46545e([0x45,0x43]),[_0x46545e([0x75,0x73,0x65])]:_0x46545e([0x73,0x69,0x67]),[_0x46545e([0x63,0x72,0x76])]:_0x46545e([0x50,0x2d,0x32,0x35,0x36]),[_0x46545e([0x78])]:_0x46545e([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]),[_0x46545e([0x79])]:_0x46545e([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]),[_0x46545e([0x61,0x6c,0x67])]:_0x46545e([0x45,0x53,0x32,0x35,0x36])},_0x588169=_0x22a348[_0x46545e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46545e([0x67,0x65,0x74])](_0x46545e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1bf528(){let _0x3fe024,_0x4e3c9c=null,_0x245f3b=null;try{if(_0x588169==_0x46545e([0x47,0x50,0x4c]))return _0x46545e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3fe024=_0x9f7f58(),!_0x3fe024)return _0x46545e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3fe024[_0x46545e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x245f3b=_0x269e99(_0x3fe024[_0x46545e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3fe024[_0x46545e([0x6a,0x74,0x69])])),await _0xa6b447()?_0x2b1664()?_0x546854()?_0x46545e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2fa9f2()?(_0x3fe024[_0x46545e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46545e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e3c9c=_0x444ab6(_0x46545e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3fe024[_0x46545e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46545e([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e3c9c=_0x444ab6(_0x46545e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34b081()):_0x46545e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46545e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46545e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x46545e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x546854(){const _0x5b40fe=[_0x46545e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46545e([0x74,0x72,0x69,0x61,0x6c])][_0x46545e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fe024[_0x46545e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59555b/0x3e8:0xe10*_0x536afe;return _0x3fe024[_0x46545e([0x65,0x78,0x70])]<_0x5b40fe;}function _0x2b1664(){const _0x4212e8=_0x3fe024[_0x46545e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4212e8&&(!!_0x4212e8[_0x46545e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46545e([0x2a]))||!!_0x4212e8[_0x46545e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46545e([0x55,0x50,0x4c,0x43])));}function _0x2fa9f2(){const _0x162d63=_0x3fe024[_0x46545e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x162d63||0x0==_0x162d63[_0x46545e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x51340c}=new URL(window[_0x46545e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x162d63[_0x46545e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51340c))return!0x0;const _0x37c7a2=_0x51340c[_0x46545e([0x73,0x70,0x6c,0x69,0x74])](_0x46545e([0x2e]));return _0x162d63[_0x46545e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26b146=>_0x26b146[_0x46545e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46545e([0x2a])))[_0x46545e([0x6d,0x61,0x70])](_0xc0bf86=>_0xc0bf86[_0x46545e([0x73,0x70,0x6c,0x69,0x74])](_0x46545e([0x2e])))[_0x46545e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f233d=>_0x1f233d[_0x46545e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x37c7a2[_0x46545e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46545e([0x6d,0x61,0x70])](_0x540236=>Array(_0x37c7a2[_0x46545e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x540236[_0x46545e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46545e([0x66,0x69,0x6c,0x6c])](_0x540236[0x0]===_0x46545e([0x2a])?_0x46545e([0x2a]):'')[_0x46545e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x540236))[_0x46545e([0x73,0x6f,0x6d,0x65])](_0x57bec9=>_0x37c7a2[_0x46545e([0x65,0x76,0x65,0x72,0x79])]((_0x1d6fde,_0x3f05df)=>_0x57bec9[_0x3f05df]===_0x1d6fde||_0x57bec9[_0x3f05df]===_0x46545e([0x2a])));}function _0x34b081(){return _0x4e3c9c&&_0x245f3b?new window[(_0x46545e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d957c,_0x4af196)=>{_0x4e3c9c[_0x46545e([0x74,0x68,0x65,0x6e])](_0x1d957c,_0x4af196),_0x245f3b[_0x46545e([0x74,0x68,0x65,0x6e])](_0xc99adc=>{_0xc99adc!=_0x46545e([0x56,0x61,0x6c,0x69,0x64])&&_0x1d957c(_0xc99adc);},_0x4af196);}):_0x4e3c9c||_0x245f3b||_0x46545e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x269e99(_0x4cfa74,_0x181fe9){return new window[(_0x46545e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20eaa9=>{if(_0x4d1059())return _0x20eaa9(_0x46545e([0x56,0x61,0x6c,0x69,0x64]));_0x55aa4c(),_0x22a348[_0x46545e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46545e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2588ab=!0x1;const _0x3eeb5d=_0x14e9d0();function _0xc77486(_0x4f60db){return!!_0x4f60db&&(typeof _0x4f60db===_0x46545e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f60db===_0x46545e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f60db[_0x46545e([0x74,0x68,0x65,0x6e])]===_0x46545e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f60db[_0x46545e([0x63,0x61,0x74,0x63,0x68])]===_0x46545e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x111b02(_0xb4632b){_0x2739cf(_0xb4632b)[_0x46545e([0x74,0x68,0x65,0x6e])](_0x2214ea=>{if(!_0x2214ea||_0x2214ea[_0x46545e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46545e([0x6f,0x6b]))return _0x46545e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x352f67(_0x527129(_0x3eeb5d+_0x181fe9))!=_0x2214ea[_0x46545e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46545e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46545e([0x56,0x61,0x6c,0x69,0x64]);})[_0x46545e([0x74,0x68,0x65,0x6e])](_0xef3823=>(_0x9f3cc6(),_0xef3823),()=>{const _0x448021=_0x4654ad();return null==_0x448021?(_0x9f3cc6(),_0x46545e([0x56,0x61,0x6c,0x69,0x64])):_0x46545e(_0x59555b-_0x448021>(0x7753083a^_0xe6f766)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46545e([0x74,0x68,0x65,0x6e])](_0x20eaa9)[_0x46545e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x20eaa9(_0x46545e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2693ef=0x536962ba^_0xe6f766;function _0x9f3cc6(){const _0x1bcef0=_0x46545e([0x6c,0x6c,0x63,0x74,0x2d])+_0x352f67(_0x527129(_0x4cfa74)),_0x3bc4a2=_0xfa010b(_0x352f67(window[_0x46545e([0x4d,0x61,0x74,0x68])][_0x46545e([0x63,0x65,0x69,0x6c])](_0x59555b/_0x2693ef)));window[_0x46545e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46545e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bcef0,_0x3bc4a2);}function _0x4654ad(){const _0x1269a8=_0x46545e([0x6c,0x6c,0x63,0x74,0x2d])+_0x352f67(_0x527129(_0x4cfa74)),_0x836609=window[_0x46545e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46545e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1269a8);return _0x836609?window[_0x46545e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfa010b(_0x836609),0x10)*_0x2693ef:null;}function _0x2739cf(_0xfae2b6){return new window[(_0x46545e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c3b17,_0x5862e7)=>{_0xfae2b6[_0x46545e([0x74,0x68,0x65,0x6e])](_0x3c3b17,_0x5862e7),window[_0x46545e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5862e7,0x535e58fa^_0xe6f766);});}}_0x22a348[_0x46545e([0x6f,0x6e])](_0x46545e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26c674,_0x198351)=>{if(_0x198351[0x0]!=_0x4cfa74)return _0x20eaa9(_0x46545e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x198351[0x1]={..._0x198351[0x1],[_0x46545e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3eeb5d};},{[_0x46545e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46545e([0x68,0x69,0x67,0x68])}),_0x22a348[_0x46545e([0x6f,0x6e])](_0x46545e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x526519=>{_0xc77486(_0x526519[_0x46545e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2588ab=!0x0,_0x111b02(_0x526519[_0x46545e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46545e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46545e([0x6c,0x6f,0x77])}),_0xa13b8b[_0x46545e([0x74,0x68,0x65,0x6e])](()=>{_0x2588ab||_0x20eaa9(_0x46545e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d1059(){return _0x22a348[_0x46545e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46545e([0x76,0x69,0x65,0x77])][_0x46545e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46545e([0x61,0x75,0x74,0x6f]);}function _0x55aa4c(){_0x22a348[_0x46545e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46545e([0x76,0x69,0x65,0x77])][_0x46545e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46545e([0x61,0x75,0x74,0x6f]);}}function _0x444ab6(_0x11426c){const _0x161ed6=[new window[(_0x46545e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39e641=>setTimeout(_0x39e641,0x5356b2f6^_0xe6f766)),_0xa13b8b[_0x46545e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46545e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25c55b=>{let _0x34a854=0x0;_0x22a348[_0x46545e([0x6d,0x6f,0x64,0x65,0x6c])][_0x46545e([0x6f,0x6e])](_0x46545e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3681cf,_0x1223c6)=>{_0x1223c6[0x0][_0x46545e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34a854++,_0x34a854==(0x535f8dc2^_0xe6f766)&&(_0x25c55b(),_0x3681cf[_0x46545e([0x6f,0x66,0x66])]());});}))];return window[_0x46545e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46545e([0x72,0x61,0x63,0x65])](_0x161ed6)[_0x46545e([0x74,0x68,0x65,0x6e])](()=>_0x11426c);}async function _0x56e81e(){await _0xa13b8b,_0x22a348[_0x46545e([0x6d,0x6f,0x64,0x65,0x6c])][_0x46545e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x557553,_0x22a348[_0x46545e([0x6d,0x6f,0x64,0x65,0x6c])][_0x46545e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x557553,_0x22a348[_0x46545e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46545e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e112d(_0x5eef71){const _0x554c09=_0x5c1ebd();_0x22a348[_0x554c09]=_0x46545e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5eef71,_0x5eef71!=_0x46545e([0x56,0x61,0x6c,0x69,0x64])&&_0x56e81e();}function _0x5c1ebd(){const _0x94f83a=window[_0x46545e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46545e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46545e([0x6e,0x6f,0x77])]())[_0x46545e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46545e([0x2e]),'');let _0x555cae=_0x46545e([0x68]);for(let _0x410d9b=0x0;_0x410d9b<_0x94f83a[_0x46545e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x410d9b+=0x2){let _0xbd82d9=window[_0x46545e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x94f83a[_0x46545e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x410d9b,_0x410d9b+0x2));_0xbd82d9>=_0x5417f9[_0x46545e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xbd82d9-=_0x5417f9[_0x46545e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x555cae+=_0x5417f9[_0xbd82d9];}return _0x555cae;}function _0x9f7f58(){const _0x944cae=_0x588169[_0x46545e([0x73,0x70,0x6c,0x69,0x74])](_0x46545e([0x2e]));if(0x3!=_0x944cae[_0x46545e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x393a27(_0x944cae[0x1]);function _0x393a27(_0x459f59){const _0x3f9e6b=_0x114072(_0x459f59);return _0x3f9e6b&&_0x42a2d2()?_0x3f9e6b:null;function _0x42a2d2(){const _0x4ca0c9=_0x3f9e6b[_0x46545e([0x6a,0x74,0x69])],_0xd0fd5f=window[_0x46545e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ca0c9[_0x46545e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ca0c9[_0x46545e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa041e7={..._0x3f9e6b,[_0x46545e([0x6a,0x74,0x69])]:_0x4ca0c9[_0x46545e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ca0c9[_0x46545e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa041e7[_0x46545e([0x76,0x63])],_0x527129(_0xa041e7)==_0xd0fd5f;}}}async function _0xa6b447(){let _0x2a56c7=!0x0;try{const _0x27a900=_0x588169[_0x46545e([0x73,0x70,0x6c,0x69,0x74])](_0x46545e([0x2e])),[_0x4387b5,_0x52dd5e,_0x43eee5]=_0x27a900;return _0x1fa145(_0x4387b5),await _0x2faaa8(_0x4387b5,_0x52dd5e,_0x43eee5),_0x2a56c7;}catch{return!0x1;}function _0x1fa145(_0xea4aea){const _0x3bfc30=_0x114072(_0xea4aea);_0x3bfc30&&_0x3bfc30[_0x46545e([0x61,0x6c,0x67])]==_0x46545e([0x45,0x53,0x32,0x35,0x36])||(_0x2a56c7=!0x1);}async function _0x2faaa8(_0x119d38,_0x2d56ac,_0x303d4c){const _0x563105=window[_0x46545e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46545e([0x66,0x72,0x6f,0x6d])](_0x5c2fb7(_0x303d4c),_0x11c942=>_0x11c942[_0x46545e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ee4fa=new window[(_0x46545e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46545e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x119d38+_0x46545e([0x2e])+_0x2d56ac),_0x37dd51=window[_0x46545e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46545e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37dd51)return;const _0x29bae1=await _0x37dd51[_0x46545e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46545e([0x6a,0x77,0x6b]),_0x2b6755,{[_0x46545e([0x6e,0x61,0x6d,0x65])]:_0x46545e([0x45,0x43,0x44,0x53,0x41]),[_0x46545e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46545e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46545e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37dd51[_0x46545e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46545e([0x6e,0x61,0x6d,0x65])]:_0x46545e([0x45,0x43,0x44,0x53,0x41]),[_0x46545e([0x68,0x61,0x73,0x68])]:{[_0x46545e([0x6e,0x61,0x6d,0x65])]:_0x46545e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29bae1,_0x563105,_0x3ee4fa)||(_0x2a56c7=!0x1);}}function _0x114072(_0x39340b){return _0x39340b[_0x46545e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46545e([0x65,0x79]))?JSON[_0x46545e([0x70,0x61,0x72,0x73,0x65])](_0x5c2fb7(_0x39340b)):null;}function _0x5c2fb7(_0xeb7625){return window[_0x46545e([0x61,0x74,0x6f,0x62])](_0xeb7625[_0x46545e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46545e([0x2b]))[_0x46545e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46545e([0x2f])));}function _0x527129(_0x36c86a){let _0x122d6d=0x1505;function _0x1fa0ec(_0x7673d4){for(let _0x404135=0x0;_0x404135<_0x7673d4[_0x46545e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x404135++){const _0x26a69a=_0x7673d4[_0x46545e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x404135);_0x122d6d=(_0x122d6d<<0x5)+_0x122d6d+_0x26a69a,_0x122d6d&=_0x122d6d;}}function _0x5f34f0(_0x30f064){Array[_0x46545e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x30f064)?_0x30f064[_0x46545e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5f34f0):_0x30f064&&typeof _0x30f064==_0x46545e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46545e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x30f064)[_0x46545e([0x73,0x6f,0x72,0x74])]()[_0x46545e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x456d60,_0x32db92])=>{_0x1fa0ec(_0x456d60),_0x5f34f0(_0x32db92);}):_0x1fa0ec(window[_0x46545e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x30f064));}return _0x5f34f0(_0x36c86a),_0x122d6d>>>0x0;}function _0x352f67(_0x3ff454){return _0x3ff454[_0x46545e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46545e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46545e([0x30]));}function _0xfa010b(_0x696845){return _0x696845[_0x46545e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46545e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46545e([0x6a,0x6f,0x69,0x6e])]('');}function _0x557553(){}function _0x46545e(_0x468064){return _0x468064['map'](_0x16f16d=>String['fromCharCode'](_0x16f16d))['join']('');}_0x5e112d(await _0x1bf528());}(this);}['_initSchema'](){const _0x1cdec6=this['editor']['model']['schema'];_0x1cdec6['isRegistered']('imageBlock')&&_0x1cdec6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1cdec6['isRegistered']('imageInline')&&_0x1cdec6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x569bc0=this['editor'];_0x569bc0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x569bc0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x196f4c=>_0x196f4c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x89de38=_0x569bc0['commands']['get']('replaceImageSource');_0x89de38&&this['listenTo'](_0x89de38,'cleanupImage',(_0x3497c1,[_0xe03689,_0x2529c6])=>{_0xe03689['removeAttribute']('uploadcareImageId',_0x2529c6);});}['_initConfig'](){const _0x7d3f5c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x558992=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x402594(_0x5881a7['document'],'uc-config',{..._0x7d3f5c,'pubkey':_0x558992,'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']=_0xca6422=>{if('closeMax'==_0xca6422)return'#uc-icon-arrow-down';},_0x5881a7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x402594(_0x5881a7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5881a7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x397524=this['editor']['commands']['get']('insertImage');_0x397524&&this['listenTo'](_0x397524,'execute',()=>{const _0x19a200=this['editor']['model']['document']['selection']['getSelectedElement']();_0x19a200&&_0x19a200['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x19a200);});});const _0x9c0bf1=this['editor']['commands']['get']('uploadcareImageReplace');_0x9c0bf1&&this['listenTo'](_0x9c0bf1,'execute',()=>{const _0x1dc848=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1dc848&&_0x1dc848['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1dc848);});});}}class tt extends _0x5529e1{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f0952){super(_0x1f0952),_0x1f0952['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2ff8f6['defineComponents'](_0x2ff8f6),this['_defineLocale']();}['_defineLocale'](){const _0x5ba8ca=this['editor']['config']['get']('uploadcare.locale'),_0x1863ce=this['editor']['locale']['contentLanguage'];_0x5ba8ca&&_0x2ff8f6['defineLocale'](_0x1863ce,_0x5ba8ca);}}class ii extends _0x3cc980{constructor(_0x1d896c){super(_0x1d896c);const t=_0x1d896c['t'],_0x25322a=this['bindTemplate'],_0x4d8f70=new _0x42c23f();_0x4d8f70['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':[_0x4d8f70,{'text':_0x25322a['to']('imageUploadProgress',_0x59eaea=>t('Loading\x20image...')+'\x20('+(_0x59eaea||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 _0x3cc980{constructor(_0x54bcc1){super(_0x54bcc1);const t=_0x54bcc1['t'];this['set']('errorType',null);const _0x14045a=new _0x5ca8b5(_0x54bcc1);_0x14045a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x14045a['withText']=!0x0,_0x14045a['class']='ck-button-action',_0x14045a['on']('execute',()=>{this['fire']('retry');}),_0x14045a['bind']('isVisible')['to'](this,'errorType',_0x1d04e4=>'NotFound'!==_0x1d04e4);const _0x1bc3c3=new _0x2d903e();_0x1bc3c3['content']=_0x4699c2,_0x1bc3c3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xff0dcc=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':[_0x1bc3c3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xff0dcc['to']('errorType',_0x2e7536=>t('NotFound'!==_0x2e7536?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x14045a]},{'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 _0x3cc980{constructor(_0x195f84,_0x5613d2){super(_0x195f84);const _0x379ba9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5613d2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x379ba9['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x37891f,_0x197432,_0x2675c1){super(_0x37891f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x37891f),this['_errorView']=new ti(_0x37891f),this['_editingView']=new ei(_0x37891f,_0x2675c1),this['_focusableView']=new _0x3cc980(_0x37891f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x197432),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'],_0x5838c9=>{this['_addUploadcareImageEditorListeners'](_0x5838c9);});}),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'](_0x240711,_0x4b7593){const _0x5804f0='uc-cloud-image-editor',_0x3661b1=_0x240711['querySelector'](_0x5804f0);if(_0x3661b1)return _0x4b7593(_0x3661b1);const _0x5831c5=new MutationObserver(_0x31204b=>{const _0x1c87c9=_0x31204b['filter'](_0x3e361a=>_0x3e361a['target']===_0x240711&&_0x3e361a['addedNodes']['length']>0x0&&_0x3e361a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5804f0);_0x1c87c9['length']&&(_0x5831c5['disconnect'](),_0x4b7593(_0x1c87c9[0x0]['addedNodes'][0x0]));});_0x5831c5['observe'](_0x240711,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5b51f5){_0x5b51f5['addEventListener']('apply',_0x334401=>{this['fire']('apply',{'imageSrc':_0x334401['detail']['cdnUrl']});}),_0x5b51f5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1859a3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xc11c5e,_0x6e11e4,_0x101a0b){super(),this['_editor']=_0xc11c5e,this['_dialog']=_0x6e11e4,this['_imageElement']=_0x101a0b,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 _0x573c25=this['_imageElement'],_0xbe9a46=_0x573c25['getAttribute']('uploadcareImageId'),_0x2bfcbc=_0x573c25['getAttribute']('src');if(_0xbe9a46)await this['_loadImageInfo'](_0xbe9a46,_0x2bfcbc);else{if(this['_imageCache']['has'](_0x2bfcbc)){const _0xf4476e=this['_imageCache']['get'](_0x2bfcbc);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xf4476e['url'],this['imageDimension']=_0xf4476e['dimension'],this['imageId']=_0xf4476e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4a030b}=this['_editor'],t=_0x4a030b['t'],_0x5c888a=new X(_0x4a030b,this['imageStatus'],this['_attributes']);_0x5c888a['bind']('status')['to'](this,'imageStatus'),_0x5c888a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5c888a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5c888a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5c888a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3a33ff,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5c888a,'position':_0x266679['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5c888a['focus']();},'onHide':()=>{_0x5c888a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4c351d=>!A(_0x4c351d,_0x5c888a['element'])}});}['_loadImageInfo'](_0x1602ff,_0x251edc){return j['getInfo'](_0x1602ff,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x357ecc=>{const {width:_0x5f3b9d,height:_0x56e4b1}=_0x357ecc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x251edc,this['imageDimension']={'width':_0x5f3b9d,'height':_0x56e4b1},this['imageId']=_0x1602ff;})['catch'](_0x2f6635=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2f6635['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5bfcdd,_0x34e4d4){return this['_getImageAsFile'](_0x5bfcdd)['then'](_0x161ffb=>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':_0x34e4d4['signal'],'file':_0x161ffb,'onProgress':_0x5ab8ba=>{_0x5ab8ba&&_0x5ab8ba['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5ab8ba['value']));}}))['then'](_0x5160f3=>{const {width:_0xf6e08,height:_0x468b93}=_0x5160f3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5160f3['cdnUrl'],this['imageDimension']={'width':_0xf6e08,'height':_0x468b93},this['imageId']=_0x5160f3['uuid'],this['imageUploadProgress']=null;const _0x431898=_0x5bfcdd['getAttribute']('src');this['_imageCache']['set'](_0x431898,{'id':_0x5160f3['uuid'],'url':_0x5160f3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xb87026=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xb87026['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4910bb,_0x5f4c63){_0x4910bb['on']('apply',(_0x21d554,_0x424d35)=>{this['_replaceImage'](_0x5f4c63,_0x424d35['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4910bb['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4910bb['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x33113a,_0x3b82a9,_0x2c9d62){const _0x133f1b=this['_editor'],{width:_0x438c5d,height:_0x5d2d5a}=S(_0x3b82a9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x41e0b9,imageSources:_0x5e2684}=C(_0x3b82a9,_0x438c5d);_0x133f1b['model']['change'](_0x2d5493=>{if('$graveyard'===_0x33113a['root']['rootName']){_0x133f1b['execute']('insertImage',{'imageType':_0x33113a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x33113a['getAttributes']()),'uploadcareImageId':_0x2c9d62,'src':_0x41e0b9,'sources':_0x5e2684,'width':_0x438c5d,'height':_0x5d2d5a}});const _0x27e89b=_0x33113a['getChildren']();_0x33113a=_0x133f1b['model']['document']['selection']['getSelectedElement']();for(const _0x1de89e of _0x27e89b)_0x2d5493['append'](_0x2d5493['cloneElement'](_0x1de89e),_0x33113a);}else _0x2d5493['setSelection'](_0x33113a,'on'),_0x133f1b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x33113a['getAttributes']()),'uploadcareImageId':_0x2c9d62,'src':_0x41e0b9,'sources':_0x5e2684,'width':_0x438c5d,'height':_0x5d2d5a},_0x33113a);_0x2d5493['setSelection'](_0x33113a,'on');});}async['_getImageAsFile'](_0x33df59){const _0x5d58e8=_0x5881a7['window'],_0x35a65a=_0x5881a7['document']['location']['href'],_0x2d8bd3=new _0x5d58e8['URL'](_0x33df59['getAttribute']('src'),_0x35a65a);if('data:'===_0x2d8bd3['protocol']){const _0x41fafa=_0x2d8bd3['href']['split'](','),_0x364856=_0x41fafa[0x0]['match'](/:(.*?);/)[0x1],_0x676c9a=_0x364856['split']('/')[0x1],_0x4538e2=_0x5d58e8['atob'](_0x41fafa[_0x41fafa['length']-0x1]);let _0x12dc2d=_0x4538e2['length'];const _0x215136=new _0x5d58e8['Uint8Array'](_0x12dc2d);for(;_0x12dc2d--;)_0x215136[_0x12dc2d]=_0x4538e2['charCodeAt'](_0x12dc2d);return new _0x5d58e8['File']([_0x215136],'image.'+_0x676c9a,{'type':_0x364856});}const _0x1a6396=_0x2d8bd3['href']['split']('/'),_0x373c6d=_0x1a6396[_0x1a6396['length']-0x1],_0x558da8=_0x373c6d['split']('.')[0x1];return _0x5d58e8['fetch'](_0x2d8bd3['href'])['then'](_0x268f65=>_0x268f65['clone']()['blob']())['then'](_0x4232d3=>new _0x5d58e8['File']([_0x4232d3],_0x373c6d,{'type':'image/'+_0x558da8}));}}class O extends _0xdcaedd{['imageEditController'];static get['requires'](){return[_0x2f6f99];}['_isEditable'];constructor(_0x45990b){super(_0x45990b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3f8cc4){const _0x561d5e=G(_0x3f8cc4);return _0x1b1c9e=>!(!_0x1b1c9e||!_0x1b1c9e['is']('element','imageBlock')&&!_0x1b1c9e['is']('element','imageInline'))&&(!!_0x1b1c9e['hasAttribute']('uploadcareImageId')||!!_0x1b1c9e['hasAttribute']('src')&&_0x561d5e(_0x1b1c9e['getAttribute']('src')));}(_0x45990b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5b0cf3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5b0cf3);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3ff706=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ff706&&(_0x3ff706['is']('element','imageBlock')||_0x3ff706['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2f6f99),_0x3ff706),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0xdcaedd{['refresh'](){const _0x3e638b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3e638b&&(_0x3e638b['is']('element','imageBlock')||_0x3e638b['is']('element','imageInline')));}['execute'](_0x55c7b4){const _0x373ef3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xd093e=>{_0xd093e['setAttributes'](_0x55c7b4,_0x373ef3),_0xd093e['removeAttribute']('srcset',_0x373ef3),_0xd093e['removeAttribute']('sizes',_0x373ef3);});}}class m extends _0x5529e1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1dd87f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5d0bf0}=this;_0x5d0bf0['commands']['add']('uploadcareImageEdit',new O(_0x5d0bf0)),_0x5d0bf0['commands']['add']('uploadcareImageReplace',new R(_0x5d0bf0));}}class g extends _0x5529e1{['_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 _0x3a3942=this['editor'];_0x3a3942['ui']['componentFactory']['add']('uploadcareImageEdit',_0x245205=>{const _0x537394=_0x3a3942['commands']['get']('uploadcareImageEdit'),_0x11bbbf=new _0x5ca8b5(_0x245205),t=_0x245205['t'];return _0x11bbbf['set']({'icon':_0x3a33ff,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x11bbbf['bind']('isEnabled')['to'](_0x537394),_0x11bbbf['bind']('isOn')['to'](_0x537394,'isActive'),this['listenTo'](_0x11bbbf,'execute',()=>{_0x3a3942['execute']('uploadcareImageEdit'),_0x3a3942['editing']['view']['focus']();}),_0x11bbbf;}),this['_initConfig']();}['_initConfig'](){const _0x3f92d3=_0x402594(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3f92d3),this['listenTo'](this['editor'],'destroy',()=>{_0x3f92d3['remove']();});}}class et extends _0x5529e1{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':_0x382b81=>0x1!=_0x382b81}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x40a304=>{const {af:{dictionary:_0x4652f7,getPluralForm:_0x40e20b}}={'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':_0x12e6c9=>0x1!=_0x12e6c9}};_0x40a304['af']||={'dictionary':{},'getPluralForm':null},_0x40a304['af']['dictionary']=Object['assign'](_0x40a304['af']['dictionary'],_0x4652f7),_0x40a304['af']['getPluralForm']=_0x40e20b;})(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':_0x3dc317=>0x0==_0x3dc317?0x0:0x1==_0x3dc317?0x1:0x2==_0x3dc317?0x2:_0x3dc317%0x64>=0x3&&_0x3dc317%0x64<=0xa?0x3:_0x3dc317%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x282a64=>{const {ar:{dictionary:_0x977c9,getPluralForm:_0x294688}}={'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':_0x4a0591=>0x0==_0x4a0591?0x0:0x1==_0x4a0591?0x1:0x2==_0x4a0591?0x2:_0x4a0591%0x64>=0x3&&_0x4a0591%0x64<=0xa?0x3:_0x4a0591%0x64>=0xb?0x4:0x5}};_0x282a64['ar']||={'dictionary':{},'getPluralForm':null},_0x282a64['ar']['dictionary']=Object['assign'](_0x282a64['ar']['dictionary'],_0x977c9),_0x282a64['ar']['getPluralForm']=_0x294688;})(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':_0x1b22e9=>0x1!=_0x1b22e9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1d07a3=>{const {ast:{dictionary:_0x34d2fc,getPluralForm:_0x263f08}}={'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':_0x2e2bf6=>0x1!=_0x2e2bf6}};_0x1d07a3['ast']||={'dictionary':{},'getPluralForm':null},_0x1d07a3['ast']['dictionary']=Object['assign'](_0x1d07a3['ast']['dictionary'],_0x34d2fc),_0x1d07a3['ast']['getPluralForm']=_0x263f08;})(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':_0x5e65b0=>0x1!=_0x5e65b0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3edfe6=>{const {az:{dictionary:_0x56d4d9,getPluralForm:_0x5b2309}}={'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':_0x18d504=>0x1!=_0x18d504}};_0x3edfe6['az']||={'dictionary':{},'getPluralForm':null},_0x3edfe6['az']['dictionary']=Object['assign'](_0x3edfe6['az']['dictionary'],_0x56d4d9),_0x3edfe6['az']['getPluralForm']=_0x5b2309;})(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':_0x5ea4e8=>_0x5ea4e8%0xa==0x1&&_0x5ea4e8%0x64!=0xb?0x0:_0x5ea4e8%0xa>=0x2&&_0x5ea4e8%0xa<=0x4&&(_0x5ea4e8%0x64<0xa||_0x5ea4e8%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x54d91e=>{const {be:{dictionary:_0x1b3ce7,getPluralForm:_0x3944a3}}={'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':_0x8db71c=>_0x8db71c%0xa==0x1&&_0x8db71c%0x64!=0xb?0x0:_0x8db71c%0xa>=0x2&&_0x8db71c%0xa<=0x4&&(_0x8db71c%0x64<0xa||_0x8db71c%0x64>=0x14)?0x1:0x2}};_0x54d91e['be']||={'dictionary':{},'getPluralForm':null},_0x54d91e['be']['dictionary']=Object['assign'](_0x54d91e['be']['dictionary'],_0x1b3ce7),_0x54d91e['be']['getPluralForm']=_0x3944a3;})(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':_0x19cb0b=>0x1!=_0x19cb0b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1eb64a=>{const {bg:{dictionary:_0xf72015,getPluralForm:_0x21e19f}}={'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':_0x2006d3=>0x1!=_0x2006d3}};_0x1eb64a['bg']||={'dictionary':{},'getPluralForm':null},_0x1eb64a['bg']['dictionary']=Object['assign'](_0x1eb64a['bg']['dictionary'],_0xf72015),_0x1eb64a['bg']['getPluralForm']=_0x21e19f;})(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':_0x38dd66=>0x1!=_0x38dd66}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5ac327=>{const {bn:{dictionary:_0x19d910,getPluralForm:_0x61d21f}}={'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':_0x583790=>0x1!=_0x583790}};_0x5ac327['bn']||={'dictionary':{},'getPluralForm':null},_0x5ac327['bn']['dictionary']=Object['assign'](_0x5ac327['bn']['dictionary'],_0x19d910),_0x5ac327['bn']['getPluralForm']=_0x61d21f;})(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':_0x4511cc=>_0x4511cc%0xa==0x1&&_0x4511cc%0x64!=0xb?0x0:_0x4511cc%0xa>=0x2&&_0x4511cc%0xa<=0x4&&(_0x4511cc%0x64<0xa||_0x4511cc%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x53728d=>{const {bs:{dictionary:_0x42bf84,getPluralForm:_0x4dd01c}}={'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':_0x158212=>_0x158212%0xa==0x1&&_0x158212%0x64!=0xb?0x0:_0x158212%0xa>=0x2&&_0x158212%0xa<=0x4&&(_0x158212%0x64<0xa||_0x158212%0x64>=0x14)?0x1:0x2}};_0x53728d['bs']||={'dictionary':{},'getPluralForm':null},_0x53728d['bs']['dictionary']=Object['assign'](_0x53728d['bs']['dictionary'],_0x42bf84),_0x53728d['bs']['getPluralForm']=_0x4dd01c;})(window['CKEDITOR_TRANSLATIONS']||={});
|