1import{o as g,b,y as w}from"./EW60oKse.js";import{_ as y}from"./B_-iT5dV.js";import{z as k,b as u,H as N,O as o,P as n,u as m,L as _,R as e,J as j,V as P,S as c,_ as p}from"./QVWpw_zs.js";import"./Bx5tmKxc.js";import"./ukHWZ1qF.js";const $={class:"container pt-[30px]"},C={key:0,class:"flex flex-col items-center"},S={class:"flex flex-col w-full md:max-w-[70%] my-15"},R={class:"grid grid-cols-12 lg:gap-3 text-base"},V={class:"col-span-2 lg:col-span-1 flex justify-center"},B={class:"col-span-7 lg:col-span-8 ml-2 lg:ml-0 flex flex-col justify-between"},I={class:"mt-2 lg:flex lg:justify-between"},z={class:"h-[35px] min-w-[0]"},D={class:"mr-3 my-auto font-semibold text-base"},L={key:0},O={class:"col-span-3 flex items-center justify-end"},T=["onClick"],q={key:0},A={key:1,class:"row"},E={class:"col-12 text-center"},U=k({__name:"product-review",setup(F){const{algoliaSearch:f,getProductIndexName:h}=g(),x=b(),i=u([]),r=u(""),v=t=>{r.value=r.value===t?"":t};return N(()=>{var d;const t=((d=x.query.items)==null?void 0:d.split(","))??[];t.length&&f("review-product-list",h(),"",{filters:`productNumber:${t.join(" OR productNumber:")}`,hitsPerPage:100}).then(l=>{var a;i.value=((a=l.value)==null?void 0:a.hits)??[]})}),(t,d)=>{const l=w,a=y;return o(),n("div",$,[m(i).length?(o(),n("div",C,[_(l,{class:"w-[800px] max-w-[80%]",src:"/product-review.png"}),e("div",S,[(o(!0),n(j,null,P(m(i),s=>(o(),n("div",{key:s.objectID,class:"flex flex-1 flex-col min-w-0 border-b-solid border-b-1 border-brand-anotherGray py-4"},[e("div",R,[e("div",V,[_(l,{loading:"lazy",height:"70",src:s.image,alt:s.name,class:"object-cover max-w-full"},null,8,["src","alt"])]),e("div",B,[e("div",I,[e("div",z,[e("h3",D,c(s.name),1),s.subTitle!==""?(o(),n("span",L,c(s.subTitle),1)):p("",!0)])])]),e("div",O,[e("span",{onClick:G=>v(s.productNumber),class:"px-6 py-3 font-medium text-white bg-brand-orange cursor-pointer"},c(t.$t("review.reviewProduct")),9,T)])]),m(r)===s.productNumber?(o(),n("div",q,[_(a,{"is-modal":!1,product:s},null,8,["product"])])):p("",!0)]))),128))])])):(o(),n("div",A,[e("div",E,[e("h1",null,c(t.$t("review.noProducts")),1)])]))])}}});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.