(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=478)})({478:function(){document.addEventListener('DOMContentLoaded',function(){function a(a){a=a||document;for(var c=a.querySelectorAll('.js-remove-rating'),d=0;d<c.length;d++)c[d].onclick=b}function b(){this.closest('.js-store-rating').remove()}function c(){var b=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},c=b.layout_id,e=b.position,f=b.status,g=b.sort_order,h=document.createElement('div'),i=info.layouts,j=info.positions,k=Type_Status.getEnumList(),l='\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="store_rating_module[').concat(d,'][layout_id]">\n              ').concat(i.map(function(a){return'<option value="'.concat(a.layout_id,'" ').concat(a.layout_id==c?'selected':'','>').concat(a.name,'</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="store_rating_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="store_rating_module[').concat(d,'][status]">\n              ').concat(Object.keys(k).map(function(a){return'<option value="'.concat(a,'"  ').concat(f==a?'selected':'','>').concat(k[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-number" type="text" name="store_rating_module[').concat(d,'][sort_order]"\n              value="').concat('undefined'==typeof g?'':g,'" size="1"\n            >\n          </label>\n        </div>\n        <div class="col-md-width-auto">\n          <div class="padding-medium cursor-pointer top-margin-medium js-remove-rating" data-tooltip="Remover">\n            <i class="fas fa-trash text-gray"></i>\n          </div>\n        </div>\n      </div>');h.id=d,h.setAttribute('class','background-white padding-large bottom-margin-medium shadow-small adm-focus-within js-store-rating'),h.innerHTML=l,containerStoreRatingList.prepend(h),a(h),d++}window.info=JSON.parse(document.querySelector('[data-info]').getAttribute('data-info')),window.containerStoreRatingList=document.getElementById('store_rating_list'),language.add(info.languagesJS),language.load('module/store_rating');var d='';d++,document.getElementById('add_module').onclick=c,a();var e=info.modules;for(var f in e)c(e[f])})}});