(function(){function aj(){return"ckeditor";}function h(aD){return aD.elementMode==3;}function C(aD){return aD.name.replace(/\[/,"_").replace(/\]/,"_");}function k(aD){return aD.container.$;}function d(aD){return aD.document.$;}function N(aD){return aD.getSnapshot();}function P(aE,aD){aE.loadSnapshot(aD);}function W(aE){if(aE.getSelection()==null){return null;}var aD=aE.getSelection().getStartElement();if(aD&&aD.$){return aD.$;}return null;}function S(){return CKEDITOR.basePath;}function av(){return i("jsplus_bootstrap_icons");}function i(aD){return CKEDITOR.plugins.getPath(aD);}function L(){return CKEDITOR.version.charAt(0)=="3"?3:4;}function w(aF,aE){if(L()==3){var aD=(aE.indexOf("jsplus_bootstrap_icons_")==-1)?("jsplus_bootstrap_icons_"+aE):aE;if(typeof(aF.lang[aD])!=="undefined"){return aF.lang[aD];}else{console.log("(v3) editor.lang['jsplus_bootstrap_icons'] not defined");}}else{if(typeof(aF.lang["jsplus_bootstrap_icons"])!=="undefined"){if(typeof(aF.lang["jsplus_bootstrap_icons"][aE])!=="undefined"){return aF.lang["jsplus_bootstrap_icons"][aE];}else{console.log("editor.lang['jsplus_bootstrap_icons']['"+aE+"'] not defined");}}else{console.log("editor.lang['jsplus_bootstrap_icons'] not defined");}}return"";}function T(aE,aD){return R(aE,"jsplus_bootstrap_icons_"+aD);}function R(aE,aD){var aF=aE.config[aD];return aF;}function v(aD,aE){V("jsplus_bootstrap_icons_"+aD,aE);}function V(aD,aE){CKEDITOR.config[aD]=aE;}function ar(aF,aE){var aD=CKEDITOR.dom.element.createFromHtml(aE);aF.insertElement(aD);}function s(){return"";}var Q=0;var F=1;var K=2;function q(aD,aG,aE){var aF=null;if(aE==Q){aF=CKEDITOR.TRISTATE_DISABLED;}else{if(aE==F){aF=CKEDITOR.TRISTATE_OFF;}else{if(aE==K){aF=CKEDITOR.TRISTATE_ON;}}}if(aF!=null&&aD.ui&&aD.ui.get(aG)){aD.ui.get(aG).setState(aF);}}function O(aD,aE){aD.on("selectionChange",function(aF){aE(aF.editor);});}function E(aE,aD,aF){if(aD=="beforeGetOutputHTML"){aE.on("toDataFormat",function(aG){return aF(aE,aG.data.dataValue);},null,null,4);return;}aE.on(aD,(function(){var aG=aE;return function(){aF(aG);};})());}function x(aF,aD,aI,aG,aH,aE){aF.addCommand(aD,{exec:aH});aF.ui.addButton(aD,{title:w(aF,aG.replace(/^jsplus_/,"")),label:w(aF,aG.replace(/^jsplus_/,"")),icon:av()+"icons/"+aI+".png",command:aI});}function r(aD){return aD.mode=="wysiwyg";}function ae(aE,aD,aF){CKEDITOR.plugins.add(aE,{icons:aE,lang:aD,init:function(aG){aF(aG);}});}function e(){JSDialog.Config.skin=null;JSDialog.Config.templateDialog='
";JSDialog.Config.templateButton='';JSDialog.Config.templateBg='';JSDialog.Config.classButton="cke_dialog_ui_button";JSDialog.Config.classButtonOk="cke_dialog_ui_button_ok";JSDialog.Config.contentBorders=[3,1,15,1,65];CKEDITOR.skin.loadPart("dialog");z(document,".jsdialog_plugin_jsplus_bootstrap_icons.jsdialog_bg { background-color: white; opacity: 0.5; position: fixed; left: 0; top: 0; width: 100%; height: 3000px; z-index: 11111; display: none; }"+".jsdialog_plugin_jsplus_bootstrap_icons.jsdialog_dlg { font-family: Arial; padding: 0; position: fixed; z-index: 11112; background-color: white; border-radius: 5px; overflow:hidden; display: none; }"+".jsdialog_plugin_jsplus_bootstrap_icons.jsdialog_show { display: block; }"+".jsdialog_plugin_jsplus_bootstrap_icons .jsdialog_message_contents { font-size: 16px; padding: 10px 0 10px 7px; display: table; overflow: hidden; }"+".jsdialog_plugin_jsplus_bootstrap_icons .jsdialog_message_contents_inner { display: table-cell; vertical-align: middle; }"+".jsdialog_plugin_jsplus_bootstrap_icons .jsdialog_message_icon { padding-left: 100px; min-height: 64px; background-position: 10px 10px; background-repeat: no-repeat; box-sizing: content-box; }"+".jsdialog_plugin_jsplus_bootstrap_icons .jsdialog_message_icon_info { background-image: url(img/info.png); }"+".jsdialog_plugin_jsplus_bootstrap_icons .jsdialog_message_icon_warning { background-image: url(img/warning.png); }"+".jsdialog_plugin_jsplus_bootstrap_icons .jsdialog_message_icon_error { background-image: url(img/error.png); }"+".jsdialog_plugin_jsplus_bootstrap_icons .jsdialog_message_icon_confirm { background-image: url(img/confirm.png); }"+".jsdialog_plugin_jsplus_bootstrap_icons .cke_dialog_contents { margin-top: 0; border-top: none; }"+".jsdialog_plugin_jsplus_bootstrap_icons .cke_dialog_footer div { outline: none; }"+".jsdialog_plugin_jsplus_bootstrap_icons .cke_dialog_footer_buttons > .cke_dialog_ui_button { margin-right: 5px; }"+".jsdialog_plugin_jsplus_bootstrap_icons .cke_dialog_footer_buttons > .cke_dialog_ui_button:last-child { margin-right: 0; }"+".jsdialog_plugin_jsplus_bootstrap_icons .cke_dialog_title { cursor: default; }"+".jsdialog_plugin_jsplus_bootstrap_icons .cke_dialog_contents { padding: 0; }");
}function ah(){var aD=false;if(aD){var aH=window.location.hostname;var aG=0;var aE;var aF;if(aH.length!=0){for(aE=0,l=aH.length;aE'+''+''+aF+""+"";}else{if(p==1){aE+=''+''+''+aF+""+"
";}else{if(p==2){aE+=''+''+''+aF+""+"
";
}else{if(p==3){aE+=''+''+ao[aD]+""+"
";}}}}}return aE;}function aA(aI,aH){aI=aI.replace(/
/g,"");if(aH==0){return aI;}var aE="";var aD=0;while(aI.length>0){var aG=aI.charAt(0);aE+=aG;aD++;if(aD>=aH&&aG=="-"){aE+="
";aD=0;}aI=aI.substr(1);}if(aE.indexOf("
")==-1){var aF=aE.lastIndexOf("-");if(aE.length-aF>=aH){aE=aE.substr(0,aF+1)+"
"+aE.substr(aF+1);}}if(aE.indexOf("
")===0){aE=aE.substr(4,aE.length-4);}return aE;}function f(aD){if(aD===""){return false;}if(aD==="inherit"){return false;}if(aD==="transparent"){return false;}var aE=document.createElement("img");aE.style.color="rgb(0, 0, 0)";aE.style.color=aD;if(aE.style.color!=="rgb(0, 0, 0)"){return true;}aE.style.color="rgb(255, 255, 255)";aE.style.color=aD;return aE.style.color!=="rgb(255, 255, 255)";}var ak="black";function t(aH){var aD=document.getElementById("jsplus_bootstrap_icons-color-"+C(aH)).value;if(f(aD)){var aG=document.getElementsByClassName("jsplus_bootstrap_icons-glyphicon");for(var aE=0;aEj){aO=j;}var aL=document.getElementsByClassName("jsplus_bootstrap_icons-icon");for(var aG=0;aG=24){aJ.style.display="initial";aJ.style.marginTop="0";aJ.style.marginLeft="10px";aJ.innerHTML=aA(aJ.innerHTML,0);aJ.style.fontSize="14px";aJ.style.lineHeight="16px";}else{if(aO>=24&&af<24){aJ.style.display="block";aJ.style.marginTop="10px";aJ.style.marginLeft="0";aJ.innerHTML=aA(aJ.innerHTML,6);var aE=aJ.innerHTML.match(/
/g);if(aE!=null){c=aE.length;}else{c=0;}if(c>=2){aJ.style.fontSize="10px";aJ.style.lineHeight="10px";}else{if(c==1){aJ.style.fontSize="14px";aJ.style.lineHeight="14px";}else{aJ.style.fontSize="14px";aJ.style.lineHeight="16px";}}}}}var aN=document.getElementById("jsplus_bootstrap_icons-zoom-in-"+C(aK));if(aOn){aI.style.cursor="pointer";aI.style.filter="";aI.style.opacity="";}else{aI.style.cursor="arrow";aI.style.filter="alpha(opacity=25)";aI.style.opacity="0.25";}af=aO;}}var M=null;function D(){var aD=this;if(this.tagName.toLowerCase()!="div"){aD=this.parentElement;}M=aD;H();}function H(){var aE=document.getElementsByClassName("jsplus_bootstrap_icons-icon");for(var aF=0;aF0){var aI=aA(aD.getElementsByClassName("jsplus_bootstrap_icons-title")[0].innerHTML,0).trim();if(aI.length==0||aI.indexOf(aJ)!=-1){aD.style.display="inline-block";}else{aD.style.display="none";if(M==aD){aD.style.outline="";aD.style.backgroundColor="";M=null;}}}}}function Y(aH){var aK=T(aH,"images_generator_url");var aN=T(aH,"bitmap_allowed");var aO=T(aH,"default_as_bitmap");var aE=T(aH,"default_size");var aM=T(aH,"default_add_size_to_style");var aL=T(aH,"default_color");var aI=T(aH,"default_add_color_to_style");var aG=T(aH,"icons_panel_height");var aD='
'+'';
var aJ='";var aF='"+'"+''+''+g(aH)+"
";return aF;}function I(aH){document.getElementById("jsplus_bootstrap_icons-zoom-in-"+C(aH)).onclick=function(){var aP=af;if(aP<20){aP+=2;}else{if(aP<36){aP+=4;}else{if(aP<64){aP+=12;}else{aP+=24;}}}if(aP>j){aP=j;}document.getElementById("jsplus_bootstrap_icons-size-"+C(aH)).value=aP;J(aH);};document.getElementById("jsplus_bootstrap_icons-zoom-out-"+C(aH)).onclick=function(){var aP=af;if(aP<=20){aP-=2;}else{if(aP<=36){aP-=4;}else{if(aP<=64){aP-=12;}else{aP-=24;}}}if(aP';ar(aL,aJ);}else{if(aH||aN){aE=(aH?("font-size:"+af+"px;"):"")+(aN?("color:"+ak):"");}if(aE.length>0){aE=' style="'+aE+'"';}if(p==0){var aJ='";}else{if(p==1){var aJ='";}else{if(p==2){var aJ='";}else{if(p==3){var aJ=""+aO+"";}}}}ar(aL,aJ);}}function G(aD,aH,aF){if(typeof aH=="undefined"){aH=true;}if(typeof aF=="undefined"){aF=" ";}if(typeof(aD)=="undefined"){return"";}var aI=1000;if(aD=aI);return aD.toFixed(1)+aF+aE[aG]+(aH?"b":"");}function ac(aD){return aD.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");}function au(aD){return aD.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");}function ai(aD){var aE=document.createElement("div");aE.innerHTML=aD;return aE.childNodes;}function aq(aD){return aD.getElementsByTagName("head")[0];}function am(aD){return aD.getElementsByTagName("body")[0];}function ay(aF,aH){var aD=aF.getElementsByTagName("link");var aG=false;for(var aE=aD.length-1;aE>=0;aE--){if(aD[aE].href==aH){aD[aE].parentNode.removeChild(aD[aE]);}}}function aa(aG,aI){if(!aG){return;}var aD=aG.getElementsByTagName("link");var aH=false;for(var aE=0;aE-1){aE.splice(aE.indexOf(aD),1);}var aG=aE.join(" ").trim();if(aG.length>0){aF.className=aG;}else{if(aF.hasAttribute("class")){aF.removeAttribute("class");}}}function a(aD){if(typeof(aD.className)==="undefined"||aD.className==null){return[];}return aD.className.split(/\s+/);}function aC(aG,aD){var aF=a(aG);for(var aE=0;aE-1){aH[aI.substr(0,aD).trim()]=aI.substr(aD+1);}else{aH[aI]="";}}return aH;}function ag(aF,aE){var aG=X(aF);for(var aD in aG){var aH=aG[aD];if(aD==aE){return aH;}}return null;}function ab(aG,aF,aD){var aH=X(aG);for(var aE in aH){var aI=aH[aE];if(aE==aF&&aI==aD){return true;}}return false;}function B(aF,aE,aD){var aG=X(aF);aG[aE]=aD;u(aF,aG);}function Z(aE,aD){var aF=X(aE);delete aF[aD];u(aE,aF);}function u(aE,aG){var aF=[];for(var aD in aG){aF.push(aD+":"+aG[aD]);}if(aF.length>0){aE.setAttribute("style",aF.join(";"));}else{if(aE.hasAttribute("style")){aE.removeAttribute("style");}}}function y(aH,aE){var aF;if(Object.prototype.toString.call(aE)==="[object Array]"){aF=aE;}else{aF=[aE];}for(var aG=0;aG-1){aD.push(aH.childNodes[aG]);}}return aD;}CKEDITOR.plugins.add("jsplus_bootstrap_icons",{lang:"en",icons:"jsplus_bootstrap_icons",init:function(aD){var aE=this.path;aD.on("contentDom",function(){var aF=aD.document.$;CKEDITOR.dtd.$removeEmpty["span"]=false;ap(aD);});aD.addCommand("jsplus_bootstrap_icons-"+C(aD),new CKEDITOR.dialogCommand("jsplus_bootstrap_icons-"+C(aD)));aD.ui.addButton("jsplus_bootstrap_icons",{title:w(aD,"jsplus_bootstrap_icons_title"),icon:this.path+"icons/jsplus_bootstrap_icons.png",command:"jsplus_bootstrap_icons-"+C(aD)});CKEDITOR.dialog.add("jsplus_bootstrap_icons-"+C(aD),function(aF){return{title:w(aF,"jsplus_bootstrap_icons_title"),minWidth:540,width:540,resizable:false,onShow:function(){I(aF);},onOk:function(){A(aF);},contents:[{id:"tab1-"+C(aF),label:"",title:"",expand:true,padding:0,elements:[{id:"icons_jsplus_bootstrap_icons-"+C(aF),type:"html",html:Y(aF)}]}]};
});}});})();