PageSourceSearch

https://www.biano.cz/assets-reco/39-2026-10-01-1790860170/chunks/chunk-CP8rGsVL.js

js biano.cz collected 2026-10-02 05:30:13 UTC 3,419 bytes, 1 lines download raw bytes

1import{b as e,ag as c,ah as f,I as b,k as N,ai as v,aj as R,p as y,r as M,q as I,a3 as u,ak as o,y as g,a4 as h,al as S,z as d}from"./chunk-B4Ec8uus.js";import{a as T,M as z}from"./chunk-DFYZ4Q0p.js";import{D as A}from"./chunk-C52ZX-tR.js";import"./chunk-CgNRPQuy.js";import"./chunk-D60WeaoM.js";import"./chunk-DpL4rtn9.js";import"./chunk-C0Xu2lNm.js";import"./chunk-K-DKyTWt.js";const W=({rating:i,reviewsCount:t,vector:l,metadata:s})=>{if(t===0)return null;let r={};return s&&(r={itemProp:"aggregateRating",itemScope:!0,itemType:"https://schema.org/AggregateRating"}),e("div",{className:"md:mt-6 md:flex",children:[e("div",{className:"mb-4 mt-5 flex items-center justify-between gap-x-3 md:my-6 md:w-40 md:flex-none md:flex-col md:gap-2 md:gap-x-4",...r,children:[e("span",{itemProp:s?"ratingValue":void 0,className:"flex-none text-2xl font-semibold md:text-[42px]",children:(Math.round(i*10)/10).toFixed(1)}),e(c,{size:"xlarge",rating:i,className:"flex-none md:hidden"}),e(c,{size:"2xl",rating:i,className:"hidden flex-none md:block"}),e("meta",{itemProp:s?"reviewCount":void 0,content:t.toFixed()}),e("span",{className:"flex-auto text-right text-sm font-medium md:text-base",children:f(t)})]}),e("div",{className:"grid grid-cols-[min-content_auto_max-content] items-center gap-x-4 gap-y-2 text-sm font-medium md:flex-1 md:text-base",children:[...l].reverse().map((a,m)=>e(C,{index:m,count:a,totalRatings:t}))})]})},C=({index:i,count:t,totalRatings:l})=>{const s=l===0?0:Math.round(t/l*100),r=a=>`rating ${a}%`;return e(N,{children:[e("span",{className:"flex items-center justify-between gap-x-1.5",children:[5-i," ",e(b,{name:"Star",size:"xss"})]}),e("div",{className:"h-2 overflow-hidden rounded-full bg-brown-10",role:"meter","aria-label":r(5-i*20),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s,"aria-valuetext":`${s}%`,children:e("div",{className:"h-2 bg-beige-50",style:{width:`${s}%`},"aria-hidden":!0,children:" "})}),e("span",{className:"text-right",children:[t," x"]})]})},O=({onClose:i})=>{const[t,l,...s]=v.value,r=R(()=>s.filter(n=>!!n).map(n=>parseInt(n))),[{data:a,loading:m,error:p},w]=y(M.variant.getVariantReviewsModal,null,{manual:!0}),x=I(()=>{v.value=[!1,!1],o.value=u.All,i==null||i()},[]);return g(()=>{t&&r.value&&r.value.length&&w({requestBody:r.value})},[t]),g(()=>{const n=l&&(a!=null&&a.reviewsWithImage.length)?h.value:u.All;o.value!==n&&(o.value=n)},[a,l,h]),e(z,{id:S,title:"Recenze",open:t,onClose:x,modalSize:T.Small,children:m?e(d,{type:"info",className:"mt-4",children:"Načítání všech dostupných recenzí"}):p?e(d,{type:"error",className:"mt-4",children:"Při pokusu o načtení všech dostupných recenzí došlo k chybě."}):a?e("div",{className:"pb-8",children:[e(W,{rating:a.rating,reviewsCount:a.reviewsCount,imagesCount:a.imagesCount,vector:a.vector,metadata:!1}),!!a.reviews.length&&e("div",{className:"mt-6 flex flex-col gap-y-4",children:e(A,{variantIds:r.value,reviews:a.reviews,reviewsHasMore:a.reviewsHasMore,reviewsTotalCount:a.reviewsTotalCount,reviewsWithImage:a.reviewsWithImage,reviewsWithImageHasMore:a.reviewsWithImageHasMore,reviewsWithImageTotalCount:a.reviewsWithImageTotalCount,reviewsSummary:a.reviewsSummary,reviewsWebSummary:a.reviewsWebSummary,singleEshopReviews:r.value.length===1,showLoadMore:!0,tabController:o})})]}):e(d,{type:"warning",className:"mt-4",children:"Nejsou k dispozici žádné recenze."})})};export{O as ReviewsModal};

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.