1import{a as e}from"./chunk-CsjQdrqi.js";import{n as t,t as n}from"./jsx-runtime-Bcvu2gyL.js";import{t as r}from"./compiler-runtime-DczOaqDG.js";import{t as i}from"./dist-PFv5VvRk.js";import{t as a}from"./button-BRUIY1n8.js";import{t as o}from"./amak-figure-empty-DtJ85J_f.js";var s=r(),c=e(n(),1);function l(e){let t=(0,s.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,c.jsxs)(`g`,{clipPath:`url(#clip0_15136_2319)`,children:[(0,c.jsx)(`path`,{fill:`currentColor`,stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:.5,d:`M3.60106 12.0255C5.18413 11.2516 5.49894 10.0953 7.05502 9.41031C7.37883 9.26799 7.84656 9.10787 8.4492 9.03671C8.60211 9.01892 8.74603 9.0545 8.87196 9.14345C9.16878 9.34804 9.61852 9.58822 10.1852 9.66828C11.6603 9.87287 12.7847 8.8588 13.1714 8.45851C13.2704 8.36066 13.3873 8.2895 13.5312 8.27171C13.5852 8.26281 13.6481 8.25392 13.7111 8.24502C14.8534 8.04932 15.7439 7.60456 16.2746 7.27543C16.6524 7.04415 17.0931 6.67054 17.9926 5.90554C18.4243 5.54083 18.7661 5.23839 19 5.0249C18.937 5.27397 18.3254 7.68461 17.237 9.03671C16.8683 9.49037 16.4725 9.85508 16.4725 9.85508C15.9328 10.3443 15.4381 10.6379 15.1233 10.8247C14.7455 11.0471 14.4127 11.2072 14.1608 11.3228C13.945 11.2072 13.7291 11.0915 13.5132 10.9759C13.6661 11.2694 13.864 11.732 13.954 12.328C14.0799 13.1464 13.945 13.7868 13.7741 14.5696C13.5762 15.468 13.3063 16.1085 13.2524 16.2419C12.9016 17.0603 12.4788 17.7008 12.119 18.1811C11.1746 17.9499 10.482 17.5674 10.0593 17.2916C9.67249 17.0336 8.6291 16.3398 7.96349 15.0233C7.82857 14.7564 7.6127 14.3117 7.50476 13.689C7.36984 12.8528 7.51376 12.1501 7.63069 11.7587C6.52434 12.3903 4.44656 13.351 2.41376 12.6571C2.27884 12.6126 2.14392 12.5593 2 12.4881C2.37778 12.4525 2.96243 12.3369 3.60106 12.0255Z`}),(0,c.jsx)(`path`,{fill:`currentColor`,stroke:`currentColor`,strokeWidth:.5,d:`M10.3291 7.86108C8.89898 7.6476 7.94554 6.17097 8.1884 4.56091C8.43126 2.95085 9.78046 1.81224 11.2106 2.02573C12.6408 2.23922 13.5942 3.71585 13.3514 5.32591C13.1085 6.93597 11.7503 8.06568 10.3291 7.86108Z`})]}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,c.jsx)(`defs`,{children:(0,c.jsx)(`clipPath`,{id:`clip0_15136_2319`,children:(0,c.jsx)(`rect`,{width:`20`,height:`20`,fill:`white`})})}),t[1]=r):r=t[1];let i;return t[2]===e?i=t[3]:(i=(0,c.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 20 20`,...e,children:[n,r]}),t[2]=e,t[3]=i),i}var u=r(),d=e(t(),1),f=i({base:`flex items-center gap-1`,variants:{size:{sm:`[&>svg]:h-12 [&>svg]:w-12`,md:`[&>svg]:h-16 [&>svg]:w-16`,lg:`[&>svg]:h-20 [&>svg]:w-20`,xl:`[&>svg]:h-24 [&>svg]:w-24`},color:{default:``,excellent:``,"very-good":``,good:``,fair:``,poor:``}},defaultVariants:{size:`md`,color:`default`}}),p=()=>`text-brand-primary-600`;function m(e){let t=(0,u.c)(23),{rating:n,maxRating:r,readonly:i,onChange:s,size:m,color:h,className:g}=e,_=r===void 0?5:r,v=i===void 0?!1:i,y=h===void 0?`default`:h,[b,x]=(0,d.useState)(null),S=b??n,C=!v&&s,w;t[0]!==C||t[1]!==s?(w=e=>{C&&s?.(e)},t[0]=C,t[1]=s,t[2]=w):w=t[2];let T=w,E;t[3]===C?E=t[4]:(E=e=>{C&&x(e)},t[3]=C,t[4]=E);let D=E,O;t[5]===C?O=t[6]:(O=()=>{C&&x(null)},t[5]=C,t[6]=O);let k=O,A;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(A=p(),t[7]=A):A=t[7];let j=A,M;t[8]!==g||t[9]!==y||t[10]!==m?(M=f({size:m,color:y,className:g}),t[8]=g,t[9]=y,t[10]=m,t[11]=M):M=t[11];let N;t[12]!==S||t[13]!==T||t[14]!==D||t[15]!==C||t[16]!==_||t[17]!==v?(N=Array.from({length:_},(e,t)=>{let n=t+1,r=n<=Math.round(S);return(0,c.jsx)(a,{type:`button`,disabled:v,size:`sm`,variant:`ghost`,className:`relative m-1 h-auto w-auto p-0 opacity-100 transition-all duration-200 ${C?`cursor-pointer hover:scale-120`:`cursor-default`} ${v?``:`focus:ring-primary rounded focus:ring-2 focus:ring-offset-2 focus:outline-none`} `,onClick:()=>T(n),onMouseEnter:()=>D(n),"aria-label":`Rate ${n} out of ${_} figures`,children:r?(0,c.jsx)(l,{className:j}):(0,c.jsx)(o,{})},n)}),t[12]=S,t[13]=T,t[14]=D,t[15]=C,t[16]=_,t[17]=v,t[18]=N):N=t[18];let P;return t[19]!==k||t[20]!==M||t[21]!==N?(P=(0,c.jsx)(`div`,{className:`flex items-center gap-8`,children:(0,c.jsx)(`div`,{className:M,onMouseLeave:k,children:N})}),t[19]=k,t[20]=M,t[21]=N,t[22]=P):P=t[22],P}function h(e){let t=(0,u.c)(15),{rating:n,size:r,showLabel:i,className:a}=e,o=g;if(n===0){let e=`flex items-center gap-8 ${a}`,n;return t[0]===e?n=t[1]:(n=(0,c.jsx)(`div`,{className:e}),t[0]=e,t[1]=n),n}let s=`mr-8 flex items-center gap-8 ${a}`,l=o(n),d;t[2]!==n||t[3]!==i||t[4]!==r||t[5]!==l?(d=(0,c.jsx)(m,{rating:n,readonly:!0,size:r,color:l,showLabel:i}),t[2]=n,t[3]=i,t[4]=r,t[5]=l,t[6]=d):d=t[6];let f;t[7]===n?f=t[8]:(f=n.toFixed(1),t[7]=n,t[8]=f);let p;t[9]===f?p=t[10]:(p=(0,c.jsx)(`div`,{className:`flex items-center gap-8`,children:(0,c.jsx)(`span`,{className:`font-poppins text-muted text-sm font-semibold`,children:f})}),t[9]=f,t[10]=p);let h;return t[11]!==s||t[12]!==d||t[13]!==p?(h=(0,c.jsxs)(`div`,{className:s,children:[d,p]}),t[11]=s,t[12]=d,t[13]=p,t[14]=h):h=t[14],h}function g(e){return e>=4.5?`excellent`:e>=4?`very-good`:e>=3?`good`:e>=2?`fair`:`poor`}export{h as n,l as r,m 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.