1import{r as c,j as e,s as F}from"./index-bMFZPluE.js";import{g as G,b as U,f as k,i as z,H as V,h as O}from"./homeTutoringProposal-BrGXMNR5.js";import{L as W,a as S}from"./laborCostReference-CzuQcRj4.js";import"./familyAgreement-Bm5j7ljB.js";import"./pricingEngine-DmHUGCKM.js";import"./educationCatalog-pqwMnMBs.js";import"./familyReceiptPolicy-egdKJ3_6.js";const w="w-full rounded-xl border border-[#16A0EB33] bg-white px-3 py-2 text-xs font-bold text-gray-800 outline-none transition focus:border-[#16A0EB] focus:ring-2 focus:ring-[#16A0EB24]",R="w-full rounded-xl border border-[#16A0EB4D] bg-white px-3 py-2 text-sm font-black text-[#066591] outline-none shadow-sm transition placeholder:text-[#16A0EB66] focus:border-[#FC9A05] focus:ring-2 focus:ring-[#FC9A0526]",Z=[{key:"1h",label:"60 min"},{key:"1h5",label:"90 min"},{key:"2h",label:"120 min"}],J=[{id:"primary",label:"Primaria",activeClass:"bg-[#066591] text-white shadow-sm"},{id:"eso",label:"ESO",activeClass:"bg-[#16A0EB] text-white shadow-sm"},{id:"bach",label:"Bach / PAU",activeClass:"bg-[#FC9A05] text-white shadow-sm"}],Q=async r=>{var d;if((d=navigator.clipboard)!=null&&d.writeText){await navigator.clipboard.writeText(r);return}const i=document.createElement("textarea");i.value=r,i.style.position="fixed",i.style.opacity="0",document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i)},Y=({pricing:r,isLocalPreview:i,onChange:d})=>{const[u,g]=c.useState("primary"),[y,f]=c.useState(""),[b,s]=c.useState(""),[j,o]=c.useState(""),[A,N]=c.useState(""),[v,a]=c.useState(""),[l,x]=c.useState("Gabriela · Coordinacion Profe en Casa"),[n,p]=c.useState(["continuity","essential","concentrated"]),[m,h]=c.useState(""),[L,P]=c.useState(!1),B=G(r,u),$=n.map(t=>B.find(_=>_.id===t)).filter(t=>!!t),D=U({familyName:y,studentName:b,course:j,subject:A,locality:v,signature:l,quotes:$}),I=t=>{if(P(!1),h(""),n.includes(t)){if(n.length===1){h("Debe quedar al menos una opcion en la propuesta.");return}p(n.filter(_=>_!==t));return}if(n.length>=3){h("Para no saturar a la familia, la propuesta admite un maximo de 3 opciones.");return}p([...n,t])},M=async()=>{await Q(D),P(!0)},E=(t,_)=>e.jsxs("div",{className:"rounded-xl border border-[#16A0EB2E] bg-gradient-to-r from-[#16A0EB12] to-[#FC9A0512] p-3",children:[e.jsx("p",{className:"mb-2 text-[9px] font-black uppercase tracking-wider text-[#066591]",children:_}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:Z.map(C=>e.jsxs("label",{className:"block text-center",children:[e.jsx("span",{className:"mb-1 block text-[8px] font-black uppercase tracking-wider text-gray-500",children:C.label}),e.jsx("input",{type:"text",inputMode:"decimal",value:String(r[`domicilio_labor_family_price_${C.key}_${t}`]??""),onChange:T=>d(`domicilio_labor_family_price_${C.key}_${t}`,T.target.value),className:`${R} px-2 text-center`,"aria-label":`${_}, ${C.label}`}),e.jsx("span",{className:"mt-1 block text-[7px] font-black uppercase tracking-wider text-[#D86C00]",children:"EUR / sesion"})]},`${t}-${C.key}`))})]});return e.jsxs("section",{className:"overflow-hidden rounded-[32px] border border-[#16A0EB33] bg-white text-gray-900 shadow-xl shadow-[#16A0EB1F]",children:[e.jsxs("div",{className:"relative overflow-hidden border-b border-[#FC9A0566] bg-gradient-to-br from-[#066591] via-[#16A0EB] to-[#FC9A05] px-6 py-6",children:[e.jsx("div",{className:"absolute -right-16 -top-20 h-48 w-48 rounded-full bg-white/20 blur-3xl"}),e.jsx("div",{className:"absolute -bottom-24 left-10 h-40 w-40 rounded-full bg-[#FC9A0540] blur-3xl"}),e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"rounded-full bg-white px-3 py-1 text-[9px] font-black uppercase tracking-[0.18em] text-[#066591] shadow-sm",children:"Oferta 2026/27"}),e.jsx("span",{className:"rounded-full border border-[#FC9A0580] bg-[#FC9A05] px-3 py-1 text-[9px] font-black uppercase tracking-[0.15em] text-white shadow-sm",children:i?"Borrador local seguro":"Pendiente de activacion"})]}),e.jsx("h2",{className:"max-w-xl text-2xl font-black leading-tight text-white",children:"Radar comercial a domicilio"}),e.jsx("p",{className:"mt-2 max-w-2xl text-xs font-medium leading-relaxed text-white/90",children:"Calcula precio, coste directo y margen. Genera una propuesta breve para WhatsApp sin tocar las clases ni los recibos historicos."})]})]}),e.jsxs("div",{className:"space-y-6 bg-gradient-to-b from-[#16A0EB12] via-white to-[#FC9A0512] p-6",children:[e.jsxs("div",{className:"space-y-4 rounded-2xl border border-[#16A0EB2E] bg-white p-4 shadow-sm shadow-[#16A0EB1A]",children:[e.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[9px] font-black uppercase tracking-[0.18em] text-[#066591]",children:"Tarifa final por sesion"}),e.jsx("p",{className:"mt-1 text-[10px] font-bold text-gray-500",children:"Apoyo educativo exento de IVA segun criterio de Direccion."})]}),e.jsxs("label",{className:"w-36",children:[e.jsx("span",{className:"mb-1 block text-[8px] font-black uppercase tracking-wider text-[#066591]",children:"Coste directo / hora"}),e.jsxs("span",{className:"relative block",children:[e.jsx("input",{type:"text",inputMode:"decimal",value:String(r.domicilio_labor_direct_cost_1h??""),onChange:t=>d("domicilio_labor_direct_cost_1h",t.target.value),className:R}),e.jsx("span",{className:"pointer-events-none absolute right-2 top-2.5 text-[10px] font-black text-[#D86C00]",children:"EUR"})]})]})]}),E("primary","Primaria"),E("eso","ESO"),E("bach","Bach / PAU"),e.jsxs("div",{className:"rounded-xl border border-[#FC9A054D] bg-[#FC9A051A] p-3",children:[e.jsx("p",{className:"text-[9px] font-black uppercase tracking-wider text-[#D86C00]",children:"Referencia laboral confirmada 2026/27"}),e.jsxs("div",{className:"mt-2 grid grid-cols-3 gap-2",children:[e.jsxs("div",{className:"rounded-lg bg-white/80 p-2 text-center",children:[e.jsx("p",{className:"text-[7px] font-black uppercase text-gray-500",children:"Liquido / h"}),e.jsx("p",{className:"mt-1 text-xs font-black text-[#066591]",children:k(S.netHourly)})]}),e.jsxs("div",{className:"rounded-lg bg-white/80 p-2 text-center",children:[e.jsx("p",{className:"text-[7px] font-black uppercase text-gray-500",children:"Bruto / h"}),e.jsx("p",{className:"mt-1 text-xs font-black text-[#066591]",children:k(S.grossHourly)})]}),e.jsxs("div",{className:"rounded-lg bg-white/80 p-2 text-center",children:[e.jsx("p",{className:"text-[7px] font-black uppercase text-gray-500",children:"Coste empresa / h"}),e.jsx("p",{className:"mt-1 text-xs font-black text-[#D86C00]",children:k(S.companyCostHourly)})]})]}),e.jsxs("p",{className:"mt-2 text-[9px] font-bold leading-relaxed text-[#D86C00]",children:["Calculado con una nomina de referencia confirmada de ",W.monthlyHours," horas para octubre de 2026. El liquido es orientativo y la nomina definitiva puede variar por retenciones y conceptos mensuales."]}),e.jsx("p",{className:"mt-1 text-[9px] font-bold leading-relaxed text-[#D86C00]",children:"El margen mostrado aun debe cubrir coordinacion, seleccion, sustituciones, administracion y beneficio."})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-3 flex flex-wrap items-end justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[9px] font-black uppercase tracking-[0.18em] text-[#066591]",children:"Cuadrante de opciones"}),e.jsx("p",{className:"mt-1 text-[10px] font-bold text-gray-500",children:"Selecciona entre 1 y 3 para el mensaje familiar."})]}),e.jsx("div",{className:"flex rounded-xl border border-[#16A0EB33] bg-white p-1 shadow-sm",children:J.map(t=>e.jsx("button",{type:"button",onClick:()=>g(t.id),className:`rounded-lg px-3 py-2 text-[9px] font-black uppercase tracking-wider transition ${u===t.id?t.activeClass:"text-gray-500 hover:bg-[#16A0EB14] hover:text-[#066591]"}`,children:t.label},t.id))})]}),e.jsx("div",{className:"grid gap-3 md:grid-cols-2",children:B.map(t=>{const _=n.includes(t.id);return e.jsxs("button",{type:"button",onClick:()=>I(t.id),className:`relative rounded-2xl border p-4 text-left transition ${_?"border-[#16A0EB] bg-[#16A0EB12] shadow-lg shadow-[#16A0EB1F]":"border-gray-200 bg-white hover:border-[#FC9A05] hover:bg-[#FC9A050F]"}`,children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"text-sm font-black text-[#066591]",children:t.name}),t.recommended&&e.jsx("span",{className:"rounded-full bg-[#FC9A05] px-2 py-0.5 text-[7px] font-black uppercase tracking-wider text-white",children:"Recomendada"})]}),e.jsx("p",{className:"mt-1 text-[10px] font-bold text-gray-500",children:t.summary})]}),e.jsx("span",{className:`flex h-6 w-6 shrink-0 items-center justify-center rounded-full border text-xs font-black ${_?"border-[#16A0EB] bg-[#16A0EB] text-white":"border-gray-300 bg-white text-transparent"}`,children:"OK"})]}),e.jsxs("div",{className:"mt-4 grid grid-cols-3 gap-2 border-t border-[#16A0EB2
16] pt-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[8px] font-black uppercase tracking-wider text-gray-500",children:"Sesion"}),e.jsx("p",{className:"mt-1 text-xs font-black text-gray-900",children:k(t.sessionPrice)})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[8px] font-black uppercase tracking-wider text-gray-500",children:"4 semanas"}),e.jsx("p",{className:"mt-1 text-xs font-black text-gray-900",children:k(t.fourWeekEstimate)})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[8px] font-black uppercase tracking-wider text-gray-500",children:"Margen / sesion"}),e.jsx("p",{className:"mt-1 text-xs font-black text-[#D86C00]",children:k(t.marginPerSession)}),e.jsxs("p",{className:"text-[8px] font-bold text-gray-500",children:[t.marginPercentage.toLocaleString("es-ES"),"%"]})]})]})]},t.id)})}),m&&e.jsx("p",{className:"mt-3 text-[10px] font-bold text-[#D86C00]",children:m}),e.jsx("p",{className:"mt-3 text-[9px] font-bold leading-relaxed text-gray-500",children:"El importe de 4 semanas es solo orientativo. El recibo mensual se calcula con las sesiones reales previstas en calendario."})]}),e.jsxs("div",{className:"rounded-2xl border border-[#16A0EB2E] bg-white p-4 text-gray-900 shadow-sm shadow-[#16A0EB1A]",children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("p",{className:"text-[9px] font-black uppercase tracking-[0.18em] text-[#066591]",children:"Generador de propuesta"}),e.jsx("p",{className:"mt-1 text-[10px] font-bold text-gray-500",children:"Completa solo lo que conozcas. Copiar no envia ningun mensaje."})]}),e.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[e.jsxs("label",{children:[e.jsx("span",{className:"mb-1 block text-[8px] font-black uppercase tracking-wider text-gray-500",children:"Nombre familiar"}),e.jsx("input",{value:y,onChange:t=>f(t.target.value),className:w,placeholder:"Ej. Maria"})]}),e.jsxs("label",{children:[e.jsx("span",{className:"mb-1 block text-[8px] font-black uppercase tracking-wider text-gray-500",children:"Alumno/a"}),e.jsx("input",{value:b,onChange:t=>s(t.target.value),className:w,placeholder:"Nombre opcional"})]}),e.jsxs("label",{children:[e.jsx("span",{className:"mb-1 block text-[8px] font-black uppercase tracking-wider text-gray-500",children:"Curso"}),e.jsx("input",{value:j,onChange:t=>o(t.target.value),className:w,placeholder:"Ej. 1 ESO"})]}),e.jsxs("label",{children:[e.jsx("span",{className:"mb-1 block text-[8px] font-black uppercase tracking-wider text-gray-500",children:"Asignatura"}),e.jsx("input",{value:A,onChange:t=>N(t.target.value),className:w,placeholder:"Ej. Matematicas"})]}),e.jsxs("label",{className:"sm:col-span-2",children:[e.jsx("span",{className:"mb-1 block text-[8px] font-black uppercase tracking-wider text-gray-500",children:"Localidad"}),e.jsx("input",{value:v,onChange:t=>a(t.target.value),className:w,placeholder:"Ej. La Zubia"})]}),e.jsxs("label",{className:"sm:col-span-2",children:[e.jsx("span",{className:"mb-1 block text-[8px] font-black uppercase tracking-wider text-gray-500",children:"Firma del mensaje"}),e.jsxs("select",{value:l,onChange:t=>x(t.target.value),className:w,children:[e.jsx("option",{value:"Gabriela · Coordinacion Profe en Casa",children:"Gabriela · Coordinacion"}),e.jsx("option",{value:"Francisco · Direccion Profe en Casa",children:"Francisco · Direccion"}),e.jsx("option",{value:"Equipo Profe en Casa",children:"Equipo Profe en Casa"})]})]})]}),z(v)&&e.jsxs("div",{className:"mt-3 rounded-xl border border-[#FC9A054D] bg-[#FC9A051A] px-3 py-2",children:[e.jsx("p",{className:"text-[9px] font-black uppercase tracking-wider text-[#D86C00]",children:"Alternativa local detectada"}),e.jsx("p",{className:"mt-1 text-[10px] font-bold leading-relaxed text-[#2D005D]",children:"El mensaje incluira Profe a 3 como opcion mas economica, pendiente de comprobar grupo compatible y plaza."})]}),e.jsxs("label",{className:"mt-4 block",children:[e.jsx("span",{className:"mb-1 block text-[8px] font-black uppercase tracking-wider text-gray-500",children:"Vista previa WhatsApp"}),e.jsx("textarea",{readOnly:!0,value:D,className:"min-h-[360px] w-full resize-y rounded-2xl border border-[#16A0EB2E] bg-[#16A0EB0D] p-4 text-[11px] font-medium leading-relaxed text-gray-700 outline-none"})]}),e.jsxs("div",{className:"mt-3 flex flex-wrap items-center justify-between gap-3",children:[e.jsx("p",{className:"text-[9px] font-bold text-gray-500",children:"Revisa profesor y horario antes de confirmar una plaza real."}),e.jsx("button",{type:"button",onClick:M,className:"rounded-xl bg-[#16A0EB] px-4 py-3 text-[10px] font-black uppercase tracking-wider text-white shadow-lg shadow-[#16A0EB33] transition hover:bg-[#066591] active:scale-95",children:L?"Texto copiado":"Copiar propuesta"})]})]})]})]})},H="profeencasa_pricing_draft_2026_2027",q=r=>{const i=r.online_family_price_1h_eso??14,d=r.online_family_price_1h5_eso??21,u=r.online_monitor_pay_1h_eso??8,g=r.online_monitor_pay_1h5_eso??12,y=r.online_family_price_1h_bach??14,f=r.online_family_price_1h5_bach??21,b=r.online_monitor_pay_1h_bach??9,s=r.online_monitor_pay_1h5_bach??13.5;return{...r,online_family_price_1h_primaria:r.online_family_price_1h_primaria??i,online_family_price_1h_eso12:r.online_family_price_1h_eso12??i,online_family_price_1h_eso34:r.online_family_price_1h_eso34??i,online_family_price_1h_adulto:r.online_family_price_1h_adulto??y,online_family_price_1h5_primaria:r.online_family_price_1h5_primaria??d,online_family_price_1h5_eso12:r.online_family_price_1h5_eso12??d,online_family_price_1h5_eso34:r.online_family_price_1h5_eso34??d,online_family_price_1h5_adulto:r.online_family_price_1h5_adulto??f,online_monitor_pay_1h_primaria:r.online_monitor_pay_1h_primaria??u,online_monitor_pay_1h_eso12:r.online_monitor_pay_1h_eso12??u,online_monitor_pay_1h_eso34:r.online_monitor_pay_1h_eso34??u,online_monitor_pay_1h_adulto:r.online_monitor_pay_1h_adulto??b,online_monitor_pay_1h5_primaria:r.online_monitor_pay_1h5_primaria??g,online_monitor_pay_1h5_eso12:r.online_monitor_pay_1h5_eso12??g,online_monitor_pay_1h5_eso34:r.online_monitor_pay_1h5_eso34??g,online_monitor_pay_1h5_adulto:r.online_monitor_pay_1h5_adulto??s}},K=r=>{if(typeof r=="number")return r;const i=String(r??"").replace(",",".").trim(),d=Number(i);return Number.isFinite(d)?d:0},oe=({onBack:r})=>{const i=typeof window<"u"&&["localhost","127.0.0.1"].includes(window.location.hostname),[d,u]=c.useState(!0),[g,y]=c.useState(!1),[f,b]=c.useState(null),[s,j]=c.useState({base_price_1h_eso:15,base_price_1h_bach:17,online_family_price_1h_primaria:14,online_family_price_1h_eso12:14,online_family_price_1h_eso34:14,online_family_price_1h_eso:14,online_family_price_1h_bach:14,online_family_price_1h_adulto:14,online_family_price_1h5_primaria:21,online_family_price_1h5_eso12:21,online_family_price_1h5_eso34:21,online_family_price_1h5_eso:21,online_family_price_1h5_bach:21,online_family_price_1h5_adulto:21,online_monitor_pay_1h_primaria:8,online_monitor_pay_1h_eso12:8,online_monitor_pay_1h_eso34:8,online_monitor_pay_1h_eso:8,online_monitor_pay_1h_bach:9,online_monitor_pay_1h_adulto:9,online_monitor_pay_1h5_primaria:12,online_monitor_pay_1h5_eso12:12,online_monitor_pay_1h5_eso34:12,online_monitor_pay_1h5_eso:12,online_monitor_pay_1h5_bach:13.5,online_monitor_pay_1h5_adulto:13.5,domicilio_family_price_1h_primaria:19,domicilio_family_price_1h5_primaria:29,domicilio_family_price_1h_eso12:20,domicilio_family_price_1h5_eso12:30,domicilio_family_price_1h_eso34:20,domicilio_family_price_1h5_eso34:30,domicilio_family_price_1h_bach:22,domicilio_family_price_1h5_bach:33,domicilio_family_price_1h_adulto:15,domicilio_family_price_1h5_adulto:22.5,domicilio_monitor_pay_1h_eso12:9,domicilio_monitor_pay_1h5_eso12:13.5,domicilio_monitor_pay_1h_eso34:10,domicilio_monitor_pay_1h5_eso34:15,domicilio_monitor_pay_1h_bach:11,domicilio_monitor_pay_1h5_bach:16.5,domicilio_monitor_pay_1h_adulto:10,domicilio_monitor_pay_1h5_adulto:15,...V,academy_family_price_1h5_primaria:12,academy_family_price_1h5_eso:13,academy_family_price_1h5_bach:15,monitor_pay_1h5_eso_1p:10.5,monitor_pay_1h5_eso_2p:12,monitor_pay_1h5_eso_3p:14,monitor_pay_1h5_bach_1p:14,monitor_pay_1h5_bach_2p:17,monitor_pay_1h5_bach_3p:20,discount_2_classes:3,discount_3_classes:6,discount_4_classes:8,stripe_link_1_extra:"",stripe_link_2_extra:"",stripe_link_3_extra:"",stripe_link_4_extra:"",stripe_link_pack_mensual:"",stripe_link_pack_bimestral:""});c.useEffect(()=>{(async()=>{const{data:l}=await F.from("global_settings").select("setting_value").eq("id","pricing_rules").single(),x=l==null?void 0:l.setting_value;let n=x&&typeof x=="object"&&!Array.isArray(x)?x:{};if(i)try{const m=window.localStorage.getItem(H);if(m){const h=JSON.parse(m);h&&typeof h=="object"&&!Array.isArray(h)&&(n={...n,...h})}}catch(m){console.warn("No se pudo recuperar el borrador local de tarifas.",m)}const p=O(q(n));j(m=>({...m,...p})),u(!1)})()},[]);const o=(a,l)=>{j(x=>({...x,[a]:l}))},A=async a=>{a.preventDefault(),y(!0),b(null);const l={...s};Object.keys(l).forEach(p=>{p.startsWith("stripe_link")||(l[p]=K(l[p]))}),l.online_family_price_1h_eso=l.online_family_price_1h_eso12,l.online_family_price_1h5_eso=l.online_family_price_1h5_eso12,l.online_monitor_pay_1h_eso=l.online_monitor_pay_1h_eso12,l.online_monitor_pay_1h5_eso=l.online_monitor_pay_1h5_eso12;const x={primaria:l.academy_family_price_1h5_primaria,eso:l.academy_family_price_1h5_eso,bach:l.academy_family_price_1h5_bach};
1if(Object.entries(x).forEach(([p,m])=>{[1,2,3,4].forEach(h=>{l[`family_price_1h5_${p}_${h}p`]=m})}),i){try{window.localStorage.setItem(H,JSON.stringify(l)),j(O(l)),b({tone:"success",text:"Borrador guardado en este navegador. Supabase y produccion no se han modificado."})}catch(p){console.error("No se pudo guardar el borrador local de tarifas.",p),b({tone:"error",text:"No se pudo guardar el borrador local. No se ha modificado Supabase ni produccion."})}y(!1);return}const{error:n}=await F.from("global_settings").upsert({id:"pricing_rules",setting_name:"Matriz de Tarifas y Enlaces",setting_value:l,updated_at:new Date().toISOString()});y(!1),n?(b({tone:"error",text:`Error al guardar las tarifas: ${n.message}`}),alert("â Error al guardar las tarifas: "+n.message)):(b({tone:"success",text:"Matriz de tarifas guardada correctamente."}),alert("â
¡Matriz de tarifas guardada con éxito en el núcleo!"))};if(d)return e.jsx("div",{className:"min-h-screen bg-[#F5F7FA] flex items-center justify-center",children:e.jsx("div",{className:"w-10 h-10 border-4 border-emerald-500 border-t-transparent rounded-full animate-spin"})});const N=(a,l)=>e.jsx("input",{type:"text",inputMode:"decimal",value:String(s[a]??""),onChange:x=>o(a,x.target.value),className:l,placeholder:"0,00"}),v=[{key:"primaria",label:"Primaria"},{key:"eso12",label:"1º/2º ESO"},{key:"eso34",label:"3º/4º ESO"},{key:"bach",label:"Bach / Uni"},{key:"adulto",label:"Adulto / Idiomas"}];return e.jsxs("div",{className:"max-w-5xl mx-auto w-full min-h-screen bg-[#F5F7FA] p-6 text-left pb-24 overflow-y-auto font-sans animate-in slide-in-from-right-8 duration-300",children:[e.jsx("div",{className:"flex justify-between items-start mb-6",children:e.jsx("button",{onClick:r,className:"text-gray-400 text-[10px] font-black uppercase flex items-center gap-2 hover:text-emerald-600 transition-colors",children:"â Volver al Panel"})}),e.jsxs("div",{className:"mb-6",children:[e.jsx("h1",{className:"text-3xl font-black italic text-gray-900 leading-none",children:"Matriz de Precios"}),e.jsx("p",{className:"text-emerald-600 text-[10px] font-black uppercase tracking-widest mt-2 bg-emerald-50 inline-block px-3 py-1 rounded-full border border-emerald-100",children:"Motor Financiero Dinámico"})]}),e.jsx("div",{className:"mb-6",children:e.jsx(Y,{pricing:s,isLocalPreview:i,onChange:o})}),e.jsxs("form",{onSubmit:A,className:"space-y-6",children:[e.jsxs("div",{className:"rounded-2xl border border-slate-200 bg-slate-100 px-5 py-4",children:[e.jsx("p",{className:"text-[9px] font-black uppercase tracking-[0.16em] text-slate-600",children:"Motor actual e historico"}),e.jsx("p",{className:"mt-1 text-[10px] font-bold leading-relaxed text-slate-500",children:"Las secciones siguientes siguen alimentando clases, recibos y modalidades ya existentes. Se conservan sin sustituirlas durante la revision 2026/27."})]}),e.jsxs("div",{className:"bg-white p-6 rounded-[32px] border border-gray-100 shadow-sm",children:[e.jsxs("h3",{className:"text-gray-900 font-black text-sm uppercase tracking-widest flex items-center gap-2 mb-4",children:[e.jsx("span",{children:"â±ï¸"})," Clases Extra VIP (1 Hora)"]}),e.jsx("p",{className:"text-[10px] text-gray-400 font-bold mb-4",children:"Precio base para bonos de viernes/sábados (1 a 1)."}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[9px] font-black text-gray-400 uppercase tracking-widest block mb-2",children:"Primaria / ESO"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"number",step:"0.01",value:s.base_price_1h_eso,onChange:a=>o("base_price_1h_eso",a.target.value),className:"w-full bg-gray-50 border border-gray-200 p-3 rounded-xl text-sm font-black text-gray-900 outline-none focus:border-emerald-500"}),e.jsx("span",{className:"absolute right-4 top-3 text-gray-400 font-black",children:"â¬"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[9px] font-black text-gray-400 uppercase tracking-widest block mb-2",children:"Bach. / Uni"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"number",step:"0.01",value:s.base_price_1h_bach,onChange:a=>o("base_price_1h_bach",a.target.value),className:"w-full bg-gray-50 border border-gray-200 p-3 rounded-xl text-sm font-black text-gray-900 outline-none focus:border-emerald-500"}),e.jsx("span",{className:"absolute right-4 top-3 text-gray-400 font-black",children:"â¬"})]})]})]})]}),e.jsxs("div",{className:"bg-white p-6 rounded-[32px] border border-gray-100 shadow-sm",children:[e.jsxs("h3",{className:"text-gray-900 font-black text-sm uppercase tracking-widest flex items-center gap-2 mb-4",children:[e.jsx("span",{children:"ð»"})," Clases Online Regulares"]}),e.jsxs("p",{className:"text-[10px] text-gray-400 font-bold mb-4",children:["Estas tarifas se usan en Agenda Centro cuando la modalidad es ",e.jsx("strong",{children:"Clases Online"}),". La agenda detecta sola si la sesión dura ",e.jsx("strong",{children:"1h"})," o ",e.jsx("strong",{children:"1h30"}),"."]}),e.jsxs("p",{className:"text-[10px] text-blue-600 font-bold mb-4",children:["Puedes escribir precios con ",e.jsx("strong",{children:"coma"})," o ",e.jsx("strong",{children:"punto"}),", por ejemplo ",e.jsx("strong",{children:"13,50"}),"."]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-blue-50 border border-blue-100 rounded-2xl p-4",children:[e.jsx("p",{className:"text-[9px] font-black text-[#1c74e9] uppercase tracking-widest mb-3",children:"Familia"}),e.jsx("div",{className:"space-y-3",children:v.map(a=>e.jsxs("div",{className:"grid grid-cols-3 gap-2 items-end",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"Nivel"}),e.jsx("input",{value:a.label,disabled:!0,className:"w-full bg-white/80 border border-blue-100 p-2 rounded-lg text-[10px] font-black text-gray-600"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1 Hora"}),N(`online_family_price_1h_${a.key}`,"w-full bg-white border border-blue-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-[#1c74e9]")]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1h30"}),N(`online_family_price_1h5_${a.key}`,"w-full bg-white border border-blue-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-[#1c74e9]")]})]},`online-family-${a.key}`))})]}),e.jsxs("div",{className:"bg-indigo-50 border border-indigo-100 rounded-2xl p-4",children:[e.jsx("p",{className:"text-[9px] font-black text-indigo-700 uppercase tracking-widest mb-3",children:"Profesor"}),e.jsx("div",{className:"space-y-3",children:v.map(a=>e.jsxs("div",{className:"grid grid-cols-3 gap-2 items-end",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"Nivel"}),e.jsx("input",{value:a.label,disabled:!0,className:"w-full bg-white/80 border border-indigo-100 p-2 rounded-lg text-[10px] font-black text-gray-600"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1 Hora"}),N(`online_monitor_pay_1h_${a.key}`,"w-full bg-white border border-indigo-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-indigo-500")]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1h30"}),N(`online_monitor_pay_1h5_${a.key}`,"w-full bg-white border border-indigo-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-indigo-500")]})]},`online-monitor-${a.key}`))})]})]})]}),e.jsxs("div",{className:"bg-white p-6 rounded-[32px] border border-gray-100 shadow-sm",children:[e.jsxs("h3",{className:"text-gray-900 font-black text-sm uppercase tracking-widest flex items-center gap-2 mb-4",children:[e.jsx("span",{children:"ð "})," Domicilio Historico"]}),e.jsxs("p",{className:"text-[10px] text-gray-400 font-bold mb-4",children:["Estas tarifas siguen usandose en Agenda Centro para clases anteriores de ",e.jsx("strong",{children:"Profe en casa (Domicilio)"}),". No se sustituyen automaticamente por la propuesta laboral 2026/27."]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-orange-50 border border-orange-100 rounded-2xl p-4",children:[e.jsx("p",{className:"text-[9px] font-black text-orange-700 uppercase tracking-widest mb-3",children:"Familia"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-3 gap-2 items-end",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"Nivel"}),e.jsx("input",{value:"Primaria + 1º/2º ESO",disabled:!0,className:"w-full bg-white/80 border border-orange-100 p-2 rounded-lg text-[10px] font-black text-gray-600"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1 Hora"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_family_price_1h_eso12,onChange:a=>o("domicilio_family_price_1h_eso12",a.target.value),className:"w-full bg-white border border-orange-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-orange-500"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1h30"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_family_price_1h5_eso12,onChange:a=>o("domicilio_family_price_1h5_eso12",a.target.value),className:"w-full bg-white border border-orange-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-orange-500"})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 items-end",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"Nivel"}),e.jsx("input",{value:"3º/4º ESO",disabled:!0,className:"w-full bg-white/80 border border-orange-100 p-2 rounded-lg text-[10px] font-black text-gray-600"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1 Hora"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_family_price_1h_eso34,onChange:a=>o("domicilio_family_price_1h_eso34",a.target.value),className:"w-full bg-white border border-orange-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-orange-500"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1h30"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_family_price_1h5_eso34,onChange:a=>o("domicilio_family_price_1h5_eso34",a.target.value),className:"w-full bg-white border border-orange-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-orange-500"})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 items-end",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"Nivel"}),e.jsx("input",{value:"Bach / Uni",disabled:!0,className:"w-full bg-white/80 border border-orange-100 p-2 rounded-lg text-[10px] font-black text-gray-600"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1 Hora"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_family_price_1h_bach,onChange:a=>o("domicilio_family_price_1h_bach",a.target.value),className:"w-full bg-white border border-orange-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-orange-500"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1h30"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_family_price_1h5_bach,onChange:a=>o("domicilio_family_price_1h5_bach",a.target.value),className:"w-full bg-white border border-orange-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-orange-500"})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 items-end",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"Nivel"}),e.jsx("input",{value:"Adulto",disabled:!0,className:"w-full bg-white/80 border border-orange-100 p-2 rounded-lg text-[10px] font-black text-gray-600"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1 Hora"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_family_price_1h_adulto,onChange:a=>o("domicilio_family_price_1h_adulto",a.target.value),className:"w-full bg-white border border-orange-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-orange-500"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1h30"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_family_price_1h5_adulto,onChange:a=>o("domicilio_family_price_1h5_adulto",a.target.value),className:"w-full bg-white border border-orange-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-orange-500"})]})]})]})]}),e.jsxs("div",{className:"bg-green-50 border border-green-100 rounded-2xl p-4",children:[e.jsx("p",{className:"text-[9px] font-black text-green-700 uppercase tracking-widest mb-3",children:"Profesor"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-3 gap-2 items-end",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"Nivel"}),e.jsx("input",{value:"Primaria + 1º/2º ESO",disabled:!0,className:"w-full bg-white/80 border border-green-100 p-2 rounded-lg text-[10px] font-black text-gray-600"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1 Hora"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_monitor_pay_1h_eso12,onChange:a=>o("domicilio_monitor_pay_1h_eso12",a.target.value),className:"w-full bg-white border border-green-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-green-500"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1h30"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_monitor_pay_1h5_eso12,onChange:a=>o("domicilio_monitor_pay_1h5_eso12",a.target.value),className:"w-full bg-white border border-green-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-green-500"})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 items-end",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"Nivel"}),e.jsx("input",{value:"3º/4º ESO",disabled:!0,className:"w-full bg-white/80 border border-green-100 p-2 rounded-lg text-[10px] font-black text-gray-600"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1 Hora"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_monitor_pay_1h_eso34,onChange:a=>o("domicilio_monitor_pay_1h_eso34",a.target.value),className:"w-full bg-white border border-green-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-green-500"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1h30"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_monitor_pay_1h5_eso34,onChange:a=>o("domicilio_monitor_pay_1h5_eso34",a.target.value),className:"w-full bg-white border border-green-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-green-500"})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 items-end",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"Nivel"}),e.jsx("input",{value:"Bach / Uni",disabled:!0,className:"w-full bg-white/80 border border-green-100 p-2 rounded-lg text-[10px] font-black text-gray-600"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1 Hora"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_monitor_pay_1h_bach,onChange:a=>o("domicilio_monitor_pay_1h_bach",a.target.value),cla
1ssName:"w-full bg-white border border-green-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-green-500"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1h30"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_monitor_pay_1h5_bach,onChange:a=>o("domicilio_monitor_pay_1h5_bach",a.target.value),className:"w-full bg-white border border-green-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-green-500"})]})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2 items-end",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"Nivel"}),e.jsx("input",{value:"Adulto",disabled:!0,className:"w-full bg-white/80 border border-green-100 p-2 rounded-lg text-[10px] font-black text-gray-600"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1 Hora"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_monitor_pay_1h_adulto,onChange:a=>o("domicilio_monitor_pay_1h_adulto",a.target.value),className:"w-full bg-white border border-green-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-green-500"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-gray-400 block mb-1",children:"1h30"}),e.jsx("input",{type:"number",step:"0.01",value:s.domicilio_monitor_pay_1h5_adulto,onChange:a=>o("domicilio_monitor_pay_1h5_adulto",a.target.value),className:"w-full bg-white border border-green-200 p-2 rounded-lg text-xs font-black text-gray-900 outline-none focus:border-green-500"})]})]})]})]})]})]}),e.jsxs("div",{className:"bg-white p-6 rounded-[32px] border border-gray-100 shadow-sm",children:[e.jsxs("h3",{className:"text-gray-900 font-black text-sm uppercase tracking-widest flex items-center gap-2 mb-4",children:[e.jsx("span",{children:"ð¥"})," Cobro Familia Grupo (1.5H)"]}),e.jsx("p",{className:"text-[10px] text-gray-500 font-bold mb-4",children:"Precio por alumno y sesion de 90 minutos. Grupo habitual de 3; 2 alumnos solo de forma excepcional y temporal. Con 1 alumno no se inicia."}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:[{key:"primaria",label:"Primaria",tone:"text-emerald-700"},{key:"eso",label:"Secundaria / ESO",tone:"text-[#1c74e9]"},{key:"bach",label:"Bachillerato",tone:"text-orange-700"}].map(a=>e.jsxs("div",{className:"rounded-2xl border border-gray-100 bg-gray-50 p-3",children:[e.jsx("label",{className:`text-[9px] font-black uppercase tracking-widest block mb-2 ${a.tone}`,children:a.label}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"number",step:"0.01",min:"0",value:s[`academy_family_price_1h5_${a.key}`],onChange:l=>o(`academy_family_price_1h5_${a.key}`,l.target.value),className:"w-full bg-white border border-gray-200 p-3 pr-9 rounded-xl text-sm font-black text-gray-900 outline-none focus:border-emerald-500"}),e.jsx("span",{className:"absolute right-3 top-3 text-gray-400 font-black",children:"â¬"})]})]},a.key))})]}),e.jsxs("div",{className:"bg-orange-50 p-6 rounded-[32px] border border-orange-100 shadow-sm",children:[e.jsxs("h3",{className:"text-orange-700 font-black text-sm uppercase tracking-widest flex items-center gap-2 mb-4",children:[e.jsx("span",{children:"ð¨âð«"})," Pago a Profesor (1.5H)"]}),e.jsx("p",{className:"text-[10px] text-orange-500/70 font-bold mb-4",children:"Lo que cobra el monitor por impartir la sesión completa."}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsx("div",{className:"col-span-2",children:e.jsx("p",{className:"text-[9px] font-black text-orange-600 uppercase tracking-widest border-b border-orange-200 pb-1",children:"PRIMARIA / ESO"})}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-orange-400 block mb-1",children:"Si hay 2 Alumnos"}),e.jsx("input",{type:"number",step:"0.01",value:s.monitor_pay_1h5_eso_2p,onChange:a=>o("monitor_pay_1h5_eso_2p",a.target.value),className:"w-full bg-white border border-orange-200 p-2 rounded-lg text-xs font-black text-orange-800 outline-none focus:border-orange-500"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-orange-400 block mb-1",children:"Si hay 3 Alumnos"}),e.jsx("input",{type:"number",step:"0.01",value:s.monitor_pay_1h5_eso_3p,onChange:a=>o("monitor_pay_1h5_eso_3p",a.target.value),className:"w-full bg-white border border-orange-200 p-2 rounded-lg text-xs font-black text-orange-800 outline-none focus:border-orange-500"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 mt-4",children:[e.jsx("div",{className:"col-span-2",children:e.jsx("p",{className:"text-[9px] font-black text-orange-600 uppercase tracking-widest border-b border-orange-200 pb-1",children:"BACHILLER / UNI"})}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-orange-400 block mb-1",children:"Si hay 2 Alumnos"}),e.jsx("input",{type:"number",step:"0.01",value:s.monitor_pay_1h5_bach_2p,onChange:a=>o("monitor_pay_1h5_bach_2p",a.target.value),className:"w-full bg-white border border-orange-200 p-2 rounded-lg text-xs font-black text-orange-800 outline-none focus:border-orange-500"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[8px] font-bold text-orange-400 block mb-1",children:"Si hay 3 Alumnos"}),e.jsx("input",{type:"number",step:"0.01",value:s.monitor_pay_1h5_bach_3p,onChange:a=>o("monitor_pay_1h5_bach_3p",a.target.value),className:"w-full bg-white border border-orange-200 p-2 rounded-lg text-xs font-black text-orange-800 outline-none focus:border-orange-500"})]})]})]})]}),e.jsxs("div",{className:"bg-white p-6 rounded-[32px] border border-gray-100 shadow-sm",children:[e.jsxs("h3",{className:"text-gray-900 font-black text-sm uppercase tracking-widest flex items-center gap-2 mb-4",children:[e.jsx("span",{children:"ð"})," Descuentos Extras (VIP)"]}),e.jsx("p",{className:"text-[10px] text-gray-400 font-bold mb-4",children:"Aplica a los packs de extras de viernes/sábados."}),e.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-[9px] font-black text-gray-400 uppercase tracking-widest block mb-2",children:"Pack 2h"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"number",value:s.discount_2_classes,onChange:a=>o("discount_2_classes",a.target.value),className:"w-full bg-gray-50 border border-gray-200 p-3 rounded-xl text-sm font-black text-gray-900 outline-none focus:border-emerald-500"}),e.jsx("span",{className:"absolute right-4 top-3 text-gray-400 font-black",children:"%"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[9px] font-black text-gray-400 uppercase tracking-widest block mb-2",children:"Pack 3h"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"number",value:s.discount_3_classes,onChange:a=>o("discount_3_classes",a.target.value),className:"w-full bg-gray-50 border border-gray-200 p-3 rounded-xl text-sm font-black text-gray-900 outline-none focus:border-emerald-500"}),e.jsx("span",{className:"absolute right-4 top-3 text-gray-400 font-black",children:"%"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[9px] font-black text-gray-400 uppercase tracking-widest block mb-2",children:"Pack 4h"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"number",value:s.discount_4_classes,onChange:a=>o("discount_4_classes",a.target.value),className:"w-full bg-purple-50 border border-purple-200 p-3 rounded-xl text-sm font-black text-purple-700 outline-none focus:border-purple-500"}),e.jsx("span",{className:"absolute right-4 top-3 text-purple-400 font-black",children:"%"})]})]})]})]}),f&&e.jsx("div",{role:"status",className:`rounded-2xl border px-4 py-3 text-[10px] font-black leading-relaxed ${f.tone==="success"?"border-emerald-200 bg-emerald-50 text-emerald-800":"border-red-200 bg-red-50 text-red-700"}`,children:f.text}),e.jsx("button",{type:"submit",disabled:g,className:"w-full bg-emerald-500 hover:bg-emerald-600 text-white font-black py-4 rounded-2xl shadow-lg shadow-emerald-500/30 uppercase tracking-widest text-[11px] transition-all active:scale-95 mb-10",children:g?"Guardando Motor...":i?"GUARDAR BORRADOR LOCAL":"ð¾ GUARDAR MATRIZ DE PRECIOS"})]})]})};export{oe as AdminPricing};
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.