PageSourceSearch

https://www.tradeindia.com/_next/static/chunks/4311-fa07e7e0b7838f08.js

js tradeindia.com collected 2026-10-01 10:13:23 UTC 11,740 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4311,5441,9776],{2671:(e,t,o)=>{o.d(t,{A:()=>h});var i=o(37876),n=o(75961),s=o.n(n);o(14232);let h=e=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:s().dynamic([["5dd3e254439d4046",[e.src,e.M_width?e.M_width+"px":"auto",e.M_width?e.M_width+"px":"auto",e.L_width?e.L_width+"px":"auto",e.L_width?e.L_width+"px":"auto"]]])+" "+`${e.prClass&&e.prClass}`,children:"\xa0"}),(0,i.jsx)(s(),{id:"5dd3e254439d4046",dynamic:[e.src,e.M_width?e.M_width+"px":"auto",e.M_width?e.M_width+"px":"auto",e.L_width?e.L_width+"px":"auto",e.L_width?e.L_width+"px":"auto"],children:`span.__jsx-style-dynamic-selector{background:url(${e.src})no-repeat center center;background-size:100%;height:${e.M_width?e.M_width+"px":"auto"};width:${e.M_width?e.M_width+"px":"auto"}}@media(min-width:1200px){span.__jsx-style-dynamic-selector{height:${e.L_width?e.L_width+"px":"auto"};width:${e.L_width?e.L_width+"px":"auto"}}}`})]})},11617:(e,t,o)=>{o.d(t,{A:()=>r});var i=o(37876),n=o(14232),s=o(81720),h=o(21626);let r=e=>{let{children:t,actionButton:o,top:h,bottom:r,left:l,right:c}=e,[d,p]=(0,n.useState)(!1),g=(0,n.useRef)(),f=(0,s.A)(g);return(0,n.useEffect)(()=>{p(!1)},[f]),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(a,{ref:g,className:d?"activePopover":"",top:h,bottom:r,left:l,right:c,children:[(0,i.jsx)("span",{className:"popover_btn p-1",onClick:()=>p(!d),children:o}),d&&(0,i.jsx)("div",{className:"popover_content",children:t})]})})},a=h.Ay.div.withConfig({componentId:"sc-fe9cad65-0"})(["position:relative;.popover_content{position:absolute;right:",";left:",";top:",";bottom:",";z-index:999;}.popover_btn{cursor:pointer;width:30px;height:48px;display:flex;align-items:center;justify-content:end;}"],e=>e.right?e.right:"auto",e=>e.left?e.left:"auto",e=>e.top?e.top:"auto",e=>e.bottom?e.bottom:"auto")},47552:(e,t,o)=>{o.d(t,{A:()=>n});let i={desktop:"768px",deviceWidth:768},n={desktop:`(min-width: ${i.desktop})`,deviceWidth:i.deviceWidth}},62363:(e,t,o)=>{o.d(t,{A:()=>f});var i=o(37876),n=o(14232),s=o(36975),h=o(21626),r=o(23935),a=o(48011),l=o(83695),c=o(29837),d=o(89099);let p=e=>{let t=(0,d.useRouter)().asPath.split("/")[1];return(0,i.jsx)(i.Fragment,{children:e.searchResult&&e.searchResult.length>0&&(0,i.jsx)("div",{className:"globalSarch",children:e.loading?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.default,{sHeight:"24px",className:"mb-3"}),(0,i.jsx)(l.default,{sHeight:"24px",className:"mb-3"}),(0,i.jsx)(l.default,{sHeight:"24px",className:"mb-3"}),(0,i.jsx)(l.default,{sHeight:"24px",className:"mb-3"}),(0,i.jsx)(l.default,{sHeight:"24px",className:"mb-3"}),(0,i.jsx)(l.default,{sHeight:"24px",className:"mb-3"}),(0,i.jsx)(l.default,{sHeight:"24px",className:"mb-3"}),(0,i.jsx)(l.default,{sHeight:"24px"})]}):(0,i.jsx)("ul",{children:e.searchResult.map((o,n)=>(0,i.jsx)("li",{onClick:t=>{e.setKeyword(o.search_term),e.setSearch(!1),e.setSrchModal(!1)},style:{backgroundColor:n==e.autFocusonLis?s.A.colors.theme_secondary[50]:"transparent"},children:t&&t?.length===2?(0,i.jsxs)(c.default,{htmlAnchor:!0,href:`/${t}/search.html?keyword=${o.search_term?.split(" ").join("+")}${e.city?"+in+"+e.city.split(" ").join("+"):""}`,children:[e.Icon,(0,i.jsx)("span",{className:"resBold",dangerouslySetInnerHTML:{__html:o.show_text}},"srchVal"+n)]}):(0,i.jsxs)(c.default,{htmlAnchor:!0,href:`/search.html?keyword=${o.search_term?.split(" ").join("+")}${e.city?"+in+"+e.city.split(" ").join("+"):""}`,children:[e.Icon,(0,i.jsx)("span",{className:"resBold",dangerouslySetInnerHTML:{__html:o.show_text}},"srchVal"+n)]})},"sarch_"+n))})})})},g=['"packaging box"','"steel pipes"','"CNC machining services"','"spices exporters"','"machinery"','"solar panels"','"fabric suppliers"'],f=(0,a.Ng)(e=>({searchData:e.searchSuggestion.suggestion,loading:e.searchSuggestion.loading,error:e.searchSuggestion.error}),e=>({getMainCategories:t=>e({type:r.C.GET_SEARCH_SUGGESTION_REQUEST,query:t})}))(e=>{let t=(0,d.useRouter)(),{inptype:o,className:s,placeholder:h,Focus:r,overlay:a,Icon:l}
1=e,c=(0,n.useRef)(null),[f,m]=(0,n.useState)(!1),[u,w]=(0,n.useState)(!0),b=t=>{t?.length>2&&(m(!0),e.getMainCategories(t.split(" ").join("+")))},[y,_]=(0,n.useState)(-1);return(0,n.useEffect)(()=>{if(!t.isReady)return;let o=t.query.keyword;"string"==typeof o&&e.setInputValue(o)},[t?.isReady,t?.query?.keyword]),(0,n.useEffect)(()=>{let e,t=c.current;if(!t)return;if("Search Products or Services"!==h){t.placeholder=h||"";return}let o=0,i=0,n=!1,s=()=>{let h=g[o];if(i+=n?-1:1,t.placeholder=`Search ${h.slice(0,i)}`,!n&&i===h.length){e=setTimeout(()=>{n=!0,s()},1200);return}n&&0===i&&(n=!1,o=(o+1)%g.length),e=setTimeout(s,n?80:120)};return s(),()=>clearTimeout(e)},[h]),(0,i.jsxs)(x,{onFocus:e=>{b(e.target.value)},onBlur:()=>{setTimeout(function(){m(!1)},300)},children:[(0,i.jsx)("input",{ref:c,value:e.inputValue,onChange:t=>{b(t.target.value),e.setInputValue(t.target.value)},placeholder:h,type:o||"text",autoFocus:r,onKeyUp:t=>{if(e.setnavBarError(!1),38==t.keyCode&&y>0)_(y-1),e.setSearchVal(e.searchData?.searchResult[y-1]?.search_term),e.setInputValue(e.searchData?.searchResult[y-1]?.search_term);else if(40==t.keyCode&&y<e.searchData?.searchResult?.length-1)_(y+1),e.setSearchVal(e.searchData?.searchResult[y+1]?.search_term),e.setInputValue(e.searchData?.searchResult[y+1]?.search_term);else{if(13!=t.keyCode)return void w(!0);w(!1)}},className:s}),f&&u&&(0,i.jsx)(p,{city:e.city,searchResult:e.searchData?.searchResult,loading:e.loading,Icon:l,autFocusonLis:y,setKeyword:e.setInputValue,setSearch:m,setSrchModal:e.setSrchModal}),a&&f&&(0,i.jsx)("div",{className:"overlay",children:"\xa0"})]})}),x=h.Ay.div.withConfig({componentId:"sc-75232dea-0"})(["position:relative;.globalSarch{background-color:#fff;border:solid 1px ",";box-shadow:",";border-radius:8px 8px;box-sizing:border-box;position:absolute;left:0;width:100%;top:44px;z-index:12;padding:0.75rem;width:100%;}.globalSarch ul{padding:0;margin:0%;list-style-type:none;}.globalSarch li{cursor:pointer;padding-left:1rem;border-radius:4px;}.globalSarch li:hover,.globalSarch li:focus,.globalSarch li:active{background-color:"," !important;}.globalSarch li a{color:",";text-decoration:none;display:block;padding:0.25rem 0;}.overlay{opacity:0.4;position:fixed;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,#000000 36.8%);width:100%;bottom:0;left:0;height:100%;z-index:2;}@media (min-width:768px){.globalSarch{border:solid 1px ",";border-radius:0 0 8px 8px;}}"],s.A.colors.theme_secondary[100],s.A.shadows.submenu_shadow,s.A.colors.theme_secondary[50],s.A.colors.theme_secondary.dark,s.A.colors.theme_secondary[50])},72599:(e,t,o)=>{o.d(t,{AV:()=>C,Dd:()=>w,Gn:()=>m,H1:()=>h,H2:()=>r,H3:()=>a,H4:()=>l,JG:()=>b,Kg:()=>g,ME:()=>x,OC:()=>y,R0:()=>f,RS:()=>k,VG:()=>p,YG:()=>A,at:()=>d,cG:()=>z,nc:()=>_,qY:()=>u,tG:()=>c});var i=o(21626),n=o(47552),s=o(36975);let h=i.Ay.h1.withConfig({componentId:"sc-3b1eb120-0"})(["color:",";font-size:28px;font-weight:600;line-height:36px;@media ","{font-size:64px;font-weight:600;line-height:76px;}"],e=>e.color,n.A.desktop),r=i.Ay.h2.withConfig({componentId:"sc-3b1eb120-1"})(["color:",";font-size:20px;font-weight:600;line-height:28px;@media ","{font-size:36px;font-weight:600;line-height:44px;}"],e=>e.color,n.A.desktop),a=i.Ay.h3.withConfig({componentId:"sc-3b1eb120-2"})(["color:",";font-size:18px;font-weight:600;line-height:24px;&.usertrack-head{font-size:16px;}&.contact-headline{span{font-weight:400;}}@media ","{font-size:28px;font-weight:600;line-height:36px;&.contact-headline{font-size:23px;span{}}}"],e=>e.color,n.A.desktop),l=i.Ay.h4.withConfig({componentId:"sc-3b1eb120-3"})(["color:",";font-size:16px;font-weight:600;line-height:20px;@media ","{font-size:22px;font-weight:600;line-height:28px;}"],e=>e.color,n.A.desktop),c=i.Ay.h3.withConfig({componentId:"sc-3b1eb120-4"})(["color:",";font-size:20px;font-weight:500;line-height:30px;"],e=>e.color),d=i.Ay.h3.withConfig({componentId:"sc-3b1eb120-5"})(["color:",";font-size:18px;font-weight:500;line-height:27px;"],e=>e.color);i.Ay.h3.withConfig({componentId:"sc-3b1eb120-6"})(["color:",";font-size:16px;font-weight:300;line-height:26px;"],e=>e.color);let p=i.Ay.h3.withConfig({componentId:"sc-3b1eb120-7"})(["color:",";font-size:14px;font-weight:300;line-height:21px;"],e=>e.color),g=i.Ay.h3.withConfig({componentId:"sc-3b1eb120-8"})(["color:",";font-size:16px;font-weight:500;line-height:20px;padding-left:2px;@media ","{font-size:20px;font-weight:500;line-height:28px;}"],e=>e.color,n.A.desktop),f=i.Ay.h3.withConfig({componentId:"sc-3b1eb120-9"})(["color:",";font-size:14px;font-weight:500;line-height:20px;@media ","{font-size:18px;font-weight:500;line-height:26px;}"],e=>e.color,n.A.desktop),x=i.Ay.h3.withConfig({componentId:"sc-3b1eb120-10"})(["color:",";font-size:12px;font-weight:500;line-height:16px;@media ","{font-size:16px;font-weight:500;line-height:22px;}"],e=>e.color,n.A.desktop),m=i.Ay.p.withConfig({componentId:"sc-3b1eb120-11"})(["color:",";font-size:16px;line-height:24px;font-weight:",";&.bold-txt{font-weight:600;font-size:14px !important;}&.textTransformUppercase{text-transform:capitalize;}@media ","{font-size:20px;line-height:30px;font-weight:",";}"],e=>e.color,e=>e.mfontWeight?e.mfontWeight:400,n.A.desktop,e=>e.dfontWeight?e.dfontWeight:400),u=i.Ay.p.withConfig({componentId:"sc-3b1eb120-12"})(["color:",";font-size:15px;line-height:20px;font-weight:",";@media ","{font-size:20px;line-height:30px;font-weight:",";}"],e=>e.color,e=>e.mfontWeight?e.mfontWeight:400,n.A.desktop,e=>e.dfontWeight?e.dfontWeight:400),w=i.Ay.p.withConfig({componentId:"sc-3b1eb120-13"})(["color:",";font-size:14px;line-height:20px;font-weight:",";@media ","{font-size:18px;line-height:26px;font-weight:",";}"],e=>e.color,e=>e.mfontWeight?e.mfontWeight:400,n.A.desktop,e=>e.dfontWeight?e.dfontWeight:400),b=i.Ay.p.withConfig({componentId:"sc-3b1eb120-14"})(["color:",";font-size:13px;line-height:15px;font-weight:",";@media ","{font-size:18px;line-height:26px;font-weight:",";}"],e=>e.color,e=>e.mfontWeight?e.mfontWeight:400,n.A.desktop,e=>e.dfontWeight?e.dfontWeight:400),y=i.Ay.p.withConfig({componentId:"sc-3b1eb120-15"})(["color:",";font-size:12px;line-height:16px;font-weight:",";word-break:break-word;@media ","{font-size:16px;line-height:24px;font-weight:",";}"],e=>e.color,e=>e.mfontWeight?e.mfontWeight:400,n.A.desktop,e=>e.dfontWeight?e.dfontWeight:400),_=i.Ay.p.withConfig({componentId:"sc-3b1eb120-16"})(["color:",";font-size:10px;line-height:12px;font-weight:",";@media ","{font-size:14px;line-height:20px;font-weight:",";}"],e=>e.color,e=>e.mfontWeight?e.mfontWeight:400,n.A.desktop,e=>e.dfontWeight?e.dfontWeight:400),A=i.Ay.p.withConfig({componentId:"sc-3b1eb120-17"})(["color:",";font-size:10px;line-height:12px;font-weight:",";@media ","{font-size:12px;line-height:16px;font-weight:",";}"],e=>e.color,e=>e.mfontWeight?e.mfontWeight:400,n.A.desktop,e=>e.dfontWeight?e.dfontWeight:400),k=i.Ay.p.withConfig({componentId:"sc-3b1eb120-18"})(["color:",";font-size:10px;line-height:12px;font-weight:",";@media ","{font-size:10px;line-height:12px;font-weight:",";}"],e=>e.color,e=>e.mfontWeight?e.mfontWeight:400,n.A.desktop,e=>e.dfontWeight?e.dfontWeight:400),z=i.Ay.hr.withConfig({componentId:"sc-3b1eb120-19"})(["border:0;border-top:1px solid ",";margin:0;"],e=>
1e.color?e.color:s.A.colors.theme_secondary[100]);i.Ay.span.withConfig({componentId:"sc-3b1eb120-20"})(["color:",";background:linear-gradient(",");-webkit-background-clip:text;-webkit-text-fill-color:transparent;"],e=>e.callbackColor,e=>e.gradient);let C=i.Ay.span.withConfig({componentId:"sc-3b1eb120-21"})(["width:1px;height:",";background-color:",";"],e=>e.height?e.height:"auto",e=>e.color?e.color:s.A.colors.theme_secondary[100])}}]);

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.