');var r=s.closest(".ace-spinner").spinner(a).wrapInner("
"),o=r.data("spinner");a.on_sides?(s.before('
').after('
'),r.addClass("touch-spinner"),r.css("width",n+"px")):(s.after('
'),ace.vars.touch||a.touch_spinner?(r.addClass("touch-spinner"),r.css("width",n+"px")):(s.next().addClass("btn-group-vertical"),r.css("width",n+"px"))),s.on("mousewheel.spinner DOMMouseScroll.spinner",function(e){var t=e.originalEvent.detail<0||e.originalEvent.wheelDelta>0?1:-1;return o.step(t>0),o.triggerChangedEvent(),!1}),r.on("changed",function(){s.trigger("change")}),this._call=function(e,t){o[e](t)}}e.fn.ace_spinner=function(i,n){var s,r=this.each(function(){var t=e(this),r=t.data("ace_spinner"),o="object"==typeof i&&i;r||(o=e.extend({},e.fn.ace_spinner.defaults,i),t.data("ace_spinner",r=new a(this,o))),"string"==typeof i&&(s=r._call(i,n))});return s===t?r:s},e.fn.ace_spinner.defaults={icon_up:"fa fa-chevron-up",icon_down:"fa fa-chevron-down",on_sides:!1,btn_up_class:"",btn_down_class:"",max:999,touch_spinner:!1}}(window.jQuery),function(e){var t={"open-icon":ace.vars.icon+"fa fa-folder-open","close-icon":ace.vars.icon+"fa fa-folder",selectable:!0,"selected-icon":ace.vars.icon+"fa fa-check","unselected-icon":ace.vars.icon+"fa fa-times"};e.fn.ace_tree=function(a){return t=e.extend({},t,a),this.each(function(){var a=e(this);a.html('
'+(null==t["unselected-icon"]?"":'
')+'
'),a.addClass(1==t.selectable?"tree-selectable":"tree-unselectable"),a.tree(t)}),this}}(window.jQuery),function(e){e.fn.ace_wizard=function(t){return this.each(function(){var a=e(this);a.wizard();var i=a.siblings(".wizard-actions").eq(0),n=a.data("wizard");n.$prevBtn.remove(),n.$nextBtn.remove(),n.$prevBtn=i.find(".btn-prev").eq(0).on(ace.click_event,function(){n.previous()}).attr("disabled","disabled"),n.$nextBtn=i.find(".btn-next").eq(0).on(ace.click_event,function(){n.next()}).removeAttr("disabled"),n.nextText=n.$nextBtn.text();var s=t&&(t.selectedItem&&t.selectedItem.step||t.step);s&&(n.currentStep=s,n.setState())}),this}}(window.jQuery);
*/
!function(e, t) {
var a = function(t, a) {
function i(e) {
e.preventDefault(),
e.stopPropagation();
var t = y.offset()
, a = t[c]
, i = v ? e.pageY : e.pageX;
i > a + z ? (z = i - a - A + E,
z > j && (z = j)) : (z = i - a - E,
0 > z && (z = 0)),
o.update_scroll()
}
function n(t) {
t.preventDefault(),
t.stopPropagation(),
q = N = v ? t.pageY : t.pageX,
M = !0,
e("html").off("mousemove.ace_scroll").on("mousemove.ace_scroll", s),
e(P).off("mouseup.ace_scroll").on("mouseup.ace_scroll", r),
y.addClass("active"),
H && o.$element.trigger("drag.start")
}
function s(e) {
e.preventDefault(),
e.stopPropagation(),
q = v ? e.pageY : e.pageX,
q - N + z > j ? q = N + j - z : 0 > q - N + z && (q = N - z),
z += q - N,
N = q,
0 > z ? z = 0 : z > j && (z = j),
o.update_scroll()
}
function r(t) {
t.preventDefault(),
t.stopPropagation(),
M = !1,
e("html").off(".ace_scroll"),
e(P).off(".ace_scroll"),
y.removeClass("active"),
H && o.$element.trigger("drag.end")
}
var o = this
, l = e.extend({}, e.fn.ace_scroll.defaults, a);
this.size = 0,
this.$element = e(t),
this.element = t;
var c, d, u, h, f, p, v = !0, g = !1, m = !1, b = !1, _ = null , w = null , y = null , x = null , C = null , k = null , $ = null , A = 0, z = 0, j = 0, E = 0, D = !0, I = !1, T = 1, S = !1, M = !1, P = "onmouseup" in window ? window : "html", H = l.dragEvent || !1, L = a.scrollEvent || !1;
this.create = function(t) {
if (!b) {
if (t && (l = e.extend({}, e.fn.ace_scroll.defaults, t)),
this.size = parseInt(this.$element.attr("data-size")) || l.size || 200,
v = !l.horizontal,
c = v ? "top" : "left",
d = v ? "height" : "width",
u = v ? "maxHeight" : "maxWidth",
h = v ? "clientHeight" : "clientWidth",
f = v ? "scrollTop" : "scrollLeft",
p = v ? "scrollHeight" : "scrollWidth",
this.$element.addClass("ace-scroll " + ((v ? "" : " scroll-hz") + (l.styleClass ? " " + l.styleClass : ""))),
"static" == this.$element.css("position") ? (S = this.element.style.position,
this.element.style.position = "relative") : S = !1,
this.$element.wrapInner('
'),
this.$element.prepend('
'),
_ = this.$element.find(".scroll-content").eq(0),
v || _.wrapInner("
"),
w = _.get(0),
y = this.$element.find(".scroll-track").eq(0),
x = y.find(".scroll-bar").eq(0),
C = y.get(0),
k = x.get(0),
$ = k.style,
y.hide(),
y.on("mousedown", i),
x.on("mousedown", n),
_.on("scroll", function() {
D && (z = parseInt(Math.round(this[f] * T)),
$[c] = z + "px"),
D = !1,
L && this.$element.trigger("scroll", [w])
}),
l.mouseWheel) {
var a = l.mouseWheelLock
, s = l.lockAnyway;
this.$element.on("mousewheel.ace_scroll DOMMouseScroll.ace_scroll", function(t) {
if (!g) {
if (!m)
return !s;
M && (M = !1,
e("html").off(".ace_scroll"),
e(P).off(".ace_scroll"),
H && o.$element.trigger("drag.end"));
var i = t.originalEvent.detail < 0 || t.originalEvent.wheelDelta > 0 ? 1 : -1
, n = !1
, r = w[h]
, l = w[f];
a || (n = -1 == i ? w[p] <= l + r : 0 == l),
o.move_bar(!0);
var c = parseInt(Math.round(Math.min(Math.max(r / 8, 54)), o.size)) + 1;
return w[f] = l - i * c,
n && !s
}
})
}
var r = ace.vars.touch && "ace_drag" in e.event.special && l.touchDrag;
if (r) {
var A = ""
, j = r ? "ace_drag" : "swipe";
this.$element.on(j + ".ace_scroll", function(e) {
if (g)
return void (e.retval.cancel = !0);
if (!m)
return void (e.retval.cancel = s);
if (A = e.direction,
v && ("up" == A || "down" == A) || !v && ("left" == A || "right" == A)) {
var t = v ? e.dy : e.dx;
0 != t && (Math.abs(t) > 20 && r && (t = 2 * t),
o.move_bar(!0),
w[f] = w[f] + t)
}
})
}
l.hoverReset && this.$element.on("mouseenter.ace_scroll touchstart.ace_scroll", function() {
o.reset()
}),
v || _.children(0).css(d, this.size),
_.css(u, this.size),
g = !1,
b = !0
}
}
,
this.is_active = function() {
return m
}
,
this.is_enabled = function() {
return !g
}
,
this.move_bar = function(e) {
D = e
}
,
this.reset = function() {
if (!g) {
b || this.create();
var e = v ? w[p] : this.size;
if (v && 0 == e || !v && 0 == this.element.scrollWidth)
return void this.$element.removeClass("scroll-active");
var t = v ? this.size : w.clientWidth;
v || _.children(0).css(d, this.size),
_.css(u, this.size),
e > t ? (m = !0,
y.css(d, t).show(),
T = parseFloat((t / e).toFixed(5)),
A = parseInt(Math.round(t * T)),
E = parseInt(Math.round(A / 2)),
j = t - A,
z = parseInt(Math.round(w[f] * T)),
$[d] = A + "px",
$[c] = z + "px",
this.$element.addClass("scroll-active"),
I || (l.reset && (w[f] = 0,
$[c] = 0),
I = !0)) : (m = !1,
y.hide(),
this.$element.removeClass("scroll-active"),
_.css(u, ""))
}
}
,
this.disable = function() {
return w[f] = 0,
$[c] = 0,
g = !0,
m = !1,
y.hide(),
this.$element.removeClass("scroll-active"),
_.css(u, ""),
this
}
,
this.enable = function() {
return g = !1,
this.reset(),
this
}
,
this.destroy = function() {
return m = !1,
g = !1,
b = !1,
this.$element.removeClass("ace-scroll scroll-hz" + (l.extraClass ? " " + l.extraClass : "")),
this.$element.off(".ace_scroll"),
v || _.find("> div").children().unwrap(),
_.children().unwrap(),
_.remove(),
y.remove(),
S !== !1 && (this.element.style.position = S),
this
}
,
this.modify = function(t) {
return t && (l = e.extend({}, e.fn.ace_scroll.defaults, t)),
this.destroy(),
this.create(),
this.reset(),
this
}
,
this.update = function(e) {
return this.size = e.size,
this
}
,
this.update_scroll = function() {
D = !1,
$[c] = z + "px",
w[f] = parseInt(Math.round(z / T))
}
;
var N = -1
, q = -1;
return this.create(),
this.reset(),
this
}
;
e.fn.ace_scroll = function(i, n) {
var s, r = this.each(function() {
var t = e(this)
, r = t.data("ace_scroll")
, o = "object" == typeof i && i;
r || t.data("ace_scroll", r = new a(this,o)),
"string" == typeof i && (s = r[i](n))
});
return s === t ? r : s
}
,
e.fn.ace_scroll.defaults = {
size: 200,
horizontal: !1,
mouseWheel: !0,
mouseWheelLock: !1,
lockAnyway: !1,
styleClass: !1,
hoverReset: !0,
reset: !1,
dragEvent: !1,
touchDrag: !0,
touchSwipe: !1,
scrollEvent: !1
}
}(window.jQuery),
function(e, t) {
var a = function(t, a) {
var i = e.extend({}, e.fn.ace_colorpicker.defaults, a)
, n = e(t)
, s = ""
, r = ""
, o = null
, l = [];
n.addClass("hide").find("option").each(function() {
var e = "colorpick-btn"
, t = this.value.replace(/[^\w\s,#\(\)\.]/g, "");
this.value != t && (this.value = t),
this.selected && (e += " selected",
r = t),
l.push(t),
s += '
'
}).end().on("change.color", function() {
n.next().find(".btn-colorpicker").css("background-color", this.value)
}).after('
");
var c = n.next().find(".dropdown-menu");
c.on(ace.click_event, function(t) {
var a = e(t.target);
if (!a.is(".colorpick-btn"))
return !1;
o && o.removeClass("selected"),
o = a,
o.addClass("selected");
var i = o.data("color");
return n.val(i).trigger("change"),
t.preventDefault(),
!0
}),
o = n.next().find("a.selected"),
this.pick = function(a, i) {
if ("number" == typeof a) {
if (a >= l.length)
return;
t.selectedIndex = a,
c.find("a:eq(" + a + ")").trigger(ace.click_event)
} else if ("string" == typeof a) {
var s = a.replace(/[^\w\s,#\(\)\.]/g, "");
if (a = l.indexOf(s),
-1 == a && i === !0 && (l.push(s),
e("
").appendTo(n).val(s),
e('
').appendTo(c).find("a").css("background-color", s).data("color", s),
a = l.length - 1),
-1 == a)
return;
c.find("a:eq(" + a + ")").trigger(ace.click_event)
}
}
,
this.destroy = function() {
n.removeClass("hide").off("change.color").next().remove(),
l = []
}
}
;
e.fn.ace_colorpicker = function(i, n) {
var s, r = this.each(function() {
var t = e(this)
, r = t.data("ace_colorpicker")
, o = "object" == typeof i && i;
r || t.data("ace_colorpicker", r = new a(this,o)),
"string" == typeof i && (s = r[i](n))
});
return s === t ? r : s
}
,
e.fn.ace_colorpicker.defaults = {
pull_right: !1,
caret: !0,
auto_pos: !0
}
}(window.jQuery),
function(e, t) {
var a = "multiple" in document.createElement("INPUT")
, i = "FileList" in window
, n = "FileReader" in window
, s = "File" in window
, r = function(t, a) {
var i = this;
this.settings = e.extend({}, e.fn.ace_file_input.defaults, a),
this.$element = e(t),
this.element = t,
this.disabled = !1,
this.can_reset = !0,
this.$element.off("change.ace_inner_call").on("change.ace_inner_call", function(e, t) {
return i.disabled || t === !0 ? void 0 : l.call(i)
});
var n = this.$element.closest("label").css({
display: "block"
})
, s = 0 == n.length ? "label" : "span";
this.$element.wrap("<" + s + ' class="ace-file-input" />'),
this.apply_settings(),
this.reset_input_field()
}
;
r.error = {
FILE_LOAD_FAILED: 1,
IMAGE_LOAD_FAILED: 2,
THUMBNAIL_FAILED: 3
},
r.prototype.apply_settings = function() {
var t = this;
this.multi = this.$element.attr("multiple") && a,
this.well_style = "well" == this.settings.style,
this.well_style ? this.$element.parent().addClass("ace-file-multiple") : this.$element.parent().removeClass("ace-file-multiple"),
this.$element.parent().find(":not(input[type=file])").remove(),
this.$element.after('
' + (this.settings.no_icon ? '' : "") + ""),
this.$label = this.$element.next(),
this.$container = this.$element.closest(".ace-file-input");
var n = !!this.settings.icon_remove;
if (n) {
var s = e('
').appendTo(this.$element.parent());
s.on(ace.click_event, function(e) {
if (e.preventDefault(),
!t.can_reset)
return !1;
var a = !0;
if (t.settings.before_remove && (a = t.settings.before_remove.call(t.element)),
!a)
return !1;
t.reset_input();
return !1
})
}
this.settings.droppable && i && o.call(this)
}
,
r.prototype.show_file_list = function(t) {
var a = "undefined" == typeof t ? this.$element.data("ace_input_files") : t;
if (a && 0 != a.length) {
this.well_style && (this.$label.find(".ace-file-name").remove(),
this.settings.btn_change || this.$label.addClass("hide-placeholder")),
this.$label.attr("data-title", this.settings.btn_change).addClass("selected");
for (var i = 0; i < a.length; i++) {
var s = "string" == typeof a[i] ? a[i] : e.trim(a[i].name)
, r = s.lastIndexOf("\\") + 1;
0 == r && (r = s.lastIndexOf("/") + 1),
s = s.substr(r);
var o = "fa fa-file"
, l = "file";
if (/\.(jpe?g|png|gif|svg|bmp|tiff?)$/i.test(s) ? (o = "fa fa-picture-o file-image",
l = "image") : /\.(mpe?g|flv|mov|avi|swf|mp4|mkv|webm|wmv|3gp)$/i.test(s) ? (o = "fa fa-film file-video",
l = "video") : /\.(mp3|ogg|wav|wma|amr|aac)$/i.test(s) && (o = "fa fa-music file-audio",
l = "audio"),
this.well_style) {
this.$label.append('
');
var d = e.trim(a[i].type)
, u = n && this.settings.thumbnail && (d.length > 0 && d.match("image") || 0 == d.length && "image" == l);
if (u) {
var h = this;
e.when(c.call(this, a[i])).fail(function(e) {
h.settings.preview_error && h.settings.preview_error.call(h, s, e.code)
})
}
} else
this.$label.find(".ace-file-name").attr({
"data-title": s
}).find(ace.vars[".icon"]).attr("class", ace.vars.icon + o)
}
return !0
}
}
,
r.prototype.reset_input = function() {
this.reset_input_ui(),
this.reset_input_field()
}
,
r.prototype.reset_input_ui = function() {
this.$label.attr({
"data-title": this.settings.btn_choose,
"class": "ace-file-container"
}).find(".ace-file-name:first").attr({
"data-title": this.settings.no_file,
"class": "ace-file-name"
}).find(ace.vars[".icon"]).attr("class", ace.vars.icon + this.settings.no_icon).prev("img").remove(),
this.settings.no_icon || this.$label.find(ace.vars[".icon"]).remove(),
this.$label.find(".ace-file-name").not(":first").remove(),
this.reset_input_data()
}
,
r.prototype.reset_input_field = function() {
this.$element.wrap("