this._sortBy=e.currentTarget.value}
@closed=${m}
>
${_.map((e=>l`
${this.hacs.localize(`dialog_add_repo.sort_by_values.${e}`)||e}
`))}
${this.filters.length>1?l`
`:""}
${0===t.length?l`${this.hacs.localize("dialog_add_repo.no_match")}`:t.sort(((e,t)=>"name"===this._sortBy?e.name.toLocaleLowerCase()t[this._sortBy]?-1:1)).slice(0,this._load).map((e=>l`this.active=!1}
href="/hacs/repository/${e.id}"
.hasMeta=${!this.narrow&&"integration"!==e.category}
>
${this.narrow?"":"integration"===e.category?l`
`:l`
`}
${e.name}
${e.description}
${this.hacs.localize(`common.${e.category}`)}
`))}
`}},{kind:"method",key:"_loadMore",value:function(e){const t=e.target.scrollTop;t>=this._top?this._load+=1:this._load-=1,this._top=t}},{kind:"method",key:"_inputValueChanged",value:function(e){this._searchInput=e.detail.value,window.localStorage.setItem("hacs-search",this._searchInput)}},{kind:"method",key:"_onImageLoad",value:function(e){e.target.style.visibility="initial"}},{kind:"method",key:"_onImageError",value:function(e){var t;if(null!==(t=e.target)&&void 0!==t&&t.outerHTML)try{e.target.outerHTML=`