/*! For license information please see default-template-processor.js.LICENSE.txt */
import{AttributeCommitter,BooleanAttributePart,EventPart,NodePart,PropertyCommitter}from"./parts.js";export class DefaultTemplateProcessor{handleAttributeExpressions(t,e,r,o){const n=e[0];if("."===n){return new PropertyCommitter(t,e.slice(1),r).parts}if("@"===n)return[new EventPart(t,e.slice(1),o.eventContext)];if("?"===n)return[new BooleanAttributePart(t,e.slice(1),r)];return new AttributeCommitter(t,e,r).parts}handleTextExpression(t){return new NodePart(t)}}export const defaultTemplateProcessor=new DefaultTemplateProcessor;