1import{j as e}from"./ui-yZ327I08.js";import{i as B,F as D,J as P,K as $,M as G,N as H,l as L,I as k,n as g,B as x,X as V,O as z,H as O,S as R,L as q,C as S,c as A,d as U,g as J,e as Q,o as Z,A as _}from"./index-DqHvK2TK.js";import{r as p,k as K,L as X}from"./vendor-Ca9VzWb6.js";import{C as W}from"./checkbox-E8mpfWcU.js";import{S as Y}from"./scroll-area-O7NY9u8c.js";import{F as I}from"./filter-BQ7bVSog.js";import{P as ee}from"./play-DhONyUTE.js";import"./index-BdQq_4o_.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const se=B("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);function ae({open:i,onOpenChange:u,topics:c,selectedTopics:a,onToggleTopic:r}){const[o,n]=p.useState(""),d=c.filter(l=>l.toLowerCase().includes(o.toLowerCase())),w=()=>{a.forEach(l=>r(l))},j=()=>{u(!1)};return e.jsx(D,{open:i,onOpenChange:u,children:e.jsxs(P,{side:"right",className:"w-full sm:max-w-md",children:[e.jsxs($,{children:[e.jsxs(G,{className:"flex items-center gap-2",children:[e.jsx(I,{className:"h-5 w-5"}),"Advanced Filters"]}
6),e.jsxs(H,{children:["Select topics to filter articles. ",a.length>0&&`${a.length} selected`]})]}),e.jsxs("div",{className:"mt-6 space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(L,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground h-4 w-4"}),e.jsx(k,{placeholder:"Search topics...",value:o,onChange:l=>n(l.target.value),className:"pl-10"})]}),a.length>0&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(g,{variant:"secondary",className:"text-sm",children:[a.length," topic",a.length!==1?"s":""," selected"]}),e.jsx(x,{variant:"ghost",size:"sm",onClick:w,className:"h-8 px-2 text-xs",children:"Clear All"})]}),e.jsx(Y,{className:"h-[calc(100vh-280px)]",children:e.jsx("div",{className:"space-y-3 pr-4",children:d.length>0?d.map(l=>e.jsxs("div",{className:"flex items-start space-x-3 py-2 hover:bg-accent/50 rounded-md px-2 -mx-2 cursor-pointer transition-colors",onClick:()=>r(l),children:[e.jsx(W,{id:l,checked:a.includes(l),onCheckedChange:()=>r(l),className:"mt-0.5"}),e.jsx("label",{htmlFor:l,className:"text-sm leading-none cursor-pointer flex-1",children:l})]},l)):e.jsxs("p",{className:"text-sm text-muted-foreground text-center py-8",children:['No topics found matching "',o,'"']})})}),e.jsxs("div",{className:"flex gap-2 pt-4 border-t",children:[e.jsx(x,{variant:"outline",onClick:()=>u(!1),className:"flex-1",children:"Cancel"}),e.jsxs(x,{onClick:j,className:"flex-1",children:["Apply ",a.length>0&&`(${a.length})`]})]})]})]})})}function te({selectedTopics:i,onRemoveTopic:u,onClearAll:c}){return i.length===0?null:e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Active Filters:"}),i.map(a=>e.jsxs(g,{variant:"secondary",className:"cursor-pointer hover:bg-secondary/80 transition-colors px-3 py-1 text-sm gap-1.5",onClick:()=>u(a),children:[a,e.jsx(V,{className:"h-3 w-3"})]},a)),e.jsx(x,{variant:"ghost",size:"sm",onClick:c,className:"h-7 px-2 text-xs",children:"Clear all"})]})}const he=()=>{const[i,u]=K(),[c,a]=p.useState(""),[r,o]=p.useState("All"),[n,d]=p.useState([]),[w,j]=p.useState(!1),{posts:l,isLoading:N}=z({language:"en"}),v=["Mergers & Acquisitions","Contract Law","Intellectual Property","International Business","Legal Compliance","Business Law","Corporate Law","Business Formation","Entity Selection","Startup Strategy","Texas Business Law","Delaware Corporation","Venture Capital","Fundraising","SAFEs","Convertible Notes","Startup Finance","Dilution","Founder Equity","Cap Table Management","Equity Distribution"];p.useEffect(()=>{const s=i.get("topic");if(s){const m=decodeURIComponent(s),h=v.find(y=>y.toLowerCase()===m.toLowerCase());h&&!n.includes(h)&&d([h])}const t=i.get("type");if(t){const m=["All","Articles","Videos","News"].find(h=>h.toLowerCase()===t.toLowerCase());m&&o(m)}},[i]);const b=l.sort((s,t)=>new Date(t.publishDate||t.publishedAt).getTime()-new Date(s.publishDate||s.publishedAt).getTime()).map(s=>({id:s.id,title:s.title,slug:s.slug,summary:s.summary,type:s.type,topics:s.topics,readingTime:`${s.readingTime} min read`,publishedAt:s.publishDate||s.publishedAt,author:s.author,featuredImage:s.featuredImage||s.seo.ogImage})),F=["All","Articles","Videos","News"],M=s=>{switch(s){case"video":return"bg-red-100 text-red-800";case"news":return"bg-green-100 text-green-800";default:return"bg-blue-100 text-blue-800"}},E=s=>{switch(s){case"video":return e.jsx(ee,{className:"h-4 w-4"});case"news":return e.jsx(se,{className:"h-4 w-4"});default:return null}},f=b.filter(s=>{const t=s.title.toLowerCase().includes(c.toLowerCase())||s.summary.toLowerCase().includes(c.toLowerCase()),m=r==="All"||r==="Articles"&&s.type==="article"||r==="Videos"&&s.type==="video"||r==="News"&&s.type==="news",h=n.length===0||n.some(y=>s.topics.includes(y));return t&&m&&h}),C=s=>{d(t=>t.includes(s)?t.filter(m=>m!==s):[...t,s])},T={"@context":"https://schema.org","@type":"ItemList",name:"Legal Insights for Founders and M&A",description:"Experienced legal analysis and insights on business law, M&A transactions, and entrepreneurship from GNS Law, a national business law firm.",numberOfItems:f.length,itemListElement:f.map((s,t)=>
6({"@type":"BlogPosting",position:t+1,name:s.title,description:s.summary,url:`${window.location.origin}/insights/${s.slug}`,datePublished:s.publishedAt,author:{"@type":"Person",name:s.author.name},publisher:{"@type":"LegalService",name:"GNS Law"},image:s.featuredImage}))};return e.jsxs(e.Fragment,{children:[e.jsxs(O,{children:[e.jsx("title",{children:"Business Law Insights | M&A and Entrepreneurship Articles | GNS Law"}),e.jsx("meta",{name:"description",content:"Articles and guides on M&A transactions, business sales, company formation, and US market entry for Latin American companies from GNS Law."})]}),e.jsx(R,{title:"Legal Insights & Experienced Analysis | M&A, Corporate Law & Business Strategy | GNS Law",description:"Learn how business law affects your success from a legal and strategic perspective. Insights from GNS Law, a national law firm for founders and M&A.",type:"website",language:"en",alternateUrls:{en:"https://www.gnslawpllc.com/insights",es:"https://www.gnslawpllc.com/es/insights"}}),e.jsxs(q,{children:[e.jsx("section",{className:"hero-gradient text-white py-20",children:e.jsxs("div",{className:"container text-center",children:[e.jsx("h1",{className:"text-5xl font-serif font-bold mb-6 text-white",children:"Business Intelligence"}),e.jsx("p",{className:"text-xl text-gray-200 max-w-2xl mx-auto",children:"Experienced analysis and insights on business law, M&A, and entrepreneurship."})]})}),e.jsx("section",{className:"py-6 bg-navy-50/50 border-b border-navy-100/50 relative z-10",children:e.jsx("div",{className:"container",children:e.jsxs("div",{className:"max-w-4xl mx-auto space-y-4",children:[e.jsxs("div",{className:"flex gap-3",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(L,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground h-5 w-5"}),e.jsx(k,{placeholder:"Search business intelligence...",value:c,onChange:s=>a(s.target.value),className:"pl-12 py-3 text-lg bg-white shadow-sm"})]}),e.jsxs(x,{variant:"outline",onClick:()=>j(!0),className:"px-6 whitespace-nowrap",children:[e.jsx(I,{className:"h-4 w-4 mr-2"}),"Filters",n.length>0&&e.jsx(g,{className:"ml-2 px-2 py-0.5 bg-primary text-primary-foreground",children:n.length})]})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:F.map(s=>e.jsx(g,{variant:s===r?"default":"outline",className:"cursor-pointer hover:bg-accent transition-colors px-4 py-2 text-sm",onClick:()=>o(s),children:s},s))}),e.jsx(te,{selectedTopics:n,onRemoveTopic:C,onClearAll:()=>d([])}),e.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[e.jsxs("span",{children:["Showing ",f.length," of ",b.length," articles"]}),(r!=="All"||n.length>0||c)&&e.jsx(x,{variant:"ghost",size:"sm",onClick:()=>{o("All"),d([]),a("")},children:"Clear all filters"})]})]})})}),e.jsx(ae,{open:w,onOpenChange:j,topics:v,selectedTopics:n,onToggleTopic:C}),e.jsx("section",{className:"py-6 md:py-8",children:e.jsxs("div",{className:"container",children:[N?e.jsx("div",{className:"grid sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6 lg:gap-8",children:[1,2,3,4,5,6].map(s=>e.jsxs(S,{className:"card-elegant h-full animate-pulse",children:[e.jsx("div",{className:"h-48 bg-navy-100 rounded-t-lg"}),e.jsxs(A,{children:[e.jsx("div",{className:"h-4 bg-navy-100 rounded w-3/4 mb-2"}),e.jsx("div",{className:"h-6 bg-navy-100 rounded w-full mb-2"}),e.jsx("div",{className:"h-4 bg-navy-100 rounded w-2/3"})]})]},s))}):e.jsx("div",{className:"grid sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6 lg:gap-8",children:f.map(s=>e.jsx(X,{to:`/insights/${s.slug}`,className:"block",children:e.jsxs(S,{className:"card-elegant group hover:shadow-[var(--shadow-elegant)] transition-all duration-300 cursor-pointer h-full",children:[e.jsxs("div",{className:"bg-gradient-to-br from-navy-100 to-navy-200 rounded-t-lg relative overflow-hidden h-48",children:[e.jsx("img",{src:s.featuredImage,alt:`${s.title} - ${s.topics.join(", ")}`,className:"w-full h-full object-cover",loading:"lazy"}),e.jsxs(g,{className:`absolute top-3 left-3 ${M(s.type)} flex items-center gap-1`,children:[E(s.type),s.type]})]}),e.jsxs(A,{children:[e.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:s.topics.map(t=>e.jsx(g,{variant:"outline",className:"text-xs",children:t},t))}),e.jsx(U,{className:"text-xl font-serif line-clamp-2 group-hover:text-accent transition-colors",children:s.title}),e.jsx(J,{className:"line-clamp-2",children:s.summary})]}),e.jsxs(Q,{children:[e.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground mb-4",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(Z,{className:"h-4 w-4 mr-1"}),s.readingTime]}),e.jsx("span",{children:new Date(s.publishedAt).toLocaleDateString()})]}),e.jsxs("div",{className:"text-sm text-muted-foreground mb-4",children:["By ",s.author.name]}),e.jsxs("div",{className:"flex items-center text-primary font-medium group-hover:text-accent transition-colors",children:["Read More",e.jsx(_,{className:"ml-2 h-4 w-4 transition-transform group-hover:translate-x-1"})]})]})]})},s.id))}),!N&&f.length===0&&e.jsxs("div",{className:"col-span-full text-center py-8",children:[e.jsx("p",{className:"text-muted-foreground text-lg",children:"No articles found matching your criteria."}),e.jsx(x,{variant:"outline",className:"mt-4",onClick:()=>{a(""),o("All"),d([])},children:"Clear Filters"})]})]})}),e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(T)}})]})]})};export{he 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.