"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[807],{807:function(e,t,a){a.r(t),a.d(t,{va_sort:function(){return i}});var n=a(9213),i=function(){function e(e){(0,n.r)(this,e),this.vaSortKeyDown=(0,n.c)(this,"vaSortKeyDown",7),this.vaSortSelect=(0,n.c)(this,"vaSortSelect",7),this.vaSortSelectBlur=(0,n.c)(this,"vaSortSelectBlur",7),this.componentLibraryAnalytics=(0,n.c)(this,"component-library-analytics",7),this.name="sort",this.value=void 0,this.width="lg",this.messageAriaDescribedby=void 0,this.enableAnalytics=!1}return e.prototype.handleVaKeyDown=function(e){e.stopPropagation(),this.vaSortKeyDown.emit()},e.prototype.handleVaSelect=function(e){if(e.stopPropagation(),this.value=e.detail.value,this.enableAnalytics){var t={componentName:"va-sort",action:"change",details:{label:"Sort by",selectLabel:this.value}};this.componentLibraryAnalytics.emit(t)}this.vaSortSelect.emit({value:this.value})},e.prototype.handleVaSelectBlur=function(e){e.stopPropagation(),this.vaSortSelectBlur.emit({value:e.detail.value})},e.prototype.render=function(){var e=this,t=this,a=t.name,i=t.value,o=t.width,r=t.messageAriaDescribedby;return(0,n.h)(n.H,{key:"da6b3ef9ab5f029aa307ce1bf5e003f24e6566de"},(0,n.h)("va-select",{key:"788342ff479557bc834434cf21647e0453322fa0",label:"Sort by",name:a,value:i,"message-aria-describedby":r,width:o,class:"va-sort__select",onVaKeyDown:function(t){return e.handleVaKeyDown(t)},onVaSelect:function(t){return e.handleVaSelect(t)},onVaSelectBlur:function(t){return e.handleVaSelectBlur(t)}},(0,n.h)("slot",{key:"8756d35e227e7daec17d1197417d8016d0fb0d54"})))},e}();i.style=":host{display:block}"}}]);