1import{j as s}from"./ui-yZ327I08.js";import{O as U,L as d,S as P,B as p,o as Q,C as I,e as k,c as D,d as O,P as m}from"./index-DqHvK2TK.js";import{S as R,s as z,R as B,w as T,W as G,N as M,a as $,I as H,K as J,b as K}from"./whitePapers-CMRBUYge.js";import{r as F,h as V,L as u}from"./vendor-Ca9VzWb6.js";import{A as W}from"./arrow-left-DyteRFSC.js";import{U as _}from"./user-B4-xXDWy.js";import"./handshake-DZkFY98M.js";import"./play-DhONyUTE.js";import"./message-circle-Cm3xds4O.js";import"./file-text-B5jWwdze.js";import"./calendar-AnO3u658.js";import"./code-DxWFeALa.js";import"./stethoscope-Biibu2wi.js";import"./factory-Be44mZ6O.js";import"./truck-K5YOQAIW.js";import"./zap-BeBTC4pI.js";import"./client-CABlog3o.js";import"./whitepaper-es.pdf.asset-DPuU2Pyk.js";import"./book-open-_ssOC0YO.js";import"./loader-circle-DN9mbt5M.js";import"./download-Bfc1il9z.js";const Z=({article:a})=>(F.useEffect(()=>{if(a.content.includes("<h3>")&&a.content.toLowerCase().includes("pregunta")){const e={"@context":"https://schema.org","@type":"FAQPage",inLanguage:"es-ES",mainEntity:[{"@type":"Question",name:"¿Cuáles son los documentos esenciales para iniciar un negocio en Estados Unidos?",acceptedAnswer:{"@type":"Answer",text:"Los documentos esenciales incluyen artÃculos de incorporación, acuerdos operativos, contratos de empleo, polÃticas de propiedad intelectual, y licencias comerciales requeridas."}},{"@type":"Question",name:"¿Por qué es importante tener acuerdos operativos claros?",acceptedAnswer:{"@type":"Answer",text:"Los acuerdos operativos definen la estructura de gestión, distribución de ganancias, y procedimientos de toma de decisiones, protegiendo los intereses de todos los socios comerciales."}}]},t=document.createElement("script");return t.type="application/ld+json",t.text=JSON.stringify(e),document.head.appendChild(t),()=>{var l;const i=document.querySelector('script[type="application/ld+json"]');i&&((l=i.textContent)!=null&&l.includes("FAQPage"))&&i.remove()}}const r={"@context":"https://schema.org","@type":"Article",headline:a.title,inLanguage:"es-ES",about:a.topics.map(e=>({"@type":"Thing",name:e,sameAs:`https://gnslaw.com/es/insights?topic=${encodeURIComponent(e.toLowerCase())}`})),keywords:a.topics.join(", "),audience:{"@type":"Audience",audienceType:"Emprendedores y dueños de negocios",geographicArea:{"@type":"Place",name:"Estados Unidos"}},provider:{"@type":"LegalService",name:"GNS Law",serviceType:["Derecho Corporativo","Fusiones y Adquisiciones","Formación de Empresas"],areaServed:"Estados Unidos",availableLanguage:["es-ES","en-US"]}},n=document.createElement("script");return n.type="application/ld+json",n.text=JSON.stringify(r),document.head.appendChild(n),()=>{document.querySelectorAll('script[type="application/ld+json"]').forEach(t=>{var i;(i=t.textContent)!=null&&i.includes(a.title)&&t.remove()})}},[a]),null),X=({faqs:a,articleTitle:r})=>(F.useEffect(()=>{if(a.length===0)return;const n={"@context":"https://schema.org","@type":"FAQPage",mainEntity:a.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}})),inLanguage:"es-ES",about:{"@type":"Thing",name:r,description:"Preguntas frecuentes sobre aspectos legales empresariales"}},e=document.createElement("script");return e.type="application/ld+json",e.id="spanish-faq-schema",e.text=JSON.stringify(n),document.head.appendChild(e),()=>{const t=document.getElementById("spanish-faq-schema");t&&t.remove()}},[a,r]),null),be=()=>{var h,x,g,f,j,y,b,v,N,w,S,A;const{slug:a}=V(),{posts:r,isLoading:n}=U({language:"es",slug:a}),e=r[0]||null,t=async()=>{if(!e)return;const o=window.location.href,c=await K({title:e.title,url:o,text:e.summary});c.success?c.method==="clipboard"?m({title:"¡Enlace copiado!",description:"El enlace del artÃculo se ha copiado al portapapeles.",duration:3e3}):c.method==="native"&&m({title:"¡Gracias por compartir!",description:"Contenido compartido exitosamente.",duration:2e3}):m({title:"Error al compartir",description:"No se pudo compartir o copiar el enlace. Inténtalo de nuevo.",variant:"destructive",duration:4e3})},i=o=>{const c=[],E=o.match(/<h[23][^>]*>([^<]*\?[^<]*)<\/h[23]>\s*<p[^>]*>([^<]+(?:<[^>]+>[^<]*<\/[^>]+>[^<]*)*)<\/p>/gi);
1return E&&E.forEach(C=>{const L=C.match(/<h[23][^>]*>([^<]*\?[^<]*)<\/h[23]>/i),q=C.match(/<p[^>]*>([^<]+(?:<[^>]+>[^<]*<\/[^>]+>[^<]*)*)<\/p>/i);L&&q&&c.push({question:L[1].trim(),answer:q[1].replace(/<[^>]+>/g,"").trim()})}),c};if(n)return s.jsx(d,{children:s.jsx("section",{className:"py-6 bg-navy-50",children:s.jsx("div",{className:"container",children:s.jsxs("div",{className:"animate-pulse space-y-4",children:[s.jsx("div",{className:"h-8 bg-navy-100 rounded w-1/4"}),s.jsx("div",{className:"h-12 bg-navy-100 rounded w-3/4"}),s.jsx("div",{className:"h-6 bg-navy-100 rounded w-1/2"})]})})})});if(!e)return s.jsxs(d,{children:[s.jsx(P,{noindex:!0,language:"es",title:"ArtÃculo No Encontrado | GNS Law",description:"No se pudo encontrar esta página."}),s.jsxs("div",{className:"container py-12 text-center",children:[s.jsx("h1",{className:"text-4xl font-serif font-bold mb-4",children:"ArtÃculo No Encontrado"}),s.jsx("p",{className:"text-muted-foreground mb-8",children:"El artÃculo que buscas no existe."}),s.jsx(p,{asChild:!0,children:s.jsx(u,{to:"/es/insights",children:"Volver a Perspectivas"})})]})]});const l=i(e.content);return s.jsxs(s.Fragment,{children:[s.jsx(Z,{article:{title:e.title,content:e.content,topics:e.topics,slug:e.slug}}),s.jsx(X,{faqs:l,articleTitle:e.title}),s.jsx(P,{title:((h=e.seo)==null?void 0:h.metaTitle)||e.seoTitle||`${e.title} | GNS Law`,description:((x=e.seo)==null?void 0:x.metaDescription)||e.metaDescription||((g=e.summary)==null?void 0:g.substring(0,155)),image:(f=e.seo)==null?void 0:f.ogImage,imageAlt:(j=e.seo)==null?void 0:j.ogImageAlt,type:"article",author:typeof e.author=="string"?e.author:(y=e.author)==null?void 0:y.name,publishedTime:e.publishedAt,modifiedTime:e.publishedAt,section:"Perspectivas Legales",tags:e.topics,language:"es"}),s.jsxs(d,{children:[s.jsx("section",{className:"py-6 bg-navy-50",children:s.jsx("div",{className:"container",children:s.jsx(p,{variant:"ghost",asChild:!0,className:"mb-4",children:s.jsxs(u,{to:"/es/insights",children:[s.jsx(W,{className:"mr-2 h-4 w-4"}),"Volver a Perspectivas"]})})})}),s.jsx("section",{className:"py-12",children:s.jsx("div",{className:"container max-w-4xl",children:s.jsxs("div",{className:"grid md:grid-cols-4 gap-12",children:[s.jsx("div",{className:"md:col-span-3",children:s.jsxs("article",{children:[s.jsxs("header",{className:"mb-8 overflow-visible",children:[s.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:e.topics.map(o=>s.jsx(u,{to:`/es/insights?topic=${encodeURIComponent(o.toLowerCase())}`,className:"inline-flex items-center rounded-full border border-input bg-background px-2.5 py-0.5 text-xs font-semibold text-foreground hover:bg-accent hover:text-accent-foreground transition-colors cursor-pointer",children:o},o))}),s.jsx("h1",{className:"article-title text-2xl sm:text-3xl md:text-5xl font-serif font-bold mb-6 leading-relaxed md:leading-tight break-words [text-wrap:balance] [hyphens:auto] pr-2 sm:pr-0",children:e.title}),s.jsx("p",{className:"text-xl text-muted-foreground mb-6 leading-relaxed",children:e.summary}),s.jsxs("div",{className:"flex items-center gap-6 text-sm text-muted-foreground mb-8",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(_,{className:"h-4 w-4"}),s.jsxs("span",{children:["Por ",typeof e.author=="string"?e.author:(b=e.author)==null?void 0:b.name]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Q,{className:"h-4 w-4"}),s.jsxs("span",{children:[e.readingTime," min lectura"]})]}),s.jsx("span",{children:new Date(e.publishedAt).toLocaleDateString("es-ES")})]}),s.jsx("div",{className:"flex items-center gap-4 mb-8",children:s.jsxs(p,{variant:"outline",size:"sm",onClick:t,children:[s.jsx(R,{className:"mr-2 h-4 w-4"}),"Compartir"]})})]}),e.type!=="video"&&((v=e.seo)==null?void 0:v.ogImage)&&s.jsx("div",{className:"mb-8 rounded-lg overflow-hidden",children:s.jsx("img",{src:e.seo.ogImage,alt:e.seo.ogImageAlt||`Imagen del artÃculo: ${e.title} - Temas: ${e.topics.join(", ")}`,className:"w-full h-auto object-contain",loading:"eager"})}),s.jsx("div",{className:"prose prose-lg max-w-none prose-headings:font-serif prose-headings:text-primary prose-headings:mb-6 prose-headings:mt-8 prose-p:mb-6 prose-p:leading-relaxed prose-ul:mb-6 prose-ol:mb-6 prose-li:mb-2 prose-a:text-accent prose-a:no-underline hover:prose-a:underline prose-blockquote:border-l-accent prose-blockquote:bg-secondary/30 prose-blockquote:p-4 prose-blockquote:italic",dangerouslySetInnerHTML:{__html:z(e.content)}}),s.jsx(B,{topics:e.topics}),T[e.slug]&&s.jsx(G,{whitePaper:T[e.slug]}),s.jsx(M,{topics:e.topics,articleTitle:e.title}),s.jsx(I,{className:"card-elegant mt-12",children:s.jsxs(k,{className:"flex items-start gap-4 p-6",children:[s.jsx("div",{className:"w-16 h-16 rounded-full bg-gradient-to-br from-navy-100 to-navy-200 flex items-center justify-center flex-shrink-0",children:s.jsx("span",{className:"text-navy-600 font-serif text-lg",children:(typeof e.author=="string"?e.author:((N=e.author)==null?void 0:N.name)||"GNS Law").split(" ").filter(o=>
1/^[A-Za-zÃ-ÿ]/.test(o)).slice(0,2).map(o=>o[0]).join("")})}),s.jsxs("div",{children:[s.jsx("h4",{className:"font-semibold mb-1",children:typeof e.author=="string"?e.author:(w=e.author)==null?void 0:w.name}),s.jsx("p",{className:"text-accent text-sm mb-2",children:typeof e.author=="object"&&((S=e.author)!=null&&S.role)?e.author.role:"Firma de Abogados Corporativos"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:typeof e.author=="object"&&((A=e.author)!=null&&A.bio)?e.author.bio:"GNS Law es una firma legal especializada en M&A, derecho corporativo y transacciones comerciales."})]})]})})]})}),s.jsx("div",{className:"md:col-span-1",children:s.jsxs("div",{className:"sticky top-24 space-y-6",children:[s.jsx($,{currentSlug:e.slug,currentTopics:e.topics,language:"es"}),s.jsx(H,{topics:e.topics}),s.jsxs(I,{className:"card-elegant bg-gradient-to-br from-navy-600 to-navy-700 text-white",children:[s.jsx(D,{children:s.jsx(O,{className:"text-white font-serif",children:"Mantente Actualizado"})}),s.jsxs(k,{children:[s.jsx("p",{className:"text-navy-100 text-sm mb-4",children:"Recibe las últimas perspectivas en tu bandeja de entrada."}),s.jsx(J,{className:"keap-form-container"})]})]})]})})]})})})]})]})};export{be 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.