{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "chatgpt",
  "title": "ChatGPT",
  "description": "A full recreation of a ChatGPT conversation with thinking, web search, reasoning and the model picker, built on shadcn Base UI.",
  "dependencies": [
    "cn",
    "lucide-react"
  ],
  "registryDependencies": [
    "avatar",
    "badge",
    "button",
    "card",
    "collapsible",
    "hover-card",
    "input-group",
    "item",
    "popover",
    "scroll-area",
    "separator",
    "sheet",
    "slider",
    "toggle-group",
    "tooltip",
    "https://ui.usenotra.com/r/shimmer.json"
  ],
  "files": [
    {
      "path": "registry/notra/chatgpt/components/chatgpt-action-button.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"cn\";\n\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Tooltip,\n  TooltipContent,\n  TooltipTrigger,\n} from \"@/components/ui/tooltip\";\n\nimport type { ChatgptActionButtonProps } from \"../types/chatgpt\";\n\nexport const ChatgptActionButton = ({\n  children,\n  className,\n  label,\n  ...props\n}: ChatgptActionButtonProps) => (\n  <Tooltip>\n    <TooltipTrigger\n      render={\n        <Button\n          aria-label={label}\n          className={cn(\n            \"text-chatgpt-muted hover:bg-chatgpt-hover hover:text-chatgpt-fg focus-visible:ring-chatgpt-focus/35 dark:hover:bg-chatgpt-hover size-8 rounded-lg border-0 transition-colors duration-150 focus-visible:ring-2 motion-reduce:transition-none [&_svg:not([class*='size-'])]:size-4\",\n            className\n          )}\n          data-slot=\"chatgpt-action-button\"\n          size=\"icon\"\n          variant=\"ghost\"\n          {...props}\n        />\n      }\n    >\n      {children}\n    </TooltipTrigger>\n    <TooltipContent\n      className=\"bg-chatgpt-tooltip font-chatgpt text-chatgpt-tooltip-fg rounded-lg border-0 bg-none px-2 py-1 text-xs font-medium shadow-none [--color-background:var(--chatgpt-tooltip-fg)] [--color-foreground:var(--chatgpt-tooltip)] [corner-shape:round]\"\n      side=\"bottom\"\n      sideOffset={6}\n    >\n      {label}\n    </TooltipContent>\n  </Tooltip>\n);\n",
      "type": "registry:component",
      "target": "components/chatgpt/components/chatgpt-action-button.tsx"
    },
    {
      "path": "registry/notra/chatgpt/components/chatgpt-actions.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"cn\";\nimport {\n  CheckIcon,\n  CopyIcon,\n  EllipsisIcon,\n  RefreshCwIcon,\n  ShareIcon,\n} from \"lucide-react\";\nimport { useEffect, useRef, useState } from \"react\";\n\nimport { TooltipProvider } from \"@/components/ui/tooltip\";\n\nimport {\n  CHATGPT_COPIED_RESET_MS,\n  CHATGPT_TOOLTIP_DELAY_MS,\n} from \"../constants/chatgpt\";\nimport type { ChatgptActionsProps } from \"../types/chatgpt\";\nimport { ChatgptActionButton } from \"./chatgpt-action-button\";\n\nconst ICON_STROKE = 1.75;\n\nconst ICON_CLASS_NAME = \"size-4\";\n\nexport const ChatgptActions = ({\n  className,\n  onMore,\n  onRedo,\n  onShare,\n  text,\n  ...props\n}: ChatgptActionsProps) => {\n  const [copied, setCopied] = useState(false);\n  const resetRef = useRef<number | undefined>(undefined);\n\n  useEffect(() => () => window.clearTimeout(resetRef.current), []);\n\n  const handleCopy = async () => {\n    try {\n      await navigator.clipboard.writeText(text);\n    } catch {\n      return;\n    }\n    setCopied(true);\n    window.clearTimeout(resetRef.current);\n    resetRef.current = window.setTimeout(\n      () => setCopied(false),\n      CHATGPT_COPIED_RESET_MS\n    );\n  };\n\n  return (\n    <TooltipProvider delay={CHATGPT_TOOLTIP_DELAY_MS}>\n      <div\n        className={cn(\n          \"font-chatgpt text-chatgpt-muted flex items-center gap-0.5\",\n          className\n        )}\n        data-slot=\"chatgpt-actions\"\n        {...props}\n      >\n        <ChatgptActionButton\n          label={copied ? \"Copied\" : \"Copy\"}\n          onClick={handleCopy}\n        >\n          {copied ? (\n            <CheckIcon className={ICON_CLASS_NAME} strokeWidth={ICON_STROKE} />\n          ) : (\n            <CopyIcon className={ICON_CLASS_NAME} strokeWidth={ICON_STROKE} />\n          )}\n        </ChatgptActionButton>\n        <ChatgptActionButton label=\"Share\" onClick={onShare}>\n          <ShareIcon className={ICON_CLASS_NAME} strokeWidth={ICON_STROKE} />\n        </ChatgptActionButton>\n        <ChatgptActionButton label=\"Redo\" onClick={onRedo}>\n          <RefreshCwIcon\n            className={ICON_CLASS_NAME}\n            strokeWidth={ICON_STROKE}\n          />\n        </ChatgptActionButton>\n        <ChatgptActionButton label=\"More\" onClick={onMore}>\n          <EllipsisIcon className={ICON_CLASS_NAME} strokeWidth={ICON_STROKE} />\n        </ChatgptActionButton>\n      </div>\n    </TooltipProvider>\n  );\n};\n",
      "type": "registry:component",
      "target": "components/chatgpt/components/chatgpt-actions.tsx"
    },
    {
      "path": "registry/notra/chatgpt/components/chatgpt-activity.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"cn\";\nimport { CheckIcon, GlobeIcon, XIcon } from \"lucide-react\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Item,\n  ItemContent,\n  ItemDescription,\n  ItemGroup,\n  ItemMedia,\n  ItemTitle,\n} from \"@/components/ui/item\";\nimport { ScrollArea } from \"@/components/ui/scroll-area\";\nimport { Separator } from \"@/components/ui/separator\";\nimport {\n  Sheet,\n  SheetClose,\n  SheetContent,\n  SheetDescription,\n  SheetHeader,\n  SheetTitle,\n  SheetTrigger,\n} from \"@/components/ui/sheet\";\n\nimport { CHATGPT_VISIBLE_SITES } from \"../constants/chatgpt\";\nimport type {\n  ChatgptActivityProps,\n  ChatgptActivitySite,\n} from \"../types/chatgpt\";\nimport { ChatgptFavicon } from \"./chatgpt-favicon\";\nimport { ChatgptSearch } from \"./chatgpt-search\";\n\nconst stepClassName =\n  \"relative flex-nowrap items-start gap-3 rounded-none border-0 p-0\";\n\nconst sourceClassName =\n  \"flex-nowrap items-start gap-2.5 rounded-lg border-0 p-0 text-sm\";\n\nconst pillClassName =\n  \"border-chatgpt-border bg-chatgpt-bg text-chatgpt-fg h-auto gap-1.5 rounded-full px-2 py-1 text-xs leading-none font-normal\";\n\nconst ChatgptWebsitePills = ({\n  sites,\n}: {\n  sites: readonly ChatgptActivitySite[];\n}) => {\n  const visible = sites.slice(0, CHATGPT_VISIBLE_SITES);\n  const rest = sites.slice(CHATGPT_VISIBLE_SITES);\n\n  return (\n    <div className=\"flex flex-wrap gap-1.5\">\n      {visible.map((site) => (\n        <Badge className={pillClassName} key={site.domain} variant=\"outline\">\n          <ChatgptFavicon\n            className=\"size-3.5\"\n            domain={site.domain}\n            src={site.favicon}\n          />\n          {site.label}\n        </Badge>\n      ))}\n      {rest.length > 0 && (\n        <Badge className={pillClassName} variant=\"outline\">\n          <span className=\"flex -space-x-1.5\">\n            {rest.map((site) => (\n              <ChatgptFavicon\n                className=\"ring-chatgpt-bg size-3.5 ring-1\"\n                domain={site.domain}\n                key={site.domain}\n                src={site.favicon}\n              />\n            ))}\n          </span>\n          {`+ ${rest.length} more`}\n        </Badge>\n      )}\n    </div>\n  );\n};\n\nexport const ChatgptActivity = ({\n  className,\n  seconds,\n  sites,\n  sourceCount,\n  sources,\n  websites,\n  ...props\n}: ChatgptActivityProps) => (\n  <Sheet modal=\"trap-focus\" {...props}>\n    <SheetTrigger\n      className={className}\n      render={<ChatgptSearch sites={sites} websites={websites} />}\n    />\n    <SheetContent\n      className=\"bg-chatgpt-bg font-chatgpt text-chatgpt-fg data-[side=right]:border-chatgpt-border w-full gap-0 p-0 data-[side=right]:w-full data-[side=right]:sm:max-w-104\"\n      data-slot=\"chatgpt-activity\"\n      showCloseButton={false}\n    >\n      <SheetHeader className=\"flex-row items-center justify-between px-5 py-4\">\n        <SheetTitle className=\"text-chatgpt-fg flex items-baseline gap-1.5 text-base font-semibold\">\n          Activity\n          <span className=\"text-chatgpt-muted font-normal\">· {seconds}s</span>\n        </SheetTitle>\n        <SheetDescription className=\"sr-only\">\n          Search activity and sources\n        </SheetDescription>\n        <SheetClose\n          render={\n            <Button\n              aria-label=\"Close\"\n              className=\"text-chatgpt-muted hover:bg-chatgpt-hover hover:text-chatgpt-fg focus-visible:ring-chatgpt-focus/35 dark:hover:bg-chatgpt-hover rounded-full border-0 focus-visible:ring-2\"\n              size=\"icon\"\n              variant=\"ghost\"\n            />\n          }\n        >\n          <XIcon className=\"size-4\" />\n        </SheetClose>\n      </SheetHeader>\n\n      <ScrollArea className=\"min-h-0 flex-1\">\n        <div className=\"px-5 pb-6\">\n          <section className=\"flex flex-col gap-4\">\n            <h3 className=\"text-chatgpt-fg text-[0.9375rem] font-semibold\">\n              Thinking\n            </h3>\n            <div className=\"relative\">\n              <Separator\n                className=\"bg-chatgpt-border absolute top-4 bottom-8 left-1.75\"\n                orientation=\"vertical\"\n              />\n              <ItemGroup className=\"gap-5\">\n                <Item className={stepClassName} role=\"listitem\">\n                  <ItemMedia className=\"text-chatgpt-muted relative mt-0.5 w-4 translate-y-0\">\n                    <GlobeIcon className=\"size-4\" strokeWidth={1.75} />\n                  </ItemMedia>\n                  <ItemContent className=\"min-w-0 gap-2.5\">\n                    <ItemTitle className=\"text-chatgpt-fg line-clamp-none w-auto text-sm leading-5 font-normal\">\n                      {`Searching ${websites} websites`}\n                    </ItemTitle>\n                    <ChatgptWebsitePills sites={sites} />\n                  </ItemContent>\n                </Item>\n                <Item className={stepClassName} role=\"listitem\">\n                  <ItemMedia className=\"text-chatgpt-muted relative mt-0.5 w-4 translate-y-0\">\n                    <CheckIcon className=\"size-4\" strokeWidth={2} />\n                  </ItemMedia>\n                  <ItemContent className=\"min-w-0 gap-0.5\">\n                    <ItemTitle className=\"text-chatgpt-fg line-clamp-none w-auto text-sm leading-5 font-normal\">\n                      {`Worked for ${seconds}s`}\n                    </ItemTitle>\n                    <ItemDescription className=\"text-chatgpt-muted text-[0.8125rem] leading-5\">\n                      Done\n                    </ItemDescription>\n                  </ItemContent>\n                </Item>\n              </ItemGroup>\n            </div>\n          </section>\n\n          <section className=\"mt-8 flex flex-col gap-4\">\n            <h3 className=\"text-chatgpt-fg text-[0.9375rem] font-semibold\">\n              Sources\n              <span className=\"text-chatgpt-muted font-normal\">\n                {` · ${sourceCount ?? sources.length}`}\n              </span>\n            </h3>\n            <ItemGroup className=\"gap-5\">\n              {sources.map((source) => (\n                <li className=\"list-none\" key={source.id}>\n                  <Item\n                    className={cn(\n                      sourceClassName,\n                      source.href &&\n                        \"focus-visible:ring-chatgpt-focus/35 [a]:hover:bg-chatgpt-hover -m-1.5 p-1.5 focus-visible:ring-2 motion-reduce:transition-none\"\n                    )}\n                    render={\n                      source.href\n                        ? (linkProps) => (\n                            <a\n                              {...linkProps}\n                              href={source.href}\n                              rel=\"noopener noreferrer\"\n                              target=\"_blank\"\n                            >\n                              {linkProps.children}\n                            </a>\n                          )\n                        : undefined\n                    }\n                  >\n                    <ItemMedia className=\"mt-0.5 translate-y-0\">\n                      <ChatgptFavicon\n                        className=\"size-4\"\n                        domain={source.domain}\n                        src={source.favicon}\n                      />\n                    </ItemMedia>\n                    <ItemContent className=\"min-w-0 gap-1\">\n                      <p className=\"text-chatgpt-muted text-xs leading-4\">\n                        {source.publisher}\n                      </p>\n                      <ItemTitle className=\"text-chatgpt-fg line-clamp-none w-auto text-sm leading-5 font-semibold\">\n                        {source.title}\n                      </ItemTitle>\n                      <ItemDescription className=\"text-chatgpt-muted line-clamp-none text-[0.8125rem] leading-5\">\n                        {`${source.timeLabel} — ${source.snippet}`}\n                      </ItemDescription>\n                    </ItemContent>\n                  </Item>\n                </li>\n              ))}\n            </ItemGroup>\n          </section>\n        </div>\n      </ScrollArea>\n    </SheetContent>\n  </Sheet>\n);\n",
      "type": "registry:component",
      "target": "components/chatgpt/components/chatgpt-activity.tsx"
    },
    {
      "path": "registry/notra/chatgpt/components/chatgpt-composer.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"cn\";\nimport { ArrowUpIcon, PlusIcon, SquareIcon } from \"lucide-react\";\nimport type { FormEvent } from \"react\";\nimport { useState } from \"react\";\n\nimport {\n  InputGroup,\n  InputGroupAddon,\n  InputGroupButton,\n  InputGroupInput,\n} from \"@/components/ui/input-group\";\n\nimport {\n  CHATGPT_DEFAULT_EFFORT,\n  CHATGPT_DEFAULT_MODEL,\n} from \"../constants/chatgpt-models\";\nimport type {\n  ChatgptComposerProps,\n  ChatgptEffortId,\n  ChatgptModelId,\n} from \"../types/chatgpt\";\nimport { ChatgptModelSelector } from \"./chatgpt-model-selector\";\n\nconst sendClassName =\n  \"bg-chatgpt-send text-chatgpt-send-fg hover:bg-chatgpt-send-hover hover:text-chatgpt-send-fg focus-visible:ring-chatgpt-focus/35 dark:hover:bg-chatgpt-send-hover size-9 rounded-full border-0 transition-colors duration-150 focus-visible:ring-2 motion-reduce:transition-none\";\n\nexport const ChatgptComposer = ({\n  busy = false,\n  className,\n  defaultEffort = CHATGPT_DEFAULT_EFFORT,\n  defaultModel = CHATGPT_DEFAULT_MODEL,\n  effort: effortProp,\n  efforts,\n  model: modelProp,\n  models,\n  onEffortChange,\n  onModelChange,\n  onSend,\n  onStop,\n  placeholder = \"Ask anything\",\n  ...props\n}: ChatgptComposerProps) => {\n  const [value, setValue] = useState(\"\");\n  const [uncontrolledModel, setUncontrolledModel] = useState(defaultModel);\n  const [uncontrolledEffort, setUncontrolledEffort] = useState(defaultEffort);\n  const model = modelProp ?? uncontrolledModel;\n  const effort = effortProp ?? uncontrolledEffort;\n  const canSend = value.trim().length > 0;\n\n  const handleSubmit = (event: FormEvent<HTMLFormElement>) => {\n    event.preventDefault();\n    const text = value.trim();\n    if (!text || busy) {\n      return;\n    }\n    onSend?.(text);\n    if (onSend) {\n      setValue(\"\");\n    }\n  };\n\n  const handleModelChange = (next: ChatgptModelId) => {\n    if (modelProp === undefined) {\n      setUncontrolledModel(next);\n    }\n    onModelChange?.(next);\n  };\n\n  const handleEffortChange = (next: ChatgptEffortId) => {\n    if (effortProp === undefined) {\n      setUncontrolledEffort(next);\n    }\n    onEffortChange?.(next);\n  };\n\n  return (\n    <form\n      className={cn(\"font-chatgpt w-full\", className)}\n      data-slot=\"chatgpt-composer\"\n      onSubmit={handleSubmit}\n      {...props}\n    >\n      <InputGroup\n        className={cn(\n          \"bg-chatgpt-composer border-chatgpt-composer-border has-disabled:bg-chatgpt-composer dark:has-disabled:bg-chatgpt-composer text-chatgpt-fg shadow-chatgpt-composer has-[[data-slot=input-group-control]:focus-visible]:border-chatgpt-composer-border dark:bg-chatgpt-composer h-auto min-h-13 gap-1.5 rounded-[1.75rem] px-2 py-2 has-disabled:opacity-100 has-[[data-slot=input-group-control]:focus-visible]:ring-0\"\n        )}\n      >\n        <InputGroupAddon\n          align=\"inline-start\"\n          className=\"p-0 has-[>button]:ml-0\"\n        >\n          <InputGroupButton\n            aria-label=\"Add\"\n            className=\"text-chatgpt-fg/80 hover:bg-chatgpt-hover hover:text-chatgpt-fg focus-visible:ring-chatgpt-focus/35 dark:hover:bg-chatgpt-hover size-9 rounded-full border-0 transition-colors duration-150 focus-visible:ring-2 motion-reduce:transition-none\"\n            size=\"icon-xs\"\n          >\n            <PlusIcon className=\"size-5\" strokeWidth={1.5} />\n          </InputGroupButton>\n        </InputGroupAddon>\n        <InputGroupInput\n          aria-label=\"Message\"\n          className=\"placeholder:text-chatgpt-muted h-auto py-1.5 pr-3! pl-0! text-base md:text-base\"\n          onChange={(event) => setValue(event.target.value)}\n          placeholder={placeholder}\n          type=\"text\"\n          value={value}\n        />\n        <InputGroupAddon\n          align=\"inline-end\"\n          className=\"gap-1.5 p-0 has-[>button]:mr-0\"\n        >\n          <ChatgptModelSelector\n            effort={effort}\n            efforts={efforts}\n            model={model}\n            models={models}\n            onEffortChange={handleEffortChange}\n            onModelChange={handleModelChange}\n          />\n          {busy ? (\n            <InputGroupButton\n              aria-label=\"Stop\"\n              className={sendClassName}\n              onClick={onStop}\n              size=\"icon-sm\"\n            >\n              <SquareIcon className=\"size-3.5 fill-current\" strokeWidth={2} />\n            </InputGroupButton>\n          ) : (\n            <InputGroupButton\n              aria-label=\"Send\"\n              className={cn(\n                sendClassName,\n                \"disabled:bg-chatgpt-send/35 disabled:text-chatgpt-send-fg disabled:opacity-100\"\n              )}\n              disabled={!canSend}\n              size=\"icon-sm\"\n              type=\"submit\"\n            >\n              <ArrowUpIcon className=\"size-5\" strokeWidth={2} />\n            </InputGroupButton>\n          )}\n        </InputGroupAddon>\n      </InputGroup>\n    </form>\n  );\n};\n",
      "type": "registry:component",
      "target": "components/chatgpt/components/chatgpt-composer.tsx"
    },
    {
      "path": "registry/notra/chatgpt/components/chatgpt-favicon.tsx",
      "content": "import { cn } from \"cn\";\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\";\n\nimport { CHATGPT_FAVICON_URL } from \"../constants/chatgpt\";\nimport type { ChatgptFaviconProps } from \"../types/chatgpt\";\n\nconst faviconSrc = (domain: string) =>\n  `${CHATGPT_FAVICON_URL}?domain=${encodeURIComponent(domain)}&sz=64`;\n\nexport const ChatgptFavicon = ({\n  className,\n  domain,\n  src,\n  ...props\n}: ChatgptFaviconProps) => (\n  <Avatar\n    className={cn(\"bg-chatgpt-hover size-4 after:hidden\", className)}\n    data-slot=\"chatgpt-favicon\"\n    {...props}\n  >\n    <AvatarImage alt=\"\" src={src ?? faviconSrc(domain)} />\n    <AvatarFallback className=\"bg-chatgpt-hover\" />\n  </Avatar>\n);\n",
      "type": "registry:component",
      "target": "components/chatgpt/components/chatgpt-favicon.tsx"
    },
    {
      "path": "registry/notra/chatgpt/components/chatgpt-icons.tsx",
      "content": "import type { ComponentProps } from \"react\";\n\nexport const ChatgptLogoIcon = (props: ComponentProps<\"svg\">) => (\n  <svg\n    aria-hidden=\"true\"\n    fill=\"currentColor\"\n    preserveAspectRatio=\"xMidYMid\"\n    viewBox=\"0 0 256 260\"\n    {...props}\n  >\n    <path d=\"M239.184 106.203a64.716 64.716 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.716 64.716 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.665 64.665 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.767 64.767 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483Zm-97.56 136.338a48.397 48.397 0 0 1-31.105-11.255l1.535-.87 51.67-29.825a8.595 8.595 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601Zm-104.466-44.61a48.345 48.345 0 0 1-5.781-32.589l1.534.921 51.722 29.826a8.339 8.339 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803ZM23.549 85.38a48.499 48.499 0 0 1 25.58-21.333v61.39a8.288 8.288 0 0 0 4.195 7.316l62.874 36.272-21.845 12.636a.819.819 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405v.256Zm179.466 41.695-63.08-36.63L161.73 77.86a.819.819 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.544 8.544 0 0 0-4.4-7.213Zm21.742-32.69-1.535-.922-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.716.716 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391v.205ZM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87-51.67 29.825a8.595 8.595 0 0 0-4.246 7.367l-.051 72.697Zm11.868-25.58 28.138-16.217 28.188 16.218v32.434l-28.086 16.218-28.188-16.218-.052-32.434Z\" />\n  </svg>\n);\n\nexport const ChatgptSearchIcon = (props: ComponentProps<\"svg\">) => (\n  <svg aria-hidden=\"true\" fill=\"none\" viewBox=\"0 0 16 16\" {...props}>\n    <circle\n      cx=\"8\"\n      cy=\"8\"\n      r=\"5.35\"\n      stroke=\"currentColor\"\n      strokeDasharray=\"1.05 1.7\"\n      strokeLinecap=\"round\"\n      strokeWidth=\"1.35\"\n    />\n    <ellipse\n      cx=\"8\"\n      cy=\"8\"\n      rx=\"5.35\"\n      ry=\"2.15\"\n      stroke=\"currentColor\"\n      strokeDasharray=\"0.9 1.65\"\n      strokeLinecap=\"round\"\n      strokeWidth=\"1.05\"\n    />\n  </svg>\n);\n\nexport const ChatgptChevronIcon = (props: ComponentProps<\"svg\">) => (\n  <svg aria-hidden=\"true\" fill=\"none\" viewBox=\"0 0 16 16\" {...props}>\n    <path\n      d=\"M4 6.25 8 10.25 12 6.25\"\n      stroke=\"currentColor\"\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      strokeWidth=\"1.5\"\n    />\n  </svg>\n);\n",
      "type": "registry:component",
      "target": "components/chatgpt/components/chatgpt-icons.tsx"
    },
    {
      "path": "registry/notra/chatgpt/components/chatgpt-message.tsx",
      "content": "import { cn } from \"cn\";\n\nimport type { ChatgptMessageProps } from \"../types/chatgpt\";\n\nexport const ChatgptMessage = ({\n  actions,\n  children,\n  className,\n  from,\n  reasoning,\n  ...props\n}: ChatgptMessageProps) => {\n  if (from === \"user\") {\n    return (\n      <div\n        className={cn(\"font-chatgpt flex justify-end\", className)}\n        data-from=\"user\"\n        data-slot=\"chatgpt-message\"\n        {...props}\n      >\n        <div className=\"bg-chatgpt-bubble text-chatgpt-fg max-w-[70%] rounded-[1.125rem] px-4 py-1.5 text-base leading-6 wrap-break-word\">\n          {children}\n        </div>\n      </div>\n    );\n  }\n\n  return (\n    <div\n      className={cn(\n        \"group/chatgpt-message font-chatgpt flex flex-col items-start gap-2\",\n        className\n      )}\n      data-from=\"assistant\"\n      data-slot=\"chatgpt-message\"\n      {...props}\n    >\n      {reasoning}\n      <div className=\"text-chatgpt-fg max-w-full text-base leading-7 wrap-break-word\">\n        {children}\n      </div>\n      {actions && (\n        <div className=\"-ms-2 opacity-0 transition-opacity duration-150 group-focus-within/chatgpt-message:opacity-100 motion-reduce:transition-none [@media(hover:hover)]:group-hover/chatgpt-message:opacity-100 [@media(hover:none)]:opacity-100\">\n          {actions}\n        </div>\n      )}\n    </div>\n  );\n};\n",
      "type": "registry:component",
      "target": "components/chatgpt/components/chatgpt-message.tsx"
    },
    {
      "path": "registry/notra/chatgpt/components/chatgpt-model-selector.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"cn\";\nimport { CheckIcon, ChevronDownIcon, ChevronRightIcon } from \"lucide-react\";\nimport {\n  type CSSProperties,\n  useEffect,\n  useLayoutEffect,\n  useState,\n} from \"react\";\n\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Popover,\n  PopoverContent,\n  PopoverTrigger,\n} from \"@/components/ui/popover\";\nimport { Slider } from \"@/components/ui/slider\";\nimport { ToggleGroup, ToggleGroupItem } from \"@/components/ui/toggle-group\";\n\nimport {\n  CHATGPT_PRO_SPARKLES,\n  CHATGPT_PRO_TWINKLES,\n} from \"../constants/chatgpt\";\nimport {\n  CHATGPT_EFFORTS,\n  CHATGPT_LATEST_MODEL,\n  CHATGPT_MEDIUM_EFFORT,\n  CHATGPT_MODELS,\n} from \"../constants/chatgpt-models\";\nimport type {\n  ChatgptEffortId,\n  ChatgptEffortOption,\n  ChatgptModelOption,\n  ChatgptModelSelectorProps,\n} from \"../types/chatgpt\";\n\nconst BURST_MS = 1000;\nconst THUMB_INSET = \"0.875rem\";\n\nconst PRO_EFFORT_ID: ChatgptEffortId = \"pro\";\n\nconst sliderClassName = [\n  \"[&_[data-slot=slider-track]]:bg-chatgpt-slider-track [&_[data-slot=slider-track]]:h-6\",\n  \"[&_[data-slot=slider-range]]:bg-chatgpt-slider-fill [&_[data-slot=slider-range]]:before:absolute [&_[data-slot=slider-range]]:before:inset-0 [&_[data-slot=slider-range]]:before:bg-(image:--chatgpt-pro-gradient) [&_[data-slot=slider-range]]:before:bg-size-[200%_100%] [&_[data-slot=slider-range]]:before:animate-chatgpt-flow motion-reduce:[&_[data-slot=slider-range]]:before:animate-none [&_[data-slot=slider-range]]:before:opacity-0 [&_[data-slot=slider-range]]:before:transition-opacity [&_[data-slot=slider-range]]:before:duration-500 group-data-[pro=true]/slider:[&_[data-slot=slider-range]]:before:opacity-100\",\n  \"[&_[data-slot=slider-thumb]]:transition-[inset-inline-start,left,scale] [&_[data-slot=slider-thumb]]:duration-300 [&_[data-slot=slider-thumb]]:ease-[cubic-bezier(0.22,1,0.36,1)] [&_[data-slot=slider-range]]:transition-[width,inset-inline-start] [&_[data-slot=slider-range]]:duration-300 [&_[data-slot=slider-range]]:ease-[cubic-bezier(0.22,1,0.36,1)]\",\n  \"group-data-[moving=true]/slider:[&_[data-slot=slider-thumb]]:transition-none group-data-[moving=true]/slider:[&_[data-slot=slider-range]]:transition-none motion-reduce:[&_[data-slot=slider-thumb]]:transition-none motion-reduce:[&_[data-slot=slider-range]]:transition-none\",\n  \"[&_[data-slot=slider-thumb]]:bg-chatgpt-slider-thumb [&_[data-slot=slider-thumb]]:size-7 [&_[data-slot=slider-thumb]]:border-0 [&_[data-slot=slider-thumb]]:shadow-[0_2px_8px_rgb(0_0_0/0.35)] [&_[data-slot=slider-thumb]]:ring-0 [&_[data-slot=slider-thumb]]:hover:ring-0 [&_[data-slot=slider-thumb]]:active:ring-0 [&_[data-slot=slider-thumb]]:focus-visible:ring-2 [&_[data-slot=slider-thumb]]:focus-visible:ring-chatgpt-focus/60\",\n].join(\" \");\n\nconst effortText = (\n  effort: ChatgptEffortOption,\n  model: ChatgptModelOption,\n  { compact }: { compact: boolean }\n) => {\n  if (effort.id !== PRO_EFFORT_ID) {\n    return <span>{effort.label}</span>;\n  }\n  const prefix =\n    compact && model.id === CHATGPT_LATEST_MODEL.id ? null : model.shortLabel;\n\n  return (\n    <span>\n      {prefix ? `${prefix} ` : null}\n      <span className=\"text-chatgpt-pro\">{effort.label}</span>\n    </span>\n  );\n};\n\nconst useElementHeight = () => {\n  const [element, setElement] = useState<HTMLDivElement | null>(null);\n  const [height, setHeight] = useState<number>();\n\n  useLayoutEffect(() => {\n    if (!element) {\n      return;\n    }\n    // offsetHeight ignores the popup's zoom-in scale, unlike getBoundingClientRect.\n    setHeight(element.offsetHeight);\n    const observer = new ResizeObserver(([entry]) => {\n      if (entry) {\n        setHeight((entry.target as HTMLElement).offsetHeight);\n      }\n    });\n    observer.observe(element);\n    return () => observer.disconnect();\n  }, [element]);\n\n  return [height, setElement] as const;\n};\n\nconst useElementWidth = () => {\n  const [element, setElement] = useState<HTMLSpanElement | null>(null);\n  const [width, setWidth] = useState<number>();\n\n  useLayoutEffect(() => {\n    if (!element) {\n      return;\n    }\n    setWidth(element.offsetWidth);\n    const observer = new ResizeObserver(([entry]) => {\n      if (entry) {\n        setWidth((entry.target as HTMLElement).offsetWidth);\n      }\n    });\n    observer.observe(element);\n    return () => observer.disconnect();\n  }, [element]);\n\n  return [width, setElement] as const;\n};\n\ninterface ModelListProps {\n  model: ChatgptModelOption[\"id\"];\n  models: readonly ChatgptModelOption[];\n  onSelect: (model: ChatgptModelOption | undefined) => void;\n}\n\nconst ModelList = ({ model, models, onSelect }: ModelListProps) => (\n  <ToggleGroup\n    aria-label=\"Model\"\n    className=\"w-full rounded-none\"\n    onValueChange={(next) => {\n      const chosen = models.find((item) => item.id === next[0]);\n      onSelect(chosen);\n    }}\n    orientation=\"vertical\"\n    spacing={0}\n    value={[model]}\n  >\n    {models.map((item) => (\n      <ToggleGroupItem\n        className=\"text-chatgpt-fg hover:bg-chatgpt-hover hover:text-chatgpt-fg focus-visible:ring-chatgpt-focus/35 dark:hover:bg-chatgpt-hover h-auto w-full justify-between gap-3 rounded-xl border-0 px-3 py-2 text-start text-[0.9375rem] leading-5 font-normal focus-visible:ring-2 aria-pressed:bg-transparent data-pressed:bg-transparent\"\n        key={item.id}\n        value={item.id}\n      >\n        <span className=\"flex flex-col\">\n          <span>{item.label}</span>\n          {item.description ? (\n            <span className=\"text-chatgpt-muted text-sm\">\n              {item.description}\n            </span>\n          ) : null}\n        </span>\n        {item.id === model ? (\n          <CheckIcon aria-hidden=\"true\" className=\"size-4\" strokeWidth={1.75} />\n        ) : null}\n      </ToggleGroupItem>\n    ))}\n  </ToggleGroup>\n);\n\nexport const ChatgptModelSelector = ({\n  className,\n  effort,\n  efforts = CHATGPT_EFFORTS,\n  model,\n  models = CHATGPT_MODELS,\n  onEffortChange,\n  onModelChange,\n  ...props\n}: ChatgptModelSelectorProps) => {\n  const [open, setOpen] = useState(false);\n  const [view, setView] = useState<\"effort\" | \"models\">(\"effort\");\n  const [effortHeight, effortRef] = useElementHeight();\n  const [modelsHeight, modelsRef] = useElementHeight();\n  const cardHeight = view === \"effort\" ? effortHeight : modelsHeight;\n\n  const [cardReady, setCardReady] = useState(false);\n  useEffect(() => {\n    if (!open) {\n      setCardReady(false);\n      return;\n    }\n    const frame = requestAnimationFrame(() =>\n      requestAnimationFrame(() => setCardReady(true))\n    );\n    return () => cancelAnimationFrame(frame);\n  }, [open]);\n\n  const [moving, setMoving] = useState(false);\n\n  const changeView = (next: \"effort\" | \"models\") => setView(next);\n\n  const selectedModel =\n    models.find((item) => item.id === model) ??\n    models[0] ??\n    CHATGPT_LATEST_MODEL;\n  const effortIndex = Math.max(\n    efforts.findIndex((item) => item.id === effort),\n    0\n  );\n  const selectedEffort =\n    efforts[effortIndex] ?? efforts[0] ?? CHATGPT_MEDIUM_EFFORT;\n  const isPro = selectedEffort.id === PRO_EFFORT_ID;\n  const lastIndex = Math.max(efforts.length - 1, 1);\n\n  const [closedLabelWidth, closedLabelRef] = useElementWidth();\n  const [openLabelWidth, openLabelRef] = useElementWidth();\n  const labelWidth = open ? openLabelWidth : closedLabelWidth;\n\n  const handleOpenChange = (next: boolean) => {\n    setOpen(next);\n    if (next) {\n      setView(\"effort\");\n    }\n  };\n\n  const [burstActive, setBurstActive] = useState(false);\n  useEffect(() => {\n    if (!burstActive) {\n      return;\n    }\n    const timer = window.setTimeout(() => setBurstActive(false), BURST_MS);\n    return () => window.clearTimeout(timer);\n  }, [burstActive]);\n\n  const handleSlide = (value: number | readonly number[]) => {\n    const index = Array.isArray(value) ? value[0] : value;\n    const next = efforts[index as number];\n    if (next && next.id !== effort) {\n      setBurstActive(next.id === PRO_EFFORT_ID);\n      onEffortChange?.(next.id);\n    }\n  };\n\n  return (\n    <Popover onOpenChange={handleOpenChange} open={open}>\n      <PopoverTrigger\n        render={\n          <Button\n            aria-label={`Thinking effort: ${selectedEffort.label}`}\n            className={cn(\n              \"group/chatgpt-model text-chatgpt-muted hover:bg-chatgpt-hover hover:text-chatgpt-fg focus-visible:ring-chatgpt-focus/35 aria-expanded:bg-chatgpt-hover aria-expanded:text-chatgpt-fg dark:hover:bg-chatgpt-hover h-9 gap-1.5 rounded-full border-0 bg-transparent px-4 text-[0.9375rem] leading-none font-normal transition-[background-color] duration-150 focus-visible:ring-2 motion-reduce:transition-none\",\n              className\n            )}\n            data-slot=\"chatgpt-model-selector\"\n            variant=\"ghost\"\n            {...props}\n          />\n        }\n      >\n        <span\n          className=\"relative block h-5 overflow-hidden transition-[width] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none\"\n          style={{ width: labelWidth }}\n        >\n          <span\n            className={cn(\n              \"absolute inset-y-0 left-0 flex items-center whitespace-nowrap transition-opacity duration-200 motion-reduce:transition-none\",\n              open ? \"opacity-0\" : \"opacity-100\"\n            )}\n            ref={closedLabelRef}\n          >\n            {effortText(selectedEffort, selectedModel, { compact: true })}\n          </span>\n          <span\n            aria-hidden={!open}\n            className={cn(\n              \"absolute inset-y-0 left-0 flex items-center whitespace-nowrap transition-opacity duration-200 motion-reduce:transition-none\",\n              open ? \"opacity-100\" : \"opacity-0\"\n            )}\n            ref={openLabelRef}\n          >\n            Thinking effort\n          </span>\n        </span>\n        <ChevronDownIcon\n          aria-hidden=\"true\"\n          className=\"text-chatgpt-muted size-4 transition-transform duration-150 group-aria-expanded/chatgpt-model:rotate-180 motion-reduce:transition-none\"\n          strokeWidth={1.75}\n        />\n      </PopoverTrigger>\n      <PopoverContent\n        align=\"end\"\n        className=\"font-chatgpt text-chatgpt-fg data-open:zoom-in-90 data-closed:zoom-out-95 w-64 gap-0 rounded-3xl bg-transparent p-0 shadow-none ring-0 duration-200 ease-[cubic-bezier(0.22,1,0.36,1)] data-closed:duration-[240ms] data-closed:ease-[cubic-bezier(0.4,0,0.2,1)] motion-reduce:duration-0\"\n        side=\"top\"\n        sideOffset={8}\n      >\n        <div className=\"relative grid\">\n          <div\n            aria-hidden=\"true\"\n            className={cn(\n              \"bg-chatgpt-popover shadow-chatgpt-menu absolute inset-x-0 bottom-0 rounded-3xl\",\n              cardReady &&\n                \"transition-[height] duration-[300ms] ease-[cubic-bezier(0.32,0.72,0,1)] motion-reduce:transition-none\"\n            )}\n            style={{ height: cardHeight ?? \"100%\" }}\n          />\n          <div\n            className={cn(\n              \"relative col-start-1 row-start-1 flex flex-col gap-2 self-end p-3 transition-[opacity,filter,translate] motion-reduce:transition-none\",\n              view === \"effort\"\n                ? \"blur-0 translate-y-0 opacity-100 delay-50 duration-[260ms] ease-[cubic-bezier(0.22,1,0.36,1)]\"\n                : \"pointer-events-none -translate-y-3 opacity-0 blur-[4px] duration-[180ms] ease-[cubic-bezier(0.4,0,0.2,1)]\"\n            )}\n            inert={view !== \"effort\"}\n            ref={effortRef}\n          >\n            <Button\n              aria-label={`Model: ${selectedModel.label}. Change model`}\n              className=\"text-chatgpt-fg hover:bg-chatgpt-hover hover:text-chatgpt-fg focus-visible:ring-chatgpt-focus/35 dark:hover:bg-chatgpt-hover mx-auto h-8 gap-1 rounded-full border-0 px-3 text-base leading-none font-normal focus-visible:ring-2\"\n              onClick={() => changeView(\"models\")}\n              variant=\"ghost\"\n            >\n              {effortText(selectedEffort, selectedModel, {\n                compact: false,\n              })}\n              <ChevronRightIcon\n                aria-hidden=\"true\"\n                className=\"text-chatgpt-muted size-3.5\"\n                strokeWidth={2}\n              />\n            </Button>\n            <div\n              className=\"group/slider relative px-0.5 pt-0.5 pb-1\"\n              data-moving={moving}\n              data-pro={isPro}\n              data-slot=\"chatgpt-effort-slider\"\n              onPointerCancel={() => setMoving(false)}\n              onPointerDown={() => setMoving(false)}\n              onPointerMove={(event) => {\n                if (event.buttons > 0) {\n                  setMoving(true);\n                }\n              }}\n              onPointerUp={() => setMoving(false)}\n            >\n              <Slider\n                className={sliderClassName}\n                aria-label=\"Thinking effort\"\n                max={efforts.length - 1}\n                min={0}\n                onValueChange={handleSlide}\n                step={1}\n                value={[effortIndex]}\n              />\n              <div\n                aria-hidden=\"true\"\n                className=\"pointer-events-none absolute inset-x-0.5 top-0.5 bottom-1 z-10 transition-opacity duration-500 group-data-[pro=true]/slider:opacity-0 motion-reduce:transition-none\"\n              >\n                {efforts.map((item, index) =>\n                  index === effortIndex ? null : (\n                    <span\n                      className={cn(\n                        \"absolute top-1/2 size-1.5 -translate-x-1/2 -translate-y-1/2 rounded-full transition-colors duration-300\",\n                        index < effortIndex\n                          ? \"bg-chatgpt-slider-dot-fill\"\n                          : \"bg-chatgpt-slider-dot\"\n                      )}\n                      key={item.id}\n                      style={{\n                        left: `calc(${THUMB_INSET} + (100% - 2 * ${THUMB_INSET}) * ${index / lastIndex})`,\n                      }}\n                    />\n                  )\n                )}\n              </div>\n              <div\n                aria-hidden=\"true\"\n                className=\"pointer-events-none absolute inset-x-0.5 top-0.5 bottom-1 z-10 opacity-0 transition-opacity duration-500 group-data-[pro=true]/slider:opacity-100 motion-reduce:transition-none\"\n              >\n                {CHATGPT_PRO_TWINKLES.map((star) => (\n                  <span\n                    className=\"animate-chatgpt-twinkle absolute rounded-full bg-white opacity-0 shadow-[0_0_4px_1px_rgb(255_255_255/0.7)] motion-reduce:animate-none motion-reduce:opacity-60\"\n                    key={`${star.x}:${star.y}`}\n                    style={{\n                      animationDelay: `${star.delay}ms`,\n                      animationDuration: `${star.duration}ms`,\n                      height: star.size,\n                      left: `${star.x}%`,\n                      top: `${star.y}%`,\n                      width: star.size,\n                    }}\n                  />\n                ))}\n              </div>\n              {isPro && burstActive ? (\n                <div\n                  aria-hidden=\"true\"\n                  className=\"pointer-events-none absolute inset-x-0.5 top-0.5 bottom-1 z-10\"\n                >\n                  <div\n                    className=\"absolute size-0\"\n                    style={{\n                      left: `calc(100% - ${THUMB_INSET})`,\n                      top: \"50%\",\n                    }}\n                  >\n                    {CHATGPT_PRO_SPARKLES.map((sparkle) => (\n                      <span\n                        className=\"animate-chatgpt-burst bg-chatgpt-pro absolute -top-px -left-px rounded-full opacity-0 motion-reduce:hidden\"\n                        key={`${sparkle.x}:${sparkle.y}`}\n                        style={\n                          {\n                            \"--burst-x\": `${sparkle.x}px`,\n                            \"--burst-y\": `${sparkle.y}px`,\n                            animationDelay: `${sparkle.delay}ms`,\n                            height: sparkle.size,\n                            width: sparkle.size,\n                          } as CSSProperties\n                        }\n                      />\n                    ))}\n                  </div>\n                </div>\n              ) : null}\n            </div>\n          </div>\n          <div\n            className={cn(\n              \"relative col-start-1 row-start-1 flex flex-col gap-2 self-end p-3 transition-[opacity,filter,translate] motion-reduce:transition-none\",\n              view === \"models\"\n                ? \"blur-0 translate-y-0 opacity-100 delay-50 duration-[260ms] ease-[cubic-bezier(0.22,1,0.36,1)]\"\n                : \"pointer-events-none translate-y-3 opacity-0 blur-[4px] duration-[180ms] ease-[cubic-bezier(0.4,0,0.2,1)]\"\n            )}\n            inert={view !== \"models\"}\n            ref={modelsRef}\n          >\n            <ModelList\n              model={selectedModel.id}\n              models={models}\n              onSelect={(next) => {\n                if (next) {\n                  onModelChange?.(next.id);\n                }\n                changeView(\"effort\");\n              }}\n            />\n          </div>\n        </div>\n      </PopoverContent>\n    </Popover>\n  );\n};\n",
      "type": "registry:component",
      "target": "components/chatgpt/components/chatgpt-model-selector.tsx"
    },
    {
      "path": "registry/notra/chatgpt/components/chatgpt-reasoning.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"cn\";\nimport { useState } from \"react\";\n\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Collapsible,\n  CollapsibleContent,\n  CollapsibleTrigger,\n} from \"@/components/ui/collapsible\";\n\nimport type { ChatgptReasoningProps } from \"../types/chatgpt\";\nimport { ChatgptChevronIcon } from \"./chatgpt-icons\";\n\nconst traceEnterClassName =\n  \"transition-[opacity,translate] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none starting:-translate-y-2 starting:opacity-0\";\n\nexport const ChatgptReasoning = ({\n  children,\n  className,\n  complete = true,\n  defaultOpen,\n  onOpenChange,\n  open: openProp,\n  search,\n  seconds,\n  ...props\n}: ChatgptReasoningProps) => {\n  const [internalOpen, setInternalOpen] = useState(defaultOpen ?? !complete);\n  const [previousComplete, setPreviousComplete] = useState(complete);\n\n  if (previousComplete !== complete) {\n    setPreviousComplete(complete);\n    setInternalOpen(!complete);\n  }\n\n  const label = `Worked for ${seconds}s`;\n  const rootClassName = cn(\n    \"font-chatgpt text-chatgpt-muted text-base leading-7 font-normal\",\n    className\n  );\n\n  if (!(children || search || children === 0 || search === 0)) {\n    return (\n      <Collapsible\n        className={rootClassName}\n        data-slot=\"chatgpt-reasoning\"\n        {...props}\n      >\n        {label}\n      </Collapsible>\n    );\n  }\n\n  return (\n    <Collapsible\n      className={rootClassName}\n      data-slot=\"chatgpt-reasoning\"\n      onOpenChange={(next, details) => {\n        setInternalOpen(next);\n        onOpenChange?.(next, details);\n      }}\n      open={openProp ?? internalOpen}\n      {...props}\n    >\n      <CollapsibleTrigger\n        render={\n          <Button\n            className=\"text-chatgpt-muted hover:text-chatgpt-muted aria-expanded:text-chatgpt-muted focus-visible:ring-chatgpt-focus/35 h-auto gap-1 rounded-sm border-0 bg-transparent p-0 text-start text-base leading-7 font-normal hover:bg-transparent focus-visible:ring-2 aria-expanded:bg-transparent dark:hover:bg-transparent [&[data-panel-open]>svg]:rotate-180\"\n            variant=\"ghost\"\n          />\n        }\n      >\n        <span>{label}</span>\n        <ChatgptChevronIcon className=\"size-4 shrink-0 transition-transform duration-200 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none\" />\n      </CollapsibleTrigger>\n      <CollapsibleContent className=\"h-(--collapsible-panel-height) overflow-hidden transition-[height,opacity] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:h-0 data-ending-style:opacity-0 data-starting-style:h-0 data-starting-style:opacity-0 motion-reduce:transition-opacity\">\n        <div className=\"mt-2 flex flex-col items-start gap-2.5 font-normal\">\n          {children && <div className={traceEnterClassName}>{children}</div>}\n          {search && (\n            <div\n              className={cn(\n                traceEnterClassName,\n                \"delay-75 motion-reduce:delay-0\"\n              )}\n            >\n              {search}\n            </div>\n          )}\n        </div>\n      </CollapsibleContent>\n    </Collapsible>\n  );\n};\n",
      "type": "registry:component",
      "target": "components/chatgpt/components/chatgpt-reasoning.tsx"
    },
    {
      "path": "registry/notra/chatgpt/components/chatgpt-search.tsx",
      "content": "import { cn } from \"cn\";\n\nimport { AvatarGroup } from \"@/components/ui/avatar\";\nimport { Button } from \"@/components/ui/button\";\n\nimport type { ChatgptSearchProps } from \"../types/chatgpt\";\nimport { ChatgptFavicon } from \"./chatgpt-favicon\";\nimport { ChatgptSearchIcon } from \"./chatgpt-icons\";\n\nconst STACK_LIMIT = 3;\n\nexport const ChatgptSearch = ({\n  className,\n  sites,\n  websites,\n  ...props\n}: ChatgptSearchProps) => {\n  const noun = websites === 1 ? \"website\" : \"websites\";\n\n  return (\n    <Button\n      className={cn(\n        \"font-chatgpt text-chatgpt-muted hover:text-chatgpt-fg focus-visible:ring-chatgpt-focus/35 aria-expanded:text-chatgpt-fg h-auto gap-1.5 rounded-sm border-0 p-0 text-sm leading-5 font-normal transition-colors hover:bg-transparent focus-visible:ring-2 aria-expanded:bg-transparent dark:hover:bg-transparent\",\n        className\n      )}\n      data-slot=\"chatgpt-search\"\n      variant=\"ghost\"\n      {...props}\n    >\n      {sites && sites.length > 0 ? (\n        <AvatarGroup\n          aria-hidden=\"true\"\n          className=\"*:data-[slot=avatar]:ring-chatgpt-bg -space-x-1.5 *:data-[slot=avatar]:ring-2\"\n        >\n          {sites.slice(0, STACK_LIMIT).map((site) => (\n            <ChatgptFavicon\n              className=\"size-5\"\n              domain={site.domain}\n              key={site.domain}\n              src={site.favicon}\n            />\n          ))}\n        </AvatarGroup>\n      ) : (\n        <ChatgptSearchIcon className=\"text-chatgpt-search size-4\" />\n      )}\n      <span>{`Searched ${websites} ${noun}`}</span>\n    </Button>\n  );\n};\n",
      "type": "registry:component",
      "target": "components/chatgpt/components/chatgpt-search.tsx"
    },
    {
      "path": "registry/notra/chatgpt/components/chatgpt-thinking.tsx",
      "content": "import { cn } from \"cn\";\n\nimport { Shimmer } from \"../../shimmer/components/shimmer\";\nimport type { ChatgptThinkingProps } from \"../types/chatgpt\";\n\nexport const ChatgptThinking = ({\n  className,\n  label = \"Thinking\",\n  ...props\n}: ChatgptThinkingProps) => (\n  <div\n    aria-live=\"polite\"\n    className={cn(\n      \"font-chatgpt text-chatgpt-muted text-base leading-7 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none starting:opacity-0\",\n      className\n    )}\n    data-slot=\"chatgpt-thinking\"\n    role=\"status\"\n    {...props}\n  >\n    <Shimmer className=\"font-medium [--shimmer-highlight:var(--chatgpt-fg)]\">\n      {label}\n    </Shimmer>\n  </div>\n);\n",
      "type": "registry:component",
      "target": "components/chatgpt/components/chatgpt-thinking.tsx"
    },
    {
      "path": "registry/notra/chatgpt/components/chatgpt-app-call.tsx",
      "content": "import { cn } from \"cn\";\n\nimport type { ChatgptAppCallProps } from \"../types/chatgpt\";\n\nexport const ChatgptAppCall = ({\n  className,\n  label = \"Used\",\n  logo,\n  name,\n  ...props\n}: ChatgptAppCallProps) => (\n  <div\n    className={cn(\n      \"font-chatgpt text-chatgpt-muted flex items-center gap-2 text-base leading-7\",\n      className\n    )}\n    data-slot=\"chatgpt-app-call\"\n    {...props}\n  >\n    {logo && (\n      <span className=\"flex size-5 shrink-0 items-center justify-center overflow-hidden rounded-md [&_img]:size-full [&_svg]:size-full\">\n        {logo}\n      </span>\n    )}\n    <span>\n      {label} <span className=\"text-chatgpt-fg font-medium\">{name}</span>\n    </span>\n  </div>\n);\n",
      "type": "registry:component",
      "target": "components/chatgpt/components/chatgpt-app-call.tsx"
    },
    {
      "path": "registry/notra/chatgpt/components/chatgpt-thread.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"cn\";\nimport { ArrowDownIcon } from \"lucide-react\";\nimport { useEffect, useRef, useState } from \"react\";\n\nimport { Button } from \"@/components/ui/button\";\nimport { ScrollArea } from \"@/components/ui/scroll-area\";\n\nimport { CHATGPT_SCROLL_STICK_THRESHOLD_PX } from \"../constants/chatgpt\";\nimport type { ChatgptThreadProps } from \"../types/chatgpt\";\n\nconst distanceFromBottom = (element: HTMLElement) =>\n  element.scrollHeight - element.scrollTop - element.clientHeight;\n\nconst getViewport = (root: HTMLDivElement | null) =>\n  root?.querySelector<HTMLDivElement>(\"[data-slot=scroll-area-viewport]\") ??\n  null;\n\nexport const ChatgptThread = ({\n  autoScroll = true,\n  children,\n  className,\n  footer,\n  ...props\n}: ChatgptThreadProps) => {\n  const scrollAreaRef = useRef<HTMLDivElement>(null);\n  const contentRef = useRef<HTMLDivElement>(null);\n  const stickRef = useRef(true);\n  const [atBottom, setAtBottom] = useState(true);\n\n  useEffect(() => {\n    const viewport = getViewport(scrollAreaRef.current);\n    if (!viewport) {\n      return;\n    }\n    const handleScroll = () => {\n      const nearBottom =\n        distanceFromBottom(viewport) <= CHATGPT_SCROLL_STICK_THRESHOLD_PX;\n      stickRef.current = nearBottom;\n      setAtBottom(nearBottom);\n    };\n    setAtBottom(\n      distanceFromBottom(viewport) <= CHATGPT_SCROLL_STICK_THRESHOLD_PX\n    );\n    viewport.addEventListener(\"scroll\", handleScroll, { passive: true });\n    return () => viewport.removeEventListener(\"scroll\", handleScroll);\n  }, []);\n\n  useEffect(() => {\n    const viewport = getViewport(scrollAreaRef.current);\n    const content = contentRef.current;\n    if (!(autoScroll && viewport && content)) {\n      return;\n    }\n    const observer = new ResizeObserver(() => {\n      if (stickRef.current) {\n        viewport.scrollTop = viewport.scrollHeight;\n      }\n      setAtBottom(\n        distanceFromBottom(viewport) <= CHATGPT_SCROLL_STICK_THRESHOLD_PX\n      );\n    });\n    observer.observe(content);\n    observer.observe(viewport);\n    return () => observer.disconnect();\n  }, [autoScroll]);\n\n  const scrollToBottom = () => {\n    const viewport = getViewport(scrollAreaRef.current);\n    if (!viewport) {\n      return;\n    }\n    stickRef.current = true;\n    const reduceMotion = window.matchMedia(\n      \"(prefers-reduced-motion: reduce)\"\n    ).matches;\n    viewport.scrollTo({\n      behavior: reduceMotion ? \"auto\" : \"smooth\",\n      top: viewport.scrollHeight,\n    });\n  };\n\n  return (\n    <div\n      className={cn(\n        \"bg-chatgpt-bg font-chatgpt text-chatgpt-fg relative flex min-h-0 flex-col antialiased\",\n        className\n      )}\n      data-slot=\"chatgpt-thread\"\n      {...props}\n    >\n      <div className=\"relative flex min-h-0 flex-1 flex-col\">\n        <ScrollArea\n          className=\"min-h-0 flex-1 overscroll-contain\"\n          ref={scrollAreaRef}\n        >\n          <div\n            className=\"mx-auto flex w-full max-w-3xl flex-col gap-10 px-4 py-8\"\n            ref={contentRef}\n          >\n            {children}\n          </div>\n        </ScrollArea>\n        {!atBottom && (\n          <Button\n            aria-label=\"Scroll to bottom\"\n            className=\"border-chatgpt-border bg-chatgpt-bg text-chatgpt-fg hover:bg-chatgpt-hover hover:text-chatgpt-fg focus-visible:ring-chatgpt-focus/35 dark:bg-chatgpt-bg dark:hover:bg-chatgpt-hover absolute bottom-3 left-1/2 size-8 -translate-x-1/2 rounded-full shadow-sm transition-opacity duration-150 focus-visible:ring-2 motion-reduce:transition-none starting:opacity-0\"\n            onClick={scrollToBottom}\n            size=\"icon\"\n            variant=\"ghost\"\n          >\n            <ArrowDownIcon className=\"size-4\" />\n          </Button>\n        )}\n      </div>\n      {footer && (\n        <div className=\"mx-auto w-full max-w-3xl px-4 pb-4\">{footer}</div>\n      )}\n    </div>\n  );\n};\n",
      "type": "registry:component",
      "target": "components/chatgpt/components/chatgpt-thread.tsx"
    },
    {
      "path": "registry/notra/chatgpt/types/chatgpt.ts",
      "content": "import type { ComponentProps, ReactNode } from \"react\";\n\nimport type { Avatar } from \"@/components/ui/avatar\";\nimport type { Button } from \"@/components/ui/button\";\nimport type { Collapsible } from \"@/components/ui/collapsible\";\nimport type { Sheet } from \"@/components/ui/sheet\";\n\nexport type ChatgptModelId =\n  | \"latest\"\n  | \"sol\"\n  | \"terra\"\n  | \"luna\"\n  | \"gpt-5.5\"\n  | \"gpt-5.4\"\n  | \"gpt-5.4-mini\";\n\nexport type ChatgptEffortId =\n  | \"instant\"\n  | \"medium\"\n  | \"high\"\n  | \"extra-high\"\n  | \"pro\";\n\nexport type ChatgptMessageRole = \"user\" | \"assistant\";\n\nexport interface ChatgptModelOption {\n  description?: string;\n  id: ChatgptModelId;\n  label: string;\n  shortLabel: string;\n}\n\nexport interface ChatgptEffortOption {\n  id: ChatgptEffortId;\n  label: string;\n}\n\nexport interface ChatgptActivitySite {\n  domain: string;\n  favicon?: string;\n  label: string;\n}\n\nexport interface ChatgptActivitySource {\n  domain: string;\n  favicon?: string;\n  href?: string;\n  id: string;\n  publisher: string;\n  snippet: string;\n  timeLabel: string;\n  title: string;\n}\n\nexport interface ChatgptThreadProps extends ComponentProps<\"div\"> {\n  autoScroll?: boolean;\n  footer?: ReactNode;\n}\n\nexport interface ChatgptMessageProps extends ComponentProps<\"div\"> {\n  actions?: ReactNode;\n  from: ChatgptMessageRole;\n  reasoning?: ReactNode;\n}\n\nexport interface ChatgptReasoningProps extends Omit<\n  ComponentProps<typeof Collapsible>,\n  \"children\"\n> {\n  children?: ReactNode;\n  complete?: boolean;\n  search?: ReactNode;\n  seconds: number;\n}\n\nexport interface ChatgptSearchProps extends Omit<\n  ComponentProps<typeof Button>,\n  \"children\"\n> {\n  sites?: readonly ChatgptActivitySite[];\n  websites: number;\n}\n\nexport interface ChatgptActivityProps extends Omit<\n  ComponentProps<typeof Sheet>,\n  \"children\"\n> {\n  className?: string;\n  seconds: number;\n  sites: readonly ChatgptActivitySite[];\n  sourceCount?: number;\n  sources: readonly ChatgptActivitySource[];\n  websites: number;\n}\n\nexport interface ChatgptFaviconProps extends Omit<\n  ComponentProps<typeof Avatar>,\n  \"children\"\n> {\n  domain: string;\n  src?: string;\n}\n\nexport interface ChatgptThinkingProps extends ComponentProps<\"div\"> {\n  label?: ReactNode;\n}\n\nexport interface ChatgptAppCallProps extends ComponentProps<\"div\"> {\n  label?: ReactNode;\n  logo?: ReactNode;\n  name: ReactNode;\n}\n\nexport interface ChatgptActionsProps extends ComponentProps<\"div\"> {\n  onMore?: () => void;\n  onRedo?: () => void;\n  onShare?: () => void;\n  text: string;\n}\n\nexport interface ChatgptActionButtonProps extends ComponentProps<\n  typeof Button\n> {\n  label: string;\n}\n\nexport interface ChatgptModelSelectorProps extends Omit<\n  ComponentProps<typeof Button>,\n  \"children\"\n> {\n  effort: ChatgptEffortId;\n  efforts?: readonly ChatgptEffortOption[];\n  model: ChatgptModelId;\n  models?: readonly ChatgptModelOption[];\n  onEffortChange?: (effort: ChatgptEffortId) => void;\n  onModelChange?: (model: ChatgptModelId) => void;\n}\n\nexport interface ChatgptComposerProps extends Omit<\n  ComponentProps<\"form\">,\n  \"onSubmit\"\n> {\n  busy?: boolean;\n  defaultEffort?: ChatgptEffortId;\n  defaultModel?: ChatgptModelId;\n  effort?: ChatgptEffortId;\n  efforts?: readonly ChatgptEffortOption[];\n  model?: ChatgptModelId;\n  models?: readonly ChatgptModelOption[];\n  onEffortChange?: (effort: ChatgptEffortId) => void;\n  onModelChange?: (model: ChatgptModelId) => void;\n  onSend?: (text: string) => void;\n  onStop?: () => void;\n  placeholder?: string;\n}\n\nexport interface ChatgptStorySearch {\n  sites: readonly ChatgptActivitySite[];\n  sourceCount?: number;\n  sources: readonly ChatgptActivitySource[];\n  websites: number;\n}\n\nexport type ChatgptStoryReasoningStep =\n  | { kind: \"search\"; search: ChatgptStorySearch }\n  | { kind: \"text\"; muted?: boolean; text: string };\n\nexport interface ChatgptStoryReasoning {\n  search?: ChatgptStorySearch;\n  seconds: number;\n  steps?: readonly ChatgptStoryReasoningStep[];\n  text: string;\n}\n\nexport interface ChatgptStoryMessage {\n  from: ChatgptMessageRole;\n  id: string;\n  reasoning?: ChatgptStoryReasoning;\n  text: string;\n}\n\nexport interface ChatgptPlayback {\n  completeIds: ReadonlySet<string>;\n  messages: ChatgptStoryMessage[];\n  play: () => Promise<void>;\n  playing: boolean;\n  send: (text: string, reply: string) => Promise<void>;\n  stop: () => void;\n  thinking: boolean;\n}\n\nexport interface ChatgptTextSegment {\n  offset: number;\n  text: string;\n}\n\nexport interface ChatgptSourceChipProps extends Omit<\n  ComponentProps<\"a\">,\n  \"children\" | \"href\"\n> {\n  sources: readonly ChatgptActivitySource[];\n}\n\nexport type ChatgptPlaybackPhase =\n  | { status: \"idle\" }\n  | { status: \"playing\"; source: \"script\" | \"send\"; thinking: boolean };\n",
      "type": "registry:lib",
      "target": "components/chatgpt/types/chatgpt.ts"
    },
    {
      "path": "registry/notra/chatgpt/constants/chatgpt.ts",
      "content": "export const CHATGPT_TOOLTIP_DELAY_MS = 200;\n\nexport const CHATGPT_COPIED_RESET_MS = 1500;\n\nexport const CHATGPT_VISIBLE_SITES = 3;\n\nexport const CHATGPT_SCROLL_STICK_THRESHOLD_PX = 48;\n\nexport const CHATGPT_FAVICON_URL = \"https://www.google.com/s2/favicons\";\n\nexport const CHATGPT_PLAYBACK_TIMING = {\n  afterAssistantMs: 480,\n  afterInstantMs: 180,\n  afterUserMs: 420,\n  reducedMaxMs: 70,\n  thinkingMs: 1100,\n  thinkingWithReasoningMs: 1600,\n  tokenMs: 28,\n} as const;\n\nexport const CHATGPT_PRO_SPARKLES = [\n  { delay: 0, size: 4, x: -30, y: -26 },\n  { delay: 30, size: 3, x: 0, y: -34 },\n  { delay: 10, size: 4, x: 30, y: -24 },\n  { delay: 50, size: 3, x: -38, y: 2 },\n  { delay: 20, size: 3, x: 38, y: 4 },\n  { delay: 40, size: 4, x: -28, y: 26 },\n  { delay: 0, size: 3, x: 2, y: 34 },\n  { delay: 60, size: 4, x: 28, y: 26 },\n  { delay: 80, size: 2, x: -18, y: -14 },\n  { delay: 70, size: 2, x: 18, y: 16 },\n] as const;\n\nexport const CHATGPT_PRO_TWINKLES = [\n  { delay: 0, duration: 3000, size: 2, x: 6, y: 32 },\n  { delay: 900, duration: 3600, size: 3, x: 15, y: 66 },\n  { delay: 400, duration: 2800, size: 2, x: 24, y: 28 },\n  { delay: 1500, duration: 3400, size: 2, x: 33, y: 60 },\n  { delay: 700, duration: 3200, size: 3, x: 43, y: 36 },\n  { delay: 2100, duration: 3800, size: 2, x: 52, y: 70 },\n  { delay: 300, duration: 3000, size: 2, x: 61, y: 30 },\n  { delay: 1200, duration: 3500, size: 3, x: 70, y: 62 },\n  { delay: 1800, duration: 2900, size: 2, x: 79, y: 34 },\n  { delay: 600, duration: 3300, size: 2, x: 87, y: 64 },\n] as const;\n\nexport const CHATGPT_CHIP_HOVER_OPEN_DELAY_MS = 150;\n\nexport const CHATGPT_CHIP_HOVER_CLOSE_DELAY_MS = 120;\n",
      "type": "registry:lib",
      "target": "components/chatgpt/constants/chatgpt.ts"
    },
    {
      "path": "registry/notra/chatgpt/constants/chatgpt-models.ts",
      "content": "import type {\n  ChatgptEffortId,\n  ChatgptEffortOption,\n  ChatgptModelId,\n  ChatgptModelOption,\n} from \"../types/chatgpt\";\n\nexport const CHATGPT_DEFAULT_MODEL: ChatgptModelId = \"latest\";\n\nexport const CHATGPT_DEFAULT_EFFORT: ChatgptEffortId = \"medium\";\n\nexport const CHATGPT_LATEST_MODEL: ChatgptModelOption = {\n  id: \"latest\",\n  label: \"Latest\",\n  shortLabel: \"6\",\n};\n\nexport const CHATGPT_MEDIUM_EFFORT: ChatgptEffortOption = {\n  id: \"medium\",\n  label: \"Medium\",\n};\n\nexport const CHATGPT_EFFORTS: readonly ChatgptEffortOption[] = [\n  { id: \"instant\", label: \"Instant\" },\n  CHATGPT_MEDIUM_EFFORT,\n  { id: \"high\", label: \"High\" },\n  { id: \"extra-high\", label: \"Extra High\" },\n  { id: \"pro\", label: \"Pro\" },\n];\n\nexport const CHATGPT_MODELS: readonly ChatgptModelOption[] = [\n  CHATGPT_LATEST_MODEL,\n  { id: \"sol\", label: \"GPT-5.6 Sol\", shortLabel: \"5.6\" },\n  {\n    description: \"Leaving on October 14\",\n    id: \"gpt-5.5\",\n    label: \"GPT-5.5\",\n    shortLabel: \"5.5\",\n  },\n];\n",
      "type": "registry:lib",
      "target": "components/chatgpt/constants/chatgpt-models.ts"
    },
    {
      "path": "registry/notra/chatgpt/constants/chatgpt-story.ts",
      "content": "import type {\n  ChatgptActivitySite,\n  ChatgptActivitySource,\n  ChatgptStoryMessage,\n  ChatgptStoryReasoningStep,\n  ChatgptStorySearch,\n} from \"../types/chatgpt\";\n\nexport const CHATGPT_STORY_SITES: ChatgptActivitySite[] = [\n  { domain: \"reuters.com\", label: \"www.reuters.com\" },\n  { domain: \"theguardian.com\", label: \"www.theguardian.com\" },\n  { domain: \"apnews.com\", label: \"apnews.com\" },\n  { domain: \"bbc.com\", label: \"www.bbc.com\" },\n  { domain: \"ft.com\", label: \"www.ft.com\" },\n  { domain: \"spiegel.de\", label: \"www.spiegel.de\" },\n];\n\nexport const CHATGPT_STORY_SOURCES: ChatgptActivitySource[] = [\n  {\n    domain: \"reuters.com\",\n    id: \"src-1\",\n    publisher: \"Reuters\",\n    snippet:\n      \"Foreign ministers in Ottawa said a coordinated package remains on the table after overnight consultations.\",\n    timeLabel: \"Today — 3 hours ago\",\n    title: \"G7 ministers weigh new sanctions as Geneva talks stall\",\n  },\n  {\n    domain: \"apnews.com\",\n    id: \"src-2\",\n    publisher: \"AP News\",\n    snippet:\n      \"Negotiators left the session without a timetable, citing unresolved security guarantees.\",\n    timeLabel: \"Today — 4 hours ago\",\n    title: \"Ceasefire talks in Geneva hit another delay\",\n  },\n  {\n    domain: \"theguardian.com\",\n    id: \"src-3\",\n    publisher: \"The Guardian\",\n    snippet:\n      \"Premiums jumped again as operators rerouted tankers away from the strait.\",\n    timeLabel: \"Today — 5 hours ago\",\n    title: \"Shipping insurers raise rates after Hormuz disruption\",\n  },\n  {\n    domain: \"ft.com\",\n    id: \"src-4\",\n    publisher: \"Financial Times\",\n    snippet: \"The DAX tracked overnight gains in megacap software and chips.\",\n    timeLabel: \"Today — 6 hours ago\",\n    title: \"US tech earnings lift European markets at the open\",\n  },\n  {\n    domain: \"spiegel.de\",\n    id: \"src-5\",\n    publisher: \"Spiegel\",\n    snippet:\n      \"Parliamentary leaders want tighter fiscal language ahead of this week’s Bundestag session.\",\n    timeLabel: \"Today — 7 hours ago\",\n    title: \"Union demands changes before growth package vote\",\n  },\n  {\n    domain: \"bbc.com\",\n    id: \"src-6\",\n    publisher: \"BBC\",\n    snippet:\n      \"Member states are still split on how national regulators should share oversight.\",\n    timeLabel: \"Today — 8 hours ago\",\n    title: \"EU officials outline next steps on AI Act enforcement\",\n  },\n];\n\nexport const CHATGPT_STORY_SEARCH: ChatgptStorySearch = {\n  sites: CHATGPT_STORY_SITES,\n  sourceCount: 91,\n  sources: CHATGPT_STORY_SOURCES,\n  websites: 6,\n};\n\nconst CHATGPT_STORY_SEARCH_NEWS: ChatgptStorySearch = {\n  sites: CHATGPT_STORY_SITES.slice(0, 3),\n  sourceCount: 42,\n  sources: CHATGPT_STORY_SOURCES.slice(0, 3),\n  websites: 3,\n};\n\nconst CHATGPT_STORY_SEARCH_MARKETS: ChatgptStorySearch = {\n  sites: CHATGPT_STORY_SITES.slice(3, 5),\n  sourceCount: 49,\n  sources: CHATGPT_STORY_SOURCES.slice(3, 5),\n  websites: 2,\n};\n\nconst CHATGPT_STORY_REASONING_STEPS: ChatgptStoryReasoningStep[] = [\n  {\n    kind: \"text\",\n    text: \"Sure. I'll pull together the biggest news from **today, Monday, August 17, 2026**.\",\n  },\n  { kind: \"search\", search: CHATGPT_STORY_SEARCH_NEWS },\n  { kind: \"text\", muted: true, text: \"Markets and economy\" },\n  { kind: \"search\", search: CHATGPT_STORY_SEARCH_MARKETS },\n];\n\nexport const CHATGPT_STORY_THREAD: ChatgptStoryMessage[] = [\n  { from: \"user\", id: \"u-1\", text: \"What are the biggest news stories today?\" },\n  {\n    from: \"assistant\",\n    id: \"a-1\",\n    reasoning: {\n      search: CHATGPT_STORY_SEARCH,\n      seconds: 21,\n      steps: CHATGPT_STORY_REASONING_STEPS,\n      text: \"Sure. I'll pull together the biggest news from **today, Monday, August 17, 2026**.\",\n    },\n    text: \"Here's where things stand on **Monday, August 17, 2026**:\\n\\nG7 foreign ministers are weighing new sanctions in Ottawa while the Geneva ceasefire talks stall again. {{src-1,src-2}} Markets opened higher after strong US tech earnings. {{src-4}}\",\n  },\n];\n\nexport const CHATGPT_STORY_REPLIES = [\n  \"Got it. Let me know when you want to keep going.\",\n  \"Great. I'm here.\",\n  \"Sure. What's next?\",\n] as const;\n\nexport const CHATGPT_SMALL_TALK: ChatgptStoryMessage[] = [\n  { from: \"user\", id: \"st-u-1\", text: \"how r you?\" },\n  {\n    from: \"assistant\",\n    id: \"st-a-1\",\n    text: \"I'm good 😭 ready when you are. What's up with you?\",\n  },\n];\n",
      "type": "registry:lib",
      "target": "components/chatgpt/constants/chatgpt-story.ts"
    },
    {
      "path": "registry/notra/chatgpt/hooks/use-chatgpt-playback.ts",
      "content": "\"use client\";\n\nimport { useCallback, useEffect, useRef, useState } from \"react\";\n\nimport { CHATGPT_PLAYBACK_TIMING } from \"../constants/chatgpt\";\nimport type {\n  ChatgptPlayback,\n  ChatgptPlaybackPhase,\n  ChatgptStoryMessage,\n} from \"../types/chatgpt\";\n\nconst WHITESPACE_PATTERN = /(\\s+)/;\n\nconst REDUCED_MOTION_QUERY = \"(prefers-reduced-motion: reduce)\";\n\nconst wait = (ms: number) =>\n  new Promise<void>((resolve) => {\n    window.setTimeout(resolve, ms);\n  });\n\nconst prefersReducedMotion = () =>\n  window.matchMedia(REDUCED_MOTION_QUERY).matches;\n\nconst idsOf = (script: readonly ChatgptStoryMessage[]) =>\n  new Set(script.map((item) => item.id));\n\nexport const useChatgptPlayback = (\n  script: readonly ChatgptStoryMessage[]\n): ChatgptPlayback => {\n  const [messages, setMessages] = useState<ChatgptStoryMessage[]>(() => [\n    ...script,\n  ]);\n  const [completeIds, setCompleteIds] = useState<ReadonlySet<string>>(() =>\n    idsOf(script)\n  );\n  const [phase, setPhase] = useState<ChatgptPlaybackPhase>({ status: \"idle\" });\n  const phaseRef = useRef(phase);\n  const enter = useCallback((next: ChatgptPlaybackPhase) => {\n    phaseRef.current = next;\n    setPhase(next);\n  }, []);\n  const setThinking = useCallback(\n    (thinking: boolean) => {\n      const current = phaseRef.current;\n      if (current.status === \"playing\") {\n        enter({ ...current, thinking });\n      }\n    },\n    [enter]\n  );\n  const runRef = useRef(0);\n\n  const markComplete = useCallback((id: string) => {\n    setCompleteIds((current) => new Set(current).add(id));\n  }, []);\n\n  const stop = useCallback(() => {\n    runRef.current += 1;\n    setMessages([...script]);\n    setCompleteIds(idsOf(script));\n    enter({ status: \"idle\" });\n  }, [enter, script]);\n\n  const playTurn = useCallback(\n    async (message: ChatgptStoryMessage, alive: () => boolean) => {\n      const reduced = prefersReducedMotion();\n      const delay = (ms: number) =>\n        wait(reduced ? Math.min(ms, CHATGPT_PLAYBACK_TIMING.reducedMaxMs) : ms);\n\n      if (message.from === \"user\") {\n        setMessages((current) => [...current, message]);\n        markComplete(message.id);\n        await delay(CHATGPT_PLAYBACK_TIMING.afterUserMs);\n        return;\n      }\n\n      setThinking(true);\n      await delay(\n        message.reasoning\n          ? CHATGPT_PLAYBACK_TIMING.thinkingWithReasoningMs\n          : CHATGPT_PLAYBACK_TIMING.thinkingMs\n      );\n      if (!alive()) {\n        return;\n      }\n      setThinking(false);\n\n      if (reduced) {\n        setMessages((current) => [...current, message]);\n        markComplete(message.id);\n        await delay(CHATGPT_PLAYBACK_TIMING.afterInstantMs);\n        return;\n      }\n\n      setMessages((current) => [...current, { ...message, text: \"\" }]);\n      let text = \"\";\n      for (const token of message.text.split(WHITESPACE_PATTERN)) {\n        if (!alive()) {\n          return;\n        }\n        text += token;\n        const snapshot = text;\n        setMessages((current) =>\n          current.map((item) =>\n            item.id === message.id ? { ...item, text: snapshot } : item\n          )\n        );\n        await delay(CHATGPT_PLAYBACK_TIMING.tokenMs);\n      }\n      if (!alive()) {\n        return;\n      }\n      markComplete(message.id);\n      await delay(CHATGPT_PLAYBACK_TIMING.afterAssistantMs);\n    },\n    [markComplete, setThinking]\n  );\n\n  const play = useCallback(async () => {\n    const run = runRef.current + 1;\n    runRef.current = run;\n    const alive = () => runRef.current === run;\n\n    enter({ status: \"playing\", source: \"script\", thinking: false });\n    setMessages([]);\n    setCompleteIds(new Set());\n\n    for (const message of script) {\n      if (!alive()) {\n        return;\n      }\n      // react-doctor-disable-next-line react-doctor/async-await-in-loop -- turns must play one after another\n      await playTurn(message, alive);\n    }\n\n    if (alive()) {\n      enter({ status: \"idle\" });\n    }\n  }, [enter, playTurn, script]);\n\n  const send = useCallback(\n    async (text: string, reply: string) => {\n      const current = phaseRef.current;\n      if (current.status === \"playing\" && current.source === \"send\") {\n        return;\n      }\n      const run = runRef.current + 1;\n      runRef.current = run;\n      const alive = () => runRef.current === run;\n      const now = Date.now();\n\n      enter({ status: \"playing\", source: \"send\", thinking: false });\n      await playTurn({ from: \"user\", id: `user-${now}`, text }, alive);\n      if (!alive()) {\n        return;\n      }\n      await playTurn(\n        { from: \"assistant\", id: `assistant-${now}`, text: reply },\n        alive\n      );\n      if (alive()) {\n        enter({ status: \"idle\" });\n      }\n    },\n    [enter, playTurn]\n  );\n\n  useEffect(\n    () => () => {\n      runRef.current += 1;\n    },\n    []\n  );\n\n  const playing = phase.status === \"playing\";\n  const thinking = phase.status === \"playing\" && phase.thinking;\n\n  return { completeIds, messages, play, playing, send, stop, thinking };\n};\n",
      "type": "registry:hook",
      "target": "components/chatgpt/hooks/use-chatgpt-playback.ts"
    },
    {
      "path": "registry/notra/chatgpt/examples/chatgpt-demo.tsx",
      "content": "\"use client\";\n\nimport { useEffect, useRef } from \"react\";\n\nimport {\n  Card,\n  CardContent,\n  CardFooter,\n  CardHeader,\n  CardTitle,\n} from \"@/components/ui/card\";\nimport { ScrollArea } from \"@/components/ui/scroll-area\";\n\nimport { ChatgptActions } from \"../components/chatgpt-actions\";\nimport { ChatgptActivity } from \"../components/chatgpt-activity\";\nimport { ChatgptComposer } from \"../components/chatgpt-composer\";\nimport { ChatgptLogoIcon } from \"../components/chatgpt-icons\";\nimport { ChatgptMessage } from \"../components/chatgpt-message\";\nimport { ChatgptReasoning } from \"../components/chatgpt-reasoning\";\nimport { ChatgptSourceChip } from \"../components/chatgpt-source-chip\";\nimport { ChatgptThinking } from \"../components/chatgpt-thinking\";\nimport {\n  CHATGPT_STORY_REPLIES,\n  CHATGPT_STORY_THREAD,\n} from \"../constants/chatgpt-story\";\nimport { useChatgptPlayback } from \"../hooks/use-chatgpt-playback\";\nimport type {\n  ChatgptActivitySource,\n  ChatgptStoryMessage,\n  ChatgptTextSegment,\n} from \"../types/chatgpt\";\n\nconst BOLD_PATTERN = /(\\*\\*[^*]+\\*\\*)/g;\n\nconst CITE_STRIP = /\\s?\\{\\{[a-z0-9,-]+\\}\\}/g;\n\nconst CITE_PATTERN = /(\\{\\{[a-z0-9,-]+\\}\\})/g;\n\nconst CITE_TOKEN_PATTERN = /^\\{\\{([a-z0-9,-]+)\\}\\}$/;\n\nconst PARAGRAPH_SEPARATOR = \"\\n\\n\";\n\nconst splitWithOffsets = (\n  text: string,\n  separator: string | RegExp,\n  separatorLength: number\n) => {\n  const segments: ChatgptTextSegment[] = [];\n  let offset = 0;\n  for (const part of text.split(separator)) {\n    if (part.length > 0) {\n      segments.push({ offset, text: part });\n    }\n    offset += part.length + separatorLength;\n  }\n  return segments;\n};\n\nconst ChatgptStoryText = ({\n  sources = [],\n  text,\n}: {\n  sources?: readonly ChatgptActivitySource[];\n  text: string;\n}) => {\n  const paragraphs = splitWithOffsets(\n    text,\n    PARAGRAPH_SEPARATOR,\n    PARAGRAPH_SEPARATOR.length\n  );\n\n  return (\n    <span className={paragraphs.length > 1 ? \"flex flex-col gap-3\" : undefined}>\n      {paragraphs.map((paragraph) => (\n        <span key={paragraph.offset}>\n          {splitWithOffsets(paragraph.text, CITE_PATTERN, 0).map((piece) => {\n            const ids = piece.text.match(CITE_TOKEN_PATTERN)?.[1]?.split(\",\");\n            if (ids) {\n              const wanted = new Set(ids);\n              const cited = sources.filter((source) => wanted.has(source.id));\n              return <ChatgptSourceChip key={piece.offset} sources={cited} />;\n            }\n            return splitWithOffsets(piece.text, BOLD_PATTERN, 0).map((part) =>\n              part.text.startsWith(\"**\") && part.text.endsWith(\"**\") ? (\n                <strong key={`${piece.offset}:${part.offset}`}>\n                  {part.text.slice(2, -2)}\n                </strong>\n              ) : (\n                <span key={`${piece.offset}:${part.offset}`}>{part.text}</span>\n              )\n            );\n          })}\n        </span>\n      ))}\n    </span>\n  );\n};\n\nconst ChatgptStoryBody = ({\n  complete = true,\n  message,\n}: {\n  complete?: boolean;\n  message: ChatgptStoryMessage;\n}) => {\n  if (message.from === \"user\") {\n    return <ChatgptMessage from=\"user\">{message.text}</ChatgptMessage>;\n  }\n\n  const { reasoning } = message;\n\n  return (\n    <ChatgptMessage\n      actions={\n        <div className={complete ? undefined : \"invisible\"}>\n          <ChatgptActions text={message.text.replace(CITE_STRIP, \"\")} />\n        </div>\n      }\n      from=\"assistant\"\n      reasoning={\n        reasoning && (\n          <ChatgptReasoning\n            complete={complete}\n            search={\n              !reasoning.steps &&\n              reasoning.search && (\n                <ChatgptActivity\n                  seconds={reasoning.seconds}\n                  sites={reasoning.search.sites}\n                  sourceCount={reasoning.search.sourceCount}\n                  sources={reasoning.search.sources}\n                  websites={reasoning.search.websites}\n                />\n              )\n            }\n            seconds={reasoning.seconds}\n          >\n            {reasoning.steps ? (\n              <div className=\"flex flex-col items-start gap-3\">\n                {reasoning.steps.map((step) =>\n                  step.kind === \"search\" ? (\n                    <ChatgptActivity\n                      key={`search-${step.search.websites}`}\n                      seconds={reasoning.seconds}\n                      sites={step.search.sites}\n                      sourceCount={step.search.sourceCount}\n                      sources={step.search.sources}\n                      websites={step.search.websites}\n                    />\n                  ) : (\n                    <div\n                      className={\n                        step.muted\n                          ? \"text-chatgpt-muted text-[0.9375rem] leading-7\"\n                          : \"text-chatgpt-fg text-[0.9375rem] leading-7\"\n                      }\n                      key={step.text}\n                    >\n                      <ChatgptStoryText text={step.text} />\n                    </div>\n                  )\n                )}\n              </div>\n            ) : (\n              <div className=\"text-chatgpt-fg text-[0.9375rem] leading-7\">\n                <ChatgptStoryText text={reasoning.text} />\n              </div>\n            )}\n          </ChatgptReasoning>\n        )\n      }\n    >\n      <ChatgptStoryText\n        sources={reasoning?.steps\n          ?.flatMap((step) =>\n            step.kind === \"search\" ? step.search.sources : []\n          )\n          .concat(reasoning.search?.sources ?? [])}\n        text={message.text}\n      />\n    </ChatgptMessage>\n  );\n};\n\nexport default function ChatgptDemo() {\n  const playback = useChatgptPlayback(CHATGPT_STORY_THREAD);\n  const replyIndexRef = useRef(0);\n  const scrollRef = useRef<HTMLDivElement>(null);\n  const hasMountedRef = useRef(false);\n\n  useEffect(() => {\n    if (!hasMountedRef.current) {\n      hasMountedRef.current = true;\n      return;\n    }\n    const viewport = scrollRef.current?.querySelector(\n      '[data-slot=\"scroll-area-viewport\"]'\n    );\n    viewport?.scrollTo({ behavior: \"smooth\", top: viewport.scrollHeight });\n  }, [playback.messages.length, playback.thinking]);\n\n  const handleSend = async (text: string) => {\n    if (playback.playing) {\n      return;\n    }\n    const reply =\n      CHATGPT_STORY_REPLIES[\n        replyIndexRef.current % CHATGPT_STORY_REPLIES.length\n      ];\n    replyIndexRef.current += 1;\n    await playback.send(text, reply);\n  };\n\n  return (\n    <Card className=\"border-chatgpt-border bg-chatgpt-bg font-chatgpt text-chatgpt-fg h-150 w-full min-w-0 gap-0 rounded-2xl border py-0 text-base antialiased ring-0\">\n      <CardHeader className=\"flex h-12 shrink-0 items-center justify-between gap-3 rounded-none ps-4 pe-2\">\n        <CardTitle className=\"text-chatgpt-muted flex min-w-0 items-center gap-2 text-base leading-6 font-normal\">\n          <ChatgptLogoIcon className=\"size-4.5 shrink-0\" />\n          <span className=\"truncate\">ChatGPT</span>\n        </CardTitle>\n      </CardHeader>\n      <ScrollArea className=\"min-h-0 flex-1\" ref={scrollRef}>\n        <CardContent className=\"mx-auto flex w-full max-w-3xl min-w-0 flex-col gap-6 px-5 pt-4 pb-8\">\n          {playback.messages.map((message) => (\n            <ChatgptStoryBody\n              complete={playback.completeIds.has(message.id)}\n              key={message.id}\n              message={message}\n            />\n          ))}\n          {playback.thinking && <ChatgptThinking />}\n        </CardContent>\n      </ScrollArea>\n      <CardFooter className=\"mx-auto w-full max-w-3xl min-w-0 shrink-0 rounded-none border-t-0 bg-transparent px-5 pt-0 pb-5\">\n        <ChatgptComposer\n          busy={playback.playing || playback.thinking}\n          onSend={handleSend}\n          onStop={playback.stop}\n        />\n      </CardFooter>\n    </Card>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/chatgpt/examples/chatgpt-demo.tsx"
    },
    {
      "path": "registry/notra/chatgpt/components/chatgpt-source-chip.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"cn\";\n\nimport { badgeVariants } from \"@/components/ui/badge\";\nimport {\n  HoverCard,\n  HoverCardContent,\n  HoverCardTrigger,\n} from \"@/components/ui/hover-card\";\nimport { Separator } from \"@/components/ui/separator\";\n\nimport {\n  CHATGPT_CHIP_HOVER_CLOSE_DELAY_MS,\n  CHATGPT_CHIP_HOVER_OPEN_DELAY_MS,\n} from \"../constants/chatgpt\";\nimport type { ChatgptSourceChipProps } from \"../types/chatgpt\";\nimport { ChatgptFavicon } from \"./chatgpt-favicon\";\n\nexport const ChatgptSourceChip = ({\n  className,\n  rel = \"noopener noreferrer\",\n  sources,\n  target = \"_blank\",\n  ...props\n}: ChatgptSourceChipProps) => {\n  const [first] = sources;\n  if (!first) {\n    return null;\n  }\n  const extra = sources.length - 1;\n\n  return (\n    <HoverCard>\n      <HoverCardTrigger\n        aria-label={\n          extra > 0 ? `${first.publisher} (+${extra})` : first.publisher\n        }\n        className={cn(\n          badgeVariants({ variant: \"secondary\" }),\n          \"bg-chatgpt-hover text-chatgpt-muted hover:bg-chatgpt-border hover:text-chatgpt-fg focus-visible:outline-chatgpt-focus mx-0.5 h-5 gap-1 rounded-full border-0 px-2 align-middle text-xs leading-none font-normal no-underline focus-visible:ring-0 focus-visible:outline-2 focus-visible:outline-solid motion-reduce:transition-none\",\n          className\n        )}\n        closeDelay={CHATGPT_CHIP_HOVER_CLOSE_DELAY_MS}\n        data-slot=\"chatgpt-source-chip\"\n        delay={CHATGPT_CHIP_HOVER_OPEN_DELAY_MS}\n        href={first.href ?? `https://${first.domain}`}\n        rel={rel}\n        target={target}\n        {...props}\n      >\n        {first.publisher}\n        {extra > 0 ? <span>+{extra}</span> : null}\n      </HoverCardTrigger>\n      <HoverCardContent\n        align=\"start\"\n        className=\"bg-chatgpt-popover font-chatgpt text-chatgpt-fg shadow-chatgpt-menu w-80 max-w-[calc(100vw-2rem)] gap-0 rounded-2xl p-0 ring-0\"\n        sideOffset={8}\n      >\n        <ul className=\"flex flex-col\">\n          {sources.slice(0, 3).map((source, index) => (\n            <li key={source.id}>\n              {index > 0 ? <Separator className=\"bg-chatgpt-border\" /> : null}\n              <div className=\"flex flex-col gap-1 p-3\">\n                <div className=\"text-chatgpt-muted flex items-center gap-1.5 text-xs leading-4\">\n                  <ChatgptFavicon\n                    className=\"size-4\"\n                    domain={source.domain}\n                    src={source.favicon}\n                  />\n                  {source.publisher}\n                </div>\n                <p className=\"text-[0.9375rem] leading-5 font-medium\">\n                  {source.title}\n                </p>\n                <p className=\"text-chatgpt-muted line-clamp-2 text-[0.8125rem] leading-[1.15rem]\">\n                  {source.snippet}\n                </p>\n              </div>\n            </li>\n          ))}\n        </ul>\n      </HoverCardContent>\n    </HoverCard>\n  );\n};\n",
      "type": "registry:component",
      "target": "components/chatgpt/components/chatgpt-source-chip.tsx"
    }
  ],
  "cssVars": {
    "theme": {
      "color-chatgpt-bg": "var(--chatgpt-bg)",
      "color-chatgpt-fg": "var(--chatgpt-fg)",
      "color-chatgpt-muted": "var(--chatgpt-muted)",
      "color-chatgpt-hover": "var(--chatgpt-hover)",
      "color-chatgpt-border": "var(--chatgpt-border)",
      "color-chatgpt-bubble": "var(--chatgpt-bubble)",
      "color-chatgpt-composer": "var(--chatgpt-composer)",
      "color-chatgpt-composer-border": "var(--chatgpt-composer-border)",
      "color-chatgpt-popover": "var(--chatgpt-popover)",
      "color-chatgpt-tooltip": "var(--chatgpt-tooltip)",
      "color-chatgpt-tooltip-fg": "var(--chatgpt-tooltip-fg)",
      "color-chatgpt-send": "var(--chatgpt-send)",
      "color-chatgpt-send-hover": "var(--chatgpt-send-hover)",
      "color-chatgpt-send-fg": "var(--chatgpt-send-fg)",
      "color-chatgpt-focus": "var(--chatgpt-focus)",
      "color-chatgpt-search": "var(--chatgpt-search)",
      "shadow-chatgpt-composer": "var(--chatgpt-composer-shadow)",
      "shadow-chatgpt-menu": "var(--chatgpt-menu-shadow)",
      "font-chatgpt": "ui-sans-serif, -apple-system, system-ui, \"Segoe UI\", Helvetica, \"Apple Color Emoji\", Arial, sans-serif, \"Segoe UI Emoji\", \"Segoe UI Symbol\"",
      "color-chatgpt-slider-track": "var(--chatgpt-slider-track)",
      "color-chatgpt-slider-fill": "var(--chatgpt-slider-fill)",
      "color-chatgpt-slider-thumb": "var(--chatgpt-slider-thumb)",
      "color-chatgpt-slider-dot": "var(--chatgpt-slider-dot)",
      "color-chatgpt-slider-dot-fill": "var(--chatgpt-slider-dot-fill)",
      "color-chatgpt-pro": "var(--chatgpt-pro)",
      "animate-chatgpt-burst": "chatgpt-burst 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards",
      "animate-chatgpt-flow": "chatgpt-flow 7s linear infinite",
      "animate-chatgpt-twinkle": "chatgpt-twinkle 3.2s ease-in-out infinite"
    },
    "light": {
      "chatgpt-bg": "#ffffff",
      "chatgpt-fg": "#0d0d0d",
      "chatgpt-muted": "#5d5d5d",
      "chatgpt-hover": "#f3f3f3",
      "chatgpt-border": "#e5e5e5",
      "chatgpt-bubble": "#f4f4f4",
      "chatgpt-composer": "#ffffff",
      "chatgpt-composer-border": "#00000014",
      "chatgpt-composer-shadow": "0 1px 2px rgb(0 0 0 / 0.04), 0 2px 8px rgb(0 0 0 / 0.04)",
      "chatgpt-popover": "#ffffff",
      "chatgpt-menu-shadow": "0 0 0 1px rgb(0 0 0 / 0.05), 0 4px 16px rgb(0 0 0 / 0.08)",
      "chatgpt-tooltip": "#0d0d0d",
      "chatgpt-tooltip-fg": "#ffffff",
      "chatgpt-send": "#2563eb",
      "chatgpt-send-hover": "#1d4ed8",
      "chatgpt-send-fg": "#ffffff",
      "chatgpt-focus": "#2563eb",
      "chatgpt-search": "#e4543a",
      "chatgpt-slider-track": "#e4e4e4",
      "chatgpt-slider-fill": "#3b82f6",
      "chatgpt-slider-thumb": "#ffffff",
      "chatgpt-slider-dot": "#a3a3a3",
      "chatgpt-slider-dot-fill": "rgb(255 255 255 / 60%)",
      "chatgpt-pro": "#7c3aed",
      "chatgpt-pro-gradient": "linear-gradient(90deg, #2b3fd6 0%, #6a5be2 25%, #b58cf5 50%, #6a5be2 75%, #2b3fd6 100%)"
    },
    "dark": {
      "chatgpt-bg": "#212121",
      "chatgpt-fg": "#ececec",
      "chatgpt-muted": "#afafaf",
      "chatgpt-hover": "#303030",
      "chatgpt-border": "#3a3a3a",
      "chatgpt-bubble": "#303030",
      "chatgpt-composer": "#303030",
      "chatgpt-composer-border": "#ffffff1a",
      "chatgpt-composer-shadow": "0 1px 2px rgb(0 0 0 / 0.2)",
      "chatgpt-popover": "#353535",
      "chatgpt-menu-shadow": "0 0 0 1px rgb(255 255 255 / 0.08), 0 8px 24px rgb(0 0 0 / 0.4)",
      "chatgpt-tooltip": "#000000",
      "chatgpt-tooltip-fg": "#ffffff",
      "chatgpt-send": "#2563eb",
      "chatgpt-send-hover": "#1d4ed8",
      "chatgpt-send-fg": "#ffffff",
      "chatgpt-focus": "#2563eb",
      "chatgpt-search": "#e4543a",
      "chatgpt-slider-track": "#454545",
      "chatgpt-slider-fill": "#3b82f6",
      "chatgpt-slider-thumb": "#ffffff",
      "chatgpt-slider-dot": "#8c8c8c",
      "chatgpt-slider-dot-fill": "rgb(255 255 255 / 55%)",
      "chatgpt-pro": "#b794f6",
      "chatgpt-pro-gradient": "linear-gradient(90deg, #2b3fd6 0%, #6a5be2 25%, #b58cf5 50%, #6a5be2 75%, #2b3fd6 100%)"
    }
  },
  "css": {
    "@keyframes chatgpt-burst": {
      "0%": {
        "opacity": "1",
        "transform": "translate(0, 0) scale(0.4)"
      },
      "100%": {
        "opacity": "0",
        "transform": "translate(var(--burst-x), var(--burst-y)) scale(1)"
      }
    },
    "@keyframes chatgpt-flow": {
      "from": {
        "background-position": "0% 0"
      },
      "to": {
        "background-position": "200% 0"
      }
    },
    "@keyframes chatgpt-twinkle": {
      "0%": {
        "opacity": "0",
        "transform": "translateX(14px) scale(0.5)"
      },
      "30%, 60%": {
        "opacity": "0.95",
        "transform": "translateX(0) scale(1)"
      },
      "100%": {
        "opacity": "0",
        "transform": "translateX(-16px) scale(0.6)"
      }
    }
  },
  "type": "registry:block"
}