(window.webpackJsonp=window.webpackJsonp||[]).push([[63],{2224:function(e,t,n){"use strict";n.r(t);var o=n(2),r=n(27),c=(n(82),n(173)),l=n.n(c),d=n(56),m=n(140),v=n(264),f={props:{item:{key:"item",required:!0,type:null}},setup:function(e,t){var n=e,c=t.emit,f=Object(o.J)(!0),j=Object(o.J)([]),k=function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.a.get("/api/registries/randomizer/",{headers:{authorization:"Bearer ".concat(localStorage.accessToken)}});case 2:t=e.sent,j.value=t.data,f.value=!1;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=Object(o.J)(Object(d.cloneDeep)(n.item)),_=Object(o.J)(!0),form=Object(o.J)(null);Object(o.A)((function(){k(),m.a.$on("quickaction::".concat(n.item.id,"::valid"),(function(){console.debug("quickaction::".concat(n.item.id,"::valid")),form.value.validate()}))})),Object(o.D)((function(){m.a.$off("quickaction::".concat(n.item.id,"::valid"))}));var z={randomizerId:[v.h]};return Object(o.Y)(O,(function(e){c("update:item",Object(d.pick)(e,["id","userId","order","type","options.label","options.color","options.randomizerId"]))}),{deep:!0}),Object(o.Y)(_,(function(e){c("update:valid",e)})),{loading:f,randomizers:j,clonedItem:O,valid:_,form:form,rules:z}}},j=f,k=n(46),O=n(44),_=n.n(O),z=n(377),I=n(263),component=Object(k.a)(j,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-form",{ref:"form",attrs:{"lazy-validation":""},model:{value:e.valid,callback:function(t){e.valid=t},expression:"valid"}},[n("v-select",{attrs:{"item-value":"id",items:e.randomizers,label:"Randomizer",rules:e.rules.randomizerId,loading:e.loading},scopedSlots:e._u([{key:"selection",fn:function(data){return[n("strong",[e._v(e._s(data.item.name))]),e._v(" "),n("small",{staticClass:"pl-1 font-italic"},[e._v(e._s(data.item.id))])]}},{key:"item",fn:function(data){return[n("strong",[e._v(e._s(data.item.name))]),e._v(" "),n("small",{staticClass:"pl-1 font-italic"},[e._v(e._s(data.item.id))])]}}]),model:{value:e.clonedItem.options.randomizerId,callback:function(t){e.$set(e.clonedItem.options,"randomizerId",t)},expression:"clonedItem.options.randomizerId"}})],1)],1)}),[],!1,null,null,null);t.default=component.exports;_()(component,{VForm:z.a,VSelect:I.a})}}]);