helpcenter/Web/js/scripts.body.js
alexandervnuchkov 71f171fb08 First commit
2016-08-29 16:51:20 +03:00

24 lines
32 KiB
JavaScript

/* jquery.blockUI.min.js */
!function () { "use strict"; function setup($) { function install(el, opts) { var css, themedCSS, full = el == window, msg = opts && void 0 !== opts.message ? opts.message : void 0; if (opts = $.extend({}, $.blockUI.defaults, opts || {}), !opts.ignoreIfBlocked || !$(el).data("blockUI.isBlocked")) { if (opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {}), css = $.extend({}, $.blockUI.defaults.css, opts.css || {}), opts.onOverlayClick && (opts.overlayCSS.cursor = "pointer"), themedCSS = $.extend({}, $.blockUI.defaults.themedCSS, opts.themedCSS || {}), msg = void 0 === msg ? opts.message : msg, full && pageBlock && remove(window, { fadeOut: 0 }), msg && "string" != typeof msg && (msg.parentNode || msg.jquery)) { var node = msg.jquery ? msg[0] : msg, data = {}; $(el).data("blockUI.history", data), data.el = node, data.parent = node.parentNode, data.display = node.style.display, data.position = node.style.position, data.parent && data.parent.removeChild(node) } $(el).data("blockUI.onUnblock", opts.onUnblock); var lyr1, lyr2, lyr3, s, z = opts.baseZ; lyr1 = $(msie || opts.forceIframe ? '<iframe class="blockUI" style="z-index:' + z++ + ';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="' + opts.iframeSrc + '"></iframe>' : '<div class="blockUI" style="display:none"></div>'), lyr2 = $(opts.theme ? '<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:' + z++ + ';display:none"></div>' : '<div class="blockUI blockOverlay" style="z-index:' + z++ + ';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'), opts.theme && full ? (s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:' + (z + 10) + ';display:none;position:fixed">', opts.title && (s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">' + (opts.title || "&nbsp;") + "</div>"), s += '<div class="ui-widget-content ui-dialog-content"></div>', s += "</div>") : opts.theme ? (s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:' + (z + 10) + ';display:none;position:absolute">', opts.title && (s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">' + (opts.title || "&nbsp;") + "</div>"), s += '<div class="ui-widget-content ui-dialog-content"></div>', s += "</div>") : s = full ? '<div class="blockUI ' + opts.blockMsgClass + ' blockPage" style="z-index:' + (z + 10) + ';display:none;position:fixed"></div>' : '<div class="blockUI ' + opts.blockMsgClass + ' blockElement" style="z-index:' + (z + 10) + ';display:none;position:absolute"></div>', lyr3 = $(s), msg && (opts.theme ? (lyr3.css(themedCSS), lyr3.addClass("ui-widget-content")) : lyr3.css(css)), opts.theme || lyr2.css(opts.overlayCSS), lyr2.css("position", full ? "fixed" : "absolute"), (msie || opts.forceIframe) && lyr1.css("opacity", 0); var layers = [lyr1, lyr2, lyr3], $par = $(full ? "body" : el); $.each(layers, function () { this.appendTo($par) }), opts.theme && opts.draggable && $.fn.draggable && lyr3.draggable({ handle: ".ui-dialog-titlebar", cancel: "li" }); var expr = setExpr && (!$.support.boxModel || $("object,embed", full ? null : el).length > 0); if (ie6 || expr) { if (full && opts.allowBodyStretch && $.support.boxModel && $("html,body").css("height", "100%"), (ie6 || !$.support.boxModel) && !full) var t = sz(el, "borderTopWidth"), l = sz(el, "borderLeftWidth"), fixT = t ? "(0 - " + t + ")" : 0, fixL = l ? "(0 - " + l + ")" : 0; $.each(layers, function (i, o) { var s = o[0].style; if (s.position = "absolute", 2 > i) full ? s.setExpression("height", "Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:" + opts.quirksmodeOffsetHack + ') + "px"') : s.setExpression("height", 'this.parentNode.offsetHeight + "px"'), full ? s.setExpression("width", 'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"') : s.setExpression("width", 'this.parentNode.offsetWidth + "px"'), fixL && s.setExpression("left", fixL), fixT && s.setExpression("top", fixT); else if (opts.centerY) full && s.setExpression("top", '(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'), s.marginTop = 0; else if (!opts.centerY && full) { var top = opts.css && opts.css.top ? parseInt(opts.css.top, 10) : 0, expression = "((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + " + top + ') + "px"'; s.setExpression("top", expression) } }) } if (msg && (opts.theme ? lyr3.find(".ui-widget-content").append(msg) : lyr3.append(msg), (msg.jquery || msg.nodeType) && $(msg).show()), (msie || opts.forceIframe) && opts.showOverlay && lyr1.show(), opts.fadeIn) { var cb = opts.onBlock ? opts.onBlock : noOp, cb1 = opts.showOverlay && !msg ? cb : noOp, cb2 = msg ? cb : noOp; opts.showOverlay && lyr2._fadeIn(opts.fadeIn, cb1), msg && lyr3._fadeIn(opts.fadeIn, cb2) } else opts.showOverlay && lyr2.show(), msg && lyr3.show(), opts.onBlock && opts.onBlock.bind(lyr3)(); if (bind(1, el, opts), full ? (pageBlock = lyr3[0], pageBlockEls = $(opts.focusableElements, pageBlock), opts.focusInput && setTimeout(focus, 20)) : center(lyr3[0], opts.centerX, opts.centerY), opts.timeout) { var to = setTimeout(function () { full ? $.unblockUI(opts) : $(el).unblock(opts) }, opts.timeout); $(el).data("blockUI.timeout", to) } } } function remove(el, opts) { var count, full = el == window, $el = $(el), data = $el.data("blockUI.history"), to = $el.data("blockUI.timeout"); to && (clearTimeout(to), $el.removeData("blockUI.timeout")), opts = $.extend({}, $.blockUI.defaults, opts || {}), bind(0, el, opts), null === opts.onUnblock && (opts.onUnblock = $el.data("blockUI.onUnblock"), $el.removeData("blockUI.onUnblock")); var els; els = full ? $("body").children().filter(".blockUI").add("body > .blockUI") : $el.find(">.blockUI"), opts.cursorReset && (els.length > 1 && (els[1].style.cursor = opts.cursorReset), els.length > 2 && (els[2].style.cursor = opts.cursorReset)), full && (pageBlock = pageBlockEls = null), opts.fadeOut ? (count = els.length, els.stop().fadeOut(opts.fadeOut, function () { 0 === --count && reset(els, data, opts, el) })) : reset(els, data, opts, el) } function reset(els, data, opts, el) { var $el = $(el); if (!$el.data("blockUI.isBlocked")) { els.each(function (i, o) { this.parentNode && this.parentNode.removeChild(this) }), data && data.el && (data.el.style.display = data.display, data.el.style.position = data.position, data.el.style.cursor = "default", data.parent && data.parent.appendChild(data.el), $el.removeData("blockUI.history")), $el.data("blockUI.static") && $el.css("position", "static"), "function" == typeof opts.onUnblock && opts.onUnblock(el, opts); var body = $(document.body), w = body.width(), cssW = body[0].style.width; body.width(w - 1).width(w), body[0].style.width = cssW } } function bind(b, el, opts) { var full = el == window, $el = $(el); if ((b || (!full || pageBlock) && (full || $el.data("blockUI.isBlocked"))) && ($el.data("blockUI.isBlocked", b), full && opts.bindEvents && (!b || opts.showOverlay))) { var events = "mousedown mouseup keydown keypress keyup touchstart touchend touchmove"; b ? $(document).bind(events, opts, handler) : $(document).unbind(events, handler) } } function handler(e) { if ("keydown" === e.type && e.keyCode && 9 == e.keyCode && pageBlock && e.data.constrainTabKey) { var els = pageBlockEls, fwd = !e.shiftKey && e.target === els[els.length - 1], back = e.shiftKey && e.target === els[0]; if (fwd || back) return setTimeout(function () { focus(back) }, 10), !1 } var opts = e.data, target = $(e.target); return target.hasClass("blockOverlay") && opts.onOverlayClick && opts.onOverlayClick(e), target.parents("div." + opts.blockMsgClass).length > 0 ? !0 : 0 === target.parents().children().filter("div.blockUI").length } function focus(back) { if (pageBlockEls) { var e = pageBlockEls[back === !0 ? pageBlockEls.length - 1 : 0]; e && e.focus() } } function center(el, x, y) { var p = el.parentNode, s = el.style, l = (p.offsetWidth - el.offsetWidth) / 2 - sz(p, "borderLeftWidth"), t = (p.offsetHeight - el.offsetHeight) / 2 - sz(p, "borderTopWidth"); x && (s.left = l > 0 ? l + "px" : "0"), y && (s.top = t > 0 ? t + "px" : "0") } function sz(el, p) { return parseInt($.css(el, p), 10) || 0 } $.fn._fadeIn = $.fn.fadeIn; var noOp = $.noop || function () { }, msie = /MSIE/.test(navigator.userAgent), ie6 = /MSIE 6.0/.test(navigator.userAgent) && !/MSIE 8.0/.test(navigator.userAgent), setExpr = (document.documentMode || 0, $.isFunction(document.createElement("div").style.setExpression)); $.blockUI = function (opts) { install(window, opts) }, $.unblockUI = function (opts) { remove(window, opts) }, $.growlUI = function (title, message, timeout, onClose) { var $m = $('<div class="growlUI"></div>'); title && $m.append("<h1>" + title + "</h1>"), message && $m.append("<h2>" + message + "</h2>"), void 0 === timeout && (timeout = 3e3); var callBlock = function (opts) { opts = opts || {}, $.blockUI({ message: $m, fadeIn: "undefined" != typeof opts.fadeIn ? opts.fadeIn : 700, fadeOut: "undefined" != typeof opts.fadeOut ? opts.fadeOut : 1e3, timeout: "undefined" != typeof opts.timeout ? opts.timeout : timeout, centerY: !1, showOverlay: !1, onUnblock: onClose, css: $.blockUI.defaults.growlCSS }) }; callBlock(); $m.css("opacity"); $m.mouseover(function () { callBlock({ fadeIn: 0, timeout: 3e4 }); var displayBlock = $(".blockMsg"); displayBlock.stop(), displayBlock.fadeTo(300, 1) }).mouseout(function () { $(".blockMsg").fadeOut(1e3) }) }, $.fn.block = function (opts) { if (this[0] === window) return $.blockUI(opts), this; var fullOpts = $.extend({}, $.blockUI.defaults, opts || {}); return this.each(function () { var $el = $(this); fullOpts.ignoreIfBlocked && $el.data("blockUI.isBlocked") || $el.unblock({ fadeOut: 0 }) }), this.each(function () { "static" == $.css(this, "position") && (this.style.position = "relative", $(this).data("blockUI.static", !0)), this.style.zoom = 1, install(this, opts) }) }, $.fn.unblock = function (opts) { return this[0] === window ? ($.unblockUI(opts), this) : this.each(function () { remove(this, opts) }) }, $.blockUI.version = 2.7, $.blockUI.defaults = { message: "<h1>Please wait...</h1>", title: null, draggable: !0, theme: !1, css: { padding: 0, margin: 0, width: "30%", top: "40%", left: "35%", textAlign: "center", color: "#000", border: "3px solid #aaa", backgroundColor: "#fff", cursor: "wait" }, themedCSS: { width: "30%", top: "40%", left: "35%" }, overlayCSS: { backgroundColor: "#000", opacity: .6, cursor: "wait" }, cursorReset: "default", growlCSS: { width: "350px", top: "10px", left: "", right: "10px", border: "none", padding: "5px", opacity: .6, cursor: "default", color: "#fff", backgroundColor: "#000", "-webkit-border-radius": "10px", "-moz-border-radius": "10px", "border-radius": "10px" }, iframeSrc: /^https/i.test(window.location.href || "") ? "javascript:false" : "about:blank", forceIframe: !1, baseZ: 1e3, centerX: !0, centerY: !0, allowBodyStretch: !0, bindEvents: !0, constrainTabKey: !0, fadeIn: 200, fadeOut: 400, timeout: 0, showOverlay: !0, focusInput: !0, focusableElements: ":input:enabled:visible", onBlock: null, onUnblock: null, onOverlayClick: null, quirksmodeOffsetHack: 4, blockMsgClass: "blockMsg", ignoreIfBlocked: !1 }; var pageBlock = null, pageBlockEls = [] } "function" == typeof define && define.amd && define.amd.jQuery ? define(["jquery"], setup) : setup(jQuery) }();
/* jquery.tmpl.js */
!function (jQuery, undefined) { function newTmplItem(options, parentItem, fn, data) { var newItem = { data: data || (parentItem ? parentItem.data : {}), _wrap: parentItem ? parentItem._wrap : null, tmpl: null, parent: parentItem || null, nodes: [], calls: tiCalls, nest: tiNest, wrap: tiWrap, html: tiHtml, update: tiUpdate }; return options && jQuery.extend(newItem, options, { nodes: [], parent: parentItem }), fn && (newItem.tmpl = fn, newItem._ctnt = newItem._ctnt || newItem.tmpl(jQuery, newItem), newItem.key = ++itemKey, (stack.length ? wrappedItems : newTmplItems)[itemKey] = newItem), newItem } function build(tmplItem, nested, content) { var frag, ret = content ? jQuery.map(content, function (item) { return "string" == typeof item ? tmplItem.key ? item.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g, "$1 " + tmplItmAtt + '="' + tmplItem.key + '" $2') : item : build(item, tmplItem, item._ctnt) }) : tmplItem; return nested ? ret : (ret = ret.join(""), ret.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/, function (all, before, middle, after) { frag = jQuery(middle).get(), storeTmplItems(frag), before && (frag = unencode(before).concat(frag)), after && (frag = frag.concat(unencode(after))) }), frag ? frag : unencode(ret)) } function unencode(text) { var el = document.createElement("div"); return el.innerHTML = text, jQuery.makeArray(el.childNodes) } function buildTmplFn(markup) { return new Function("jQuery", "$item", "var $=jQuery,call,_=[],$data=$item.data;with($data){_.push('" + jQuery.trim(markup).replace(/([\\'])/g, "\\$1").replace(/[\r\t\n]/g, " ").replace(/\$\{([^\}]*)\}/g, "{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g, function (all, slash, type, fnargs, target, parens, args) { var def, expr, exprAutoFnDetect, tag = jQuery.tmpl.tag[type]; if (!tag) throw "Template command not found: " + type; return def = tag._default || [], parens && !/\w$/.test(target) && (target += parens, parens = ""), target ? (target = unescape(target), args = args ? "," + unescape(args) + ")" : parens ? ")" : "", expr = parens ? target.indexOf(".") > -1 ? target + parens : "(" + target + ").call($item" + args : target, exprAutoFnDetect = parens ? expr : "(typeof(" + target + ")==='function'?(" + target + ").call($item):(" + target + "))") : exprAutoFnDetect = expr = def.$1 || "null", fnargs = unescape(fnargs), "');" + tag[slash ? "close" : "open"].split("$notnull_1").join(target ? "typeof(" + target + ")!=='undefined' && (" + target + ")!=null" : "true").split("$1a").join(exprAutoFnDetect).split("$1").join(expr).split("$2").join(fnargs ? fnargs.replace(/\s*([^\(]+)\s*(\((.*?)\))?/g, function (all, name, parens, params) { return params = params ? "," + params + ")" : parens ? ")" : "", params ? "(" + name + ").call($item" + params : all }) : def.$2 || "") + "_.push('" }) + "');}return _;") } function updateWrapped(options, wrapped) { options._wrap = build(options, !0, jQuery.isArray(wrapped) ? wrapped : [htmlExpr.test(wrapped) ? wrapped : jQuery(wrapped).html()]).join("") } function unescape(args) { return args ? args.replace(/\\'/g, "'").replace(/\\\\/g, "\\") : null } function outerHtml(elem) { var div = document.createElement("div"); return div.appendChild(elem.cloneNode(!0)), div.innerHTML } function storeTmplItems(content) { function processItemKey(el) { function cloneTmplItem(key) { key += keySuffix, tmplItem = newClonedItems[key] = newClonedItems[key] || newTmplItem(tmplItem, newTmplItems[tmplItem.parent.key + keySuffix] || tmplItem.parent, null, !0) } var pntKey, pntItem, tmplItem, key, pntNode = el; if (key = el.getAttribute(tmplItmAtt)) { for (; pntNode.parentNode && 1 === (pntNode = pntNode.parentNode).nodeType && !(pntKey = pntNode.getAttribute(tmplItmAtt)) ;); pntKey !== key && (pntNode = pntNode.parentNode ? 11 === pntNode.nodeType ? 0 : pntNode.getAttribute(tmplItmAtt) || 0 : 0, (tmplItem = newTmplItems[key]) || (tmplItem = wrappedItems[key], tmplItem = newTmplItem(tmplItem, newTmplItems[pntNode] || wrappedItems[pntNode], null, !0), tmplItem.key = ++itemKey, newTmplItems[itemKey] = tmplItem), cloneIndex && cloneTmplItem(key)), el.removeAttribute(tmplItmAtt) } else cloneIndex && (tmplItem = jQuery.data(el, "tmplItem")) && (cloneTmplItem(tmplItem.key), newTmplItems[tmplItem.key] = tmplItem, pntNode = jQuery.data(el.parentNode, "tmplItem"), pntNode = pntNode ? pntNode.key : 0); if (tmplItem) { for (pntItem = tmplItem; pntItem && pntItem.key != pntNode;) pntItem.nodes.push(el), pntItem = pntItem.parent; delete tmplItem._ctnt, delete tmplItem._wrap, jQuery.data(el, "tmplItem", tmplItem) } } var elem, elems, i, l, m, keySuffix = "_" + cloneIndex, newClonedItems = {}; for (i = 0, l = content.length; l > i; i++) if (1 === (elem = content[i]).nodeType) { for (elems = elem.getElementsByTagName("*"), m = elems.length - 1; m >= 0; m--) processItemKey(elems[m]); processItemKey(elem) } } function tiCalls(content, tmpl, data, options) { return content ? void stack.push({ _: content, tmpl: tmpl, item: this, data: data, options: options }) : stack.pop() } function tiNest(tmpl, data, options) { return jQuery.tmpl(jQuery.template(tmpl), data, options, this) } function tiWrap(call, wrapped) { var options = call.options || {}; return options.wrapped = wrapped, jQuery.tmpl(jQuery.template(call.tmpl), call.data, options, call.item) } function tiHtml(filter, textOnly) { var wrapped = this._wrap; return jQuery.map(jQuery(jQuery.isArray(wrapped) ? wrapped.join("") : wrapped).filter(filter || "*"), function (e) { return textOnly ? e.innerText || e.textContent : e.outerHTML || outerHtml(e) }) } function tiUpdate() { var coll = this.nodes; jQuery.tmpl(null, null, null, this).insertBefore(coll[0]), jQuery(coll).remove() } var appendToTmplItems, oldManip = jQuery.fn.domManip, tmplItmAtt = "_tmplitem", htmlExpr = /^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /, newTmplItems = {}, wrappedItems = {}, topTmplItem = { key: 0, data: {} }, itemKey = 0, cloneIndex = 0, stack = []; jQuery.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function (name, original) { jQuery.fn[name] = function (selector) { var elems, i, l, tmplItems, ret = [], insert = jQuery(selector), parent = 1 === this.length && this[0].parentNode; if (appendToTmplItems = newTmplItems || {}, parent && 11 === parent.nodeType && 1 === parent.childNodes.length && 1 === insert.length) insert[original](this[0]), ret = this; else { for (i = 0, l = insert.length; l > i; i++) cloneIndex = i, elems = (i > 0 ? this.clone(!0) : this).get(), jQuery.fn[original].apply(jQuery(insert[i]), elems), ret = ret.concat(elems); cloneIndex = 0, ret = this.pushStack(ret, name, insert.selector) } return tmplItems = appendToTmplItems, appendToTmplItems = null, jQuery.tmpl.complete(tmplItems), ret } }), jQuery.fn.extend({ tmpl: function (data, options, parentItem) { return jQuery.tmpl(this[0], data, options, parentItem) }, tmplItem: function () { return jQuery.tmplItem(this[0]) }, template: function (name) { return jQuery.template(name, this[0]) }, domManip: function (args, table, callback, options) { if (args[0] && args[0].nodeType) { for (var tmplItem, dmArgs = jQuery.makeArray(arguments), argsLength = args.length, i = 0; argsLength > i && !(tmplItem = jQuery.data(args[i++], "tmplItem")) ;); argsLength > 1 && (dmArgs[0] = [jQuery.makeArray(args)]), tmplItem && cloneIndex && (dmArgs[2] = function (fragClone) { jQuery.tmpl.afterManip(this, fragClone, callback) }), oldManip.apply(this, dmArgs) } else oldManip.apply(this, arguments); return cloneIndex = 0, appendToTmplItems || jQuery.tmpl.complete(newTmplItems), this } }), jQuery.extend({ tmpl: function (tmpl, data, options, parentItem) { var ret, topLevel = !parentItem; if (topLevel) parentItem = topTmplItem, tmpl = jQuery.template[tmpl] || jQuery.template(null, tmpl), wrappedItems = {}; else if (!tmpl) return tmpl = parentItem.tmpl, newTmplItems[parentItem.key] = parentItem, parentItem.nodes = [], parentItem.wrapped && updateWrapped(parentItem, parentItem.wrapped), jQuery(build(parentItem, null, parentItem.tmpl(jQuery, parentItem))); return tmpl ? ("function" == typeof data && (data = data.call(parentItem || {})), options && options.wrapped && updateWrapped(options, options.wrapped), ret = jQuery.isArray(data) ? jQuery.map(data, function (dataItem) { return dataItem ? newTmplItem(options, parentItem, tmpl, dataItem) : null }) : [newTmplItem(options, parentItem, tmpl, data)], topLevel ? jQuery(build(parentItem, null, ret)) : ret) : [] }, tmplItem: function (elem) { var tmplItem; for (elem instanceof jQuery && (elem = elem[0]) ; elem && 1 === elem.nodeType && !(tmplItem = jQuery.data(elem, "tmplItem")) && (elem = elem.parentNode) ;); return tmplItem || topTmplItem }, template: function (name, tmpl) { return tmpl ? ("string" == typeof tmpl ? tmpl = buildTmplFn(tmpl) : tmpl instanceof jQuery && (tmpl = tmpl[0] || {}), tmpl.nodeType && (tmpl = jQuery.data(tmpl, "tmpl") || jQuery.data(tmpl, "tmpl", buildTmplFn(tmpl.innerHTML))), "string" == typeof name ? jQuery.template[name] = tmpl : tmpl) : name ? "string" != typeof name ? jQuery.template(null, name) : jQuery.template[name] || jQuery.template(null, htmlExpr.test(name) ? name : jQuery(name)) : null }, encode: function (text) { return ("" + text).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;") } }), jQuery.extend(jQuery.tmpl, { tag: { tmpl: { _default: { $2: "null" }, open: "if($notnull_1){_=_.concat($item.nest($1,$2));}" }, wrap: { _default: { $2: "null" }, open: "$item.calls(_,$1,$2);_=[];", close: "call=$item.calls();_=call._.concat($item.wrap(call,_));" }, each: { _default: { $2: "$index, $value" }, open: "if($notnull_1){$.each($1a,function($2){with(this){", close: "}});}" }, "if": { open: "if(($notnull_1) && $1a){", close: "}" }, "else": { _default: { $1: "true" }, open: "}else if(($notnull_1) && $1a){" }, html: { open: "if($notnull_1){_.push($1a);}" }, "=": { _default: { $1: "$data" }, open: "if($notnull_1){_.push($.encode($1a));}" }, "!": { open: "" } }, complete: function (items) { newTmplItems = {} }, afterManip: function (elem, fragClone, callback) { var content = 11 === fragClone.nodeType ? jQuery.makeArray(fragClone.childNodes) : 1 === fragClone.nodeType ? [fragClone] : []; callback.call(elem, fragClone), storeTmplItems(content), cloneIndex++ } }) }(jQuery);
/* core/language-selector.min.js */
var LanguageSelectorManager = new function () { var init = function () { $("div.custom-select").hover(function () { $(this).css("background", "none") }, function () { $(this).css("background", "none") }) }, openLngSelector = function () { $("#LanguageSelector").hasClass("open") || ($("div.custom-select").unbind("mouseenter mouseleave"), $("div.custom-select").css("background", "none"), $("#LanguageSelector ul.options:first").slideDown(10, function () { $("#LanguageSelector").addClass("open"), $(document).one("click", function () { $("div.custom-select").css("background", "none"), init(), $("#LanguageSelector ul.options:first").hide(), $("#LanguageSelector").removeClass("open") }) })) }; return { init: init, openLngSelector: openLngSelector } };
/* core/modalscontroller.min.js */
function Search(path) { var url = new String, search = document.getElementById("txtSearch").value; return null != search && search.length > 0 && search != $("#helpmark").val() ? (url = path + "?text=" + encodeURIComponent(search), void (window.location.href = url)) : void (window.location.href = path) } function tooltip(target_items, name) { $(target_items).each(function () { var id = $.trim($(this).attr("id")).split("_")[1], title = $.trim($(this).attr("title")); if ("" != title && null != title) { $("body").append("<div style='display:none;' class='borderBase tintMedium " + name + "' id='" + name + id + "'><p>" + title + "</p></div>"); var my_tooltip = $("#" + name + id); $(this).removeAttr("title").mouseover(function () { my_tooltip.show() }).mousemove(function (kmouse) { my_tooltip.css({ left: kmouse.pageX + 15, top: kmouse.pageY + 15 }) }).mouseout(function () { my_tooltip.hide() }) } }) } function textPaste(target_items, name) { $(target_items).each(function () { var title = ($.trim($(this).attr("id")).split("_")[1], $.trim($(this).attr("title"))); "" != title && null != title && $(this).removeAttr("title").after("<p>" + title + "</p>") }) } function showVideoContainer() { displayModalPanel("VideoContainer") } function showVideoContainer2() { displayModalPanel("VideoContainer2") } function showVideoContainer3() { displayModalPanel("VideoContainer3") } function showVideoContainer4() { displayModalPanel("VideoContainer4") } function showVideoContainer5() { displayModalPanel("VideoContainer5") } function showVideoContainer6() { displayModalPanel("VideoContainer6") } function HelpCenterMasterInit() { $(window).scroll(function () { if ($("a[name=comments]").length) { var distanceTop = $("a[name=comments]").offset().top - $(window).height(); $(window).scrollTop() > distanceTop ? ($("#PopupAlsoBlock").animate({ right: "0px" }, 200), $("#SeeAlsoBlock").html($("#SeeAlsoBlockLinks").html())) : $("#PopupAlsoBlock").stop(!0).animate({ right: "-430px" }, 100) } }), $("#PopupAlsoBlock .close").bind("click", function () { $(this).parent().remove() }) } function IndexPageInit(watermarkText, searchPath) { $("#navitem_help").attr("class", "navCurrentItem"), $("#txtSearch").Watermark(watermarkText, "#7A7A7A"), $("#txtSearch").unbind("keyup").bind("keyup", function (event) { return 13 == event.keyCode ? void Search(searchPath) : void 0 }), $("#SearchExample").click(function () { $("#txtSearch").val($("#SearchExample").text()), $("#txtSearch").focus(), Search(searchPath) }), $("#switcherMenu span").on("click", function () { var type = $(this).attr("data-name"), value = getCookie("type-menu"); $("[id$=ListMenu]").hide(), $("[id$=MainContent]").hide(), $("#switcherMenu span").removeClass("active"), $(this).addClass("active"), $("#" + type + "ListMenu").show(), $("#" + type + "MainContent").show(), value != type && setCookie("type-menu", type) }) } $(function () { $(".screenphoto").click(function () { $img = $("#" + $(this).attr("target")); var alt = $img.attr("alt"), path = $("#" + $(this).attr("target")).attr("src"); $("#scrHelpContent").html($("#scrHelpTemplate").tmpl({ CurScreen: path, curalt: alt })), $("#scrHelpContainer").width($img.width() + "px"), displayModalPanel("scrHelpContainer") }), $(".text-container-link").on("click", function () { $id = $("#" + $(this).attr("data-content")), $("#textHelpContent").html($id.html()), $("#textHelpContainer .tag_name").text($(this).text()), displayModalPanel("textHelpContainer") }) });
/* jquery.watermarkinput.min.js */
!function ($) { var map = new Array; $.Watermark = { ShowAll: function () { for (var i = 0; i < map.length; i++) "" == map[i].obj.val() ? (map[i].obj.val(map[i].text), map[i].obj.css("color", map[i].WatermarkColor)) : map[i].obj.css("color", map[i].DefaultColor) }, HideAll: function () { for (var i = 0; i < map.length; i++) map[i].obj.val() == map[i].text && map[i].obj.val("") } }, $.fn.Watermark = function (text, color) { return color || (color = "#aaa"), this.each(function () { function clearMessage() { input.val() == text && input.val(""), input.css("color", defaultColor) } function insertMessage() { 0 == input.val().length || input.val() == text ? (input.val(text), input.css("color", color)) : input.css("color", defaultColor) } var input = $(this), defaultColor = input.css("color"); map[map.length] = { text: text, obj: input, DefaultColor: defaultColor, WatermarkColor: color }, input.focus(clearMessage), input.blur(insertMessage), input.change(insertMessage), insertMessage() }) } }(jQuery);
/* core/basemaster.init.min.js */
$(function () { LanguageSelectorManager.init(), $(document).keyup(function (event) { if ($(".blockUI").is(":visible")) { var code; if (!e) var e = event; e.keyCode ? code = e.keyCode : e.which && (code = e.which), 27 == code && $.unblockUI() } }) });
/* help/dropit.min.js */
!function ($) { $.fn.dropit = function (method) { var methods = { init: function (options) { return this.dropit.settings = $.extend({}, this.dropit.defaults, options), this.each(function () { var $el = $(this), settings = $.fn.dropit.settings; $el.addClass("dropit").find(">" + settings.triggerParentEl + ":has(" + settings.submenuEl + ")").addClass("dropit-trigger").find(settings.submenuEl).addClass("dropit-submenu").hide(), $el.off(settings.action).on(settings.action, settings.triggerParentEl + ":has(" + settings.submenuEl + ") > " + settings.triggerEl, function () { return "click" == settings.action && $(this).parents(settings.triggerParentEl).hasClass("dropit-open") ? (settings.beforeHide.call(this), $(this).parents(settings.triggerParentEl).removeClass("dropit-open").find(settings.submenuEl).hide(), settings.afterHide.call(this), !1) : (settings.beforeHide.call(this), $(".dropit-open").removeClass("dropit-open").find(".dropit-submenu").hide(), settings.afterHide.call(this), settings.beforeShow.call(this), $(this).parents(settings.triggerParentEl).addClass("dropit-open").find(settings.submenuEl).show(), settings.afterShow.call(this), !1) }), $(document).on("click", function () { settings.beforeHide.call(this), $(".dropit-open").removeClass("dropit-open").find(".dropit-submenu").hide(), settings.afterHide.call(this) }), "mouseenter" == settings.action && $el.on("mouseleave", ".dropit-open", function () { settings.beforeHide.call(this), $(this).removeClass("dropit-open").find(settings.submenuEl).hide(), settings.afterHide.call(this) }), settings.afterLoad.call(this) }) } }; return methods[method] ? methods[method].apply(this, Array.prototype.slice.call(arguments, 1)) : "object" != typeof method && method ? void $.error('Method "' + method + '" does not exist in dropit plugin!') : methods.init.apply(this, arguments) }, $.fn.dropit.defaults = { action: "click", submenuEl: "ul", triggerEl: "a", triggerParentEl: "li", afterLoad: function () { }, beforeShow: function () { }, afterShow: function () { }, beforeHide: function () { }, afterHide: function () { } }, $.fn.dropit.settings = {} }(jQuery);
/* pushy.min.js */
!function (a) { function b() { g.hasClass(k) ? h.toggleClass(l) : h.toggleClass(m) } function c() { g.hasClass(k) ? (h.addClass(l), g.animate({ left: "0px" }, p), i.animate({ left: q }, p), j.animate({ left: q }, p)) : (h.addClass(m), g.animate({ right: "0px" }, p), i.animate({ right: q }, p), j.animate({ right: q }, p)) } function d() { g.hasClass(k) ? (h.removeClass(l), g.animate({ left: "-" + q }, p), i.animate({ left: "0px" }, p), j.animate({ left: "0px" }, p)) : (h.removeClass(m), g.animate({ right: "-" + q }, p), i.animate({ right: "0px" }, p), j.animate({ right: "0px" }, p)) } function e() { a(r).addClass(t), a(r).on("click", function () { var b = a(this); b.hasClass(t) ? (a(r).addClass(t).removeClass(s), b.removeClass(t).addClass(s)) : b.addClass(t).removeClass(s) }) } function f() { a(r).addClass(t), u.children("a").on("click", function (b) { b.preventDefault(), a(this).toggleClass(s).next(".pushy-submenu ul").slideToggle(200).end().parent(r).siblings(r).children("a").removeClass(s).next(".pushy-submenu ul").slideUp(200) }) } var g = a(".pushy"), h = a("body"), i = a("#container"), j = a(".push"), k = "pushy-left", l = "pushy-open-left", m = "pushy-open-right", n = a(".site-overlay"), o = a(".ham_menu, .pushy-link"), p = 200, q = g.width() + "px", r = ".pushy-submenu", s = "pushy-submenu-open", t = "pushy-submenu-closed", u = a(r), v = function () { var a = document.createElement("p"), b = !1, c = { webkitTransform: "-webkit-transform", OTransform: "-o-transform", msTransform: "-ms-transform", MozTransform: "-moz-transform", transform: "transform" }; document.body.insertBefore(a, null); for (var d in c) void 0 !== a.style[d] && (a.style[d] = "translate3d(1px,1px,1px)", b = window.getComputedStyle(a).getPropertyValue(c[d])); return document.body.removeChild(a), void 0 !== b && b.length > 0 && "none" !== b }(); if (v) g.css({ visibility: "visible" }), e(), o.on("click", function () { b() }), n.on("click", function () { b() }); else { h.addClass("no-csstransforms3d"), g.hasClass(k) ? g.css({ left: "-" + q }) : g.css({ right: "-" + q }), g.css({ visibility: "visible" }), i.css({ "overflow-x": "hidden" }); var w = !1; f(), o.on("click", function () { w ? (d(), w = !1) : (c(), w = !0) }), n.on("click", function () { w ? (d(), w = !1) : (c(), w = !0) }) } }(jQuery);