(window.webpackJsonp=window.webpackJsonp||[]).push([[78],{1577:function(t,e,n){"use strict";n.r(e);var o=n(1),c=n(60),r=n(36),l=n(26),d=(n(81),n(55)),v=n(141),m=n(265),f=n(822),_=n.n(f),h={props:{item:{key:"item",required:!0,type:null}},setup:function(t,e){var n=Object(c.d)().$graphql,f=t,h=e.emit,w=Object(o.J)(Object(d.cloneDeep)(f.item)),I=Object(o.J)(!0),form=Object(o.J)(null),j=Object(o.J)(!0),O=Object(o.J)([]),k=function(){var t=Object(l.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=r.a,t.next=3,n.default.request(_.a,{allowGroups:!0});case 3:t.t1=t.sent.overlays.stopwatch,O.value=(0,t.t0)(t.t1),j.value=!1;case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();Object(o.A)((function(){k(),v.a.$on("quickaction::".concat(f.item.id,"::valid"),(function(){console.debug("quickaction::".concat(f.item.id,"::valid")),form.value.validate()}))})),Object(o.D)((function(){v.a.$off("quickaction::".concat(f.item.id,"::valid"))}));var y={stopwatchId:[m.h]};return Object(o.Y)(w,(function(t){h("update:item",Object(d.pick)(t,["id","userId","order","type","options.label","options.color","options.stopwatchId"]))}),{deep:!0}),Object(o.Y)(I,(function(t){h("update:valid",t)})),{clonedItem:w,valid:I,form:form,loading:j,overlays:O,rules:y}}},w=h,I=n(45),j=n(44),O=n.n(j),k=n(375),y=n(31),x=n(266),component=Object(I.a)(w,(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;O()(component,{VForm:k.a,VIcon:y.a,VSelect:x.a})}}]);