import { LitElement, html } from "lit";
import { customElement, property } from "lit/decorators.js";
import { renderIconButton } from "../../common/icon-button.js";
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
import edit from "../../../images/edit.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 AtomicInsightEditToggle extends LitElement {
    render() {
        return html`${renderIconButton({
            props: {
                partPrefix: 'insight-edit-toggle',
                style: 'outline-neutral',
                icon: edit,
                ariaLabel: 'Edit',
                onClick: this.clickCallback,
                title: this.tooltip
            }
        })}`;
    }
    constructor(...args){
        super(...args), this.clickCallback = ()=>{}, this.tooltip = '';
    }
}
_ts_decorate([
    property({
        type: Function
    }),
    _ts_metadata("design:type", Function)
], AtomicInsightEditToggle.prototype, "clickCallback", void 0);
_ts_decorate([
    property({
        type: String
    })
], AtomicInsightEditToggle.prototype, "tooltip", void 0);
AtomicInsightEditToggle = _ts_decorate([
    customElement('atomic-insight-edit-toggle'),
    withTailwindStyles
], AtomicInsightEditToggle);
export { AtomicInsightEditToggle };
