import{r as t,h as i}from"./p-f8363b1b.js";import{s}from"./p-c78d1e1b.js";import"./p-3775d1fc.js";import"./p-80de33dc.js";import"./p-c2fbed0d.js";import"./p-5717491f.js";import"./p-de14d315.js";const e=class{constructor(i){t(this,i),this.zoom=1,this.resize=!1,this.allowFullscreen=!1,this.disablePositioning=!1}componentDidLoad(){try{this.templateEl.shadowRoot.querySelector(".contract-header").remove(),this.templateEl.shadowRoot.querySelector(".contract-footer").remove()}catch(t){console.log(t)}if(!this.disablePositioning)return;const t=this.templateEl.shadowRoot.querySelector(".render-wrapper");t&&(t.style.position="relative")}render(){var t,e;const r=this.template||(null===(e=null===(t=s.templates)||void 0===t?void 0:t.find)||void 0===e?void 0:e.call(t,(t=>(null==t?void 0:t.id)===this.templateId))),o=this.helpers||(null==s?void 0:s.helpers)||{},l=(this.partials||s.templates||[]).filter((t=>!!(null==t?void 0:t.partial))).map((t=>({html:(null==t?void 0:t.html)||"",id:(null==t?void 0:t.id)||null})));return i("fireenjin-render-template",{ref:t=>this.templateEl=t,disableFrame:!0,template:r,templateId:this.templateId,data:this.data,helpers:o,partials:l,zoom:this.zoom,allowFullscreen:this.allowFullscreen,resize:this.resize,rawHtml:this.rawHtml})}};export{e as floodteam_template}