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)},1027,a=>{"use strict";let b=(0,a.i(70106).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);a.s(["Zap",()=>b],1027)},32860,a=>{"use strict";let b=(0,a.i(70106).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);a.s(["ArrowRight",()=>b],32860)},87654,a=>{"use strict";let b=(0,a.i(70106).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);a.s(["RotateCcw",()=>b],87654)},40083,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(69147),e=a.i(67453),f=a.i(32860),g=a.i(87654),h=a.i(17545),i=a.i(1027),j=a.i(62258);let k={riverpod:{name:"Riverpod",desc:"The spiritual successor to Provider. Compile-safe, no BuildContext needed, and handles async effortlessly.",code:`// Riverpod Example
final counterProvider = StateProvider((ref) => 0);

class CounterWidget extends ConsumerWidget {
  @override
  Widget build(BuildContext context, WidgetRef ref) {
    final count = ref.watch(counterProvider);
    return ElevatedCard(
      child: Text('Count: $count'),
      onTap: () => ref.read(counterProvider.notifier).state++,
    );
  }
}`,color:"bg-blue-600"},bloc:{name:"BLoC / Cubit",desc:"The gold standard for enterprise. Strict separation of concerns using Streams.",code:`// Cubit Example
class CounterCubit extends Cubit<int> {
  CounterCubit() : super(0);
  void increment() => emit(state + 1);
}

// UI
BlocBuilder<CounterCubit, int>(
  builder: (context, state) => Text('Count: $state'),
)`,color:"bg-indigo-600"},getx:{name:"GetX",desc:"The high-productivity framework. State management, dependency injection, and route management in one.",code:`// GetX Example
class Controller extends GetxController {
  var count = 0.obs;
  increment() => count++;
}

// UI
final Controller c = Get.put(Controller());
Obx(() => Text('Count: \${c.count}'));`,color:"bg-purple-600"},provider:{name:"Provider",desc:"The classic choice. Wrapper around InheritedWidget that's easy to understand and widely supported.",code:`// Provider Example
class Counter with ChangeNotifier {
  int _count = 0;
  int get count => _count;
  void increment() {
    _count++;
    notifyListeners();
  }
}

// UI
Consumer<Counter>(
  builder: (context, counter, child) => Text('\${counter.count}'),
)`,color:"bg-blue-400"}};function l(){let[a,l]=(0,c.useState)(0),[m,n]=(0,c.useState)([]),[o,p]=(0,c.useState)(null),q=[{q:"How large is your project?",options:[{label:"Tiny / Prototype",val:"small"},{label:"Medium / Feature rich",val:"mid"},{label:"Large / Enterprise",val:"large"}]},{q:"How do you feel about boilerplate?",options:[{label:"Hate it, less code is better",val:"low"},{label:"I don't mind if it adds structure",val:"high"}]},{q:"Do you need powerful dependency injection?",options:[{label:"Yes, built-in please",val:"yes"},{label:"No, keeping it simple",val:"no"}]}];return(0,b.jsx)(d.ToolLayout,{title:"State Management Picker",description:"Tell us about your project, and we'll recommend the perfect state management solution with code.",controls:(0,b.jsx)("div",{className:"animate-in fade-in duration-700",children:o?(0,b.jsxs)("div",{className:"bg-card border border-border rounded-[3rem] p-12 shadow-2xl relative overflow-hidden h-full flex flex-col justify-center items-center text-center",children:[(0,b.jsx)(e.CheckCircle2,{className:"w-20 h-20 text-emerald-500 mb-6"}),(0,b.jsx)("h2",{className:"text-3xl font-black italic tracking-tight mb-2",children:"Quiz Complete!"}),(0,b.jsx)("p",{className:"text-muted-foreground mb-8",children:"We found the perfect state management solution for you based on your answers."}),(0,b.jsxs)("button",{onClick:()=>{l(0),n([]),p(null)},className:"flex items-center gap-2 px-6 py-3 bg-secondary rounded-full font-black text-[10px] uppercase tracking-widest hover:bg-border transition-all",children:[(0,b.jsx)(g.RotateCcw,{className:"w-3 h-3"})," Re-take Quiz"]})]}):(0,b.jsxs)("div",{className:"bg-card border border-border rounded-[3rem] p-12 shadow-2xl space-y-12 relative overflow-hidden h-full",children:[(0,b.jsx)("div",{className:"absolute top-0 right-0 w-64 h-64 bg-primary/5 blur-3xl rounded-full"}),(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsx)("div",{className:"flex gap-2",children:q.map((c,d)=>(0,b.jsx)("div",{className:`h-1.5 w-12 rounded-full transition-all ${d<=a?"bg-primary":"bg-secondary"}`},d))}),(0,b.jsxs)("span",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest",children:["Question ",a+1,"/3"]})]}),(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsx)("h2",{className:"text-3xl font-black italic tracking-tight",children:q[a].q}),(0,b.jsx)("p",{className:"text-muted-foreground text-sm",children:"Select the option that best fits your development style."})]}),(0,b.jsx)("div",{className:"grid grid-cols-1 gap-4",children:q[a].options.map(c=>(0,b.jsxs)("button",{onClick:()=>{let b;n(b=[...m,c.val]),a<q.length-1?l(a+1):"large"===b[0]||"high"===b[1]?p("bloc"):"yes"===b[2]&&"low"===b[1]?p("riverpod"):"small"===b[0]&&"low"===b[1]?p("getx"):p("provider")},className:"group flex items-center justify-between p-6 bg-secondary/30 border border-border rounded-2xl hover:bg-primary/5 hover:border-primary transition-all text-left",children:[(0,b.jsx)("span",{className:"font-bold",children:c.label}),(0,b.jsx)(f.ArrowRight,{className:"w-5 h-5 opacity-0 group-hover:opacity-100 -translate-x-4 group-hover:translate-x-0 transition-all text-primary"})]},c.val))})]})}),output:(0,b.jsx)("div",{className:"animate-in fade-in slide-in-from-right-4 duration-700 h-full",children:o?(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)("div",{className:"bg-card border border-border rounded-[3rem] p-10 shadow-xl relative overflow-hidden",children:[(0,b.jsx)("div",{className:`absolute top-0 right-0 w-80 h-80 ${k[o].color}/10 blur-[100px]`}),(0,b.jsxs)("div",{className:"flex items-center gap-6 mb-8",children:[(0,b.jsx)("div",{className:`w-16 h-16 rounded-3xl ${k[o].color} flex items-center justify-center text-white shadow-xl shadow-indigo-500/10`,children:(0,b.jsx)(i.Zap,{className:"w-8 h-8 fill-current"})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-[10px] font-black text-primary uppercase tracking-[0.3em] mb-1",children:"Recommendation"}),(0,b.jsx)("h2",{className:"text-3xl font-black italic",children:k[o].name})]})]}),(0,b.jsx)("p",{className:"text-md text-muted-foreground leading-relaxed mb-8",children:k[o].desc})]}),(0,b.jsx)(j.CodeOutput,{title:`${k[o].name} Boilerplate`,code:k[o].code,language:"dart"})]}):(0,b.jsxs)("div",{className:"h-full flex flex-col items-center justify-center text-center p-20 border-4 border-dashed border-border rounded-[4rem] opacity-20 bg-card/50",children:[(0,b.jsx)(h.Layers,{className:"w-20 h-20 mb-6"}),(0,b.jsx)("h4",{className:"text-2xl font-black italic",children:"Awaiting Answers"}),(0,b.jsx)("p",{className:"text-sm mt-2",children:"Complete the quiz on the left to see your recommendation."})]})})})}a.s(["default",()=>l])}];

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