(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38149,e=>{"use strict";var t=e.i(43476);function s({title:e,description:s,controls:r,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:s})]}),(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:r})}),(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",()=>s])},78620,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(38149);let a={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 l(){let[e,l]=(0,s.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`),[n,d]=(0,s.useState)([]);return(0,t.jsx)(r.ToolLayout,{title:"Pubspec Dependency Analyzer",description:"Paste your pubspec.yaml file to detect outdated dependencies and get version recommendations.",controls:(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"pubspec.yaml Content"}),(0,t.jsx)("textarea",{value:e,onChange:e=>l(e.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,t.jsx)("button",{onClick:()=>{let t=e.split("\n"),s=[];t.forEach(e=>{let t=e.trim();if(!t||t.startsWith("#"))return;let r=t.split(":");if(2===r.length){let e=r[0].trim(),t=r[1].trim().replace(/[\^~]/,"");if(a[e]){let r=a[e],l="any"!==t&&t!==r&&!r.startsWith(t);s.push({name:e,version:t,latest:r,status:l?"outdated":"any"===t?"warning":"up-to-date"})}}}),d(s)},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"}),n.length>0&&(0,t.jsxs)("div",{className:"space-y-3 mt-8",children:[(0,t.jsx)("span",{className:"text-xs font-bold text-muted-foreground uppercase tracking-widest block mb-1",children:"Analysis Results"}),n.map((e,s)=>(0,t.jsxs)("div",{className:`p-4 rounded-xl border ${"outdated"===e.status?"bg-red-500/5 border-red-500/20":"warning"===e.status?"bg-yellow-500/5 border-yellow-500/20":"bg-green-500/5 border-green-500/20"}`,children:[(0,t.jsxs)("div",{className:"flex justify-between items-center mb-1",children:[(0,t.jsx)("span",{className:"font-bold text-sm",children:e.name}),(0,t.jsx)("span",{className:`text-[10px] px-2 py-0.5 rounded-full uppercase font-bold ${"outdated"===e.status?"bg-red-500 text-white":"warning"===e.status?"bg-yellow-500 text-black":"bg-green-500 text-white"}`,children:e.status})]}),(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Current: ",(0,t.jsx)("code",{className:"text-foreground",children:e.version}),"up-to-date"!==e.status&&(0,t.jsxs)(t.Fragment,{children:[" → Recommended: ",(0,t.jsx)("code",{className:"text-primary font-bold",children:e.latest})]})]})]},s))]})]}),output:(0,t.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,t.jsx)("div",{className:"w-20 h-20 rounded-full bg-secondary flex items-center justify-center mb-6",children:(0,t.jsx)("span",{className:"text-3xl",children:"📦"})}),(0,t.jsx)("h3",{className:"text-xl font-bold mb-2",children:"Health Check"}),(0,t.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,t.jsxs)("div",{className:"w-full max-w-xs space-y-2",children:[(0,t.jsx)("div",{className:"h-2 w-full bg-muted/20 rounded-full overflow-hidden",children:(0,t.jsx)("div",{className:"h-full bg-primary w-2/3"})}),(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground uppercase",children:"Stability Score: 85%"})]})]})})}e.s(["default",()=>l])}]);