import{Q as u}from"./QCircularProgress-CYK5xRCJ.js";import{L as b,a as f,j as d,e as a,R as c,f as i,w as p,h as t,t as l,H as x,b as h,z as y,i as g}from"./index-OSKNspXo.js";import{Q as v}from"./QForm-PGP8CIo6.js";import{_ as S}from"./loadingComponent-FlFZMTxk.js";const w={class:"row",style:{flex:"1 1 auto"}},k={class:"row",style:{flex:"0 1 auto"}},j={class:"col-3",style:{display:"flex","align-items":"center","justify-content":"center","padding-bottom":"1rem"}},N={style:{position:"absolute"}},B={class:"col-9",style:{display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},C={style:{width:"100%",display:"flex","justify-content":"start"}},Q={style:{"margin-bottom":"0"}},_={style:{width:"100%",display:"flex","justify-content":"end"}},q={key:0,style:{"font-size":"0.7rem","font-weight":"600","padding-right":"1rem"}},z={style:{height:"100%","padding-right":"1rem","padding-left":"1rem",flex:"1 1 auto"}},L={class:"q-px-md q-py-xs",style:{display:"flex","justify-content":"space-between",flex:"0 1 auto"}},F={name:"deenovaStepperMobile"},P=Object.assign(F,{props:{maxStep:{type:Number},title:{type:String},subTitle:{type:String},currentStep:{type:Number},next:{type:Function},back:{type:Function},disableNext:{type:Boolean},nextLabel:{type:String}},setup(e){b();const n=e;function m(){n.next&&n.next()}const o=f(!1);return(r,s)=>(a(),d("div",w,[c(r.$slots,"header"),i(v,{onSubmit:g(m,["prevent","stop"]),greedy:"",style:{width:"100%",display:"flex","flex-direction":"column","justify-content":"space-between"}},{default:p(()=>[t("div",k,[t("div",j,[i(u,{min:0,max:e.maxStep,class:"primary",value:e.currentStep,size:"75px","font-size":"12px","track-color":"grey-3",color:"primary"},null,8,["max","value"]),t("div",N,l(e.currentStep)+" sur "+l(e.maxStep),1)]),t("div",B,[t("div",C,[t("h6",Q,l(e.title),1)]),t("div",_,[e.subTitle?(a(),d("h5",q,"Suivant : "+l(e.subTitle),1)):x("",!0)])])]),s[0]||(s[0]=t("div",{class:"q-pt-sm",style:{"border-width":"0","border-top-width":"1px!important","border-style":"solid"}},null,-1)),t("div",z,[o.value?(a(),h(S,{key:0})):c(r.$slots,"body",{key:1})]),s[1]||(s[1]=t("div",{style:{"border-width":"0","border-top-width":"1px!important","border-style":"solid"}},null,-1)),t("div",L,[i(y,{onClick:e.back,flat:"",color:"primary",label:"Précédent",class:"q-ml-sm",disable:o.value||!e.back},null,8,["onClick","disable"]),i(y,{type:"submit",color:"primary",label:e.nextLabel?e.nextLabel:"Suivant",disable:o.value||e.disableNext},null,8,["label","disable"])])]),_:3})]))}});export{P as _};
//# sourceMappingURL=deenovaStepperMobile-CIBMJZDl.js.map
