import{_ as E}from"./C25mKOv1.js";import V from"./eNdXpQwH.js";import{_ as F}from"./DRwu5KN9.js";import{_ as J}from"./BOUV_QDM.js";import{_ as K}from"./BCuGH__6.js";import{ad as G,w as Q,c as B,a4 as e,$ as g,ae as D,af as W,u as i,ag as X,_ as z,ah as j,a2 as C,e as L,l as u,ai as Y,o as p,a5 as M,a6 as I,a8 as _}from"./DINJ4NqB.js";import{u as Z,a as ee,b as te,c as oe,L as ae}from"./Cw10yt2r.js";import{b as ne}from"./DM_MVJzS.js";import{u as se}from"./Is_7ybn1.js";import{u as re,b as ie,a as U}from"./CnTd85f_.js";import"./DXvG1q6K.js";import"./-tSWNs99.js";import"./BXzo-atK.js";const le={class:"min-h-screen bg-white font-sans text-slate-900 pb-32"},ce={class:"relative w-full h-[350px] sm:h-[400px] md:h-[450px] flex items-center justify-start bg-brand-deep pb-8 overflow-hidden"},de={class:"container mx-auto relative z-2 text-white text-left"},ue=["innerHTML"],pe=["innerHTML"],me={class:"mb-16"},he={class:"container mx-auto"},ge={class:"flex flex-col md:flex-row gap-8 lg:gap-12"},fe={class:"w-full md:w-64 lg:w-72 shrink-0"},_e={class:"md:sticky md:top-24 flex flex-col gap-6"},xe={class:"relative w-full group"},ve={class:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none"},be=["placeholder"],ye={class:"flex flex-row md:flex-col gap-1.5 overflow-x-auto md:overflow-visible hide-scrollbar bg-slate-50/50 p-3 rounded-[20px] border border-slate-100"},we={class:"flex items-center gap-3 flex-1"},ke={class:"text-left flex-1"},Te={class:"flex-1"},Be={key:0,class:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-4 sm:gap-5 lg:gap-6"},Le={class:"relative w-full aspect-square rounded-[14px] flex items-center justify-center overflow-hidden bg-slate-50/50 transition-colors duration-500 mb-4 p-3"},qe={class:"absolute left-2 top-2 px-3.5 py-1 bg-[#86c5e7]/10 text-brand-dark text-[11px] font-medium border border-[#86c5e7]/20 rounded-full tracking-wide"},$e={class:"px-1 pb-1 flex-1 flex flex-col"},De={class:"text-[11px] font-semibold text-slate-900 tracking-wider uppercase mb-1 opacity-90 group-hover:text-brand-dark transition-colors"},Ce={class:"text-[14px] sm:text-[15px] font-medium text-slate-600 leading-tight group-hover:text-[#0f3155] transition-colors duration-300 mb-3 line-clamp-2"},Ie={class:"mt-auto pt-3 flex items-center justify-between border-t border-slate-50"},He={class:"text-[10px] font-medium text-slate-500 tracking-tight group-hover:text-brand-dark transition-colors duration-500"},Ne={class:"w-6 h-6 rounded-full bg-slate-50 text-[#0f3155] flex items-center justify-center group-hover:bg-[#0f3155] group-hover:text-white transition-all duration-500 shadow-sm"},Ge={__name:"heating-cooling-solutions",async setup(Se){let x,H;const l=oe(),{locale:v,t:r}=Z(),P=u(()=>[{code:"recommend",name:r("product.feature"),icon:"ph:sparkle-duotone"},{code:"on_off_heat_pump",name:r("product.pcb.categories.onOff"),icon:"ph:power-duotone"},{code:"inverter_heat_pump",name:r("product.pcb.categories.inverter"),icon:"ph:waves-duotone"},{code:"chiller_controller",name:r("product.pcb.categories.chiller"),icon:"ph:snowflake-duotone"},{code:"ice_bath",name:r("product.pcb.categories.iceBath"),icon:"ph:drop-half-bottom-duotone"},{code:"inverter_driver",name:r("product.pcb.categories.inverterDriver"),icon:"ph:engine-duotone"},{code:"sauna_machine",name:r("product.pcb.categories.sauna"),icon:"ph:thermometer-hot-duotone"},{code:"expansion_board",name:r("product.pcb.categories.expansion"),icon:"ph:cpu-duotone"}]),s=L("recommend"),f=L([]),m=L({categoryId:null,query:null,pageNo:1,pageSize:999,isRecommend:0}),{data:N}=([x,H]=G(()=>se("/v1/category/read/tree-by-biz-type?bizType=0&code=pcb",{default:()=>[],transform:t=>t.data?.[0]||{}})),x=await x,H(),x),b=u(()=>{const t=N.value,n=P.value;if(!t?.id||!n.length)return[];const d={...n[0],id:t.id},y=(t.children||[]).map(w=>{const k=n.find(T=>T.code===w.code);return k?{...k,...w}:null}).filter(Boolean);return[d,...y]}),S=async()=>{const t=await $fetch(`${l.public.apiBase}/v1/product/read/page`,{method:"POST",headers:{"BT-Domain":l.public.btDomain,"BT-Language":v.value},body:{...m.value,isRecommend:null,categoryId:null}});s.value=null,f.value=t.data?.list||[]},a=ee();Q(()=>a.query.category,async t=>{const n=b.value?.find(h=>h.tdkUrl===t)||{};s.value=n?.code||"recommend",m.value={...m.value,categoryId:n?.id||N.value.id,isRecommend:s.value==="recommend"?1:null};const d=await $fetch(`${l.public.apiBase}/v1/product/read/page`,{method:"POST",headers:{"BT-Domain":l.public.btDomain,"BT-Language":v.value},body:{...m.value}});f.value=d.data?.list||[],O()},{immediate:!0});const c=L(null),q=u(()=>v.value==="zh-CN"?s.value&&s.value!=="recommend"?`${b.value?.find(t=>t.code===s.value)?.name||"采暖与制冷控制方案"}`:"采暖制冷":s.value&&s.value!=="recommend"?`${b.value?.find(t=>t.code===s.value)?.name||"Heating & Cooling Control Solutions"}`:"Heating & Cooling"),$=u(()=>U(a.path,l.public.siteUrl,a.path,typeof a.query.category=="string"&&a.query.category!=="recommend"?{category:a.query.category}:void 0)),R=u(()=>typeof a.query.category=="string"&&a.query.category!=="recommend");re({title:()=>c.value?.title,fallbackTitle:()=>q.value,description:()=>c.value?.description,fallbackDescription:()=>r("product.desc1"),keywords:()=>c.value?.keyword,ogImage:()=>c.value?.images?.[0]?.url||"",canonical:$,robots:()=>ie(!R.value,!0)}),te({script:[{type:"application/ld+json",innerHTML:u(()=>JSON.stringify({"@context":"https://schema.org","@type":"CollectionPage",name:c.value?.title||q.value,description:c.value?.description||r("product.desc1"),url:$.value}))},{type:"application/ld+json",innerHTML:u(()=>JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:r("layout.nav.home"),item:U("/")},{"@type":"ListItem",position:2,name:q.value,item:$.value}]}))}]});const O=async()=>{const t=a.query.category==="recommend"||!a.query.category?"/product/heating-cooling-solutions":a.query.category,n=a.query.category==="recommend"||!a.query.category?11:3,d=await $fetch(`${l.public.apiBase}/v1/seo-tdk/read/info-by-url`,{query:{url:t,bizType:n},headers:{"BT-Domain":l.public.btDomain,"BT-Language":v.value}});c.value=d.data||null};return(t,n)=>{const d=E,h=V,y=F,w=J,k=K,T=Y("slide-in");return p(),B("div",le,[e("section",ce,[g(ae,{material:"ocean"}),e("div",de,[D(e("h1",{class:"text-2xl sm:text-3xl md:text-4xl font-bold mb-3 text-white tracking-tight",innerHTML:t.$t("product.product1")},null,8,ue),[[T]]),D(e("p",{class:"text-xs sm:text-sm text-white/70 font-light max-w-xl leading-relaxed",innerHTML:t.$t("product.pcb.desc")},null,8,pe),[[T]])])]),n[1]||(n[1]=e("section",{class:"relative z-2 -mt-20 rounded-t-[60px] bg-white pt-10 pb-4"},null,-1)),g(d,{class:"mb-12"}),e("section",me,[e("div",he,[e("div",ge,[e("div",fe,[e("div",_e,[e("div",xe,[e("div",ve,[g(h,{name:"ic:baseline-search",mode:"svg",class:"h-5 w-5 text-slate-400 group-focus-within:text-[#0f3155] transition-colors"})]),D(e("input",{"onUpdate:modelValue":n[0]||(n[0]=o=>i(m).query=o),type:"text",class:"block w-full pl-11 pr-4 py-3.5 bg-slate-50 border border-slate-100 rounded-[16px] leading-5 text-slate-900 placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-[#0f3155]/10 focus:border-[#0f3155]/30 transition-all duration-500 text-[14px]",placeholder:t.$t("common.searchTip"),onKeyup:X(S,["enter"]),onBlur:S},null,40,be),[[W,i(m).query]])]),e("div",ye,[(p(!0),B(z,null,j(i(b),o=>(p(),C(y,{key:o.code,to:o.tdkUrl?`/product/heating-cooling-solutions?category=${o.tdkUrl}`:"/product/heating-cooling-solutions",class:I(["relative whitespace-nowrap md:whitespace-normal py-3 px-4 rounded-xl text-[14px] font-medium tracking-wide transition-all duration-300 flex items-center justify-between group text-left",[i(s)===o.code?"bg-white text-[#0f3155] shadow-[0_2px_12px_rgba(0,0,0,0.06)] border border-slate-100/50":"text-slate-500 hover:text-slate-900 hover:bg-white/60"]])},{default:M(()=>[e("div",we,[g(h,{name:o.icon,class:I(["w-4.5 h-4.5 shrink-0",i(s)===o.code?"opacity-100 text-[#0f3155]":"opacity-50 group-hover:opacity-80"])},null,8,["name","class"]),e("span",ke,_(o.name),1)]),e("div",{class:I(["w-1.5 h-1.5 shrink-0 rounded-full bg-[#0f3155] transition-opacity duration-300 hidden md:block",i(s)===o.code?"opacity-100":"opacity-0"])},null,2)]),_:2},1032,["to","class"]))),128))])])]),e("div",Te,[i(f)&&i(f).length>0?(p(),B("div",Be,[(p(!0),B(z,null,j(i(f),(o,A)=>(p(),C(y,{key:A,to:i(ne)(o.tdkUrl,o.mode===2),class:"group p-3 sm:p-4 rounded-[20px] bg-white border border-slate-100 shadow-[rgba(15,23,42,0.02)_0px_8px_24px] hover:shadow-[rgba(15,49,85,0.08)_0px_24px_60px] transition-all duration-700 hover:-translate-y-1 flex flex-col h-full"},{default:M(()=>[e("div",Le,[e("div",qe,_(o.categoryName),1),g(w,{src:o.imageUrl,alt:o.imageAlt||o.name,class:"relative z-10 w-full h-full object-contain mix-blend-multiply transform transition-all duration-700 ease-[var(--ease-expo)] group-hover:scale-105",format:"webp",loading:"lazy"},null,8,["src","alt"])]),e("div",$e,[e("div",De,_(o.modelNo||t.$t("common.series")),1),e("h3",Ce,_(o.name||"--"),1),e("div",Ie,[e("span",He,_(t.$t("common.viewDetails")),1),e("div",Ne,[g(h,{name:"heroicons:arrow-right",class:"w-3 h-3"})])])])]),_:2},1032,["to"]))),128))])):(p(),C(k,{key:1}))])])])])])}}};export{Ge as default};
