@ckeditor/ckeditor5-uploadcare 48.5.0-alpha.5 → 48.5.0-alpha.6
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/dist/index.js +3 -3
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x35e0ef,Plugin as _0x39736e}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x516ed4,IconError as _0x5c12ba,IconFacebook as _0x150119,IconGoogleDrive as _0x5de3b8,IconGooglePhotos as _0x2cd453,IconOneDrive as _0x292071,IconUploadcareImageEdit as _0x5cc239,IconUploadcareImageUpload as _0x24ce00,IconUploadcareLink as _0x3dac3f}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x286200,Dialog as _0x2c506e,DialogViewPosition as _0x132bf6,FocusCycler as _0x279390,IconView as _0x154da3,MenuBarMenuListItemButtonView as _0x9e5ad1,Notification as _0x47e713,SpinnerView as _0x22a841,View as _0xa81e1d}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0xecaa8b,FocusTracker as _0x136cef,ObservableMixin as _0x302565,createElement as _0x2c59cf,getAncestors as _0x25f076,global as _0xdafd11,uid as _0x110304}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x275ed6,ImageUploadEditing as _0x3e8efc,ImageUploadProgress as _0x2c9e83,ImageUtils as _0x55f0c6,PictureEditing as _0x21b908}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x1585f4}from'@ckeditor/ckeditor5-upload';import{info as _0x5def7b,uploadFile as _0x49394d}from'@uploadcare/upload-client';import*as _0x352c43 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x258717,_0x3dec63,_0x55303e){const t=_0x258717['t'],_0xb9cf02=_0x258717['t'];switch(_0x3dec63){case'local':return{'text':_0xb9cf02('Insert'===_0x55303e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xb9cf02('From\x20computer')};case'url':return{'text':'Insert'===_0x55303e?_0xb9cf02('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xb9cf02('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x55303e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x55303e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x55303e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x55303e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x55303e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3dec63;}}var V=class extends _0x39736e{['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'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x4a9932=[this['editor']];for(const _0xecaa21 of _0x4a9932){let _0x20800b;for(const _0x339e1c in _0xecaa21){const _0x796405=_0x339e1c,_0x3782ce=_0xecaa21[_0x796405];if('uploadcareLicenseKeyValid'==_0x3782ce||'uploadcareLicenseKeyInvalid'==_0x3782ce||'uploadcareLicenseKeyExpired'==_0x3782ce||'uploadcareLicenseKeyDomainLimit'==_0x3782ce||'uploadcareLicenseKeyNotAllowed'==_0x3782ce||'uploadcareLicenseKeyEvaluationLimit'==_0x3782ce||'uploadcareLicenseKeyUsageLimit'==_0x3782ce){delete _0xecaa21[_0x796405],_0x20800b=_0x3782ce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x20800b&&_0xecaa21['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x20800b&&_0xecaa21['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x20800b&&_0xecaa21['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x20800b&&_0xecaa21['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x20800b&&_0xecaa21['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x20800b&&_0xecaa21['_showLicenseError']('usageLimit');}},0x3e8);}afterInit(){const {editor:_0x411afc}=this,_0x3fd93a=_0x411afc['commands']['get']('uploadcare');if(!_0x3fd93a)return;const _0x15804b=this['_normalizeConfigSourceList'](_0x411afc['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xe2d746,_0x48b1b6)=>{const _0x5b447b=this['_getIntegrationKey'](_0x48b1b6['type']);return _0xe2d746[_0x5b447b]||(_0xe2d746[_0x5b447b]=[]),_0xe2d746[_0x5b447b]['push'](_0x48b1b6),_0xe2d746;},{});_0x411afc['plugins']['has']('ImageInsertUI')&&_0x411afc['commands']['get']('uploadcare')&&Object['entries'](_0x15804b)['forEach'](([_0x555a25,_0x4fe85b])=>{_0x411afc['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x555a25,'observable':()=>_0x3fd93a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4fe85b),'formViewCreator':()=>this['_createDropdownButtons'](_0x4fe85b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4fe85b),'override':'assetManager'!==_0x555a25});});}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_normalizeConfigSourceList(_0x9e3c2){const {locale:_0x891cc7}=this['editor'];return _0x9e3c2['map'](_0x1f620d=>{const _0x3a0a85=T(_0x891cc7,_0x1f620d,'Insert');switch(_0x1f620d){case'local':return{'icon':_0x24ce00,'type':'local',..._0x3a0a85};case'url':return{'icon':_0x3dac3f,'type':'url',..._0x3a0a85};case'dropbox':return{'icon':_0x516ed4,'type':'dropbox',..._0x3a0a85};case'facebook':return{'icon':_0x150119,'type':'facebook',..._0x3a0a85};case'gdrive':return{'icon':_0x5de3b8,'type':'gdrive',..._0x3a0a85};case'gphotos':return{'icon':_0x2cd453,'type':'gphotos',..._0x3a0a85};case'onedrive':return{'icon':_0x292071,'type':'onedrive',..._0x3a0a85};}});}_getIntegrationKey(_0x413047){switch(_0x413047){case'local':return'upload';case'url':return'url';default:return'assetManager';}}_createButton(_0x5a3210,_0xdc0feb){const _0x2f4f08=this['editor'],_0x4b8cb7=new _0x5a3210(_0x2f4f08['locale']),_0x450ff6=_0x2f4f08['commands']['get']('uploadcare');return _0x4b8cb7['bind']('isEnabled')['to'](_0x450ff6),_0x4b8cb7['on']('execute',()=>{_0x450ff6['execute'](_0xdc0feb);}),_0x4b8cb7;}_createToolbarButton(_0x1df2f7){const {locale:_0x183c34}=this['editor'],_0x2d5f0e=this['editor']['plugins']['get']('ImageInsertUI'),_0x3fc3c2=_0x1df2f7[0x0],_0x4bf938=this['_createButton'](_0x286200,_0x3fc3c2['type']);return _0x4bf938['icon']=_0x3fc3c2['icon'],_0x4bf938['bind']('label')['to'](_0x2d5f0e,'isImageSelected',_0x135fc6=>T(_0x183c34,_0x3fc3c2['type'],_0x135fc6?'Replace':'Insert')['text']),_0x4bf938['tooltip']=!0x0,_0x4bf938;}_createDropdownButtons(_0x29b564){const {locale:_0x38bc47}=this['editor'],_0x36c25d=this['editor']['plugins']['get']('ImageInsertUI');return _0x29b564['map'](_0x270503=>{const _0x489764=this['_createButton'](_0x286200,_0x270503['type']);return _0x489764['withText']=!0x0,_0x489764['icon']=_0x270503['icon'],_0x489764['bind']('label')['to'](_0x36c25d,'isImageSelected',_0x11e228=>T(_0x38bc47,_0x270503['type'],_0x11e228?'Replace':'Insert')['text']),_0x489764;});}_createMenuBarButtons(_0x4191c8){return _0x4191c8['map'](_0x4ad451=>{const _0x5f3d49=this['_createButton'](_0x9e5ad1,_0x4ad451['type']);return _0x5f3d49['icon']=_0x4ad451['icon'],_0x5f3d49['label']=_0x4ad451['shortText'],_0x5f3d49;});}},F=class extends _0xa81e1d{['focusTracker'];['focusCycler'];constructor(_0x141a3d){super(_0x141a3d),this['focusTracker']=new _0x136cef(),this['focusCycler']=new _0x279390({'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 extends F{constructor(_0x52ba60,_0x4270a4){super(_0x52ba60),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-'+_0x4270a4}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0xfe9a71,_0x64d637){const _0x121b1e=_0xfe9a71['replace'](/\/$/,'');return{'imageFallbackUrl':_0xfe9a71,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x39cf41=>_0x39cf41<_0x64d637)['map'](_0x31e28a=>_0x121b1e+'/-/resize/'+_0x31e28a+'x/\x20'+_0x31e28a+'w'),_0xfe9a71+'\x20'+_0x64d637+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x64d637+'px)\x20100vw,\x20'+_0x64d637+'px','type':'image/webp'}]};}function j(_0x34258d,_0x5d30c5,_0x4a7de3){const _0xbcc25e=_0x34258d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xbcc25e?parseInt(_0xbcc25e[0x1],0xa):_0x5d30c5,'height':_0xbcc25e?parseInt(_0xbcc25e[0x2],0xa):_0x4a7de3};}function q(_0x4e3740,_0x4d62be){const _0x3af778=new(_0xecaa8b())(),_0x21ad80=_0x4e3740['plugins']['get']('ImageUtils'),_0x41f036=_0x4e3740['editing']['mapper']['toViewElement'](_0x4d62be),_0x48adf2=_0x21ad80['findViewImgElement'](_0x41f036),_0x281ee1=_0x4e3740['editing']['view']['domConverter']['viewToDom'](_0x48adf2),_0x94f0c0=_0x4d62be['getAttribute']('width'),_0x57ac48=_0x4d62be['getAttribute']('height'),_0x1f8dff='image-processing';_0x4e3740['editing']['view']['change'](_0x4c14c5=>{_0x4c14c5['addClass'](_0x1f8dff,_0x41f036),_0x4c14c5['setStyle']('aspect-ratio',_0x94f0c0+'/'+_0x57ac48,_0x48adf2);}),_0x3af778['listenTo'](_0x281ee1,'load',()=>{_0x3af778['stopListening'](_0x281ee1,'load'),_0x4e3740['editing']['view']['change'](_0x3f93e1=>{_0x3f93e1['removeClass'](_0x1f8dff,_0x41f036),_0x3f93e1['removeStyle']('aspect-ratio',_0x48adf2);});});}function M(_0x1bcca1){if(Array['isArray'](_0x1bcca1)){const _0xc9d5e2=_0x1bcca1['map'](M);return _0x57ded5=>_0xc9d5e2['some'](_0xb67782=>_0xb67782(_0x57ded5));}if('origin'==_0x1bcca1){const _0x2b915b=_0xdafd11['window']['location']['origin'];return _0x4ed3cd=>new URL(_0x4ed3cd,_0xdafd11['document']['baseURI'])['origin']==_0x2b915b;}return'function'==typeof _0x1bcca1?_0x1bcca1:_0x1bcca1 instanceof RegExp?_0x4010f9=>!(!_0x4010f9['match'](_0x1bcca1)&&!_0x4010f9['replace'](/^https?:\/\//,'')['match'](_0x1bcca1)):()=>!0x1;}function H(_0x49ded9,_0x1756f5){return _0x25f076(_0x49ded9['target'])['includes'](_0x1756f5);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x302565();var G=class extends W{_editor;['_dialog'];_editing;['_api'];_type=null;['_formView']=null;constructor(_0xb4b671,_0xe9a3a1,_0x456625){super(),this['_editor']=_0xb4b671,this['_editing']=_0xe9a3a1,this['_dialog']=_0xb4b671['plugins']['get'](_0x2c506e),this['_api']=_0xe9a3a1['ctxElement']['getAPI'](),this['_type']=_0x456625,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:_0x3a19f4,model:_0x2b76cf}=this['_editor'],_0x19b70d=_0x2b76cf['document']['selection']['getSelectedElement'](),_0x33a0fe=_0x19b70d&&(_0x19b70d['is']('element','imageBlock')||_0x19b70d['is']('element','imageInline'));this['_formView']=new $(_0x3a19f4,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x24ce00,'title':T(_0x3a19f4,this['_type'],_0x33a0fe?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x132bf6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x40b35c=>!H(_0x40b35c,this['_formView']['element'])}});}_initListeners(){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x102aea}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x51c6a3=>{const _0xa0677=_0x102aea['length'];for(const _0x570702 of _0x102aea){const _0xe98d1=_0x570702===_0x102aea[_0xa0677-0x1],{cdnUrl:_0x7c2ffc,fileInfo:_0x4ce4e0}=_0x570702;if(!_0x7c2ffc||!_0x4ce4e0)continue;const {width:_0x2698f9,height:_0x546574}=_0x4ce4e0['imageInfo'],_0x52aa4f=j(_0x7c2ffc,_0x2698f9,_0x546574),_0x4ed47c=B(_0x7c2ffc,_0x52aa4f['width']),_0x3db290={'id':_0x4ce4e0['uuid'],'type':'image','attributes':{'imageDimension':_0x52aa4f,..._0x4ed47c}};this['_insertAsset'](_0x3db290,_0xe98d1,_0x51c6a3);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x103900=>{'idle'===_0x103900['detail']['status']&&!_0x103900['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}_insertAsset(_0xf00b31,_0x184299,_0xd0efab){const _0x53972e=this['_editor']['model']['document']['selection'],_0x742b18=_0x53972e['getSelectedElement'](),_0x416f84=!(!_0x742b18||!_0x742b18['is']('element','imageInline'));_0xd0efab['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xf00b31,_0x416f84),_0x184299||_0xd0efab['setSelection'](_0x53972e['getLastPosition']());}_insertImage(_0x4844c5,_0x37c5be){const _0x436ec4=this['_editor'],{imageDimension:_0x5ab834,imageFallbackUrl:_0x1bb417,imageSources:_0x217243}=_0x4844c5['attributes'];_0x436ec4['execute']('insertImage',{'imageType':_0x37c5be?'imageInline':null,'source':{'uploadcareImageId':_0x4844c5['id'],'src':_0x1bb417,'sources':_0x217243,..._0x5ab834}});}},z=class extends _0x35e0ef{_editing;_controller=null;static get requires(){return[_0x2c506e,Z];}constructor(_0x103340){super(_0x103340),this['_editing']=_0x103340['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}execute(_0x568e65){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x568e65);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x37e4a8,..._0x45b612}){return _0x49394d(_0x37e4a8,_0x45b612);}static getInfo(_0x196580,_0x246014){return _0x5def7b(_0x196580,_0x246014);}},J=class extends _0x39736e{static get requires(){return[_0x3e8efc,_0x2c9e83,_0x1585f4,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async afterInit(){const _0x2beb82=this['editor'];if(!_0x2beb82['config']['get']('uploadcare'))return;_0x2beb82['plugins']['get'](_0x1585f4)['createUploadAdapter']=_0x176439=>new X(_0x176439,_0x2beb82),_0x2beb82['plugins']['get'](_0x3e8efc)['on']('uploadComplete',(_0x2d3645,{imageElement:_0x2d78e5,data:_0x16073d})=>{_0x2beb82['model']['change'](_0x451ff9=>{_0x451ff9['setAttribute']('uploadcareImageId',_0x16073d['uploadcareImageId'],_0x2d78e5);});});}},X=class{['loader'];editor;controller;constructor(_0x4aaac2,_0x156285){this['loader']=_0x4aaac2,this['editor']=_0x156285,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x315c6b=await this['loader']['file'];return Q['upload']({'file':_0x315c6b,'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':_0x3e4ff5=>{_0x3e4ff5&&_0x3e4ff5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3e4ff5['value']);}})['then'](async _0x14e590=>{const {imageFallbackUrl:_0x36aa5a,imageSources:_0x378fc9}=B(_0x14e590['cdnUrl'],_0x14e590['imageInfo']['width']);return{'uploadcareImageId':_0x14e590['uuid'],'default':_0x36aa5a,'sources':_0x378fc9};})['catch'](()=>{const _0x2cce7b=t('Cannot\x20upload\x20file:')+('\x20'+_0x315c6b['name']+'.');return Promise['reject'](_0x2cce7b);});}abort(){this['controller']['abort']();}},Z=class extends _0x39736e{_configElement=null;_ctxElement=null;static get['pluginName'](){return'UploadcareEditing';}static get requires(){return[_0x21b908,J,_0x2c506e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}ucContextId;get configElement(){return this['_configElement'];}get ctxElement(){return this['_ctxElement'];}constructor(_0x2a2d49){super(_0x2a2d49),this['ucContextId']=_0x110304();}init(){const _0x40863d=this['editor'];_0x40863d['commands']['add']('uploadcare',new z(_0x40863d));}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 _0x2b82e8=_0xdafd11['document']['querySelector']('input[uploadcare-file-input]');_0x2b82e8&&_0x2b82e8['remove']();}),async function(_0x114e93){const _0x2a1d45='4wieLj6qmWZnpxGN9QYyFhU15kOfCBAHt2slISMXP3vErub8za07VTRoKcdDgJ',_0x1a7fa7=0x79440,_0x4d6b03={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0xd333b0(_0x229118){const _0x46cab1=new window['Promise'](_0x124d90=>{_0x229118['once']('ready',_0x124d90);}),_0x128013=window['Date']['now'](),_0x5ef982=_0x229118['config']['get']('licenseKey');async function _0x20e580(){let _0x48844c,_0x85f5f0=null,_0x50e9ca=null;try{return'GPL'==_0x5ef982?'NotAllowed':(_0x48844c=_0x352b9b(),_0x48844c?(_0x48844c['usageEndpoint']&&(_0x50e9ca=_0x14ab04(_0x48844c['usageEndpoint'],_0x48844c['jti'])),await _0x1d6f85()?_0x1bab3a()?_0x4c1e87()?'Expired':_0x4c3989()?('evaluation'==_0x48844c['licenseType']&&(_0x85f5f0=_0x395c67('EvaluationLimit')),await _0x4db034()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4c1e87(){const _0x4517e1=['evaluation','trial']['includes'](_0x48844c['licenseType'])?_0x128013/0x3e8:0xe10*_0x1a7fa7;return _0x48844c['exp']<_0x4517e1;}function _0x1bab3a(){const _0x5bf552=_0x48844c['features'];return!!_0x5bf552&&(!!_0x5bf552['includes']('*')||!!_0x5bf552['includes']('UPLC'));}function _0x4c3989(){const _0x4941c9=_0x48844c['licensedHosts'];if(!_0x4941c9||0x0==_0x4941c9['length'])return!0x0;const {hostname:_0x3885df}=new URL(window['location']['href']);if(_0x4941c9['includes'](_0x3885df))return!0x0;const _0x31ce64=_0x3885df['split']('.');return _0x4941c9['filter'](_0x169554=>_0x169554['includes']('*'))['map'](_0x3a2ac3=>_0x3a2ac3['split']('.'))['filter'](_0x375339=>_0x375339['length']<=_0x31ce64['length'])['map'](_0x4b99a9=>Array(_0x31ce64['length']-_0x4b99a9['length'])['fill']('*'===_0x4b99a9[0x0]?'*':'')['concat'](_0x4b99a9))['some'](_0x22eb36=>_0x31ce64['every']((_0x415c67,_0x3bae7f)=>_0x22eb36[_0x3bae7f]===_0x415c67||'*'===_0x22eb36[_0x3bae7f]));}function _0x4db034(){return _0x85f5f0&&_0x50e9ca?new window['Promise']((_0x4914dd,_0x3f2874)=>{_0x85f5f0['then'](_0x4914dd,_0x3f2874),_0x50e9ca['then'](_0x103072=>{'Valid'!=_0x103072&&_0x4914dd(_0x103072);},_0x3f2874);}):_0x85f5f0||_0x50e9ca||'Valid';}}function _0x14ab04(_0x17546b,_0x910ba0){return new window['Promise'](_0x2feef9=>{if(_0x100e10())return _0x2feef9('Valid');_0x16f7cc(),_0x229118['decorate']('_sendUsageRequest');let _0x516d12=!0x1;const _0x77a3a8=_0x110304();function _0x64c437(_0x2b983b){return!!_0x2b983b&&('object'==typeof _0x2b983b||'function'==typeof _0x2b983b)&&'function'==typeof _0x2b983b['then']&&'function'==typeof _0x2b983b['catch'];}function _0x4f72bf(_0x154e70){_0x1711ad(_0x154e70)['then'](_0x71e49c=>_0x71e49c&&'ok'==_0x71e49c['status']?_0x52b28c(_0xbcc7f6(_0x77a3a8+_0x910ba0))!=_0x71e49c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x449aa4=>(_0x5777e9(),_0x449aa4),()=>{const _0x156de7=_0x2e449a();return null==_0x156de7?(_0x5777e9(),'Valid'):_0x128013-_0x156de7>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2feef9)['catch'](()=>{_0x2feef9('UsageLimit');});const _0x1d1215=0x36ee80;function _0x5777e9(){const _0x4da8ca='llct-'+_0x52b28c(_0xbcc7f6(_0x17546b)),_0x30f847=_0x15168d(_0x52b28c(window['Math']['ceil'](_0x128013/_0x1d1215)));window['localStorage']['setItem'](_0x4da8ca,_0x30f847);}function _0x2e449a(){const _0x3e5a12='llct-'+_0x52b28c(_0xbcc7f6(_0x17546b)),_0x3c7d18=window['localStorage']['getItem'](_0x3e5a12);return _0x3c7d18?window['parseInt'](_0x15168d(_0x3c7d18),0x10)*_0x1d1215:null;}function _0x1711ad(_0x56008b){return new window['Promise']((_0x2fbca8,_0xdb9c49)=>{_0x56008b['then'](_0x2fbca8,_0xdb9c49),window['setTimeout'](_0xdb9c49,0x1d4c0);});}}_0x229118['on']('_sendUsageRequest',(_0x302a02,_0x1e7c2b)=>{if(_0x1e7c2b[0x0]!=_0x17546b)return _0x2feef9('UsageLimit');_0x1e7c2b[0x1]={..._0x1e7c2b[0x1],'requestId':_0x77a3a8};},{'priority':'high'}),_0x229118['on']('_sendUsageRequest',_0x5bedec=>{_0x64c437(_0x5bedec['return'])&&(_0x516d12=!0x0,_0x4f72bf(_0x5bedec['return']));},{'priority':'low'}),_0x46cab1['then'](()=>{_0x516d12||_0x2feef9('UsageLimit');});});function _0x100e10(){return'auto'==_0x229118['editing']['view']['_overlayModeHint'];}function _0x16f7cc(){_0x229118['editing']['view']['_overlayModeHint']='auto';}}function _0x395c67(_0x29d68a){const _0x5c4b7e=[new window['Promise'](_0x4faf93=>setTimeout(_0x4faf93,0x93ecc)),_0x46cab1['then'](()=>new window['Promise'](_0x36545e=>{let _0x2ed2dd=0x0;_0x229118['model']['on']('applyOperation',(_0x117fa5,_0x483ed1)=>{_0x483ed1[0x0]['isDocumentOperation']&&_0x2ed2dd++,0x5e8==_0x2ed2dd&&(_0x36545e(),_0x117fa5['off']());});}))];return window['Promise']['race'](_0x5c4b7e)['then'](()=>_0x29d68a);}async function _0x28c1a6(){await _0x46cab1,_0x229118['model']['change']=_0x2074e7,_0x229118['model']['enqueueChange']=_0x2074e7,_0x229118['enableReadOnlyMode']('model');}function _0x53bfd3(_0x4d7975){const _0x6b1ad2=_0x4d5d90();_0x229118[_0x6b1ad2]='uploadcareLicenseKey'+_0x4d7975,'Valid'!=_0x4d7975&&_0x28c1a6();}function _0x4d5d90(){const _0x53c351=window['String'](window['performance']['now']())['replace']('.','');let _0xcd424='w';for(let _0x5b211d=0x0;_0x5b211d<_0x53c351['length'];_0x5b211d+=0x2){let _0x468e3e=window['parseInt'](_0x53c351['substring'](_0x5b211d,_0x5b211d+0x2));_0x468e3e>=0x3e&&(_0x468e3e-=0x3e),_0xcd424+=_0x2a1d45[_0x468e3e];}return _0xcd424;}function _0x352b9b(){const _0x5dc8cc=_0x5ef982['split']('.');if(0x3!=_0x5dc8cc['length'])return null;return _0xed6de9(_0x5dc8cc[0x1]);function _0xed6de9(_0x6004a0){const _0x2cb4d8=_0x276f54(_0x6004a0);return _0x2cb4d8&&_0x15f690()?_0x2cb4d8:null;function _0x15f690(){const _0x159d41=_0x2cb4d8['jti'],_0x4d5fc0=window['parseInt'](_0x159d41['substring'](_0x159d41['length']-0x8),0x10),_0x1861c3={..._0x2cb4d8,'jti':_0x159d41['substring'](0x0,_0x159d41['length']-0x8)};return delete _0x1861c3['vc'],_0xbcc7f6(_0x1861c3)==_0x4d5fc0;}}}async function _0x1d6f85(){let _0x115a58=!0x0;try{const [_0x38ffb3,_0x2552aa,_0x470626]=_0x5ef982['split']('.');return _0x130f99(_0x38ffb3),await _0x1ad9b1(_0x38ffb3,_0x2552aa,_0x470626),_0x115a58;}catch{return!0x1;}function _0x130f99(_0x10130e){const _0x40cc03=_0x276f54(_0x10130e);_0x40cc03&&'ES256'==_0x40cc03['alg']||(_0x115a58=!0x1);}async function _0x1ad9b1(_0x5a06af,_0x577f7d,_0x347cc8){const _0x456981=window['Uint8Array']['from'](_0x46bf2c(_0x347cc8),_0x2e3c93=>_0x2e3c93['charCodeAt'](0x0)),_0x208ca1=new window['TextEncoder']()['encode'](_0x5a06af+'.'+_0x577f7d),_0x31a07a=window['crypto']['subtle'];if(!_0x31a07a)return;const _0x20782e=await _0x31a07a['importKey']('jwk',_0x4d6b03,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x31a07a['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x20782e,_0x456981,_0x208ca1)||(_0x115a58=!0x1);}}function _0x276f54(_0x152801){return _0x152801['startsWith']('ey')?JSON['parse'](_0x46bf2c(_0x152801)):null;}function _0x46bf2c(_0x5f33c4){return window['atob'](_0x5f33c4['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xbcc7f6(_0x362f5d){let _0x3a8a7a=0x1505;function _0x4bbcdb(_0x2d9b78){for(let _0x394aa1=0x0;_0x394aa1<_0x2d9b78['length'];_0x394aa1++){const _0x210a34=_0x2d9b78['charCodeAt'](_0x394aa1);_0x3a8a7a=(_0x3a8a7a<<0x5)+_0x3a8a7a+_0x210a34,_0x3a8a7a&=_0x3a8a7a;}}function _0x3dde46(_0x278e45){Array['isArray'](_0x278e45)?_0x278e45['forEach'](_0x3dde46):_0x278e45&&'object'==typeof _0x278e45?Object['entries'](_0x278e45)['sort']()['forEach'](([_0x35f498,_0x4ca746])=>{_0x4bbcdb(_0x35f498),_0x3dde46(_0x4ca746);}):_0x4bbcdb(window['String'](_0x278e45));}return _0x3dde46(_0x362f5d),_0x3a8a7a>>>0x0;}function _0x52b28c(_0x102e6c){return _0x102e6c['toString'](0x10)['padStart'](0x8,'0');}function _0x15168d(_0x592417){return _0x592417['split']('')['reverse']()['join']('');}function _0x2074e7(){}_0x53bfd3(await _0x20e580());}_0xd333b0(_0x114e93['editor']);}(this);}_initSchema(){const _0x53e6a5=this['editor']['model']['schema'];_0x53e6a5['isRegistered']('imageBlock')&&_0x53e6a5['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x53e6a5['isRegistered']('imageInline')&&_0x53e6a5['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}_initConversion(){const _0x522d39=this['editor'];_0x522d39['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x522d39['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x23a8d9=>_0x23a8d9['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4241a8=_0x522d39['commands']['get']('replaceImageSource');_0x4241a8&&this['listenTo'](_0x4241a8,'cleanupImage',(_0x4c42b9,[_0x5b1e11,_0x332a82])=>{_0x5b1e11['removeAttribute']('uploadcareImageId',_0x332a82);});}_initConfig(){const _0x3ad8ff=this['editor']['config']['get']('uploadcare.uploader')||{},_0x37dc3a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2c59cf(_0xdafd11['document'],'uc-config',{..._0x3ad8ff,'pubkey':_0x37dc3a,'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']=_0x32f85d=>{if('closeMax'==_0x32f85d)return'#uc-icon-arrow-down';},_0xdafd11['document']['body']['appendChild'](this['_configElement']);}_initCtx(){this['_ctxElement']=_0x2c59cf(_0xdafd11['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xdafd11['document']['body']['appendChild'](this['_ctxElement']);}_initImageProcessingIndicator(){const _0x3be08a=this['editor']['commands']['get']('insertImage');_0x3be08a&&this['listenTo'](_0x3be08a,'execute',()=>{const _0x49de0e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49de0e&&_0x49de0e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x49de0e);});});const _0x135290=this['editor']['commands']['get']('uploadcareImageReplace');_0x135290&&this['listenTo'](_0x135290,'execute',()=>{const _0x4d9514=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4d9514&&_0x4d9514['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x4d9514);});});}},Y=class extends _0x39736e{static get requires(){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28a1ec){super(_0x28a1ec),_0x28a1ec['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x352c43['defineComponents'](_0x352c43),this['_defineLocale']();}['_defineLocale'](){const _0x365976=this['editor']['config']['get']('uploadcare.locale'),_0x3b6010=this['editor']['locale']['contentLanguage'];_0x365976&&_0x352c43['defineLocale'](_0x3b6010,_0x365976);}},tt=class extends _0xa81e1d{constructor(_0x12d402){super(_0x12d402);const t=_0x12d402['t'],_0x8ff2d8=this['bindTemplate'],_0x430050=new _0x22a841();_0x430050['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':[_0x430050,{'text':_0x8ff2d8['to']('imageUploadProgress',_0x618f3a=>t('Loading\x20image...')+'\x20('+(_0x618f3a||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'}]}]}]});}},et=class extends _0xa81e1d{constructor(_0x2e66f3){super(_0x2e66f3);const t=_0x2e66f3['t'];this['set']('errorType',null);const _0x273344=new _0x286200(_0x2e66f3);_0x273344['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x273344['withText']=!0x0,_0x273344['class']='ck-button-action',_0x273344['on']('execute',()=>{this['fire']('retry');}),_0x273344['bind']('isVisible')['to'](this,'errorType',_0x181365=>'NotFound'!==_0x181365);const _0x5c0fe6=new _0x154da3();_0x5c0fe6['content']=_0x5c12ba,_0x5c0fe6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xc9be07=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':[_0x5c0fe6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xc9be07['to']('errorType',_0x5f4e6a=>t('NotFound'!==_0x5f4e6a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x273344]},{'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'}]}]}]});}},it=class extends _0xa81e1d{constructor(_0x5df637,_0x3a7d45){super(_0x5df637);const _0x33340b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3a7d45,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x33340b['to']('imageSrc')}});}},st=class extends F{_items;['_loadingView'];['_errorView'];_editingView;['_focusableView'];constructor(_0x3510fc,_0x14e667,_0x3eb2ff){super(_0x3510fc),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0x3510fc),this['_errorView']=new et(_0x3510fc),this['_editingView']=new it(_0x3510fc,_0x3eb2ff),this['_focusableView']=new _0xa81e1d(_0x3510fc),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x14e667),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'],_0x39c82e=>{this['_addUploadcareImageEditorListeners'](_0x39c82e);});}),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(_0x4afad9,_0x4e1b39){const _0x3f8d01='uc-cloud-image-editor',_0x527a92=_0x4afad9['querySelector'](_0x3f8d01);if(_0x527a92)return _0x4e1b39(_0x527a92);const _0x335f0c=new MutationObserver(_0x3081ea=>{const _0x5ea3f0=_0x3081ea['filter'](_0x2e689=>_0x2e689['target']===_0x4afad9&&_0x2e689['addedNodes']['length']>0x0&&_0x2e689['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3f8d01);_0x5ea3f0['length']&&(_0x335f0c['disconnect'](),_0x4e1b39(_0x5ea3f0[0x0]['addedNodes'][0x0]));});_0x335f0c['observe'](_0x4afad9,{'childList':!0x0,'subtree':!0x0});}_addUploadcareImageEditorListeners(_0x38ce6a){_0x38ce6a['addEventListener']('apply',_0x87b8d7=>{this['fire']('apply',{'imageSrc':_0x87b8d7['detail']['cdnUrl']});}),_0x38ce6a['addEventListener']('cancel',()=>{this['fire']('cancel');});}_addErrorViewListeners(){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const nt=/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x302565();var rt=class extends nt{_editor;['_dialog'];_imageElement;['_imageCache'];_controller;_attributes;constructor(_0xb2e51b,_0xd89719,_0x307fe6){super(),this['_editor']=_0xb2e51b,this['_dialog']=_0xd89719,this['_imageElement']=_0x307fe6,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 _0xef3743=this['_imageElement'],_0x55c86c=_0xef3743['getAttribute']('uploadcareImageId'),_0x370cd4=_0xef3743['getAttribute']('src');if(_0x55c86c)await this['_loadImageInfo'](_0x55c86c,_0x370cd4);else{if(this['_imageCache']['has'](_0x370cd4)){const _0x329968=this['_imageCache']['get'](_0x370cd4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x329968['url'],this['imageDimension']=_0x329968['dimension'],this['imageId']=_0x329968['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2ad74e}=this['_editor'],t=_0x2ad74e['t'],_0x55888e=new st(_0x2ad74e,this['imageStatus'],this['_attributes']);_0x55888e['bind']('status')['to'](this,'imageStatus'),_0x55888e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x55888e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x55888e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x55888e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5cc239,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x55888e,'position':_0x132bf6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x55888e['focus']();},'onHide':()=>{_0x55888e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x30a2ba=>!H(_0x30a2ba,_0x55888e['element'])}});}['_loadImageInfo'](_0xe9e709,_0x14f933){return Q['getInfo'](_0xe9e709,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2715d2=>{const {width:_0x1bc6ee,height:_0x3636fe}=_0x2715d2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14f933,this['imageDimension']={'width':_0x1bc6ee,'height':_0x3636fe},this['imageId']=_0xe9e709;})['catch'](_0xb07e29=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xb07e29['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x30d4a5,_0x272258){return this['_getImageAsFile'](_0x30d4a5)['then'](_0x1fc0df=>Q['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':_0x272258['signal'],'file':_0x1fc0df,'onProgress':_0x458bd3=>{_0x458bd3&&_0x458bd3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x458bd3['value']));}}))['then'](_0x547869=>{const {width:_0x2c6779,height:_0x336b81}=_0x547869['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x547869['cdnUrl'],this['imageDimension']={'width':_0x2c6779,'height':_0x336b81},this['imageId']=_0x547869['uuid'],this['imageUploadProgress']=null;const _0x446842=_0x30d4a5['getAttribute']('src');this['_imageCache']['set'](_0x446842,{'id':_0x547869['uuid'],'url':_0x547869['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x284f20=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x284f20['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}_addEditViewListeners(_0x356629,_0x15b032){_0x356629['on']('apply',(_0x106376,_0x8ba038)=>{this['_replaceImage'](_0x15b032,_0x8ba038['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x356629['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x356629['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x170e39,_0x41906b,_0x2450f7){const _0x5ab042=this['_editor'],{width:_0x36458a,height:_0x21430a}=j(_0x41906b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x246ff5,imageSources:_0x22d7c2}=B(_0x41906b,_0x36458a);_0x5ab042['model']['change'](_0x1abd89=>{if('$graveyard'!==_0x170e39['root']['rootName'])_0x1abd89['setSelection'](_0x170e39,'on'),_0x5ab042['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x170e39['getAttributes']()),'uploadcareImageId':_0x2450f7,'src':_0x246ff5,'sources':_0x22d7c2,'width':_0x36458a,'height':_0x21430a},_0x170e39);else{_0x5ab042['execute']('insertImage',{'imageType':_0x170e39['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x170e39['getAttributes']()),'uploadcareImageId':_0x2450f7,'src':_0x246ff5,'sources':_0x22d7c2,'width':_0x36458a,'height':_0x21430a}});const _0x41ebe3=_0x170e39['getChildren']();_0x170e39=_0x5ab042['model']['document']['selection']['getSelectedElement']();for(const _0x4df295 of _0x41ebe3)_0x1abd89['append'](_0x1abd89['cloneElement'](_0x4df295),_0x170e39);}_0x1abd89['setSelection'](_0x170e39,'on');});}async _getImageAsFile(_0x367e38){const _0x3c3d6d=_0xdafd11['window'],_0x12b0aa=_0xdafd11['document']['location']['href'],_0x582092=new _0x3c3d6d['URL'](_0x367e38['getAttribute']('src'),_0x12b0aa);if('data:'===_0x582092['protocol']){const _0xbd968d=_0x582092['href']['split'](','),_0x42a335=_0xbd968d[0x0]['match'](/:(.*?);/)[0x1],_0x54c12c=_0x42a335['split']('/')[0x1],_0x3bda31=_0x3c3d6d['atob'](_0xbd968d[_0xbd968d['length']-0x1]);let _0xf6c2e7=_0x3bda31['length'];const _0x41a28c=new _0x3c3d6d['Uint8Array'](_0xf6c2e7);for(;_0xf6c2e7--;)_0x41a28c[_0xf6c2e7]=_0x3bda31['charCodeAt'](_0xf6c2e7);return new _0x3c3d6d['File']([_0x41a28c],'image.'+_0x54c12c,{'type':_0x42a335});}const _0x16451e=_0x582092['href']['split']('/'),_0x15677c=_0x16451e[_0x16451e['length']-0x1],_0x16a472=_0x15677c['split']('.')[0x1];return _0x3c3d6d['fetch'](_0x582092['href'])['then'](_0x124296=>_0x124296['clone']()['blob']())['then'](_0x596982=>new _0x3c3d6d['File']([_0x596982],_0x15677c,{'type':'image/'+_0x16a472}));}},at=class extends _0x35e0ef{imageEditController;static get requires(){return[_0x2c506e];}_isEditable;constructor(_0x544405){super(_0x544405),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x257541){const _0x1b0631=M(_0x257541);return _0x424e2e=>!(!_0x424e2e||!_0x424e2e['is']('element','imageBlock')&&!_0x424e2e['is']('element','imageInline'))&&(!!_0x424e2e['hasAttribute']('uploadcareImageId')||!!_0x424e2e['hasAttribute']('src')&&_0x1b0631(_0x424e2e['getAttribute']('src')));}(_0x544405['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x97b4d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x97b4d);}execute(){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1ede8d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1ede8d&&(_0x1ede8d['is']('element','imageBlock')||_0x1ede8d['is']('element','imageInline'))&&(this['imageEditController']=new rt(this['editor'],this['editor']['plugins']['get'](_0x2c506e),_0x1ede8d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x35e0ef{['refresh'](){const _0x5a5d0d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5a5d0d&&(_0x5a5d0d['is']('element','imageBlock')||_0x5a5d0d['is']('element','imageInline')));}execute(_0x425e8b){const _0x1b8ca6=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3fc1f4=>{_0x3fc1f4['setAttributes'](_0x425e8b,_0x1b8ca6),_0x3fc1f4['removeAttribute']('srcset',_0x1b8ca6),_0x3fc1f4['removeAttribute']('sizes',_0x1b8ca6);});}},ct=class extends _0x39736e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get requires(){return[Z,_0x47e713,_0x55f0c6,_0x275ed6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x36cdee}=this;_0x36cdee['commands']['add']('uploadcareImageEdit',new at(_0x36cdee)),_0x36cdee['commands']['add']('uploadcareImageReplace',new ot(_0x36cdee));}},lt=class extends _0x39736e{['_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 _0x13e32f=this['editor'];_0x13e32f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x237eeb=>{const _0x879bef=_0x13e32f['commands']['get']('uploadcareImageEdit'),_0x42ef67=new _0x286200(_0x237eeb),t=_0x237eeb['t'];return _0x42ef67['set']({'icon':_0x5cc239,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x42ef67['bind']('isEnabled')['to'](_0x879bef),_0x42ef67['bind']('isOn')['to'](_0x879bef,'isActive'),this['listenTo'](_0x42ef67,'execute',()=>{_0x13e32f['execute']('uploadcareImageEdit'),_0x13e32f['editing']['view']['focus']();}),_0x42ef67;}),this['_initConfig']();}_initConfig(){const _0x1957fd=_0x2c59cf(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1957fd),this['listenTo'](this['editor'],'destroy',()=>{_0x1957fd['remove']();});}},ut=class extends _0x39736e{static get['pluginName'](){return'UploadcareImageEdit';}static get requires(){return[ct,lt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{Y as Uploadcare,z as UploadcareCommand,Z as UploadcareEditing,ut as UploadcareImageEdit,at as UploadcareImageEditCommand,ct as UploadcareImageEditEditing,lt as UploadcareImageEditUI,V as UploadcareUI,J as UploadcareUploadAdapter};
|
|
23
|
+
import{Command as _0x32dd66,Plugin as _0x4ce4b9}from'@ckeditor/ckeditor5-core';import{IconDropbox as _0x2ca3d4,IconError as _0x4e4918,IconFacebook as _0x4bac47,IconGoogleDrive as _0x42dc65,IconGooglePhotos as _0x5939e3,IconOneDrive as _0x3589f0,IconUploadcareImageEdit as _0x1b8f07,IconUploadcareImageUpload as _0x46559d,IconUploadcareLink as _0x3958e9}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x18031b,Dialog as _0x45b9b7,DialogViewPosition as _0x46dfc6,FocusCycler as _0xc08a3a,IconView as _0x3d9ba6,MenuBarMenuListItemButtonView as _0x4897ff,Notification as _0x31568e,SpinnerView as _0x59a3ea,View as _0x1d88f9}from'@ckeditor/ckeditor5-ui';import{DomEmitterMixin as _0x3dc7c1,FocusTracker as _0x45d812,ObservableMixin as _0x5200fd,createElement as _0x18668e,getAncestors as _0x3c7685,global as _0x377dcc,uid as _0x4d0480}from'@ckeditor/ckeditor5-utils';import{ImageEditing as _0x500b2d,ImageUploadEditing as _0x4eb782,ImageUploadProgress as _0x2502be,ImageUtils as _0x2a5c9d,PictureEditing as _0x4bbfee}from'@ckeditor/ckeditor5-image';import{FileRepository as _0x53b0f6}from'@ckeditor/ckeditor5-upload';import{info as _0x82e892,uploadFile as _0x22b7ad}from'@uploadcare/upload-client';import*as _0x37fdc4 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x53399d,_0x3be8d6,_0x5181de){const t=_0x53399d['t'],_0x35f32a=_0x53399d['t'];switch(_0x3be8d6){case'local':return{'text':_0x35f32a('Insert'===_0x5181de?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x35f32a('From\x20computer')};case'url':return{'text':'Insert'===_0x5181de?_0x35f32a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x35f32a('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x5181de?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x5181de?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x5181de?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x5181de?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x5181de?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3be8d6;}}var V=class extends _0x4ce4b9{['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'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x4bc1a9=[this['editor']];for(const _0xfb16c of _0x4bc1a9){let _0x5cd923;for(const _0x310d0a in _0xfb16c){const _0xfa048e=_0x310d0a,_0x2c6503=_0xfb16c[_0xfa048e];if('uploadcareLicenseKeyValid'==_0x2c6503||'uploadcareLicenseKeyInvalid'==_0x2c6503||'uploadcareLicenseKeyExpired'==_0x2c6503||'uploadcareLicenseKeyDomainLimit'==_0x2c6503||'uploadcareLicenseKeyNotAllowed'==_0x2c6503||'uploadcareLicenseKeyEvaluationLimit'==_0x2c6503||'uploadcareLicenseKeyUsageLimit'==_0x2c6503){delete _0xfb16c[_0xfa048e],_0x5cd923=_0x2c6503,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5cd923&&_0xfb16c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5cd923&&_0xfb16c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5cd923&&_0xfb16c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5cd923&&_0xfb16c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5cd923&&_0xfb16c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5cd923&&_0xfb16c['_showLicenseError']('usageLimit');}},0x3e8);}afterInit(){const {editor:_0x17ece5}=this,_0xa3ad82=_0x17ece5['commands']['get']('uploadcare');if(!_0xa3ad82)return;const _0x369886=this['_normalizeConfigSourceList'](_0x17ece5['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1b6f77,_0x14a8cc)=>{const _0x6b045d=this['_getIntegrationKey'](_0x14a8cc['type']);return _0x1b6f77[_0x6b045d]||(_0x1b6f77[_0x6b045d]=[]),_0x1b6f77[_0x6b045d]['push'](_0x14a8cc),_0x1b6f77;},{});_0x17ece5['plugins']['has']('ImageInsertUI')&&_0x17ece5['commands']['get']('uploadcare')&&Object['entries'](_0x369886)['forEach'](([_0x2aedd3,_0x549c49])=>{_0x17ece5['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2aedd3,'observable':()=>_0xa3ad82,'buttonViewCreator':()=>this['_createToolbarButton'](_0x549c49),'formViewCreator':()=>this['_createDropdownButtons'](_0x549c49),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x549c49),'override':'assetManager'!==_0x2aedd3});});}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_normalizeConfigSourceList(_0x1a5e03){const {locale:_0x3056c8}=this['editor'];return _0x1a5e03['map'](_0x2701b4=>{const _0x448099=T(_0x3056c8,_0x2701b4,'Insert');switch(_0x2701b4){case'local':return{'icon':_0x46559d,'type':'local',..._0x448099};case'url':return{'icon':_0x3958e9,'type':'url',..._0x448099};case'dropbox':return{'icon':_0x2ca3d4,'type':'dropbox',..._0x448099};case'facebook':return{'icon':_0x4bac47,'type':'facebook',..._0x448099};case'gdrive':return{'icon':_0x42dc65,'type':'gdrive',..._0x448099};case'gphotos':return{'icon':_0x5939e3,'type':'gphotos',..._0x448099};case'onedrive':return{'icon':_0x3589f0,'type':'onedrive',..._0x448099};}});}_getIntegrationKey(_0x28a55b){switch(_0x28a55b){case'local':return'upload';case'url':return'url';default:return'assetManager';}}_createButton(_0x5c6fed,_0xfecb82){const _0x2b5c36=this['editor'],_0xf12797=new _0x5c6fed(_0x2b5c36['locale']),_0x5ad179=_0x2b5c36['commands']['get']('uploadcare');return _0xf12797['bind']('isEnabled')['to'](_0x5ad179),_0xf12797['on']('execute',()=>{_0x5ad179['execute'](_0xfecb82);}),_0xf12797;}_createToolbarButton(_0x282e4f){const {locale:_0x2249c4}=this['editor'],_0x5cd311=this['editor']['plugins']['get']('ImageInsertUI'),_0x3ceffe=_0x282e4f[0x0],_0x3665b6=this['_createButton'](_0x18031b,_0x3ceffe['type']);return _0x3665b6['icon']=_0x3ceffe['icon'],_0x3665b6['bind']('label')['to'](_0x5cd311,'isImageSelected',_0x1b6a42=>T(_0x2249c4,_0x3ceffe['type'],_0x1b6a42?'Replace':'Insert')['text']),_0x3665b6['tooltip']=!0x0,_0x3665b6;}_createDropdownButtons(_0x3c7ce1){const {locale:_0x39f13c}=this['editor'],_0x6b567b=this['editor']['plugins']['get']('ImageInsertUI');return _0x3c7ce1['map'](_0x514e78=>{const _0x4bb808=this['_createButton'](_0x18031b,_0x514e78['type']);return _0x4bb808['withText']=!0x0,_0x4bb808['icon']=_0x514e78['icon'],_0x4bb808['bind']('label')['to'](_0x6b567b,'isImageSelected',_0x406ad7=>T(_0x39f13c,_0x514e78['type'],_0x406ad7?'Replace':'Insert')['text']),_0x4bb808;});}_createMenuBarButtons(_0x448723){return _0x448723['map'](_0x21d841=>{const _0x26b335=this['_createButton'](_0x4897ff,_0x21d841['type']);return _0x26b335['icon']=_0x21d841['icon'],_0x26b335['label']=_0x21d841['shortText'],_0x26b335;});}},F=class extends _0x1d88f9{['focusTracker'];['focusCycler'];constructor(_0x27c4c4){super(_0x27c4c4),this['focusTracker']=new _0x45d812(),this['focusCycler']=new _0xc08a3a({'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 extends F{constructor(_0x50098d,_0x32b77a){super(_0x50098d),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-'+_0x32b77a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}};function B(_0x238d52,_0x1396ee){const _0x218e44=_0x238d52['replace'](/\/$/,'');return{'imageFallbackUrl':_0x238d52,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x444146=>_0x444146<_0x1396ee)['map'](_0x5533f7=>_0x218e44+'/-/resize/'+_0x5533f7+'x/\x20'+_0x5533f7+'w'),_0x238d52+'\x20'+_0x1396ee+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1396ee+'px)\x20100vw,\x20'+_0x1396ee+'px','type':'image/webp'}]};}function j(_0x3b7661,_0x9383c9,_0x473a96){const _0x4b55d8=_0x3b7661['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4b55d8?parseInt(_0x4b55d8[0x1],0xa):_0x9383c9,'height':_0x4b55d8?parseInt(_0x4b55d8[0x2],0xa):_0x473a96};}function q(_0x2607cd,_0xfee586){const _0x1691fd=new(_0x3dc7c1())(),_0x582cb9=_0x2607cd['plugins']['get']('ImageUtils'),_0x168478=_0x2607cd['editing']['mapper']['toViewElement'](_0xfee586),_0x3ac9e2=_0x582cb9['findViewImgElement'](_0x168478),_0x365ad8=_0x2607cd['editing']['view']['domConverter']['viewToDom'](_0x3ac9e2),_0x262e8d=_0xfee586['getAttribute']('width'),_0x16afa7=_0xfee586['getAttribute']('height'),_0x129279='image-processing';_0x2607cd['editing']['view']['change'](_0x2a6bbe=>{_0x2a6bbe['addClass'](_0x129279,_0x168478),_0x2a6bbe['setStyle']('aspect-ratio',_0x262e8d+'/'+_0x16afa7,_0x3ac9e2);}),_0x1691fd['listenTo'](_0x365ad8,'load',()=>{_0x1691fd['stopListening'](_0x365ad8,'load'),_0x2607cd['editing']['view']['change'](_0x8acbbf=>{_0x8acbbf['removeClass'](_0x129279,_0x168478),_0x8acbbf['removeStyle']('aspect-ratio',_0x3ac9e2);});});}function M(_0xb17d38){if(Array['isArray'](_0xb17d38)){const _0x408791=_0xb17d38['map'](M);return _0x3b635a=>_0x408791['some'](_0x5bffc5=>_0x5bffc5(_0x3b635a));}if('origin'==_0xb17d38){const _0x6eda6=_0x377dcc['window']['location']['origin'];return _0x1ecc5d=>new URL(_0x1ecc5d,_0x377dcc['document']['baseURI'])['origin']==_0x6eda6;}return'function'==typeof _0xb17d38?_0xb17d38:_0xb17d38 instanceof RegExp?_0x573a5f=>!(!_0x573a5f['match'](_0xb17d38)&&!_0x573a5f['replace'](/^https?:\/\//,'')['match'](_0xb17d38)):()=>!0x1;}function H(_0x5db994,_0x2dc10a){return _0x3c7685(_0x5db994['target'])['includes'](_0x2dc10a);}const W=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5200fd();var G=class extends W{_editor;['_dialog'];_editing;['_api'];_type=null;['_formView']=null;constructor(_0xe5ddba,_0x242344,_0x489e4e){super(),this['_editor']=_0xe5ddba,this['_editing']=_0x242344,this['_dialog']=_0xe5ddba['plugins']['get'](_0x45b9b7),this['_api']=_0x242344['ctxElement']['getAPI'](),this['_type']=_0x489e4e,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:_0xc5f46e,model:_0x114fba}=this['_editor'],_0x483744=_0x114fba['document']['selection']['getSelectedElement'](),_0x356dbe=_0x483744&&(_0x483744['is']('element','imageBlock')||_0x483744['is']('element','imageInline'));this['_formView']=new $(_0xc5f46e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x46559d,'title':T(_0xc5f46e,this['_type'],_0x356dbe?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x46dfc6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x191bb4=>!H(_0x191bb4,this['_formView']['element'])}});}_initListeners(){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x325b76}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x28bede=>{const _0x1e3990=_0x325b76['length'];for(const _0x254665 of _0x325b76){const _0x11a032=_0x254665===_0x325b76[_0x1e3990-0x1],{cdnUrl:_0x12eab7,fileInfo:_0x1d9377}=_0x254665;if(!_0x12eab7||!_0x1d9377)continue;const {width:_0x387330,height:_0x189208}=_0x1d9377['imageInfo'],_0x951cc4=j(_0x12eab7,_0x387330,_0x189208),_0x25e07d=B(_0x12eab7,_0x951cc4['width']),_0x55c428={'id':_0x1d9377['uuid'],'type':'image','attributes':{'imageDimension':_0x951cc4,..._0x25e07d}};this['_insertAsset'](_0x55c428,_0x11a032,_0x28bede);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1579f7=>{'idle'===_0x1579f7['detail']['status']&&!_0x1579f7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}_insertAsset(_0xc853bf,_0x5301fe,_0x3e369a){const _0x51ff27=this['_editor']['model']['document']['selection'],_0x3b1ddc=_0x51ff27['getSelectedElement'](),_0x6c0aa0=!(!_0x3b1ddc||!_0x3b1ddc['is']('element','imageInline'));_0x3e369a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xc853bf,_0x6c0aa0),_0x5301fe||_0x3e369a['setSelection'](_0x51ff27['getLastPosition']());}_insertImage(_0x1dc943,_0x10addc){const _0x4075c0=this['_editor'],{imageDimension:_0x52b7be,imageFallbackUrl:_0x110f3b,imageSources:_0x2372cc}=_0x1dc943['attributes'];_0x4075c0['execute']('insertImage',{'imageType':_0x10addc?'imageInline':null,'source':{'uploadcareImageId':_0x1dc943['id'],'src':_0x110f3b,'sources':_0x2372cc,..._0x52b7be}});}},z=class extends _0x32dd66{_editing;_controller=null;static get requires(){return[_0x45b9b7,Z];}constructor(_0x298b1e){super(_0x298b1e),this['_editing']=_0x298b1e['plugins']['get'](Z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}execute(_0x2f861b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new G(this['editor'],this['_editing'],_0x2f861b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}},Q=class{static['upload']({file:_0x21c984,..._0xab721a}){return _0x22b7ad(_0x21c984,_0xab721a);}static getInfo(_0x492f04,_0x2bcef3){return _0x82e892(_0x492f04,_0x2bcef3);}},J=class extends _0x4ce4b9{static get requires(){return[_0x4eb782,_0x2502be,_0x53b0f6,Z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async afterInit(){const _0x27d12c=this['editor'];if(!_0x27d12c['config']['get']('uploadcare'))return;_0x27d12c['plugins']['get'](_0x53b0f6)['createUploadAdapter']=_0x160fc4=>new X(_0x160fc4,_0x27d12c),_0x27d12c['plugins']['get'](_0x4eb782)['on']('uploadComplete',(_0x3ff281,{imageElement:_0xd03a8c,data:_0x5e0f43})=>{_0x27d12c['model']['change'](_0x524b91=>{_0x524b91['setAttribute']('uploadcareImageId',_0x5e0f43['uploadcareImageId'],_0xd03a8c);});});}},X=class{['loader'];editor;controller;constructor(_0x14287c,_0x3cd60d){this['loader']=_0x14287c,this['editor']=_0x3cd60d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2d965b=await this['loader']['file'];return Q['upload']({'file':_0x2d965b,'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':_0x26048b=>{_0x26048b&&_0x26048b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x26048b['value']);}})['then'](async _0xed6f36=>{const {imageFallbackUrl:_0x30bd44,imageSources:_0x35d4f2}=B(_0xed6f36['cdnUrl'],_0xed6f36['imageInfo']['width']);return{'uploadcareImageId':_0xed6f36['uuid'],'default':_0x30bd44,'sources':_0x35d4f2};})['catch'](()=>{const _0x5bb5e7=t('Cannot\x20upload\x20file:')+('\x20'+_0x2d965b['name']+'.');return Promise['reject'](_0x5bb5e7);});}abort(){this['controller']['abort']();}},Z=class extends _0x4ce4b9{_configElement=null;_ctxElement=null;static get['pluginName'](){return'UploadcareEditing';}static get requires(){return[_0x4bbfee,J,_0x45b9b7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}ucContextId;get configElement(){return this['_configElement'];}get ctxElement(){return this['_ctxElement'];}constructor(_0xfaf693){super(_0xfaf693),this['ucContextId']=_0x4d0480();}init(){const _0x3f9bfc=this['editor'];_0x3f9bfc['commands']['add']('uploadcare',new z(_0x3f9bfc));}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 _0x7c28df=_0x377dcc['document']['querySelector']('input[uploadcare-file-input]');_0x7c28df&&_0x7c28df['remove']();}),async function(_0x235f2b){const _0x14d7ad='4wieLj6qmWZnpxGN9QYyFhU15kOfCBAHt2slISMXP3vErub8za07VTRoKcdDgJ',_0x34db5b=0x79458,_0x3167ef={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x2cf96c(_0x2692c3){const _0x21fef0=new window['Promise'](_0x347acc=>{_0x2692c3['once']('ready',_0x347acc);}),_0x2d9c59=window['Date']['now'](),_0x19d32d=_0x2692c3['config']['get']('licenseKey');async function _0x3b304f(){let _0x328d8b,_0x23e671=null,_0x51a6e7=null;try{return'GPL'==_0x19d32d?'NotAllowed':(_0x328d8b=_0x54b59d(),_0x328d8b?(_0x328d8b['usageEndpoint']&&(_0x51a6e7=_0x6a09fd(_0x328d8b['usageEndpoint'],_0x328d8b['jti'])),await _0x156b46()?_0x5d71c8()?_0x1bc19d()?'Expired':_0x3023d8()?('evaluation'==_0x328d8b['licenseType']&&(_0x23e671=_0xfba21a('EvaluationLimit')),await _0x5a4c7c()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1bc19d(){const _0x2483c7=['evaluation','trial']['includes'](_0x328d8b['licenseType'])?_0x2d9c59/0x3e8:0xe10*_0x34db5b;return _0x328d8b['exp']<_0x2483c7;}function _0x5d71c8(){const _0x10a56b=_0x328d8b['features'];return!!_0x10a56b&&(!!_0x10a56b['includes']('*')||!!_0x10a56b['includes']('UPLC'));}function _0x3023d8(){const _0x54d428=_0x328d8b['licensedHosts'];if(!_0x54d428||0x0==_0x54d428['length'])return!0x0;const {hostname:_0x591966}=new URL(window['location']['href']);if(_0x54d428['includes'](_0x591966))return!0x0;const _0x57157c=_0x591966['split']('.');return _0x54d428['filter'](_0x3a9e99=>_0x3a9e99['includes']('*'))['map'](_0x4757fd=>_0x4757fd['split']('.'))['filter'](_0x1143ae=>_0x1143ae['length']<=_0x57157c['length'])['map'](_0xb03b50=>Array(_0x57157c['length']-_0xb03b50['length'])['fill']('*'===_0xb03b50[0x0]?'*':'')['concat'](_0xb03b50))['some'](_0x30d92d=>_0x57157c['every']((_0x29879d,_0x136621)=>_0x30d92d[_0x136621]===_0x29879d||'*'===_0x30d92d[_0x136621]));}function _0x5a4c7c(){return _0x23e671&&_0x51a6e7?new window['Promise']((_0x3c4fc0,_0x571d4f)=>{_0x23e671['then'](_0x3c4fc0,_0x571d4f),_0x51a6e7['then'](_0x10ba5c=>{'Valid'!=_0x10ba5c&&_0x3c4fc0(_0x10ba5c);},_0x571d4f);}):_0x23e671||_0x51a6e7||'Valid';}}function _0x6a09fd(_0x605653,_0x44b3e1){return new window['Promise'](_0x413954=>{if(_0x216c37())return _0x413954('Valid');_0x103ec1(),_0x2692c3['decorate']('_sendUsageRequest');let _0x74d974=!0x1;const _0x3cadcb=_0x4d0480();function _0x170384(_0x15aadb){return!!_0x15aadb&&('object'==typeof _0x15aadb||'function'==typeof _0x15aadb)&&'function'==typeof _0x15aadb['then']&&'function'==typeof _0x15aadb['catch'];}function _0x3cd7f6(_0x35d6dd){_0x59ef68(_0x35d6dd)['then'](_0x3ec558=>_0x3ec558&&'ok'==_0x3ec558['status']?_0x13762c(_0x31b6da(_0x3cadcb+_0x44b3e1))!=_0x3ec558['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x10338a=>(_0x417fe6(),_0x10338a),()=>{const _0x41b271=_0x4913b0();return null==_0x41b271?(_0x417fe6(),'Valid'):_0x2d9c59-_0x41b271>0x240c8400?'UsageLimit':'Valid';})['then'](_0x413954)['catch'](()=>{_0x413954('UsageLimit');});const _0x1fe872=0x36ee80;function _0x417fe6(){const _0x36db8d='llct-'+_0x13762c(_0x31b6da(_0x605653)),_0x1b2e3f=_0x2b4702(_0x13762c(window['Math']['ceil'](_0x2d9c59/_0x1fe872)));window['localStorage']['setItem'](_0x36db8d,_0x1b2e3f);}function _0x4913b0(){const _0x52f637='llct-'+_0x13762c(_0x31b6da(_0x605653)),_0x589c12=window['localStorage']['getItem'](_0x52f637);return _0x589c12?window['parseInt'](_0x2b4702(_0x589c12),0x10)*_0x1fe872:null;}function _0x59ef68(_0x416719){return new window['Promise']((_0x17eeea,_0x2c63ff)=>{_0x416719['then'](_0x17eeea,_0x2c63ff),window['setTimeout'](_0x2c63ff,0x1d4c0);});}}_0x2692c3['on']('_sendUsageRequest',(_0x13b070,_0x115e8c)=>{if(_0x115e8c[0x0]!=_0x605653)return _0x413954('UsageLimit');_0x115e8c[0x1]={..._0x115e8c[0x1],'requestId':_0x3cadcb};},{'priority':'high'}),_0x2692c3['on']('_sendUsageRequest',_0x4b4803=>{_0x170384(_0x4b4803['return'])&&(_0x74d974=!0x0,_0x3cd7f6(_0x4b4803['return']));},{'priority':'low'}),_0x21fef0['then'](()=>{_0x74d974||_0x413954('UsageLimit');});});function _0x216c37(){return'auto'==_0x2692c3['editing']['view']['_overlayModeHint'];}function _0x103ec1(){_0x2692c3['editing']['view']['_overlayModeHint']='auto';}}function _0xfba21a(_0x41e80f){const _0x38e83e=[new window['Promise'](_0x5da53a=>setTimeout(_0x5da53a,0x93ecc)),_0x21fef0['then'](()=>new window['Promise'](_0x4b090f=>{let _0xa7e2dc=0x0;_0x2692c3['model']['on']('applyOperation',(_0x4c6f3d,_0x2945d3)=>{_0x2945d3[0x0]['isDocumentOperation']&&_0xa7e2dc++,0x5e8==_0xa7e2dc&&(_0x4b090f(),_0x4c6f3d['off']());});}))];return window['Promise']['race'](_0x38e83e)['then'](()=>_0x41e80f);}async function _0xce15e4(){await _0x21fef0,_0x2692c3['model']['change']=_0x221e2e,_0x2692c3['model']['enqueueChange']=_0x221e2e,_0x2692c3['enableReadOnlyMode']('model');}function _0x349b61(_0x586b82){const _0x175337=_0x5273ca();_0x2692c3[_0x175337]='uploadcareLicenseKey'+_0x586b82,'Valid'!=_0x586b82&&_0xce15e4();}function _0x5273ca(){const _0x31e85e=window['String'](window['performance']['now']())['replace']('.','');let _0x1a926c='w';for(let _0x48d825=0x0;_0x48d825<_0x31e85e['length'];_0x48d825+=0x2){let _0x1de122=window['parseInt'](_0x31e85e['substring'](_0x48d825,_0x48d825+0x2));_0x1de122>=0x3e&&(_0x1de122-=0x3e),_0x1a926c+=_0x14d7ad[_0x1de122];}return _0x1a926c;}function _0x54b59d(){const _0x149bbb=_0x19d32d['split']('.');if(0x3!=_0x149bbb['length'])return null;return _0x4169d7(_0x149bbb[0x1]);function _0x4169d7(_0x1e6cbd){const _0x116675=_0x57dae7(_0x1e6cbd);return _0x116675&&_0x2ca29a()?_0x116675:null;function _0x2ca29a(){const _0x4f0c0f=_0x116675['jti'],_0x4b5264=window['parseInt'](_0x4f0c0f['substring'](_0x4f0c0f['length']-0x8),0x10),_0x41aa8f={..._0x116675,'jti':_0x4f0c0f['substring'](0x0,_0x4f0c0f['length']-0x8)};return delete _0x41aa8f['vc'],_0x31b6da(_0x41aa8f)==_0x4b5264;}}}async function _0x156b46(){let _0x294902=!0x0;try{const [_0x5944b3,_0x222fc9,_0xef916b]=_0x19d32d['split']('.');return _0x5d7b0e(_0x5944b3),await _0x43bb79(_0x5944b3,_0x222fc9,_0xef916b),_0x294902;}catch{return!0x1;}function _0x5d7b0e(_0x50421b){const _0xacdc6f=_0x57dae7(_0x50421b);_0xacdc6f&&'ES256'==_0xacdc6f['alg']||(_0x294902=!0x1);}async function _0x43bb79(_0x116276,_0x4dd643,_0x373c89){const _0x4e0ff6=window['Uint8Array']['from'](_0x472da5(_0x373c89),_0x3e8a69=>_0x3e8a69['charCodeAt'](0x0)),_0x2ec6db=new window['TextEncoder']()['encode'](_0x116276+'.'+_0x4dd643),_0x1a24f1=window['crypto']['subtle'];if(!_0x1a24f1)return;const _0x3b66dd=await _0x1a24f1['importKey']('jwk',_0x3167ef,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1a24f1['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3b66dd,_0x4e0ff6,_0x2ec6db)||(_0x294902=!0x1);}}function _0x57dae7(_0x43292c){return _0x43292c['startsWith']('ey')?JSON['parse'](_0x472da5(_0x43292c)):null;}function _0x472da5(_0x410d3b){return window['atob'](_0x410d3b['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x31b6da(_0x3da205){let _0x3e673e=0x1505;function _0xf78d8b(_0xfa4dc6){for(let _0x54c4bb=0x0;_0x54c4bb<_0xfa4dc6['length'];_0x54c4bb++){const _0x4ccc38=_0xfa4dc6['charCodeAt'](_0x54c4bb);_0x3e673e=(_0x3e673e<<0x5)+_0x3e673e+_0x4ccc38,_0x3e673e&=_0x3e673e;}}function _0x33cddc(_0x598d62){Array['isArray'](_0x598d62)?_0x598d62['forEach'](_0x33cddc):_0x598d62&&'object'==typeof _0x598d62?Object['entries'](_0x598d62)['sort']()['forEach'](([_0x2a09b2,_0xc5de75])=>{_0xf78d8b(_0x2a09b2),_0x33cddc(_0xc5de75);}):_0xf78d8b(window['String'](_0x598d62));}return _0x33cddc(_0x3da205),_0x3e673e>>>0x0;}function _0x13762c(_0x3d7efb){return _0x3d7efb['toString'](0x10)['padStart'](0x8,'0');}function _0x2b4702(_0x2c35d1){return _0x2c35d1['split']('')['reverse']()['join']('');}function _0x221e2e(){}_0x349b61(await _0x3b304f());}_0x2cf96c(_0x235f2b['editor']);}(this);}_initSchema(){const _0xe1b6ed=this['editor']['model']['schema'];_0xe1b6ed['isRegistered']('imageBlock')&&_0xe1b6ed['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xe1b6ed['isRegistered']('imageInline')&&_0xe1b6ed['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}_initConversion(){const _0x509891=this['editor'];_0x509891['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x509891['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xe86646=>_0xe86646['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5dca33=_0x509891['commands']['get']('replaceImageSource');_0x5dca33&&this['listenTo'](_0x5dca33,'cleanupImage',(_0x20f7fd,[_0x37bc51,_0x5c8320])=>{_0x37bc51['removeAttribute']('uploadcareImageId',_0x5c8320);});}_initConfig(){const _0x1235f6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x57ccb7=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x18668e(_0x377dcc['document'],'uc-config',{..._0x1235f6,'pubkey':_0x57ccb7,'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']=_0x5b5630=>{if('closeMax'==_0x5b5630)return'#uc-icon-arrow-down';},_0x377dcc['document']['body']['appendChild'](this['_configElement']);}_initCtx(){this['_ctxElement']=_0x18668e(_0x377dcc['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x377dcc['document']['body']['appendChild'](this['_ctxElement']);}_initImageProcessingIndicator(){const _0x563f5c=this['editor']['commands']['get']('insertImage');_0x563f5c&&this['listenTo'](_0x563f5c,'execute',()=>{const _0xc9600f=this['editor']['model']['document']['selection']['getSelectedElement']();_0xc9600f&&_0xc9600f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0xc9600f);});});const _0x3e6369=this['editor']['commands']['get']('uploadcareImageReplace');_0x3e6369&&this['listenTo'](_0x3e6369,'execute',()=>{const _0x45f0a7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x45f0a7&&_0x45f0a7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{q(this['editor'],_0x45f0a7);});});}},Y=class extends _0x4ce4b9{static get requires(){return[Z,V];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c4e8e){super(_0x3c4e8e),_0x3c4e8e['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x37fdc4['defineComponents'](_0x37fdc4),this['_defineLocale']();}['_defineLocale'](){const _0x113e8f=this['editor']['config']['get']('uploadcare.locale'),_0x5e3485=this['editor']['locale']['contentLanguage'];_0x113e8f&&_0x37fdc4['defineLocale'](_0x5e3485,_0x113e8f);}},tt=class extends _0x1d88f9{constructor(_0x142155){super(_0x142155);const t=_0x142155['t'],_0x39c2da=this['bindTemplate'],_0x299e5a=new _0x59a3ea();_0x299e5a['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':[_0x299e5a,{'text':_0x39c2da['to']('imageUploadProgress',_0x2d19fc=>t('Loading\x20image...')+'\x20('+(_0x2d19fc||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'}]}]}]});}},et=class extends _0x1d88f9{constructor(_0x16cbff){super(_0x16cbff);const t=_0x16cbff['t'];this['set']('errorType',null);const _0xf82251=new _0x18031b(_0x16cbff);_0xf82251['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xf82251['withText']=!0x0,_0xf82251['class']='ck-button-action',_0xf82251['on']('execute',()=>{this['fire']('retry');}),_0xf82251['bind']('isVisible')['to'](this,'errorType',_0x2a8e77=>'NotFound'!==_0x2a8e77);const _0x11dea4=new _0x3d9ba6();_0x11dea4['content']=_0x4e4918,_0x11dea4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x357a91=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':[_0x11dea4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x357a91['to']('errorType',_0x55e16c=>t('NotFound'!==_0x55e16c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xf82251]},{'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'}]}]}]});}},it=class extends _0x1d88f9{constructor(_0x7659f0,_0x53317a){super(_0x7659f0);const _0x2458fa=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x53317a,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2458fa['to']('imageSrc')}});}},st=class extends F{_items;['_loadingView'];['_errorView'];_editingView;['_focusableView'];constructor(_0xa5e829,_0x508eeb,_0x23e24b){super(_0xa5e829),this['_items']=this['createCollection'](),this['_loadingView']=new tt(_0xa5e829),this['_errorView']=new et(_0xa5e829),this['_editingView']=new it(_0xa5e829,_0x23e24b),this['_focusableView']=new _0x1d88f9(_0xa5e829),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x508eeb),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'],_0x418c5c=>{this['_addUploadcareImageEditorListeners'](_0x418c5c);});}),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(_0x42db61,_0x3fc0c0){const _0x364e07='uc-cloud-image-editor',_0xb80540=_0x42db61['querySelector'](_0x364e07);if(_0xb80540)return _0x3fc0c0(_0xb80540);const _0xb330f1=new MutationObserver(_0x1b818f=>{const _0x7e45a2=_0x1b818f['filter'](_0x555329=>_0x555329['target']===_0x42db61&&_0x555329['addedNodes']['length']>0x0&&_0x555329['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x364e07);_0x7e45a2['length']&&(_0xb330f1['disconnect'](),_0x3fc0c0(_0x7e45a2[0x0]['addedNodes'][0x0]));});_0xb330f1['observe'](_0x42db61,{'childList':!0x0,'subtree':!0x0});}_addUploadcareImageEditorListeners(_0x97e87c){_0x97e87c['addEventListener']('apply',_0x7843ca=>{this['fire']('apply',{'imageSrc':_0x7843ca['detail']['cdnUrl']});}),_0x97e87c['addEventListener']('cancel',()=>{this['fire']('cancel');});}_addErrorViewListeners(){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}};const nt=/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5200fd();var rt=class extends nt{_editor;['_dialog'];_imageElement;['_imageCache'];_controller;_attributes;constructor(_0x2c6f99,_0x55448d,_0x52d754){super(),this['_editor']=_0x2c6f99,this['_dialog']=_0x55448d,this['_imageElement']=_0x52d754,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 _0x209419=this['_imageElement'],_0x53d4b7=_0x209419['getAttribute']('uploadcareImageId'),_0x1dfe05=_0x209419['getAttribute']('src');if(_0x53d4b7)await this['_loadImageInfo'](_0x53d4b7,_0x1dfe05);else{if(this['_imageCache']['has'](_0x1dfe05)){const _0x32e30a=this['_imageCache']['get'](_0x1dfe05);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32e30a['url'],this['imageDimension']=_0x32e30a['dimension'],this['imageId']=_0x32e30a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2001ea}=this['_editor'],t=_0x2001ea['t'],_0x4651d1=new st(_0x2001ea,this['imageStatus'],this['_attributes']);_0x4651d1['bind']('status')['to'](this,'imageStatus'),_0x4651d1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4651d1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4651d1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4651d1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1b8f07,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4651d1,'position':_0x46dfc6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4651d1['focus']();},'onHide':()=>{_0x4651d1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x296f69=>!H(_0x296f69,_0x4651d1['element'])}});}['_loadImageInfo'](_0x55db35,_0x3d60e4){return Q['getInfo'](_0x55db35,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x408646=>{const {width:_0xe38f0e,height:_0xacda87}=_0x408646['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d60e4,this['imageDimension']={'width':_0xe38f0e,'height':_0xacda87},this['imageId']=_0x55db35;})['catch'](_0x1a55f8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1a55f8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x95fbf6,_0x3b1a64){return this['_getImageAsFile'](_0x95fbf6)['then'](_0x4c7bf5=>Q['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':_0x3b1a64['signal'],'file':_0x4c7bf5,'onProgress':_0x4779b5=>{_0x4779b5&&_0x4779b5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4779b5['value']));}}))['then'](_0x2411ff=>{const {width:_0x35f6e7,height:_0x15a2d4}=_0x2411ff['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2411ff['cdnUrl'],this['imageDimension']={'width':_0x35f6e7,'height':_0x15a2d4},this['imageId']=_0x2411ff['uuid'],this['imageUploadProgress']=null;const _0x1f47a8=_0x95fbf6['getAttribute']('src');this['_imageCache']['set'](_0x1f47a8,{'id':_0x2411ff['uuid'],'url':_0x2411ff['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1d8a92=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1d8a92['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}_addEditViewListeners(_0x53ed10,_0x2e9a64){_0x53ed10['on']('apply',(_0x87f929,_0x16f106)=>{this['_replaceImage'](_0x2e9a64,_0x16f106['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x53ed10['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x53ed10['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x38229a,_0x2d84d1,_0x185b15){const _0x304ae1=this['_editor'],{width:_0xac5349,height:_0x328211}=j(_0x2d84d1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x467944,imageSources:_0x21b15e}=B(_0x2d84d1,_0xac5349);_0x304ae1['model']['change'](_0x50dc7a=>{if('$graveyard'!==_0x38229a['root']['rootName'])_0x50dc7a['setSelection'](_0x38229a,'on'),_0x304ae1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x38229a['getAttributes']()),'uploadcareImageId':_0x185b15,'src':_0x467944,'sources':_0x21b15e,'width':_0xac5349,'height':_0x328211},_0x38229a);else{_0x304ae1['execute']('insertImage',{'imageType':_0x38229a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x38229a['getAttributes']()),'uploadcareImageId':_0x185b15,'src':_0x467944,'sources':_0x21b15e,'width':_0xac5349,'height':_0x328211}});const _0x4a16bf=_0x38229a['getChildren']();_0x38229a=_0x304ae1['model']['document']['selection']['getSelectedElement']();for(const _0x17967a of _0x4a16bf)_0x50dc7a['append'](_0x50dc7a['cloneElement'](_0x17967a),_0x38229a);}_0x50dc7a['setSelection'](_0x38229a,'on');});}async _getImageAsFile(_0x418bb9){const _0x40d558=_0x377dcc['window'],_0x524eaa=_0x377dcc['document']['location']['href'],_0x3476e8=new _0x40d558['URL'](_0x418bb9['getAttribute']('src'),_0x524eaa);if('data:'===_0x3476e8['protocol']){const _0x2ca8c1=_0x3476e8['href']['split'](','),_0x2bdfa0=_0x2ca8c1[0x0]['match'](/:(.*?);/)[0x1],_0x54d4e4=_0x2bdfa0['split']('/')[0x1],_0x30204c=_0x40d558['atob'](_0x2ca8c1[_0x2ca8c1['length']-0x1]);let _0x25c68f=_0x30204c['length'];const _0x4524c4=new _0x40d558['Uint8Array'](_0x25c68f);for(;_0x25c68f--;)_0x4524c4[_0x25c68f]=_0x30204c['charCodeAt'](_0x25c68f);return new _0x40d558['File']([_0x4524c4],'image.'+_0x54d4e4,{'type':_0x2bdfa0});}const _0xd84fc0=_0x3476e8['href']['split']('/'),_0x121aee=_0xd84fc0[_0xd84fc0['length']-0x1],_0x3ac31a=_0x121aee['split']('.')[0x1];return _0x40d558['fetch'](_0x3476e8['href'])['then'](_0x5d7dc2=>_0x5d7dc2['clone']()['blob']())['then'](_0x4541ad=>new _0x40d558['File']([_0x4541ad],_0x121aee,{'type':'image/'+_0x3ac31a}));}},at=class extends _0x32dd66{imageEditController;static get requires(){return[_0x45b9b7];}_isEditable;constructor(_0x21cbf7){super(_0x21cbf7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x18b72c){const _0x44dae9=M(_0x18b72c);return _0x46fb5f=>!(!_0x46fb5f||!_0x46fb5f['is']('element','imageBlock')&&!_0x46fb5f['is']('element','imageInline'))&&(!!_0x46fb5f['hasAttribute']('uploadcareImageId')||!!_0x46fb5f['hasAttribute']('src')&&_0x44dae9(_0x46fb5f['getAttribute']('src')));}(_0x21cbf7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x239a60=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x239a60);}execute(){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4ca676=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4ca676&&(_0x4ca676['is']('element','imageBlock')||_0x4ca676['is']('element','imageInline'))&&(this['imageEditController']=new rt(this['editor'],this['editor']['plugins']['get'](_0x45b9b7),_0x4ca676),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}},ot=class extends _0x32dd66{['refresh'](){const _0xb8f8e1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xb8f8e1&&(_0xb8f8e1['is']('element','imageBlock')||_0xb8f8e1['is']('element','imageInline')));}execute(_0x1ffb64){const _0x32050d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x354627=>{_0x354627['setAttributes'](_0x1ffb64,_0x32050d),_0x354627['removeAttribute']('srcset',_0x32050d),_0x354627['removeAttribute']('sizes',_0x32050d);});}},ct=class extends _0x4ce4b9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get requires(){return[Z,_0x31568e,_0x2a5c9d,_0x500b2d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {editor:_0x59e8d5}=this;_0x59e8d5['commands']['add']('uploadcareImageEdit',new at(_0x59e8d5)),_0x59e8d5['commands']['add']('uploadcareImageReplace',new ot(_0x59e8d5));}},lt=class extends _0x4ce4b9{['_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 _0x3fb545=this['editor'];_0x3fb545['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5b6000=>{const _0x5320d3=_0x3fb545['commands']['get']('uploadcareImageEdit'),_0x574b28=new _0x18031b(_0x5b6000),t=_0x5b6000['t'];return _0x574b28['set']({'icon':_0x1b8f07,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x574b28['bind']('isEnabled')['to'](_0x5320d3),_0x574b28['bind']('isOn')['to'](_0x5320d3,'isActive'),this['listenTo'](_0x574b28,'execute',()=>{_0x3fb545['execute']('uploadcareImageEdit'),_0x3fb545['editing']['view']['focus']();}),_0x574b28;}),this['_initConfig']();}_initConfig(){const _0x47999c=_0x18668e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x47999c),this['listenTo'](this['editor'],'destroy',()=>{_0x47999c['remove']();});}},ut=class extends _0x4ce4b9{static get['pluginName'](){return'UploadcareImageEdit';}static get requires(){return[ct,lt];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{Y as Uploadcare,z as UploadcareCommand,Z as UploadcareEditing,ut as UploadcareImageEdit,at as UploadcareImageEditCommand,ct as UploadcareImageEditEditing,lt as UploadcareImageEditUI,V as UploadcareUI,J as UploadcareUploadAdapter};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x110eb0=>{const {af:_0x48396d}={'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.':''}}};_0x110eb0['af']||={'dictionary':{},'getPluralForm':null},_0x110eb0['af']['dictionary']=Object['assign'](_0x110eb0['af']['dictionary'],_0x48396d['dictionary']),_0x48396d['getPluralForm']&&(_0x110eb0['af']['getPluralForm']=_0x48396d['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4fd12d=>{const {ar:_0x1e47ae}={'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مصدرها.'}}};_0x4fd12d['ar']||={'dictionary':{},'getPluralForm':null},_0x4fd12d['ar']['dictionary']=Object['assign'](_0x4fd12d['ar']['dictionary'],_0x1e47ae['dictionary']),_0x1e47ae['getPluralForm']&&(_0x4fd12d['ar']['getPluralForm']=_0x1e47ae['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x18eac9=>{const {ast:_0xa5517e}={'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.':''}}};_0x18eac9['ast']||={'dictionary':{},'getPluralForm':null},_0x18eac9['ast']['dictionary']=Object['assign'](_0x18eac9['ast']['dictionary'],_0xa5517e['dictionary']),_0xa5517e['getPluralForm']&&(_0x18eac9['ast']['getPluralForm']=_0xa5517e['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x420464=>{const {az:_0x2fa1ad}={'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.':''}}};_0x420464['az']||={'dictionary':{},'getPluralForm':null},_0x420464['az']['dictionary']=Object['assign'](_0x420464['az']['dictionary'],_0x2fa1ad['dictionary']),_0x2fa1ad['getPluralForm']&&(_0x420464['az']['getPluralForm']=_0x2fa1ad['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4298cc=>{const {be:_0x13f9ae}={'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.':''}}};_0x4298cc['be']||={'dictionary':{},'getPluralForm':null},_0x4298cc['be']['dictionary']=Object['assign'](_0x4298cc['be']['dictionary'],_0x13f9ae['dictionary']),_0x13f9ae['getPluralForm']&&(_0x4298cc['be']['getPluralForm']=_0x13f9ae['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a8523=>{const {bg:_0x16322c}={'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премахнат.'}}};_0x4a8523['bg']||={'dictionary':{},'getPluralForm':null},_0x4a8523['bg']['dictionary']=Object['assign'](_0x4a8523['bg']['dictionary'],_0x16322c['dictionary']),_0x16322c['getPluralForm']&&(_0x4a8523['bg']['getPluralForm']=_0x16322c['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2659e4=>{const {bn:_0xdd8716}={'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হয়েছে।'}}};_0x2659e4['bn']||={'dictionary':{},'getPluralForm':null},_0x2659e4['bn']['dictionary']=Object['assign'](_0x2659e4['bn']['dictionary'],_0xdd8716['dictionary']),_0xdd8716['getPluralForm']&&(_0x2659e4['bn']['getPluralForm']=_0xdd8716['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4c2e13=>{const {bs:_0x23e360}={'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.':''}}};_0x4c2e13['bs']||={'dictionary':{},'getPluralForm':null},_0x4c2e13['bs']['dictionary']=Object['assign'](_0x4c2e13['bs']['dictionary'],_0x23e360['dictionary']),_0x23e360['getPluralForm']&&(_0x4c2e13['bs']['getPluralForm']=_0x23e360['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x53c544=>{const {ca:_0x27a1eb}={'ca':{'dictionary':{'Insert\x20with\x20Dropbox':'Insereix\x20amb\x20Dropbox','Replace\x20with\x20Dropbox':'Substitueix\x20amb\x20Dropbox','With\x20Dropbox':'Amb\x20Dropbox','Insert\x20with\x20Facebook':'Insereix\x20amb\x20Facebook','Replace\x20with\x20Facebook':'Substitueix\x20amb\x20Facebook','With\x20Facebook':'Amb\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insereix\x20amb\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Substitueix\x20amb\x20Google\x20Drive','With\x20Google\x20Drive':'Amb\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insereix\x20amb\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Substitueix\x20amb\x20Google\x20Fotos','With\x20Google\x20Photos':'Amb\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Insereix\x20amb\x20OneDrive','Replace\x20with\x20OneDrive':'Substitueix\x20amb\x20OneDrive','With\x20OneDrive':'Amb\x20OneDrive','Replace\x20via\x20URL':'Substitueix\x20mitjançant\x20un\x20URL','Edit\x20Image\x20(Uploadcare)':'Edita\x20la\x20imatge','Loading\x20image...':'S\x27està\x20carregant\x20la\x20imatge...','Unable\x20to\x20load':'No\x20es\x20pot\x20carregar','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'No\x20hem\x20pogut\x20carregar\x20la\x20imatge\x20a\x20causa\x20dels\x20problemes\x20de\x20connexió\x20de\x20xarxa.','Try\x20again\x20(Uploadcare)':'Torna-ho\x20a\x20provar','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'No\x20s\x27ha\x20trobat\x20la\x20imatge.\x20És\x20possible\x20que\x20s\x27hagi\x20suprimit\x20la\x20seva\x20font.'}}};_0x53c544['ca']||={'dictionary':{},'getPluralForm':null},_0x53c544['ca']['dictionary']=Object['assign'](_0x53c544['ca']['dictionary'],_0x27a1eb['dictionary']),_0x27a1eb['getPluralForm']&&(_0x53c544['ca']['getPluralForm']=_0x27a1eb['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x601fa0=>{const {cs:_0x3f0f29}={'cs':{'dictionary':{'Insert\x20with\x20Dropbox':'Vložit\x20přes\x20Dropbox','Replace\x20with\x20Dropbox':'Nahradit\x20přes\x20Dropbox','With\x20Dropbox':'Přes\x20Dropbox','Insert\x20with\x20Facebook':'Vložit\x20přes\x20Facebook','Replace\x20with\x20Facebook':'Nahradit\x20přes\x20Facebook','With\x20Facebook':'Přes\x20Facebook','Insert\x20with\x20Google\x20Drive':'Vložit\x20přes\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Nahradit\x20přes\x20Google\x20Drive','With\x20Google\x20Drive':'Přes\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Vložit\x20přes\x20Fotky\x20Google','Replace\x20with\x20Google\x20Photos':'Nahradit\x20přes\x20Fotky\x20Google','With\x20Google\x20Photos':'Přes\x20Fotky\x20Google','Insert\x20with\x20OneDrive':'Vložit\x20přes\x20OneDrive','Replace\x20with\x20OneDrive':'Nahradit\x20přes\x20OneDrive','With\x20OneDrive':'Přes\x20OneDrive','Replace\x20via\x20URL':'Nahradit\x20přes\x20URL','Edit\x20Image\x20(Uploadcare)':'Upravit\x20obrázek','Loading\x20image...':'Načítání\x20obrázku...','Unable\x20to\x20load':'Nelze\x20načíst','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Obrázek\x20se\x20nám\x20nepodařilo\x20načíst\x20kvůli\x20problémům\x20se\x20síťovým\x20připojením.','Try\x20again\x20(Uploadcare)':'Zkusit\x20znovu','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Obrázek\x20nebyl\x20nalezen.\x20Jeho\x20zdroj\x20mohl\x20být\x20odstraněn.'}}};_0x601fa0['cs']||={'dictionary':{},'getPluralForm':null},_0x601fa0['cs']['dictionary']=Object['assign'](_0x601fa0['cs']['dictionary'],_0x3f0f29['dictionary']),_0x3f0f29['getPluralForm']&&(_0x601fa0['cs']['getPluralForm']=_0x3f0f29['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x354f0e=>{const {da:_0x1c65e3}={'da':{'dictionary':{'Insert\x20with\x20Dropbox':'Indsæt\x20med\x20Dropbox','Replace\x20with\x20Dropbox':'Erstat\x20med\x20Dropbox','With\x20Dropbox':'Med\x20Dropbox','Insert\x20with\x20Facebook':'Indsæt\x20med\x20Facebook','Replace\x20with\x20Facebook':'Erstat\x20med\x20Facebook','With\x20Facebook':'Med\x20Facebook','Insert\x20with\x20Google\x20Drive':'Indsæt\x20med\x20Google\x20Drev','Replace\x20with\x20Google\x20Drive':'Erstat\x20med\x20Google\x20Drev','With\x20Google\x20Drive':'Med\x20Google\x20Drev','Insert\x20with\x20Google\x20Photos':'Indsæt\x20med\x20Google\x20Fotos','Replace\x20with\x20Google\x20Photos':'Erstat\x20med\x20Google\x20Fotos','With\x20Google\x20Photos':'Med\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Indsæt\x20med\x20OneDrive','Replace\x20with\x20OneDrive':'Erstat\x20med\x20OneDrive','With\x20OneDrive':'Med\x20OneDrive','Replace\x20via\x20URL':'Erstat\x20via\x20URL','Edit\x20Image\x20(Uploadcare)':'Rediger\x20billede','Loading\x20image...':'Indlæser\x20billede...','Unable\x20to\x20load':'Kunne\x20ikke\x20indlæse','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Vi\x20kunne\x20ikke\x20indlæse\x20billede\x20på\x20grund\x20af\x20fejl\x20i\x20netværksforbindelsen.','Try\x20again\x20(Uploadcare)':'Prøv\x20igen','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Billedet\x20kunne\x20ikke\x20findes.\x20Dets\x20kilde\x20kan\x20være\x20blevet\x20fjernet.'}}};_0x354f0e['da']||={'dictionary':{},'getPluralForm':null},_0x354f0e['da']['dictionary']=Object['assign'](_0x354f0e['da']['dictionary'],_0x1c65e3['dictionary']),_0x1c65e3['getPluralForm']&&(_0x354f0e['da']['getPluralForm']=_0x1c65e3['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4bf897=>{const {'de-ch':_0x2fdac4}={'de-ch':{'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.':''}}};_0x4bf897['de-ch']||={'dictionary':{},'getPluralForm':null},_0x4bf897['de-ch']['dictionary']=Object['assign'](_0x4bf897['de-ch']['dictionary'],_0x2fdac4['dictionary']),_0x2fdac4['getPluralForm']&&(_0x4bf897['de-ch']['getPluralForm']=_0x2fdac4['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x592192=>{const {de:_0x734eca}={'de':{'dictionary':{'Insert\x20with\x20Dropbox':'Mit\x20Dropbox\x20einfügen','Replace\x20with\x20Dropbox':'Mit\x20Dropbox\x20ersetzen','With\x20Dropbox':'Mit\x20Dropbox','Insert\x20with\x20Facebook':'Mit\x20Facebook\x20einfügen','Replace\x20with\x20Facebook':'Mit\x20Facebook\x20ersetzen','With\x20Facebook':'Mit\x20Facebook','Insert\x20with\x20Google\x20Drive':'Mit\x20Google\x20Drive\x20einfügen','Replace\x20with\x20Google\x20Drive':'Mit\x20Google\x20Drive\x20ersetzen','With\x20Google\x20Drive':'Mit\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Mit\x20Google\x20Fotos\x20einfügen','Replace\x20with\x20Google\x20Photos':'Mit\x20Google\x20Fotos\x20ersetzen','With\x20Google\x20Photos':'Mit\x20Google\x20Fotos','Insert\x20with\x20OneDrive':'Mit\x20OneDrive\x20einfügen','Replace\x20with\x20OneDrive':'Mit\x20OneDrive\x20ersetzen','With\x20OneDrive':'Mit\x20OneDrive','Replace\x20via\x20URL':'Über\x20URL\x20ersetzen','Edit\x20Image\x20(Uploadcare)':'Bild\x20bearbeiten','Loading\x20image...':'Bild\x20wird\x20geladen','Unable\x20to\x20load':'Ladevorgang\x20fehlgeschlagen','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Das\x20Bild\x20konnte\x20wegen\x20Problemen\x20mit\x20der\x20Netzwerkverbindung\x20nicht\x20geladen\x20werden.','Try\x20again\x20(Uploadcare)':'Erneut\x20versuchen','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Das\x20Bild\x20wurde\x20nicht\x20gefunden.\x20Möglicherweise\x20wurde\x20die\x20Quelle\x20entfernt.'}}};_0x592192['de']||={'dictionary':{},'getPluralForm':null},_0x592192['de']['dictionary']=Object['assign'](_0x592192['de']['dictionary'],_0x734eca['dictionary']),_0x734eca['getPluralForm']&&(_0x592192['de']['getPluralForm']=_0x734eca['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3f5904=>{const {el:_0x52bfb5}={'el':{'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με\x20Φωτογραφίες\x20Google','Replace\x20with\x20Google\x20Photos':'Αντικατάσταση\x20με\x20Φωτογραφίες\x20Google','With\x20Google\x20Photos':'Με\x20Φωτογραφίες\x20Google','Insert\x20with\x20OneDrive':'Εισαγωγή\x20με\x20OneDrive','Replace\x20with\x20OneDrive':'Αντικατάσταση\x20με\x20OneDrive','With\x20OneDrive':'Με\x20OneDrive','Replace\x20via\x20URL':'Αντικατάσταση\x20μέσω\x20URL','Edit\x20Image\x20(Uploadcare)':'Επεξεργασία\x20εικόνας','Loading\x20image...':'Φόρτωση\x20εικόνας...','Unable\x20to\x20load':'Δεν\x20είναι\x20δυνατή\x20η\x20φόρτωση','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Δεν\x20ήταν\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έχει\x20καταργηθεί.'}}};_0x3f5904['el']||={'dictionary':{},'getPluralForm':null},_0x3f5904['el']['dictionary']=Object['assign'](_0x3f5904['el']['dictionary'],_0x52bfb5['dictionary']),_0x52bfb5['getPluralForm']&&(_0x3f5904['el']['getPluralForm']=_0x52bfb5['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x21ade5=>{const {'en-au':_0x395806}={'en-au':{'dictionary':{'Insert\x20with\x20Dropbox':'Insert\x20with\x20Dropbox','Replace\x20with\x20Dropbox':'Replace\x20with\x20Dropbox','With\x20Dropbox':'With\x20Dropbox','Insert\x20with\x20Facebook':'Insert\x20with\x20Facebook','Replace\x20with\x20Facebook':'Replace\x20with\x20Facebook','With\x20Facebook':'With\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insert\x20with\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive','With\x20Google\x20Drive':'With\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insert\x20with\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos','With\x20Google\x20Photos':'With\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Insert\x20with\x20OneDrive','Replace\x20with\x20OneDrive':'Replace\x20with\x20OneDrive','With\x20OneDrive':'With\x20OneDrive','Replace\x20via\x20URL':'Replace\x20via\x20URL','Edit\x20Image\x20(Uploadcare)':'Edit\x20image','Loading\x20image...':'Loading\x20image...','Unable\x20to\x20load':'Unable\x20to\x20load','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.','Try\x20again\x20(Uploadcare)':'Try\x20again','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'}}};_0x21ade5['en-au']||={'dictionary':{},'getPluralForm':null},_0x21ade5['en-au']['dictionary']=Object['assign'](_0x21ade5['en-au']['dictionary'],_0x395806['dictionary']),_0x395806['getPluralForm']&&(_0x21ade5['en-au']['getPluralForm']=_0x395806['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x53d146=>{const {'en-gb':_0x52b8d3}={'en-gb':{'dictionary':{'Insert\x20with\x20Dropbox':'Insert\x20with\x20Dropbox','Replace\x20with\x20Dropbox':'Replace\x20with\x20Dropbox','With\x20Dropbox':'With\x20Dropbox','Insert\x20with\x20Facebook':'Insert\x20with\x20Facebook','Replace\x20with\x20Facebook':'Replace\x20with\x20Facebook','With\x20Facebook':'With\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insert\x20with\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive','With\x20Google\x20Drive':'With\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insert\x20with\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos','With\x20Google\x20Photos':'With\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Insert\x20with\x20OneDrive','Replace\x20with\x20OneDrive':'Replace\x20with\x20OneDrive','With\x20OneDrive':'With\x20OneDrive','Replace\x20via\x20URL':'Replace\x20via\x20URL','Edit\x20Image\x20(Uploadcare)':'Edit\x20image','Loading\x20image...':'Loading\x20image...','Unable\x20to\x20load':'Unable\x20to\x20load','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.','Try\x20again\x20(Uploadcare)':'Try\x20again','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'}}};_0x53d146['en-gb']||={'dictionary':{},'getPluralForm':null},_0x53d146['en-gb']['dictionary']=Object['assign'](_0x53d146['en-gb']['dictionary'],_0x52b8d3['dictionary']),_0x52b8d3['getPluralForm']&&(_0x53d146['en-gb']['getPluralForm']=_0x52b8d3['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4271f4=>{const {en:_0x2a3b2a}={'en':{'dictionary':{'Insert\x20with\x20Dropbox':'Insert\x20with\x20Dropbox','Replace\x20with\x20Dropbox':'Replace\x20with\x20Dropbox','With\x20Dropbox':'With\x20Dropbox','Insert\x20with\x20Facebook':'Insert\x20with\x20Facebook','Replace\x20with\x20Facebook':'Replace\x20with\x20Facebook','With\x20Facebook':'With\x20Facebook','Insert\x20with\x20Google\x20Drive':'Insert\x20with\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive','With\x20Google\x20Drive':'With\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Insert\x20with\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos','With\x20Google\x20Photos':'With\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Insert\x20with\x20OneDrive','Replace\x20with\x20OneDrive':'Replace\x20with\x20OneDrive','With\x20OneDrive':'With\x20OneDrive','Replace\x20via\x20URL':'Replace\x20via\x20URL','Edit\x20Image\x20(Uploadcare)':'Edit\x20image','Loading\x20image...':'Loading\x20image...','Unable\x20to\x20load':'Unable\x20to\x20load','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.','Try\x20again\x20(Uploadcare)':'Try\x20again','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'}}};_0x4271f4['en']||={'dictionary':{},'getPluralForm':null},_0x4271f4['en']['dictionary']=Object['assign'](_0x4271f4['en']['dictionary'],_0x2a3b2a['dictionary']),_0x2a3b2a['getPluralForm']&&(_0x4271f4['en']['getPluralForm']=_0x2a3b2a['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|