{"version":3,"file":"Livedemo_code.DvL8ZNTJ.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/a6QHbiV2w3E3YazekB1d/qOGvRL3VsGfsiE6hHkSY/Livedemo_code.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function Livedemo_code(props){const{url}=props;const[tab,setTab]=useState(\"preview\");const[isFullscreen,setIsFullscreen]=useState(false);const code=`import { useState } from \"react\"\n\n// US News Money - AI Article Module\n// Nuclear Energy Stocks & ETFs Article Page\n\nexport default function ArticlePage() {\n    return (\n        <div className=\"min-h-screen bg-white\">\n\n            {/* ── Header ── */}\n            <header className=\"w-full bg-[#171923] text-white\">\n                <div className=\"mx-auto flex h-[86px] max-w-[2048px]\n                    items-center gap-3 px-4 md:px-6 xl:px-7\">\n                    <a href=\"/\">\n                        <img src=\"/usn-logo-large.svg\"\n                            className=\"h-[40px] w-auto\" />\n                    </a>\n                    <a className=\"text-[22px] font-bold uppercase\n                        tracking-[0.12em] text-white\" href=\"#\">\n                        Money \\xbb\n                    </a>\n                    <nav className=\"hidden xl:flex h-full gap-[6px]\">\n                        {[\"Credit Cards\",\"Mortgages\",\"Personal Loans\",\n                          \"Student Loans\",\"Banking\",\"Investing\",\n                          \"Retirement\",\"Other\"].map((item) => (\n                            <a key={item}\n                                className=\"flex items-center px-[18px]\n                                text-[18px] font-semibold text-white\">\n                                {item}\n                            </a>\n                        ))}\n                    </nav>\n                </div>\n            </header>\n\n            {/* ── Main Content ── */}\n            <main className=\"mx-auto max-w-[1440px] px-4 pb-16 pt-8\n                md:px-14\">\n\n                {/* Article + Sidebar layout */}\n                <div className=\"mt-6 flex gap-6 xl:items-start\">\n\n                    {/* ── Article ── */}\n                    <section className=\"min-w-0 flex-1\">\n                        <h1 className=\"text-[48px] font-bold\n                            text-[#090909] leading-tight\">\n                            5 Best Nuclear Energy Stocks and ETFs to Buy\n                        </h1>\n                        <p className=\"text-[20px] text-[#040710] mt-4\">\n                            Renewed interest in nuclear energy stocks\n                            and ETFs comes amid the growth in AI.\n                        </p>\n\n                        {/* Ask AI Banner */}\n                        <div className=\"mt-6 h-[68px] w-full flex\n                            items-center justify-between rounded-[8px]\n                            bg-[#1263d3] px-6 text-white\">\n                            <span className=\"font-bold text-[14px]\">\n                                Ask A.I. for quicker answers\n                            </span>\n                            <div className=\"flex gap-3\">\n                                <span className=\"rounded-[8px] bg-white\n                                    px-3 py-2 text-[14px] font-bold\n                                    text-[#1263d3]\">\n                                    SUMMARIZE\n                                </span>\n                                <span className=\"rounded-[8px] bg-white\n                                    px-3 py-2 text-[14px] font-bold\n                                    text-[#1263d3]\">\n                                    CHAT\n                                </span>\n                            </div>\n                        </div>\n\n                        {/* Article Body */}\n                        <article className=\"mt-6 flex flex-col gap-5\">\n                            <figure className=\"w-full\">\n                                <img src=\"/nuclear-facility.png\"\n                                    className=\"w-full object-cover\n                                    aspect-[1712/948]\" />\n                            </figure>\n                            <p className=\"text-[17px] text-[#333d4d]\n                                leading-[27.63px]\">\n                                If you're looking for a picks-and-shovels\n                                way to play the AI boom, you could do\n                                worse than invest in the supply chain\n                                that provides it with electricity.\n                            </p>\n\n                            {/* Stocks Table */}\n                            <table className=\"w-full border-collapse\">\n                                <thead>\n                                    <tr className=\"border-b-2\n                                        border-[#141f2e]\">\n                                        <th className=\"px-4 py-3\n                                            text-left text-[17px]\n                                            font-semibold text-[#333d4d]\">\n                                            Stock/ETF\n                                        </th>\n                                        <th className=\"px-4 py-3\n                                            text-left text-[17px]\n                                            font-semibold text-[#333d4d]\">\n                                            Market Cap/Assets\n                                        </th>\n                                    </tr>\n                                </thead>\n                                <tbody>\n                                    {[\n                                        [\"Cameco Corp. (CCJ)\",\n                                         \"$52.9 billion\"],\n                                        [\"GE Vernova Inc. (GEV)\",\n                                         \"$178.2 billion\"],\n                                        [\"Constellation Energy (CEG)\",\n                                         \"$105.0 billion\"],\n                                        [\"VanEck Uranium ETF (NLR)\",\n                                         \"$4.7 billion\"],\n                                        [\"Range Nuclear ETF (NUKZ)\",\n                                         \"$829.8 million\"],\n                                    ].map(([name, cap], i) => (\n                                        <tr key={i}\n                                            className={\\`border-b\n                                            border-[#dae0e7] \\${\n                                            i % 2 === 0\n                                                ? \"bg-[#f3f5f6]\"\n                                                : \"bg-white\"}\\`}>\n                                            <td className=\"px-4 py-3\n                                                text-[17px]\n                                                text-[#333d4d]\">\n                                                {name}\n                                            </td>\n                                            <td className=\"px-4 py-3\n                                                text-[17px]\n                                                text-[#333d4d]\">\n                                                {cap}\n                                            </td>\n                                        </tr>\n                                    ))}\n                                </tbody>\n                            </table>\n                        </article>\n                    </section>\n\n                    {/* ── Sidebar ── */}\n                    <aside className=\"hidden xl:flex xl:w-[357px]\n                        xl:flex-col xl:gap-6\">\n                        <div className=\"rounded-[4px] border\n                            border-[#dae0e7] bg-white p-4\">\n                            <h3 className=\"text-[13.8px] font-bold\n                                text-[#1f252e]\">\n                                Ask about this article\n                            </h3>\n                            <p className=\"text-[12px] text-[#737d8c]\">\n                                Get summaries, explanations & next steps\n                            </p>\n                            <button className=\"mt-3 h-9 w-full\n                                rounded-[2px] border border-[#e2e8f0]\n                                text-[12px] text-[#1f252e]\">\n                                Generate 10-second summary\n                            </button>\n                        </div>\n                    </aside>\n\n                </div>\n            </main>\n        </div>\n    )\n}`;const containerStyle=isFullscreen?{position:\"fixed\",inset:0,zIndex:99999,display:\"flex\",flexDirection:\"column\",overflow:\"hidden\",background:\"#0d0d0d\",borderRadius:0,border:\"none\"}:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",overflow:\"hidden\",background:\"#0d0d0d\",borderRadius:12,border:\"1px solid rgba(255,255,255,0.08)\"};const toggleBarStyle={display:\"flex\",alignItems:\"center\",padding:\"10px 14px\",gap:6,background:\"#161616\",borderBottom:\"1px solid rgba(255,255,255,0.07)\",flexShrink:0};const btnStyle=active=>({padding:\"6px 18px\",borderRadius:8,border:active?\"1px solid rgba(255,255,255,0.18)\":\"1px solid transparent\",background:active?\"#2a2a2a\":\"transparent\",cursor:\"pointer\",fontSize:13,fontWeight:500,color:active?\"#ffffff\":\"#666666\",transition:\"all 0.15s ease\"});const iconBtnStyle={display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:30,height:30,borderRadius:7,border:\"1px solid rgba(255,255,255,0.12)\",background:\"transparent\",cursor:\"pointer\",color:\"#888888\",transition:\"all 0.15s ease\",flexShrink:0,textDecoration:\"none\",padding:0};const hoverOn=e=>{const el=e.currentTarget;el.style.color=\"#ffffff\";el.style.background=\"rgba(255,255,255,0.08)\";el.style.borderColor=\"rgba(255,255,255,0.25)\";};const hoverOff=e=>{const el=e.currentTarget;el.style.color=\"#888888\";el.style.background=\"transparent\";el.style.borderColor=\"rgba(255,255,255,0.12)\";};// Icons\nconst ExternalLinkIcon=()=>/*#__PURE__*/_jsxs(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M5.5 2.5H2.5C1.94772 2.5 1.5 2.94772 1.5 3.5V11.5C1.5 12.0523 1.94772 12.5 2.5 12.5H10.5C11.0523 12.5 11.5 12.0523 11.5 11.5V8.5\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M8.5 1.5H12.5V5.5\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M12.5 1.5L6.5 7.5\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinecap:\"round\"})]});const FullscreenIcon=()=>/*#__PURE__*/_jsxs(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M1.5 5V2.5H4\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M10 2.5H12.5V5\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M12.5 9V11.5H10\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M4 11.5H1.5V9\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]});const ExitFullscreenIcon=()=>/*#__PURE__*/_jsxs(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M4 1.5V4H1.5\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M12.5 4H10V1.5\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M10 12.5V10H12.5\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M1.5 10H4V12.5\",stroke:\"currentColor\",strokeWidth:\"1.3\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]});const contentStyle={flex:1,overflow:\"hidden\",position:\"relative\"};const preStyle={margin:0,padding:\"20px 24px\",height:\"100%\",overflow:\"auto\",background:\"#0d0d0d\",color:\"#e2e8f0\",fontSize:12.5,lineHeight:1.8,fontFamily:\"monospace\",boxSizing:\"border-box\",whiteSpace:\"pre\"};return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsxs(\"div\",{style:toggleBarStyle,children:[/*#__PURE__*/_jsx(\"button\",{style:btnStyle(tab===\"preview\"),onClick:()=>setTab(\"preview\"),children:\"Preview\"}),/*#__PURE__*/_jsx(\"button\",{style:btnStyle(tab===\"code\"),onClick:()=>setTab(\"code\"),children:\"Code\"}),/*#__PURE__*/_jsx(\"div\",{style:{marginLeft:\"auto\",display:\"flex\",gap:6},children:/*#__PURE__*/_jsx(\"button\",{style:iconBtnStyle,title:isFullscreen?\"Exit fullscreen\":\"Fullscreen\",onClick:()=>setIsFullscreen(!isFullscreen),onMouseEnter:hoverOn,onMouseLeave:hoverOff,children:isFullscreen?/*#__PURE__*/_jsx(ExitFullscreenIcon,{}):/*#__PURE__*/_jsx(FullscreenIcon,{})})})]}),/*#__PURE__*/_jsx(\"div\",{style:contentStyle,children:tab===\"preview\"?/*#__PURE__*/_jsx(\"iframe\",{src:url,style:{width:\"100%\",height:\"100%\",border:\"none\",display:\"block\"}}):/*#__PURE__*/_jsx(\"pre\",{style:preStyle,children:code})})]});}addPropertyControls(Livedemo_code,{url:{title:\"Demo URL\",type:ControlType.String,defaultValue:\"https://uuu.kaleidoscope.tech/\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Livedemo_code\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Livedemo_code.map"],"mappings":"iLAGG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,OAAK,EAAW,CAAC,EAAI,GAAQA,EAAS,UAAU,CAAM,CAAC,EAAa,GAAiBA,EAAS,GAAM,CAsKjJ,EAAe,EAAa,CAAC,SAAS,QAAQ,MAAM,EAAE,OAAO,MAAM,QAAQ,OA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