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)},85117,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)({id:"root",type:"Column",children:[{id:"1",type:"Text",children:[]},{id:"2",type:"Icon",children:[]}]}),g=a=>{let b=a.children.map(a=>g(a)).join(",\n    ");switch(a.type){case"Column":return`Column(
  children: [
    ${b}
  ],
)`;case"Row":return`Row(
  children: [
    ${b}
  ],
)`;case"Container":return`Container(
  child: ${a.children[0]?g(a.children[0]):"SizedBox()"},
)`;case"Text":return'Text("Hello World")';case"Icon":return"Icon(Icons.star)";default:return""}},h=c=>(0,b.jsxs)("div",{className:"p-4 border-2 border-primary/20 rounded-xl bg-primary/5 m-2 relative",children:[(0,b.jsx)("div",{className:"text-[10px] font-bold text-primary mb-2 uppercase",children:c.type}),(0,b.jsx)("div",{className:"flex flex-wrap gap-2",children:c.children.map(a=>h(a))}),(0,b.jsx)("div",{className:"mt-4 flex gap-2 overflow-x-auto pb-2",children:["Text","Icon","Container","Column","Row"].map(d=>(0,b.jsxs)("button",{onClick:()=>{var b;let e,g;return b=c.id,e={...a},void((g=a=>{if(a.id===b)return a.children.push({id:Math.random().toString(),type:d,children:[]}),!0;for(let b of a.children)if(g(b))return!0;return!1})(e),f(e))},className:"px-2 py-1 bg-primary text-white text-[10px] rounded hover:brightness-110 shrink-0",children:["+ ",d]},d))})]},c.id);return(0,b.jsx)(d.ToolLayout,{title:"Visual Layout Builder",description:"Build complex Flutter UIs visually by adding and nesting blocks. Export clean Dart code instantly.",controls:(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)("div",{className:"p-4 bg-secondary/30 rounded-2xl border border-border min-h-[400px]",children:[(0,b.jsx)("span",{className:"text-xs font-bold text-muted-foreground uppercase tracking-widest block mb-4",children:"Canvas"}),h(a)]}),(0,b.jsx)("button",{onClick:()=>f({id:"root",type:"Column",children:[]}),className:"w-full py-2 border border-red-500/30 text-red-500 text-xs rounded-xl hover:bg-red-500/10 transition-colors",children:"RESET CANVAS"})]}),output:(0,b.jsx)(e.CodeOutput,{code:g(a)})})}a.s(["default",()=>f])}];

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