(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{575:function(t,e,n){},696:function(t,e,n){"use strict";var s=n(575);n.n(s).a},737:function(t,e,n){"use strict";n.r(e);var s=n(220),i=n(536),l=n.n(i),c=n(0),o=n(3).a.extend({components:{factorIcon:s.g},props:{toggleClass:{type:String,default:""},list:{type:Array,default:()=>[]},itemKey:{type:[String,Number],default:""}},data:()=>({toggle:!1,clickHandler:""}),methods:{parseList:c.s,sendEvent(t){this.$emit("action",t),this.toggle=!1},setToggle(){this.clickHandler=()=>{this.toggle&&(this.toggle=!1,document.removeEventListener("click",this.clickHandler,!1))},this.toggle?(this.toggle=!1,document.removeEventListener("click",this.clickHandler,!1)):(l()("body").click(),this.toggle=!0,document.addEventListener("click",this.clickHandler,!1))}}}),a=(n(696),n(531)),g=Object(a.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quick-menu toggle",class:t.toggle?"active":"not-active",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"toggle-btn",class:t.toggleClass,attrs:{"data-test":"menu-toggle"},on:{click:function(e){return t.setToggle()}}},[n("factor-icon",{attrs:{icon:"ellipsis-h"}})],1),t._v(" "),t.toggle?n("div",{staticClass:"toggle-content"},t._l(t.parseList(t.list),(function(e,s){return n("div",{key:s,staticClass:"toggle-item",attrs:{"data-test":"menu-"+e.value},on:{click:function(n){return n.stopPropagation(),t.sendEvent(e.value)}}},[t._v(t._s(e.name))])})),0):t._e()])}),[],!1,null,null,null);e.default=g.exports}}]);