import{r as t,h as o,H as i}from"./p-a89095f5.js";import{s}from"./p-188ef7e9.js";import{g as e}from"./p-29ec504c.js";import{c as l}from"./p-0e4de1d0.js";import"./p-d7f93824.js";import"./p-2a0c7fc9.js";import"./p-86bd3473.js";import"./p-65879f9e.js";import"./p-60cf0cc2.js";const r=class{constructor(o){t(this,o),this.name="template",this.value=void 0,this.jobId=void 0,this.disabled=!1,this.templates=void 0,this.placeholder="Select a Template",this.label="Template",this.labelPosition="stacked",this.interface="popover",this.interfaceOptions=void 0,this.disablePosition=!0,this.disableFrame=!1,this.allowFullscreen=!1,this.resize=!1,this.zoom=1,this.preview=!1}render(){const t=(this.templates||s.templates||[]).map((({subject:t,id:o})=>({label:t,value:o})));return o(i,null,t.length?o("fireenjin-select",{ref:t=>this.templateSelectEl=t,onIonChange:t=>this.value=t.target.value,interface:this.interface,interfaceOptions:this.interfaceOptions,name:this.name,label:this.label,labelPosition:this.labelPosition,placeholder:this.placeholder,value:this.value,options:t},o("ion-button",{slot:"start",fill:"clear",onClick:()=>this.preview=!this.preview},o("ion-icon",{slot:"icon-only",name:this.preview?"eye-off":"eye"})),o("ion-button",{slot:"end",fill:"clear",onClick:()=>this.templateSelectEl.value=null},o("ion-icon",{slot:"icon-only",name:"close-circle"}))):null,this.preview&&this.value&&o("floodteam-template",{templateId:this.value,disablePosition:this.disablePosition,disableFrame:this.disableFrame,allowFullscreen:this.allowFullscreen,zoom:this.zoom||1,resize:this.resize,style:{overflowY:"auto",height:"30vh",display:"block",width:"100%"}}))}};r.style="";const n=class{constructor(o){t(this,o)}render(){const t=e(this);return o(i,{role:"heading","aria-level":"2",class:l(this.color,{"ion-inherit-color":!0,[t]:!0})},o("slot",null))}};n.style={ios:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-text-color, #000);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:28px;font-weight:700;line-height:1.2}",md:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-850, #262626);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:20px;font-weight:500;line-height:1.2}"};export{r as floodteam_select_template,n as ion_card_title}