1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8379],{46309:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(91373);/** 2 * @license lucide-react v0.468.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let r=(0,i.Z)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},67369:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(91373);/** 7 * @license lucide-react v0.468.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let r=(0,i.Z)("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]])},50781:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(91373);/** 12 * @license lucide-react v0.468.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let r=(0,i.Z)("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]])},18910:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(91373);/** 17 * @license lucide-react v0.468.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let r=(0,i.Z)("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]])},39038:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mo-tai-khoan/BSC",function(){return n(35868)}])},10897:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var i=n(85893),r=n(67294),a=n(52649),s=n(73846),l=n(99261);let o=e=>{let{open:t,onOpenChange:n,onSuccess:o,disableOutsideClick:c=!1}=e,d=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{if(t&&!d.current){let e=(0,l.IH)();(0,l.Kz)(e,"open_broker_account",{broker:"Shinhan",step:"kyc_start"}),d.current=!0}},[t]),(0,i.jsx)(a.Vq,{open:t,onOpenChange:n,children:(0,i.jsx)(a.cZ,{className:"ssv-font w-[95%] max-h-[88vh] overflow-y-auto rounded-2xl bg-card p-4 sm:max-w-[640px] sm:p-6 md:max-w-[860px] lg:max-w-[1060px]",onPointerDownOutside:c?e=>e.preventDefault():void 0,hiddenTitle:"X\xe1c thá»±c th\xf4ng tin kh\xe1ch h\xe0ng",children:(0,i.jsx)(s.ZP,{onSuccess:o})})})}},80240:function(e,t,n){"use strict";var i=n(85893),r=n(52649),a=n(87633),s=n(71259);t.Z=e=>{var t;let{open:n,setOpen:l,linkedAccount:o,disableOutsideClick:c=!1,onClose:d,brokerName:x="Shinhan"}=e,{data:h,isLoading:u}=(0,a.a)({queryKey:["bankAccount",null==o?void 0:o.userId],queryFn:()=>(0,s.HI)((null==o?void 0:o.userId)||0,"00"),enabled:!!(null==o?void 0:o.userId)&&n});return(0,i.jsx)(r.Vq,{open:n,onOpenChange:e=>{l(e),!e&&d&&d()},children:(0,i.jsxs)(r.cZ,{className:"w-full lg:max-w-[950px] p-2 md:p-6 dark:bg-zinc-900 m-0 rounded-lg",hiddenTitle:"Ná»p tiá»n t\xe0i khoản ".concat(x),onPointerDownOutside:c?e=>e.preventDefault():void 0,children:[(0,i.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-2 md:gap-8 p-2 md:p-6",children:[(0,i.jsxs)("div",{className:"flex flex-col items-center",children:[(0,i.jsxs)("div",{className:"flex items-start space-x-3 mb-4",children:[(0,i.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-blue-500 text-white font-bold",children:"1"}),(0,i.jsxs)("div",{className:"flex-1",children:[(0,i.jsx)("h3",{className:"text-blue-500 font-semibold",children:"Chuyá»n tiá»n"}),(0,i.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Má» App ng\xe2n h\xe0ng qu\xe9t m\xe3 QR dưá»i Ä\xe2y Äá» ná»p tiá»n v\xe0o t\xe0i khoản chứng kho\xe1n"," ",x,"."]})]})]}),(0,i.jsx)("div",{className:"w-48 h-48 sm:w-64 sm:h-64 relative",children:u?(0,i.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,i.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600"})}):(null==h?void 0:null===(t=h.data)||void 0===t?void 0:t.qrCode)?(0,i.jsx)("img",{alt:"M\xe3 QR ná»p tiá»n t\xe0i khoản ".concat(x),className:"rounded-lg shadow-lg border border-gray-200",width:250,height:250,src:h.data.qrCode}):(0,i.jsx)("div",{className:"w-full h-full flex items-center justify-center text-gray-500 text-sm",children:"Kh\xf4ng thá» tải m\xe3 QR"})})]}),(0,i.jsx)("div",{className:"flex flex-col items-center",children:(0,i.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,i.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-blue-500 text-white font-bold",children:"2"}),(0,i.jsxs)("div",{className:"w-full",children:[(0,i.jsx)("h3",{className:"text-blue-500 font-semibold",children:"Th\xf4ng tin chuyá»n khoản"}),(0,i.jsxs)("div",{className:"mt-4 w-full bg-muted/40 p-4 rounded-md border text-sm space-y-2",children:[(null==h?void 0:h.data)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex justify-between",children:[(0,i.jsx)("span",{className:"text-muted-foreground font-medium",children:"Ng\xe2n h\xe0ng:"}),(0,i.jsx)("span",{className:"flex-1 text-right",children:h.data.bankName})]}),(0,i.jsxs)("div",{className:"flex justify-between",children:[(0,i.jsx)("span",{className:"text-muted-foreground font-medium",children:"Sá» t\xe0i khoản:"}),(0,i.jsx)("span",{className:"flex-1 text-right font-mono",children:h.data.accountNo})]}),(0,i.jsxs)("div",{className:"flex justify-between",children:[(0,i.jsx)("span",{className:"text-muted-foreground font-medium",children:"Ná»i dung:"}),(0,i.jsx)("span",{className:"flex-1 text-right",children:h.data.bankContent})]})]}),(0,i.jsxs)("div",{className:"flex justify-between",children:[(0,i.jsx)("span",{className:"text-muted-foreground font-medium",children:"Loại giao dá»ch:"}),(0,i.jsx)("span",{className:"font-bold text-right text-green-600",children:"Ná»p tiá»n"})]})]})]})]})})]}),(0,i.jsxs)("div",{className:"w-fit justify-self-center flex items-center p-4 mb-4 text-sm text-blue-800 rounded-lg bg-blue-50 dark:bg-gray-800 dark:text-blue-400",children:[(0,i.jsx)("svg",{className:"shrink-0 inline w-4 h-4 mr-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"
21currentColor",viewBox:"0 0 20 20",children:(0,i.jsx)("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"})}),(0,i.jsx)("div",{children:"Sá» tiá»n sẽ ÄÆ°á»£c cáºp nháºt v\xe0o t\xe0i khoản ngay khi bạn ho\xe0n th\xe0nh thanh to\xe1n. Vui l\xf2ng tắt cá»a sá» v\xe0 kiá»m tra lại sá» dư."})]}),(0,i.jsxs)("div",{className:"w-fit justify-self-center flex items-center p-4 mb-4 text-sm text-amber-800 rounded-lg bg-amber-50 dark:bg-amber-900/20 dark:text-amber-400",children:[(0,i.jsx)("svg",{className:"shrink-0 inline w-4 h-4 mr-3","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:(0,i.jsx)("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"font-medium",children:"Há» trợ!"})," Nếu gặp vấn Äá» trong qu\xe1 tr\xecnh ná»p tiá»n, vui l\xf2ng li\xean há»"," ",(0,i.jsx)("a",{href:"tel:02432252120",className:"font-semibold underline hover:no-underline transition-all duration-200",children:"Hotline: 024.3225.2120"})]})]})]})})}},35868:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return z}});var i=n(85893),r=n(67294),a=n(41664),s=n.n(a),l=n(33299),o=n(99261),c=n(50781),d=n(46309),x=n(67369),h=n(54463),u=n(18910),m=n(82701),g=n(53219),f=n(18814),p=n(19769),b=n(68835),v=n(62630),k=n(10897),y=n(80240),j=n(6920),w=n(43867),N=n(94571),C=n(2664),S=n(87633),B=n(2509),Z=n(69924),A=n(71259);let L=["A","P"];var M=n(13742),F=n(36316),I=n(42297),_=n(6972);let q=["Äá»nh danh","Má» t\xe0i khoản","Li\xean kết","Giao dá»ch"],K={guest:0,unverified:0,new:1,submitted:1,contract:1,approved:2,linked:3},V=e=>null==e?"â":new Intl.NumberFormat("vi-VN",{maximumFractionDigits:0}).format(e),T=e=>{let{current:t,brand:n}=e;return(0,i.jsx)("ol",{className:"flex items-center gap-2",children:q.map((e,r)=>{let a=r<t,s=r===t;return(0,i.jsxs)("li",{className:"flex flex-1 flex-col gap-2",children:[(0,i.jsx)("span",{className:(0,_.cn)("h-1.5 w-full rounded-full transition-colors",!a&&!s&&"bg-border"),style:a||s?{backgroundColor:n}:void 0}),(0,i.jsxs)("span",{className:(0,_.cn)("flex items-center gap-1 text-[11px] font-medium",a||s?"text-foreground":"text-muted-foreground"),children:[a&&(0,i.jsx)(M.Z,{className:"h-3 w-3",strokeWidth:3,style:{color:n}}),e]})]},e)})})},H=e=>{let{label:t,value:n}=e;return(0,i.jsxs)("div",{className:"rounded-2xl border border-border/60 bg-background/60 px-4 py-3",children:[(0,i.jsx)("div",{className:"text-[11px] text-muted-foreground",children:t}),(0,i.jsx)("div",{className:"mt-1 text-lg font-bold tabular-nums text-foreground",children:n})]})},E=e=>{let{brand:t,phase:n,copy:r,isLoading:a,isBusy:s,accountState:l,accountNumber:o,onPrimary:c,onSecondary:d,onRefresh:x}=e,h=r[n],u=K[n],m="linked"===n;return(0,i.jsxs)("div",{className:"relative overflow-hidden rounded-[2rem] border border-border/60 bg-card p-6 shadow-sm sm:p-8",children:[(0,i.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute -right-24 -top-24 h-56 w-56 rounded-full blur-[100px]",style:{backgroundColor:"".concat(t,"26")}}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(T,{current:u,brand:t}),a?(0,i.jsxs)("div",{className:"mt-8 flex items-center gap-3 text-sm text-muted-foreground",children:[(0,i.jsx)(F.Z,{className:"h-5 w-5 animate-spin",style:{color:t}}),"Äang kiá»m tra trạng th\xe1i t\xe0i khoản cá»§a bạnâ¦"]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"mt-8 text-[11px] font-bold uppercase tracking-wider",style:{color:t},children:h.eyebrow}),(0,i.jsx)("h2",{className:"mt-2 text-xl font-bold tracking-tight text-foreground sm:text-2xl",children:h.title}),(0,i.jsx)("p",{className:"mt-2 max-w-2xl text-sm leading-relaxed text-muted-foreground",children:h.description}),m&&(0,i.jsxs)("div",{className:"mt-6 grid gap-3 sm:grid-cols-3",children:[(0,i.jsx)(H,{label:"Sức mua / Sá» dư",value:V(null==l?void 0:l.balance)}),(0,i.jsx)(H,{label:"Tá»ng t\xe0i sản",value:V(null==l?void 0:l.equity)}),(0,i.jsx)(H,{label:"L\xe3i/lá» chưa thá»±c hiá»n",value:V(null==l?void 0:l.unrealizedPl)})]}),m&&o&&(0,i.jsxs)("p",{className:"mt-3 text-xs text-muted-foreground",children:["T\xe0i khoản Ä\xe3 li\xean kết:"," ",(0,i.jsx)("span",{className:"font-mono font-semibold text-foreground",children:o})]}),(0,i.jsxs)("div",{className:"mt-7 flex flex-wrap items-center gap-3",children:[(0,i.jsxs)("button",{type:"button",onClick:c,disabled:s,className:"inline-flex items-center justify-center gap-2 rounded-full px-6 py-3 text-sm font-semibold text-white shadow-lg transition-all hover:-translate-y-0.5 hover:shadow-xl disabled:cursor-not-allowed disabled:opacity-60",style:{backgroundColor:t},children:[s&&(0,i.jsx)(F.Z,{className:"h-4 w-4 animate-spin"}),h.primaryLabel]}),h.secondaryLabel&&d&&(0,i.jsx)("button",{type:"button",onClick:d,className:"inline-flex items-center justify-center gap-2 rounded-full border border-border/70 bg-background px-6 py-3 text-sm font-semibold text-foreground
21/80 transition-all hover:-translate-y-0.5 hover:text-foreground",children:h.secondaryLabel}),h.showRefresh&&x&&(0,i.jsxs)("button",{type:"button",onClick:x,className:"inline-flex items-center gap-1.5 rounded-full px-3 py-2 text-xs font-semibold text-muted-foreground transition-colors hover:text-foreground",children:[(0,i.jsx)(I.Z,{className:"h-3.5 w-3.5"}),"Kiá»m tra lại"]})]})]})]})]})},D="#2e5fa8",R=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return{guest:{eyebrow:"Bắt Äầu",title:"ÄÄng nháºp FireAnt Äá» bắt Äầu",description:"Bạn cần t\xe0i khoản FireAnt trưá»c khi má» hoặc li\xean kết t\xe0i khoản chứng kho\xe1n ".concat(e,"."),primaryLabel:"ÄÄng nháºp"},unverified:{eyebrow:"Bưá»c 1 \xb7 Äá»nh danh",title:"Äá»nh danh eKYC tr\xean FireAnt",description:"X\xe1c thá»±c giấy tá» v\xe0 ch\xe2n dung má»t lần. Há» sÆ¡ n\xe0y ÄÆ°á»£c d\xf9ng lại cho má»i Äá»i t\xe1c trong há» sinh th\xe1i FireAnt.",primaryLabel:"Äá»nh danh ngay"},new:{eyebrow:"Bưá»c 2 \xb7 Má» t\xe0i khoản",title:"Má» t\xe0i khoản chứng kho\xe1n ".concat(e),description:"Bạn chưa c\xf3 t\xe0i khoản ".concat(e,". Má» t\xe0i khoản trá»±c tuyến tại ").concat(t," bằng Ä\xfang sá» Äiá»n thoại Ä\xe3 Äá»nh danh tr\xean FireAnt, sau Ä\xf3 quay lại Ä\xe2y Äá» li\xean kết."),primaryLabel:"Má» t\xe0i khoản tại ".concat(e),secondaryLabel:"T\xf4i Ä\xe3 c\xf3 t\xe0i khoản",showRefresh:!0},submitted:{eyebrow:"Bưá»c 2 \xb7 Äang xá» l\xfd",title:"Há» sÆ¡ cá»§a bạn Äang ÄÆ°á»£c xá» l\xfd",description:"".concat(e," Äang duyá»t há» sÆ¡ má» t\xe0i khoản. Bạn sẽ nháºn ÄÆ°á»£c th\xf4ng b\xe1o ngay khi t\xe0i khoản sẵn s\xe0ng Äá» li\xean kết."),primaryLabel:"Kiá»m tra lại trạng th\xe1i",showRefresh:!0},contract:{eyebrow:"Bưá»c 2 \xb7 K\xfd hợp Äá»ng",title:"Há» sÆ¡ chá» ho\xe0n tất k\xfd kết",description:"Há» sÆ¡ Ä\xe3 ÄÆ°á»£c tiếp nháºn v\xe0 Äang chá» ho\xe0n tất hợp Äá»ng má» t\xe0i khoản vá»i ".concat(e,"."),primaryLabel:"Kiá»m tra lại trạng th\xe1i",showRefresh:!0},approved:{eyebrow:"Bưá»c 3 \xb7 Li\xean kết",title:"Li\xean kết t\xe0i khoản ".concat(e," vá»i FireAnt"),description:"Ch\xfang t\xf4i t\xecm thấy t\xe0i khoản ".concat(e," theo sá» Äiá»n thoại cá»§a bạn. Li\xean kết Äá» theo d\xf5i t\xe0i sản v\xe0 giao dá»ch ngay trong FireAnt."),primaryLabel:"Li\xean kết t\xe0i khoản",showRefresh:!0},linked:{eyebrow:"Ä\xe3 sẵn s\xe0ng",title:"T\xe0i khoản ".concat(e," Ä\xe3 li\xean kết"),description:"Bạn c\xf3 thá» nạp tiá»n v\xe0 theo d\xf5i t\xe0i sản ngay tại Ä\xe2y. Äặt lá»nh thá»±c hiá»n tr\xean ứng dụng FireAnt.",primaryLabel:"Nạp tiá»n",secondaryLabel:"L\xe0m má»i sá» dư"}}}("BSC","dangky.bsc.com.vn"),P=[{label:"Ph\xe1p nh\xe2n",value:"C\xf4ng ty Cá» phần Chứng kho\xe1n BIDV"},{label:"T\xean viết tắt",value:"BSC"},{label:"M\xe3 cá» phiếu",value:"BSI (HOSE)"},{label:"Th\xe0nh láºp",value:"18/11/1999"}],O=[{icon:c.Z,title:"Bá» d\xe0y thá» trưá»ng",desc:"Má»t trong hai c\xf4ng ty chứng kho\xe1n Äầu ti\xean cá»§a thá» trưá»ng chứng kho\xe1n Viá»t Nam."},{icon:d.Z,title:"Háºu thuẫn từ BIDV",desc:"Th\xe0nh vi\xean trong há» thá»ng Ng\xe2n h\xe0ng TMCP Äầu tư v\xe0 Ph\xe1t triá»n Viá»t Nam."},{icon:x.Z,title:"Há» sản phẩm Äầy Äá»§",desc:"Cá» phiếu, tr\xe1i phiếu, chứng kho\xe1n ph\xe1i sinh v\xe0 chứng quyá»n c\xf3 bảo Äảm."},{icon:h.Z,title:"Nghi\xean cứu & tư vấn",desc:"Äá»i ngÅ© ph\xe2n t\xedch v\xe0 dá»ch vụ tư vấn t\xe0i ch\xednh doanh nghiá»p l\xe2u nÄm."}],U=[{icon:u.Z,title:"Theo d\xf5i t\xe0i sản",desc:"Sá» dư, tá»ng t\xe0i sản v\xe0 l\xe3i/lá» chưa thá»±c hiá»n hiá»n thá» ngay tại Ä\xe2y."},{icon:m.Z,title:"Nạp tiá»n bằng QR",desc:"Qu\xe9t m\xe3 QR ng\xe2n h\xe0ng Äá» ná»p tiá»n v\xe0o t\xe0i khoản chứng kho\xe1n, kh\xf4ng cần nhá» sá» t\xe0i khoản."},{icon:x.Z,title:"Äặt lá»nh tr\xean app FireAnt",desc:"Giao dá»ch tr\xean ứng dụng FireAnt vá»i c\xf9ng biá»u Äá» v\xe0 dữ liá»u bạn Äang d\xf9ng."}],Q=(e,t)=>{try{(0,o.Kz)((0,o.IH)(),"open_broker_screen",{broker:"BSC",step:e,...t})}catch(e){}};var z=()=>{let{toast:e}=(0,j.pm)(),[t,n]=(0,r.useState)(!1),[a,o]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),{phase:x,isLoading:h,isAuthenticated:u,accountUnavailable:m,linkedAccount:M,accountState:F,refetchAll:I}=function(e){var t,n,i,a,s,o,c,d;let x=(0,C.useDispatch)(),h=(0,l.useSession)(),u=(0,C.useSelector)(Z.Cp),m="authenticated"===h.status,g=!!(null==u?void 0:u.identityVerified),f=null==u?void 0:null===(t=u.identityData)||void 0===t?void 0:null===(n=t.phoneNumber)||void 0===n?void 0:n.replace("+84","0"),[p,b]=(0,r.useState)(!1);(0,r.useEffect)(()=>
21{if(!m)return;x(B.cq.requestUserAccount()),b(!1);let e=setTimeout(()=>b(!0),8e3);return()=>clearTimeout(e)},[x,m]);let v=(0,S.a)({queryKey:["brokerApplication",e],queryFn:()=>(0,A.Ip)(e),enabled:m}),k=(0,S.a)({queryKey:["brokerLinks"],queryFn:()=>(0,A.wW)(),enabled:m}),y=(0,S.a)({queryKey:["brokerUserByPhone",e,f],queryFn:()=>(0,A.YP)(e,f||""),enabled:m&&!!f}),j=(0,r.useMemo)(()=>{var t,n;return null===(t=k.data)||void 0===t?void 0:null===(n=t.data)||void 0===n?void 0:n.find(t=>t.brokerId===e)},[null===(i=k.data)||void 0===i?void 0:i.data,e]),w=(0,S.a)({queryKey:["brokerAccountState",null==j?void 0:j.userId],queryFn:()=>(0,A.Sy)((null==j?void 0:j.userId)||0),enabled:!!(null==j?void 0:j.userId)}),N=m&&!u&&p,M=m&&!N&&(v.isLoading||k.isLoading||!u||!!f&&y.isLoading),F=null===(a=v.data)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.status,I=(0,r.useMemo)(()=>{var e;return m?g?j?"linked":"S"===F?"contract":F&&L.includes(F)?"submitted":(null===(e=y.data)||void 0===e?void 0:e.data)?"approved":"new":"unverified":"guest"},[m,g,j,F,null===(o=y.data)||void 0===o?void 0:o.data]);return{phase:I,isLoading:M,isAuthenticated:m,identityVerified:g,accountUnavailable:N,phoneNumber:f,applicationStatus:F,linkedAccount:j,accountState:null!==(d=null===(c=w.data)||void 0===c?void 0:c.data)&&void 0!==d?d:void 0,refetchAll:()=>{v.refetch(),k.refetch(),y.refetch(),(null==j?void 0:j.userId)&&w.refetch()}}}("BSC"),_=m?{...R,unverified:{eyebrow:"Cần ÄÄng nháºp lại",title:"Chưa tải ÄÆ°á»£c há» sÆ¡ FireAnt cá»§a bạn",description:"Phi\xean ÄÄng nháºp c\xf3 thá» Ä\xe3 hết hạn n\xean ch\xfang t\xf4i kh\xf4ng kiá»m tra ÄÆ°á»£c trạng th\xe1i t\xe0i khoản. Vui l\xf2ng thá» lại hoặc ÄÄng nháºp lại.",primaryLabel:"ÄÄng nháºp lại",showRefresh:!0}}:R,{startLink:q,isLinking:K}=function(e){let{brokerId:t,returnPath:n,onError:i}=e,a=(0,C.useDispatch)(),s=(0,C.useSelector)(Z.B2),l=(0,r.useRef)(null),[o,c]=(0,r.useState)(!1),d=(0,r.useCallback)(e=>{c(!1),a(B.cq.clearLinkSecuritiesAccounts()),null==i||i(e)},[a,i]),x=(0,r.useCallback)(async()=>{c(!0);try{let e=await (0,A.AW)(t);if(e.isError){d(e.errorMessage||"Kh\xf4ng khá»i tạo ÄÆ°á»£c y\xeau cầu li\xean kết. Vui l\xf2ng thá» lại sau.");return}let i=encodeURIComponent("".concat(window.location.origin).concat(n));a(B.cq.requestLinkSecuritiesAccounts(t,i))}catch(e){d((null==e?void 0:e.message)||"C\xf3 lá»i xảy ra khi li\xean kết t\xe0i khoản. Vui l\xf2ng thá» lại sau.")}},[t,n,a,d]);return(0,r.useEffect)(()=>{if(!s)return;l.current&&!l.current.closed&&l.current.close();let e=Math.round((window.screen.width-800)/2),n=Math.round((window.screen.height-600)/2),i=window.open(s,"".concat(t,"-link-popup"),"width=".concat(800,",height=").concat(600,",left=").concat(e,",top=").concat(n,",scrollbars=yes,resizable=yes"));if(l.current=i,!i){d("Tr\xecnh duyá»t Ä\xe3 chặn cá»a sá» li\xean kết. Vui l\xf2ng cho ph\xe9p popup rá»i thá» lại.");return}let r=!1,o=()=>{r||(r=!0,clearInterval(c),window.removeEventListener("message",x),i.closed||i.close(),a(B.cq.clearLinkSecuritiesAccounts()),setTimeout(()=>window.location.reload(),800))},c=setInterval(()=>{if(i.closed){o();return}try{let e=i.location.href,t=i.location.origin===window.location.origin;(t&&(e.includes("success=true")||e.includes("link_success=true"))||e.includes("/accounts/")&&(e.includes("access_token=")||e.includes("refresh_token=")))&&o()}catch(e){}},1e3),x=e=>{var t,n;e.source===i&&((null===(t=e.data)||void 0===t?void 0:t.type)==="LINK_SUCCESS"||(null===(n=e.data)||void 0===n?void 0:n.success)===!0)&&o()};return window.addEventListener("message",x),()=>{clearInterval(c),window.removeEventListener("message",x)}},[s,t,a,d]),(0,r.useEffect)(()=>()=>{l.current&&!l.current.closed&&l.current.close()},[]),{startLink:x,isLinking:o}}({brokerId:"BSC",returnPath:"/mo-tai-khoan/BSC",onError:t=>{Q("link_failed",{message:t}),e({title:"Kh\xf4ng li\xean kết ÄÆ°á»£c",description:t,variant:"destructive"})}});(0,r.useEffect)(()=>{d(!0),Q("home")},[]);let V=(0,r.useCallback)(()=>{Q("open_account_redirect"),window.open("https://dangky.bsc.com.vn/","_blank","noopener,noreferrer"),e({title:"Ä\xe3 má» cá»ng ÄÄng k\xfd cá»§a BSC",description:"H\xe3y d\xf9ng Ä\xfang sá» Äiá»n thoại Ä\xe3 Äá»nh danh tr\xean FireAnt. Má» t\xe0i khoản xong, quay lại trang n\xe0y v\xe0 bấm âKiá»m tra lạiâ Äá» li\xean kết."})},[e]),T=(0,r.useCallback)(()=>{switch(x){case"guest":(0,l.signIn)("identity-server4");break;case"unverified":if(m){(0,l.signIn)("identity-server4");break}Q("kyc_start"),n(!0);break;case"new":V();break;case"submitted":case"contract":I();break;case"approved":Q("link_start"),q();break;case"linked":F?o(!0):e({title:"Chưa lấy ÄÆ°á»£c th\xf4ng tin t\xe0i khoản",description:"Vui l\xf2ng thá» l\xe0m má»i sá» dư trong gi\xe2y l\xe1t hoặc li\xean há» hotline Äá» ÄÆ°á»£c há» trợ."})}},[x,m,V,I,q,F,e]),H=(0,r.useCallback)(()=>
21{if("new"===x){Q("link_start_manual"),q();return}"linked"===x&&I()},[x,q,I]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.Z,{title:"Má» t\xe0i khoản Chứng kho\xe1n BIDV (BSC) tr\xean FireAnt",description:"Má» v\xe0 li\xean kết t\xe0i khoản C\xf4ng ty Cá» phần Chứng kho\xe1n BIDV (BSC \xb7 HOSE: BSI) vá»i FireAnt: Äá»nh danh eKYC má»t lần, li\xean kết t\xe0i khoản, theo d\xf5i sá» dư v\xe0 nạp tiá»n bằng QR.",type:"website"}),(0,i.jsx)(k.k,{open:t,onOpenChange:n,onSuccess:()=>{Q("kyc_success"),n(!1),I()},disableOutsideClick:!0}),(0,i.jsx)(y.Z,{open:a,setOpen:o,linkedAccount:M,brokerName:"BSC",disableOutsideClick:!0,onClose:I}),(0,i.jsxs)("section",{className:"relative ml-[calc(50%-50vw)] w-screen overflow-hidden border-b border-border/50 bg-gradient-to-b from-muted/50 to-background",children:[(0,i.jsx)(N.Km,{className:"text-foreground/[0.07]"}),(0,i.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute -top-32 left-1/3 h-[420px] w-[520px] -translate-x-1/2 rounded-full blur-[130px]",style:{backgroundColor:"".concat(D,"33")}}),(0,i.jsxs)("div",{className:"relative mx-auto max-w-[1320px] px-3 pb-14 pt-10 sm:px-5 lg:px-6 lg:pb-16 lg:pt-14",children:[(0,i.jsxs)(s(),{href:"/giao-dich#chung-khoan",className:"inline-flex items-center gap-1.5 text-xs font-semibold text-muted-foreground transition-colors hover:text-foreground",children:[(0,i.jsx)(g.Z,{className:"h-3.5 w-3.5"}),"Cá»ng Giao dá»ch"]}),(0,i.jsxs)("div",{className:"mt-6 grid gap-10 lg:grid-cols-[1fr_1.05fr] lg:items-center",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"inline-flex h-14 items-center rounded-2xl px-3 dark:bg-white dark:shadow-lg",children:(0,i.jsx)("img",{src:"https://static.fireant.vn/Content/Images/bsc/logo.png",alt:"Chứng kho\xe1n BIDV",className:"h-10 w-auto object-contain"})}),(0,i.jsxs)("h1",{className:"mt-5 text-3xl font-extrabold leading-[1.14] tracking-tight text-foreground sm:text-4xl",children:["Má» t\xe0i khoản"," ",(0,i.jsx)("span",{className:"bg-clip-text text-transparent",style:{backgroundImage:"linear-gradient(90deg, ".concat(D,", ").concat("#009c84",")")},children:"Chứng kho\xe1n BIDV"})," ","v\xe0 giao dá»ch tr\xean FireAnt"]}),(0,i.jsx)("p",{className:"mt-4 max-w-xl text-sm leading-relaxed text-muted-foreground sm:text-base",children:"Äá»nh danh eKYC má»t lần tr\xean FireAnt, má» t\xe0i khoản tại BSC rá»i li\xean kết Äá» theo d\xf5i t\xe0i sản v\xe0 nạp tiá»n ngay trong há» sinh th\xe1i FireAnt."}),(0,i.jsx)("dl",{className:"mt-8 grid grid-cols-2 gap-3",children:P.map(e=>(0,i.jsxs)("div",{className:"rounded-2xl border border-border/60 bg-card/70 px-4 py-3 backdrop-blur",children:[(0,i.jsx)("dt",{className:"text-[11px] text-muted-foreground",children:e.label}),(0,i.jsx)("dd",{className:"mt-1 text-sm font-bold leading-snug text-foreground",children:e.value})]},e.label))})]}),(0,i.jsx)(E,{brand:D,phase:c?x:"guest",copy:_,isLoading:c&&u&&h,isBusy:K,accountState:F,accountNumber:null==M?void 0:M.linkedUserName,onPrimary:T,onSecondary:H,onRefresh:I})]})]})]}),(0,i.jsxs)(N.Di,{children:[(0,i.jsx)(N.NZ,{eyebrow:"Sau khi li\xean kết",accent:"sky",title:"Những g\xec bạn l\xe0m ÄÆ°á»£c ngay trong FireAnt",description:"T\xe0i khoản BSC sau khi li\xean kết sẽ hiá»n thá» trá»±c tiếp trong FireAnt, kh\xf4ng phải chuyá»n qua lại giữa c\xe1c ứng dụng."}),(0,i.jsx)("div",{className:"mt-10 grid gap-4 sm:grid-cols-3",children:U.map((e,t)=>(0,i.jsx)(N.Ue,{i:t,className:"h-full",children:(0,i.jsxs)("div",{className:"h-full rounded-2xl border border-border/60 bg-card p-5",children:[(0,i.jsx)("span",{className:"flex h-11 w-11 items-center justify-center rounded-2xl",style:{backgroundColor:"".concat(D,"1a"),color:D},children:(0,i.jsx)(e.icon,{className:"h-5 w-5"})}),(0,i.jsx)("h3",{className:"mt-4 text-sm font-bold text-foreground",children:e.title}),(0,i.jsx)("p",{className:"mt-1.5 text-sm leading-relaxed text-muted-foreground",children:e.desc})]})},e.title))}),(0,i.jsx)("p",{className:"mt-5 text-xs leading-relaxed text-muted-foreground",children:"FireAnt kh\xf4ng thu ph\xed má» t\xe0i khoản hay li\xean kết. Biá»u ph\xed giao dá»ch, ph\xed lưu k\xfd v\xe0 ch\xednh s\xe1ch margin do BSC c\xf4ng bá»."})]}),(0,i.jsxs)(N.Di,{children:[(0,i.jsx)(N.NZ,{eyebrow:"Vá» Äá»i t\xe1c",accent:"sky",title:"BSC â má»t trong những c\xf4ng ty chứng kho\xe1n l\xe2u Äá»i nhất Viá»t Nam",description:"Th\xf4ng tin do FireAnt tá»ng hợp từ nguá»n c\xf4ng bá» cá»§a BSC."}),(0,i.jsx)("div",{className:"mt-10 grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:O.map((e,t)=>(0,i.jsx)(N.Ue,{i:t,className:"h-full",children:(0,i.jsxs)("div",{className:"h-full rounded-2xl border border-border/60 bg-card p-5",children:[(0,i.jsx)("span",{className:"flex h-11 w-11 items-center justify-center rounded-2xl",style:{backgroundColor:"".concat(D,"1a"),color:D},children:(0,i.jsx)(e.icon,{className:"h-5 w-5"})}),(0,i.jsx)("h3",{className:"mt-4 text-sm font-bold text-foreground",children:e.title}),(0,i.jsx)("p",{className:"mt-1.5 text-sm leading-relaxed text-muted-foreground",children:e.desc})]})}
21,e.title))}),(0,i.jsxs)("a",{href:"https://www.bsc.com.vn",target:"_blank",rel:"noopener noreferrer",className:"mt-5 inline-flex items-center gap-1.5 text-xs font-semibold transition-opacity hover:opacity-80",style:{color:D},children:["Website ch\xednh thức cá»§a BSC",(0,i.jsx)(f.Z,{className:"h-3.5 w-3.5"})]})]}),(0,i.jsx)(N.Di,{className:"pb-20 pt-4",children:(0,i.jsx)(N.Ue,{children:(0,i.jsxs)("div",{className:"relative overflow-hidden rounded-[2rem] border border-border/60 px-6 py-10 sm:px-10 lg:px-14 lg:py-12",style:{backgroundImage:"linear-gradient(135deg, ".concat(D,"1f, transparent 70%)")},children:[(0,i.jsx)(N.Km,{className:"text-foreground/[0.06]"}),(0,i.jsxs)("div",{className:"relative flex flex-col items-center gap-6 text-center lg:flex-row lg:justify-between lg:text-left",children:[(0,i.jsxs)("div",{className:"max-w-xl",children:[(0,i.jsx)("h2",{className:"text-2xl font-extrabold tracking-tight text-foreground sm:text-3xl",children:"Cần há» trợ trong l\xfac má» t\xe0i khoản?"}),(0,i.jsx)("p",{className:"mt-3 text-sm leading-relaxed text-muted-foreground sm:text-base",children:"Äá»i ngÅ© FireAnt há» trợ bạn từ bưá»c Äá»nh danh eKYC Äến khi li\xean kết t\xe0i khoản BSC th\xe0nh c\xf4ng."})]}),(0,i.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row",children:[(0,i.jsxs)("a",{href:w.av,className:"inline-flex items-center justify-center gap-2 rounded-full px-6 py-3 text-sm font-semibold text-white shadow-lg transition-all hover:-translate-y-0.5 hover:shadow-xl",style:{backgroundColor:D},children:[(0,i.jsx)(p.Z,{className:"h-4 w-4"}),w.Kj]}),(0,i.jsxs)(s(),{href:"/tro-giup",className:"inline-flex items-center justify-center gap-2 rounded-full border border-border/70 bg-card px-6 py-3 text-sm font-semibold text-foreground/80 transition-all hover:-translate-y-0.5 hover:text-foreground",children:[(0,i.jsx)(b.Z,{className:"h-4 w-4"}),"Trung t\xe2m trợ gi\xfap"]})]})]})]})})})]})}}},function(e){e.O(0,[7983,2577,3846,1550,9774,2888,179],function(){return e(e.s=39038)}),_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.