"use strict";(self.webpackChunkwpide=self.webpackChunkwpide||[]).push([[766],{65981:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});n(88405),n(95226),n(29522),n(68618),n(28251),n(95692),n(59784),n(70549),n(22788),n(5073);const i={name:"SettingControlRepeater",components:{SettingControl:function(){return n.e(248).then(n.bind(n,44333))}},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("")}}};const l=(0,n(86817).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).exports},77277:(e,t,n)=>{var i=n(46724),l=n(75735),r=n(64520),s=n(27403),o=n(40232),u=n(51853),d=r(n(85517).f),a=r([].push),f=i&&l((function(){var e=Object.create(null);return e[2]=2,!d(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:d(l,n))||a(m,e?[n,l[n]]:l[n]);return m}};e.exports={entries:c(!0),values:c(!1)}},68618:(e,t,n)=>{var i=n(52798),l=n(77277).entries;i({target:"Object",stat:!0},{entries:function(e){return l(e)}})}}]);