PageSourceSearch

https://isric.org/_nuxt/BiCi-sww.js

js isric.org collected 2026-09-24 08:48:31 UTC 7,807 bytes, 1 lines download raw bytes

1import{F,a as R}from"./BiMgX1xh.js";import{u as C,j as t,r as j,c,o as u,g as o,E as d,e as r,d as m,f as N,q as i,ad as b,B as W}from"./FTaPbxLM.js";import A from"./DrazZ_kY.js";const E={class:"mx-auto w-full max-w-2xl"},K={key:0,class:"bg-green-50 border-green-200 text-green-700 mb-6 rounded-md border p-4 text-center"},M={class:"mt-4 flex justify-center"},$={__name:"FormGuidedTours",setup(U){const{t:e}=C(),p=t(()=>e("typeOfTour","Type of tour")),f=t(()=>e("groupSize","How many people are in the group")),g=t(()=>e("preferredTime","Preferred date of booking")),y=t(()=>e("preferredTimeOfVisit","Preferred time of visit")),h=t(()=>e("tourLength","Please select the tour of your preference")),x=t(()=>e("organization","Organisation")),w=t(()=>e("physicalAddress","Physical address")),v=t(()=>e("emailAddress","Email")),k=t(()=>e("backgroundOfGroup","What is the background of the people in the group")),T=t(()=>e("lectures","Optional lectures for educational groups")),S=t(()=>e("specialRequests","Special requests or comments")),q=t(()=>e("bookTour","Book Tour")),_=t(()=>e("formSubmissionSuccess","Thank you! Your tour booking request has been submitted successfully. We will contact you shortly.")),n=j(!1),O=[{label:e("selectTourType","Select tour type"),value:""},{label:e("inPerson","In-Person"),value:"In-Person"},{label:e("virtual","Virtual"),value:"Virtual"},{label:e("schoolClassVisit","School/class visit"),value:"School/class visit"}],P=[{label:e("selectTourLength","Select tour length"),value:""},{label:e("shortTour","Short (15 minute) tour explaining purpose of collection and brief view of exhibit"),value:"Short"},{label:e("mediumTour","Medium (30 minute) tour explaining purpose of collection, view of exhibit and highlight of selected objects"),value:"Medium"},{label:e("longTour","Long (60 minute) tour including all of medium content as well as “Soils of the World” tour"),value:"Long"}],B=[{label:e("selectBackground","Select background"),value:""},{label:e("students","Students"),value:"Students"},{label:e("schoolPupils","School Pupils"),value:"School Pupils"},{label:e("researchers","Researchers"),value:"Researchers"},{label:e("governments","Governments"),value:"Governments"},{label:e("general","General Public"),value:"General Public"}],L=[{label:e("selectLecture","Select lecture (optional)"),value:""},{label:e("introduction","Introduction on soils (what is soil, soils around the world and their properties)"),value:"Introduction"},{label:e("worldSoil","World soil information services and examples of use of soil information in policy and management)"),value:"World of soil"},{label:e("none","None"),value:"None"}],V=s=>Object.keys(s).map(a=>encodeURIComponent(a)+"="+encodeURIComponent(s[a])).join("&"),z=async s=>{try{await fetch("/guided-tours-form",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:V({"form-name":"guided-tours-form",...s})}),n.value=!0}catch(a){console.error("Form submission error:",a),alert("Form submission failed. Please try again.")}};return(s,a)=>{const l=R,G=W,I=A;return u(),c("div",E,[o(r(F),null,{default:d(()=>[r(n)?(u(),c("div",K,[i("p",null,b(r(_)),1)])):m("",!0),r(n)?m("",!0):(u(),N(l,{key:1,type:"form",name:"guided-tours-form",method:"POST","data-netlify":"true",actions:!1,class:"space-y-6",onSubmit:z},{default:d(()=>[a[0]||(a[0]=i("input",{type:"hidden",name:"form-name",value:"guided-tours-form"},null,-1)),a[1]||(a[1]=i("p",{class:"hidden"},[i("label",null,[i("input",{name:"bot-field"})])],-1)),o(l,{name:"typeOfTour",label:r(p),type:"select",options:O,validation:"required","aria-required":!0,class:"formkit-input-styled",classes:{outer:"mb-5",label:"block text-sm font-medium mb-1",inner:"w-full",input:"w-full px-4 py-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-primary-200 focus:border-primary-300 focus:bg-white transition-all"}},null,8,["label"]),o(l,{name:"groupSize",label:r(f),type:"number",validation:"required|number|min:1","aria-required":!0,class:"formkit-input-styled",classes:{outer:"mb-5",label:"block text-sm font-medium mb-1",inner:"w-full",input:"w-full px-4 py-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-primary-200 focus:border-primary-300 focus:bg-white transition-all"}}
1,null,8,["label"]),o(l,{name:"preferredTime",label:r(g),type:"date",validation:"required","aria-required":!0,class:"formkit-input-styled",classes:{outer:"mb-5",label:"block text-sm font-medium mb-1",inner:"w-full",input:"w-full px-4 py-3 border border-gray-300 rounded-md bg-gray-50 focus:ring-2 focus:ring-primary-200 focus:border-primary-300 focus:bg-white transition-all"}},null,8,["label"]),o(l,{name:"preferredTimeOfVisit",label:r(y),type:"text",validation:"required","aria-required":!0,class:"formkit-input-styled",classes:{outer:"mb-5",label:"block text-sm font-medium mb-1",inner:"w-full",input:"w-full px-4 py-3 border border-gray-300 rounded-md bg-gray-50 focus:ring-2 focus:ring-primary-200 focus:border-primary-300 focus:bg-white transition-all"}},null,8,["label"]),o(l,{name:"tourLength",label:r(h),type:"select",options:P,validation:"required","aria-required":!0,class:"formkit-input-styled",classes:{outer:"mb-5",label:"block text-sm font-medium mb-1",inner:"w-full",input:"w-full px-4 py-3 border border-gray-300 rounded-md bg-gray-50 focus:ring-2 focus:ring-primary-200 focus:border-primary-300 focus:bg-white transition-all"}},null,8,["label"]),o(l,{name:"organization",label:r(x),validation:"required","aria-required":!0,class:"formkit-input-styled",classes:{outer:"mb-5",label:"block text-sm font-medium mb-1",inner:"w-full",input:"w-full px-4 py-3 border border-gray-300 rounded-md bg-gray-50 focus:ring-2 focus:ring-primary-200 focus:border-primary-300 focus:bg-white transition-all"}},null,8,["label"]),o(l,{name:"physicalAddress",label:r(w),validation:"required","aria-required":!0,class:"formkit-input-styled",classes:{outer:"mb-5",label:"block text-sm font-medium mb-1",inner:"w-full",input:"w-full px-4 py-3 border border-gray-300 rounded-md bg-gray-50 focus:ring-2 focus:ring-primary-200 focus:border-primary-300 focus:bg-white transition-all"}},null,8,["label"]),o(l,{name:"email",label:r(v),type:"email",validation:"required|email","aria-required":!0,autocomplete:"email",class:"formkit-input-styled",classes:{outer:"mb-5",label:"block text-sm font-medium mb-1",inner:"w-full",input:"w-full px-4 py-3 border border-gray-300 rounded-md bg-gray-50 focus:ring-2 focus:ring-primary-200 focus:border-primary-300 focus:bg-white transition-all"}},null,8,["label"]),o(l,{name:"backgroundOfGroup",label:r(k),type:"select",options:B,validation:"required","aria-required":!0,class:"formkit-input-styled",classes:{outer:"mb-5",label:"block text-sm font-medium mb-1",inner:"w-full",input:"w-full px-4 py-3 border border-gray-300 rounded-md bg-gray-50 focus:ring-2 focus:ring-primary-200 focus:border-primary-300 focus:bg-white transition-all"}},null,8,["label"]),o(l,{name:"lectures",label:r(T),type:"select",options:L,"aria-required":!1,class:"formkit-input-styled",classes:{outer:"mb-5",label:"block text-sm font-medium mb-1",inner:"w-full",input:"w-full px-4 py-3 border border-gray-300 rounded-md bg-gray-50 focus:ring-2 focus:ring-primary-200 focus:border-primary-300 focus:bg-white transition-all"}},null,8,["label"]),o(l,{name:"specialRequests",label:r(S),type:"textarea","aria-required":!1,rows:"4",class:"formkit-input-styled"},null,8,["label"]),i("div",M,[o(I,{type:"submit","aria-label":"Book tour",variant:"small",class:"bg-primary-500 hover:bg-primary-600 flex items-center gap-2 rounded-md px-6 py-3 text-white transition-colors"},{default:d(()=>[i("span",null,b(r(q)),1),o(G,{name:"lucide:arrow-right",class:"text-white",size:"1.25rem","aria-hidden":"true",role:"presentation"})]),_:1})])]),_:1}))]),_:1})])}}};export{$ 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.