1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8018f3ae-5a57-4490-9ed7-b3b41db8bbef",e._sentryDebugIdIdentifier="sentry-dbid-8018f3ae-5a57-4490-9ed7-b3b41db8bbef")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[16528,32531,81470,84812],{19638:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/NoGainersLosersLight.43fde139.svg",height:135,width:174,blurWidth:0,blurHeight:0}},20172:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/X.db1b8a96.svg",height:38,width:38,blurWidth:0,blurHeight:0}},26491:(e,t,r)=>{"use strict";r.d(t,{e:()=>s,A:()=>l});var n=r(986594);r(407178);var a=r(361054),i=r.n(a);let o=e=>{let{src:t}=e;return"".concat(t)},s=e=>{let{alt:t="",src:r,...a}=e;return(0,n.jsx)(i(),{...a,src:r,alt:t,loader:o})},l=s},38700:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/8.3d4625a7.svg",height:38,width:38,blurWidth:0,blurHeight:0}},45973:(e,t,r)=>{"use strict";r.d(t,{G3:()=>o,I0:()=>a,Pl:()=>i,p4:()=>s});var n=r(91702);let a={LOSS:"LOSS_LIMIT",PROFIT:"PROFIT_LIMIT"},i={SUCCESS:"SUCCESS",FAILED:"FAILED"},o=[{label:"Protect profit at",value:n.Vt.PROFIT},{label:"Limit loss at",value:n.Vt.LOSS}],s=[{node:o[0].label},{node:o[1].label,activeAccentClass:"contentNegative",activeBorderClass:"borderNegative",inactiveAccentClass:"contentPrimary",sliderBackgroundClass:"backgroundNegativeSubtle"}]},53959:(e,t,r)=>{var n={"./0.svg":117076,"./1.svg":131433,"./2.svg":658722,"./3.svg":95063,"./4.svg":554288,"./5.svg":224949,"./6.svg":432750,"./7.svg":512419,"./8.svg":38700,"./9.svg":744065,"./A.svg":133369,"./B.svg":787122,"./C.svg":608423,"./D.svg":475200,"./E.svg":961029,"./F.svg":732478,"./G.svg":613171,"./H.svg":691964,"./I.svg":980689,"./J.svg":133450,"./K.svg":75423,"./L.svg":586040,"./M.svg":567037,"./N.svg":665782,"./O.svg":205067,"./P.svg":930740,"./Q.svg":851017,"./R.svg":726658,"./S.svg":461367,"./T.svg":491024,"./U.svg":361621,"./V.svg":157198,"./W.svg":340867,"./X.svg":20172,"./Y.svg":999777,"./Z.svg":322202};function a(e){return r(i(e))}function i(e){if(!r.o(n,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}a.keys=function(){return Object.keys(n)},a.resolve=i,e.exports=a,a.id=53959},75423:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/K.93e1e630.svg",height:38,width:38,blurWidth:0,blurHeight:0}},85676:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(986594),a=r(654307),i=r.n(a);let o=e=>{let{text:t,titleText:r,textClass:a="bodyBaseHeavy",truncate:o,maxWidth:s}=e;return(0,n.jsx)("div",{title:r||t,className:"contentPrimary ".concat(a," ").concat(i().name," ").concat(o?"truncate":""),style:{maxWidth:s},children:t})}},91745:(e,t,r)=>{"use strict";r.d(t,{FB:()=>n.FB,Re:()=>n.Re,WC:()=>n.WC,ZF:()=>n.ZF,_w:()=>n._w,gO:()=>n.gO,wv:()=>n.wv,xm:()=>n.xm,yt:()=>n.yt});var n=r(975245)},95063:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/3.e24b2498.svg",height:38,width:38,blurWidth:0,blurHeight:0}},101892:(e,t,r)=>{"use strict";r.d(t,{p:()=>l});var n=r(407178),a=r(907675),i=function(e){return e[e.Ignore=0]="Ignore",e[e.TreatAsIntersecting=1]="TreatAsIntersecting",e}({});let o={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,toJSON:()=>{}},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{initialInView:t=!1,handleIntersection:r,...s}
1=e,[l,d]=(0,n.useState)(t),[c,u]=(0,n.useState)(null),[p,g,h]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{root:t,rootMargin:r,threshold:s,unsupportedBehavior:l=i.TreatAsIntersecting,triggerOnce:d=!1}=e,c=(0,n.useRef)(null),u=(0,n.useRef)(null),[p,g]=(0,n.useState)(()=>({boundingClientRect:o,intersectionRatio:0,intersectionRect:o,isIntersecting:!1,rootBounds:o,target:null,time:Date.now()})),h=(0,n.useCallback)(()=>{let e=u.current;null==e||e.disconnect(),u.current=null},[]);(0,n.useEffect)(()=>()=>{h()},[h]);let m=(0,n.useCallback)(()=>{let e=null==c?void 0:c.current;if(e){let n=new IntersectionObserver(e=>{let[t]=e;return g(t)},{root:"string"==typeof t?document.querySelector(t):t,rootMargin:r,threshold:s});n.observe(e),u.current=n}},[t,r,Array.isArray(s)?s.join():s]),f=(0,n.useCallback)(()=>{h(),m()},[m,h]),v=(0,n.useCallback)(e=>{e?(g({boundingClientRect:o,intersectionRatio:0,intersectionRect:o,isIntersecting:!1,rootBounds:o,target:null,time:Date.now()}),f()):h()},[m,h]),y=(0,n.useCallback)(e=>{if(c.current=e,!c.current)return;let t=l===i.TreatAsIntersecting;if(!(0,a.m)()&&t){let e=c.current.getBoundingClientRect();g({boundingClientRect:e,intersectionRatio:1,intersectionRect:e,isIntersecting:!0,rootBounds:e,target:c.current,time:Date.now()});return}f()},[f]);return(0,n.useEffect)(()=>{p.isIntersecting&&d&&h()},[p.isIntersecting]),[p,y,v]}(s),m=(0,n.useCallback)(e=>{let{isIntersecting:t,boundingClientRect:n,rootBounds:i}=e,{top:o,bottom:s}=null!=i?i:{},l=null==n?void 0:n.y;o&&s&&l>o&&l<s&&(r&&r(t,null),u(null)),o&&l<=o&&(r&&r(t,a.Q.TOP),u(a.Q.TOP)),s&&l>=s&&(r&&r(t,a.Q.BOTTOM),u(a.Q.BOTTOM)),d(t)},[g]),f=(0,n.useRef)(p),v=f.current;return(0,n.useEffect)(()=>{p!==v&&(f.current=p,m(p,v))},[m,p,v]),[g,l,h,c]},l=e=>{let{children:t,wrapperType:r="div",onViewChange:a,...i}=e,[o,l,d,c]=s(i);return(0,n.useEffect)(()=>{null==a||a(l,c)},[o,l]),n.createElement(r,{ref:o},t)}},117076:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/0.e84cc5b9.svg",height:38,width:38,blurWidth:0,blurHeight:0}},123146:(e,t,r)=>{"use strict";r.d(t,{$P:()=>i,$k:()=>o,q5:()=>s});var n=r(299168),a=r(270230);function i(e){let t=(0,n.Gx)();return a.SP.post("/v1/api/stocks_pledge/v1/pledge/revoke",e,{headers:{"X-SESSION-ID":t}})}function o(){return a.SP.get("/v1/api/stocks_portfolio/v2/holding/pledged")}function s(e){var t,r;let n=null===(t=e.query)||void 0===t?void 0:t.trim(),i=null===(r=e.order)||void 0===r?void 0:r.toUpperCase(),o={...e,query:(null==n?void 0:n.length)===0?void 0:n,order:i};return a.vO.get("/v1/api/stocks_pledge/v1/pledgable/explore",{params:o})}},125757:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(407178),a=r(810059),i=n.memo(function(e){let t=(0,a.C)(e);return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},n.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),n.createElement("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}))})},131433:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/1.a8e0d771.svg",height:38,width:38,blurWidth:0,blurHeight:0}},133369:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/A.1ebc8241.svg",height:38,width:38,blurWidth:0,blurHeight:0}},133450:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/J.4e10442e.svg",height:38,width:38,blurWidth:0,blurHeight:0}},157198:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/V.d35f0ba6.svg",height:38,width:38,blurWidth:0,blurHeight:0}},173204:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/NoGainersLosersDark.96d18f91.svg",height:135,width:174,blurWidth:0,blurHeight:0}},188447:(e,t,r)=>{"use strict";r.d(t,{A3:()=>o,BH:()=>s,WL:()=>d,iD:()=>i,oF:()=>l});var n=r(3822),a=r(145658);let i=e=>{var t,r;return null!==(r=null==e?void 0:null===(t=e.stock)||void 0===t?void 0:t.onboardingStatus)&&void 0!==r?r:a.d},o=()=>(0,n.Mz)([i],e=>{let{onboardingStatus:t}=e;return t}),s=()=>(0,n.Mz)([i],e=>{let{fnoOnboardingStatus:t}=e;return t}),l=()=>(0,n.Mz)([i],e=>{let{onboardingLoading:t}=e;return t}),d=()=>(0,n.Mz)([i],e=>{let{onboardingError:t}=e;return t})},188955:(e,t,r)=>{"use strict";r.d(t,{S0:()=>n.S0,dZ:()=>n.dZ,jY:()=>n.jY,yq:()=>n.yq});var n=r(252412)},189236:(e,t,r)=>{"use strict";r.d(t,{d:()=>n});var n=function(e){return e.INDEX="LIVE_INDEX",e.STOCK="LIVE_PRICE",e}({})},199016:(e,t,r)=>{"use strict";r.d(t,{Y:()=>l});var n=r(275063),a=r(407178),i=r(447003),o=r(265800),s=r(189236);let l=(e,t)=>
1{var r;let l=(0,n.d4)((0,i.Cp)(e)),{high:d,low:c,value:u,open:p,close:g,type:h,ltp:m}=null!==(r=null!=l?l:t)&&void 0!==r?r:o.G,[f,v]=(0,a.useState)(d),[y,w]=(0,a.useState)(c),T=h===s.d.INDEX?null!=u?u:0:m;return(0,a.useEffect)(()=>{v(d),w(c)},[e]),(0,a.useEffect)(()=>{let e=Math.max(T,d),t=Math.min(T,c);e&&f<e&&v(e),t&&0!==t&&(y>t||0===y)&&w(t)},[c,d,T]),{open:p,close:g,dayHighPrice:f,dayLowPrice:y}}},205067:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/O.5307e6f8.svg",height:38,width:38,blurWidth:0,blurHeight:0}},207504:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l});var n=r(407178),a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},i=function(e){var t=e.animate,r=e.backgroundColor,i=e.backgroundOpacity,o=e.baseUrl,s=e.children,l=e.foregroundColor,d=e.foregroundOpacity,c=e.gradientRatio,u=e.uniqueKey,p=e.interval,g=e.rtl,h=e.speed,m=e.style,f=e.title,v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","interval","rtl","speed","style","title"]),y=u||Math.random().toString(36).substring(6),w=y+"-diff",T=y+"-animated-diff",_=y+"-aria",b="0; "+p+"; 1",O=h+"s";return(0,n.createElement)("svg",a({"aria-labelledby":_,role:"img",style:a(a({},m),g?{transform:"scaleX(-1)"}:null)},v),f?(0,n.createElement)("title",{id:_},f):null,(0,n.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+o+"#"+w+")",style:{fill:"url("+o+"#"+T+")"}}),(0,n.createElement)("defs",{role:"presentation"},(0,n.createElement)("clipPath",{id:w},s),(0,n.createElement)("linearGradient",{id:T},(0,n.createElement)("stop",{offset:"0%",stopColor:r,stopOpacity:i},t&&(0,n.createElement)("animate",{attributeName:"offset",values:-c+"; "+-c+"; 1",keyTimes:b,dur:O,repeatCount:"indefinite"})),(0,n.createElement)("stop",{offset:"50%",stopColor:l,stopOpacity:d},t&&(0,n.createElement)("animate",{attributeName:"offset",values:-c/2+"; "+-c/2+"; "+(1+c/2),keyTimes:b,dur:O,repeatCount:"indefinite"})),(0,n.createElement)("stop",{offset:"100%",stopColor:r,stopOpacity:i},t&&(0,n.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+c),keyTimes:b,dur:O,repeatCount:"indefinite"})))))};i.defaultProps={animate:!0,backgroundColor:"#f5f6f7",backgroundOpacity:1,baseUrl:"",foregroundColor:"#eee",foregroundOpacity:1,gradientRatio:2,id:null,interval:.25,rtl:!1,speed:1.2,style:{},title:"Loading..."};var o=function(e){return e.children?(0,n.createElement)(i,a({},e)):(0,n.createElement)(s,a({},e))},s=function(e){return(0,n.createElement)(o,a({viewBox:"0 0 476 124"},e),(0,n.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,n.createElement)("circle",{cx:"20",cy:"20",r:"20"}))};let l=o},224949:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/5.991bfa93.svg",height:38,width:38,blurWidth:0,blurHeight:0}},225760:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});let n=e=>{let t=null==e?void 0:e.charAt(0),n=r(133369).default;return t&&t.match("^[a-zA-Z0-9]*$")&&(n=r(53959)("./".concat(t.toUpperCase(),".svg")).default),{logo:n}}},230854:(e,t,r)=>{"use strict";r.d(t,{w:()=>d});var n=r(407178),a=r(275063),i=r(238460),o=r(860662),s=r(759647);let l=(e,t,r,n,a)=>t&&e<new Date(t).getTime()?new Date(t).getTime()-e:r&&e<new Date(r).getTime()?new Date(r).getTime()-e:n&&e<new Date(n).getTime()?new Date(n).getTime()-e:a&&e<new Date(a).getTime()?new Date(a).getTime()-e:-1,d=function(){var e,t,r,d;let c=!(arguments.length>0)||void 0===arguments[0]||arguments[0],u=(0,a.wA)(),p=(0,a.d4)(o.$5),g=(0,a.d4)(o.FX),h=(0,a.d4)(o.C$),m=(0,n.useRef)(null),f=(0,n.useRef)(null),v=null!==(e=null==p?void 0:p.nextPreOpenStartDateTime)&&void 0!==e?e:null,y=null!==(t=null==p?void 0:p.nextPreOpenEndDateTime)&&void 0!==t?t:null,w=null!==(r=null==p?void 0:p.nextOpenDateTime)&&void 0!==r?r:null,T=null!==(d=null==p?void 0:p.nextCloseDateTime)&&void 0!==d?d:null;(0,n.useEffect)(()=>
1{if(!c||!(0,i.N)())return;if(!h){g||u((0,s.bX)());return}let e=Date.now(),t=l(e,v,y,w,T);if(t<=0){m.current&&(clearTimeout(m.current),m.current=null,f.current=null),u((0,s.bX)(!0));return}let r=e+t;if(f.current!==r)return m.current&&(clearTimeout(m.current),m.current=null),f.current=r,m.current=setTimeout(()=>{f.current=null,u((0,s.bX)(!0))},t),()=>{m.current&&(clearTimeout(m.current),m.current=null,f.current=null)}},[c,u,h,g,T,w,y,v])}},234900:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,F:()=>o});var n=r(986594);r(407178);var a=r(744620),i=r(619001);let o="desktop"===a.Eg.MSITE,s=e=>(0,n.jsx)(i.A,{...e})},236930:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/futures-and-options/top-traded",function(){return r(686709)}])},240606:e=>{e.exports={header:"FnoTopTraded_header__G1x_C",radioButtons:"FnoTopTraded_radioButtons__0JDHj",filterItem:"FnoTopTraded_filterItem__ZsyZJ",itemRowIconsContainer:"FnoTopTraded_itemRowIconsContainer__eNUqh",itemRow:"FnoTopTraded_itemRow__A8QIn",itemRowVolume:"FnoTopTraded_itemRowVolume__ZzaEP",itemRowIcon:"FnoTopTraded_itemRowIcon__RVxgD",warningToast:"FnoTopTraded_warningToast__OtE_e",warningToastGap:"FnoTopTraded_warningToastGap__5uarS",warningToastRefreshUnderline:"FnoTopTraded_warningToastRefreshUnderline__LNVgF",headingMargin:"FnoTopTraded_headingMargin__q5_sr",topOptionsContainer:"FnoTopTraded_topOptionsContainer__lKtr2",topOptionsHeading:"FnoTopTraded_topOptionsHeading__Kwom4",topOptionRow:"FnoTopTraded_topOptionRow__WPa6w",topOptionRowName:"FnoTopTraded_topOptionRowName__wBllM",fnoIndicesSecDiv:"FnoTopTraded_fnoIndicesSecDiv__E3Co2",fnoIndicesCompanyCardWrapper:"FnoTopTraded_fnoIndicesCompanyCardWrapper__vFWl_",fnoIndicesCategoryCard:"FnoTopTraded_fnoIndicesCategoryCard__u5Gwf",fnoIndicesHoverText:"FnoTopTraded_fnoIndicesHoverText__2IDaR",fnoIndicesHoverIcon:"FnoTopTraded_fnoIndicesHoverIcon__hxHs_",fnoIndicesCompanyNameTruncate:"FnoTopTraded_fnoIndicesCompanyNameTruncate__EhKCe",fnoIndicesLoaderContainer:"FnoTopTraded_fnoIndicesLoaderContainer__OOnQR",fnoIndicesWarningToast:"FnoTopTraded_fnoIndicesWarningToast__zRioE",fnoIndicesRefreshUnderline:"FnoTopTraded_fnoIndicesRefreshUnderline__OU5tk",fnoIndicesWarningToastGap:"FnoTopTraded_fnoIndicesWarningToastGap__ENnhZ",fnoIndicesCandleChartErrorContainer:"FnoTopTraded_fnoIndicesCandleChartErrorContainer__7ATMe",fnoIndicesCandleChartErrorShimmer:"FnoTopTraded_fnoIndicesCandleChartErrorShimmer__wDlp9",tableContainer:"FnoTopTraded_tableContainer__dNyXW",paddingX4px:"FnoTopTraded_paddingX4px__vf_Xv"}},252412:(e,t,r)=>{"use strict";r.d(t,{dZ:()=>d.d,YG:()=>n.Y,yq:()=>s.y,S0:()=>o.S,jY:()=>l.j,$G:()=>i});var n=r(199016),a=r(407178);let i=e=>{let{code:t,yearHigh:r,yearLow:i}=e,[o,s]=(0,a.useState)(r),[l,d]=(0,a.useState)(i),{dayLowPrice:c,dayHighPrice:u}=(0,n.Y)(t);return(0,a.useEffect)(()=>{s(r),d(i)},[t,r,i]),(0,a.useEffect)(()=>{o<u&&s(u),0!==c&&(0===l||l>c)&&d(c)},[c,u]),{yearLowPrice:l,yearHighPrice:o}};var o=r(435534),s=r(768386),l=r(960221),d=r(189236)},265800:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});let n={ltp:0,close:0,dayChange:0,dayChangePerc:0,high:0,low:0,open:0,openInterest:0,prevOpenInterest:0}},322202:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/Z.cc13590c.svg",height:38,width:38,blurWidth:0,blurHeight:0}},340589:(e,t,r)=>{"use strict";r.d(t,{K7:()=>a,V4:()=>d,gh:()=>o});var n=r(270230),a=function(e){return e.BLOCK="BLOCK",e.NONE="NONE",e.WARN="WARN",e}({}),i=function(e){return e.LIMIT="LIMIT",e.MARKET="MARKET",e}(i||{}),o=function(e){return e.DISABLED="DISABLED",e.ENABLED="ENABLED",e.SQUARE_OFF="SQUARE_OFF",e}({}),s=function(e){return e.BANNED_CONTRACT="BANNED_CONTRACT",e.PCAS="PCAS",e.SPOS="SPOS",e.SURV="SURV",e.T2T="T2T",e}(s||{}),l=function(e){return e.CDSL="CDSL",e}(l||{});function d(e,t,r,a){let i="/v1/api/equity/order-card/exchange/".concat(e,"/contract-info?tradingSymbol=").concat(encodeURIComponent(t),"&isin=").concat(r);return n.SP.get(i,{signal:a,metadata:{urlTemplate:"/v1/api/equity/order-card/exchange/{exchange}/contract-info"}})}},340867:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/W.332e442b.svg",height:38,width:38,blurWidth:0,blurHeight:0}},355881:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>p,qC:()=>u,qs:()=>g});var n=r(986594);r(407178);var a=r(716969),i=r(7501),o=r(565326),s=r.n(o);let l=s()(()=>Promise.all([r.e(81470),r.e(460)]).then(r.bind(r,700460)),{loadableGenerated:{webpack:()=>[700460]},loading:()=>null}),d=s()(()=>Promise.all([r.e(16528),r.e(59931)]).then(r.bind(r,859931)),{loadableGenerated:{webpack:()=>[859931]},loading:()=>null}),c=s()(()=>r.e(76752).then(r.bind(r,376752)),{loadableGenerated:{webpack:()=>[376752]},loading:()=>null}),u=e=>async t=>{try{let r="req"in t?await (0,a.U)(e)(t):await e(t);if("notFound"in r)return t.res&&(t.res.statusCode=404),{_notFoundPage:!0};if("redirect"in r)return t.res&&(t.res.writeHead(301,{Location:r.redirect.destination}),t.res.end()),{_redirect:!0,_destination:r.redirect.destination};if("props"in r)return{...r.props};return{_error:"Nothing returned from getInitialProps"}}catch(e){return(0,i.Cp)(e),{_error:e.message}}};function p(e){let t=t=>"_notFoundPage"in t?(0,n.jsx)(l,{}):"_error"in t?(0,n.jsx)(d,{}):"_redirect"in t?(0,n.jsx)(c,{to:t._destination}):(0,n.jsx)(e,{...t});return t.getInitialProps=e.getInitialProps,t.disableRouteLoader=e.disableRouteLoader,t.isSEO=e.isSEO,t.headerConfig=e.headerConfig,t}function g(e){let t=t=>(0,n.jsx)(e,{...t});return t.disableRouteLoader=e.disableRouteLoader,t.getInitialProps=()=>new Promise(e=>e({})),t}},361621:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/U.99736ac9.svg",height:38,width:38,blurWidth:0,blurHeight:0}},385864:(e,t,r)=>{"use strict";r.d(t,{T:()=>f});var n=r(449204),a=r(407178),i=r(761711),o=r.n(i),s=r(947687);!function(e){function t(){var t=this||self;t.globalThis=t,delete e.prototype._T_}"object"!=typeof globalThis&&(this?t():(e.defineProperty(e.prototype,"_T_",{configurable:!0,get:t}),_T_))}(Object);var l=a.memo(function(e){let t=(0,s.h)(e);return a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},a.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),a.createElement("path",{d:"m7 10 5 5 5-5z"}))}),d=a.memo(function(e){let t=(0,s.h)(e);return a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},a.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),a.createElement("path",{d:"m7 14 5-5 5 5z"}))}),c=(0,a.forwardRef)(function(e,t){var r=e.children,n=e.className,i=e.onScroll,s=o()(n);return a.createElement("tbody",{ref:t,className:s,onScroll:i},r)}),u=function(e){var t=e.children,r=e.className,i=e.style,o=e.width,s=e.textAlign,l=e.colSpan,d=e.rowSpan,c=e.onClick;return a.createElement("td",{onClick:c,colSpan:void 0===l?1:l,rowSpan:void 0===d?1:d,style:(0,n._)((0,n._)({},i),{textAlign:s}),className:void 0===r?"tb10Td":r,width:o},t)},p=function(e){var t=e.children,r=e.className;return a.createElement("tfoot",{className:r},t)},g=function(e){var t=e.children,r=e.className;return a.createElement("thead",{className:void 0===r?"":r},t)},h=function(e){var t=e.children,r=e.className,i=void 0===r?"tb10Th tb10ThText contentSecondary":r,s=e.style,c=e.textAlign,u=void 0===c?"left":c,p=e.width,g=void 0===p?"16%":p,h=e.s
1ortConfig,m=(0,n.b)(e,["children","className","style","textAlign","width","sortConfig"]);if(h){var f=o()(i,{"tb10SelectHeaderCell contentPrimary":null==h?void 0:h.isSelected}),v=(null==h?void 0:h.iconClass)||"",y=o()("pos-rel tb10IconClass",v,{tb10HideIcon:null==h?void 0:h.hideIcon,contentAccent:null==h?void 0:h.isSelected});return a.createElement("th",(0,n._)({onClick:function(e){h&&h.onSortClick&&h.onSortClick(e,!(null==h?void 0:h.ascending))},style:(0,n._)((0,n._)({},s),{textAlign:u,cursor:"pointer",width:g}),className:f},m),t,(null==h?void 0:h.ascending)?a.createElement(d,{className:y}):a.createElement(l,{className:y}))}return f=o()(i),a.createElement("th",(0,n._)({style:(0,n._)((0,n._)({},s),{textAlign:u,width:g}),className:f},m),t)},m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,r=e.className,i=e.horzPadding,s=void 0===i?"5%":i,l=e.vertPadding,d=void 0===l?"16px":l,c=e.onClick,u=e.id,p=(0,n.b)(e,["children","className","horzPadding","vertPadding","onClick","id"]),g=o()(void 0===r?"":r),h=a.Children.map(t,function(e,r){return(0,a.isValidElement)(e)?1===a.Children.count(t)?(0,a.cloneElement)(e,{style:(0,n._)({paddingRight:s,paddingLeft:s,paddingTop:d,paddingBottom:d},e.props.style)}):0===r?(0,a.cloneElement)(e,{style:(0,n._)({paddingLeft:s,paddingTop:d,paddingBottom:d},e.props.style)}):r===a.Children.count(t)-1?(0,a.cloneElement)(e,{style:(0,n._)({paddingRight:s,paddingTop:d,paddingBottom:d},e.props.style)}):(0,a.cloneElement)(e,{style:(0,n._)({paddingTop:d,paddingBottom:d},e.props.style)}):e});return a.createElement("tr",(0,n._)({id:u,className:g,onClick:c},p),h)},t}(a.PureComponent),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,r=e.className,n=e.style,i=o()("tb10Table borderPrimary",void 0===r?"":r);return a.createElement("table",{style:void 0===n?{}:n,className:i},t)},t.Body=c,t.Cell=u,t.Footer=p,t.Header=g,t.HeaderCell=h,t.Row=m,t}(a.Component)},428268:(e,t,r)=>{"use strict";r.d(t,{a:()=>C});var n=r(407178),a=r(275063),i=r(689940),o=r(144080),s=r(91702),l=r(944591),d=r(132978),c=r(315017),u=r(454502),p=r(978055),g=r(20556);let h=0,m=null,f=()=>{let{hoistValue:e,isHoistLoading:t}=(0,i.Qt)([{hoistKey:o.H.FNO_NEW_MKT_TIMING_API_ENABLED,defaultValue:!1}]),r=e[o.H.FNO_NEW_MKT_TIMING_API_ENABLED],a=r?"15:40:00":"15:30:00",s=(0,l.A)(e=>e.updateMarketStatus),f=(0,l.A)(e=>e.updateIsMarketOpenBasedOnSocketTick),v=g.iC.use.debouncedIsTabVisible(),{isOnline:y}=(0,p.A)(),w=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(!t&&r&&v&&y)return w.current||(w.current=!0,s(void 0,a)),1==++h&&(u.A.connect(),m=u.A.subscribeToTopic("/topic/proto/market_info",e=>{(0,d.s)("GobblerMarketOpenTick",c.GobblerMarketOpenTick,{systemTimestamp:Date.now().toString(),messageData:JSON.stringify(e.message)}),f(a)})),()=>{0==--h&&m&&(m(),m=null)}},[r,a,t,v,y,s,f])};var v=r(238460);let y=(e,t,r,n,a)=>t&&e<new Date(t).getTime()?new Date(t).getTime()-e:r&&e<new Date(r).getTime()?new Date(r).getTime()-e:n&&e<new Date(n).getTime()?new Date(n).getTime()-e:a&&e<new Date(a).getTime()?new Date(a).getTime()-e:-1,w=0,T=null,_=null;function b(){null!==T&&(clearTimeout(T),T=null,_=null)}let O=()=>{let{hoistValue:e,isHoistLoading:t}=(0,i.Qt)([{hoistKey:o.H.FNO_NEW_MKT_TIMING_API_ENABLED,defaultValue:!1}]),r=e[o.H.FNO_NEW_MKT_TIMING_API_ENABLED],a=(0,l.A)(e=>e.isLoading),s=(0,l.A)(e=>e.hasMarketStatusFetched),d=(0,l.A)(e=>e.nextPreOpenStartDateTime),c=(0,l.A)(e=>e.nextPreOpenEndDateTime),u=(0,l.A)(e=>e.nextOpenDateTime),p=(0,l.A)(e=>e.nextCloseDateTime);(0,n.useEffect)(()=>{if(!t&&r&&s&&!a&&(0,v.N)())return function(e,t,r,n){let a=Date.now(),i=y(a,e,t,r,n);if(i<=0){b(),l.A.getState().updateMarketStatus(!0);return}let o=a+i;_!==o&&(b(),_=o,T=setTimeout(()=>{_=null,l.A.getState().updateMarketStatus(!0)},i))}(d,c,u,p),w++,()=>{0==--w&&b()}},[r,t,s,a,p,u,c,d])};var x=r(230854),E=r(759647),S=r(860662);let C=()=>{var e,t,r,d,c,u;let p=(0,a.wA)(),{hoistValue:g,isHoistLoading:h}
1=(0,i.Qt)([{hoistKey:o.H.FNO_NEW_MKT_TIMING_API_ENABLED,defaultValue:!1}]),m=!h&&g[o.H.FNO_NEW_MKT_TIMING_API_ENABLED],v=m?s.jd:s.Vu;f(),O(),(0,x.w)(!h&&!m);let y=(0,l.A)(e=>e.isMarketOpen),w=(0,l.A)(e=>e.isTradingDay),T=(0,l.A)(e=>e.nextOpenDateTime),_=(0,l.A)(e=>e.nextCloseDateTime),b=(0,l.A)(e=>e.nextPreOpenStartDateTime),C=(0,l.A)(e=>e.nextPreOpenEndDateTime),N=(0,l.A)(e=>e.todaysMarketConfig),D=(0,l.A)(e=>e.isLoading),I=(0,l.A)(e=>e.hasMarketStatusFetched),k=(0,l.A)(e=>e.updateMarketStatus),A=(0,a.d4)(S.FG),P=(0,a.d4)(S.hk),R=(0,a.d4)(S.$5),F=m&&I,M=(0,n.useCallback)(e=>{F?k(e,v):p((0,E.bX)(e))},[F,v,k,p]);return F?{isFnoPathActive:!0,isMarketOpen:y,isTradingDay:w,nextOpenDateTime:T,nextCloseDateTime:_,nextPreOpenStartDateTime:b,nextPreOpenEndDateTime:C,todaysMarketConfig:N,isLoading:D,refreshMarketStatus:M}:{isFnoPathActive:!1,isMarketOpen:null!=A&&A,isTradingDay:null!==(e=null==R?void 0:R.isTradingDay)&&void 0!==e&&e,nextOpenDateTime:null!==(t=null==R?void 0:R.nextOpenDateTime)&&void 0!==t?t:null,nextCloseDateTime:null!==(r=null==R?void 0:R.nextCloseDateTime)&&void 0!==r?r:null,nextPreOpenStartDateTime:null!==(d=null==R?void 0:R.nextPreOpenStartDateTime)&&void 0!==d?d:null,nextPreOpenEndDateTime:null!==(c=null==R?void 0:R.nextPreOpenEndDateTime)&&void 0!==c?c:null,todaysMarketConfig:null!=P?P:null,isLoading:null!==(u=null==R?void 0:R.isMarketStatusLoading)&&void 0!==u&&u,refreshMarketStatus:M}}},432750:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/6.2eebb026.svg",height:38,width:38,blurWidth:0,blurHeight:0}},435534:(e,t,r)=>{"use strict";r.d(t,{S:()=>l});var n=r(275063),a=r(447003),i=r(189236),o=r(265800),s=r(199016);let l=e=>{var t;let{code:r,livePrice:l}=e,d=(0,n.d4)((0,a.Cp)(r)),{ltp:c,close:u,open:p,dayChange:g,dayChangePerc:h,value:m,type:f,volume:v,lowPriceRange:y,highPriceRange:w,openInterest:T,tsInMillis:_,prevOpenInterest:b,lowTradeRange:O,highTradeRange:x}=null!==(t=null!=d?d:l)&&void 0!==t?t:o.G,{dayHighPrice:E,dayLowPrice:S}=(0,s.Y)(r,l),C=f===i.d.INDEX?null!=m?m:0:c,N=u===C?g:C-u,D=T-b;return{ltpValue:C,ltp:c,value:null!=m?m:0,open:p,close:u,dayChange:N,dayChangePerc:u===C?h:100*N/u,type:f,volume:v,highPriceRange:w,highTradeRange:x,lowPriceRange:y,lowTradeRange:O,openInterest:T,prevOpenInterest:b,tsInMillis:_,high:E,low:S,openInterestChange:D,openInterestChangePerc:0!==b?100*D/b:0}}},447003:(e,t,r)=>{"use strict";r.d(t,{oL:()=>d.oL,_8:()=>s,Kq:()=>l,St:()=>d.St,dt:()=>g.dt,F$:()=>d.F$,CV:()=>d.CV,zW:()=>d.zW,Wz:()=>d.Wz,Cp:()=>d.Cp,Y0:()=>d.Y0,ov:()=>d.ov,r$:()=>p,C$:()=>g.C$,FX:()=>g.FX,G9:()=>f,i:()=>T,YW:()=>_.YW,El:()=>_.El,FG:()=>g.FG,$5:()=>g.$5,A3:()=>v.A3,WL:()=>v.WL,oF:()=>v.oF,Lu:()=>g.Lu,e5:()=>g.e5,iD:()=>v.iD});var n=r(943922),a=r(3822),i=r(224880);let o=e=>{var t,r;return null!==(r=null==e?void 0:null===(t=e.stock)||void 0===t?void 0:t.exploreData)&&void 0!==r?r:i.D},s=()=>(0,a.Mz)([o],e=>{let{companyList:t}=e;return t}),l=()=>(0,a.Mz)([o],e=>{let{loader:t}=e;return t});var d=r(218652),c=r(531614);let u=e=>{var t,r;return null!==(r=null==e?void 0:null===(t=e.stock)||void 0===t?void 0:t.marketDepth)&&void 0!==r?r:c.z},p=()=>(0,a.Mz)([u,n.rn],(e,t)=>{var r;return null!==(r=null==e?void 0:e[t])&&void 0!==r?r:{}});var g=r(866626),h=r(694911);let m=e=>{var t,r;return null!==(r=null==e?void 0:null===(t=e.stock)||void 0===t?void 0:t.marketTrends)&&void 0!==r?r:h.i},f=e=>m(e);var v=r(188447),y=r(280845);let w=e=>{var t,r;return null!==(r=null==e?void 0:null===(t=e.stock)||void 0===t?void 0:t.sgb)&&void 0!==r?r:y.m},T=e=>(0,a.Mz)([w],t=>{try{if(e)return null==t?void 0:t[e];return t}catch(e){return null}});var _=r(795873);r(723293)},461367:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/S.da2542ae.svg",height:38,width:38,blurWidth:0,blurHeight:0}},475200:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/D.4d12e292.svg",height:38,width:38,blurWidth:0,blurHeight:0}},491024:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/T.26d5c6d8.svg",height:38,width:38,blurWidth:0,blurHeight:0}},512030:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(655969),a=r(867595);let i=(0,n.vt)(e=>({data:[],selectedUnderlying:void 0,loading:!0,error:!1,fetchData:async t=>{e({loading:!0,error:!1});try{let{derivatives:r}=(await (0,a.lM)(t)).data;e({data:r,loading:!1,error:!1})}catch(t){e({data:[],loading:!1,error:!0})}},setSelectedUnderlying:t=>{e({selectedUnderlying:t})},setData:t=>e({data:t}
1),setLoading:t=>e({loading:t}),setError:t=>e({error:t})}))},512419:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/7.f3579bcb.svg",height:38,width:38,blurWidth:0,blurHeight:0}},538194:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(986594),a=r(407178),i=r(26491),o=r(225760),s=r(790853),l=r.n(s);let d=a.memo(e=>{let{src:t,width:r,height:s,companyName:d,addClass:c="",addContainerClass:u="",isBorderRequired:p=!0,isBackgroundRequired:g=!0,onClick:h,useLazyLoad:m=!0}=e,{logo:f}=a.useMemo(()=>(0,o.D)(d),[d]),[v,y]=(0,a.useState)(null!=t?t:f.src);return(0,a.useEffect)(()=>{y(null!=t?t:f.src)},[t,f.src]),(0,n.jsx)("div",{style:{width:r,height:s},className:"".concat(l().logoContainer," ").concat(u," ").concat(g?"backgroundAlwaysLight":""," ").concat(p?"borderPrimary":""),children:(0,n.jsx)(i.A,{src:v,alt:null!=d?d:"Groww",width:p?r-2:r,height:p?s-2:s,onClick:h,priority:!m,className:"".concat(l().companyImage," absolute-center ").concat(c),onError:()=>y(f.src)})})})},552394:(e,t,r)=>{"use strict";r.d(t,{Dn:()=>h,Ed:()=>m,Rn:()=>f,VG:()=>g});var n=r(569443),a=r.n(n),i=r(547176),o=r(636317),s=r.n(o),l=r(204008),d=r.n(l),c=r(144080),u=r(774104);r(415716);var p=r(893953);function g(e){return Object.keys(e).sort()}function h(e){return e[e.length-1]}async function m(e,t){a().extend(d());let r=await (0,i.gZ)(c.H.STOCKS_SPECIAL_TRADING_SESSION,p.FV);if(!a()(e).startOf("day").isSame(a()(r.date).startOf("day")))return!1;let n=(0,u.LJ)(),[o,s,l]=t.split(":").map(Number),g=a()(e).hour(o).minute(s).second(l);if(!n)return!0;let{startTime:h,endTime:m,date:f}=r,v=a()(f).startOf("day").hour(h.hour).minute(h.minute),y=a()(f).startOf("day").hour(m.hour).minute(m.minute);if(n>=v.valueOf()&&n<=y.valueOf())return!1;let w=g.isBetween(v,y);return w&&(0,u.TG)(),w}function f(e,t,r,n){return function(){var i,o,l;let d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"marketOpenTime",c=r in e,u=null===(i=e[r])||void 0===i?void 0:i[d];a().extend(s());let p=a()(n,"HH:mm:ss").isBefore(a()(u,"HH:mm:ss")),g=c&&p?r:t.find(e=>a()(e).startOf("day").isAfter(a()(r).startOf("day")));return g?(o=g,l=e[g][d],a().tz("".concat(o," ").concat(l),"Asia/Kolkata").format("MMM DD YYYY HH:mm:ss [GMT]Z")):null}}},552631:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(407178),a=r(810059),i=n.memo(function(e){let t=(0,a.C)(e);return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},n.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),n.createElement("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}))})},554288:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/4.e7768c60.svg",height:38,width:38,blurWidth:0,blurHeight:0}},567037:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/M.740f3223.svg",height:38,width:38,blurWidth:0,blurHeight:0}},586040:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/L.298558ba.svg",height:38,width:38,blurWidth:0,blurHeight:0}},590207:(e,t,r)=>{"use strict";r.d(t,{AT:()=>p,Ah:()=>w,BT:()=>f,ER:()=>b,GR:()=>l,Hl:()=>g,Mo:()=>h,QA:()=>y,Ss:()=>_,TC:()=>u,YN:()=>T,Zg:()=>v,an:()=>d,jS:()=>m,wR:()=>c});var n=r(3822),a=r(126479);let i=e=>e.fno,o=(e,t)=>null==t?void 0:t.code,s=(e,t)=>t.growwContractId,l=e=>(0,n.Mz)([i],t=>{let{fnoExploreChartData:r}=t;return r[e]}),d=()=>(0,n.Mz)([i],e=>{let{safeExitData:t}=e;return t}),c=()=>(0,n.Mz)([i],e=>{let{safeExitCardData:t}=e;return t}),u=e=>(0,n.Mz)([i],t=>{let{safeExitCardData:r}=t;return r[e]}),p=()=>(0,n.Mz)([i,o],(e,t)=>{let{contractPrices:r}=e;return null==r?void 0:r[t]}),g=e=>t=>{var r;return null===(r=i(t).contractPrices)||void 0===r?void 0:r[e]},h=()=>(0,n.Mz)([i,s],(e,t)=>{let{contractPrices:r}=e;return r[t]}),m=()=>(0,n.Mz)([i],e=>{let{contractPrices:t}=e;return t}),f=e=>(0,n.Mz)([i],t=>{var r,n;let{basketOrderContractsData:a}=t;return null!==(n=null==a?void 0:null===(r=a[e])||void 0===r?void 0:r.selectedBasketContracts)&&void 0!==n?n:a.DEFAULT.selectedBasketContracts}),v=e=>(0,n.Mz)([i],t=>{var r,n;let{basketOrderContractsData:a}=t;return null===(n=null==a?void 0:null===(r=a[e])||void 0===r?void 0:r.isSameQtyChecked)||void 0===n||n}),y=e=>(0,n.Mz)([i],t=>{var r,n;let{basketOrderContractsData:a}=t;return null!==(n=null==a?void 0:null===(r=a[e])||void 0===r?void 0:r.combinedQtyCounterVal)&&void 0!==n?n:0}),w=e=>(0,n.Mz)([i],t=>{var r,n;let{basketOrderContractsData:a}=t;return null!==(n=null==a?void 0:null===(r=a[e])||void 0===r?void 0:r.contractsData)&&void 0!==n?n:a.DEFAULT.contractsData}),T=()=>(0,n.Mz)([i],e=>{let{lastUsedFnoQty:t}=e;return null!=t?t:{}}),_=e=>(0,n.Mz)([i],t=>{var r,n;let{contractExpiries:i}=t,o=null!==(n=null==i?void 0:null===(r=i[e])||void 0===r?void 0:r.nearestExpiry)&&void 0!==n?n:null;return(0,a.Yy)(o)}),b=e=>i(e).contractPrices},596966:(e,t,r)=>{"use strict";r.d(t,{FD:()=>o,vR:()=>a,zK:()=>i});var n=r(270230);let a=e=>n.SP.get("/v1/api/stocks_fo_data/v1/live-aggregations/explore/top-traded-underlyings",{params:{limit:e}}),i=e=>n.SP.get("/v1/api/commodity_fo/live-aggregations/explore/top-traded-underlyings",{params:{limit:e}}),o=e=>n.SP.get("/v1/api/commodity_fo/v2/live-aggregations/explore/top-traded-underlyings",{params:{limit:e}})},608423:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/C.5d1616a0.svg",height:38,width:38,blurWidth:0,blurHeight:0}},613171:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/G.ad468ea4.svg",height:38,width:38,blurWidth:0,blurHeight:0}},615160:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(407178),a=r(810059),i=n.memo(function(e){let t=(0,a.C)(e);return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},n.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),n.createElement("path",{d:"M7 11v2h10v-2zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}))})},619001:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(986594),a=r(407178),i=r(892751),o=r(615160),s=r(125757),l=r(234900);let d={follow:"ADD TO WATCHLIST",unfollow:"REMOVE FROM WATCHLIST"},c=()=>l.F?"bodySmall":"bodyBase";class u extends a.PureComponent{render(){let{className:e}=this.props;return(0,n.jsx)("div",{className:"bc785Wrapper ".concat(c()," contentPrimary valign-wrapper ").concat(e),children:this.getBreadcrumbUI()})}constructor(...e){super(...e),this.getBreadcrumbUI=()=>{let{content:e,masterText:t}=this.props;return(0,n.jsxs)("div",{className:"flex valign-wrapper contentSecondary",style:{gap:l.F?"8px":"12px",padding:l.F?"8px 0":"0"},children:[null==e?void 0:e.map(e=>(0,n.jsxs)(a.Fragment,{children:[(0,n.jsx)(i.A,{url:e.url,children:(0,n.jsx)("span",{className:"bc785BreadText cur-po contentSecondary",children:(null==e?void 0:e.text)||(null==e?void 0:e.name)})}),(0,n.jsx)("span",{className:"bc785BreadSpace",children:">"})]},e.url)),(0,n.jsx)("span",{className:"bc785BreadText bc785Last truncate contentSecondary",children:t})]})},this.getWatchlistUI=()=>{let{inWatchList:e}=this.props,t={className:"bc785ShareIcon",size:14};return(0,n.jsxs)("div",{className:"bc785ShareText contentSecondary ".concat(c()),onClick:this.onWatchlistClick,children:[e?(0,n.jsx)(o.A,{...t}):(0,n.jsx)(s.A,{...t}),e?d.unfollow:d.follow]})},this.onWatchlistClick=()=>{let{inWatchList:e,removeFromWatchList:t,addToWatchList:r}=this.props;e?null==t||t():null==r||r()}}}u.defaultProps={showShareBtn:!1,showWatchlistBtn:!1,hrefFb:"",hrefTw:"",hrefWh:"",showFbIcon:!0,fontSize:12},u.defaultProps={showShareBtn:!1,showWatchlistBtn:!1,hrefFb:"",hrefTw:"",hrefWh:"",showFbIcon:!0,fontSize:12};let p=u},622737:(e,t,r)=>{"use strict";r.d(t,{X:()=>u});var n=r(407178),a=r(275063),i=r(689940),o=r(144080),s=r(91702),l=r(944591),d=r(759647),c=r(860662);let u=()=>{var e,t,r,u,p,g;let h=(0,a.wA)(),{hoistValue:m,isHoistLoading:f}
1=(0,i.Qt)([{hoistKey:o.H.FNO_NEW_MKT_TIMING_API_ENABLED,defaultValue:!1}]),v=!f&&m[o.H.FNO_NEW_MKT_TIMING_API_ENABLED],y=v?s.jd:s.Vu,w=(0,l.A)(e=>e.isMarketOpen),T=(0,l.A)(e=>e.isTradingDay),_=(0,l.A)(e=>e.nextOpenDateTime),b=(0,l.A)(e=>e.nextCloseDateTime),O=(0,l.A)(e=>e.nextPreOpenStartDateTime),x=(0,l.A)(e=>e.nextPreOpenEndDateTime),E=(0,l.A)(e=>e.todaysMarketConfig),S=(0,l.A)(e=>e.isLoading),C=(0,l.A)(e=>e.hasMarketStatusFetched),N=(0,l.A)(e=>e.updateMarketStatus),D=(0,a.d4)(c.FG),I=(0,a.d4)(c.hk),k=(0,a.d4)(c.$5),A=v&&C,P=(0,n.useCallback)(e=>{!f&&(v?C&&e&&N(e,y):e&&h((0,d.bX)(e)))},[f,v,C,y,N,h]);return A?{isMarketOpen:w,isTradingDay:T,nextOpenDateTime:_,nextCloseDateTime:b,nextPreOpenStartDateTime:O,nextPreOpenEndDateTime:x,todaysMarketConfig:E,isLoading:S,refreshMarketStatus:P}:{isMarketOpen:null!=D&&D,isTradingDay:null!==(e=null==k?void 0:k.isTradingDay)&&void 0!==e&&e,nextOpenDateTime:null!==(t=null==k?void 0:k.nextOpenDateTime)&&void 0!==t?t:null,nextCloseDateTime:null!==(r=null==k?void 0:k.nextCloseDateTime)&&void 0!==r?r:null,nextPreOpenStartDateTime:null!==(u=null==k?void 0:k.nextPreOpenStartDateTime)&&void 0!==u?u:null,nextPreOpenEndDateTime:null!==(p=null==k?void 0:k.nextPreOpenEndDateTime)&&void 0!==p?p:null,todaysMarketConfig:null!=I?I:null,isLoading:null!==(g=null==k?void 0:k.isMarketStatusLoading)&&void 0!==g&&g,refreshMarketStatus:P}}},626939:(e,t,r)=>{"use strict";r.d(t,{EQ:()=>b,LZ:()=>E,RA:()=>O,Y4:()=>_});var n=r(569443),a=r.n(n),i=r(636317),o=r.n(i),s=r(780355),l=r.n(s),d=r(188570),c=r.n(d),u=r(204008),p=r.n(u),g=r(471165),h=r(238460),m=r(270230),f=r(875598),v=r(681609),y=r(415716),w=r(635662),T=r(552394);async function _(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{let t=await (0,v.getServerTimeAndOffset)(e),{isClientTimeInSync:r,timeOffsetMs:n}=null==t?void 0:t.data;return r?0:n}catch(e){return console.error("Error in getClientTimeOffset",e),0}}async function b(){let{ISTDate:e,ISTTime:t}=(0,g.l)(await _());return{currentDate:e,currentTime:t}}async function O(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{let t;e&&(t={headers:{"Cache-Control":"no-cache"}});let{data:r,status:n}=await m.vO.get("/v1/api/stocks_data/v1/market/market_timing",t);if(200===n&&r)return r;return null}catch(e){return console.error("Error in getStockMarketCalendar",e),Promise.reject(e)}}async function x(e,t,r,n){var i,o;if(a()(e).startOf("day").isAfter(a()((0,T.Dn)(n)).startOf("day"))){let e=await O(!0);return null!==(i=null==e?void 0:e.dateMarketTimeMap)&&void 0!==i?i:r}if(!await (0,T.Ed)(e,t))return r;let s=await O(!0);return null!==(o=null==s?void 0:s.dateMarketTimeMap)&&void 0!==o?o:r}async function E(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{var t;if(!(0,h.N)())return console.error(f.kL.AUTHORIZATION_ERROR),{};let[r,n]=await Promise.all([O(e),b()]);if(!r)return console.error("Error in fetching market calendar"),{};let i=null==r?void 0:r.dateMarketTimeMap,{currentDate:s,currentTime:l}=n,d=(0,T.VG)(i),c=i;e||(c=await x(s,l,i,d));let u=s in c,{marketOpenTime:p=y.Dt.marketOpenTime,marketCloseTime:g=y.Dt.marketCloseTime,preOpenStartTime:m=y.Dt.preOpenStartTime,preOpenEndTime:v=y.Dt.preOpenEndTime}=null!==(t=c[s])&&void 0!==t?t:{};a().extend(o());let _=a()(l,"HH:mm:ss"),E=a()(p,"HH:mm:ss"),S=a()(g,"HH:mm:ss"),C=_.isAfter(E)||_.isSame(E),N=_.isBefore(S),D=(0,T.Rn)(c,d,s,l),I={marketOpenTime:p,marketCloseTime:g,marketPreOpenStartTime:m,marketPreOpenEndTime:v,preMarketOpen:_.isBetween(a()(m,"HH:mm:ss"),a()(v,"HH:mm:ss"),"second","[)"),marketTimeDifferenceInSeconds:(0,w.H)(g,p),createdAt:s};return{isStockMarketOpen:u&&C&&N,isTradingDay:u,nextOpenDateTime:D("marketOpenTime"),nextPreOpenStartDateTime:D("preOpenStartTime"),nextPreOpenEndDateTime:D("preOpenEndTime"),nextCloseDateTime:D("marketCloseTime"),todaysMarketConfig:I}}catch(e){return console.error("Error in Market Calendar Helper",e),Promise.reject(e)}}a().extend(c()),a().extend(l()),a().extend(p())},639360:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(407178),a=r(422346),i=n.memo(function(e){let t=(0,a.C)(e);return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},n.createElement("g",{clipPath:"url(#clip0_1_216)"},n.createElement("path",{fill:"currentColor",d:"M12 14.95q-.2 0-.375-.063a.9.9 0 0 1-.325-.212l-4.6-4.6a.95.95 0 0 1-.275-.7q0-.425.275-.7a.95.95 0 0 1 .7-.275q.425 0 .7.27
15l3.9 3.9 3.9-3.9a.95.95 0 0 1 .7-.275q.425 0 .7.275a.95.95 0 0 1 .275.7.95.95 0 0 1-.275.7l-4.6 4.6q-.15.15-.325.212a1.1 1.1 0 0 1-.375.063"})),n.createElement("defs",null,n.createElement("clipPath",{id:"clip0_1_216"},n.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"}))))})},647700:(e,t,r)=>{"use strict";r.d(t,{Bl:()=>N,D1:()=>A,FO:()=>P,L:()=>M,Ns:()=>I,Ob:()=>j,YW:()=>O,eP:()=>_,j1:()=>G,kt:()=>L,pc:()=>B,q6:()=>U,qg:()=>C,qq:()=>D,rd:()=>V,tu:()=>F,vK:()=>b,x8:()=>W,yx:()=>S,zK:()=>H});var n=r(547176),a=r(951402),i=r(744620),o=r(984991),s=r(238460),l=r(366929),d=r(299168),c=r(144080),u=r(454502),p=r(867595),g=r(45973),h=r(91702),m=r(109763),f=r(134714),v=r(279342),y=r(481966),w=r(119498);r(590207);let{NSE:T}=v.W,_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return n=>{(0,l.C)(n,()=>(0,p.YJ)(e,t),y.zU,t=>{(function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v.s$.FO_PRICES;k(e,t,n)})(n,e,!1,v.s$.FO_PRICES_VOLUME),n({type:(0,l.V)(y.zU).success,payload:{symbol:e,data:{...t.data,bidQty:t.data.totalBuyQty,offerQty:t.data.totalSellQty}}}),r()},{symbol:e},()=>{r()})}},b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return n=>{(0,l.C)(n,()=>(0,p.YJ)(e,t),y.zU,t=>{n({type:(0,l.V)(y.zU).success,payload:{symbol:e,data:{...t.data,bidQty:t.data.totalBuyQty,offerQty:t.data.totalSellQty}}}),r(i.l8.SUCCESS)},{symbol:e},()=>{r(i.l8.FAILURE)})}},O=e=>t=>t({type:y.Le,payload:e}),x=async e=>{try{let t=await (0,p.Hn)(g.I0.LOSS);e(O(t.data))}catch(e){console.error(e)}},E=async e=>{try{let t=await (0,p.R8)(g.I0.LOSS);e(O(t.data))}catch(e){console.error(e)}},S=()=>async e=>{let t=await (0,n.gZ)(c.H.SAFE_EXIT,!0);if((await (0,n.gZ)(c.H.FNO_SAFE_EXIT_V2,h.fQ)).isEnabled)await (0,m.x8)()?E(e):e(O(h.wf));else{let r=await (0,m.pK)();t&&r?x(e):e(O(h.wf))}},C=e=>t=>t({type:y.m7,payload:e}),N=()=>e=>e(C(w.$r));function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.s$.FO_PRICES,r=arguments.length>2?arguments[2]:void 0;return n=>{r.current=k(n,[e],t)}}let I=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.s$.FO_PRICES,r=arguments.length>2?arguments[2]:void 0;return n=>{r?r.current=k(n,e,t):k(n,e,t)}},k=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.s$.FO_PRICES;return u.A.subscribeToStockSymbol(t,r,(t,r)=>{if(t&&t.livePoint){let n=Date.now(),a=performance.now(),i={symbol:r,data:{tsInMillis:t.livePoint.tsInMillis,receivedAt:n,receivedAtPerfMark:a}},o=!0;t.livePoint.value&&(i.data.value=t.livePoint.value,o=!1),t.livePoint.ltp&&(i.data.ltp=t.livePoint.ltp,o=!1),t.livePoint.bidQty&&(i.data.bidQty=t.livePoint.bidQty,o=!1),t.livePoint.offerQty&&(i.data.offerQty=t.livePoint.offerQty,o=!1),t.livePoint.avgPrice&&(i.data.avgPrice=t.livePoint.avgPrice,o=!1),t.livePoint.volume&&(i.data.volume=t.livePoint.volume,o=!1),t.livePoint.openInterest&&(i.data.openInterest=t.livePoint.openInterest,o=!1),t.livePoint.highTradeRange&&(i.data.highTradeRange=t.livePoint.highTradeRange,o=!1),t.livePoint.lowTradeRange&&(i.data.lowTradeRange=t.livePoint.lowTradeRange,o=!1),o||e({type:(0,l.V)(y.RY).success,payload:i})}})},A=e=>t=>{t({type:y.q,payload:e})},P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;return r=>{!(e.length<=0)&&(0,l.C)(r,()=>(0,p.jE)(e,t),y.ow,e=>{let{pointsMap:t}=e.data;r({type:(0,l.V)(y.ow).success,payload:{data:t}})})}},R=e=>e.filter(e=>"string"==typeof e&&e.trim().length>0),F=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.s$.FO_PRICES,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{},a=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=arguments.length>5?arguments[5]:void 0;return(s,d)=>{let c=Array.isArray(e)?R(e):[];if(c.length<=0)return n(i.l8.SUCCESS),null;(0,l.C)(s,()=>(0,p.EW)(c,t,o),y.n2,e=>{s({type:(0,l.V)(y.n2).success,payload:e.data}),a&&"desktop"!==i.Eg.MSITE&&k(s,c,r),n(i.l8.SUCCESS)},{},e=>{n(i.l8.FAILURE)})}},M=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return async t=>{let r=await (0,n.gZ)(o.H.TRADING_CONTROLS,!0);if(!((0,s.N)()&&(0,d.D)()&&r))return;let i=null;if(!e&&(i=(0,f.VZ)(),!(0,a.a)(i))){t({type:(0,l.V)(y.CP).success,payload:i});return}(0,l.C)(t,()=>(0,p.M5)(),y.CP,e=>{let r={data:e.data};(0,f.pH)(r),t({type:(0,l.V)(y.CP).success,payload:e})},{},()=>{(0,f.Qn)()})}},j=(e,t)=>(r,n)=>{r({type:y.GJ,payload:{underlyingId:e,data:t}})},L=(e,t)=>(r,n)=>{r({type:y.rK,payload:{underlyingId:e,data:t}})},H=(e,t)=>(r,n)=>{r({type:y.UI,payload:{underlyingId:e,contractId:t}})},W=(e,t,r,n)=>(a,i)=>{a({type:y.LH,payload:{key:e,numberOfLots:t,growwContractId:r,updatedAt:n}})},B=(e,t)=>r=>{r({type:y.kW,payload:{underlyingId:e,isSameQtyChecked:t}})},U=(e,t)=>r=>{r({type:y.HM,payload:{underlyingId:e,combinedQtyCounterVal:t}})},G=(e,t)=>r=>{r({type:y.sZ,payload:{underlyingId:e,data:t}})},V=e=>async t=>{try{let r=await (0,n.gZ)(c.H.FNO_CONTRACT_EXPIRY_TAG,!0);if(!((0,d.D)()&&r))return;let a=await (0,p.DZ)(e),i={};
1a.data.nearestExpiryDtoList.forEach(e=>{i[e.symbol]=e}),t({type:y.AW,payload:{...i}})}catch(e){console.error(e)}}},654307:e=>{e.exports={name:"companyName_name__EYFI0"}},658722:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/2.d3a107ff.svg",height:38,width:38,blurWidth:0,blurHeight:0}},665782:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/N.73c22fb6.svg",height:38,width:38,blurWidth:0,blurHeight:0}},686709:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>e_});var n=r(986594),a=r(407178),i=r(355881),o=r(414889),s=r(619001),l=r(454532),d=r(837509),c=r(758844),u=r(454502),p=r(681406),g=r(781983),h=r(596966),m=r(428268),f=r(275063),v=r(385864),y=r(951402),w=r(744620),T=r(20556),_=r(91702),b=r(622737),O=r(91745),x=r(279342),E=r(818261),S=r(910913),C=r(987614);let N=()=>(0,n.jsx)(v.T.Header,{children:(0,n.jsx)(v.T.Row,{children:S.V.map(e=>(0,n.jsx)(v.T.HeaderCell,{textAlign:e.textAlign,style:e.style,width:e.width,className:"contentSecondary bodyBaseHeavy",children:e.displayName},e.id))})});var D=r(512030),I=r(840633),k=r(887981),A=r(699998),P=r(892751),R=r(132978),F=r(552631),M=r(455398),j=r(538194),L=r(583010),H=r(675669),W=r(705016),B=r(85676),U=r(101892),G=r(207498),V=r(752673),z=r(109763),q=r(879631),K=r(852106),Y=r(188955),X=r(240606),Q=r.n(X);let{itemRow:$,itemRowIconsContainer:Z,itemRowIcon:J,itemRowVolume:ee}=Q(),et=e=>{var t;let{underlying:r,useInView:i=!1,handleViewChange:o,index:s}=e,l=(0,D.A)(e=>e.selectedUnderlying),d=(0,D.A)(e=>e.setSelectedUnderlying),c=(0,D.A)(e=>e.fetchData),u=(0,E.A)(e=>e.loading),p=r.underlyingSymbolDetails.underlyingType===_.Sy.INDICES,g="";g=p?(0,L.ngW)(r.underlyingSymbolDetails.searchId):(0,L.M8c)(r.underlyingSymbolDetails.searchId);let h=(null==l?void 0:null===(t=l.underlyingSymbolDetails)||void 0===t?void 0:t.symbol)===r.underlyingSymbolDetails.symbol,m=(0,Y.yq)({code:r.underlyingSymbolDetails.symbol,livePrice:{...r.livePriceDetails,ltp:p?0:r.livePriceDetails.ltp,value:p?r.livePriceDetails.ltp:0,type:p?Y.dZ.INDEX:Y.dZ.STOCK,close:r.livePriceDetails.ltp}}),f=(0,a.useCallback)((e,t)=>{t.stopPropagation(),(0,R.s)(V.A.FNO,e,(0,z.Ap)({system_timestamp:Date.now().toString(),section:_.Jd.TOP_TRADED,search_id:r.underlyingSymbolDetails.searchId,isin:r.underlyingSymbolDetails.symbol,rank_in_list:s+1}))},[r,s]),y=async()=>{h||(d(r),await c(r.underlyingSymbolDetails.searchId))},w=e=>{p&&M.NavigationInstrumentation.startNavigation({featureTag:W.Z4}),f(G.A.TopTradedUnderlyingClick,e)},T=e=>{M.NavigationInstrumentation.startNavigation({featureTag:W.Mv}),f(G.A.TopTradedOptionChainClick,e)},b=e=>{f(G.A.TopTradedTerminalClick,e)};return(0,n.jsxs)(v.T.Row,{className:"".concat($," ").concat(u?"blurEffect1":""," ").concat(h&&i?"backgroundSecondary":"backgroundPrimary"," cur-po"),onClick:y,children:[(0,n.jsx)(v.T.Cell,{className:"valign-wrapper",style:{gap:16},children:i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"absolute-center",children:(0,n.jsx)(j.default,{src:r.underlyingSymbolDetails.logoUrl,companyName:r.underlyingSymbolDetails.companyShortName,width:40,height:40})}),(0,n.jsx)(U.p,{rootMargin:"0px 0px",onViewChange:e=>null==o?void 0:o(e,r),children:(0,n.jsx)(P.A,{onClick:w,url:g,children:(0,n.jsx)(B.A,{text:r.underlyingSymbolDetails.companyShortName,truncate:!0,maxWidth:350,textClass:"bodyBase contentPrimary"})})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"absolute-center",children:(0,n.jsx)(j.default,{src:r.underlyingSymbolDetails.logoUrl,companyName:r.underlyingSymbolDetails.companyShortName,width:40,height:40})}),(0,n.jsx)(P.A,{onClick:w,url:(0,L.M8c)(r.underlyingSymbolDetails.searchId),children:(0,n.jsx)(B.A,{text:r.underlyingSymbolDetails.companyShortName,truncate:!0,maxWidth:350,textClass:"bodyBase contentPrimary"})})]})}),(0,n.jsx)(v.T.Cell,{className:"bodyBaseHeavy contentPrimary",textAlign:"right",children:p?m.value:m.ltp}),(0,n.jsx)(v.T.Cell,{textAlign:"right",className:"bodyBaseHeavy contentPrimary",children:(()=>{let e=r.underlyingSymbolDetails.underlyingType===_.Sy.INDICES?x.zv.FNO:x.zv.STOCKS,t=r.underlyingSymbolDetails.searchId;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"".concat(ee," ").concat(m.dayChangeColorClass),children:"".concat(m.dayChange," (").concat(m.dayChangePerc,")")}),(0,n.jsxs)("div",{className:Z,children:[(0,n.jsx)(P.A,{isCsr:!1,target:"_blank",url:(0,K.bY)(e,t,""),onClick:b,className:"".concat(J," borderPrimary backgroundPrimary valign-wrapper contentSecondary"),children:(0,n.jsx)(q.l,{})}),(0,n.jsx)(P.A,{url:(0,H.t2)(t),onClick:T,className:"".concat(J," borderPrimary backgroundPrimary valign-wrapper contentSecondary"),children:(0,n.jsx)(F.A,{})})]})]})})()})]},r.underlyingSymbolDetails.symbol)},er=e=>{var t;let{listingPage:r=!1,handleViewChange:i,initData:o}=e,s=(0,E.A)(e=>e.data),l=(0,E.A)(e=>e.loading),d=(0,E.A)(e=>e.error),c=(0,E.A)(e=>e.fetchData),u=(0,D.A)(e=>e.data),p=(0,D.A)(e=>e.setData),g=(0,D.A)(e=>e.selectedUnderlying),h=(0,D.A)(e=>e.setSelectedUnderlying),m=(0,D.A)(e=>e.fetchData),f=(0,D.A)(e=>e.setLoading),w=(0,D.A)(e=>e.setError),T=(0,y.a)(s.topTradedUnderlyings)?o:s;(0,a.useEffect)(()=>
1{if(r&&!l&&(0,y.a)(g)){if((0,y.a)(null==T?void 0:T.topTradedUnderlyings)){w(!1),f(!1);return}if(d&&!T.topTradedUnderlyings.length){f(!1),w(!0);return}if((0,y.a)(u)||(0,y.a)(g)){var e,t,n;h(T.topTradedUnderlyings[0]),m(null!==(n=null===(t=T.topTradedUnderlyings[0])||void 0===t?void 0:null===(e=t.underlyingSymbolDetails)||void 0===e?void 0:e.searchId)&&void 0!==n?n:"");return}f(!1)}},[l,d,u,r,g,T]);let _=!!(null==T?void 0:T.topTradedUnderlyings.length),b=!l&&d&&!(null==T?void 0:null===(t=T.topTradedUnderlyings)||void 0===t?void 0:t.length),O=l&&!_,x=!l&&!d&&!(null==T?void 0:T.topTradedUnderlyings.length),C=(!l||_)&&!!(null==T?void 0:T.topTradedUnderlyings.length),N=()=>{p([]),c(S.l)};return(0,n.jsxs)(v.T.Body,{children:[b&&(0,n.jsx)(k.A,{listingPage:r,handleRefresh:N}),O&&(0,I.CX)(S.l),x&&(0,n.jsx)(A.A,{listingPage:r,handleRefresh:N}),C&&T.topTradedUnderlyings.map((e,t)=>(0,n.jsx)(et,{index:t,openProductPageOnRowClick:!r,underlying:e,useInView:r,handleViewChange:i},e.underlyingSymbolDetails.symbol))]})},{tableContainer:en}=Q(),ea=e=>{let{initData:t,initError:r}=e,i=(0,E.A)(e=>e.data),o=(0,E.A)(e=>e.setData),s=(0,E.A)(e=>e.setLoading),l=(0,E.A)(e=>e.setError),d=(0,E.A)(e=>e.fetchData),c=T.iC.use.isTabVisible(),u=(0,f.wA)(),p=(0,a.useRef)(()=>{}),g=(0,a.useRef)(()=>{}),h=(0,a.useRef)(new Set),m=(0,a.useRef)(!0),[D,I]=(0,a.useState)(!1),k=D&&!!i.topTradedUnderlyings.length,{isMarketOpen:A}=(0,b.X)(),P=(0,a.useCallback)(e=>{var t,r;if(null===(t=p.current)||void 0===t||t.call(p),null===(r=g.current)||void 0===r||r.call(g),e===w.l8.SUCCESS){I(!1);let e=M(Array.from(h.current));u((0,O.Re)([...e.nseStockList,...e.bseStockList],x.s$.PRICES,p)),u((0,O.gO)([...e.nseIndexList,...e.bseIndexList],g))}else I(!0)},[]),R=(0,a.useCallback)(e=>{u((0,O.xm)(e,P))},[P]),F=(0,a.useCallback)(()=>{let e=M(Array.from(h.current));I(!1),R(e)},[R]);(0,a.useEffect)(()=>{c&&!m.current&&(s(!0),l(!1),d(S.l)),m.current=!1},[c,A]),(0,a.useEffect)(()=>{(0,y.a)(t.topTradedUnderlyings)||o(t),l(r),s(!1)},[t,r]),(0,a.useEffect)(()=>{let e=M(i.topTradedUnderlyings.map(e=>e.underlyingSymbolDetails));I(!1),R(e)},[R,i.topTradedUnderlyings]);let M=e=>{let t={nseStockList:[],bseStockList:[],nseIndexList:[],bseIndexList:[]};return e.forEach(e=>{let{symbol:r,exchange:n,underlyingType:a}=e;a===_.Sy.STOCKS?n===x.W.NSE?t.nseStockList.push(r):n===x.W.BSE&&t.bseStockList.push(r):a===_.Sy.INDICES&&(n===x.W.NSE?t.nseIndexList.push(r):n===x.W.BSE&&t.bseIndexList.push(r))}),t},j=(0,a.useCallback)((0,y.j)(()=>{R(M(Array.from(h.current)))},200),[]),L=(0,a.useCallback)((e,t)=>{e?h.current.add(t.underlyingSymbolDetails):h.current.delete(t.underlyingSymbolDetails),j()},[j]);return(0,n.jsxs)("div",{style:{marginTop:-8},children:[(0,n.jsx)("h1",{className:"headingLarge",children:"F&O Top Traded"}),k&&(0,n.jsx)(C.A,{handleRefresh:F}),(0,n.jsx)("div",{className:"".concat(en," pos-rel borderPrimary"),children:(0,n.jsxs)(v.T,{style:{border:"none"},children:[(0,n.jsx)(N,{}),(0,n.jsx)(er,{initData:t,listingPage:!0,handleViewChange:L})]})})]})};var ei=r(207504),eo=r(82804),es=r(329036),el=r(578124),ed=r(855046),ec=r(709252),eu=r(647700),ep=r(19638),eg=r(173204);let{topOptionRow:eh,topOptionRowName:em}=Q(),ef=e=>{var t,r;let{derivative:a,index:i}=e,o=(0,D.A)(e=>e.selectedUnderlying),s=(0,D.A)(e=>e.loading),l=(0,Y.yq)({code:a.contract.contract,livePrice:a.livePrice});return(0,n.jsxs)(P.A,{url:(0,H.GE)(a.contract.searchId,a.contract.contract),onClick:()=>{var e,t,r,n;let s={system_timestamp:Date.now().toString(),section:_.Jd.TOP_TRADED,contract_id:a.contract.growwContractId,search_id:null!==(r=null===(e=o.underlyingSymbolDetails)||void 0===e?void 0:e.searchId)&&void 0!==r?r:"",isin:null!==(n=null===(t=o.underlyingSymbolDetails)||void 0===t?void 0:t.symbol)&&void 0!==n?n:"",contract_rank:i+1},l=(0,z.Ap)(s);M.NavigationInstrumentation.startNavigation({featureTag:W.lL}),(0,R.s)(V.A.FNO,G.A.TopTradedOptionsClick,l)},className:"width100 borderPrimary contentPrimary bodyBase vspace-between flex valign-wrapper cur-po ".concat(eh," ").concat(s?"blurEffect1":""),children:[(0,n.jsxs)("div",{className:"".concat(em," contentPrimary"),children:[(0,n.jsx)("span",{className:"bodyBase",children:null===(t=a.contract)||void 0===t?void 0:t.contractDisplayName}),(0,n.jsxs)("span",{className:"bodyBaseHeavy",children:[" ",null===(r=a.contract)||void 0===r?void 0:r.optionType]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"right-align bodyBaseHeavy contentPrimary",children:l.ltpValue}),(0,n.jsx)("div",{children:(0,n.jsx)("span",{className:"bodySmallHeavy ".concat(l.dayChangeColorClass),children:"".concat(l.dayChange," (").concat(l.dayChangePerc,")")})})]})]},a.contract.searchId)},{topOptionsContainer:ev,topOptionsHeading:ey}=Q(),ew=()=>{var e,t;let r=(0,f.wA)(),i=(0,D.A)(e=>e.data),o=(0,D.A)(e=>e.selectedUnderlying),s=(0,D.A)(e=>e.error),l=(0,D.A)(e=>e.loading),d=(0,E.A)(e=>e.error),c=(0,E.A)(e=>e.data),u=(0,E.A)(e=>e.loading),p=(null==c?void 0:null===(e=c.topTradedUnderlyings)||void 0===e?void 0:e.length)===0,g=d&&p,h=!!(null==i?void 0:i.length),m=(0,D.A)(e=>e.fetchData),v=(0,a.useRef)(()=>{}),y=(0,a.useMemo)(()=>null==i?void 0:i.map(e=>e.contract.contract),[i]),T=(0,a.useCallback)(e=>{var t;null===(t=v.current)||void 0===t||t.call(v),e===w.l8.SUCCESS&&r((0,eu.Ns)(y,x.s$.FO_PRICES,v))},[y]);(0,a.useEffect)(()=>{r((0,eu.tu)(null!=y?y:[],x.H3.NSE,x.s$.FO_PRICES_VOLUME,T,!1))},[y,T]),(0,a.useEffect)(()=>()=>{var e;null===(e=v.current)||void 0===e||e.call(v)},[]);let _=!(null==i?void 0:i.length)&&!(l||u)&&!s,b="Top ".concat(g||_?"":null!==(t=null==o?void 0:o.underlyingSymbolDetails.companyShortName)&&void 0!==t?t:""," Options");return _||g?(0,n.jsxs)("div",{className:"borderPrimary ".concat(ev),children:[(0,n.jsx)("div",{className:"".concat(ey," contentPrimary bodyXLargeHeavy"),children:b}),(0,n.jsxs)("div",{className:"valign-wrapper flex-column",style:{padding:24,gap:16},children:[(0,n.jsx)(ed.A,{src:ep.A,srcDark:eg.A,alt:"Empty Market Trend"}),(0,n.jsx)("div",{children:"There are no contracts available right now"}),!((d||p)&&!u)&&(0,n.jsx)(el.B,{buttonText:"Refresh",variant:el.V.SECONDARY,isAccent:!0,onClick:()=>{var e;m(null!==(e=o.underlyingSymbolDetails.searchId)&&void 0!==e?e:"")}})]})]}):!s||p||l?(0,n.jsxs)("div",{className:"borderPrimary ".concat(ev),children:[(l||u)&&!h?(0,n.jsx)("div",{className:"".concat(ey," contentPrimary bodyXLargeHeavy"),children:(0,n.jsx)(ei.Ay,{width:"70%",height:"16",speed:2,backgroundColor:"var(--background-tertiary)",foregroundColor:"var(--background-secondary)",children:(0,n.jsx)("rect",{x:"0",y:"0",rx:"4",ry:"4",width:"100%",height:"16px"})})}):(0,n.jsx)("div",{className:"".concat(ey," ").concat(l?"blurEffect1":""," contentPrimary bodyXLargeHeavy"),children:b}),(0,n.jsx)("div",{children:(l||u)&&!h?(0,I.TP)(10):null==i?void 0:i.map((e,t)=>(0,n.jsx)(ef,{index:t,derivative:e},e.contract.contract))})]}):(0,n.jsxs)("div",{className:"borderPrimary ".concat(ev),children:[(0,n.jsx)("div",{className:"".concat(ey," contentPrimary bodyXLargeHeavy"),children:b}),(0,n.jsxs)("div",{className:"valign-wrapper flex-column",style:{padding:24,gap:16},children:[(0,n.jsx)(ec.A,{darkNode:(0,n.jsx)(eo.A,{custom:!0,size:158}),lightNode:(0,n.jsx)(es.A,{custom:!0,size:158})}),(0,n.jsx)("div",{children:"Unable to fetch top contracts right now"}),!g&&(0,n.jsx)(el.B,{buttonText:"Refresh",variant:el.V.SECONDARY,isAccent:!0,onClick:()=>{var e;m(null!==(e=o.underlyingSymbolDetails.searchId)&&void 0!==e?e:"")}})]})]})},eT=e=>{(0,d.YP)(c.S.FNO,c.b.FNO_TOP_TRADED_LISTING),(0,m.a)();let t=[{url:l.bw.STOCK,text:"Home"},{url:l.bw.FNO,text:"Futures and Options"}];return(0,a.useEffect)(()=>(u.A.connect(),()=>{u.A.disconnect()}),[]),(0,n.jsxs)(n.Fragment,{children:[(0,o.X0)(g.ip,"https://groww.in"),(0,n.jsxs)(p.A,{marginTop:"24px",breadcrumbsContent:(0,n.jsx)(s.A,{content:t,masterText:"Top Traded"}),children:[(0,n.jsx)(p.A.Content,{children:(0,n.jsx)(ea,{...e})}),(0,n.jsx)(p.A.Action,{children:(0,n.jsx)(ew,{})})]})]})};eT.getInitialProps=(0,i.qC)(async()=>{try{return{props:{initData:{topTradedUnderlyings:(await (0,h.vR)(S.l)).data.topTradedUnderlyings},initError:!1}}}catch(e){return{props:{initData:{topTradedUnderlyings:[]},initError:!0}}}});let e_=eT},690856:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={LOADING:"LOADING",FAILED:"FAILED",EMPTY:"EMPTY",CONGRATS:"CONGRATS",NOT_FOUND:"NOT_FOUND",ERROR:"ERROR"}},691964:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/H.1d375f17.svg",height:38,width:38,blurWidth:0,blurHeight:0}},699998:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(986594),a=r(578124),i=r(385864),o=r(855046),s=r(19638),l=r(173204);let d=e=>{let{handleRefresh:t,listingPage:r=!1}=e;return r?(0,n.jsx)(i.T.Row,{children:(0,n.jsx)(i.T.Cell,{style:{padding:0},colSpan:4,rowSpan:6,children:(0,n.jsxs)("div",{className:"absolute-center flex-column",style:{height:"calc(100vh - 324px)",gap:16},children:[(0,n.jsx)(o.A,{src:s.A,srcDark:l.A,alt:"Empty Market Trend"}),(0,n.jsx)("div",{className:"contentPrimary bodyBaseHeavy center-align",style:{marginTop:8},children:"There is no top traded data available right now"}),(0,n.jsx)(a.B,{variant:a.V.SECONDARY,buttonText:"Refresh",isAccent:!0,onClick:()=>t()})]})})}):(0,n.jsxs)("div",{className:"absolute-center flex-column",style:{height:398,gap:16},children:[(0,n.jsx)(o.A,{src:s.A,srcDark:l.A,alt:"Empty Market Trend"}),(0,n.jsx)("div",{className:"contentPrimary bodyBaseHeavy center-align",style:{marginTop:8},children:"There is no top traded data available right now"}),(0,n.jsx)(a.B,{variant:a.V.SECONDARY,buttonText:"Refresh",isAccent:!0,onClick:()=>t()})]})}},705016:(e,t,r)=>{"use strict";r.d(t,{A7:()=>d,Du:()=>ea,Eg:()=>z,Ek:()=>O,Fz:()=>N,GN:()=>f,H_:()=>H,Hl:()=>M,Ku:()=>x,Mg:()=>Y,Mv:()=>u,P1:()=>V,Qh:()=>et,R3:()=>X,Sl:()=>Q,V4:()=>o,VV:()=>P,Vf:()=>K,Vh:()=>B,Vk:()=>A,W6:()=>y,Xz:()=>G,Y0:()=>W,Z4:()=>c,_4:()=>q,_K:()=>er,a9:()=>J,aS:()=>Z,aj:()=>E,av:()=>h,c0:()=>I,dD:()=>R,dJ:()=>b,fj:()=>k,g3:()=>m,gH:()=>T,jF:()=>en,k_:()=>L,kv:()=>i,lL:()=>p,lT:()=>g,mn:()=>F,ms:()=>ee,nh:()=>D,oT:()=>a,oY:()=>l,oi:()=>w,qO:()=>_,r2:()=>j,su:()=>s,uX:()=>U,x5:()=>S,xM:()=>n,xN:()=>C,yr:()=>v,zg:()=>$});let n={product:"fno",feature:"FNO_EXPLORE_TICKER",flow:"TickerToIndexPage"},a={product:"fno",feature:"FNO_EXPLORE_TICKER",flow:"TickerToOptionChain"},i={product:"fno",feature:"FNO_EXPLORE_STOCKS_WIDGET",flow:"GainersLosersToStockDetail"},o={product:"fno",feature:"FNO_EXPLORE_STOCKS_WIDGET",flow:"GainersLosersToOptionChain"},s={product:"fno",feature:"FNO_EXPLORE_TOP_TRADED_WIDGET",flow:"TopTradedWidgetToOptionChain"},l={product:"fno",feature:"FNO_EXPLORE_INDEX_FUTURES",flow:"IndexFuturesCardToContractDetail"},d={product:"fno",feature:"FNO_EXPLORE_STOCK_FUTURES",flow:"StockFuturesCardToContractDetail"},c={product:"fno",feature:"FNO_TOP_TRADED_LISTING",flow:"TopTradedListingToIndexPage"},u={product:"fno",feature:"FNO_TOP_TRADED_LISTING",flow:"TopTradedListingToOptionChain"},p={product:"fno",feature:"FNO_TOP_TRADED_TOP_OPTIONS",flow:"TopOptionsToContractDetail"},g={product:"fno",feature:"FNO_INVESTMENTS",flow:"InvestmentsPositionToContractDetail"},h={product:"fno",feature:"FNO_INVESTMENTS",flow:"InvestmentsPositionToOptionChain"},m={product:"fno",feature:"FNO_OPEN_ORDERS",flow:"OpenOrderContractToContractDetail"},f={product:"fno",feature:"FNO_OPEN_ORDERS",flow:"OpenOrderDetailsToOrderDetail"},v={product:"commodities",feature:"FNO_EXPLORE_COMMODITIES_WIDGET",flow:"CommoditiesWidgetToOptionChain"},y={product:"commodities",feature:"FNO_EXPLORE_COMMODITY_FUTURES",flow:"CommodityFuturesCardToProductPage"},w={product:"commodities",feature:"FNO_EXPLORE_COMMODITIES_LIVE_WIDGET",flow:"CommoditiesLiveWidgetToFilterPage"},T={product:"commodities",feature:"COMMODITIES_FILTER_PAGE",flow:"FilterPageContractToProductPage"},_={product:"commodities",feature:"COMMODITIES_FILTER_PAGE",flow:"FilterPageContractToOptionChain"},b={product:"commodities",feature:"COMMODITIES_INVESTMENTS",flow:"InvestmentsPositionToContractDetail"},O={product:"commodities",feature:"COMMODITIES_INVESTMENTS",flow:"InvestmentsPositionToOptionChain"},x={product:"commodities",feature:"COMMODITIES_OPEN_ORDERS",flow:"OpenOrderContractToContractDetail"},E={product:"commodities",feature:"COMMODITIES_OPEN_ORDERS",flow:"OpenOrderDetailsToOrderDetail"},S={product:"fno",feature:"FNO_TODAY_ORDERS",flow:"TodayOrderContractToContractDetail"},C={product:"commodities",feature:"COMMODITIES_TODAY_ORDERS",flow:"TodayOrderContractToContractDetail"},N={product:"fno",feature:"FNO_GTT_ORDERS",flow:"GttOrderContractToContractDetail"},D={product:"fno",feature:"FNO_GTT_ORDERS",flow:"GttOrderDetailsToOrderDetail"},I=[a,o,s,u,h],k=[i],A=[n,c],P=[l,d,p,g,m,S,N],R=[f,D],F=[y,T,b,x,C],M=[w],j=[E],L={product:"us_stocks",feature:"holdings",flow:"holdings_to_product_page"},H={product:"us_stocks",feature:"holdings",flow:"holdings_to_holding_details"},W={product:"us_stocks",feature:"product_page",flow:"product_page_to_holding_details"},B={product:"us_stocks",feature:"all_orders",flow:"all_orders_to_order_details"},U={product:"us_stocks",feature:"open_orders",flow:"open_orders_to_order_details"},G={product:"us_stocks",feature:"open_orders",flow:"today_orders_to_order_details"},V={product:"us_stocks",feature:"order_details",flow:"order_details_to_product_page"},z={product:"us_stocks",feature:"holdings_details",flow:"holdings_details_to_product_page"},q={product:"us_stocks",feature:"holdings",flow:"holdings_to_wallet"},K={product:"us_stocks",feature:"withdraw_status",flow:"withdraw_status_to_txn_details"},Y={product:"us_stocks",feature:"wallet",flow:"pending_transaction_to_txn_details"},X={product:"us_stocks",feature:"explore",flow:"explore_to_product_page"},Q=[L,V,z,X],$=[H,W],Z={product:"us_stocks",feature:"order_card",flow:"order_confirmation_to_order_details"},J=[B,U,G,Z],ee=[q],et=[K,Y],er={product:"charts",feature:"product_page_chart",flow:"stocks"},en={product:"charts",feature:"product_page_chart",flow:"commodities"},ea={product:"charts",feature:"product_page_chart",flow:"us_stocks"}},716969:(e,t,r)=>{"use strict";r.d(t,{U:()=>l});var n=r(920263),a=r(7501),i=r(574830),o=r(925129),s=r(824577);function l(e){return new Proxy(e,{apply:async(e,t,r)=>{var l;if((0,n.T)())return e.apply(t,r);let[d]=r,{req:c,res:u}=d,p=async function(...t){try{return await e.apply(this,t)}catch(t){throw(0,a.Cp)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}};if(!c||!u)return p.apply(t,r);{let e=(l={dataFetcherRouteName:d.pathname,requestedRouteName:d.pathname,dataFetchingMethodName:"getInitialProps"},async function(...e){let t=function(e){let t=e.headers||{},r=("string"==typeof t["x-forwarded-host"]?t["x-forwarded-host"]:void 0)||("string"==typeof t.host?t.host:void 0),n=("string"==typeof t["x-forwarded-proto"]?t["x-forwarded-proto"]:void 0)||e.protocol||(e.socket?.encrypted?"https":"http"),a=e.url||"",i=function({url:e,protocol:t,host:r}){return e?.startsWith("http")?e:e&&r?`${t}://${r}${e}`:void 0}({url:a,host:r,protocol:n}),o=e.body||void 0,s=e.cookies;return{url:i,method:e.method,query_string:function(e){if(e)try{let t=new URL(e,"http://s.io").search.slice(1);return t.length?t:void 0}catch{return}}(a),headers:function(e){let t=Object.create(null);try{Object.entries(e).forEach(([e,r])=>{"string"==typeof r?t[e]=r:"number"==typeof r&&(t[e]=String(r))})}catch{}return t}(t),cookies:s,data:o}}(c);(0,i.o5)().setTransactionName(`${l.dataFetchingMethodName} (${l.dataFetcherRouteName})`),(0,i.rm)().setSDKProcessingMetadata({normalizedRequest:t});let r=(0,o.Bk)();r&&"/_error"!==l.requestedRouteName&&(0,o.zU)(r).setAttribute("sentry.route_backfill",l.requestedRouteName);let{"sentry-trace":n,baggage:a}=(0,s.i)();return{sentryTrace:n,baggage:a,data:await p.apply(this,e)}}),{data:n,baggage:a,sentryTrace:u}=await e.apply(t,r)??{};return"object"==typeof n&&null!==n&&(u&&(n._sentryTraceData=u),a&&(n._sentryBaggage=a)),n}}})}},726658:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/R.4d02a1e0.svg",height:38,width:38,blurWidth:0,blurHeight:0}},732478:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/F
1.cb966493.svg",height:38,width:38,blurWidth:0,blurHeight:0}},733749:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(407178),a=r(422346),i=n.memo(function(e){let t=(0,a.C)(e);return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},n.createElement("g",{clipPath:"url(#clip0_1_219)"},n.createElement("path",{fill:"currentColor",d:"m12 10.775-3.9 3.9a.95.95 0 0 1-.7.275.95.95 0 0 1-.7-.275.95.95 0 0 1-.275-.7q0-.425.275-.7l4.6-4.6q.15-.15.325-.213Q11.8 8.4 12 8.4t.375.062a.9.9 0 0 1 .325.213l4.6 4.6a.95.95 0 0 1 .275.7.95.95 0 0 1-.275.7.95.95 0 0 1-.7.275.95.95 0 0 1-.7-.275z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"clip0_1_219"},n.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"}))))})},744065:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/9.89f09511.svg",height:38,width:38,blurWidth:0,blurHeight:0}},753601:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(986594),a=r(407178),i=r(951402);let o=e=>{let[t,o]=(0,a.useState)(null);return((0,a.useEffect)(()=>{let e=!0;return(async()=>{let t=await Promise.all([r.e(56083),r.e(14606)]).then(r.bind(r,414606));e&&o(t)})(),()=>{e=!1}},[]),(0,i.a)(t))?null:(0,n.jsx)(t.default,{...e})}},758844:(e,t,r)=>{"use strict";r.d(t,{S:()=>n,b:()=>a});let n={FNO:"fno",COMMODITIES:"commodities",TERMINAL:"terminal",STOCKS:"stocks",US_STOCKS_V2:"us_stocks"},a={FNO_EXPLORE:"FNO_EXPLORE",FNO_TOP_TRADED_LISTING:"FNO_TOP_TRADED_LISTING",FNO_INVESTMENTS:"FNO_INVESTMENTS",FNO_ORDERS:"FNO_ORDERS",FNO_OPTION_CHAIN:"FNO_OPTION_CHAIN",FNO_CONTRACT_DETAIL:"FNO_CONTRACT_DETAIL",FNO_ORDER_DETAIL:"FNO_ORDER_DETAIL",FNO_PNL:"FNO_PNL",COMMODITIES_FILTER:"COMMODITIES_FILTER",COMMODITIES_PRODUCT_PAGE:"COMMODITIES_PRODUCT_PAGE",COMMODITIES_OPTION_CHAIN:"COMMODITIES_OPTION_CHAIN",COMMODITIES_ORDER_DETAIL:"COMMODITIES_ORDER_DETAIL",TERMINAL_CHART:"TERMINAL_CHART",US_STOCKS_V2_PRODUCT_PAGE:"product_page",US_STOCKS_V2_HOLDINGS:"holdings",US_STOCKS_V2_HOLDING_DETAILS:"holdings_details",US_STOCKS_V2_ALL_ORDERS:"all_orders",US_STOCKS_V2_OPEN_ORDERS:"open_orders",US_STOCKS_V2_ORDER_DETAILS:"order_details",US_STOCKS_V2_WALLET:"wallet",US_STOCKS_V2_DEPOSIT_CHECKOUT:"deposit_checkout",US_STOCKS_V2_DEPOSIT_TXN_RESPONSE:"deposit_txn_response",US_STOCKS_V2_TXN_DETAILS:"txn_details"}},759647:(e,t,r)=>{"use strict";r.d(t,{Y4:()=>a.Y4,bX:()=>n.bX});var n=r(386315),a=r(626939)},768386:(e,t,r)=>{"use strict";r.d(t,{y:()=>l});var n=r(789991),a=r(424766),i=r(681838),o=r(435534),s=r(189236);let l=e=>{let{code:t,livePrice:r,isDayChangeWithSign:l=!0,alwaysShowDayChangeValueSign:d=!1}=e,{ltpValue:c,value:u,ltp:p,close:g,open:h,dayChange:m,dayChangePerc:f,type:v,volume:y,openInterest:w,openInterestChange:T,openInterestChangePerc:_,prevOpenInterest:b,high:O,low:x}=(0,o.S)({code:t,livePrice:r});return{ltpValue:v===s.d.INDEX?(0,n.a)(c):(0,n.a)(c,a.b),value:(0,n.a)(u),ltp:(0,n.a)(p,a.b),open:(0,n.a)(h),close:(0,n.a)(g),high:(0,n.a)(O),low:(0,n.a)(x),dayChange:(0,n.a)(m,d?{...a.d,withSign:!0}:a.d),dayChangePerc:(0,i.Bi)(f,!0,l),dayChangeColorClass:(0,i._1)(f),openInterest:(0,n.a)(w,a.i),openInterestChange:(0,n.a)(T,a.i),openInterestChangeColorClass:(0,i._1)(_),openInterestChangePerc:(0,i.Bi)(_,!1,!0,!1,!(_>=1e3)),prevOpenInterest:(0,n.a)(b,a.i),type:v,volume:(0,n.a)(y,a.i)}}},781983:(e,t,r)=>{"use strict";r.d(t,{QC:()=>i,Sn:()=>a,e4:()=>s,ip:()=>l,s3:()=>o});var n=r(675669);let a=[{question:"What is the 'Safe Exit' feature?",answer:"\n<p>Safe Exit helps automatically exit your open F&O positions when your P&L reaches a specific limit set by you. It prevents heavy losses or secures profits by squaring off all open positions.</p>\n\n<p>The limit must be lower than your current returns and is valid for the day. You can set it during market hours (9:15 AM - 3:30 PM). If not triggered, it resets for the next day.</p>\n\n<p><b>Example 1</b>: If your returns are +â¹5,000, you can set a profit limit of â¹3,000. Once P&L drops to â¹3,000, Safe Exit triggers and squares off all positions.</p>\n\n<p><b>Example 2</b>: If your returns are -â¹5,000, you can set a loss limit at -â¹8,000. When P&L reaches -â¹8,000, Safe Exit triggers and closes all positions.</p>\n\n<p><b>Note</b>: The profit limit is being gradually rolled out to users </p>\n\n"},{question:"How do I set Safe Exit limit?",answer:'\n<p>To set Safe Exit limit:</p>\n\n<ol>\n<li>
1Go to Positions Tab in your app.</li>\n<li>Tap on "Set Safe Exit".</li>\n<li>Choose whether to set a profit or loss limit.</li>\n<li>Enter a limit lower than your current P&L.</li>\n<li>Confirm to activate it.</li>\n</ol>\n\n<p><b>Note</b>: You can only set Safe Exit during market hours (9:15 AM to 3:30 PM). If not triggered, it resets for the next day.</p>\n\n<p><b>Note</b>: The profit limit is being gradually rolled out to users </p>\n'},{question:"What are the benefits of using Safe Exit?",answer:"\n <p>Safe Exit offers the following benefits:<p>\n\n<ul>\n<li><b>Protection from Losses</b>: Automatically exits positions if losses exceed your limit.</li>\n<li><b>Lock in Profits</b>: Closes positions once the profit target is reached.</li>\n<li><b>Stress-Free Trading</b>: No need to monitor constantly as Safe Exit handles closing positions at your set limit.</li>\n</ul>\n\n<p><b>Note</b>: The profit limit is being gradually rolled out to users </p>\n "},{question:'Can I modify or cancel the "Safe Exit" feature once it\'s activated?',answer:'\n<p>Yes, you can modify or cancel your Safe Exit before it triggers.</p>\n\n<ul>\n<li><b>To modify</b>: Go to the Positions Tab, tap on Safe Exit, and set a new limit.</li>\n<li><b>To cancel</b>: Tap on Safe Exit and select "Remove Safe Exit".</li>\n</ul>\n\n<p>Cancelling means your positions wonât be closed automatically, and you must manage trades manually.</p>\n\n<p><b>Note</b>: The profit limit is being gradually rolled out to users </p>\n'},{question:"What happens to my open orders when Safe Exit is triggered?",answer:'\n <p>When Safe Exit is triggered:</p>\n <ul>\n<li> All open F&O orders are automatically canceled.</li>\n<li> A notification confirms Safe Exit.</li>\n<li> All F&O positions are squared off.</li>\n<li> You can view details under the Positions Tab, where "Safe Exit" will be indicated.</li>\n</ul>\n\n<p><b>Note</b>: The profit limit is being gradually rolled out to users </p>\n'},{question:"How does Safe Exit Feature work?",answer:"\n<p>Safe Exit monitors your P&L in real-time. When your returns hit the limit youâve set, whether itâs a profit or loss:</p>\n\n<ul>\n<li>Safe Exit will trigger to cancel all your open F&O orders and square off your open positions.</li>\n<li>You will receive a notification that your positions have been closed.</li>\n<li>You can only set the limit during market hours (9:15 AM to 3:30 PM). If the limit is not triggered by market close, it will reset, and youâll need to set it again the next day.</li>\n</ul>\n\n<p><b>Note</b>: The profit limit is being gradually rolled out to users </p>\n"},{question:"Why is my final P&L different from the Safe Exit limit I set?",answer:"\n<p>When Safe Exit is triggered, the final P&L may differ from the limit you set due to two main factors:<p>\n<ul>\n<li> <b>Market Volatility</b>: Fast price changes can cause your actual exit price to differ from the price when Safe Exit was triggered.</li>\n<li> <b>Slippage</b>: A difference between the price at which Safe Exit is triggered and the actual execution price. This can occur due to market conditions or order execution delays.</li>\n</ul>\n\n<p> While Safe Exit helps reduce risks, these factors may cause a difference between the set limit and the final P&L.</p>\n\n<p><b>Note</b>: The profit limit is being gradually rolled out to users </p>\n"}],i=[{question:"What is the Pause feature in FNO trading on Groww?",answer:"The Pause feature allows Futures and Options (FNO) traders on Groww to temporarily disable trading in FNO. It helps prevent impulsive trading after significant profits or losses, giving traders time to reassess their strategies and emotions."},{question:"How do I enable the Pause feature?",answer:' You can enable the Pause feature from the "My Account" section or the "Position" tab in the Groww app.\n Before enabling Pause, ensure that all open orders are canceled, and all open positions are squared off.\n '},{question:"Can I disable the Pause feature once it's enabled?",answer:'\n Yes, you can disable the Pause feature at any time. Simply navigate to the "Pause" screen and click on the "Disable Pause" option. You will then be able to resume trading in FNO as usual.\n '},{question:"What happens to my open orders and positions when I enable Pause?",answer:"\n When you enable Pause, you have to cancel all your open orders, and square off/exit all your open positions to prevent any further trades. This ensures that you have want to enter/exit into a trade after pause is enabled.\n "}],o=[{question:"Why is my access to F&O stopped?",answer:"\n Your F&O losses are high, and it's been over 30 days since the warning.\n You haven't uploaded an income proof document to ensure safe trading within your financial range.\n This range varies for each person, depending on their investment activity on Groww. You can start F&O trading again by submitting an income proof document.\n Remember, you can still invest in stocks and mutual funds."},{question:"How can I resume F&O trading after my access is stopped?",answer:"<p>You can upload any of these documents to help us check your financial health:</p>\n\n <ol>\n <li>Bank statement for the last 6 months</li>\n <li>Last month's salary slip</li>\n <li>ITR acknowledgement from last financial year</li>\n <li>Form 16B from last financial year</li>\n <li>DP transaction cum holding statement</li>\n </ol>\n\n We usually review your document within 24 hours.\n\n Keep in mind, uploading the document doesn't automatically open the access. It's lifted only if we find that your income is safe compared to your F&O trading losses.\n "},{question:"When will my income proof document be reviewed after uploading it?",answer:"\n Reviewing your uploaded document usually takes about 24 hours, but it can sometimes take longer depending on the document. If it has been more than 48 hours, please contact us, and our team will assist you.\n "},{question:"My F&O access is stopped with an open position. How do I exit it?",answer:"If your access to F&O is stopped and you have open positions, you can exit them using âExit allâ in the âPositionsâ tab. To cancel open orders, use 'Cancel all'. Please note, you cannot take any new positions since your F&O access is stopped. To resume F&O trading, upload an income proof document.\n "}],s={Gainers:{title:"Top Gainers F&O - Stock Options & Futures and Index Options & Futures",desc:"Discover the latest F&O Top Gainers with live updates. Explore stocks with the highest gains in the derivatives market on Groww.",noIndex:!1,routeName:(0,n.Vp)()},Losers:{title:"Top Losers F&O - Stock Options & Futures and Index Options & Futures",desc:"Discover the latest F&O Top Losers with live updates. Explore stocks with the highest gains in the derivatives market on Groww",noIndex:!1,routeName:(0,n.Gw)()}}
1,l={title:"Top Traded F&O Stocks on Groww - Check List & Trade Instantly",desc:"Explore top trading F&O stocks on Groww! Get real-time data and place instant orders using advanced features on Groww!",noIndex:!1,routeName:(0,n.Vp)()}},787122:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/B.71ea4082.svg",height:38,width:38,blurWidth:0,blurHeight:0}},790853:e=>{e.exports={logoContainer:"companyLogo_logoContainer__P55OT",companyImage:"companyLogo_companyImage__N6dKI"}},794773:(e,t,r)=>{"use strict";r.d(t,{TJ:()=>l.fetchMarginDetails,SS:()=>i,Y4:()=>d.Y4,Rn:()=>c.Rn,$k:()=>o.$k,EQ:()=>d.EQ,VG:()=>c.VG,NP:()=>l.getSquareOffStatus,C0:()=>l.getStocksGraphDataV2,Oy:()=>s.Oy,KN:()=>l.squareOffContracts});var n=r(270230),a=r(136398);let i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,i={useEncryption:!0,expiresInMin:a.aH.ONE_HOUR_IN_MINS};return(0,n.RB)("/v1/api/stocks_data/v1/etfs",i,{filters:e,page:t,size:r})};var o=r(123146),s=r(937029),l=r(681609),d=r(626939);r(340589);var c=r(552394);r(808126)},808126:(e,t,r)=>{"use strict";r.d(t,{X:()=>s,dM:()=>o,iG:()=>i});var n=r(270230),a=r(774104);let i=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{let t=(0,a.e5)();if(!(e||!t))return t.data;let r=await n.SP.get("/v1/api/stocks/v1/equity-blocking/user/status");if(200===r.status)return(0,a.WP)({data:r.data}),r.data;if(t)return t.data;return null}catch(e){throw(0,a.WP)(null),e}},o=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{let t=(0,a.rG)();if(!(e||!t))return t.data;let r=await n.SP.get("/v1/api/primaries/v1/equity-blocking/primary/user/status");if(200===r.status)return(0,a.PA)({data:r.data}),r.data;if(t)return t.data;return null}catch(e){throw(0,a.PA)(null),e}},s=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{let t=(0,a.xc)();if(!(e||!t))return t.data;let r=await n.SP.get("/v1/api/stocks/v1/equity-blocking/etf-nfo/user/status");if(200===r.status)return(0,a.TN)({data:r.data}),r.data;if(t)return t.data;return null}catch(e){throw(0,a.PA)(null),e}}},812373:(e,t,r)=>{"use strict";r.d(t,{S:()=>d});var n=r(407178),a=r(761711),i=r.n(a),o=r(947687);!function(e){function t(){var t=this||self;t.globalThis=t,delete e.prototype._T_}"object"!=typeof globalThis&&(this?t():(e.defineProperty(e.prototype,"_T_",{configurable:!0,get:t}),_T_))}(Object);var s=n.memo(function(e){let t=(0,o.h)(e);return n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},n.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),n.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 12-4-4h8z"}))}),l=function(e){var t=(0,n.useState)(!1),r=t[0],a=t[1];(0,n.useEffect)(function(){return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}},[r]);var o=function(){var e,t=window.innerHeight,n=window.pageYOffset,i=(n>(null===(e=document.body)||void 0===e?void 0:e.scrollHeight)-(t+200)||n>2e3)&&!r;r&&n<=200&&a(!1),i&&a(!0)};return n.createElement("div",{className:i()("scroll11",{scroll11FadeIn:r,scroll11FadeOut:!r}),style:e.style,onClick:function(){window.scroll({top:0,behavior:"smooth"})}},n.createElement(s,{size:52,className:"cur-po scroll11Img"}))};l.defaultProps={style:{}};var d=n.memo(l)},818261:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(655969),a=r(596966);let i=(0,n.vt)((e,t)=>({data:{topTradedUnderlyings:[]},loading:!0,error:!1,fetchData:async r=>{e({loading:!(t().data.topTradedUnderlyings.length>0),error:!1});try{var n;let t=await (0,a.vR)(r),i=null==t?void 0:null===(n=t.data)||void 0===n?void 0:n.topTradedUnderlyings;e({data:{topTradedUnderlyings:i},loading:!1,error:!1})}catch(t){e({loading:!1,error:!0})}},setData:t=>e({data:t}),setLoading:t=>e({loading:t}),setError:t=>e({error:t})}))},840633:(e,t,r)=>{"use strict";r.d(t,{CX:()=>p,L_:()=>u,TP:()=>g,kp:()=>h});var n=r(986594),a=r(207504),i=r(385864),o=r(299168),s=r(910913),l=r(240606),d=r.
1n(l);let{topOptionRow:c}=d(),u=e=>{let t=(0,o.vI)(),r=t||+!!e;return t||(0,o.lh)(r),r},p=e=>{let t=Array(e);return t.fill("dummy"),t.map((e,t)=>(0,n.jsx)(i.T.Row,{horzPadding:16,children:s.V.map((e,t)=>(0,n.jsx)(i.T.Cell,{children:0===t?(0,n.jsxs)("div",{style:{gap:16},className:"valign-wrapper",children:[(0,n.jsx)(a.Ay,{height:"40",width:"40",speed:2,backgroundColor:"var(--background-tertiary)",foregroundColor:"var(--background-secondary)",children:(0,n.jsx)("rect",{x:"0",y:"0",rx:"4",ry:"4",width:"40px",height:"40px"})}),(0,n.jsx)(a.Ay,{width:"70%",height:"16",speed:2,backgroundColor:"var(--background-tertiary)",foregroundColor:"var(--background-secondary)",children:(0,n.jsx)("rect",{x:"0",y:"0",rx:"4",ry:"4",width:"100%",height:"16px"})})]}):(0,n.jsx)("div",{className:"halign-wrapper",style:{justifyContent:"flex-end"},children:(0,n.jsx)(a.Ay,{width:"50%",height:"22",speed:2,backgroundColor:"var(--background-tertiary)",foregroundColor:"var(--background-secondary)",children:(0,n.jsx)("rect",{x:"0",y:"0",rx:"4",ry:"4",width:"100%",height:"16px"})})})},t))},t))},g=e=>{let t=Array(e);return t.fill("dummy"),t.map((e,t)=>(0,n.jsxs)("div",{className:"borderPrimary contentPrimary bodyBase vspace-between flex ".concat(c),children:[(0,n.jsx)("div",{className:"valign-wrapper",children:(0,n.jsx)(a.Ay,{width:"100%",height:"20",speed:2,backgroundColor:"var(--background-tertiary)",foregroundColor:"var(--background-secondary)",children:(0,n.jsx)("rect",{x:"0",y:"0",width:"100%",height:"16px"})})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"right-align bodyBaseHeavy contentPrimary",children:(0,n.jsx)(a.Ay,{width:"30%",height:"15.5",speed:2,backgroundColor:"var(--background-tertiary)",foregroundColor:"var(--background-secondary)",children:(0,n.jsx)("rect",{x:"0",y:"0",width:"100%",height:"16"})})}),(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"right-align bodyBaseHeavy contentPrimary",children:(0,n.jsx)(a.Ay,{width:"30%",height:"15.5",speed:2,backgroundColor:"var(--background-tertiary)",foregroundColor:"var(--background-secondary)",children:(0,n.jsx)("rect",{x:"0",y:"0",width:"100%",height:"16"})})})})]})]},t))},h=e=>{let t=Array(e);return t.fill("dummy"),(0,n.jsx)("div",{className:"valign-wrapper vspace-between explore-cards-gap",children:(0,n.jsx)("div",{className:"".concat(d().fnoIndicesCompanyCardWrapper," valign-wrapper width100"),children:t.map((e,t)=>(0,n.jsx)("div",{className:"".concat(d().fnoIndicesCategoryCard," pos-rel flex flex-column backgroundPrimary borderPrimary"),children:(0,n.jsxs)(a.Ay,{height:157,speed:2,backgroundColor:"var(--background-tertiary)",foregroundColor:"var(--background-secondary)",children:[(0,n.jsx)("rect",{y:"42",rx:"4",ry:"4",width:"204",height:"56"}),(0,n.jsx)("rect",{y:"6",rx:"4",ry:"4",width:"143",height:"20"}),(0,n.jsx)("rect",{y:"112",rx:"4",ry:"4",width:"100",height:"45"})]})},t))})})}},851017:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/Q.0b54a5c3.svg",height:38,width:38,blurWidth:0,blurHeight:0}},852106:(e,t,r)=>{"use strict";r.d(t,{Bi:()=>n.Bi,Cz:()=>n.Cz,F:()=>n.F,Hh:()=>n.Hh,Hp:()=>a.H,T0:()=>n.T0,VM:()=>n.VM,Zx:()=>n.Zx,_1:()=>n._1,b:()=>n.b,bY:()=>n.bY,eo:()=>n.eo,ih:()=>n.ih,jw:()=>n.jw,m6:()=>n.m6,sJ:()=>n.sJ,wY:()=>n.wY,zd:()=>n.zd});var n=r(681838),a=r(635662)},860662:(e,t,r)=>{"use strict";r.d(t,{$5:()=>n.$5,C$:()=>n.C$,FG:()=>n.FG,FX:()=>n.FX,Lr:()=>n.Lr,hk:()=>n.Lu});var n=r(866626)},879631:(e,t,r)=>{"use strict";r.d(t,{l:()=>a});var n=r(986594);r(407178);let a=function(){return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{fill:"currentColor",d:"M7.5 3a1 1 0 011 1v1.75A2.25 2.25 0 0110.75 8v8a2.25 2.25 0 01-2.25 2.25V20a1 1 0 11-2 0v-1.75A2.25 2.25 0 014.25 16V8A2.25 2.25 0 016.5 5.75V4a1 1 0 011-1zM16.5 3a1 1 0 011 1v4.195a2.25 2.25 0 012.25 2.25v3.11a2.25 2.25 0 01-2.25 2.25V20a1 1 0 11-2 0v-4.194a2.25 2.25 0 01-2.25-2.25v-3.111a2.25 2.25 0 012.25-2.25V4a1 1 0 011-1z"})})}},887981:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(986594),a=r(578124),i=r(385864),o=r(82804),s=r(329036),l=r(709252);let d=e=>{let{handleRefresh:t,listingPage:r=!1}=e;return r?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.T.Row,{children:(0,n.jsx)(i.T.Cell,{style:{padding:0},colSpan:4,rowSpan:6,children:(0,n.jsxs)("div",{className:"absolute-center flex-column",style:{height:"calc(100vh - 324px)",gap:16},children:[(0,n.jsx)(l.A,{darkNode:(0,n.jsx)(o.A,{custom:!0,size:158}),lightNode:(0,n.jsx)(s.A,{custom:!0,size:158})}),(0,n.jsxs)("div",{className:"flex flex-column center-align",style:{gap:4,marginTop:8},children:[(0,n.jsx)("div",{className:"contentPrimary headingBase",children:"Top traded could not be loaded"}),(0,n.jsx)("div",{className:"contentSecondary bodyBase",children:"Please check your network or try again later"})]}),(0,n.jsx)(a.B,{variant:a.V.SECONDARY,buttonText:"Refresh",isAccent:!0,onClick:()=>t()})]})})})}):(0,n.jsxs)("div",{className:"absolute-center flex-column",style:{height:398,gap:16},children:[(0,n.jsx)(l.A,{darkNode:(0,n.jsx)(o.A,{custom:!0,size:158}),lightNode:(0,n.jsx)(s.A,{custom:!0,size:158})}),(0,n.jsxs)("div",{className:"flex flex-column center-align",style:{gap:4,marginTop:8},children:[(0,n.jsx)("div",{className:"contentPrimary headingBase",children:"Top traded could not be loaded"}),(0,n.jsx)("div",{className:"contentSecondary bodyBase",children:"Please check your network or try again later"})]}),(0,n.jsx)(a.B,{variant:a.V.SECONDARY,buttonText:"Refresh",isAccent:!0,onClick:()=>t()})]})}},907675:(e,t,r)=>{"use strict";function n(){return"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in IntersectionObserverEntry.prototype}r.d(t,{Q:()=>a,m:()=>n});let a={TOP:"TOP",BOTTOM:"BOTTOM"}},910913:(e,t,r)=>{"use strict";r.d(t,{V:()=>n,l:()=>a});let n=[{id:"STOCKS",displayName:"Stocks",width:"50%",style:{textTransform:"none",paddingLeft:16},textAlign:"left"},{id:"PRICE",displayName:"Price",width:"25%",style:{textTransform:"none"},textAlign:"right"},{id:"CHANGE",width:"25%",displayName:"1D Change",style:{textTransform:"none"},textAlign:"right"}],a=15},930740:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/P.057c943b.svg",height:38,width:38,blurWidth:0,blurHeight:0}},937029:(e,t,r)=>{"use strict";r.d(t,{$J:()=>n.$J,Fx:()=>n.Fx,It:()=>n.It,J2:()=>n.J2,Jn:()=>n.Jn,Ko:()=>n.Ko,Oq:()=>n.Oq,Os:()=>n.Os,Oy:()=>n.Oy,Zv:()=>n.Zv,_n:()=>n._n,cI:()=>n.cI,f6:()=>n.f6,fO:()=>n.fO,iS:()=>n.iS,lM:()=>n.lM,mN:()=>n.mN,rQ:()=>n.rQ,zd:()=>n.zd,zw:()=>n.zw});var n=r(867595)},944591:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(655969),a=r(569443),i=r.n(a),o=r(636317),s=r.n(o),l=r(204008),d=r.n(l),c=r(188570),u=r.n(c),p=r(780355),g=r.n(p),h=r(270230),m=r(238460),f=r(875598),v=r(279342),y=r(852106),w=r(794773);async function T(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{let{data:t,status:r}=await h.vO.get("/v1/api/stocks_data/v2/market/market_timing?segment=FNO",e?{headers:{"Cache-Control":"no-cache"}}:void 0);if(200===r&&t)return t;return null}catch(e){return console.error("Error in getFnoMarketCalendar",e),Promise.reject(e)}}async function _(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"15:30:00";try{var r;if(!(0,m.N)())return console.error(f.kL.AUTHORIZATION_ERROR),{};
1let[n,a]=await Promise.all([T(e),(0,w.EQ)()]);if(!n)return console.error("Error in fetching FNO market calendar"),{};i().extend(s()),i().extend(d()),i().extend(u()),i().extend(g());let o=n.dateMarketTimeMap,{currentDate:l,currentTime:c}=a,p=e=>e?i()(e).tz("Asia/Kolkata").format("HH:mm:ss"):void 0,h=Object.fromEntries(Object.entries(o).map(e=>{var r,n,a,i;let[o,s]=e;return[o,{marketOpenTime:null!==(r=p(s.openTime))&&void 0!==r?r:v.Dt.marketOpenTime,marketCloseTime:null!==(n=p(s.closeTime))&&void 0!==n?n:t,preOpenStartTime:null!==(a=p(s.preOpenStartTime))&&void 0!==a?a:v.Dt.preOpenStartTime,preOpenEndTime:null!==(i=p(s.preOpenEndTime))&&void 0!==i?i:v.Dt.preOpenEndTime}]})),_=(0,w.VG)(h),b=l in h,{marketOpenTime:O,marketCloseTime:x,preOpenStartTime:E,preOpenEndTime:S}=null!==(r=h[l])&&void 0!==r?r:{marketOpenTime:v.Dt.marketOpenTime,marketCloseTime:t,preOpenStartTime:v.Dt.preOpenStartTime,preOpenEndTime:v.Dt.preOpenEndTime},C=i()(c,"HH:mm:ss"),N=b&&(C.isAfter(i()(O,"HH:mm:ss"))||C.isSame(i()(O,"HH:mm:ss")))&&C.isBefore(i()(x,"HH:mm:ss")),D=(0,w.Rn)(h,_,l,c),I={marketOpenTime:O,marketCloseTime:x,marketPreOpenStartTime:E,marketPreOpenEndTime:S,preMarketOpen:C.isBetween(i()(E,"HH:mm:ss"),i()(S,"HH:mm:ss"),"second","[)"),marketTimeDifferenceInSeconds:(0,y.Hp)(x,O),createdAt:l};return{isMarketOpen:N,isTradingDay:b,nextOpenDateTime:D("marketOpenTime"),nextPreOpenStartDateTime:D("preOpenStartTime"),nextPreOpenEndDateTime:D("preOpenEndTime"),nextCloseDateTime:D("marketCloseTime"),todaysMarketConfig:I}}catch(e){return console.error("Error in FNO Market Calendar Helper",e),Promise.reject(e)}}let b=(0,n.vt)((e,t)=>({isMarketOpen:!1,isTradingDay:!1,nextOpenDateTime:null,nextPreOpenStartDateTime:null,nextPreOpenEndDateTime:null,nextCloseDateTime:null,todaysMarketConfig:null,isLoading:!1,hasMarketStatusFetched:!1,updateMarketStatus:async function(){let r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"15:30:00";if(r||!t().isLoading){e({isLoading:!0});try{let t=await _(r,n);if(!t||!("isMarketOpen"in t)){e({isLoading:!1});return}e({isMarketOpen:t.isMarketOpen,isTradingDay:t.isTradingDay,nextOpenDateTime:t.nextOpenDateTime,nextPreOpenStartDateTime:t.nextPreOpenStartDateTime,nextPreOpenEndDateTime:t.nextPreOpenEndDateTime,nextCloseDateTime:t.nextCloseDateTime,todaysMarketConfig:t.todaysMarketConfig,isLoading:!1,hasMarketStatusFetched:!0})}catch(t){console.error("Error in FNO market status update",t),e({isLoading:!1})}}},updateIsMarketOpenBasedOnSocketTick:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"15:30:00";t().updateMarketStatus(!0,e)}}))},960221:(e,t,r)=>{"use strict";r.d(t,{j:()=>i});var n=r(407178),a=r(275063);let i=()=>{let e=(0,a.Pj)();return(0,n.useCallback)(t=>{var r,n;let a=e.getState(),i={},o=null!==(r=a.stock.livePrices)&&void 0!==r?r:{},s=null!==(n=a.fno.contractPrices)&&void 0!==n?n:{};return t.forEach(e=>{var t,r;i[e]=null!==(r=null!==(t=null==o?void 0:o[e])&&void 0!==t?t:null==s?void 0:s[e])&&void 0!==r?r:{}}),i},[])}},961029:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/E.60b09484.svg",height:38,width:38,blurWidth:0,blurHeight:0}},978055:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(407178);let a=()=>{let[e,t]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=()=>{navigator.onLine?fetch("/api/healthcheck",{mode:"no-cors"}).then(()=>{t(!0)}).catch(()=>{t(!1)}):t(!1)};return window.addEventListener("online",e),window.addEventListener("offline",e),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",e)}},[]),{isOnline:e}}},980689:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/I.e0a8346d.svg",height:38,width:38,blurWidth:0,blurHeight:0}},987614:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(986594),a=r(791781),i=r(240606);let{warningToast:o,warningToastGap:s,warningToastRefreshUnderline:l}=r.n(i)(),d=e=>{let{handleRefresh:t}=e;return(0,n.jsxs)("div",{className:"".concat(o," contentPrimary bodySmall backgroundWarningSubtle valign-wrapper vspace-between"),children:[(0,n.jsxs)("div",{className:"".concat(s," halign-wrapper"),children:[(0,n.jsx)(a.A,{size:16}),"The data you are viewing might be outdated"]}),(0,n.jsx)("div",{className:"".concat(l," bodySmallHeavy cur-po"),onClick:t,children:"Refresh"})]})}},999777:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"//assets-netstorage.groww.in/web-assets/billion_groww_desktop/prod/_next/static/media/Y.53b4c62c.svg",height:38,width:38,blurWidth:0,blurHeight:0}}},e=>{var t=t=>e(e.s=t);e.O(0,[37373,75780,11687,61054,50585,34384,63911,14921,15716,81609,67595,16248,408,72762,40288,56944,82712,81406,90636,46593,38792],()=>t(236930)),_N_E=e.O()}]);
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.