1import{a as j,r as a,j as e,H as S,L as m}from"./edge-BOITG1XR.js";const g="https://sendunlimitedemail.com",y={performance:{name:"Performance",color:"#0066CC",icon:"â¡",description:"Email performance, deliverability rates, inbox placement, and SMTP throughput guides.",seoTitle:"Email Performance Guides | SendUnlimitedEmail Blog",seoDescription:"In-depth guides on improving email deliverability, inbox placement rates, SMTP throughput, and IP warm-up for bulk senders."},problems:{name:"Problems",color:"#DC2626",icon:"ð§",description:"Troubleshooting common email problems â bounces, blacklists, spam filters, and delivery failures.",seoTitle:"Email Troubleshooting Guides | SendUnlimitedEmail Blog",seoDescription:"Fix email bounces, blacklistings, spam filter blocks, and delivery failures. Step-by-step guides from the SendUnlimitedEmail team."},security:{name:"Security",color:"#7C3AED",icon:"ð",description:"Email security â SPF, DKIM, DMARC, phishing prevention, and sender authentication.",seoTitle:"Email Security Guides | SendUnlimitedEmail Blog",seoDescription:"Protect your domain with SPF, DKIM, and DMARC. Prevent phishing, spoofing, and email impersonation with authentication best practices."},"web-hosting":{name:"Web Hosting",color:"#D97706",icon:"ð¥ï¸",description:"Web hosting, VPS, dedicated servers, and infrastructure for email-heavy applications.",seoTitle:"Web Hosting & Email Infrastructure | SendUnlimitedEmail Blog",seoDescription:"Guides on VPS, dedicated servers, and web hosting configurations optimized for high-volume email sending and deliverability."},"send-unlimited-email":{name:"Send Unlimited Email",color:"#14C4A2",icon:"ð§",description:"Unlimited email sending â SMTP setup, bulk campaigns, list management, and scaling strategies.",seoTitle:"Send Unlimited Email Guides | SendUnlimitedEmail Blog",seoDescription:"How to set up and scale unlimited email sending with dedicated SMTP servers, proper authentication, and deliverability best practices."},uncategorized:{name:"Uncategorized",color:"#475569",icon:"ð",description:"General email and SMTP articles from the SendUnlimitedEmail team.",seoTitle:"Email Guides | SendUnlimitedEmail Blog",seoDescription:"General guides on email, SMTP infrastructure, and deliverability from the SendUnlimitedEmail team."}};function w(i){try{return new Date(i).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch{return i?.slice(0,10)||""}}function T(i){const n=(i||"").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim(),r=n?n.split(/\s+/).length:0;return`${Math.max(3,Math.ceil(r/220))} min`}function E(i){return{padding:"6px 12px",borderRadius:8,fontSize:13,fontWeight:600,background:i?"var(--sue-blue-600)":"white",color:i?"white":"var(--sue-text-muted)",border:`1px solid ${i?"var(--sue-blue-600)":"var(--sue-border)"}`,cursor:"pointer"}}function D(){const{slug:i}=j(),n=y[i]||{name:i?i.replace(/-/g," ").replace(/\b\w/g,t=>t.toUpperCase()):"Category",color:"#475569",icon:"ð",description:"",seoTitle:`${i} | SendUnlimitedEmail Blog`,seoDescription:`Blog posts in the ${i} category from SendUnlimitedEmail.`},[r,d]=a.useState([]),[s,u]=a.useState(!0),[l,x]=a.useState(1),[c,f]=a.useState({total:0,last_page:1}),[b,v]=a.useState([]);a.useEffect(()=>{fetch("/api/blog/categories").then(t=>t.ok?t.json():[]).then(t=>v(Array.isArray(t)?t:[])).catch(()=>{})},[]),a.useEffect(()=>{u(!0);const t=new URLSearchParams({page:l,per_page:24,category:i});fetch(`/api/blog?${t}`).then(o=>o.ok?o.json():null).then(o=>{o?.data&&(d(o.data),f({total:o.total||0,last_page:o.last_page||1})),u(!1)}).catch(()=>u(!1))},[i,l]);const h=`${g}/category/${i}/`;return e.jsxs(e.Fragment,{children:[e.jsxs(S,{children:[e.jsx("title",{children:n.seoTitle}),e.jsx("meta",{name:"description",content:n.seoDescription}),e.jsx("link",{rel:"canonical",href:h}),e.jsx("meta",{property:"og:title",content:n.seoTitle}),e.jsx("meta",{property:"og:description",content:n.seoDescription}),e.jsx("meta",{property:"og:url",content:h}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:image",content:`${g}/og-image.png`}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:n.seoTitle}),e.jsx("meta",{name:"twitter:description",content:n.seoDescription}),e.jsx("meta",{name:"twitter:image",content:`${g}/og-image.png`}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"CollectionPage",name:n.seoTitle,url:h,description:n.seoDescription,publisher:{"@type":"Organization",name:"SendUnlimitedEmail",url:g}})})]}),e.jsx("section",{style:{background:`linear-gradient(135deg, ${n.color}, color-mix(in srgb, ${n.color} 70%, #0F172A))`,color:"white",padding:"clamp(48px, 8vw, 80px) 0 clamp(40px, 6vw, 64px)"},children:e.jsxs("div",{className:"sue-container",children:[e.jsx("div",{style:{marginBottom:12},children:e.jsx(m,{to:"/blog",style:{color:"rgba(255,255,255,0.75)",textDecoration:"none",fontSize:13},children:"â Blog"})}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:16},children:[e.jsx("span",{style:{fontSize:48},children:n.icon}),e.jsxs("div",{children:[e.jsx("div",{style:{display:"inline-block",fontSize:11,fontWeight:800,padding:"4px 10px",borderRadius:999,background:"rgba(255,255,255,0.18)",border:"1px solid rgba(255,255,255,0.25)",textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:10},children:"Category"}),e.jsx("h1",{style:{fontSize:"clamp(28px, 5vw, 48px)",fontWeight:800,lineHeight:1.1,letterSpacing:"-0.025em",margin:0},children:n.name})]})]}),n.description&&e.jsx("p",{style:{fontSize:"clamp(14px, 2vw, 17px)",lineHeight:1.55,opacity:.9,maxWidth:640,margin:"0 0 8px"},children:n.description}),c.total>0&&e.jsxs("div",{style:{fontSize:13,opacity:.75,marginTop:10},children:[c.total," articles"]})]})}),b.length>1&&e.jsx("section",{style:{background:"white",borderBottom:"1px solid var(--sue-border)",padding:"14px 0"},children:e.jsx("div",{className:"sue-container",children:e.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",alignItems:"center"},children:[e.jsx("span",{style:{fontSize:12,color:"var(--sue-text-muted)",marginRight:4},children:"Browse:"}),e.jsx(m,{to:"/blog",style:{fontSize:12.5,padding:"5px 12px",borderRadius:999,textDecoration:"none",background:"var(--sue-bg-muted)",color:"var(--sue-text-muted)",border:"1px solid var(--sue-border)"},children:"All posts"}),b.map(t=>{const o=t.slug===i,p=y[t.slug];return e.jsxs(m,{to:`/category/${t.slug}`,style:{fontSize:12.5,padding:"5px 12px",borderRadius:999,textDecoration:"none",background:o?p?.color||"#475569":"var(--sue-bg-muted)",color:o?"white":"var(--sue-text-muted)",border:`1px solid ${o?p?.color||"#475569":"var(--sue-border)"}`,fontWeight:o?700:400},children:[t.name," (",t.count,")"]},t.slug)})]})})}),e.jsx("section",{style:{padding:"clamp(32px, 5vw, 56px) 0",background:"var(--sue-bg-muted)"},children:e.jsx("div",{className:"sue-container",children:s&&r.length===0?e.jsx("div",{style:{padding:48,textAlign:"center",color:"var(--sue-text-muted)"},children:"Loading articlesâ¦"}):r.length===0?e.jsxs("div",{style:{padding:48,textAlign:"center",background:"white",borderRadius:12},children:[e.jsx("div",{style:{fontSize:48,marginBottom:12},children:n.icon}),e.jsxs("div",{style:{fontSize:16,fontWeight:700},children:["No articles in ",n.name," yet"]}),e.jsx("p",{style:{color:"var(--sue-text-muted)",marginTop:8},children:e.jsx(m,{to:"/blog",style:{color:"var(--sue-blue-600)"},children:"Browse all articles â"})})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))",gap:18},children:r.map(t=>e.jsx(k,{post:t,catColor:n.color},t.id||t.slug))}),c.last_page>1&&e.jsxs("div",{style:{marginTop:28,display:"flex",justifyContent:"center",gap:6,flexWrap:"wrap"},children:[e.jsx("button",{disabled:l===1,onClick:()=>{x(t=>t-1),window.scrollTo({top:0,behavior:"smooth"})},type:"button",className:"sue-btn sue-btn-outline sue-btn-sm",children:"â Prev"}),Array.from({length:c.last_page},(t,o)=>o+1).filter(t=>t===1||t===c.last_page||Math.abs(t-l)<=2).map((t,o,p)=>e.jsxs("span",{children:[o>0&&p[o-1]!==t-1&&e.jsx("span",{style:{padding:"6px 8px",color:"var(--sue-text-subtle)"},children:"â¦"}),e.jsx("button",{onClick:()=>{x(t),window.scrollTo({top:0,behavior:"smooth"})},type:"button",style:E(t===l),children:t})]},t)),e.jsx("button",{disabled:l===c.last_page,onClick:()=>{x(t=>t+1),window.scrollTo({top:0,behavior:"smooth"})},type:"button",className:"sue-btn sue-btn-outline sue-btn-sm",children:"Next â"})]})]})})})]})}function k({post:i,catColor:n}){const r=n||"#0066CC",d=i.featured_image;return e.jsxs(m,{to:`/blog/${i.slug}`,style:{display:"block",textDecoration:"none",color:"inherit",background:"white",border:"1px solid var(--sue-border)",borderRadius:12,overflow:"hidden",transition:"all .2s"},onMouseEnter:s=>{s.currentTarget.style.transform="translateY(-3px)",s.currentTarget.style.boxShadow="0 12px 28px rgba(15,23,42,0.10)"},onMouseLeave:s=>{s.currentTarget.style.transform="translateY(0)",s.currentTarget.style.boxShadow="none"},children:[e.jsx("div",{style:{aspectRatio:"16 / 9",overflow:"hidden",background:d?`url(${d}) center/cover no-repeat`:`linear-gradient(135deg, color-mix(in srgb, ${r} 15%, white), color-mix(in srgb, ${r} 5%, white))`,display:"grid",placeItems:"center",fontSize:56},children:!d&&"ð§"}),e.jsxs("div",{style:{padding:18},children:[e.jsx("span",{style:{display:"inline-block",fontSize:10.5,fontWeight:700,padding:"3px 9px",borderRadius:4,background:`color-mix(in srgb, ${r} 14%, white)`,color:r,marginBottom:10,textTransform:"uppercase",letterSpacing:"0.05em"},children:i.category}),e.jsx("h3",{style:{fontSize:16.5,fontWeight:800,lineHeight:1.3,color:"var(--sue-text)",margin:"0 0 8px",letterSpacing:"-0.01em"},children:i.title}),e.jsxs("p",{style:{fontSize:13,color:"var(--sue-text-muted)",lineHeight:1.55,margin:"0 0 12px"},children:[(i.excerpt||"").slice(0,110),(i.excerpt||"").length>110?"â¦":""]}),e.jsxs("div",{style:{fontSize:11.5,color:"var(--sue-text-subtle)",display:"flex",justifyContent:"space-between"},children:[e.jsx("span",{children:w(i.published_at)}),e.jsxs("span",{children:[T(i.content)," read"]})]})]})]})}export{D 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.