"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[357],{6798:(e,n,t)=>{t.r(n),t.d(n,{default:()=>h});var a=t(9726),l={class:"flex flex-col min-w-0 rounded break-words border bg-white border-1 border-stone-300 mb-2"},r={class:"flex-auto p-6"},o={class:"mb-3"},i=["for"],s=["name","id","onUpdate:modelValue"],u={class:"mb-3"},d=["for"],m=["name","id","onUpdate:modelValue","rows"],c=["onClick"],p=(0,a.Lk)("i",{class:"fa fa-times"},null,-1),b=(0,a.Lk)("hr",null,null,-1),f={class:"mt-2 text-center"},k=(0,a.Lk)("i",{class:"fa fa-plus"},null,-1);const v={name:"SettingsParameters",props:{initialItems:Array,inputName:String},data:function(){return{items:this.initialItems||[]}},methods:{addItem:function(){this.items.push({name:"",value:""})},removeItem:function(e){this.items.splice(e,1)}}};const h=(0,t(6262).A)(v,[["render",function(e,n,t,v,h,x){return(0,a.uX)(),(0,a.CE)("div",null,[(0,a.Lk)("div",l,[(0,a.Lk)("div",r,[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(e.items,(function(n,l){return(0,a.uX)(),(0,a.CE)("div",null,[(0,a.Lk)("div",o,[(0,a.Lk)("label",{for:t.inputName+"["+l+"][name]",class:"control-label"},(0,a.v_)(e.trans("labels.name")),9,i),(0,a.bo)((0,a.Lk)("input",{name:t.inputName+"["+l+"][name]",id:t.inputName+"["+l+"][name]","onUpdate:modelValue":function(e){return n.name=e},type:"text",class:"block appearance-none w-full py-1 px-2 mb-1 leading-normal bg-white text-stone-800 border border-stone-200 rounded"},null,8,s),[[a.Jo,n.name]])]),(0,a.Lk)("div",u,[(0,a.Lk)("label",{for:t.inputName+"["+l+"][value]",class:"control-label"},(0,a.v_)(e.trans("labels.the_value")),9,d),(0,a.bo)((0,a.Lk)("textarea",{name:t.inputName+"["+l+"][value]",id:t.inputName+"["+l+"][value]","onUpdate:modelValue":function(e){return n.value=e},class:"block appearance-none w-full py-1 px-2 mb-1 leading-normal bg-white text-stone-800 border border-stone-200 rounded",rows:(n.value.match(new RegExp("\n","g"))||[]).length+2},"\n                        ",8,m),[[a.Jo,n.value]])]),(0,a.Lk)("button",{class:"inline-block align-middle text-center select-none border font-normal whitespace-no-wrap rounded no-underline py-1.5 px-2 leading-tight text-xs bg-red-600 text-white hover:bg-red-700",onClick:(0,a.D$)((function(e){return x.removeItem(l)}),["prevent"])},[p,(0,a.eW)(" "+(0,a.v_)(e.trans("main.delete")),1)],8,c),b])})),256)),(0,a.Lk)("div",f,[(0,a.Lk)("button",{class:"inline-block align-middle text-center select-none border font-normal whitespace-no-wrap rounded no-underline py-1.5 px-2 leading-tight text-xs bg-lime-500 text-white hover:bg-lime-600",onClick:n[0]||(n[0]=(0,a.D$)((function(){return x.addItem&&x.addItem.apply(x,arguments)}),["prevent"]))},[k,(0,a.eW)(" "+(0,a.v_)(e.trans("main.add")),1)])])])])])}]])}}]);