Files
2024-11-10 11:11:35 +01:00

9 lines
45 KiB
JavaScript

(function(){function aM(){return"ckeditor";}function j(ba){return ba.elementMode==3;}function J(ba){return ba.name.replace(/\[/,"_").replace(/\]/,"_");}function o(ba){return ba.container.$;}function e(ba){return ba.document.$;}function ac(ba){return ba.getSnapshot();}function ag(bb,ba){bb.loadSnapshot(ba);}function av(bb){if(bb.getSelection()==null){return null;}var ba=bb.getSelection().getStartElement();if(ba&&ba.$){return ba.$;}return null;}function am(){return CKEDITOR.basePath;}function a1(){return k("jsplus_bootstrap_table_conf");}function k(ba){return CKEDITOR.plugins.getPath(ba);}function Z(){return CKEDITOR.version.charAt(0)=="3"?3:4;}function A(bc,bb){if(Z()==3){var ba=(bb.indexOf("jsplus_bootstrap_table_conf_")==-1)?("jsplus_bootstrap_table_conf_"+bb):bb;if(typeof(bc.lang[ba])!=="undefined"){return bc.lang[ba];}else{console.log("(v3) editor.lang['jsplus_bootstrap_table_conf'] not defined");}}else{if(typeof(bc.lang["jsplus_bootstrap_table_conf"])!=="undefined"){if(typeof(bc.lang["jsplus_bootstrap_table_conf"][bb])!=="undefined"){return bc.lang["jsplus_bootstrap_table_conf"][bb];}else{console.log("editor.lang['jsplus_bootstrap_table_conf']['"+bb+"'] not defined");}}else{console.log("editor.lang['jsplus_bootstrap_table_conf'] not defined");}}return"";}function ao(bb,ba){return al(bb,"jsplus_bootstrap_table_conf_"+ba);}function al(bb,ba){var bc=bb.config[ba];return bc;}function z(ba,bb){au("jsplus_bootstrap_table_conf_"+ba,bb);}function au(ba,bb){CKEDITOR.config[ba]=bb;}function aX(bc,bb){var ba=CKEDITOR.dom.element.createFromHtml(bb);bc.insertElement(ba);}function w(){return"";}var ai=0;var L=1;var Y=2;function u(ba,bd,bb){var bc=null;if(bb==ai){bc=CKEDITOR.TRISTATE_DISABLED;}else{if(bb==L){bc=CKEDITOR.TRISTATE_OFF;}else{if(bb==Y){bc=CKEDITOR.TRISTATE_ON;}}}if(bc!=null&&ba.ui&&ba.ui.get(bd)){ba.ui.get(bd).setState(bc);}}function ad(ba,bb){ba.on("selectionChange",function(bc){bb(bc.editor);});}function K(bb,ba,bc){if(ba=="beforeGetOutputHTML"){bb.on("toDataFormat",function(bd){return bc(bb,bd.data.dataValue);},null,null,4);return;}bb.on(ba,(function(){var bd=bb;return function(){bc(bd);};})());}function B(bc,ba,bf,bd,be,bb){bc.addCommand(ba,{exec:be});bc.ui.addButton(ba,{title:A(bc,bd.replace(/^jsplus_/,"")),label:A(bc,bd.replace(/^jsplus_/,"")),icon:a1()+"icons/"+bf+".png",command:bf});}function v(ba){return ba.mode=="wysiwyg";}function aD(bb,ba,bc){CKEDITOR.plugins.add(bb,{icons:bb,lang:ba,init:function(bd){bc(bd);}});}function f(){JSDialog.Config.skin=null;JSDialog.Config.templateDialog='<div class="jsdialog_plugin_jsplus_bootstrap_table_conf jsdialog_dlg cke_dialog cke_ltr">'+'<div class="cke_dialog_body">'+'<div class="jsdialog_title cke_dialog_title">'+'<div class="jsdialog_title_text"></div>'+'<a class="jsdialog_x cke_dialog_close_button" href="javascript:void(0)" style="-webkit-user-select: none;">'+'<span class="cke_label">X</span>'+"</a>"+"</div>"+'<div class="jsdialog_content_wrap cke_dialog_contents">'+'<div class="jsdialog_content"></div>'+"</div>"+'<div class="cke_dialog_footer">'+'<div class="jsdialog_buttons cke_dialog_footer_buttons"></div>'+"</div>"+"</div>"+"</div>";JSDialog.Config.templateButton='<a><span class="cke_dialog_ui_button"></span></a>';JSDialog.Config.templateBg='<div class="jsdialog_plugin_jsplus_bootstrap_table_conf jsdialog_bg"></div>';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");D(document,".jsdialog_plugin_jsplus_bootstrap_table_conf.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_table_conf.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_table_conf.jsdialog_show { display: block; }"+".jsdialog_plugin_jsplus_bootstrap_table_conf .jsdialog_message_contents { font-size: 16px; padding: 10px 0 10px 7px; display: table; overflow: hidden; }"+".jsdialog_plugin_jsplus_bootstrap_table_conf .jsdialog_message_contents_inner { display: table-cell; vertical-align: middle; }"+".jsdialog_plugin_jsplus_bootstrap_table_conf .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_table_conf .jsdialog_message_icon_info { background-image: url(img/info.png); }"+".jsdialog_plugin_jsplus_bootstrap_table_conf .jsdialog_message_icon_warning { background-image: url(img/warning.png); }"+".jsdialog_plugin_jsplus_bootstrap_table_conf .jsdialog_message_icon_error { background-image: url(img/error.png); }"+".jsdialog_plugin_jsplus_bootstrap_table_conf .jsdialog_message_icon_confirm { background-image: url(img/confirm.png); }"+".jsdialog_plugin_jsplus_bootstrap_table_conf .cke_dialog_contents { margin-top: 0; border-top: none; }"+".jsdialog_plugin_jsplus_bootstrap_table_conf .cke_dialog_footer div { outline: none; }"+".jsdialog_plugin_jsplus_bootstrap_table_conf .cke_dialog_footer_buttons > .cke_dialog_ui_button { margin-right: 5px; }"+".jsdialog_plugin_jsplus_bootstrap_table_conf .cke_dialog_footer_buttons > .cke_dialog_ui_button:last-child { margin-right: 0; }"+".jsdialog_plugin_jsplus_bootstrap_table_conf .cke_dialog_title { cursor: default; }"+".jsdialog_plugin_jsplus_bootstrap_table_conf .cke_dialog_contents { padding: 0; }");
}function aG(){var ba=false;if(ba){var be=window.location.hostname;var bd=0;var bb;var bc;if(be.length!=0){for(bb=0,l=be.length;bb<l;bb++){bc=be.charCodeAt(bb);bd=((bd<<5)-bd)+bc;bd|=0;}}if(bd!=1548386045){alert(atob("VGhpcyBpcyBkZW1vIHZlcnNpb24gb25seS4gUGxlYXNlIHB1cmNoYXNlIGl0"));return false;}}}function c(){var bb=false;if(bb){var bh=window.location.hostname;var bg=0;var bc;var bd;if(bh.length!=0){for(bc=0,l=bh.length;bc<l;bc++){bd=bh.charCodeAt(bc);bg=((bg<<5)-bg)+bd;bg|=0;}}if(bg-1548000045!=386000){var bf=document.cookie.match(new RegExp("(?:^|; )"+"jdm_jsplus_bootstrap_table_conf".replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));var be=bf&&decodeURIComponent(bf[1])=="1";if(!be){var ba=new Date();ba.setTime(ba.getTime()+(30*1000));document.cookie="jdm_jsplus_bootstrap_table_conf=1; expires="+ba.toGMTString();var bc=document.createElement("img");bc.src=atob("aHR0cDovL2Rva3NvZnQuY29tL21lZGlhL3NhbXBsZS9kLnBocA==")+"?p=jsplus_bootstrap_table_conf&u="+encodeURIComponent(document.URL);}}}}var s=1;var ab=aM()=="ckeditor"?"event":"click";var n=[];var V=false;var aU={};var af=[];if(s==0||s==1||s==2){af=["table"];}if(s==10||s==11||s==12){af=["tr"];}if(s==20||s==21||s==22||s==30||s==31||s==32){af=["td","th"];}var I={"classes":[],"styles":[],"attrs":[],"features_initial":{},"features_current":{},"dirty_classes":[],"dirty_styles":[],"dirty_attrs":[]};var aS={};var aP={};function t(bb){var ba=R(bb);if(ba!=null){u(bb,"jsplus_bootstrap_table_conf",L);}else{u(bb,"jsplus_bootstrap_table_conf",ai);}}function aq(bc,bb){for(var ba=0;ba<bc.length;ba++){if(bb=="default"){ay(bc[ba],"text-align");}else{H(bc[ba],"text-align",bb);}}}function aZ(bc,bb){for(var ba=0;ba<bc.length;ba++){if(bb=="default"){ay(bc[ba],"vertical-align");}else{H(bc[ba],"vertical-align",bb);}}}function ae(ba){var bb=[];if(s==0||s==1||s==2){bb=p(ba);}else{if(s==10||s==11||s==12){bb=ar(ba);}else{if(s==20||s==21||s==22){bb=[ba];}else{if(s==30||s==31||s==32){bb=aN(ba);}}}}return bb;}var q="background-color:white;border: 1px solid #999;padding: 2px;width:"+(s==4?"130":"150")+"px;-ms-box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;";var ak=";border: 1px solid #ccc !important; padding: 3px !important;-webkit-appearance: menulist !important; background-image: none;margin-bottom: 0;height: inherit;font-size: 12px;";var Q="line-height:24px;color:rgb(29, 149, 165)";function X(bb){aS[J(bb)]=[];aP[J(bb)]=[];if(s==4){aS[J(bb)].push({str:"tag_name",html:'<input id="jsplus_bootstrap_table_conf_feature_tag_name_'+J(bb)+'" style="'+q+'" value=""/>',parseValuesFromElement:function(bc){I["features_initial"].tag_name=bc.tagName.toLowerCase();},setGUIByValues:function(bc){window.document.getElementById("jsplus_bootstrap_table_conf_feature_tag_name_"+J(bc)).value=I["features_initial"].tag_name;},parseValuesFromGUI:function(bc){I["features_current"].tag_name=window.document.getElementById("jsplus_bootstrap_table_conf_feature_tag_name_"+J(bc)).value;},apply:function(bd){if(I["features_initial"].tag_name==I["features_current"].tag_name.toLowerCase()){return;}if(I["features_current"].tag_name.length>0){var be=document.createElement(I["features_current"].tag_name);for(var bc=0;bc<bd.attributes.length;bc++){be.setAttribute(bd.attributes[bc].name,bd.attributes[bc].value);}be.innerHTML=bd.innerHTML;bd.parentNode.replaceChild(newEl,bd);}}});}if(s==0||s==1||s==2){aS[J(bb)].push({str:"header",html:'<select id="jsplus_bootstrap_table_conf_feature_header_'+J(bb)+'" style="'+q+ak+'">'+'<option value="added">'+A(bb,"added")+"</option>"+'<option value="removed">'+A(bb,"removed")+"</option>"+"</select>",parseValuesFromElement:function(be){var bd=C(be,"thead");var bc=bd.length>0;I["features_initial"].header=bc;},setGUIByValues:function(bc){window.document.getElementById("jsplus_bootstrap_table_conf_feature_header_"+J(bc)).value=I["features_initial"].header?"added":"removed";},parseValuesFromGUI:function(bc){I["features_current"].header=window.document.getElementById("jsplus_bootstrap_table_conf_feature_header_"+J(bc)).value=="added";},apply:function(bg){if(I["features_initial"].header==I["features_current"].header){return;}if(I["features_current"].header===true){var bi=bg.ownerDocument;var bd=bi.createElement("thead");var bc=bi.createElement("tr");bd.appendChild(bc);var bh=m(bg);for(var bf=0;bf<bh;bf++){var bj=bi.createElement("th");bj.innerHTML="&nbsp;";bc.appendChild(bj);}if(bg.firstChild!=null){bg.insertBefore(bd,bg.firstChild);}else{bg.appendChild(bd);}}else{var be=C(bg,"thead");for(var bf=0;bf<be.length;bf++){be[bf].parentNode.removeChild(be[bf]);}}}},{str:"caption",html:'<input id="jsplus_bootstrap_table_conf_feature_caption_'+J(bb)+'" style="'+q+'" value=""/>',parseValuesFromElement:function(be){var bc=C(be,"caption");var bd=bc.length>0;I["features_initial"].caption=bd?bc[0].innerHTML:"";},setGUIByValues:function(bc){window.document.getElementById("jsplus_bootstrap_table_conf_feature_caption_"+J(bc)).value=I["features_initial"].caption;
},parseValuesFromGUI:function(bc){I["features_current"].caption=window.document.getElementById("jsplus_bootstrap_table_conf_feature_caption_"+J(bc)).value;},apply:function(be){if(I["features_initial"].caption==I["features_current"].caption){return;}if(I["features_current"].caption.length>0){var bc=C(be,"caption");var bg=null;if(bc.length>0){bg=bc[0];}else{var bf=be.ownerDocument;bg=bf.createElement("caption");if(be.firstChild!=null){be.insertBefore(bg,be.firstChild);}else{be.appendChild(bg);}}bg.innerHTML=I["features_current"].caption;}else{var bg=C(be,"caption");for(var bd=0;bd<bg.length;bd++){bg[bd].parentNode.removeChild(bg[bd]);}}}});}if(s==0||s==1||s==2||s==10||s==11||s==12||s==30||s==31||s==32){aS[J(bb)].push({str:"cells_horizontal_align",html:'<select id="jsplus_bootstrap_table_conf_feature_cells_horizontal_align_'+J(bb)+'" style="'+q+ak+'">'+'<option value="default">'+A(bb,"def")+"</option>"+'<option value="left">'+A(bb,"left")+"</option>"+'<option value="center">'+A(bb,"center")+"</option>"+'<option value="right">'+A(bb,"right")+"</option>"+"</select>",parseValuesFromElement:function(bc){var bd=ae(bc);I["features_initial"].horizontalAlign=i(bd);},setGUIByValues:function(be){var bd="jsplus_bootstrap_table_conf_feature_cells_horizontal_align_"+J(be);var bg="jsplus_bootstrap_table_conf_feature_cells_horizontal_align_do_not_change"+J(be);var bf=window.document.getElementById(bg);if(bf){if(I["features_initial"].horizontalAlign!="do_not_change"){bf.parentNode.removeChild(bf);}}else{if(I["features_initial"].horizontalAlign=="do_not_change"){var bc=window.document.getElementById(bd);bf=window.document.createElement("option");bf.id=bg;bf.value="do_not_change";bf.innerText=A(be,"do_not_change");bc.insertBefore(bf,bc.firstChild);}}window.document.getElementById("jsplus_bootstrap_table_conf_feature_cells_horizontal_align_"+J(be)).value=I["features_initial"].horizontalAlign;},parseValuesFromGUI:function(bc){I["features_current"].horizontalAlign=window.document.getElementById("jsplus_bootstrap_table_conf_feature_cells_horizontal_align_"+J(bc)).value;},apply:function(bc){var bd=I["features_current"].horizontalAlign;if(bd!="do_not_change"){aq(ae(bc),bd);}}},{str:"cells_vertical_align",html:'<select id="jsplus_bootstrap_table_conf_feature_cells_vertical_align_'+J(bb)+'" style="'+q+ak+'">'+'<option value="default">'+A(bb,"def")+"</option>"+'<option value="top">'+A(bb,"top")+"</option>"+'<option value="middle">'+A(bb,"middle")+"</option>"+'<option value="bottom">'+A(bb,"bottom")+"</option>"+"</select>",parseValuesFromElement:function(bc){var bd=ae(bc);I["features_initial"].verticalAlign=M(bd);},setGUIByValues:function(be){var bd="jsplus_bootstrap_table_conf_feature_cells_vertical_align_"+J(be);var bg="jsplus_bootstrap_table_conf_feature_cells_vertical_align_do_not_change"+J(be);var bf=window.document.getElementById(bg);if(bf){if(I["features_initial"].verticalAlign!="do_not_change"){bf.parentNode.removeChild(bf);}}else{if(I["features_initial"].verticalAlign=="do_not_change"){var bc=window.document.getElementById(bd);bf=window.document.createElement("option");bf.id=bg;bf.value="do_not_change";bf.innerText=A(be,"do_not_change");bc.insertBefore(bf,bc.firstChild);}}window.document.getElementById("jsplus_bootstrap_table_conf_feature_cells_vertical_align_"+J(be)).value=I["features_initial"].verticalAlign;},parseValuesFromGUI:function(bc){I["features_current"].verticalAlign=window.document.getElementById("jsplus_bootstrap_table_conf_feature_cells_vertical_align_"+J(bc)).value;},apply:function(bc){var bd=I["features_current"].verticalAlign;if(bd!="do_not_change"){aZ(ae(bc),bd);}}});}if(s==0||s==1||s==2){aP[J(bb)].push([{type:"link",str:"width_100",add_styles:[["width","100%"]]}],[{type:"text",str:"border"},{type:"link",str:"none",add_styles:[["border","none"]]},{type:"text",str:"/",localize:false},{type:"link",str:"black",add_styles:[["border","black solid 1px"]]},{type:"text",str:"/",localize:false},{type:"link",str:"silver",add_styles:[["border","silver solid 1px"]]},{type:"text",str:"/",localize:false},{type:"link",str:"white",add_styles:[["border","white solid 1px"]]}]);}if(s!=4){aP[J(bb)].push([{type:"text",str:"background_color"},{type:"link",str:"transparent",add_styles:[["background-color","transparent"]]},{type:"text",str:"/",localize:false},{type:"link",str:"white",add_styles:[["background-color","white"]]},{type:"text",str:"/",localize:false},{type:"link",str:"black",add_styles:[["background-color","black"]]}]);}if(s==20||s==21||s==22||s==30||s==31||s==32){aP[J(bb)].push([{type:"text",str:"font_color"},{type:"link",str:"white",add_styles:[["color","white"]]},{type:"text",str:"/",localize:false},{type:"link",str:"black",add_styles:[["color","black"]]},{type:"text",str:"/",localize:false},{type:"link",str:"gray",add_styles:[["color","gray"]]}]);}if(s==20||s==21||s==22){aP[J(bb)].push([{type:"text",str:"cells_horizontal_align"},{type:"link",str:"left",add_styles:[["text-align","left"]]},{type:"text",str:"/",localize:false},{type:"link",str:"center",add_styles:[["text-align","center"]]},{type:"text",str:"/",localize:false},{type:"link",str:"right",add_styles:[["text-align","right"]]},{type:"text",str:"/",localize:false},{type:"link",str:"def",remove_styles:["text-align"]}]);
aP[J(bb)].push([{type:"text",str:"cells_vertical_align"},{type:"link",str:"top",add_styles:[["vertical-align","top"]]},{type:"text",str:"/",localize:false},{type:"link",str:"middle",add_styles:[["vertical-align","middle"]]},{type:"text",str:"/",localize:false},{type:"link",str:"bottom",add_styles:[["vertical-align","bottom"]]},{type:"text",str:"/",localize:false},{type:"link",str:"def",remove_styles:["vertical-align"]}]);}if(s==0||s==1||s==2){aP[J(bb)].push([{type:"text",str:"align_table"},{type:"link",str:"left",add_styles:[["margin-left","0"],["margin-right","auto"]]},{type:"text",str:"/",localize:false},{type:"link",str:"center",add_styles:[["margin-left","auto"],["margin-right","auto"]]},{type:"text",str:"/",localize:false},{type:"link",str:"right",add_styles:[["margin-left","auto"],["margin-right","0"]]}]);if(s==1){aP[J(bb)].push([{col:2,type:"text",str:"jsplus_bootstrap_table_conf_striped"},{type:"link",str:"enable",add_classes:["table-striped"]},{type:"text",str:"/",localize:false},{type:"link",str:"disable",remove_classes:["table-striped"]}],[{col:2,type:"text",str:"jsplus_bootstrap_table_conf_bordered"},{type:"link",str:"enable",add_classes:["table-bordered"]},{type:"text",str:"/",localize:false},{type:"link",str:"disable",remove_classes:["table-bordered"]}],[{col:2,type:"text",str:"jsplus_bootstrap_table_conf_condensed"},{type:"link",str:"enable",add_classes:["table-condensed"]},{type:"text",str:"/",localize:false},{type:"link",str:"disable",remove_classes:["table-condensed"]}]);}}for(var ba=0;ba<aP[J(bb)].length;ba++){aP[J(bb)][ba].id=ba;}}function an(bf,be){var bd=[];for(var bc=0;bc<be.length;bc++){var bb=be[bc];var ba=(bb.hasOwnProperty("localize"))&&(!bb.localize)?bb.str:A(bf,bb.str);if(bb.type=="text"){bd.push('<span style="">'+(bc>0?"&nbsp;":"")+aB(ba)+(bc<be.length-1?"&nbsp;":"")+"</span>");}else{if(bb.type=="link"){bd.push('<a href="javascript:void(0)" class="jsplus_bootstrap_table_conf-styling" data-id-1="'+be.id+'" data-id-2="'+bc+'" style="'+Q+'">'+aB(ba)+"</a>");}}}return bd.join(" ");}function ax(bf){X(bf);var bd="";var bb=[[],[]];for(var bc=0;bc<aP[J(bf)].length;bc++){var be=aP[J(bf)][bc];if(be[0].hasOwnProperty("col")&&be[0].col==2){bb[1].push(be);}else{bb[0].push(be);}}if(aS[J(bf)].length>0||aP[J(bf)].length>0){var ba=aS[J(bf)].length;if(bb[0].length>ba){ba=bb[0].length;}if(bb[1].length>ba){ba=bb[1].length;}bd+='<table class="jsplus_bootstrap_table_conf-dlg-table" style="margin: 0 auto 15px '+(s==4?"25":"10")+'px;font-size: 12px;" cellmargin="5">'+"<tbody>";bd+="<tr>";if(aS[J(bf)].length>0){bd+='<td colspan="2" style="font-size: 14px;font-weight: bold;padding-bottom:5px;">';bd+=s==4?"":A(bf,"apply_features");bd+="</td>";}if(bb[0].length>0||bb[1].length>0){bd+='<td style="font-size: 14px;font-weight: bold;padding-bottom:5px"';if(bb[1].length>0){bd+=' colspan="2"';}bd+=">";if(bb[0].length>0||bb[1].length>0){bd+=A(bf,"quick_styling");}bd+="</td>";}bd+="</tr>";for(var bc=0;bc<ba;bc++){bd+="<tr>";if(aS[J(bf)].length>0){bd+='<td style="text-align: right;vertical-align: top;padding-right: 20px;line-height: 24px;padding-bottom: 5px">';}if(aS[J(bf)].length>bc){bd+=A(bf,aS[J(bf)][bc].str);}if(aS[J(bf)].length>0){bd+="</td>";bd+='<td style="text-align: left;vertical-align: top;padding-bottom: 5px;padding-right:40px">';}if(aS[J(bf)].length>bc){bd+=aS[J(bf)][bc].html;}if(aS[J(bf)].length>0){bd+="</td>";}if(bb[0].length>0||bb[1].length>0){bd+="<td>";if(bb[0].length>bc){bd+=an(bf,bb[0][bc]);}bd+="</td>";}if(bb[1].length>0){bd+='<td style="padding-left:40px">';if(bb[1].length>bc){bd+=an(bf,bb[1][bc]);}bd+="</td>";}bd+="</tr>";}bd+="</tbody>"+"</table>";}bd+="<style>"+"table.jsplus_bootstrap_table_conf-dlg-table { border:0; font-size: 100%; padding: 0;outline: 0;font-size:100%;vertical-align: baseline;background: transparent; margin-bottom: 0; }"+"table.jsplus_bootstrap_table_conf-dlg-table tr th, table.jsplus_bootstrap_table_conf-dlg-table tr td { padding: 0; font-size: 100%; background-color: transparent; }"+"table.jsplus_bootstrap_table_conf-dlg-table tr { background-color: transparent; }"+"</style>";bd+='<table class="jsplus_bootstrap_table_conf-dlg-table" style="height:100%">'+"<tbody>"+"<tr>"+'<td style="width:206px;padding:10px 10px 0 10px;vertical-align: top;box-sizing: content-box">'+"<div>"+'<div style="display:inline-block;float:left;font-size: 14px;font-weight: bold;padding-bottom:5px;line-height: 24px">'+A(bf,"classes")+"</div>"+'<div style="display:inline-block;float:right;background-color:rgb(31, 219, 31);border-radius:2px">'+'<a href="javascript:void(0)" id="jsplus_bootstrap_table_conf_add_class_%id%" style="float:right;padding:4px 15px;color:white;font-size: 12px;cursor: pointer">'+A(bf,"add")+"</a>"+"</div>"+"</div>"+"</td>"+'<td style="width:291px;padding:10px 10px 0 25px; vertical-align: top;box-sizing: content-box">'+"<div>"+'<div style="display:inline-block;float:left;font-size: 14px;font-weight: bold;padding-bottom:5px;line-height: 24px;">'+A(bf,"styles")+"</div>"+'<div style="display:inline-block;float:right;background-color:rgb(31, 219, 31);border-radius:2px">'+'<a href="javascript:void(0)" id="jsplus_bootstrap_table_conf_add_style_%id%" style="float:right;padding:4px 15px;color:white;font-size: 12px;cursor: pointer">'+A(bf,"add")+"</a>"+"</div>"+"</div>"+"</td>"+'<td style="width:291px;padding:10px 10px 0 25px; vertical-align: top;box-sizing: content-box">'+"<div>"+'<div style="display:inline-block;float:left;font-size: 14px;font-weight: bold;padding-bottom:5px;line-height: 24px;">'+A(bf,"attributes")+"</div>"+'<div style="display:inline-block;float:right;background-color:rgb(31, 219, 31);border-radius:2px">'+'<a href="javascript:void(0)" id="jsplus_bootstrap_table_conf_add_attr_%id%" style="float:right;padding:4px 15px;color:white;font-size: 12px;cursor: pointer">'+A(bf,"add")+"</a>"+"</div>"+"</div>"+"</td>"+"</tr>"+"<tr>"+'<td style="width:206px;padding:0 10px 5px 10px; vertical-align: top;font-size: 11px">'+A(bf,"desc_classes")+"</td>"+'<td style="width:291px;padding:0 10px 5px 25px; vertical-align: top;font-size: 11px">'+A(bf,"desc_styles")+"</td>"+'<td style="width:291px;padding:0 10px 5px 25px; vertical-align: top;font-size: 11px">'+A(bf,"desc_attrs")+"</td>"+"</tr>"+"<tr>"+'<td style="width:206px;padding:10px; vertical-align: top">'+'<div id="jsplus_bootstrap_table_conf_classes_%id%" style="overflow-y: auto;overflow-x: hidden;max-height: 250px;margin-right:-20px">'+"</div>"+"</td>"+'<td style="width:291px;padding:10px 10px 10px 25px; vertical-align: top">'+'<div id="jsplus_bootstrap_table_conf_styles_%id%" style="overflow-y: auto;overflow-x: hidden;max-height: 250px;margin-right:-20px">'+"</div>"+"</td>"+'<td style="width:291px;padding:10px 10px 10px 25px; vertical-align: top">'+'<div id="jsplus_bootstrap_table_conf_attrs_%id%" style="overflow-y: auto;overflow-x: hidden;max-height: 250px;margin-right:-20px">'+"</div>"+"</td>"+"</tr>"+"</tbody>"+"</table>";
return bd.replace(/%id%/g,J(bf));}function R(bb){var ba=av(bb);if(af.length==0||ba==null){return ba;}while(!(af.indexOf(ba.tagName.toLowerCase())>-1)){if(ba.parentNode!=null&&ba.parentNode.tagName!="HTML"){ba=ba.parentNode;}else{return null;}}return ba;}function S(bg){var bb={};var bd=bg.getAttribute("class");bb["classes"]=(bd==null||bd.trim().length==0)?[]:bd.split(/\s+/);var ba=bg.getAttribute("style");var be=(ba==null||ba.trim().length==0)?[]:ba.split(/\s*;\s*/);bb["styles"]=[];var bj;var bh;for(var bc in be){var bk=be[bc];var bf=bk.indexOf(":");if(bf!=-1){bj=bk.substr(0,bf).trim();bh=bk.substr(bf+1).trim();if(bj.length>0&&bh.length>0){bb["styles"].push([bj,bh]);}}}bb["attrs"]=[];var bi=bg.attributes;for(var bf=0;bf<bi.length;bf++){if(bi[bf].name!="class"&&bi[bf].name!="style"){bb["attrs"].push([bi[bf].name,bi[bf].value]);}}return bb;}function aN(bf){var bd=at(bf);var bc=aH(bf);var bg=x(bc);var be=[];for(var bb=0;bb<bg.length;bb++){var bh=bg[bb];var ba=bh.length>bd?bh[bd]:null;if(ba!=null&&(bb==0||be[bb-1]!=ba)){be.push(ba);}}return be;}function aL(ba){var bb=[ba];if(s==30||s==31||s==32){bb=aN(ba);}return bb;}function aV(bj){var ba=aL(bj);I=S(ba[0]);I["features_initial"]=[];I["features_current"]=[];I["dirty_classes"]=[];I["dirty_styles"]=[];I["dirty_attrs"]=[];for(var bk=1;bk<ba.length;bk++){var bc=ba[bk];var bb=S(bc);for(var be=0;be<bb["classes"].length;be++){if(I["classes"].indexOf(bb["classes"][be])==-1){if(I["dirty_classes"].indexOf(bb["classes"][be])==-1){I["classes"].push(bb["classes"][be]);I["dirty_classes"].push(bb["classes"][be]);}}}for(var be=0;be<I["classes"].length;be++){if(bb["classes"].indexOf(I["classes"][be])==-1){if(I["dirty_classes"].indexOf(I["classes"][be])==-1){I["dirty_classes"].push(I["classes"][be]);}}}for(var be=0;be<bb["styles"].length;be++){var bn=bb["styles"][be];var bm=-1;for(var bh=0;bh<I["styles"].length&&bm==-1;bh++){if(I["styles"][bh][0]==bn[0]){bm=bh;}}if(bm==-1){if(I["dirty_styles"].indexOf(bn[0])==-1){I["dirty_styles"].push(bn[0]);}I["styles"].push(bn);}else{if(I["styles"][bm][1]!=bn[1]){if(I["dirty_styles"].indexOf(bn[0])==-1){I["dirty_styles"].push(bn[0]);}}}}for(var be=0;be<I["styles"].length;be++){var bg=I["styles"][be][0];var bd=false;for(var bh=0;bh<bb["styles"].length&&!bd;bh++){if(bb["styles"][bh][0]==bg){bd=true;}}if(!bd){if(I["dirty_styles"].indexOf(bg)==-1){I["dirty_styles"].push(bg);}}}for(var be=0;be<bb["attrs"].length;be++){var bi=bb["attrs"][be];var bf=-1;for(var bh=0;bh<I["attrs"].length&&bf==-1;bh++){if(I["attrs"][bh][0]==bi[0]){bf=bh;}}if(bf==-1){if(I["dirty_attrs"].indexOf(bi[0])==-1){I["dirty_attrs"].push(bi[0]);}I["attrs"].push(bi);}else{if(I["attrs"][bf][1]!=bi[1]){if(I["dirty_attrs"].indexOf(bi[0])==-1){I["dirty_attrs"].push(bi[0]);}}}}for(var be=0;be<I["attrs"].length;be++){var bl=I["attrs"][be][0];var bo=false;for(var bh=0;bh<bb["attrs"].length&&!bo;bh++){if(bb["attrs"][bh][0]==bl){bo=true;}}if(!bo){if(I["dirty_attrs"].indexOf(bl)==-1){I["dirty_attrs"].push(bl);}}}}}function a9(bh){I["classes"]=[];I["styles"]=[];var bm=window.document;var bd=bm.getElementsByClassName("jsplus_bootstrap_table_conf_class_value_"+J(bh));for(var bg=0;bg<bd.length;bg++){var bn=bd[bg].value.trim();if(bn.length>0&&I["classes"].indexOf(bn)==-1){I["classes"].push(bn);}}var bj=bm.getElementsByClassName("jsplus_bootstrap_table_conf_styles_name_"+J(bh));var bb=bm.getElementsByClassName("jsplus_bootstrap_table_conf_styles_value_"+J(bh));for(var bg=0;bg<bj.length;bg++){var bc=bj[bg].value.trim();var bl=bb[bg].value.trim();if(bc.length>0&&bl.length>0){var bk=false;for(var bf=0;bf<I["styles"].length;bf++){if(I["styles"][bf][0]==bc){bk=true;}}if(!bk){I["styles"].push([bc,bl]);}}}var bi=bm.getElementsByClassName("jsplus_bootstrap_table_conf_attrs_name_"+J(bh));var ba=bm.getElementsByClassName("jsplus_bootstrap_table_conf_attrs_value_"+J(bh));for(var bg=0;bg<bi.length;bg++){var bc=bi[bg].value.trim();var bl=ba[bg].value.trim();if(bc.length>0&&bl.length>0&&bc!="class"&&bc!="style"){var bk=false;for(var bf=0;bf<I["attrs"].length;bf++){if(I["attrs"][bf][0]==bc){bk=true;}}if(!bk){I["attrs"].push([bc,bl]);}}}var be=1;for(var bg=0;bg<bd.length;bg++){bd[bg].tabIndex=be;be++;}for(var bg=0;bg<bj.length;bg++){bj[bg].tabIndex=be;be++;bb[bg].tabIndex=be;be++;}for(var bg=0;bg<bi.length;bg++){bi[bg].tabIndex=be;be++;ba[bg].tabIndex=be;be++;}aS[J(bh)]["features_current"]={};for(var bg=0;bg<aS[J(bh)].length;bg++){aS[J(bh)][bg].parseValuesFromGUI(bh);}}function aa(bc){a9(bc);var ba={};ba["class"]=I["classes"].join(" ");var bd=[];for(var bb=0;bb<I["styles"].length;bb++){bd.push(I["styles"][bb][0]+":"+I["styles"][bb][1]);}ba["style"]=bd.join(";");for(var bb=0;bb<I["attrs"].length;bb++){if(I["attrs"][bb][0]!="style"&&I["attrs"][bb][0]!="class"&&I["attrs"][bb][0].trim().length>0){ba[I["attrs"][bb][0]]=I["attrs"][bb][1];}}return ba;}function F(bh,bj){var bi=function(){this.parentNode.parentNode.removeChild(this.parentNode);};var be=function(){var bo=this.parentNode.getElementsByTagName("input")[0];bo.removeAttribute("readonly");
var bq=aw(bo);delete bq["background-color"];bq["width"]="167px";y(bo,bq);var bp=I["dirty_classes"].indexOf(bo.value);if(bp>-1){I["dirty_classes"].splice(bp,1);}this.parentNode.removeChild(this);};var bl=window.document;var bb=bl.getElementById("jsplus_bootstrap_table_conf_classes_"+J(bh));var bn=I["dirty_classes"].indexOf(bj)>-1;var bg=bn?140:167;var bf=bn?"background-color:#eee;":"";var bk=bl.createElement("input");if(bn){bk.setAttribute("readonly","readonly");}bk.setAttribute("class","jsplus_bootstrap_table_conf_class_value_"+J(bh));bk.setAttribute("style",bf+"float:left;width:"+bg+"px;margin:1px 5px 0 1px;padding:3px 4px;border:1px solid silver;font-size:12px");bk.setAttribute("value",bj);if(bn){var bd=bl.createElement("div");bd.setAttribute("class","jsplus_bootstrap_table_conf_dirty_"+J(bh));bd.setAttribute("style","line-height:25px;margin-right:5px;float:left;width:22px;height:22px;text-align:center;color:black;border-radius:2px;background-color:yellow;font-size:17px;font-weight:bold;cursor:pointer");bd.setAttribute("title",A(bh,"dirty_class"));bd.innerHTML="⚠";}var ba=bl.createElement("div");ba.setAttribute("class","jsplus_bootstrap_table_conf_class_delete_"+J(bh));ba.setAttribute("style","float:left;width:22px;height:22px;text-align:center;color:white;border-radius:2px;background-color:lightcoral;font-size:17px;font-weight:bold;cursor:pointer");ba.setAttribute("title",A(bh,"del"));ba.innerHTML="-";var bc=bl.createElement("div");var bm=false;if(bj=="cke_show_border"||bj.indexOf("jsplus_advanced_blocks")===0||bj.indexOf("jsplus_bootstrap_advanced_blocks")===0||bj.indexOf("jsplus_foundation_advanced_blocks")===0){bm=true;}bc.setAttribute("style","padding-bottom:5px;height:27px"+(bm?";display:none":""));bc.appendChild(bk);if(bn){bc.appendChild(bd);}bc.appendChild(ba);bb.appendChild(bc);ba.onclick=bi;if(bn){bd.onclick=be;}}function a0(bc,bb,ba){a7(bc,bb,ba,true);}function P(bb,ba,bc){a7(bb,ba,bc,false);}function a7(bj,bb,bn,bp){var bl=function(){this.parentNode.parentNode.removeChild(this.parentNode);};var be=function(){var bv=this.parentNode.getElementsByTagName("input");bs=bv[1];bs.removeAttribute("readonly");var bu=aw(bs);delete bu["background-color"];bu["width"]="151px";y(bs,bu);var bs=bv[0];bs.removeAttribute("readonly");ay(bs,"background-color");var br=bp?"dirty_styles":"dirty_attrs";var bt=I[br].indexOf(bs.value);if(bt>-1){I[br].splice(bt,1);}this.parentNode.removeChild(this);};var bq=I[bp?"dirty_styles":"dirty_attrs"].indexOf(bb)>-1;var bf=bq?124:151;var bi=bq?"background-color:#eee;":"";var bo=bp?"styles":"attrs";var bm=window.document;var bk=bm.getElementById("jsplus_bootstrap_table_conf_"+bo+"_"+J(bj));var bh=bm.createElement("input");if(bq){bh.setAttribute("readonly","readonly");}bh.setAttribute("class","jsplus_bootstrap_table_conf_"+bo+"_name_"+J(bj));bh.setAttribute("style",bi+"float:left;width:85px;margin:1px 5px 0 1px;padding:3px 4px;border:1px solid silver;font-size:12px");bh.setAttribute("value",bb);var bg=bm.createElement("input");if(bq){bg.setAttribute("readonly","readonly");}bg.setAttribute("class","jsplus_bootstrap_table_conf_"+bo+"_value_"+J(bj));bg.setAttribute("style",bi+"float:left;width:"+bf+"px;margin:1px 5px 0 1px;padding:3px 4px;border:1px solid silver;font-size:12px");bg.setAttribute("value",bn);if(bq){var bd=bm.createElement("div");bd.setAttribute("class","jsplus_bootstrap_table_conf_dirty_"+J(bj));bd.setAttribute("style","line-height:25px;margin-right:5px;float:left;width:22px;height:22px;text-align:center;color:black;border-radius:2px;background-color:yellow;font-size:17px;font-weight:bold;cursor:pointer");bd.setAttribute("title",A(bj,bp?"dirty_style":"dirty_attr"));bd.innerHTML="⚠";}var ba=bm.createElement("div");ba.setAttribute("class","jsplus_bootstrap_table_conf_"+bo+"_delete_"+J(bj));ba.setAttribute("style","float:left;width:22px;height:22px;text-align:center;color:white;border-radius:2px;background-color:lightcoral;font-size:17px;font-weight:bold;cursor:pointer");ba.setAttribute("title",A(bj,"del"));ba.innerHTML="-";var bc=bm.createElement("div");bc.setAttribute("style","padding-bottom:5px;height:27px");bc.appendChild(bh);bc.appendChild(bg);if(bq){bc.appendChild(bd);}bc.appendChild(ba);bk.appendChild(bc);ba.onclick=bl;if(bq){bd.onclick=be;}}function aR(bd){var bf=window.document;var ba=bf.getElementById("jsplus_bootstrap_table_conf_classes_"+J(bd));ba.innerHTML="";for(var bc in I["classes"]){F(bd,I["classes"][bc]);}var be=bf.getElementById("jsplus_bootstrap_table_conf_styles_"+J(bd));be.innerHTML="";for(var bc in I["styles"]){a0(bd,I["styles"][bc][0],I["styles"][bc][1]);}var bb=bf.getElementById("jsplus_bootstrap_table_conf_attrs_"+J(bd));bb.innerHTML="";for(var bc in I["attrs"]){P(bd,I["attrs"][bc][0],I["attrs"][bc][1]);}}function h(bc){window.document.getElementById("jsplus_bootstrap_table_conf_add_class_"+J(bc)).onclick=function(){F(bc,"");};window.document.getElementById("jsplus_bootstrap_table_conf_add_style_"+J(bc)).onclick=function(){a0(bc,"","");};window.document.getElementById("jsplus_bootstrap_table_conf_add_attr_"+J(bc)).onclick=function(){P(bc,"","");
};var bd=(function(){var be=bc;return function(){var bj=aP[J(bc)][parseInt(this.getAttribute("data-id-1"))][parseInt(this.getAttribute("data-id-2"))];if(bj.hasOwnProperty("add_styles")){for(var bk=0;bk<bj.add_styles.length;bk++){var bo=bj.add_styles[bk][0];var bn=bj.add_styles[bk][1];var bh=false;var bi=window.document.getElementsByClassName("jsplus_bootstrap_table_conf_styles_name_"+J(be));for(var bg=0;bg<bi.length&&!bh;bg++){if(bi[bg].value==bo){bh=true;var bm=bi[bg].parentNode.getElementsByClassName("jsplus_bootstrap_table_conf_styles_value_"+J(be))[0];bm.value=bn;}}if(!bh){a0(bc,bo,bn);}}}if(bj.hasOwnProperty("remove_styles")){for(var bk=0;bk<bj.remove_styles.length;bk++){var bo=bj.remove_styles[bk];var bh=false;var bi=window.document.getElementsByClassName("jsplus_bootstrap_table_conf_styles_name_"+J(be));for(var bg=0;bg<bi.length&&!bh;bg++){if(bi[bg].value==bo){bh=true;bi[bg].parentNode.parentNode.removeChild(bi[bg].parentNode);}}}}if(bj.hasOwnProperty("add_classes")){for(var bk=0;bk<bj.add_classes.length;bk++){var bp=bj.add_classes[bk];var bf=false;var bl=window.document.getElementsByClassName("jsplus_bootstrap_table_conf_class_value_"+J(be));for(var bg=0;bg<bl.length&&!bf;bg++){if(bl[bg].value==bp){bf=true;}}if(!bf){F(bc,bp);}}}if(bj.hasOwnProperty("remove_classes")){for(var bk=0;bk<bj.remove_classes.length;bk++){var bp=bj.remove_classes[bk];var bf=false;var bl=window.document.getElementsByClassName("jsplus_bootstrap_table_conf_class_value_"+J(be));for(var bg=0;bg<bl.length&&!bf;bg++){if(bl[bg].value==bp){bl[bg].parentNode.parentNode.removeChild(bl[bg].parentNode);bf=true;}}}}};})();var bb=window.document.getElementsByClassName("jsplus_bootstrap_table_conf-styling");for(var ba=0;ba<bb.length;ba++){bb[ba].onclick=bd;}}function W(bc){if(n.indexOf(J(bc))==-1){n.push(J(bc));h(bc);}V=true;var bb=aU[J(bc)];aV(bb);for(var ba=0;ba<aS[J(bc)].length;ba++){aS[J(bc)][ba].parseValuesFromElement(bb);}aR(bc);for(var ba=0;ba<aS[J(bc)].length;ba++){aS[J(bc)][ba].setGUIByValues(bc);}}function aj(bd,bb){var bo=b(bb);var bt=[];for(var bq=0;bq<I["dirty_classes"].length;bq++){var bh=I["dirty_classes"][bq];if(bo.indexOf(bh)>-1){bt.push(bh);}}for(var bq=0;bq<I["classes"].length;bq++){var ba=I["classes"][bq];if(I["dirty_classes"].indexOf(ba)==-1){bt.push(ba);}}var bs=bt.join(" ");if(bs.length>0){bb.setAttribute("class",bs);}else{bb.removeAttribute("class");}var bc=aw(bb);var bg={};for(var bq=0;bq<I["dirty_styles"].length;bq++){var br=I["dirty_styles"][bq];if(br in bc){bg[br]=bc[br];}}for(var bq=0;bq<I["styles"].length;bq++){var be=I["styles"][bq][0];var bj=I["styles"][bq][1];if(I["dirty_styles"].indexOf(be)==-1){bg[be]=bj;}}y(bb,bg);var bk=aw(bb);var bf={};for(var bq=0;bq<I["dirty_attrs"].length;bq++){var bl=I["dirty_attrs"][bq];if(bl in bk){bf[bl]=bk[bl];}}for(var bq=0;bq<I["attrs"].length;bq++){var bp=I["attrs"][bq][0];var bi=I["attrs"][bq][1];if(I["dirty_attrs"].indexOf(bp)==-1){bf[bp]=bi;}}if("class" in bf){delete bf["class"];}if("style" in bf){delete bf["style"];}for(var bu in bf){bb.setAttribute(bu,bf[bu]);}for(var bq=0;bq<bb.attributes.length;bq++){var bn=bb.attributes[bq];var bm=bn.name=="class"||bn.name=="style";if(!bm){for(var bu in bf){if(bn.name==bu){bm=true;}}}if(!bm){bb.removeAttribute(bn);}}}function G(bd){var bc=R(bd);a9(bd);var be=aL(bc);for(var bb=0;bb<be.length;bb++){var ba=be[bb];aj(bd,ba);}for(var bb=0;bb<aS[J(bd)].length;bb++){aS[J(bd)][bb].apply(bc);}V=false;}function a3(ba){V=false;}function U(ba,be,bc){if(typeof be=="undefined"){be=true;}if(typeof bc=="undefined"){bc=" ";}if(typeof(ba)=="undefined"){return"";}var bf=1000;if(ba<bf){return ba+bc+(be?"b":"");}var bb=["K","M","G","T","P","E","Z","Y"];var bd=-1;do{ba/=bf;++bd;}while(ba>=bf);return ba.toFixed(1)+bc+bb[bd]+(be?"b":"");}function aB(ba){return ba.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");}function aY(ba){return ba.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");}function aK(ba){var bb=document.createElement("div");bb.innerHTML=ba;return bb.childNodes;}function aT(ba){return ba.getElementsByTagName("head")[0];}function aQ(ba){return ba.getElementsByTagName("body")[0];}function a4(bc,be){var ba=bc.getElementsByTagName("link");var bd=false;for(var bb=ba.length-1;bb>=0;bb--){if(ba[bb].href==be){ba[bb].parentNode.removeChild(ba[bb]);}}}function az(bd,bf){if(!bd){return;}var ba=bd.getElementsByTagName("link");var be=false;for(var bb=0;bb<ba.length;bb++){if(ba[bb].href.indexOf(bf)!=-1){be=true;}}if(!be){var bc=bd.createElement("link");bc.href=bf;bc.type="text/css";bc.rel="stylesheet";aT(bd).appendChild(bc);}}function r(bd,bf){if(!bd){return;}var ba=bd.getElementsByTagName("script");var be=false;for(var bc=0;bc<ba.length;bc++){if(ba[bc].src.indexOf(bf)!=-1){be=true;}}if(!be){var bb=bd.createElement("script");bb.src=bf;bb.type="text/javascript";aT(bd).appendChild(bb);}}function a5(ba,bc,bb){az(e(ba),bc);if(document!=e(ba)&&bb){az(document,bc);}}function aC(ba,bc,bb){r(e(ba),bc);
if(document!=e(ba)&&bb){r(document,bc);}}function aO(bb,ba){var bc=e(bb);D(bc,ba);}function D(bc,ba){var bb=bc.createElement("style");aT(bc).appendChild(bb);bb.innerHTML=ba;}function aW(bb,ba){if(a8(bb,ba)){return;}bb.className=bb.className.length==0?ba:bb.className+" "+ba;}function a2(bc,ba){var bb=b(bc);while(bb.indexOf(ba)>-1){bb.splice(bb.indexOf(ba),1);}var bd=bb.join(" ").trim();if(bd.length>0){bc.className=bd;}else{if(bc.hasAttribute("class")){bc.removeAttribute("class");}}}function b(ba){if(typeof(ba.className)==="undefined"||ba.className==null){return[];}return ba.className.split(/\s+/);}function a8(bd,ba){var bc=b(bd);for(var bb=0;bb<bc.length;bb++){if(bc[bb].toLowerCase()==ba.toLowerCase()){return true;}}return false;}function a6(bc,bd){var bb=b(bc);for(var ba=0;ba<bb.length;ba++){if(bb[ba].indexOf(bd)===0){return true;}}return false;}function aw(bc){if(typeof(bc.getAttribute("style"))==="undefined"||bc.getAttribute("style")==null||bc.getAttribute("style").trim().length==0){return{};}var be={};var bd=bc.getAttribute("style").split(/;/);for(var bb=0;bb<bd.length;bb++){var bf=bd[bb].trim();var ba=bf.indexOf(":");if(ba>-1){be[bf.substr(0,ba).trim()]=bf.substr(ba+1);}else{be[bf]="";}}return be;}function aF(bc,bb){var bd=aw(bc);for(var ba in bd){var be=bd[ba];if(ba==bb){return be;}}return null;}function aA(bd,bc,ba){var be=aw(bd);for(var bb in be){var bf=be[bb];if(bb==bc&&bf==ba){return true;}}return false;}function H(bc,bb,ba){var bd=aw(bc);bd[bb]=ba;y(bc,bd);}function ay(bb,ba){var bc=aw(bb);delete bc[ba];y(bb,bc);}function y(bb,bd){var bc=[];for(var ba in bd){bc.push(ba+":"+bd[ba]);}if(bc.length>0){bb.setAttribute("style",bc.join(";"));}else{if(bb.hasAttribute("style")){bb.removeAttribute("style");}}}function C(be,bb){var bc;if(Object.prototype.toString.call(bb)==="[object Array]"){bc=bb;}else{bc=[bb];}for(var bd=0;bd<bc.length;bd++){bc[bd]=bc[bd].toLowerCase();}var ba=[];for(var bd=0;bd<be.childNodes.length;bd++){if(be.childNodes[bd].nodeType==1&&bc.indexOf(be.childNodes[bd].tagName.toLowerCase())>-1){ba.push(be.childNodes[bd]);}}return ba;}function m(bd){var bc=aJ(bd);var be=0;for(var bb=0;bb<bc.length;bb++){var ba=bc[bb];var bf=C(ba,["td","th"]);if(bf.length>be){be=bf.length;}}return be;}function ar(ba){return C(ba,["td","th"]);}function i(be){var bd;for(var ba=0;ba<be.length;ba++){var bb=be[ba];var bc=aF(bb,"text-align");if(typeof(bd)=="undefined"){bd=bc;}else{if(bc!==bd){return"do_not_change";}}}if(typeof(bd)=="undefined"||bd==null){bd="default";}if(bd!="left"&&bd!="center"&&bd!="right"&&bd!="default"){bd="do_not_change";}return bd;}function M(be){var bd;for(var ba=0;ba<be.length;ba++){var bb=be[ba];var bc=aF(bb,"vertical-align");if(typeof(bd)=="undefined"){bd=bc;}else{if(bc!==bd){return"do_not_change";}}}if(typeof(bd)=="undefined"||bd==null){bd="default";}if(bd!="top"&&bd!="middle"&&bd!="bottom"&&bd!="default"){bd="do_not_change";}return bd;}function at(bc){var bd=x(aH(bc));for(var bb=0;bb<bd.length;bb++){for(var ba=0;ba<bd[bb].length;ba++){if(bd[bb][ba]==bc){return ba;}}}return -1;}function d(ba){if(ba.hasAttribute("colspan")){var bb=parseInt(ba.getAttribute("colspan"));if(!isNaN(bb)&&bb>0){return bb;}}return 1;}function aI(ba){if(ba.hasAttribute("rowspan")){var bb=parseInt(ba.getAttribute("rowspan"));if(!isNaN(bb)&&bb>0){return bb;}}return 1;}function aJ(bh){var bc=[];var bi=[null,"tbody","thead","tfoot"];for(var bb=0;bb<bi.length;bb++){var bj=bi[bb];var bd=bj==null?[bh]:C(bh,bj);if(bd.length>0){for(var bf=0;bf<bd.length;bf++){var ba=bd[bf];var bg=C(ba,["tr"]);for(var be=0;be<bg.length;be++){bc.push(bg[be]);}}}}var bj=bi[bb];var bd=C(bh,["thead","tfoot"]);for(var bf=0;bf<bd.length;bf++){if(C(bd[bf],["td","th"]).length>0){bc.push(bd[bf]);}}return bc;}function p(be){var bf=[];var bd=aJ(be);for(var bc=0;bc<bd.length;bc++){var bb=C(bd[bc],["td","th"]);for(var ba=0;ba<bb.length;ba++){bf.push(bb[ba]);}}return bf;}function N(bb){var bc=[];var be=p(bb);var ba=i(be);if(ba=="left"||ba=="center"||ba=="right"){bc.push("text-align:"+ba);}var bd=M(be);if(bd=="top"||bd=="middle"||bd=="bottom"){bc.push("vertical-align:"+bd);}return bc.join(";");}function O(ba){if(ba.tagName=="THEAD"){return true;}for(var bb=0;bb<2;bb++){ba=ba.parentNode;if(ba==null||ba.tagName=="TBODY"||ba.tagName=="TABLE"){return false;}if(ba.tagName=="THEAD"){return true;}}return false;}function a(ba,bb){var bc=window.document.createElement(ba);if(bb.length>0){bc.setAttribute("style",bb);}bc.innerHTML="&nbsp;";return bc;}function ah(ba,bc,bb){var bd=aM();if(typeof window["jsplus_"+bd+"_listeners"]==="undefined"){window["jsplus_"+bd+"_listeners"]={};}if(typeof window["jsplus_"+bd+"_listeners"][bc]==="undefined"){window["jsplus_"+bd+"_listeners"][bc]={};}if(typeof window["jsplus_"+bd+"_listeners"][bc][J(ba)]==="undefined"){window["jsplus_"+bd+"_listeners"][bc][J(ba)]=[];}window["jsplus_"+bd+"_listeners"][bc][J(ba)].push((function(){var be=ba;return function(){bb(be);};})());}function g(bb,bc){var bd=aM();if(typeof window["jsplus_"+bd+"_listeners"]!=="undefined"&&typeof window["jsplus_"+bd+"_listeners"][bc]!=="undefined"&&typeof window["jsplus_"+bd+"_listeners"][bc][J(bb)]!="undefined"){for(var ba=0;
ba<window["jsplus_"+bd+"_listeners"][bc][J(bb)].length;ba++){window["jsplus_"+bd+"_listeners"][bc][J(bb)][ba](bb);}}}function ap(bb,bi,ba){var bh=C(bb,["td","th"]);var bf=0;for(var bd=0;bd<bh.length;bd++){var bj=bh[bd];if(bf==bi){var bg=a(bj.tagName,ba);bj.parentNode.insertBefore(bg,bj);return;}var be=d(bj);bf+=be;if(bf>bi){bj.setAttribute("colspan",be+1);return;}}var bc="td";if(bh.length>0){bc=bh[bh.length-1].tagName;}else{if(O(bb)){bc="th";}}for(;bf<=bi;bf++){var bg=a(bj.tagName,ba);bb.appendChild(bg);}}function E(bc,bg,bf){var bd=bc.parentNode.tagName=="THEAD"?"th":"td";var bi=m(bg);var ba=N(bg);var bb=window.document.createElement("tr");for(var be=0;be<bi;be++){var bh=window.document.createElement(bd);if(ba.length>0){bh.setAttribute("style",ba);}bh.innerHTML="&nbsp;";bb.appendChild(bh);}if(bf){bc.parentNode.insertBefore(bb,bc);}else{if(bc.nextSibling!=null){bc.parentNode.insertBefore(bb,bc.nextSibling);}else{bc.parentNode.appendChild(bb);}}return bb;}function T(ba,bb){ah(ba,"table_tools",bb);}function aE(ba){g(ba,"table_tools");}function aH(ba){var bb=ba.parentNode;while(bb!=null){if(bb.tagName=="TABLE"){return bb;}bb=bb.parentNode;}return null;}function x(bl){var bk=aJ(bl);var ba=-1;var bj=[];for(var be=0;be<bk.length;be++){ba++;!bj[ba]&&(bj[ba]=[]);var bi=-1;var bm=C(bk[be],["td","th"]);for(var bd=0;bd<bm.length;bd++){var bh=bm[bd];bi++;while(bj[ba][bi]){bi++;}var bc=d(bh);var bf=aI(bh);for(var bb=0;bb<bf;bb++){if(!bj[ba+bb]){bj[ba+bb]=[];}for(var bg=0;bg<bc;bg++){bj[ba+bb][bi+bg]=bm[bd];}}bi+=bc-1;}}return bj;}CKEDITOR.plugins.add("jsplus_bootstrap_table_conf",{icons:"jsplus_bootstrap_table_conf",lang:"en,ru",init:function(ba){CKEDITOR.dialog.add("jsplus_bootstrap_table_conf-"+J(ba),function(bb){return{title:A(bb,"jsplus_bootstrap_table_conf_title"),minWidth:915,minHeight:348,resizable:false,contents:[{id:"tab1",label:"",title:"",expand:true,padding:0,elements:[{id:"elementId",type:"html",html:ax(bb)}]}],onShow:function(){W(bb);},onOk:function(){G(bb);},onCancel:function(){a3(bb);}};});ba.addCommand("jsplus_bootstrap_table_conf",{exec:function(){var bb=R(ba);if(bb!=null){aU[J(ba)]=bb;ba.openDialog("jsplus_bootstrap_table_conf-"+J(ba));}}});ba.ui.addButton("jsplus_bootstrap_table_conf",{title:A(ba,"jsplus_bootstrap_table_conf_title"),icon:this.path+"icons/jsplus_bootstrap_table_conf.png",command:"jsplus_bootstrap_table_conf"});T(ba,t);ad(ba,t);ba.on("instanceReady",function(){if(ba.ui.get("jsplus_bootstrap_table_conf")&&ba.ui.get("jsplus_bootstrap_table_conf").setState){ba.ui.get("jsplus_bootstrap_table_conf").setState(CKEDITOR.TRISTATE_DISABLED);}});ba.on("mode",function(){if(ba.ui.get("jsplus_bootstrap_table_conf")&&ba.ui.get("jsplus_bootstrap_table_conf").setState){ba.ui.get("jsplus_bootstrap_table_conf").setState(CKEDITOR.TRISTATE_DISABLED);}});}});function t(bb){var ba=R(bb);if(ba!=null){u(bb,"jsplus_bootstrap_table_conf",L);}else{u(bb,"jsplus_bootstrap_table_conf",ai);}}})();