1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[668432],{5662:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(95155),a=s(12115),l=s(20063),o=s(44897),n=s(48624),c=s(32354);let i=["places"];function d(e){let{title:t="Book Your Ride",subtitle:s="Enter your trip details to get started",templateData:d,viewportMode:m,siteId:u,siteSlug:x,chauffeurEnabled:h=!1,accentColor:g="#2563eb",accentColorHover:p="#1d4ed8",lang:b}=e,f=(0,l.useRouter)(),{locale:v,loading:y}=(0,c.e)("components/chauffeur/booking-widget",b),{formatPrice:j,getCurrencySymbol:N,distanceUnit:w}=(0,n.e)(m?null:u),[k,_]=(0,a.useState)(""),[C,S]=(0,a.useState)(""),[L,E]=(0,a.useState)(null),[M,T]=(0,a.useState)(null),[F,A]=(0,a.useState)({lat:48.8566,lng:2.3522}),[B,R]=(0,a.useState)(null),[P,I]=(0,a.useState)(null),[W,D]=(0,a.useState)(""),[V,z]=(0,a.useState)(""),[q,U]=(0,a.useState)(0),[H,O]=(0,a.useState)(0),[J,$]=(0,a.useState)("form"),[X,G]=(0,a.useState)([]),[K,Y]=(0,a.useState)(null),[Z,Q]=(0,a.useState)(!1),[ee,et]=(0,a.useState)(!1),[es,er]=(0,a.useState)(""),[ea,el]=(0,a.useState)(""),[eo,en]=(0,a.useState)(""),[ec,ei]=(0,a.useState)(""),[ed,em]=(0,a.useState)(!1),[eu,ex]=(0,a.useState)(null),[eh,eg]=(0,a.useState)(!1),[ep,eb]=(0,a.useState)(""),[ef,ev]=(0,a.useState)(""),[ey,ej]=(0,a.useState)(""),eN=(0,a.useRef)(null),ew=(0,a.useRef)(null),ek=(0,a.useRef)(null),e_=(0,a.useRef)(null),{isLoaded:eC}=(0,o.KD)({googleMapsApiKey:"AIzaSyBmUcr7sd6GBtHNgvf5Ay8f0tXKflrdtl0",libraries:i});(0,a.useEffect)(()=>{let e=localStorage.getItem("customer");if(e)try{let t=JSON.parse(e);ex(t.email),em(!0),el(t.email);let s="".concat(t.first_name||""," ").concat(t.last_name||"").trim()||t.email;er(s),en(t.phone||"")}catch(e){console.error("[BookingWidget] Error parsing customer data:",e)}},[]);let eS=(0,a.useCallback)(async()=>{if(u&&eu){console.log("\uD83D\uDD0D [BookingWidget] Fetching customer data for:",eu);
1try{let e=await fetch("/api/sites/".concat(u,"/chauffeur/customer-bookings?email=").concat(encodeURIComponent(eu)));if(e.ok){let t=(await e.json()).customer;if(console.log("\uD83D\uDC64 [BookingWidget] Customer data received:",t),t){el(t.email);let e=t.first_name||"",s=t.last_name||"",r="".concat(e," ").concat(s).trim();er(r),en(t.phone||""),console.log("â
[BookingWidget] Form prefilled:",{fullName:r,email:t.email,phone:t.phone})}}}catch(e){console.error("[BookingWidget] Failed to fetch customer data:",e)}}},[u,eu]);(0,a.useEffect)(()=>{ed&&eu&&u&&(console.log("\uD83D\uDE80 [BookingWidget] Triggering customer data fetch"),eS())},[ed,eu,u,eS]);let eL=async e=>{if(e.preventDefault(),ej(""),u)try{let e=await fetch("/api/sites/".concat(u,"/account/login"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:ep,password:ef})});if(!e.ok){let t=await e.json();ej(t.error||"Login failed");return}let t=await e.json();localStorage.setItem("customer",JSON.stringify(t.customer)),em(!0),ex(t.customer.email),eg(!1),eb(""),ev(""),el(t.customer.email);let s="".concat(t.customer.first_name||""," ").concat(t.customer.last_name||"").trim()||t.customer.email;er(s),en(t.customer.phone||"")}catch(e){console.error("[BookingWidget] Login error:",e),ej("An error occurred during login")}};(0,a.useEffect)(()=>{eC&&(eN.current&&!ek.current&&(ek.current=new google.maps.places.Autocomplete(eN.current,{types:["establishment","geocode"]}),ek.current.addListener("place_changed",()=>{var e,t;let s=null==(e=ek.current)?void 0:e.getPlace();if(null==s||null==(t=s.geometry)?void 0:t.location){let e=s.geometry.location.lat(),t=s.geometry.location.lng();if(_(s.formatted_address||""),E({lat:e,lng:t}),A({lat:e,lng:t}),M&&B){let s=new google.maps.LatLngBounds;s.extend({lat:e,lng:t}),s.extend(M),B.fitBounds(s)}}})),ew.current&&!e_.current&&(e_.current=new google.maps.places.Autocomplete(ew.current,{types:["establishment","geocode"]}),e_.current.addListener("place_changed",()=>{var e,t;let s=null==(e=e_.current)?void 0:e.getPlace();if(null==s||null==(t=s.geometry)?void 0:t.location){let e=s.geometry.location.lat(),t=s.geometry.location.lng();if(S(s.formatted_address||""),T({lat:e,lng:t}),L&&B){let s=new google.maps.LatLngBounds;s.extend(L),s.extend({lat:e,lng:t}),B.fitBounds(s)}}})))},[eC,M,L,B]),(0,a.useEffect)(()=>{eC&&L&&M&&new google.maps.DirectionsService().route({origin:L,destination:M,travelMode:google.maps.TravelMode.DRIVING},(e,t)=>{if("OK"===t&&e){I(e);let t=e.routes[0];if(t.legs[0]){var s,r;let e=(null==(s=t.legs[0].distance)?void 0:s.value)||0,a=(null==(r=t.legs[0].duration)?void 0:r.value)||0;U("miles"===w?e/1609.34:e/1e3),O(a)}}})},[eC,L,M,w]);let eE=async()=>{if(!k||!C||!W||!V)return void alert((null==v?void 0:v.alert_required_fields)||"Please fill in all required fields");if(!L||!M)return void alert((null==v?void 0:v.alert_valid_addresses)||"Please select valid addresses from the suggestions");if(0===q)return void alert((null==v?void 0:v.alert_calculating)||"Calculating route distance...");Q(!0);try{let e=await fetch("/api/sites/".concat(u,"/chauffeur/available-vehicles"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pickupLat:L.lat,pickupLng:L.lng,dropoffLat:M.lat,dropoffLng:M.lng,pickupDatetime:"".concat(W," ").concat(V),distance:q,duration:H})}),t=await e.json();if(!e.ok)throw Error(t.error||"Failed to fetch available vehicles");console.log("\uD83D\uDE97 Received vehicles from API:",t.vehicles),G(t.vehicles||[]),$("vehicles")}catch(e){console.error("Error fetching vehicles:",e),alert(e.message||"Failed to fetch available vehicles")}finally{Q(!1)}},eM=async()=>{if(!es||!ea)return void alert((null==v?void 0:v.alert_name_email)||"Please fill in your name and email");if(!K||!L||!M)return void alert((null==v?void 0:v.alert_missing_info)||"Missing booking information");et(!0);try{let e=await fetch("/api/sites/".concat(u,"/chauffeur/bookings"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vehicle_id:K.id,driver_id:K.available_driver_id,pickup_address:k,pickup_lat:L.lat,pickup_lng:L.lng,dropoff_address:C,dropoff_lat:M.lat,dropoff_lng:M.lng,pickup_datetime:"".concat(W,"T").concat(V,":00"),duration_seconds:H,distance_km:q,passenger_count:null,luggage_count:null,customer_email:ea,customer_name:es,customer_phone:eo||null,special_instructions:ec||null,base_price:K.base_price||0,distance_price:K.distance_price||0,subtotal:K.subtotal||K.calculatedPrice,tax_amount:K.tax_amount||0,total_price:K.calculatedPrice,currency:K.currency||"EUR"})});if(!e.ok){let t=await e.json();throw Error(t.error||"Failed to create booking")}let t=await e.json();if(t.requires_payment){let e="/sites/".concat(x,"/chauffeur-payment?client_secret=").concat(t.client_secret,"&booking_number=").concat(t.booking_number,"&booking_id=").concat(t.booking_id||"","&payment_amount=").concat(t.payment_amount);f.push(e)}else f.push("/sites/".concat(x,"/booking-confirmation?booking=").concat(t.booking_number))}catch(e){console.error("Error creating booking:",e),alert(e.message||"Failed to create booking")}finally{et(!1)}};return h?(0,r.jsx)("section",{className:"py-16 bg-gray-50",children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:(0,r.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,r.jsxs)("div",{className:"text-center mb-12",children:[(0,r.jsx)("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:t}),s&&(0,r.jsx)("p",{className:"text-xl text-gray-600",children:s})]}),(0,r.jsxs)("div",{className:"bg-white rounded-lg shadow-xl overflow-hidden",children:[(0,r.jsx)("div",{className:"bg-gray-50 px-6 py-4 border-b",children:(0,r.jsxs)("div",{className:"flex items-center justify-center space-x-4",children:[(0,r.jsxs)("div",{className:"flex items-center ".concat("form"===J?"text-gray-900 font-semibold":"text-gray-400"),children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-full flex items-center justify-center ".concat("form"===J?"bg-gray-900 text-white":"bg-gray-200"),children:"1"}),(0,r.jsx)("span",{className:"ml-2 hidden sm:inline",children:(null==v?void 0:v.step_1)||"Trip Details"})]}),(0,r.jsx)("div",{className:"w-12 h-0.5 bg-gray-200"}),(0,r.jsxs)("div",{className:"flex items-center ".concat("vehicles"===J?"text-gray-900 font-semibold":"text-gray-400"),children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-full flex items-center justify-center ".concat("vehicles"===J?"bg-gray-900 text-white":"bg-gray-200"),children:"2"}),(0,r.jsx)("span",{className:"ml-2 hidden sm:inline",children:(null==v?void 0:v.step_2)||"Select Vehicle"})]}),(0,r.jsx)("div",{className:"w-12 h-0.5 bg-gray-200"}),(0,r.jsxs)("div",{className:"flex items-center ".concat("summary"===J?"text-gray-900 font-semibold":"text-gray-400"),children:[(0,r.jsx)("div",{className:"w-8 h-8 rounded-full flex items-center justify-center ".concat("summary"===J?"bg-gray-900 text-white":"bg-gray-200"),children:"3"}),(0,r.jsx)("span",{className:"ml-2 hidden sm:inline",children:(null==v?void 0:v.step_3)||"Confirm"})]})]})}),(0,r.jsxs)("div",{className:"p-6",children:["form"===J&&(0,r.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:(null==v?void 0:v.pickup_address)||"Pickup Address *"}),(0,r.jsx)("input",{ref:eN,type:"text",value:k,onChange:e=>_(e.target.value),placeholder:(null==v?void 0:v.pickup_address_placeholder)||"Enter pickup address",className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-gray-900 focus:border-transparent"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:(null==v?void 0:v.dropoff_address)||"Dropoff Address *"}),(0,r.jsx)("input",{ref:ew,type:"text",value:C,onChange:e=>S(e.target.value),placeholder:(null==v?void 0:v.dropoff_address_placeholder)||"Enter dropoff address",className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-gray-900 focus:border-transparent"})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:(null==v?void 0:v.date)||"Date *"}),(0,r.jsx)("input",{type:"date",value:W,onChange:e=>D(e.target.value),min:new Date().toISOString().split("T")[0],className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-gray-900 focus:border-transparent"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:(null==v?void 0:v.time)||"Time *"}),(0,r.jsx)("input",{type:"time",value:V,onChange:e=>z(e.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-gray-900 focus:border-transparent"})]})]}),(0,r.jsx)("button",{onClick:eE,disabled:Z,className:"w-full px-8 py-3 bg-blue-600 text-white font-semibold rounded-lg hover:bg-blue-700 transition-colors disabled:opacity-50","data-accent":"true",children:Z?(null==v?void 0:v.searching)||"Searching...":(null==v?void 0:v.search_vehicles)||"Search Available Vehicles"})]}),(0,r.jsx)("div",{children:eC&&(0,r.jsxs)(o.u6,{mapContainerStyle:{width:"100%",height:"100%",minHeight:"400px",borderRadius:"0.5rem"},center:F,zoom:13,onLoad:R,options:{zoomControl:!0,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1},children:[L&&(0,r.jsx)(o.pH,{position:L,label:"A"}),M&&(0,r.jsx)(o.pH,{position:M,label:"B"}),P&&(0,r.jsx)(o.C,{directions:P,options:{suppressMarkers:!0}})]})})]}),"vehicles"===J&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("button",{onClick:()=>$("form"),className:"mb-6 text-gray-600 hover:text-gray-900 flex items-center",children:[(0,r.jsx)("svg",{className:"w-5 h-5 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),(null==v?void 0:v.back_to_trip_details)||"Back to Trip Details"]}
1),0===X.length?(0,r.jsx)("div",{className:"text-center py-12",children:(0,r.jsx)("p",{className:"text-gray-600 text-lg",children:(null==v?void 0:v.no_vehicles_available)||"No vehicles available for this trip."})}):(0,r.jsx)("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:X.map(e=>(0,r.jsxs)("div",{className:"bg-white rounded-xl border-2 border-gray-200 hover:border-blue-500 transition-colors overflow-hidden",children:[e.main_image_url?(0,r.jsx)("img",{src:e.main_image_url,alt:"".concat(e.make," ").concat(e.model),className:"w-full h-48 object-cover"}):(0,r.jsx)("div",{className:"w-full h-48 bg-gray-200 flex items-center justify-center",children:(0,r.jsx)("svg",{className:"w-20 h-20 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"})})}),(0,r.jsxs)("div",{className:"p-4",children:[(0,r.jsxs)("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:[e.make," ",e.model," ",e.year&&"(".concat(e.year,")")]}),e.description&&(0,r.jsx)("p",{className:"text-sm text-gray-600 mt-2 mb-3 line-clamp-2",children:e.description}),(0,r.jsxs)("div",{className:"flex gap-4 mt-3 text-sm text-gray-600",children:[(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)("img",{src:"/icons/user.svg",alt:"Passengers",className:"w-4 h-4"}),e.passengers," ",(null==v?void 0:v.passengers)||"passengers"]}),(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)("img",{src:"/icons/luggage.svg",alt:"Luggage",className:"w-4 h-4"}),e.luggage," ",(null==v?void 0:v.luggage)||"luggage"]})]}),(0,r.jsxs)("div",{className:"mt-4 pt-4 border-t border-gray-200",children:[(0,r.jsxs)("p",{className:"text-2xl font-bold text-gray-900",children:[N(),e.calculatedPrice.toFixed(2)]}),e.tax_included&&e.tax_amount>0&&(0,r.jsxs)("p",{className:"text-xs text-gray-500",children:["(",(null==v?void 0:v.incl)||"incl."," ",N(),e.tax_amount.toFixed(2)," ",(null==v?void 0:v.tax)||"tax",")"]}),(0,r.jsxs)("p",{className:"text-xs text-gray-500",children:[(null==v?void 0:v.total_for)||"Total for"," ",e.distanceKm.toFixed(1)," ",w]})]}),(0,r.jsx)("button",{onClick:()=>{Y(e),$("summary")},className:"w-full mt-4 px-4 py-3 bg-blue-600 text-white font-semibold rounded-lg hover:bg-blue-700 transition-colors","data-accent":"true",children:(null==v?void 0:v.select_vehicle)||"Select Vehicle"})]})]},e.id))})]}),"summary"===J&&K&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("button",{onClick:()=>$("vehicles"),className:"mb-6 text-gray-600 hover:text-gray-900 flex items-center",children:[(0,r.jsx)("svg",{className:"w-5 h-5 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),(null==v?void 0:v.back_to_vehicle_selection)||"Back to Vehicle Selection"]}),(0,r.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:(null==v?void 0:v.trip_summary)||"Trip Summary"}),(0,r.jsxs)("div",{className:"bg-gray-50 rounded-lg p-4 space-y-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm text-gray-600",children:(null==v?void 0:v.vehicle)||"Vehicle"}),(0,r.jsxs)("p",{className:"font-semibold",children:[K.make," ",K.model]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm text-gray-600",children:(null==v?void 0:v.pickup)||"Pickup"}),(0,r.jsx)("p",{className:"font-semibold",children:k})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm text-gray-600",children:(null==v?void 0:v.dropoff)||"Dropoff"}),(0,r.jsx)("p",{className:"font-semibold",children:C})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm text-gray-600",children:(null==v?void 0:v.date_time)||"Date & Time"}),(0,r.jsxs)("p",{className:"font-semibold",children:[W," ",(null==v?void 0:v.at)||"at"," ",V]})]}),(0,r.jsxs)("div",{className:"pt-3 border-t",children:[(0,r.jsx)("p",{className:"text-sm text-gray-600",children:(null==v?void 0:v.total_price)||"Total Price"}),(0,r.jsxs)("p",{className:"text-2xl font-bold text-gray-900",children:[N(),K.calculatedPrice.toFixed(2)]}),K.tax_included&&K.tax_amount>0&&(0,r.jsxs)("p",{className:"text-xs text-gray-500",children:["(",(null==v?void 0:v.incl)||"incl."," ",N(),K.tax_amount.toFixed(2)," ",(null==v?void 0:v.tax)||"tax",")"]}),(0,r.jsxs)("p",{className:"text-xs text-gray-500",children:[(null==v?void 0:v.total_for)||"Total for"," ",K.distanceKm.toFixed(1)," ",w]})]})]})]}),!ed&&(0,r.jsxs)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 mb-6",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold text-gray-900",children:(null==v?void 0:v.login_title)||"Returning Customer?"}),(0,r.jsx)("p",{className:"text-xs text-gray-600",children:(null==v?void 0:v.login_subtitle)||"Sign in to use your saved information"})]}),!eh&&(0,r.jsx)("button",{onClick:()=>eg(!0),className:"px-3 py-1.5 text-xs font-medium text-blue-700 bg-white border border-blue-300 rounded-lg hover:bg-blue-50",children:(null==v?void 0:v.sign_in)||"Sign In"})]}),eh&&(0,r.jsxs)("form",{onSubmit:eL,className:"space-y-3 mt-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs font-medium text-gray-700 mb-1",children:(null==v?void 0:v.email)||"Email"}),(0,r.jsx)("input",{type:"email",value:ep,onChange:e=>eb(e.target.value),required:!0,className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"[email protected]"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-xs font-medium text-gray-700 mb-1",children:(null==v?void 0:v.password)||"Password"}),(0,r.jsx)("input",{type:"password",value:ef,onChange:e=>ev(e.target.value),required:!0,className:"w-full px-3 py-2 text-sm border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),ey&&(0,r.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-2",children:(0,r.jsx)("p",{className:"text-xs text-red-800",children:ey})}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{type:"submit",className:"px-4 py-2 text-sm bg-blue-600 text-white rounded-lg hover:bg-blue-700 font-medium",children:(null==v?void 0:v.sign_in)||"Sign In"}),(0,r.jsx)("button",{type:"button",onClick:()=>{eg(!1),ej(""),eb(""),ev("")},className:"px-4 py-2 text-sm bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 font-medium",children:(null==v?void 0:v.cancel)||"Cancel"})]})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:(null==v?void 0:v.your_information)||"Your Information"}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:(null==v?void 0:v.full_name)||"Full Name *"}),(0,r.jsx)("input",{type:"text",value:es,onChange:e=>er(e.target.value),placeholder:(null==v?void 0:v.full_name_placeholder)||"John Doe",className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-gray-900 focus:border-transparent"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:(null==v?void 0:v.email_address)||"Email Address *"}),(0,r.jsx)("input",{type:"email",value:ea,onChange:e=>el(e.target.value),placeholder:(null==v?void 0:v.email_placeholder)||"[email protected]",className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-gray-900 focus:border-transparent"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:(null==v?void 0:v.phone_number)||"Phone Number *"}),(0,r.jsx)("input",{type:"tel",value:eo,onChange:e=>en(e.target.value),placeholder:(null==v?void 0:v.phone_placeholder)||"+33 6 12 34 56 78",className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-gray-900 focus:border-transparent"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:(null==v?void 0:v.special_instructions)||"Special Instructions"}),(0,r.jsx)("textarea",{value:ec,onChange:e=>ei(e.target.value),placeholder:(null==v?void 0:v.special_instructions_placeholder)||"Any special requests or notes...",rows:3,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-gray-900 focus:border-transparent"})]}),(0,r.jsx)("button",{onClick:eM,disabled:ee,className:"w-full px-8 py-3 bg-blue-600 text-white font-semibold rounded-lg hover:bg-blue-700 transition-colors disabled:opacity-50","data-accent":"true",children:ee?(null==v?void 0:v.processing)||"Processing...":(null==v?void 0:v.confirm_booking)||"Confirm Booking"})]})]})]})]})]})]})]})})}):(0,r.jsx)("section",{className:"py-16 bg-gray-50",children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:(0,r.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,r.jsxs)("div",{className:"bg-white rounded-lg shadow-lg p-8 text-center",children:[(0,r.jsx)("div",{className:"text-gray-400 mb-4",children:(0,r.jsx)("svg",{className:"w-16 h-16 mx-auto",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})}),(0,r.jsx)("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:(null==v?void 0:v.disabled_title)||"Chauffeur Service Not Activated"}),(0,r.jsx)("p",{className:"text-gray-600",children:(null==v?void 0:v.disabled_message)||"Please activate the chauffeur service to enable bookings."})]})})})})}},7045:(e,t,s)=>{s.d(t,{A:()=>c});var r=s(95155),a=s(12115),l=s(52619),o=s.n(l),n=s(32354);function c(e){let{title:t="Our Fleet",subtitle:s,rows:l=1,columns:c=3,mobileRows:i=2,mobileColumns:d=1,autoPlay:m=!1,autoPlaySpeed:u=3e3,showNavigation:x=!0,showPagination:h=!0,enableAnimations:g=!0,templateData:p,viewportMode:b,siteId:f,siteSlug:v,chauffeurEnabled:y=!1,accentColor:j="#fe330a",accentColorHover:N="#e02e09",lang:w}=e,{locale:k,loading:_}
1=(0,n.e)("components/chauffeur/vehicle-carousel",w),[C,S]=(0,a.useState)([]),[L,E]=(0,a.useState)(!0),[M,T]=(0,a.useState)(0),[F,A]=(0,a.useState)("EUR"),[B,R]=(0,a.useState)(!1),P=(0,a.useRef)(null),I=(0,a.useRef)(0),W=(0,a.useRef)(0),D=(0,a.useRef)(null),V=b?"mobile"===b?d:"tablet"===b?Math.min(c,2):c:d,z=("mobile"===b?i:b?l:i)*V,q=Math.ceil(C.length/z);(0,a.useEffect)(()=>{if(b)return void E(!1);f&&y?U():E(!1)},[f,y,b]),(0,a.useEffect)(()=>{if(m&&C.length>z&&y)return P.current=setInterval(()=>{T(e=>(e+1)%q)},u),()=>{P.current&&clearInterval(P.current)}},[m,u,C.length,z,q,y]);let U=async()=>{if(f)try{E(!0);let e=await fetch("/api/sites/".concat(f,"/chauffeur/settings"));if(e.ok){let t=await e.json();A(t.currency||"EUR")}let t=await fetch("/api/sites/".concat(f,"/chauffeur/vehicles"));if(!t.ok)throw Error("Failed to load vehicles");let s=(await t.json()).vehicles||[];s=s.filter(e=>"active"===e.status),S(s)}catch(e){console.error("Error loading vehicles for carousel:",e),S([])}finally{E(!1)}},H=e=>{B||(R(!0),T(e),P.current&&clearInterval(P.current),setTimeout(()=>{R(!1)},500))},O=()=>{H(0===M?q-1:M-1)},J=()=>{H((M+1)%q)};if(!y)return(0,r.jsxs)("section",{className:"py-16 bg-gray-50 relative",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-white/60 backdrop-blur-sm z-10 flex items-center justify-center",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-lg border-2 border-gray-200 p-8 max-w-md text-center",children:[(0,r.jsx)("div",{className:"w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,r.jsx)("svg",{className:"w-8 h-8 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"})})}),(0,r.jsx)("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:(null==k?void 0:k.disabled_title)||"Chauffeur Service Not Enabled"}),(0,r.jsx)("p",{className:"text-gray-600 mb-6",children:(null==k?void 0:k.disabled_message)||"This vehicle carousel requires the chauffeur service to be enabled. Activate it to showcase your fleet on your website."}),(0,r.jsxs)(o(),{href:"/dashboard/sites/".concat(f,"/chauffeur"),className:"inline-flex items-center px-6 py-3 bg-[#fe330a] text-white font-semibold rounded-lg hover:bg-[#e02e09] transition-colors",children:[(0,r.jsx)("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),"Activate Chauffeur Service"]})]})}),(0,r.jsx)("div",{className:"container mx-auto px-4 opacity-30 pointer-events-none",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[t&&(0,r.jsx)("h2",{className:"text-4xl font-bold text-gray-900 text-center mb-4",children:t}),s&&(0,r.jsx)("p",{className:"text-xl text-gray-600 text-center mb-12",children:s}),(0,r.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:"repeat(".concat(Math.min(c,3),", 1fr)")},children:[...Array(z)].map((e,t)=>(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden",children:[(0,r.jsx)("div",{className:"aspect-video bg-gray-200"}),(0,r.jsxs)("div",{className:"p-4",children:[(0,r.jsx)("div",{className:"h-6 bg-gray-200 rounded mb-2"}),(0,r.jsx)("div",{className:"h-4 bg-gray-100 rounded w-2/3"})]})]},t))})]})})]});if(L)return(0,r.jsx)("section",{className:"py-16 bg-gray-50",children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[t&&(0,r.jsx)("h2",{className:"text-4xl font-bold text-gray-900 text-center mb-4",children:t}),(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-gray-900"})})]})})});if(0===C.length)return(0,r.jsx)("section",{className:"py-16 bg-gray-50",children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[t&&(0,r.jsx)("h2",{className:"text-4xl font-bold text-gray-900 text-center mb-4",children:t}),s&&(0,r.jsx)("p",{className:"text-xl text-gray-600 text-center mb-12",children:s}),(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-12 text-center",children:[(0,r.jsx)("div",{className:"w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,r.jsx)("svg",{className:"w-8 h-8 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"})})}),(0,r.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:(null==k?void 0:k.no_vehicles_title)||"
1No Vehicles Available"}),(0,r.jsx)("p",{className:"text-gray-600",children:(null==k?void 0:k.no_vehicles_message)||"No active vehicles available at the moment. Check back soon!"})]})]})})});let $=M*z;return C.slice($,$+z),(0,r.jsx)("section",{className:"py-16 bg-gray-50",children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(t||s)&&(0,r.jsxs)("div",{className:"text-center mb-12",children:[t&&(0,r.jsx)("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:t}),s&&(0,r.jsx)("p",{className:"text-xl text-gray-600",dangerouslySetInnerHTML:{__html:s}})]}),(0,r.jsxs)("div",{className:"relative",children:[x&&q>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{onClick:O,disabled:B,className:"absolute left-0 top-1/2 -translate-y-1/2 -translate-x-4 lg:-translate-x-12 z-10 w-12 h-12 bg-white rounded-full shadow-lg border border-gray-200 flex items-center justify-center hover:bg-gray-50 transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",style:{focusRingColor:j},"aria-label":"Previous page",children:(0,r.jsx)("svg",{className:"w-6 h-6 text-gray-700",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),(0,r.jsx)("button",{onClick:J,disabled:B,className:"absolute right-0 top-1/2 -translate-y-1/2 translate-x-4 lg:translate-x-12 z-10 w-12 h-12 bg-white rounded-full shadow-lg border border-gray-200 flex items-center justify-center hover:bg-gray-50 transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",style:{focusRingColor:j},"aria-label":"Next page",children:(0,r.jsx)("svg",{className:"w-6 h-6 text-gray-700",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]}),(0,r.jsx)("div",{className:"overflow-hidden",ref:D,onTouchStart:e=>{I.current=e.touches[0].clientX},onTouchMove:e=>{W.current=e.touches[0].clientX},onTouchEnd:()=>{if(!I.current||!W.current)return;let e=I.current-W.current;50>Math.abs(e)||(e>0?J():O(),I.current=0,W.current=0)},children:(0,r.jsx)("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:"translateX(-".concat(100*M,"%)")},children:[...Array(q)].map((e,t)=>{let s=t*z,a=C.slice(s,s+z);return(0,r.jsx)("div",{className:"flex-shrink-0 w-full",children:(0,r.jsxs)("div",{className:"grid gap-6 vehicle-carousel-grid-".concat(t),style:{gridTemplateColumns:b?"repeat(".concat(V,", 1fr)"):void 0,"--mobile-cols":d,"--tablet-cols":Math.min(c,2),"--desktop-cols":c},children:[!b&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n .vehicle-carousel-grid-".concat(t," {\n grid-template-columns: repeat(").concat(d,", 1fr);\n }\n @media (min-width: 640px) {\n .vehicle-carousel-grid-").concat(t," {\n grid-template-columns: repeat(").concat(Math.min(c,2),", 1fr);\n }\n }\n @media (min-width: 1024px) {\n .vehicle-carousel-grid-").concat(t," {\n grid-template-columns: repeat(").concat(c,", 1fr);\n }\n }\n ")}}),a.map(e=>{let t;return(0,r.jsxs)(o(),{href:"/sites/".concat(v,"/booking"),className:"group bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden hover:shadow-md transition-shadow flex flex-col",children:[(0,r.jsx)("div",{className:"aspect-video bg-gray-100 overflow-hidden flex-shrink-0",children:e.main_image_url?(0,r.jsx)("img",{src:e.main_image_url,alt:"".concat(e.make," ").concat(e.model),className:"w-full h-full object-cover ".concat(g?"group-hover:scale-105 transition-transform duration-300":"")}):(0,r.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,r.jsx)("svg",{className:"w-16 h-16 text-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"})})})}),(0,r.jsxs)("div",{className:"p-4 flex flex-col flex-grow",children:[(0,r.jsxs)("h3",{className:"font-semibold text-gray-900 mb-1 transition-colors text-lg",style:{color:g?void 0:"#111827"},onMouseEnter:e=>{g&&(e.currentTarget.style.color=j)},onMouseLeave:e=>{g&&(e.currentTarget.style.color="#111827")},children:[e.make," ",e.model]}),e.year&&(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-2",children:e.year}),e.description&&(0,r.jsx)("p",{className:"text-sm text-gray-600 mb-3 line-clamp-2",children:e.description}),(0,r.jsxs)("div",{className:"flex items-center gap-4 text-sm text-gray-600 mb-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("img",{src:"/icons/user.svg",alt:"Passengers",className:"w-4 h-4"}),(0,r.jsx)("span",{children:e.passenger_capacity})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("img",{src:"/icons/luggage.svg",alt:"Luggage",className:"w-4 h-4"}
1),(0,r.jsx)("span",{children:e.luggage_capacity})]})]}),(0,r.jsx)("div",{className:"mt-auto pt-2 border-t border-gray-100",children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-sm text-gray-600",children:(null==k?void 0:k.from)||"From"}),(0,r.jsx)("span",{className:"text-lg font-bold text-gray-900",children:(t=e.base_price,new Intl.NumberFormat("en-US",{style:"currency",currency:F}).format(t/100))})]})})]})]},e.id)})]})},t)})})})]}),h&&q>1&&(0,r.jsx)("div",{className:"flex items-center justify-center mt-8 space-x-2",children:[...Array(q)].map((e,t)=>(0,r.jsx)("button",{onClick:()=>H(t),className:"w-2.5 h-2.5 rounded-full transition-all ".concat(M===t?"w-8":"hover:opacity-75"),style:{backgroundColor:M===t?j:"#d1d5db"},"aria-label":"Go to page ".concat(t+1)},t))})]})})})}},7641:(e,t,s)=>{s.d(t,{Kt:()=>n,TU:()=>i,jh:()=>o,ze:()=>c});let r=["wondergeorge.com","wonder-george.com","localhost","vercel.app"],a=e=>{let t=e.toLowerCase().split(":")[0].replace(/\.$/,"");return r.some(e=>t.includes(e))},l=["lang","preview","template"],o=e=>{if(!e)return"";let t=new URLSearchParams;for(let s of l){let r=e.get(s);r&&t.set(s,r)}let s=t.toString();return s?"?".concat(s):""},n=e=>e?(e=>e?!a(e):!a(window.location.hostname))()?"":"/sites/".concat(e):"",c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return"#";let r=n(e),a=t.replace(/^\/+/,""),l=s?s.startsWith("?")?s:"?".concat(s):"",o=a?"".concat(r,"/").concat(a):r||"/";return"".concat(o).concat(l)},i=(e,t,s)=>c(e,t,s||"")},8610:(e,t,s)=>{s.d(t,{A:()=>c});var r=s(95155),a=s(12115),l=s(52619),o=s.n(l),n=s(32354);function c(e){let{title:t="Our Courses",subtitle:s,categories:l=[],columns:c=3,mobileColumns:i=1,showAllLink:d=!0,maxCourses:m,templateData:u,viewportMode:x,siteId:h,siteSlug:g,elearningEnabled:p=!1,accentColor:b="#2563eb",accentColorHover:f="#1d4ed8",langParam:v}=e,[y,j]=(0,a.useState)([]),[N,w]=(0,a.useState)(!0),[k,_]=(0,a.useState)("EUR"),C=(0,a.useRef)(!1),S=(0,a.useId)().replace(/:/g,""),L="course-list-grid-".concat(S),E=(0,a.useMemo)(()=>l,[JSON.stringify(l)]),{locale:M,loading:T}=(0,n.e)("components/elearning/course-list",v||null),F=x?"mobile"===x?i:"tablet"===x?2:c:c;(0,a.useEffect)(()=>{h&&p&&!C.current?(A(),C.current=!0):h&&p||w(!1)},[h,p]);let A=async()=>{if(h)try{w(!0);let t=await fetch("/api/sites/".concat(h,"/elearning/settings"));if(t.ok){var e;let s=await t.json();_((null==(e=s.settings)?void 0:e.currency)||"EUR")}let s=new URLSearchParams;E.length>0&&E.forEach(e=>s.append("category",e));let r=await fetch("/api/sites/".concat(h,"/elearning/courses?").concat(s.toString())),a=await r.json();if(r.ok){let e=(a.courses||[]).filter(e=>e.is_published);m&&m>0&&(e=e.slice(0,m)),j(e)}}catch(e){console.error("Error loading courses:",e),j([])}finally{w(!1)}};return p?N||T?(0,r.jsx)("div",{className:"py-12 px-4",children:(0,r.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,r.jsxs)("div",{className:"animate-pulse",children:[(0,r.jsx)("div",{className:"h-8 bg-gray-200 rounded w-64 mb-8"}),(0,r.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:"repeat(".concat(F,", minmax(0, 1fr))")},children:[1,2,3].map(e=>(0,r.jsx)("div",{className:"bg-gray-100 h-80 rounded-xl"},e))})]})})}):0===y.length?(0,r.jsx)("div",{className:"py-12 px-4",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto text-center",children:[(0,r.jsx)("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:t||(null==M?void 0:M.default_title)||"Our Courses"}),s&&(0,r.jsx)("p",{className:"text-gray-600 mb-8",children:s}),(0,r.jsx)("p",{className:"text-gray-500",children:(null==M?void 0:M.no_courses)||"Your courses will show here."})]})}):(0,r.jsx)("div",{className:"py-12 px-4",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,r.jsxs)("div",{className:"text-center mb-8",children:[(0,r.jsx)("h2",{className:"text-3xl font-bold text-gray-900 mb-2",children:t}),s&&(0,r.jsx)("p",{className:"text-gray-600",children:s})]}),(0,r.jsxs)("div",{className:"grid gap-6 ".concat(L),style:x?{gridTemplateColumns:"repeat(".concat(F,", minmax(0, 1fr))")}:void 0,children:[!x&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n .".concat(L," {\n grid-template-columns: repeat(").concat(i,", 1fr);\n }\n @media (min-width: 640px) {\n .").concat(L," {\n grid-template-columns: repeat(").concat(Math.min(c,2),", 1fr);\n }\n }\n @media (min-width: 1024px) {\n .").concat(L," {\n grid-template-columns: repeat(").concat(c,", 1fr);\n }\n }\n ")}}),y.map(e=>(0,r.jsxs)(o(),{href:"/sites/".concat(g,"/courses/").concat(e.slug).concat(v?"?lang=".concat(v):""),className:"group bg-white rounded-xl shadow-md hover:shadow-xl transition-shadow duration-300 overflow-hidden",children:[(0,r.jsx)("div",{className:"relative w-full overflow-hidden",style:{paddingBottom:"56.25%"},children:e.cover_image_url?(0,r.jsx)("img",{src:e.cover_image_url,alt:e.title,className:"absolute inset-0 w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}):(0,r.jsx)("div",{className:"absolute inset-0 w-full h-full flex items-center justify-center bg-gray-200",children:(0,r.jsx)("svg",{className:"w-16 h-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"})})})}),(0,r.jsxs)("div",{className:"p-4",children:[(0,r.jsx)("h3",{className:"font-bold text-lg text-gray-900 mb-2 line-clamp-2 transition-colors",style:{color:"inherit"},onMouseEnter:e=>{e.currentTarget.style.color=b},onMouseLeave:e=>{e.currentTarget.style.color="inherit"},children:e.title}),e.short_description&&(0,r.jsx)("p",{className:"text-sm text-gray-600 mb-3 line-clamp-2",children:e.short_description}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-xl font-bold",style:{color:b},children:e.is_free?(null==M?void 0:M.free)||"FREE":"".concat({EUR:"â¬",USD:"$",GBP:"\xa3",CHF:"CHF",JPY:"\xa5",CNY:"\xa5",CAD:"C$",AUD:"A$",INR:"â¹",BRL:"R$",MXN:"MX$",ZAR:"R",SEK:"kr",NZD:"NZ$"}[k]||k).concat(e.price.toFixed(2))}),(0,r.jsx)("button",{className:"px-4 py-2 rounded-lg text-sm font-semibold text-white transition-colors",style:{backgroundColor:b},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=f},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=b},children:(null==M?void 0:M.view_course)||"View Course"})]})]})]},e.id))]}),d&&(0,r.jsx)("div",{className:"text-center mt-8",children:(0,r.jsx)(o(),{href:"/sites/".concat(g,"/courses").concat(v?"?lang=".concat(v):""),className:"inline-block px-6 py-3 rounded-lg font-semibold text-white transition-colors",style:{backgroundColor:b},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=f},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=b}
1,children:(null==M?void 0:M.view_all_courses)||"View All Courses"})})]})}):null}},9122:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(95155);function a(e){let{children:t}=e;return(0,r.jsx)("section",{className:"py-16 flex-grow bg-white",children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:t})})}},12464:(e,t,s)=>{s.d(t,{A:()=>c});var r=s(95155),a=s(12115),l=s(52619),o=s.n(l),n=s(32354);function c(e){let{title:t="Featured Courses",subtitle:s,categories:l=[],rows:c=1,columns:i=4,mobileRows:d=2,mobileColumns:m=1,autoPlay:u=!1,autoPlaySpeed:x=3e3,showNavigation:h=!0,showPagination:g=!0,enableAnimations:p=!0,templateData:b,viewportMode:f,siteId:v,siteSlug:y,elearningEnabled:j=!1,accentColor:N="#2563eb",accentColorHover:w="#1d4ed8",langParam:k}=e,[_,C]=(0,a.useState)([]),[S,L]=(0,a.useState)(!0),[E,M]=(0,a.useState)(0),[T,F]=(0,a.useState)(!1),[A,B]=(0,a.useState)("EUR"),[R,P]=(0,a.useState)(0),I=(0,a.useRef)(!1),W=(0,a.useRef)(null),D=(0,a.useRef)(0),V=(0,a.useRef)(0),z=(0,a.useRef)(null),q=(0,a.useId)().replace(/:/g,""),U="course-carousel-grid-".concat(q),H=(0,a.useMemo)(()=>l,[JSON.stringify(l)]),{locale:O,loading:J}=(0,n.e)("components/elearning/course-carousel",k||null);(0,a.useEffect)(()=>{if(f)return;let e=()=>{P(window.innerWidth)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[f]);let $=f?"mobile"===f?m:"tablet"===f?Math.min(i,2):i:R>=1024?i:R>=640?Math.min(i,2):m,X=("mobile"===f?d:f||R>=640?c:d)*$,G=Math.ceil(_.length/X);(0,a.useEffect)(()=>{v&&j&&!I.current?(K(),I.current=!0):v&&j||L(!1)},[v,j]);let K=async()=>{if(v)try{L(!0);let t=await fetch("/api/sites/".concat(v,"/elearning/settings"));if(t.ok){var e;let s=await t.json();B((null==(e=s.settings)?void 0:e.currency)||"EUR")}let s=new URLSearchParams;H.length>0&&H.forEach(e=>s.append("category",e));let r=await fetch("/api/sites/".concat(v,"/elearning/courses?").concat(s.toString())),a=await r.json();if(r.ok){let e=(a.courses||[]).filter(e=>e.is_published);C(e)}}catch(e){console.error("Error loading courses:",e),C([])}finally{L(!1)}},Y=()=>{T||E>=G-1||(F(!0),M(e=>e+1),setTimeout(()=>F(!1),300))},Z=()=>{T||E<=0||(F(!0),M(e=>e-1),setTimeout(()=>F(!1),300))};if((0,a.useEffect)(()=>{if(u&&_.length>X&&!T)return W.current=setInterval(()=>{M(e=>e>=G-1?0:e+1)},x),()=>{W.current&&clearInterval(W.current)}},[u,x,_.length,X,G,T]),!j)return null;if(S||J)return(0,r.jsx)("div",{className:"py-12 px-4",children:(0,r.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,r.jsxs)("div",{className:"animate-pulse",children:[(0,r.jsx)("div",{className:"h-8 bg-gray-200 rounded w-64 mb-8"}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[1,2,3,4].map(e=>(0,r.jsx)("div",{className:"bg-gray-100 h-80 rounded-xl"},e))})]})})});if(0===_.length)return(0,r.jsx)("div",{className:"py-12 px-4",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto text-center",children:[(0,r.jsx)("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:t||(null==O?void 0:O.default_title)||"Featured Courses"}),s&&(0,r.jsx)("p",{className:"text-gray-600 mb-8",children:s}),(0,r.jsx)("p",{className:"text-gray-500",children:(null==O?void 0:O.no_courses)||"Your courses will show here."})]})});let Q=E*X,ee=_.slice(Q,Q+X);return(0,r.jsx)("div",{className:"py-12 px-4",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,r.jsxs)("div",{className:"text-center mb-8",children:[(0,r.jsx)("h2",{className:"text-3xl font-bold text-gray-900 mb-2",children:t}),s&&(0,r.jsx)("p",{className:"text-gray-600",children:s})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{ref:z,className:"overflow-hidden",onTouchStart:e=>{D.current=e.touches[0].clientX},onTouchMove:e=>{V.current=e.touches[0].clientX},onTouchEnd:()=>{D.current-V.current>50?Y():V.current-D.current>50&&Z()},children:(0,r.jsxs)("div",{className:"grid gap-6 ".concat(U," ").concat(p?"transition-all duration-300":""),style:f?{gridTemplateColumns:"repeat(".concat($,", minmax(0, 1fr))")}:void 0,children:[!f&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n .".concat(U," {\n grid-template-columns: repeat(").concat(m,", 1fr);\n }\n @media (min-width: 640px) {\n .").concat(U," {\n grid-template-columns: repeat(").concat(Math.min(i,2),", 1fr);\n }\n }\n @media (min-width: 1024px) {\n .").concat(U," {\n grid-template-columns: repeat(").concat(i,", 1fr);\n }\n }\n ")}}),ee.map(e=>(0,r.jsxs)(o(),{href:"/sites/".concat(y,"/courses/").concat(e.slug).concat(k?"?lang=".concat(k):""),className:"group bg-white rounded-xl shadow-md hover:shadow-xl transition-shadow duration-300 overflow-hidden",children:[(0,r.jsx)("div",{className:"relative w-full overflow-hidden",style:{paddingBottom:"56.25%"},children:e.cover_image_url?(0,r.jsx)("img",{src:e.cover_image_url,alt:e.title,className:"absolute inset-0 w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}):(0,r.jsx)("div",{className:"absolute inset-0 w-full h-full flex items-center justify-center bg-gray-200",children:(0,r.jsx)("svg",{className:"w-16 h-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"})})})}),(0,r.jsxs)("div",{className:"p-4",children:[(0,r.jsx)("h3",{className:"font-bold text-lg text-gray-900 mb-2 line-clamp-2 transition-colors",style:{color:"inherit"},onMouseEnter:e=>{e.currentTarget.style.color=N},onMouseLeave:e=>{e.currentTarget.style.color="inherit"},children:e.title}),e.short_description&&(0,r.jsx)("p",{className:"text-sm text-gray-600 mb-3 line-clamp-2",children:e.short_description}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-xl font-bold",style:{color:N},children:e.is_free?(null==O?void 0:O.free)||"FREE":"".concat({EUR:"â¬",USD:"$",GBP:"\xa3",CHF:"CHF",JPY:"\xa5",CNY:"\xa5",CAD:"C$",AUD:"A$",INR:"â¹",BRL:"R$",MXN:"MX$",ZAR:"R",SEK:"kr",NZD:"NZ$"}[A]||A).concat(e.price.toFixed(2))}),(0,r.jsx)("button",{className:"px-4 py-2 rounded-lg text-sm font-semibold text-white transition-colors",style:{backgroundColor:N},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=w},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=N},children:(null==O?void 0:O.view_course)||"View Course"})]})]})]},e.id))]})}),h&&G>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{onClick:Z,disabled:0===E,className:"absolute left-0 top-1/2 -translate-y-1/2 -translate-x-4 bg-white rounded-full p-3 shadow-lg disabled:opacity-50 disabled:cursor-not-allowed hover:bg-gray-50 transition-colors z-10","aria-label":"Previous",children:(0,r.jsx)("svg",{className:"w-6 h-6 text-gray-700",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),(0,r.jsx)("button",{onClick:Y,disabled:E>=G-1,className:"absolute right-0 top-1/2 -translate-y-1/2 translate-x-4 bg-white rounded-full p-3 shadow-lg disabled:opacity-50 disabled:cursor-not-allowed hover:bg-gray-50 transition-colors z-10","aria-label":"Next",children:(0,r.jsx)("svg",{className:"w-6 h-6 text-gray-700",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]})]}),g&&G>1&&(0,r.jsx)("div",{className:"flex justify-center gap-2 mt-8",children:Array.from({length:G}).map((e,t)=>(0,r.jsx)("button",{onClick:()=>{!T&&t!==E&&(F(!0),M(t),setTimeout(()=>F(!1),300))},className:"w-3 h-3 rounded-full transition-all ".concat(E===t?"w-8":""),style:{backgroundColor:E===t?N:"#d1d5db"},"aria-label":"Go to page ".concat(t+1)},t))})]})})}},16137:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(95155),a=s(45081),l=s(14749),o=s(52446);function n(e){let{title:t,videoUrl:s,enableAnimations:n=!0,templateData:c}=e,{ref:i,animationClasses:d}=(0,a.r9)({animationType:"fadeIn",delay:200,duration:800,disabled:!n}),m=(0,o.fq)(c,"section"),u=(0,o.G9)(c),x=(0,o.Ql)(c),h=(0,o.JS)(c),g=(0,o.CS)(c),p=(e=>{if(!e)return"";let t=e.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/);if(t&&t[1])return"https://www.youtube.com/embed/".concat(t[1]);let s=e.match(/vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|)(\d+)(?:$|\/|\?)/);return s&&s[1]?"https://player.vimeo.com/video/".concat(s[1]):e})(s);return(0,r.jsx)("section",{className:"py-16 lg:py-24 bg-white ".concat(m," ").concat(x?"border-8 border-black":""," ").concat(g?"shadow-[16px_16px_0px_#1a1a1a]":""),children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t&&(0,r.jsx)("div",{className:"text-center mb-12",children:(0,r.jsx)(l.xn,{as:"h2",className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-gray-900 ".concat(u?"font-black uppercase tracking-wider":""," ").concat(h?"uppercase":""),children:t})}),(0,r.jsx)("div",{ref:i,className:d,children:(0,r.jsx)("div",{className:"relative aspect-video",children:p?(0,r.jsx)("iframe",{src:p,className:"w-full h-full ".concat(u?"border-6 border-black shadow-[12px_12px_0px_#1a1a1a]":"rounded-lg shadow-lg"),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:t||"Video"}):(0,r.jsx)("div",{className:"w-full h-full flex items-center justify-center bg-gray-200 ".concat(u?"border-6 border-black":"rounded-lg"),children:(0,r.jsx)("p",{className:"text-gray-500",children:"No video URL provided"})})})})]})})}},16375:(e,t,s)=>{s.d(t,{A:()=>
1o});var r=s(95155),a=s(52619),l=s.n(a);function o(e){let{formData:t,error:s,loading:a,locale:o,accentColor:n,accentColorHover:c,slug:i,langQuery:d,handleChange:m,handleSubmit:u}=e;return(0,r.jsx)("main",{className:"flex-1 py-12 px-4",style:{backgroundColor:"#efeeea"},children:(0,r.jsxs)("div",{className:"max-w-md mx-auto",children:[(0,r.jsx)("h1",{className:"text-3xl font-bold text-center mb-2",style:{color:"#2b302b"},children:(null==o?void 0:o.create_account)||"Create Account"}),(0,r.jsx)("p",{className:"text-center mb-8",style:{color:"#50483F"},children:(null==o?void 0:o.join_us_today)||"Join us today"}),(0,r.jsxs)("div",{className:"shadow-md p-8",style:{backgroundColor:"#2b302b"},children:[(0,r.jsxs)("form",{onSubmit:u,className:"space-y-4",children:[s&&(0,r.jsx)("div",{className:"bg-red-50 border border-red-200 text-red-600 px-4 py-3",children:s}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"first_name",className:"block text-sm font-medium mb-2",style:{color:"#efeeea"},children:(null==o?void 0:o.first_name)||"First Name"}),(0,r.jsx)("input",{id:"first_name",name:"first_name",type:"text",value:t.first_name,onChange:m,className:"w-full px-4 py-2 border-2 border-[#50483F] focus:border-transparent",style:{backgroundColor:"#ffffff",color:"#2b302b",outline:"none",boxShadow:"none"},onFocus:e=>{e.target.style.backgroundColor="#ffffff",e.target.style.borderColor=n,e.target.style.boxShadow="0 0 0 2px ".concat(n,"40")},onBlur:e=>{e.target.style.backgroundColor="#ffffff",e.target.style.borderColor="#50483F",e.target.style.boxShadow="none"},disabled:a})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"last_name",className:"block text-sm font-medium mb-2",style:{color:"#efeeea"},children:(null==o?void 0:o.last_name)||"Last Name"}),(0,r.jsx)("input",{id:"last_name",name:"last_name",type:"text",value:t.last_name,onChange:m,className:"w-full px-4 py-2 border-2 border-[#50483F] focus:border-transparent",style:{backgroundColor:"#ffffff",color:"#2b302b",outline:"none",boxShadow:"none"},onFocus:e=>{e.target.style.backgroundColor="#ffffff",e.target.style.borderColor=n,e.target.style.boxShadow="0 0 0 2px ".concat(n,"40")},onBlur:e=>{e.target.style.backgroundColor="#ffffff",e.target.style.borderColor="#50483F",e.target.style.boxShadow="none"},disabled:a})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{htmlFor:"email",className:"block text-sm font-medium mb-2",style:{color:"#efeeea"},children:[(null==o?void 0:o.email)||"Email"," *"]}),(0,r.jsx)("input",{id:"email",name:"email",type:"email",value:t.email,onChange:m,required:!0,className:"w-full px-4 py-2 border-2 border-[#50483F] focus:border-transparent",style:{color:"#2b302b",outline:"none",boxShadow:"none"},onFocus:e=>{e.target.style.borderColor=n,e.target.style.boxShadow="0 0 0 2px ".concat(n,"40")},onBlur:e=>{e.target.style.borderColor="#50483F",e.target.style.boxShadow="none"},disabled:a})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"phone",className:"block text-sm font-medium mb-2",style:{color:"#efeeea"},children:(null==o?void 0:o.phone)||"Phone"}),(0,r.jsx)("input",{id:"phone",name:"phone",type:"tel",value:t.phone,onChange:m,className:"w-full px-4 py-2 border-2 border-[#50483F] focus:border-transparent",style:{color:"#2b302b",outline:"none",boxShadow:"none"},onFocus:e=>{e.target.style.borderColor=n,e.target.style.boxShadow="0 0 0 2px ".concat(n,"40")},onBlur:e=>{e.target.style.borderColor="#50483F",e.target.style.boxShadow="none"},disabled:a})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{htmlFor:"password",className:"block text-sm font-medium mb-2",style:{color:"#efeeea"},children:[(null==o?void 0:o.password)||"Password"," *"]}),(0,r.jsx)("input",{id:"password",name:"password",type:"password",value:t.password,onChange:m,required:!0,minLength:8,className:"w-full px-4 py-2 border-2 border-[#50483F] focus:border-transparent",style:{color:"#2b302b",outline:"none",boxShadow:"none"},onFocus:e=>{e.target.style.borderColor=n,e.target.style.boxShadow="0 0 0 2px ".concat(n,"40")},onBlur:e=>{e.target.style.borderColor="#50483F",e.target.style.boxShadow="none"},disabled:a}),(0,r.jsx)("p",{className:"text-xs mt-1",style:{color:"#E1E0DC"},children:(null==o?void 0:o.minimum_8_characters)||"Minimum 8 characters"})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{htmlFor:"confirmPassword",className:"block text-sm font-medium mb-2",style:{color:"#efeeea"},children:[(null==o?void 0:o.confirm_password)||"Confirm Password"," *"]}),(0,r.jsx)("input",{id:"confirmPassword",name:"confirmPassword",type:"password",value:t.confirmPassword,onChange:m,required:!0,className:"w-full px-4 py-2 border-2 border-[#50483F] focus:border-transparent",style:{color:"#2b302b",outline:"none",boxShadow:"none"},onFocus:e=>{e.target.style.borderColor=n,e.target.style.boxShadow="0 0 0 2px ".concat(n,"40")},onBlur:e=>{e.target.style.borderColor="#50483F",e.target.style.boxShadow="none"},disabled:a})]}),(0,r.jsx)("button",{type:"submit",disabled:a,className:"w-full text-white font-medium py-3 transition-colors disabled:opacity-50",style:{backgroundColor:n||"#ac8a62"},onMouseEnter:e=>e.currentTarget.style.backgroundColor=c||"#9a7a56",onMouseLeave:e=>e.currentTarget.style.backgroundColor=n||"#ac8a62",children:a?(null==o?void 0:o.creating_account)||"Creating account...":(null==o?void 0:o.create_account_button)||"Create Account"})]}),(0,r.jsx)("div",{className:"mt-6 text-center",children:(0,r.jsxs)("p",{className:"text-sm",style:{color:"#E1E0DC"},children:[(null==o?void 0:o.already_have_account)||"Already have an account?"," ",(0,r.jsx)(l(),{href:"/sites/".concat(i,"/login").concat(d),className:"font-medium hover:underline",style:{color:n||"#ac8a62"},children:(null==o?void 0:o.sign_in)||"Sign in"})]})})]})]})})}},32822:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(95155),a=s(12115),l=s(52619),o=s.n(l);function n(e){let{slug:t,siteId:s,langQuery:l,accentColor:n,accentColorHover:c,locale:i,onLoginSuccess:d}=e,[m,u]=(0,a.useState)(""),[x,h]=(0,a.useState)(""),[g,p]=(0,a.useState)(""),[b,f]=(0,a.useState)(!1),v=async e=>{e.preventDefault(),p(""),f(!0);try{let e=await fetch("/api/sites/".concat(s,"/account/login"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:m,password:x})}
1),t=await e.json();if(!e.ok){p(t.error||(null==i?void 0:i.login_failed)||"Login failed"),f(!1);return}localStorage.setItem("customer",JSON.stringify(t.customer)),d()}catch(e){console.error("Login error:",e),p((null==i?void 0:i.error_occurred)||"An error occurred. Please try again."),f(!1)}};return(0,r.jsx)("main",{className:"flex-1 py-12 px-4",style:{backgroundColor:"#efeeea"},children:(0,r.jsxs)("div",{className:"max-w-md mx-auto",children:[(0,r.jsx)("h1",{className:"text-3xl font-bold text-center mb-2",style:{color:"#2b302b"},children:(null==i?void 0:i.welcome_back)||"Welcome Back"}),(0,r.jsx)("p",{className:"text-center mb-8",style:{color:"#50483F"},children:(null==i?void 0:i.sign_in_subtitle)||"Sign in to your account"}),(0,r.jsxs)("div",{className:"shadow-md p-8",style:{backgroundColor:"#2b302b"},children:[(0,r.jsxs)("form",{onSubmit:v,className:"space-y-4",children:[g&&(0,r.jsx)("div",{className:"bg-red-50 border border-red-200 text-red-600 px-4 py-3",children:g}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium mb-2",style:{color:"#efeeea"},children:(null==i?void 0:i.email)||"Email"}),(0,r.jsx)("input",{id:"email",type:"email",value:m,onChange:e=>u(e.target.value),required:!0,className:"w-full px-4 py-2 border-2 border-[#50483F] focus:ring-2 focus:border-transparent",style:{backgroundColor:"#ffffff",color:"#2b302b",outline:"none",boxShadow:"none"},style:{outline:"none",boxShadow:"none"},onFocus:e=>{e.target.style.borderColor=n,e.target.style.boxShadow="0 0 0 2px ".concat(n,"40")},onBlur:e=>{e.target.style.borderColor="#50483F",e.target.style.boxShadow="none"},disabled:b})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium mb-2",style:{color:"#efeeea"},children:(null==i?void 0:i.password)||"Password"}),(0,r.jsx)("input",{id:"password",type:"password",value:x,onChange:e=>h(e.target.value),required:!0,className:"w-full px-4 py-2 border-2 border-[#50483F] focus:ring-2 focus:border-transparent",style:{backgroundColor:"#ffffff",color:"#2b302b",outline:"none",boxShadow:"none"},style:{outline:"none",boxShadow:"none"},onFocus:e=>{e.target.style.borderColor=n,e.target.style.boxShadow="0 0 0 2px ".concat(n,"40")},onBlur:e=>{e.target.style.borderColor="#50483F",e.target.style.boxShadow="none"},disabled:b})]}),(0,r.jsx)("button",{type:"submit",disabled:b,className:"w-full text-white font-medium py-3 transition-colors disabled:opacity-50",style:{backgroundColor:n||"#ac8a62"},onMouseEnter:e=>e.currentTarget.style.backgroundColor=c||"#9a7a56",onMouseLeave:e=>e.currentTarget.style.backgroundColor=n||"#ac8a62",children:b?(null==i?void 0:i.signing_in)||"Signing in...":(null==i?void 0:i.sign_in)||"Sign In"})]}),(0,r.jsx)("div",{className:"mt-6 text-center",children:(0,r.jsxs)("p",{className:"text-sm",style:{color:"#E1E0DC"},children:[(null==i?void 0:i.no_account)||"Don't have an account?"," ",(0,r.jsx)(o(),{href:"/sites/".concat(t,"/signup").concat(l),className:"font-medium hover:underline",style:{color:n||"#ac8a62"},children:(null==i?void 0:i.create_one)||"Create one"})]})})]})]})})}},35036:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(95155);function a(e){let{locale:t,slug:s,langQuery:a,langQueryParam:l,accentColor:o,accentColorHover:n,category:c,search:i,categories:d,products:m,formatPrice:u}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("section",{className:"bg-gradient-to-br from-gray-50 to-gray-100 py-20",children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:(0,r.jsxs)("div",{className:"max-w-4xl mx-auto text-center",children:[(0,r.jsx)("h1",{className:"text-5xl font-bold text-gray-900 mb-4",children:t.shop_title}),(0,r.jsx)("p",{className:"text-xl text-gray-600",children:t.shop_subtitle})]})})}),(0,r.jsx)("section",{className:"py-16 flex-grow",children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-8",children:[(0,r.jsx)("aside",{className:"lg:col-span-1",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-6 sticky top-4",children:[(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("h3",{className:"text-sm font-semibold text-gray-900 mb-3",children:t.search}),(0,r.jsxs)("form",{method:"GET",action:"",children:[(0,r.jsx)("input",{type:"text",name:"search",defaultValue:i||"",placeholder:t.search_placeholder,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#fe330a] focus:border-transparent"}),c&&(0,r.jsx)("input",{type:"hidden",name:"category",value:c})]})]}),d&&d.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold text-gray-900 mb-3",children:t.categories}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("a",{href:"/sites/".concat(s,"/shop").concat(a),className:"block px-3 py-2 rounded-lg text-sm transition-colors ".concat(c?"text-gray-700 hover:bg-gray-100":"text-white font-medium"),style:c?{}:{backgroundColor:o},children:t.all_products}),d.map(e=>(0,r.jsx)("a",{href:"/sites/".concat(s,"/shop?category=").concat(e.slug).concat(l),className:"block px-3 py-2 rounded-lg text-sm transition-colors ".concat(c===e.slug?"text-white font-medium":"text-gray-700 hover:bg-gray-100"),style:c===e.slug?{backgroundColor:o}:{},children:e.name},e.id))]})]})]})}),(0,r.jsx)("main",{className:"lg:col-span-3",children:m&&m.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mb-6 flex items-center justify-between",children:(0,r.jsxs)("p",{className:"text-sm text-gray-600",children:[m.length," ",1===m.length?t.product_found:t.products_found]})}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:m.map(e=>(0,r.jsxs)("a",{href:"/sites/".concat(s,"/shop/").concat(e.slug).concat(a),className:"group bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden hover:shadow-md transition-shadow",children:[(0,r.jsx)("div",{className:"aspect-square bg-gray-100 overflow-hidden",children:e.main_image_url?(0,r.jsx)("img",{src:e.main_image_url,alt:e.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}):(0,r.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,r.jsx)("svg",{className:"w-16 h-16 text-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})})}),(0,r.jsxs)("div",{className:"p-4",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900 mb-1 group-hover:text-[#fe330a] transition-colors",children:e.name}),e.short_description&&(0,r.jsx)("p",{className:"text-sm text-gray-600 mb-3 line-clamp-2",children:e.short_description}),(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)("span",{className:"text-lg font-bold text-gray-900",children:u(e.price)}),e.compare_at_price&&e.compare_at_price>e.price&&(0,r.jsx)("span",{className:"text-sm text-gray-500 line-through",children:u(e.compare_at_price)})]})]})]},e.id))})]}):(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-12 text-center",children:[(0,r.jsx)("div",{className:"w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,r.jsx)("svg",{className:"w-8 h-8 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"})})}),(0,r.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:t.no_products_found_title}),(0,r.jsx)("p",{className:"text-gray-600 mb-4",children:i?t.no_products_match.replace("{search}",i):c?t.no_products_in_category:t.check_back_soon}
1),(i||c)&&(0,r.jsx)("a",{href:"/sites/".concat(s,"/shop").concat(a),className:"inline-block px-6 py-2 text-white font-semibold rounded-lg transition-colors",style:{backgroundColor:o},onMouseEnter:e=>e.currentTarget.style.backgroundColor=n,onMouseLeave:e=>e.currentTarget.style.backgroundColor=o,children:t.view_all_products})]})})]})})})]})}},35714:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(95155);function a(e){let{locale:t,slug:s,langQuery:a,accentColor:l,accentColorHover:o,items:n,itemCount:c,total:i,formatPrice:d,updateQuantity:m,removeItem:u}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("section",{className:"bg-gradient-to-br from-gray-50 to-gray-100 py-20",children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:(0,r.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-5xl font-bold text-gray-900 mb-2",children:t.shopping_cart}),(0,r.jsxs)("p",{className:"text-xl text-gray-600",children:[c," ",1===c?t.item_in_cart:t.items_in_cart]})]}),(0,r.jsxs)("a",{href:"/sites/".concat(s,"/shop").concat(a),className:"text-[#fe330a] hover:text-[#e02a08] font-semibold",children:["â ",t.continue_shopping]})]})})})}),(0,r.jsx)("section",{className:"py-16 flex-grow bg-white",children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:0===n.length?(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-12 text-center",children:[(0,r.jsx)("div",{className:"w-24 h-24 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-6",children:(0,r.jsx)("svg",{className:"w-12 h-12 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"})})}),(0,r.jsx)("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:t.your_cart_is_empty}),(0,r.jsx)("p",{className:"text-gray-600 mb-6",children:"Start adding some products to your cart"}),(0,r.jsx)("a",{href:"/sites/".concat(s,"/shop").concat(a),className:"inline-block px-8 py-3 text-white font-semibold text-lg rounded-lg transition-colors",style:{backgroundColor:l},onMouseEnter:e=>e.currentTarget.style.backgroundColor=o,onMouseLeave:e=>e.currentTarget.style.backgroundColor=l,children:"Browse Products"})]}):(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[(0,r.jsx)("div",{className:"lg:col-span-2 space-y-4",children:n.map((e,o)=>(0,r.jsx)("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-4 md:p-6",children:(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)("div",{className:"flex-shrink-0 w-20 h-20 md:w-24 md:h-24 bg-gray-100 rounded-lg overflow-hidden",children:e.productImage?(0,r.jsx)("img",{src:e.productImage,alt:e.productName,className:"w-full h-full object-cover"}):(0,r.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,r.jsx)("svg",{className:"w-8 h-8 text-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2 mb-3",children:[(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900 mb-1 text-sm md:text-base",children:(0,r.jsx)("a",{href:"/sites/".concat(s,"/shop/").concat(e.productSlug).concat(a),className:"transition-colors hover:underline",onMouseEnter:e=>e.currentTarget.style.color=l,onMouseLeave:e=>e.currentTarget.style.color="",children:e.productName})}),e.variantName&&(0,r.jsxs)("p",{className:"text-xs md:text-sm text-gray-600",children:["Variant: ",e.variantName]}),e.size&&(0,r.jsxs)("p",{className:"text-xs md:text-sm text-gray-600",children:["Size: ",e.size]}),(0,r.jsxs)("p",{className:"text-sm md:text-base font-medium text-gray-700 mt-1",children:[d(e.price)," each"]})]}),(0,r.jsx)("button",{onClick:()=>u(e.productId,e.variantId,e.size),className:"flex-shrink-0 p-2 text-red-600 hover:text-red-800 hover:bg-red-50 rounded-lg transition-colors",title:t.remove,children:(0,r.jsx)("img",{src:"/icons/delete.svg",alt:"Delete",className:"w-5 h-5"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("button",{onClick:()=>m(e.productId,e.quantity-1,e.variantId,e.size),className:"w-8 h-8 flex items-center justify-center border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors",children:"â"}),(0,r.jsx)("span",{className:"w-8 text-center font-semibold text-sm md:text-base",children:e.quantity}),(0,r.jsx)("button",{onClick:()=>m(e.productId,e.quantity+1,e.variantId,e.size),className:"w-8 h-8 flex items-center justify-center border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors",children:"+"})]}),(0,r.jsx)("div",{className:"text-right",children:(0,r.jsx)("p",{className:"text-base md:text-lg font-bold text-gray-900",children:d(e.price*e.quantity)})})]})]})]})},"".concat(e.productId,"-").concat(e.variantId,"-").concat(e.size,"-").concat(o)))}),(0,r.jsx)("div",{className:"lg:col-span-1",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-6 sticky top-4",children:[(0,r.jsx)("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:t.order_summary}),(0,r.jsxs)("div",{className:"space-y-3 mb-4",children:[(0,r.jsxs)("div",{className:"flex justify-between text-gray-600",children:[(0,r.jsxs)("span",{children:[t.subtotal," (",c," ",1===c?t.item_in_cart.split(" ")[0]:t.items_in_cart.split(" ")[0],")"]}),(0,r.jsx)("span",{className:"font-semibold",children:d(i)})]}),(0,r.jsxs)("div",{className:"flex justify-between text-gray-600",children:[(0,r.jsx)("span",{children:t.shipping}),(0,r.jsx)("span",{className:"text-sm",children:t.calculated_at_checkout})]})]}),(0,r.jsxs)("div",{className:"border-t border-gray-200 pt-4 mb-6",children:[(0,r.jsxs)("div",{className:"flex justify-between text-lg font-bold text-gray-900",children:[(0,r.jsx)("span",{children:t.total}),(0,r.jsx)("span",{children:d(i)})]}),(0,r.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:t.tax_included})]}),(0,r.jsx)("a",{href:"/sites/".concat(s,"/checkout").concat(a),className:"block w-full text-center px-6 py-4 text-white text-lg font-semibold rounded-lg transition-colors",style:{backgroundColor:l},onMouseEnter:e=>e.currentTarget.style.backgroundColor=o,onMouseLeave:e=>e.currentTarget.style.backgroundColor=l,children:t.proceed_to_checkout}),(0,r.jsxs)("a",{href:"/sites/".concat(s,"/shop").concat(a),className:"block w-full text-center px-6 py-3 mt-3 text-gray-700 hover:text-gray-900 transition-colors",children:["â ",t.continue_shopping]})]})})]})})})]})}},39536:(e,t,s)=>{s.d(t,{A:()=>
1o});var r=s(95155),a=s(12115),l=s(14749);function o(e){var t,s,o,n;let{config:c,title:i,subtitle:d,placeholder:m,buttonText:u,description:x}=e,h=(null==c||null==(t=c.content)?void 0:t.title)||i||"Join Our Adventure Community",g=(null==c||null==(s=c.content)?void 0:s.description)||x||"Subscribe to receive exclusive travel tips, destination guides, and special offers.",p=(null==c||null==(o=c.content)?void 0:o.placeholder)||m||"Enter your email",b=(null==c||null==(n=c.content)?void 0:n.buttonText)||u||"Subscribe",[f,v]=(0,a.useState)("");return(0,r.jsx)("section",{className:"bg-[#efeeea] py-16 md:py-20",children:(0,r.jsxs)("div",{className:"max-w-3xl mx-auto px-6 lg:px-8 text-center",children:[(0,r.jsx)(l.xn,{as:"h2",className:"text-3xl md:text-4xl lg:text-5xl font-bold text-[#2b302b] mb-4",children:h}),(0,r.jsx)("div",{className:"w-24 h-1 bg-[#ac8a62] mx-auto mb-6"}),(0,r.jsx)(l.xn,{as:"p",className:"text-lg md:text-xl text-gray-600 mb-8",children:g}),(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault(),console.log("Newsletter signup:",f),v("")},className:"flex flex-col sm:flex-row gap-4 max-w-xl mx-auto",children:[(0,r.jsx)("input",{type:"email",value:f,onChange:e=>v(e.target.value),placeholder:p,required:!0,className:"flex-1 px-6 py-4 border-2 border-gray-300 focus:border-[#ac8a62] focus:outline-none text-gray-800"}),(0,r.jsx)(l.xn,{as:"button",type:"submit",className:"bg-[#ac8a62] hover:bg-[#9a7a56] text-white px-8 py-4 transition-all duration-300 font-medium whitespace-nowrap",children:b})]}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mt-4",children:"We respect your privacy. Unsubscribe at any time."})]})})}},45353:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(95155);function a(e){let{tabs:t,activeTab:s,setActiveTab:a,activeTabContent:l,accentColor:o,locale:n,handleLogout:c}=e;return(0,r.jsx)("main",{className:"flex-1 py-12 px-4",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,r.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-8",children:(null==n?void 0:n.my_account)||"My Account"}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row gap-6",children:[(0,r.jsx)("aside",{className:"md:w-1/4",children:(0,r.jsx)("div",{className:"bg-white p-6 rounded-lg shadow-md",children:(0,r.jsxs)("nav",{className:"space-y-2",children:[t.map(e=>(0,r.jsx)("button",{onClick:()=>a(e.id),className:"w-full text-left px-4 py-2 rounded-md transition-colors duration-200 ".concat(s===e.id?"text-white":"text-gray-700 hover:bg-gray-100"),style:s===e.id?{backgroundColor:o}:{},onMouseEnter:t=>{s!==e.id&&(t.currentTarget.style.backgroundColor="#f3f4f6")},onMouseLeave:t=>{s!==e.id&&(t.currentTarget.style.backgroundColor="")},children:e.label},e.id)),(0,r.jsx)("button",{onClick:c,className:"w-full text-left px-4 py-2 rounded-md text-red-600 hover:bg-red-50 transition-colors duration-200",children:(null==n?void 0:n.logout)||"Logout"})]})})}),(0,r.jsx)("section",{className:"md:w-3/4",children:l()})]})]})})}},53023:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(95155),a=s(12115),l=s(14749);function o(e){let{title:t,subtitle:s,faqs:o}=e,[n,c]=(0,a.useState)(0);return(0,r.jsx)("section",{className:"bg-[#efeeea] py-16 md:py-20",children:(0,r.jsxs)("div",{className:"max-w-4xl mx-auto px-6 lg:px-8",children:[(0,r.jsxs)("div",{className:"text-center mb-12",children:[(0,r.jsx)(l.xn,{as:"h2",className:"text-4xl md:text-5xl font-bold text-[#2b302b] mb-4",children:t||"Frequently Asked Questions"}),(0,r.jsx)("div",{className:"w-24 h-1 bg-[#ac8a62] mx-auto"})]}),(0,r.jsx)("div",{className:"space-y-4",children:(o||[{question:"What should I bring on the adventure?",answer:"We recommend comfortable hiking boots, weather-appropriate clothing, water bottle, sunscreen, and a camera to capture memories."},{question:"Are the trips suitable for beginners?",answer:"Yes! We offer adventures for all experience levels, from beginners to seasoned adventurers. Each trip is clearly labeled with its difficulty level."},{question:"What is your cancellation policy?",answer:"We offer full refunds for cancellations made 14 days or more before the trip. Within 14 days, we offer a 50% refund or the option to reschedule."},{question:"Do you provide equipment?",answer:"Basic equipment is provided for all trips. Specialized gear can be rented at an additional cost. We'll send you a detailed packing list after booking."}]).map((e,t)=>(0,r.jsxs)("div",{className:"bg-white overflow-hidden",children:[(0,r.jsxs)("button",{onClick:()=>c(n===t?null:t),className:"w-full text-left p-6 flex justify-between items-center hover:bg-gray-50 transition-colors",children:[(0,r.jsx)(l.xn,{as:"span",className:"text-lg font-semibold text-[#2b302b] pr-4",children:e.question}),(0,r.jsx)("span",{className:"text-[#ac8a62] text-2xl flex-shrink-0",children:n===t?"â":"+"})]}),n===t&&(0,r.jsx)("div",{className:"px-6 pb-6",children:(0,r.jsx)(l.xn,{as:"p",className:"text-gray-600 leading-relaxed",children:e.answer})})]},t))})]})})}},57831:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(95155),a=s(14749);function l(e){let{title:t,subtitle:s,ctaText:l,ctaHref:o,secondaryCtaText:n,secondaryCtaHref:c,backgroundType:i="solid",backgroundColor:d="#ac8a62",gradientFrom:m="#ac8a62",gradientTo:u="#9a7a56",backgroundImage:x}=e;return(0,r.jsx)("section",{className:"py-16 lg:py-20",style:(()=>{switch(i){case"solid":default:return{backgroundColor:d};case"gradient":return{background:"linear-gradient(135deg, ".concat(m," 0%, ").concat(u," 100%)")};case"image":return x?{backgroundImage:"linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(".concat(x,")"),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{backgroundColor:d}}})(),children:(0,r.jsxs)("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[(0,r.jsx)(a.xn,{as:"h2",className:"text-3xl sm:text-4xl lg:text-5xl font-bold mb-4 text-white",children:t}),s&&(0,r.jsx)(a.xn,{as:"p",className:"text-xl mb-8 max-w-2xl mx-auto text-white/90",children:s}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center",children:[(0,r.jsx)(a.xn,{as:"a",href:o,className:"inline-flex items-center font-semibold text-lg transition-all duration-200 px-8 py-4 text-white hover:opacity-90",style:{backgroundColor:"#2b302b"},children:l}),n&&c&&(0,r.jsx)("a",{href:c,className:"inline-flex items-center font-semibold text-lg transition-all duration-200 px-8 py-4 border-2 border-white text-white hover:bg-white hover:opacity-90",style:{backgroundColor:"transparent"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="white",e.currentTarget.style.color="#2b302b"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="white"},children:n})]})]})})}},59386:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(95155),a=s(12115),l=s(52619),o=s.n(l),n=s(15239),c=s(32354);function i(e){let{productId:t,buttonText:s,showDescription:l=!0,imagePosition:i="left",enableAnimations:d=!0,templateData:m,siteId:u,siteSlug:x,ecommerceEnabled:h=!1,accentColor:g="#2563eb",accentColorHover:p="#1d4ed8",lang:b}=e,{locale:f}=(0,c.e)("components/ecommerce/single-product",b),[v,y]=(0,a.useState)(null),[j,N]=(0,a.useState)(!0),[w,k]=(0,a.useState)(null),_=b||localStorage.getItem("preferredLanguage"),C=_&&"en"!==_?"?lang=".concat(_):"",S=s||(null==f?void 0:f.learn_more)||"Learn More";(0,a.useEffect)(()=>
1{if(!t||!u||!h)return void N(!1);(async()=>{try{var e;N(!0),k(null);let s=await fetch("/api/sites/".concat(u,"/ecommerce/products"));if(!s.ok)throw Error("Failed to fetch products");let r=null==(e=(await s.json()).products)?void 0:e.find(e=>e.id===t);r&&"active"===r.status?y(r):k("Product not found or not active")}catch(e){console.error("Error loading product:",e),k(e.message)}finally{N(!1)}})()},[t,u,h]);let L=(e,t)=>new Intl.NumberFormat("en-US",{style:"currency",currency:t||"EUR"}).format(e/100);return h?j?(0,r.jsx)("div",{className:"py-16 px-4 sm:px-6 lg:px-8",style:{backgroundColor:"#efeeea"},children:(0,r.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,r.jsx)("div",{className:"animate-pulse",children:(0,r.jsxs)("div",{className:"grid md:grid-cols-2 gap-8 items-center ".concat("right"===i?"md:grid-flow-dense":""),children:[(0,r.jsx)("div",{className:"aspect-square ".concat("right"===i?"md:col-start-2":""),style:{backgroundColor:"#E1E0DC"}}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("div",{className:"h-8 w-3/4",style:{backgroundColor:"#E1E0DC"}}),(0,r.jsx)("div",{className:"h-4 w-1/4",style:{backgroundColor:"#E1E0DC"}}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("div",{className:"h-4",style:{backgroundColor:"#E1E0DC"}}),(0,r.jsx)("div",{className:"h-4",style:{backgroundColor:"#E1E0DC"}}),(0,r.jsx)("div",{className:"h-4 w-5/6",style:{backgroundColor:"#E1E0DC"}})]}),(0,r.jsx)("div",{className:"h-12 w-40",style:{backgroundColor:"#ac8a62"}})]})]})})})}):!v||w?(0,r.jsx)("div",{className:"py-16 px-4 sm:px-6 lg:px-8",style:{backgroundColor:"#efeeea"},children:(0,r.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,r.jsx)("div",{className:"p-12 text-center",style:{backgroundColor:"#E1E0DC",border:"1px solid #ac8a62"},children:(0,r.jsxs)("div",{className:"max-w-md mx-auto",children:[(0,r.jsx)("div",{className:"w-16 h-16 flex items-center justify-center mx-auto mb-4",style:{backgroundColor:"#ac8a62"},children:(0,r.jsx)("svg",{className:"w-8 h-8 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",style:{color:"#2b302b"},children:(null==f?void 0:f.no_product_selected)||"No Product Selected"}),(0,r.jsx)("p",{style:{color:"#50483F"},children:(null==f?void 0:f.select_product_message)||"Please select a product in the editor to display it here."})]})})})}):(0,r.jsx)("div",{className:"py-16 px-4 sm:px-6 lg:px-8",style:{backgroundColor:"#efeeea"},children:(0,r.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,r.jsxs)("div",{className:"grid md:grid-cols-2 gap-8 lg:gap-12 items-center ".concat("right"===i?"md:grid-flow-dense":""),children:[(0,r.jsx)(o(),{href:"/sites/".concat(x,"/shop/").concat(v.slug).concat(C),className:"group relative aspect-square overflow-hidden ".concat("right"===i?"md:col-start-2":""," ").concat(d?"transition-transform hover:scale-[1.02]":""),style:{backgroundColor:"#E1E0DC"},children:v.main_image_url?(0,r.jsx)(n.default,{src:v.main_image_url,alt:v.name,fill:!0,className:"object-cover",sizes:"(max-width: 768px) 100vw, 50vw"}):(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,r.jsx)("svg",{className:"w-24 h-24 text-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})})}),(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-3xl lg:text-4xl font-bold mb-4",style:{color:"#2b302b"},children:v.name}),(0,r.jsxs)("div",{className:"flex items-baseline gap-3 mb-4",children:[(0,r.jsx)("span",{className:"text-2xl lg:text-3xl font-bold",style:{color:"#2b302b"},children:L(v.price,v.currency)}),v.compare_at_price&&v.compare_at_price>v.price&&(0,r.jsx)("span",{className:"text-lg line-through",style:{color:"#50483F"},children:L(v.compare_at_price,v.currency)})]}),l&&v.short_description&&(0,r.jsx)("p",{className:"text-lg leading-relaxed",style:{color:"#50483F"},children:v.short_description})]}),(0,r.jsx)(o(),{href:"/sites/".concat(x,"/shop/").concat(v.slug).concat(C),className:"inline-block px-8 py-4 text-lg font-semibold text-white transition-all ".concat(d?"hover:shadow-lg hover:scale-105":""),style:{backgroundColor:g||"#ac8a62"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=p||"#9a7a56"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=g||"#ac8a62"},children:S})]})]})})}):(0,r.jsx)("div",{className:"py-16 px-4 sm:px-6 lg:px-8",style:{backgroundColor:"#efeeea"},children:(0,r.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,r.jsx)("div",{className:"p-12 text-center",style:{backgroundColor:"#E1E0DC",border:"2px dashed #ac8a62"},children:(0,r.jsxs)("div",{className:"max-w-md mx-auto",children:[(0,r.jsx)("div",{className:"w-16 h-16 flex items-center justify-center mx-auto mb-4",style:{backgroundColor:"#ac8a62"}
1,children:(0,r.jsx)("svg",{className:"w-8 h-8 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"})})}),(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",style:{color:"#2b302b"},children:(null==f?void 0:f.ecommerce_not_activated)||"E-commerce Not Activated"}),(0,r.jsx)("p",{className:"mb-6",style:{color:"#50483F"},children:(null==f?void 0:f.enable_ecommerce_message)||"Enable e-commerce in your dashboard to display products on your website."}),(0,r.jsx)(o(),{href:"/dashboard/sites/".concat(u,"/ecommerce"),className:"inline-block px-6 py-3 text-white transition-colors",style:{backgroundColor:g||"#ac8a62"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=p||"#9a7a56"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=g||"#ac8a62"},children:(null==f?void 0:f.activate_ecommerce)||"Activate E-commerce"})]})})})})}},92588:(e,t,s)=>{s.d(t,{A:()=>c});var r=s(95155),a=s(12115),l=s(52619),o=s.n(l),n=s(32354);function c(e){let{title:t,subtitle:s,categories:l=[],rows:c=1,columns:i=4,mobileRows:d=2,mobileColumns:m=1,autoPlay:u=!1,autoPlaySpeed:x=3e3,showNavigation:h=!0,showPagination:g=!0,enableAnimations:p=!0,templateData:b,viewportMode:f,siteId:v,siteSlug:y,ecommerceEnabled:j=!1,accentColor:N="#2563eb",accentColorHover:w="#1d4ed8",lang:k}=e,{locale:_}=(0,n.e)("components/ecommerce/product-carousel",k);t||null==_||_.title;let[C,S]=(0,a.useState)([]),[L,E]=(0,a.useState)(!0),[M,T]=(0,a.useState)(0),[F,A]=(0,a.useState)("EUR"),[B,R]=(0,a.useState)(!1),P=(0,a.useRef)(null),I=(0,a.useRef)(0),W=(0,a.useRef)(0),D=(0,a.useRef)(null),V=k||localStorage.getItem("preferredLanguage"),z=V&&"en"!==V?"?lang=".concat(V):"",q=(0,a.useMemo)(()=>l,[JSON.stringify(l)]),U=f?"mobile"===f?m:"tablet"===f?Math.min(i,2):i:m,H=("mobile"===f?d:f?c:d)*U,O=Math.ceil(C.length/H);(0,a.useEffect)(()=>{v&&j?J():E(!1)},[v,j,q]),(0,a.useEffect)(()=>{if(u&&C.length>H&&j)return P.current=setInterval(()=>{T(e=>(e+1)%O)},x),()=>{P.current&&clearInterval(P.current)}},[u,x,C.length,H,O,j]);let J=async()=>{if(v)try{E(!0);let e=await fetch("/api/sites/".concat(v,"/ecommerce/public-settings"));if(e.ok){let t=await e.json();A(t.currency||"EUR")}let t=await fetch("/api/sites/".concat(v,"/ecommerce/products"));if(!t.ok)throw Error("Failed to load products");let s=(await t.json()).products||[];s=s.filter(e=>"active"===e.status),q.length>0&&(s=s.filter(e=>q.includes(e.category_id))),S(s)}catch(e){console.error("Error loading products for carousel:",e),S([])}finally{E(!1)}},$=e=>new Intl.NumberFormat("en-US",{style:"currency",currency:F}).format(e/100),X=e=>{B||(R(!0),T(e),P.current&&clearInterval(P.current),setTimeout(()=>{R(!1)},500))},G=()=>{X(0===M?O-1:M-1)},K=()=>{X((M+1)%O)},Y=M*H;return(C.slice(Y,Y+H),j)?L?(0,r.jsx)("section",{className:"py-16",style:{backgroundColor:"#efeeea"},children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[t&&(0,r.jsx)("h2",{className:"text-4xl font-bold text-center mb-4",style:{color:"#2b302b"},children:t}),(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2",style:{borderColor:"#ac8a62"}})})]})})}):0===C.length?(0,r.jsx)("section",{className:"py-16",style:{backgroundColor:"#efeeea"},children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[t&&(0,r.jsx)("h2",{className:"text-4xl font-bold text-center mb-4",style:{color:"#2b302b"},children:t}),s&&(0,r.jsx)("p",{className:"text-xl text-center mb-12",style:{color:"#50483F"},children:s}),(0,r.jsxs)("div",{className:"bg-white shadow-sm p-12 text-center",style:{border:"1px solid #E1E0DC"},children:[(0,r.jsx)("div",{className:"w-16 h-16 flex items-center justify-center mx-auto mb-4",style:{backgroundColor:"#E1E0DC"},children:(0,r.jsx)("svg",{className:"w-8 h-8",style:{color:"#ac8a62"},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"})})}),(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",style:{color:"#2b302b"},children:"No Products Available"}),(0,r.jsx)("p",{style:{color:"#50483F"},children:l.length>0?"No active products found in the selected categories.":"No active products available at the moment. Check back soon!"})]})]})})}):(0,r.jsx)("section",{className:"py-16",style:{backgroundColor:"#efeeea"},children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(t||s)&&(0,r.jsxs)("div",{className:"text-center mb-12",children:[t&&(0,r.jsx)("h2",{className:"text-4xl font-bold mb-4",style:{color:"#2b302b"},children:t}),s&&(0,r.jsx)("p",{className:"text-xl",style:{color:"#50483F"},dangerouslySetInnerHTML:{__html:s}})]}),(0,r.jsxs)("div",{className:"relative",children:[h&&O>1&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{onClick:G,disabled:B,className:"absolute left-0 top-1/2 -translate-y-1/2 -translate-x-4 lg:-translate-x-12 z-10 w-12 h-12 shadow-lg flex items-center justify-center transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",style:{backgroundColor:N||"#ac8a62",border:"none",borderRadius:"0"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=w||"#9a7a56"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=N||"#ac8a62"},"aria-label":"Previous page",children:(0,r.jsx)("svg",{className:"w-6 h-6 text-white",f
1ill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),(0,r.jsx)("button",{onClick:K,disabled:B,className:"absolute right-0 top-1/2 -translate-y-1/2 translate-x-4 lg:translate-x-12 z-10 w-12 h-12 shadow-lg flex items-center justify-center transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",style:{backgroundColor:N||"#ac8a62",border:"none",borderRadius:"0"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=w||"#9a7a56"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=N||"#ac8a62"},"aria-label":"Next page",children:(0,r.jsx)("svg",{className:"w-6 h-6 text-gray-700",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]}),(0,r.jsx)("div",{className:"overflow-hidden",ref:D,onTouchStart:e=>{I.current=e.touches[0].clientX},onTouchMove:e=>{W.current=e.touches[0].clientX},onTouchEnd:()=>{if(!I.current||!W.current)return;let e=I.current-W.current;50>Math.abs(e)||(e>0?K():G(),I.current=0,W.current=0)},children:(0,r.jsx)("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:"translateX(-".concat(100*M,"%)")},children:[...Array(O)].map((e,t)=>{let s=t*H,a=C.slice(s,s+H);return(0,r.jsx)("div",{className:"flex-shrink-0 w-full",children:(0,r.jsxs)("div",{className:"grid gap-6 product-carousel-grid-".concat(t),style:{gridTemplateColumns:f?"repeat(".concat(U,", 1fr)"):void 0,"--mobile-cols":m,"--tablet-cols":Math.min(i,2),"--desktop-cols":i},children:[!f&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n .product-carousel-grid-".concat(t," {\n grid-template-columns: repeat(").concat(m,", 1fr);\n }\n @media (min-width: 640px) {\n .product-carousel-grid-").concat(t," {\n grid-template-columns: repeat(").concat(Math.min(i,2),", 1fr);\n }\n }\n @media (min-width: 1024px) {\n .product-carousel-grid-").concat(t," {\n grid-template-columns: repeat(").concat(i,", 1fr);\n }\n }\n ")}}),a.map(e=>(0,r.jsxs)(o(),{href:"/sites/".concat(y,"/shop/").concat(e.slug).concat(z),className:"group bg-white shadow-sm overflow-hidden hover:shadow-md transition-shadow flex flex-col",style:{border:"1px solid #E1E0DC"},children:[(0,r.jsx)("div",{className:"aspect-square bg-gray-100 overflow-hidden flex-shrink-0",children:e.main_image_url?(0,r.jsx)("img",{src:e.main_image_url,alt:e.name,className:"w-full h-full object-cover ".concat(p?"group-hover:scale-105 transition-transform duration-300":"")}):(0,r.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,r.jsx)("svg",{className:"w-16 h-16 text-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})})}),(0,r.jsxs)("div",{className:"p-4 flex flex-col flex-grow",children:[(0,r.jsx)("h3",{className:"font-semibold mb-1 transition-colors line-clamp-2 min-h-[3rem]",style:{color:"#2b302b"},onMouseEnter:e=>{p&&(e.currentTarget.style.color=N)},onMouseLeave:e=>{p&&(e.currentTarget.style.color="#2b302b")},children:e.name}),e.short_description&&(0,r.jsx)("p",{className:"text-sm mb-3 line-clamp-2 min-h-[2.5rem]",style:{color:"#50483F"},children:e.short_description}),!e.short_description&&(0,r.jsx)("div",{className:"mb-3 min-h-[2.5rem]"}),(0,r.jsxs)("div",{className:"flex items-center justify-between mt-auto",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)("span",{className:"text-lg font-bold",style:{color:"#2b302b"},children:$(e.price)}),e.compare_at_price&&e.compare_at_price>e.price&&(0,r.jsx)("span",{className:"text-sm line-through",style:{color:"#50483F"},children:$(e.compare_at_price)})]}),e.variants&&e.variants.length>0&&(0,r.jsxs)("div",{className:"flex items-center space-x-1",children:[e.variants.filter(e=>e.color_hex).slice(0,3).map(e=>(0,r.jsx)("div",{className:"w-5 h-5 rounded-full border-2 border-gray-300",style:{backgroundColor:e.color_hex},title:e.name},e.id)),e.variants.filter(e=>e.color_hex).length>3&&(0,r.jsxs)("span",{className:"text-xs text-gray-500",children:["+",e.variants.filter(e=>e.color_hex).length-3]})]})]})]})]},e.id))]})},t)})})})]}),g&&O>1&&(0,r.jsx)("div",{className:"flex items-center justify-center mt-8 space-x-2",children:[...Array(O)].map((e,t)=>(0,r.jsx)("button",{onClick:()=>X(t),className:"w-2.5 h-2.5 rounded-full transition-all ".concat(M===t?"w-8":"hover:opacity-75"),style:{backgroundColor:M===t?N:"#d1d5db"},"aria-label":"Go to page ".concat(t+1)},t))})]})})}):(0,r.jsxs)("section",{className:"py-16 bg-gray-50 relative",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-white/60 backdrop-blur-sm z-10 flex items-center justify-center",children:(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-lg border-2 border-gray-200 p-8 max-w-md text-center",children:[(0,r.jsx)("div",{className:"w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,r.jsx)("svg",{className:"w-8 h-8 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"})})}),(0,r.jsx)("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:"E-commerce Not Enabled"}),(0,r.jsx)("p",{className:"text-gray-600 mb-6",children:"This product carousel requires e-commerce to be enabled. Activate e-commerce to start selling products on your website."}),(0,r.jsxs)(o(),{href:"/dashboard/sites/".concat(v,"/ecommerce"),className:"inline-flex items-center px-6 py-3 bg-[#fe330a] text-white font-semibold rounded-lg hover:bg-[#e02e09] transition-colors",children:[(0,r.jsx)("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),"Activate E-commerce"]})]})}),(0,r.jsx)("div",{className:"container mx-auto px-4 opacity-30 pointer-events-none",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[t&&(0,r.jsx)("h2",{className:"text-4xl font-bold text-gray-900 text-center mb-4",children:t}),s&&(0,r.jsx)("p",{className:"text-xl text-gray-600 text-center mb-12",children:s}),(0,r.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:"repeat(".concat(Math.min(i,4),", 1fr)")},children:[...Array(H)].map((e,t)=>(0,r.jsxs)("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden",children:[(0,r.jsx)("div",{className:"aspect-square bg-gray-200"}),(0,r.jsxs)("div",{className:"p-4",children:[(0,r.jsx)("div",{className:"h-6 bg-gray-200 rounded mb-2"}),(0,r.jsx)("div",{className:"h-4 bg-gray-100 rounded w-2/3"})]})]},t))})]})})]})}},93982:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(12115);function a(e){let{siteId:t,language:s="en",contactName:a="Website visitor",subject:l="Website inquiry"}=e,[o,n]=(0,r.useState)(""),[c,i]=(0,r.useState)(""),[d,m]=(0,r.useState)(!1),[u,x]=(0,r.useState)(!1),[h,g]=(0,r.useState)(""),p=async e=>{if(e.preventDefault(),!t)return void g("Unable to send message right now.");m(!0),g(""),x(!1);try{if(!(await fetch("/api/sites/".concat(t,"/contact"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:a,email:o,subject:l,message:c,language:s})}
1)).ok)throw Error("Failed to send message");x(!0),n(""),i(""),setTimeout(()=>x(!1),5e3)}catch(e){console.error("Error submitting hero conversion form:",e),g("Failed to send message. Please try again.")}finally{m(!1)}};return{email:o,setEmail:n,message:c,setMessage:i,isSubmitting:d,submitSuccess:u,submitError:h,submit:p}}}}]);
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.