(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38149,e=>{"use strict";var t=e.i(43476);function s({title:e,description:s,controls:a,output:r}){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:s})]}),(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:a})}),(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"}),r]})})]})]})}e.s(["ToolLayout",()=>s])},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])},92876,e=>{"use strict";var t=e.i(43476),s=e.i(71645);function a({color:e,onChange:a}){let r,n=(r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:{r:0,g:0,b:0},l=(0,s.useCallback)(e=>{let t=n.g.toString(16).padStart(2,"0"),s=n.b.toString(16).padStart(2,"0");a(`#${e.toString(16).padStart(2,"0")}${t}${s}`)},[n,a]),i=(0,s.useCallback)(e=>{let t=n.r.toString(16).padStart(2,"0"),s=n.b.toString(16).padStart(2,"0");a(`#${t}${e.toString(16).padStart(2,"0")}${s}`)},[n,a]),o=(0,s.useCallback)(e=>{let t=n.r.toString(16).padStart(2,"0"),s=n.g.toString(16).padStart(2,"0");a(`#${t}${s}${e.toString(16).padStart(2,"0")}`)},[n,a]);return(0,t.jsxs)("div",{className:"w-full space-y-4",children:[(0,t.jsxs)("div",{className:"relative group",children:[(0,t.jsx)("input",{type:"color",value:e,onChange:e=>a(e.target.value),className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer z-10"}),(0,t.jsx)("div",{className:"w-full h-40 rounded-2xl border border-border transition-all duration-200 group-hover:scale-[1.01] group-hover:shadow-lg flex items-center justify-center",style:{backgroundColor:e},children:(0,t.jsx)("div",{className:"bg-black/30 backdrop-blur-sm rounded-xl px-4 py-2 text-white text-sm font-mono font-bold shadow",children:"🎨 Click to open picker"})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"text-xs font-bold text-red-400 w-5",children:"R"}),(0,t.jsx)("div",{className:"flex-1 relative",children:(0,t.jsx)("input",{type:"range",min:0,max:255,value:n.r,onChange:e=>l(parseInt(e.target.value)),className:"w-full h-3 rounded-full appearance-none cursor-pointer",style:{background:`linear-gradient(to right, #000, rgb(${n.r},0,0), #ff0000)`}})}),(0,t.jsx)("span",{className:"text-xs font-mono w-8 text-right text-muted-foreground",children:n.r})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"text-xs font-bold text-green-400 w-5",children:"G"}),(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)("input",{type:"range",min:0,max:255,value:n.g,onChange:e=>i(parseInt(e.target.value)),className:"w-full h-3 rounded-full appearance-none cursor-pointer",style:{background:`linear-gradient(to right, #000, rgb(0,${n.g},0), #00ff00)`}})}),(0,t.jsx)("span",{className:"text-xs font-mono w-8 text-right text-muted-foreground",children:n.g})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"text-xs font-bold text-blue-400 w-5",children:"B"}),(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)("input",{type:"range",min:0,max:255,value:n.b,onChange:e=>o(parseInt(e.target.value)),className:"w-full h-3 rounded-full appearance-none cursor-pointer",style:{background:`linear-gradient(to right, #000, rgb(0,0,${n.b}), #0000ff)`}})}),(0,t.jsx)("span",{className:"text-xs font-mono w-8 text-right text-muted-foreground",children:n.b})]})]})]})}e.s(["ColorPicker",()=>a])},69242,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(38149),r=e.i(74837),n=e.i(92876);function l(){let[e,l]=(0,s.useState)(200),[i,o]=(0,s.useState)(150),[d,c]=(0,s.useState)(16),[u,x]=(0,s.useState)(0),[m,g]=(0,s.useState)("#0284c7"),[p,h]=(0,s.useState)(12),[f,b]=(0,s.useState)("Alignment.center"),j=m.replace("#","").toUpperCase().padStart(6,"0"),v=`Container(
  width: ${e},
  height: ${i},
  padding: const EdgeInsets.all(${d}),
  margin: const EdgeInsets.all(${u}),
  alignment: ${f},
  decoration: BoxDecoration(
    color: const Color(0xFF${j}),
    borderRadius: BorderRadius.circular(${p}),
  ),
)`;return(0,t.jsx)(a.ToolLayout,{title:"Flutter Container Generator",description:"Customize size, padding, decoration and more for the most versatile Flutter widget.",controls:(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"Width"}),(0,t.jsx)("input",{type:"number",value:e,onChange:e=>l(parseInt(e.target.value)||0),className:"w-full px-4 py-2 bg-background border border-border rounded-xl focus:ring-2 focus:ring-primary outline-none"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"Height"}),(0,t.jsx)("input",{type:"number",value:i,onChange:e=>o(parseInt(e.target.value)||0),className:"w-full px-4 py-2 bg-background border border-border rounded-xl focus:ring-2 focus:ring-primary outline-none"})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"Padding (All)"}),(0,t.jsx)("input",{type:"range",min:"0",max:"64",step:"1",value:d,onChange:e=>c(parseInt(e.target.value)),className:"w-full"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"Margin (All)"}),(0,t.jsx)("input",{type:"range",min:"0",max:"64",step:"1",value:u,onChange:e=>x(parseInt(e.target.value)),className:"w-full"})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"Border Radius"}),(0,t.jsx)("input",{type:"range",min:"0",max:"100",step:"1",value:p,onChange:e=>h(parseInt(e.target.value)),className:"w-full"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"Alignment"}),(0,t.jsxs)("select",{value:f,onChange:e=>b(e.target.value),className:"w-full px-4 py-2 bg-background border border-border rounded-xl focus:ring-2 focus:ring-primary outline-none",children:[(0,t.jsx)("option",{value:"Alignment.topLeft",children:"Top Left"}),(0,t.jsx)("option",{value:"Alignment.topCenter",children:"Top Center"}),(0,t.jsx)("option",{value:"Alignment.topRight",children:"Top Right"}),(0,t.jsx)("option",{value:"Alignment.centerLeft",children:"Center Left"}),(0,t.jsx)("option",{value:"Alignment.center",children:"Center"}),(0,t.jsx)("option",{value:"Alignment.centerRight",children:"Center Right"}),(0,t.jsx)("option",{value:"Alignment.bottomLeft",children:"Bottom Left"}),(0,t.jsx)("option",{value:"Alignment.bottomCenter",children:"Bottom Center"}),(0,t.jsx)("option",{value:"Alignment.bottomRight",children:"Bottom Right"})]})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"Container Color"}),(0,t.jsx)(n.ColorPicker,{color:m,onChange:g})]}),(0,t.jsxs)("div",{className:"pt-8 border-t border-border flex flex-col items-center",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground uppercase tracking-widest block mb-10",children:"Preview"}),(0,t.jsx)("div",{className:"p-10 bg-slate-100 dark:bg-slate-900 rounded-3xl w-full flex items-center justify-center",children:(0,t.jsx)("div",{style:{width:`${e}px`,height:`${i}px`,padding:`${d}px`,margin:`${u}px`,backgroundColor:m,borderRadius:`${p}px`,display:"flex",alignItems:f.includes("top")?"flex-start":f.includes("bottom")?"flex-end":"center",justifyContent:f.includes("Left")?"flex-start":f.includes("Right")?"flex-end":"center"},className:"shadow-xl transition-all duration-300",children:(0,t.jsx)("div",{className:"w-4 h-4 rounded-full bg-white/50"})})})]})]}),output:(0,t.jsx)(r.CodeOutput,{code:v})})}e.s(["default",()=>l])}]);