1import{_ as C}from"./BwF_IqZV.js";import{h as I,b as L}from"./tH-LW034.js";import{u as N}from"./Doy7-QcF.js";import{d as u,m as c,q as T,R as j,I as o,N as t,P as H,_ as b,F as n,Q as d,B as a,Z as O,A as $,C as M,$ as z,O as p}from"./BBAFlaF4.js";const V={class:"min-h-screen bg-gray-50 py-12 px-4"},q={class:"max-w-6xl mx-auto"},E={class:"mb-8 py-5 text-center md:text-start flex flex-col items-center md:items-start gap-2"},W={class:"flex gap-4 mt-4"},D={key:0,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8","aria-label":"Loading blog posts"},F={key:1,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"},R=["src"],A={class:"p-6 flex-1 flex flex-col justify-between"},J={class:"text-2xl font-semibold mb-2 text-gray-900 group-hover:text-primary-light transition-colors"},Q={key:0,class:"flex flex-wrap gap-1 mb-2"},Y=["innerHTML"],Z={class:"mt-10 flex justify-center items-center gap-2"},G=["disabled"],K=["onClick"],U=["disabled"],m=6,ot={__name:"index",setup(X){const i=u("hi"),v=u(!0),r=u(1),x=c(()=>i.value==="hi"?I:L),g=c(()=>Math.ceil(x.value.length/m)),k=c(()=>{const l=(r.value-1)*m;return x.value.slice(l,l+m)});T(i,()=>{r.value=1});const h=l=>{l>=1&&l<=g.value&&(r.value=l,window.scrollTo({top:0,behavior:"smooth"}))};return j(()=>{setTimeout(()=>{v.value=!1},500)}),N({title:"Bharatrath Blog â Tips, Insights, and Stories for Small Businesses in India",script:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Blog",name:"Bharatrath Blog",description:"Insights, tips, and stories about small business growth, digital tools, and entrepreneurship in India.",url:"https://bharatrath.com/bharatrathblogs",publisher:{"@type":"Organization",name:"Bharatrath",logo:{"@type":"ImageObject",url:"https://bharatrath.com/logo.png"}},blogPost:[{"@type":"BlogPosting",headline:"Digital India for Small Business Owners: Where to Start?",url:"https://bharatrath.com/bharatrathblogs/digital-india-for-small-business-owners-where-to-start"},{"@type":"BlogPosting",headline:"How to Manage Inventory Without Hiring Extra Staff",url:"https://bharatrath.com/bharatrathblogs/how-to-manage-inventory-without-hiring-extra-staff"},{"@type":"BlogPosting",headline:"How to Take Your Local Business Online in 2025",url:"https://bharatrath.com/bharatrathblogs/how-to-take-your-local-business-online-in-2025"},{"@type":"BlogPosting",headline:"How to Start an Online Store Without Coding?",url:"https://bharatrath.com/bharatrathblogs/how-to-start-an-online-store-without-coding"}]})}]}),(l,s)=>{const B=C;return a(),o("section",V,[t("div",q,[t("div",E,[s[4]||(s[4]=t("div",{class:"flex items-center gap-3"},[t("h1",{class:"text-5xl py-2 font-semibold bg-gradient-to-r from-primary-light via-primary-dark to-primary-light bg-clip-text text-transparent tracking-tight"}," Bharatrath Blogs ")],-1)),s[5]||(s[5]=t("p",{class:"text-xl text-gray-700 font-medium max-w-xl"},[H(" Tips, Insights & Stories for "),t("span",{class:"text-primary-light font-semibold"},"Small Businesses in India")],-1)),t("div",W,[t("button",{class:b(["px-5 py-2 rounded font-semibold border transition",i.value==="hi"?"bg-green-600 text-white border-green-600":"bg-white text-green-600 border-green-600"]),onClick:s[0]||(s[0]=e=>i.value="hi")}," हिनà¥à¤¦à¥ ",2),t("button",{class:b(["px-5 py-2 rounded font-semibold border transition",i.value==="en"?"bg-green-600 text-white border-green-600":"bg-white text-green-600 border-green-600"]),onClick:s[1]||(s[1]=e=>i.value="en")}," English ",2)])]),v.value?(a(),o("div",D,[(a(),o(n,null,d(6,e=>t("div",{key:e,class:"bg-white rounded-xl shadow-lg overflow-hidden animate-pulse"},s[6]||(s[6]=[O('<div class="w-full h-48 bg-gray-200"></div><div class="p-6 space-y-4"><div class="h-6 bg-gray-200 rounded w-3/4"></div><div class="space-y-2"><div class="h-4 bg-gray-200 rounded"></div><div class="h-4 bg-gray-200 rounded w-5/6"></div><div class="h-4 bg-gray-200 rounded w-2/3"></div></div><div class="flex justify-end"><div class="h-4 bg-gray-200 rounded w-24"></div></div></div>',2)]))),64))])):(a(),o("div",F,[(a(!0),o(n,null,d(k.value,(e,y)=>(a(),$(B,{key:y,to:{path:`/bharatrathblogs/${e.slug}`,query:{lang:i.value}},class:"bg-white rounded-xl shadow-lg hover:shadow-2xl transition-shadow duration-300 overflow-hidden flex flex-col group"},{default:M(()=>{var f,w,_;return[t("img",{src:e.image||"https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=800&q=80",alt:"blog image",class:"w-full h-48 object-cover group-hover:scale-105 transition-transform duration-300",loading:"lazy"}
1,null,8,R),t("div",A,[t("div",null,[t("h2",J,p(e.title),1),e.tag&&e.tag.length?(a(),o("div",Q,[(a(!0),o(n,null,d(e.tag,(S,P)=>(a(),o("span",{key:P,class:"inline-block bg-primary-light text-white text-xs px-2.5 py-0.5 rounded-full"},p(S),1))),128))])):z("",!0),t("p",{class:"text-gray-600 text-sm mb-4 line-clamp-3",innerHTML:e.intro||((_=(w=(f=e.sections)==null?void 0:f[0])==null?void 0:w.content)==null?void 0:_[0])},null,8,Y)]),s[7]||(s[7]=t("div",{class:"flex items-center justify-end mt-auto"},[t("span",{class:"text-primary-light text-sm"},"Read More ... ")],-1))])]}),_:2},1032,["to"]))),128))]))]),t("div",Z,[t("button",{onClick:s[2]||(s[2]=e=>h(r.value-1)),disabled:r.value===1,class:"px-4 py-2 rounded-lg border border-gray-300 bg-white hover:bg-gray-100 disabled:opacity-40"}," Prev ",8,G),(a(!0),o(n,null,d(g.value,e=>(a(),o("button",{key:e,onClick:y=>h(e),class:b(["px-4 py-2 rounded-lg border",e===r.value?"bg-primary-light text-white border-primary-light":"bg-white border-gray-300 hover:bg-gray-100"])},p(e),11,K))),128)),t("button",{onClick:s[3]||(s[3]=e=>h(r.value+1)),disabled:r.value===g.value,class:"px-4 py-2 rounded-lg border border-gray-300 bg-white hover:bg-gray-100 disabled:opacity-40"}," Next ",8,U)])])}}};export{ot 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.