(t0)
| 18 | }; |
| 19 | const AUTO_DISMISS_MS = 30_000; |
| 20 | export function EffortCallout(t0) { |
| 21 | const $ = _c(18); |
| 22 | const { |
| 23 | model, |
| 24 | onDone |
| 25 | } = t0; |
| 26 | let t1; |
| 27 | if ($[0] === Symbol.for("react.memo_cache_sentinel")) { |
| 28 | t1 = getOpusDefaultEffortConfig(); |
| 29 | $[0] = t1; |
| 30 | } else { |
| 31 | t1 = $[0]; |
| 32 | } |
| 33 | const defaultEffortConfig = t1; |
| 34 | const onDoneRef = useRef(onDone); |
| 35 | let t2; |
| 36 | if ($[1] !== onDone) { |
| 37 | t2 = () => { |
| 38 | onDoneRef.current = onDone; |
| 39 | }; |
| 40 | $[1] = onDone; |
| 41 | $[2] = t2; |
| 42 | } else { |
| 43 | t2 = $[2]; |
| 44 | } |
| 45 | useEffect(t2); |
| 46 | let t3; |
| 47 | if ($[3] === Symbol.for("react.memo_cache_sentinel")) { |
| 48 | t3 = () => { |
| 49 | onDoneRef.current("dismiss"); |
| 50 | }; |
| 51 | $[3] = t3; |
| 52 | } else { |
| 53 | t3 = $[3]; |
| 54 | } |
| 55 | const handleCancel = t3; |
| 56 | let t4; |
| 57 | if ($[4] === Symbol.for("react.memo_cache_sentinel")) { |
| 58 | t4 = []; |
| 59 | $[4] = t4; |
| 60 | } else { |
| 61 | t4 = $[4]; |
| 62 | } |
| 63 | useEffect(_temp, t4); |
| 64 | let t5; |
| 65 | let t6; |
| 66 | if ($[5] === Symbol.for("react.memo_cache_sentinel")) { |
| 67 | t5 = () => { |
| 68 | const timeoutId = setTimeout(handleCancel, AUTO_DISMISS_MS); |
| 69 | return () => clearTimeout(timeoutId); |
| 70 | }; |
| 71 | t6 = [handleCancel]; |
| 72 | $[5] = t5; |
| 73 | $[6] = t6; |
| 74 | } else { |
| 75 | t5 = $[5]; |
| 76 | t6 = $[6]; |
| 77 | } |
nothing calls this directly
no test coverage detected