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)},67258,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)("M 10 80 C 40 10, 65 10, 95 80 S 150 150, 180 80"),[g,h]=(0,c.useState)("");return(0,c.useEffect)(()=>{h(function(a){if(!a)return"// Paste your SVG path data here";let b=a.replace(/([a-zA-Z])/g," $1 ").replace(/,/g," ").replace(/-/g," -").split(/\s+/).filter(a=>""!==a.trim()),c="Path()",d="",e=0;for(;e<b.length;){let a=b[e];switch(/[a-zA-Z]/.test(a)&&(d=a,e++),d.toUpperCase()){case"M":{let a=b[e++],f=b[e++];c+=`
  ..moveTo(${a}, ${f})`,d="M"===d?"L":"l";break}case"L":{let a=b[e++],d=b[e++];c+=`
  ..lineTo(${a}, ${d})`;break}case"H":{let a=b[e++];c+=`
  ..lineTo(${a}, currentY)`;break}case"V":{let a=b[e++];c+=`
  ..lineTo(currentX, ${a})`;break}case"C":{let a=b[e++],d=b[e++],f=b[e++],g=b[e++],h=b[e++],i=b[e++];c+=`
  ..cubicTo(${a}, ${d}, ${f}, ${g}, ${h}, ${i})`;break}case"Q":{let a=b[e++],d=b[e++],f=b[e++],g=b[e++];c+=`
  ..quadraticBezierTo(${a}, ${d}, ${f}, ${g})`;break}case"Z":c+=`
  ..close()`;break;default:e++}}return c+";"}(a))},[a]),(0,b.jsx)(d.ToolLayout,{title:"SVG to Flutter Path",description:"Convert SVG path data (d attribute) into Flutter CustomPainter Path code.",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:"SVG Path Data (d)"}),(0,b.jsx)("textarea",{value:a,onChange:a=>f(a.target.value),className:"w-full h-[250px] px-4 py-3 bg-background border border-border rounded-xl font-mono text-xs focus:ring-2 focus:ring-primary outline-none transition-all resize-none",placeholder:"e.g. M 10 10 L 90 10 L 90 90 Z"})]}),(0,b.jsx)("div",{className:"p-4 bg-primary/5 border border-primary/20 rounded-xl",children:(0,b.jsxs)("p",{className:"text-xs text-muted-foreground leading-relaxed",children:[(0,b.jsx)("strong",{className:"text-primary",children:"Note:"})," This tool supports basic commands like",(0,b.jsx)("code",{className:"mx-1 px-1 bg-background rounded text-accent",children:"M, L, C, Q, Z"}),". Relative commands and complex arcs are simplified for CustomPainter usage."]})}),(0,b.jsxs)("div",{className:"pt-4 border-t border-border",children:[(0,b.jsx)("span",{className:"text-xs text-muted-foreground uppercase tracking-widest block mb-6 text-center",children:"Path Preview (SVG)"}),(0,b.jsx)("div",{className:"flex justify-center bg-white p-4 rounded-xl",children:(0,b.jsx)("svg",{width:"200",height:"200",viewBox:"0 0 200 200",className:"border border-slate-100",children:(0,b.jsx)("path",{d:a,fill:"none",stroke:"#0284c7",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]}),output:(0,b.jsx)(e.CodeOutput,{code:g})})}a.s(["default",()=>f],67258)}];

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