import{h}from"@stencil/core";import{SubscriptionList}from"../../../../../api/dist/ontotext-workbench-api";import{TranslationService}from"../../services/translation.service";import{OntoTooltipPlacement}from"../onto-tooltip/models/onto-tooltip-placement";export class OntoSearchIcon{constructor(){this.tooltipKey="rdf_search.labels.search",this.subscriptions=new SubscriptionList}connectedCallback(){this.onTooltipChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return h("i",{key:"e19266ec7de27b760ec4f348e3b1b2b721e44f99","tooltip-content":this.tooltipLabel,"tooltip-placement":OntoTooltipPlacement.BOTTOM,class:"onto-search-icon ri-search-line ri-lg"})}onTooltipChange(){this.subscriptions.add(TranslationService.onTranslate(this.tooltipKey,[],t=>this.tooltipLabel=t))}static get is(){return"onto-search-icon"}static get originalStyleUrls(){return{$:["onto-search-icon.scss"]}}static get styleUrls(){return{$:["onto-search-icon.css"]}}static get states(){return{tooltipLabel:{}}}}