PageSourceSearch

https://fixed-deposit.com/_next/static/chunks/pages/blogs-23dbaa473761dd88.js

js fixed-deposit.com collected 2026-10-07 09:31:58 UTC 9,584 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9639],{2166:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},24650:(e,s,t)=>{e.exports=t(87728)},29467:(e,s,t)=>{e.exports=t(49337)()},41773:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});var l=t(82365);let a={getAllFrontBlogs:async({searchText:e="",category:s=[],page:t=1,limit:a=6}={})=>{let r=Array.isArray(s)&&s.length>0?s.join(","):"",n=`?searchText=${encodeURIComponent(e)}&category=${encodeURIComponent(r)}&page=${t}&limit=${a}`;return l.A.get(`/blog/front${n}`)},getBlogBySlug:async e=>l.A.get(`/blog/slug/${e}`)}},49337:(e,s,t)=>{"use strict";var l=t(2166);function a(){}function r(){}r.resetWarningCache=a,e.exports=function(){function e(e,s,t,a,r,n){if(n!==l){var o=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function s(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:s,element:e,elementType:e,instanceOf:s,node:e,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:a};return t.PropTypes=t,t}},58960:(e,s,t)=>{"use strict";t.d(s,{A:()=>x});var l=t(28019);t(47451);var a=t(19157),r=t.n(a),n=t(88292),o=t(95166),i=t(13808),c=t(24650),d=t.n(c),m=t(29467),h=t.n(m),u=t(30161),g=t(45047);let p=({items:e})=>{let{t:s}=(0,o.A)(),{showingTranslateValue:t}=(0,u.A)();(0,n.useRouter)();let a={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((e,s)=>({"@type":"ListItem",position:s+1,name:e.name,item:e.url?`${g.env.NEXT_PUBLIC_SITE_URL}${e.url}`:void 0}))};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d(),{id:"breadcrumb-schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(a)}}),(0,l.jsx)("nav",{"aria-label":s("common:breadcrumb"),className:"flex items-center pb-4 top_011414414",children:(0,l.jsx)("ol",{className:"items-center w-full overflow-hidden font-serif text-sm breadcrumb_0099",children:e.map((s,a)=>(0,l.jsxs)("li",{className:"flex items-center","aria-current":a===e.length-1?"page":void 0,children:[a>0&&(0,l.jsx)("span",{className:"mx-1 text-gray-500 s_90114878748",children:(0,l.jsx)(i.fOo,{"aria-hidden":"true"})}),s.url?(0,l.jsx)(r(),{href:s.url,className:"text-gray-600 hover:text-emerald-500 font-semibold transition duration-200",children:t(s.name)||s.name}):(0,l.jsx)("span",{className:"text-gray-600",children:t(s.name)||s.name})]},s.url||s.name))})})]})};p.propTypes={items:h().arrayOf(h().shape({name:h().oneOfType([h().string,h().object]).isRequired,url:h().string})).isRequired};let x=p},61659:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSG:()=>y,default:()=>j});var l=t(28019),a=t(43500),r=t(92292),n=t(30161),o=t(47451),i=t(19157),c=t.n(i),d=t(8750),m=t.n(d),h=t(41773),u=t(82365);let g=async()=>u.A.get("/blogcategory/show");var p=t(58960),x=t(95166);let b=({childrenCategories:e,selectedCategories:s,setSelectedCategories:t})=>{let{t:a}=(0,x.A)();return(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-semibold mb-2",children:a("common:categories")}),(0,l.jsx)("ul",{children:e.map(e=>(0,l.jsx)("li",{className:"mb-2",children:(0,l.jsxs)("label",{className:"flex items-center",children:[(0,l.jsx)("input",{type:"checkbox",checked:s.includes(e._id),onChange:()=>{var s;return s=e._id,void t(e=>e.includes(s)?e.filter(e=>e!==s):[...e,s])},className:"mr-2 h-4 w-4 text-blue-500 focus:ring-blue-500 border-gray-300 rounded"}),(0,l.jsx)("span",{className:"text-gray-700",children:e.name?.en||e.name})]})},e._id))})]})};function f(){return(0,l.jsxs)("div",{className:"block bg-white p-4 rounded-lg shadow-md animate-pulse",children:[(0,l.jsx)("div",{className:"w-full h-52 bg-gray-200 rounded-lg mb-4"}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsx)("div",{className:"h-5 bg-gray-200 rounded w-3/4"}),(0,l.jsx)("div",{className:"h-4 bg-gray-200 rounded w-full"}),(0,l.jsx)("div",{className:"h-4 bg-gray-200 rounded w-5/6"}),(0,l.jsx)("div",{className:"h-4 bg-blue-200 rounded w-1/4"})]})]})}var y=!0;function j(){let{t:e}=(0,x.A)(),{storeCustomizationSetting:s}=(0,r.A)(),{showingTranslateValue:t}=(0,n.A)(),[i,d]=(0,o.useState)([]),[u,y]=(0,o.useState)([]),[j,v]=(0,o.useState)(!1),[N,_]=(0,o.useState)([]),[w,k]=(0,o.useState)(""),[A,S]=(0,o.useState)(1),[T]=(0,o.useState)(6),[C,E]=(0,o.useState)(0),[O,$]=(0,o.useState)(!1);(0,o.useEffect)(()=>{(async()=>{try{let e=await g();y(e||[])}catch(e){console.error("Failed to fetch categories:",e),y([])}})()},[]);let B=async()=>{v(!0);try{let e=await h.A.getAllFrontBlogs({searchText:w,category:N,page:A,limit:T});d(Array.isArray(e.blogs)?e.blogs:[]),E(Number(e.total)||0)}catch(e){console.error("Failed to fetch blogs:",e),d([]),E(0)}finally{v(!1)}};(0,o.useEffect)(()=>{console.log("Fetching blogs with page:",A,"searchText:",w,"categories:",N),B()},[A,w,N]);
1let L=Math.ceil(C/T),R=[{name:e("common:home"),url:"/"},{name:e("common:blogs"),url:null}],F=(e,s=80)=>e?e.length>s?e.substring(0,s)+"...":e:"";return(0,l.jsx)(a.A,{title:e("common:blogs"),description:e("common:readLatestArticles"),children:(0,l.jsxs)("div",{className:"container mx-auto px-4 py-10 br_014441_009",children:[(0,l.jsx)("div",{className:"blog__page_009",children:(0,l.jsx)(p.A,{items:R})}),(0,l.jsx)("h3",{className:"font-semibold text-2xl mb-6",children:e("common:allBlog")}),(0,l.jsx)("div",{className:"md:hidden flex justify-end mb-4 filtered_ooii",children:(0,l.jsxs)("button",{onClick:()=>$(!O),className:"bg-blue-500 text-white px-4 py-2 rounded-lg flex items-center","aria-expanded":O,"aria-controls":"mobile-filter-sidebar",children:[(0,l.jsx)("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2a1 1 0 01-1 1H4a1 1 0 01-1-1V4zM4 11h16a1 1 0 011 1v2a1 1 0 01-1 1H4a1 1 0 01-1-1v-2zM4 18h16a1 1 0 011 1v2a1 1 0 01-1 1H4a1 1 0 01-1-1v-2z"})}),e("Filters")]})}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row gap-8",children:[(0,l.jsx)("div",{id:"mobile-filter-sidebar",className:`w-full md:w-1/4 sidebarfilterr ${O?"block":"hidden"} md:block`,children:(0,l.jsxs)("div",{className:"bg-white p-6 rounded-lg shadow-md",children:[(0,l.jsx)("h4",{className:"font-semibold text-lg mb-4",children:e("common:filters")}),(0,l.jsx)("div",{className:"mb-4",children:(0,l.jsx)("input",{type:"text",placeholder:e("common:searchByTitle"),className:"border rounded-lg px-4 py-2 w-full focus:outline-none focus:ring-2 focus:ring-blue-500",value:w,onChange:e=>k(e.target.value),"aria-label":e("common:searchByTitle")})}),(0,l.jsx)(b,{childrenCategories:u,selectedCategories:N,setSelectedCategories:_})]})}),(0,l.jsx)("div",{className:"w-full md:w-3/4 blog__listing_009",children:(0,l.jsxs)("section",{className:"bg-white",children:[(0,l.jsx)("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-4",children:j?Array.from({length:6}).map((e,s)=>(0,l.jsx)(f,{},`skeleton-${s}`)):0===i.length?(0,l.jsx)("p",{className:"text-gray-500 col-span-full text-center",children:e("common:noBlogsFound")}):i.map(s=>{var a;return(0,l.jsxs)(c(),{href:`/blog/${s.slug}`,className:"block bg-white p-4 rounded-lg shadow-md hover:shadow-lg transition",children:[(0,l.jsx)("div",{className:"flex flex-col blogs-image",children:s.image?(0,l.jsx)(m(),{unoptimized:!0,src:`https://patanapi.haree.co.in${s.image}`,alt:t(s.title)||s.title,width:300,height:200,className:"rounded-lg mb-4 object-cover w-full h-52",onError:e=>{e.target.src="https://res.cloudinary.com/dznu9sil2/image/upload/v1744399404/placeholder_kvepfp_sphlca.png"}}):(0,l.jsx)(m(),{unoptimized:!0,src:"https://res.cloudinary.com/dznu9sil2/image/upload/v1744399404/placeholder_kvepfp_sphlca.png",alt:t(s.title)||s.title,width:300,height:200,className:"rounded-lg mb-4 object-cover w-full h-52"})}),(0,l.jsxs)("div",{className:"p-1 font__d0011 d011blog",children:[(0,l.jsx)("h3",{className:"font-semibold text-lg",children:F(t(s.title)||s.title,40)}),(0,l.jsx)("p",{className:"text-gray-600 text-sm mt-2 line-clamp-2",children:F((a=s.shortDescription)&&new DOMParser().parseFromString(a,"text/html").body.textContent||"",80)}),(0,l.jsx)("span",{className:"mt-3 inline-block read__more_00",children:e("common:readMore")})]})]},s._id)})}),!j&&i.length>0&&(0,l.jsxs)("div",{className:"mt-8 flex flex-col items-center",children:[(0,l.jsxs)("div",{className:"flex gap-4 mb-4",children:[(0,l.jsx)("button",{type:"button",onClick:()=>{A>1&&S(A-1)},disabled:1===A,className:`px-4 py-2 rounded-lg ${1===A?"bg-gray-300 cursor-not-allowed":"bg-blue-500 text-white hover:bg-blue-600"}`,"aria-label":e("common:previous"),children:e("common:previous")}),(0,l.jsxs)("span",{className:"px-4 py-2 text-gray-700",children:[e("common:page")," ",A," ",e("common:of")," ",L]}),(0,l.jsx)("button",{type:"button",onClick:()=>{A<L&&S(A+1)},disabled:A===L||0===L,className:`px-4 py-2 rounded-lg ${A===L||0===L?"bg-gray-300 cursor-not-allowed":"bg-blue-500 text-white hover:bg-blue-600"}`,"aria-label":e("common:next"),children:e("common:next")})]}),(0,l.jsxs)("p",{className:"text-gray-600",children:[e("common:showing")," ",(A
1-1)*T+1," -"," ",Math.min(A*T,C)," ",e("common:of")," ",C," ",e("common:blogs")]})]})]})})]})]})})}},63985:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blogs",function(){return t(61659)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=63985)),_N_E=e.O()}]);

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.