PageSourceSearch

https://ai-hay.vn/stc/assets/Y3ump8Kx.js

js ai-hay.vn collected 2026-09-24 18:00:38 UTC 26,034 bytes, 1 lines download raw bytes

1import{j as e,r as i,c as V,b as $,g as z}from"./DttMfk5W.js";import{a as y,av as S,T as k,a1 as M,L as O,V as U,Y as K,ai as W,d as Y,U as D,cg as q,as as Q,ch as X}from"./D96D2S-r.js";import"./Cowx5ZhD.js";function J(){return e.jsxs("div",{className:"bg-[#222222] text-white",children:[e.jsxs("div",{className:"flex mx-auto max-w-[1200px] gap-10 flex-wrap p-10",children:[e.jsxs("div",{className:"grow basis-[400px]",children:[e.jsx("aside",{id:"block-7",className:"widget inner-padding widget_block widget_media_image",children:e.jsx("figure",{children:e.jsx("img",{loading:"lazy",decoding:"async",width:"116",height:"37",src:"https://ai-hay.com/wp-content/uploads/2025/04/Frame-1023.png",alt:"Logo AI Hay"})})}),e.jsxs("aside",{className:"mt-4",children:[e.jsx("p",{className:"font-bold",children:"CÔNG TY CỔ PHẦN CÔNG NGHỆ FIRST AI"}),e.jsx("p",{children:"Giấy phép MXH: Số 91/GP-BVHTTDL do Bộ Văn hóa, Thể thao và Du lịch cấp ngày 07/8/2025"})]}),e.jsx("aside",{children:e.jsx("a",{href:"http://online.gov.vn/Home/WebDetails/139066?AspxAutoDetectCookieSupport=1",target:"_blank",children:e.jsx("img",{className:"w-[165px] h-auto",src:"/stc/assets/images/logo-bo-cong-thuong.png",alt:"Logo AI Hay"})})})]}),e.jsxs("div",{className:"grow shrink basis-[200px]",children:[e.jsx("aside",{children:e.jsx("p",{children:e.jsx("strong",{children:"Trợ giúp"})})}),e.jsx("aside",{children:e.jsx("p",{children:e.jsx("a",{href:"https://ai-hay.vn/pages/Terms.html",className:"underline",target:"_blank",rel:"noreferrer noopener nofollow",children:"Điều khoản dịch vụ"})})}),e.jsx("aside",{children:e.jsx("p",{children:e.jsx("a",{href:"https://ai-hay.vn/pages/Policy.html",className:"underline",target:"_blank",rel:"noreferrer noopener nofollow",children:"Chính sách Quyền riêng tư"})})}),e.jsx("aside",{children:e.jsx("p",{children:e.jsx("a",{href:"https://ai-hay.vn/pages/Copyright.html",className:"underline",target:"_blank",rel:"noreferrer noopener nofollow",children:"Chính Sách Bản Quyền Tác Giả"})})})]}),e.jsxs("div",{className:"grow shrink basis-[200px]",children:[e.jsx("aside",{children:e.jsx("p",{children:e.jsx("strong",{children:"Theo dõi AI Hay"})})}),e.jsx("aside",{children:e.jsx("p",{children:e.jsx("a",{href:"https://www.facebook.com/aihayhoidap",className:"underline",target:"_blank",rel:"noreferrer noopener nofollow",children:"Facebook"})})}),e.jsx("aside",{children:e.jsx("p",{children:e.jsx("a",{href:"https://www.tiktok.com/@hoidapcungai",className:"underline",target:"_blank",rel:"noreferrer noopener nofollow",children:"Tiktok"})})}),e.jsx("aside",{children:e.jsx("p",{children:e.jsx("a",{href:"https://www.linkedin.com/company/aihay/",className:"underline",target:"_blank",rel:"noreferrer noopener nofollow",children:"Linkedin"})})}),e.jsx("aside",{children:e.jsx("p",{children:e.jsx("a",{href:"https://ai-hay.com/hub/en/careers/",className:"underline",children:"Careers"})})})]}),e.jsxs("div",{className:"grow shrink basis-[200px]",children:[e.jsx("aside",{children:e.jsx("p",{children:e.jsx("strong",{children:"Kết nối"})})}),e.jsx("aside",{children:e.jsx("p",{children:"Phụ trách nội dung: Phan Long"})}),e.jsx("aside",{children:e.jsx("p",{children:"Địa chỉ: Toà nhà Golden King, 15 Nguyễn Lương Bằng, Phường Tân Mỹ, TP Hồ Chí Minh"})}),e.jsx("aside",{children:e.jsx("p",{children:"Hotline: 028.54.117.680"})}),e.jsx("aside",{children:e.jsx("p",{children:"Email: [email protected]"})})]})]}),e.jsx("div",{className:"mx-auto p-4 w-fit text-sm",children:"© 2026 AI Hay Team"})]})}const N={300:{id:"BcATlW",label:"Gói 300 sao",price:"5.000₫",eventName:"evt_buy_300stars",trackingData:{package_id:"star_300",product_name:"stars.300",product_type:"credit",stars_amount:300,value:5e3,currency:"VND"}},900:{id:"P8o9Em",label:"Gói 900 sao",price:"10.000₫",eventName:"evt_buy_900stars",trackingData:{package_id:"star_900",product_name:"stars.900",product_type:"credit",stars_amount:900,value:1e4,currency:"VND"}},3e3:{id:"3mcQj0",label:"Gói 3.000 sao",price:"30.000đ",eventName:"evt_buy_3000stars",trackingData:{package_id:"star_3000",product_name:"stars.3000",product_type:"credit",stars_amount:3e3,value:3e4,currency:"VND"}}},p={month:{id:"16n8o0",label:"Gói Pro - 1 tháng",price:"69.000₫",eventName:"evt_monthly_subscription",trackingData:{package_id:"pro_monthly",product_name:"aihaypro.monthly",product_type:"subscription",billing_cycle:"monthly",value:69e3,currency:"VND"}},year:{id:"JTTkim",label:"Gói Pro - 1 năm",price:"599.000₫",eventName:"evt_annual_subscription",trackingData:{package_id:"pro_annual",product_name:"aihaypro.yearly",product_type:"subscription",billing_cycle:"annual",value:599e3,currency:"VND"}}},Z="/stc/assets/images/paywall/paywall_pro_top.png",ee="/stc/assets/images/paywall/paywall_pro_bg.png",F="/stc/assets/images/paywall/comment_1.png",B="/stc/assets/images/paywall/comment_2.png",H="/stc/assets/images/paywall/comment_3.png",te="/stc/assets/images/paywall/icn_premium.svg",se="/stc/assets/images/paywall/icn_thumbs_up.svg",ae="/stc/assets/images/paywall/icn_quote.png",b="/stc/assets/images/icon/icn_star_yellow.svg",ne="/stc/assets/images/icon/icn_info_blue.svg";function re({userInfo:t,pickedPlan:s,setPickedPlan:a,proExpireTime:o,navigateCheckout:r,closePopup:x}){const d=i.useContext(y),c=d.store.isMobile,n=i.useRef(null),[l,g]=i.useState(!1);return i.useEffect(()=>{if(c)return;const u=new IntersectionObserver(([m])=>{g(!m.isIntersecting&&m.boundingClientRect.top<0)},{threshold:0,rootMargin:"-200px 0px 0px 0px"});return n.current&&u.observe(n.current),()=>u.disconnect()},[c]),e.jsxs("div",{className:"md:pb-32 pt-16 relative -z-10",style:c?null:{backgroundImage:`url(${ee})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"repeat-y"},children:[e.jsx("button",{className:"absolute top-16 left-4 md:left-6 z-20",onClick:()=>x(!0),children:e.jsx("img",{src:S,width:24,height:24})}),c?null:e.jsx("div",{className:"h-[380px] absolute top-0 left-0 right-0 -z-10",style:{backgroundImage:`url(${Z})`,opacity:"0.75",WebkitMaskImage:"linear-gradient(to bottom, black 60%, transparent 100%)",maskImage:"linear-gradient(to bottom, black 60%, transparent 100%)"}}),e.jsx("div",{className:"absolute top-0 w-full",children:e.jsx(le,{})}),e.jsxs("div",{className:"text-text-primary [&>*]:max-w-[792px] [&>*]:mx-auto",children:[e.jsx("div",{className:"flex justify-center mb-4",children:e.jsxs("div",{className:"text-center flex flex-wrap items-center justify-center gap-2 p-1.5 md:p-3 rounded-full bg-white text-xs md:text-md",style:{boxShadow:"0px 0px 50px 0px #00965029"},children:[e.jsxs("div",{className:"md:block hidden",children:[e.jsx("img",{src:F,width:24,height:24,className:"box-content roun
1ded-full border-2 border-white"}),e.jsx("img",{src:B,width:24,height:24,className:"box-content rounded-full border-2 border-white -ml-2"}),e.jsx("img",{src:H,width:24,height:24,className:"box-content rounded-full border-2 border-white -ml-2"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-text-brand-primary font-semibold",children:"🇻🇳 Hơn 20.000.000 người Việt"}),e.jsx("span",{className:"text-text-secondary whitespace-nowrap",children:"đã tin dùng AI Hay"})]})]})}),e.jsxs("div",{className:"text-center font-bold text-xl md:text-5xl md:leading-[60px]",children:[e.jsx("div",{className:"mb-1",children:"Nâng cấp Pro"}),e.jsx("div",{style:{background:"radial-gradient(85.44% 174.13% at 87.5% 26.95%, #00F261 0%, #00EBB1 23.34%, #00B2FF 58.87%, #0066FF 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"Mở khóa toàn bộ sức mạnh AI Hay"})]}),e.jsxs("div",{ref:n,className:`flex items-center gap-4 ${c?"overflow-x-auto scrollbar-hidden justify-start p-4 pb-14 mt-2":"justify-center py-10"}`,children:[e.jsx(I,{isActive:s===p.month,icon:se,dayPrice:"2300đ",duration:"tháng",fullPrice:"99.000đ",finalPrice:"69.000₫",badge:e.jsxs(e.Fragment,{children:[e.jsx("img",{src:b,width:12,height:12,alt:""})," Phổ biến nhất - 68% đã chọn"]}),onClick:()=>{a(p.month),k(d,{eventName:"evt_monthly_subscription",buttonLocation:"price_card_pro_month",pageType:"subscription_page",gtm:p.month.trackingData}),r(p.month,{buttonLocation:"price_card_pro_month"})}}),e.jsx(I,{isActive:s===p.year,icon:te,badge:"💎 Tiết kiệm 50%",dayPrice:"1641đ",duration:"năm",fullPrice:"1.188.000đ",finalPrice:"599.000₫",onClick:()=>{a(p.year),k(d,{eventName:"evt_annual_subscription",buttonLocation:"price_card_pro_year",pageType:"subscription_page",gtm:p.year.trackingData}),r(p.year,{buttonLocation:"price_card_pro_year"})}})]}),t!=null&&t.proInfo||c?null:e.jsxs("div",{className:"text-text-secondary text-center mb-16",children:["Tiếp tục đồng nghĩa bạn đồng ý với ",e.jsx("a",{className:"text-text-info",href:"/pages/Terms.html",target:"_blank",rel:"nofollow noreferrer",children:"Điều khoản sử dụng"})," và ",e.jsx("a",{className:"text-text-info",href:"/pages/Policy.html",target:"_blank",rel:"nofollow noreferrer",children:"Chính sách quyền riêng tư"})," của AI Hay."]}),e.jsx("div",{className:"w-full overflow-hidden grid gap-6",children:e.jsx(ie,{isMobile:c})})]}),c?null:e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-center text-4xl font-bold mt-16 mb-6",children:"Người dùng Pro nói gì về AI Hay?"}),e.jsx(ce,{})]}),c?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-text-secondary text-center mb-4 mx-4 text-sm",children:["Tiếp tục đồng nghĩa bạn đồng ý với ",e.jsx("a",{className:"text-text-info",href:"/pages/Terms.html",target:"_blank",rel:"nofollow noreferrer",children:"Điều khoản sử dụng"})," và ",e.jsx("a",{className:"text-text-info",href:"/pages/Policy.html",target:"_blank",rel:"nofollow noreferrer",children:"Chính sách quyền riêng tư"})," của AI Hay."]}),e.jsx("div",{className:"flex flex-col items-center gap-4 sticky bottom-0 p-4 bg-white",children:e.jsxs(M,{variant:"solid",color:"primary",className:"text-white px-6 w-full max-w-[370px] py-4 !font-medium",onClick:()=>r(s),children:["Nâng cấp Pro - ",s.price,"/",s.duration===p.month.duration?"tháng":"năm"]})})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-4xl font-bold mb-6 mt-16 text-center",children:"Sẵn sàng bắt đầu?"}),e.jsx("div",{className:`w-full flex justify-center py-4 px-4 transition-all duration-300 ${l?"sticky bottom-0 z-50":""}`,children:e.jsxs(M,{variant:"solid",color:"primary",className:"text-white px-6 w-full max-w-[370px] py-4 !font-medium",onClick:()=>r(s,{buttonLocation:"bottom_pay_wall"}),children:["Nâng cấp Pro - ",s.price,"/",s.duration===p.month.duration?"tháng":"năm"]})})]})]})}function ie({isMobile:t}){const s=[{name:"Sao mỗi ngày",free:"300 sao",pro:"3.000 sao"},{name:"Mô hình AI",free:"Tiêu chuẩn",pro:"Mới & mạnh hơn"},{name:"Xử lý file Excel hoặc tác vụ lớn",free:"Tiêu chuẩn",pro:"Tốc độ cao"},{name:"Lưu trữ tài liệu · AI Hay Drive",free:"50MB",pro:"1GB"},{name:"Cá nhân hóa trải nghiệm",free:"Tiêu chuẩn",pro:"Nâng cao"}];return e.jsxs("div",{children:[e.jsx("div",{className:"text-text-primary font-bold text-center md:mb-6 text-xl md:text-4xl",children:"So sánh chi tiết các gói"}),e.jsxs("div",{className:"bg-white p-6 pb-4 md:mb-6 mb-2 md:rounded-2xl md:shadow-lg",children:[e.jsxs("div",{className:`grid mb-3 px-1 ${t?"grid-cols-[1.2fr_1fr_1fr]":"grid-cols-[1fr_200px_200px]"}`,children:[e.jsx("div",{className:"text-sm font-semibold text-text-primary",children:"Tính năng"}),e.jsx("div",{className:"text-sm font-semibold text-text-primary text-center",children:"Miễn phí"}),e.jsx("div",{className:"text-sm font-semibold text-text-brand-primary text-center",children:"Pro"})]}),e.jsx("div",{className:"border border-border-tertiary rounded-xl",children:s.map((a,o)=>e.jsxs(i.Fragment,{children:[e.jsxs("div",{className:`grid ${t?"grid-cols-[1.2fr_1fr_1fr]":"grid-cols-[1fr_200px_200px]"}`,children:[e.jsx("div",{className:"text-sm text-text-primary py-3 px-3",children:a.name}),e.jsx("div",{className:"text-sm text-text-tertiary py-3 px-2 text-center grid place-items-center",children:a.free}),e.jsx("div",{className:"text-sm text-text-brand-primary font-medium py-3 px-2 text-center bg-[#EBF6EF80] grid place-items-center",children:a.pro})]}),o!==s.length-1&&e.jsx("div",{className:" mx-4 border-b border-border-tertiary"})]},o))}),e.jsxs("div",{className:"text-sm p-3 flex gap-2 items-center text-text-info bg-bg-information-secondary rounded-md mt-3",children:[e.jsx("img",{src:ne,className:"w-4 h-4"}),e.jsx("div",{children:"“Sao” là đơn vị dùng cho mỗi câu hỏi. Câu càng phức tạp càng tốn nhiều sao. Sao được cấp lại mỗi ngày."})]})]})]})}function ce(){return e.jsxs("div",{className:"w-full overflow-hidden grid grid-cols-3 gap-6 mx-auto max-w-[1200px] px-4",children:[e.jsx(P,{avatar:F,name:"Thu Võ",comment:"AI Hay cung cấp thông tin chính xác các vấn đề tại Việt Nam và giúp tôi hỗ trợ con trong học tập. Mọi người nên dùng nhé"}),e.jsx(P,{avatar:B,name:"Minh Trí",comment:"App đỉnh thực sự! Phần hướng dẫn giải Toán rất chi tiết, không chỉ đưa ra đáp án mà còn giải thích từng bước một nên mình hiểu bài rất nhanh. Từ ngày dùng app, mấy bài tập về nhà không còn là nỗi ám ảnh nữa. Cho app 5 sao"}),e.jsx(P,{avatar:H,name:"Tuấn Trần",comment:"Trợ lý ảo tốt, giúp nâng cao kỹ năng và hỗ trợ giáo viên hoàn thành nhiều công việc hàng ngày trong cả dạy học và công tác đoàn hội"})]})}function P({avatar:t,name:s,comment:a}){return e.jsxs("div",{className:"bg-white rounded-2xl p-6 grid",children:[e.jsx("img",{src:ae,className:"mb-3"}),e.jsx("div",{className:"text-sm text-text-tertiary mb-3 whitespace-pre-line",children:a}),e.jsxs("div",{className:"flex items-center gap-3 mt-auto",children:[e.jsx("img",{src:t,className:"rounded-full object-cover w-14 h-14",alt:""}),e.jsxs("div",{children:[Array(5).fill(0).map((o,r)=>
1e.jsx("img",{src:b,alt:""},r)),e.jsx("div",{className:"text-sm text-text-primary font-medium",children:s})]})]})]})}function I({isActive:t,icon:s,onClick:a,dayPrice:o,fullPrice:r,finalPrice:x,duration:d,onCheckout:c,badge:n=""}){const g=i.useContext(y).store.isMobile,u=i.useRef(null);return i.useEffect(()=>{const m=u.current;m&&t&&m.scrollIntoView({behavior:"smooth",block:"nearest"})},[t]),g?e.jsxs("div",{className:"relative rounded-3xl p-4 pt-6 bg-white flex flex-col gap-3 scroll-mx-6 scroll-mt-24",ref:u,style:{boxShadow:t?"0px 4px 50px 0px #37A45B33":"",border:t?"1px solid #009650":"1px solid #D1D5DB"},onClick:a,children:[e.jsxs("div",{className:"text-base font-bold text-text-primary flex items-center gap-2",children:[e.jsx("div",{className:"w-8 h-8 bg-bg-brand-primary rounded-xl grid place-items-center",children:e.jsx("img",{src:s,alt:""})}),d]}),e.jsxs("div",{className:"flex items-end justify-between whitespace-nowrap",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-text-secondary mb-1 line-through",children:r}),e.jsx("div",{className:"font-bol text-xl font-bold",children:x})]}),e.jsxs("div",{className:"text-end",children:[e.jsx("div",{className:"text-text-tertiary mb-2 text-sm",children:"/tháng"}),e.jsxs("div",{className:"text-text-brand-primary text-xs bg-[#EBF6EF] px-2 py-1",children:["Chỉ ",o,"/ngày"]})]})]}),e.jsx("div",{className:"absolute bg-[#EF1B1B] text-white px-2 py-1 rounded-lg text-xs flex items-center gap-2 -top-2 -left-3",children:n})]}):e.jsxs("div",{className:"relative cursor-pointer w-[385px] h-full rounded-3xl p-6 bg-white flex flex-col gap-3",style:{boxShadow:t?"0px 4px 50px 0px #37A45B33":"",border:t?"1px solid #009650":"1px solid #D1D5DB"},onClick:a,children:[e.jsxs("div",{className:"text-base font-bold text-text-primary flex items-center gap-2",children:[e.jsx("div",{className:"w-10 h-10 bg-bg-brand-primary rounded-xl grid place-items-center",children:e.jsx("img",{src:s,alt:""})}),"1 ",d]}),e.jsxs("div",{className:"flex items-end justify-between whitespace-nowrap",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-lg text-text-secondary mb-3 line-through",children:r}),e.jsx("div",{className:"font-bol text-4xl font-bold",children:x})]}),e.jsxs("div",{className:"text-end",children:[e.jsxs("div",{className:"text-text-tertiary mb-2",children:["/",d]}),e.jsxs("div",{className:"text-text-brand-primary bg-[#EBF6EF] px-2 py-1",children:["Chỉ ",o,"/ngày"]})]})]}),e.jsx("button",{className:`mt-auto px-6 w-full py-4 font-medium rounded-full ${t?"bg-primary text-white":"bg-white border border-border-tertiary text-text-primary"}`,onClick:c,children:"Nâng cấp ngay"}),e.jsx("div",{className:"absolute bg-[#EF1B1B] text-white py-2 px-3 rounded-lg flex items-center gap-2 -top-4 -left-4",children:n})]})}function le(){const s=i.useContext(y).store.isMobile,a=i.useRef(Date.now()),o=i.useRef(Date.now()),[r,x]=i.useState({hour:"00",min:"00",sec:"00"});return i.useEffect(()=>{const d=()=>{const l=Date.now()-o.current,g=a.current+l,u=new Date(g);u.setHours(24,0,0,0);const m=u.getTime()-g,w=Math.floor(m/36e5),T=Math.floor(m%36e5/6e4),v=Math.floor(m%6e4/1e3);x({hour:w.toString().padStart(2,"0"),min:T.toString().padStart(2,"0"),sec:v.toString().padStart(2,"0")})};d();const c=setInterval(d,1e3);return()=>clearInterval(c)},[]),e.jsxs("div",{className:"flex items-center justify-center gap-4 font-bold text-white bg-[#EF1B1B] py-2 px-4 text-sm md:text-base whitespace-nowrap",children:[e.jsxs("span",{className:"text-ellipsis overflow-hidden flex items-center gap-2",children:[e.jsx("img",{src:b,width:14,height:14,alt:""}),s?"Giảm 30% - Kết thúc sau":"Ưu đãi hôm nay - Giảm 30% chỉ còn 69.000đ/tháng"," "]}),s?e.jsxs("span",{className:"bg-black py-1 px-2 rounded",children:[r.hour," : ",r.min," : ",r.sec]}):e.jsxs("div",{className:"flex gap-2 items-center leading-5",children:[e.jsx("span",{className:"bg-black py-1 px-2 rounded",children:r.hour}),e.jsx("span",{children:" giờ"}),e.jsx("span",{className:"bg-black py-1 px-2 rounded",children:r.min}),e.jsx("span",{children:" phút"}),e.jsx("span",{className:"bg-black py-1 px-2 rounded",children:r.sec}),e.jsx("span",{children:" giây"})]})]})}function oe({isMobile:t,pickedStar:s,setPickedStar:a,highlightStar:o,navigateCheckout:r,closePopup:x}){const d=i.useContext(y),c=n=>{k(d,{eventName:n.eventName,buttonLocation:"subscription_page",pageType:"subscription_page"}),r(n)};return t?e.jsxs("div",{className:"p-4 relative",children:[e.jsx("button",{className:"absolute top-6 left-6 z-20",onClick:()=>x(!0),children:e.jsx("img",{src:S,width:24,height:24})}),e.jsx("div",{className:"text-lg font-bold text-center mb-2",children:"Mua sao"}),e.jsx("div",{className:"text-text-tertiary text-sm text-center mb-4",children:"Mở khoá tri thức. Vững bước tương lai"}),e.jsx("div",{className:"grid gap-3 mb-6",children:Object.entries(N).map(([n,l])=>e.jsx(xe,{label:l.label,isActive:s.id===l.id,eventName:l.eventName,price:l.price,salePercent:l.salePercent,salePrice:l.salePrice,onClick:()=>a(l)},n))}),e.jsx("div",{className:"py-4 mt-auto",children:e.jsx("button",{className:"bg-primary rounded-full w-full font-medium text-white py-4",onClick:()=>c(s),children:"Mua sao"})})]}):e.jsxs("div",{className:"rounded-xl border relative border-border-tertiary pb-24 overflow-hidden m-4 grow w-[calc(100%-40px)] -z-10",children:[e.jsx("div",{className:"h-[380px] absolute top-0 left-0 right-0",style:{backgroundImage:"url(/stc/assets/images/upgrade-banner.png"},children:e.jsx("button",{className:"absolute top-6 left-6 z-20",onClick:()=>x(!0),children:e.jsx("img",{src:S,width:24,height:24})})}),e.jsxs("div",{className:"[&>*]:max-w-[792px] [&>*]:mx-auto relative z-10",children:[e.jsxs("div",{className:"text-text-primary text-center mb-12 mt-6",children:[e.jsx("div",{className:"font-bold text-4xl mb-4",children:"Cửa hàng sao"}),e.jsx("div",{className:"text-lg",children:"Mở khoá tri thức. Vững bước tương lai"})]}),e.jsx("div",{className:"rounded-xl p-2 bg-white mb-6",style:{boxShadow:"0px 0px 50px 0px #0096502E",maxWidth:"750px"},children:Object.values(N).map((n,l,g)=>e.jsxs("div",{className:`p-4 flex justify-between items-center gap-4 ${(o==null?void 0:o.id)===n.id?"rounded-lg plan-gradient-border plan-shadown":l<g.length-1?"border-b border-border-tertiary":""}
1`,children:[e.jsxs("div",{className:"flex gap-4 rounded",children:[e.jsx(de,{index:l}),e.jsxs("div",{children:[e.jsx("div",{className:"font-medium text-text-primary mb-1",children:n.label}),e.jsxs("div",{className:"text-text-secondary text-sm",children:["Giá: ",n.price]})]})]}),e.jsx(O,{className:"rounded-full h-11 px-4 font-medium text-sm text-white bg-primary whitespace-nowrap",onClick:()=>r(n),trackingDetail:{eventName:n.eventName,buttonLocation:"subscription_page",pageType:"subscription_page",gtm:n.trackingData},children:"Mua sao"})]},n.id))}),e.jsxs("div",{className:"text-text-tertiary text-sm text-center",children:["Khi tiếp tục sử dụng dịch vụ, bạn đồng ý với ",e.jsx("a",{className:"text-text-info",href:"/pages/Policy.html",target:"_blank",rel:"nofollow noreferrer",children:"Chính sách quyền riêng tư"})," và ",e.jsx("a",{className:"text-text-info",href:"/pages/Terms.html",target:"_blank",rel:"nofollow noreferrer",children:"Điều khoản sử dụng"})," của AI Hay."]})]})]})}function de({index:t}){return t===0?e.jsx("div",{className:"w-12 h-12 bg-[#FFFAEB] rounded grid place-items-center shrink-0",children:e.jsx("img",{src:b,width:17,height:17})}):t===1?e.jsxs("div",{className:"w-12 h-12 bg-[#FFFAEB] rounded flex items-center justify-center shrink-0",children:[e.jsx("img",{src:b,width:17,height:17}),e.jsx("img",{src:b,width:17,height:17})]}):e.jsxs("div",{className:"w-12 h-12 bg-[#FFFAEB] rounded grid place-items-center shrink-0 leading-3",children:[e.jsxs("div",{children:[e.jsx("img",{src:b,width:17,height:17}),e.jsx("img",{src:b,width:17,height:17,className:"ml-0.5"})]}),e.jsxs("div",{className:"-mt-3",children:[e.jsx("img",{src:b,width:17,height:17}),e.jsx("img",{src:b,width:17,height:17,className:"ml-0.5"})]})]})}function xe({label:t,isActive:s,saleText:a,price:o,salePrice:r,onClick:x,eventName:d}){const c=i.useContext(y),n=i.useRef(null);return i.useEffect(()=>{const l=new IntersectionObserver((g,u)=>{g.forEach(m=>{m.isIntersecting&&(U(c,{eventName:d,buttonLocation:"subscription_page",pageType:"subscription_page"}),u.disconnect())})});return l.observe(n.current),()=>{l.disconnect()}},[d]),e.jsxs("div",{ref:n,className:"border rounded-xl px-3 py-2.5 flex justify-between items-center h-[72px] "+(s?"border-text-brand-primary bg-bg-brand-primary":"border-border-tertiary"),onClick:x,children:[e.jsxs("div",{className:"flex gap-2",children:[s?e.jsx("div",{className:"rounded-full w-5 h-5 bg-primary grid place-items-center p-1 box-border",children:e.jsx("img",{src:K,className:"brightness-0 invert w-full h-full block"})}):e.jsx("div",{className:"w-5 h-5 rounded-full border border-border-primary"}),e.jsx("div",{className:"font-medium "+(s?"text-text-brand-primary":"text-text-primary"),children:t})]}),e.jsxs("div",{children:[a&&r?e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("div",{className:"line-through text-text-secondary",children:o}),e.jsx("div",{className:"text-white bg-[#EE5E24] rounded text-[10px] leading-[15px] px-1",children:a})]}):null,e.jsx("div",{className:"font-bold text-lg text-right "+(s?"text-text-brand-primary":"text-text-primary"),children:r||o})]})]})}const f={plan:"subscription",star:"buy-stars"};function me(){const t=i.useContext(y),s=t.store.isMobile,a=t.userInfo,[o,r]=V(),x=o.get("slug")===f.star?f.star:f.plan,d=o.get("product_name"),c=Object.values(p).find(h=>h.trackingData.product_name===d)||p.month,n=Object.values(N).find(h=>h.trackingData.product_name===d)||null,[l,g]=i.useState(c),[u,m]=i.useState(n||N[300]),w=$(),{isGov:T}=W(),v=h=>{h&&(w(D.HOME_ASK),k(t,{eventName:"evt_close_paywall",buttonLocation:"subscription_page",pageType:"subscription_page",gtm:{product_type:x===f.plan?"subscription":"credit"}}))},E=(h,j={})=>{const C=q({productId:h.id},X);gtag("event","evt_click_paywall_button",{platform:"web",product_type:h.trackingData.product_type,product_name:h.trackingData.product_name,button_location:j.buttonLocation,value:h.trackingData.value});const _=D.PAYMENT+"?"+C;t.userInfo?w(_):window.open(Q(new URL(window.location.href).origin+_),"_self"),v()},A=i.useMemo(()=>{var h;if(a!=null&&a.proInfo){const j=new Date((h=a==null?void 0:a.proInfo)==null?void 0:h.tsExpired),C=j.getDate(),_=j.getMonth()+1,L=j.getFullYear(),G=j.getHours(),R=j.getMinutes();return`${C}/${_}/${L} ${G}:${R}`}return null},[a==null?void 0:a.proInfo]);return i.useEffect(()=>{Y({title:"Bảng giá AI Hay Pro & Mua Sao AI Hay",desc:"Xem bảng giá AI Hay với 2 lựa chọn chính: nâng cấp AI Hay Pro theo tháng hoặc năm, và mua thêm Sao AI Hay để tiếp tục sử dụng các tính năng AI tiện lợi, linh hoạt."}),gtag("event","evt_view_paywall",{button_location:"subscription_page",page_type:"subscription_page",product_type:x===f.plan?"subscription":"credit"})},[]),T?e.jsx(z,{to:D.HOME_ASK,replace:!0}):e.jsxs("div",{className:"bg-bg-primary min-h-screen flex flex-col",children:[e.jsx("style",{children:"#root{overflow:auto}"}),e.jsxs("div",{className:"relative z-10 grow",children:[x===f.plan?e.jsx(re,{closePopup:v,userInfo:a,pickedPlan:l,setPickedPlan:g,highligtPro:c,proExpireTime:A,navigateCheckout:E}):null,x===f.star?e.jsx(oe,{isMobile:s,pickedStar:u,setPickedStar:m,closePopup:v,highlightStar:n,navigateCheckout:E}):null]}),e.jsx(J,{})]})}const ue=Object.freeze(Object.defineProperty({__proto__:null,ProPlans:p,StarPlans:N,default:me},Symbol.toStringTag,{value:"Module"}));
1export{J as C,p as P,N as S,ue as 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.