(window.webpackJsonp=window.webpackJsonp||[]).push([[79],{1606:function(e,t,n){"use strict";n.r(t);var o=n(1),c=n(57),l=(n(8),n(4),n(21)),r=n(56),d=n(80),v=n(141),m=n(264),f={props:{item:{key:"item",required:!0,type:null}}};f.setup=function(e,t){Object(c.d)().$graphql;var n=e,f=t.emit,_=Object(o.J)(Object(r.cloneDeep)(n.item)),h=Object(o.J)(!0),form=Object(o.J)(null),I=Object(o.J)(!0),j=Object(o.J)([]);Object(o.A)((function(){Object(l.getSocket)("/registries/overlays").emit("generic::getAll",(function(e,t){var n;if(e)return Object(d.a)(e);j.value=null!==(n=t.filter((function(e){return"marathon"===e.value})))&&void 0!==n?n:null,I.value=!1})),v.a.$on("quickaction::".concat(n.item.id,"::valid"),(function(){console.debug("quickaction::".concat(n.item.id,"::valid")),form.value.validate()}))})),Object(o.D)((function(){v.a.$off("quickaction::".concat(n.item.id,"::valid"))}));var O={marathonId:[m.h]};return Object(o.Y)(_,(function(e){f("update:item",Object(r.pick)(e,["id","userId","order","type","options.label","options.color","options.marathonId"]))}),{deep:!0}),Object(o.Y)(h,(function(e){f("update:valid",e)})),{clonedItem:_,valid:h,form:form,loading:I,overlays:j,rules:O}};var _=f,h=n(45),I=n(44),j=n.n(I),O=n(378),k=n(32),y=n(263),component=Object(h.a)(_,(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.overlays,label:"Marathon",rules:e.rules.marathonId,loading:e.loading},scopedSlots:e._u([{key:"selection",fn:function(data){return[data.item.groupId?[n("span",[e._v(e._s(data.item.groupId))]),e._v(" "),n("v-icon",{staticClass:"px-1"},[e._v("\n            mdi-chevron-right\n          ")])]:e._e(),e._v(" "),n("strong",[e._v(e._s(data.item.id))])]}},{key:"item",fn:function(data){return[data.item.groupId?[n("span",[e._v(e._s(data.item.groupId))]),e._v(" "),n("v-icon",{staticClass:"px-1"},[e._v("\n            mdi-chevron-right\n          ")])]:e._e(),e._v(" "),n("strong",[e._v(e._s(data.item.id))])]}}]),model:{value:e.clonedItem.options.marathonId,callback:function(t){e.$set(e.clonedItem.options,"marathonId",t)},expression:"clonedItem.options.marathonId"}})],1)],1)}),[],!1,null,null,null);t.default=component.exports;j()(component,{VForm:O.a,VIcon:k.a,VSelect:y.a})}}]);