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])},83179,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(69147);let e={flutter_lints:"5.0.0",cupertino_icons:"1.0.8",get_it:"8.0.0",provider:"6.1.2",flutter_bloc:"8.1.6",dio:"5.7.0",json_annotation:"4.9.0",freezed_annotation:"2.4.4",equatable:"2.0.5",go_router:"14.3.0",intl:"0.19.0",url_launcher:"6.3.0",path_provider:"2.1.4",sqflite:"2.3.3+1",cached_network_image:"3.4.1"};function f(){let[a,f]=(0,c.useState)(`name: my_app
dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.2
  dio: ^4.0.0
  flutter_bloc: 7.0.0
  get_it: any`),[g,h]=(0,c.useState)([]);return(0,b.jsx)(d.ToolLayout,{title:"Pubspec Dependency Analyzer",description:"Paste your pubspec.yaml file to detect outdated dependencies and get version recommendations.",controls:(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"pubspec.yaml Content"}),(0,b.jsx)("textarea",{value:a,onChange:a=>f(a.target.value),className:"w-full h-64 px-4 py-3 bg-slate-900 border border-border rounded-xl font-mono text-xs text-blue-300 focus:ring-2 focus:ring-primary outline-none transition-all resize-none",placeholder:"Paste your pubspec.yaml here..."})]}),(0,b.jsx)("button",{onClick:()=>{let b=a.split("\n"),c=[];b.forEach(a=>{let b=a.trim();if(!b||b.startsWith("#"))return;let d=b.split(":");if(2===d.length){let a=d[0].trim(),b=d[1].trim().replace(/[\^~]/,"");if(e[a]){let d=e[a],f="any"!==b&&b!==d&&!d.startsWith(b);c.push({name:a,version:b,latest:d,status:f?"outdated":"any"===b?"warning":"up-to-date"})}}}),h(c)},className:"w-full py-4 bg-primary text-white font-bold rounded-xl shadow-lg transition-all hover:brightness-110 active:scale-95",children:"ANALYZE DEPENDENCIES"}),g.length>0&&(0,b.jsxs)("div",{className:"space-y-3 mt-8",children:[(0,b.jsx)("span",{className:"text-xs font-bold text-muted-foreground uppercase tracking-widest block mb-1",children:"Analysis Results"}),g.map((a,c)=>(0,b.jsxs)("div",{className:`p-4 rounded-xl border ${"outdated"===a.status?"bg-red-500/5 border-red-500/20":"warning"===a.status?"bg-yellow-500/5 border-yellow-500/20":"bg-green-500/5 border-green-500/20"}`,children:[(0,b.jsxs)("div",{className:"flex justify-between items-center mb-1",children:[(0,b.jsx)("span",{className:"font-bold text-sm",children:a.name}),(0,b.jsx)("span",{className:`text-[10px] px-2 py-0.5 rounded-full uppercase font-bold ${"outdated"===a.status?"bg-red-500 text-white":"warning"===a.status?"bg-yellow-500 text-black":"bg-green-500 text-white"}`,children:a.status})]}),(0,b.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Current: ",(0,b.jsx)("code",{className:"text-foreground",children:a.version}),"up-to-date"!==a.status&&(0,b.jsxs)(b.Fragment,{children:[" → Recommended: ",(0,b.jsx)("code",{className:"text-primary font-bold",children:a.latest})]})]})]},c))]})]}),output:(0,b.jsxs)("div",{className:"h-full flex flex-col items-center justify-center p-8 text-center bg-card rounded-2xl border border-dashed border-border",children:[(0,b.jsx)("div",{className:"w-20 h-20 rounded-full bg-secondary flex items-center justify-center mb-6",children:(0,b.jsx)("span",{className:"text-3xl",children:"📦"})}),(0,b.jsx)("h3",{className:"text-xl font-bold mb-2",children:"Health Check"}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground max-w-sm mb-6",children:"Keeping your dependencies up to date ensures your app stays secure and performs optimally."}),(0,b.jsxs)("div",{className:"w-full max-w-xs space-y-2",children:[(0,b.jsx)("div",{className:"h-2 w-full bg-muted/20 rounded-full overflow-hidden",children:(0,b.jsx)("div",{className:"h-full bg-primary w-2/3"})}),(0,b.jsx)("span",{className:"text-[10px] text-muted-foreground uppercase",children:"Stability Score: 85%"})]})]})})}a.s(["default",()=>f])}];

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