(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38149,e=>{"use strict";var t=e.i(43476);function r({title:e,description:r,controls:s,output:d}){return(0,t.jsxs)("div",{className:"container mx-auto px-4 py-8 max-w-7xl",children:[(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold tracking-tight text-foreground mb-2",children:e}),(0,t.jsx)("p",{className:"text-muted-foreground",children:r})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-start",children:[(0,t.jsx)("div",{className:"space-y-6",children:(0,t.jsx)("div",{className:"bg-card rounded-2xl border border-border p-6 shadow-sm",children:s})}),(0,t.jsx)("div",{className:"lg:sticky lg:top-24",children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-muted-foreground uppercase tracking-wider px-1",children:"Generated Output"}),d]})})]})]})}e.s(["ToolLayout",()=>r])},74886,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Copy",()=>t],74886)},43531,e=>{"use strict";let t=(0,e.i(75254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],43531)},31067,e=>{"use strict";function t(){return(t=Object.assign.bind()).apply(null,arguments)}e.s(["default",()=>t])},30480,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(38149),d=e.i(74837);function a(){let[e,a]=(0,r.useState)(16),[o,n]=(0,r.useState)(16),[l,i]=(0,r.useState)(16),[c,u]=(0,r.useState)(16),p="";if(e===o&&o===l&&l===c)p=`EdgeInsets.all(${e})`;else if(e===l&&o===c)p=`EdgeInsets.symmetric(horizontal: ${e}, vertical: ${o})`;else{let t=[];0!==e&&t.push(`left: ${e}`),0!==o&&t.push(`top: ${o}`),0!==l&&t.push(`right: ${l}`),0!==c&&t.push(`bottom: ${c}`),p=4===t.length?`EdgeInsets.fromLTRB(${e}, ${o}, ${l}, ${c})`:`EdgeInsets.only(
  ${t.join(",\n  ")},
)`}return(0,t.jsx)(s.ToolLayout,{title:"Flutter Padding Generator",description:"Design your EdgeInsets padding visually and get the optimized Flutter code.",controls:(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsxs)("div",{className:"relative p-12 bg-secondary/20 rounded-2xl border border-dashed border-border flex items-center justify-center",children:[(0,t.jsx)("input",{type:"number",value:o,onChange:e=>n(Number(e.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,t.jsx)("input",{type:"number",value:c,onChange:e=>u(Number(e.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,t.jsx)("input",{type:"number",value:e,onChange:e=>a(Number(e.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,t.jsx)("input",{type:"number",value:l,onChange:e=>i(Number(e.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,t.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:o,paddingBottom:c,paddingLeft:e,paddingRight:l},children:"Content"})]})}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsx)("button",{onClick:()=>{a(16),n(16),i(16),u(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,t.jsx)("button",{onClick:()=>{a(0),n(0),i(0),u(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,t.jsx)(d.CodeOutput,{code:p})})}e.s(["default",()=>a])}]);