PageSourceSearch

https://fireant.vn/_next/static/chunks/pages/mo-tai-khoan/BSC-a032221df9c43c5e.js

js fireant.vn collected 2026-09-24 18:09:29 UTC 29,223 bytes, 21 lines download raw bytes

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.