PageSourceSearch

https://vaudoisearena.ch/_nuxt/09oVLMtB.js

js vaudoisearena.ch collected 2026-10-04 18:38:02 UTC 5,286 bytes, 1 lines download raw bytes

1import{_ as H}from"./BSK94HtR.js";import{_ as I}from"./b5suIbEo.js";import{d as M,a4 as y,f as O,c as T,w as $,j as n,g as z,a as r,V as p,b as c,h as t,Y as D,W as P,ap as h,H as j,X as L,Z as u,$ as U}from"./BMoGA7JB.js";import q from"./DEP567Px.js";import{_ as G}from"./BD6O8ySz.js";import{_ as R}from"./ljvWoGhS.js";import{_ as W,V as X}from"./B8lGiOEP.js";import{u as Y}from"./CJYvXAaQ.js";import"./BYjX7mIz.js";import"./WOTQxERb.js";import"./F_9H1fkx.js";const Z=["onClick"],J={class:"form__notice"},pe=M({__name:"FormIce",async setup(K){let m,b;const f=y(),i=y(1),v=([m,b]=O(()=>z("/calendar/team/schools")),m=await m,b(),m).reduce((e,l)=>(e[l.id]=l.name,e),{}),S=Object.values(v).sort((e,l)=>e.localeCompare(l,"fr",{sensitivity:"base"})),{HOURS:N,MINUTES:k,endHourOptions:E,endMinuteOptions:_,removeSlot:g}=Y(f,i),F=()=>{document.getElementById("contact")?.scrollIntoView({behavior:"smooth"})};return(e,l)=>{const o=H,s=I,V=j,C=q,w=G,A=R,B=W;return r(),T(B,{id:"iceForm",ref_key:"iceForm",ref:f,action:"/api/contact/school/ice",submitter:"VaudoiseFormActions"in e?e.VaudoiseFormActions:n(X),messages:{alert:{submitted:"Votre inscription a bien été envoyée. Vous recevrez un email de confirmation sous peu. La page va maintenant se recharger automatiquement."}}},{default:$(()=>[(r(!0),p(L,null,D(n(i),(d,a)=>(r(),p("div",{class:"form__datepicker",key:d},[t(o,{name:`timeSlots[${a}].date`,type:"date",step:"900",label:e.$t("form.ice.date"),rules:["isNotEmpty",{minDate:[new Date]}]},null,8,["name","label","rules"]),t(s,{name:`timeSlots[${a}].startHour`,options:n(N),label:e.$t("form.ice.start"),empty:"--",rules:["isNotEmpty"]},null,8,["name","options","label"]),t(s,{name:`timeSlots[${a}].startMinute`,options:n(k),label:"",empty:"--",rules:["isNotEmpty"]},null,8,["name","options"]),t(s,{name:`timeSlots[${a}].endHour`,options:n(E)(a),label:e.$t("form.ice.end"),empty:"--",rules:["isNotEmpty"]},null,8,["name","options","label"]),t(s,{name:`timeSlots[${a}].endMinute`,options:n(_)(a),label:"",empty:"--",rules:["isNotEmpty"]},null,8,["name","options"]),a!==0?(r(),p("button",{key:0,onClick:h(Q=>n(g)(a),["prevent"])},[t(V,{icon:"/general/x-close.svg"})],8,Z)):P("",!0)]))),128)),c("button",{class:"button--inverted",onClick:l[0]||(l[0]=h(d=>i.value++,["prevent"]))},u(e.$t("form.ice.more")),1),t(s,{name:"sport",label:e.$t("form.ice.sport.label"),options:{Patinage:e.$t("form.ice.sport.options.skating"),Hockey:e.$t("form.ice.sport.options.hockey")}},null,8,["label","options"]),t(o,{name:"students",type:"number",min:0,value:"0",label:e.$t("form.ice.students"),rules:["isNotEmpty",{max:[25]}]},null,8,["label"]),t(o,{name:"teachers",type:"number",min:0,value:"0",label:e.$t("form.ice.teachers"),rules:["isNotEmpty"]},null,8,["label"]),t(o,{name:"accompanists",type:"number",min:0,value:"0",label:e.$t("form.ice.accompanists")},null,8,["label"]),t(o,{name:"studentSkates",type:"number",min:0,value:"0",label:e.$t("form.ice.studentSkates"),rules:["isNotEmpty",{max:[25]}]},null,8,["label"]),t(o,{name:"teacherSkates",type:"number",min:0,value:"0",label:e.$t("form.ice.teacherSkates"),rules:["isNotEmpty"]},null,8,["label"]),t(o,{name:"accompanistSkates",type:"number",min:0,value:"0",label:e.$t("form.ice.accompanistSkates")},null,8,["label"]),t(s,{name:"level",label:e.$t("form.ice.level.label"),default:"Primaire",options:{Garderie:e.$t("form.ice.level.options.garden"),Primaire:e.$t("form.ice.level.options.primary"),Secondaire:e.$t("form.ice.level.options.secondary"),Autre:e.$t("form.ice.level.options.other")}},null,8,["label","options"]),l[1]||(l[1]=c("h5",null,null,-1)),t(s,{name:"payment",label:e.$t("form.ice.payment.label"),default:"Sur facture",options:{"Sur place":e.$t("form.ice.payment.options.onsite"),"Sur facture":e.$t("form.ice.payment.options.bill")}},null,8,["label","options"]),t(C,{name:"contact.institution",options:n(S),label:e.$t("form.ice.school.label"),placeholder:e.$t("form.ice.school.placeholder"),rules:["isNotEmpty"]},null,8,["options","label","placeholder"]),t(o,{name:"contact.lastName",label:e.$t("form.ice.lastname"),placeholder:"Chappuis",rules:["isNotEmpty"]},null,8,["label"]),t(o,{name:"contact.firstName",label:e.$t("form.ice.firstname"),placeholder:"Sacha",rules:["isNotEmpty"]},null,8,["label"]),t(o,{name:"contact.phone",label:e.$t("form.ice.phone"),mask:"+## ## ### ## ##",placeholder:"+41 79 
1000 00 00",rules:["isNotEmpty"]},null,8,["label"]),t(o,{name:"contact.email",label:e.$t("form.ice.email"),placeholder:"[email protected]",rules:["isNotEmpty","isEmail"]},null,8,["label"]),t(o,{name:"contact.address.street",label:e.$t("form.ice.address"),rules:["isNotEmpty"]},null,8,["label"]),t(o,{name:"contact.address.zip",label:e.$t("form.ice.zip"),rules:["isNotEmpty"]},null,8,["label"]),t(o,{name:"contact.address.city",label:e.$t("form.ice.city"),rules:["isNotEmpty"]},null,8,["label"]),t(o,{name:"type",type:"hidden",value:"ice"}),t(w,{name:"message",label:e.$t("form.ice.message.label"),placeholder:e.$t("form.ice.message.placeholder")},null,8,["label","placeholder"]),t(o,{type:"checkbox",name:"newsletter",label:e.$t("form.newsletter.label")},null,8,["label"]),c("p",J,u(e.$t("form.ice.notice")),1),t(A,{onClick:F},{default:$(()=>[U(u(e.$t("form.ice.submit")),1)]),_:1})]),_:1},8,["submitter"])}}});export{pe as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.