1import{e as P,r as y,j as e}from"./vendor-react-D3NGllsf.js";import{s as f,f as O}from"./autochat-core-Dxd4xxGa.js";import{a as H}from"./vendor-query-BUobAdSF.js";import{x as U,j as X,a7 as Z,b as n,C as A,K as I,a3 as h,aw as m,aG as v,aH as j,aI as T,X as R,k as $,I as Q,L as J,bb as W,a as Y,u as o,aa as ee,ah as te}from"./index-Bt2u_ktz.js";import{S as ae}from"./SEOHead-DhjRVFpI.js";import{S as ne}from"./Snowfall-CvLuaLgk.js";import{u as se}from"./useAutochatAccess-B2IUX2zR.js";import{S as B,a as i}from"./SoloToolAdvancedCard-Dzr46KbI.js";import{m as ie}from"./vendor-motion-BVE-Kjyy.js";import{C as d}from"./cloud-upload-DMZmbzu4.js";import{H as re}from"./hard-drive-BX2FJN_Q.js";import"./vendor-supabase-XOXmZWMk.js";import"./vendor-ui-Vd3rW98i.js";import"./useBrandingSettings-xLqvMl_a.js";import"./useUserPurchasedCourses-CSvPHl2z.js";/** 2 * @license lucide-react v0.462.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 */const N=U("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]),c=t=>new Intl.NumberFormat("vi-VN").format(t)+"Ä",le=[{icon:re,title:"Giải phóng dung lượng máy tÃnh / Äiá»n thoại",desc:"Video, MP3, ká»ch bản không còn chất Äá»ng trong á» cứng hay bá» nhá» Äiá»n thoại. Máy nhẹ thì là m viá»c cÅ©ng mượt hÆ¡n."},{icon:d,title:"Kết quả tá»± bay thẳng lên Google Drive",desc:"Là m xong là file có mặt trên Drive cá»§a bạn ngay â không cần bấm tải, không cần tá»± kéo thả lên mây."},{icon:N,title:"File xếp gá»n theo từng tool",desc:"Má»i tool má»t thư mục riêng trên Drive, tìm lại ká»ch bản hay video cÅ© chá» mất và i giây."},{icon:W,title:"Xem â gá»i â ÄÄng ngay từ Äiá»n thoại",desc:"Không phải chép qua USB hay gá»i Zalo cho chÃnh mình. Má» Drive trên Äiá»n thoại là dùng ÄÆ°á»£c liá»n."},{icon:I,title:"Máy há»ng, Äá»i máy vẫn còn nguyên file",desc:"Công sức cả buá»i là m video không bao giá» mất theo á» cứng. Má»i thứ Äã nằm an toà n trên Drive cá»§a bạn."},{icon:Y,title:"Ãp dụng cho cả 3 tool + kÃch hoạt tá»± Äá»ng",desc:"AutoChat, VoiceMax và Erender Äá»u Äá»ng bá». Chuyá»n khoản xong là há» thá»ng tá»± má» quyá»n, không chá» duyá»t tay."}],oe=[{label:"NÆ¡i nháºn kết quả",std:"Nằm rải trong máy bạn",pro:"Tá»± lên Google Drive cá»§a bạn"},{label:"Dung lượng máy",std:"Äầy dần theo má»i video",pro:"Máy luôn nhẹ, file Äá» trên mây"},{label:"Sắp xếp file",std:"Tá»± tìm, tá»± dá»n",pro:"Xếp sẵn theo từng tool"},{label:"Dùng trên Äiá»n thoại",std:"Phải chép qua lại",pro:"Má» Drive là có ngay"},{label:"Máy há»ng / Äá»i máy",std:"Nguy cÆ¡ mất sạch",pro:"File vẫn còn nguyên"},{label:"KÃch hoạt",std:"â",pro:"Tá»± Äá»ng sau chuyá»n khoản"}],ce=[{q:"File lưu và o Drive cá»§a ai?",a:"Drive cá»§a chÃnh bạn. Bạn kết ná»i tà i khoản Google má»t lần, sau Äó má»i kết quả từ 3 tool sẽ tá»± nằm trong Drive cá»§a bạn và bạn toà n quyá»n quản lý."},{q:"Không mua gói nà y thì kết quả Äi Äâu?",a:"File vẫn ÄÆ°á»£c lưu vá» Äúng thư mục trên máy nÆ¡i bạn tải nguyên liá»u lên. Chá» là bạn phải tá»± dá»n, tá»± sắp xếp và máy sẽ Äầy dần theo thá»i gian."},{q:"Có tá»± Äá»ng gia hạn không?",a:"Không. Gói chạy Äúng 30 ngà y, hết hạn bạn chá»§ Äá»ng gia hạn, không bá» trừ tiá»n tá»± Äá»ng."},{q:"Gói nà y có thay cho gói tool tiêu chuẩn không?",a:"Không. Äây là gói gắn thêm và o gói tool tiêu chuẩn, giúp toà n bá» kết quả cá»§a 3 tool ÄÆ°á»£c ÄÆ°a thẳng lên Google Drive."}],b=[{card:"border-sky-400/25 bg-gradient-to-br from-sky-500/10 to-transparent",icon:"bg-sky-500/20 text-sky-300"},{card:"border-emerald-400/25 bg-gradient-to-br from-emerald-500/10 to-transparent",icon:"bg-emerald-500/20 text-emerald-300"},{card:"border-amber-400/25 bg-gradient-to-br from-amber-500/10 to-transparent",icon:"bg-amber-500/20 text-amber-300"},{card:"border-fuchsia-400/25 bg-gradient-to-br from-fuchsia-500/10 to-transparent",icon:"bg-fuchsia-500/20 text-fuchsia-300"},{card:"border-cyan-400/25 bg-gradient-to-br from-cyan-500/10 to-transparent",icon:"bg-cyan-500/20 text-cyan-300"},{card:"border-lime-400/25 bg-gradient-to-br from-lime-500/10 to-transparent",icon:"bg-lime-500/20 text-lime-300"}];function _e(){var G;const{user:t}=X(),g=P(),{hasAdvanced:x,advancedExpiresAt:k,isAdvancedLifetime:E}=se(),[u,K]=y.useState(""),[w,_]=y.useState(!1),[C,D]=y.useState(!1),s=a=>{var l;return(l=document.getElementById(a))==null?void 0:l.scrollIntoView({behavior:"smooth",block:"start"})},{data:r,refetch:L}=H({queryKey:["profile-drive-pricing",t==null?void 0:t.id],queryFn:async()=>
6{if(!(t!=null&&t.id))return null;const{data:a}=await f.from("profiles").select("full_name, phone, email").eq("id",t.id).maybeSingle();return a},enabled:!!(t!=null&&t.id)}),q=(r==null?void 0:r.full_name)||((G=t==null?void 0:t.email)==null?void 0:G.split("@")[0])||"",S=(r==null?void 0:r.email)||(t==null?void 0:t.email)||"",p=(r==null?void 0:r.phone)||"";async function V(){if(!u.trim()||!(t!=null&&t.id)){o.error("Nháºp sá» Äiá»n thoại Zalo");return}_(!0);try{const{error:a}=await f.from("profiles").update({phone:u.trim()}).eq("id",t.id);if(a)throw a;o.success("Äã lưu sá» Äiá»n thoại"),await L()}catch{o.error("Không lưu ÄÆ°á»£c sá» Äiá»n thoại")}finally{_(!1)}}async function z(){if(!(t!=null&&t.id)){o.error("Vui lòng ÄÄng nháºp trưá»c khi mua gói"),g("/login");return}if(!p){o.error("Vui lòng nháºp sá» Äiá»n thoại Zalo trưá»c");return}D(!0);try{const a=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,l="TL"+a.slice(-6).toUpperCase(),{data:F,error:M}=await f.from("tool_subscriptions").insert({id:a,user_id:t.id,tool_name:B,package_duration:"1 Tháng",quantity:1,price_per_unit:i,total_amount:i,original_amount:i,savings_amount:0,customer_name:q,customer_phone:p,customer_email:S,status:"pending",payment_reference:l,affiliate_ref:ee()||null,affiliate_click_id:te()||null,admin_notes:"3 Tool Äá»ng Bá» Google Drive (30 ngà y) â mua từ /pricingdrive"}).select().single();if(M)throw M;g("/app/tool-payment",{state:{orderData:{subscription_id:F.id,tool_name:B,package_duration:"1 Tháng",quantity:1,total_amount:i,original_amount:i,savings_amount:0,customer_name:q,customer_phone:p,customer_email:S,payment_reference:l}}})}catch{o.error("Có lá»i xảy ra, vui lòng thá» lại"),D(!1)}}return e.jsxs("div",{className:"min-h-screen bg-[#0a0a0f] text-slate-200",children:[e.jsx(ae,{title:"3 Tool Äá»ng Bá» Qua Google Drive â 249.000Ä/30 ngà y",description:"Kết quả cá»§a AutoChat, VoiceMax và Erender tá»± lưu thẳng lên Google Drive cá»§a bạn: giải phóng dung lượng máy tÃnh và Äiá»n thoại, file không thất lạc, má» ÄÆ°á»£c má»i lúc má»i nÆ¡i.",url:"/pricingdrive"}),e.jsx(ne,{count:28,subtle:!0}),e.jsxs("section",{className:"relative overflow-hidden border-b border-sky-500/20",children:[e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top,rgba(56,189,248,0.22),transparent_60%),radial-gradient(ellipse_at_bottom_right,rgba(52,211,153,0.18),transparent_55%),radial-gradient(ellipse_at_bottom_left,rgba(251,191,36,0.14),transparent_55%)]"}),e.jsx("div",{className:"absolute -top-24 left-1/2 h-72 w-72 -translate-x-1/2 rounded-full bg-sky-500/20 blur-[100px]"}),e.jsx("div",{className:"container max-w-4xl relative z-10 px-4 py-14 md:py-20 text-center",children:e.jsxs(ie.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},children:[e.jsx(Z,{className:"mb-4 bg-gradient-to-r from-sky-500/25 to-emerald-500/25 text-sky-200 border border-sky-400/40",children:"Gói nâng cấp cho cả 3 tool"}),e.jsx("h1",{className:"text-3xl md:text-5xl font-bold leading-tight bg-gradient-to-r from-sky-300 via-cyan-200 to-emerald-300 bg-clip-text text-transparent",children:"3 Tool Äá»ng Bá» Qua Google Drive"}),e.jsxs("p",{className:"mt-4 text-lg text-slate-300",children:["Má»i kết quả từ AutoChat, VoiceMax và Erender ",e.jsx("b",{className:"text-sky-200",children:"tá»± bay thẳng lên Google Drive"})," cá»§a bạn â máy tÃnh và Äiá»n thoại ÄÆ°á»£c giải phóng dung lượng, file không bao giá» thất lạc."]}),e.jsxs("div",{className:"mt-6 inline-flex items-end gap-2 rounded-2xl border border-sky-400/30 bg-black/40 px-6 py-4 shadow-[0_0_40px_-10px_rgba(56,189,248,0.6)]",children:[e.jsx("span",{className:"text-4xl md:text-5xl font-extrabold bg-gradient-to-r from-sky-300 to-emerald-300 bg-clip-text text-transparent",children:c(i)}),e.jsx("span",{className:"mb-1 text-slate-400",children:"/ 30 ngà y"})]}),x?e.jsxs("div",{className:"mt-6 inline-flex flex-col items-center gap-2 rounded-xl border border-emerald-600/50 bg-emerald-500/10 px-5 py-4",children:[e.jsx("span",{className:"font-semibold text-emerald-300",children:"Bạn Äang có gói Äá»ng bá» Google Drive"}),!E&&k&&e.jsxs("span",{className:"text-sm text-emerald-200/80",children:["Hạn tá»i ",O(k)]}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-2",children:[e.jsx(n,{className:"bg-gradient-to-r from-emerald-500 to-teal-500 text-emerald-950 font-bold hover:opacity-90",onClick:()=>g("/tool"),children:"Và o tool là m viá»c"}),e.jsx(n,{variant:"outline",className:"border-emerald-400/40 text-emerald-200",onClick:()=>s("mua-goi"),children:"Gia hạn thêm 30 ngà y"})]})]}):e.jsxs("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-3",children:[e.jsxs(n,{size:"lg",onClick:()=>s("mua-goi"),className:"bg-gradient-to-r from-sky-500 to-emerald-500 hover:opacity-90 text-white font-bold shadow-[0_0_30px_-8px_rgba(56,189,248,0.9)]",children:[e.jsx(d,{className:"mr-2 h-4 w-4"})," Nâng cấp ",c(i)]}),e.jsx(n,{size:"lg",variant:"outline",className:"border-emerald-400/40 text-emerald-200 hover:bg-emerald-500/10",onClick:()=>s("loi-ich"),children:"Xem lợi Ãch"})]}),e.jsxs("div",{className:"mt-7 flex flex-wrap items-center justify-center gap-2",children:[e.jsxs(n,{variant:"outline",size:"sm",className:"border-sky-400/30 bg-white/5 text-sky-200 hover:bg-sky-500/10",onClick:()=>s("loi-ich"),children:[e.jsx(d,{className:"mr-1.5 h-4 w-4"})," Lợi Ãch"]}),e.jsxs(n,{variant:"outline",size:"sm",className:"border-emerald-400/30 bg-white/5 text-emerald-200 hover:bg-emerald-500/10",onClick:()=>s("so-sanh"),children:[e.jsx(A,{className:"mr-1.5 h-4 w-4"})," So sánh"]}),e.jsxs(n,{variant:"outline",size:"sm",className:"border-amber-400/30 bg-white/5 text-amber-200 hover:bg-amber-500/10",onClick:()=>s("cach-hoat-dong"),children:[e.jsx(N,{className:"mr-1.5 h-4 w-4"})," Cách hoạt Äá»ng"]}),e.jsxs(n,{variant:"outline",size:"sm",className:"border-fuchsia-400/30 bg-white/5 text-fuchsia-200 hover:bg-fuchsia-500/10",onClick:()=>s("cau-hoi"),children:[e.jsx(I,{className:"mr-1.5 h-4 w-4"})," Câu há»i thưá»ng gặp"]}
6)]})]})})]}),e.jsxs("section",{id:"loi-ich",className:"container max-w-5xl px-4 py-12",children:[e.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white text-center",children:"Bạn ÄÆ°á»£c gì khi nâng cấp?"}),e.jsx("p",{className:"mt-2 text-center text-slate-400",children:"Äiá»u quan trá»ng nhất: kết quả trả thẳng vá» Google Drive â máy bạn không còn phải gánh file nặng."}),e.jsx("div",{className:"mt-8 grid md:grid-cols-2 gap-4",children:le.map((a,l)=>e.jsx(h,{className:`border transition-transform hover:-translate-y-1 ${b[l%b.length].card}`,children:e.jsxs(m,{className:"p-5 flex gap-3",children:[e.jsx("div",{className:`rounded-lg p-2 h-fit ${b[l%b.length].icon}`,children:e.jsx(a.icon,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-white",children:a.title}),e.jsx("p",{className:"text-sm text-slate-400 mt-1",children:a.desc})]})]})},a.title))})]}),e.jsx("section",{id:"so-sanh",className:"container max-w-4xl px-4 pb-12",children:e.jsxs(h,{className:"bg-white/[0.03] border-white/10 overflow-hidden",children:[e.jsxs(v,{children:[e.jsx(j,{className:"text-white",children:"Không có gói & Có gói khác nhau thế nà o?"}),e.jsx(T,{children:"Cùng má»t tool, chá» khác chá» nháºn kết quả."})]}),e.jsx(m,{className:"p-0",children:e.jsxs("div",{className:"grid grid-cols-3 border-t border-white/10 text-sm",children:[e.jsx("div",{className:"p-3 font-semibold text-slate-400"}),e.jsx("div",{className:"p-3 font-semibold text-slate-300 border-l border-white/10",children:"Không có gói"}),e.jsx("div",{className:"p-3 font-semibold text-emerald-300 border-l border-white/10",children:"Có gói Äá»ng bá» Drive"}),oe.map(a=>e.jsxs("div",{className:"contents",children:[e.jsx("div",{className:"p-3 border-t border-white/10 text-slate-300",children:a.label}),e.jsxs("div",{className:"p-3 border-t border-l border-white/10 text-slate-400 flex gap-2",children:[e.jsx(R,{className:"h-4 w-4 shrink-0 text-rose-400/70"}),e.jsx("span",{children:a.std})]}),e.jsxs("div",{className:"p-3 border-t border-l border-white/10 text-emerald-200 flex gap-2",children:[e.jsx(A,{className:"h-4 w-4 shrink-0 text-emerald-400"}),e.jsx("span",{children:a.pro})]})]},a.label))]})})]})}),e.jsx("section",{className:"container max-w-4xl px-4 pb-12",children:e.jsxs("div",{className:"rounded-2xl border border-sky-400/30 bg-gradient-to-r from-sky-500/15 via-cyan-500/10 to-emerald-500/15 p-6 text-center",children:[e.jsx("div",{className:"text-xl font-bold text-white",children:"Äừng Äá» á» cứng Äầy là m cháºm cả buá»i là m viá»c"}),e.jsxs("p",{className:"mt-2 text-slate-300",children:["Chá» ",c(i),"/30 ngà y â má»i kết quả tá»± lên Drive, máy bạn luôn nhẹ."]}),e.jsxs("div",{className:"mt-4 flex flex-wrap justify-center gap-2",children:[e.jsxs(n,{onClick:()=>s("mua-goi"),className:"bg-gradient-to-r from-sky-500 to-emerald-500 text-white font-bold hover:opacity-90",children:[e.jsx(d,{className:"mr-2 h-4 w-4"})," Nâng cấp ngay"]}),e.jsx(n,{variant:"ghost",className:"text-slate-300",onClick:()=>s("cau-hoi"),children:"Xem câu há»i thưá»ng gặp"})]})]})}),e.jsx("section",{id:"cach-hoat-dong",className:"container max-w-4xl px-4 pb-12",children:e.jsxs(h,{className:"bg-amber-500/[0.06] border-amber-500/30",children:[e.jsx(v,{children:e.jsxs(j,{className:"text-amber-200 flex items-center gap-2",children:[e.jsx(N,{className:"h-5 w-5"})," Hoạt Äá»ng ÄÆ¡n giản trong 3 bưá»c"]})}),e.jsxs(m,{className:"space-y-3 text-slate-300 text-sm leading-relaxed",children:[e.jsxs("ul",{className:"space-y-2",children:[e.jsxs("li",{children:["⢠",e.jsx("b",{className:"text-amber-200",children:"Bưá»c 1:"})," Nâng cấp gói â há» thá»ng tá»± má» quyá»n ngay sau khi nháºn chuyá»n khoản."]}),e.jsxs("li",{children:["⢠",e.jsx("b",{className:"text-amber-200",children:"Bưá»c 2:"})," Bấm kết ná»i tà i khoản Google má»t lần duy nhất."]}),e.jsxs("li",{children:["⢠",e.jsx("b",{className:"text-amber-200",children:"Bưá»c 3:"})," Cứ là m viá»c như thưá»ng â ká»ch bản, MP3, video xong là tá»± nằm trên Drive cá»§a bạn."]})]}),e.jsx("p",{className:"text-slate-400",children:"Từ lúc Äó máy bạn không còn phải chứa file nặng, mà má» Äiá»n thoại lên là xem lại ÄÆ°á»£c toà n bá» thà nh quả."})]})]})}),e.jsx("section",{id:"mua-goi",className:"container max-w-2xl px-4 pb-12",children:e.jsxs(h,{className:"border-sky-500/40 bg-white/[0.03]",children:[e.jsxs(v,{children:[e.jsxs(j,{className:"text-white flex items-center gap-2",children:[e.jsx(d,{className:"h-5 w-5 text-sky-300"})," ",x?"Gia hạn gói":"Nâng cấp ngay"]}),e.jsxs(T,{children:[c(i)," / 30 ngà y · Chuyá»n khoản xong há» thá»ng tá»± má» quyá»n."]})]}),e.jsx(m,{className:"space-y-4",children:t!=null&&t.id?e.jsxs(e.Fragment,{children:[!p&&e.jsxs("div",{className:"space-y-2",children:[e.jsx($,{htmlFor:"drive-phone",children:"Sá» Äiá»n thoại Zalo"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(Q,{id:"drive-phone",value:u,onChange:a=>K(a.target.value),placeholder:"09xxxxxxxx"}),e.jsx(n,{variant:"outline",onClick:V,disabled:w,children:w?"Äang lưu...":"Lưu"})]})]}),e.jsxs(n,{className:"w-full",size:"lg",onClick:z,disabled:C,children:[C&&e.jsx(J,{className:"mr-2 h-4 w-4 animate-spin"}),x?"Gia hạn":"Nâng cấp"," ",c(i)," / 30 ngà y"]})]}):e.jsx(n,{className:"w-full",onClick:()=>
6g("/login"),children:"ÄÄng nháºp Äá» nâng cấp"})})]})}),e.jsxs("section",{id:"cau-hoi",className:"container max-w-3xl px-4 pb-28",children:[e.jsx("h2",{className:"text-2xl font-bold text-white text-center mb-6",children:"Câu há»i thưá»ng gặp"}),e.jsx("div",{className:"space-y-3",children:ce.map(a=>e.jsx(h,{className:"bg-white/[0.03] border-white/10",children:e.jsxs(m,{className:"p-5",children:[e.jsx("div",{className:"font-semibold text-white",children:a.q}),e.jsx("p",{className:"text-sm text-slate-400 mt-1",children:a.a})]})},a.q))})]}),!x&&e.jsx("div",{className:"fixed inset-x-0 bottom-0 z-50 border-t border-sky-400/25 bg-[#0a0a0f]/90 backdrop-blur px-4 py-3",children:e.jsxs("div",{className:"container max-w-4xl flex flex-wrap items-center justify-between gap-3",children:[e.jsxs("div",{className:"text-sm",children:[e.jsxs("span",{className:"font-bold bg-gradient-to-r from-sky-300 to-emerald-300 bg-clip-text text-transparent",children:[c(i)," / 30 ngà y"]}),e.jsx("span",{className:"text-slate-400",children:" · kết quả tá»± lên Google Drive"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(n,{size:"sm",variant:"outline",className:"border-emerald-400/40 text-emerald-200",onClick:()=>s("loi-ich"),children:"Xem lợi Ãch"}),e.jsxs(n,{size:"sm",onClick:()=>s("mua-goi"),className:"bg-gradient-to-r from-sky-500 to-emerald-500 text-white font-bold hover:opacity-90",children:[e.jsx(d,{className:"mr-1.5 h-4 w-4"})," Nâng cấp ngay"]})]})]})})]})}export{_e as default};
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.