(t0)
| 268 | * so nothing can accidentally render outside it. |
| 269 | */ |
| 270 | export function FullscreenLayout(t0) { |
| 271 | const $ = _c(47); |
| 272 | const { |
| 273 | scrollable, |
| 274 | bottom, |
| 275 | overlay, |
| 276 | bottomFloat, |
| 277 | modal, |
| 278 | modalScrollRef, |
| 279 | scrollRef, |
| 280 | dividerYRef, |
| 281 | hidePill: t1, |
| 282 | hideSticky: t2, |
| 283 | newMessageCount: t3, |
| 284 | onPillClick |
| 285 | } = t0; |
| 286 | const hidePill = t1 === undefined ? false : t1; |
| 287 | const hideSticky = t2 === undefined ? false : t2; |
| 288 | const newMessageCount = t3 === undefined ? 0 : t3; |
| 289 | const { |
| 290 | rows: terminalRows, |
| 291 | columns |
| 292 | } = useTerminalSize(); |
| 293 | const [stickyPrompt, setStickyPrompt] = useState(null); |
| 294 | let t4; |
| 295 | if ($[0] === Symbol.for("react.memo_cache_sentinel")) { |
| 296 | t4 = { |
| 297 | setStickyPrompt |
| 298 | }; |
| 299 | $[0] = t4; |
| 300 | } else { |
| 301 | t4 = $[0]; |
| 302 | } |
| 303 | const chromeCtx = t4; |
| 304 | let t5; |
| 305 | if ($[1] !== scrollRef) { |
| 306 | t5 = listener => scrollRef?.current?.subscribe(listener) ?? _temp; |
| 307 | $[1] = scrollRef; |
| 308 | $[2] = t5; |
| 309 | } else { |
| 310 | t5 = $[2]; |
| 311 | } |
| 312 | const subscribe = t5; |
| 313 | let t6; |
| 314 | if ($[3] !== dividerYRef || $[4] !== scrollRef) { |
| 315 | t6 = () => { |
| 316 | const s = scrollRef?.current; |
| 317 | const dividerY = dividerYRef?.current; |
| 318 | if (!s || dividerY == null) { |
| 319 | return false; |
| 320 | } |
| 321 | return s.getScrollTop() + s.getPendingDelta() + s.getViewportHeight() < dividerY; |
| 322 | }; |
| 323 | $[3] = dividerYRef; |
| 324 | $[4] = scrollRef; |
| 325 | $[5] = t6; |
| 326 | } else { |
| 327 | t6 = $[5]; |
nothing calls this directly
no test coverage detected