";
o.append(c), o.click(function () {
t.attr("checked", !t.attr("checked")), e(this).toggleClass("on")
})
};
e.fn.kcToggle = function (a) {
var l = this;
return l.each(function () {
var l = e(this);
if (!l.data("kcToggle")) {
var s = new t(l, a);
l.data("kcToggle", s)
}
})
}
}(jQuery), function (e) {
var t = function (t, a) {
var l = this, s = {
controlPosition: "right",
controlOrder: ["autocomplete", "button", "checkbox", "checkbox-group", "date", "file", "header", "hidden", "paragraph", "radio-group", "select", "text", "textarea"],
dataType: "xml",
disableFields: ["autocomplete", "hidden"],
append: !1,
prepend: !1,
defaultFields: [],
fieldRemoveWarn: !1,
roles: {1: "Administrator"},
messages: {
addOption: "Add Option",
allFieldsRemoved: "All fields were removed.",
allowSelect: "Allow Select",
autocomplete: "Autocomplete",
button: "Button",
cannotBeEmpty: "This field cannot be empty",
checkboxGroup: "Checkbox Group",
checkbox: "Checkbox",
checkboxes: "Checkboxes",
className: "Class",
clearAllMessage: "Are you sure you want to clear all fields?",
clearAll: "Clear",
close: "Close",
content: "Content",
copy: "Copy To Clipboard",
dateField: "Date Field",
description: "Help Text",
descriptionField: "Description",
devMode: "Developer Mode",
editNames: "Edit Names",
editorTitle: "Form Elements",
editXML: "Edit XML",
fieldDeleteWarning: !1,
fieldVars: "Field Variables",
fieldNonEditable: "This field cannot be edited.",
fieldRemoveWarning: "Are you sure you want to remove this field?",
fileUpload: "File Upload",
formUpdated: "Form Updated",
getStarted: "Drag a field from the right to this area",
header: "Header",
hide: "Edit",
hidden: "Hidden Input",
label: "Label",
labelEmpty: "Field Label cannot be empty",
limitRole: "Limit access to one or more of the following roles:",
mandatory: "Mandatory",
maxlength: "Max Length",
minOptionMessage: "This field requires a minimum of 2 options",
name: "Name",
no: "No",
off: "Off",
on: "On",
option: "Option",
optional: "optional",
optionLabelPlaceholder: "Label",
optionValuePlaceholder: "Value",
optionEmpty: "Option value required",
paragraph: "Paragraph",
placeholder: "Placeholder",
placeholders: {
value: "Value",
label: "Label",
text: "",
textarea: "",
email: "Enter you email",
placeholder: "",
className: "space separated classes",
password: "Enter your password"
},
preview: "Preview",
radioGroup: "Radio Group",
radio: "Radio",
removeMessage: "Remove Element",
remove: "×",
required: "Required",
richText: "Rich Text Editor",
roles: "Access",
save: "Preview",
selectOptions: "Options",
select: "Select",
selectColor: "Select Color",
selectionsMessage: "Allow Multiple Selections",
size: "Size",
sizes: {xs: "Extra Small", sm: "Small", m: "Default", lg: "Large"},
style: "Style",
styles: {
btn: {
"default": "Default",
danger: "Danger",
info: "Info",
primary: "Primary",
success: "Success",
warning: "Warning"
}
},
subtype: "Type",
subtypes: {
text: ["text", "password", "email", "color"],
button: ["button", "submit"],
header: ["h1", "h2", "h3"],
paragraph: ["p", "address", "blockquote", "canvas", "output"]
},
text: "Text Field",
textArea: "Text Area",
toggle: "Toggle",
warning: "Warning!",
viewXML: "</>",
yes: "Yes"
},
notify: {
error: function (e) {
return console.error(e)
}, success: function (e) {
return console.log(e)
}, warning: function (e) {
return console.warn(e)
}
},
sortableControls: !1,
prefix: "form-builder-"
};
s.messages.subtypes.password = s.messages.subtypes.text, s.messages.subtypes.email = s.messages.subtypes.text, s.messages.subtypes.color = s.messages.subtypes.text, s.messages.subtypes.submit = s.messages.subtypes.button;
var o = e.extend(!0, s, t), r = e(a), n = "frmb-" + e("ul[id^=frmb-]").length++;
o.formID = n, l.element = a;
var i = e("
").attr("id", n).addClass("frmb"), c = formBuilderHelpersFn(o, l);
l.layout = c.editorLayout(o.controlPosition);
var d = n + "-fld-1", u = n + "-control-box", p = [{
label: o.messages.textArea,
attrs: {type: "textarea", className: "text-area", name: "textarea"}
}, {
label: o.messages.text,
attrs: {type: "text", className: "text-input", name: "text-input"}
}, {
label: o.messages.select,
attrs: {type: "select", className: "select", name: "select"}
}, {
label: o.messages.radioGroup,
attrs: {type: "radio-group", className: "radio-group", name: "radio-group"}
}, {label: o.messages.paragraph, attrs: {type: "paragraph", className: "paragraph"}}, {
label: o.messages.hidden,
attrs: {type: "hidden", className: "hidden-input", name: "hidden-input"}
}, {label: o.messages.header, attrs: {type: "header", className: "header"}}, {
label: o.messages.fileUpload,
attrs: {type: "file", className: "file-input", name: "file-input"}
}, {
label: o.messages.dateField,
attrs: {type: "date", className: "calendar", name: "date-input"}
}, {
label: o.messages.checkboxGroup,
attrs: {type: "checkbox-group", className: "checkbox-group", name: "checkbox-group"}
}, {
label: o.messages.checkbox,
attrs: {type: "checkbox", className: "checkbox", name: "checkbox"}
}, {
label: o.messages.button,
attrs: {type: "button", className: "button-input", name: "button"}
}, {
label: o.messages.autocomplete,
attrs: {type: "autocomplete", className: "autocomplete", name: "autocomplete"}
}];
p = c.orderFields(p), o.disableFields && (p = p.filter(function (e) {
return !o.disableFields.inArray(e.attrs.type)
}));
var m = c.markup("ul", null, {id: u, className: "frmb-control"});
o.sortableControls && m.classList.add("sort-enabled");
for (var f = e(m), v = p.length - 1; v >= 0; v--) {
var g = e("", {
"class": "icon-" + p[v].attrs.className,
type: p[v].type,
name: p[v].className,
label: p[v].label
});
g.data("newFieldData", p[v]);
var h = c.markup("span", p[v].label);
g.html(h).appendTo(f)
}
var b = "xml" === o.dataType ? o.messages.viewXML : o.messages.viewJSON, y = c.markup("button", b, {
id: n + "-view-data",
type: "button",
className: "view-data btn btn-default"
}), k = c.markup("button", o.messages.clearAll, {
id: n + "-clear-all",
type: "button",
className: "clear-all btn btn-default"
}), x = c.markup("button", o.messages.save, {
className: "btn btn-primary " + o.prefix + "save",
id: n + "-save",
type: "button"
}), w = c.markup("div", [k, y, x], {className: "form-actions btn-group"}).outerHTML;
i.sortable({
cursor: "move",
opacity: .9,
revert: 150,
beforeStop: c.beforeStop,
start: c.startMoving,
stop: c.stopMoving,
cancel: "input, select, .disabled, .form-group, .btn",
placeholder: "frmb-placeholder"
}), f.sortable({
helper: "clone",
opacity: .9,
connectWith: i,
cursor: "move",
placeholder: "ui-state-highlight",
start: c.startMoving,
stop: c.stopMoving,
revert: 150,
beforeStop: c.beforeStop,
update: function (e, t) {
return c.doCancel ? !1 : (e = e, void(t.item.parent()[0] === i[0] ? (S(t.item, !0), c.doCancel = !0) : (c.setFieldOrder(f), c.doCancel = !o.sortableControls)))
}
});
var N = e("", {
id: n + "-stage-wrap",
"class": "stage-wrap " + l.layout.stage
}), E = e("", {id: n + "-form-wrap", "class": "form-wrap form-builder" + c.mobileClass()});
r.before(N).appendTo(N);
var T = e("", {id: n + "-cb-wrap", "class": "cb-wrap " + l.layout.controls}).append(f[0], w);
N.append(i, T), N.before(E), E.append(N, T);
var C = c.debounce(function (t) {
if (t && "keyup" === t.type && "className" === this.name)return !1;
var a = e(this).parents(".form-field:eq(0)");
c.updatePreview(a), c.save()
});
i.on("change blur keyup", ".form-elements input, .form-elements select, .form-elements textarea", C);
var A = function () {
var t = [];
if (o.prepend && !e(".disabled.prepend", i).length) {
var a = c.markup("li", o.prepend, {className: "disabled prepend"});
t.push(!0), i.prepend(a)
}
if (o.append && !e(".disabled.append", i).length) {
var l = c.markup("li", o.append, {className: "disabled append"});
t.push(!0), i.append(l)
}
t.some(function (e) {
return e === !0
}) && N.removeClass("empty")
}, S = function (t) {
var a = arguments.length <= 1 || void 0 === arguments[1] ? !1 : arguments[1], l = {};
if (t instanceof jQuery) {
var s = t.data("newFieldData");
if (s)l = s.attrs, l.label = s.label; else {
var o = t[0].attributes;
a || (l.values = t.children().map(function (t, a) {
return {label: e(a).text(), value: e(a).attr("value"), selected: Boolean(e(a).attr("selected"))}
}));
for (var r = o.length - 1; r >= 0; r--)l[o[r].name] = o[r].value
}
} else l = t;
l.label = c.htmlEncode(l.label), l.name = a ? M(l) : l.name, l.role = l.role, l.className = l.className || l["class"], l.required = "true" === l.required || l.required === !0, l.maxlength = l.maxlength, l.toggle = l.toggle, l.multiple = l.type.match(/(checkbox-group)/), l.description = void 0 !== l.description ? c.htmlEncode(l.description) : "";
var n = /(?:^|\s)btn-(.*?)(?:\s|$)/g.exec(l.className);
n && (l.style = n[1]), D(l), N.removeClass("empty")
}, O = function () {
var t = "";
t = l.formData ? l.formData : "" !== r.val() ? e.parseXML(l.element.value.trim()) : !1;
var a = e(t).find("field");
if (a.length > 0)l.formData = t, a.each(function () {
S(e(this))
}); else if (!t)if (o.defaultFields && o.defaultFields.length) {
o.defaultFields.reverse();
for (var s = o.defaultFields.length - 1; s >= 0; s--)S(o.defaultFields[s]);
N.removeClass("empty"), c.save()
} else o.prepend || o.append || N.addClass("empty").attr("data-content", o.messages.getStarted);
e("li.form-field:not(.disabled)", i).each(function () {
c.updatePreview(e(this))
}), A()
}, I = function () {
var e = {
xml: O, json: function () {
console.log("coming soon")
}
};
e[o.dataType]()
};
i.on("mousemove", "li.disabled", function (t) {
e(".frmb-tt", this).css({left: t.offsetX - 16, top: t.offsetY - 34})
}), i.on("mouseenter", "li.disabled", function () {
c.disabledTT.add(e(this))
}), i.on("mouseleave", "li.disabled", function () {
c.disabledTT.remove(e(this))
});
var M = function (e) {
var t = (new Date).getTime();
return e.type + "-" + t
}, L = function (e) {
R(o.messages.textArea, H(e), e)
}, q = function (e) {
var t = e.type || "text";
R(o.messages[t], H(e), e)
}, $ = function (t) {
t.values && t.values.length || (t.values = [{selected: !0}, {selected: !1}], t.values = t.values.map(function (e, t) {
return e.label = o.messages.option + " " + (t + 1), e.value = c.hyphenCase(e.label), e
}));
var a = "";
for (a += H(t), a += '
', a += '", a += '
', "select" === t.type && (a += '
', a += '", a += '", a += "
"), a += '', v = 0; v < t.values.length; v++)a += U(t.name, t.values[v], t.values[v].selected, t.multiple);
a += "";
var l = c.markup("a", o.messages.addOption, {className: "add add-opt"});
a += c.markup("div", l, {className: "option-actions"}).outerHTML, a += "
", a += "
", R(o.messages.select, a, t), e(".sortable-options").sortable()
}, D = function (e) {
var t = {select: $, "rich-text": L, textarea: L, "radio-group": $, "checkbox-group": $};
e = e || "", t[e.type] ? t[e.type](e) : q(e)
}, H = function W(t) {
var a, W = [], l = void 0 !== t.role ? t.role.split(",") : [];
W.push(_("label", t)), t.size = t.size || "m", t.style = t.style || "default", W.push(F(t)), W.push(j(t)), W.push(B(t.style, t.type)), W.push(_("placeholder", t)), W.push(_("className", t)), W.push(_("name", t)), W.push('
"), W.push(' "), W.push('
");
for (a in o.roles)-1 === e.inArray(a, ["date", "4"]) && W.push(' ");
return W.push("
"), W.push(_("maxlength", t)), W.join("")
}, F = function (e) {
var t = ["header", "paragraph", "button"], a = [], l = "";
if (t = t.concat(o.messages.subtypes.header, o.messages.subtypes.paragraph), -1 === t.indexOf(e.type) && a.push(!0), a.some(function (e) {
return e === !0
})) {
var s = c.markup("label", o.messages.description, {"for": "description-" + d}), r = c.markup("input", null, {
type: "text",
className: "fld-description form-control",
name: "description",
id: "description-" + d,
value: e.description
}), n = c.markup("div", [s, r], {"class": "form-group description-wrap"});
l = n.outerHTML
}
return l
}, j = function Y(e) {
var t = o.messages.subtypes, a = e.type, l = e.subtype || "", Y = "", s = void 0;
if (t[a]) {
var r = "";
Y += '", Y = '
' + r + " " + Y + "
"
}
return Y
}, B = function (e, t) {
var a = {button: "btn"}, l = o.messages.styles[a[t]], s = "";
if (l) {
var r = "";
s += '', s += '
', Object.keys(o.messages.styles[a[t]]).forEach(function (l) {
var r = e === l ? "active" : "";
s += '"
}), s += "
", s = '
' + r + " " + s + "
"
}
return s
}, _ = function (e, t) {
var a = ["text", "textarea", "select"], l = ["header"], s = ["paragraph"], r = ["checkbox", "select", "checkbox-group", "date", "autocomplete", "radio-group", "hidden", "button", "header"], n = "label" === e ? t.label : t[e] || "", i = o.messages[e];
"label" === e && s.inArray(t.type) && (i = o.messages.content), l = l.concat(o.messages.subtypes.header, s), r = r.concat(s);
var c = o.messages.placeholders, u = c[e] || "", p = "", m = [];
if ("placeholder" !== e || a.inArray(t.type) || m.push(!0), "name" === e && l.inArray(t.type) && m.push(!0), "maxlength" === e && r.inArray(t.type) && m.push(!0), !m.some(function (e) {
return e === !0
})) {
var f = "";
p += "label" === e && s.inArray(t.type) ? '" : '', p = '
' + f + " " + p + "
"
}
return p
}, P = function (e) {
var t = ["header", "paragraph", "button"], a = [], l = "";
if (t.inArray(e.type) && a.push(!0), !a.some(function (e) {
return e === !0
})) {
l += '
', l += "";
var s = c.markup("input", null, {
className: "required",
type: "checkbox",
name: "required-" + d,
id: "required-" + d,
value: 1
});
s.defaultChecked = e.required, l += s.outerHTML, l += c.markup("label", o.messages.required, {
className: "required-label",
"for": "required-" + d
}).outerHTML, l += "
"
}
return l
}, R = function (t, a, l) {
var s = e(a).find('input[name="label"]').val(), r = s ? s : t, n = c.markup("a", o.messages.remove, {
id: "del_" + d,
className: "del-button btn delete-confirm",
title: o.messages.removeMessage
}), u = c.markup("a", null, {
id: d + "-edit",
className: "toggle-form btn icon-pencil",
title: o.messages.hide
}), p = l.required, m = l.toggle || void 0, f = "" !== l.description ? '?' : "", v = c.markup("div", [u, n], {className: "field-actions"}).outerHTML;
v += '" + f + ' *", v += c.markup("div", "", {className: "prev-holder"}).outerHTML, v += '
', v += '
', v += P(l), "checkbox" === l.type && (v += '
', v += "", v += '", v += "
"), v += a, v += c.markup("a", o.messages.close, {className: "close-field"}).outerHTML, v += "
", v += "
";
var g = c.markup("li", v, {"class": l.type + "-field form-field", type: l.type, id: d}), h = e(g);
h.data("fieldData", {attrs: l}), "undefined" != typeof c.stopIndex ? e("> li", i).eq(c.stopIndex).after(h) : i.append(h), c.updatePreview(h), e(document.getElementById("frm-" + d + "-item")).hide().slideDown(250), d = c.incrementId(d)
}, U = function (e, t, a, l) {
var s = {selected: l ? "checkbox" : "radio"}, r = {
selected: a,
label: "", value: ""
}, n = Object.assign(r, t), i = [];
for (var d in n)if (n.hasOwnProperty(d)) {
var u = {
type: s[d] || "text",
"class": "option-" + d,
placeholder: o.messages.placeholders[d],
value: n[d],
name: e
}, p = c.markup("input", null, u);
"selected" === d && (p.checked = n.selected), i.push(p)
}
var m = {className: "remove btn", title: o.messages.removeMessage};
i.push(c.markup("a", o.messages.remove, m));
var f = c.markup("li", i);
return f.outerHTML
};
i.on("click touchstart", ".remove", function (t) {
var a = e(this).parents(".form-field:eq(0)");
t.preventDefault();
var l = e(this).parents(".sortable-options:eq(0)").children("li").length;
2 >= l ? o.notify.error("Error: " + o.messages.minOptionMessage) : e(this).parent("li").slideUp("250", function () {
e(this).remove()
}), C.call(a)
}), i.on("touchstart", "input", function (t) {
if (t.handled === !0)return !1;
if ("checkbox" === e(this).attr("type"))e(this).trigger("click"); else {
e(this).focus();
var a = e(this).val();
e(this).val(a)
}
}), i.on("click touchstart", ".toggle-form", function (t) {
if (t.stopPropagation(), t.preventDefault(), t.handled === !0)return !1;
var a = e(this).parents(".form-field:eq(0)").attr("id");
c.toggleEdit(a), t.handled = !0
}), c.toggleEdit = function (t) {
var a = document.getElementById(t), l = e(".toggle-form", a), s = e(".frm-holder", a);
a.classList.toggle("editing"), l.toggleClass("open"), e(".prev-holder", a).slideToggle(250), s.slideToggle(250)
}, i.on("keyup change", '[name="label"]', function () {
e(".field-label", e(this).closest("li")).text(e(this).val())
}), i.delegate("input.error", "keyup", function () {
e(this).removeClass("error")
}), i.on("keyup", 'input[name="description"]', function () {
var t = e(this).parents(".form-field:eq(0)"), a = e(".tooltip-element", t), l = e(this).val();
if ("" !== l)if (a.length)a.attr("tooltip", l).css("display", "inline-block"); else {
var s = '?';
e(".field-label", t).after(s)
} else a.length && a.css("display", "none")
}), c.updateMultipleSelect(), i.delegate('input[name="name"]', "keyup", function () {
e(this).val(c.safename(e(this).val())), "" === e(this).val() ? e(this).addClass("field_error").attr("placeholder", o.messages.cannotBeEmpty) : e(this).removeClass("field_error")
}), i.delegate("input.fld-maxlength", "keyup", function () {
e(this).val(c.forceNumber(e(this).val()))
}), i.on("click touchstart", ".delete-confirm", function (t) {
t.preventDefault();
var a = this.getBoundingClientRect(), l = document.body.getBoundingClientRect(), s = {
pageX: a.left + a.width / 2,
pageY: a.top - l.top - 12
}, r = e(this).parents(".form-field:eq(0)").attr("id"), n = e(document.getElementById(r)), d = function () {
n.slideUp(250, function () {
n.removeClass("deleting"), n.remove(), c.save(), i[0].childNodes.length || N.addClass("empty").attr("data-content", o.messages.getStarted)
})
};
if (document.addEventListener("modalClosed", function () {
n.removeClass("deleting")
}, !1), o.fieldRemoveWarn) {
var u = c.markup("h3", o.messages.warning), p = c.markup("p", o.messages.fieldRemoveWarning);
c.confirm([u, p], d, s), n.addClass("deleting")
} else d(n)
}), i.on("click", ".style-wrap button", function () {
var t = e(this).val(), a = e(this).parent(), l = a.prev(".btn-style");
l.val(t), e(this).siblings(".btn").removeClass("active"), e(this).addClass("active"), C.call(a)
}), i.on("click", "input.required", function () {
var t = e(this).parents("li.form-field").find(".required-asterisk");
t.toggle()
}), i.on("click", 'input[name="enable_roles"]', function () {
var t = e(this).siblings("div.available-roles"), a = e(this);
t.slideToggle(250, function () {
a.is(":checked") || e('input[type="checkbox"]', t).removeAttr("checked")
})
}), i.on("click", ".add-opt", function (t) {
t.preventDefault();
var a = e(this).parents(".field-options:eq(0)"), l = e('[name="multiple"]', a), s = e(".option-selected:eq(0)", a), o = !1;
o = l.length ? l.prop("checked") : "checkbox" === s.attr("type");
var r = s.attr("name");
e(".sortable-options", a).append(U(r, !1, !1, o)), c.updateMultipleSelect()
}), i.on("click touchstart", ".close-field", function () {
var t = e(this).parents("li.form-field:eq(0)").attr("id");
c.toggleEdit(t)
}), i.on("mouseover mouseout", ".remove, .del-button", function () {
e(this).parents("li:eq(0)").toggleClass("delete")
});
/*var z = e(document.getElementById(n + "-view-data"));
z.click(function (e) {
e.preventDefault();
var t = c.htmlEncode(r.val()), a = c.markup("code", t, {className: "xml"}), l = c.markup("pre", a);
c.dialog(l, null, "data-dialog")
});*/
var z = e(document.getElementById(n + "-save"));
z.click(function (e) {
e.preventDefault();
var t = c.htmlEncode(r.val()), a = c.markup("code", t, {className: "xml"}), l = c.markup("pre", a);
//console.log(a);
jQuery("#form-xml").html(l);
//jQuery("#form-xml").html(htmlDecode(l));
});
var X = e(document.getElementById(n + "-clear-all"));
return X.click(function () {
var t = e("li.form-field"), a = this.getBoundingClientRect(), l = document.body.getBoundingClientRect(), s = {
pageX: a.left + a.width / 2,
pageY: a.top - l.top - 12
};
t.length ? c.confirm(o.messages.clearAllMessage, function () {
c.removeAllfields(), o.notify.success(o.messages.allFieldsRemoved), c.save()
}, s) : c.dialog("There are no fields to clear", {pageX: s.pageX, pageY: s.pageY})
}), e(document.getElementById(n + "-save")).click(function (e) {
e.preventDefault(), c.save(), c.validateForm(e)
}), r.parent().find('p[id*="ideaTemplate"]').remove(), r.wrap(''), I(), i.css("min-height", f.height()), document.dispatchEvent(l.events.loaded), l
};
e.fn.formBuilder = function (a) {
return this.each(function () {
var l, s = this;
if (e(s).data("formBuilder")) {
var o = e(s).parents(".form-builder:eq(0)"), r = e(s).clone();
o.before(r), o.remove(), l = new t(a, r[0]), r.data("formBuilder", l)
} else l = new t(a, s), e(s).data("formBuilder", l)
})
}
}(jQuery), function (e) {
e.fn.toXML = function (t) {
var a = "", l = function (a) {
var l = [];
return e(".sortable-options li", a).each(function () {
var a = e(this), s = {
value: e(".option-value", a).val(),
selected: e(".option-selected", a).is(":checked")
}, o = t.markup("option", e(".option-label", a).val(), s).outerHTML;
l.push("\n " + o)
}), l.join("") + "\n "
};
return this.each(function () {
var s = this;
s.childNodes.length >= 1 && (a += "\n ", s.childNodes.forEach(function (s) {
var o = e(s), r = o.data("fieldData");
if (!o.hasClass("disabled")) {
var n = s.querySelectorAll(".roles-field:checked").map(function (e) {
return e.value
}).join(","), i = t.getTypes(o), c = {
className: r.className,
description: e("input.fld-description", o).val(),
label: e(".fld-label", o).val(),
maxlength: e("input.fld-maxlength", o).val(),
multiple: e('input[name="multiple"]', o).is(":checked"),
name: e("input.fld-name", o).val(),
placeholder: e("input.fld-placeholder", o).val(),
required: e("input.required", o).is(":checked"),
role: n,
toggle: e(".checkbox-toggle", o).is(":checked"),
type: i.type,
subtype: i.subtype
};
c = t.trimAttrs(c), c = t.escapeAttrs(c);
var d, u = c.type.match(/(select|checkbox-group|radio-group)/), p = "";
u && (p = l(o)), d = t.markup("field", p, c), a += "\n " + d.outerHTML
}
}), a += "\n \n")
}), a
}
}(jQuery), "function" != typeof Object.assign && !function () {
Object.assign = function (e) {
if (void 0 === e || null === e)throw new TypeError("Cannot convert undefined or null to object");
for (var t = Object(e), a = 1; a < arguments.length; a++) {
var l = arguments[a];
if (void 0 !== l && null !== l)for (var s in l)l.hasOwnProperty(s) && (t[s] = l[s])
}
return t
}
}(), "remove" in Element.prototype || (Element.prototype.remove = function () {
this.parentNode && this.parentNode.removeChild(this)
}), "function" != typeof Event && !function () {
window.Event = function (e) {
var t = document.createEvent("Event");
return t.initEvent(e, !0, !0), t
}
}(), Array.prototype.inArray = function (e) {
return -1 !== this.indexOf(e)
}, Array.prototype.unique = function () {
return this.filter(function (e, t, a) {
return a.indexOf(e) === t
})
}, Array.prototype.remove = function () {
for (var e, t, a = arguments, l = a.length; l && this.length;)for (e = a[--l]; -1 !== (t = this.indexOf(e));)this.splice(t, 1);
return this
}, NodeList.prototype.forEach = Array.prototype.forEach, NodeList.prototype.map = Array.prototype.map;
//# sourceMappingURL=form-builder.min.js.map