1import{j as e}from"./vendor-ui-y7gWrFj_.js";import{a1 as E,p as T,cc as C,m as a,c7 as h,c8 as d,cd as I,t as D,X as $,D as _,N as F,P,F as L,g as b,B as q,bD as B}from"./index-BQEiBH1l.js";import{r as p}from"./vendor-react-B-LUs8MM.js";import{u as M,a as R,D as A,c as U,S as W,r as Y,P as z,d as H}from"./vendor-dnd-D9eei3Si.js";import"./vendor-editor-DotdaXd8.js";import"./vendor-data-BnvdHUK4.js";import"./vendor-charts-cFGvS3Ww.js";const O=({pageName:t,partnerId:n})=>e.jsx(d,{pageName:t,sectionName:"partners-grid",contentKey:`partner-${n}`,defaultSrc:"/placeholder.svg",alt:`Sustainability partner ${n}`,className:"w-full h-32 object-contain"}),G=({pageName:t,partnerId:n,partnerKey:l})=>{const[c,u]=p.useState("https://example.com");return p.useEffect(()=>{(async()=>{const{data:o}=await b.from("page_content").select("content_value").eq("page_name",t).eq("section_name","partners-grid").eq("content_key",`${l}-url`).maybeSingle();o!=null&&o.content_value&&u(o.content_value)})();const f=b.channel(`partner-url-${n}`).on("postgres_changes",{event:"*",schema:"public",table:"page_content",filter:`page_name=eq.${t},section_name=eq.partners-grid,content_key=eq.${l}-url`},o=>{var x;(x=o.new)!=null&&x.content_value&&u(o.new.content_value)}).subscribe();return()=>{b.removeChannel(f)}},[t,n,l]),!c||c==="https://example.com"?null:e.jsx(q,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:e.jsxs("a",{href:c,target:"_blank",rel:"noopener noreferrer",children:["Learn More",e.jsx(B,{className:"h-4 w-4"})]})})},se=()=>{const t=E(),[n,l]=p.useState(!1),{isEditMode:c}=T(),u=["partner-1","partner-2","partner-3","partner-4","partner-5","partner-6","partner-7","partner-8","partner-9","partner-10","partner-11","partner-12","partner-13","partner-14"],{columns:i,updateColumnOrder:f,toggleColumnVisibility:o,duplicateColumn:x,deleteColumn:j,isLoading:N}=C(t,"partners-grid",u),y=M(R(z,{activationConstraint:{distance:8}})),v=r=>{const{active:s,over:g}=r;if(!g||s.id===g.id)return;const S=i.findIndex(m=>m.id===s.id),K=i.findIndex(m=>m.id===g.id),V=H(i,S,K).map((m,k)=>({...m,order:k}));f(V)},w=p.useMemo(()=>[{id:"hero",component:e.jsx("section",{className:"relative pt-page pb-5 bg-white",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx(a,{pageName:t,sectionName:"hero",contentKey:"title",defaultValue:"Sustainability Trail",className:"text-4xl md:text-5xl font-bold text-center mb-4 text-gradient-title",as:"h1"}),e.jsx(a,{pageName:t,sectionName:"hero",contentKey:"subtitle",defaultValue:"Helping to build a more secure future for the hospitality industry",className:"text-xl text-center text-muted-foreground w-full",as:"p"})]})})},{id:"info-cards",component:e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"p-8 rounded-xl bg-card border border-border shadow-card",children:e.jsx(h,{pageName:t,sectionId:"info-cards",className:"grid md:grid-cols-2 gap-8 items-center",columns:[{id:"text-content",component:e.jsxs("div",{children:[e.jsx(a,{pageName:t,sectionName:"info-cards",contentKey:"left-card-title",defaultValue:"SUSTAINABILITY IS HERE TO STAY",className:"text-3xl font-bold mb-6 text-primary",as:"h2"}),e.jsx(a,{pageName:t,sectionName:"info-cards",contentKey:"left-card-desc-1",defaultValue:"As sustainability continues to transform the hospitality sector, this brand-new feature highlights the businesses leading the charge. Spanning all areas of hotel and resort operations, from energy and water efficiency to waste reduction and eco-design, the Sustainability Trail will take visitors on a curated journey through Europe's most forward-thinking suppliers.",className:"text-muted-foreground mb-4",as:"p"}),e.jsx(a,{pageName:t,sectionName:"info-cards",contentKey:"left-card-desc-2",defaultValue:"Each company featured has been hand-selected for their dedication to sustainable development and their proven impact in driving real change. Whether you're aiming to meet ESG goals, enhance efficiency, or align with guest expectations, the trail offers a direct path to practical, future-ready solutions.",className:"text-muted-foreground mb-4",as:"p"}),e.jsx(a,{pageName:t,sectionName:"info-cards",contentKey:"left-card-desc-3",defaultValue:"Sustainability isn't a passing trend, it's the new benchmark. And this is where it starts.",className:"text-muted-foreground font-semibold",as:"p"})]})},{id:"image-content",component:e.jsx("div",{className:"aspect-[16/9] w-full",children:e.jsx(d,{pageName:t,sectionName:"info-cards",contentKey:"right-image",defaultSrc:"/placeholder.svg",alt:"Sustainability",className:"w-full h-full object-cover rounded-lg"})})}]})})})})},{id:"feature-cards",component:e.jsx("section",{className:"py-16 bg-muted/50",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx(h,{pageName:t,sectionId:"feature-cards",className:"grid md:grid-cols-3 gap-8",columns:[{id:"card-1",component:e.jsxs("div",{className:"h-full flex flex-col p-6 rounded-xl bg-card border border-border hover:shadow-lg transition-shadow overflow-hidden",children:[e.jsx("div",{className:"-m-6 mb-[10px]",children:e.jsx(d,{pageName:t,sectionName:"feature-cards",contentKey:"card-1-image",defaultSrc:"/placeholder.svg",alt:"Feature 1",className:"w-full h-48 object-cover"})}),e.jsx(a,{pageName:t,sectionName:"feature-cards",contentKey:"card-1-title",defaultValue:"Biodegradable Packaging and Energy",className:"text-xl font-bold mb-2",as:"h3"}),e.jsx(a,{pageName:t,sectionName:"feature-cards",contentKey:"card-1-desc",defaultValue:"Reduce your carbon footprint with our hand-picked biodegradable and energy-saving products from only the best exhibitors, contributing to a sustainable future!",className:"text-muted-foreground",as:"p"})]})},{id:"card-2",component:e.jsxs("div",{className:"h-full flex flex-col p-6 rounded-xl bg-card border border-border hover:shadow-lg transition-shadow overflow-hidden",children:[e.jsx("div",{className:"-m-6 mb-[10px]",children:e.jsx(d,{pageName:t,sectionName:"feature-cards",contentKey:"card-2-image",defaultSrc:"/placeholder.svg",alt:"Feature 2",className:"w-full h-48 object-cover"})}),e.jsx(a,{pageName:t,sectionName:"feature-cards",contentKey:"card-2-title",defaultValue:"Electric Delivery Bikes",className:"text-xl font-bold mb-2",as:"h3"}),e.jsx(a,{pageName:t,sectionName:"feature-cards",contentKey:"card-2-desc",defaultValue:"With deliveries only on the rise with their ease and accessibility, who would not want to make this as green as possible with electric delivery bikes?",className:"text-muted-foreground",as:"p"})]})},{id:"card-3",component:e.jsxs("div",{className:"h-full flex flex-col p-6 rounded-xl bg-card border border-border hover:shadow-lg transition-shadow overflow-hidden",children:[e.jsx("div",{className:"-m-6 mb-[10px]",children:e.jsx(d,{pageName:t,sectionName:"feature-cards",contentKey:"card-3-image",defaultSrc:"/placeholder.svg",alt:"Feature 3",className:"w-full h-48 object-cover"})}),e.jsx(a,{pageName:t,sectionName:"feature-cards",contentKey:"card-3-title",defaultValue:"Food Waste",className:"text-xl font-bold mb-2",as:"h3"}),e.jsx(a,{pageName:t,sectionName:"feature-cards",contentKey:"card-3-desc",defaultValue:"Food waste is a global crisis and the best packaging services and operations are here to raise awareness of this with effective solutions to mitigate the issue! Find them on the trail!",className:"text-muted-foreground",as:"p"})]})}]})})})},{id:"three-cards",component:e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx(h,{pageName:t,sectionId:"three-cards",className:"grid md:grid-cols-3 gap-8",columns:Array.from({length:3},(r,s)=>({id:`card-${s+1}`,component:e.jsxs("div",{className:"h-full flex flex-col p-6 rounded-xl bg-card border border-border hover:shadow-lg transition-shadow overflow-hidden",children:[e.jsx("div",{className:"-m-6 mb-[10px]",children:e.jsx(d,{pageName:t,sectionName:"three-cards",contentKey:`card-${s+1}-image`,defaultSrc:"/placeholder.svg",alt:`Card ${s+1}`,className:"w-full h-48 object-cover"})}),e.jsx(a,{pageName:t,sectionName:"three-cards",contentKey:`card-${s+1}-title`,defaultValue:`Card ${s+1} Title`,className:"text-xl font-bold mb-2",as:"h3"}),e.jsx(a,{pageName:t,sectionName:"three-cards",contentKey:`card-${s+1}-desc`,defaultValue:`Description for card ${s+1}. Edit this text to add your content.`,className:"text-muted-foreground",as:"p"})]})}))})})})},{id:"two-text-cards",component:e.jsx("section",{className:"py-16 bg-muted/50",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx(h,{pageName:t,sectionId:"two-text-cards",className:"grid md:grid-cols-2 gap-8",columns:[{id:"card-1",component:e.jsxs("div",{className:"h-full flex flex-col p-8 rounded-xl bg-card border border-border shadow-card",children:[e.jsx(a,{pageName:t,sectionName:"two-text-cards",contentKey:"card-1-title",defaultValue:"Text Card 1 Title",className:"text-2xl font-bold mb-4",as:"h3"}),e.jsx(a,{pageName:t,sectionName:"two-text-cards",contentKey:"card-1-desc",defaultValue:"Description for text card 1. This card contains only text content without any images. Edit this to add your message.",className:"text-muted-foreground",as:"p"})]})},{id:"card-2",component:e.jsxs("div",{className:"h-full flex flex-col p-8 rounded-xl bg-card border border-border shadow-card",children:[e.jsx(a,{pageName:t,sectionName:"two-text-cards",contentKey:"card-2-title",defaultValue:"Text Card 2 Title",className:"text-2xl font-bold mb-4",as:"h3"}),e.jsx(a,{pageName:t,sectionName:"two-text-cards",contentKey:"card-2-desc",defaultValue:"Description for text card 2. This card contains only text content without any images. Edit this to add your message.",className:"text-muted-foreground",as:"p"})]})}]})})})},{id:"exhibitors",component:e.jsx("section",{className:"py-16",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx(a,{pageName:t,sectionName:"exhibitors",contentKey:"section-title",defaultValue:"Meet Sustainable Innovators",className:"text-3xl font-bold text-center mb-6",as:"h2"}),e.jsx(a,{pageName:t,sectionName:"exhibitors",contentKey:"description",defaultValue:"Connect with leading suppliers who are pioneering sustainable solutions for the hospital
1ity industry. From compostable packaging to energy-efficient equipment, discover products that help reduce your environmental impact while maintaining quality and efficiency.",className:"text-lg text-center max-w-4xl mx-auto mb-12",as:"p"}),N?e.jsx("div",{className:"text-center",children:"Loading..."}):e.jsx(A,{sensors:y,collisionDetection:U,onDragEnd:v,children:e.jsx(W,{items:i.map(r=>r.id),strategy:Y,children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:i.map(r=>{const s=r.id.replace("partner-","").split("-")[0];return e.jsx(I,{id:r.id,visible:r.visible,onDuplicate:x,onToggleVisibility:o,onDelete:j,children:e.jsxs("div",{className:"h-full flex flex-col p-6 rounded-xl bg-card border border-border shadow-card flex flex-col items-start text-left h-full",children:[e.jsx("div",{className:"w-[90%] mb-4",children:e.jsx(O,{pageName:t,partnerId:parseInt(s)})}),e.jsx(a,{pageName:t,sectionName:"partners-grid",contentKey:`${r.id}-title`,defaultValue:`Sustainability Partner ${s}`,className:"text-xl font-bold mb-3",as:"h3"}),e.jsx(a,{pageName:t,sectionName:"partners-grid",contentKey:`${r.id}-description`,defaultValue:"Partner description goes here. Edit to add details about this sustainability partner and their eco-friendly solutions.",className:"text-muted-foreground mb-4 text-sm flex-1",as:"p"}),e.jsxs("div",{className:"flex flex-col gap-2",children:[c&&e.jsxs("div",{className:"text-sm font-medium text-muted-foreground",children:["Button URL:",e.jsx(a,{pageName:t,sectionName:"partners-grid",contentKey:`${r.id}-url`,defaultValue:"https://example.com",className:"text-sm ml-2 font-normal",as:"span"})]}),e.jsx(G,{pageName:t,partnerId:parseInt(s),partnerKey:r.id})]})]})},r.id)})})})})]})})},{id:"register-cta",component:e.jsxs("section",{className:"py-20 text-white relative overflow-hidden",style:{background:"var(--gradient-title)"},children:[e.jsx("div",{className:"absolute inset-0 opacity-20",style:{background:"radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2) 0%, transparent 70%)"}}),e.jsx("div",{className:"container mx-auto px-4 relative z-10",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx(a,{pageName:t,sectionName:"cta",contentKey:"title",defaultValue:"Register Today",className:"text-4xl md:text-5xl font-bold mb-6 pt-5",as:"h2"}),!n&&e.jsxs(e.Fragment,{children:[e.jsx(a,{pageName:t,sectionName:"cta",contentKey:"description",defaultValue:"Visit the Sustainability Trail at the expo and discover how you can make your business more environmentally friendly.",className:"text-xl text-white/80 mb-8",as:"p"}),e.jsx(D,{onClick:()=>l(!0),styleType:"button2",className:"px-12 py-6 text-lg shadow-glow-strong",children:e.jsx(a,{pageName:t,sectionName:"cta",contentKey:"button-text",defaultValue:"Get Your Free Ticket",as:"span"})})]})]}),n&&e.jsx("div",{className:"overflow-hidden animate-stretch-in",children:e.jsxs("div",{className:"opacity-0 animate-form-appear",children:[e.jsx("div",{className:"flex justify-end mb-4",children:e.jsxs("button",{onClick:()=>l(!1),className:"text-white hover:text-white/80 transition-colors flex items-center gap-2 bg-black/40 backdrop-blur-md px-4 py-2 rounded-lg",children:[e.jsx($,{className:"h-5 w-5"}),e.jsx("span",{children:"Close"})]})}),e.jsxs("div",{className:"bg-black rounded-2xl border border-primary/20 shadow-glow-strong overflow-hidden",children:[e.jsxs("div",{className:"p-8 md:p-12",children:[e.jsx("h2",{className:"text-3xl font-bold mb-4 text-center text-white",children:"Secure Your Place"}),e.jsx("p",{className:"text-white/80 text-center mx-auto",children:"Complete the form below to secure your spot at Restaurant & Takeaway Innovation Expo 2026. Early registration receives exclusive benefits!"})]}),e.jsx("div",{className:"w-full bg-black -mb-4",children:e.jsx("iframe",{src:"https://disastersexpotexas.lpages.co/grab-go-register-interest/",className:"w-full border-0",style:{height:"680px",display:"block"},title:"Registration Form",loading:"lazy"})})]})]})})]})})]})}],[t,n,N,i,c,y]);return e.jsxs(e.Fragment,{children:[e.jsx(_,{titlePrefix:"Sustainability Trail",description:"Explore the Sustainability Trail at {eventName}
1 and discover eco-friendly solutions for the hospitality industry."}),e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(F,{}),e.jsx("main",{className:"pt-page",children:e.jsx(P,{pageName:t,sections:w})}),e.jsx(L,{})]})]})};export{se as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.