PageSourceSearch

https://lotuschat.vn/_nuxt/BIg_I2bU.js

js lotuschat.vn collected 2026-09-24 10:56:50 UTC 10,883 bytes, 1 lines download raw bytes

1import{_ as F}from"./CCuNeFyP.js";import{_ as W}from"./F--8a3t8.js";import{u as E,t as _}from"./B8P9x2Cw.js";import{j as $,l as r,c as b,o as g,b as n,w as o,a as t,t as c,p as d,F as B,v as P,s as j,i as N,d as v,u as S,h as H,V as M,r as k,n as I,W as z,q as U}from"#entry";import{_ as Z}from"./DrVfGMZg.js";import{u as A}from"./xBoud1eS.js";const K={class:"card-package-info"},X={class:"mt-l"},J={class:"text-gray"},Q={class:"package-btn d-flex align-center justify-center"},Y={class:"ml-2xs text-size-13 text-semibold"},tt={class:"text-gray text-size-14 text-semibold"},et={class:"text-gray text-size-14 text-semibold"},st={class:"text-gray text-size-14 text-semibold"},nt={class:"text-gray text-size-14 original-price text-semibold"},at={class:"text-gray text-size-14"},ot={class:"text-gray text-size-14 original-price text-semibold"},it={class:"text-gray text-size-14 text-purple text-semibold"},lt={__name:"PackageInfo",props:{packageInfo:{type:Object,default:()=>({})}},setup(i){const m=i,l=$(()=>m.packageInfo?.discount_breakdown?.reduce((u,s)=>(s.type==="trial_upgrade"?u.push({...s,title:"Giảm giá"}):u.push({...s,title:s.description}),u),[]));return(u,s)=>{const a=r("bfc-row"),e=r("bfc-card");return g(),b("div",K,[n(e,null,{default:o(()=>[s[7]||(s[7]=t("h2",{class:"cart-title"},"Thông tin gói dịch vụ",-1)),t("div",X,[n(a,{class:"py-xs",align:"middle",justify:"space-between"},{default:o(()=>[s[1]||(s[1]=t("div",{class:"text-gray text-size-14"}," Gói đã chọn: ",-1)),t("div",J,[t("div",Q,[s[0]||(s[0]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 45 40",fill:"none",class:"mb-2xs"},[t("path",{d:"M20.9034 7.93891C19.0221 6.48522 19.1932 4.26193 20.3903 2.97926C21.673 1.61108 23.8108 1.61108 25.0934 2.97926C26.2906 4.26193 26.3761 6.48522 24.5804 7.8534C24.5804 7.93892 24.6659 8.10994 24.6659 8.19545C25.35 9.99119 25.9486 11.7014 26.6326 13.4971C27.7443 16.4045 31.0792 17.2596 33.4735 15.2074C34.4997 14.2668 35.5258 13.3261 36.552 12.3855C36.1244 11.6159 35.9534 10.7608 36.2099 9.90567C36.6375 8.36647 38.0912 7.34034 39.6304 7.51136C41.2551 7.68238 42.4522 8.96505 42.5377 10.5898C42.6233 12.2145 41.5116 13.5827 39.8869 13.8392C39.5448 13.9247 39.4593 14.0957 39.4593 14.3523C38.5187 18.8844 37.6636 23.4165 36.723 27.9486C36.2099 30.6849 34.2432 32.3951 31.4213 32.3951C25.6065 32.3951 19.7917 32.3951 13.977 32.3951C11.1551 32.3951 9.18834 30.7704 8.67528 27.9486C7.82016 23.4165 6.87954 18.8844 5.93891 14.3523C5.93891 14.1812 5.76789 14.0102 5.42585 13.9247C3.80113 13.6682 2.68949 12.0435 2.86051 10.3332C3.03153 8.70852 4.57073 7.51136 6.28096 7.59687C7.90567 7.68238 9.27385 9.05056 9.27385 10.6753C9.27385 11.2739 9.10283 11.8724 9.01732 12.471C8.93181 12.471 8.93181 12.471 8.8463 12.471C8.93181 12.5565 8.93181 12.5565 9.01732 12.642C10.0435 13.5827 10.9841 14.4378 12.0102 15.3784C14.319 17.4307 17.654 16.5756 18.7656 13.7537C19.4497 11.7869 20.1338 9.82016 20.9034 7.93891Z",fill:"#fff"}),t("path",{d:"M22.6987 37.9536C19.1073 37.9536 15.4303 37.9536 11.8388 37.9536C11.6678 37.9536 11.4112 37.9536 11.2402 37.8681C10.5561 37.6971 10.1286 37.0985 10.2141 36.4999C10.2996 35.8158 10.8127 35.3027 11.4968 35.3027C11.6678 35.3027 11.7533 35.3027 11.9243 35.3027C19.1073 35.3027 26.2902 35.3027 33.4732 35.3027C33.6442 35.3027 33.9007 35.3027 34.0717 35.3027C34.7558 35.4738 35.1834 36.0723 35.1834 36.7564C35.0979 37.4405 34.4993 37.9536 33.7297 37.9536C31.4209 37.9536 29.1121 37.9536 26.8888 37.9536C25.4351 37.9536 24.0669 37.9536 22.6987 37.9536Z",fill:"#fff"})],-1)),t("span",Y,c(d(E)(i.packageInfo?.selected_package?.name??"")),1)])])]),_:1}),n(a,{class:"py-xs",align:"middle",justify:"space-between"},{default:o(()=>[s[2]||(s[2]=t("span",{class:"text-gray text-size-14"}," Số lượng tin nhắn: ",-1)),t("span",tt,c(d(_)(i.packageInfo?.selected_package?.quota??0))+" tin nhắn ",1)]),_:1}),n(a,{class:"py-xs",align:"middle",justify:"space-between"},{default:o(()=>[s[3]||(s[3]=t("span",{class:"text-gray text-size-14"}," Tốc độ xử lý: ",-1)),t("span",et,c(i.packageInfo?.selected_package?.rate_amount??0)+" tin nhắn/giây ",1)]),_:1}),n(a,{class:"py-xs",align:"middle",justify:"space-between"},{default:o(()=>[s[4]||(s[4]=t("span",{class:"text-gray text-size-14"}," Thời gian sử dụng: ",-1)),t("span",st,c(i.packageInfo?.selected_package?.duration??0)+" ngày ",1)]),_:1})]),s[8]||(s[8]=t("div",{class:"separate-line"},null,-1)),t("div",null,[n(a,{class:"py-xs",align:"middle",justify:"space-between"},{default:o(()=>[s[5]||(s[5]=t("span",{class:"text-gray text-size-14"}," Giá gốc: ",-1)),t("span",nt,c(d(_)(i.packageInfo?.subtotal??0))+" VNĐ ",1)]),_:1}),(g(!0),b(B,null,P(d(l),p=>(g(),j(a,{key:p?.type,class:"py-xs",align:"middle",justify:"space-between"},{default:o(()=>[t("span",at,c(p?.title)+": ",1),t("span",ot,c(d(_)(p?.amount??0))+" VNĐ ",1)]),_:2},1024))),128)),n(a,{class:"py-xs",align:"middle",justify:"space-between"},{default:o(()=>[s[6]||(s[6]=t("span",{class:"text-gray text-size-14"}," Giá sau giảm: ",-1)),t("span",it,c(d(_)(i.packageInfo?.total??0))+" VNĐ ",1)]),_:1})])]),_:1})])}}},ct={class:"card-renewal-info"},rt={class:"renewal-box d-flex align-center"},pt={class:"ml-s"},ut={class:"text-gray text-size-16 text-semibold mt-2xs"},dt={class:"renewal-box d-flex align-center"},ft={class:"ml-s"},gt={class:"text-gray text-size-16 text-semibold mt-2xs"},mt={__name:"RenewalInfo",props:{packageInfo:{type:Object,default:()=>({})}},setup(i){return(m,l)=>{const u=r("Calendar"),s=r("bfc-icon"),a=r("bfc-col"),e=r("CreditCard"),p=r("bfc-row"),f=r("bfc-card");return g(),b("div",ct,[n(f,null,{default:o(()=>[l[2]||(l[2]=t("h2",{class:"cart-title"},"Thông tin gia hạn",-1)),t("div",null,[n(p,{gutter:12,class:"mt-s"},{default:o(()=>[n(a,{span:12,xs:24},{default:o(()=>[t("div",rt,[n(s,{size:24,color:"#7829DE"},{default:o(()=>[n(u)]),_:1}),t("div",pt,[l[0]||(l[0]=t("p",{class:"text-gray text-size-13"},"Ngày gia hạn tiếp theo:",-1)),t("p",ut,c(i.packageInfo?.next_period?.renewal_date),1)])])]),_:1}),n(a,{span:12,xs:24,class:"box-info-right"},{default:o(()=>[t("div",dt,[n(s,{size:24,color:"#7829DE"},{default:o(()=>[n(e)]),_:1}),t("div",ft,[l[1]||(l[1]=t("p",{class:"text-gray text-size-13"},"Giá tháng sau:",-1)),t("p",gt,c(d(_)(i.packageInfo?.next_period?.price??0))+" VNĐ ",1)])])]),_:1})]),_:1})])]),_:1})])}}},_t={class:"card-payment-info"},xt={class:"mt-l"},yt={class:"text-gray text-size-14"},ht={class:"text-gray text-size-14"},bt={class:"text-gray text-size-16 text-purple text-bold"},kt={class:"d-flex flex-wrap align-center justify-center text-gray-60 py-s"},Ct={__name:"PaymentInfo",props:{packageInfo:{type:Object,default:()=>({})},isPaymenting:{type:Boolean,default:!1}},emits:["confirm"],setup(i){const m=N(),l=i;function u(){m.push("/user/chatbots/policy")}const s=$(()=>l.packageInfo?.payment_breakdown?.reduce((a,e)=>(e.type==="total"?a.push({...e,title:"Chi phí"}):e.type==="balance_deduction"&&a.push({...e,title:"Trừ số dư tài khoản"}),a),[]));return(a,e)=>{const p=r("bfc-row"),f=r("bfc-button"),x=r("bfc-link"),C=r("bfc-card");return g(),b("div",_t,[n(C,null,{default:o(()=>[e[8]||(e[8]=t("h2",{class:"cart-title"},"Thông tin thanh toán",-1)),t("div",xt,[(g(!0),b(B,null,P(d(s),y=>(g(),j(p,{key:y?.type,class:"py-s",align:"middle",justify:"space-between"},{default:o(()=>
1[t("span",yt,c(y?.title),1),t("span",ht,c(d(_)(y?.amount??0))+" VNĐ ",1)]),_:2},1024))),128)),e[7]||(e[7]=t("div",{class:"separate-line"},null,-1)),n(p,{class:"py-s",align:"middle",justify:"space-between"},{default:o(()=>[e[1]||(e[1]=t("span",{class:"text-gray text-size-14 text-semibold"}," Tổng thanh toán ",-1)),t("span",bt,c(d(_)(i.packageInfo?.payment_amount??0))+" VNĐ ",1)]),_:1}),n(f,{class:"h-44 w-100 mt-20",type:"primary",size:"default",loading:i.isPaymenting,disabled:!i.packageInfo?.user?.email,onClick:e[0]||(e[0]=y=>a.$emit("confirm"))},{default:o(()=>[...e[2]||(e[2]=[v(" Thanh toán ",-1)])]),_:1},8,["loading","disabled"]),t("div",kt,[e[5]||(e[5]=t("p",{class:"text-size-11"},"Bằng cách thanh toán, bạn đồng ý với",-1)),n(x,{type:"primary",class:"text-size-11 px-2xs",onClick:u},{default:o(()=>[...e[3]||(e[3]=[v("Điều khoản dịch vụ",-1)])]),_:1}),e[6]||(e[6]=t("p",{class:"text-size-11"},"và",-1)),n(x,{type:"primary",class:"text-size-11 px-2xs"},{default:o(()=>[...e[4]||(e[4]=[v("Chính sách bảo mật",-1)])]),_:1})])])]),_:1})])}}},vt={class:"billing-payment-layout"},jt={__name:"payment",setup(i){S({title:"Thanh toán",meta:[{name:"robots",content:"noindex, nofollow"}]});const{$axios:m}=H(),l=M(),u=N(),s=A(),a=k(null),e=k(!1);async function p(){if(!l.query.package_id)return new Notify({status:"error",title:"Lỗi",text:"Chưa có gói nào được chọn",effect:"slide",speed:300,customClass:"",customIcon:"",showIcon:!0,showCloseButton:!0,autoclose:!0,autotimeout:5e3,notificationsGap:null,notificationsPadding:null,type:"outline",position:"right top",customWrapper:""});try{e.value=!0;const{data:h}=await m.post("/pricing",{package_id:l.query?.package_id});a.value=h??{},e.value=!1}catch{e.value=!1,new Notify({status:"error",title:"Lỗi",text:"Không thể lấy thông tin gói dịch vụ",effect:"slide",speed:300,customClass:"",customIcon:"",showIcon:!0,showCloseButton:!0,autoclose:!0,autotimeout:5e3,notificationsGap:null,notificationsPadding:null,type:"outline",position:"right top",customWrapper:""}),u.push("/user/billing/packages")}}s.pricingInfo?a.value=s.pricingInfo:p();const f=k(!1),x=k(!1),C=k({});async function y(){if(l.query.package_id)try{f.value=!0;const{data:h}=await m.post("/payment/checkout",{package_id:l.query?.package_id});C.value=h??{},h?.payment_url?window.location.href=h?.payment_url:(x.value=!0,f.value=!1)}catch{f.value=!1,new Notify({status:"error",title:"Lỗi",text:"Thanh toán thất bại",effect:"slide",speed:300,customClass:"",customIcon:"",showIcon:!0,showCloseButton:!0,autoclose:!0,autotimeout:5e3,notificationsGap:null,notificationsPadding:null,type:"outline",position:"right top",customWrapper:""})}}return(h,w)=>{const T=F,V=r("bfc-skeleton"),G=W,q=lt,L=mt,O=Ct,R=Z;return g(),b("div",vt,[n(T,{title:"Thanh toán",desc:"Xác nhận thông tin và hoàn tất đăng ký",back:"/user/billing/packages"}),I(n(V,{class:"mt-30",animated:""},null,512),[[z,e.value]]),I(t("div",null,[n(G,{"package-info":a.value,class:"mt-30",onUpdate:p},null,8,["package-info"]),n(q,{"package-info":a.value,class:"mt-30"},null,8,["package-info"]),n(L,{"package-info":a.value,class:"mt-30"},null,8,["package-info"]),U("",!0),n(O,{"package-info":a.value,class:"mt-30","is-paymenting":f.value,onConfirm:y},null,8,["package-info","is-paymenting"])],512),[[z,!e.value]]),n(R,{"is-open-popup":x.value,"onUpdate:isOpenPopup":w[0]||(w[0]=D=>x.value=D),"checkout-info":C.value},null,8,["is-open-popup","checkout-info"])])}}};export{jt 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.