${localize("common.show_warning")}
`;
}
return x `
`;
}
static get styles() {
return i$3 `
.warning {
display: block;
color: black;
background - color: #fce588;
padding: 8px;
}
`;
}
clickHandler(_) {
var _a;
this._fire("hass-more-info", { entityId: (_a = this._config) === null || _a === void 0 ? void 0 : _a.entity });
}
/**
* Fires the event that opens the enity info
*/
_fire(type, detail) {
var _a;
var event = new Event(type, {
bubbles: true,
cancelable: false,
composed: true,
});
event.detail = detail || {};
(_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.dispatchEvent(event);
return event;
}
};
__decorate([
n$1()
], CanvasGaugeCard.prototype, "hass", void 0);
__decorate([
n$1()
], CanvasGaugeCard.prototype, "_config", void 0);
__decorate([
i("#canvaselement")
], CanvasGaugeCard.prototype, "_canvasElement", void 0);
CanvasGaugeCard = __decorate([
e$1("canvas-gauge-card")
], CanvasGaugeCard);
export { CanvasGaugeCard, hasConfigOrEntityChanged };