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)},90851,a=>{"use strict";var b=a.i(87924),c=a.i(72131);function d({color:a,onChange:d}){let e,f=(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a))?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:{r:0,g:0,b:0},g=(0,c.useCallback)(a=>{let b=f.g.toString(16).padStart(2,"0"),c=f.b.toString(16).padStart(2,"0");d(`#${a.toString(16).padStart(2,"0")}${b}${c}`)},[f,d]),h=(0,c.useCallback)(a=>{let b=f.r.toString(16).padStart(2,"0"),c=f.b.toString(16).padStart(2,"0");d(`#${b}${a.toString(16).padStart(2,"0")}${c}`)},[f,d]),i=(0,c.useCallback)(a=>{let b=f.r.toString(16).padStart(2,"0"),c=f.g.toString(16).padStart(2,"0");d(`#${b}${c}${a.toString(16).padStart(2,"0")}`)},[f,d]);return(0,b.jsxs)("div",{className:"w-full space-y-4",children:[(0,b.jsxs)("div",{className:"relative group",children:[(0,b.jsx)("input",{type:"color",value:a,onChange:a=>d(a.target.value),className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer z-10"}),(0,b.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:a},children:(0,b.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,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("span",{className:"text-xs font-bold text-red-400 w-5",children:"R"}),(0,b.jsx)("div",{className:"flex-1 relative",children:(0,b.jsx)("input",{type:"range",min:0,max:255,value:f.r,onChange:a=>g(parseInt(a.target.value)),className:"w-full h-3 rounded-full appearance-none cursor-pointer",style:{background:`linear-gradient(to right, #000, rgb(${f.r},0,0), #ff0000)`}})}),(0,b.jsx)("span",{className:"text-xs font-mono w-8 text-right text-muted-foreground",children:f.r})]}),(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("span",{className:"text-xs font-bold text-green-400 w-5",children:"G"}),(0,b.jsx)("div",{className:"flex-1",children:(0,b.jsx)("input",{type:"range",min:0,max:255,value:f.g,onChange:a=>h(parseInt(a.target.value)),className:"w-full h-3 rounded-full appearance-none cursor-pointer",style:{background:`linear-gradient(to right, #000, rgb(0,${f.g},0), #00ff00)`}})}),(0,b.jsx)("span",{className:"text-xs font-mono w-8 text-right text-muted-foreground",children:f.g})]}),(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("span",{className:"text-xs font-bold text-blue-400 w-5",children:"B"}),(0,b.jsx)("div",{className:"flex-1",children:(0,b.jsx)("input",{type:"range",min:0,max:255,value:f.b,onChange:a=>i(parseInt(a.target.value)),className:"w-full h-3 rounded-full appearance-none cursor-pointer",style:{background:`linear-gradient(to right, #000, rgb(0,0,${f.b}), #0000ff)`}})}),(0,b.jsx)("span",{className:"text-xs font-mono w-8 text-right text-muted-foreground",children:f.b})]})]})]})}a.s(["ColorPicker",()=>d])},92782,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(69147),e=a.i(62258),f=a.i(90851);function g(){let[a,g]=(0,c.useState)("#000000"),[h,i]=(0,c.useState)(.2),[j,k]=(0,c.useState)(10),[l,m]=(0,c.useState)(0),[n,o]=(0,c.useState)(0),[p,q]=(0,c.useState)(4),r=a.replace("#","").toUpperCase().padStart(6,"0"),s=`BoxShadow(
  color: Color(0xFF${r}).withOpacity(${h.toFixed(2)}),
  blurRadius: ${j},
  spreadRadius: ${l},
  offset: Offset(${n}, ${p}),
)`,t=Math.round(255*h).toString(16).padStart(2,"0"),u=`${n}px ${p}px ${j}px ${l}px ${a}${t}`;return(0,b.jsx)(d.ToolLayout,{title:"Flutter BoxShadow Generator",description:"Create visual BoxShadows with precise controls and get the Flutter code.",controls:(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 items-start",children:[(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsx)("label",{className:"block text-sm font-medium text-muted-foreground",children:"Shadow Color"}),(0,b.jsx)(f.ColorPicker,{color:a,onChange:g})]}),(0,b.jsx)("div",{className:"space-y-5",children:[{label:"Opacity",value:h,min:0,max:1,step:.01,display:h.toFixed(2),setter:a=>i(a)},{label:"Blur Radius",value:j,min:0,max:50,step:1,display:String(j),setter:a=>k(a)},{label:"Spread Radius",value:l,min:0,max:50,step:1,display:String(l),setter:a=>m(a)}].map(({label:a,value:c,min:d,max:e,step:f,display:g,setter:h})=>(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex justify-between mb-2",children:[(0,b.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:a}),(0,b.jsx)("span",{className:"text-sm font-mono text-primary",children:g})]}),(0,b.jsx)("input",{type:"range",min:d,max:e,step:f,value:c,onChange:a=>h(parseFloat(a.target.value)),className:"w-full"})]},a))})]}),(0,b.jsx)("div",{className:"grid grid-cols-2 gap-6 pt-4 border-t border-border",children:[{label:"Offset X",value:n,setter:o},{label:"Offset Y",value:p,setter:q}].map(({label:a,value:c,setter:d})=>(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex justify-between mb-2",children:[(0,b.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:a}),(0,b.jsx)("span",{className:"text-sm font-mono text-primary",children:c})]}),(0,b.jsx)("input",{type:"range",min:-50,max:50,step:1,value:c,onChange:a=>d(parseInt(a.target.value)),className:"w-full"})]},a))}),(0,b.jsx)("div",{className:"flex justify-center py-8",children:(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"text-sm text-center mb-6 text-muted-foreground uppercase tracking-widest",children:"Preview"}),(0,b.jsx)("div",{className:"w-32 h-32 rounded-2xl bg-white",style:{boxShadow:u}})]})})]}),output:(0,b.jsx)(e.CodeOutput,{code:s})})}a.s(["default",()=>g])}];

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