var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { css, customElement, html, nothing, property, when } from '../../../../external/lit/index.js';
import { UmbLitElement } from '../../../core/lit-element/index.js';
let UmbDocumentTypeSearchResultItemElement = class UmbDocumentTypeSearchResultItemElement extends UmbLitElement {
    render() {
        if (!this.item)
            return nothing;
        return html `
			${when(this.item.icon, (icon) => html `<umb-icon name=${icon}></umb-icon>`, () => html `<uui-icon name="icon-document"></uui-icon>`)}
			<span>${this.item.name}</span>
			<div class="extra">
				${when(this.item.isElement, () => html `
						<uui-tag look="secondary">
							<umb-localize key="contentTypeEditor_elementType">Element Type</umb-localize>
						</uui-tag>
					`)}
			</div>
		`;
    }
    static { this.styles = [
        css `
			:host {
				border-radius: var(--uui-border-radius);
				outline-offset: -3px;
				padding: var(--uui-size-space-3) var(--uui-size-space-5);

				display: flex;
				gap: var(--uui-size-space-3);
				align-items: center;

				width: 100%;

				> span {
					flex: 1;
				}
			}
		`,
    ]; }
};
__decorate([
    property({ type: Object })
], UmbDocumentTypeSearchResultItemElement.prototype, "item", void 0);
UmbDocumentTypeSearchResultItemElement = __decorate([
    customElement('umb-document-type-search-result-item')
], UmbDocumentTypeSearchResultItemElement);
export { UmbDocumentTypeSearchResultItemElement };
export { UmbDocumentTypeSearchResultItemElement as element };
