{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "strobe-montage",
  "title": "Strobe Montage",
  "description": "A fast strobe montage of frames flickers between two scenes, landing on a prompt box.",
  "dependencies": [
    "remotion",
    "@remotion/google-fonts",
    "@remotion/transitions"
  ],
  "registryDependencies": ["@remocn/gsh"],
  "files": [
    {
      "path": "registry/remocn/strobe-montage/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont as loadSans } from \"@remotion/google-fonts/HankenGrotesk\";\nimport { loadFont as loadSerif } from \"@remotion/google-fonts/InstrumentSerif\";\nimport { loadFont as loadManrope } from \"@remotion/google-fonts/Manrope\";\nimport {\n  linearTiming,\n  type TransitionPresentation,\n  type TransitionPresentationComponentProps,\n  TransitionSeries,\n} from \"@remotion/transitions\";\nimport type React from \"react\";\nimport {\n  AbsoluteFill,\n  Easing,\n  Img,\n  interpolate,\n  spring,\n  staticFile,\n  useCurrentFrame,\n  useVideoConfig,\n} from \"remotion\";\nimport type { GradientParams } from \"@/lib/remocn/gsh/gradient-engine\";\nimport { GshGround } from \"@/lib/remocn/gsh/gsh-ground\";\nimport type { GshPresetId } from \"@/lib/remocn/gsh/presets\";\n\nconst sans = loadSans(\"normal\", {\n  weights: [\"300\", \"400\"],\n  subsets: [\"latin\"],\n});\nconst serif = loadSerif(\"italic\", { weights: [\"400\"], subsets: [\"latin\"] });\nconst manrope = loadManrope(\"normal\", {\n  weights: [\"600\"],\n  subsets: [\"latin\"],\n});\n\nconst REMOCN_R_PATH =\n  \"M 0.01 0.81 C 0.01 1.73, 0.36 2.79, 1.09 4.13 C 4.91 11.04, 13.45 17.16, 21.7 18.9 C 22.94 19.16, 23.18 19.16, 51.39 19.27 C 76.07 19.36, 80.02 19.4, 81.32 19.57 C 89.89 20.69, 96.2 24.68, 99.38 31.01 C 103.19 38.56, 102.53 50.1, 97.91 57.07 C 94.66 61.96, 89.68 64.99, 83.26 66 C 82.81 66.07, 70.18 66.83, 55.2 67.69 C 24.82 69.43, 27.03 69.23, 24.18 70.4 C 19.9 72.15, 14.84 75.7, 10.65 79.89 C 4.86 85.68, 1.3 91.91, 0.25 98.13 C 0.12 98.85, 0.08 103.13, 0.04 116.66 L 0 134.26 9.5 134.26 L 19 134.26 19.05 119.41 C 19.1 103.27, 19.08 103.82, 19.82 101.04 C 21.79 93.65, 27.86 88.75, 36.45 87.63 C 37.23 87.53, 39.41 87.5, 43.57 87.53 C 50.12 87.59, 50.75 87.65, 53.22 88.45 C 56.61 89.56, 59.67 91.86, 62.02 95.07 C 62.52 95.76, 69.35 103.85, 77.2 113.07 C 85.04 122.28, 91.63 130.04, 91.85 130.32 C 92.07 130.59, 92.5 131.34, 92.82 131.97 C 93.52 133.35, 94.11 133.93, 95.06 134.13 C 95.5 134.23, 98.97 134.26, 106.36 134.23 L 117.01 134.19 100.82 113.07 C 91.91 101.45, 84.52 91.78, 84.39 91.57 C 83.36 89.89, 83.66 87.53, 85.09 86 C 85.79 85.25, 86.36 84.94, 88.07 84.38 C 96.18 81.72, 104.15 76.62, 109.97 70.36 C 120.59 58.93, 124.06 44.32, 119.44 30.43 C 114.59 15.81, 101.93 4.02, 87.64 0.83 C 83.93 0.01, 88.09 0.08, 41.85 0.04 L 0.01 0 0.01 0.81 Z\";\n\nfunction RemocnLogo({ fontSize, color }: { fontSize: number; color: string }) {\n  return (\n    <div\n      style={{\n        display: \"flex\",\n        alignItems: \"baseline\",\n        color,\n        fontFamily: manrope.fontFamily,\n        fontWeight: 600,\n        fontSize,\n        letterSpacing: \"-0.025em\",\n        lineHeight: 1,\n      }}\n    >\n      <svg\n        viewBox=\"0 0 124.06 134.26\"\n        style={{ height: \"0.76em\", width: \"auto\" }}\n        aria-hidden\n      >\n        <path fill=\"currentColor\" d={REMOCN_R_PATH} />\n      </svg>\n      <span style={{ marginLeft: \"0.04em\" }}>emocn</span>\n    </div>\n  );\n}\n\nconst CLAMP = {\n  extrapolateLeft: \"clamp\",\n  extrapolateRight: \"clamp\",\n} as const;\n\nconst PUNCH = Easing.bezier(0.22, 1, 0.36, 1);\nconst RECEDE = Easing.bezier(0.65, 0, 0.35, 1);\nconst TYPE_IN = Easing.bezier(0.32, 0.72, 0, 1);\nconst PANEL = { mass: 1, damping: 26, stiffness: 120 };\nconst CHIP = { mass: 0.5, damping: 12, stiffness: 200 };\n\nexport const STROBE_MONTAGE_IMAGES = [\n  \"templates/launch-anything/desk.jpg\",\n  \"templates/product-showcase/workbench.jpg\",\n  \"templates/brand-guidelines/materials.jpg\",\n  \"templates/brand-guidelines/ceramics.jpg\",\n  \"templates/launch-anything/rocket.jpg\",\n  \"templates/launch-anything/earth.jpg\",\n];\n\nexport type StrobeMontageProps = {\n  images?: string[];\n  framesPerHit?: number;\n  growFrom?: number;\n  growHits?: number;\n  punch?: number;\n  focus?: string[];\n};\n\nexport const strobeMontageDefaults: Required<StrobeMontageProps> = {\n  images: STROBE_MONTAGE_IMAGES,\n  framesPerHit: 4,\n  growFrom: 0.58,\n  growHits: 3,\n  punch: 0.1,\n  focus: [\"50% 60%\", \"50% 50%\", \"40% 50%\", \"60% 55%\", \"50% 40%\", \"50% 50%\"],\n};\n\nfunction resolveSrc(src: string) {\n  return src.startsWith(\"http\") || src.startsWith(\"data:\")\n    ? src\n    : staticFile(src);\n}\n\nfunction slotAt(p: number, duration: number, framesPerHit: number) {\n  const slots = Math.max(2, Math.round(duration / Math.max(1, framesPerHit)));\n  const f = Math.min(1, Math.max(0, p)) * slots;\n  const k = Math.min(slots - 1, Math.floor(f));\n  return { slots, k, local: Math.min(1, f - k) };\n}\n\nconst StrobeMontagePresentation: React.FC<\n  TransitionPresentationComponentProps<StrobeMontageProps>\n> = ({\n  children,\n  presentationProgress,\n  presentationDirection,\n  presentationDurationInFrames,\n  passedProps,\n}) => {\n  const { width: W, height: H } = useVideoConfig();\n  const o = { ...strobeMontageDefaults, ...passedProps };\n  const p = presentationProgress;\n  const { slots, k, local } = slotAt(\n    p,\n    presentationDurationInFrames,\n    o.framesPerHit,\n  );\n  const u = Math.min(W, H) / 720;\n  const growSlots = Math.max(1, o.growHits);\n\n  if (presentationDirection === \"exiting\") {\n    const back = RECEDE(\n      interpolate(p * slots, [0, growSlots + 0.5], [0, 1], CLAMP),\n    );\n    return (\n      <AbsoluteFill\n        style={{\n          transform: `scale(${1 + 0.06 * back})`,\n          filter:\n            back > 0\n              ? `brightness(${1 - 0.55 * back}) blur(${3 * back}px)`\n              : undefined,\n        }}\n      >\n        {children}\n      </AbsoluteFill>\n    );\n  }\n\n  const isB = k === slots - 1;\n  const kick = 1 + o.punch * (1 - PUNCH(local));\n  const images = o.images.length > 0 ? o.images : STROBE_MONTAGE_IMAGES;\n  const size = interpolate(k, [0, growSlots], [o.growFrom, 1], CLAMP);\n  const fw = W * size;\n  const fh = H * size;\n  const radius = interpolate(size, [o.growFrom, 1], [22 * u, 0], CLAMP);\n  const src = images[k % images.length];\n\n  return (\n    <AbsoluteFill style={{ zIndex: 2 }}>\n      <AbsoluteFill\n        style={{\n          opacity: isB ? 1 : 0,\n          transform: `scale(${isB ? kick * 0.95 + 0.05 : 1})`,\n        }}\n      >\n        {children}\n      </AbsoluteFill>\n      {isB ? null : (\n        <div\n          style={{\n            position: \"absolute\",\n            left: (W - fw) / 2,\n            top: (H - fh) / 2,\n            width: fw,\n            height: fh,\n            borderRadius: radius,\n            overflow: \"hidden\",\n            background: \"#000\",\n            boxShadow:\n              size < 1\n                ? `0 ${24 * u}px ${60 * u}px rgba(0,0,0,0.5), 0 ${4 * u}px ${12 * u}px rgba(0,0,0,0.35)`\n                : undefined,\n          }}\n        >\n          <Img\n            src={resolveSrc(src)}\n            style={{\n              position: \"absolute\",\n              left: 0,\n              top: 0,\n              width: W,\n              height: H,\n              objectFit: \"cover\",\n              objectPosition: o.focus[k % o.focus.length] ?? \"50% 50%\",\n              transformOrigin: \"50% 50%\",\n              transform: `translate(${-(W - fw) / 2}px, ${-(H - fh) / 2}px) scale(${kick})`,\n            }}\n          />\n        </div>\n      )}\n    </AbsoluteFill>\n  );\n};\n\nexport function strobeMontage(\n  props: StrobeMontageProps = {},\n): TransitionPresentation<StrobeMontageProps> {\n  return { component: StrobeMontagePresentation, props };\n}\n\nconst THEMES = {\n  dark: {\n    base: \"#03040a\",\n    ink: \"#f2f4ff\",\n    sub: \"rgba(242,244,255,0.6)\",\n    accentInk: \"#9db4ff\",\n    accent: \"#3B5BFD\",\n    card: \"rgba(14,16,26,0.72)\",\n    cardHair: \"rgba(255,255,255,0.10)\",\n    cardLift: \"inset 0 1px 0 rgba(255,255,255,0.07)\",\n    cardShadow:\n      \"0 2px 4px rgba(0,0,0,0.4), 0 18px 40px rgba(0,0,0,0.45), 0 40px 90px rgba(4,8,30,0.5)\",\n    chip: \"rgba(255,255,255,0.06)\",\n    chipHair: \"rgba(255,255,255,0.09)\",\n    groundA: \"film-blue\" as GshPresetId | undefined,\n    groundAParams: undefined as Partial<GradientParams> | undefined,\n    groundB: \"earthshine\" as GshPresetId | undefined,\n    groundBParams: undefined as Partial<GradientParams> | undefined,\n  },\n  light: {\n    base: \"#eef0f6\",\n    ink: \"#111427\",\n    sub: \"rgba(17,20,39,0.56)\",\n    accentInk: \"#3552ff\",\n    accent: \"#3B5BFD\",\n    card: \"rgba(255,255,255,0.86)\",\n    cardHair: \"rgba(17,20,39,0.09)\",\n    cardLift: \"inset 0 1px 0 rgba(255,255,255,1)\",\n    cardShadow:\n      \"0 1px 2px rgba(30,36,70,0.08), 0 14px 34px rgba(30,36,70,0.10), 0 40px 80px rgba(30,36,70,0.08)\",\n    chip: \"rgba(17,20,39,0.04)\",\n    chipHair: \"rgba(17,20,39,0.08)\",\n    groundA: undefined as GshPresetId | undefined,\n    groundAParams: {\n      kind: \"mist\",\n      background: \"#eef0f6\",\n      colors: [\"#ffffff\", \"#dfe6ff\", \"#a9bbff\", \"#3d5bff\"],\n      blur: 0.6,\n      warp: 0.4,\n      seed: 3,\n      grain: 0.15,\n    } as Partial<GradientParams> | undefined,\n    groundB: \"paper-crease\" as GshPresetId | undefined,\n    groundBParams: undefined as Partial<GradientParams> | undefined,\n  },\n};\n\ntype Theme = (typeof THEMES)[\"dark\"];\n\nexport const STROBE_MONTAGE_TIMING = { a: 72, transition: 28, b: 84 };\nexport const strobeMontageDemoLength =\n  STROBE_MONTAGE_TIMING.a +\n  STROBE_MONTAGE_TIMING.b -\n  STROBE_MONTAGE_TIMING.transition;\n\nfunction Rise({\n  children,\n  v,\n  italic,\n}: {\n  children: React.ReactNode;\n  v: number;\n  italic?: boolean;\n}) {\n  return (\n    <span\n      style={{\n        display: \"inline-block\",\n        overflow: \"hidden\",\n        verticalAlign: \"bottom\",\n        padding: `0 ${italic ? 0.08 : 0}em 0.14em 0`,\n        marginBottom: \"-0.14em\",\n      }}\n    >\n      <span\n        style={{\n          display: \"inline-block\",\n          transform: `translateY(${(1 - v) * 108}%)`,\n          filter: v < 1 ? `blur(${(1 - v) * 6}px)` : undefined,\n        }}\n      >\n        {children}\n      </span>\n    </span>\n  );\n}\n\nfunction OpenerScene({\n  c,\n  lead,\n  accentWord,\n  ground,\n  groundParams,\n}: {\n  c: Theme;\n  lead: string;\n  accentWord: string;\n  ground?: GshPresetId;\n  groundParams?: Partial<GradientParams>;\n}) {\n  const frame = useCurrentFrame();\n  const { width: W, height: H } = useVideoConfig();\n  const landscape = W >= H;\n  const u = Math.min(W, H) / 720;\n  const longest = Math.max(lead.length, accentWord.length * 0.85);\n  const size = Math.min(\n    (landscape ? 120 : 132) * u,\n    (W * 0.84) / (0.5 * longest),\n  );\n  const push = interpolate(frame, [0, 110], [1, 1.04], {\n    ...CLAMP,\n    easing: Easing.bezier(0.45, 0, 0.55, 1),\n  });\n  const words = lead.split(\" \");\n  const at = (i: number) =>\n    TYPE_IN(interpolate(frame, [-3 + 3 * i, 11 + 3 * i], [0, 1], CLAMP));\n  const logoIn = TYPE_IN(interpolate(frame, [-6, 6], [0, 1], CLAMP));\n  return (\n    <AbsoluteFill style={{ background: c.base, overflow: \"hidden\" }}>\n      <AbsoluteFill style={{ transform: `scale(${push})` }}>\n        <GshGround preset={ground} params={groundParams} timeOffset={4} />\n      </AbsoluteFill>\n      <AbsoluteFill\n        style={{\n          alignItems: \"center\",\n          justifyContent: \"center\",\n          flexDirection: \"column\",\n          gap: 34 * u,\n          transform: `scale(${push})`,\n        }}\n      >\n        <div\n          style={{\n            opacity: logoIn,\n            transform: `translateY(${(1 - logoIn) * 10 * u}px)`,\n          }}\n        >\n          <RemocnLogo fontSize={28 * u} color={c.ink} />\n        </div>\n        <div\n          style={{\n            fontFamily: sans.fontFamily,\n            fontWeight: 300,\n            fontSize: size,\n            lineHeight: 0.98,\n            letterSpacing: \"-0.045em\",\n            color: c.ink,\n            textAlign: \"center\",\n          }}\n        >\n          {words.map((w, i) => (\n            <span key={`${w}-${i}`}>\n              <Rise v={at(i)}>{w}</Rise>\n              {i < words.length - 1 ? \" \" : \"\"}\n            </span>\n          ))}\n          <br />\n          <span\n            style={{\n              fontFamily: serif.fontFamily,\n              fontStyle: \"italic\",\n              fontWeight: 400,\n              letterSpacing: \"-0.02em\",\n              color: c.accentInk,\n            }}\n          >\n            <Rise v={at(words.length + 1)} italic>\n              {accentWord}\n            </Rise>\n          </span>\n        </div>\n      </AbsoluteFill>\n    </AbsoluteFill>\n  );\n}\n\nfunction Icon({ d, size, color }: { d: string; size: number; color: string }) {\n  return (\n    <svg width={size} height={size} viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden>\n      <path\n        d={d}\n        stroke={color}\n        strokeWidth=\"1.5\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n      />\n    </svg>\n  );\n}\n\nconst ICON = {\n  plus: \"M8 3.5v9M3.5 8h9\",\n  chevron: \"M5 6.5 8 9.5l3-3\",\n  mic: \"M8 2.8a2 2 0 0 1 2 2v3a2 2 0 0 1-4 0v-3a2 2 0 0 1 2-2ZM4.6 7.6a3.4 3.4 0 0 0 6.8 0M8 11v2.2\",\n  up: \"M8 12.5v-9M4.5 7 8 3.5 11.5 7\",\n  file: \"M4.5 2.5h4.6L12 5.4v8.1H4.5zM9 2.5v3h3\",\n  x: \"M5 5l6 6M11 5l-6 6\",\n  spark: \"M8 2.5l1.3 3.2 3.2 1.3-3.2 1.3L8 11.5 6.7 8.3 3.5 7l3.2-1.3z\",\n};\n\nfunction PromptScene({\n  c,\n  heading,\n  accentMark,\n  prompt,\n  file,\n  ground,\n  groundParams,\n  start,\n}: {\n  c: Theme;\n  heading: [string, string];\n  accentMark: string;\n  prompt: string;\n  file: string;\n  ground?: GshPresetId;\n  groundParams?: Partial<GradientParams>;\n  start: number;\n}) {\n  const frame = useCurrentFrame();\n  const { width: W, height: H, fps } = useVideoConfig();\n  const landscape = W >= H;\n  const u = Math.min(W, H) / 720;\n  const t = frame - start;\n  const push = interpolate(frame, [0, 120], [1, 1.035], {\n    ...CLAMP,\n    easing: Easing.bezier(0.45, 0, 0.55, 1),\n  });\n  const cardW = landscape ? 720 * u : W * 0.88;\n  const headSize = (landscape ? 80 : 92) * u;\n  const chipIn = spring({ frame: t - 6, fps, config: CHIP });\n  const typed = Math.round(\n    interpolate(t, [8, 8 + prompt.length * 0.6], [0, prompt.length], CLAMP),\n  );\n  const done = typed >= prompt.length;\n  const sendOn = spring({\n    frame: t - (9 + Math.ceil(prompt.length * 0.6)),\n    fps,\n    config: CHIP,\n  });\n  const caretOn = done ? Math.floor(t / 8) % 2 === 0 : true;\n  const lift = spring({ frame: t + 2, fps, config: PANEL });\n  return (\n    <AbsoluteFill style={{ background: c.base, overflow: \"hidden\" }}>\n      <AbsoluteFill style={{ transform: `scale(${push})` }}>\n        <GshGround preset={ground} params={groundParams} timeOffset={6} />\n      </AbsoluteFill>\n      <AbsoluteFill\n        style={{\n          alignItems: \"center\",\n          justifyContent: landscape ? \"center\" : \"center\",\n          flexDirection: \"column\",\n          gap: 40 * u,\n          fontFamily: sans.fontFamily,\n          paddingBottom: landscape ? 40 * u : 120 * u,\n        }}\n      >\n        <div\n          style={{\n            fontWeight: 300,\n            fontSize: headSize,\n            lineHeight: 1.04,\n            letterSpacing: \"-0.04em\",\n            color: c.ink,\n            textAlign: \"center\",\n          }}\n        >\n          {heading[0]}\n          <br />\n          {heading[1]}\n          <span style={{ color: c.accentInk }}>{accentMark}</span>\n        </div>\n        <div\n          style={{\n            width: cardW,\n            borderRadius: 18 * u,\n            background: c.card,\n            backdropFilter: \"blur(18px)\",\n            boxShadow: `inset 0 0 0 1px ${c.cardHair}, ${c.cardLift}, ${c.cardShadow}`,\n            padding: 14 * u,\n            transform: `translateY(${(1 - lift) * 18 * u}px)`,\n          }}\n        >\n          <div\n            style={{\n              display: \"inline-flex\",\n              alignItems: \"center\",\n              gap: 10 * u,\n              padding: `${7 * u}px ${10 * u}px ${7 * u}px ${8 * u}px`,\n              borderRadius: 10 * u,\n              background: c.chip,\n              boxShadow: `inset 0 0 0 1px ${c.chipHair}`,\n              transform: `scale(${0.8 + 0.2 * chipIn})`,\n              transformOrigin: \"0% 50%\",\n              opacity: Math.min(1, chipIn * 1.5),\n            }}\n          >\n            <div\n              style={{\n                width: 30 * u,\n                height: 30 * u,\n                borderRadius: 7 * u,\n                background: c.accent,\n                display: \"flex\",\n                alignItems: \"center\",\n                justifyContent: \"center\",\n              }}\n            >\n              <Icon d={ICON.file} size={16 * u} color=\"#fff\" />\n            </div>\n            <div>\n              <div style={{ fontSize: 14 * u, color: c.ink, fontWeight: 400 }}>\n                {file}\n              </div>\n              <div style={{ fontSize: 12 * u, color: c.sub }}>\n                Release notes · 2.4 KB\n              </div>\n            </div>\n            <Icon d={ICON.x} size={14 * u} color={c.sub} />\n          </div>\n          <div\n            style={{\n              minHeight: 64 * u,\n              padding: `${14 * u}px ${4 * u}px ${8 * u}px`,\n              fontSize: 21 * u,\n              lineHeight: 1.45,\n              color: typed > 0 ? c.ink : c.sub,\n              fontWeight: 400,\n              letterSpacing: \"-0.005em\",\n            }}\n          >\n            {typed > 0 ? prompt.slice(0, typed) : \"Describe your launch film\"}\n            <span\n              style={{\n                display: \"inline-block\",\n                width: 2 * u,\n                height: 22 * u,\n                marginLeft: 2 * u,\n                verticalAlign: \"-0.2em\",\n                background: c.accentInk,\n                opacity: caretOn ? 1 : 0,\n              }}\n            />\n          </div>\n          <div style={{ display: \"flex\", alignItems: \"center\", gap: 8 * u }}>\n            <div\n              style={{\n                width: 34 * u,\n                height: 34 * u,\n                borderRadius: 99,\n                boxShadow: `inset 0 0 0 1px ${c.chipHair}`,\n                display: \"flex\",\n                alignItems: \"center\",\n                justifyContent: \"center\",\n              }}\n            >\n              <Icon d={ICON.plus} size={16 * u} color={c.sub} />\n            </div>\n            <div\n              style={{\n                display: \"flex\",\n                alignItems: \"center\",\n                gap: 6 * u,\n                height: 34 * u,\n                padding: `0 ${10 * u}px`,\n                borderRadius: 9 * u,\n                color: c.sub,\n                fontSize: 14 * u,\n              }}\n            >\n              <Icon d={ICON.spark} size={15 * u} color={c.sub} />\n              Model\n              <Icon d={ICON.chevron} size={14 * u} color={c.sub} />\n            </div>\n            <div style={{ flex: 1 }} />\n            <div\n              style={{\n                display: \"flex\",\n                alignItems: \"center\",\n                gap: 6 * u,\n                height: 34 * u,\n                padding: `0 ${10 * u}px`,\n                borderRadius: 9 * u,\n                color: c.sub,\n                fontSize: 14 * u,\n              }}\n            >\n              Film\n              <Icon d={ICON.chevron} size={14 * u} color={c.sub} />\n            </div>\n            <Icon d={ICON.mic} size={17 * u} color={c.sub} />\n            <div\n              style={{\n                width: 34 * u,\n                height: 34 * u,\n                borderRadius: 10 * u,\n                marginLeft: 4 * u,\n                background: done ? c.accent : c.chip,\n                boxShadow: done\n                  ? `inset 0 1px 0 rgba(255,255,255,0.25), 0 6px 18px ${c.accent}66`\n                  : `inset 0 0 0 1px ${c.chipHair}`,\n                display: \"flex\",\n                alignItems: \"center\",\n                justifyContent: \"center\",\n                transform: `scale(${1 + 0.08 * Math.sin(Math.PI * Math.min(1, sendOn))})`,\n              }}\n            >\n              <Icon d={ICON.up} size={16 * u} color={done ? \"#fff\" : c.sub} />\n            </div>\n          </div>\n        </div>\n      </AbsoluteFill>\n    </AbsoluteFill>\n  );\n}\n\nexport interface StrobeMontageDemoProps extends StrobeMontageProps {\n  theme?: \"dark\" | \"light\";\n  accent?: string;\n  lead?: string;\n  accentWord?: string;\n  heading?: [string, string];\n  accentMark?: string;\n  prompt?: string;\n  file?: string;\n  ground?: GshPresetId;\n  groundParams?: Partial<GradientParams>;\n  groundB?: GshPresetId;\n  groundBParams?: Partial<GradientParams>;\n  transitionFrames?: number;\n}\n\nexport function StrobeMontage({\n  theme = \"dark\",\n  accent,\n  lead = \"Six weekends\",\n  accentWord = \"of making.\",\n  heading = [\"What will you\", \"launch next\"],\n  accentMark = \"?\",\n  prompt = \"A 30-second film for our 2.0 release\",\n  file = \"launch-notes.md\",\n  ground,\n  groundParams,\n  groundB,\n  groundBParams,\n  transitionFrames = STROBE_MONTAGE_TIMING.transition,\n  ...montage\n}: StrobeMontageDemoProps) {\n  const base = THEMES[theme];\n  const c = { ...base, accent: accent ?? base.accent };\n  const presetA = ground ?? (groundParams ? undefined : c.groundA);\n  const presetB = groundB ?? (groundBParams ? undefined : c.groundB);\n  return (\n    <AbsoluteFill style={{ background: \"#000\" }}>\n      <TransitionSeries>\n        <TransitionSeries.Sequence durationInFrames={STROBE_MONTAGE_TIMING.a}>\n          <OpenerScene\n            c={c}\n            lead={lead}\n            accentWord={accentWord}\n            ground={presetA}\n            groundParams={groundParams ?? c.groundAParams}\n          />\n        </TransitionSeries.Sequence>\n        <TransitionSeries.Transition\n          presentation={strobeMontage(montage)}\n          timing={linearTiming({ durationInFrames: transitionFrames })}\n        />\n        <TransitionSeries.Sequence durationInFrames={STROBE_MONTAGE_TIMING.b}>\n          <PromptScene\n            c={c}\n            heading={heading}\n            accentMark={accentMark}\n            prompt={prompt}\n            file={file}\n            ground={presetB}\n            groundParams={groundBParams ?? c.groundBParams}\n            start={transitionFrames}\n          />\n        </TransitionSeries.Sequence>\n      </TransitionSeries>\n    </AbsoluteFill>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/strobe-montage.tsx"
    }
  ],
  "type": "registry:component"
}
