2 lines
689 B
JavaScript
2 lines
689 B
JavaScript
import{t as s,dk as y,x as m,l as p,z as f,D as c,E as b}from"./index-CEmnTf-r.js";var v=function(t){s(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.renderBody=function(){var n=this.props,r=n.body,a=n.render;return r?a("body",r):null},e.prototype.render=function(){var n=this.props,r=n.tag,a=n.props,d=n.data,i=n.style,l=y(a,function(o){return typeof o=="string"&&m(o,d,"| raw")||o}),u=r||"div";return p.createElement(u,f({},l,{style:i}),this.renderBody())},e}(p.Component),g=function(t){s(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e=c([b({type:"web-component"})],e),e}(v);export{g as WebComponentRenderer,v as default};
|