PageSourceSearch

https://triangulomineiro.com/assets/guia._slug-BMsyOTSC.js

js triangulomineiro.com collected 2026-10-02 14:06:15 UTC 4,112 bytes, 1 lines download raw bytes

1import{o as m,j as e,L as c,m as i}from"./index-6GNpqfaL.js";import{H as d,M as x,I as h,a as p,F as f}from"./Footer-Dm0UxlaK.js";import{P as g}from"./phone-D4ZBPIY1.js";import{M as j}from"./message-circle-BfFjlcVk.js";import{G as u}from"./globe-DsAtmVg7.js";import{M as b}from"./map-pin-71E-Bpk3.js";function _(){const{b:a}=m.useLoaderData(),r=a.whatsapp?.replace(/\D/g,"");return e.jsxs("div",{className:"flex min-h-screen flex-col",children:[e.jsx(d,{}),e.jsxs("main",{className:"flex-1",children:[a.cover_image&&e.jsx("div",{className:"h-48 w-full bg-foreground/5 md:h-64",children:e.jsx("img",{src:a.cover_image,alt:a.name,className:"h-full w-full object-cover"})}),e.jsxs("div",{className:"mx-auto max-w-5xl px-5 py-8",children:[e.jsxs("nav",{className:"mb-3 text-xs text-muted-foreground",children:[e.jsx(c,{to:"/guia",className:"hover:text-gold",children:"Guia"})," ·"," ",e.jsx(c,{to:"/guia/categoria/$cat",params:{cat:a.category},className:"hover:text-gold",children:i(a.category)}),a.city&&e.jsxs(e.Fragment,{children:[" · ",a.city.name]})]}),e.jsxs("div",{className:"flex flex-col gap-5 md:flex-row md:items-start",children:[e.jsx("div",{className:"h-24 w-24 flex-none overflow-hidden rounded-2xl border border-border bg-surface",children:a.logo_url?e.jsx("img",{src:a.logo_url,alt:a.name,className:"h-full w-full object-cover"}):e.jsx("div",{className:"grid h-full w-full place-items-center text-3xl text-muted-foreground",children:"🏷️"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h1",{className:"font-display text-3xl font-bold md:text-4xl",children:a.name}),e.jsxs("div",{className:"mt-2 flex flex-wrap gap-2 text-sm text-muted-foreground",children:[e.jsx("span",{children:i(a.category)}),a.city&&e.jsxs("span",{children:["· 📍 ",a.city.name,", MG"]})]}),a.description&&e.jsx("p",{className:"mt-4 whitespace-pre-line text-foreground/90",children:a.description})]})]}),e.jsxs("section",{className:"mt-8 grid gap-3 sm:grid-cols-2",children:[a.phone&&e.jsx(s,{icon:e.jsx(g,{className:"h-4 w-4"}),label:"Telefone",value:a.phone,href:`tel:${a.phone.replace(/[^\d+]/g,"")}`,dataAttrs:{"data-phone-location":"guia_empresa"}}),r&&e.jsx(s,{icon:e.jsx(j,{className:"h-4 w-4"}),label:"WhatsApp",value:a.whatsapp,href:`https://wa.me/${r}`,dataAttrs:{"data-wa-location":"guia_empresa","data-wa-button-text":"WhatsApp","data-wa-hotel-name":a.name}}),a.email&&e.jsx(s,{icon:e.jsx(x,{className:"h-4 w-4"}),label:"Email",value:a.email,href:`mailto:${a.email}`}),a.website&&e.jsx(s,{icon:e.jsx(u,{className:"h-4 w-4"}),label:"Site",value:a.website,href:a.website}),a.address&&e.jsx(s,{icon:e.jsx(b,{className:"h-4 w-4"}),label:"Endereço",value:a.address}),a.instagram&&e.jsx(s,{icon:e.jsx(h,{className:"h-4 w-4"}),label:"Instagram",value:a.instagram,href:`https://instagram.com/${a.instagram.replace(/^@/,"")}`}),a.facebook&&e.jsx(s,{icon:e.jsx(p,{className:"h-4 w-4"}),label:"Facebook",value:a.facebook,href:a.facebook.startsWith("http")?a.facebook:`https://facebook.com/${a.facebook}`})]}),a.hours&&Object.keys(a.hours).length>0&&e.jsxs("section",{className:"mt-8",children:[e.jsx("h2",{className:"mb-3 text-sm font-bold uppercase tracking-wider text-gold",children:"Horário"}),e.jsx("div",{className:"grid gap-1 text-sm",children:Object.entries(a.hours).map(([t,l])=>e.jsxs("div",{className:"flex justify-between border-b border-border py-1.5",children:[e.jsx("span",{className:"capitalize text-muted-foreground",children:t}),e.jsx("span",{children:String(l)})]},t))})]})]})]}),e.jsx(f,{})]})}function s({icon:a,label:r,value:t,href:l,dataAttrs:n}){const o=e.jsxs("div",{className:"flex items-start gap-3 rounded-xl border border-border bg-surface p-3.5",children:[e.jsx("div",{className:"mt-0.5 text-gold",children:a}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"text-[11px] uppercase tracking-wider text-muted-foreground",children:r}),e.jsx("div",{className:"truncate text-sm font-medium",children:t})]})]});return l?e.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"block hover:border-gold",...n,children:o}):o}export{_ as component};

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.