{"version":3,"file":"KitConsoleSlice.DpN-GVC9.mjs","names":["_jsx","useRef","useState","_jsxs","c","useEffect","useLayoutEffect","__esmMin","init_npm_react_18_3_1","de","window","c","p","le","init_jsx_runtime","ce","_e","init_ssg_sandbox_shims","TABULAR","RondahLogomark","C","COLOR","FONT","init_KitIcons","RADIUS","SHADOW","init_SiteTokens","init_KitTokens","edge","init_KitWell","PHONE_BELOW","Glyph","name","size","color","ICONS","useSliceFit","target","fit","fitRef","derive","w","h","scale","SLICE","phone","setSize","useIsoLayoutEffect","el","set","next","was","ro","Rail","current","variant","panel","tabs","CONSOLE_RAIL","i","CONSOLE","WindowBar","title","compact","dot","CrumbBar","crumbs","muted","CRUMB_BAR","c$1","PageHeader","t","ConsoleChip","icon","label","tone","amber","ConsoleSlice","root","rail","railVariant","run","style","children","inset","corners","consoleWindow","init_KitConsoleSlice"],"sources":["https:/framerusercontent.com/modules/UBb2wZYHigyIEruHSIxd/sDu6h4L4bUNVhXqAZXsN/KitConsoleSlice.js"],"sourcesContent":["// Source: design-systems/rondah/framer-code/KitConsoleSlice.tsx in rondah-ai/rondah-website. Edit it there and push with the framer-code-push skill; changes made here are overwritten.\n// Rondah product kit — the console slice (mode C, illustration-kit.md §3; kit-components.md §6): one console\n// window under the window bar, the rail beside a page, whole on three sides and bleeding off the bottom.\n// The overview's three slices (OverviewActivity, OverviewCallSummary, OverviewSystemHealth) are built from it.\n// Storyboard: design-systems/rondah/visuals/overview-slices.md. Paper: \"Product kit — options\" ›\n// \"Visual / Overview slices — tall stage\".\n//\n// A slice fills its slot's height: the stage's well (Tabs' Tall stage, as tall as the text column; tablet's\n// 544 × 300; the phone's 318 × 240). It never grows or shrinks the well; a taller well shows more of the\n// same screen, and the stage's own fade ends it (Tabs' \"Stage fade\", Product stage's \"Bottom fade\").\n// Width follows the kit's content fit (§7, useFit): the drawn layout, scaled down to 80% of 544, then the\n// phone crop (no rail, the compact bar, 16 in). Height is read for one thing: a slice that needs a short\n// layout (Call Summary under 400) asks `short`.\n// Also the page-width window bar (`CrumbBar`, 44 tall, a breadcrumb centred), which a slice straight on the page\n// uses instead of the stage's compact bar (KnowTimeSlice.tsx; Independent practices, Gate 2 note 40).\n// Pushed to Framer with the framer-code-push skill. Edit here, never in Framer.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useLayoutEffect,useRef,useState}from\"react\";import{C,FONT,RADIUS,SHADOW,TABULAR,edge}from\"https://framerusercontent.com/modules/BRMpaEGxk0BG7wj0sOy6/XCzzG7RUxKhqEFROhTB3/KitTokens.js\";import{RondahLogomark}from\"https://framerusercontent.com/modules/U3b9I5Zem6UkvxLgKvVY/f586NBaIeO4OTOHnJBsv/KitIcons.js\";import{PHONE_BELOW}from\"https://framerusercontent.com/modules/lnGDGfFppjJzSCjdUK36/SQSTTgC0azXEtMO38mCK/KitWell.js\";import{COLOR}from\"https://framerusercontent.com/modules/pWZdwn8llIp4T5Y22i7E/B6Hy3XgcLnqjwWkDOeyv/SiteTokens.js\";const useIsoLayoutEffect=typeof window===\"undefined\"?useEffect:useLayoutEffect;/** The slice is drawn 544 wide (the stage's well); the phone crop for 318 */export const SLICE={width:544,inset:24,phoneInset:16,bar:36,compactBar:32,short:400};// Colours the kit tokens don't name yet, from the console, as the menu previews draw them (NavPreviews.tsx)\nexport const CONSOLE={railIcon:\"#a89ea9\",railActive:\"#f6f5f6\",dot:\"#d7d0d7\",metaDot:\"#a89ea9\",amber:\"#edb200\",amberChip:\"#efe7d4\",amberText:\"#6f5424\",success:\"#3a6a53\",successRing:\"#cfe3d7\",successRule:\"#e2ede7\",errorRing:\"#fb2c36\",errorText:\"#bf000f\",// The page-width window bar's three dots (CrumbBar; Paper \"Sections / Know time / Final\")\nbarDot:\"#e8e5e8\"};// Untitled UI line icons from design-systems/rondah/assets/kit-icons (the console's set)\nconst ICONS={barChart:\"M18 20V10m-6 10V4M6 20v-6\",activity:\"M22 12h-4l-3 9L9 3l-3 9H2\",phone:\"M8.38 8.853a14.603 14.603 0 0 0 2.847 4.01 14.603 14.603 0 0 0 4.01 2.847c.124.06.187.09.265.112.28.082.625.023.862-.147.067-.048.124-.105.239-.219.35-.35.524-.524.7-.639a2 2 0 0 1 2.18 0c.176.115.35.29.7.64l.195.194c.532.531.797.797.942 1.082a2 2 0 0 1 0 1.806c-.145.285-.41.551-.942 1.082l-.157.158c-.53.53-.795.794-1.155.997-.4.224-1.02.386-1.478.384-.413-.001-.695-.081-1.26-.241a19.038 19.038 0 0 1-8.283-4.874A19.039 19.039 0 0 1 3.17 7.761c-.16-.564-.24-.846-.241-1.26a3.377 3.377 0 0 1 .384-1.477c.202-.36.467-.625.997-1.155l.157-.158c.532-.53.798-.797 1.083-.941a2 2 0 0 1 1.805 0c.286.144.551.41 1.083.942l.195.194c.35.35.524.525.638.7a2 2 0 0 1 0 2.18c-.114.177-.289.352-.638.701a2.037 2.037 0 0 0-.22.238 1.05 1.05 0 0 0-.147.862c.023.08.053.142.113.266Z\",calendar:\"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22Z\",calendarCheck:\"M21 10H3m13-8v4M8 2v4m1 10 2 2 4.5-4.5M7.8 22h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22Z\",checkCircle:\"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z\",flag:\"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1v19\",userPlus:\"M12 15.5H7.5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C2 18.907 2 19.604 2 21m17 0v-6m-3 3h6M14.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z\",refresh:\"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6\",message:\"M6.094 11.229A8.01 8.01 0 0 1 6 10c0-4.418 3.605-8 8.053-8 4.447 0 8.052 3.582 8.052 8a7.94 7.94 0 0 1-.52 2.835c-.07.182-.105.274-.12.345a.897.897 0 0 0-.024.194c-.002.073.008.153.028.314l.403 3.27c.043.355.065.532.006.66a.5.5 0 0 1-.257.252c-.13.055-.306.03-.66-.022l-3.184-.467c-.167-.024-.25-.037-.326-.036a.898.898 0 0 0-.2.021 2.989 2.989 0 0 0-.358.122 8.174 8.174 0 0 1-4.07.42M7.632 22C10.597 22 13 19.538 13 16.5S10.597 11 7.632 11c-2.965 0-5.369 2.462-5.369 5.5 0 .61.097 1.198.277 1.747.075.232.113.348.126.427.013.083.015.13.01.213-.005.08-.025.17-.065.351L2 22l2.995-.409c.163-.022.245-.034.316-.033.076 0 .115.005.19.02.07.013.173.05.381.123a5.246 5.246 0 0 0 1.75.299Z\",phoneIncoming:\"M15 4v5m0 0h5m-5 0 6-6M10.227 13.863a14.604 14.604 0 0 1-2.847-4.01 1.698 1.698 0 0 1-.113-.266 1.046 1.046 0 0 1 .147-.862c.048-.067.105-.124.22-.238.35-.35.524-.524.638-.7a2 2 0 0 0 0-2.18c-.114-.176-.289-.351-.638-.7l-.195-.196c-.532-.531-.797-.797-1.083-.941a2 2 0 0 0-1.805 0c-.285.144-.551.41-1.083.941l-.157.158c-.53.53-.795.794-.997 1.154-.224.4-.386 1.02-.384 1.479 0 .413.081.695.241 1.26a19.038 19.038 0 0 0 4.874 8.283 19.039 19.039 0 0 0 8.283 4.873c.565.16.847.24 1.26.242a3.377 3.377 0 0 0 1.478-.384c.36-.203.625-.468 1.155-.997l.157-.158c.532-.531.797-.797.942-1.082a2 2 0 0 0 0-1.806c-.145-.285-.41-.55-.942-1.082l-.195-.195c-.35-.35-.524-.524-.7-.639a2 2 0 0 0-2.18 0c-.176.114-.35.29-.7.639-.115.114-.172.171-.239.22-.237.17-.581.228-.862.146a1.695 1.695 0 0 1-.266-.113 14.605 14.605 0 0 1-4.01-2.846Z\",hourglass:\"M12 12 7.727 8.44c-.635-.53-.952-.794-1.18-1.119a3 3 0 0 1-.444-.947C6 5.991 6 5.578 6 4.752V2m6 10 4.273-3.56c.635-.53.952-.794 1.18-1.119a3 3 0 0 0 .444-.947C18 5.991 18 5.578 18 4.752V2m-6 10-4.273 3.56c-.635.53-.952.794-1.18 1.119a3 3 0 0 0-.444.947C6 18.009 6 18.422 6 19.248V22m6-10 4.273 3.56c.635.53.952.794 1.18 1.119a3 3 0 0 1 .444.947c.103.383.103.796.103 1.622V22M4 2h16M4 22h16\",clipboardCheck:\"M20 12.5V6.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 2 16.88 2 15.2 2H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.28 4 5.12 4 6.8v10.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 22 7.12 22 8.8 22H12m2-11H8m2 4H8m8-8H8m6.5 12 2 2 4.5-4.5\",// The demo console's nav (rondah-core demo/console, src/demo/navigation.ts; Untitled UI): Home01, Inbox01, MessageChatSquare\nhome:\"M3 10.565c0-.574 0-.861.074-1.126a2 2 0 0 1 .318-.65c.163-.22.39-.397.843-.75l6.783-5.275c.351-.273.527-.41.72-.462a1 1 0 0 1 .523 0c.194.052.37.189.721.462l6.783 5.275c.453.353.68.53.843.75.145.195.252.416.318.65.074.265.074.552.074 1.126V17.8c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C19.48 21 18.92 21 17.8 21H6.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C3 19.48 3 18.92 3 17.8v-7.235Z\",inbox:\"M2.5 12h3.382c.685 0 1.312.387 1.618 1 .306.613.933 1 1.618 1h5.764c.685 0 1.312-.387 1.618-1 .306-.613.933-1 1.618-1H21.5M8.967 4h6.066c1.077 0 1.616 0 2.091.164a3 3 0 0 1 1.121.693c.36.352.6.833 1.082 1.796l2.166 4.333c.19.378.284.567.35.765.06.177.102.357.128.541.029.207.029.418.029.841V15.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 20 18.88 20 17.2 20H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 17.72 2 16.88 2 15.2v-2.067c0-.422 0-.634.029-.84.026-.184.068-.365.128-.541.066-.199.16-.388.35-.766l2.166-4.333c.482-.963.723-1.444 1.082-1.796a3 3 0 0 1 1.12-.693C7.352 4 7.89 4 8.968 4Z\",messageSquare:\"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2.002 2.002 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152V22Z\",moon:\"M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z\"};export function Glyph({name,size,color}){return /*#__PURE__*/_jsx(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",stroke:color,strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",style:{display:\"block\",flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:ICONS[name]})});}/**\n * The slot's size, for the slice's layout: `phone` below 80% of the drawn width (kit §7), `scale` of the\n * drawn layout above it, `short` when the slot is under 400 tall (tablet's 300 well). Measured before paint.\n * `fit` (optional): one more number the slice derives from the slot's size (OverviewActivity: how many rows it can\n * show), returned as `fitted`.\n * It re-renders only when one of those changes, not on every resize: a slot resized every frame (the home hero's\n * hand-off narrows the Activity slice's slot for 500ms) would otherwise re-render the slice each frame with the same\n * output (review, 2026-11-13: 40fps at 6× CPU throttle, 60 with this).\n */export function useSliceFit(target,fit){const fitRef=useRef(fit);fitRef.current=fit;const derive=(w,h)=>{const scale=Math.min(1,w/SLICE.width);const phone=scale<PHONE_BELOW;return{scale,phone,short:h>0&&h/scale<SLICE.short,fitted:fitRef.current?fitRef.current(w,h,scale,phone):0};};const[size,setSize]=useState(null);useIsoLayoutEffect(()=>{const el=target.current;if(!el)return;const set=(w,h)=>{const next=derive(w,h);setSize(was=>was&&was.scale===next.scale&&was.phone===next.phone&&was.short===next.short&&was.fitted===next.fitted?was:next);};const r=el.getBoundingClientRect();set(r.width,r.height);const ro=new ResizeObserver(([e])=>set(e.contentRect.width,e.contentRect.height));ro.observe(el);return()=>ro.disconnect();},[]);// Until measured (the server's render), the drawn layout at its full size\nreturn size??{scale:1,phone:false,short:false,fitted:NaN};}/** The demo console's first nav group (Dashboard, Activity, Texts, Analytics, Online Scheduling), the rail the overview's\n * Activity and Call Summary slices and the home hero's Dashboard share (2026-11-16) */export const CONSOLE_RAIL=[\"home\",\"inbox\",\"messageSquare\",\"barChart\",\"calendarCheck\"];/** Where a rail's tab sits: the rail's padding, the logomark and the first tab's margin, then 40 a tab (Rail's layout) */export const RAIL_TAB_TOP=i=>12+22+8+6+i*40;/**\n * The console's left rail: the logomark and four tabs (Analytics, Activity, Calls, Appointments), one of them\n * current. `variant` \"panel\": the Activity call panel's rail as its frames draw it (ConsoleCallPanel.tsx): a fifth\n * tab, Actions Center, and the first tab 14 under the logomark (the slices' is 6). Decorative: `aria-hidden`.\n */export function Rail({current,variant=\"slice\"}){const panel=variant===\"panel\";const tabs=variant===\"console\"?CONSOLE_RAIL:panel?[\"barChart\",\"activity\",\"phone\",\"calendar\",\"clipboardCheck\"]:[\"barChart\",\"activity\",\"phone\",\"calendar\"];return /*#__PURE__*/_jsxs(\"div\",{\"aria-hidden\":\"true\",style:{width:48,flexShrink:0,alignSelf:\"stretch\",boxShadow:`inset -1px 0 0 ${C.border}`,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:8,paddingTop:12},children:[/*#__PURE__*/_jsx(RondahLogomark,{size:22,color:C.text1}),tabs.map((t,i)=>/*#__PURE__*/_jsx(\"div\",{style:{width:32,height:32,borderRadius:RADIUS.control,marginTop:i===0?panel?14:6:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background:t===current?CONSOLE.railActive:\"transparent\"},children:/*#__PURE__*/_jsx(Glyph,{name:t,size:18,color:t===current?C.text3:CONSOLE.railIcon})},t))]});}/** The window bar (kit-components.md §6): three dots, the screen's name centred, nothing on the right. Decorative: `aria-hidden` */export function WindowBar({title,compact}){const dot=compact?6:8;return /*#__PURE__*/_jsxs(\"div\",{\"aria-hidden\":\"true\",style:{height:compact?SLICE.compactBar:SLICE.bar,flexShrink:0,display:\"flex\",alignItems:\"center\",padding:compact?\"0 10px\":\"0 12px\",boxShadow:`inset 0 -1px 0 ${C.borderSubtle}`,background:C.surface},children:[/*#__PURE__*/_jsx(\"div\",{style:{flex:\"1 1 0\",display:\"flex\",gap:compact?4:6},children:[0,1,2].map(i=>/*#__PURE__*/_jsx(\"div\",{style:{width:dot,height:dot,borderRadius:\"50%\",background:CONSOLE.dot}},i))}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:12,lineHeight:\"18px\",fontWeight:500,color:C.text4,whiteSpace:\"nowrap\"},children:title}),/*#__PURE__*/_jsx(\"div\",{style:{flex:\"1 1 0\"}})]});}/** CrumbBar's measures, as Paper's \"Sections / Know time / Final\" draws them */export const CRUMB_BAR={height:44,dot:10,dotGap:6,dotLeft:20,crumbGap:12};/**\n * The page-width window bar (a slice straight on the page, at 813 and wider): three dots at the left and the\n * screen's breadcrumb centred in the bar, the current screen in ink (Rayan, Gate 2 note 40: no \"Sample data\" tag,\n * the breadcrumb centred). The dots are decorative; the breadcrumb is text a screen reader may read.\n */export function CrumbBar({crumbs,current}){const muted={fontSize:13,lineHeight:\"20px\",color:COLOR[\"ink-60\"],whiteSpace:\"nowrap\"};return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",height:CRUMB_BAR.height,flexShrink:0,boxSizing:\"border-box\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:CRUMB_BAR.crumbGap,padding:\"0 20px\",boxShadow:`inset 0 -1px 0 ${COLOR[\"ink-10\"]}`,background:C.surface},children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",left:CRUMB_BAR.dotLeft,top:(CRUMB_BAR.height-CRUMB_BAR.dot)/2,display:\"flex\",gap:CRUMB_BAR.dotGap},children:[0,1,2].map(i=>/*#__PURE__*/_jsx(\"div\",{style:{width:CRUMB_BAR.dot,height:CRUMB_BAR.dot,borderRadius:\"50%\",background:CONSOLE.barDot}},i))}),crumbs.map((c,i)=>/*#__PURE__*/_jsxs(\"span\",{style:{display:\"contents\"},children:[/*#__PURE__*/_jsx(\"span\",{style:muted,children:c}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{...muted,lineHeight:\"16px\"},children:\"›\"})]},i)),/*#__PURE__*/_jsx(\"span\",{style:{...muted,color:COLOR.ink,fontWeight:500},children:current})]});}/** A page header row: the page's title and its tabs (the current one in ink) */export function PageHeader({title,tabs=[],current}){return /*#__PURE__*/_jsxs(\"div\",{style:{height:44,flexShrink:0,display:\"flex\",alignItems:\"center\",gap:16,padding:\"0 16px\",boxShadow:`inset 0 -1px 0 ${C.border}`},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:14,lineHeight:\"20px\",fontWeight:600,color:C.text1},children:title}),tabs.map(t=>/*#__PURE__*/_jsx(\"span\",{style:{fontSize:12,lineHeight:\"18px\",fontWeight:600,color:t===current?C.text1:C.text4,whiteSpace:\"nowrap\"},children:t},t))]});}/** An outcome chip as the Activity list shows it: neutral, or amber for a call flagged for follow-up */export function ConsoleChip({icon,label,tone=\"quiet\"}){const amber=tone===\"amber\";return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:4,height:20,padding:\"0 8px 0 6px\",borderRadius:RADIUS.chip,background:amber?CONSOLE.amberChip:C.sunken,color:amber?CONSOLE.amberText:C.text2,fontSize:12,lineHeight:\"16px\",fontWeight:500,whiteSpace:\"nowrap\"},children:[/*#__PURE__*/_jsx(Glyph,{name:icon,size:12,color:amber?CONSOLE.amberText:C.text3}),label]});}/**\n * The slot (as tall as its parent; the stage's well clips it) and the window in it, 24 in on three sides\n * (16 on phone) and running off the bottom. The drawn layout is 544 wide, scaled as a whole when the slot\n * is narrower (never below 80%: then it's the phone crop).\n */export function ConsoleSlice({root,label,phone,scale,title,rail,railVariant=\"slice\",run,style,children}){const inset=phone?SLICE.phoneInset:SLICE.inset;const corners=`${RADIUS.card}px ${RADIUS.card}px 0 0`;const consoleWindow=/*#__PURE__*/_jsxs(\"div\",{\"data-console-window\":\"\",style:{position:\"relative\",background:C.surface,borderRadius:corners,boxShadow:SHADOW.drop,overflow:\"clip\",display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsx(WindowBar,{title:title,compact:phone}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\"},children:[!phone&&/*#__PURE__*/_jsx(Rail,{current:rail,variant:railVariant}),/*#__PURE__*/_jsx(\"div\",{style:{flex:\"1 1 0\",minWidth:0,display:\"flex\",flexDirection:\"column\"},children:children})]}),/*#__PURE__*/_jsx(\"div\",{style:edge(corners)})]},run);return /*#__PURE__*/_jsx(\"div\",{ref:root,role:\"img\",\"aria-label\":label,// Fills the slot's height; a slot without one (an auto-height parent) gets the window's own height\nstyle:{...style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"clip\",fontFamily:FONT,WebkitFontSmoothing:\"antialiased\",...TABULAR},children:phone||scale>=1?/*#__PURE__*/_jsx(\"div\",{style:{padding:`${inset}px ${inset}px 0`},children:consoleWindow}):/*#__PURE__*/_jsx(\"div\",{style:{width:SLICE.width,padding:`${inset}px ${inset}px 0`,boxSizing:\"border-box\",transform:`scale(${scale})`,transformOrigin:\"top left\"},children:consoleWindow})});}\nexport const __FramerMetadata__ = {\"exports\":{\"CrumbBar\":{\"type\":\"reactComponent\",\"name\":\"CrumbBar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"RAIL_TAB_TOP\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Glyph\":{\"type\":\"reactComponent\",\"name\":\"Glyph\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"ConsoleSlice\":{\"type\":\"reactComponent\",\"name\":\"ConsoleSlice\",\"slots\":[\"children\"],\"annotations\":{\"framerContractVersion\":\"1\"}},\"WindowBar\":{\"type\":\"reactComponent\",\"name\":\"WindowBar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"SLICE\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ConsoleChip\":{\"type\":\"reactComponent\",\"name\":\"ConsoleChip\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"RailTab\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ConsoleIcon\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CONSOLE\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useSliceFit\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Rail\":{\"type\":\"reactComponent\",\"name\":\"Rail\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"CONSOLE_RAIL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PageHeader\":{\"type\":\"reactComponent\",\"name\":\"PageHeader\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"CRUMB_BAR\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,yUAoBi8D,SAAgB+B,EAAM,CAACC,OAAKC,OAAKC,SAAO,CAAC,MAAoBlC,gBAAK,MAAM,CAAC,MAAMiC,EAAK,OAAOA,EAAK,QAAQ,YAAY,KAAK,OAAO,OAAOC,EAAM,YAAY,EAAE,cAAc,QAAQ,eAAe,QAAQ,cAAc,OAAO,MAAM,CAAC,QAAQ,QAAQ,WAAW,CAAC,EAAE,SAAsBlC,gBAAK,OAAO,CAAC,EAAEmC,EAAMH,EAAK,CAAC,CAAC,CAAC,CAAE,CAQrvE,SAAgBI,EAAYC,EAAOC,EAAI,CAA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