(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38149,e=>{"use strict";var t=e.i(43476);function r({title:e,description:r,controls:s,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:r})]}),(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:s})}),(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",()=>r])},74886,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Copy",()=>t],74886)},43531,e=>{"use strict";let t=(0,e.i(75254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],43531)},31067,e=>{"use strict";function t(){return(t=Object.assign.bind()).apply(null,arguments)}e.s(["default",()=>t])},48421,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(38149),a=e.i(74837);function c(){let[e,c]=(0,r.useState)("M 10 80 C 40 10, 65 10, 95 80 S 150 150, 180 80"),[l,i]=(0,r.useState)("");return(0,r.useEffect)(()=>{i(function(e){if(!e)return"// Paste your SVG path data here";let t=e.replace(/([a-zA-Z])/g," $1 ").replace(/,/g," ").replace(/-/g," -").split(/\s+/).filter(e=>""!==e.trim()),r="Path()",s="",a=0;for(;a<t.length;){let e=t[a];switch(/[a-zA-Z]/.test(e)&&(s=e,a++),s.toUpperCase()){case"M":{let e=t[a++],c=t[a++];r+=`
  ..moveTo(${e}, ${c})`,s="M"===s?"L":"l";break}case"L":{let e=t[a++],s=t[a++];r+=`
  ..lineTo(${e}, ${s})`;break}case"H":{let e=t[a++];r+=`
  ..lineTo(${e}, currentY)`;break}case"V":{let e=t[a++];r+=`
  ..lineTo(currentX, ${e})`;break}case"C":{let e=t[a++],s=t[a++],c=t[a++],l=t[a++],i=t[a++],o=t[a++];r+=`
  ..cubicTo(${e}, ${s}, ${c}, ${l}, ${i}, ${o})`;break}case"Q":{let e=t[a++],s=t[a++],c=t[a++],l=t[a++];r+=`
  ..quadraticBezierTo(${e}, ${s}, ${c}, ${l})`;break}case"Z":r+=`
  ..close()`;break;default:a++}}return r+";"}(e))},[e]),(0,t.jsx)(s.ToolLayout,{title:"SVG to Flutter Path",description:"Convert SVG path data (d attribute) into Flutter CustomPainter Path code.",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:"SVG Path Data (d)"}),(0,t.jsx)("textarea",{value:e,onChange:e=>c(e.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,t.jsx)("div",{className:"p-4 bg-primary/5 border border-primary/20 rounded-xl",children:(0,t.jsxs)("p",{className:"text-xs text-muted-foreground leading-relaxed",children:[(0,t.jsx)("strong",{className:"text-primary",children:"Note:"})," This tool supports basic commands like",(0,t.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,t.jsxs)("div",{className:"pt-4 border-t border-border",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground uppercase tracking-widest block mb-6 text-center",children:"Path Preview (SVG)"}),(0,t.jsx)("div",{className:"flex justify-center bg-white p-4 rounded-xl",children:(0,t.jsx)("svg",{width:"200",height:"200",viewBox:"0 0 200 200",className:"border border-slate-100",children:(0,t.jsx)("path",{d:e,fill:"none",stroke:"#0284c7",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]}),output:(0,t.jsx)(a.CodeOutput,{code:l})})}e.s(["default",()=>c],48421)}]);