PageSourceSearch

https://dotb.io/assets/vinted-fee-calculator.js

js dotb.io collected 2026-10-02 00:37:24 UTC 22,357 bytes, 1 lines download raw bytes

1import{K as B,r as c,j as e,e as z,b9 as G,m as E,ad as r,Y as u,B as $,a1 as l,a0 as W,a9 as Z,ac as _}from"./account-selector.js";import{L as Y,aT as H,w as p,r as m,s as x,t as g,a7 as w,a9 as C,S,h as F,i as T,j as I,k as V,u as J,aU as R,aV as Q,b6 as K,b7 as A,b8 as U,v as X}from"./accounting-orders-table.js";import{d as ee,m as q,c as te}from"./chat-inbox.js";import{F as re,C as ie,u as oe,a as se,t as ne}from"./smart-agent-v2.js";import{C as ae,a as ce,b as le}from"./master-global-stats.js";import{P as de,c as ue,d as pe}from"./leaderboard.js";const me={"selling-price":"Selling Price","selling-price-error":"Selling price must be greater than 0","selling-price-tooltip":"The selling price you have set for your listing on Vinted.",cost:"Cost","cost-tooltip":"The cost of the article you are selling, including the price you paid for it and any additional costs","buyer-protection":"Buyer Protection","buyer-protection-tooltip-1":"Buyer Protection covers Vinted fee, secure payments, refunds, and customer support.","buyer-protection-tooltip-2":"Under €500: €0.70 + 5%","buyer-protection-tooltip-3":"Over €500: 2%","article-verification":"Article Verification","article-verification-tooltip":"Vinted will verify the article. The cost is {cost} {currency} for the buyer.","submit-button":"Calculate",profit:"Profit","total-fees":"Total Vinted Fees","profit-margin":"Profit margin",revenue:"Revenue","buyer-pay":"Buyer pay","distribution-revenue":"Distribution of revenue",standard:"Standard",pro:"Pro","buyer-pay-tooltip":"To this amount, the buyer will pay VAT and shipping fees based on their country’s rate.",region:"Region","region-tooltip-1":"Vinted's fees may vary by region",eu:"European Union",uk:"United Kingdom",us:"United States"},xe={"selling-price":"Prix de vente","selling-price-error":"Le prix de vente doit être supérieur à 0","selling-price-tooltip":"Le prix de vente que vous avez fixé pour votre annonce sur Vinted.",cost:"Coût","cost-tooltip":"Le coût de l'article que vous vendez, incluant le prix que vous avez payé et tout coût supplémentaire.","buyer-protection":"Protection acheteur","buyer-protection-tooltip-1":"La Protection acheteur couvre les frais Vinted, les paiements sécurisés, les remboursements et le service client.","buyer-protection-tooltip-2":"Moins de 500€ : 0,70€ + 5%","buyer-protection-tooltip-3":"Plus de 500€ : 2%","article-verification-tooltip":"Vinted vérifiera l'article. Le coût est de {cost} {currency} pour l'acheteur.","submit-button":"Calculer",profit:"Profit","total-fees":"Total des frais Vinted","profit-margin":"Marge bénéficiaire",revenue:"Revenu","article-verification":"Vérification de l'article","buyer-pay":"Montant payé par l'acheteur","distribution-revenue":"Répartition du revenu",standard:"Standard",pro:"Pro","buyer-pay-tooltip":"À ce montant, l'acheteur paiera la TVA et les frais de livraison en fonction du taux de son pays.",region:"Région","region-tooltip-1":"Les frais Vinted peuvent varier selon la région",eu:"Union européenne",uk:"Royaume-Uni",us:"États-Unis"},ge={"selling-price":"Precio de venta","selling-price-error":"El precio de venta debe ser mayor a 0","selling-price-tooltip":"El precio de venta que has establecido para tu anuncio en Vinted.",cost:"Costo","cost-tooltip":"El costo del artículo que estás vendiendo, incluyendo el precio que pagaste por él y cualquier costo adicional.","buyer-protection":"Protección al comprador","buyer-protection-tooltip-1":"La protección al comprador cubre la tarifa de Vinted, pagos seguros, reembolsos y soporte al cliente.","buyer-protection-tooltip-2":"Menos de €500: €0.70 + 5%","buyer-protection-tooltip-3":"Más de €500: 2%","article-verification":"Verificación de artículo","article-verification-tooltip":"Vinted verificará el artículo. El costo es de {cost} {currency} para el comprador.","submit-button":"Calcular",profit:"Ganancia","total-fees":"Total de tarifas de Vinted","profit-margin":"Margen de ganancia",revenue:"Ingresos","buyer-pay":"Pago del comprador","distribution-revenue":"Distribución de ingresos",standard:"Estándar",pro:"Pro","buyer-pay-tooltip":"A esta cantidad, el comprador pagará IVA y gastos de envío según la tasa de su país.",region:"Región","region-tooltip-1":"Las tarifas de Vinted pueden variar según la región",eu:"Unión Europea",uk:"Reino Unido",us:"Estados Unidos"},fe={"selling-price":"Prezzo di vendita","selling-price-error":"Il prezzo di vendita deve essere maggiore di 0","selling-price-tooltip":"Il prezzo di vendita impostato per il tuo annuncio su Vinted.",cost:"Costo","cost-tooltip":"Il costo dell’articolo che stai vendendo, inclusi il prezzo pagato e eventuali costi aggiuntivi.","buyer-protection":"Protezione acquirente","buyer-protection-tooltip-1":"La protezione acquirente copre la commissione Vinted, i pagamenti sicuri, i rimborsi e il supporto clienti.","buyer-protection-tooltip-2":"Fino a €500: €0,70 + 5%","buyer-protection-tooltip-3":"Oltre €500: 2%","article-verification":"Verifica articolo","article-verification-tooltip":"Vinted verificherà l’articolo. Il costo è di {cost} {currency} a carico dell’acquirente.","submit-button":"Calcola",profit:"Profitto","total-fees":"Commissioni totali Vinted","profit-margin":"Margine di profitto",revenue:"Ricavo","buyer-pay":"Importo pagato dall’acquirente","distribution-revenue":"Distribuzione del ricavo",standard:"Standard",pro:"Pro","buyer-pay-tooltip":"A questo importo, l’acquirente dovrà aggiungere l’IVA e le spese di spedizione in base all’aliquota del suo paese.",region:"Regione","region-tooltip-1":"Le commissioni Vinted possono variare in base alla regione",eu:"Unione Europea",uk:"Regno Unito",us:"Stati Uniti"},ye={"selling-price":"Preço de Venda","selling-price-error":"O preço de venda deve ser maior que 0","selling-price-tooltip":"O preço de venda que você definiu para seu anúncio no Vinted.",cost:"Custo","cost-tooltip":"O custo do artigo que você está vendendo, incluindo o preço que pagou por ele e quaisquer custos adicionais","buyer-protection":"Proteção do Comprador","buyer-protection-tooltip-1":"A Proteção do Comprador cobre a taxa do Vinted, pagamentos seguros, reembolsos e suporte ao cliente.","buyer-protection-tooltip-2":"Abaixo de €500: €0,70 + 5%","buyer-protection-tooltip-3":"Acima de €500: 2%","article-verification":"Verificação do Artigo","article-verification-tooltip":"O Vinted verificará o artigo. O custo é de {cost} {currency} para o comprador.","submit-button":"Calcular",profit:"Lucro","total-fees":"Taxas Totais do Vinted","profit-margin":"Margem de Lucro",revenue:"Receita","buyer-pay":"Valor pago pelo comprador","distribution-revenue":"Distribuição da receita",
vendor: 5,701 bytes, line 1
1standard:"Padrão",pro:"Profissional","buyer-pay-tooltip":"A este valor, o comprador pagará IVA e taxas de envio com base na taxa do seu país.",region:"Região","region-tooltip-1":"As taxas do Vinted podem variar por região",eu:"União Europeia",uk:"Reino Unido",us:"Estados Unidos"},je={"selling-price":"Verkoopprijs","selling-price-error":"De verkoopprijs moet groter zijn dan 0","selling-price-tooltip":"De verkoopprijs die je hebt ingesteld voor je advertentie op Vinted.",cost:"Kosten","cost-tooltip":"De kosten van het artikel dat je verkoopt, inclusief de prijs die je ervoor hebt betaald en eventuele extra kosten","buyer-protection":"Kopersbescherming","buyer-protection-tooltip-1":"Kopersbescherming dekt de Vinted-vergoeding, veilige betalingen, terugbetalingen en klantenservice.","buyer-protection-tooltip-2":"Onder €500: €0,70 + 5%","buyer-protection-tooltip-3":"Boven €500: 2%","article-verification":"Artikelverificatie","article-verification-tooltip":"Vinted zal het artikel verifiëren. De kosten bedragen {cost} {currency} voor de koper.","submit-button":"Berekenen",profit:"Winst","total-fees":"Totale Vinted-kosten","profit-margin":"Winstmarge",revenue:"Inkomsten","buyer-pay":"Bedrag dat de koper betaalt","distribution-revenue":"Verdeling van inkomsten",standard:"Standaard",pro:"Pro","buyer-pay-tooltip":"Bij dit bedrag betaalt de koper ook btw en verzendkosten, afhankelijk van het tarief in zijn/haar land.",region:"Regio","region-tooltip-1":"De Vinted-kosten kunnen variëren per regio",eu:"Europese Unie",uk:"Verenigd Koninkrijk",us:"Verenigde Staten"},he={"selling-price":"Cena sprzedaży","selling-price-error":"Cena sprzedaży musi być większa niż 0","selling-price-tooltip":"Cena sprzedaży, którą ustawiłeś dla swojej oferty na Vinted.",cost:"Koszt","cost-tooltip":"Koszt artykułu, który sprzedajesz, w tym cena, którą za niego zapłaciłeś, oraz wszelkie dodatkowe koszty","buyer-protection":"Ochrona kupującego","buyer-protection-tooltip-1":"Ochrona kupującego obejmuje opłatę Vinted, bezpieczne płatności, zwroty i obsługę klienta.","buyer-protection-tooltip-2":"Do €500: €0,70 + 5%","buyer-protection-tooltip-3":"Powyżej €500: 2%","article-verification":"Weryfikacja artykułu","article-verification-tooltip":"Vinted zweryfikuje artykuł. Koszt wynosi {cost} {currency} dla kupującego.","submit-button":"Oblicz",profit:"Zysk","total-fees":"Łączne opłaty Vinted","profit-margin":"Marża zysku",revenue:"Przychód","buyer-pay":"Kwota płacona przez kupującego","distribution-revenue":"Podział przychodów",standard:"Standard",pro:"Pro","buyer-pay-tooltip":"Do tej kwoty kupujący zapłaci również VAT i koszty wysyłki zgodnie ze stawką obowiązującą w jego kraju.",region:"Region","region-tooltip-1":"Opłaty Vinted mogą się różnić w zależności od regionu",eu:"Unia Europejska",uk:"Wielka Brytania",us:"Stany Zjednoczone"},be={"selling-price":"Verkaufspreis","selling-price-error":"Der Verkaufspreis muss größer als 0 sein","selling-price-tooltip":"Der Verkaufspreis, den du für dein Angebot auf Vinted festgelegt hast.",cost:"Kosten","cost-tooltip":"Die Kosten des Artikels, den du verkaufst, einschließlich des Preises, den du dafür bezahlt hast, und etwaiger zusätzlicher Kosten","buyer-protection":"Käuferschutz","buyer-protection-tooltip-1":"Der Käuferschutz deckt die Vinted-Gebühr, sichere Zahlungen, Rückerstattungen und den Kundenservice ab.","buyer-protection-tooltip-2":"Unter €500: €0,70 + 5%","buyer-protection-tooltip-3":"Über €500: 2%","article-verification":"Artikelprüfung","article-verification-tooltip":"Vinted wird den Artikel überprüfen. Die Kosten betragen {cost} {currency} für den Käufer.","submit-button":"Berechnen",profit:"Gewinn","total-fees":"Gesamte Vinted-Gebühren","profit-margin":"Gewinnmarge",revenue:"Einnahmen","buyer-pay":"Zahlung des Käufers","distribution-revenue":"Verteilung der Einnahmen",standard:"Standard",pro:"Pro","buyer-pay-tooltip":"Zu diesem Betrag zahlt der Käufer zusätzlich Mehrwertsteuer und Versandkosten gemäß den Tarifen seines Landes.",region:"Region","region-tooltip-1":"Die Vinted-Gebühren können je nach Region variieren",eu:"Europäische Union",uk:"Vereinigtes Königreich",us:"Vereinigte Staaten"},ve=B({en:me,fr:xe,es:ge,it:fe,pt:ye,nl:je,pl:he,de:be}),Ve=re,L=c.createContext({}),k=({...t})=>e.jsx(L.Provider,{value:{name:t.name},children:e.jsx(ie,{...t})}),M=()=>{const t=c.useContext(L),n=c.useContext(D),{getFieldState:o,formState:a}=oe(),s=o(t.name,a);if(!t)throw new Error("useFormField should be used within <FormField>");const{id:i}=n;return{id:i,name:t.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},D=c.createContext({}),f=c.forwardRef(({className:t,...n},o)=>{const a=c.useId();return e.jsx(D.Provider,{value:{id:a},children:e.jsx("div",{ref:o,className:z("space-y-2",t),...n})})});f.displayName="FormItem";const y=c.forwardRef(({className:t,...n},o)=>{const{error:a,formItemId:s}=M();return e.jsx(Y,{ref:o,className:z(a&&"text-destructive",t),htmlFor:s,...n})});y.displayName="FormLabel";const j=c.forwardRef(({...t},n)=>{const{error:o,formItemId:a,formDescriptionId:s,formMessageId:i}=M();return e.jsx(G,{ref:n,id:a,"aria-describedby":o?`${s} ${i}`:`${s}`,"aria-invalid":!!o,...t})});j.displayName="FormControl";const ke=c.forwardRef(({className:t,...n},o)=>{const{formDescriptionId:a}=M();return e.jsx("p",{ref:o,id:a,className:z("text-sm text-muted-foreground",t),...n})});ke.displayName="FormDescription";const N=c.forwardRef(({className:t,children:n,...o},a)=>{const{error:s,formMessageId:i}=M(),d=s?String(s?.message):n;
1return d?e.jsx("p",{ref:a,id:i,className:z("text-sm font-medium text-destructive",t),...o,children:d}):null});N.displayName="FormMessage";const Ne=H({sellingPrice:K(A,U().refine(t=>t>0,{message:"Selling price must be greater than 0"})),cost:K(A,U()),buyerProtection:R(["standard","pro"]),articleVerification:Q(),region:R(["eu","uk","us"])}),ze=({onSubmit:t})=>{const n=E(),o=se({resolver:ne(Ne),defaultValues:{sellingPrice:0,cost:0,buyerProtection:"standard",articleVerification:!1,region:"eu"}}),{errors:a}=o.formState;return e.jsx(Ve,{...o,children:e.jsxs("form",{onSubmit:o.handleSubmit(t,console.log),className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx(k,{control:o.control,name:"sellingPrice",render:({field:{value:s,onChange:i,onBlur:d,name:h,ref:b}})=>e.jsxs(f,{children:[e.jsx(y,{children:e.jsx(p,{children:e.jsxs(m,{children:[e.jsxs(x,{className:"flex items-center space-x-1",children:[e.jsx("span",{children:e.jsx(r,{id:"selling-price",defaultMessage:"Selling Price"})}),e.jsx(u,{className:"h-4 w-4"})]}),e.jsx(g,{className:"max-w-[200px] text-center",children:e.jsx(r,{id:"selling-price-tooltip",defaultMessage:"The selling price you have set for your listing on Vinted."})})]})})}),e.jsx(j,{children:e.jsx(w,{type:"text",inputMode:"decimal",placeholder:n.formatMessage({id:"selling-price",defaultMessage:"Selling Price"}),value:s,onChange:v=>i(C(v.target.value)),onBlur:d,name:h,ref:b})}),a.sellingPrice&&e.jsx("p",{className:"text-sm font-medium text-destructive",children:e.jsx(r,{id:"selling-price-error",defaultMessage:"Selling price must be greater than 0"})})]})}),e.jsx(k,{control:o.control,name:"cost",render:({field:{value:s,onChange:i,onBlur:d,name:h,ref:b}})=>e.jsxs(f,{children:[e.jsx(y,{children:e.jsx(p,{children:e.jsxs(m,{children:[e.jsxs(x,{className:"flex items-center space-x-1",children:[e.jsx("span",{children:e.jsx(r,{id:"cost",defaultMessage:"Cost"})}),e.jsx(u,{className:"h-4 w-4"})]}),e.jsx(g,{className:"max-w-[200px] text-center",children:e.jsx(r,{id:"cost-tooltip",defaultMessage:"Your total cost for the item"})})]})})}),e.jsx(j,{children:e.jsx(w,{type:"text",inputMode:"decimal",placeholder:n.formatMessage({id:"cost"}),value:s,onChange:v=>i(C(v.target.value)),onBlur:d,name:h,ref:b})}),e.jsx(N,{})]})}),e.jsx(k,{control:o.control,name:"buyerProtection",render:({field:{value:s,onChange:i}})=>e.jsxs(f,{children:[e.jsx(y,{children:e.jsx(p,{children:e.jsxs(m,{children:[e.jsxs(x,{className:"flex items-center space-x-1",children:[e.jsx("span",{children:e.jsx(r,{id:"buyer-protection",defaultMessage:"Buyer Protection"})}),e.jsx(u,{className:"h-4 w-4"})]}),e.jsxs(g,{className:"max-w-[300px]",children:[e.jsx("span",{children:e.jsx(r,{id:"buyer-protection-tooltip-1",defaultMessage:"Buyer Protection covers Vinted fee, secure payments, refunds, and customer support."})}),e.jsxs("ul",{children:[e.jsx("li",{children:e.jsx(r,{id:"buyer-protection-tooltip-2",defaultMessage:"Under €500: €0.70 + 5%"})}),e.jsx("li",{children:e.jsx(r,{id:"buyer-protection-tooltip-3",defaultMessage:"Over €500: 2%"})})]})]})]})})}),e.jsxs(S,{onValueChange:i,defaultValue:s,children:[e.jsx(j,{children:e.jsx(F,{children:e.jsx(T,{})})}),e.jsxs(I,{children:[e.jsx(V,{value:"standard",children:e.jsx(r,{id:"standard",defaultMessage:"Standard"})}),e.jsx(V,{value:"pro",children:e.jsx(r,{id:"pro",defaultMessage:"Pro"})})]})]}),e.jsx(N,{})]})}),e.jsx(k,{control:o.control,name:"region",render:({field:{value:s,onChange:i}})=>e.jsxs(f,{children:[e.jsx(y,{children:e.jsx(p,{children:e.jsxs(m,{children:[e.jsxs(x,{className:"flex items-center space-x-1",children:[e.jsx("span",{children:e.jsx(r,{id:"region",defaultMessage:"Region"})}),e.jsx(u,{className:"h-4 w-4"})]}),e.jsx(g,{className:"max-w-[300px]",children:e.jsx("span",{children:e.jsx(r,{id:"region-tooltip-1",defaultMessage:"Vinted's fees may vary by region"})})})]})})}),e.jsxs(S,{onValueChange:i,defaultValue:s,children:[e.jsx(j,{children:e.jsx(F,{children:e.jsx(T,{})})}),e.jsxs(I,{children:[e.jsx(V,{value:"eu",children:e.jsx(r,{id:"eu",defaultMessage:"European Union"})}),e.jsx(V,{value:"uk",children:e.jsx(r,{id:"uk",defaultMessage:"United Kingdom"})}),e.jsx(V,{value:"us",children:e.jsx(r,{id:"us",defaultMessage:"United States"})})]})]}),e.jsx(N,{})]})}),e.jsx(k,{control:o.control,name:"articleVerification",render:({field:{value:s,onChange:i}})=>e.jsxs(f,{className:"max-w-60 flex flex-row items-center justify-between",children:[e.jsx(y,{className:"mt-2",children:e.jsx(p,{children:e.jsxs(m,{children:[e.jsxs(x,{className:"flex items-center space-x-1",children:[e.jsx("span",{children:e.jsx(r,{id:"article-verification",defaultMessage:"Article Verification"})}),e.jsx(u,{className:"h-4 w-4"})]}),e.jsx(g,{className:"max-w-[200px] text-center",children:e.jsx(r,{id:"article-verification-tooltip",defaultMessage:"Vinted 
1will verify the article. The cost is {cost} {currency} for the buyer.",values:{cost:10,currency:"euro"}})})]})})}),e.jsx(j,{children:e.jsx(J,{checked:s,onCheckedChange:i})})]})}),e.jsx($,{type:"submit",children:e.jsx(r,{id:"submit-button",defaultMessage:"Calculate"})})]})})},Me=({sellDetails:t,chartKey:n,chartData:o})=>{const a=E(),s={amount:{label:"Amount"},profit:{label:a.formatMessage({id:"profit",defaultMessage:"Profit"}),color:"hsl(var(--db-chart-1))"},cost:{label:a.formatMessage({id:"cost",defaultMessage:"Cost"}),color:"hsl(var(--db-chart-2))"}};return e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx("div",{className:"flex items-center",children:e.jsxs("div",{className:"w-full p-6 rounded-md bg-muted",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("div",{className:"font-semibold",children:e.jsx(r,{id:"revenue",defaultMessage:"Revenue"})}),e.jsx("div",{className:"text-right",children:e.jsx(l,{value:t.revenue,style:"currency",currency:t.currency})})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("div",{children:e.jsx(r,{id:"cost",defaultMessage:"Cost"})}),e.jsx("div",{className:"text-right",children:e.jsx(l,{value:t.cost,style:"currency",currency:t.currency})})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("div",{children:e.jsx(r,{id:"buyer-protection",defaultMessage:"Buyer Protection"})}),e.jsx("div",{className:"text-right",children:e.jsx(l,{value:t.buyerProtectionFee,style:"currency",currency:t.currency})})]}),t.articleVerificationFee>0&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("div",{children:e.jsx(r,{id:"article-verification",defaultMessage:"Article verification"})}),e.jsx("div",{className:"text-right",children:e.jsx(l,{value:t.articleVerificationFee,style:"currency",currency:t.currency})})]}),e.jsxs("div",{className:"flex justify-between font-semibold",children:[e.jsx("div",{children:e.jsx(p,{children:e.jsxs(m,{children:[e.jsxs(x,{className:"flex items-center space-x-1",children:[e.jsx("span",{children:e.jsx(r,{id:"buyer-pay",defaultMessage:"Buyer pay"})}),e.jsx(u,{className:"h-4 w-4"})]}),e.jsx(g,{className:"max-w-[200px] text-center",children:e.jsx(r,{id:"buyer-pay-tooltip",defaultMessage:"To this amount, the buyer will pay VAT and shipping fees based on their country’s rate."})})]})})}),e.jsx("div",{className:"text-right",children:e.jsx(l,{value:t.buyerPay,style:"currency",currency:t.currency})})]}),e.jsxs("div",{className:"flex justify-between font-semibold",children:[e.jsx("div",{children:e.jsx(r,{id:"profit",defaultMessage:"Profit"})}),e.jsx("div",{className:"text-right",children:e.jsx(l,{value:t.profit,style:"currency",currency:t.currency})})]})]})}),e.jsxs("div",{children:[e.jsx("div",{children:e.jsx("div",{className:"text-center leading-none tracking-tight text-xl font-semibold",children:e.jsx(r,{id:"distribution-revenue",defaultMessage:"Distribution of revenue"})})}),e.jsx(ae,{config:s,className:"mx-auto aspect-square",children:e.jsxs(de,{children:[e.jsx(ce,{cursor:!1,content:e.jsx(le,{hideLabel:!0})}),e.jsx(ue,{animationDuration:700,data:o,dataKey:"amount",nameKey:"category",innerRadius:60,strokeWidth:5,children:e.jsx(pe,{content:({viewBox:i})=>{if(i&&"cx"in i&&"cy"in i)return e.jsx("text",{x:i.cx,y:i.cy,textAnchor:"middle",dominantBaseline:"middle",children:e.jsx("tspan",{x:i.cx,y:i.cy,className:"fill-foreground text-xl font-bold",children:e.jsx(l,{value:t.revenue,style:"currency",currency:t.currency})})})}})})]})},n)]})]})},Pe=({sellDetails:t})=>e.jsxs("div",{className:"mt-12 flex flex-col space-y-6 md:space-y-0 md:flex-row justify-around",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"uppercase",children:e.jsx(r,{id:"profit",defaultMessage:"Profit"})}),e.jsx("div",{className:"font-semibold text-2xl",children:e.jsx(l,{value:t.profit,style:"currency",currency:t.currency})})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"uppercase",children:e.jsx(r,{id:"total-fees",defaultMessage:"Total Vinted Fees"})}),e.jsx("div",{className:"font-semibold text-2xl",children:e.jsx(l,{value:t.totalFees,style:"currency",currency:t.currency})})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"uppercase",children:e.jsx(r,{id:"profit-margin",defaultMessage:"Profit margin"})}),e.jsxs("div",{className:"font-semibold text-2xl",children:[t.profitMargin," %"]})]})]}),we=({locale:t})=>{const[n,o]=c.useState(ee()),[a,s]=c.useState(q(n)),[i,d]=c.useState(0),h=v=>{const P=te(v);o(P),s(q(P)),d(O=>O+1)},b=ve(t);return e.jsx(W,{messages:b,locale:t,children:e.jsx("div",{children:e.jsx(Z,{className:"mx-auto w-full max-w-4xl",children:e.jsxs(_,{className:"py-12 px-5 md:px-20",children:[e.jsx(ze,{onSubmit:h}),e.jsx(X,{className:"my-8"}),e.jsx(Me,{sellDetails:n,chartData:a,chartKey:i}),e.jsx(Pe,{sellDetails:n})]})})})})},Ke=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"}));
1export{Ve as F,k as a,f as b,y as c,j as d,N as e,Ke as i,M as u};

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.