1import{$ as e,Et as t,Ht as n,Mn as r,Q as i,W as a,X as o,Z as s,_n as c,dt as l,et as u,kt as d,ln as f,on as p,ot as m,qt as h}from"./Bd5IpQXS.js";import{S as g,T as _,i as v,l as y}from"./jmOO1iR82.js";import{t as b}from"./BV5dTz_u2.js";import{t as x}from"./CiQLSYnf.js";import{t as S}from"./C6HBGIVL.js";l(),h();var C=m({__name:`SfIconStarHalf`,props:{size:{type:String,default:_.base}},setup(e){return(r,a)=>(t(),i(f(b),{size:e.size,viewBox:`0 0 24 24`,"data-testid":`star-half`},{default:n(()=>a[0]||=[s(`path`,{d:`M12 8.125v7.8l3.15 1.925-.825-3.6 2.775-2.4-3.65-.325zm0 10.15-4.15 2.5a.9.9 0 0 1-.575.15.97.97 0 0 1-.525-.2 1.2 1.2 0 0 1-.35-.437.88.88 0 0 1-.05-.588l1.1-4.725L3.775 11.8a.96.96 0 0 1-.312-.513 1 1 0 0 1 .037-.562 1.1 1.1 0 0 1 .3-.45q.2-.176.55-.225l4.85-.425 1.875-4.45q.125-.3.388-.45t.537-.15.538.15q.262.15.387.45l1.875 4.45 4.85.425q.35.05.55.225t.3.45.038.562a.96.96 0 0 1-.313.513l-3.675 3.175 1.1 4.725a.88.88 0 0 1-.05.588 1.2 1.2 0 0 1-.35.437.97.97 0 0 1-.525.2.9.9 0 0 1-.575-.15z`},null,-1)]),_:1},8,[`size`]))}});l(),h(),c();var w=[`ariaLabel`,`title`],T={[g.xs]:`text-xs`,[g.sm]:`text-sm`,[g.base]:`text-base`,[g.lg]:`text-lg`,[g.xl]:`text-xl`},E=m({__name:`SfRating`,props:{size:{type:String,default:g.base},max:{type:Number,default:5},value:{type:Number,default:0},halfIncrement:{type:Boolean,default:!1},ariaLabel:{type:String,default:void 0}},setup(n){let{value:s,max:c,halfIncrement:l,ariaLabel:m}=p(n),h=o(()=>l.value?.5:1),g=o(()=>y(v(s.value,h.value),0,c.value)),_=o(()=>+!Number.isInteger(g.value)),b=o(()=>Math.ceil(g.value-_.value)),E=o(()=>c.value-b.value-_.value),D=o(()=>m?.value??`${s.value} out of ${c.value}`);return(o,s)=>(t(),u(`span`,{role:`img`,ariaLabel:D.value,title:D.value,class:r([`inline-flex items-center text-warning-500`,T[n.size]]),"data-testid":`rating`},[(t(!0),u(a,null,d(b.value,e=>
1(t(),i(f(S),{key:e,"aria-hidden":`true`,class:`w-[1.5em] h-[1.5em]`}))),128)),_.value?(t(),i(f(C),{key:0,"aria-hidden":`true`,class:`w-[1.5em] h-[1.5em]`})):e(``,!0),(t(!0),u(a,null,d(E.value,e=>(t(),i(f(x),{key:e,"aria-hidden":`true`,class:`text-disabled-500 w-[1.5em] h-[1.5em]`}))),128))],10,w))}});export{E as t};
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.