// © 2026 Adobe. MIT License. See /LICENSE for details. import { withHooks } from "../hooks/with-hooks.js"; import { requireService } from "./require-service.js"; import { TemplateResult } from "lit"; export function applyServiceDecorators(target: any) { const prototype = Object.getPrototypeOf(target); const originalRender = target.render ?? prototype.render; const withService = requireService()(target, 'render', { value: originalRender }); const withHooksAndService = withHooks(target, 'render', withService); target.render = withHooksAndService.value as () => TemplateResult | null; }