import{D as J}from"./AppBar-f0458590.js";import{_ as me}from"./CrowdbunkerIcon.vue_vue_type_script_setup_true_lang-0ef29f81.js";import{_ as ve,a as fe,b as _e}from"./XIcon.vue_vue_type_script_setup_true_lang-d7d4f8dd.js";import{_ as U,h as V,J as ge,a5 as K,l as p,X as N,n as S,w as a,q as t,at as Y,a1 as P,af as X,z as n,A as v,y as s,ai as E,ah as A,F as C,T as Z,aP as ee,C as O,g as te,ap as ae,aG as ye,aH as Ve,u as le,M as T,j as F,ax as oe,ay as ie,bH as re,H as se,x as ne,b0 as L,B as I,$ as M,Q as be,R as xe,bI as Se,bJ as Q,D as q,G as we,I as ue,a3 as Ce,aU as $e,aV as De}from"./dashboard-practitioner-dff10904.js";import"./logo-horizontal-dc50b46c.js";import"./AuthMenu-1ef90cfe.js";/* empty css                                                                    */(function(){try{var h=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},u=new Error().stack;u&&(h._sentryDebugIds=h._sentryDebugIds||{},h._sentryDebugIds[u]="3a34f004-3db8-43df-947d-ebe2c2b44ea3",h._sentryDebugIdIdentifier="sentry-dbid-3a34f004-3db8-43df-947d-ebe2c2b44ea3")}catch{}})();const Ne="/assets/logo-horizontal-white-8b555bcf.svg";const ke={class:"footer-description text-start"},Pe={class:"d-flex align-center ga-2 mt-2"},Be={href:"https://www.facebook.com/holitime.org",target:"_blank"},Te={href:"https://x.com/HolitimeOrg",target:"_blank"},Fe={href:"https://t.me/HolitimeOrg",target:"_blank"},Ie={href:"https://crowdbunker.com/@holitime",target:"_blank"},Me={class:"footer-heading"},Oe={class:"py-2"},Re={class:"footer-heading"},Ee={class:"footer-heading"},Ae={class:"footer-copyright"},Le={__name:"HoliFooter",setup(h){const u=V(new Date().getFullYear()),{t:e}=ge(),o=V([{text:e("footer.contact"),link:"Home",hash:"#section-contact"},{text:e("footer.our_cgu"),link:"CGU"},{text:e("footer.privacy"),link:"DataPolicy"}]),f=V([{text:e("footer.you_are_practitionner"),link:"PractitionerPresentation"},{text:e("appBar.our_mission"),link:"Mission"}]),i=V([{text:e("footer.create_an_practitionner_account"),link:"Register",params:[{name:"role",value:"praticien"}]},{text:e("footer.create_an_patient_account"),link:"Register",params:[{name:"role",value:"patient"}]},{text:e("footer.become_ambassador"),link:"Partners"},{text:e("footer.login"),link:"Login"}]);return(_,c)=>{const w=K("router-link");return p(),N("footer",null,[_.$route.path.includes("dashboard")?O("",!0):(p(),S(ee,{key:0,class:"footer-container"},{default:a(()=>[t(Y,{class:"py-md-5 py-2"},{default:a(()=>[t(P,{cols:"12",md:"3",class:""},{default:a(()=>[t(w,{to:{name:"Home"}},{default:a(()=>[t(X,{src:Ne,width:"175","justify-md":"start",alt:"Holitime Logo",class:"footer-logo mb-0 mb-md-3"})]),_:1}),n("p",ke,v(s(e)("footer.baseline")),1),n("div",Pe,[n("a",Be,[t(ve,{size:"24",color:"white"})]),n("a",Te,[t(fe,{size:"24",color:"white"})]),n("a",Fe,[t(_e,{size:"24",style:{position:"relative",top:"0px",left:"-1px"},color:"white"})]),n("a",Ie,[t(me,{size:"24",style:{position:"relative",top:"0px",left:"-1px"},color:"white"})])])]),_:1}),t(P,{cols:"12",md:"3"},{default:a(()=>[n("h4",Me,v(s(e)("footer.generale_info")),1),(p(!0),N(E,null,A(o.value,d=>(p(),N("div",Oe,[t(w,{class:"footer-link",to:{name:d.link,hash:d.hash}},{default:a(()=>[C(v(d.text),1)]),_:2},1032,["to"])]))),256))]),_:1}),t(P,{cols:"12",md:"3"},{default:a(()=>[n("h4",Re,v(s(e)("footer.account")),1),(p(!0),N(E,null,A(i.value,d=>(p(),N("div",{class:"py-2",key:d.text},[t(w,{class:"footer-link",to:{name:d.link,hash:d.hash,query:d.params?d.params.reduce((B,k)=>(B[k.name]=k.value,B),{}):{}}},{default:a(()=>[C(v(d.text),1)]),_:2},1032,["to"])]))),128))]),_:1}),t(P,{cols:"12",md:"3"},{default:a(()=>[n("h4",Ee,v(s(e)("footer.holitime")),1),(p(!0),N(E,null,A(f.value,d=>(p(),N("div",{class:"py-2",key:d.text},[t(w,{class:"footer-link",to:{name:d.link,hash:d.hash}},{default:a(()=>[C(v(d.text),1)]),_:2},1032,["to"])]))),128))]),_:1})]),_:1}),t(Z,{color:"#EAFFFA"}),t(Y,{class:"py-3"},{default:a(()=>[t(P,{class:"text-center"},{default:a(()=>[n("p",Ae,v(s(e)("footer.copyright",{value:u.value})),1)]),_:1})]),_:1})]),_:1}))])}}},qe=U(Le,[["__scopeId","data-v-a31e5bce"]]);const Ue=te({__name:"PreFooter",setup(h){const u=ae();return(e,o)=>(p(),S(ee,{class:"prefooter-container m-0 p-0",fluid:""},{default:a(()=>[O("",!0)]),_:1}))}});const He=U(Ue,[["__scopeId","data-v-71d348f0"]]),ze="/assets/On y est presque-acdfe077.jpg";const je=h=>(ye("data-v-fde33bc8"),h=h(),Ve(),h),Ge={class:"headline text-uppercase"};const We=je(()=>n("div",{class:"text-center mb-2"}," Les pré-inscriptions rouvriront bientôt. Merci de votre patience. ",-1)),Je={__name:"PreSignupDialog",props:{modelValue:{type:Boolean,default:!1}},setup(h){const{mobile:u}=le(),e=V({email:"",profilType:"",countryCode:"FR",postalCode:"",disciplines:[],monthsPreSubscribed:4,otherDiscipline:"",numberOfPaymentMonths:1}),o=V(1),f=V({}),i=V([]),_=V(!1),c=V(!1),w=[l=>!!l||"L'e-mail est requis",l=>/.+@.+/.test(l)||"L'e-mail doit être valide"],d=[l=>!!l||"Ce champ est requis"],B=[l=>o.value!==2||!!l||"Ce champ est requis"],k=[l=>o.value!==2||!!e.value.otherDiscipline||!!l&&l.length||"Ce champ est requis"],H=[{title:"France",value:"FR"},{title:"Belgique",value:"BE"},{title:"Suisse",value:"CH"},{title:"Luxembourg",value:"LU"},{title:"Canada",value:"CA"},{title:"Autre",value:"other"}],z=[{title:"Acupuncteur",value:"acupuncturist"},{title:"Aqua fitness",value:"water-fitness"},{title:"Aquaforme",value:"water-aerobics"},{title:"Aromathérapeute",value:"aromatherapist"},{title:"Art-thérapeute",value:"art-therapist"},{title:"Astrologue",value:"astrologer"},{title:"Auriculothérapeute",value:"auriculotherapist"},{title:"Autres ➕",value:"other"},{title:"Biofeedback",value:"biofeedback"},{title:"Biorésonance",value:"bioresonance"},{title:"Body Attack",value:"body-attack"},{title:"Body Balance",value:"body-balance"},{title:"Chiropracteur",value:"chiropractor"},{title:"Clown thérapeute",value:"clown-therapy"},{title:"Coach de vie",value:"life-coach"},{title:"Coach en développement personnel",value:"personal-development-coach"},{title:"Coach sportif",value:"sports-coach"},{title:"Conseiller en fleurs de Bach",value:"bach-flower-therapist"},{title:"Conseiller en hygiène vitale",value:"vital-hygiene-advisor"},{title:"Constellation familiale",value:"family-constellation"},{title:"Danse",value:"dance"},{title:"Diététicien",value:"dietician"},{title:"Doula",value:"doula"},{title:"Énergéticien",value:"energy-healer"},{title:"Équithérapeute",value:"equitherapy"},{title:"Étiopathe",value:"ethiopath"},{title:"Fasciathérapie",value:"fasciatherapy"},{title:"Feng Shui",value:"feng-shui"},{title:"Fitness",value:"fitness"},{title:"Gemmothérapie",value:"gemmotherapy"},{title:"Gestalt-thérapeute",value:"gestalt-therapy"},{title:"Gynécologie",value:"gynecology"},{title:"Géobiologue",value:"geobiologist"},{title:"Haptonomie",value:"haptonomy"},{title:"Homéopathie",value:"homeopathy"},{title:"Hydrothérapeute",value:"hydrotherapist"},{title:"Hydrothérapeute du côlon",value:"colon-hydrotherapist"},{title:"Hypnothérapeute",value:"hypnotherapist"},{title:"Instructeur de méditation",value:"meditation-instructor"},{title:"Instructeur de pilates",value:"pilates"},{title:"Instructeur de yoga",value:"yoga-instructor"},{title:"Instructeur de yoga du rire",value:"laughter-yoga-instructor"},{title:"Iridologue",value:"iridologist"},{title:"Kinésiologue",value:"kinesiologist"},{title:"Lithothérapeute",value:"lithotherapist"},{title:"Logothérapeute",value:"logotherapy"},{title:"Magnétiseur",value:"magnetotherapist"},{title:"Massothérapeute",value:"massage-therapist"},{title:"Microkinésithérapeute",value:"microkinesitherapist"},{title:"Médecin",value:"medical-doctor"},{title:"Médecine intégrative",value:"integrative-medicine"},{title:"Méthode TRE",value:"tre-method"},{title:"Naturopathe",value:"naturopath"},{title:"Neuroscience",value:"neuroscience"},{title:"Nutritionniste",value:"nutritionist"},{title:"Ostéopathe",value:"osteopath"},{title:"Physiothérapeute",value:"physiotherapist"},{title:"Phytothérapeute",value:"herbalist"},{title:"Praticien en PNL (Programmation Neuro-Linguistique)",value:"nlp-practitioner"},{title:"Praticien en massage Amma",value:"amma-massage-practitioner"},{title:"Praticien en médecine ayurvédique",value:"ayurvedic-practitioner"},{title:"Praticien en médecine traditionnelle chinoise",value:"traditional-chinese-medicine-practitioner"},{title:"Praticien en reiki",value:"reiki-practitioner"},{title:"Praticien en shiatsu",value:"shiatsu-practitioner"},{title:"Praticien en sophrologie",value:"sophrologist"},{title:"Psychiatrie",value:"psychiatry"},{title:"Psychogénéalogie",value:"psychogenealogy"},{title:"Psychothérapeute",value:"psychotherapist"},{title:"Qi Gong",value:"qi-gong"},{title:"RPM",value:"rpm"},{title:"Running",value:"running"},{title:"Réflexologue",value:"reflexologist"},{title:"Sage-femme",value:"midwife"},{title:"Sauna",value:"sauna"},{title:"Spa",value:"spa"},{title:"Sylvotherapie",value:"sylvotherapy"},{title:"Tantra",value:"tantra"},{title:"Tarot & Oracle",value:"tarot-oracle"},{title:"Thérapeute EMDR",value:"emdr"},{title:"Thérapeute en EFT (Emotional Freedom Techniques)",value:"eft-therapist"},{title:"Thérapeute en respiration",value:"breathwork"},{title:"Thérapeute en thérapie cognitivo-comportementale",value:"cognitive-behavioral-therapist"},{title:"Thérapeute en thérapie cranio-sacrale",value:"craniosacral-therapy"},{title:"Thérapeute en ventouses",value:"cupping-therapy"},{title:"Thérapeute familiale",value:"family-therapist"},{title:"Thérapeute psycho-corporel",value:"psycho-corporal-therapy"},{title:"Thérapie de la renaissance",value:"rebirth-therapy"},{title:"Thérapie familiale systémique",value:"systemic-family-therapy"},{title:"Thérapie sexuelle",value:"sex-therapy"},{title:"Thérapie somato-émotionnelle",value:"somato-emotional-therapy"},{title:"Thérapie sonore",value:"sound-therapy"},{title:"XCore",value:"xcore"},{title:"Zoothérapie",value:"zootherapy"}];T(()=>e.value.disciplines,l=>{(l.includes("other")||e.value.otherDiscipline!=="")&&(c.value=!0)});const j=F(()=>e.value.monthsPreSubscribed>12?25:33),m=F(()=>e.value.monthsPreSubscribed>12?"25 €":"33 €"),b=F(()=>e.value.monthsPreSubscribed);T(()=>e.value.monthsPreSubscribed,l=>{l<3?e.value.numberOfPaymentMonths=1:l===3&&e.value.numberOfPaymentMonths===4&&(e.value.numberOfPaymentMonths=3)});const g=async l=>{!(await l).valid||!await $()||(o.value===1&&e.value.email&&e.value.profilType?(setTimeout(()=>{o.value++},10),e.value.profilType==="practitioner"&&(c.value=!0)):o.value===2&&e.value.countryCode&&e.value.postalCode?e.value.profilType==="practitioner"?(e.value.disciplines.length||e.value.otherDiscipline)&&o.value++:o.value=4:o.value===3&&o.value++)},$=async()=>{i.value=[],f.value={},_.value=!0;const l={...e.value,referrerSlug:W.value};e.value.countryCode==="other"&&(l.countryCode=null);let y;try{y=await fetch("https://api.holitime.org/pre-signup/",{method:"POST",body:JSON.stringify(l),headers:{"Content-Type":"application/json"}})}catch{i.value.push("Une erreur est survenue. Veuillez réessayer plus tard.")}finally{_.value=!1}if(!y.ok){if(y.status===422){const x=(await y.json()).violations;for(const D of x)Object.hasOwn(e.value,D.propertyPath)||i.value.push(`${D.propertyPath}: ${D.title}`),f.value[D.propertyPath]=D.title}return!1}return o.value===3?!!await pe():!0},{stripe:G,stripeError:ce,stripeCard:R,stripeCardExpiry:tt,stripeCardCvc:at,initStripe:de}=oe(ie()),pe=async()=>{if(ce.value.length)return;if(!R.value._complete){i.value.push("Veuillez remplir les champs de la carte bancaire.");return}_.value=!0;const l=e.value.monthsPreSubscribed*25+".00";await G.value.createPaymentMethod({type:"card",card:R.value,billing_details:{email:e.value.email}}).then(y=>{y.error?(i.value.push(y.error.message),_.value=!1):he({paymentMethodId:y.paymentMethod.id,finalAmount:l})}).catch(()=>{_.value=!1})},W=re("ref-slug",null),he=({paymentMethodId:l,finalAmount:y})=>{let r="https://api.holitime.org/payment/create-payment-intent";e.value.numberOfPaymentMonths>1&&(r="https://api.holitime.org/payment/create-spread-payment"),fetch(r,{method:"POST",body:JSON.stringify({paymentMethodId:l,finalAmount:y,monthsPreSubscribed:e.value.monthsPreSubscribed,email:e.value.email,referrerSlug:W.value,numberOfPaymentMonths:e.value.numberOfPaymentMonths}),headers:{"Content-Type":"application/json"}}).then(x=>x.json()).then(x=>{if(x.error)return i.value.push(x.error),!0;if(x.status==="succeeded")return o.value=4,!0;G.value.confirmCardPayment(x.clientSecret,{payment_method:{card:R.value,billing_details:{email:e.value.email}}}).then(D=>{_.value=!1,D.error?i.value.push(D.error.message):o.value=4})}).then(x=>{x&&(_.value=!1)}).catch(()=>{_.value=!1,i.value.push("Une erreur est survenue. Veuillez réessayer plus tard.")})},lt=l=>{setTimeout(()=>{l.focus()},10)};T(o,l=>{l===3&&de()});const ot=()=>{[1,4].includes(o.value)||o.value--};return(l,y)=>(p(),S(ue,{"max-width":"400px",fullscreen:s(u),transition:"dialog-top-transition",persistent:"","model-value":h.modelValue},{default:a(()=>[t(se,null,{default:a(()=>[t(ne,{class:"bg-primary d-flex align-center"},{default:a(()=>[n("span",Ge,v(l.$t("preSignupDialog.title")),1),t(L),t(I,{icon:"",variant:"text",color:"white",onClick:y[0]||(y[0]=r=>l.$emit("close"))},{default:a(()=>[t(M,null,{default:a(()=>[C("mdi-close")]),_:1})]),_:1})]),_:1}),(p(),S(q,{key:1},{default:a(()=>[We,t(X,{src:ze,class:"mx-auto rounded-lg"})]),_:1}))]),_:1})]),_:1},8,["fullscreen","model-value"]))}},Ye=U(Je,[["__scopeId","data-v-fde33bc8"]]),Qe={class:"headline text-uppercase"},Ke={class:"text-caption"},Xe={class:"font-weight-bold"},Ze={class:"text-center mt-3 font-weight-medium"},et={__name:"DonationDialog",props:{modelValue:{type:Boolean,default:!1}},setup(h){const u=h,{mobile:e}=le(),o=V({email:"",amount:10}),f=V(!1),i=V(1),{stripe:_,stripeError:c,stripeCard:w,stripeCardExpiry:d,stripeCardCvc:B,initStripe:k}=oe(ie()),H=async m=>{if(c.value="",!(await m).valid||c.value.length)return;if(!w.value._complete){c.value="Veuillez remplir les champs de la carte bancaire.";return}f.value=!0;const g=o.value.amount+"00";await _.value.createPaymentMethod({type:"card",card:w.value,billing_details:{email:o.value.email}}).then($=>{$.error?(c.value=$.error.message,f.value=!1):j({paymentMethodId:$.paymentMethod.id,finalAmount:g})}).catch(()=>{f.value=!1})},z=re("ref-slug",null),j=({paymentMethodId:m,finalAmount:b})=>{fetch("https://api.holitime.org/payment/create-payment-intent",{method:"POST",body:JSON.stringify({paymentMethodId:m,amount:b,email:o.value.email,referrerSlug:z.value}),headers:{"Content-Type":"application/json"}}).then(g=>g.json()).then(g=>{if(g.error)return c.value=g.error,!0;if(g.status==="succeeded")return i.value=2,!0;_.value.confirmCardPayment(g.clientSecret,{payment_method:{card:w.value,billing_details:{email:o.value.email}}}).then($=>{f.value=!1,$.error?c.value=$.error:i.value=2})}).then(g=>{g&&(f.value=!1)}).catch(()=>{f.value=!1,c.value="Une erreur est survenue. Veuillez réessayer plus tard."})};return T(()=>u.modelValue,m=>{m&&k()}),(m,b)=>(p(),S(ue,{"max-width":"400px",fullscreen:s(e),transition:"dialog-top-transition",persistent:"","model-value":h.modelValue},{default:a(()=>[t(se,null,{default:a(()=>[t(ne,{class:"bg-primary d-flex align-center"},{default:a(()=>[n("span",Qe,v(m.$t("donationDialog.title")),1),t(L),t(I,{icon:"",variant:"text",color:"white",onClick:b[0]||(b[0]=g=>m.$emit("close"))},{default:a(()=>[t(M,null,{default:a(()=>[C("mdi-close")]),_:1})]),_:1})]),_:1}),t(be,{"validate-on":"blur",onSubmit:xe(H,["prevent"])},{default:a(()=>[t(Se,{modelValue:i.value,"onUpdate:modelValue":b[1]||(b[1]=g=>i.value=g),disabled:""},{default:a(()=>[t(Q,{value:1},{default:a(()=>[t(q,null,{default:a(()=>[n("div",Ke,[t(M,{size:"14px",class:"mr-1"},{default:a(()=>[C("mdi-lock")]),_:1}),n("span",Xe,v(m.$t("donationDialog.securityNote")),1)])]),_:1})]),_:1}),t(Q,{value:2},{default:a(()=>[t(q,{class:"text-primary pt-3 d-flex flex-column align-center"},{default:a(()=>[t(M,{size:"50px",color:"secondary"},{default:a(()=>[C("mdi-heart-circle")]),_:1}),n("div",Ze,[n("p",null,v(m.$t("donationDialog.thankYouTitle")),1),n("p",null,v(m.$t("donationDialog.thankYouMessage")),1)])]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(Z),t(we,null,{default:a(()=>[t(L),t(I,{text:"",onClick:b[2]||(b[2]=g=>m.$emit("close"))},{default:a(()=>[C(v(i.value===1?m.$t("donationDialog.cancelButton"):m.$t("donationDialog.closeButton")),1)]),_:1}),i.value===1?(p(),S(I,{key:0,color:"secondary",loading:f.value,type:"submit",text:""},{default:a(()=>[C(v(m.$t("donationDialog.donateButton"))+" "+v(o.value.amount)+" € ",1)]),_:1},8,["loading"])):O("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["fullscreen","model-value"]))}},wt=te({__name:"Default",setup(h){const u=ae(),e=Ce(),o=F(()=>{const f=["Home","PractitionerPresentation"];return u.name&&f.includes(u.name)});return(f,i)=>{const _=K("router-view");return p(),S(De,null,{default:a(()=>[o.value?(p(),S(J,{key:0,flat:"",color:"transparent","scroll-behavior":"fade-image inverted",image:"https://via.placeholder.com/10x10/FFFFFF/FFFFFF"})):(p(),S(J,{key:1})),t($e,null,{default:a(()=>[t(_)]),_:1}),s(u).name!=="ScheduleAppointment"&&s(u).name!=="CGU"&&s(u).name!=="DataPolicy"&&s(u).name!=="PractitionerPresentation"&&s(u).name!=="Mission"?(p(),S(He,{key:2})):O("",!0),t(qe),t(Ye,{onClose:i[0]||(i[0]=c=>s(e).preSignupDialogOpen=!1),modelValue:s(e).preSignupDialogOpen,"onUpdate:modelValue":i[1]||(i[1]=c=>s(e).preSignupDialogOpen=c)},null,8,["modelValue"]),t(et,{onClose:i[2]||(i[2]=c=>s(e).donationDialogOpen=!1),modelValue:s(e).donationDialogOpen,"onUpdate:modelValue":i[3]||(i[3]=c=>s(e).donationDialogOpen=c)},null,8,["modelValue"])]),_:1})}}});export{wt as default};
//# sourceMappingURL=Default-21d17485.js.map