{"version":3,"sources":["../../../src/instructions/AddInterpolation.instruction.ts"],"names":[],"mappings":";;;;;AAUO,IAAM,2BAAA,GAAN,cAA0C,WAAA,CAAuD;AAAA,EAEpG,WAAA,CACI,QACA,KAAA,EACF;AACE,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAA4E,CAAA;AAAA,IACtF,CAAA,MAAO;AACH,MAAA,KAAA,CAAM,mBAAA,CAAoB,gBAAA,EAAkB,MAAA,EAAQ,KAAK,CAAA;AAAA,IAC7D;AAAA,EACJ;AACJ;AAZa,2BAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,2BAAA,CAAA","file":"AddInterpolation.instruction.mjs","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreMutation, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddInterpolationInstructionPayload } 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 reactive text node whose content is resolved dynamically from the store. Apply creates the text node with the getter; revert removes it.'\n})\nexport class AddInterpolationInstruction extends AreMutation<AreHtmlAddInterpolationInstructionPayload> {\n\n    constructor(\n        parent: AreDeclaration,\n        props: AreHtmlAddInterpolationInstructionPayload | AreInstructionSerialized<AreHtmlAddInterpolationInstructionPayload>\n    ) {\n        if ('aseid' in props) {\n            super(props as AreInstructionSerialized<AreHtmlAddInterpolationInstructionPayload>);\n        } else {\n            super(AreHTMLInstructions.AddInterpolation, parent, props);\n        }\n    }\n}\n"]}