import{ap as x,aq as R,b as z,ar as B,o,c as l,a as d,F as m,l as _,e as b,as as h,A as V,f as g,r as E,i as I,t as j,at as M}from"./app-B-4i4xU3.js";(function(){try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode(".vue3-star-ratings[data-v-7fab3f62]{width:fit-content;overflow:hidden;position:relative;white-space:nowrap}.vue3-star-ratings *[data-v-7fab3f62]{box-sizing:border-box;margin:0;padding:0;line-height:1}.vue3-star-ratings__inner[data-v-7fab3f62],.vue3-star-ratings__outer[data-v-7fab3f62]{height:inherit}.vue3-star-ratings__outer[data-v-7fab3f62]{position:absolute;top:0;left:0;width:var(--vue3StarRatingOuterWidth);max-width:100%;overflow:hidden;color:var(--vue3StarRatingsOuterColor);transition:width .32s cubic-bezier(.075,.82,.165,1)}.vue3-star-ratings__inner[data-v-7fab3f62]{color:var(--vue3StarRatingsInnerColor)}.vue3-star-ratings__icon[data-v-7fab3f62]{fill:currentColor;width:var(--vue3StarRatingIconSize);aspect-ratio:1;cursor:pointer;display:inline-block}")),document.head.appendChild(r)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();const w=(r,a)=>{const t=r.__vccOpts||r;for(const[i,v]of a)t[i]=v;return t},D={},L={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512.002 512.002"},N=d("path",{d:"M511.267 197.258a14.995 14.995 0 00-12.107-10.209l-158.723-23.065-70.985-143.827a14.998 14.998 0 00-26.901 0l-70.988 143.827-158.72 23.065a14.998 14.998 0 00-8.312 25.585l114.848 111.954-27.108 158.083a14.999 14.999 0 0021.763 15.812l141.967-74.638 141.961 74.637a15 15 0 0021.766-15.813l-27.117-158.081 114.861-111.955a14.994 14.994 0 003.795-15.375z"},null,-1),T=[N];function $(r,a){return o(),l("svg",L,T)}const S=w(D,[["render",$]]),W={class:"vue3-star-ratings__outer"},F={class:"vue3-star-ratings__inner"},P=x({__name:"Vue3StarRatings",props:{modelValue:{default:0},numberOfStars:{default:5},starColor:{default:"#ff9800"},inactiveColor:{default:"#333333"},starSize:{default:24},disableClick:{type:Boolean},customSvg:{default:S}},emits:["update:modelValue"],setup(r,{emit:a}){const t=r,i=g(()=>t.customSvg||S),v={rounded(e,s){const n=Math.pow(10,s);return Math.round(e*n)/n}},u=E(),c=g({get(){return t.modelValue},set(e){const s=v.rounded(e,1);a("update:modelValue",s)}});function p(e){if(t.disableClick)return;const s=this.getBoundingClientRect(),{pageX:n}=e,f=n-s.left,C=s.width,k=t.numberOfStars,O=f/C*k;c.value=O}const y=g(()=>(c.value<0?0:c.value>t.numberOfStars?t.numberOfStars:c.value)/t.numberOfStars*100);return R(()=>{var e;const s={"--vue3StarRatingsInnerColor":t.inactiveColor,"--vue3StarRatingsOuterColor":t.starColor,"--vue3StarRatingOuterWidth":`${y.value}%`,"--vue3StarRatingIconSize":`${t.starSize}px`};for(const[n,f]of Object.entries(s))(e=u.value)==null||e.style.setProperty(n,f)}),z(()=>{var e;(e=u.value)==null||e.addEventListener("click",p)}),B(()=>{var e;(e=u.value)==null||e.removeEventListener("click",p)}),(e,s)=>(o(),l("div",{class:"vue3-star-ratings",ref_key:"starsContainer",ref:u,style:V({pointerEvents:e.disableClick?"none":"auto"})},[d("div",W,[(o(!0),l(m,null,_(e.numberOfStars,n=>(o(),b(h(i.value),{key:n,class:"vue3-star-ratings__icon"}))),128))]),d("div",F,[(o(!0),l(m,null,_(e.numberOfStars,n=>(o(),b(h(i.value),{key:n,class:"vue3-star-ratings__icon"}))),128))])],4))}}),A=w(P,[["__scopeId","data-v-7fab3f62"]]);function H(){return{truncate:(a,t,i="...")=>typeof a!="string"?"":a.length<=t?a:a.slice(0,t)+i}}const X={class:"py-3 px-2 text-slate-800 dark:text-slate-100 text-lg md:text-2xl font-medium font-['Roboto'] tracking-tight md:leading-loose flex justify-between items-center bg-white dark:bg-slate-800"},U={__name:"OrderDetailsPageHeader",props:{title:String},setup(r){return(a,t)=>(o(),l("div",X,[I(j(r.title)+" ",1),d("div",null,[M(a.$slots,"default")])]))}};export{A as N,U as _,H as u};
