(window.webpackJsonp=window.webpackJsonp||[]).push([[78],{1605:function(e,t,n){"use strict";n.r(t);var o=n(1),c=(n(8),n(4),n(21)),l=n(56),d=n(80),r=n(141),v=n(264),m={props:{item:{key:"item",required:!0,type:null}}};m.setup=function(e,t){var n=e,m=t.emit,f=Object(o.J)(Object(l.cloneDeep)(n.item)),_=Object(o.J)(!0),form=Object(o.J)(null),I=Object(o.J)(!0),j=Object(o.J)([]);Object(o.A)((function(){Object(c.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"countdown"===e.value})))&&void 0!==n?n:null,I.value=!1})),r.a.$on("quickaction::".concat(n.item.id,"::valid"),(function(){console.debug("quickaction::".concat(n.item.id,"::valid")),form.value.validate()}))})),Object(o.D)((function(){r.a.$off("quickaction::".concat(n.item.id,"::valid"))}));var w={countdownId:[v.h]};return Object(o.Y)(f,(function(e){m("update:item",Object(l.pick)(e,["id","userId","order","type","options.label","options.color","options.countdownId"]))}),{deep:!0}),Object(o.Y)(_,(function(e){m("update:valid",e)})),{clonedItem:f,valid:_,form:form,loading:I,overlays:j,rules:w}};var f=m,_=n(45),I=n(44),j=n.n(I),w=n(378),O=n(32),k=n(263),component=Object(_.a)(f,(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;j()(component,{VForm:w.a,VIcon:O.a,VSelect:k.a})}}]);