import{r as e,h as n,H as i}from"./p-03169580.js";let l=class{constructor(n){e(this,n)}async selectPartial(e,n){if(n)n.preventDefault();document.dispatchEvent(new CustomEvent("fireenjinEditorClick",{detail:{event:n,template:{id:e.id,name:e.name?e.name:e.subject,html:e.html},blockId:this.blockId}}))}render(){return n(i,null,n("ion-header",null,n("ion-toolbar",null,n("ion-title",null,"Select a Template"),n("ion-buttons",{slot:"primary"},n("ion-button",{onClick:e=>document.dispatchEvent(new CustomEvent("fireenjinModalClose",{detail:{event:e}}))},n("ion-icon",{slot:"icon-only",name:"close"}))))),n("ion-content",{class:"ion-padding"},n("ion-grid",null,n("ion-row",null,(this.partials||[]).map((e=>n("ion-col",{size:"12",sizeMd:"6"},n("ion-item",{onClick:n=>this.selectPartial(e,n),detail:"true",href:"#"},n("ion-label",null,n("h2",null,(e===null||e===void 0?void 0:e.name)||(e===null||e===void 0?void 0:e.subject)||"No Name"),n("fireenjin-render-template",{template:{html:(e===null||e===void 0?void 0:e.html)||"",id:"partial"},zoom:.5,partials:this.partials,style:{height:"250px",width:"250px"}}))))))))))}};export{l as fireenjin_modal_component_select};
//# sourceMappingURL=p-07a16ad6.entry.js.map