import{D as J}from"./AppBar-c7d73829.js";import{g as q,l as u,X as k,z as l,_ as H,h as C,J as me,a5 as K,n as x,w as a,q as t,at as Q,a1 as P,af as X,A as f,y as h,ai as O,ah as R,F as $,T as ee,aP as te,C as L,ap as ae,aG as fe,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 E,B as M,$ as I,Q as _e,R as ge,bI as ye,bJ as Y,D as A,G as Ce,I as ue,a3 as Ve,aU as be,aV as xe}from"./dashboard-practitioner-6249e5a1.js";import{_ as we,a as $e,b as Se}from"./XIcon.vue_vue_type_script_setup_true_lang-a4e22626.js";import"./logo-horizontal-dc50b46c.js";import"./AuthMenu-8e2d7fce.js";import"./VSecondaryBtn-d3711f0c.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[c]="b79107c0-9912-4a4f-b672-6f00d1907ba6",o._sentryDebugIdIdentifier="sentry-dbid-b79107c0-9912-4a4f-b672-6f00d1907ba6")}catch{}})();const De="/assets/logo-horizontal-white-8b555bcf.svg",ke=["width","height"],Ne={id:"svg_15"},Pe=["fill"],Be=["fill"],Te=["fill"],Fe=["fill"],Me=["fill"],Ie=["fill"],Le=["fill"],ze=["fill"],Oe=["fill"],Re=["fill"],Ee=["fill"],Ae=["fill"],qe=["fill"],He=["fill"],Ue=q({__name:"CrowdbunkerIcon",props:{color:{type:String,default:"#fff"},bgColor:{type:String,default:"transparent"},size:{type:String,default:"22"}},setup(o){return(c,e)=>(u(),k("svg",{width:o.size,height:o.size,viewBox:"0 0 500 500",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","xml:space":"preserve","xmlns:serif":"http://www.serif.com/",style:{"fill-rule":"evenodd","clip-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2"}},[l("g",null,[l("g",Ne,[l("path",{id:"svg_1",d:"M257.23,5.19C259.36,6.26 261.76,6.18 264.02,6.7C291.76,13.13 310.9,38.55 309.3,66.95C307.7,95.3 285.71,118.51 257.48,121.62C226.16,125.08 197.9,103.46 193.12,72.4C188.16,40.12 211.05,9.8 243.48,5.72C243.92,5.67 244.4,5.74 244.61,5.19C248.82,5.2 253.03,5.2 257.23,5.2L257.23,5.19Z",style:{"fill-rule":"nonzero"},fill:o.color},null,8,Pe),l("path",{id:"svg_2",d:"M250.87,237.3L165.27,237.3C155.99,237.3 149.65,230.99 149.69,221.71C149.84,195.06 158.68,171.87 177.43,152.72C183.29,146.73 190.19,142.11 197.64,138.28C199.47,137.34 200.87,137.31 202.64,138.5C216.59,147.81 232.02,152.71 248.75,153C266.71,153.31 283.46,148.91 298.54,138.92C300.74,137.47 302.45,137.32 304.78,138.55C326.85,150.12 340.32,168.6 347.74,191.93C350.85,201.73 352.35,211.79 352.22,222.1C352.12,230.79 345.68,237.31 336.99,237.31L250.85,237.31L250.87,237.3Z",style:{"fill-rule":"nonzero"},fill:o.color},null,8,Be),l("path",{id:"svg_3",d:"M62.14,265.65C80.34,265.65 98.53,265.69 116.73,265.6C118.9,265.59 119.63,265.99 119.7,268.36C120.59,295.61 123.54,322.65 128.8,349.41C129.19,351.41 128.93,352.05 126.68,352.05C93.86,351.98 61.03,351.98 28.21,352.04C26.46,352.04 25.69,351.46 25,349.91C15.32,327.86 8.95,304.9 6.1,280.98C5.59,276.71 5.34,272.43 4.81,268.17C4.54,266.05 5.26,265.6 7.29,265.61C25.56,265.69 43.84,265.65 62.13,265.65L62.14,265.65Z",style:{"fill-rule":"nonzero"},fill:o.color},null,8,Te),l("path",{id:"svg_4",d:"M370.44,351.76C371.68,344.7 373.05,337.64 374.14,330.54C377.33,309.84 379.18,289.02 379.95,268.09C380.03,265.94 380.75,265.62 382.67,265.62C419.15,265.67 455.63,265.67 492.11,265.63C493.95,265.63 494.91,265.73 494.73,268.08C493.07,289.85 488.82,311.08 481.64,331.7C479.42,338.06 476.95,344.33 474.22,350.5C473.75,351.56 473.3,352.03 472.07,352.03C438.43,351.99 404.77,351.98 371.13,351.96C370.95,351.97 370.78,351.87 370.44,351.76Z",style:{"fill-rule":"nonzero"},fill:o.color},null,8,Fe),l("path",{id:"svg_5",d:"M308.55,265.69C322.08,265.69 335.6,265.74 349.13,265.64C351.3,265.62 351.87,266.18 351.79,268.37C350.75,295.71 347.42,322.77 341.98,349.59C341.61,351.43 341.05,352.09 339.03,352.08C315.18,352 291.32,352.01 267.48,352.06C265.58,352.06 264.82,351.81 264.83,349.6C264.92,322.46 264.91,295.32 264.84,268.18C264.83,266.07 265.43,265.63 267.44,265.65C281.13,265.74 294.84,265.7 308.56,265.7L308.55,265.69Z",style:{"fill-rule":"nonzero"},fill:o.color},null,8,Me),l("path",{id:"svg_6",d:"M193.31,265.69C206.85,265.69 220.37,265.74 233.91,265.64C236.08,265.62 236.63,266.22 236.63,268.37C236.56,295.34 236.55,322.32 236.64,349.28C236.65,351.66 235.92,352.07 233.72,352.07C210.14,351.99 186.54,352 162.96,352.06C160.88,352.07 160.03,351.58 159.58,349.35C154.21,322.88 151.03,296.15 149.84,269.18C149.68,265.68 149.67,265.68 153.27,265.68L193.32,265.68L193.31,265.69Z",style:{"fill-rule":"nonzero"},fill:o.color},null,8,Ie),l("path",{id:"svg_7",d:"M5.41,237.23C5.37,232.11 5.33,226.98 5.28,221.87C7.07,199.98 16.3,181.88 32.9,167.52C34.12,166.46 34.98,166.33 36.38,167.28C61.47,184.43 92.65,184.37 118.07,167.11C119.12,166.4 119.77,166.1 120.84,167.09C122.71,168.82 124.73,170.39 126.73,171.99C127.75,172.8 127.82,173.6 127.39,174.83C120.6,194.39 119.1,214.57 120.46,235.07C120.56,236.55 120.58,237.35 118.63,237.34C80.9,237.25 43.15,237.25 5.41,237.23Z",style:{"fill-rule":"nonzero"},fill:o.color},null,8,Le),l("path",{id:"svg_8",d:"M496.01,221.86C495.97,226.98 495.93,232.11 495.88,237.22C486.56,237.24 477.24,237.28 467.92,237.28C439.69,237.29 411.44,237.26 383.21,237.33C381.15,237.33 380.69,236.9 380.82,234.78C382.17,214.57 380.72,194.65 374.05,175.34C373.49,173.72 373.51,172.57 374.95,171.59C375.02,171.54 375.07,171.46 375.15,171.4C377.13,169.79 378.89,167.57 381.16,166.74C383.62,165.84 385.28,168.71 387.29,169.86C406.14,180.74 425.95,182.88 446.66,176.45C453.04,174.47 459.05,171.53 464.46,167.55C466.24,166.25 467.24,166.45 468.82,167.82C485.16,182.2 494.26,200.17 496.02,221.84L496.01,221.86Z",style:{"fill-rule":"nonzero"},fill:o.color},null,8,ze),l("path",{id:"svg_9",d:"M314.99,488.66C334.56,462.76 346.84,434.02 356.65,404.07C358.98,396.97 361.02,389.78 363.11,382.6C363.55,381.12 364.02,380.3 365.83,380.3C396,380.36 426.15,380.34 456.32,380.35C456.59,380.35 456.86,380.43 457.74,380.58C423.02,433.65 376.61,470.62 315,488.66L314.99,488.66Z",style:{"fill-rule":"nonzero"},fill:o.color},null,8,Oe),l("path",{id:"svg_10",d:"M42.7,380.35L46.17,380.35C75.43,380.35 104.69,380.38 133.96,380.29C136.4,380.28 137.13,381.12 137.74,383.32C146.4,414.45 157.45,444.62 174.36,472.35C177.66,477.77 181.31,482.96 185.01,488.19C124,470.55 77.63,433.65 42.71,380.35L42.7,380.35Z",style:{"fill-rule":"nonzero"},fill:o.color},null,8,Re),l("path",{id:"svg_11",d:"M77.05,63.35C101.05,63.38 120.61,82.97 120.6,106.98C120.6,131.09 100.93,150.67 76.76,150.6C52.8,150.53 33.3,130.87 33.35,106.84C33.41,82.85 53.04,63.33 77.05,63.36L77.05,63.35Z",style:{"fill-rule":"nonzero"},fill:o.color},null,8,Ee),l("path",{id:"svg_12",d:"M380.14,106.97C380.14,82.96 399.7,63.37 423.7,63.35C447.82,63.32 467.44,82.98 467.39,107.11C467.33,131.1 447.72,150.61 423.69,150.58C399.7,150.56 380.14,130.97 380.14,106.96L380.14,106.97Z",style:{"fill-rule":"nonzero"},fill:o.color},null,8,Ae),l("path",{id:"svg_13",d:"M264.88,493.81L264.88,490.77C264.88,454.94 264.9,419.1 264.83,383.27C264.82,380.89 265.35,380.25 267.8,380.26C289.01,380.36 310.21,380.31 331.42,380.34C332.58,380.34 334.33,379.6 333.55,382.26C326.12,407.76 316.86,432.5 303.03,455.32C295.56,467.64 286.96,479.06 275.32,487.84C272.21,490.18 268.81,492.1 264.88,493.81Z",style:{"fill-rule":"nonzero"},fill:o.color},null,8,qe),l("path",{id:"svg_14",d:"M236.57,437.31L236.57,490.25C236.57,494.06 236.57,494.05 233.13,492.19C221.49,485.91 212.92,476.38 205.41,465.8C190.25,444.44 180.36,420.55 172.24,395.84C170.87,391.68 169.63,387.47 168.39,383.27C167.52,380.32 167.55,380.31 170.79,380.31L224.82,380.31C227.84,380.31 230.86,380.46 233.87,380.26C236.05,380.13 236.61,380.84 236.6,382.99C236.53,401.1 236.56,419.21 236.56,437.31L236.57,437.31Z",style:{"fill-rule":"nonzero"},fill:o.color},null,8,He)])])],8,ke))}});const je={class:"footer-description text-start"},Ze={class:"d-flex align-center ga-2 mt-2"},Ge={href:"https://www.facebook.com/holitime.org",target:"_blank"},We={href:"https://x.com/HolitimeOrg",target:"_blank"},Je={href:"https://t.me/HolitimeOrg",target:"_blank"},Qe={href:"https://crowdbunker.com/@holitime",target:"_blank"},Ye={class:"footer-heading"},Ke={class:"py-2"},Xe={class:"footer-heading"},et={class:"footer-heading"},tt={class:"footer-copyright"},at={__name:"HoliFooter",setup(o){const c=C(new Date().getFullYear()),{t:e}=me(),r=C([{text:e("footer.contact"),link:"Home",hash:"#section-contact"},{text:e("footer.our_cgu"),link:"CGU"},{text:e("footer.privacy"),link:"DataPolicy"}]),v=C([{text:e("footer.you_are_practitionner"),link:"PractitionerPresentation"},{text:e("footer.patient_features"),link:"Home",hash:"#section-features-patient"},{text:e("footer.practitionner_features"),link:"Home",hash:"#section-features-praticien"},{text:"FAQ",link:"Home",hash:"#section-faq"}]),s=C([{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(_,d)=>{const w=K("router-link");return u(),k("footer",null,[_.$route.path.includes("dashboard")?L("",!0):(u(),x(te,{key:0,class:"footer-container"},{default:a(()=>[t(Q,{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:De,width:"175","justify-md":"start",alt:"Holitime Logo",class:"footer-logo mb-0 mb-md-3"})]),_:1}),l("p",je,f(h(e)("footer.baseline")),1),l("div",Ze,[l("a",Ge,[t(we,{size:"24",color:"white"})]),l("a",We,[t($e,{size:"24",color:"white"})]),l("a",Je,[t(Se,{size:"24",style:{position:"relative",top:"0px",left:"-1px"},color:"white"})]),l("a",Qe,[t(Ue,{size:"24",style:{position:"relative",top:"0px",left:"-1px"},color:"white"})])])]),_:1}),t(P,{cols:"12",md:"3"},{default:a(()=>[l("h4",Ye,f(h(e)("footer.generale_info")),1),(u(!0),k(O,null,R(r.value,p=>(u(),k("div",Ke,[t(w,{class:"footer-link",to:{name:p.link,hash:p.hash}},{default:a(()=>[$(f(p.text),1)]),_:2},1032,["to"])]))),256))]),_:1}),t(P,{cols:"12",md:"3"},{default:a(()=>[l("h4",Xe,f(h(e)("footer.holitime")),1),(u(!0),k(O,null,R(v.value,p=>(u(),k("div",{class:"py-2",key:p.text},[t(w,{class:"footer-link",to:{name:p.link,hash:p.hash}},{default:a(()=>[$(f(p.text),1)]),_:2},1032,["to"])]))),128))]),_:1}),t(P,{cols:"12",md:"3"},{default:a(()=>[l("h4",et,f(h(e)("footer.account")),1),(u(!0),k(O,null,R(s.value,p=>(u(),k("div",{class:"py-2",key:p.text},[t(w,{class:"footer-link",to:{name:p.link,hash:p.hash,query:p.params?p.params.reduce((B,N)=>(B[N.name]=N.value,B),{}):{}}},{default:a(()=>[$(f(p.text),1)]),_:2},1032,["to"])]))),128))]),_:1})]),_:1}),t(ee,{color:"#EAFFFA"}),t(Q,{class:"py-3"},{default:a(()=>[t(P,{class:"text-center"},{default:a(()=>[l("p",tt,f(h(e)("footer.copyright",{value:c.value})),1)]),_:1})]),_:1})]),_:1}))])}}},lt=H(at,[["__scopeId","data-v-bb93cfb9"]]);const ot=q({__name:"PreFooter",setup(o){const c=ae();return(e,r)=>(u(),x(te,{class:"prefooter-container m-0 p-0",fluid:""},{default:a(()=>[L("",!0)]),_:1}))}});const it=H(ot,[["__scopeId","data-v-71d348f0"]]),rt="/assets/On y est presque-acdfe077.jpg";const st=o=>(fe("data-v-fde33bc8"),o=o(),ve(),o),nt={class:"headline text-uppercase"};const ut=st(()=>l("div",{class:"text-center mb-2"}," Les pré-inscriptions rouvriront bientôt. Merci de votre patience. ",-1)),ct={__name:"PreSignupDialog",props:{modelValue:{type:Boolean,default:!1}},setup(o){const{mobile:c}=le(),e=C({email:"",profilType:"",countryCode:"FR",postalCode:"",disciplines:[],monthsPreSubscribed:4,otherDiscipline:"",numberOfPaymentMonths:1}),r=C(1),v=C({}),s=C([]),_=C(!1),d=C(!1),w=[i=>!!i||"L'e-mail est requis",i=>/.+@.+/.test(i)||"L'e-mail doit être valide"],p=[i=>!!i||"Ce champ est requis"],B=[i=>r.value!==2||!!i||"Ce champ est requis"],N=[i=>r.value!==2||!!e.value.otherDiscipline||!!i&&i.length||"Ce champ est requis"],U=[{title:"France",value:"FR"},{title:"Belgique",value:"BE"},{title:"Suisse",value:"CH"},{title:"Luxembourg",value:"LU"},{title:"Canada",value:"CA"},{title:"Autre",value:"other"}],j=[{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,i=>{(i.includes("other")||e.value.otherDiscipline!=="")&&(d.value=!0)});const Z=F(()=>e.value.monthsPreSubscribed>12?25:33),m=F(()=>e.value.monthsPreSubscribed>12?"25 €":"33 €"),V=F(()=>e.value.monthsPreSubscribed);T(()=>e.value.monthsPreSubscribed,i=>{i<3?e.value.numberOfPaymentMonths=1:i===3&&e.value.numberOfPaymentMonths===4&&(e.value.numberOfPaymentMonths=3)});const g=async i=>{!(await i).valid||!await S()||(r.value===1&&e.value.email&&e.value.profilType?(setTimeout(()=>{r.value++},10),e.value.profilType==="practitioner"&&(d.value=!0)):r.value===2&&e.value.countryCode&&e.value.postalCode?e.value.profilType==="practitioner"?(e.value.disciplines.length||e.value.otherDiscipline)&&r.value++:r.value=4:r.value===3&&r.value++)},S=async()=>{s.value=[],v.value={},_.value=!0;const i={...e.value,referrerSlug:W.value};e.value.countryCode==="other"&&(i.countryCode=null);let y;try{y=await fetch("https://api.holitime.org/pre-signup/",{method:"POST",body:JSON.stringify(i),headers:{"Content-Type":"application/json"}})}catch{s.value.push("Une erreur est survenue. Veuillez réessayer plus tard.")}finally{_.value=!1}if(!y.ok){if(y.status===422){const b=(await y.json()).violations;for(const D of b)Object.hasOwn(e.value,D.propertyPath)||s.value.push(`${D.propertyPath}: ${D.title}`),v.value[D.propertyPath]=D.title}return!1}return r.value===3?!!await pe():!0},{stripe:G,stripeError:ce,stripeCard:z,stripeCardExpiry:_t,stripeCardCvc:gt,initStripe:de}=oe(ie()),pe=async()=>{if(ce.value.length)return;if(!z.value._complete){s.value.push("Veuillez remplir les champs de la carte bancaire.");return}_.value=!0;const i=e.value.monthsPreSubscribed*25+".00";await G.value.createPaymentMethod({type:"card",card:z.value,billing_details:{email:e.value.email}}).then(y=>{y.error?(s.value.push(y.error.message),_.value=!1):he({paymentMethodId:y.paymentMethod.id,finalAmount:i})}).catch(()=>{_.value=!1})},W=re("ref-slug",null),he=({paymentMethodId:i,finalAmount:y})=>{let n="https://api.holitime.org/payment/create-payment-intent";e.value.numberOfPaymentMonths>1&&(n="https://api.holitime.org/payment/create-spread-payment"),fetch(n,{method:"POST",body:JSON.stringify({paymentMethodId:i,finalAmount:y,monthsPreSubscribed:e.value.monthsPreSubscribed,email:e.value.email,referrerSlug:W.value,numberOfPaymentMonths:e.value.numberOfPaymentMonths}),headers:{"Content-Type":"application/json"}}).then(b=>b.json()).then(b=>{if(b.error)return s.value.push(b.error),!0;if(b.status==="succeeded")return r.value=4,!0;G.value.confirmCardPayment(b.clientSecret,{payment_method:{card:z.value,billing_details:{email:e.value.email}}}).then(D=>{_.value=!1,D.error?s.value.push(D.error.message):r.value=4})}).then(b=>{b&&(_.value=!1)}).catch(()=>{_.value=!1,s.value.push("Une erreur est survenue. Veuillez réessayer plus tard.")})},yt=i=>{setTimeout(()=>{i.focus()},10)};T(r,i=>{i===3&&de()});const Ct=()=>{[1,4].includes(r.value)||r.value--};return(i,y)=>(u(),x(ue,{"max-width":"400px",fullscreen:h(c),transition:"dialog-top-transition",persistent:"","model-value":o.modelValue},{default:a(()=>[t(se,null,{default:a(()=>[t(ne,{class:"bg-primary d-flex align-center"},{default:a(()=>[l("span",nt,f(i.$t("preSignupDialog.title")),1),t(E),t(M,{icon:"",variant:"text",color:"white",onClick:y[0]||(y[0]=n=>i.$emit("close"))},{default:a(()=>[t(I,null,{default:a(()=>[$("mdi-close")]),_:1})]),_:1})]),_:1}),(u(),x(A,{key:1},{default:a(()=>[ut,t(X,{src:rt,class:"mx-auto rounded-lg"})]),_:1}))]),_:1})]),_:1},8,["fullscreen","model-value"]))}},dt=H(ct,[["__scopeId","data-v-fde33bc8"]]),pt={class:"headline text-uppercase"},ht={class:"text-caption"},mt={class:"font-weight-bold"},ft={class:"text-center mt-3 font-weight-medium"},vt={__name:"DonationDialog",props:{modelValue:{type:Boolean,default:!1}},setup(o){const c=o,{mobile:e}=le(),r=C({email:"",amount:10}),v=C(!1),s=C(1),{stripe:_,stripeError:d,stripeCard:w,stripeCardExpiry:p,stripeCardCvc:B,initStripe:N}=oe(ie()),U=async m=>{if(d.value="",!(await m).valid||d.value.length)return;if(!w.value._complete){d.value="Veuillez remplir les champs de la carte bancaire.";return}v.value=!0;const g=r.value.amount+"00";await _.value.createPaymentMethod({type:"card",card:w.value,billing_details:{email:r.value.email}}).then(S=>{S.error?(d.value=S.error.message,v.value=!1):Z({paymentMethodId:S.paymentMethod.id,finalAmount:g})}).catch(()=>{v.value=!1})},j=re("ref-slug",null),Z=({paymentMethodId:m,finalAmount:V})=>{fetch("https://api.holitime.org/payment/create-payment-intent",{method:"POST",body:JSON.stringify({paymentMethodId:m,amount:V,email:r.value.email,referrerSlug:j.value}),headers:{"Content-Type":"application/json"}}).then(g=>g.json()).then(g=>{if(g.error)return d.value=g.error,!0;if(g.status==="succeeded")return s.value=2,!0;_.value.confirmCardPayment(g.clientSecret,{payment_method:{card:w.value,billing_details:{email:r.value.email}}}).then(S=>{v.value=!1,S.error?d.value=S.error:s.value=2})}).then(g=>{g&&(v.value=!1)}).catch(()=>{v.value=!1,d.value="Une erreur est survenue. Veuillez réessayer plus tard."})};return T(()=>c.modelValue,m=>{m&&N()}),(m,V)=>(u(),x(ue,{"max-width":"400px",fullscreen:h(e),transition:"dialog-top-transition",persistent:"","model-value":o.modelValue},{default:a(()=>[t(se,null,{default:a(()=>[t(ne,{class:"bg-primary d-flex align-center"},{default:a(()=>[l("span",pt,f(m.$t("donationDialog.title")),1),t(E),t(M,{icon:"",variant:"text",color:"white",onClick:V[0]||(V[0]=g=>m.$emit("close"))},{default:a(()=>[t(I,null,{default:a(()=>[$("mdi-close")]),_:1})]),_:1})]),_:1}),t(_e,{"validate-on":"blur",onSubmit:ge(U,["prevent"])},{default:a(()=>[t(ye,{modelValue:s.value,"onUpdate:modelValue":V[1]||(V[1]=g=>s.value=g),disabled:""},{default:a(()=>[t(Y,{value:1},{default:a(()=>[t(A,null,{default:a(()=>[l("div",ht,[t(I,{size:"14px",class:"mr-1"},{default:a(()=>[$("mdi-lock")]),_:1}),l("span",mt,f(m.$t("donationDialog.securityNote")),1)])]),_:1})]),_:1}),t(Y,{value:2},{default:a(()=>[t(A,{class:"text-primary pt-3 d-flex flex-column align-center"},{default:a(()=>[t(I,{size:"50px",color:"secondary"},{default:a(()=>[$("mdi-heart-circle")]),_:1}),l("div",ft,[l("p",null,f(m.$t("donationDialog.thankYouTitle")),1),l("p",null,f(m.$t("donationDialog.thankYouMessage")),1)])]),_:1})]),_:1})]),_:1},8,["modelValue"]),t(ee),t(Ce,null,{default:a(()=>[t(E),t(M,{text:"",onClick:V[2]||(V[2]=g=>m.$emit("close"))},{default:a(()=>[$(f(s.value===1?m.$t("donationDialog.cancelButton"):m.$t("donationDialog.closeButton")),1)]),_:1}),s.value===1?(u(),x(M,{key:0,color:"secondary",loading:v.value,type:"submit",text:""},{default:a(()=>[$(f(m.$t("donationDialog.donateButton"))+" "+f(r.value.amount)+" € ",1)]),_:1},8,["loading"])):L("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["fullscreen","model-value"]))}},Rt=q({__name:"Default",setup(o){const c=ae(),e=Ve(),r=F(()=>{const v=["Home","PractitionerPresentation"];return c.name&&v.includes(c.name)});return(v,s)=>{const _=K("router-view");return u(),x(xe,null,{default:a(()=>[r.value?(u(),x(J,{key:0,flat:"",color:"transparent","scroll-behavior":"fade-image inverted",image:"https://via.placeholder.com/10x10/FFFFFF/FFFFFF"})):(u(),x(J,{key:1})),t(be,null,{default:a(()=>[t(_)]),_:1}),h(c).name!=="ScheduleAppointment"&&h(c).name!=="CGU"&&h(c).name!=="DataPolicy"&&h(c).name!=="PractitionerPresentation"?(u(),x(it,{key:2})):L("",!0),t(lt),t(dt,{onClose:s[0]||(s[0]=d=>h(e).preSignupDialogOpen=!1),modelValue:h(e).preSignupDialogOpen,"onUpdate:modelValue":s[1]||(s[1]=d=>h(e).preSignupDialogOpen=d)},null,8,["modelValue"]),t(vt,{onClose:s[2]||(s[2]=d=>h(e).donationDialogOpen=!1),modelValue:h(e).donationDialogOpen,"onUpdate:modelValue":s[3]||(s[3]=d=>h(e).donationDialogOpen=d)},null,8,["modelValue"])]),_:1})}}});export{Rt as default}; //# sourceMappingURL=Default-2cd9892a.js.map