PageSourceSearch

https://online.shinhansec.com.vn/static/js/4209.58db2ab0.chunk.js

js shinhansec.com.vn collected 2026-09-24 13:03:51 UTC 10,421 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkssv_web=self.webpackChunkssv_web||[]).push([[2967,4209],{8855(e,t,n){n.r(t),n.d(t,{default:()=>f});var s=n(76034),a=n(47500),o=n(62852),l=n(96932),i=n(89357),c=n(52486),r=n(84532),g=n(90404),d=n(63232),S=n(18924),v=n(90643),u=n(74375),m=n(57744);const _=()=>{try{const e=new URLSearchParams(window.location.search);return String(e.get("stock")||"ACB").trim()||"ACB"}catch(e){return"ACB"}},b=()=>(0,m.jsx)("div",{className:"TVChartContainer fix h-100 w-100 position-relative",children:(0,m.jsx)(a.Suspense,{fallback:(0,m.jsx)("div",{className:"position-absolute d-flex align-items-center justify-content-center h-100 w-100",children:(0,m.jsx)("div",{className:"text-secondary",children:"Loading chart"})}),children:(0,m.jsx)(u.default,{autosize:!0,component:"TRADINGVIEW_STANDALONE",containerId:"tradingview_standalone_chart",stockCode:_()})})});var h=n(72746),T=n(12967),p=n(91036),k=n(69929);const C="TRADINGVIEW_STANDALONE",x=["STO","STX","UPX","DVX","BDX","HCX"],D=()=>{const e=null===l.Ay||void 0===l.Ay?void 0:l.Ay["081"];document.title="Ch\u1ee9ng Kho\xe1n Shinhan Vi\u1ec7t Nam (SSV)",k.glb_sv.activeCode="081",k.glb_sv.configInfo=e?(0,s.A)((0,s.A)({},e),{},{menuConfig:c.A}):{menuConfig:c.A},k.glb_sv.language=(()=>{try{const e=new URLSearchParams(window.location.search),t=String(e.get("language")||"").trim().toUpperCase();if(["VI","EN","CN","ZH","KO","JA"].includes(t))return"ZH"===t?"CN":t;const n=String(localStorage.getItem("STOCK_INFO_LANG")||"VI").trim().toUpperCase();if(["VI","EN","CN","ZH","KO","JA"].includes(n))return"ZH"===n?"CN":n}catch(e){}return"VI"})(),k.glb_sv.tradingViewFlag=!0,k.glb_sv.commonEvent.next({type:k.eventList.CHANGE_ACTIVE_CODE})},I=()=>((0,a.useEffect)(()=>{D(),(()=>{(0,p.initializeIndexMarketDefaults)();const e="KO"===k.glb_sv.language?"KR":"JA"===k.glb_sv.language?"JP":k.glb_sv.language,t=Array.from(new Set([e,"VI","EN"])),n=x.flatMap(e=>t.map(t=>"KRXMDDS|STKLST|".concat(e,"|").concat(t))),s=new Set(Array.isArray(k.glb_sv.mrk_stklist)?k.glb_sv.mrk_stklist.map(e=>null===e||void 0===e?void 0:e.t55).filter(Boolean):[]);n.forEach(e=>{var t,n,a;const o=(0,h.bJ)(e),l=String((null===o||void 0===o||null===(t=o.data)||void 0===t?void 0:t.exchange)||(null===o||void 0===o||null===(n=o.data)||void 0===n?void 0:n.t30001)||""),i=Array.isArray(null===o||void 0===o||null===(a=o.data)||void 0===a?void 0:a.STOCK)?o.data.STOCK:[];l&&0!==i.length&&i.forEach(e=>{const t=String((null===e||void 0===e?void 0:e.S)||"").trim();if(!t)return;const n=String((null===e||void 0===e?void 0:e.N)||t).trim();if(k.glb_sv.StockMarket[t])k.glb_sv.StockMarket[t].U10=l,k.glb_sv.StockMarket[t].U9=n,k.glb_sv.StockMarket[t].U9_VI=n;else{const e=new k.InfoStock;e.t55=t,e.U10=l,e.U9=n,e.U9_VI=n,k.glb_sv.StockMarket[t]=e}s.has(t)||(k.glb_sv.mrk_stklist.push({U10:l,t55:t,value:t,label:n}),s.add(t))})}),Array.isArray(k.glb_sv.mrk_stklist)&&k.glb_sv.mrk_stklist.length>0&&k.glb_sv.handleDataTradingview(k.glb_sv.mrk_stklist),(0,p.initializeIndexSymbolsForTradingView)(),k.glb_sv.commonEvent.next({type:k.eventList.GET_STOCK_LIST_DONE})})(),(0,k.installTradingViewAuthInterceptors)(),(0,g.installSocketLifecycle)(),(0,g.configureSocketEndpoints)({nodeIndex:0,serverNodeList:i.A.server_node_list,streamUrls:["https://online.shinhansec.com.vn"],tradingUrls:["https://online.shinhansec.com.vn"]});let e=!1;const t=()=>{e||(e=!0,(()=>{const e=()=>{(0,T.getListStockByExchange)(C,x)},t=()=>{(0,k.subcribeFunctWithControl)({component:C,Command:"UNSUB",topic:["KRXMDDS|STKVER"],value:[""]}),e()};(0,T.getVersionStockMarket)(C,()=>{(0,k.subcribeFunctWithControl)({component:C,Command:"UNSUB",topic:["KRXMDDS|STKVER"],value:[""]}),e()},t,t)})())},n=k.glb_sv.commonEvent.subscribe(e=>{switch(e.type){case k.eventList.CONNECT_MARKET:case k.eventList.RECONNECT_MARKET:t()}});(0,g.bootstrapSocketConnections)({includeTrading:!1});const s=window.setTimeout(()=>{t()},1200);return()=>{var e;window.clearTimeout(s),null===n||void 0===n||null===(e=n.unsubscribe)||void 0===e||e.call(n),(0,g.cleanupSocketConnections)()}},[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(v.A,{}),(0,m.jsx)(b,{})]})),f=()=>(0,m.jsx)(a.Suspense,{fallback:(0,m.jsx)(r.A,{}),children:(0,m.jsx)(d.A,{children:(0,m.jsx)(S.A,{children:(0,m.jsx)(o.Kd,{children:(0,m.jsx)(I,{})})})})})},90643(e,t,n){n.d(t,{A:()=>T});var s=n(76034),a=n(77116),o=(n(54240),n(76239)),l=n(45850),i=n(47500),c=n(69533),r=n.n(c),g=n(63232),d=n(58733),S=n(69929),v=n(32350),u=(n(42277),n(21600)),m=n(76012),_=n(57744);const b=["isModalV2","width"];function h(){const{t:e}=(0,d.B)(),{theme:t}=(0,i.useContext)(g.P),[n,c]=(0,i.useState)(!1),[h,T]=(0,i.useState)(!1),[p,k]=(0,i.useState)({}),C=()=>{c(!1),p.cancelCallBack?p.cancelCallBack():p.showCancel||p.linkCallback&&p.linkCallback()};(0,i.useEffect)(()=>{const e=S.glb_sv.commonEvent.subscribe(e=>{e.type===S.eventList.ALERT_MODAL&&(k(e.params),c(!0),S.glb_sv.focu
1sInput("modal-button-cfm",100)),e.type===(null===S.eventList||void 0===S.eventList?void 0:S.eventList.CLOSE_MODAL_V2)&&c(!1)});return()=>{e.unsubscribe()}},[]);const x=p||{},{isModalV2:D,width:I}=x,f=(0,a.A)(x,b);return D?(0,_.jsx)(v.A,(0,s.A)({isOpen:n,onClick:()=>c(!1),width:I},f)):(0,_.jsx)(o.A,{visible:n,onCancel:C,footer:null,width:400,zIndex:999999,centered:!0,maskClosable:!1,closable:!1,className:r()("custom-modal",{"custom-modal-light":"LIGHT"===t}),destroyOnClose:!0,maskStyle:{opacity:m.ag},bodyStyle:{borderRadius:8,padding:0},children:(0,_.jsxs)("div",{className:"flex flex-col justify-center items-center gap-8 p-[32px] border border-gray_light-6 dark:border-0 "+p.type,children:[" ",p.icon||(0,_.jsx)("div",{className:"flex flex-col justify-center items-center",children:(0,_.jsx)("img",{src:u,loading:"lazy",className:"object-contain w-auto h-auto"})}),(0,_.jsxs)("div",{className:"flex flex-col justify-center items-center gap-[12px]",children:[(0,_.jsx)("h2",{className:"text-xl font-semibold text-primary text-center",children:p.title}),(0,_.jsx)("p",{className:"text-[15px] leading-[24px] font-regular text-secondary text-center",children:p.content})]}),p.layoutAfterContentRender&&p.layoutAfterContentRender(),(0,_.jsxs)("div",{className:"flex gap-2 align-items-center justify-content-between w-100",children:[(0,_.jsx)(l.A,{style:{backgroundColor:"#783CF0",width:"100%"},block:!0,size:"large",onClick:()=>{c(!1),p.isNotShowAgain&&h&&localStorage.setItem(p.localStorage,!1),p.linkCallback&&p.linkCallback()},id:"modal-button-cfm",children:(0,_.jsx)("span",{className:"text-white",children:p.titleConfirm?e(p.titleConfirm):e("common_Ok")})}),p.showCancel?(0,_.jsx)(l.A,{block:!0,size:"large",onClick:C,className:"text-primary bg-gray_light-4 dark:bg-gray-50 w-100",children:(0,_.jsx)("span",{children:e("common_Cancel")})}):null]}),p.isNotShowAgain?(0,_.jsxs)("span",{className:"flex items-center",children:[(0,_.jsx)("input",{className:"mr-2 w-4 h-4 accent-primary-basic",type:"checkBox",checked:h,onChange:()=>T(!h)}),(0,_.jsx)("span",{children:p.notShowAgainMessage})]}):null]})})}const T=(0,i.memo)(h)}
1,12967(e,t,n){n.d(t,{getListStockByExchange:()=>i,D:()=>c,getVersionStockMarket:()=>l});var s=n(69929),a=n(72746),o=n(91036);const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};(()=>{const e=["VERSION_STKLIST","STOCK_INFO_HSX","STOCK_INFO_HNX","STOCK_INFO_UPC"];e.forEach(e=>localStorage.removeItem(e));for(let t=1;t<=4;t++)e.forEach(e=>localStorage.removeItem("".concat(e,"_").concat(t)))})();(0,s.subcribeFunctWithControl)({component:e,Command:"SUB",topic:["KRXMDDS|STKVER"],value:[""],onSuccess:t,onFailed:n,onTimeout:a})},i=(e,t)=>{const n="KO"===s.glb_sv.language?"KR":"JA"===s.glb_sv.language?"JP":s.glb_sv.language,l=t.map(e=>"KRXMDDS|STKLST|".concat(e,"|").concat(n)),i=()=>{(0,o.initializeIndexMarketDefaults)();["STO","STX","UPX","DVX","BDX","HCX"].forEach(e=>{const t="KRXMDDS|STKLST|".concat(e,"|").concat(s.glb_sv.language),n=(0,a.bJ)(t);n&&s.glb_sv.updSTKLIST_Msg2MrkInfoMap(n)});["KRXMDDS|IGS|STO|101","KRXMDDS|IGS|STX|100"].forEach(e=>{const t=(0,a.bJ)(e);t&&s.glb_sv.updIDS_Msg2MrkInfoMap(t)}),s.glb_sv.handleDataTradingview(s.glb_sv.mrk_stklist),s.glb_sv.commonEvent.next({type:s.eventList.GET_STOCK_LIST_DONE})};(0,s.subcribeFunctWithControl)({component:e,Command:"SUB",topic:l,value:[""],onSuccess:()=>{setTimeout(()=>{(0,s.subcribeFunctWithControl)({component:e,Command:"UNSUB",topic:l,value:[""]});[{index:"HSXIndex",key:"STOCK_INFO",topic:"KRXMDDS|STKLST|STO|"+s.glb_sv.language},{index:"HNXIndex",key:"STOCK_INFO",topic:"KRXMDDS|STKLST|STX|"+s.glb_sv.language},{index:"HNXUpcomIndex",key:"STOCK_INFO",topic:"KRXMDDS|STKLST|UPX|"+s.glb_sv.language},{index:"HNXIndex",key:"STOCK_INFO_DERIVATIVE",topic:"KRXMDDS|STKLST|DVX|"+s.glb_sv.language},{index:"HNXIndex",key:"BDX_BONDS_LIST",topic:"KRXMDDS|STKLST|BDX|"+s.glb_sv.language},{index:"HNXIndex",key:"HCX_BONDS_LIST",topic:"KRXMDDS|STKLST|HCX|"+s.glb_sv.language}].forEach(e=>{let{index:t,key:n,topic:o}=e;if(0===s.glb_sv.IndexMarket[t][n].length){const e=(0,a.bJ)(o);e&&s.glb_sv.updSTKLIST_Msg2MrkInfoMap(e)}});["KRXMDDS|IGS|STO|101","KRXMDDS|IGS|STX|100"].forEach(e=>{const t=(0,a.bJ)(e);t&&s.glb_sv.updIDS_Msg2MrkInfoMap(t)}),s.glb_sv.handleDataTradingview(s.glb_sv.mrk_stklist),s.glb_sv.commonEvent.next({type:s.eventList.GET_STOCK_LIST_DONE})},3e3)},onFailed:i,onTimeout:i})},c=(e,t)=>{const n="KO"===s.glb_sv.language?"KR":"JA"===s.glb_sv.language?"JP":s.glb_sv.language,l=t.map(e=>"KRXMDDS|STKLST|".concat(e,"|").concat(n)),i=()=>{(0,o.initializeIndexMarketDefaults)();["STO","STX","UPX","DVX","BDX","HCX"].forEach(e=>{const t="KRXMDDS|STKLST|".concat(e,"|").concat(s.glb_sv.language),n=(0,a.bJ)(t);n&&s.glb_sv.updSTKLIST_Msg2MrkInfoMap(n)});["KRXMDDS|IGS|STO|101","KRXMDDS|IGS|STX|100"].forEach(e=>{const t=(0,a.bJ)(e);t&&s.glb_sv.updIDS_Msg2MrkInfoMap(t)}),s.glb_sv.handleDataTradingview(s.glb_sv.mrk_stklist),s.glb_sv.commonEvent.next({type:s.eventList.CHANGE_LANGUAGE_STOCK_TRADINGVIEW})};(0,s.subcribeFunctWithControl)({component:e,Command:"SUB",topic:l,value:[""],onSuccess:()=>{setTimeout(()=>{(0,s.subcribeFunctWithControl)({component:e,Command:"UNSUB",topic:l,value:[""]}),s.glb_sv.handleDataTradingview(s.glb_sv.mrk_stklist),s.glb_sv.commonEvent.next({type:s.eventList.CHANGE_LANGUAGE_STOCK_TRADINGVIEW})},3e3)},onFailed:i,onTimeout:i})}}}]);

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.