(window.webpackJsonp=window.webpackJsonp||[]).push([[78],{1629:function(e,t,n){"use strict";n.r(t);var o=n(1),c=n(60),r=n(37),l=n(26),d=(n(81),n(56)),v=n(141),m=n(265),f=n(829),_=n.n(f),w={props:{item:{key:"item",required:!0,type:null}},setup:function(e,t){var n=Object(c.d)().$graphql,f=e,w=t.emit,I=Object(o.J)(Object(d.cloneDeep)(f.item)),j=Object(o.J)(!0),form=Object(o.J)(null),O=Object(o.J)(!0),k=Object(o.J)([]),h=function(){var e=Object(l.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=r.a,e.next=3,n.default.request(_.a,{allowGroups:!0});case 3:e.t1=e.sent.overlays.countdown,k.value=(0,e.t0)(e.t1),O.value=!1;case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(o.A)((function(){h(),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={countdownId:[m.h]};return Object(o.Y)(I,(function(e){w("update:item",Object(d.pick)(e,["id","userId","order","type","options.label","options.color","options.countdownId"]))}),{deep:!0}),Object(o.Y)(j,(function(e){w("update:valid",e)})),{clonedItem:I,valid:j,form:form,loading:O,overlays:k,rules:y}}},I=w,j=n(45),O=n(44),k=n.n(O),h=n(378),y=n(32),x=n(264),component=Object(j.a)(I,(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:"Countdown",rules:e.rules.countdownId,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.countdownId,callback:function(t){e.$set(e.clonedItem.options,"countdownId",t)},expression:"clonedItem.options.countdownId"}})],1)],1)}),[],!1,null,null,null);t.default=component.exports;k()(component,{VForm:h.a,VIcon:y.a,VSelect:x.a})}}]);