PageSourceSearch

https://alinhafood.com.br/_next/static/chunks/5891.90df9848c4e22e6f.js

js alinhafood.com.br collected 2026-09-24 14:35:34 UTC 19,861 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5891],{21190:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(71847).A)("pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]])},65891:(e,t,a)=>{a.r(t),a.d(t,{default:()=>N});var r=a(95155),s=a(12115),l=a(16053),n=a(89559),o=a(6191),i=a(47937),d=a(21190),c=a(71360),u=a(65229),m=a(35299),x=a(46046),p=a(67592),b=a(78384),h=a(14272),f=a(28394),g=a(1790);async function v(){var e,t;let{data:a}=await (0,h.U)("admin").auth.getSession();return null!=(t=null==(e=a.session)?void 0:e.access_token)?t:""}function j(){return{tempId:"tmp_".concat(Math.random().toString(36).slice(2,9)),inventory_id:"",quantidade:"",unidade:"",fator_conversao:"1"}}function N(){let{showToast:e}=(0,p.d)(),{restaurantId:t}=(0,b.p)(),[a,N]=(0,s.useState)([]),[y,w]=(0,s.useState)(!0),[k,_]=(0,s.useState)([]),[S,C]=(0,s.useState)([]),[E,z]=(0,s.useState)(!1),[q,A]=(0,s.useState)(null),[I,F]=(0,s.use
1State)(""),[T,P]=(0,s.useState)(""),[U,H]=(0,s.useState)("1"),[O,B]=(0,s.useState)("unidade"),[Z,M]=(0,s.useState)(""),[J,Q]=(0,s.useState)(""),[R,L]=(0,s.useState)([j()]),[D,G]=(0,s.useState)(!1),[V,K]=(0,s.useState)(null),[W,X]=(0,s.useState)(!1),Y=(0,s.useCallback)(async()=>{if(!t){N([]),w(!1);return}w(!0);try{let a=await v(),r=(0,f.H)("/api/admin/estoque/fichas-tecnicas",t,{ativo:!0}),s=await fetch(r,{headers:{authorization:"Bearer ".concat(a)}});s.ok?N(await s.json()):e("Erro ao carregar fichas t\xe9cnicas.","error")}catch(t){e("Erro ao carregar fichas t\xe9cnicas.","error")}finally{w(!1)}},[t,e]),$=(0,s.useCallback)(async()=>{if(t)try{let a=(0,h.U)("admin"),{data:r,error:s}=await a.from("products").select("id, name, price, active").eq("restaurant_id",t).eq("active",!0).order("name");if(s){console.error("Erro ao carregar produtos:",s),e("N\xe3o foi poss\xedvel carregar os produtos.","error");return}_((null!=r?r:[]).map(e=>({id:String(e.id),name:String(e.name),price:e.price})))}catch(t){console.error("Erro ao carregar produtos:",t),e("N\xe3o foi poss\xedvel carregar os produtos.","error")}},[t,e]),ee=(0,s.useCallback)(async()=>{if(t)try{let a=(0,h.U)("admin"),{data:r,error:s}=await a.from("inventory").select("id, name, unit, custo_medio").eq("restaurant_id",t).order("name");if(s){console.error("Erro ao carregar insumos:",s),e("N\xe3o foi poss\xedvel carregar os insumos.","error");return}C((null!=r?r:[]).map(e=>{var t;return{id:String(e.id),name:String(e.name),unit:String(null!=(t=e.unit)?t:"un"),custo_medio:e.custo_medio}}))}catch(t){console.error("Erro ao carregar insumos:",t),e("N\xe3o foi poss\xedvel carregar os insumos.","error")}},[t,e]);(0,s.useEffect)(()=>{Y(),$(),ee()},[Y,$,ee]);let et=()=>{A(null),F(""),P(""),H("1"),B("unidade"),M(""),Q(""),L([j()]),z(!0)},ea=()=>{D||z(!1)},er=(e,t,a)=>{L(r=>r.map(r=>{if(r.tempId!==e)return r;let s={...r,[t]:a};if("inventory_id"===t&&!r.unidade){let e=S.find(e=>e.id===a);(null==e?void 0:e.unit)&&(s.unidade=e.unit)}return s}))},es=async()=>{if(D)return;if(!t)return e("Selecione um restaurante.","error");if(!I)return e("Selecione o produto do card\xe1pio.","error");if(!T.trim())return e("O nome da ficha \xe9 obrigat\xf3rio.","error");let a=Number(String(U).replace(",","."));if(!Number.isFinite(a)||a<=0)return e("Rendimento deve ser maior que zero.","error");let r=R.map(e=>({...e,qNum:Number(String(e.quantidade).replace(",",".")),fNum:Number(String(e.fator_conversao).replace(",","."))})).filter(e=>e.inventory_id);if(0===r.length)return e("Adicione pelo menos um insumo.","error");for(let t of r){if(!Number.isFinite(t.qNum)||t.qNum<=0)return e("Quantidade do insumo deve ser maior que zero.","error");if(!t.unidade.trim())return e("Informe a unidade de cada insumo.","error");if(!Number.isFinite(t.fNum)||t.fNum<=0)return e("Fator de convers\xe3o deve ser maior que zero.","error")}G(!0);try{var s,l,n;let o=await v(),i=J?Number(J):null,d={produto_id:I,nome:T.trim(),rendimento:a,unidade_rendimento:O.trim()||"unidade",modo_preparo:Z.trim()||null,tempo_preparo_min:Number.isFinite(i)?i:null},c=r.map(e=>({inventory_id:e.inventory_id,quantidade:e.qNum,unidade:e.unidade.trim(),fator_conversao:e.fNum}));if(q){let e=(0,f.H)("/api/admin/estoque/fichas-tecnicas/".concat(q),t),a=await fetch(e,{method:"PUT",headers:{authorization:"Bearer ".concat(o),"content-type":"application/json"},body:JSON.stringify((0,f.o)(t,d))});if(!a.ok){let e=await a.json().catch(()=>({error:"Erro ao atualizar ficha."}));throw Error(null!=(s=e.error)?s:"Erro ao atualizar ficha.")}let r=(0,f.H)("/api/admin/estoque/fichas-tecnicas/".concat(q,"/itens"),t),n=await fetch(r,{method:"PUT",headers:{authorization:"Bearer ".concat(o),"content-type":"application/json"},body:JSON.stringify((0,f.o)(t,{itens:c}))});if(!n.ok){let e=await n.json().catch(()=>({error:"Erro ao salvar insumos."}));throw Error(null!=(l=e.error)?l:"Erro ao salvar insumos.")}}else{let e=(0,f.H)("/api/admin/estoque/fichas-tecnicas",t),a=await fetch(e,{method:"POST",headers:{authorization:"Bearer ".concat(o),"content-type":"application/json"},body:JSON.stringify((0,f.o)(t,{...d,itens:c}))});if(!a.ok){let e=await a.json().catch(()=>({error:"Erro ao criar ficha."}));throw Error(null!=(n=e.error)?n:"Erro ao criar ficha.")}}e(q?"Ficha t\xe9cnica atualizada.":"Ficha t\xe9cnica criada.","success"),z(!1),await Y()}catch(t){e(t instanceof Error?t.message:"Erro ao salvar ficha.","error")}finally{G(!1)}},el=async()=>
1{if(V&&t){X(!0);try{let r=await v(),s=(0,f.H)("/api/admin/estoque/fichas-tecnicas/".concat(V.id),t),l=await fetch(s,{method:"DELETE",headers:{authorization:"Bearer ".concat(r)}});if(!l.ok){var a;let e=await l.json().catch(()=>({error:"Erro ao excluir."}));throw Error(null!=(a=e.error)?a:"Erro ao excluir.")}e("Ficha exclu\xedda.","success"),K(null),await Y()}catch(t){e(t instanceof Error?t.message:"Erro ao excluir.","error")}finally{X(!1)}}};return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-xl font-black text-slate-900",children:"Fichas T\xe9cnicas"}),(0,r.jsx)("p",{className:"text-sm text-slate-500 mt-0.5",children:"Ingredientes e insumos de cada produto do card\xe1pio"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)("button",{type:"button",onClick:Y,className:"flex items-center gap-2 px-4 py-2 bg-white border border-slate-200 rounded-xl text-sm font-bold text-slate-600 hover:bg-slate-50 cursor-pointer transition-colors",children:[(0,r.jsx)(n.A,{size:14})," Atualizar"]}),(0,r.jsxs)("button",{type:"button",onClick:et,className:"flex items-center gap-2 px-4 py-2 bg-blue-600 text-white rounded-xl text-sm font-black hover:bg-blue-700 cursor-pointer transition-colors shadow-md",children:[(0,r.jsx)(o.A,{size:14})," Nova Ficha"]})]})]}),y?(0,r.jsx)(g.He,{}):0===a.length?(0,r.jsxs)("div",{className:"bg-white rounded-2xl border border-slate-100 p-12 text-center",children:[(0,r.jsx)(i.A,{size:32,className:"mx-auto text-slate-300 mb-3"}),(0,r.jsx)("p",{className:"text-slate-400 font-bold",children:"Nenhuma ficha t\xe9cnica cadastrada"}),(0,r.jsxs)("p",{className:"text-sm text-slate-400 mt-1",children:["Clique em ",(0,r.jsx)("strong",{children:"Nova Ficha"})," para vincular insumos a um produto do card\xe1pio."]}),(0,r.jsxs)("button",{type:"button",onClick:et,className:"mt-5 inline-flex items-center gap-2 px-5 py-2.5 bg-blue-600 text-white rounded-xl text-sm font-black hover:bg-blue-700 cursor-pointer transition-colors shadow-md",children:[(0,r.jsx)(o.A,{size:14})," Cadastrar primeira ficha"]})]}):(0,r.jsx)("div",{className:"space-y-3",children:a.map(e=>{var t;let a=null!=(t=e.ficha_tecnica_itens)?t:[],s=a.reduce((e,t)=>{var a,r,s,l;return e+Number(null!=(r=t.quantidade)?r:0)*Number(null!=(s=t.fator_conversao)?s:1)*Number(null!=(l=null==(a=t.inventory)?void 0:a.custo_medio)?l:0)},0);return(0,r.jsx)("div",{className:"bg-white rounded-2xl border border-slate-100 shadow-sm p-5",children:(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"font-black text-slate-900",children:e.nome}),(0,r.jsxs)("p",{className:"text-xs text-slate-400 mt-0.5",children:["Rendimento: ",e.rendimento," ",e.unidade_rendimento]}),(0,r.jsxs)("p",{className:"text-xs text-slate-500 mt-1",children:[a.length," insumo",1===a.length?"":"s"]})]}),(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsxs)("div",{className:"text-right",children:[(0,r.jsx)("p",{className:"text-xs text-slate-400 uppercase tracking-widest font-bold",children:"Custo/por\xe7\xe3o"}),(0,r.jsx)("p",{className:"text-lg font-black text-blue-600",children:(0,l.TZ)(s)})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("button",{type:"button",onClick:()=>(e=>{var t,a,r,s,l,n;A(e.id),F(null!=(t=e.produto_id)?t:""),P(null!=(a=e.nome)?a:""),H(String(null!=(r=e.rendimento)?r:"1")),B(null!=(s=e.unidade_rendimento)?s:"unidade"),M(null!=(l=e.modo_preparo)?l:""),Q(null!=e.tempo_preparo_min?String(e.tempo_preparo_min):"");let o=null!=(n=e.ficha_tecnica_itens)?n:[];L(0===o.length?[j()]:o.map(e=>{var t,a,r;return{tempId:e.id,id:e.id,inventory_id:e.inventory_id,quantidade:String(null!=(t=e.quantidade)?t:""),unidade:null!=(a=e.unidade)?a:"",fator_conversao:String(null!=(r=e.fator_conversao)?r:"1")}})),z(!0)})(e),title:"Editar",className:"p-1.5 rounded-lg bg-blue-600/10 text-blue-600 hover:bg-blue-600/20 cursor-pointer transition-colors",children:(0,r.jsx)(d.A,{size:13})}),(0,r.jsx)("button",{type:"button",onClick:()=>K({id:e.id,nome:e.nome}),title:"Excluir",className:"p-1.5 rounded-lg bg-red-50 text-red-500 hover:bg-red-100 cursor-pointer transition-colors",children:(0,r.jsx)(c.A,{size:13})})]})]})]})},e.id)})}),E&&(0,r.jsx)("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/50 p-4",onClick:ea,children:(0,r.jsxs)("div",{className:"w-full max-w-5xl max-h-[90vh] overflow-y-auto rounded-2xl bg-white p-6 shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-xl font-black text-slate-900",children:q?"Editar Ficha T\xe9cnica":"Nova Ficha T\xe9cnica"}),(0,r.jsx)("p",{className:"text-xs text-slate-500 mt-0.5",children:"Vincule os insumos consumidos a cada unidade vendida."})]}),(0,r.jsx)("button",{type:"button",onClick:ea,disabled:D,className:"p-2 text-slate-400 hover:bg-slate-100 rounded-full cursor-pointer disabled:opacity-50",children:(0,r.jsx)(u.A,{size:20})})]}),(0,r.jsxs)("div",{className:"space-y-5",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"mb-1 block text-[10px] font-black uppercase tracking-widest text-slate-500",children:"Produto do card\xe1pio *"}),(0,r.jsxs)("select",{value:I,onChange:e=>{if(F(e.target.value),!T.trim()){let t=k.find(t=>
1t.id===e.target.value);t&&P(t.name)}},className:"w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm focus:border-blue-500 focus:outline-none",children:[(0,r.jsx)("option",{value:"",children:"Selecione um produto…"}),k.map(e=>(0,r.jsxs)("option",{value:e.id,children:[e.name,null!=e.price?" — ".concat((0,l.TZ)(e.price)):""]},e.id))]}),0===k.length&&(0,r.jsx)("p",{className:"text-xs text-amber-600 mt-1",children:"Nenhum produto ativo no card\xe1pio."})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"mb-1 block text-[10px] font-black uppercase tracking-widest text-slate-500",children:"Nome da ficha *"}),(0,r.jsx)("input",{value:T,onChange:e=>P(e.target.value),placeholder:"Ex: Pizza Margherita G",className:"w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm focus:border-blue-500 focus:outline-none"})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"mb-1 block text-[10px] font-black uppercase tracking-widest text-slate-500",children:"Rendimento *"}),(0,r.jsx)("input",{type:"number",min:"0",step:"0.01",value:U,onChange:e=>H(e.target.value),className:"w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm focus:border-blue-500 focus:outline-none"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"mb-1 block text-[10px] font-black uppercase tracking-widest text-slate-500",children:"Unidade"}),(0,r.jsx)("input",{value:O,onChange:e=>B(e.target.value),placeholder:"unidade",className:"w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm focus:border-blue-500 focus:outline-none"})]})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,r.jsxs)("div",{className:"md:col-span-2",children:[(0,r.jsx)("label",{className:"mb-1 block text-[10px] font-black uppercase tracking-widest text-slate-500",children:"Modo de preparo (opcional)"}),(0,r.jsx)("textarea",{value:Z,onChange:e=>M(e.target.value),rows:2,placeholder:"Anota\xe7\xf5es para a cozinha…",className:"w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm focus:border-blue-500 focus:outline-none resize-none"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"mb-1 block text-[10px] font-black uppercase tracking-widest text-slate-500",children:"Tempo de preparo (min)"}),(0,r.jsx)("input",{type:"number",min:"0",step:"1",value:J,onChange:e=>Q(e.target.value),placeholder:"Ex: 15",className:"w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm focus:border-blue-500 focus:outline-none"})]})]}),(0,r.jsxs)("div",{className:"rounded-2xl border border-slate-200 bg-slate-50/50 p-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-black text-slate-800",children:"Insumos por unidade"}),(0,r.jsx)("p",{className:"text-[11px] text-slate-500",children:"Quantidades debitadas do estoque a cada venda."})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>L(e=>[...e,j()]),className:"flex items-center gap-1 px-3 py-1.5 bg-white border border-slate-200 rounded-lg text-xs font-bold text-slate-700 hover:bg-slate-100 cursor-pointer",children:[(0,r.jsx)(o.A,{size:12})," Adicionar"]})]}),0===S.length&&(0,r.jsx)("div",{className:"rounded-xl bg-amber-50 border border-amber-200 p-3 mb-3",children:(0,r.jsx)("p",{className:"text-xs font-bold text-amber-700",children:"Cadastre insumos primeiro em Estoque → Ingredientes e Insumos."})}),(0,r.jsx)("div",{className:"space-y-2",children:R.map((e,t)=>(0,r.jsxs)("div",{className:"grid grid-cols-12 gap-2 items-end bg-white rounded-xl border border-slate-200 p-2.5",children:[(0,r.jsxs)("div",{className:"col-span-12 md:col-span-4",children:[0===t&&(0,r.jsx)("label",{className:"mb-1 block text-[10px] font-black uppercase tracking-widest text-slate-500",children:"Insumo"}),(0,r.jsxs)("select",{value:e.inventory_id,onChange:t=>er(e.tempId,"inventory_id",t.target.value),className:"w-full rounded-lg border border-slate-200 bg-slate-50 px-3 py-2 text-sm focus:border-blue-500 focus:outline-none",children:[(0,r.jsx)("option",{value:"",children:"Selecione…"}),S.map(e=>(0,r.jsxs)("option",{value:e.id,children:[e.name," (",e.unit,")",null!=e.custo_medio?" — ".concat((0,l.TZ)(e.custo_medio)
1):""]},e.id))]}),(()=>{let t=S.find(t=>t.id===e.inventory_id);return t?(0,r.jsxs)("p",{className:"mt-1 text-[11px] font-bold text-emerald-600",children:["Custo: ",(0,l.TZ)(t.custo_medio)," / ",t.unit]}):null})()]}),(0,r.jsxs)("div",{className:"col-span-6 md:col-span-2",children:[0===t&&(0,r.jsx)("label",{className:"mb-1 block text-[10px] font-black uppercase tracking-widest text-slate-500",children:"Quantidade"}),(0,r.jsx)("input",{type:"number",min:"0",step:"0.0001",value:e.quantidade,onChange:t=>er(e.tempId,"quantidade",t.target.value),placeholder:"0",className:"w-full rounded-lg border border-slate-200 bg-slate-50 px-3 py-2 text-sm focus:border-blue-500 focus:outline-none"})]}),(0,r.jsxs)("div",{className:"col-span-6 md:col-span-2",children:[0===t&&(0,r.jsx)("label",{className:"mb-1 block text-[10px] font-black uppercase tracking-widest text-slate-500",children:"Unidade"}),(0,r.jsx)("input",{value:e.unidade,onChange:t=>er(e.tempId,"unidade",t.target.value),placeholder:"un",className:"w-full rounded-lg border border-slate-200 bg-slate-50 px-3 py-2 text-sm focus:border-blue-500 focus:outline-none"})]}),(0,r.jsxs)("div",{className:"col-span-4 md:col-span-1",children:[0===t&&(0,r.jsx)("label",{className:"mb-1 block text-[10px] font-black uppercase tracking-widest text-slate-500",children:"Fator"}),(0,r.jsx)("input",{type:"number",min:"0",step:"0.0001",value:e.fator_conversao,onChange:t=>er(e.tempId,"fator_conversao",t.target.value),className:"w-full rounded-lg border border-slate-200 bg-slate-50 px-2 py-2 text-sm focus:border-blue-500 focus:outline-none"})]}),(0,r.jsxs)("div",{className:"col-span-6 md:col-span-2",children:[0===t&&(0,r.jsx)("label",{className:"mb-1 block text-[10px] font-black uppercase tracking-widest text-slate-500",children:"Custo"}),(()=>{var t;let a=S.find(t=>t.id===e.inventory_id),s=Number(String(e.quantidade).replace(",","."))*Number(String(e.fator_conversao).replace(",","."))*Number(null!=(t=null==a?void 0:a.custo_medio)?t:0);return(0,r.jsx)("div",{className:"w-full rounded-lg border border-emerald-100 bg-emerald-50 px-3 py-2 text-sm font-bold text-emerald-600",children:(0,l.TZ)(Number.isFinite(s)?s:0)})})()]}),(0,r.jsx)("div",{className:"col-span-2 md:col-span-1 flex justify-end",children:(0,r.jsx)("button",{type:"button",onClick:()=>{let t;return t=e.tempId,L(e=>e.length<=1?e:e.filter(e=>e.tempId!==t))},disabled:R.length<=1,className:"p-2 rounded-lg bg-red-50 text-red-500 hover:bg-red-100 cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:(0,r.jsx)(c.A,{size:13})})})]},e.tempId))})]})]}),(0,r.jsxs)("div",{className:"mt-6 flex gap-3 pt-4 border-t border-slate-100",children:[(0,r.jsx)("button",{type:"button",onClick:ea,disabled:D,className:"flex-1 rounded-xl bg-slate-100 py-3 text-sm font-bold text-slate-600 hover:bg-slate-200 cursor-pointer disabled:opacity-50",children:"Cancelar"}),(0,r.jsxs)("button",{type:"button",onClick:es,disabled:D,className:"flex-1 rounded-xl bg-blue-600 py-3 text-sm font-black text-white shadow-md hover:bg-blue-700 cursor-pointer disabled:opacity-50 inline-flex items-center justify-center gap-2",children:[D?(0,r.jsx)(m.A,{size:16,className:"animate-spin"}):(0,r.jsx)(x.A,{size:16}),D?"Salvando…":"Salvar ficha"]})]})]})}),V&&(0,r.jsx)("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/50 p-4",onClick:()=>!W&&K(null),children:(0,r.jsxs)("div",{className:"w-full max-w-md rounded-2xl bg-white p-6 shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)("h3",{className:"text-lg font-black text-slate-900",children:"Excluir ficha t\xe9cnica"}),(0,r.jsxs)("p",{className:"text-sm text-slate-600 mt-2",children:["A ficha ",(0,r.jsxs)("strong",{children:['"',V.nome,'"']})," ser\xe1 desativada. O produto n\xe3o ter\xe1 mais baixa autom\xe1tica de insumos a cada venda."]}),(0,r.jsxs)("div",{className:"mt-5 flex gap-3",children:[(0,r.jsx)("button",{type:"button",onClick:()=>K(null),disabled:W,className:"flex-1 rounded-xl bg-slate-100 py-3 text-sm font-bold text-slate-600 hover:bg-slate-200 cursor-pointer disabled:opacity-50",children:"Cancelar"}),(0,r.jsx)("button",{type:"button",onClick:el,disabled:W,className:"flex-1 rounded-xl bg-red-600 py-3 text-sm font-black text-white hover:bg-red-700 cursor-pointer disabled:opacity-50",children:W?"Excluindo…":"Excluir"})]})]})})]})}}}]);

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.