import{_ as y}from"./xZUED3Y5.js";import{_}from"./BC5q_xwx.js";import{e as h,A as g,r as p,o as V,c as w,a as l,q as i,B as u,k as o,C as U,v as s,D as k,E as m,G as f,b as x,w as q,d as P,_ as S}from"./DTTUSOF7.js";import"./CQdf75O_.js";import"./CoSvTYm4.js";import"./Ntx1KrqX.js";import"./BzmRssJ1.js";import"./F1AAHKp4.js";const D={class:"flex flex-col gap-10 pt-[96px] md:gap-16"},T={class:"container py-12"},B={class:"mx-auto max-w-screen-xl rounded-lg border p-12"},M=["inert"],C={class:"flex gap-6 max-md:flex-col"},N={class:"flex flex-1 flex-col"},A={class:"flex flex-1 flex-col"},E={class:"flex flex-col gap-6"},H={class:"flex flex-1 flex-col"},Y={class:"flex flex-1 flex-col"},I={class:"flex flex-1 flex-col"},L={class:"flex gap-6 max-md:flex-col"},F={class:"flex flex-1 flex-col"},W={class:"flex flex-1 flex-col"},O={class:"flex gap-6 max-md:flex-col"},$={class:"flex flex-1 flex-col"},G={class:"flex flex-1 flex-col"},j={class:"flex flex-1 flex-col"},z={class:"flex flex-1 flex-col"},J={class:"flex flex-col gap-6"},K={class:"flex flex-1 flex-col"},Q={class:"flex flex-1 flex-col"},R={class:"flex gap-6"},X={class:"flex flex-1 flex-col"},Z={class:"flex flex-1 flex-row gap-4"},ee={class:"flex flex-1 flex-row gap-4"},le={class:"mt-10"},oe={class:"flex flex-col gap-6"},te=h({__name:"apply-to-drive",setup(ae){g({title:"PicUp | The Easiest Way To Move Your Things",description:"Drive with PicUp and earn money on your own schedule. We offer competitive rates and keep our haulers busy.",ogImage:"/social-preview.png",ogUrl:"https://picup.com.au"});const r=p(!1),n=p(!1),t=p({firstname:"",lastname:"",email:"",phone:"",abn:"",suburb:"",city:"",vehicle_type:"",vehicle_make:"",vehicle_model:"",vehicle_year:"",description:"",availability:"",hauler_count_preference:"",confirm_heavy_items:!1,confirm_terms:!1});async function c(){r.value=!0;try{const d=await $fetch("/api/driver-application",{method:"POST",body:t.value});n.value=!0}catch(d){console.warn(d),n.value=!1}r.value=!1}return(d,e)=>{const v=y,b=_;return V(),w("div",D,[l("section",T,[l("div",B,[e[39]||(e[39]=l("div",{class:"flex flex-col gap-4"},[l("h2",{class:"text-4xl font-bold uppercase text-green-500 md:pb-4 md:text-6xl"},"Apply to Drive")],-1)),i(l("form",{onSubmit:U(c,["prevent"]),class:"flex flex-col gap-6",inert:o(r)||o(n)},[e[35]||(e[35]=l("h3",{class:"text-2xl font-bold uppercase"},"Personal Details",-1)),l("div",C,[l("div",N,[e[16]||(e[16]=l("label",{for:"firstname"},"First name",-1)),i(l("input",{type:"text",name:"firstname",id:"firstname",autocomplete:"given-name",placeholder:"First name","onUpdate:modelValue":e[0]||(e[0]=a=>o(t).firstname=a),required:""},null,512),[[s,o(t).firstname]])]),l("div",A,[e[17]||(e[17]=l("label",{for:"lastname"},"Last name",-1)),i(l("input",{type:"text",name:"lastname",id:"lastname",autocomplete:"family-name",placeholder:"Last name","onUpdate:modelValue":e[1]||(e[1]=a=>o(t).lastname=a),required:""},null,512),[[s,o(t).lastname]])])]),l("div",E,[l("div",H,[e[18]||(e[18]=l("label",{for:"email"},"Email",-1)),i(l("input",{type:"text",name:"email",id:"email",autocomplete:"email",placeholder:"Email","onUpdate:modelValue":e[2]||(e[2]=a=>o(t).email=a),required:""},null,512),[[s,o(t).email]])]),l("div",Y,[e[19]||(e[19]=l("label",{for:"phone"},"Phone",-1)),i(l("input",{type:"text",name:"phone",id:"phone",autocomplete:"tel",placeholder:"Phone","onUpdate:modelValue":e[3]||(e[3]=a=>o(t).phone=a),required:""},null,512),[[s,o(t).phone]])]),l("div",I,[e[20]||(e[20]=l("label",{for:"abn"},"ABN",-1)),i(l("input",{type:"text",name:"abn",id:"abn",autocomplete:"off",placeholder:"ABN","onUpdate:modelValue":e[4]||(e[4]=a=>o(t).abn=a),required:""},null,512),[[s,o(t).abn]])])]),l("div",L,[l("div",F,[e[21]||(e[21]=l("label",{for:"city"},"City",-1)),i(l("input",{type:"text",name:"city",id:"city",autocomplete:"address-level1",placeholder:"City","onUpdate:modelValue":e[5]||(e[5]=a=>o(t).city=a),required:""},null,512),[[s,o(t).city]])]),l("div",W,[e[22]||(e[22]=l("label",{for:"suburb"},"Suburb",-1)),i(l("input",{type:"text",name:"suburb",id:"suburb",autocomplete:"address-level2",placeholder:"Suburb","onUpdate:modelValue":e[6]||(e[6]=a=>o(t).suburb=a),required:""},null,512),[[s,o(t).suburb]])])]),e[36]||(e[36]=l("h3",{class:"mt-4 text-2xl font-bold uppercase"},"Vehicle Details",-1)),l("div",O,[l("div",$,[e[24]||(e[24]=l("label",{for:"vehicle_type"},"Vehicle Type",-1)),i(l("select",{"onUpdate:modelValue":e[7]||(e[7]=a=>o(t).vehicle_type=a),class:"bg-transparent pl-4 text-gray-950 outline-none focus:border-none focus:outline-none max-md:w-full",required:""},e[23]||(e[23]=[k('<option value="" disabled class="text-gray-500" data-v-4ca88d33>Select an option</option><option value="Single cab Ute" data-v-4ca88d33>Single Cab Ute</option><option value="Single cab Ute" data-v-4ca88d33>Dual Cab Ute</option><option value="Small Van" data-v-4ca88d33>Small Van</option><option value="Large Van" data-v-4ca88d33>Large Van</option>',5)]),512),[[m,o(t).vehicle_type]])]),l("div",G,[e[25]||(e[25]=l("label",{for:"vehicle_make"},"Vehicle Make",-1)),i(l("input",{type:"text",required:"",name:"vehicle_make",id:"vehicle_make",placeholder:"Vehicle Make","onUpdate:modelValue":e[8]||(e[8]=a=>o(t).vehicle_make=a)},null,512),[[s,o(t).vehicle_make]])]),l("div",j,[e[26]||(e[26]=l("label",{for:"vehicle_model"},"Vehicle Model",-1)),i(l("input",{type:"text",name:"vehicle_model",id:"vehicle_model",placeholder:"Vehicle Model","onUpdate:modelValue":e[9]||(e[9]=a=>o(t).vehicle_model=a),required:""},null,512),[[s,o(t).vehicle_model]])]),l("div",z,[e[27]||(e[27]=l("label",{for:"vehicle_year"},"Vehicle Year",-1)),i(l("input",{type:"text",name:"vehicle_year",id:"vehicle_year",placeholder:"Vehicle Year","onUpdate:modelValue":e[10]||(e[10]=a=>o(t).vehicle_year=a),required:""},null,512),[[s,o(t).vehicle_year]])])]),e[37]||(e[37]=l("h3",{class:"mt-4 text-2xl font-bold uppercase"},"Application",-1)),l("div",J,[l("div",K,[e[28]||(e[28]=l("label",{for:"description"},"Describe why you would make a good PicUp Hauler?",-1)),i(l("textarea",{rows:"3",name:"description",id:"description",placeholder:"...","onUpdate:modelValue":e[11]||(e[11]=a=>o(t).description=a),required:""},null,512),[[s,o(t).description]])]),l("div",Q,[e[29]||(e[29]=l("label",{for:"availability"},"Describe your availability (Days, Hours etc):",-1)),i(l("textarea",{rows:"3",name:"availability",id:"availability",placeholder:"Your availability (e.g. 3 days a week and available on weekends)","onUpdate:modelValue":e[12]||(e[12]=a=>o(t).availability=a),required:""},null,512),[[s,o(t).availability]])])]),l("div",R,[l("div",X,[e[31]||(e[31]=l("label",{for:"hauler_count_preference"}," PicUp provides opportunities to complete one person hauls as well as two person hauls for those with access to a team mate. Please select your preference below: ",-1)),i(l("select",{class:"h-12 appearance-none border-none bg-transparent pl-4 text-gray-950 outline-none focus:border-none focus:outline-none max-md:w-full","onUpdate:modelValue":e[13]||(e[13]=a=>o(t).hauler_count_preference=a),required:""},e[30]||(e[30]=[l("option",{value:"",disabled:"",class:"text-gray-500"},"Select an option",-1),l("option",{value:"1 Person Hauls"},"One Person",-1),l("option",{value:"2 Person Hauls"},"Two People",-1),l("option",{value:"Both"},"Both",-1)]),512),[[m,o(t).hauler_count_preference]])])]),l("div",Z,[i(l("input",{type:"checkbox",name:"confirm_heavy_items",id:"confirm_heavy_items","onUpdate:modelValue":e[14]||(e[14]=a=>o(t).confirm_heavy_items=a),required:""},null,512),[[f,o(t).confirm_heavy_items]]),e[32]||(e[32]=l("label",{for:"confirm_heavy_items"},"You confirm you are capable of heavy lifting and know proper lifting procedure",-1))]),l("div",ee,[i(l("input",{type:"checkbox",name:"confirm_terms",id:"confirm_terms","onUpdate:modelValue":e[15]||(e[15]=a=>o(t).confirm_terms=a),required:""},null,512),[[f,o(t).confirm_terms]]),e[33]||(e[33]=l("label",{for:"confirm_terms"}," I understand that to become a PicUp Hauler, I must hold public liability insurance , CTP car insurance and am able to provide copies of this to PicUp admin prior to commencing any work. ",-1))]),l("div",le,[x(v,{type:"submit"},{default:q(()=>e[34]||(e[34]=[P("Submit")])),_:1})])],40,M),[[u,!o(n)]]),i(l("div",oe,e[38]||(e[38]=[l("h3",{class:"text-2xl font-bold uppercase"},"Thank you for your application!",-1),l("p",null,"We will be in touch shortly.",-1)]),512),[[u,o(n)]])])]),x(b)])}}}),fe=S(te,[["__scopeId","data-v-4ca88d33"]]);export{fe as default};
//# sourceMappingURL=Ch-BTVC0.js.map
