(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=491)})({491:function(){document.addEventListener('DOMContentLoaded',function(){function a(a){a=a||document;for(var b=a.querySelectorAll('.js-remove-grade'),c=0;c<b.length;c++)b[c].addEventListener('click',function(){this.closest('.js-grade').remove()})}function b(){var b=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{description:{}},e=b.layout_id,f=b.position,g=b.status,h=b.sort_order,i=document.createElement('div'),j=window.Type_Status.getEnumList(),k=window.Type_ModulePosition.getEnumList(),l=window.info.layouts,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="futuragrade_module[').concat(d,'][layout_id]">\n                ').concat(Object.keys(l).map(function(a){return'<option value="'.concat(l[a].layout_id,'" ').concat(e==l[a].layout_id?'selected':'','>\n                ').concat(l[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="futuragrade_module[').concat(d,'][position]">\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">\n            <label class="field field-medium">\n              <span class="field-label">').concat(window.language.get('entry_status'),'</span>\n              <select class="field-entry" name="futuragrade_module[').concat(d,'][status]">\n                ').concat(Object.keys(j).map(function(a){return'<option value="'.concat(a,'" ').concat(g==a?'selected':'','>').concat(j[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="futuragrade_module[').concat(d,'][sort_order]"\n              value="').concat('undefined'==typeof h?'':h,'" size="1">\n            </label>\n          </div>\n          <div class="col-md-width-auto">\n            <div class="padding-medium cursor-pointer top-margin-medium js-remove-grade" data-tooltip="').concat(window.language.get('button_remove'),'">\n              <i class="fas fa-trash text-gray"></i>\n            </div>\n          </div>\n        </div>');i.setAttribute('class','background-white padding-large bottom-margin-medium shadow-small adm-focus-within js-grade'),i.innerHTML=m,c.prepend(i),a(i),d++}var c=document.getElementById('module_list');window.info=JSON.parse(document.querySelector('[data-info]').getAttribute('data-info')),language.add(info.languages),language.load('module/futuragrade');var d=c.querySelectorAll('js-grade').length+1;document.getElementById('add_module').onclick=b,a();var e=info.modules;for(var f in e)b(e[f])})}});