From 1d3e6e7178149e7b74d403eca7e9a883fb806c3e Mon Sep 17 00:00:00 2001 From: zhutao <1812073942@qq.com> Date: Mon, 15 Dec 2025 14:27:20 +0800 Subject: [PATCH] 1 --- assets/{index-BwUk-Dh-.js => index-D3b3rKt1.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-BwUk-Dh-.js => index-D3b3rKt1.js} (99%) diff --git a/assets/index-BwUk-Dh-.js b/assets/index-D3b3rKt1.js similarity index 99% rename from assets/index-BwUk-Dh-.js rename to assets/index-D3b3rKt1.js index 75d52d3..987a2ca 100644 --- a/assets/index-BwUk-Dh-.js +++ b/assets/index-D3b3rKt1.js @@ -351,4 +351,4 @@ to { > * { pointer-events: auto; } -`,Ea=16,NC=({reverseOrder:t,position:n="top-center",toastOptions:i,gutter:s,children:a,toasterId:c,containerStyle:u,containerClassName:d})=>{let{toasts:h,handlers:y}=iC(i,c);return Y.createElement("div",{"data-rht-toaster":c||"",style:{position:"fixed",zIndex:9999,top:Ea,left:Ea,right:Ea,bottom:Ea,pointerEvents:"none",...u},className:d,onMouseEnter:y.startPause,onMouseLeave:y.endPause},h.map(m=>{let v=m.position||n,w=y.calculateOffset(m,{reverseOrder:t,gutter:s,defaultPosition:n}),k=CC(v,w);return Y.createElement(AC,{id:m.id,key:m.id,onHeightUpdate:y.updateHeight,className:m.visible?FC:"",style:k},m.type==="custom"?Ha(m.message,m):a?a(m):Y.createElement(_C,{toast:m,position:v}))}))},Lr=it;const Wo=Ke.create({baseURL:"https://ting.lifebanktech.com/api",timeout:1e3*300});Wo.interceptors.request.use(t=>{t.data instanceof FormData&&(t.headers["Content-Type"]="multipart/form-data");let n=Mi.getState().token;return n&&(t.headers.Authorization=`Bearer ${n}`),t});Wo.interceptors.response.use(t=>{const{code:n,data:i,message:s}=t.data;if(n===1)return i;if(n===0)return Lr.error(s),Promise.reject(new Error(s));n===401||n===403?gA():Lr.error(s)},t=>t.code==="ECONNABORTED"?(Lr.error("网速较慢,请耐心等待"),t.config.timeout=1e3*60*3,Wo(t.config)):t.message==="Network Error"?(Lr.error("网络中断"),Promise.reject()):(Lr.error("网络异常"),Promise.reject()));function RC(t,n={}){return Wo.post(t,n)}function bC(t,n={}){return Wo.get(t,{params:n})}const qr={get:bC,post:RC};function OC(t){let n=new FormData;return n.append("analys_image",t.analys_image),n.append("analys_type",t.analys_type),qr.post("/enterprise/analyze",n)}function MC(t){return qr.post("/enterprise/submit_contact_info",t)}function jC(t){return qr.post("/analysis_order/create",t)}var df={exports:{}},cg;function IC(){return cg||(cg=1,(function(t,n){df.exports=n(t)})(typeof window=="object"&&window,function(t,n){if(!t){console.warn("can't use weixin-js-sdk in server side");return}var i,s,a,c,u,d,h,y,m,v,w,k,T,A,S,R,O,D,U,H,q,b;if(t.jWeixin)return t.jWeixin;return i={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},s=(function(){var g,L={};for(g in i)L[i[g]]=g;return L})(),a=t.document,c=a.title,u=navigator.userAgent.toLowerCase(),k=navigator.platform.toLowerCase(),d=!(!k.match("mac")&&!k.match("win")),h=u.indexOf("wxdebugger")!=-1,y=u.indexOf("micromessenger")!=-1,m=u.indexOf("android")!=-1,v=u.indexOf("iphone")!=-1||u.indexOf("ipad")!=-1,w=(k=u.match(/micromessenger\/(\d+\.\d+\.\d+)/)||u.match(/micromessenger\/(\d+\.\d+)/))?k[1]:"",T={initStartTime:Ee(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},A={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:v?1:m?2:-1,clientVersion:w,url:encodeURIComponent(location.href)},S={},R={_completes:[]},O={state:0,data:{}},ce(function(){T.initEndTime=Ee()}),D=!1,U=[],H={config:function(g){pe("config",S=g);var L=S.check!==!1;ce(function(){if(L)E(i.config,{verifyJsApiList:se(S.jsApiList),verifyOpenTagList:se(S.openTagList)},(R._complete=function(ae){T.preVerifyEndTime=Ee(),O.state=1,O.data=ae},R.success=function(ae){A.isPreVerifyOk=0},R.fail=function(ae){R._fail?R._fail(ae):O.state=-1},(ie=R._completes).push(function(){Pe()}),R.complete=function(ae){for(var re=0,he=ie.length;re{cn.chooseWXPay({timestamp:t.timestamp,nonceStr:t.nonceStr,package:t.package,signType:t.signType,paySign:t.paySign,success:function(){n(!0)},cancel:function(i){console.log(i),n(!1)}})})}const fg=["某杭州电商公司使用后,设计部成本降低60%","某深圳外贸公司使用后,客服响应速度提升5倍","某上海科技公司使用后,年度成本节省120万"];function VC({onPayment:t}){const n=Mi(),[i,s]=Y.useState(599),[a,c]=Y.useState(0);let u=!0;const d=async()=>{if(!u)return;u=!1;let m=await jC({record_id:n.analysis.record_id});LC(m).then(v=>{u=!0,v?t():Lr.error("支付失败")})};Y.useEffect(()=>{const m=setInterval(()=>{s(v=>v>0?v-1:0)},1e3);return()=>clearInterval(m)},[]),Y.useEffect(()=>{const m=setInterval(()=>{c(v=>(v+1)%fg.length)},3e3);return()=>clearInterval(m)},[]);const h=Math.floor(i/60),y=i%60;return P.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center px-6 py-12 relative",children:[P.jsx("div",{className:"absolute inset-0 opacity-30 blur-xl pointer-events-none",children:P.jsx("div",{className:"absolute top-1/4 left-1/2 -translate-x-1/2 w-80 h-96 bg-gradient-to-br from-red-500 to-gray-800 rounded-2xl p-6",children:P.jsxs("div",{className:"space-y-4",children:[P.jsx("div",{className:"h-8 bg-white/20 rounded"}),P.jsx("div",{className:"h-32 bg-white/20 rounded"}),P.jsx("div",{className:"h-8 bg-white/20 rounded w-2/3"})]})})}),P.jsxs(ne.div,{className:"relative z-10 w-full max-w-md",initial:{opacity:0,y:30},animate:{opacity:1,y:0},children:[P.jsxs(ne.div,{className:"flex items-center justify-center gap-2 mb-6",initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.2},children:[P.jsx($y,{className:"w-8 h-8 text-[#00F0FF]"}),P.jsx("span",{className:"text-xl",children:"分析完成!"})]}),P.jsxs(ne.div,{className:"bg-white/5 backdrop-blur-md border border-[#7B61FF]/30 rounded-2xl p-6 mb-6 relative overflow-hidden",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.3},children:[P.jsxs("div",{className:"absolute inset-0 backdrop-blur-sm bg-white/5 z-10 flex flex-col items-center justify-center gap-4",children:[P.jsx(qy,{className:"w-16 h-16 text-[#00F0FF]/50"}),P.jsxs("div",{className:"text-center px-4",children:[P.jsxs(ne.div,{className:"mb-2",animate:{opacity:[.7,1,.7]},transition:{duration:2,repeat:1/0},children:[P.jsx("p",{className:"text-sm text-gray-400 mb-1",children:"预计年度节省"}),P.jsxs("div",{className:"text-3xl bg-gradient-to-r from-[#00F0FF] to-[#7B61FF] bg-clip-text text-transparent",children:["¥ ",n.analysis.analysis_result.analyze_data.annual_savings_cost]})]}),P.jsxs(ne.div,{animate:{opacity:[.7,1,.7]},transition:{duration:2,repeat:1/0,delay:.5},children:[P.jsx("p",{className:"text-sm text-gray-400 mb-1",children:"效率提升"}),P.jsxs("div",{className:"text-2xl text-[#00F0FF]",children:[n.analysis.analysis_result.analyze_data.efficiency_improvement," %"]})]})]})]}),P.jsxs("div",{className:"space-y-4 blur-sm select-none",children:[P.jsxs("div",{className:"text-center",children:[P.jsx("p",{className:"text-gray-400 text-sm mb-2",children:"经测算,您的企业每年由于员工不使用AI"}),P.jsx("p",{className:"text-2xl text-red-400 mb-1",children:"额外支出成本约为"}),P.jsxs("div",{className:"text-5xl bg-gradient-to-r from-red-400 to-orange-400 bg-clip-text text-transparent",children:["¥???",",","???"]})]}),P.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-gray-600 to-transparent"}),P.jsxs("div",{className:"text-center",children:[P.jsx("p",{className:"text-gray-400 text-sm mb-2",children:"优化后,预计每年可节省"}),P.jsxs("div",{className:"text-4xl bg-gradient-to-r from-[#00F0FF] to-[#7B61FF] bg-clip-text text-transparent",children:["¥???",",","???"]})]})]})]}),P.jsxs(ne.div,{className:"bg-gradient-to-br from-[#7B61FF]/20 to-[#00F0FF]/20 backdrop-blur-md border-2 border-[#00F0FF] rounded-2xl p-6 mb-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},children:[P.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[P.jsx(Od,{className:"w-6 h-6 text-[#00F0FF]"}),P.jsx("h3",{className:"text-xl",children:"解锁完整报告"})]}),P.jsx("div",{className:"space-y-3 mb-6",children:["各部门AI替代率精准评估","具体的降本金额明细","推荐的AI工具组合清单"].map((m,v)=>P.jsxs(ne.div,{className:"flex items-center gap-3 text-sm text-gray-300",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.6+v*.1},children:[P.jsx("div",{className:"w-5 h-5 bg-[#00F0FF]/20 rounded-full flex items-center justify-center flex-shrink-0",children:P.jsx(Uy,{className:"w-3 h-3 text-[#00F0FF]"})}),P.jsx("span",{children:m})]},v))}),P.jsxs("div",{className:"text-center mb-6",children:[P.jsxs("div",{className:"flex items-center justify-center gap-3 mb-2",children:[P.jsx("span",{className:"text-gray-500 line-through text-lg",children:"¥999"}),P.jsx("span",{className:"bg-red-500 text-white text-xs px-2 py-1 rounded",children:"限时特惠"})]}),P.jsxs("div",{className:"flex items-baseline justify-center gap-1",children:[P.jsx("span",{className:"text-4xl",children:"¥"}),P.jsx("span",{className:"text-6xl bg-gradient-to-r from-[#00F0FF] to-[#7B61FF] bg-clip-text text-transparent",children:"9.9"})]})]}),P.jsxs(ne.button,{className:"w-full py-4 bg-gradient-to-r from-[#7B61FF] to-[#00F0FF] rounded-xl relative overflow-hidden group",whileHover:{scale:1.02},whileTap:{scale:.98},onClick:d,children:[P.jsx(ne.div,{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/30 to-transparent",animate:{x:["-100%","200%"]},transition:{duration:2,repeat:1/0,repeatDelay:1}}),P.jsxs("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[P.jsx("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"currentColor",children:P.jsx("path",{d:"M8.5 2C6.57 2 5 3.57 5 5.5V6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-1v-.5C19 3.57 17.43 2 15.5 2h-7zM7 6V5.5C7 4.67 7.67 4 8.5 4h7c.83 0 1.5.67 1.5 1.5V6H7zm5.99 6c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})}),"微信支付 ¥9.9 解锁报告"]})]}),P.jsxs(ne.div,{className:"mt-4 text-center text-sm text-orange-400 flex items-center justify-center gap-2",animate:{opacity:[1,.5,1]},transition:{duration:1,repeat:1/0},children:[P.jsx($y,{className:"w-4 h-4"}),P.jsxs("span",{children:["优惠将在"," ",P.jsxs("span",{className:"text-lg",children:[String(h).padStart(2,"0"),":",String(y).padStart(2,"0")]})," ","后失效"]})]})]}),P.jsx(ne.div,{className:"bg-white/5 backdrop-blur-sm rounded-xl p-4 overflow-hidden",initial:{opacity:0},animate:{opacity:1},transition:{delay:.8},children:P.jsxs(ne.div,{className:"text-center text-sm text-gray-400 flex items-center justify-center gap-2",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},children:[P.jsx(Uy,{className:"w-4 h-4 text-green-400 flex-shrink-0"}),P.jsx("span",{children:fg[a]})]},a)}),P.jsxs(ne.div,{className:"mt-6 flex justify-center gap-6 text-xs text-gray-500",initial:{opacity:0},animate:{opacity:1},transition:{delay:1},children:[P.jsxs("div",{className:"flex items-center gap-1",children:[P.jsx(qy,{className:"w-3 h-3"}),P.jsx("span",{children:"安全支付"})]}),P.jsxs("div",{className:"flex items-center gap-1",children:[P.jsx(Yv,{className:"w-3 h-3"}),P.jsx("span",{children:"1000+企业选择"})]}),P.jsxs("div",{className:"flex items-center gap-1",children:[P.jsx(Xv,{className:"w-3 h-3"}),P.jsx("span",{children:"平均节省40%"})]})]})]})]})}function BC(){const t=Mi(),[n,i]=Y.useState({name:"",phone:"",company:""}),[s,a]=Y.useState(!1),[c,u]=Y.useState(!1),d=async h=>{h.preventDefault(),await MC({contact_name:n.name,contact_phone:n.phone,enterprise_name:n.company,record_id:t.analysis.record_id}),a(!0)};return s?P.jsxs("div",{className:"min-h-screen px-6 py-12 pb-32",children:[P.jsxs(ne.div,{className:"max-w-2xl mx-auto",initial:{opacity:0},animate:{opacity:1},children:[P.jsxs(ne.div,{className:"text-center mb-12",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},children:[P.jsx("h1",{className:"text-3xl mb-2",children:"AI降本增效诊断报告"}),P.jsxs("p",{className:"text-gray-400",children:["为 ",n.company||n.name," 定制"]})]}),P.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-8",children:[P.jsxs(ne.div,{className:"bg-gradient-to-br from-red-500/20 to-red-500/5 border border-red-500/30 rounded-xl p-6",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.2},children:[P.jsx("div",{className:"text-red-400 text-sm mb-2",children:"年度额外支出"}),P.jsxs("div",{className:"text-3xl",children:["¥",t.analysis.analysis_result.analyze_data.annual_original_cost]})]}),P.jsxs(ne.div,{className:"bg-gradient-to-br from-[#00F0FF]/20 to-[#00F0FF]/5 border border-[#00F0FF]/30 rounded-xl p-6",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.3},children:[P.jsx("div",{className:"text-[#00F0FF] text-sm mb-2",children:"预计年节省"}),P.jsxs("div",{className:"text-3xl",children:["¥",t.analysis.analysis_result.analyze_data.annual_savings_cost]})]})]}),P.jsxs(ne.div,{className:"bg-white/5 backdrop-blur-sm border border-gray-600 rounded-2xl p-6 mb-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},children:[P.jsxs("h3",{className:"text-xl mb-6 flex items-center gap-2",children:[P.jsx(Yv,{className:"w-6 h-6 text-[#00F0FF]"}),"各部门优化分析"]}),P.jsx("div",{className:"space-y-4",children:t.analysis.analysis_result.analyze_data.analyze_postion_detail.map((h,y)=>{let m=0;return h.replace_save_rate<30?m=0:h.replace_save_rate<70?m=1:m=2,P.jsxs(ne.div,{className:`p-4 rounded-xl border ${m==2?"bg-red-500/10 border-red-500/30":m==1?"bg-orange-500/10 border-orange-500/30":"bg-yellow-500/10 border-yellow-500/30"}`,initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.5+y*.1},children:[P.jsxs("div",{className:"flex items-center justify-between mb-3",children:[P.jsxs("div",{children:[P.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[P.jsx("span",{className:"font-medium",children:h.position}),m==2&&P.jsx("span",{className:"text-xs bg-red-500 text-white px-2 py-0.5 rounded",children:"急需优化"})]}),P.jsxs("div",{className:"text-sm text-gray-400",children:[h.original_number,"人 → ",h.replace_with_ai_number,"人 + AI"]})]}),P.jsxs("div",{className:"text-right",children:[P.jsxs("div",{className:`text-2xl ${m==2?"text-red-400":m==1?"text-orange-400":"text-yellow-400"}`,children:["-",h.replace_save_rate,"%"]}),P.jsx("div",{className:"text-xs text-gray-500",children:"成本降低"})]})]}),P.jsx("div",{className:"h-2 bg-gray-800 rounded-full overflow-hidden",children:P.jsx(ne.div,{className:`h-full ${m==2?"bg-red-400":m==1?"bg-orange-400":"bg-yellow-400"}`,initial:{width:0},animate:{width:`${h.replace_save_rate}%`},transition:{delay:.7+y*.1,duration:1}})})]},h.position)})})]}),P.jsxs(ne.div,{className:"bg-gradient-to-br from-[#7B61FF]/20 to-[#00F0FF]/20 backdrop-blur-sm border border-[#00F0FF]/30 rounded-2xl p-6 mb-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.9},children:[P.jsxs("h3",{className:"text-xl mb-4 flex items-center gap-2",children:[P.jsx(Va,{className:"w-6 h-6 text-[#00F0FF]"}),"推荐AI工具组合"]}),P.jsx("div",{className:"grid grid-cols-2 gap-3",children:["文案生成AI","设计辅助AI","智能客服系统","数据分析AI","自动化运营工具","会议记录AI"].map((h,y)=>P.jsx(ne.div,{className:"bg-white/5 border border-gray-600 rounded-lg px-4 py-3 text-sm text-center",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:1+y*.05},children:h},h))})]}),P.jsxs(ne.div,{className:"relative bg-gradient-to-br from-[#7B61FF] to-[#00F0FF] rounded-3xl p-8 text-center overflow-hidden",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1.2},children:[P.jsx(ne.div,{className:"absolute inset-0 opacity-20",animate:{backgroundPosition:["0% 0%","100% 100%"]},transition:{duration:20,repeat:1/0,repeatType:"reverse"},style:{backgroundImage:"radial-gradient(circle, white 1px, transparent 1px)",backgroundSize:"30px 30px"}}),P.jsxs("div",{className:"relative z-10",children:[P.jsxs(ne.div,{className:"flex items-center justify-center gap-2 mb-4",animate:{scale:[1,1.05,1]},transition:{duration:2,repeat:1/0},children:[P.jsx(Od,{className:"w-8 h-8 text-white"}),P.jsx("h3",{className:"text-2xl text-white",children:"知道问题了,不知道怎么落地?"})]}),P.jsxs("p",{className:"text-white/90 mb-6 text-lg",children:["专属AI顾问为您提供",P.jsx("br",{}),P.jsx("span",{className:"text-white",children:"行业定制版AI工具包 + 员工培训方案"})]}),P.jsxs(ne.button,{className:"w-full max-w-sm mx-auto py-5 bg-white text-[#7B61FF] rounded-2xl flex items-center justify-center gap-3 shadow-2xl",whileHover:{scale:1.05,boxShadow:"0 20px 40px rgba(0,0,0,0.3)"},whileTap:{scale:.95},onClick:()=>u(!0),children:[P.jsx(pc,{className:"w-6 h-6"}),P.jsx("span",{className:"text-lg",children:"立即咨询专属AI顾问"}),P.jsx(bT,{className:"w-6 h-6"})]}),P.jsxs(ne.div,{className:"mt-4 flex items-center justify-center gap-2 text-white/90",animate:{opacity:[.7,1,.7]},transition:{duration:2,repeat:1/0},children:[P.jsx(WT,{className:"w-5 h-5"}),P.jsx("span",{children:"限时赠送《2025企业AI工具白皮书》"})]})]})]})]}),P.jsxs(ne.button,{className:"fixed bottom-6 left-1/2 -translate-x-1/2 px-8 py-4 bg-gradient-to-r from-[#7B61FF] to-[#00F0FF] rounded-full shadow-2xl flex items-center justify-center gap-3 z-50 max-w-[90vw]",initial:{y:100,opacity:0},animate:{y:0,opacity:1},transition:{delay:1.5,type:"spring"},whileHover:{scale:1.05,y:-5},whileTap:{scale:.95},onClick:()=>u(!0),children:[P.jsx(pc,{className:"w-6 h-6 text-white"}),P.jsx("span",{className:"text-white whitespace-nowrap",children:"点击获取 1对1定制化AI落地方案"}),P.jsx(ne.div,{className:"absolute inset-0 rounded-full border-2 border-white",animate:{scale:[1,1.2,1],opacity:[.6,0,.6]},transition:{duration:2,repeat:1/0}}),P.jsx(ne.div,{className:"absolute inset-0 rounded-full bg-gradient-to-r from-[#7B61FF] to-[#00F0FF] blur-xl opacity-50",animate:{opacity:[.3,.6,.3]},transition:{duration:2,repeat:1/0}})]}),P.jsx(X2,{children:c&&P.jsxs(ne.div,{className:"fixed inset-0 z-50 flex items-center justify-center px-6",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[P.jsx(ne.div,{className:"absolute inset-0 bg-black/80 backdrop-blur-sm",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>u(!1)}),P.jsxs(ne.div,{className:"relative bg-gradient-to-br from-[#0A0F24] to-[#1a1f3a] border-2 border-[#00F0FF] rounded-3xl p-8 max-w-md w-full",initial:{scale:.8,y:50},animate:{scale:1,y:0},exit:{scale:.8,y:50},transition:{type:"spring"},children:[P.jsx("button",{className:"absolute top-4 right-4 text-gray-400 hover:text-white transition-colors",onClick:()=>u(!1),children:P.jsx(rk,{className:"w-6 h-6"})}),P.jsx(ne.div,{className:"flex justify-center mb-6",initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.2},children:P.jsx(ne.div,{className:"w-20 h-20 bg-gradient-to-br from-[#7B61FF] to-[#00F0FF] rounded-full flex items-center justify-center",animate:{boxShadow:["0 0 20px rgba(0, 240, 255, 0.5)","0 0 40px rgba(123, 97, 255, 0.8)","0 0 20px rgba(0, 240, 255, 0.5)"]},transition:{duration:2,repeat:1/0},children:P.jsx(pc,{className:"w-10 h-10 text-white"})})}),P.jsxs(ne.div,{className:"text-center mb-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:[P.jsx("h3",{className:"text-2xl mb-4",children:"添加专属AI顾问"}),P.jsx("p",{className:"text-gray-300 mb-6",children:"扫描下方二维码,即可获得:"}),P.jsx("div",{className:"space-y-3 mb-6 text-left",children:["1对1定制化AI落地方案","行业专属AI工具包推荐","全员AI技能培训指导","《2025企业AI工具白皮书》PDF"].map((h,y)=>P.jsxs(ne.div,{className:"flex items-center gap-3 text-sm text-gray-300",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.4+y*.1},children:[P.jsx("div",{className:"w-6 h-6 bg-[#00F0FF]/20 rounded-full flex items-center justify-center flex-shrink-0",children:P.jsx(Wy,{className:"w-4 h-4 text-[#00F0FF]"})}),P.jsx("span",{children:h})]},y))}),P.jsx(ne.div,{className:"bg-white rounded-2xl p-4 inline-block mb-4",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:.6},children:P.jsx("div",{className:"w-48 h-48 bg-gray-300 rounded-xl flex items-center justify-center text-gray-600 text-xs text-center px-4",children:P.jsx("img",{src:"https://keyang2.tuzuu.com/%E6%95%88%E7%81%B5/kf.jpg"})})}),P.jsxs(ne.p,{className:"text-sm text-gray-400",initial:{opacity:0},animate:{opacity:1},transition:{delay:.8},children:["顾问微信二维码,长按识别添加",P.jsx("br",{}),"添加后回复「",n.company||n.name,"」",P.jsx("br",{}),"立即获取专属方案"]})]})]})]})})]}):P.jsx("div",{className:"min-h-screen flex flex-col items-center justify-center px-6 py-12",children:P.jsxs(ne.div,{className:"w-full max-w-md",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[P.jsx(ne.div,{className:"flex justify-center mb-8",initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.2},children:P.jsx("div",{className:"w-20 h-20 bg-gradient-to-br from-[#7B61FF] to-[#00F0FF] rounded-full flex items-center justify-center",children:P.jsx(Wy,{className:"w-12 h-12 text-white"})})}),P.jsx(ne.h2,{className:"text-2xl text-center mb-2",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:"报告已生成!"}),P.jsx(ne.p,{className:"text-gray-400 text-center mb-8",initial:{opacity:0},animate:{opacity:1},transition:{delay:.4},children:"请输入接收人信息以存档"}),P.jsxs(ne.form,{className:"space-y-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},onSubmit:d,children:[P.jsxs("div",{children:[P.jsx("label",{className:"block text-sm text-gray-400 mb-2",children:"姓名 *"}),P.jsx("input",{type:"text",required:!0,className:"w-full px-4 py-3 bg-white/5 border border-gray-600 rounded-xl focus:border-[#00F0FF] focus:outline-none transition-colors",placeholder:"请输入您的姓名",value:n.name,onChange:h=>i({...n,name:h.target.value})})]}),P.jsxs("div",{children:[P.jsx("label",{className:"block text-sm text-gray-400 mb-2",children:"手机号 *"}),P.jsx("input",{type:"tel",required:!0,maxLength:11,pattern:"[0-9]{11}",className:"w-full px-4 py-3 bg-white/5 border border-gray-600 rounded-xl focus:border-[#00F0FF] focus:outline-none transition-colors",placeholder:"请输入手机号",value:n.phone,onChange:h=>i({...n,phone:h.target.value})})]}),P.jsxs("div",{children:[P.jsx("label",{className:"block text-sm text-gray-400 mb-2",children:"企业名称(选填)"}),P.jsx("input",{type:"text",className:"w-full px-4 py-3 bg-white/5 border border-gray-600 rounded-xl focus:border-[#00F0FF] focus:outline-none transition-colors",placeholder:"请输入企业名称",value:n.company,onChange:h=>i({...n,company:h.target.value})})]}),P.jsxs(ne.button,{type:"submit",className:"w-full py-4 bg-gradient-to-r from-[#7B61FF] to-[#00F0FF] rounded-xl flex items-center justify-center gap-2",whileHover:{scale:1.02},whileTap:{scale:.98},children:[P.jsx(UT,{className:"w-5 h-5"}),"查看报告"]})]})]})})}function zC(t){return qr.post("/login",t)}function UC(t){return qr.get("/get_jssdk",t)}function $C(){return qr.get("/get_share_config")}const WC=["snsapi_base","snsapi_userinfo"],HC="wxbc438492e3efab70";let Jf=window.location.href,pf=Jf.split("?")[0];function qC(){return new Promise(t=>{if(Mi.getState().token){t(!0);return}let i=Bo.parse(Jf.split("?")[1]);i.code?zC({wx_code:i.code,...i}).then(s=>{if(!s.accessToken){delete i.code,delete i.state,pf=pf+Bo.stringify(i),dg(pf);return}Mi.getState().setToken(s.accessToken),t(!0)}):dg(Jf)})}function dg(t){t=encodeURIComponent(t),window.location.href=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${HC}&redirect_uri=${t}&response_type=code&scope=${WC[1]}#wechat_redirect`}async function KC(){if(!(navigator.userAgent.toLowerCase().indexOf("micromessenger")!==-1))return;let n=Bo.parse(window.location.search.split("?")[1]);delete n.code;let i=await UC({url:window.location.href}),s=await $C();const a={title:s.share_title,desc:s.share_sub_title,link:window.location.href,imgUrl:"https://keyang2.tuzuu.com/%E6%95%88%E7%81%B5/logo.jpg"};cn.config({debug:!1,appId:i.jssdk.appId,timestamp:i.jssdk.timestamp,nonceStr:i.jssdk.nonceStr,signature:i.jssdk.signature,jsApiList:i.jssdk.jsApiList,openTagList:["wx-open-launch-weapp"]}),cn.ready(function(){cn.updateAppMessageShareData&&cn.updateAppMessageShareData({title:a.title,desc:a.desc,link:a.link,imgUrl:a.imgUrl,success:()=>{console.log("分享朋友成功")}}),cn.updateTimelineShareData&&cn.updateTimelineShareData({title:a.title,link:a.link,imgUrl:a.imgUrl,success:()=>{console.log("分享朋友圈")}}),cn.onMenuShareAppMessage&&cn.onMenuShareAppMessage({title:a.title,desc:a.desc,link:a.link,imgUrl:a.imgUrl,success:()=>{console.log("旧版本分享朋友成功")},cancel:()=>{}}),cn.onMenuShareTimeline&&cn.onMenuShareTimeline({title:a.title,link:a.link,imgUrl:a.imgUrl,success:()=>{console.log("旧版本分享朋友圈")},cancel:()=>{}})})}var hf={exports:{}},pg;function GC(){return pg||(pg=1,(function(t,n){(function(i){t.exports=i()})(function(i){var s=function(b,E){return b+E&4294967295},a=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function c(b,E,N,_,V,j){return E=s(s(E,b),s(_,j)),s(E<>>32-V,N)}function u(b,E,N,_,V,j,se){return c(E&N|~E&_,b,E,V,j,se)}function d(b,E,N,_,V,j,se){return c(E&_|N&~_,b,E,V,j,se)}function h(b,E,N,_,V,j,se){return c(E^N^_,b,E,V,j,se)}function y(b,E,N,_,V,j,se){return c(N^(E|~_),b,E,V,j,se)}function m(b,E){var N=b[0],_=b[1],V=b[2],j=b[3];N=u(N,_,V,j,E[0],7,-680876936),j=u(j,N,_,V,E[1],12,-389564586),V=u(V,j,N,_,E[2],17,606105819),_=u(_,V,j,N,E[3],22,-1044525330),N=u(N,_,V,j,E[4],7,-176418897),j=u(j,N,_,V,E[5],12,1200080426),V=u(V,j,N,_,E[6],17,-1473231341),_=u(_,V,j,N,E[7],22,-45705983),N=u(N,_,V,j,E[8],7,1770035416),j=u(j,N,_,V,E[9],12,-1958414417),V=u(V,j,N,_,E[10],17,-42063),_=u(_,V,j,N,E[11],22,-1990404162),N=u(N,_,V,j,E[12],7,1804603682),j=u(j,N,_,V,E[13],12,-40341101),V=u(V,j,N,_,E[14],17,-1502002290),_=u(_,V,j,N,E[15],22,1236535329),N=d(N,_,V,j,E[1],5,-165796510),j=d(j,N,_,V,E[6],9,-1069501632),V=d(V,j,N,_,E[11],14,643717713),_=d(_,V,j,N,E[0],20,-373897302),N=d(N,_,V,j,E[5],5,-701558691),j=d(j,N,_,V,E[10],9,38016083),V=d(V,j,N,_,E[15],14,-660478335),_=d(_,V,j,N,E[4],20,-405537848),N=d(N,_,V,j,E[9],5,568446438),j=d(j,N,_,V,E[14],9,-1019803690),V=d(V,j,N,_,E[3],14,-187363961),_=d(_,V,j,N,E[8],20,1163531501),N=d(N,_,V,j,E[13],5,-1444681467),j=d(j,N,_,V,E[2],9,-51403784),V=d(V,j,N,_,E[7],14,1735328473),_=d(_,V,j,N,E[12],20,-1926607734),N=h(N,_,V,j,E[5],4,-378558),j=h(j,N,_,V,E[8],11,-2022574463),V=h(V,j,N,_,E[11],16,1839030562),_=h(_,V,j,N,E[14],23,-35309556),N=h(N,_,V,j,E[1],4,-1530992060),j=h(j,N,_,V,E[4],11,1272893353),V=h(V,j,N,_,E[7],16,-155497632),_=h(_,V,j,N,E[10],23,-1094730640),N=h(N,_,V,j,E[13],4,681279174),j=h(j,N,_,V,E[0],11,-358537222),V=h(V,j,N,_,E[3],16,-722521979),_=h(_,V,j,N,E[6],23,76029189),N=h(N,_,V,j,E[9],4,-640364487),j=h(j,N,_,V,E[12],11,-421815835),V=h(V,j,N,_,E[15],16,530742520),_=h(_,V,j,N,E[2],23,-995338651),N=y(N,_,V,j,E[0],6,-198630844),j=y(j,N,_,V,E[7],10,1126891415),V=y(V,j,N,_,E[14],15,-1416354905),_=y(_,V,j,N,E[5],21,-57434055),N=y(N,_,V,j,E[12],6,1700485571),j=y(j,N,_,V,E[3],10,-1894986606),V=y(V,j,N,_,E[10],15,-1051523),_=y(_,V,j,N,E[1],21,-2054922799),N=y(N,_,V,j,E[8],6,1873313359),j=y(j,N,_,V,E[15],10,-30611744),V=y(V,j,N,_,E[6],15,-1560198380),_=y(_,V,j,N,E[13],21,1309151649),N=y(N,_,V,j,E[4],6,-145523070),j=y(j,N,_,V,E[11],10,-1120210379),V=y(V,j,N,_,E[2],15,718787259),_=y(_,V,j,N,E[9],21,-343485551),b[0]=s(N,b[0]),b[1]=s(_,b[1]),b[2]=s(V,b[2]),b[3]=s(j,b[3])}function v(b){var E=[],N;for(N=0;N<64;N+=4)E[N>>2]=b.charCodeAt(N)+(b.charCodeAt(N+1)<<8)+(b.charCodeAt(N+2)<<16)+(b.charCodeAt(N+3)<<24);return E}function w(b){var E=[],N;for(N=0;N<64;N+=4)E[N>>2]=b[N]+(b[N+1]<<8)+(b[N+2]<<16)+(b[N+3]<<24);return E}function k(b){var E=b.length,N=[1732584193,-271733879,-1732584194,271733878],_,V,j,se,pe,Pe;for(_=64;_<=E;_+=64)m(N,v(b.substring(_-64,_)));for(b=b.substring(_-64),V=b.length,j=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0;_>2]|=b.charCodeAt(_)<<(_%4<<3);if(j[_>>2]|=128<<(_%4<<3),_>55)for(m(N,j),_=0;_<16;_+=1)j[_]=0;return se=E*8,se=se.toString(16).match(/(.*?)(.{0,8})$/),pe=parseInt(se[2],16),Pe=parseInt(se[1],16)||0,j[14]=pe,j[15]=Pe,m(N,j),N}function T(b){var E=b.length,N=[1732584193,-271733879,-1732584194,271733878],_,V,j,se,pe,Pe;for(_=64;_<=E;_+=64)m(N,w(b.subarray(_-64,_)));for(b=_-64>2]|=b[_]<<(_%4<<3);if(j[_>>2]|=128<<(_%4<<3),_>55)for(m(N,j),_=0;_<16;_+=1)j[_]=0;return se=E*8,se=se.toString(16).match(/(.*?)(.{0,8})$/),pe=parseInt(se[2],16),Pe=parseInt(se[1],16)||0,j[14]=pe,j[15]=Pe,m(N,j),N}function A(b){var E="",N;for(N=0;N<4;N+=1)E+=a[b>>N*8+4&15]+a[b>>N*8&15];return E}function S(b){var E;for(E=0;E>16)+(E>>16)+(N>>16);return _<<16|N&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&(function(){function b(E,N){return E=E|0||0,E<0?Math.max(E+N,0):Math.min(E,N)}ArrayBuffer.prototype.slice=function(E,N){var _=this.byteLength,V=b(E,_),j=_,se,pe,Pe,Ee;return N!==i&&(j=b(N,_)),V>j?new ArrayBuffer(0):(se=j-V,pe=new ArrayBuffer(se),Pe=new Uint8Array(pe),Ee=new Uint8Array(this,V,se),Pe.set(Ee),pe)}})();function R(b){return/[\u0080-\uFFFF]/.test(b)&&(b=unescape(encodeURIComponent(b))),b}function O(b,E){var N=b.length,_=new ArrayBuffer(N),V=new Uint8Array(_),j;for(j=0;j>2]|=E.charCodeAt(_)<<(_%4<<3);return this._finish(V,N),j=S(this._hash),b&&(j=H(j)),this.reset(),j},q.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},q.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},q.prototype.setState=function(b){return this._buff=b.buff,this._length=b.length,this._hash=b.hash,this},q.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},q.prototype._finish=function(b,E){var N=E,_,V,j;if(b[N>>2]|=128<<(N%4<<3),N>55)for(m(this._hash,b),N=0;N<16;N+=1)b[N]=0;_=this._length*8,_=_.toString(16).match(/(.*?)(.{0,8})$/),V=parseInt(_[2],16),j=parseInt(_[1],16)||0,b[14]=V,b[15]=j,m(this._hash,b)},q.hash=function(b,E){return q.hashBinary(R(b),E)},q.hashBinary=function(b,E){var N=k(b),_=S(N);return E?H(_):_},q.ArrayBuffer=function(){this.reset()},q.ArrayBuffer.prototype.append=function(b){var E=U(this._buff.buffer,b),N=E.length,_;for(this._length+=b.byteLength,_=64;_<=N;_+=64)m(this._hash,w(E.subarray(_-64,_)));return this._buff=_-64>2]|=E[V]<<(V%4<<3);return this._finish(_,N),j=S(this._hash),b&&(j=H(j)),this.reset(),j},q.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},q.ArrayBuffer.prototype.getState=function(){var b=q.prototype.getState.call(this);return b.buff=D(b.buff),b},q.ArrayBuffer.prototype.setState=function(b){return b.buff=O(b.buff,!0),q.prototype.setState.call(this,b)},q.ArrayBuffer.prototype.destroy=q.prototype.destroy,q.ArrayBuffer.prototype._finish=q.prototype._finish,q.ArrayBuffer.hash=function(b,E){var N=T(new Uint8Array(b)),_=S(N);return E?H(_):_},q})})(hf)),hf.exports}var QC=GC();const XC=qa(QC);class YC{md5(n,i,s){this.aborted=!1,this.progress=0;let a=0;const c=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,u=2097152,d=Math.ceil(n.size/u),h=new XC.ArrayBuffer,y=new FileReader;m(),y.onloadend=v=>{if(h.append(v.target.result),a++,this.progress=a/d,s&&typeof s=="function"&&s(this.progress),this.aborted){i("aborted");return}a=n.size?n.size:v+u;y.readAsArrayBuffer(c.call(n,v,w))}}abort(){this.aborted=!0}}function JC(t){const n=new YC;return new Promise(i=>{n.md5(t,(s,a)=>i(a))})}function ZC(t){return qr.get("/get_qiniu_upload_token",{file_key:t})}async function eF(t,n){let i=new FormData,s=await JC(t),a=t.name.split(".")[1],c=await ZC("效灵"+n+"/"+s+"."+a);i.append("token",c.up_token),i.append("upload_url",c.upload_url),i.append("imgPrefix",c.domain),i.append("key",c.file_key),i.append("file",t);let d=(await Ke.post(c.upload_url,i)).data;return d.key?`https://${c.domain}/${d.key}`:null}function tF(){const t=Mi(),[n,i]=Y.useState(!1),[s,a]=Y.useState(1),c=()=>{a(h=>Math.min(h+1,5))},u=async h=>{c();let y=await eF(h,"/analyze"),m=await OC({analys_image:y,analys_type:null});if(m.analysis_result.analyze_ret!="success"){Lr.error("请重新上传结构清晰的组织架构图"),a(v=>2);return}t.setAnalysis(m),c()},d=()=>{c()};return Y.useEffect(()=>{qC().then(()=>{i(!0),KC().then()})},[]),n?P.jsxs(P.Fragment,{children:[P.jsx(NC,{position:"top-center"}),P.jsxs("div",{className:"min-h-screen bg-[#0A0F24] text-white overflow-x-hidden relative",children:[P.jsx("div",{className:"fixed inset-0 pointer-events-none",children:P.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#7B61FF]/10 via-transparent to-[#00F0FF]/10"})}),P.jsxs("div",{className:"relative z-10",children:[s===1&&P.jsx(ok,{onNext:c}),s===2&&P.jsx(sk,{onSuccess:u}),s===3&&P.jsx(ak,{}),s===4&&P.jsx(VC,{onPayment:d}),s===5&&P.jsx(BC,{})]})]})]}):P.jsx(P.Fragment,{})}Kw.createRoot(document.getElementById("root")).render(P.jsx(tF,{})); +`,Ea=16,NC=({reverseOrder:t,position:n="top-center",toastOptions:i,gutter:s,children:a,toasterId:c,containerStyle:u,containerClassName:d})=>{let{toasts:h,handlers:y}=iC(i,c);return Y.createElement("div",{"data-rht-toaster":c||"",style:{position:"fixed",zIndex:9999,top:Ea,left:Ea,right:Ea,bottom:Ea,pointerEvents:"none",...u},className:d,onMouseEnter:y.startPause,onMouseLeave:y.endPause},h.map(m=>{let v=m.position||n,w=y.calculateOffset(m,{reverseOrder:t,gutter:s,defaultPosition:n}),k=CC(v,w);return Y.createElement(AC,{id:m.id,key:m.id,onHeightUpdate:y.updateHeight,className:m.visible?FC:"",style:k},m.type==="custom"?Ha(m.message,m):a?a(m):Y.createElement(_C,{toast:m,position:v}))}))},Lr=it;const Wo=Ke.create({baseURL:"https://ting.lifebanktech.com/api",timeout:1e3*300});Wo.interceptors.request.use(t=>{t.data instanceof FormData&&(t.headers["Content-Type"]="multipart/form-data");let n=Mi.getState().token;return n&&(t.headers.Authorization=`Bearer ${n}`),t});Wo.interceptors.response.use(t=>{const{code:n,data:i,message:s}=t.data;if(n===1)return i;if(n===0)return Lr.error(s),Promise.reject(new Error(s));n===401||n===403?gA():Lr.error(s)},t=>t.code==="ECONNABORTED"?(Lr.error("网速较慢,请耐心等待"),t.config.timeout=1e3*60*3,Wo(t.config)):t.message==="Network Error"?(Lr.error("网络中断"),Promise.reject()):(Lr.error("网络异常"),Promise.reject()));function RC(t,n={}){return Wo.post(t,n)}function bC(t,n={}){return Wo.get(t,{params:n})}const qr={get:bC,post:RC};function OC(t){let n=new FormData;return n.append("analys_image",t.analys_image),n.append("analys_type",t.analys_type),qr.post("/enterprise/analyze",n)}function MC(t){return qr.post("/enterprise/submit_contact_info",t)}function jC(t){return qr.post("/analysis_order/create",t)}var df={exports:{}},cg;function IC(){return cg||(cg=1,(function(t,n){df.exports=n(t)})(typeof window=="object"&&window,function(t,n){if(!t){console.warn("can't use weixin-js-sdk in server side");return}var i,s,a,c,u,d,h,y,m,v,w,k,T,A,S,R,O,D,U,H,q,b;if(t.jWeixin)return t.jWeixin;return i={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},s=(function(){var g,L={};for(g in i)L[i[g]]=g;return L})(),a=t.document,c=a.title,u=navigator.userAgent.toLowerCase(),k=navigator.platform.toLowerCase(),d=!(!k.match("mac")&&!k.match("win")),h=u.indexOf("wxdebugger")!=-1,y=u.indexOf("micromessenger")!=-1,m=u.indexOf("android")!=-1,v=u.indexOf("iphone")!=-1||u.indexOf("ipad")!=-1,w=(k=u.match(/micromessenger\/(\d+\.\d+\.\d+)/)||u.match(/micromessenger\/(\d+\.\d+)/))?k[1]:"",T={initStartTime:Ee(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},A={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:v?1:m?2:-1,clientVersion:w,url:encodeURIComponent(location.href)},S={},R={_completes:[]},O={state:0,data:{}},ce(function(){T.initEndTime=Ee()}),D=!1,U=[],H={config:function(g){pe("config",S=g);var L=S.check!==!1;ce(function(){if(L)E(i.config,{verifyJsApiList:se(S.jsApiList),verifyOpenTagList:se(S.openTagList)},(R._complete=function(ae){T.preVerifyEndTime=Ee(),O.state=1,O.data=ae},R.success=function(ae){A.isPreVerifyOk=0},R.fail=function(ae){R._fail?R._fail(ae):O.state=-1},(ie=R._completes).push(function(){Pe()}),R.complete=function(ae){for(var re=0,he=ie.length;re{cn.chooseWXPay({timestamp:t.timestamp,nonceStr:t.nonceStr,package:t.package,signType:t.signType,paySign:t.paySign,success:function(){n(!0)},cancel:function(i){console.log(i),n(!1)}})})}const fg=["某杭州电商公司使用后,设计部成本降低60%","某深圳外贸公司使用后,客服响应速度提升5倍","某上海科技公司使用后,年度成本节省120万"];function VC({onPayment:t}){const n=Mi(),[i,s]=Y.useState(599),[a,c]=Y.useState(0);let u=!0;const d=async()=>{if(!u)return;u=!1;let m=await jC({record_id:n.analysis.record_id});LC(m).then(v=>{u=!0,v?t():Lr.error("支付失败")})};Y.useEffect(()=>{const m=setInterval(()=>{s(v=>v>0?v-1:0)},1e3);return()=>clearInterval(m)},[]),Y.useEffect(()=>{const m=setInterval(()=>{c(v=>(v+1)%fg.length)},3e3);return()=>clearInterval(m)},[]);const h=Math.floor(i/60),y=i%60;return P.jsxs("div",{className:"min-h-screen flex flex-col items-center justify-center px-6 py-12 relative",children:[P.jsx("div",{className:"absolute inset-0 opacity-30 blur-xl pointer-events-none",children:P.jsx("div",{className:"absolute top-1/4 left-1/2 -translate-x-1/2 w-80 h-96 bg-gradient-to-br from-red-500 to-gray-800 rounded-2xl p-6",children:P.jsxs("div",{className:"space-y-4",children:[P.jsx("div",{className:"h-8 bg-white/20 rounded"}),P.jsx("div",{className:"h-32 bg-white/20 rounded"}),P.jsx("div",{className:"h-8 bg-white/20 rounded w-2/3"})]})})}),P.jsxs(ne.div,{className:"relative z-10 w-full max-w-md",initial:{opacity:0,y:30},animate:{opacity:1,y:0},children:[P.jsxs(ne.div,{className:"flex items-center justify-center gap-2 mb-6",initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.2},children:[P.jsx($y,{className:"w-8 h-8 text-[#00F0FF]"}),P.jsx("span",{className:"text-xl",children:"分析完成!"})]}),P.jsxs(ne.div,{className:"bg-white/5 backdrop-blur-md border border-[#7B61FF]/30 rounded-2xl p-6 mb-6 relative overflow-hidden",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.3},children:[P.jsxs("div",{className:"absolute inset-0 backdrop-blur-sm bg-white/5 z-10 flex flex-col items-center justify-center gap-4",children:[P.jsx(qy,{className:"w-16 h-16 text-[#00F0FF]/50"}),P.jsxs("div",{className:"text-center px-4",children:[P.jsxs(ne.div,{className:"mb-2",animate:{opacity:[.7,1,.7]},transition:{duration:2,repeat:1/0},children:[P.jsx("p",{className:"text-sm text-gray-400 mb-1",children:"预计年度节省"}),P.jsxs("div",{className:"text-3xl bg-gradient-to-r from-[#00F0FF] to-[#7B61FF] bg-clip-text text-transparent",children:["¥ ",n.analysis.analysis_result.analyze_data.annual_savings_cost]})]}),P.jsxs(ne.div,{animate:{opacity:[.7,1,.7]},transition:{duration:2,repeat:1/0,delay:.5},children:[P.jsx("p",{className:"text-sm text-gray-400 mb-1",children:"效率提升"}),P.jsxs("div",{className:"text-2xl text-[#00F0FF]",children:[n.analysis.analysis_result.analyze_data.efficiency_improvement," %"]})]})]})]}),P.jsxs("div",{className:"space-y-4 blur-sm select-none",children:[P.jsxs("div",{className:"text-center",children:[P.jsx("p",{className:"text-gray-400 text-sm mb-2",children:"经测算,您的企业每年由于员工不使用AI"}),P.jsx("p",{className:"text-2xl text-red-400 mb-1",children:"额外支出成本约为"}),P.jsxs("div",{className:"text-5xl bg-gradient-to-r from-red-400 to-orange-400 bg-clip-text text-transparent",children:["¥???",",","???"]})]}),P.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-gray-600 to-transparent"}),P.jsxs("div",{className:"text-center",children:[P.jsx("p",{className:"text-gray-400 text-sm mb-2",children:"优化后,预计每年可节省"}),P.jsxs("div",{className:"text-4xl bg-gradient-to-r from-[#00F0FF] to-[#7B61FF] bg-clip-text text-transparent",children:["¥???",",","???"]})]})]})]}),P.jsxs(ne.div,{className:"bg-gradient-to-br from-[#7B61FF]/20 to-[#00F0FF]/20 backdrop-blur-md border-2 border-[#00F0FF] rounded-2xl p-6 mb-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},children:[P.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[P.jsx(Od,{className:"w-6 h-6 text-[#00F0FF]"}),P.jsx("h3",{className:"text-xl",children:"解锁完整报告"})]}),P.jsx("div",{className:"space-y-3 mb-6",children:["各部门AI替代率精准评估","具体的降本金额明细","推荐的AI工具组合清单"].map((m,v)=>P.jsxs(ne.div,{className:"flex items-center gap-3 text-sm text-gray-300",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.6+v*.1},children:[P.jsx("div",{className:"w-5 h-5 bg-[#00F0FF]/20 rounded-full flex items-center justify-center flex-shrink-0",children:P.jsx(Uy,{className:"w-3 h-3 text-[#00F0FF]"})}),P.jsx("span",{children:m})]},v))}),P.jsxs("div",{className:"text-center mb-6",children:[P.jsxs("div",{className:"flex items-center justify-center gap-3 mb-2",children:[P.jsx("span",{className:"text-gray-500 line-through text-lg",children:"¥999"}),P.jsx("span",{className:"bg-red-500 text-white text-xs px-2 py-1 rounded",children:"限时特惠"})]}),P.jsxs("div",{className:"flex items-baseline justify-center gap-1",children:[P.jsx("span",{className:"text-4xl",children:"¥"}),P.jsx("span",{className:"text-6xl bg-gradient-to-r from-[#00F0FF] to-[#7B61FF] bg-clip-text text-transparent",children:"9.9"})]})]}),P.jsxs(ne.button,{className:"w-full py-4 bg-gradient-to-r from-[#7B61FF] to-[#00F0FF] rounded-xl relative overflow-hidden group",whileHover:{scale:1.02},whileTap:{scale:.98},onClick:d,children:[P.jsx(ne.div,{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/30 to-transparent",animate:{x:["-100%","200%"]},transition:{duration:2,repeat:1/0,repeatDelay:1}}),P.jsxs("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[P.jsx("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"currentColor",children:P.jsx("path",{d:"M8.5 2C6.57 2 5 3.57 5 5.5V6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-1v-.5C19 3.57 17.43 2 15.5 2h-7zM7 6V5.5C7 4.67 7.67 4 8.5 4h7c.83 0 1.5.67 1.5 1.5V6H7zm5.99 6c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})}),"微信支付 ¥9.9 解锁报告"]})]}),P.jsxs(ne.div,{className:"mt-4 text-center text-sm text-orange-400 flex items-center justify-center gap-2",animate:{opacity:[1,.5,1]},transition:{duration:1,repeat:1/0},children:[P.jsx($y,{className:"w-4 h-4"}),P.jsxs("span",{children:["优惠将在"," ",P.jsxs("span",{className:"text-lg",children:[String(h).padStart(2,"0"),":",String(y).padStart(2,"0")]})," ","后失效"]})]})]}),P.jsx(ne.div,{className:"bg-white/5 backdrop-blur-sm rounded-xl p-4 overflow-hidden",initial:{opacity:0},animate:{opacity:1},transition:{delay:.8},children:P.jsxs(ne.div,{className:"text-center text-sm text-gray-400 flex items-center justify-center gap-2",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},children:[P.jsx(Uy,{className:"w-4 h-4 text-green-400 flex-shrink-0"}),P.jsx("span",{children:fg[a]})]},a)}),P.jsxs(ne.div,{className:"mt-6 flex justify-center gap-6 text-xs text-gray-500",initial:{opacity:0},animate:{opacity:1},transition:{delay:1},children:[P.jsxs("div",{className:"flex items-center gap-1",children:[P.jsx(qy,{className:"w-3 h-3"}),P.jsx("span",{children:"安全支付"})]}),P.jsxs("div",{className:"flex items-center gap-1",children:[P.jsx(Yv,{className:"w-3 h-3"}),P.jsx("span",{children:"1000+企业选择"})]}),P.jsxs("div",{className:"flex items-center gap-1",children:[P.jsx(Xv,{className:"w-3 h-3"}),P.jsx("span",{children:"平均节省40%"})]})]})]})]})}function BC(){const t=Mi(),[n,i]=Y.useState({name:"",phone:"",company:""}),[s,a]=Y.useState(!1),[c,u]=Y.useState(!1),d=async h=>{h.preventDefault(),await MC({contact_name:n.name,contact_phone:n.phone,enterprise_name:n.company,record_id:t.analysis.record_id}),a(!0)};return s?P.jsxs("div",{className:"min-h-screen px-6 py-12 pb-32",children:[P.jsxs(ne.div,{className:"max-w-2xl mx-auto",initial:{opacity:0},animate:{opacity:1},children:[P.jsxs(ne.div,{className:"text-center mb-12",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},children:[P.jsx("h1",{className:"text-3xl mb-2",children:"AI降本增效诊断报告"}),P.jsxs("p",{className:"text-gray-400",children:["为 ",n.company||n.name," 定制"]})]}),P.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-8",children:[P.jsxs(ne.div,{className:"bg-gradient-to-br from-red-500/20 to-red-500/5 border border-red-500/30 rounded-xl p-6",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.2},children:[P.jsx("div",{className:"text-red-400 text-sm mb-2",children:"年度额外支出"}),P.jsxs("div",{className:"text-3xl",children:["¥",t.analysis.analysis_result.analyze_data.annual_original_cost]})]}),P.jsxs(ne.div,{className:"bg-gradient-to-br from-[#00F0FF]/20 to-[#00F0FF]/5 border border-[#00F0FF]/30 rounded-xl p-6",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.3},children:[P.jsx("div",{className:"text-[#00F0FF] text-sm mb-2",children:"预计年节省"}),P.jsxs("div",{className:"text-3xl",children:["¥",t.analysis.analysis_result.analyze_data.annual_savings_cost]})]})]}),P.jsxs(ne.div,{className:"bg-white/5 backdrop-blur-sm border border-gray-600 rounded-2xl p-6 mb-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},children:[P.jsxs("h3",{className:"text-xl mb-6 flex items-center gap-2",children:[P.jsx(Yv,{className:"w-6 h-6 text-[#00F0FF]"}),"各部门优化分析"]}),P.jsx("div",{className:"space-y-4",children:t.analysis.analysis_result.analyze_data.analyze_postion_detail.map((h,y)=>{let m=0;return h.replace_save_rate<30?m=0:h.replace_save_rate<70?m=1:m=2,P.jsxs(ne.div,{className:`p-4 rounded-xl border ${m==2?"bg-red-500/10 border-red-500/30":m==1?"bg-orange-500/10 border-orange-500/30":"bg-yellow-500/10 border-yellow-500/30"}`,initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.5+y*.1},children:[P.jsxs("div",{className:"flex items-center justify-between mb-3",children:[P.jsxs("div",{children:[P.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[P.jsx("span",{className:"font-medium",children:h.position}),m==2&&P.jsx("span",{className:"text-xs bg-red-500 text-white px-2 py-0.5 rounded",children:"急需优化"})]}),P.jsxs("div",{className:"text-sm text-gray-400",children:[h.original_number,"人 → ",h.replace_with_ai_number,"人 + AI"]})]}),P.jsxs("div",{className:"text-right",children:[P.jsxs("div",{className:`text-2xl ${m==2?"text-red-400":m==1?"text-orange-400":"text-yellow-400"}`,children:["-",h.replace_save_rate,"%"]}),P.jsx("div",{className:"text-xs text-gray-500",children:"成本降低"})]})]}),P.jsx("div",{className:"h-2 bg-gray-800 rounded-full overflow-hidden",children:P.jsx(ne.div,{className:`h-full ${m==2?"bg-red-400":m==1?"bg-orange-400":"bg-yellow-400"}`,initial:{width:0},animate:{width:`${h.replace_save_rate}%`},transition:{delay:.7+y*.1,duration:1}})})]},h.position)})})]}),P.jsxs(ne.div,{className:"bg-gradient-to-br from-[#7B61FF]/20 to-[#00F0FF]/20 backdrop-blur-sm border border-[#00F0FF]/30 rounded-2xl p-6 mb-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.9},children:[P.jsxs("h3",{className:"text-xl mb-4 flex items-center gap-2",children:[P.jsx(Va,{className:"w-6 h-6 text-[#00F0FF]"}),"推荐AI工具组合"]}),P.jsx("div",{className:"grid grid-cols-2 gap-3",children:["文案生成AI","设计辅助AI","智能客服系统","数据分析AI","自动化运营工具","会议记录AI"].map((h,y)=>P.jsx(ne.div,{className:"bg-white/5 border border-gray-600 rounded-lg px-4 py-3 text-sm text-center",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:1+y*.05},children:h},h))})]}),P.jsxs(ne.div,{className:"relative bg-gradient-to-br from-[#7B61FF] to-[#00F0FF] rounded-3xl p-8 text-center overflow-hidden",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1.2},children:[P.jsx(ne.div,{className:"absolute inset-0 opacity-20",animate:{backgroundPosition:["0% 0%","100% 100%"]},transition:{duration:20,repeat:1/0,repeatType:"reverse"},style:{backgroundImage:"radial-gradient(circle, white 1px, transparent 1px)",backgroundSize:"30px 30px"}}),P.jsxs("div",{className:"relative z-10",children:[P.jsxs(ne.div,{className:"flex items-center justify-center gap-2 mb-4",animate:{scale:[1,1.05,1]},transition:{duration:2,repeat:1/0},children:[P.jsx(Od,{className:"w-8 h-8 text-white"}),P.jsx("h3",{className:"text-2xl text-white",children:"知道问题了,不知道怎么落地?"})]}),P.jsxs("p",{className:"text-white/90 mb-6 text-lg",children:["专属AI顾问为您提供",P.jsx("br",{}),P.jsx("span",{className:"text-white",children:"行业定制版AI工具包 + 员工培训方案"})]}),P.jsxs(ne.button,{className:"w-full max-w-sm mx-auto py-5 bg-white text-[#7B61FF] rounded-2xl flex items-center justify-center gap-3 shadow-2xl",whileHover:{scale:1.05,boxShadow:"0 20px 40px rgba(0,0,0,0.3)"},whileTap:{scale:.95},onClick:()=>u(!0),children:[P.jsx(pc,{className:"w-6 h-6"}),P.jsx("span",{className:"text-lg",children:"立即咨询专属AI顾问"}),P.jsx(bT,{className:"w-6 h-6"})]}),P.jsxs(ne.div,{className:"mt-4 flex items-center justify-center gap-2 text-white/90",animate:{opacity:[.7,1,.7]},transition:{duration:2,repeat:1/0},children:[P.jsx(WT,{className:"w-5 h-5"}),P.jsx("span",{children:"限时赠送《2025企业AI工具白皮书》"})]})]})]})]}),P.jsxs(ne.button,{className:"fixed bottom-6 left-1/2 -translate-x-1/2 px-8 py-4 bg-gradient-to-r from-[#7B61FF] to-[#00F0FF] rounded-full shadow-2xl flex items-center justify-center gap-3 z-50 max-w-[90vw]",initial:{y:100,opacity:0},animate:{y:0,opacity:1},transition:{delay:1.5,type:"spring"},whileHover:{scale:1.05,y:-5},whileTap:{scale:.95},onClick:()=>u(!0),children:[P.jsx(pc,{className:"w-6 h-6 text-white"}),P.jsx("span",{className:"text-white whitespace-nowrap",children:"点击获取 1对1定制化AI落地方案"}),P.jsx(ne.div,{className:"absolute inset-0 rounded-full border-2 border-white",animate:{scale:[1,1.2,1],opacity:[.6,0,.6]},transition:{duration:2,repeat:1/0}}),P.jsx(ne.div,{className:"absolute inset-0 rounded-full bg-gradient-to-r from-[#7B61FF] to-[#00F0FF] blur-xl opacity-50",animate:{opacity:[.3,.6,.3]},transition:{duration:2,repeat:1/0}})]}),P.jsx(X2,{children:c&&P.jsxs(ne.div,{className:"fixed inset-0 z-50 flex items-center justify-center px-6",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[P.jsx(ne.div,{className:"absolute inset-0 bg-black/80 backdrop-blur-sm",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>u(!1)}),P.jsxs(ne.div,{className:"relative bg-gradient-to-br from-[#0A0F24] to-[#1a1f3a] border-2 border-[#00F0FF] rounded-3xl p-8 max-w-md w-full",initial:{scale:.8,y:50},animate:{scale:1,y:0},exit:{scale:.8,y:50},transition:{type:"spring"},children:[P.jsx("button",{className:"absolute top-4 right-4 text-gray-400 hover:text-white transition-colors",onClick:()=>u(!1),children:P.jsx(rk,{className:"w-6 h-6"})}),P.jsx(ne.div,{className:"flex justify-center mb-6",initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.2},children:P.jsx(ne.div,{className:"w-20 h-20 bg-gradient-to-br from-[#7B61FF] to-[#00F0FF] rounded-full flex items-center justify-center",animate:{boxShadow:["0 0 20px rgba(0, 240, 255, 0.5)","0 0 40px rgba(123, 97, 255, 0.8)","0 0 20px rgba(0, 240, 255, 0.5)"]},transition:{duration:2,repeat:1/0},children:P.jsx(pc,{className:"w-10 h-10 text-white"})})}),P.jsxs(ne.div,{className:"text-center mb-8",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:[P.jsx("h3",{className:"text-2xl mb-4",children:"添加专属AI顾问"}),P.jsx("p",{className:"text-gray-300 mb-6",children:"扫描下方二维码,即可获得:"}),P.jsx("div",{className:"space-y-3 mb-6 text-left",children:["1对1定制化AI落地方案","行业专属AI工具包推荐","全员AI技能培训指导","《2025企业AI工具白皮书》PDF"].map((h,y)=>P.jsxs(ne.div,{className:"flex items-center gap-3 text-sm text-gray-300",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.4+y*.1},children:[P.jsx("div",{className:"w-6 h-6 bg-[#00F0FF]/20 rounded-full flex items-center justify-center flex-shrink-0",children:P.jsx(Wy,{className:"w-4 h-4 text-[#00F0FF]"})}),P.jsx("span",{children:h})]},y))}),P.jsx(ne.div,{className:"bg-white rounded-2xl p-4 inline-block mb-4",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:.6},children:P.jsx("div",{className:"w-48 h-48 bg-gray-300 rounded-xl flex items-center justify-center text-gray-600 text-xs text-center px-4",children:P.jsx("img",{src:"https://keyang2.tuzuu.com/%E6%95%88%E7%81%B5/kf.jpg"})})}),P.jsxs(ne.p,{className:"text-sm text-gray-400",initial:{opacity:0},animate:{opacity:1},transition:{delay:.8},children:["顾问微信二维码,长按识别添加",P.jsx("br",{}),"添加后回复「",n.company||n.name,"」",P.jsx("br",{}),"立即获取专属方案"]})]})]})]})})]}):P.jsx("div",{className:"min-h-screen flex flex-col items-center justify-center px-6 py-12",children:P.jsxs(ne.div,{className:"w-full max-w-md",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[P.jsx(ne.div,{className:"flex justify-center mb-8",initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.2},children:P.jsx("div",{className:"w-20 h-20 bg-gradient-to-br from-[#7B61FF] to-[#00F0FF] rounded-full flex items-center justify-center",children:P.jsx(Wy,{className:"w-12 h-12 text-white"})})}),P.jsx(ne.h2,{className:"text-2xl text-center mb-2",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},children:"报告已生成!"}),P.jsx(ne.p,{className:"text-gray-400 text-center mb-8",initial:{opacity:0},animate:{opacity:1},transition:{delay:.4},children:"请输入接收人信息以存档"}),P.jsxs(ne.form,{className:"space-y-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},onSubmit:d,children:[P.jsxs("div",{children:[P.jsx("label",{className:"block text-sm text-gray-400 mb-2",children:"姓名 *"}),P.jsx("input",{type:"text",required:!0,className:"w-full px-4 py-3 bg-white/5 border border-gray-600 rounded-xl focus:border-[#00F0FF] focus:outline-none transition-colors",placeholder:"请输入您的姓名",value:n.name,onChange:h=>i({...n,name:h.target.value})})]}),P.jsxs("div",{children:[P.jsx("label",{className:"block text-sm text-gray-400 mb-2",children:"手机号 *"}),P.jsx("input",{type:"tel",required:!0,maxLength:11,pattern:"[0-9]{11}",className:"w-full px-4 py-3 bg-white/5 border border-gray-600 rounded-xl focus:border-[#00F0FF] focus:outline-none transition-colors",placeholder:"请输入手机号",value:n.phone,onChange:h=>i({...n,phone:h.target.value})})]}),P.jsxs("div",{children:[P.jsx("label",{className:"block text-sm text-gray-400 mb-2",children:"企业名称(选填)"}),P.jsx("input",{type:"text",className:"w-full px-4 py-3 bg-white/5 border border-gray-600 rounded-xl focus:border-[#00F0FF] focus:outline-none transition-colors",placeholder:"请输入企业名称",value:n.company,onChange:h=>i({...n,company:h.target.value})})]}),P.jsxs(ne.button,{type:"submit",className:"w-full py-4 bg-gradient-to-r from-[#7B61FF] to-[#00F0FF] rounded-xl flex items-center justify-center gap-2",whileHover:{scale:1.02},whileTap:{scale:.98},children:[P.jsx(UT,{className:"w-5 h-5"}),"查看报告"]})]})]})})}function zC(t){return qr.post("/login",t)}function UC(t){return qr.get("/get_jssdk",t)}function $C(){return qr.get("/get_share_config")}const WC=["snsapi_base","snsapi_userinfo"],HC="wxbc438492e3efab70";let Jf=window.location.href,pf=Jf.split("?")[0];function qC(){return new Promise(t=>{if(Mi.getState().token){t(!0);return}let i=Bo.parse(Jf.split("?")[1]);i.code?zC({wx_code:i.code,...i}).then(s=>{if(!s.accessToken){delete i.code,delete i.state,pf=pf+Bo.stringify(i),dg(pf);return}Mi.getState().setToken(s.accessToken),t(!0)}):dg(Jf)})}function dg(t){t=encodeURIComponent(t),window.location.href=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${HC}&redirect_uri=${t}&response_type=code&scope=${WC[1]}#wechat_redirect`}async function KC(){if(!(navigator.userAgent.toLowerCase().indexOf("micromessenger")!==-1))return;let n=Bo.parse(window.location.search.split("?")[1]);delete n.code;let i=await UC({url:window.location.href}),s=await $C();const a={title:s.share_title,desc:s.share_sub_title,link:window.location.href,imgUrl:"https://keyang2.tuzuu.com/%E6%95%88%E7%81%B5/logo.jpg"};cn.config({debug:!1,appId:i.jssdk.appId,timestamp:i.jssdk.timestamp,nonceStr:i.jssdk.nonceStr,signature:i.jssdk.signature,jsApiList:i.jssdk.jsApiList,openTagList:["wx-open-launch-weapp"]}),cn.ready(function(){cn.updateAppMessageShareData&&cn.updateAppMessageShareData({title:a.title,desc:a.desc,link:a.link,imgUrl:a.imgUrl,success:()=>{console.log("分享朋友成功")}}),cn.updateTimelineShareData&&cn.updateTimelineShareData({title:a.title,link:a.link,imgUrl:a.imgUrl,success:()=>{console.log("分享朋友圈")}}),cn.onMenuShareAppMessage&&cn.onMenuShareAppMessage({title:a.title,desc:a.desc,link:a.link,imgUrl:a.imgUrl,success:()=>{console.log("旧版本分享朋友成功")},cancel:()=>{}}),cn.onMenuShareTimeline&&cn.onMenuShareTimeline({title:a.title,link:a.link,imgUrl:a.imgUrl,success:()=>{console.log("旧版本分享朋友圈")},cancel:()=>{}})})}var hf={exports:{}},pg;function GC(){return pg||(pg=1,(function(t,n){(function(i){t.exports=i()})(function(i){var s=function(b,E){return b+E&4294967295},a=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function c(b,E,N,_,V,j){return E=s(s(E,b),s(_,j)),s(E<>>32-V,N)}function u(b,E,N,_,V,j,se){return c(E&N|~E&_,b,E,V,j,se)}function d(b,E,N,_,V,j,se){return c(E&_|N&~_,b,E,V,j,se)}function h(b,E,N,_,V,j,se){return c(E^N^_,b,E,V,j,se)}function y(b,E,N,_,V,j,se){return c(N^(E|~_),b,E,V,j,se)}function m(b,E){var N=b[0],_=b[1],V=b[2],j=b[3];N=u(N,_,V,j,E[0],7,-680876936),j=u(j,N,_,V,E[1],12,-389564586),V=u(V,j,N,_,E[2],17,606105819),_=u(_,V,j,N,E[3],22,-1044525330),N=u(N,_,V,j,E[4],7,-176418897),j=u(j,N,_,V,E[5],12,1200080426),V=u(V,j,N,_,E[6],17,-1473231341),_=u(_,V,j,N,E[7],22,-45705983),N=u(N,_,V,j,E[8],7,1770035416),j=u(j,N,_,V,E[9],12,-1958414417),V=u(V,j,N,_,E[10],17,-42063),_=u(_,V,j,N,E[11],22,-1990404162),N=u(N,_,V,j,E[12],7,1804603682),j=u(j,N,_,V,E[13],12,-40341101),V=u(V,j,N,_,E[14],17,-1502002290),_=u(_,V,j,N,E[15],22,1236535329),N=d(N,_,V,j,E[1],5,-165796510),j=d(j,N,_,V,E[6],9,-1069501632),V=d(V,j,N,_,E[11],14,643717713),_=d(_,V,j,N,E[0],20,-373897302),N=d(N,_,V,j,E[5],5,-701558691),j=d(j,N,_,V,E[10],9,38016083),V=d(V,j,N,_,E[15],14,-660478335),_=d(_,V,j,N,E[4],20,-405537848),N=d(N,_,V,j,E[9],5,568446438),j=d(j,N,_,V,E[14],9,-1019803690),V=d(V,j,N,_,E[3],14,-187363961),_=d(_,V,j,N,E[8],20,1163531501),N=d(N,_,V,j,E[13],5,-1444681467),j=d(j,N,_,V,E[2],9,-51403784),V=d(V,j,N,_,E[7],14,1735328473),_=d(_,V,j,N,E[12],20,-1926607734),N=h(N,_,V,j,E[5],4,-378558),j=h(j,N,_,V,E[8],11,-2022574463),V=h(V,j,N,_,E[11],16,1839030562),_=h(_,V,j,N,E[14],23,-35309556),N=h(N,_,V,j,E[1],4,-1530992060),j=h(j,N,_,V,E[4],11,1272893353),V=h(V,j,N,_,E[7],16,-155497632),_=h(_,V,j,N,E[10],23,-1094730640),N=h(N,_,V,j,E[13],4,681279174),j=h(j,N,_,V,E[0],11,-358537222),V=h(V,j,N,_,E[3],16,-722521979),_=h(_,V,j,N,E[6],23,76029189),N=h(N,_,V,j,E[9],4,-640364487),j=h(j,N,_,V,E[12],11,-421815835),V=h(V,j,N,_,E[15],16,530742520),_=h(_,V,j,N,E[2],23,-995338651),N=y(N,_,V,j,E[0],6,-198630844),j=y(j,N,_,V,E[7],10,1126891415),V=y(V,j,N,_,E[14],15,-1416354905),_=y(_,V,j,N,E[5],21,-57434055),N=y(N,_,V,j,E[12],6,1700485571),j=y(j,N,_,V,E[3],10,-1894986606),V=y(V,j,N,_,E[10],15,-1051523),_=y(_,V,j,N,E[1],21,-2054922799),N=y(N,_,V,j,E[8],6,1873313359),j=y(j,N,_,V,E[15],10,-30611744),V=y(V,j,N,_,E[6],15,-1560198380),_=y(_,V,j,N,E[13],21,1309151649),N=y(N,_,V,j,E[4],6,-145523070),j=y(j,N,_,V,E[11],10,-1120210379),V=y(V,j,N,_,E[2],15,718787259),_=y(_,V,j,N,E[9],21,-343485551),b[0]=s(N,b[0]),b[1]=s(_,b[1]),b[2]=s(V,b[2]),b[3]=s(j,b[3])}function v(b){var E=[],N;for(N=0;N<64;N+=4)E[N>>2]=b.charCodeAt(N)+(b.charCodeAt(N+1)<<8)+(b.charCodeAt(N+2)<<16)+(b.charCodeAt(N+3)<<24);return E}function w(b){var E=[],N;for(N=0;N<64;N+=4)E[N>>2]=b[N]+(b[N+1]<<8)+(b[N+2]<<16)+(b[N+3]<<24);return E}function k(b){var E=b.length,N=[1732584193,-271733879,-1732584194,271733878],_,V,j,se,pe,Pe;for(_=64;_<=E;_+=64)m(N,v(b.substring(_-64,_)));for(b=b.substring(_-64),V=b.length,j=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0;_>2]|=b.charCodeAt(_)<<(_%4<<3);if(j[_>>2]|=128<<(_%4<<3),_>55)for(m(N,j),_=0;_<16;_+=1)j[_]=0;return se=E*8,se=se.toString(16).match(/(.*?)(.{0,8})$/),pe=parseInt(se[2],16),Pe=parseInt(se[1],16)||0,j[14]=pe,j[15]=Pe,m(N,j),N}function T(b){var E=b.length,N=[1732584193,-271733879,-1732584194,271733878],_,V,j,se,pe,Pe;for(_=64;_<=E;_+=64)m(N,w(b.subarray(_-64,_)));for(b=_-64>2]|=b[_]<<(_%4<<3);if(j[_>>2]|=128<<(_%4<<3),_>55)for(m(N,j),_=0;_<16;_+=1)j[_]=0;return se=E*8,se=se.toString(16).match(/(.*?)(.{0,8})$/),pe=parseInt(se[2],16),Pe=parseInt(se[1],16)||0,j[14]=pe,j[15]=Pe,m(N,j),N}function A(b){var E="",N;for(N=0;N<4;N+=1)E+=a[b>>N*8+4&15]+a[b>>N*8&15];return E}function S(b){var E;for(E=0;E>16)+(E>>16)+(N>>16);return _<<16|N&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&(function(){function b(E,N){return E=E|0||0,E<0?Math.max(E+N,0):Math.min(E,N)}ArrayBuffer.prototype.slice=function(E,N){var _=this.byteLength,V=b(E,_),j=_,se,pe,Pe,Ee;return N!==i&&(j=b(N,_)),V>j?new ArrayBuffer(0):(se=j-V,pe=new ArrayBuffer(se),Pe=new Uint8Array(pe),Ee=new Uint8Array(this,V,se),Pe.set(Ee),pe)}})();function R(b){return/[\u0080-\uFFFF]/.test(b)&&(b=unescape(encodeURIComponent(b))),b}function O(b,E){var N=b.length,_=new ArrayBuffer(N),V=new Uint8Array(_),j;for(j=0;j>2]|=E.charCodeAt(_)<<(_%4<<3);return this._finish(V,N),j=S(this._hash),b&&(j=H(j)),this.reset(),j},q.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},q.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},q.prototype.setState=function(b){return this._buff=b.buff,this._length=b.length,this._hash=b.hash,this},q.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},q.prototype._finish=function(b,E){var N=E,_,V,j;if(b[N>>2]|=128<<(N%4<<3),N>55)for(m(this._hash,b),N=0;N<16;N+=1)b[N]=0;_=this._length*8,_=_.toString(16).match(/(.*?)(.{0,8})$/),V=parseInt(_[2],16),j=parseInt(_[1],16)||0,b[14]=V,b[15]=j,m(this._hash,b)},q.hash=function(b,E){return q.hashBinary(R(b),E)},q.hashBinary=function(b,E){var N=k(b),_=S(N);return E?H(_):_},q.ArrayBuffer=function(){this.reset()},q.ArrayBuffer.prototype.append=function(b){var E=U(this._buff.buffer,b),N=E.length,_;for(this._length+=b.byteLength,_=64;_<=N;_+=64)m(this._hash,w(E.subarray(_-64,_)));return this._buff=_-64>2]|=E[V]<<(V%4<<3);return this._finish(_,N),j=S(this._hash),b&&(j=H(j)),this.reset(),j},q.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},q.ArrayBuffer.prototype.getState=function(){var b=q.prototype.getState.call(this);return b.buff=D(b.buff),b},q.ArrayBuffer.prototype.setState=function(b){return b.buff=O(b.buff,!0),q.prototype.setState.call(this,b)},q.ArrayBuffer.prototype.destroy=q.prototype.destroy,q.ArrayBuffer.prototype._finish=q.prototype._finish,q.ArrayBuffer.hash=function(b,E){var N=T(new Uint8Array(b)),_=S(N);return E?H(_):_},q})})(hf)),hf.exports}var QC=GC();const XC=qa(QC);class YC{md5(n,i,s){this.aborted=!1,this.progress=0;let a=0;const c=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,u=2097152,d=Math.ceil(n.size/u),h=new XC.ArrayBuffer,y=new FileReader;m(),y.onloadend=v=>{if(h.append(v.target.result),a++,this.progress=a/d,s&&typeof s=="function"&&s(this.progress),this.aborted){i("aborted");return}a=n.size?n.size:v+u;y.readAsArrayBuffer(c.call(n,v,w))}}abort(){this.aborted=!0}}function JC(t){const n=new YC;return new Promise(i=>{n.md5(t,(s,a)=>i(a))})}function ZC(t){return qr.get("/get_qiniu_upload_token",{file_key:t})}async function eF(t,n){let i=new FormData,s=await JC(t),a=t.name.split(".")[1],c=await ZC("效灵"+n+"/"+s+"."+a);i.append("token",c.up_token),i.append("upload_url",c.upload_url),i.append("imgPrefix",c.domain),i.append("key",c.file_key),i.append("file",t);let d=(await Ke.post(c.upload_url,i)).data;return d.key?`https://${c.domain}/${d.key}`:null}function tF(){const t=Mi(),[n,i]=Y.useState(!1),[s,a]=Y.useState(1),c=()=>{a(h=>Math.min(h+1,5))},u=async h=>{try{c();let y=await eF(h,"/analyze"),m=await OC({analys_image:y,analys_type:null});if(m.analysis_result.analyze_ret!="success"){Lr.error("请重新上传结构清晰的组织架构图"),a(v=>v=2);return}t.setAnalysis(m),c()}catch{a((m=>2))}},d=()=>{c()};return Y.useEffect(()=>{qC().then(()=>{i(!0),KC().then()})},[]),n?P.jsxs(P.Fragment,{children:[P.jsx(NC,{position:"top-center"}),P.jsxs("div",{className:"min-h-screen bg-[#0A0F24] text-white overflow-x-hidden relative",children:[P.jsx("div",{className:"fixed inset-0 pointer-events-none",children:P.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[#7B61FF]/10 via-transparent to-[#00F0FF]/10"})}),P.jsxs("div",{className:"relative z-10",children:[s===1&&P.jsx(ok,{onNext:c}),s===2&&P.jsx(sk,{onSuccess:u}),s===3&&P.jsx(ak,{}),s===4&&P.jsx(VC,{onPayment:d}),s===5&&P.jsx(BC,{})]})]})]}):P.jsx(P.Fragment,{})}Kw.createRoot(document.getElementById("root")).render(P.jsx(tF,{})); diff --git a/index.html b/index.html index a4a045c..f3ce7a8 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ 效灵AI - +