1import{a5 as i,t,j as a,$ as n,a0 as d,a7 as o,V as c,a3 as m,W as u,_ as p,N as x,X as h}from"./index-CJ5oTC-6.js";import{F as g}from"./FloorPlan-PQbYKQPm.js";import{P as j}from"./PageHero-DJsZNpIj.js";import{b as f}from"./icelandicCopy-DW8OCmyx.js";import"./map-pinned-CE7OH-Ya.js";function w(){const{slug:r}=i(),{data:e,isLoading:l}=t.vendors.bySlug.useQuery({slug:r??""},{enabled:!!r});return l||!e?a.jsx(n,{cards:2}):a.jsxs(a.Fragment,{children:[a.jsx(d,{title:f(e.name,"â"),description:e.description??`Kynntu þér ${e.name}, söluaðila à Kolaportinu.`,canonicalPath:`/soluadilar/${e.slug}`,image:e.logoUrl}),a.jsx(j,{eyebrow:"Söluaðili",title:e.name,description:e.description??void 0,breadcrumbs:[{label:"Söluaðilar",href:"/soluadilar"},{label:e.name}],image:e.logoUrl??void 0,imageAlt:e.logoAlt??"",grid:"detail"}),a.jsxs("section",{className:"container grid gap-10 py-14 lg:grid-cols-[1fr_0.62fr] lg:py-20",children:[a.jsxs("article",{children:[a.jsx("div",{className:"flex flex-wrap gap-2",children:e.categories.map(s=>a.jsx(o,{variant:"secondary",className:"rounded-full",children:s.name},s.id))}),a.jsx("h2",{className:"display-type mt-8 text-4xl uppercase",children:"Um söluaðilann"}),a.jsx("p",{className:"mt-4 max-w-3xl text-pretty text-lg leading-8 text-muted-foreground",children:e.description??"Nánari upplýsingar um vörur og úrval þessa söluaðila eru à vinnslu. Komdu við á markaðsdegi eða hafðu samband til að fá frekari upplýsingar."}),e.photos.length>0&&a.jsxs("section",{className:"mt-10","aria-labelledby":"vendor-gallery-title",children:[a.jsx("h2",{id:"vendor-gallery-title",className:"display-type text-4xl uppercase",children:"Myndir frá söluaðilanum"}),a.jsx("div",{className:"mt-5 grid gap-4 sm:grid-cols-2",children:e.photos.map(s=>a.jsx("figure",{className:"overflow-hidden rounded-[calc(var(--radius)+0.25rem)] border border-border bg-card shadow-sm",children:a.jsx("img",{src:s.url,alt:s.altText,loading:"lazy",className:"aspect-[4/3] w-full rounded-b-none object-cover"})},s.id))})]}),e.mapX!=null&&e.mapY!=null&&a.jsxs("div",{className:"mt-10",children:[a.jsx("h2",{className:"display-type mb-5 text-4xl uppercase",children:"Finndu básinn"}),a.jsx(g,{vendors:[e],activeSlug:e.slug})]})]}),a.jsxs("aside",{className:"h-fit rounded-[calc(var(--radius)+0.25rem)] border border-border bg-card p-6 shadow-sm",children:[a.jsx(c,{className:"size-7 text-primary","aria-hidden":"true"}),a.jsx("h2",{className:"display-type mt-5 text-3xl uppercase",children:"Upplýsingar"}),a.jsxs("div",{className:"mt-5 space-y-4 text-sm",children:[(e.zone||e.stallNumber||e.floor)&&a.jsxs("p",{className:"flex items-start gap-3",children:[a.jsx(m,{className:"mt-0.5 size-4 shrink-0 text-primary","aria-hidden":"true"}),a.jsx("span",{children:[e.floor,e.zone,e.stallNumber&&`bás ${e.stallNumber}`].filter(Boolean).join(" · ")})]}),e.contactEmail&&a.jsxs("a",{href:`mailto:${e.contactEmail}`,className:"flex items-center gap-3 hover:text-brand-ink dark:hover:text-primary",children:[a.jsx(u,{className:"size-4 text-primary","aria-hidden":"true"}),e.contactEmail]}),e.contactPhone&&a.jsxs("a",{href:`tel:${e.contactPhone.replace(/\s/g,"")}`,className:"flex items-center gap-3 hover:text-brand-ink dark:hover:text-primary",children:[a.jsx(p,{className:"size-4 text-primary","aria-hidden":"true"}),e.contactPhone]}),e.website&&a.jsx(x,{asChild:!0,variant:"outline",className:"mt-3 w-full rounded-full",children:a.jsxs("a",{href:e.website,target:"_blank",rel:"noreferrer",children:["HeimasÃða ",a.jsx(h,{"aria-hidden":"true"})]})})]})]})]})]})}export{w 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.