1import{t as l,bg as d,r as s,j as e}from"./index-Vblyvtde.js";import{C as p,V as f}from"./CommentCard.VCMd52AP.js";import{P as w}from"./PageHeaderMeta.CSLwEqRJ.js";import{P as x}from"./index.CRpDJ4Es.js";import"./trash-icon.BmIVFIts.js";import"./Breadcrumb.BHCmkbDc.js";import"./home-breadcrumb-icon.CtMJH-X5.js";import"./ProfileNavigation.DZn5BOky.js";import"./useProfile.Dc3rNXTj.js";import"./truck-icon.Ddqb1b_H.js";const C=t=>l({queryKey:["customer-reviews",t],queryFn:()=>d(t).then(r=>r).catch(()=>({})),placeholderData:{},enabled:!0}),L=()=>{var n;const{data:t,isLoading:r}=C(1),[o,m]=s.useState(!1),[a,i]=s.useState(null);return s.useEffect(()=>{m(!!a)},[a]),s.useEffect(()=>{o||i(!1)},[o]),r?e.jsx(e.Fragment,{children:"Loading..."}):e.jsxs(e.Fragment,{children:[e.jsx(w,{page_title:"Comments"}),e.jsxs(x,{code:"comments",children:[e.jsx("div",{id:"comments",children:((n=t==null?void 0:t.items)==null?void 0:n.length)>0?t.items.map((u,c)=>e.jsx(p,{ownComment:!0,showProductInfo:!0,review:u,setCommentToView:i},c)):"Îεν ÎÏεÏε ÏÏοÏθÎÏει κάÏοιο ÏÏÏλιο"}),o&&e.jsx(f,{comment:a,setOpen:m})]})]})};export{L 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.