(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:a}){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"}),a]})})]})]})}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])},92876,e=>{"use strict";var t=e.i(43476),r=e.i(71645);function s({color:e,onChange:s}){let a,l=(a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?{r:parseInt(a[1],16),g:parseInt(a[2],16),b:parseInt(a[3],16)}:{r:0,g:0,b:0},o=(0,r.useCallback)(e=>{let t=l.g.toString(16).padStart(2,"0"),r=l.b.toString(16).padStart(2,"0");s(`#${e.toString(16).padStart(2,"0")}${t}${r}`)},[l,s]),d=(0,r.useCallback)(e=>{let t=l.r.toString(16).padStart(2,"0"),r=l.b.toString(16).padStart(2,"0");s(`#${t}${e.toString(16).padStart(2,"0")}${r}`)},[l,s]),n=(0,r.useCallback)(e=>{let t=l.r.toString(16).padStart(2,"0"),r=l.g.toString(16).padStart(2,"0");s(`#${t}${r}${e.toString(16).padStart(2,"0")}`)},[l,s]);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=>s(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:l.r,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(${l.r},0,0), #ff0000)`}})}),(0,t.jsx)("span",{className:"text-xs font-mono w-8 text-right text-muted-foreground",children:l.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:l.g,onChange:e=>d(parseInt(e.target.value)),className:"w-full h-3 rounded-full appearance-none cursor-pointer",style:{background:`linear-gradient(to right, #000, rgb(0,${l.g},0), #00ff00)`}})}),(0,t.jsx)("span",{className:"text-xs font-mono w-8 text-right text-muted-foreground",children:l.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:l.b,onChange:e=>n(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,${l.b}), #0000ff)`}})}),(0,t.jsx)("span",{className:"text-xs font-mono w-8 text-right text-muted-foreground",children:l.b})]})]})]})}e.s(["ColorPicker",()=>s])},58862,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(38149),a=e.i(74837),l=e.i(92876);function o(){let[e,o]=(0,r.useState)("#0284c7"),[d,n]=(0,r.useState)("#38bdf8"),[c,i]=(0,r.useState)("#0f172a"),[x,u]=(0,r.useState)("dark"),p=e.replace("#","").toUpperCase().padStart(6,"0"),m=d.replace("#","").toUpperCase().padStart(6,"0"),g=c.replace("#","").toUpperCase().padStart(6,"0"),h=`ThemeData(
  brightness: Brightness.${x},
  primaryColor: Color(0xFF${p}),
  scaffoldBackgroundColor: Color(0xFF${g}),
  colorScheme: ColorScheme.${x}(
    primary: Color(0xFF${p}),
    secondary: Color(0xFF${m}),
    surface: Color(0xFF${g}),
  ),
  appBarTheme: const AppBarTheme(
    backgroundColor: Color(0xFF${p}),
    elevation: 0,
  ),
  elevatedButtonTheme: ElevatedButtonThemeData(
    style: ElevatedButton.styleFrom(
      backgroundColor: Color(0xFF${p}),
      foregroundColor: ${"dark"===x?"Colors.white":"Colors.black"},
    ),
  ),
)`;return(0,t.jsx)(s.ToolLayout,{title:"Flutter Theme Generator",description:"Create a consistent visual identity for your app and generate the ThemeData code.",controls:(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsx)("div",{className:"flex justify-center mb-8",children:(0,t.jsxs)("div",{className:"bg-secondary p-1 rounded-xl flex",children:[(0,t.jsx)("button",{onClick:()=>{u("light"),i("#ffffff")},className:`px-6 py-2 rounded-lg text-sm font-medium transition-all ${"light"===x?"bg-background text-primary shadow-sm":"text-muted-foreground"}`,children:"Light Mode"}),(0,t.jsx)("button",{onClick:()=>{u("dark"),i("#0f172a")},className:`px-6 py-2 rounded-lg text-sm font-medium transition-all ${"dark"===x?"bg-background text-primary shadow-sm":"text-muted-foreground"}`,children:"Dark Mode"})]})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"text-xs font-bold text-muted-foreground uppercase",children:"Primary Color"}),(0,t.jsx)(l.ColorPicker,{color:e,onChange:o})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"text-xs font-bold text-muted-foreground uppercase",children:"Accent Color"}),(0,t.jsx)(l.ColorPicker,{color:d,onChange:n})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("label",{className:"text-xs font-bold text-muted-foreground uppercase",children:"Background"}),(0,t.jsx)(l.ColorPicker,{color:c,onChange:i})]})]}),(0,t.jsxs)("div",{className:"pt-8 border-t border-border",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground uppercase tracking-widest block mb-6 text-center",children:"Theme Preview"}),(0,t.jsxs)("div",{className:"rounded-2xl border border-border overflow-hidden shadow-2xl transition-all duration-300 mx-auto max-w-sm",style:{backgroundColor:c},children:[(0,t.jsxs)("div",{className:"h-12 flex items-center px-4 shadow-md",style:{backgroundColor:e},children:[(0,t.jsx)("div",{className:"w-8 h-1 rounded bg-white/30 mr-4"}),(0,t.jsx)("div",{className:"text-white text-xs font-bold",children:"App Title"})]}),(0,t.jsxs)("div",{className:"p-6 space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"h-4 w-3/4 rounded bg-muted/20",style:{color:"dark"===x?"#fff":"#000"},children:(0,t.jsx)("span",{className:"text-xs font-bold",children:"Headline Large"})}),(0,t.jsx)("div",{className:"h-2 w-full rounded bg-muted/10"}),(0,t.jsx)("div",{className:"h-2 w-5/6 rounded bg-muted/10"})]}),(0,t.jsxs)("div",{className:"flex gap-3 pt-4",children:[(0,t.jsx)("button",{className:"px-4 py-2 rounded-lg text-[10px] font-bold shadow-lg",style:{backgroundColor:e,color:"dark"===x?"#fff":"#000"},children:"PRIMARY BUTTON"}),(0,t.jsx)("button",{className:"px-4 py-2 rounded-lg text-[10px] font-bold border",style:{borderColor:e,color:e},children:"OUTLINED"})]}),(0,t.jsx)("div",{className:"pt-4 grid grid-cols-4 gap-2",children:[1,2,3,4].map(e=>(0,t.jsx)("div",{className:"aspect-square rounded-xl shadow-sm",style:{backgroundColor:d+"33"}},e))})]})]})]})]}),output:(0,t.jsx)(a.CodeOutput,{code:h})})}e.s(["default",()=>o])}]);