(function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{enumerable:!0,get:d})},b.r=function(a){'undefined'!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:'Module'}),Object.defineProperty(a,'__esModule',{value:!0})},b.t=function(a,c){if(1&c&&(a=b(a)),8&c)return a;if(4&c&&'object'==typeof a&&a&&a.__esModule)return a;var d=Object.create(null);if(b.r(d),Object.defineProperty(d,'default',{enumerable:!0,value:a}),2&c&&'string'!=typeof a)for(var e in a)b.d(d,e,function(b){return a[b]}.bind(null,e));return d},b.n=function(a){var c=a&&a.__esModule?function(){return a['default']}:function(){return a};return b.d(c,'a',c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p='view/public/',b(b.s=489)})({489:function(){document.addEventListener('DOMContentLoaded',function(){function a(a){a=a||document;for(var b=a.querySelectorAll('.js-remove-module'),c=0;c<b.length;c++)b[c].addEventListener('click',function(){this.closest('.js-marcas').remove()})}function b(){var b=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},e=b.position,f=b.layout_id,g=b.status,h=b.sort_order,i=document.createElement('div'),j=window.Type_ModulePosition.getEnumList(),k=info.layouts,l=window.Type_Status.getEnumList(),m='\n    <div class="row x-small-space-xs">\n      <div class="col-md">\n        <label class="field field-medium">\n          <span class="field-label">'.concat(window.language.get('entry_layout'),'</span>\n          <select class="field-entry" name="futurafiltromarca_module[').concat(d,'][layout_id]">\n            ').concat(Object.keys(k).map(function(a){return'<option value="'.concat(k[a].layout_id,'" ').concat(f==k[a].layout_id?'selected':'','>\n            ').concat(k[a].name,'\n          </option>')}).join(''),'\n          </select>\n        </label>\n      </div>\n      <div class="col-md">\n        <label class="field field-medium">\n          <span class="field-label">').concat(window.language.get('entry_position'),'</span>\n          <select class="field-entry" name="futurafiltromarca_module[').concat(d,'][position]">\n            ').concat(Object.keys(j).map(function(a){return'<option value="'.concat(a,'" ').concat(e==a?'selected':'','>').concat(j[a],'</option>')}).join(''),'\n          </select>\n        </label>\n      </div>\n      <div class="col-md">\n        <label class="field field-medium">\n          <span class="field-label">').concat(window.language.get('entry_status'),'</span>\n          <select class="field-entry" name="futurafiltromarca_module[').concat(d,'][status]">\n            ').concat(Object.keys(l).map(function(a){return'<option value="'.concat(a,'" ').concat(g==a?'selected':'','>').concat(l[a],'</option>')}).join(''),'\n          </select>\n        </label>\n      </div>\n      <div class="col-md-width-auto">\n        <label class="field field-medium">\n          <span class="field-label">').concat(window.language.get('entry_sort_order'),'</span>\n          <input class="field-entry mask-number2" type="text" name="futurafiltromarca_module[').concat(d,'][sort_order]"\n          value="').concat('undefined'==typeof h?'':h,'" size="1">\n        </label>\n      </div>\n      <div class="col-xs-12 col-md-width-auto">\n        <div class="padding-medium cursor-pointer top-margin-medium js-remove-module" data-tooltip="').concat(window.language.get('button_remove'),'" data-manufactured-id="{{ key }}">\n          <i class="fas fa-trash text-gray"></i>\n        </div>\n      </div>\n    </div>');i.setAttribute('class','content-box background-white shadow-small bottom-margin-medium adm-focus-within padding-large js-marcas'),i.innerHTML=m,c.prepend(i),a(i),d++}var c=document.getElementById('filtro_marcas_list');window.info=JSON.parse(document.querySelector('[data-info]').getAttribute('data-info')),language.add(info.languages),language.load('module/futurafiltromarca');var d='';d++,document.getElementById('add_module').onclick=b,a();var e=info.modules;for(var f in e)b(e[f])})}});