module.exports=[69147,a=>{"use strict";var b=a.i(87924);function c({title:a,description:c,controls:d,output:e}){return(0,b.jsxs)("div",{className:"container mx-auto px-4 py-8 max-w-7xl",children:[(0,b.jsxs)("div",{className:"mb-8",children:[(0,b.jsx)("h1",{className:"text-3xl font-bold tracking-tight text-foreground mb-2",children:a}),(0,b.jsx)("p",{className:"text-muted-foreground",children:c})]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-start",children:[(0,b.jsx)("div",{className:"space-y-6",children:(0,b.jsx)("div",{className:"bg-card rounded-2xl border border-border p-6 shadow-sm",children:d})}),(0,b.jsx)("div",{className:"lg:sticky lg:top-24",children:(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsx)("h2",{className:"text-sm font-semibold text-muted-foreground uppercase tracking-wider px-1",children:"Generated Output"}),e]})})]})]})}a.s(["ToolLayout",()=>c])},5151,a=>{"use strict";let b=(0,a.i(70106).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);a.s(["Copy",()=>b],5151)},33441,a=>{"use strict";let b=(0,a.i(70106).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);a.s(["Check",()=>b],33441)},38433,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(69147),e=a.i(62258);function f(){let[a,f]=(0,c.useState)(16),[g,h]=(0,c.useState)(16),[i,j]=(0,c.useState)(16),[k,l]=(0,c.useState)(16),m="";if(a===g&&g===i&&i===k)m=`EdgeInsets.all(${a})`;else if(a===i&&g===k)m=`EdgeInsets.symmetric(horizontal: ${a}, vertical: ${g})`;else{let b=[];0!==a&&b.push(`left: ${a}`),0!==g&&b.push(`top: ${g}`),0!==i&&b.push(`right: ${i}`),0!==k&&b.push(`bottom: ${k}`),m=4===b.length?`EdgeInsets.fromLTRB(${a}, ${g}, ${i}, ${k})`:`EdgeInsets.only(
  ${b.join(",\n  ")},
)`}return(0,b.jsx)(d.ToolLayout,{title:"Flutter Padding Generator",description:"Design your EdgeInsets padding visually and get the optimized Flutter code.",controls:(0,b.jsxs)("div",{className:"space-y-8",children:[(0,b.jsx)("div",{className:"flex justify-center",children:(0,b.jsxs)("div",{className:"relative p-12 bg-secondary/20 rounded-2xl border border-dashed border-border flex items-center justify-center",children:[(0,b.jsx)("input",{type:"number",value:g,onChange:a=>h(Number(a.target.value)),className:"absolute top-2 left-1/2 -translate-x-1/2 w-16 px-2 py-1 bg-background border border-border rounded-md text-center text-sm"}),(0,b.jsx)("input",{type:"number",value:k,onChange:a=>l(Number(a.target.value)),className:"absolute bottom-2 left-1/2 -translate-x-1/2 w-16 px-2 py-1 bg-background border border-border rounded-md text-center text-sm"}),(0,b.jsx)("input",{type:"number",value:a,onChange:a=>f(Number(a.target.value)),className:"absolute left-2 top-1/2 -translate-y-1/2 w-16 px-2 py-1 bg-background border border-border rounded-md text-center text-sm"}),(0,b.jsx)("input",{type:"number",value:i,onChange:a=>j(Number(a.target.value)),className:"absolute right-2 top-1/2 -translate-y-1/2 w-16 px-2 py-1 bg-background border border-border rounded-md text-center text-sm"}),(0,b.jsx)("div",{className:"w-32 h-20 bg-primary/20 border-2 border-primary rounded flex items-center justify-center text-[10px] text-primary font-bold uppercase",style:{paddingTop:g,paddingBottom:k,paddingLeft:a,paddingRight:i},children:"Content"})]})}),(0,b.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,b.jsx)("button",{onClick:()=>{f(16),h(16),j(16),l(16)},className:"py-2 px-4 bg-secondary text-foreground text-sm rounded-xl hover:bg-secondary/70 transition-colors",children:"Reset to 16.0"}),(0,b.jsx)("button",{onClick:()=>{f(0),h(0),j(0),l(0)},className:"py-2 px-4 bg-secondary text-foreground text-sm rounded-xl hover:bg-secondary/70 transition-colors",children:"Clear All"})]})]}),output:(0,b.jsx)(e.CodeOutput,{code:m})})}a.s(["default",()=>f])}];

//# sourceMappingURL=_99057c50._.js.map