1import S from"./Be-pPpGc.js";import{S as N,a as V}from"./DuNVY9II.js";import{N as j}from"./DKVxH17m.js";import{d as y,m as p,z as R,A as T,o as l,f,h as g,j as m,v as x,t as z,G as H,g as h,F as L,r as M,E as _,e as n,_ as P}from"./Bk_0yVAb.js";import"./C7VX0i3G.js";import"./DgAK1XwS.js";const k={class:"model-comparator"},A=y({__name:"ModelComparator",props:{data:{}},setup(v){const w=v,C=[j],c=p(),u=p(),r=p(null),b=()=>{const{items:e}=w.data,t={0:{slidesPerView:e.length===1?1:1.15,spaceBetween:12},768:{slidesPerView:2,spaceBetween:24}};return e.length>2&&(t[992]={slidesPerView:3,spaceBetween:24}),t},B=()=>{var t,o;const e=(t=c.value)==null?void 0:t[0];u.value=((o=e==null?void 0:e.cardImageRef)==null?void 0:o.height)||"5rem"},E=()=>{const e={};c.value.forEach(t=>{const o=t.cardComparatorRef.children;o&&[...o].forEach((s,a)=>{const i=s.height??s.clientHeight;e[a]??(e[a]=s.height),e[a]=e[a]>i?e[a]:i})}),r.value=Object.values(e).map(t=>t?`${t/10}rem`:"auto").join(" ")},d=()=>{r.value=null,r.value,setTimeout(()=>{B(),E(),r.value},100)};return R(()=>{d(),window.addEventListener("resize",d),T(()=>{window.removeEventListener("resize",d)})}),(e,t)=>{var s;const o=S;return l(),f("div",k,[(l(),g(H(((s=e.data)==null?void 0:s.titleTag)||"p"),{class:"title2"},{default:m(()=>[x(z(e.data.title),1)]),_:1})),h(n(V),{class:"container",modules:C,breakpoints:b(),navigation:"",style:_({"--swiper-navigation-top-offset":`${n(u)/10}rem`})},{default:m(()=>[(l(!0),f(L,null,M(e.data.items,(a,i)=>(l(),g(n(N),{key:i},{default:m(()=>[h(o,{ref_for:!0,ref_key:"sliderComparatorRef",ref:c,data:a,style:_({display:n(r)?"grid":"block","grid-template-rows":n(r)})},null,8,["data","style"])]),_:2},1024))),128))]),_:1},8,["breakpoints","style"])])}}}),U=P(A,[["__scopeId","data-v-9257bedc"]]);export{U 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.