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