UNPKG

generator-craftskeleton

Version:

Starterkit for Craft CMS 2.x (Multi-Environment Configs with HeartyConfig, Gulp, and Bower for Dependencie-Management) made by interpunkt. ag

2 lines 249 kB
!function(e){function t(r){if(i[r])return i[r].exports;var a=i[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t,i){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var a=i(2),n=r(a),o=i(33),s=r(o);window.Neo={Configurator:n["default"],Input:s["default"]}},function(e,t){e.exports=jQuery},function(e,t,i){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var n=i(1),o=r(n);i(3);var s=i(4),p=r(s),l=i(5),c=r(l),u=i(6),y=r(u),d=i(7),h=r(d),g=i(9),f=r(g),v=i(20),m=r(v),b=i(24),x=r(b),w=i(25),k=r(w),T=i(28),_=r(T);i(19),i(29);var B={namespace:[],blockTypes:[],groups:[],fieldLayoutHtml:""};t["default"]=p["default"].Base.extend({_templateNs:[],_items:[],init:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];t=Object.assign({},B,t);var i=c["default"].formatInputId(t.namespace),r=(0,o["default"])("#"+i+"-neo-configurator"),n=r.children(".field").children(".input");this._templateNs=y["default"].parse(t.namespace),this._fieldLayoutHtml=t.fieldLayoutHtml,this._items=[],y["default"].enter(this._templateNs),this.$container=(0,o["default"])((0,_["default"])()),n.append(this.$container),y["default"].leave();var s=this.$container.find("[data-neo]");this.$mainContainer=s.filter('[data-neo="container.main"]'),this.$sidebarContainer=s.filter('[data-neo="container.sidebar"]'),this.$blockTypesContainer=s.filter('[data-neo="container.blockTypes"]'),this.$settingsContainer=s.filter('[data-neo="container.settings"]'),this.$fieldLayoutContainer=s.filter('[data-neo="container.fieldLayout"]'),this.$blockTypeButton=s.filter('[data-neo="button.blockType"]'),this.$groupButton=s.filter('[data-neo="button.group"]'),this.$settingsButton=s.filter('[data-neo="button.settings"]'),this.$fieldLayoutButton=s.filter('[data-neo="button.fieldLayout"]'),this._itemSort=new p["default"].DragSort(null,{container:this.$blockTypeItemsContainer,handle:'[data-neo-bt="button.move"], [data-neo-g="button.move"]',axis:"y",onSortChange:function(){return e._updateItemOrder()}});var l=[],u=[].concat(a(this._templateNs),["blockTypes"]),d=[].concat(a(this._templateNs),["groups"]),g=!0,v=!1,b=void 0;try{for(var w,T=t.blockTypes[Symbol.iterator]();!(g=(w=T.next()).done);g=!0){var $=w.value,C=new f["default"]({namespace:[].concat(a(u),[$.id]),sortOrder:$.sortOrder,id:$.id,name:$.name,handle:$.handle,maxBlocks:$.maxBlocks,maxChildBlocks:$.maxChildBlocks,topLevel:$.topLevel,errors:$.errors,childBlockTypes:l.filter(function(e){return e instanceof h["default"]})}),L=new m["default"]({namespace:[].concat(a(u),[$.id]),html:this._fieldLayoutHtml,layout:$.fieldLayout,id:$.fieldLayoutId,blockId:$.id}),O=new h["default"]({namespace:u,settings:C,fieldLayout:L});l.push(O)}}catch(S){v=!0,b=S}finally{try{!g&&T["return"]&&T["return"]()}finally{if(v)throw b}}var I=!0,j=!1,N=void 0;try{for(var A,E=t.groups[Symbol.iterator]();!(I=(A=E.next()).done);I=!0){var M=A.value,P=new k["default"]({namespace:d,sortOrder:M.sortOrder,name:M.name}),F=new x["default"]({namespace:d,settings:P});l.push(F)}}catch(S){j=!0,N=S}finally{try{!I&&E["return"]&&E["return"]()}finally{if(j)throw N}}var R=!0,H=!1,D=void 0;try{for(var z,U=l.sort(function(e,t){return e.getSettings().getSortOrder()-t.getSettings().getSortOrder()})[Symbol.iterator]();!(R=(z=U.next()).done);R=!0){var q=z.value;this.addItem(q)}}catch(S){H=!0,D=S}finally{try{!R&&U["return"]&&U["return"]()}finally{if(H)throw D}}var G=!0,W=!1,Z=void 0;try{for(var V,Y=function(){var e=V.value,i=e.getSettings(),r=t.blockTypes.find(function(e){return e.handle===i.getHandle()});i.setChildBlocks(r.childBlocks)},J=this.getBlockTypes()[Symbol.iterator]();!(G=(V=J.next()).done);G=!0)Y()}catch(S){W=!0,Z=S}finally{try{!G&&J["return"]&&J["return"]()}finally{if(W)throw Z}}this.selectTab("settings"),this.addListener(this.$blockTypeButton,"click","@newBlockType"),this.addListener(this.$groupButton,"click","@newGroup"),this.addListener(this.$settingsButton,"click",function(){return e.selectTab("settings")}),this.addListener(this.$fieldLayoutButton,"click",function(){return e.selectTab("fieldLayout")})},addItem:function(e){var t=this,i=arguments.length<=1||void 0===arguments[1]?-1:arguments[1],r=e.getSettings();if(i>=0&&i<this._items.length?e.$container.insertAt(i,this.$blockTypesContainer):this.$blockTypesContainer.append(e.$container),this._itemSort.addItems(e.$container),r&&this.$settingsContainer.append(r.$container),this.$mainContainer.removeClass("hidden"),this.addListener(e.$container,"click","@selectItem"),e.on("destroy.configurator",function(){return t.removeItem(e,e instanceof h["default"])}),e instanceof h["default"]){var a=e.getFieldLayout();a&&this.$fieldLayoutContainer.append(a.$container)}if(this._items.push(e),this._updateItemOrder(),e instanceof h["default"]){var n=!0,o=!1,s=void 0;try{for(var p,l=this.getBlockTypes()[Symbol.iterator]();!(n=(p=l.next()).done);n=!0){var c=p.value,u=c.getSettings();u&&u.addChildBlockType(e)}}catch(y){o=!0,s=y}finally{try{!n&&l["return"]&&l["return"]()}finally{if(o)throw s}}}this.trigger("addItem",{item:e,index:i})},removeItem:function(e,t){if(t="boolean"==typeof t&&t){var i=c["default"].t("Are you sure you want to delete this {type}?",{type:e instanceof h["default"]?"block type":e instanceof x["default"]?"group":"item"});confirm(i)&&this.removeItem(e,!1)}else{var r=e.getSettings();if(this._itemSort.removeItems(e.$container),e.$container.remove(),r&&r.$container.remove(),e instanceof h["default"]){var a=e.getFieldLayout();a&&a.$container.remove()}this.removeListener(e.$container,"click"),e.off(".configurator"),this._updateItemOrder(),0===this._items.length&&this.$mainContainer.addClass("hidden"),this.trigger("removeItem",{item:e})}},getItems:function(){return Array.from(this._items)},getItemByElement:function(e){return this._items.find(function(t){return t.$container.is(e)})},getSelectedItem:function(){return this._items.find(function(e){return e.isSelected()})},selectItem:function(e,t){t="boolean"!=typeof t||t;var i=e?e.getSettings():null,r=!0,a=!1,n=void 0;try{for(var o,s=this._items[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var l=o.value;l.toggleSelect(l===e)}}catch(c){a=!0,n=c}finally{try{!r&&s["return"]&&s["return"]()}finally{if(a)throw n}}t&&i&&!p["default"].isMobileBrowser()&&setTimeout(function(){return i.getFocusInput().focus()},100)},getBlockTypes:function(){return this._items.filter(function(e){return e instanceof h["default"]})},getGroups:function(){return this._items.filter(function(e){return e instanceof x["default"]})},selectTab:function(e){this.$settingsContainer.toggleClass("hidden","settings"!==e),this.$fieldLayoutContainer.toggleClass("hidden","fieldLayout"!==e),this.$settingsButton.toggleClass("is-selected","settings"===e),this.$fieldLayoutButton.toggleClass("is-selected","fieldLayout"===e)},_updateItemOrder:function(){var e=this,t=[];this._itemSort.$items.each(function(i,r){var a=e.getItemByElement(r);if(a){var n=a.getSettings();n&&n.setSortOrder(i+1),t.push(a)}}),this._items=t},"@newBlockType":function(){var e=[].concat(a(this._templateNs),["blockTypes"]),t=f["default"].getNewId(),i=new f["default"]({namespace:[].concat(a(e),[t]),sortOrder:this._items.length,id:t,childBlockTypes:this.getBlockTypes()}),r=new m["default"]({namespace:[].concat(a(e),[t]),html:this._fieldLayoutHtml,blockId:t}),n=new h["default"]({namespace:e,settings:i,fieldLayout:r}),o=this.getSelectedItem(),s=o?o.getSettings().getSortOrder():-1;this.addItem(n,s),this.selectItem(n)},"@newGroup":function(){var e=[].concat(a(this._templateNs),["groups"]),t=new k["default"]({namespace:e,sortOrder:this._items.length}),i=new x["default"]({namespace:e,settings:t}),r=this.getSelectedItem(),n=r?r.getSettings().getSortOrder():-1;this.addItem(i,n),this.selectItem(i)},"@selectItem":function(e){var t=this.getItemByElement(e.currentTarget);this.selectItem(t)}})},function(e,t,i){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var a=i(1),n=r(a);n["default"].fn.insertAt=function(e,t){return this.each(function(){0===e?t.prepend(this):t.children().eq(e-1).after(this)})}},function(e,t){e.exports=Garnish},function(e,t){e.exports=Craft},function(e,t){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={_stack:[[]],enter:function(e){var t=arguments.length<=1||void 0===arguments[1]||arguments[1];if("string"==typeof e&&(e=this.fromFieldName(e)),t){var r=this.getNamespace();r.push.apply(r,i(e)),e=r}this._stack.push(e)},enterByFieldName:function(e){var t=arguments.length<=1||void 0===arguments[1]||arguments[1];this.enter(this.fromFieldName(e),t)},leave:function(){return this._stack.length>1?this._stack.pop():this.getNamespace()},getNamespace:function(){return Array.from(this._stack[this._stack.length-1])},parse:function(e){return"string"==typeof e?e.indexOf("[")>-1?this.fromFieldName(e):e.indexOf("-")>-1?e.split("-"):e.indexOf(".")>-1?e.split("."):e:Array.from(e)},value:function(e){var t=arguments.length<=1||void 0===arguments[1]?"-":arguments[1],i=this.getNamespace();return i.push(e),i.join(t)},fieldName:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.toFieldName();return t?t+e.replace(/([^'"\[\]]+)([^'"]*)/,"[$1]$2"):e},toString:function(){var e=arguments.length<=0||void 0===arguments[0]?"-":arguments[0];return this.getNamespace().join(e)},toFieldName:function(){var e=this.getNamespace();switch(e.length){case 0:return"";case 1:return e[0]}return e[0]+"["+e.slice(1).join("][")+"]"},fromFieldName:function(e){return e.match(/[^\[\]\s]+/g)||[]}}},function(e,t,i){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=i(1),n=r(a),o=i(4),s=(r(o),i(5)),p=(r(s),i(6)),l=r(p),c=i(8),u=r(c),y=i(9),d=(r(y),i(20)),h=(r(d),i(23)),g=r(h);i(19);var f={namespace:[],fieldLayout:null};t["default"]=u["default"].extend({_templateNs:[],init:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.base(t);var i=this.getSettings();t=Object.assign({},f,t),this._templateNs=l["default"].parse(t.namespace),this._fieldLayout=t.fieldLayout,l["default"].enter(this._templateNs),this.$container=(0,n["default"])((0,g["default"])({settings:i,fieldLayout:this._fieldLayout})),l["default"].leave();var r=this.$container.find("[data-neo-bt]");this.$nameText=r.filter('[data-neo-bt="text.name"]'),this.$moveButton=r.filter('[data-neo-bt="button.move"]'),i&&(i.on("change",function(){return e._updateTemplate()}),i.on("destroy",function(){return e.trigger("destroy")}),this._updateTemplate()),this.deselect()},getFieldLayout:function(){return this._fieldLayout},toggleSelect:function(e){this.base(e);var t=this.getSettings(),i=this.getFieldLayout(),r=this.isSelected();t&&t.$container.toggleClass("hidden",!r),i&&i.$container.toggleClass("hidden",!r),this.$container.toggleClass("is-selected",r)},_updateTemplate:function(){var e=this.getSettings(),t=this.getFieldLayout();e&&(this.$nameText.text(e.getName()),this.$container.toggleClass("is-child",!e.getTopLevel()),t&&t.setBlockName(e.getName()))}})},function(e,t,i){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=i(1),n=(r(a),i(4)),o=r(n),s={settings:null};t["default"]=o["default"].Base.extend({_selected:!1,init:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];e=Object.assign({},s,e),this._settings=e.settings},getSettings:function(){return this._settings},select:function(){this.toggleSelect(!0)},deselect:function(){this.toggleSelect(!1)},toggleSelect:function(e){this._selected="boolean"==typeof e?e:!this._selected,this.trigger("toggleSelect",{selected:this._selected})},isSelected:function(){return this._selected}})},function(e,t,i){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=i(1),n=r(a),o=i(4),s=r(o),p=i(5),l=r(p),c=i(6),u=r(c),y=i(10),d=r(y),h=i(11),g=r(h),f=i(18),v=r(f);i(19);var m={namespace:[],id:null,sortOrder:0,name:"",handle:"",maxBlocks:0,maxChildBlocks:0,topLevel:!0,childBlocks:null,childBlockTypes:[],errors:{}};t["default"]=d["default"].extend({_templateNs:[],_childBlockTypes:[],$sortOrderInput:new n["default"],$nameInput:new n["default"],$handleInput:new n["default"],$maxBlocksInput:new n["default"],$maxChildBlocksInput:new n["default"],init:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];t=Object.assign({},m,t),this._templateNs=u["default"].parse(t.namespace),this._childBlockTypes=[],this._id=t.id,this._errors=t.errors,this.setSortOrder(t.sortOrder),this.setName(t.name),this.setHandle(t.handle),this.setMaxBlocks(t.maxBlocks),this.setMaxChildBlocks(t.maxChildBlocks),this.setTopLevel(t.topLevel),u["default"].enter(this._templateNs),this.$container=(0,n["default"])((0,g["default"])({id:this.getId(),sortOrder:this.getSortOrder(),name:this.getName(),handle:this.getHandle(),maxBlocks:this.getMaxBlocks(),maxChildBlocks:this.getMaxChildBlocks(),topLevel:this.getTopLevel(),errors:this.getErrors()})),u["default"].leave();var i=this.$container.find("[data-neo-bts]");this.$sortOrderInput=i.filter('[data-neo-bts="input.sortOrder"]'),this.$nameInput=i.filter('[data-neo-bts="input.name"]'),this.$handleInput=i.filter('[data-neo-bts="input.handle"]'),this.$maxBlocksInput=i.filter('[data-neo-bts="input.maxBlocks"]'),this.$maxChildBlocksInput=i.filter('[data-neo-bts="input.maxChildBlocks"]'),this.$maxChildBlocksContainer=i.filter('[data-neo-bts="container.maxChildBlocks"]'),this.$topLevelInput=i.filter('[data-neo-bts="input.topLevel"]'),this.$topLevelContainer=i.filter('[data-neo-bts="container.topLevel"]'),this.$childBlocksInput=i.filter('[data-neo-bts="input.childBlocks"]'),this.$childBlocksContainer=i.filter('[data-neo-bts="container.childBlocks"]'),this.$deleteButton=i.filter('[data-neo-bts="button.delete"]'),l["default"].initUiElements(this.$container),this._childBlocksSelect=this.$childBlocksInput.data("checkboxSelect"),this._topLevelLightswitch=this.$topLevelInput.data("lightswitch"),this._handleGenerator=new l["default"].HandleGenerator(this.$nameInput,this.$handleInput);var r=!0,a=!1,o=void 0;try{for(var p,c=t.childBlockTypes[Symbol.iterator]();!(r=(p=c.next()).done);r=!0){var y=p.value;this.addChildBlockType(y)}}catch(d){a=!0,o=d}finally{try{!r&&c["return"]&&c["return"]()}finally{if(a)throw o}}this.setChildBlocks(t.childBlocks),s["default"].Base.prototype.on.call(this._topLevelLightswitch,"change",function(){return e.setTopLevel(e._topLevelLightswitch.on)}),this.addListener(this.$nameInput,"keyup change",function(){return e.setName(e.$nameInput.val())}),this.addListener(this.$handleInput,"keyup change textchange",function(){return e.setHandle(e.$handleInput.val())}),this.addListener(this.$maxBlocksInput,"keyup change",function(){return e.setMaxBlocks(e.$maxBlocksInput.val())}),this.addListener(this.$maxChildBlocksInput,"keyup change",function(){return e.setMaxChildBlocks(e.$maxChildBlocksInput.val())}),this.addListener(this.$deleteButton,"click",function(){return e.destroy()}),this.$childBlocksInput.on("change","input",function(){return e._refreshMaxChildBlocks()})},getFocusInput:function(){return this.$nameInput},getId:function(){return this._id},isNew:function(){return/^new/.test(this.getId())},getErrors:function(){return this._errors},setSortOrder:function(e){this.base(e),this.$sortOrderInput.val(this.getSortOrder())},getName:function(){return this._name},setName:function(e){if(e!==this._name){var t=this._name;this._name=e,this.$nameInput.val()!=this._name&&this.$nameInput.val(this._name),this.trigger("change",{property:"name",oldValue:t,newValue:this._name})}},getHandle:function(){return this._handle},setHandle:function(e){if(e!==this._handle){var t=this._handle;this._handle=e,this.$handleInput.val()!=this._handle&&this.$handleInput.val(this._handle),this.trigger("change",{property:"handle",oldValue:t,newValue:this._handle})}},getMaxBlocks:function(){return this._maxBlocks},setMaxBlocks:function(e){var t=this._maxBlocks,i=Math.max(0,0|e);0===i&&this.$maxBlocksInput.val(null),t!==i&&(this._maxBlocks=i,this._maxBlocks>0&&this.$maxBlocksInput.val()!=this._maxBlocks&&this.$maxBlocksInput.val(this._maxBlocks),this.trigger("change",{property:"maxBlocks",oldValue:t,newValue:this._maxBlocks}))},getMaxChildBlocks:function(){return this._maxChildBlocks},setMaxChildBlocks:function(e){var t=this._maxChildBlocks,i=Math.max(0,0|e);0===i&&this.$maxChildBlocksInput.val(null),t!==i&&(this._maxChildBlocks=i,this._maxChildBlocks>0&&this.$maxChildBlocksInput.val()!=this._maxChildBlocks&&this.$maxChildBlocksInput.val(this._maxChildBlocks),this.trigger("change",{property:"maxChildBlocks",oldValue:t,newValue:this._maxChildBlocks}))},getTopLevel:function(){return this._topLevel},setTopLevel:function(e){var t=this._topLevel,i=!!e;t!==i&&(this._topLevel=i,this._topLevelLightswitch&&this._topLevelLightswitch.on!==this._topLevel&&(this._topLevelLightswitch.on=this._topLevel,this._topLevelLightswitch.toggle()),this.trigger("change",{property:"topLevel",oldValue:t,newValue:this._topLevel}))},getChildBlocks:function(){var e=this._childBlocksSelect,t=[];return!!e.$all.prop("checked")||(e.$options.each(function(e){var i=(0,n["default"])(this);i.prop("checked")&&t.push(i.val())}),t.length>0&&t)},setChildBlocks:function(e){var t=this._childBlocksSelect;if(e===!0||"*"===e)t.$all.prop("checked",!0),t.onAllChange();else if(Array.isArray(e)){t.$all.prop("checked",!1);var i=!0,r=!1,a=void 0;try{for(var n,o=e[Symbol.iterator]();!(i=(n=o.next()).done);i=!0){var s=n.value;t.$options.filter('[value="'+s+'"]').prop("checked",!0)}}catch(p){r=!0,a=p}finally{try{!i&&o["return"]&&o["return"]()}finally{if(r)throw a}}}else t.$all.prop("checked",!1),t.$options.prop("checked",!1);this._refreshMaxChildBlocks(!1)},addChildBlockType:function(e){var t=this;this._childBlockTypes.includes(e)||!function(){u["default"].enter(t._templateNs);var i=e.getSettings(),r=(0,n["default"])((0,v["default"])({id:"childBlock-"+i.getId(),name:"childBlocks",value:i.getHandle(),label:i.getName()}));u["default"].leave(),t._childBlockTypes.push(e),t.$childBlocksContainer.append(r),t._refreshChildBlocks();var a=t._childBlocksSelect,o=a.$all.prop("checked");a.$options=a.$options.add(r.find("input")),o&&a.onAllChange();var s=".childBlock"+t.getId();i.on("change"+s,function(i){return t["@onChildBlockTypeChange"](i,e,r)}),i.on("destroy"+s,function(i){return t.removeChildBlockType(e)})}()},removeChildBlockType:function(e){var t=this._childBlockTypes.indexOf(e);if(t>=0){this._childBlockTypes.splice(t,1);var i=e.getSettings(),r=this.$childBlocksContainer.children().eq(t);r.remove();var a=this._childBlocksSelect;a.$options=a.$options.remove(r.find("input"));var n=".childBlock"+this.getId();i.off(n),this._refreshChildBlocks()}},_refreshChildBlocks:function(){var e=Array.from(this._childBlockTypes),t=this.$childBlocksContainer.children(),i=function(i){return t.get(e.indexOf(i))};this._childBlockTypes=this._childBlockTypes.sort(function(e,t){return e.getSettings().getSortOrder()-t.getSettings().getSortOrder()}),t.remove();var r=!0,a=!1,n=void 0;try{for(var o,s=this._childBlockTypes[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var p=o.value,l=i(p);this.$childBlocksContainer.append(l)}}catch(c){a=!0,n=c}finally{try{!r&&s["return"]&&s["return"]()}finally{if(a)throw n}}},_refreshMaxChildBlocks:function(e){var t=this;e="boolean"!=typeof e||e;var i=!!this.getChildBlocks();e?i?this.$maxChildBlocksContainer.hasClass("hidden")&&this.$maxChildBlocksContainer.removeClass("hidden").css({opacity:0,marginBottom:-this.$maxChildBlocksContainer.outerHeight()}).velocity({opacity:1,marginBottom:24},"fast"):this.$maxChildBlocksContainer.hasClass("hidden")||this.$maxChildBlocksContainer.css({opacity:1,marginBottom:24}).velocity({opacity:0,marginBottom:-this.$maxChildBlocksContainer.outerHeight()},"fast",function(){t.$maxChildBlocksContainer.addClass("hidden")}):this.$maxChildBlocksContainer.toggleClass("hidden",!i).css("margin-bottom",i?24:"")},"@onChildBlockTypeChange":function(e,t,i){var r=i.find("[data-neo-btsc]"),a=r.filter('[data-neo-btsc="input"]'),n=r.filter('[data-neo-btsc="text.label"]');switch(e.property){case"name":n.text(e.newValue);break;case"handle":a.val(e.newValue);break;case"sortOrder":this._refreshChildBlocks()}}},{_totalNewBlockTypes:0,getNewId:function(){return"new"+this._totalNewBlockTypes++}})},function(e,t,i){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=i(1),n=r(a),o=i(4),s=r(o);t["default"]=s["default"].Base.extend({$container:new n["default"],_sortOrder:0,getSortOrder:function(){return this._sortOrder},setSortOrder:function(e){var t=this._sortOrder;this._sortOrder=0|e,t!==this._sortOrder&&this.trigger("change",{property:"sortOrder",oldValue:t,newValue:this._sortOrder})},getFocusElement:function(){return new n["default"]},destroy:function(){this.trigger("destroy")}})},function(e,t,i){i(12);var r=i(13).twig,a=r({id:"/Applications/AMPPS/www/craft-neo/craft/plugins/src/configurator/templates/blocktype_settings.twig",data:[{type:"logic",token:{type:"Twig.logic.type.import",expression:"'../../macros.twig'",contextName:"macros",stack:[{type:"Twig.expression.type.string",value:"/Applications/AMPPS/www/craft-neo/craft/plugins/src/macros.twig"}]}},{type:"raw",value:'\n<div>\n\t<input type="hidden" name="'},{type:"output",stack:[{type:"Twig.expression.type.string",value:"sortOrder"},{type:"Twig.expression.type.filter",value:"ns",match:["|ns","ns"]}]},{type:"raw",value:'" value="'},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"sortOrder",match:["sortOrder"]}]},{type:"raw",value:'" data-neo-bts="input.sortOrder">\n\n\t<div>\n\t\t'},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"macros",match:["macros"]},{type:"Twig.expression.type.key.period",key:"input",params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"type"},{type:"Twig.expression.type.string",value:"text"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"id"},{type:"Twig.expression.type.string",value:"name"},{type:"Twig.expression.type.filter",value:"ns",match:["|ns","ns"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.string",value:"id"},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"name"},{type:"Twig.expression.type.string",value:"name"},{type:"Twig.expression.type.filter",value:"ns",match:["|ns","ns"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"label"},{type:"Twig.expression.type.string",value:"Name"},{type:"Twig.expression.type.filter",value:"t",match:["|t","t"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"instructions"},{type:"Twig.expression.type.string",value:"What this block type will be called in the CP."},{type:"Twig.expression.type.filter",value:"t",match:["|t","t"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"required"},{type:"Twig.expression.type.bool",value:!0},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"value"},{type:"Twig.expression.type.variable",value:"name",match:["name"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"errors"},{type:"Twig.expression.type.variable",value:"errors",match:["errors"]},{type:"Twig.expression.type.key.period",key:"name"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"attributes"},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"data-neo-bts"},{type:"Twig.expression.type.string",value:"input.name"},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]},{type:"raw",value:"\n\n\t\t"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"macros",match:["macros"]},{type:"Twig.expression.type.key.period",key:"input",params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"type"},{type:"Twig.expression.type.string",value:"text"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"id"},{type:"Twig.expression.type.string",value:"handle"},{type:"Twig.expression.type.filter",value:"ns",match:["|ns","ns"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.string",value:"id"},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"name"},{type:"Twig.expression.type.string",value:"handle"},{type:"Twig.expression.type.filter",value:"ns",match:["|ns","ns"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"label"},{type:"Twig.expression.type.string",value:"Handle"},{type:"Twig.expression.type.filter",value:"t",match:["|t","t"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"instructions"},{type:"Twig.expression.type.string",value:"How you&#8217;ll refer to this block type in the templates."},{type:"Twig.expression.type.filter",value:"t",match:["|t","t"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"required"},{type:"Twig.expression.type.bool",value:!0},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"class"},{type:"Twig.expression.type.string",value:"code"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"value"},{type:"Twig.expression.type.variable",value:"handle",match:["handle"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"errors"},{type:"Twig.expression.type.variable",value:"errors",match:["errors"]},{type:"Twig.expression.type.key.period",key:"handle"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"attributes"},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"data-neo-bts"},{type:"Twig.expression.type.string",value:"input.handle"},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]},{type:"raw",value:"\n\n\t\t"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"macros",match:["macros"]},{type:"Twig.expression.type.key.period",key:"input",params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"type"},{type:"Twig.expression.type.string",value:"number"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"id"},{type:"Twig.expression.type.string",value:"maxBlocks"},{type:"Twig.expression.type.filter",value:"ns",match:["|ns","ns"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.string",value:"id"},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"name"},{type:"Twig.expression.type.string",value:"maxBlocks"},{type:"Twig.expression.type.filter",value:"ns",match:["|ns","ns"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"label"},{type:"Twig.expression.type.string",value:"Max Blocks"},{type:"Twig.expression.type.filter",value:"t",match:["|t","t"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"instructions"},{type:"Twig.expression.type.string",value:"The maximum number of blocks of this type the field is allowed to have."},{type:"Twig.expression.type.filter",value:"t",match:["|t","t"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"fullWidth"},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"value"},{type:"Twig.expression.type.variable",value:"maxBlocks",match:["maxBlocks"]},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.operator.binary",value:">",precidence:8,associativity:"leftToRight",operator:">"},{type:"Twig.expression.type.variable",value:"maxBlocks",match:["maxBlocks"]},{type:"Twig.expression.type.null",value:null},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"errors"},{type:"Twig.expression.type.variable",value:"errors",match:["errors"]},{type:"Twig.expression.type.key.period",key:"maxBlocks"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"attributes"},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16, associativity:"rightToLeft",operator:":",key:"min"},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"style"},{type:"Twig.expression.type.string",value:"width: 80px;"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"data-neo-bts"},{type:"Twig.expression.type.string",value:"input.maxBlocks"},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]},{type:"raw",value:"\n\n\t\t"},{type:"logic",token:{type:"Twig.logic.type.set",key:"childBlocksId",expression:[{type:"Twig.expression.type.string",value:"childBlocks"},{type:"Twig.expression.type.filter",value:"ns",match:["|ns","ns"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.string",value:"id"},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]}},{type:"raw",value:"\t\t"},{type:"logic",token:{type:"Twig.logic.type.set",key:"childBlocksName",expression:[{type:"Twig.expression.type.string",value:"childBlocks"},{type:"Twig.expression.type.filter",value:"ns",match:["|ns","ns"]}]}},{type:"raw",value:"\t\t"},{type:"logic",token:{type:"Twig.logic.type.setcapture",key:"childBlocksInput",output:[{type:"raw",value:'\t\t\t<div class="checkbox-select" data-neo-bts="input.childBlocks">\n\t\t\t\t<div>\n\t\t\t\t\t<input type="hidden" name="'},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"childBlocksName",match:["childBlocksName"]}]},{type:"raw",value:'">\n\t\t\t\t\t<input type="checkbox" value="*" id="'},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"childBlocksId",match:["childBlocksId"]}]},{type:"raw",value:'" class="all checkbox" name="'},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"childBlocksName",match:["childBlocksName"]}]},{type:"raw",value:'">\n\t\t\t\t\t<label for="'},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"childBlocksId",match:["childBlocksId"]}]},{type:"raw",value:'"><strong>'},{type:"output",stack:[{type:"Twig.expression.type.string",value:"All"},{type:"Twig.expression.type.filter",value:"t",match:["|t","t"]}]},{type:"raw",value:'</strong></label>\n\t\t\t\t</div>\n\t\t\t\t<div data-neo-bts="container.childBlocks"></div>\n\t\t\t</div>\n\t\t'}]}},{type:"raw",value:"\t\t"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"macros",match:["macros"]},{type:"Twig.expression.type.key.period",key:"field",params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"id"},{type:"Twig.expression.type.variable",value:"childBlocksId",match:["childBlocksId"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"label"},{type:"Twig.expression.type.string",value:"Child Blocks"},{type:"Twig.expression.type.filter",value:"t",match:["|t","t"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"instructions"},{type:"Twig.expression.type.string",value:"Which block types do you want to allow as children?"},{type:"Twig.expression.type.filter",value:"t",match:["|t","t"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"input"},{type:"Twig.expression.type.variable",value:"childBlocksInput",match:["childBlocksInput"]},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]},{type:"raw",value:'\n\n\t\t<div data-neo-bts="container.maxChildBlocks">\n\t\t\t'},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"macros",match:["macros"]},{type:"Twig.expression.type.key.period",key:"input",params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"type"},{type:"Twig.expression.type.string",value:"number"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"id"},{type:"Twig.expression.type.string",value:"maxChildBlocks"},{type:"Twig.expression.type.filter",value:"ns",match:["|ns","ns"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.string",value:"id"},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"name"},{type:"Twig.expression.type.string",value:"maxChildBlocks"},{type:"Twig.expression.type.filter",value:"ns",match:["|ns","ns"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"label"},{type:"Twig.expression.type.string",value:"Max Child Blocks"},{type:"Twig.expression.type.filter",value:"t",match:["|t","t"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"instructions"},{type:"Twig.expression.type.string",value:"The maximum number of child blocks this block type is allowed to have."},{type:"Twig.expression.type.filter",value:"t",match:["|t","t"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"fullWidth"},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"value"},{type:"Twig.expression.type.variable",value:"maxChildBlocks",match:["maxChildBlocks"]},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.operator.binary",value:">",precidence:8,associativity:"leftToRight",operator:">"},{type:"Twig.expression.type.variable",value:"maxChildBlocks",match:["maxChildBlocks"]},{type:"Twig.expression.type.null",value:null},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"errors"},{type:"Twig.expression.type.variable",value:"errors",match:["errors"]},{type:"Twig.expression.type.key.period",key:"maxChildBlocks"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"attributes"},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"min"},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"style"},{type:"Twig.expression.type.string",value:"width: 80px;"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"data-neo-bts"},{type:"Twig.expression.type.string",value:"input.maxChildBlocks"},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]},{type:"raw",value:'\n\t\t</div>\n\n\t\t<div data-neo-bts="container.topLevel">\n\t\t\t'},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"macros",match:["macros"]},{type:"Twig.expression.type.key.period",key:"lightswitch",params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"id"},{type:"Twig.expression.type.string",value:"topLevel"},{type:"Twig.expression.type.filter",value:"ns",match:["|ns","ns"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.string",value:"id"},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"name"},{type:"Twig.expression.type.string",value:"topLevel"},{type:"Twig.expression.type.filter",value:"ns",match:["|ns","ns"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"label"},{type:"Twig.expression.type.string",value:"Top Level"},{type:"Twig.expression.type.filter",value:"t",match:["|t","t"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"instructions"},{type:"Twig.expression.type.string",value:"Will this block type be allowed at the top level?"},{type:"Twig.expression.type.filter",value:"t",match:["|t","t"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"checked"},{type:"Twig.expression.type.variable",value:"topLevel",match:["topLevel"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"attributes"},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"data-neo-bts"},{type:"Twig.expression.type.string",value:"input.topLevel"},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]},{type:"raw",value:'\n\t\t</div>\n\t</div>\n\n\t<hr>\n\n\t<a class="error delete" data-neo-bts="button.delete">'},{type:"output",stack:[{type:"Twig.expression.type.string",value:"Delete block type"},{type:"Twig.expression.type.filter",value:"t",match:["|t","t"]}]},{type:"raw",value:"</a>\n</div>\n"}],allowInlineIncludes:!0,rethrow:!0});e.exports=function(e){return a.render(e)}},function(e,t,i){var r=i(13).twig,a=r({id:"/Applications/AMPPS/www/craft-neo/craft/plugins/src/macros.twig",data:[{type:"logic",token:{type:"Twig.logic.type.macro",macroName:"field",parameters:["settings"],output:[{type:"raw",value:"\t"},{type:"logic",token:{type:"Twig.logic.type.set",key:"settings",expression:[{type:"Twig.expression.type.variable",value:"settings",match:["settings"]},{type:"Twig.expression.type.filter",value:"default",match:["|default","default"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]}},{type:"raw",value:"\n\t"},{type:"logic",token:{type:"Twig.logic.type.set",key:"id",expression:[{type:"Twig.expression.type.variable",value:"settings",match:["settings"]},{type:"Twig.expression.type.key.period",key:"id"},{type:"Twig.expression.type.filter",value:"default",match:["|default","default"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]}},{type:"raw",value:"\t"},{type:"logic",token:{type:"Twig.logic.type.set",key:"label",expression:[{type:"Twig.expression.type.variable",value:"settings",match:["settings"]},{type:"Twig.expression.type.key.period",key:"label"},{type:"Twig.expression.type.filter",value:"default",match:["|default","default"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]}},{type:"raw",value:"\t"},{type:"logic",token:{type:"Twig.logic.type.set",key:"instructions",expression:[{type:"Twig.expression.type.variable",value:"settings",match:["settings"]},{type:"Twig.expression.type.key.period",key:"instructions"},{type:"Twig.expression.type.filter",value:"default",match:["|default","default"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]}},{type:"raw",value:"\t"},{type:"logic",token:{type:"Twig.logic.type.set",key:"required",expression:[{type:"Twig.expression.type.variable",value:"settings",match:["settings"]},{type:"Twig.expression.type.key.period",key:"required"},{type:"Twig.expression.type.filter",value:"default",match:["|default","default"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]}},{type:"raw",value:"\t"},{type:"logic",token:{type:"Twig.logic.type.set",key:"locale",expression:[{type:"Twig.expression.type.variable",value:"settings",match:["settings"]},{type:"Twig.expression.type.key.period",key:"locale"},{type:"Twig.expression.type.filter",value:"default",match:["|default","default"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]}},{type:"raw",value:"\t"},{type:"logic",token:{type:"Twig.logic.type.set",key:"input",expression:[{type:"Twig.expression.type.variable",value:"settings",match:["settings"]},{type:"Twig.expression.type.key.period",key:"input"},{type:"Twig.expression.type.filter",value:"default",match:["|default","default"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]}},{type:"raw",value:"\t"},{type:"logic",token:{type:"Twig.logic.type.set",key:"warning",expression:[{type:"Twig.expression.type.variable",value:"settings",match:["settings"]},{type:"Twig.expression.type.key.period",key:"warning"},{type:"Twig.expression.type.filter",value:"default",match:["|default","default"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]}},{type:"raw",value:"\t"},{type:"logic",token:{type:"Twig.logic.type.set",key:"errors",expression:[{type:"Twig.expression.type.variable",value:"settings",match:["settings"]},{type:"Twig.expression.type.key.period",key:"errors"},{type:"Twig.expression.type.filter",value:"default",match:["|default","default"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]}},{type:"raw",value:'\n\t<div class="field">\n\t\t'},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"label",match:["label"]},{type:"Twig.expression.type.variable",value:"instructions",match:["instructions"]},{type:"Twig.expression.type.operator.binary",value:"or",precidence:14,associativity:"leftToRight",operator:"or"}],output:[{type:"raw",value:'\t\t\t<div class="heading">\n\t\t\t\t'},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"label",match:["label"]}],output:[{type:"raw",value:"\t\t\t\t\t<label"},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"required",match:["required"]}],output:[{type:"raw",value:' class="required"'}]}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"id",match:["id"]}],output:[{type:"raw",value:' for="'},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"id",match:["id"]}]},{type:"raw",value:'"'}]}},{type:"raw",value:">\n\t\t\t\t\t\t"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"label",match:["label"]},{type:"Twig.expression.type.filter",value:"raw",match:["|raw","raw"]}]},{type:"raw",value:"\n\t\t\t\t\t\t"},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"locale",match:["locale"]}],output:[{type:"raw",value:'\t\t\t\t\t\t\t<span class="locale">'},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"locale",match:["locale"]}]},{type:"raw",value:"</span>\n\t\t\t\t\t\t"}]}},{type:"raw",value:"\t\t\t\t\t</label>\n\t\t\t\t"}]}},{type:"raw",value:"\t\t\t\t"},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"instructions",match:["instructions"]}],output:[{t