{"version":3,"sources":["../../../src/instructions/AddText.instruction.ts"],"names":[],"mappings":";;;;;AAUO,IAAM,kBAAA,GAAN,cAAiC,cAAA,CAAiD;AAAA,EAErF,YAAY,KAAA,EAAsG;AAC9G,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAmE,CAAA;AAAA,IAC7E,CAAA,MAAO;AACH,MAAA,KAAA,CAAM,mBAAA,CAAoB,SAAS,KAAK,CAAA;AAAA,IAC5C;AAAA,EACJ;AACJ;AATa,kBAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,kBAAA,CAAA","file":"AddText.instruction.mjs","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddTextInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n    namespace: 'a-are-html',\n    description: 'Appends a text node to an element. Apply creates the text node; revert removes it. Content can be a static string or a dynamic getter for interpolations.'\n})\nexport class AddTextInstruction extends AreDeclaration<AreHtmlAddTextInstructionPayload> {\n\n    constructor(props: AreHtmlAddTextInstructionPayload | AreInstructionSerialized<AreHtmlAddTextInstructionPayload>) {\n        if ('aseid' in props) {\n            super(props as AreInstructionSerialized<AreHtmlAddTextInstructionPayload>);\n        } else {\n            super(AreHTMLInstructions.AddText, props);\n        }\n    }\n}\n"]}