PageSourceSearch

https://www.newsworldweb.in/_next/static/chunks/724.ef282460c041366a.js

js newsworldweb.in collected 2026-10-04 02:39:48 UTC 7,004 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[724],{9724:function(e,t,s){s.r(t),s.d(t,{default:function(){return f}});var l=s(7437),r=s(2265),a=s(1396),i=s.n(a),c=s(5020),n=s(6631),d=s(6691),o=s.n(d),x=s(2815),m=s(9845),h=s(998),p=s(8783),u=s(5688),g=()=>{let[e,t]=(0,r.useState)(null),[s,a]=(0,r.useState)(!0),i="metals_price_data";if((0,r.useEffect)(()=>{let e=async()=>{let e=localStorage.getItem(i),s=new Date().getTime();if(e){let l=JSON.parse(e);if(s-l.timestamp<216e5){t(l.data),a(!1);return}}try{let e=await fetch("https://api.metals.dev/v1/latest?api_key=".concat("XRY1NJRHH6QQFUBJOCYT331BJOCYT","&currency=INR&unit=g")),l=await e.json();(null==l?void 0:l.metals)&&(localStorage.setItem(i,JSON.stringify({timestamp:s,data:l})),t(l))}catch(e){console.error("API Error:",e)}finally{a(!1)}};e()},[]),s)return(0,l.jsx)("div",{className:"h-24 w-full bg-zinc-900/5 animate-pulse rounded-2xl"});if(!(null==e?void 0:e.metals))return null;let c=Math.round(10*e.metals.gold).toLocaleString("en-IN"),n=Math.round(1e3*e.metals.silver).toLocaleString("en-IN");return(0,l.jsxs)("div",{className:"w-full bg-[#0a0a0a] rounded-3xl p-4 shadow-2xl border border-white/10 relative overflow-hidden group",children:[(0,l.jsx)("div",{className:"absolute -top-10 -right-10 w-32 h-32 bg-red-600/10 blur-[50px] rounded-full"}),(0,l.jsxs)("div",{className:"flex items-center justify-between mb-4 px-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{className:"w-2 h-2 rounded-full bg-red-600 animate-pulse shadow-[0_0_10px_rgba(220,38,38,0.8)]"}),(0,l.jsx)("span",{className:"text-[10px] font-black text-white/50 uppercase tracking-[0.3em]",children:"Market Live"})]}),(0,l.jsx)(h.Z,{size:14,className:"text-white/20"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,l.jsxs)("div",{className:"bg-white/5 border border-white/10 rounded-2xl p-4 hover:border-amber-500/50 transition-all duration-300",children:[(0,l.jsxs)("div",{className:"flex justify-between items-start",children:[(0,l.jsx)("p",{className:"text-[9px] font-black text-amber-500 uppercase tracking-widest mb-1",children:"Gold 24K"}),(0,l.jsx)(p.Z,{size:14,className:"text-emerald-500"})]}),(0,l.jsxs)("div",{className:"mt-1",children:[(0,l.jsxs)("h3",{className:"text-2xl font-black text-white tracking-tighter italic",children:[(0,l.jsx)("span",{className:"text-sm font-medium text-amber-500/80 not-italic mr-1",children:"₹"}),c]}),(0,l.jsx)("p",{className:"text-[9px] font-bold text-white/20 mt-0.5 uppercase",children:"10 Grams"})]})]}),(0,l.jsxs)("div",{className:"bg-white/5 border border-white/10 rounded-2xl p-4 hover:border-zinc-500/50 transition-all duration-300",children:[(0,l.jsxs)("div",{className:"flex justify-between items-start",children:[(0,l.jsx)("p",{className:"text-[9px] font-black text-zinc-300 uppercase tracking-widest mb-1",children:"Silver"}),(0,l.jsx)(u.Z,{size:14,className:"text-red-500"})]}),(0,l.jsxs)("div",{className:"mt-1",children:[(0,l.jsxs)("h3",{className:"text-2xl font-black text-white tracking-tighter italic",children:[(0,l.jsx)("span",{className:"text-sm font-medium text-zinc-500 not-italic mr-1",children:"₹"}),n]}),(0,l.jsx)("p",{className:"text-[9px] font-bold text-white/20 mt-0.5 uppercase",children:"1 Kilogram"})]})]})]}),(0,l.jsxs)("div",{className:"mt-4 flex items-center justify-center gap-2",children:[(0,l.jsx)("div",{className:"h-[1px] flex-1 bg-white/5"}),(0,l.jsx)("span",{className:"text-[8px] font-black text-white/10 uppercase tracking-[0.5em]",children:"NewsWorld Business"}),(0,l.jsx)("div",{className:"h-[1px] flex-1 bg-white/5"})]})]})};x.p8.registerPlugin(m.ScrollTrigger);var f=e=>{let{categoryName:t,articles:s,categorySlug:a}=e,d=(0,r.useRef)(null),m=(0,r.useRef)([]);m.current=[];let h=e=>{e&&!m.current.includes(e)&&m.current.push(e)};if((0,r.useEffect)(()=>{let e=x.p8.context(()=>{m.current.forEach((e,t)=>{x.p8.fromTo(e,{opacity:0,y:15},{opacity:1,y:0,duration:.6,ease:"power2.out",scrollTrigger:{trigger:e,start:"top 98%"},delay:.03*t})})},d);return()=>e.revert()},[s]),!s||0===s.length)return null;let p=s[0],u=s.slice(1,4);return(0,l.jsx)("section",{ref:d,className:"py-6 md:py-16 overflow-hidden bg-white",children:(0,l.jsxs)("div",{className:"container mx-auto px-4 md:px-12",children:[(0,l.jsx)("div",{className:"mb-8 md:mb-12",children:(0,l.jsx)(n.Z,{title:t,slug:a,readMoreHref:"/category/".concat(a)})}),(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-12 xl:gap-20",children:[(0,l.jsx)("div",{className:"lg:col-span-7",ref:h,children:(0,l.jsxs)("div",{className:"group block",children:[(0,l.jsx)(i(),{href:"/category/".concat(a,"/").concat(null==p?void 0:p.slug),children:(0,l.jsx)("div",{className:"relative aspect-[16/10] overflow-hidden rounded-xl md:rounded-2xl bg-zinc-50 border border-zinc-100 shadow-sm transition-all duration-500",children:(0,l.jsx)(o(),{src:(0,c.BB)(null==p?void 0:p.image)||"/placeholder.jpg",className:"w-full h-full object-cover transition-transform duration-1000 group-hover:scale-105",alt:null==p?void 0:p.title,width:100,height:100})})}),(0,l.jsx)("div",{className:"mt-4 md:mt-8 space-y-3",children:(0,l.jsx)(i(),{href:"/category/".concat(a,"/").concat(null==p?void 0:p.slug),children:(0,l.jsx)("h3",{className:"text-sm md:text-3xl font-Poppins font-bold text-zinc-900 leading-tight group-hover:text-red-600 transition-colors",children:null==p?void 0:p.title})})})]})}),(0,l.jsxs)("div",{className:"lg:col-span-5 flex flex-col lg:border-l border-zinc-100 lg:pl-10",children:[(0,l.jsx)("div",{ref:h,className:"pb-6 border-t border-zinc-100 lg:border-t-0 lg:pt-0",children:(0,l.jsx)(g,{})}),(0,l.jsx)("div",{className:"flex flex-col gap-3 md:gap-4 mb-8",children:u.map((e,t)=>(0,l.jsx)("article",{ref:h,className:"group",children:(0,l.jsxs)("div",{className:"flex gap-3 md:gap-4 p-2 md:p-4 roun
1ded-xl transition-all duration-300 items-center hover:bg-red-50/50 border border-transparent hover:border-red-100",children:[(0,l.jsx)(i(),{href:"/category/".concat(a,"/").concat(e.slug),className:"shrink-0",children:(0,l.jsx)("div",{className:"w-16 h-16 md:w-24 md:h-24 rounded-lg overflow-hidden bg-zinc-100 border border-zinc-50",children:(0,l.jsx)(o(),{src:(0,c.BB)(null==e?void 0:e.image)||"/placeholder.jpg",className:"w-full h-full object-cover opacity-90 group-hover:opacity-100",alt:"",width:100,height:100})})}),(0,l.jsxs)("div",{className:"flex flex-col gap-1 flex-1 min-w-0",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 mb-0.5",children:[(0,l.jsxs)("span",{className:"text-[9px] font-black text-red-600/60 uppercase tracking-tighter",children:["Issue 0",t+1]}),(0,l.jsx)("div",{className:"h-[1px] w-3 bg-zinc-200"})]}),(0,l.jsx)(i(),{href:"/category/".concat(a,"/").concat(e.slug),children:(0,l.jsx)("h4",{className:"text-sm md:text-lg font-Poppins font-bold leading-snug text-zinc-800 group-hover:text-red-600 transition-colors line-clamp-2",children:e.title})})]})]})},e._id))})]})]})]})})}}}]);

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.