PageSourceSearch

https://www.affrenchfilmfestival.org/_nuxt/uOZp7Q8h.js

js affrenchfilmfestival.org collected 2026-10-02 04:45:21 UTC 11,138 bytes, 1 lines download raw bytes

1import{am as T,m as U,b as E,bm as j,bn as Y,v as m,a2 as R,ae as B,I as G,x as z,g as I,a6 as O,S as H,T as K,o as J,c as W,C as a,h as p,n as A,i as d,A as F,k as Q}from"./3LWHPPPh.js";import{_ as X}from"./DZkKBHEH.js";import{_ as Z}from"./7bZf-CoG.js";import{_ as k}from"./DHDESihK.js";import{_}from"./BdSd3LV7.js";import{u as ee}from"./739VtNET.js";function te(e,y){const f=E(),o=new T(f.public.hostURL),{execute:c,pending:g,data:n,error:r}=U("registerCompetition",async()=>await o.post(new j({token:y.value,firstname:e.firstname,lastname:e.lastname,emailAddress:e.emailAddress,postcode:e.postcode,city:e.city.id,filmGenre:e.filmGenre.id,hearAbout:e.hearAbout.id,hearAboutText:e.hearAboutText,nbFilms:e.nbFilms.id,festivalEvent:e.festivalEvent.id,festivalEventText:e.festivalEventText,enjoyEvent:e.enjoyEvent.id,wayUpdates:e.wayUpdates.id,wayUpdatesSocialMedia:e.wayUpdatesSocialMedia.id,whereNewsFrom:e.whereNewsFrom.id,frenchSpeaker:e.frenchSpeaker.id,whereLearntFrench:e.whereLearntFrench.id,whereLearntFrenchText:e.whereLearntFrenchText,memberAf:e.memberAf.id,learningAf:e.learningAf.id,otherEvents:e.otherEvents.id,beenToFrance:e.beenToFrance.id,whereFrom:e.whereFrom.id,occupation:e.occupation.id,income:e.income.id,maleFemale:e.maleFemale.id,age:e.age.id,improvements:e.improvements,agreeConditions:e.agreeConditions})),{immediate:!1});return{doRegisterCompetitionError:r,doRegisterCompetitionIsRunning:g,doRegisterCompetitionData:n,doRegisterCompetition:c}}function ae(e,y){const f=E(),o=new T(f.public.hostURL),{execute:c,pending:g,data:n,error:r}=U("registerCompetitionFinal",async()=>await o.post(new Y({token:y.value,question:e.question,emailAddressFinal:e.emailAddress,winIdFinal:e.winId})),{immediate:!1});return{doRegisterCompetitionFinalError:r,doRegisterCompetitionFinalIsRunning:g,doRegisterCompetitionFinalData:n,doRegisterCompetitionFinal:c}}function ie(){const e=E(),y=m(""),f=m(""),o=R({firstname:"",lastname:"",emailAddress:"",postcode:"",city:{id:0,name:""},filmGenre:{id:0,name:""},hearAbout:{id:0,name:""},hearAboutText:"",nbFilms:{id:0,name:""},festivalEvent:{id:0,name:""},festivalEventText:"",enjoyEvent:{id:0,name:""},wayUpdates:{id:0,name:""},wayUpdatesSocialMedia:{id:0,name:""},whereNewsFrom:{id:0,name:""},frenchSpeaker:{id:0,name:""},whereLearntFrench:{id:0,name:""},whereLearntFrenchText:"",memberAf:{id:0,name:""},learningAf:{id:0,name:""},otherEvents:{id:0,name:""},beenToFrance:{id:0,name:""},whereFrom:{id:0,name:""},occupation:{id:0,name:""},income:{id:0,name:""},maleFemale:{id:0,name:""},age:{id:0,name:""},improvements:"",agreeConditions:!1}),c=R({emailAddress:"",winId:0,question:""}),g=m(0),n=m(!1),r=m(!1),b=m(""),w=m(!1),x=m(""),h=B(),{selectedCity:t}=G(h),l=m(new Set);z(o,()=>{l.value.size>0&&(l.value=new Set)},{deep:!0});const{doRegisterCompetitionData:i,doRegisterCompetition:$}=te(o,y),{doRegisterCompetitionFinalData:V,doRegisterCompetitionFinal:L}=ae(c,f);async function P(){if(N()){n.value=!0,r.value=!1,b.value="";try{window.grecaptcha&&(y.value=await window.grecaptcha.execute(e.public.recaptchaSiteKey,{action:"competition_register"})),await $(),i.value?.isSuccess?(g.value=1,c.emailAddress=i.value.emailAddress,c.winId=i.value?.winId):(r.value=!0,b.value=i.value?.message)}catch(s){r.value=!0,b.value=s.message||"An error occurred. Please try again."}finally{n.value=!1}}}async function q(){n.value=!0,w.value=!1,x.value="";try{window.grecaptcha&&(f.value=await window.grecaptcha.execute(e.public.recaptchaSiteKey,{action:"competition_register_final"})),await L(),V.value?.isSuccess?g.value=2:(w.value=!0,x.value=V.value?.message)}catch(s){w.value=!0,x.value=s.message||"An error occurred. Please try again."}finally{n.value=!1}}function M(s){return s?.find?.(S=>S.id==t.value?.id)??{id:0,name:""}}function N(){const s=new Set;r.value=!1,b.value="";let u="";const S=[{field:"firstname",label:"First name"},{field:"lastname",label:"Last name"},{field:"emailAddress",label:"Email address"},{field:"postcode",label:"Postcode"}];for(const{field:v,label:C}of S)(!o[v]||o[v].trim()==="")&&(s.add(v),u||(u=`${C} is required`));o.emailAddress&&o.emailAddress.trim()!==""&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o.emailAddress.trim())&&(s.add("emailAddress"),u||(u="Please enter a valid email address"));const D=[{field:"maleFemale",label:"Gender"},{field:"age",label:"Age"},{field:"city",label:"City"}];for(const{field:v,label:C}of D)(!o[v]?.name||o[v].name==="")&&(s.add(v),u||(u=`${C} is required`));if(o.agreeConditions||(s.add("agreeConditions"),u||(u="You must agree to the terms and conditions")),l.value=s,s.size>0){r.value=!0,b.value=u;const v=Array.from(s)[0];return O(()=>{document.querySelector(`label[for="${v}"]`)?.scrollIntoView({behavior:"smooth",block:"center"})}),!1}return!0}return I(()=>{}),{formData:o,formDataFinal:c,validationErrors:l,step:g,loading:n,isError:r,errorMessage:b,isFinalError:w,errorFinalMessage:x,getInitialDataCity:M,submitData:P,submitFinalData:q}}const oe=Q(X),se={class:"my-10 grid grid-cols-1 gap-x-6 gap-y-2 sm:grid-cols-6 items-end"},ne={class:"sm:col-span-3"},re={class:"sm:col-span-3"},le={class:"sm:col-span-3"},de={class:"sm:col-span-3"},me={class:"sm:col-span-3"},ce={class:"sm:col-span-3"},ue={class:"sm:col-span-3"},fe={class:"sm:col-span-6"},ge={class:"sm:col-span-6 mt-4"},be={class:"inline space-x-2"},ve={class:"sm:col-span-6"},pe=["href"],ye=["href"],we={__name:"DescriptionSectionIdentity",props:{formData:{type:Object,required:!0}
1,validationErrors:{type:Set,default:()=>new Set}},setup(e){const f=E().public.yearSlug,o=e,{maleFemales:c,ages:g,cities:n}=ee(),{getInitialDataCity:r}=ie(),{$gsap:b}=H(),w=m(),x=m();return I(()=>{o.formData.city=r(n),x.value=b.context(h=>{h.selector("h2__deprecated").forEach((l,i)=>{b.from(l,{opacity:0,y:50,duration:5,delay:i*.1,scrollTrigger:{trigger:l,start:"top 80%",end:"top 30%",scrub:!0,once:!0}})})},w.value)}),K(()=>{x.value?.revert()}),(h,t)=>{const l=oe;return J(),W("section",{ref_key:"container",ref:w},[t[26]||(t[26]=a("div",{class:"my-4"},[a("h2",{class:"font-af text-af-text-accent text-4xl border-b-4 border-af-border-accent mb-4"},"IDENTITY")],-1)),a("div",se,[a("div",ne,[t[9]||(t[9]=a("label",{class:"block text-sm font-bold mb-2",for:"firstname"},"First name",-1)),p(d(k),{modelValue:e.formData.firstname,"onUpdate:modelValue":t[0]||(t[0]=i=>e.formData.firstname=i),id:"firstname",class:A(["focus-visible:ring-af-ring-focus",e.validationErrors.has("firstname")?"border-red-500 border-2":""])},null,8,["modelValue","class"])]),a("div",re,[t[10]||(t[10]=a("label",{class:"block text-sm font-bold mb-2",for:"lastname"},"Last name",-1)),p(d(k),{modelValue:e.formData.lastname,"onUpdate:modelValue":t[1]||(t[1]=i=>e.formData.lastname=i),id:"lastname",class:A(["focus-visible:ring-af-ring-focus",e.validationErrors.has("lastname")?"border-red-500 border-2":""])},null,8,["modelValue","class"])]),a("div",le,[t[11]||(t[11]=a("label",{class:"block text-sm font-bold mb-2",for:"maleFemale"},"Gender",-1)),p(l,{modelValue:e.formData.maleFemale,"onUpdate:modelValue":t[2]||(t[2]=i=>e.formData.maleFemale=i),options:d(c),placeholder:"Select gender","class-name":"w-full bg-af-bg-input p-2 rounded-md","class-name-item":"focus:bg-af-bg-focus",error:e.validationErrors.has("maleFemale")},null,8,["modelValue","options","error"])]),a("div",de,[t[12]||(t[12]=a("label",{class:"block text-sm font-bold mb-2",for:"age"},"Your age",-1)),p(l,{modelValue:e.formData.age,"onUpdate:modelValue":t[3]||(t[3]=i=>e.formData.age=i),options:d(g),placeholder:"Select age range","class-name":"w-full bg-af-bg-input p-2 rounded-md","class-name-item":"focus:bg-af-bg-focus",error:e.validationErrors.has("age")},null,8,["modelValue","options","error"])]),a("div",me,[t[13]||(t[13]=a("label",{class:"block text-sm font-bold mb-2",for:"emailAddress"},"Email Address",-1)),p(d(k),{modelValue:e.formData.emailAddress,"onUpdate:modelValue":t[4]||(t[4]=i=>e.formData.emailAddress=i),id:"emailAddress",class:A(["focus-visible:ring-af-ring-focus",e.validationErrors.has("emailAddress")?"border-red-500 border-2":""])},null,8,["modelValue","class"])]),t[25]||(t[25]=a("div",{class:"sm:col-span-3"},null,-1)),a("div",ce,[t[14]||(t[14]=a("label",{class:"block text-sm font-bold mb-2",for:"postcode"},"Postcode",-1)),p(d(k),{modelValue:e.formData.postcode,"onUpdate:modelValue":t[5]||(t[5]=i=>e.formData.postcode=i),id:"postcode",class:A(["focus-visible:ring-af-ring-focus",e.validationErrors.has("postcode")?"border-red-500 border-2":""])},null,8,["modelValue","class"])]),a("div",ue,[t[15]||(t[15]=a("label",{class:"block text-sm font-bold mb-2",for:"city"},"Your Festival City",-1)),p(l,{modelValue:e.formData.city,"onUpdate:modelValue":t[6]||(t[6]=i=>e.formData.city=i),options:d(n),placeholder:"Select city","class-name":"w-full bg-af-bg-input p-2 rounded-md","class-name-item":"focus:bg-af-bg-focus",error:e.validationErrors.has("city")},null,8,["modelValue","options","error"])]),a("div",fe,[t[16]||(t[16]=a("label",{class:"block text-sm font-bold mb-2",for:"improvements"},"Would you suggest any improvements?",-1)),p(d(_),{modelValue:e.formData.improvements,"onUpdate:modelValue":t[7]||(t[7]=i=>e.formData.improvements=i),id:"improvements",rows:"3",class:"focus-visible:ring-af-ring-focus"},null,8,["modelValue"])]),a("div",ge,[a("div",be,[p(d(Z),{id:"agreeConditions",checked:e.formData.agreeConditions,"onUpdate:checked":t[8]||(t[8]=i=>e.formData.agreeConditions=i),class:"float-left mt-[6px] mr-1 data-[state=checked]:bg-af-bg-primary data-[state=checked]:text-white text-af-text-default focus:ring-af-ring-focus"},null,8,["checked"]),t[17]||(t[17]=a("label",{for:"agreeConditions",class:"text-sm font-medium text-gray-900"}," By providing your personal information and registering for this competition, you consent to receive newsletters and promotional communications from the Alliance Française French Film Festival, participating Alliances Françaises, and our sponsors and partners as 
1set out in the Privacy Policy. ",-1))])]),a("div",ve,[t[18]||(t[18]=F(" Your personal information will be handled in accordance with our ")),a("a",{href:`https://cdn.affrenchfilmfestival.org/${d(f)}/privacy-policy.pdf`,target:"_blank",class:"font-bold text-af-text-accent hover:text-af-text-hover"},"Privacy Policy",8,pe),t[19]||(t[19]=F(" and our ")),a("a",{href:`https://cdn.affrenchfilmfestival.org/${d(f)}/terms-and-conditions-competition-v2.pdf`,target:"_blank",class:"font-bold text-af-text-accent hover:text-af-text-hover"},"Terms and Conditions",8,ye),t[20]||(t[20]=F(", and those of our sponsors and partners.")),t[21]||(t[21]=a("br",null,null,-1)),t[22]||(t[22]=F(" You may unsubscribe from these communications at any time by contacting ")),t[23]||(t[23]=a("a",{href:"mailto:[email protected]",target:"_blank",class:"font-bold text-af-text-accent hover:text-af-text-hover"},"[email protected]",-1)),t[24]||(t[24]=F(", by clicking the unsubscribe link in our communications or as otherwise provided by our sponsors and partners. "))])])],512)}}},Ee=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"}));
1export{Ee as D,we as _,ie as u};

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.