const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BVKzKRqG.js","./BQXEuHbF.js","./DyOeHwBK.js","./swiper-vue.DCASaf05.css","./entry.BpNdWwYP.css","./1CCGBA58.js","./C3EHcdcO.js"])))=>i.map(i=>d[i]);
import{_ as B,u as rt,n as Ft,c as Dt,b as nt,a as j}from"./BQXEuHbF.js";import{_ as Ot}from"./BdqUZX2a.js";import{_ as J}from"./DEflvCwX.js";import{_ as zt}from"./DABmpW0s.js";import{d as r,J as n,L as a,W as o,a8 as it,a5 as D,u as c,G as g,Q as $,Y as N,X as C,F as b,Z as T,_ as q,B as dt,o as Mt,ad as G,a3 as K,v as ut,ae as qt,j as Et,m as ct,r as U,$ as Y,M as Rt}from"./DyOeHwBK.js";import{_ as Ht}from"./KyeD2qDO.js";import{_ as _t}from"./DC9bQH-8.js";import{_ as ft,a as gt}from"./DbaaqWU-.js";import{_ as At}from"./CK2nMDJl.js";import{_ as Wt}from"./DQIs0yvn.js";import{P as jt,s as Ut,a as Yt,b as Gt,c as Jt,d as Kt}from"./BTMQ5blJ.js";import{q as Qt}from"./B9yjELnZ.js";import{a as lt}from"./uNcOe1i8.js";import"./BloNkLAc.js";import"./C_O29hT3.js";import"./JAUZZBS7.js";import"./CfIkHwNY.js";import"./Bz5fuMXx.js";import"./BhQ05W43.js";import"./r6KiFOG3.js";const Xt={class:"content-main",id:"content-main"},Zt={class:"tab-box"},te=["onClick"],ee={__name:"index",props:["active","tabsList","form"],emits:["toggleTab"],setup(s,{emit:p}){const{t:u}=rt(),y=p,x=async d=>{await Ft("/productCenter"),y("toggleTab",d)},f=r(null),v=()=>{let d=0;const l=document.querySelectorAll(".tab_item");return l.forEach(m=>{const i=window.getComputedStyle(m),L=parseFloat(i.getPropertyValue("padding-left"))||0,k=parseFloat(i.getPropertyValue("padding-right"))||0,e=parseFloat(i.getPropertyValue("border-left-width"))||0,V=parseFloat(i.getPropertyValue("border-right-width"))||0,E=m.offsetWidth;d+=E+L+k+e+V}),d+=(l.length-1)*63,d},_=r(0),h=()=>{const d=f.value.offsetWidth-v();if(d<0){if(_.value!==0)return _.value=0;_.value=d}};return(d,l)=>{const w=J;return a(),n("section",Xt,[o("div",Zt,[o("ul",{class:"tabs flex",ref_key:"tabsRef",ref:f},[o("li",{class:D(["tab_item",{tab_active:s.active==="50010"}]),style:it({transform:`translate(${c(_)}px)`})},[g(w,{class:"tab_link flex-center-y",to:"productCenterAll"},{default:$(()=>[N(C(c(u)("Center.all"))+" ",1),l[0]||(l[0]=o("span",{class:"tab_item_line"},null,-1))]),_:1})],6),(a(!0),n(b,null,T(s.tabsList,m=>(a(),n("li",{class:D(["tab_item",{tab_active:m.id===s.form.classifyOneId}]),style:it({transform:`translate(${c(_)}px)`}),key:m.id,onClick:i=>x(m)},[N(C(m.classifyName)+" ",1),l[1]||(l[1]=o("span",{class:"tab_item_line"},null,-1))],14,te))),128))],512),o("img",{class:"tab_next",src:zt,alt:"next-button",onClick:h})])])}}},oe=B(ee,[["__scopeId","data-v-1cc9da86"]]),se={key:0,class:"filtrate"},ae={class:"line_name"},ne=["onClick"],ie={__name:"index",props:["filtrateList","form"],emits:["toggleFiltrate"],setup(s,{emit:p}){const u=p,y=(x,f,v)=>{u("toggleFiltrate",x,f,v)};return(x,f)=>s.filtrateList.length?(a(),n("div",se,[(a(!0),n(b,null,T(s.filtrateList,(v,_)=>(a(),n("div",{class:"filtrate_line flex-center-y",key:v.id},[o("h3",ae,C(v.specsName),1),(a(!0),n(b,null,T(v.childrenList,h=>(a(),n("div",{class:D(["line_item flex-center",{active:s.form.specificationIdList[_]&&h.id===s.form.specificationIdList[_].specificationTwoId}]),key:h.id,onClick:d=>y(_,v.id,h.id)},C(h.specsValue),11,ne))),128))]))),128))])):q("",!0)}},ce=B(ie,[["__scopeId","data-v-130b7722"]]),le={class:"productPagingList"},re={class:"flex-between"},de={class:"ProductCategory"},ue={class:"Product_name"},_e={class:"Category"},fe=["onClick"],ge={key:0,class:"Category_item_icon",src:ft,alt:"Category"},me={key:1,class:"Category_item_icon",src:gt,alt:"Category"},pe={class:"product_box"},ye={key:0,class:"list"},ve={class:"item_name"},he={class:"flex-col flex-center-y"},we={class:"item_info"},Ce=["innerHTML"],xe=["src","alt"],Ie={class:"toDetail flex-center"},Le={key:1,class:"paging1 flex-center"},be={class:"footer"},Te=["innerHTML"],Pe={__name:"index",props:["name","ProductCategory","productList","height","width","active","form","total","footerInfo"],emits:["toggleCategory","nextPage","previousPage","toggleCurrentPage","hideBox"],setup(s,{emit:p}){const u=p,y=l=>{u("toggleCategory",l)},x=()=>{u("previousPage")},f=()=>{u("nextPage")},v=l=>{u("toggleCurrentPage",l)},_=l=>l&&l.length>150?l.substring(0,150)+"...":l,h=r(!0),d=()=>{h.value=!1,ut(()=>{h.value=!0})};return dt(()=>{window.addEventListener("resize",d)}),Mt(()=>{window.removeEventListener("resize",d)}),(l,w)=>{const m=J,i=Ht,L=_t,k=G("reload-on-error");return a(),n("div",le,[o("div",re,[o("div",de,[w[0]||(w[0]=o("div",{class:"block"},null,-1)),o("h2",ue,C(s.name),1),o("ul",_e,[(a(!0),n(b,null,T(s.ProductCategory.classifyChildrenList,e=>(a(),n("li",{class:D(["Category_item flex-center-y",{active:e.classifyId===s.form.classifyTwoId}]),key:e.id,onClick:V=>y(e.classifyId)},[e.id===s.form.classifyTwoId?(a(),n("img",ge)):(a(),n("img",me)),N(" "+C(e.classifyName),1)],10,fe))),128))])]),o("div",pe,[c(h)?(a(),n("ul",ye,[(a(!0),n(b,null,T(s.productList,e=>(a(),n("li",{class:"item",key:e.id},[g(m,{target:"_blank",class:"tz-btn",to:"/productDetail/"+e.id,style:{"text-decoration":"none",width:"100%",height:"100%"}},{default:$(()=>[g(i,{content:e.name},{default:$(()=>[o("h3",ve,[g(m,{target:"_blank",to:"/productDetail/"+e.id,class:"text_one",style:{width:"100%"}},{default:$(()=>[N(C(e.name),1)]),_:2},1032,["to"])])]),_:2},1032,["content"]),o("div",he,[o("div",we,[g(i,{content:e.shortMessage},{default:$(()=>[o("p",{class:"item_info_p",innerHTML:_(e.shortMessage)},null,8,Ce)]),_:2},1032,["content"])]),K(o("img",{class:"productimage",src:e.mainImage,alt:e.name},null,8,xe),[[k,e.mainImage]])]),o("div",Ie,C(l.$t("Center.Viewdetail")),1)]),_:2},1032,["to"])]))),128))])):q("",!0),s.total?(a(),n("div",Le,[g(L,{total:s.total,currentNum:s.form.pageNumber,pageSize:s.form.pageSize,onPreviousPage:x,onNextPage:f,onToggleCurrentPage:v},null,8,["total","currentNum","pageSize"])])):q("",!0)])]),o("div",be,[o("div",{innerHTML:s.footerInfo,class:"ql-editor"},null,8,Te)])])}}},$e=B(Pe,[["__scopeId","data-v-264a5c15"]]),ke={class:"filtrate"},Ne={class:"filtrate_line_name"},Se=["onUpdate:modelValue"],Be=["value"],Ve={__name:"FiltrateH5",props:["filtrateList","form"],setup(s){return(p,u)=>(a(),n("div",ke,[(a(!0),n(b,null,T(s.filtrateList,(y,x)=>(a(),n("div",{class:"filtrate_line flex-center-y",key:y.name},[o("div",Ne,C(y.specsName),1),K(o("select",{class:"select-box","onUpdate:modelValue":f=>s.form.specificationIdList[x].specificationTwoId=f},[(a(!0),n(b,null,T(y.childrenList,f=>(a(),n("option",{value:f.id,key:f.id,class:"options-ipt"},C(f.specsValue),9,Be))),128))],8,Se),[[qt,s.form.specificationIdList[x].specificationTwoId]])]))),128))]))}},Fe=B(Ve,[["__scopeId","data-v-3330dad7"]]),De={class:"productPagingList"},Oe={class:"ProductCategory"},ze={class:"Category"},Me=["onClick"],qe={key:0,class:"Category_item_icon",src:ft,alt:"category"},Ee={key:1,class:"Category_item_icon",src:gt,alt:"category"},Re={class:"product_box"},He={class:"list_title"},Ae={class:"list flex-between flex-wrap"},We={class:"item_name text_one"},je={class:"item_info"},Ue={class:"item_info_p"},Ye={class:"flex-center"},Ge=["src","alt"],Je={key:0,class:"paging flex-center"},Ke={__name:"h5ProductCentreList",props:["title","name","ProductCategory","productList","height","width","active","form","total"],emits:["toggleCategory","nextPage","previousPage","toggleCurrentPage"],setup(s,{emit:p}){const u=p,y=_=>{u("toggleCategory",_)},x=()=>{u("previousPage")},f=()=>{u("nextPage")},v=_=>{u("toggleCurrentPage",_)};return(_,h)=>{const d=J,l=_t,w=G("reload-on-error"),m=G("scale-image");return a(),n("div",De,[o("div",Oe,[o("ul",ze,[(a(!0),n(b,null,T(s.ProductCategory.classifyChildrenList,i=>(a(),n("li",{class:D(["Category_item flex-center-y",{active:i.classifyId===s.form.classifyTwoId}]),key:i.id,onClick:L=>y(i.classifyId)},[i.id===s.form.classifyTwoId?(a(),n("img",qe)):(a(),n("img",Ee)),N(" "+C(i.classifyName),1)],10,Me))),128))])]),o("div",Re,[o("div",He,C(s.name),1),o("ul",Ae,[(a(!0),n(b,null,T(s.productList,i=>(a(),n("li",{class:"item",key:i},[o("h3",We,[g(d,{to:"/productDetail/"+i.id,class:"item_title text_one"},{default:$(()=>[N(C(i.name),1)]),_:2},1032,["to"])]),o("div",je,[o("p",Ue,[g(d,{to:"/productDetail/"+i.id,class:"text_three",innerHTML:i.shortMessage},null,8,["to","innerHTML"])])]),o("div",Ye,[K(o("img",{class:"productimage",src:i.mainImage,alt:i.name},null,8,Ge),[[w,i.mainImage],[m,["36.5333","26.4"]]])]),g(d,{to:"/productDetail/"+i.id,class:"toDetail flex-center"},{default:$(()=>[N(C(_.$t("Center.Viewdetail")),1)]),_:2},1032,["to"])]))),128))]),s.total?(a(),n("div",Je,[g(l,{total:s.total,currentNum:s.form.pageNumber,pageSize:s.form.pageSize,onPreviousPage:x,onNextPage:f,onToggleCurrentPage:v},null,8,["total","currentNum","pageSize"])])):q("",!0)])])}}},Qe=B(Ke,[["__scopeId","data-v-ecab363b"]]),Xe={id:"BST",class:"common-width"},Ze={id:"list-box"},to={id:"BSTH5"},eo={__name:"index",async setup(s){let p,u;const{t:y}=rt(),x=r(y("seo.ProductsCenter")),f=r(y("seo.title"));lt({title:()=>`${x.value} | ${f.value}`});const v=r("");y("Center.Provide");const _=r(""),h=r(""),d=Dt(),l=r(""),w=r("");d.query.id&&(l.value=d.query.id),Et(async()=>{console.log("onActivated 页面激活了！"),d.query.id&&(l.value=d.query.id),console.log("获取的ID",l.value),await Z(),await W(),await P()}),d.query.sid&&(w.value=d.query.sid);const m=nt("lang"),i=ct(()=>{switch(m.value){case"en":return 1;case"zh":return 0;case"ita":return 1;case"jp":return 1;case"fr":return 1;case"es":return 1;default:return 1}}),L=nt("userInfo"),k=r(0);L.value&&L.value.roles&&L.value.roles.length?k.value=L.value.roles[0].roleId:k.value=0;const e=U({classifyOneId:"",classifyTwoId:w.value,specificationIdList:[],pageNumber:1,pageSize:8,detailsType:i,roleId:k.value}),V=async()=>{let t=e.classifyOneId;const{data:I}=await Gt(t);_.value=I},E=async()=>{let t=e.classifyOneId;const{data:I}=await Jt({id:t});h.value=I};let F=U([]);const Q=async()=>{F=[],F=(await Kt({classifyId:e.classifyTwoId,detailsType:i.value})).data,e.specificationIdList=[],F.forEach(I=>{e.specificationIdList.push({specificationOneId:I.id,specificationTwoId:""})})},O=r(0),R=r([]),z=r(!0),P=async()=>{if(z.value)try{const t=await jt(e);z.value=!1,t.rows&&(R.value=t.rows,O.value=t.total),ut(()=>{z.value=!0})}catch(t){console.log(t)}},mt=ct(()=>{switch(m.value){case"en":return!0;case"zh":return!1;case"ita":return!0;case"jp":return!0;case"fr":return!0;case"es":return!0;default:return!0}});let X=r([]);const Z=async()=>{try{const{data:t}=await Ut(mt.value);X.value=t,l.value?e.classifyOneId=l.value:e.classifyOneId=t[0].id,w.value&&(e.classifyTwoId=w.value),await V(),await E()}catch(t){console.log(t)}};[p,u]=Y(()=>Z()),await p,u();const S=r(!1),pt=async t=>{e.classifyOneId===t.id||S.value||z.value&&(e.classifyOneId=t.id,v.value=t.classifyName,S.value=!0,await V().catch(()=>{S.value=!1}),await W().catch(()=>{S.value=!1}),await P().catch(()=>{S.value=!1}),S.value=!1)},yt=r(""),vt=r(""),ht=r("");j(()=>import("./BVKzKRqG.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(t=>{yt.value=t.default}),j(()=>import("./1CCGBA58.js"),__vite__mapDeps([5,1,2,3,4]),import.meta.url).then(t=>{vt.value=t.default}),j(()=>import("./C3EHcdcO.js"),__vite__mapDeps([6,1,2,3,4]),import.meta.url).then(t=>{ht.value=t.default});const tt=async()=>{if(console.log("上一页出发了"),e.pageNumber<=1)return;e.pageNumber--,await P();const t=document.querySelector("#list-box");window.scrollTo({top:t.getBoundingClientRect().top+window.pageYOffset,behavior:"smooth"})},et=async()=>{if(console.log("下一页出发了"),e.pageNumber>=Math.ceil(O.value/e.pageSize))return;e.pageNumber++,await P();const t=document.querySelector("#list-box");window.scrollTo({top:t.getBoundingClientRect().top+window.pageYOffset,behavior:"smooth"})},ot=async t=>{if(e.pageNumber===t)return;e.pageNumber=t,await P();const I=document.querySelector("#list-box");window.scrollTo({top:I.getBoundingClientRect().top+window.pageYOffset,behavior:"smooth"})},H=r("");let A=U({});const W=async()=>{const{data:t}=await Yt({classifyId:e.classifyOneId,detailsType:i.value});H.value=t.classifyName,A=t,t.classifyChildrenList.length&&(w.value?e.classifyTwoId=w.value:e.classifyTwoId=t.classifyChildrenList[0].classifyId,await Q())};[p,u]=Y(()=>W()),await p,u();const st=async t=>{e.classifyTwoId!==t&&(e.classifyTwoId=t,await Q(),await P())},wt=async(t,I,M)=>{e.specificationIdList[t]&&e.specificationIdList[t].specificationTwoId===M?e.specificationIdList[t].specificationTwoId="":e.specificationIdList[t].specificationTwoId=M,await P()},Ct=r(0),xt=r(0),It=r(""),at=r(!1),Lt=r(""),bt=t=>{clearTimeout(Lt.value),at.value=!1};dt(async()=>{await P()});const Tt=async()=>{const{data:t}=await Qt("product",m.value);console.log("data",t),t.length>0&&lt({title:`${t[t.length-1].pageTitle}`,description:`${t.map(I=>I.pageDescription).join(";")}`,keywords:`${t.map(I=>I.pageKey).join(";")}`})};return[p,u]=Y(()=>Tt()),await p,u(),(t,I)=>{const M=Ot,Pt=oe,$t=ce,kt=$e,Nt=Fe,St=Qe,Bt=At,Vt=Wt;return a(),Rt(Vt,{name:"default"},{default:$(()=>[g(M,{title:c(v),image:c(_)},null,8,["title","image"]),g(Pt,{class:"common-width",active:"50011",tabsList:c(X),form:c(e),onToggleTab:pt},null,8,["tabsList","form"]),o("section",Xe,[g($t,{filtrateList:c(F),onToggleFiltrate:wt,form:c(e)},null,8,["filtrateList","form"]),o("div",Ze,[g(kt,{onHideBox:bt,ProductCategory:c(A),name:c(H),form:c(e),total:c(O),onPreviousPage:tt,onToggleCategory:st,onToggleCurrentPage:ot,onNextPage:et,active:"50011",productList:c(R),"footer-info":c(h)},null,8,["ProductCategory","name","form","total","productList","footer-info"])])]),o("section",to,[g(Nt,{filtrateList:c(F),form:c(e)},null,8,["filtrateList","form"]),g(St,{ProductCategory:c(A),name:c(H),form:c(e),total:c(O),onPreviousPage:tt,onToggleCategory:st,onToggleCurrentPage:ot,onNextPage:et,active:"50011",productList:c(R),title:"BST Antennas"},null,8,["ProductCategory","name","form","total","productList"])]),g(Bt,{x:c(Ct),y:c(xt),content:c(It),show:c(at)},null,8,["x","y","content","show"])]),_:1})}}},Io=B(eo,[["__scopeId","data-v-42ada61e"]]);export{Io as default};
