import{r as e,h as t,g as i}from"./p-3b76effa.js";class a{constructor(t){e(this,t)}componentDidLoad(){this.postRender()}componentDidUpdate(){this.postRender()}postRender(){this.el.querySelector(".field--name-body").innerHTML=this.data.attributes.body?this.data.attributes.body.value:""}parseNode(e){return e.type.split("--"),e}render(){let e;return this.dataJson&&(e=this.data=this.parseNode(JSON.parse(this.dataJson).data)),t("article",{id:"node-"+e.attributes.nid,class:"node node--type-"+e.type.split("--")[1]+" node--view-mode-full clearfix"},t("header",null,t("h2",{class:"title node__title"},e.attributes.title)),t("div",{class:"node__content clearfix"},t("div",{class:"field field--name-body"}),e.attributes.field_iframe&&t("div",{class:"field field--name-iframe"},t("ema-iframe",{src:e.attributes.field_iframe.uri,width:e.attributes.field_width,height:e.attributes.field_height}))))}get el(){return i(this)}static get style(){return":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}ema-drupal-node .node .field{margin-bottom:var(--ema-padding-md,1rem)}"}}export{a as ema_drupal_node};