diff --git a/bundle/Resources/public/js/netgen-layouts.js b/bundle/Resources/public/js/netgen-layouts.js index c2c1d33..d0b5fa3 100644 --- a/bundle/Resources/public/js/netgen-layouts.js +++ b/bundle/Resources/public/js/netgen-layouts.js @@ -1 +1 @@ -require=function(){return function r(i,a,o){function s(t,e){if(!a[t]){if(!i[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=a[t]={exports:{}},i[t][0].call(n.exports,function(e){return s(i[t][1][e]||e)},n,n.exports,r,i,a,o)}return a[t].exports}for(var l="function"==typeof require&&require,e=0;e")},active_if:function(e,t){return e==t?a('class="active"'):""},active_class_if:function(e,t){return e==t?a("active"):""},when:function(e,t){return e?t.hash.then:t.hash.else},selected:function(e,t){return e==t?a('selected="selected"'):""},option_value:function(e,t){var n='value="'+e+'"';return t==e&&(n+=' selected="selected"'),a(n)},animated_number:function(e,t,n){var r=e.previous(t)||0,e=e.get(t),i=n.hash.format?'data-format="'+n.hash.format+'"':"",r=Formatters[n.hash.format||"integer"](r);return a('"+r+"")},highlight:function(e){return i.defer(function(){this.view.$el.animate({fontSize:"1.5em"},300).delay(.3).animate({fontSize:"1em"},300)}.bind(this)),e},bar_value:function(e,t,n){e=this.previous(e,t),t=n.hash.format?'data-format="'+n.hash.format+'"':"",e=n.hash.format?Formatters[n.hash.format](e):e;return a('"+e+"")},previous:function(e,t){return e.previous(t)||e.defaults&&e.defaults[t]||0},template:function(e,t){return a(JST[e]({inner:a(t.fn(this))}))},render:function(e){return a(JST[e](this))},live:function(e){var t=this.model;if(!this.view.live[e])for(var n in this.view.live)if(this.view.live[n].as===e){e=n;break}t=this.view.resolve_live_value(t,e);return a(''+t+"")},contains:function(e,t,n){i.contains(e,t)?n.fn(this):n.inverse(this)},times:function(e,t){var n="";return i(e).times(function(e){n+=t.fn(e)}),n},url_for:function(e,t){return r.router.url_for(e,t.hash||{})},link_to:function(e,t,n){t=r.router.url_for(t,n.hash||{});return a(''+e+"")},absolute_url:function(e,t){/localhost|127\.|192\./.test(location.hostname)&&(n="188.252.173.66");var n=t.hash.hostname||n||location.hostname||"",t=(t=t.hash.port||location.port)?":"+t:"";return[location.protocol,"//",n,t,"/",e].join("")},speed:function(e){return(e=e||300)/1e3},get:function(e,t){return e.get(t)},eq:function(e,t,n){return e===t?n.fn(this):n.inverse(this)},if_not_empty:function(e,t){return i.isEmpty(e)?t.inverse(this):t.fn(this)},uid:function(e,t){return t&&e&&(this._last_uid=i.uniqueId("uid_")),this._last_uid},input:function(e,t){return(this.object?this:s).input(e,t.hash)},form_for:function(e,t){return s.form_for(e,i.omit(t.hash,"as"),t.fn)},fields_for:function(e,t){return s.fields_for(e,t.hash,t.fn)},replace:function(e,t,n){return n.fn(this).split(e).join(t)},ifCond:function(e,t,n,r){switch(t){case"==":return e==n?r.fn(this):r.inverse(this);case"===":return e===n?r.fn(this):r.inverse(this);case"!=":return e!=n?r.fn(this):r.inverse(this);case"!==":return e!==n?r.fn(this):r.inverse(this);case"<":return e":return n=":return n<=e?r.fn(this):r.inverse(this);case"&&":return e&&n?r.fn(this):r.inverse(this);case"||":return e||n?r.fn(this):r.inverse(this);default:return r.inverse(this)}}}},{"./core_base":12,"./core_namespace":13,"./tag_helper":53,handlebars:133,moment:142,"moment/min/locales.min":141,underscore:156}],23:[function(y,v,e){!function(g){!function(){"use strict";var l=y("./core"),t=y("./environments/default"),n=l.$,e=y("./collections/block_types"),r=y("./views/blocks/load"),i=y("./models/blocks/helper"),a=y("./router"),o=y("./collections/layout_types"),s=y("@netgen/content-browser-ui"),u=y("./models/config"),c=y("./models/state"),d=y("./collections/layouts"),h=y("./models/local_config"),p=y("nprogress"),f=y("underscore"),m=(l.Backbone.defaults=function(){var e={};return e.headers={"X-CSRF-Token":l.g.config.get("csrf_token")},e},{}),_=(l.default_context=function(){return{state:this.state}},f.debounce(function(){l.display_errors()},250));f.extend(l,{blocks:r,model_helper:i,app_cache_handler:function(){window.applicationCache&&window.applicationCache.addEventListener("updateready",function(){window.applicationCache.status==window.applicationCache.UPDATEREADY&&confirm("A new version of this site is available. Load it?")&&window.location.reload()},!1)},init:function(){n(document).ajaxSend(function(e,t,n,r){t.uid=f.uniqueId(),(m[t.uid]=t).opts={timestamp:new Date,type:n.type,url:n.url},t.success(function(){delete m[t.uid]})}).ajaxError(function(e,t,n,r){var i=t.opts.url,a=t.status,i=404===a&&(i.match(/\/layouts\/[\w-]+\?published=false/)||i.match(/\/layouts\/[\w-]+\/draft/));403!==a&&!i||delete m[t.uid],_()}),this.on("render plugins:reinitialize",this.reinitialize_plugins),l.g.layout_types=new o,l.g.block_types=new e,l.g.config=new u,l.g.local_config=new h({id:1}),l.g.local_config.fetch(),l.g.shared_layouts=new d,l.state=new c({mode:"edit",section:"normal"}),this.setup_events(),l.g.local_config.on("change:ngldev",function(e,t){n("#app")[t?"addClass":"removeClass"]("ngldev")}),n(function(){l.load_additional_vars(),l.router=new a,l.Backbone.history.start(),l.dm()&&n("#app").addClass("ngldev")}),n(document).on("dblclick",".app-logo-box",this.tdm),window.addEventListener("beforeunload",function(e){var t;return l.should_navigate_away||"development"===g.env?null:(t="There could be unsaved changes. Are you sure you want to leave?",(e||window.event).returnValue=t)})},dm:function(){return l.g.local_config.get("ngldev")},tdm:function(){l.g.local_config.save({ngldev:!l.dm()})},load_additional_vars:function(){var e=n('meta[name="nglayouts-base-path"]').attr("content");e&&(t.bm_base_path=e)},hide_selects_with_one_option:function(e){return e.$("select").each(function(){n(this).hasClass("js-always-show")||n("option",this).length<=1&&n(this).parent().addClass("alone")}),this},reinitialize_plugins:function(e){e.view.$(".xeditable").xeditable(),e.view.$(".js-dependable-selects-group .js-master").dependable_select(),e.view.$(".master-slave-selects .master").master_slave_selects(),Array.prototype.forEach.call(document.getElementsByClassName("js-input-browse"),function(e){return new s.InputBrowse(e)}),Array.prototype.forEach.call(document.getElementsByClassName("js-multiple-browse"),function(e){return new s.MultipleBrowse(e)}),e.view.$(".js-external-video").video_thumb_fetcher(),e.view.$(".view-type").view_types(),e.view.$(".ngl-tooltip").bm_tooltip(),this.hide_selects_with_one_option(e.view)},setup_events:function(){this.on("sortable:start",function(){n(document.body).addClass("sorting")}).on("sortable:end",function(){n(document.body).removeClass("sorting")}),n(document).on("dragenter",function(e){e.preventDefault(),n(document.body).addClass("dragging")}).on("dragover dragleave",function(e){e.preventDefault()}).on("drop",function(e){e.preventDefault(),n(document.body).removeClass("dragging")}).on("click",".main-content",function(e){n(e.target).closest("[data-block]").length||l.trigger("editing:unmark")}),n(document).ajaxStart(function(){p.start()}).ajaxStop(function(){f.delay(function(){0===n.active&&p.done()},100)}).ajaxError(function(e,t,n,r){if(l.error_displayed)return!0;l.error_displayed=!0;var i,a,o="Refresh",s=function(){window.history.go(0)};403===t.status&&("GET"===t.opts.type?(i="Not allowed",a="You don't have permission to edit this layout.",o="OK",s=function(){l.should_navigate_away=!0,location.href=localStorage.getItem("ngl_referrer")||"/"}):(i="Session timeout",a="Your session has timed out. Please hit the refresh button to reload the application.")),404===t.status&&t.opts.url.match(/\/layouts\/[\w-]+\/draft/)&&(i="Layout does not exist",a="Layout you are trying to edit does not exist.",s=function(){l.router.navigate_to("layout_new")},o="Create new layout"),i?new l.Modal({title:i,body:a,apply_text:o,cancel_disabled:!0,modal_options:{keyboard:!1,backdrop:"static"}}).on("apply",s).open():404!==t.status&&(l.error_displayed=!1,m[t.uid]=t)}),n(document).on("click",'a[href="#"]',function(e){e.preventDefault()}),l.state.on("change",function(e){n(".right-sidebar").html(JST[e.detect_sidebar()]())}),this.on("loading-overlay:show",function(){n(".loading-overlay").show()}),this.on("loading-overlay:hide",function(){n(".loading-overlay").hide()})},display_errors:function(){if(l.error_displayed)return!0;l.error_displayed=!0;var e,n=[];return f.map(m,function(e){var t=e.responseJSON;t&&n.push(f.extend({pretty_debug:JSON.stringify(t.debug,null,2)},t,e.opts))}),e=JST.error_message({errors:n}),n.length?(new l.Modal({title:"Something went wrong!",body:e,apply_text:"Refresh",cancel_disabled:!0,modal_options:{keyboard:!1,backdrop:"static"}}).on("apply",function(){window.history.go(0)}).open(),this):void 0}}),window.onerror=function(){return l.display_errors(),f.delay(p.done,100),!1},window.Core=l,v.exports=l}.call(this)}.call(this,{env:"production"})},{"./collections/block_types":2,"./collections/layout_types":6,"./collections/layouts":7,"./core":11,"./environments/default":14,"./models/blocks/helper":33,"./models/config":37,"./models/local_config":40,"./models/state":42,"./router":52,"./views/blocks/load":63,"@netgen/content-browser-ui":"@netgen/content-browser-ui",nprogress:143,underscore:156}],24:[function(e,t,n){"use strict";var r=e("../../core").$;function i(e){this.el=e,this.title=e.title,this.visible=!1,this.init()}i.prototype.init=function(){this.el.title="",this.tooltip=document.createElement("div"),this.tooltip.className="ngl-tooltip-title",this.tooltip.innerHTML=this.title,r(this.el).on("mouseenter",this.showTooltip.bind(this)),r(this.el).on("mouseleave",this.hideTooltip.bind(this))},i.prototype.showTooltip=function(){!this.visible&&this.title.length&&(this.visible=!0,document.getElementById("app").appendChild(this.tooltip),this.calculatePosition())},i.prototype.hideTooltip=function(){this.visible&&(this.visible=!1,document.getElementById("app").removeChild(this.tooltip))},i.prototype.calculatePosition=function(){var e=this.el.getBoundingClientRect(),t=this.tooltip.getBoundingClientRect();e.left+e.width/2>t.width/2&&window.innerWidth-e.left-e.width/2>t.width/2?(this.x="center",this.tooltip.style.left=e.left+e.width/2-t.width/2+"px"):e.left>t.width?(this.x="left",this.tooltip.style.left=e.left-t.width-10+"px"):(this.x="right",this.tooltip.style.left=e.left+e.width+10+"px"),"center"!==this.x?e.top+e.height/2>t.height/2&&window.innerHeight-e.top-e.height/2>t.height/2?(this.y="center",this.tooltip.style.top=e.top+e.height/2-t.height/2+"px"):e.top>t.height?(this.y="top",this.tooltip.style.top=e.top+e.height-t.height+"px"):(this.y="bottom",this.tooltip.style.top=e.top+"px"):e.top>t.height?(this.y="top",this.tooltip.style.top=e.top-t.height-10+"px"):(this.y="bottom",this.tooltip.style.top=e.top+e.height+10+"px"),this.tooltip.dataset.x=this.x,this.tooltip.dataset.y=this.y},r.fn.bm_tooltip=function(){return r(this).each(function(){var e;r(this).data("bm_tooltip")||(e=new i(this),r(this).data("bm_tooltip",e))})}},{"../../core":11}],25:[function(e,t,n){"use strict";var a=e("../../core").$;function r(e,t){t=t||{};var e=a(e),n=e.val(),r=e.closest(".master-slave-selects").find(".slave"),i=a("option:selected",r),e=(e.addClass("js-skip-on-change"),a("option",r).each(function(){var e=a(this),t=e.data("master").split(",");e[-1!==a.inArray(n,t)?"removeClass":"addClass"]("hidden")}),1":" />";return"<"+e+this.html_options(t=null===t?{}:t)+n},content_tag:function(e,t,n){return"<"+e+this.html_options(n=null===n?{}:n)+">"+(t||"")+""}},e={form_tag:function(e,t){var n;return u.isFunction(e=null===e?{}:e)&&(t=e,e={}),e=this.tag("form",u.extend({action:"#"},e),!0),null!=t?((n=[e]).push(t.call(this)),n.push(""),this.safe(n.join(""))):e}},o=(u.extend(e,a),{special_options:["as","for","collection","label","editable","uneditable","option:name","option:id","prompt","choice","dates","scope"],selected_option_from_collection_for_select:function(e,t){var n,r;return t.id||(t.id="id"),t.name||(t.name="name"),u.find(e,function(e){return n=e.get?e.get(t.id):e[t.id],r=e.get?e.get(t.name):e[t.name],t.dates?n&&t.selected&&moment(t.selected).isSame(n,t.scope):String(t.selected)===String(n)},this)?r:""},options_from_collection_for_select:function(e,t){var n,r,i,a;return t.id||(t.id="id"),t.name||(t.name="name"),t.disabled&&(t.disabled=u.map(t.disabled,function(e){return String(e)})),u.map(e,function(e){return n=e.get?e.get(t.id):e[t.id],a=e.get?e.get(t.name):e[t.name],t.dates?r=n&&t.selected&&moment(t.selected).isSame(n,t.scope):(r=String(t.selected)===String(n),t.disabled&&(i=u.contains(t.disabled,String(n)))),this.content_tag("option",a,{selected:r,disabled:i,value:n})},this).join("")},input:function(e,t){var n,r=t.as||"text",i=t.for,a=e,o=t.value;for(n in i&&(o=i.get?i.get(e):i[e]),o=u.isUndefined(o)?"":u.isFunction(o)?o():o,t)t[n]&&u.isString(t[n])&&0===t[n].indexOf("t.")&&(t[n]=t[n].replace("t.",""));var s=u.extend({type:r,value:this.escape(o),name:a},u.omit(t,this.special_options)),i=s["data-id-prefix"]||"";if(!0===u.result(t,"uneditable")||!u.isUndefined(t.editable)&&!0!==u.result(t,"editable"))return s.class||(s.class=""),s.class+=" uneditable-input",e="select"===t.as?this.selected_option_from_collection_for_select(t.collection,{name:t["option:name"],id:i+t["option:id"],selected:o,dates:t.dates,scope:t.scope,disabled:t.disabled}):s.value,this.safe(this.content_tag("span",e,u.omit(s,"type","name","value")));switch(i&&(s.id=i+s.id),delete s["data-id-prefix"],t.as){case"checkbox":s.value=1,o&&(s.checked="checked");var l=this.tag("input",{value:0,name:s.name,type:"hidden"});return this.safe(l+this.tag("input",s));case"checkbox_choice":return s.type="checkbox",o===t.choice&&(s.checked="checked"),s.value=t.choice,this.safe(this.tag("input",s));case"checkbox_collection":return s.type="checkbox",t.collection&&t.collection.length&&!u.contains(t.collection,o)||(s.checked="checked"),this.safe(this.tag("input",s));case"checkbox_collection2":return s.type="checkbox",s.value=t.choice,u.contains(o,parseInt(t.choice,10))&&(s.checked="checked"),this.safe(this.tag("input",s));case"checkbox_collection3":return s.type="checkbox",u.contains(t.collection,o)&&(s.checked="checked"),this.safe(this.tag("input",s));case"radio":return o===t.choice&&(s.checked="checked"),s.value=t.choice,this.safe(this.tag("input",s));case"select":delete s.value;l="";return t.prompt&&(l+=this.content_tag("option","")),l+=this.options_from_collection_for_select(t.collection,{name:t["option:name"],id:t["option:id"],selected:o,dates:t.dates,scope:t.scope,disabled:t.disabled}),this.safe(this.content_tag("select",l,s));case"textarea":return this.safe(this.content_tag("textarea",o,s));case"date":return s.value=o?moment(o).format("YYYY-MM-DD"):"",u.isArray(s.value)&&(s.value=s.value.toString()),this.safe(this.tag("input",s));default:return u.isArray(s.value)&&(s.value=s.value.toString()),this.safe(this.tag("input",s))}},form_for:function(e,t,n){var r;return t.builder||(t.builder=i.default),(r=[this.form_tag(u.omit(t,"builder"))]).push(this.fields_for.call(this,e,t,n)),r.push(""),this.safe(r.join(""))},fields_for:function(e,t,n){e=new(t.builder&&i[t.builder]||i.default)(t.name,e,this,t,n);return n.call(this,e)},setup_name:function(e,t){var n=e.constructor&&e.constructor.class_name||e.class_name;if(n)return n+"["+t+"]";throw"Class name is not defined on model!"+JSON.stringify(e)}});u.extend(o,e),t.exports=o},{handlebars:133,underscore:156}],54:[function(e,t,n){t.exports=function(l){return this.JST=this.JST||{},l.registerPartial("discard_publish",l.template({1:function(e,t,n,r,i){return""},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return'\n\n\n"},usePartial:!0,useData:!0})),l.registerPartial("item_panel",l.template({1:function(e,t,n,r,i){return" override-item"},3:function(e,t,n,r,i){return" overridden-item"},5:function(e,t,n,r,i){return" item-editing-position"},7:function(e,t,n,r,i){return'
drag_handle
'},9:function(e,t,n,r,i){return""},11:function(e,t,n,r,i){return'
\n \n visibility_off\n \n
\n'},12:function(e,t,n,r,i){return"Hidden in CMS"},14:function(e,t,n,r,i){return null!=(t=e.invokePartial(l.r(r,"overrides/item_visibility_tooltip"),t,{name:"overrides/item_visibility_tooltip",fn:e.program(9,i,0),inverse:e.noop,data:i,helpers:n,partials:r,decorators:e.decorators}))?t:""},16:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{};return'
\n \n info_outlined\n \n
\n'},17:function(e,t,n,r,i){return"
Overriden item view type to "+(null!=(n=l.r(n,"replace").call(null!=t?t:e.nullContext||{},"_"," ",{name:"replace",hash:{},fn:e.program(18,i,0),inverse:e.noop,data:i}))?n:"")+".
"},18:function(e,t,n,r,i){return e.escapeExpression(e.lambda(null!=(e=null!=t?l.r(t,"item"):t)?l.r(e,"item_view_type"):e,t))},20:function(e,t,n,r,i){return"
Overriden slot view type to "+(null!=(n=l.r(n,"replace").call(null!=t?t:e.nullContext||{},"_"," ",{name:"replace",hash:{},fn:e.program(21,i,0),inverse:e.noop,data:i}))?n:"")+".
"},21:function(e,t,n,r,i){return e.escapeExpression(e.lambda(null!=(e=null!=t?l.r(t,"item"):t)?l.r(e,"slot_view_type"):e,t))},23:function(e,t,n,r,i){return'
  • Edit in CMS
  • '},25:function(e,t,n,r,i){return'
  • Set position
  • \n'},27:function(e,t,n,r,i){return'
  • Override item view type
  • \n'},29:function(e,t,n,r,i){return'
  • Remove
  • '},31:function(e,t,n,r,i){return'
    \n \n Save\n Cancel\n
    \n'},33:function(e,t,n,r,i){return null!=(t=e.invokePartial(l.r(r,"item_panel"),t,{name:"item_panel",hash:{override:!0,item:null!=(t=null!=t?l.r(t,"item"):t)?l.r(t,"overrideItem"):t},data:i,indent:" ",helpers:n,partials:r,decorators:e.decorators}))?t:""},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{},s=e.escapeExpression;return'
    \n '+(null!=(a=l.r(n,"unless").call(o,null!=(a=null!=t?l.r(t,"item"):t)?l.r(a,"is_dynamic"):a,{name:"unless",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?a:"")+'\n

    \n '+s(e.lambda(null!=(a=null!=t?l.r(t,"item"):t)?l.r(a,"name"):a,t))+"\n

    \n "+(null!=(a=e.invokePartial(l.r(r,"overrides/item_additional_icons"),t,{name:"overrides/item_additional_icons",fn:e.program(9,i,0),inverse:e.noop,data:i,helpers:n,partials:r,decorators:e.decorators}))?a:"")+"\n"+(null!=(a=l.r(n,"unless").call(o,null!=(a=null!=t?l.r(t,"item"):t)?l.r(a,"is_visible"):a,{name:"unless",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?a:"")+(null!=(a=l.r(n,"ifCond").call(o,null!=(a=null!=t?l.r(t,"item"):t)?l.r(a,"item_view_type"):a,"||",null!=(a=null!=t?l.r(t,"item"):t)?l.r(a,"slot_view_type"):a,{name:"ifCond",hash:{},fn:e.program(16,i,0),inverse:e.noop,data:i}))?a:"")+'
    \n \n
    '+s(l.r(n,"math").call(o,null!=(a=null!=t?l.r(t,"item"):t)?l.r(a,"position"):a,"+",1,{name:"math",hash:{},data:i}))+"
    \n
    \n"+(null!=(a=l.r(n,"if").call(o,null!=(a=null!=t?l.r(t,"item"):t)?l.r(a,"editing_position"):a,{name:"if",hash:{},fn:e.program(31,i,0),inverse:e.noop,data:i}))?a:"")+"\n
    \n"+(null!=(a=l.r(n,"if").call(o,null!=(a=null!=t?l.r(t,"item"):t)?l.r(a,"overrideItem"):a,{name:"if",hash:{},fn:e.program(33,i,0),inverse:e.noop,data:i}))?a:"")},usePartial:!0,useData:!0})),l.registerPartial("layouts/app_header",l.template({compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return'
    \n'},useData:!0})),l.registerPartial("layouts/sidebar",l.template({compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return'
    \n
    \n
    \n'},useData:!0})),this.JST.block_actions=l.template({1:function(e,t,n,r,i){var a,o=e.lambda,e=e.escapeExpression;return' \n \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return'\n'+(null!=(n=l.r(n,"unless").call(null!=t?t:e.nullContext||{},null!=(n=null!=t?l.r(t,"model"):t)?l.r(n,"in_group"):n,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?n:"")+"\n"},useData:!0}),this.JST.block_template=l.template({compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return'
    '+e.escapeExpression(e.lambda(null!=(e=null!=t?l.r(t,"model"):t)?l.r(e,"view_type"):e,t))+"
    \n"},useData:!0}),this.JST["block_types/item"]=l.template({1:function(e,t,n,r,i){return' \n \n \n'},3:function(e,t,n,r,i){return' \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return(null!=(n=l.r(n,"if").call(null!=t?t:e.nullContext||{},null!=(n=null!=t?l.r(t,"model"):t)?l.r(n,"icon"):n,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?n:"")+''+e.escapeExpression(e.lambda(null!=(n=null!=t?l.r(t,"model"):t)?l.r(n,"name"):n,t))+"\n"},useData:!0}),this.JST["block_types/items"]=l.template({1:function(e,t,n,r,i){var a=e.lambda,e=e.escapeExpression;return'
    \n

    '+e(a(null!=t?l.r(t,"name"):t,t))+'

    \n
    \n
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return'\n\n
    \n
    \n
    \n close\n'+(null!=(n=l.r(n,"each").call(null!=t?t:e.nullContext||{},null!=t?l.r(t,"groups"):t,{name:"each",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?n:"")+"
    \n
    \n
    \n"},useData:!0}),this.JST["blocks/custom"]=l.template({compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return'
    '+e.escapeExpression(e.lambda(null!=t?l.r(t,"name"):t,t))+"
    \n"},useData:!0}),this.JST["blocks/default"]=l.template({compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return"
    \n Block: "+e.escapeExpression(e.lambda(null!=t?l.r(t,"model"):t,t))+"\n
    \n"},useData:!0}),this.JST["blocks/grid"]=l.template({1:function(e,t,n,r,i){var a=e.lambda,e=e.escapeExpression;return'

    '+e(a(null!=t?l.r(t,"title"):t,t))+"

    \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return'
    \n
    \n'+(null!=(n=l.r(n,"each").call(null!=t?t:e.nullContext||{},null!=t?l.r(t,"data"):t,{name:"each",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?n:"")+"
    \n
    \n"},useData:!0}),this.JST["blocks/image"]=l.template({compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return'\n\n'},useData:!0}),this.JST["blocks/list"]=l.template({compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return'\n'},useData:!0}),this.JST.bm_collection_item=l.template({compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return null!=(t=e.invokePartial(l.r(r,"item_panel"),t,{name:"item_panel",hash:{item:null!=t?l.r(t,"model"):t},data:i,helpers:n,partials:r,decorators:e.decorators}))?t:""},usePartial:!0,useData:!0}),this.JST.bm_collection_items=l.template({compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return'\x3c!--Collection items will appear here!--\x3e\n
    \n'},useData:!0}),this.JST.bm_collection_overflown_items=l.template({1:function(e,t,n,r,i){var a,o=e.lambda,e=e.escapeExpression;return' \n'},3:function(e,t,n,r,i){return null!=(n=l.r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?l.r(t,"before"):t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?n:""},4:function(e,t,n,r,i){return null!=(n=l.r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?l.r(t,"offset"):t,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?n:""},5:function(e,t,n,r,i){return'
    \n

    '+e.escapeExpression(e.lambda(null!=t?l.r(t,"message"):t,t))+"

    \n
    \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){return"\x3c!--Collection items will appear here!--\x3e\n"+(null!=(n=l.r(n,"if").call(null!=t?t:e.nullContext||{},null!=(n=null!=t?l.r(t,"collection"):t)?l.r(n,"length"):n,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?n:"")},useData:!0}),this.JST.bm_collection=l.template({1:function(e,t,n,r,i){return'
    \n
    \n \n Loading\n
    \n'},3:function(e,t,n,r,i){return'
    + Add items
    '},5:function(e,t,n,r,i){return' \n'},7:function(e,t,n,r,i){return"
    \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{};return(null!=(a=l.r(n,"if").call(o,null!=(a=null!=t?l.r(t,"model"):t)?l.r(a,"loading"):a,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?a:"")+"\n"+(null!=(a=l.r(n,"if").call(o,null!=(a=null!=t?l.r(t,"model"):t)?l.r(a,"canAddItems"):a,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?a:"")+'\n\n
    \n
    \n
    \n\n'+(null!=(a=l.r(n,"if").call(o,null!=(a=null!=t?l.r(t,"model"):t)?l.r(a,"show_remove_all"):a,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?a:"")+"\n"+(null!=(a=l.r(n,"if").call(o,null!=(a=null!=t?l.r(t,"model"):t)?l.r(a,"loading"):a,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?a:"")},useData:!0}),this.JST.error_message=l.template({1:function(e,t,n,r,i){var a=e.lambda,o=e.escapeExpression;return'
    \n

    '+o(a(null!=t?l.r(t,"message"):t,t))+"

    \n

    "+o(a(null!=t?l.r(t,"type"):t,t))+" "+o(a(null!=t?l.r(t,"url"):t,t))+"

    \n

    "+o(a(null!=t?l.r(t,"timestamp"):t,t))+" :: "+o(a(null!=t?l.r(t,"status_code"):t,t))+" "+o(a(null!=t?l.r(t,"status_text"):t,t))+"

    \n\n"+(null!=(o=l.r(n,"if").call(null!=t?t:e.nullContext||{},null!=t?l.r(t,"debug"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?o:"")+"\n
    \n"},2:function(e,t,n,r,i){return'
    \n
    '+e.escapeExpression(e.lambda(null!=t?l.r(t,"pretty_debug"):t,t))+"
    \n
    \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var a=null!=t?t:e.nullContext||{},o=e.escapeExpression;return'
    \n

    An error occurred and we\'re not sure why.

    \n

    Please, send the error details below to developers with the description of what you were doing when the error occurred to help fix it.

    \n

    \n\n
    \n'+(null!=(o=l.r(n,"each").call(a,null!=t?l.r(t,"errors"):t,{name:"each",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"
    \n
    \n"},useData:!0}),this.JST.form_modal=l.template({compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var a=e.lambda;return'