1/*! 2 * formeo - https://formeo.io 3 * Version: 1.6.2 4 * Author: Draggable https://draggable.io 5 */ 6!function (t, e) { 7 if ("object" == typeof exports && "object" == typeof module) module.exports = e(); else if ("function" == typeof define && define.amd) define([], e); else { 8 var n = e(); 9 for (var r in n) ("object" == typeof exports ? exports : t)[r] = n[r] 10 } 11}(window, function () { 12 return function (n) { 13 var r = {}; 14 15 function o(t) { 16 if (r[t]) return r[t].exports; 17 var e = r[t] = {i: t, l: !1, exports: {}}; 18 return n[t].call(e.exports, e, e.exports, o), e.l = !0, e.exports 19 } 20 21 return o.m = n, o.c = r, o.d = function (t, e, n) { 22 o.o(t, e) || Object.defineProperty(t, e, {enumerable: !0, get: n}) 23 }, o.r = function (t) { 24 "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {value: "Module"}), Object.defineProperty(t, "__esModule", {value: !0}) 25 }, o.t = function (e, t) { 26 if (1 & t && (e = o(e)), 8 & t) return e; 27 if (4 & t && "object" == typeof e && e && e.__esModule) return e; 28 var n = Object.create(null); 29 if (o.r(n), Object.defineProperty(n, "default", {enumerable: !0, value: e}), 2 & t && "string" != typeof e) for (var r in e) o.d(n, r, function (t) { 30 return e[t] 31 }.bind(null, r)); 32 return n 33 }, o.n = function (t) { 34 var e = t && t.__esModule ? function () { 35 return t.default 36 } : function () { 37 return t 38 }; 39 return o.d(e, "a", e), e 40 }, o.o = function (t, e) { 41 return Object.prototype.hasOwnProperty.call(t, e) 42 }, o.p = "/dist", o(o.s = 206) 43 }([function (t, e, n) { 44 "use strict"; 45 var b = n(4), r = n(3), l = n.n(r), i = n(6), a = n(7), u = n(5), d = n(2), f = n(1); 46 47 function o(e, t) { 48 var n = Object.keys(e); 49 if (Object.getOwnPropertySymbols) { 50 var r = Object.getOwnPropertySymbols(e); 51 t && (r = r.filter(function (t) { 52 return Object.getOwnPropertyDescriptor(e, t).enumerable 53 })), n.push.apply(n, r) 54 } 55 return n 56 } 57 58 function p(e) { 59 for (var t = 1; t < arguments.length; t++) { 60 var n = null != arguments[t] ? arguments[t] : {}; 61 t % 2 ? o(Object(n), !0).forEach(function (t) { 62 c(e, t, n[t]) 63 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o(Object(n)).forEach(function (t) { 64 Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) 65 }) 66 } 67 return e 68 } 69 70 function h(t, e) { 71 if (null == t) return {}; 72 var n, r, o = {}, i = Object.keys(t); 73 for (r = 0; r < i.length; r++) n = i[r], 0 <= e.indexOf(n) || (o[n] = t[n]); 74 return o 75 } 76 77 function s(t, e) { 78 for (var n = 0; n < e.length; n++) { 79 var r = e[n]; 80 r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) 81 } 82 } 83 84 function c(t, e, n) { 85 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 86 } 87 88 var v = new (function () { 89 function t() { 90 var t, g = this; 91 c(this, "render", function (t) { 92 return t.id = "f-" + (t.id || Object(d.n)()), g.create(t) 93 }), c(this, "create", function (t, e) { 94 if (void 0 === e && (e = !1), t) { 95 t = g.processTagName(t); 96 var n, r, o = g, i = t.tag, a = ["children", "content"], s = {attrs: {}, className: [b.b.get(t, "config.inputWrap") || "f-field-group"], children: [], config: {}}, 97 c = document.createElement(i), l = {
98 string: function (t) { 99 c.innerHTML += t 100 }, object: function (t) { 101 return t && c.appendChild(o.create(t, e)) 102 }, node: function (t) { 103 return c.appendChild(t) 104 }, component: function (t) { 105 return c.appendChild(t.dom) 106 }, array: function (t) { 107 for (var e = 0; e < t.length; e++) n = o.childType(t[e]), l[n](t[e]) 108 }, function: function (t) { 109 t = t(), n = o.childType(t), l[n](t) 110 }, undefined: function () { 111 return null 112 }, boolean: function () { 113 return null 114 } 115 }; 116 if (a.push("tag"), t.className) { 117 var u = t.className; 118 t.attrs = Object.assign({}, t.attrs, {className: u}), delete t.className 119 } 120 if (t.options) { 121 var d = t.options; 122 if (d = g.processOptions(d, t, e), !g.holdsContent(c) || "button" === i) return b.b.forEach(d, function (t) { 123 s.children.push(o.create(t, e)) 124 }), t.attrs.className && (s.className = t.attrs.className), s.config = Object.assign({}, t.config), g.create(s, e); 125 l.array.call(g, d), delete t.content, a.push("options") 126 } 127 if (t.attrs && (o.processAttrs(t, c, e), a.push("attrs")), t.config) { 128 if (t.config.label && (t.config.label && "button" !== i || ["radio", "checkbox"].includes(b.b.get(t, "attrs.type"))) && !e) { 129 var f = o.label(t); 130 if (!t.config.hideLabel) { 131 var p = [].concat(o.labelAfter(t) ? [c, f] : [f, c]); 132 s.children.push(p) 133 } 134 } 135 a.push("config") 136 } 137 if (t.content || t.children) { 138 var h = t.content || t.children; 139 n = o.childType(h), l[n] || console.error("childType: " + n + " is not supported"), l[n].call(g, h) 140 } 141 if (t.dataset) { 142 for (var v in t.dataset) t.dataset.hasOwnProperty(v) && (c.dataset[v] = "function" == typeof t.dataset[v] ? t.dataset[v]() : t.dataset[v]); 143 a.push("dataset") 144 } 145 t.action && (g.actionHandler(c, t.action), a.push("action")); 146 var m = b.b.subtract(a, Object.keys(t)); 147 for (r = m.length - 1; 0 <= r; r--) c[m[r]] = t[m[r]]; 148 return s.children.length && (c = g.create(s)), c 149 } 150 }), c(this, "onRender", function (t, e) { 151 t.parentElement ? e(t) : window.requestAnimationFrame(function () { 152 return g.onRender(t, e) 153 }) 154 }), c(this, "toggleElementsByStr", function (t, e) { 155 var n = []; 156 return v.elementsContainText(t, e, function (t, e) { 157 e ? (t.style.display = "block", n.push(t)) : t.style.display = "none" 158 }), n 159 }), c(this, "elementsContainText", function (t, n, r) { 160 var o = []; 161 return Object(b.c)(t, function (t) { 162 var e = -1 !== t.textContent.toLowerCase().indexOf(n.toLowerCase()); 163 r && r(t, e), e && o.push(t) 164 }), o 165 }), c(this, "generateOption", function (t) { 166 var e, n = t.type, r = void 0 === n ? "option" : n, o = t.label, i = t.value, a = t.i, s = void 0 === a ? 0 : a, c = t.selected; 167 return { 168 tag: "option" === r ? "option" : "input", 169 attrs: (e = {type: r, value: i || r + "-" + s}, e["option" === r ? "selected" : "checked"] = c || !s, e), 170 config: {label: o || l.a.get("labelCount", {label: l.a.get("option"), count: s})} 171 } 172 }), c(this, "makeOption", function (t, e, n) { 173 var r = t[0], o = t[1], i = {value: r, label: l.a.get(n + "." + o) || o}; 174 return r === e && (i.selected = !0), i 175 }), c(this, "requiredMark", function () { 176 return {tag: "span", className: "text-error", children: "*"} 177 }), c(this, "removeEmpty", function (t) { 178 var e = t.parentElement, n = Object(d.c)(t), r = e.getElementsByClassName("formeo-" + n); 179 if (g.remove(t), !r.length) { 180 if (!g.isStage(e)) return g.removeEmpty(e); 181 g.emptyClass(e) 182 } 183 }), c(this, "btnTemplate", function (t) { 184 var e = t.title; 185 return p({tag: "button", attrs: {type: "button", title: void 0 === e ? "" : e}}, h(t, ["title"])) 186 }), c(this, "isControls", function (t) { 187 return Object(d.c)(t) === f.o 188 }), c(this, "isStage", function (t) { 189 return Object(d.c)(t) === f.H 190 }), c(this, "isRow", function (t) { 191 return Object(d.c)(t) === f.E 192 }), c(this, "isColumn", function (t) { 193 return Object(d.c)(t) === f.g 194 }), c(this, "isField", function (t) { 195 return Object(d.c)(t) === f.z 196 }), c(this, "asComponent", function (t) { 197 return u.e[Object(d.c)(t) + "s"].get(t.id) 198 }), this.options = Object.create(null), this.styleSheet = ((t = document.createElement("style")).setAttribute("media", "screen"), t.setAttribute("type", "text/css"), t.appendChild(document.createTextNode("")), document.head.appendChild(t), t.sheet) 199 } 200 201 var e, n, r, o = t.prototype; 202 return o.processTagName = function (t) { 203 var e; 204 if ("string" == typeof t && (t = {tag: e = t}), t.attrs) { 205 var n = t.attrs, r = n.tag, o = h(n, ["tag"]); 206 if (r) if ("string" == typeof r) e = r; else e = (r.find(function (t) { 207 return !0 === t.selected 208 }) || r[0]).value; 209 t.attrs = o 210 } 211 return t.tag = e || t.tag || "div", t 212 }, o.actionHandler = function (o, t) { 213 var i = {onRender: v.onRender}, a = ["focus", "blur"]; 214 return Object.entries(t).map(function (t) { 215 var n, e = t[0], r = t[1]; 216 return (i[e] || (n = e, function (t, e) { 217 return t.addEventListener(n, e, a.includes(n)) 218 }))(o, r) 219 }) 220 }, o.icon = function (t) { 221 if (void 0 === t && (t = null), t) { 222 var e, n = "f-i-", r = { 223 glyphicons: function (t) { 224 return '<span class="glyphicon glyphicon-' + t + '" aria-hidden="true"></span>' 225 }, "font-awesome": function (t) { 226 var e = t.split(" "); 227 return '<i class="' + e[0] + " fa-" + e[1] + '"></i>' 228 }, fontello: function (t) { 229 return '<i class="' + n + t + '">' + t + "</i>" 230 } 231 }; 232 return e = document.getElementById(n + t) ? '<svg class="svg-icon ' + n + t + '"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#' + n + t + '"></use></svg>' : v.options.iconFont ? r[v.options.iconFont](t) : t, e 233 } 234 }, o.processAttrs = function (t, o, e) { 235 var n = t.attrs, i = void 0 === n ? {} : n; 236 e || !i.name && this.isInput(t.tag) && o.setAttribute("name", Object(d.n)(t)), Object.keys(i).forEac
236h(function (t) { 237 var e = b.b.safeAttrName(t), n = i[t] || ""; 238 if (Array.isArray(n)) if ("object" == typeof n[0]) { 239 var r = n.filter(function (t) { 240 return !0 === t.selected 241 }); 242 n = r.length ? r[0].value : n[0].value 243 } else n = n.join(" "); 244 n && o.setAttribute(e, n) 245 }) 246 }, o.processOptions = function (t, a, s) { 247 var c = a.action, e = a.attrs, l = e.type || a.tag, u = e.id || a.id; 248 return t.map(function (r, o) { 249 r.label; 250 var i = h(r, ["label"]), t = function () { 251 var t = {tag: "input", attrs: p({name: u, type: l, value: r.value || "", id: u + "-" + o}, i), action: c}, 252 e = {tag: "label", attrs: {for: u + "-" + o}, config: {inputWrap: "form-check"}, children: r.label}, n = {children: [t, e], className: ["f-" + l]}; 253 return a.attrs.className && (a.config.inputWrap = a.attrs.className), a.config.inline && n.className.push("f-" + l + "-inline"), r.selected && (t.attrs.checked = !0), s && (e.attrs.contenteditable = !0), n 254 }, e = { 255 select: function () { 256 return {tag: "option", attrs: r, children: r.label} 257 }, button: function (t) { 258 var e = t.type, n = t.label, r = t.className, o = t.id; 259 return Object.assign({}, a, {attrs: {type: e}, className: r, id: o || Object(d.n)(), options: void 0, children: n, action: a.action}) 260 }, checkbox: t, radio: t 261 }; 262 return e[l] && e[l](r) 263 }) 264 }, o.holdsContent = function (t) { 265 return -1 !== t.outerHTML.indexOf("/") 266 }, o.isBlockInput = function (t) { 267 return !this.isInput(t) && this.holdsContent(t) 268 }, o.isInput = function (t) { 269 return "string" != typeof t && (t = t.tagName), -1 !== ["input", "textarea", "select"].indexOf(t) 270 }, o.parsedHtml = function (t) { 271 var e = document.createElement("textarea"); 272 return e.innerHTML = t, e.textContent 273 }, o.labelAfter = function (t) { 274 var e = b.b.get(t, "attrs.type"), n = b.b.get(t, "config.labelAfter"); 275 return void 0 !== n ? n : "checkbox" === e || "radio" === e 276 }, o.label = function (t, e) { 277 var n = b.b.get(t, "attrs.required"), r = t.config.label, o = void 0 === r ? "" : r, i = t.id, a = t.attrs; 278 "function" == typeof o && (o = o()); 279 var s = {tag: "label", attrs: {for: i || a && a.id}, className: [], children: [o, n && this.requiredMark()], action: {}}; 280 return e && (delete s.attrs.for, s.attrs.contenteditable = !0, s.fMap = e), s 281 }, o.childType = function (e) { 282 return void 0 === e ? e : [["array", function (t) { 283 return Array.isArray(t) 284 }], ["node", function (t) { 285 return t instanceof window.Node || t instanceof window.HTMLElement 286 }], ["component", function () { 287 return e && e.dom 288 }], [typeof e, function () { 289 return !0 290 }]].find(function (t) { 291 return t[1](e) 292 })[0] 293 }, o.getStyle = function (t, e) { 294 var n; 295 return void 0 === e && (e = !1), window.getComputedStyle ? n = window.getComputedStyle(t, null) : t.currentStyle && (n = t.currentStyle), e ? n[e] : n 296 }, o.getElement = function (t) { 297 var e = { 298 node: function () { 299 return t 300 }, object: function () { 301 return document.getElementById(t.id) 302 }, string: function () { 303 return document.getElementById(t) 304 } 305 }; 306 return e[this.childType(t)]() 307 }, o.empty = function (t) { 308 for (; t.firstChild;) this.remove(t.firstChild); 309 return t 310 }, o.clone = function (r, n) { 311 var t = {}, o = this, e = r.id, i = r.fType, a = Object(d.b)(t[i].get(e)), s = Object(b.f)(r) + 1, c = !1; 312 return a.id = Object(d.n)(), t[i].set(a.id, a), n || (n = r.parentElement, c = !0), { 313 rows: function () { 314 a.columns = []; 315 var t = u.d.active, e = t.addRow(null, a.id), n = r.getElementsByClassName(f.g); 316 return t.insertBefore(e, t.childNodes[s]), b.b.forEach(n, function (t) { 317 return o.clone(t, e) 318 }), e 319 }, columns: function () { 320 a.fields = []; 321 var e = o.addColumn(n, a.id); 322 n.insertBefore(e, n.childNodes[s]); 323 var t = r.getElementsByClassName(f.z); 324 return c && v.columnWidths(n), b.b.forEach(t, function (t) { 325 return o.clone(t, e) 326 }), e 327 }, fields: function () { 328 var t = o.addField(n, a.id); 329 return n.insertBefore(t, n.childNodes[s]), t 330 } 331 }[i]() 332 }, o.remove = function (t) { 333 var e = Object(d.c)(t); 334 return e ? u.e.remove(e + "s." + t.id) : t.parentElement.removeChild(t) 335 }, o.removeClasses = function (t, n) { 336 var e = {
337 string: function (t) { 338 return t.classList.remove(n) 339 }, array: function (e) { 340 return n.forEach(function (t) { 341 return e.classList.remove(t) 342 }) 343 } 344 }; 345 e.object = e.string, b.b.forEach(t, e[this.childType(n)]) 346 }, o.addClasses = function (t, n) { 347 var e = { 348 string: function (t) { 349 return t.classList.add(n) 350 }, array: function (e) { 351 return n.forEach(function (t) { 352 return e.classList.add(t) 353 }) 354 } 355 }; 356 b.b.forEach(t, e[this.childType(n)]) 357 }, o.columnWidths = function (t) { 358 var e = t.getElementsByClassName(f.g); 359 if (e.length) { 360 var n = parseFloat((100 / e.length).toFixed(1)) / 1; 361 this.removeClasses(e, f.J), b.b.forEach(e, function (t) { 362 u.a.get(t.id).refreshFieldPanels(); 363 var e = Object(d.i)(n); 364 t.style.width = e, t.style.float = "left", u.a.set(t.id + ".config.width", e), t.dataset.colWidth = e, document.dispatchEvent(i.a.columnResized) 365 }), v.updateColumnPreset(t) 366 } 367 }, o.formGroup = function (t, e) { 368 return void 0 === e && (e = ""), {className: ["f-field-group", e], children: t} 369 }, o.coords = function (t) { 370 var e = t.getBoundingClientRect(), n = document.body.getBoundingClientRect(); 371 return {pageX: e.left + e.width / 2, pageY: e.top - n.top - e.height / 2} 372 }, o.clearStage = function (t) { 373 t.classList.add("removing-all-fields"); 374 a.a.slideUp(t, 600, function () { 375 v.empty(t), t.classList.remove("removing-all-fields"), v.emptyClass(t), a.a.slideDown(t, 300) 376 }) 377 }, o.toggleSortable = function (t, e) { 378 var n = Object(d.c)(t); 379 if (n) { 380 var r = Object(d.c)(t.parentElement), o = v[n].get(t.id).sortable; 381 e || (e = !o.option("disabled")), o.option("disabled", e), r && ["rows", "columns", "stages"].includes(r) && this.toggleSortable(t.parentElement, e) 382 } 383 }, o.emptyClass = function (t) { 384 var e = t.getElementsByClassName(f.e.get(t.classList.item(0))); 385 t.classList.toggle("empty", !e.length) 386 }, o.insertRule = function (t) { 387 for (var e = this.styleSheet, n = e.cssRules.length, r = 0, o = t.length; r < o; r++) { 388 var i = 1, a = t[r], s = t[r][0], c = ""; 389 "[object Array]" === Object.prototype.toString.call(a[1][0]) && (a = a[1], i = 0); 390 for (var l = a.length; i < l; i++) { 391 var u = a[i], d = u[2] ? " !important" : ""; 392 c += u[0] + ":" + u[1] + d + ";" 393 } 394 return e.insertRule(s + " { " + c + " }", n) 395 } 396 }, e = t, (n = [{ 397 key: "setOptions", set: function (t) { 398 this.options = Object(d.h)(Object.assign({}, this.options, t)) 399 } 400 }]) && s(e.prototype, n), r && s(e, r), t 401 }()); 402 e.a = v 403 }, function (t, e, n) { 404 "use strict"; 405 n.d(e, "D", function () { 406 return c 407 }), n.d(e, "y", function () { 408 return l 409 }), n.d(e, "o", function () { 410 return u 411 }), n.d(e, "H", function () { 412 return d 413 }), n.d(e, "E", function () { 414 return f 415 }), n.d(e, "g", function () { 416 return p 417 }), n.d(e, "z", function () { 418 return h 419 }), n.d(e, "e", function () { 420 return v 421 }), n.d(e, "i", function () { 422 return m 423 }), n.d(e, "j", function () { 424 return b 425 }), n.d(e, "k", function () { 426 return y 427 }), n.d(e, "l", function () { 428 return O 429 }), n.d(e, "f", function () { 430 return E 431 }), n.d(e, "C", function () { 432 return C 433 }), n.d(e, "h", function () { 434 return S 435 }), n.d(e, "d", function () { 436 return _ 437 }), n.d(e, "F", function () { 438 return P 439 }), n.d(e, "G", function () { 440 return A 441 }), n.d(e, "a", function () { 442 return D 443 }), n.d(e, "b", function () { 444 return k 445 }), n.d(e, "c", function () { 446 return N 447 }), n.d(e, "s", function () { 448 return T 449 }), n.d(e, "t", function () { 450 return z 451 }), n.d(e, "x", function () { 452 return L 453 }), n.d(e, "w", function () { 454 return M 455 }), n.d(e, "u", function () { 456 return H 457 }), n.d(e, "v", function () { 458 return R 459 }), n.d(e, "p", function () { 460 return I 461 }), n.d(e, "r", function () { 462 return V 463 }), n.d(e, "q", function () { 464 return B 465 }), n.d(e, "m", function () { 466 return F 467 }), n.d(e, "A", function () { 468 return q 469 }), n.d(e, "B", function () { 470 return W 471 }), n.d(e, "n", function () { 472 return U 473 }), n.d(e, "I", function () { 474 return G 475 }), n.d(e, "J", function () { 476 return X 477 }); 478 var r = n(28); 479 480 function o(e, t) { 481 var n = Object.keys(e); 482 if (Object.getOwnPropertySymbols) { 483 var r = Object.getOwnPropertySymbols(e); 484 t && (r = r.filter(function (t) { 485 return Object.getOwnPropertyDescriptor(e, t).enumerable 486 })), n.push.apply(n, r) 487 } 488 return n 489 } 490 491 function i(e) { 492 for (var t = 1; t < arguments.length; t++) { 493 var n = null != arguments[t] ? arguments[t] : {};
494 t % 2 ? o(Object(n), !0).forEach(function (t) { 495 a(e, t, n[t]) 496 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o(Object(n)).forEach(function (t) { 497 Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) 498 }) 499 } 500 return e 501 } 502 503 function a(t, e, n) { 504 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 505 } 506 507 var s = r.name, c = [{name: "cssPreload", src: "//cdnjs.cloudflare.com/ajax/libs/loadCSS/2.0.1/cssrelpreload.min.js"}, { 508 name: "mutationObserver", 509 src: "//cdn.jsdelivr.net/npm/mutationobserver-shim/dist/mutationobserver.min.js" 510 }, {name: "fetch", src: "https://unpkg.com/unfetch/polyfill"}], l = "https://draggable.github.io/formeo/assets/img/formeo-sprite.svg", u = "control-group", d = s + "-stage", f = s + "-row", 511 p = s + "-column", h = s + "-field", v = new Map([[d, f], [f, p], [p, h]]), m = ["external", "stages", "rows", "columns", "fields"], 512 g = [{name: "controls", className: u}, {name: "stage", className: d}, {name: "row", className: f}, {name: "column", className: p}, {name: "field", className: h}], 513 b = {controls: u, stage: d, row: f, column: p, field: h}, y = Object.entries(b).reduce(function (t, e) { 514 var n, r = e[0]; 515 return i({}, t, ((n = {})[e[1]] = r, n)) 516 }, {}), w = Object.values(b), O = new RegExp("" + w.join("|"), "g"), x = g.map(function (t, e, n) { 517 var r = t.name, o = (n[e + 1] || {}).name; 518 return o && [r, o] 519 }).filter(Boolean), j = x.slice().map(function (t) { 520 return t.slice().reverse() 521 }).reverse(), E = new Map(x), C = new Map(j.slice()), 522 S = (new Map([["stage", f], ["row", p], ["column", h]]), new Map([[{value: "100.0", label: "100%"}], [{value: "50.0,50.0", label: "50 | 50"}, { 523 value: "33.3,66.6", 524 label: "33 | 66" 525 }, {value: "66.6,33.3", label: "66 | 33"}], [{value: "33.3,33.3,33.3", label: "33 | 33 | 33"}, {value: "25.0,25.0,50.0", label: "25 | 25 | 50"}, { 526 value: "50.0,25.0,25.0", 527 label: "50 | 25 | 25" 528 }, {value: "25.0,50.0,25.0", label: "25 | 50 | 25"}], [{value: "25.0,25.0,25.0,25.0", label: "25 | 25 | 25 | 25"}], [{ 529 value: "20.0,20.0,20.0,20.0,20.0", 530 label: "20 | 20 | 20 | 20 | 20" 531 }], [{value: "16.66,16.66,16.66,16.66,16.66,16.66", label: "16.66 | 16.66 | 16.66 | 16.66 | 16.66 | 16.66"}]].reduce(function (t, e, n) { 532 return t.push([n, e]), t 533 }))), _ = [{ 534 type: "added", condition: function (t, e) { 535 return Boolean(void 0 === t && e) 536 } 537 }], P = r.name + "-formData", A = r.name + "-locale", D = 333, k = Math.round(D / 2), N = Math.round(2 * D), T = "formeoSaved", z = "formeoUpdated", L = "formeoUpdatedStage", 538 M = "formeoUpdatedRow", H = "formeoUpdatedColumn", R = "formeoUpdatedField", I = "formeoCleared", V = "formeoOnRender", B = "formeoConditionUpdated", 539 F = ["label", "logical", "source", "thenTarget", "sourceProperty", "comparison", "target", "targetProperty", "assignment", "value"], 540 q = i({value: "attrs.value", checked: "attrs.checked"}, {isVisible: "config.isVisible", isNotVisible: "config.isNotVisible"}), 541 W = {comparison: {equals: "==", notEquals: "!=", contains: "â", notContains: "!â"}, assignment: {equals: "="}, logical: {and: "&&", or: "||"}, property: q}, U = function () { 542 return {if: [{source: "", sourceProperty: "", comparison: "", target: "", targetProperty: ""}], then: [{target: "", targetProperty: "", assignment: "", value: ""}]} 543 }, G = /(\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b)/gi, X = /\bcol-\w+-\d+/g 544 }, function (t, e, n) { 545 "use strict"; 546 n.d(e, "g", function () { 547 return c 548 }), n.d(e, "k", function () { 549 return l 550 }), n.d(e, "c", function () { 551 return u 552 }), n.d(e, "m", function () { 553 return d 554 }), n.d(e, "n", function () { 555 return f 556 }), n.d(e, "h", function () { 557 return p 558 }), n.d(e, "b", function () { 559 return h 560 }), n.d(e, "j", function () { 561 return v 562 }), n.d(e, "i", function () { 563 return m 564 }), n.d(e, "a", function () { 565 return g 566 }), n.d(e, "l", function () { 567 return b 568 }), n.d(e, "d", function () { 569 return y 570 }), n.d(e, "f", function () { 571 return w 572 }), n.d(e, "e", function () { 573 return O 574 }); 575 var r = n(58), o = n.n(r), i = n(1), a = n(86), s = n.n(a), c = function (t, e) { 576 if (void 0 === t && (t = ""), !e) return console.warn("utils.match missing argument 2."), !1; 577 var n = /[|\\{}()[\]^*$+?.]/g, r = "string" == typeof e ? [e] : e, o = !0; 578 return (r = r.map(function (t) { 579 return "*" === t ? "" : t.replace(n, "\\$&") 580 })).length && (o = !t.match(new RegExp(r.join("|"), "i"))), o 581 }, l = function (t, e) { 582 var n = t.indexOf(e); 583 -1 !== n && t.splice(n, 1) 584 }, u = function (t) { 585 var e = t.className && t.className.match(i.l); 586 return e && i.k[e[0]] 587 }, d = function (t) { 588 return Array.from(new Set(t)) 589 }, f = function (t) { 590 var e; 591 if (t) { 592 var n = t.attrs; 593 e = (void 0 === n ? {} : n).id || t.id || o()(), t.id = e 594 } else e = o()(); 595 return e 596 }, p = function (t, e, n) { 597 void 0 === n && (n = Object.create(null)); 598 return s()({}, t, e, function (t, e) { 599 if (Array.isArray(t)) return Array.isArray(e) ? d(n.mergeArray ? t.concat(e) : e) : e 600 }) 601 }, h = function t(e) { 602 var n; 603 if (null === e || "object" != typeof e) return e; 604 if (e instanceof Date) return (n = new Date).setTime(e.getTime()), n; 605 if (e instanceof Array) { 606 n = []; 607 for (var r = 0, o = e.length; r < o; r++) n[r] = t(e[r]); 608 return n 609 } 610 if (e instanceof Object) { 611 for (var i in n = {}, e) e.hasOwnProperty(i) && (n[i] = t(e[i])); 612 return n 613 } 614 throw new Error("Unable to copy Object, type not supported.") 615 }, v = function (t, e) { 616 return t / e * 100 617 }, m = function (t) { 618 return t.toString() + "%" 619 }, g = function e(n) { 620 var r = Object.assign({}, n), o = {
621 string: function () { 622 return "" 623 }, boolean: function () { 624 return !1 625 }, object: function (t) { 626 return e(t) 627 } 628 }; 629 return Object.keys(n).forEach(function (t) { 630 var e = typeof n[t]; 631 o[e] && (r[t] = o[e](n[t])) 632 }), r 633 }, b = Object.create(null, { 634 get: { 635 value: function (t) { 636 var e = window.sessionStorage && window.sessionStorage.getItem(t); 637 try { 638 return JSON.parse(e) 639 } catch (t) { 640 console.error(t) 641 } 642 } 643 }, set: { 644 value: function (t, e) { 645 try { 646 return window.sessionStorage && window.sessionStorage.setItem(t, JSON.stringify(e)) 647 } catch (t) { 648 console.error(t) 649 } 650 } 651 } 652 }), y = function (e) { 653 return i.i.some(function (t) { 654 return new RegExp("^" + t + ".").test(e) 655 }) 656 }, w = function (t) { 657 return /^external/.test(t) 658 }, O = function (t) { 659 return /^is|^has/.test(t) 660 } 661 }, function (t, e) { 662 /*! 663 * mi18n - https://github.com/Draggable/mi18n 664 * Version: 0.4.7 665 * Author: Kevin Chappell <[email protected]> (http://kevin-chappell.com) 666 */ 667 t.exports = function (n) { 668 var r = {}; 669 670 function o(t) { 671 if (r[t]) return r[t].exports; 672 var e = r[t] = {i: t, l: !1, exports: {}}; 673 return n[t].call(e.exports, e, e.exports, o), e.l = !0, e.exports 674 } 675 676 return o.m = n, o.c = r, o.d = function (t, e, n) { 677 o.o(t, e) || Object.defineProperty(t, e, {enumerable: !0, get: n}) 678 }, o.r = function (t) { 679 "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {value: "Module"}), Object.defineProperty(t, "__esModule", {value: !0}) 680 }, o.t = function (e, t) { 681 if (1 & t && (e = o(e)), 8 & t) return e; 682 if (4 & t && "object" == typeof e && e && e.__esModule) return e; 683 var n = Object.create(null); 684 if (o.r(n), Object.defineProperty(n, "default", {enumerable: !0, value: e}), 2 & t && "string" != typeof e) for (var r in e) o.d(n, r, function (t) { 685 return e[t] 686 }.bind(null, r)); 687 return n 688 }, o.n = function (t) { 689 var e = t && t.__esModule ? function () { 690 return t.default 691 } : function () { 692 return t 693 }; 694 return o.d(e, "a", e), e 695 }, o.o = function (t, e) { 696 return Object.prototype.hasOwnProperty.call(t, e) 697 }, o.p = "", o(o.s = 7) 698 }([function (t, e, n) { 699 "use strict"; 700 var i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { 701 return typeof t 702 } : function (t) { 703 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 704 }, o = n(2), r = n(10), a = Object.prototype.toString; 705 706 function s(t) { 707 return "[object Array]" === a.call(t) 708 } 709 710 function c(t) { 711 return null !== t && "object" === (void 0 === t ? "undefined" : i(t)) 712 } 713 714 function l(t) { 715 return "[object Function]" === a.call(t) 716 } 717 718 function u(t, e) { 719 if (null != t) if ("object" !== (void 0 === t ? "undefined" : i(t)) && (t = [t]), s(t)) for (var n = 0, r = t.length; n < r; n++) e.call(null, t[n], n, t); else for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && e.call(null, t[o], o, t) 720 } 721 722 t.exports = { 723 isArray: s, isArrayBuffer: function (t) { 724 return "[object ArrayBuffer]" === a.call(t) 725 }, isBuffer: r, isFormData: function (t) { 726 return "undefined" != typeof FormData && t instanceof FormData 727 }, isArrayBufferView: function (t) { 728 return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(t) : t && t.buffer && t.buffer instanceof ArrayBuffer 729 }, isString: function (t) { 730 return "string" == typeof t 731 }, isNumber: function (t) { 732 return "number" == typeof t 733 }, isObject: c, isUndefined: function (t) { 734 return void 0 === t 735 }, isDate: function (t) { 736 return "[object Date]" === a.call(t) 737 }, isFile: function (t) { 738 return "[object File]" === a.call(t) 739 }, isBlob: function (t) { 740 return "[object Blob]" === a.call(t) 741 }, isFunction: l, isStream: function (t) { 742 return c(t) && l(t.pipe) 743 }, isURLSearchParams: function (t) { 744 return "undefined" != typeof URLSearchParams && t instanceof URLSearchParams 745 }, isStandardBrowserEnv: function () { 746 return ("undefined" == typeof navigator || "ReactNative" !== navigator.product) && "undefined" != typeof window && "undefined" != typeof document 747 }
vendor: 6,773 bytes, lines 747-867
747, forEach: u, merge: function n() { 748 var r = {}; 749 750 function t(t, e) { 751 "object" === i(r[e]) && "object" === (void 0 === t ? "undefined" : i(t)) ? r[e] = n(r[e], t) : r[e] = t 752 } 753 754 for (var e = 0, o = arguments.length; e < o; e++) u(arguments[e], t); 755 return r 756 }, extend: function (n, t, r) { 757 return u(t, function (t, e) { 758 n[e] = r && "function" == typeof t ? o(t, r) : t 759 }), n 760 }, trim: function (t) { 761 return t.replace(/^\s*/, "").replace(/\s*$/, "") 762 } 763 } 764 }, function (s, t, c) { 765 "use strict"; 766 (function (t) { 767 var n = c(0), r = c(13), e = {"Content-Type": "application/x-www-form-urlencoded"}; 768 769 function o(t, e) { 770 !n.isUndefined(t) && n.isUndefined(t["Content-Type"]) && (t["Content-Type"] = e) 771 } 772 773 var i, a = { 774 adapter: ("undefined" != typeof XMLHttpRequest ? i = c(3) : void 0 !== t && (i = c(3)), i), transformRequest: [function (t, e) { 775 return r(e, "Content-Type"), n.isFormData(t) || n.isArrayBuffer(t) || n.isBuffer(t) || n.isStream(t) || n.isFile(t) || n.isBlob(t) ? t : n.isArrayBufferView(t) ? t.buffer : n.isURLSearchParams(t) ? (o(e, "application/x-www-form-urlencoded;charset=utf-8"), t.toString()) : n.isObject(t) ? (o(e, "application/json;charset=utf-8"), JSON.stringify(t)) : t 776 }], transformResponse: [function (t) { 777 if ("string" == typeof t) try { 778 t = JSON.parse(t) 779 } catch (t) { 780 } 781 return t 782 }], timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, validateStatus: function (t) { 783 return 200 <= t && t < 300 784 }, headers: {common: {Accept: "application/json, text/plain, */*"}} 785 }; 786 n.forEach(["delete", "get", "head"], function (t) { 787 a.headers[t] = {} 788 }), n.forEach(["post", "put", "patch"], function (t) { 789 a.headers[t] = n.merge(e) 790 }), s.exports = a 791 }).call(this, c(12)) 792 }, function (t, e, n) { 793 "use strict"; 794 t.exports = function (n, r) { 795 return function () { 796 for (var t = new Array(arguments.length), e = 0; e < t.length; e++) t[e] = arguments[e]; 797 return n.apply(r, t) 798 } 799 } 800 }, function (t, e, f) { 801 "use strict"; 802 var p = f(0), h = f(14), v = f(16), m = f(17), g = f(18), b = f(4), y = "undefined" != typeof window && window.btoa && window.btoa.bind(window) || f(19); 803 t.exports = function (d) { 804 return new Promise(function (n, r) { 805 var o = d.data, i = d.headers; 806 p.isFormData(o) && delete i["Content-Type"]; 807 var a = new XMLHttpRequest, t = "onreadystatechange", s = !1; 808 if ("undefined" == typeof window || !window.XDomainRequest || "withCredentials" in a || g(d.url) || (a = new window.XDomainRequest, t = "onload", s = !0, a.onprogress = function () { 809 }, a.ontimeout = function () { 810 }), d.auth) { 811 var e = d.auth.username || "", c = d.auth.password || ""; 812 i.Authorization = "Basic " + y(e + ":" + c) 813 } 814 if (a.open(d.method.toUpperCase(), v(d.url, d.params, d.paramsSerializer), !0), a.timeout = d.timeout, a[t] = function () { 815 if (a && (4 === a.readyState || s) && (0 !== a.status || a.responseURL && 0 === a.responseURL.indexOf("file:"))) { 816 var t = "getAllResponseHeaders" in a ? m(a.getAllResponseHeaders()) : null, e = { 817 data: d.responseType && "text" !== d.responseType ? a.response : a.responseText, 818 status: 1223 === a.status ? 204 : a.status, 819 statusText: 1223 === a.status ? "No Content" : a.statusText, 820 headers: t, 821 config: d, 822 request: a 823 }; 824 h(n, r, e), a = null 825 } 826 }, a.onerror = function () { 827 r(b("Network Error", d, null, a)), a = null 828 }, a.ontimeout = function () { 829 r(b("timeout of " + d.timeout + "ms exceeded", d, "ECONNABORTED", a)), a = null 830 }, p.isStandardBrowserEnv()) { 831 var l = f(20), u = (d.withCredentials || g(d.url)) && d.xsrfCookieName ? l.read(d.xsrfCookieName) : void 0; 832 u && (i[d.xsrfHeaderName] = u) 833 } 834 if ("setRequestHeader" in a && p.forEach(i, function (t, e) { 835 void 0 === o && "content-type" === e.toLowerCase() ? delete i[e] : a.setRequestHeader(e, t) 836 }), d.withCredentials && (a.withCredentials = !0), d.responseType) try { 837 a.responseType = d.responseType 838 } catch (n) { 839 if ("json" !== d.responseType) throw n 840 } 841 "function" == typeof d.onDownloadProgress && a.addEventListener("progress", d.onDownloadProgress), "function" == typeof d.onUploadProgress && a.upload && a.upload.addEventListener("progress", d.onUploadProgress), d.cancelToken && d.cancelToken.promise.then(function (t) { 842 a && (a.abort(), r(t), a = null) 843 }), void 0 === o && (o = null), a.send(o) 844 }) 845 } 846 }, function (t, e, n) { 847 "use strict"; 848 var a = n(15); 849 t.exports = function (t, e, n, r, o) { 850 var i = new Error(t); 851 return a(i, e, n, r, o) 852 } 853 }, function (t, e, n) { 854 "use strict"; 855 t.exports = function (t) { 856 return !(!t || !t.__CANCEL__) 857 } 858 }, function (t, e, n) { 859 "use strict"; 860 861 function r(t) { 862 this.message = t 863 } 864 865 r.prototype.toString = function () { 866 return "Cancel" + (this.message ? ": " + this.message : "") 867 }
867, r.prototype.__CANCEL__ = !0, t.exports = r 868 }, function (t, e, n) { 869 "use strict"; 870 e.__esModule = !0, e.I18N = void 0; 871 var a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { 872 return typeof t 873 } : function (t) { 874 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 875 }, r = function () { 876 function r(t, e) { 877 for (var n = 0; n < e.length; n++) { 878 var r = e[n]; 879 r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) 880 } 881 } 882 883 return function (t, e, n) { 884 return e && r(t.prototype, e), n && r(t, n), t 885 } 886 }(), s = n(8), d = {extension: ".lang", location: "assets/lang/", langs: ["en-US"], locale: "en-US", override: {}}, o = e.I18N = function () { 887 function n() { 888 var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : d; 889 !function (t, e) { 890 if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function") 891 }(this), this.langs = Object.create(null), this.loaded = [], this.processConfig(t) 892 } 893 894 return n.prototype.processConfig = function (t) { 895 var o = this, e = Object.assign({}, d, t), n = e.location, r = function (t, e) { 896 var n = {}; 897 for (var r in t) 0 <= e.indexOf(r) || Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]); 898 return n 899 }(e, ["location"]), i = n.replace(/\/?$/, "/"); 900 this.config = Object.assign({}, {location: i}, r); 901 var a = this.config, s = a.override, c = a.preloaded, l = void 0 === c ? {} : c, u = Object.entries(this.langs).concat(Object.entries(s || l)); 902 this.langs = u.reduce(function (t, e) { 903 var n = e[0], r = e[1]; 904 return t[n] = o.applyLanguage.call(o, n, r), t 905 }, {}), this.locale = this.config.locale || this.config.langs[0] 906 }, n.prototype.init = function (t) { 907 return this.processConfig.call(this, Object.assign({}, this.config, t)), this.setCurrent(this.locale) 908 }, n.prototype.addLanguage = function (t) { 909 var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}; 910 e = "string" == typeof e ? this.processFile.call(this, e) : e, this.applyLanguage.call(this, t, e), this.config.langs.push("locale") 911 }, n.prototype.getValue = function (t) { 912 var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : this.locale; 913 return this.langs[e] && this.langs[e][t] || this.getFallbackValue(t) 914 }, n.prototype.getFallbackValue = function (e) { 915 var t = Object.values(this.langs).find(function (t) { 916 return t[e] 917 }); 918 return t && t[e] 919 }, n.prototype.makeSafe = function (t) { 920 var e = {"{": "\\{", "}": "\\}", "|": "\\|"}; 921 return t = t.replace(/\{|\}|\|/g, function (t) { 922 return e[t] 923 }), new RegExp(t, "g") 924 }, n.prototype.put = function (t, e) { 925 return this.current[t] = e 926 }, n.prototype.get = function (t, e) { 927 var n = this.getValue(t); 928 if (n) { 929 var r = n.match(/\{[^}]+?\}/g), o = void 0; 930 if (e && r) if ("object" === (void 0 === e ? "undefined" : a(e))) for (var i = 0; i < r.length; i++) o = r[i].substring(1, r[i].length - 1), n = n.replace(this.makeSafe(r[i]), e[o] || ""); else n = n.replace(/\{[^}]+?\}/g, e); 931 return n 932 } 933 }, n.prototype.fromFile = function (t) { 934 for (var e, n = t.split("\n"), r = {}, o = 0; o < n.length; o++) (e = n[o].match(/^(.+?) *?= *?([^\n]+)/)) && (r[e[1]] = e[2].replace(/^\s+|\s+$/, "")); 935 return r 936 }
936, n.prototype.processFile = function (t) { 937 return this.fromFile(t.replace(/\n\n/g, "\n")) 938 }, n.prototype.loadLang = function (o) { 939 var n = !(1 < arguments.length && void 0 !== arguments[1]) || arguments[1], i = this; 940 return new Promise(function (r, t) { 941 if (-1 !== i.loaded.indexOf(o) && n) return i.applyLanguage.call(i, i.langs[o]), r(i.langs[o]); 942 var e = [i.config.location, o, i.config.extension].join(""); 943 return (0, s.get)(e).then(function (t) { 944 var e = t.data, n = i.processFile(e); 945 return i.applyLanguage.call(i, o, n), i.loaded.push(o), r(i.langs[o]) 946 }).catch(function () { 947 var t = i.applyLanguage.call(i, o); 948 r(t) 949 }) 950 }) 951 }, n.prototype.applyLanguage = function (t) { 952 var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}, n = this.config.override[t] || {}, r = this.langs[t] || {}; 953 return this.langs[t] = Object.assign({}, r, e, n), this.langs[t] 954 }, n.prototype.setCurrent = function () { 955 var t = this, e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : "en-US"; 956 return this.loadLang(e).then(function () { 957 return t.locale = e, t.current = t.langs[e], t.current 958 }) 959 }, r(n, [{ 960 key: "getLangs", get: function () { 961 return this.config.langs 962 } 963 }]), n 964 }(); 965 e.default = new o 966 }, function (t, e, n) { 967 "use strict"; 968 t.exports = n(9) 969 }, function (t, e, n) { 970 "use strict"; 971 var r = n(0), o = n(2), i = n(11), a = n(1); 972 973 function s(t) { 974 var e = new i(t), n = o(i.prototype.request, e); 975 return r.extend(n, i.prototype, e), r.extend(n, e), n 976 } 977 978 var c = s(a); 979 c.Axios = i, c.create = function (t) { 980 return s(r.merge(a, t)) 981 }, c.Cancel = n(6), c.CancelToken = n(26), c.isCancel = n(5), c.all = function (t) { 982 return Promise.all(t) 983 }, c.spread = n(27), t.exports = c, t.exports.default = c 984 }, function (t, e, n) { 985 "use strict"; 986 987 /*! 988 * Determine if an object is a Buffer 989 * 990 * @author Feross Aboukhadijeh <https://feross.org> 991 * @license MIT 992 */ 993 function r(t) { 994 return !!t.constructor && "function" == typeof t.constructor.isBuffer && t.constructor.isBuffer(t) 995 } 996 997 t.exports = function (t) { 998 return null != t && (r(t) || "function" == typeof (e = t).readFloatLE && "function" == typeof e.slice && r(e.slice(0, 0)) || !!t._isBuffer); 999 var e 1000 } 1001 }, function (t, e, n) { 1002 "use strict"; 1003 var r = n(1), o = n(0), i = n(21), a = n(22); 1004 1005 function s(t) { 1006 this.defaults = t, this.interceptors = {request: new i, response: new i} 1007 } 1008 1009 s.prototype.request = function (t) { 1010 "string" == typeof t && (t = o.merge({url: arguments[0]}, arguments[1])), (t = o.merge(r, {method: "get"}, this.defaults, t)).method = t.method.toLowerCase(); 1011 var e = [a, void 0], n = Promise.resolve(t); 1012 for (this.interceptors.request.forEach(function (t) { 1013 e.unshift(t.fulfilled, t.rejected) 1014 }), this.interceptors.response.forEach(function (t) { 1015 e.push(t.fulfilled, t.rejected) 1016 }); e.length;) n = n.then(e.shift(), e.shift()); 1017 return n 1018 }, o.forEach(["delete", "get", "head", "options"], function (n) { 1019 s.prototype[n] = function (t, e) { 1020 return this.request(o.merge(e || {}, {method: n, url: t})) 1021 } 1022 }), o.forEach(["post", "put", "patch"], function (r) { 1023 s.prototype[r] = function (t, e, n) { 1024 return this.request(o.merge(n || {}, {method: r, url: t, data: e})) 1025 } 1026 }), t.exports = s 1027 }, function (t, e, n) { 1028 "use strict"; 1029 var r, o, i = t.exports = {}; 1030 1031 function a() { 1032 throw new Error("setTimeout has not been defined") 1033 } 1034 1035 function s() { 1036 throw new Error("clearTimeout has not been defined") 1037 } 1038 1039 function c(e) { 1040 if (r === setTimeout) return setTimeout(e, 0); 1041 if ((r === a || !r) && setTimeout) return r = setTimeout, setTimeout(e, 0); 1042 try { 1043 return r(e, 0) 1044 } catch (t) { 1045 try { 1046 return r.call(null, e, 0) 1047 } catch (t) { 1048 return r.call(this, e, 0) 1049 } 1050 } 1051 } 1052 1053 !function () { 1054 try { 1055 r = "function" == typeof setTimeout ? setTimeout : a 1056 } catch (t) { 1057 r = a 1058 } 1059 try { 1060 o = "function" == typeof clearTimeout ? clearTimeout : s 1061 } catch (t) { 1062 o = s 1063 } 1064 }(); 1065 var l, u = [], d = !1, f = -1; 1066 1067 function p() { 1068 d && l && (d = !1, l.length ? u = l.concat(u) : f = -1, u.length && h()) 1069 } 1070 1071 function h() { 1072 if (!d) { 1073 var t = c(p); 1074 d = !0; 1075 for (var e = u.length; e;) { 1076 for (l = u, u = []; ++f < e;) l && l[f].run(); 1077 f = -1, e = u.length 1078 } 1079 l = null, d = !1, function (e) { 1080 if (o === clearTimeout) return clearTimeout(e); 1081 if ((o === s || !o) && clearTimeout) return o = clearTimeout, clearTimeout(e); 1082 try { 1083 o(e) 1084 } catch (t) { 1085 try { 1086 return o.call(null, e) 1087 } catch (t) { 1088 return o.call(this, e) 1089 } 1090 } 1091 }(t) 1092 } 1093 } 1094 1095 function v(t, e) { 1096 this.fun = t, this.array = e 1097 } 1098 1099 function m() { 1100 } 1101 1102 i.nextTick = function (t) { 1103 var e = new Array(arguments.length - 1); 1104 if (1 < arguments.length) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n]; 1105 u.push(new v(t, e)), 1 !== u.length || d || c(h) 1106 }, v.prototype.run = function () { 1107 this.fun.apply(null, this.array) 1108 }, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {}, i.on = m, i.addListener = m, i.once = m, i.off = m, i.removeListener = m, i.removeAllListeners = m, i.emit = m, i.prependListener = m, i.prependOnceListener = m, i.listeners = function (t) { 1109 return [] 1110 }, i.binding = function (t) { 1111 throw new Error("process.binding is not supported") 1112 }, i.cwd = function () { 1113 return "/" 1114 }, i.chdir = function (t) { 1115 throw new Error("process.chdir is not supported") 1116 }, i.umask = function () { 1117 return 0 1118 } 1119 }, function (t, e, n) { 1120 "use strict"; 1121 var o = n(0); 1122 t.exports = function (n, r) { 1123 o.forEach(n, function (t, e) { 1124 e !== r && e.toUpperCase() === r.toUpperCase() && (n[r] = t, delete n[e]) 1125 }) 1126 } 1127 }, function (t, e, n) { 1128 "use strict"; 1129 var o = n(4); 1130 t.exports = function (t, e, n) { 1131 var r = n.config.validateStatus; 1132 n.status && r && !r(n.status) ? e(o("Request failed with status code " + n.status, n.config, null, n.request, n)) : t(n) 1133 } 1134 }, function (t, e, n) { 1135 "use strict"; 1136 t.exports = function (t, e, n, r, o) { 1137 return t.config = e, n && (t.code = n), t.request = r, t.response = o, t 1138 } 1139 }, function (t, e, n) { 1140 "use strict"; 1141 var i = n(0); 1142 1143 function a(t) { 1144 return encodeURIComponent(t).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]") 1145 } 1146 1147 t.exports = function (t, e, n) { 1148 if (!e) return t; 1149 var r; 1150 if (n) r = n(e); else if (i.isURLSearchParams(e)) r = e.toString(); else { 1151 var o = [];
1152 i.forEach(e, function (t, e) { 1153 null != t && (i.isArray(t) ? e += "[]" : t = [t], i.forEach(t, function (t) { 1154 i.isDate(t) ? t = t.toISOString() : i.isObject(t) && (t = JSON.stringify(t)), o.push(a(e) + "=" + a(t)) 1155 })) 1156 }), r = o.join("&") 1157 } 1158 return r && (t += (-1 === t.indexOf("?") ? "?" : "&") + r), t 1159 } 1160 }, function (t, e, n) { 1161 "use strict"; 1162 var i = n(0), 1163 a = ["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]; 1164 t.exports = function (t) { 1165 var e, n, r, o = {}; 1166 return t && i.forEach(t.split("\n"), function (t) { 1167 if (r = t.indexOf(":"), e = i.trim(t.substr(0, r)).toLowerCase(), n = i.trim(t.substr(r + 1)), e) { 1168 if (o[e] && 0 <= a.indexOf(e)) return; 1169 o[e] = "set-cookie" === e ? (o[e] ? o[e] : []).concat([n]) : o[e] ? o[e] + ", " + n : n 1170 } 1171 }), o 1172 } 1173 }, function (t, e, n) { 1174 "use strict"; 1175 var a = n(0); 1176 t.exports = a.isStandardBrowserEnv() ? function () { 1177 var n, r = /(msie|trident)/i.test(navigator.userAgent), o = document.createElement("a"); 1178 1179 function i(t) { 1180 var e = t; 1181 return r && (o.setAttribute("href", e), e = o.href), o.setAttribute("href", e), { 1182 href: o.href, 1183 protocol: o.protocol ? o.protocol.replace(/:$/, "") : "", 1184 host: o.host, 1185 search: o.search ? o.search.replace(/^\?/, "") : "", 1186 hash: o.hash ? o.hash.replace(/^#/, "") : "", 1187 hostname: o.hostname, 1188 port: o.port, 1189 pathname: "/" === o.pathname.charAt(0) ? o.pathname : "/" + o.pathname 1190 } 1191 } 1192 1193 return n = i(window.location.href), function (t) { 1194 var e = a.isString(t) ? i(t) : t; 1195 return e.protocol === n.protocol && e.host === n.host 1196 } 1197 }() : function () { 1198 return !0 1199 } 1200 }, function (t, e, n) { 1201 "use strict"; 1202 1203 function s() { 1204 this.message = "String contains an invalid character" 1205 } 1206 1207 (s.prototype = new Error).code = 5, s.prototype.name = "InvalidCharacterError", t.exp
vendor: 6,085 bytes, lines 1207-1356
1207orts = function (t) { 1208 for (var e, n, r = String(t), o = "", i = 0, a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; r.charAt(0 | i) || (a = "=", i % 1); o += a.charAt(63 & e >> 8 - i % 1 * 8)) { 1209 if (255 < (n = r.charCodeAt(i += .75))) throw new s; 1210 e = e << 8 | n 1211 } 1212 return o 1213 } 1214 }, function (t, e, n) { 1215 "use strict"; 1216 var s = n(0); 1217 t.exports = s.isStandardBrowserEnv() ? { 1218 write: function (t, e, n, r, o, i) { 1219 var a = []; 1220 a.push(t + "=" + encodeURIComponent(e)), s.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), s.isString(r) && a.push("path=" + r), s.isString(o) && a.push("domain=" + o), !0 === i && a.push("secure"), document.cookie = a.join("; ") 1221 }, read: function (t) { 1222 var e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)")); 1223 return e ? decodeURIComponent(e[3]) : null 1224 }, remove: function (t) { 1225 this.write(t, "", Date.now() - 864e5) 1226 } 1227 } : { 1228 write: function () { 1229 }, read: function () { 1230 return null 1231 }, remove: function () { 1232 } 1233 } 1234 }, function (t, e, n) { 1235 "use strict"; 1236 var r = n(0); 1237 1238 function o() { 1239 this.handlers = [] 1240 } 1241 1242 o.prototype.use = function (t, e) { 1243 return this.handlers.push({fulfilled: t, rejected: e}), this.handlers.length - 1 1244 }, o.prototype.eject = function (t) { 1245 this.handlers[t] && (this.handlers[t] = null) 1246 }, o.prototype.forEach = function (e) { 1247 r.forEach(this.handlers, function (t) { 1248 null !== t && e(t) 1249 }) 1250 }, t.exports = o 1251 }, function (t, e, n) { 1252 "use strict"; 1253 var r = n(0), o = n(23), i = n(5), a = n(1), s = n(24), c = n(25); 1254 1255 function l(t) { 1256 t.cancelToken && t.cancelToken.throwIfRequested() 1257 } 1258 1259 t.exports = function (e) { 1260 return l(e), e.baseURL && !s(e.url) && (e.url = c(e.baseURL, e.url)), e.headers = e.headers || {}, e.data = o(e.data, e.headers, e.transformRequest), e.headers = r.merge(e.headers.common || {}, e.headers[e.method] || {}, e.headers || {}), r.forEach(["delete", "get", "head", "post", "put", "patch", "common"], function (t) { 1261 delete e.headers[t] 1262 }), (e.adapter || a.adapter)(e).then(function (t) { 1263 return l(e), t.data = o(t.data, t.headers, e.transformResponse), t 1264 }, function (t) { 1265 return i(t) || (l(e), t && t.response && (t.response.data = o(t.response.data, t.response.headers, e.transformResponse))), Promise.reject(t) 1266 }) 1267 } 1268 }, function (t, e, n) { 1269 "use strict"; 1270 var r = n(0); 1271 t.exports = function (e, n, t) { 1272 return r.forEach(t, function (t) { 1273 e = t(e, n) 1274 }), e 1275 } 1276 }, function (t, e, n) { 1277 "use strict"; 1278 t.exports = function (t) { 1279 return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t) 1280 } 1281 }, function (t, e, n) { 1282 "use strict"; 1283 t.exports = function (t, e) { 1284 return e ? t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : t 1285 } 1286 }, function (t, e, n) { 1287 "use strict"; 1288 var r = n(6); 1289 1290 function o(t) { 1291 if ("function" != typeof t) throw new TypeError("executor must be a function."); 1292 var e; 1293 this.promise = new Promise(function (t) { 1294 e = t 1295 }); 1296 var n = this; 1297 t(function (t) { 1298 n.reason || (n.reason = new r(t), e(n.reason)) 1299 }) 1300 } 1301 1302 o.prototype.throwIfRequested = function () { 1303 if (this.reason) throw this.reason 1304 }, o.source = function () { 1305 var e; 1306 return { 1307 token: new o(function (t) { 1308 e = t 1309 }), cancel: e 1310 } 1311 }, t.exports = o 1312 }, function (t, e, n) { 1313 "use strict"; 1314 t.exports = function (e) { 1315 return function (t) { 1316 return e.apply(null, t) 1317 } 1318 } 1319 }]) 1320 }, function (t, e, n) { 1321 "use strict"; 1322 n.d(e, "h", function () { 1323 return f 1324 }), n.d(e, "f", function () { 1325 return p 1326 }), n.d(e, "j", function () { 1327 return h 1328 }), n.d(e, "d", function () { 1329 return v 1330 }), n.d(e, "k", function () { 1331 return m 1332 }), n.d(e, "c", function () { 1333 return g 1334 }), n.d(e, "e", function () { 1335 return b 1336 }), n.d(e, "i", function () { 1337 return y 1338 }), n.d(e, "a", function () { 1339 return w 1340 }), n.d(e, "g", function () { 1341 return O 1342 }); 1343 var i = n(2), r = n(87), o = n.n(r), a = n(88), s = n.n(a), c = n(89), l = n.n(c), u = n(38), d = n.n(u), f = function (t) { 1344 return Number.isInteger(Number(t)) 1345 }, p = function (t, e) { 1346 var n = e || t.parentElement; 1347 return Array.prototype.slice.call(n.childNodes).indexOf(t) 1348 }, h = function (t, e, n) { 1349 var r = n.split("||"), o = Object(i.m)(e).map(function (n) { 1350 return t.find(function (e) { 1351 var t = r.find(function (t) { 1352 return !!v(e, t) 1353 }); 1354 return t && v(e, t) === n 1355 }) 1356 }
1356).filter(Boolean).concat(t); 1357 return Object(i.m)(o) 1358 }, v = s.a, m = o.a, g = function (t, e, n) { 1359 for (var r = 0; r < t.length; r++) e.call(n, t[r], r) 1360 }, b = (l.a, function (t) { 1361 return d()(t).replace(/\s/g, "-") 1362 }), y = function (t, n) { 1363 var r = []; 1364 return g(t, function (t, e) { 1365 return r.push(n(t, e)) 1366 }), r 1367 }, w = function (t) { 1368 return t.replace(/\b\w/g, function (t) { 1369 return t.toUpperCase() 1370 }) 1371 }, O = function () { 1372 return -1 !== window.navigator.userAgent.indexOf("MSIE ") 1373 }, x = { 1374 hyphenCase: b, capitalize: w, safeAttrName: function (t) { 1375 return {className: "class"}[t] || b(t) 1376 }, forEach: g, copyObj: function (t) { 1377 return window.JSON.parse(window.JSON.stringify(t)) 1378 }, map: y, subtract: function (e, t) { 1379 return t.filter(function (t) { 1380 return !~e.indexOf(t) 1381 }) 1382 }, indexOfNode: p, isInt: f, get: v, set: m, orderObjectsBy: h, isIE: O 1383 }; 1384 e.b = x 1385 }, function (t, e, n) { 1386 "use strict"; 1387 var r = n(21), p = n(2), a = n(16), l = n(4); 1388 1389 function s(t, e) { 1390 for (var n = 0; n < e.length; n++) { 1391 var r = e[n]; 1392 r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) 1393 } 1394 } 1395 1396 function c(t) { 1397 if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 1398 return t 1399 } 1400 1401 function u(t, e, n) { 1402 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 1403 } 1404 1405 var o = function (r) { 1406 var t, e, n, o, i; 1407 1408 function a() { 1409 for (var o, t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n]; 1410 return u(c(o = r.call.apply(r, [this].concat(e)) || this), "load", function (t) { 1411 return void 0 === t && (t = Object.create(null)), o.empty(), "string" == typeof t && (t = JSON.parse(t)), Object.entries(t).forEach(function (t) { 1412 var e = t[0], n = t[1]; 1413 return o.add(e, n) 1414 }), o.data 1415 }), u(c(o), "get", function (t) { 1416 return t ? Object(l.d)(o.data, t) : o.add() 1417 }), u(c(o), "add", function (t, e) { 1418 void 0 === e && (e = Object.create(null)); 1419 var n = t || Object(p.n)(), r = o.Component(Object.assign({}, e, {id: n})); 1420 return o.set(n, r), o.active = r 1421 }), u(c(o), "remove", function (t) { 1422 return Array.isArray(t) ? t.forEach(function (t) { 1423 o.get(t).remove() 1424 }) : o.get(t).remove(), o.data 1425 }), u(c(o), "delete", function (t) { 1426 return delete o.data[t], t 1427 }), u(c(o), "clearAll", function (e) { 1428 void 0 === e && (e = !0); 1429 var t = Object.values(o.data).map(function (t) { 1430 return t.empty(e) 1431 }); 1432 return Promise.all(t) 1433 }), u(c(o), "conditionMap", new Map), o 1434 } 1435 1436 return e = r, (t = a).prototype = Object.create(e.prototype), (t.prototype.constructor = t).__proto__ = e, n = a, (o = [{ 1437 key: "config", set: function (t) { 1438 return this.configVal = Object(p.h)(this.configVal, Object(p.b)(t)), this.configVal 1439 }, get: function () { 1440 return this.configVal 1441 } 1442 }]) && s(n.prototype, o), i && s(n, i), a 1443 }(r.a), d = n(13), h = n(0), i = n(14), v = n(1), f = n(7); 1444 1445 function m(t) { 1446 if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 1447 return t 1448 } 1449 1450 var g = function (i) { 1451 var t, e; 1452 1453 function n(t, e) { 1454 var n, r = (n = i.call(this, "stage", Object.assign({}, Object.freeze({children: []}), t), e) || this).createChildWrap(); 1455 return n.dom = h.a.create({attrs: {className: [v.H, "empty"], id: n.id}, children: r}), n.sortable = d.a.create(r, { 1456 animation: 150, 1457 fallbackClass: "row-moving", 1458 forceFallback: !0, 1459 group: {name: "stage", pull: !0, put: ["row", "column", "controls"]}, 1460 sort: !0, 1461 disabled: !1, 1462 onAdd: n.onAdd.bind(m(n)), 1463 onRemove: n.onRemove.bind(m(n)), 1464 onStart: function () { 1465 return b.active = m(n) 1466 }, 1467 onSort: n.onSort.bind(m(n)), 1468 draggable: "." + v.E, 1469 handle: ".item-handle" 1470 }), n 1471 } 1472 1473 e = i, (t = n).prototype = Object.create(e.prototype), (t.prototype.constructor = t).__proto__ = e; 1474 var r = n.prototype; 1475 return r.empty = function (e) { 1476 var n = this; 1477 return void 0 === e && (e = !0), new Promise(function (t) { 1478 e ? (n.dom.classList.add("removing-all-fields"), f.a.slideUp(n.dom, v.a, function () { 1479 t(i.prototype.empty.call(n, e)), n.dom.classList.remove("remov
1479ing-all-fields"), f.a.slideDown(n.dom, v.a) 1480 })) : t(i.prototype.empty.call(n)) 1481 }) 1482 }, r.onAdd = function () { 1483 for (var t, e = arguments.length, n = new Array(e), r = 0; r < e; r++) n[r] = arguments[r]; 1484 var o = (t = i.prototype.onAdd).call.apply(t, [this].concat(n)); 1485 o && "column" === o.name && o.parent.autoColumnWidths() 1486 }, n 1487 }(i.a); 1488 var b = new (function (e) { 1489 var t, n; 1490 1491 function r(t) { 1492 return e.call(this, "stages", t) || this 1493 } 1494 1495 return n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r.prototype.Component = function (t) { 1496 return new g(t) 1497 }, r 1498 }(o)), y = n(3), w = n.n(y), O = n(6), x = "custom-column-widths", j = "column-preset", E = "resizing-columns"; 1499 1500 function C(t) { 1501 var u = this, d = t.target.parentElement, f = d.nextSibling || d.previousSibling, e = d.closest("." + v.E), n = h.a.getStyle(e), r = parseFloat(n.paddingLeft) + parseFloat(n.paddingRight); 1502 if (t.target.removeEventListener("pointerdown", u), u.move = function (t) { 1503 var e = t.touches, n = t.type, r = t.clientX; 1504 "touchmove" === n && (r = e[0].clientX); 1505 var o = u.colStartWidth + r - u.startX, i = u.sibStartWidth - r + u.startX, a = parseFloat(Object(p.j)(o, u.rowWidth)), s = parseFloat(Object(p.j)(i, u.rowWidth)), 1506 c = Object(p.i)(a.toFixed(1)), l = Object(p.i)(s.toFixed(1)); 1507 d.dataset.colWidth = c, f.dataset.colWidth = l, d.style.width = c, f.style.width = l, u.resized = !0 1508 }, u.stop = function () { 1509 window.removeEventListener("pointermove", u.move), window.removeEventListener("pointerup", u.stop), window.removeEventListener("touchmove", u.move), window.removeEventListener("touchend", u.stop), u.resized && (!function (t, e) { 1510 var n = t.querySelector("." + j), r = n.querySelector("." + x), o = t.querySelector(".children").children, i = Object(l.i)(o, function (t) { 1511 return Object(p.j)(t.clientWidth, e).toFixed(1) 1512 }), a = i.join(","), s = i.join(" | "); 1513 r && S(t, n); 1514 var c = h.a.create({tag: "option", attrs: {className: x, value: a}, content: s}); 1515 n.add(c), n.value = a 1516 }(e, u.rowWidth), e.classList.remove(E), et.setAddress("columns." + d.id + ".config.width", d.dataset.colWidth), et.setAddress("columns." + f.id + ".config.width", f.dataset.colWidth), u.resized = !1) 1517 }, "touchstart" === t.type) { 1518 var o = t.touches[0]; 1519 u.startX = o.clientX 1520 } else u.startX = t.clientX; 1521 e.classList.add(E), d.className.replace(v.J, ""), f.className.replace(v.J, ""), u.colStartWidth = d.offsetWidth || h.a.getStyle(d, "width"), u.sibStartWidth = f.offsetWidth || h.a.getStyle(f, "width"), u.rowWidth = e.offsetWidth - r, window.addEventListener("pointerup", u.stop, !1), window.addEventListener("pointermove", u.move, !1), window.addEventListener("touchend", u.stop, !1), window.addEventListener("touchmove", u.move, !1) 1522 } 1523 1524 var S = function (t, e) { 1525 void 0 === e && (e = t.querySelector("." + j)); 1526 var n = e.querySelector("." + x); 1527 return n && e.removeChild(n) 1528 }; 1529 1530 function _(t, e) { 1531 for (var n = 0; n < e.length; n++) { 1532 var r = e[n]; 1533 r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) 1534 } 1535 } 1536 1537 function P(t) { 1538 if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 1539 return t 1540 } 1541 1542 function A(t, e, n) { 1543 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 1544 } 1545 1546 var D = function (o) { 1547 var t, e; 1548 1549 function n(t) { 1550 var s; 1551 A(P(s = o.call(this, "row", Object.assign({}, Object.freeze({ 1552 config: {fieldset: !1, legend: "", inputGroup: !1}, 1553 children: [], 1554 className: [v.E] 1555 }), t)) || this), "autoColumnWidths", function () { 1556 var t = s.children; 1557 if (t.length) { 1558 var o = parseFloat((100 / t.length).toFixed(1)) / 1; 1559 t.forEach(function (t) { 1560 t.removeClasses(v.J); 1561 var e = t.dom, n = Object(p.i)(o); 1562 t.set("config.width", n), e.style.width = n, e.dataset.colWidth = n; 1563 var r = setTimeout(function () { 1564 clearTimeout(r), t.refreshFieldPanels() 1565 }, v.b); 1566 document.dispatchEvent(O.a.columnResized) 1567 }), s.updateColumnPreset() 1568 } 1569 }), A(P(s), "updateColumnPreset", function () { 1570 var t = s.dom.querySelector(".column-preset"), e = t.parentElement, n = s.columnPresetControl(s.id), r = h.a.create(n); 1571 return e.replaceChild(r, t), n 1572 }), A(P(s), "setColumnWidths", function (n) { 1573 "custom" !== n && ("string" == typeof n && (n = n.split(",")), s.children.forEac
1573h(function (t, e) { 1574 t.setWidth(n[e] + "%"), t.refreshFieldPanels() 1575 })) 1576 }), A(P(s), "columnPresetControl", function () { 1577 var n = P(s), t = { 1578 tag: "select", attrs: {ariaLabel: w.a.get("defineColumnLayout"), className: "column-preset"}, action: { 1579 change: function (t) { 1580 var e = t.target.value; 1581 "custom" !== e && (S(s.dom), n.setColumnWidths(e)) 1582 } 1583 }, options: [] 1584 }, e = v.h, r = s.children, o = e.get(r.length - 1) || [], i = r.map(function (t) { 1585 var e = t.get("config.width") || ""; 1586 return Number(e.replace("%", "")).toFixed(1) 1587 }).join(","); 1588 if (o.length) { 1589 var a = o.slice(); 1590 !a.find(function (t) { 1591 return t.value === i 1592 }) && a.push({value: i, label: i.replace(/,/g, " | "), className: "custom-column-widths"}), t.options = a.map(function (t) { 1593 var e = Object.assign({}, t); 1594 return t.value === i && (e.selected = !0), e 1595 }) 1596 } 1597 return t 1598 }); 1599 var e = s.createChildWrap(); 1600 return s.dom = h.a.create({ 1601 tag: "li", 1602 className: [v.E, "empty"], 1603 dataset: {hoverTag: w.a.get("row"), editingHoverTag: w.a.get("editing.row")}, 1604 id: s.id, 1605 content: [s.getActionButtons(), s.editWindow, e] 1606 }), s.sortable = d.a.create(e, { 1607 animation: 150, 1608 fallbackClass: "column-moving", 1609 forceFallback: !0, 1610 group: {name: "row", pull: !0, put: ["row", "column", "controls"]}, 1611 sort: !0, 1612 disabled: !1, 1613 onRemove: s.onRemove.bind(P(s)), 1614 onEnd: s.onEnd.bind(P(s)), 1615 onAdd: s.onAdd.bind(P(s)), 1616 onSort: s.onSort.bind(P(s)), 1617 filter: ".resize-x-handle", 1618 draggable: "." + v.g, 1619 handle: ".item-handle" 1620 }), s.onRender(), s 1621 } 1622 1623 e = o, (t = n).prototype = Object.create(e.prototype), (t.prototype.constructor = t).__proto__ = e; 1624 var r, i, a, s = n.prototype; 1625 return s.onAdd = function () { 1626 for (var t, e = arguments.length, n = new Array(e), r = 0; r < e; r++) n[r] = arguments[r]; 1627 (t = o.prototype.onAdd).call.apply(t, [this].concat(n)), this.autoColumnWidths() 1628 }, s.onRemove = function () { 1629 for (var t, e = arguments.length, n = new Array(e), r = 0; r < e; r++) n[r] = arguments[r]; 1630 (t = o.prototype.onRemove).call.apply(t, [this].concat(n)), this.autoColumnWidths() 1631 }, r = n, (i = [{ 1632 key: "editWindow", get: function () { 1633 var n = this, r = this, t = {className: this.name + "-edit group-config"}, e = {tag: "label", content: w.a.get("row.settings.fieldsetWrap")}, o = { 1634 tag: "input", 1635 id: r.id + "-fieldset", 1636 attrs: {type: "checkbox", checked: this.get("config.fieldset"), ariaLabel: w.a.get("row.settings.fieldsetWrap.aria")}, 1637 action: { 1638 click: function (t) { 1639 var e = t.target.checked; 1640 n.set("config.fieldset", Boolean(e)) 1641 } 1642 } 1643 }, i = { 1644 tag: "input", 1645 id: this.id + "-inputGroup", 1646 attrs: {type: "checkbox", checked: this.get("config.inputGroup"), ariaLabel: w.a.get("row.settings.inputGroup.aria")}, 1647 action: { 1648 click: function (t) { 1649 var e = t.target.checked; 1650 return n.set("config.inputGroup", e) 1651 } 1652 }, 1653 config: {label: w.a.get("row.makeInputGroup"), description: w.a.get("row.makeInputGroupDesc")} 1654 }, a = { 1655 className: "input-group", 1656 content: [{tag: "span", className: "input-group-addon", content: o}, { 1657 tag: "input", 1658 attrs: {type: "text", ariaLabel: "Legend for fieldset", value: r.get("config.legend"), placeholder: "Legend"}, 1659 action: { 1660 input: function (t) { 1661 var e = t.target.value; 1662 return r.set("config.legend", e) 1663 } 1664 }, 1665 className: "" 1666 }] 1667 }, s = h.a.formGroup([e, a]), c = {tag: "label", content: w.a.get("defineColumnWidths"), className: "col-sm-4 form-control-label"}, l = { 1668 className: "col-sm-8", content: {className: "column-preset"}, action: { 1669 onRender: function (t) { 1670 n.updateColumnPreset() 1671 } 1672 } 1673 }, u = h.a.formGroup([c, l], "row"); 1674 return t.children = [i, h.a.create("hr"), s, h.a.create("hr"), u], t 1675 } 1676 }]) && _(r.prototype, i), a && _(r, a), n 1677 }(i.a); 1678 var k = {actionButtons: {buttons: ["handle", "edit", "clone", "remove"], disabled: []}}, N = new (function (n) { 1679 var t, e; 1680 1681 function r(t) { 1682 var e; 1683 return (e = n.call(this, "rows", t) || this).config = {all: k}, e 1684 } 1685 1686 return e = n, (t = r).prototype = Object.create(e.prototype), (t.prototype.constructor = t).__proto__ = e, r.prototype.Component = function (t) { 1687 return new D(t) 1688 }, r 1689 }(o)); 1690 1691 function T(t) { 1692 if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 1693 return t 1694 } 1695 1696 function z(t, e, n) { 1697 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 1698 } 1699 1700 var L = function () { 1701 return {className: "resize-x-handle", action: {pointerdown: C}, content: [h.a.icon("triangle-down"), h.a.icon("triangle-up")]} 1702 }, M = function () { 1703 return {className: "column-edit group-config"} 1704 }, H = function (o) { 1705 var t, e; 1706 1707 function n(t) { 1708 var e; 1709 z(T(e = o.call(this, "column", Object.assign({}, Object.freeze({config: {width: "100%"}, children: [], className: v.g}), t)) || this), "fieldOrderClasses", function () { 1710 var t = e.children.map(function (t) { 1711 return t.dom 1712 }); 1713 t.length && (e.removeClasses(["first-field", "last-field"]), t[0].classList.add("first-field"), t[t.length - 1].classList.add("last-field")) 1714 }), z(T(e), "refreshFieldPanels", function () {
1715 e.children.forEach(function (t) { 1716 return t.panels.nav.refresh() 1717 }) 1718 }), z(T(e), "setWidth", function (t) { 1719 return e.dom.dataset.colWidth = t, e.dom.style.width = t, e.set("config.width", t) 1720 }); 1721 var n = T(e), r = e.createChildWrap(); 1722 return e.dom = h.a.create({ 1723 tag: "li", className: [v.g, "empty"], dataset: {hoverTag: w.a.get("column")}, action: { 1724 mouseup: function (t) { 1725 var e = t.target.parentElement; 1726 e.resizing && (e.resizing = !1, e.parentElement.classList.remove("resizing-columns")) 1727 } 1728 }, id: e.id, content: [e.getActionButtons(), M(), L(), r] 1729 }), e.processConfig(e.dom), O.a.columnResized = new window.CustomEvent("columnResized", {detail: {column: e.dom, instance: n}}), e.sortable = d.a.create(r, { 1730 animation: 150, 1731 fallbackClass: "field-moving", 1732 forceFallback: !0, 1733 group: {name: "column", pull: !0, put: ["column", "controls"]}, 1734 sort: !0, 1735 disabled: !1, 1736 onEnd: e.onEnd.bind(T(e)), 1737 onAdd: e.onAdd.bind(T(e)), 1738 onSort: e.onSort.bind(T(e)), 1739 onRemove: e.onRemove.bind(T(e)), 1740 onMove: function (t) { 1741 t.from !== t.to && t.from.classList.remove("hovering-column") 1742 }, 1743 draggable: "." + v.z, 1744 handle: ".item-handle" 1745 }), e 1746 } 1747 1748 e = o, (t = n).prototype = Object.create(e.prototype), (t.prototype.constructor = t).__proto__ = e; 1749 var r = n.prototype; 1750 return r.processConfig = function (t) { 1751 var e = l.b.get(this.data, "config.width"); 1752 e && (t.dataset.colWidth = e, t.style.width = e, t.style.float = "left") 1753 }, r.addChild = function () { 1754 for (var t, e = arguments.length, n = new Array(e), r = 0; r < e; r++) n[r] = arguments[r]; 1755 (t = o.prototype.addChild).call.apply(t, [this].concat(n)), this.fieldOrderClasses() 1756 }, n 1757 }(i.a); 1758 var R = {actionButtons: {buttons: ["clone|copy|handle", "handle", "remove"], disabled: []}}, I = new (function (n) { 1759 var t, e; 1760 1761 function r(t) { 1762 var e; 1763 return (e = n.call(this, "columns", t) || this).config = {all: R}, e 1764 } 1765 1766 return e = n, (t = r).prototype = Object.create(e.prototype), (t.prototype.constructor = t).__proto__ = e, r.prototype.Component = function (t) { 1767 return new H(t) 1768 }, r 1769 }(o)), V = n(40); 1770 var B = { 1771 actionButtons: {buttons: ["handle", "edit", "clone", "remove"], disabled: []}, 1772 panels: {disabled: [], attrs: {disabled: ["type"], hideDisabled: !0, locked: []}, order: ["attrs", "options", "conditions"]}, 1773 label: {disableHTML: !1} 1774 }, F = new (function (i) { 1775 var t, e; 1776 1777 function n(t) { 1778 var r, e, n, o; 1779 return r = i.call(this, "fields", t) || this, e = function (t) { 1780 if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 1781 return t 1782 }(r), o = function (t) { 1783 var e = t && Object(l.d)(r.data, t); 1784 if (!e) { 1785 var n = a.a.get(t); 1786 n && (e = r.add(null, n.controlData)) 1787 } 1788 return e 1789 }, (n = "get") in e ? Object.defineProperty(e, n, {value: o, enumerable: !0, configurable: !0, writable: !0}) : e[n] = o, r.config = {all: B}, r 1790 } 1791 1792 return e = i, (t = n).prototype = Object.create(e.prototype), (t.prototype.constructor = t).__proto__ = e, n.prototype.Component = function (t) { 1793 return new V.a(t) 1794 }, n 1795 }(o)); 1796 var q = new (function (e) { 1797 var t, n; 1798 1799 function r(t) { 1800 return e.call(this, "externals", t) || this 1801 } 1802 1803 return n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r.prototype.Component = function (t) { 1804 return new i.a("external", t) 1805 }, r 1806 }(o)); 1807 1808 function W(t, e) { 1809 for (var n = 0; n < e.length; n++) { 1810 var r = e[n]; 1811 r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) 1812 } 1813 } 1814 1815 function U(t) { 1816 if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 1817 return t 1818 } 1819 1820 function G(t, e, n) { 1821 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 1822 } 1823 1824 n.d(e, "d", function () { 1825 return X 1826 }), n.d(e, "c", function () { 1827 return Y 1828 }), n.d(e, "a", function () { 1829 return $ 1830 }), n.d(e, "b", function () { 1831 return J 1832 }); 1833 var X = b, Y = N, $ = I, K = F, J = a.a, Z = q, Q = {id: Object(p.n)()}, tt = new (function (e) { 1834 var t, n; 1835 1836 function r(t) { 1837 var d; 1838 return G(U(d = e.call(this, "components") || this), "sessionFormData", function () { 1839 if (d.opts && d.opts.sessionStorage) return p.l.get(v.F) 1840 }), G(U(d), "load", function (t, e) { 1841 var n; 1842 void 0 === e && (e = d.opts || Object.create(null)), d.empty(), "string" == typeof t && (t = JSON.parse(t.replace(/<\/?[^>]+>/gi, ''))), d.opts = e; 1843 var r = Object.assign({}, d.sessionFormData(), t), o = r.stages, i = void 0 === o ? ((n = {})[Object(p.n)()] = {}, n) : o, a = r.rows, s = r.columns, c = r.fields, l = r.id, 1844 u = void 0 === l ? Object(p.n)() : l; 1845 console.log(r.columns); 1846 return d.set("id", u), d.add("stages", X.load(i)), d.add("rows", Y.load(a)), d.add("columns", $.load(s)), d.add("fields", K.load(c)), d.add("externals", Z.load(e.external)), Object.values(d.get("stages")).forEac
1846h(function (t) { 1847 return t.loadChildren() 1848 }), d.data 1849 }), d.opts = t, d.data = Q, d.disableEvents = !0, d.stages = X, d.rows = Y, d.columns = $, d.fields = K, d.controls = J, d.externals = Z, d 1850 } 1851 1852 n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n; 1853 var o, i, a, s = r.prototype; 1854 return s.flatList = function (t, e) { 1855 return void 0 === t && (t = this.data), void 0 === e && (e = Object.create(null)), Object.entries(t).reduce(function (r, t) { 1856 var o = t[0], e = t[1]; 1857 return "object" == typeof e && Object.entries(e).forEach(function (t) { 1858 var e = t[0], n = t[1]; 1859 r[o + "." + e] = n 1860 }), r 1861 }, e) 1862 }, s.setAddress = function (t, e) { 1863 var n = Array.isArray(t) ? t : t.split("."), r = n[0], o = n[1], i = n.slice(2), a = this[r.replace(/s?$/, "s")].get(o); 1864 return a && a.set(i, e), a 1865 }, s.getAddress = function (t) { 1866 if (Object(p.d)(t)) { 1867 var e = Array.isArray(t) ? t : t.split("."), n = e[0], r = e[1], o = e.slice(2), i = this[n.replace(/s?$/, "s")].get(r); 1868 return o.length ? i.get(o) : i 1869 } 1870 }, s.getConditionMap = function (t) { 1871 if (Object(p.d)(t)) { 1872 var e = t.split("."); 1873 return e.every(function (t) { 1874 return Boolean(t) 1875 }) && this[e[0]].conditionMap.get(e[1]) 1876 } 1877 }, s.setConditionMap = function (t, e) { 1878 if (Object(p.d)(t)) { 1879 var n = t.split("."); 1880 return n.every(function (t) { 1881 return Boolean(t) 1882 }) && this[n[0]].conditionMap.set(n[1], e) 1883 } 1884 }, s.removeConditionMap = function (t) { 1885 if (Object(p.d)(t)) { 1886 var e = t.split("."); 1887 return e.every(function (t) { 1888 return Boolean(t) 1889 }) && this[e[0]].conditionMap.delete(e[1]) 1890 } 1891 }, o = r, (i = [{ 1892 key: "json", get: function () { 1893 return window.JSON.stringify(this.formData) 1894 } 1895 }, { 1896 key: "formData", get: function () { 1897 return {id: this.get("id"), stages: b.getData(), rows: N.getData(), columns: I.getData(), fields: F.getData()} 1898 } 1899 }, { 1900 key: "config", set: function (t) { 1901 var e = t.stages, n = t.rows, r = t.columns, o = t.fields; 1902 X.config = e, Y.config = n, $.config = r, K.config = o 1903 } 1904 }]) && W(o.prototype, i), a && W(o, a), r 1905 }(r.a)), et = e.e = tt 1906 }, function (t, e, n) { 1907 "use strict"; 1908 var r = n(26), o = n.n(r), i = n(1), a = n(5); 1909 var s, c = "no-transition", l = { 1910 debug: !1, bubbles: !0, formeoLoaded: function (t) { 1911 }, onAdd: function () { 1912 }, onUpdate: function (t) { 1913 return d.opts.debug && console.log(t) 1914 }, onUpdateStage: function (t) { 1915 return d.opts.debug && console.log(t) 1916 }, onUpdateRow: function (t) { 1917 return d.opts.debug && console.log(t) 1918 }, onUpdateColumn: function (t) { 1919 return d.opts.debug && console.log(t) 1920 }, onUpdateField: function (t) { 1921 return d.opts.debug && console.log(t) 1922 }, onRender: function (t) { 1923 return d.opts.debug && console.log(t) 1924 }, onSave: function (t) { 1925 }, confirmClearAll: function (t) { 1926 window.confirm(t.confirmationMessage) && t.clearAllAction(t) 1927 } 1928 }, u = function (t, e) { 1929 void 0 === e && (e = i.t); 1930 var n = t.src, r = function (t, e) { 1931 if (null == t) return {}; 1932 var n, r, o = {}, i = Object.keys(t); 1933 for (r = 0; r < i.length; r++) n = i[r], 0 <= e.indexOf(n) || (o[n] = t[n]); 1934 return o 1935 }(t, ["src"]), o = new window.CustomEvent(e, {detail: r, bubbles: d.opts.debug || d.opts.bubbles}); 1936 return o.data = (n || document).dispatchEvent(o), o 1937 }, d = { 1938 init: function (t) { 1939 return this.opts = Object.assign({}, l, t), this 1940 }, formeoSaved: function (t) { 1941 return u(t, i.s) 1942 }, formeoUpdated: function (t) { 1943 return u(t, i.t) 1944 }, formeoCleared: function (t) { 1945 return u(t, i.p) 1946 }, formeoOnRender: function (t) { 1947 return u(t, i.r) 1948 }, formeoConditionUpdated: function (t) { 1949 return u(t, i.q) 1950 } 1951 }, f = o()(function () {
1952 d.opts.onUpdate({timeStamp: window.performance.now(), type: i.t, detail: a.e.formData}) 1953 }, i.b, {leading: !1}); 1954 document.addEventListener(i.t, f), document.addEventListener(i.x, function (t) { 1955 var e = t.timeStamp, n = t.type, r = t.detail; 1956 d.opts.onUpdate({timeStamp: e, type: n, detail: r}) 1957 }), document.addEventListener(i.w, function (t) { 1958 var e = t.timeStamp, n = t.type, r = t.detail; 1959 d.opts.onUpdate({timeStamp: e, type: n, detail: r}) 1960 }), document.addEventListener(i.u, function (t) { 1961 var e = t.timeStamp, n = t.type, r = t.detail; 1962 d.opts.onUpdate({timeStamp: e, type: n, detail: r}) 1963 }), document.addEventListener(i.v, function (t) { 1964 var e = t.timeStamp, n = t.type, r = t.detail; 1965 d.opts.onUpdate({timeStamp: e, type: n, detail: r}) 1966 }), document.addEventListener(i.r, function (t) { 1967 var e = t.timeStamp, n = t.type, r = t.detail; 1968 d.opts.onRender({timeStamp: e, type: n, detail: r}) 1969 }), document.addEventListener("confirmClearAll", function (t) { 1970 t = { 1971 timeStamp: t.timeStamp, 1972 type: t.type, 1973 confirmationMessage: t.detail.confirmationMessage, 1974 clearAllAction: t.detail.clearAllAction, 1975 btnCoords: t.detail.btnCoords 1976 }, d.opts.confirmClearAll(t) 1977 }), document.addEventListener(i.s, function (t) { 1978 var e = {timeStamp: t.timeStamp, type: t.type, formData: t.detail.formData}; 1979 d.opts.onSave(e) 1980 }), document.addEventListener("formeoLoaded", function (t) { 1981 d.opts.formeoLoaded(t.detail.formeo) 1982 }), window.addEventListener("resize", function () { 1983 s = s || window.requestAnimationFrame(function () { 1984 s = !1, Object.values(a.a.data).forEach(function (t) { 1985 t.dom.classList.add(c), a.b.dom.classList.add(c), a.b.panels.nav.refresh(), t.refreshFieldPanels(), o()(function () { 1986 t.dom.classList.remove(c), a.b.dom.classList.remove(c) 1987 }, 1e3, {leading: !1}) 1988 }) 1989 }) 1990 }), e.a = d 1991 }, function (t, e, n) { 1992 "use strict"; 1993 var c = { 1994 getStyle: function (t, e) { 1995 var n; 1996 return void 0 === e && (e = !1), window.getComputedStyle ? n = window.getComputedStyle(t, null) : t.currentStyle && (n = t.currentStyle), e ? n[e] : n 1997 }, fadeOut: function (n, t) { 1998 void 0 === t && (t = 250); 1999 var r = 1 / (t / 60); 2000 n.style.opacity = 1, function t() { 2001 var e = Number(n.style.opacity) - r; 2002 0 < e ? (n.style.opacity = e, window.requestAnimationFrame(t)) : n.remove() 2003 }() 2004 }, slideDown: function (r, t, o) { 2005 void 0 === t && (t = 250), void 0 === o && (o = !1), r.style.display = "block"; 2006 var e = c.getStyle(r), i = parseInt(e.height, 10), a = i / (t / 60); 2007 r.style.height = "0px", function t() { 2008 var e = parseFloat(r.style.height), n = e + a; 2009 e < i ? (r.style.height = n + "px", window.requestAnimationFrame(t)) : (r.style.height = "auto", o && o(r)) 2010 }() 2011 }, slideUp: function (n, t, r) { 2012 void 0 === t && (t = 250), void 0 === r && (r = !1); 2013 var e = c.getStyle(n), o = parseInt(e.height), i = e.overflow; 2014 n.style.overflow = "hidden", n.style.height = o + "px"; 2015 var a = e.minHeight; 2016 n.style.minHeight = "auto"; 2017 var s = parseFloat(o / (t / 60)).toFixed(2); 2018 !function t() { 2019 var e = parseInt(n.style.height, 10) - s; 2020 0 < e ? (n.style.height = e + "px", window.requestAnimationFrame(t)) : (n.style.overflow = i, n.style.display = "none", n.style.minHeight = a, delete n.style.height, r && r(n)) 2021 }() 2022 }, slideToggle: function (t, e, n) { 2023 void 0 === e && (e = 250), void 0 === n && (n = "none" === c.getStyle(t, "display")), n ? c.slideDown(t, e) : c.slideUp(t, e) 2024 } 2025 }; 2026 e.a = c 2027 }, function (t, e, n) { 2028 var r = n(55), o = n(78), i = r(function (t, e, n) { 2029 return t + (n ? " " : "") + o(e) 2030 }); 2031 t.exports = i 2032 }, function (t, e) { 2033 t.exports = function (t) { 2034 var e = typeof t; 2035 return null != t && ("object" == e || "function" == e) 2036 } 2037 }, function (t, e, n) { 2038 var r = n(62), o = "object" == typeof self && self && self.Object === Object && self, i = r || o || Function("return this")(); 2039 t.exports = i 2040 }, function (t, e, n) { 2041 "use strict"; 2042 n.d(e, "c", function () { 2043 return l 2044 }), n.d(e, "d", function () { 2045 return u 2046 }), n.d(e, "b", function () { 2047 return d 2048 }), n.d(e, "e", function () { 2049 return f 2050 }), n.d(e, "a", function () { 2051 return p 2052 }); 2053 var r = n(90), i = n.n(r), a = n(0), o = n(1), s = void 0, c = {js: [], css: []}, l = function (o) { 2054 return new Promise(function (t, e) { 2055 if (c.js.includes(o)) return t(o); 2056 var n = a.a.create({ 2057 tag: "script", attrs: {type: "text/javascript", async: !0, src: "//" + s.src}, action: { 2058 load: function () { 2059 c.js.push(o), t(o) 2060 }, error: function () { 2061 return e(new Error(s.src + " failed to load.")) 2062 } 2063 } 2064 }), r = document.getElementsByTagName("script")[0]; 2065 r.parentNode.insertBefore(n, r) 2066 }) 2067 }, u = function (t) { 2068 var e = (t = Array.isArray(t) ? t : [t]).map(function (r) { 2069 return new Promise(function (e, t) { 2070 if (c.css.includes(r)) return e(r); 2071 var n = a.a.create({ 2072 tag: "link", attrs: {rel: "preload", href: r, as: "style"}, action: { 2073 load: function t() { 2074 this.removeEventListener("load", t), this.rel = "stylesheet", c.css.push(r), e(r) 2075 }, error: function () { 2076 return t(new Error(s.src + " failed to load.")) 2077 } 2078 } 2079 }); 2080 document.head.appendChild(n) 2081 }) 2082 }); 2083 return Promise.all(e) 2084 }, d = function (t) { 2085 return ("string" == typeof t ? Promise.resolve(t) : t.text()).then(function (t) { 2086 var e = "formeo-sprite", n = document.getElementById(e); 2087 return n || (n = a.a.create({id: e, children: t, attrs: {hidden: !0, style: "display: none;"}}), document.body.insertBefore(n, document.body.childNodes[0])), n 2088 }) 2089 }, f = function (n) { 2090 var t = Array.isArray(n) ? o.D.filter(function (t) { 2091 var e = t.name; 2092 return -1 !== n.indexOf(e) 2093 }) : o.D; 2094 return Promise.all(t.map(function (t) { 2095 var e = t.src; 2096 return l(e) 2097 })) 2098 }, p = function (t, r, o) { 2099 return void 0 === o && (o = i.a), new Promise(function (e, n) { 2100 return fetch(t).then(function (t) { 2101 return e(r ? r(t) : t) 2102 }).catch(function (t) { 2103 return n(o(t)) 2104 }) 2105 }) 2106 } 2107 }, function (t, e) { 2108 t.exports = function (t) { 2109 return t 2110 } 2111 }, function (t, e, n) { 2112 "use strict"; 2113 2114 function B() { 2115 return (B = Object.assign || function (t) { 2116 for (var e = 1; e < arguments.length; e++) { 2117 var n = arguments[e]; 2118 for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]) 2119 } 2120 return t 2121 }).apply(this, arguments) 2122 } 2123 2124 function r(t) { 2125 if ("undefined" != typeof window && window.navigator) return !!navigator.userAgent.match(t) 2126 } 2127 2128 var w = r(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), O = r(/Edge/i), l = r(/firefox/i), u = r(/safari/i) && !r(/chrome/i) && !r(/android/i), o = r(/iP(ad|od|hone)/i), 2129 i = r(/chrome/i) && r(/android/i), a = {capture: !1, passive: !1}; 2130 2131 function d(t, e, n) { 2132 t.addEventListener(e, n, !w && a) 2133 } 2134 2135 function s(t, e, n) { 2136 t.removeEventListener(e, n, !w && a) 2137 } 2138 2139 function c(t, e) { 2140 if (e) { 2141 if (">" === e[0] && (e = e.substring(1)), t) try { 2142 if (t.matches) return t.matches(e);
vendor: 7,327 bytes, lines 2143-2321
2143 if (t.msMatchesSelector) return t.msMatchesSelector(e); 2144 if (t.webkitMatchesSelector) return t.webkitMatchesSelector(e) 2145 } catch (t) { 2146 return !1 2147 } 2148 return !1 2149 } 2150 } 2151 2152 function F(t, e, n, r) { 2153 if (t) { 2154 n = n || document; 2155 do { 2156 if (null != e && (">" === e[0] ? t.parentNode === n && c(t, e) : c(t, e)) || r && t === n) return t; 2157 if (t === n) break 2158 } while (t = (o = t).host && o !== document && o.host.nodeType ? o.host : o.parentNode) 2159 } 2160 var o; 2161 return null 2162 } 2163 2164 var f, p = /\s+/g; 2165 2166 function q(t, e, n) { 2167 if (t && e) if (t.classList) t.classList[n ? "add" : "remove"](e); else { 2168 var r = (" " + t.className + " ").replace(p, " ").replace(" " + e + " ", " "); 2169 t.className = (r + (n ? " " + e : "")).replace(p, " ") 2170 } 2171 } 2172 2173 function W(t, e, n) { 2174 var r = t && t.style; 2175 if (r) { 2176 if (void 0 === n) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(t, "") : t.currentStyle && (n = t.currentStyle), void 0 === e ? n : n[e]; 2177 e in r || -1 !== e.indexOf("webkit") || (e = "-webkit-" + e), r[e] = n + ("string" == typeof n ? "" : "px") 2178 } 2179 } 2180 2181 function m(t, e) { 2182 var n = ""; 2183 if ("string" == typeof t) n = t; else do { 2184 var r = W(t, "transform"); 2185 r && "none" !== r && (n = r + " " + n) 2186 } while (!e && (t = t.parentNode)); 2187 var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix; 2188 return o && new o(n) 2189 } 2190 2191 function h(t, e, n) { 2192 if (t) { 2193 var r = t.getElementsByTagName(e), o = 0, i = r.length; 2194 if (n) for (; o < i; o++) n(r[o], o); 2195 return r 2196 } 2197 return [] 2198 } 2199 2200 function k() { 2201 return document.scrollingElement || document.documentElement 2202 } 2203 2204 function U(t, e, n, r, o) { 2205 if (t.getBoundingClientRect || t === window) { 2206 var i, a, s, c, l, u, d; 2207 if (d = t !== window && t !== k() ? (a = (i = t.getBoundingClientRect()).top, s = i.left, c = i.bottom, l = i.right, u = i.height, i.width) : (s = a = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, window.innerWidth), (e || n) && t !== window && (o = o || t.parentNode, !w)) do { 2208 if (o && o.getBoundingClientRect && ("none" !== W(o, "transform") || n && "static" !== W(o, "position"))) { 2209 var f = o.getBoundingClientRect(); 2210 a -= f.top + parseInt(W(o, "border-top-width")), s -= f.left + parseInt(W(o, "border-left-width")), c = a + i.height, l = s + i.width; 2211 break 2212 } 2213 } while (o = o.parentNode); 2214 if (r && t !== window) { 2215 var p = m(o || t), h = p && p.a, v = p && p.d; 2216 p && (c = (a /= v) + (u /= v), l = (s /= h) + (d /= h)) 2217 } 2218 return {top: a, left: s, bottom: c, right: l, width: d, height: u} 2219 } 2220 } 2221 2222 function G(t, e, n) { 2223 for (var r = N(t, !0), o = U(t)[e]; r;) { 2224 var i = U(r)[n]; 2225 if (!("top" === n || "left" === n ? i <= o : o <= i)) return r; 2226 if (r === k()) break; 2227 r = N(r, !1) 2228 } 2229 return !1 2230 } 2231 2232 function v(t, e, n) { 2233 for (var r = 0, o = 0, i = t.children; o < i.length;) { 2234 if ("none" !== i[o].style.display && i[o] !== zt.ghost && i[o] !== zt.dragged && F(i[o], n.draggable, t, !1)) { 2235 if (r === e) return i[o]; 2236 r++ 2237 } 2238 o++ 2239 } 2240 return null 2241 } 2242 2243 function X(t, e) { 2244 for (var n = t.lastElementChild; n && (n === zt.ghost || "none" === W(n, "display") || e && !c(n, e));) n = n.previousElementSibling; 2245 return n || null 2246 } 2247 2248 function Y(t, e) { 2249 var n = 0; 2250 if (!t || !t.parentNode) return -1; 2251 for (; t = t.previousElementSibling;) "TEMPLATE" === t.nodeName.toUpperCase() || t === zt.clone || e && !c(t, e) || n++; 2252 return n 2253 } 2254 2255 function g(t) { 2256 var e = 0, n = 0, r = k(); 2257 if (t) do { 2258 var o = m(t); 2259 e += t.scrollLeft * o.a, n += t.scrollTop * o.d 2260 } while (t !== r && (t = t.parentNode)); 2261 return [e, n] 2262 } 2263 2264 function N(t, e) { 2265 if (!t || !t.getBoundingClientRect) return k(); 2266 var n = t, r = !1; 2267 do { 2268 if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) { 2269 var o = W(n); 2270 if (n.clientWidth < n.scrollWidth && ("auto" == o.overflowX || "scroll" == o.overflowX) || n.clientHeight < n.scrollHeight && ("auto" == o.overflowY || "scroll" == o.overflowY)) { 2271 if (!n.getBoundingClientRect || n === document.body) return k(); 2272 if (r || e) return n; 2273 r = !0 2274 } 2275 } 2276 } while (n = n.parentNode); 2277 return k() 2278 } 2279 2280 function b(t, e) { 2281 return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width) 2282 } 2283 2284 function y(e, n) { 2285 return function () { 2286 if (!f) { 2287 var t = arguments; 2288 1 === t.length ? e.call(this, t[0]) : e.apply(this, t), f = setTimeout(function () { 2289 f = void 0 2290 }, n) 2291 } 2292 } 2293 } 2294 2295 function $(t, e, n) { 2296 t.scrollLeft += e, t.scrollTop += n 2297 } 2298 2299 function x(t) { 2300 var e = window.Polymer, n = window.jQuery || window.Zepto; 2301 return e && e.dom ? e.dom(t).cloneNode(!0) : n ? n(t).clone(!0)[0] : t.cloneNode(!0) 2302 } 2303 2304 function j(t, e) { 2305 W(t, "position", "absolute"), W(t, "top", e.top), W(t, "left", e.left), W(t, "width", e.width), W(t, "height", e.height) 2306 } 2307 2308 function E(t) { 2309 W(t, "position", ""), W(t, "top", ""), W(t, "left", ""), W(t, "width", ""), W(t, "height", "") 2310 } 2311 2312 var K = "Sortable" + (new Date).getTime(), C = [], S = {initializeByDefault: !0}, _ = { 2313 mount: function (t) { 2314 for (var e in S) S.hasOwnProperty(e) && !(e in t) && (t[e] = S[e]); 2315 C.push(t) 2316 }, pluginEvent: function (e, n, r) { 2317 var t = this; 2318 this.eventCanceled = !1, r.cancel = function () { 2319 t.eventCanceled = !0 2320 }; 2321 var o = e + "Global";
vendor: 1,206 bytes, lines 2322-2342
2322 C.forEach(function (t) { 2323 n[t.pluginName] && (n[t.pluginName][o] && n[t.pluginName][o](B({sortable: n}, r)), n.options[t.pluginName] && n[t.pluginName][e] && n[t.pluginName][e](B({sortable: n}, r))) 2324 }) 2325 }, initializePlugins: function (r, o, i, t) { 2326 for (var e in C.forEach(function (t) { 2327 var e = t.pluginName; 2328 if (r.options[e] || t.initializeByDefault) { 2329 var n = new t(r, o, r.options); 2330 n.sortable = r, n.options = r.options, r[e] = n, Object.assign(i, n.defaults) 2331 } 2332 }), r.options) if (r.options.hasOwnProperty(e)) { 2333 var n = this.modifyOption(r, e, r.options[e]); 2334 void 0 !== n && (r.options[e] = n) 2335 } 2336 }, getEventProperties: function (e, n) { 2337 var r = {}; 2338 return C.forEach(function (t) { 2339 "function" == typeof t.eventProperties && Object.assign(r, t.eventProperties.call(n[t.pluginName], e)) 2340 }), r 2341 }, modifyOption: function (e, n, r) { 2342 var o;
2343 return C.forEach(function (t) { 2344 e[t.pluginName] && t.optionListeners && "function" == typeof t.optionListeners[n] && (o = t.optionListeners[n].call(e[t.pluginName], r)) 2345 }), o 2346 } 2347 }; 2348 2349 function P(t) { 2350 var e = t.sortable, n = t.rootEl, r = t.name, o = t.targetEl, i = t.cloneEl, a = t.toEl, s = t.fromEl, c = t.oldIndex, l = t.newIndex, u = t.oldDraggableIndex, d = t.newDraggableIndex, 2351 f = t.originalEvent, p = t.putSortable, h = t.extraEventProperties; 2352 if (e = e || n && n[K]) { 2353 var v, m = e.options, g = "on" + r.charAt(0).toUpperCase() + r.substr(1); 2354 !window.CustomEvent || w || O ? (v = document.createEvent("Event")).initEvent(r, !0, !0) : v = new CustomEvent(r, { 2355 bubbles: !0, 2356 cancelable: !0 2357 }), v.to = a || n, v.from = s || n, v.item = o || n, v.clone = i, v.oldIndex = c, v.newIndex = l, v.oldDraggableIndex = u, v.newDraggableIndex = d, v.originalEvent = f, v.pullMode = p ? p.lastPutMode : void 0; 2358 var b = B({}, h, _.getEventProperties(r, e)); 2359 for (var y in b) v[y] = b[y]; 2360 n && n.dispatchEvent(v), m[g] && m[g].call(e, v) 2361 } 2362 } 2363 2364 var J = function (t, e, n) { 2365 var r = void 0 === n ? {} : n, o = r.evt, i = function (t, e) { 2366 if (null == t) return {}; 2367 var n, r, o = {}, i = Object.keys(t); 2368 for (r = 0; r < i.length; r++) 0 <= e.indexOf(n = i[r]) || (o[n] = t[n]); 2369 return o 2370 }(r, ["evt"]); 2371 _.pluginEvent.bind(zt)(t, e, B({ 2372 dragEl: Q, 2373 parentEl: tt, 2374 ghostEl: et, 2375 rootEl: nt, 2376 nextEl: rt, 2377 lastDownEl: A, 2378 cloneEl: D, 2379 cloneHidden: T, 2380 dragStarted: lt, 2381 putSortable: st, 2382 activeSortable: zt.active, 2383 originalEvent: o, 2384 oldIndex: z, 2385 oldDraggableIndex: L, 2386 newIndex: ot, 2387 newDraggableIndex: it, 2388 hideGhostForTarget: At, 2389 unhideGhostForTarget: Dt, 2390 cloneNowHidden: function () { 2391 T = !0 2392 }, 2393 cloneNowShown: function () { 2394 T = !1 2395 }, 2396 dispatchSortableEvent: function (t) { 2397 Z({sortable: e, name: t, originalEvent: o}) 2398 } 2399 }, i)) 2400 }; 2401 2402 function Z(t) { 2403 P(B({putSortable: st, cloneEl: D, targetEl: Q, rootEl: nt, oldIndex: z, oldDraggableIndex: L, newIndex: ot, newDraggableIndex: it}, t)) 2404 } 2405 2406 var Q, tt, et, nt, rt, A, D, T, z, ot, L, it, at, st, M, H, R, I, V, ct, lt, ut, dt, ft, pt, ht = !1, vt = !1, mt = [], gt = !1, bt = !1, yt = [], wt = !1, Ot = [], 2407 xt = "undefined" != typeof document, jt = o, Et = O || w ? "cssFloat" : "float", Ct = xt && !i && !o && "draggable" in document.createElement("div"), St = function () { 2408 if (xt) { 2409 if (w) return !1; 2410 var t = document.createElement("x"); 2411 return t.style.cssText = "pointer-events:auto", "auto" === t.style.pointerEvents 2412 } 2413 }(), _t = function (t, e) { 2414 var n = W(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), o = v(t, 0, e), i = v(t, 1, e), 2415 a = o && W(o), s = i && W(i), c = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + U(o).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + U(i).width; 2416 return "flex" === n.display ? "column" === n.flexDirection || "column-reverse" === n.flexDirection ? "vertical" : "horizontal" : "grid" === n.display ? n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal" : o && a.float && "none" !== a.float ? !i || "both" !== s.clear && s.clear !== ("left" === a.float ? "left" : "right") ? "horizontal" : "vertical" : o && ("block" === a.display || "flex" === a.display || "table" === a.display || "grid" === a.display || r <= c && "none" === n[Et] || i && "none" === n[Et] && r < c + l) ? "vertical" : "horizontal" 2417 }, Pt = function (t) { 2418 function s(i, a) { 2419 return function (t, e, n, r) { 2420 if (null == i && (a || t.options.group.name && e.options.group.name && t.options.group.name === e.options.group.name)) return !0; 2421 if (null == i || !1 === i) return !1; 2422 if (a && "clone" === i) return i; 2423 if ("function" == typeof i) return s(i(t, e, n, r), a)(t, e, n, r); 2424 var o = (a ? t : e).options.group.name; 2425 return !0 === i || "string" == typeof i && i === o || i.join && -1 < i.indexOf(o) 2426 } 2427 } 2428 2429 var e = {}, n = t.group; 2430 n && "object" == typeof n || (n = {name: n}), e.name = n.name, e.checkPull = s(n.pull, !0), e.checkPut = s(n.put), e.revertClone = n.revertClone, t.group = e 2431 }, At = function () { 2432 !St && et && W(et, "display", "none") 2433 }, Dt = function () { 2434 !St && et && W(et, "display", "") 2435 }; 2436 xt && document.addEventListener("click", function (t) { 2437 if (vt) return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), vt = !1 2438 }, !0); 2439 var kt, Nt = function (t) { 2440 if (Q) { 2441 var e = (o = (t = t.touches ? t.touches[0] : t).clientX, i = t.clientY, mt.some(function (t) { 2442 if (!X(t)) { 2443 var e = U(t), n = t[K].options.emptyInsertThreshold; 2444 return n && o >= e.left - n && o <= e.right + n && i >= e.top - n && i <= e.bottom + n ? a = t : void 0 2445 } 2446 }), a); 2447 if (e) { 2448 var n = {}; 2449 for (var r in t) t.hasOwnProperty(r) && (n[r] = t[r]); 2450 n.target = n.rootEl = e, n.preventDefault = void 0, n.stopPropagation = void 0, e[K]._onDragOver(n) 2451 } 2452 } 2453 var o, i, a 2454 }, Tt = function (t) { 2455 Q && Q.parentNode[K]._isOutsideThisEl(t.target) 2456 }; 2457 2458 function zt(t, e) { 2459 if (!t || !t.nodeType || 1 !== t.nodeType) throw"Sortable: `el` must be an HTMLElement, not " + {}.toString.call(t); 2460 this.el = t, this.options = e = Object.assign({}, e), t[K] = this; 2461 var n, r, o = { 2462 group: null, 2463 sort: !0, 2464 disabled: !1, 2465 store: null, 2466 handle: null,
vendor: 18,031 bytes, lines 2467-2698
2467 draggable: /^[uo]l$/i.test(t.nodeName) ? ">li" : ">*", 2468 swapThreshold: 1, 2469 invertSwap: !1, 2470 invertedSwapThreshold: null, 2471 removeCloneOnHide: !0, 2472 direction: function () { 2473 return _t(t, this.options) 2474 }, 2475 ghostClass: "sortable-ghost", 2476 chosenClass: "sortable-chosen", 2477 dragClass: "sortable-drag", 2478 ignore: "a, img", 2479 filter: null, 2480 preventOnFilter: !0, 2481 animation: 0, 2482 easing: null, 2483 setData: function (t, e) { 2484 t.setData("Text", e.textContent) 2485 }, 2486 dropBubble: !1, 2487 dragoverBubble: !1, 2488 dataIdAttr: "data-id", 2489 delay: 0, 2490 delayOnTouchOnly: !1, 2491 touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1, 2492 forceFallback: !1, 2493 fallbackClass: "sortable-fallback", 2494 fallbackOnBody: !1, 2495 fallbackTolerance: 0, 2496 fallbackOffset: {x: 0, y: 0}, 2497 supportPointer: !1 !== zt.supportPointer && "PointerEvent" in window, 2498 emptyInsertThreshold: 5 2499 }; 2500 for (var i in _.initializePlugins(this, t, o), o) !(i in e) && (e[i] = o[i]); 2501 for (var a in Pt(e), this) "_" === a.charAt(0) && "function" == typeof this[a] && (this[a] = this[a].bind(this)); 2502 this.nativeDraggable = !e.forceFallback && Ct, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? d(t, "pointerdown", this._onTapStart) : (d(t, "mousedown", this._onTapStart), d(t, "touchstart", this._onTapStart)), this.nativeDraggable && (d(t, "dragover", this), d(t, "dragenter", this)), mt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), Object.assign(this, (r = [], { 2503 captureAnimationState: function () { 2504 r = [], this.options.animation && [].slice.call(this.el.children).forEach(function (t) { 2505 if ("none" !== W(t, "display") && void 0 !== t) { 2506 r.push({target: t, rect: U(t)}); 2507 var e = B({}, r[r.length - 1].rect); 2508 if (t.thisAnimationDuration) { 2509 var n = m(t, !0); 2510 n && (e.top -= n.f, e.left -= n.e) 2511 } 2512 t.fromRect = e 2513 } 2514 }) 2515 }, addAnimationState: function (t) { 2516 r.push(t) 2517 }, removeAnimationState: function (t) { 2518 r.splice(function (t, e) { 2519 for (var n in t) if (t.hasOwnProperty(n)) for (var r in e) if (e.hasOwnProperty(r) && e[r] === t[n][r]) return Number(n); 2520 return -1 2521 }(r, {target: t}), 1) 2522 }, animateAll: function (t) { 2523 var p = this; 2524 if (!this.options.animation) return clearTimeout(n), void ("function" == typeof t && t()); 2525 var h = !1, v = 0; 2526 r.forEach(function (t) { 2527 var e, n, r, o, i = 0, a = t.target, s = a.fromRect, c = U(a), l = a.prevFromRect, u = a.prevToRect, d = t.rect, f = m(a, !0); 2528 f && (c.top -= f.f, c.left -= f.e), a.toRect = c, a.thisAnimationDuration && b(l, c) && !b(s, c) && (d.top - c.top) / (d.left - c.left) == (s.top - c.top) / (s.left - c.left) && (e = d, n = l, r = u, o = p.options, i = Math.sqrt(Math.pow(n.top - e.top, 2) + Math.pow(n.left - e.left, 2)) / Math.sqrt(Math.pow(n.top - r.top, 2) + Math.pow(n.left - r.left, 2)) * o.animation), b(c, s) || (a.prevFromRect = s, a.prevToRect = c, i || (i = p.options.animation), p.animate(a, d, c, i)), i && (h = !0, v = Math.max(v, i), clearTimeout(a.animationResetTimer), a.animationResetTimer = setTimeout(function () { 2529 a.animationTime = 0, a.prevFromRect = null, a.fromRect = null, a.prevToRect = null, a.thisAnimationDuration = null 2530 }, i), a.thisAnimationDuration = i) 2531 }), clearTimeout(n), h ? n = setTimeout(function () { 2532 "function" == typeof t && t() 2533 }, v) : "function" == typeof t && t(), r = [] 2534 }, animate: function (t, e, n, r) { 2535 if (r) { 2536 W(t, "transition", ""), W(t, "transform", ""); 2537 var o = m(this.el), i = (e.left - n.left) / (o && o.a || 1), a = (e.top - n.top) / (o && o.d || 1); 2538 t.animatingX = !!i, t.animatingY = !!a, W(t, "transform", "translate3d(" + i + "px," + a + "px,0)"), this.forRepaintDummy = t.offsetWidth, W(t, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), W(t, "transform", "translate3d(0,0,0)"), "number" == typeof t.animated && clearTimeout(t.animated), t.animated = setTimeout(function () { 2539 W(t, "transition", ""), W(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1 2540 }, r) 2541 } 2542 } 2543 })) 2544 } 2545 2546 function Lt(t, e, n, r, o, i, a, s) { 2547 var c, l, u = t[K], d = u.options.onMove; 2548 return !window.CustomEvent || w || O ? (c = document.createEvent("Event")).initEvent("move", !0, !0) : c = new CustomEvent("move", { 2549 bubbles: !0, 2550 cancelable: !0 2551 }), c.to = e, c.from = t, c.dragged = n, c.draggedRect = r, c.related = o || e, c.relatedRect = i || U(e), c.willInsertAfter = s, c.originalEvent = a, t.dispatchEvent(c), d && (l = d.call(u, c, a)), l 2552 } 2553 2554 function Mt(t) { 2555 t.draggable = !1 2556 } 2557 2558 function Ht() { 2559 wt = !1 2560 } 2561 2562 function Rt(t) { 2563 for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, r = 0; n--;) r += e.charCodeAt(n); 2564 return r.toString(36) 2565 } 2566 2567 function It(t) { 2568 return setTimeout(t, 0) 2569 } 2570 2571 function Vt(t) { 2572 return clearTimeout(t) 2573 } 2574 2575 zt.prototype = { 2576 constructor: zt, _isOutsideThisEl: function (t) { 2577 this.el.contains(t) || t === this.el || (ut = null) 2578 }, _getDirection: function (t, e) { 2579 return "function" == typeof this.options.direction ? this.options.direction.call(this, t, e, Q) : this.options.direction 2580 }, _onTapStart: function (e) { 2581 if (e.cancelable) { 2582 var n = this, r = this.el, t = this.options, o = t.preventOnFilter, i = e.type, a = e.touches && e.touches[0] || e.pointerType && "touch" === e.pointerType && e, 2583 s = (a || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = t.filter; 2584 if (function (t) { 2585 Ot.length = 0; 2586 for (var e = t.getElementsByTagName("input"), n = e.length; n--;) { 2587 var r = e[n]; 2588 r.checked && Ot.push(r) 2589 } 2590 }(r), !Q && !(/mousedown|pointerdown/.test(i) && 0 !== e.button || t.disabled) && !c.isContentEditable && (this.nativeDraggable || !u || !s || "SELECT" !== s.tagName.toUpperCase()) && !((s = F(s, t.draggable, r, !1)) && s.animated || A === s)) { 2591 if (z = Y(s), L = Y(s, t.draggable), "function" == typeof l) { 2592 if (l.call(this, e, s, this)) return Z({ 2593 sortable: n, 2594 rootEl: c, 2595 name: "filter", 2596 targetEl: s, 2597 toEl: r, 2598 fromEl: r 2599 }), J("filter", n, {evt: e}), void (o && e.cancelable && e.preventDefault()) 2600 } else if (l && (l = l.split(",").some(function (t) { 2601 if (t = F(c, t.trim(), r, !1)) return Z({sortable: n, rootEl: t, name: "filter", targetEl: s, fromEl: r, toEl: r}), J("filter", n, {evt: e}), !0 2602 }))) return void (o && e.cancelable && e.preventDefault()); 2603 t.handle && !F(c, t.handle, r, !1) || this._prepareDragStart(e, a, s) 2604 } 2605 } 2606 }, _prepareDragStart: function (t, e, n) { 2607 var r, o = this, i = o.el, a = o.options, s = i.ownerDocument; 2608 if (n && !Q && n.parentNode === i) { 2609 var c = U(n); 2610 if (nt = i, tt = (Q = n).parentNode, rt = Q.nextSibling, A = n, at = a.group, V = (M = { 2611 target: zt.dragged = Q, 2612 clientX: (e || t).clientX, 2613 clientY: (e || t).clientY 2614 }).clientX - c.left, ct = M.clientY - c.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, Q.style["will-change"] = "all", r = function () { 2615 J("delayEnded", o, {evt: t}), zt.eventCanceled ? o._onDrop() : (o._disableDelayedDragEvents(), !l && o.nativeDraggable && (Q.draggable = !0), o._triggerDragStart(t, e), Z({ 2616 sortable: o, 2617 name: "choose", 2618 originalEvent: t 2619 }), q(Q, a.chosenClass, !0)) 2620 }, a.ignore.split(",").forEach(function (t) { 2621 h(Q, t.trim(), Mt) 2622 }), d(s, "dragover", Nt), d(s, "mousemove", Nt), d(s, "touchmove", Nt), d(s, "mouseup", o._onDrop), d(s, "touchend", o._onDrop), d(s, "touchcancel", o._onDrop), l && this.nativeDraggable && (this.options.touchStartThreshold = 4, Q.draggable = !0), J("delayStart", this, {evt: t}), !a.delay || a.delayOnTouchOnly && !e || this.nativeDraggable && (O || w)) r(); else { 2623 if (zt.eventCanceled) return void this._onDrop(); 2624 d(s, "mouseup", o._disableDelayedDrag), d(s, "touchend", o._disableDelayedDrag), d(s, "touchcancel", o._disableDelayedDrag), d(s, "mousemove", o._delayedDragTouchMoveHandler), d(s, "touchmove", o._delayedDragTouchMoveHandler), a.supportPointer && d(s, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(r, a.delay) 2625 } 2626 } 2627 }, _delayedDragTouchMoveHandler: function (t) { 2628 var e = t.touches ? t.touches[0] : t; 2629 Math.max(Math.abs(e.clientX - this._lastX), Math.abs(e.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag() 2630 }, _disableDelayedDrag: function () { 2631 Q && Mt(Q), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents() 2632 }, _disableDelayedDragEvents: function () { 2633 var t = this.el.ownerDocument; 2634 s(t, "mouseup", this._disableDelayedDrag), s(t, "touchend", this._disableDelayedDrag), s(t, "touchcancel", this._disableDelayedDrag), s(t, "mousemove", this._delayedDragTouchMoveHandler), s(t, "touchmove", this._delayedDragTouchMoveHandler), s(t, "pointermove", this._delayedDragTouchMoveHandler) 2635 }, _triggerDragStart: function (t, e) { 2636 e = e || "touch" == t.pointerType && t, !this.nativeDraggable || e ? d(document, this.options.supportPointer ? "pointermove" : e ? "touchmove" : "mousemove", this._onTouchMove) : (d(Q, "dragend", this), d(nt, "dragstart", this._onDragStart)); 2637 try { 2638 document.selection ? It(function () { 2639 document.selection.empty() 2640 }) : window.getSelection().removeAllRanges() 2641 } catch (t) { 2642 } 2643 }, _dragStarted: function (t, e) { 2644 if (ht = !1, nt && Q) { 2645 J("dragStarted", this, {evt: e}), this.nativeDraggable && d(document, "dragover", Tt); 2646 var n = this.options; 2647 !t && q(Q, n.dragClass, !1), q(Q, n.ghostClass, !0), zt.active = this, t && this._appendGhost(), Z({sortable: this, name: "start", originalEvent: e}) 2648 } else this._nulling() 2649 }, _emulateDragOver: function () { 2650 if (H) { 2651 this._lastX = H.clientX, this._lastY = H.clientY, At(); 2652 for (var t = document.elementFromPoint(H.clientX, H.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(H.clientX, H.clientY)) !== e;) e = t; 2653 if (Q.parentNode[K]._isOutsideThisEl(t), e) do { 2654 if (e[K] && e[K]._onDragOver({clientX: H.clientX, clientY: H.clientY, target: t, rootEl: e}) && !this.options.dragoverBubble) break; 2655 t = e 2656 } while (e = e.parentNode); 2657 Dt() 2658 } 2659 }, _onTouchMove: function (t) { 2660 if (M) { 2661 var e = this.options, n = e.fallbackTolerance, r = e.fallbackOffset, o = t.touches ? t.touches[0] : t, i = et && m(et, !0), a = et && i && i.a, s = et && i && i.d, 2662 c = jt && pt && g(pt), l = (o.clientX - M.clientX + r.x) / (a || 1) + (c ? c[0] - yt[0] : 0) / (a || 1), 2663 u = (o.clientY - M.clientY + r.y) / (s || 1) + (c ? c[1] - yt[1] : 0) / (s || 1); 2664 if (!zt.active && !ht) { 2665 if (n && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < n) return; 2666 this._onDragStart(t, !0) 2667 } 2668 if (et) { 2669 i ? (i.e += l - (R || 0), i.f += u - (I || 0)) : i = {a: 1, b: 0, c: 0, d: 1, e: l, f: u}; 2670 var d = "matrix(" + i.a + "," + i.b + "," + i.c + "," + i.d + "," + i.e + "," + i.f + ")"; 2671 W(et, "webkitTransform", d), W(et, "mozTransform", d), W(et, "msTransform", d), W(et, "transform", d), R = l, I = u, H = o 2672 } 2673 t.cancelable && t.preventDefault() 2674 } 2675 }, _appendGhost: function () { 2676 if (!et) { 2677 var t = this.options.fallbackOnBody ? document.body : nt, e = U(Q, !0, jt, !0, t), n = this.options; 2678 if (jt) { 2679 for (pt = t; "static" === W(pt, "position") && "none" === W(pt, "transform") && pt !== document;) pt = pt.parentNode; 2680 pt !== document.body && pt !== document.documentElement ? (pt === document && (pt = k()), e.top += pt.scrollTop, e.left += pt.scrollLeft) : pt = k(), yt = g(pt) 2681 } 2682 q(et = Q.cloneNode(!0), n.ghostClass, !1), q(et, n.fallbackClass, !0), q(et, n.dragClass, !0), W(et, "transition", ""), W(et, "transform", ""), W(et, "box-sizing", "border-box"), W(et, "margin", 0), W(et, "top", e.top), W(et, "left", e.left), W(et, "width", e.width), W(et, "height", e.height), W(et, "opacity", "0.8"), W(et, "position", jt ? "absolute" : "fixed"), W(et, "zIndex", "100000"), W(et, "pointerEvents", "none"), zt.ghost = et, t.appendChild(et), W(et, "transform-origin", V / parseInt(et.style.width) * 100 + "% " + ct / parseInt(et.style.height) * 100 + "%") 2683 } 2684 }, _onDragStart: function (t, e) { 2685 var n = this, r = t.dataTransfer, o = n.options; 2686 J("dragStart", this, {evt: t}), zt.eventCanceled ? this._onDrop() : (J("setupClone", this), zt.eventCanceled || ((D = x(Q)).draggable = !1, D.style["will-change"] = "", this._hideClone(), q(D, this.options.chosenClass, !1), zt.clone = D), n.cloneId = It(function () { 2687 J("clone", n), zt.eventCanceled || (n.options.removeCloneOnHide || nt.insertBefore(D, Q), n._hideClone(), Z({sortable: n, name: "clone"})) 2688 }), !e && q(Q, o.dragClass, !0), e ? (vt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (s(document, "mouseup", n._onDrop), s(document, "touchend", n._onDrop), s(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", o.setData && o.setData.call(n, r, Q)), d(document, "drop", n), W(Q, "transform", "translateZ(0)")), ht = !0, n._dragStartId = It(n._dragStarted.bind(n, e, t)), d(document, "selectstart", n), lt = !0, u && W(document.body, "user-select", "none")) 2689 }, _onDragOver: function (n) { 2690 var r, o, i, a, t, e, s, c, l, u, d, f, p, h = this.el, v = n.target, m = this.options, g = m.group, b = zt.active, y = at === g, w = m.sort, O = st || b, x = this, j = !1; 2691 if (!wt) { 2692 if (void 0 !== n.preventDefault && n.cancelable && n.preventDefault(), v = F(v, m.draggable, h, !0), H("dragOver"), zt.eventCanceled) return j; 2693 if (Q.contains(n.target) || v.animated && v.animatingX && v.animatingY || x._ignoreWhileAnimating === v) return I(!1); 2694 if (vt = !1, b && !m.disabled && (y ? w || (i = !nt.contains(Q)) : st === this || (this.lastPutMode = at.checkPull(this, b, Q, n)) && g.checkPut(this, b, Q, n))) { 2695 if (a = "vertical" === this._getDirection(n, v), r = U(Q), H("dragOverValid"), zt.eventCanceled) return j; 2696 if (i) return tt = nt, R(), this._hideClone(), H("revert"), zt.eventCanceled || (rt ? nt.insertBefore(Q, rt) : nt.appendChild(Q)), I(!0); 2697 var E = X(h, m.draggable); 2698 if (E && (u = n, d = a, p = U(X((f = this).el, f.options.draggable)), !(d ? u.clientX >
vendor: 7,482 bytes, lines 2698-2787
2698 p.right + 10 || u.clientX <= p.right && u.clientY > p.bottom && u.clientX >= p.left : u.clientX > p.right && u.clientY > p.top || u.clientX <= p.right && u.clientY > p.bottom + 10) || E.animated)) { 2699 if (v.parentNode === h) { 2700 o = U(v); 2701 var C, S, _, P = Q.parentNode !== h, 2702 A = (t = Q.animated && Q.toRect || r, e = v.animated && v.toRect || o, c = (s = a) ? t.left : t.top, l = s ? e.left : e.top, !(c === l || (s ? t.right : t.bottom) === (s ? e.right : e.bottom) || c + (s ? t.width : t.height) / 2 === l + (s ? e.width : e.height) / 2)), 2703 D = a ? "top" : "left", k = G(v, "top", "top") || G(Q, "top", "top"), N = k ? k.scrollTop : void 0; 2704 if (ut !== v && (S = o[D], gt = !1, bt = !A && m.invertSwap || P), 0 !== (C = function (t, e, n, r, o, i, a, s) { 2705 var c, l = r ? t.clientY : t.clientX, u = r ? n.height : n.width, d = r ? n.top : n.left, f = r ? n.bottom : n.right, p = !1; 2706 if (!a) if (s && ft < u * o) { 2707 if (!gt && (1 === dt ? d + u * i / 2 < l : l < f - u * i / 2) && (gt = !0), gt) p = !0; else if (1 === dt ? l < d + ft : f - ft < l) return -dt 2708 } else if (d + u * (1 - o) / 2 < l && l < f - u * (1 - o) / 2) return c = e, Y(Q) < Y(c) ? 1 : -1; 2709 return (p = p || a) && (l < d + u * i / 2 || f - u * i / 2 < l) ? d + u / 2 < l ? 1 : -1 : 0 2710 }(n, v, o, a, A ? 1 : m.swapThreshold, null == m.invertedSwapThreshold ? m.swapThreshold : m.invertedSwapThreshold, bt, ut === v))) for (var T = Y(Q); (_ = tt.children[T -= C]) && ("none" === W(_, "display") || _ === et);) ; 2711 if (0 === C || _ === v) return I(!1); 2712 dt = C; 2713 var z = (ut = v).nextElementSibling, L = !1, M = Lt(nt, h, Q, r, v, o, n, L = 1 === C); 2714 if (!1 !== M) return 1 !== M && -1 !== M || (L = 1 === M), wt = !0, setTimeout(Ht, 30), R(), L && !z ? h.appendChild(Q) : v.parentNode.insertBefore(Q, L ? z : v), k && $(k, 0, N - k.scrollTop), tt = Q.parentNode, void 0 === S || bt || (ft = Math.abs(S - U(v)[D])), V(), I(!0) 2715 } 2716 } else { 2717 if (E === Q) return I(!1); 2718 if (E && h === n.target && (v = E), v && (o = U(v)), !1 !== Lt(nt, h, Q, r, v, o, n, !!v)) return R(), h.appendChild(Q), tt = h, V(), I(!0) 2719 } 2720 if (h.contains(Q)) return I(!1) 2721 } 2722 return !1 2723 } 2724 2725 function H(t, e) { 2726 J(t, x, B({ 2727 evt: n, 2728 isOwner: y, 2729 axis: a ? "vertical" : "horizontal", 2730 revert: i, 2731 dragRect: r, 2732 targetRect: o, 2733 canSort: w, 2734 fromSortable: O, 2735 target: v, 2736 completed: I, 2737 onMove: function (t, e) { 2738 return Lt(nt, h, Q, r, t, U(t), n, e) 2739 }, 2740 changed: V 2741 }, e)) 2742 } 2743 2744 function R() { 2745 H("dragOverAnimationCapture"), x.captureAnimationState(), x !== O && O.captureAnimationState() 2746 } 2747 2748 function I(t) { 2749 return H("dragOverCompleted", {insertion: t}), t && (y ? b._hideClone() : b._showClone(x), x !== O && (q(Q, st ? st.options.ghostClass : b.options.ghostClass, !1), q(Q, m.ghostClass, !0)), st !== x && x !== zt.active ? st = x : x === zt.active && st && (st = null), O === x && (x._ignoreWhileAnimating = v), x.animateAll(function () { 2750 H("dragOverAnimationComplete"), x._ignoreWhileAnimating = null 2751 }), x !== O && (O.animateAll(), O._ignoreWhileAnimating = null)), (v === Q && !Q.animated || v === h && !v.animated) && (ut = null), m.dragoverBubble || n.rootEl || v === document || (Q.parentNode[K]._isOutsideThisEl(n.target), !t && Nt(n)), !m.dragoverBubble && n.stopPropagation && n.stopPropagation(), j = !0 2752 } 2753 2754 function V() { 2755 ot = Y(Q), it = Y(Q, m.draggable), Z({sortable: x, name: "change", toEl: h, newIndex: ot, newDraggableIndex: it, originalEvent: n}) 2756 } 2757 }, _ignoreWhileAnimating: null, _offMoveEvents: function () { 2758 s(document, "mousemove", this._onTouchMove), s(document, "touchmove", this._onTouchMove), s(document, "pointermove", this._onTouchMove), s(document, "dragover", Nt), s(document, "mousemove", Nt), s(document, "touchmove", Nt) 2759 }, _offUpEvents: function () { 2760 var t = this.el.ownerDocument; 2761 s(t, "mouseup", this._onDrop), s(t, "touchend", this._onDrop), s(t, "pointerup", this._onDrop), s(t, "touchcancel", this._onDrop), s(document, "selectstart", this) 2762 }, _onDrop: function (t) { 2763 var e = this.el, n = this.options; 2764 ot = Y(Q), it = Y(Q, n.draggable), J("drop", this, {evt: t}), tt = Q && Q.parentNode, ot = Y(Q), it = Y(Q, n.draggable), zt.eventCanceled || (gt = bt = ht = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Vt(this.cloneId), Vt(this._dragStartId), this.nativeDraggable && (s(document, "drop", this), s(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), u && W(document.body, "user-select", ""), W(Q, "transform", ""), t && (lt && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), et && et.parentNode && et.parentNode.removeChild(et), (nt === tt || st && "clone" !== st.lastPutMode) && D && D.parentNode && D.parentNode.removeChild(D), Q && (this.nativeDraggable && s(Q, "dragend", this), Mt(Q), Q.style["will-change"] = "", lt && !ht && q(Q, st ? st.options.ghostClass : this.options.ghostClass, !1), q(Q, this.options.chosenClass, !1), Z({ 2765 sortable: this, 2766 name: "unchoose", 2767 toEl: tt, 2768 newIndex: null, 2769 newDraggableIndex: null, 2770 originalEvent: t 2771 }), nt !== tt ? (0 <= ot && (Z({rootEl: tt, name: "add", toEl: tt, fromEl: nt, originalEvent: t}), Z({sortable: this, name: "remove", toEl: tt, originalEvent: t}), Z({ 2772 rootEl: tt, 2773 name: "sort", 2774 toEl: tt, 2775 fromEl: nt, 2776 originalEvent: t 2777 }), Z({sortable: this, name: "sort", toEl: tt, originalEvent: t})), st && st.save()) : ot !== z && 0 <= ot && (Z({ 2778 sortable: this, 2779 name: "update", 2780 toEl: tt, 2781 originalEvent: t 2782 }), Z({sortable: this, name: "sort", toEl: tt, originalEvent: t})), zt.active && (null != ot && -1 !== ot || (ot = z, it = L), Z({ 2783 sortable: this, 2784 name: "end", 2785 toEl: tt, 2786 originalEvent: t 2787 }
vendor: 4,412 bytes, lines 2787-2861
2787), this.save())))), this._nulling() 2788 }, _nulling: function () { 2789 J("nulling", this), nt = Q = tt = et = rt = D = A = T = M = H = lt = ot = it = z = L = ut = dt = st = at = zt.dragged = zt.ghost = zt.clone = zt.active = null, Ot.forEach(function (t) { 2790 t.checked = !0 2791 }), Ot.length = R = I = 0 2792 }, handleEvent: function (t) { 2793 switch (t.type) { 2794 case"drop": 2795 case"dragend": 2796 this._onDrop(t); 2797 break; 2798 case"dragenter": 2799 case"dragover": 2800 Q && (this._onDragOver(t), (e = t).dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault()); 2801 break; 2802 case"selectstart": 2803 t.preventDefault() 2804 } 2805 var e 2806 }, toArray: function () { 2807 for (var t, e = [], n = this.el.children, r = 0, o = n.length, i = this.options; r < o; r++) F(t = n[r], i.draggable, this.el, !1) && e.push(t.getAttribute(i.dataIdAttr) || Rt(t)); 2808 return e 2809 }, sort: function (t) { 2810 var r = {}, o = this.el; 2811 this.toArray().forEach(function (t, e) { 2812 var n = o.children[e]; 2813 F(n, this.options.draggable, o, !1) && (r[t] = n) 2814 }, this), t.forEach(function (t) { 2815 r[t] && (o.removeChild(r[t]), o.appendChild(r[t])) 2816 }) 2817 }, save: function () { 2818 var t = this.options.store; 2819 t && t.set && t.set(this) 2820 }, closest: function (t, e) { 2821 return F(t, e || this.options.draggable, this.el, !1) 2822 }, option: function (t, e) { 2823 var n = this.options; 2824 if (void 0 === e) return n[t]; 2825 var r = _.modifyOption(this, t, e); 2826 n[t] = void 0 !== r ? r : e, "group" === t && Pt(n) 2827 }, destroy: function () { 2828 J("destroy", this); 2829 var t = this.el; 2830 t[K] = null, s(t, "mousedown", this._onTapStart), s(t, "touchstart", this._onTapStart), s(t, "pointerdown", this._onTapStart), this.nativeDraggable && (s(t, "dragover", this), s(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function (t) { 2831 t.removeAttribute("draggable") 2832 }), this._onDrop(), this._disableDelayedDragEvents(), mt.splice(mt.indexOf(this.el), 1), this.el = t = null 2833 }, _hideClone: function () { 2834 if (!T) { 2835 if (J("hideClone", this), zt.eventCanceled) return; 2836 W(D, "display", "none"), this.options.removeCloneOnHide && D.parentNode && D.parentNode.removeChild(D), T = !0 2837 } 2838 }, _showClone: function (t) { 2839 if ("clone" === t.lastPutMode) { 2840 if (T) { 2841 if (J("showClone", this), zt.eventCanceled) return; 2842 Q.parentNode != nt || this.options.group.revertClone ? rt ? nt.insertBefore(D, rt) : nt.appendChild(D) : nt.insertBefore(D, Q), this.options.group.revertClone && this.animate(Q, D), W(D, "display", ""), T = !1 2843 } 2844 } else this._hideClone() 2845 } 2846 }, xt && d(document, "touchmove", function (t) { 2847 (zt.active || ht) && t.cancelable && t.preventDefault() 2848 }), zt.utils = { 2849 on: d, off: s, css: W, find: h, is: function (t, e) { 2850 return !!F(t, e, t, !1) 2851 }, extend: function (t, e) { 2852 if (t && e) for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]); 2853 return t 2854 }, throttle: y, closest: F, toggleClass: q, clone: x, index: Y, nextTick: It, cancelNextTick: Vt, detectDirection: _t, getChild: v 2855 }, zt.get = function (t) { 2856 return t[K] 2857 }, zt.mount = function () { 2858 var t = [].slice.call(arguments); 2859 t[0].constructor === Array && (t = t[0]), t.forEach(function (t) { 2860 if (!t.prototype || !t.prototype.constructor) throw"Sortable: Mounted plugin must be a constructor function, not " + {}.toString.call(t); 2861 t.utils && (zt.utils = B({}
vendor: 7,340 bytes, lines 2861-2991
2861, zt.utils, t.utils)), _.mount(t) 2862 }) 2863 }, zt.create = function (t, e) { 2864 return new zt(t, e) 2865 }; 2866 var Bt, Ft, qt, Wt, Ut, Gt = [], Xt = [], Yt = !(zt.version = "1.12.0"), $t = !1, Kt = !1; 2867 2868 function Jt(r, o) { 2869 Xt.forEach(function (t, e) { 2870 var n = o.children[t.sortableIndex + (r ? Number(e) : 0)]; 2871 n ? o.insertBefore(t, n) : o.appendChild(t) 2872 }) 2873 } 2874 2875 function Zt() { 2876 Gt.forEach(function (t) { 2877 t !== qt && t.parentNode && t.parentNode.removeChild(t) 2878 }) 2879 } 2880 2881 var Qt = function (t) { 2882 var e = t.originalEvent, n = t.putSortable, r = t.dragEl, o = t.dispatchSortableEvent, i = t.unhideGhostForTarget; 2883 if (e) { 2884 var a = n || t.activeSortable; 2885 (0, t.hideGhostForTarget)(); 2886 var s = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e, c = document.elementFromPoint(s.clientX, s.clientY); 2887 i(), a && !a.el.contains(c) && (o("spill"), this.onSpill({dragEl: r, putSortable: n})) 2888 } 2889 }; 2890 2891 function te() { 2892 } 2893 2894 function ee() { 2895 } 2896 2897 te.prototype = { 2898 startIndex: null, dragStart: function (t) { 2899 this.startIndex = t.oldDraggableIndex 2900 }, onSpill: function (t) { 2901 var e = t.dragEl, n = t.putSortable; 2902 this.sortable.captureAnimationState(), n && n.captureAnimationState(); 2903 var r = v(this.sortable.el, this.startIndex, this.options); 2904 r ? this.sortable.el.insertBefore(e, r) : this.sortable.el.appendChild(e), this.sortable.animateAll(), n && n.animateAll() 2905 }, drop: Qt 2906 }, Object.assign(te, {pluginName: "revertOnSpill"}), ee.prototype = { 2907 onSpill: function (t) { 2908 var e = t.dragEl, n = t.putSortable || this.sortable; 2909 n.captureAnimationState(), e.parentNode && e.parentNode.removeChild(e), n.animateAll() 2910 }, drop: Qt 2911 }, Object.assign(ee, {pluginName: "removeOnSpill"}); 2912 var ne, re, oe, ie, ae, se, ce = [], le = !1; 2913 2914 function ue() { 2915 ce.forEach(function (t) { 2916 clearInterval(t.pid) 2917 }), ce = [] 2918 } 2919 2920 function de() { 2921 clearInterval(se) 2922 } 2923 2924 var fe = y(function (n, t, e, r) { 2925 if (t.scroll) { 2926 var o, i = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, s = t.scrollSensitivity, c = t.scrollSpeed, l = k(), u = !1; 2927 re !== e && (re = e, ue(), o = t.scrollFn, !0 === (ne = t.scroll) && (ne = N(e, !0))); 2928 var d = 0, f = ne; 2929 do { 2930 var p = f, h = U(p), v = h.top, m = h.bottom, g = h.left, b = h.right, y = h.width, w = h.height, O = void 0, x = void 0, j = p.scrollWidth, E = p.scrollHeight, C = W(p), 2931 S = p.scrollLeft, _ = p.scrollTop; 2932 x = p === l ? (O = y < j && ("auto" === C.overflowX || "scroll" === C.overflowX || "visible" === C.overflowX), w < E && ("auto" === C.overflowY || "scroll" === C.overflowY || "visible" === C.overflowY)) : (O = y < j && ("auto" === C.overflowX || "scroll" === C.overflowX), w < E && ("auto" === C.overflowY || "scroll" === C.overflowY)); 2933 var P = O && (Math.abs(b - i) <= s && S + y < j) - (Math.abs(g - i) <= s && !!S), A = x && (Math.abs(m - a) <= s && _ + w < E) - (Math.abs(v - a) <= s && !!_); 2934 if (!ce[d]) for (var D = 0; D <= d; D++) ce[D] || (ce[D] = {}); 2935 ce[d].vx == P && ce[d].vy == A && ce[d].el === p || (ce[d].el = p, ce[d].vx = P, ce[d].vy = A, clearInterval(ce[d].pid), 0 == P && 0 == A || (u = !0, ce[d].pid = setInterval(function () { 2936 r && 0 === this.layer && zt.active._onTouchMove(ae); 2937 var t = ce[this.layer].vy ? ce[this.layer].vy * c : 0, e = ce[this.layer].vx ? ce[this.layer].vx * c : 0; 2938 "function" == typeof o && "continue" !== o.call(zt.dragged.parentNode[K], e, t, n, ae, ce[this.layer].el) || $(ce[this.layer].el, e, t) 2939 }.bind({layer: d}), 24))), d++ 2940 } while (t.bubbleScroll && f !== l && (f = N(f, !1))); 2941 le = u 2942 } 2943 }, 30); 2944 zt.mount(new function () { 2945 function t() { 2946 for (var t in this.defaults = { 2947 scroll: !0, 2948 scrollSensitivity: 30, 2949 scrollSpeed: 10, 2950 bubbleScroll: !0 2951 }, this) "_" === t.charAt(0) && "function" == typeof this[t] && (this[t] = this[t].bind(this)) 2952 } 2953 2954 return t.prototype = { 2955 dragStarted: function (t) { 2956 var e = t.originalEvent; 2957 this.sortable.nativeDraggable ? d(document, "dragover", this._handleAutoScroll) : d(document, this.options.supportPointer ? "pointermove" : e.touches ? "touchmove" : "mousemove", this._handleFallbackAutoScroll) 2958 }, dragOverCompleted: function (t) { 2959 var e = t.originalEvent; 2960 this.options.dragOverBubble || e.rootEl || this._handleAutoScroll(e) 2961 }, drop: function () { 2962 this.sortable.nativeDraggable ? s(document, "dragover", this._handleAutoScroll) : (s(document, "pointermove", this._handleFallbackAutoScroll), s(document, "touchmove", this._handleFallbackAutoScroll), s(document, "mousemove", this._handleFallbackAutoScroll)), de(), ue(), clearTimeout(f), f = void 0 2963 }, nulling: function () { 2964 ae = re = ne = le = se = oe = ie = null, ce.length = 0 2965 }, _handleFallbackAutoScroll: function (t) { 2966 this._handleAutoScroll(t, !0) 2967 }, _handleAutoScroll: function (e, n) { 2968 var r = this, o = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, t = document.elementFromPoint(o, i); 2969 if (ae = e, n || O || w || u) { 2970 fe(e, this.options, t, n); 2971 var a = N(t, !0); 2972 !le || se && o === oe && i === ie || (se && de(), se = setInterval(function () { 2973 var t = N(document.elementFromPoint(o, i), !0); 2974 t !== a && (a = t, ue()), fe(e, r.options, t, n) 2975 }, 10), oe = o, ie = i) 2976 } else { 2977 if (!this.options.bubbleScroll || N(t, !0) === k()) return void ue(); 2978 fe(e, this.options, N(t, !1), !1) 2979 } 2980 } 2981 }, Object.assign(t, {pluginName: "scroll", initializeByDefault: !0}) 2982 }), zt.mount(ee, te), zt.mount(new function () { 2983 function t() { 2984 this.defaults = {swapClass: "sortable-swap-highlight"} 2985 } 2986 2987 return t.prototype = { 2988 dragStart: function (t) { 2989 kt = t.dragEl 2990 }, dragOverValid: function (t) { 2991 var e = t.completed, n = t.target, r = t.changed, o = t.cancel;
2992 if (t.activeSortable.options.swap) { 2993 var i = this.options; 2994 if (n && n !== this.sortable.el) { 2995 var a = kt; 2996 kt = !1 !== (0, t.onMove)(n) ? (q(n, i.swapClass, !0), n) : null, a && a !== kt && q(a, i.swapClass, !1) 2997 } 2998 r(), e(!0), o() 2999 } 3000 }, drop: function (t) { 3001 var e, n, r, o, i, a, s = t.activeSortable, c = t.putSortable, l = t.dragEl, u = c || this.sortable, d = this.options; 3002 kt && q(kt, d.swapClass, !1), kt && (d.swap || c && c.options.swap) && l !== kt && (u.captureAnimationState(), u !== s && s.captureAnimationState(), a = (n = kt).parentNode, (i = (e = l).parentNode) && a && !i.isEqualNode(n) && !a.isEqualNode(e) && (r = Y(e), o = Y(n), i.isEqualNode(a) && r < o && o++, i.insertBefore(n, i.children[r]), a.insertBefore(e, a.children[o])), u.animateAll(), u !== s && s.animateAll()) 3003 }, nulling: function () { 3004 kt = null 3005 } 3006 }, Object.assign(t, { 3007 pluginName: "swap", eventProperties: function () { 3008 return {swapItem: kt} 3009 } 3010 }) 3011 }), zt.mount(new function () { 3012 function t(r) { 3013 for (var t in this) "_" === t.charAt(0) && "function" == typeof this[t] && (this[t] = this[t].bind(this)); 3014 r.options.supportPointer ? d(document, "pointerup", this._deselectMultiDrag) : (d(document, "mouseup", this._deselectMultiDrag), d(document, "touchend", this._deselectMultiDrag)), d(document, "keydown", this._checkKeyDown), d(document, "keyup", this._checkKeyUp), this.defaults = { 3015 selectedClass: "sortable-selected", 3016 multiDragKey: null, 3017 setData: function (t, e) { 3018 var n = ""; 3019 Gt.length && Ft === r ? Gt.forEach(function (t, e) { 3020 n += (e ? ", " : "") + t.textContent 3021 }) : n = e.textContent, t.setData("Text", n) 3022 } 3023 } 3024 } 3025 3026 return t.prototype = { 3027 multiDragKeyDown: !1, isMultiDrag: !1, delayStartGlobal: function (t) { 3028 qt = t.dragEl 3029 }, delayEnded: function () { 3030 this.isMultiDrag = ~Gt.indexOf(qt) 3031 }, setupClone: function (t) { 3032 var e = t.sortable, n = t.cancel; 3033 if (this.isMultiDrag) { 3034 for (var r = 0; r < Gt.length; r++) Xt.push(x(Gt[r])), Xt[r].sortableIndex = Gt[r].sortableIndex, Xt[r].draggable = !1, Xt[r].style["will-change"] = "", q(Xt[r], this.options.selectedClass, !1), Gt[r] === qt && q(Xt[r], this.options.chosenClass, !1); 3035 e._hideClone(), n() 3036 } 3037 }, clone: function (t) { 3038 var e = t.dispatchSortableEvent, n = t.cancel; 3039 this.isMultiDrag && (this.options.removeCloneOnHide || Gt.length && Ft === t.sortable && (Jt(!0, t.rootEl), e("clone"), n())) 3040 }, showClone: function (t) { 3041 var e = t.cloneNowShown, n = t.cancel; 3042 this.isMultiDrag && (Jt(!1, t.rootEl), Xt.forEach(function (t) { 3043 W(t, "display", "") 3044 }), e(), Ut = !1, n()) 3045 }, hideClone: function (t) { 3046 var e = this, n = t.cloneNowHidden, r = t.cancel; 3047 this.isMultiDrag && (Xt.forEach(function (t) { 3048 W(t, "display", "none"), e.options.removeCloneOnHide && t.parentNode && t.parentNode.removeChild(t) 3049 }), n(), Ut = !0, r()) 3050 }, dragStartGlobal: function (t) { 3051 !this.isMultiDrag && Ft && Ft.multiDrag._deselectMultiDrag(), Gt.forEach(function (t) { 3052 t.sortableIndex = Y(t) 3053 }), Gt = Gt.sort(function (t, e) { 3054 return t.sortableIndex - e.sortableIndex 3055 }), Kt = !0 3056 }, dragStarted: function (t) { 3057 var e = this, n = t.sortable; 3058 if (this.isMultiDrag) { 3059 if (this.options.sort && (n.captureAnimationState(), this.options.animation)) { 3060 Gt.forEach(function (t) { 3061 t !== qt && W(t, "position", "absolute") 3062 }); 3063 var r = U(qt, !1, !0, !0); 3064 Gt.forEach(function (t) { 3065 t !== qt && j(t, r) 3066 }), Yt = $t = !0 3067 } 3068 n.animateAll(function () { 3069 Yt = $t = !1, e.options.animation && Gt.forEach(function (t) { 3070 E(t) 3071 }
3071), e.options.sort && Zt() 3072 }) 3073 } 3074 }, dragOver: function (t) { 3075 var e = t.completed, n = t.cancel; 3076 $t && ~Gt.indexOf(t.target) && (e(!1), n()) 3077 }, revert: function (t) { 3078 var r, o, e = t.fromSortable, n = t.rootEl, i = t.sortable, a = t.dragRect; 3079 1 < Gt.length && (Gt.forEach(function (t) { 3080 i.addAnimationState({target: t, rect: $t ? U(t) : a}), E(t), t.fromRect = a, e.removeAnimationState(t) 3081 }), $t = !1, r = !this.options.removeCloneOnHide, o = n, Gt.forEach(function (t, e) { 3082 var n = o.children[t.sortableIndex + (r ? Number(e) : 0)]; 3083 n ? o.insertBefore(t, n) : o.appendChild(t) 3084 })) 3085 }, dragOverCompleted: function (t) { 3086 var e = t.sortable, n = t.isOwner, r = t.activeSortable, o = t.parentEl, i = t.putSortable, a = this.options; 3087 if (t.insertion) { 3088 if (n && r._hideClone(), Yt = !1, a.animation && 1 < Gt.length && ($t || !n && !r.options.sort && !i)) { 3089 var s = U(qt, !1, !0, !0); 3090 Gt.forEach(function (t) { 3091 t !== qt && (j(t, s), o.appendChild(t)) 3092 }), $t = !0 3093 } 3094 if (!n) if ($t || Zt(), 1 < Gt.length) { 3095 var c = Ut; 3096 r._showClone(e), r.options.animation && !Ut && c && Xt.forEach(function (t) { 3097 r.addAnimationState({target: t, rect: Wt}), t.fromRect = Wt, t.thisAnimationDuration = null 3098 }) 3099 } else r._showClone(e) 3100 } 3101 }, dragOverAnimationCapture: function (t) { 3102 var e = t.dragRect, n = t.isOwner, r = t.activeSortable; 3103 if (Gt.forEach(function (t) { 3104 t.thisAnimationDuration = null 3105 }), r.options.animation && !n && r.multiDrag.isMultiDrag) { 3106 Wt = Object.assign({}, e); 3107 var o = m(qt, !0); 3108 Wt.top -= o.f, Wt.left -= o.e 3109 } 3110 }, dragOverAnimationComplete: function () { 3111 $t && ($t = !1, Zt()) 3112 }, drop: function (t) { 3113 var e = t.originalEvent, n = t.rootEl, r = t.parentEl, o = t.sortable, i = t.dispatchSortableEvent, a = t.oldIndex, s = t.putSortable, c = s || this.sortable; 3114 if (e) { 3115 var l = this.options, u = r.children; 3116 if (!Kt) if (l.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), q(qt, l.selectedClass, !~Gt.indexOf(qt)), ~Gt.indexOf(qt)) Gt.splice(Gt.indexOf(qt), 1), Bt = null, P({ 3117 sortable: o, 3118 rootEl: n, 3119 name: "deselect", 3120 targetEl: qt, 3121 originalEvt: e 3122 }); else { 3123 if (Gt.push(qt), P({sortable: o, rootEl: n, name: "select", targetEl: qt, originalEvt: e}), e.shiftKey && Bt && o.el.contains(Bt)) { 3124 var d, f, p = Y(Bt), h = Y(qt); 3125 if (~p && ~h && p !== h) for (d = p < h ? (f = p, h) : (f = h, p + 1); f < d; f++) ~Gt.indexOf(u[f]) || (q(u[f], l.selectedClass, !0), Gt.push(u[f]), P({ 3126 sortable: o, 3127 rootEl: n, 3128 name: "select", 3129 targetEl: u[f], 3130 originalEvt: e 3131 })) 3132 } else Bt = qt; 3133 Ft = c 3134 } 3135 if (Kt && this.isMultiDrag) { 3136 if ((r[K].options.sort || r !== n) && 1 < Gt.length) { 3137 var v = U(qt), m = Y(qt, ":not(." + this.options.selectedClass + ")"); 3138 if (!Yt && l.animation && (qt.thisAnimationDuration = null), c.captureAnimationState(), !Yt && (l.animation && (qt.fromRect = v, Gt.forEach(function (t) { 3139 if (t.thisAnimationDuration = null, t !== qt) { 3140 var e = $t ? U(t) : v; 3141 t.fromRect = e, c.addAnimationState({target: t, rect: e}) 3142 } 3143 })), Zt(), Gt.forEach(function (t) { 3144 u[m] ? r.insertBefore(t, u[m]) : r.appendChild(t), m++ 3145 }), a === Y(qt))) { 3146 var g = !1; 3147 Gt.forEach(function (t) { 3148 t.sortableIndex === Y(t) || (g = !0) 3149 }), g && i("update") 3150 } 3151 Gt.forEach(function (t) { 3152 E(t) 3153 }), c.animateAll() 3154 } 3155 Ft = c 3156 } 3157 (n === r || s && "clone" !== s.lastPutMode) && Xt.forEach(function (t) { 3158 t.parentNode && t.parentNode.removeChild(t) 3159 }) 3160 } 3161 }, nullingGlobal: function () { 3162 this.isMultiDrag = Kt = !1, Xt.length = 0 3163 }, destroyGlobal: function () {
3164 this._deselectMultiDrag(), s(document, "pointerup", this._deselectMultiDrag), s(document, "mouseup", this._deselectMultiDrag), s(document, "touchend", this._deselectMultiDrag), s(document, "keydown", this._checkKeyDown), s(document, "keyup", this._checkKeyUp) 3165 }, _deselectMultiDrag: function (t) { 3166 if (!(void 0 !== Kt && Kt || Ft !== this.sortable || t && F(t.target, this.options.draggable, this.sortable.el, !1) || t && 0 !== t.button)) for (; Gt.length;) { 3167 var e = Gt[0]; 3168 q(e, this.options.selectedClass, !1), Gt.shift(), P({sortable: this.sortable, rootEl: this.sortable.el, name: "deselect", targetEl: e, originalEvt: t}) 3169 } 3170 }, _checkKeyDown: function (t) { 3171 t.key === this.options.multiDragKey && (this.multiDragKeyDown = !0) 3172 }, _checkKeyUp: function (t) { 3173 t.key === this.options.multiDragKey && (this.multiDragKeyDown = !1) 3174 } 3175 }, Object.assign(t, { 3176 pluginName: "multiDrag", utils: { 3177 select: function (t) { 3178 var e = t.parentNode[K]; 3179 e && e.options.multiDrag && !~Gt.indexOf(t) && (Ft && Ft !== e && (Ft.multiDrag._deselectMultiDrag(), Ft = e), q(t, e.options.selectedClass, !0), Gt.push(t)) 3180 }, deselect: function (t) { 3181 var e = t.parentNode[K], n = Gt.indexOf(t); 3182 e && e.options.multiDrag && ~n && (q(t, e.options.selectedClass, !1), Gt.splice(n, 1)) 3183 } 3184 }, eventProperties: function () { 3185 var n = this, r = [], o = []; 3186 return Gt.forEach(function (t) { 3187 var e; 3188 r.push({multiDragElement: t, index: t.sortableIndex}), e = $t && t !== qt ? -1 : $t ? Y(t, ":not(." + n.options.selectedClass + ")") : Y(t), o.push({ 3189 multiDragElement: t, 3190 index: e 3191 }) 3192 }), {items: [].concat(Gt), clones: [].concat(Xt), oldIndicies: r, newIndicies: o} 3193 }, optionListeners: { 3194 multiDragKey: function (t) { 3195 return "ctrl" === (t = t.toLowerCase()) ? t = "Control" : 1 < t.length && (t = t.charAt(0).toUpperCase() + t.substr(1)), t 3196 } 3197 } 3198 }) 3199 }), e.a = zt 3200 }, function (t, e, n) { 3201 "use strict"; 3202 n.d(e, "a", function () { 3203 return a 3204 }); 3205 var r = n(12), d = n.n(r), f = n(2), p = n(4), h = n(0), v = n(1), l = n(5), o = n(21), c = n(7), m = n(16); 3206 3207 function i(e, t) { 3208 var n = Object.keys(e); 3209 if (Object.getOwnPropertySymbols) { 3210 var r = Object.getOwnPropertySymbols(e); 3211 t && (r = r.filter(function (t) { 3212 return Object.getOwnPropertyDescriptor(e, t).enumerable 3213 })), n.push.apply(n, r) 3214 } 3215 return n 3216 } 3217 3218 function u(e) { 3219 for (var t = 1; t < arguments.length; t++) { 3220 var n = null != arguments[t] ? arguments[t] : {}; 3221 t % 2 ? i(Object(n), !0).forEach(function (t) { 3222 y(e, t, n[t]) 3223 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i(Object(n)).forEach(function (t) { 3224 Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) 3225 }) 3226 } 3227 return e 3228 } 3229 3230 function g(t, e) { 3231 for (var n = 0; n < e.length; n++) { 3232 var r = e[n]; 3233 r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) 3234 } 3235 } 3236 3237 function b(t) { 3238 if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 3239 return t 3240 } 3241 3242 function y(t, e, n) { 3243 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 3244 } 3245 3246 var a = function (r) { 3247 var t, e; 3248 3249 function n(t, e, n) { 3250 var a; 3251 return void 0 === e && (e = {}), y(b(a = r.call(this, t, Object.assign({}, e, {id: e.id || Object(f.n)()})) || this), "mutationHandler", function (t) { 3252 return t.map(function (t) { 3253 }) 3254 }), y(b(a), "remove", function (t) { 3255 if (t) { 3256 var e = t.split("."), n = e.pop(), r = a.get(e); 3257 return Array.isArray(r) ? Object(p.h)(n) ? r.splice(Number(n), 1) : a.set(e, r.f
3257ilter(function (t) { 3258 return t !== n 3259 })) : delete r[n], r 3260 } 3261 if ("stage" === a.name) return null; 3262 var o = a.parent, i = a.children; 3263 return Object(p.c)(i, function (t) { 3264 return t.remove() 3265 }), a.dom.parentElement.removeChild(a.dom), Object(f.k)(l.e.getAddress(o.name + "s." + o.id + ".children"), a.id), o.children.length || o.emptyClass(), "row" === o.name && o.autoColumnWidths(), l.e[a.name + "s"].delete(a.id) 3266 }), y(b(a), "emptyClass", function () { 3267 return a.dom.classList.toggle("empty", !a.children.length) 3268 }), y(b(a), "removeClasses", function (t) { 3269 var e = { 3270 string: function () { 3271 return a.dom.classList.remove(t) 3272 }, array: function () { 3273 return t.map(function (t) { 3274 return a.dom.classList.remove(t) 3275 }) 3276 } 3277 }; 3278 return e.object = e.string, e[h.a.childType(t)](a.dom) 3279 }), y(b(a), "loadChildren", function (t) { 3280 return void 0 === t && (t = a.data.children), t.map(function (t) { 3281 return a.addChild({id: t}) 3282 }) 3283 }), y(b(a), "saveChildOrder", function () { 3284 if (!a.render) { 3285 var t = a.children.map(function (t) { 3286 return t.id 3287 }); 3288 return a.set("children", t), t 3289 } 3290 }), y(b(a), "onSort", function () { 3291 return a.saveChildOrder() 3292 }), y(b(a), "onEnd", function (t) { 3293 var e = t.to.parentElement, n = t.from.parentElement; 3294 e && e.classList.remove("hovering-" + Object(f.c)(e)), n && n.classList.remove("hovering-" + Object(f.c)(n)) 3295 }), y(b(a), "runConditions", function () { 3296 var t = a.get("conditions"); 3297 return t && t.length ? t.map(function (t) { 3298 var e = a.processConditions(t.if), n = a.processResults(t.then); 3299 return e.map(function (t) { 3300 return a.evaluateConditions(t) && a.execResults(n) 3301 }) 3302 }) : null 3303 }), y(b(a), "value", function (t, e) { 3304 var n = t.split("."), r = a.getComponent(t), o = r && n.slice(2, n.length).join("."); 3305 return [!r, !o, !v.A[o]].some(Boolean) ? t : e ? r.set(v.A[o], e) : r.get(v.A[o]) 3306 }), y(b(a), "getResult", function (t) { 3307 return { 3308 "=": function (t, e, n) { 3309 return t.set(e, n) 3310 } 3311 }[t] 3312 }), y(b(a), "processResults", function (t) { 3313 return t.map(function (t) { 3314 var e = t.operator, n = t.target, r = t.value, o = a.getComponent(n); 3315 return {target: o, propertyPath: o && n.split(".").slice(2, n.length).join("."), action: a.getResult(e), value: a.value(r)} 3316 }) 3317 }), y(b(a), "execResults", function (t) { 3318 var e = t.map(function (t) { 3319 return a.execResult(t) 3320 }); 3321 return Promise.all(e) 3322 }), y(b(a), "execResult", function (t) { 3323 var n = t.target, r = t.action, o = t.value; 3324 t.propertyPath; 3325 return new Promise(function (t, e) { 3326 try { 3327 return t(r(n, o)) 3328 } catch (t) { 3329 return e(t) 3330 } 3331 }) 3332 }), y(b(a), "cloneData", function () { 3333 var t = u({}, Object(f.b)(a.data), {id: Object(f.n)()}); 3334 return "field" !== a.name && (t.children = []), t 3335 }), y(b(a), "clone", function (t) { 3336 void 0 === t && (t = a.parent); 3337 var e = t.addChild(a.cloneData(), a.index + 1); 3338 return "field" !== a.name && a.cloneChildren(e), "column" === a.name && t.autoColumnWidths(), e 3339 }), y(b(a), "cloneChildren", function (e) {
3340 a.children.forEach(function (t) { 3341 return t && t.clone(e) 3342 }) 3343 }), y(b(a), "createChildWrap", function (t) { 3344 return h.a.create({tag: "ul", attrs: {className: "children"}, children: t}) 3345 }), a.id = a.data.id, a.name = t, a.config = l.e[a.name + "s"].config, Object(f.h)(a.config, e.config), a.dataPath = a.name + "s." + a.id + ".", a.observer = new MutationObserver(a.mutationHandler), a.render = n, a 3346 } 3347 3348 e = r, (t = n).prototype = Object.create(e.prototype), (t.prototype.constructor = t).__proto__ = e; 3349 var o, i, a, s = n.prototype; 3350 return s.observe = function (t) { 3351 this.observer.disconnect(), this.observer.observe(t, {childList: !0}) 3352 }, s.empty = function () { 3353 var e = this.children.map(function (t) { 3354 return t.remove() 3355 }); 3356 return this.data.children = this.data.children.filter(function (t) { 3357 return -1 === e.indexOf(t) 3358 }), this.dom.classList.add("empty"), e 3359 }, s.getActionButtons = function () { 3360 var n = this, r = "97px", o = "hovering-" + this.name; 3361 return { 3362 className: this.name + "-actions group-actions", action: { 3363 onRender: function (t) { 3364 return r = 24 * t.getElementsByTagName("button").length + 1 + "px" 3365 }, mouseenter: function (t) { 3366 var e = t.target; 3367 n.dom.classList.add(o), e.style["row" === n.name ? "height" : "width"] = r 3368 }, mouseleave: function (t) { 3369 var e = t.target; 3370 n.dom.classList.remove(o), e.removeAttribute("style") 3371 } 3372 }, children: {className: "action-btn-wrap", children: this.buttons} 3373 } 3374 }, s.toggleEdit = function (t) { 3375 void 0 === t && (t = !this.isEditing), this.isEditing = t; 3376 var e = this.dom, n = "editing-" + this.name, r = this.dom.querySelector("." + this.name + "-edit"); 3377 c.a.slideToggle(r, v.a, t), "field" === this.name && (c.a.slideToggle(this.preview, v.a, !t), e.parentElement.classList.toggle("column-" + n, t)), e.classList.toggle(n, t) 3378 }, s.addChild = function (t, e) { 3379 void 0 === t && (t = {}), void 0 === e && (e = this.domChildren.length), "object" != typeof t && (t = {id: t}); 3380 var n = this.dom.querySelector(".children"), r = t.id, o = void 0 === r ? Object(f.n)() : r, i = v.f.get(this.name); 3381 if (!i) return null; 3382 var a = i + "s", s = l.e.getAddress(a + "." + o) || l.e[a].add(o, t); 3383 n.insertBefore(s.dom, n.children[e]); 3384 var c = s.get("children"); 3385 return c && c.length && s.loadChildren(c), this.removeClasses("empty"), this.saveChildOrder(), s 3386 }, s.onAdd = function (t) { 3387 var e = t.from, n = t.to, i = t.item, a = t.newIndex, s = this; 3388 e.classList.contains(v.o) || (e = e.parentElement); 3389 var r = Object(f.c)(e), o = Object(f.c)(n.parentElement), c = new Map([[-2, function () { 3390 var t = s.addChild({}, a).addChild(); 3391 return t.addChild.bind(t) 3392 }], [-1, function () { 3393 var t = s.addChild({}, a); 3394 return t.addChild.bind(t) 3395 }], [0, function () { 3396 return s.addChild.bind(s) 3397 }], [1, function (t) { 3398 var e = Object(p.f)(s.dom); 3399 return function () { 3400 return s.parent.addChild(t, e + 1) 3401 } 3402 }], [2, function (t) { 3403 return function () { 3404 return s.parent.parent.addChild(t) 3405 } 3406 }]]), l = { 3407 controls: function () { 3408 var t = m.a.get(i.id).controlData, e = t.meta.id, n = e.startsWith("layout-") ? e.replace(/^layout-/, "") : "field", 3409 r = Object(p.d)({stage: {row: 0, column: -1, field: -2}, row: {row: 1, column: 0, field: -1}, column: {row: 2, column: 1, field: 0}, field: 1}, s.name + "." + n), 3410 o = c.get(r)(); 3411 return h.a.remove(i), o(t, a) 3412 }, row: function () { 3413 var t = (c.get({stage: -1, row: 0, column: 1}[o]) || d.a)(); 3414 return t && t({id: i.id}, a) 3415 }, column: function () { 3416 var t = (c.get({stage: -2, row: -1}[o]) || d.a)(); 3417 return t && t(i.id) 3418 } 3419 }, u = l[r] && l[r](i, a); 3420 return s.saveChildOrder(), s.removeClasses("empty"), u 3421 }, s.onRemove = function (t) { 3422 var e = t.from.parentElement; 3423 return e.classList.contains(v.g) && e.classList.remove("column-editing-field"), "stage" === this.name || this.children.length ? (this.emptyClass(), this.saveChildOrder()) : this.remove() 3424 }, s.onRender = function () { 3425 var t = this.config.events; 3426 if (!t) return null; 3427 t.onRender && h.a.onRender(this.dom, t.onRender) 3428 }, s.getComponent = function (t) { 3429 var e = t.split("."), n = e[0], r = e[1], o = l.e[n];
3430 return r === this.id ? this : o && o.get(r) 3431 }, o = n, (i = [{ 3432 key: "js", get: function () { 3433 return this.data 3434 } 3435 }, { 3436 key: "json", get: function () { 3437 return this.data 3438 } 3439 }, { 3440 key: "buttons", get: function () { 3441 var e = this, n = this, r = function (t) { 3442 return t.map(function (t) { 3443 return h.a.icon(t) 3444 }) 3445 }, i = { 3446 handle: function (t) { 3447 return void 0 === t && (t = ["move", "handle"]), u({}, h.a.btnTemplate({content: r(t)}), {className: ["item-handle"], meta: {id: "handle"}}) 3448 }, edit: function (t) { 3449 return void 0 === t && (t = ["edit"]), u({}, h.a.btnTemplate({content: r(t)}), { 3450 className: ["item-edit-toggle"], meta: {id: "edit"}, action: { 3451 click: function (t) { 3452 n.toggleEdit() 3453 } 3454 } 3455 }) 3456 }, remove: function (t) { 3457 return void 0 === t && (t = ["remove"]), u({}, h.a.btnTemplate({content: r(t)}), { 3458 className: ["item-remove"], meta: {id: "remove"}, action: { 3459 click: function (t, e) { 3460 c.a.slideUp(n.dom, v.a, function () { 3461 "column" === n.name ? (n.parent.autoColumnWidths(), n.remove()) : n.remove() 3462 }) 3463 } 3464 } 3465 }) 3466 }, clone: function (t) { 3467 return void 0 === t && (t = ["copy"]), u({}, h.a.btnTemplate({content: r(t)}), { 3468 className: ["item-clone"], meta: {id: "clone"}, action: { 3469 click: function () { 3470 return e.clone() 3471 } 3472 } 3473 }) 3474 } 3475 }; 3476 return this.config.actionButtons.buttons.map(function (t) { 3477 var e = t.split("|"), n = e[0], r = e.slice(1), o = r.length ? r : void 0; 3478 return i[n] && i[n](o) || t 3479 }) 3480 } 3481 }, { 3482 key: "index", get: function () { 3483 return Object(p.f)(this.dom) 3484 } 3485 }, { 3486 key: "parentType", get: function () { 3487 return v.C.get(this.name) 3488 } 3489 }, { 3490 key: "parent", get: function () { 3491 var t = this.parentType; 3492 if (!this.dom || !t) return null; 3493 var e = this.dom.closest("." + v.j[t]); 3494 return e && h.a.asComponent(e) 3495 } 3496 }, { 3497 key: "children", get: function () { 3498 if (!this.dom) return []; 3499 var t = this.domChildren, e = v.f.get(this.name); 3500 return Object(p.i)(t, function (t) { 3501 return l.e.getAddress(e + "s." + t.id) 3502 }).filter(Boolean) 3503 } 3504 }, { 3505 key: "domChildren", get: function () { 3506 var t = this.dom.querySelector(".children"); 3507 return t ? t.children : [] 3508 } 3509 }, { 3510 key: "config", set: function (t) { 3511 var e = Object(p.d)(this.data, "meta.id"), n = [Object(p.d)(t, "all"), e && Object(p.d)(t, e), Object(p.d)(t, this.id)].reduce(function (t, e) { 3512 return e ? Object(f.h)(t, e) : t 3513 }, this.configVal); 3514 return this.configVal = n, this.configVal 3515 }, get: function () { 3516 return this.configVal 3517 } 3518 }]) && g(o.prototype, i), a && g(o, a), n 3519 }(o.a) 3520 }, function (t, e) { 3521 t.exports = function (t) { 3522 return null != t && "object" == typeof t 3523 } 3524 }, function (t, e, n) { 3525 "use strict"; 3526 var p = n(13), r = n(3), h = n.n(r), o = n(59), a = n.n(o), i = n(19), s = n(4), c = n(6), v = n(0), l = n(2), m = n(39), g = n(40), u = n(11), d = n(12), f = n.n(d); 3527 var b = {js: u.c, css: u.d}, y = function () { 3528 function t(t) { 3529 void 0 === t && (t = {}); 3530 var e, n, r, o = t, i = o.events, a = void 0 === i ? {} : i, s = o.dependencies, c = void 0 === s ? {} : s, l = function (t, e) { 3531 if (null == t) return {}; 3532 var n, r, o = {}, i = Object.keys(t); 3533 for (r = 0; r < i.length; r++) n = i[r], 0 <= e.indexOf(n) || (o[n] = t[n]); 3534 return o 3535 }
3535(o, ["events", "dependencies"]); 3536 r = function (t) { 3537 var e = document.createElement("textarea"); 3538 return e.innerHTML = t, e.textContent 3539 }, (n = "parsedHtml") in (e = this) ? Object.defineProperty(e, n, { 3540 value: r, 3541 enumerable: !0, 3542 configurable: !0, 3543 writable: !0 3544 }) : e[n] = r, this.events = a, this.controlData = l, this.depsLoaded = this.fetchDependencies(c) 3545 } 3546 3547 var e = t.prototype; 3548 return e.onRenderPreview = function () { 3549 }, e.fetchDependencies = function (t, e) { 3550 void 0 === e && (e = !0); 3551 var n = Object.entries(t).map(function (t) { 3552 var e = t[0], n = t[1]; 3553 return b[e](n) 3554 }); 3555 return Promise.all(n) 3556 }, e.on = function (t) { 3557 var e = this, n = { 3558 prerender: f.a, renderComponent: f.a, render: function (t) { 3559 e.depsLoaded.then(function () { 3560 e.onRender && e.onRender(t) 3561 }) 3562 } 3563 }; 3564 return t ? n[t] : n 3565 }, t.i18n = function (t, e) { 3566 var n = this.definition, r = n.i18n || {}; 3567 r = r[r.locale] || r.default || r; 3568 var o = "object" == typeof r ? r[t] : r; 3569 if (o) return o; 3570 var i = n.i18n; 3571 return "object" == typeof i && (i = i[t]), r.get(i, e) 3572 }, t 3573 }(), w = n(1), O = n(5), 3574 x = [{config: {label: "row"}, meta: {group: "layout", icon: "rows", id: "layout-row"}}, {config: {label: "column"}, meta: {group: "layout", icon: "columns", id: "layout-column"}}]; 3575 var j = function (e) { 3576 var t, n; 3577 3578 function r() { 3579 var t = {tag: "input", attrs: {type: "hidden", value: ""}, config: {label: h.a.get("hidden"), hideLabel: !0}, meta: {group: "common", icon: "hidden", id: "hidden"}}; 3580 return e.call(this, t) || this 3581 } 3582 3583 return n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r 3584 }(y); 3585 var E = function (e) { 3586 var t, n; 3587 3588 function r() { 3589 var t = {tag: "input", attrs: {type: "number", required: !1, className: ""}, config: {label: h.a.get("number")}, meta: {group: "common", icon: "hash", id: "number"}}; 3590 return e.call(this, t) || this 3591 } 3592 3593 return n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r 3594 }(y); 3595 var C = function (e) { 3596 var t, n; 3597 3598 function r() { 3599 var t = {tag: "textarea", config: {label: h.a.get("controls.form.textarea")}, meta: {group: "common", icon: "textarea", id: "textarea"}, attrs: {required: !1}}; 3600 return e.call(this, t) || this 3601 } 3602 3603 return n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r 3604 }(y); 3605 var S = function (e) { 3606 var t, n; 3607 3608 function r() { 3609 var t = { 3610 tag: "input", 3611 attrs: {required: !1, type: "text", className: ""}, 3612 config: {label: h.a.get("controls.form.input.text")}, 3613 meta: {group: "common", icon: "text-input", id: "text-input"} 3614 }; 3615 return e.call(this, t) || this 3616 } 3617 3618 return n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r 3619 }(y); 3620 var _ = function (e) { 3621 var t, n; 3622 3623 function r() { 3624 var t = {tag: "input", attrs: {type: "file", required: !1}, config: {label: h.a.get("fileUpload")}, meta: {group: "common", icon: "upload", id: "upload"}}; 3625 return e.call(this, t) || this 3626 } 3627 3628 return n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r 3629 }(y), P = n(8), A = n.n(P), D = function (r, t) { 3630 return void 0 === t && (t = 3), Array.from({length: t}, function (t, e) { 3631 return e + 1 3632 }).map(function (t) { 3633 var e, n = "checkbox" === r ? "checked" : "selected"; 3634 return (e = {label: h.a.get("labelCount", {label: A()(r), count: t}), value: r + "-" + t})[n] = !t, e 3635 }) 3636 }; 3637 var k = function (e) { 3638 var t, n; 3639 3640 function r() { 3641 var t = { 3642 tag: "select", 3643 config: {label: h.a.get("controls.form.select")}, 3644 attrs: {required: !1, className: ""}, 3645 meta: {group: "common", icon: "select", id: "select"}, 3646 options: D("option") 3647 }; 3648 return e.call(this, t) || this 3649 } 3650 3651 return n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r 3652 }(y); 3653 var N = function (e) { 3654 var t, n; 3655 3656 function r() { 3657 var t = { 3658 tag: "input", 3659 attrs: {type: "checkbox", required: !1}, 3660 config: {label: h.a.get("controls.form.checkbox-group"), disabledAttrs: ["type"]}, 3661 meta: {group: "common", icon: "checkbox", id: "checkbox"}, 3662 options: D("checkbox", 1) 3663 }; 3664 return e.call(this, t) || this 3665 } 3666 3667 return n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r 3668 }(y); 3669 var T = function (e) { 3670 var t, n; 3671 3672 function r() { 3673 var t = { 3674 tag: "input", 3675 attrs: {type: "radio", required: !1}, 3676 config: {label: h.a.get("controls.form.radio-group"), disabledAttrs: ["type"]}, 3677 meta: {group: "common", icon: "radio-group", id: "radio"}, 3678 options: D("radio") 3679 }; 3680 return e.call(this, t) || this 3681 } 3682 3683 return n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r 3684 }(y); 3685 var z = [function (e) { 3686 var t, n; 3687 3688 function r() { 3689 var t = { 3690 tag: "button", 3691 attrs: {className: [{label: "grouped", value: "btn-group"}, {label: "ungrouped", value: "f-field-group"}]}, 3692 config: {label: h.a.get("controls.form.button"), hideLabel: !0}, 3693 meta: {group: "common", icon: "button", id: "button"}, 3694 options: [{ 3695 label: h.a.get("button"), 3696 type: ["button", "submit", "reset"].map(function (t, e) { 3697 return {label: t, type: t} 3698 }), 3699 className: [{label: "default", value: "", selected: !0}, {label: "primary", value: "primary"}, {label: "danger", value: "error"}, { 3700 label: "success", 3701 value: "success" 3702 }, {label: "warning", value: "warning"}] 3703 }] 3704 }; 3705 return e.call(this, t) || this 3706 } 3707 3708 return n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r 3709 }(y), function (e) { 3710 var t, n; 3711 3712 function r() { 3713 var t = { 3714 tag: "input", 3715 attrs: {type: "date", required: !1, className: ""}, 3716 config: {label: h.a.get("controls.form.input.date")}, 3717 meta: {group: "common", icon: "calendar", id: "date-input"} 3718 }; 3719 return e.call(this, t) || this 3720 } 3721 3722 return n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r 3723 }(y), j, E, C, S, _, k, N, T]; 3724 3725 function L(t, e) { 3726 for (var n = 0; n < e.length; n++) { 3727 var r = e[n]; 3728 r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) 3729 } 3730 } 3731 3732 var M = Array.from(Array(5).keys()).slice(1).map(function (t) { 3733 return "h" + t 3734 }
3734), H = "controls.html.header"; 3735 var R = [function (e) { 3736 var t, n, r, o, i; 3737 3738 function a() { 3739 var t = { 3740 tag: M[0], attrs: { 3741 tag: M.map(function (t, e) { 3742 return {label: t.toUpperCase(), value: t, selected: !e} 3743 }), className: "" 3744 }, config: {label: h.a.get(H), hideLabel: !0, editableContent: !0}, meta: {group: "html", icon: "header", id: "html.header"}, content: h.a.get(H) 3745 }; 3746 return e.call(this, t) || this 3747 } 3748 3749 return n = e, (t = a).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r = a, i = [{ 3750 key: "definition", get: function () { 3751 return {i18n: {header: "Header222"}} 3752 } 3753 }], (o = [{ 3754 key: "content", get: function () { 3755 return e.prototype.i18n.call(this, H) 3756 } 3757 }]) && L(r.prototype, o), i && L(r, i), a 3758 }(y), function (e) { 3759 var t, n; 3760 3761 function r() { 3762 var t = { 3763 tag: "p", 3764 attrs: {className: ""}, 3765 config: {label: h.a.get("controls.html.paragraph"), hideLabel: !0, editableContent: !0}, 3766 meta: {group: "html", icon: "paragraph", id: "paragraph"}, 3767 content: "Eklemek istediÄiniz paragraf yazısını buraya çift tıklayıp yazabilirsiniz." 3768 }; 3769 return e.call(this, t) || this 3770 } 3771 3772 return n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r 3773 }(y), function (e) { 3774 var t, n; 3775 3776 function r() { 3777 var t = {tag: "hr", config: {label: h.a.get("controls.html.divider"), hideLabel: !0}, meta: {group: "html", icon: "divider", id: "divider"}}; 3778 return e.call(this, t) || this 3779 } 3780 3781 return n = e, (t = r).prototype = Object.create(n.prototype), (t.prototype.constructor = t).__proto__ = n, r 3782 }(y)], I = Object.freeze({ 3783 sortable: !0, 3784 elementOrder: {}, 3785 groupOrder: [], 3786 groups: [{id: "layout", label: "controls.groups.layout", elementOrder: ["row", "column"]}, {id: "common", label: "controls.groups.form", elementOrder: ["button", "checkbox"]}, { 3787 id: "html", 3788 label: "controls.groups.html", 3789 elementOrder: ["header", "block-text"] 3790 }], 3791 disable: {groups: [], elements: [], formActions: []}, 3792 elements: [], 3793 container: null, 3794 panels: {displayType: "slider"} 3795 }); 3796 3797 function V(e, t) { 3798 var n = Object.keys(e); 3799 if (Object.getOwnPropertySymbols) { 3800 var r = Object.getOwnPropertySymbols(e); 3801 t && (r = r.filter(function (t) { 3802 return Object.getOwnPropertyDescriptor(e, t).enumerable 3803 })), n.push.apply(n, r) 3804 } 3805 return n 3806 } 3807 3808 function B(e) { 3809 for (var t = 1; t < arguments.length; t++) { 3810 var n = null != arguments[t] ? arguments[t] : {}; 3811 t % 2 ? V(Object(n), !0).forEach(function (t) { 3812 q(e, t, n[t]) 3813 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V(Object(n)).forEach(function (t) { 3814 Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) 3815 }) 3816 } 3817 return e 3818 } 3819 3820 function F(t, e) { 3821 if (null == t) return {}; 3822 var n, r, o = {}, i = Object.keys(t); 3823 for (r = 0; r < i.length; r++) n = i[r], 0 <= e.indexOf(n) || (o[n] = t[n]); 3824 return o 3825 } 3826 3827 function q(t, e, n) { 3828 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 3829 } 3830 3831 var W = [].concat(z, R, x), U = function () { 3832 function t() { 3833 var a = this; 3834 q(this, "applyControlEvents", function (t) { 3835 var e = t.clone.querySelector("button"); 3836 Object.keys(a.controlEvents).map(function (t) { 3837 return e.addEventListener(t, a.controlEvents[t]) 3838 }) 3839 }), q(this, "groupLabel", function (t) { 3840 return h.a.get(t) || t || "" 3841 }), q(this, "addElement", function (t) { 3842 var e = Object(s.d)(a.get(t), "controlData"), n = e.meta, r = n.group, o = n.id, i = { 3843 row: function () { 3844 return O.d.active.addChild() 3845 }, column: function () { 3846 return i.row().addChild() 3847 }, field: function (t) { 3848 return i.column().addChild(t) 3849 } 3850 }; 3851 return "layout" !== r ? i.field(e) : i[o.replace("layout-", "")]() 3852 }), q(this, "applyOptions", function (t) { 3853 void 0 === t && (t = {}); 3854 var e = Object(l.h)(I, t), n = e.container, r = e.elements, o = e.groupOrder, i = F(e, ["container", "elements", "groupOrder"]); 3855 a.container = n, a.groupOrder = Object(l.m)(o.c
3855oncat(["common", "html", "layout"])), a.elements = r.concat(W), a.options = i 3856 }), this.data = new Map, this.controlEvents = { 3857 focus: function (t) { 3858 var e = t.target.closest("." + w.o); 3859 return e && a.panels.nav.refresh(Object(s.f)(e)) 3860 }, click: function (t) { 3861 var e = t.target; 3862 return a.addElement(e.parentElement.id) 3863 } 3864 } 3865 } 3866 3867 var e = t.prototype; 3868 return e.init = function (t, e) { 3869 return void 0 === e && (e = !1), this.applyOptions(t), this.registerControls(), this.buildDOM(e), this 3870 }, e.registerControls = function () { 3871 var l = this; 3872 return this.controls = this.elements.map(function (t) { 3873 var e = "function" == typeof t, n = e ? new t : new y(t), r = n.controlData, o = r.meta, i = r.config, a = e ? i.label : h.a.get(i.label) || i.label, s = l.add(n).id, 3874 c = {tag: "button", attrs: {type: "button", class:"btn btn-default"}, content: [{tag: "span", className: "control-icon", children: v.a.icon(o.icon)}, a], action: l.controlEvents}; 3875 return n.dom = v.a.create({tag: "li", id: s, className: ["field-control", o.group + "-control", o.id + "-control"], content: c, meta: o}), n.dom 3876 }), this.controls 3877 }, e.groupElements = function () { 3878 var i = this, t = this.options.groups.slice(), r = this.controls.slice(), a = []; 3879 return (t = (t = Object(s.j)(t, this.groupOrder, "id")).filter(function (t) { 3880 return Object(l.g)(t.id, i.options.disable.groups) 3881 })).map(function (o) { 3882 var t = {tag: "ul", attrs: {className: w.o, id: o.id + "-" + w.o}, config: {label: i.groupLabel(o.label)}}; 3883 if (i.options.elementOrder[o.id]) { 3884 var e = i.options.elementOrder[o.id], n = Object(l.m)(e.concat(o.elementOrder)); 3885 o.elementOrder = n 3886 } 3887 return r = Object(s.j)(r, o.elementOrder, "meta.id"), t.content = r.filter(function (t) { 3888 var e, n = i.get(t.id).controlData, r = n.meta.id || ""; 3889 return (e = [Object(l.g)(r, i.options.disable.elements), n.meta.group === o.id, !a.includes(n.meta.id)].every(function (t) { 3890 return !0 === t 3891 })) && a.push(r), e 3892 }), t 3893 }) 3894 }, e.add = function (t) { 3895 void 0 === t && (t = Object.create(null)); 3896 var e = t, n = e.id, r = F(e, ["id"]), o = n || Object(l.n)(), i = a()(r); 3897 return this.data.set(o, i), B({id: o}, i) 3898 }, e.get = function (t) { 3899 return a()(this.data.get(t)) 3900 }, e.formActions = function () { 3901 var o = this; 3902 if (!0 === this.options.disable.formActions) return null; 3903 var t = B({}, v.a.btnTemplate({content: [v.a.icon("bin"), h.a.get("clear")], title: h.a.get("clearAll")}), { 3904 className: ["btn btn-secondary"], action: { 3905 click: function (e) { 3906 O.c.size ? (c.a.confirmClearAll = new window.CustomEvent("confirmClearAll", { 3907 detail: { 3908 confirmationMessage: h.a.get("confirmClearAll"), clearAllAction: function () { 3909 O.d.clearAll().then(function () { 3910 var t = {src: e.target}; 3911 c.a.formeoCleared(t) 3912 }) 3913 }, btnCoords: v.a.coords(e.target) 3914 } 3915 }), document.dispatchEvent(c.a.confirmClearAll)) : window.alert(h.a.get("cannotClearFields")) 3916 } 3917 } 3918 }), e = B({}, v.a.btnTemplate({content: [v.a.icon("floppy-disk"), h.a.get("save")], title: h.a.get("save")}), { 3919 className: ["btn btn-primary"], action: { 3920 click: function (t) { 3921 var e = t.target, n = O.e.formData, r = { 3922 action: function () { 3923 }, coords: v.a.coords(e), message: "", button: e 3924 }; 3925 return i.a.click.btn(r), i.a.save.form(n) 3926 } 3927 } 3928 }), n = { 3929 className: "form-actions btn-group", content: Object.entries({clearBtn: t, saveBtn: e}).reduce(function (t, e) { 3930 var n = e[0], r = e[1]; 3931 return o.options.disable.formActions.includes(n) || t.push(r), t 3932 }, []) 3933 }; 3934 return n 3935 }, e.buildDOM = function (t) { 3936 var i = this, e = this.groupElements(), n = this.formActions(), r = this.options.panels.displayType; 3937 this.panels = new m.a({panels: e, type: "controls", displayType: r}); 3938 var o = ["control-groups", "formeo-panels-wrap", "panel-count-" + e.length], a = v.a.create({className: o, content: [this.panels.panelNav, this.panels.panelsWra
3938p]}), 3939 s = "formeo-controls"; 3940 t && (s += " formeo-sticky"); 3941 var c = v.a.create({className: s, content: [a, n]}), l = c.getElementsByClassName("control-group"); 3942 this.dom = c; 3943 var u = (this.groups = l)[0]; 3944 this.currentGroup = u, this.actions = { 3945 filter: function (t) { 3946 var e = "" !== t, n = i.controls, r = a.querySelector(".filtered-term"); 3947 if (v.a.toggleElementsByStr(n, t), e) { 3948 var o = h.a.get("controls.filteringTerm", t); 3949 c.classList.add("filtered"), r ? r.textContent = o : (r = v.a.create({tag: "h5", className: "filtered-term", content: o}), a.insertBefore(r, a.firstChild)) 3950 } else r && (c.classList.remove("filtered"), r.remove()) 3951 }, addElement: this.addElement, addGroup: function (t) { 3952 return console.log(t) 3953 } 3954 }; 3955 for (var d = function (t) { 3956 var n = "formeo-controls-" + l[t]; 3957 i.options.sortable || window.localStorage.removeItem(n), p.a.create(l[t], { 3958 animation: 150, 3959 forceFallback: !0, 3960 fallbackClass: "control-moving", 3961 fallbackOnBody: !0, 3962 group: {name: "controls", pull: "clone", put: !1}, 3963 onRemove: i.applyControlEvents, 3964 onStart: function (t) { 3965 var e = t.item, n = i.get(e.id).controlData; 3966 i.options.ghostPreview && (e.innerHTML = "", e.appendChild(new g.a(n).preview)) 3967 }, 3968 sort: i.options.sortable, 3969 store: { 3970 get: function () { 3971 var t = window.localStorage.getItem(n); 3972 return t ? t.split("|") : [] 3973 }, set: function (t) { 3974 var e = t.toArray(); 3975 window.localStorage.setItem(n, e.join("|")) 3976 } 3977 } 3978 }) 3979 }, f = l.length - 1; 0 <= f; f--) d(f); 3980 return c 3981 }, t 3982 }(); 3983 e.a = new U 3984 }, function (t, e) { 3985 var n = Array.isArray; 3986 t.exports = n 3987 }, function (t, e, n) { 3988 var r = n(105), o = n(111); 3989 t.exports = function (t, e) { 3990 var n = o(t, e); 3991 return r(n) ? n : void 0 3992 } 3993 }, function (t, e, n) { 3994 "use strict"; 3995 var r = n(12), o = n.n(r), i = n(3), a = n.n(i), s = n(1), c = n(2), l = n(6), u = { 3996 add: { 3997 attr: function (t) { 3998 var e, n = window.prompt(t.message.attr); 3999 if (n && t.isDisabled(n)) return window.alert(a.a.get("attributeNotPermitted", n || "")), d.add.attrs(t); 4000 n && (e = String(window.prompt(t.message.value, "")), t.addAction(n, e)) 4001 }, option: function (t) { 4002 t.addAction() 4003 }, condition: function (t) { 4004 t.addAction(t) 4005 } 4006 }, click: { 4007 btn: function (t) { 4008 t.action() 4009 } 4010 }, save: {form: o.a} 4011 }, d = { 4012 init: function (n) { 4013 var t = Object.keys(u); 4014 return this.opts = t.reduce(function (t, e) { 4015 return t[e] = Object.assign({}, u[e], n[e]), t 4016 }, n), this 4017 }, add: { 4018 attrs: function (t) { 4019 return d.opts.add.attr(t) 4020 }, options: function (t) { 4021 return d.opts.add.option(t) 4022 }, conditions: function (t) { 4023 return t.template = Object(s.n)(), d.opts.add.condition(t) 4024 } 4025 }, click: { 4026 btn: function (t) { 4027 return d.opts.click.btn(t) 4028 } 4029 }, save: { 4030 form: function (t) { 4031 return d.opts.sessionStorage && c.l.set(s.F, t), l.a.formeoSaved({formData: t}), d.opts.save.form(t) 4032 } 4033 } 4034 }; 4035 e.a = d 4036 }, function (t, e, n) { 4037 var r = n(23), o = n(107), i = n(108), a = r ? r.toStringTag : void 0; 4038 t.exports = function (t) {
4039 return null == t ? void 0 === t ? "[object Undefined]" : "[object Null]" : a && a in Object(t) ? o(t) : i(t) 4040 } 4041 }, function (t, e, n) { 4042 "use strict"; 4043 n.d(e, "a", function () { 4044 return o 4045 }); 4046 var r = n(27), u = n.n(r), i = n(2), d = n(4), f = n(6), a = n(1); 4047 4048 function s(t, e) { 4049 for (var n = 0; n < e.length; n++) { 4050 var r = e[n]; 4051 r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) 4052 } 4053 } 4054 4055 function c(t, e, n) { 4056 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 4057 } 4058 4059 var o = function () { 4060 function t(t, e) { 4061 var o = this; 4062 void 0 === e && (e = Object.create(null)), c(this, "toJSON", function (t, e) { 4063 return JSON.stringify(t, null, e) 4064 }), c(this, "get", function (t) { 4065 return Object(d.d)(o.data, t) 4066 }), c(this, "getChangeType", function (e, n) { 4067 var t = a.d.find(function (t) { 4068 return (0, t.condition)(e, n) 4069 }) || {type: "unknown"}; 4070 return t.desc = "added" === !t.type ? e + " to " + n : n, t 4071 }), c(this, "add", function (t, e) { 4072 void 0 === e && (e = Object.create(null)); 4073 var n = e.id, r = t || n || Object(i.n)(); 4074 return o.set(r, e) 4075 }), c(this, "remove", function (t) { 4076 var e = t.split("."), n = e.pop(), r = o.get(e); 4077 return Array.isArray(r) ? r.splice(Number(n), 1) : delete r[n], r 4078 }), c(this, "getData", function () { 4079 return Object.entries(o.data).reduce(function (t, e) { 4080 var n = e[0], r = e[1]; 4081 return t[n] = (null == r ? void 0 : r.data) ? r.getData() : r, t 4082 }, {}) 4083 }), c(this, "setCallbacks", {}), c(this, "configVal", Object.create(null)), this.name = t, this.data = e, this.dataPath = "" 4084 } 4085 4086 var e, n, r, o = t.prototype; 4087 return o.set = function (t, e) { 4088 var n = this, r = Object(d.d)(this.data, t); 4089 if (u()(r, e)) return this.data; 4090 var o = Object(d.k)(this.data, t, e), i = Array.isArray(t) ? t.join(".") : t, a = Object.keys(this.setCallbacks).filter(function (t) { 4091 return new RegExp(t).test(i) 4092 }), s = {newVal: e, oldVal: r, path: t}; 4093 if (a.forEach(function (t) { 4094 return n.setCallbacks[t].forEach(function (t) { 4095 return t(s) 4096 }) 4097 }), !this.disableEvents) { 4098 var c = this.getChangeType(r, e), 4099 l = {entity: this, dataPath: this.dataPath.replace(/\.+$/, ""), changePath: this.dataPath + t, value: e, data: o, change: c.type + ": " + c.desc, src: this.dom}; 4100 r && (l.previousValue = r), f.a.formeoUpdated(l) 4101 } 4102 return o 4103 }, o.addSetCallback = function (t, e) { 4104 this.setCallbacks[t] ? this.setCallbacks[t].push(e) : this.setCallbacks[t] = [e] 4105 }, o.removeSetCallback = function (t, e) { 4106 this.setCallbacks[t] = this.setCallbacks[t].filter(function (t) { 4107 return t !== e 4108 }) 4109 }, o.empty = function () { 4110 this.data = Object.create(null) 4111 }, e = t, (n = [{ 4112 key: "size", get: function () { 4113 return Object.keys(this.data).length 4114 } 4115 }, { 4116 key: "js", get: function () { 4117 return this.data 4118 } 4119 }, { 4120 key: "json", get: function () { 4121 return this.data 4122 } 4123 }]) && s(e.prototype, n), r && s(e, r), t 4124 }() 4125 }, function (t, e) { 4126 t.exports = function (t, e) { 4127 return t === e || t != t && e != e 4128 } 4129 }, function (t, e, n) { 4130 var r = n(10).Symbol; 4131 t.exports = r 4132 }, function (t, e, n) { 4133 var l = n(53), u = n(45); 4134 t.exports = function (t, e, n, r) { 4135 var o = !n; 4136 n || (n = {});
vendor: 4,508 bytes, lines 4137-4161
4137 for (var i = -1, a = e.length; ++i < a;) { 4138 var s = e[i], c = r ? r(n[s], t[s], s, n, t) : void 0; 4139 void 0 === c && (c = t[s]), o ? u(n, s, c) : l(n, s, c) 4140 } 4141 return n 4142 } 4143 }, function (t, e, n) { 4144 var r = n(151); 4145 t.exports = function (t) { 4146 return null == t ? "" : r(t) 4147 } 4148 }, function (t, e, n) { 4149 var i = n(169), a = n(9); 4150 t.exports = function (t, e, n) { 4151 var r = !0, o = !0; 4152 if ("function" != typeof t) throw new TypeError("Expected a function"); 4153 return a(n) && (r = "leading" in n ? !!n.leading : r, o = "trailing" in n ? !!n.trailing : o), i(t, e, {leading: r, maxWait: e, trailing: o}) 4154 } 4155 }, function (t, e, n) { 4156 var r = n(172); 4157 t.exports = function (t, e) { 4158 return r(t, e) 4159 } 4160 }, function (t) { 4161 t.exports = JSON.parse('{"name":"formeo","version":"1.6.2","main":"dist/formeo.min.js","files":["dist/*","demo/**/*"],"homepage":"https://formeo.io","repository":{"url":"https://github.com/Draggable/formeo","type":"git"},"author":"Draggable https://draggable.io","contributors":[{"name":"Kevin Chappell","email":"[email protected]","url":"https://kevin-chappell.com"}],"bugs":{"url":"https://github.com/draggable/formeo/issues"},"description":"A zero dependency JavaScript module for drag and drop form creation.","keywords":["drag and drop","form builder","form maker","forms"],"license":"MIT","ignore":["**/*","node_modules","test"],"config":{"files":{"test":["test/**/*.spec.js"],"formeo-editor":{"js":"src/js/editor.js"},"formeo-renderer":{"js":"src/js/renderer.js"},"site":["demo/assets/sass/site.scss"]}},"babel":{"presets":[["@babel/preset-env",{"targets":{"browsers":[">1%"]},"loose":true}]],"comments":false,"plugins":["@babel/plugin-proposal-object-rest-spread","@babel/plugin-proposal-class-properties","@babel/plugin-proposal-optional-chaining"]},"scripts":{"analyze":"webpack --mode production -p --progress --config tools/webpack.config --analyze","build":"npm-run-all -p build:icons build:formeo","build:formeo":"cross-env NODE_ENV=production webpack --mode production -p --progress --config tools/webpack.config","build:icons":"babel-node ./tools/generate-sprite","lint":"eslint ./src --ext .js || true","test":"jest src/","test:ci":"yarn test --coverage","start":"npm-run-all build:icons start:demo","start:demo":"cross-env NODE_ENV=development webpack-dev-server --mode development --open --config tools/webpack.config --copy","semantic-release":"semantic-release --ci --debug","travis-deploy-once":"travis-deploy-once --pro","prepush":"yarn test","defaults":"webpack-defaults"},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.4.0","@babel/node":"^7.2.2","@babel/plugin-proposal-class-properties":"^7.4.0","@babel/plugin-proposal-object-rest-spread":"^7.4.0","@babel/plugin-proposal-optional-chaining":"^7.9.0","@babel/preset-env":"^7.4.2","@commitlint/cli":"^7.5.2","@commitlint/config-angular":"^7.5.0","@semantic-release/changelog":"3.0.0","@semantic-release/git":"7.0.1","@semantic-release/npm":"5.0.2","autoprefixer":"8.4.1","babel-eslint":"^10.0.1","babel-jest":"^24.5.0","babel-loader":"^8.0.5","clean-webpack-plugin":"1.0.0","compression-webpack-plugin":"1.1.11","copy-webpack-plugin":"4.6.0","cross-env":"^5.2.0","css-loader":"0.28.11","enzyme":"^3.9.0","enzyme-to-json":"3.3.4","eslint":"4.19.1","eslint-config-prettier":"2.9.0","eslint-config-standard":"11.0.0","eslint-loader":"2.0.0","eslint-plugin-css-modules":"2.7.5","eslint-plugin-import":"2.11.0","eslint-plugin-jest":"21.20.2","eslint-plugin-node":"6.0.1","eslint-plugin-prettier":"2.6.0","eslint-plugin-promise":"3.7.0","eslint-plugin-react":"7.7.0","eslint-plugin-standard":"3.1.0","formeo-i18n":"^2.1.3","fs-extra":"^7.0.1","html-webpack-harddisk-plugin":"1.0.1","html-webpack-plugin":"3.2.0","husky":"^2.3.0","jest":"^24.5.0","lint-staged":"7.3.0","lodash":"^4.17.11","mi18n":"^0.4.8","mini-css-extract-plugin":"^0.9.0","node-sass":"^4.11.0","npm-run-all":"^4.1.5","optimize-css-assets-webpack-plugin":"5.0.1","postcss-loader":"2.1.4","prettier":"1.14.2","raw-loader":"^2.0.0","sass-loader":"7.0.1","semantic-release":"^15.13.4","style-loader":"0.21.0","svg-sprite":"^1.5.0","travis-deploy-once":"^5.0.11","uglifyjs-webpack-plugin":"2.0.1","uuid":"3.3.2","webpack":"^4.32.2","webpack-bundle-analyzer":"^3.3.2","webpack-cli":"^3.3.2","webpack-dev-server":"^3.4.1"},"engines":{}
4161,"dependencies":{"sortablejs":"1.12.0"},"lint-staged":{"src/**/*.js":["prettier --config package.json --write","git add"]},"prettier":{"singleQuote":true,"trailingComma":"es5","printWidth":120,"semi":false},"jest":{"browser":true,"setupFiles":["<rootDir>/jest.setup.js"],"snapshotSerializers":["enzyme-to-json/serializer"],"transform":{"^.+\\\\.(js|jsx|ts|tsx)$":"babel-jest"},"transformIgnorePatterns":["node_modules/"],"coverageReporters":["text"],"testRegex":"src/.*\\\\.spec\\\\.js$","testURL":"http://localhost"},"release":{"branch":"master","verifyConditions":["@semantic-release/changelog","@semantic-release/npm","@semantic-release/git"],"prepare":["@semantic-release/changelog","@semantic-release/npm","@semantic-release/git"]},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged","pre-push":"npm run lint"}},"commitlint":{"extends":["@commitlint/config-angular"],"rules":{"type-enum":[2,"always",["build","chore","ci","docs","feat","fix","perf","refactor","revert","style","test"]]}}}') 4162 }, function (t, e, n) { 4163 var r = n(95), o = n(96), i = n(97), a = n(98), s = n(99); 4164 4165 function c(t) { 4166 var e = -1, n = null == t ? 0 : t.length; 4167 for (this.clear(); ++e < n;) { 4168 var r = t[e]; 4169 this.set(r[0], r[1]) 4170 } 4171 } 4172 4173 c.prototype.clear = r, c.prototype.delete = o, c.prototype.get = i, c.prototype.has = a, c.prototype.set = s, t.exports = c 4174 }, function (t, e, n) { 4175 var r = n(22); 4176 t.exports = function (t, e) { 4177 for (var n = t.length; n--;) if (r(t[n][0], e)) return n; 4178 return -1 4179 } 4180 }, function (t, e, n) { 4181 var r = n(18)(Object, "create"); 4182 t.exports = r 4183 }, function (t, e, n) { 4184 var r = n(120); 4185 t.exports = function (t, e) { 4186 var n = t.__data__; 4187 return r(e) ? n["string" == typeof e ? "string" : "hash"] : n.map 4188 } 4189 }, function (t, e, n) { 4190 var r = n(43), o = n(73); 4191 t.exports = function (t) { 4192 return null != t && o(t.length) && !r(t) 4193 } 4194 }, function (t, s, c) { 4195 (function (t) { 4196 var e = c(10), n = c(130), r = s && !s.nodeType && s, o = r && "object" == typeof t && t && !t.nodeType && t, i = o && o.exports === r ? e.Buffer : void 0, 4197 a = (i ? i.isBuffer : void 0) || n; 4198 t.exports = a 4199 }).call(this, c(46)(t)) 4200 }, function (t, e, n) { 4201 var r = n(75), o = n(135), i = n(33); 4202 t.exports = function (t) { 4203 return i(t) ? r(t, !0) : o(t) 4204 } 4205 }, function (t, e, n) { 4206 var r = n(20), o = n(15); 4207 t.exports = function (t) { 4208 return "symbol" == typeof t || o(t) && "[object Symbol]" == r(t) 4209 } 4210 }, function (t, e, n) { 4211 var r = n(186), o = n(42), i = n(187), a = n(188), s = n(189), c = n(20), l = n(63), u = "[object Map]", d = "[object Promise]", f = "[object Set]", p = "[object WeakMap]", 4212 h = "[object DataView]", v = l(r), m = l(o), g = l(i), b = l(a), y = l(s), w = c; 4213 (r && w(new r(new ArrayBuffer(1))) != h || o && w(new o) != u || i && w(i.resolve()) != d || a && w(new a) != f || s && w(new s) != p) && (w = function (t) { 4214 var e = c(t), n = "[object Object]" == e ? t.constructor : void 0, r = n ? l(n) : ""; 4215 if (r) switch (r) { 4216 case v: 4217 return h; 4218 case m: 4219 return u; 4220 case g: 4221 return d; 4222 case b: 4223 return f; 4224 case y: 4225 return p 4226 } 4227 return e 4228 }), t.exports = w 4229 }, function (t, e, n) { 4230 var r = n(55)(function (t, e, n) { 4231 return t + (n ? " " : "") + e.toLowerCase() 4232 }); 4233 t.exports = r 4234 }, function (t, e, n) { 4235 "use strict"; 4236 n.d(e, "a", function () { 4237 return o 4238 }); 4239 var r = n(3), i = n.n(r), a = n(13), s = n(4), g = n(0), b = n(1), c = n(2); 4240 4241 function l(e, t) { 4242 var n = Object.keys(e); 4243 if (Object.getOwnPropertySymbols) { 4244 var r = Object.getOwnPropertySymbols(e); 4245 t && (r = r.filter(function (t) { 4246 return Object.getOwnPropertyDescriptor(e, t).enumerable 4247 })), n.push.apply(n, r) 4248 } 4249 return n 4250 } 4251 4252 function u(t, e) { 4253 for (var n = 0; n < e.length; n++) { 4254 var r = e[n]; 4255 r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) 4256 } 4257 } 4258 4259 function d(t, e, n) { 4260 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 4261 } 4262 4263 var f = Object.freeze({type: "field", displayType: "slider"}), y = function (t) {
4264 return {transform: "translateX(" + (t ? t + "px" : 0) + ")"} 4265 }, o = function () { 4266 function t(t) { 4267 var n = this; 4268 d(this, "toggleTabbedLayout", function () { 4269 n.getPanelDisplay(); 4270 var t = n.isTabbed; 4271 return n.panelsWrap.parentElement.classList.toggle("tabbed-panels", t), t && n.panelNav.removeAttribute("style"), t 4272 }), d(this, "resizePanels", function () { 4273 n.toggleTabbedLayout(); 4274 var t = n.panelsWrap.style, e = g.a.getStyle(n.currentPanel, "height"); 4275 return t.height = e 4276 }), this.opts = Object(c.h)(f, t), this.panelDisplay = this.opts.displayType, this.activePanelIndex = 0, this.panelNav = this.createPanelNav(); 4277 var e = this.createPanelsWrap(); 4278 this.nav = this.navActions(); 4279 var r = new window.ResizeObserver(function (t) { 4280 var e = t[0].contentRect.width; 4281 n.currentWidth !== e && (n.toggleTabbedLayout(), n.currentWidth = e, n.nav.setTranslateX(n.activePanelIndex, !1)) 4282 }), o = window.setTimeout(function () { 4283 r.observe(e), window.clearTimeout(o) 4284 }, b.c) 4285 } 4286 4287 var e, n, r, o = t.prototype; 4288 return o.getPanelDisplay = function () { 4289 var t = this.panelsWrap, e = 390 < parseInt(g.a.getStyle(t, "width")) ? "tabbed" : "slider", n = "auto" === this.opts.displayType; 4290 return this.panelDisplay = n ? e : this.opts.displayType || f.displayType, this.panelDisplay 4291 }, o.createPanelsWrap = function () { 4292 var t = g.a.create({ 4293 className: "panels", content: this.opts.panels.map(function (t) { 4294 t.config.label; 4295 return function (t, e) { 4296 if (null == t) return {}; 4297 var n, r, o = {}, i = Object.keys(t); 4298 for (r = 0; r < i.length; r++) n = i[r], 0 <= e.indexOf(n) || (o[n] = t[n]); 4299 return o 4300 }(t, ["config"]) 4301 }) 4302 }); 4303 return "field" === this.opts.type && this.sortableProperties(t), this.panelsWrap = t, this.panels = t.children, this.currentPanel = this.panels[this.activePanelIndex], t 4304 }, o.sortableProperties = function (t) { 4305 var n = this, e = t.getElementsByClassName("field-edit-group"); 4306 return s.b.forEach(e, function (t, e) { 4307 t.fieldId = n.opts.id, t.isSortable && a.a.create(t, { 4308 animation: 150, 4309 group: {name: "edit-" + t.editGroup, pull: !0, put: ["properties"]}, 4310 sort: !0, 4311 handle: ".prop-order", 4312 onSort: function (t) { 4313 n.propertySave(t.to), n.resizePanels() 4314 } 4315 }) 4316 }) 4317 }, o.createPanelNavLabels = function () { 4318 var r = this, t = this.opts.panels.map(function (t) { 4319 return { 4320 tag: "h5", action: { 4321 click: function (t) { 4322 var e = Object(s.f)(t.target, t.target.parentElement); 4323 r.currentPanel = r.panels[e]; 4324 var n = t.target.parentElement.childNodes; 4325 r.nav.refresh(e), g.a.removeClasses(n, "active-tab"), t.target.classList.add("active-tab") 4326 } 4327 }, content: t.config.label 4328 } 4329 }), e = {className: "panel-labels", content: {content: t}}; 4330 return t[0].className = "active-tab", g.a.create(e) 4331 }, o.createPanelNav = function () { 4332 var e = this; 4333 this.labels = this.createPanelNavLabels(); 4334 var t = { 4335 tag: "button", 4336 attrs: {className: "next-group", title: i.a.get("controlGroups.nextGroup"), type: "button"}, 4337 dataset: {toggle: "tooltip", placement: "top"}, 4338 action: { 4339 click: function (t) { 4340 return e.nav.nextGroup(t) 4341 } 4342 }, 4343 content: g.a.icon(`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16"> 4344 <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/> 4345</svg>`) 4346 }, n = { 4347 tag: "button", 4348 attrs: {className: "prev-group", title: i.a.get("controlGroups.prevGroup"), type: "button"}, 4349 dataset: {toggle: "tooltip", placement: "top"}, 4350 action: { 4351 click: function (t) { 4352 return e.nav.prevGroup(t) 4353 } 4354 }, 4355 content: g.a.icon(`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16"> 4356 <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/> 4357</svg>`) 4358 };
4359 return g.a.create({tag: "nav", attrs: {className: "panel-nav"}, content: [n, this.labels, t]}) 4360 }, o.navActions = function () { 4361 var p = this, e = {}, h = this.currentPanel.parentElement, v = this.labels.firstChild, n = this.currentPanel.parentElement.childNodes; 4362 this.activePanelIndex = Object(s.f)(this.currentPanel, h); 4363 var r = {nav: 0, panel: 0}, m = function (e) { 4364 for (var t = 1; t < arguments.length; t++) { 4365 var n = null != arguments[t] ? arguments[t] : {}; 4366 t % 2 ? l(Object(n), !0).forEach(function (t) { 4367 d(e, t, n[t]) 4368 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l(Object(n)).forEach(function (t) { 4369 Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) 4370 }) 4371 } 4372 return e 4373 }({}, r), o = function (t) { 4374 var e = v.children; 4375 return g.a.removeClasses(n, "active-panel"), g.a.removeClasses(e, "active-tab"), p.currentPanel = n[t], p.currentPanel.classList.add("active-panel"), e[t].classList.add("active-tab"), p.currentPanel 4376 }, i = function (t) { 4377 var e = t.offset, n = t.reset, r = t.duration, o = void 0 === r ? b.b : r, i = t.animate, a = void 0 === i ? !p.isTabbed : i, s = [y(m.panel), y(e.panel)], 4378 c = [y(m.nav), y(p.isTabbed ? 0 : e.nav)]; 4379 if (n) { 4380 var l = s[0], u = c[0]; 4381 s.push(l), c.push(u) 4382 } 4383 var d = {easing: "ease-in-out", duration: a ? o : 0, fill: "forwards"}, f = h.animate(s, d); 4384 v.animate(c, d); 4385 f.addEventListener("finish", function t() { 4386 p.panelsWrap.style.height = g.a.getStyle(p.currentPanel, "height"), f.removeEventListener("finish", t), n || (m = e) 4387 }) 4388 }; 4389 return e.setTranslateX = function (t, e) { 4390 var n; 4391 void 0 === e && (e = !0), n = t || p.activePanelIndex, r = {nav: -v.offsetWidth * n, panel: -h.offsetWidth * n}, i({offset: r, animate: e}) 4392 }, e.refresh = function (t) { 4393 void 0 !== t && (p.activePanelIndex = t, o(t)), p.resizePanels(), e.setTranslateX(p.activePanelIndex, !1) 4394 }, e.nextGroup = function () { 4395 var t = p.activePanelIndex + 1; 4396 if (t !== n.length) { 4397 var e = o(t); 4398 r = {nav: -v.offsetWidth * t, panel: -e.offsetLeft}, i({offset: r}), p.activePanelIndex++ 4399 } else r = {nav: m.nav - 8, panel: m.panel - 8}, i({offset: r, reset: !0}); 4400 return p.currentPanel 4401 }, e.prevGroup = function () { 4402 if (0 !== p.activePanelIndex) { 4403 var t = p.activePanelIndex - 1, e = o(t); 4404 r = {nav: -v.offsetWidth * t, panel: -e.offsetLeft}, i({offset: r}), p.activePanelIndex-- 4405 } else i({offset: r = {nav: 8, panel: 8}, reset: !0}) 4406 }, e 4407 }, e = t, (n = [{ 4408 key: "isTabbed", get: function () { 4409 return "tabbed" === this.panelDisplay 4410 } 4411 }]) && u(e.prototype, n), r && u(e, r), t 4412 }() 4413 }, function (t, e, n) { 4414 "use strict"; 4415 var r = n(3), l = n.n(r), o = n(8), d = n.n(o), i = n(26), s = n.n(i), f = n(0), u = n(39), p = n(2), c = n(19), a = n(38), h = n.n(a), v = n(4), m = n(7), g = n(1), b = n(6), y = n(5); 4416 var w, O = "f-autocomplete", x = "highlight-component", j = Date.now(), E = function (t) { 4417 var e = t.name, n = t.id, r = function (t, e) { 4418 if (null == t) return {}; 4419 var n, r, o = {}, i = Object.keys(t); 4420 for (r = 0; r < i.length; r++) n = i[r], 0 <= e.indexOf(n) || (o[n] = t[n]); 4421 return o 4422 }(t, ["name", "id"]); 4423 return ["config.label", "attrs.id", "meta.id"].reduce(function (t, e) { 4424 return t || (t = r.get(e)), t 4425 }, null) || "external" === e && function () { 4426 for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n]; 4427 return l.a.get(e.join(".")) || d()(e.join(" ")) 4428 }(e, n) 4429 }, C = function () { 4430 function t(t, e, n) { 4431 this.key = t, this.className = t.replace(/\./g, "-"), this.value = e, this.events = [], this.i18nKey = n, this.build() 4432 } 4433 4434 var e = t.prototype; 4435 return e.build = function () { 4436 var o = this, i = function (t) { 4437 var e = o.list, n = o.getActiveOption(), r = new Map([[38, function () { 4438 var t = o.getPreviousOption(n); 4439 t && o.selectOption(t) 4440 }], [40, function () { 4441 var t = o.getNextOption(n); 4442 t && o.selectOption(t) 4443 }], [13, function () { 4444 n && (o.selectOption(n), o.setValue(n), "none" === e.style.display ? o.showList(n) : o.hideList()), t.preventDefault() 4445 }], [27, function () { 4446 o.hideList() 4447 }]]).get(t.keyCode); 4448 return r || (r = function () { 4449 return !1 4450 }), r() 4451 }, t = { 4452 focus: function (t) { 4453 var e = t.target; 4454 o.updateOptions(), e.parentElement.classList.add(o.className + "-focused"); 4455 var n = f.a.toggleElementsByStr(o.list.querySelectorAll("li"), e.value); 4456 e.addEventListener("keydown", i); 4457 var r = o.list.querySelector(".active-option") || n[0]; 4458 o.showList(r) 4459 }, blur: function (t) { 4460 var e = t.target; 4461 e.parentElement.classList.remove(o.className + "-focused"), e.removeEventListener("keydown", i), o.hideList() 4462 }
4462, input: function (t) { 4463 var e = f.a.toggleElementsByStr(o.list.querySelectorAll("li"), t.target.value); 4464 if (0 === t.target.value.length && o.clearValue(), 0 === e.length) o.hideList(); else { 4465 var n = o.getActiveOption() || e[0]; 4466 o.showList(n) 4467 } 4468 o.hiddenField.value = t.target.value, o.value = t.target.value, o.runEvent("onChange", {target: o.hiddenField}) 4469 } 4470 }; 4471 return this.displayField = f.a.create({ 4472 tag: "input", 4473 autocomplete: "off", 4474 action: t, 4475 attrs: {type: "text", className: O + "-display-field", value: this.label || this.value, placeholder: l.a.get(this.i18nKey + "." + this.key + ".placeholder")} 4476 }), this.hiddenField = f.a.create({tag: "input", attrs: {type: "hidden", className: this.className, value: this.value}}), this.list = f.a.create({ 4477 tag: "ul", 4478 attrs: {className: O + "-list"} 4479 }), this.dom = f.a.create({ 4480 children: [this.displayField, this.hiddenField, this.list], className: this.className, action: { 4481 onRender: function () { 4482 var t = o.value && y.e.getAddress(o.value); 4483 o.label = t && E(t), o.label && (o.displayField.value = o.label), o.updateOptions() 4484 } 4485 } 4486 }), this.dom 4487 }, e.updateOptions = function () { 4488 var e = this, t = Date.now(); 4489 t - j > g.c && (f.a.empty(this.list), this.generateOptions(), j = t), (w || this.generateOptions()).forEach(function (t) { 4490 return e.list.appendChild(t) 4491 }) 4492 }, e.generateOptions = function () { 4493 var l, u, t, o = this, e = (u = [], t = y.e.flatList(), Object.entries(t).map(function (t) { 4494 var n, e = t[0], r = t[1], o = E(r); 4495 if (o) { 4496 var i = {tag: "span", content: " " + d()(r.name), className: "component-type"}, a = r.name + "." + o; 4497 u.push(a); 4498 var s = (n = a, u.reduce(function (t, e) { 4499 return t + (e === n) 4500 }, 0)), c = {tag: "span", content: 1 < s && "(" + s + ")", className: "component-label-count"}; 4501 return f.a.makeOption([e, [o + " ", c, i]], l) 4502 } 4503 }).filter(Boolean)), i = function (t) { 4504 return t.classList.contains("f-autocomplete-list-item") || (t = t.parentElement), t 4505 }; 4506 return w = e.map(function (t) { 4507 var e = t.value, n = t.label[0]; 4508 n = n.trim(); 4509 var r = { 4510 tag: "li", children: t.label, dataset: {value: e, label: n}, className: O + "-list-item", action: { 4511 mousedown: function (t) { 4512 var e = t.target; 4513 e = i(e), o.setValue(e), o.selectOption(e), o.hideList() 4514 }, mouseover: function (t) { 4515 var e = t.target; 4516 e = i(e), o.removeHighlight(), o.highlightComponent(e) 4517 } 4518 } 4519 }; 4520 return f.a.create(r) 4521 }) 4522 }, e.hideList = function (t) { 4523 void 0 === t && (t = this.list), m.a.slideUp(t, g.b), this.removeHighlight() 4524 }, e.showList = function (t, e) { 4525 void 0 === e && (e = this.list), this.selectOption(t), m.a.slideDown(e, g.b) 4526 }, e.getActiveOption = function (t) { 4527 void 0 === t && (t = this.list); 4528 var e = t.getElementsByClassName("active-option")[0]; 4529 return e && "none" !== e.style.display ? e : null 4530 }, e.getPreviousOption = function (t) { 4531 for (var e = t; null != (e = e ? e.previousSibling : null) && "none" === e.style.display;) ; 4532 return e 4533 }, e.getNextOption = function (t) { 4534 for (var e = t; null != (e = e ? e.nextSibling : null) && "none" === e.style.display;) ; 4535 return e 4536 }, e.selectOption = function (t, e) { 4537 void 0 === e && (e = this.list); 4538 for (var n = e.querySelectorAll("li"), r = 0; r < n.length; r++) { 4539 var o = n[r].dataset.value; 4540 if (n[r].classList.remove("active-option"), o) { 4541 var i = y.e.getAddress(o); 4542 i.dom && i.dom.classList.remove(x) 4543 } 4544 } 4545 t && (t.classList.add("active-option"), this.highlightComponent(t)) 4546 }, e.removeHighlight = function () { 4547 for (var t = document.getElementsByClassName(x), e = 0; e < t.length; e++) t[e].classList.remove(x) 4548 }, e.highlightComponent = function (t) { 4549 var e = t.dataset.value; 4550 if (e) { 4551 var n = y.e.getAddress(e); 4552 n.dom && n.dom.classList.add(x) 4553 } 4554 }, e.clearValue = function () { 4555 this.selectOption(null), this.displayField.value = "", this.hiddenField.value = "", this.value = "", this.runEvent("onChange", {target: this.hiddenField}) 4556 }, e.setValue = function (t) { 4557 var e = t.dataset, n = e.label, r = e.value; 4558 this.displayField.value = n, this.hiddenField.value = r, this.value = r, this.runEvent("onChange", {target: this.hiddenField}) 4559 }, e.addEvent = function (t, e) { 4560 this.events.push([t, e]) 4561 }, e.runEvent = function (r, o) {
4562 this.events.forEach(function (t) { 4563 var e = t[0], n = t[1]; 4564 e === r && n(o) 4565 }) 4566 }, t 4567 }(); 4568 4569 function S(t, e) { 4570 for (var n = 0; n < e.length; n++) { 4571 var r = e[n]; 4572 r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) 4573 } 4574 } 4575 4576 function _(e, t) { 4577 var n = Object.keys(e); 4578 if (Object.getOwnPropertySymbols) { 4579 var r = Object.getOwnPropertySymbols(e); 4580 t && (r = r.filter(function (t) { 4581 return Object.getOwnPropertyDescriptor(e, t).enumerable 4582 })), n.push.apply(n, r) 4583 } 4584 return n 4585 } 4586 4587 function P(e) { 4588 for (var t = 1; t < arguments.length; t++) { 4589 var n = null != arguments[t] ? arguments[t] : {}; 4590 t % 2 ? _(Object(n), !0).forEach(function (t) { 4591 A(e, t, n[t]) 4592 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _(Object(n)).forEach(function (t) { 4593 Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) 4594 }) 4595 } 4596 return e 4597 } 4598 4599 function A(t, e, n) { 4600 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 4601 } 4602 4603 var D = function (i, a) { 4604 var t, e, n, r, o, s = (t = i, n = Object(p.f)(t), r = P({"field.property": g.A}, g.B), o = n ? (e = t, y.e.getAddress(e).getData()) : r[t], Object.keys(o).reduce(function (t, e) { 4605 return t[e] = e, t 4606 }, {})); 4607 return Object.entries(s).reduce(function (t, e) { 4608 var n = e[0], r = e[1]; 4609 if ("id" !== n) { 4610 var o = {tag: "option", content: l.a.get(i + "." + n) || h()(n), attrs: {value: r}}; 4611 a === r && (o.attrs.selected = !0), t.push(f.a.create(o)) 4612 } 4613 return t 4614 }, []) 4615 }, k = function (e, t) { 4616 f.a.empty(e), t.forEach(function (t) { 4617 return e.add(t) 4618 }) 4619 }, N = function (t) { 4620 var e = t.key, n = t.value, r = t.type, o = void 0 === r ? "text" : r, i = t.checked, 4621 a = {tag: "input", attrs: {type: o, value: n, placeholder: l.a.get(e + ".placeholder") || d()(e)}, className: e.replace(/\./g, "-"), config: {}}; 4622 return i && (a.attrs.checked = !0), a 4623 }, T = function (t) { 4624 var e = l.a.get(t); 4625 if (e) return e; 4626 var n = t.split("."); 4627 return l.a.get(n[n.length - 1]) 4628 }, z = { 4629 autocomplete: function (t, e, n) { 4630 return new C(t, e, n) 4631 }, string: function (t, e) { 4632 return N({key: t, value: e}) 4633 }, boolean: function (t, e) { 4634 return N({key: t, value: e, type: "selected" === t ? "radio" : "checkbox", checked: e}) 4635 }, number: function (t, e) { 4636 return N({key: t, value: e, type: "number"}) 4637 }, array: function (t, e) { 4638 return void 0 === e && (e = []), {tag: "select", attrs: {placeholder: T("placeholder." + t)}, className: t.replace(/\./g, "-"), options: e} 4639 }, object: function (t) { 4640 return Object.entries(t).map(function (t) { 4641 var e = t[0], n = t[1]; 4642 return z[f.a.childType(n)](e, n) 4643 }) 4644 } 4645 }, L = ["selected", "checked"], M = { 4646 boolean: function (o, i) { 4647 return { 4648 click: function (t) { 4649 var e, n, r = t.target.checked; 4650 "radio" === (null === (e = i.data) || void 0 === e ? void 0 : null === (n = e.attrs) || void 0 === n ? void 0 : n.type) && i.set("options", i.data.options.map(function (t) { 4651 return P({}, t, {selected: !1}) 4652 })), i.set(o, r), i.updatePreview() 4653 } 4654 } 4655 }, string: function (n, r) { 4656 return { 4657 input: function (t) { 4658 var e = t.target.value; 4659 r.set(n, e) 4660 } 4661 } 4662 }, number: function (n, r) { 4663 return { 4664 input: function (t) { 4665 var e = t.target.value; 4666 r.set(n, Number(e)), r.updatePreview() 4667 } 4668 } 4669 }, array: function (n, r) { 4670 return { 4671 change: function (t) { 4672 var e = t.target.value; 4673 r.set(n, e), r.updatePreview() 4674 } 4675 } 4676 }, object: function () { 4677 return {} 4678 } 4679 }, H = function () { 4680 function t(t) {
4681 var d = this, e = t.key, n = t.data, r = t.index, o = t.field; 4682 A(this, "generateConditionFields", function (a, t) { 4683 var r = {tag: "label", className: "condition-label " + a + "-condition-label", content: l.a.get(a) || a}; 4684 return t.map(function (t, o) { 4685 var i = [], e = Object.entries(t).map(function (t) { 4686 var e = t[0], n = t[1], r = d.conditionInput(e, n, a, o); 4687 return r && i.push([r.className, n.trim()].filter(Boolean).join("-")), r 4688 }).filter(Boolean), n = Object(v.j)(e, g.m.map(function (t) { 4689 return "condition-" + t 4690 }), "className||dom.className"); 4691 return d.processConditionUIState(n), o || n.unshift(r), d.itemFieldGroups.push(n), {children: n, className: "f-condition-row " + a + "-condition-row " + i.join(" ")} 4692 }) 4693 }), A(this, "processConditionUIState", function (t) { 4694 var i = function (e) { 4695 return e = e.split("|"), t.filter(function (t) { 4696 return e.includes(t.className) 4697 }) 4698 }, a = function (t) { 4699 t = Array.isArray(t) ? t : [t]; 4700 var e = setTimeout(function () { 4701 t.forEach(function (t) { 4702 t.dom && (t = t.dom), t.style.display = "none" 4703 }), clearTimeout(e) 4704 }, g.a) 4705 }, s = function (t) { 4706 t = Array.isArray(t) ? t : [t]; 4707 var e = setTimeout(function () { 4708 t.forEach(function (t) { 4709 t.dom && (t = t.dom), t.removeAttribute("style") 4710 }), clearTimeout(e) 4711 }, g.a) 4712 }, n = new Map([["condition-source", function (t) { 4713 var e = i("condition-sourceProperty"), n = e[0], r = Object(p.f)(t.value) ? t.value : "field.property", o = D(r, n.value); 4714 return k(n, o), t.value ? s(e) : a(e) 4715 }], ["condition-target", function (t) { 4716 var e = i("condition-targetProperty"); 4717 return Object(p.d)(t.value) && t.value ? s(e) : a(e) 4718 }], ["condition-sourceProperty", function (t) { 4719 var e = i("condition-comparison|condition-targetProperty|condition-target"), n = t.value, r = n.substring(n.lastIndexOf(".") + 1, n.length); 4720 return Object(p.e)(r) ? a(e) : s(e) 4721 }]]); 4722 t.forEach(function (t) { 4723 var e = n.get(t.className); 4724 e && e(t) 4725 }) 4726 }), A(this, "conditionInput", function (t, e, r, n) { 4727 var o = d.field, i = d.itemKey + "." + r + "." + n, a = d.field.id + "." + i, s = o.name + "s." + a + "." + t, c = function (t, e, n) { 4728 var r = D(n || t, e), o = z.array("condition." + t); 4729 o.action = { 4730 change: l, onRender: function (t) { 4731 return l({target: t}) 4732 } 4733 }; 4734 var i = f.a.create(o); 4735 return k(i, r), i 4736 }, l = function (t) { 4737 var e = t.target, n = e.closest(".f-condition-row"), r = new RegExp(e.className + "(?:\\S?)+", "gm"); 4738 n.className = n.className.replace(r, ""), n.classList.add([e.className, e.value].filter(Boolean).join("-")); 4739 var o = {dataPath: s, value: e.value, src: e}; 4740 b.a.formeoUpdated(o), y.e.setAddress(s, e.value); 4741 var i = e.closest(".f-condition-row"), a = Object(v.f)(i); 4742 d.processConditionUIState(d.itemFieldGroups[a]) 4743 }, u = { 4744 comparison: function (t) { 4745 return c("comparison", t) 4746 }, logical: function (t) { 4747 return c("logical", t) 4748 }, source: function (t, e) { 4749 void 0 === e && (e = "source"); 4750 var n = z.autocomplete("condition." + e, t, r); 4751 return y.e.setConditionMap(t, o), n.addEvent("onChange", function (t) { 4752 y.e.removeConditionMap(y.e.getAddress(s)), l(t), y.e.setConditionMap(t.target.value, o) 4753 }), n 4754 }, sourceProperty: function (t) { 4755 return c("sourceProperty", t, "field.property") 4756 }, targetProperty: function (t) { 4757 return c("targetProperty", t, "field.property") 4758 }, target: function (t) { 4759 return u.source(t, "target") 4760 }, value: function (t) { 4761 var e = z.string("condition.value", t);
4762 return e.action = {input: l}, f.a.create(e) 4763 }, assignment: function (t) { 4764 return c("assignment", t) 4765 } 4766 }; 4767 if (u[t]) return u[t](e); 4768 console.error(t + ": invalid condition attribute") 4769 }), this.itemValues = Object(v.j)(Object.entries(n), L, "0"); 4770 var i = e.split("."), a = i[0], s = i[1]; 4771 this.field = o, this.itemKey = e, this.itemIndex = r, this.panelName = a, this.isDisabled = o.isDisabledProp(s, a), this.isHidden = this.isDisabled && o.config.panels[a].hideDisabled, this.isLocked = o.isLockedProp(s, a), this.dom = f.a.create({ 4772 tag: "li", 4773 className: ["field-" + e.replace(/\./g, "-"), "prop-wrap", this.isHidden && "hidden-property"], 4774 children: {className: "field-prop", children: [this.itemInputs, this.itemControls]} 4775 }) 4776 } 4777 4778 var e, n, r; 4779 return t.prototype.itemInput = function (e, t) { 4780 var n = this, r = f.a.childType(t) || "string", o = Object.assign({}, {config: {}, attrs: {}}, z[r](e, t)), i = this.itemKey.replace(/.\d+$/, function (t) { 4781 return t + "." + e 4782 }), a = i.split(".").filter(isNaN).join("."), s = [[].concat(this.itemKey.split("."), [e]), [e]].map(function (t) { 4783 return [n.field.id].concat(t).filter(Boolean).join("-") 4784 }), c = s[0], l = s[1]; 4785 return o.config = Object.assign({}, o.config, { 4786 label: "options" !== this.panelName && T(a), 4787 labelAfter: !1 4788 }), o.attrs = Object.assign({}, o.attrs, { 4789 name: "checkbox" === o.attrs.type ? l + "[]" : l, 4790 id: c, 4791 disabled: this.isDisabled, 4792 locked: this.isLocked 4793 }), o.action = P({}, M[r](i, this.field)), o 4794 }, e = t, (n = [{ 4795 key: "itemInputs", get: function () { 4796 var o = this; 4797 return this.itemFieldGroups = [], { 4798 className: this.panelName + "-prop-inputs prop-inputs f-input-group", children: this.itemValues.map(function (t) { 4799 var e = t[0], n = t[1], r = "conditions" === o.panelName ? o.generateConditionFields(e, n) : o.itemInput(e, n); 4800 return ["selected", "checked"].includes(e) && (r = {className: "f-addon", children: r}), r 4801 }) 4802 } 4803 } 4804 }, { 4805 key: "itemControls", get: function () { 4806 var e = this; 4807 if (this.isLocked) return {className: this.panelName + "-prop-controls prop-controls", content: []}; 4808 var t = { 4809 tag: "button", attrs: {type: "button", className: "btn btn-danger prop-remove prop-control"}, action: { 4810 click: function () { 4811 m.a.slideUp(e.dom, 250, function (t) { 4812 e.field.remove(e.itemKey), f.a.remove(t), e.field.resizePanelWrap() 4813 }) 4814 } 4815 }, content: f.a.icon("remove") 4816 }; 4817 return {className: this.panelName + "-prop-controls prop-controls", content: [t]} 4818 } 4819 }]) && S(e.prototype, n), r && S(e, r), t 4820 }(); 4821 4822 function R(e, t) { 4823 var n = Object.keys(e); 4824 if (Object.getOwnPropertySymbols) { 4825 var r = Object.getOwnPropertySymbols(e); 4826 t && (r = r.filter(function (t) { 4827 return Object.getOwnPropertyDescriptor(e, t).enumerable 4828 })), n.push.apply(n, r) 4829 } 4830 return n 4831 } 4832 4833 function I(t, e, n) { 4834 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 4835 } 4836 4837 var V = function () { 4838 function t(t, e, n) { 4839 var c = this; 4840 I(this, "addAttribute", function (t, e) { 4841 var n, r = Object(v.e)(t), o = "attrs." + r; 4842 l.a.current[o] || l.a.put(o, Object(v.a)(t)), "string" == typeof e && ["true", "false"].includes(e) && (e = JSON.parse(e)), c.field.set("attrs." + t, e); 4843 var i = c.props.querySelector(".field-attrs-" + r), a = new H({key: o, data: (n = {}, n[r] = e, n), field: c.field}); 4844 i ? c.props.replaceChild(a.dom, i) : c.props.appendChild(a.dom), c.field.resizePanelWrap() 4845 }), I(this, "addOption", function () { 4846 var t = c.field.data.meta.id, e = c.field.get("options"), n = "select" === t ? "option" : t, r = l.a.get("newOptionLabel", {type: n}) || "New Option", 4847 o = "options." + c.data.length, i = e.length ? Object(p.a)(e[e.length - 1]) : {}, a = Object.assign({}, i, {label: r, value: Object(v.e)(r)}), 4848 s = new H({key: o, data: a, field: c.field, index: c.props.children.length}); 4849 c.editPanelItems.push(s), c.props.appendChild(s.dom), c.field.set(o, a), c.field.resizePanelWrap() 4850 }), I(this, "addCondition", function (t) { 4851 var e = "conditions." + c.field.get("conditions").length, n = c.props.querySelector(".field-" + e.replace(".", "
4851-")), r = new H({key: e, data: t.template, field: c.field}); 4852 n ? c.props.replaceChild(r.dom, n) : c.props.appendChild(r.dom), c.field.set(e, t.template), c.field.resizePanelWrap() 4853 }), this.type = f.a.childType(t), this.data = "object" === this.type ? Object.entries(t) : t, this.name = e, this.field = n, this.panelConfig = this.getPanelConfig(this.data) 4854 } 4855 4856 var e = t.prototype; 4857 return e.getPanelConfig = function (t) { 4858 return this.props = this.createProps(t), this.editButtons = this.createEditButtons(), { 4859 id: this.field.id + "-" + this.name + "-panel", 4860 config: {label: l.a.get("panel.label." + this.name)}, 4861 attrs: {className: "f-panel " + this.name + "-panel"}, 4862 children: [this.props, this.editButtons] 4863 } 4864 }, e.createProps = function (t) { 4865 var a = this; 4866 this.editPanelItems = Array.from(t).map(function (t, e) { 4867 var n, r = "array" === a.type, o = [a.name, r ? String(e) : t[0]].join("."), i = r ? t : ((n = {})[t[0]] = t[1], n); 4868 return new H({key: o, data: i, field: a.field}) 4869 }); 4870 var e = {tag: "ul", attrs: {className: ["field-edit-group", "field-edit-" + this.name]}, editGroup: this.name, isSortable: "options" === this.name, content: this.editPanelItems}; 4871 return f.a.create(e) 4872 }, e.createEditButtons = function () { 4873 var o = this, i = this.name, t = l.a.get("panelEditButtons." + i), a = {attrs: o.addAttribute, options: o.addOption, conditions: o.addCondition}; 4874 return { 4875 className: "panel-action-buttons", content: [function (e) { 4876 for (var t = 1; t < arguments.length; t++) { 4877 var n = null != arguments[t] ? arguments[t] : {}; 4878 t % 2 ? R(Object(n), !0).forEach(function (t) { 4879 I(e, t, n[t]) 4880 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R(Object(n)).forEach(function (t) { 4881 Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) 4882 }) 4883 } 4884 return e 4885 }({}, f.a.btnTemplate({content: t, title: t}), { 4886 className: "btn btn-secondary add-" + i, action: { 4887 click: function (t) { 4888 var e = {btnCoords: f.a.coords(t.target), addAction: a[i]}; 4889 "attrs" === i && (e.isDisabled = o.field.isDisabledProp, e.isLocked = o.field.isLockedProp, e.message = { 4890 attr: l.a.get("action.add." + i + ".attr"), 4891 value: l.a.get("action.add." + i + ".value") 4892 }); 4893 var n = d()(i), r = new window.CustomEvent("onAdd" + n, {detail: e}); 4894 c.a.add[i](e), document.dispatchEvent(r) 4895 } 4896 } 4897 })] 4898 } 4899 }, t 4900 }(), B = n(14); 4901 4902 function F(e, t) { 4903 var n = Object.keys(e); 4904 if (Object.getOwnPropertySymbols) { 4905 var r = Object.getOwnPropertySymbols(e); 4906 t && (r = r.filter(function (t) { 4907 return Object.getOwnPropertyDescriptor(e, t).enumerable 4908 })), n.push.apply(n, r) 4909 } 4910 return n 4911 } 4912 4913 function q(e) { 4914 for (var t = 1; t < arguments.length; t++) { 4915 var n = null != arguments[t] ? arguments[t] : {}; 4916 t % 2 ? F(Object(n), !0).forEach(function (t) { 4917 G(e, t, n[t]) 4918 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F(Object(n)).forEac
4918h(function (t) { 4919 Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) 4920 }) 4921 } 4922 return e 4923 } 4924 4925 function W(t, e) { 4926 for (var n = 0; n < e.length; n++) { 4927 var r = e[n]; 4928 r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) 4929 } 4930 } 4931 4932 function U(t) { 4933 if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 4934 return t 4935 } 4936 4937 function G(t, e, n) { 4938 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 4939 } 4940 4941 n.d(e, "a", function () { 4942 return X 4943 }); 4944 var X = function (c) { 4945 var t, e; 4946 4947 function n(t) { 4948 var o; 4949 void 0 === t && (t = Object.create(null)), G(U(o = c.call(this, "field", Object.assign({}, {conditions: [Object(g.n)()]}, t)) || this), "updateConditionsPanel", function () { 4950 var r = setTimeout(function () { 4951 var t = o.editPanels.find(function (t) { 4952 return "conditions" === t.name 4953 }); 4954 if (!t) return null; 4955 var e = t.createProps(), n = o.dom.querySelector(".field-edit-conditions"); 4956 n.parentElement.replaceChild(e, n), clearTimeout(r) 4957 }, g.a) 4958 }), G(U(o), "updatePreview", s()(function () { 4959 if (!o.preview.parentElement) return null; 4960 o.updateLabel(); 4961 var t = f.a.create(o.fieldPreview(), !0); 4962 o.preview.parentElement.replaceChild(t, o.preview), o.preview = t 4963 }, g.a, {leading: !1})), G(U(o), "isDisabledProp", function (t, e) { 4964 void 0 === e && (e = "attrs"); 4965 var n = o.config.panels[e]; 4966 return !!n && n.disabled.concat(o.get("config.disabled" + d()(e))).includes(t) 4967 }), G(U(o), "isLockedProp", function (t, e) { 4968 void 0 === e && (e = "attrs"); 4969 var n = o.config.panels[e]; 4970 return !!n && n.locked.concat(o.get("config.locked" + d()(e))).includes(t) 4971 }), o.label = f.a.create(o.labelConfig), o.preview = f.a.create(o.fieldPreview()), o.editPanels = []; 4972 var e = { 4973 tag: "li", 4974 attrs: {className: g.z}, 4975 id: o.id, 4976 children: [o.label, o.getActionButtons(), o.fieldEdit, o.preview], 4977 panelNav: o.panelNav, 4978 dataset: {hoverTag: l.a.get("field")}, 4979 action: { 4980 mouseenter: function () { 4981 return o.dom.classList.add("hovering-" + o.name) 4982 }, mouseleave: function () { 4983 return o.dom.classList.remove("hovering-" + o.name) 4984 } 4985 } 4986 }; 4987 return e = f.a.create(e), o.observe(e), o.dom = e, o.isEditing = !1, o.onRender(e), o 4988 } 4989 4990 e = c, (t = n).prototype = Object.create(e.prototype), (t.prototype.constructor = t).__proto__ = e; 4991 var r, o, i, a = n.prototype; 4992 return a.updateConditionSourceLabel = function (n, r) { 4993 var t = this.editPanels.find(function (t) { 4994 return "conditions" === t.name 4995 }); 4996 if (!t) return null; 4997 t.editPanelItems.forEach(function (t) { 4998 t.itemFieldGroups.forEach(function (t) { 4999 var e = t.find(function (t) { 5000 return t.value === n 5001 }); 5002 e && (e.displayField.value = r) 5003 }) 5004 }) 5005 }, a.set = function () { 5006 for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n]; 5007 var r = e[0], o = e[1], i = c.prototype.set.call(this, r, o); 5008 return this.updatePreview(), i 5009 }, a.updateLabel = function () { 5010 if (!this.label) return null; 5011 var t = f.a.create(this.labelConfig); 5012 this.label.parentElement.replaceChild(t, this.label), this.label = t 5013 }, a.fieldPreview = function () { 5014 var t, a = this, e = Object(p.b)(this.data); 5015 e.id = "prev-" + this.id, (null === (t = this.data) || void 0 === t ? void 0 : t.config.editableContent) && (e.attrs = Object.assign({}, e.attrs, {contenteditable: !0})); 5016 var n = { 5017 attrs: {className: "field-preview", style: this.isEditing && "display: none;"}, content: f.a.create(e, !0), action: { 5018 change: function (t) { 5019 var e = t.target, n = e.checked, r = e.type; 5020 if (["checkbox", "radio"].includes(r)) { 5021 var o = +e.id.split("-").pop(); 5022 "radio" === r && a.set("options", a.get("options").map(function (t) { 5023 return q({}, t, {selected: !1}) 5024 })); 5025 var i = "checkbox" === r ? "checked" : "selected"; 5026 a.set("options." + o + "." + i, n) 5027 } 5028 }, click: function (t) { 5029 "true" === t.target.contentEditable && t.preventDefault() 5030 }
5030, input: function (t) { 5031 ["input", "meter", "progress", "button"].includes(a.data.tag) && c.prototype.set.call(a, "attrs.value", t.target.value), t.target.contentEditable && c.prototype.set.call(a, "content", t.target.innerHTML) 5032 } 5033 } 5034 }; 5035 return n 5036 }, r = n, (o = [{ 5037 key: "labelConfig", get: function () { 5038 var a = this; 5039 if (!!!this.get("config.hideLabel")) { 5040 var t, e = this.get("config.editorLabel") || this.get("config.label"), n = this.get("attrs.required"), s = this.config.label.disableHTML; 5041 return { 5042 className: "prev-label", 5043 children: [q({}, (t = { 5044 tag: "label", 5045 attrs: {} 5046 }, s ? (t.tag = "input", t.attrs.value = e) : (t.attrs.contenteditable = !0, t.children = e), t), { 5047 action: { 5048 input: function (t) { 5049 var e = t.target, n = e.innerHTML, r = e.innerText, o = e.value; 5050 c.prototype.set.call(a, "config.label", s ? o : n); 5051 var i = y.e.getConditionMap("fields." + a.id); 5052 if (i) return i.updateConditionSourceLabel(a.name + "s." + a.id, s ? o : r) 5053 } 5054 } 5055 }), n && f.a.requiredMark()] 5056 } 5057 } 5058 } 5059 }, { 5060 key: "fieldEdit", get: function () { 5061 var o = this; 5062 this.editPanels = []; 5063 var i = ["object", "array"], e = ["config", "meta", "action", "events"].concat(this.config.panels.disabled), t = {className: ["field-edit", "slide-toggle", "formeo-panels-wrap"]}; 5064 Object(p.m)([].concat(this.config.panels.order, Object.keys(this.data))).filter(function (t) { 5065 return !e.includes(t) 5066 }
5066).forEach(function (t) { 5067 var e = o.get(t), n = f.a.childType(e); 5068 if (i.includes(n)) { 5069 var r = new V(e, t, o); 5070 o.editPanels.push(r) 5071 } 5072 }); 5073 var n = { 5074 panels: this.editPanels.map(function (t) { 5075 return t.panelConfig 5076 }), id: this.id, displayType: "auto" 5077 }, a = this.editPanels.length; 5078 return a && (this.panels = new u.a(n), t.className.push("panel-count-" + a), t.content = [this.panels.panelNav, this.panels.panelsWrap], this.panelNav = this.panels.nav, this.resizePanelWrap = this.panels.nav.refresh, t.action = { 5079 onRender: function () { 5080 if (o.resizePanelWrap(), !a) { 5081 var t = o.dom, e = t.querySelector(".item-edit-toggle"), n = t.querySelector(".field-actions"), r = n.getElementsByTagName("button"); 5082 n.style.maxWidth = r.length * r[0].clientWidth + "px", f.a.remove(e) 5083 } 5084 } 5085 }), t 5086 } 5087 }]) && W(r.prototype, o), i && W(r, i), n 5088 }(B.a) 5089 }, function (t, e, n) { 5090 var r = n(29), o = n(100), i = n(101), a = n(102), s = n(103), c = n(104); 5091 5092 function l(t) { 5093 var e = this.__data__ = new r(t); 5094 this.size = e.size 5095 } 5096 5097 l.prototype.clear = o, l.prototype.delete = i, l.prototype.get = a, l.prototype.has = s, l.prototype.set = c, t.exports = l 5098 }, function (t, e, n) { 5099 var r = n(18)(n(10), "Map"); 5100 t.exports = r 5101 }, function (t, e, n) { 5102 var r = n(20), o = n(9); 5103 t.exports = function (t) { 5104 if (!o(t)) return !1; 5105 var e = r(t); 5106 return "[object Function]" == e || "[object GeneratorFunction]" == e || "[object AsyncFunction]" == e || "[object Proxy]" == e 5107 } 5108 }, function (t, e, n) { 5109 var r = n(112), o = n(119), i = n(121), a = n(122), s = n(123); 5110 5111 function c(t) { 5112 var e = -1, n = null == t ? 0 : t.length; 5113 for (this.clear(); ++e < n;) { 5114 var r = t[e]; 5115 this.set(r[0], r[1]) 5116 } 5117 } 5118 5119 c.prototype.clear = r, c.prototype.delete = o, c.prototype.get = i, c.prototype.has = a, c.prototype.set = s, t.exports = c 5120 }, function (t, e, n) { 5121 var r = n(65); 5122 t.exports = function (t, e, n) { 5123 "__proto__" == e && r ? r(t, e, {configurable: !0, enumerable: !0, value: n, writable: !0}) : t[e] = n 5124 } 5125 }, function (t, e) { 5126 t.exports = function (t) { 5127 return t.webpackPolyfill || (t.deprecate = function () { 5128 }, t.paths = [], t.children || (t.children = []), Object.defineProperty(t, "loaded", { 5129 enumerable: !0, get: function () { 5130 return t.l 5131 } 5132 }), Object.defineProperty(t, "id", { 5133 enumerable: !0, get: function () { 5134 return t.i 5135 } 5136 }), t.webpackPolyfill = 1), t 5137 } 5138 }, function (t, e, n) { 5139 var r = n(68); 5140 t.exports = function (t) { 5141 var e = new t.constructor(t.byteLength); 5142 return new r(e).set(new r(t)), e 5143 } 5144 }, function (t, e, n) { 5145 var r = n(71)(Object.getPrototypeOf, Object); 5146 t.exports = r 5147 }, function (t, e) { 5148 var n = Object.prototype; 5149 t.exports = function (t) { 5150 var e = t && t.constructor; 5151 return t === ("function" == typeof e && e.prototype || n) 5152 } 5153 }, function (t, e, n) { 5154 var r = n(132), o = n(51), i = n(52), a = i && i.isTypedArray, s = a ? o(a) : r; 5155 t.exports = s 5156 }, function (t, e) { 5157 t.exports = function (e) { 5158 return function (t) { 5159 return e(t) 5160 } 5161 } 5162 }, function (t, a, s) { 5163 (function (t) { 5164 var e = s(62), n = a && !a.nodeType && a, r = n && "object" == typeof t && t && !t.nodeType && t, o = r && r.exports === n && e.process, i = function () { 5165 try { 5166 var t = r && r.require && r.require("util").t
5166ypes; 5167 return t || o && o.binding && o.binding("util") 5168 } catch (t) { 5169 } 5170 }(); 5171 t.exports = i 5172 }).call(this, s(46)(t)) 5173 }, function (t, e, n) { 5174 var o = n(45), i = n(22), a = Object.prototype.hasOwnProperty; 5175 t.exports = function (t, e, n) { 5176 var r = t[e]; 5177 a.call(t, e) && i(r, n) && (void 0 !== n || e in t) || o(t, e, n) 5178 } 5179 }, function (t, e) { 5180 var r = /^(?:0|[1-9]\d*)$/; 5181 t.exports = function (t, e) { 5182 var n = typeof t; 5183 return !!(e = null == e ? 9007199254740991 : e) && ("number" == n || "symbol" != n && r.test(t)) && -1 < t && t % 1 == 0 && t < e 5184 } 5185 }, function (t, e, n) { 5186 var r = n(161), o = n(162), i = n(165), a = RegExp("['â]", "g"); 5187 t.exports = function (e) { 5188 return function (t) { 5189 return r(i(o(t).replace(a, "")), e, "") 5190 } 5191 } 5192 }, function (t, e, n) { 5193 var r = n(183), o = n(84), i = Object.prototype.propertyIsEnumerable, a = Object.getOwnPropertySymbols, s = a ? function (e) { 5194 return null == e ? [] : (e = Object(e), r(a(e), function (t) { 5195 return i.call(e, t) 5196 })) 5197 } : o; 5198 t.exports = s 5199 }, function (t, e, n) { 5200 var r = n(75), o = n(184), i = n(33); 5201 t.exports = function (t) { 5202 return i(t) ? r(t) : o(t) 5203 } 5204 }, function (t, e, n) { 5205 var a = n(92), s = n(93); 5206 t.exports = function (t, e, n) { 5207 var r = e && n || 0; 5208 "string" == typeof t && (e = "binary" === t ? new Array(16) : null, t = null); 5209 var o = (t = t || {}).random || (t.rng || a)(); 5210 if (o[6] = 15 & o[6] | 64, o[8] = 63 & o[8] | 128, e) for (var i = 0; i < 16; ++i) e[r + i] = o[i]; 5211 return e || s(o) 5212 } 5213 }, function (t, e, n) { 5214 var r = n(190); 5215 t.exports = function (t) { 5216 return r(t, 5) 5217 } 5218 }, function (t, e, n) { 5219 "use strict"; 5220 n.d(e, "a", function () { 5221 return i 5222 }); 5223 var r = n(27), f = n.n(r), p = n(0), h = n(2), v = n(1); 5224 5225 function o(t, e) { 5226 for (var n = 0; n < e.length; n++) { 5227 var r = e[n]; 5228 r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) 5229 } 5230 } 5231 5232 function m(t, e, n) { 5233 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 5234 } 5235 5236 function g(t, e) { 5237 if (null == t) return {}; 5238 var n, r, o = {}, i = Object.keys(t); 5239 for (r = 0; r < i.length; r++) n = i[r], 0 <= e.indexOf(n) || (o[n] = t[n]); 5240 return o 5241 } 5242 5243 var b = function (t) { 5244 var e = t.match(v.I); 5245 return e && e[0] || t 5246 }, i = function () { 5247 function t(t, e) { 5248 var l = this; 5249 void 0 === e && (e = {}), m(this, "render", function (t) { 5250 void 0 === t && (t = l.form), l.form = t; 5251 var e = document.getElementsByClassName("formeo-render").length, n = {id: l.form.id, className: "formeo-render formeo formeo-rendered-" + e, children: l.processedData}; 5252 l.renderedForm = p.a.render(n), p.a.empty(l.container), l.applyConditions(), l.container.appendChild(l.renderedForm) 5253 }), m(this, "orderChildren", function (n, t) { 5254 return t.reduce(function (t, e) { 5255 return [].concat(t, [l.form[n][e]]) 5256 }, []) 5257 }), m(this, "prefixId", function (t) { 5258 return "f-" + t 5259 }), m(this, "processColumn", function (t) { 5260 var e = t.id, n = g(t, ["id"]); 5261 return Object.assign({}, n, {id: l.prefixId(e), children: l.processFields(n.children), style: "width: " + (n.config.width || "100%")}) 5262 }), m(this, "processRows", function (t) { 5263 return l.orderChildren("rows", l.form.stages[t].children).reduce(function (t, e) { 5264 return e ? [].concat(t, [l.processRow(e)]) : t 5265 }, []) 5266 }), m(this, "cacheComponent", function (t) { 5267 return l.components[b(t.id)] = t 5268 }), m(this, "processRow", function (t, e) { 5269 void 0 === e && (e = "row"); 5270 var n = t.config, r = t.id, o = ["formeo-" + e + "-wrap"], i = Object.assign({}, t, {children: l.processColumns(t.id), id: l.prefixId(r)}); 5271 l.cacheComponent(i); 5272 var a = [{ 5273 condition: n.legend, result: function () { 5274 return {tag: n.fieldset ? "legend" : "h3", children: n.legend} 5275 } 5276 }, { 5277 condition: !0, result: function () { 5278 return i 5279 } 5280 }, { 5281 condition: n.inputGroup, result: function () { 5282 return l.addButton(r) 5283 } 5284 }].reduce(function (t, e) { 5285 var n = e.condition, r = e.result; 5286 return n ? [].concat(t, [r()]) : t 5287 }, []); 5288 return n.inputGroup && o.push("f-input-group-wrap"), {tag: n.fieldset ? "fieldset" : "div", id: Object(h.n)(), className: o, children: a} 5289 }), m(this, "cloneComponentData", function (t) { 5290 var e, n = l.components[t], r = n.children, o = void 0 === r ? [] : r, i = n.id, a = g(n, ["children", "id"]); 5291 return Object.assign({}, a, { 5292 id: (e = i, e.replace(v.I, Object(h.n)())), children: o.length && o.map(function (t) { 5293 var e = t.id; 5294 return l.cloneComponentData(b(e)) 5295 }) 5296 }) 5297 }), m(this, "addButton", function (r) { 5298 return p.a.render({ 5299 tag: "button", attrs: {className: "add-input-group btn pull-right", type: "button"}, children: "Add +", action: { 5300 click: function (t) { 5301 var e = t.target.parentElement, n = p.a.render(l.cloneComponentData(r)); 5302 e.insertBefore(n, e.lastChild), n.appendChild(p.a.render(p.a.btnTemplate({ 5303 className: "remove-input-group", 5304 children: p.a.icon("remove"), 5305 action: { 5306 mouseover: function (t) { 5307 return t.target.parentElement.classList.add("will-remove") 5308 }, mouseleave: function (t) { 5309 return t.target.parentElement.classList.remove("will-remove") 5310 }, click: function (t) { 5311 return t.target.parentElement.remove() 5312 } 5313 } 5314 }))) 5315 } 5316 } 5317 }) 5318 }), m(this, "processColumns", function (t) { 5319 return l.orderChildren("columns", l.form.rows[t].children).map(function (t) { 5320 return l.cacheComponent(l.processColumn(t)) 5321 }) 5322 }
5322), m(this, "processFields", function (t) { 5323 return l.orderChildren("fields", t).map(function (t) { 5324 var e = t.id, n = g(t, ["id"]); 5325 return l.cacheComponent(Object.assign({}, n, {id: l.prefixId(e)})) 5326 }) 5327 }), m(this, "applyConditions", function () { 5328 Object.values(l.components).forEach(function (t) { 5329 var e = t.conditions; 5330 e && e.forEach(function (t, e) { 5331 var n = t.if, o = t.then; 5332 n.forEach(function (t) { 5333 var e = t.source, r = g(t, ["source"]); 5334 Object(h.d)(e) && l.getComponents(e).forEach(function (t) { 5335 var e = y(t); 5336 e && t.addEventListener(e, function (e) { 5337 return l.evaluateCondition(r, e) && o.forEach(function (t) { 5338 return l.execResult(t, e) 5339 }) 5340 }, !1); 5341 var n = {target: t}; 5342 l.evaluateCondition(r, n) && o.forEach(function (t) { 5343 return l.execResult(t, n) 5344 }) 5345 }) 5346 }) 5347 }) 5348 }) 5349 }), m(this, "evaluateCondition", function (t, e) { 5350 var n = t.sourceProperty, r = t.targetProperty, o = t.comparison, i = t.target, a = { 5351 equals: f.a, notEquals: function (t, e) { 5352 return !f()(t, e) 5353 }, contains: function (t, e) { 5354 return t.includes(e) 5355 }, notContains: function (t, e) { 5356 return !t.includes(e) 5357 } 5358 }, s = String(e.target[n]), c = String(Object(h.d)(i) ? l.getComponent(i)[r] : i); 5359 return a[o] && a[o](s, c) 5360 }), m(this, "execResult", function (t) { 5361 var e = t.assignment, n = t.target, r = t.targetProperty, o = t.value, i = { 5362 equals: function (t) { 5363 var e = { 5364 value: function () { 5365 t[r] = o 5366 }, isNotVisible: function () { 5367 t.parentElement.setAttribute("hidden", !0), t.required = !1 5368 }, isVisible: function () { 5369 t.parentElement.removeAttribute("hidden"), t.required = t._required 5370 } 5371 }; 5372 e[r] && e[r]() 5373 } 5374 }; 5375 if (Object(h.d)(n)) { 5376 var a = l.getComponent(n); 5377 a && void 0 === a._required && (a._required = a.required), i[e] && i[e](a) 5378 } 5379 }), m(this, "getComponent", function (t) { 5380 var e = t.slice(t.indexOf(".") + 1); 5381 return Object(h.f)(t) ? l.external[e] : l.renderedForm.querySelector("#f-" + e) 5382 }), m(this, "getComponents", function (t) { 5383 var e = [], n = t.slice(t.indexOf(".") + 1); 5384 return Object(h.f)(t) ? e.push(l.external[n]) : e.push.apply(e, l.renderedForm.querySelectorAll("[name=f-" + n + "]")), e 5385 }); 5386 var n, r, o, i, a, s, c = (r = (n = t).editorContainer, o = n.renderContainer, i = g(n, ["editorContainer", "renderContainer"]), s = { 5387 renderContainer: (a = function (t) { 5388 return "string" == typeof t ? document.querySelector(t) : t 5389 })(o), editorContainer: a(r) 5390 }, Object.assign({}, i, s)), u = c.renderContainer, d = c.external; 5391 this.container = u, this.form = e, this.external = d, this.components = Object.create(null) 5392 } 5393 5394 var e, n, r; 5395 return e = t, (n = [{ 5396 key: "processedData", get: function () { 5397 var e = this; 5398 return Object.values(this.form.stages).map(function (t) { 5399 return t.children = e.processRows(t.id), t.className = v.H, p.a.render(t) 5400 }) 5401 } 5402 }]) && o(e.prototype, n), r && o(e, r), t 5403 }(), y = function (e) { 5404 return ([["input", function (t) { 5405 return ["textarea", "text"].includes(t.type) 5406 }], ["change", function (t) { 5407 return ["select"].includes(t.tagName.toLowerCase()) || ["checkbox", "radio"].includes(t.type) 5408 }]].find(function (t) { 5409 return t[1](e) 5410 }) || [!1])[0] 5411 } 5412 }, function (t, e, n) { 5413 "use strict"; 5414 n(91); 5415 var r = n(3), i = n.n(r), f = n(0), p = n(6), h = n(19), a = n(16), v = n(5), s = n(11), c = n(1), m = n(2), o = n(4); 5416 i.a.addLanguage("en-US", 'en-US = English\ndir = ltr\n\naction.add.attrs.attr = What attribute would you like to add?\naction.add.attrs.value = Default Value\naddOption = Add Option\nallFieldsRemoved = All fields were removed.\nallowSelect = Allow Select\nattribute = Attribute\nattributes = Attributes\nattrs.class = Class\nattrs.className = Class\nattrs.dir = Direction\nattrs.id = Id\nattrs.required = Required\nattrs.style = Style\nattrs.title = Title\nattrs.type = Type\nattrs.value = Value\nautocomplete = Autocomplete\nbutton = Button\ncannotBeEmpty = This field cannot be empty\ncheckbox = Checkbox\ncheckboxes = Checkboxes\nclass = Class\nclear = Clear\nclearAllMessage = Are you sure you want to clear all fields?\nclose = Close\ncolumn = Column\nconfirmClearAll = Are you sure you want to remove all fields?\ncontent = Content\ncontrol = Control\ncontrolGroups.nextGroup = Next Group\ncontrolGroups.prevGroup = Previous Group\ncontrol
5416s.form.button = Button\ncontrols.form.checkbox-group = Checkbox Group\ncontrols.form.input.date = Date\ncontrols.form.input.email = Email\ncontrols.form.input.file = File Upload\ncontrols.form.input.hidden = Hidden Input\ncontrols.form.input.number = Number\ncontrols.form.input.text = Text Input\ncontrols.form.radio-group = Radio Group\ncontrols.form.select = Select\ncontrols.form.textarea = TextArea\ncontrols.groups.form = Form Fields\ncontrols.groups.html = HTML Elements\ncontrols.groups.layout = Layout\ncontrols.html.divider = Divider\ncontrols.html.header = Header\ncontrols.html.paragraph = Paragraph\ncontrols.layout.column = Column\ncontrols.layout.row = Row\ncontrols.filteringTerm = Filtering "{term}"\ncopy = Copy To Clipboard\ndanger = Danger\ndescription = Help Text\ndescriptionField = Description\ndefineColumnLayout = Define a column layout\ndefineColumnWidths = Define column widths\nediting.row = Editing Row\neditorTitle = Form Elements\nfield = Field\nfieldNonEditable = This field cannot be edited.\nfieldRemoveWarning = Are you sure you want to remove this field?\nfileUpload = File Upload\nformUpdated = Form Updated\ngetStarted = Drag a field from the right to get started.\ngroup = Group\ngrouped = Grouped\nhidden = Hidden Input\nhide = Edit\nhtmlElements = HTML Elements\nif = If\ninfo = Info\ninput.date = Date\ninput.text = Text\nlabel = Label\nlabelCount = {label} {count}\nlabelEmpty = Field Label cannot be empty\nlayout = Layout\nlimitRole = Limit access to one or more of the following roles:\nmandatory = Mandatory\nmaxlength = Max Length\nmeta.group = Group\nmeta.icon = Ico\nmeta.label = Label\nminOptionMessage = This field requires a minimum of 2 options\nname = Name\nno = No\nnumber = Number\noff = Off\non = On\noption = Option\noptional = optional\noptionEmpty = Option value required\noptionLabel = Option {count}\noptions = Options\norder = Order\npanel.label.attrs = Attributes\npanel.label.conditions = Conditions\npanel.label.config = Configuration\npanel.label.meta = Meta\npanel.label.options = Options\npanelEditButtons.attrs = + Attribute\npanelEditButtons.options = + Option\npanelEditButtons.conditions = + Condition\nplaceholder = Placeholder\nplaceholder.className = space separated classes\nplaceholder.email = Enter you email\nplaceholder.label = Label\nplaceholder.password = Enter your password\nplaceholder.placeholder = Placeholder\nplaceholder.text = Enter some Text\nplaceholder.textarea = Enter a lot of text\nplaceholder.value = Value\npreview = Preview\nprimary = Primary\nremove = Remove\nremoveType = Remove {type}\nremoveMessage = Remove Element\nrequired = Required\nreset = Reset\nrichText = Rich Text Editor\nroles = Access\nrow = Row\nrow.makeInputGroup = Make this row an input group.\nrow.makeInputGroupDesc = Input Groups enable users to add sets of inputs at a time.\nrow.settings.fieldsetWrap = Wrap row in a <fieldset> tag\nrow.settings.fieldsetWrap.aria = Wrap Row in Fieldset\ncannotClearFields = There are no fields to clear\nsave = Save\nsecondary = Secondary\nselect = Select\nselectColor = Select Color\nselectionsMessage = Allow Multiple Selections\nselectOptions = Options\nseparator = Separator\nsettings = Settings\nsize = Size\nsizes = Sizes\nsizes.lg = Large\nsizes.m = Default\nsizes.sm = Small\nsizes.xs = Extra Small\nstyle = Style\nstyles = Styles\nstyles.btn = Button Style\nstyles.btn.danger = Danger\nstyles.btn.default = Default\nstyles.btn.info = Info\nstyles.btn.primary = Primary\nstyles.btn.success = Success\nstyles.btn.warning = Warning\nsubtype = Type\nsuccess = Success\ntext = Text Field\nthen = Then\ntoggle = Toggle\nungrouped = Un-Grouped\nwarning = Warning\nyes = Yes\nand = and\nor = or\nfield.property.value = value\nfield.property.label = label\nfield.property.valid = valid\nfield.property.invalid = not valid\nfield.property.isVisible = is visible\nfield.property.isNotVisible = is not visible\nnewOptionLabel = New {type}\noperator.visible = visible\noperator.notVisible = not visible\noperator.equals = equals\noperator.notEquals = not equal\noperator.contains = contains\noperator.notContains = not contains\ncondition.target.placeholder = target\nif.condition.target.placeholder = target / value\
5416nif.condition.source.placeholder = source\nthen.condition.target.placeholder = target\ncondition.value.placeholder = value\nattributeNotPermitted = Attribute "{attribute}" is not permitted, please choose another.\n'); 5417 var g = { 5418 get editor() { 5419 return { 5420 stickyControls: !1, 5421 allowEdit: !0, 5422 dataType: "json", 5423 debug: !1, 5424 sessionStorage: !1, 5425 editorContainer: null, 5426 external: {}, 5427 svgSprite: null, 5428 iconFont: null, 5429 config: {}, 5430 events: {}, 5431 actions: {}, 5432 controls: {}, 5433 polyfills: Object(o.g)(), 5434 i18n: {location: "https://draggable.github.io/formeo/assets/lang/"} 5435 } 5436 } 5437 }; 5438 5439 function l(e, t) { 5440 var n = Object.keys(e); 5441 if (Object.getOwnPropertySymbols) { 5442 var r = Object.getOwnPropertySymbols(e); 5443 t && (r = r.filter(function (t) { 5444 return Object.getOwnPropertyDescriptor(e, t).enumerable 5445 })), n.push.apply(n, r) 5446 } 5447 return n 5448 } 5449 5450 function b(e) { 5451 for (var t = 1; t < arguments.length; t++) { 5452 var n = null != arguments[t] ? arguments[t] : {}; 5453 t % 2 ? l(Object(n), !0).forEach(function (t) { 5454 u(e, t, n[t]) 5455 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l(Object(n)).forEach(function (t) { 5456 Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) 5457 }) 5458 } 5459 return e 5460 } 5461 5462 function u(t, e, n) { 5463 return e in t ? Object.defineProperty(t, e, {value: n, enumerable: !0, configurable: !0, writable: !0}) : t[e] = n, t 5464 } 5465 5466 function y(t, e) { 5467 if (null == t) return {}; 5468 var n, r, o = {}, i = Object.keys(t); 5469 for (r = 0; r < i.length; r++) n = i[r], 0 <= e.indexOf(n) || (o[n] = t[n]); 5470 return o 5471 } 5472 5473 function d(t, e) { 5474 for (var n = 0; n < e.length; n++) { 5475 var r = e[n]; 5476 r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r) 5477 } 5478 } 5479 5480 var w = function () { 5481 function t(t, e) { 5482 var n = t.formData, r = y(t, ["formData"]), o = this, i = Object(m.h)(g.editor, r), a = i.actions, s = i.events, c = i.debug, l = i.config, u = i.editorContainer, 5483 d = y(i, ["actions", "events", "debug", "config", "editorContainer"]); 5484 u && (this.editorContainer = "string" == typeof u ? document.querySelector(u) : u), this.opts = d, f.a.setOptions = d, v.e.config = l, this.userFormData = e || n, this.Components = v.e, p.a.init(b({debug: c}, s)), h.a.init(b({ 5485 debug: c, 5486 sessionStorage: d.sessionStorage 5487 }, a)), o.loadResources().then(function () { 5488 d.allowEdit && (o.edit = o.init.bind(o), o.init()) 5489 }) 5490 } 5491 5492 var e, n, r, o = t.prototype; 5493 return o.loadResources = function () { 5494 var t = []; 5495 return this.opts.polyfills && Object(s.e)(this.opts.polyfills), this.opts.style && t.push(Object(s.d)(this.opts.style)), this.opts.svgSprite ? t.push(Object(s.a)(this.opts.svgSprite, s.b, function () { 5496 return Object(s.a)(c.y, s.b) 5497 })) : t.push(Object(s.b)('<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><symbol viewBox="0 0 16 16" id="f-i-autocomplete" xmlns="http://www.w3.org/2000/svg"><path d="M6 5h1v1H6V5zM4 4H3v1h1V4zm2 0H5v1h1V4zM2 5v1h1V5H2zm1 2h1V6H3v
54971zm2 0h1V6H5v1zM4 5v1h1V5H4zm-2 9h1v-1H2v1zm2 0h1v-1H4v1zm2 0h1v-1H6v1zm3-1H8v1h1v-1zm7-9.5v4c0 .8-.7 1.5-1.5 1.5H14v6c0 .6-.4 1-1 1H1c-.6 0-1-.4-1-1V3.5C0 2.7.7 2 1.5 2H8V1H6V0h5v1H9v1h5.5c.8 0 1.5.7 1.5 1.5zM13 12H1v3h12v-3zM3 11v-1H2v1h1zm2 0v-1H4v1h1zm10-7.5c0-.3-.2-.5-.5-.5H9v5H8V7H7V6h1V5H7V4h1V3H1.5c-.3 0-.5.2-.5.5v4c0 .3.2.5.5.5H8v1H6v1h5V9H9V8h5.5c.3 0 .5-.2.5-.5v-4z"/></symbol><symbol viewBox="0 0 32 32" id="f-i-bin" xmlns="http://www.w3.org/2000/svg"><path d="M4 10v20c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V10H4zm6 18H8V14h2v14zm4 0h-2V14h2v14zm4 0h-2V14h2v14zm4 0h-2V14h2v14zM26.5 4H20V1.5c0-.825-.675-1.5-1.5-1.5h-7c-.825 0-1.5.675-1.5 1.5V4H3.5C2.675 4 2 4.675 2 5.5V8h26V5.5c0-.825-.675-1.5-1.5-1.5zM18 4h-6V2.025h6V4z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-button" xmlns="http://www.w3.org/2000/svg"><path d="M.477 4A.477.477 0 000 4.477v7.046A.477.477 0 00.477 12h15.046a.477.477 0 00.477-.477V4.477A.477.477 0 0015.523 4H.477zm.476.953h14.094v6.094H.953V4.953z" color="#000" font-weight="400" font-family="sans-serif" overflow="visible"/><g font-weight="400" font-size="5" font-family="Sans" letter-spacing="0" word-spacing="0"><path d="M6.17 6.51q-.537 0-.854.4Q5 7.31 5 8q0 .689.315 1.09.317.4.854.4.537 0 .85-.4.315-.401.315-1.09 0-.69-.315-1.091-.313-.4-.85-.4zm0-.4q.767 0 1.226.514.459.513.459 1.377 0 .862-.46 1.377-.458.513-1.225.513-.769 0-1.23-.513-.46-.513-.46-1.377t.46-1.377Q5.4 6.11 6.17 6.11zM8.626 6.175h.493v1.54l1.636-1.54h.635l-1.81 1.7 1.94 1.945h-.65L9.12 8.065V9.82h-.494V6.175z"/></g></symbol><symbol viewBox="0 0 32 32" id="f-i-calendar" xmlns="http://www.w3.org/2000/svg"><path d="M12.048 16.961c-.178.257-.395.901-.652 1.059a2.57 2.57 0 01-.869.328 4.594 4.594 0 01-1.002.079v1.527h2.467V26h1.991v-9.996h-1.584c-.056.381-.173.7-.351.957zM23 8h2a1 1 0 001-1V1a1 1 0 00-1-1h-2a1 1 0 00-1 1v6a1 1 0 001 1zM7 8h2a1 1 0 001-1V1a1 1 0 00-1-1H7a1 1 0 00-1 1v6a1 1 0 001 1zm23-4h-2v5a1 1 0 01-1 1h-6a1 1 0 01-1-1V4h-8v5a1 1 0 01-1 1H5a1 1 0 01-1-1V4H2a2 2 0 00-2 2v24a2 2 0 002 2h28a2 2 0 002-2V6a2 2 0 00-2-2zm0 25a1 1 0 01-1 1H3a1 1 0 01-1-1V13a1 1 0 011-1h26a1 1 0 011 1v16zM15.985 17.982h4.968c-.936 1.152-1.689 2.325-2.265 3.705-.575 1.381-.638 2.818-.749 4.312h2.131c.009-.666-.195-1.385-.051-2.156.146-.771.352-1.532.617-2.285.267-.752.598-1.461.996-2.127a7.049 7.049 0 011.367-1.686v-1.742h-7.015v1.979z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-checkbox" xmlns="http://www.w3.org/2000/svg"><path d="M13.5 5v8c0 .8-.7 1.5-1.5 1.5H3c-.8 0-1.5-.7-1.5-1.5V4c0-.8.7-1.5 1.5-1.5h9c.7 0 1.3.5 1.5 1.2l2.4-1.4L13.5 5zm-1 1.2L7.7 12 2.8 5.5l4.9 1.6 4.8-2.9V4c0-.3-.2-.5-.5-.5H3c-.3 0-.5.2-.5.5v9c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5V6.2z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-checkbox-group" xmlns="http://www.w3.org/2000/svg"><path d="M0 1h16V0H0v1zm0 2h16V2H0v1zm6 2v1h9V5H6zm9 9v-1H6v1h9zm-9-4h9V9H6v1zm-2 2l-2.5 1.5L0 13l1.5 2L4 12zm0-4L1.5 9.5 0 9l1.5 2L4 8zm0-4L1.5 5.5 0 5l1.5 2L4 4z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-columns" xmlns="http://www.w3.org/2000/svg"><path d="M16 .5a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v15a.5.5 0 00.5.5h15a.5.5 0 00.5-.5V.5zM15 1v14h-4V1h4zm-5 0v14H6V1h4zM5 1v14H1V1h4z" color="#000" font-weight="400" font-family="sans-serif" overflow="visible"/></symbol><symbol viewBox="0 0 32 32" id="f-i-copy" xmlns="http://www.w3.org/2000/svg"><path d="M20 8V0H6L0 6v18h12v8h20V8H20zM6 2.828V6H2.828L6 2.828zM2 22V8h6V2h10v6l-6 6v8H2zm16-11.172V14h-3.172L18 10.828zM30 30H14V16h6v-6h10v20z"/></symbol><symbol viewBox="0 0 15 15" id="f-i-divider" xmlns="http://www.w3.org/2000/svg"><path d="M0 7h15v1H0z"/></symbol><symbol viewBox="0 0 28 32" id="f-i-edit" xmlns="http://www.w3.org/2000/svg"><path d="M22 2l-4 4 6 6 4-4-6-6zM0 24l.021 6.018L6 30l16-16-6-6L0 24zm6 4H2v-4h2v2h2v2z"/></symbol><symbol viewBox="0 0 32 32" id="f-i-floppy-disk" xmlns="http://www.w3.org/2000/svg"><path d="M28 0H0v32h32V4l-4-4zM16 4h4v8h-4V4zm12 24H4V4h2v10h18V4h2.343L28 5.657V28z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-handle" xmlns="http://www.w3.org/2000/svg"><path d="M2 5h2v2H2zM7 5h2v2H7zM12 5h2v2h-2z"/><g><path d="M2 9h2v2H2zM7 9h2v2H7zM12 9h2v2h-2z"/></g></symbol><symbol viewBox="0 0 448 512" id="f-i-hash" xmlns="http://www.w3.org/2000/svg"><path d="M448 192v-64h-80.064l16-128h-64l-16 128H175.968l16-128h-64l-16 128H0v64h103.968L88 320H0v64h80L64 512h64l16-128h127.968l-16 128H320l16-128h112v-64H344l15.936-128H448zM279.968 320H152l15.968-128h127.968l-15.968 128z"/></symbol><symbol viewBox="0 0 28 28" id="f-i-header" xmlns="http://www.w3.org/2000/svg"><path d="M26.281 26q-.688 0-2.07-.055t-2.086-.055q-.688 0-2.063.055T17.999 26q-.375 0-.578-.32t-.203-.711q0-.484.266-.719t.609-.266.797-.109.703-.234q.516-.328.516-2.188l-.016-6.109q0-.328-.016-.484-.203-.063-.781-.063H8.749q-.594 0-.797.063-.016.156-.016.484l-.016 5.797q0 2.219.578 2.562.25.156.75.203t.891.055.703.234.313.711q0 .406-.195.75t-.57.344q-.734 0-2.18-.055t-2.164-.055q-.672 0-2 .055T2.062 26q-.359 0-.555-.328t-.195-.703q0-.469.242-.703t.562-.273.742-.11
54977.656-.234q.516-.359.516-2.234l-.016-.891V7.814l.008-.406q.008-.359 0-.57t-.023-.602-.055-.656-.102-.57-.172-.492-.25-.281q-.234-.156-.703-.187t-.828-.031-.641-.219-.281-.703q0-.406.187-.75t.562-.344q.719 0 2.164.055t2.164.055q.656 0 1.977-.055t1.977-.055q.391 0 .586.344t.195.75q0 .469-.266.68t-.602.227-.773.063-.672.203q-.547.328-.547 2.5l.016 5q0 .328.016.5.203.047.609.047h10.922q.391 0 .594-.047.016-.172.016-.5l.016-5q0-2.172-.547-2.5-.281-.172-.914-.195t-1.031-.203-.398-.773q0-.406.195-.75t.586-.344q.688 0 2.063.055t2.063.055q.672 0 2.016-.055t2.016-.055q.391 0 .586.344t.195.75q0 .469-.273.688t-.625.227-.805.047-.688.195Q24 4.615 24 6.772l.016 14.734q0 1.859.531 2.188.25.156.719.211t.836.07.648.242.281.695q0 .406-.187.75t-.562.344z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-hidden" xmlns="http://www.w3.org/2000/svg"><path d="M1 5h1V4H1zM3 5h1V4H3zM5 5h1V4H5zM7 5h1V4H7zM9 5h1V4H9zM11 5h1V4h-1zM13 5h1V4h-1zM0 6h1V5H0zM15 7h1V6h-1zM0 8h1V7H0zM15 9h1V8h-1zM0 10h1V9H0zM15 11h1v-1h-1zM2 12h1v-1H2zM4 12h1v-1H4zM6 12h1v-1H6zM8 12h1v-1H8zM10 12h1v-1h-1zM12 12h1v-1h-1zM14 12h1v-1h-1zM15 5h1V4h-1zM0 12h1v-1H0z" color="#000" font-weight="400" font-family="sans-serif" overflow="visible"/></symbol><symbol viewBox="0 0 384 512" id="f-i-menu" xmlns="http://www.w3.org/2000/svg"><path d="M0 96v64h384V96H0zm0 192h384v-64H0v64zm0 128h384v-64H0v64z"/></symbol><symbol viewBox="0 0 16 32" id="f-i-minus" xmlns="http://www.w3.org/2000/svg"><path d="M0 14v4h16v-4H0z"/></symbol><symbol viewBox="0 0 512 512" id="f-i-move" xmlns="http://www.w3.org/2000/svg"><path d="M287.744 94.736v129.008h128v-64L512 256l-96.256 96.24v-65.488h-128V415.76h64.496L256 512l-96.256-96.24h64V286.752h-128v64.992L0 256l95.744-95.744v63.488h128V94.736h-62.496L256 0l94.752 94.736h-63.008z"/></symbol><symbol viewBox="0 0 512 512" id="f-i-move-vertical" xmlns="http://www.w3.org/2000/svg"><path d="M287.744 94.736V415.76h64.496L256 512l-96.256-96.24h64V94.736h-62.496L256 0l94.752 94.736z"/></symbol><symbol viewBox="0 0 20 28" id="f-i-paragraph" xmlns="http://www.w3.org/2000/svg"><path d="M19.969 2.953v1.141q0 .453-.289.953t-.664.5q-.781 0-.844.016-.406.094-.5.484-.047.172-.047 1v18q0 .391-.281.672t-.672.281h-1.687q-.391 0-.672-.281t-.281-.672V6.016h-2.234v19.031q0 .391-.273.672t-.68.281H9.158q-.406 0-.68-.281t-.273-.672v-7.75q-2.297-.187-3.828-.922-1.969-.906-3-2.797-1-1.828-1-4.047 0-2.594 1.375-4.469 1.375-1.844 3.266-2.484Q6.752 2 11.534 2h7.484q.391 0 .672.281t.281.672z"/></symbol><symbol viewBox="0 0 578.106 578.106" id="f-i-phone-receiver" xmlns="http://www.w3.org/2000/svg"><path d="M577.83 456.128c1.225 9.385-1.635 17.545-8.568 24.48l-81.396 80.781c-3.672 4.08-8.465 7.551-14.381 10.404-5.916 2.857-11.729 4.693-17.439 5.508-.408 0-1.635.105-3.676.309-2.037.203-4.689.307-7.953.307-7.754 0-20.301-1.326-37.641-3.979s-38.555-9.182-63.645-19.584c-25.096-10.404-53.553-26.012-85.376-46.818-31.823-20.805-65.688-49.367-101.592-85.68-28.56-28.152-52.224-55.08-70.992-80.783-18.768-25.705-33.864-49.471-45.288-71.299-11.425-21.828-19.993-41.616-25.705-59.364S4.59 177.362 2.55 164.51-.306 141.56.102 134.216c.408-7.344.612-11.424.612-12.24.816-5.712 2.652-11.526 5.508-17.442s6.324-10.71 10.404-14.382L98.022 8.756c5.712-5.712 12.24-8.568 19.584-8.568 5.304 0 9.996 1.53 14.076 4.59s7.548 6.834 10.404 11.322l65.484 124.236c3.672 6.528 4.692 13.668 3.06 21.42-1.632 7.752-5.1 14.28-10.404 19.584l-29.988 29.988c-.816.816-1.53 2.142-2.142 3.978s-.918 3.366-.918 4.59c1.632 8.568 5.304 18.36 11.016 29.376 4.896 9.792 12.444 21.726 22.644 35.802s24.684 30.293 43.452 48.653c18.36 18.77 34.68 33.354 48.96 43.76 14.277 10.4 26.215 18.053 35.803 22.949 9.588 4.896 16.932 7.854 22.031 8.871l7.648 1.531c.816 0 2.145-.307 3.979-.918 1.836-.613 3.162-1.326 3.979-2.143l34.883-35.496c7.348-6.527 15.912-9.791 25.705-9.791 6.938 0 12.443 1.223 16.523 3.672h.611l118.115 69.768c8.571 5.308 13.67 12.038 15.303 20.198z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-radio-group" xmlns="http://www.w3.org/2000/svg"><path d="M0 1h16V0H0v1zm0 2h16V2H0v1zm5 3h10V5H5v1zm10 3H5v1h10V9zm0 5v-1H5v1h10zM1.5 7C.7 7 0 6.3 0 5.5S.7 4 1.5 4 3 4.7 3 5.5 2.3 7 1.5 7zm0-2c-.3 0-.5.2-.5.5s.2.5.5.5.5-.2.5-.5-.2-.5-.5-.5zm0 6.1c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5S3 8.7 3 9.6s-.7 1.5-1.5 1.5zm0-2c-.3 0-.5.2-.5.5s.2.5.5.5.5-.3.5-.5-.2-.5-.5-.5zm0 5.9C.7 15 0 14.3 0 13.5S.7 12 1.5 12s1.5.7 1.5 1.5S2.3 15 1.5 15zm0-2c-.3 0-.5.2-.5.5s.2.5.5.5.5-.2.5-.5-.2-.5-.5-.5z"/></symbol><symbol viewBox="0 0 512 512" id="f-i-remove" xmlns="http://www.w3.org/2000/svg"><path d="M44.491 106.237l61.746-61.746L467.51 405.763l-61.746 61.746z"/><path d="M405.763 44.491l61.746 61.746L106.237 467.51l-61.746-61.746z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-rich-text" xmlns="http://www.w3.org/2000/svg"><path d="M15 1H1c-.6 0-1 .4-1 1v12c0 .6.4 1 1 1h14c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1zM1 3.1h.8v.3H1v-.3zm0 .5h.8v.3H1v-.3zM15 14H1V5.1h14V14zm0-9.1H1v-.3h14v.3zm0-.5H1v-.3h.8v.2h1.5v-.2h1.3v.2H6v-.2h1.3v.2h1.5v-.2H10v.2h1.5v-.2h1.3v.2h1.5v-.2h.7v.3zM4.5 3.6v.3H3.3v-.3h1.2zm-1.2-.2v-.3h1.3v.3H3.3zm4 .2v.3H6v-.3h1.3zM6 3.4v-.3h1.3v.3H6zm4 .2v.3H8.8v-.3H10zm-1.2-.2v-.3H10v.3H8.8zm4 .2v.3h-1.3v-.3h1.3zm-1.3-.2v-.3h1.3v.3h-1.3zm3.5.5h-.8v-.3h.8v.3zm0-.5h-.8v-.3h.8v.3zm0-.5h-.8v-.1h-1.5V3h-1.3v-.2H10V3H8.8v-.2H7.3V3H6v-.2H4.5V3H3.3v-.2H1.8V3H1v-.4h14v.3zm0-.5H1v-.3h14v.3zM3 12v-1h10v1H3zm10-2H3V9h10v1zm-2-2H3V7h8v
54971z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-rows" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 16a.5.5 0 00.5-.5V.5a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v4.964A.5.5 0 000 5.5v4.965a.5.5 0 000 .035v5a.5.5 0 00.5.5h15zm-.5-1H1v-4h14v4zm0-5H1V6h14v4zm0-5H1V1h14v4z" color="#000" font-weight="400" font-family="sans-serif" overflow="visible"/></symbol><symbol viewBox="0 0 16 16" id="f-i-select" xmlns="http://www.w3.org/2000/svg"><path d="M0 0v14c0 .6.4 1 1 1h10c.6 0 1-.4 1-1V5h4V0H0zm1 1h10v3H1V1zm0 6h10v3H1V7zm0 7v-3h10v3H1zM15 4h-3V1h3v3zM2 2h1v1H2V2zm0 10h1v1H2v-1zm2 0h1v1H4v-1zm2 0h1v1H6v-1zm3 0v1H8v-1h1zM2 8h1v1H2V8zm2 0h1v1H4V8zm2 0h1v1H6V8zm7.5-4.9l-1-1.1h1.9l-.9 1.1zM2 6V5h1v1H2zm2 0V5h1v1H4z"/></symbol><symbol viewBox="0 0 448 512" id="f-i-settings" xmlns="http://www.w3.org/2000/svg"><path d="M223.969 175C179.266 175 143 211.266 143 256c0 44.688 36.266 81.031 80.969 81.031 44.719 0 80.719-36.344 80.719-81.031 0-44.734-36-81-80.719-81zm162.344 127.531l-14.594 35.156 29.469 57.875-36.094 36.094-59.218-27.969-35.156 14.438-17.844 54.625-2.281 7.25h-51.016l-22.078-61.656-35.156-14.5-57.952 29.344-36.078-36.063 27.938-59.25-14.484-35.125L.002 282.594V231.61l61.703-22.109 14.485-35.094-25.953-51.234-3.422-6.719 36.031-36.031 59.297 27.922 35.109-14.516 17.828-54.594 2.297-7.234h51l22.094 61.734 35.063 14.516 58.031-29.406 36.063 36.031-27.938 59.203 14.438 35.172 61.875 20.125v50.969l-61.688 22.187z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-text-input" xmlns="http://www.w3.org/2000/svg"><path d="M15 4H4.5V3H6V2H2v1h1.5v1H1c-.6 0-1 .5-1 1v6c0 .6.4 1 1 1h2.5v1H2v1h4v-1H4.5v-1H15c.6 0 1-.4 1-1V5c0-.5-.4-1-1-1zM1 11V5h2.5v6H1zm14 0H4.5V5H15v6z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-textarea" xmlns="http://www.w3.org/2000/svg"><path d="M3 11v-1h8v1H3zm0-4h10V6H3v1zm0 1v1h10V8H3zm10-4H3v1h10V4zm3 10V2c0-.6-.4-1-1-1H1c-.6 0-1 .4-1 1v12c0 .6.4 1 1 1h14c.6 0 1-.4 1-1zM15 2v12H1V2h14z"/></symbol><symbol viewBox="0 0 24 32" id="f-i-triangle-down" xmlns="http://www.w3.org/2000/svg"><path d="M0 12l11.992 11.992L23.984 12H0z"/></symbol><symbol viewBox="0 0 12 32" id="f-i-triangle-left" xmlns="http://www.w3.org/2000/svg"><path d="M0 15.996l11.992 11.992V4.004L0 15.996z"/></symbol><symbol viewBox="0 0 12 32" id="f-i-triangle-right" xmlns="http://www.w3.org/2000/svg"><path d="M.002 4.008L11.994 16 .002 27.992V4.008z"/></symbol><symbol viewBox="0 0 24 32" id="f-i-triangle-up" xmlns="http://www.w3.org/2000/svg"><path d="M11.992 8L0 19.992h23.984L11.992 8z"/></symbol><symbol viewBox="0 0 512 512" id="f-i-upload" xmlns="http://www.w3.org/2000/svg"><path d="M240 352H0v128h480V352H240zm208 64h-64v-32h64v32zM112 160L240 32l128 128h-80v160h-96V160z"/></symbol></svg>')), t.push(i.a.init(Object.assign({}, this.opts.i18n, {locale: m.l.get(c.G)}))), Promise.all(t) 5498 }, o.init = function () { 5499 var e = this, n = this; 5500 this.load(this.userFormData, n.opts), this.controls = a.a.init(n.opts.controls, n.opts.stickyControls), n.formId = v.e.get("id"), this.i18n = { 5501 setLang: function (t) { 5502 m.l.set(c.G, t), i.a.setCurrent(t).then(function () { 5503 e.controls = a.a.init(n.opts.controls), n.render() 5504 }, console.error) 5505 } 5506 }, n.render() 5507 }, o.load = function (t, e) { 5508 return void 0 === t && (t = this.userFormData), void 0 === e && (e = this.opts), this.Components.load(t, e) 5509 }, o.render = function () { 5510 this.stages = Object.values(v.e.get("stages")); 5511 var t = { 5512 attrs: {className: "formeo formeo-editor", id: this.formId}, content: [this.stages.map(function (t) { 5513 return t.dom 5514 })] 5515 }; 5516 i.a.current.dir && (t.attrs.dir = i.a.current.dir, f.a.dir = i.a.current.dir), this.editor = f.a.create(t), (this.controls.container || this.editor).appendChild(this.controls.dom), this.editorContainer && (f.a.empty(this.editorContainer), this.editorContainer.appendChild(this.editor)), p.a.formeoLoaded = new window.CustomEvent("formeoLoaded", {detail: {formeo: this}}), document.dispatchEvent(p.a.formeoLoaded) 5517 }, e = t, (n = [{ 5518 key: "formData", get: function () { 5519 return this.Components.formData 5520 }, set: function (t) { 5521 return void 0 === t && (t = {}), this.load(b({}, this.userFormData, {}, t), this.opts) 5522 } 5523 }, { 5524 key: "json", get: function () { 5525 return this.Components.json 5526 } 5527 }]) && d(e.prototype, n), r && d(e, r), t 5528 }(); 5529 e.a = w 5530 }, function (n, t, e) { 5531 (function (t) { 5532 var e = "object" == typeof t && t && t.Object === Object && t; 5533 n.exports = e 5534 }).call(this, e(106)) 5535 }, function (t, e) { 5536 var n = Function.prototype.toString; 5537 t.exports = function (t) { 5538 if (null != t) { 5539 try { 5540 return n.call(t) 5541 } catch (t) { 5542 } 5543 try { 5544 return t + "" 5545 } catch (t) { 5546 } 5547 } 5548 return "" 5549 } 5550 }, function (t, e, n) { 5551 var r = n(45), o = n(22); 5552 t.exports = function (t, e, n) { 5553 (void 0 === n || o(t[e], n)) && (void 0 !== n || e in t) || r(t, e, n) 5554 } 5555 }, function (t, e, n) { 5556 var r = n(18), o = function () { 5557 try { 5558 var t = r(Object, "defineProperty"); 5559 return t({}, "", {}), t 5560 } catch (t) { 5561 } 5562 }(); 5563 t.exports = o 5564 }, function (t, a, s) { 5565 (function (t) { 5566 var e = s(10), n = a && !a.nodeType && a, r = n && "object" == typeof t && t && !t.nodeType && t, o = r && r.exports === n ? e.Buffer : void 0, i = o ? o.allocUnsafe : void 0; 5567 t.exports = function (t, e) { 5568 if (e) return t.slice(); 5569 var n = t.length, r = i ? i(n) : new t.constructor(n); 5570 return t.copy(r), r 5571 } 5572 }).call(this, s(46)(t)) 5573 }, function (t, e, n) { 5574 var r = n(47); 5575 t.exports = function (t, e) { 5576 var n = e ? r(t.buffer) : t.buffer; 5577 return new t.constructor(n, t.byteOffset, t.length) 5578 } 5579 }, function (t, e, n) { 5580 var r = n(10).Uint8Array; 5581 t.exports = r 5582 }, function (t, e) { 5583 t.exports = function (t, e) { 5584 var n = -1, r = t.length; 5585 for (e || (e = Array(r)); ++n < r;) e[n] = t[n]; 5586 return e 5587 } 5588 }, function (t, e, n) { 5589 var r = n(127), o = n(48), i = n(49); 5590 t.exports = function (t) { 5591 return "function" != typeof t.constructor || i(t) ? {} : r(o(t)) 5592 } 5593 }, function (t, e) { 5594 t.exports = function (e, n) { 5595 return function (t) { 5596 return e(n(t)) 5597 } 5598 } 5599 }, function (t, e, n) { 5600 var r = n(128), o = n(15), i = Object.prototype, a = i.hasOwnProperty, s = i.propertyIsEnumerable, c = r(function () { 5601 return arguments 5602 }()) ? r : function (t) { 5603 return o(t) && a.call(t, "callee") && !s.call(t, "callee") 5604 }; 5605 t.exports = c 5606 }, function (t, e) { 5607 t.exports = function (t) { 5608 return "number" == typeof t && -1 < t && t % 1 == 0 && t <= 9007199254740991 5609 } 5610 }, function (t, e) { 5611 t.exports = function (t, e) { 5612 if (("constructor" !== e || "function" != typeof t[e]) && "__proto__" != e) return t[e] 5613 } 5614 }, function (t, e, n) { 5615 var u = n(134), d = n(72), f = n(17), p = n(34), h = n(54), v = n(50), m = Object.prototype.hasOwnProperty; 5616 t.exports = function (t, e) { 5617 var n = f(t), r = !n && d(t), o = !n && !r && p(t), i = !n && !r && !o && v(t), a = n || r || o || i, s = a ? u(t.length, String) : [], c = s.length; 5618 for (var l in t) !e && !m.call(t, l) || a && ("length" == l || o && ("offset" == l || "parent" == l) || i && ("buffer" == l || "byteLength" == l || "byteOffset" == l) || h(l, c)) || s.push(l); 5619 return s 5620 } 5621 }, function (t, e, n) { 5622 var r = n(17), o = n(147), i = n(148), a = n(25); 5623 t.exports = function (t, e) { 5624 return r(t) ? t : o(t, e) ? [t] : i(a(t)) 5625 } 5626 }, function (t, e, n) { 5627 var r = n(36); 5628 t.exports = function (t) { 5629 if ("string" == typeof t || r(t)) return t; 5630 var e = t + ""; 5631 return "0" == e && 1 / t == -1 / 0 ? "-0" : e 5632 } 5633 }, function (t, e, n) { 5634 var r = n(155)("toUpperCase"); 5635 t.exports = r 5636 }, function (t, e) { 5637 var n = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"); 5638 t.exports = function (t) { 5639 return n.test(t) 5640 } 5641 }, function (t, e, n) { 5642 var m = n(174), g = n(177), b = n(178); 5643 t.exports = function (t, e, n, r, o, i) { 5644 var a = 1 & n, s = t.length, c = e.length; 5645 if (s != c && !(a && s < c)) return !1; 5646 var l = i.get(t); 5647 if (l && i.get(e)) return l == e; 5648 var u = -1, d = !0, f = 2 & n ? new m : void 0; 5649 for (i.set(t, e), i.set(e, t); ++u < s;) { 5650 var p = t[u], h = e[u]; 5651 if (r) var v = a ? r(h, p, u, e, t, i) : r(p, h, u, t, e, i); 5652 if (void 0 !== v) { 5653 if (v) continue; 5654 d = !1; 5655 break 5656 } 5657 if (f) { 5658 if (!g(e, function (t, e) { 5659 if (!b(f, e) && (p === t || o(p, t, n, r, i))) return f.push(e) 5660 })) { 5661 d = !1; 5662 break 5663 } 5664 } else if (p !== h && !o(p, h, n, r, i)) { 5665 d = !1; 5666 break 5667 } 5668 } 5669 return i.delete(t), i.delete(e), d 5670 } 5671 }, function (t, e, n) { 5672 var r = n(82), o = n(56), i = n(57); 5673 t.exports = function (t) { 5674 return r(t, i, o) 5675 } 5676 }, function (t, e, n) { 5677 var o = n(83), i = n(17); 5678 t.exports = function (t, e, n) { 5679 var r = e(t); 5680 return i(t) ? r : o(r, n(t)) 5681 } 5682 }, function (t, e) { 5683 t.exports = function (t, e) { 5684 for (var n = -1, r = e.length, o = t.length; ++n < r;) t[o + n] = e[n]; 5685 return t 5686 } 5687 }, function (t, e) { 5688 t.exports = function () { 5689 return [] 5690 } 5691 }, function (t, e, n) { 5692 var r = n(83), o = n(48), i = n(56), a = n(84), s = Object.getOwnPropertySymbols ? function (t) { 5693 for (var e = []; t;) r(e, i(t)), t = o(t); 5694 return e 5695 } : a; 5696 t.exports = s 5697 }, function (t, e, n) { 5698 var o = n(94), r = n(137)(function (t, e, n, r) { 5699 o(t, e, n, r) 5700 }); 5701 t.exports = r 5702 }, function (t, e, n) { 5703 var r = n(146); 5704 t.exports = function (t, e, n) { 5705 return null == t ? t : r(t, e, n) 5706 } 5707 }, function (t, e, n) { 5708 var o = n(153); 5709 t.exports = function (t, e, n) { 5710 var r = null == t ? void 0 : o(t, e); 5711 return void 0 === r ? n : r 5712 } 5713 }, function (t, e, n) { 5714 var r = n(154), o = n(55)(function (t, e, n) { 5715 return e = e.toLowerCase(), t + (n ? r(e) : e) 5716 }); 5717 t.exports = o 5718 }, function (t, e) { 5719 t.exports = function () { 5720 } 5721 }, function (t, e, n) { 5722 }, function (t, e) { 5723 var n = "undefined" != typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || "undefined" != typeof msCrypto && "function" == typeof window.msCrypto.getRandomValues && msCrypto.getRandomValues.bind(msCrypto); 5724 if (n) { 5725 var r = new Uint8Array(16); 5726 t.exports = function () { 5727 return n(r), r 5728 } 5729 } else { 5730 var o = new Array(16); 5731 t.exports = function () { 5732 for (var t, e = 0; e < 16; e++) 0 == (3 & e) && (t = 4294967296 * Math.random()), o[e] = t >>> ((3 & e) << 3) & 255; 5733 return o 5734 } 5735 } 5736 }, function (t, e) { 5737 for (var o = [], n = 0; n < 256; ++n) o[n] = (n + 256).toString(16).substr(1); 5738 t.exports = function (t, e) { 5739 var n = e || 0, r = o; 5740 return [r[t[n++]], r[t[n++]], r[t[n++]], r[t[n++]], "-", r[t[n++]], r[t[n++]], "-", r[t[n++]], r[t[n++]], "-", r[t[n++]], r[t[n++]], "-", r[t[n++]], r[t[n++]], r[t[n++]], r[t[n++]], r[t[n++]], r[t[n++]]].join("") 5741 } 5742 }, function (t, e, n) {
vendor: 9,394 bytes, lines 5743-5993
5743 var l = n(41), u = n(64), d = n(124), f = n(126), p = n(9), h = n(35), v = n(74); 5744 t.exports = function r(o, i, a, s, c) { 5745 o !== i && d(i, function (t, e) { 5746 if (c || (c = new l), p(t)) f(o, i, e, a, r, s, c); else { 5747 var n = s ? s(v(o, e), t, e + "", o, i, c) : void 0; 5748 void 0 === n && (n = t), u(o, e, n) 5749 } 5750 }, h) 5751 } 5752 }, function (t, e) { 5753 t.exports = function () { 5754 this.__data__ = [], this.size = 0 5755 } 5756 }, function (t, e, n) { 5757 var r = n(30), o = Array.prototype.splice; 5758 t.exports = function (t) { 5759 var e = this.__data__, n = r(e, t); 5760 return !(n < 0 || (n == e.length - 1 ? e.pop() : o.call(e, n, 1), --this.size, 0)) 5761 } 5762 }, function (t, e, n) { 5763 var r = n(30); 5764 t.exports = function (t) { 5765 var e = this.__data__, n = r(e, t); 5766 return n < 0 ? void 0 : e[n][1] 5767 } 5768 }, function (t, e, n) { 5769 var r = n(30); 5770 t.exports = function (t) { 5771 return -1 < r(this.__data__, t) 5772 } 5773 }, function (t, e, n) { 5774 var o = n(30); 5775 t.exports = function (t, e) { 5776 var n = this.__data__, r = o(n, t); 5777 return r < 0 ? (++this.size, n.push([t, e])) : n[r][1] = e, this 5778 } 5779 }, function (t, e, n) { 5780 var r = n(29); 5781 t.exports = function () { 5782 this.__data__ = new r, this.size = 0 5783 } 5784 }, function (t, e) { 5785 t.exports = function (t) { 5786 var e = this.__data__, n = e.delete(t); 5787 return this.size = e.size, n 5788 } 5789 }, function (t, e) { 5790 t.exports = function (t) { 5791 return this.__data__.get(t) 5792 } 5793 }, function (t, e) { 5794 t.exports = function (t) { 5795 return this.__data__.has(t) 5796 } 5797 }, function (t, e, n) { 5798 var o = n(29), i = n(42), a = n(44); 5799 t.exports = function (t, e) { 5800 var n = this.__data__; 5801 if (n instanceof o) { 5802 var r = n.__data__; 5803 if (!i || r.length < 199) return r.push([t, e]), this.size = ++n.size, this; 5804 n = this.__data__ = new a(r) 5805 } 5806 return n.set(t, e), this.size = n.size, this 5807 } 5808 }, function (t, e, n) { 5809 var r = n(43), o = n(109), i = n(9), a = n(63), s = /^\[object .+?Constructor\]$/, c = Function.prototype, l = Object.prototype, u = c.toString, d = l.hasOwnProperty, 5810 f = RegExp("^" + u.call(d).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); 5811 t.exports = function (t) { 5812 return !(!i(t) || o(t)) && (r(t) ? f : s).test(a(t)) 5813 } 5814 }, function (t, e) { 5815 var n; 5816 n = function () { 5817 return this 5818 }(); 5819 try { 5820 n = n || new Function("return this")() 5821 } catch (t) { 5822 "object" == typeof window && (n = window) 5823 } 5824 t.exports = n 5825 }, function (t, e, n) { 5826 var r = n(23), o = Object.prototype, i = o.hasOwnProperty, a = o.toString, s = r ? r.toStringTag : void 0; 5827 t.exports = function (t) { 5828 var e = i.call(t, s), n = t[s]; 5829 try { 5830 var r = !(t[s] = void 0) 5831 } catch (t) { 5832 } 5833 var o = a.call(t); 5834 return r && (e ? t[s] = n : delete t[s]), o 5835 } 5836 }, function (t, e) { 5837 var n = Object.prototype.toString; 5838 t.exports = function (t) { 5839 return n.call(t) 5840 } 5841 }, function (t, e, n) { 5842 var r, o = n(110), i = (r = /[^.]+$/.exec(o && o.keys && o.keys.IE_PROTO || "")) ? "Symbol(src)_1." + r : ""; 5843 t.exports = function (t) { 5844 return !!i && i in t 5845 } 5846 }, function (t, e, n) { 5847 var r = n(10)["__core-js_shared__"]; 5848 t.exports = r 5849 }, function (t, e) { 5850 t.exports = function (t, e) { 5851 return null == t ? void 0 : t[e] 5852 } 5853 }, function (t, e, n) { 5854 var r = n(113), o = n(29), i = n(42); 5855 t.exports = function () { 5856 this.size = 0, this.__data__ = {hash: new r, map: new (i || o), string: new r} 5857 } 5858 }, function (t, e, n) { 5859 var r = n(114), o = n(115), i = n(116), a = n(117), s = n(118); 5860 5861 function c(t) { 5862 var e = -1, n = null == t ? 0 : t.length; 5863 for (this.clear(); ++e < n;) { 5864 var r = t[e]; 5865 this.set(r[0], r[1]) 5866 } 5867 } 5868 5869 c.prototype.clear = r, c.prototype.delete = o, c.prototype.get = i, c.prototype.has = a, c.prototype.set = s, t.exports = c 5870 }, function (t, e, n) { 5871 var r = n(31); 5872 t.exports = function () { 5873 this.__data__ = r ? r(null) : {}, this.size = 0 5874 } 5875 }, function (t, e) { 5876 t.exports = function (t) { 5877 var e = this.has(t) && delete this.__data__[t]; 5878 return this.size -= e ? 1 : 0, e 5879 } 5880 }, function (t, e, n) { 5881 var r = n(31), o = Object.prototype.hasOwnProperty; 5882 t.exports = function (t) { 5883 var e = this.__data__; 5884 if (r) { 5885 var n = e[t]; 5886 return "__lodash_hash_undefined__" === n ? void 0 : n 5887 } 5888 return o.call(e, t) ? e[t] : void 0 5889 } 5890 }, function (t, e, n) { 5891 var r = n(31), o = Object.prototype.hasOwnProperty; 5892 t.exports = function (t) { 5893 var e = this.__data__; 5894 return r ? void 0 !== e[t] : o.call(e, t) 5895 } 5896 }, function (t, e, n) { 5897 var r = n(31); 5898 t.exports = function (t, e) { 5899 var n = this.__data__; 5900 return this.size += this.has(t) ? 0 : 1, n[t] = r && void 0 === e ? "__lodash_hash_undefined__" : e, this 5901 } 5902 }, function (t, e, n) { 5903 var r = n(32); 5904 t.exports = function (t) { 5905 var e = r(this, t).delete(t); 5906 return this.size -= e ? 1 : 0, e 5907 } 5908 }, function (t, e) { 5909 t.exports = function (t) { 5910 var e = typeof t; 5911 return "string" == e || "number" == e || "symbol" == e || "boolean" == e ? "__proto__" !== t : null === t 5912 } 5913 }, function (t, e, n) { 5914 var r = n(32); 5915 t.exports = function (t) { 5916 return r(this, t).get(t) 5917 } 5918 }, function (t, e, n) { 5919 var r = n(32); 5920 t.exports = function (t) { 5921 return r(this, t).has(t) 5922 } 5923 }, function (t, e, n) { 5924 var o = n(32); 5925 t.exports = function (t, e) { 5926 var n = o(this, t), r = n.size; 5927 return n.set(t, e), this.size += n.size == r ? 0 : 1, this 5928 } 5929 }, function (t, e, n) { 5930 var r = n(125)(); 5931 t.exports = r 5932 }, function (t, e) { 5933 t.exports = function (c) { 5934 return function (t, e, n) { 5935 for (var r = -1, o = Object(t), i = n(t), a = i.length; a--;) { 5936 var s = i[c ? a : ++r]; 5937 if (!1 === e(o[s], s, o)) break 5938 } 5939 return t 5940 } 5941 } 5942 }, function (t, e, n) { 5943 var v = n(64), m = n(66), g = n(67), b = n(69), y = n(70), w = n(72), O = n(17), x = n(129), j = n(34), E = n(43), C = n(9), S = n(131), _ = n(50), P = n(74), A = n(133); 5944 t.exports = function (t, e, n, r, o, i, a) { 5945 var s = P(t, n), c = P(e, n), l = a.get(c); 5946 if (l) v(t, n, l); else { 5947 var u = i ? i(s, c, n + "", t, e, a) : void 0, d = void 0 === u; 5948 if (d) { 5949 var f = O(c), p = !f && j(c), h = !f && !p && _(c); 5950 u = c, f || p || h ? u = O(s) ? s : x(s) ? b(s) : p ? m(c, !(d = !1)) : h ? g(c, !(d = !1)) : [] : S(c) || w(c) ? w(u = s) ? u = A(s) : C(s) && !E(s) || (u = y(c)) : d = !1 5951 } 5952 d && (a.set(c, u), o(u, c, r, i, a), a.delete(c)), v(t, n, u) 5953 } 5954 } 5955 }, function (t, e, n) { 5956 var r = n(9), o = Object.create, i = function () { 5957 function n() { 5958 } 5959 5960 return function (t) { 5961 if (!r(t)) return {}; 5962 if (o) return o(t); 5963 n.prototype = t; 5964 var e = new n; 5965 return n.prototype = void 0, e 5966 } 5967 }(); 5968 t.exports = i 5969 }, function (t, e, n) { 5970 var r = n(20), o = n(15); 5971 t.exports = function (t) { 5972 return o(t) && "[object Arguments]" == r(t) 5973 } 5974 }, function (t, e, n) { 5975 var r = n(33), o = n(15); 5976 t.exports = function (t) { 5977 return o(t) && r(t) 5978 } 5979 }, function (t, e) { 5980 t.exports = function () { 5981 return !1 5982 } 5983 }, function (t, e, n) { 5984 var r = n(20), o = n(48), i = n(15), a = Function.prototype, s = Object.prototype, c = a.toString, l = s.hasOwnProperty, u = c.call(Object); 5985 t.exports = function (t) { 5986 if (!i(t) || "[object Object]" != r(t)) return !1; 5987 var e = o(t); 5988 if (null === e) return !0; 5989 var n = l.call(e, "constructor") && e.constructor; 5990 return "function" == typeof n && n instanceof n && c.call(n) == u 5991 } 5992 }, function (t, e, n) { 5993 var r = n(20), o = n(73), i = n(15), a = {};
vendor: 5,884 bytes, lines 5994-6129
5994 a["[object Float32Array]"] = a["[object Float64Array]"] = a["[object Int8Array]"] = a["[object Int16Array]"] = a["[object Int32Array]"] = a["[object Uint8Array]"] = a["[object Uint8ClampedArray]"] = a["[object Uint16Array]"] = a["[object Uint32Array]"] = !0, a["[object Arguments]"] = a["[object Array]"] = a["[object ArrayBuffer]"] = a["[object Boolean]"] = a["[object DataView]"] = a["[object Date]"] = a["[object Error]"] = a["[object Function]"] = a["[object Map]"] = a["[object Number]"] = a["[object Object]"] = a["[object RegExp]"] = a["[object Set]"] = a["[object String]"] = a["[object WeakMap]"] = !1, t.exports = function (t) { 5995 return i(t) && o(t.length) && !!a[r(t)] 5996 } 5997 }, function (t, e, n) { 5998 var r = n(24), o = n(35); 5999 t.exports = function (t) { 6000 return r(t, o(t)) 6001 } 6002 }, function (t, e) { 6003 t.exports = function (t, e) { 6004 for (var n = -1, r = Array(t); ++n < t;) r[n] = e(n); 6005 return r 6006 } 6007 }, function (t, e, n) { 6008 var o = n(9), i = n(49), a = n(136), s = Object.prototype.hasOwnProperty; 6009 t.exports = function (t) { 6010 if (!o(t)) return a(t); 6011 var e = i(t), n = []; 6012 for (var r in t) ("constructor" != r || !e && s.call(t, r)) && n.push(r); 6013 return n 6014 } 6015 }, function (t, e) { 6016 t.exports = function (t) { 6017 var e = []; 6018 if (null != t) for (var n in Object(t)) e.push(n); 6019 return e 6020 } 6021 }, function (t, e, n) { 6022 var r = n(138), c = n(145); 6023 t.exports = function (s) { 6024 return r(function (t, e) { 6025 var n = -1, r = e.length, o = 1 < r ? e[r - 1] : void 0, i = 2 < r ? e[2] : void 0; 6026 for (o = 3 < s.length && "function" == typeof o ? (r--, o) : void 0, i && c(e[0], e[1], i) && (o = r < 3 ? void 0 : o, r = 1), t = Object(t); ++n < r;) { 6027 var a = e[n]; 6028 a && s(t, a, n, o) 6029 } 6030 return t 6031 }) 6032 } 6033 }, function (t, e, n) { 6034 var r = n(12), o = n(139), i = n(141); 6035 t.exports = function (t, e) { 6036 return i(o(t, e, r), t + "") 6037 } 6038 }, function (t, e, n) { 6039 var c = n(140), l = Math.max; 6040 t.exports = function (i, a, s) { 6041 return a = l(void 0 === a ? i.length - 1 : a, 0), function () { 6042 for (var t = arguments, e = -1, n = l(t.length - a, 0), r = Array(n); ++e < n;) r[e] = t[a + e]; 6043 e = -1; 6044 for (var o = Array(a + 1); ++e < a;) o[e] = t[e]; 6045 return o[a] = s(r), c(i, this, o) 6046 } 6047 } 6048 }, function (t, e) { 6049 t.exports = function (t, e, n) { 6050 switch (n.length) { 6051 case 0: 6052 return t.call(e); 6053 case 1: 6054 return t.call(e, n[0]); 6055 case 2: 6056 return t.call(e, n[0], n[1]); 6057 case 3: 6058 return t.call(e, n[0], n[1], n[2]) 6059 } 6060 return t.apply(e, n) 6061 } 6062 }, function (t, e, n) { 6063 var r = n(142), o = n(144)(r); 6064 t.exports = o 6065 }, function (t, e, n) { 6066 var r = n(143), o = n(65), i = n(12), a = o ? function (t, e) { 6067 return o(t, "toString", {configurable: !0, enumerable: !1, value: r(e), writable: !0}) 6068 } : i; 6069 t.exports = a 6070 }, function (t, e) { 6071 t.exports = function (t) { 6072 return function () { 6073 return t 6074 } 6075 } 6076 }, function (t, e) { 6077 var i = Date.now; 6078 t.exports = function (n) { 6079 var r = 0, o = 0; 6080 return function () { 6081 var t = i(), e = 16 - (t - o); 6082 if (o = t, 0 < e) { 6083 if (800 <= ++r) return arguments[0] 6084 } else r = 0; 6085 return n.apply(void 0, arguments) 6086 } 6087 } 6088 }, function (t, e, n) { 6089 var o = n(22), i = n(33), a = n(54), s = n(9); 6090 t.exports = function (t, e, n) { 6091 if (!s(n)) return !1; 6092 var r = typeof e; 6093 return !!("number" == r ? i(n) && a(e, n.length) : "string" == r && e in n) && o(n[e], t) 6094 } 6095 }, function (t, e, n) { 6096 var d = n(53), f = n(76), p = n(54), h = n(9), v = n(77); 6097 t.exports = function (t, e, n, r) { 6098 if (!h(t)) return t; 6099 for (var o = -1, i = (e = f(e, t)).length, a = i - 1, s = t; null != s && ++o < i;) { 6100 var c = v(e[o]), l = n; 6101 if (o != a) { 6102 var u = s[c]; 6103 void 0 === (l = r ? r(u, c, s) : void 0) && (l = h(u) ? u : p(e[o + 1]) ? [] : {}) 6104 } 6105 d(s, c, l), s = s[c] 6106 } 6107 return t 6108 } 6109 }, function (t, e, n) { 6110 var r = n(17), o = n(36), i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, a = /^\w*$/; 6111 t.exports = function (t, e) { 6112 if (r(t)) return !1; 6113 var n = typeof t; 6114 return !("number" != n && "symbol" != n && "boolean" != n && null != t && !o(t)) || a.test(t) || !i.test(t) || null != e && t in Object(e) 6115 } 6116 }, function (t, e, n) { 6117 var r = n(149), i = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, a = /\\(\\)?/g, o = r(function (t) { 6118 var o = []; 6119 return 46 === t.charCodeAt(0) && o.push(""), t.replace(i, function (t, e, n, r) { 6120 o.push(n ? r.replace(a, "$1") : e || t) 6121 }), o 6122 }); 6123 t.exports = o 6124 }, function (t, e, n) { 6125 var r = n(150); 6126 t.exports = function (t) { 6127 var e = r(t, function (t) { 6128 return 500 === n.size && n.clear(), t 6129 }), n = e.cache;
6130 return e 6131 } 6132 }, function (t, e, n) { 6133 var r = n(44), s = "Expected a function"; 6134 6135 function c(o, i) { 6136 if ("function" != typeof o || null != i && "function" != typeof i) throw new TypeError(s); 6137 var a = function () { 6138 var t = arguments, e = i ? i.apply(this, t) : t[0], n = a.cache; 6139 if (n.has(e)) return n.get(e); 6140 var r = o.apply(this, t); 6141 return a.cache = n.set(e, r) || n, r 6142 }; 6143 return a.cache = new (c.Cache || r), a 6144 } 6145 6146 c.Cache = r, t.exports = c 6147 }, function (t, e, n) { 6148 var r = n(23), o = n(152), i = n(17), a = n(36), s = 1 / 0, c = r ? r.prototype : void 0, l = c ? c.toString : void 0; 6149 t.exports = function t(e) { 6150 if ("string" == typeof e) return e; 6151 if (i(e)) return o(e, t) + ""; 6152 if (a(e)) return l ? l.call(e) : ""; 6153 var n = e + ""; 6154 return "0" == n && 1 / e == -s ? "-0" : n 6155 } 6156 }, function (t, e) { 6157 t.exports = function (t, e) { 6158 for (var n = -1, r = null == t ? 0 : t.length, o = Array(r); ++n < r;) o[n] = e(t[n], n, t); 6159 return o 6160 } 6161 }, function (t, e, n) { 6162 var o = n(76), i = n(77); 6163 t.exports = function (t, e) { 6164 for (var n = 0, r = (e = o(e, t)).length; null != t && n < r;) t = t[i(e[n++])]; 6165 return n && n == r ? t : void 0 6166 } 6167 }, function (t, e, n) { 6168 var r = n(25), o = n(78); 6169 t.exports = function (t) { 6170 return o(r(t).toLowerCase()) 6171 } 6172 }, function (t, e, n) { 6173 var i = n(156), a = n(79), s = n(158), c = n(25); 6174 t.exports = function (o) { 6175 return function (t) { 6176 t = c(t); 6177 var e = a(t) ? s(t) : void 0, n = e ? e[0] : t.charAt(0), r = e ? i(e, 1).join("") : t.slice(1); 6178 return n[o]() + r 6179 } 6180 } 6181 }, function (t, e, n) { 6182 var o = n(157); 6183 t.exports = function (t, e, n) { 6184 var r = t.length; 6185 return n = void 0 === n ? r : n, !e && r <= n ? t : o(t, e, n) 6186 } 6187 }, function (t, e) { 6188 t.exports = function (t, e, n) { 6189 var r = -1, o = t.length; 6190 e < 0 && (e = o < -e ? 0 : o + e), (n = o < n ? o : n) < 0 && (n += o), o = n < e ? 0 : n - e >>> 0, e >>>= 0; 6191 for (var i = Array(o); ++r < o;) i[r] = t[r + e]; 6192 return i 6193 } 6194 }, function (t, e, n) { 6195 var r = n(159), o = n(79), i = n(160); 6196 t.exports = function (t) { 6197 return o(t) ? i(t) : r(t) 6198 } 6199 }, function (t, e) { 6200 t.exports = function (t) { 6201 return t.split("") 6202 } 6203 }, function (t, e) { 6204 var n = "\\ud800-\\udfff", r = "[" + n + "]", o = "[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]", i = "\\ud83c[\\udffb-\\udfff]", a = "[^" + n + "]", s = "(?:\\ud83c[\\udde6-\\uddff]){2}", 6205 c = "[\\ud800-\\udbff][\\udc00-\\udfff]", l = "(?:" + o + "|" + i + ")" + "?", u = "[\\ufe0e\\ufe0f]?", d = u + l + ("(?:\\u200d(?:" + [a, s, c].join("|") + ")" + u + l + ")*"), 6206 f = "(?:" + [a + o + "?", o, s, c, r].join("|") + ")", p = RegExp(i + "(?=" + i + ")|" + f + d, "g"); 6207 t.exports = function (t) { 6208 return t.match(p) || [] 6209 } 6210 }, function (t, e) { 6211 t.exports = function (t, e, n, r) { 6212 var o = -1, i = null == t ? 0 : t.length; 6213 for (r && i && (n = t[++o]); ++o < i;) n = e(n, t[o], o, t); 6214 return n 6215 } 6216 }, function (t, e, n) { 6217 var r = n(163), o = n(25), i = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 6,426 bytes, lines 6217-6442
62177f]/g, a = RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]", "g"); 6218 t.exports = function (t) { 6219 return (t = o(t)) && t.replace(i, r).replace(a, "") 6220 } 6221 }, function (t, e, n) { 6222 var r = n(164)({ 6223 "Ã": "A", 6224 "Ã": "A", 6225 "Ã": "A", 6226 "Ã": "A", 6227 "Ã": "A", 6228 "à ": "A", 6229 "à ": "a", 6230 "á": "a", 6231 "â": "a", 6232 "ã": "a", 6233 "ä": "a", 6234 "Ã¥": "a", 6235 "Ã": "C", 6236 "ç": "c", 6237 "Ã": "D", 6238 "ð": "d", 6239 "Ã": "E", 6240 "Ã": "E", 6241 "Ã": "E", 6242 "Ã": "E", 6243 "è": "e", 6244 "é": "e", 6245 "ê": "e", 6246 "ë": "e", 6247 "Ã": "I", 6248 "Ã": "I", 6249 "Ã": "I", 6250 "Ã": "I", 6251 "ì": "i", 6252 "Ã": "i", 6253 "î": "i", 6254 "ï": "i", 6255 "Ã": "N", 6256 "ñ": "n", 6257 "Ã": "O", 6258 "Ã": "O", 6259 "Ã": "O", 6260 "Ã": "O", 6261 "Ã": "O", 6262 "Ã": "O", 6263 "ò": "o", 6264 "ó": "o", 6265 "ô": "o", 6266 "õ": "o", 6267 "ö": "o", 6268 "ø": "o", 6269 "Ã": "U", 6270 "Ã": "U", 6271 "Ã": "U", 6272 "Ã": "U", 6273 "ù": "u", 6274 "ú": "u", 6275 "û": "u", 6276 "ü": "u", 6277 "Ã": "Y", 6278 "ý": "y", 6279 "ÿ": "y", 6280 "Ã": "Ae", 6281 "æ": "ae", 6282 "Ã": "Th", 6283 "þ": "th", 6284 "Ã": "ss", 6285 "Ä": "A", 6286 "Ä": "A", 6287 "Ä": "A", 6288 "Ä": "a", 6289 "Ä": "a", 6290 "Ä ": "a", 6291 "Ä": "C", 6292 "Ä": "C", 6293 "Ä": "C", 6294 "Ä": "C", 6295 "Ä": "c", 6296 "Ä": "c", 6297 "Ä": "c", 6298 "Ä": "c", 6299 "Ä": "D", 6300 "Ä": "D", 6301 "Ä": "d", 6302 "Ä": "d", 6303 "Ä": "E", 6304 "Ä": "E", 6305 "Ä": "E", 6306 "Ä": "E", 6307 "Ä": "E", 6308 "Ä": "e", 6309 "Ä": "e", 6310 "Ä": "e", 6311 "Ä": "e", 6312 "Ä": "e", 6313 "Ä": "G", 6314 "Ä": "G", 6315 "Ä ": "G", 6316 "Ä¢": "G", 6317 "Ä": "g", 6318 "Ä": "g", 6319 "Ä¡": "g", 6320 "Ä£": "g", 6321 "Ĥ": "H", 6322 "Ħ": "H", 6323 "Ä¥": "h", 6324 "ħ": "h", 6325 "Ĩ": "I", 6326 "Ī": "I", 6327 "Ĭ": "I", 6328 "Ä®": "I", 6329 "İ": "I", 6330 "Ä©": "i", 6331 "Ä«": "i", 6332 "Ä": "i", 6333 "į": "i", 6334 "ı": "i", 6335 "Ä´": "J", 6336 "ĵ": "j", 6337 "Ķ": "K", 6338 "Ä·": "k", 6339 "ĸ": "k", 6340 "Ĺ": "L", 6341 "Ä»": "L", 6342 "Ľ": "L", 6343 "Ä¿": "L", 6344 "Å": "L", 6345 "ĺ": "l", 6346 "ļ": "l", 6347 "ľ": "l", 6348 "Å": "l", 6349 "Å": "l", 6350 "Å": "N", 6351 "Å ": "N", 6352 "Å": "N", 6353 "Å": "N", 6354 "Å": "n", 6355 "Å": "n", 6356 "Å": "n", 6357 "Å": "n", 6358 "Å": "O", 6359 "Å": "O", 6360 "Å": "O", 6361 "Å": "o", 6362 "Å": "o", 6363 "Å": "o", 6364 "Å": "R", 6365 "Å": "R", 6366 "Å": "R", 6367 "Å": "r", 6368 "Å": "r", 6369 "Å": "r", 6370 "Å": "S", 6371 "Å": "S", 6372 "Å": "S", 6373 "Å ": "S", 6374 "Å": "s", 6375 "Å": "s", 6376 "Å": "s", 6377 "Å¡": "s", 6378 "Å¢": "T", 6379 "Ť": "T", 6380 "Ŧ": "T", 6381 "Å£": "t", 6382 "Å¥": "t", 6383 "ŧ": "t", 6384 "Ũ": "U", 6385 "Ū": "U", 6386 "Ŭ": "U", 6387 "Å®": "U", 6388 "Ű": "U", 6389 "Ų": "U", 6390 "Å©": "u", 6391 "Å«": "u", 6392 "Å": "u", 6393 "ů": "u", 6394 "ű": "u", 6395 "ų": "u", 6396 "Å´": "W", 6397 "ŵ": "w", 6398 "Ŷ": "Y", 6399 "Å·": "y", 6400 "Ÿ": "Y", 6401 "Ź": "Z", 6402 "Å»": "Z", 6403 "Ž": "Z", 6404 "ź": "z", 6405 "ż": "z", 6406 "ž": "z", 6407 "IJ": "IJ", 6408 "ij": "ij", 6409 "Å": "Oe", 6410 "Å": "oe", 6411 "Å": "'n", 6412 "Å¿": "s" 6413 }); 6414 t.exports = r 6415 }, function (t, e) { 6416 t.exports = function (e) { 6417 return function (t) { 6418 return null == e ? void 0 : e[t] 6419 } 6420 } 6421 }, function (t, e, n) { 6422 var r = n(166), o = n(167), i = n(25), a = n(168); 6423 t.exports = function (t, e, n) { 6424 return t = i(t), void 0 === (e = n ? void 0 : e) ? o(t) ? a(t) : r(t) : t.match(e) || [] 6425 } 6426 }, function (t, e) { 6427 var n = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; 6428 t.exports = function (t) { 6429 return t.match(n) || [] 6430 } 6431 }, function (t, e) { 6432 var n = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; 6433 t.exports = function (t) { 6434 return n.test(t) 6435 } 6436 }, function (t, e) { 6437 var n = "\\ud800-\\udfff", r = "\\u2700-\\u27bf", o = "a-z\\xdf-\\xf6\\xf8-\\xff", i = "A-Z\\xc0-\\xd6\\xd8-\\xde", 6438 a = "\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", 6439 s = "[" + a + "]", c = "\\d+", l = "[" + r + "]", u = "[" + o + "]", d = "[^" + n + a + c + r + o + i + "]", f = "(?:\\ud83c[\\udde6-\\uddff]){2}", 6440 p = "[\\ud800-\\udbff][\\udc00-\\udfff]", h = "[" + i + "]", v = "(?:" + u + "|" + d + ")", m = "(?:" + h + "|" + d + ")", g = "(?:['â](?:d|ll|m|re|s|t|ve))?", 6441 b = "(?:['â](?:D|LL|M|RE|S|T|VE))?", y = "(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?", w = "[\\ufe0e\\ufe0f]?", 6442 O = w + y + ("(?:\\u200d(?:" + ["[^" + n + "]", f, p].join("|") + ")" + w + y + ")*"), x = "(?:" + [l, f, p
vendor: 9,701 bytes, lines 6442-6667
6442].join("|") + ")" + O, 6443 j = RegExp([h + "?" + u + "+" + g + "(?=" + [s, h, "$"].join("|") + ")", m + "+" + b + "(?=" + [s, h + v, "$"].join("|") + ")", h + "?" + v + "+" + g, h + "+" + b, "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", c, x].join("|"), "g"); 6444 t.exports = function (t) { 6445 return t.match(j) || [] 6446 } 6447 }, function (t, e, n) { 6448 var b = n(9), y = n(170), w = n(171), O = Math.max, x = Math.min; 6449 t.exports = function (r, o, t) { 6450 var i, a, s, c, l, u, d = 0, f = !1, p = !1, e = !0; 6451 if ("function" != typeof r) throw new TypeError("Expected a function"); 6452 6453 function h(t) { 6454 var e = i, n = a; 6455 return i = a = void 0, d = t, c = r.apply(n, e) 6456 } 6457 6458 function v(t) { 6459 var e = t - u; 6460 return void 0 === u || o <= e || e < 0 || p && s <= t - d 6461 } 6462 6463 function m() { 6464 var t, e, n = y(); 6465 if (v(n)) return g(n); 6466 l = setTimeout(m, (e = o - ((t = n) - u), p ? x(e, s - (t - d)) : e)) 6467 } 6468 6469 function g(t) { 6470 return l = void 0, e && i ? h(t) : (i = a = void 0, c) 6471 } 6472 6473 function n() { 6474 var t, e = y(), n = v(e); 6475 if (i = arguments, a = this, u = e, n) { 6476 if (void 0 === l) return d = t = u, l = setTimeout(m, o), f ? h(t) : c; 6477 if (p) return clearTimeout(l), l = setTimeout(m, o), h(u) 6478 } 6479 return void 0 === l && (l = setTimeout(m, o)), c 6480 } 6481 6482 return o = w(o) || 0, b(t) && (f = !!t.leading, s = (p = "maxWait" in t) ? O(w(t.maxWait) || 0, o) : s, e = "trailing" in t ? !!t.trailing : e), n.cancel = function () { 6483 void 0 !== l && clearTimeout(l), i = u = a = l = void (d = 0) 6484 }, n.flush = function () { 6485 return void 0 === l ? c : g(y()) 6486 }, n 6487 } 6488 }, function (t, e, n) { 6489 var r = n(10); 6490 t.exports = function () { 6491 return r.Date.now() 6492 } 6493 }, function (t, e, n) { 6494 var r = n(9), o = n(36), i = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, c = /^0o[0-7]+$/i, l = parseInt; 6495 t.exports = function (t) { 6496 if ("number" == typeof t) return t; 6497 if (o(t)) return NaN; 6498 if (r(t)) { 6499 var e = "function" == typeof t.valueOf ? t.valueOf() : t; 6500 t = r(e) ? e + "" : e 6501 } 6502 if ("string" != typeof t) return 0 === t ? t : +t; 6503 t = t.replace(i, ""); 6504 var n = s.test(t); 6505 return n || c.test(t) ? l(t.slice(2), n ? 2 : 8) : a.test(t) ? NaN : +t 6506 } 6507 }, function (t, e, n) { 6508 var a = n(173), s = n(15); 6509 t.exports = function t(e, n, r, o, i) { 6510 return e === n || (null == e || null == n || !s(e) && !s(n) ? e != e && n != n : a(e, n, r, o, t, i)) 6511 } 6512 }, function (t, e, n) { 6513 var g = n(41), b = n(80), y = n(179), w = n(182), O = n(37), x = n(17), j = n(34), E = n(50), C = "[object Arguments]", S = "[object Array]", _ = "[object Object]", 6514 P = Object.prototype.hasOwnProperty; 6515 t.exports = function (t, e, n, r, o, i) { 6516 var a = x(t), s = x(e), c = a ? S : O(t), l = s ? S : O(e), u = (c = c == C ? _ : c) == _, d = (l = l == C ? _ : l) == _, f = c == l; 6517 if (f && j(t)) { 6518 if (!j(e)) return !1; 6519 u = !(a = !0) 6520 } 6521 if (f && !u) return i || (i = new g), a || E(t) ? b(t, e, n, r, o, i) : y(t, e, c, n, r, o, i); 6522 if (!(1 & n)) { 6523 var p = u && P.call(t, "__wrapped__"), h = d && P.call(e, "__wrapped__"); 6524 if (p || h) { 6525 var v = p ? t.value() : t, m = h ? e.value() : e; 6526 return i || (i = new g), o(v, m, n, r, i) 6527 } 6528 } 6529 return !!f && (i || (i = new g), w(t, e, n, r, o, i)) 6530 } 6531 }, function (t, e, n) { 6532 var r = n(44), o = n(175), i = n(176); 6533 6534 function a(t) { 6535 var e = -1, n = null == t ? 0 : t.length; 6536 for (this.__data__ = new r; ++e < n;) this.add(t[e]) 6537 } 6538 6539 a.prototype.add = a.prototype.push = o, a.prototype.has = i, t.exports = a 6540 }, function (t, e) { 6541 t.exports = function (t) { 6542 return this.__data__.set(t, "__lodash_hash_undefined__"), this 6543 } 6544 }, function (t, e) { 6545 t.exports = function (t) { 6546 return this.__data__.has(t) 6547 } 6548 }, function (t, e) { 6549 t.exports = function (t, e) { 6550 for (var n = -1, r = null == t ? 0 : t.length; ++n < r;) if (e(t[n], n, t)) return !0; 6551 return !1 6552 } 6553 }, function (t, e) { 6554 t.exports = function (t, e) { 6555 return t.has(e) 6556 } 6557 }, function (t, e, n) { 6558 var r = n(23), d = n(68), f = n(22), p = n(80), h = n(180), v = n(181), o = r ? r.prototype : void 0, m = o ? o.valueOf : void 0; 6559 t.exports = function (t, e, n, r, o, i, a) { 6560 switch (n) { 6561 case"[object DataView]": 6562 if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset) return !1; 6563 t = t.buffer, e = e.buffer; 6564 case"[object ArrayBuffer]": 6565 return !(t.byteLength != e.byteLength || !i(new d(t), new d(e))); 6566 case"[object Boolean]": 6567 case"[object Date]": 6568 case"[object Number]": 6569 return f(+t, +e); 6570 case"[object Error]": 6571 return t.name == e.name && t.message == e.message; 6572 case"[object RegExp]": 6573 case"[object String]": 6574 return t == e + ""; 6575 case"[object Map]": 6576 var s = h; 6577 case"[object Set]": 6578 var c = 1 & r; 6579 if (s || (s = v), t.size != e.size && !c) return !1; 6580 var l = a.get(t); 6581 if (l) return l == e; 6582 r |= 2, a.set(t, e); 6583 var u = p(s(t), s(e), r, o, i, a); 6584 return a.delete(t), u; 6585 case"[object Symbol]": 6586 if (m) return m.call(t) == m.call(e) 6587 } 6588 return !1 6589 } 6590 }, function (t, e) { 6591 t.exports = function (t) { 6592 var n = -1, r = Array(t.size); 6593 return t.forEach(function (t, e) { 6594 r[++n] = [e, t] 6595 }), r 6596 } 6597 }, function (t, e) { 6598 t.exports = function (t) { 6599 var e = -1, n = Array(t.size); 6600 return t.forEach(function (t) { 6601 n[++e] = t 6602 }), n 6603 } 6604 }, function (t, e, n) { 6605 var y = n(81), w = Object.prototype.hasOwnProperty; 6606 t.exports = function (t, e, n, r, o, i) { 6607 var a = 1 & n, s = y(t), c = s.length; 6608 if (c != y(e).length && !a) return !1; 6609 for (var l = c; l--;) { 6610 var u = s[l]; 6611 if (!(a ? u in e : w.call(e, u))) return !1 6612 } 6613 var d = i.get(t); 6614 if (d && i.get(e)) return d == e; 6615 var f = !0; 6616 i.set(t, e), i.set(e, t); 6617 for (var p = a; ++l < c;) { 6618 var h = t[u = s[l]], v = e[u]; 6619 if (r) var m = a ? r(v, h, u, e, t, i) : r(h, v, u, t, e, i); 6620 if (!(void 0 === m ? h === v || o(h, v, n, r, i) : m)) { 6621 f = !1; 6622 break 6623 } 6624 p || (p = "constructor" == u) 6625 } 6626 if (f && !p) { 6627 var g = t.constructor, b = e.constructor; 6628 g != b && "constructor" in t && "constructor" in e && !("function" == typeof g && g instanceof g && "function" == typeof b && b instanceof b) && (f = !1) 6629 } 6630 return i.delete(t), i.delete(e), f 6631 } 6632 }, function (t, e) { 6633 t.exports = function (t, e) { 6634 for (var n = -1, r = null == t ? 0 : t.length, o = 0, i = []; ++n < r;) { 6635 var a = t[n]; 6636 e(a, n, t) && (i[o++] = a) 6637 } 6638 return i 6639 } 6640 }, function (t, e, n) { 6641 var r = n(49), o = n(185), i = Object.prototype.hasOwnProperty; 6642 t.exports = function (t) { 6643 if (!r(t)) return o(t); 6644 var e = []; 6645 for (var n in Object(t)) i.call(t, n) && "constructor" != n && e.push(n); 6646 return e 6647 } 6648 }, function (t, e, n) { 6649 var r = n(71)(Object.keys, Object); 6650 t.exports = r 6651 }, function (t, e, n) { 6652 var r = n(18)(n(10), "DataView"); 6653 t.exports = r 6654 }, function (t, e, n) { 6655 var r = n(18)(n(10), "Promise"); 6656 t.exports = r 6657 }, function (t, e, n) { 6658 var r = n(18)(n(10), "Set"); 6659 t.exports = r 6660 }, function (t, e, n) { 6661 var r = n(18)(n(10), "WeakMap"); 6662 t.exports = r 6663 }, function (t, e, n) { 6664 var g = n(41), b = n(191), y = n(53), w = n(192), O = n(193), x = n(66), j = n(69), E = n(194), C = n(195), S = n(81), _ = n(196), P = n(37), A = n(197), D = n(198), k = n(70), N = n(17), 6665 T = n(34), z = n(202), L = n(9), M = n(204), H = n(57), R = 1, I = 2, V = 4, B = "[object Arguments]", F = "[object Function]", q = "[object GeneratorFunction]", W = "[object Object]", 6666 U = {}; 6667 U[B] = U["[object Array]"] = U["[object ArrayBuffer]"] = U["[object DataView]"] =
6667U["[object Boolean]"] = U["[object Date]"] = U["[object Float32Array]"] = U["[object Float64Array]"] = U["[object Int8Array]"] = U["[object Int16Array]"] = U["[object Int32Array]"] = U["[object Map]"] = U["[object Number]"] = U[W] = U["[object RegExp]"] = U["[object Set]"] = U["[object String]"] = U["[object Symbol]"] = U["[object Uint8Array]"] = U["[object Uint8ClampedArray]"] = U["[object Uint16Array]"] = U["[object Uint32Array]"] = !0, U["[object Error]"] = U[F] = U["[object WeakMap]"] = !1, t.exports = function n(r, o, i, t, e, a) { 6668 var s, c = o & R, l = o & I, u = o & V; 6669 if (i && (s = e ? i(r, t, e, a) : i(r)), void 0 !== s) return s; 6670 if (!L(r)) return r; 6671 var d = N(r); 6672 if (d) { 6673 if (s = A(r), !c) return j(r, s) 6674 } else { 6675 var f = P(r), p = f == F || f == q; 6676 if (T(r)) return x(r, c); 6677 if (f == W || f == B || p && !e) { 6678 if (s = l || p ? {} : k(r), !c) return l ? C(r, O(s, r)) : E(r, w(s, r)) 6679 } else { 6680 if (!U[f]) return e ? r : {}; 6681 s = D(r, f, c) 6682 } 6683 } 6684 a || (a = new g); 6685 var h = a.get(r); 6686 if (h) return h; 6687 a.set(r, s), M(r) ? r.forEach(function (t) { 6688 s.add(n(t, o, i, t, r, a)) 6689 }) : z(r) && r.forEach(function (t, e) { 6690 s.set(e, n(t, o, i, e, r, a)) 6691 }); 6692 var v = u ? l ? _ : S : l ? keysIn : H, m = d ? void 0 : v(r); 6693 return b(m || r, function (t, e) { 6694 m && (t = r[e = t]), y(s, e, n(t, o, i, e, r, a)) 6695 }), s 6696 } 6697 }, function (t, e) { 6698 t.exports = function (t, e) { 6699 for (var n = -1, r = null == t ? 0 : t.length; ++n < r && !1 !== e(t[n], n, t);) ; 6700 return t 6701 } 6702 }, function (t, e, n) { 6703 var r = n(24), o = n(57); 6704 t.exports = function (t, e) { 6705 return t && r(e, o(e), t) 6706 } 6707 }, function (t, e, n) { 6708 var r = n(24), o = n(35); 6709 t.exports = function (t, e) { 6710 return t && r(e, o(e), t) 6711 } 6712 }, function (t, e, n) { 6713 var r = n(24), o = n(56); 6714 t.exports = function (t, e) { 6715 return r(t, o(t), e) 6716 } 6717 }, function (t, e, n) { 6718 var r = n(24), o = n(85); 6719 t.exports = function (t, e) { 6720 return r(t, o(t), e) 6721 } 6722 }, function (t, e, n) { 6723 var r = n(82), o = n(85), i = n(35); 6724 t.exports = function (t) { 6725 return r(t, i, o) 6726 } 6727 }, function (t, e) { 6728 var r = Object.prototype.hasOwnProperty; 6729 t.exports = function (t) { 6730 var e = t.length, n = new t.constructor(e); 6731 return e && "string" == typeof t[0] && r.call(t, "index") && (n.index = t.index, n.input = t.input), n 6732 } 6733 }, function (t, e, n) { 6734 var o = n(47), i = n(199), a = n(200), s = n(201), c = n(67); 6735 t.exports = function (t, e, n) { 6736 var r = t.constructor; 6737 switch (e) { 6738 case"[object ArrayBuffer]": 6739 return o(t); 6740 case"[object Boolean]": 6741 case"[object Date]": 6742 return new r(+t); 6743 case"[object DataView]": 6744 return i(t, n); 6745 case"[object Float32Array]": 6746 case"[object Float64Array]": 6747 case"[object Int8Array]": 6748 case"[object Int16Array]": 6749 case"[object Int32Array]": 6750 case"[object Uint8Array]": 6751 case"[object Uint8ClampedArray]": 6752 case"[object Uint16Array]": 6753 case"[object Uint32Array]": 6754 return c(t, n); 6755 case"[object Map]": 6756 return new r; 6757 case"[object Number]": 6758 case"[object String]": 6759 return new r(t); 6760 case"[object RegExp]": 6761 return a(t); 6762 case"[object Set]": 6763 return new r; 6764 case"[object Symbol]": 6765 return s(t) 6766 } 6767 } 6768 }, function (t, e, n) { 6769 var r = n(47); 6770 t.exports = function (t, e) { 6771 var n = e ? r(t.buffer) : t.buffer; 6772 return new t.constructor(n, t.byteOffset, t.byteLength) 6773 } 6774 }, function (t, e) { 6775 var n = /\w*$/; 6776 t.exports = function (t) { 6777 var e = new t.constructor(t.source, n.exec(t)); 6778 return e.lastIndex = t.lastIndex, e 6779 } 6780 }, function (t, e, n) { 6781 var r = n(23), o = r ? r.prototype : void 0, i = o ? o.valueOf : void 0; 6782 t.exports = function (t) { 6783 return i ? Object(i.call(t)) : {} 6784 } 6785 }, function (t, e, n) { 6786 var r = n(203), o = n(51), i = n(52), a = i && i.isMap, s = a ? o(a) : r; 6787 t.exports = s 6788 }, function (t, e, n) { 6789 var r = n(37), o = n(15); 6790 t.exports = function (t) { 6791 return o(t) && "[object Map]" == r(t) 6792 } 6793 }, function (t, e, n) { 6794 var r = n(205), o = n(51), i = n(52), a = i && i.isSet, s = a ? o(a) : r; 6795 t.exports = s 6796 }, function (t, e, n) { 6797 var r = n(37), o = n(15); 6798 t.exports = function (t) { 6799 return o(t) && "[object Set]" == r(t) 6800 } 6801 }, function (t, e, n) { 6802 "use strict"; 6803 n.r(e), n.d(e, "FormeoEditor", function () { 6804 return i 6805 }), n.d(e, "FormeoRenderer", function () { 6806 return a 6807 }); 6808 var r = n(61), o = n(60); 6809 void 0 !== window && (window.FormeoEditor = r.a, window.FormeoRenderer = o.a); 6810 var i = r.a, a = o.a; 6811 e.default = {FormeoEditor: i, FormeoRenderer: a} 6812 }]) 6813});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.