PageSourceSearch

https://streetfoodexpo.co.uk/assets/ExhibitorStandInfo-BkSXMSfo.js

js streetfoodexpo.co.uk collected 2026-09-30 09:31:32 UTC 5,519 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-ui-BUR-GDUn.js";import{R as g,E as m,x as N,y as j,z as b,H as y,L as _,W as t,d as v,N as I,c2 as x,P as w,F as S,s as E}from"./index-B0Fu6ckJ.js";import{f as F,r as h}from"./vendor-react-DCbXEM4Z.js";import"./vendor-dnd-CecOPVzN.js";import{u as T,c as C}from"./vendor-data-CUxnnq7o.js";import"./vendor-editor-CS7TB4mw.js";import"./vendor-charts-BbJn_gn3.js";const M=()=>{const u=F(),{toast:o}=g(),{data:s,isLoading:f,error:r,refetch:k}=T({queryKey:["exhibitor-stand-info"],queryFn:async()=>{const a=sessionStorage.getItem("impersonation_token"),d=sessionStorage.getItem("impersonation_refresh");let n=E;a&&d&&(n=C("https://cwiyoupwatrzsqwhwdjl.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImN3aXlvdXB3YXRyenNxd2h3ZGpsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjgxOTg3MTIsImV4cCI6MjA4Mzc3NDcxMn0.FaXaUzp-FQPqbQ3luBI2TeJwsxtHyGAF1exKzSb5m58",{auth:{storage:{getItem:()=>null,setItem:()=>{},removeItem:()=>{}},persistSession:!1,autoRefreshToken:!0}}),await n.auth.setSession({access_token:a,refresh_token:d}));const{data:{session:i}}=await n.auth.getSession();if(!i)throw u("/exhibitor-portal/login"),new Error("Not authenticated");const{data:l,error:c}=await n.from("exhibitors").select("id, name, booth_number, stand_type, booth_length, booth_width, open_sides, logo_url, user_id").eq("user_id",i.user.id).maybeSingle();if(c)throw c;return l||await n.from("exhibitors").select("id, name, user_id").limit(5),l||{_userId:i.user.id,_email:i.user.email}},refetchInterval:3e3,refetchOnWindowFocus:!0,refetchOnMount:!0});h.useEffect(()=>{},[s]),h.useEffect(()=>{r&&o({title:"Error",description:"Failed to load stand information. Please try again.",variant:"destructive"})},[r,o]);const p=[{id:"stand-info-title",component:e.jsx("section",{className:"py-12",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx(m,{pageName:"exhibitor-stand-info",sectionName:"title",contentKey:"heading",defaultValue:"Stand Information",className:"text-4xl font-bold mb-4 text-foreground",as:"h1"}),e.jsx(m,{pageName:"exhibitor-stand-info",sectionName:"title",contentKey:"description",defaultValue:"Everything you need to know about your exhibition stand, including setup times, specifications, and requirements.",className:"text-lg text-muted-foreground max-w-3xl",as:"p"})]})})},{id:"stand-info-form",component:e.jsx("section",{className:"pb-12",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs(N,{children:[e.jsx(j,{children:e.jsx(b,{children:"Your Stand Details"})}),e.jsx(y,{className:"space-y-6",children:f?e.jsx("div",{className:"flex justify-center py-8",children:e.jsx(_,{className:"h-8 w-8 animate-spin text-primary"})}):s!=null&&s.id?e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx(t,{className:"text-muted-foreground text-sm",children:"Booth Number"}),e.jsx("p",{className:"text-lg font-semibold mt-1",children:(s==null?void 0:s.booth_number)||"Not assigned"})]}),e.jsxs("div",{children:[e.jsx(t,{className:"text-muted-foreground text-sm",children:"Stand Type"}),e.jsx("p",{className:"text-lg font-semibold mt-1",children:(s==null?void 0:s.stand_type)||"Not specified"})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsx(t,{className:"text-muted-foreground text-sm",children:"Length"}),e.jsx("p",{className:"text-lg font-semibold mt-1",children:s!=null&&s.booth_length?`${s.booth_length}m`:"Not specified"})]}),e.jsxs("div",{children:[e.jsx(t,{className:"text-muted-foreground text-sm",children:"Width"}),e.jsx("p",{className:"text-lg font-semibold mt-1",children:s!=null&&s.booth_width?`${s.booth_width}m`:"Not specified"})]}),e.jsxs("div",{children:[e.jsx(t,{className:"text-muted-foreground text-sm",children:"Open Sides"}),e.jsx("p",{className:"text-lg font-semibold mt-1",children:(s==null?void 0:s.open_sides)!==void 0?s.open_sides:"Not specified"})]})]}),(s==null?void 0:s.booth_length)&&(s==null?void 0:s.booth_width)&&e.jsxs("div",{className:"pt-4 border-t",children:[e.jsx(t,{className:"text-muted-foreground text-sm",children:"Total Area"}),e.jsxs("p",{className:"text-lg font-semibold mt-1",children:[(s.booth_length*s.booth_width).toFixed(2)," m²"]})]})]}):e.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[e.jsx("p",{children:"No stand information available yet."}),e.jsx("p",{className:"text-sm mt-2",children:"Please contact the event organizers for your stand details."})]})})]})})})}];return e.jsxs(e.Fragment,{children:[e.jsx(v,{titlePrefix:"Stand Information - Exhibitor Portal",noIndex:!0}),e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(I,{}),e.jsx("main",{className:"flex-1 pt-page pb-12",children:e.jsx("div",{className:"container mx-auto px-6",children:e.jsxs("div",{className:"flex gap-8 mt-[60px]",children:[e.jsx("aside",{className:"w-64 flex-shrink-0 sticky top-24 h-fit hidden lg:block",children:e.jsx(x,{exhibitorName:s==null?void 0:s.name,standNumber:s==null?void 0:s.booth_number,logoUrl:s==null?void 0:s.logo_url,renderTrigger:!1,alwaysVisible:!0})}),e.jsx("div",{className:"lg:hidden fixed top-20 left-4 z-50",children:e.jsx(x,{exhibitorName:s==null?void 0:s.name,standNumber:s==null?void 0:s.booth_number,logoUrl:s==null?void 0:s.logo_url,renderTrigger:!0})}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx(w,{pageName:"exhibitor-stand-info",sections:p})})]})})}),e.jsx(S,{})]})]})};export{M 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.