1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[94547],{534:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var l=n(37876),i=n(14232),o=n(46191),a=n(83432),r=n.n(a),c=n(3648);let u=e=>{let{data:t=[],changeStyle:n="",inLineStyle:a={},gridGap:u,marginBottom:s,isWhiteLayout:d=!1,buttonConfig:v={},isBottomBorder:h=!0,isStickyLeft:_=!1}=e,g=(0,i.useRef)(null),b=(0,i.useRef)(null),m=(0,i.useRef)(null),p=(0,i.useRef)(!1);return((0,i.useEffect)(()=>{let e=t.findIndex(e=>null==e?void 0:e.isActive);m.current!==e&&(m.current=e,requestAnimationFrame(()=>{if(!g.current||!b.current)return;let e=b.current.querySelector('[class*="overflow"]');if(!e)return;let t=g.current,n=e.getBoundingClientRect(),l=t.getBoundingClientRect();if(!(l.left>=n.left&&l.right<=n.right)){let n=t.offsetLeft-e.offsetWidth/2+t.offsetWidth/2;e.scrollTo({left:Math.max(0,n),behavior:p.current?"smooth":"auto"}),p.current=!0}}))},[t]),null==t?void 0:t.length)?(0,l.jsx)("div",{ref:b,className:"".concat(r().default," ").concat(h&&r()["border-visible"]," ").concat(d&&r().white," ").concat(n&&r()[n]),style:{...a},children:(0,l.jsx)(c.A,{elementType:"ulBox",gridGap:u,changeStyle:"",marginBottom:s,children:t.map((e,t)=>(0,l.jsx)("li",{ref:(null==e?void 0:e.isActive)?g:null,className:"".concat(r()["tab-items"]," ").concat((null==e?void 0:e.isActive)&&_?r()["active-sticky"]:""),children:(0,l.jsx)(o.A,{buttonType:(null==e?void 0:e.link)?"anchor":(null==v?void 0:v.buttonType)||"button",changeStyle:(null==v?void 0:v.changeStyle)||"",inLineStyle:(null==v?void 0:v.inLineStyle)||{},isActive:null==e?void 0:e.isActive,isIconVisible:(null==v?void 0:v.isIconVisible)||!1,iconWidth:(null==e?void 0:e.iconWidth)||(null==v?void 0:v.iconWidth)||16,iconHeight:(null==e?void 0:e.iconHeight)||(null==v?void 0:v.iconHeight)||16,IconName:(null==e?void 0:e.iconName)||"",link:(null==e?void 0:e.link)||(null==v?void 0:v.link)||null,onClick:null==e?void 0:e.onClick,buttonConfig:{tag:"span",text:null==e?void 0:e.name,changeStyle:(null==v?void 0:v.buttonFontSize)||"font-size-12",fontWeight:(null==v?void 0:v.buttonFontWeight)||"700",isLineClamp:!1,isWhiteLayout:d,inLineStyle:{textTransform:(null==v?void 0:v.isUpperCase)===!0?"uppercase":"none",...null==v?void 0:v.buttonInLineStyle}}})},t))})}):null}},13605:e=>{e.exports={default:"FilterButton_default__Zr9UK",hover:"FilterButton_hover__tU8Ry","grey-with-black-active":"FilterButton_grey-with-black-active__eRq_3",greyWithBlackActive:"FilterButton_grey-with-black-active__eRq_3",active:"FilterButton_active__ImS2c","no-sticky":"FilterButton_no-sticky__l63Ce",noSticky:"FilterButton_no-sticky__l63Ce","red-outline":"FilterButton_red-outline__3Rb_I",redOutline:"FilterButton_red-outline__3Rb_I","red-outline-with-hover":"FilterButton_red-outline-with-hover__Fdee9",redOutlineWithHover:"FilterButton_red-outline-with-hover__Fdee9","red-fill":"FilterButton_red-fill__D05E_",redFill:"FilterButton_red-fill__D05E_","red-underline":"FilterButton_red-underline__PyRPd",redUnderline:"FilterButton_red-underline__PyRPd","grey-button":"FilterButton_grey-button__9KS81",greyButton:"FilterButton_grey-button__9KS81","without-bg":"FilterButton_without-bg__y86d_",withoutBg:"FilterButton_without-bg__y86d_","btn-icon":"FilterButton_btn-icon__lTYm0",btnIcon:"FilterButton_btn-icon__lTYm0"}},32179:e=>{e.exports={box:"NewsGlanceRhs_box__pwY9V","box-tab":"NewsGlanceRhs_box-tab__oz5BU",boxTab:"NewsGlanceRhs_box-tab__oz5BU","box-center":"NewsGlanceRhs_box-center__1jWuK",boxCenter:"NewsGlanceRhs_box-center__1jWuK"}},32849:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var l=n(37876),i=n(14232),o=n(54587),a=n.n(o),r=n(95062),c=n.n(r);let u=e=>{let{logoConfig:t={},fallbackImg:n="https://img.timesnownews.com/stock-images/Default+stock+image.png",width:o=300,height:r=200}=e,c=(null==t?void 0:t.altText)||"Image",u=n;if(null==t?void 0:t.logoUrl){var s,d,v,h;if((null==t||null==(s=t.logoUrl)?void 0:s.startsWith("http://"))||(null==t||null==(d=t.logoUrl)?void 0:d.startsWith("https://")))u=null==t?void 0:t.logoUrl;else if(null==t?void 0:t.baseImageUrl){let e=null==t||null==(v=t.baseImageUrl)?void 0:v.endsWith("/"),n=null==t||null==(h=t.logoUrl)?void 0:h.startsWith("/");u="".concat(null==t?void 0:t.baseImageUrl).concat(e||n?"":"/").concat(null==t?void 0:t.logoUrl)}else u=null==t?void 0:t.logoUrl}let[_,g]=(0,i.useState)(u);return(0,l.jsx)(a(),{src:_,alt:c,width:o,height:r,objectFit:"cover",style:null==t?void 0:t.inLineStyle,onError:()=>g(n)})};u.propTypes={logoConfig:c().shape({logoUrl:c().string,baseImageUrl:c().string,altText:c().string,inLineStyle:c().object}),fallbackImg:c().string,width:c().number,height:c().number};let s=u},70019:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var l=n(37876),i=n(14232),o=n(72813),a=n(32179),r=n.n(a),c=n(24167),u=n(534),s=n(66915);n(35561);var d=n(26272),v=n(89895),h=n(79104),_=n(30927),g=n(42310);let b=[{name:"News",value:"Company-News"},{name:"Board Meetings",value:"BoardMeetings"},{name:"Bonus",value:"BonusCocodewise"}],m={"Company-News":"click_news_at_glance_from_stocks",BoardMeetings:"click_board_meeting_news_at_glance_from_stocks",BonusCocodewise:"click_bonus_news_at_glance_from_stocks"};function p(e){var t;let{changeStyle:n="",inLineStyle:a={},cmot_fincode:p,Tabs:y=b,theme:f="dark",rhsWidget:x=!0,noPagination:k=!0,data:S=null,isForexPage:w,isStockDetailPage:C=!1}=e,[L,B]=(0,i.useState)(0),[A,T]=(0,i.useState)(S),[W,j]=(0,i.useState)(!1),[F,N]=(0,i.useState)(!!S),[U,I]=(0,i.useState)({}),[R,E]=(0,i.useState)(!1),D=y[L]||y[0],z=(null==D?void 0:D.value)||(null==(t=y[0])?void 0:t.value),M=y.map((e,t)=>({name:e.name,isActive:t===L,onClick:()=>G(t)})),G=e=>{if(C&&e!==L){var t;let n=m[null==(t=y[e])?void 0:t.value];n&&(0,g.K4)("event",n)}B(e)};(0,i.useEffect)(()=>
1{if(F&&S)return void N(!1);p&&(async()=>{j(!0);try{let e=await (0,d.uQ)(null,"desktop","",{fincode:p},1,5,z);(null==e?void 0:e.errorData)||null==e||e.success,T(e||{data:[],success:!1,errorData:!0})}catch(e){T({data:[],success:!1,errorData:!0})}finally{j(!1)}})()},[L,z,p,F,S]);let H=w?A:(null==A?void 0:A.data)||[],K="dark"===f;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"".concat(r().box),style:{...a},children:[(0,l.jsx)(c.A,{type:"h2",moreButtonLink:"",moreButtonText:"<span>News at </span> a Glance",fontSize:"font-size-20",fontWeight:"700",isSeprator:!0,isDefaultFontFamily:!1,isWhiteLayout:K,changeStyle:"",inLineParentStyle:{marginBottom:"16px"}}),(0,l.jsx)(u.A,{data:M,gridGap:12,isWhiteLayout:K,changeStyle:"black-bg",marginBottom:"",inLineStyle:{marginBottom:"15px",zIndex:"0"},buttonConfig:{buttonType:"button",isIconVisible:!1,iconWidth:"",iconHeight:"",changeStyle:"common",inLineStyle:{},buttonFontSize:"font-size-12",buttonFontWeight:"700",isUpperCase:!0,buttonInLineStyle:{}}}),W?(0,l.jsx)("div",{style:{padding:"20px",textAlign:"center"},children:(0,l.jsx)(v.A,{})}):H.length>0?(0,l.jsx)("ul",{className:"".concat(r()["box-tab"]),children:H.map((e,t)=>{let n=e.ques||e.heading||e.caption||(null==e?void 0:e.co_name)||"",i=e.DATE||e.date||e.bmdate||e.announcementdate||e.gmdate||e.publishdate||"",o=(e.time,((e,t)=>{if(!e)return"";let n=e.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})/);if(n){let[,e,t,l]=n;return"".concat(l,"-").concat(e.padStart(2,"0"),"-").concat(t.padStart(2,"0"))}if(e.includes("T")){let[t]=e.split("T");return t}return e.split(" ")[0].replace(/T.*$/,"")})(i,0));return e.link||e.url,(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{onClick:()=>(e=>{(e=>{if(!C)return;let t=m[e];t&&(0,g.K4)("event",t)})(z);let t="",n="",l="";switch(z){case"AGM":t=(null==e?void 0:e.co_name)||"",n=(null==e?void 0:e.announcementdate)?e.announcementdate.replaceAll("T00:00:00",""):"",l=(null==e?void 0:e.description)||"";break;case"BonusCocodewise":t=(null==e?void 0:e.co_name)&&(null==e?void 0:e.remark)?"".concat(e.co_name," ").concat(e.remark):(null==e?void 0:e.co_name)||"",n=(null==e?void 0:e.announcementdate)?e.announcementdate.replaceAll("T00:00:00",""):"",l=(null==e?void 0:e.description)||"";break;case"NSEAnnouncement":t=(null==e?void 0:e.caption)||"",n=(null==e?void 0:e.date)?e.date.replaceAll("T00:00:00",""):"",l=(null==e?void 0:e.memo)||"";break;case"BoardMeetings":t=(null==e?void 0:e.co_name)||"",n=(null==e?void 0:e.bmdate)?e.bmdate.replaceAll("T00:00:00",""):"",l=(null==e?void 0:e.description)||"";break;case"MF_News":t=(null==e?void 0:e.heading)||"",n=(null==e?void 0:e.date)&&(null==e?void 0:e.time)?"".concat(e.date.replaceAll("T00:00:00","")," ").concat(e.time):(null==e?void 0:e.date)?e.date.replaceAll("T00:00:00",""):"",l=(null==e?void 0:e.arttext)||(null==e?void 0:e.ans)||"";break;case"Company-News":t=(null==e?void 0:e.heading)||(null==e?void 0:e.ques)||"",n=(null==e?void 0:e.DATE)?e.DATE.replaceAll("T00:00:00",""):"",l=(null==e?void 0:e.arttext)||(null==e?void 0:e.ans)||"";break;default:t=(null==e?void 0:e.heading)||"";let i=(null==e?void 0:e.date)?e.date.replaceAll(" 12:00:00 AM",""):"",o="";if(i){let e=i.split("/");if(e.length>=3){let[t,n,l]=e.map(Number);l&&t&&n&&(o="".concat(l,"-").concat(String(t).padStart(2,"0"),"-").concat(String(n).padStart(2,"0")))}}n=o&&(null==e?void 0:e.time)?"".concat(o," ").concat(e.time):o,l=(null==e?void 0:e.arttext)||(null==e?void 0:e.ans)||""}I({heading:t,dateTime:n,arttext:l,description:l,co_name:(null==e?void 0:e.co_name)||t}),E(!0)})(e),style:{cursor:"pointer",textDecoration:"none"},children:(0,l.jsx)(s.A,{tag:"p",text:n,changeStyle:"font-size-14",fontWeight:"600",isLineClamp:!0,isWhiteLayout:K,inLineStyle:{lineHeight:"17px",wordBreak:"break-word",WebkitLineClamp:"3"}})}),(0,l.jsx)(s.A,{tag:"span",text:o,changeStyle:"font-size-12",fontWeight:"400",isLineClamp:!1,isWhiteLayout:K,inLineStyle:{lineHeight:"15px",wordBreak:"break-word",marginTop:"12px"}})]},e.sno||t)})}):(null==A?void 0:A.errorData)?(0,l.jsx)("div",{style:{padding:"20px",textAlign:"center",color:"#999"},children:"Unable to load data for this tab"}):(0,l.jsx)("div",{style:{padding:"20px",textAlign:"center",color:"#999"},children:"No news available"}),(0,l.jsx)("div",{className:"".concat(r()["box-center"]),children:(0,l.jsx)(o.A,{buttonType:"anch
1or",href:"/?apex_sec_id=".concat(L,"&apex_subsec_id=0#glanceWidget"),onClick:()=>{C&&(0,g.K4)("event",g.wu.stocks.moreNews)},changeStyle:"red-fill",inLineStyle:{borderRadius:"39px",height:"28px"},isHoverOption:!1,buttonConfig:{tag:"span",text:"More News",changeStyle:"font-size-12",fontWeight:"400",isLineClamp:!1,isWhiteLayout:!1,inLineStyle:{color:"inherit",lineHeight:"normal"}}})}),(0,l.jsx)(h.default,{isOpen:R,onClose:()=>{E(!1),I({})},children:(0,l.jsx)(_.A,{data:U})})]})})}p.propTypes={};let y=p},72813:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var l=n(37876);n(14232);var i=n(13605),o=n.n(i),a=n(35561),r=n(66915),c=n(84586),u=n(72207);let s=function(e){var t,n,i,s;let{changeStyle:d="",inLineStyle:v={},buttonType:h="button",isActive:_=!1,buttonConfig:g,onClick:b,href:m="",link:p,isHoverOption:y=!1,isSticky:f=!0,isIcon:x=!1,iconConfig:k={},isRightArrow:S=!1,rightArrowConfig:w={}}=e;return(0,l.jsxs)(l.Fragment,{children:["button"===h&&(0,l.jsxs)("button",{className:"".concat(null!=(t=null===o()||void 0===o()?void 0:o().default)?t:""," ").concat(y&&o().hover," ").concat(_&&o().active," ").concat(!f&&o()["no-sticky"]," ").concat(d&&null!=(n=o()[d])?n:""),style:{...v},onClick:b,children:[x&&(0,l.jsx)("i",{className:o()["btn-icon"],style:{...null==k?void 0:k.inLineStyle},children:(0,l.jsx)(u.default,{datasrc:null==k?void 0:k.src,alt:null==k?void 0:k.altText,inLineStyle:null==k?void 0:k.inLineStyle})}),(0,l.jsx)(r.A,{tag:null==g?void 0:g.tag,text:null==g?void 0:g.text,changeStyle:null==g?void 0:g.changeStyle,fontWeight:null==g?void 0:g.fontWeight,isLineClamp:null==g?void 0:g.isLineClamp,isWhiteLayout:null==g?void 0:g.isWhiteLayout,inLineStyle:null==g?void 0:g.inLineStyle}),S&&(0,l.jsx)(c.h,{IconName:"right-double-arrows-red",width:(null==w?void 0:w.width)||16,height:(null==w?void 0:w.height)||10})]}),"anchor"===h&&(0,l.jsxs)(a.A,{link:p||m,onClick:b,className:"".concat(null!=(i=null===o()||void 0===o()?void 0:o().default)?i:""," ").concat(y&&o().hover," ").concat(_&&o().active," ").concat(!f&&o()["no-sticky"]," ").concat(d&&null!=(s=o()[d])?s:""),inLineStyle:v,onClick:b,children:[x&&(0,l.jsx)("i",{className:o()["btn-icon"],style:{...null==k?void 0:k.inLineStyle},children:(0,l.jsx)(u.default,{datasrc:null==k?void 0:k.src,alt:null==k?void 0:k.altText,inLineStyle:null==k?void 0:k.inLineStyle})}),(0,l.jsx)(r.A,{tag:null==g?void 0:g.tag,text:null==g?void 0:g.text,changeStyle:null==g?void 0:g.changeStyle,fontWeight:null==g?void 0:g.fontWeight,isLineClamp:null==g?void 0:g.isLineClamp,isWhiteLayout:null==g?void 0:g.isWhiteLayout,inLineStyle:null==g?void 0:g.inLineStyle}),S&&(0,l.jsx)(c.h,{IconName:"right-double-arrows-red",width:(null==w?void 0:w.width)||16,height:(null==w?void 0:w.height)||10})]})]})}},83432:e=>{e.exports={default:"TabComponent_default__GmQHW","tab-items":"TabComponent_tab-items__atFLE",tabItems:"TabComponent_tab-items__atFLE",white:"TabComponent_white__Mq1Zi","black-bg":"TabComponent_black-bg__8UEMR",blackBg:"TabComponent_black-bg__8UEMR","active-sticky":"TabComponent_active-sticky__ACYkD",activeSticky:"TabComponent_active-sticky__ACYkD","border-visible":"TabComponent_border-visible__DEfez",borderVisible:"TabComponent_border-visible__DEfez"}}}]);
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.