1import"./Bzak7iHL.js";import{f,g as w,h as r,ax as y,b as v,d as g,s as o,az as t,r as c}from"./7ngGZi-H.js";import{r as F}from"./DCJNo0Xp.js";import{a as P}from"./BbdvPgt3.js";import{F as S}from"./OCdojPJo.js";import{S as n}from"./S1VVTpgi.js";var H=f('<input type="number" min="0" class="input input-bordered w-full tabular-nums"/>'),L=f('<input type="number" min="0" class="input input-bordered w-full tabular-nums"/>'),j=f('<div class="grid gap-4 md:grid-cols-2"><div class="flex min-w-0 flex-col gap-4"><!> <!></div> <div class="grid min-w-0 content-start gap-3 sm:grid-cols-2 md:grid-cols-1 lg:grid-cols-2"><!> <!> <!> <!></div></div>');function I(k){let l=y(40),i=y(70);const d=t(()=>r(i)-r(l)),s=t(()=>r(i)>0?r(d)/r(i)*100:0),T=t(()=>r(l)>0?r(d)/r(l)*100:0);var u=j(),p=g(u),b=g(p);S(b,{label:"Cost per sale",children:(e,C)=>{var a=H();F(a),P(a,()=>r(l),m=>w(l,m)),v(e,a)},$$slots:{default:!0}});var M=o(b,2);S(M,{label:"Selling price",children:(e,C)=>{var a=L();F(a),P(a,()=>r(i),m=>w(i,m)),v(e,a)},$$slots:{default:!0}}),c(p);var _=o(p,2),$=g(_);{let e=t(()=>r(d).toFixed(2));n($,{label:"Profit per sale",get value(){return r(e)}})}var h=o($,2);{let e=t(()=>r(s).toFixed(1));n(h,{label:"Margin",get value(){return`${r(e)??""}%`}})}var x=o(h,2);{let e=t(()=>r(T).toFixed(1));n(x,{label:"Markup",get value(){return`${r(e)??""}%`}})}var z=o(x,2);{let e=t(()=>r(s)<0?"Losing money":r(s)<20?"Thin margin":r(s)<50?"Healthy margin":"Strong margin");n(z,{label:"Takeaway",get value(){return r(e)}})}c(_),c(u),v(k,u)}export{I as default};
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.