1import{_ as j,f as D,g as L,H as U,i as I,u as z,c as d,a as e,t as s,b as _,w as b,n as C,q as O,d as l,z as F,P as p,Q as h,W as H,F as W,s as G,v as $,C as v,e as Q,B as g,M as Y,o as r,G as J,D as K}from"./CF_Ykrcp.js";const X={class:"download-center-page"},Z={class:"xc_banner download-banner"},x=["alt"],ee={class:"intro"},oe={class:"wrap"},te={class:"info"},se={class:"con fz46"},ne={class:"content"},ae={class:"wrap fix"},le={class:"crumbs r"},de={class:"download-section"},re={class:"wrap"},ie={class:"download-card"},ce={key:0,class:"form-container"},ue={class:"card-header"},me={class:"card-title"},pe={class:"card-subtitle"},fe={class:"notice-box"},he={class:"notice-text"},ve={class:"form-grid"},we={class:"form-group required"},_e={class:"form-label"},be=["placeholder"],Ce={class:"form-group required"},ge={class:"form-label"},ye=["placeholder"],$e={class:"form-group"},ke={class:"form-label"},Ae={class:"opt"},Se=["placeholder"],Ve={class:"form-group"},qe={class:"form-label"},Pe={class:"opt"},Be={value:""},Re=["value"],Ee={class:"form-group full-width"},Me={class:"form-label"},Ne={class:"opt"},Te=["placeholder"],je={class:"form-group full-width"},De={class:"form-label"},Le={class:"opt"},Ue=["placeholder"],Ie={key:0,class:"form-error-msg"},ze={class:"submit-btn-wrap"},Oe=["disabled"],Fe={key:0,class:"loading-spinner"},He={key:1,class:"iconfont"},We={key:1,class:"success-container"},Ge={class:"success-title"},Qe={class:"success-desc"},Ye={class:"success-meta"},Je={class:"meta-item"},Ke={class:"meta-label"},Xe={class:"meta-val"},Ze={class:"success-actions"},xe={__name:"download-center",setup(eo){const w=D(),{locale:oo,t:i}=L(),A=U(),{findChannelByPath:k,sid:S}=I(),{siteRequest:V}=K(S),q=v(()=>A.path.replace(/^\/(zh|en|ja)(?=\/)/,"")||"/news/download-center"),P=v(()=>k(q.value)||k("/news/download-center")),B=v(()=>P.value?.id),R=v(()=>[i("downloadCenter.focusAreas.dieCasting")||"å鏿º",i("downloadCenter.focusAreas.injection")||"æ³¨å¡æº",i("downloadCenter.focusAreas.cnc")||"æ°æ§å å·¥ä¸å¿",i("downloadCenter.focusAreas.robot")||"æºå¨äººèªå¨å"]),n=Y({name:"",phone:"",email:"",area:"",province:"",message:""}),c=g(!1),y=g(!1),u=g(""),m=g(""),E=async()=>{if(m.value)return m.value;try{const o=await $fetch("/client-ip");m.value=o?.ip||""}catch{try{const o=await $fetch("https://api.ipify.org?format=json");m.value=o?.ip||""}catch{m.value=""}}return m.value},M=async()=>{if(c.value)return;if(u.value="",!n.name||!n.email){u.value=i("downloadCenter.form.requiredError")||"请填åå¿
填项ç®ï¼å§ååé®ç®±ï¼";return}c.value=!0,await E();const o={name:n.name,tel:n.phone,email:n.email,interestArea:n.area,province:n.province,content:n.message};try{const t=await V("/api/message/download",{method:"POST",body:o});if(!(t&&(t.code===200||t.code===0||t.success)))throw new Error(t?.message||"Submit failed");y.value=!0,J(()=>{const a=document.querySelector(".download-card");if(a){const T=a.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:Math.max(0,T),behavior:"smooth"})}})}catch(t){console.error("submit download form failed:",t),u.value=i("downloadCenter.form.submitError")||"æäº¤å¤±è´¥ï¼è¯·ç¨åéè¯"}finally{c.value=!1}},N=()=>{y.value=!1,n.name="",n.phone="",n.email="",n.area="",n.province="",n.message="",u.value=""};return z({title:v(()=>i("downloadCenter.metaTitle")||"ä¸è½½ä¸å¿ - åå²ç§æ"),bodyAttrs:{type:"channel",id:String(B.value||"419")}}),(o,t)=>{const f=Q;return r(),d("div",X,[e("div",Z,[e("img",{src:"https://sin.lk.company/lk-world/upload/images/2024/07/24/74daad18e833411685d7ac0c432537cf.jpg",alt:o.$t("downloadCenter.bannerAlt")||"ä¸è½½ä¸å¿"},null,8,x),e("div",ee,[e("div",oe,[e("div",te,[t[6]||(t[6]=e("div",{class:"tit fz18"},"DOWNLOAD CENTER",-1)),e("div",se,s(o.$t("downloadCenter.title")||"ä¸è½½ä¸å¿"),1)])])]),e("div",ne,[e("div",ae,[e("div",le,[_(f,{to:C(w)("/"),class:"home"},{default:b(()=>[l(s(o.$t("nav.home")||"é¦é¡µ"),1)]),_:1},8,["to"]),t[7]||(t[7]=e("em",null,[e("i",{class:"iconfont"},"î¾")],-1)),_(f,{to:C(w)("/news/company-consulting")},{default:b(()=>[l(s(o.$t("nav.news")||"åªä½ä¸å¿"),1)]),_:1},8,["to"]),t[8]||(t[8]=e("em",null,[e("i",{class:"iconfont"},"î¾")],-1)),e("h1",null,[_(f,{to:C(w)("/news/download-center")},{default:b(()=>[l(s(o.$t("downloadCenter.title")||"ä¸è½½ä¸å¿"),1)]),_:1}
1,8,["to"])])])])])]),e("section",de,[e("div",re,[e("div",ie,[y.value?(r(),d("div",We,[t[14]||(t[14]=e("div",{class:"success-icon-badge"},[e("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5",width:"48",height:"48"},[e("path",{d:"M20 6L9 17l-5-5","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e("h2",Ge,s(o.$t("downloadCenter.success.title")||"æäº¤æåï¼"),1),e("p",Qe,s(o.$t("downloadCenter.success.desc")||"æ¨çèµæä¸è½½è¯·æ±å·²æåæäº¤ï¼æä»¬çå·¥ä½äººåæ£å¨å®¡æ ¸æ¨çéæ±ï¼ç¸å
³èµæå¨å®¡æ ¸éè¿åå°ç¬¬ä¸æ¶é´åéè³æ¨çé®ç®±ï¼è¯·æ³¨ææ¥æ¶é®ä»¶ã"),1),e("div",Ye,[e("div",Je,[e("span",Ke,s(o.$t("downloadCenter.success.recipientEmail")||"æ¥æ¶é®ç®±ï¼"),1),e("span",Xe,s(n.email),1)])]),e("div",Ze,[_(f,{to:C(w)("/"),class:"action-btn primary-btn"},{default:b(()=>[l(s(o.$t("downloadCenter.success.backHome")||"è¿åé¦é¡µ"),1)]),_:1},8,["to"]),e("button",{type:"button",onClick:N,class:"action-btn secondary-btn"},s(o.$t("downloadCenter.success.submitAnother")||"éæ°æäº¤"),1)])])):(r(),d("div",ce,[e("div",ue,[t[9]||(t[9]=e("div",{class:"icon-badge"},[e("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",width:"28",height:"28"},[e("path",{d:"M12 15V3m0 12l-4-4m4 4l4-4M2 17l.621 2.485A2 2 0 004.561 21h14.878a2 2 0 001.94-1.515L22 17","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e("h2",me,s(o.$t("downloadCenter.form.title")||"èµæä¸è½½ç³è¯·"),1),e("p",pe,s(o.$t("downloadCenter.form.subtitle")||"请填å䏿¹ä¿¡æ¯ï¼å®¡æ ¸éè¿åæä»¬å°æç¸å
³èµæåéè³æ¨çé®ç®±"),1)]),e("div",fe,[t[10]||(t[10]=O('<div class="notice-icon" data-v-97bef571><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="20" height="20" data-v-97bef571><circle cx="12" cy="12" r="10" data-v-97bef571></circle><line x1="12" y1="16" x2="12" y2="12" data-v-97bef571></line><line x1="12" y1="8" x2="12.01" y2="8" data-v-97bef571></line></svg></div>',1)),e("div",he,[e("strong",null,s(o.$t("downloadCenter.noticeTitle")||"æå¡è¯´æï¼"),1),l(" "+s(o.$t("downloadCenter.noticeContent")||"å¦éè·åç¸å
³äº§åèµææææ¯ææ¡£ï¼è¯·å¡«åæ¨çå§å䏿¥æ¶é®ç®±ï¼å¹¶å¯ç®è¦è¯´ææ¨æ³äºè§£çèµæå
容ãæä»¬çå·¥ä½äººåå¨å®æå®¡æ ¸åï¼ä¼å°ç¸å
³èµæåéè³æ¨ççµåé®ç®±ãæè°¢æ¨çæ¯æä¸é
åï¼"),1)])]),e("form",{onSubmit:F(M,["prevent"]),class:"download-form"},[e("div",ve,[e("div",we,[e("label",_e,[l(s(o.$t("downloadCenter.form.name")||"å§å")+" ",1),t[11]||(t[11]=e("span",{class:"req"},"*",-1))]),p(e("input",{"onUpdate:modelValue":t[0]||(t[0]=a=>n.name=a),type:"text",class:"form-input",placeholder:o.$t("downloadCenter.form.namePlaceholder")||"请è¾å
¥æ¨çå§å",required:""},null,8,be),[[h,n.name,void 0,{trim:!0}]])]),e("div",Ce,[e("label",ge,[l(s(o.$t("downloadCenter.form.email")||"çµåé®ç®±")+" ",1),t[12]||(t[12]=e("span",{class:"req"},"*",-1))]),p(e("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>n.email=a),type:"email",class:"form-input",placeholder:o.$t("downloadCenter.form.emailPlaceholder")||"请è¾å
¥æ¨ççµåé®ç®±",required:""},null,8,ye),[[h,n.email,void 0,{trim:!0}]])]),e("div",$e,[e("label",ke,[l(s(o.$t("downloadCenter.form.phone")||"èç³»çµè¯")+" ",1),e("span",Ae,"("+s(o.$t("downloadCenter.form.optional")||"éå¡«")+")",1)]),p(e("input",{"onUpdate:modelValue":t[2]||(t[2]=a=>n.phone=a),type:"tel",class:"form-input",placeholder:o.$t("downloadCenter.form.phonePlaceholder")||"请è¾å
¥èç³»çµè¯"},null,8,Se),[[h,n.phone,void 0,{trim:!0}]])]),e("div",Ve,[e("label",qe,[l(s(o.$t("downloadCenter.form.focusArea")||"å
³æ³¨é¢å / æå设å¤")+" ",1),e("span",Pe,"("+s(o.$t("downloadCenter.form.optional")||"éå¡«")+")",1)]),p(e("select",{"onUpdate:modelValue":t[3]||(t[3]=a=>n.area=a),class:"form-select"},[e("option",Be,s(o.$t("downloadCenter.form.focusAreaSelect")||"è¯·éæ©å
³æ³¨é¢å"),1),(r(!0),d(W,null,G(R.value,a=>(r(),d("option",{key:a,value:a},s(a),9,Re))),128))],512),[[H,n.area]])]),e("div",Ee,[e("label",Me,[l(s(o.$t("downloadCenter.form.province")||"ç份 / æå¨å°åº")+" ",1),e("span",Ne,"("+s(o.$t("downloadCenter.form.o
1ptional")||"éå¡«")+")",1)]),p(e("input",{"onUpdate:modelValue":t[4]||(t[4]=a=>n.province=a),type:"text",class:"form-input",placeholder:o.$t("downloadCenter.form.provincePlaceholder")||"ä¾å¦ï¼å¹¿ä¸çæ·±å³å¸ æ æµ·å¤å°åº"},null,8,Te),[[h,n.province,void 0,{trim:!0}]])]),e("div",je,[e("label",De,[l(s(o.$t("downloadCenter.form.message")||"欲ä¸è½½èµæ / éæ±çè¨")+" ",1),e("span",Le,"("+s(o.$t("downloadCenter.form.optional")||"éå¡«")+")",1)]),p(e("textarea",{"onUpdate:modelValue":t[5]||(t[5]=a=>n.message=a),rows:"3",class:"form-textarea",placeholder:o.$t("downloadCenter.form.messagePlaceholder")||"è¯·è¯´ææ¨å¸æäºè§£æä¸è½½çå
·ä½äº§ååå·ãèµæç±»åï¼å¦ï¼è®¾å¤åæ°æåãåºç¨æ¡ä¾çï¼..."},null,8,Ue),[[h,n.message,void 0,{trim:!0}]])])]),u.value?(r(),d("div",Ie,[t[13]||(t[13]=e("i",{class:"iconfont"},"î°",-1)),l(" "+s(u.value),1)])):$("",!0),e("div",ze,[e("button",{type:"submit",class:"submit-btn",disabled:c.value},[c.value?(r(),d("span",Fe)):$("",!0),e("span",null,s(c.value?o.$t("downloadCenter.form.submitting")||"æäº¤ä¸...":o.$t("downloadCenter.form.submit")||"æäº¤ç³è¯·"),1),c.value?$("",!0):(r(),d("i",He,"î¾"))],8,Oe)])],32)]))])])])])}}},so=j(xe,[["__scopeId","data-v-97bef571"]]);export{so 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.