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)},25015,a=>{"use strict";let b=(0,a.i(70106).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);a.s(["Play",()=>b],25015)},51399,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(69147),e=a.i(62258),f=a.i(54933),g=a.i(70106);let h=(0,g.default)("timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]),i=(0,g.default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);var j=a.i(25015);function k(){let[a,g]=(0,c.useState)("opacity"),[k,l]=(0,c.useState)(1e3),[m,n]=(0,c.useState)("Curves.easeInOut"),[o,p]=(0,c.useState)(0),q=a=>{switch(a){case"Curves.linear":return"linear";case"Curves.bounceIn":return"cubic-bezier(0.75, -0.5, 0, 1.75)";case"Curves.elasticOut":return"cubic-bezier(0.68, -0.6, 0.32, 1.6)";case"Curves.decelerate":return"cubic-bezier(0, 0, 0.2, 1)";default:return"ease-in-out"}},r={opacity:{label:"Opacity",code:`AnimatedOpacity(
  opacity: _isVisible ? 1.0 : 0.0,
  duration: const Duration(milliseconds: ${k}),
  curve: ${m},
  child: const FlutterLogo(size: 100),
)`,style:{transition:`all ${k}ms ${q(m)}`,opacity:+(o%2==0)}},scale:{label:"Scale",code:`AnimatedScale(
  scale: _isExpanded ? 1.0 : 0.5,
  duration: const Duration(milliseconds: ${k}),
  curve: ${m},
  child: const FlutterLogo(size: 100),
)`,style:{transition:`all ${k}ms ${q(m)}`,transform:o%2==0?"scale(1)":"scale(0.5)"}},rotation:{label:"Rotation",code:`AnimatedRotation(
  turns: _isRotated ? 1.0 : 0.0,
  duration: const Duration(milliseconds: ${k}),
  curve: ${m},
  child: const FlutterLogo(size: 100),
)`,style:{transition:`all ${k}ms ${q(m)}`,transform:o%2==0?"rotate(0deg)":"rotate(360deg)"}},slide:{label:"Slide",code:`AnimatedSlide(
  offset: _isMoved ? const Offset(1, 0) : Offset.zero,
  duration: const Duration(milliseconds: ${k}),
  curve: ${m},
  child: const FlutterLogo(size: 100),
)`,style:{transition:`all ${k}ms ${q(m)}`,transform:o%2==0?"translateX(0)":"translateX(100px)"}},padding:{label:"Padding",code:`AnimatedPadding(
  padding: EdgeInsets.all(_hasPadding ? 32.0 : 0.0),
  duration: const Duration(milliseconds: ${k}),
  curve: ${m},
  child: const FlutterLogo(size: 100),
)`,style:{transition:`all ${k}ms ${q(m)}`,padding:o%2==0?"0px":"32px"}},borderRadius:{label:"Border Radius",code:`AnimatedContainer(
  decoration: BoxDecoration(
    borderRadius: BorderRadius.circular(_isRounded ? 50 : 0),
    color: Colors.blue,
  ),
  duration: const Duration(milliseconds: ${k}),
  curve: ${m},
  child: const FlutterLogo(size: 100),
)`,style:{transition:`all ${k}ms ${q(m)}`,borderRadius:o%2==0?"12px":"50%"}},color:{label:"Color/Theme",code:`AnimatedContainer(
  color: _isActive ? Colors.blue : Colors.red,
  duration: const Duration(milliseconds: ${k}),
  curve: ${m},
  child: const FlutterLogo(size: 100),
)`,style:{transition:`all ${k}ms ${q(m)}`,backgroundColor:o%2==0?"transparent":"#ef4444",color:o%2==0?"currentColor":"#ffffff"}},elevation:{label:"Elevation",code:`AnimatedPhysicalModel(
  shape: BoxShape.rectangle,
  elevation: _isElevated ? 25.0 : 0.0,
  color: Colors.white,
  shadowColor: Colors.black,
  duration: const Duration(milliseconds: ${k}),
  curve: ${m},
  child: const FlutterLogo(size: 100),
)`,style:{transition:`all ${k}ms ${q(m)}`,boxShadow:o%2==0?"0 0px 0px rgba(0,0,0,0)":"0 25px 50px -12px rgba(0, 0, 0, 0.5)"}},blur:{label:"Blur Filter",code:`TweenAnimationBuilder<double>(
  tween: Tween<double>(begin: 0.0, end: _isBlurred ? 10.0 : 0.0),
  duration: const Duration(milliseconds: ${k}),
  curve: ${m},
  builder: (context, value, child) {
    return ImageFiltered(
      imageFilter: ImageFilter.blur(sigmaX: value, sigmaY: value),
      child: child,
    );
  },
  child: const FlutterLogo(size: 100),
)`,style:{transition:`all ${k}ms ${q(m)}`,filter:o%2==0?"blur(0px)":"blur(10px)"}},flip:{label:"3D Flip",code:`TweenAnimationBuilder<double>(
  tween: Tween<double>(begin: 0, end: _isFlipped ? pi : 0),
  duration: const Duration(milliseconds: ${k}),
  curve: ${m},
  builder: (context, value, child) {
    return Transform(
      alignment: Alignment.center,
      transform: Matrix4.identity()..setEntry(3, 2, 0.001)..rotateY(value),
      child: child,
    );
  },
  child: const FlutterLogo(size: 100),
)`,style:{transition:`all ${k}ms ${q(m)}`,transform:o%2==0?"perspective(500px) rotateY(0deg)":"perspective(500px) rotateY(180deg)"}}},s=r[a];return(0,b.jsx)(d.ToolLayout,{title:"Animation Builder",description:"Visually configure extensive Flutter animations, experiment with curves, and generate clean boilerplate code.",controls:(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsxs)("label",{className:"text-sm font-bold text-muted-foreground flex items-center gap-2",children:[(0,b.jsx)(i,{className:"w-4 h-4 text-primary"}),"Animation Type"]}),(0,b.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2 max-h-[250px] overflow-y-auto custom-scrollbar pr-2",children:Object.entries(r).map(([c,d])=>(0,b.jsx)("button",{onClick:()=>{g(c),p(0)},className:`px-3 py-2.5 rounded-xl border text-[10px] sm:text-xs font-black uppercase tracking-widest transition-all ${a===c?"bg-primary border-primary text-white shadow-lg shadow-primary/20":"bg-card border-border text-muted-foreground hover:border-primary/50 hover:bg-secondary/40"}`,children:d.label},c))})]}),(0,b.jsxs)("div",{className:"space-y-6 bg-secondary/20 p-6 rounded-3xl border border-border",children:[(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex justify-between items-center bg-card px-4 py-2 border border-border rounded-xl shadow-sm",children:[(0,b.jsxs)("label",{className:"text-xs font-black uppercase tracking-widest text-muted-foreground flex items-center gap-2",children:[(0,b.jsx)(h,{className:"w-4 h-4 text-primary"}),"Duration"]}),(0,b.jsxs)("span",{className:"text-sm font-black text-primary",children:[k,"ms"]})]}),(0,b.jsx)("input",{type:"range",min:"100",max:"3000",step:"100",value:k,onChange:a=>l(parseInt(a.target.value)),className:"w-full accent-primary h-2 bg-border rounded-lg appearance-none cursor-pointer"})]}),(0,b.jsxs)("div",{className:"space-y-3 pt-2 border-t border-border/50",children:[(0,b.jsx)("label",{className:"text-xs font-black uppercase tracking-widest text-muted-foreground",children:"Transition Curve"}),(0,b.jsxs)("select",{value:m,onChange:a=>n(a.target.value),className:"w-full px-4 py-3 bg-card border border-border rounded-xl font-bold text-sm text-foreground outline-none focus:ring-2 focus:ring-primary shadow-sm",children:[(0,b.jsx)("option",{value:"Curves.linear",children:"Linear"}),(0,b.jsx)("option",{value:"Curves.easeInOut",children:"Ease In Out"}),(0,b.jsx)("option",{value:"Curves.bounceIn",children:"Bounce In"}),(0,b.jsx)("option",{value:"Curves.elasticOut",children:"Elastic Out"}),(0,b.jsx)("option",{value:"Curves.decelerate",children:"Decelerate"})]})]})]}),(0,b.jsxs)("button",{onClick:()=>p(a=>a+1),className:"w-full h-16 bg-primary text-white font-black text-sm uppercase tracking-[0.2em] rounded-2xl flex items-center justify-center gap-3 shadow-2xl shadow-primary/30 hover:bg-primary/90 active:scale-[0.98] transition-all",children:[(0,b.jsx)(j.Play,{className:"w-5 h-5 fill-current"}),"TRIGGER ANIMATION"]})]}),output:(0,b.jsxs)("div",{className:"h-full flex flex-col gap-6",children:[(0,b.jsxs)("div",{className:"relative min-h-[350px] flex items-center justify-center overflow-hidden bg-slate-50 dark:bg-slate-950 rounded-[3.5rem] border-2 border-border shadow-inner",children:[(0,b.jsx)("div",{className:"absolute inset-0 opacity-[0.03] dark:opacity-[0.05]",style:{backgroundImage:"radial-gradient(circle, currentColor 1px, transparent 1px)",backgroundSize:"24px 24px"}}),(0,b.jsx)("div",{className:"relative z-10 w-32 h-32 flex items-center justify-center transition-all bg-card border-2 border-primary/20 shadow-xl",style:{borderRadius:"16px",...s.style},children:(0,b.jsx)(f.Wand2,{className:"w-12 h-12 text-primary"})}),(0,b.jsxs)("div",{className:"absolute top-6 left-6 px-4 py-1.5 rounded-full bg-primary/10 border border-primary/20 text-primary text-[10px] font-black uppercase tracking-widest flex items-center gap-2",children:[(0,b.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,b.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75"}),(0,b.jsx)("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-primary"})]}),"Live Preview: ",s.label]})]}),(0,b.jsxs)("div",{className:"flex-1 min-h-[300px]",children:[(0,b.jsx)("div",{className:"mb-4 flex items-center justify-between px-2",children:(0,b.jsxs)("h4",{className:"text-[10px] font-black text-muted-foreground uppercase tracking-widest flex items-center gap-2",children:[(0,b.jsx)(f.Wand2,{className:"w-3 h-3"}),"Generated Dart Code"]})}),(0,b.jsx)(e.CodeOutput,{language:"dart",code:s.code,title:`${s.label} Implementation`})]})]})})}a.s(["default",()=>k],51399)}];

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