"use strict";(self.webpackChunkwpide=self.webpackChunkwpide||[]).push([[766],{53027(e,t,n){n.r(t),n.d(t,{default:()=>r});n(51629),n(44114),n(54554),n(18111),n(7588),n(5506),n(26099),n(47764),n(23500),n(62953);const i={name:"SettingControlRepeater",components:{SettingControl:function(){return n.e(248).then(n.bind(n,64132))}},props:["field","model"],computed:{settingKey:function(){return this.field.module+"."+this.field.id}},watch:{model:function(e){this.updateConfig(this.settingKey,e)}},methods:{remove:function(e){this.model.splice(e,1)},add:function(){if("group"===this.field.type){var e=[];Object.entries(this.field.fields).forEach(function(){e.push("")}),this.model.push(e)}else this.model.push("")}}};var l=(0,n(81656).A)(i,function(){var e=this,t=e._self._c;return t("div",[e._l(e.model,function(n,i){return[t("div",{key:i,staticClass:"repeater-row"},[t("SettingControl",{attrs:{module:e.field.module,id:e.field.id,type:e.field.type,label:e.field.label||null,options:e.field.options||null,attr:e.field.attr||null,multiple:e.field.multiple||null,fields:e.field.fields||null,repeater:!1,vindex:i}}),t("a",{staticClass:"repeater-row-remove",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.remove(i)}}},[t("em",{staticClass:"icon ni ni-trash"})])],1)]}),t("a",{staticClass:"repeater-row-add",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.add.apply(null,arguments)}}},[t("em",{staticClass:"icon ni ni-plus-circle"}),e._v(" Add")])],2)},[],!1,null,"382dd4fe",null);const r=l.exports},32357(e,t,n){var i=n(43724),l=n(79039),r=n(79504),s=n(42787),o=n(71072),u=n(25397),a=r(n(48773).f),d=r([].push),f=i&&l(function(){var e=Object.create(null);return e[2]=2,!a(e,2)}),c=function(e){return function(t){for(var n,l=u(t),r=o(l),c=f&&null===s(l),p=r.length,h=0,m=[];p>h;)n=r[h++],i&&!(c?n in l:a(l,n))||d(m,e?[n,l[n]]:l[n]);return m}};e.exports={entries:c(!0),values:c(!1)}},5506(e,t,n){var i=n(46518),l=n(32357).entries;i({target:"Object",stat:!0},{entries:function(e){return l(e)}})}}]);