{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-push-line",
  "title": "Card Push Line",
  "description": "A prompt card with a slash command pushes forward as its text line types.",
  "dependencies": ["remotion", "@remotion/google-fonts"],
  "registryDependencies": ["@remocn/gsh"],
  "files": [
    {
      "path": "registry/remocn/card-push-line/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont } from \"@remotion/google-fonts/Geist\";\nimport { loadFont as loadMono } from \"@remotion/google-fonts/GeistMono\";\nimport {\n  type CSSProperties,\n  type ReactNode,\n  useEffect,\n  useId,\n  useMemo,\n  useRef,\n  useState,\n} from \"react\";\nimport {\n  AbsoluteFill,\n  continueRender,\n  delayRender,\n  Easing,\n  interpolate,\n  spring,\n  useCurrentFrame,\n  useVideoConfig,\n} from \"remotion\";\nimport type { GradientParams } from \"@/lib/remocn/gsh/gradient-engine\";\nimport { GshGround, gshParams } from \"@/lib/remocn/gsh/gsh-ground\";\nimport type { GshPresetId } from \"@/lib/remocn/gsh/presets\";\n\nconst sans = loadFont(\"normal\", {\n  weights: [\"300\", \"400\"],\n  subsets: [\"latin\"],\n});\nconst mono = loadMono(\"normal\", { weights: [\"400\"], subsets: [\"latin\"] });\n\nexport interface CardPushLineProps {\n  line?: string;\n  command?: string;\n  prompt?: string;\n  placeholder?: string;\n  modelLabel?: string;\n  chipLabel?: string;\n  attachName?: string;\n  attachMeta?: string;\n  accent?: string;\n  ink?: string;\n  background?: string;\n  theme?: \"dark\" | \"light\";\n  ground?: GshPresetId;\n  groundParams?: Partial<GradientParams>;\n}\n\nconst THEMES = {\n  dark: {\n    ink: \"#eef3ff\",\n    muted: \"rgba(238,243,255,0.46)\",\n    faint: \"rgba(238,243,255,0.1)\",\n    accent: \"#4f7dff\",\n    cmdInk: \"#a9c4ff\",\n    cmdBg: \"rgba(79,125,255,0.2)\",\n    rim: \"168,198,255\",\n    ground: \"film-blue\" as GshPresetId,\n    groundParams: undefined as Partial<GradientParams> | undefined,\n    groundOffset: 3,\n    scrim: \"2,5,12\",\n    scrimAlpha: 0.5,\n    card: \"linear-gradient(180deg, #121722 0%, #0c1018 100%)\",\n    border: \"rgba(255,255,255,0.08)\",\n    shadow: \"0 40px 90px -24px rgba(0,3,12,0.7)\",\n    send: \"rgba(238,243,255,0.12)\",\n    tile: \"rgba(238,243,255,0.035)\",\n  },\n  light: {\n    ink: \"#14161c\",\n    muted: \"rgba(20,22,28,0.45)\",\n    faint: \"rgba(20,22,28,0.09)\",\n    accent: \"#3B5BFD\",\n    cmdInk: \"#2f4fe0\",\n    cmdBg: \"rgba(59,91,253,0.1)\",\n    rim: \"59,91,253\",\n    ground: \"glasswork\" as GshPresetId,\n    groundParams: {\n      colors: [\"#a9c9ec\", \"#4f8fd6\", \"#2b5fbe\", \"#cfe0f2\"],\n      background: \"#eef1f5\",\n    } as Partial<GradientParams> | undefined,\n    groundOffset: 2,\n    scrim: \"238,241,245\",\n    scrimAlpha: 0.5,\n    card: \"#ffffff\",\n    border: \"rgba(17,24,40,0.07)\",\n    shadow:\n      \"0 1px 3px rgba(17,24,40,0.06), 0 36px 80px -24px rgba(17,30,60,0.24)\",\n    send: \"rgba(20,22,28,0.08)\",\n    tile: \"rgba(20,22,28,0.025)\",\n  },\n};\n\nconst BEAT = {\n  wordStep: 3,\n  enter: 12,\n  card: 36,\n  cmd: 60,\n  chip: 72,\n  prompt: 76,\n  arm: 108,\n};\n\nconst TRACK = -0.03;\nconst FONT_PX = 200;\nconst ENTER = Easing.bezier(0.22, 1, 0.36, 1);\nconst CLAMP = {\n  extrapolateLeft: \"clamp\",\n  extrapolateRight: \"clamp\",\n} as const;\n\ntype Measure = (s: string, font: string, track: number) => number;\n\nfunction buildMeasure(_version: number): Measure {\n  const ctx = document.createElement(\"canvas\").getContext(\"2d\");\n  const cache: Record<string, number> = {};\n  return (s: string, font: string, track: number) => {\n    const key = `${font}|${track}|${s}`;\n    if (cache[key] === undefined) {\n      if (!ctx) return s.length * 0.55;\n      ctx.font = font.replace(\"@\", `${FONT_PX}px`);\n      cache[key] =\n        ctx.measureText(s).width / FONT_PX + track * Array.from(s).length;\n    }\n    return cache[key];\n  };\n}\n\nfunction useMeasure() {\n  const [version, setVersion] = useState(0);\n  const [handle] = useState(() => delayRender(\"card-push-line: measuring\"));\n  const released = useRef(false);\n  useEffect(() => {\n    let live = true;\n    const bump = () => {\n      if (live) setVersion((v) => v + 1);\n    };\n    document.fonts.addEventListener(\"loadingdone\", bump);\n    Promise.all([\n      sans.waitUntilDone(),\n      mono.waitUntilDone(),\n      document.fonts.load(`300 100px \"${sans.fontFamily}\"`),\n      document.fonts.load(`400 100px \"${sans.fontFamily}\"`),\n      document.fonts.load(`400 100px \"${mono.fontFamily}\"`),\n    ])\n      .catch(() => undefined)\n      .then(() => {\n        bump();\n        if (!released.current) {\n          released.current = true;\n          continueRender(handle);\n        }\n      });\n    return () => {\n      live = false;\n      document.fonts.removeEventListener(\"loadingdone\", bump);\n    };\n  }, [handle]);\n  return useMemo(() => buildMeasure(version), [version]);\n}\n\nfunction Icon({\n  size,\n  color,\n  children,\n}: {\n  size: number;\n  color: string;\n  children: ReactNode;\n}) {\n  return (\n    <svg\n      viewBox=\"0 0 24 24\"\n      width={size}\n      height={size}\n      fill=\"none\"\n      stroke={color}\n      strokeWidth={1.6}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      style={{ display: \"block\", flexShrink: 0 }}\n      aria-hidden\n    >\n      {children}\n    </svg>\n  );\n}\n\nfunction wrap(words: string[], room: number, w: (s: string) => number) {\n  const lines: string[] = [];\n  let cur = \"\";\n  for (const word of words) {\n    const next = cur.length > 0 ? `${cur} ${word}` : word;\n    if (cur.length > 0 && w(next) > room) {\n      lines.push(cur);\n      cur = word;\n    } else {\n      cur = next;\n    }\n  }\n  if (cur.length > 0) lines.push(cur);\n  return lines;\n}\n\nexport function CardPushLine({\n  line = \"You can just write it\",\n  command = \"/launch-video\",\n  prompt = \"a teaser for the 2.0 release\",\n  placeholder = \"Describe your launch…\",\n  modelLabel = \"Remocn 1\",\n  chipLabel = \"Brand kit\",\n  attachName = \"release-notes-2.0.md\",\n  attachMeta = \"Markdown · 18 KB\",\n  accent,\n  ink,\n  background,\n  theme = \"dark\",\n  ground,\n  groundParams,\n}: CardPushLineProps) {\n  const frame = useCurrentFrame();\n  const { width: W, height: H, fps, durationInFrames } = useVideoConfig();\n  const c = THEMES[theme];\n  const inkC = ink ?? c.ink;\n  const hi = accent ?? c.accent;\n  const preset = ground ?? c.ground;\n  const gParams = groundParams ?? (ground ? undefined : c.groundParams);\n  const bg = background ?? gshParams(preset, gParams).background;\n  const m = useMeasure();\n  const portrait = H > W * 1.1;\n  const uid = useId().replace(/[^a-zA-Z0-9_-]/g, \"\");\n  const f = frame;\n\n  let content: ReactNode = <div />;\n  if (m) {\n    const lineFont = `300 @ \"${sans.fontFamily}\"`;\n    const uiFont = `400 @ \"${sans.fontFamily}\"`;\n    const monoFont = `400 @ \"${mono.fontFamily}\"`;\n    const room = W * (portrait ? 0.84 : 0.7);\n    const words = line.split(\" \").filter(Boolean);\n    const wl = (s: string) => m(s, lineFont, TRACK);\n    let L = Math.min(portrait ? W * 0.12 : H * 0.15, room / wl(line));\n    let sLines = [line];\n    if (portrait && L < W * 0.095) {\n      L = Math.min(W * 0.12, room / Math.max(...words.map(wl)));\n      sLines = wrap(words, room / L, wl);\n    }\n    const LLH = L * 1.08;\n    const blockW = Math.max(...sLines.map((s) => wl(s) * L));\n    const restRight = W / 2 + blockW / 2;\n\n    const CW = portrait ? W * 0.78 : W * 0.62;\n    const T = portrait ? W * 0.046 : Math.max(H * 0.048, CW * 0.042);\n    const u = T / 24;\n    const pad = 24 * u;\n    const PLH = T * 1.45;\n    const cmdT = T * 0.86;\n    const chipPadX = 8 * u;\n    const chipW = m(command, monoFont, 0) * cmdT + chipPadX * 2;\n    const promptRoom = CW - pad * 2;\n    const firstIndent = chipW + 8 * u;\n    const pw = (s: string) => m(s, uiFont, -0.01) * T;\n    const pWords = prompt.split(\" \").filter(Boolean);\n    const pLines: { text: string; x: number }[] = [];\n    {\n      let cur = \"\";\n      let indent = firstIndent;\n      for (const word of pWords) {\n        const next = cur.length > 0 ? `${cur} ${word}` : word;\n        if (cur.length > 0 && indent + pw(next) > promptRoom) {\n          pLines.push({ text: cur, x: indent });\n          cur = word;\n          indent = 0;\n        } else {\n          cur = next;\n        }\n      }\n      pLines.push({ text: cur, x: indent });\n    }\n    const barH = 36 * u;\n    const attH = 52 * u;\n    const top0 = pad + attH + 14 * u;\n    const CH = Math.max(\n      top0 + pLines.length * PLH + 24 * u + barH + pad * 0.8,\n      portrait ? H * 0.2 : H * 0.32,\n    );\n    const restLeft = (W - CW) / 2;\n    const startLeft = W * 1.04;\n    const cardSp = (ff: number) =>\n      spring({\n        frame: ff - BEAT.card,\n        fps,\n        config: { mass: 0.8, damping: 18, stiffness: 110 },\n      });\n    const cardLeft = (ff: number) =>\n      restLeft + (startLeft - restLeft) * (1 - cardSp(ff));\n    const gap = W * 0.03;\n\n    let off = 0;\n    let vel = 0;\n    let lastV = 0;\n    for (let k = BEAT.card; k <= f; k++) {\n      const limit = cardLeft(k) - gap - restRight;\n      const free = off + vel;\n      const next = Math.min(free, limit);\n      lastV = next - off;\n      vel = limit < free ? lastV : lastV * 0.93;\n      off = next;\n    }\n    const lineSpeed = Math.abs(lastV);\n    const cardV = Math.abs(cardLeft(f) - cardLeft(f - 1));\n    const lineBlur = Math.min(10, lineSpeed * 0.12);\n    const cardBlur = Math.min(10, cardV * 0.1);\n    const rim = Math.min(1, cardV / 18);\n\n    const sentence = (\n      <div\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          WebkitMaskImage: `linear-gradient(90deg, transparent 0px, #000 ${(W * 0.1).toFixed(0)}px)`,\n          maskImage: `linear-gradient(90deg, transparent 0px, #000 ${(W * 0.1).toFixed(0)}px)`,\n        }}\n      >\n        <div\n          style={{\n            position: \"absolute\",\n            left: 0,\n            top: 0,\n            width: W,\n            height: H,\n            transform: `translateX(${off.toFixed(2)}px)`,\n            filter: lineBlur > 0.2 ? `url(#lb${uid})` : undefined,\n          }}\n        >\n          {sLines.map((s, li) => {\n            const lw = wl(s) * L;\n            const y = H / 2 + (li - (sLines.length - 1) / 2) * LLH;\n            const before = sLines\n              .slice(0, li)\n              .reduce((a, q) => a + q.split(\" \").length, 0);\n            return (\n              <div\n                key={`sl${li}`}\n                style={{\n                  position: \"absolute\",\n                  left: W / 2 - lw / 2,\n                  top: y - L / 2,\n                  display: \"flex\",\n                  whiteSpace: \"pre\",\n                  fontFamily: sans.fontFamily,\n                  fontWeight: 300,\n                  fontSize: L,\n                  lineHeight: 1,\n                  letterSpacing: `${TRACK}em`,\n                  color: inkC,\n                }}\n              >\n                {s.split(\" \").map((w, wi) => {\n                  const at = (before + wi) * BEAT.wordStep - 4;\n                  const e = interpolate(f, [at, at + BEAT.enter], [0, 1], {\n                    ...CLAMP,\n                    easing: ENTER,\n                  });\n                  return (\n                    <span\n                      key={`w${wi}`}\n                      style={{\n                        display: \"inline-block\",\n                        clipPath: \"inset(-40% -20% -0.24em -20%)\",\n                        marginRight:\n                          wi < s.split(\" \").length - 1 ? \"0.25em\" : 0,\n                      }}\n                    >\n                      <span\n                        style={{\n                          display: \"inline-block\",\n                          transform: `translateY(${((1 - e) * 0.7).toFixed(4)}em)`,\n                          opacity: e,\n                          filter:\n                            e < 1\n                              ? `blur(${((1 - e) * 6).toFixed(2)}px)`\n                              : undefined,\n                        }}\n                      >\n                        {w}\n                      </span>\n                    </span>\n                  );\n                })}\n              </div>\n            );\n          })}\n        </div>\n      </div>\n    );\n\n    const cmdRate = Math.max(1.2, command.length / 11);\n    const promptRate = Math.max(1.2, prompt.length / 28);\n    const cmdTyped = Math.max(\n      0,\n      Math.min(command.length, Math.floor((f - BEAT.cmd) * cmdRate)),\n    );\n    const pTyped = Math.max(\n      0,\n      Math.min(prompt.length, Math.floor((f - BEAT.prompt) * promptRate)),\n    );\n    const promptEnd = BEAT.prompt + prompt.length / promptRate;\n    const chipPop = spring({\n      frame: f - BEAT.chip,\n      fps,\n      config: { mass: 0.5, damping: 12, stiffness: 200 },\n    });\n    const chipOn = f >= BEAT.chip;\n    const phOp = interpolate(f, [BEAT.cmd - 4, BEAT.cmd], [1, 0], CLAMP);\n    const armP = spring({\n      frame: f - BEAT.arm,\n      fps,\n      config: { mass: 0.5, damping: 12, stiffness: 200 },\n    });\n    const armed = f >= BEAT.arm;\n    const attIn = spring({\n      frame: f - (BEAT.card + 8),\n      fps,\n      config: { mass: 0.5, damping: 12, stiffness: 200 },\n    });\n    const toolIn = [0, 1, 2, 3, 4].map((i) =>\n      spring({\n        frame: f - (BEAT.card + 12 + i * 2),\n        fps,\n        config: { mass: 0.5, damping: 12, stiffness: 200 },\n      }),\n    );\n\n    let left = pTyped;\n    const promptNodes = pLines.map((pl, li) => {\n      const take = Math.max(0, Math.min(pl.text.length, left));\n      left -= pl.text.length + 1;\n      if (take <= 0) return null;\n      return (\n        <div\n          key={`p${li}`}\n          style={{\n            position: \"absolute\",\n            left: pad + pl.x,\n            top: top0 + li * PLH + (PLH - T) / 2,\n            fontFamily: sans.fontFamily,\n            fontWeight: 400,\n            fontSize: T,\n            lineHeight: 1,\n            letterSpacing: \"-0.01em\",\n            whiteSpace: \"pre\",\n            color: inkC,\n          }}\n        >\n          {pl.text.slice(0, take)}\n        </div>\n      );\n    });\n    let caretX =\n      pad + chipPadX + m(command.slice(0, cmdTyped), monoFont, 0) * cmdT;\n    let caretLi = 0;\n    if (f >= BEAT.prompt && pTyped > 0) {\n      let rem = pTyped;\n      for (let li = 0; li < pLines.length; li++) {\n        const len = pLines[li].text.length;\n        if (rem <= len || li === pLines.length - 1) {\n          caretX =\n            pad +\n            pLines[li].x +\n            pw(pLines[li].text.slice(0, Math.min(rem, len)));\n          caretLi = li;\n          break;\n        }\n        rem -= len + 1;\n      }\n    } else if (f >= BEAT.chip) {\n      caretX = pad + firstIndent;\n    }\n    const typing =\n      (f >= BEAT.cmd && f < BEAT.cmd + command.length / cmdRate + 2) ||\n      (f >= BEAT.prompt && f < promptEnd + 2);\n    const caretOn =\n      f >= BEAT.card + 18 && (typing || Math.floor(f / 14) % 2 === 0);\n    const caretShow = f < BEAT.arm ? 1 : 0;\n\n    const chipStyle: CSSProperties = {\n      position: \"absolute\",\n      left: pad,\n      top: top0 + (PLH - (cmdT + 10 * u)) / 2,\n      height: cmdT + 10 * u,\n      width: chipW,\n      borderRadius: 8 * u,\n      background: chipOn ? c.cmdBg : \"transparent\",\n      transform: `scale(${(chipOn ? 0.9 + 0.1 * chipPop : 1).toFixed(4)})`,\n      transformOrigin: \"0% 50%\",\n      display: \"flex\",\n      alignItems: \"center\",\n      paddingLeft: chipPadX,\n      fontFamily: mono.fontFamily,\n      fontWeight: 400,\n      fontSize: cmdT,\n      lineHeight: 1,\n      whiteSpace: \"pre\",\n      color: c.cmdInk,\n    };\n    const ctrlD = 32 * u;\n    const labelF = 15 * u;\n    const push = interpolate(f, [0, durationInFrames], [1, 1.03], CLAMP);\n    const tiltY = -9 * (1 - Math.min(1, cardSp(f)));\n\n    const card = (\n      <div\n        style={{\n          position: \"absolute\",\n          left: 0,\n          top: 0,\n          width: W,\n          height: H,\n          filter: cardBlur > 0.2 ? `url(#cb${uid})` : undefined,\n        }}\n      >\n        <div\n          style={{\n            position: \"absolute\",\n            left: cardLeft(f),\n            top: H / 2 - CH / 2,\n            width: CW,\n            height: CH,\n            borderRadius: 24 * u,\n            background: c.card,\n            boxShadow: `inset 0 0 0 1px ${c.border}, inset ${(1.5 * u).toFixed(2)}px 0 0 rgba(${c.rim},${(0.9 * rim).toFixed(3)}), ${c.shadow}`,\n            transform: `perspective(${(W * 1.6).toFixed(0)}px) rotateY(${tiltY.toFixed(3)}deg)`,\n            transformOrigin: \"0% 50%\",\n          }}\n        >\n          <div\n            style={{\n              position: \"absolute\",\n              left: pad,\n              top: pad,\n              height: attH,\n              display: \"flex\",\n              alignItems: \"center\",\n              gap: 10 * u,\n              padding: `0 ${16 * u}px 0 ${8 * u}px`,\n              borderRadius: 12 * u,\n              background: c.tile,\n              boxShadow: `inset 0 0 0 1px ${c.faint}`,\n              whiteSpace: \"pre\",\n              opacity: Math.min(1, attIn * 1.5),\n              transform: `scale(${(0.92 + 0.08 * attIn).toFixed(4)})`,\n              transformOrigin: \"0% 50%\",\n            }}\n          >\n            <div\n              style={{\n                width: 36 * u,\n                height: 36 * u,\n                borderRadius: 8 * u,\n                background: c.cmdBg,\n                display: \"flex\",\n                alignItems: \"center\",\n                justifyContent: \"center\",\n              }}\n            >\n              <Icon size={20 * u} color={c.cmdInk}>\n                <path d=\"M14 3.5H7.5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V8z\" />\n                <path d=\"M14 3.5V8h4.5M9 13h6M9 16.5h4\" />\n              </Icon>\n            </div>\n            <div\n              style={{\n                display: \"flex\",\n                flexDirection: \"column\",\n                gap: 3 * u,\n                fontFamily: sans.fontFamily,\n                fontWeight: 400,\n                lineHeight: 1.1,\n              }}\n            >\n              <div\n                style={{\n                  fontSize: labelF,\n                  color: inkC,\n                  letterSpacing: \"-0.005em\",\n                }}\n              >\n                {attachName}\n              </div>\n              <div style={{ fontSize: 13 * u, color: c.muted }}>\n                {attachMeta}\n              </div>\n            </div>\n          </div>\n          <div\n            style={{\n              position: \"absolute\",\n              left: pad,\n              top: top0 + (PLH - T) / 2,\n              fontFamily: sans.fontFamily,\n              fontWeight: 400,\n              fontSize: T,\n              lineHeight: 1,\n              letterSpacing: \"-0.01em\",\n              whiteSpace: \"pre\",\n              color: c.muted,\n              opacity: phOp,\n            }}\n          >\n            {placeholder}\n          </div>\n          {cmdTyped > 0 ? (\n            <div style={chipStyle}>{command.slice(0, cmdTyped)}</div>\n          ) : null}\n          {promptNodes}\n          <div\n            style={{\n              position: \"absolute\",\n              left: caretX + T * 0.04,\n              top: top0 + caretLi * PLH + (PLH - T * 1.2) / 2,\n              width: Math.max(1.5, T * 0.06),\n              height: T * 1.2,\n              borderRadius: T,\n              background: inkC,\n              opacity: caretOn ? caretShow : 0,\n            }}\n          />\n          <div\n            style={{\n              position: \"absolute\",\n              left: pad * 0.8,\n              right: pad * 0.8,\n              bottom: pad * 0.8,\n              height: barH,\n              display: \"flex\",\n              alignItems: \"center\",\n              gap: 8 * u,\n              fontFamily: sans.fontFamily,\n              fontWeight: 400,\n              fontSize: labelF,\n              color: c.muted,\n            }}\n          >\n            <div\n              style={{\n                width: ctrlD,\n                height: ctrlD,\n                borderRadius: ctrlD,\n                boxShadow: `inset 0 0 0 1px ${c.faint}`,\n                display: \"flex\",\n                alignItems: \"center\",\n                justifyContent: \"center\",\n                transform: `scale(${toolIn[0].toFixed(4)})`,\n              }}\n            >\n              <Icon size={18 * u} color={c.muted}>\n                <path d=\"M12 5v14M5 12h14\" />\n              </Icon>\n            </div>\n            <div\n              style={{\n                height: ctrlD,\n                padding: `0 ${12 * u}px 0 ${10 * u}px`,\n                borderRadius: ctrlD,\n                boxShadow: `inset 0 0 0 1px ${c.faint}`,\n                display: \"flex\",\n                alignItems: \"center\",\n                gap: 6 * u,\n                whiteSpace: \"pre\",\n                transform: `scale(${toolIn[1].toFixed(4)})`,\n                transformOrigin: \"0% 50%\",\n              }}\n            >\n              <Icon size={16 * u} color={c.muted}>\n                <circle cx=\"12\" cy=\"12\" r=\"8.5\" />\n                <path d=\"M12 3.5v17M3.5 12h8.5\" />\n              </Icon>\n              {chipLabel}\n            </div>\n            <div style={{ flex: 1 }} />\n            <div\n              style={{\n                display: \"flex\",\n                alignItems: \"center\",\n                gap: 4 * u,\n                whiteSpace: \"pre\",\n                opacity: Math.min(1, toolIn[2]),\n              }}\n            >\n              {modelLabel}\n              <Icon size={14 * u} color={c.muted}>\n                <path d=\"M7 10l5 5 5-5\" />\n              </Icon>\n            </div>\n            <div\n              style={{\n                width: 34 * u,\n                height: 34 * u,\n                borderRadius: 34 * u,\n                flexShrink: 0,\n                background: armed ? hi : c.send,\n                boxShadow: armed\n                  ? \"inset 0 1px 0 rgba(255,255,255,0.22)\"\n                  : \"none\",\n                display: \"flex\",\n                alignItems: \"center\",\n                justifyContent: \"center\",\n                transform: `scale(${(toolIn[4] * (armed ? 0.9 + 0.1 * armP : 1)).toFixed(4)})`,\n              }}\n            >\n              <Icon size={18 * u} color={armed ? \"#ffffff\" : c.muted}>\n                <path d=\"M12 19V5M6 11l6-6 6 6\" />\n              </Icon>\n            </div>\n          </div>\n        </div>\n      </div>\n    );\n\n    content = (\n      <>\n        <svg width=\"0\" height=\"0\" style={{ position: \"absolute\" }} aria-hidden>\n          <filter id={`lb${uid}`} x=\"-5%\" y=\"-5%\" width=\"110%\" height=\"110%\">\n            <feGaussianBlur stdDeviation={`${lineBlur.toFixed(2)} 0`} />\n          </filter>\n          <filter id={`cb${uid}`} x=\"-5%\" y=\"-5%\" width=\"110%\" height=\"110%\">\n            <feGaussianBlur stdDeviation={`${cardBlur.toFixed(2)} 0`} />\n          </filter>\n        </svg>\n        <AbsoluteFill style={{ transform: `scale(${push.toFixed(5)})` }}>\n          {sentence}\n          {card}\n        </AbsoluteFill>\n      </>\n    );\n  }\n\n  return (\n    <AbsoluteFill style={{ background: bg, overflow: \"hidden\" }}>\n      <GshGround\n        preset={preset}\n        params={gParams}\n        timeOffset={c.groundOffset}\n        timeScale={0.6}\n      />\n      <AbsoluteFill\n        style={{\n          background: `radial-gradient(${portrait ? \"90% 50%\" : \"70% 64%\"} at 50% 50%, rgba(${c.scrim},${c.scrimAlpha}) 0%, rgba(${c.scrim},0) 100%)`,\n        }}\n      />\n      {content}\n    </AbsoluteFill>\n  );\n}\n\nexport default CardPushLine;\n",
      "type": "registry:component",
      "target": "components/remocn/card-push-line.tsx"
    }
  ],
  "type": "registry:component"
}
