(window.webpackJsonp=window.webpackJsonp||[]).push([[77],{748:function(e,t,n){"use strict";n.r(t);n(33),n(8);var l={props:{value:String,descending:Boolean,items:{type:Array,default:function(){return[]}}},data:function(){return{showMenu:!1}},computed:{selected:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},selectedDesc:{get:function(){return this.descending},set:function(e){this.$emit("update:descending",e)}},selectedText:function(){var e=this.selected;if(!e)return"";var t=this.items.find((function(i){return i.value===e}));return t?t.text:""}},methods:{clickOutside:function(){this.showMenu=!1},clickedOption:function(e){var t=this;this.selected===e?this.selectedDesc=!this.selectedDesc:this.selected=e,this.showMenu=!1,this.$nextTick((function(){return t.$emit("change",e)}))}}},r=n(4),component=Object(r.a)(l,(function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.clickOutside,expression:"clickOutside"}],ref:"wrapper",staticClass:"relative"},[t("button",{staticClass:"relative w-full h-full border border-gray-500 hover:border-gray-400 rounded-sm shadow-xs pl-3 pr-3 py-0 text-left focus:outline-hidden cursor-pointer",attrs:{type:"button","aria-haspopup":"menu","aria-expanded":e.showMenu},on:{click:function(t){t.preventDefault(),e.showMenu=!e.showMenu}}},[t("span",{staticClass:"flex items-center justify-between"},[t("span",{staticClass:"block truncate text-xs",class:e.selectedText?"":"text-gray-300"},[e._v(e._s(e.selectedText))]),e._v(" "),t("span",{staticClass:"material-symbols text-lg text-yellow-400",attrs:{"aria-label":e.descending?e.$strings.LabelSortDescending:e.$strings.LabelSortAscending}},[e._v(e._s(e.descending?"expand_more":"expand_less"))])])]),e._v(" "),t("ul",{directives:[{name:"show",rawName:"v-show",value:e.showMenu,expression:"showMenu"}],staticClass:"absolute z-10 mt-1 w-full bg-bg border border-black-200 shadow-lg max-h-80 rounded-md py-1 ring-1 ring-black/5 overflow-auto focus:outline-hidden text-sm",attrs:{role:"menu"}},[e._l(e.items,(function(n){return[t("li",{key:n.value,staticClass:"select-none relative py-2 pr-9 cursor-pointer hover:bg-white/5",class:n.value===e.selected?"bg-white/5 text-yellow-400":"text-gray-200 hover:text-white",attrs:{role:"menuitem"},on:{click:function(t){return e.clickedOption(n.value)}}},[t("div",{staticClass:"flex items-center"},[t("span",{staticClass:"font-normal ml-3 block truncate"},[e._v(e._s(n.text))])]),e._v(" "),n.value===e.selected?t("span",{staticClass:"text-yellow-400 absolute inset-y-0 right-0 flex items-center pr-4"},[t("span",{staticClass:"material-symbols text-xl",attrs:{"aria-label":e.descending?e.$strings.LabelSortDescending:e.$strings.LabelSortAscending}},[e._v(e._s(e.descending?"expand_more":"expand_less"))])]):e._e()])]}))],2)])}),[],!1,null,null,null);t.default=component.exports}}]);