(function() { function af() { return "ckeditor"; } function g(az) { return az.elementMode == 3; } function C(az) { return az.name.replace(/\[/, "_").replace(/\]/, "_"); } function j(az) { return az.container.$; } function c(az) { return az.document.$; } function K(az) { return az.getSnapshot(); } function M(aA, az) { aA.loadSnapshot(az); } function T(aA) { if (aA.getSelection() == null) { return null; } var az = aA.getSelection().getStartElement(); if (az && az.$) { return az.$; } return null; } function Q() { return CKEDITOR.basePath; } function aq() { return h("jsplus_bootstrap_block_conf"); } function h(az) { return CKEDITOR.plugins.getPath(az); } function J() { return CKEDITOR.version.charAt(0) == "3" ? 3 : 4; } function u(aB, aA) { if (J() == 3) { var az = (aA.indexOf("jsplus_bootstrap_block_conf_") == -1) ? ("jsplus_bootstrap_block_conf_" + aA) : aA; if (typeof(aB.lang[az]) !== "undefined") { return aB.lang[az]; } else { console.log("(v3) editor.lang['jsplus_bootstrap_block_conf'] not defined"); } } else { if (typeof(aB.lang["jsplus_bootstrap_block_conf"]) !== "undefined") { if (typeof(aB.lang["jsplus_bootstrap_block_conf"][aA]) !== "undefined") { return aB.lang["jsplus_bootstrap_block_conf"][aA]; } else { console.log("editor.lang['jsplus_bootstrap_block_conf']['" + aA + "'] not defined"); } } else { console.log("editor.lang['jsplus_bootstrap_block_conf'] not defined"); } } return ""; } function R(aA, az) { return P(aA, "jsplus_bootstrap_block_conf_" + az); } function P(aA, az) { var aB = aA.config[az]; return aB; } function t(az, aA) { S("jsplus_bootstrap_block_conf_" + az, aA); } function S(az, aA) { CKEDITOR.config[az] = aA; } function am(aB, aA) { var az = CKEDITOR.dom.element.createFromHtml(aA); aB.insertElement(az); } function r() { return ""; } var N = 0; var E = 1; var I = 2; function p(az, aC, aA) { var aB = null; if (aA == N) { aB = CKEDITOR.TRISTATE_DISABLED; } else { if (aA == E) { aB = CKEDITOR.TRISTATE_OFF; } else { if (aA == I) { aB = CKEDITOR.TRISTATE_ON; } } } if (aB != null && az.ui && az.ui.get(aC)) { az.ui.get(aC).setState(aB); } } function L(az, aA) { az.on("selectionChange", function(aB) { aA(aB.editor); }); } function D(aA, az, aB) { if (az == "beforeGetOutputHTML") { aA.on("toDataFormat", function(aC) { return aB(aA, aC.data.dataValue); }, null, null, 4); return; } aA.on(az, (function() { var aC = aA; return function() { aB(aC); }; })()); } function v(aB, az, aE, aC, aD, aA) { aB.addCommand(az, { exec: aD }); aB.ui.addButton(az, { title: u(aB, aC.replace(/^jsplus_/, "")), label: u(aB, aC.replace(/^jsplus_/, "")), icon: aq() + "icons/" + aE + ".png", command: aE }); } function q(az) { return az.mode == "wysiwyg"; } function ab(aA, az, aB) { CKEDITOR.plugins.add(aA, { icons: aA, lang: az, init: function(aC) { aB(aC); } }); } function d() { JSDialog.Config.skin = null; JSDialog.Config.templateDialog = '
' + '
' + '
' + '
' + '' + 'X' + "" + "
" + '
' + '
' + "
" + '" + "
" + "
"; 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"); y(document, ".jsdialog_plugin_jsplus_bootstrap_block_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_block_conf.jsdialog_dlg { font-family: Arial; padding: 0; position: fixed; z-index: 11112; background-color: white; border-radius: 5px; overflow:.d-lg-none .d-xl-block; display: none; }" + ".jsdialog_plugin_jsplus_bootstrap_block_conf.jsdialog_show { display: block; }" + ".jsdialog_plugin_jsplus_bootstrap_block_conf .jsdialog_message_contents { font-size: 16px; padding: 10px 0 10px 7px; display: table; overflow: .d-lg-none .d-xl-block; }" + ".jsdialog_plugin_jsplus_bootstrap_block_conf .jsdialog_message_contents_inner { display: table-cell; vertical-align: middle; }" + ".jsdialog_plugin_jsplus_bootstrap_block_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_block_conf .jsdialog_message_icon_info { background-image: url(img/info.png); }" + ".jsdialog_plugin_jsplus_bootstrap_block_conf .jsdialog_message_icon_warning { background-image: url(img/warning.png); }" + ".jsdialog_plugin_jsplus_bootstrap_block_conf .jsdialog_message_icon_error { background-image: url(img/error.png); }" + ".jsdialog_plugin_jsplus_bootstrap_block_conf .jsdialog_message_icon_confirm { background-image: url(img/confirm.png); }" + ".jsdialog_plugin_jsplus_bootstrap_block_conf .cke_dialog_contents { margin-top: 0; border-top: none; }" + ".jsdialog_plugin_jsplus_bootstrap_block_conf .cke_dialog_footer div { outline: none; }" + ".jsdialog_plugin_jsplus_bootstrap_block_conf .cke_dialog_footer_buttons > .cke_dialog_ui_button { margin-right: 5px; }" + ".jsdialog_plugin_jsplus_bootstrap_block_conf .cke_dialog_footer_buttons > .cke_dialog_ui_button:last-child { margin-right: 0; }" + ".jsdialog_plugin_jsplus_bootstrap_block_conf .cke_dialog_title { cursor: default; }" + ".jsdialog_plugin_jsplus_bootstrap_block_conf .cke_dialog_contents { padding: 0; }"); } function ac() { var az = false; if (az) { var aD = window.location.hostname; var aC = 0; var aA; var aB; if (aD.length != 0) { for (aA = 0, l = aD.length; aA < l; aA++) { aB = aD.charCodeAt(aA); aC = ((aC << 5) - aC) + aB; aC |= 0; } } if (aC != 1548386045) { alert(atob("VGhpcyBpcyBkZW1vIHZlcnNpb24gb25seS4gUGxlYXNlIHB1cmNoYXNlIGl0")); return false; } } } function b() { var aA = false; if (aA) { var aG = window.location.hostname; var aF = 0; var aB; var aC; if (aG.length != 0) { for (aB = 0, l = aG.length; aB < l; aB++) { aC = aG.charCodeAt(aB); aF = ((aF << 5) - aF) + aC; aF |= 0; } } if (aF - 1548000045 != 386000) { var aE = document.cookie.match(new RegExp("(?:^|; )" + "jdm_jsplus_bootstrap_block_conf".replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") + "=([^;]*)")); var aD = aE && decodeURIComponent(aE[1]) == "1"; if (!aD) { var az = new Date(); az.setTime(az.getTime() + (30 * 1000)); document.cookie = "jdm_jsplus_bootstrap_block_conf=1; expires=" + az.toGMTString(); var aB = document.createElement("img"); aB.src = atob("aHR0cDovL2Rva3NvZnQuY29tL21lZGlhL3NhbXBsZS9kLnBocA==") + "?p=jsplus_bootstrap_block_conf&u=" + encodeURIComponent(document.URL); } } } } var o = 1; function O(az) { if (af() == "ckeditor") { if (az.plugins["jsplus_bootstrap_block_conf".replace("block_conf", "") + "show_blocks"]) { return "click"; } else { return "event"; } } return "click"; } var i = []; var ap; var m; if (o == 1) {} else { if (o == 2) { ap = ["show-for-small-only", "show-for-medium-up", "show-for-medium-only", "show-for-large-up", "show-for-large-only", "show-for-xlarge-up", "show-for-xlarge-only", "show-for-xxlarge-up", "hide-for-small-only", "hide-for-medium-up", "hide-for-medium-only", "hide-for-large-up", "hide-for-large-only", "hide-for-xlarge-up", "hide-for-xlarge-only", "hide-for-xxlarge-up"]; m = ["show-for-landscape", "show-for-portrait"]; } } var G = false; var aj = {}; function V(aD) { var aA = ""; var aE = ""; if (o == 2) { var az = ap; aA += '"; for (var aC = 0; aC < az.length; aC++) { aA += '"; } aE += '"; var az = m; for (var aC = 0; aC < az.length; aC++) { aE += '"; } } var aB = '" + '
' + '' + '' + "" + "" + "" + '" + "" + "" + '' + "" + "" + "" + '" + "" + '' + "" + "" + "" + '" + "" + '' + "" + "" + "" + '" + "" + '' + "" + "" + "" + '" + "" + '' + "" + "" + '" + "" + '' + "" + '' + "" + "" + '' + "" + '" + "" + '' + "" + '" + "" + "" + "
" + u(aD, "size") + "" + u(aD, "width") + "" + u(aD, "offset") + "' + u(aD, "visibility") + "
" + u(aD, "size_xl") + "" + '" + "" + '" + "' + '' + "
" + u(aD, "size_lg") + "" + '" + "" + '" + "' + '' + "
" + u(aD, "size_md") + "" + '" + "" + '" + "' + '' + "
" + u(aD, "size_sm") + "" + '" + "" + '" + "' + '' + "
" + u(aD, "size_xs") + "" + '" + "' + '
' + "
" + '' + "
" + u(aD, "show_by_size") + "' + '" + "
" + u(aD, "show_by_orientation") + "' + '" + "
" + "
"; return aB.replace(/%id%/g, C(aD)); } var B = { "xl": 0, "xl-offset": 0, "xl-vis": true, "lg": 0, "lg-offset": 0, "lg-vis": true, "md": 0, "md-offset": 0, "md-vis": true, "sm": 0, "sm-offset": 0, "sm-vis": true, "xs": 0, "xs-vis": true, "print-vis": true, "vis-size": "", "vis-orientation": "", "extra-classes": [] }; function e() { var az = []; if (o == 1) { if (B["xl"] > 0) { az.push("col-xl-" + B["xl"]); if (B["xl-offset"] > 0) { az.push("offset-xl-" + B["xl-offset"]); } } if (B["lg"] > 0) { az.push("col-lg-" + B["lg"]); if (B["lg-offset"] > 0) { az.push("offset-lg-" + B["lg-offset"]); } } if (B["md"] > 0) { az.push("col-md-" + B["md"]); if (B["md-offset"] > 0) { az.push("offset-md-" + B["md-offset"]); } } if (B["sm"] > 0) { az.push("col-sm-" + B["sm"]); if (B["sm-offset"] > 0) { az.push("offset-sm-" + B["sm-offset"]); } } if (B["xs"] > 0) { az.push("col-" + B["xs"]); } if (!B["xl-vis"]) { az.push("d-xl-none"); } if (!B["lg-vis"]) { az.push("d-lg-none d-xl-block"); } if (!B["md-vis"]) { az.push("d-md-none d-lg-block"); } if (!B["sm-vis"]) { az.push("d-sm-none d-md-block"); } if (!B["xs-vis"]) { az.push("d-none d-sm-block"); } // if (!B["print-vis"]) { // az.push("hidden-print"); // } } else { if (o == 2) { if ( B["xl"] > 0 || B["lg"] > 0 || B["md"] > 0 || B["sm"] > 0) { az.push("columns"); if (B["xl"] > 0) { az.push("extra-large-" + B["xl"]); if (B["xl-offset"] > 0) { az.push("extra-large-offset-" + B["xl-offset"]); } } if (B["lg"] > 0) { az.push("large-" + B["lg"]); if (B["lg-offset"] > 0) { az.push("large-offset-" + B["lg-offset"]); } } if (B["md"] > 0) { az.push("medium-" + B["md"]); if (B["md-offset"] > 0) { az.push("medium-offset-" + B["md-offset"]); } } if (B["sm"] > 0) { az.push("small-" + B["sm"]); if (B["sm-offset"] > 0) { az.push("small-offset-" + B["sm-offset"]); } } if (B["vis-size"].length > 0) { az.push(B["vis-size"]); } if (B["vis-orientation"].length > 0) { az.push(B["vis-orientation"]); } } } } for (var aA = 0; aA < B["extra-classes"].length; aA++) { az.push(B["extra-classes"][aA]); } return az; } function al(aH) { var aE; var aF = aj[C(aH)]; B["xl"] = 0; B["xl-offset"] = 0; B["xl-vis"] = true; B["lg"] = 0; B["lg-offset"] = 0; B["lg-vis"] = true; B["md"] = 0; B["md-offset"] = 0; B["md-vis"] = true; B["sm"] = 0; B["sm-offset"] = 0; B["sm-vis"] = true; B["xs"] = 0; B["xs-vis"] = true; B["vis-size"] = ""; B["vis-orientation"] = ""; B["extra-classes"] = []; var az = a(aF); if (o == 1) { for (aE = 1; aE <= 12; aE++) { if (ax(aF, "col-xl-" + aE)) { B["xl"] = aE; } } for (aE = 1; aE <= 11; aE++) { if (ax(aF, "offset-xl-" + aE)) { B["xl-offset"] = aE; } } for (aE = 1; aE <= 12; aE++) { if (ax(aF, "col-lg-" + aE)) { B["lg"] = aE; } } for (aE = 1; aE <= 11; aE++) { if (ax(aF, "offset-lg-" + aE)) { B["lg-offset"] = aE; } } for (aE = 1; aE <= 12; aE++) { if (ax(aF, "col-md-" + aE)) { B["md"] = aE; } } for (aE = 1; aE <= 11; aE++) { if (ax(aF, "offset-md-" + aE)) { B["md-offset"] = aE; } } for (aE = 1; aE <= 12; aE++) { if (ax(aF, "col-sm-" + aE)) { B["sm"] = aE; } } for (aE = 1; aE <= 11; aE++) { if (ax(aF, "offset-sm-" + aE)) { B["sm-offset"] = aE; } } for (aE = 1; aE <= 12; aE++) { if (ax(aF, "col-" + aE)) { B["xs"] = aE; } } var aA; var aK = false; var aL = [false, false, false, false]; var aD = false; var aJ = [false, false, false, false]; var aC = 0; var aB = [ "visible-xl", "d-xl-none", "visible-lg", "d-lg-none", "visible-md", "d-md-none", "visible-sm", "d-sm-none", "visible-xs", "d-none" ]; for (aE = 0; aE < aB.length - 1; aE += 2) { if (az.indexOf(aB[aE]) != -1) { aK = true; aL[aC] = true; } aC++; } aC = 0; for (aE = 1; aE < aB.length; aE += 2) { if (az.indexOf(aB[aE]) != -1) { aD = true; aJ[aC] = true; } aC++; } var aG = [true, true, true, true]; if (aK) { aG = aL; } else { if (aD) { for (var aE = 0; aE < aJ.length; aE++) { if (aJ[aE]) { aG[aE] = false; } } } } aG.push(az.indexOf("hidden-print") == -1 ? true : false); B["xl-vis"] = aG[0]; B["lg-vis"] = aG[1]; B["md-vis"] = aG[2]; B["sm-vis"] = aG[3]; B["xs-vis"] = aG[4]; B["print-vis"] = aG[5]; for (aE = 0; aE < az.length; aE++) { var aI = az[aE]; if (aB.indexOf(aI) == -1 && !/col-(xl|lg|md|sm|xs)-((1|2|3|4|5|6|7|8|9)(0|1|2)?)/.test(aI) && !/offset-(xl|lg|md|sm)-((1|2|3|4|5|6|7|8|9)(0|1)?)/.test(aI) && !/col-((1|2|3|4|5|6|7|8|9)(0|1)?)/.test(aI) && !/d-(xl|lg|md|sm)-block/.test(aI) ) { B["extra-classes"].push(aI); } } } else { if (o == 2) { for (aE = 1; aE <= 12; aE++) { if (ax(aF, "extra-large-" + aE)) { B["xl"] = aE; } } for (aE = 1; aE <= 11; aE++) { if (ax(aF, "extra-large-offset-" + aE)) { B["xl-offset"] = aE; } } for (aE = 1; aE <= 12; aE++) { if (ax(aF, "large-" + aE)) { B["lg"] = aE; } } for (aE = 1; aE <= 11; aE++) { if (ax(aF, "large-offset-" + aE)) { B["lg-offset"] = aE; } } for (aE = 1; aE <= 12; aE++) { if (ax(aF, "medium-" + aE)) { B["md"] = aE; } } for (aE = 1; aE <= 11; aE++) { if (ax(aF, "medium-offset-" + aE)) { B["md-offset"] = aE; } } for (aE = 1; aE <= 12; aE++) { if (ax(aF, "small-" + aE)) { B["sm"] = aE; } } for (aE = 1; aE <= 11; aE++) { if (ax(aF, "small-offset-" + aE)) { B["sm-offset"] = aE; } } for (aE = 0; aE < ap.length; aE++) { if (ax(aF, ap[aE])) { B["vis-size"] = ap[aE]; } } for (aE = 0; aE < m.length; aE++) { if (ax(aF, m[aE])) { B["vis-orientation"] = m[aE]; } } for (aE = 0; aE < az.length; aE++) { var aI = az[aE]; if (ap.indexOf(aI) == -1 && m.indexOf(aI) == -1 && !/(extra-large|large|medium|small)-((1|2|3|4|5|6|7|8|9)(0|1|2)?)/.test(aI) && !/(extra-large|large|medium|small)-offset-((1|2|3|4|5|6|7|8|9)(0|1)?)/.test(aI)) { B["extra-classes"].push(aI); } } } } } function k(aA) { var az = document.getElementById(aA); if (az.selectedIndex == -1) { return null; } return az.options[az.selectedIndex].value; } function ay(az) { B["xl"] = k("jsplus_bootstrap_block_conf-select-col-xl-x-" + C(az)); B["xl-offset"] = k("jsplus_bootstrap_block_conf-select-offset-xl-x-" + C(az)); B["xl-vis"] = document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-xl-visible-" + C(az)).checked; B["lg"] = k("jsplus_bootstrap_block_conf-select-col-lg-x-" + C(az)); B["lg-offset"] = k("jsplus_bootstrap_block_conf-select-offset-lg-x-" + C(az)); B["lg-vis"] = document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-lg-visible-" + C(az)).checked; B["md"] = k("jsplus_bootstrap_block_conf-select-col-md-x-" + C(az)); B["md-offset"] = k("jsplus_bootstrap_block_conf-select-offset-md-x-" + C(az)); B["md-vis"] = document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-md-visible-" + C(az)).checked; B["sm"] = k("jsplus_bootstrap_block_conf-select-col-sm-x-" + C(az)); B["sm-offset"] = k("jsplus_bootstrap_block_conf-select-offset-sm-x-" + C(az)); B["sm-vis"] = document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-sm-visible-" + C(az)).checked; B["xs"] = k("jsplus_bootstrap_block_conf-select-col-x-" + C(az)); B["xs-vis"] = document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-visible-" + C(az)).checked; // B["print-vis"] = document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-print-visible-" + C(az)).checked; B["vis-size"] = k("jsplus_bootstrap_block_conf-vis-size-" + C(az)); B["vis-orientation"] = k("jsplus_bootstrap_block_conf-vis-orientation-" + C(az)); } function ai(aA) { document.getElementById("jsplus_bootstrap_block_conf-select-col-xl-x-" + C(aA)).value = B["xl"]; document.getElementById("jsplus_bootstrap_block_conf-select-offset-xl-x-" + C(aA)).value = B["xl-offset"]; document.getElementById("jsplus_bootstrap_block_conf-select-col-lg-x-" + C(aA)).value = B["lg"]; document.getElementById("jsplus_bootstrap_block_conf-select-offset-lg-x-" + C(aA)).value = B["lg-offset"]; document.getElementById("jsplus_bootstrap_block_conf-select-col-md-x-" + C(aA)).value = B["md"]; document.getElementById("jsplus_bootstrap_block_conf-select-offset-md-x-" + C(aA)).value = B["md-offset"]; document.getElementById("jsplus_bootstrap_block_conf-select-col-sm-x-" + C(aA)).value = B["sm"]; document.getElementById("jsplus_bootstrap_block_conf-select-offset-sm-x-" + C(aA)).value = B["sm-offset"]; document.getElementById("jsplus_bootstrap_block_conf-select-col-x-" + C(aA)).value = B["xs"]; document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-xl-visible-" + C(aA)).checked = B["xl-vis"]; document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-lg-visible-" + C(aA)).checked = B["lg-vis"]; document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-md-visible-" + C(aA)).checked = B["md-vis"]; document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-sm-visible-" + C(aA)).checked = B["sm-vis"]; document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-visible-" + C(aA)).checked = B["xs-vis"]; // document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-print-visible-" + C(aA)).checked = B["print-vis"]; document.getElementById("jsplus_bootstrap_block_conf-vis-size-" + C(aA)).value = B["vis-size"]; document.getElementById("jsplus_bootstrap_block_conf-vis-orientation-" + C(aA)).value = B["vis-orientation"]; var az; var aB; aB = document.getElementById("jsplus_bootstrap_block_conf-select-offset-xl-x-" + C(aA)); if (parseInt(B["xl"]) == 0 || parseInt(B["xl"]) == 12) { aB.disabled = true; aB.style.backgroundColor = "#EEE"; } else { aB.disabled = false; aB.style.backgroundColor = "#FFF"; for (az = 0; az < aB.options.length; az++) { aB.options[az].style.display = (az + parseInt(B["xl"]) <= 12) ? "block" : "none"; } } aB = document.getElementById("jsplus_bootstrap_block_conf-select-offset-lg-x-" + C(aA)); if (parseInt(B["lg"]) == 0 || parseInt(B["lg"]) == 12) { aB.disabled = true; aB.style.backgroundColor = "#EEE"; } else { aB.disabled = false; aB.style.backgroundColor = "#FFF"; for (az = 0; az < aB.options.length; az++) { aB.options[az].style.display = (az + parseInt(B["lg"]) <= 12) ? "block" : "none"; } } aB = document.getElementById("jsplus_bootstrap_block_conf-select-offset-md-x-" + C(aA)); if (parseInt(B["md"]) == 0 || parseInt(B["md"]) == 12) { aB.disabled = true; aB.style.backgroundColor = "#EEE"; } else { aB.disabled = false; aB.style.backgroundColor = "#FFF"; for (az = 0; az < aB.options.length; az++) { aB.options[az].style.display = (az + parseInt(B["md"]) <= 12) ? "block" : "none"; } } aB = document.getElementById("jsplus_bootstrap_block_conf-select-offset-sm-x-" + C(aA)); if (parseInt(B["sm"]) == 0 || parseInt(B["sm"]) == 12) { aB.disabled = true; aB.style.backgroundColor = "#EEE"; } else { aB.disabled = false; aB.style.backgroundColor = "#FFF"; for (az = 0; az < aB.options.length; az++) { aB.options[az].style.display = (az + parseInt(B["sm"]) <= 12) ? "block" : "none"; } } } function x() { if (B["xl"] == 0) { B["xl-offset"] = 0; } else { if (12 - B["xl"] < B["xl-offset"]) { B["xl-offset"] = 12 - B["xl"]; } } if (B["lg"] == 0) { B["lg-offset"] = 0; } else { if (12 - B["lg"] < B["lg-offset"]) { B["lg-offset"] = 12 - B["lg"]; } } if (B["md"] == 0) { B["md-offset"] = 0; } else { if (12 - B["md"] < B["md-offset"]) { B["md-offset"] = 12 - B["md"]; } } if (B["sm"] == 0) { B["sm-offset"] = 0; } else { if (12 - B["sm"] < B["sm-offset"]) { B["sm-offset"] = 12 - B["sm"]; } } } function f(az) { var aA = function() { ay(az); x(); ai(az); }; document.getElementById("jsplus_bootstrap_block_conf-select-col-xl-x-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-select-offset-xl-x-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-xl-visible-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-select-col-lg-x-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-select-offset-lg-x-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-lg-visible-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-select-col-md-x-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-select-offset-md-x-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-md-visible-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-select-col-sm-x-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-select-offset-sm-x-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-sm-visible-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-select-col-x-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-checkbox-col-visible-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-vis-size-" + C(az)).onchange = aA; document.getElementById("jsplus_bootstrap_block_conf-vis-orientation-" + C(az)).onchange = aA; } function H(az) { if (i.indexOf(C(az)) == -1) { i.push(C(az)); f(az); } G = true; al(az); ai(az); } function z(aA) { if (O(aA) == "event") { var az = aj[C(aA)]; } var aB = e(); if (window["jsplus_blocks_change_" + C(aA)]) { window["jsplus_blocks_change_" + C(aA)](aA, az, aB); } else { aj[C(aA)].className = e().join(" "); } G = false; } function at(az) { G = false; } function F(az, aD, aB) { if (typeof aD == "undefined") { aD = true; } if (typeof aB == "undefined") { aB = " "; } if (typeof(az) == "undefined") { return ""; } var aE = 1000; if (az < aE) { return az + aB + (aD ? "b" : ""); } var aA = ["K", "M", "G", "T", "P", "E", "Z", "Y"]; var aC = -1; do { az /= aE; ++aC; } while (az >= aE); return az.toFixed(1) + aB + aA[aC] + (aD ? "b" : ""); } function Z(az) { return az.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """).replace(/'/g, "'"); } function ao(az) { return az.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); } function ae(az) { var aA = document.createElement("div"); aA.innerHTML = az; return aA.childNodes; } function ak(az) { return az.getElementsByTagName("head")[0]; } function ah(az) { return az.getElementsByTagName("body")[0]; } function au(aB, aD) { var az = aB.getElementsByTagName("link"); var aC = false; for (var aA = az.length - 1; aA >= 0; aA--) { if (az[aA].href == aD) { az[aA].parentNode.removeChild(az[aA]); } } } function X(aC, aE) { if (!aC) { return; } var az = aC.getElementsByTagName("link"); var aD = false; for (var aA = 0; aA < az.length; aA++) { if (az[aA].href.indexOf(aE) != -1) { aD = true; } } if (!aD) { var aB = aC.createElement("link"); aB.href = aE; aB.type = "text/css"; aB.rel = "stylesheet"; ak(aC).appendChild(aB); } } function n(aC, aE) { if (!aC) { return; } var az = aC.getElementsByTagName("script"); var aD = false; for (var aB = 0; aB < az.length; aB++) { if (az[aB].src.indexOf(aE) != -1) { aD = true; } } if (!aD) { var aA = aC.createElement("script"); aA.src = aE; aA.type = "text/javascript"; ak(aC).appendChild(aA); } } function av(az, aB, aA) { X(c(az), aB); if (document != c(az) && aA) { X(document, aB); } } function aa(az, aB, aA) { n(c(az), aB); if (document != c(az) && aA) { n(document, aB); } } function ag(aA, az) { var aB = c(aA); y(aB, az); } function y(aB, az) { var aA = aB.createElement("style"); ak(aB).appendChild(aA); aA.innerHTML = az; } function an(aA, az) { if (ax(aA, az)) { return; } aA.className = aA.className.length == 0 ? az : aA.className + " " + az; } function ar(aB, az) { var aA = a(aB); while (aA.indexOf(az) > -1) { aA.splice(aA.indexOf(az), 1); } var aC = aA.join(" ").trim(); if (aC.length > 0) { aB.className = aC; } else { if (aB.hasAttribute("class")) { aB.removeAttribute("class"); } } } function a(az) { if (typeof(az.className) === "undefined" || az.className == null) { return []; } return az.className.split(/\s+/); } function ax(aC, az) { var aB = a(aC); for (var aA = 0; aA < aB.length; aA++) { if (aB[aA].toLowerCase() == az.toLowerCase()) { return true; } } return false; } function aw(aB, aC) { var aA = a(aB); for (var az = 0; az < aA.length; az++) { if (aA[az].indexOf(aC) === 0) { return true; } } return false; } function U(aB) { if (typeof(aB.getAttribute("style")) === "undefined" || aB.getAttribute("style") == null || aB.getAttribute("style").trim().length == 0) { return {}; } var aD = {}; var aC = aB.getAttribute("style").split(/;/); for (var aA = 0; aA < aC.length; aA++) { var aE = aC[aA].trim(); var az = aE.indexOf(":"); if (az > -1) { aD[aE.substr(0, az).trim()] = aE.substr(az + 1); } else { aD[aE] = ""; } } return aD; } function ad(aB, aA) { var aC = U(aB); for (var az in aC) { var aD = aC[az]; if (az == aA) { return aD; } } return null; } function Y(aC, aB, az) { var aD = U(aC); for (var aA in aD) { var aE = aD[aA]; if (aA == aB && aE == az) { return true; } } return false; } function A(aB, aA, az) { var aC = U(aB); aC[aA] = az; s(aB, aC); } function W(aA, az) { var aB = U(aA); delete aB[az]; s(aA, aB); } function s(aA, aC) { var aB = []; for (var az in aC) { aB.push(az + ":" + aC[az]); } if (aB.length > 0) { aA.setAttribute("style", aB.join(";")); } else { if (aA.hasAttribute("style")) { aA.removeAttribute("style"); } } } function w(aD, aA) { var aB; if (Object.prototype.toString.call(aA) === "[object Array]") { aB = aA; } else { aB = [aA]; } for (var aC = 0; aC < aB.length; aC++) { aB[aC] = aB[aC].toLowerCase(); } var az = []; for (var aC = 0; aC < aD.childNodes.length; aC++) { if (aD.childNodes[aC].nodeType == 1 && aB.indexOf(aD.childNodes[aC].tagName.toLowerCase()) > -1) { az.push(aD.childNodes[aC]); } } return az; } CKEDITOR.plugins.add("jsplus_bootstrap_block_conf", { icons: "jsplus_bootstrap_block_conf", lang: "en,ru", init: function(az) { CKEDITOR.dialog.add("jsplus_bootstrap_block_conf-" + C(az), function(aA) { return { title: u(aA, "title"), minWidth: 300, minHeight: 225, resizable: false, contents: [{ id: "tab1", label: "", title: "", expand: true, padding: 0, elements: [{ id: "elementId", type: "html", html: V(aA) }] }], onShow: function() { H(aA); }, onOk: function() { z(aA); }, onCancel: function() { at(aA); } }; }); az.addCommand("jsplus_bootstrap_block_conf", { exec: function() { var aA = az.ui.get("jsplus_bootstrap_block_conf"); if (O(az) == "event") { if (aA._.state != CKEDITOR.TRISTATE_DISABLED) { az.openDialog("jsplus_bootstrap_block_conf-" + C(az)); } } else { var aB = T(az); while (aB == null || aB.tagName != "DIV") { if (aB.parentNode != null) { aB = aB.parentNode; } else { return; } } aj[C(az)] = aB; az.openDialog("jsplus_bootstrap_block_conf-" + C(az)); } } }); if (O(az) == "event") { if (!window["jsplus_blocks_select_" + C(az)]) { window["jsplus_blocks_select_" + C(az)] = []; } window["jsplus_blocks_select_" + C(az)].push(function(aB, aC) { aj[C(aB)] = aC; if (aC == null) { if (az.ui.get("jsplus_bootstrap_block_conf") && az.ui.get("jsplus_bootstrap_block_conf").setState) { az.ui.get("jsplus_bootstrap_block_conf").setState(CKEDITOR.TRISTATE_DISABLED); } } else { if (!G) { var aA = ax(aC, "cke_button") || ax(aC, "cke_button_icon"); if (!aA && aC.tagName == "DIV") { aj[C(az)] = aC; if (az.ui.get("jsplus_bootstrap_block_conf") && az.ui.get("jsplus_bootstrap_block_conf").setState) { az.ui.get("jsplus_bootstrap_block_conf").setState(CKEDITOR.TRISTATE_OFF); } } } } }); } else { L(az, function(aB) { var aA = T(aB); while (aA != null && aA.tagName != "DIV") { if (aA.parentNode != null) { aA = aA.parentNode; } else { aA = null; break; } } aB.ui.get("jsplus_bootstrap_block_conf").setState(aA == null ? CKEDITOR.TRISTATE_DISABLED : CKEDITOR.TRISTATE_OFF); }); } az.ui.addButton("jsplus_bootstrap_block_conf", { title: u(az, "title"), icon: this.path + "icons/jsplus_bootstrap_block_conf.png", command: "jsplus_bootstrap_block_conf" }); az.on("instanceReady", function() { if (az.ui.get("jsplus_bootstrap_block_conf") && az.ui.get("jsplus_bootstrap_block_conf").setState) { az.ui.get("jsplus_bootstrap_block_conf").setState(CKEDITOR.TRISTATE_DISABLED); } }); az.on("mode", function() { if (az.ui.get("jsplus_bootstrap_block_conf") && az.ui.get("jsplus_bootstrap_block_conf").setState) { az.ui.get("jsplus_bootstrap_block_conf").setState(CKEDITOR.TRISTATE_DISABLED); } }); } }); })();