import { BaseTemplateController } from "../template-controller/base-template-controller.js";
class RecsResultTemplateController extends BaseTemplateController {
    getTemplate(conditions) {
        const baseTemplate = this.getBaseTemplate(conditions);
        if (!baseTemplate) return null;
        return {
            conditions: baseTemplate.conditions,
            content: baseTemplate.content,
            linkContent: baseTemplate.linkContent,
            priority: baseTemplate.priority
        };
    }
    getDefaultLinkTemplateElement() {
        const linkTemplate = document.createElement('template');
        linkTemplate.innerHTML = `<atomic-result-link>${this.currentGridCellLinkTarget ? `<a slot="attributes" target="${this.currentGridCellLinkTarget}"></a>` : ''}</atomic-result-link>`;
        return linkTemplate;
    }
    constructor(host, validParents, allowEmpty = false){
        super(host, validParents, allowEmpty);
    }
}
export { RecsResultTemplateController };
