(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:i}){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"}),i]})})]})]})}e.s(["ToolLayout",()=>s])},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])},34066,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(38149),i=e.i(74837);function a(){let[e,a]=(0,s.useState)(600),[d,o]=(0,s.useState)(1024),[l,n]=(0,s.useState)(!0),c=`class ResponsiveLayout extends StatelessWidget {
  final Widget mobile;
  final Widget? tablet;
  final Widget desktop;

  const ResponsiveLayout({
    Key? key,
    required this.mobile,
    this.tablet,
    required this.desktop,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return LayoutBuilder(
      builder: (context, constraints) {
        ${l?"final bool isLandscape = constraints.maxWidth > constraints.maxHeight;":""}
        
        if (constraints.maxWidth >= ${d}) {
          return desktop;
        }
        
        if (constraints.maxWidth >= ${e}) {
          return tablet ?? mobile;
        }
        
        return mobile;
      },
    );
  }
}

// Usage:
// ResponsiveLayout(
//   mobile: MobileView(),
//   tablet: TabletView(),
//   desktop: DesktopView(),
// )`;return(0,t.jsx)(r.ToolLayout,{title:"Responsive Layout Pro",description:"Generate production-ready responsive wrappers with orientation support and optimized LayoutBuilder logic.",controls:(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"Mobile Breakpoint"}),(0,t.jsx)("input",{type:"number",value:e,onChange:e=>a(parseInt(e.target.value)),className:"w-full px-4 py-2 bg-background border border-border rounded-xl focus:ring-2 focus:ring-primary outline-none"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"Tablet Breakpoint"}),(0,t.jsx)("input",{type:"number",value:d,onChange:e=>o(parseInt(e.target.value)),className:"w-full px-4 py-2 bg-background border border-border rounded-xl focus:ring-2 focus:ring-primary outline-none"})]})]}),(0,t.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer group p-4 bg-secondary/30 rounded-xl border border-border",children:[(0,t.jsx)("input",{type:"checkbox",checked:l,onChange:e=>n(e.target.checked),className:"w-4 h-4 rounded border-border text-primary focus:ring-primary bg-background"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("span",{className:"text-sm font-bold text-muted-foreground group-hover:text-foreground block",children:"Detect Orientation"}),(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"Adds logic to check if device is in landscape mode."})]})]}),(0,t.jsxs)("div",{className:"pt-8 border-t border-border flex flex-col items-center",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground uppercase tracking-widest block mb-10 text-center",children:"Visual Breakpoints"}),(0,t.jsxs)("div",{className:"h-40 w-full rounded-2xl border-2 border-dashed border-border flex relative overflow-hidden bg-slate-100 dark:bg-slate-900",children:[(0,t.jsx)("div",{className:"flex flex-col items-center justify-center bg-blue-500/10 border-r border-border shrink-0",style:{width:"20%"},children:(0,t.jsx)("span",{className:"text-[9px] font-bold text-blue-500",children:"MOBILE"})}),(0,t.jsx)("div",{className:"flex flex-col items-center justify-center bg-purple-500/10 border-r border-border shrink-0",style:{width:"40%"},children:(0,t.jsx)("span",{className:"text-[9px] font-bold text-purple-500",children:"TABLET"})}),(0,t.jsx)("div",{className:"flex-1 flex flex-col items-center justify-center bg-green-500/10",children:(0,t.jsx)("span",{className:"text-[9px] font-bold text-green-500",children:"DESKTOP"})})]})]})]}),output:(0,t.jsx)(i.CodeOutput,{code:c})})}e.s(["default",()=>a])}]);