1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6713],{5356:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/proyecto-publico",function(){return t(3574)}])},5720:function(e,n,t){"use strict";t.d(n,{u:function(){return a}});var i=t(2729),r=t(964),o=t(2509);function s(){let e=(0,i._)(["\n position: relative;\n height: calc(100vh - ","rem);\n min-width: 100vh;\n\n .hero {\n display: block;\n position: absolute;\n padding: ","rem;\n padding-top: ","rem;\n\n h1 {\n font-size: ","rem;\n font-weight: 700;\n margin-bottom: ","rem;\n }\n\n p {\n font-size: ","rem;\n max-width: 100vw;\n max-width: calc(100vw - ","rem);\n width: 60rem;\n }\n\n @media "," {\n padding: ","rem;\n }\n }\n\n .gallery {\n display: flex;\n height: 100%;\n align-items: flex-end;\n\n @media "," {\n padding: ","rem;\n }\n\n .single-image {\n height: 100%;\n padding: ","rem;\n max-height: 60vh;\n img {\n height: 100%;\n width: auto;\n object-fit: contain;\n object-position: center;\n }\n }\n }\n"]);return s=function(){return e},e}let a=r.ZP.section(s(),3.625,1.5,4.375,2.5,.75,1.25,3,o.Td.md,3.75,o.Td.md,2.25,1.5)},3574:function(e,n,t){"use strict";t.r(n);var i=t(5893),r=t(7294),o=t(9008),s=t.n(o),a=t(1163),c=t(5720),d=t(8666),l=t(2674);n.default=()=>{let[e,n]=(0,r.useState)(null),[t,o]=(0,r.useState)([]),m=(0,a.useRouter)(),{id:h}=m.query;if((0,r.useEffect)(()=>{if(h){let e=async()=>{try{let e=await (0,l.e)(h);n(e.project),o(e.images)}catch(e){console.error("Error fetching project data",e)}};e()}},[h]),!e)return(0,i.jsx)("p",{children:"Loading..."});let p="https://tguwtfvgirojmfisngla.supabase.co/storage/v1/object/public/images/",u=t.length>0?"".concat(p).concat(t[0].supabase_store_id):"";return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(d.Xp.Provider,{value:{project:e,images:t},children:[(0,i.jsxs)(s(),{children:[(0,i.jsx)("title",{children:e.title}),(0,i.jsx)("meta",{name:"description",content:e.description}),(0,i.jsx)("meta",{property:"og:title",content:e.title}),(0,i.jsx)("meta",{property:"og:description",content:e.description}),u&&(0,i.jsx)("meta",{property:"og:image",content:u})]}),(0,i.jsxs)(c.u,{children:[(0,i.jsxs)("div",{className:"hero",children:[(0,i.jsx)("h1",{children:e.title}),(0,i.jsx)("p",{children:e.description})]}),(0,i.jsx)("div",{className:"gallery",children:t.map((e,n)=>(0,i.jsx)("div",{className:"single-image",children:(0,i.jsx)("img",{src:"".concat(p).concat(e.supabase_store_id),alt:"Project Image ".concat(n)})},n))})]})]})})}},2674:function(e,n,t){"use strict";t.d(n,{e:function(){return o}});var i=t(6490);let r=(0,i.eI)("https://tguwtfvgirojmfisngla.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRndXd0ZnZnaXJvam1maXNuZ2xhIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTcwNjIxNTI0NCwiZXhwIjoyMDIxNzkxMjQ0fQ.bHQZcIGJnI1ZlWAkkTLFnwi8sboHkNPTcZDXLrOMnGQ"),o=async e=>{try{let{data:n,error:t}=await r.from("projects").select("*").eq("id",e).single();if(t)throw console.error(t),Error(t.message);let{data:i,error:o}=await r.from("project_images").select("project_id, media ( id )").eq("project_id",e);if(o)throw console.error(o),Error(o.message);let s=i.map(e=>e.media.id),{data:a,error:c}=await r.from("media").select("*").in("id",s);if(c)throw console.error(c),Error(c.message);return{project:n,images:a}}catch(e){throw console.error("Error fetching project and images:",e),e}}}},function(e){e.O(0,[6490,9774,2888,179],function(){return e(e.s=5356)}),_N_E=e.O()}]);
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.