1import{j as t}from"./chunk-BUmnHJrbSQCzs.js";import{L as u}from"./chunk-Dg5mxOLCi7fjq.js";import{t as l}from"./chunk-CqBsQ6GQJXUzv.js";import{u as p}from"./chunk-CSFtLelPBJ8lp.js";import{S as R}from"./chunk-fgve3pJOEO8at.js";import{R as b}from"./chunk-DpKpGTvJlWsx7.js";import{R as j}from"./chunk-DHT9qf1NVUhkI.js";import{r as T}from"./chunk-DU5N5pqaKXp6_.js";const L=({value:r,numberRatings:n,ratingThreshold:s,useFillColor:e=!1})=>r?n>=s?r<=1?e?"fill-error":"bg-error":r<=2?e?"fill-pink-text":"bg-pink-text":r<=3?e?"fill-warn-text":"bg-warn-text":r<=4?e?"fill-ace":"bg-ace":r<=5?e?"fill-success-500":"bg-success-500 ":"bg-gray-200 text-gray-900":"bg-gray-200 text-gray-700":"bg-gray-200 text-gray-900",H=({type:r,ratingAverage:n=0,ratingCount:s=0,to:e,showCount:i=!1,className:f,loginModalSource:m,t:o,iconClassName:d})=>{const{loginModal:x}=p(),h=(()=>{switch(r){case"course":return b;case"store":return j;default:return r}})(),g=s<h?"â":T(n,1).toFixed(1),c=t.jsxs("div",{className:"flex items-center",children:[t.jsxs("div",{className:l("flex items-center",f),children:[t.jsx(R,{className:d||"h-4 w-4 fill-bg-accent3"}),t.jsx("p",{className:"text-md ml-1 flex flex-1 justify-evenly",children:g})]}),i&&t.jsxs("span",{className:l("ml-1 text-medium text-subtle",e&&s>0?"hover:underline":"",e?"text-link hover:underline":""),children:["(",s===0?o("courses:noRatings"):`${s} ${o("courses:rating",{count:s})}`,")"]})]});return e&&s>0?t.jsx(u,{to:e,type:"button",onClick:a=>x.open({source:m??"do-not-open-modal",linkProps:{to:e,event:a}}),children:c}):t.jsx("div",{children:c})};export{H as R,L as c};
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.