import { LitElement, css, html } from "lit";
import { customElement, property, state } from "lit/decorators.js";
import { renderIconButton } from "../../common/icon-button.js";
import { bindingGuard } from "../../../decorators/binding-guard.js";
import { bindings } from "../../../decorators/bindings.js";
import { errorGuard } from "../../../decorators/error-guard.js";
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
import arrow_full from "../../../images/arrow-full.js";
function _ts_decorate(decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) 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;
}
function _ts_metadata(k, v) {
    if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
}
class AtomicInsightFullSearchButton extends LitElement {
    initialize() {}
    render() {
        return html`
      ${renderIconButton({
            props: {
                partPrefix: 'full-search',
                style: 'outline-neutral',
                icon: arrow_full,
                ariaLabel: this.bindings.i18n.t('full-search'),
                title: this.tooltip
            }
        })}
    `;
    }
    constructor(...args){
        super(...args), this.tooltip = '';
    }
}
AtomicInsightFullSearchButton.styles = css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */:host{right:calc(var(--spacing,.25rem)*0);--full-search-background-color:var(--atomic-neutral-dark);--full-search-secondary-background-color:#333536;position:absolute}:host::part(full-search-button){--tw-border-style:none;background-color:var(--full-search-background-color);border-radius:0;border-style:none;clip-path:polygon(0 0,100% 100%,100% 0);height:27px;width:27px}:host::part(full-search-button):hover{background-color:var(--full-search-secondary-background-color);border-color:var(--full-search-secondary-background-color)}:host::part(full-search-icon){height:9px;left:15px;position:absolute;top:4px;width:9px}`;
_ts_decorate([
    state(),
    _ts_metadata("design:type", "u" < typeof InsightBindings ? Object : InsightBindings)
], AtomicInsightFullSearchButton.prototype, "bindings", void 0);
_ts_decorate([
    state(),
    _ts_metadata("design:type", "u" < typeof Error ? Object : Error)
], AtomicInsightFullSearchButton.prototype, "error", void 0);
_ts_decorate([
    property({
        type: String,
        attribute: 'tooltip'
    })
], AtomicInsightFullSearchButton.prototype, "tooltip", void 0);
_ts_decorate([
    errorGuard(),
    bindingGuard(),
    _ts_metadata("design:type", Function),
    _ts_metadata("design:paramtypes", []),
    _ts_metadata("design:returntype", void 0)
], AtomicInsightFullSearchButton.prototype, "render", null);
AtomicInsightFullSearchButton = _ts_decorate([
    customElement('atomic-insight-full-search-button'),
    bindings(),
    withTailwindStyles
], AtomicInsightFullSearchButton);
export { AtomicInsightFullSearchButton };
