{"version":3,"sources":["../../../src/instructions/AddStyle.instruction.ts"],"names":[],"mappings":";;;;;AAUO,IAAM,mBAAA,GAAN,cAAkC,WAAA,CAA+C;AAAA,EAEpF,WAAA,CACI,QACA,KAAA,EACF;AACE,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAoE,CAAA;AAAA,IAC9E,CAAA,MAAO;AACH,MAAA,KAAA,CAAM,mBAAA,CAAoB,QAAA,EAAU,MAAA,EAAQ,KAAK,CAAA;AAAA,IACrD;AAAA,EACJ;AACJ;AAZa,mBAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,mBAAA,CAAA","file":"AddStyle.instruction.mjs","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreMutation, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddStyleInstructionPayload } from \"./AreHTML.instructions.types\";\nimport { AreHTMLInstructions } from \"./AreHTML.instructions.constants\";\n\n\n@A_Frame.Define({\n    namespace: 'a-are-html',\n    description: 'Sets an inline CSS style property on an element. Apply sets the property; revert removes it.'\n})\nexport class AddStyleInstruction extends AreMutation<AreHtmlAddStyleInstructionPayload> {\n\n    constructor(\n        parent: AreDeclaration,\n        props: AreHtmlAddStyleInstructionPayload | AreInstructionSerialized<AreHtmlAddStyleInstructionPayload>\n    ) {\n        if ('aseid' in props) {\n            super(props as AreInstructionSerialized<AreHtmlAddStyleInstructionPayload>);\n        } else {\n            super(AreHTMLInstructions.AddStyle, parent, props);\n        }\n    }\n}\n"]}