1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2921],{58856:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/watchlist",function(){return s(43447)}])},82986:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var n=s(74848);function a(e){let{columns:t,rows:s,height:a,width:l,className:r=""}=e,o=Array(t*s).fill(null).map(()=>'<div class="bg-black rounded-[8px] border flex-1 shine '.concat(r,'" style="height: ').concat(a,"px; width: ").concat(l,'px"></div>')).join("");return(0,n.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-".concat(t," gap-3 w-full overflow-hidden"),dangerouslySetInnerHTML:{__html:o}})}},58818:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var n=s(74848),a=s(96540),l=s(29965),r=s.n(l);let o=[{bg:"#0ea5e9",text:"#e0f2fe"},{bg:"#10b981",text:"#d1fae5"},{bg:"#f59e0b",text:"#fef3c7"},{bg:"#ef4444",text:"#fee2e2"},{bg:"#8b5cf6",text:"#ede9fe"},{bg:"#ec4899",text:"#fce7f3"},{bg:"#06b6d4",text:"#cffafe"},{bg:"#206b3d",text:"#f6f6f6"},{bg:"#f97316",text:"#ffedd5"},{bg:"#a855f7",text:"#f3e8ff"},{bg:"#32897f",text:"#ccfbf1"},{bg:"#64748b",text:"#f1f5f9"}],i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=5381;for(let s=0;s<e.length;s++)t=(t<<5)+t+e.charCodeAt(s)&0xffffffff;return o[Math.abs(t)%o.length]},c=e=>{let{endPath:t,alt:s,width:l,height:o,className:c,fallbackClassName:d,priority:x=!1}=e,[m,u]=(0,a.useState)(!1);if(m||!t){let e=(String(t||"").replace(/[-_].*$/,"").slice(0,2)||"?").toUpperCase(),a=i(t||"");return(0,n.jsx)("div",{className:"".concat(c||d||""," flex items-center justify-center rounded-full font-bold tabular-nums select-none"),style:{background:a.bg,color:a.text,boxShadow:"inset 0 0 0 1px rgba(255,255,255,0.12)",fontSize:"11px",letterSpacing:"0.02em"},"aria-hidden":"true",title:s,children:e})}return(0,n.jsx)(r(),{src:"".concat("https://d3qgf85d63gcmg.cloudfront.net/","images/logo/").concat(t.replace(/[\s&]+/g,"_")),alt:s,width:Number(l)||40,height:Number(o)||40,className:c,style:{backgroundColor:"#FFFFFF",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.06)"},onError:()=>u(!0),priority:x,unoptimized:!0})}},22444:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var n=s(74848),a=s(13368),l=s.n(a);let r=e=>{let{title:t,description:s,keywords:a,robots:r="index, follow",canonical:o,ogType:i="website",ogTitle:c,ogDescription:d,ogUrl:x,ogImage:m,ogImageType:u="image/png",ogImageWidth:h="1200",ogImageHeight:p="630",ogImageAlt:b,ogLocale:f="en_IN",twitterTitle:g,twitterDescription:k,twitterImage:w,dateModified:j,schemas:N=[],children:v}=e,y=c||t,C=d||s,_=m||"https://www.stockezee.com/images/logo.png",S=g||y,L=k||C,F=w||_;return(0,n.jsxs)(l(),{children:[t&&(0,n.jsx)("title",{children:t}),s&&(0,n.jsx)("meta",{name:"description",content:s}),a&&(0,n.jsx)("meta",{name:"keywords",content:a}),(0,n.jsx)("meta",{name:"robots",content:r}),(0,n.jsx)("meta",{name:"author",content:"StockeZee"}),(0,n.jsx)("meta",{name:"geo.region",content:"IN"}),(0,n.jsx)("meta",{name:"geo.placename",content:"India"}),(0,n.jsx)("meta",{name:"language",content:"English"}),o&&(0,n.jsx)("link",{rel:"canonical",href:o}),(0,n.jsx)("meta",{property:"og:type",content:i},"og-type"),y&&(0,n.jsx)("meta",{property:"og:title",content:y}),C&&(0,n.jsx)("meta",{property:"og:description",content:C}),x&&(0,n.jsx)("meta",{property:"og:url",content:x}),_&&(0,n.jsx)("meta",{property:"og:image",content:_}),_&&(0,n.jsx)("meta",{property:"og:image:type",content:u}),_&&(0,n.jsx)("meta",{property:"og:image:width",content:h}),_&&(0,n.jsx)("meta",{property:"og:image:height",content:p}),b&&(0,n.jsx)("meta",{property:"og:image:alt",content:b}),(0,n.jsx)("meta",{property:"og:locale",content:f}),(0,n.jsx)("meta",{name:"twitter:site",content:"@stockezee"},"twitter-site"),S&&(0,n.jsx)("meta",{name:"twitter:title",content:S}),L&&(0,n.jsx)("meta",{name:"twitter:description",content:L}),F&&(0,n.jsx)("meta",{name:"twitter:image",content:F}),j&&(0,n.jsx)("meta",{name:"article:modified_time",content:j}),j&&(0,n.jsx)("meta",{name:"article:publisher",content:"https://www.stockezee.com"}),N.filter(Boolean).map((e,t)=>(0,n.jsx)("script",{type:"application/ld+json",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify(e).replace(/</g,"\\u003c")}},"schema-".concat(t))),v]})}},43447:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>g});var n=s(74848),a=s(77528),l=s(55456),r=s(96540),o=s(86715),i=s(839
114),c=s(66188),d=s(44656),x=s(23474),m=s(82986),u=s(58818),h=s(77810),p=s(23093);let b=()=>{let e=(0,o.useRouter)(),{stockList:t,getStocklist:s}=(0,x.X)(),{watchlists:b,isLoading:f,selectedWatchlist:g,setSelectedWatchlist:k,watchlistStocks:w,defaultWatchlistId:j,isAuthenticated:N,createNewWatchlist:v,renameWatchlistName:y,deleteWatchlistById:C,removeStock:_,addStock:S,fetchWatchlistStocks:L,setWatchlistAsDefault:F,fetchWatchlists:E}=(0,d.F)(),[I,z]=(0,r.useState)(!1),[A,P]=(0,r.useState)(!1),[O,W]=(0,r.useState)(null),[D,M]=(0,r.useState)({name:""}),[T,H]=(0,r.useState)(""),[G,q]=(0,r.useState)(!1),[J,R]=(0,r.useState)(null),[U,X]=(0,r.useState)({isOpen:!1,watchlistId:null,watchlistName:""}),K=window.matchMedia("(hover: none)").matches,Y=e=>{K||void 0!==w[e]||L(e)};(0,r.useEffect)(()=>{N()?E():e.push("/")},[N,e]),(0,r.useEffect)(()=>{g&&!w[g.id]&&L(g.id)},[g,w]),(0,r.useEffect)(()=>(G?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[G]),(0,r.useEffect)(()=>{let e=e=>{J&&!e.target.closest(".dropdown-container")&&R(null)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[J]),(0,r.useEffect)(()=>{let e=e=>{!G||e.target.closest(".sidebar-container")||e.target.closest(".sidebar-toggle")||q(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[G]);let[B,Z]=(0,r.useState)(null),[$,Q]=(0,r.useState)("asc"),V=r.useMemo(()=>{if(!g)return[];let e=(w[g.id]||[]).filter(e=>!!e);return B&&(e=[...e].sort((e,t)=>{let s,n;switch(B){case"Symbol":s=e.symbol_name||e.symbol||"",n=t.symbol_name||t.symbol||"";break;case"LTP":s=Number(e.last_trade_price||0),n=Number(t.last_trade_price||0);break;case"Change %":s=Number(e.change_percent||0),n=Number(t.change_percent||0);break;case"Open":s=Number(e.open||0),n=Number(t.open||0);break;case"High":s=Number(e.high||0),n=Number(t.high||0);break;case"Low":s=Number(e.low||0),n=Number(t.low||0);break;default:return 0}return"number"==typeof s&&"number"==typeof n?"asc"===$?s-n:n-s:"asc"===$?String(s).trim().toLowerCase().localeCompare(String(n).trim().toLowerCase()):String(n).trim().toLowerCase().localeCompare(String(s).trim().toLowerCase())})),e},[g,w,B,$]),ee=async()=>{D.name.trim()&&await v(D.name.trim())&&(z(!1),M({name:""}))},et=async()=>{D.name.trim()&&O&&await y(O.id,D.name.trim())&&(P(!1),W(null),M({name:""}))},es=async(e,t)=>{if(e===j){alert("Cannot delete default watchlist. Please set another watchlist as default first.");return}X({isOpen:!0,watchlistId:e,watchlistName:t})},en=async()=>{U.watchlistId&&(await C(U.watchlistId),X({isOpen:!1,watchlistId:null,watchlistName:""}))},ea=t=>e.push("/stocks/".concat(t.toLowerCase())),el=async e=>{if(!g){alert("Please select a watchlist first");return}await S(g.id,e.symbol_name)&&(H(""),await L(g.id))},er=async()=>{(await (0,h.oF)()).status&&(p.toast.success("FNO watchlist assigned successfully"),E(!0))},eo=b.length;return(0,n.jsxs)("div",{className:"h-screen w-full flex flex-col overflow-hidden px-4 sm:px-6 lg:px-10",children:[(0,n.jsx)("div",{className:"xl:hidden flex items-center justify-between gap-3 mb-1 flex-shrink-0",children:(0,n.jsxs)("button",{onClick:()=>q(!G),className:"sidebar-toggle flex items-center gap-2 px-4 py-2 bg-sk-card border border-sk-line rounded-lg text-sk-ink hover:bg-sk-card-2 transition-colors text-xs sm:text-sm font-medium",children:[(0,n.jsx)(i.g,{icon:G?c.Jyw:c.ckx,className:"w-4 h-4"}),(0,n.jsx)("span",{children:G?"Hide Watchlists":"Show All Watchlists"})]})}),(0,n.jsxs)("div",{className:"flex flex-1 overflow-hidden py-2 gap-0",children:[(0,n.jsx)("div",{className:"fixed inset-0 backdrop-blur-[2px] bg-sk-ink/30 z-[40] xl:hidden transition-opacity duration-300 ".concat(G?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:()=>q(!1)}),(0,n.jsxs)("div",{className:"\n sidebar-container flex-shrink-0 flex flex-col bg-sk-card border border-sk-line xl:rounded-xl overflow-hidden\n fixed xl:relative top-[64px] xl:top-0 left-0 h-[calc(100vh-130p
1x)] xl:h-[calc(100vh-103px)]\n w-[280px] sm:w-80 xl:w-[300px]\n z-[50] xl:z-auto\n xl:translate-x-0 xl:opacity-100\n transition-transform duration-300 ease-in-out\n ".concat(G?"translate-x-0 bg-sk-card border-r border-sk-line shadow-2xl px-2":"-translate-x-full xl:translate-x-0 ","\n "),children:[(0,n.jsx)("div",{className:"px-5 py-5 border-b border-sk-line flex-shrink-0",children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("span",{className:"text-sk-ink font-bold text-lg",children:["Watchlists (",eo,")"]}),(0,n.jsx)("button",{onClick:()=>q(!1),className:"xl:hidden text-sk-muted hover:text-sk-ink transition-colors",children:(0,n.jsx)(i.g,{icon:c.Jyw,className:"w-5 h-5"})})]})}),(0,n.jsx)("div",{className:"flex-1 overflow-y-auto sector-scrollbar pb-2",children:f?(0,n.jsx)(m.A,{rows:1,columns:1,width:500,height:800}):0===b.length?(0,n.jsx)("div",{className:"p-4 text-center text-sk-subtle text-sm italic",children:(0,n.jsx)("p",{children:"No watchlists yet"})}):b.map(e=>(0,n.jsxs)("div",{className:"border-b border-sk-line group relative flex items-center justify-between px-4 py-3 cursor-pointer mb-1 transition-all rounded-lg\n ".concat((null==g?void 0:g.id)===e.id?"bg-sk-accent-soft border-l-[3px] border-l-sk-accent pl-[13px]":"border-l-[3px] border-l-transparent hover:bg-sk-card-2","\n "),onMouseEnter:()=>Y(e.id),onClick:()=>{k(e),w[e.id]||L(e.id),q(!1)},children:[(0,n.jsxs)("div",{className:"flex-1 min-w-0 pr-2 ",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-sm font-semibold truncate ".concat((null==g?void 0:g.id)===e.id?"text-sk-ink":"text-sk-muted"),children:e.name}),e.id===j&&(0,n.jsx)(i.g,{icon:c.yy,className:"w-3 h-3 text-sk-gold"})]}),(0,n.jsx)("p",{className:"text-xs text-sk-muted mt-1",children:w[e.id]?"".concat(w[e.id].length," stocks"):"â stocks"})]}),(0,n.jsxs)("div",{className:"relative z-10 dropdown-container",children:[(0,n.jsx)("button",{onClick:t=>{t.stopPropagation(),R(J===e.id?null:e.id)},className:"p-1.5 text-sk-muted hover:text-sk-ink transition-colors",children:(0,n.jsx)(i.g,{icon:c.vaG,className:"w-3.5 h-3.5"})}),(0,n.jsxs)("div",{className:"absolute min-w-[150px] right-full top-0 bg-sk-float border border-sk-line rounded-lg shadow-xl z-[999] transition-all duration-150\n ".concat(J===e.id?"opacity-100 scale-100":"opacity-0 scale-95 pointer-events-none"),children:[e.id!==j&&(0,n.jsxs)("button",{onClick:t=>{t.stopPropagation(),F(e.id),R(null)},className:"w-full px-4 py-2.5 text-left text-sm text-sk-ink hover:bg-sk-card-2 transition-colors flex items-center gap-2",children:[(0,n.jsx)(i.g,{icon:c.yy,className:"w-3 h-3 text-sk-gold"}),"Set as Default"]}),(0,n.jsxs)("button",{onClick:t=>{t.stopPropagation(),q(!1),W(e),M({name:e.name}),P(!0),R(null)},className:"w-full px-4 py-2.5 text-left text-sm text-sk-ink hover:bg-sk-card-2 transition-colors flex items-center gap-2",children:[(0,n.jsx)(i.g,{icon:c.MT7,className:"w-3 h-3"}),"Rename"]}),(0,n.jsxs)("button",{onClick:t=>{t.stopPropagation(),q(!1),es(e.id,e.name),R(null)},disabled:e.id===j,className:"w-full px-4 py-2.5 text-left text-sm transition-colors flex items-center gap-2\n ".concat(e.id===j?"text-sk-subtle cursor-not-allowed":"text-sk-down hover:bg-sk-down-soft"),children:[(0,n.jsx)(i.g,{icon:c.yLS,className:"w-3 h-3"}),"Delete"]})]})]})]},e.id))})]}),(0,n.jsx)("div",{className:"flex-1 min-w-0 ml-0 xl:ml-6 flex flex-col overflow-hidden",children:g?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-2 flex-shrink-0",children:[(0,n.jsx)("h2",{className:"text-xl font-bold text-sk-ink",children:null==g?void 0:g.name}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("button",{onClick:()=>{N()?er():p.toast.error("Please login first")},className:"flex text-nowrap items-center justify-center gap-2 py-2.5 px-2 sm:px-4 bg-sk-card border border-sk-line rounded-lg text-sk-ink hover:bg-sk-card-2 transition-all text-xs sm:text-sm font-medium",children:(0,n.jsx)("div",{className:"text-nowrap",children:"Get F&O Watchlist"})}),(0,n.jsxs)("button",{onClick:()=>{M({name:""}),z(!0)},className:"flex text-nowrap items-center justify-center gap-2 py-2.5 px-2 sm:px-4 bg-sk-accent border border-sk-accent rounded-lg text-primary-foreground hover:bg-sk-accent-hover transition-all text-xs sm:text-sm font-medium",children:[(0,n.jsx)(i.g,{icon:c.q_k,className:"w-4 h-4"}),(0,n.jsxs)("div",{className:"text-nowrap",children:["Create ",(0,n.jsx)("span",{className:"max-sm:hidden",children:"new"})," watchlist"]})]})]})]}),(0,n.jsxs)("div",{className:"mb-3 flex-shrink-0",children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(i.g,{icon:c.MjD,className:"absolute left-3 top-1/2 -translate-y-1/2 text-sk-muted w-3.5 h-3.5"}),(0,n.jsx)("input",{type:"text",placeholder:"Search & Add stocks...",value:T,onChange:e=>H(e.target.value),onFocus:()=>s(),className:"w-full pl-9 pr-4 py-2 bg-sk-card border border-sk-line rounded-lg text-sk-ink text-sm focus:ring-1 focus:ring-sk-accent focus:border-transparent focus:outline-none placeholder:text-sk-subtle"})]}),T&&(0,n.jsx)("div",{className:"mt-1 bg-sk-float border border-sk-line rounded-lg shadow-xl overflow-y-auto max-h-60",children:(()=>{let e=(t||[]).filter(e=>{var t,s;let n=T.toLowerCase();return(null===(t=e.symbol_name)||void 0===t?void 0:t.toLowerCase().includes(n))||(null===(s=e.company_name)||void 0===s?void 0:s.toLowerCase().includes(n))}).slice(0,20);return 0===e.length?(0,n.jsx)("p",{className:"px-4 py-3 text-sk-subtle text-sm",children:"No stocks foun
1d"}):e.map(e=>(0,n.jsxs)("button",{onClick:()=>el(e),className:"w-full flex items-center gap-2.5 px-3 py-2 hover:bg-sk-card-2 text-left transition-colors border-b border-sk-line last:border-0",children:[(0,n.jsx)(u.A,{width:24,height:24,endPath:"".concat(e.symbol_name,".png"),alt:e.symbol_name}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-sk-ink text-sm font-medium",children:e.symbol_name}),e.company_name&&(0,n.jsx)("div",{className:"text-sk-muted text-xs",children:e.company_name})]})]},e.symbol_name))})()})]}),(0,n.jsx)("div",{className:"border border-sk-line rounded-xl overflow-hidden flex flex-col bg-sk-card",children:(0,n.jsx)("div",{className:"overflow-y-auto overflow-x-auto sector-scrollbar",children:0===V.length?(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center py-24 text-center",children:[(0,n.jsx)(i.g,{icon:c.G06,className:"w-12 h-12 text-sk-subtle mb-4"}),(0,n.jsx)("h3",{className:"text-lg font-bold text-sk-ink mb-2",children:"No stocks in this watchlist"}),(0,n.jsx)("p",{className:"text-sk-muted text-sm",children:"Use the search above to add stocks"})]}):(0,n.jsxs)("table",{className:"w-full text-sm border-collapse min-w-[800px]",children:[(0,n.jsx)("thead",{className:"sticky top-0 z-10",children:(0,n.jsxs)("tr",{className:"border-b border-sk-line text-sm bg-sk-bg-2 text-nowrap",children:[["Symbol","LTP","Change %","Open","High","Low"].map(e=>(0,n.jsxs)("th",{onClick:()=>{B===e?"asc"===$?Q("desc"):(Z(null),Q("asc")):(Z(e),Q("asc"))},className:"px-3 sm:px-6 py-3 sm:py-4 font-semibold text-sk-muted uppercase text-xs cursor-pointer select-none ".concat("Symbol"===e?"text-left":"text-right"),children:[e,(0,n.jsx)("span",{className:"ml-1.5 inline-block",children:B!==e?(0,n.jsx)(i.g,{icon:c.OM7,className:"w-3 h-3"}):"asc"===$?(0,n.jsx)(i.g,{icon:c.Dvs,className:"w-3.5 h-3.5 text-sk-accent"}):(0,n.jsx)(i.g,{icon:c.Ync,className:"w-3.5 h-3.5 text-sk-accent"})})]},e)),(0,n.jsx)("th",{className:"px-6 py-4 text-center font-semibold text-sk-muted uppercase text-xs",children:"Action"})]})}),(0,n.jsx)("tbody",{className:"divide-y divide-sk-line",children:V.map((e,t)=>{let s=(null==e?void 0:e.symbol_name)||(null==e?void 0:e.symbol)||"stock-".concat(t),a=(null==e?void 0:e.last_trade_price)||0,l=(null==e?void 0:e.change_percent)||0,r=(null==e?void 0:e.open)||0,o=(null==e?void 0:e.high)||0,d=(null==e?void 0:e.low)||0,x=Number(l)>=0;return(0,n.jsxs)("tr",{className:"text-xs sm:text-sm group hover:bg-sk-card-2 transition-colors cursor-pointer border-b border-sk-line even:bg-sk-card-2/60",onClick:()=>ea(s),children:[(0,n.jsx)("td",{className:"px-3 sm:px-6 py-2 whitespace-nowrap",children:(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(u.A,{width:32,height:32,endPath:"".concat(s,".png"),alt:s,className:"w-8 h-8 rounded-full border border-sk-line bg-sk-card-2 flex-shrink-0"}),(0,n.jsx)("span",{className:"font-semibold text-sk-ink text-xs sm:text-sm group-hover:text-sk-accent group-hover:underline",children:s})]})}),(0,n.jsx)("td",{className:"px-3 sm:px-6 py-2 text-right font-medium text-sk-ink tabular-nums",children:Number(a).toLocaleString("en-IN",{maximumFractionDigits:2})}),(0,n.jsx)("td",{className:"px-3 sm:px-6 py-2 text-right",children:(0,n.jsxs)("span",{className:"text-xs sm:text-sm font-bold ".concat(x?"text-sk-up":"text-sk-down"),children:[x?"+":"",Number(l).toFixed(2),"%"]})}),(0,n.jsx)("td",{className:" px-3 sm:px-6 py-2 text-right text-sk-ink-2 tabular-nums",children:Number(r).toLocaleString("en-IN",{maximumFractionDigits:2})}),(0,n.jsx)("td",{className:"px-3 sm:px-6 py-2 text-right text-sk-ink-2 tabular-nums",children:Number(o).toLocaleString("en-IN",{maximumFractionDigits:2})}),(0,n.jsx)("td",{className:"px-3 sm:px-6 py-2 text-right text-sk-ink-2 tabular-nums",children:Number(d).toLocaleString("en-IN",{maximumFractionDigits:2})}),(0,n.jsx)("td",{className:"px-3 sm:px-6 py-2 text-center",children:(0,n.jsx)("button",{onClick:e=>{e.stopPropagation(),_(g.id,s)},className:"p-2 text-sk-muted hover:text-sk-down transition-colors rounded hover:bg-sk-down-soft",children:(0,n.jsx)(i.g,{icon:c.yLS,className:"w-4 h-4"})})})]},s)})})]})})})]}):(0,n.jsxs)("div",{className:"h-[calc(100vh-200px)] flex flex-col items-center justify-center py-24 text-center px-8 bg-sk-card border border-sk-line rounded-xl shadow-sm",children:[(0,n.jsx)(i.g,{icon:c.G06,className:"w-16 h-16 text-sk-subtle mb-6"}),(0,n.jsx)("h2",{className:"text-2xl font-bold text-sk-ink mb-3",children:"Select a Watchlist"}),(0,n.jsx)("p",{className:"text-sk-muted text-base max-w-md mb-6",children:"Choose a watchlist from the sidebar to view your stocks or create a new one to get started."}),(0,n.jsxs)("button",{onClick:()=>{M({name:""}),z(!0)},className:"flex items-center justify-center gap-2 py-3 px-6 bg-sk-accent border border-sk-accent rounded-lg text-primary-foreground hover:bg-sk-accent-hover transition-all text-sm font-semibold shadow-sm",children:[(0,n.jsx)(i.g,{icon:c.q_k,className:"w-5 h-5"}),"Create Your First Watchlist"]})]})})]}),I&&(0,n.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-sk-ink/30 backdrop-blur-sm",onClick:()=>{z(!1),M({name:""})},children:(0,n.jsxs)("div",{className:"bg-sk-float animate-fadeIn border border-sk-line rounded-xl p-6 w-full max-w-md mx-4",onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("h2",{className:"text-xl font-semibold text-sk-ink mb-4",children:"Create New Watchlist"}),(0,n.jsx)("label",{className:"block text-sm font-medium text-sk-ink-2 mb-2",children:"Watchlist Name *"}),(0,n.jsx)("input",{type:"text",value:D.name,onChange:e=>M((0,l._)((0,a._)({},D),{name:e.target.value})),onKeyDown:e=>"Enter"===e.key&&ee(),className:"w-full px-3 py-2.5 bg-sk-card border border-sk-line text-sk-ink rounded-lg focus:ring-2 focus:ring-sk-accent focus:border-transparent focus:outline-none",placeholder:"Enter watchlist name",autoFocus:!0}),(0,n.jsxs)("div",{className:"flex gap-3 mt-6",children:[(0,n.jsx)("button",{onClick:()=>{z(!1),M({name:""})},className:"flex-1 px-4 py-2 bg-[var(--surface-3)] text-[var(--text-base)] border border-[var(--border-custom)] rounded-lg hover:bg-[var(--surface-2)] transition-colors",children:"Cancel"}),(0,n.jsx)("button",{onClick:ee,disabled:!D.name.trim(),className:"flex-1 px-4 py-2 bg-sk-accent text-primary-foreground rounded-lg hover:bg-sk-accent-hover transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Create"})]})]})}),A&&(0,n.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-sk-ink/40 backdrop-blur-sm",children:(0,n.jsxs)("div",{className:"bg-sk-float animate-fadeIn border border-sk-line rounded-xl p-6 w-full max-w-md mx-4",children:[(0,n.jsx)("h2",{className:"text-xl font-semibold text-sk-ink mb-4",children:"Rename Watchlist"}),(0,n.jsx)("label",{className:"block text-sm font-medium text-sk-ink-2 mb-2",children:"Watchlist Name *"}),(0,n.jsx)("input",{type:"text",value:D.name,onChange:e=>M((0,l._)((0,a._)({},D),{name:e.target.value})),onKeyDown:e=>"Enter"===e.key&&et(),className:"w-full px-3 py-2.5 bg-sk-card border border-sk-line text-sk-ink rounded-lg focus:ring-2 focus:ring-sk-accent focus:border-transparent focus:outline-none",placeholder:"Enter watchlist name",autoFocus:!0}),(0,n.jsxs)("div",{className:"flex gap-3 mt-6",children:[(0,n.jsx)("button",{onClick:()=>{P(!1),W(null),M({name:""})},className:"flex-1 px-4 py-2 bg-[var(--surface-3)] text-[var(--text-base)] border border-[var(--border-custom)] rounded-lg hover:bg-[var(--surface-2)] transition-colors",children:"Cancel"}),(0,n.jsx)("button",{onClick:et,disabled:!D.name.trim(),className:"flex-1 px-4 py-2 bg-sk-accent text-primary-foreground rounded-lg hover:bg-sk-accent-hover transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Update"})]})]})}),U.isOpen&&(0,n.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-sk-ink/40 backdrop-blur-sm",children:(0,n.jsxs)("div",{className:"bg-sk-float border border-sk-line rounded-xl p-6 w-full max-w-md mx-4",children:[(0,n.jsxs)("div",{className:"flex items-center gap-4 mb-4",children:[(0,n.jsx)("div",{className:"w-12 h-12 bg-sk-down-soft rounded-full flex items-center justify-center flex-shrink-0",children:(0,n.jsx)(i.g,{icon:c.yLS,className:"w-6 h-6 text-sk-down"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"text-xl font-semibold text-sk-ink",children:"Delete Watchlist"}),(0,n.jsx)("p",{className:"text-sk-muted text-sm mt-1",children:"This action cannot be undone"})]})]}),(0,n.jsxs)("p",{className:"text-sk-ink text-base mb-1",children:["Are you sure you want to delete ",(0,n.jsxs)("span",{className:"font-semibold text-sk-ink",children:['"',U.watchlistName,'"']}),"?"]}),(0,n.jsx)("p",{className:"text-sk-muted text-sm mb-6",children:"All stocks in this wat
1chlist will be removed permanently."}),(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)("button",{onClick:()=>X({isOpen:!1,watchlistId:null,watchlistName:""}),className:"flex-1 px-4 py-2 bg-[var(--surface-3)] text-[var(--text-base)] border border-[var(--border-custom)] rounded-lg hover:bg-[var(--surface-2)] transition-colors",children:"Cancel"}),(0,n.jsx)("button",{onClick:en,className:"flex-1 px-4 py-2 bg-sk-down text-[#F8FAFC] dark:text-[#200807] rounded-lg hover:opacity-90 transition-colors",children:"Delete"})]})]})})]})};var f=s(22444);let g=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.A,{title:"My Watchlists - Stockezee",description:"Manage your stock watchlists and track your favorite stocks",robots:"noindex, nofollow"}),(0,n.jsx)(b,{})]})}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(58856)),_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.