CKEDITOR.dialog.add("embedBase",(function(e){var t=e.lang.embedbase;return{title:t.title,minWidth:350,minHeight:50,onLoad:function(){function t(){n.setState(CKEDITOR.DIALOG_STATE_IDLE),i=null}var n=this,i=null;this.on("ok",(function(a){a.data.hide=!1,a.stop(),n.setState(CKEDITOR.DIALOG_STATE_BUSY);var l=n.getValueOf("info","url");i=n.widget.loadContent(l,{noNotifications:!0,callback:function(){n.widget.isReady()||e.widgets.finalizeCreation(n.widget.wrapper.getParent(!0)),e.fire("saveSnapshot"),n.hide(),t()},errorCallback:function(e){n.getContentElement("info","url").select(),alert(n.widget.getErrorMessage(e,l,"Given")),t()}})}),null,null,15),this.on("cancel",(function(e){e.data.hide&&i&&(i.cancel(),t())}))},contents:[{id:"info",elements:[{type:"text",id:"url",label:e.lang.common.url,required:!0,setup:function(e){this.setValue(e.data.url)},validate:function(){return!!this.getDialog().widget.isUrlValid(this.getValue())||t.unsupportedUrlGiven}}]}]}}));