import{r as t,e as i,h as s}from"./p-a89095f5.js";import{s as o}from"./p-9e8ba117.js";import"./p-d7f93824.js";import"./p-2a0c7fc9.js";import"./p-86bd3473.js";import"./p-65879f9e.js";import"./p-60cf0cc2.js";const e=class{constructor(s){t(this,s),this.floodteamCloseModal=i(this,"floodteamCloseModal",7),this.formData=void 0,this.successIcon="checkmark-circle",this.headerTitle="flow",this.flowId=void 0,this.renderId=void 0,this.fetch=void 0,this.stepInput={},this.endpoint=void 0,this.isLoading=!0,this.locationId=void 0,this.materialId=void 0,this.successMessage=void 0,this.beforeSubmit=void 0,this.successTemplate=void 0,this.errorTemplate=void 0,this.showProgress=!0,this.currentPath=void 0,this.currentStep=void 0,this.showCard=!1}toggleCard(){this.showCard=!this.showCard}render(){var t;const i=(null===(t=this.formData)||void 0===t?void 0:t.materialId)||null;return[s("ion-header",null,s("ion-toolbar",null,s("ion-title",null,this.headerTitle),s("ion-buttons",{slot:"end"},s("ion-button",{title:"toggle the background",onClick:()=>this.toggleCard()},s("ion-icon",{slot:"icon-only",name:"browsers"})),s("ion-button",{onClick:()=>this.floodteamCloseModal.emit()},s("ion-icon",{slot:"icon-only",name:"close-circle-outline"}))))),s("ion-content",null,this.showCard?s("ion-card",null,s("floodteam-flow-rider",{formData:this.formData,renderId:this.renderId,fetch:this.fetch,stepInput:{dotConfirm:{materialId:i,material:o.materials||[].find((t=>t.id===i))}},endpoint:this.endpoint,isLoading:this.isLoading,successMessage:this.successMessage,beforeSubmit:this.beforeSubmit,successTemplate:this.successTemplate,errorTemplate:this.errorTemplate,showProgress:this.showProgress,currentPath:this.currentPath,currentStep:this.currentStep,flowId:this.flowId,templates:null==o?void 0:o.templates,successIcon:this.successIcon,materialId:this.materialId})):s("floodteam-flow-rider",{formData:this.formData,renderId:this.renderId,fetch:this.fetch,stepInput:{dotConfirm:{materialId:i,material:o.materials||[].find((t=>t.id===i))}},endpoint:this.endpoint,isLoading:this.isLoading,successMessage:this.successMessage,beforeSubmit:this.beforeSubmit,successTemplate:this.successTemplate,errorTemplate:this.errorTemplate,showProgress:this.showProgress,currentPath:this.currentPath,currentStep:this.currentStep,flowId:this.flowId,templates:null==o?void 0:o.templates,successIcon:this.successIcon,materialId:this.materialId}))]}};e.style="";export{e as modal_flow_rider}