{"version":3,"sources":["../../../src/instructions/AddAttribute.instruction.ts"],"names":[],"mappings":";;;;;AAUO,IAAM,uBAAA,GAAN,cAAsC,WAAA,CAAmD;AAAA,EAI5F,WAAA,CACI,QACA,KAAA,EAAgH;AAChH,IAAA,IAAI,WAAW,KAAA,EAAO;AAClB,MAAA,KAAA,CAAM,KAAwE,CAAA;AAAA,IAClF,CAAA,MAAO;AACH,MAAA,KAAA,CAAM,mBAAA,CAAoB,YAAA,EAAc,MAAA,EAAQ,KAAK,CAAA;AAAA,IACzD;AAAA,EACJ;AACJ;AAba,uBAAA,GAAN,eAAA,CAAA;AAAA,EAJN,QAAQ,MAAA,CAAO;AAAA,IACZ,SAAA,EAAW,YAAA;AAAA,IACX,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,uBAAA,CAAA","file":"AddAttribute.instruction.mjs","sourcesContent":["import { A_Frame } from \"@adaas/a-frame/core\"\nimport { AreDeclaration, AreMutation, AreInstructionSerialized } from \"@adaas/are\";\nimport { AreHtmlAddAttributeInstructionPayload } 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 attribute on an HTML element. Apply calls setAttribute; revert calls removeAttribute.'\n})\nexport class AddAttributeInstruction extends AreMutation<AreHtmlAddAttributeInstructionPayload> {\n\n    cache?: string;\n\n    constructor(\n        parent: AreDeclaration,\n        props: AreHtmlAddAttributeInstructionPayload | AreInstructionSerialized<AreHtmlAddAttributeInstructionPayload>) {\n        if ('aseid' in props) {\n            super(props as AreInstructionSerialized<AreHtmlAddAttributeInstructionPayload>);\n        } else {\n            super(AreHTMLInstructions.AddAttribute, parent, props);\n        }\n    }\n}\n"]}