1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="e9015db2-aea9-0907-6863-17e09357e7b2")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,310604,e=>{"use strict";var l,t,a;let n={fragment:{argumentDefinitions:l=[{defaultValue:null,kind:"LocalArgument",name:"country"}],kind:"Fragment",metadata:null,name:"getScreenerFilterListQuery",selections:a=[{alias:null,args:[{kind:"Variable",name:"country",variableName:"country"}],concreteType:"ScreenerFilterType",kind:"LinkedField",name:"screenerFilterList",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"ConditionV2Type",kind:"LinkedField",name:"conditionListV2",plural:!0,selections:[t,{alias:null,args:null,kind:"ScalarField",name:"tooltip",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ScreenerFilterLeadingStockType",kind:"LinkedField",name:"leadingStockList",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"imageUrl",storageKey:null},t],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"longDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shortDescription",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"stockNumberText",storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:l,kind:"Operation",name:"getScreenerFilterListQuery",selections:a},params:{cacheID:"a5a42f89b25b769d3a86bfa66549be1d",id:null,metadata:{},name:"getScreenerFilterListQuery",operationKind:"query",text:"query getScreenerFilterListQuery(\n $country: CountryV2Enum\n) {\n screenerFilterList(country: $country) {\n id\n name\n conditionListV2 {\n name\n tooltip\n }\n leadingStockList {\n imageUrl\n name\n }\n longDescription\n shortDescription\n stockNumberText\n }\n}\n"}};n.hash="b9a5e6c7ab27c70fef651e5b1a2f3d26",e.s(["default",0,n])},493371,e=>{"use strict";var l,t,a,n;let r={fragment:{argumentDefinitions:l=[{defaultValue:null,kind:"LocalArgument",name:"screenerId"}],kind:"Fragment",metadata:null,name:"getScreenerFilterStockCountQuery",selections:[{alias:null,args:t=[{kind:"Variable",name:"screenerId",variableName:"screenerId"}],concreteType:"ScreenerFilterStockListType",kind:"LinkedField",name:"screenerFilterStockList",plural:!1,selections:[a={alias:null,args:null,kind:"ScalarField",name:"individualStockCount",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"allStockCount",storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:l,kind:"Operation",name:"getScreenerFilterStockCountQuery",selections:[{alias:null,args:t,concreteType:"ScreenerFilterStockListType",kind:"LinkedField",name:"screenerFilterStockList",plural:!1,selections:[a,n,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{cacheID:"80891a6d480107e85b99df324b43f040",id:null,metadata:{},name:"getScreenerFilterStockCountQuery",operationKind:"query",text:"query getScreenerFilterStockCountQuery(\n $screenerId: String\n) {\n screenerFilterStockList(screenerId: $screenerId) {\n individualStockCount\n allStockCount\n id\n }\n}\n"}};r.hash="c4f5acd8f92980682b6a3b41b4417030",e.s(["default",0,r])},636175,e=>{"use strict";var l,t,a,n,r,i,s,o,c,d,u,m,y,_,k,g,p,f;let S=(l={defaultValue:null,kind:"LocalArgument",name:"currencyUnit"},t={defaultValue:!0,kind:"LocalArgument",name:"isIndividualStock"},a={defaultValue:null,kind:"LocalArgument",name:"screenerId"},n={defaultValue:null,kind:"LocalArgument",name:"sortBy"},r={defaultValue:"DESC",kind:"LocalArgument",name:"sortDirection"}
2,i=[{kind:"Variable",name:"currencyUnit",variableName:"currencyUnit"},{kind:"Variable",name:"isIndividualStock",variableName:"isIndividualStock"},{kind:"Variable",name:"screenerId",variableName:"screenerId"},{kind:"Variable",name:"sortBy",variableName:"sortBy"},{kind:"Variable",name:"sortDirection",variableName:"sortDirection"}],c={alias:null,args:null,concreteType:"ScreenerColumnType",kind:"LinkedField",name:"columnList",plural:!0,selections:[s={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"representative",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"sortable",storageKey:null}],storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"unitType",storageKey:null},u={kind:"InlineFragment",selections:[{alias:"floatValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"FloatValueType",abstractKey:null},m={kind:"InlineFragment",selections:[{alias:"stringValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"StringValueType",abstractKey:null},y={alias:null,args:null,kind:"ScalarField",name:"country",storageKey:null},_={alias:null,args:null,kind:"ScalarField",name:"logoPath",storageKey:null},k={alias:null,args:null,concreteType:"ScreenerRelatedFilterType",kind:"LinkedField",name:"relatedFilterList",plural:!0,selections:[o],storageKey:null},{fragment:{argumentDefinitions:[l,t,a,n,r],kind:"Fragment",metadata:null,name:"getScreenerFilterStockListQuery",selections:[{alias:null,args:i,concreteType:"ScreenerFilterStockListType",kind:"LinkedField",name:"screenerFilterStockList",plural:!1,selections:[c,{alias:null,args:null,concreteType:"ScreenerStockType",kind:"LinkedField",name:"stockList",plural:!0,selections:[{alias:null,args:null,concreteType:"ScreenerStockColumnValueType",kind:"LinkedField",name:"columnValue",plural:!0,selections:[s,d,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"unitValue",plural:!1,selections:[u,m],storageKey:null}],storageKey:null},y,_,o,k,g={alias:null,args:null,kind:"ScalarField",name:"stockCode",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"isEtf",storageKey:null},f={alias:null,args:null,concreteType:"ScreenerMarketVoice",kind:"LinkedField",name:"marketVoice",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"topicId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"topicTitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"topicUpdatedAt",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,n,r,t,l],kind:"Operation",name:"getScreenerFilterStockListQuery",selections:[{alias:null,args:i,concreteType:"ScreenerFilterStockListType",kind:"LinkedField",name:"screenerFilterStockList",plural:!1,selections:[c,{alias:null,args:null,concreteType:"ScreenerStockType",kind:"LinkedField",name:"stockList",plural:!0,selections:[{alias:null,args:null,concreteType:"ScreenerStockColumnValueType",kind:"LinkedField",name:"columnValue",plural:!0,selections:[s,d,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"unitValue",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},u,m],storageKey:null}],storageKey:null},y,_,o,k,g,p,f],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{cacheID:"42d21e0429957a66e99dc7b65893111f",id:null,metadata:{},name:"getScreenerFilterStockListQuery",operationKind:"query",text:"query getScreenerFilterStockListQuery(\n $screenerId: String\n $sortBy: String\n $sortDirection: SortDirection = DESC\n $isIndividualStock: Boolean = true\n $currencyUnit: CurrencyUnitEnum!\n) {\n screenerFilterStockList(screenerId: $screenerId, sortBy: $sortBy, sortDirection: $sortDirection, isIndividualStock: $isIndividualStock, currencyUnit: $currencyUnit) {\n columnList {\n label\n name\n representative\n sortable\n }\n stockList {\n columnValue {\n label\n unitType\n unitValue {\n __typename\n ... on FloatValueType {\n floatValue: value\n }
2\n ... on StringValueType {\n stringValue: value\n }\n }\n }\n country\n logoPath\n name\n relatedFilterList {\n name\n }\n stockCode\n isEtf\n marketVoice {\n topicId\n topicTitle\n topicUpdatedAt\n }\n }\n id\n }\n}\n"}});S.hash="347718d3c649dfb979951f2d4e25a825",e.s(["default",0,S])},133366,e=>{"use strict";var l,t,a,n,r,i,s,o,c,d,u,m,y,_,k,g,p;let f=(l={defaultValue:null,kind:"LocalArgument",name:"currencyUnit"},t={defaultValue:!0,kind:"LocalArgument",name:"isIndividualStock"},a={defaultValue:null,kind:"LocalArgument",name:"screenerId"},n={defaultValue:null,kind:"LocalArgument",name:"sortBy"},r={defaultValue:"DESC",kind:"LocalArgument",name:"sortDirection"},i=[{kind:"Variable",name:"currencyUnit",variableName:"currencyUnit"},{kind:"Variable",name:"isIndividualStock",variableName:"isIndividualStock"},{kind:"Variable",name:"screenerId",variableName:"screenerId"},{kind:"Variable",name:"sortBy",variableName:"sortBy"},{kind:"Variable",name:"sortDirection",variableName:"sortDirection"}],s={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"unitType",storageKey:null},c={kind:"InlineFragment",selections:[{alias:"floatValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"FloatValueType",abstractKey:null},d={kind:"InlineFragment",selections:[{alias:"stringValue",args:null,kind:"ScalarField",name:"value",storageKey:null}],type:"StringValueType",abstractKey:null},u={alias:null,args:null,kind:"ScalarField",name:"country",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"logoPath",storageKey:null},_={alias:null,args:null,concreteType:"ScreenerRelatedFilterType",kind:"LinkedField",name:"relatedFilterList",plural:!0,selections:[y={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},{fragment:{argumentDefinitions:[l,t,a,n,r],kind:"Fragment",metadata:null,name:"getScreenerFilterColumnValuesQuery",selections:[{alias:null,args:i,concreteType:"ScreenerFilterStockListType",kind:"LinkedField",name:"screenerFilterStockList",plural:!1,selections:[{alias:null,args:null,concreteType:"ScreenerStockType",kind:"LinkedField",name:"stockList",plural:!0,selections:[{alias:null,args:null,concreteType:"ScreenerStockColumnValueType",kind:"LinkedField",name:"columnValue",plural:!0,selections:[s,o,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"unitValue",plural:!1,selections:[c,d],storageKey:null}],storageKey:null},u,m,y,_,k={alias:null,args:null,kind:"ScalarField",name:"stockCode",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"isEtf",storageKey:null},p={alias:null,args:null,concreteType:"ScreenerMarketVoice",kind:"LinkedField",name:"marketVoice",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"topicId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"topicTitle",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,n,r,t,l],kind:"Operation",name:"getScreenerFilterColumnValuesQuery",selections:[{alias:null,args:i,concreteType:"ScreenerFilterStockListType",kind:"LinkedField",name:"screenerFilterStockList",plural:!1,selections:[{alias:null,args:null,concreteType:"ScreenerStockType",kind:"LinkedField",name:"stockList",plural:!0,selections:[{alias:null,args:null,concreteType:"ScreenerStockColumnValueType",kind:"LinkedField",name:"columnValue",plural:!0,selections:[s,o,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"unitValue",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c,d],storageKey:null}],storageKey:null},u,m,y,_,k,g,p],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{cacheID:"3b0d789c22f47b726c15e615b53a2c68",id:null,metadata:{},name:"getScreenerFilterColumnValuesQuery",operationKind:"query",text:"query getScreenerFilterColumnValuesQuery(\n $screenerId: String\n $sortBy: String\n $sortDirection: SortDirection = DESC\n $isIndividualStock: Boolean = true\n $currencyUnit: CurrencyUnitEnum!\n) {\n screenerFilterStockList(screenerId: $screenerId, sortBy: $sortBy, sortDirection: $sortDirection, isIndividualStock: $isIndividualStock, currencyUnit: $currencyUnit) {\n stockList {\n columnValue {\n label\n unitType\n unitValue {\n __typename\n ... on FloatValueType {\n floatValue: value\n }
2\n ... on StringValueType {\n stringValue: value\n }\n }\n }\n country\n logoPath\n name\n relatedFilterList {\n name\n }\n stockCode\n isEtf\n marketVoice {\n topicId\n topicTitle\n }\n }\n id\n }\n}\n"}});f.hash="1bb1fe1411128567f1216a42f56db56b",e.s(["default",0,f])},854416,217325,e=>{"use strict";let l=e.r(310604),t=e.r(493371),a=e.r(636175),n=e.r(133366);e.s(["GetScreenerFilterColumnValues",0,n,"GetScreenerFilterList",0,l,"GetScreenerFilterStockCount",0,t,"GetScreenerFilterStockList",0,a],854416);var r=e.i(984646),i=e.i(503535),s=e.i(783072),o=e.i(20359);class c extends(0,r.BaseRepo)(){get lazyScreenerFilterStockCount(){return e=>(0,s.useLazyLoadQuery)(t,e,{fetchPolicy:"network-only"})}get lazyScreenerFilterStockList(){return e=>(0,s.useLazyLoadQuery)(a,e,{fetchPolicy:"network-only"})}get getScreenerFilterColumnValues(){return e=>(0,o.fetchQuery)((0,i.getCurrentEnvironment)(),n,e,{fetchPolicy:"network-only"}).toPromise()}}e.s(["UseClientScreenerRepo",0,c],217325)},44660,e=>{e.v({condition_tooltip:"style-module-scss-module__43VhIW__condition_tooltip",conditions:"style-module-scss-module__43VhIW__conditions",ellipsis:"style-module-scss-module__43VhIW__ellipsis",filter_description:"style-module-scss-module__43VhIW__filter_description",long_description:"style-module-scss-module__43VhIW__long_description"})},907802,e=>{e.v({arrow_container:"style-module-scss-module__adV8lG__arrow_container",filter_card:"style-module-scss-module__adV8lG__filter_card",filter_card_section:"style-module-scss-module__adV8lG__filter_card_section",leading_stocks:"style-module-scss-module__adV8lG__leading_stocks",logo_0:"style-module-scss-module__adV8lG__logo_0",logo_1:"style-module-scss-module__adV8lG__logo_1",logo_2:"style-module-scss-module__adV8lG__logo_2",logo_url_wrapper:"style-module-scss-module__adV8lG__logo_url_wrapper",selected:"style-module-scss-module__adV8lG__selected",short_description:"style-module-scss-module__adV8lG__short_description",title:"style-module-scss-module__adV8lG__title"})},904424,e=>{e.v({base_table_section:"style-module-scss-module__kpaKSG__base_table_section",base_table_top_sticky:"style-module-scss-module__kpaKSG__base_table_top_sticky",body:"style-module-scss-module__kpaKSG__body",disclaimer:"style-module-scss-module__kpaKSG__disclaimer",disclaimer_header:"style-module-scss-module__kpaKSG__disclaimer_header",ellipsis:"style-module-scss-module__kpaKSG__ellipsis",empty:"style-module-scss-module__kpaKSG__empty",fake_scroll_area:"style-module-scss-module__kpaKSG__fake_scroll_area",fake_scrollbar:"style-module-scss-module__kpaKSG__fake_scrollbar",fake_scrollbar_track:"style-module-scss-module__kpaKSG__fake_scrollbar_track",filter_etf:"style-module-scss-module__kpaKSG__filter_etf",has_marketvoice:"style-module-scss-module__kpaKSG__has_marketvoice",head:"style-module-scss-module__kpaKSG__head",left_scrolled:"style-module-scss-module__kpaKSG__left_scrolled",like_stock_button:"style-module-scss-module__kpaKSG__like_stock_button",marketvoice:"style-module-scss-module__kpaKSG__marketvoice",marketvoice_title:"style-module-scss-module__kpaKSG__marketvoice_title",multi_filter_label:"style-module-scss-module__kpaKSG__multi_filter_label",multi_filter_tooltip:"style-module-scss-module__kpaKSG__multi_filter_tooltip",reply_icon:"style-module-scss-module__kpaKSG__reply_icon",stock_count:"style-module-scss-module__kpaKSG__stock_count",stock_name:"style-module-scss-module__kpaKSG__stock_name",table:"style-module-scss-module__kpaKSG__table",table_body:"style-module-scss-module__kpaKSG__table_body",table_body_empty:"style-module-scss-module__kpaKSG__table_body_empty",table_cell:"style-module-scss-module__kpaKSG__table_cell",table_cell_first:"style-module-scss-module__kpaKSG__table_cell_first",table_cell_index:"style-module-scss-module__kpaKSG__table_cell_index",table_filter:"style-module-scss-module__kpaKSG__table_filter",table_head:"style-module-scss-module__kpaKSG__table_head",table_row:"style-module-scss-module__kpaKSG__table_row"})},385160,e=>
2{e.v({new:"style-module-scss-module__Y9SZ9G__new"})},888605,e=>{"use strict";var l=e.i(38483),t=e.i(917460),a=e.i(510044),n=e.i(854416),r=e.i(783072),i=e.i(776898),s=e.i(82968),o=e.i(658943),c=e.i(9876),d=e.i(617317),u=e.i(754205),m=e.i(812306),y=e.i(44660);let _=({condition:e})=>{let t=(0,m.filterNull)(e.tooltip);return 0===t.length?(0,l.jsx)(d.default,{label:e.name,color:"gray",size:"small",strength:"weak"}):(0,l.jsx)(u.default,{content:(0,l.jsx)("ul",{className:y.default.condition_tooltip,children:t.map(e=>(0,l.jsxs)("li",{children:[(0,l.jsx)("div",{className:y.default.ellipsis}),(0,l.jsx)(c.default,{type:"text-11",color:"text-on-bright.level-3",children:e})]},e))}),spacing:0,position:"bottom",align:"start",children:(0,l.jsx)(d.default,{label:e.name,color:"gray",size:"small",strength:"weak"})})},k=e=>(0,l.jsxs)("div",{className:y.default.filter_description,children:[(0,l.jsx)(c.default,{type:"text-24",weight:"bold",color:"text-on-bright.level-2",as:"h6",children:e.selected.name}),(0,l.jsx)(c.default,{type:"text-14",color:"text-on-bright.level-3",className:y.default.long_description,children:e.selected.longDescription}),(0,l.jsxs)("div",{className:y.default.conditions,children:[(0,l.jsx)(c.default,{type:"text-13",color:"text-on-bright.level-3",as:"span",children:"ì ì© ì¡°ê±´"}),e.selected.conditionListV2.map((e,t)=>(0,l.jsx)(_,{condition:e},`condition-${t}`))]})]});var g=e.i(212994),p=e.i(449478),f=e.i(830568),S=e.i(288029),h=e.i(907802);let b=e=>(0,l.jsxs)(S.default,{className:(0,f.getClassname)([h.default.filter_card,e.selected?h.default.selected:void 0]),href:(0,i.getScreenerUrl)(e.country,e.filter.name),id:`screener-filter-card-${e.filter.id}`,children:[(0,l.jsx)("div",{className:h.default.title,children:(0,l.jsx)(c.default,{type:"text-17",weight:"semibold",color:"text-on-bright.level-1",as:"span",children:e.filter.name})}),(0,l.jsx)(c.default,{type:"text-14",color:"text-on-bright.level-2",className:h.default.short_description,children:e.filter.shortDescription}),e.filter.leadingStockList.length>0?(0,l.jsxs)("div",{className:h.default.leading_stocks,children:[(0,l.jsx)("div",{className:h.default.logo_url_wrapper,children:e.filter.leadingStockList.map((e,t)=>(0,l.jsx)(p.default,{size:20,src:e.imageUrl,shortName:e.name,className:h.default[`logo_${t}`]},t))}),(0,l.jsx)(c.default,{type:"text-11",weight:"semibold",color:"text-on-bright.level-3",as:"span",children:e.filter.stockNumberText})]}):(0,l.jsx)("div",{className:h.default.leading_stocks,children:(0,l.jsx)(c.default,{type:"text-11",color:"text-on-bright.level-3",as:"span",children:"ê²ìë ì¢
ëª©ì´ ìì´ì"})})]}),v=({filters:e,selected:t,country:a})=>{let{isAtStart:n,isAtEnd:r,handleScroll:i,scrollRef:s,isDragging:c,handleMouseDownEvent:d,handleMouseMoveEvent:u,handleMouseLeaveEvent:m,handleMouseUpEvent:y,defaultMoveToCenterAction:_}=(0,g.useCustomSliderArrow)();return(0,o.useEffect)(()=>{_(document.getElementById(`screener-filter-card-${t.id}`),document.getElementById("filter-card-section"))},[t]),(0,l.jsxs)("div",{id:"filter-card-section",className:h.default.filter_card_section,children:[!n&&(0,l.jsx)(g.ArrowButton,{direction:"left",scrollRef:s,size:"medium",scrollAmount:316}),(0,l.jsx)(g.CustomSlider,{handleScroll:i,scrollRef:s,isDragging:c,handleMouseDownEvent:d,handleMouseLeaveEvent:m,handleMouseUpEvent:y,handleMouseMoveEvent:u,children:e.map(e=>(0,l.jsx)(b,{filter:e,selected:t.id===e.id,country:a},e.id))}),!r&&(0,l.jsx)(g.ArrowButton,{direction:"right",scrollRef:s,size:"medium",scrollAmount:316})]})};var x=e.i(88867);let F=[{label:"CURRENT_PRICE",name:"íì¬ê°",representative:!1,sortable:!1}],L={PRICE:x.formatPrice,NUMBER:x.formatFullPrice,RATIO:x.formatDecimal,PERCENT:x.formatPercent,NONE:void 0,COMMA_NUMBER:x.formatFullPrice};var j=e.i(984646),K=e.i(217325),V=j,T=e.i(487271),N=e.i(310604);class C extends(0,V.BaseRepo)(){async preloadScreenerFilterList(e){return await (0,T.default)(N.default.params,e,{revalidate:0})}}class I extends(0,j.BaseService)(){getUseClientScreenerRepo(){return K.UseClientScreenerRepo.I()}getUseScreenerRepo(){return C.I()}}var U=e.i(811439),$=e.i(912183),w=e.i(904424),R=e.i(154507),D=e.i(385160);let G=({})=>(0,l.jsx)("div",{className:D.default.new,children:(0,l.jsx)(c.default,{type:"text-11",weight:"bold",color:"primary.10",as:"span",children:"N"})});var E=e.i(585458);let A=e=>{let t=(0,o.useMemo)(()=>
2{if(null===e.updatedAt||void 0===e.updatedAt)return!1;let l=(0,E.default)(),t=(0,E.default)(e.updatedAt);return 24>l.diff(t,"hour")},[e.updatedAt]);return(0,l.jsxs)(S.default,{className:`${w.default.table_row} ${w.default.marketvoice}`,href:(0,i.getMarketVoiceDetailUrl)(e.id),children:[(0,l.jsxs)("div",{className:`${w.default.table_cell_first} ${w.default.marketvoice}`,style:{width:e.columnWidth[0]},children:[(0,l.jsx)($.default,{name:"reply",color:"gray.50",size:14,className:w.default.reply_icon}),(0,l.jsx)(c.default,{type:"text-13",color:"text-on-bright.level-3",as:"span",className:w.default.marketvoice_title,children:e.title}),t&&(0,l.jsx)(G,{})]}),e.columnWidth.slice(1).map((e,t)=>(0,l.jsx)("div",{className:`${w.default.table_cell} ${w.default.body}`,style:{width:e}},t))]})};var B=e.i(90769),M=e.i(331104);let Q=({unitType:e,isRevenueText:a,floatValue:n,stringValue:r,width:i,currency:s})=>{let c=(0,o.useMemo)(()=>"NONE"===e?r??n:"PRICE"===e||"NUMBER"===e?(0,x.formatUnit)(n,{formatter:L[e],currency:t.CURRENCY_TO_SYMBOL[s]}):(0,x.formatUnit)(n,{formatter:L[e]}),[e,n,r,s]),d=(0,o.useMemo)(()=>a&&n?n:"zero",[a,n]);return(0,l.jsx)("div",{className:`${w.default.table_cell} ${w.default.body}`,style:{width:i},children:(0,l.jsx)(M.default,{type:"text-13",zeroColor:"text-on-bright.level-2",priceMode:d,children:c})})};var P=e.i(274903);let z=({relatedFilters:e,isLast:t})=>{let a=(0,o.useRef)(null),[n,r]=(0,o.useState)(!1),[i,s]=(0,o.useState)({top:0,left:0});return(0,l.jsxs)("div",{onMouseEnter:()=>{if(a.current){let e=a.current.getBoundingClientRect();s({top:t?e.bottom+window.scrollY:e.top+window.scrollY,left:e.right+2}),r(!0)}},onMouseLeave:()=>{s({top:0,left:0}),r(!1)},ref:a,children:[(0,l.jsx)(d.default,{label:`íí° +${e.length}`,color:"chart-D",size:"small",strength:"weak",className:w.default.multi_filter_label}),n&&(0,P.createPortal)((0,l.jsx)("div",{style:{position:"absolute",top:i.top,left:i.left,zIndex:15,transform:t?"translateY(-100%)":"translateY(0)"},children:(0,l.jsxs)("div",{className:w.default.multi_filter_tooltip,children:[(0,l.jsx)(c.default,{type:"text-11",color:"text-on-bright.level-2",children:`${e.length}ê°ì ì¶ì²íí°ì í¬í¨ë ì¢ ëª©ì´ìì!`}),(0,l.jsx)("ul",{children:e.map(e=>(0,l.jsxs)("li",{children:[(0,l.jsx)("div",{className:w.default.ellipsis}),e.name]},e.name))})]})}),document.body)]})},O=({index:e,stock:t,columnWidth:a,isLast:n,currency:r,hasMarketVoice:s})=>{let{name:o,stockCode:d,logoPath:u,relatedFilterList:m,initialColumnValue:y}=t;return(0,l.jsxs)(S.default,{className:(0,f.getClassname)([w.default.table_row,w.default.body,s?w.default.has_marketvoice:void 0]),href:(0,i.getStockDetailUrl)(d),children:[(0,l.jsxs)("div",{className:`${w.default.table_cell_first} ${w.default.body}`,children:[(0,l.jsx)("div",{className:w.default.like_stock_button,children:(0,l.jsx)(B.default,{size:32,params:{type:"COMPANY",code:d,name:o,id:""}})}),(0,l.jsx)("div",{className:w.default.table_cell_index,children:(0,l.jsx)(c.default,{type:"text-13",weight:"semibold",color:"text-on-bright.level-4",as:"span",children:e+1})}),(0,l.jsx)(p.default,{size:24,src:u,shortName:o}),(0,l.jsx)(c.default,{type:"text-13",color:"text-on-bright.level-2",as:"span",className:w.default.stock_name,children:o}),m.length>1&&(0,l.jsx)(z,{relatedFilters:m,isLast:n})]}),y.map(({label:e,unitType:t,unitValue:n},i)=>(0,l.jsx)(Q,{isRevenueText:"FLUCTUATION_RATE"===e,unitType:t,floatValue:n.floatValue,stringValue:n.stringValue,width:a[i+1],currency:r},e))]})},q=({id:e,sort:t,bodyRef:a,handleScroll:n,stockList:r,columnWidth:i})=>((0,o.useEffect)(()=>{let l=async()=>{let l=I.I().getUseClientScreenerRepo();await l.getScreenerFilterColumnValues({screenerId:e,...t})};return(0,R.getPollingInterval)(l)},[e,t]),(0,l.jsx)("div",{className:w.default.table_body,ref:a,onScroll:n,children:r.map((e,a)=>(0,l.jsxs)(o.Fragment,{children:[(0,l.jsx)(O,{stock:e,index:a,columnWidth:i,isLast:a===r.length-1,currency:t.currencyUnit,hasMarketVoice:(0,m.notEmpty)(e.marketVoice)}),e.marketVoice&&(0,l.jsx)(A,{id:e.marketVoice.topicId,title:e.marketVoice.topicTitle,updatedAt:e.marketVoice.topicUpdatedAt,columnWidth:i})]},e.stockCode))})),Y=()=>(0,l.jsx)("div",{className:w.default.table_body_empty,children:(0,l.jsx)(c.default,{type:"text-17",weight:"bold",color:"text-on-bright.level-2",as:"span",children:"ê²ìë ì¢ ëª©ì´ ìì´ì"})});var W=e.i(115711);let Z=({value:e,sortBy:t,sortDirection:a,setSort:n})=>{let r=(0,o.useMemo)(()=>void 0===t?e.representative?"down":"default":t===e.label&&void 0!==a?"ASC"===a?"up":"down":"default",[t,a,e.label,e.representative]);return e.sortable?(0,l.jsx)("div",{className:`${w.default.table_cell} ${w.default.head}`,children:(0,l.jsx)(W.default,{direction:r,handleClick:l=>{let t="down"===l?"ASC":"DESC";n(l=>({...l,sortBy:e.label,sortDirection:t,isIndividualStock:l.isIndividualStock,currencyUnit:l.currencyUnit}))},children:e.name})}):(0,l.jsx)("div",{className:`${w.default.table_cell} ${w.default.head}`,children:(0,l.jsx)(c.default,{type:"text-14",color:"text-on-bright.level-3",as:"span",children:e.name})})},H=({columnList:e,sortBy:t,sortDirection:a,setSort:n})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:`${w.default.table_cell_first} ${w.default.head}`,children:(0,l.jsx)(c.default,{type:"text-14",color:"text-on-bright.level-3",as:"span",children:"ì¢ ëª© ì ë³´"})}),e.map(e=>(0,l.jsx)(Z,{value:e,sortBy:t,sortDirection:a,setSort:n},e.label))]}),J=({id:e,data:t,sort:a,setSort:n})=>{let{columnList:r,stockList:i}=t,{headRef:s,bodyRef:d,scrollBarRef:u,leftScrolled:m,syncScroll:y}=(e=>{let l=(0,o.useRef)(null),t=(0,o.useRef)(null),a=(0,o.useRef)(null),[n,r]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{l.current?.scrollTo(0,0)},[e]),{headRef:l,bodyRef:t,scrollBarRef:a,leftScrolled:n,syncScroll:e=>n=>{"head"!==e&&l.current&&(l.current.scrollLeft=n.currentTarget.scrollLeft),"body"!==e&&t.current&&(t.current.scrollLeft=n.currentTarget.scrollLeft),"scrollbar"!==e&&a.current&&(a.current.scrollLeft=n.currentTarget.scrollLeft),"scrollbar"===e&&r(n.currentTarget.scrollLeft>0)}}})(e),{tableHeadRef:_,columnWidth:k,tableContentWidth:g}=(e=>{let l=(0,o.useRef)(null),[t,a]=(0,o.useState)([]),[n,r]=(0,o.useState)(0);return(0,o.useEffect)(()=>{let e=[],t=l.current?.children;if(t){for(let l=0;l<t.length;l++){let a=t[l];e.push(a.clientWidth)}a(e),r(e.reduce((e,l)=>e+l,0))}},[e]),{tableHeadRef:l,columnWidth:t,tableContentWidth:n}})(e),p=0===i.length;return(0,l.jsxs)("div",{className:(0,f.getClassname)([w.default.table,m?w.default.left_scrolled:void 0]),children:[(0,l.jsx)("div",{className:w.default.table_head,ref:s,onScroll:y("head"),children:(0,l.jsx)("div",{className:`${w.default.table_row} ${w.default.head} ${p?w.default.empty:""}`,ref:_,children:(0,l.jsx)(H,{columnList:r,sortBy:a.sortBy,sortDirection:a.sortDirection,setSort:n})})}),p?(0,l.jsx)(Y,{}):(0,l.jsx)(q,{id:e,sort:a,bodyRef:d,handleScroll:y("body"),stockList:i,columnWidth:k}),!p&&(0,l.jsx)("div",{className:w.default.fake_scrollbar,children:(0,l.jsx)("div",{className:w.default.fake_scroll_area,ref:u,onScroll:y("scrollbar"),children:(0,l.jsx)("div",{className:w.default.fake_scrollbar_track,style:{width:g}})})}),(0,l.jsxs)("div",{className:w.default.disclaimer,children:[(0,l.jsxs)("div",{className:w.default.disclaimer_header,children:[(0,l.jsx)($.default,{name:"info",size:16,color:"gray.60"}),(0,l.jsx)(c.default,{type:"text-14",weight:"semibold",color:"text-on-bright.level-4",children:"주ìì¬í"})]}),(0,l.jsx)(c.default,{type:"text-14",weight:"medium",color:"text-on-bright.level-4",children:`ì¢ ëª©ì°¾ê¸° ë´ ì¢ ëª©ì ê°ê´ì ì§í(ì ì©ì¡°ê±´)ì ë°ë¼ ìë ì¶ì¶ë ê²ì¼ë¡, ë¹ì¬ì 주ê´ì ì견ì´ë í¬ì ê¶ì ê° ë°ìëì§ ìììµëë¤. 3í¬ì ì ì, ê¶ì , ì문 목ì ì´ ìë ë¨ì ì°¸ê³ ì© ìë£ìì ì ìíì기 ë°ëëë¤.`})]})]})};var X=e.i(165327),ee=e.i(360174),el=e.i(322193);let et=()=>{let e=(0,o.useRef)(null),l=(0,el.useSetAtom)(X.ScreenerPageTabTopState),t=(0,o.useCallback)(()=>{e.current&&l(60-Math.max(200-e.current.getBoundingClientRect().top,0))},[l]),a=(0,ee.default)(t,20),n=(0,o.useCallback)(()=>{a()},[a]);return(0,o.useLayoutEffect)(()=>(window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)}),[n]),{tableRef:e}};var ea=e.i(547574),en=e.i(300644);let er=e=>{var t;let a=(t={screenerId:e.id},I.I().getUseClientScreenerRepo().lazyScreenerFilterStockCount(t).screenerFilterStockList),{tableRef:n}=et();return(0,l.jsxs)("div",{className:`${w.default.table_filter} ${!a?w.default.empty:""}`,ref:n,children:[(0,l.jsx)(c.default,{type:"text-13",color:"text-on-bright.level-2",as:"span",className:w.default.stock_count,children:`ì ì²´ ì¢ ëª© ${a?.allStockCount??0} / ê°ë³ ì¢ ëª© ${a?.individualStockCount??0}`}),(0,l.jsxs)("button",{className:w.default.filter_etf,onClick:()=>e.setIsIndividualStock(!e.isIndividualStock),children:[(0,l.jsx)(ea.default,{checked:e.isIndividualStock??!1,size:20}),(0,l.jsx)(c.default,{type:"text-14",weight:"medium",color:"text-on-bright.level-2",as:"span",children:"ETF ì ì¸"})]}),"US"===e.country?(0,l.jsx)(en.default,{onClickSegment:e.setCurrencyUnit,selectedValue:e.currencyUnit}):(0,l.jsx)("div",{style:{height:32,marginLeft:-16}})]})},ei=e=>{let{tableRef:t}=et();return(0,l.jsxs)("div",{className:`${w.default.table_filter} ${w.default.empty}`,ref:t,children:[(0,l.jsx)(c.default,{type:"text-13",color:"text-on-bright.level-2",as:"span",className:w.default.stock_count,children:"ì ì²´ ì¢ ëª© / ê°ë³ ì¢ ëª©"}),(0,l.jsxs)("button",{className:w.default.filter_etf,onClick:()=>{},children:[(0,l.jsx)(ea.default,{checked:e.isIndividualStock??!0,size:20}),(0,l.jsx)(c.default,{type:"text-14",weight:"medium",color:"text-on-bright.level-2",as:"span",children:"ETF ì ì¸"})]}),"US"===e.country?(0,l.jsx)(en.default,{onClickSegment:()=>{},selectedValue:e.currencyUnit}):(0,l.jsx)("div",{style:{height:32,marginLeft:-16}})]})};var es=e.i(893411);let eo=()=>(0,l.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:300},children:(0,l.jsx)(es.Spinner,{})}),ec=({id:e,sort:t,setSort:a})=>{var n;let r,i=(n={screenerId:e,...t},(r=I.I().getUseClientScreenerRepo().lazyScreenerFilterStockList(n)).screenerFilterStockList?{columnList:[...F,...(0,m.filterNull)(r.screenerFilterStockList.columnList)],stockList:(0,m.filterNull)(r.screenerFilterStockList.stockList.map(e=>e&&{...e,relatedFilterList:(0,m.filterNull)(e.relatedFilterList??[]),initialColumnValue:(0,m.filterNull)(e.columnValue)}))}:null);return i&&(0,l.jsx)(J,{id:e,data:i,sort:t,setSort:a})},ed=({id:e,country:t,sort:a,setSort:n})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(U.default,{fallback:(0,l.jsx)(ei,{country:t,isIndividualStock:a.isIndividualStock,currencyUnit:a.currencyUnit}),children:(0,l.jsx)(er,{id:e,country:t,isIndividualStock:a.isIndividualStock,setIsIndividualStock:e=>n(l=>({...l,isIndividualStock:e})),currencyUnit:a.currencyUnit,setCurrencyUnit:e=>n(l=>({...l,currencyUnit:e}))})}),(0,l.jsx)(U.default,{fallback:(0,l.jsx)(eo,{}),children:(0,l.jsx)(ec,{id:e,sort:a,setSort:n})})]});e.s(["default",0,({country:e,name:c,preloaded:d})=>{let u,m,y=(0,s.useRouter)(),_=(u=(0,r.useRelayEnvironment)(),m=(0,a.default)(u,d),[...(0,r.usePreloadedQuery)(n.GetScreenerFilterList,m).screenerFilterList]),[g,p]=(0,o.useState)({sortBy:void 0,sortDirection:void 0,isIndividualStock:!0,currencyUnit:t.COUNTRY_TO_CURRENCY[e]});(0,o.useEffect)(()=>{p(l=>({sortBy:void 0,sortDirection:void 0,isIndividualStock:l.isIndividualStock,currencyUnit:t.COUNTRY_TO_CURRENCY[e]}))},[c,e]);let f=(0,o.useMemo)(()=>void 0===c||""===c?_[0]:_.find(e=>e.name.replace(/\s+/g,"")===c),[c,_]);return 0===_.length?(0,l.jsx)(l.Fragment,{}):f?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v,{filters:_,selected:f,country:e}),(0,l.jsx)(k,{selected:f}),(0,l.jsx)(ed,{id:f.id,country:e,sort:g,setSort:p},f.id)]}):(y.replace((0,i.getScreenerUrl)(e)),(0,l.jsx)(l.Fragment,{}))}],888605)}]); 4 5//# debugId=e9015db2-aea9-0907-6863-17e09357e7b2 6//# sourceMappingURL=0tlcxeeu8xub9.js.map
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.