1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[875],{875:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var n=i(37876),l=i(14232),a=i(58278),s=i(8743),o=i(50619),r=i(23009),c=i(88855),d=i(42310),h=i(97587),u=i(63274),x=i.n(u),g=i(66915),m=i(35561),p=i(24167),y=i(31607),S=i(67282);let j=e=>{let{changeStyle:t="",inLineStyle:i={},data:s=[],isLoading:o,error:r,titleText:c="Sectors",deviceType:d="mobile",utmSource:u="",utmMedium:j="",totalRecords:f=0,totalPages:L=0,initialPage:b=1}=e,[k,v]=(0,l.useState)(s),[_,A]=(0,l.useState)(Number(f)||0),[C,W]=(0,l.useState)(b),[B,z]=(0,l.useState)(!1),[N,P]=(0,l.useState)(!1),T=h.n6;(0,l.useEffect)(()=>{v(s),A(Number(f)||0),W(b),P(!1)},[s,f,b]),(0,l.useEffect)(()=>{if(!N)return;let e=!1;return(async()=>{try{let t=await (0,S.h)({origin:d,pageno:C,itemcount:T,utm_source:u,utm_medium:j});if(e)return;if((null==t?void 0:t.status)&&(null==t?void 0:t.response)){let{response:e}=t;v(Array.isArray(null==e?void 0:e.sectorList)?e.sectorList:[]),A((0,h.bf)(e))}else v([]),A(0);z(!0)}catch(t){e||(v([]),A(0))}finally{e||z(!1)}})(),()=>{e=!0}},[d,C,N,T,u,j]);let F=Number(L)>1||_>T,E=e=>()=>{(0,h.aO)(e)};return(0,n.jsxs)(a.default,{inLineStyle:i,children:[(0,n.jsx)("div",{className:x().centerdiv,children:(0,n.jsx)(p.A,{type:"h1",moreButtonLink:"",moreButtonText:"Sector Stocks",fontSize:"font-size-24",fontWeight:"700",isSeprator:!1,isDefaultFontFamily:!1,changeStyle:"",inLineParentStyle:{marginBottom:"16px"}})}),(0,n.jsx)("div",{className:"".concat(x()["table-container"]," ").concat(t),children:(null!=o?o:B)?(0,n.jsx)("div",{style:{padding:"40px 0",textAlign:"center",fontSize:"14px"},children:"Loading data..."}):r?(0,n.jsx)("div",{style:{padding:"40px 0",textAlign:"center",fontSize:"14px",color:"#BE1F24"},children:r}):(null==k?void 0:k.length)?(0,n.jsxs)("table",{className:x().table,children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:["#","Sector","No. of Companies","Total Market Cap (Cr.)","Median PE"].map(e=>(0,n.jsx)("th",{children:(0,n.jsx)(g.A,{tag:"span",text:e,changeStyle:"font-size-16",fontWeight:"700",isLineClamp:!1,isWhiteLayout:!1,inLineStyle:{lineHeight:"1.2",color:"#000000"}})},e))})}),(0,n.jsx)("tbody",{children:k.map((e,t)=>{let i=(0,h.Do)(null==e?void 0:e.seoPath,null==e?void 0:e.sect_name),l=(C-1)*T+t+1;return(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(0,n.jsx)(m.A,{link:i,onClick:E(e),children:(0,n.jsx)(g.A,{tag:"span",text:String(l),changeStyle:"font-size-16",fontWeight:"400",isLineClamp:!1,isWhiteLayout:!1,inLineStyle:{lineHeight:"1.2",color:"#000000"}})})}),(0,n.jsx)("td",{children:(0,n.jsx)(m.A,{link:i,onClick:E(e),children:(0,n.jsx)(g.A,{tag:"h2",text:(null==e?void 0:e.sect_name)||"â",changeStyle:"font-size-16",fontWeight:"700",isLineClamp:!0,isWhiteLayout:!1,inLineStyle:{lineHeight:"1.2",color:"#000000"}})})}),(0,n.jsx)("td",{children:(0,n.jsx)(m.A,{link:i,onClick:E(e),children:(0,n.jsx)(g.A,{tag:"span",text:(0,h.Sm)(null==e?void 0:e.companyCount),changeStyle:"font-size-16",fontWeight:"400",isLineClamp:!1,isWhiteLayout:!1,inLineStyle:{lineHeight:"1.2",color:"#000000"}})})}),(0,n.jsx)("td",{children:(0,n.jsx)(m.A,{link:i,onClick:E(e),children:(0,n.jsx)(g.A,{tag:"span",text:(0,h.ZV)(null==e?void 0:e.totalMarketCap),changeStyle:"font-size-16",fontWeight:"400",isLineClamp:!1,isWhiteLayout:!1,inLineStyle:{lineHeight:"1.2",color:"#000000"}})})}),(0,n.jsx)("td",{children:(0,n.jsx)(m.A,{link:i,onClick:E(e),children:(0,n.jsx)(g.A,{tag:"span",text:(0,h.ZV)(null==e?void 0:e.medianPE),changeStyle:"font-size-16",fontWeight:"400",isLineClamp:!1,isWhiteLayout:!1,inLineStyle:{lineHeight:"1.2",color:"#000000"}})})})]},(null==e?void 0:e.sect_code)||"".concat(null==e?void 0:e.sect_name,"-").concat(t))})})]}):(0,n.jsx)("div",{style:{padding:"40px 0",textAlign:"center",fontSize:"16px"},children:"No data available."})}),F&&(0,n.jsx)(y.A,{inLineStyle:{marginBottom:"30px"},totalRecords:_,currentPage:C,itemsPerPage:T,pagesToShow:3,setCurrentPage:e=>{P(!0),W(e)}})]})},f=e=>{let{sectorList:t=[],ads:i={},pageTarget:l,titleText:a,pagePath:u="",totalRecords:x=0,totalPages:g=0,currentPage:m=1,deviceType:p="mobile",utmSource:y="",utmMedium:S=""}=e,f=[{id:"home",label:"Business News",link:(0,d.FB)()},{id:"stocks",label:"Stocks",link:"".concat((0,d.FB)(),"/stocks")},{id:"sector",label:"Sector",link:"".concat((0,d.FB)()).concat(u||h.Sj)}];return(0,n.jsxs)(n.Fragment,{children:[(null==i?void 0:i.atf)&&(0,n.jsx)(c.A,{inLineStyle:{marginBottom:"16
1px",minHeight:"250px"},children:(0,n.jsx)(r.default,{...i.atf,pageTarget:l})}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j,{data:t,titleText:a,deviceType:p,utmSource:y,utmMedium:S,totalRecords:x,totalPages:g,initialPage:m,inLineStyle:{marginBottom:"20px"}}),(0,n.jsx)(o.A,{}),(0,n.jsx)(s.A,{customBreadcrumbs:f})]})]})}},63274:e=>{e.exports={"table-container":"sectorTable_table-container__xyD9q",tableContainer:"sectorTable_table-container__xyD9q",table:"sectorTable_table__8ksri",centerdiv:"sectorTable_centerdiv__5i8q_"}}}]);
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.