"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../value/utils/is-motion-value.mjs.js"),t=require("../../animation/keyframes/DOMKeyframesResolver.mjs.js"),s=require("../VisualElement.mjs.js");class r extends s.VisualElement{constructor(){super(...arguments),this.KeyframeResolver=t.DOMKeyframesResolver}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){const s=e.style;return s?s[t]:void 0}removeValueFromRenderState(e,t){let{vars:s,style:r}=t;delete s[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;e.isMotionValue(t)&&(this.childSubscription=t.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}exports.DOMVisualElement=r;
//# sourceMappingURL=DOMVisualElement.mjs.js.map
