1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];if(null!=l)for(var n in l)l.hasOwnProperty(n)&&(e[n]=l[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:tossinvest_wts":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bda43fd6-e5cb-4074-9a83-068fd04ee751",e._sentryDebugIdIdentifier="sentry-dbid-bda43fd6-e5cb-4074-9a83-068fd04ee751")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5328],{151:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/watchlists",function(){return l(75184)}])},1822:(e,t,l)=>{"use strict";l.d(t,{E:()=>c});var n=l(57877),r=l(37479),a=l(27282),i=l(13407),o=l(13584),s=l(97140);let c=e=>t=>{let{data:l,isFetching:c}=(0,s.P)(),d=(0,a.k)(),{replace:u}=(0,i.$)();return((0,r.useEffect)(()=>{l.isMember||c||u((0,o.og)(d.asPath))},[c,u,d,l.isMember]),l.isMember)?(0,n.Y)(e,{...t}):(0,n.Y)(n.FK,{})}},2194:(e,t,l)=>{"use strict";function n(e){return e[e.length-1]}l.d(t,{H:()=>n})},4885:()=>{},5065:()=>{},12486:()=>{},20576:()=>{},24907:()=>{},29990:(e,t,l)=>{"use strict";l.d(t,{k:()=>r});let n=/\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;function r(e){return Array.from(e.match(n)??[]).map(e=>e.toLowerCase()).join("-")}},38092:(e,t,l)=>{"use strict";let n;l.d(t,{A:()=>o});let r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},a=new Uint8Array(16),i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));let o=function(e,t,l){if(r.randomUUID&&!t&&!e)return r.randomUUID();let o=(e=e||{}).random??e.rng?.()??function(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(a)}();if(o.length<16)throw Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){if((l=l||0)<0||l+16>t.length)throw RangeError(`UUID byte range ${l}:${l+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[l+e]=o[e];return t}return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}(o)}},38949:()=>{},40426:()=>{},49797:()=>{},51026:()=>{},55046:(e,t,l)=>{"use strict";l.d(t,{C:()=>v});var n=l(57877),r=l(88028),a=l(25801),i=l(82093),o=l(82367),s=l(42896),c=l(71917),d=l(56040),u=l(55988),m=l(17824),h=l(75745),g=l(89215),p=l(81234);l(12486);let v=e=>{let{children:t,gnb:l,footer:u,sidebar:h,fullWidth:v=!1,fullHeight:b=!1,defaultGlobalPaddingClassName:y}=e,f=(0,c.q)(),w=(0,r.t)(),Y=(0,n.FD)("div",{className:"ho2myi1",children:[null!=l?l:(0,n.Y)(m.g,{}),(0,n.Y)("main",{className:v?"ho2myi2":"ho2myi3 ho2myi2",children:(0,n.Y)(o.t,{FallbackComponent:s.f,children:v?t:(0,n.Y)(i.W,{fullHeight:b,className:y,children:t})})}),u]}),k=h?(0,n.Y)("div",{className:d.dg,children:(0,n.Y)(o.t,{fallbackRender:e=>{let{error:t,resetErrorBoundary:l}=e;return(0,n.Y)(s.f,{error:t,resetErrorBoundary:l,className:(0,a.A)(g.oM,p.T[w])})},children:h})}):null;return(0,n.Y)("div",{className:(0,a.A)("ho2myi0",d.$e[f]),children:"left"===f?(0,n.FD)(n.FK,{children:[k,Y]}):(0,n.FD)(n.FK,{children:[Y,k]})})};v.Footer=u.w,v.LNB=h.V},55988:(e,t,l)=>{"use strict";l.d(t,{w:()=>w});var n=l(57877),r=l(37479),a=l(13407),i=l(74128),o=l(33827),s=l(40234),c=l(83554),d=l(28108),u=l.n(d),m=l(82093),h=l(60751),g=l(42591),p=l(54122),v=l(42627),b=l(48855),y=l(14745);let f={live:"https://corp.tossinvest.com"},w=()=>{let{href:e}=(0,h.L)();return(0,n.Y)(Y,{disclaimerHref:e})},Y=(0,r.memo)(e=>{let{disclaimerHref:t}=e,l=f.live,{push:s}=(0,a.$)(),d=[{name:"ê°ì¸ì ë³´ ì²ë¦¬ë°©ì¹¨",fontWeight:"semibold",subLinks:[{label:"ê°ì¸ì ë³´ ì²ë¦¬ë°©ì¹¨",onClick:()=>k(`${l}/contents/terms/?id=29`)},{label:"ììì ë³´ì²ë¦¬ì´ì방침",onClick:()=>k(`${l}/contents/terms/?id=862`)}]},{name:`ê³ ê°ì¼í° ${g.P}`,fontWeight:"regular",subLinks:[{label:"ê³ ê°ì¼í° ë°ë¡ê°ê¸°",onClick:()=>k(`${l}/customer`)},{label:"ASAP ì 보주체 ì¬ì¤ì¡°í",onClick:()=>s("/asap")}]},{name:"ê³µì§ì¬í",href:`${l}/notice`},{name:"ì주 묻ë ì§ë¬¸",href:`${l}/faq`},{name:"í¬ì ì ìì¬í",href:t},{name:"ì´ì©ìê¶ë¦¬ ë° ì ìì¬í",href:`${l}/contents/terms/?id=53`},{name:"ì ì민ì 창구",href:`${l}/ko/portal?tab=minwon-apply&referrer=wts#minwon-apply-link`,fontWeight:"semibold"},{name:"ì ì©ì ë³´ íì©ì²´ì ",href:`${l}/contents/terms/?id=31`},{name:"í ì¤ì¦ê¶(주)",href:l}
1],{targetRef:h}=(0,p.p)("í¸í°");return(0,n.Y)("footer",{className:y.kL,"data-nosnippet":"true",ref:h,children:(0,n.FD)(m.W,{variant:"horizontal",children:[(0,n.Y)(v.s,{alignItems:"center",justifyContent:"center",style:{flexWrap:"wrap"},children:(0,n.Y)(i.t,{typography:"small",children:d.map((e,t)=>(0,n.FD)(r.Fragment,{children:["subLinks"in e?(0,n.Y)(C,{name:e.name,fontWeight:e.fontWeight,subLinks:e.subLinks}):(0,n.Y)(o.t,{"data-tossinvest-log":"TextButton","data-content-value":e.name,"data-parent-name":"FooterComp","data-component-id":"m8frr5w5udxz",as:u(),rel:"noopener",target:"_blank",href:e.href,fontWeight:e.fontWeight??"regular",variant:"normal",color:"grey",children:e.name}),t!==d.length-1?(0,n.Y)(N,{}):null]},e.name))})}),(0,n.Y)(b.K,{size:24}),(0,n.FD)(v.s,{alignItems:"center",justifyContent:"center",style:{flexWrap:"wrap",gap:"4px"},children:[(0,n.Y)(i.t,{style:{padding:"0 4px"},color:c.t.grey500,typography:"small",children:"ì¬ì
ì ë±ë¡ë²í¸ : 519-87-01431"}),(0,n.Y)(i.t,{style:{padding:"0 4px"},color:c.t.grey500,typography:"small",children:"ëí : ê¹ê·ë¹"}),(0,n.Y)(i.t,{color:c.t.grey500,typography:"small",children:"주ì : 06133 ìì¸í¹ë³ì ê°ë¨êµ¬ í
í¤ëë¡ 133, 7층 (ìì¼ë, íêµíì´ì´ë¹ë©)"})]}),(0,n.Y)(b.K,{size:4}),(0,n.Y)(i.t,{color:c.t.grey500,typography:"small",children:"í ì¤ì¦ê¶ìì ì ê³µíë í¬ì ì ë³´ë ê³ ê°ì í¬ì íë¨ì ìí ë¨ì ì°¸ê³ ì©ì¼ ë¿, í¬ì ì ì ë° ê¶ì , ì¢
목 ì¶ì²ì ìí´ ìì±ë ê²ì´ ìëëë¤."})]})})}),k=e=>{window.open(e,"_blank","noopener,noreferrer")},C=e=>{let{name:t,fontWeight:l,subLinks:r}=e,a=`${t} â¨`;return(0,n.FD)(s.t,{size:"small",children:[(0,n.Y)(s.t.Trigger,{"data-tossinvest-priority-log":"Dropdown.Trigger","data-content-value":a,"data-parent-name":"FooterDropdown","data-component-id":"bj9cuw7al5bq",children:(0,n.Y)(o.t,{"data-tossinvest-log":"TextButton","data-contents-label":a,"data-contents-label-code":"label","data-content-value":a,"data-parent-name":"FooterDropdown","data-component-id":"yjwv78j86wr4",fontWeight:l,variant:"normal",color:"grey",children:a})}),(0,n.Y)(s.t.Content,{"data-overlay-type":"Dropdown","data-section-name":"Dropdown__FooterDropdown",align:"left",children:r.map(e=>(0,n.Y)(s.t.Item,{"data-tossinvest-log":"Dropdown.Item","data-content-value":e.label,"data-parent-name":"FooterDropdown","data-component-id":"x6w7xtv5n24c","aria-label":e.label,onClick:e.onClick,children:e.label},e.label))})]})},N=()=>(0,n.Y)(i.t,{style:{padding:"0px 4px"},typography:"xsmall",color:c.t.grey200,fontWeight:"medium",children:"ã
£"})},72194:()=>{},74930:()=>{},75184:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>lO});var n=l(57877),r=l(37479),a=l(88028),i=l(55707),o=l(50690),s=l(78886),c=l(98418),d=l(55046),u=l(17824),m=l(14090),h=l(54122),g=l(1822),p=l(38699),v=l(55675),b=l(33268),y=l(94639),f=l(17252),w=l(43098),Y=l(39126),k=l(83554),C=l(74128),N=l(25801),I=l(95836),T=l(42825);function x(e){let{className:t,...l}=e,{data:r}=(0,T.A)();return r?(0,n.FD)(C.t,{typography:"small",fontWeight:"medium",color:k.t.grey700,className:(0,N.A)("_1tifrxf0",t),...l,children:["î¤ ìµì
\xb7 ",I.C," ì§ì°"]}):null}l(40426);var P=l(7196),D=l(22870),S=l(69371),F=l(41398),_=l(79194),M=l(49784),V=l(44140),H=l(30986);function W(e){return null!=e.maturityDateTime?(0,M.aD)(e.maturityDateTime):null!=e.maturityDate?(0,M.aD)(e.maturityDate):null}function A(e,t){let l=W(e);if(null==l)return!1;let n=(0,V.A)(l,{hours:21,minutes:0,seconds:0,milliseconds:0});return(0,H.A)((0,M.aD)(t),n)}function L(e,t){let l=W(e);return null!=l&&(0,H.A)((0,M.aD)(t),l)||!1===e.incorporated}let E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{threshold:t=.01,rootMargin:l,once:n=!1,initialVisible:a=!0,enabled:i=!0}=e,[o,s]=(0,r.useState)(a),c=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!i)return;let e=c.current;if(!e||"undefined"==typeof IntersectionObserver)return;let r=new IntersectionObserver(e=>{let[t]=e;if(t){if(n){t.isIntersecting&&(s(!0),r.disconnect());return}s(t.isIntersecting)}},{threshold:t,rootMargin:l});return r.observe(e),()=>r.disconnect()},[i,n,l,t]),{ref:c,isVisible:o}};l(38949);var R="lamjqe7",O="lamjqec",q="lamjqed",j="lamjqee",K="lamjqef",B="lamjqeg",$=l(73053),U=l(97014),z=l(47622);let G=e=>{let{columnId:t,label:l,sorting:r,className:a,align:o,fixed:s,onChangeSorting:c}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-contents-label":l,"data-contents-label-code":"label","data-parent-name":"SortableHCell","data-contents-value":l,className:a,fixed:s,theme:"grey",align:o,rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:r?.columnId===t?r.order:"sortable"}),onClick:()=>c?.(t),children:l})},X=e=>{let{sorting:t,onChangeSorting:l}=e;return(0,n.Y)(i.a.Head,{children:(0,n.FD)(i.a.Row,{className:"lamjqe4",children:[(0,n.Y)(G,{fixed:!0,columnId:"stockName",label:t?.columnId==="stockName"?"ê°ëë¤ ì":"ì¢
목ëª
",sorting:t,className:R,onChangeSorting:l}),(0,n.Y)(G,{columnId:"currentPrice",label:"íì¬ê°",sorting:t,className:O,align:"end",onChangeSorting:l}),(0,n.Y)(G,{columnId:"fluctuationPercent",label:"ë±ë½ë¥ ",sorting:t,className:q,align:"end",onChangeSorting:l}),(0,n.Y)(G,{columnId:"fluctuationAmount",label:"ë±ë½ì¡",sorting:t,className:j,align:"end",onChangeSorting:l}),(0,n.Y)(G,{columnId:"volume",label:"1ì¼ ê±°ëë",sorting:t,className:K,align:"end",onChangeSorting:l}),(0,n.Y)(G,{columnId:"marketCap",label:"ìê°ì´ì¡",sorting:t,className:B,align:"end",onChangeSorting:l})]})})};var Q=l(81372),Z=l(21128);let J=(0,r.createContext)(null),ee=J.Provider;var et=l(19477),el=l(85815),en=l(4647),er=l(46805);let ea=e=>{for(let t of e.values())t.unsubscribe();e.clear()},ei=e=>
1{let{client:t,productCode:l,priceValue:n}=e,r=(0,en.RF)(l),a=(0,er.G_)(l),i=(0,M.vA)(e=>{let t=e[e.length-1];if(null==t)return;let l=n.get(),r=a?((e,t)=>{let l=e??{base:null,close:null,baseKrw:null,closeKrw:null,volume:null};return{...l,base:t.base??l.base,close:t.close??l.close,baseKrw:t.base??l.baseKrw,closeKrw:t.close??l.closeKrw,volume:t.cumulativeVolume??l.volume}})(l,t):((e,t)=>{let l=e??{base:null,close:null,baseKrw:null,closeKrw:null,volume:null};return{...l,base:t.base??l.base,close:t.close??l.close,baseKrw:t.baseKrw??l.baseKrw,closeKrw:t.closeKrw??l.closeKrw,volume:t.cumulativeVolume??l.volume}})(l,t);null!=l&&((e,t)=>e.base===t.base&&e.close===t.close&&e.baseKrw===t.baseKrw&&e.closeKrw===t.closeKrw&&e.volume===t.volume)(l,r)||n.set(r)},{size:1/0,time:200});return t.subscribe(r,e=>{let{messages:t}=e;for(let e of t)i(JSON.parse(e.body))})},eo=(0,r.createContext)(void 0),es=e=>{let{children:t}=e,[l,a]=(0,r.useState)(()=>new Map),i=(0,r.useCallback)((e,t)=>{a(l=>{let n=l.get(e)??[];if((0,S.n)(n,t))return l;let r=new Map(l);return r.set(e,t),r})},[]),o=(0,r.useCallback)(e=>{a(t=>{if(!t.has(e))return t;let l=new Map(t);return l.delete(e),l})},[]),s=(0,r.useMemo)(()=>{let e=new Set;for(let t of l.values())for(let l of t)e.add(l);return Array.from(e)},[l]),c=(0,r.useMemo)(()=>({setPanelVisibleProductCodes:i,removePanel:o,visibleProductCodes:s}),[o,i,s]);return(0,n.Y)(eo.Provider,{value:c,children:t})},ec=()=>{let e=(0,r.useContext)(eo);if(void 0===e)throw Error("useVisibleProductCodesRegistryë VisibleProductCodesRegistryProvider ë´ìì ì¬ì©í´ì¼ í©ëë¤.");return e},ed=(0,r.createContext)(void 0),eu=e=>{let{children:t}=e,{client:l,connected:a}=(0,el.A)(),{visibleProductCodes:i}=ec(),o=(0,r.useRef)(new Map),s=(0,r.useRef)(new Map),c=(0,r.useRef)(l),d=(0,r.useCallback)(e=>{let t=o.current.get(e);if(null!=t)return t;let l=new et.X;return o.current.set(e,l),l},[]),u=(0,r.useCallback)((e,t)=>{let l=d(e);return null==l.get()&&l.set(t),l},[d]),m=(0,r.useCallback)(e=>s.current.has(e),[]),h=(0,r.useMemo)(()=>new Set(i.filter(Boolean)),[i]);(0,r.useEffect)(()=>{let e=s.current,t=o.current;if(c.current!==l&&(ea(e),c.current=l),!a)return void ea(e);for(let[l,n]of e.entries())if(!h.has(l)){n.unsubscribe(),e.delete(l);let r=t.get(l);r?.destroy(),t.delete(l)}for(let t of h)if(!e.has(t)){let n=d(t),r=ei({client:l,productCode:t,priceValue:n});e.set(t,r)}},[l,a,d,h]),(0,r.useEffect)(()=>{let e=s.current,t=o.current;return()=>{for(let l of(ea(e),t.values()))l.destroy();t.clear()}},[]);let g=(0,r.useMemo)(()=>({getPriceValue:u,isSubscribed:m}),[u,m]);return(0,n.Y)(ed.Provider,{value:g,children:t})};var em=l(21881),eh=l(44907),eg=l(28108),ep=l.n(eg),ev=l(30504),eb=l(81879),ey=l(12462),ef=l(50440);let ew=em.Ay.roundHalfUp,eY=function(e,t,l,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:ew;return`${(0===t?e:e.div(t)).toFixed(l,r)}${n}`},ek=function(e){let{eokThreshold:t,roundingMode:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.abs(),r=Number(ef.Du),a=Number(ef.kR),i=Number(ef.nY),o=Number(ef.Mf),s=[{threshold:o,unit:o,decimals:1,suffix:"ê²½"},{threshold:i,unit:i,decimals:1,suffix:"ì¡°"},{threshold:t??Number(ef.Rq),unit:a,decimals:1,suffix:"ìµ"},{threshold:r,unit:r,decimals:0,suffix:"ë§"}].find(e=>0!==e.threshold&&n.gte(e.threshold));return null==s?null:eY(e,s.unit,s.decimals,s.suffix,l)},eC=e=>{let{assetType:t,marketCap:l}=e;if("STOCK"!==t||null==l)return"-";let n=(0,em.Ay)(l);return ek(n)??n.toFixed(0,ew)};var eN=l(94084),eI=l(31315);let eT=(e,t)=>null==e?null:"krw"===t?(0,eN.s)(e):e,ex=(e,t)=>(0,Z.gs)(e)?"CRYPTO"===e.type?eT(e.prices?.base?.[t],t):e.prices?.base??null:"usd"===t?e.prices?.base.usd??null:e.prices?.base.krw??null,eP=(e,t)=>(0,Z.gs)(e)?"CRYPTO"===e.type?eT(e.prices?.close?.[t],t):e.prices?.close??null:"usd"===t?e.prices?.close.usd??null:e.prices?.close.krw??null,eD=e=>e.prices?.volume??null,eS=(e,t)=>(0,Z.gs)(e)?null:"usd"===t?e.prices?.marketCap.usd??null:e.prices?.marketCap.krw??null,eF=(e,t)=>(0,Z.gs)(e)||"market"in e&&["KSP","KSQ","KR_ETC"].includes(e.market)?"krw":t;var e_=l(90152),eM=l(5868),eV=l(92836),eH=l(32275);let eW=e=>({typography:"xsmall",color:e,fontWeight:"medium",className:(0,N.A)("lamjqea",(0,eb.I)({lines:1}))}),eA=e=>e?k.t.grey500:k.t.grey600,eL=e=>{let{item:t,color:l}=e,r=t.optionLiquidation,a=eW(l);return null==r?null:(e=>null!=e&&null!=e.liquidationDateTime)(r)?(0,n.Y)(C.t,{...a,children:(0,n.Y)(eH.u,{highlightIfUnderOneHour:!1,optionLiquidation:r})}):null},eE=e=>{let{item:t,color:l}=e,r=t.maturityDateTime,a=(0,eV.h)({maturityDateTime:r??""}),i=eW(l);return null!=r&&a?(0,n.Y)(C.t,{...i,children:a}):null},eR=e=>{let{category:t,inactive:l=!1}=e,r=eA(l);return(0,n.Y)(C.t,{...eW(r),children:t})},eO=e=>{let{item:t,inactive:l=!1}=e,r=eA(l);return"OPTION"===t.type?(0,n.Y)(eL,{item:t,color:r}):"BOND"===t.type?(0,n.Y)(eE,{item:t,color:r}):null};var eq=l(14603),ej=l(58040);
1let eK=(0,r.memo)(function(e){let{title:t,titleClassName:l,subtitle:a,left:i,columnClassName:o}=e,s=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1),[u,m]=(0,r.useState)(!1),h=(0,r.useCallback)(()=>{let e=s.current;null!=e&&d(e.scrollWidth>e.clientWidth)},[]);return(0,ej.E)(()=>{h()},[h,t]),(0,r.useEffect)(()=>{let e=s.current;if(null==e||"undefined"==typeof ResizeObserver)return;let t=new ResizeObserver(()=>h());return t.observe(e),()=>{t.unobserve(e),t.disconnect()}},[h]),(0,n.FD)(eq.t,{open:c&&u,openDelay:500,children:[(0,n.FD)("div",{className:"lamjqe8",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[i,(0,n.FD)("div",{className:o,style:null==o?{minWidth:0,display:"flex",flexDirection:"column",justifyContent:"center"}:void 0,children:[(0,n.Y)(eq.t.Trigger,{"data-tossinvest-priority-log":"Tooltip.Trigger","data-parent-name":"StockNameCellWithOverflowTooltip",asChild:!0,"data-contents-value":t,children:(0,n.Y)(C.t,{ref:s,typography:"small",fontWeight:"semibold",className:l,children:t})}),null==a?null:(0,n.Y)("span",{className:"lamjqeb",onMouseEnter:()=>m(!1),onMouseLeave:()=>m(!0),children:a})]})]}),(0,n.Y)(eq.t.Content,{"data-overlay-type":"Tooltip",side:"bottom",align:"start",flexDirection:"row",variant:"compact",children:(0,n.Y)(eq.t.Title,{children:t})})]})});var eB=l(25645),e$=l(90558),eU=l(85161);let ez=function(e){let{sign:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return"-";let l=(0,em.Ay)(e),n=l.abs(),r=l.lt(0)?"-":!0===t&&l.gt(0)?"+":"";return n.gte((0,em.Ay)(10).times(ef.nY))?`${r}${n.div(ef.nY).toFixed(0,em.Ay.roundDown)}ì¡°ì`:n.gte(ef.nY)?`${r}${n.div(ef.nY).toFixed(2,em.Ay.roundDown)}ì¡°ì`:n.gte((0,em.Ay)(10).times(ef.kR))?`${r}${(0,M.Nq)(n.div(ef.kR).toFixed(0,em.Ay.roundDown))}ìµì`:n.gte(ef.kR)?`${r}${n.div(ef.kR).toFixed(2,em.Ay.roundDown)}ìµì`:n.gte(ef.Rq)?`${r}${(0,M.Nq)(n.div(ef.Du).toFixed(0,em.Ay.roundDown))}ë§ì`:`${r}${(0,M.Nq)(n.toFixed(0,em.Ay.roundDown))}ì`};var eG=l(77564);let eX=e=>{let{assetType:t,volume:l}=e;if("BOND"===t||null==l)return"-";let n=(e=>"OPTION"===e?"ê³ì½":(0,eG.Ns)(e)?"":"주")(t);return`${eQ(l)}${n}`},eQ=e=>{let t=(0,em.Ay)(e);if(t.gte(ef.nY))return`${t.div(ef.nY).toFixed(1,em.Ay.roundDown)}ì¡°`;if(t.gte(ef.Rq)){let e=t.abs(),l=e.div(ef.kR).round(0,em.Ay.roundDown).toNumber(),n=e.minus((0,em.Ay)(l).mul(ef.kR)).div(ef.Du).round(0,em.Ay.roundDown).toNumber();return l>0?n>0?`${(0,M.Nq)(l)}ìµ ${(0,M.Nq)(n)}ë§`:`${(0,M.Nq)(l)}ìµ`:`${(0,M.Nq)(n)}ë§`}return(0,M.Nq)(t.round(0,em.Ay.roundDown).toNumber())};var eZ=l(91057),eJ=l(78729),e0=l(39712),e1=l(46308),e5=l(36365),e2=l(33323);let e4=e=>0===e?"stay":e>0?"rise":"fall",e8=(e,t)=>"krw"===t?{base:e.baseKrw??e.base,close:e.closeKrw??e.close,currencyToShow:"krw"}:{base:e.base,close:e.close,currencyToShow:"usd"},e7={íì¬ê°_ë²ì©:(e,t)=>{let{price:l}=e,{targetCurrency:n}=t,{close:r,currencyToShow:a}=e8(l,n);return null==r?{result:"-"}:{result:(0,ey.$g)(r,a,{decimalExtendUnderOneDollar:!0})}},ë±ë½ë¥ _ë²ì©:(e,t)=>{let{price:l}=e,{sign:n,decimalPlace:r=2,targetCurrency:a}=t,{base:i,close:o}=e8(l,a);return null==i||null==o?{result:"-"}:{result:(0,e$.uA)({base:i,close:o},{sign:n,decimalPlace:r}),delta:e4((0,em.Ay)(o).minus(i).toNumber())}},ë±ë½ê°_ë²ì©:(e,t)=>{let{price:l}=e,{targetCurrency:n}=t,{base:r,close:a,currencyToShow:i}=e8(l,n);if(null==r||null==a)return{result:"-"};let o=(0,em.Ay)(a).minus(r);return{result:(0,ey.$g)(o,i,"usd"===i?{sign:!0,decimalExtendUnderOneDollar:!1}:{sign:!0}),delta:e4(o.toNumber())}},ê±°ëë_ë²ì©:e=>{let{price:t}=e,l=t.volume??null;return{result:null==l?"-":(0,M.Nq)(l)}}},e6=e=>{let{price:t,formatter:l,fluctuationColor:a={rise:k.t.red500,fall:k.t.blue500,stay:k.t.grey600},className:i,...o}=e,s=(0,r.useRef)(null),c=(0,r.useRef)(""),d=(0,e5.g)(e=>{if(null==e)return;let{result:t,delta:n}=e7[l.name]({price:e},"args"in l?l.args:void 0);e2.k.request(()=>{if(null!=s.current&&((0,e1.f)(s.current,t),null!=n&&n!==c.current)){c.current=n;let t=e.base??0,l=e.close??0;s.current.style.color=a?.[n]??eB.x[Math.sign(l-t)]}})}),u=(0,eJ.J)(l);return(0,e0.E)(()=>
1{if(t instanceof et.X){let e=t.on("change",e=>{let{value:t}=e;d.current(t)});return d.current(t.get()),()=>{e()}}d.current(t)},[t,u,d]),(0,n.Y)("span",{ref:s,className:(0,N.A)(U.W,i),...o})},e9=e=>{let{priceValue:t,currency:l}=e;return(0,n.Y)(e6,{price:t,formatter:{name:"íì¬ê°_ë²ì©",args:{targetCurrency:l}}})},e3=e=>{let{priceValue:t,currency:l}=e;return(0,n.Y)(e6,{price:t,formatter:{name:"ë±ë½ë¥ _ë²ì©",args:{sign:!0,decimalPlace:2,targetCurrency:l}}})},te=e=>{let{priceValue:t,currency:l}=e;return(0,n.Y)(e6,{price:t,formatter:{name:"ë±ë½ê°_ë²ì©",args:{targetCurrency:l}}})},tt=e=>{let{priceValue:t,assetType:l}=e;return null==l?(0,n.Y)(e6,{price:t,formatter:{name:"ê±°ëë_ë²ì©"}}):(0,n.Y)(tl,{priceValue:t,assetType:l})},tl=e=>{let{priceValue:t,assetType:l,className:a}=e,i=(0,r.useRef)(null),o=(0,eJ.J)(l);return(0,e0.E)(()=>{let e=e=>{let t=eX({assetType:o,volume:e?.volume??null});e2.k.request(()=>{null!=i.current&&(0,e1.f)(i.current,t)})},l=t.on("change",t=>{let{value:l}=t;e(l)});return e(t.get()),()=>{l()}},[o,t]),(0,n.Y)("span",{ref:i,className:(0,N.A)(U.W,a)})},tn=e=>{let{priceValue:t}=e,l=(0,r.useRef)(null);return(0,e0.E)(()=>{let e=e=>{let t=ez(e?.closeKrw??e?.close);e2.k.request(()=>{null!=l.current&&(0,e1.f)(l.current,t)})},n=t.on("change",t=>{let{value:l}=t;e(l)});return e(t.get()),()=>{n()}},[t]),(0,n.Y)("span",{ref:l,className:U.W})},tr=e=>{let{priceValue:t}=e,l=(0,r.useRef)(null);return(0,e0.E)(()=>{let e=e=>{let t=e?.baseKrw??e?.base,n=e?.closeKrw??e?.close;if(null==t||null==n||0===t||0===n)return void e2.k.request(()=>{null!=l.current&&((0,e1.f)(l.current,"-"),l.current.style.color="")});let r=(0,em.Ay)(n).minus(t),a=ez(r.toNumber(),{sign:!0}),i=eB.x[Math.sign(r.toNumber())];e2.k.request(()=>{null!=l.current&&((0,e1.f)(l.current,a),l.current.style.color=i)})},n=t.on("change",t=>{let{value:l}=t;e(l)});return e(t.get()),()=>{n()}},[t]),(0,n.Y)("span",{ref:l,className:U.W})},ta=e=>{let{priceValue:t,displayUnit:l}=e,a=(0,r.useRef)(null);return(0,e0.E)(()=>{let e=e=>{let t=e?.close,n=null==t?"-":(0,eZ.fD)(t,l);e2.k.request(()=>{null!=a.current&&(0,e1.f)(a.current,n)})},n=t.on("change",t=>{let{value:l}=t;e(l)});return e(t.get()),()=>{n()}},[t,l]),(0,n.Y)("span",{ref:a,className:U.W})},ti=e=>{let{priceValue:t,displayUnit:l}=e,a=(0,r.useRef)(null);return(0,e0.E)(()=>{let e=e=>{let t=e?.base,n=e?.close;if(null==t||null==n||0===t||0===n)return void e2.k.request(()=>{null!=a.current&&((0,e1.f)(a.current,"-"),a.current.style.color="")});let r=(0,em.Ay)(n).minus(t),i=(0,eZ.fD)(r.toNumber(),l,{sign:!0}),o=eB.x[Math.sign(r.toNumber())];e2.k.request(()=>{null!=a.current&&((0,e1.f)(a.current,i),a.current.style.color=o)})},n=t.on("change",t=>{let{value:l}=t;e(l)});return e(t.get()),()=>{n()}},[t,l]),(0,n.Y)("span",{ref:a,className:U.W})},to=e=>null==e.displayUnit&&(!0===e.isCrypto||"STOCK"===e.assetType&&e.currency===eU.Sj.krw);var ts=l(31184);let tc=(0,r.memo)(function(e){var t,l,a;let{watchListId:o,watchlistGroupType:s,item:c,currency:d,virtualRow:u,disableLink:m,isInactive:h,realtimePriceValue:g}=e,p=(0,Z.gs)(c),v=p?null:c.symbol,b=(0,e_.h)(c.name,v,c.code),{handleExpirableBondClick:y}=function(e){let{getServerNow:t}=(0,_.W)(),{open:l}=(0,ts.o)();return{handleExpirableBondClick:(0,r.useCallback)(n=>{if("BOND"!==e.type)return;let r=t(),a=e.maturityDateTime,i=null!=a&&(0,H.A)(r,new Date(a));return!1===e.incorporated||i?(n.preventDefault(),n.stopPropagation(),l({watchItem:e})):!1===e.explorable?(n.preventDefault(),n.stopPropagation(),l({title:"êµ¬ë§¤ê° ì¢
ë£ë ì±ê¶ì´ìì",description:"ì±ê¶ì ìì í ê¹ì?\nì´ë¯¸ 구매íë¤ë©´ ë´ í¬ììì ë³¼ ì ìì´ì.",watchItem:e})):void 0},[t,e,l])}}(c),{effectiveCurrency:f,base:w,close:Y,volume:k,marketCap:C,hasValidPrice:I,changeSign:T}=(e=>{let{item:t,currency:l}=e,n=eF(t,l),r=ex(t,n),a=eP(t,n),i=eD(t),o=eS(t,n),s=null!=r&&null!=a&&0!==r&&0!==a,c=s?Math.sign((0,em.Ay)(a).minus(r).toNumber()):0;return{effectiveCurrency:n,base:r,close:a,volume:i,marketCap:o,hasValidPrice:s,changeSign:c}})({item:c,currency:d}),x=eC({assetType:c.type,marketCap:C}),P="-"===x?"-":(0,ey.uV)(x,f),D="CRYPTO"===c.type,S=p&&!D?c.displayUnit:void 0,F=!0===h,M=D?void 0:g,V=F?{realtimePriceValue:void 0,base:null,close:null,volume:null,hasValidPrice:!1}:{realtimePriceValue:M,base:w,close:Y,volume:k,hasValidPrice:I},W=(e=>{let t=to(e);return null!=e.realtimePriceValue?t?(0,n.Y)(tn,{priceValue:e.realtimePriceValue}):null!=e.displayUnit?(0,n.Y)(ta,{priceValue:e.realtimePriceValue,displayUnit:e.displayUnit}):(0,n.Y)(e9,{priceValue:e.realtimePriceValue,currency:e.currency}):null==e.close?"-":t?ez(e.close):null!=e.displayUnit?(0,eZ.fD)(e.close,e.displayUnit):(0,ey.$g)(e.close,e.currency)})({realtimePriceValue:V.realtimePriceValue,close:V.close,currency:f,assetType:c.type,displayUnit:S,isCrypto:D}),A=(e=>{let{realtimePriceValue:t,base:l,close:r,hasValidPrice:a,changeSign:i,currency:o}=e;return null!=t?(0,n.Y)(e3,{priceValue:t,currency:o}):a&&null!=l&&null!=r?(0,n.Y)("span",{style:{color:eB.x[i]},children:(0,e$.uA)({base:l,close:r},{sign:!0})}):"-"})({realtimePriceValue:V.realtimePriceValue,base:V.base,close:V.close,hasValidPrice:V.hasValidPrice,changeSign:T,currency:f}),L=(e=>{let{realtimePriceValue:t,base:l,close:r,hasValidPrice:a,changeSign:i,currency:o,assetType:s,displayUnit:c,isCrypto:d}=e,u=to({assetType:s,currency:o,displayUnit:c,isCrypto:d});if(null!=t)return u?(0,n.Y)(tr,{priceValue:t}):null!=c?(0,n.Y)(ti,{priceValue:t,displayUnit:c}):(0,n.Y)(te,{priceValue:t,currency:o});if(!a||null==l||null==r)return"-";let m=(0,em.Ay)(r).minus(l),h=u?ez(m.toNumber(),{sign:!0}):null!=c?(0,eZ.fD)(m.toNumber(),c,{sign:!0}):(0,ey.$g)(m,o,o===eU.Sj.usd?{sign:!0,decimalExtendUnderOneDollar:!1}:{sign:!0});return(0,n.Y)("span",{style:{color:eB.x[i]},children:h})})({realtimePriceValue:V.realtimePriceValue,base:V.base,close:V.close,hasValidPrice:V.hasValidPrice,changeSign:T,currency:f,assetType:c.type,displayUnit:S,isCrypto:D}),E=(t=V.realtimePriceValue,l=c.type,a=V.volume,null!=t?(0,n.Y)(tt,{priceValue:t,assetType:l}):eX({assetType:l,volume:a})),$=m?void 0:(0,n.Y)(ep(),{"data-section-name":"ê´ì¬ê·¸ë£¹","data-tossinvest-log":"Link","data-content-value":b,"data-
1parent-name":"TableRow","data-component-id":"drpkca7hn23y",ref:(0,eh.XS)({viewType:"grid",watchlistId:o,watchlistGroupType:s,productType:c.type,clickedProductCode:c.code}),"data-ignore-auto-section-prefix":"true",href:(0,eM.DE)({productCode:c.code,underlyingGuid:(0,Z.K9)(c)?c.underlyingGuid:void 0}),onClick:y}),U="OPTION"===c.type,z=U||"BOND"===c.type,G=U?c.optionType??void 0:void 0,X=z?(0,n.Y)(eO,{item:c,inactive:F}):p?(0,n.Y)(eR,{category:c.category,inactive:F}):null,Q=(0,N.A)("lamjqe5",F?"lamjqe6":null),J=(0,N.A)("lamjqei",F?"lamjqej":null,"lamjqeh",(0,eb.I)({lines:1}));return(0,n.FD)(i.a.Row,{"data-index":u.index,className:Q,style:{transform:`translateY(${44*u.index}px)`},renderLink:$,children:[(0,n.Y)(i.a.Cell,{className:R,children:(0,n.Y)(eK,{title:b,titleClassName:J,columnClassName:"lamjqe9",left:(0,n.Y)(ev.g,{code:c.code,url:c.logoImageUrl,size:24,optionType:G,alt:c.name}),subtitle:X})}),(0,n.Y)(i.a.Cell,{className:O,align:"end",children:W}),(0,n.Y)(i.a.Cell,{className:q,align:"end",children:A}),(0,n.Y)(i.a.Cell,{className:j,align:"end",children:L}),(0,n.Y)(i.a.Cell,{className:K,align:"end",children:E}),(0,n.Y)(i.a.Cell,{className:B,align:"end",children:P})]})}),td=e=>{let{item:t}=e;switch(t.type){case"STOCK":return(0,n.Y)(tm,{...e});case"OPTION":return(0,n.Y)(th,{...e});case"BOND":return(0,n.Y)(tv,{...e});case"CRYPTO":return(0,n.Y)(tu,{...e,item:t});default:return(0,n.Y)(tf,{...e})}},tu=e=>{let{item:t}=e,{data:l}=(0,Q.M)(t.code),r=null==l?t:{...t,prices:null==t.prices?{base:{krw:l.base},close:{krw:l.close},volume:l.volume}:{...t.prices,base:{...t.prices.base,krw:l.base},close:{...t.prices.close,krw:l.close},volume:l.volume??t.prices.volume}};return(0,n.Y)(tc,{...e,item:r,disableLink:e.disableLink})},tm=e=>(0,n.Y)(tf,{...e}),th=e=>{let{getServerNow:t}=(0,_.W)(),l=t();return A(e.item,l)?(0,n.Y)(tp,{...e}):(0,n.Y)(tg,{...e})},tg=e=>(0,n.Y)(tf,{...e}),tp=e=>(0,n.Y)(tc,{...e,isInactive:!0}),tv=e=>{let{getServerNow:t}=(0,_.W)(),l=t();return L(e.item,l)?(0,n.Y)(ty,{...e}):(0,n.Y)(tb,{...e})},tb=e=>(0,n.Y)(tc,{...e}),ty=e=>(0,n.Y)(tc,{...e,isInactive:!0}),tf=e=>{let t=(0,r.useContext)(J)?.isPanelVisible??!0,{getPriceValue:l,isSubscribed:a}=(()=>{let e=(0,r.useContext)(ed);if(void 0===e)throw Error("useRealtimeGridTradePricePool ë´ìì ì¬ì©í´ì¼ í©ëë¤.");return e})();if(!t)return(0,n.Y)(tc,{...e,disableLink:e.disableLink});let i=(e=>{if((0,Z.gs)(e)){if("CRYPTO"===e.type){let t=e.prices?.base,l=e.prices?.close;return{base:t?.usd??t?.krw??null,close:l?.usd??l?.krw??null,baseKrw:t?.krw??null,closeKrw:l?.krw??null,volume:null}}return{base:e.prices?.base??null,close:e.prices?.close??null,baseKrw:e.prices?.base??null,closeKrw:e.prices?.close??null,volume:e.prices?.volume??null}}let t=e.prices;return{base:t?.base.usd??t?.base.krw??null,close:t?.close.usd??t?.close.krw??null,baseKrw:t?.base.krw??null,closeKrw:t?.close.krw??null,volume:t?.volume??null}})(e.item),o=e.item.code;if(!a(o))return(0,n.Y)(tc,{...e,disableLink:e.disableLink});let s=l(o,i);return(0,n.Y)(tc,{...e,disableLink:e.disableLink,realtimePriceValue:s})},tw=e=>{let{watchListId:t,watchlistGroupType:l,items:r,currency:a,scrollRef:o,virtualizer:s,virtualRows:c,sorting:d,onChangeSorting:u,isPanelVisible:m}=e,{open:h}=(0,$.e)();return m?0===r.length?(0,n.Y)("div",{className:"lamjqe1",children:(0,n.Y)(i.o,{size:"small",title:"ê´ì¬ ì¢
ëª©ì´ ìì´ì",button:(0,n.Y)(i.o.Button,{"data-tossinvest-log":"Empty.Button","data-contents-label":"ì¶ê°í기","data-contents-label-code":"ì¶ê°í기","data-parent-name":"PanelTableContent","data-contents-value":"ì¶ê°í기",variant:"fill",onClick:()=>{h(e=>{let{isOpen:l,close:r,exit:a}=e;return(0,n.Y)(z.d,{open:l,selectedWatchListId:t,onClose:r,onExited:a})})},children:"ì¶ê°í기"})})}):(0,n.Y)("div",{ref:o,className:"lamjqe2",children:(0,n.FD)(i.a,{fixedColumn:!0,scrollContainer:o.current,children:[(0,n.Y)(X,{sorting:d,onChangeSorting:u}),(0,n.Y)(i.a.Body,{className:(0,N.A)(U.W,"lamjqe3"),style:{height:`${s.getTotalSize()}px`},children:c.map(e=>{let i=r[e.index];return null==i?null:(0,n.Y)(td,{watchListId:t,watchlistGroupType:l,item:i,currency:a,virtualRow:e},e.key)})})]})}):null};var tY=l(50645);let tk=(e,t)=>{let l=eF(e,t),n=ex(e,l),r=eP(e,l);return{base:n,close:r,volume:eD(e),marketCap:eS(e,l)}},tC=e=>null==e?null:e,tN=(e,t,l)=>{switch(t){case"stockName":return e.name??"";case"currentPrice":{let{close:t}=tk(e,l);return tC(t)}case"fluctuationAmount":{let{base:t,close:n}=tk(e,l);if(null==t||null==n||0===t||0===n)return null;return(0,em.Ay)(n).minus(t).toNumber()}case"fluctuationPercent":{let{base:t,close:n}=tk(e,l);if(null==t||null==n||0===t||0===n)return null;return(0,em.Ay)(n).minus(t).toNumber()/t}case"volume":{let{volume:t}=tk(e,l);return tC(t)}case"marketCap":{let{marketCap:t}=tk(e,l);return tC(t)}default:return null}},tI=[],tT=e=>{let{watchListId:t,watchlistGroupType:l,items:a,currency:i,sorting:s,onChangeSorting:c}=e,d=(0,r.useRef)(null),u=(0,r.useRef)([]),{ref:m,isVisible:h}=E(),{setPanelVisibleProductCodes:g,removePanel:p}
1=ec(),{getServerNow:v}=(0,_.W)(),b=a??tI,y=(0,r.useMemo)(()=>{let e=v(),[t,l]=(0,D.j)(b,t=>"OPTION"===t.type?A(t,e):"BOND"===t.type&&L(t,e));return(e=>{let{items:t,sorting:l,currency:n}=e;if(null==l)return t;let{columnId:r,order:a}=l,i=(e,t)=>{if("stockName"===r)return(0,tY.su)(e.name,t.name);if("fluctuationPercent"!==r){let l=(0,Z.gs)(e),n=(0,Z.gs)(t);if(l&&!n)return -1;if(!l&&n)return 1}let l=tN(e,r,n),a=tN(t,r,n);return((e,t)=>null==e&&null==t?0:null==e?1:null==t?-1:e-t)("number"==typeof l?l:null,"number"==typeof a?a:null)};return[...t].sort((e,t)=>"asc"===a?i(e,t):i(t,e))})({items:l,sorting:s,currency:i}).concat(t)},[i,v,b,s]),f=(0,P.Te)({count:h?y.length:0,getScrollElement:()=>d.current,estimateSize:()=>44,overscan:5}),w=f.getVirtualItems(),Y=(e=>{let{items:t,virtualRows:l,isPanelVisible:n}=e;return(0,r.useMemo)(()=>{if(!n)return[];let e=new Set;for(let n of l){let l=t[n.index]?.code;null!=l&&e.add(l)}return Array.from(e)},[n,t,l])})({items:y,virtualRows:w,isPanelVisible:h}),{debouncedValue:k,setValue:C}=(0,F.M)([],200);return(0,r.useEffect)(()=>{(0,S.n)(u.current,Y)||(u.current=Y,C(Y))},[C,Y]),(0,r.useEffect)(()=>(g(t,k),()=>{p(t)}),[k,p,g,t]),(0,n.Y)(ee,{value:{isPanelVisible:h},children:(0,n.Y)("div",{ref:m,className:"lamjqe0",children:null==a?(0,n.Y)(o.t.Table,{children:(0,n.Y)(o.t.TableRows,{count:3})}):(0,n.Y)(tw,{watchListId:t,watchlistGroupType:l,items:y,currency:i,scrollRef:d,virtualizer:f,virtualRows:w,sorting:s,isPanelVisible:h,onChangeSorting:c})})})},tx=e=>{let{children:t,placeholder:l=null,enabled:r=!0,rootMargin:a="300px 0px",threshold:i=.01}=e,{ref:o,isVisible:s}=E({enabled:r,rootMargin:a,threshold:i,once:!0,initialVisible:!1});return(0,n.Y)("div",{ref:o,children:s?t:l})};var tP=l(71556),tD=l(29436),tS=l(1301),tF=l(44655),t_=l(24633);l(51026);let tM=e=>{let{id:t,watchListId:l,watchlistGroupType:r,isEmpty:a=!1,title:o,resizable:s=!1,headerRight:c,children:d}
1=e,{targetRef:u}=(0,h.p)(a?"첫ê´ì¬ì ë":"ê´ì¬ê·¸ë£¹",{ignoreAutoSectionPrefix:!0,params:{viewType:"grid",watchlistId:l,watchlistGroupType:r}}),m=(0,tF._)({viewType:"grid",watchlistId:l,watchlistGroupType:r});return(0,n.FD)(tP.Z,{id:t,children:[(0,n.FD)("div",{ref:(0,t_.P)([u,m]),className:"_10lkj5o1",children:[(0,n.FD)("div",{className:"_10lkj5o2",children:[(0,n.Y)(tD.S,{"data-panel-mover":!0,className:"_10lkj5o0",children:(0,n.Y)(i.n,{title:(0,n.Y)(i.n.Title,{children:o}),typography:"h7"})}),null!=c?(0,n.Y)("div",{className:"_10lkj5o3",children:c}):null]}),(0,n.Y)("div",{className:"_10lkj5o5",children:d})]}),s?(0,n.Y)(tS.X,{direction:"vertical",className:"_10lkj5o6",children:(0,n.Y)("div",{className:"_10lkj5o7"})}):null]})},tV=e=>{let{watchListGroups:t,currency:l,isResizable:r,isMeasured:a,columnCount:i,gridState:o,onGridStateChange:s,gridViewDataById:c,getSorting:d,onChangeSorting:u}=e;return a?(0,n.Y)(Y.x,{columnCount:i,gridState:o,onGridStateChange:s,children:t.map(e=>{let t=c?.get(e.id),i=t?.items?.some(e=>"OPTION"===e.type)??!1;return(0,n.Y)(tM,{id:e.id.toString(),watchListId:e.id,watchlistGroupType:e.type,isEmpty:t?.items!=null&&0===t.items.length,title:e.name,resizable:r,headerRight:i?(0,n.Y)(x,{className:"_10lkj5o4",color:k.t.grey600}):null,children:(0,n.Y)(tx,{enabled:a,children:(0,n.Y)(tT,{watchListId:e.id,watchlistGroupType:e.type,items:t?.items,currency:l,sorting:d(e.id),onChangeSorting:t=>u(e.id,t)})})},e.id)})}):null},tH=e=>{let{children:t}=e;return(0,n.Y)(es,{children:(0,n.Y)(eu,{children:t})})};var tW=l(27685),tA=l(10938),tL=l(37401),tE=l(77986),tR=l(5933);let tO=(e,t)=>{let l=new Map(e.map(e=>[e.id,e])),n=t.map(e=>l.get(e)).filter(e=>null!=e);return n.length>0?n:e},tq=e=>(window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)),tj=()=>window.innerWidth,tK=()=>1600,tB=e=>{let{watchListGroups:t,columnCount:l,isFillHeight:n,containerHeight:r}=e,a=[],i=Math.ceil(t.length/l),o=t.map((e,t)=>({id:e.id.toString(),column:t%l,row:Math.floor(t/l),columnSpan:1,rowSpan:1})),s=n&&r>0?r-16:560;return a.push(...Array.from({length:i},()=>s)),{panels:o,rowHeights:a}};l(24907);let t$=e=>{let{watchListGroups:t,currency:l}=e,a=t.length,i=((e,t)=>t<=2?t:e>=2800?Math.min(5,t):e>=2380?Math.min(4,t):e>=1600?Math.min(3,t):2)((0,r.useSyncExternalStore)(tq,tj,tK),a),o=a>i,s=!o&&a<=2,[c,{height:d,width:u}]=(0,f.A)(),{gridState:m,setGridState:h}=(e=>{let{watchListGroups:t,columnCount:l,isFillHeight:n,containerHeight:a}=e,[i,o]=(0,r.useState)(()=>tB({watchListGroups:t,columnCount:l,isFillHeight:n,containerHeight:a})),s=(0,r.useRef)(null);return(0,r.useEffect)(()=>{o(e=>{let r=tB({watchListGroups:t,columnCount:l,isFillHeight:n,containerHeight:a});return((e,t)=>{let l=e.panels,n=t.panels,r=e.rowHeights,a=t.rowHeights;if(null==l||null==n||null==r||null==a||l.length!==n.length||r.length!==a.length)return!1;let i=new Set(n.map(e=>e.id));return l.every(e=>i.has(e.id))})(e,r)?{...r,rowHeights:e.rowHeights}:r})},[t,l,n,a]),(0,r.useEffect)(()=>{n&&!(a<=0)&&o(e=>{if(null==s.current)return(e=>null==e||e.every(e=>560===e))(e.rowHeights)?(s.current=a,tB({watchListGroups:t,columnCount:l,isFillHeight:n,containerHeight:a})):e;let r=tB({watchListGroups:t,columnCount:l,isFillHeight:n,containerHeight:s.current});return((e,t)=>null==e||null==t?e===t:e.length===t.length&&e.every((e,l)=>e===t[l]))(e.rowHeights,r.rowHeights)?(s.current=a,tB({watchListGroups:t,columnCount:l,isFillHeight:n,containerHeight:a})):e})},[l,a,n,t]),{gridState:i,setGridState:o}})({watchListGroups:t,columnCount:i,isFillHeight:s,containerHeight:d}),g=t.map(e=>e.id),{data:p}=(0,w.O)(g),v=(e=>(0,r.useMemo)(()=>{if(null==e)return null;let t=new Map;for(let l of e)t.set(l.id,l);return t},[e]))(p),{getSorting:b,onChangeSorting:y}=(e=>{let[t,l]=(0,r.useState)({}),[n]=(0,tA.E)({namespace:tW.N.SHARED,key:tW.l.SHARED.LAST_SELECTED_WATCH_LIST_SORTING_RULE,defaultValue:eI.Ig.ì¶ê°í_ì}),a=(0,r.useMemo)(()=>(e=>{switch(e){case eI.Ig.ê°ëë¤_ì:return{columnId:"stockName",order:"asc"};case eI.Ig.íì¬ê°_ëì_ì:return{columnId:"currentPrice",order:"desc"};case eI.Ig.ë±ë½ë¥ _ëì_ì:return{columnId:"fluctuationPercent",order:"desc"};case eI.Ig.ì¶ê°í_ì:case eI.Ig.ì§ì _ì¤ì í_ì:default:return}})(n),[n]),i=(0,r.useMemo)(()=>new Set(e.map(e=>e.id)),[e]);(0,r.useEffect)(()=>
1{l(e=>{let t={};return Object.entries(e).forEach(e=>{let[l,n]=e,r=Number(l);i.has(r)&&null!=n&&(t[r]=n)}),t})},[i]);let o=(0,r.useCallback)((e,t)=>{l(l=>{let n=((e,t)=>e?.columnId!==t?{columnId:t,order:"desc"}:"desc"===e.order?{columnId:t,order:"asc"}:void 0)(l[e]??a,t);if(null==n){let{[e]:t,...n}=l;return n}return{...l,[e]:n}})},[a]);return{getSorting:(0,r.useCallback)(e=>t[e]??a,[t,a]),onChangeSorting:o}})(t),Y=(e=>{let{data:t}=(0,tE.A)(),{mutate:l}=(0,tL.n)({invalidateGridView:!1});return(0,r.useCallback)(n=>{let r=n.panels.map(e=>Number(e.id)),a=e.map(e=>e.id);if((0,S.n)(r,a)||null==t)return;(e=>{let{prevOrderIds:t,nextOrderIds:l}=e;w.O.set(t,e=>null==e?e:tO(e,l))})({prevOrderIds:a,nextOrderIds:r});let i=((e,t)=>{let l,n=new Map(t.map((e,t)=>[e,t])),r=0;for(let t=0;t<e.length;t++){let a=Math.abs((n.get(e[t])??t)-t);a>r&&(r=a,l=e[t])}return l})(a,r),o=e.find(e=>e.id===i)?.type;if(null!=i&&null!=o&&(0,eh.z7)({logType:"event",params:{sectionName:"ê´ì¬ê·¸ë£¹",content:"그룹ìì¹ë³ê²½",viewType:"grid",component:"LongPress",watchlistId:i,watchlistGroupType:o}}),null==i)return;let s=tO(t,r);l({...(0,tR.n)(s,i),optimisticData:s})},[l,e,t])})(t);return(0,n.Y)("div",{ref:c,className:"_84j68j0",children:(0,n.Y)(tH,{children:(0,n.Y)(tV,{watchListGroups:t,currency:l,isResizable:!o,isMeasured:u>0&&d>0,columnCount:i,gridState:m,gridViewDataById:v,getSorting:b,onChangeSorting:y,onGridStateChange:e=>{h(e),Y(e)}})})})};var tU=l(96646),tz=l.n(tU);l(74930),l(84660);let tG=e=>{let{children:t,className:l}=e;return(0,n.FD)("div",{className:(0,N.A)("g2lgwh0",l),children:[(0,n.Y)(tz(),{children:(0,n.Y)("title",{children:"í ì¤ì¦ê¶ | ê´ì¬ì¢
목"})}),t]})};var tX=l(55767),tQ=l(21627),tZ=l(76844),tJ=l(92255);let t0={current:"current",estimated:"estimated",overtime:"overtime"},t1={market:(0,tJ.eU)("all"),priceMode:(0,tJ.eU)(t0.current),currency:(0,tJ.eU)(void 0),lastSortingRule:(0,tJ.eU)(void 0),sortingInfo:(0,tJ.eU)(void 0)},t5=()=>{let{data:e}=(0,tZ.o)(),[t,l]=(0,tQ.fp)(t1.currency);return{currency:t??e,setCurrency:l}};var t2=l(45887);let t4=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{syncQueryParam:l=!0}=t,[n,a]=(0,t2.useQueryParam)("id",t2.NumberParam,{updateType:"replaceIn"}),i=e?.[0]?.id,o=n??i;return(0,r.useEffect)(()=>{if(null==e)return;if(!l){null!=n&&a(void 0);return}let t=null!=n&&e.some(e=>e.id===n)?n:e[0].id;n!==t&&a(t)},[n,a,l,e]),{selectedWatchListId:o,setSelectedWatchListId:a}},t8={kr:"kr",us:"us","us-bond":"us-bond","us-opt":"us-opt",index:"index",all:"all"},t7=e=>{let{selectedMarket:t,setSelectedMarket:l,hasIndex:r=!1}=e;return(0,n.FD)(i.m,{size:"small",value:t,style:{width:"316px"},onValueChange:e=>{l(e)},children:[(0,n.Y)(i.m.Item,{"data-tossinvest-log":"SegmentedControl.Item","data-contents-label":"ì ì²´","data-contents-label-code":"ì ì²´","data-content-value":"ì ì²´","data-parent-name":"MarketFilter","data-component-id":"5yqbg3h2q9db",value:t8.all,children:"ì ì²´"}),(0,n.Y)(i.m.Item,{"data-tossinvest-log":"SegmentedControl.Item","data-contents-label":"êµë´ì£¼ì","data-contents-label-code":"êµë´ì£¼ì","data-content-value":"êµë´ì£¼ì","data-parent-name":"MarketFilter","data-component-id":"3ngm9k7054wr",value:t8.kr,children:"êµë´ì£¼ì"}),(0,n.Y)(i.m.Item,{"data-tossinvest-log":"SegmentedControl.Item","data-contents-label":"í´ì¸ì£¼ì","data-contents-label-code":"í´ì¸ì£¼ì","data-content-value":"í´ì¸ì£¼ì","data-parent-name":"MarketFilter","data-component-id":"tqqvn61qt45k",value:t8.us,children:"í´ì¸ì£¼ì"}),(0,n.Y)(i.m.Item,{"data-tossinvest-log":"SegmentedControl.Item","data-contents-label":"ì±ê¶","data-contents-label-code":"ì±ê¶","data-content-value":"ì±ê¶","data-parent-name":"MarketFilter","data-component-id":"k0jsyd0310f5",value:t8["us-bond"],children:"ì±ê¶"}),r?(0,n.Y)(i.m.Item,{"data-tossinvest-log":"SegmentedControl.Item","data-contents-label":"ì§ì","data-contents-label-code":"ì§ì","data-content-value":"ì§ì","data-
1parent-name":"MarketFilter","data-component-id":"b2darlac37lt",value:t8.index,children:"ì§ì"}):void 0,(0,n.Y)(i.m.Item,{"data-tossinvest-log":"SegmentedControl.Item","data-contents-label":"ìµì
","data-contents-label-code":"ìµì
","data-content-value":"ìµì
","data-parent-name":"MarketFilter","data-component-id":"xj2ro1oj8k9w",value:t8["us-opt"],children:"ìµì
"})]})},t6=e=>{let{selectedPriceMode:t,setSelectedPriceMode:l}=e,a=(0,r.useCallback)(e=>{l(e)},[l]);return(0,n.FD)(i.m,{fit:!0,size:"small",value:t,style:{width:"126px"},onValueChange:a,children:[(0,n.Y)(i.m.Item,{"data-tossinvest-log":"SegmentedControl.Item","data-contents-label":"íì¬ê°","data-contents-label-code":"íì¬ê°","data-content-value":"íì¬ê°","data-parent-name":"PriceModeFilter","data-component-id":"6bkeanqvcycn",value:t0.current,children:"íì¬ê°"}),(0,n.FD)(eq.t,{openDelay:0,children:[(0,n.Y)(eq.t.Trigger,{"data-tossinvest-priority-log":"Tooltip.Trigger","data-content-value":"ììì²´ê²°ê°ë êµë´ì¢
ëª©ë§ ë³´ì¬ì","data-parent-name":"PriceModeFilter","data-component-id":"1cwzjowpffyw",children:(0,n.Y)(i.m.Item,{"data-tossinvest-log":"SegmentedControl.Item","data-contents-label":"ììì²´ê²°","data-contents-label-code":"ììì²´ê²°","data-content-value":"ììì²´ê²°","data-parent-name":"PriceModeFilter","data-component-id":"dpwfbky5gzoc",value:t0.estimated,children:"ììì²´ê²°"})}),(0,n.Y)(eq.t.Content,{"data-overlay-type":"Tooltip",side:"top",align:"center",flexDirection:"row",variant:"compact",children:(0,n.Y)(eq.t.Title,{children:"ììì²´ê²°ê°ë êµë´ì¢
ëª©ë§ ë³´ì¬ì"})})]})]})};var t9=l(19490),t3=l(98847),le=l(3585),lt=l(24792),ll=l(65729),ln=l(94157),lr=l(42902);l(72194);var la="_59sre70",li="_59sre73";let lo=e=>{let{base:t,close:l}=e;return null==t||null==l||0===t?0:(0,em.Ay)(l).minus(t).div(t).toNumber()},ls=e=>null==e?"grey":["asc","desc"].includes(e)?"blue":"grey",lc=(e,t,l,n)=>null==e?"-":(0,eI.O8)(t)&&"CRYPTO"!==t.type?(0,eZ.op)(e,t,{sign:n?.sign}):(0,ey.$g)(e,l,n),ld=(e,t,l)=>{let n=(0,eI.O8)(e),r=(0,eI.O8)(t);return n&&!r?-1:!n&&r?1:(l(e)??0)-(l(t)??0)},lu=e=>{let{maturityDateTime:t,color:l=k.t.grey600}=e,r=(0,eV.h)({maturityDateTime:t});return r?(0,n.Y)(C.t,{typography:"xsmall",color:l,fontWeight:"medium",className:li,children:r}):null},lm={stockName:{id:"stockName",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-content-value":null==l?"ì¢
목ëª
":"ê°ëë¤ ì","data-component-id":"e1t9h2nkfjn1",className:(0,N.A)(la,a),style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:null==l?"ì¢
목ëª
":"ê°ëë¤ ì"},t)},cell:e=>{let{key:t,item:l,isInactive:r,className:a,style:o}=e,s="OPTION"===l.type,c="BOND"===l.type&&"maturityDateTime"in l&&null!=l.maturityDateTime,d=(0,eI.O8)(l),u=r?k.t.grey600:k.t.grey800,m=r?k.t.grey500:k.t.grey600;return(0,n.FD)(i.a.Cell,{className:(0,N.A)(la,a),style:o,children:[(0,n.Y)(ev.g,{code:l.code,url:l.logoImageUrl,size:24,optionType:s?l.optionType:void 0,alt:l.name}),(0,n.FD)("div",{className:"_59sre71",children:[(0,n.Y)(C.t,{typography:"small",color:u,fontWeight:"semibold",className:(0,N.A)((0,eb.I)({lines:1}),"_59sre72"),children:l.name}),s?(0,n.Y)(C.t,{typography:"xsmall",color:m,fontWeight:"medium",className:li,children:(0,n.Y)(eH.u,{highlightIfUnderOneHour:!0,optionLiquidation:l.optionLiquidation})}):null,c?(0,n.Y)(lu,{maturityDateTime:l.maturityDateTime,color:m}):null,d?(0,n.Y)(C.t,{typography:"xsmall",color:m,fontWeight:"medium",className:li,children:l.category}):null]}),null==l.symbol||d?null:(0,n.Y)(C.t,{typography:"xsmall",color:k.t.grey500,fontWeight:"medium",className:li,children:l.symbol})]},t)},sortingFn:(e,t)=>(0,tY.su)(e.name,t.name)},miniChart:{id:"miniChart",header:e=>{let{key:t,className:l,style:r}=e;return(0,n.Y)(i.a.HCell,{theme:"grey",className:l,style:r,align:"start",children:"ì°¨í¸"},t)},cell:e=>{let{key:t,item:l,className:r,style:a}=e;return(0,n.Y)(i.a.Cell,{className:r,style:a,align:"start",children:(0,n.Y)(ln.G,{filled:!0,code:l.code,data:l.miniChart,color:eB.x[Math.sign((0,em.Ay)((0,eZ.bd)(l,"close","krw")??0).minus((0,eZ.bd)(l,"base","krw")??0).toNumber())],width:80,height:38,paddingY:0,scale:1,disableDefaultSpread:(0,eI.O8)(l)})},t)}},openPrice:{id:"openPrice",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o,priceMode:s}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-content-value":(0,ll.YW)(s).with("current","estimated",()=>"ìê°").with("overtime",()=>"ìê°ì¸ìê°").exhaustive(),"data-component-id":"lsetqqrmsuq3",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:(0,ll.YW)(s).with("current","estimated",()=>"ìê°").with("overtime",()=>"ìê°ì¸ìê°").exhaustive()},t)},cell:e=>{let{key:t,item:l,currency:r,className:a,style:o,priceMode:s,isInactive:c}=e;if(c)return(0,n.Y)(i.a.Cell,{align:"end",className:a,style:o,children:"-"},t);let d=(0,ll.YW)(s).with("current","estimated",()=>(0,eZ.bd)(l,"open",r)).with("overtime",()=>(0,eZ.bd)(l,"overtimeMarketOpen",r)).exhaustive();return(0,n.Y)(i.a.Cell,{align:"end",className:a,style:o,children:lc(d,l,r)},t)},sortingFn:(e,t,l)=>{let{priceMode:n}=l;return ld(e,t,e=>(0,ll.YW)(n).with("current","estimated",()=>(0,eZ.bd)(e,"open","krw")).with("overtime",()=>(0,eZ.bd)(e,"overtimeMarketOpen","krw")).exhaustive())}},closingPrice:{id:"basePrice",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-contents-label":"ì¢
ê°","data-contents-label-code":"ì¢
ê°","data-content-value":"ì¢
ê°","data-component-id":"irs5u4e55hmy",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:"ì¢
ê°"},t)},cell:e=>{let{key:t,item:l,currency:r,className:a,style:o,priceMode:s,isInactive:c}=e;if(c)return(0,n.Y)(i.a.Cell,{className:a,style:o,align:"end",children:"-"},t);let d=(0,ll.YW)(s).with("current","estimated",()=>(0,eZ.bd)(l,"close",r)).with("overtime",()=>(0,eZ.bd)(l,"overtimeMarketClose",r)).exhaustive();return(0,n.Y)(i.a.Cell,{className:a,style:o,align:"end",children:lc(d,l,r)},t)},sortingFn:(e,t,l)=>{let{priceMode:n}=l;return ld(e,t,e=>(0,ll.YW)(n).with("current","estimated",()=>(0,eZ.bd)(e,"close","krw")).with("overtime",()=>(0,eZ.bd)(e,"overtimeMarketClose","krw")).exhaustive())}},currentPrice:{id:"currentPrice",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o,priceMode:s,exchangeType:c}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-content-value":(0,ll.YW)(s).with("current",()=>"íì¬ê°").with("estimated",()=>c!==lt.U.KRX?"ììì²´ê²°ê° (KRX)":"ììì²´ê²°ê°").with("overtime",()=>c!==lt.U.KRX?"ìê°ì¸ë¨ì¼ê° (KRX)":"ìê°ì¸ë¨ì¼ê°").exhaustive(),"data-component-id":"qod3olqr4u5h",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),align:"end",onClick:r,children:(0,ll.YW)(s).with("current",()=>"íì¬ê°").with("estimated",()=>c!==lt.U.KRX?"ììì²´ê²°ê° (KRX)":"ììì²´ê²°ê°").with("overtime",()=>c!==lt.U.KRX?"ìê°ì¸ë¨ì¼ê° (KRX)":"ìê°ì¸ë¨ì¼ê°").exhaustive()},t)},cell:e=>{let{key:t,item:l,currency:r,isInactive:a,className:o,style:s,priceMode:c,tradingStatus:d}=e;if(a)return(0,n.Y)(i.a.Cell,{className:o,style:s,align:"end",children:(0,n.Y)(C.t,{typography:"small",color:k.t.grey600,fontWeight:"medium",children:"-"})},t);let u=(0,er.v)(l.code)&&(d===t9.YN.ì íí°ë§ì¼||d===t9.YN.ì íí°ë§ì¼ì¢
ë£),m=(0,ll.YW)(c).with("current",()=>u?(0,eZ.bd)(l,"afterMarketClose",r):(0,eZ.bd)(l,"close",r)).with("estimated",()=>(0,eZ.bd)(l,"estimatedPrice",r)).with("overtime",()=>(0,eZ.bd)(l,"overtimeMarketClose",r)).exhaustive();return(0,n.Y)(i.a.Cell,{className:o,style:s,align:"end",children:lc(m,l,r)},t)},sortingFn:(e,t,l)=>{let{priceMode:n,tradingStatus:r}=l;return ld(e,t,e=>(0,ll.YW)(n).with("current",()=>(0,er.v)(e.code)&&(r===t9.YN.ì íí°ë§ì¼||r===t9.YN.ì íí°ë§ì¼ì¢
ë£)?(0,eZ.bd)(e,"afterMarketClose","krw"):(0,eZ.bd)(e,"close","krw")).with("estimated",()=>(0,eZ.bd)(e,"estimatedPrice","krw")).with("overtime",()=>(0,eZ.bd)(e,"overtimeMarketClose","krw")).exhaustive())}},fluctuationPercent:{id:"fluctuationPercent",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o,priceMode:s}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-content-value":(0,ll.YW)(s).with("current",()=>"ë±ë½ë¥ ").with("estimated",()=>"ììì²´ê²° ë±ë½ë¥ ").with("overtime",()=>
1"ìê°ì¸ ë±ë½ë¥ ").exhaustive(),"data-component-id":"sg5tnoafmo5q",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:(0,ll.YW)(s).with("current",()=>"ë±ë½ë¥ ").with("estimated",()=>"ììì²´ê²° ë±ë½ë¥ ").with("overtime",()=>"ìê°ì¸ ë±ë½ë¥ ").exhaustive()},t)},cell:e=>{let{key:t,item:l,isInactive:r,className:a,style:o,priceMode:s,tradingStatus:c}=e;if(r)return(0,n.Y)(i.a.Cell,{align:"end",className:a,style:o,children:(0,n.Y)(C.t,{typography:"small",color:k.t.grey600,fontWeight:"medium",children:"-"})},t);let d=(0,er.Q5)(l.code)?"krw":"usd",u=(0,er.v)(l.code)&&(c===t9.YN.ì íí°ë§ì¼||c===t9.YN.ì íí°ë§ì¼ì¢
ë£),m=(0,ll.YW)(s).with("current",()=>u?(0,eZ.bd)(l,"afterMarketBase",d):(0,eZ.bd)(l,"base",d)).with("estimated",()=>(0,eZ.bd)(l,"base",d)).with("overtime",()=>(0,eZ.bd)(l,"overtimeMarketBase",d)).exhaustive(),h=(0,ll.YW)(s).with("current",()=>u?(0,eZ.bd)(l,"afterMarketClose",d):(0,eZ.bd)(l,"close",d)).with("estimated",()=>(0,eZ.bd)(l,"estimatedPrice",d)).with("overtime",()=>(0,eZ.bd)(l,"overtimeMarketClose",d)).exhaustive();return null==m||null==h||0===h||0===m?(0,n.Y)(i.a.Cell,{align:"end",className:a,style:o,children:"-"},t):(0,n.Y)(i.a.Cell,{align:"end",className:a,style:o,children:(0,n.Y)("span",{style:{color:eB.x[Math.sign((0,em.Ay)(h).minus(m).toNumber())]},children:(0,e$.uA)({base:m,close:h},{sign:!0})})},t)},sortingFn:(e,t,l)=>{let{priceMode:n,tradingStatus:r}=l,a=(0,er.v)(e.code)&&(r===t9.YN.ì íí°ë§ì¼||r===t9.YN.ì íí°ë§ì¼ì¢
ë£),i=(0,ll.YW)(n).with("current",()=>a?{base:(0,eZ.bd)(e,"afterMarketBase","krw"),close:(0,eZ.bd)(e,"afterMarketClose","krw")}:{base:(0,eZ.bd)(e,"base","krw"),close:(0,eZ.bd)(e,"close","krw")}).with("estimated",()=>({base:(0,eZ.bd)(e,"base","krw"),close:(0,eZ.bd)(e,"estimatedPrice","krw")})).with("overtime",()=>({base:(0,eZ.bd)(e,"overtimeMarketBase","krw"),close:(0,eZ.bd)(e,"overtimeMarketClose","krw")})).exhaustive(),o=(0,ll.YW)(n).with("current",()=>a?{base:(0,eZ.bd)(t,"afterMarketBase","krw"),close:(0,eZ.bd)(t,"afterMarketClose","krw")}:{base:(0,eZ.bd)(t,"base","krw"),close:(0,eZ.bd)(t,"close","krw")}).with("estimated",()=>({base:(0,eZ.bd)(t,"base","krw"),close:(0,eZ.bd)(t,"estimatedPrice","krw")})).with("overtime",()=>({base:(0,eZ.bd)(t,"overtimeMarketBase","krw"),close:(0,eZ.bd)(t,"overtimeMarketClose","krw")})).exhaustive();return lo({base:i.base,close:i.close})-lo({base:o.base,close:o.close})}},fluctuationPrice:{id:"fluctuationPrice",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o,priceMode:s}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-content-value":(0,ll.YW)(s).with("current",()=>"ë±ë½ì¡").with("estimated",()=>"ììì²´ê²° ë±ë½ì¡").with("overtime",()=>"ìê°ì¸ ë±ë½ì¡").exhaustive(),"data-component-id":"5dhtfaln12eq",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:(0,ll.YW)(s).with("current",()=>"ë±ë½ì¡").with("estimated",()=>"ììì²´ê²° ë±ë½ì¡").with("overtime",()=>"ìê°ì¸ ë±ë½ì¡").exhaustive()},t)},cell:e=>{let{key:t,item:l,currency:r,isInactive:a,className:o,style:s,priceMode:c,tradingStatus:d}=e;if(a)return(0,n.Y)(i.a.Cell,{align:"end",className:o,style:s,children:(0,n.Y)(C.t,{typography:"small",color:k.t.grey600,fontWeight:"medium",children:"-"})},t);let u=(0,er.v)(l.code)&&(d===t9.YN.ì íí°ë§ì¼||d===t9.YN.ì íí°ë§ì¼ì¢
ë£),m=(0,ll.YW)(c).with("current",()=>u?(0,eZ.bd)(l,"afterMarketBase",r):(0,eZ.bd)(l,"base",r)).with("estimated",()=>(0,eZ.bd)(l,"base",r)).with("overtime",()=>(0,eZ.bd)(l,"overtimeMarketBase",r)).exhaustive(),h=(0,ll.YW)(c).with("current",()=>u?(0,eZ.bd)(l,"afterMarketClose",r):(0,eZ.bd)(l,"close",r)).with("estimated",()=>(0,eZ.bd)(l,"estimatedPrice",r)).with("overtime",()=>(0,eZ.bd)(l,"overtimeMarketClose",r)).exhaustive();if(null==m||null==h||0===h||0===m)return(0,n.Y)(i.a.Cell,{align:"end",className:o,style:s,children:"-"},t);let g=(0,em.Ay)(h).minus(m),p=(0,em.Ay)(h).gt(1)?{sign:!0,decimalExtendUnderOneDollar:!1}:{sign:!0};return(0,n.Y)(i.a.Cell,{align:"end",className:o,style:s,children:(0,n.Y)("span",{style:{color:eB.x[Math.sign(g.toNumber())]},children:lc(g.toNumber(),l,r,p)})},t)},sortingFn:(e,t,l)=>{let{priceMode:n,tradingStatus:r}=l;return ld(e,t,e=>{let t=(0,er.v)(e.code)&&(r===t9.YN.ì íí°ë§ì¼||r===t9.YN.ì íí°ë§ì¼ì¢
ë£),l=(0,ll.YW)(n).with("current",()=>t?{base:(0,eZ.bd)(e,"afterMarketBase","krw"),close:(0,eZ.bd)(e,"afterMarketClose","krw")}:{base:(0,eZ.bd)(e,"base","krw"),close:(0,eZ.bd)(e,"close","krw")}).with("estimated",()=>({base:(0,eZ.bd)(e,"base","krw"),close:(0,eZ.bd)(e,"estimatedPrice","krw")})).with("overtime",()=>({base:(0,eZ.bd)(e,"overtimeMarketBase","krw"),close:(0,eZ.bd)(e,"overtimeMarketClose","krw")})).exhaustive();return(e=>{let{base:t,close:l}=e;return null==t||null==l?0:(0,em.Ay)(l).minus(t).toNumber()})({base:l.base,close:l.close})})}},tradingVolume:{id:"tradingVolume",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-contents-label":"1ì¼ ê±°ëë","data-contents-label-code":"1ì¼ ê±°ëë","data-content-value":"1ì¼ ê±°ëë","data-component-id":"4dibqzj2
1c8d9",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:"1ì¼ ê±°ëë"},t)},cell:e=>{let{key:t,item:l,className:r,style:a}=e;return(0,n.Y)(i.a.Cell,{align:"end",className:r,style:a,children:eX({assetType:l.type,volume:(0,eZ.ON)(l)})},t)},sortingFn:(e,t)=>ld(e,t,e=>(0,eZ.ON)(e))},tradingVolumeFluctuation:{id:"tradingVolumeFluctuation",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-contents-label":"ê±°ëë(ì´ì ë³´ë¤)","data-contents-label-code":"ê±°ëë(ì´ì ë³´ë¤)","data-content-value":"ê±°ëë(ì´ì ë³´ë¤)","data-component-id":"fifka0ren7nr",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:"ê±°ëë(ì´ì ë³´ë¤)"},t)},cell:function(e){let{key:t,item:l,className:r,style:a}=e,o=(0,eZ.pF)(l),s=(0,eZ.ON)(l),{us:c}=(0,lr.D)(),d=(0,er.v)(l.code)&&[t9.YN.ë°ì´ë§ì¼,t9.YN.ë°ì´ë§ì¼ì¢
ë£].includes(c??"");if(null==o||null==s||0===o||d)return(0,n.Y)(i.a.Cell,{align:"end",className:r,style:a,children:"-"},t);let u=(0,em.Ay)(s).div(o).times(100).round(2,em.Ay.roundHalfUp).toFixed(2);return(0,n.FD)(i.a.Cell,{align:"end",className:r,style:a,children:[u,"%"]},t)},sortingFn:(e,t)=>ld(e,t,e=>(e=>{let{current:t,prev:l}=e;return null==t||null==l||0===l?0:(0,em.Ay)(t).div(l).toNumber()})({current:(0,eZ.ON)(e),prev:(0,eZ.pF)(e)}))},tradingStrength:{id:"tradingStrength",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-contents-label":"ì²´ê²°ê°ë","data-contents-label-code":"ì²´ê²°ê°ë","data-content-value":"ì²´ê²°ê°ë","data-component-id":"5x4fmw3oq19t",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:"ì²´ê²°ê°ë"},t)},cell:e=>{let{key:t,item:l,className:r,style:a}=e;return(0,n.Y)(i.a.Cell,{align:"end",className:r,style:a,children:(()=>{let e=(0,eZ.ay)(l);return null==e?"-":`${(0,M.Nq)(e.toFixed(2))}%`})()},t)},sortingFn:(e,t)=>ld(e,t,e=>(0,eZ.ay)(e))},netForeignerBuyVolume:{id:"netForeignerBuyVolume",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-contents-label":"ì¸êµì¸ ê±°ëë","data-contents-label-code":"ì¸êµì¸ ê±°ëë","data-content-value":"ì¸êµì¸ ê±°ëë","data-component-id":"h5xalpes9c5k",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:"ì¸êµì¸ ê±°ëë"},t)},cell:e=>{let{key:t,item:l,className:r,style:a}=e,o=(0,eZ.LP)(l,"foreigner");return(0,n.Y)(i.a.Cell,{align:"end",className:r,style:a,children:(0,n.Y)("span",{style:{color:eB.x[Math.sign(o??0)]},children:null==o?"-":`${(0,e$.ZV)(o,{sign:!0})}주`})},t)},sortingFn:(e,t)=>ld(e,t,e=>(0,eZ.LP)(e,"foreigner"))},netInstitutionBuyVolume:{id:"netInstitutionBuyVolume",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-contents-label":"ê¸°ê´ ê±°ëë","data-contents-label-code":"ê¸°ê´ ê±°ëë","data-content-value":"ê¸°ê´ ê±°ëë","data-component-id":"eh04igmwjh19",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:"ê¸°ê´ ê±°ëë"},t)},cell:e=>{let{key:t,item:l,className:r,style:a}=e,o=(0,eZ.LP)(l,"institution");return(0,n.Y)(i.a.Cell,{align:"end",className:r,style:a,children:(0,n.Y)("span",{style:{color:eB.x[Math.sign(o??0)]},children:null==o?"-":`${(0,e$.ZV)(o,{sign:!0})}주`})},t)},sortingFn:(e,t)=>ld(e,t,e=>(0,eZ.LP)(e,"institution"))},netIndividualBuyVolume:{id:"netIndividualBuyVolume",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-contents-label":"ê°ì¸ ê±°ëë","data-contents-label-code":"ê°ì¸ ê±°ëë","data-content-value":"ê°ì¸ ê±°ëë","data-component-id":"vkirnfrn3kb3",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:"ê°ì¸ ê±°ëë"},t)},cell:e=>{let{key:t,item:l,className:r,style:a}=e,o=(0,eZ.LP)(l,"individual");return(0,n.Y)(i.a.Cell,{align:"end",className:r,style:a,children:(0,n.Y)("span",{style:{color:eB.x[Math.sign(o??0)]},children:null==o?"-":`${(0,e$.ZV)(o,{sign:!0})}주`})},t)},sortingFn:(e,t)=>ld(e,t,e=>(0,eZ.LP)(e,"individual"))},dailyHigh:{id:"dailyHigh",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o,priceMode:s}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-content-value":(0,ll.YW)(s).with("current","estimated",()=>"1ì¼ ìµê³ ").with("overtime",()=>"ìê°ì¸ìµê³ ").exhaustive(),"data-component-id":"d6gdc53s0jbx",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:(0,ll.YW)(s).with("current","estimated",()=>"1ì¼ ìµê³ ").with("overtime",()=>"ìê°ì¸ìµê³ ").exhaustive()},t)},cell:e=>{let{key:t,item:l,currency:r,className:a,style:o,priceMode:s}=e,c=(0,ll.YW)(s).with("current","estimated",()=>(0,eZ.bd)(l,"dailyHigh",r)).with("overtime",()=>(0,eZ.bd)(l,"overtimeMarketHigh",r)).exhaustive();return(0,n.Y)(i.a.Cell,{align:"end",className:a,style:o,children:lc(c,l,r)},t)},sortingFn:(e,t,l)=>{let{priceMode:n}=l;return ld(e,t,e=>(0,ll.YW)(n).with("current","estimated",()=>(0,eZ.bd)(e,"dailyHigh","krw")).with("overtime",()=>(0,eZ.bd)(e,"overtimeMarketHigh","krw")).exhaustive())}},dailyLow:{id:"dailyLow",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o,priceMode:s}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-content-value":(0,ll.YW)(s).with("current","estimated",()=>"1ì¼ ìµì ").with("overtime",()=>"ìê°ì¸ìµì ").exhaustive(),"data-component-id":"xzt0f6kvqa51",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:(0,ll.YW)(s).with("current","estimated",()=>"1ì¼ ìµì ").with("overtime",()=>"ìê°ì¸ìµì ").exhaustive()},t)},cell:e=>{let{key:t,item:l,currency:r,className:a,style:o,priceMode:s}=e,c=(0,ll.YW)(s).with("current","estimated",()=>(0,eZ.bd)(l,"dailyLow",r)).with("overtime",()=>(0,eZ.bd)(l,"overtimeMarketLow",r)).exhaustive();return(0,n.Y)(i.a.Cell,{align:"end",className:a,style:o,children:lc(c,l,r)},t)},sortingFn:(e,t,l)=>{let{priceMode:n}=l;return ld(e,t,e=>(0,ll.YW)(n).with("current","estimated",()=>(0,eZ.bd)(e,"dailyLow","krw")).with("overtime",()=>(0,eZ.bd)(e,"overtimeMarketLow","krw")).exhaustive())}},high52w:{id:"high52w",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-contents-label":"52주 ìµê³ ","data-contents-label-code":"52주 ìµê³ ","data-content-value":"52주 ìµê³ ","data-component-id":"xrvz5gdn1u8a",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:"52주 ìµê³ "},t)},cell:e=>{let{key:t,item:l,currency:r,className:a,style:o}=e,s=(0,eZ.bd)(l,"high52w",r);return(0,n.Y)(i.a.Cell,{align:"end",className:a,style:o,children:lc(s,l,r)},t)},sortingFn:(e,t)=>ld(e,t,e=>(0,eZ.bd)(e,"high52w","krw"))},low52w:{id:"low52w",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-contents-label":"52주 ìµì ","data-contents-label-code":"52주 ìµì ","data-content-value":"52주 ìµì ","data-component-id":"053mx9cnfhoq",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:"52주 ìµì "},t)},cell:e=>{let{key:t,item:l,currency:r,className:a,style:o}=e,s=(0,eZ.bd)(l,"low52w",r);return(0,n.Y)(i.a.Cell,{align:"end",className:a,style:o,children:lc(s,l,r)},t)},sortingFn:(e,t)=>ld(e,t,e=>(0,eZ.bd)(e,"low52w","krw"))},marketCap:{id:"marketCap",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-contents-label":"ìê°ì´ì¡","data-contents-label-code":"ìê°ì´ì¡","data-content-value":"ìê°ì´ì¡","data-component-id":"ahueldwxbtvs",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:"ìê°ì´ì¡"},t)},cell:e=>{let{key:t,item:l,currency:r,className:a,style:o}=e,s=l.pricesV2?.marketCap?.[r],c=eC({assetType:l.type,marketCap:s});return(0,n.Y)(i.a.Cell,{align:"end",className:a,style:o,children:"-"===c?"-":(0,ey.uV)(c,r)},t)},sortingFn:(e,t)=>ld(e,t,e=>e.pricesV2?.marketCap?.krw)},estimatedTradingVolume:{id:"estimatedTradingVolume",header:e=>{let{key:t,order:l,onSorting:r,className:a,style:o}=e;return(0,n.Y)(i.a.HCell,{"data-tossinvest-log":"Table.HCell","data-contents-label":"ììì²´ê²°ë","data-contents-label-code":"ììì²´ê²°ë","data-content-value":"ììì²´ê²°ë","data-component-id":"19lkr8ma9bap",align:"end",className:a,style:o,theme:ls(l),rightIcon:(0,n.Y)(i.a.HCell.SortableIcon,{variants:l??"sortable"}),onClick:r,children:"ììì²´ê²°ë"},t)},cell:e=>{let{key:t,item:l,className:r,style:a}=e;return(0,n.Y)(i.a.Cell,{align:"end",className:r,style:a,children:l.pricesV2?.estimatedVolume==null?"-":`${(0,e$.ZV)(l.pricesV2.estimatedVolume)}주`},t)},sortingFn:(e,t)=>ld(e,t,e=>e.pricesV2?.estimatedVolume)}},lh={ì¶ê°í_ì:{columnId:void 0,order:"asc"},ê°ëë¤ì:{columnId:"stockName",order:"asc",sortingFn:lm.stockName.sortingFn},ë±ë½ë¥ _ëì_ì:{columnId:"fluctuationPercent",order:"desc",sortingFn:lm.fluctuationPercent.sortingFn},íì¬ê°_ëì_ì:{columnId:"currentPrice",order:"desc",sortingFn:lm.currentPrice.s
1ortingFn},ì§ì _ì¤ì í_ì:{columnId:void 0,order:"asc",sortingFn:()=>1}};var lg=l(84094);let lp={kr:{current:[lm.stockName,lm.miniChart,lm.currentPrice,lm.fluctuationPercent,lm.fluctuationPrice,lm.tradingVolume,lm.tradingVolumeFluctuation,lm.tradingStrength,lm.netForeignerBuyVolume,lm.netInstitutionBuyVolume,lm.netIndividualBuyVolume,lm.openPrice,lm.closingPrice,lm.dailyHigh,lm.dailyLow,lm.high52w,lm.low52w,lm.marketCap],estimated:[lm.stockName,lm.miniChart,lm.currentPrice,lm.fluctuationPercent,lm.fluctuationPrice,lm.estimatedTradingVolume,lm.tradingVolume],overtime:[lm.stockName,lm.miniChart,lm.currentPrice,lm.fluctuationPercent,lm.fluctuationPrice,lm.tradingVolume,lm.openPrice,lm.dailyHigh,lm.dailyLow,lm.netForeignerBuyVolume,lm.netInstitutionBuyVolume,lm.netIndividualBuyVolume]},us:{current:[lm.stockName,lm.miniChart,lm.currentPrice,lm.fluctuationPercent,lm.fluctuationPrice,lm.tradingVolume,lm.tradingVolumeFluctuation,lm.tradingStrength,lm.openPrice,lm.closingPrice,lm.dailyHigh,lm.dailyLow,lm.high52w,lm.low52w,lm.marketCap],estimated:[],overtime:[]},"us-bond":{current:[lm.stockName,lm.miniChart,lm.currentPrice,lm.fluctuationPercent,lm.fluctuationPrice,lm.tradingVolume,lm.tradingVolumeFluctuation,lm.tradingStrength,lm.openPrice,lm.closingPrice,lm.dailyHigh,lm.dailyLow,lm.high52w,lm.low52w,lm.marketCap],estimated:[],overtime:[]},"us-opt":{current:[lm.stockName,lm.miniChart,lm.currentPrice,lm.fluctuationPercent,lm.fluctuationPrice,lm.tradingVolume,lm.tradingVolumeFluctuation,lm.tradingStrength,lm.openPrice,lm.closingPrice,lm.dailyHigh,lm.dailyLow,lm.high52w,lm.low52w,lm.marketCap],estimated:[],overtime:[]},index:{current:[lm.stockName,lm.miniChart,lm.currentPrice,lm.fluctuationPercent,lm.fluctuationPrice,lm.tradingVolume,lm.openPrice,lm.closingPrice,lm.dailyHigh,lm.dailyLow,lm.high52w,lm.low52w],estimated:[],overtime:[]},all:{current:[lm.stockName,lm.miniChart,lm.currentPrice,lm.fluctuationPercent,lm.fluctuationPrice,lm.tradingVolume,lm.tradingVolumeFluctuation,lm.tradingStrength,lm.openPrice,lm.closingPrice,lm.dailyHigh,lm.dailyLow,lm.high52w,lm.low52w,lm.marketCap],estimated:[],overtime:[]}};var lv=l(49088);let lb=e=>{let{ref:t,selectedMarket:l,selectedWatchListId:r,theadHeight:a}=e,o=(0,lv.e)({exitOnUnmount:!1});return 0===a?null:(0,n.Y)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"sticky",top:a,left:0,height:`calc(100% - ${a}px)`,minHeight:"200px"},children:(0,ll.YW)(l).with("kr",()=>(0,n.Y)(i.o,{size:"small",title:"êµë´ 주ìì´ ìì´ì"})).with("us",()=>(0,n.Y)(i.o,{size:"small",title:"í´ì¸ 주ìì´ ìì´ì"})).with("us-opt",()=>(0,n.Y)(i.o,{size:"small",title:"ìµì
ì´ ìì´ì"})).with("us-bond",()=>(0,n.Y)(i.o,{size:"small",title:"ì±ê¶ì´ ìì´ì"})).with("index",()=>(0,n.Y)(i.o,{size:"small",title:"ì§ìê° ìì´ì"})).with("all",()=>(0,n.Y)(i.o,{size:"small",title:"ê´ì¬ ì¢
ëª©ì´ ìì´ì",button:(0,n.Y)(i.o.Button,{"data-tossinvest-log":"Empty.Button","data-contents-label":"ì¶ê°í기","data-contents-label-code":"ì¶ê°í기","data-parent-name":"EmptyTable","data-contents-value":"ì¶ê°í기",variant:"fill",onClick:()=>{o.open(e=>{let{isOpen:t,close:l,exit:a}=e;return(0,n.Y)(z.d,{open:t,selectedWatchListId:r,onClose:l,onExited:a})})},children:"ì¶ê°í기"})})).exhaustive()})};var ly=l(22228);let lf=e=>{switch(e){case eI.Ig.ì¶ê°í_ì:return lh.ì¶ê°í_ì;case eI.Ig.ê°ëë¤_ì:return lh.ê°ëë¤ì;case eI.Ig.ë±ë½ë¥ _ëì_ì:return lh.ë±ë½ë¥ _ëì_ì;case eI.Ig.íì¬ê°_ëì_ì:return lh.íì¬ê°_ëì_ì;case eI.Ig.ì§ì _ì¤ì í_ì:default:return lh.ì§ì _ì¤ì í_ì}};l(82114);var lw="_1egl5jw4";let lY=e=>{let{selectedWatchListId:t,selectedMarket:l,selectedPriceMode:a,currency:s}=e,[c,d]=(0,tQ.fp)(t1.sortingInfo),u=(0,lg.S)(t,{connectRealtimeEstimatedPrice:"kr"===l&&"estimated"===a,connectRealtimeOvertimePrice:"kr"===l&&"overtime"===a}),[m,g]=(0,f.A)(),p=(0,r.useRef)(null),{us:v=t9.YN.ì¥ë§ê°}=(0,lr.D)(),{data:y}=(0,tX.A)(t),w=(0,r.useMemo)(()=>new Map(y?.items.map(e=>[e.id,e])??[]),[y?.items]),Y=(0,r.useMemo)(()=>{let e=u?.items??[];return"all"===l?e:e.filter(e=>lC[l](e.code))},[l,u]),C=lp[(0,r.useMemo)(()=>
1{if("all"===l){for(let[e,t]of(0,t3.W)(lC))if(u?.items.every(e=>t(e.code)))return e}return l},[l,u?.items])][a],{data:I=lt.U.INTEGRATED}=(0,le.Ef)();(e=>{let{watchlistColumns:t}=e,[l]=(0,tA.E)({namespace:tW.N.SHARED,key:tW.l.SHARED.LAST_SELECTED_WATCH_LIST_SORTING_RULE,defaultValue:eI.Ig.ì¶ê°í_ì}),[n,a]=(0,tQ.fp)(t1.lastSortingRule),[i,o]=(0,tQ.fp)(t1.sortingInfo);(0,r.useEffect)(()=>{if(null==i||null==n)return;let e=lf(n);t.some(e=>e.id===i.columnId)||i===lh.ì§ì _ì¤ì í_ì||o(e)},[o,i,n,t]),(0,r.useEffect)(()=>{l!==n&&(a(l),o(lf(l)))},[n,a,o,l])})({watchlistColumns:C});let{sortedItems:T,inactiveItemIdSet:D}=(0,r.useMemo)(()=>{let e=c?.sortingFn,t=(0,M.aD)(),l=[],n=[];for(let e of Y){let r=w.get(e.id);!function(e,t,l){if("OPTION"===e.type){let n=l?.itemType==="OPTION"?l:void 0;return A({...e,maturityDate:n?.maturityDate??e.maturityDate,maturityDateTime:n?.maturityDateTime??e.maturityDateTime},t)}if("BOND"===e.type){let n=l?.itemType==="BOND"?l:void 0;return L({...e,incorporated:n?.incorporated??e.incorporated,maturityDate:n?.maturityDate??e.maturityDate,maturityDateTime:n?.maturityDateTime??e.maturityDateTime},t)}return!1}(e,t,r)?l.push(e):n.push(e)}return null==c||null==e?{sortedItems:l.concat(n),inactiveItemIdSet:new Set(n.map(e=>e.id))}:{sortedItems:l.slice().sort((t,l)=>"asc"===c.order?e(t,l,{priceMode:a,tradingStatus:v}):e(l,t,{priceMode:a,tradingStatus:v})).concat(n),inactiveItemIdSet:new Set(n.map(e=>e.id))}},[Y,a,c,v,w]),S=(0,P.Te)({count:T.length,estimateSize:()=>44,overscan:10,getScrollElement:()=>p.current}),{handleExpirableItemClick:F}=(()=>{let{getServerNow:e}=(0,_.W)(),{open:t}=(0,ts.o)();return{handleExpirableItemClick:(0,r.useCallback)((l,n)=>{let r=e(),a="incorporated"in n&&!n.incorporated||(0,H.A)(r,new Date(n.maturityDateTime));if((0,ly.Y)(n.code)){if(a)return l.preventDefault(),l.stopPropagation(),t({watchItem:n});if(!n.explorable)return l.preventDefault(),l.stopPropagation(),t({title:"êµ¬ë§¤ê° ì¢
ë£ë ì±ê¶ì´ìì",description:"ì±ê¶ì ìì í ê¹ì?\nì´ë¯¸ 구매íë¤ë©´ ë´ í¬ììì ë³¼ ì ìì´ì.",watchItem:n})}},[e,t])}})(),V=(e=>{let{data:t}=(0,b.Vf)(),l=(0,r.useMemo)(()=>t?.find(t=>t.id===e),[t,e]);return null==l?{}:{watchlistId:e,watchlistGroupType:l.type}})(t),{targetRef:W}=(0,h.p)(u?.items.length===0?"첫ê´ì¬ì ë":"ê´ì¬ê·¸ë£¹",{dependencies:[l,a,t],params:{...V,viewType:"table"}}),E=(0,tF._)({viewType:"table",...V});if(null==u)return(0,n.Y)(o.t.Table,{children:(0,n.Y)(o.t.TableRows,{count:5})});let R=S.getVirtualItems(),O=T.some(e=>(0,eI.o0)(e));return(0,n.FD)(n.FK,{children:[O?(0,n.Y)("div",{className:"_1egl5jw6",children:(0,n.Y)(x,{className:"_1egl5jw7",color:k.t.grey600})}):null,(0,n.Y)("div",{ref:(0,t_.P)([W,E]),className:(0,N.A)("_1egl5jw0",0===T.length&&"_1egl5jw1"),children:(0,n.FD)("div",{ref:e=>{p.current=e},className:"_1egl5jw2",children:[(0,n.FD)(i.a,{fixedColumn:!0,fixedHeader:!0,scrollContainer:p.current,className:U.W,children:[(0,n.Y)(i.a.Head,{ref:m,children:(0,n.Y)(i.a.Row,{className:lw,children:C.map(e=>{let t=c?.columnId===e.id;return e.header({key:e.id,order:t?c?.order:void 0,priceMode:a,exchangeType:I,onSorting:()=>{d(t=>t?.columnId===e.id?"asc"===t.order?lh.ì§ì _ì¤ì í_ì:{columnId:e.id,order:"asc",sortingFn:e.sortingFn}:{columnId:e.id,order:"desc",sortingFn:e.sortingFn})}})})})}),(0,n.Y)(i.a.Body,{className:(0,N.A)(U.W,"_1egl5jw3"),style:{height:`${S.getTotalSize()}px`},children:R.map(e=>{let t=T[e.index],l=D.has(t.id);return(0,n.Y)(i.a.Row,{className:(0,N.A)(lw,"_1egl5jw5"),"data-index":e.index,odd:e.index%2==0,style:{transform:`translateY(${44*e.index}px)`},renderLink:(0,n.Y)(ep(),{"data-section-name":"ê´ì¬ê·¸ë£¹","data-tossinvest-log":"Link","data-parent-name":"WatchListTable",ref:(0,eh.XS)({viewType:"table",productType:(0,eI.RA)(t),clickedProductCode:t.code,...V}),"data-ignore-auto-section-prefix":"true","data-contents-value":t.name,href:(0,eM.DE)({productCode:t.code,underlyingGuid:(0,eI.o0)(t)?t.underlyingGuid:void 0}),onClick:e=>{((0,eI.wK)(t)||(0,eI.o0)(t))&&F(e,t)}}),children:C.map(t=>{let{code:r,id:i}=T[e.index],o=lk.some(e=>lC[e](r)),c=y?.items.find(e=>e.id===i);return(0,n.Y)(t.cell,{isInactive:l,priceMode:a,item:c?.itemType==="OPTION"?{...T[e.index],type:c.itemType,optionType:c.optionType}:T[e.index],currency:o?s:"krw",tradingStatus:v},t.id)})},e.key)})})]}),0===T.length?(0,n.Y)(lb,{selectedMarket:l,selectedWatchListId:t,theadHeight:g.height}):null]})})]})},lk=["us","us-bond","us-opt"],lC={kr:e=>(0,er.Q5)(e)&&!(0,er.G_)(e),us:e=>(0,er.v)(e)&&!(0,er.G_)(e),"us-bond":er.Y,"us-opt":er.U2,index:er.G_};var lN=l(49390);l(4885);let lI=e=>{let{watchLists:t,selectedWatchListId:l,setSelectedWatchListId:a}=e,o=(0,r.useRef)(null),[s]=(0,f.A)({debounce:300}),c=(0,lN.j)(o,s);return(0,n.Y)("div",{className:"aka82k0",children:(0,n.Y)(i.p,{ref:c,variant:"round",size:"small",value:String(l),onValueChange:e=>{a(Number(e))},children:(0,n.Y)(i.p.List,{"data-list-name":"WatchListTab",children:t.map(e=>(0,n.Y)(i.p.Item,{"data-tossinvest-log":"Tab.Item","data-parent-name":"WatchListTab","data-contents-value":e.name,ref:(0,eh.XS)({content:e.name,viewType:"table",watchlistId:e.id,watchlistGroupType:e.type}),value:String(e.id),className:"aka82k1",children:e.name},e.id))})})})};l(20576);let lT=()=>{let{data:e}=(0,b.Vf)(),{selectedWatchListId:t,setSelectedWatchListId:l}=t4(e),{currency:a}=t5(),{selectedMarket:i,selectedPriceMode:o,handleMarketChange:s,handlePriceModeChange:c}=(()=>{let[e,t]=(0,tQ.fp)(t1.market),[l,n]=(0,tQ.fp)(t1.priceMode);return{selectedMarket:e,selectedPriceMode:l===t0.overtime?t0.current:l,handleMarketChange:e=>{"kr"!==e&&n(t0.current),t(e)},handlePriceModeChange:e=>{e!==t0.current&&t("kr"),n(e)}}}
1)(),{targetRef:d}=(0,h.p)("ì¡°íì¡°ê±´ì¤ì ",{params:{viewType:"table"}}),{data:u}=(0,tX.A)(t??0,{enabled:null!=t}),m=(0,r.useMemo)(()=>(u?.items??[]).some(e=>(0,er.G_)(e.code)),[u?.items]),g=(0,r.useMemo)(()=>(u?.items??[]).some(e=>(0,er.Q5)(e.code)),[u?.items]);return null==t||null==e?null:(0,n.FD)("div",{className:"_4qf29c0",children:[(0,n.FD)("div",{ref:d,className:"_4qf29c1",children:[(0,n.Y)("div",{className:"_4qf29c2",children:(0,n.Y)(lI,{watchLists:e,selectedWatchListId:t,setSelectedWatchListId:e=>{l(e),s("all")}})}),(0,n.FD)("div",{className:"_4qf29c3",children:[(0,n.Y)(t7,{selectedMarket:i,setSelectedMarket:s,hasIndex:m}),g?(0,n.Y)(t6,{selectedPriceMode:o,setSelectedPriceMode:c}):null]})]}),(0,n.Y)(lY,{selectedWatchListId:t,currency:a,selectedMarket:i,selectedPriceMode:o})]})};var lx=l(22356),lP=l(25805);let lD=()=>{let[e,t]=(0,lP.i)("local",lx.W.WATCHLISTS_VIEW_TYPE,"table");return{viewType:e,setViewType:(0,r.useCallback)(e=>{t(e)},[t])}};l(49797);var lS="epkuii0";let lF=(0,r.memo)(()=>{let{viewType:e}=lD();return(0,n.FD)(eq.t,{openDelay:500,children:[(0,n.Y)(eq.t.Trigger,{"data-tossinvest-priority-log":"Tooltip.Trigger","data-contents-value":"ìì¸ ë³´ê¸°",children:(0,n.Y)("div",{className:lS,children:(0,n.Y)(i.m.Item,{"data-section-name":"보기방ìì¤ì ","data-tossinvest-log":"SegmentedControl.Item","data-contents-label":"ìì¸ë³´ê¸°","data-ignore-auto-section-prefix":"true",value:"table","data-contents-value":"ìì¸ë³´ê¸°",icon:(0,n.Y)(i.m.Icon,{name:"icon-line-three-mono",isSelected:"table"===e})})})}),(0,n.Y)(eq.t.Content,{"data-overlay-type":"Tooltip",side:"bottom",align:"center",flexDirection:"row",variant:"compact",children:(0,n.Y)(eq.t.Title,{children:"ìì¸ ë³´ê¸°"})})]})}),l_=(0,r.memo)(()=>{let{viewType:e}=lD();return(0,n.FD)(eq.t,{openDelay:500,children:[(0,n.Y)(eq.t.Trigger,{"data-tossinvest-priority-log":"Tooltip.Trigger","data-contents-value":"ìì½ ë³´ê¸°",children:(0,n.Y)("div",{className:lS,children:(0,n.Y)(i.m.Item,{"data-section-name":"보기방ìì¤ì ","data-tossinvest-log":"SegmentedControl.Item","data-contents-label":"ìì½ë³´ê¸°","data-ignore-auto-section-prefix":"true","data-contents-value":"ìì½ë³´ê¸°",value:"grid",icon:(0,n.Y)(i.m.Icon,{name:"icon-four-square-mono",isSelected:"grid"===e})})})}),(0,n.Y)(eq.t.Content,{"data-overlay-type":"Tooltip",side:"bottom",align:"center",flexDirection:"row",variant:"compact",children:(0,n.Y)(eq.t.Title,{children:"ìì½ ë³´ê¸°"})})]})}),lM=()=>{let{viewType:e,setViewType:t}=lD(),l=(0,r.useCallback)(e=>{t(e)},[t]);return(0,n.FD)(i.m,{fit:!0,size:"small",value:e,onValueChange:l,children:[(0,n.Y)(lF,{}),(0,n.Y)(l_,{})]})};var lV=l(78569);let lH=e=>{let{selectedWatchListId:t}=e,l=(0,lv.e)();return(0,n.Y)(lV.t,{"data-section-name":"ê³µíµ","data-tossinvest-log":"Button","data-contents-label":"í¸ì§","data-contents-label-code":"í¸ì§","data-parent-name":"WatchListEditButton","data-contents-value":"í¸ì§",variant:"weak",size:"small",leftAddon:(0,n.Y)(lV.t.Icon,{name:"icon-pencil-mono"}),onClick:()=>{null!=t&&l.open(e=>{let{isOpen:l,exit:r,close:a}=e;return(0,n.Y)(z.d,{open:l,selectedWatchListId:t,onClose:a,onExited:r})})},children:"í¸ì§"})};l(5065);var lW="ipyn2n0",lA="ipyn2n1",lL="ipyn2n2",lE="ipyn2n3";let lR=(0,g.E)(()=>
1{let e="dark"===(0,a.t)()?s.a.darkThemeBackgroundLevelB01:"#F6F7F9";(0,m.J)(e);let{data:t}=(0,b.Vf)(),{currency:l,setCurrency:d}=t5(),{data:u}=(0,v.FU)(p.vQ.discovery.wts.watchlist.gridview),g=!0===u,{viewType:f,setViewType:w}=lD(),Y=t?.length===1,k=Y||!g?"table":f,{selectedWatchListId:C}=t4(t,{syncQueryParam:"table"===k}),{targetRef:N}=(0,h.p)("보기방ìì¤ì ",{params:{viewType:k}});return((0,r.useEffect)(()=>{(Y||!1===u)&&"table"!==f&&w("table")},[u,Y,w,f]),null==C||null==t)?(0,n.FD)(tG,{className:lW,children:[(0,n.FD)("div",{className:lA,children:[(0,n.Y)(i.n,{title:(0,n.Y)(i.n.Title,{children:"ê´ì¬"}),typography:"h5_text"}),(0,n.FD)("div",{className:lL,children:[(0,n.Y)(o.t,{width:72,height:32}),(0,n.Y)("div",{className:lE,children:(0,n.Y)(o.t,{width:80,height:32})}),(0,n.Y)(o.t,{width:96,height:32})]})]}),(0,n.Y)(o.t.Table,{children:(0,n.Y)(o.t.TableRows,{count:5})})]}):(0,n.FD)(tG,{className:lW,children:[(0,n.FD)("div",{className:lA,children:[(0,n.Y)(i.n,{title:(0,n.Y)(i.n.Title,{children:"ê´ì¬"}),typography:"h5_text"}),(0,n.FD)("div",{className:lL,children:[(0,n.Y)(lH,{selectedWatchListId:C}),(0,n.Y)("div",{className:lE,children:(0,n.Y)(y.S,{value:l,onChangeValue:d})}),g&&!Y?(0,n.Y)("div",{ref:N,children:(0,n.Y)(lM,{})}):null]})]}),(0,n.Y)(c.f,{value:k,caseBy:{table:(0,n.Y)(lT,{}),grid:(0,n.Y)(t$,{watchListGroups:t,currency:l})},defaultComponent:(0,n.Y)(lT,{})})]})}),lO=lR;lR.getLayout=e=>(0,n.Y)(d.C,{fullWidth:!0,footer:(0,n.Y)(d.C.Footer,{}),sidebar:(0,n.Y)(d.C.LNB,{}),gnb:(0,n.Y)(u.g,{layoutOptions:{mode:"v1",maxWidth:"none"}}),children:e})},82114:()=>{},84660:()=>{},94639:(e,t,l)=>{"use strict";l.d(t,{S:()=>c});var n=l(57877),r=l(37479),a=l(70683),i=l(19440),o=l(80852),s=l(85161);let c=e=>{let{value:t,onChangeValue:l,krwTooltipContent:c,...d}=e,u=(0,r.useMemo)(()=>t===s.Sj.usd?"íµíë³ê²½ ìí":"íµíë³ê²½ ë¬ë¬",[t]),m=t===s.Sj.usd,h=()=>l(m?s.Sj.krw:s.Sj.usd);return(0,n.FD)(i.t,{fit:!0,size:"small",value:t,"data-section-name":"ê³µíµ",onValueChange:e=>l(e),...d,children:[(0,n.Y)(i.t.Item,{"data-tossinvest-log":"SegmentedControl.Item","data-content-value":u,"data-parent-name":"CurrencyToggle","data-component-id":"34oyxhmdhs2c",value:s.Sj.usd,icon:(0,n.Y)(a.In,{name:"icon-dollar-toggle-mono"}),"aria-label":"ë¬ë¬",onClick:m?h:void 0,style:{cursor:"pointer"}}),c?(0,n.FD)(o.n,{children:[(0,n.Y)(o.n.Trigger,{"data-tossinvest-priority-log":"Tooltip.Trigger","data-content-value":"ìí ìë´ í´í","data-parent-name":"CurrencyToggle","data-component-id":"jb5towvd4yit",render:(0,n.Y)(i.t.Item,{"data-tossinvest-log":"SegmentedControl.Item","data-content-value":u,"data-parent-name":"CurrencyToggle","data-component-id":"agsw47b7fkmx",value:s.Sj.krw,label:"ì",onClick:m?void 0:h,style:{cursor:"pointer"}})}),(0,n.Y)(o.n.Content,{"data-overlay-type":"Tooltip",variant:"compact",flexDirection:"row",children:(0,n.Y)(o.n.Title,{children:c})})]}):(0,n.Y)(i.t.Item,{"data-tossinvest-log":"SegmentedControl.Item","data-content-value":u,"data-parent-name":"CurrencyToggle","data-component-id":"yg4slutr6ub2",value:s.Sj.krw,label:"ì",onClick:m?void 0:h,style:{cursor:"pointer"}})]})}}},e=>{e.O(0,[8667,6411,1277,3876,1087,3191,1882,6965,5313,5445,4017,7982,7340,5614,8814,1329,636,6593,8792],()=>e(e.s=151)),_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.