${this.hass.localize(
`ui.panel.config.${this._params.domain}.editor.paste_confirm.text`
)}
${this.hass.localize("ui.common.append")}
${this.hass.localize("ui.common.replace")}
`;
}
private _handleReplace() {
this._params?.onReplace();
this.closeDialog();
}
private _handleAppend() {
this._params?.onAppend();
this.closeDialog();
}
static get styles(): CSSResultGroup {
return [
haStyle,
haStyleDialog,
css`
h3 {
margin: 0;
font-size: inherit;
font-weight: inherit;
}
div[slot="primaryAction"] {
display: flex;
gap: 8px;
}
`,
];
}
}
declare global {
interface HTMLElementTagNameMap {
"ha-dialog-paste-replace": DialogPasteReplace;
}
}