"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[938],{2049:(n,e,t)=>{t.r(e),t.d(e,{default:()=>s});var l=t(821),a=["name","value"];const s={__name:"GameapSelect",props:{options:null,name:"",value:null},setup:function(n){var e=n,t=(0,l.iH)(e.name),s=(0,l.iH)(e.value);return function(e,u){var i=(0,l.up)("n-select");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(i,{value:s.value,"onUpdate:value":u[0]||(u[0]=function(n){return s.value=n}),multiple:"",options:n.options},null,8,["value","options"]),void 0!==s.value&&null!==s.value?((0,l.wg)(!0),(0,l.iD)(l.HY,{key:0},(0,l.Ko)(s.value,(function(n){return(0,l.wg)(),(0,l.iD)("div",null,[(0,l._)("input",{type:"hidden",name:t.value,value:n},null,8,a)])})),256)):(0,l.kq)("",!0)],64)}}}},800:(n,e,t)=>{t.r(e),t.d(e,{default:()=>f});var l=t(821),a={class:"table-responsive"},s={class:"mb-3"},u=[(0,l._)("span",{class:"fa fa-plus"},null,-1)],i={class:"table table-striped table-bordered"},r={class:"mb-3"},o=["type","onUpdate:modelValue","name","id"],c=["onClick"],d=[(0,l._)("span",{class:"fa fa-times"},null,-1)],m={class:"mb-3 col-md-1 offset-md-6 centered"},p=(0,l._)("span",{class:"fa fa-plus"},null,-1);const v={props:{initialItems:Array,labels:Array,keys:Array,inputTypes:Array,name:String},data:function(){return{items:this.initialItems,classes:{text:"form-control",checkbox:""}}},methods:{removeItem:function(n){this.items.splice(n,1)},addItem:function(){var n={};this.keys.forEach((function(e){n[e]=""})),this.items.push(n)}}};const f=(0,t(3744).Z)(v,[["render",function(n,e,t,v,f,b){return(0,l.wg)(),(0,l.iD)("div",a,[(0,l._)("div",s,[(0,l._)("button",{class:"btn btn-sm btn-success",onClick:e[0]||(e[0]=(0,l.iM)((function(){return b.addItem&&b.addItem.apply(b,arguments)}),["prevent"]))},u)]),(0,l._)("table",i,[(0,l._)("thead",null,[(0,l._)("tr",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(t.labels,(function(n){return(0,l.wg)(),(0,l.iD)("td",null,(0,l.zw)(n),1)})),256)),(0,l._)("td",null,(0,l.zw)(n.trans("main.actions")),1)])]),(0,l._)("tbody",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.items,(function(e,a){return(0,l.wg)(),(0,l.iD)("tr",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(t.keys,(function(s,u){return(0,l.wg)(),(0,l.iD)("td",null,[(0,l._)("div",r,[(0,l.wy)((0,l._)("input",{type:t.inputTypes[u],"onUpdate:modelValue":function(n){return e[s]=n},name:t.name+"["+a+"]["+s+"]",id:t.name+"_"+a+"_"+s,class:(0,l.C_)(n.classes[t.inputTypes[u]])},null,10,o),[[l.YZ,e[s]]])])])})),256)),(0,l._)("td",null,[(0,l._)("button",{class:"btn btn-sm btn-danger",onClick:(0,l.iM)((function(n){return b.removeItem(a)}),["prevent"])},d,8,c)])])})),256))])]),(0,l._)("div",m,[(0,l._)("button",{class:"btn btn-sm btn-success",onClick:e[1]||(e[1]=(0,l.iM)((function(){return b.addItem&&b.addItem.apply(b,arguments)}),["prevent"]))},[p,(0,l.Uk)(" "+(0,l.zw)(n.trans("main.add")),1)])])])}]])},3656:(n,e,t)=>{t.r(e),t.d(e,{default:()=>m});var l=t(821),a={class:"row"},s={class:"col-md-12 input-group"},u=["onUpdate:modelValue","name","id"],i=["onClick"],r=[(0,l._)("span",{class:"fa fa-times"},null,-1)],o={class:"mb-3"},c=[(0,l._)("span",{class:"fa fa-plus"},null,-1)];const d={props:{initialItems:Array,label:String,name:String},setup:function(n){var e=(0,l.iH)(n.initialItems);return{items:e,removeItem:function(n){e.value.splice(n,1)},addItem:function(){void 0===e.value&&(e.value=[]),e.value.push("")}}}};const m=(0,t(3744).Z)(d,[["render",function(n,e,t,d,m,p){return(0,l.wg)(),(0,l.iD)("div",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(d.items,(function(n,e){return(0,l.wg)(),(0,l.iD)("div",{class:"mb-3 deletable",key:e},[(0,l._)("div",a,[(0,l._)("div",s,[(0,l.wy)((0,l._)("input",{type:"text","onUpdate:modelValue":function(n){return d.items[e]=n},name:t.name+"[]",id:t.name+"_"+e,class:"form-control"},null,8,u),[[l.nr,d.items[e]]]),(0,l._)("button",{class:"btn btn-danger",onClick:(0,l.iM)((function(n){return d.removeItem(e)}),["prevent"])},r,8,i)])])])})),128)),(0,l._)("div",o,[(0,l._)("button",{class:"btn btn-success",onClick:e[0]||(e[0]=(0,l.iM)((function(){return d.addItem&&d.addItem.apply(d,arguments)}),["prevent"]))},c)])])}]])}}]);