PageSourceSearch

https://www.heybuildex.com/_next/static/chunks/104a0bb88-9j5.js

js heybuildex.com collected 2026-10-08 19:40:11 UTC 17,873 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,195057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return c},urlObjectKeys:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let l=e.r(190809)._(e.r(998183)),i=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",s=e.hash||"",o=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),o&&"object"==typeof o&&(o=String(l.urlQueryToSearchParams(o)));let u=e.search||o&&`?${o}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),a=a.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${a}${u}${s}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return s(e)}},573668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let n=e.r(718967),a=e.r(652817);function l(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},284508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},522016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return v}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let l=e.r(190809),i=e.r(843476),s=l._(e.r(271645)),o=e.r(195057),c=e.r(8372),u=e.r(818581),d=e.r(718967),f=e.r(405550);e.r(233525);let p=e.r(388540),h=e.r(91949),m=e.r(573668),x=e.r(509396);function g(t){var r,n;let a,l,g,[v,b]=(0,s.useOptimistic)(h.IDLE_LINK_STATUS),j=(0,s.useRef)(null),{href:w,as:k,children:N,prefetch:M=null,passHref:P,replace:_,shallow:S,scroll:C,onClick:O,onMouseEnter:T,onTouchStart:R,legacyBehavior:E=!1,onNavigate:I,transitionTypes:L,ref:A,unstable_dynamicOnHover:U,...$}=t;a=N,E&&("string"==typeof a||"number"==typeof a)&&(a=(0,i.jsx)("a",{children:a}));let B=s.default.useContext(c.AppRouterContext),D=!1!==M,z=!1!==M?null===(n=M)||"auto"===n?x.FetchStrategy.PPR:x.FetchStrategy.Full:x.FetchStrategy.PPR,F="string"==typeof(r=k||w)?r:(0,o.formatUrl)(r);if(E){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});l=s.default.Children.only(a)}let q=E?l&&"object"==typeof l&&l.ref:A,K=s.default.useCallback(e=>(null!==B&&(j.current=(0,h.mountLinkInstance)(e,F,B,z,D,b)),()=>{j.current&&((0,h.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,h.unmountPrefetchableInstance)(e)}),[D,F,B,z,b]),W={ref:(0,u.useMergedRef)(K,q),onClick(t){E||"function"!=typeof O||O(t),E&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t),!B||t.defaultPrevented||function(t,r,n,a,l,i,o){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(699781);s.default.startTransition(()=>{d(r,a?"replace":"push",!1===l?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,o)})}}(t,F,j,_,C,I,L)},onMouseEnter(e){E||"function"!=typeof T||T(e),E&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),B&&D&&(0,h.onNavigationIntent)(e.currentTarget,!0===U)},onTouchStart:function(e){E||"function"!=typeof R||R(e),E&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),B&&D&&(0,h.onNavigationIntent)(e.currentTarget,!0===U)}};return(0,d.isAbsoluteUrl)(F)?W.href=F:E&&!P&&("a"!==l.type||"href"in l.props)||(W.href=(0,f.addBasePath)(F)),g=E?s.default.cloneElement(l,W):(0,i.jsx)("a",{...$,...W,children:a}),(0,i.jsx)(y.Provider,{value:v,children:g})}e.r(284508);let y=(0,s.createContext)(h.IDLE_LINK_STATUS),v=()=>(0,s.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},299023,e=>{"use strict";let t=(0,e.i(475254).default)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);e.s(["Minus",0,t],299023)},25652,e=>{"use strict";let t=(0,e.i(475254).default)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);e.s(["TrendingUp",0,t],25652)},635408,e=>{"use strict";let t=(0,e.i(475254).default)("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);e.s(["TrendingDown",0,t],635408)},607486,e=>{"use strict";let t=(0,e.i(475254).default)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);e.s(["Building2",0,t],607486)},761911,e=>{"use strict";let t=(0,e.i(475254).default)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);e.s(["Users",0,t],761911)},847066,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(522016),a=e.i(972520),l=e.i(299023);let i=(0,e.i(475254).default)("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);var s=e.i(635408),o=e.i(25652);let c=e=>{let t=Number(e);return Number.isFinite(t)&&t>0?t:null};e.s(["default",0,({initialPrices:e=[]})=>{let[u,d]=(0,r.useState)(e),f=(0,r.useRef)(null),[p,h]=(0,r.useState)(4),m=u.reduce((e,t,r)=>{var n,a;let l,i,s=c(t.metadata?.price);if(null===s)return e;let o=(n=t.metadata?.price,a=t.metadata?.yesterdayprice,l=c(n),i=c(a),null===l||null===i?null:(l-i)/i*100),u=t.metadata?.change,d="Increase"===u||"Decrease"!==u&&(o??0)>0?"up":"Decrease"===u||(o??0)<0?"down":"flat";return e.push({key:`${t.id??t.slug??r}-${r}`,name:t.metadata?.name||t.title||"Metal",price:s,percent:o,direction:d}),e},[]);if((0,r.useEffect)(()=>{let e=()=>{let e=f.current;if(!e||0===m.length)return;let t=e.scrollWidth/p;if(!t)return;let r=Math.min(Math.max(Math.ceil(2*window.innerWidth/t),4),16);r!==p&&h(r)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[m.length,p]),(0,r.useEffect)(()=>{let e=!0,t=async()=>{try{let t=await fetch("/api/metal-prices",{cache:"force-cache"});if(!t.ok)return;let r=await t.json();e&&Array.isArray(r?.objects)&&d(r.objects)}catch{return}};t();let r=setInterval(t,18e5);return()=>{e=!1,clearInterval(r)}},[]),0===m.length)return null;let x=Array.from({length:p},()=>m).flat(),g=Math.max(30,3.5*m.length);return(0,t.jsx)("section",{"aria-label":"Live metal prices",className:"price-ticker relative z-30 bg-primary text-primary-foreground border-b border-white/10 select-none",children:(0,t.jsxs)("div",{className:"flex items-stretch",children:[(0,t.jsxs)("div",{className:"hidden sm:flex shrink-0 items-center gap-2 px-4 lg:px-5 bg-accent text-accent-foreground",children:[(0,t.jsx)(i,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{className:"text-[11px] font-extrabold uppercase tracking-widest whitespace-nowrap",children:"Live Prices"})]}),(0,t.jsxs)("div",{className:"relative flex-1 overflow-hidden py-2.5",children:[(0,t.jsx)("div",{className:"price-ticker-track flex w-max items-center",style:{animationDuration:`${g}s`},children:x.map((e,r)=>{let n;return(0,t.jsxs)("span",{"aria-hidden":r>=m.length||void 0,className:"flex items-center gap-2 px-5 border-r border-white/10 whitespace-nowrap",children:[(0,t.jsx)("span",{className:"text-[11px] font-bold uppercase tracking-wide text-primary-foreground
1/60 max-w-[130px] truncate",children:e.name}),(0,t.jsxs)("span",{className:"text-[13px] font-extrabold font-mono",children:["₹",Number.isFinite(n=Number(e.price))?n.toLocaleString("en-IN"):"-"]}),(0,t.jsxs)("span",{className:`inline-flex items-center gap-1 text-[11px] font-extrabold ${"up"===e.direction?"text-accent":"down"===e.direction?"text-destructive":"text-primary-foreground/60"}`,children:["up"===e.direction?(0,t.jsx)(o.TrendingUp,{className:"h-3.5 w-3.5"}):"down"===e.direction?(0,t.jsx)(s.TrendingDown,{className:"h-3.5 w-3.5"}):(0,t.jsx)(l.Minus,{className:"h-3.5 w-3.5"}),null!==e.percent&&`${Math.abs(e.percent).toFixed(2)}%`]})]},`${e.key}-${r}`)})}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-8 bg-gradient-to-r from-primary to-transparent"}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-8 bg-gradient-to-l from-primary to-transparent"})]}),(0,t.jsxs)(n.default,{href:"/daily-metal-prices",className:"hidden md:flex shrink-0 items-center gap-1.5 px-4 lg:px-5 border-l border-white/10 text-[11px] font-extrabold uppercase tracking-widest text-accent hover:bg-white/5 transition-colors",children:["View All ",(0,t.jsx)(a.ArrowRight,{className:"h-3.5 w-3.5"})]})]})})}],847066)},667585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return a}});let n=e.r(132061);function a({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},309885,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},652157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return o}});let n=e.r(843476),a=e.r(174080),l=e.r(563599),i=e.r(309885),s=e.r(543369);function o({moduleIds:e}){if("u">typeof window)return null;let t=l.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let c=(0,s.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,i.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,a.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},869093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let n=e.r(843476),a=e.r(271645),l=e.r(667585),i=e.r(652157);function s(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},c=function(e){let t={...o,...e},r=(0,a.lazy)(()=>t.loader().then(s)),c=t.loading;function u(e){let s=c?(0,n.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,u=o?a.Suspense:a.Fragment,d=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(i.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(u,{...o?{fallback:s}:{},children:d})}return u.displayName="LoadableComponent",u}},770703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let n=e.r(555682)._(e.r(869093));function a(e,t){let r={};"function"==typeof e&&(r.loader=e);let a={...r,...t};return(0,n.default)({...a,modules:a.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},407887,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(522016),a=e.i(770703),l=e.i(343432),i=e.i(519455);let s=(0,a.default)(()=>e.A(516525),{loadableGenerated:{modules:[707569]},ssr:!1});e.s(["default",0,function(){let[a,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let t=()=>{e.A(33468)},r=window;if("function"==typeof r.requestIdleCallback){let e=r.requestIdleCallback(t);return()=>window.cancelIdleCallback(e)}let n=window.setTimeout(t,2e3);return()=>window.clearTimeout(n)},[]),(0,t.jsxs)("section",{className:"relative min-h-[550px] flex items-center overflow-hidden",children:[(0,t.jsxs)("picture",{className:"contents",children:[(0,t.jsx)("source",{type:"image/webp",sizes:"100vw",srcSet:"/hero-industrial-960.webp 960w, /hero-industrial-1600.webp 1600w"}),(0,t.jsx)("img",{src:"/hero-industrial.jpg",srcSet:"/hero-industrial.jpg 1920w",sizes:"100vw",width:1920,height:1080,alt:"Industrial steel warehouse with metal coils",fetchPriority:"high",loading:"eager",decoding:"async",className:"absolute inset-0 h-full w-full object-cover"})]}),(0,t.jsx)("div",{className:"absolute inset-0",style:{background:"var(--hero-overlay)"}}),(0,t.jsx)("div",{className:"relative z-10 container-max px-4 sm:px-6 lg:px-8 py-20",children:(0,t.jsxs)("div",{className:"max-w-2xl",children:[(0,t.jsxs)("h1",{className:"font-heading text-4xl sm:text-5xl lg:text-6xl font-extrabold text-primary-foreground leading-tight mb-6",children:["Global Metals Supply Made Simple"," ",(0,t.jsx)("span",{className:"text-accent",children:"With Confidence"})]}),(0,t.jsx)("p",{className:"text-lg sm:text-xl text-primary-foreground
1/80 mb-8 max-w-xl",children:"Bulk supply of steel, aluminium, and copper for construction, manufacturing, and infrastructure projects."}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,t.jsxs)(i.Button,{variant:"hero",size:"lg",onClick:()=>o(!0),children:[(0,t.jsx)(l.Phone,{className:"mr-2 h-5 w-5"}),"Get Best Price"]}),(0,t.jsx)(i.Button,{variant:"outline",size:"lg",asChild:!0,children:(0,t.jsx)(n.default,{href:"/materials",children:"Explore Materials"})})]}),a&&(0,t.jsx)(s,{open:a,onOpenChange:o})]})})]})}])},572949,e=>{"use strict";var t=e.i(843476),r=e.i(607486),n=e.i(761911),a=e.i(346897);let l=(0,e.i(475254).default)("Weight",[["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}],["path",{d:"M6.5 8a2 2 0 0 0-1.905 1.46L2.1 18.5A2 2 0 0 0 4 21h16a2 2 0 0 0 1.925-2.54L19.4 9.5A2 2 0 0 0 17.48 8Z",key:"56o5sh"}]]);var i=e.i(271645);let s=[{value:105,label:"No. of Clients Served",icon:r.Building2,suffix:"+"},{value:195,label:"No. of Pincodes Delivered",icon:a.MapPin,suffix:"+"},{value:9,label:"No. of States",icon:n.Users,suffix:""},{value:1e5,label:"KM Transported",icon:l,suffix:"+"}],o=({end:e,duration:r=2e3})=>{let[n,a]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let t=0,n=e/(r/16),l=setInterval(()=>{(t+=n)>=e?(a(e),clearInterval(l)):a(Math.floor(t))},16);return()=>clearInterval(l)},[e,r]),(0,t.jsx)(t.Fragment,{children:n.toLocaleString()})};e.s(["default",0,()=>(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("section",{className:"relative py-20 overflow-hidden",style:{background:"var(--gradient-dark)"},children:[(0,t.jsx)("div",{className:"absolute inset-0 opacity-[0.04]",style:{backgroundImage:"linear-gradient(hsl(var(--accent)) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--accent)) 1px, transparent 1px)",backgroundSize:"60px 60px"}}),(0,t.jsxs)("div",{className:"container-max relative",children:[(0,t.jsx)("p",{className:"text-center text-sm font-semibold tracking-widest uppercase text-accent mb-10",children:"Trusted Across India"}),(0,t.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-6 lg:gap-0 lg:divide-x lg:divide-primary-foreground/10",children:s.map(({value:e,label:r,icon:n,suffix:a})=>(0,t.jsxs)("div",{className:"text-center px-4 py-4 group",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-xl bg-accent/10 mb-4 group-hover:bg-accent/20 transition-colors",children:(0,t.jsx)(n,{className:"h-5 w-5 text-accent"})}),(0,t.jsxs)("div",{className:"font-heading text-3xl lg:text-5xl font-extrabold text-primary-foreground mb-2 tracking-tight",children:[(0,t.jsx)(o,{end:e}),a]}),(0,t.jsx)("div",{className:"text-sm text-primary-foreground/50 font-medium",children:r})]},r))})]})]})})],572949)},516525,e=>{e.v(t=>Promise.all(["static/chunks/0tuhswq5ewo_5.js","static/chunks/0s1vyhrg1_.8i.js"].map(t=>e.l(t))).then(()=>t(707569)))},33468,e=>{e.v(t=>Promise.all(["static/chunks/06~2202vntx40.js","static/chunks/0s1vyhrg1_.8i.js"].map(t=>e.l(t))).then(()=>t(713064)))}]);

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.