Files
Grav-Admin-Plugin/themes/grav/js/admin.min.js

6 lines
166 KiB
JavaScript
Raw Normal View History

var Grav=webpackJsonpGrav([0],[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=r(i),a=n(200),u=r(a),s=n(201),c=r(s),f=n(206),l=r(f),h=n(211),d=r(h),p=n(227),v=r(p);n(236),n(237),n(238),u["default"].start(),e["default"]={GPM:{GPM:o["default"],Instance:i.Instance},KeepAlive:u["default"],Dashboard:l["default"],Pages:d["default"],Forms:v["default"],Updates:{Updates:c["default"],Instance:s.Instance}}},function(t,e,n){(function(t){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var u=n(193),s=n(198),c=n(199),f=function(e){function n(){var t=arguments.length<=0||void 0===arguments[0]?"getUpdates":arguments[0];r(this,n);var e=i(this,Object.getPrototypeOf(n).call(this));return e.payload={},e.raw={},e.action=t,e}return o(n,e),a(n,[{key:"setPayload",value:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return this.payload=t,this.emit("payload",t),this}},{key:"setAction",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"getUpdates":arguments[0];return this.action=t,this.emit("action",t),this}},{key:"fetch",value:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){var e=this,n=arguments.length<=0||void 0===arguments[0]?function(){return!0}:arguments[0],r=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],i=new FormData;i.append("task","GPM"),i.append("action",this.action),r&&i.append("flush",!0),this.emit("fetching",this),t(s.config.base_url_relative,{credentials:"same-origin",method:"post",body:i}).then(function(t){return e.raw=t,t}).then(u.parseStatus).then(u.parseJSON).then(function(t){return e.response(t)}).then(function(t){return n(t,e.raw)}).then(function(t){return e.emit("fetched",e.payload,e.raw,e)})["catch"](u.userFeedbackError)})},{key:"response",value:function(t){return this.payload=t,t}}]),n}(c.EventEmitter);e["default"]=f;e.Instance=new f}).call(e,n(2))},function(t,e,n){(function(e,n){(function(){!function(t){"use strict";function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function i(t){this.map={},t instanceof i?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function o(t){return t.bodyUsed?e.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function a(t){return new e(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function u(t){var e=new FileReader;return e.readAsArrayBuffer(t),a(e)}function s(t){var e=new FileReader;return e.readAsText(t),a(e)}function c(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,"string"==typeof t)this._bodyText=t;else if(v.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(v.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(t){if(!v.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Error("unsupported BodyInit type")}else this._bodyText="";this.headers.get("content-type")||("str
return this};t.exports=function(t,e,n,_,m,b,w){c(n,e,_);var S,I,x=function(t){if(!d&&t in M)return M[t];switch(t){case v:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",E=m==y,k=!1,M=t.prototype,A=M[h]||M[p]||m&&M[m],z=A||x(m);if(A){var D=l(z.call(new t));f(D,O,!0),!r&&u(M,p)&&a(D,h,g),E&&A.name!==y&&(k=!0,z=function(){return A.call(this)})}if(r&&!w||!d&&!k&&M[h]||a(M,h,z),s[e]=z,s[O]=g,m)if(S={values:E?z:x(y),keys:b?z:x(v),entries:E?x("entries"):z},w)for(I in S)I in M||o(M,I,S[I]);else i(i.P+i.F*(d||k),e,S);return S}},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(6),i=n(11),o=n(39),a={};n(10)(a,n(35)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r.create(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){"use strict";var r=n(7),i=n(102)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(7),i=n(31),o=n(108),a="endsWith",u=""[a];r(r.P+r.F*n(110)(a),"String",{endsWith:function(t){var e=o(this,t,a),n=arguments,r=n.length>1?n[1]:void 0,s=i(e.length),c=void 0===r?s:Math.min(i(r),s),f=String(t);return u?u.call(e,f,c):e.slice(c-f.length,c)===f}})},function(t,e,n){var r=n(109),i=n(26);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},function(t,e,n){var r=n(20),i=n(22),o=n(35)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(35)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(i){}}return!0}},function(t,e,n){"use strict";var r=n(7),i=n(108),o="includes";r(r.P+r.F*n(110)(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(7);r(r.P,"String",{repeat:n(113)})},function(t,e,n){"use strict";var r=n(29),i=n(26);t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(0>o||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e,n){"use strict";var r=n(7),i=n(31),o=n(108),a="startsWith",u=""[a];r(r.P+r.F*n(110)(a),"String",{startsWith:function(t){var e=o(this,t,a),n=arguments,r=i(Math.min(n.length>1?n[1]:void 0,e.length)),s=String(t);return u?u.call(e,s,r):e.slice(r,r+s.length)===s}})},function(t,e,n){"use strict";var r=n(16),i=n(7),o=n(25),a=n(116),u=n(117),s=n(31),c=n(118);i(i.S+i.F*!n(119)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,l=o(t),h="function"==typeof this?this:Array,d=arguments,p=d.length,v=p>1?d[1]:void 0,y=void 0!==v,g=0,_=c(l);if(y&&(v=r(v,p>2?d[2]:void 0,2)),void 0==_||h==Array&&u(_))for(e=s(l.length),n=new h(e);e>g;g++)n[g]=y?v(l[g],g):l[g];else for(f=_.call(l),n=new h;!(i=f.next()).done;g++)n[g]=y?a(f,v,[i.value,g],!0):i.value;return n.length=g,n}})},function(t,e,n){var r=n(24);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(o){var a=t["return"];throw void 0!==a&&r(a.call(t)),o}}},function(t,e,n){var r=n(104),i=n(35)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(51),i=n(35)("iterator"),o=n(104);t.exports=n(9).getIteratorMethod=function(t){return void 0!=t?t[i]||t["@@iterator"]||o[r(t)]:void 0}},function(t,e,n){var r=n(35)("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){n=!0},o[r]=function(){return a},t(o)}catch(u){}return n}},function(t,e,n){"use strict";var r=n(7);r(r.S+r.F*n(13)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments,n=e.length,r=new("function"==typeof this?this:Array)(n);n>t;)r[t]=e[t++];return r.length=n,r}})},function(t,e,n){"use strict";var r=n(122),i=n(123),o=n(104),a=n(27);t.exports=n(103)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){va
})),n&&c["default"]["success"===e?"success":"error"](n),r&&(c["default"].options=i),t}function u(t){c["default"].error("Fetch Failed: <br /> "+t.message+" <pre><code>"+t.stack+"</code></pre>"),console.error(t.message+" at "+t.stack)}Object.defineProperty(e,"__esModule",{value:!0}),e.parseStatus=i,e.parseJSON=o,e.userFeedback=a,e.userFeedbackError=u;var s=n(194),c=r(s),f=n(198),l=function h(t){var h=new Error(t.statusText||t||"");return h.response=t,h}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(195),o=r(i);o["default"].options.positionClass="toast-top-right",o["default"].options.preventDuplicates=!0,e["default"]=o["default"]},,,,function(t,e){t.exports=GravAdmin},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function i(t){return"number"==typeof t}function o(t){return"object"==typeof t&&null!==t}function a(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!i(t)||0>t||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,i,u,s,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[t],a(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:u=Array.prototype.slice.call(arguments,1),n.apply(this,u)}else if(o(n))for(u=Array.prototype.slice.call(arguments,1),c=n.slice(),i=c.length,s=0;i>s;s++)c[s].apply(this,u);return!0},n.prototype.addListener=function(t,e){var i;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(i=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,i&&i>0&&this._events[t].length>i&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var i=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,i,a,u;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],a=n.length,i=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(n)){for(u=a;u-- >0;)if(n[u]===e||n[u].listener&&n[u].listener===e){i=u;break}if(0>i)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],r(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?r(this._events[t])?[this._events[
value:function(t,e,n){n.append("admin-nonce",h.config.admin_nonce)}},{key:"onDropzoneSuccess",value:function(t,e,n){return this.handleError({file:t,data:e,mode:"removeFile",msg:"<p>"+h.translations.PLUGIN_ADMIN.FILE_ERROR_UPLOAD+" <strong>"+t.name+"</strong></p>\n <pre>"+e.message+"</pre>"})}},{key:"onDropzoneComplete",value:function(t){if(!t.accepted){var e={status:"error",message:h.translations.PLUGIN_ADMIN.FILE_UNSUPPORTED+": "+t.name.match(/\..+/).join("")};return this.handleError({file:t,data:e,mode:"removeFile",msg:"<p>"+h.translations.PLUGIN_ADMIN.FILE_ERROR_ADD+" <strong>"+t.name+"</strong></p>\n <pre>"+e.message+"</pre>"})}(0,u["default"])(".dz-preview").prop("draggable","true")}},{key:"onDropzoneRemovedFile",value:function(t){if(console.log(t.name,"acc",t.accepted,"rej",t.rejected),t.accepted&&!t.rejected){var e=this.form.data("media-url")+"/task"+h.config.param_sep+"delmedia";(0,l["default"])(e,{method:"post",body:{filename:t.name}})}}},{key:"onDropzoneError",value:function(t,e,n){var r=n?e.error.message:e;return(0,u["default"])(t.previewElement).find("[data-dz-errormessage]").html(r),this.handleError({file:t,data:{status:"error"},msg:"<pre>"+r+"</pre>"})}},{key:"handleError",value:function(t){var e=t.file,n=t.data,r=t.mode,i=t.msg;if("error"===n.status||"unauthorized"===n.status){switch(r){case"addBack":e instanceof File?this.dropzone.addFile.call(this.dropzone,e):(this.dropzone.files.push(e),this.dropzone.options.addedfile.call(this.dropzone,e),this.dropzone.options.thumbnail.call(this.dropzone,e,e.extras.url));break;case"removeFile":e.rejected=!0,this.dropzone.removeFile.call(this.dropzone,e)}var o=(0,u["default"])('[data-remodal-id="generic"]');o.find(".error-content").html(i),u["default"].remodal.lookup[o.data("remodal")].open()}}}]),t}();e["default"]=p;e.Instance=new p},,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(228),o=r(i),a=n(231),u=r(a),s=n(232),c=r(s);e["default"]={Form:{Form:u["default"],Instance:a.Instance},Fields:c["default"],FormState:{FormState:o["default"],Instance:i.Instance}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();Object.defineProperty(e,"__esModule",{value:!0}),e.DOMBehaviors=e.Instance=void 0;var a=n(196),u=r(a),s=n(229),c=r(s);n(230);var f={},l={attach:function(){this.preventUnload(),this.preventClickAway()},preventUnload:function(){u["default"]._data(window,"events")&&(u["default"]._data(window,"events").beforeunload||[]).filter(function(t){return"_grav"===t.namespace})||(0,u["default"])(window).on("beforeunload._grav",function(){return d.equals()===!1?"You have made changes on this page that you have not yet confirmed. If you navigate away from this page you will lose your unsaved changes.":void 0})},preventClickAway:function(){var t="a[href]:not([href^=#])";u["default"]._data((0,u["default"])(t).get(0),"events")&&(u["default"]._data((0,u["default"])(t).get(0),"events").click||[]).filter(function(t){return"_grav"===t.namespace})||(0,u["default"])(t).on("click._grav",function(t){var e=d.equals();if(null===e||e)return!0;t.preventDefault();var n=(0,u["default"])(this).attr("href"),r=(0,u["default"])('[data-remodal-id="changes"]'),i=u["default"].remodal.lookup[r.data("remodal")],o=(0,u["default"])("a.button",r),a=function s(t){t.preventDefault();var e=(0,u["default"])(this).data("leave-action");o.off("click",s),i.close(),"continue"===e&&((0,u["default"])(window).off("beforeunload"),window.location.href=n)};o.on("click",a),i.open()})}},h=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?{ignore:[],form_id:"blueprints"}:arguments[0];i(this,t),this.options=e,this.refres
if(!O(r))return new w(I);var i=0;return new w(function(){var e=r.next();return e.done?e:S(t,i++,e.value)})},t(T,D),T.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n=this._iterator,r=this._iteratorCache,i=0;i<r.length;)if(t(r[i],i++,this)===!1)return i;for(var o;!(o=n.next()).done;){var a=o.value;if(r[i]=a,t(a,i++,this)===!1)break}return i},T.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,i=0;return new w(function(){if(i>=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return S(t,i,r[i++])})};var kn;t($,D),$.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},$.prototype.get=function(t,e){return this.has(t)?this._value:e},$.prototype.includes=function(t){return Y(this._value,t)},$.prototype.slice=function(t,e){var n=this.size;return g(t,e,n)?this:new $(this._value,m(e,n)-_(t,n))},$.prototype.reverse=function(){return this},$.prototype.indexOf=function(t){return Y(this._value,t)?0:-1},$.prototype.lastIndexOf=function(t){return Y(this._value,t)?this.size:-1},$.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(t(this._value,n,this)===!1)return n+1;return n},$.prototype.__iterator=function(t,e){var n=this,r=0;return new w(function(){return r<n.size?S(t,r++,n._value):I()})},$.prototype.equals=function(t){return t instanceof $?Y(this._value,t._value):X(t)};var Mn;t(Q,D),Q.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Q.prototype.get=function(t,e){return this.has(t)?this._start+v(this,t)*this._step:e},Q.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},Q.prototype.slice=function(t,e){return g(t,e,this.size)?this:(t=_(t,this.size),e=m(e,this.size),t>=e?new Q(0,0):new Q(this.get(t,this._end),this.get(e,this._end),this._step))},Q.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},Q.prototype.lastIndexOf=function(t){return this.indexOf(t)},Q.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;n>=o;o++){if(t(i,o,this)===!1)return o+1;i+=e?-r:r}return o},Q.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;return new w(function(){var a=i;return i+=e?-r:r,o>n?I():S(t,o++,a)})},Q.prototype.equals=function(t){return t instanceof Q?this._start===t._start&&this._end===t._end&&this._step===t._step:X(this,t)};var An;t(tt,e),t(et,tt),t(nt,tt),t(rt,tt),tt.Keyed=et,tt.Indexed=nt,tt.Set=rt;var zn,Dn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){t=0|t,e=0|e;var n=65535&t,r=65535&e;return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0},jn=Object.isExtensible,Pn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Nn="function"==typeof WeakMap;Nn&&(zn=new WeakMap);var Ln=0,Tn="__immutablehash__";"function"==typeof Symbol&&(Tn=Symbol(Tn));var Fn=16,Cn=255,Un=0,Rn={};t(lt,et),lt.prototype.toString=function(){return this.__toString("Map {","}")},lt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},lt.prototype.set=function(t,e){return It(this,t,e)},lt.prototype.setIn=function(t,e){return this.updateIn(t,gn,function(){return e})},lt.prototype.remove=function(t){return It(this,t,gn)},lt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return gn})},lt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},lt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=Nt(this,De(t),e,n);return r===gn?void 0:r},lt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):St()},lt.prototype.merge=function(){return zt(this,void 0,arguments)},lt.prototype.mergeWith=function(t){var e=sn.call(argu
}),this.form.on("mousedown",e.join(", "),function(t){var e=(0,u["default"])(t.target),n=e,r=n.prop("for"),i=(n.hasClass("selectize-control")||n.parents(".selectize-control")).length;if(r&&(n=(0,u["default"])('[id="'+r+'"]')),i&&(n=n.closest(".selectize-control").siblings("select[name]")),!n.prop("disabled"))return!0;var o=n.closest(".form-field").find('[data-grav-field="toggleable"] input[type="checkbox"]');o.trigger("click")})}},{key:"addedNodes",value:function(t){var e=this;t.forEach(function(t){"childList"===t.type&&t.addedNodes&&(0,u["default"])("body").trigger("mutation._grav",t.target,t,e)})}}]),t}();e["default"]=h;e.Instance=new h("form#blueprints")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(233),o=r(i),a=n(234),u=r(a),s=n(235),c=r(s);e["default"]={SelectizeField:{SelectizeField:o["default"],Instance:i.Instance},ArrayField:{ArrayField:u["default"],Instance:a.Instance},CollectionsField:{CollectionsField:c["default"],Instance:s.Instance}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var a=n(196),u=r(a);n(217);var s=function(){function t(){var e=this,n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];i(this,t),this.options=Object.assign({},n),this.elements=[],(0,u["default"])("[data-grav-selectize]").each(function(t,n){return e.add(n)}),(0,u["default"])("body").on("mutation._grav",this._onAddedNodes.bind(this))}return o(t,[{key:"add",value:function(t){t=(0,u["default"])(t);var e=t.prop("tagName").toLowerCase(),n="input"===e||"select"===e,r=(n?t.closest("[data-grav-selectize]"):t).data("grav-selectize")||{},i=n?t:t.find("input, select");i.length&&!i.get(0).selectize&&(i.selectize(r),this.elements.push(i.data("selectize")))}},{key:"_onAddedNodes",value:function(t,e){var n=this,r=(0,u["default"])(e).find("select.fancy, input.fancy");r.length&&r.each(function(t,e){return n.add(e)})}}]),t}();e["default"]=s;e.Instance=new s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var a=n(196),u=r(a),s=(0,u["default"])("body"),c=function(){function t(e){i(this,t),this.container=(0,u["default"])(e),void 0===this.getName()&&(this.container=this.container.closest("[data-grav-array-name]"))}return o(t,[{key:"getName",value:function(){return this.container.data("grav-array-name")||""}},{key:"getKeyPlaceholder",value:function(){return this.container.data("grav-array-keyname")||"Key"}},{key:"getValuePlaceholder",value:function(){return this.container.data("grav-array-valuename")||"Value"}},{key:"isValueOnly",value:function(){return this.container.find('[data-grav-array-mode="value_only"]:first').length||!1}},{key:"shouldBeDisabled",value:function(){var t=this.container.closest(".form-field").find('[data-grav-field="toggleable"] input[type="checkbox"]');return t.length&&t.is(":not(:checked)")}},{key:"getNewRow",value:function(){var t="";return t+=this.isValueOnly()?'\n <div class="form-row array-field-value_only" data-grav-array-type="row">\n <input '+(this.shouldBeDisabled()?'disabled="disabled"':"")+' data-grav-array-type="value" type="text" value="" placeholder="'+this.getValuePlaceholder()+'" />\n ':'\n <div